import{c as Hi,g as oo}from"./_commonjsHelpers-Cpj98o6Y.js";import{j as ti}from"./jquery.module-ChOzknyR.js";function $s(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 Al={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(e,i){(function(s){e.exports=s()})(function(){return function s(g,u,w){function o(A,a){if(!u[A]){if(!g[A]){var f=typeof $s=="function"&&$s;if(!a&&f)return f(A,!0);if(r)return r(A,!0);var h=new Error("Cannot find module '"+A+"'");throw h.code="MODULE_NOT_FOUND",h}var Q=u[A]={exports:{}};g[A][0].call(Q.exports,function(d){var E=g[A][1][d];return o(E||d)},Q,Q.exports,s,g,u,w)}return u[A].exports}for(var r=typeof $s=="function"&&$s,t=0;t<w.length;t++)o(w[t]);return o}({1:[function(s,g,u){var w=s("./utils"),o=s("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";u.encode=function(t){for(var A,a,f,h,Q,d,E,D=[],Y=0,z=t.length,L=z,T=w.getTypeOf(t)!=="string";Y<t.length;)L=z-Y,f=T?(A=t[Y++],a=Y<z?t[Y++]:0,Y<z?t[Y++]:0):(A=t.charCodeAt(Y++),a=Y<z?t.charCodeAt(Y++):0,Y<z?t.charCodeAt(Y++):0),h=A>>2,Q=(3&A)<<4|a>>4,d=1<L?(15&a)<<2|f>>6:64,E=2<L?63&f:64,D.push(r.charAt(h)+r.charAt(Q)+r.charAt(d)+r.charAt(E));return D.join("")},u.decode=function(t){var A,a,f,h,Q,d,E=0,D=0,Y="data:";if(t.substr(0,Y.length)===Y)throw new Error("Invalid base64 input, it looks like a data url.");var z,L=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&L--,t.charAt(t.length-2)===r.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(z=o.uint8array?new Uint8Array(0|L):new Array(0|L);E<t.length;)A=r.indexOf(t.charAt(E++))<<2|(h=r.indexOf(t.charAt(E++)))>>4,a=(15&h)<<4|(Q=r.indexOf(t.charAt(E++)))>>2,f=(3&Q)<<6|(d=r.indexOf(t.charAt(E++))),z[D++]=A,Q!==64&&(z[D++]=a),d!==64&&(z[D++]=f);return z}},{"./support":30,"./utils":32}],2:[function(s,g,u){var w=s("./external"),o=s("./stream/DataWorker"),r=s("./stream/Crc32Probe"),t=s("./stream/DataLengthProbe");function A(a,f,h,Q,d){this.compressedSize=a,this.uncompressedSize=f,this.crc32=h,this.compression=Q,this.compressedContent=d}A.prototype={getContentWorker:function(){var a=new o(w.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),f=this;return a.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new o(w.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},A.createWorkerFrom=function(a,f,h){return a.pipe(new r).pipe(new t("uncompressedSize")).pipe(f.compressWorker(h)).pipe(new t("compressedSize")).withStreamInfo("compression",f)},g.exports=A},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,g,u){var w=s("./stream/GenericWorker");u.STORE={magic:"\0\0",compressWorker:function(){return new w("STORE compression")},uncompressWorker:function(){return new w("STORE decompression")}},u.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,g,u){var w=s("./utils"),o=function(){for(var r,t=[],A=0;A<256;A++){r=A;for(var a=0;a<8;a++)r=1&r?3988292384^r>>>1:r>>>1;t[A]=r}return t}();g.exports=function(r,t){return r!==void 0&&r.length?w.getTypeOf(r)!=="string"?function(A,a,f,h){var Q=o,d=h+f;A^=-1;for(var E=h;E<d;E++)A=A>>>8^Q[255&(A^a[E])];return-1^A}(0|t,r,r.length,0):function(A,a,f,h){var Q=o,d=h+f;A^=-1;for(var E=h;E<d;E++)A=A>>>8^Q[255&(A^a.charCodeAt(E))];return-1^A}(0|t,r,r.length,0):0}},{"./utils":32}],5:[function(s,g,u){u.base64=!1,u.binary=!1,u.dir=!1,u.createFolders=!0,u.date=null,u.compression=null,u.compressionOptions=null,u.comment=null,u.unixPermissions=null,u.dosPermissions=null},{}],6:[function(s,g,u){var w=null;w=typeof Promise<"u"?Promise:s("lie"),g.exports={Promise:w}},{lie:37}],7:[function(s,g,u){var w=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=s("pako"),r=s("./utils"),t=s("./stream/GenericWorker"),A=w?"uint8array":"array";function a(f,h){t.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=h,this.meta={}}u.magic="\b\0",r.inherits(a,t),a.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(A,f.data),!1)},a.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(h){f.push({data:h,meta:f.meta})}},u.compressWorker=function(f){return new a("Deflate",f)},u.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,g,u){function w(Q,d){var E,D="";for(E=0;E<d;E++)D+=String.fromCharCode(255&Q),Q>>>=8;return D}function o(Q,d,E,D,Y,z){var L,T,b=Q.file,N=Q.compression,O=z!==A.utf8encode,gA=r.transformTo("string",z(b.name)),oA=r.transformTo("string",A.utf8encode(b.name)),q=b.comment,Z=r.transformTo("string",z(q)),x=r.transformTo("string",A.utf8encode(q)),X=oA.length!==b.name.length,B=x.length!==q.length,v="",bA="",wA="",tA=b.dir,nA=b.date,KA={crc32:0,compressedSize:0,uncompressedSize:0};d&&!E||(KA.crc32=Q.crc32,KA.compressedSize=Q.compressedSize,KA.uncompressedSize=Q.uncompressedSize);var DA=0;d&&(DA|=8),O||!X&&!B||(DA|=2048);var FA=0,cA=0;tA&&(FA|=16),Y==="UNIX"?(cA=798,FA|=function(zA,mA){var HA=zA;return zA||(HA=mA?16893:33204),(65535&HA)<<16}(b.unixPermissions,tA)):(cA=20,FA|=function(zA){return 63&(zA||0)}(b.dosPermissions)),L=nA.getUTCHours(),L<<=6,L|=nA.getUTCMinutes(),L<<=5,L|=nA.getUTCSeconds()/2,T=nA.getUTCFullYear()-1980,T<<=4,T|=nA.getUTCMonth()+1,T<<=5,T|=nA.getUTCDate(),X&&(bA=w(1,1)+w(a(gA),4)+oA,v+="up"+w(bA.length,2)+bA),B&&(wA=w(1,1)+w(a(Z),4)+x,v+="uc"+w(wA.length,2)+wA);var yA="";return yA+=`
\0`,yA+=w(DA,2),yA+=N.magic,yA+=w(L,2),yA+=w(T,2),yA+=w(KA.crc32,4),yA+=w(KA.compressedSize,4),yA+=w(KA.uncompressedSize,4),yA+=w(gA.length,2),yA+=w(v.length,2),{fileRecord:f.LOCAL_FILE_HEADER+yA+gA+v,dirRecord:f.CENTRAL_FILE_HEADER+w(cA,2)+yA+w(Z.length,2)+"\0\0\0\0"+w(FA,4)+w(D,4)+gA+v+Z}}var r=s("../utils"),t=s("../stream/GenericWorker"),A=s("../utf8"),a=s("../crc32"),f=s("../signature");function h(Q,d,E,D){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=E,this.encodeFileName=D,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(h,t),h.prototype.push=function(Q){var d=Q.meta.percent||0,E=this.entriesCount,D=this._sources.length;this.accumulate?this.contentBuffer.push(Q):(this.bytesWritten+=Q.data.length,t.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:E?(d+100*(E-D-1))/E:100}}))},h.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var d=this.streamFiles&&!Q.file.dir;if(d){var E=o(Q,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(Q){this.accumulate=!1;var d=this.streamFiles&&!Q.file.dir,E=o(Q,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),d)this.push({data:function(D){return f.DATA_DESCRIPTOR+w(D.crc32,4)+w(D.compressedSize,4)+w(D.uncompressedSize,4)}(Q),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var Q=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var E=this.bytesWritten-Q,D=function(Y,z,L,T,b){var N=r.transformTo("string",b(T));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+w(Y,2)+w(Y,2)+w(z,4)+w(L,4)+w(N.length,2)+N}(this.dirRecords.length,E,Q,this.zipComment,this.encodeFileName);this.push({data:D,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(Q){this._sources.push(Q);var d=this;return Q.on("data",function(E){d.processChunk(E)}),Q.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),Q.on("error",function(E){d.error(E)}),this},h.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(Q){var d=this._sources;if(!t.prototype.error.call(this,Q))return!1;for(var E=0;E<d.length;E++)try{d[E].error(Q)}catch{}return!0},h.prototype.lock=function(){t.prototype.lock.call(this);for(var Q=this._sources,d=0;d<Q.length;d++)Q[d].lock()},g.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(s,g,u){var w=s("../compressions"),o=s("./ZipFileWorker");u.generateWorker=function(r,t,A){var a=new o(t.streamFiles,A,t.platform,t.encodeFileName),f=0;try{r.forEach(function(h,Q){f++;var d=function(z,L){var T=z||L,b=w[T];if(!b)throw new Error(T+" is not a valid compression method !");return b}(Q.options.compression,t.compression),E=Q.options.compressionOptions||t.compressionOptions||{},D=Q.dir,Y=Q.date;Q._compressWorker(d,E).withStreamInfo("file",{name:h,dir:D,date:Y,comment:Q.comment||"",unixPermissions:Q.unixPermissions,dosPermissions:Q.dosPermissions}).pipe(a)}),a.entriesCount=f}catch(h){a.error(h)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(s,g,u){function w(){if(!(this instanceof w))return new w;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 o=new w;for(var r in this)typeof this[r]!="function"&&(o[r]=this[r]);return o}}(w.prototype=s("./object")).loadAsync=s("./load"),w.support=s("./support"),w.defaults=s("./defaults"),w.version="3.10.1",w.loadAsync=function(o,r){return new w().loadAsync(o,r)},w.external=s("./external"),g.exports=w},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(s,g,u){var w=s("./utils"),o=s("./external"),r=s("./utf8"),t=s("./zipEntries"),A=s("./stream/Crc32Probe"),a=s("./nodejsUtils");function f(h){return new o.Promise(function(Q,d){var E=h.decompressed.getContentWorker().pipe(new A);E.on("error",function(D){d(D)}).on("end",function(){E.streamInfo.crc32!==h.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):Q()}).resume()})}g.exports=function(h,Q){var d=this;return Q=w.extend(Q||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),a.isNode&&a.isStream(h)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):w.prepareContent("the loaded zip file",h,!0,Q.optimizedBinaryString,Q.base64).then(function(E){var D=new t(Q);return D.load(E),D}).then(function(E){var D=[o.Promise.resolve(E)],Y=E.files;if(Q.checkCRC32)for(var z=0;z<Y.length;z++)D.push(f(Y[z]));return o.Promise.all(D)}).then(function(E){for(var D=E.shift(),Y=D.files,z=0;z<Y.length;z++){var L=Y[z],T=L.fileNameStr,b=w.resolve(L.fileNameStr);d.file(b,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:Q.createFolders}),L.dir||(d.file(b).unsafeOriginalName=T)}return D.zipComment.length&&(d.comment=D.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(s,g,u){var w=s("../utils"),o=s("../stream/GenericWorker");function r(t,A){o.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(A)}w.inherits(r,o),r.prototype._bindStream=function(t){var A=this;(this._stream=t).pause(),t.on("data",function(a){A.push({data:a,meta:{percent:0}})}).on("error",function(a){A.isPaused?this.generatedError=a:A.error(a)}).on("end",function(){A.isPaused?A._upstreamEnded=!0:A.end()})},r.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},g.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(s,g,u){var w=s("readable-stream").Readable;function o(r,t,A){w.call(this,t),this._helper=r;var a=this;r.on("data",function(f,h){a.push(f)||a._helper.pause(),A&&A(h)}).on("error",function(f){a.emit("error",f)}).on("end",function(){a.push(null)})}s("../utils").inherits(o,w),o.prototype._read=function(){this._helper.resume()},g.exports=o},{"../utils":32,"readable-stream":16}],14:[function(s,g,u){g.exports={isNode:typeof Buffer<"u",newBufferFrom:function(w,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(w,o);if(typeof w=="number")throw new Error('The "data" argument must not be a number');return new Buffer(w,o)},allocBuffer:function(w){if(Buffer.alloc)return Buffer.alloc(w);var o=new Buffer(w);return o.fill(0),o},isBuffer:function(w){return Buffer.isBuffer(w)},isStream:function(w){return w&&typeof w.on=="function"&&typeof w.pause=="function"&&typeof w.resume=="function"}}},{}],15:[function(s,g,u){function w(b,N,O){var gA,oA=r.getTypeOf(N),q=r.extend(O||{},a);q.date=q.date||new Date,q.compression!==null&&(q.compression=q.compression.toUpperCase()),typeof q.unixPermissions=="string"&&(q.unixPermissions=parseInt(q.unixPermissions,8)),q.unixPermissions&&16384&q.unixPermissions&&(q.dir=!0),q.dosPermissions&&16&q.dosPermissions&&(q.dir=!0),q.dir&&(b=Y(b)),q.createFolders&&(gA=D(b))&&z.call(this,gA,!0);var Z=oA==="string"&&q.binary===!1&&q.base64===!1;O&&O.binary!==void 0||(q.binary=!Z),(N instanceof f&&N.uncompressedSize===0||q.dir||!N||N.length===0)&&(q.base64=!1,q.binary=!0,N="",q.compression="STORE",oA="string");var x=null;x=N instanceof f||N instanceof t?N:d.isNode&&d.isStream(N)?new E(b,N):r.prepareContent(b,N,q.binary,q.optimizedBinaryString,q.base64);var X=new h(b,x,q);this.files[b]=X}var o=s("./utf8"),r=s("./utils"),t=s("./stream/GenericWorker"),A=s("./stream/StreamHelper"),a=s("./defaults"),f=s("./compressedObject"),h=s("./zipObject"),Q=s("./generate"),d=s("./nodejsUtils"),E=s("./nodejs/NodejsStreamInputAdapter"),D=function(b){b.slice(-1)==="/"&&(b=b.substring(0,b.length-1));var N=b.lastIndexOf("/");return 0<N?b.substring(0,N):""},Y=function(b){return b.slice(-1)!=="/"&&(b+="/"),b},z=function(b,N){return N=N!==void 0?N:a.createFolders,b=Y(b),this.files[b]||w.call(this,b,null,{dir:!0,createFolders:N}),this.files[b]};function L(b){return Object.prototype.toString.call(b)==="[object RegExp]"}var T={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(b){var N,O,gA;for(N in this.files)gA=this.files[N],(O=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&b(O,gA)},filter:function(b){var N=[];return this.forEach(function(O,gA){b(O,gA)&&N.push(gA)}),N},file:function(b,N,O){if(arguments.length!==1)return b=this.root+b,w.call(this,b,N,O),this;if(L(b)){var gA=b;return this.filter(function(q,Z){return!Z.dir&&gA.test(q)})}var oA=this.files[this.root+b];return oA&&!oA.dir?oA:null},folder:function(b){if(!b)return this;if(L(b))return this.filter(function(oA,q){return q.dir&&b.test(oA)});var N=this.root+b,O=z.call(this,N),gA=this.clone();return gA.root=O.name,gA},remove:function(b){b=this.root+b;var N=this.files[b];if(N||(b.slice(-1)!=="/"&&(b+="/"),N=this.files[b]),N&&!N.dir)delete this.files[b];else for(var O=this.filter(function(oA,q){return q.name.slice(0,b.length)===b}),gA=0;gA<O.length;gA++)delete this.files[O[gA].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(b){var N,O={};try{if((O=r.extend(b||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw new Error("No output type specified.");r.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var gA=O.comment||this.comment||"";N=Q.generateWorker(this,O,gA)}catch(oA){(N=new t("error")).error(oA)}return new A(N,O.type||"string",O.mimeType)},generateAsync:function(b,N){return this.generateInternalStream(b).accumulate(N)},generateNodeStream:function(b,N){return(b=b||{}).type||(b.type="nodebuffer"),this.generateInternalStream(b).toNodejsStream(N)}};g.exports=T},{"./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(s,g,u){g.exports=s("stream")},{stream:void 0}],17:[function(s,g,u){var w=s("./DataReader");function o(r){w.call(this,r);for(var t=0;t<this.data.length;t++)r[t]=255&r[t]}s("../utils").inherits(o,w),o.prototype.byteAt=function(r){return this.data[this.zero+r]},o.prototype.lastIndexOfSignature=function(r){for(var t=r.charCodeAt(0),A=r.charCodeAt(1),a=r.charCodeAt(2),f=r.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===t&&this.data[h+1]===A&&this.data[h+2]===a&&this.data[h+3]===f)return h-this.zero;return-1},o.prototype.readAndCheckSignature=function(r){var t=r.charCodeAt(0),A=r.charCodeAt(1),a=r.charCodeAt(2),f=r.charCodeAt(3),h=this.readData(4);return t===h[0]&&A===h[1]&&a===h[2]&&f===h[3]},o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,t},g.exports=o},{"../utils":32,"./DataReader":18}],18:[function(s,g,u){var w=s("../utils");function o(r){this.data=r,this.length=r.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(r){this.checkIndex(this.index+r)},checkIndex:function(r){if(this.length<this.zero+r||r<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+r+"). Corrupted zip ?")},setIndex:function(r){this.checkIndex(r),this.index=r},skip:function(r){this.setIndex(this.index+r)},byteAt:function(){},readInt:function(r){var t,A=0;for(this.checkOffset(r),t=this.index+r-1;t>=this.index;t--)A=(A<<8)+this.byteAt(t);return this.index+=r,A},readString:function(r){return w.transformTo("string",this.readData(r))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var r=this.readInt(4);return new Date(Date.UTC(1980+(r>>25&127),(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(31&r)<<1))}},g.exports=o},{"../utils":32}],19:[function(s,g,u){var w=s("./Uint8ArrayReader");function o(r){w.call(this,r)}s("../utils").inherits(o,w),o.prototype.readData=function(r){this.checkOffset(r);var t=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,t},g.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(s,g,u){var w=s("./DataReader");function o(r){w.call(this,r)}s("../utils").inherits(o,w),o.prototype.byteAt=function(r){return this.data.charCodeAt(this.zero+r)},o.prototype.lastIndexOfSignature=function(r){return this.data.lastIndexOf(r)-this.zero},o.prototype.readAndCheckSignature=function(r){return r===this.readData(4)},o.prototype.readData=function(r){this.checkOffset(r);var t=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,t},g.exports=o},{"../utils":32,"./DataReader":18}],21:[function(s,g,u){var w=s("./ArrayReader");function o(r){w.call(this,r)}s("../utils").inherits(o,w),o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+r);return this.index+=r,t},g.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(s,g,u){var w=s("../utils"),o=s("../support"),r=s("./ArrayReader"),t=s("./StringReader"),A=s("./NodeBufferReader"),a=s("./Uint8ArrayReader");g.exports=function(f){var h=w.getTypeOf(f);return w.checkSupport(h),h!=="string"||o.uint8array?h==="nodebuffer"?new A(f):o.uint8array?new a(w.transformTo("uint8array",f)):new r(w.transformTo("array",f)):new t(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(s,g,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(s,g,u){var w=s("./GenericWorker"),o=s("../utils");function r(t){w.call(this,"ConvertWorker to "+t),this.destType=t}o.inherits(r,w),r.prototype.processChunk=function(t){this.push({data:o.transformTo(this.destType,t.data),meta:t.meta})},g.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(s,g,u){var w=s("./GenericWorker"),o=s("../crc32");function r(){w.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s("../utils").inherits(r,w),r.prototype.processChunk=function(t){this.streamInfo.crc32=o(t.data,this.streamInfo.crc32||0),this.push(t)},g.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(s,g,u){var w=s("../utils"),o=s("./GenericWorker");function r(t){o.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}w.inherits(r,o),r.prototype.processChunk=function(t){if(t){var A=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=A+t.data.length}o.prototype.processChunk.call(this,t)},g.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(s,g,u){var w=s("../utils"),o=s("./GenericWorker");function r(t){o.call(this,"DataWorker");var A=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(a){A.dataIsReady=!0,A.data=a,A.max=a&&a.length||0,A.type=w.getTypeOf(a),A.isPaused||A._tickAndRepeat()},function(a){A.error(a)})}w.inherits(r,o),r.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,w.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(w.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,A=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,A);break;case"uint8array":t=this.data.subarray(this.index,A);break;case"array":case"nodebuffer":t=this.data.slice(this.index,A)}return this.index=A,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},g.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(s,g,u){function w(o){this.name=o||"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}w.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,r){return this._listeners[o].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,r){if(this._listeners[o])for(var t=0;t<this._listeners[o].length;t++)this._listeners[o][t].call(this,r)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var r=this;return o.on("data",function(t){r.processChunk(t)}),o.on("end",function(){r.end()}),o.on("error",function(t){r.error(t)}),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 o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,r){return this.extraStreamInfo[o]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},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 o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},g.exports=w},{}],29:[function(s,g,u){var w=s("../utils"),o=s("./ConvertWorker"),r=s("./GenericWorker"),t=s("../base64"),A=s("../support"),a=s("../external"),f=null;if(A.nodestream)try{f=s("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(d,E){return new a.Promise(function(D,Y){var z=[],L=d._internalType,T=d._outputType,b=d._mimeType;d.on("data",function(N,O){z.push(N),E&&E(O)}).on("error",function(N){z=[],Y(N)}).on("end",function(){try{var N=function(O,gA,oA){switch(O){case"blob":return w.newBlob(w.transformTo("arraybuffer",gA),oA);case"base64":return t.encode(gA);default:return w.transformTo(O,gA)}}(T,function(O,gA){var oA,q=0,Z=null,x=0;for(oA=0;oA<gA.length;oA++)x+=gA[oA].length;switch(O){case"string":return gA.join("");case"array":return Array.prototype.concat.apply([],gA);case"uint8array":for(Z=new Uint8Array(x),oA=0;oA<gA.length;oA++)Z.set(gA[oA],q),q+=gA[oA].length;return Z;case"nodebuffer":return Buffer.concat(gA);default:throw new Error("concat : unsupported type '"+O+"'")}}(L,z),b);D(N)}catch(O){Y(O)}z=[]}).resume()})}function Q(d,E,D){var Y=E;switch(E){case"blob":case"arraybuffer":Y="uint8array";break;case"base64":Y="string"}try{this._internalType=Y,this._outputType=E,this._mimeType=D,w.checkSupport(Y),this._worker=d.pipe(new o(Y)),d.lock()}catch(z){this._worker=new r("error"),this._worker.error(z)}}Q.prototype={accumulate:function(d){return h(this,d)},on:function(d,E){var D=this;return d==="data"?this._worker.on(d,function(Y){E.call(D,Y.data,Y.meta)}):this._worker.on(d,function(){w.delay(E,arguments,D)}),this},resume:function(){return w.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(w.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},d)}},g.exports=Q},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(s,g,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u.nodebuffer=typeof Buffer<"u",u.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")u.blob=!1;else{var w=new ArrayBuffer(0);try{u.blob=new Blob([w],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(w),u.blob=o.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!s("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(s,g,u){for(var w=s("./utils"),o=s("./support"),r=s("./nodejsUtils"),t=s("./stream/GenericWorker"),A=new Array(256),a=0;a<256;a++)A[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;A[254]=A[254]=1;function f(){t.call(this,"utf-8 decode"),this.leftOver=null}function h(){t.call(this,"utf-8 encode")}u.utf8encode=function(Q){return o.nodebuffer?r.newBufferFrom(Q,"utf-8"):function(d){var E,D,Y,z,L,T=d.length,b=0;for(z=0;z<T;z++)(64512&(D=d.charCodeAt(z)))==55296&&z+1<T&&(64512&(Y=d.charCodeAt(z+1)))==56320&&(D=65536+(D-55296<<10)+(Y-56320),z++),b+=D<128?1:D<2048?2:D<65536?3:4;for(E=o.uint8array?new Uint8Array(b):new Array(b),z=L=0;L<b;z++)(64512&(D=d.charCodeAt(z)))==55296&&z+1<T&&(64512&(Y=d.charCodeAt(z+1)))==56320&&(D=65536+(D-55296<<10)+(Y-56320),z++),D<128?E[L++]=D:(D<2048?E[L++]=192|D>>>6:(D<65536?E[L++]=224|D>>>12:(E[L++]=240|D>>>18,E[L++]=128|D>>>12&63),E[L++]=128|D>>>6&63),E[L++]=128|63&D);return E}(Q)},u.utf8decode=function(Q){return o.nodebuffer?w.transformTo("nodebuffer",Q).toString("utf-8"):function(d){var E,D,Y,z,L=d.length,T=new Array(2*L);for(E=D=0;E<L;)if((Y=d[E++])<128)T[D++]=Y;else if(4<(z=A[Y]))T[D++]=65533,E+=z-1;else{for(Y&=z===2?31:z===3?15:7;1<z&&E<L;)Y=Y<<6|63&d[E++],z--;1<z?T[D++]=65533:Y<65536?T[D++]=Y:(Y-=65536,T[D++]=55296|Y>>10&1023,T[D++]=56320|1023&Y)}return T.length!==D&&(T.subarray?T=T.subarray(0,D):T.length=D),w.applyFromCharCode(T)}(Q=w.transformTo(o.uint8array?"uint8array":"array",Q))},w.inherits(f,t),f.prototype.processChunk=function(Q){var d=w.transformTo(o.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var E=d;(d=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),d.set(E,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var D=function(z,L){var T;for((L=L||z.length)>z.length&&(L=z.length),T=L-1;0<=T&&(192&z[T])==128;)T--;return T<0||T===0?L:T+A[z[T]]>L?T:L}(d),Y=d;D!==d.length&&(o.uint8array?(Y=d.subarray(0,D),this.leftOver=d.subarray(D,d.length)):(Y=d.slice(0,D),this.leftOver=d.slice(D,d.length))),this.push({data:u.utf8decode(Y),meta:Q.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=f,w.inherits(h,t),h.prototype.processChunk=function(Q){this.push({data:u.utf8encode(Q.data),meta:Q.meta})},u.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(s,g,u){var w=s("./support"),o=s("./base64"),r=s("./nodejsUtils"),t=s("./external");function A(E){return E}function a(E,D){for(var Y=0;Y<E.length;++Y)D[Y]=255&E.charCodeAt(Y);return D}s("setimmediate"),u.newBlob=function(E,D){u.checkSupport("blob");try{return new Blob([E],{type:D})}catch{try{var Y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Y.append(E),Y.getBlob(D)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(E,D,Y){var z=[],L=0,T=E.length;if(T<=Y)return String.fromCharCode.apply(null,E);for(;L<T;)D==="array"||D==="nodebuffer"?z.push(String.fromCharCode.apply(null,E.slice(L,Math.min(L+Y,T)))):z.push(String.fromCharCode.apply(null,E.subarray(L,Math.min(L+Y,T)))),L+=Y;return z.join("")},stringifyByChar:function(E){for(var D="",Y=0;Y<E.length;Y++)D+=String.fromCharCode(E[Y]);return D},applyCanBeUsed:{uint8array:function(){try{return w.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return w.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch{return!1}}()}};function h(E){var D=65536,Y=u.getTypeOf(E),z=!0;if(Y==="uint8array"?z=f.applyCanBeUsed.uint8array:Y==="nodebuffer"&&(z=f.applyCanBeUsed.nodebuffer),z)for(;1<D;)try{return f.stringifyByChunk(E,Y,D)}catch{D=Math.floor(D/2)}return f.stringifyByChar(E)}function Q(E,D){for(var Y=0;Y<E.length;Y++)D[Y]=E[Y];return D}u.applyFromCharCode=h;var d={};d.string={string:A,array:function(E){return a(E,new Array(E.length))},arraybuffer:function(E){return d.string.uint8array(E).buffer},uint8array:function(E){return a(E,new Uint8Array(E.length))},nodebuffer:function(E){return a(E,r.allocBuffer(E.length))}},d.array={string:h,array:A,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return r.newBufferFrom(E)}},d.arraybuffer={string:function(E){return h(new Uint8Array(E))},array:function(E){return Q(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:A,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return r.newBufferFrom(new Uint8Array(E))}},d.uint8array={string:h,array:function(E){return Q(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:A,nodebuffer:function(E){return r.newBufferFrom(E)}},d.nodebuffer={string:h,array:function(E){return Q(E,new Array(E.length))},arraybuffer:function(E){return d.nodebuffer.uint8array(E).buffer},uint8array:function(E){return Q(E,new Uint8Array(E.length))},nodebuffer:A},u.transformTo=function(E,D){if(D=D||"",!E)return D;u.checkSupport(E);var Y=u.getTypeOf(D);return d[Y][E](D)},u.resolve=function(E){for(var D=E.split("/"),Y=[],z=0;z<D.length;z++){var L=D[z];L==="."||L===""&&z!==0&&z!==D.length-1||(L===".."?Y.pop():Y.push(L))}return Y.join("/")},u.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":w.nodebuffer&&r.isBuffer(E)?"nodebuffer":w.uint8array&&E instanceof Uint8Array?"uint8array":w.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(E){if(!w[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(E){var D,Y,z="";for(Y=0;Y<(E||"").length;Y++)z+="\\x"+((D=E.charCodeAt(Y))<16?"0":"")+D.toString(16).toUpperCase();return z},u.delay=function(E,D,Y){setImmediate(function(){E.apply(Y||null,D||[])})},u.inherits=function(E,D){function Y(){}Y.prototype=D.prototype,E.prototype=new Y},u.extend=function(){var E,D,Y={};for(E=0;E<arguments.length;E++)for(D in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],D)&&Y[D]===void 0&&(Y[D]=arguments[E][D]);return Y},u.prepareContent=function(E,D,Y,z,L){return t.Promise.resolve(D).then(function(T){return w.blob&&(T instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(T))!==-1)&&typeof FileReader<"u"?new t.Promise(function(b,N){var O=new FileReader;O.onload=function(gA){b(gA.target.result)},O.onerror=function(gA){N(gA.target.error)},O.readAsArrayBuffer(T)}):T}).then(function(T){var b=u.getTypeOf(T);return b?(b==="arraybuffer"?T=u.transformTo("uint8array",T):b==="string"&&(L?T=o.decode(T):Y&&z!==!0&&(T=function(N){return a(N,w.uint8array?new Uint8Array(N.length):new Array(N.length))}(T))),T):t.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(s,g,u){var w=s("./reader/readerFor"),o=s("./utils"),r=s("./signature"),t=s("./zipEntry"),A=s("./support");function a(f){this.files=[],this.loadOptions=f}a.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(h)+", expected "+o.pretty(f)+")")}},isSignature:function(f,h){var Q=this.reader.index;this.reader.setIndex(f);var d=this.reader.readString(4)===h;return this.reader.setIndex(Q),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),h=A.uint8array?"uint8array":"array",Q=o.transformTo(h,f);this.zipComment=this.loadOptions.decodeFileName(Q)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,h,Q,d=this.zip64EndOfCentralSize-44;0<d;)f=this.reader.readInt(2),h=this.reader.readInt(4),Q=this.reader.readData(h),this.zip64ExtensibleData[f]={id:f,length:h,value:Q}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,h;for(f=0;f<this.files.length;f++)h=this.files[f],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(f=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var h=f;if(this.checkSignature(r.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,(f=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.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(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Q=this.centralDirOffset+this.centralDirSize;this.zip64&&(Q+=20,Q+=12+this.zip64EndOfCentralSize);var d=h-Q;if(0<d)this.isSignature(h,r.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(f){this.reader=w(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},g.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(s,g,u){var w=s("./reader/readerFor"),o=s("./utils"),r=s("./compressedObject"),t=s("./crc32"),A=s("./utf8"),a=s("./compressions"),f=s("./support");function h(Q,d){this.options=Q,this.loadOptions=d}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Q){var d,E;if(Q.skip(22),this.fileNameLength=Q.readInt(2),E=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(D){for(var Y in a)if(Object.prototype.hasOwnProperty.call(a,Y)&&a[Y].magic===D)return a[Y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,d,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var d=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Q.skip(d),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Q==0&&(this.dosPermissions=63&this.externalFileAttributes),Q==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Q=w(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=Q.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=Q.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=Q.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=Q.readInt(4))}},readExtraFields:function(Q){var d,E,D,Y=Q.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Q.index+4<Y;)d=Q.readInt(2),E=Q.readInt(2),D=Q.readData(E),this.extraFields[d]={id:d,length:E,value:D};Q.setIndex(Y)},handleUTF8:function(){var Q=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=A.utf8decode(this.fileName),this.fileCommentStr=A.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var E=o.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var D=this.findExtraFieldUnicodeComment();if(D!==null)this.fileCommentStr=D;else{var Y=o.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Y)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var d=w(Q.value);return d.readInt(1)!==1||t(this.fileName)!==d.readInt(4)?null:A.utf8decode(d.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var d=w(Q.value);return d.readInt(1)!==1||t(this.fileComment)!==d.readInt(4)?null:A.utf8decode(d.readData(Q.length-5))}return null}},g.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(s,g,u){function w(d,E,D){this.name=d,this.dir=D.dir,this.date=D.date,this.comment=D.comment,this.unixPermissions=D.unixPermissions,this.dosPermissions=D.dosPermissions,this._data=E,this._dataBinary=D.binary,this.options={compression:D.compression,compressionOptions:D.compressionOptions}}var o=s("./stream/StreamHelper"),r=s("./stream/DataWorker"),t=s("./utf8"),A=s("./compressedObject"),a=s("./stream/GenericWorker");w.prototype={internalStream:function(d){var E=null,D="string";try{if(!d)throw new Error("No output type specified.");var Y=(D=d.toLowerCase())==="string"||D==="text";D!=="binarystring"&&D!=="text"||(D="string"),E=this._decompressWorker();var z=!this._dataBinary;z&&!Y&&(E=E.pipe(new t.Utf8EncodeWorker)),!z&&Y&&(E=E.pipe(new t.Utf8DecodeWorker))}catch(L){(E=new a("error")).error(L)}return new o(E,D,"")},async:function(d,E){return this.internalStream(d).accumulate(E)},nodeStream:function(d,E){return this.internalStream(d||"nodebuffer").toNodejsStream(E)},_compressWorker:function(d,E){if(this._data instanceof A&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var D=this._decompressWorker();return this._dataBinary||(D=D.pipe(new t.Utf8EncodeWorker)),A.createWorkerFrom(D,d,E)},_decompressWorker:function(){return this._data instanceof A?this._data.getContentWorker():this._data instanceof a?this._data:new r(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Q=0;Q<f.length;Q++)w.prototype[f[Q]]=h;g.exports=w},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(s,g,u){(function(w){var o,r,t=w.MutationObserver||w.WebKitMutationObserver;if(t){var A=0,a=new t(d),f=w.document.createTextNode("");a.observe(f,{characterData:!0}),o=function(){f.data=A=++A%2}}else if(w.setImmediate||w.MessageChannel===void 0)o="document"in w&&"onreadystatechange"in w.document.createElement("script")?function(){var E=w.document.createElement("script");E.onreadystatechange=function(){d(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},w.document.documentElement.appendChild(E)}:function(){setTimeout(d,0)};else{var h=new w.MessageChannel;h.port1.onmessage=d,o=function(){h.port2.postMessage(0)}}var Q=[];function d(){var E,D;r=!0;for(var Y=Q.length;Y;){for(D=Q,Q=[],E=-1;++E<Y;)D[E]();Y=Q.length}r=!1}g.exports=function(E){Q.push(E)!==1||r||o()}}).call(this,typeof Hi<"u"?Hi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(s,g,u){var w=s("immediate");function o(){}var r={},t=["REJECTED"],A=["FULFILLED"],a=["PENDING"];function f(Y){if(typeof Y!="function")throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,Y!==o&&E(this,Y)}function h(Y,z,L){this.promise=Y,typeof z=="function"&&(this.onFulfilled=z,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function Q(Y,z,L){w(function(){var T;try{T=z(L)}catch(b){return r.reject(Y,b)}T===Y?r.reject(Y,new TypeError("Cannot resolve promise with itself")):r.resolve(Y,T)})}function d(Y){var z=Y&&Y.then;if(Y&&(typeof Y=="object"||typeof Y=="function")&&typeof z=="function")return function(){z.apply(Y,arguments)}}function E(Y,z){var L=!1;function T(O){L||(L=!0,r.reject(Y,O))}function b(O){L||(L=!0,r.resolve(Y,O))}var N=D(function(){z(b,T)});N.status==="error"&&T(N.value)}function D(Y,z){var L={};try{L.value=Y(z),L.status="success"}catch(T){L.status="error",L.value=T}return L}(g.exports=f).prototype.finally=function(Y){if(typeof Y!="function")return this;var z=this.constructor;return this.then(function(L){return z.resolve(Y()).then(function(){return L})},function(L){return z.resolve(Y()).then(function(){throw L})})},f.prototype.catch=function(Y){return this.then(null,Y)},f.prototype.then=function(Y,z){if(typeof Y!="function"&&this.state===A||typeof z!="function"&&this.state===t)return this;var L=new this.constructor(o);return this.state!==a?Q(L,this.state===A?Y:z,this.outcome):this.queue.push(new h(L,Y,z)),L},h.prototype.callFulfilled=function(Y){r.resolve(this.promise,Y)},h.prototype.otherCallFulfilled=function(Y){Q(this.promise,this.onFulfilled,Y)},h.prototype.callRejected=function(Y){r.reject(this.promise,Y)},h.prototype.otherCallRejected=function(Y){Q(this.promise,this.onRejected,Y)},r.resolve=function(Y,z){var L=D(d,z);if(L.status==="error")return r.reject(Y,L.value);var T=L.value;if(T)E(Y,T);else{Y.state=A,Y.outcome=z;for(var b=-1,N=Y.queue.length;++b<N;)Y.queue[b].callFulfilled(z)}return Y},r.reject=function(Y,z){Y.state=t,Y.outcome=z;for(var L=-1,T=Y.queue.length;++L<T;)Y.queue[L].callRejected(z);return Y},f.resolve=function(Y){return Y instanceof this?Y:r.resolve(new this(o),Y)},f.reject=function(Y){var z=new this(o);return r.reject(z,Y)},f.all=function(Y){var z=this;if(Object.prototype.toString.call(Y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=Y.length,T=!1;if(!L)return this.resolve([]);for(var b=new Array(L),N=0,O=-1,gA=new this(o);++O<L;)oA(Y[O],O);return gA;function oA(q,Z){z.resolve(q).then(function(x){b[Z]=x,++N!==L||T||(T=!0,r.resolve(gA,b))},function(x){T||(T=!0,r.reject(gA,x))})}},f.race=function(Y){var z=this;if(Object.prototype.toString.call(Y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=Y.length,T=!1;if(!L)return this.resolve([]);for(var b=-1,N=new this(o);++b<L;)O=Y[b],z.resolve(O).then(function(gA){T||(T=!0,r.resolve(N,gA))},function(gA){T||(T=!0,r.reject(N,gA))});var O;return N}},{immediate:36}],38:[function(s,g,u){var w={};(0,s("./lib/utils/common").assign)(w,s("./lib/deflate"),s("./lib/inflate"),s("./lib/zlib/constants")),g.exports=w},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(s,g,u){var w=s("./zlib/deflate"),o=s("./utils/common"),r=s("./utils/strings"),t=s("./zlib/messages"),A=s("./zlib/zstream"),a=Object.prototype.toString,f=0,h=-1,Q=0,d=8;function E(Y){if(!(this instanceof E))return new E(Y);this.options=o.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:Q,to:""},Y||{});var z=this.options;z.raw&&0<z.windowBits?z.windowBits=-z.windowBits:z.gzip&&0<z.windowBits&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var L=w.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(L!==f)throw new Error(t[L]);if(z.header&&w.deflateSetHeader(this.strm,z.header),z.dictionary){var T;if(T=typeof z.dictionary=="string"?r.string2buf(z.dictionary):a.call(z.dictionary)==="[object ArrayBuffer]"?new Uint8Array(z.dictionary):z.dictionary,(L=w.deflateSetDictionary(this.strm,T))!==f)throw new Error(t[L]);this._dict_set=!0}}function D(Y,z){var L=new E(z);if(L.push(Y,!0),L.err)throw L.msg||t[L.err];return L.result}E.prototype.push=function(Y,z){var L,T,b=this.strm,N=this.options.chunkSize;if(this.ended)return!1;T=z===~~z?z:z===!0?4:0,typeof Y=="string"?b.input=r.string2buf(Y):a.call(Y)==="[object ArrayBuffer]"?b.input=new Uint8Array(Y):b.input=Y,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new o.Buf8(N),b.next_out=0,b.avail_out=N),(L=w.deflate(b,T))!==1&&L!==f)return this.onEnd(L),!(this.ended=!0);b.avail_out!==0&&(b.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(o.shrinkBuf(b.output,b.next_out))):this.onData(o.shrinkBuf(b.output,b.next_out)))}while((0<b.avail_in||b.avail_out===0)&&L!==1);return T===4?(L=w.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===f):T!==2||(this.onEnd(f),!(b.avail_out=0))},E.prototype.onData=function(Y){this.chunks.push(Y)},E.prototype.onEnd=function(Y){Y===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=Y,this.msg=this.strm.msg},u.Deflate=E,u.deflate=D,u.deflateRaw=function(Y,z){return(z=z||{}).raw=!0,D(Y,z)},u.gzip=function(Y,z){return(z=z||{}).gzip=!0,D(Y,z)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(s,g,u){var w=s("./zlib/inflate"),o=s("./utils/common"),r=s("./utils/strings"),t=s("./zlib/constants"),A=s("./zlib/messages"),a=s("./zlib/zstream"),f=s("./zlib/gzheader"),h=Object.prototype.toString;function Q(E){if(!(this instanceof Q))return new Q(E);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},E||{});var D=this.options;D.raw&&0<=D.windowBits&&D.windowBits<16&&(D.windowBits=-D.windowBits,D.windowBits===0&&(D.windowBits=-15)),!(0<=D.windowBits&&D.windowBits<16)||E&&E.windowBits||(D.windowBits+=32),15<D.windowBits&&D.windowBits<48&&!(15&D.windowBits)&&(D.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var Y=w.inflateInit2(this.strm,D.windowBits);if(Y!==t.Z_OK)throw new Error(A[Y]);this.header=new f,w.inflateGetHeader(this.strm,this.header)}function d(E,D){var Y=new Q(D);if(Y.push(E,!0),Y.err)throw Y.msg||A[Y.err];return Y.result}Q.prototype.push=function(E,D){var Y,z,L,T,b,N,O=this.strm,gA=this.options.chunkSize,oA=this.options.dictionary,q=!1;if(this.ended)return!1;z=D===~~D?D:D===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof E=="string"?O.input=r.binstring2buf(E):h.call(E)==="[object ArrayBuffer]"?O.input=new Uint8Array(E):O.input=E,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(gA),O.next_out=0,O.avail_out=gA),(Y=w.inflate(O,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&oA&&(N=typeof oA=="string"?r.string2buf(oA):h.call(oA)==="[object ArrayBuffer]"?new Uint8Array(oA):oA,Y=w.inflateSetDictionary(this.strm,N)),Y===t.Z_BUF_ERROR&&q===!0&&(Y=t.Z_OK,q=!1),Y!==t.Z_STREAM_END&&Y!==t.Z_OK)return this.onEnd(Y),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&Y!==t.Z_STREAM_END&&(O.avail_in!==0||z!==t.Z_FINISH&&z!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=r.utf8border(O.output,O.next_out),T=O.next_out-L,b=r.buf2string(O.output,L),O.next_out=T,O.avail_out=gA-T,T&&o.arraySet(O.output,O.output,L,T,0),this.onData(b)):this.onData(o.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(q=!0)}while((0<O.avail_in||O.avail_out===0)&&Y!==t.Z_STREAM_END);return Y===t.Z_STREAM_END&&(z=t.Z_FINISH),z===t.Z_FINISH?(Y=w.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===t.Z_OK):z!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(O.avail_out=0))},Q.prototype.onData=function(E){this.chunks.push(E)},Q.prototype.onEnd=function(E){E===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},u.Inflate=Q,u.inflate=d,u.inflateRaw=function(E,D){return(D=D||{}).raw=!0,d(E,D)},u.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(s,g,u){var w=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";u.assign=function(t){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var a=A.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var f in a)a.hasOwnProperty(f)&&(t[f]=a[f])}}return t},u.shrinkBuf=function(t,A){return t.length===A?t:t.subarray?t.subarray(0,A):(t.length=A,t)};var o={arraySet:function(t,A,a,f,h){if(A.subarray&&t.subarray)t.set(A.subarray(a,a+f),h);else for(var Q=0;Q<f;Q++)t[h+Q]=A[a+Q]},flattenChunks:function(t){var A,a,f,h,Q,d;for(A=f=0,a=t.length;A<a;A++)f+=t[A].length;for(d=new Uint8Array(f),A=h=0,a=t.length;A<a;A++)Q=t[A],d.set(Q,h),h+=Q.length;return d}},r={arraySet:function(t,A,a,f,h){for(var Q=0;Q<f;Q++)t[h+Q]=A[a+Q]},flattenChunks:function(t){return[].concat.apply([],t)}};u.setTyped=function(t){t?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,o)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,r))},u.setTyped(w)},{}],42:[function(s,g,u){var w=s("./common"),o=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var t=new w.Buf8(256),A=0;A<256;A++)t[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;function a(f,h){if(h<65537&&(f.subarray&&r||!f.subarray&&o))return String.fromCharCode.apply(null,w.shrinkBuf(f,h));for(var Q="",d=0;d<h;d++)Q+=String.fromCharCode(f[d]);return Q}t[254]=t[254]=1,u.string2buf=function(f){var h,Q,d,E,D,Y=f.length,z=0;for(E=0;E<Y;E++)(64512&(Q=f.charCodeAt(E)))==55296&&E+1<Y&&(64512&(d=f.charCodeAt(E+1)))==56320&&(Q=65536+(Q-55296<<10)+(d-56320),E++),z+=Q<128?1:Q<2048?2:Q<65536?3:4;for(h=new w.Buf8(z),E=D=0;D<z;E++)(64512&(Q=f.charCodeAt(E)))==55296&&E+1<Y&&(64512&(d=f.charCodeAt(E+1)))==56320&&(Q=65536+(Q-55296<<10)+(d-56320),E++),Q<128?h[D++]=Q:(Q<2048?h[D++]=192|Q>>>6:(Q<65536?h[D++]=224|Q>>>12:(h[D++]=240|Q>>>18,h[D++]=128|Q>>>12&63),h[D++]=128|Q>>>6&63),h[D++]=128|63&Q);return h},u.buf2binstring=function(f){return a(f,f.length)},u.binstring2buf=function(f){for(var h=new w.Buf8(f.length),Q=0,d=h.length;Q<d;Q++)h[Q]=f.charCodeAt(Q);return h},u.buf2string=function(f,h){var Q,d,E,D,Y=h||f.length,z=new Array(2*Y);for(Q=d=0;Q<Y;)if((E=f[Q++])<128)z[d++]=E;else if(4<(D=t[E]))z[d++]=65533,Q+=D-1;else{for(E&=D===2?31:D===3?15:7;1<D&&Q<Y;)E=E<<6|63&f[Q++],D--;1<D?z[d++]=65533:E<65536?z[d++]=E:(E-=65536,z[d++]=55296|E>>10&1023,z[d++]=56320|1023&E)}return a(z,d)},u.utf8border=function(f,h){var Q;for((h=h||f.length)>f.length&&(h=f.length),Q=h-1;0<=Q&&(192&f[Q])==128;)Q--;return Q<0||Q===0?h:Q+t[f[Q]]>h?Q:h}},{"./common":41}],43:[function(s,g,u){g.exports=function(w,o,r,t){for(var A=65535&w|0,a=w>>>16&65535|0,f=0;r!==0;){for(r-=f=2e3<r?2e3:r;a=a+(A=A+o[t++]|0)|0,--f;);A%=65521,a%=65521}return A|a<<16|0}},{}],44:[function(s,g,u){g.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(s,g,u){var w=function(){for(var o,r=[],t=0;t<256;t++){o=t;for(var A=0;A<8;A++)o=1&o?3988292384^o>>>1:o>>>1;r[t]=o}return r}();g.exports=function(o,r,t,A){var a=w,f=A+t;o^=-1;for(var h=A;h<f;h++)o=o>>>8^a[255&(o^r[h])];return-1^o}},{}],46:[function(s,g,u){var w,o=s("../utils/common"),r=s("./trees"),t=s("./adler32"),A=s("./crc32"),a=s("./messages"),f=0,h=4,Q=0,d=-2,E=-1,D=4,Y=2,z=8,L=9,T=286,b=30,N=19,O=2*T+1,gA=15,oA=3,q=258,Z=q+oA+1,x=42,X=113,B=1,v=2,bA=3,wA=4;function tA(C,lA){return C.msg=a[lA],lA}function nA(C){return(C<<1)-(4<C?9:0)}function KA(C){for(var lA=C.length;0<=--lA;)C[lA]=0}function DA(C){var lA=C.state,rA=lA.pending;rA>C.avail_out&&(rA=C.avail_out),rA!==0&&(o.arraySet(C.output,lA.pending_buf,lA.pending_out,rA,C.next_out),C.next_out+=rA,lA.pending_out+=rA,C.total_out+=rA,C.avail_out-=rA,lA.pending-=rA,lA.pending===0&&(lA.pending_out=0))}function FA(C,lA){r._tr_flush_block(C,0<=C.block_start?C.block_start:-1,C.strstart-C.block_start,lA),C.block_start=C.strstart,DA(C.strm)}function cA(C,lA){C.pending_buf[C.pending++]=lA}function yA(C,lA){C.pending_buf[C.pending++]=lA>>>8&255,C.pending_buf[C.pending++]=255&lA}function zA(C,lA){var rA,p,G=C.max_chain_length,iA=C.strstart,MA=C.prev_length,m=C.nice_match,y=C.strstart>C.w_size-Z?C.strstart-(C.w_size-Z):0,uA=C.window,CA=C.w_mask,$A=C.prev,ZA=C.strstart+q,kA=uA[iA+MA-1],de=uA[iA+MA];C.prev_length>=C.good_match&&(G>>=2),m>C.lookahead&&(m=C.lookahead);do if(uA[(rA=lA)+MA]===de&&uA[rA+MA-1]===kA&&uA[rA]===uA[iA]&&uA[++rA]===uA[iA+1]){iA+=2,rA++;do;while(uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&uA[++iA]===uA[++rA]&&iA<ZA);if(p=q-(ZA-iA),iA=ZA-q,MA<p){if(C.match_start=lA,m<=(MA=p))break;kA=uA[iA+MA-1],de=uA[iA+MA]}}while((lA=$A[lA&CA])>y&&--G!=0);return MA<=C.lookahead?MA:C.lookahead}function mA(C){var lA,rA,p,G,iA,MA,m,y,uA,CA,$A=C.w_size;do{if(G=C.window_size-C.lookahead-C.strstart,C.strstart>=$A+($A-Z)){for(o.arraySet(C.window,C.window,$A,$A,0),C.match_start-=$A,C.strstart-=$A,C.block_start-=$A,lA=rA=C.hash_size;p=C.head[--lA],C.head[lA]=$A<=p?p-$A:0,--rA;);for(lA=rA=$A;p=C.prev[--lA],C.prev[lA]=$A<=p?p-$A:0,--rA;);G+=$A}if(C.strm.avail_in===0)break;if(MA=C.strm,m=C.window,y=C.strstart+C.lookahead,uA=G,CA=void 0,CA=MA.avail_in,uA<CA&&(CA=uA),rA=CA===0?0:(MA.avail_in-=CA,o.arraySet(m,MA.input,MA.next_in,CA,y),MA.state.wrap===1?MA.adler=t(MA.adler,m,CA,y):MA.state.wrap===2&&(MA.adler=A(MA.adler,m,CA,y)),MA.next_in+=CA,MA.total_in+=CA,CA),C.lookahead+=rA,C.lookahead+C.insert>=oA)for(iA=C.strstart-C.insert,C.ins_h=C.window[iA],C.ins_h=(C.ins_h<<C.hash_shift^C.window[iA+1])&C.hash_mask;C.insert&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[iA+oA-1])&C.hash_mask,C.prev[iA&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=iA,iA++,C.insert--,!(C.lookahead+C.insert<oA)););}while(C.lookahead<Z&&C.strm.avail_in!==0)}function HA(C,lA){for(var rA,p;;){if(C.lookahead<Z){if(mA(C),C.lookahead<Z&&lA===f)return B;if(C.lookahead===0)break}if(rA=0,C.lookahead>=oA&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+oA-1])&C.hash_mask,rA=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart),rA!==0&&C.strstart-rA<=C.w_size-Z&&(C.match_length=zA(C,rA)),C.match_length>=oA)if(p=r._tr_tally(C,C.strstart-C.match_start,C.match_length-oA),C.lookahead-=C.match_length,C.match_length<=C.max_lazy_match&&C.lookahead>=oA){for(C.match_length--;C.strstart++,C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+oA-1])&C.hash_mask,rA=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart,--C.match_length!=0;);C.strstart++}else C.strstart+=C.match_length,C.match_length=0,C.ins_h=C.window[C.strstart],C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+1])&C.hash_mask;else p=r._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++;if(p&&(FA(C,!1),C.strm.avail_out===0))return B}return C.insert=C.strstart<oA-1?C.strstart:oA-1,lA===h?(FA(C,!0),C.strm.avail_out===0?bA:wA):C.last_lit&&(FA(C,!1),C.strm.avail_out===0)?B:v}function pA(C,lA){for(var rA,p,G;;){if(C.lookahead<Z){if(mA(C),C.lookahead<Z&&lA===f)return B;if(C.lookahead===0)break}if(rA=0,C.lookahead>=oA&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+oA-1])&C.hash_mask,rA=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart),C.prev_length=C.match_length,C.prev_match=C.match_start,C.match_length=oA-1,rA!==0&&C.prev_length<C.max_lazy_match&&C.strstart-rA<=C.w_size-Z&&(C.match_length=zA(C,rA),C.match_length<=5&&(C.strategy===1||C.match_length===oA&&4096<C.strstart-C.match_start)&&(C.match_length=oA-1)),C.prev_length>=oA&&C.match_length<=C.prev_length){for(G=C.strstart+C.lookahead-oA,p=r._tr_tally(C,C.strstart-1-C.prev_match,C.prev_length-oA),C.lookahead-=C.prev_length-1,C.prev_length-=2;++C.strstart<=G&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+oA-1])&C.hash_mask,rA=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart),--C.prev_length!=0;);if(C.match_available=0,C.match_length=oA-1,C.strstart++,p&&(FA(C,!1),C.strm.avail_out===0))return B}else if(C.match_available){if((p=r._tr_tally(C,0,C.window[C.strstart-1]))&&FA(C,!1),C.strstart++,C.lookahead--,C.strm.avail_out===0)return B}else C.match_available=1,C.strstart++,C.lookahead--}return C.match_available&&(p=r._tr_tally(C,0,C.window[C.strstart-1]),C.match_available=0),C.insert=C.strstart<oA-1?C.strstart:oA-1,lA===h?(FA(C,!0),C.strm.avail_out===0?bA:wA):C.last_lit&&(FA(C,!1),C.strm.avail_out===0)?B:v}function NA(C,lA,rA,p,G){this.good_length=C,this.max_lazy=lA,this.nice_length=rA,this.max_chain=p,this.func=G}function IA(){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=z,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*O),this.dyn_dtree=new o.Buf16(2*(2*b+1)),this.bl_tree=new o.Buf16(2*(2*N+1)),KA(this.dyn_ltree),KA(this.dyn_dtree),KA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(gA+1),this.heap=new o.Buf16(2*T+1),KA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*T+1),KA(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 BA(C){var lA;return C&&C.state?(C.total_in=C.total_out=0,C.data_type=Y,(lA=C.state).pending=0,lA.pending_out=0,lA.wrap<0&&(lA.wrap=-lA.wrap),lA.status=lA.wrap?x:X,C.adler=lA.wrap===2?0:1,lA.last_flush=f,r._tr_init(lA),Q):tA(C,d)}function hA(C){var lA=BA(C);return lA===Q&&function(rA){rA.window_size=2*rA.w_size,KA(rA.head),rA.max_lazy_match=w[rA.level].max_lazy,rA.good_match=w[rA.level].good_length,rA.nice_match=w[rA.level].nice_length,rA.max_chain_length=w[rA.level].max_chain,rA.strstart=0,rA.block_start=0,rA.lookahead=0,rA.insert=0,rA.match_length=rA.prev_length=oA-1,rA.match_available=0,rA.ins_h=0}(C.state),lA}function R(C,lA,rA,p,G,iA){if(!C)return d;var MA=1;if(lA===E&&(lA=6),p<0?(MA=0,p=-p):15<p&&(MA=2,p-=16),G<1||L<G||rA!==z||p<8||15<p||lA<0||9<lA||iA<0||D<iA)return tA(C,d);p===8&&(p=9);var m=new IA;return(C.state=m).strm=C,m.wrap=MA,m.gzhead=null,m.w_bits=p,m.w_size=1<<m.w_bits,m.w_mask=m.w_size-1,m.hash_bits=G+7,m.hash_size=1<<m.hash_bits,m.hash_mask=m.hash_size-1,m.hash_shift=~~((m.hash_bits+oA-1)/oA),m.window=new o.Buf8(2*m.w_size),m.head=new o.Buf16(m.hash_size),m.prev=new o.Buf16(m.w_size),m.lit_bufsize=1<<G+6,m.pending_buf_size=4*m.lit_bufsize,m.pending_buf=new o.Buf8(m.pending_buf_size),m.d_buf=1*m.lit_bufsize,m.l_buf=3*m.lit_bufsize,m.level=lA,m.strategy=iA,m.method=rA,hA(C)}w=[new NA(0,0,0,0,function(C,lA){var rA=65535;for(rA>C.pending_buf_size-5&&(rA=C.pending_buf_size-5);;){if(C.lookahead<=1){if(mA(C),C.lookahead===0&&lA===f)return B;if(C.lookahead===0)break}C.strstart+=C.lookahead,C.lookahead=0;var p=C.block_start+rA;if((C.strstart===0||C.strstart>=p)&&(C.lookahead=C.strstart-p,C.strstart=p,FA(C,!1),C.strm.avail_out===0)||C.strstart-C.block_start>=C.w_size-Z&&(FA(C,!1),C.strm.avail_out===0))return B}return C.insert=0,lA===h?(FA(C,!0),C.strm.avail_out===0?bA:wA):(C.strstart>C.block_start&&(FA(C,!1),C.strm.avail_out),B)}),new NA(4,4,8,4,HA),new NA(4,5,16,8,HA),new NA(4,6,32,32,HA),new NA(4,4,16,16,pA),new NA(8,16,32,32,pA),new NA(8,16,128,128,pA),new NA(8,32,128,256,pA),new NA(32,128,258,1024,pA),new NA(32,258,258,4096,pA)],u.deflateInit=function(C,lA){return R(C,lA,z,15,8,0)},u.deflateInit2=R,u.deflateReset=hA,u.deflateResetKeep=BA,u.deflateSetHeader=function(C,lA){return C&&C.state?C.state.wrap!==2?d:(C.state.gzhead=lA,Q):d},u.deflate=function(C,lA){var rA,p,G,iA;if(!C||!C.state||5<lA||lA<0)return C?tA(C,d):d;if(p=C.state,!C.output||!C.input&&C.avail_in!==0||p.status===666&&lA!==h)return tA(C,C.avail_out===0?-5:d);if(p.strm=C,rA=p.last_flush,p.last_flush=lA,p.status===x)if(p.wrap===2)C.adler=0,cA(p,31),cA(p,139),cA(p,8),p.gzhead?(cA(p,(p.gzhead.text?1:0)+(p.gzhead.hcrc?2:0)+(p.gzhead.extra?4:0)+(p.gzhead.name?8:0)+(p.gzhead.comment?16:0)),cA(p,255&p.gzhead.time),cA(p,p.gzhead.time>>8&255),cA(p,p.gzhead.time>>16&255),cA(p,p.gzhead.time>>24&255),cA(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),cA(p,255&p.gzhead.os),p.gzhead.extra&&p.gzhead.extra.length&&(cA(p,255&p.gzhead.extra.length),cA(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&(C.adler=A(C.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=69):(cA(p,0),cA(p,0),cA(p,0),cA(p,0),cA(p,0),cA(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),cA(p,3),p.status=X);else{var MA=z+(p.w_bits-8<<4)<<8;MA|=(2<=p.strategy||p.level<2?0:p.level<6?1:p.level===6?2:3)<<6,p.strstart!==0&&(MA|=32),MA+=31-MA%31,p.status=X,yA(p,MA),p.strstart!==0&&(yA(p,C.adler>>>16),yA(p,65535&C.adler)),C.adler=1}if(p.status===69)if(p.gzhead.extra){for(G=p.pending;p.gzindex<(65535&p.gzhead.extra.length)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>G&&(C.adler=A(C.adler,p.pending_buf,p.pending-G,G)),DA(C),G=p.pending,p.pending!==p.pending_buf_size));)cA(p,255&p.gzhead.extra[p.gzindex]),p.gzindex++;p.gzhead.hcrc&&p.pending>G&&(C.adler=A(C.adler,p.pending_buf,p.pending-G,G)),p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=73)}else p.status=73;if(p.status===73)if(p.gzhead.name){G=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>G&&(C.adler=A(C.adler,p.pending_buf,p.pending-G,G)),DA(C),G=p.pending,p.pending===p.pending_buf_size)){iA=1;break}iA=p.gzindex<p.gzhead.name.length?255&p.gzhead.name.charCodeAt(p.gzindex++):0,cA(p,iA)}while(iA!==0);p.gzhead.hcrc&&p.pending>G&&(C.adler=A(C.adler,p.pending_buf,p.pending-G,G)),iA===0&&(p.gzindex=0,p.status=91)}else p.status=91;if(p.status===91)if(p.gzhead.comment){G=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>G&&(C.adler=A(C.adler,p.pending_buf,p.pending-G,G)),DA(C),G=p.pending,p.pending===p.pending_buf_size)){iA=1;break}iA=p.gzindex<p.gzhead.comment.length?255&p.gzhead.comment.charCodeAt(p.gzindex++):0,cA(p,iA)}while(iA!==0);p.gzhead.hcrc&&p.pending>G&&(C.adler=A(C.adler,p.pending_buf,p.pending-G,G)),iA===0&&(p.status=103)}else p.status=103;if(p.status===103&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&DA(C),p.pending+2<=p.pending_buf_size&&(cA(p,255&C.adler),cA(p,C.adler>>8&255),C.adler=0,p.status=X)):p.status=X),p.pending!==0){if(DA(C),C.avail_out===0)return p.last_flush=-1,Q}else if(C.avail_in===0&&nA(lA)<=nA(rA)&&lA!==h)return tA(C,-5);if(p.status===666&&C.avail_in!==0)return tA(C,-5);if(C.avail_in!==0||p.lookahead!==0||lA!==f&&p.status!==666){var m=p.strategy===2?function(y,uA){for(var CA;;){if(y.lookahead===0&&(mA(y),y.lookahead===0)){if(uA===f)return B;break}if(y.match_length=0,CA=r._tr_tally(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++,CA&&(FA(y,!1),y.strm.avail_out===0))return B}return y.insert=0,uA===h?(FA(y,!0),y.strm.avail_out===0?bA:wA):y.last_lit&&(FA(y,!1),y.strm.avail_out===0)?B:v}(p,lA):p.strategy===3?function(y,uA){for(var CA,$A,ZA,kA,de=y.window;;){if(y.lookahead<=q){if(mA(y),y.lookahead<=q&&uA===f)return B;if(y.lookahead===0)break}if(y.match_length=0,y.lookahead>=oA&&0<y.strstart&&($A=de[ZA=y.strstart-1])===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]){kA=y.strstart+q;do;while($A===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]&&$A===de[++ZA]&&ZA<kA);y.match_length=q-(kA-ZA),y.match_length>y.lookahead&&(y.match_length=y.lookahead)}if(y.match_length>=oA?(CA=r._tr_tally(y,1,y.match_length-oA),y.lookahead-=y.match_length,y.strstart+=y.match_length,y.match_length=0):(CA=r._tr_tally(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++),CA&&(FA(y,!1),y.strm.avail_out===0))return B}return y.insert=0,uA===h?(FA(y,!0),y.strm.avail_out===0?bA:wA):y.last_lit&&(FA(y,!1),y.strm.avail_out===0)?B:v}(p,lA):w[p.level].func(p,lA);if(m!==bA&&m!==wA||(p.status=666),m===B||m===bA)return C.avail_out===0&&(p.last_flush=-1),Q;if(m===v&&(lA===1?r._tr_align(p):lA!==5&&(r._tr_stored_block(p,0,0,!1),lA===3&&(KA(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),DA(C),C.avail_out===0))return p.last_flush=-1,Q}return lA!==h?Q:p.wrap<=0?1:(p.wrap===2?(cA(p,255&C.adler),cA(p,C.adler>>8&255),cA(p,C.adler>>16&255),cA(p,C.adler>>24&255),cA(p,255&C.total_in),cA(p,C.total_in>>8&255),cA(p,C.total_in>>16&255),cA(p,C.total_in>>24&255)):(yA(p,C.adler>>>16),yA(p,65535&C.adler)),DA(C),0<p.wrap&&(p.wrap=-p.wrap),p.pending!==0?Q:1)},u.deflateEnd=function(C){var lA;return C&&C.state?(lA=C.state.status)!==x&&lA!==69&&lA!==73&&lA!==91&&lA!==103&&lA!==X&&lA!==666?tA(C,d):(C.state=null,lA===X?tA(C,-3):Q):d},u.deflateSetDictionary=function(C,lA){var rA,p,G,iA,MA,m,y,uA,CA=lA.length;if(!C||!C.state||(iA=(rA=C.state).wrap)===2||iA===1&&rA.status!==x||rA.lookahead)return d;for(iA===1&&(C.adler=t(C.adler,lA,CA,0)),rA.wrap=0,CA>=rA.w_size&&(iA===0&&(KA(rA.head),rA.strstart=0,rA.block_start=0,rA.insert=0),uA=new o.Buf8(rA.w_size),o.arraySet(uA,lA,CA-rA.w_size,rA.w_size,0),lA=uA,CA=rA.w_size),MA=C.avail_in,m=C.next_in,y=C.input,C.avail_in=CA,C.next_in=0,C.input=lA,mA(rA);rA.lookahead>=oA;){for(p=rA.strstart,G=rA.lookahead-(oA-1);rA.ins_h=(rA.ins_h<<rA.hash_shift^rA.window[p+oA-1])&rA.hash_mask,rA.prev[p&rA.w_mask]=rA.head[rA.ins_h],rA.head[rA.ins_h]=p,p++,--G;);rA.strstart=p,rA.lookahead=oA-1,mA(rA)}return rA.strstart+=rA.lookahead,rA.block_start=rA.strstart,rA.insert=rA.lookahead,rA.lookahead=0,rA.match_length=rA.prev_length=oA-1,rA.match_available=0,C.next_in=m,C.input=y,C.avail_in=MA,rA.wrap=iA,Q},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(s,g,u){g.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(s,g,u){g.exports=function(w,o){var r,t,A,a,f,h,Q,d,E,D,Y,z,L,T,b,N,O,gA,oA,q,Z,x,X,B,v;r=w.state,t=w.next_in,B=w.input,A=t+(w.avail_in-5),a=w.next_out,v=w.output,f=a-(o-w.avail_out),h=a+(w.avail_out-257),Q=r.dmax,d=r.wsize,E=r.whave,D=r.wnext,Y=r.window,z=r.hold,L=r.bits,T=r.lencode,b=r.distcode,N=(1<<r.lenbits)-1,O=(1<<r.distbits)-1;A:do{L<15&&(z+=B[t++]<<L,L+=8,z+=B[t++]<<L,L+=8),gA=T[z&N];e:for(;;){if(z>>>=oA=gA>>>24,L-=oA,(oA=gA>>>16&255)===0)v[a++]=65535&gA;else{if(!(16&oA)){if(!(64&oA)){gA=T[(65535&gA)+(z&(1<<oA)-1)];continue e}if(32&oA){r.mode=12;break A}w.msg="invalid literal/length code",r.mode=30;break A}q=65535&gA,(oA&=15)&&(L<oA&&(z+=B[t++]<<L,L+=8),q+=z&(1<<oA)-1,z>>>=oA,L-=oA),L<15&&(z+=B[t++]<<L,L+=8,z+=B[t++]<<L,L+=8),gA=b[z&O];t:for(;;){if(z>>>=oA=gA>>>24,L-=oA,!(16&(oA=gA>>>16&255))){if(!(64&oA)){gA=b[(65535&gA)+(z&(1<<oA)-1)];continue t}w.msg="invalid distance code",r.mode=30;break A}if(Z=65535&gA,L<(oA&=15)&&(z+=B[t++]<<L,(L+=8)<oA&&(z+=B[t++]<<L,L+=8)),Q<(Z+=z&(1<<oA)-1)){w.msg="invalid distance too far back",r.mode=30;break A}if(z>>>=oA,L-=oA,(oA=a-f)<Z){if(E<(oA=Z-oA)&&r.sane){w.msg="invalid distance too far back",r.mode=30;break A}if(X=Y,(x=0)===D){if(x+=d-oA,oA<q){for(q-=oA;v[a++]=Y[x++],--oA;);x=a-Z,X=v}}else if(D<oA){if(x+=d+D-oA,(oA-=D)<q){for(q-=oA;v[a++]=Y[x++],--oA;);if(x=0,D<q){for(q-=oA=D;v[a++]=Y[x++],--oA;);x=a-Z,X=v}}}else if(x+=D-oA,oA<q){for(q-=oA;v[a++]=Y[x++],--oA;);x=a-Z,X=v}for(;2<q;)v[a++]=X[x++],v[a++]=X[x++],v[a++]=X[x++],q-=3;q&&(v[a++]=X[x++],1<q&&(v[a++]=X[x++]))}else{for(x=a-Z;v[a++]=v[x++],v[a++]=v[x++],v[a++]=v[x++],2<(q-=3););q&&(v[a++]=v[x++],1<q&&(v[a++]=v[x++]))}break}}break}}while(t<A&&a<h);t-=q=L>>3,z&=(1<<(L-=q<<3))-1,w.next_in=t,w.next_out=a,w.avail_in=t<A?A-t+5:5-(t-A),w.avail_out=a<h?h-a+257:257-(a-h),r.hold=z,r.bits=L}},{}],49:[function(s,g,u){var w=s("../utils/common"),o=s("./adler32"),r=s("./crc32"),t=s("./inffast"),A=s("./inftrees"),a=1,f=2,h=0,Q=-2,d=1,E=852,D=592;function Y(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function z(){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 w.Buf16(320),this.work=new w.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(x){var X;return x&&x.state?(X=x.state,x.total_in=x.total_out=X.total=0,x.msg="",X.wrap&&(x.adler=1&X.wrap),X.mode=d,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new w.Buf32(E),X.distcode=X.distdyn=new w.Buf32(D),X.sane=1,X.back=-1,h):Q}function T(x){var X;return x&&x.state?((X=x.state).wsize=0,X.whave=0,X.wnext=0,L(x)):Q}function b(x,X){var B,v;return x&&x.state?(v=x.state,X<0?(B=0,X=-X):(B=1+(X>>4),X<48&&(X&=15)),X&&(X<8||15<X)?Q:(v.window!==null&&v.wbits!==X&&(v.window=null),v.wrap=B,v.wbits=X,T(x))):Q}function N(x,X){var B,v;return x?(v=new z,(x.state=v).window=null,(B=b(x,X))!==h&&(x.state=null),B):Q}var O,gA,oA=!0;function q(x){if(oA){var X;for(O=new w.Buf32(512),gA=new w.Buf32(32),X=0;X<144;)x.lens[X++]=8;for(;X<256;)x.lens[X++]=9;for(;X<280;)x.lens[X++]=7;for(;X<288;)x.lens[X++]=8;for(A(a,x.lens,0,288,O,0,x.work,{bits:9}),X=0;X<32;)x.lens[X++]=5;A(f,x.lens,0,32,gA,0,x.work,{bits:5}),oA=!1}x.lencode=O,x.lenbits=9,x.distcode=gA,x.distbits=5}function Z(x,X,B,v){var bA,wA=x.state;return wA.window===null&&(wA.wsize=1<<wA.wbits,wA.wnext=0,wA.whave=0,wA.window=new w.Buf8(wA.wsize)),v>=wA.wsize?(w.arraySet(wA.window,X,B-wA.wsize,wA.wsize,0),wA.wnext=0,wA.whave=wA.wsize):(v<(bA=wA.wsize-wA.wnext)&&(bA=v),w.arraySet(wA.window,X,B-v,bA,wA.wnext),(v-=bA)?(w.arraySet(wA.window,X,B-v,v,0),wA.wnext=v,wA.whave=wA.wsize):(wA.wnext+=bA,wA.wnext===wA.wsize&&(wA.wnext=0),wA.whave<wA.wsize&&(wA.whave+=bA))),0}u.inflateReset=T,u.inflateReset2=b,u.inflateResetKeep=L,u.inflateInit=function(x){return N(x,15)},u.inflateInit2=N,u.inflate=function(x,X){var B,v,bA,wA,tA,nA,KA,DA,FA,cA,yA,zA,mA,HA,pA,NA,IA,BA,hA,R,C,lA,rA,p,G=0,iA=new w.Buf8(4),MA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return Q;(B=x.state).mode===12&&(B.mode=13),tA=x.next_out,bA=x.output,KA=x.avail_out,wA=x.next_in,v=x.input,nA=x.avail_in,DA=B.hold,FA=B.bits,cA=nA,yA=KA,lA=h;A:for(;;)switch(B.mode){case d:if(B.wrap===0){B.mode=13;break}for(;FA<16;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(2&B.wrap&&DA===35615){iA[B.check=0]=255&DA,iA[1]=DA>>>8&255,B.check=r(B.check,iA,2,0),FA=DA=0,B.mode=2;break}if(B.flags=0,B.head&&(B.head.done=!1),!(1&B.wrap)||(((255&DA)<<8)+(DA>>8))%31){x.msg="incorrect header check",B.mode=30;break}if((15&DA)!=8){x.msg="unknown compression method",B.mode=30;break}if(FA-=4,C=8+(15&(DA>>>=4)),B.wbits===0)B.wbits=C;else if(C>B.wbits){x.msg="invalid window size",B.mode=30;break}B.dmax=1<<C,x.adler=B.check=1,B.mode=512&DA?10:12,FA=DA=0;break;case 2:for(;FA<16;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(B.flags=DA,(255&B.flags)!=8){x.msg="unknown compression method",B.mode=30;break}if(57344&B.flags){x.msg="unknown header flags set",B.mode=30;break}B.head&&(B.head.text=DA>>8&1),512&B.flags&&(iA[0]=255&DA,iA[1]=DA>>>8&255,B.check=r(B.check,iA,2,0)),FA=DA=0,B.mode=3;case 3:for(;FA<32;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}B.head&&(B.head.time=DA),512&B.flags&&(iA[0]=255&DA,iA[1]=DA>>>8&255,iA[2]=DA>>>16&255,iA[3]=DA>>>24&255,B.check=r(B.check,iA,4,0)),FA=DA=0,B.mode=4;case 4:for(;FA<16;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}B.head&&(B.head.xflags=255&DA,B.head.os=DA>>8),512&B.flags&&(iA[0]=255&DA,iA[1]=DA>>>8&255,B.check=r(B.check,iA,2,0)),FA=DA=0,B.mode=5;case 5:if(1024&B.flags){for(;FA<16;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}B.length=DA,B.head&&(B.head.extra_len=DA),512&B.flags&&(iA[0]=255&DA,iA[1]=DA>>>8&255,B.check=r(B.check,iA,2,0)),FA=DA=0}else B.head&&(B.head.extra=null);B.mode=6;case 6:if(1024&B.flags&&(nA<(zA=B.length)&&(zA=nA),zA&&(B.head&&(C=B.head.extra_len-B.length,B.head.extra||(B.head.extra=new Array(B.head.extra_len)),w.arraySet(B.head.extra,v,wA,zA,C)),512&B.flags&&(B.check=r(B.check,v,zA,wA)),nA-=zA,wA+=zA,B.length-=zA),B.length))break A;B.length=0,B.mode=7;case 7:if(2048&B.flags){if(nA===0)break A;for(zA=0;C=v[wA+zA++],B.head&&C&&B.length<65536&&(B.head.name+=String.fromCharCode(C)),C&&zA<nA;);if(512&B.flags&&(B.check=r(B.check,v,zA,wA)),nA-=zA,wA+=zA,C)break A}else B.head&&(B.head.name=null);B.length=0,B.mode=8;case 8:if(4096&B.flags){if(nA===0)break A;for(zA=0;C=v[wA+zA++],B.head&&C&&B.length<65536&&(B.head.comment+=String.fromCharCode(C)),C&&zA<nA;);if(512&B.flags&&(B.check=r(B.check,v,zA,wA)),nA-=zA,wA+=zA,C)break A}else B.head&&(B.head.comment=null);B.mode=9;case 9:if(512&B.flags){for(;FA<16;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(DA!==(65535&B.check)){x.msg="header crc mismatch",B.mode=30;break}FA=DA=0}B.head&&(B.head.hcrc=B.flags>>9&1,B.head.done=!0),x.adler=B.check=0,B.mode=12;break;case 10:for(;FA<32;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}x.adler=B.check=Y(DA),FA=DA=0,B.mode=11;case 11:if(B.havedict===0)return x.next_out=tA,x.avail_out=KA,x.next_in=wA,x.avail_in=nA,B.hold=DA,B.bits=FA,2;x.adler=B.check=1,B.mode=12;case 12:if(X===5||X===6)break A;case 13:if(B.last){DA>>>=7&FA,FA-=7&FA,B.mode=27;break}for(;FA<3;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}switch(B.last=1&DA,FA-=1,3&(DA>>>=1)){case 0:B.mode=14;break;case 1:if(q(B),B.mode=20,X!==6)break;DA>>>=2,FA-=2;break A;case 2:B.mode=17;break;case 3:x.msg="invalid block type",B.mode=30}DA>>>=2,FA-=2;break;case 14:for(DA>>>=7&FA,FA-=7&FA;FA<32;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if((65535&DA)!=(DA>>>16^65535)){x.msg="invalid stored block lengths",B.mode=30;break}if(B.length=65535&DA,FA=DA=0,B.mode=15,X===6)break A;case 15:B.mode=16;case 16:if(zA=B.length){if(nA<zA&&(zA=nA),KA<zA&&(zA=KA),zA===0)break A;w.arraySet(bA,v,wA,zA,tA),nA-=zA,wA+=zA,KA-=zA,tA+=zA,B.length-=zA;break}B.mode=12;break;case 17:for(;FA<14;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(B.nlen=257+(31&DA),DA>>>=5,FA-=5,B.ndist=1+(31&DA),DA>>>=5,FA-=5,B.ncode=4+(15&DA),DA>>>=4,FA-=4,286<B.nlen||30<B.ndist){x.msg="too many length or distance symbols",B.mode=30;break}B.have=0,B.mode=18;case 18:for(;B.have<B.ncode;){for(;FA<3;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}B.lens[MA[B.have++]]=7&DA,DA>>>=3,FA-=3}for(;B.have<19;)B.lens[MA[B.have++]]=0;if(B.lencode=B.lendyn,B.lenbits=7,rA={bits:B.lenbits},lA=A(0,B.lens,0,19,B.lencode,0,B.work,rA),B.lenbits=rA.bits,lA){x.msg="invalid code lengths set",B.mode=30;break}B.have=0,B.mode=19;case 19:for(;B.have<B.nlen+B.ndist;){for(;NA=(G=B.lencode[DA&(1<<B.lenbits)-1])>>>16&255,IA=65535&G,!((pA=G>>>24)<=FA);){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(IA<16)DA>>>=pA,FA-=pA,B.lens[B.have++]=IA;else{if(IA===16){for(p=pA+2;FA<p;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(DA>>>=pA,FA-=pA,B.have===0){x.msg="invalid bit length repeat",B.mode=30;break}C=B.lens[B.have-1],zA=3+(3&DA),DA>>>=2,FA-=2}else if(IA===17){for(p=pA+3;FA<p;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}FA-=pA,C=0,zA=3+(7&(DA>>>=pA)),DA>>>=3,FA-=3}else{for(p=pA+7;FA<p;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}FA-=pA,C=0,zA=11+(127&(DA>>>=pA)),DA>>>=7,FA-=7}if(B.have+zA>B.nlen+B.ndist){x.msg="invalid bit length repeat",B.mode=30;break}for(;zA--;)B.lens[B.have++]=C}}if(B.mode===30)break;if(B.lens[256]===0){x.msg="invalid code -- missing end-of-block",B.mode=30;break}if(B.lenbits=9,rA={bits:B.lenbits},lA=A(a,B.lens,0,B.nlen,B.lencode,0,B.work,rA),B.lenbits=rA.bits,lA){x.msg="invalid literal/lengths set",B.mode=30;break}if(B.distbits=6,B.distcode=B.distdyn,rA={bits:B.distbits},lA=A(f,B.lens,B.nlen,B.ndist,B.distcode,0,B.work,rA),B.distbits=rA.bits,lA){x.msg="invalid distances set",B.mode=30;break}if(B.mode=20,X===6)break A;case 20:B.mode=21;case 21:if(6<=nA&&258<=KA){x.next_out=tA,x.avail_out=KA,x.next_in=wA,x.avail_in=nA,B.hold=DA,B.bits=FA,t(x,yA),tA=x.next_out,bA=x.output,KA=x.avail_out,wA=x.next_in,v=x.input,nA=x.avail_in,DA=B.hold,FA=B.bits,B.mode===12&&(B.back=-1);break}for(B.back=0;NA=(G=B.lencode[DA&(1<<B.lenbits)-1])>>>16&255,IA=65535&G,!((pA=G>>>24)<=FA);){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(NA&&!(240&NA)){for(BA=pA,hA=NA,R=IA;NA=(G=B.lencode[R+((DA&(1<<BA+hA)-1)>>BA)])>>>16&255,IA=65535&G,!(BA+(pA=G>>>24)<=FA);){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}DA>>>=BA,FA-=BA,B.back+=BA}if(DA>>>=pA,FA-=pA,B.back+=pA,B.length=IA,NA===0){B.mode=26;break}if(32&NA){B.back=-1,B.mode=12;break}if(64&NA){x.msg="invalid literal/length code",B.mode=30;break}B.extra=15&NA,B.mode=22;case 22:if(B.extra){for(p=B.extra;FA<p;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}B.length+=DA&(1<<B.extra)-1,DA>>>=B.extra,FA-=B.extra,B.back+=B.extra}B.was=B.length,B.mode=23;case 23:for(;NA=(G=B.distcode[DA&(1<<B.distbits)-1])>>>16&255,IA=65535&G,!((pA=G>>>24)<=FA);){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(!(240&NA)){for(BA=pA,hA=NA,R=IA;NA=(G=B.distcode[R+((DA&(1<<BA+hA)-1)>>BA)])>>>16&255,IA=65535&G,!(BA+(pA=G>>>24)<=FA);){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}DA>>>=BA,FA-=BA,B.back+=BA}if(DA>>>=pA,FA-=pA,B.back+=pA,64&NA){x.msg="invalid distance code",B.mode=30;break}B.offset=IA,B.extra=15&NA,B.mode=24;case 24:if(B.extra){for(p=B.extra;FA<p;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}B.offset+=DA&(1<<B.extra)-1,DA>>>=B.extra,FA-=B.extra,B.back+=B.extra}if(B.offset>B.dmax){x.msg="invalid distance too far back",B.mode=30;break}B.mode=25;case 25:if(KA===0)break A;if(zA=yA-KA,B.offset>zA){if((zA=B.offset-zA)>B.whave&&B.sane){x.msg="invalid distance too far back",B.mode=30;break}mA=zA>B.wnext?(zA-=B.wnext,B.wsize-zA):B.wnext-zA,zA>B.length&&(zA=B.length),HA=B.window}else HA=bA,mA=tA-B.offset,zA=B.length;for(KA<zA&&(zA=KA),KA-=zA,B.length-=zA;bA[tA++]=HA[mA++],--zA;);B.length===0&&(B.mode=21);break;case 26:if(KA===0)break A;bA[tA++]=B.length,KA--,B.mode=21;break;case 27:if(B.wrap){for(;FA<32;){if(nA===0)break A;nA--,DA|=v[wA++]<<FA,FA+=8}if(yA-=KA,x.total_out+=yA,B.total+=yA,yA&&(x.adler=B.check=B.flags?r(B.check,bA,yA,tA-yA):o(B.check,bA,yA,tA-yA)),yA=KA,(B.flags?DA:Y(DA))!==B.check){x.msg="incorrect data check",B.mode=30;break}FA=DA=0}B.mode=28;case 28:if(B.wrap&&B.flags){for(;FA<32;){if(nA===0)break A;nA--,DA+=v[wA++]<<FA,FA+=8}if(DA!==(4294967295&B.total)){x.msg="incorrect length check",B.mode=30;break}FA=DA=0}B.mode=29;case 29:lA=1;break A;case 30:lA=-3;break A;case 31:return-4;case 32:default:return Q}return x.next_out=tA,x.avail_out=KA,x.next_in=wA,x.avail_in=nA,B.hold=DA,B.bits=FA,(B.wsize||yA!==x.avail_out&&B.mode<30&&(B.mode<27||X!==4))&&Z(x,x.output,x.next_out,yA-x.avail_out)?(B.mode=31,-4):(cA-=x.avail_in,yA-=x.avail_out,x.total_in+=cA,x.total_out+=yA,B.total+=yA,B.wrap&&yA&&(x.adler=B.check=B.flags?r(B.check,bA,yA,x.next_out-yA):o(B.check,bA,yA,x.next_out-yA)),x.data_type=B.bits+(B.last?64:0)+(B.mode===12?128:0)+(B.mode===20||B.mode===15?256:0),(cA==0&&yA===0||X===4)&&lA===h&&(lA=-5),lA)},u.inflateEnd=function(x){if(!x||!x.state)return Q;var X=x.state;return X.window&&(X.window=null),x.state=null,h},u.inflateGetHeader=function(x,X){var B;return x&&x.state&&2&(B=x.state).wrap?((B.head=X).done=!1,h):Q},u.inflateSetDictionary=function(x,X){var B,v=X.length;return x&&x.state?(B=x.state).wrap!==0&&B.mode!==11?Q:B.mode===11&&o(1,X,v,0)!==B.check?-3:Z(x,X,v,v)?(B.mode=31,-4):(B.havedict=1,h):Q},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(s,g,u){var w=s("../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],r=[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],t=[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],A=[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];g.exports=function(a,f,h,Q,d,E,D,Y){var z,L,T,b,N,O,gA,oA,q,Z=Y.bits,x=0,X=0,B=0,v=0,bA=0,wA=0,tA=0,nA=0,KA=0,DA=0,FA=null,cA=0,yA=new w.Buf16(16),zA=new w.Buf16(16),mA=null,HA=0;for(x=0;x<=15;x++)yA[x]=0;for(X=0;X<Q;X++)yA[f[h+X]]++;for(bA=Z,v=15;1<=v&&yA[v]===0;v--);if(v<bA&&(bA=v),v===0)return d[E++]=20971520,d[E++]=20971520,Y.bits=1,0;for(B=1;B<v&&yA[B]===0;B++);for(bA<B&&(bA=B),x=nA=1;x<=15;x++)if(nA<<=1,(nA-=yA[x])<0)return-1;if(0<nA&&(a===0||v!==1))return-1;for(zA[1]=0,x=1;x<15;x++)zA[x+1]=zA[x]+yA[x];for(X=0;X<Q;X++)f[h+X]!==0&&(D[zA[f[h+X]]++]=X);if(O=a===0?(FA=mA=D,19):a===1?(FA=o,cA-=257,mA=r,HA-=257,256):(FA=t,mA=A,-1),x=B,N=E,tA=X=DA=0,T=-1,b=(KA=1<<(wA=bA))-1,a===1&&852<KA||a===2&&592<KA)return 1;for(;;){for(gA=x-tA,q=D[X]<O?(oA=0,D[X]):D[X]>O?(oA=mA[HA+D[X]],FA[cA+D[X]]):(oA=96,0),z=1<<x-tA,B=L=1<<wA;d[N+(DA>>tA)+(L-=z)]=gA<<24|oA<<16|q|0,L!==0;);for(z=1<<x-1;DA&z;)z>>=1;if(z!==0?(DA&=z-1,DA+=z):DA=0,X++,--yA[x]==0){if(x===v)break;x=f[h+D[X]]}if(bA<x&&(DA&b)!==T){for(tA===0&&(tA=bA),N+=B,nA=1<<(wA=x-tA);wA+tA<v&&!((nA-=yA[wA+tA])<=0);)wA++,nA<<=1;if(KA+=1<<wA,a===1&&852<KA||a===2&&592<KA)return 1;d[T=DA&b]=bA<<24|wA<<16|N-E|0}}return DA!==0&&(d[N+DA]=x-tA<<24|64<<16|0),Y.bits=bA,0}},{"../utils/common":41}],51:[function(s,g,u){g.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(s,g,u){var w=s("../utils/common"),o=0,r=1;function t(G){for(var iA=G.length;0<=--iA;)G[iA]=0}var A=0,a=29,f=256,h=f+1+a,Q=30,d=19,E=2*h+1,D=15,Y=16,z=7,L=256,T=16,b=17,N=18,O=[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],gA=[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],oA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=new Array(2*(h+2));t(Z);var x=new Array(2*Q);t(x);var X=new Array(512);t(X);var B=new Array(256);t(B);var v=new Array(a);t(v);var bA,wA,tA,nA=new Array(Q);function KA(G,iA,MA,m,y){this.static_tree=G,this.extra_bits=iA,this.extra_base=MA,this.elems=m,this.max_length=y,this.has_stree=G&&G.length}function DA(G,iA){this.dyn_tree=G,this.max_code=0,this.stat_desc=iA}function FA(G){return G<256?X[G]:X[256+(G>>>7)]}function cA(G,iA){G.pending_buf[G.pending++]=255&iA,G.pending_buf[G.pending++]=iA>>>8&255}function yA(G,iA,MA){G.bi_valid>Y-MA?(G.bi_buf|=iA<<G.bi_valid&65535,cA(G,G.bi_buf),G.bi_buf=iA>>Y-G.bi_valid,G.bi_valid+=MA-Y):(G.bi_buf|=iA<<G.bi_valid&65535,G.bi_valid+=MA)}function zA(G,iA,MA){yA(G,MA[2*iA],MA[2*iA+1])}function mA(G,iA){for(var MA=0;MA|=1&G,G>>>=1,MA<<=1,0<--iA;);return MA>>>1}function HA(G,iA,MA){var m,y,uA=new Array(D+1),CA=0;for(m=1;m<=D;m++)uA[m]=CA=CA+MA[m-1]<<1;for(y=0;y<=iA;y++){var $A=G[2*y+1];$A!==0&&(G[2*y]=mA(uA[$A]++,$A))}}function pA(G){var iA;for(iA=0;iA<h;iA++)G.dyn_ltree[2*iA]=0;for(iA=0;iA<Q;iA++)G.dyn_dtree[2*iA]=0;for(iA=0;iA<d;iA++)G.bl_tree[2*iA]=0;G.dyn_ltree[2*L]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function NA(G){8<G.bi_valid?cA(G,G.bi_buf):0<G.bi_valid&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function IA(G,iA,MA,m){var y=2*iA,uA=2*MA;return G[y]<G[uA]||G[y]===G[uA]&&m[iA]<=m[MA]}function BA(G,iA,MA){for(var m=G.heap[MA],y=MA<<1;y<=G.heap_len&&(y<G.heap_len&&IA(iA,G.heap[y+1],G.heap[y],G.depth)&&y++,!IA(iA,m,G.heap[y],G.depth));)G.heap[MA]=G.heap[y],MA=y,y<<=1;G.heap[MA]=m}function hA(G,iA,MA){var m,y,uA,CA,$A=0;if(G.last_lit!==0)for(;m=G.pending_buf[G.d_buf+2*$A]<<8|G.pending_buf[G.d_buf+2*$A+1],y=G.pending_buf[G.l_buf+$A],$A++,m===0?zA(G,y,iA):(zA(G,(uA=B[y])+f+1,iA),(CA=O[uA])!==0&&yA(G,y-=v[uA],CA),zA(G,uA=FA(--m),MA),(CA=gA[uA])!==0&&yA(G,m-=nA[uA],CA)),$A<G.last_lit;);zA(G,L,iA)}function R(G,iA){var MA,m,y,uA=iA.dyn_tree,CA=iA.stat_desc.static_tree,$A=iA.stat_desc.has_stree,ZA=iA.stat_desc.elems,kA=-1;for(G.heap_len=0,G.heap_max=E,MA=0;MA<ZA;MA++)uA[2*MA]!==0?(G.heap[++G.heap_len]=kA=MA,G.depth[MA]=0):uA[2*MA+1]=0;for(;G.heap_len<2;)uA[2*(y=G.heap[++G.heap_len]=kA<2?++kA:0)]=1,G.depth[y]=0,G.opt_len--,$A&&(G.static_len-=CA[2*y+1]);for(iA.max_code=kA,MA=G.heap_len>>1;1<=MA;MA--)BA(G,uA,MA);for(y=ZA;MA=G.heap[1],G.heap[1]=G.heap[G.heap_len--],BA(G,uA,1),m=G.heap[1],G.heap[--G.heap_max]=MA,G.heap[--G.heap_max]=m,uA[2*y]=uA[2*MA]+uA[2*m],G.depth[y]=(G.depth[MA]>=G.depth[m]?G.depth[MA]:G.depth[m])+1,uA[2*MA+1]=uA[2*m+1]=y,G.heap[1]=y++,BA(G,uA,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],function(de,Te){var Re,ze,We,ee,ge,dA,k=Te.dyn_tree,J=Te.max_code,_=Te.stat_desc.static_tree,EA=Te.stat_desc.has_stree,K=Te.stat_desc.extra_bits,UA=Te.stat_desc.extra_base,se=Te.stat_desc.max_length,Me=0;for(ee=0;ee<=D;ee++)de.bl_count[ee]=0;for(k[2*de.heap[de.heap_max]+1]=0,Re=de.heap_max+1;Re<E;Re++)se<(ee=k[2*k[2*(ze=de.heap[Re])+1]+1]+1)&&(ee=se,Me++),k[2*ze+1]=ee,J<ze||(de.bl_count[ee]++,ge=0,UA<=ze&&(ge=K[ze-UA]),dA=k[2*ze],de.opt_len+=dA*(ee+ge),EA&&(de.static_len+=dA*(_[2*ze+1]+ge)));if(Me!==0){do{for(ee=se-1;de.bl_count[ee]===0;)ee--;de.bl_count[ee]--,de.bl_count[ee+1]+=2,de.bl_count[se]--,Me-=2}while(0<Me);for(ee=se;ee!==0;ee--)for(ze=de.bl_count[ee];ze!==0;)J<(We=de.heap[--Re])||(k[2*We+1]!==ee&&(de.opt_len+=(ee-k[2*We+1])*k[2*We],k[2*We+1]=ee),ze--)}}(G,iA),HA(uA,kA,G.bl_count)}function C(G,iA,MA){var m,y,uA=-1,CA=iA[1],$A=0,ZA=7,kA=4;for(CA===0&&(ZA=138,kA=3),iA[2*(MA+1)+1]=65535,m=0;m<=MA;m++)y=CA,CA=iA[2*(m+1)+1],++$A<ZA&&y===CA||($A<kA?G.bl_tree[2*y]+=$A:y!==0?(y!==uA&&G.bl_tree[2*y]++,G.bl_tree[2*T]++):$A<=10?G.bl_tree[2*b]++:G.bl_tree[2*N]++,uA=y,kA=($A=0)===CA?(ZA=138,3):y===CA?(ZA=6,3):(ZA=7,4))}function lA(G,iA,MA){var m,y,uA=-1,CA=iA[1],$A=0,ZA=7,kA=4;for(CA===0&&(ZA=138,kA=3),m=0;m<=MA;m++)if(y=CA,CA=iA[2*(m+1)+1],!(++$A<ZA&&y===CA)){if($A<kA)for(;zA(G,y,G.bl_tree),--$A!=0;);else y!==0?(y!==uA&&(zA(G,y,G.bl_tree),$A--),zA(G,T,G.bl_tree),yA(G,$A-3,2)):$A<=10?(zA(G,b,G.bl_tree),yA(G,$A-3,3)):(zA(G,N,G.bl_tree),yA(G,$A-11,7));uA=y,kA=($A=0)===CA?(ZA=138,3):y===CA?(ZA=6,3):(ZA=7,4)}}t(nA);var rA=!1;function p(G,iA,MA,m){yA(G,(A<<1)+(m?1:0),3),function(y,uA,CA,$A){NA(y),cA(y,CA),cA(y,~CA),w.arraySet(y.pending_buf,y.window,uA,CA,y.pending),y.pending+=CA}(G,iA,MA)}u._tr_init=function(G){rA||(function(){var iA,MA,m,y,uA,CA=new Array(D+1);for(y=m=0;y<a-1;y++)for(v[y]=m,iA=0;iA<1<<O[y];iA++)B[m++]=y;for(B[m-1]=y,y=uA=0;y<16;y++)for(nA[y]=uA,iA=0;iA<1<<gA[y];iA++)X[uA++]=y;for(uA>>=7;y<Q;y++)for(nA[y]=uA<<7,iA=0;iA<1<<gA[y]-7;iA++)X[256+uA++]=y;for(MA=0;MA<=D;MA++)CA[MA]=0;for(iA=0;iA<=143;)Z[2*iA+1]=8,iA++,CA[8]++;for(;iA<=255;)Z[2*iA+1]=9,iA++,CA[9]++;for(;iA<=279;)Z[2*iA+1]=7,iA++,CA[7]++;for(;iA<=287;)Z[2*iA+1]=8,iA++,CA[8]++;for(HA(Z,h+1,CA),iA=0;iA<Q;iA++)x[2*iA+1]=5,x[2*iA]=mA(iA,5);bA=new KA(Z,O,f+1,h,D),wA=new KA(x,gA,0,Q,D),tA=new KA(new Array(0),oA,0,d,z)}(),rA=!0),G.l_desc=new DA(G.dyn_ltree,bA),G.d_desc=new DA(G.dyn_dtree,wA),G.bl_desc=new DA(G.bl_tree,tA),G.bi_buf=0,G.bi_valid=0,pA(G)},u._tr_stored_block=p,u._tr_flush_block=function(G,iA,MA,m){var y,uA,CA=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=function($A){var ZA,kA=4093624447;for(ZA=0;ZA<=31;ZA++,kA>>>=1)if(1&kA&&$A.dyn_ltree[2*ZA]!==0)return o;if($A.dyn_ltree[18]!==0||$A.dyn_ltree[20]!==0||$A.dyn_ltree[26]!==0)return r;for(ZA=32;ZA<f;ZA++)if($A.dyn_ltree[2*ZA]!==0)return r;return o}(G)),R(G,G.l_desc),R(G,G.d_desc),CA=function($A){var ZA;for(C($A,$A.dyn_ltree,$A.l_desc.max_code),C($A,$A.dyn_dtree,$A.d_desc.max_code),R($A,$A.bl_desc),ZA=d-1;3<=ZA&&$A.bl_tree[2*q[ZA]+1]===0;ZA--);return $A.opt_len+=3*(ZA+1)+5+5+4,ZA}(G),y=G.opt_len+3+7>>>3,(uA=G.static_len+3+7>>>3)<=y&&(y=uA)):y=uA=MA+5,MA+4<=y&&iA!==-1?p(G,iA,MA,m):G.strategy===4||uA===y?(yA(G,2+(m?1:0),3),hA(G,Z,x)):(yA(G,4+(m?1:0),3),function($A,ZA,kA,de){var Te;for(yA($A,ZA-257,5),yA($A,kA-1,5),yA($A,de-4,4),Te=0;Te<de;Te++)yA($A,$A.bl_tree[2*q[Te]+1],3);lA($A,$A.dyn_ltree,ZA-1),lA($A,$A.dyn_dtree,kA-1)}(G,G.l_desc.max_code+1,G.d_desc.max_code+1,CA+1),hA(G,G.dyn_ltree,G.dyn_dtree)),pA(G),m&&NA(G)},u._tr_tally=function(G,iA,MA){return G.pending_buf[G.d_buf+2*G.last_lit]=iA>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&iA,G.pending_buf[G.l_buf+G.last_lit]=255&MA,G.last_lit++,iA===0?G.dyn_ltree[2*MA]++:(G.matches++,iA--,G.dyn_ltree[2*(B[MA]+f+1)]++,G.dyn_dtree[2*FA(iA)]++),G.last_lit===G.lit_bufsize-1},u._tr_align=function(G){yA(G,2,3),zA(G,L,Z),function(iA){iA.bi_valid===16?(cA(iA,iA.bi_buf),iA.bi_buf=0,iA.bi_valid=0):8<=iA.bi_valid&&(iA.pending_buf[iA.pending++]=255&iA.bi_buf,iA.bi_buf>>=8,iA.bi_valid-=8)}(G)}},{"../utils/common":41}],53:[function(s,g,u){g.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(s,g,u){(function(w){(function(o,r){if(!o.setImmediate){var t,A,a,f,h=1,Q={},d=!1,E=o.document,D=Object.getPrototypeOf&&Object.getPrototypeOf(o);D=D&&D.setTimeout?D:o,t={}.toString.call(o.process)==="[object process]"?function(T){process.nextTick(function(){z(T)})}:function(){if(o.postMessage&&!o.importScripts){var T=!0,b=o.onmessage;return o.onmessage=function(){T=!1},o.postMessage("","*"),o.onmessage=b,T}}()?(f="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",L,!1):o.attachEvent("onmessage",L),function(T){o.postMessage(f+T,"*")}):o.MessageChannel?((a=new MessageChannel).port1.onmessage=function(T){z(T.data)},function(T){a.port2.postMessage(T)}):E&&"onreadystatechange"in E.createElement("script")?(A=E.documentElement,function(T){var b=E.createElement("script");b.onreadystatechange=function(){z(T),b.onreadystatechange=null,A.removeChild(b),b=null},A.appendChild(b)}):function(T){setTimeout(z,0,T)},D.setImmediate=function(T){typeof T!="function"&&(T=new Function(""+T));for(var b=new Array(arguments.length-1),N=0;N<b.length;N++)b[N]=arguments[N+1];var O={callback:T,args:b};return Q[h]=O,t(h),h++},D.clearImmediate=Y}function Y(T){delete Q[T]}function z(T){if(d)setTimeout(z,0,T);else{var b=Q[T];if(b){d=!0;try{(function(N){var O=N.callback,gA=N.args;switch(gA.length){case 0:O();break;case 1:O(gA[0]);break;case 2:O(gA[0],gA[1]);break;case 3:O(gA[0],gA[1],gA[2]);break;default:O.apply(r,gA)}})(b)}finally{Y(T),d=!1}}}}function L(T){T.source===o&&typeof T.data=="string"&&T.data.indexOf(f)===0&&z(+T.data.slice(f.length))}})(typeof self>"u"?w===void 0?this:w:self)}).call(this,typeof Hi<"u"?Hi:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Al);var ew=Al.exports;const tw=oo(ew);var el={exports:{}};/*! pdfmake v0.3.7, @license MIT, @link http://pdfmake.org */(function(e,i){(function(g,u){e.exports=u()})(Object(typeof self<"u"?self:Hi),()=>(()=>{var s={7133(o,r,t){t.d(r,{default:()=>ns}),t(187);var A=t(5167),a=t(783).Buffer;const f=(xA,n)=>{let U="normal";return xA&&n?U="bolditalics":xA?U="bold":n&&(U="italics"),U};class h extends A.A{constructor(n,U,H,aA,QA,YA){n===void 0&&(n={}),U===void 0&&(U={}),H===void 0&&(H={}),aA===void 0&&(aA={}),QA===void 0&&(QA={}),YA===void 0&&(YA=null),super(QA),this.fonts={},this.fontCache={};for(let LA in n)if(n.hasOwnProperty(LA)){let JA=n[LA];this.fonts[LA]={normal:JA.normal,bold:JA.bold,italics:JA.italics,bolditalics:JA.bolditalics}}this.patterns={};for(let LA in H)if(H.hasOwnProperty(LA)){let JA=H[LA];this.patterns[LA]=this.pattern(JA.boundingBox,JA.xStep,JA.yStep,JA.pattern,JA.colored)}this.images=U,this.attachments=aA,this.virtualfs=YA}getFontType(n,U){return f(n,U)}getFontFile(n,U,H){let aA=this.getFontType(U,H);return!this.fonts[n]||!this.fonts[n][aA]?null:this.fonts[n][aA]}provideFont(n,U,H){let aA=this.getFontType(U,H);if(this.getFontFile(n,U,H)===null)throw new Error(`Font '${n}' in style '${aA}' is not defined in the font section of the document definition.`);if(this.fontCache[n]=this.fontCache[n]||{},!this.fontCache[n][aA]){let QA=this.fonts[n][aA];Array.isArray(QA)||(QA=[QA]),this.virtualfs&&this.virtualfs.existsSync(QA[0])&&(QA[0]=this.virtualfs.readFileSync(QA[0])),this.fontCache[n][aA]=this.font(...QA)._font}return this.fontCache[n][aA]}provideImage(n){const U=aA=>{let QA=this.images[aA];if(!QA)return aA;if(this.virtualfs&&this.virtualfs.existsSync(QA))return this.virtualfs.readFileSync(QA);let YA=QA.indexOf("base64,");return YA<0?this.images[aA]:a.from(QA.substring(YA+7),"base64")};if(this._imageRegistry[n])return this._imageRegistry[n];let H;try{if(H=this.openImage(U(n)),!H)throw new Error("No image")}catch(aA){throw new Error(`Invalid image: ${aA.toString()}
Images dictionary should contain dataURL entries (or local file paths in node.js)`,{cause:aA})}return H.embed(this),this._imageRegistry[n]=H,H}providePattern(n){return Array.isArray(n)&&n.length===2?[this.patterns[n[0]],n[1]]:null}provideAttachment(n){const U=aA=>{if(!aA)throw new Error("No attachment");if(!aA.src)throw new Error('The "src" key is required for attachments');return aA};if(typeof n=="object")return U(n);let H=U(this.attachments[n]);return this.virtualfs&&this.virtualfs.existsSync(H.src)?this.virtualfs.readFileSync(H.src):H}setOpenActionAsPrint(){let n=this.ref({Type:"Action",S:"Named",N:"Print"});this._root.data.OpenAction=n,n.end()}}const Q=h;function d(xA){return typeof xA=="string"||xA instanceof String}function E(xA){return(typeof xA=="number"||xA instanceof Number)&&!Number.isNaN(xA)}function D(xA){return!(!E(xA)||!Number.isInteger(xA)||xA<=0)}function Y(xA){return xA!==null&&!Array.isArray(xA)&&!d(xA)&&!E(xA)&&typeof xA=="object"}function z(xA){return Y(xA)&&Object.keys(xA).length===0}function L(xA){return xA!=null}function T(xA,n){return xA==="font"?"font":n}function b(xA){return JSON.stringify(xA,T)}function N(xA){if(xA.id)return xA.id;if(Array.isArray(xA.text))for(let n of xA.text){let U=N(n);if(U)return U}return null}function O(xA,n){function U(YA,LA,JA){return JA===void 0&&(JA=0),YA.marginLeft!==void 0||YA.marginTop!==void 0||YA.marginRight!==void 0||YA.marginBottom!==void 0?[YA.marginLeft??LA[0]??JA,YA.marginTop??LA[1]??JA,YA.marginRight??LA[2]??JA,YA.marginBottom??LA[3]??JA]:LA}function H(YA,LA,JA){if(JA===void 0&&(JA=new Set),YA=Array.isArray(YA)?YA:[YA],!YA.every(Ee=>d(Ee)))return{};let fe={};for(let Ee=0;Ee<YA.length;Ee++){let pe=YA[Ee],Ce=LA.styleDictionary[pe];if(Ce!==void 0&&!JA.has(pe)){if(Ce.extends!==void 0&&(fe={...fe,...H(Ce.extends,LA,new Set([...JA,pe]))}),Ce.margin!==void 0){fe={margin:aA(Ce.margin)};continue}fe={margin:U(Ce,fe.margin??{},void 0)}}}return fe}function aA(YA){return E(YA)?YA=[YA,YA,YA,YA]:Array.isArray(YA)&&YA.length===2&&(YA=[YA[0],YA[1],YA[0],YA[1]]),YA}let QA=[void 0,void 0,void 0,void 0];if(xA.style){let YA=Array.isArray(xA.style)?xA.style:[xA.style],LA=H(YA,n);LA&&(QA=U(LA,QA)),LA.margin&&(QA=aA(LA.margin))}return QA=U(xA,QA),xA.margin!==void 0&&(QA=aA(xA.margin)),QA[0]===void 0&&QA[1]===void 0&&QA[2]===void 0&&QA[3]===void 0?null:QA}var gA=t(783).Buffer;const oA=xA=>d(xA)?xA.replace(/\t/g,"    "):E(xA)||typeof xA=="boolean"?xA.toString():!L(xA)||z(xA)?"":xA;class q{preprocessDocument(n){return this.parentNode=null,this.tocs=[],this.nodeReferences=[],this.preprocessNode(n,!0)}preprocessBlock(n){return this.parentNode=null,this.tocs=[],this.nodeReferences=[],this.preprocessNode(n)}preprocessNode(n,U){if(U===void 0&&(U=!1),Array.isArray(n)?n={stack:n}:d(n)||E(n)||typeof n=="boolean"||!L(n)||z(n)?n={text:oA(n)}:"text"in n&&(n.text=oA(n.text)),n.section){if(!U)throw new Error(`Incorrect document structure, section node is only allowed at the root level of document structure: ${b(n)}`);return this.preprocessSection(n)}else{if(n.columns)return this.preprocessColumns(n);if(n.stack)return this.preprocessVerticalContainer(n,U);if(n.ul)return this.preprocessList(n);if(n.ol)return this.preprocessList(n);if(n.table)return this.preprocessTable(n);if(n.text!==void 0)return this.preprocessText(n);if(n.toc)return this.preprocessToc(n);if(n.image)return this.preprocessImage(n);if(n.svg)return this.preprocessSVG(n);if(n.canvas)return this.preprocessCanvas(n);if(n.qr)return this.preprocessQr(n);if(n.attachment)return this.preprocessAttachment(n);if(n.pageReference||n.textReference)return this.preprocessText(n);throw new Error(`Unrecognized document structure: ${b(n)}`)}}preprocessSection(n){return n.section=this.preprocessNode(n.section),n}preprocessColumns(n){let U=n.columns;for(let H=0,aA=U.length;H<aA;H++)U[H]=this.preprocessNode(U[H]);return n}preprocessVerticalContainer(n,U){let H=n.stack;for(let aA=0,QA=H.length;aA<QA;aA++)H[aA]=this.preprocessNode(H[aA],U);return n}preprocessList(n){let U=n.ul||n.ol;for(let H=0,aA=U.length;H<aA;H++)U[H]=this.preprocessNode(U[H]);return n}preprocessTable(n){let U,H,aA,QA;for(U=0,aA=n.table.body[0].length;U<aA;U++)for(H=0,QA=n.table.body.length;H<QA;H++){let YA=n.table.body[H],LA=YA[U];LA!==void 0&&(LA===null&&(LA=""),LA._span||(YA[U]=this.preprocessNode(LA)))}return n}preprocessText(n){if(n.tocItem){Array.isArray(n.tocItem)||(n.tocItem=[n.tocItem]);for(let U=0,H=n.tocItem.length;U<H;U++){d(n.tocItem[U])||(n.tocItem[U]="_default_");let aA=n.tocItem[U];this.tocs[aA]||(this.tocs[aA]={toc:{_items:[],_pseudo:!0}}),n.id||(n.id=`toc-${aA}-${this.tocs[aA].toc._items.length}`);let QA={_nodeRef:this._getNodeForNodeRef(n),_textNodeRef:n};this.tocs[aA].toc._items.push(QA)}}if(n.id)if(this.nodeReferences[n.id]){if(!this.nodeReferences[n.id]._pseudo)throw new Error(`Node id '${n.id}' already exists`);this.nodeReferences[n.id]._nodeRef=this._getNodeForNodeRef(n),this.nodeReferences[n.id]._textNodeRef=n,this.nodeReferences[n.id]._pseudo=!1}else this.nodeReferences[n.id]={_nodeRef:this._getNodeForNodeRef(n),_textNodeRef:n};if(n.pageReference&&(this.nodeReferences[n.pageReference]||(this.nodeReferences[n.pageReference]={_nodeRef:{},_textNodeRef:{},_pseudo:!0}),n.text="00000",n.linkToDestination=n.pageReference,n._pageRef=this.nodeReferences[n.pageReference]),n.textReference&&(this.nodeReferences[n.textReference]||(this.nodeReferences[n.textReference]={_nodeRef:{},_pseudo:!0}),n.text="",n.linkToDestination=n.textReference,n._textRef=this.nodeReferences[n.textReference]),n.text&&n.text.text)n.text=[this.preprocessNode(n.text)];else if(Array.isArray(n.text)){let U=!1;this.parentNode===null&&(this.parentNode=n,U=!0);for(let H=0,aA=n.text.length;H<aA;H++)n.text[H]=this.preprocessNode(n.text[H]);U&&(this.parentNode=null)}return n}preprocessToc(n){if(n.toc.id||(n.toc.id="_default_"),n.toc.title=n.toc.title?this.preprocessNode(n.toc.title):null,n.toc._items=[],this.tocs[n.toc.id]){if(!this.tocs[n.toc.id].toc._pseudo)throw new Error(`TOC '${n.toc.id}' already exists`);n.toc._items=this.tocs[n.toc.id].toc._items}return this.tocs[n.toc.id]=n,n}preprocessImage(n){return n.image.type!==void 0&&n.image.data!==void 0&&n.image.type==="Buffer"&&Array.isArray(n.image.data)&&(n.image=gA.from(n.image.data)),n}preprocessCanvas(n){return n}preprocessSVG(n){return n}preprocessQr(n){return n}preprocessAttachment(n){return n}_getNodeForNodeRef(n){return this.parentNode?this.parentNode:n}}const Z=q;var x=t(7571),X=t(3915),B={};const v=5,bA=12,wA=13,tA=16,nA=17,KA=22,DA=28,FA=31,cA=33,yA=34,zA=35,mA=36,HA=37,pA=38,NA=39,IA=40,BA=41,hA=42,R=0,C=1,lA=2,rA=3,p=4,G=[[p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,rA,p,p,p,p,p,p,p,p,p,p,p],[R,p,p,C,C,p,p,p,p,C,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,p,p,p,p,C,C,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[p,p,p,C,C,C,p,p,p,C,C,C,C,C,C,C,C,C,C,C,p,lA,p,C,C,C,C,C,C,C,C,C,C],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,C,C,C,C,C,C,p,lA,p,C,C,C,C,C,C,C,C,C,C],[R,p,p,C,C,C,p,p,p,R,R,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,R,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,R,C,R,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,R,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,R,R,C,C,C,C,C,C,C,R,R,p,lA,p,C,C,C,C,C,R,C,C,C,R],[C,p,p,C,C,C,p,p,p,R,R,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,R,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,R,C,p,p,p,R,R,C,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,R,C,p,p,p,R,R,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,C,C,C,C,C,C,p,lA,p,C,C,C,C,C,C,C,C,C,R],[R,p,p,C,C,C,p,p,p,R,R,R,R,R,R,C,C,C,R,p,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,p,R,R,R,R,R,R,R,R,R,R,R,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,C,C,C,C,C,C,p,lA,p,C,C,C,C,C,C,C,C,C,C],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,C,C,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,C,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,C,C,C,C,R,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,C,C,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,C,R,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,R,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,C,R,R,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,C,C,R],[R,p,p,C,C,C,p,p,p,R,C,R,R,R,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[C,p,p,C,C,C,p,p,p,C,C,C,C,C,R,C,C,C,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R],[R,p,p,C,C,R,p,p,p,R,R,R,R,R,R,R,R,R,R,R,p,lA,p,R,R,R,R,R,R,R,R,C,R]],iA=X.toByteArray(" "),MA=new x(iA),m=function(xA){switch(xA){case cA:return bA;case NA:case IA:case hA:return bA;case zA:return v;default:return xA}},y=function(xA){switch(xA){case HA:case pA:return yA;case BA:return KA;default:return xA}};class uA{constructor(n,U=!1){this.position=n,this.required=U}}class CA{nextCodePoint(){const n=this.string.charCodeAt(this.pos++),U=this.string.charCodeAt(this.pos);return 55296<=n&&n<=56319&&56320<=U&&U<=57343?(this.pos++,(n-55296)*1024+(U-56320)+65536):n}nextCharClass(){return m(MA.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case BA:return!1;case yA:case HA:case pA:return this.curClass=yA,!1;case mA:return this.curClass=mA,!1}return null}getPairTableBreak(n){let U=!1;switch(G[this.curClass][this.nextClass]){case R:U=!0;break;case C:U=n===BA;break;case lA:if(U=n===BA,!U)return U=!1,U;break;case rA:if(n!==BA)return U;break}return this.LB8a&&(U=!1),this.LB21a&&(this.curClass===tA||this.curClass===nA)?(U=!1,this.LB21a=!1):this.LB21a=this.curClass===wA,this.curClass===DA?(this.LB30a++,this.LB30a==2&&this.nextClass===DA&&(U=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,U}nextBreak(){if(this.curClass==null){let n=this.nextCharClass();this.curClass=y(n),this.nextClass=n,this.LB8a=n===FA,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;const n=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===yA||this.curClass===mA&&this.nextClass!==HA)return this.curClass=y(m(this.nextClass)),new uA(this.lastPos,!0);let U=this.getSimpleBreak();if(U===null&&(U=this.getPairTableBreak(n)),this.LB8a=this.nextClass===FA,U)return new uA(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new uA(this.string.length)):null}constructor(n){this.string=n,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}B=CA;class $A{constructor(n,U){U===void 0&&(U={}),this.styleDictionary=n,this.defaultStyle=U,this.styleOverrides=[]}clone(){let n=new $A(this.styleDictionary,this.defaultStyle);return this.styleOverrides.forEach(U=>{n.styleOverrides.push(U)}),n}push(n){this.styleOverrides.push(n)}pop(n){for(n===void 0&&(n=1);n-- >0;)this.styleOverrides.pop()}autopush(n){if(d(n)||typeof n.section<"u")return 0;let U=[];n.style&&(Array.isArray(n.style)?U=n.style:U=[n.style]);for(let H=0,aA=U.length;H<aA;H++)this.push(U[H]);return this.push(n),U.length+1}auto(n,U){let H=this.autopush(n),aA=U();return H>0&&this.pop(H),aA}getProperty(n){var U=this;const H=function(aA,QA,YA){if(YA===void 0&&(YA=new Set),YA.has(aA))return;YA.add(aA);const LA=U.styleDictionary[aA];if(LA){if(L(LA[QA]))return LA[QA];if(LA.extends){let JA=Array.isArray(LA.extends)?LA.extends:[LA.extends];for(let fe=JA.length-1;fe>=0;fe--){let Ee=H(JA[fe],QA,YA);if(L(Ee))return Ee}}}};if(this.styleOverrides)for(let aA=this.styleOverrides.length-1;aA>=0;aA--){let QA=this.styleOverrides[aA];if(d(QA)){let YA=H(QA,n);if(L(YA))return YA}else if(L(QA[n]))return QA[n]}return this.defaultStyle&&this.defaultStyle[n]}static getStyleProperty(n,U,H,aA){let QA;return L(n[H])?n[H]:U?(U.auto(n,()=>{QA=U.getProperty(H)}),L(QA)?QA:aA):aA}static copyStyle(n,U){n===void 0&&(n={}),U===void 0&&(U={});for(let H in n)H!="text"&&n.hasOwnProperty(H)&&(U[H]=n[H]);return U}}const ZA=$A,kA=function(xA,n,U){U===void 0&&(U=!1);let H=[];if(xA==null?xA="":xA=String(xA),n)return H.push({text:xA}),H;if(U)return xA.split("").map(LA=>LA.match(/^\n$|^\r$/)?{text:"",lineEnd:!0}:{text:LA});if(xA.length===0)return H.push({text:""}),H;let aA=new B(xA),QA=0,YA;for(;YA=aA.nextBreak();){let LA=xA.slice(QA,YA.position);YA.required||LA.match(/\r?\n$|\r$/)?(LA=LA.replace(/\r?\n$|\r$/,""),H.push({text:LA,lineEnd:!0})):H.push({text:LA}),QA=YA.position}return H},de=(xA,n)=>{let U=xA[0];if(U===void 0)return null;if(n){let H=kA(U.text,!1);if(H[0]===void 0)return null;U=H[0]}return U.text},Te=(xA,n)=>{let U=xA[xA.length-1];if(U===void 0||U.lineEnd)return null;if(n){let H=kA(U.text,!1);if(H[H.length-1]===void 0)return null;U=H[H.length-1]}return U.text};class Re{getBreaks(n,U){let H=[];Array.isArray(n)||(n=[n]);let aA=null;for(let QA=0,YA=n.length;QA<YA;QA++){let LA=n[QA],JA=null,fe,Ee=ZA.getStyleProperty(LA||{},U,"wordBreak","normal")==="break-all",pe=ZA.getStyleProperty(LA||{},U,"noWrap",!1);if(Y(LA)?(LA._textRef&&LA._textRef._textNodeRef.text&&(LA.text=LA._textRef._textNodeRef.text),fe=kA(LA.text,pe,Ee),JA=ZA.copyStyle(LA)):fe=kA(LA,pe,Ee),aA&&fe.length){let Ce=de(fe,pe);kA(aA+Ce,!1).length===1&&(H[H.length-1].noNewLine=!0)}for(let Ce=0,M=fe.length;Ce<M;Ce++){let c={text:fe[Ce].text};fe[Ce].lineEnd&&(c.lineEnd=!0),ZA.copyStyle(JA,c),H.push(c)}aA=null,QA+1<YA&&(aA=Te(fe,pe))}return H}}const ze=Re,We=/^(\s)+/g,ee=/(\s)+$/g,ge=xA=>{function n(U){return U.reduce((H,aA)=>{let QA=Array.isArray(aA.text)?n(aA.text):aA,YA=[].concat(QA).some(Array.isArray);return H.concat(YA?n(QA):QA)},[])}return Array.isArray(xA)||(xA=[xA]),xA=n(xA),xA};class dA{constructor(n){this.pdfDocument=n}buildInlines(n,U){const H=pe=>Math.max(0,pe.width-pe.leadingCut-pe.trailingCut);let aA=0,QA=0,YA,LA=ge(n),fe=new ze().getBreaks(LA,U),Ee=this.measure(fe,U);return Ee.forEach(pe=>{aA=Math.max(aA,H(pe)),YA||(YA={width:0,leadingCut:pe.leadingCut,trailingCut:0}),YA.width+=pe.width,YA.trailingCut=pe.trailingCut,QA=Math.max(QA,H(YA)),pe.lineEnd&&(YA=null)}),ZA.getStyleProperty({},U,"noWrap",!1)&&(aA=QA),{items:Ee,minWidth:aA,maxWidth:QA}}measure(n,U){if(n.length){let H=ZA.getStyleProperty(n[0],U,"leadingIndent",0);H&&(n[0].leadingCut=-H,n[0].leadingIndent=H)}return n.forEach(H=>{let aA=ZA.getStyleProperty(H,U,"font","Roboto"),QA=ZA.getStyleProperty(H,U,"bold",!1),YA=ZA.getStyleProperty(H,U,"italics",!1);H.font=this.pdfDocument.provideFont(aA,QA,YA),H.alignment=ZA.getStyleProperty(H,U,"alignment","left"),H.fontSize=ZA.getStyleProperty(H,U,"fontSize",12),H.fontFeatures=ZA.getStyleProperty(H,U,"fontFeatures",null),H.characterSpacing=ZA.getStyleProperty(H,U,"characterSpacing",0),H.color=ZA.getStyleProperty(H,U,"color","black"),H.decoration=ZA.getStyleProperty(H,U,"decoration",null),H.decorationColor=ZA.getStyleProperty(H,U,"decorationColor",null),H.decorationStyle=ZA.getStyleProperty(H,U,"decorationStyle",null),H.decorationThickness=ZA.getStyleProperty(H,U,"decorationThickness",null),H.background=ZA.getStyleProperty(H,U,"background",null),H.link=ZA.getStyleProperty(H,U,"link",null),H.linkToPage=ZA.getStyleProperty(H,U,"linkToPage",null),H.linkToDestination=ZA.getStyleProperty(H,U,"linkToDestination",null),H.noWrap=ZA.getStyleProperty(H,U,"noWrap",null),H.opacity=ZA.getStyleProperty(H,U,"opacity",1),H.sup=ZA.getStyleProperty(H,U,"sup",!1),H.sub=ZA.getStyleProperty(H,U,"sub",!1),(H.sup||H.sub)&&(H.fontSize*=.58);let LA=ZA.getStyleProperty(H,U,"lineHeight",1);if(H.width=this.widthOfText(H.text,H),H.height=H.font.lineHeight(H.fontSize)*LA,H.leadingCut||(H.leadingCut=0),!ZA.getStyleProperty(H,U,"preserveLeadingSpaces",!1)){let Ee=H.text.match(We);Ee&&(H.leadingCut+=this.widthOfText(Ee[0],H))}if(H.trailingCut=0,!ZA.getStyleProperty(H,U,"preserveTrailingSpaces",!1)){let Ee=H.text.match(ee);Ee&&(H.trailingCut=this.widthOfText(Ee[0],H))}},this),n}widthOfText(n,U){return U.font.widthOfString(n,U.fontSize,U.fontFeatures)+(U.characterSpacing||0)*(n.length-1)}sizeOfText(n,U){let H=ZA.getStyleProperty({},U,"font","Roboto"),aA=ZA.getStyleProperty({},U,"fontSize",12),QA=ZA.getStyleProperty({},U,"fontFeatures",null),YA=ZA.getStyleProperty({},U,"bold",!1),LA=ZA.getStyleProperty({},U,"italics",!1),JA=ZA.getStyleProperty({},U,"lineHeight",1),fe=ZA.getStyleProperty({},U,"characterSpacing",0),Ee=this.pdfDocument.provideFont(H,YA,LA);return{width:this.widthOfText(n,{font:Ee,fontSize:aA,characterSpacing:fe,fontFeatures:QA}),height:Ee.lineHeight(aA)*JA,fontSize:aA,lineHeight:JA,ascender:Ee.ascender/1e3*aA,descender:Ee.descender/1e3*aA}}sizeOfRotatedText(n,U,H){let aA=U*Math.PI/-180,QA=this.sizeOfText(n,H);return{width:Math.abs(QA.height*Math.sin(aA))+Math.abs(QA.width*Math.cos(aA)),height:Math.abs(QA.width*Math.sin(aA))+Math.abs(QA.height*Math.cos(aA))}}}const k=dA;function J(xA,n,U,H){U===void 0&&(U=0);let aA=[],QA=0,YA=0,LA=[],JA=0,fe=0,Ee=[],pe=n;xA.forEach(c=>{_(c)?(aA.push(c),QA+=c._minWidth,YA+=c._maxWidth):EA(c)?(LA.push(c),JA=Math.max(JA,c._minWidth),fe=Math.max(fe,c._maxWidth)):Ee.push(c)}),Ee.forEach((c,P)=>{if(d(c.width)&&/\d+%/.test(c.width)){let F=0;if(H){const sA=H._layout.paddingLeft(P,H),RA=H._layout.paddingRight(P,H),XA=H._layout.vLineWidth(P,H),ae=H._layout.vLineWidth(P+1,H);P===0?F=sA+RA+XA+ae/2:P===Ee.length-1?F=sA+RA+XA/2+ae:F=sA+RA+XA/2+ae/2}const j=pe+U;c.width=parseFloat(c.width)*j/100-F}c.width<c._minWidth&&c.elasticWidth?c._calcWidth=c._minWidth:c._calcWidth=c.width,n-=c._calcWidth});let Ce=QA+JA*LA.length,M=YA+fe*LA.length;if(Ce>=n)aA.forEach(c=>{c._calcWidth=c._minWidth}),LA.forEach(c=>{c._calcWidth=JA});else{if(M<n)aA.forEach(c=>{c._calcWidth=c._maxWidth,n-=c._calcWidth});else{let c=n-Ce,P=M-Ce;aA.forEach(F=>{let j=F._maxWidth-F._minWidth;F._calcWidth=F._minWidth+j*c/P,n-=F._calcWidth})}if(LA.length>0){let c=n/LA.length;LA.forEach(P=>{P._calcWidth=c})}}}function _(xA){return xA.width==="auto"}function EA(xA){return xA.width===null||xA.width===void 0||xA.width==="*"||xA.width==="star"}function K(xA){let n={min:0,max:0},U={min:0,max:0},H=0;for(let aA=0,QA=xA.length;aA<QA;aA++){let YA=xA[aA];EA(YA)?(U.min=Math.max(U.min,YA._minWidth),U.max=Math.max(U.max,YA._maxWidth),H++):_(YA)?(n.min+=YA._minWidth,n.max+=YA._maxWidth):(n.min+=YA.width!==void 0&&YA.width||YA._minWidth,n.max+=YA.width!==void 0&&YA.width||YA._maxWidth)}return H&&(n.min+=H*U.min,n.max+=H*U.max),n}const UA={buildColumnWidths:J,measureMinMax:K,isAutoColumn:_,isStarColumn:EA},se={noBorders:{hLineWidth(xA){return 0},vLineWidth(xA){return 0},paddingLeft(xA){return xA&&4||0},paddingRight(xA,n){return xA<n.table.widths.length-1?4:0}},headerLineOnly:{hLineWidth(xA,n){return xA===0||xA===n.table.body.length?0:xA===n.table.headerRows?2:0},vLineWidth(xA){return 0},paddingLeft(xA){return xA===0?0:8},paddingRight(xA,n){return xA===n.table.widths.length-1?0:8}},lightHorizontalLines:{hLineWidth(xA,n){return xA===0||xA===n.table.body.length?0:xA===n.table.headerRows?2:1},vLineWidth(xA){return 0},hLineColor(xA){return xA===1?"black":"#aaa"},paddingLeft(xA){return xA===0?0:8},paddingRight(xA,n){return xA===n.table.widths.length-1?0:8}}},Me={hLineWidth(xA,n){return 1},vLineWidth(xA,n){return 1},hLineColor(xA,n){return"black"},vLineColor(xA,n){return"black"},hLineStyle(xA,n){return null},vLineStyle(xA,n){return null},paddingLeft(xA,n){return 4},paddingRight(xA,n){return 4},paddingTop(xA,n){return 2},paddingBottom(xA,n){return 2},fillColor(xA,n){return null},fillOpacity(xA,n){return 1},defaultBorder:!0};function te(){let xA={};for(let n=0,U=arguments.length;n<U;n++){let H=n<0||arguments.length<=n?void 0:arguments[n];if(H)for(let aA in H)H.hasOwnProperty(aA)&&(xA[aA]=H[aA])}return xA}function Qe(xA,n,U){switch(xA.type){case"ellipse":case"rect":xA.x+=n,xA.y+=U;break;case"line":xA.x1+=n,xA.x2+=n,xA.y1+=U,xA.y2+=U;break;case"polyline":for(let H=0,aA=xA.points.length;H<aA;H++)xA.points[H].x+=n,xA.points[H].y+=U;break}}function vA(xA){return()=>JSON.parse(JSON.stringify(xA))}for(var me=[null,[[10,7,17,13],[1,1,1,1],[]],[[16,10,28,22],[1,1,1,1],[4,16]],[[26,15,22,18],[1,1,2,2],[4,20]],[[18,20,16,26],[2,1,4,2],[4,24]],[[24,26,22,18],[2,1,4,4],[4,28]],[[16,18,28,24],[4,2,4,4],[4,32]],[[18,20,26,18],[4,2,5,6],[4,20,36]],[[22,24,26,22],[4,2,6,6],[4,22,40]],[[22,30,24,20],[5,2,8,8],[4,24,44]],[[26,18,28,24],[5,4,8,8],[4,26,48]],[[30,20,24,28],[5,4,11,8],[4,28,52]],[[22,24,28,26],[8,4,11,10],[4,30,56]],[[22,26,22,24],[9,4,16,12],[4,32,60]],[[24,30,24,20],[9,4,16,16],[4,24,44,64]],[[24,22,24,30],[10,6,18,12],[4,24,46,68]],[[28,24,30,24],[10,6,16,17],[4,24,48,72]],[[28,28,28,28],[11,6,19,16],[4,28,52,76]],[[26,30,28,28],[13,6,21,18],[4,28,54,80]],[[26,28,26,26],[14,7,25,21],[4,28,56,84]],[[26,28,28,30],[16,8,25,20],[4,32,60,88]],[[26,28,30,28],[17,8,25,23],[4,26,48,70,92]],[[28,28,24,30],[17,9,34,23],[4,24,48,72,96]],[[28,30,30,30],[18,9,30,25],[4,28,52,76,100]],[[28,30,30,30],[20,10,32,27],[4,26,52,78,104]],[[28,26,30,30],[21,12,35,29],[4,30,56,82,108]],[[28,28,30,28],[23,12,37,34],[4,28,56,84,112]],[[28,30,30,30],[25,12,40,34],[4,32,60,88,116]],[[28,30,30,30],[26,13,42,35],[4,24,48,72,96,120]],[[28,30,30,30],[28,14,45,38],[4,28,52,76,100,124]],[[28,30,30,30],[29,15,48,40],[4,24,50,76,102,128]],[[28,30,30,30],[31,16,51,43],[4,28,54,80,106,132]],[[28,30,30,30],[33,17,54,45],[4,32,58,84,110,136]],[[28,30,30,30],[35,18,57,48],[4,28,56,84,112,140]],[[28,30,30,30],[37,19,60,51],[4,32,60,88,116,144]],[[28,30,30,30],[38,19,63,53],[4,28,52,76,100,124,148]],[[28,30,30,30],[40,20,66,56],[4,22,48,74,100,126,152]],[[28,30,30,30],[43,21,70,59],[4,26,52,78,104,130,156]],[[28,30,30,30],[45,22,74,62],[4,30,56,82,108,134,160]],[[28,30,30,30],[47,24,77,65],[4,24,52,80,108,136,164]],[[28,30,30,30],[49,25,81,68],[4,28,56,84,112,140,168]]],it=0,AA=1,Fe=2,Ye=4,jA=8,we=/^\d*$/,ye=/^[A-Za-z0-9 $%*+\-./:]*$/,$e=/^[A-Z0-9 $%*+\-./:]*$/,Je=1,Ke=0,ht=3,Br=2,rt=[],It=[-1],ut=0,Yt=1;ut<255;++ut)rt.push(Yt),It[Yt]=ut,Yt=Yt*2^(Yt>=128?285:0);for(var kt=[[]],ut=0;ut<30;++ut){for(var Qr=kt[ut],Dr=[],Tt=0;Tt<=ut;++Tt){var yt=Tt<ut?rt[Qr[Tt]]:0,jt=rt[(ut+(Qr[Tt-1]||0))%255];Dr.push(It[yt^jt])}kt.push(Dr)}for(var Vt={},ut=0;ut<45;++ut)Vt["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".charAt(ut)]=ut;var je=[function(xA,n){return(xA+n)%2===0},function(xA,n){return xA%2===0},function(xA,n){return n%3===0},function(xA,n){return(xA+n)%3===0},function(xA,n){return((xA/2|0)+(n/3|0))%2===0},function(xA,n){return xA*n%2+xA*n%3===0},function(xA,n){return(xA*n%2+xA*n%3)%2===0},function(xA,n){return((xA+n)%2+xA*n%3)%2===0}],Ve=function(xA){return xA>6},Qt=function(xA){return 4*xA+17},Et=function(xA){var n=me[xA],U=16*xA*xA+128*xA+64;return Ve(xA)&&(U-=36),n[2].length&&(U-=25*n[2].length*n[2].length-10*n[2].length-55),U},_t=function(xA,n){var U=Et(xA)&-8,H=me[xA];return U-=8*H[0][n]*H[1][n],U},ar=function(xA,n){switch(n){case AA:return xA<10?10:xA<27?12:14;case Fe:return xA<10?9:xA<27?11:13;case Ye:return xA<10?8:16;case jA:return xA<10?8:xA<27?10:12}},Ir=function(xA,n,U){var H=_t(xA,U)-4-ar(xA,n);switch(n){case AA:return(H/10|0)*3+(H%10<4?0:H%10<7?1:2);case Fe:return(H/11|0)*2+(H%11<6?0:1);case Ye:return H/8|0;case jA:return H/13|0}},TA=function(xA,n){switch(xA){case AA:return n.match(we)?n:null;case Fe:return n.match(ye)?n.toUpperCase():null;case Ye:if(typeof n=="string"){for(var U=[],H=0;H<n.length;++H){var aA=n.charCodeAt(H);aA<128?U.push(aA):aA<2048?U.push(192|aA>>6,128|aA&63):aA<65536?U.push(224|aA>>12,128|aA>>6&63,128|aA&63):U.push(240|aA>>18,128|aA>>12&63,128|aA>>6&63,128|aA&63)}return U}else return n}},GA=function(xA,n,U,H){var aA=[],QA=0,YA=8,LA=U.length,JA=function(pe,Ce){if(Ce>=YA){for(aA.push(QA|pe>>(Ce-=YA));Ce>=8;)aA.push(pe>>(Ce-=8)&255);QA=0,YA=8}Ce>0&&(QA|=(pe&(1<<Ce)-1)<<(YA-=Ce))},fe=ar(xA,n);switch(JA(n,4),JA(LA,fe),n){case AA:for(var Ee=2;Ee<LA;Ee+=3)JA(parseInt(U.substring(Ee-2,Ee+1),10),10);JA(parseInt(U.substring(Ee-2),10),[0,4,7][LA%3]);break;case Fe:for(var Ee=1;Ee<LA;Ee+=2)JA(Vt[U.charAt(Ee-1)]*45+Vt[U.charAt(Ee)],11);LA%2==1&&JA(Vt[U.charAt(Ee-1)],6);break;case Ye:for(var Ee=0;Ee<LA;++Ee)JA(U[Ee],8);break}for(JA(it,4),YA<8&&aA.push(QA);aA.length+1<H;)aA.push(236,17);return aA.length<H&&aA.push(236),aA},PA=function(xA,n){for(var U=xA.slice(0),H=xA.length,aA=n.length,QA=0;QA<aA;++QA)U.push(0);for(var QA=0;QA<H;){var YA=It[U[QA++]];if(YA>=0)for(var LA=0;LA<aA;++LA)U[QA+LA]^=rt[(YA+n[LA])%255]}return U.slice(H)},_A=function(xA,n,U){for(var H=[],aA=xA.length/n|0,QA=0,YA=n-xA.length%n,LA=0;LA<YA;++LA)H.push(QA),QA+=aA;for(var LA=YA;LA<n;++LA)H.push(QA),QA+=aA+1;H.push(QA);for(var JA=[],LA=0;LA<n;++LA)JA.push(PA(xA.slice(H[LA],H[LA+1]),U));for(var fe=[],Ee=xA.length/n|0,LA=0;LA<Ee;++LA)for(var pe=0;pe<n;++pe)fe.push(xA[H[pe]+LA]);for(var pe=YA;pe<n;++pe)fe.push(xA[H[pe+1]-1]);for(var LA=0;LA<U.length;++LA)for(var pe=0;pe<n;++pe)fe.push(JA[pe][LA]);return fe},qA=function(xA,n,U,H){for(var aA=xA<<H,QA=n-1;QA>=0;--QA)aA>>H+QA&1&&(aA^=U<<QA);return xA<<H|aA},OA=function(xA){for(var n=me[xA],U=Qt(xA),H=[],aA=[],QA=0;QA<U;++QA)H.push([]),aA.push([]);var YA=function(c,P,F,j,sA){for(var RA=0;RA<F;++RA)for(var XA=0;XA<j;++XA)H[c+RA][P+XA]=sA[RA]>>XA&1,aA[c+RA][P+XA]=1};YA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),YA(U-8,0,8,9,[256,127,65,93,93,93,65,127]),YA(0,U-8,9,8,[254,130,186,186,186,130,254,0,0]);for(var QA=9;QA<U-8;++QA)H[6][QA]=H[QA][6]=~QA&1,aA[6][QA]=aA[QA][6]=1;for(var LA=n[2],JA=LA.length,QA=0;QA<JA;++QA)for(var fe=QA===0||QA===JA-1?1:0,Ee=QA===0?JA-1:JA,pe=fe;pe<Ee;++pe)YA(LA[QA],LA[pe],5,5,[31,17,21,17,31]);if(Ve(xA))for(var Ce=qA(xA,6,7973,12),M=0,QA=0;QA<6;++QA)for(var pe=0;pe<3;++pe)H[QA][U-11+pe]=H[U-11+pe][QA]=Ce>>M++&1,aA[QA][U-11+pe]=aA[U-11+pe][QA]=1;return{matrix:H,reserved:aA}},ce=function(xA,n,U){for(var H=xA.length,aA=0,QA=-1,YA=H-1;YA>=0;YA-=2){YA==6&&--YA;for(var LA=QA<0?H-1:0,JA=0;JA<H;++JA){for(var fe=YA;fe>YA-2;--fe)n[LA][fe]||(xA[LA][fe]=U[aA>>3]>>(~aA&7)&1,++aA);LA+=QA}QA=-QA}return xA},WA=function(xA,n,U){for(var H=je[U],aA=xA.length,QA=0;QA<aA;++QA)for(var YA=0;YA<aA;++YA)n[QA][YA]||(xA[QA][YA]^=H(QA,YA));return xA},ie=function(xA,n,U,H){for(var aA=xA.length,QA=qA(U<<3|H,5,1335,10)^21522,YA=0;YA<15;++YA){var LA=[0,1,2,3,4,5,7,8,aA-7,aA-6,aA-5,aA-4,aA-3,aA-2,aA-1][YA],JA=[aA-1,aA-2,aA-3,aA-4,aA-5,aA-6,aA-7,aA-8,7,5,4,3,2,1,0][YA];xA[LA][8]=xA[8][JA]=QA>>YA&1}return xA},ne=function(xA){for(var n=3,U=3,H=40,aA=10,QA=function(F){for(var j=0,sA=0;sA<F.length;++sA)F[sA]>=5&&(j+=n+(F[sA]-5));for(var sA=5;sA<F.length;sA+=2){var RA=F[sA];F[sA-1]==RA&&F[sA-2]==3*RA&&F[sA-3]==RA&&F[sA-4]==RA&&(F[sA-5]>=4*RA||F[sA+1]>=4*RA)&&(j+=H)}return j},YA=xA.length,LA=0,JA=0,fe=0;fe<YA;++fe){var Ee=xA[fe],pe;pe=[0];for(var Ce=0;Ce<YA;){var M;for(M=0;Ce<YA&&Ee[Ce];++M)++Ce;for(pe.push(M),M=0;Ce<YA&&!Ee[Ce];++M)++Ce;pe.push(M)}LA+=QA(pe),pe=[0];for(var Ce=0;Ce<YA;){var M;for(M=0;Ce<YA&&xA[Ce][fe];++M)++Ce;for(pe.push(M),M=0;Ce<YA&&!xA[Ce][fe];++M)++Ce;pe.push(M)}LA+=QA(pe);var c=xA[fe+1]||[];JA+=Ee[0];for(var Ce=1;Ce<YA;++Ce){var P=Ee[Ce];JA+=P,Ee[Ce-1]==P&&c[Ce]===P&&c[Ce-1]===P&&(LA+=U)}}return LA+=aA*(Math.abs(JA/YA/YA-.5)/.05|0),LA},ve=function(xA,n,U,H,aA){var QA=me[n],YA=GA(n,U,xA,_t(n,H)>>3);YA=_A(YA,QA[1][H],kt[QA[0][H]]);var LA=OA(n),JA=LA.matrix,fe=LA.reserved;if(ce(JA,fe,YA),aA<0){WA(JA,fe,0),ie(JA,fe,H,0);var Ee=0,pe=ne(JA);for(WA(JA,fe,0),aA=1;aA<8;++aA){WA(JA,fe,aA),ie(JA,fe,H,aA);var Ce=ne(JA);pe>Ce&&(pe=Ce,Ee=aA),WA(JA,fe,aA)}aA=Ee}return WA(JA,fe,aA),ie(JA,fe,H,aA),JA};function be(xA,n){var U={numeric:AA,alphanumeric:Fe,octet:Ye},H={L:Je,M:Ke,Q:ht,H:Br};n=n||{};var aA=n.version||-1,QA=H[(n.eccLevel||"L").toUpperCase()],YA=n.mode?U[n.mode.toLowerCase()]:-1,LA="mask"in n?n.mask:-1;if(YA<0)typeof xA=="string"?xA.match(we)?YA=AA:xA.match($e)?YA=Fe:YA=Ye:YA=Ye;else if(!(YA==AA||YA==Fe||YA==Ye))throw"invalid or unsupported mode";if(xA=TA(YA,xA),xA===null)throw"invalid data format";if(QA<0||QA>3)throw"invalid ECC level";if(aA<0){for(aA=1;aA<=40&&!(xA.length<=Ir(aA,YA,QA));++aA);if(aA>40)throw"too large data for the Qr format"}else if(aA<1||aA>40)throw"invalid Qr version! should be between 1 and 40";if(LA!=-1&&(LA<0||LA>8))throw"invalid mask";return ve(xA,aA,YA,QA,LA)}function _e(xA,n){var U=[],H=n.background||"#fff",aA=n.foreground||"#000",QA=n.padding||0,YA=be(xA,n),LA=YA.length,JA=Math.floor(n.fit?n.fit/LA:5),fe=LA*JA+JA*QA*2,Ee=JA*QA;U.push({type:"rect",x:0,y:0,w:fe,h:fe,lineWidth:0,color:H});for(var pe=0;pe<LA;++pe)for(var Ce=0;Ce<LA;++Ce)YA[pe][Ce]&&U.push({type:"rect",x:JA*Ce+Ee,y:JA*pe+Ee,w:JA,h:JA,lineWidth:0,color:aA});return{canvas:U,size:fe}}function st(xA){var n=_e(xA.qr,xA);return xA._canvas=n.canvas,xA._width=xA._height=xA._minWidth=xA._maxWidth=xA._minHeight=xA._maxHeight=n.size,xA}const Se={measure:st};class ue{constructor(n,U,H,aA,QA){this.pdfDocument=n,this.textInlines=new k(n),this.styleStack=new ZA(U,H),this.svgMeasure=aA,this.tableLayouts=QA,this.autoImageIndex=1}measureDocument(n){return this.measureNode(n)}measureBlock(n){return this.measureNode(n)}measureNode(n){return this.styleStack.auto(n,()=>{if(n._margin=O(n,this.styleStack),n.section)return U(this.measureSection(n));if(n.columns)return U(this.measureColumns(n));if(n.stack)return U(this.measureVerticalContainer(n));if(n.ul)return U(this.measureUnorderedList(n));if(n.ol)return U(this.measureOrderedList(n));if(n.table)return U(this.measureTable(n));if(n.text!==void 0)return U(this.measureLeaf(n));if(n.toc)return U(this.measureToc(n));if(n.image)return U(this.measureImage(n));if(n.svg)return U(this.measureSVG(n));if(n.canvas)return U(this.measureCanvas(n));if(n.qr)return U(this.measureQr(n));if(n.attachment)return U(this.measureAttachment(n));throw new Error(`Unrecognized document structure: ${b(n)}`)});function U(H){let aA=H._margin;return aA&&(H._minWidth+=aA[0]+aA[2],H._maxWidth+=aA[0]+aA[2]),H}}measureImageWithDimensions(n,U){if(n.fit){let H=U.width/U.height>n.fit[0]/n.fit[1]?n.fit[0]/U.width:n.fit[1]/U.height;n._width=n._minWidth=n._maxWidth=U.width*H,n._height=U.height*H}else if(n.cover)n._width=n._minWidth=n._maxWidth=n.cover.width,n._height=n._minHeight=n._maxHeight=n.cover.height;else{let H=E(n.width)?n.width:void 0,aA=E(n.height)?n.height:void 0,QA=U.width/U.height;n._width=n._minWidth=n._maxWidth=H||(aA?aA*QA:U.width),n._height=aA||(H?H/QA:U.height),E(n.maxWidth)&&n.maxWidth<n._width&&(n._width=n._minWidth=n._maxWidth=n.maxWidth,n._height=n._width*U.height/U.width),E(n.maxHeight)&&n.maxHeight<n._height&&(n._height=n.maxHeight,n._width=n._minWidth=n._maxWidth=n._height*U.width/U.height),E(n.minWidth)&&n.minWidth>n._width&&(n._width=n._minWidth=n._maxWidth=n.minWidth,n._height=n._width*U.height/U.width),E(n.minHeight)&&n.minHeight>n._height&&(n._height=n.minHeight,n._width=n._minWidth=n._maxWidth=n._height*U.width/U.height)}n._alignment=this.styleStack.getProperty("alignment")}convertIfBase64Image(n){if(/^data:image\/(jpeg|jpg|png);base64,/.test(n.image)){let U=`$$pdfmake$$${this.autoImageIndex++}`;this.pdfDocument.images[U]=n.image,n.image=U}}measureImage(n){this.convertIfBase64Image(n);let U=this.pdfDocument.provideImage(n.image),H={width:U.width,height:U.height};return U.orientation>4&&(H={width:U.height,height:U.width}),this.measureImageWithDimensions(n,H),n}measureSVG(n){let U=this.svgMeasure.measureSVG(n.svg);if(this.measureImageWithDimensions(n,U),n.font=this.styleStack.getProperty("font"),!E(n._width)&&!E(n._height))throw new Error("SVG is missing defined width and height.");if(E(n._width)){if(!E(n._height))throw new Error("SVG is missing defined height.")}else throw new Error("SVG is missing defined width.");return n.svg=this.svgMeasure.writeDimensions(n.svg,{width:n._width,height:n._height}),n}measureLeaf(n){n._textRef&&n._textRef._textNodeRef.text&&(n.text=n._textRef._textNodeRef.text);let U=this.styleStack.clone();U.push(n);let H=this.textInlines.buildInlines(n.text,U);return n._inlines=H.items,n._minWidth=H.minWidth,n._maxWidth=H.maxWidth,n}measureToc(n){if(n.toc.title&&(n.toc.title=this.measureNode(n.toc.title)),n.toc._items.length>0){let U=[],H=n.toc.textStyle||{},aA=n.toc.numberStyle||H,QA=n.toc.textMargin||[0,0,0,0];n.toc.sortBy==="title"&&n.toc._items.sort((YA,LA)=>YA._textNodeRef.text.localeCompare(LA._textNodeRef.text,n.toc.sortLocale));for(let YA=0,LA=n.toc._items.length;YA<LA;YA++){let JA=n.toc._items[YA],fe=JA._textNodeRef.tocStyle||H,Ee=JA._textNodeRef.tocMargin||QA,pe=JA._textNodeRef.tocNumberStyle||aA,Ce=N(JA._nodeRef);U.push([{text:JA._textNodeRef.text,linkToDestination:Ce,alignment:"left",style:fe,margin:Ee},{text:"00000",linkToDestination:Ce,alignment:"right",_tocItemRef:JA._nodeRef,style:pe,margin:[0,Ee[1],0,Ee[3]]}]),n.toc.outlines&&(JA._textNodeRef.outline=JA._textNodeRef.outline||!0)}n.toc._table={table:{dontBreakRows:!0,widths:["*","auto"],body:U},layout:"noBorders"},n.toc._table=this.measureNode(n.toc._table)}return n}measureVerticalContainer(n){let U=n.stack;n._minWidth=0,n._maxWidth=0;for(let H=0,aA=U.length;H<aA;H++)U[H]=this.measureNode(U[H]),n._minWidth=Math.max(n._minWidth,U[H]._minWidth),n._maxWidth=Math.max(n._maxWidth,U[H]._maxWidth);return n}gapSizeForList(){return this.textInlines.sizeOfText("9. ",this.styleStack)}buildUnorderedMarker(n,U,H,aA){function QA(Ee,pe){let Ce=Ee.fontSize/6;return{canvas:[{x:Ce,y:Ee.height/Ee.lineHeight+Ee.descender-Ee.fontSize/3,r1:Ce,r2:Ce,type:"ellipse",color:pe}]}}function YA(Ee,pe){let Ce=Ee.fontSize/3;return{canvas:[{x:0,y:Ee.height/Ee.lineHeight+Ee.descender-Ee.fontSize/3-Ce/2,h:Ce,w:Ce,type:"rect",color:pe}]}}function LA(Ee,pe){let Ce=Ee.fontSize/6;return{canvas:[{x:Ce,y:Ee.height/Ee.lineHeight+Ee.descender-Ee.fontSize/3,r1:Ce,r2:Ce,type:"ellipse",lineColor:pe}]}}let JA,fe=ZA.getStyleProperty(n,U,"markerColor",void 0)||U.getProperty("color")||"black";switch(aA){case"circle":JA=LA(H,fe);break;case"square":JA=YA(H,fe);break;case"none":JA={};break;case"disc":default:JA=QA(H,fe);break}return JA._minWidth=JA._maxWidth=H.width,JA._minHeight=JA._maxHeight=H.height,JA}buildOrderedMarker(n,U,H,aA,QA){function YA(Ce){function M(c){return(c>=26?M((c/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[c%26>>0]}return Ce<1?Ce.toString():M(Ce-1)}function LA(Ce){if(Ce<1||Ce>4999)return Ce.toString();let M=Ce,c={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},P="";for(let F in c)for(;M>=c[F];)P+=F,M-=c[F];return P}function JA(Ce){return Ce.toString()}let fe;switch(aA){case"none":fe=null;break;case"upper-alpha":fe=YA(U).toUpperCase();break;case"lower-alpha":fe=YA(U);break;case"upper-roman":fe=LA(U);break;case"lower-roman":fe=LA(U).toLowerCase();break;case"decimal":default:fe=JA(U);break}if(fe===null)return{};QA&&(Array.isArray(QA)?(QA[0]&&(fe=QA[0]+fe),QA[1]&&(fe+=QA[1]),fe+=" "):fe+=`${QA} `);let Ee=ZA.getStyleProperty(n,H,"markerColor",void 0)||H.getProperty("color")||"black",pe={text:fe,color:Ee};return{_inlines:this.textInlines.buildInlines(pe,H).items}}measureUnorderedList(n){let U=this.styleStack.clone(),H=n.ul;n.type=n.type||"disc",n._gapSize=this.gapSizeForList(),n._minWidth=0,n._maxWidth=0;for(let aA=0,QA=H.length;aA<QA;aA++){let YA=H[aA]=this.measureNode(H[aA]);!YA.ol&&!YA.ul&&(YA.listMarker=this.buildUnorderedMarker(YA,U,n._gapSize,YA.listType||n.type)),n._minWidth=Math.max(n._minWidth,H[aA]._minWidth+n._gapSize.width),n._maxWidth=Math.max(n._maxWidth,H[aA]._maxWidth+n._gapSize.width)}return n}measureOrderedList(n){let U=this.styleStack.clone(),H=n.ol;n.type=n.type||"decimal",n.separator=n.separator||".",n.reversed=n.reversed||!1,E(n.start)||(n.start=n.reversed?H.length:1),n._gapSize=this.gapSizeForList(),n._minWidth=0,n._maxWidth=0;let aA=n.start;for(let QA=0,YA=H.length;QA<YA;QA++){let LA=H[QA]=this.measureNode(H[QA]);if(!LA.ol&&!LA.ul){let JA=E(LA.counter)?LA.counter:aA;LA.listMarker=this.buildOrderedMarker(LA,JA,U,LA.listType||n.type,n.separator),LA.listMarker._inlines&&(n._gapSize.width=Math.max(n._gapSize.width,LA.listMarker._inlines[0].width)),n.reversed?aA--:aA++}n._minWidth=Math.max(n._minWidth,H[QA]._minWidth),n._maxWidth=Math.max(n._maxWidth,H[QA]._maxWidth)}n._minWidth+=n._gapSize.width,n._maxWidth+=n._gapSize.width;for(let QA=0,YA=H.length;QA<YA;QA++){let LA=H[QA];!LA.ol&&!LA.ul&&(LA.listMarker._minWidth=LA.listMarker._maxWidth=n._gapSize.width)}return n}measureSection(n){return n.section=this.measureNode(n.section),n}measureColumns(n){let U=n.columns;n._gap=this.styleStack.getProperty("columnGap")||0;for(let QA=0,YA=U.length;QA<YA;QA++)U[QA]=this.measureNode(U[QA]);let H=UA.measureMinMax(U),aA=U.length>0?U.length-1:0;return n._minWidth=H.min+n._gap*aA,n._maxWidth=H.max+n._gap*aA,n}measureTable(n){P(n),n._layout=fe(this.tableLayouts),n._offsets=Ee(n._layout);let U=[],H,aA,QA,YA;for(H=0,QA=n.table.body[0].length;H<QA;H++){let F=n.table.widths[H];for(F._minWidth=0,F._maxWidth=0,aA=0,YA=n.table.body.length;aA<YA;aA++){let j=n.table.body[aA],sA=j[H];if(sA===void 0)throw new Error(`Malformed table row, a cell is undefined.
Row index: ${aA}
Column index: ${H}
Row data: ${b(j)}`);sA===null&&(sA=""),sA._span||(sA=j[H]=this.styleStack.auto(sA,JA(this,sA)),sA.colSpan&&sA.colSpan>1?(M(j,H,sA.colSpan),U.push({col:H,span:sA.colSpan,minWidth:sA._minWidth,maxWidth:sA._maxWidth})):(F._minWidth=Math.max(F._minWidth,sA._minWidth),F._maxWidth=Math.max(F._maxWidth,sA._maxWidth))),sA.rowSpan&&sA.rowSpan>1&&c(n.table,aA,H,sA.rowSpan)}}pe();let LA=UA.measureMinMax(n.table.widths);return n._minWidth=LA.min+n._offsets.total,n._maxWidth=LA.max+n._offsets.total,n;function JA(F,j){return()=>(Y(j)&&(j.fillColor=F.styleStack.getProperty("fillColor"),j.fillOpacity=F.styleStack.getProperty("fillOpacity")),F.measureNode(j))}function fe(F){let j=n.layout;return d(j)&&(j=F[j]),te(Me,j)}function Ee(F){let j=[],sA=0,RA=0;for(let XA=0,ae=n.table.widths.length;XA<ae;XA++){let Ie=RA+F.vLineWidth(XA,n)+F.paddingLeft(XA,n);j.push(Ie),sA+=Ie,RA=F.paddingRight(XA,n)}return sA+=RA+F.vLineWidth(n.table.widths.length,n),{total:sA,offsets:j}}function pe(){let F,j;for(let sA=0,RA=U.length;sA<RA;sA++){let XA=U[sA],ae=Ce(XA.col,XA.span,n._offsets),Ie=XA.minWidth-ae.minWidth,De=XA.maxWidth-ae.maxWidth;if(Ie>0)for(F=Ie/XA.span,j=0;j<XA.span;j++)n.table.widths[XA.col+j]._minWidth+=F;if(De>0)for(F=De/XA.span,j=0;j<XA.span;j++)n.table.widths[XA.col+j]._maxWidth+=F}}function Ce(F,j,sA){let RA={minWidth:0,maxWidth:0};for(let XA=0;XA<j;XA++)RA.minWidth+=n.table.widths[F+XA]._minWidth+(XA?sA.offsets[F+XA]:0),RA.maxWidth+=n.table.widths[F+XA]._maxWidth+(XA?sA.offsets[F+XA]:0);return RA}function M(F,j,sA){for(let RA=1;RA<sA;RA++)F[j+RA]={_span:!0,_minWidth:0,_maxWidth:0,rowSpan:F[j].rowSpan}}function c(F,j,sA,RA){for(let XA=1;XA<RA;XA++)F.body[j+XA][sA]={_span:!0,_minWidth:0,_maxWidth:0,fillColor:F.body[j][sA].fillColor,fillOpacity:F.body[j][sA].fillOpacity}}function P(F){if(F.table.widths||(F.table.widths="auto"),d(F.table.widths))for(F.table.widths=[F.table.widths];F.table.widths.length<F.table.body[0].length;)F.table.widths.push(F.table.widths[F.table.widths.length-1]);for(let j=0,sA=F.table.widths.length;j<sA;j++){let RA=F.table.widths[j];(E(RA)||d(RA))&&(F.table.widths[j]={width:RA})}}}measureCanvas(n){let U=0,H=0;for(let aA=0,QA=n.canvas.length;aA<QA;aA++){let YA=n.canvas[aA];switch(YA.type){case"ellipse":U=Math.max(U,YA.x+YA.r1),H=Math.max(H,YA.y+YA.r2);break;case"rect":U=Math.max(U,YA.x+YA.w),H=Math.max(H,YA.y+YA.h);break;case"line":U=Math.max(U,YA.x1,YA.x2),H=Math.max(H,YA.y1,YA.y2);break;case"polyline":for(let LA=0,JA=YA.points.length;LA<JA;LA++)U=Math.max(U,YA.points[LA].x),H=Math.max(H,YA.points[LA].y);break}}return n._minWidth=n._maxWidth=U,n._minHeight=n._maxHeight=H,n._alignment=this.styleStack.getProperty("alignment"),n}measureQr(n){return n=Se.measure(n),n._alignment=this.styleStack.getProperty("alignment"),n}measureAttachment(n){return n._width=n.width||7,n._height=n.height||18,n}}const Ge=ue;var et=t(4785);class lt extends et.EventEmitter{constructor(){super(),this.pages=[],this.pageMargins=void 0,this.x=void 0,this.availableWidth=void 0,this.availableHeight=void 0,this.page=-1,this.snapshots=[],this.backgroundLength=[]}beginColumnGroup(n,U,H,aA,QA){U===void 0&&(U={}),H===void 0&&(H=!1),aA===void 0&&(aA=0),QA===void 0&&(QA=null),this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,bottomByPage:U||{},bottomMost:{x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page},lastColumnWidth:this.lastColumnWidth,snakingColumns:H,gap:aA,columnWidths:QA}),this.lastColumnWidth=0,n&&(this.marginXTopParent=n)}updateBottomByPage(){const n=this.snapshots[this.snapshots.length-1];if(!n)return;const U=this.page;let H=-Number.MIN_VALUE;n.bottomByPage&&n.bottomByPage[U]&&(H=n.bottomByPage[U]),n.bottomByPage&&(n.bottomByPage[U]=Math.max(H,this.y))}resetMarginXTopParent(){this.marginXTopParent=null}getSnakingSnapshot(){for(let n=this.snapshots.length-1;n>=0;n--)if(this.snapshots[n].snakingColumns)return this.snapshots[n];return null}inSnakingColumns(){return!!this.getSnakingSnapshot()}isInNestedNonSnakingGroup(){for(let n=this.snapshots.length-1;n>=0;n--){let U=this.snapshots[n];if(U.snakingColumns)return!1;if(!U.overflowed)return!0}return!1}beginColumn(n,U,H){let aA=this.snapshots[this.snapshots.length-1];if(aA&&aA.overflowed){for(let QA=this.snapshots.length-1;QA>=0;QA--)if(!this.snapshots[QA].overflowed){aA=this.snapshots[QA];break}}this.calculateBottomMost(aA,H),this.page=aA.page,this.x=this.x+this.lastColumnWidth+(U||0),this.y=aA.y,this.availableWidth=n,this.availableHeight=aA.availableHeight,this.lastColumnWidth=n}calculateBottomMost(n,U){U?this.saveContextInEndingCell(U):n.bottomMost=bt(this,n.bottomMost)}markEnding(n,U,H){this.page=n._columnEndingContext.page,this.x=n._columnEndingContext.x+U,this.y=n._columnEndingContext.y-H,this.availableWidth=n._columnEndingContext.availableWidth,this.availableHeight=n._columnEndingContext.availableHeight,this.lastColumnWidth=n._columnEndingContext.lastColumnWidth}saveContextInEndingCell(n){n._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}}completeColumnGroup(n,U){let H=this.snapshots.pop(),aA=this.y,QA=this.page,YA=this.availableHeight;for(;H&&H.overflowed;){let JA=bt({page:QA,y:aA,availableHeight:YA},H.bottomMost||{});QA=JA.page,aA=JA.y,YA=JA.availableHeight,H=this.snapshots.pop()}if(!H)return{};(QA>H.bottomMost.page||QA===H.bottomMost.page&&aA>H.bottomMost.y)&&(H.bottomMost={x:H.x,y:aA,page:QA,availableHeight:YA,availableWidth:H.availableWidth}),this.calculateBottomMost(H,U),this.x=H.x;let LA=H.bottomMost.y;return n&&(H.page===H.bottomMost.page?H.y+n>LA&&(LA=H.y+n):LA+=n),this.y=LA,this.page=H.bottomMost.page,this.availableWidth=H.availableWidth,this.availableHeight=H.bottomMost.availableHeight,n&&(this.availableHeight-=LA-H.bottomMost.y),n&&H.bottomMost.y-H.y<n?this.height=n:this.height=H.bottomMost.y-H.y,this.lastColumnWidth=H.lastColumnWidth,H.bottomByPage}moveToNextColumn(){let n=this.y,U=this.getSnakingSnapshot();if(!U)return{prevY:n,y:this.y};this.calculateBottomMost(U,null);let H=0;for(let JA=this.snapshots.length-1;JA>=0&&this.snapshots[JA].overflowed;JA--)H++;let aA=U.columnWidths&&U.columnWidths[H]||this.lastColumnWidth||this.availableWidth,QA=U.columnWidths&&U.columnWidths[H+1]||aA;this.lastColumnWidth=QA;let YA=this.x+(aA||0)+(U.gap||0),LA=U.y;this.snapshots.push({x:YA,y:LA,availableHeight:U.availableHeight,availableWidth:QA,page:this.page,overflowed:!0,bottomMost:{x:YA,y:LA,availableHeight:U.availableHeight,availableWidth:QA,page:this.page},lastColumnWidth:QA,snakingColumns:!0,gap:U.gap,columnWidths:U.columnWidths}),this.x=YA,this.y=LA,this.availableHeight=U.availableHeight,this.availableWidth=QA;for(let JA=this.snapshots.length-2;JA>=0;JA--){let fe=this.snapshots[JA];if(fe.overflowed||fe.snakingColumns)break;fe.x=YA,fe.y=LA,fe.page=this.page,fe.availableHeight=U.availableHeight,fe.bottomMost&&(fe.bottomMost.x=YA,fe.bottomMost.y=LA,fe.bottomMost.page=this.page,fe.bottomMost.availableHeight=U.availableHeight)}return{prevY:n,y:this.y}}resetSnakingColumnsForNewPage(){let n=this.getSnakingSnapshot();if(!n)return;let U=this.pageMargins.top,H=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,aA=n.columnWidths?n.columnWidths[0]:this.lastColumnWidth||this.availableWidth;for(;this.snapshots.length>1&&this.snapshots[this.snapshots.length-1].overflowed;)this.snapshots.pop();this.marginXTopParent?this.x=this.pageMargins.left+this.marginXTopParent[0]:this.x=this.pageMargins.left,this.availableWidth=aA,this.lastColumnWidth=aA;for(let QA=0;QA<this.snapshots.length;QA++){let YA=this.snapshots[QA],LA=!!YA.snakingColumns;YA.x=this.x,YA.y=LA?U:this.y,YA.availableHeight=LA?H:this.availableHeight,YA.page=this.page,YA.bottomMost&&(YA.bottomMost.x=this.x,YA.bottomMost.y=LA?U:this.y,YA.bottomMost.availableHeight=LA?H:this.availableHeight,YA.bottomMost.page=this.page)}}addMargin(n,U){this.x+=n,this.availableWidth-=n+(U||0)}moveDown(n){return this.y+=n,this.availableHeight-=n,this.availableHeight>0}initializePage(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom;const{pageCtx:n,isSnapshot:U}=this.pageSnapshot();n.availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right,U&&this.marginXTopParent&&(n.availableWidth-=this.marginXTopParent[0],n.availableWidth-=this.marginXTopParent[1])}pageSnapshot(){return this.snapshots[0]?{pageCtx:this.snapshots[0],isSnapshot:!0}:{pageCtx:this,isSnapshot:!1}}moveTo(n,U){n!=null&&(this.x=n,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),U!=null&&(this.y=U,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)}moveToRelative(n,U){n!=null&&(this.x=this.x+n),U!=null&&(this.y=this.y+U)}beginDetachedBlock(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,lastColumnWidth:this.lastColumnWidth})}endDetachedBlock(){let n=this.snapshots.pop();this.x=n.x,this.y=n.y,this.availableWidth=n.availableWidth,this.availableHeight=n.availableHeight,this.page=n.page,this.lastColumnWidth=n.lastColumnWidth}moveToNextPage(n){let U=this.page+1,H=this.page,aA=this.y;if(this.snapshots.length>0){let YA=this.snapshots[this.snapshots.length-1];YA.bottomMost&&YA.bottomMost.y&&(aA=Math.max(this.y,YA.bottomMost.y))}let QA=U>=this.pages.length;if(QA){let YA=this.availableWidth,LA=this.getCurrentPage().pageSize.orientation,JA=wt(this.getCurrentPage(),n);this.addPage(JA,null,this.getCurrentPage().customProperties),LA===JA.orientation&&(this.availableWidth=YA)}else this.page=U,this.initializePage();return{newPageCreated:QA,prevPage:H,prevY:aA,y:this.y}}addPage(n,U,H){U===void 0&&(U=null),H===void 0&&(H={}),U!==null&&(this.pageMargins=U,this.x=U.left,this.availableWidth=n.width-U.left-U.right);let aA={items:[],pageSize:n,pageMargins:this.pageMargins,customProperties:H};return this.pages.push(aA),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.emit("pageAdded",aA),aA}getCurrentPage(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]}getCurrentPosition(){let n=this.getCurrentPage().pageSize,U=n.height-this.pageMargins.top-this.pageMargins.bottom,H=n.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:n.orientation,pageInnerHeight:U,pageInnerWidth:H,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/U,horizontalRatio:(this.x-this.pageMargins.left)/H}}}function Dt(xA,n){return xA===void 0?n:d(xA)&&xA.toLowerCase()==="landscape"?"landscape":"portrait"}const wt=(xA,n)=>(n=Dt(n,xA.pageSize.orientation),n!==xA.pageSize.orientation?{orientation:n,width:xA.pageSize.height,height:xA.pageSize.width}:{orientation:xA.pageSize.orientation,width:xA.pageSize.width,height:xA.pageSize.height});function bt(xA,n){let U;return xA.page>n.page?U=xA:n.page>xA.page?U=n:U=xA.y>n.y?xA:n,{page:U.page,x:U.x,y:U.y,availableHeight:U.availableHeight,availableWidth:U.availableWidth}}const at=lt;class Mt extends et.EventEmitter{constructor(n){super(),this._context=n,this.contextStack=[]}context(){return this._context}addLine(n,U,H){let aA=n.getHeight(),QA=this.context(),YA=QA.getCurrentPage(),LA=this.getCurrentPositionOnPage();return QA.availableHeight<aA||!YA?!1:(n.x=QA.x+(n.x||0),n.y=QA.y+(n.y||0),this.alignLine(n),tr(YA,{type:"line",item:n},H),this.emit("lineAdded",n),U||QA.moveDown(aA),LA)}alignLine(n){let U=this.context().availableWidth,H=n.getWidth(),aA=n.inlines&&n.inlines.length>0&&n.inlines[0].alignment,QA=0;switch(aA){case"right":QA=U-H;break;case"center":QA=(U-H)/2;break}if(QA&&(n.x=(n.x||0)+QA),aA==="justify"&&!n.newLineForced&&!n.lastLineInParagraph&&n.inlines.length>1){let YA=(U-H)/(n.inlines.length-1);for(let LA=1,JA=n.inlines.length;LA<JA;LA++)QA=LA*YA,n.inlines[LA].x+=QA,n.inlines[LA].justifyShift=YA}}addImage(n,U){let H=this.context(),aA=H.getCurrentPage(),QA=this.getCurrentPositionOnPage();return!aA||n.absolutePosition===void 0&&H.availableHeight<n._height&&aA.items.length>0?!1:(n._x===void 0&&(n._x=n.x||0),n.x=H.x+n._x,n.y=H.y,this.alignImage(n),tr(aA,{type:"image",item:n},U),H.moveDown(n._height),QA)}addCanvas(n,U){let H=this.context(),aA=H.getCurrentPage(),QA=[],YA=n._minHeight;return!aA||n.absolutePosition===void 0&&H.availableHeight<YA?!1:(this.alignCanvas(n),n.canvas.forEach(function(LA){let JA=this.addVector(LA,!1,!1,U);QA.push(JA),U!==void 0&&U++},this),H.moveDown(YA),QA)}addSVG(n,U){let H=this.context(),aA=H.getCurrentPage(),QA=this.getCurrentPositionOnPage();return!aA||n.absolutePosition===void 0&&H.availableHeight<n._height&&aA.items.length>0?!1:(n._x===void 0&&(n._x=n.x||0),n.x=H.x+n._x,n.y=H.y,this.alignImage(n),tr(aA,{type:"svg",item:n},U),H.moveDown(n._height),QA)}addQr(n,U){let H=this.context(),aA=H.getCurrentPage(),QA=this.getCurrentPositionOnPage();if(!aA||n.absolutePosition===void 0&&H.availableHeight<n._height)return!1;n._x===void 0&&(n._x=n.x||0),n.x=H.x+n._x,n.y=H.y,this.alignImage(n);for(let YA=0,LA=n._canvas.length;YA<LA;YA++){let JA=n._canvas[YA];JA.x+=n.x,JA.y+=n.y,this.addVector(JA,!0,!0,U)}return H.moveDown(n._height),QA}addAttachment(n,U){let H=this.context(),aA=H.getCurrentPage(),QA=this.getCurrentPositionOnPage();return!aA||n.absolutePosition===void 0&&H.availableHeight<n._height&&aA.items.length>0?!1:(n._x===void 0&&(n._x=n.x||0),n.x=H.x+n._x,n.y=H.y,tr(aA,{type:"attachment",item:n},U),H.moveDown(n._height),QA)}alignImage(n){let U=this.context().availableWidth,H=n._minWidth,aA=0;switch(n._alignment){case"right":aA=U-H;break;case"center":aA=(U-H)/2;break}aA&&(n.x=(n.x||0)+aA)}alignCanvas(n){let U=this.context().availableWidth,H=n._minWidth,aA=0;switch(n._alignment){case"right":aA=U-H;break;case"center":aA=(U-H)/2;break}aA&&n.canvas.forEach(QA=>{Qe(QA,aA,0)})}addVector(n,U,H,aA,QA){let YA=this.context(),LA=YA.getCurrentPage();E(QA)&&(LA=YA.pages[QA]);let JA=this.getCurrentPositionOnPage();if(LA)return Qe(n,U?0:YA.x,H?0:YA.y),tr(LA,{type:"vector",item:n},aA),JA}beginClip(n,U){let H=this.context();return H.getCurrentPage().items.push({type:"beginClip",item:{x:H.x,y:H.y,width:n,height:U}}),!0}endClip(){return this.context().getCurrentPage().items.push({type:"endClip"}),!0}beginVerticalAlignment(n){let U=this.context().getCurrentPage(),H={type:"beginVerticalAlignment",item:{verticalAlignment:n}};return U.items.push(H),H}endVerticalAlignment(n){let U=this.context().getCurrentPage(),H={type:"endVerticalAlignment",item:{verticalAlignment:n}};return U.items.push(H),H}addFragment(n,U,H,aA){let QA=this.context(),YA=QA.getCurrentPage();return!U&&n.height>QA.availableHeight?!1:(n.items.forEach(LA=>{switch(LA.type){case"line":var JA=LA.item.clone();JA._node&&(JA._node.positions[0].pageNumber=QA.page+1),JA.x=(JA.x||0)+(U?n.xOffset||0:QA.x),JA.y=(JA.y||0)+(H?n.yOffset||0:QA.y),YA.items.push({type:"line",item:JA});break;case"vector":var fe=te(LA.item);if(Qe(fe,U?n.xOffset||0:QA.x,H?n.yOffset||0:QA.y),fe._isFillColorFromUnbreakable){delete fe._isFillColorFromUnbreakable;const pe=QA.backgroundLength[QA.page];YA.items.splice(pe,0,{type:"vector",item:fe})}else YA.items.push({type:"vector",item:fe});break;case"image":case"svg":case"beginClip":case"endClip":case"beginVerticalAlignment":case"endVerticalAlignment":var Ee=te(LA.item);Ee.x=(Ee.x||0)+(U?n.xOffset||0:QA.x),Ee.y=(Ee.y||0)+(H?n.yOffset||0:QA.y),YA.items.push({type:LA.type,item:Ee});break}}),aA||QA.moveDown(n.height),!0)}pushContext(n,U){if(n===void 0&&(U=this.context().getCurrentPage().height-this.context().pageMargins.top-this.context().pageMargins.bottom,n=this.context().availableWidth),E(n)){let H=n;n=new at,n.addPage({width:H,height:U},{left:0,right:0,top:0,bottom:0})}this.contextStack.push(this.context()),this._context=n}popContext(){this._context=this.contextStack.pop()}getCurrentPositionOnPage(){return(this.contextStack[0]||this.context()).getCurrentPosition()}}function tr(xA,n,U){U==null||U<0||U>xA.items.length?xA.items.push(n):xA.items.splice(U,0,n)}const Kt=Mt,Jt={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};function Ut(xA,n){function U(QA){return d(QA)?(QA=QA.toLowerCase(),QA==="portrait"&&aA.width>aA.height||QA==="landscape"&&aA.width<aA.height):!1}function H(QA){if(d(QA)){let YA=Jt[QA.toUpperCase()];if(!YA)throw new Error(`Page size ${QA} not recognized`);return{width:YA[0],height:YA[1]}}return QA}xA&&xA.height==="auto"&&(xA.height=1/0);let aA=H(xA||"A4");return U(n)&&(aA={width:aA.height,height:aA.width}),aA.orientation=aA.width>aA.height?"landscape":"portrait",aA}function $t(xA){if(E(xA))xA={left:xA,right:xA,top:xA,bottom:xA};else if(Array.isArray(xA))if(xA.length===2)xA={left:xA[0],top:xA[1],right:xA[0],bottom:xA[1]};else if(xA.length===4)xA={left:xA[0],top:xA[1],right:xA[2],bottom:xA[3]};else throw new Error("Invalid pageMargins definition");return xA}class Bi extends Kt{constructor(n){super(n),this.transactionLevel=0,this.repeatables=[]}addLine(n,U,H){return this._fitOnPage(()=>super.addLine(n,U,H))}addImage(n,U){return this._fitOnPage(()=>super.addImage(n,U))}addCanvas(n,U){return this._fitOnPage(()=>super.addCanvas(n,U))}addSVG(n,U){return this._fitOnPage(()=>super.addSVG(n,U))}addQr(n,U){return this._fitOnPage(()=>super.addQr(n,U))}addAttachment(n,U){return this._fitOnPage(()=>super.addAttachment(n,U))}addVector(n,U,H,aA,QA){return super.addVector(n,U,H,aA,QA)}beginClip(n,U){return super.beginClip(n,U)}endClip(){return super.endClip()}beginVerticalAlignment(n){return super.beginVerticalAlignment(n)}endVerticalAlignment(n){return super.endVerticalAlignment(n)}addFragment(n,U,H,aA){return this._fitOnPage(()=>super.addFragment(n,U,H,aA))}moveToNextPage(n){let U=this.context().moveToNextPage(n);this.repeatables.forEach(function(H){H.insertedOnPages[this.context().page]===void 0?(H.insertedOnPages[this.context().page]=!0,this.addFragment(H,!0)):this.context().moveDown(H.height)},this),this.emit("pageChanged",{prevPage:U.prevPage,prevY:U.prevY,y:this.context().y})}addPage(n,U,H,aA){aA===void 0&&(aA={});let QA=this.page,YA=this.y;this.context().addPage(Ut(n,U),$t(H),aA),this.emit("pageChanged",{prevPage:QA,prevY:YA,y:this.context().y})}beginUnbreakableBlock(n,U){this.transactionLevel++===0&&(this.originalX=this.context().x,this.pushContext(n,U))}commitUnbreakableBlock(n,U){if(--this.transactionLevel===0){let H=this.context();this.popContext();let aA=H.pages.length;if(aA>0){let QA=H.pages[0];if(QA.xOffset=n,QA.yOffset=U,aA>1)if(n!==void 0||U!==void 0)QA.height=H.getCurrentPage().pageSize.height-H.pageMargins.top-H.pageMargins.bottom;else{QA.height=this.context().getCurrentPage().pageSize.height-this.context().pageMargins.top-this.context().pageMargins.bottom;for(let YA=0,LA=this.repeatables.length;YA<LA;YA++)QA.height-=this.repeatables[YA].height}else QA.height=H.y;n!==void 0||U!==void 0?super.addFragment(QA,!0,!0,!0):this.addFragment(QA)}}}currentBlockToRepeatable(){let n=this.context(),U={items:[]};return n.pages[0].items.forEach(H=>{U.items.push(H)}),U.xOffset=this.originalX,U.height=n.y,U.insertedOnPages=[],U}pushToRepeatables(n){this.repeatables.push(n)}popFromRepeatables(){this.repeatables.pop()}moveToNextColumn(){let n=this.context().moveToNextColumn();this.repeatables.forEach(function(U){this.addFragment(U,!1)},this),this.emit("columnChanged",{prevY:n.prevY,y:this.context().y})}canMoveToNextColumn(){let n=this.context(),U=n.getSnakingSnapshot();if(U){for(let Ce=n.snapshots.length-1;Ce>=0;Ce--){let M=n.snapshots[Ce];if(M.snakingColumns)break;if(!M.overflowed)return!1}let H=0;for(let Ce=n.snapshots.length-1;Ce>=0&&n.snapshots[Ce].overflowed;Ce--)H++;if(U.columnWidths&&H>=U.columnWidths.length-1)return!1;let aA=n.availableWidth||n.lastColumnWidth||0,QA=U.columnWidths?U.columnWidths[H+1]:aA,YA=n.x+aA+(U.gap||0),LA=n.getCurrentPage(),JA=LA.pageSize.width,fe=LA.pageMargins?LA.pageMargins.right:0,Ee=n.marginXTopParent?n.marginXTopParent[1]:0,pe=JA-fe-Ee;return YA+QA<=pe+1}return!1}_fitOnPage(n){let U=n();if(!U&&(this.canMoveToNextColumn()&&(this.moveToNextColumn(),U=n()),!U)){let H=this.context();if(H.getSnakingSnapshot()){if(H.isInNestedNonSnakingGroup())this.moveToNextPage();else{this.moveToNextPage();let QA=H.lastColumnWidth;H.resetSnakingColumnsForNewPage(),H.lastColumnWidth=QA}U=n()}else{for(;H.snapshots.length>0&&H.snapshots[H.snapshots.length-1].overflowed;){let QA=H.snapshots.pop(),YA=H.snapshots[H.snapshots.length-1];YA&&(H.x=YA.x,H.y=YA.y,H.availableHeight=YA.availableHeight,H.availableWidth=QA.availableWidth,H.lastColumnWidth=YA.lastColumnWidth)}this.moveToNextPage(),U=n()}}return U}}const pr=Bi;class hr{constructor(n){this.tableNode=n}beginTable(n){const U=()=>{let JA=0;return QA.table.widths.forEach(fe=>{JA+=fe._calcWidth}),JA},H=()=>{let JA=[],fe=0,Ee;JA.push({left:0,rowSpan:0});for(let pe=0,Ce=this.tableNode.table.body[0].length;pe<Ce;pe++){let M=this.layout.paddingLeft(pe,this.tableNode)+this.layout.paddingRight(pe,this.tableNode),c=this.layout.vLineWidth(pe,this.tableNode);Ee=M+c+this.tableNode.table.widths[pe]._calcWidth,JA[JA.length-1].width=Ee,fe+=Ee,JA.push({left:fe,rowSpan:0,width:0})}return JA},aA=JA=>{for(let Ee=0;Ee<JA.length;Ee++){let pe=JA[Ee];for(let Ce=0;Ce<pe.length;Ce++){let M=pe[Ce];if(M.border){let c=M.rowSpan||1,P=M.colSpan||1;for(let F=0;F<c;F++)M.border[0]!==void 0&&F>0&&fe(Ee+F,Ce,0,M.border[0]),M.border[2]!==void 0&&fe(Ee+F,Ce+P-1,2,M.border[2]);for(let F=0;F<P;F++)M.border[1]!==void 0&&F>0&&fe(Ee,Ce+F,1,M.border[1]),M.border[3]!==void 0&&fe(Ee+c-1,Ce+F,3,M.border[3])}}}function fe(Ee,pe,Ce,M){let c=JA[Ee][pe];c.border=c.border||{},c.border[Ce]=M}};let QA,YA;QA=this.tableNode,this.offsets=QA._offsets,this.layout=QA._layout,YA=n.context().availableWidth-this.offsets.total,UA.buildColumnWidths(QA.table.widths,YA,this.offsets.total,QA),this.tableWidth=QA._offsets.total+U(),this.rowSpanData=H(),this.cleanUpRepeatables=!1,this.headerRows=0,this.rowsWithoutPageBreak=0;const LA=QA.table.headerRows;if(D(LA)){if(this.headerRows=LA,this.headerRows>QA.table.body.length)throw new Error(`Too few rows in the table. Property headerRows requires at least ${this.headerRows}, contains only ${QA.table.body.length}`);this.rowsWithoutPageBreak=this.headerRows;const JA=QA.table.keepWithHeaderRows;D(JA)&&(this.rowsWithoutPageBreak+=JA)}this.dontBreakRows=QA.table.dontBreakRows||!1,(this.rowsWithoutPageBreak||this.dontBreakRows)&&(n.beginUnbreakableBlock(),this.drawHorizontalLine(0,n),this.rowsWithoutPageBreak&&this.dontBreakRows&&n.beginUnbreakableBlock()),aA(this.tableNode.table.body)}onRowBreak(n,U){return()=>{let H=this.rowPaddingTop+(this.headerRows?0:this.topLineWidth);U.context().availableHeight-=this.reservedAtBottom,U.context().moveDown(H)}}beginRow(n,U){this.topLineWidth=this.layout.hLineWidth(n,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(n,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(n+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(n,this.tableNode),this.rowCallback=this.onRowBreak(n,U),U.addListener("pageChanged",this.rowCallback),n==0&&!this.dontBreakRows&&!this.rowsWithoutPageBreak&&(this._tableTopBorderY=U.context().y,U.context().moveDown(this.topLineWidth)),this.rowTopPageY=U.context().y+this.rowPaddingTop,this.dontBreakRows&&n>0&&U.beginUnbreakableBlock(),this.rowTopY=U.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,U.context().availableHeight-=this.reservedAtBottom,U.context().moveDown(this.rowPaddingTop)}drawHorizontalLine(n,U,H,aA,QA){aA===void 0&&(aA=!0);let YA=this.layout.hLineWidth(n,this.tableNode);if(YA){let Ee=this.layout.hLineStyle(n,this.tableNode),pe;Ee&&Ee.dash&&(pe=Ee.dash);let Ce=YA/2,M=null,c=this.tableNode.table.body,P,F,j;for(let sA=0,RA=this.rowSpanData.length;sA<RA;sA++){let XA=this.rowSpanData[sA],ae=!XA.rowSpan,Ie=null;if(ae&&sA<RA-1){var LA=!1,JA=!1,fe=!1;n>0&&(P=c[n-1][sA],JA=P.border?P.border[3]:this.layout.defaultBorder,JA&&P.borderColor&&(Ie=P.borderColor[3])),n<c.length&&(F=c[n][sA],LA=F.border?F.border[1]:this.layout.defaultBorder,LA&&Ie==null&&F.borderColor&&(Ie=F.borderColor[1])),ae=LA||JA}if(P&&P._rowSpanCurrentOffset&&(j=c[n-1-P._rowSpanCurrentOffset][sA],fe=j&&j.border?j.border[3]:this.layout.defaultBorder,fe&&j&&j.borderColor&&(Ie=j.borderColor[3])),Ie==null&&(Ie=typeof this.layout.hLineColor=="function"?this.layout.hLineColor(n,this.tableNode,sA):this.layout.hLineColor),!M&&ae&&(M={left:XA.left,width:0}),ae){let he=0;if(j&&j.colSpan&&fe){for(;j.colSpan>he;)M.width+=this.rowSpanData[sA+he++].width||0;sA+=he-1}else if(P&&P.colSpan&&JA){for(;P.colSpan>he;)M.width+=this.rowSpanData[sA+he++].width||0;sA+=he-1}else if(F&&F.colSpan&&LA){for(;F.colSpan>he;)M.width+=this.rowSpanData[sA+he++].width||0;sA+=he-1}else M.width+=this.rowSpanData[sA].width||0}let De=(H||0)+Ce;ae&&M&&M.width&&(U.addVector({type:"line",x1:M.left,x2:M.left+M.width,y1:De,y2:De,lineWidth:YA,dash:pe,lineColor:Ie},!1,E(H),null,QA),M=null,P=null,F=null,j=null)}aA&&U.context().moveDown(YA)}}drawVerticalLine(n,U,H,aA,QA,YA,LA){let JA=this.layout.vLineWidth(aA,this.tableNode);if(JA===0)return;let fe=this.layout.vLineStyle(aA,this.tableNode),Ee;fe&&fe.dash&&(Ee=fe.dash);let pe=this.tableNode.table.body,Ce,M,c;if(aA>0&&(Ce=pe[YA][LA],Ce&&Ce.borderColor&&(Ce.border?Ce.border[2]:this.layout.defaultBorder)&&(c=Ce.borderColor[2])),c==null&&aA<pe.length&&(M=pe[YA][aA],M&&M.borderColor&&(M.border?M.border[0]:this.layout.defaultBorder)&&(c=M.borderColor[0])),c==null&&Ce&&Ce._rowSpanCurrentOffset){let P=pe[YA-Ce._rowSpanCurrentOffset][LA];P.borderColor&&(P.border?P.border[2]:this.layout.defaultBorder)&&(c=P.borderColor[2])}if(c==null&&M&&M._rowSpanCurrentOffset){let P=pe[YA-M._rowSpanCurrentOffset][aA];P.borderColor&&(P.border?P.border[2]:this.layout.defaultBorder)&&(c=P.borderColor[2])}c==null&&(c=typeof this.layout.vLineColor=="function"?this.layout.vLineColor(aA,this.tableNode,YA):this.layout.vLineColor),QA.addVector({type:"line",x1:n+JA/2,x2:n+JA/2,y1:U,y2:H,lineWidth:JA,dash:Ee,lineColor:c},!1,!0)}endTable(n){this.cleanUpRepeatables&&n.popFromRepeatables()}endRow(n,U,H){const aA=()=>{let j=[],sA=0;for(let RA=0,XA=this.tableNode.table.body[n].length;RA<XA;RA++){if(!sA){j.push({x:this.rowSpanData[RA].left,index:RA});let ae=this.tableNode.table.body[n][RA];sA=ae._colSpan||ae.colSpan||0}sA>0&&sA--}return j.push({x:this.rowSpanData[this.rowSpanData.length-1].left,index:this.rowSpanData.length-1}),j};U.removeListener("pageChanged",this.rowCallback),U.context().moveDown(this.layout.paddingBottom(n,this.tableNode)),U.context().availableHeight+=this.reservedAtBottom;let QA=U.context().page,YA=U.context().y,LA=aA(),JA=[],fe=H&&H.length>0,Ee=this.tableNode.table.body;if(JA.push({y0:this.rowTopY,page:fe?H[0].prevPage:QA}),fe)for(let j=0,sA=H.length;j<sA;j++){let RA=H[j];JA[JA.length-1].y1=RA.prevY,JA.push({y0:RA.y,page:RA.prevPage+1})}JA[JA.length-1].y1=YA;let pe=JA[0].y1-JA[0].y0===this.rowPaddingTop;if(n===0&&!pe&&!this.rowsWithoutPageBreak&&!this.dontBreakRows){let j=null;H&&H.length>0&&(j=H[0].prevPage),this.drawHorizontalLine(0,U,this._tableTopBorderY,!1,j)}for(let j=pe?1:0,sA=JA.length;j<sA;j++){let RA=j<JA.length-1,XA=j>0&&!this.headerRows,ae=XA?0:this.topLineWidth,Ie=JA[j].y0,De=JA[j].y1;RA&&(De=De+this.rowPaddingBottom),U.context().page!=JA[j].page&&(U.context().page=JA[j].page,this.reservedAtBottom=0),RA&&this.layout.hLineWhenBroken!==!1&&this.drawHorizontalLine(n+1,U,De),XA&&this.layout.hLineWhenBroken!==!1&&this.drawHorizontalLine(n,U,Ie);for(let he=0,xe=LA.length;he<xe;he++){let qe=!1,ke=!1,Ze=LA[he].index;if(Ze<Ee[n].length){let He=Ee[n][Ze];qe=He.border?He.border[0]:this.layout.defaultBorder,ke=He.border?He.border[2]:this.layout.defaultBorder}if(Ze>0&&!qe){let He=Ee[n][Ze-1];qe=He.border?He.border[2]:this.layout.defaultBorder}if(Ze+1<Ee[n].length&&!ke){let He=Ee[n][Ze+1];ke=He.border?He.border[0]:this.layout.defaultBorder}if(qe&&this.drawVerticalLine(LA[he].x,Ie-ae,De+this.bottomLineWidth,LA[he].index,U,n,LA[he-1]?LA[he-1].index:null),he<xe-1){if(Ee[n][Ze]._willBreak=Ee[n][Ze]._willBreak??RA,Ee[n][Ze]._bottomY===void 0){let Xe=this.dontBreakRows?De+this.bottomLineWidth:De+this.bottomLineWidth/2;(RA||this.dontBreakRows)&&(Xe=Xe-this.rowPaddingBottom),Ee[n][Ze]._bottomY=Xe-this.reservedAtBottom}Ee[n][Ze]._rowTopPageY=this.rowTopPageY,this.dontBreakRows&&(Ee[n][Ze]._rowTopPageYPadding=this.rowPaddingTop),Ee[n][Ze]._lastPageNumber=JA[j].page+1;let He=Ee[n][Ze].fillColor,At=Ee[n][Ze].fillOpacity;He||(He=typeof this.layout.fillColor=="function"?this.layout.fillColor(n,this.tableNode,Ze):this.layout.fillColor),E(At)||(At=typeof this.layout.fillOpacity=="function"?this.layout.fillOpacity(n,this.tableNode,Ze):this.layout.fillOpacity);var Ce=Ee[n][Ze].overlayPattern,M=Ee[n][Ze].overlayOpacity;if(He||Ce){let Xe=qe?this.layout.vLineWidth(Ze,this.tableNode):0,gt;(Ze===0||Ze+1==Ee[n].length)&&!ke?gt=this.layout.vLineWidth(Ze+1,this.tableNode):ke?gt=this.layout.vLineWidth(Ze+1,this.tableNode)/2:gt=0;let Ht=this.dontBreakRows?LA[he].x+Xe:LA[he].x+Xe/2,Ot=this.dontBreakRows?Ie:Ie-ae/2,zt=LA[he+1].x+gt,ot=this.dontBreakRows?De+this.bottomLineWidth:De+this.bottomLineWidth/2;var c=zt-Ht,P=ot-Ot;He&&U.addVector({type:"rect",x:Ht,y:Ot,w:c,h:P,lineWidth:0,color:He,fillOpacity:At,_isFillColorFromUnbreakable:!!U.transactionLevel},!1,!0,U.context().backgroundLength[U.context().page]),Ce&&U.addVector({type:"rect",x:Ht,y:Ot,w:c,h:P,lineWidth:0,color:Ce,fillOpacity:M},!1,!0)}}}}U.context().page=QA,U.context().y=YA;let F=this.tableNode.table.body[n];for(let j=0,sA=F.length;j<sA;j++){if(F[j].rowSpan){if(this.rowSpanData[j].rowSpan=F[j].rowSpan,F[j].colSpan&&F[j].colSpan>1)for(let RA=1;RA<F[j].rowSpan;RA++)this.tableNode.table.body[n+RA][j]._colSpan=F[j].colSpan;if(F[j].rowSpan&&F[j].rowSpan>1)for(let RA=1;RA<F[j].rowSpan;RA++)this.tableNode.table.body[n+RA][j]._rowSpanCurrentOffset=RA}this.rowSpanData[j].rowSpan>0&&this.rowSpanData[j].rowSpan--}if(this.drawHorizontalLine(n+1,U),this.headerRows&&n===this.headerRows-1&&(this.headerRepeatable=U.currentBlockToRepeatable()),this.dontBreakRows){const j=()=>{n>0&&!this.headerRows&&this.layout.hLineWhenBroken!==!1&&this.drawHorizontalLine(n,U)};U.addListener("pageChanged",j),U.commitUnbreakableBlock(),U.removeListener("pageChanged",j)}this.headerRepeatable&&(n===this.rowsWithoutPageBreak-1||n===this.tableNode.table.body.length-1)&&(U.commitUnbreakableBlock(),U.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)}}const Pr=hr;class Er{constructor(n){this.maxWidth=n,this.leadingCut=0,this.trailingCut=0,this.inlineWidths=0,this.inlines=[]}addInline(n){this.inlines.length===0&&(this.leadingCut=n.leadingCut||0),this.trailingCut=n.trailingCut||0,n.x=this.inlineWidths-this.leadingCut,this.inlines.push(n),this.inlineWidths+=n.width,n.lineEnd&&(this.newLineForced=!0)}getHeight(){let n=0;return this.inlines.forEach(U=>{n=Math.max(n,U.height||0)}),n}getAscenderHeight(){let n=0;return this.inlines.forEach(U=>{n=Math.max(n,U.font.ascender/1e3*U.fontSize)}),n}getWidth(){return this.inlineWidths-this.leadingCut-this.trailingCut}getAvailableWidth(){return this.maxWidth-this.getWidth()}hasEnoughSpaceForInline(n,U){if(U===void 0&&(U=[]),this.inlines.length===0)return!0;if(this.newLineForced)return!1;let H=n.width,aA=n.trailingCut||0;if(n.noNewLine)for(let QA=0,YA=U.length;QA<YA;QA++){let LA=U[QA];if(H+=LA.width,aA+=LA.trailingCut||0,!LA.noNewLine)break}return this.inlineWidths+H-this.leadingCut-aA<=this.maxWidth}clone(){let n=new Er(this.maxWidth);for(let U in this)this.hasOwnProperty(U)&&(n[U]=this[U]);return n}}const Rr=Er;function dr(xA,n){n.forEach(U=>{xA.push(U)})}class vr{constructor(n,U,H){this.pageSize=n,this.pageMargins=U,this.svgMeasure=H,this.tableLayouts={},this.nestedLevel=0,this.verticalAlignmentItemStack=[]}registerTableLayouts(n){this.tableLayouts=te(this.tableLayouts,n)}layoutDocument(n,U,H,aA,QA,YA,LA,JA,fe){function Ee(M,c){if(typeof fe!="function")return!1;const P=F=>!(!F||F.positions.length===0||F.text===""&&!F.listMarker);M=M.filter(P),M.forEach(F=>{let j={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(sA=>{F[sA]!==void 0&&(j[sA]=F[sA])}),j.startPosition=F.positions[0],j.pageNumbers=Array.from(new Set(F.positions.map(sA=>sA.pageNumber))),j.pages=c.length,j.stack=Array.isArray(F.stack),F.nodeInfo=j});for(let F=0;F<M.length;F++){let j=M[F];if(j.pageBreak!=="before"&&!j.pageBreakCalculated){j.pageBreakCalculated=!0;let sA=j.nodeInfo.pageNumbers[0];if(fe(j.nodeInfo,{getFollowingNodesOnPage:()=>{let RA=[];for(let XA=F+1,ae=M.length;XA<ae;XA++)M[XA].nodeInfo.pageNumbers.indexOf(sA)>-1&&RA.push(M[XA].nodeInfo);return RA},getNodesOnNextPage:()=>{let RA=[];for(let XA=F+1,ae=M.length;XA<ae;XA++)M[XA].nodeInfo.pageNumbers.indexOf(sA+1)>-1&&RA.push(M[XA].nodeInfo);return RA},getPreviousNodesOnPage:()=>{let RA=[];for(let XA=0;XA<F;XA++)M[XA].nodeInfo.pageNumbers.indexOf(sA)>-1&&RA.push(M[XA].nodeInfo);return RA}}))return j.pageBreak="before",!0}}return!1}this.docPreprocessor=new Z,this.docMeasure=new Ge(U,H,aA,this.svgMeasure,this.tableLayouts);function pe(M){M.linearNodeList.forEach(c=>{c.resetXY()})}let Ce=this.tryLayoutDocument(n,U,H,aA,QA,YA,LA,JA);for(;Ee(Ce.linearNodeList,Ce.pages);)pe(Ce),Ce=this.tryLayoutDocument(n,U,H,aA,QA,YA,LA,JA);return Ce.pages}tryLayoutDocument(n,U,H,aA,QA,YA,LA,JA){const fe=Ee=>Ee.stack&&Ee.stack.length>0&&Ee.stack[0].section?!1:!Ee.section;return this.linearNodeList=[],n=this.docPreprocessor.preprocessDocument(n),n=this.docMeasure.measureDocument(n),this.writer=new pr(new at),this.writer.context().addListener("pageAdded",Ee=>{let pe=QA;(Ee.customProperties.background||Ee.customProperties.background===null)&&(pe=Ee.customProperties.background),this.addBackground(pe)}),fe(n)&&this.writer.addPage(this.pageSize,null,this.pageMargins),this.processNode(n),this.addHeadersAndFooters(YA,LA),this.addWatermark(JA,U,aA),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}}addBackground(n){let U=typeof n=="function"?n:()=>n,H=this.writer.context(),aA=H.getCurrentPage().pageSize,QA=U(H.page+1,aA);QA&&(this.writer.beginUnbreakableBlock(aA.width,aA.height),QA=this.docPreprocessor.preprocessBlock(QA),this.processNode(this.docMeasure.measureBlock(QA)),this.writer.commitUnbreakableBlock(0,0),H.backgroundLength[H.page]+=QA.positions.length)}addDynamicRepeatable(n,U,H){let aA=this.writer.context().pages;for(let QA=0,YA=aA.length;QA<YA;QA++){this.writer.context().page=QA;let LA=this.writer.context().getCurrentPage().customProperties,JA=n;if((LA[H]||LA[H]===null)&&(JA=LA[H]),typeof JA>"u"||JA===null)continue;let fe=JA(QA+1,YA,this.writer.context().pages[QA].pageSize);if(fe){let Ee=U(this.writer.context().getCurrentPage().pageSize,this.writer.context().getCurrentPage().pageMargins);this.writer.beginUnbreakableBlock(Ee.width,Ee.height),fe=this.docPreprocessor.preprocessBlock(fe),this.processNode(this.docMeasure.measureBlock(fe)),this.writer.commitUnbreakableBlock(Ee.x,Ee.y)}}}addHeadersAndFooters(n,U){const H=(QA,YA)=>({x:0,y:0,width:QA.width,height:YA.top}),aA=(QA,YA)=>({x:0,y:QA.height-YA.bottom,width:QA.width,height:YA.bottom});this.addDynamicRepeatable(n,H,"header"),this.addDynamicRepeatable(U,aA,"footer")}addWatermark(n,U,H){let aA=this.writer.context().pages;for(let JA=0,fe=aA.length;JA<fe;JA++){let Ee=n;(aA[JA].customProperties.watermark||aA[JA].customProperties.watermark===null)&&(Ee=aA[JA].customProperties.watermark),Ee!=null&&(d(Ee)&&(Ee={text:Ee}),Ee.text&&(aA[JA].watermark=QA({...Ee},aA[JA].pageSize,U,H)))}function QA(JA,fe,Ee,pe){JA.font=JA.font||pe.font||"Roboto",JA.fontSize=JA.fontSize||"auto",JA.color=JA.color||"black",JA.opacity=E(JA.opacity)?JA.opacity:.6,JA.bold=JA.bold||!1,JA.italics=JA.italics||!1,JA.angle=L(JA.angle)?JA.angle:null,JA.angle===null&&(JA.angle=Math.atan2(fe.height,fe.width)*-180/Math.PI),JA.fontSize==="auto"&&(JA.fontSize=LA(fe,JA,Ee));let Ce={text:JA.text,font:Ee.provideFont(JA.font,JA.bold,JA.italics),fontSize:JA.fontSize,color:JA.color,opacity:JA.opacity,angle:JA.angle};return Ce._size=YA(JA,Ee),Ce}function YA(JA,fe){let Ee=new k(fe),pe=new ZA(null,{font:JA.font,bold:JA.bold,italics:JA.italics});pe.push({fontSize:JA.fontSize});let Ce=Ee.sizeOfText(JA.text,pe),M=Ee.sizeOfRotatedText(JA.text,JA.angle,pe);return{size:Ce,rotatedSize:M}}function LA(JA,fe,Ee){let pe=new k(Ee),Ce=new ZA(null,{font:fe.font,bold:fe.bold,italics:fe.italics}),M,c=0,P=1e3,F=(c+P)/2;for(;Math.abs(c-P)>1;)Ce.push({fontSize:F}),M=pe.sizeOfRotatedText(fe.text,fe.angle,Ce),M.width>JA.width?(P=F,F=(c+P)/2):M.width<JA.width&&(M.height>JA.height?(P=F,F=(c+P)/2):(c=F,F=(c+P)/2)),Ce.pop();return F}}processNode(n,U){U===void 0&&(U=!1);const H=QA=>{let YA=n._margin;n.pageBreak==="before"?this.writer.moveToNextPage(n.pageOrientation):n.pageBreak==="beforeOdd"?(this.writer.moveToNextPage(n.pageOrientation),(this.writer.context().page+1)%2===1&&this.writer.moveToNextPage(n.pageOrientation)):n.pageBreak==="beforeEven"&&(this.writer.moveToNextPage(n.pageOrientation),(this.writer.context().page+1)%2===0&&this.writer.moveToNextPage(n.pageOrientation));const LA=n.relativePosition||n.absolutePosition;if(YA&&!LA){const JA=this.writer.context().availableHeight;JA-YA[1]<0?(this.writer.context().moveDown(JA),this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()?this.snakingAwarePageBreak(n.pageOrientation):this.writer.moveToNextPage(n.pageOrientation)):this.writer.context().moveDown(YA[1]),this.writer.context().addMargin(YA[0],YA[2])}if(QA(),YA&&!LA){const JA=this.writer.context().availableHeight;JA-YA[3]<0?(this.writer.context().moveDown(JA),this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()?this.snakingAwarePageBreak(n.pageOrientation):this.writer.moveToNextPage(n.pageOrientation)):this.writer.context().moveDown(YA[3]),this.writer.context().addMargin(-YA[0],-YA[2])}n.pageBreak==="after"?this.writer.moveToNextPage(n.pageOrientation):n.pageBreak==="afterOdd"?(this.writer.moveToNextPage(n.pageOrientation),(this.writer.context().page+1)%2===1&&this.writer.moveToNextPage(n.pageOrientation)):n.pageBreak==="afterEven"&&(this.writer.moveToNextPage(n.pageOrientation),(this.writer.context().page+1)%2===0&&this.writer.moveToNextPage(n.pageOrientation))};if(this.linearNodeList.push(n),yr(n),this.writer.context().getCurrentPage()!==null)var aA=this.writer.context().getCurrentPosition().top;H(()=>{let QA=n.verticalAlignment;if(U&&QA)var YA=this.writer.beginVerticalAlignment(QA);let LA=n.unbreakable;LA&&this.writer.beginUnbreakableBlock();let JA=n.absolutePosition;JA&&(this.writer.context().beginDetachedBlock(),this.writer.context().moveTo(JA.x||0,JA.y||0));let fe=n.relativePosition;if(fe&&(this.writer.context().beginDetachedBlock(),this.writer.context().moveToRelative(fe.x||0,fe.y||0)),n.stack)this.processVerticalContainer(n);else if(n.section)this.processSection(n);else if(n.columns)this.processColumns(n);else if(n.ul)this.processList(!1,n);else if(n.ol)this.processList(!0,n);else if(n.table)this.processTable(n);else if(n.text!==void 0)this.processLeaf(n);else if(n.toc)this.processToc(n);else if(n.image)this.processImage(n);else if(n.svg)this.processSVG(n);else if(n.canvas)this.processCanvas(n);else if(n.qr)this.processQr(n);else if(n.attachment)this.processAttachment(n);else if(!n._span)throw new Error(`Unrecognized document structure: ${b(n)}`);(JA||fe)&&this.writer.context().endDetachedBlock(),LA&&this.writer.commitUnbreakableBlock(),U&&QA&&this.verticalAlignmentItemStack.push({begin:YA,end:this.writer.endVerticalAlignment(QA)})}),aA!==void 0&&(n.__height=this.writer.context().getCurrentPosition().top-aA)}snakingAwarePageBreak(n){let U=this.writer.context();if(!U.getSnakingSnapshot())return;if(this.writer.canMoveToNextColumn()){this.writer.moveToNextColumn();return}this.writer.moveToNextPage(n);let aA=U.lastColumnWidth;U.resetSnakingColumnsForNewPage(),U.lastColumnWidth=aA}processVerticalContainer(n){n.stack.forEach(U=>{this.processNode(U),dr(n.positions,U.positions)},this)}processSection(n){let U=this.writer.context().getCurrentPage();if(!U||U&&U.items.length){n.pageSize==="inherit"&&(n.pageSize=U?{width:U.pageSize.width,height:U.pageSize.height}:void 0),n.pageOrientation==="inherit"&&(n.pageOrientation=U?U.pageSize.orientation:void 0),n.pageMargins==="inherit"&&(n.pageMargins=U?U.pageMargins:void 0),n.header==="inherit"&&(n.header=U?U.customProperties.header:void 0),n.footer==="inherit"&&(n.footer=U?U.customProperties.footer:void 0),n.background==="inherit"&&(n.background=U?U.customProperties.background:void 0),n.watermark==="inherit"&&(n.watermark=U?U.customProperties.watermark:void 0),n.header&&typeof n.header!="function"&&n.header!==null&&(n.header=vA(n.header)),n.footer&&typeof n.footer!="function"&&n.footer!==null&&(n.footer=vA(n.footer));let H={};typeof n.header<"u"&&(H.header=n.header),typeof n.footer<"u"&&(H.footer=n.footer),typeof n.background<"u"&&(H.background=n.background),typeof n.watermark<"u"&&(H.watermark=n.watermark),this.writer.addPage(n.pageSize||this.pageSize,n.pageOrientation,n.pageMargins||this.pageMargins,H)}this.processNode(n.section)}processColumns(n){this.nestedLevel++;let U=n.columns,H=this.writer.context().availableWidth,aA=YA(n._gap);aA&&(H-=(aA.length-1)*n._gap),UA.buildColumnWidths(U,H);let QA=this.processRow({marginX:n._margin?[n._margin[0],n._margin[2]]:[0,0],cells:U,widths:U,gaps:aA,snakingColumns:n.snakingColumns});dr(n.positions,QA.positions),this.nestedLevel--,this.nestedLevel===0&&this.writer.context().resetMarginXTopParent();function YA(LA){if(!LA)return null;let JA=[];JA.push(0);for(let fe=U.length-1;fe>0;fe--)JA.push(LA);return JA}}_findStartingRowSpanCell(n,U){let H=1;for(let aA=U-1;aA>=0;aA--){if(!n[aA]._span)return n[aA].rowSpan>1&&(n[aA].colSpan||1)===H?n[aA]:null;H++}return null}_getPageBreak(n,U){return n.find(H=>H.prevPage===U)}_getPageBreakListBySpan(n,U,H){if(!n||!n._breaksBySpan)return null;const aA=n._breaksBySpan.filter(LA=>LA.prevPage===U&&H<=LA.rowIndexOfSpanEnd);let QA=Number.MAX_VALUE,YA=Number.MIN_VALUE;return aA.forEach(LA=>{YA=Math.max(LA.prevY,YA),QA=Math.min(LA.y,QA)}),{prevPage:U,prevY:YA,y:QA}}_findSameRowPageBreakByRowSpanData(n,U,H){return n?n.find(aA=>aA.prevPage===U&&H===aA.rowIndexOfSpanEnd):null}_updatePageBreaksData(n,U,H){Object.keys(U._bottomByPage).forEach(aA=>{const QA=Number(aA),YA=this._getPageBreak(n,QA);if(YA&&(YA.prevY=Math.max(YA.prevY,U._bottomByPage[QA])),U._breaksBySpan&&U._breaksBySpan.length>0){const LA=U._breaksBySpan.filter(JA=>JA.prevPage===QA&&H<=JA.rowIndexOfSpanEnd);LA&&LA.length>0&&LA.forEach(JA=>{JA.prevY=Math.max(JA.prevY,U._bottomByPage[QA])})}})}_resolveBreakY(n,U,H){H.prevY=Math.max(n.prevY,U.prevY),H.y=Math.min(n.y,U.y)}_storePageBreakData(n,U,H,aA){if(U){const QA=aA&&aA._breaksBySpan||null;let YA=this._findSameRowPageBreakByRowSpanData(QA,n.prevPage,n.rowIndex);YA||(YA={...n,rowIndexOfSpanEnd:n.rowIndex+n.rowSpan-1},aA._breaksBySpan||(aA._breaksBySpan=[]),aA._breaksBySpan.push(YA)),YA.prevY=Math.max(YA.prevY,n.prevY),YA.y=Math.min(YA.y,n.y);let LA=this._getPageBreak(H,n.prevPage);LA&&this._resolveBreakY(LA,YA,LA)}else{let QA=this._getPageBreak(H,n.prevPage),YA=this._getPageBreakListBySpan(aA,n.prevPage,n.rowIndex);QA||(QA={...n},H.push(QA)),YA&&this._resolveBreakY(QA,YA,QA),this._resolveBreakY(QA,n,QA)}}_colLeftOffset(n,U){return U&&U.length>n?U[n]:0}_getRowSpanEndingCell(n,U,H,aA){if(H.rowSpan&&H.rowSpan>1){let QA=U+H.rowSpan-1;if(QA>=n.length)throw new Error(`Row span for column ${aA} (with indexes starting from 0) exceeded row count`);return n[QA][aA]}return null}processRow(n){let{marginX:U=[0,0],dontBreakRows:H=!1,rowsWithoutPageBreak:aA=0,cells:QA,widths:YA,gaps:LA,tableNode:JA,tableBody:fe,rowIndex:Ee,height:pe,snakingColumns:Ce=!1}=n;const M=H||Ee<=aA-1;let c=[],P=[],F=[],j=!1,sA={};YA=YA||QA,!M&&pe>this.writer.context().availableHeight&&(j=!0);const RA=this.nestedLevel===1?U:null,XA=JA?JA._bottomByPage:null,ae=LA&&LA.length>1?LA[1]:0,Ie=YA.map(ke=>ke._calcWidth);this.writer.context().beginColumnGroup(RA,XA,Ce,ae,Ie);for(let ke=0,Ze=QA.length;ke<Ze;ke++){let He=QA[ke],At=ke;const Xe=cr=>{const Or=He.rowSpan&&He.rowSpan>1;Or&&(cr.rowSpan=He.rowSpan),cr.rowIndex=Ee,this._storePageBreakData(cr,Or,c,JA)};this.writer.addListener("pageChanged",Xe);let gt=YA[ke]._calcWidth,Ht=this._colLeftOffset(ke,LA),Ot=this._findStartingRowSpanCell(QA,ke);if(He.colSpan&&He.colSpan>1)for(let cr=1;cr<He.colSpan;cr++)gt+=YA[++ke]._calcWidth+LA[ke];const zt=this._getRowSpanEndingCell(fe,Ee,He,ke),ot=this._getRowSpanEndingCell(fe,Ee,He,At);zt&&(He._endingCell=zt,He._endingCell._startingRowSpanY=He._startingRowSpanY),ot&&(He._leftEndingCell=ot,He._leftEndingCell._startingRowSpanY=He._startingRowSpanY);let Nt=null;Ot&&Ot._endingCell&&(Nt=Ot._endingCell,this.writer.transactionLevel>0&&(Nt._isUnbreakableContext=!0,Nt._originalXOffset=this.writer.originalX)),this.writer.context().beginColumn(gt,Ht,Nt);const Fr=Ce&&ke>0;if(!He._span&&!Fr)this.processNode(He,!0),this.writer.context().updateBottomByPage(),He.verticalAlignment&&(sA[At]=this.verticalAlignmentItemStack.length-1),dr(F,He.positions);else if(He._columnEndingContext){let cr=0;H&&(cr=this.writer.contextStack[this.writer.contextStack.length-1].y-He._startingRowSpanY);let Or=0;He._isUnbreakableContext&&!this.writer.transactionLevel&&(Or=He._originalXOffset),this.writer.context().markEnding(He,Or,cr)}this.writer.removeListener("pageChanged",Xe)}let De=null;const he=QA.length>0?QA[QA.length-1]:null;if(he){if(he._endingCell)De=he._endingCell;else if(he._span===!0){const ke=this._findStartingRowSpanCell(QA,QA.length);ke&&(De=ke._endingCell,this.writer.transactionLevel>0&&(De._isUnbreakableContext=!0,De._originalXOffset=this.writer.originalX))}}j&&!M&&c.length===0&&(this.writer.context().moveDown(this.writer.context().availableHeight),Ce?this.snakingAwarePageBreak():this.writer.moveToNextPage());const xe=this.writer.context().completeColumnGroup(pe,De);JA&&(JA._bottomByPage=xe,this._updatePageBreaksData(c,JA,Ee));let qe=this.writer.context().height;for(let ke=0,Ze=QA.length;ke<Ze;ke++){let He=QA[ke];if(!He._span&&He.verticalAlignment){let At=this.verticalAlignmentItemStack[sA[ke]].begin.item;At.viewHeight=qe,At.nodeHeight=He.__height,At.cell=He,At.bottomY=this.writer.context().y,At.isCellContentMultiPage=!At.cell.positions.every(gt=>gt.pageNumber===At.cell.positions[0].pageNumber),At.getViewHeight=function(){if(this.cell._willBreak)return this.cell._bottomY-this.cell._rowTopPageY;if(this.cell.rowSpan&&this.cell.rowSpan>1)if(H){let gt=this.cell._leftEndingCell._startingRowSpanY+this.cell._leftEndingCell._rowTopPageYPadding;return this.cell._leftEndingCell._rowTopPageY-gt+this.cell._leftEndingCell._bottomY}else return this.cell.positions[0].pageNumber!==this.cell._leftEndingCell._lastPageNumber?this.bottomY-this.cell._leftEndingCell._bottomY:this.viewHeight+this.cell._leftEndingCell._bottomY-this.bottomY;return this.viewHeight},At.getNodeHeight=function(){return this.nodeHeight};let Xe=this.verticalAlignmentItemStack[sA[ke]].end.item;Xe.isCellContentMultiPage=At.isCellContentMultiPage}}return{pageBreaksBySpan:P,pageBreaks:c,positions:F}}processList(n,U){const H=LA=>{if(YA){let JA=YA;if(YA=null,JA.canvas){let fe=JA.canvas[0];Qe(fe,-JA._minWidth,0),this.writer.addVector(fe)}else if(JA._inlines){let fe=new Rr(this.pageSize.width);fe.addInline(JA._inlines[0]),fe.x=-JA._minWidth,fe.y=LA.getAscenderHeight()-fe.getAscenderHeight(),this.writer.addLine(fe,!0)}}};let aA=n?U.ol:U.ul,QA=U._gapSize;this.writer.context().addMargin(QA.width);let YA;this.writer.addListener("lineAdded",H),aA.forEach(LA=>{YA=LA.listMarker,this.processNode(LA),dr(U.positions,LA.positions)}),this.writer.removeListener("lineAdded",H),this.writer.context().addMargin(-QA.width)}processTable(n){this.nestedLevel++;let U=new Pr(n);U.beginTable(this.writer);let H=n.table.heights,aA=0;for(let QA=0,YA=n.table.body.length;QA<YA;QA++){if(QA>0&&this.writer.context().inSnakingColumns()){let Ce=aA>0?aA:U.rowPaddingTop+14+U.rowPaddingBottom+U.bottomLineWidth+U.topLineWidth;this.writer.context().availableHeight<Ce&&(this.snakingAwarePageBreak(),U.layout.hLineWhenBroken!==!1&&!U.headerRows&&U.drawHorizontalLine(QA,this.writer))}let LA=this.writer.context().y;U.dontBreakRows&&n.table.body[QA].forEach(Ce=>{Ce.rowSpan&&Ce.rowSpan>1&&(Ce._startingRowSpanY=this.writer.context().y)}),U.beginRow(QA,this.writer);let JA;typeof H=="function"?JA=H(QA):Array.isArray(H)?JA=H[QA]:JA=H,JA==="auto"&&(JA=void 0);const fe=this.writer.context().page;let Ee=this.processRow({marginX:n._margin?[n._margin[0],n._margin[2]]:[0,0],dontBreakRows:U.dontBreakRows,rowsWithoutPageBreak:U.rowsWithoutPageBreak,cells:n.table.body[QA],widths:n.table.widths,gaps:n._offsets.offsets,tableBody:n.table.body,tableNode:n,rowIndex:QA,height:JA});if(dr(n.positions,Ee.positions),!Ee.pageBreaks||Ee.pageBreaks.length===0){const Ce=n&&n._breaksBySpan||null,M=this._findSameRowPageBreakByRowSpanData(Ce,fe,QA);if(M){const c=this._getPageBreakListBySpan(n,M.prevPage,QA);Ee.pageBreaks.push(c)}}U.endRow(QA,this.writer,Ee.pageBreaks);let pe=this.writer.context().y;this.writer.context().page===fe&&(aA=pe-LA)}U.endTable(this.writer),this.nestedLevel--,this.nestedLevel===0&&this.writer.context().resetMarginXTopParent()}processLeaf(n){let U=this.buildNextLine(n);U&&(n.tocItem||n.id)&&(U._node=n);let H=U?U.getHeight():0,aA=n.maxHeight||-1;if(U){let QA=N(n);QA&&(U.id=QA)}if(n.outline)U._outline={id:n.id,parentId:n.outlineParentId,text:n.outlineText||n.text,expanded:n.outlineExpanded||!1};else if(Array.isArray(n.text))for(let QA=0,YA=n.text.length;QA<YA;QA++){let LA=n.text[QA];LA.outline&&(U._outline={id:LA.id,parentId:LA.outlineParentId,text:LA.outlineText||LA.text,expanded:LA.outlineExpanded||!1})}if(n._tocItemRef&&(U._pageNodeRef=n._tocItemRef),n._pageRef&&(U._pageNodeRef=n._pageRef._nodeRef),U&&U.inlines&&Array.isArray(U.inlines))for(let QA=0,YA=U.inlines.length;QA<YA;QA++)U.inlines[QA]._tocItemRef&&(U.inlines[QA]._pageNodeRef=U.inlines[QA]._tocItemRef),U.inlines[QA]._pageRef&&(U.inlines[QA]._pageNodeRef=U.inlines[QA]._pageRef._nodeRef);for(;U&&(aA===-1||H<aA);){if(U.getHeight()>this.writer.context().availableHeight&&this.writer.context().y>this.writer.context().pageMargins.top)if(this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()){this.snakingAwarePageBreak(n.pageOrientation),U.inlines&&U.inlines.length>0&&n._inlines.unshift(...U.inlines),U=this.buildNextLine(n);continue}else this.writer.moveToNextPage(n.pageOrientation);let QA=this.writer.addLine(U);n.positions.push(QA),U=this.buildNextLine(n),U&&(H+=U.getHeight())}}processToc(n){!n.toc._table&&n.toc.hideEmpty===!0||(n.toc.title&&this.processNode(n.toc.title),n.toc._table&&this.processNode(n.toc._table))}buildNextLine(n){function U(LA){let JA=LA.constructor();for(let fe in LA)JA[fe]=LA[fe];return JA}function H(LA,JA,fe){let Ee=1,pe=LA.length,Ce=1;for(;Ee<=pe;){const M=Math.floor((Ee+pe)/2),c=LA.substring(0,M);fe(c)<=JA?(Ce=M,Ee=M+1):pe=M-1}return Ce}if(!n._inlines||n._inlines.length===0)return null;let aA=new Rr(this.writer.context().availableWidth);const QA=new k(null);let YA=!1;for(;n._inlines&&n._inlines.length>0&&(aA.hasEnoughSpaceForInline(n._inlines[0],n._inlines.slice(1))||YA);){let LA=!1,JA=n._inlines.shift();if(!JA.noWrap&&JA.text.length>1&&JA.width>aA.getAvailableWidth()){let fe=H(JA.text,aA.getAvailableWidth(),Ee=>QA.widthOfText(Ee,JA));if(fe<JA.text.length){let Ee=U(JA);Ee.text=JA.text.substr(fe),JA.text=JA.text.substr(0,fe),Ee.width=QA.widthOfText(Ee.text,Ee),JA.width=QA.widthOfText(JA.text,JA),n._inlines.unshift(Ee),LA=!0}}aA.addInline(JA),YA=JA.noNewLine&&!LA}return aA.lastLineInParagraph=n._inlines.length===0,aA}processImage(n){let U=this.writer.addImage(n);n.positions.push(U)}processCanvas(n){let U=this.writer.addCanvas(n);dr(n.positions,U)}processSVG(n){let U=this.writer.addSVG(n);n.positions.push(U)}processQr(n){let U=this.writer.addQr(n);n.positions.push(U)}processAttachment(n){let U=this.writer.addAttachment(n);n.positions.push(U)}}function yr(xA){let n=xA.x,U=xA.y;xA.positions=[],Array.isArray(xA.canvas)&&xA.canvas.forEach(H=>{let aA=H.x,QA=H.y,YA=H.x1,LA=H.y1,JA=H.x2,fe=H.y2;H.resetXY=()=>{H.x=aA,H.y=QA,H.x1=YA,H.y1=LA,H.x2=JA,H.y2=fe}}),xA.resetXY=()=>{xA.x=n,xA.y=U,Array.isArray(xA.canvas)&&xA.canvas.forEach(H=>{H.resetXY()})}}const xr=vr;var bi=t(7507);const mr=xA=>{let n=parseFloat(xA);if(!(typeof n!="number"||isNaN(n)))return n},ii=xA=>{let n;try{n=new bi.XmlDocument(xA)}catch(U){throw new Error("Invalid svg document ("+U+")",{cause:U})}if(n.name!=="svg")throw new Error("Invalid svg document (expected <svg>)");return n};class Ui{constructor(){}measureSVG(n){let U,H,aA;if(d(n)){let LA=ii(n);U=LA.attr.width,H=LA.attr.height,aA=LA.attr.viewBox}else if(typeof SVGElement<"u"&&n instanceof SVGElement&&typeof getComputedStyle=="function")U=n.getAttribute("width"),H=n.getAttribute("height"),aA=n.getAttribute("viewBox");else throw new Error("Invalid SVG document");let QA=mr(U),YA=mr(H);if((QA===void 0||YA===void 0)&&typeof aA=="string"){let LA=aA.split(/[,\s]+/);if(LA.length!==4)throw new Error("Unexpected svg viewBox format, should have 4 entries but found: '"+aA+"'");QA===void 0&&(QA=mr(LA[2])),YA===void 0&&(YA=mr(LA[3]))}return{width:QA,height:YA}}writeDimensions(n,U){if(d(n)){let H=ii(n);return typeof H.attr.viewBox!="string"&&(H.attr.viewBox=`0 0 ${mr(H.attr.width)} ${mr(H.attr.height)}`),H.attr.width=""+U.width,H.attr.height=""+U.height,H.toString()}return n.hasAttribute("viewBox")||n.setAttribute("viewBox",`0 0 ${mr(n.getAttribute("width"))} ${mr(n.getAttribute("height"))}`),n.setAttribute("width",""+U.width),n.setAttribute("height",""+U.height),n}}const ni=Ui,gr=xA=>{let n=[],U=null;for(let H=0,aA=xA.inlines.length;H<aA;H++){let QA=xA.inlines[H],YA=QA.decoration;if(!YA){U=null;continue}Array.isArray(YA)||(YA=[YA]);let LA=QA.decorationColor||QA.color||"black",JA=QA.decorationStyle||"solid",fe=E(QA.decorationThickness)?QA.decorationThickness:null;for(let Ee=0,pe=YA.length;Ee<pe;Ee++){let Ce=YA[Ee];!U||Ce!==U.decoration||JA!==U.decorationStyle||LA!==U.decorationColor?(U={line:xA,decoration:Ce,decorationColor:LA,decorationStyle:JA,decorationThickness:fe,inlines:[QA]},n.push(U)):U.inlines.push(QA)}}return n};class Mi{constructor(n){this.pdfDocument=n}drawBackground(n,U,H){let aA=n.getHeight();for(let QA=0,YA=n.inlines.length;QA<YA;QA++){let LA=n.inlines[QA];if(!LA.background)continue;let JA=LA.background,fe=this.pdfDocument.providePattern(LA.background);fe!==null&&(JA=fe);let Ee=LA.justifyShift||0;this.pdfDocument.fillColor(JA).rect(U+LA.x-Ee,H,LA.width+Ee,aA).fill()}}drawDecorations(n,U,H){let aA=gr(n);for(let QA=0,YA=aA.length;QA<YA;QA++)this._drawDecoration(aA[QA],U,H)}_drawDecoration(n,U,H){const aA=()=>{let c=0;for(let P=0,F=n.inlines.length;P<F;P++)c=n.inlines[P].fontSize>c?P:c;return n.inlines[c]},QA=()=>{let c=0;for(let P=0,F=n.inlines.length;P<F;P++){let j=n.inlines[P].justifyShift||0;c+=n.inlines[P].width+j}return c};let YA=n.inlines[0],LA=aA(),JA=QA(),fe=n.line.getAscenderHeight(),Ee=LA.font.ascender/1e3*LA.fontSize,Ce=LA.height-Ee,M=E(n.decorationThickness)?n.decorationThickness:.5+Math.floor(Math.max(LA.fontSize-8,0)/2)*.12;switch(n.decoration){case"underline":H+=fe+Ce*.45;break;case"overline":H+=fe-Ee*.85;break;case"lineThrough":H+=fe-Ee*.25;break;default:throw new Error(`Unknown decoration : ${n.decoration}`)}if(n.inlines[0].sup&&(H-=n.inlines[0].fontSize*.75),n.inlines[0].sub&&(H+=n.inlines[0].fontSize*.35),this.pdfDocument.save(),n.decorationStyle==="double"){let c=Math.max(.5,M,LA.fontSize*.15);this.pdfDocument.fillColor(n.decorationColor).rect(U+YA.x,H-M/2,JA,M/2).fill().rect(U+YA.x,H+c-M/2,JA,M/2).fill()}else if(n.decorationStyle==="dashed"){let c=Math.ceil(JA/6.8),P=U+YA.x;this.pdfDocument.rect(P,H,JA,M).clip(),this.pdfDocument.fillColor(n.decorationColor);for(let F=0;F<c;F++)this.pdfDocument.rect(P,H-M/2,3.96,M).fill(),P+=6.8}else if(n.decorationStyle==="dotted"){let c=Math.ceil(JA/(M*3)),P=U+YA.x;this.pdfDocument.rect(P,H,JA,M).clip(),this.pdfDocument.fillColor(n.decorationColor);for(let F=0;F<c;F++)this.pdfDocument.rect(P,H-M/2,M,M).fill(),P+=M*3}else if(n.decorationStyle==="wavy"){let c=.7,P=1,F=Math.ceil(JA/(c*2))+1,j=U+YA.x-1;this.pdfDocument.rect(U+YA.x,H-P,JA,H+P).clip(),this.pdfDocument.lineWidth(M/3),this.pdfDocument.moveTo(j,H);for(let sA=0;sA<F;sA++)this.pdfDocument.bezierCurveTo(j+c,H-P,j+c*2,H-P,j+c*3,H).bezierCurveTo(j+c*4,H+P,j+c*5,H+P,j+c*6,H),j+=c*6;this.pdfDocument.stroke(n.decorationColor)}else this.pdfDocument.fillColor(n.decorationColor).rect(U+YA.x,H-M/2,JA,M).fill();this.pdfDocument.restore()}}const On=Mi;var on=t(6582);const Bn=(xA,n,U)=>{for(let H=0;H<n.length;H++){let aA=n[H].toLowerCase();for(let QA in xA)if(QA.toLowerCase()===aA)return QA}return U},li=(xA,n)=>{let U=xA;return n.sup&&(U-=n.fontSize*.75),n.sub&&(U+=n.fontSize*.35),U};class ln{constructor(n,U){this.pdfDocument=n,this.progressCallback=U,this.outlineMap=[]}renderPages(n){this.pdfDocument._pdfMakePages=n;let U=0;this.progressCallback&&n.forEach(aA=>{U+=aA.items.length});let H=0;for(let aA=0;aA<n.length;aA++){this.pdfDocument.addPage({size:[n[aA].pageSize.width,n[aA].pageSize.height]});let QA=n[aA];for(let YA=0,LA=QA.items.length;YA<LA;YA++){let JA=QA.items[YA];switch(JA.type){case"vector":this.renderVector(JA.item);break;case"line":this.renderLine(JA.item,JA.item.x,JA.item.y);break;case"image":this.renderImage(JA.item);break;case"svg":this.renderSVG(JA.item);break;case"attachment":this.renderAttachment(JA.item);break;case"beginClip":this.beginClip(JA.item);break;case"endClip":this.endClip();break;case"beginVerticalAlignment":this.beginVerticalAlignment(JA.item);break;case"endVerticalAlignment":this.endVerticalAlignment(JA.item);break}H++,this.progressCallback&&this.progressCallback(H/U)}QA.watermark&&this.renderWatermark(QA)}}renderLine(n,U,H){function aA(fe,Ee){let pe,Ce,M=new k(null);if(fe.positions===void 0)throw new Error("Page reference id not found");let c=fe.positions[0].pageNumber.toString();switch(Ee.text=c,pe=M.widthOfText(Ee.text,Ee),Ce=Ee.width-pe,Ee.width=pe,Ee.alignment){case"right":Ee.x+=Ce;break;case"center":Ee.x+=Ce/2;break}}if(n._outline){let fe=this.pdfDocument.outline;n._outline.parentId&&this.outlineMap[n._outline.parentId]&&(fe=this.outlineMap[n._outline.parentId]);let Ee=fe.addItem(n._outline.text,{expanded:n._outline.expanded});n._outline.id&&(this.outlineMap[n._outline.id]=Ee)}n._pageNodeRef&&aA(n._pageNodeRef,n.inlines[0]),U=U||0,H=H||0;let QA=n.getHeight(),YA=n.getAscenderHeight(),LA=QA-YA;const JA=new On(this.pdfDocument);JA.drawBackground(n,U,H);for(let fe=0,Ee=n.inlines.length;fe<Ee;fe++){let pe=n.inlines[fe],Ce=QA-pe.font.ascender/1e3*pe.fontSize-LA;pe._pageNodeRef&&aA(pe._pageNodeRef,pe);let M={lineBreak:!1,textWidth:pe.width,characterSpacing:pe.characterSpacing,wordCount:1,link:pe.link};pe.linkToDestination&&(M.goTo=pe.linkToDestination),n.id&&fe===0&&(M.destination=n.id),pe.fontFeatures&&(M.features=pe.fontFeatures);let c=E(pe.opacity)?pe.opacity:1;this.pdfDocument.opacity(c),this.pdfDocument.fill(pe.color||"black"),this.pdfDocument._font=pe.font,this.pdfDocument.fontSize(pe.fontSize);let P=li(H+Ce,pe);this.pdfDocument.text(pe.text,U+pe.x,P,M),pe.linkToPage&&(this.pdfDocument.ref({Type:"Action",S:"GoTo",D:[pe.linkToPage,0,0]}).end(),this.pdfDocument.annotate(U+pe.x,P,pe.width,pe.height,{Subtype:"Link",Dest:[pe.linkToPage-1,"XYZ",null,null,null]}))}JA.drawDecorations(n,U,H)}renderVector(n){this.pdfDocument.lineWidth(n.lineWidth||1),n.dash?this.pdfDocument.dash(n.dash.length,{space:n.dash.space||n.dash.length,phase:n.dash.phase||0}):this.pdfDocument.undash(),this.pdfDocument.lineJoin(n.lineJoin||"miter"),this.pdfDocument.lineCap(n.lineCap||"butt");let U=null;switch(n.type){case"ellipse":this.pdfDocument.ellipse(n.x,n.y,n.r1,n.r2),n.linearGradient&&(U=this.pdfDocument.linearGradient(n.x-n.r1,n.y,n.x+n.r1,n.y));break;case"rect":n.r?this.pdfDocument.roundedRect(n.x,n.y,n.w,n.h,n.r):this.pdfDocument.rect(n.x,n.y,n.w,n.h),n.linearGradient&&(U=this.pdfDocument.linearGradient(n.x,n.y,n.x+n.w,n.y));break;case"line":this.pdfDocument.moveTo(n.x1,n.y1),this.pdfDocument.lineTo(n.x2,n.y2);break;case"polyline":if(n.points.length===0)break;this.pdfDocument.moveTo(n.points[0].x,n.points[0].y);for(let YA=1,LA=n.points.length;YA<LA;YA++)this.pdfDocument.lineTo(n.points[YA].x,n.points[YA].y);if(n.points.length>1){let YA=n.points[0],LA=n.points[n.points.length-1];(n.closePath||YA.x===LA.x&&YA.y===LA.y)&&this.pdfDocument.closePath()}break;case"path":this.pdfDocument.path(n.d);break}if(n.linearGradient&&U){let YA=1/(n.linearGradient.length-1);for(let LA=0;LA<n.linearGradient.length;LA++)U.stop(LA*YA,n.linearGradient[LA]);n.color=U}let H=this.pdfDocument.providePattern(n.color);H!==null&&(n.color=H);let aA=E(n.fillOpacity)?n.fillOpacity:1,QA=E(n.strokeOpacity)?n.strokeOpacity:1;n.color&&n.lineColor?(this.pdfDocument.fillColor(n.color,aA),this.pdfDocument.strokeColor(n.lineColor,QA),this.pdfDocument.fillAndStroke()):n.color?(this.pdfDocument.fillColor(n.color,aA),this.pdfDocument.fill()):(this.pdfDocument.strokeColor(n.lineColor||"black",QA),this.pdfDocument.stroke())}renderImage(n){let U=E(n.opacity)?n.opacity:1;if(this.pdfDocument.opacity(U),n.cover){const H=n.cover.align||"center",aA=n.cover.valign||"center",QA=n.cover.width?n.cover.width:n.width,YA=n.cover.height?n.cover.height:n.height;this.pdfDocument.save(),this.pdfDocument.rect(n.x,n.y,QA,YA).clip(),this.pdfDocument.image(n.image,n.x,n.y,{cover:[QA,YA],align:H,valign:aA}),this.pdfDocument.restore()}else this.pdfDocument.image(n.image,n.x,n.y,{width:n._width,height:n._height});if(n.link&&this.pdfDocument.link(n.x,n.y,n._width,n._height,n.link),n.linkToPage&&(this.pdfDocument.ref({Type:"Action",S:"GoTo",D:[n.linkToPage,0,0]}).end(),this.pdfDocument.annotate(n.x,n.y,n._width,n._height,{Subtype:"Link",Dest:[n.linkToPage-1,"XYZ",null,null,null]})),n.linkToDestination&&this.pdfDocument.goTo(n.x,n.y,n._width,n._height,n.linkToDestination),n.linkToFile){const H=this.pdfDocument.provideAttachment(n.linkToFile);this.pdfDocument.fileAnnotation(n.x,n.y,n._width,n._height,H,{AP:{N:{Type:"XObject",Subtype:"Form",FormType:1,BBox:[n.x,n.y,n._width,n._height]}}})}}renderSVG(n){let U={width:n._width,height:n._height,assumePt:!0,useCSS:!d(n.svg),...n.options};U.fontCallback=(H,aA,QA)=>{let YA=H.split(",").map(fe=>fe.trim().replace(/('|")/g,"")),LA=Bn(this.pdfDocument.fonts,YA,n.font||"Roboto"),JA=this.pdfDocument.getFontFile(LA,aA,QA);if(JA===null){let fe=this.pdfDocument.getFontType(aA,QA);throw new Error(`Font '${LA}' in style '${fe}' is not defined in the font section of the document definition.`)}return JA},(0,on.A)(this.pdfDocument,n.svg,n.x,n.y,U),n.link&&this.pdfDocument.link(n.x,n.y,n._width,n._height,n.link),n.linkToPage&&(this.pdfDocument.ref({Type:"Action",S:"GoTo",D:[n.linkToPage,0,0]}).end(),this.pdfDocument.annotate(n.x,n.y,n._width,n._height,{Subtype:"Link",Dest:[n.linkToPage-1,"XYZ",null,null,null]})),n.linkToDestination&&this.pdfDocument.goTo(n.x,n.y,n._width,n._height,n.linkToDestination)}renderAttachment(n){const U=this.pdfDocument.provideAttachment(n.attachment),H={};n.icon&&(H.Name=n.icon),this.pdfDocument.fileAnnotation(n.x,n.y,n._width,n._height,U,H)}beginClip(n){this.pdfDocument.save(),this.pdfDocument.addContent(`${n.x} ${n.y} ${n.width} ${n.height} re`),this.pdfDocument.clip()}endClip(){this.pdfDocument.restore()}beginVerticalAlignment(n){if(!n.isCellContentMultiPage)switch(n.verticalAlignment){case"middle":this.pdfDocument.save(),this.pdfDocument.translate(0,-(n.getNodeHeight()-n.getViewHeight())/2);break;case"bottom":this.pdfDocument.save(),this.pdfDocument.translate(0,-(n.getNodeHeight()-n.getViewHeight()));break}}endVerticalAlignment(n){if(!n.isCellContentMultiPage)switch(n.verticalAlignment){case"middle":case"bottom":this.pdfDocument.restore();break}}renderWatermark(n){let U=n.watermark;this.pdfDocument.fill(U.color),this.pdfDocument.opacity(U.opacity),this.pdfDocument.save(),this.pdfDocument.rotate(U.angle,{origin:[this.pdfDocument.page.width/2,this.pdfDocument.page.height/2]});let H=this.pdfDocument.page.width/2-U._size.size.width/2,aA=this.pdfDocument.page.height/2-U._size.size.height/2;this.pdfDocument._font=U.font,this.pdfDocument.fontSize(U.fontSize),this.pdfDocument.text(U.text,H,aA,{lineBreak:!1}),this.pdfDocument.restore()}}const gn=ln;class cn{constructor(n,U,H){this.fontDescriptors=n,this.virtualfs=U,this.urlResolver=H}async createPdfKitDocument(n,U){U===void 0&&(U={}),await this.resolveUrls(n),n.version=n.version||"1.3",n.subset=n.subset||void 0,n.tagged=typeof n.tagged=="boolean"?n.tagged:!1,n.displayTitle=typeof n.displayTitle=="boolean"?n.displayTitle:!1,n.compress=typeof n.compress=="boolean"?n.compress:!0,n.images=n.images||{},n.attachments=n.attachments||{},n.pageMargins=L(n.pageMargins)?n.pageMargins:40,n.patterns=n.patterns||{},n.header&&typeof n.header!="function"&&(n.header=vA(n.header)),n.footer&&typeof n.footer!="function"&&(n.footer=vA(n.footer));let H=Ut(n.pageSize,n.pageOrientation),aA={size:[H.width,H.height],pdfVersion:n.version,subset:n.subset,tagged:n.tagged,displayTitle:n.displayTitle,compress:n.compress,userPassword:n.userPassword,ownerPassword:n.ownerPassword,permissions:n.permissions,lang:n.language,fontLayoutCache:typeof U.fontLayoutCache=="boolean"?U.fontLayoutCache:!0,bufferPages:U.bufferPages||!1,autoFirstPage:!1,info:Wn(n),font:null};this.pdfKitDoc=new Q(this.fontDescriptors,n.images,n.patterns,n.attachments,aA,this.virtualfs),Kn(n,this.pdfKitDoc);const QA=new xr(H,$t(n.pageMargins),new ni);QA.registerTableLayouts(se),U.tableLayouts&&QA.registerTableLayouts(U.tableLayouts);let YA=QA.layoutDocument(n.content,this.pdfKitDoc,n.styles||{},n.defaultStyle||{fontSize:12,font:"Roboto"},n.background,n.header,n.footer,n.watermark,n.pageBreakBefore),LA=n.maxPagesNumber||-1;return E(LA)&&LA>-1&&(YA=YA.slice(0,LA)),YA.forEach(fe=>{fe.pageSize.height===1/0&&(fe.pageSize.height=Vn(fe,fe.pageMargins))}),new gn(this.pdfKitDoc,U.progressCallback).renderPages(YA),this.pdfKitDoc}async resolveUrls(n){const U=H=>typeof H=="object"?{url:H.url,headers:H.headers}:{url:H,headers:{}};for(let H in this.fontDescriptors)if(this.fontDescriptors.hasOwnProperty(H)){if(this.fontDescriptors[H].normal)if(Array.isArray(this.fontDescriptors[H].normal)){let aA=U(this.fontDescriptors[H].normal[0]);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].normal[0]=aA.url}else{let aA=U(this.fontDescriptors[H].normal);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].normal=aA.url}if(this.fontDescriptors[H].bold)if(Array.isArray(this.fontDescriptors[H].bold)){let aA=U(this.fontDescriptors[H].bold[0]);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].bold[0]=aA.url}else{let aA=U(this.fontDescriptors[H].bold);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].bold=aA.url}if(this.fontDescriptors[H].italics)if(Array.isArray(this.fontDescriptors[H].italics)){let aA=U(this.fontDescriptors[H].italics[0]);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].italics[0]=aA.url}else{let aA=U(this.fontDescriptors[H].italics);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].italics=aA.url}if(this.fontDescriptors[H].bolditalics)if(Array.isArray(this.fontDescriptors[H].bolditalics)){let aA=U(this.fontDescriptors[H].bolditalics[0]);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].bolditalics[0]=aA.url}else{let aA=U(this.fontDescriptors[H].bolditalics);this.urlResolver.resolve(aA.url,aA.headers),this.fontDescriptors[H].bolditalics=aA.url}}if(n.images){for(let H in n.images)if(n.images.hasOwnProperty(H)){let aA=U(n.images[H]);this.urlResolver.resolve(aA.url,aA.headers),n.images[H]=aA.url}}if(n.attachments){for(let H in n.attachments)if(n.attachments.hasOwnProperty(H)&&n.attachments[H].src){let aA=U(n.attachments[H].src);this.urlResolver.resolve(aA.url,aA.headers),n.attachments[H].src=aA.url}}if(n.files){for(let H in n.files)if(n.files.hasOwnProperty(H)&&n.files[H].src){let aA=U(n.files[H].src);this.urlResolver.resolve(aA.url,aA.headers),n.files[H].src=aA.url}}await this.urlResolver.resolved()}}function Wn(xA){function n(H){let aA=["Title","Author","Subject","Keywords","Creator","Producer","CreationDate","ModDate","Trapped"],QA=H.charAt(0).toUpperCase()+H.slice(1);return aA.includes(QA)?QA:H.replace(/\s+/g,"")}let U={Producer:"pdfmake",Creator:"pdfmake"};if(xA.info)for(let H in xA.info){let aA=xA.info[H];aA&&(H=n(H),U[H]=aA)}return U}function Kn(xA,n){if(xA.files)for(const U in xA.files){const H=xA.files[U];if(!H.src)return;n.virtualfs&&n.virtualfs.existsSync(H.src)&&(H.src=n.virtualfs.readFileSync(H.src)),H.name=H.name||U,n.file(H.src,H)}}function Vn(xA,n){function U(YA){return typeof YA.item.getHeight=="function"?YA.item.getHeight():YA.item._height?YA.item._height:YA.type==="vector"?typeof YA.item.y1<"u"?YA.item.y1>YA.item.y2?YA.item.y1:YA.item.y2:YA.item.h:0}function H(YA){let LA=YA.item.y||0,JA=U(YA);return LA+JA}let aA=$t(n||40),QA=aA.top;return xA.items.forEach(YA=>{let LA=H(YA);LA>QA&&(QA=LA)}),QA+=aA.bottom,QA}const Xn=cn;var Zn=t(6811);async function En(xA,n){n===void 0&&(n={});try{const U=await fetch(xA,{headers:n});if(!U.ok)throw new Error(`Failed to fetch (status code: ${U.status}, url: "${xA}")`);return await U.arrayBuffer()}catch(U){throw new Error(`Network request failed (url: "${xA}", error: ${U.message})`,{cause:U})}}class _n{constructor(n){this.fs=n,this.resolving={},this.urlAccessPolicy=void 0}setUrlAccessPolicy(n){this.urlAccessPolicy=n}resolve(n,U){U===void 0&&(U={});const H=async()=>{if(n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")){if(this.fs.existsSync(n))return;if(typeof this.urlAccessPolicy<"u"&&this.urlAccessPolicy(n)!==!0)throw new Error(`Access to URL denied by resource access policy: ${n}`);const aA=await En(n,U);this.fs.writeFileSync(n,aA)}};return this.resolving[n]||(this.resolving[n]=H()),this.resolving[n]}resolved(){return Promise.all(Object.values(this.resolving))}}const wn=_n;var gi=t(9964);class Di{constructor(){this.virtualfs=Zn.default,this.urlAccessPolicy=void 0}createPdf(n,U){var LA;if(U===void 0&&(U={}),!Y(n))throw new Error("Parameter 'docDefinition' has an invalid type. Object expected.");if(!Y(U))throw new Error("Parameter 'options' has an invalid type. Object expected.");U.progressCallback=this.progressCallback,U.tableLayouts=this.tableLayouts;const H=typeof gi<"u"&&((LA=gi==null?void 0:gi.versions)==null?void 0:LA.node);typeof this.urlAccessPolicy>"u"&&H&&console.warn("No URL access policy defined. Consider using setUrlAccessPolicy() to restrict external resource downloads.");let aA=new wn(this.virtualfs);aA.setUrlAccessPolicy(this.urlAccessPolicy);const YA=new Xn(this.fonts,this.virtualfs,aA).createPdfKitDocument(n,U);return this._transformToDocument(YA)}setUrlAccessPolicy(n){if(n!==void 0&&typeof n!="function")throw new Error("Parameter 'callback' has an invalid type. Function or undefined expected.");this.urlAccessPolicy=n}setProgressCallback(n){this.progressCallback=n}addTableLayouts(n){this.tableLayouts=te(this.tableLayouts,n)}setTableLayouts(n){this.tableLayouts=n}clearTableLayouts(){this.tableLayouts={}}addFonts(n){this.fonts=te(this.fonts,n)}setFonts(n){this.fonts=n}clearFonts(){this.fonts={}}_transformToDocument(n){return n}}const Ki=Di;var qn=t(783).Buffer;class fn{constructor(n){this.bufferSize=1073741824,this.pdfDocumentPromise=n,this.bufferPromise=null}getStream(){return this.pdfDocumentPromise}getBuffer(){const n=async()=>{const U=await this.getStream();return new Promise(H=>{let aA=[];U.on("readable",()=>{let QA;for(;(QA=U.read(this.bufferSize))!==null;)aA.push(QA)}),U.on("end",()=>{H(qn.concat(aA))}),U.end()})};return this.bufferPromise===null&&(this.bufferPromise=n()),this.bufferPromise}async getBase64(){return(await this.getBuffer()).toString("base64")}async getDataUrl(){return"data:application/pdf;base64,"+await this.getBase64()}}const $n=fn;var Jr=t(6457);const As=()=>{let xA=window.open("","_blank");if(xA===null)throw new Error("Open PDF in new window blocked by browser");return xA};class ci extends $n{async getBlob(){const n=await this.getBuffer();return new Blob([n],{type:"application/pdf"})}async download(n){n===void 0&&(n="file.pdf");const U=await this.getBlob();(0,Jr.saveAs)(U,n)}async open(n){n===void 0&&(n=null),n||(n=As());const U=await this.getBlob();try{let aA=(window.URL||window.webkitURL).createObjectURL(U);n.location.href=aA}catch(H){throw n.close(),H}}async print(n){n===void 0&&(n=null),(await this.getStream()).setOpenActionAsPrint(),await this.open(n)}}const es=ci;var ts=t(2416),rs=t.n(ts),Ii=t(890),is=t.n(Ii);is()({useNative:["Promise"]});let hn={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};class Vi extends Ki{constructor(){super(),this.fonts=hn}addFontContainer(n){this.addVirtualFileSystem(n.vfs),this.addFonts(n.fonts)}addVirtualFileSystem(n){for(let U in n)if(n.hasOwnProperty(U)){let H,aA;typeof n[U]=="object"?(H=n[U].data,aA=n[U].encoding||"base64"):(H=n[U],aA="base64"),rs().writeFileSync(U,H,aA)}}_transformToDocument(n){return new es(n)}}const ns=new Vi},2736(o,r,t){o.exports=t(7133).default},2416(o,r,t){o.exports=t(6811).default},6811(o,r,t){var A="/";t.d(r,{default:()=>Q});var a=t(783).Buffer;const f=d=>(d.indexOf(A)===0&&(d=d.substring(A.length)),d.indexOf("/")===0&&(d=d.substring(1)),d);class h{constructor(){this.storage={}}existsSync(E){const D=f(E);return typeof this.storage[D]<"u"}readFileSync(E,D){const Y=f(E),z=typeof D=="object"?D.encoding:D;if(!this.existsSync(Y))throw new Error(`File '${Y}' not found in virtual file system`);const L=this.storage[Y];return z?L.toString(z):L}writeFileSync(E,D,Y){const z=f(E),L=typeof Y=="object"?Y.encoding:Y;if(!D&&!Y)throw new Error("No content");this.storage[z]=L||typeof D=="string"?new a(D,L):D}}const Q=new h},6582(o,r,t){r.A=void 0;var A=a(t(7696));function a(f){return f&&f.__esModule?f:{default:f}}r.A=A.default},7696(o,r,t){o=t.nmd(o);var A=function(a,f,h,Q,d){const E={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgrey:[211,211,211],lightgreen:[144,238,144],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0]},D={black:[E.black,1],white:[E.white,1],transparent:[E.black,0]},Y={quot:34,amp:38,lt:60,gt:62,apos:39,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,lsaquo:8249,rsaquo:8250,euro:8364,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},z={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},L={A3:!0,A4:!0,a3:!0,a4:!0},T={color:{inherit:!0,initial:void 0},visibility:{inherit:!0,initial:"visible",values:{hidden:"hidden",collapse:"hidden",visible:"visible"}},fill:{inherit:!0,initial:D.black},stroke:{inherit:!0,initial:"none"},"stop-color":{inherit:!1,initial:D.black},"fill-opacity":{inherit:!0,initial:1},"stroke-opacity":{inherit:!0,initial:1},"stop-opacity":{inherit:!1,initial:1},"fill-rule":{inherit:!0,initial:"nonzero",values:{nonzero:"nonzero",evenodd:"evenodd"}},"clip-rule":{inherit:!0,initial:"nonzero",values:{nonzero:"nonzero",evenodd:"evenodd"}},"stroke-width":{inherit:!0,initial:1},"stroke-dasharray":{inherit:!0,initial:[]},"stroke-dashoffset":{inherit:!0,initial:0},"stroke-miterlimit":{inherit:!0,initial:4},"stroke-linejoin":{inherit:!0,initial:"miter",values:{miter:"miter",round:"round",bevel:"bevel"}},"stroke-linecap":{inherit:!0,initial:"butt",values:{butt:"butt",round:"round",square:"square"}},"font-size":{inherit:!0,initial:16,values:{"xx-small":9,"x-small":10,small:13,medium:16,large:18,"x-large":24,"xx-large":32}},"font-family":{inherit:!0,initial:"sans-serif"},"font-weight":{inherit:!0,initial:"normal",values:{600:"bold",700:"bold",800:"bold",900:"bold",bold:"bold",bolder:"bold",500:"normal",400:"normal",300:"normal",200:"normal",100:"normal",normal:"normal",lighter:"normal"}},"font-style":{inherit:!0,initial:"normal",values:{italic:"italic",oblique:"italic",normal:"normal"}},"text-anchor":{inherit:!0,initial:"start",values:{start:"start",middle:"middle",end:"end"}},direction:{inherit:!0,initial:"ltr",values:{ltr:"ltr",rtl:"rtl"}},"dominant-baseline":{inherit:!0,initial:"baseline",values:{auto:"baseline",baseline:"baseline","before-edge":"before-edge","text-before-edge":"before-edge",middle:"middle",central:"central","after-edge":"after-edge","text-after-edge":"after-edge",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"mathematical"}},"alignment-baseline":{inherit:!1,initial:void 0,values:{auto:"baseline",baseline:"baseline","before-edge":"before-edge","text-before-edge":"before-edge",middle:"middle",central:"central","after-edge":"after-edge","text-after-edge":"after-edge",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"mathematical"}},"baseline-shift":{inherit:!0,initial:"baseline",values:{baseline:"baseline",sub:"sub",super:"super"}},"word-spacing":{inherit:!0,initial:0,values:{normal:0}},"letter-spacing":{inherit:!0,initial:0,values:{normal:0}},"text-decoration":{inherit:!1,initial:"none",values:{none:"none",underline:"underline",overline:"overline","line-through":"line-through"}},"xml:space":{inherit:!0,initial:"default",css:"white-space",values:{preserve:"preserve",default:"default",pre:"preserve","pre-line":"preserve","pre-wrap":"preserve",nowrap:"default"}},"marker-start":{inherit:!0,initial:"none"},"marker-mid":{inherit:!0,initial:"none"},"marker-end":{inherit:!0,initial:"none"},opacity:{inherit:!1,initial:1},transform:{inherit:!1,initial:[1,0,0,1,0,0]},display:{inherit:!1,initial:"inline",values:{none:"none",inline:"inline",block:"inline"}},"clip-path":{inherit:!1,initial:"none"},mask:{inherit:!1,initial:"none"},overflow:{inherit:!1,initial:"hidden",values:{hidden:"hidden",scroll:"hidden",visible:"visible"}},"vector-effect":{inherit:!0,initial:"none",values:{none:"none","non-scaling-stroke":"non-scaling-stroke"}}};function b(TA){let GA=new function(){};return GA.name="G"+(a._groupCount=(a._groupCount||0)+1),GA.resources=a.ref(),GA.xobj=a.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:TA,Group:{S:"Transparency",CS:"DeviceRGB",I:!0,K:!1},Resources:GA.resources}),GA.xobj.write(""),GA.savedMatrix=a._ctm,GA.savedPage=a.page,Et.push(GA),a._ctm=[1,0,0,1,0,0],a.page={width:a.page.width,height:a.page.height,write:function(PA){GA.xobj.write(PA)},fonts:{},xobjects:{},ext_gstates:{},patterns:{}},GA}function N(TA){if(TA!==Et.pop())throw"Group not matching";Object.keys(a.page.fonts).length&&(TA.resources.data.Font=a.page.fonts),Object.keys(a.page.xobjects).length&&(TA.resources.data.XObject=a.page.xobjects),Object.keys(a.page.ext_gstates).length&&(TA.resources.data.ExtGState=a.page.ext_gstates),Object.keys(a.page.patterns).length&&(TA.resources.data.Pattern=a.page.patterns),TA.resources.end(),TA.xobj.end(),a._ctm=TA.savedMatrix,a.page=TA.savedPage}function O(TA){a.page.xobjects[TA.name]=TA.xobj,a.addContent("/"+TA.name+" Do")}function gA(TA,GA){let PA="M"+(a._maskCount=(a._maskCount||0)+1),_A=a.ref({Type:"ExtGState",CA:1,ca:1,BM:"Normal",SMask:{S:"Luminosity",G:TA.xobj,BC:[0,0,0]}});_A.end(),a.page.ext_gstates[PA]=_A,a.addContent("/"+PA+" gs")}function oA(TA,GA,PA,_A){return{type:"PDFPattern",group:TA,dx:GA,dy:PA,matrix:_A||[1,0,0,1,0,0]}}function q(TA,GA){let PA="P"+(a._patternCount=(a._patternCount||0)+1),_A=a.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:[0,0,TA.dx,TA.dy],XStep:TA.dx,YStep:TA.dy,Matrix:yA(a._ctm,TA.matrix),Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],XObject:function(){let qA={};return qA[TA.group.name]=TA.group.xobj,qA}()}});_A.write("/"+TA.group.name+" Do"),_A.end(),a.page.patterns[PA]=_A,GA?(a.addContent("/Pattern CS"),a.addContent("/"+PA+" SCN")):(a.addContent("/Pattern cs"),a.addContent("/"+PA+" scn"))}function Z(TA,GA){a.page.fonts[TA.id]||(a.page.fonts[TA.id]=TA.ref()),a.addContent("BT").addContent("/"+TA.id+" "+GA+" Tf")}function x(TA,GA,PA,_A,qA,OA){a.addContent(lA(TA)+" "+lA(GA)+" "+lA(-PA)+" "+lA(-_A)+" "+lA(qA)+" "+lA(OA)+" Tm")}function X(TA,GA){let PA=TA&&GA?2:GA?1:TA?0:3;a.addContent(PA+" Tr")}function B(TA,GA){let PA=[],_A="";const qA=GA.fauxItalic?-.25:0;function OA(WA){_A+=WA.glyph,WA.kern!==0&&(PA.push(`<${_A}> ${lA(WA.kern)}`),_A="")}function ce(){_A.length&&(PA.push(`<${_A}> 0`),_A=""),PA.length&&(a.addContent(`[${PA.join(" ")}] TJ`),PA=[])}for(let WA=0;WA<TA.length;WA++){const ie=TA[WA];if(ie.hidden||R(ie.width,0)){ce();continue}if(ie.continuous){OA(ie);continue}ce();const ne=Math.cos(ie.rotate),ve=Math.sin(ie.rotate);x(ne*ie.scale,ve*ie.scale,ne*qA-ve,ve*qA+ne,ie.x,ie.y),OA(ie)}ce()}function v(){a.addContent("ET")}function bA(TA){TA[0].type==="PDFPattern"?(a.fillOpacity(TA[1]),q(TA[0],!1)):a.fillColor(TA[0],TA[1])}function wA(TA){TA[0].type==="PDFPattern"?(a.strokeOpacity(TA[1]),q(TA[0],!0)):a.strokeColor(TA[0],TA[1])}function tA(TA,GA){let PA;for(;(PA=TA.slice(1,-1).indexOf(0))!==-1;){let qA=PA+1,OA=TA[qA-1]+TA[qA+1];TA=TA.slice(0,qA-1).concat([OA]).concat(TA.slice(qA+2))}if(TA.length===2)if(TA[0]===0){a.strokeOpacity(0);return}else TA[1]===0&&(TA=[]);else TA[0]===0&&(GA-=TA[1],TA[TA.length-1]+=TA[1],TA=TA.slice(2)),TA[TA.length-1]===0&&(GA+=TA[TA.length-2],TA[0]+=TA[TA.length-2],TA=TA.slice(0,-2));let _A=0;for(let qA=0;qA<TA.length;qA++)_A+=TA[qA];if(_A>0)for(;GA<0;)GA+=_A;a.dash(TA,{phase:GA})}function nA(TA,GA,PA,_A,qA){let OA=a.ref({Type:"Annot",Subtype:"Link",Rect:[TA,GA,PA,_A],Border:[0,0,0],A:{S:"URI",URI:new String(qA)}});OA.end(),ar.push(OA)}function KA(TA){let GA=function(WA,ie,ne,ve){this.error=ve,this.nodeName=WA,this.nodeValue=ne,this.nodeType=ie,this.attributes=Object.create(null),this.childNodes=[],this.parentNode=null,this.id="",this.textContent="",this.classList=[]};GA.prototype.getAttribute=function(WA){return this.attributes[WA]!=null?this.attributes[WA]:null},GA.prototype.getElementById=function(WA){let ie=null;return function ne(ve){if(!ie&&ve.nodeType===1){ve.id===WA&&(ie=ve);for(let be=0;be<ve.childNodes.length;be++)ne(ve.childNodes[be])}}(this),ie},GA.prototype.getElementsByTagName=function(WA){let ie=[];return function ne(ve){if(ve.nodeType===1){ve.nodeName===WA&&ie.push(ve);for(let be=0;be<ve.childNodes.length;be++)ne(ve.childNodes[be])}}(this),ie};let PA=new ze(TA.trim()),_A,qA,OA=!1,ce=function(){let WA,ie;if(WA=PA.match(/^<([\w:.-]+)\s*/,!0)){let ne=new GA(WA[1],1,null,OA);for(;WA=PA.match(/^([\w:.-]+)(?:\s*=\s*"([^"]*)"|\s*=\s*'([^']*)')?\s*/,!0);){let ve=WA[1],be=DA(WA[2]||WA[3]||"");ne.attributes[ve]?(yt('parseXml: duplicate attribute "'+ve+'"'),OA=!0):(ne.attributes[ve]=be,ve==="id"&&(ne.id=be),ve==="class"&&(ne.classList=be.split(" ")))}if(PA.match(/^>/)){for(;ie=ce();)ne.childNodes.push(ie),ie.parentNode=ne,ne.textContent+=ie.nodeType===3||ie.nodeType===4?ie.nodeValue:ie.textContent;return(WA=PA.match(/^<\/([\w:.-]+)\s*>/,!0))?(WA[1]===ne.nodeName||(yt('parseXml: tag not matching, opening "'+ne.nodeName+'" & closing "'+WA[1]+'"'),OA=!0),ne):(yt('parseXml: tag not matching, opening "'+ne.nodeName+'" & not closing'),OA=!0,ne)}else{if(PA.match(/^\/>/))return ne;yt('parseXml: tag could not be parsed "'+ne.nodeName+'"'),OA=!0}}else{if(WA=PA.match(/^<!--[\s\S]*?-->/))return new GA(null,8,WA,OA);if(WA=PA.match(/^<\?[\s\S]*?\?>/))return new GA(null,7,WA,OA);if(WA=PA.match(/^<!DOCTYPE\s*([\s\S]*?)>/))return new GA(null,10,WA,OA);if(WA=PA.match(/^<!\[CDATA\[([\s\S]*?)\]\]>/,!0))return new GA("#cdata-section",4,WA[1],OA);if(WA=PA.match(/^([^<]+)/,!0))return new GA("#text",3,DA(WA[1]),OA)}};for(;qA=ce();)qA.nodeType===1&&!_A?_A=qA:(qA.nodeType===1||qA.nodeType===3&&qA.nodeValue.trim()!=="")&&yt("parseXml: data after document end has been discarded");return PA.matchAll()&&yt("parseXml: parsing error"),_A}function DA(TA){return TA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(GA,PA,_A,qA){return PA?String.fromCharCode(parseInt(PA,10)):_A?String.fromCharCode(parseInt(_A,16)):qA&&Y[qA]?String.fromCharCode(Y[qA]):GA})}function FA(TA){let GA,PA;return TA=(TA||"").trim(),(GA=E[TA])?PA=[GA.slice(),1]:(GA=TA.match(/^cmyk\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(GA[1]=parseInt(GA[1]),GA[2]=parseInt(GA[2]),GA[3]=parseInt(GA[3]),GA[4]=parseFloat(GA[4]),GA[1]<=100&&GA[2]<=100&&GA[3]<=100&&GA[4]<=100&&(PA=[GA.slice(1,5),1])):(GA=TA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(GA[1]=parseInt(GA[1]),GA[2]=parseInt(GA[2]),GA[3]=parseInt(GA[3]),GA[4]=parseFloat(GA[4]),GA[1]<256&&GA[2]<256&&GA[3]<256&&GA[4]<=1&&(PA=[GA.slice(1,4),GA[4]])):(GA=TA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(GA[1]=parseInt(GA[1]),GA[2]=parseInt(GA[2]),GA[3]=parseInt(GA[3]),GA[1]<256&&GA[2]<256&&GA[3]<256&&(PA=[GA.slice(1,4),1])):(GA=TA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(GA[1]=2.55*parseFloat(GA[1]),GA[2]=2.55*parseFloat(GA[2]),GA[3]=2.55*parseFloat(GA[3]),GA[1]<256&&GA[2]<256&&GA[3]<256&&(PA=[GA.slice(1,4),1])):(GA=TA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?PA=[[parseInt(GA[1],16),parseInt(GA[2],16),parseInt(GA[3],16)],1]:(GA=TA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(PA=[[17*parseInt(GA[1],16),17*parseInt(GA[2],16),17*parseInt(GA[3],16)],1]),je?je(PA,TA):PA}function cA(TA,GA,PA){let _A=TA[0].slice(),qA=TA[1]*GA;if(PA){for(let OA=0;OA<TA.length;OA++)_A[OA]*=qA;return[_A,1]}else return[_A,qA]}function yA(){function TA(PA,_A){return[PA[0]*_A[0]+PA[2]*_A[1],PA[1]*_A[0]+PA[3]*_A[1],PA[0]*_A[2]+PA[2]*_A[3],PA[1]*_A[2]+PA[3]*_A[3],PA[0]*_A[4]+PA[2]*_A[5]+PA[4],PA[1]*_A[4]+PA[3]*_A[5]+PA[5]]}let GA=arguments[0];for(let PA=1;PA<arguments.length;PA++)GA=TA(GA,arguments[PA]);return GA}function zA(TA,GA){return[GA[0]*TA[0]+GA[2]*TA[1]+GA[4],GA[1]*TA[0]+GA[3]*TA[1]+GA[5]]}function mA(){let TA=a._ctm;for(let GA=Et.length-1;GA>=0;GA--)TA=yA(Et[GA].savedMatrix,TA);return TA}function HA(){return new ge().M(0,0).L(a.page.width,0).L(a.page.width,a.page.height).L(0,a.page.height).transform(NA(mA())).getBoundingBox()}function pA(){const TA=HA();return a.page.width/TA[2]}function NA(TA){let GA=TA[0]*TA[3]-TA[1]*TA[2];return[TA[3]/GA,-TA[1]/GA,-TA[2]/GA,TA[0]/GA,(TA[2]*TA[5]-TA[3]*TA[4])/GA,(TA[1]*TA[4]-TA[0]*TA[5])/GA]}function IA(TA){let GA=lA(TA[0]),PA=lA(TA[1]),_A=lA(TA[2]),qA=lA(TA[3]),OA=lA(TA[4]),ce=lA(TA[5]);if(C(GA*qA-PA*_A,0))return[GA,PA,_A,qA,OA,ce]}function BA(TA){let GA=TA[2]||0,PA=TA[1]||0,_A=TA[0]||0;if(R(GA,0)&&R(PA,0))return[];if(R(GA,0))return[-_A/PA];{let qA=PA*PA-4*GA*_A;return C(qA,0)&&qA>0?[(-PA+Math.sqrt(qA))/(2*GA),(-PA-Math.sqrt(qA))/(2*GA)]:R(qA,0)?[-PA/(2*GA)]:[]}}function hA(TA,GA){return(GA[0]||0)+(GA[1]||0)*TA+(GA[2]||0)*TA*TA+(GA[3]||0)*TA*TA*TA}function R(TA,GA){return Math.abs(TA-GA)<1e-10}function C(TA,GA){return Math.abs(TA-GA)>=1e-10}function lA(TA){return TA>-1e21&&TA<1e21?Math.round(TA*1e6)/1e6:0}function rA(TA){return typeof TA=="object"&&TA!==null&&typeof TA.length=="number"}function p(TA){let GA=new ze((TA||"").trim()),PA=[1,0,0,1,0,0],_A;for(;_A=GA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){let qA=_A[1],OA=[],ce=new ze(_A[2].trim()),WA;for(;WA=ce.matchNumber();)OA.push(Number(WA)),ce.matchSeparator();if(qA==="matrix"&&OA.length===6)PA=yA(PA,[OA[0],OA[1],OA[2],OA[3],OA[4],OA[5]]);else if(qA==="translate"&&OA.length===2)PA=yA(PA,[1,0,0,1,OA[0],OA[1]]);else if(qA==="translate"&&OA.length===1)PA=yA(PA,[1,0,0,1,OA[0],0]);else if(qA==="scale"&&OA.length===2)PA=yA(PA,[OA[0],0,0,OA[1],0,0]);else if(qA==="scale"&&OA.length===1)PA=yA(PA,[OA[0],0,0,OA[0],0,0]);else if(qA==="rotate"&&OA.length===3){let ie=OA[0]*Math.PI/180;PA=yA(PA,[1,0,0,1,OA[1],OA[2]],[Math.cos(ie),Math.sin(ie),-Math.sin(ie),Math.cos(ie),0,0],[1,0,0,1,-OA[1],-OA[2]])}else if(qA==="rotate"&&OA.length===1){let ie=OA[0]*Math.PI/180;PA=yA(PA,[Math.cos(ie),Math.sin(ie),-Math.sin(ie),Math.cos(ie),0,0])}else if(qA==="skewX"&&OA.length===1){let ie=OA[0]*Math.PI/180;PA=yA(PA,[1,0,Math.tan(ie),1,0,0])}else if(qA==="skewY"&&OA.length===1){let ie=OA[0]*Math.PI/180;PA=yA(PA,[1,Math.tan(ie),0,1,0,0])}else return;GA.matchSeparator()}if(!GA.matchAll())return PA}function G(TA,GA,PA,_A,qA,OA){let ce=(TA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],WA=ce[1]||ce[4]||"meet",ie=ce[2]||"Mid",ne=ce[3]||"Mid",ve=GA/_A,be=PA/qA,_e={Min:0,Mid:.5,Max:1}[ie]-(OA||0),st={Min:0,Mid:.5,Max:1}[ne]-(OA||0);return WA==="slice"?be=ve=Math.max(ve,be):WA==="meet"&&(be=ve=Math.min(ve,be)),[ve,0,0,be,_e*(GA-_A*ve),st*(PA-qA*be)]}function iA(TA){let GA=Object.create(null);TA=(TA||"").trim().split(/;/);for(let PA=0;PA<TA.length;PA++){let _A=(TA[PA].split(":")[0]||"").trim(),qA=(TA[PA].split(":")[1]||"").trim();_A&&(GA[_A]=qA)}if(GA.marker&&(GA["marker-start"]||(GA["marker-start"]=GA.marker),GA["marker-mid"]||(GA["marker-mid"]=GA.marker),GA["marker-end"]||(GA["marker-end"]=GA.marker)),GA.font){let PA=null,_A=null,qA="normal",OA="normal",ce="normal",WA=GA.font.split(/\s+/);for(let ie=0;ie<WA.length;ie++)switch(WA[ie]){case"normal":break;case"italic":case"oblique":qA=WA[ie];break;case"small-caps":ce=WA[ie];break;case"bold":case"bolder":case"lighter":case"100":case"200":case"300":case"400":case"500":case"600":case"700":case"800":case"900":OA=WA[ie];break;default:_A?PA?PA+=" "+WA[ie]:PA=WA[ie]:_A=WA[ie].split("/")[0];break}GA["font-style"]||(GA["font-style"]=qA),GA["font-variant"]||(GA["font-variant"]=ce),GA["font-weight"]||(GA["font-weight"]=OA),GA["font-size"]||(GA["font-size"]=_A),GA["font-family"]||(GA["font-family"]=PA)}return GA}function MA(TA){let GA=TA.split(/(?=[.#])/g),PA=[],_A=[],qA=[],OA;for(let ce=0;ce<GA.length;ce++)if(OA=GA[ce].match(/^[#]([_A-Za-z0-9-]+)$/))PA.push(OA[1]);else if(OA=GA[ce].match(/^[.]([_A-Za-z0-9-]+)$/))_A.push(OA[1]);else if(OA=GA[ce].match(/^([_A-Za-z0-9-]+)$/))qA.push(OA[1]);else if(GA[ce]!=="*")return;return{tags:qA,ids:PA,classes:_A,specificity:PA.length*1e4+_A.length*100+qA.length}}function m(TA){let GA=new ze(TA.trim()),PA=[],_A;for(;_A=GA.match(/^\s*([^\{\}]*?)\s*\{([^\{\}]*?)\}/,!0);){let qA=_A[1].split(/\s*,\s*/g),OA=iA(_A[2]);for(let ce=0;ce<qA.length;ce++){let WA=MA(qA[ce]);WA&&PA.push({selector:WA,css:OA})}}return PA}function y(TA,GA){if(TA.nodeType!==1)return!1;for(let PA=0;PA<GA.tags.length;PA++)if(GA.tags[PA]!==TA.nodeName)return!1;for(let PA=0;PA<GA.ids.length;PA++)if(GA.ids[PA]!==TA.id)return!1;for(let PA=0;PA<GA.classes.length;PA++)if(TA.classList.indexOf(GA.classes[PA])===-1)return!1;return!0}function uA(TA){let GA=Object.create(null),PA=Object.create(null);for(let _A=0;_A<Ir.length;_A++){let qA=Ir[_A];if(y(TA,qA.selector))for(let OA in qA.css)PA[OA]>qA.selector.specificity||(GA[OA]=qA.css[OA],PA[OA]=qA.selector.specificity)}return GA}function CA(TA,GA){return TA.concat(GA.slice(TA.length))}function $A(TA,GA){return Math.max(TA.ascender,(TA.bbox[3]||TA.bbox.maxY)*(TA.scale||1))*GA/1e3}function ZA(TA,GA){return Math.min(TA.descender,(TA.bbox[1]||TA.bbox.minY)*(TA.scale||1))*GA/1e3}function kA(TA,GA){return(TA.xHeight||.5*(TA.ascender-TA.descender))*GA/1e3}function de(TA,GA,PA,_A){let qA,OA;switch(PA){case"middle":qA=.5*kA(TA,GA);break;case"central":qA=.5*(ZA(TA,GA)+$A(TA,GA));break;case"after-edge":case"text-after-edge":qA=ZA(TA,GA);break;case"alphabetic":case"auto":case"baseline":qA=0;break;case"mathematical":qA=.5*$A(TA,GA);break;case"hanging":qA=.8*$A(TA,GA);break;case"before-edge":case"text-before-edge":qA=$A(TA,GA);break;default:qA=0;break}switch(_A){case"baseline":OA=0;break;case"super":OA=.6*GA;break;case"sub":OA=-.6*GA;break;default:OA=_A;break}return qA-OA}function Te(TA,GA,PA){let _A=TA.encode(""+PA),qA=_A[0],OA=_A[1],ce=[];for(let WA=0;WA<qA.length;WA++){let ie=TA.unicode?TA.unicode[parseInt(qA[WA],16)]:[PA.charCodeAt(WA)];ce.push({glyph:qA[WA],unicode:ie,kern:OA[WA].advanceWidth-OA[WA].xAdvance,width:OA[WA].advanceWidth*GA/1e3,xOffset:OA[WA].xOffset*GA/1e3,yOffset:OA[WA].yOffset*GA/1e3,xAdvance:OA[WA].xAdvance*GA/1e3,yAdvance:OA[WA].yAdvance*GA/1e3})}return ce}function Re(TA,GA){switch(TA.nodeName){case"use":return new EA(TA,GA);case"symbol":return new K(TA,GA);case"g":return new UA(TA,GA);case"a":return new se(TA,GA);case"svg":return new Me(TA,GA);case"image":return new te(TA,GA);case"rect":return new it(TA,GA);case"circle":return new AA(TA,GA);case"ellipse":return new Fe(TA,GA);case"line":return new Ye(TA,GA);case"polyline":return new jA(TA,GA);case"polygon":return new we(TA,GA);case"path":return new ye(TA,GA);case"text":return new ut(TA,GA);case"tspan":return new rt(TA,GA);case"textPath":return new It(TA,GA);case"#text":case"#cdata-section":return new Br(TA);default:return new dA(TA,GA)}}var ze=function(TA){this.match=function(GA,PA){let _A=TA.match(GA);if(!(!_A||_A.index!==0))return TA=TA.substring(_A[0].length),PA?_A:_A[0]},this.matchSeparator=function(){return this.match(/^(?:\s*,\s*|\s*|)/)},this.matchSpace=function(){return this.match(/^(?:\s*)/)},this.matchLengthUnit=function(){return this.match(/^(?:px|pt|cm|mm|in|pc|em|ex|%|)/)},this.matchNumber=function(){return this.match(/^(?:[-+]?(?:[0-9]+[.][0-9]+|[0-9]+[.]|[.][0-9]+|[0-9]+)(?:[eE][-+]?[0-9]+)?)/)},this.matchAll=function(){return this.match(/^[\s\S]+/)}},We=function(TA,GA,PA,_A,qA,OA,ce,WA){let ie=6*Qt,ne=[TA,-3*TA+3*PA,3*TA-6*PA+3*qA,-TA+3*PA-3*qA+ce],ve=[GA,-3*GA+3*_A,3*GA-6*_A+3*OA,-GA+3*_A-3*OA+WA],be=[-3*TA+3*PA,6*TA-12*PA+6*qA,-3*TA+9*PA-9*qA+3*ce],_e=[-3*GA+3*_A,6*GA-12*_A+6*OA,-3*GA+9*_A-9*OA+3*WA],st=[0];for(let Se=1;Se<=ie;Se++){let ue=(Se-.5)/ie,Ge=hA(ue,be)/ie,et=hA(ue,_e)/ie,lt=Math.sqrt(Ge*Ge+et*et);st[Se]=st[Se-1]+lt}this.totalLength=st[ie],this.startPoint=[TA,GA,R(TA,PA)&&R(GA,_A)?Math.atan2(OA-_A,qA-PA):Math.atan2(_A-GA,PA-TA)],this.endPoint=[ce,WA,R(qA,ce)&&R(OA,WA)?Math.atan2(OA-_A,qA-PA):Math.atan2(WA-OA,ce-qA)],this.getBoundingBox=function(){let Se,ue=hA(0,ne),Ge=hA(0,ve),et=hA(1,ne),lt=hA(1,ve);ue>et&&(Se=et,et=ue,ue=Se),Ge>lt&&(Se=lt,lt=Ge,Ge=Se);let Dt=BA(be);for(let bt=0;bt<Dt.length;bt++)if(Dt[bt]>=0&&Dt[bt]<=1){let at=hA(Dt[bt],ne);at<ue&&(ue=at),at>et&&(et=at)}let wt=BA(_e);for(let bt=0;bt<wt.length;bt++)if(wt[bt]>=0&&wt[bt]<=1){let at=hA(wt[bt],ve);at<Ge&&(Ge=at),at>lt&&(lt=at)}return[ue,Ge,et,lt]},this.getPointAtLength=function(Se){if(R(Se,0))return this.startPoint;if(R(Se,this.totalLength))return this.endPoint;if(!(Se<0||Se>this.totalLength))for(let ue=1;ue<=ie;ue++){let Ge=st[ue-1],et=st[ue];if(Ge<=Se&&Se<=et){let lt=(ue-(et-Se)/(et-Ge))/ie,Dt=hA(lt,ne),wt=hA(lt,ve),bt=hA(lt,be),at=hA(lt,_e);return[Dt,wt,Math.atan2(at,bt)]}}}},ee=function(TA,GA,PA,_A){this.totalLength=Math.sqrt((PA-TA)*(PA-TA)+(_A-GA)*(_A-GA)),this.startPoint=[TA,GA,Math.atan2(_A-GA,PA-TA)],this.endPoint=[PA,_A,Math.atan2(_A-GA,PA-TA)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(qA){if(qA>=0&&qA<=this.totalLength){let OA=qA/this.totalLength||0,ce=this.startPoint[0]+OA*(this.endPoint[0]-this.startPoint[0]),WA=this.startPoint[1]+OA*(this.endPoint[1]-this.startPoint[1]);return[ce,WA,this.startPoint[2]]}}},ge=function(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;let TA=0,GA=0,PA=0,_A=0,qA,OA,ce;this.move=function(WA,ie){return TA=PA=WA,GA=_A=ie,null},this.line=function(WA,ie){let ne=new ee(PA,_A,WA,ie);return PA=WA,_A=ie,ne},this.curve=function(WA,ie,ne,ve,be,_e){let st=new We(PA,_A,WA,ie,ne,ve,be,_e);return PA=be,_A=_e,st},this.close=function(){let WA=new ee(PA,_A,TA,GA);return PA=TA,_A=GA,WA},this.addCommand=function(WA){this.pathCommands.push(WA);let ie=this[WA[0]].apply(this,WA.slice(3));ie&&(ie.hasStart=WA[1],ie.hasEnd=WA[2],this.startPoint=this.startPoint||ie.startPoint,this.endPoint=ie.endPoint,this.pathSegments.push(ie),this.totalLength+=ie.totalLength)},this.M=function(WA,ie){return this.addCommand(["move",!0,!0,WA,ie]),qA="M",this},this.m=function(WA,ie){return this.M(PA+WA,_A+ie)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),qA="Z",this},this.L=function(WA,ie){return this.addCommand(["line",!0,!0,WA,ie]),qA="L",this},this.l=function(WA,ie){return this.L(PA+WA,_A+ie)},this.H=function(WA){return this.L(WA,_A)},this.h=function(WA){return this.L(PA+WA,_A)},this.V=function(WA){return this.L(PA,WA)},this.v=function(WA){return this.L(PA,_A+WA)},this.C=function(WA,ie,ne,ve,be,_e){return this.addCommand(["curve",!0,!0,WA,ie,ne,ve,be,_e]),qA="C",OA=ne,ce=ve,this},this.c=function(WA,ie,ne,ve,be,_e){return this.C(PA+WA,_A+ie,PA+ne,_A+ve,PA+be,_A+_e)},this.S=function(WA,ie,ne,ve){return this.C(PA+(qA==="C"?PA-OA:0),_A+(qA==="C"?_A-ce:0),WA,ie,ne,ve)},this.s=function(WA,ie,ne,ve){return this.C(PA+(qA==="C"?PA-OA:0),_A+(qA==="C"?_A-ce:0),PA+WA,_A+ie,PA+ne,_A+ve)},this.Q=function(WA,ie,ne,ve){let be=PA+.6666666666666666*(WA-PA),_e=_A+2/3*(ie-_A),st=ne+2/3*(WA-ne),Se=ve+2/3*(ie-ve);return this.addCommand(["curve",!0,!0,be,_e,st,Se,ne,ve]),qA="Q",OA=WA,ce=ie,this},this.q=function(WA,ie,ne,ve){return this.Q(PA+WA,_A+ie,PA+ne,_A+ve)},this.T=function(WA,ie){return this.Q(PA+(qA==="Q"?PA-OA:0),_A+(qA==="Q"?_A-ce:0),WA,ie)},this.t=function(WA,ie){return this.Q(PA+(qA==="Q"?PA-OA:0),_A+(qA==="Q"?_A-ce:0),PA+WA,_A+ie)},this.A=function(WA,ie,ne,ve,be,_e,st){if(R(WA,0)||R(ie,0))this.addCommand(["line",!0,!0,_e,st]);else{ne=ne*(Math.PI/180),WA=Math.abs(WA),ie=Math.abs(ie),ve=1*!!ve,be=1*!!be;let Se=Math.cos(ne)*(PA-_e)/2+Math.sin(ne)*(_A-st)/2,ue=Math.cos(ne)*(_A-st)/2-Math.sin(ne)*(PA-_e)/2,Ge=Se*Se/(WA*WA)+ue*ue/(ie*ie);Ge>1&&(WA*=Math.sqrt(Ge),ie*=Math.sqrt(Ge));let et=Math.sqrt(Math.max(0,WA*WA*ie*ie-WA*WA*ue*ue-ie*ie*Se*Se)/(WA*WA*ue*ue+ie*ie*Se*Se)),lt=(ve===be?-1:1)*et*WA*ue/ie,Dt=(ve===be?1:-1)*et*ie*Se/WA,wt=Math.cos(ne)*lt-Math.sin(ne)*Dt+(PA+_e)/2,bt=Math.sin(ne)*lt+Math.cos(ne)*Dt+(_A+st)/2,at=Math.atan2((ue-Dt)/ie,(Se-lt)/WA),Mt=Math.atan2((-ue-Dt)/ie,(-Se-lt)/WA);be===0&&Mt-at>0?Mt-=2*Math.PI:be===1&&Mt-at<0&&(Mt+=2*Math.PI);let tr=Math.ceil(Math.abs(Mt-at)/(Math.PI/Qt));for(let Kt=0;Kt<tr;Kt++){let Jt=at+Kt*(Mt-at)/tr,Ut=at+(Kt+1)*(Mt-at)/tr,$t=4/3*Math.tan((Ut-Jt)/4),Bi=wt+Math.cos(ne)*WA*(Math.cos(Jt)-$t*Math.sin(Jt))-Math.sin(ne)*ie*(Math.sin(Jt)+$t*Math.cos(Jt)),pr=bt+Math.sin(ne)*WA*(Math.cos(Jt)-$t*Math.sin(Jt))+Math.cos(ne)*ie*(Math.sin(Jt)+$t*Math.cos(Jt)),hr=wt+Math.cos(ne)*WA*(Math.cos(Ut)+$t*Math.sin(Ut))-Math.sin(ne)*ie*(Math.sin(Ut)-$t*Math.cos(Ut)),Pr=bt+Math.sin(ne)*WA*(Math.cos(Ut)+$t*Math.sin(Ut))+Math.cos(ne)*ie*(Math.sin(Ut)-$t*Math.cos(Ut)),Er=wt+Math.cos(ne)*WA*Math.cos(Ut)-Math.sin(ne)*ie*Math.sin(Ut),Rr=bt+Math.sin(ne)*WA*Math.cos(Ut)+Math.cos(ne)*ie*Math.sin(Ut);this.addCommand(["curve",Kt===0,Kt===tr-1,Bi,pr,hr,Pr,Er,Rr])}}return qA="A",this},this.a=function(WA,ie,ne,ve,be,_e,st){return this.A(WA,ie,ne,ve,be,PA+_e,_A+st)},this.path=function(WA){let ie,ne,ve,be=new ze((WA||"").trim());for(;ie=be.match(/^[astvzqmhlcASTVZQMHLC]/);){be.matchSeparator();let _e=[];for(;ne=L[ie+_e.length]?be.match(/^[01]/):be.matchNumber();)be.matchSeparator(),_e.length===z[ie]&&(this[ie].apply(this,_e),_e=[],ie==="M"?ie="L":ie==="m"&&(ie="l")),_e.push(Number(ne));if(_e.length===z[ie])this[ie].apply(this,_e);else{yt("SvgPath: command "+ie+" with "+_e.length+" numbers");return}}return(ve=be.matchAll())&&yt("SvgPath: unexpected string "+ve),this},this.getBoundingBox=function(){let WA=[1/0,1/0,-1/0,-1/0];function ie(ne){ne[0]<WA[0]&&(WA[0]=ne[0]),ne[2]>WA[2]&&(WA[2]=ne[2]),ne[1]<WA[1]&&(WA[1]=ne[1]),ne[3]>WA[3]&&(WA[3]=ne[3])}for(let ne=0;ne<this.pathSegments.length;ne++)ie(this.pathSegments[ne].getBoundingBox());return WA[0]===1/0&&(WA[0]=0),WA[1]===1/0&&(WA[1]=0),WA[2]===-1/0&&(WA[2]=0),WA[3]===-1/0&&(WA[3]=0),WA},this.getPointAtLength=function(WA){if(WA>=0&&WA<=this.totalLength){let ie;for(let ne=0;ne<this.pathSegments.length;ne++){if(ie=this.pathSegments[ne].getPointAtLength(WA))return ie;WA-=this.pathSegments[ne].totalLength}return this.endPoint}},this.transform=function(WA){this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;for(let ie=0;ie<this.pathCommands.length;ie++){let ne=this.pathCommands.shift();for(let ve=3;ve<ne.length;ve+=2){let be=zA([ne[ve],ne[ve+1]],WA);ne[ve]=be[0],ne[ve+1]=be[1]}this.addCommand(ne)}return this},this.mergeShape=function(WA){for(let ie=0;ie<WA.pathCommands.length;ie++)this.addCommand(WA.pathCommands[ie].slice());return this},this.clone=function(){return new ge().mergeShape(this)},this.insertInDocument=function(){for(let WA=0;WA<this.pathCommands.length;WA++){let ie=this.pathCommands[WA][0],ne=this.pathCommands[WA].slice(3);switch(ie){case"move":a.moveTo(ne[0],ne[1]);break;case"line":a.lineTo(ne[0],ne[1]);break;case"curve":a.bezierCurveTo(ne[0],ne[1],ne[2],ne[3],ne[4],ne[5]);break;case"close":a.closePath();break}}},this.getSubPaths=function(){let WA=[],ie=new ge;for(let ne=0;ne<this.pathCommands.length;ne++){let ve=this.pathCommands[ne];this.pathCommands[ne][0]==="move"&&ne!==0&&(WA.push(ie),ie=new ge),ie.addCommand(ve)}return WA.push(ie),WA},this.getMarkers=function(){let WA=[],ie=this.getSubPaths();for(let ne=0;ne<ie.length;ne++){let ve=ie[ne],be=[];for(let _e=0;_e<ve.pathSegments.length;_e++){let st=ve.pathSegments[_e];if(C(st.totalLength,0)||_e===0||_e===ve.pathSegments.length-1){if(st.hasStart){let Se=st.getPointAtLength(0),ue=be.pop();ue&&(Se[2]=.5*(ue[2]+Se[2])),be.push(Se)}if(st.hasEnd){let Se=st.getPointAtLength(st.totalLength);be.push(Se)}}}WA=WA.concat(be)}return WA}},dA=function(TA,GA){let PA=Object.create(null),_A=null;this.name=TA.nodeName,this.isOuterElement=TA===f||!TA.parentNode,this.inherits=GA||(this.isOuterElement?null:Re(TA.parentNode,null)),this.stack=this.inherits?this.inherits.stack.concat(TA):[TA],this.style=iA(typeof TA.getAttribute=="function"&&TA.getAttribute("style")),this.css=Tt?getComputedStyle(TA):uA(TA),this.allowedChildren=[],this.attr=function(qA){if(typeof TA.getAttribute=="function")return TA.getAttribute(qA)},this.resolveUrl=function(qA){let OA=(qA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],ce=OA[1]||OA[3]||OA[5]||OA[7],WA=OA[2]||OA[4]||OA[6]||OA[8];if(WA){if(!ce){let ie=f.getElementById(WA);if(ie){if(this.stack.indexOf(ie)===-1)return ie;yt('SVGtoPDF: loop of circular references for id "'+WA+'"');return}}if(Ve){let ie=_t[ce];if(!ie){ie=Ve(ce),rA(ie)||(ie=[ie]);for(let ne=0;ne<ie.length;ne++)typeof ie[ne]=="string"&&(ie[ne]=KA(ie[ne]));_t[ce]=ie}for(let ne=0;ne<ie.length;ne++){let ve=ie[ne].getElementById(WA);if(ve){if(this.stack.indexOf(ve)===-1)return ve;yt('SVGtoPDF: loop of circular references for id "'+ce+"#"+WA+'"');return}}}}},this.computeUnits=function(qA,OA,ce,WA){return OA==="%"?parseFloat(qA)/100*(WA||ce!=null?ce:this.getViewport()):OA==="ex"||OA==="em"?qA*{em:1,ex:.5}[OA]*(WA?ce:this.get("font-size")):qA*{"":1,px:1,pt:96/72,cm:96/2.54,mm:96/25.4,in:96,pc:96/6}[OA]},this.computeLength=function(qA,OA,ce,WA){let ie=new ze((qA||"").trim()),ne,ve;return typeof(ne=ie.matchNumber())=="string"&&typeof(ve=ie.matchLengthUnit())=="string"&&!ie.matchAll()?this.computeUnits(ne,ve,OA,WA):ce},this.computeLengthList=function(qA,OA,ce){let WA=new ze((qA||"").trim()),ie=[],ne,ve;for(;typeof(ne=WA.matchNumber())=="string"&&typeof(ve=WA.matchLengthUnit())=="string";)ie.push(this.computeUnits(ne,ve,OA)),WA.matchSeparator();if(!(ce&&WA.matchAll()))return ie},this.getLength=function(qA,OA,ce){return this.computeLength(this.attr(qA),OA,ce)},this.getLengthList=function(qA,OA){return this.computeLengthList(this.attr(qA),OA)},this.getUrl=function(qA){return this.resolveUrl(this.attr(qA))},this.getNumberList=function(qA){let OA=new ze((this.attr(qA)||"").trim()),ce=[],WA;for(;WA=OA.matchNumber();)ce.push(Number(WA)),OA.matchSeparator();return ce.error=OA.matchAll(),ce},this.getViewbox=function(qA,OA){let ce=this.getNumberList(qA);return ce.length===4&&ce[2]>=0&&ce[3]>=0?ce:OA},this.getPercent=function(qA,OA){let ce=this.attr(qA),WA=new ze((ce||"").trim()),ie=WA.matchNumber();return!ie||(WA.match("%")&&(ie*=.01),WA.matchAll())?OA:Math.max(0,Math.min(1,ie))},this.chooseValue=function(qA){for(let OA=0;OA<arguments.length;OA++)if(arguments[OA]!=null&&arguments[OA]===arguments[OA])return arguments[OA];return arguments[arguments.length-1]},this.get=function(qA){if(PA[qA]!==void 0)return PA[qA];let OA=T[qA]||{},ce,WA;for(let ie=0;ie<3;ie++){switch(ie){case 0:qA!=="transform"&&(ce=this.css[OA.css||qA]);break;case 1:ce=this.style[qA];break;case 2:ce=this.attr(qA);break}if(ce==="inherit"&&(WA=this.inherits?this.inherits.get(qA):OA.initial,WA!=null)||OA.values!=null&&(WA=OA.values[ce],WA!=null))return PA[qA]=WA;if(ce!=null){let ne;switch(qA){case"font-size":WA=this.computeLength(ce,this.inherits?this.inherits.get(qA):OA.initial,void 0,!0);break;case"baseline-shift":WA=this.computeLength(ce,this.get("font-size"));break;case"font-family":WA=ce||void 0;break;case"opacity":case"stroke-opacity":case"fill-opacity":case"stop-opacity":ne=parseFloat(ce),isNaN(ne)||(WA=Math.max(0,Math.min(1,ne)));break;case"transform":WA=p(ce);break;case"stroke-dasharray":if(ce==="none")WA=[];else if(ne=this.computeLengthList(ce,this.getViewport(),!0)){let ve=0,be=!1;for(let _e=0;_e<ne.length;_e++)ne[_e]<0&&(be=!0),ve+=ne[_e];be||(ne.length%2===1&&(ne=ne.concat(ne)),WA=ve===0?[]:ne)}break;case"color":ce==="none"||ce==="transparent"?WA="none":WA=FA(ce);break;case"fill":case"stroke":if(ce==="none"||ce==="transparent")WA="none";else if(ce==="currentColor")WA=this.get("color");else{if(ne=FA(ce))return ne;if(ne=(ce||"").split(" ")){let ve=this.resolveUrl(ne[0]),be=FA(ne[1]);ve==null?WA=be:ve.nodeName==="linearGradient"||ve.nodeName==="radialGradient"?WA=new vA(ve,null,be):ve.nodeName==="pattern"?WA=new Qe(ve,null,be):WA=be}}break;case"stop-color":ce==="none"||ce==="transparent"?WA="none":ce==="currentColor"?WA=this.get("color"):WA=FA(ce);break;case"marker-start":case"marker-mid":case"marker-end":case"clip-path":case"mask":ce==="none"?WA="none":WA=this.resolveUrl(ce);break;case"stroke-width":ne=this.computeLength(ce,this.getViewport()),ne!=null&&ne>=0&&(WA=ne);break;case"stroke-miterlimit":ne=parseFloat(ce),ne!=null&&ne>=1&&(WA=ne);break;case"word-spacing":case"letter-spacing":WA=this.computeLength(ce,this.getViewport());break;case"stroke-dashoffset":WA=this.computeLength(ce,this.getViewport());break}if(WA!=null)return PA[qA]=WA}}return PA[qA]=OA.inherit&&this.inherits?this.inherits.get(qA):OA.initial},this.getChildren=function(){if(_A!=null)return _A;let qA=[];for(let OA=0;OA<TA.childNodes.length;OA++){let ce=TA.childNodes[OA];!ce.error&&this.allowedChildren.indexOf(ce.nodeName)!==-1&&qA.push(Re(ce,this))}return _A=qA},this.getParentVWidth=function(){return this.inherits?this.inherits.getVWidth():kt},this.getParentVHeight=function(){return this.inherits?this.inherits.getVHeight():Qr},this.getParentViewport=function(){return Math.sqrt(.5*this.getParentVWidth()*this.getParentVWidth()+.5*this.getParentVHeight()*this.getParentVHeight())},this.getVWidth=function(){return this.getParentVWidth()},this.getVHeight=function(){return this.getParentVHeight()},this.getViewport=function(){return Math.sqrt(.5*this.getVWidth()*this.getVWidth()+.5*this.getVHeight()*this.getVHeight())},this.getBoundingBox=function(){return this.getBoundingShape().getBoundingBox()}},k=function(TA,GA){dA.call(this,TA,GA),this.transform=function(){a.transform.apply(a,this.getTransformation())},this.clip=function(){if(this.get("clip-path")!=="none"){let PA=new Je(this.get("clip-path"),null);return PA.useMask(PA.attr("clipPathUnits")==="objectBoundingBox"?this.getBoundingBox():null),!0}},this.mask=function(){if(this.get("mask")!=="none")return new Ke(this.get("mask"),null).useMask(this.getBoundingBox()),!0},this.getFill=function(PA,_A){let qA=this.get("opacity"),OA=this.get("fill"),ce=this.get("fill-opacity");if(PA)return D.white;if(OA!=="none"&&qA&&ce)return OA instanceof vA||OA instanceof Qe?OA.getPaint(this.getBoundingBox(),ce*qA,PA,_A):cA(OA,ce*qA,_A)},this.getStroke=function(PA,_A){let qA=this.get("opacity"),OA=this.get("stroke"),ce=this.get("stroke-opacity");if(!(PA||R(this.get("stroke-width"),0))&&OA!=="none"&&qA&&ce)return OA instanceof vA||OA instanceof Qe?OA.getPaint(this.getBoundingBox(),ce*qA,PA,_A):cA(OA,ce*qA,_A)}},J=function(TA,GA){k.call(this,TA,GA),this.allowedChildren=["use","g","a","svg","image","rect","circle","ellipse","line","polyline","polygon","path","text"],this.getBoundingShape=function(){let PA=new ge,_A=this.getChildren();for(let qA=0;qA<_A.length;qA++)if(_A[qA].get("display")!=="none"&&typeof _A[qA].getBoundingShape=="function"){let OA=_A[qA].getBoundingShape().clone();typeof _A[qA].getTransformation=="function"&&OA.transform(_A[qA].getTransformation()),PA.mergeShape(OA)}return PA},this.drawChildren=function(PA,_A){let qA=this.getChildren();for(let OA=0;OA<qA.length;OA++)qA[OA].get("display")!=="none"&&typeof qA[OA].drawInDocument=="function"&&qA[OA].drawInDocument(PA,_A)}},_=function(TA,GA){J.call(this,TA,GA),this.drawContent=function(PA,_A){this.transform();let qA=this.clip(),OA=this.mask(),ce;(this.get("opacity")<1||qA||OA)&&!PA&&(ce=b(HA())),this.drawChildren(PA,_A),ce&&(N(ce),a.fillOpacity(this.get("opacity")),O(ce))}},EA=function(TA,GA){_.call(this,TA,GA);let PA=this.getLength("x",this.getVWidth(),0),_A=this.getLength("y",this.getVHeight(),0),qA=this.getUrl("href")||this.getUrl("xlink:href");qA&&(qA=Re(qA,this)),this.getChildren=function(){return qA?[qA]:[]},this.drawInDocument=function(OA,ce){a.save(),this.drawContent(OA,ce),a.restore()},this.getTransformation=function(){return yA(this.get("transform"),[1,0,0,1,PA,_A])}},K=function(TA,GA){_.call(this,TA,GA);let PA=this.getLength("width",this.getParentVWidth(),this.getParentVWidth()),_A=this.getLength("height",this.getParentVHeight(),this.getParentVHeight());GA instanceof EA&&(PA=GA.getLength("width",GA.getParentVWidth(),PA),_A=GA.getLength("height",GA.getParentVHeight(),_A));let qA=(this.attr("preserveAspectRatio")||"").trim(),OA=this.getViewbox("viewBox",[0,0,PA,_A]);this.getVWidth=function(){return OA[2]},this.getVHeight=function(){return OA[3]},this.drawInDocument=function(ce,WA){a.save(),this.drawContent(ce,WA),a.restore()},this.getTransformation=function(){return yA(G(qA,PA,_A,OA[2],OA[3]),[1,0,0,1,-OA[0],-OA[1]])}},UA=function(TA,GA){_.call(this,TA,GA),this.drawInDocument=function(PA,_A){a.save(),this.link&&!PA&&!_A&&this.addLink(),this.drawContent(PA,_A),a.restore()},this.getTransformation=function(){return this.get("transform")}},se=function(TA,GA){GA&&GA.isText?(rt.call(this,TA,GA),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"]):UA.call(this,TA,GA),this.link=this.attr("href")||this.attr("xlink:href"),this.addLink=function(){if(this.link.match(/^(?:[a-z][a-z0-9+.-]*:|\/\/)?/i)&&this.getChildren().length){let PA=this.getBoundingShape().transform(mA()).getBoundingBox();nA(PA[0],PA[1],PA[2],PA[3],this.link)}}},Me=function(TA,GA){_.call(this,TA,GA);let PA=this.getLength("width",this.getParentVWidth(),this.getParentVWidth()),_A=this.getLength("height",this.getParentVHeight(),this.getParentVHeight()),qA=this.getLength("x",this.getParentVWidth(),0),OA=this.getLength("y",this.getParentVHeight(),0);GA instanceof EA&&(PA=GA.getLength("width",GA.getParentVWidth(),PA),_A=GA.getLength("height",GA.getParentVHeight(),_A));let ce=this.attr("preserveAspectRatio"),WA=this.getViewbox("viewBox",[0,0,PA,_A]);this.isOuterElement&&Dr&&(qA=OA=0,PA=kt,_A=Qr,ce=Dr),this.getVWidth=function(){return WA[2]},this.getVHeight=function(){return WA[3]},this.drawInDocument=function(ie,ne){a.save(),this.get("overflow")==="hidden"&&(new ge().M(qA,OA).L(qA+PA,OA).L(qA+PA,OA+_A).L(qA,OA+_A).Z().transform(this.get("transform")).insertInDocument(),a.clip()),this.drawContent(ie,ne),a.restore()},this.getTransformation=function(){return yA(this.get("transform"),[1,0,0,1,qA,OA],G(ce,PA,_A,WA[2],WA[3]),[1,0,0,1,-WA[0],-WA[1]])}},te=function(TA,GA){k.call(this,TA,GA);let PA=Vt(this.attr("href")||this.attr("xlink:href")||""),_A=this.getLength("x",this.getVWidth(),0),qA=this.getLength("y",this.getVHeight(),0),OA=this.getLength("width",this.getVWidth(),"auto"),ce=this.getLength("height",this.getVHeight(),"auto"),WA;try{WA=a.openImage(PA)}catch{yt('SVGElemImage: failed to open image "'+PA+'" in PDFKit')}WA&&(OA==="auto"&&ce!=="auto"?OA=ce*WA.width/WA.height:ce==="auto"&&OA!=="auto"?ce=OA*WA.height/WA.width:OA==="auto"&&ce==="auto"&&(OA=WA.width,ce=WA.height)),(OA==="auto"||OA<0)&&(OA=0),(ce==="auto"||ce<0)&&(ce=0),this.getTransformation=function(){return this.get("transform")},this.getBoundingShape=function(){return new ge().M(_A,qA).L(_A+OA,qA).M(_A+OA,qA+ce).L(_A,qA+ce)},this.drawInDocument=function(ie,ne){this.get("visibility")==="hidden"||!WA||(a.save(),this.transform(),this.get("overflow")==="hidden"&&a.rect(_A,qA,OA,ce).clip(),this.clip(),this.mask(),a.translate(_A,qA),a.transform.apply(a,G(this.attr("preserveAspectRatio"),OA,ce,WA?WA.width:OA,WA?WA.height:ce)),ie?(a.rect(0,0,WA.width,WA.height),bA(D.white).fill()):(a.fillOpacity(this.get("opacity")),a.image(WA,0,0)),a.restore())}},Qe=function(TA,GA,PA){J.call(this,TA,GA),this.ref=(function(){let OA=this.getUrl("href")||this.getUrl("xlink:href");if(OA&&OA.nodeName===TA.nodeName)return new Qe(OA,GA,PA)}).call(this);let _A=this.attr;this.attr=function(OA){let ce=_A.call(this,OA);return ce!=null||OA==="href"||OA==="xlink:href"?ce:this.ref?this.ref.attr(OA):null};let qA=this.getChildren;this.getChildren=function(){let OA=qA.call(this);return OA.length>0?OA:this.ref?this.ref.getChildren():[]},this.getPaint=function(OA,ce,WA,ie){let ne=this.attr("patternUnits")!=="userSpaceOnUse",ve=this.attr("patternContentUnits")==="objectBoundingBox",be=this.getLength("x",ne?1:this.getParentVWidth(),0),_e=this.getLength("y",ne?1:this.getParentVHeight(),0),st=this.getLength("width",ne?1:this.getParentVWidth(),0),Se=this.getLength("height",ne?1:this.getParentVHeight(),0);ve&&!ne?(be=(be-OA[0])/(OA[2]-OA[0])||0,_e=(_e-OA[1])/(OA[3]-OA[1])||0,st=st/(OA[2]-OA[0])||0,Se=Se/(OA[3]-OA[1])||0):!ve&&ne&&(be=OA[0]+be*(OA[2]-OA[0]),_e=OA[1]+_e*(OA[3]-OA[1]),st=st*(OA[2]-OA[0]),Se=Se*(OA[3]-OA[1]));let ue=this.getViewbox("viewBox",[0,0,st,Se]),Ge=(this.attr("preserveAspectRatio")||"").trim(),et=yA(G(Ge,st,Se,ue[2],ue[3],0),[1,0,0,1,-ue[0],-ue[1]]),lt=p(this.attr("patternTransform"));if(ve&&(lt=yA([OA[2]-OA[0],0,0,OA[3]-OA[1],OA[0],OA[1]],lt)),lt=yA(lt,[1,0,0,1,be,_e]),(lt=IA(lt))&&(et=IA(et))&&(st=lA(st))&&(Se=lA(Se))){let Dt=b([0,0,st,Se]);return a.transform.apply(a,et),this.drawChildren(WA,ie),N(Dt),[oA(Dt,st,Se,lt),ce]}else return PA?[PA[0],PA[1]*ce]:void 0},this.getVWidth=function(){let OA=this.attr("patternUnits")!=="userSpaceOnUse",ce=this.getLength("width",OA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,ce,0])[2]},this.getVHeight=function(){let OA=this.attr("patternUnits")!=="userSpaceOnUse",ce=this.getLength("height",OA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,ce])[3]}},vA=function(TA,GA,PA){dA.call(this,TA,GA),this.allowedChildren=["stop"],this.ref=(function(){let OA=this.getUrl("href")||this.getUrl("xlink:href");if(OA&&OA.nodeName===TA.nodeName)return new vA(OA,GA,PA)}).call(this);let _A=this.attr;this.attr=function(OA){let ce=_A.call(this,OA);return ce!=null||OA==="href"||OA==="xlink:href"?ce:this.ref?this.ref.attr(OA):null};let qA=this.getChildren;this.getChildren=function(){let OA=qA.call(this);return OA.length>0?OA:this.ref?this.ref.getChildren():[]},this.getPaint=function(OA,ce,WA,ie){let ne=this.getChildren();if(ne.length===0)return;if(ne.length===1){let at=ne[0],Mt=at.get("stop-color");return Mt==="none"?void 0:cA(Mt,at.get("stop-opacity")*ce,ie)}let ve=this.attr("gradientUnits")!=="userSpaceOnUse",be=p(this.attr("gradientTransform")),_e=this.attr("spreadMethod"),st,Se,ue,Ge,et,lt,Dt=0,wt=0,bt=1;if(ve&&(be=yA([OA[2]-OA[0],0,0,OA[3]-OA[1],OA[0],OA[1]],be)),be=IA(be)){if(this.name==="linearGradient")Se=this.getLength("x1",ve?1:this.getVWidth(),0),ue=this.getLength("x2",ve?1:this.getVWidth(),ve?1:this.getVWidth()),Ge=this.getLength("y1",ve?1:this.getVHeight(),0),et=this.getLength("y2",ve?1:this.getVHeight(),0);else{ue=this.getLength("cx",ve?1:this.getVWidth(),ve?.5:.5*this.getVWidth()),et=this.getLength("cy",ve?1:this.getVHeight(),ve?.5:.5*this.getVHeight()),lt=this.getLength("r",ve?1:this.getViewport(),ve?.5:.5*this.getViewport()),Se=this.getLength("fx",ve?1:this.getVWidth(),ue),Ge=this.getLength("fy",ve?1:this.getVHeight(),et),lt<0&&yt("SvgElemGradient: negative r value");let at=Math.sqrt(Math.pow(ue-Se,2)+Math.pow(et-Ge,2)),Mt=1;at>lt&&(Mt=lt/at,Se=ue+(Se-ue)*Mt,Ge=et+(Ge-et)*Mt),lt=Math.max(lt,at*Mt*(1+1e-6))}if(_e==="reflect"||_e==="repeat"){let at=NA(be),Mt=zA([OA[0],OA[1]],at),tr=zA([OA[2],OA[1]],at),Kt=zA([OA[2],OA[3]],at),Jt=zA([OA[0],OA[3]],at);this.name==="linearGradient"?(Dt=Math.max((Mt[0]-ue)*(ue-Se)+(Mt[1]-et)*(et-Ge),(tr[0]-ue)*(ue-Se)+(tr[1]-et)*(et-Ge),(Kt[0]-ue)*(ue-Se)+(Kt[1]-et)*(et-Ge),(Jt[0]-ue)*(ue-Se)+(Jt[1]-et)*(et-Ge))/(Math.pow(ue-Se,2)+Math.pow(et-Ge,2)),wt=Math.max((Mt[0]-Se)*(Se-ue)+(Mt[1]-Ge)*(Ge-et),(tr[0]-Se)*(Se-ue)+(tr[1]-Ge)*(Ge-et),(Kt[0]-Se)*(Se-ue)+(Kt[1]-Ge)*(Ge-et),(Jt[0]-Se)*(Se-ue)+(Jt[1]-Ge)*(Ge-et))/(Math.pow(ue-Se,2)+Math.pow(et-Ge,2))):Dt=Math.sqrt(Math.max(Math.pow(Mt[0]-ue,2)+Math.pow(Mt[1]-et,2),Math.pow(tr[0]-ue,2)+Math.pow(tr[1]-et,2),Math.pow(Kt[0]-ue,2)+Math.pow(Kt[1]-et,2),Math.pow(Jt[0]-ue,2)+Math.pow(Jt[1]-et,2)))/lt-1,Dt=Math.ceil(Dt+.5),wt=Math.ceil(wt+.5),bt=wt+1+Dt}this.name==="linearGradient"?st=a.linearGradient(Se-wt*(ue-Se),Ge-wt*(et-Ge),ue+Dt*(ue-Se),et+Dt*(et-Ge)):st=a.radialGradient(Se,Ge,0,ue,et,lt+Dt*lt);for(let at=0;at<bt;at++){let Mt=0,tr=_e!=="reflect"||(at-wt)%2===0;for(let Kt=0;Kt<ne.length;Kt++){let Jt=ne[tr?Kt:ne.length-1-Kt],Ut=Jt.get("stop-color");Ut==="none"&&(Ut=D.transparent),Ut=cA(Ut,Jt.get("stop-opacity")*ce,ie),Mt=Math.max(Mt,tr?Jt.getPercent("offset",0):1-Jt.getPercent("offset",0)),Kt===0&&Ut[0].length===4&&(st._colorSpace="DeviceCMYK"),Kt===0&&Mt>0&&st.stop((at+0)/bt,Ut[0],Ut[1]),st.stop((at+Mt)/(Dt+wt+1),Ut[0],Ut[1]),Kt===ne.length-1&&Mt<1&&st.stop((at+1)/bt,Ut[0],Ut[1])}}return st.setTransform.apply(st,be),[st,1]}else return PA?[PA[0],PA[1]*ce]:void 0}},me=function(TA,GA){k.call(this,TA,GA),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(PA,_A){if(!(this.get("visibility")==="hidden"||!this.shape)){if(a.save(),this.get("vector-effect")==="non-scaling-stroke"?this.shape.transform(this.getTransformation()):this.transform(),this.clip(),PA)this.shape.insertInDocument(),bA(D.white),a.fill(this.get("clip-rule"));else{let qA=this.mask(),OA;qA&&(OA=b(HA()));let ce=this.shape.getSubPaths(),WA=this.getFill(PA,_A),ie=this.getStroke(PA,_A),ne=this.get("stroke-width"),ve=this.get("stroke-linecap");if(this.get("vector-effect")==="non-scaling-stroke"&&(ne=ne/pA()),WA||ie){if(WA&&bA(WA),ie){for(let Ge=0;Ge<ce.length;Ge++)if(R(ce[Ge].totalLength,0)&&(ve==="square"||ve==="round")&&ne>0&&ce[Ge].startPoint&&ce[Ge].startPoint.length>1){let et=ce[Ge].startPoint[0],lt=ce[Ge].startPoint[1];bA(ie),ve==="square"?a.rect(et-.5*ne,lt-.5*ne,ne,ne):ve==="round"&&a.circle(et,lt,.5*ne),a.fill()}let Se=this.get("stroke-dasharray"),ue=this.get("stroke-dashoffset");if(C(this.dashScale,1)){for(let Ge=0;Ge<Se.length;Ge++)Se[Ge]*=this.dashScale;ue*=this.dashScale}wA(ie),a.lineWidth(ne).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(ve),tA(Se,ue)}for(let Se=0;Se<ce.length;Se++)ce[Se].totalLength>0&&ce[Se].insertInDocument();WA&&ie?a.fillAndStroke(this.get("fill-rule")):WA?a.fill(this.get("fill-rule")):ie&&a.stroke()}let be=this.get("marker-start"),_e=this.get("marker-mid"),st=this.get("marker-end");if(be!=="none"||_e!=="none"||st!=="none"){let Se=this.shape.getMarkers();if(be!=="none"&&Se.length>0&&new $e(be,null).drawMarker(!1,_A,Se[0],ne),_e!=="none")for(let ue=1;ue<Se.length-1;ue++)new $e(_e,null).drawMarker(!1,_A,Se[ue],ne);st!=="none"&&Se.length>0&&new $e(st,null).drawMarker(!1,_A,Se[Se.length-1],ne)}OA&&(N(OA),O(OA))}a.restore()}}},it=function(TA,GA){me.call(this,TA,GA);let PA=this.getLength("x",this.getVWidth(),0),_A=this.getLength("y",this.getVHeight(),0),qA=this.getLength("width",this.getVWidth(),0),OA=this.getLength("height",this.getVHeight(),0),ce=this.getLength("rx",this.getVWidth()),WA=this.getLength("ry",this.getVHeight());ce===void 0&&WA===void 0?ce=WA=0:ce===void 0&&WA!==void 0?ce=WA:ce!==void 0&&WA===void 0&&(WA=ce),qA>0&&OA>0?ce&&WA?(ce=Math.min(ce,.5*qA),WA=Math.min(WA,.5*OA),this.shape=new ge().M(PA+ce,_A).L(PA+qA-ce,_A).A(ce,WA,0,0,1,PA+qA,_A+WA).L(PA+qA,_A+OA-WA).A(ce,WA,0,0,1,PA+qA-ce,_A+OA).L(PA+ce,_A+OA).A(ce,WA,0,0,1,PA,_A+OA-WA).L(PA,_A+WA).A(ce,WA,0,0,1,PA+ce,_A).Z()):this.shape=new ge().M(PA,_A).L(PA+qA,_A).L(PA+qA,_A+OA).L(PA,_A+OA).Z():this.shape=new ge},AA=function(TA,GA){me.call(this,TA,GA);let PA=this.getLength("cx",this.getVWidth(),0),_A=this.getLength("cy",this.getVHeight(),0),qA=this.getLength("r",this.getViewport(),0);qA>0?this.shape=new ge().M(PA+qA,_A).A(qA,qA,0,0,1,PA-qA,_A).A(qA,qA,0,0,1,PA+qA,_A).Z():this.shape=new ge},Fe=function(TA,GA){me.call(this,TA,GA);let PA=this.getLength("cx",this.getVWidth(),0),_A=this.getLength("cy",this.getVHeight(),0),qA=this.getLength("rx",this.getVWidth(),0),OA=this.getLength("ry",this.getVHeight(),0);qA>0&&OA>0?this.shape=new ge().M(PA+qA,_A).A(qA,OA,0,0,1,PA-qA,_A).A(qA,OA,0,0,1,PA+qA,_A).Z():this.shape=new ge},Ye=function(TA,GA){me.call(this,TA,GA);let PA=this.getLength("x1",this.getVWidth(),0),_A=this.getLength("y1",this.getVHeight(),0),qA=this.getLength("x2",this.getVWidth(),0),OA=this.getLength("y2",this.getVHeight(),0);this.shape=new ge().M(PA,_A).L(qA,OA)},jA=function(TA,GA){me.call(this,TA,GA);let PA=this.getNumberList("points");this.shape=new ge;for(let _A=0;_A<PA.length-1;_A+=2)_A===0?this.shape.M(PA[_A],PA[_A+1]):this.shape.L(PA[_A],PA[_A+1]);PA.error&&yt("SvgElemPolygon: unexpected string "+PA.error),PA.length%2===1&&yt("SvgElemPolyline: uneven number of coordinates")},we=function(TA,GA){me.call(this,TA,GA);let PA=this.getNumberList("points");this.shape=new ge;for(let _A=0;_A<PA.length-1;_A+=2)_A===0?this.shape.M(PA[_A],PA[_A+1]):this.shape.L(PA[_A],PA[_A+1]);this.shape.Z(),PA.error&&yt("SvgElemPolygon: unexpected string "+PA.error),PA.length%2===1&&yt("SvgElemPolygon: uneven number of coordinates")},ye=function(TA,GA){me.call(this,TA,GA),this.shape=new ge().path(this.attr("d"));let PA=this.getLength("pathLength",this.getViewport());this.pathLength=PA>0?PA:void 0,this.dashScale=this.pathLength!==void 0?this.shape.totalLength/this.pathLength:1},$e=function(TA,GA){J.call(this,TA,GA);let PA=this.getLength("markerWidth",this.getParentVWidth(),3),_A=this.getLength("markerHeight",this.getParentVHeight(),3),qA=this.getViewbox("viewBox",[0,0,PA,_A]);this.getVWidth=function(){return qA[2]},this.getVHeight=function(){return qA[3]},this.drawMarker=function(OA,ce,WA,ie){a.save();let ne=this.attr("orient"),ve=this.attr("markerUnits"),be=ne==="auto"?WA[2]:(parseFloat(ne)||0)*Math.PI/180,_e=ve==="userSpaceOnUse"?1:ie;a.transform(Math.cos(be)*_e,Math.sin(be)*_e,-Math.sin(be)*_e,Math.cos(be)*_e,WA[0],WA[1]);let st=this.getLength("refX",this.getVWidth(),0),Se=this.getLength("refY",this.getVHeight(),0),ue=G(this.attr("preserveAspectRatio"),PA,_A,qA[2],qA[3],.5);this.get("overflow")==="hidden"&&a.rect(ue[0]*(qA[0]+qA[2]/2-st)-PA/2,ue[3]*(qA[1]+qA[3]/2-Se)-_A/2,PA,_A).clip(),a.transform.apply(a,ue),a.translate(-st,-Se);let Ge;this.get("opacity")<1&&!OA&&(Ge=b(HA())),this.drawChildren(OA,ce),Ge&&(N(Ge),a.fillOpacity(this.get("opacity")),O(Ge)),a.restore()}},Je=function(TA,GA){J.call(this,TA,GA),this.useMask=function(PA){let _A=b(HA());a.save(),a.transform.apply(a,this.get("transform")),this.attr("clipPathUnits")==="objectBoundingBox"&&a.transform(PA[2]-PA[0],0,0,PA[3]-PA[1],PA[0],PA[1]),this.clip(),this.drawChildren(!0,!1),a.restore(),N(_A),gA(_A)}},Ke=function(TA,GA){J.call(this,TA,GA),this.useMask=function(PA){let _A=b(HA());a.save(),this.attr("maskUnits")==="userSpaceOnUse"?(this.getLength("x",this.getVWidth(),-.1*(PA[2]-PA[0])+PA[0]),this.getLength("y",this.getVHeight(),-.1*(PA[3]-PA[1])+PA[1]),this.getLength("width",this.getVWidth(),1.2*(PA[2]-PA[0])),this.getLength("height",this.getVHeight(),1.2*(PA[3]-PA[1]))):(this.getLength("x",this.getVWidth(),-.1)*(PA[2]-PA[0])+PA[0],this.getLength("y",this.getVHeight(),-.1)*(PA[3]-PA[1])+PA[1],this.getLength("width",this.getVWidth(),1.2)*(PA[2]-PA[0]),this.getLength("height",this.getVHeight(),1.2)*(PA[3]-PA[1])),this.attr("maskContentUnits")==="objectBoundingBox"&&a.transform(PA[2]-PA[0],0,0,PA[3]-PA[1],PA[0],PA[1]),this.clip(),this.drawChildren(!1,!0),a.restore(),N(_A),gA(_A)}},ht=function(TA,GA){k.call(this,TA,GA),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){let PA=new ge;for(let _A=0;_A<this._pos.length;_A++){let qA=this._pos[_A];if(!qA.hidden){let OA=qA.ascent*Math.sin(qA.rotate),ce=-qA.ascent*Math.cos(qA.rotate),WA=qA.descent*Math.sin(qA.rotate),ie=-qA.descent*Math.cos(qA.rotate),ne=qA.width*Math.cos(qA.rotate),ve=qA.width*Math.sin(qA.rotate);PA.M(qA.x+OA,qA.y+ce).L(qA.x+OA+ne,qA.y+ce+ve).M(qA.x+WA+ne,qA.y+ie+ve).L(qA.x+WA,qA.y+ie)}}return PA},this.drawTextInDocument=function(PA,_A){this.link&&!PA&&!_A&&this.addLink(),this.get("text-decoration")==="underline"&&this.decorate(.05*this._font.size,-.075*this._font.size,PA,_A),this.get("text-decoration")==="overline"&&this.decorate(.05*this._font.size,$A(this._font.font,this._font.size)+.075*this._font.size,PA,_A);let qA=this.getFill(PA,_A),OA=this.getStroke(PA,_A),ce=this.get("stroke-width");this._font.fauxBold&&(OA?ce+=this._font.size*.03:(OA=qA,ce=this._font.size*.03));let WA=this.getChildren();for(let ie=0;ie<WA.length;ie++){let ne=WA[ie];switch(ne.name){case"tspan":case"textPath":case"a":ne.get("display")!=="none"&&ne.drawTextInDocument(PA,_A);break;case"#text":case"#cdata-section":if(this.get("visibility")==="hidden")continue;(qA||OA||PA)&&(qA&&bA(qA),OA&&ce&&(wA(OA),a.lineWidth(ce).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")),tA(this.get("stroke-dasharray"),this.get("stroke-dashoffset"))),Z(this._font.font,this._font.size),X(!!qA,!!OA),B(ne._pos,this._font),v());break}}this.get("text-decoration")==="line-through"&&this.decorate(.05*this._font.size,.5*($A(this._font.font,this._font.size)+ZA(this._font.font,this._font.size)),PA,_A)},this.decorate=function(PA,_A,qA,OA){let ce=this.getFill(qA,OA),WA=this.getStroke(qA,OA);ce&&bA(ce),WA&&(wA(WA),a.lineWidth(this.get("stroke-width")).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")),tA(this.get("stroke-dasharray"),this.get("stroke-dashoffset")));for(let ie=0,ne=this._pos;ie<ne.length;ie++)if(!ne[ie].hidden&&C(ne[ie].width,0)){let ve=(_A+PA/2)*Math.sin(ne[ie].rotate),be=-(_A+PA/2)*Math.cos(ne[ie].rotate),_e=(_A-PA/2)*Math.sin(ne[ie].rotate),st=-(_A-PA/2)*Math.cos(ne[ie].rotate),Se=ne[ie].width*Math.cos(ne[ie].rotate),ue=ne[ie].width*Math.sin(ne[ie].rotate);new ge().M(ne[ie].x+ve,ne[ie].y+be).L(ne[ie].x+ve+Se,ne[ie].y+be+ue).L(ne[ie].x+_e+Se,ne[ie].y+st+ue).L(ne[ie].x+_e,ne[ie].y+st).Z().insertInDocument(),ce&&WA?a.fillAndStroke():ce?a.fill():WA&&a.stroke()}}},Br=function(TA,GA){this.name=TA.nodeName,this.textContent=TA.nodeValue},rt=function(TA,GA){ht.call(this,TA,GA)},It=function(TA,GA){ht.call(this,TA,GA);let PA;if((PA=this.attr("path"))&&PA.trim()!==""){let _A=this.getLength("pathLength",this.getViewport());this.pathObject=new ge().path(PA),this.pathLength=_A>0?_A:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((PA=this.getUrl("href")||this.getUrl("xlink:href"))&&PA.nodeName==="path"){let _A=new ye(PA,this);this.pathObject=_A.shape.clone().transform(_A.get("transform")),this.pathLength=this.chooseValue(_A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},ut=function(TA,GA){ht.call(this,TA,GA),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(PA){let _A="",qA=TA.textContent,OA=[],ce=[],WA,ie,ne=0,ve=0;function be(){if(ce.length){let ue=ce[ce.length-1],Ge=ce[0],et=ue.x+ue.width-Ge.x,lt={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[WA+ie]*et||0;for(let Dt=0;Dt<ce.length;Dt++)ce[Dt].x-=lt}ce=[]}function _e(ue,Ge,et){let lt=ue[0],Dt=ue[ue.length-1],wt=lt.x,bt=Dt.x+Dt.width;if(et){let at=Ge/(bt-wt);if(at>0&&at<1/0)for(let Mt=0;Mt<ue.length;Mt++)ue[Mt].continuous=!1,ue[Mt].x=wt+at*(ue[Mt].x-wt),ue[Mt].scale*=at,ue[Mt].width*=at}else if(ue.length>=2){let at=(Ge-(bt-wt))/(ue.length-1);for(let Mt=0;Mt<ue.length;Mt++)ue[Mt].continuous=!1,ue[Mt].x+=Mt*at}ne+=Ge-(bt-wt)}function st(ue,Ge){ue._x=CA(ue.getLengthList("x",ue.getVWidth()),Ge?Ge._x.slice(Ge._pos.length):[]),ue._y=CA(ue.getLengthList("y",ue.getVHeight()),Ge?Ge._y.slice(Ge._pos.length):[]),ue._dx=CA(ue.getLengthList("dx",ue.getVWidth()),Ge?Ge._dx.slice(Ge._pos.length):[]),ue._dy=CA(ue.getLengthList("dy",ue.getVHeight()),Ge?Ge._dy.slice(Ge._pos.length):[]),ue._rot=CA(ue.getNumberList("rotate"),Ge?Ge._rot.slice(Ge._pos.length):[]),ue._defRot=ue.chooseValue(ue._rot[ue._rot.length-1],Ge&&Ge._defRot,0),ue.name==="textPath"&&(ue._y=[]);let et={fauxItalic:!1,fauxBold:!1},lt=jt(ue.get("font-family"),ue.get("font-weight")==="bold",ue.get("font-style")==="italic",et);try{a.font(lt)}catch(pr){yt('SVGElemText: failed to open font "'+lt+'" in PDFKit: '+pr.message)}ue._pos=[],ue._index=0,ue._font={font:a._font,size:ue.get("font-size"),fauxItalic:et.fauxItalic,fauxBold:et.fauxBold};let Dt=ue.getLength("textLength",ue.getVWidth(),void 0),wt=ue.attr("lengthAdjust")==="spacingAndGlyphs",bt=ue.get("word-spacing"),at=ue.get("letter-spacing"),Mt=ue.get("text-anchor"),tr=ue.get("direction"),Kt=ue.name==="text",Jt=Kt?ue.get("dominant-baseline"):ue.get("alignment-baseline")||ue.get("dominant-baseline"),Ut=Kt?"baseline":ue.get("baseline-shift"),$t=de(ue._font.font,ue._font.size,Jt,Ut);ue.name==="textPath"&&(be(),ne=ve=0);let Bi=ue.getChildren();for(let pr=0;pr<Bi.length;pr++){let hr=Bi[pr];switch(hr.name){case"tspan":case"textPath":case"a":st(hr,ue);break;case"#text":case"#cdata-section":let Pr=hr.textContent,Er=Pr,Rr;hr._font=ue._font,hr._pos=[],qA=qA.substring(Pr.length),ue.get("xml:space")==="preserve"?Er=Er.replace(/[\s]/g," "):(Er=Er.replace(/[\s]+/g," "),_A.match(/[\s]$|^$/)&&(Er=Er.replace(/^[\s]/,"")),qA.match(/^[\s]*$/)&&(Er=Er.replace(/[\s]$/,""))),_A+=Pr,bt===0?Rr=[Er]:Rr=Er.split(/(\s)/);for(let dr=0;dr<Rr.length;dr++){let vr=Te(ue._font.font,ue._font.size,Rr[dr]);for(let yr=0;yr<vr.length;yr++){let xr=ue._index,bi=ue._x[xr],mr=ue._y[xr],ii=ue._dx[xr],Ui=ue._dy[xr],ni=ue._rot[xr],gr=!(dr===0&&yr===0);at!==0&&(gr=!1),bt!==0&&(gr=!1),bi!==void 0&&(gr=!1,be(),ne=bi),mr!==void 0&&(gr=!1,be(),ve=mr),ii!==void 0&&(gr=!1,ne+=ii),Ui!==void 0&&(gr=!1,ve+=Ui),(ni!==void 0||ue._defRot!==0)&&(gr=!1);let Mi={glyph:vr[yr].glyph,rotate:Math.PI/180*ue.chooseValue(ni,ue._defRot),x:ne+vr[yr].xOffset,kern:vr[yr].kern,y:ve+$t+vr[yr].yOffset,width:vr[yr].width,ascent:$A(ue._font.font,ue._font.size),descent:ZA(ue._font.font,ue._font.size),scale:1,hidden:!1,continuous:gr};ce.push(Mi),hr._pos.push(Mi),ue._pos.push(Mi),ue._index+=vr[yr].unicode.length,ce.length===1&&(WA=Mt,ie=tr),ne+=vr[yr].xAdvance+at,ve+=vr[yr].yAdvance}Rr[dr]===" "&&(ne+=bt)}break;default:qA=qA.substring(hr.textContent.length)}}if(Dt&&ue._pos.length&&_e(ue._pos,Dt,wt),(ue.name==="textPath"||ue.name==="text")&&be(),ue.name==="textPath"){OA.push(ue);let pr=ue.pathObject;pr&&(ne=pr.endPoint[0],ve=pr.endPoint[1])}Ge&&(Ge._pos=Ge._pos.concat(ue._pos),Ge._index+=ue._index)}function Se(ue){let Ge=ue.pathObject,et=ue.pathLength,lt=ue.pathScale;if(Ge){let Dt=ue.getLength("startOffset",et,0);for(let wt=0;wt<ue._pos.length;wt++){let bt=Dt+ue._pos[wt].x+.5*ue._pos[wt].width;if(bt>et||bt<0)ue._pos[wt].hidden=!0;else{let at=Ge.getPointAtLength(bt*lt);C(lt,1)&&(ue._pos[wt].scale*=lt,ue._pos[wt].width*=lt),ue._pos[wt].x=at[0]-.5*ue._pos[wt].width*Math.cos(at[2])-ue._pos[wt].y*Math.sin(at[2]),ue._pos[wt].y=at[1]-.5*ue._pos[wt].width*Math.sin(at[2])+ue._pos[wt].y*Math.cos(at[2]),ue._pos[wt].rotate=at[2]+ue._pos[wt].rotate,ue._pos[wt].continuous=!1}}}else for(let Dt=0;Dt<ue._pos.length;Dt++)ue._pos[Dt].hidden=!0}st(PA,null);for(let ue=0;ue<OA.length;ue++)Se(OA[ue])}(this),this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(PA,_A){a.save(),this.transform(),this.clip();let qA=this.mask(),OA;qA&&(OA=b(HA())),this.drawTextInDocument(PA,_A),OA&&(N(OA),O(OA)),a.restore()}};d=d||{};var Yt=d.assumePt?1:72/96,kt=(d.width||a.page.width)/Yt,Qr=(d.height||a.page.height)/Yt,Dr=d.preserveAspectRatio||null,Tt=d.useCSS&&typeof SVGElement<"u"&&f instanceof SVGElement&&typeof getComputedStyle=="function",yt=d.warningCallback,jt=d.fontCallback,Vt=d.imageCallback,je=d.colorCallback,Ve=d.documentCallback,Qt=Math.ceil(Math.max(1,d.precision))||3,Et=[],_t={},ar=[],Ir=[];if(typeof yt!="function"&&(yt=function(TA){typeof console!==void 0&&typeof console.warn=="function"&&console.warn(TA)}),typeof jt!="function"&&(jt=function(TA,GA,PA,_A){if(GA&&PA){if(a._registeredFonts.hasOwnProperty(TA+"-BoldItalic"))return TA+"-BoldItalic";if(a._registeredFonts.hasOwnProperty(TA+"-Italic"))return _A.fauxBold=!0,TA+"-Italic";if(a._registeredFonts.hasOwnProperty(TA+"-Bold"))return _A.fauxItalic=!0,TA+"-Bold";if(a._registeredFonts.hasOwnProperty(TA))return _A.fauxBold=!0,_A.fauxItalic=!0,TA}if(GA&&!PA){if(a._registeredFonts.hasOwnProperty(TA+"-Bold"))return TA+"-Bold";if(a._registeredFonts.hasOwnProperty(TA))return _A.fauxBold=!0,TA}if(!GA&&PA){if(a._registeredFonts.hasOwnProperty(TA+"-Italic"))return TA+"-Italic";if(a._registeredFonts.hasOwnProperty(TA))return _A.fauxItalic=!0,TA}if(!GA&&!PA&&a._registeredFonts.hasOwnProperty(TA))return TA;if(TA.match(/(?:^|,)\s*serif\s*$/)){if(GA&&PA)return"Times-BoldItalic";if(GA&&!PA)return"Times-Bold";if(!GA&&PA)return"Times-Italic";if(!GA&&!PA)return"Times-Roman"}else if(TA.match(/(?:^|,)\s*monospace\s*$/)){if(GA&&PA)return"Courier-BoldOblique";if(GA&&!PA)return"Courier-Bold";if(!GA&&PA)return"Courier-Oblique";if(!GA&&!PA)return"Courier"}else{if(TA.match(/(?:^|,)\s*sans-serif\s*$/),GA&&PA)return"Helvetica-BoldOblique";if(GA&&!PA)return"Helvetica-Bold";if(!GA&&PA)return"Helvetica-Oblique";if(!GA&&!PA)return"Helvetica"}}),typeof Vt!="function"&&(Vt=function(TA){return TA.replace(/\s+/g,"")}),typeof je!="function")je=null;else for(let TA in D){let GA=je(D[TA]);D[TA][0]=GA[0],D[TA][1]=GA[1]}if(typeof Ve!="function"&&(Ve=null),typeof f=="string"&&(f=KA(f)),f){let TA=f.getElementsByTagName("style");for(let PA=0;PA<TA.length;PA++)Ir=Ir.concat(m(TA[PA].textContent));let GA=Re(f,null);if(typeof GA.drawInDocument=="function"){d.useCSS&&!Tt&&yt("SVGtoPDF: useCSS option can only be used for SVG *elements* in compatible browsers");let PA=a._fillColor;a.save().translate(h||0,Q||0).scale(Yt),GA.drawInDocument();for(let _A=0;_A<ar.length;_A++)a.page.annotations.push(ar[_A]);a.restore(),a._fillColor=PA}else yt("SVGtoPDF: this element can't be rendered directly: "+f.nodeName)}else yt("SVGtoPDF: the input does not look like a valid SVG")};o&&typeof o.exports<"u"&&(o.exports=A)},783(o,r,t){/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */t(187),t(8376),t(6401),t(2017);const A=t(2504),a=t(9029),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=E,r.SlowBuffer=q,r.INSPECT_MAX_BYTES=50;const h=2147483647;r.kMaxLength=h,E.TYPED_ARRAY_SUPPORT=Q(),!E.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Q(){try{const dA=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(dA,k),dA.foo()===42}catch{return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function d(dA){if(dA>h)throw new RangeError('The value "'+dA+'" is invalid for option "size"');const k=new Uint8Array(dA);return Object.setPrototypeOf(k,E.prototype),k}function E(dA,k,J){if(typeof dA=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(dA)}return D(dA,k,J)}E.poolSize=8192;function D(dA,k,J){if(typeof dA=="string")return T(dA,k);if(ArrayBuffer.isView(dA))return N(dA);if(dA==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof dA);if(Re(dA,ArrayBuffer)||dA&&Re(dA.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(dA,SharedArrayBuffer)||dA&&Re(dA.buffer,SharedArrayBuffer)))return O(dA,k,J);if(typeof dA=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=dA.valueOf&&dA.valueOf();if(_!=null&&_!==dA)return E.from(_,k,J);const EA=gA(dA);if(EA)return EA;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof dA[Symbol.toPrimitive]=="function")return E.from(dA[Symbol.toPrimitive]("string"),k,J);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof dA)}E.from=function(dA,k,J){return D(dA,k,J)},Object.setPrototypeOf(E.prototype,Uint8Array.prototype),Object.setPrototypeOf(E,Uint8Array);function Y(dA){if(typeof dA!="number")throw new TypeError('"size" argument must be of type number');if(dA<0)throw new RangeError('The value "'+dA+'" is invalid for option "size"')}function z(dA,k,J){return Y(dA),dA<=0?d(dA):k!==void 0?typeof J=="string"?d(dA).fill(k,J):d(dA).fill(k):d(dA)}E.alloc=function(dA,k,J){return z(dA,k,J)};function L(dA){return Y(dA),d(dA<0?0:oA(dA)|0)}E.allocUnsafe=function(dA){return L(dA)},E.allocUnsafeSlow=function(dA){return L(dA)};function T(dA,k){if((typeof k!="string"||k==="")&&(k="utf8"),!E.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const J=Z(dA,k)|0;let _=d(J);const EA=_.write(dA,k);return EA!==J&&(_=_.slice(0,EA)),_}function b(dA){const k=dA.length<0?0:oA(dA.length)|0,J=d(k);for(let _=0;_<k;_+=1)J[_]=dA[_]&255;return J}function N(dA){if(Re(dA,Uint8Array)){const k=new Uint8Array(dA);return O(k.buffer,k.byteOffset,k.byteLength)}return b(dA)}function O(dA,k,J){if(k<0||dA.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(dA.byteLength<k+(J||0))throw new RangeError('"length" is outside of buffer bounds');let _;return k===void 0&&J===void 0?_=new Uint8Array(dA):J===void 0?_=new Uint8Array(dA,k):_=new Uint8Array(dA,k,J),Object.setPrototypeOf(_,E.prototype),_}function gA(dA){if(E.isBuffer(dA)){const k=oA(dA.length)|0,J=d(k);return J.length===0||dA.copy(J,0,0,k),J}if(dA.length!==void 0)return typeof dA.length!="number"||ze(dA.length)?d(0):b(dA);if(dA.type==="Buffer"&&Array.isArray(dA.data))return b(dA.data)}function oA(dA){if(dA>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return dA|0}function q(dA){return+dA!=dA&&(dA=0),E.alloc(+dA)}E.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==E.prototype},E.compare=function(k,J){if(Re(k,Uint8Array)&&(k=E.from(k,k.offset,k.byteLength)),Re(J,Uint8Array)&&(J=E.from(J,J.offset,J.byteLength)),!E.isBuffer(k)||!E.isBuffer(J))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===J)return 0;let _=k.length,EA=J.length;for(let K=0,UA=Math.min(_,EA);K<UA;++K)if(k[K]!==J[K]){_=k[K],EA=J[K];break}return _<EA?-1:EA<_?1:0},E.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(k,J){if(!Array.isArray(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return E.alloc(0);let _;if(J===void 0)for(J=0,_=0;_<k.length;++_)J+=k[_].length;const EA=E.allocUnsafe(J);let K=0;for(_=0;_<k.length;++_){let UA=k[_];if(Re(UA,Uint8Array))K+UA.length>EA.length?(E.isBuffer(UA)||(UA=E.from(UA)),UA.copy(EA,K)):Uint8Array.prototype.set.call(EA,UA,K);else if(E.isBuffer(UA))UA.copy(EA,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=UA.length}return EA};function Z(dA,k){if(E.isBuffer(dA))return dA.length;if(ArrayBuffer.isView(dA)||Re(dA,ArrayBuffer))return dA.byteLength;if(typeof dA!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof dA);const J=dA.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&J===0)return 0;let EA=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return $A(dA).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return de(dA).length;default:if(EA)return _?-1:$A(dA).length;k=(""+k).toLowerCase(),EA=!0}}E.byteLength=Z;function x(dA,k,J){let _=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0,k>>>=0,J<=k))return"";for(dA||(dA="utf8");;)switch(dA){case"hex":return HA(this,k,J);case"utf8":case"utf-8":return FA(this,k,J);case"ascii":return zA(this,k,J);case"latin1":case"binary":return mA(this,k,J);case"base64":return DA(this,k,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pA(this,k,J);default:if(_)throw new TypeError("Unknown encoding: "+dA);dA=(dA+"").toLowerCase(),_=!0}}E.prototype._isBuffer=!0;function X(dA,k,J){const _=dA[k];dA[k]=dA[J],dA[J]=_}E.prototype.swap16=function(){const k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<k;J+=2)X(this,J,J+1);return this},E.prototype.swap32=function(){const k=this.length;if(k%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<k;J+=4)X(this,J,J+3),X(this,J+1,J+2);return this},E.prototype.swap64=function(){const k=this.length;if(k%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<k;J+=8)X(this,J,J+7),X(this,J+1,J+6),X(this,J+2,J+5),X(this,J+3,J+4);return this},E.prototype.toString=function(){const k=this.length;return k===0?"":arguments.length===0?FA(this,0,k):x.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(k){if(!E.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k?!0:E.compare(this,k)===0},E.prototype.inspect=function(){let k="";const J=r.INSPECT_MAX_BYTES;return k=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(k+=" ... "),"<Buffer "+k+">"},f&&(E.prototype[f]=E.prototype.inspect),E.prototype.compare=function(k,J,_,EA,K){if(Re(k,Uint8Array)&&(k=E.from(k,k.offset,k.byteLength)),!E.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(J===void 0&&(J=0),_===void 0&&(_=k?k.length:0),EA===void 0&&(EA=0),K===void 0&&(K=this.length),J<0||_>k.length||EA<0||K>this.length)throw new RangeError("out of range index");if(EA>=K&&J>=_)return 0;if(EA>=K)return-1;if(J>=_)return 1;if(J>>>=0,_>>>=0,EA>>>=0,K>>>=0,this===k)return 0;let UA=K-EA,se=_-J;const Me=Math.min(UA,se),te=this.slice(EA,K),Qe=k.slice(J,_);for(let vA=0;vA<Me;++vA)if(te[vA]!==Qe[vA]){UA=te[vA],se=Qe[vA];break}return UA<se?-1:se<UA?1:0};function B(dA,k,J,_,EA){if(dA.length===0)return-1;if(typeof J=="string"?(_=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,ze(J)&&(J=EA?0:dA.length-1),J<0&&(J=dA.length+J),J>=dA.length){if(EA)return-1;J=dA.length-1}else if(J<0)if(EA)J=0;else return-1;if(typeof k=="string"&&(k=E.from(k,_)),E.isBuffer(k))return k.length===0?-1:v(dA,k,J,_,EA);if(typeof k=="number")return k=k&255,typeof Uint8Array.prototype.indexOf=="function"?EA?Uint8Array.prototype.indexOf.call(dA,k,J):Uint8Array.prototype.lastIndexOf.call(dA,k,J):v(dA,[k],J,_,EA);throw new TypeError("val must be string, number or Buffer")}function v(dA,k,J,_,EA){let K=1,UA=dA.length,se=k.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(dA.length<2||k.length<2)return-1;K=2,UA/=2,se/=2,J/=2}function Me(Qe,vA){return K===1?Qe[vA]:Qe.readUInt16BE(vA*K)}let te;if(EA){let Qe=-1;for(te=J;te<UA;te++)if(Me(dA,te)===Me(k,Qe===-1?0:te-Qe)){if(Qe===-1&&(Qe=te),te-Qe+1===se)return Qe*K}else Qe!==-1&&(te-=te-Qe),Qe=-1}else for(J+se>UA&&(J=UA-se),te=J;te>=0;te--){let Qe=!0;for(let vA=0;vA<se;vA++)if(Me(dA,te+vA)!==Me(k,vA)){Qe=!1;break}if(Qe)return te}return-1}E.prototype.includes=function(k,J,_){return this.indexOf(k,J,_)!==-1},E.prototype.indexOf=function(k,J,_){return B(this,k,J,_,!0)},E.prototype.lastIndexOf=function(k,J,_){return B(this,k,J,_,!1)};function bA(dA,k,J,_){J=Number(J)||0;const EA=dA.length-J;_?(_=Number(_),_>EA&&(_=EA)):_=EA;const K=k.length;_>K/2&&(_=K/2);let UA;for(UA=0;UA<_;++UA){const se=parseInt(k.substr(UA*2,2),16);if(ze(se))return UA;dA[J+UA]=se}return UA}function wA(dA,k,J,_){return Te($A(k,dA.length-J),dA,J,_)}function tA(dA,k,J,_){return Te(ZA(k),dA,J,_)}function nA(dA,k,J,_){return Te(de(k),dA,J,_)}function KA(dA,k,J,_){return Te(kA(k,dA.length-J),dA,J,_)}E.prototype.write=function(k,J,_,EA){if(J===void 0)EA="utf8",_=this.length,J=0;else if(_===void 0&&typeof J=="string")EA=J,_=this.length,J=0;else if(isFinite(J))J=J>>>0,isFinite(_)?(_=_>>>0,EA===void 0&&(EA="utf8")):(EA=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const K=this.length-J;if((_===void 0||_>K)&&(_=K),k.length>0&&(_<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");EA||(EA="utf8");let UA=!1;for(;;)switch(EA){case"hex":return bA(this,k,J,_);case"utf8":case"utf-8":return wA(this,k,J,_);case"ascii":case"latin1":case"binary":return tA(this,k,J,_);case"base64":return nA(this,k,J,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return KA(this,k,J,_);default:if(UA)throw new TypeError("Unknown encoding: "+EA);EA=(""+EA).toLowerCase(),UA=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function DA(dA,k,J){return k===0&&J===dA.length?A.fromByteArray(dA):A.fromByteArray(dA.slice(k,J))}function FA(dA,k,J){J=Math.min(dA.length,J);const _=[];let EA=k;for(;EA<J;){const K=dA[EA];let UA=null,se=K>239?4:K>223?3:K>191?2:1;if(EA+se<=J){let Me,te,Qe,vA;switch(se){case 1:K<128&&(UA=K);break;case 2:Me=dA[EA+1],(Me&192)===128&&(vA=(K&31)<<6|Me&63,vA>127&&(UA=vA));break;case 3:Me=dA[EA+1],te=dA[EA+2],(Me&192)===128&&(te&192)===128&&(vA=(K&15)<<12|(Me&63)<<6|te&63,vA>2047&&(vA<55296||vA>57343)&&(UA=vA));break;case 4:Me=dA[EA+1],te=dA[EA+2],Qe=dA[EA+3],(Me&192)===128&&(te&192)===128&&(Qe&192)===128&&(vA=(K&15)<<18|(Me&63)<<12|(te&63)<<6|Qe&63,vA>65535&&vA<1114112&&(UA=vA))}}UA===null?(UA=65533,se=1):UA>65535&&(UA-=65536,_.push(UA>>>10&1023|55296),UA=56320|UA&1023),_.push(UA),EA+=se}return yA(_)}const cA=4096;function yA(dA){const k=dA.length;if(k<=cA)return String.fromCharCode.apply(String,dA);let J="",_=0;for(;_<k;)J+=String.fromCharCode.apply(String,dA.slice(_,_+=cA));return J}function zA(dA,k,J){let _="";J=Math.min(dA.length,J);for(let EA=k;EA<J;++EA)_+=String.fromCharCode(dA[EA]&127);return _}function mA(dA,k,J){let _="";J=Math.min(dA.length,J);for(let EA=k;EA<J;++EA)_+=String.fromCharCode(dA[EA]);return _}function HA(dA,k,J){const _=dA.length;(!k||k<0)&&(k=0),(!J||J<0||J>_)&&(J=_);let EA="";for(let K=k;K<J;++K)EA+=We[dA[K]];return EA}function pA(dA,k,J){const _=dA.slice(k,J);let EA="";for(let K=0;K<_.length-1;K+=2)EA+=String.fromCharCode(_[K]+_[K+1]*256);return EA}E.prototype.slice=function(k,J){const _=this.length;k=~~k,J=J===void 0?_:~~J,k<0?(k+=_,k<0&&(k=0)):k>_&&(k=_),J<0?(J+=_,J<0&&(J=0)):J>_&&(J=_),J<k&&(J=k);const EA=this.subarray(k,J);return Object.setPrototypeOf(EA,E.prototype),EA};function NA(dA,k,J){if(dA%1!==0||dA<0)throw new RangeError("offset is not uint");if(dA+k>J)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUintLE=E.prototype.readUIntLE=function(k,J,_){k=k>>>0,J=J>>>0,_||NA(k,J,this.length);let EA=this[k],K=1,UA=0;for(;++UA<J&&(K*=256);)EA+=this[k+UA]*K;return EA},E.prototype.readUintBE=E.prototype.readUIntBE=function(k,J,_){k=k>>>0,J=J>>>0,_||NA(k,J,this.length);let EA=this[k+--J],K=1;for(;J>0&&(K*=256);)EA+=this[k+--J]*K;return EA},E.prototype.readUint8=E.prototype.readUInt8=function(k,J){return k=k>>>0,J||NA(k,1,this.length),this[k]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(k,J){return k=k>>>0,J||NA(k,2,this.length),this[k]|this[k+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(k,J){return k=k>>>0,J||NA(k,2,this.length),this[k]<<8|this[k+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(k,J){return k=k>>>0,J||NA(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(k,J){return k=k>>>0,J||NA(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},E.prototype.readBigUInt64LE=ee(function(k){k=k>>>0,m(k,"offset");const J=this[k],_=this[k+7];(J===void 0||_===void 0)&&y(k,this.length-8);const EA=J+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24,K=this[++k]+this[++k]*2**8+this[++k]*2**16+_*2**24;return BigInt(EA)+(BigInt(K)<<BigInt(32))}),E.prototype.readBigUInt64BE=ee(function(k){k=k>>>0,m(k,"offset");const J=this[k],_=this[k+7];(J===void 0||_===void 0)&&y(k,this.length-8);const EA=J*2**24+this[++k]*2**16+this[++k]*2**8+this[++k],K=this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+_;return(BigInt(EA)<<BigInt(32))+BigInt(K)}),E.prototype.readIntLE=function(k,J,_){k=k>>>0,J=J>>>0,_||NA(k,J,this.length);let EA=this[k],K=1,UA=0;for(;++UA<J&&(K*=256);)EA+=this[k+UA]*K;return K*=128,EA>=K&&(EA-=Math.pow(2,8*J)),EA},E.prototype.readIntBE=function(k,J,_){k=k>>>0,J=J>>>0,_||NA(k,J,this.length);let EA=J,K=1,UA=this[k+--EA];for(;EA>0&&(K*=256);)UA+=this[k+--EA]*K;return K*=128,UA>=K&&(UA-=Math.pow(2,8*J)),UA},E.prototype.readInt8=function(k,J){return k=k>>>0,J||NA(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},E.prototype.readInt16LE=function(k,J){k=k>>>0,J||NA(k,2,this.length);const _=this[k]|this[k+1]<<8;return _&32768?_|4294901760:_},E.prototype.readInt16BE=function(k,J){k=k>>>0,J||NA(k,2,this.length);const _=this[k+1]|this[k]<<8;return _&32768?_|4294901760:_},E.prototype.readInt32LE=function(k,J){return k=k>>>0,J||NA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},E.prototype.readInt32BE=function(k,J){return k=k>>>0,J||NA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},E.prototype.readBigInt64LE=ee(function(k){k=k>>>0,m(k,"offset");const J=this[k],_=this[k+7];(J===void 0||_===void 0)&&y(k,this.length-8);const EA=this[k+4]+this[k+5]*2**8+this[k+6]*2**16+(_<<24);return(BigInt(EA)<<BigInt(32))+BigInt(J+this[++k]*256+this[++k]*65536+this[++k]*16777216)}),E.prototype.readBigInt64BE=ee(function(k){k=k>>>0,m(k,"offset");const J=this[k],_=this[k+7];(J===void 0||_===void 0)&&y(k,this.length-8);const EA=(J<<24)+this[++k]*2**16+this[++k]*2**8+this[++k];return(BigInt(EA)<<BigInt(32))+BigInt(this[++k]*16777216+this[++k]*65536+this[++k]*256+_)}),E.prototype.readFloatLE=function(k,J){return k=k>>>0,J||NA(k,4,this.length),a.read(this,k,!0,23,4)},E.prototype.readFloatBE=function(k,J){return k=k>>>0,J||NA(k,4,this.length),a.read(this,k,!1,23,4)},E.prototype.readDoubleLE=function(k,J){return k=k>>>0,J||NA(k,8,this.length),a.read(this,k,!0,52,8)},E.prototype.readDoubleBE=function(k,J){return k=k>>>0,J||NA(k,8,this.length),a.read(this,k,!1,52,8)};function IA(dA,k,J,_,EA,K){if(!E.isBuffer(dA))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>EA||k<K)throw new RangeError('"value" argument is out of bounds');if(J+_>dA.length)throw new RangeError("Index out of range")}E.prototype.writeUintLE=E.prototype.writeUIntLE=function(k,J,_,EA){if(k=+k,J=J>>>0,_=_>>>0,!EA){const se=Math.pow(2,8*_)-1;IA(this,k,J,_,se,0)}let K=1,UA=0;for(this[J]=k&255;++UA<_&&(K*=256);)this[J+UA]=k/K&255;return J+_},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(k,J,_,EA){if(k=+k,J=J>>>0,_=_>>>0,!EA){const se=Math.pow(2,8*_)-1;IA(this,k,J,_,se,0)}let K=_-1,UA=1;for(this[J+K]=k&255;--K>=0&&(UA*=256);)this[J+K]=k/UA&255;return J+_},E.prototype.writeUint8=E.prototype.writeUInt8=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,1,255,0),this[J]=k&255,J+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,2,65535,0),this[J]=k&255,this[J+1]=k>>>8,J+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,2,65535,0),this[J]=k>>>8,this[J+1]=k&255,J+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,4,4294967295,0),this[J+3]=k>>>24,this[J+2]=k>>>16,this[J+1]=k>>>8,this[J]=k&255,J+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,4,4294967295,0),this[J]=k>>>24,this[J+1]=k>>>16,this[J+2]=k>>>8,this[J+3]=k&255,J+4};function BA(dA,k,J,_,EA){MA(k,_,EA,dA,J,7);let K=Number(k&BigInt(4294967295));dA[J++]=K,K=K>>8,dA[J++]=K,K=K>>8,dA[J++]=K,K=K>>8,dA[J++]=K;let UA=Number(k>>BigInt(32)&BigInt(4294967295));return dA[J++]=UA,UA=UA>>8,dA[J++]=UA,UA=UA>>8,dA[J++]=UA,UA=UA>>8,dA[J++]=UA,J}function hA(dA,k,J,_,EA){MA(k,_,EA,dA,J,7);let K=Number(k&BigInt(4294967295));dA[J+7]=K,K=K>>8,dA[J+6]=K,K=K>>8,dA[J+5]=K,K=K>>8,dA[J+4]=K;let UA=Number(k>>BigInt(32)&BigInt(4294967295));return dA[J+3]=UA,UA=UA>>8,dA[J+2]=UA,UA=UA>>8,dA[J+1]=UA,UA=UA>>8,dA[J]=UA,J+8}E.prototype.writeBigUInt64LE=ee(function(k,J){return J===void 0&&(J=0),BA(this,k,J,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeBigUInt64BE=ee(function(k,J){return J===void 0&&(J=0),hA(this,k,J,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeIntLE=function(k,J,_,EA){if(k=+k,J=J>>>0,!EA){const Me=Math.pow(2,8*_-1);IA(this,k,J,_,Me-1,-Me)}let K=0,UA=1,se=0;for(this[J]=k&255;++K<_&&(UA*=256);)k<0&&se===0&&this[J+K-1]!==0&&(se=1),this[J+K]=(k/UA>>0)-se&255;return J+_},E.prototype.writeIntBE=function(k,J,_,EA){if(k=+k,J=J>>>0,!EA){const Me=Math.pow(2,8*_-1);IA(this,k,J,_,Me-1,-Me)}let K=_-1,UA=1,se=0;for(this[J+K]=k&255;--K>=0&&(UA*=256);)k<0&&se===0&&this[J+K+1]!==0&&(se=1),this[J+K]=(k/UA>>0)-se&255;return J+_},E.prototype.writeInt8=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,1,127,-128),k<0&&(k=255+k+1),this[J]=k&255,J+1},E.prototype.writeInt16LE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,2,32767,-32768),this[J]=k&255,this[J+1]=k>>>8,J+2},E.prototype.writeInt16BE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,2,32767,-32768),this[J]=k>>>8,this[J+1]=k&255,J+2},E.prototype.writeInt32LE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,4,2147483647,-2147483648),this[J]=k&255,this[J+1]=k>>>8,this[J+2]=k>>>16,this[J+3]=k>>>24,J+4},E.prototype.writeInt32BE=function(k,J,_){return k=+k,J=J>>>0,_||IA(this,k,J,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[J]=k>>>24,this[J+1]=k>>>16,this[J+2]=k>>>8,this[J+3]=k&255,J+4},E.prototype.writeBigInt64LE=ee(function(k,J){return J===void 0&&(J=0),BA(this,k,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeBigInt64BE=ee(function(k,J){return J===void 0&&(J=0),hA(this,k,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function R(dA,k,J,_,EA,K){if(J+_>dA.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function C(dA,k,J,_,EA){return k=+k,J=J>>>0,EA||R(dA,k,J,4),a.write(dA,k,J,_,23,4),J+4}E.prototype.writeFloatLE=function(k,J,_){return C(this,k,J,!0,_)},E.prototype.writeFloatBE=function(k,J,_){return C(this,k,J,!1,_)};function lA(dA,k,J,_,EA){return k=+k,J=J>>>0,EA||R(dA,k,J,8),a.write(dA,k,J,_,52,8),J+8}E.prototype.writeDoubleLE=function(k,J,_){return lA(this,k,J,!0,_)},E.prototype.writeDoubleBE=function(k,J,_){return lA(this,k,J,!1,_)},E.prototype.copy=function(k,J,_,EA){if(!E.isBuffer(k))throw new TypeError("argument should be a Buffer");if(_||(_=0),!EA&&EA!==0&&(EA=this.length),J>=k.length&&(J=k.length),J||(J=0),EA>0&&EA<_&&(EA=_),EA===_||k.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(EA<0)throw new RangeError("sourceEnd out of bounds");EA>this.length&&(EA=this.length),k.length-J<EA-_&&(EA=k.length-J+_);const K=EA-_;return this===k&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(J,_,EA):Uint8Array.prototype.set.call(k,this.subarray(_,EA),J),K},E.prototype.fill=function(k,J,_,EA){if(typeof k=="string"){if(typeof J=="string"?(EA=J,J=0,_=this.length):typeof _=="string"&&(EA=_,_=this.length),EA!==void 0&&typeof EA!="string")throw new TypeError("encoding must be a string");if(typeof EA=="string"&&!E.isEncoding(EA))throw new TypeError("Unknown encoding: "+EA);if(k.length===1){const UA=k.charCodeAt(0);(EA==="utf8"&&UA<128||EA==="latin1")&&(k=UA)}}else typeof k=="number"?k=k&255:typeof k=="boolean"&&(k=Number(k));if(J<0||this.length<J||this.length<_)throw new RangeError("Out of range index");if(_<=J)return this;J=J>>>0,_=_===void 0?this.length:_>>>0,k||(k=0);let K;if(typeof k=="number")for(K=J;K<_;++K)this[K]=k;else{const UA=E.isBuffer(k)?k:E.from(k,EA),se=UA.length;if(se===0)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(K=0;K<_-J;++K)this[K+J]=UA[K%se]}return this};const rA={};function p(dA,k,J){rA[dA]=class extends J{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${dA}]`,this.stack,delete this.name}get code(){return dA}set code(EA){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:EA,writable:!0})}toString(){return`${this.name} [${dA}]: ${this.message}`}}}p("ERR_BUFFER_OUT_OF_BOUNDS",function(dA){return dA?`${dA} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),p("ERR_INVALID_ARG_TYPE",function(dA,k){return`The "${dA}" argument must be of type number. Received type ${typeof k}`},TypeError),p("ERR_OUT_OF_RANGE",function(dA,k,J){let _=`The value of "${dA}" is out of range.`,EA=J;return Number.isInteger(J)&&Math.abs(J)>4294967296?EA=G(String(J)):typeof J=="bigint"&&(EA=String(J),(J>BigInt(2)**BigInt(32)||J<-(BigInt(2)**BigInt(32)))&&(EA=G(EA)),EA+="n"),_+=` It must be ${k}. Received ${EA}`,_},RangeError);function G(dA){let k="",J=dA.length;const _=dA[0]==="-"?1:0;for(;J>=_+4;J-=3)k=`_${dA.slice(J-3,J)}${k}`;return`${dA.slice(0,J)}${k}`}function iA(dA,k,J){m(k,"offset"),(dA[k]===void 0||dA[k+J]===void 0)&&y(k,dA.length-(J+1))}function MA(dA,k,J,_,EA,K){if(dA>J||dA<k){const UA=typeof k=="bigint"?"n":"";let se;throw k===0||k===BigInt(0)?se=`>= 0${UA} and < 2${UA} ** ${(K+1)*8}${UA}`:se=`>= -(2${UA} ** ${(K+1)*8-1}${UA}) and < 2 ** ${(K+1)*8-1}${UA}`,new rA.ERR_OUT_OF_RANGE("value",se,dA)}iA(_,EA,K)}function m(dA,k){if(typeof dA!="number")throw new rA.ERR_INVALID_ARG_TYPE(k,"number",dA)}function y(dA,k,J){throw Math.floor(dA)!==dA?(m(dA,J),new rA.ERR_OUT_OF_RANGE("offset","an integer",dA)):k<0?new rA.ERR_BUFFER_OUT_OF_BOUNDS:new rA.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${k}`,dA)}const uA=/[^+/0-9A-Za-z-_]/g;function CA(dA){if(dA=dA.split("=")[0],dA=dA.trim().replace(uA,""),dA.length<2)return"";for(;dA.length%4!==0;)dA=dA+"=";return dA}function $A(dA,k){k=k||1/0;let J;const _=dA.length;let EA=null;const K=[];for(let UA=0;UA<_;++UA){if(J=dA.charCodeAt(UA),J>55295&&J<57344){if(!EA){if(J>56319){(k-=3)>-1&&K.push(239,191,189);continue}else if(UA+1===_){(k-=3)>-1&&K.push(239,191,189);continue}EA=J;continue}if(J<56320){(k-=3)>-1&&K.push(239,191,189),EA=J;continue}J=(EA-55296<<10|J-56320)+65536}else EA&&(k-=3)>-1&&K.push(239,191,189);if(EA=null,J<128){if((k-=1)<0)break;K.push(J)}else if(J<2048){if((k-=2)<0)break;K.push(J>>6|192,J&63|128)}else if(J<65536){if((k-=3)<0)break;K.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if((k-=4)<0)break;K.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return K}function ZA(dA){const k=[];for(let J=0;J<dA.length;++J)k.push(dA.charCodeAt(J)&255);return k}function kA(dA,k){let J,_,EA;const K=[];for(let UA=0;UA<dA.length&&!((k-=2)<0);++UA)J=dA.charCodeAt(UA),_=J>>8,EA=J%256,K.push(EA),K.push(_);return K}function de(dA){return A.toByteArray(CA(dA))}function Te(dA,k,J,_){let EA;for(EA=0;EA<_&&!(EA+J>=k.length||EA>=dA.length);++EA)k[EA+J]=dA[EA];return EA}function Re(dA,k){return dA instanceof k||dA!=null&&dA.constructor!=null&&dA.constructor.name!=null&&dA.constructor.name===k.name}function ze(dA){return dA!==dA}const We=function(){const dA="0123456789abcdef",k=new Array(256);for(let J=0;J<16;++J){const _=J*16;for(let EA=0;EA<16;++EA)k[_+EA]=dA[J]+dA[EA]}return k}();function ee(dA){return typeof BigInt>"u"?ge:dA}function ge(){throw new Error("BigInt not supported")}},4406(o){var r=1,t=0;class A{constructor(f){this.stateTable=f.stateTable,this.accepting=f.accepting,this.tags=f.tags}match(f){var h=this;return{*[Symbol.iterator](){for(var Q=r,d=null,E=null,D=null,Y=0;Y<f.length;Y++){var z=f[Y];D=Q,Q=h.stateTable[Q][z],Q===t&&(d!=null&&E!=null&&E>=d&&(yield[d,E,h.tags[D]]),Q=h.stateTable[r][z],d=null),Q!==t&&d==null&&(d=Y),h.accepting[Q]&&(E=Y),Q===t&&(Q=r)}d!=null&&E!=null&&E>=d&&(yield[d,E,h.tags[Q]])}}}apply(f,h){for(var[Q,d,E]of this.match(f))for(var D of E)typeof h[D]=="function"&&h[D](Q,d,f.slice(Q,d+1))}}o.exports=A},3915(o,r,t){t(8376),t(6401),t(2017);var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(a){var f=typeof Uint8Array<"u"?Uint8Array:Array,h=43,Q=47,d=48,E=97,D=65,Y=45,z=95;function L(N){var O=N.charCodeAt(0);if(O===h||O===Y)return 62;if(O===Q||O===z)return 63;if(O<d)return-1;if(O<d+10)return O-d+26+26;if(O<D+26)return O-D;if(O<E+26)return O-E+26}function T(N){var O,gA,oA,q,Z,x;if(N.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=N.length;Z=N.charAt(X-2)==="="?2:N.charAt(X-1)==="="?1:0,x=new f(N.length*3/4-Z),oA=Z>0?N.length-4:N.length;var B=0;function v(bA){x[B++]=bA}for(O=0,gA=0;O<oA;O+=4,gA+=3)q=L(N.charAt(O))<<18|L(N.charAt(O+1))<<12|L(N.charAt(O+2))<<6|L(N.charAt(O+3)),v((q&16711680)>>16),v((q&65280)>>8),v(q&255);return Z===2?(q=L(N.charAt(O))<<2|L(N.charAt(O+1))>>4,v(q&255)):Z===1&&(q=L(N.charAt(O))<<10|L(N.charAt(O+1))<<4|L(N.charAt(O+2))>>2,v(q>>8&255),v(q&255)),x}function b(N){var O,gA=N.length%3,oA="",q,Z;function x(B){return A.charAt(B)}function X(B){return x(B>>18&63)+x(B>>12&63)+x(B>>6&63)+x(B&63)}for(O=0,Z=N.length-gA;O<Z;O+=3)q=(N[O]<<16)+(N[O+1]<<8)+N[O+2],oA+=X(q);switch(gA){case 1:q=N[N.length-1],oA+=x(q>>2),oA+=x(q<<4&63),oA+="==";break;case 2:q=(N[N.length-2]<<8)+N[N.length-1],oA+=x(q>>10),oA+=x(q>>4&63),oA+=x(q<<2&63),oA+="=";break}return oA}a.toByteArray=T,a.fromByteArray=b})(r)},336(o,r,t){var A=t(783).Buffer;t(187);const a=t(2416),f=t(6729);o.exports=class _a{static decode(Q,d){return a.readFile(Q,function(E,D){return new _a(D).decode(z=>d(z))})}static load(Q){const d=a.readFileSync(Q);return new _a(d)}constructor(Q){let d;for(this.data=Q,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){const T=this.readUInt32();let b="";for(d=0;d<4;d++)b+=String.fromCharCode(this.data[this.pos++]);switch(b){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(T);break;case"IDAT":for(d=0;d<T;d++)this.imgData.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:this.transparency.indexed=this.read(T);var E=255-this.transparency.indexed.length;if(E>0)for(d=0;d<E;d++)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(T)[0];break;case 2:this.transparency.rgb=this.read(T);break}break;case"tEXt":var D=this.read(T),Y=D.indexOf(0),z=String.fromCharCode.apply(String,D.slice(0,Y));this.text[z]=String.fromCharCode.apply(String,D.slice(Y+1));break;case"IEND":switch(this.colorType){case 0:case 3:case 4:this.colors=1;break;case 2:case 6:this.colors=3;break}this.hasAlphaChannel=[4,6].includes(this.colorType);var L=this.colors+(this.hasAlphaChannel?1:0);switch(this.pixelBitlength=this.bits*L,this.colors){case 1:this.colorSpace="DeviceGray";break;case 3:this.colorSpace="DeviceRGB";break}this.imgData=new A(this.imgData);return;default:this.pos+=T}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}read(Q){const d=new Array(Q);for(let E=0;E<Q;E++)d[E]=this.data[this.pos++];return d}readUInt32(){const Q=this.data[this.pos++]<<24,d=this.data[this.pos++]<<16,E=this.data[this.pos++]<<8,D=this.data[this.pos++];return Q|d|E|D}readUInt16(){const Q=this.data[this.pos++]<<8,d=this.data[this.pos++];return Q|d}decodePixels(Q){return f.inflate(this.imgData,(d,E)=>{if(d)throw d;const{width:D,height:Y}=this,z=this.pixelBitlength/8,L=new A(D*Y*z),{length:T}=E;let b=0;function N(O,gA,oA,q,Z){Z===void 0&&(Z=!1);const x=Math.ceil((D-O)/oA),X=Math.ceil((Y-gA)/q),B=z*x,v=Z?L:new A(B*X);let bA=0,wA=0;for(;bA<X&&b<T;){var tA,nA,KA,DA,FA;switch(E[b++]){case 0:for(KA=0;KA<B;KA++)v[wA++]=E[b++];break;case 1:for(KA=0;KA<B;KA++)tA=E[b++],DA=KA<z?0:v[wA-z],v[wA++]=(tA+DA)%256;break;case 2:for(KA=0;KA<B;KA++)tA=E[b++],nA=(KA-KA%z)/z,FA=bA&&v[(bA-1)*B+nA*z+KA%z],v[wA++]=(FA+tA)%256;break;case 3:for(KA=0;KA<B;KA++)tA=E[b++],nA=(KA-KA%z)/z,DA=KA<z?0:v[wA-z],FA=bA&&v[(bA-1)*B+nA*z+KA%z],v[wA++]=(tA+Math.floor((DA+FA)/2))%256;break;case 4:for(KA=0;KA<B;KA++){var cA,yA;tA=E[b++],nA=(KA-KA%z)/z,DA=KA<z?0:v[wA-z],bA===0?FA=yA=0:(FA=v[(bA-1)*B+nA*z+KA%z],yA=nA&&v[(bA-1)*B+(nA-1)*z+KA%z]);const zA=DA+FA-yA,mA=Math.abs(zA-DA),HA=Math.abs(zA-FA),pA=Math.abs(zA-yA);mA<=HA&&mA<=pA?cA=DA:HA<=pA?cA=FA:cA=yA,v[wA++]=(tA+cA)%256}break;default:throw new Error(`Invalid filter algorithm: ${E[b-1]}`)}if(!Z){let zA=((gA+bA*q)*D+O)*z,mA=bA*B;for(KA=0;KA<x;KA++){for(let HA=0;HA<z;HA++)L[zA++]=v[mA++];zA+=(oA-1)*z}}bA++}}return this.interlaceMethod===1?(N(0,0,8,8),N(4,0,8,8),N(0,4,4,8),N(2,0,4,4),N(0,2,2,4),N(1,0,2,2),N(0,1,1,2)):N(0,0,1,1,!0),Q(L)})}decodePalette(){const{palette:Q}=this,{length:d}=Q,E=this.transparency.indexed||[],D=new A(E.length+d);let Y=0,z=0;for(let T=0;T<d;T+=3){var L;D[Y++]=Q[T],D[Y++]=Q[T+1],D[Y++]=Q[T+2],D[Y++]=(L=E[z++])!=null?L:255}return D}copyToImageData(Q,d){let E,D,{colors:Y}=this,z=null,L=this.hasAlphaChannel;this.palette.length&&(z=this._decodedPalette||(this._decodedPalette=this.decodePalette()),Y=4,L=!0);const T=Q.data||Q,{length:b}=T,N=z||d;let O=E=0;if(Y===1)for(;O<b;){D=z?d[O/4]*4:E;const gA=N[D++];T[O++]=gA,T[O++]=gA,T[O++]=gA,T[O++]=L?N[D++]:255,E=D}else for(;O<b;)D=z?d[O/4]*4:E,T[O++]=N[D++],T[O++]=N[D++],T[O++]=N[D++],T[O++]=L?N[D++]:255,E=D}decode(Q){const d=new A(this.width*this.height*4);return this.decodePixels(E=>(this.copyToImageData(d,E),Q(d)))}}},182(o,r,t){function A(O,gA){var oA=Object.keys(O);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(O);gA&&(q=q.filter(function(Z){return Object.getOwnPropertyDescriptor(O,Z).enumerable})),oA.push.apply(oA,q)}return oA}function a(O){for(var gA=1;gA<arguments.length;gA++){var oA=arguments[gA]!=null?arguments[gA]:{};gA%2?A(Object(oA),!0).forEach(function(q){f(O,q,oA[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(oA)):A(Object(oA)).forEach(function(q){Object.defineProperty(O,q,Object.getOwnPropertyDescriptor(oA,q))})}return O}function f(O,gA,oA){return gA=E(gA),gA in O?Object.defineProperty(O,gA,{value:oA,enumerable:!0,configurable:!0,writable:!0}):O[gA]=oA,O}function h(O,gA){if(!(O instanceof gA))throw new TypeError("Cannot call a class as a function")}function Q(O,gA){for(var oA=0;oA<gA.length;oA++){var q=gA[oA];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(O,E(q.key),q)}}function d(O,gA,oA){return gA&&Q(O.prototype,gA),Object.defineProperty(O,"prototype",{writable:!1}),O}function E(O){var gA=D(O,"string");return typeof gA=="symbol"?gA:String(gA)}function D(O,gA){if(typeof O!="object"||O===null)return O;var oA=O[Symbol.toPrimitive];if(oA!==void 0){var q=oA.call(O,gA);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}var Y=t(783),z=Y.Buffer,L=t(3779),T=L.inspect,b=T&&T.custom||"inspect";function N(O,gA,oA){z.prototype.copy.call(O,gA,oA)}o.exports=function(){function O(){h(this,O),this.head=null,this.tail=null,this.length=0}return d(O,[{key:"push",value:function(oA){var q={data:oA,next:null};this.length>0?this.tail.next=q:this.head=q,this.tail=q,++this.length}},{key:"unshift",value:function(oA){var q={data:oA,next:this.head};this.length===0&&(this.tail=q),this.head=q,++this.length}},{key:"shift",value:function(){if(this.length!==0){var oA=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,oA}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(oA){if(this.length===0)return"";for(var q=this.head,Z=""+q.data;q=q.next;)Z+=oA+q.data;return Z}},{key:"concat",value:function(oA){if(this.length===0)return z.alloc(0);for(var q=z.allocUnsafe(oA>>>0),Z=this.head,x=0;Z;)N(Z.data,q,x),x+=Z.data.length,Z=Z.next;return q}},{key:"consume",value:function(oA,q){var Z;return oA<this.head.data.length?(Z=this.head.data.slice(0,oA),this.head.data=this.head.data.slice(oA)):oA===this.head.data.length?Z=this.shift():Z=q?this._getString(oA):this._getBuffer(oA),Z}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(oA){var q=this.head,Z=1,x=q.data;for(oA-=x.length;q=q.next;){var X=q.data,B=oA>X.length?X.length:oA;if(B===X.length?x+=X:x+=X.slice(0,oA),oA-=B,oA===0){B===X.length?(++Z,q.next?this.head=q.next:this.head=this.tail=null):(this.head=q,q.data=X.slice(B));break}++Z}return this.length-=Z,x}},{key:"_getBuffer",value:function(oA){var q=z.allocUnsafe(oA),Z=this.head,x=1;for(Z.data.copy(q),oA-=Z.data.length;Z=Z.next;){var X=Z.data,B=oA>X.length?X.length:oA;if(X.copy(q,q.length-oA,0,B),oA-=B,oA===0){B===X.length?(++x,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=X.slice(B));break}++x}return this.length-=x,q}},{key:b,value:function(oA,q){return T(this,a(a({},q),{},{depth:0,customInspect:!1}))}}]),O}()},5691(o,r,t){var A=t(783),a=A.Buffer;function f(Q,d){for(var E in Q)d[E]=Q[E]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?o.exports=A:(f(A,r),r.Buffer=h);function h(Q,d,E){return a(Q,d,E)}f(a,h),h.from=function(Q,d,E){if(typeof Q=="number")throw new TypeError("Argument must not be a number");return a(Q,d,E)},h.alloc=function(Q,d,E){if(typeof Q!="number")throw new TypeError("Argument must be a number");var D=a(Q);return d!==void 0?typeof E=="string"?D.fill(d,E):D.fill(d):D.fill(0),D},h.allocUnsafe=function(Q){if(typeof Q!="number")throw new TypeError("Argument must be a number");return a(Q)},h.allocUnsafeSlow=function(Q){if(typeof Q!="number")throw new TypeError("Argument must be a number");return A.SlowBuffer(Q)}},7571(o,r,t){t(8376),t(6401),t(2017);const A=t(3483),{swap32LE:a}=t(6016),f=11,h=5,Q=f-h,d=65536>>f,D=(1<<Q)-1,Y=2,L=(1<<h)-1,T=65536>>h,b=1024>>h,oA=T+b+32,q=1<<Y;class Z{constructor(X){const B=typeof X.readUInt32BE=="function"&&typeof X.slice=="function";if(B||X instanceof Uint8Array){let v;if(B)this.highStart=X.readUInt32LE(0),this.errorValue=X.readUInt32LE(4),v=X.readUInt32LE(8),X=X.slice(12);else{const bA=new DataView(X.buffer);this.highStart=bA.getUint32(0,!0),this.errorValue=bA.getUint32(4,!0),v=bA.getUint32(8,!0),X=X.subarray(12)}X=A(X,new Uint8Array(v)),X=A(X,new Uint8Array(v)),a(X),this.data=new Uint32Array(X.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=X)}get(X){let B;return X<0||X>1114111?this.errorValue:X<55296||X>56319&&X<=65535?(B=(this.data[X>>h]<<Y)+(X&L),this.data[B]):X<=65535?(B=(this.data[T+(X-55296>>h)]<<Y)+(X&L),this.data[B]):X<this.highStart?(B=this.data[oA-d+(X>>f)],B=this.data[B+(X>>h&D)],B=(B<<Y)+(X&L),this.data[B]):this.data[this.data.length-q]}}o.exports=Z},6016(o,r,t){t(8376),t(6401),t(2017);const A=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,a=(Q,d,E)=>{let D=Q[d];Q[d]=Q[E],Q[E]=D},f=Q=>{const d=Q.length;for(let E=0;E<d;E+=4)a(Q,E,E+3),a(Q,E+1,E+2)},h=Q=>{A&&f(Q)};o.exports={swap32LE:h}},5167(o,r,t){var A="/",a=t(783).Buffer;r.A=void 0,t(187),t(8376),t(6401),t(2017);var f=N(t(9760)),h=N(t(6729)),Q=t(3973),d=N(t(1632)),E=t(7785),D=t(2651),Y=b(t(1715)),z=t(4785),L=N(t(2532)),T=N(t(336));function b(M,c){if(typeof WeakMap=="function")var P=new WeakMap,F=new WeakMap;return(b=function(j,sA){if(!sA&&j&&j.__esModule)return j;var RA,XA,ae={__proto__:null,default:j};if(j===null||typeof j!="object"&&typeof j!="function")return ae;if(RA=sA?F:P){if(RA.has(j))return RA.get(j);RA.set(j,ae)}for(const Ie in j)Ie!=="default"&&{}.hasOwnProperty.call(j,Ie)&&((XA=(RA=Object.defineProperty)&&Object.getOwnPropertyDescriptor(j,Ie))&&(XA.get||XA.set)?RA(ae,Ie,XA):ae[Ie]=j[Ie]);return ae})(M,c)}function N(M){return M&&M.__esModule?M:{default:M}}var O=t(2416);class gA{toString(){throw new Error("Must be implemented by subclasses")}}class oA{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._items={},this.limits=typeof c.limits=="boolean"?c.limits:!0}add(c,P){return this._items[c]=P}get(c){return this._items[c]}toString(){const c=Object.keys(this._items).sort((F,j)=>this._compareKeys(F,j)),P=["<<"];if(this.limits&&c.length>1){const F=c[0],j=c[c.length-1];P.push(`  /Limits ${v.convert([this._dataForKey(F),this._dataForKey(j)])}`)}P.push(`  /${this._keysName()} [`);for(let F of c)P.push(`    ${v.convert(this._dataForKey(F))} ${v.convert(this._items[F])}`);return P.push("]"),P.push(">>"),P.join(`
`)}_compareKeys(){throw new Error("Must be implemented by subclasses")}_keysName(){throw new Error("Must be implemented by subclasses")}_dataForKey(){throw new Error("Must be implemented by subclasses")}}class q{constructor(c,P,F,j,sA,RA){this.id="CS"+Object.keys(c.spotColors).length,this.name=P,this.values=[F,j,sA,RA],this.ref=c.ref(["Separation",this.name,"DeviceCMYK",{Range:[0,1,0,1,0,1,0,1],C0:[0,0,0,0],C1:this.values.map(XA=>XA/100),FunctionType:2,Domain:[0,1],N:1}]),this.ref.end()}toString(){return`${this.ref.id} 0 R`}}const Z=(M,c)=>(Array(c+1).join("0")+M).slice(-c),x=/[\n\r\t\b\f()\\]/g,X={"\n":"\\n","\r":"\\r","	":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},B=function(M){const c=M.length;if(c&1)throw new Error("Buffer length must be even");for(let P=0,F=c-1;P<F;P+=2){const j=M[P];M[P]=M[P+1],M[P+1]=j}return M};class v{static convert(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof c=="string")return`/${c}`;if(c instanceof String){let F=c,j=!1;for(let RA=0,XA=F.length;RA<XA;RA++)if(F.charCodeAt(RA)>127){j=!0;break}let sA;return j?sA=B(a.from(`\uFEFF${F}`,"utf16le")):sA=a.from(F.valueOf(),"ascii"),P?F=P(sA).toString("binary"):F=sA.toString("binary"),F=F.replace(x,RA=>X[RA]),`(${F})`}else{if(a.isBuffer(c))return`<${c.toString("hex")}>`;if(c instanceof gA||c instanceof oA||c instanceof q)return c.toString();if(c instanceof Date){let F=`D:${Z(c.getUTCFullYear(),4)}`+Z(c.getUTCMonth()+1,2)+Z(c.getUTCDate(),2)+Z(c.getUTCHours(),2)+Z(c.getUTCMinutes(),2)+Z(c.getUTCSeconds(),2)+"Z";return P&&(F=P(a.from(F,"ascii")).toString("binary"),F=F.replace(x,j=>X[j])),`(${F})`}else{if(Array.isArray(c))return`[${c.map(j=>v.convert(j,P)).join(" ")}]`;if({}.toString.call(c)==="[object Object]"){const F=["<<"];for(let j in c){const sA=c[j];F.push(`/${j} ${v.convert(sA,P)}`)}return F.push(">>"),F.join(`
`)}else return typeof c=="number"?v.number(c):`${c}`}}}static number(c){if(c>-1e21&&c<1e21)return Math.round(c*1e6)/1e6;throw new Error(`unsupported number: ${c}`)}}class bA extends gA{constructor(c,P){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};super(),this.document=c,this.id=P,this.data=F,this.gen=0,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.buffer=[]}write(c){c instanceof Uint8Array||(c=a.from(c+`
`,"binary")),this.uncompressedLength+=c.length,this.data.Length==null&&(this.data.Length=0),this.buffer.push(c),this.data.Length+=c.length,this.compress&&(this.data.Filter="FlateDecode")}end(c){c&&this.write(c),this.finalize()}finalize(){this.offset=this.document._offset;const c=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=a.concat(this.buffer),this.compress&&(this.buffer=h.default.deflateSync(this.buffer)),c&&(this.buffer=c(this.buffer)),this.data.Length=this.buffer.length),this.document._write(`${this.id} ${this.gen} obj`),this.document._write(v.convert(this.data,c)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write(`
endstream`)),this.document._write("endobj"),this.document._refEnd(this)}toString(){return`${this.id} ${this.gen} R`}}const wA=new Float32Array(1),tA=new Uint32Array(wA.buffer);function nA(M){const c=Math.fround(M);return c<=M?c:(wA[0]=M,M<=0?tA[0]+=1:tA[0]-=1,wA[0])}function KA(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F=>F;return(M==null||typeof M=="object"&&Object.keys(M).length===0)&&(M=c),M==null||typeof M!="object"?M={top:M,right:M,bottom:M,left:M}:Array.isArray(M)&&(M.length===2?M={vertical:M[0],horizontal:M[1]}:M={top:M[0],right:M[1],bottom:M[2],left:M[3]}),("vertical"in M||"horizontal"in M)&&(M={top:M.vertical,right:M.horizontal,bottom:M.vertical,left:M.horizontal}),{top:P(M.top),right:P(M.right),bottom:P(M.bottom),left:P(M.left)}}const DA=1/10,FA=1/2.54,cA=1/96,yA=72,zA=12;function mA(M){return M===0?1:M===90?0:M===180?-1:M===270?0:Math.cos(M*Math.PI/180)}function HA(M){return M===0?0:M===90?1:M===180?0:M===270?-1:Math.sin(M*Math.PI/180)}const pA={top:72,left:72,bottom:72,right:72},NA={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};class IA{constructor(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.document=c,this._options=P,this.size=P.size||"letter",this.layout=P.layout||"portrait",this.userUnit=P.userUnit||1;const F=Array.isArray(this.size)?this.size:NA[this.size.toUpperCase()];this.width=F[this.layout==="portrait"?0:1],this.height=F[this.layout==="portrait"?1:0],this.content=this.document.ref(),P.font&&c.font(P.font,P.fontFamily),P.fontSize&&c.fontSize(P.fontSize),this.margins=KA(P.margin??P.margins,pA,j=>c.sizeToPoint(j,0,this)),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources,UserUnit:this.userUnit}),this.markings=[]}get fonts(){const c=this.resources.data;return c.Font!=null?c.Font:c.Font={}}get xobjects(){const c=this.resources.data;return c.XObject!=null?c.XObject:c.XObject={}}get ext_gstates(){const c=this.resources.data;return c.ExtGState!=null?c.ExtGState:c.ExtGState={}}get patterns(){const c=this.resources.data;return c.Pattern!=null?c.Pattern:c.Pattern={}}get colorSpaces(){const c=this.resources.data;return c.ColorSpace||(c.ColorSpace={})}get annotations(){const c=this.dictionary.data;return c.Annots!=null?c.Annots:c.Annots=[]}get structParentTreeKey(){const c=this.dictionary.data;return c.StructParents!=null?c.StructParents:c.StructParents=this.document.createStructParentTreeNextKey()}get contentWidth(){return this.width-this.margins.left-this.margins.right}get contentHeight(){return this.height-this.margins.top-this.margins.bottom}maxY(){return this.height-this.margins.bottom}write(c){return this.content.write(c)}_setTabOrder(){!this.dictionary.Tabs&&this.document.hasMarkInfoDictionary()&&(this.dictionary.data.Tabs="S")}end(){this._setTabOrder(),this.dictionary.end(),this.resources.data.ColorSpace=this.resources.data.ColorSpace||{};for(let c of Object.values(this.document.spotColors))this.resources.data.ColorSpace[c.id]=c;return this.resources.end(),this.content.end()}}class BA extends oA{_compareKeys(c,P){return c.localeCompare(P)}_keysName(){return"Names"}_dataForKey(c){return new String(c)}}function hA(M){return new Uint8Array(d.default.arrayBuffer(M))}function R(M){return(0,d.default)(M)}function C(M){return(0,E.sha256)(M)}function lA(M,c,P){let F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return(0,D.cbc)(c,P,{disablePadding:!F}).encrypt(M)}function rA(M,c){return(0,D.ecb)(c,{disablePadding:!0}).encrypt(M)}function p(M,c){const P=new Uint8Array(256);for(let sA=0;sA<256;sA++)P[sA]=sA;let F=0;for(let sA=0;sA<256;sA++)F=F+P[sA]+c[sA%c.length]&255,[P[sA],P[F]]=[P[F],P[sA]];const j=new Uint8Array(M.length);for(let sA=0,RA=0,XA=0;XA<M.length;XA++)sA=sA+1&255,RA=RA+P[sA]&255,[P[sA],P[RA]]=[P[RA],P[sA]],j[XA]=M[XA]^P[P[sA]+P[RA]&255];return j}function G(M){var P;const c=new Uint8Array(M);return(P=globalThis.crypto)!=null&&P.getRandomValues?globalThis.crypto.getRandomValues(c):t(5470).randomFillSync(c),c}function iA(M,c){if(M<c[0])return!1;let P=0,F=c.length/2;for(;P<=F;){const j=Math.floor((P+F)/2),sA=j*2;if(M>=c[sA]&&M<=c[sA+1])return!0;M>c[sA+1]?P=j+1:F=j-1}return!1}const MA=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],m=M=>iA(M,MA),y=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],uA=M=>iA(M,y),CA=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],$A=M=>iA(M,CA),ZA=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],kA=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],de=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],Te=M=>iA(M,CA)||iA(M,de)||iA(M,ZA)||iA(M,kA),Re=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],ze=M=>iA(M,Re),We=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],ee=M=>iA(M,We),ge=$A,dA=uA,k=M=>M.codePointAt(0),J=M=>M[0],_=M=>M[M.length-1];function EA(M){const c=[],P=M.length;for(let F=0;F<P;F+=1){const j=M.charCodeAt(F);if(j>=55296&&j<=56319&&P>F+1){const sA=M.charCodeAt(F+1);if(sA>=56320&&sA<=57343){c.push((j-55296)*1024+sA-56320+65536),F+=1;continue}}c.push(j)}return c}function K(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof M!="string")throw new TypeError("Expected string.");if(M.length===0)return"";const P=EA(M).map(De=>ge(De)?32:De).filter(De=>!dA(De)),F=String.fromCodePoint.apply(null,P).normalize("NFKC"),j=EA(F);if(j.some(Te))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(c.allowUnassigned!==!0&&j.some(m))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const RA=j.some(ze),XA=j.some(ee);if(RA&&XA)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const ae=ze(k(J(F))),Ie=ze(k(_(F)));if(RA&&!(ae&&Ie))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return F}class UA{static generateFileID(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=`${c.CreationDate.getTime()}
`;for(let F in c)c.hasOwnProperty(F)&&(P+=`${F}: ${c[F].valueOf()}
`);return a.from(hA(P))}static generateRandomWordArray(c){return G(c)}static create(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!P.ownerPassword&&!P.userPassword?null:new UA(c,P)}constructor(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!P.ownerPassword&&!P.userPassword)throw new Error("None of owner password and user password is defined.");this.document=c,this._setupEncryption(P)}_setupEncryption(c){switch(c.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1;break}const P={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,P,c);break;case 5:this._setupEncryptionV5(P,c);break}this.dictionary=this.document.ref(P)}_setupEncryptionV1V2V4(c,P,F){let j,sA;switch(c){case 1:j=2,this.keyBits=40,sA=se(F.permissions);break;case 2:j=3,this.keyBits=128,sA=Me(F.permissions);break;case 4:j=4,this.keyBits=128,sA=Me(F.permissions);break}const RA=ye(F.userPassword),XA=F.ownerPassword?ye(F.ownerPassword):RA,ae=vA(j,this.keyBits,RA,XA);this.encryptionKey=me(j,this.keyBits,this.document._id,RA,ae,sA);let Ie;j===2?Ie=te(this.encryptionKey):Ie=Qe(this.document._id,this.encryptionKey),P.V=c,c>=2&&(P.Length=this.keyBits),c===4&&(P.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},P.StmF="StdCF",P.StrF="StdCF"),P.R=j,P.O=a.from(ae),P.U=a.from(Ie),P.P=sA}_setupEncryptionV5(c,P){this.keyBits=256;const F=Me(P.permissions),j=$e(P.userPassword),sA=P.ownerPassword?$e(P.ownerPassword):j;this.encryptionKey=jA(UA.generateRandomWordArray);const RA=it(j,UA.generateRandomWordArray),XA=RA.slice(40,48),ae=AA(j,XA,this.encryptionKey),Ie=Fe(sA,RA,UA.generateRandomWordArray),De=Ie.slice(40,48),he=Ye(sA,De,RA,this.encryptionKey),xe=we(F,this.encryptionKey,UA.generateRandomWordArray);c.V=5,c.Length=this.keyBits,c.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},c.StmF="StdCF",c.StrF="StdCF",c.R=5,c.O=a.from(Ie),c.OE=a.from(he),c.U=a.from(RA),c.UE=a.from(ae),c.P=F,c.Perms=a.from(xe)}getEncryptFn(c,P){let F;if(this.version<5){const RA=new Uint8Array([c&255,c>>8&255,c>>16&255,P&255,P>>8&255]);F=(0,Q.concatBytes)(this.encryptionKey,RA)}if(this.version===1||this.version===2){let RA=hA(F);const XA=Math.min(16,this.keyBits/8+5);return RA=RA.slice(0,XA),ae=>a.from(p(new Uint8Array(ae),RA))}let j;if(this.version===4){const RA=new Uint8Array([115,65,108,84]);j=hA((0,Q.concatBytes)(F,RA))}else j=this.encryptionKey;const sA=UA.generateRandomWordArray(16);return RA=>{const XA=lA(new Uint8Array(RA),j,sA,!0);return a.from((0,Q.concatBytes)(sA,XA))}}end(){this.dictionary.end()}}function se(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=-64;return M.printing&&(c|=4),M.modifying&&(c|=8),M.copying&&(c|=16),M.annotating&&(c|=32),c}function Me(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=-3904;return M.printing==="lowResolution"&&(c|=4),M.printing==="highResolution"&&(c|=2052),M.modifying&&(c|=8),M.copying&&(c|=16),M.annotating&&(c|=32),M.fillingForms&&(c|=256),M.contentAccessibility&&(c|=512),M.documentAssembly&&(c|=1024),c}function te(M){return p(ye(),M)}function Qe(M,c){const P=c.slice();let F=hA((0,Q.concatBytes)(ye(),new Uint8Array(M)));for(let sA=0;sA<20;sA++){const RA=new Uint8Array(P.length);for(let XA=0;XA<P.length;XA++)RA[XA]=c[XA]^sA;F=p(F,RA)}const j=new Uint8Array(32);return j.set(F),j}function vA(M,c,P,F){let j=F,sA=M>=3?51:1;for(let Ie=0;Ie<sA;Ie++)j=hA(j);const RA=c/8;let XA=j.slice(0,RA),ae=P;sA=M>=3?20:1;for(let Ie=0;Ie<sA;Ie++){const De=new Uint8Array(RA);for(let he=0;he<RA;he++)De[he]=XA[he]^Ie;ae=p(ae,De)}return ae}function me(M,c,P,F,j,sA){const RA=new Uint8Array([sA&255,sA>>8&255,sA>>16&255,sA>>24&255]);let XA=(0,Q.concatBytes)(F,j,RA,new Uint8Array(P));const ae=M>=3?51:1,Ie=c/8;for(let De=0;De<ae;De++)XA=hA(XA),XA=XA.slice(0,Ie);return XA}function it(M,c){const P=c(8),F=c(8),j=C((0,Q.concatBytes)(M,P));return(0,Q.concatBytes)(j,P,F)}function AA(M,c,P){const F=C((0,Q.concatBytes)(M,c)),j=new Uint8Array(16);return lA(P,F,j,!1)}function Fe(M,c,P){const F=P(8),j=P(8),sA=C((0,Q.concatBytes)(M,F,c));return(0,Q.concatBytes)(sA,F,j)}function Ye(M,c,P,F){const j=C((0,Q.concatBytes)(M,c,P)),sA=new Uint8Array(16);return lA(F,j,sA,!1)}function jA(M){return M(32)}function we(M,c,P){const F=new Uint8Array(16);F[0]=M&255,F[1]=M>>8&255,F[2]=M>>16&255,F[3]=M>>24&255,F[4]=255,F[5]=255,F[6]=255,F[7]=255,F[8]=84,F[9]=97,F[10]=100,F[11]=98;const j=P(4);return F.set(j,12),rA(F,c)}function ye(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const c=new Uint8Array(32),P=M.length;let F=0;for(;F<P&&F<32;){const j=M.charCodeAt(F);if(j>255)throw new Error("Password contains one or more invalid characters.");c[F]=j,F++}for(;F<32;)c[F]=Je[F-P],F++;return c}function $e(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";M=unescape(encodeURIComponent(K(M)));const c=Math.min(127,M.length),P=new Uint8Array(c);for(let F=0;F<c;F++)P[F]=M.charCodeAt(F);return P}const Je=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],{number:Ke}=v;class ht{constructor(c){this.doc=c,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}stop(c,P,F){if(F==null&&(F=1),P=this.doc._normalizeColor(P),this.stops.length===0)if(P.length===3)this._colorSpace="DeviceRGB";else if(P.length===4)this._colorSpace="DeviceCMYK";else if(P.length===1)this._colorSpace="DeviceGray";else throw new Error("Unknown color space");else if(this._colorSpace==="DeviceRGB"&&P.length!==3||this._colorSpace==="DeviceCMYK"&&P.length!==4||this._colorSpace==="DeviceGray"&&P.length!==1)throw new Error("All gradient stops must use the same color space");return F=Math.max(0,Math.min(1,F)),this.stops.push([c,P,F]),this}setTransform(c,P,F,j,sA,RA){return this.transform=[c,P,F,j,sA,RA],this}embed(c){let P;const F=this.stops.length;if(F===0)return;this.embedded=!0,this.matrix=c;const j=this.stops[F-1];j[0]<1&&this.stops.push([1,j[1],j[2]]);const sA=[],RA=[],XA=[];for(let De=0;De<F-1;De++)RA.push(0,1),De+2!==F&&sA.push(this.stops[De+1][0]),P=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[De+0][1],C1:this.stops[De+1][1],N:1}),XA.push(P),P.end();F===1?P=XA[0]:(P=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:XA,Bounds:sA,Encode:RA}),P.end()),this.id=`Sh${++this.doc._gradCount}`;const ae=this.shader(P);ae.end();const Ie=this.doc.ref({Type:"Pattern",PatternType:2,Shading:ae,Matrix:this.matrix.map(Ke)});if(Ie.end(),this.stops.some(De=>De[2]<1)){let De=this.opacityGradient();De._colorSpace="DeviceGray";for(let Ze of this.stops)De.stop(Ze[0],[Ze[2]]);De=De.embed(this.matrix);const he=[0,0,this.doc.page.width,this.doc.page.height],xe=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:he,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:De}}});xe.write("/Pattern cs /Sh1 scn"),xe.end(`${he.join(" ")} re f`);const qe=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:xe}});qe.end();const ke=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:he,XStep:he[2],YStep:he[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:Ie},ExtGState:{Gs1:qe}}});ke.write("/Gs1 gs /Pattern cs /Sh1 scn"),ke.end(`${he.join(" ")} re f`),this.doc.page.patterns[this.id]=ke}else this.doc.page.patterns[this.id]=Ie;return Ie}apply(c){const[P,F,j,sA,RA,XA]=this.doc._ctm,[ae,Ie,De,he,xe,qe]=this.transform,ke=[P*ae+j*Ie,F*ae+sA*Ie,P*De+j*he,F*De+sA*he,P*xe+j*qe+RA,F*xe+sA*qe+XA];(!this.embedded||ke.join(" ")!==this.matrix.join(" "))&&this.embed(ke),this.doc._setColorSpace("Pattern",c);const Ze=c?"SCN":"scn";return this.doc.addContent(`/${this.id} ${Ze}`)}}class Br extends ht{constructor(c,P,F,j,sA){super(c),this.x1=P,this.y1=F,this.x2=j,this.y2=sA}shader(c){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:c,Extend:[!0,!0]})}opacityGradient(){return new Br(this.doc,this.x1,this.y1,this.x2,this.y2)}}class rt extends ht{constructor(c,P,F,j,sA,RA,XA){super(c),this.doc=c,this.x1=P,this.y1=F,this.r1=j,this.x2=sA,this.y2=RA,this.r2=XA}shader(c){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:c,Extend:[!0,!0]})}opacityGradient(){return new rt(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)}}var It={PDFGradient:ht,PDFLinearGradient:Br,PDFRadialGradient:rt};const ut=["DeviceCMYK","DeviceRGB"];class Yt{constructor(c,P,F,j,sA){this.doc=c,this.bBox=P,this.xStep=F,this.yStep=j,this.stream=sA}createPattern(){const c=this.doc.ref();c.end();const[P,F,j,sA,RA,XA]=this.doc._ctm,[ae,Ie,De,he,xe,qe]=[1,0,0,1,0,0],ke=[P*ae+j*Ie,F*ae+sA*Ie,P*De+j*he,F*De+sA*he,P*xe+j*qe+RA,F*xe+sA*qe+XA],Ze=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:2,TilingType:2,BBox:this.bBox,XStep:this.xStep,YStep:this.yStep,Matrix:ke.map(He=>+He.toFixed(5)),Resources:c});return Ze.end(this.stream),Ze}embedPatternColorSpaces(){ut.forEach(c=>{const P=this.getPatternColorSpaceId(c);if(this.doc.page.colorSpaces[P])return;const F=this.doc.ref(["Pattern",c]);F.end(),this.doc.page.colorSpaces[P]=F})}getPatternColorSpaceId(c){return`CsP${c}`}embed(){this.id||(this.doc._patternCount=this.doc._patternCount+1,this.id="P"+this.doc._patternCount,this.pattern=this.createPattern()),this.doc.page.patterns[this.id]||(this.doc.page.patterns[this.id]=this.pattern)}apply(c,P){this.embedPatternColorSpaces(),this.embed();const F=this.doc._normalizeColor(P);if(!F)throw Error(`invalid pattern color. (value: ${P})`);const j=this.getPatternColorSpaceId(this.doc._getColorSpace(F));this.doc._setColorSpace(j,c);const sA=c?"SCN":"scn";return this.doc.addContent(`${F.join(" ")} /${this.id} ${sA}`)}}var kt={PDFTilingPattern:Yt};const{PDFGradient:Qr,PDFLinearGradient:Dr,PDFRadialGradient:Tt}=It,{PDFTilingPattern:yt}=kt;var jt={initColor(){this.spotColors={},this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor(M){if(typeof M=="string"){if(M.charAt(0)==="#"){M.length===4&&(M=M.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));const c=parseInt(M.slice(1),16);M=[c>>16,c>>8&255,c&255]}else if(Vt[M])M=Vt[M];else if(this.spotColors[M])return this.spotColors[M]}return Array.isArray(M)?(M.length===3?M=M.map(c=>c/255):M.length===4&&(M=M.map(c=>c/100)),M):null},_setColor(M,c){return M instanceof Qr?(M.apply(c),!0):Array.isArray(M)&&M[0]instanceof yt?(M[0].apply(c,M[1]),!0):this._setColorCore(M,c)},_setColorCore(M,c){if(M=this._normalizeColor(M),!M)return!1;const P=c?"SCN":"scn",F=this._getColorSpace(M);return this._setColorSpace(F,c),M instanceof q?(this.page.colorSpaces[M.id]=M.ref,this.addContent(`1 ${P}`)):this.addContent(`${M.join(" ")} ${P}`),!0},_setColorSpace(M,c){const P=c?"CS":"cs";return this.addContent(`/${M} ${P}`)},_getColorSpace(M){return M instanceof q?M.id:M.length===4?"DeviceCMYK":"DeviceRGB"},fillColor(M,c){return this._setColor(M,!1)&&this.fillOpacity(c),this._fillColor=[M,c],this},strokeColor(M,c){return this._setColor(M,!0)&&this.strokeOpacity(c),this},opacity(M){return this._doOpacity(M,M),this},fillOpacity(M){return this._doOpacity(M,null),this},strokeOpacity(M){return this._doOpacity(null,M),this},_doOpacity(M,c){let P,F;if(M==null&&c==null)return;M!=null&&(M=Math.max(0,Math.min(1,M))),c!=null&&(c=Math.max(0,Math.min(1,c)));const j=`${M}_${c}`;return this._opacityRegistry[j]?[P,F]=this._opacityRegistry[j]:(P={Type:"ExtGState"},M!=null&&(P.ca=M),c!=null&&(P.CA=c),P=this.ref(P),P.end(),F=`Gs${++this._opacityCount}`,this._opacityRegistry[j]=[P,F]),this.page.ext_gstates[F]=P,this.addContent(`/${F} gs`)},linearGradient(M,c,P,F){return new Dr(this,M,c,P,F)},radialGradient(M,c,P,F,j,sA){return new Tt(this,M,c,P,F,j,sA)},pattern(M,c,P,F){return new yt(this,M,c,P,F)},addSpotColor(M,c,P,F,j){const sA=new q(this,M,c,P,F,j);return this.spotColors[M]=sA,this}},Vt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let je,Ve,Qt,Et,_t,ar;je=Ve=Qt=Et=_t=ar=0;const Ir={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},TA=function(M){return M in Ir},GA=function(M){const c=M.codePointAt(0);return c===32||c===9||c===13||c===10},PA=function(M){const c=M.codePointAt(0);return c==null?!1:48<=c&&c<=57},_A=function(M,c){let P=c,F="",j="none";for(;P<M.length;P+=1){const RA=M[P];if(RA==="+"||RA==="-"){if(j==="none"){j="sign",F+=RA;continue}if(j==="e"){j="exponent_sign",F+=RA;continue}}if(PA(RA)){if(j==="none"||j==="sign"||j==="whole"){j="whole",F+=RA;continue}if(j==="decimal_point"||j==="decimal"){j="decimal",F+=RA;continue}if(j==="e"||j==="exponent_sign"||j==="exponent"){j="exponent",F+=RA;continue}}if(RA==="."&&(j==="none"||j==="sign"||j==="whole")){j="decimal_point",F+=RA;continue}if((RA==="E"||RA==="e")&&(j==="whole"||j==="decimal_point"||j==="decimal")){j="e",F+=RA;continue}break}const sA=Number.parseFloat(F);return Number.isNaN(sA)?[c,null]:[P-1,sA]},qA=function(M){const c=[];let P=null,F=[],j=0,sA=!1,RA=!1;for(let XA=0;XA<M.length;XA+=1){const ae=M.charAt(XA);if(GA(ae))continue;if(sA&&ae===","){if(RA)break;RA=!0;continue}if(TA(ae)){if(RA)return c;if(P==null){if(ae!=="M"&&ae!=="m")return c}else if(F.length!==0)return c;P=ae,F=[],j=Ir[P],sA=!1,j===0&&c.push({command:P,args:F});continue}if(P==null)return c;let Ie=XA,De=null;if(P==="A"||P==="a"){const he=F.length;(he===0||he===1)&&ae!=="+"&&ae!=="-"&&([Ie,De]=_A(M,XA)),(he===2||he===5||he===6)&&([Ie,De]=_A(M,XA)),(he===3||he===4)&&(ae==="0"&&(De=0),ae==="1"&&(De=1))}else[Ie,De]=_A(M,XA);if(De==null)return c;F.push(De),sA=!0,RA=!1,XA=Ie,F.length===j&&(c.push({command:P,args:F}),P==="M"&&(P="L"),P==="m"&&(P="l"),F=[])}return c},OA=function(M,c){je=Ve=Qt=Et=_t=ar=0;for(let P=0;P<M.length;P++){const F=M[P];typeof ce[F.command]=="function"&&ce[F.command](c,F.args)}},ce={M(M,c){return je=c[0],Ve=c[1],Qt=Et=null,_t=je,ar=Ve,M.moveTo(je,Ve)},m(M,c){return je+=c[0],Ve+=c[1],Qt=Et=null,_t=je,ar=Ve,M.moveTo(je,Ve)},C(M,c){return je=c[4],Ve=c[5],Qt=c[2],Et=c[3],M.bezierCurveTo(...c)},c(M,c){return M.bezierCurveTo(c[0]+je,c[1]+Ve,c[2]+je,c[3]+Ve,c[4]+je,c[5]+Ve),Qt=je+c[2],Et=Ve+c[3],je+=c[4],Ve+=c[5]},S(M,c){return Qt===null&&(Qt=je,Et=Ve),M.bezierCurveTo(je-(Qt-je),Ve-(Et-Ve),c[0],c[1],c[2],c[3]),Qt=c[0],Et=c[1],je=c[2],Ve=c[3]},s(M,c){return Qt===null&&(Qt=je,Et=Ve),M.bezierCurveTo(je-(Qt-je),Ve-(Et-Ve),je+c[0],Ve+c[1],je+c[2],Ve+c[3]),Qt=je+c[0],Et=Ve+c[1],je+=c[2],Ve+=c[3]},Q(M,c){return Qt=c[0],Et=c[1],je=c[2],Ve=c[3],M.quadraticCurveTo(c[0],c[1],je,Ve)},q(M,c){return M.quadraticCurveTo(c[0]+je,c[1]+Ve,c[2]+je,c[3]+Ve),Qt=je+c[0],Et=Ve+c[1],je+=c[2],Ve+=c[3]},T(M,c){return Qt===null?(Qt=je,Et=Ve):(Qt=je-(Qt-je),Et=Ve-(Et-Ve)),M.quadraticCurveTo(Qt,Et,c[0],c[1]),Qt=je-(Qt-je),Et=Ve-(Et-Ve),je=c[0],Ve=c[1]},t(M,c){return Qt===null?(Qt=je,Et=Ve):(Qt=je-(Qt-je),Et=Ve-(Et-Ve)),M.quadraticCurveTo(Qt,Et,je+c[0],Ve+c[1]),je+=c[0],Ve+=c[1]},A(M,c){return WA(M,je,Ve,c),je=c[5],Ve=c[6]},a(M,c){return c[5]+=je,c[6]+=Ve,WA(M,je,Ve,c),je=c[5],Ve=c[6]},L(M,c){return je=c[0],Ve=c[1],Qt=Et=null,M.lineTo(je,Ve)},l(M,c){return je+=c[0],Ve+=c[1],Qt=Et=null,M.lineTo(je,Ve)},H(M,c){return je=c[0],Qt=Et=null,M.lineTo(je,Ve)},h(M,c){return je+=c[0],Qt=Et=null,M.lineTo(je,Ve)},V(M,c){return Ve=c[0],Qt=Et=null,M.lineTo(je,Ve)},v(M,c){return Ve+=c[0],Qt=Et=null,M.lineTo(je,Ve)},Z(M){return M.closePath(),je=_t,Ve=ar},z(M){return M.closePath(),je=_t,Ve=ar}},WA=function(M,c,P,F){const[j,sA,RA,XA,ae,Ie,De]=F,he=ie(Ie,De,j,sA,XA,ae,RA,c,P);for(let xe of he){const qe=ne(...xe);M.bezierCurveTo(...qe)}},ie=function(M,c,P,F,j,sA,RA,XA,ae){const Ie=RA*(Math.PI/180),De=Math.sin(Ie),he=Math.cos(Ie);P=Math.abs(P),F=Math.abs(F),Qt=he*(XA-M)*.5+De*(ae-c)*.5,Et=he*(ae-c)*.5-De*(XA-M)*.5;let xe=Qt*Qt/(P*P)+Et*Et/(F*F);xe>1&&(xe=Math.sqrt(xe),P*=xe,F*=xe);const qe=he/P,ke=De/P,Ze=-De/F,He=he/F,At=qe*XA+ke*ae,Xe=Ze*XA+He*ae,gt=qe*M+ke*c,Ht=Ze*M+He*c;let zt=1/((gt-At)*(gt-At)+(Ht-Xe)*(Ht-Xe))-.25;zt<0&&(zt=0);let ot=Math.sqrt(zt);sA===j&&(ot=-ot);const Nt=.5*(At+gt)-ot*(Ht-Xe),Fr=.5*(Xe+Ht)+ot*(gt-At),cr=Math.atan2(Xe-Fr,At-Nt);let Nr=Math.atan2(Ht-Fr,gt-Nt)-cr;Nr<0&&sA===1?Nr+=2*Math.PI:Nr>0&&sA===0&&(Nr-=2*Math.PI);const pi=Math.ceil(Math.abs(Nr/(Math.PI*.5+.001))),Fs=[];for(let Xi=0;Xi<pi;Xi++){const Ys=cr+Xi*Nr/pi,ma=cr+(Xi+1)*Nr/pi;Fs[Xi]=[Nt,Fr,Ys,ma,P,F,De,he]}return Fs},ne=function(M,c,P,F,j,sA,RA,XA){const ae=XA*j,Ie=-RA*sA,De=RA*j,he=XA*sA,xe=.5*(F-P),qe=8/3*Math.sin(xe*.5)*Math.sin(xe*.5)/Math.sin(xe),ke=M+Math.cos(P)-qe*Math.sin(P),Ze=c+Math.sin(P)+qe*Math.cos(P),He=M+Math.cos(F),At=c+Math.sin(F),Xe=He+qe*Math.sin(F),gt=At-qe*Math.cos(F);return[ae*ke+Ie*Ze,De*ke+he*Ze,ae*Xe+Ie*gt,De*Xe+he*gt,ae*He+Ie*At,De*He+he*At]};class ve{static apply(c,P){const F=qA(P);OA(F,c)}}const{number:be}=v,_e=4*((Math.sqrt(2)-1)/3);var st={initVector(){this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath(){return this.addContent("h")},lineWidth(M){return this.addContent(`${be(M)} w`)},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap(M){return typeof M=="string"&&(M=this._CAP_STYLES[M.toUpperCase()]),this.addContent(`${M} J`)},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin(M){return typeof M=="string"&&(M=this._JOIN_STYLES[M.toUpperCase()]),this.addContent(`${M} j`)},miterLimit(M){return this.addContent(`${be(M)} M`)},dash(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const P=M;if(Array.isArray(M)||(M=[M,c.space||M]),!M.every(j=>Number.isFinite(j)&&j>0))throw new Error(`dash(${JSON.stringify(P)}, ${JSON.stringify(c)}) invalid, lengths must be numeric and greater than zero`);return M=M.map(be).join(" "),this.addContent(`[${M}] ${be(c.phase||0)} d`)},undash(){return this.addContent("[] 0 d")},moveTo(M,c){return this.addContent(`${be(M)} ${be(c)} m`)},lineTo(M,c){return this.addContent(`${be(M)} ${be(c)} l`)},bezierCurveTo(M,c,P,F,j,sA){return this.addContent(`${be(M)} ${be(c)} ${be(P)} ${be(F)} ${be(j)} ${be(sA)} c`)},quadraticCurveTo(M,c,P,F){return this.addContent(`${be(M)} ${be(c)} ${be(P)} ${be(F)} v`)},rect(M,c,P,F){return this.addContent(`${be(M)} ${be(c)} ${be(P)} ${be(F)} re`)},roundedRect(M,c,P,F,j){j==null&&(j=0),j=Math.min(j,.5*P,.5*F);const sA=j*(1-_e);return this.moveTo(M+j,c),this.lineTo(M+P-j,c),this.bezierCurveTo(M+P-sA,c,M+P,c+sA,M+P,c+j),this.lineTo(M+P,c+F-j),this.bezierCurveTo(M+P,c+F-sA,M+P-sA,c+F,M+P-j,c+F),this.lineTo(M+j,c+F),this.bezierCurveTo(M+sA,c+F,M,c+F-sA,M,c+F-j),this.lineTo(M,c+j),this.bezierCurveTo(M,c+sA,M+sA,c,M+j,c),this.closePath()},ellipse(M,c,P,F){F==null&&(F=P),M-=P,c-=F;const j=P*_e,sA=F*_e,RA=M+P*2,XA=c+F*2,ae=M+P,Ie=c+F;return this.moveTo(M,Ie),this.bezierCurveTo(M,Ie-sA,ae-j,c,ae,c),this.bezierCurveTo(ae+j,c,RA,Ie-sA,RA,Ie),this.bezierCurveTo(RA,Ie+sA,ae+j,XA,ae,XA),this.bezierCurveTo(ae-j,XA,M,Ie+sA,M,Ie),this.closePath()},circle(M,c,P){return this.ellipse(M,c,P)},arc(M,c,P,F,j,sA){sA==null&&(sA=!1);const RA=2*Math.PI,XA=.5*Math.PI;let ae=j-F;Math.abs(ae)>RA?ae=RA:ae!==0&&sA!==ae<0&&(ae=(sA?-1:1)*RA+ae);const Ie=Math.ceil(Math.abs(ae)/XA),De=ae/Ie,he=De/XA*_e*P;let xe=F,qe=-Math.sin(xe)*he,ke=Math.cos(xe)*he,Ze=M+Math.cos(xe)*P,He=c+Math.sin(xe)*P;this.moveTo(Ze,He);for(let At=0;At<Ie;At++){const Xe=Ze+qe,gt=He+ke;xe+=De,Ze=M+Math.cos(xe)*P,He=c+Math.sin(xe)*P,qe=-Math.sin(xe)*he,ke=Math.cos(xe)*he;const Ht=Ze-qe,Ot=He-ke;this.bezierCurveTo(Xe,gt,Ht,Ot,Ze,He)}return this},polygon(){for(var M=arguments.length,c=new Array(M),P=0;P<M;P++)c[P]=arguments[P];this.moveTo(...c.shift()||[]);for(let F of c)this.lineTo(...F||[]);return this.closePath()},path(M){return ve.apply(this,M),this},_windingRule(M){return/even-?odd/.test(M)?"*":""},fill(M,c){return/(even-?odd)|(non-?zero)/.test(M)&&(c=M,M=null),M&&this.fillColor(M),this.addContent(`f${this._windingRule(c)}`)},stroke(M){return M&&this.strokeColor(M),this.addContent("S")},fillAndStroke(M,c,P){c==null&&(c=M);const F=/(even-?odd)|(non-?zero)/;return F.test(M)&&(P=M,M=null),F.test(c)&&(P=c,c=M),M&&(this.fillColor(M),this.strokeColor(c)),this.addContent(`B${this._windingRule(P)}`)},clip(M){return this.addContent(`W${this._windingRule(M)} n`)},transform(M,c,P,F,j,sA){if(M===1&&c===0&&P===0&&F===1&&j===0&&sA===0)return this;const RA=this._ctm,[XA,ae,Ie,De,he,xe]=RA;RA[0]=XA*M+Ie*c,RA[1]=ae*M+De*c,RA[2]=XA*P+Ie*F,RA[3]=ae*P+De*F,RA[4]=XA*j+Ie*sA+he,RA[5]=ae*j+De*sA+xe;const qe=[M,c,P,F,j,sA].map(ke=>be(ke)).join(" ");return this.addContent(`${qe} cm`)},translate(M,c){return this.transform(1,0,0,1,M,c)},rotate(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P;const F=M*Math.PI/180,j=Math.cos(F),sA=Math.sin(F);let RA=P=0;if(c.origin!=null){[RA,P]=c.origin;const XA=RA*j-P*sA,ae=RA*sA+P*j;RA-=XA,P-=ae}return this.transform(j,sA,-sA,j,RA,P)},scale(M,c){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F;c==null&&(c=M),typeof c=="object"&&(P=c,c=M);let j=F=0;return P.origin!=null&&([j,F]=P.origin,j-=M*j,F-=c*F),this.transform(M,0,0,c,j,F)}};const Se={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},ue=`.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
.notdef       .notdef        .notdef        .notdef
  
space         exclam         quotedbl       numbersign
dollar        percent        ampersand      quotesingle
parenleft     parenright     asterisk       plus
comma         hyphen         period         slash
zero          one            two            three
four          five           six            seven
eight         nine           colon          semicolon
less          equal          greater        question
  
at            A              B              C
D             E              F              G
H             I              J              K
L             M              N              O
P             Q              R              S
T             U              V              W
X             Y              Z              bracketleft
backslash     bracketright   asciicircum    underscore
  
grave         a              b              c
d             e              f              g
h             i              j              k
l             m              n              o
p             q              r              s
t             u              v              w
x             y              z              braceleft
bar           braceright     asciitilde     .notdef
  
Euro          .notdef        quotesinglbase florin
quotedblbase  ellipsis       dagger         daggerdbl
circumflex    perthousand    Scaron         guilsinglleft
OE            .notdef        Zcaron         .notdef
.notdef       quoteleft      quoteright     quotedblleft
quotedblright bullet         endash         emdash
tilde         trademark      scaron         guilsinglright
oe            .notdef        zcaron         ydieresis
  
space         exclamdown     cent           sterling
currency      yen            brokenbar      section
dieresis      copyright      ordfeminine    guillemotleft
logicalnot    hyphen         registered     macron
degree        plusminus      twosuperior    threesuperior
acute         mu             paragraph      periodcentered
cedilla       onesuperior    ordmasculine   guillemotright
onequarter    onehalf        threequarters  questiondown
  
Agrave        Aacute         Acircumflex    Atilde
Adieresis     Aring          AE             Ccedilla
Egrave        Eacute         Ecircumflex    Edieresis
Igrave        Iacute         Icircumflex    Idieresis
Eth           Ntilde         Ograve         Oacute
Ocircumflex   Otilde         Odieresis      multiply
Oslash        Ugrave         Uacute         Ucircumflex
Udieresis     Yacute         Thorn          germandbls
  
agrave        aacute         acircumflex    atilde
adieresis     aring          ae             ccedilla
egrave        eacute         ecircumflex    edieresis
igrave        iacute         icircumflex    idieresis
eth           ntilde         ograve         oacute
ocircumflex   otilde         odieresis      divide
oslash        ugrave         uacute         ucircumflex
udieresis     yacute         thorn          ydieresis`.split(/\s+/);class Ge{constructor(c){this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(c),this.bbox=this.attributes.FontBBox.split(/\s+/).map(P=>+P),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}parse(c){let P="";for(let ae of c.split(`
`)){var F,j;if(F=ae.match(/^Start(\w+)/)){P=F[1];continue}else if(F=ae.match(/^End(\w+)/)){P="";continue}switch(P){case"FontMetrics":F=ae.match(/(^\w+)\s+(.*)/);var sA=F[1],RA=F[2];(j=this.attributes[sA])?(Array.isArray(j)||(j=this.attributes[sA]=[j]),j.push(RA)):this.attributes[sA]=RA;break;case"CharMetrics":if(!/^CH?\s/.test(ae))continue;var XA=ae.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[XA]=+ae.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":F=ae.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/),F&&(this.kernPairs[F[1]+"\0"+F[2]]=parseInt(F[3]));break}}}encodeText(c){const P=[];for(let F=0,j=c.length;F<j;F++){let sA=c.charCodeAt(F);sA=Se[sA]||sA,P.push(sA.toString(16))}return P}glyphsForString(c){const P=[];for(let F=0,j=c.length;F<j;F++){const sA=c.charCodeAt(F);P.push(this.characterToGlyph(sA))}return P}characterToGlyph(c){return ue[Se[c]||c]||".notdef"}widthOfGlyph(c){return this.glyphWidths[c]||0}getKernPair(c,P){return this.kernPairs[c+"\0"+P]||0}advancesForGlyphs(c){const P=[];for(let F=0;F<c.length;F++){const j=c[F],sA=c[F+1];P.push(this.widthOfGlyph(j)+this.getKernPair(j,sA))}return P}}class et{constructor(){}encode(){throw new Error("Must be implemented by subclasses")}widthOfString(){throw new Error("Must be implemented by subclasses")}ref(){return this.dictionary!=null?this.dictionary:this.dictionary=this.document.ref()}finalize(){this.embedded||this.dictionary==null||(this.embed(),this.embedded=!0)}embed(){throw new Error("Must be implemented by subclasses")}lineHeight(c){const F=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?this.lineGap:0;return(this.ascender+F-this.descender)/1e3*c}}const lt={Courier(){return O.readFileSync(A+"/data/Courier.afm","utf8")},"Courier-Bold"(){return O.readFileSync(A+"/data/Courier-Bold.afm","utf8")},"Courier-Oblique"(){return O.readFileSync(A+"/data/Courier-Oblique.afm","utf8")},"Courier-BoldOblique"(){return O.readFileSync(A+"/data/Courier-BoldOblique.afm","utf8")},Helvetica(){return O.readFileSync(A+"/data/Helvetica.afm","utf8")},"Helvetica-Bold"(){return O.readFileSync(A+"/data/Helvetica-Bold.afm","utf8")},"Helvetica-Oblique"(){return O.readFileSync(A+"/data/Helvetica-Oblique.afm","utf8")},"Helvetica-BoldOblique"(){return O.readFileSync(A+"/data/Helvetica-BoldOblique.afm","utf8")},"Times-Roman"(){return O.readFileSync(A+"/data/Times-Roman.afm","utf8")},"Times-Bold"(){return O.readFileSync(A+"/data/Times-Bold.afm","utf8")},"Times-Italic"(){return O.readFileSync(A+"/data/Times-Italic.afm","utf8")},"Times-BoldItalic"(){return O.readFileSync(A+"/data/Times-BoldItalic.afm","utf8")},Symbol(){return O.readFileSync(A+"/data/Symbol.afm","utf8")},ZapfDingbats(){return O.readFileSync(A+"/data/ZapfDingbats.afm","utf8")}};class Dt extends et{constructor(c,P,F){super(),this.document=c,this.name=P,this.id=F,this.font=new Ge(lt[this.name]()),{ascender:this.ascender,descender:this.descender,bbox:this.bbox,lineGap:this.lineGap,xHeight:this.xHeight,capHeight:this.capHeight}=this.font}embed(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()}encode(c){const P=this.font.encodeText(c),F=this.font.glyphsForString(`${c}`),j=this.font.advancesForGlyphs(F),sA=[];for(let RA=0;RA<F.length;RA++){const XA=F[RA];sA.push({xAdvance:j[RA],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(XA)})}return[P,sA]}widthOfString(c,P){const F=this.font.glyphsForString(`${c}`),j=this.font.advancesForGlyphs(F);let sA=0;for(let XA of j)sA+=XA;const RA=P/1e3;return sA*RA}static isStandardFont(c){return c in lt}}const wt=function(M){return`0000${M.toString(16)}`.slice(-4)};class bt extends et{constructor(c,P,F){super(),this.document=c,this.font=P,this.id=F,this.subset=this.font.createSubset(),this.unicode=[[0]],this.widths=[this.font.getGlyph(0).advanceWidth],this.name=this.font.postscriptName,this.scale=1e3/this.font.unitsPerEm,this.ascender=this.font.ascent*this.scale,this.descender=this.font.descent*this.scale,this.xHeight=this.font.xHeight*this.scale,this.capHeight=this.font.capHeight*this.scale,this.lineGap=this.font.lineGap*this.scale,this.bbox=this.font.bbox,c.options.fontLayoutCache!==!1&&(this.layoutCache=Object.create(null))}layoutRun(c,P){const F=this.font.layout(c,P);for(let j=0;j<F.positions.length;j++){const sA=F.positions[j];for(let RA in sA)sA[RA]*=this.scale;sA.advanceWidth=F.glyphs[j].advanceWidth*this.scale}return F}layoutCached(c){if(!this.layoutCache)return this.layoutRun(c);let P;if(P=this.layoutCache[c])return P;const F=this.layoutRun(c);return this.layoutCache[c]=F,F}layout(c,P,F){if(P)return this.layoutRun(c,P);let j=F?null:[],sA=F?null:[],RA=0,XA=0,ae=0;for(;ae<=c.length;){var Ie;if(ae===c.length&&XA<ae||(Ie=c.charAt(ae),[" ","	"].includes(Ie))){const De=this.layoutCached(c.slice(XA,++ae));F||(j=j.concat(De.glyphs),sA=sA.concat(De.positions)),RA+=De.advanceWidth,XA=ae}else ae++}return{glyphs:j,positions:sA,advanceWidth:RA}}encode(c,P){const{glyphs:F,positions:j}=this.layout(c,P),sA=[];for(let RA=0;RA<F.length;RA++){const XA=F[RA],ae=this.subset.includeGlyph(XA.id);sA.push(`0000${ae.toString(16)}`.slice(-4)),this.widths[ae]==null&&(this.widths[ae]=XA.advanceWidth*this.scale),this.unicode[ae]==null&&(this.unicode[ae]=XA.codePoints)}return[sA,j]}widthOfString(c,P,F){const j=this.layout(c,F,!0).advanceWidth,sA=P/1e3;return j*sA}embed(){var he;const c=this.subset.cff!=null,P=this.document.ref();c&&(P.data.Subtype="CIDFontType0C"),P.end(this.subset.encode());const F=((this.font["OS/2"]!=null?this.font["OS/2"].sFamilyClass:void 0)||0)>>8;let j=0;this.font.post.isFixedPitch&&(j|=1),1<=F&&F<=7&&(j|=2),j|=4,F===10&&(j|=8),this.font.head.macStyle.italic&&(j|=64);const RA=[1,2,3,4,5,6].map(xe=>String.fromCharCode((this.id.charCodeAt(xe)||73)+17)).join("")+"+"+((he=this.font.postscriptName)==null?void 0:he.replaceAll(" ","_")),{bbox:XA}=this.font,ae=this.document.ref({Type:"FontDescriptor",FontName:RA,Flags:j,FontBBox:[XA.minX*this.scale,XA.minY*this.scale,XA.maxX*this.scale,XA.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});if(c?ae.data.FontFile3=P:ae.data.FontFile2=P,this.document.subset&&this.document.subset===1){const xe=a.from("FFFFFFFFC0","hex"),qe=this.document.ref();qe.write(xe),qe.end(),ae.data.CIDSet=qe}ae.end();const Ie={Type:"Font",Subtype:"CIDFontType0",BaseFont:RA,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:ae,W:[0,this.widths]};c||(Ie.Subtype="CIDFontType2",Ie.CIDToGIDMap="Identity");const De=this.document.ref(Ie);return De.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:RA,Encoding:"Identity-H",DescendantFonts:[De],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}toUnicodeCmap(){const c=this.document.ref(),P=[];for(let RA of this.unicode){const XA=[];for(let ae of RA)ae>65535&&(ae-=65536,XA.push(wt(ae>>>10&1023|55296)),ae=56320|ae&1023),XA.push(wt(ae));P.push(`<${XA.join(" ")}>`)}const F=256,j=Math.ceil(P.length/F),sA=[];for(let RA=0;RA<j;RA++){const XA=RA*F,ae=Math.min((RA+1)*F,P.length);sA.push(`<${wt(XA)}> <${wt(ae-1)}> [${P.slice(XA,ae).join(" ")}]`)}return c.end(`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange
${sA.length} beginbfrange
${sA.join(`
`)}
endbfrange
endcmap
CMapName currentdict /CMap defineresource pop
end
end`),c}}class at{static open(c,P,F,j){let sA;if(typeof P=="string"){if(Dt.isStandardFont(P))return new Dt(c,P,j);P=O.readFileSync(P)}if(P instanceof Uint8Array?sA=Y.create(P,F):P instanceof ArrayBuffer&&(sA=Y.create(new Uint8Array(P),F)),sA==null)throw new Error("Not a supported font format or standard PDF font.");return new bt(c,sA,j)}}const Mt=(M,c)=>{var P,F,j,sA,RA,XA,ae,Ie;return!(((F=(P=M.font._tables)==null?void 0:P.head)==null?void 0:F.checkSumAdjustment)!==((sA=(j=c.font._tables)==null?void 0:j.head)==null?void 0:sA.checkSumAdjustment)||JSON.stringify((XA=(RA=M.font._tables)==null?void 0:RA.name)==null?void 0:XA.records)!==JSON.stringify((Ie=(ae=c.font._tables)==null?void 0:ae.name)==null?void 0:Ie.records))};var tr={initFonts(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Helvetica",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:12;this._fontFamilies={},this._fontCount=0,this._fontSource=M,this._fontFamily=c,this._fontSize=P,this._font=null,this._remSize=P,this._registeredFonts={},M&&this.font(M,c)},font(M,c,P){let F,j;if(typeof c=="number"&&(P=c,c=null),typeof M=="string"&&this._registeredFonts[M]?(F=M,{src:M,family:c}=this._registeredFonts[M]):(F=c||M,typeof F!="string"&&(F=null)),this._fontSource=M,this._fontFamily=c,P!=null&&this.fontSize(P),j=this._fontFamilies[F])return this._font=j,this;const sA=`F${++this._fontCount}`;return this._font=at.open(this,M,c,sA),(j=this._fontFamilies[this._font.name])&&Mt(this._font,j)?(this._font=j,this):(F&&(this._fontFamilies[F]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize(M){return this._fontSize=this.sizeToPoint(M),this},currentLineHeight(M){return this._font.lineHeight(this._fontSize,M)},registerFont(M,c,P){return this._registeredFonts[M]={src:c,family:P},this},sizeToPoint(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.page,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;if(F||(F=this._fontSize),typeof c!="number"&&(c=this.sizeToPoint(c)),M===void 0)return c;if(typeof M=="number")return M;if(typeof M=="boolean")return Number(M);const j=String(M).match(/((\d+)?(\.\d+)?)(em|in|px|cm|mm|pc|ex|ch|rem|vw|vh|vmin|vmax|%|pt)?/);if(!j)throw new Error(`Unsupported size '${M}'`);let sA;switch(j[4]){case"em":sA=this._fontSize;break;case"in":sA=yA;break;case"px":sA=cA*yA;break;case"cm":sA=FA*yA;break;case"mm":sA=DA*FA*yA;break;case"pc":sA=zA;break;case"ex":sA=this.currentLineHeight();break;case"ch":sA=this.widthOfString("0");break;case"rem":sA=this._remSize;break;case"vw":sA=P.width/100;break;case"vh":sA=P.height/100;break;case"vmin":sA=Math.min(P.width,P.height)/100;break;case"vmax":sA=Math.max(P.width,P.height)/100;break;case"%":sA=F/100;break;case"pt":default:sA=1}return sA*Number(j[1])}};const Kt="­",Jt="-";class Ut extends z.EventEmitter{constructor(c,P){super(),this.document=c,this.horizontalScaling=P.horizontalScaling||100,this.indent=(P.indent||0)*this.horizontalScaling/100,this.indentAllLines=P.indentAllLines||!1,this.characterSpacing=(P.characterSpacing||0)*this.horizontalScaling/100,this.wordSpacing=(P.wordSpacing===0)*this.horizontalScaling/100,this.columns=P.columns||1,this.columnGap=(P.columnGap!=null?P.columnGap:18)*this.horizontalScaling/100,this.lineWidth=(P.width*this.horizontalScaling/100-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=P.ellipsis,this.continuedX=0,this.features=P.features,P.height!=null?(this.height=P.height,this.maxY=nA(this.startY+P.height)):this.maxY=nA(this.document.page.maxY()),this.on("firstLine",F=>{const j=this.continuedX||this.indent;this.document.x+=j,this.lineWidth-=j,!F.indentAllLines&&this.once("line",()=>{this.document.x-=j,this.lineWidth+=j,F.continued&&!this.continuedX&&(this.continuedX=this.indent),F.continued||(this.continuedX=0)})}),this.on("lastLine",F=>{const{align:j}=F;j==="justify"&&(F.align="left"),this.lastLine=!0,this.once("line",()=>(this.document.y+=F.paragraphGap||0,F.align=j,this.lastLine=!1))})}wordWidth(c){return nA(this.document.widthOfString(c,this)+this.characterSpacing+this.wordSpacing)}canFit(c,P){return c[c.length-1]!=Kt?P<=this.spaceLeft:P+this.wordWidth(Jt)<=this.spaceLeft}eachWord(c,P){let F;const j=new L.default(c);let sA=null;const RA=Object.create(null);for(;F=j.nextBreak();){var XA;let De=c.slice((sA!=null?sA.position:void 0)||0,F.position),he=RA[De]!=null?RA[De]:RA[De]=this.wordWidth(De);if(he>this.lineWidth+this.continuedX){let xe=sA;const qe={};for(;De.length;){var ae,Ie;he>this.spaceLeft?(ae=Math.ceil(this.spaceLeft/(he/De.length)),he=this.wordWidth(De.slice(0,ae)),Ie=he<=this.spaceLeft&&ae<De.length):ae=De.length;let ke=he>this.spaceLeft&&ae>0;for(;ke||Ie;)ke?(he=this.wordWidth(De.slice(0,--ae)),ke=he>this.spaceLeft&&ae>0):(he=this.wordWidth(De.slice(0,++ae)),ke=he>this.spaceLeft&&ae>0,Ie=he<=this.spaceLeft&&ae<De.length);if(ae===0&&this.spaceLeft===this.lineWidth&&(ae=1),qe.required=F.required||ae<De.length,XA=P(De.slice(0,ae),he,qe,xe),xe={required:!1},De=De.slice(ae),he=this.wordWidth(De),XA===!1)break}}else XA=P(De,he,F,sA);if(XA===!1)break;sA=F}}wrap(c,P){this.horizontalScaling=P.horizontalScaling||100,P.indent!=null&&(this.indent=P.indent*this.horizontalScaling/100),P.characterSpacing!=null&&(this.characterSpacing=P.characterSpacing*this.horizontalScaling/100),P.wordSpacing!=null&&(this.wordSpacing=P.wordSpacing*this.horizontalScaling/100),P.ellipsis!=null&&(this.ellipsis=P.ellipsis);const F=this.document.y+this.document.currentLineHeight(!0);(this.document.y>this.maxY||F>this.maxY)&&this.nextSection();let j="",sA=0,RA=0,XA=0,{y:ae}=this.document;const Ie=()=>(P.textWidth=sA+this.wordSpacing*(RA-1),P.wordCount=RA,P.lineWidth=this.lineWidth,{y:ae}=this.document,this.emit("line",j,P,this),XA++);this.emit("sectionStart",P,this),this.eachWord(c,(De,he,xe,qe)=>{if((qe==null||qe.required)&&(this.emit("firstLine",P,this),this.spaceLeft=this.lineWidth),this.canFit(De,he)&&(j+=De,sA+=he,RA++),xe.required||!this.canFit(De,he)){const ke=this.document.currentLineHeight(!0);if(this.height!=null&&this.ellipsis&&nA(this.document.y+ke*2)>this.maxY&&this.column>=this.columns){for(this.ellipsis===!0&&(this.ellipsis="…"),j=j.replace(/\s+$/,""),sA=this.wordWidth(j+this.ellipsis);j&&sA>this.lineWidth;)j=j.slice(0,-1).replace(/\s+$/,""),sA=this.wordWidth(j+this.ellipsis);sA<=this.lineWidth&&(j=j+this.ellipsis),sA=this.wordWidth(j)}if(xe.required&&(he>this.spaceLeft&&(Ie(),j=De,sA=he,RA=1),this.emit("lastLine",P,this)),j[j.length-1]==Kt&&(j=j.slice(0,-1)+Jt,this.spaceLeft-=this.wordWidth(Jt)),Ie(),nA(this.document.y+ke)>this.maxY){if(this.emit("sectionEnd",P,this),!this.nextSection())return RA=0,j="",!1;this.emit("sectionStart",P,this)}return xe.required?(this.spaceLeft=this.lineWidth,j="",sA=0,RA=0):(this.spaceLeft=this.lineWidth-he,j=De,sA=he,RA=1)}else return this.spaceLeft-=he}),RA>0&&(this.emit("lastLine",P,this),Ie()),this.emit("sectionEnd",P,this),P.continued===!0?(XA>1&&(this.continuedX=0),this.continuedX+=P.textWidth||0,this.document.y=ae):this.document.x=this.startX}nextSection(c){if(++this.column>this.columns){if(this.height!=null)return!1;if(this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.indentAllLines){const P=this.continuedX||this.indent;this.document.x+=P,this.lineWidth-=P}else this.document.x=this.startX;this.document._fillColor&&this.document.fillColor(...this.document._fillColor),this.emit("pageBreak",c,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",c,this);return!0}}const{number:$t}=v;function Bi(M,c){if(c==="numbered")return`${M}.`;var P=String.fromCharCode((M-1)%26+65),F=Math.floor((M-1)/26+1),j=Array(F+1).join(P);return`${j}.`}var pr={initText(){this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap(M){return this._lineGap=M,this},moveDown(M){return M==null&&(M=1),this.y+=this.currentLineHeight(!0)*M+this._lineGap,this},moveUp(M){return M==null&&(M=1),this.y-=this.currentLineHeight(!0)*M+this._lineGap,this},_text(M,c,P,F,j){F=this._initOptions(c,P,F),M=M==null?"":`${M}`,F.wordSpacing&&(M=M.replace(/\s{2,}/g," "));const sA=()=>{F.structParent&&F.structParent.add(this.struct(F.structType||"P",[this.markStructureContent(F.structType||"P")]))};if(F.rotation!==0&&(this.save(),this.rotate(-F.rotation,{origin:[this.x,this.y]})),F.width){let RA=this._wrapper;RA||(RA=new Ut(this,F),RA.on("line",j),RA.on("firstLine",sA)),this._wrapper=F.continued?RA:null,this._textOptions=F.continued?F:null,RA.wrap(M,F)}else for(let RA of M.split(`
`))sA(),j(RA,F);return F.rotation!==0&&this.restore(),this},text(M,c,P,F){return this._text(M,c,P,F,this._line)},widthOfString(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const P=c.horizontalScaling||100;return(this._font.widthOfString(M,this._fontSize,c.features)+(c.characterSpacing||0)*(M.length-1))*P/100},boundsOfString(M,c,P,F){F=this._initOptions(c,P,F),{x:c,y:P}=this;const j=F.lineGap??this._lineGap??0,sA=this.currentLineHeight(!0)+j;let RA=0;if(M=String(M??""),F.wordSpacing&&(M=M.replace(/\s{2,}/g," ")),F.width){let zt=new Ut(this,F);zt.on("line",(ot,Nt)=>{if(this.y+=sA,ot=ot.replace(/\n/g,""),ot.length){let Fr=Nt.wordSpacing??0;const cr=Nt.characterSpacing??0;if(Nt.width&&Nt.align==="justify"){const Or=ot.trim().split(/\s+/),Nr=this.widthOfString(ot.replace(/\s+/g,""),Nt),pi=this.widthOfString(" ")+cr;Fr=Math.max(0,(Nt.lineWidth-Nr)/Math.max(1,Or.length-1)-pi)}RA=Math.max(RA,Nt.textWidth+Fr*(Nt.wordCount-1)+cr*(ot.length-1))}}),zt.wrap(M,F)}else for(let zt of M.split(`
`)){const ot=this.widthOfString(zt,F);this.y+=sA,RA=Math.max(RA,ot)}let XA=this.y-P;if(F.height&&(XA=Math.min(XA,F.height)),this.x=c,this.y=P,F.rotation===0)return{x:c,y:P,width:RA,height:XA};if(F.rotation===90)return{x:c,y:P-RA,width:XA,height:RA};if(F.rotation===180)return{x:c-RA,y:P-XA,width:RA,height:XA};if(F.rotation===270)return{x:c-XA,y:P,width:XA,height:RA};const ae=mA(F.rotation),Ie=HA(F.rotation),De=c,he=P,xe=c+RA*ae,qe=P-RA*Ie,ke=c+RA*ae+XA*Ie,Ze=P-RA*Ie+XA*ae,He=c+XA*Ie,At=P+XA*ae,Xe=Math.min(De,xe,ke,He),gt=Math.max(De,xe,ke,He),Ht=Math.min(he,qe,Ze,At),Ot=Math.max(he,qe,Ze,At);return{x:Xe,y:Ht,width:gt-Xe,height:Ot-Ht}},heightOfString(M,c){const{x:P,y:F}=this;c=this._initOptions(c),c.height=1/0;const j=c.lineGap||this._lineGap||0;this._text(M,this.x,this.y,c,()=>{this.y+=this.currentLineHeight(!0)+j});const sA=this.y-F;return this.x=P,this.y=F,sA},list(M,c,P,F){F=this._initOptions(c,P,F);const j=F.listType||"bullet",sA=Math.round(this._font.ascender/1e3*this._fontSize),RA=sA/2,XA=F.bulletRadius||sA/3,ae=F.textIndent||(j==="bullet"?XA*5:sA*2),Ie=F.bulletIndent||(j==="bullet"?XA*8:sA*2);let De=1;const he=[],xe=[],qe=[];var ke=function(He){let At=1;for(let Xe=0;Xe<He.length;Xe++){const gt=He[Xe];Array.isArray(gt)?(De++,ke(gt),De--):(he.push(gt),xe.push(De),j!=="bullet"&&qe.push(At++))}};ke(M);const Ze=function(He,At){const Xe=new Ut(this,F);Xe.on("line",this._line),De=1,Xe.once("firstLine",()=>{let gt,Ht,Ot,zt;F.structParent&&(F.structTypes?[Ht,Ot,zt]=F.structTypes:[Ht,Ot,zt]=["LI","Lbl","LBody"]),Ht?(gt=this.struct(Ht),F.structParent.add(gt)):F.structParent&&(gt=F.structParent);let ot;if((ot=xe[At++])!==De){const Fr=Ie*(ot-De);this.x+=Fr,Xe.lineWidth-=Fr,De=ot}switch(gt&&(Ot||zt)&&gt.add(this.struct(Ot||zt,[this.markStructureContent(Ot||zt)])),j){case"bullet":this.circle(this.x-ae+XA,this.y+RA,XA),this.fill();break;case"numbered":case"lettered":var Nt=Bi(qe[At-1],j);this._fragment(Nt,this.x-ae,this.y,F);break}gt&&Ot&&zt&&gt.add(this.struct(zt,[this.markStructureContent(zt)])),gt&&gt!==F.structParent&&gt.end()}),Xe.on("sectionStart",()=>{const gt=ae+Ie*(De-1);this.x+=gt,Xe.lineWidth-=gt}),Xe.on("sectionEnd",()=>{const gt=ae+Ie*(De-1);this.x-=gt,Xe.lineWidth+=gt}),Xe.wrap(He,F)};for(let He=0;He<he.length;He++)Ze.call(this,he[He],He);return this},_initOptions(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};typeof M=="object"&&(P=M,M=null);const F=Object.assign({},P);if(this._textOptions)for(let j in this._textOptions){const sA=this._textOptions[j];j!=="continued"&&F[j]===void 0&&(F[j]=sA)}return M!=null&&(this.x=M),c!=null&&(this.y=c),F.lineBreak!==!1&&(F.width==null&&(F.width=this.page.width-this.x-this.page.margins.right),F.width=Math.max(F.width,0)),F.columns||(F.columns=0),F.columnGap==null&&(F.columnGap=18),F.rotation=Number(P.rotation??0)%360,F.rotation<0&&(F.rotation+=360),F},_line(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=arguments.length>2?arguments[2]:void 0;if(this._fragment(M,this.x,this.y,c),P){const F=c.lineGap||this._lineGap||0;this.y+=this.currentLineHeight(!0)+F}else this.x+=this.widthOfString(M,c)},_fragment(M,c,P,F){let j,sA,RA,XA,ae,Ie;if(M=`${M}`.replace(/\n/g,""),M.length===0)return;const De=F.align||"left";let he=F.wordSpacing||0;const xe=F.characterSpacing||0,qe=F.horizontalScaling||100;if(F.width)switch(De){case"right":ae=this.widthOfString(M.replace(/\s+$/,""),F),c+=F.lineWidth-ae;break;case"center":c+=F.lineWidth/2-F.textWidth/2;break;case"justify":Ie=M.trim().split(/\s+/),ae=this.widthOfString(M.replace(/\s+/g,""),F);var ke=this.widthOfString(" ")+xe;he=Math.max(0,(F.lineWidth-ae)/Math.max(1,Ie.length-1)-ke);break}if(typeof F.baseline=="number")j=-F.baseline;else{switch(F.baseline){case"svg-middle":j=.5*this._font.xHeight;break;case"middle":case"svg-central":j=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":j=this._font.descender;break;case"alphabetic":j=0;break;case"mathematical":j=.5*this._font.ascender;break;case"hanging":j=.8*this._font.ascender;break;case"top":j=this._font.ascender;break;default:j=this._font.ascender}j=j/1e3*this._fontSize}const Ze=F.textWidth+he*(F.wordCount-1)+xe*(M.length-1);if(F.link!=null){const ot={};this._currentStructureElement&&this._currentStructureElement.dictionary.data.S==="Link"&&(ot.structParent=this._currentStructureElement),this.link(c,P,Ze,this.currentLineHeight(),F.link,ot)}if(F.goTo!=null&&this.goTo(c,P,Ze,this.currentLineHeight(),F.goTo),F.destination!=null&&this.addNamedDestination(F.destination,"XYZ",c,P,null),F.underline){this.save(),F.stroke||this.strokeColor(...this._fillColor||[]);const ot=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(ot);let Nt=P+this.currentLineHeight()-ot;this.moveTo(c,Nt),this.lineTo(c+Ze,Nt),this.stroke(),this.restore()}if(F.strike){this.save(),F.stroke||this.strokeColor(...this._fillColor||[]);const ot=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(ot);let Nt=P+this.currentLineHeight()/2;this.moveTo(c,Nt),this.lineTo(c+Ze,Nt),this.stroke(),this.restore()}if(this.save(),F.oblique){let ot;typeof F.oblique=="number"?ot=-Math.tan(F.oblique*Math.PI/180):ot=-.25,this.transform(1,0,0,1,c,P),this.transform(1,0,ot,1,-ot*j,0),this.transform(1,0,0,1,-c,-P)}this.transform(1,0,0,-1,0,this.page.height),P=this.page.height-P-j,this.page.fonts[this._font.id]==null&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent(`1 0 0 1 ${$t(c)} ${$t(P)} Tm`),this.addContent(`/${this._font.id} ${$t(this._fontSize)} Tf`);const He=F.fill&&F.stroke?2:F.stroke?1:0;if(He&&this.addContent(`${He} Tr`),xe&&this.addContent(`${$t(xe)} Tc`),qe!==100&&this.addContent(`${qe} Tz`),he){Ie=M.trim().split(/\s+/),he+=this.widthOfString(" ")+xe,he*=1e3/this._fontSize,sA=[],XA=[];for(let ot of Ie){const[Nt,Fr]=this._font.encode(ot,F.features);sA=sA.concat(Nt),XA=XA.concat(Fr);const cr={},Or=XA[XA.length-1];for(let Nr in Or){const pi=Or[Nr];cr[Nr]=pi}cr.xAdvance+=he,XA[XA.length-1]=cr}}else[sA,XA]=this._font.encode(M,F.features);const At=this._fontSize/1e3,Xe=[];let gt=0,Ht=!1;const Ot=ot=>{if(gt<ot){const Nt=sA.slice(gt,ot).join(""),Fr=XA[ot-1].xAdvance-XA[ot-1].advanceWidth;Xe.push(`<${Nt}> ${$t(-Fr)}`)}gt=ot},zt=ot=>{Ot(ot),Xe.length>0&&(this.addContent(`[${Xe.join(" ")}] TJ`),Xe.length=0)};for(RA=0;RA<XA.length;RA++){const ot=XA[RA];ot.xOffset||ot.yOffset?(zt(RA),this.addContent(`1 0 0 1 ${$t(c+ot.xOffset*At)} ${$t(P+ot.yOffset*At)} Tm`),zt(RA+1),Ht=!0):(Ht&&(this.addContent(`1 0 0 1 ${$t(c)} ${$t(P)} Tm`),Ht=!1),ot.xAdvance-ot.advanceWidth!==0&&Ot(RA+1)),c+=ot.xAdvance*At}zt(RA),this.addContent("ET"),this.restore()}};const hr=M=>{if(!M||M.length<20)return null;let c=2;for(;c<M.length-4;){for(;c<M.length&&M[c]!==255;)c++;if(c>=M.length-4)return null;const P=M.readUInt16BE(c);if(c+=2,P===65498)return null;if(P>=65488&&P<=65497||P===65281)continue;if(c+2>M.length)return null;const F=M.readUInt16BE(c);if(P===65505&&c+8<=M.length&&M.subarray(c+2,c+8).toString("binary")==="Exif\0\0"){const sA=c+8;if(sA+8>M.length)return null;const RA=M.subarray(sA,sA+2).toString("ascii"),XA=RA==="II";if(!XA&&RA!=="MM")return null;const ae=XA?xe=>M.readUInt16LE(xe):xe=>M.readUInt16BE(xe),Ie=XA?xe=>M.readUInt32LE(xe):xe=>M.readUInt32BE(xe);if(ae(sA+2)!==42)return null;const De=sA+Ie(sA+4);if(De+2>M.length)return null;const he=ae(De);for(let xe=0;xe<he;xe++){const qe=De+2+xe*12;if(qe+12>M.length)return null;if(ae(qe)===274){const ke=ae(qe+8);return ke>=1&&ke<=8?ke:null}}return null}c+=F}return null},Pr=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],Er={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"};class Rr{constructor(c,P){let F;if(this.data=c,this.label=P,this.data.readUInt16BE(0)!==65496)throw"SOI not found in JPEG";this.orientation=hr(this.data)||1;let j=2;for(;j<this.data.length;){for(;j<this.data.length&&this.data[j]!==255;)j++;if(j>=this.data.length||(F=this.data.readUInt16BE(j),j+=2,Pr.includes(F)))break;j+=this.data.readUInt16BE(j)}if(!Pr.includes(F))throw"Invalid JPEG.";j+=2,this.bits=this.data[j++],this.height=this.data.readUInt16BE(j),j+=2,this.width=this.data.readUInt16BE(j),j+=2;const sA=this.data[j++];this.colorSpace=Er[sA],this.obj=null}embed(c){if(!this.obj)return this.obj=c.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),this.colorSpace==="DeviceCMYK"&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null}}class dr{constructor(c,P){this.label=P,this.image=new T.default(c),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}embed(c){let P=!1;if(this.document=c,this.obj)return;const F=this.image.hasAlphaChannel,j=this.image.interlaceMethod===1;if(this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:F?8:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"}),!F){const sA=this.document.ref({Predictor:j?1:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width});this.obj.data.DecodeParms=sA,sA.end()}if(this.image.palette.length===0)this.obj.data.ColorSpace=this.image.colorSpace;else{const sA=this.document.ref();sA.end(a.from(this.image.palette)),this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,sA]}if(this.image.transparency.grayscale!=null){const sA=this.image.transparency.grayscale;this.obj.data.Mask=[sA,sA]}else if(this.image.transparency.rgb){const{rgb:sA}=this.image.transparency,RA=[];for(let XA of sA)RA.push(XA,XA);this.obj.data.Mask=RA}else{if(this.image.transparency.indexed)return P=!0,this.loadIndexedAlphaChannel();if(F)return P=!0,this.splitAlphaChannel()}if(j&&!P)return this.decodeData();this.finalize()}finalize(){if(this.alphaChannel){const c=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});c.end(this.alphaChannel),this.obj.data.SMask=c}return this.obj.end(this.imgData),this.image=null,this.imgData=null}splitAlphaChannel(){return this.image.decodePixels(c=>{let P,F;const j=this.image.colors,sA=this.width*this.height,RA=a.alloc(sA*j),XA=a.alloc(sA);let ae=F=P=0;const Ie=c.length,De=this.image.bits===16?1:0;for(;ae<Ie;){for(let he=0;he<j;he++)RA[F++]=c[ae++],ae+=De;XA[P++]=c[ae++],ae+=De}return this.imgData=h.default.deflateSync(RA),this.alphaChannel=h.default.deflateSync(XA),this.finalize()})}loadIndexedAlphaChannel(){const c=this.image.transparency.indexed,P=this.image.interlaceMethod===1;return this.image.decodePixels(F=>{const j=a.alloc(this.width*this.height);let sA=0;for(let RA=0,XA=F.length;RA<XA;RA++)j[sA++]=c[F[RA]];return P&&(this.imgData=h.default.deflateSync(a.from(F))),this.alphaChannel=h.default.deflateSync(j),this.finalize()})}decodeData(){this.image.decodePixels(c=>{this.imgData=h.default.deflateSync(c),this.finalize()})}}class vr{static open(c,P){let F;if(a.isBuffer(c))F=c;else if(c instanceof ArrayBuffer)F=a.from(new Uint8Array(c));else{const j=/^data:.+?;base64,(.*)$/.exec(c);if(j)F=a.from(j[1],"base64");else if(F=O.readFileSync(c),!F)return}if(F[0]===255&&F[1]===216)return new Rr(F,P);if(F[0]===137&&F.toString("ascii",1,4)==="PNG")return new dr(F,P);throw new Error("Unknown image format.")}}var yr={initImages(){this._imageRegistry={},this._imageCount=0},image(M,c,P){let F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j,sA,RA,XA,ae,Ie,De,he,xe;typeof c=="object"&&(F=c,c=null);const qe=F.ignoreOrientation||F.ignoreOrientation!==!1&&this.options.ignoreOrientation,ke=typeof P!="number";c=(Ie=c??F.x)!=null?Ie:this.x,P=(De=P??F.y)!=null?De:this.y,typeof M=="string"&&(XA=this._imageRegistry[M]),XA||(M.width&&M.height?XA=M:XA=this.openImage(M)),XA.obj||XA.embed(this),this.page.xobjects[XA.label]==null&&(this.page.xobjects[XA.label]=XA.obj);let{width:Ze,height:He}=XA;!qe&&XA.orientation>4&&([Ze,He]=[He,Ze]);let At=F.width||Ze,Xe=F.height||He;if(F.width&&!F.height){const Nt=At/Ze;At=Ze*Nt,Xe=He*Nt}else if(F.height&&!F.width){const Nt=Xe/He;At=Ze*Nt,Xe=He*Nt}else F.scale?(At=Ze*F.scale,Xe=He*F.scale):F.fit?([RA,j]=F.fit,sA=RA/j,ae=Ze/He,ae>sA?(At=RA,Xe=RA/ae):(Xe=j,At=j*ae)):F.cover&&([RA,j]=F.cover,sA=RA/j,ae=Ze/He,ae>sA?(Xe=j,At=j*ae):(At=RA,Xe=RA/ae));(F.fit||F.cover)&&(F.align==="center"?c=c+RA/2-At/2:F.align==="right"&&(c=c+RA-At),F.valign==="center"?P=P+j/2-Xe/2:F.valign==="bottom"&&(P=P+j-Xe));let gt=0,Ht=c,Ot=P,zt=Xe,ot=At;if(qe)zt=-Xe,Ot+=Xe;else switch(XA.orientation){default:case 1:zt=-Xe,Ot+=Xe;break;case 2:ot=-At,zt=-Xe,Ht+=At,Ot+=Xe;break;case 3:he=c,xe=P,zt=-Xe,Ht-=At,gt=180;break;case 4:break;case 5:he=c,xe=P,ot=Xe,zt=At,Ot-=zt,gt=90;break;case 6:he=c,xe=P,ot=Xe,zt=-At,gt=90;break;case 7:he=c,xe=P,zt=-At,ot=-Xe,Ht+=Xe,gt=90;break;case 8:he=c,xe=P,ot=Xe,zt=-At,Ht-=Xe,Ot+=At,gt=-90;break}return F.link!=null&&this.link(c,P,At,Xe,F.link),F.goTo!=null&&this.goTo(c,P,At,Xe,F.goTo),F.destination!=null&&this.addNamedDestination(F.destination,"XYZ",c,P,null),ke&&(this.y+=Xe),this.save(),gt&&this.rotate(gt,{origin:[he,xe]}),this.transform(ot,0,0,zt,Ht,Ot),this.addContent(`/${XA.label} Do`),this.restore(),this},openImage(M){let c;return typeof M=="string"&&(c=this._imageRegistry[M]),c||(c=vr.open(M,`I${++this._imageCount}`),typeof M=="string"&&(this._imageRegistry[M]=c)),c}};class xr{constructor(c){this.annotationRef=c}}var bi={annotate(M,c,P,F,j){j.Type="Annot",j.Rect=this._convertRect(M,c,P,F),j.Border=[0,0,0],j.Subtype==="Link"&&typeof j.F>"u"&&(j.F=4),j.Subtype!=="Link"&&j.C==null&&(j.C=this._normalizeColor(j.color||[0,0,0])),delete j.color,typeof j.Dest=="string"&&(j.Dest=new String(j.Dest));const sA=j.structParent;delete j.structParent;for(let XA in j){const ae=j[XA];j[XA[0].toUpperCase()+XA.slice(1)]=ae}const RA=this.ref(j);if(this.page.annotations.push(RA),sA&&typeof sA.add=="function"){const XA=new xr(RA);sA.add(XA)}return RA.end(),this},note(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return sA.Subtype="Text",sA.Contents=new String(j),sA.Name==null&&(sA.Name="Comment"),sA.color==null&&(sA.color=[243,223,92]),this.annotate(M,c,P,F,sA)},goTo(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return sA.Subtype="Link",sA.A=this.ref({S:"GoTo",D:new String(j)}),sA.A.end(),this.annotate(M,c,P,F,sA)},link(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(sA.Subtype="Link",typeof j=="number"){const RA=this._root.data.Pages.data;if(j>=0&&j<RA.Kids.length)sA.A=this.ref({S:"GoTo",D:[RA.Kids[j],"XYZ",null,null,null]}),sA.A.end();else throw new Error(`The document has no page ${j}`)}else sA.A=this.ref({S:"URI",URI:new String(j)}),sA.A.end();return sA.structParent&&!sA.Contents&&(sA.Contents=new String("")),this.annotate(M,c,P,F,sA)},_markup(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};const[sA,RA,XA,ae]=this._convertRect(M,c,P,F);return j.QuadPoints=[sA,ae,XA,ae,sA,RA,XA,RA],j.Contents=new String,this.annotate(M,c,P,F,j)},highlight(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return j.Subtype="Highlight",j.color==null&&(j.color=[241,238,148]),this._markup(M,c,P,F,j)},underline(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return j.Subtype="Underline",this._markup(M,c,P,F,j)},strike(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return j.Subtype="StrikeOut",this._markup(M,c,P,F,j)},lineAnnotation(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return j.Subtype="Line",j.Contents=new String,j.L=[M,this.page.height-c,P,this.page.height-F],this.annotate(M,c,P,F,j)},rectAnnotation(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return j.Subtype="Square",j.Contents=new String,this.annotate(M,c,P,F,j)},ellipseAnnotation(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return j.Subtype="Circle",j.Contents=new String,this.annotate(M,c,P,F,j)},textAnnotation(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return sA.Subtype="FreeText",sA.Contents=new String(j),sA.DA=new String,this.annotate(M,c,P,F,sA)},fileAnnotation(M,c,P,F){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};const RA=this.file(j.src,Object.assign({hidden:!0},j));return sA.Subtype="FileAttachment",sA.FS=RA,sA.Contents?sA.Contents=new String(sA.Contents):RA.data.Desc&&(sA.Contents=RA.data.Desc),this.annotate(M,c,P,F,sA)},_convertRect(M,c,P,F){let j=c;c+=F;let sA=M+P;const[RA,XA,ae,Ie,De,he]=this._ctm;return M=RA*M+ae*c+De,c=XA*M+Ie*c+he,sA=RA*sA+ae*j+De,j=XA*sA+Ie*j+he,[M,c,sA,j]}};const mr={top:0,left:0,zoom:0,fit:!0,pageNumber:null,expanded:!1};class ii{constructor(c,P,F,j){let sA=arguments.length>4&&arguments[4]!==void 0?arguments[4]:mr;if(this.document=c,this.options=sA,this.outlineData={},j!==null){const RA=j.data.MediaBox[2],ae=j.data.MediaBox[3]-(sA.top||0),Ie=RA-(sA.left||0),De=sA.zoom||0;this.outlineData.Dest=sA.fit?[j,"Fit"]:[j,"XYZ",Ie,ae,De]}P!==null&&(this.outlineData.Parent=P),F!==null&&(this.outlineData.Title=new String(F)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}addItem(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mr;const F=this.document._root.data.Pages.data.Kids,j=P.pageNumber!=null?F[P.pageNumber]:this.document.page.dictionary,sA=new ii(this.document,this.dictionary,c,j,P);return this.children.push(sA),sA}endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);const c=this.children[0],P=this.children[this.children.length-1];this.outlineData.First=c.dictionary,this.outlineData.Last=P.dictionary;for(let F=0,j=this.children.length;F<j;F++){const sA=this.children[F];F>0&&(sA.outlineData.Prev=this.children[F-1].dictionary),F<this.children.length-1&&(sA.outlineData.Next=this.children[F+1].dictionary),sA.endOutline()}}return this.dictionary.end()}}var Ui={initOutline(){this.outline=new ii(this,null,null,null)},endOutline(){if(this.outline.endOutline(),this.outline.children.length>0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode=this._root.data.PageMode||"UseOutlines"}};class ni{constructor(c,P){this.refs=[{pageRef:c,mcid:P}]}push(c){c.refs.forEach(P=>this.refs.push(P))}}class gr{constructor(c,P){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;this.document=c,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=c.ref({S:P});const sA=this.dictionary.data;(Array.isArray(F)||this._isValidChild(F))&&(j=F,F={}),typeof F.title<"u"&&(sA.T=new String(F.title)),typeof F.lang<"u"&&(sA.Lang=new String(F.lang)),typeof F.alt<"u"&&(sA.Alt=new String(F.alt)),typeof F.expanded<"u"&&(sA.E=new String(F.expanded)),typeof F.actual<"u"&&(sA.ActualText=new String(F.actual)),this._children=[],j&&(Array.isArray(j)||(j=[j]),j.forEach(RA=>this.add(RA)),this.end())}add(c){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(c))throw new Error("Invalid structure element child");return c instanceof gr&&(c.setParent(this.dictionary),this._attached&&c.setAttached()),c instanceof ni&&this._addContentToParentTree(c),c instanceof xr&&this._addAnnotationToParentTree(c.annotationRef),typeof c=="function"&&this._attached&&(c=this._contentForClosure(c)),this._children.push(c),this}_addContentToParentTree(c){c.refs.forEach(P=>{let{pageRef:F,mcid:j}=P;const sA=this.document.getStructParentTree().get(F.data.StructParents);sA[j]=this.dictionary})}_addAnnotationToParentTree(c){const P=this.document.createStructParentTreeNextKey();c.data.StructParent=P,this.document.getStructParentTree().add(P,this.dictionary)}setParent(c){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=c,this._flush()}setAttached(){this._attached||(this._children.forEach((c,P)=>{c instanceof gr&&c.setAttached(),typeof c=="function"&&(this._children[P]=this._contentForClosure(c))}),this._attached=!0,this._flush())}end(){this._ended||(this._children.filter(c=>c instanceof gr).forEach(c=>c.end()),this._ended=!0,this._flush())}_isValidChild(c){return c instanceof gr||c instanceof ni||c instanceof xr||typeof c=="function"}_contentForClosure(c){const P=this.document.markStructureContent(this.dictionary.data.S),F=this.document._currentStructureElement;this.document._currentStructureElement=this;const j=this._ended;return this._ended=!1,c(),this._ended=j,this.document._currentStructureElement=F,this.document.endMarkedContent(),this._addContentToParentTree(P),P}_isFlushable(){return!this.dictionary.data.P||!this._ended?!1:this._children.every(c=>typeof c=="function"?!1:c instanceof gr?c._isFlushable():!0)}_flush(){this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(c=>this._flushChild(c)),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}_flushChild(c){if(c instanceof gr&&this.dictionary.data.K.push(c.dictionary),c instanceof ni&&c.refs.forEach(P=>{let{pageRef:F,mcid:j}=P;this.dictionary.data.Pg||(this.dictionary.data.Pg=F),this.dictionary.data.Pg===F?this.dictionary.data.K.push(j):this.dictionary.data.K.push({Type:"MCR",Pg:F,MCID:j})}),c instanceof xr){const P=this.document.page.dictionary,F={Type:"OBJR",Obj:c.annotationRef,Pg:P};this.dictionary.data.K.push(F)}}}class Mi extends oA{_compareKeys(c,P){return parseInt(c)-parseInt(P)}_keysName(){return"Nums"}_dataForKey(c){return parseInt(c)}}var On={initMarkings(M){this.structChildren=[],M.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(M==="Artifact"||c&&c.mcid){let F=0;for(this.page.markings.forEach(j=>{(F||j.structContent||j.tag==="Artifact")&&F++});F--;)this.endMarkedContent()}if(!c)return this.page.markings.push({tag:M}),this.addContent(`/${M} BMC`),this;this.page.markings.push({tag:M,options:c});const P={};return typeof c.mcid<"u"&&(P.MCID=c.mcid),M==="Artifact"&&(typeof c.type=="string"&&(P.Type=c.type),Array.isArray(c.bbox)&&(P.BBox=[c.bbox[0],this.page.height-c.bbox[3],c.bbox[2],this.page.height-c.bbox[1]]),Array.isArray(c.attached)&&c.attached.every(F=>typeof F=="string")&&(P.Attached=c.attached)),M==="Span"&&(c.lang&&(P.Lang=new String(c.lang)),c.alt&&(P.Alt=new String(c.alt)),c.expanded&&(P.E=new String(c.expanded)),c.actual&&(P.ActualText=new String(c.actual))),this.addContent(`/${M} ${v.convert(P)} BDC`),this},markStructureContent(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const P=this.getStructParentTree().get(this.page.structParentTreeKey),F=P.length;P.push(null),this.markContent(M,{...c,mcid:F});const j=new ni(this.page.dictionary,F);return this.page.markings.slice(-1)[0].structContent=j,j},endMarkedContent(){return this.page.markings.pop(),this.addContent("EMC"),this._textOptions&&(delete this._textOptions.link,delete this._textOptions.goTo,delete this._textOptions.destination,delete this._textOptions.underline,delete this._textOptions.strike),this},struct(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new gr(this,M,c,P)},addStructure(M){const c=this.getStructTreeRoot();return M.setParent(c),M.setAttached(),this.structChildren.push(M),c.data.K||(c.data.K=[]),c.data.K.push(M.dictionary),this},initPageMarkings(M){M.forEach(c=>{if(c.structContent){const P=c.structContent,F=this.markStructureContent(c.tag,c.options);P.push(F),this.page.markings.slice(-1)[0].structContent=P}else this.markContent(c.tag,c.options)})},endPageMarkings(M){const c=M.markings;return c.forEach(()=>M.write("EMC")),M.markings=[],c},getMarkInfoDictionary(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},hasMarkInfoDictionary(){return!!this._root.data.MarkInfo},getStructTreeRoot(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Mi,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey(){this.getMarkInfoDictionary();const M=this.getStructTreeRoot(),c=M.data.ParentTreeNextKey++;return M.data.ParentTree.add(c,[]),c},endMarkings(){const M=this._root.data.StructTreeRoot;M&&(M.end(),this.structChildren.forEach(c=>c.end())),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}};const on={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},Bn={left:0,center:1,right:2},li={value:"V",defaultValue:"DV"},ln={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},gn={number:{nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},percent:{nDec:0,sepComma:!1}};var cn={initForm(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();let M={Fields:[],NeedAppearances:!0,DA:new String(`/${this._font.id} 0 Tf 0 g`),DR:{Font:{}}};M.DR.Font[this._font.id]=this._font.ref();const c=this.ref(M);return this._root.data.AcroForm=c,this},endAcroForm(){if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");let M=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(c=>{M[c]=this._acroform.fonts[c]}),this._root.data.AcroForm.data.Fields.forEach(c=>{this._endChild(c)}),this._root.data.AcroForm.end()}return this},_endChild(M){return Array.isArray(M.data.Kids)&&(M.data.Kids.forEach(c=>{this._endChild(c)}),M.end()),this},formField(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=this._fieldDict(M,null,c),F=this.ref(P);return this._addToParent(F),F},formAnnotation(M,c,P,F,j,sA){let RA=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},XA=this._fieldDict(M,c,RA);XA.Subtype="Widget",XA.F===void 0&&(XA.F=4),this.annotate(P,F,j,sA,XA);let ae=this.page.annotations[this.page.annotations.length-1];return this._addToParent(ae)},formText(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return this.formAnnotation(M,"text",c,P,F,j,sA)},formPushButton(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return this.formAnnotation(M,"pushButton",c,P,F,j,sA)},formCombo(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return this.formAnnotation(M,"combo",c,P,F,j,sA)},formList(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return this.formAnnotation(M,"list",c,P,F,j,sA)},formRadioButton(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return this.formAnnotation(M,"radioButton",c,P,F,j,sA)},formCheckbox(M,c,P,F,j){let sA=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return this.formAnnotation(M,"checkbox",c,P,F,j,sA)},_addToParent(M){let c=M.data.Parent;return c?(c.data.Kids||(c.data.Kids=[]),c.data.Kids.push(M)):this._root.data.AcroForm.data.Fields.push(M),this},_fieldDict(M,c){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForm() method before adding form elements to document");let F=Object.assign({},P);return c!==null&&(F=this._resolveType(c,P)),F=this._resolveFlags(F),F=this._resolveJustify(F),F=this._resolveFont(F),F=this._resolveStrings(F),F=this._resolveColors(F),F=this._resolveFormat(F),F.T=new String(M),F.parent&&(F.Parent=F.parent,delete F.parent),F},_resolveType(M,c){if(M==="text")c.FT="Tx";else if(M==="pushButton")c.FT="Btn",c.pushButton=!0;else if(M==="radioButton")c.FT="Btn",c.radioButton=!0;else if(M==="checkbox")c.FT="Btn";else if(M==="combo")c.FT="Ch",c.combo=!0;else if(M==="list")c.FT="Ch";else throw new Error(`Invalid form annotation type '${M}'`);return c},_resolveFormat(M){const c=M.format;if(c&&c.type){let P,F,j="";if(ln[c.type]!==void 0)P="AFSpecial_Keystroke",F="AFSpecial_Format",j=ln[c.type];else{let sA=c.type.charAt(0).toUpperCase()+c.type.slice(1);if(P=`AF${sA}_Keystroke`,F=`AF${sA}_Format`,c.type==="date")P+="Ex",j=String(c.param);else if(c.type==="time")j=String(c.param);else if(c.type==="number"){let RA=Object.assign({},gn.number,c);j=String([String(RA.nDec),RA.sepComma?"0":"1",'"'+RA.negStyle+'"',"null",'"'+RA.currency+'"',String(RA.currencyPrepend)].join(","))}else if(c.type==="percent"){let RA=Object.assign({},gn.percent,c);j=String([String(RA.nDec),RA.sepComma?"0":"1"].join(","))}}M.AA=M.AA?M.AA:{},M.AA.K={S:"JavaScript",JS:new String(`${P}(${j});`)},M.AA.F={S:"JavaScript",JS:new String(`${F}(${j});`)}}return delete M.format,M},_resolveColors(M){let c=this._normalizeColor(M.backgroundColor);return c&&(M.MK||(M.MK={}),M.MK.BG=c),c=this._normalizeColor(M.borderColor),c&&(M.MK||(M.MK={}),M.MK.BC=c),delete M.backgroundColor,delete M.borderColor,M},_resolveFlags(M){let c=0;return Object.keys(M).forEach(P=>{on[P]&&(M[P]&&(c|=on[P]),delete M[P])}),c!==0&&(M.Ff=M.Ff?M.Ff:0,M.Ff|=c),M},_resolveJustify(M){let c=0;return M.align!==void 0&&(typeof Bn[M.align]=="number"&&(c=Bn[M.align]),delete M.align),c!==0&&(M.Q=c),M},_resolveFont(M){if(this._acroform.fonts[this._font.id]==null&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){M.DR={Font:{}};const c=M.fontSize||0;M.DR.Font[this._font.id]=this._font.ref(),M.DA=new String(`/${this._font.id} ${c} Tf 0 g`)}return M},_resolveStrings(M){let c=[];function P(F){if(Array.isArray(F))for(let j=0;j<F.length;j++)typeof F[j]=="string"?c.push(new String(F[j])):c.push(F[j])}return P(M.Opt),M.select&&(P(M.select),delete M.select),c.length&&(M.Opt=c),Object.keys(li).forEach(F=>{M[F]!==void 0&&(M[li[F]]=M[F],delete M[F])}),["V","DV"].forEach(F=>{typeof M[F]=="string"&&(M[F]=new String(M[F]))}),M.MK&&M.MK.CA&&(M.MK.CA=new String(M.MK.CA)),M.label&&(M.MK=M.MK?M.MK:{},M.MK.CA=new String(M.label),delete M.label),M}},Wn={file(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c.name=c.name||M,c.relationship=c.relationship||"Unspecified";const P={Type:"EmbeddedFile",Params:{}};let F;if(!M)throw new Error("No src specified");if(a.isBuffer(M))F=M;else if(M instanceof ArrayBuffer)F=a.from(new Uint8Array(M));else{const Ie=/^data:(.*?);base64,(.*)$/.exec(M);if(Ie)Ie[1]&&(P.Subtype=Ie[1].replace("/","#2F")),F=a.from(Ie[2],"base64");else{if(F=O.readFileSync(M),!F)throw new Error(`Could not read contents of file at filepath ${M}`);const{birthtime:De,ctime:he}=O.statSync(M);P.Params.CreationDate=De,P.Params.ModDate=he}}c.creationDate instanceof Date&&(P.Params.CreationDate=c.creationDate),c.modifiedDate instanceof Date&&(P.Params.ModDate=c.modifiedDate),c.type&&(P.Subtype=c.type.replace("/","#2F"));const j=R(new Uint8Array(F));P.Params.CheckSum=new String(j),P.Params.Size=F.byteLength;let sA;this._fileRegistry||(this._fileRegistry={});let RA=this._fileRegistry[c.name];RA&&Kn(P,RA)?sA=RA.ref:(sA=this.ref(P),sA.end(F),this._fileRegistry[c.name]={...P,ref:sA});const XA={Type:"Filespec",AFRelationship:c.relationship,F:new String(c.name),EF:{F:sA},UF:new String(c.name)};c.description&&(XA.Desc=new String(c.description));const ae=this.ref(XA);return ae.end(),c.hidden||this.addNamedEmbeddedFile(c.name,ae),this._root.data.AF?this._root.data.AF.push(ae):this._root.data.AF=[ae],ae}};function Kn(M,c){return M.Subtype===c.Subtype&&M.Params.CheckSum.toString()===c.Params.CheckSum.toString()&&M.Params.Size===c.Params.Size&&M.Params.CreationDate.getTime()===c.Params.CreationDate.getTime()&&(M.Params.ModDate===void 0&&c.Params.ModDate===void 0||M.Params.ModDate.getTime()===c.Params.ModDate.getTime())}var Vn={initPDFA(M){M.charAt(M.length-3)==="-"?(this.subset_conformance=M.charAt(M.length-1).toUpperCase(),this.subset=parseInt(M.charAt(M.length-2))):(this.subset_conformance="B",this.subset=parseInt(M.charAt(M.length-1)))},endSubset(){this._addPdfaMetadata(),this._addColorOutputIntent()},_addColorOutputIntent(){const M=a("AAAL0AAAAAACAAAAbW50clJHQiBYWVogB98AAgAPAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAPbWAAEAAAAA0y0AAAAAPQ6y3q6Tl76bZybOjApDzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQZGVzYwAAAUQAAABjYlhZWgAAAagAAAAUYlRSQwAAAbwAAAgMZ1RSQwAAAbwAAAgMclRSQwAAAbwAAAgMZG1kZAAACcgAAACIZ1hZWgAAClAAAAAUbHVtaQAACmQAAAAUbWVhcwAACngAAAAkYmtwdAAACpwAAAAUclhZWgAACrAAAAAUdGVjaAAACsQAAAAMdnVlZAAACtAAAACHd3RwdAAAC1gAAAAUY3BydAAAC2wAAAA3Y2hhZAAAC6QAAAAsZGVzYwAAAAAAAAAJc1JHQjIwMTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAQAAAAABQAKAA8AFAAZAB4AIwAoAC0AMgA3ADsAQABFAEoATwBUAFkAXgBjAGgAbQByAHcAfACBAIYAiwCQAJUAmgCfAKQAqQCuALIAtwC8AMEAxgDLANAA1QDbAOAA5QDrAPAA9gD7AQEBBwENARMBGQEfASUBKwEyATgBPgFFAUwBUgFZAWABZwFuAXUBfAGDAYsBkgGaAaEBqQGxAbkBwQHJAdEB2QHhAekB8gH6AgMCDAIUAh0CJgIvAjgCQQJLAlQCXQJnAnECegKEAo4CmAKiAqwCtgLBAssC1QLgAusC9QMAAwsDFgMhAy0DOANDA08DWgNmA3IDfgOKA5YDogOuA7oDxwPTA+AD7AP5BAYEEwQgBC0EOwRIBFUEYwRxBH4EjASaBKgEtgTEBNME4QTwBP4FDQUcBSsFOgVJBVgFZwV3BYYFlgWmBbUFxQXVBeUF9gYGBhYGJwY3BkgGWQZqBnsGjAadBq8GwAbRBuMG9QcHBxkHKwc9B08HYQd0B4YHmQesB78H0gflB/gICwgfCDIIRghaCG4IggiWCKoIvgjSCOcI+wkQCSUJOglPCWQJeQmPCaQJugnPCeUJ+woRCicKPQpUCmoKgQqYCq4KxQrcCvMLCwsiCzkLUQtpC4ALmAuwC8gL4Qv5DBIMKgxDDFwMdQyODKcMwAzZDPMNDQ0mDUANWg10DY4NqQ3DDd4N+A4TDi4OSQ5kDn8Omw62DtIO7g8JDyUPQQ9eD3oPlg+zD88P7BAJECYQQxBhEH4QmxC5ENcQ9RETETERTxFtEYwRqhHJEegSBxImEkUSZBKEEqMSwxLjEwMTIxNDE2MTgxOkE8UT5RQGFCcUSRRqFIsUrRTOFPAVEhU0FVYVeBWbFb0V4BYDFiYWSRZsFo8WshbWFvoXHRdBF2UXiReuF9IX9xgbGEAYZRiKGK8Y1Rj6GSAZRRlrGZEZtxndGgQaKhpRGncanhrFGuwbFBs7G2MbihuyG9ocAhwqHFIcexyjHMwc9R0eHUcdcB2ZHcMd7B4WHkAeah6UHr4e6R8THz4faR+UH78f6iAVIEEgbCCYIMQg8CEcIUghdSGhIc4h+yInIlUigiKvIt0jCiM4I2YjlCPCI/AkHyRNJHwkqyTaJQklOCVoJZclxyX3JicmVyaHJrcm6CcYJ0kneierJ9woDSg/KHEooijUKQYpOClrKZ0p0CoCKjUqaCqbKs8rAis2K2krnSvRLAUsOSxuLKIs1y0MLUEtdi2rLeEuFi5MLoIuty7uLyQvWi+RL8cv/jA1MGwwpDDbMRIxSjGCMbox8jIqMmMymzLUMw0zRjN/M7gz8TQrNGU0njTYNRM1TTWHNcI1/TY3NnI2rjbpNyQ3YDecN9c4FDhQOIw4yDkFOUI5fzm8Ofk6Njp0OrI67zstO2s7qjvoPCc8ZTykPOM9Ij1hPaE94D4gPmA+oD7gPyE/YT+iP+JAI0BkQKZA50EpQWpBrEHuQjBCckK1QvdDOkN9Q8BEA0RHRIpEzkUSRVVFmkXeRiJGZ0arRvBHNUd7R8BIBUhLSJFI10kdSWNJqUnwSjdKfUrESwxLU0uaS+JMKkxyTLpNAk1KTZNN3E4lTm5Ot08AT0lPk0/dUCdQcVC7UQZRUFGbUeZSMVJ8UsdTE1NfU6pT9lRCVI9U21UoVXVVwlYPVlxWqVb3V0RXklfgWC9YfVjLWRpZaVm4WgdaVlqmWvVbRVuVW+VcNVyGXNZdJ114XcleGl5sXr1fD19hX7NgBWBXYKpg/GFPYaJh9WJJYpxi8GNDY5dj62RAZJRk6WU9ZZJl52Y9ZpJm6Gc9Z5Nn6Wg/aJZo7GlDaZpp8WpIap9q92tPa6dr/2xXbK9tCG1gbbluEm5rbsRvHm94b9FwK3CGcOBxOnGVcfByS3KmcwFzXXO4dBR0cHTMdSh1hXXhdj52m3b4d1Z3s3gReG54zHkqeYl553pGeqV7BHtje8J8IXyBfOF9QX2hfgF+Yn7CfyN/hH/lgEeAqIEKgWuBzYIwgpKC9INXg7qEHYSAhOOFR4Wrhg6GcobXhzuHn4gEiGmIzokziZmJ/opkisqLMIuWi/yMY4zKjTGNmI3/jmaOzo82j56QBpBukNaRP5GokhGSepLjk02TtpQglIqU9JVflcmWNJaflwqXdZfgmEyYuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//9kZXNjAAAAAAAAAC5JRUMgNjE5NjYtMi0xIERlZmF1bHQgUkdCIENvbG91ciBTcGFjZSAtIHNSR0IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAAAAAUAAAAAAAAG1lYXMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlhZWiAAAAAAAAAAngAAAKQAAACHWFlaIAAAAAAAAG+iAAA49QAAA5BzaWcgAAAAAENSVCBkZXNjAAAAAAAAAC1SZWZlcmVuY2UgVmlld2luZyBDb25kaXRpb24gaW4gSUVDIDYxOTY2LTItMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y10ZXh0AAAAAENvcHlyaWdodCBJbnRlcm5hdGlvbmFsIENvbG9yIENvbnNvcnRpdW0sIDIwMTUAAHNmMzIAAAAAAAEMRAAABd////MmAAAHlAAA/Y////uh///9ogAAA9sAAMB1","base64"),c=this.ref({Length:M.length,N:3});c.write(M),c.end();const P=this.ref({Type:"OutputIntent",S:"GTS_PDFA1",Info:new String("sRGB IEC61966-2.1"),OutputConditionIdentifier:new String("sRGB IEC61966-2.1"),DestOutputProfile:c});P.end(),this._root.data.OutputIntents=[P]},_getPdfaid(){return`
        <rdf:Description xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" rdf:about="">
            <pdfaid:part>${this.subset}</pdfaid:part>
            <pdfaid:conformance>${this.subset_conformance}</pdfaid:conformance>
        </rdf:Description>
        `},_addPdfaMetadata(){this.appendXML(this._getPdfaid())}},Xn={initPDFUA(){this.subset=1},endSubset(){this._addPdfuaMetadata()},_addPdfuaMetadata(){this.appendXML(this._getPdfuaid())},_getPdfuaid(){return`
        <rdf:Description xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/" rdf:about="">
            <pdfuaid:part>${this.subset}</pdfuaid:part>
        </rdf:Description>
        `}},Zn={_importSubset(M){Object.assign(this,M)},initSubset(M){switch(M.subset){case"PDF/A-1":case"PDF/A-1a":case"PDF/A-1b":case"PDF/A-2":case"PDF/A-2a":case"PDF/A-2b":case"PDF/A-3":case"PDF/A-3a":case"PDF/A-3b":this._importSubset(Vn),this.initPDFA(M.subset);break;case"PDF/UA":this._importSubset(Xn),this.initPDFUA();break}}};const En=["height","minHeight","maxHeight"],_n=["width","minWidth","maxWidth"];function wn(M,c){const P=new Map;return function(){const F=arguments.length<=0?void 0:arguments[0];return P.has(F)||(P.set(F,M(...arguments)),P.size>c&&P.delete(P.keys().next())),P.get(F)}}function gi(M){return M&&typeof M=="object"&&!Array.isArray(M)}function Di(M){if(!gi(M))return M;M=Ki(M);for(var c=arguments.length,P=new Array(c>1?c-1:0),F=1;F<c;F++)P[F-1]=arguments[F];for(const j of P)if(gi(j))for(const sA in j)gi(j[sA])?(sA in M||(M[sA]={}),M[sA]=Di(M[sA],j[sA])):j[sA]!==void 0&&(M[sA]=Ki(j[sA]));return M}function Ki(M){let c=M;if(M&&typeof M=="object"){c=Array.isArray(M)?[]:{};for(const P in M)c[P]=Ki(M[P])}return c}function qn(M){let c=M;typeof c!="object"&&(c={text:c});const P=Object.fromEntries(Object.entries(c).filter(j=>{let[sA]=j;return En.includes(sA)})),F=Object.fromEntries(Object.entries(c).filter(j=>{let[sA]=j;return _n.includes(sA)}));return c.padding=KA(c.padding),c.border=KA(c.border),c.borderColor=KA(c.borderColor),c.align=Jr(c.align),{defaultStyle:c,defaultRowStyle:P,defaultColStyle:F}}function fn(M,c,P){let F=c(P);(F==null||typeof F!="object")&&(F={height:F}),F.padding=KA(F.padding),F.border=KA(F.border),F.borderColor=KA(F.borderColor),F.align=Jr(F.align),F=Di(M,F);const j=this.document,sA=j.page,RA=sA.contentHeight;return F.height==null||F.height==="auto"?F.height="auto":F.height=j.sizeToPoint(F.height,0,sA,RA),F.minHeight=j.sizeToPoint(F.minHeight,0,sA,RA),F.maxHeight=j.sizeToPoint(F.maxHeight,0,sA,RA),F}function $n(M,c,P){let F=c(P);return(F==null||typeof F!="object")&&(F={width:F}),F.padding=KA(F.padding),F.border=KA(F.border),F.borderColor=KA(F.borderColor),F.align=Jr(F.align),F=Di(M,F),F.width==null||F.width==="*"?F.width="*":F.width=this.document.sizeToPoint(F.width,0,this.document.page,this._maxWidth),F.minWidth=this.document.sizeToPoint(F.minWidth,0,this.document.page,this._maxWidth),F.maxWidth=this.document.sizeToPoint(F.maxWidth,0,this.document.page,this._maxWidth),F}function Jr(M){return M==null||typeof M=="string"?{x:M,y:M}:M}function As(){var ae,Ie;const M=this.document,c=this.opts;let P=M._tableIndex++;this._id=new String(c.id??`table-${P}`),this._position={x:M.sizeToPoint((ae=c.position)==null?void 0:ae.x,M.x),y:M.sizeToPoint((Ie=c.position)==null?void 0:Ie.y,M.y)},this._maxWidth=M.sizeToPoint(c.maxWidth,M.page.width-M.page.margins.right-this._position.x);const{defaultStyle:F,defaultColStyle:j,defaultRowStyle:sA}=qn(c.defaultStyle);this._defaultStyle=F;let RA;c.columnStyles&&(Array.isArray(c.columnStyles)?RA=De=>c.columnStyles[De]:typeof c.columnStyles=="function"?RA=wn(De=>c.columnStyles(De),1/0):typeof c.columnStyles=="object"&&(RA=()=>c.columnStyles)),RA||(RA=()=>({})),this._colStyle=$n.bind(this,j,RA);let XA;c.rowStyles&&(Array.isArray(c.rowStyles)?XA=De=>c.rowStyles[De]:typeof c.rowStyles=="function"?XA=wn(De=>c.rowStyles(De),10):typeof c.rowStyles=="object"&&(XA=()=>c.rowStyles)),XA||(XA=()=>({})),this._rowStyle=fn.bind(this,sA,XA)}function ci(M){return M!=null&&(M=`${M}`),M}function es(M,c,P){var xe;const F=this._colStyle(P);let j=this._rowStyle(c);const sA=Di({},F.font,j.font,M.font),RA=Object.values(sA).filter(qe=>qe!=null).length>0,XA=this.document,ae=XA._fontSource,Ie=XA._fontSize,De=XA._fontFamily;RA&&(sA.src&&XA.font(sA.src,sA.family),sA.size&&XA.fontSize(sA.size),j=this._rowStyle(c)),M.padding=KA(M.padding),M.border=KA(M.border),M.borderColor=KA(M.borderColor);const he=Di(this._defaultStyle,F,j,M);return he.rowIndex=c,he.colIndex=P,he.font=sA??{},he.customFont=RA,he.text=ci(he.text),he.rowSpan=he.rowSpan??1,he.colSpan=he.colSpan??1,he.padding=KA(he.padding,"0.25em",qe=>XA.sizeToPoint(qe,"0.25em")),he.border=KA(he.border,1,qe=>XA.sizeToPoint(qe,1)),he.borderColor=KA(he.borderColor,"black",qe=>qe??"black"),he.align=Jr(he.align),he.align.x=he.align.x??"left",he.align.y=he.align.y??"top",he.textStroke=XA.sizeToPoint(he.textStroke,0),he.textStrokeColor=he.textStrokeColor??"black",he.textColor=he.textColor??"black",he.textOptions=he.textOptions??{},he.id=new String(he.id??`${this._id}-${c}-${P}`),he.type=((xe=he.type)==null?void 0:xe.toUpperCase())==="TH"?"TH":"TD",he.scope&&(he.scope=he.scope.toLowerCase(),he.scope==="row"?he.scope="Row":he.scope==="both"?he.scope="Both":he.scope==="column"&&(he.scope="Column")),typeof this.opts.debug=="boolean"&&(he.debug=this.opts.debug),RA&&XA.font(ae,De,Ie),he}function ts(M,c){this._cellClaim||(this._cellClaim=new Set);let P=0;return M.map(F=>{for((F==null||typeof F!="object")&&(F={text:F});this._cellClaim.has(`${c},${P}`);)P++;F=es.call(this,F,c,P);for(let j=0;j<F.rowSpan;j++)for(let sA=0;sA<F.colSpan;sA++)this._cellClaim.add(`${c+j},${P+sA}`);return P+=F.colSpan,F})}function rs(M){this._columnWidths=[],Ii.call(this,M.reduce((c,P)=>c+P.colSpan,0)),this._rowHeights=[],this._rowYPos=[this._position.y],this._rowBuffer=new Set}function Ii(M){let c=[],P=0,F=this._maxWidth;for(let RA=0;RA<M;RA++){let XA=this._colStyle(RA);XA.width==="*"?(c[RA]=XA,P+=XA.minWidth):(F-=XA.width,this._columnWidths[RA]=XA.width)}let j=c.reduce(RA=>RA+1,0);P>=F?c.forEach((RA,XA)=>{this._columnWidths[XA]=RA.minWidth}):j>0&&c.forEach((RA,XA)=>{let ae=F/j;this._columnWidths[XA]=Math.max(ae,RA.minWidth),RA.maxWidth>0&&(this._columnWidths[XA]=Math.min(this._columnWidths[XA],RA.maxWidth)),F-=this._columnWidths[XA],j--});let sA=this._position.x;this._columnXPos=Array.from(this._columnWidths,RA=>{const XA=sA;return sA+=RA,XA})}function is(M,c){M.forEach(RA=>this._rowBuffer.add(RA)),c>0&&(this._rowYPos[c]=this._rowYPos[c-1]+this._rowHeights[c-1]);const P=this._rowStyle(c);let F=[];this._rowBuffer.forEach(RA=>{RA.rowIndex+RA.rowSpan-1===c&&(F.push(hn.call(this,RA,P.height)),this._rowBuffer.delete(RA))});let j=P.height;j==="auto"&&(j=F.reduce((RA,XA)=>{let ae=XA.textBounds.height+XA.padding.top+XA.padding.bottom;for(let Ie=0;Ie<XA.rowSpan-1;Ie++)ae-=this._rowHeights[XA.rowIndex+Ie];return Math.max(RA,ae)},0)),j=Math.max(j,P.minHeight),P.maxHeight>0&&(j=Math.min(j,P.maxHeight)),this._rowHeights[c]=j;let sA=!1;return j>this.document.page.contentHeight?(console.warn(new Error(`Row ${c} requested more than the safe page height, row has been clamped`).stack.slice(7)),this._rowHeights[c]=this.document.page.maxY()-this._rowYPos[c]):this._rowYPos[c]+j>=this.document.page.maxY()&&(this._rowYPos[c]=this.document.page.margins.top,sA=!0),{newPage:sA,toRender:F.map(RA=>hn.call(this,RA,j))}}function hn(M,c){var he,xe,qe;let P=0;for(let ke=0;ke<M.colSpan;ke++)P+=this._columnWidths[M.colIndex+ke];let F=c;if(F==="auto")F=this.document.page.contentHeight;else for(let ke=0;ke<M.rowSpan-1;ke++)F+=this._rowHeights[M.rowIndex+ke];const j=P-M.padding.left-M.padding.right,sA=F-M.padding.top-M.padding.bottom,RA=M.textOptions.rotation??0,{width:XA,height:ae}=Vi(RA,j,sA),Ie={align:M.align.x,ellipsis:!0,stroke:M.textStroke>0,fill:!0,width:XA,height:ae,rotation:RA,...M.textOptions};let De={x:0,y:0,width:0,height:0};if(M.text){const ke=this.document._fontSource,Ze=this.document._fontSize,He=this.document._fontFamily;(he=M.font)!=null&&he.src&&this.document.font(M.font.src,(xe=M.font)==null?void 0:xe.family),(qe=M.font)!=null&&qe.size&&this.document.fontSize(M.font.size);const At=this.document.boundsOfString(M.text,0,0,{...Ie,rotation:0});Ie.width=At.width,Ie.height=At.height,De=this.document.boundsOfString(M.text,0,0,Ie),this.document.font(ke,He,Ze)}return{...M,textOptions:Ie,x:this._columnXPos[M.colIndex],y:this._rowYPos[M.rowIndex],textX:this._columnXPos[M.colIndex]+M.padding.left,textY:this._rowYPos[M.rowIndex]+M.padding.top,width:P,height:F,textAllocatedHeight:sA,textAllocatedWidth:j,textBounds:De}}function Vi(M,c,P){let F,j;const sA=mA(M),RA=HA(M);M===0||M===180?(F=c,j=P):M===90||M===270?(F=P,j=c):M<90||M>180&&M<270?(F=c/(2*sA),j=c/(2*RA)):(j=c/(2*sA),F=c/(2*RA));const XA=RA*F,ae=sA*j;if(XA+ae>P){const Ie=sA*sA-RA*RA;M===0||M===180?(F=c,j=P):M===90||M===270?(F=P,j=c):M<90||M>180&&M<270?(F=(c*sA-P*RA)/Ie,j=(P*sA-c*RA)/Ie):(j=(c*sA-P*RA)/Ie,F=(P*sA-c*RA)/Ie)}return{width:Math.abs(F),height:Math.abs(j)}}function ns(){const M=this.opts.structParent;M&&(this._tableStruct=this.document.struct("Table"),this._tableStruct.dictionary.data.ID=this._id,M instanceof gr?M.add(this._tableStruct):M instanceof pe&&M.addStructure(this._tableStruct),this._headerRowLookup={},this._headerColumnLookup={})}function xA(){this._tableStruct&&this._tableStruct.end()}function n(M,c,P){const F=this.document.struct("TR");F.dictionary.data.ID=new String(`${this._id}-${c}`),this._tableStruct.add(F),M.forEach(j=>P(j,F)),F.end()}function U(M,c,P){const F=this.document,j=F.struct(M.type,{title:M.title});j.dictionary.data.ID=M.id,c.add(j);const sA=M.padding,RA=M.border,XA={O:"Table",Width:M.width,Height:M.height,Padding:[sA.top,sA.bottom,sA.left,sA.right],RowSpan:M.rowSpan>1?M.rowSpan:void 0,ColSpan:M.colSpan>1?M.colSpan:void 0,BorderThickness:[RA.top,RA.bottom,RA.left,RA.right]};if(M.type==="TH"){if(M.scope==="Row"||M.scope==="Both"){for(let he=0;he<M.rowSpan;he++)this._headerRowLookup[M.rowIndex+he]||(this._headerRowLookup[M.rowIndex+he]=[]),this._headerRowLookup[M.rowIndex+he].push(M.id);XA.Scope=M.scope}if(M.scope==="Column"||M.scope==="Both"){for(let he=0;he<M.colSpan;he++)this._headerColumnLookup[M.colIndex+he]||(this._headerColumnLookup[M.colIndex+he]=[]),this._headerColumnLookup[M.colIndex+he].push(M.id);XA.Scope=M.scope}}const ae=new Set([...Array.from({length:M.colSpan},(he,xe)=>this._headerColumnLookup[M.colIndex+xe]).flat(),...Array.from({length:M.rowSpan},(he,xe)=>this._headerRowLookup[M.rowIndex+xe]).flat()].filter(Boolean));ae.size&&(XA.Headers=Array.from(ae));const Ie=F._normalizeColor;M.backgroundColor!=null&&(XA.BackgroundColor=Ie(M.backgroundColor));const De=[RA.top,RA.bottom,RA.left,RA.right];if(De.some(he=>he)){const he=M.borderColor;XA.BorderColor=[De[0]?Ie(he.top):null,De[1]?Ie(he.bottom):null,De[2]?Ie(he.left):null,De[3]?Ie(he.right):null]}Object.keys(XA).forEach(he=>XA[he]===void 0&&delete XA[he]),j.dictionary.data.A=F.ref(XA),j.add(P),j.end(),j.dictionary.data.A.end()}function H(M,c){return this._tableStruct?n.call(this,M,c,aA.bind(this)):M.forEach(P=>aA.call(this,P)),this._rowYPos[c]+this._rowHeights[c]}function aA(M,c){const P=()=>{M.backgroundColor!=null&&this.document.save().fillColor(M.backgroundColor).rect(M.x,M.y,M.width,M.height).fill().restore(),YA.call(this,M.border,M.borderColor,M.x,M.y,M.width,M.height),M.debug&&(this.document.save(),this.document.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),this.document.rect(M.x,M.y,M.width,M.height).stroke("green"),this.document.restore()),M.text&&QA.call(this,M)};c?U.call(this,M,c,P):P()}function QA(M){const c=this.document,P=c._fontSource,F=c._fontSize,j=c._fontFamily;M.customFont&&(M.font.src&&c.font(M.font.src,M.font.family),M.font.size&&c.fontSize(M.font.size));const sA=M.textX,RA=M.textY,XA=M.textAllocatedHeight,ae=M.textAllocatedWidth,Ie=M.textBounds.width,De=M.textBounds.height,he=-M.textBounds.x,xe=-M.textBounds.y,qe=M.align.x==="right"?1:M.align.x==="center"?.5:0,ke=(ae-Ie)*qe,Ze=M.align.y==="bottom"?1:M.align.y==="center"?.5:0,He=(XA-De)*Ze,At=ke+he,Xe=He+xe;M.debug&&(c.save(),c.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),M.text&&c.moveTo(sA+ke,RA).lineTo(sA+ke,RA+XA).moveTo(sA+ke+Ie,RA).lineTo(sA+ke+Ie,RA+XA).stroke("blue").moveTo(sA,RA+He).lineTo(sA+ae,RA+He).moveTo(sA,RA+He+De).lineTo(sA+ae,RA+He+De).stroke("green"),c.rect(sA,RA,ae,XA).stroke("orange"),c.restore()),c.save().rect(sA,RA,ae,XA).clip(),c.fillColor(M.textColor).strokeColor(M.textStrokeColor),M.textStroke>0&&c.lineWidth(M.textStroke),c.text(M.text,sA+At,RA+Xe,M.textOptions),c.restore(),M.font&&c.font(P,j,F)}function YA(M,c,P,F,j,sA,RA){M=Object.fromEntries(Object.entries(M).map(ae=>{let[Ie,De]=ae;return[Ie,RA&&!RA[Ie]?0:De]}));const XA=this.document;[M.right,M.bottom,M.left].every(ae=>ae===M.top)?M.top>0&&XA.save().lineWidth(M.top).strokeColor(c.top).rect(P,F,j,sA).stroke().restore():(M.top>0&&XA.save().lineWidth(M.top).moveTo(P,F).strokeColor(c.top).lineTo(P+j,F).stroke().restore(),M.right>0&&XA.save().lineWidth(M.right).moveTo(P+j,F).strokeColor(c.right).lineTo(P+j,F+sA).stroke().restore(),M.bottom>0&&XA.save().lineWidth(M.bottom).moveTo(P+j,F+sA).strokeColor(c.bottom).lineTo(P,F+sA).stroke().restore(),M.left>0&&XA.save().lineWidth(M.left).moveTo(P,F+sA).strokeColor(c.left).lineTo(P,F).stroke().restore())}class LA{constructor(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.document=c,this.opts=Object.freeze(P),As.call(this),ns.call(this),this._currRowIndex=0,this._ended=!1,P.data){for(const F of P.data)this.row(F);return this.end()}}row(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this._ended)throw new Error(`Table was marked as ended on row ${this._currRowIndex}`);c=Array.from(c),c=ts.call(this,c,this._currRowIndex),this._currRowIndex===0&&rs.call(this,c);const{newPage:F,toRender:j}=is.call(this,c,this._currRowIndex);F&&this.document.continueOnNewPage();const sA=H.call(this,j,this._currRowIndex);return this.document.x=this._position.x,this.document.y=sA,P?this.end():(this._currRowIndex++,this)}end(){var c;for(;(c=this._rowBuffer)!=null&&c.size;)this.row([]);return this._ended=!0,xA.call(this),this.document}}var JA={initTables(){this._tableIndex=0},table(M){return new LA(this,M)}};class fe{constructor(){this._metadata=`
        <?xpacket begin="\uFEFF" id="W5M0MpCehiHzreSzNTczkc9d"?>
            <x:xmpmeta xmlns:x="adobe:ns:meta/">
                <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
        `}_closeTags(){this._metadata=this._metadata.concat(`
                </rdf:RDF>
            </x:xmpmeta>
        <?xpacket end="w"?>
        `)}append(c){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this._metadata=this._metadata.concat(c),P&&(this._metadata=this._metadata.concat(`
`))}getXML(){return this._metadata}getLength(){return this._metadata.length}end(){this._closeTags(),this._metadata=this._metadata.trim()}}var Ee={initMetadata(){this.metadata=new fe},appendXML(M){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.metadata.append(M,c)},_addInfo(){this.appendXML(`
        <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">
            <xmp:CreateDate>${this.info.CreationDate.toISOString().split(".")[0]+"Z"}</xmp:CreateDate>
            <xmp:CreatorTool>${this.info.Creator}</xmp:CreatorTool>
        </rdf:Description>
        `),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML(`
            <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
            `),this.info.Title&&this.appendXML(`
                <dc:title>
                    <rdf:Alt>
                        <rdf:li xml:lang="x-default">${this.info.Title}</rdf:li>
                    </rdf:Alt>
                </dc:title>
                `),this.info.Author&&this.appendXML(`
                <dc:creator>
                    <rdf:Seq>
                        <rdf:li>${this.info.Author}</rdf:li>
                    </rdf:Seq>
                </dc:creator>
                `),this.info.Subject&&this.appendXML(`
                <dc:description>
                    <rdf:Alt>
                        <rdf:li xml:lang="x-default">${this.info.Subject}</rdf:li>
                    </rdf:Alt>
                </dc:description>
                `),this.appendXML(`
            </rdf:Description>
            `)),this.appendXML(`
        <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
            <pdf:Producer>${this.info.Creator}</pdf:Producer>`,!1),this.info.Keywords&&this.appendXML(`
            <pdf:Keywords>${this.info.Keywords}</pdf:Keywords>`,!1),this.appendXML(`
        </rdf:Description>
        `)},endMetadata(){this._addInfo(),this.metadata.end(),this.version!=1.3&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write(a.from(this.metadata.getXML(),"utf-8")),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}};class pe extends f.default.Readable{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};switch(super(c),this.options=c,c.pdfVersion){case"1.4":this.version=1.4;break;case"1.5":this.version=1.5;break;case"1.6":this.version=1.6;break;case"1.7":case"1.7ext3":this.version=1.7;break;default:this.version=1.3;break}this.compress=this.options.compress!=null?this.options.compress:!0,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0;const P=this.ref({Type:"Pages",Count:0,Kids:[]}),F=this.ref({Dests:new BA});if(this._root=this.ref({Type:"Catalog",Pages:P,Names:F}),this.options.lang&&(this._root.data.Lang=new String(this.options.lang)),this.options.pageLayout){const j=this.options.pageLayout;this._root.data.PageLayout=j.charAt(0).toUpperCase()+j.slice(1)}if(this.page=null,this.initMetadata(),this.initColor(),this.initVector(),this.initFonts(c.font),this.initText(),this.initImages(),this.initOutline(),this.initMarkings(c),this.initTables(),this.initSubset(c),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info)for(let j in this.options.info){const sA=this.options.info[j];this.info[j]=sA}this.options.displayTitle&&(this._root.data.ViewerPreferences=this.ref({DisplayDocTitle:!0})),this._id=UA.generateFileID(this.info),this._security=UA.create(this,c),this._write(`%PDF-${this.version}`),this._write("%ÿÿÿÿ"),this.options.autoFirstPage!==!1&&this.addPage()}addPage(c){c==null&&({options:c}=this),this.options.bufferPages||this.flushPages(),this.page=new IA(this,c),this._pageBuffer.push(this.page);const P=this._root.data.Pages.data;return P.Kids.push(this.page.dictionary),P.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}continueOnNewPage(c){const P=this.endPageMarkings(this.page);return this.addPage(c??this.page._options),this.initPageMarkings(P),this}bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}switchToPage(c){let P;if(!(P=this._pageBuffer[c-this._pageBufferStart]))throw new Error(`switchToPage(${c}) out of bounds, current buffer covers pages ${this._pageBufferStart} to ${this._pageBufferStart+this._pageBuffer.length-1}`);return this.page=P}flushPages(){const c=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=c.length;for(let P of c)this.endPageMarkings(P),P.end()}addNamedDestination(c){for(var P=arguments.length,F=new Array(P>1?P-1:0),j=1;j<P;j++)F[j-1]=arguments[j];F.length===0&&(F=["XYZ",null,null,null]),F[0]==="XYZ"&&F[2]!==null&&(F[2]=this.page.height-F[2]),F.unshift(this.page.dictionary),this._root.data.Names.data.Dests.add(c,F)}addNamedEmbeddedFile(c,P){this._root.data.Names.data.EmbeddedFiles||(this._root.data.Names.data.EmbeddedFiles=new BA({limits:!1})),this._root.data.Names.data.EmbeddedFiles.add(c,P)}addNamedJavaScript(c,P){this._root.data.Names.data.JavaScript||(this._root.data.Names.data.JavaScript=new BA);let F={JS:new String(P),S:"JavaScript"};this._root.data.Names.data.JavaScript.add(c,F)}ref(c){const P=new bA(this,this._offsets.length+1,c);return this._offsets.push(null),this._waiting++,P}_read(){}_write(c){a.isBuffer(c)||(c=a.from(c+`
`,"binary")),this.push(c),this._offset+=c.length}addContent(c){return this.page.write(c),this}_refEnd(c){this._offsets[c.id-1]=c.offset,--this._waiting===0&&this._ended&&(this._finalize(),this._ended=!1)}end(){this.flushPages(),this._info=this.ref();for(let c in this.info){let P=this.info[c];typeof P=="string"&&(P=new String(P));let F=this.ref(P);F.end(),this._info.data[c]=F}this._info.end();for(let c in this._fontFamilies)this._fontFamilies[c].finalize();this.endOutline(),this.endMarkings(),this.subset&&this.endSubset(),this.endMetadata(),this._root.end(),this._root.data.Pages.end(),this._root.data.Names.end(),this.endAcroForm(),this._root.data.ViewerPreferences&&this._root.data.ViewerPreferences.end(),this._security&&this._security.end(),this._waiting===0?this._finalize():this._ended=!0}_finalize(){const c=this._offset;this._write("xref"),this._write(`0 ${this._offsets.length+1}`),this._write("0000000000 65535 f ");for(let F of this._offsets)F=`0000000000${F}`.slice(-10),this._write(F+" 00000 n ");const P={Size:this._offsets.length+1,Root:this._root,Info:this._info,ID:[this._id,this._id]};this._security&&(P.Encrypt=this._security.dictionary),this._write("trailer"),this._write(v.convert(P)),this._write("startxref"),this._write(`${c}`),this._write("%%EOF"),this.push(null)}toString(){return"[object PDFDocument]"}}r.A=pe;const Ce=M=>{Object.assign(pe.prototype,M)};Ce(Ee),Ce(jt),Ce(st),Ce(tr),Ce(pr),Ce(yr),Ce(bi),Ce(Ui),Ce(On),Ce(cn),Ce(Wn),Ce(Zn),Ce(JA),pe.LineWrapper=Ut},6092(o,r,t){var A=t(2736),a=t(2022),f=a;typeof f.pdfMake>"u"&&(f.pdfMake=A),o.exports=A},656(o,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.polyval=r.ghash=void 0,r._toGHASHKey=D;const A=t(5181),a=16,f=new Uint8Array(16),h=(0,A.u32)(f),Q=225,d=(b,N,O,gA)=>{const oA=gA&1;return{s3:O<<31|gA>>>1,s2:N<<31|O>>>1,s1:b<<31|N>>>1,s0:b>>>1^Q<<24&-(oA&1)}},E=b=>(b>>>0&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255|0;function D(b){b.reverse();const N=b[15]&1;let O=0;for(let gA=0;gA<b.length;gA++){const oA=b[gA];b[gA]=oA>>>1|O,O=(oA&1)<<7}return b[0]^=-N&225,b}const Y=b=>b>64*1024?8:b>1024?4:2;class z{constructor(N,O){this.blockLen=a,this.outputLen=a,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,N=(0,A.toBytes)(N),(0,A.abytes)(N,16);const gA=(0,A.createView)(N);let oA=gA.getUint32(0,!1),q=gA.getUint32(4,!1),Z=gA.getUint32(8,!1),x=gA.getUint32(12,!1);const X=[];for(let nA=0;nA<128;nA++)X.push({s0:E(oA),s1:E(q),s2:E(Z),s3:E(x)}),{s0:oA,s1:q,s2:Z,s3:x}=d(oA,q,Z,x);const B=Y(O||1024);if(![1,2,4,8].includes(B))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=B;const bA=128/B,wA=this.windowSize=2**B,tA=[];for(let nA=0;nA<bA;nA++)for(let KA=0;KA<wA;KA++){let DA=0,FA=0,cA=0,yA=0;for(let zA=0;zA<B;zA++){if(!(KA>>>B-zA-1&1))continue;const{s0:HA,s1:pA,s2:NA,s3:IA}=X[B*nA+zA];DA^=HA,FA^=pA,cA^=NA,yA^=IA}tA.push({s0:DA,s1:FA,s2:cA,s3:yA})}this.t=tA}_updateBlock(N,O,gA,oA){N^=this.s0,O^=this.s1,gA^=this.s2,oA^=this.s3;const{W:q,t:Z,windowSize:x}=this;let X=0,B=0,v=0,bA=0;const wA=(1<<q)-1;let tA=0;for(const nA of[N,O,gA,oA])for(let KA=0;KA<4;KA++){const DA=nA>>>8*KA&255;for(let FA=8/q-1;FA>=0;FA--){const cA=DA>>>q*FA&wA,{s0:yA,s1:zA,s2:mA,s3:HA}=Z[tA*x+cA];X^=yA,B^=zA,v^=mA,bA^=HA,tA+=1}}this.s0=X,this.s1=B,this.s2=v,this.s3=bA}update(N){(0,A.aexists)(this),N=(0,A.toBytes)(N),(0,A.abytes)(N);const O=(0,A.u32)(N),gA=Math.floor(N.length/a),oA=N.length%a;for(let q=0;q<gA;q++)this._updateBlock(O[q*4+0],O[q*4+1],O[q*4+2],O[q*4+3]);return oA&&(f.set(N.subarray(gA*a)),this._updateBlock(h[0],h[1],h[2],h[3]),(0,A.clean)(h)),this}destroy(){const{t:N}=this;for(const O of N)O.s0=0,O.s1=0,O.s2=0,O.s3=0}digestInto(N){(0,A.aexists)(this),(0,A.aoutput)(N,this),this.finished=!0;const{s0:O,s1:gA,s2:oA,s3:q}=this,Z=(0,A.u32)(N);return Z[0]=O,Z[1]=gA,Z[2]=oA,Z[3]=q,N}digest(){const N=new Uint8Array(a);return this.digestInto(N),this.destroy(),N}}class L extends z{constructor(N,O){N=(0,A.toBytes)(N),(0,A.abytes)(N);const gA=D((0,A.copyBytes)(N));super(gA,O),(0,A.clean)(gA)}update(N){N=(0,A.toBytes)(N),(0,A.aexists)(this);const O=(0,A.u32)(N),gA=N.length%a,oA=Math.floor(N.length/a);for(let q=0;q<oA;q++)this._updateBlock(E(O[q*4+3]),E(O[q*4+2]),E(O[q*4+1]),E(O[q*4+0]));return gA&&(f.set(N.subarray(oA*a)),this._updateBlock(E(h[3]),E(h[2]),E(h[1]),E(h[0])),(0,A.clean)(h)),this}digestInto(N){(0,A.aexists)(this),(0,A.aoutput)(N,this),this.finished=!0;const{s0:O,s1:gA,s2:oA,s3:q}=this,Z=(0,A.u32)(N);return Z[0]=O,Z[1]=gA,Z[2]=oA,Z[3]=q,N.reverse()}}function T(b){const N=(gA,oA)=>b(oA,gA.length).update((0,A.toBytes)(gA)).digest(),O=b(new Uint8Array(16),0);return N.outputLen=O.outputLen,N.blockLen=O.blockLen,N.create=(gA,oA)=>b(gA,oA),N}r.ghash=T((b,N)=>new z(b,N)),r.polyval=T((b,N)=>new L(b,N))},2651(o,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.unsafe=r.aeskwp=r.aeskw=r.siv=r.gcmsiv=r.gcm=r.cfb=r.cbc=r.ecb=r.ctr=void 0;const A=t(656),a=t(5181),f=16,h=4,Q=new Uint8Array(f),d=283;function E(IA){return IA<<1^d&-(IA>>7)}function D(IA,BA){let hA=0;for(;BA>0;BA>>=1)hA^=IA&-(BA&1),IA=E(IA);return hA}const Y=(()=>{const IA=new Uint8Array(256);for(let hA=0,R=1;hA<256;hA++,R^=E(R))IA[hA]=R;const BA=new Uint8Array(256);BA[0]=99;for(let hA=0;hA<255;hA++){let R=IA[255-hA];R|=R<<8,BA[IA[hA]]=(R^R>>4^R>>5^R>>6^R>>7^99)&255}return(0,a.clean)(IA),BA})(),z=Y.map((IA,BA)=>Y.indexOf(BA)),L=IA=>IA<<24|IA>>>8,T=IA=>IA<<8|IA>>>24,b=IA=>IA<<24&4278190080|IA<<8&16711680|IA>>>8&65280|IA>>>24&255;function N(IA,BA){if(IA.length!==256)throw new Error("Wrong sbox length");const hA=new Uint32Array(256).map((iA,MA)=>BA(IA[MA])),R=hA.map(T),C=R.map(T),lA=C.map(T),rA=new Uint32Array(256*256),p=new Uint32Array(256*256),G=new Uint16Array(256*256);for(let iA=0;iA<256;iA++)for(let MA=0;MA<256;MA++){const m=iA*256+MA;rA[m]=hA[iA]^R[MA],p[m]=C[iA]^lA[MA],G[m]=IA[iA]<<8|IA[MA]}return{sbox:IA,sbox2:G,T0:hA,T1:R,T2:C,T3:lA,T01:rA,T23:p}}const O=N(Y,IA=>D(IA,3)<<24|IA<<16|IA<<8|D(IA,2)),gA=N(z,IA=>D(IA,11)<<24|D(IA,13)<<16|D(IA,9)<<8|D(IA,14)),oA=(()=>{const IA=new Uint8Array(16);for(let BA=0,hA=1;BA<16;BA++,hA=E(hA))IA[BA]=hA;return IA})();function q(IA){(0,a.abytes)(IA);const BA=IA.length;if(![16,24,32].includes(BA))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+BA);const{sbox2:hA}=O,R=[];(0,a.isAligned32)(IA)||R.push(IA=(0,a.copyBytes)(IA));const C=(0,a.u32)(IA),lA=C.length,rA=G=>X(hA,G,G,G,G),p=new Uint32Array(BA+28);p.set(C);for(let G=lA;G<p.length;G++){let iA=p[G-1];G%lA===0?iA=rA(L(iA))^oA[G/lA-1]:lA>6&&G%lA===4&&(iA=rA(iA)),p[G]=p[G-lA]^iA}return(0,a.clean)(...R),p}function Z(IA){const BA=q(IA),hA=BA.slice(),R=BA.length,{sbox2:C}=O,{T0:lA,T1:rA,T2:p,T3:G}=gA;for(let iA=0;iA<R;iA+=4)for(let MA=0;MA<4;MA++)hA[iA+MA]=BA[R-iA-4+MA];(0,a.clean)(BA);for(let iA=4;iA<R-4;iA++){const MA=hA[iA],m=X(C,MA,MA,MA,MA);hA[iA]=lA[m&255]^rA[m>>>8&255]^p[m>>>16&255]^G[m>>>24]}return hA}function x(IA,BA,hA,R,C,lA){return IA[hA<<8&65280|R>>>8&255]^BA[C>>>8&65280|lA>>>24&255]}function X(IA,BA,hA,R,C){return IA[BA&255|hA&65280]|IA[R>>>16&255|C>>>16&65280]<<16}function B(IA,BA,hA,R,C){const{sbox2:lA,T01:rA,T23:p}=O;let G=0;BA^=IA[G++],hA^=IA[G++],R^=IA[G++],C^=IA[G++];const iA=IA.length/4-2;for(let CA=0;CA<iA;CA++){const $A=IA[G++]^x(rA,p,BA,hA,R,C),ZA=IA[G++]^x(rA,p,hA,R,C,BA),kA=IA[G++]^x(rA,p,R,C,BA,hA),de=IA[G++]^x(rA,p,C,BA,hA,R);BA=$A,hA=ZA,R=kA,C=de}const MA=IA[G++]^X(lA,BA,hA,R,C),m=IA[G++]^X(lA,hA,R,C,BA),y=IA[G++]^X(lA,R,C,BA,hA),uA=IA[G++]^X(lA,C,BA,hA,R);return{s0:MA,s1:m,s2:y,s3:uA}}function v(IA,BA,hA,R,C){const{sbox2:lA,T01:rA,T23:p}=gA;let G=0;BA^=IA[G++],hA^=IA[G++],R^=IA[G++],C^=IA[G++];const iA=IA.length/4-2;for(let CA=0;CA<iA;CA++){const $A=IA[G++]^x(rA,p,BA,C,R,hA),ZA=IA[G++]^x(rA,p,hA,BA,C,R),kA=IA[G++]^x(rA,p,R,hA,BA,C),de=IA[G++]^x(rA,p,C,R,hA,BA);BA=$A,hA=ZA,R=kA,C=de}const MA=IA[G++]^X(lA,BA,C,R,hA),m=IA[G++]^X(lA,hA,BA,C,R),y=IA[G++]^X(lA,R,hA,BA,C),uA=IA[G++]^X(lA,C,R,hA,BA);return{s0:MA,s1:m,s2:y,s3:uA}}function bA(IA,BA,hA,R){(0,a.abytes)(BA,f),(0,a.abytes)(hA);const C=hA.length;R=(0,a.getOutput)(C,R),(0,a.complexOverlapBytes)(hA,R);const lA=BA,rA=(0,a.u32)(lA);let{s0:p,s1:G,s2:iA,s3:MA}=B(IA,rA[0],rA[1],rA[2],rA[3]);const m=(0,a.u32)(hA),y=(0,a.u32)(R);for(let CA=0;CA+4<=m.length;CA+=4){y[CA+0]=m[CA+0]^p,y[CA+1]=m[CA+1]^G,y[CA+2]=m[CA+2]^iA,y[CA+3]=m[CA+3]^MA;let $A=1;for(let ZA=lA.length-1;ZA>=0;ZA--)$A=$A+(lA[ZA]&255)|0,lA[ZA]=$A&255,$A>>>=8;({s0:p,s1:G,s2:iA,s3:MA}=B(IA,rA[0],rA[1],rA[2],rA[3]))}const uA=f*Math.floor(m.length/h);if(uA<C){const CA=new Uint32Array([p,G,iA,MA]),$A=(0,a.u8)(CA);for(let ZA=uA,kA=0;ZA<C;ZA++,kA++)R[ZA]=hA[ZA]^$A[kA];(0,a.clean)(CA)}return R}function wA(IA,BA,hA,R,C){(0,a.abytes)(hA,f),(0,a.abytes)(R),C=(0,a.getOutput)(R.length,C);const lA=hA,rA=(0,a.u32)(lA),p=(0,a.createView)(lA),G=(0,a.u32)(R),iA=(0,a.u32)(C),MA=BA?0:12,m=R.length;let y=p.getUint32(MA,BA),{s0:uA,s1:CA,s2:$A,s3:ZA}=B(IA,rA[0],rA[1],rA[2],rA[3]);for(let de=0;de+4<=G.length;de+=4)iA[de+0]=G[de+0]^uA,iA[de+1]=G[de+1]^CA,iA[de+2]=G[de+2]^$A,iA[de+3]=G[de+3]^ZA,y=y+1>>>0,p.setUint32(MA,y,BA),{s0:uA,s1:CA,s2:$A,s3:ZA}=B(IA,rA[0],rA[1],rA[2],rA[3]);const kA=f*Math.floor(G.length/h);if(kA<m){const de=new Uint32Array([uA,CA,$A,ZA]),Te=(0,a.u8)(de);for(let Re=kA,ze=0;Re<m;Re++,ze++)C[Re]=R[Re]^Te[ze];(0,a.clean)(de)}return C}r.ctr=(0,a.wrapCipher)({blockSize:16,nonceLength:16},function(BA,hA){function R(C,lA){if((0,a.abytes)(C),lA!==void 0&&((0,a.abytes)(lA),!(0,a.isAligned32)(lA)))throw new Error("unaligned destination");const rA=q(BA),p=(0,a.copyBytes)(hA),G=[rA,p];(0,a.isAligned32)(C)||G.push(C=(0,a.copyBytes)(C));const iA=bA(rA,p,C,lA);return(0,a.clean)(...G),iA}return{encrypt:(C,lA)=>R(C,lA),decrypt:(C,lA)=>R(C,lA)}});function tA(IA){if((0,a.abytes)(IA),IA.length%f!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size "+f)}function nA(IA,BA,hA){(0,a.abytes)(IA);let R=IA.length;const C=R%f;if(!BA&&C!==0)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,a.isAligned32)(IA)||(IA=(0,a.copyBytes)(IA));const lA=(0,a.u32)(IA);if(BA){let p=f-C;p||(p=f),R=R+p}hA=(0,a.getOutput)(R,hA),(0,a.complexOverlapBytes)(IA,hA);const rA=(0,a.u32)(hA);return{b:lA,o:rA,out:hA}}function KA(IA,BA){if(!BA)return IA;const hA=IA.length;if(!hA)throw new Error("aes/pcks5: empty ciphertext not allowed");const R=IA[hA-1];if(R<=0||R>16)throw new Error("aes/pcks5: wrong padding");const C=IA.subarray(0,-R);for(let lA=0;lA<R;lA++)if(IA[hA-lA-1]!==R)throw new Error("aes/pcks5: wrong padding");return C}function DA(IA){const BA=new Uint8Array(16),hA=(0,a.u32)(BA);BA.set(IA);const R=f-IA.length;for(let C=f-R;C<f;C++)BA[C]=R;return hA}r.ecb=(0,a.wrapCipher)({blockSize:16},function(BA,hA={}){const R=!hA.disablePadding;return{encrypt(C,lA){const{b:rA,o:p,out:G}=nA(C,R,lA),iA=q(BA);let MA=0;for(;MA+4<=rA.length;){const{s0:m,s1:y,s2:uA,s3:CA}=B(iA,rA[MA+0],rA[MA+1],rA[MA+2],rA[MA+3]);p[MA++]=m,p[MA++]=y,p[MA++]=uA,p[MA++]=CA}if(R){const m=DA(C.subarray(MA*4)),{s0:y,s1:uA,s2:CA,s3:$A}=B(iA,m[0],m[1],m[2],m[3]);p[MA++]=y,p[MA++]=uA,p[MA++]=CA,p[MA++]=$A}return(0,a.clean)(iA),G},decrypt(C,lA){tA(C);const rA=Z(BA);lA=(0,a.getOutput)(C.length,lA);const p=[rA];(0,a.isAligned32)(C)||p.push(C=(0,a.copyBytes)(C)),(0,a.complexOverlapBytes)(C,lA);const G=(0,a.u32)(C),iA=(0,a.u32)(lA);for(let MA=0;MA+4<=G.length;){const{s0:m,s1:y,s2:uA,s3:CA}=v(rA,G[MA+0],G[MA+1],G[MA+2],G[MA+3]);iA[MA++]=m,iA[MA++]=y,iA[MA++]=uA,iA[MA++]=CA}return(0,a.clean)(...p),KA(lA,R)}}}),r.cbc=(0,a.wrapCipher)({blockSize:16,nonceLength:16},function(BA,hA,R={}){const C=!R.disablePadding;return{encrypt(lA,rA){const p=q(BA),{b:G,o:iA,out:MA}=nA(lA,C,rA);let m=hA;const y=[p];(0,a.isAligned32)(m)||y.push(m=(0,a.copyBytes)(m));const uA=(0,a.u32)(m);let CA=uA[0],$A=uA[1],ZA=uA[2],kA=uA[3],de=0;for(;de+4<=G.length;)CA^=G[de+0],$A^=G[de+1],ZA^=G[de+2],kA^=G[de+3],{s0:CA,s1:$A,s2:ZA,s3:kA}=B(p,CA,$A,ZA,kA),iA[de++]=CA,iA[de++]=$A,iA[de++]=ZA,iA[de++]=kA;if(C){const Te=DA(lA.subarray(de*4));CA^=Te[0],$A^=Te[1],ZA^=Te[2],kA^=Te[3],{s0:CA,s1:$A,s2:ZA,s3:kA}=B(p,CA,$A,ZA,kA),iA[de++]=CA,iA[de++]=$A,iA[de++]=ZA,iA[de++]=kA}return(0,a.clean)(...y),MA},decrypt(lA,rA){tA(lA);const p=Z(BA);let G=hA;const iA=[p];(0,a.isAligned32)(G)||iA.push(G=(0,a.copyBytes)(G));const MA=(0,a.u32)(G);rA=(0,a.getOutput)(lA.length,rA),(0,a.isAligned32)(lA)||iA.push(lA=(0,a.copyBytes)(lA)),(0,a.complexOverlapBytes)(lA,rA);const m=(0,a.u32)(lA),y=(0,a.u32)(rA);let uA=MA[0],CA=MA[1],$A=MA[2],ZA=MA[3];for(let kA=0;kA+4<=m.length;){const de=uA,Te=CA,Re=$A,ze=ZA;uA=m[kA+0],CA=m[kA+1],$A=m[kA+2],ZA=m[kA+3];const{s0:We,s1:ee,s2:ge,s3:dA}=v(p,uA,CA,$A,ZA);y[kA++]=We^de,y[kA++]=ee^Te,y[kA++]=ge^Re,y[kA++]=dA^ze}return(0,a.clean)(...iA),KA(rA,C)}}}),r.cfb=(0,a.wrapCipher)({blockSize:16,nonceLength:16},function(BA,hA){function R(C,lA,rA){(0,a.abytes)(C);const p=C.length;if(rA=(0,a.getOutput)(p,rA),(0,a.overlapBytes)(C,rA))throw new Error("overlapping src and dst not supported.");const G=q(BA);let iA=hA;const MA=[G];(0,a.isAligned32)(iA)||MA.push(iA=(0,a.copyBytes)(iA)),(0,a.isAligned32)(C)||MA.push(C=(0,a.copyBytes)(C));const m=(0,a.u32)(C),y=(0,a.u32)(rA),uA=lA?y:m,CA=(0,a.u32)(iA);let $A=CA[0],ZA=CA[1],kA=CA[2],de=CA[3];for(let Re=0;Re+4<=m.length;){const{s0:ze,s1:We,s2:ee,s3:ge}=B(G,$A,ZA,kA,de);y[Re+0]=m[Re+0]^ze,y[Re+1]=m[Re+1]^We,y[Re+2]=m[Re+2]^ee,y[Re+3]=m[Re+3]^ge,$A=uA[Re++],ZA=uA[Re++],kA=uA[Re++],de=uA[Re++]}const Te=f*Math.floor(m.length/h);if(Te<p){({s0:$A,s1:ZA,s2:kA,s3:de}=B(G,$A,ZA,kA,de));const Re=(0,a.u8)(new Uint32Array([$A,ZA,kA,de]));for(let ze=Te,We=0;ze<p;ze++,We++)rA[ze]=C[ze]^Re[We];(0,a.clean)(Re)}return(0,a.clean)(...MA),rA}return{encrypt:(C,lA)=>R(C,!0,lA),decrypt:(C,lA)=>R(C,!1,lA)}});function FA(IA,BA,hA,R,C){const lA=C?C.length:0,rA=IA.create(hA,R.length+lA);C&&rA.update(C);const p=(0,a.u64Lengths)(8*R.length,8*lA,BA);rA.update(R),rA.update(p);const G=rA.digest();return(0,a.clean)(p),G}r.gcm=(0,a.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(BA,hA,R){if(hA.length<8)throw new Error("aes/gcm: invalid nonce length");const C=16;function lA(p,G,iA){const MA=FA(A.ghash,!1,p,iA,R);for(let m=0;m<G.length;m++)MA[m]^=G[m];return MA}function rA(){const p=q(BA),G=Q.slice(),iA=Q.slice();if(wA(p,!1,iA,iA,G),hA.length===12)iA.set(hA);else{const m=Q.slice(),y=(0,a.createView)(m);(0,a.setBigUint64)(y,8,BigInt(hA.length*8),!1);const uA=A.ghash.create(G).update(hA).update(m);uA.digestInto(iA),uA.destroy()}const MA=wA(p,!1,iA,Q);return{xk:p,authKey:G,counter:iA,tagMask:MA}}return{encrypt(p){const{xk:G,authKey:iA,counter:MA,tagMask:m}=rA(),y=new Uint8Array(p.length+C),uA=[G,iA,MA,m];(0,a.isAligned32)(p)||uA.push(p=(0,a.copyBytes)(p)),wA(G,!1,MA,p,y.subarray(0,p.length));const CA=lA(iA,m,y.subarray(0,y.length-C));return uA.push(CA),y.set(CA,p.length),(0,a.clean)(...uA),y},decrypt(p){const{xk:G,authKey:iA,counter:MA,tagMask:m}=rA(),y=[G,iA,m,MA];(0,a.isAligned32)(p)||y.push(p=(0,a.copyBytes)(p));const uA=p.subarray(0,-C),CA=p.subarray(-C),$A=lA(iA,m,uA);if(y.push($A),!(0,a.equalBytes)($A,CA))throw new Error("aes/gcm: invalid ghash tag");const ZA=wA(G,!1,MA,uA);return(0,a.clean)(...y),ZA}}});const cA=(IA,BA,hA)=>R=>{if(!Number.isSafeInteger(R)||BA>R||R>hA){const C="["+BA+".."+hA+"]";throw new Error(""+IA+": expected value in range "+C+", got "+R)}};r.gcmsiv=(0,a.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(BA,hA,R){const lA=cA("AAD",0,68719476736),rA=cA("plaintext",0,2**36),p=cA("nonce",12,12),G=cA("ciphertext",16,2**36+16);(0,a.abytes)(BA,16,24,32),p(hA.length),R!==void 0&&lA(R.length);function iA(){const y=q(BA),uA=new Uint8Array(BA.length),CA=new Uint8Array(16),$A=[y,uA];let ZA=hA;(0,a.isAligned32)(ZA)||$A.push(ZA=(0,a.copyBytes)(ZA));const kA=(0,a.u32)(ZA);let de=0,Te=kA[0],Re=kA[1],ze=kA[2],We=0;for(const ge of[CA,uA].map(a.u32)){const dA=(0,a.u32)(ge);for(let k=0;k<dA.length;k+=2){const{s0:J,s1:_}=B(y,de,Te,Re,ze);dA[k+0]=J,dA[k+1]=_,de=++We}}const ee={authKey:CA,encKey:q(uA)};return(0,a.clean)(...$A),ee}function MA(y,uA,CA){const $A=FA(A.polyval,!0,uA,CA,R);for(let ze=0;ze<12;ze++)$A[ze]^=hA[ze];$A[15]&=127;const ZA=(0,a.u32)($A);let kA=ZA[0],de=ZA[1],Te=ZA[2],Re=ZA[3];return{s0:kA,s1:de,s2:Te,s3:Re}=B(y,kA,de,Te,Re),ZA[0]=kA,ZA[1]=de,ZA[2]=Te,ZA[3]=Re,$A}function m(y,uA,CA){let $A=(0,a.copyBytes)(uA);$A[15]|=128;const ZA=wA(y,!0,$A,CA);return(0,a.clean)($A),ZA}return{encrypt(y){rA(y.length);const{encKey:uA,authKey:CA}=iA(),$A=MA(uA,CA,y),ZA=[uA,CA,$A];(0,a.isAligned32)(y)||ZA.push(y=(0,a.copyBytes)(y));const kA=new Uint8Array(y.length+16);return kA.set($A,y.length),kA.set(m(uA,$A,y)),(0,a.clean)(...ZA),kA},decrypt(y){G(y.length);const uA=y.subarray(-16),{encKey:CA,authKey:$A}=iA(),ZA=[CA,$A];(0,a.isAligned32)(y)||ZA.push(y=(0,a.copyBytes)(y));const kA=m(CA,uA,y.subarray(0,-16)),de=MA(CA,$A,kA);if(ZA.push(de),!(0,a.equalBytes)(uA,de))throw(0,a.clean)(...ZA),new Error("invalid polyval tag");return(0,a.clean)(...ZA),kA}}}),r.siv=r.gcmsiv;function yA(IA){return IA instanceof Uint32Array||ArrayBuffer.isView(IA)&&IA.constructor.name==="Uint32Array"}function zA(IA,BA){if((0,a.abytes)(BA,16),!yA(IA))throw new Error("_encryptBlock accepts result of expandKeyLE");const hA=(0,a.u32)(BA);let{s0:R,s1:C,s2:lA,s3:rA}=B(IA,hA[0],hA[1],hA[2],hA[3]);return hA[0]=R,hA[1]=C,hA[2]=lA,hA[3]=rA,BA}function mA(IA,BA){if((0,a.abytes)(BA,16),!yA(IA))throw new Error("_decryptBlock accepts result of expandKeyLE");const hA=(0,a.u32)(BA);let{s0:R,s1:C,s2:lA,s3:rA}=v(IA,hA[0],hA[1],hA[2],hA[3]);return hA[0]=R,hA[1]=C,hA[2]=lA,hA[3]=rA,BA}const HA={encrypt(IA,BA){if(BA.length>=2**32)throw new Error("plaintext should be less than 4gb");const hA=q(IA);if(BA.length===16)zA(hA,BA);else{const R=(0,a.u32)(BA);let C=R[0],lA=R[1];for(let rA=0,p=1;rA<6;rA++)for(let G=2;G<R.length;G+=2,p++){const{s0:iA,s1:MA,s2:m,s3:y}=B(hA,C,lA,R[G],R[G+1]);C=iA,lA=MA^b(p),R[G]=m,R[G+1]=y}R[0]=C,R[1]=lA}hA.fill(0)},decrypt(IA,BA){if(BA.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const hA=Z(IA),R=BA.length/8-1;if(R===1)mA(hA,BA);else{const C=(0,a.u32)(BA);let lA=C[0],rA=C[1];for(let p=0,G=R*6;p<6;p++)for(let iA=R*2;iA>=1;iA-=2,G--){rA^=b(G);const{s0:MA,s1:m,s2:y,s3:uA}=v(hA,lA,rA,C[iA],C[iA+1]);lA=MA,rA=m,C[iA]=y,C[iA+1]=uA}C[0]=lA,C[1]=rA}hA.fill(0)}},pA=new Uint8Array(8).fill(166);r.aeskw=(0,a.wrapCipher)({blockSize:8},IA=>({encrypt(BA){if(!BA.length||BA.length%8!==0)throw new Error("invalid plaintext length");if(BA.length===8)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const hA=(0,a.concatBytes)(pA,BA);return HA.encrypt(IA,hA),hA},decrypt(BA){if(BA.length%8!==0||BA.length<24)throw new Error("invalid ciphertext length");const hA=(0,a.copyBytes)(BA);if(HA.decrypt(IA,hA),!(0,a.equalBytes)(hA.subarray(0,8),pA))throw new Error("integrity check failed");return hA.subarray(0,8).fill(0),hA.subarray(8)}}));const NA=2790873510;r.aeskwp=(0,a.wrapCipher)({blockSize:8},IA=>({encrypt(BA){if(!BA.length)throw new Error("invalid plaintext length");const hA=Math.ceil(BA.length/8)*8,R=new Uint8Array(8+hA);R.set(BA,8);const C=(0,a.u32)(R);return C[0]=NA,C[1]=b(BA.length),HA.encrypt(IA,R),R},decrypt(BA){if(BA.length<16)throw new Error("invalid ciphertext length");const hA=(0,a.copyBytes)(BA),R=(0,a.u32)(hA);HA.decrypt(IA,hA);const C=b(R[1])>>>0,lA=Math.ceil(C/8)*8;if(R[0]!==NA||hA.length-8!==lA)throw new Error("integrity check failed");for(let rA=C;rA<lA;rA++)if(hA[8+rA]!==0)throw new Error("integrity check failed");return hA.subarray(0,8).fill(0),hA.subarray(8,8+C)}})),r.unsafe={expandKeyLE:q,expandKeyDecLE:Z,encrypt:B,decrypt:v,encryptBlock:zA,decryptBlock:mA,ctrCounter:bA,ctr32:wA}},5181(o,r){/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */Object.defineProperty(r,"__esModule",{value:!0}),r.wrapCipher=r.Hash=r.nextTick=r.isLE=void 0,r.isBytes=t,r.abool=A,r.anumber=a,r.abytes=f,r.ahash=h,r.aexists=Q,r.aoutput=d,r.u8=E,r.u32=D,r.clean=Y,r.createView=z,r.bytesToHex=b,r.hexToBytes=gA,r.hexToNumber=oA,r.bytesToNumberBE=q,r.numberToBytesBE=Z,r.utf8ToBytes=X,r.bytesToUtf8=B,r.toBytes=v,r.overlapBytes=bA,r.complexOverlapBytes=wA,r.concatBytes=tA,r.checkOpts=nA,r.equalBytes=KA,r.getOutput=cA,r.setBigUint64=yA,r.u64Lengths=zA,r.isAligned32=mA,r.copyBytes=HA;function t(pA){return pA instanceof Uint8Array||ArrayBuffer.isView(pA)&&pA.constructor.name==="Uint8Array"}function A(pA){if(typeof pA!="boolean")throw new Error(`boolean expected, not ${pA}`)}function a(pA){if(!Number.isSafeInteger(pA)||pA<0)throw new Error("positive integer expected, got "+pA)}function f(pA,...NA){if(!t(pA))throw new Error("Uint8Array expected");if(NA.length>0&&!NA.includes(pA.length))throw new Error("Uint8Array expected of length "+NA+", got length="+pA.length)}function h(pA){if(typeof pA!="function"||typeof pA.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");a(pA.outputLen),a(pA.blockLen)}function Q(pA,NA=!0){if(pA.destroyed)throw new Error("Hash instance has been destroyed");if(NA&&pA.finished)throw new Error("Hash#digest() has already been called")}function d(pA,NA){f(pA);const IA=NA.outputLen;if(pA.length<IA)throw new Error("digestInto() expects output buffer of length at least "+IA)}function E(pA){return new Uint8Array(pA.buffer,pA.byteOffset,pA.byteLength)}function D(pA){return new Uint32Array(pA.buffer,pA.byteOffset,Math.floor(pA.byteLength/4))}function Y(...pA){for(let NA=0;NA<pA.length;NA++)pA[NA].fill(0)}function z(pA){return new DataView(pA.buffer,pA.byteOffset,pA.byteLength)}r.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const L=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",T=Array.from({length:256},(pA,NA)=>NA.toString(16).padStart(2,"0"));function b(pA){if(f(pA),L)return pA.toHex();let NA="";for(let IA=0;IA<pA.length;IA++)NA+=T[pA[IA]];return NA}const N={_0:48,_9:57,A:65,F:70,a:97,f:102};function O(pA){if(pA>=N._0&&pA<=N._9)return pA-N._0;if(pA>=N.A&&pA<=N.F)return pA-(N.A-10);if(pA>=N.a&&pA<=N.f)return pA-(N.a-10)}function gA(pA){if(typeof pA!="string")throw new Error("hex string expected, got "+typeof pA);if(L)return Uint8Array.fromHex(pA);const NA=pA.length,IA=NA/2;if(NA%2)throw new Error("hex string expected, got unpadded hex of length "+NA);const BA=new Uint8Array(IA);for(let hA=0,R=0;hA<IA;hA++,R+=2){const C=O(pA.charCodeAt(R)),lA=O(pA.charCodeAt(R+1));if(C===void 0||lA===void 0){const rA=pA[R]+pA[R+1];throw new Error('hex string expected, got non-hex character "'+rA+'" at index '+R)}BA[hA]=C*16+lA}return BA}function oA(pA){if(typeof pA!="string")throw new Error("hex string expected, got "+typeof pA);return BigInt(pA===""?"0":"0x"+pA)}function q(pA){return oA(b(pA))}function Z(pA,NA){return gA(pA.toString(16).padStart(NA*2,"0"))}const x=async()=>{};r.nextTick=x;function X(pA){if(typeof pA!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(pA))}function B(pA){return new TextDecoder().decode(pA)}function v(pA){if(typeof pA=="string")pA=X(pA);else if(t(pA))pA=HA(pA);else throw new Error("Uint8Array expected, got "+typeof pA);return pA}function bA(pA,NA){return pA.buffer===NA.buffer&&pA.byteOffset<NA.byteOffset+NA.byteLength&&NA.byteOffset<pA.byteOffset+pA.byteLength}function wA(pA,NA){if(bA(pA,NA)&&pA.byteOffset<NA.byteOffset)throw new Error("complex overlap of input and output is not supported")}function tA(...pA){let NA=0;for(let BA=0;BA<pA.length;BA++){const hA=pA[BA];f(hA),NA+=hA.length}const IA=new Uint8Array(NA);for(let BA=0,hA=0;BA<pA.length;BA++){const R=pA[BA];IA.set(R,hA),hA+=R.length}return IA}function nA(pA,NA){if(NA==null||typeof NA!="object")throw new Error("options must be defined");return Object.assign(pA,NA)}function KA(pA,NA){if(pA.length!==NA.length)return!1;let IA=0;for(let BA=0;BA<pA.length;BA++)IA|=pA[BA]^NA[BA];return IA===0}class DA{}r.Hash=DA;const FA=(pA,NA)=>{function IA(BA,...hA){if(f(BA),!r.isLE)throw new Error("Non little-endian hardware is not yet supported");if(pA.nonceLength!==void 0){const G=hA[0];if(!G)throw new Error("nonce / iv required");pA.varSizeNonce?f(G):f(G,pA.nonceLength)}const R=pA.tagLength;R&&hA[1]!==void 0&&f(hA[1]);const C=NA(BA,...hA),lA=(G,iA)=>{if(iA!==void 0){if(G!==2)throw new Error("cipher output not supported");f(iA)}};let rA=!1;return{encrypt(G,iA){if(rA)throw new Error("cannot encrypt() twice with same key + nonce");return rA=!0,f(G),lA(C.encrypt.length,iA),C.encrypt(G,iA)},decrypt(G,iA){if(f(G),R&&G.length<R)throw new Error("invalid ciphertext length: smaller than tagLength="+R);return lA(C.decrypt.length,iA),C.decrypt(G,iA)}}}return Object.assign(IA,pA),IA};r.wrapCipher=FA;function cA(pA,NA,IA=!0){if(NA===void 0)return new Uint8Array(pA);if(NA.length!==pA)throw new Error("invalid output length, expected "+pA+", got: "+NA.length);if(IA&&!mA(NA))throw new Error("invalid output, must be aligned");return NA}function yA(pA,NA,IA,BA){if(typeof pA.setBigUint64=="function")return pA.setBigUint64(NA,IA,BA);const hA=BigInt(32),R=BigInt(4294967295),C=Number(IA>>hA&R),lA=Number(IA&R),rA=BA?4:0,p=BA?0:4;pA.setUint32(NA+rA,C,BA),pA.setUint32(NA+p,lA,BA)}function zA(pA,NA,IA){A(IA);const BA=new Uint8Array(16),hA=z(BA);return yA(hA,0,BigInt(NA),IA),yA(hA,8,BigInt(pA),IA),BA}function mA(pA){return pA.byteOffset%4===0}function HA(pA){return Uint8Array.from(pA)}},6784(o,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.SHA512_IV=r.SHA384_IV=r.SHA224_IV=r.SHA256_IV=r.HashMD=void 0,r.setBigUint64=a,r.Chi=f,r.Maj=h;const A=t(3973);function a(d,E,D,Y){if(typeof d.setBigUint64=="function")return d.setBigUint64(E,D,Y);const z=BigInt(32),L=BigInt(4294967295),T=Number(D>>z&L),b=Number(D&L),N=Y?4:0,O=Y?0:4;d.setUint32(E+N,T,Y),d.setUint32(E+O,b,Y)}function f(d,E,D){return d&E^~d&D}function h(d,E,D){return d&E^d&D^E&D}class Q extends A.Hash{constructor(E,D,Y,z){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=E,this.outputLen=D,this.padOffset=Y,this.isLE=z,this.buffer=new Uint8Array(E),this.view=(0,A.createView)(this.buffer)}update(E){(0,A.aexists)(this),E=(0,A.toBytes)(E),(0,A.abytes)(E);const{view:D,buffer:Y,blockLen:z}=this,L=E.length;for(let T=0;T<L;){const b=Math.min(z-this.pos,L-T);if(b===z){const N=(0,A.createView)(E);for(;z<=L-T;T+=z)this.process(N,T);continue}Y.set(E.subarray(T,T+b),this.pos),this.pos+=b,T+=b,this.pos===z&&(this.process(D,0),this.pos=0)}return this.length+=E.length,this.roundClean(),this}digestInto(E){(0,A.aexists)(this),(0,A.aoutput)(E,this),this.finished=!0;const{buffer:D,view:Y,blockLen:z,isLE:L}=this;let{pos:T}=this;D[T++]=128,(0,A.clean)(this.buffer.subarray(T)),this.padOffset>z-T&&(this.process(Y,0),T=0);for(let oA=T;oA<z;oA++)D[oA]=0;a(Y,z-8,BigInt(this.length*8),L),this.process(Y,0);const b=(0,A.createView)(E),N=this.outputLen;if(N%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const O=N/4,gA=this.get();if(O>gA.length)throw new Error("_sha2: outputLen bigger than state");for(let oA=0;oA<O;oA++)b.setUint32(4*oA,gA[oA],L)}digest(){const{buffer:E,outputLen:D}=this;this.digestInto(E);const Y=E.slice(0,D);return this.destroy(),Y}_cloneInto(E){E||(E=new this.constructor),E.set(...this.get());const{blockLen:D,buffer:Y,length:z,finished:L,destroyed:T,pos:b}=this;return E.destroyed=T,E.finished=L,E.length=z,E.pos=b,z%D&&E.buffer.set(Y),E}clone(){return this._cloneInto()}}r.HashMD=Q,r.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),r.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),r.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),r.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},4996(o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toBig=r.shrSL=r.shrSH=r.rotrSL=r.rotrSH=r.rotrBL=r.rotrBH=r.rotr32L=r.rotr32H=r.rotlSL=r.rotlSH=r.rotlBL=r.rotlBH=r.add5L=r.add5H=r.add4L=r.add4H=r.add3L=r.add3H=void 0,r.add=oA,r.fromBig=a,r.split=f;const t=BigInt(2**32-1),A=BigInt(32);function a(wA,tA=!1){return tA?{h:Number(wA&t),l:Number(wA>>A&t)}:{h:Number(wA>>A&t)|0,l:Number(wA&t)|0}}function f(wA,tA=!1){const nA=wA.length;let KA=new Uint32Array(nA),DA=new Uint32Array(nA);for(let FA=0;FA<nA;FA++){const{h:cA,l:yA}=a(wA[FA],tA);[KA[FA],DA[FA]]=[cA,yA]}return[KA,DA]}const h=(wA,tA)=>BigInt(wA>>>0)<<A|BigInt(tA>>>0);r.toBig=h;const Q=(wA,tA,nA)=>wA>>>nA;r.shrSH=Q;const d=(wA,tA,nA)=>wA<<32-nA|tA>>>nA;r.shrSL=d;const E=(wA,tA,nA)=>wA>>>nA|tA<<32-nA;r.rotrSH=E;const D=(wA,tA,nA)=>wA<<32-nA|tA>>>nA;r.rotrSL=D;const Y=(wA,tA,nA)=>wA<<64-nA|tA>>>nA-32;r.rotrBH=Y;const z=(wA,tA,nA)=>wA>>>nA-32|tA<<64-nA;r.rotrBL=z;const L=(wA,tA)=>tA;r.rotr32H=L;const T=(wA,tA)=>wA;r.rotr32L=T;const b=(wA,tA,nA)=>wA<<nA|tA>>>32-nA;r.rotlSH=b;const N=(wA,tA,nA)=>tA<<nA|wA>>>32-nA;r.rotlSL=N;const O=(wA,tA,nA)=>tA<<nA-32|wA>>>64-nA;r.rotlBH=O;const gA=(wA,tA,nA)=>wA<<nA-32|tA>>>64-nA;r.rotlBL=gA;function oA(wA,tA,nA,KA){const DA=(tA>>>0)+(KA>>>0);return{h:wA+nA+(DA/4294967296|0)|0,l:DA|0}}const q=(wA,tA,nA)=>(wA>>>0)+(tA>>>0)+(nA>>>0);r.add3L=q;const Z=(wA,tA,nA,KA)=>tA+nA+KA+(wA/2**32|0)|0;r.add3H=Z;const x=(wA,tA,nA,KA)=>(wA>>>0)+(tA>>>0)+(nA>>>0)+(KA>>>0);r.add4L=x;const X=(wA,tA,nA,KA,DA)=>tA+nA+KA+DA+(wA/2**32|0)|0;r.add4H=X;const B=(wA,tA,nA,KA,DA)=>(wA>>>0)+(tA>>>0)+(nA>>>0)+(KA>>>0)+(DA>>>0);r.add5L=B;const v=(wA,tA,nA,KA,DA,FA)=>tA+nA+KA+DA+FA+(wA/2**32|0)|0;r.add5H=v;const bA={fromBig:a,split:f,toBig:h,shrSH:Q,shrSL:d,rotrSH:E,rotrSL:D,rotrBH:Y,rotrBL:z,rotr32H:L,rotr32L:T,rotlSH:b,rotlSL:N,rotlBH:O,rotlBL:gA,add:oA,add3L:q,add3H:Z,add4L:x,add4H:X,add5H:v,add5L:B};r.default=bA},2491(o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0},2650(o,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.sha512_224=r.sha512_256=r.sha384=r.sha512=r.sha224=r.sha256=r.SHA512_256=r.SHA512_224=r.SHA384=r.SHA512=r.SHA224=r.SHA256=void 0;const A=t(6784),a=t(4996),f=t(3973),h=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array(64);class d extends A.HashMD{constructor(x=32){super(64,x,8,!1),this.A=A.SHA256_IV[0]|0,this.B=A.SHA256_IV[1]|0,this.C=A.SHA256_IV[2]|0,this.D=A.SHA256_IV[3]|0,this.E=A.SHA256_IV[4]|0,this.F=A.SHA256_IV[5]|0,this.G=A.SHA256_IV[6]|0,this.H=A.SHA256_IV[7]|0}get(){const{A:x,B:X,C:B,D:v,E:bA,F:wA,G:tA,H:nA}=this;return[x,X,B,v,bA,wA,tA,nA]}set(x,X,B,v,bA,wA,tA,nA){this.A=x|0,this.B=X|0,this.C=B|0,this.D=v|0,this.E=bA|0,this.F=wA|0,this.G=tA|0,this.H=nA|0}process(x,X){for(let FA=0;FA<16;FA++,X+=4)Q[FA]=x.getUint32(X,!1);for(let FA=16;FA<64;FA++){const cA=Q[FA-15],yA=Q[FA-2],zA=(0,f.rotr)(cA,7)^(0,f.rotr)(cA,18)^cA>>>3,mA=(0,f.rotr)(yA,17)^(0,f.rotr)(yA,19)^yA>>>10;Q[FA]=mA+Q[FA-7]+zA+Q[FA-16]|0}let{A:B,B:v,C:bA,D:wA,E:tA,F:nA,G:KA,H:DA}=this;for(let FA=0;FA<64;FA++){const cA=(0,f.rotr)(tA,6)^(0,f.rotr)(tA,11)^(0,f.rotr)(tA,25),yA=DA+cA+(0,A.Chi)(tA,nA,KA)+h[FA]+Q[FA]|0,mA=((0,f.rotr)(B,2)^(0,f.rotr)(B,13)^(0,f.rotr)(B,22))+(0,A.Maj)(B,v,bA)|0;DA=KA,KA=nA,nA=tA,tA=wA+yA|0,wA=bA,bA=v,v=B,B=yA+mA|0}B=B+this.A|0,v=v+this.B|0,bA=bA+this.C|0,wA=wA+this.D|0,tA=tA+this.E|0,nA=nA+this.F|0,KA=KA+this.G|0,DA=DA+this.H|0,this.set(B,v,bA,wA,tA,nA,KA,DA)}roundClean(){(0,f.clean)(Q)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,f.clean)(this.buffer)}}r.SHA256=d;class E extends d{constructor(){super(28),this.A=A.SHA224_IV[0]|0,this.B=A.SHA224_IV[1]|0,this.C=A.SHA224_IV[2]|0,this.D=A.SHA224_IV[3]|0,this.E=A.SHA224_IV[4]|0,this.F=A.SHA224_IV[5]|0,this.G=A.SHA224_IV[6]|0,this.H=A.SHA224_IV[7]|0}}r.SHA224=E;const D=a.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(Z=>BigInt(Z))),Y=D[0],z=D[1],L=new Uint32Array(80),T=new Uint32Array(80);class b extends A.HashMD{constructor(x=64){super(128,x,16,!1),this.Ah=A.SHA512_IV[0]|0,this.Al=A.SHA512_IV[1]|0,this.Bh=A.SHA512_IV[2]|0,this.Bl=A.SHA512_IV[3]|0,this.Ch=A.SHA512_IV[4]|0,this.Cl=A.SHA512_IV[5]|0,this.Dh=A.SHA512_IV[6]|0,this.Dl=A.SHA512_IV[7]|0,this.Eh=A.SHA512_IV[8]|0,this.El=A.SHA512_IV[9]|0,this.Fh=A.SHA512_IV[10]|0,this.Fl=A.SHA512_IV[11]|0,this.Gh=A.SHA512_IV[12]|0,this.Gl=A.SHA512_IV[13]|0,this.Hh=A.SHA512_IV[14]|0,this.Hl=A.SHA512_IV[15]|0}get(){const{Ah:x,Al:X,Bh:B,Bl:v,Ch:bA,Cl:wA,Dh:tA,Dl:nA,Eh:KA,El:DA,Fh:FA,Fl:cA,Gh:yA,Gl:zA,Hh:mA,Hl:HA}=this;return[x,X,B,v,bA,wA,tA,nA,KA,DA,FA,cA,yA,zA,mA,HA]}set(x,X,B,v,bA,wA,tA,nA,KA,DA,FA,cA,yA,zA,mA,HA){this.Ah=x|0,this.Al=X|0,this.Bh=B|0,this.Bl=v|0,this.Ch=bA|0,this.Cl=wA|0,this.Dh=tA|0,this.Dl=nA|0,this.Eh=KA|0,this.El=DA|0,this.Fh=FA|0,this.Fl=cA|0,this.Gh=yA|0,this.Gl=zA|0,this.Hh=mA|0,this.Hl=HA|0}process(x,X){for(let IA=0;IA<16;IA++,X+=4)L[IA]=x.getUint32(X),T[IA]=x.getUint32(X+=4);for(let IA=16;IA<80;IA++){const BA=L[IA-15]|0,hA=T[IA-15]|0,R=a.rotrSH(BA,hA,1)^a.rotrSH(BA,hA,8)^a.shrSH(BA,hA,7),C=a.rotrSL(BA,hA,1)^a.rotrSL(BA,hA,8)^a.shrSL(BA,hA,7),lA=L[IA-2]|0,rA=T[IA-2]|0,p=a.rotrSH(lA,rA,19)^a.rotrBH(lA,rA,61)^a.shrSH(lA,rA,6),G=a.rotrSL(lA,rA,19)^a.rotrBL(lA,rA,61)^a.shrSL(lA,rA,6),iA=a.add4L(C,G,T[IA-7],T[IA-16]),MA=a.add4H(iA,R,p,L[IA-7],L[IA-16]);L[IA]=MA|0,T[IA]=iA|0}let{Ah:B,Al:v,Bh:bA,Bl:wA,Ch:tA,Cl:nA,Dh:KA,Dl:DA,Eh:FA,El:cA,Fh:yA,Fl:zA,Gh:mA,Gl:HA,Hh:pA,Hl:NA}=this;for(let IA=0;IA<80;IA++){const BA=a.rotrSH(FA,cA,14)^a.rotrSH(FA,cA,18)^a.rotrBH(FA,cA,41),hA=a.rotrSL(FA,cA,14)^a.rotrSL(FA,cA,18)^a.rotrBL(FA,cA,41),R=FA&yA^~FA&mA,C=cA&zA^~cA&HA,lA=a.add5L(NA,hA,C,z[IA],T[IA]),rA=a.add5H(lA,pA,BA,R,Y[IA],L[IA]),p=lA|0,G=a.rotrSH(B,v,28)^a.rotrBH(B,v,34)^a.rotrBH(B,v,39),iA=a.rotrSL(B,v,28)^a.rotrBL(B,v,34)^a.rotrBL(B,v,39),MA=B&bA^B&tA^bA&tA,m=v&wA^v&nA^wA&nA;pA=mA|0,NA=HA|0,mA=yA|0,HA=zA|0,yA=FA|0,zA=cA|0,{h:FA,l:cA}=a.add(KA|0,DA|0,rA|0,p|0),KA=tA|0,DA=nA|0,tA=bA|0,nA=wA|0,bA=B|0,wA=v|0;const y=a.add3L(p,iA,m);B=a.add3H(y,rA,G,MA),v=y|0}({h:B,l:v}=a.add(this.Ah|0,this.Al|0,B|0,v|0)),{h:bA,l:wA}=a.add(this.Bh|0,this.Bl|0,bA|0,wA|0),{h:tA,l:nA}=a.add(this.Ch|0,this.Cl|0,tA|0,nA|0),{h:KA,l:DA}=a.add(this.Dh|0,this.Dl|0,KA|0,DA|0),{h:FA,l:cA}=a.add(this.Eh|0,this.El|0,FA|0,cA|0),{h:yA,l:zA}=a.add(this.Fh|0,this.Fl|0,yA|0,zA|0),{h:mA,l:HA}=a.add(this.Gh|0,this.Gl|0,mA|0,HA|0),{h:pA,l:NA}=a.add(this.Hh|0,this.Hl|0,pA|0,NA|0),this.set(B,v,bA,wA,tA,nA,KA,DA,FA,cA,yA,zA,mA,HA,pA,NA)}roundClean(){(0,f.clean)(L,T)}destroy(){(0,f.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}r.SHA512=b;class N extends b{constructor(){super(48),this.Ah=A.SHA384_IV[0]|0,this.Al=A.SHA384_IV[1]|0,this.Bh=A.SHA384_IV[2]|0,this.Bl=A.SHA384_IV[3]|0,this.Ch=A.SHA384_IV[4]|0,this.Cl=A.SHA384_IV[5]|0,this.Dh=A.SHA384_IV[6]|0,this.Dl=A.SHA384_IV[7]|0,this.Eh=A.SHA384_IV[8]|0,this.El=A.SHA384_IV[9]|0,this.Fh=A.SHA384_IV[10]|0,this.Fl=A.SHA384_IV[11]|0,this.Gh=A.SHA384_IV[12]|0,this.Gl=A.SHA384_IV[13]|0,this.Hh=A.SHA384_IV[14]|0,this.Hl=A.SHA384_IV[15]|0}}r.SHA384=N;const O=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),gA=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class oA extends b{constructor(){super(28),this.Ah=O[0]|0,this.Al=O[1]|0,this.Bh=O[2]|0,this.Bl=O[3]|0,this.Ch=O[4]|0,this.Cl=O[5]|0,this.Dh=O[6]|0,this.Dl=O[7]|0,this.Eh=O[8]|0,this.El=O[9]|0,this.Fh=O[10]|0,this.Fl=O[11]|0,this.Gh=O[12]|0,this.Gl=O[13]|0,this.Hh=O[14]|0,this.Hl=O[15]|0}}r.SHA512_224=oA;class q extends b{constructor(){super(32),this.Ah=gA[0]|0,this.Al=gA[1]|0,this.Bh=gA[2]|0,this.Bl=gA[3]|0,this.Ch=gA[4]|0,this.Cl=gA[5]|0,this.Dh=gA[6]|0,this.Dl=gA[7]|0,this.Eh=gA[8]|0,this.El=gA[9]|0,this.Fh=gA[10]|0,this.Fl=gA[11]|0,this.Gh=gA[12]|0,this.Gl=gA[13]|0,this.Hh=gA[14]|0,this.Hl=gA[15]|0}}r.SHA512_256=q,r.sha256=(0,f.createHasher)(()=>new d),r.sha224=(0,f.createHasher)(()=>new E),r.sha512=(0,f.createHasher)(()=>new b),r.sha384=(0,f.createHasher)(()=>new N),r.sha512_256=(0,f.createHasher)(()=>new q),r.sha512_224=(0,f.createHasher)(()=>new oA)},7785(o,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.sha224=r.SHA224=r.sha256=r.SHA256=void 0;const A=t(2650);r.SHA256=A.SHA256,r.sha256=A.sha256,r.SHA224=A.SHA224,r.sha224=A.sha224},3973(o,r,t){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(r,"__esModule",{value:!0}),r.wrapXOFConstructorWithOpts=r.wrapConstructorWithOpts=r.wrapConstructor=r.Hash=r.nextTick=r.swap32IfBE=r.byteSwapIfBE=r.swap8IfBE=r.isLE=void 0,r.isBytes=a,r.anumber=f,r.abytes=h,r.ahash=Q,r.aexists=d,r.aoutput=E,r.u8=D,r.u32=Y,r.clean=z,r.createView=L,r.rotr=T,r.rotl=b,r.byteSwap=N,r.byteSwap32=O,r.bytesToHex=q,r.hexToBytes=X,r.asyncLoop=v,r.utf8ToBytes=bA,r.bytesToUtf8=wA,r.toBytes=tA,r.kdfInputToBytes=nA,r.concatBytes=KA,r.checkOpts=DA,r.createHasher=cA,r.createOptHasher=yA,r.createXOFer=zA,r.randomBytes=mA;const A=t(2491);function a(HA){return HA instanceof Uint8Array||ArrayBuffer.isView(HA)&&HA.constructor.name==="Uint8Array"}function f(HA){if(!Number.isSafeInteger(HA)||HA<0)throw new Error("positive integer expected, got "+HA)}function h(HA,...pA){if(!a(HA))throw new Error("Uint8Array expected");if(pA.length>0&&!pA.includes(HA.length))throw new Error("Uint8Array expected of length "+pA+", got length="+HA.length)}function Q(HA){if(typeof HA!="function"||typeof HA.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");f(HA.outputLen),f(HA.blockLen)}function d(HA,pA=!0){if(HA.destroyed)throw new Error("Hash instance has been destroyed");if(pA&&HA.finished)throw new Error("Hash#digest() has already been called")}function E(HA,pA){h(HA);const NA=pA.outputLen;if(HA.length<NA)throw new Error("digestInto() expects output buffer of length at least "+NA)}function D(HA){return new Uint8Array(HA.buffer,HA.byteOffset,HA.byteLength)}function Y(HA){return new Uint32Array(HA.buffer,HA.byteOffset,Math.floor(HA.byteLength/4))}function z(...HA){for(let pA=0;pA<HA.length;pA++)HA[pA].fill(0)}function L(HA){return new DataView(HA.buffer,HA.byteOffset,HA.byteLength)}function T(HA,pA){return HA<<32-pA|HA>>>pA}function b(HA,pA){return HA<<pA|HA>>>32-pA>>>0}r.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function N(HA){return HA<<24&4278190080|HA<<8&16711680|HA>>>8&65280|HA>>>24&255}r.swap8IfBE=r.isLE?HA=>HA:HA=>N(HA),r.byteSwapIfBE=r.swap8IfBE;function O(HA){for(let pA=0;pA<HA.length;pA++)HA[pA]=N(HA[pA]);return HA}r.swap32IfBE=r.isLE?HA=>HA:O;const gA=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",oA=Array.from({length:256},(HA,pA)=>pA.toString(16).padStart(2,"0"));function q(HA){if(h(HA),gA)return HA.toHex();let pA="";for(let NA=0;NA<HA.length;NA++)pA+=oA[HA[NA]];return pA}const Z={_0:48,_9:57,A:65,F:70,a:97,f:102};function x(HA){if(HA>=Z._0&&HA<=Z._9)return HA-Z._0;if(HA>=Z.A&&HA<=Z.F)return HA-(Z.A-10);if(HA>=Z.a&&HA<=Z.f)return HA-(Z.a-10)}function X(HA){if(typeof HA!="string")throw new Error("hex string expected, got "+typeof HA);if(gA)return Uint8Array.fromHex(HA);const pA=HA.length,NA=pA/2;if(pA%2)throw new Error("hex string expected, got unpadded hex of length "+pA);const IA=new Uint8Array(NA);for(let BA=0,hA=0;BA<NA;BA++,hA+=2){const R=x(HA.charCodeAt(hA)),C=x(HA.charCodeAt(hA+1));if(R===void 0||C===void 0){const lA=HA[hA]+HA[hA+1];throw new Error('hex string expected, got non-hex character "'+lA+'" at index '+hA)}IA[BA]=R*16+C}return IA}const B=async()=>{};r.nextTick=B;async function v(HA,pA,NA){let IA=Date.now();for(let BA=0;BA<HA;BA++){NA(BA);const hA=Date.now()-IA;hA>=0&&hA<pA||(await(0,r.nextTick)(),IA+=hA)}}function bA(HA){if(typeof HA!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(HA))}function wA(HA){return new TextDecoder().decode(HA)}function tA(HA){return typeof HA=="string"&&(HA=bA(HA)),h(HA),HA}function nA(HA){return typeof HA=="string"&&(HA=bA(HA)),h(HA),HA}function KA(...HA){let pA=0;for(let IA=0;IA<HA.length;IA++){const BA=HA[IA];h(BA),pA+=BA.length}const NA=new Uint8Array(pA);for(let IA=0,BA=0;IA<HA.length;IA++){const hA=HA[IA];NA.set(hA,BA),BA+=hA.length}return NA}function DA(HA,pA){if(pA!==void 0&&{}.toString.call(pA)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(HA,pA)}class FA{}r.Hash=FA;function cA(HA){const pA=IA=>HA().update(tA(IA)).digest(),NA=HA();return pA.outputLen=NA.outputLen,pA.blockLen=NA.blockLen,pA.create=()=>HA(),pA}function yA(HA){const pA=(IA,BA)=>HA(BA).update(tA(IA)).digest(),NA=HA({});return pA.outputLen=NA.outputLen,pA.blockLen=NA.blockLen,pA.create=IA=>HA(IA),pA}function zA(HA){const pA=(IA,BA)=>HA(BA).update(tA(IA)).digest(),NA=HA({});return pA.outputLen=NA.outputLen,pA.blockLen=NA.blockLen,pA.create=IA=>HA(IA),pA}r.wrapConstructor=cA,r.wrapConstructorWithOpts=yA,r.wrapXOFConstructorWithOpts=zA;function mA(HA=32){if(A.crypto&&typeof A.crypto.getRandomValues=="function")return A.crypto.getRandomValues(new Uint8Array(HA));if(A.crypto&&typeof A.crypto.randomBytes=="function")return Uint8Array.from(A.crypto.randomBytes(HA));throw new Error("crypto.getRandomValues must be defined")}},7801(o,r,t){var A=t(9964);function a(C){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(lA){return typeof lA}:function(lA){return lA&&typeof Symbol=="function"&&lA.constructor===Symbol&&lA!==Symbol.prototype?"symbol":typeof lA},a(C)}function f(C,lA,rA){return Object.defineProperty(C,"prototype",{writable:!1}),C}function h(C,lA){if(!(C instanceof lA))throw new TypeError("Cannot call a class as a function")}var Q=t(5403),d=Q.codes,E=d.ERR_AMBIGUOUS_ARGUMENT,D=d.ERR_INVALID_ARG_TYPE,Y=d.ERR_INVALID_ARG_VALUE,z=d.ERR_INVALID_RETURN_VALUE,L=d.ERR_MISSING_ARGS,T=t(5416),b=t(7187),N=b.inspect,O=t(7187).types,gA=O.isPromise,oA=O.isRegExp,q=t(7596)(),Z=t(9636)(),x=t(7913)("RegExp.prototype.test"),X,B;function v(){var C=t(6781);X=C.isDeepEqual,B=C.isDeepStrictEqual}var bA=!1,wA=o.exports=FA,tA={};function nA(C){throw C.message instanceof Error?C.message:new T(C)}function KA(C,lA,rA,p,G){var iA=arguments.length,MA;if(iA===0)MA="Failed";else if(iA===1)rA=C,C=void 0;else{if(bA===!1){bA=!0;var m=A.emitWarning?A.emitWarning:console.warn.bind(console);m("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}iA===2&&(p="!=")}if(rA instanceof Error)throw rA;var y={actual:C,expected:lA,operator:p===void 0?"fail":p,stackStartFn:G||KA};rA!==void 0&&(y.message=rA);var uA=new T(y);throw MA&&(uA.message=MA,uA.generatedMessage=!0),uA}wA.fail=KA,wA.AssertionError=T;function DA(C,lA,rA,p){if(!rA){var G=!1;if(lA===0)G=!0,p="No value argument passed to `assert.ok()`";else if(p instanceof Error)throw p;var iA=new T({actual:rA,expected:!0,message:p,operator:"==",stackStartFn:C});throw iA.generatedMessage=G,iA}}function FA(){for(var C=arguments.length,lA=new Array(C),rA=0;rA<C;rA++)lA[rA]=arguments[rA];DA.apply(void 0,[FA,lA.length].concat(lA))}wA.ok=FA,wA.equal=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");lA!=rA&&nA({actual:lA,expected:rA,message:p,operator:"==",stackStartFn:C})},wA.notEqual=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");lA==rA&&nA({actual:lA,expected:rA,message:p,operator:"!=",stackStartFn:C})},wA.deepEqual=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");X===void 0&&v(),X(lA,rA)||nA({actual:lA,expected:rA,message:p,operator:"deepEqual",stackStartFn:C})},wA.notDeepEqual=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");X===void 0&&v(),X(lA,rA)&&nA({actual:lA,expected:rA,message:p,operator:"notDeepEqual",stackStartFn:C})},wA.deepStrictEqual=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");X===void 0&&v(),B(lA,rA)||nA({actual:lA,expected:rA,message:p,operator:"deepStrictEqual",stackStartFn:C})},wA.notDeepStrictEqual=cA;function cA(C,lA,rA){if(arguments.length<2)throw new L("actual","expected");X===void 0&&v(),B(C,lA)&&nA({actual:C,expected:lA,message:rA,operator:"notDeepStrictEqual",stackStartFn:cA})}wA.strictEqual=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");Z(lA,rA)||nA({actual:lA,expected:rA,message:p,operator:"strictEqual",stackStartFn:C})},wA.notStrictEqual=function C(lA,rA,p){if(arguments.length<2)throw new L("actual","expected");Z(lA,rA)&&nA({actual:lA,expected:rA,message:p,operator:"notStrictEqual",stackStartFn:C})};var yA=f(function C(lA,rA,p){var G=this;h(this,C),rA.forEach(function(iA){iA in lA&&(p!==void 0&&typeof p[iA]=="string"&&oA(lA[iA])&&x(lA[iA],p[iA])?G[iA]=p[iA]:G[iA]=lA[iA])})});function zA(C,lA,rA,p,G,iA){if(!(rA in C)||!B(C[rA],lA[rA])){if(!p){var MA=new yA(C,G),m=new yA(lA,G,C),y=new T({actual:MA,expected:m,operator:"deepStrictEqual",stackStartFn:iA});throw y.actual=C,y.expected=lA,y.operator=iA.name,y}nA({actual:C,expected:lA,message:p,operator:iA.name,stackStartFn:iA})}}function mA(C,lA,rA,p){if(typeof lA!="function"){if(oA(lA))return x(lA,C);if(arguments.length===2)throw new D("expected",["Function","RegExp"],lA);if(a(C)!=="object"||C===null){var G=new T({actual:C,expected:lA,message:rA,operator:"deepStrictEqual",stackStartFn:p});throw G.operator=p.name,G}var iA=Object.keys(lA);if(lA instanceof Error)iA.push("name","message");else if(iA.length===0)throw new Y("error",lA,"may not be an empty object");return X===void 0&&v(),iA.forEach(function(MA){typeof C[MA]=="string"&&oA(lA[MA])&&x(lA[MA],C[MA])||zA(C,lA,MA,rA,iA,p)}),!0}return lA.prototype!==void 0&&C instanceof lA?!0:Error.isPrototypeOf(lA)?!1:lA.call({},C)===!0}function HA(C){if(typeof C!="function")throw new D("fn","Function",C);try{C()}catch(lA){return lA}return tA}function pA(C){return gA(C)||C!==null&&a(C)==="object"&&typeof C.then=="function"&&typeof C.catch=="function"}function NA(C){return Promise.resolve().then(function(){var lA;if(typeof C=="function"){if(lA=C(),!pA(lA))throw new z("instance of Promise","promiseFn",lA)}else if(pA(C))lA=C;else throw new D("promiseFn",["Function","Promise"],C);return Promise.resolve().then(function(){return lA}).then(function(){return tA}).catch(function(rA){return rA})})}function IA(C,lA,rA,p){if(typeof rA=="string"){if(arguments.length===4)throw new D("error",["Object","Error","Function","RegExp"],rA);if(a(lA)==="object"&&lA!==null){if(lA.message===rA)throw new E("error/message",'The error message "'.concat(lA.message,'" is identical to the message.'))}else if(lA===rA)throw new E("error/message",'The error "'.concat(lA,'" is identical to the message.'));p=rA,rA=void 0}else if(rA!=null&&a(rA)!=="object"&&typeof rA!="function")throw new D("error",["Object","Error","Function","RegExp"],rA);if(lA===tA){var G="";rA&&rA.name&&(G+=" (".concat(rA.name,")")),G+=p?": ".concat(p):".";var iA=C.name==="rejects"?"rejection":"exception";nA({actual:void 0,expected:rA,operator:C.name,message:"Missing expected ".concat(iA).concat(G),stackStartFn:C})}if(rA&&!mA(lA,rA,p,C))throw lA}function BA(C,lA,rA,p){if(lA!==tA){if(typeof rA=="string"&&(p=rA,rA=void 0),!rA||mA(lA,rA)){var G=p?": ".concat(p):".",iA=C.name==="doesNotReject"?"rejection":"exception";nA({actual:lA,expected:rA,operator:C.name,message:"Got unwanted ".concat(iA).concat(G,`
`)+'Actual message: "'.concat(lA&&lA.message,'"'),stackStartFn:C})}throw lA}}wA.throws=function C(lA){for(var rA=arguments.length,p=new Array(rA>1?rA-1:0),G=1;G<rA;G++)p[G-1]=arguments[G];IA.apply(void 0,[C,HA(lA)].concat(p))},wA.rejects=function C(lA){for(var rA=arguments.length,p=new Array(rA>1?rA-1:0),G=1;G<rA;G++)p[G-1]=arguments[G];return NA(lA).then(function(iA){return IA.apply(void 0,[C,iA].concat(p))})},wA.doesNotThrow=function C(lA){for(var rA=arguments.length,p=new Array(rA>1?rA-1:0),G=1;G<rA;G++)p[G-1]=arguments[G];BA.apply(void 0,[C,HA(lA)].concat(p))},wA.doesNotReject=function C(lA){for(var rA=arguments.length,p=new Array(rA>1?rA-1:0),G=1;G<rA;G++)p[G-1]=arguments[G];return NA(lA).then(function(iA){return BA.apply(void 0,[C,iA].concat(p))})},wA.ifError=function C(lA){if(lA!=null){var rA="ifError got unwanted exception: ";a(lA)==="object"&&typeof lA.message=="string"?lA.message.length===0&&lA.constructor?rA+=lA.constructor.name:rA+=lA.message:rA+=N(lA);var p=new T({actual:lA,expected:null,operator:"ifError",message:rA,stackStartFn:C}),G=lA.stack;if(typeof G=="string"){var iA=G.split(`
`);iA.shift();for(var MA=p.stack.split(`
`),m=0;m<iA.length;m++){var y=MA.indexOf(iA[m]);if(y!==-1){MA=MA.slice(0,y);break}}p.stack="".concat(MA.join(`
`),`
`).concat(iA.join(`
`))}throw p}};function hA(C,lA,rA,p,G){if(!oA(lA))throw new D("regexp","RegExp",lA);var iA=G==="match";if(typeof C!="string"||x(lA,C)!==iA){if(rA instanceof Error)throw rA;var MA=!rA;rA=rA||(typeof C!="string"?'The "string" argument must be of type string. Received type '+"".concat(a(C)," (").concat(N(C),")"):(iA?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(N(lA),`. Input:

`).concat(N(C),`
`));var m=new T({actual:C,expected:lA,message:rA,operator:G,stackStartFn:p});throw m.generatedMessage=MA,m}}wA.match=function C(lA,rA,p){hA(lA,rA,p,C,"match")},wA.doesNotMatch=function C(lA,rA,p){hA(lA,rA,p,C,"doesNotMatch")};function R(){for(var C=arguments.length,lA=new Array(C),rA=0;rA<C;rA++)lA[rA]=arguments[rA];DA.apply(void 0,[R,lA.length].concat(lA))}wA.strict=q(R,wA,{equal:wA.strictEqual,deepEqual:wA.deepStrictEqual,notEqual:wA.notStrictEqual,notDeepEqual:wA.notDeepStrictEqual}),wA.strict.strict=wA.strict},5416(o,r,t){var A=t(9964);function a(NA,IA){var BA=Object.keys(NA);if(Object.getOwnPropertySymbols){var hA=Object.getOwnPropertySymbols(NA);IA&&(hA=hA.filter(function(R){return Object.getOwnPropertyDescriptor(NA,R).enumerable})),BA.push.apply(BA,hA)}return BA}function f(NA){for(var IA=1;IA<arguments.length;IA++){var BA=arguments[IA]!=null?arguments[IA]:{};IA%2?a(Object(BA),!0).forEach(function(hA){h(NA,hA,BA[hA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(NA,Object.getOwnPropertyDescriptors(BA)):a(Object(BA)).forEach(function(hA){Object.defineProperty(NA,hA,Object.getOwnPropertyDescriptor(BA,hA))})}return NA}function h(NA,IA,BA){return IA=D(IA),IA in NA?Object.defineProperty(NA,IA,{value:BA,enumerable:!0,configurable:!0,writable:!0}):NA[IA]=BA,NA}function Q(NA,IA){if(!(NA instanceof IA))throw new TypeError("Cannot call a class as a function")}function d(NA,IA){for(var BA=0;BA<IA.length;BA++){var hA=IA[BA];hA.enumerable=hA.enumerable||!1,hA.configurable=!0,"value"in hA&&(hA.writable=!0),Object.defineProperty(NA,D(hA.key),hA)}}function E(NA,IA,BA){return IA&&d(NA.prototype,IA),Object.defineProperty(NA,"prototype",{writable:!1}),NA}function D(NA){var IA=Y(NA,"string");return x(IA)==="symbol"?IA:String(IA)}function Y(NA,IA){if(x(NA)!=="object"||NA===null)return NA;var BA=NA[Symbol.toPrimitive];if(BA!==void 0){var hA=BA.call(NA,IA);if(x(hA)!=="object")return hA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(NA)}function z(NA,IA){if(typeof IA!="function"&&IA!==null)throw new TypeError("Super expression must either be null or a function");NA.prototype=Object.create(IA&&IA.prototype,{constructor:{value:NA,writable:!0,configurable:!0}}),Object.defineProperty(NA,"prototype",{writable:!1}),IA&&q(NA,IA)}function L(NA){var IA=gA();return function(){var hA=Z(NA),R;if(IA){var C=Z(this).constructor;R=Reflect.construct(hA,arguments,C)}else R=hA.apply(this,arguments);return T(this,R)}}function T(NA,IA){if(IA&&(x(IA)==="object"||typeof IA=="function"))return IA;if(IA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b(NA)}function b(NA){if(NA===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return NA}function N(NA){var IA=typeof Map=="function"?new Map:void 0;return N=function(hA){if(hA===null||!oA(hA))return hA;if(typeof hA!="function")throw new TypeError("Super expression must either be null or a function");if(typeof IA<"u"){if(IA.has(hA))return IA.get(hA);IA.set(hA,R)}function R(){return O(hA,arguments,Z(this).constructor)}return R.prototype=Object.create(hA.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),q(R,hA)},N(NA)}function O(NA,IA,BA){return gA()?O=Reflect.construct.bind():O=function(R,C,lA){var rA=[null];rA.push.apply(rA,C);var p=Function.bind.apply(R,rA),G=new p;return lA&&q(G,lA.prototype),G},O.apply(null,arguments)}function gA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oA(NA){return Function.toString.call(NA).indexOf("[native code]")!==-1}function q(NA,IA){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(hA,R){return hA.__proto__=R,hA},q(NA,IA)}function Z(NA){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(BA){return BA.__proto__||Object.getPrototypeOf(BA)},Z(NA)}function x(NA){"@babel/helpers - typeof";return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(IA){return typeof IA}:function(IA){return IA&&typeof Symbol=="function"&&IA.constructor===Symbol&&IA!==Symbol.prototype?"symbol":typeof IA},x(NA)}var X=t(7187),B=X.inspect,v=t(5403),bA=v.codes.ERR_INVALID_ARG_TYPE;function wA(NA,IA,BA){return(BA===void 0||BA>NA.length)&&(BA=NA.length),NA.substring(BA-IA.length,BA)===IA}function tA(NA,IA){if(IA=Math.floor(IA),NA.length==0||IA==0)return"";var BA=NA.length*IA;for(IA=Math.floor(Math.log(IA)/Math.log(2));IA;)NA+=NA,IA--;return NA+=NA.substring(0,BA-NA.length),NA}var nA="",KA="",DA="",FA="",cA={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},yA=10;function zA(NA){var IA=Object.keys(NA),BA=Object.create(Object.getPrototypeOf(NA));return IA.forEach(function(hA){BA[hA]=NA[hA]}),Object.defineProperty(BA,"message",{value:NA.message}),BA}function mA(NA){return B(NA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function HA(NA,IA,BA){var hA="",R="",C=0,lA="",rA=!1,p=mA(NA),G=p.split(`
`),iA=mA(IA).split(`
`),MA=0,m="";if(BA==="strictEqual"&&x(NA)==="object"&&x(IA)==="object"&&NA!==null&&IA!==null&&(BA="strictEqualObject"),G.length===1&&iA.length===1&&G[0]!==iA[0]){var y=G[0].length+iA[0].length;if(y<=yA){if((x(NA)!=="object"||NA===null)&&(x(IA)!=="object"||IA===null)&&(NA!==0||IA!==0))return"".concat(cA[BA],`

`)+"".concat(G[0]," !== ").concat(iA[0],`
`)}else if(BA!=="strictEqualObject"){var uA=A.stderr&&A.stderr.isTTY?A.stderr.columns:80;if(y<uA){for(;G[0][MA]===iA[0][MA];)MA++;MA>2&&(m=`
  `.concat(tA(" ",MA),"^"),MA=0)}}}for(var CA=G[G.length-1],$A=iA[iA.length-1];CA===$A&&(MA++<2?lA=`
  `.concat(CA).concat(lA):hA=CA,G.pop(),iA.pop(),!(G.length===0||iA.length===0));)CA=G[G.length-1],$A=iA[iA.length-1];var ZA=Math.max(G.length,iA.length);if(ZA===0){var kA=p.split(`
`);if(kA.length>30)for(kA[26]="".concat(nA,"...").concat(FA);kA.length>27;)kA.pop();return"".concat(cA.notIdentical,`

`).concat(kA.join(`
`),`
`)}MA>3&&(lA=`
`.concat(nA,"...").concat(FA).concat(lA),rA=!0),hA!==""&&(lA=`
  `.concat(hA).concat(lA),hA="");var de=0,Te=cA[BA]+`
`.concat(KA,"+ actual").concat(FA," ").concat(DA,"- expected").concat(FA),Re=" ".concat(nA,"...").concat(FA," Lines skipped");for(MA=0;MA<ZA;MA++){var ze=MA-C;if(G.length<MA+1)ze>1&&MA>2&&(ze>4?(R+=`
`.concat(nA,"...").concat(FA),rA=!0):ze>3&&(R+=`
  `.concat(iA[MA-2]),de++),R+=`
  `.concat(iA[MA-1]),de++),C=MA,hA+=`
`.concat(DA,"-").concat(FA," ").concat(iA[MA]),de++;else if(iA.length<MA+1)ze>1&&MA>2&&(ze>4?(R+=`
`.concat(nA,"...").concat(FA),rA=!0):ze>3&&(R+=`
  `.concat(G[MA-2]),de++),R+=`
  `.concat(G[MA-1]),de++),C=MA,R+=`
`.concat(KA,"+").concat(FA," ").concat(G[MA]),de++;else{var We=iA[MA],ee=G[MA],ge=ee!==We&&(!wA(ee,",")||ee.slice(0,-1)!==We);ge&&wA(We,",")&&We.slice(0,-1)===ee&&(ge=!1,ee+=","),ge?(ze>1&&MA>2&&(ze>4?(R+=`
`.concat(nA,"...").concat(FA),rA=!0):ze>3&&(R+=`
  `.concat(G[MA-2]),de++),R+=`
  `.concat(G[MA-1]),de++),C=MA,R+=`
`.concat(KA,"+").concat(FA," ").concat(ee),hA+=`
`.concat(DA,"-").concat(FA," ").concat(We),de+=2):(R+=hA,hA="",(ze===1||MA===0)&&(R+=`
  `.concat(ee),de++))}if(de>20&&MA<ZA-2)return"".concat(Te).concat(Re,`
`).concat(R,`
`).concat(nA,"...").concat(FA).concat(hA,`
`)+"".concat(nA,"...").concat(FA)}return"".concat(Te).concat(rA?Re:"",`
`).concat(R).concat(hA).concat(lA).concat(m)}var pA=function(NA,IA){z(hA,NA);var BA=L(hA);function hA(R){var C;if(Q(this,hA),x(R)!=="object"||R===null)throw new bA("options","Object",R);var lA=R.message,rA=R.operator,p=R.stackStartFn,G=R.actual,iA=R.expected,MA=Error.stackTraceLimit;if(Error.stackTraceLimit=0,lA!=null)C=BA.call(this,String(lA));else if(A.stderr&&A.stderr.isTTY&&(A.stderr&&A.stderr.getColorDepth&&A.stderr.getColorDepth()!==1?(nA="\x1B[34m",KA="\x1B[32m",FA="\x1B[39m",DA="\x1B[31m"):(nA="",KA="",FA="",DA="")),x(G)==="object"&&G!==null&&x(iA)==="object"&&iA!==null&&"stack"in G&&G instanceof Error&&"stack"in iA&&iA instanceof Error&&(G=zA(G),iA=zA(iA)),rA==="deepStrictEqual"||rA==="strictEqual")C=BA.call(this,HA(G,iA,rA));else if(rA==="notDeepStrictEqual"||rA==="notStrictEqual"){var m=cA[rA],y=mA(G).split(`
`);if(rA==="notStrictEqual"&&x(G)==="object"&&G!==null&&(m=cA.notStrictEqualObject),y.length>30)for(y[26]="".concat(nA,"...").concat(FA);y.length>27;)y.pop();y.length===1?C=BA.call(this,"".concat(m," ").concat(y[0])):C=BA.call(this,"".concat(m,`

`).concat(y.join(`
`),`
`))}else{var uA=mA(G),CA="",$A=cA[rA];rA==="notDeepEqual"||rA==="notEqual"?(uA="".concat(cA[rA],`

`).concat(uA),uA.length>1024&&(uA="".concat(uA.slice(0,1021),"..."))):(CA="".concat(mA(iA)),uA.length>512&&(uA="".concat(uA.slice(0,509),"...")),CA.length>512&&(CA="".concat(CA.slice(0,509),"...")),rA==="deepEqual"||rA==="equal"?uA="".concat($A,`

`).concat(uA,`

should equal

`):CA=" ".concat(rA," ").concat(CA)),C=BA.call(this,"".concat(uA).concat(CA))}return Error.stackTraceLimit=MA,C.generatedMessage=!lA,Object.defineProperty(b(C),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),C.code="ERR_ASSERTION",C.actual=G,C.expected=iA,C.operator=rA,Error.captureStackTrace&&Error.captureStackTrace(b(C),p),C.stack,C.name="AssertionError",T(C)}return E(hA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:IA,value:function(C,lA){return B(this,f(f({},lA),{},{customInspect:!1,depth:0}))}}]),hA}(N(Error),B.custom);o.exports=pA},5403(o,r,t){function A(Z){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},A(Z)}function a(Z,x,X){return Object.defineProperty(Z,"prototype",{writable:!1}),Z}function f(Z,x){if(!(Z instanceof x))throw new TypeError("Cannot call a class as a function")}function h(Z,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(x&&x.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),x&&Q(Z,x)}function Q(Z,x){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,v){return B.__proto__=v,B},Q(Z,x)}function d(Z){var x=Y();return function(){var B=z(Z),v;if(x){var bA=z(this).constructor;v=Reflect.construct(B,arguments,bA)}else v=B.apply(this,arguments);return E(this,v)}}function E(Z,x){if(x&&(A(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(Z)}function D(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function z(Z){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},z(Z)}var L={},T,b;function N(Z,x,X){X||(X=Error);function B(bA,wA,tA){return typeof x=="string"?x:x(bA,wA,tA)}var v=function(bA){h(tA,bA);var wA=d(tA);function tA(nA,KA,DA){var FA;return f(this,tA),FA=wA.call(this,B(nA,KA,DA)),FA.code=Z,FA}return a(tA)}(X);L[Z]=v}function O(Z,x){if(Array.isArray(Z)){var X=Z.length;return Z=Z.map(function(B){return String(B)}),X>2?"one of ".concat(x," ").concat(Z.slice(0,X-1).join(", "),", or ")+Z[X-1]:X===2?"one of ".concat(x," ").concat(Z[0]," or ").concat(Z[1]):"of ".concat(x," ").concat(Z[0])}else return"of ".concat(x," ").concat(String(Z))}function gA(Z,x,X){return Z.substr(0,x.length)===x}function oA(Z,x,X){return(X===void 0||X>Z.length)&&(X=Z.length),Z.substring(X-x.length,X)===x}function q(Z,x,X){return typeof X!="number"&&(X=0),X+x.length>Z.length?!1:Z.indexOf(x,X)!==-1}N("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),N("ERR_INVALID_ARG_TYPE",function(Z,x,X){T===void 0&&(T=t(7801)),T(typeof Z=="string","'name' must be a string");var B;typeof x=="string"&&gA(x,"not ")?(B="must not be",x=x.replace(/^not /,"")):B="must be";var v;if(oA(Z," argument"))v="The ".concat(Z," ").concat(B," ").concat(O(x,"type"));else{var bA=q(Z,".")?"property":"argument";v='The "'.concat(Z,'" ').concat(bA," ").concat(B," ").concat(O(x,"type"))}return v+=". Received type ".concat(A(X)),v},TypeError),N("ERR_INVALID_ARG_VALUE",function(Z,x){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=t(7187));var B=b.inspect(x);return B.length>128&&(B="".concat(B.slice(0,128),"...")),"The argument '".concat(Z,"' ").concat(X,". Received ").concat(B)},TypeError),N("ERR_INVALID_RETURN_VALUE",function(Z,x,X){var B;return X&&X.constructor&&X.constructor.name?B="instance of ".concat(X.constructor.name):B="type ".concat(A(X)),"Expected ".concat(Z,' to be returned from the "').concat(x,'"')+" function but got ".concat(B,".")},TypeError),N("ERR_MISSING_ARGS",function(){for(var Z=arguments.length,x=new Array(Z),X=0;X<Z;X++)x[X]=arguments[X];T===void 0&&(T=t(7801)),T(x.length>0,"At least one arg needs to be specified");var B="The ",v=x.length;switch(x=x.map(function(bA){return'"'.concat(bA,'"')}),v){case 1:B+="".concat(x[0]," argument");break;case 2:B+="".concat(x[0]," and ").concat(x[1]," arguments");break;default:B+=x.slice(0,v-1).join(", "),B+=", and ".concat(x[v-1]," arguments");break}return"".concat(B," must be specified")},TypeError),o.exports.codes=L},6781(o,r,t){function A(ee,ge){return d(ee)||Q(ee,ge)||f(ee,ge)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(ee,ge){if(ee){if(typeof ee=="string")return h(ee,ge);var dA=Object.prototype.toString.call(ee).slice(8,-1);if(dA==="Object"&&ee.constructor&&(dA=ee.constructor.name),dA==="Map"||dA==="Set")return Array.from(ee);if(dA==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(dA))return h(ee,ge)}}function h(ee,ge){(ge==null||ge>ee.length)&&(ge=ee.length);for(var dA=0,k=new Array(ge);dA<ge;dA++)k[dA]=ee[dA];return k}function Q(ee,ge){var dA=ee==null?null:typeof Symbol<"u"&&ee[Symbol.iterator]||ee["@@iterator"];if(dA!=null){var k,J,_,EA,K=[],UA=!0,se=!1;try{if(_=(dA=dA.call(ee)).next,ge!==0)for(;!(UA=(k=_.call(dA)).done)&&(K.push(k.value),K.length!==ge);UA=!0);}catch(Me){se=!0,J=Me}finally{try{if(!UA&&dA.return!=null&&(EA=dA.return(),Object(EA)!==EA))return}finally{if(se)throw J}}return K}}function d(ee){if(Array.isArray(ee))return ee}function E(ee){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},E(ee)}var D=/a/g.flags!==void 0,Y=function(ge){var dA=[];return ge.forEach(function(k){return dA.push(k)}),dA},z=function(ge){var dA=[];return ge.forEach(function(k,J){return dA.push([J,k])}),dA},L=Object.is?Object.is:t(8527),T=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},b=Number.isNaN?Number.isNaN:t(7051);function N(ee){return ee.call.bind(ee)}var O=N(Object.prototype.hasOwnProperty),gA=N(Object.prototype.propertyIsEnumerable),oA=N(Object.prototype.toString),q=t(7187).types,Z=q.isAnyArrayBuffer,x=q.isArrayBufferView,X=q.isDate,B=q.isMap,v=q.isRegExp,bA=q.isSet,wA=q.isNativeError,tA=q.isBoxedPrimitive,nA=q.isNumberObject,KA=q.isStringObject,DA=q.isBooleanObject,FA=q.isBigIntObject,cA=q.isSymbolObject,yA=q.isFloat32Array,zA=q.isFloat64Array;function mA(ee){if(ee.length===0||ee.length>10)return!0;for(var ge=0;ge<ee.length;ge++){var dA=ee.charCodeAt(ge);if(dA<48||dA>57)return!0}return ee.length===10&&ee>=Math.pow(2,32)}function HA(ee){return Object.keys(ee).filter(mA).concat(T(ee).filter(Object.prototype.propertyIsEnumerable.bind(ee)))}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function pA(ee,ge){if(ee===ge)return 0;for(var dA=ee.length,k=ge.length,J=0,_=Math.min(dA,k);J<_;++J)if(ee[J]!==ge[J]){dA=ee[J],k=ge[J];break}return dA<k?-1:k<dA?1:0}var NA=!0,IA=!1,BA=0,hA=1,R=2,C=3;function lA(ee,ge){return D?ee.source===ge.source&&ee.flags===ge.flags:RegExp.prototype.toString.call(ee)===RegExp.prototype.toString.call(ge)}function rA(ee,ge){if(ee.byteLength!==ge.byteLength)return!1;for(var dA=0;dA<ee.byteLength;dA++)if(ee[dA]!==ge[dA])return!1;return!0}function p(ee,ge){return ee.byteLength!==ge.byteLength?!1:pA(new Uint8Array(ee.buffer,ee.byteOffset,ee.byteLength),new Uint8Array(ge.buffer,ge.byteOffset,ge.byteLength))===0}function G(ee,ge){return ee.byteLength===ge.byteLength&&pA(new Uint8Array(ee),new Uint8Array(ge))===0}function iA(ee,ge){return nA(ee)?nA(ge)&&L(Number.prototype.valueOf.call(ee),Number.prototype.valueOf.call(ge)):KA(ee)?KA(ge)&&String.prototype.valueOf.call(ee)===String.prototype.valueOf.call(ge):DA(ee)?DA(ge)&&Boolean.prototype.valueOf.call(ee)===Boolean.prototype.valueOf.call(ge):FA(ee)?FA(ge)&&BigInt.prototype.valueOf.call(ee)===BigInt.prototype.valueOf.call(ge):cA(ge)&&Symbol.prototype.valueOf.call(ee)===Symbol.prototype.valueOf.call(ge)}function MA(ee,ge,dA,k){if(ee===ge)return ee!==0?!0:dA?L(ee,ge):!0;if(dA){if(E(ee)!=="object")return typeof ee=="number"&&b(ee)&&b(ge);if(E(ge)!=="object"||ee===null||ge===null||Object.getPrototypeOf(ee)!==Object.getPrototypeOf(ge))return!1}else{if(ee===null||E(ee)!=="object")return ge===null||E(ge)!=="object"?ee==ge:!1;if(ge===null||E(ge)!=="object")return!1}var J=oA(ee),_=oA(ge);if(J!==_)return!1;if(Array.isArray(ee)){if(ee.length!==ge.length)return!1;var EA=HA(ee),K=HA(ge);return EA.length!==K.length?!1:y(ee,ge,dA,k,hA,EA)}if(J==="[object Object]"&&(!B(ee)&&B(ge)||!bA(ee)&&bA(ge)))return!1;if(X(ee)){if(!X(ge)||Date.prototype.getTime.call(ee)!==Date.prototype.getTime.call(ge))return!1}else if(v(ee)){if(!v(ge)||!lA(ee,ge))return!1}else if(wA(ee)||ee instanceof Error){if(ee.message!==ge.message||ee.name!==ge.name)return!1}else if(x(ee)){if(!dA&&(yA(ee)||zA(ee))){if(!rA(ee,ge))return!1}else if(!p(ee,ge))return!1;var UA=HA(ee),se=HA(ge);return UA.length!==se.length?!1:y(ee,ge,dA,k,BA,UA)}else{if(bA(ee))return!bA(ge)||ee.size!==ge.size?!1:y(ee,ge,dA,k,R);if(B(ee))return!B(ge)||ee.size!==ge.size?!1:y(ee,ge,dA,k,C);if(Z(ee)){if(!G(ee,ge))return!1}else if(tA(ee)&&!iA(ee,ge))return!1}return y(ee,ge,dA,k,BA)}function m(ee,ge){return ge.filter(function(dA){return gA(ee,dA)})}function y(ee,ge,dA,k,J,_){if(arguments.length===5){_=Object.keys(ee);var EA=Object.keys(ge);if(_.length!==EA.length)return!1}for(var K=0;K<_.length;K++)if(!O(ge,_[K]))return!1;if(dA&&arguments.length===5){var UA=T(ee);if(UA.length!==0){var se=0;for(K=0;K<UA.length;K++){var Me=UA[K];if(gA(ee,Me)){if(!gA(ge,Me))return!1;_.push(Me),se++}else if(gA(ge,Me))return!1}var te=T(ge);if(UA.length!==te.length&&m(ge,te).length!==se)return!1}else{var Qe=T(ge);if(Qe.length!==0&&m(ge,Qe).length!==0)return!1}}if(_.length===0&&(J===BA||J===hA&&ee.length===0||ee.size===0))return!0;if(k===void 0)k={val1:new Map,val2:new Map,position:0};else{var vA=k.val1.get(ee);if(vA!==void 0){var me=k.val2.get(ge);if(me!==void 0)return vA===me}k.position++}k.val1.set(ee,k.position),k.val2.set(ge,k.position);var it=Re(ee,ge,dA,_,k,J);return k.val1.delete(ee),k.val2.delete(ge),it}function uA(ee,ge,dA,k){for(var J=Y(ee),_=0;_<J.length;_++){var EA=J[_];if(MA(ge,EA,dA,k))return ee.delete(EA),!0}return!1}function CA(ee){switch(E(ee)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":ee=+ee;case"number":if(b(ee))return!1}return!0}function $A(ee,ge,dA){var k=CA(dA);return k??(ge.has(k)&&!ee.has(k))}function ZA(ee,ge,dA,k,J){var _=CA(dA);if(_!=null)return _;var EA=ge.get(_);return EA===void 0&&!ge.has(_)||!MA(k,EA,!1,J)?!1:!ee.has(_)&&MA(k,EA,!1,J)}function kA(ee,ge,dA,k){for(var J=null,_=Y(ee),EA=0;EA<_.length;EA++){var K=_[EA];if(E(K)==="object"&&K!==null)J===null&&(J=new Set),J.add(K);else if(!ge.has(K)){if(dA||!$A(ee,ge,K))return!1;J===null&&(J=new Set),J.add(K)}}if(J!==null){for(var UA=Y(ge),se=0;se<UA.length;se++){var Me=UA[se];if(E(Me)==="object"&&Me!==null){if(!uA(J,Me,dA,k))return!1}else if(!dA&&!ee.has(Me)&&!uA(J,Me,dA,k))return!1}return J.size===0}return!0}function de(ee,ge,dA,k,J,_){for(var EA=Y(ee),K=0;K<EA.length;K++){var UA=EA[K];if(MA(dA,UA,J,_)&&MA(k,ge.get(UA),J,_))return ee.delete(UA),!0}return!1}function Te(ee,ge,dA,k){for(var J=null,_=z(ee),EA=0;EA<_.length;EA++){var K=A(_[EA],2),UA=K[0],se=K[1];if(E(UA)==="object"&&UA!==null)J===null&&(J=new Set),J.add(UA);else{var Me=ge.get(UA);if(Me===void 0&&!ge.has(UA)||!MA(se,Me,dA,k)){if(dA||!ZA(ee,ge,UA,se,k))return!1;J===null&&(J=new Set),J.add(UA)}}}if(J!==null){for(var te=z(ge),Qe=0;Qe<te.length;Qe++){var vA=A(te[Qe],2),me=vA[0],it=vA[1];if(E(me)==="object"&&me!==null){if(!de(J,ee,me,it,dA,k))return!1}else if(!dA&&(!ee.has(me)||!MA(ee.get(me),it,!1,k))&&!de(J,ee,me,it,!1,k))return!1}return J.size===0}return!0}function Re(ee,ge,dA,k,J,_){var EA=0;if(_===R){if(!kA(ee,ge,dA,J))return!1}else if(_===C){if(!Te(ee,ge,dA,J))return!1}else if(_===hA)for(;EA<ee.length;EA++)if(O(ee,EA)){if(!O(ge,EA)||!MA(ee[EA],ge[EA],dA,J))return!1}else{if(O(ge,EA))return!1;for(var K=Object.keys(ee);EA<K.length;EA++){var UA=K[EA];if(!O(ge,UA)||!MA(ee[UA],ge[UA],dA,J))return!1}return K.length===Object.keys(ge).length}for(EA=0;EA<k.length;EA++){var se=k[EA];if(!MA(ee[se],ge[se],dA,J))return!1}return!0}function ze(ee,ge){return MA(ee,ge,IA)}function We(ee,ge){return MA(ee,ge,NA)}o.exports={isDeepEqual:ze,isDeepStrictEqual:We}},2504(o,r){r.byteLength=E,r.toByteArray=Y,r.fromByteArray=T;for(var t=[],A=[],a=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,Q=f.length;h<Q;++h)t[h]=f[h],A[f.charCodeAt(h)]=h;A[45]=62,A[95]=63;function d(b){var N=b.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=b.indexOf("=");O===-1&&(O=N);var gA=O===N?0:4-O%4;return[O,gA]}function E(b){var N=d(b),O=N[0],gA=N[1];return(O+gA)*3/4-gA}function D(b,N,O){return(N+O)*3/4-O}function Y(b){var N,O=d(b),gA=O[0],oA=O[1],q=new a(D(b,gA,oA)),Z=0,x=oA>0?gA-4:gA,X;for(X=0;X<x;X+=4)N=A[b.charCodeAt(X)]<<18|A[b.charCodeAt(X+1)]<<12|A[b.charCodeAt(X+2)]<<6|A[b.charCodeAt(X+3)],q[Z++]=N>>16&255,q[Z++]=N>>8&255,q[Z++]=N&255;return oA===2&&(N=A[b.charCodeAt(X)]<<2|A[b.charCodeAt(X+1)]>>4,q[Z++]=N&255),oA===1&&(N=A[b.charCodeAt(X)]<<10|A[b.charCodeAt(X+1)]<<4|A[b.charCodeAt(X+2)]>>2,q[Z++]=N>>8&255,q[Z++]=N&255),q}function z(b){return t[b>>18&63]+t[b>>12&63]+t[b>>6&63]+t[b&63]}function L(b,N,O){for(var gA,oA=[],q=N;q<O;q+=3)gA=(b[q]<<16&16711680)+(b[q+1]<<8&65280)+(b[q+2]&255),oA.push(z(gA));return oA.join("")}function T(b){for(var N,O=b.length,gA=O%3,oA=[],q=16383,Z=0,x=O-gA;Z<x;Z+=q)oA.push(L(b,Z,Z+q>x?x:Z+q));return gA===1?(N=b[O-1],oA.push(t[N>>2]+t[N<<4&63]+"==")):gA===2&&(N=(b[O-2]<<8)+b[O-1],oA.push(t[N>>10]+t[N>>4&63]+t[N<<2&63]+"=")),oA.join("")}},4097(o){var r=4096,t=2*r+32,A=2*r-1,a=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function f(h){this.buf_=new Uint8Array(t),this.input_=h,this.reset()}f.READ_SIZE=r,f.IBUF_MASK=A,f.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var h=0;h<4;h++)this.val_|=this.buf_[this.pos_]<<8*h,++this.pos_;return this.bit_end_pos_>0},f.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var h=this.buf_ptr_,Q=this.input_.read(this.buf_,h,r);if(Q<0)throw new Error("Unexpected end of input");if(Q<r){this.eos_=1;for(var d=0;d<32;d++)this.buf_[h+Q+d]=0}if(h===0){for(var d=0;d<32;d++)this.buf_[(r<<1)+d]=this.buf_[d];this.buf_ptr_=r}else this.buf_ptr_=0;this.bit_end_pos_+=Q<<3}},f.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&A]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},f.prototype.readBits=function(h){32-this.bit_pos_<h&&this.fillBitWindow();var Q=this.val_>>>this.bit_pos_&a[h];return this.bit_pos_+=h,Q},o.exports=f},7043(o,r){r.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},980(o,r,t){var A=t(8197).z,a=t(8197).y,f=t(4097),h=t(614),Q=t(1561).z,d=t(1561).u,E=t(7043),D=t(2210),Y=t(7984),z=8,L=16,T=256,b=704,N=26,O=6,gA=2,oA=8,q=255,Z=1080,x=18,X=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),B=16,v=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),bA=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),wA=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function tA(p){var G;return p.readBits(1)===0?16:(G=p.readBits(3),G>0?17+G:(G=p.readBits(3),G>0?8+G:17))}function nA(p){if(p.readBits(1)){var G=p.readBits(3);return G===0?1:p.readBits(G)+(1<<G)}return 0}function KA(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function DA(p){var G=new KA,iA,MA,m;if(G.input_end=p.readBits(1),G.input_end&&p.readBits(1))return G;if(iA=p.readBits(2)+4,iA===7){if(G.is_metadata=!0,p.readBits(1)!==0)throw new Error("Invalid reserved bit");if(MA=p.readBits(2),MA===0)return G;for(m=0;m<MA;m++){var y=p.readBits(8);if(m+1===MA&&MA>1&&y===0)throw new Error("Invalid size byte");G.meta_block_length|=y<<m*8}}else for(m=0;m<iA;++m){var uA=p.readBits(4);if(m+1===iA&&iA>4&&uA===0)throw new Error("Invalid size nibble");G.meta_block_length|=uA<<m*4}return++G.meta_block_length,!G.input_end&&!G.is_metadata&&(G.is_uncompressed=p.readBits(1)),G}function FA(p,G,iA){var MA;return iA.fillBitWindow(),G+=iA.val_>>>iA.bit_pos_&q,MA=p[G].bits-oA,MA>0&&(iA.bit_pos_+=oA,G+=p[G].value,G+=iA.val_>>>iA.bit_pos_&(1<<MA)-1),iA.bit_pos_+=p[G].bits,p[G].value}function cA(p,G,iA,MA){for(var m=0,y=z,uA=0,CA=0,$A=32768,ZA=[],kA=0;kA<32;kA++)ZA.push(new Q(0,0));for(d(ZA,0,5,p,x);m<G&&$A>0;){var de=0,Te;if(MA.readMoreInput(),MA.fillBitWindow(),de+=MA.val_>>>MA.bit_pos_&31,MA.bit_pos_+=ZA[de].bits,Te=ZA[de].value&255,Te<L)uA=0,iA[m++]=Te,Te!==0&&(y=Te,$A-=32768>>Te);else{var Re=Te-14,ze,We,ee=0;if(Te===L&&(ee=y),CA!==ee&&(uA=0,CA=ee),ze=uA,uA>0&&(uA-=2,uA<<=Re),uA+=MA.readBits(Re)+3,We=uA-ze,m+We>G)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var ge=0;ge<We;ge++)iA[m+ge]=CA;m+=We,CA!==0&&($A-=We<<15-CA)}}if($A!==0)throw new Error("[ReadHuffmanCodeLengths] space = "+$A);for(;m<G;m++)iA[m]=0}function yA(p,G,iA,MA){var m=0,y,uA=new Uint8Array(p);if(MA.readMoreInput(),y=MA.readBits(2),y===1){for(var CA,$A=p-1,ZA=0,kA=new Int32Array(4),de=MA.readBits(2)+1;$A;)$A>>=1,++ZA;for(CA=0;CA<de;++CA)kA[CA]=MA.readBits(ZA)%p,uA[kA[CA]]=2;switch(uA[kA[0]]=1,de){case 1:break;case 3:if(kA[0]===kA[1]||kA[0]===kA[2]||kA[1]===kA[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(kA[0]===kA[1])throw new Error("[ReadHuffmanCode] invalid symbols");uA[kA[1]]=1;break;case 4:if(kA[0]===kA[1]||kA[0]===kA[2]||kA[0]===kA[3]||kA[1]===kA[2]||kA[1]===kA[3]||kA[2]===kA[3])throw new Error("[ReadHuffmanCode] invalid symbols");MA.readBits(1)?(uA[kA[2]]=3,uA[kA[3]]=3):uA[kA[0]]=2;break}}else{var CA,Te=new Uint8Array(x),Re=32,ze=0,We=[new Q(2,0),new Q(2,4),new Q(2,3),new Q(3,2),new Q(2,0),new Q(2,4),new Q(2,3),new Q(4,1),new Q(2,0),new Q(2,4),new Q(2,3),new Q(3,2),new Q(2,0),new Q(2,4),new Q(2,3),new Q(4,5)];for(CA=y;CA<x&&Re>0;++CA){var ee=X[CA],ge=0,dA;MA.fillBitWindow(),ge+=MA.val_>>>MA.bit_pos_&15,MA.bit_pos_+=We[ge].bits,dA=We[ge].value,Te[ee]=dA,dA!==0&&(Re-=32>>dA,++ze)}if(!(ze===1||Re===0))throw new Error("[ReadHuffmanCode] invalid num_codes or space");cA(Te,p,uA,MA)}if(m=d(G,iA,oA,uA,p),m===0)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return m}function zA(p,G,iA){var MA,m;return MA=FA(p,G,iA),m=D.kBlockLengthPrefixCode[MA].nbits,D.kBlockLengthPrefixCode[MA].offset+iA.readBits(m)}function mA(p,G,iA){var MA;return p<B?(iA+=v[p],iA&=3,MA=G[iA]+bA[p]):MA=p-B+1,MA}function HA(p,G){for(var iA=p[G],MA=G;MA;--MA)p[MA]=p[MA-1];p[0]=iA}function pA(p,G){var iA=new Uint8Array(256),MA;for(MA=0;MA<256;++MA)iA[MA]=MA;for(MA=0;MA<G;++MA){var m=p[MA];p[MA]=iA[m],m&&HA(iA,m)}}function NA(p,G){this.alphabet_size=p,this.num_htrees=G,this.codes=new Array(G+G*wA[p+31>>>5]),this.htrees=new Uint32Array(G)}NA.prototype.decode=function(p){var G,iA,MA=0;for(G=0;G<this.num_htrees;++G)this.htrees[G]=MA,iA=yA(this.alphabet_size,this.codes,MA,p),MA+=iA};function IA(p,G){var iA={num_htrees:null,context_map:null},MA,m=0,y,uA;G.readMoreInput();var CA=iA.num_htrees=nA(G)+1,$A=iA.context_map=new Uint8Array(p);if(CA<=1)return iA;for(MA=G.readBits(1),MA&&(m=G.readBits(4)+1),y=[],uA=0;uA<Z;uA++)y[uA]=new Q(0,0);for(yA(CA+m,y,0,G),uA=0;uA<p;){var ZA;if(G.readMoreInput(),ZA=FA(y,0,G),ZA===0)$A[uA]=0,++uA;else if(ZA<=m)for(var kA=1+(1<<ZA)+G.readBits(ZA);--kA;){if(uA>=p)throw new Error("[DecodeContextMap] i >= context_map_size");$A[uA]=0,++uA}else $A[uA]=ZA-m,++uA}return G.readBits(1)&&pA($A,p),iA}function BA(p,G,iA,MA,m,y,uA){var CA=iA*2,$A=iA,ZA=FA(G,iA*Z,uA),kA;ZA===0?kA=m[CA+(y[$A]&1)]:ZA===1?kA=m[CA+(y[$A]-1&1)]+1:kA=ZA-2,kA>=p&&(kA-=p),MA[iA]=kA,m[CA+(y[$A]&1)]=kA,++y[$A]}function hA(p,G,iA,MA,m,y){var uA=m+1,CA=iA&m,$A=y.pos_&f.IBUF_MASK,ZA;if(G<8||y.bit_pos_+(G<<3)<y.bit_end_pos_){for(;G-- >0;)y.readMoreInput(),MA[CA++]=y.readBits(8),CA===uA&&(p.write(MA,uA),CA=0);return}if(y.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;y.bit_pos_<32;)MA[CA]=y.val_>>>y.bit_pos_,y.bit_pos_+=8,++CA,--G;if(ZA=y.bit_end_pos_-y.bit_pos_>>3,$A+ZA>f.IBUF_MASK){for(var kA=f.IBUF_MASK+1-$A,de=0;de<kA;de++)MA[CA+de]=y.buf_[$A+de];ZA-=kA,CA+=kA,G-=kA,$A=0}for(var de=0;de<ZA;de++)MA[CA+de]=y.buf_[$A+de];if(CA+=ZA,G-=ZA,CA>=uA){p.write(MA,uA),CA-=uA;for(var de=0;de<CA;de++)MA[de]=MA[uA+de]}for(;CA+G>=uA;){if(ZA=uA-CA,y.input_.read(MA,CA,ZA)<ZA)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");p.write(MA,uA),G-=ZA,CA=0}if(y.input_.read(MA,CA,G)<G)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");y.reset()}function R(p){var G=p.bit_pos_+7&-8,iA=p.readBits(G-p.bit_pos_);return iA==0}function C(p){var G=new A(p),iA=new f(G);tA(iA);var MA=DA(iA);return MA.meta_block_length}function lA(p,G){var iA=new A(p);G==null&&(G=C(p));var MA=new Uint8Array(G),m=new a(MA);return rA(iA,m),m.pos<m.buffer.length&&(m.buffer=m.buffer.subarray(0,m.pos)),m.buffer}r.BrotliDecompressBuffer=lA;function rA(p,G){var iA,MA=0,m=0,y=0,uA,CA=0,$A,ZA,kA,de,Te=[16,15,11,4],Re=0,ze=0,We=0,ee=[new NA(0,0),new NA(0,0),new NA(0,0)],ge,dA,k,J=128+f.READ_SIZE;k=new f(p),y=tA(k),uA=(1<<y)-16,$A=1<<y,ZA=$A-1,kA=new Uint8Array($A+J+h.maxDictionaryWordLength),de=$A,ge=[],dA=[];for(var _=0;_<3*Z;_++)ge[_]=new Q(0,0),dA[_]=new Q(0,0);for(;!m;){var EA=0,K,UA=[1<<28,1<<28,1<<28],se=[0],Me=[1,1,1],te=[0,1,0,1,0,1],Qe=[0],vA,me,it,AA,Fe=null,Ye=null,jA,we=null,ye,$e=0,Je=null,Ke=0,ht=0,Br=null,rt=0,It=0,ut=0,Yt,kt;for(iA=0;iA<3;++iA)ee[iA].codes=null,ee[iA].htrees=null;k.readMoreInput();var Qr=DA(k);if(EA=Qr.meta_block_length,MA+EA>G.buffer.length){var Dr=new Uint8Array(MA+EA);Dr.set(G.buffer),G.buffer=Dr}if(m=Qr.input_end,K=Qr.is_uncompressed,Qr.is_metadata){for(R(k);EA>0;--EA)k.readMoreInput(),k.readBits(8);continue}if(EA!==0){if(K){k.bit_pos_=k.bit_pos_+7&-8,hA(G,EA,MA,kA,ZA,k),MA+=EA;continue}for(iA=0;iA<3;++iA)Me[iA]=nA(k)+1,Me[iA]>=2&&(yA(Me[iA]+2,ge,iA*Z,k),yA(N,dA,iA*Z,k),UA[iA]=zA(dA,iA*Z,k),Qe[iA]=1);for(k.readMoreInput(),vA=k.readBits(2),me=B+(k.readBits(4)<<vA),it=(1<<vA)-1,AA=me+(48<<vA),Ye=new Uint8Array(Me[0]),iA=0;iA<Me[0];++iA)k.readMoreInput(),Ye[iA]=k.readBits(2)<<1;var Tt=IA(Me[0]<<O,k);jA=Tt.num_htrees,Fe=Tt.context_map;var yt=IA(Me[2]<<gA,k);for(ye=yt.num_htrees,we=yt.context_map,ee[0]=new NA(T,jA),ee[1]=new NA(b,Me[1]),ee[2]=new NA(AA,ye),iA=0;iA<3;++iA)ee[iA].decode(k);for(Je=0,Br=0,Yt=Ye[se[0]],It=E.lookupOffsets[Yt],ut=E.lookupOffsets[Yt+1],kt=ee[1].htrees[0];EA>0;){var jt,Vt,je,Ve,Qt,Et,_t,ar,Ir,TA,GA;for(k.readMoreInput(),UA[1]===0&&(BA(Me[1],ge,1,se,te,Qe,k),UA[1]=zA(dA,Z,k),kt=ee[1].htrees[se[1]]),--UA[1],jt=FA(ee[1].codes,kt,k),Vt=jt>>6,Vt>=2?(Vt-=2,_t=-1):_t=0,je=D.kInsertRangeLut[Vt]+(jt>>3&7),Ve=D.kCopyRangeLut[Vt]+(jt&7),Qt=D.kInsertLengthPrefixCode[je].offset+k.readBits(D.kInsertLengthPrefixCode[je].nbits),Et=D.kCopyLengthPrefixCode[Ve].offset+k.readBits(D.kCopyLengthPrefixCode[Ve].nbits),ze=kA[MA-1&ZA],We=kA[MA-2&ZA],TA=0;TA<Qt;++TA)k.readMoreInput(),UA[0]===0&&(BA(Me[0],ge,0,se,te,Qe,k),UA[0]=zA(dA,0,k),$e=se[0]<<O,Je=$e,Yt=Ye[se[0]],It=E.lookupOffsets[Yt],ut=E.lookupOffsets[Yt+1]),Ir=E.lookup[It+ze]|E.lookup[ut+We],Ke=Fe[Je+Ir],--UA[0],We=ze,ze=FA(ee[0].codes,ee[0].htrees[Ke],k),kA[MA&ZA]=ze,(MA&ZA)===ZA&&G.write(kA,$A),++MA;if(EA-=Qt,EA<=0)break;if(_t<0){var Ir;if(k.readMoreInput(),UA[2]===0&&(BA(Me[2],ge,2,se,te,Qe,k),UA[2]=zA(dA,2*Z,k),ht=se[2]<<gA,Br=ht),--UA[2],Ir=(Et>4?3:Et-2)&255,rt=we[Br+Ir],_t=FA(ee[2].codes,ee[2].htrees[rt],k),_t>=me){var PA,_A,qA;_t-=me,_A=_t&it,_t>>=vA,PA=(_t>>1)+1,qA=(2+(_t&1)<<PA)-4,_t=me+(qA+k.readBits(PA)<<vA)+_A}}if(ar=mA(_t,Te,Re),ar<0)throw new Error("[BrotliDecompress] invalid distance");if(MA<uA&&CA!==uA?CA=MA:CA=uA,GA=MA&ZA,ar>CA)if(Et>=h.minDictionaryWordLength&&Et<=h.maxDictionaryWordLength){var qA=h.offsetsByLength[Et],OA=ar-CA-1,ce=h.sizeBitsByLength[Et],WA=(1<<ce)-1,ie=OA&WA,ne=OA>>ce;if(qA+=ie*Et,ne<Y.kNumTransforms){var ve=Y.transformDictionaryWord(kA,GA,qA,Et,ne);if(GA+=ve,MA+=ve,EA-=ve,GA>=de){G.write(kA,$A);for(var be=0;be<GA-de;be++)kA[be]=kA[de+be]}}else throw new Error("Invalid backward reference. pos: "+MA+" distance: "+ar+" len: "+Et+" bytes left: "+EA)}else throw new Error("Invalid backward reference. pos: "+MA+" distance: "+ar+" len: "+Et+" bytes left: "+EA);else{if(_t>0&&(Te[Re&3]=ar,++Re),Et>EA)throw new Error("Invalid backward reference. pos: "+MA+" distance: "+ar+" len: "+Et+" bytes left: "+EA);for(TA=0;TA<Et;++TA)kA[MA&ZA]=kA[MA-ar&ZA],(MA&ZA)===ZA&&G.write(kA,$A),++MA,--EA}ze=kA[MA-1&ZA],We=kA[MA-2&ZA]}MA&=1073741823}}G.write(kA,MA&ZA)}h.init()},4543(o,r,t){var A=t(2504);r.init=function(){var a=t(980).BrotliDecompressBuffer,f=A.toByteArray(t(3501));return a(f)}},3501(o){o.exports=" "},614(o,r,t){var A=t(4543);r.init=function(){r.dictionary=A.init()},r.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),r.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),r.minDictionaryWordLength=4,r.maxDictionaryWordLength=24},1561(o,r){function t(Q,d){this.bits=Q,this.value=d}r.z=t;var A=15;function a(Q,d){for(var E=1<<d-1;Q&E;)E>>=1;return(Q&E-1)+E}function f(Q,d,E,D,Y){do D-=E,Q[d+D]=new t(Y.bits,Y.value);while(D>0)}function h(Q,d,E){for(var D=1<<d-E;d<A&&(D-=Q[d],!(D<=0));)++d,D<<=1;return d-E}r.u=function(Q,d,E,D,Y){var z=d,L,T,b,N,O,gA,oA,q,Z,x,X,B=new Int32Array(A+1),v=new Int32Array(A+1);for(X=new Int32Array(Y),b=0;b<Y;b++)B[D[b]]++;for(v[1]=0,T=1;T<A;T++)v[T+1]=v[T]+B[T];for(b=0;b<Y;b++)D[b]!==0&&(X[v[D[b]]++]=b);if(q=E,Z=1<<q,x=Z,v[A]===1){for(N=0;N<x;++N)Q[d+N]=new t(0,X[0]&65535);return x}for(N=0,b=0,T=1,O=2;T<=E;++T,O<<=1)for(;B[T]>0;--B[T])L=new t(T&255,X[b++]&65535),f(Q,d+N,O,Z,L),N=a(N,T);for(oA=x-1,gA=-1,T=E+1,O=2;T<=A;++T,O<<=1)for(;B[T]>0;--B[T])(N&oA)!==gA&&(d+=Z,q=h(B,T,E),Z=1<<q,x+=Z,gA=N&oA,Q[z+gA]=new t(q+E&255,d-z-gA&65535)),L=new t(T-E&255,X[b++]&65535),f(Q,d+(N>>E),O,Z,L),N=a(N,T);return x}},2210(o,r){function t(A,a){this.offset=A,this.nbits=a}r.kBlockLengthPrefixCode=[new t(1,2),new t(5,2),new t(9,2),new t(13,2),new t(17,3),new t(25,3),new t(33,3),new t(41,3),new t(49,4),new t(65,4),new t(81,4),new t(97,4),new t(113,5),new t(145,5),new t(177,5),new t(209,5),new t(241,6),new t(305,6),new t(369,7),new t(497,8),new t(753,9),new t(1265,10),new t(2289,11),new t(4337,12),new t(8433,13),new t(16625,24)],r.kInsertLengthPrefixCode=[new t(0,0),new t(1,0),new t(2,0),new t(3,0),new t(4,0),new t(5,0),new t(6,1),new t(8,1),new t(10,2),new t(14,2),new t(18,3),new t(26,3),new t(34,4),new t(50,4),new t(66,5),new t(98,5),new t(130,6),new t(194,7),new t(322,8),new t(578,9),new t(1090,10),new t(2114,12),new t(6210,14),new t(22594,24)],r.kCopyLengthPrefixCode=[new t(2,0),new t(3,0),new t(4,0),new t(5,0),new t(6,0),new t(7,0),new t(8,0),new t(9,0),new t(10,1),new t(12,1),new t(14,2),new t(18,2),new t(22,3),new t(30,3),new t(38,4),new t(54,4),new t(70,5),new t(102,5),new t(134,6),new t(198,7),new t(326,8),new t(582,9),new t(1094,10),new t(2118,24)],r.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],r.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},8197(o,r){function t(a){this.buffer=a,this.pos=0}t.prototype.read=function(a,f,h){this.pos+h>this.buffer.length&&(h=this.buffer.length-this.pos);for(var Q=0;Q<h;Q++)a[f+Q]=this.buffer[this.pos+Q];return this.pos+=h,h},r.z=t;function A(a){this.buffer=a,this.pos=0}A.prototype.write=function(a,f){if(this.pos+f>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(a.subarray(0,f),this.pos),this.pos+=f,f},r.y=A},7984(o,r,t){var A=t(614),a=0,f=1,h=2,Q=3,d=4,E=5,D=6,Y=7,z=8,L=9,T=10,b=11,N=12,O=13,gA=14,oA=15,q=16,Z=17,x=18,X=20;function B(wA,tA,nA){this.prefix=new Uint8Array(wA.length),this.transform=tA,this.suffix=new Uint8Array(nA.length);for(var KA=0;KA<wA.length;KA++)this.prefix[KA]=wA.charCodeAt(KA);for(var KA=0;KA<nA.length;KA++)this.suffix[KA]=nA.charCodeAt(KA)}var v=[new B("",a,""),new B("",a," "),new B(" ",a," "),new B("",N,""),new B("",T," "),new B("",a," the "),new B(" ",a,""),new B("s ",a," "),new B("",a," of "),new B("",T,""),new B("",a," and "),new B("",O,""),new B("",f,""),new B(", ",a," "),new B("",a,", "),new B(" ",T," "),new B("",a," in "),new B("",a," to "),new B("e ",a," "),new B("",a,'"'),new B("",a,"."),new B("",a,'">'),new B("",a,`
`),new B("",Q,""),new B("",a,"]"),new B("",a," for "),new B("",gA,""),new B("",h,""),new B("",a," a "),new B("",a," that "),new B(" ",T,""),new B("",a,". "),new B(".",a,""),new B(" ",a,", "),new B("",oA,""),new B("",a," with "),new B("",a,"'"),new B("",a," from "),new B("",a," by "),new B("",q,""),new B("",Z,""),new B(" the ",a,""),new B("",d,""),new B("",a,". The "),new B("",b,""),new B("",a," on "),new B("",a," as "),new B("",a," is "),new B("",Y,""),new B("",f,"ing "),new B("",a,`
	`),new B("",a,":"),new B(" ",a,". "),new B("",a,"ed "),new B("",X,""),new B("",x,""),new B("",D,""),new B("",a,"("),new B("",T,", "),new B("",z,""),new B("",a," at "),new B("",a,"ly "),new B(" the ",a," of "),new B("",E,""),new B("",L,""),new B(" ",T,", "),new B("",T,'"'),new B(".",a,"("),new B("",b," "),new B("",T,'">'),new B("",a,'="'),new B(" ",a,"."),new B(".com/",a,""),new B(" the ",a," of the "),new B("",T,"'"),new B("",a,". This "),new B("",a,","),new B(".",a," "),new B("",T,"("),new B("",T,"."),new B("",a," not "),new B(" ",a,'="'),new B("",a,"er "),new B(" ",b," "),new B("",a,"al "),new B(" ",b,""),new B("",a,"='"),new B("",b,'"'),new B("",T,". "),new B(" ",a,"("),new B("",a,"ful "),new B(" ",T,". "),new B("",a,"ive "),new B("",a,"less "),new B("",b,"'"),new B("",a,"est "),new B(" ",T,"."),new B("",b,'">'),new B(" ",a,"='"),new B("",T,","),new B("",a,"ize "),new B("",b,"."),new B("Â ",a,""),new B(" ",a,","),new B("",T,'="'),new B("",b,'="'),new B("",a,"ous "),new B("",b,", "),new B("",T,"='"),new B(" ",T,","),new B(" ",b,'="'),new B(" ",b,", "),new B("",b,","),new B("",b,"("),new B("",b,". "),new B(" ",b,"."),new B("",b,"='"),new B(" ",b,". "),new B(" ",T,'="'),new B(" ",b,"='"),new B(" ",T,"='")];r.kTransforms=v,r.kNumTransforms=v.length;function bA(wA,tA){return wA[tA]<192?(wA[tA]>=97&&wA[tA]<=122&&(wA[tA]^=32),1):wA[tA]<224?(wA[tA+1]^=32,2):(wA[tA+2]^=5,3)}r.transformDictionaryWord=function(wA,tA,nA,KA,DA){var FA=v[DA].prefix,cA=v[DA].suffix,yA=v[DA].transform,zA=yA<N?0:yA-(N-1),mA=0,HA=tA,pA;zA>KA&&(zA=KA);for(var NA=0;NA<FA.length;)wA[tA++]=FA[NA++];for(nA+=zA,KA-=zA,yA<=L&&(KA-=yA),mA=0;mA<KA;mA++)wA[tA++]=A.dictionary[nA+mA];if(pA=tA-KA,yA===T)bA(wA,pA);else if(yA===b)for(;KA>0;){var IA=bA(wA,pA);pA+=IA,KA-=IA}for(var BA=0;BA<cA.length;)wA[tA++]=cA[BA++];return tA-HA}},4460(o,r,t){o.exports=t(980).BrotliDecompressBuffer},2908(o,r,t){var A=t(783).Buffer,a=t(9964),f=t(7801),h=t(7468),Q=t(2925),d=t(2269),E=t(1607);for(var D in E)r[D]=E[D];r.NONE=0,r.DEFLATE=1,r.INFLATE=2,r.GZIP=3,r.GUNZIP=4,r.DEFLATERAW=5,r.INFLATERAW=6,r.UNZIP=7;var Y=31,z=139;function L(T){if(typeof T!="number"||T<r.DEFLATE||T>r.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=T,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}L.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,f(this.init_done,"close before init"),f(this.mode<=r.UNZIP),this.mode===r.DEFLATE||this.mode===r.GZIP||this.mode===r.DEFLATERAW?Q.deflateEnd(this.strm):(this.mode===r.INFLATE||this.mode===r.GUNZIP||this.mode===r.INFLATERAW||this.mode===r.UNZIP)&&d.inflateEnd(this.strm),this.mode=r.NONE,this.dictionary=null},L.prototype.write=function(T,b,N,O,gA,oA,q){return this._write(!0,T,b,N,O,gA,oA,q)},L.prototype.writeSync=function(T,b,N,O,gA,oA,q){return this._write(!1,T,b,N,O,gA,oA,q)},L.prototype._write=function(T,b,N,O,gA,oA,q,Z){if(f.equal(arguments.length,8),f(this.init_done,"write before init"),f(this.mode!==r.NONE,"already finalized"),f.equal(!1,this.write_in_progress,"write already in progress"),f.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,f.equal(!1,b===void 0,"must provide flush value"),this.write_in_progress=!0,b!==r.Z_NO_FLUSH&&b!==r.Z_PARTIAL_FLUSH&&b!==r.Z_SYNC_FLUSH&&b!==r.Z_FULL_FLUSH&&b!==r.Z_FINISH&&b!==r.Z_BLOCK)throw new Error("Invalid flush value");if(N==null&&(N=A.alloc(0),gA=0,O=0),this.strm.avail_in=gA,this.strm.input=N,this.strm.next_in=O,this.strm.avail_out=Z,this.strm.output=oA,this.strm.next_out=q,this.flush=b,!T)return this._process(),this._checkError()?this._afterSync():void 0;var x=this;return a.nextTick(function(){x._process(),x._after()}),this},L.prototype._afterSync=function(){var T=this.strm.avail_out,b=this.strm.avail_in;return this.write_in_progress=!1,[b,T]},L.prototype._process=function(){var T=null;switch(this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=Q.deflate(this.strm,this.flush);break;case r.UNZIP:switch(this.strm.avail_in>0&&(T=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(T===null)break;if(this.strm.input[T]===Y){if(this.gzip_id_bytes_read=1,T++,this.strm.avail_in===1)break}else{this.mode=r.INFLATE;break}case 1:if(T===null)break;this.strm.input[T]===z?(this.gzip_id_bytes_read=2,this.mode=r.GUNZIP):this.mode=r.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:for(this.err=d.inflate(this.strm,this.flush),this.err===r.Z_NEED_DICT&&this.dictionary&&(this.err=d.inflateSetDictionary(this.strm,this.dictionary),this.err===r.Z_OK?this.err=d.inflate(this.strm,this.flush):this.err===r.Z_DATA_ERROR&&(this.err=r.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===r.GUNZIP&&this.err===r.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=d.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},L.prototype._checkError=function(){switch(this.err){case r.Z_OK:case r.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===r.Z_FINISH)return this._error("unexpected end of file"),!1;break;case r.Z_STREAM_END:break;case r.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},L.prototype._after=function(){if(this._checkError()){var T=this.strm.avail_out,b=this.strm.avail_in;this.write_in_progress=!1,this.callback(b,T),this.pending_close&&this.close()}},L.prototype._error=function(T){this.strm.msg&&(T=this.strm.msg),this.onerror(T,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},L.prototype.init=function(T,b,N,O,gA){f(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),f(T>=8&&T<=15,"invalid windowBits"),f(b>=-1&&b<=9,"invalid compression level"),f(N>=1&&N<=9,"invalid memlevel"),f(O===r.Z_FILTERED||O===r.Z_HUFFMAN_ONLY||O===r.Z_RLE||O===r.Z_FIXED||O===r.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(b,T,N,O,gA),this._setDictionary()},L.prototype.params=function(){throw new Error("deflateParams Not supported")},L.prototype.reset=function(){this._reset(),this._setDictionary()},L.prototype._init=function(T,b,N,O,gA){switch(this.level=T,this.windowBits=b,this.memLevel=N,this.strategy=O,this.flush=r.Z_NO_FLUSH,this.err=r.Z_OK,(this.mode===r.GZIP||this.mode===r.GUNZIP)&&(this.windowBits+=16),this.mode===r.UNZIP&&(this.windowBits+=32),(this.mode===r.DEFLATERAW||this.mode===r.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new h,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=Q.deflateInit2(this.strm,this.level,r.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:case r.UNZIP:this.err=d.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==r.Z_OK&&this._error("Init error"),this.dictionary=gA,this.write_in_progress=!1,this.init_done=!0},L.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:this.err=Q.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==r.Z_OK&&this._error("Failed to set dictionary")}},L.prototype._reset=function(){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:case r.GZIP:this.err=Q.deflateReset(this.strm);break;case r.INFLATE:case r.INFLATERAW:case r.GUNZIP:this.err=d.inflateReset(this.strm);break}this.err!==r.Z_OK&&this._error("Failed to reset stream")},r.Zlib=L},6729(o,r,t){var A=t(9964),a=t(783).Buffer,f=t(9760).Transform,h=t(2908),Q=t(7187),d=t(7801).ok,E=t(783).kMaxLength,D="Cannot create final Buffer. It would be larger than 0x"+E.toString(16)+" bytes";h.Z_MIN_WINDOWBITS=8,h.Z_MAX_WINDOWBITS=15,h.Z_DEFAULT_WINDOWBITS=15,h.Z_MIN_CHUNK=64,h.Z_MAX_CHUNK=1/0,h.Z_DEFAULT_CHUNK=16384,h.Z_MIN_MEMLEVEL=1,h.Z_MAX_MEMLEVEL=9,h.Z_DEFAULT_MEMLEVEL=8,h.Z_MIN_LEVEL=-1,h.Z_MAX_LEVEL=9,h.Z_DEFAULT_LEVEL=h.Z_DEFAULT_COMPRESSION;for(var Y=Object.keys(h),z=0;z<Y.length;z++){var L=Y[z];L.match(/^Z/)&&Object.defineProperty(r,L,{enumerable:!0,value:h[L],writable:!1})}for(var T={Z_OK:h.Z_OK,Z_STREAM_END:h.Z_STREAM_END,Z_NEED_DICT:h.Z_NEED_DICT,Z_ERRNO:h.Z_ERRNO,Z_STREAM_ERROR:h.Z_STREAM_ERROR,Z_DATA_ERROR:h.Z_DATA_ERROR,Z_MEM_ERROR:h.Z_MEM_ERROR,Z_BUF_ERROR:h.Z_BUF_ERROR,Z_VERSION_ERROR:h.Z_VERSION_ERROR},b=Object.keys(T),N=0;N<b.length;N++){var O=b[N];T[T[O]]=O}Object.defineProperty(r,"codes",{enumerable:!0,value:Object.freeze(T),writable:!1}),r.Deflate=q,r.Inflate=Z,r.Gzip=x,r.Gunzip=X,r.DeflateRaw=B,r.InflateRaw=v,r.Unzip=bA,r.createDeflate=function(DA){return new q(DA)},r.createInflate=function(DA){return new Z(DA)},r.createDeflateRaw=function(DA){return new B(DA)},r.createInflateRaw=function(DA){return new v(DA)},r.createGzip=function(DA){return new x(DA)},r.createGunzip=function(DA){return new X(DA)},r.createUnzip=function(DA){return new bA(DA)},r.deflate=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new q(FA),DA,cA)},r.deflateSync=function(DA,FA){return oA(new q(FA),DA)},r.gzip=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new x(FA),DA,cA)},r.gzipSync=function(DA,FA){return oA(new x(FA),DA)},r.deflateRaw=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new B(FA),DA,cA)},r.deflateRawSync=function(DA,FA){return oA(new B(FA),DA)},r.unzip=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new bA(FA),DA,cA)},r.unzipSync=function(DA,FA){return oA(new bA(FA),DA)},r.inflate=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new Z(FA),DA,cA)},r.inflateSync=function(DA,FA){return oA(new Z(FA),DA)},r.gunzip=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new X(FA),DA,cA)},r.gunzipSync=function(DA,FA){return oA(new X(FA),DA)},r.inflateRaw=function(DA,FA,cA){return typeof FA=="function"&&(cA=FA,FA={}),gA(new v(FA),DA,cA)},r.inflateRawSync=function(DA,FA){return oA(new v(FA),DA)};function gA(DA,FA,cA){var yA=[],zA=0;DA.on("error",HA),DA.on("end",pA),DA.end(FA),mA();function mA(){for(var NA;(NA=DA.read())!==null;)yA.push(NA),zA+=NA.length;DA.once("readable",mA)}function HA(NA){DA.removeListener("end",pA),DA.removeListener("readable",mA),cA(NA)}function pA(){var NA,IA=null;zA>=E?IA=new RangeError(D):NA=a.concat(yA,zA),yA=[],DA.close(),cA(IA,NA)}}function oA(DA,FA){if(typeof FA=="string"&&(FA=a.from(FA)),!a.isBuffer(FA))throw new TypeError("Not a string or buffer");var cA=DA._finishFlushFlag;return DA._processChunk(FA,cA)}function q(DA){if(!(this instanceof q))return new q(DA);tA.call(this,DA,h.DEFLATE)}function Z(DA){if(!(this instanceof Z))return new Z(DA);tA.call(this,DA,h.INFLATE)}function x(DA){if(!(this instanceof x))return new x(DA);tA.call(this,DA,h.GZIP)}function X(DA){if(!(this instanceof X))return new X(DA);tA.call(this,DA,h.GUNZIP)}function B(DA){if(!(this instanceof B))return new B(DA);tA.call(this,DA,h.DEFLATERAW)}function v(DA){if(!(this instanceof v))return new v(DA);tA.call(this,DA,h.INFLATERAW)}function bA(DA){if(!(this instanceof bA))return new bA(DA);tA.call(this,DA,h.UNZIP)}function wA(DA){return DA===h.Z_NO_FLUSH||DA===h.Z_PARTIAL_FLUSH||DA===h.Z_SYNC_FLUSH||DA===h.Z_FULL_FLUSH||DA===h.Z_FINISH||DA===h.Z_BLOCK}function tA(DA,FA){var cA=this;if(this._opts=DA=DA||{},this._chunkSize=DA.chunkSize||r.Z_DEFAULT_CHUNK,f.call(this,DA),DA.flush&&!wA(DA.flush))throw new Error("Invalid flush flag: "+DA.flush);if(DA.finishFlush&&!wA(DA.finishFlush))throw new Error("Invalid flush flag: "+DA.finishFlush);if(this._flushFlag=DA.flush||h.Z_NO_FLUSH,this._finishFlushFlag=typeof DA.finishFlush<"u"?DA.finishFlush:h.Z_FINISH,DA.chunkSize&&(DA.chunkSize<r.Z_MIN_CHUNK||DA.chunkSize>r.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+DA.chunkSize);if(DA.windowBits&&(DA.windowBits<r.Z_MIN_WINDOWBITS||DA.windowBits>r.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+DA.windowBits);if(DA.level&&(DA.level<r.Z_MIN_LEVEL||DA.level>r.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+DA.level);if(DA.memLevel&&(DA.memLevel<r.Z_MIN_MEMLEVEL||DA.memLevel>r.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+DA.memLevel);if(DA.strategy&&DA.strategy!=r.Z_FILTERED&&DA.strategy!=r.Z_HUFFMAN_ONLY&&DA.strategy!=r.Z_RLE&&DA.strategy!=r.Z_FIXED&&DA.strategy!=r.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+DA.strategy);if(DA.dictionary&&!a.isBuffer(DA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new h.Zlib(FA);var yA=this;this._hadError=!1,this._handle.onerror=function(HA,pA){nA(yA),yA._hadError=!0;var NA=new Error(HA);NA.errno=pA,NA.code=r.codes[pA],yA.emit("error",NA)};var zA=r.Z_DEFAULT_COMPRESSION;typeof DA.level=="number"&&(zA=DA.level);var mA=r.Z_DEFAULT_STRATEGY;typeof DA.strategy=="number"&&(mA=DA.strategy),this._handle.init(DA.windowBits||r.Z_DEFAULT_WINDOWBITS,zA,DA.memLevel||r.Z_DEFAULT_MEMLEVEL,mA,DA.dictionary),this._buffer=a.allocUnsafe(this._chunkSize),this._offset=0,this._level=zA,this._strategy=mA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!cA._handle},configurable:!0,enumerable:!0})}Q.inherits(tA,f),tA.prototype.params=function(DA,FA,cA){if(DA<r.Z_MIN_LEVEL||DA>r.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+DA);if(FA!=r.Z_FILTERED&&FA!=r.Z_HUFFMAN_ONLY&&FA!=r.Z_RLE&&FA!=r.Z_FIXED&&FA!=r.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+FA);if(this._level!==DA||this._strategy!==FA){var yA=this;this.flush(h.Z_SYNC_FLUSH,function(){d(yA._handle,"zlib binding closed"),yA._handle.params(DA,FA),yA._hadError||(yA._level=DA,yA._strategy=FA,cA&&cA())})}else A.nextTick(cA)},tA.prototype.reset=function(){return d(this._handle,"zlib binding closed"),this._handle.reset()},tA.prototype._flush=function(DA){this._transform(a.alloc(0),"",DA)},tA.prototype.flush=function(DA,FA){var cA=this,yA=this._writableState;(typeof DA=="function"||DA===void 0&&!FA)&&(FA=DA,DA=h.Z_FULL_FLUSH),yA.ended?FA&&A.nextTick(FA):yA.ending?FA&&this.once("end",FA):yA.needDrain?FA&&this.once("drain",function(){return cA.flush(DA,FA)}):(this._flushFlag=DA,this.write(a.alloc(0),"",FA))},tA.prototype.close=function(DA){nA(this,DA),A.nextTick(KA,this)};function nA(DA,FA){FA&&A.nextTick(FA),DA._handle&&(DA._handle.close(),DA._handle=null)}function KA(DA){DA.emit("close")}tA.prototype._transform=function(DA,FA,cA){var yA,zA=this._writableState,mA=zA.ending||zA.ended,HA=mA&&(!DA||zA.length===DA.length);if(DA!==null&&!a.isBuffer(DA))return cA(new Error("invalid input"));if(!this._handle)return cA(new Error("zlib binding closed"));HA?yA=this._finishFlushFlag:(yA=this._flushFlag,DA.length>=zA.length&&(this._flushFlag=this._opts.flush||h.Z_NO_FLUSH)),this._processChunk(DA,yA,cA)},tA.prototype._processChunk=function(DA,FA,cA){var yA=DA&&DA.length,zA=this._chunkSize-this._offset,mA=0,HA=this,pA=typeof cA=="function";if(!pA){var NA=[],IA=0,BA;this.on("error",function(rA){BA=rA}),d(this._handle,"zlib binding closed");do var hA=this._handle.writeSync(FA,DA,mA,yA,this._buffer,this._offset,zA);while(!this._hadError&&lA(hA[0],hA[1]));if(this._hadError)throw BA;if(IA>=E)throw nA(this),new RangeError(D);var R=a.concat(NA,IA);return nA(this),R}d(this._handle,"zlib binding closed");var C=this._handle.write(FA,DA,mA,yA,this._buffer,this._offset,zA);C.buffer=DA,C.callback=lA;function lA(rA,p){if(this&&(this.buffer=null,this.callback=null),!HA._hadError){var G=zA-p;if(d(G>=0,"have should not go down"),G>0){var iA=HA._buffer.slice(HA._offset,HA._offset+G);HA._offset+=G,pA?HA.push(iA):(NA.push(iA),IA+=iA.length)}if((p===0||HA._offset>=HA._chunkSize)&&(zA=HA._chunkSize,HA._offset=0,HA._buffer=a.allocUnsafe(HA._chunkSize)),p===0){if(mA+=yA-rA,yA=rA,!pA)return!0;var MA=HA._handle.write(FA,DA,mA,yA,HA._buffer,HA._offset,HA._chunkSize);MA.callback=lA,MA.buffer=DA;return}if(!pA)return!1;cA()}}},Q.inherits(q,tA),Q.inherits(Z,tA),Q.inherits(x,tA),Q.inherits(X,tA),Q.inherits(B,tA),Q.inherits(v,tA),Q.inherits(bA,tA)},7802(o,r,t){var A=t(5049),a=t(3036),f=t(78),h=t(1909);o.exports=h||A.call(f,a)},8619(o,r,t){var A=t(5049),a=t(3036),f=t(7802);o.exports=function(){return f(A,a,arguments)}},3036(o){o.exports=Function.prototype.apply},78(o){o.exports=Function.prototype.call},6688(o,r,t){var A=t(5049),a=t(6785),f=t(78),h=t(7802);o.exports=function(d){if(d.length<1||typeof d[0]!="function")throw new a("a function is required");return h(A,f,d)}},1909(o){o.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},7913(o,r,t){var A=t(8651),a=t(6601),f=a(A("String.prototype.indexOf"));o.exports=function(Q,d){var E=A(Q,!!d);return typeof E=="function"&&f(Q,".prototype.")>-1?a(E):E}},6601(o,r,t){var A=t(6255),a=t(6649),f=t(6688),h=t(8619);o.exports=function(d){var E=f(arguments),D=d.length-(arguments.length-1);return A(E,1+(D>0?D:0),!0)},a?a(o.exports,"apply",{value:h}):o.exports.apply=h},2774(o,r,t){var A=t(8651),a=t(6688),f=a([A("%String.prototype.indexOf%")]);o.exports=function(Q,d){var E=A(Q,!!d);return typeof E=="function"&&f(Q,".prototype.")>-1?a([E]):E}},1613(o,r,t){var A=t(783).Buffer,a=function(){function f(b,N){return N!=null&&b instanceof N}var h;try{h=Map}catch{h=function(){}}var Q;try{Q=Set}catch{Q=function(){}}var d;try{d=Promise}catch{d=function(){}}function E(b,N,O,gA,oA){typeof N=="object"&&(O=N.depth,gA=N.prototype,oA=N.includeNonEnumerable,N=N.circular);var q=[],Z=[],x=typeof A<"u";typeof N>"u"&&(N=!0),typeof O>"u"&&(O=1/0);function X(B,v){if(B===null)return null;if(v===0)return B;var bA,wA;if(typeof B!="object")return B;if(f(B,h))bA=new h;else if(f(B,Q))bA=new Q;else if(f(B,d))bA=new d(function(mA,HA){B.then(function(pA){mA(X(pA,v-1))},function(pA){HA(X(pA,v-1))})});else if(E.__isArray(B))bA=[];else if(E.__isRegExp(B))bA=new RegExp(B.source,T(B)),B.lastIndex&&(bA.lastIndex=B.lastIndex);else if(E.__isDate(B))bA=new Date(B.getTime());else{if(x&&A.isBuffer(B))return A.allocUnsafe?bA=A.allocUnsafe(B.length):bA=new A(B.length),B.copy(bA),bA;f(B,Error)?bA=Object.create(B):typeof gA>"u"?(wA=Object.getPrototypeOf(B),bA=Object.create(wA)):(bA=Object.create(gA),wA=gA)}if(N){var tA=q.indexOf(B);if(tA!=-1)return Z[tA];q.push(B),Z.push(bA)}f(B,h)&&B.forEach(function(mA,HA){var pA=X(HA,v-1),NA=X(mA,v-1);bA.set(pA,NA)}),f(B,Q)&&B.forEach(function(mA){var HA=X(mA,v-1);bA.add(HA)});for(var nA in B){var KA;wA&&(KA=Object.getOwnPropertyDescriptor(wA,nA)),!(KA&&KA.set==null)&&(bA[nA]=X(B[nA],v-1))}if(Object.getOwnPropertySymbols)for(var DA=Object.getOwnPropertySymbols(B),nA=0;nA<DA.length;nA++){var FA=DA[nA],cA=Object.getOwnPropertyDescriptor(B,FA);cA&&!cA.enumerable&&!oA||(bA[FA]=X(B[FA],v-1),cA.enumerable||Object.defineProperty(bA,FA,{enumerable:!1}))}if(oA)for(var yA=Object.getOwnPropertyNames(B),nA=0;nA<yA.length;nA++){var zA=yA[nA],cA=Object.getOwnPropertyDescriptor(B,zA);cA&&cA.enumerable||(bA[zA]=X(B[zA],v-1),Object.defineProperty(bA,zA,{enumerable:!1}))}return bA}return X(b,O)}E.clonePrototype=function(N){if(N===null)return null;var O=function(){};return O.prototype=N,new O};function D(b){return Object.prototype.toString.call(b)}E.__objToStr=D;function Y(b){return typeof b=="object"&&D(b)==="[object Date]"}E.__isDate=Y;function z(b){return typeof b=="object"&&D(b)==="[object Array]"}E.__isArray=z;function L(b){return typeof b=="object"&&D(b)==="[object RegExp]"}E.__isRegExp=L;function T(b){var N="";return b.global&&(N+="g"),b.ignoreCase&&(N+="i"),b.multiline&&(N+="m"),N}return E.__getRegExpFlags=T,E}();o.exports&&(o.exports=a)},9295(o,r,t){var A=t(6649),a=t(7770),f=t(6785),h=t(8109);o.exports=function(d,E,D){if(!d||typeof d!="object"&&typeof d!="function")throw new f("`obj` must be an object or a function`");if(typeof E!="string"&&typeof E!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var Y=arguments.length>3?arguments[3]:null,z=arguments.length>4?arguments[4]:null,L=arguments.length>5?arguments[5]:null,T=arguments.length>6?arguments[6]:!1,b=!!h&&h(d,E);if(A)A(d,E,{configurable:L===null&&b?b.configurable:!L,enumerable:Y===null&&b?b.enumerable:!Y,value:D,writable:z===null&&b?b.writable:!z});else if(T||!Y&&!z&&!L)d[E]=D;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},5421(o,r,t){var A=t(5643),a=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",f=Object.prototype.toString,h=Array.prototype.concat,Q=t(9295),d=function(z){return typeof z=="function"&&f.call(z)==="[object Function]"},E=t(8890)(),D=function(z,L,T,b){if(L in z){if(b===!0){if(z[L]===T)return}else if(!d(b)||!b())return}E?Q(z,L,T,!0):Q(z,L,T)},Y=function(z,L){var T=arguments.length>2?arguments[2]:{},b=A(L);a&&(b=h.call(b,Object.getOwnPropertySymbols(L)));for(var N=0;N<b.length;N+=1)D(z,b[N],L[b[N]],T[b[N]])};Y.supportsDescriptors=!!E,o.exports=Y},9302(o,r,t){var A=t(6688),a=t(8109),f;try{f=[].__proto__===Array.prototype}catch(E){if(!E||typeof E!="object"||!("code"in E)||E.code!=="ERR_PROTO_ACCESS")throw E}var h=!!f&&a&&a(Object.prototype,"__proto__"),Q=Object,d=Q.getPrototypeOf;o.exports=h&&typeof h.get=="function"?A([h.get]):typeof d=="function"?function(D){return d(D==null?D:Q(D))}:!1},6649(o){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}o.exports=r},9055(o){o.exports=EvalError},5293(o){o.exports=Error},8888(o){o.exports=RangeError},7900(o){o.exports=ReferenceError},7770(o){o.exports=SyntaxError},6785(o){o.exports=TypeError},4055(o){o.exports=URIError},5846(o){o.exports=Object},4785(o){var r=typeof Reflect=="object"?Reflect:null,t=r&&typeof r.apply=="function"?r.apply:function(x,X,B){return Function.prototype.apply.call(x,X,B)},A;r&&typeof r.ownKeys=="function"?A=r.ownKeys:Object.getOwnPropertySymbols?A=function(x){return Object.getOwnPropertyNames(x).concat(Object.getOwnPropertySymbols(x))}:A=function(x){return Object.getOwnPropertyNames(x)};function a(Z){console&&console.warn&&console.warn(Z)}var f=Number.isNaN||function(x){return x!==x};function h(){h.init.call(this)}o.exports=h,o.exports.once=gA,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._eventsCount=0,h.prototype._maxListeners=void 0;var Q=10;function d(Z){if(typeof Z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return Q},set:function(Z){if(typeof Z!="number"||Z<0||f(Z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");Q=Z}}),h.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},h.prototype.setMaxListeners=function(x){if(typeof x!="number"||x<0||f(x))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+x+".");return this._maxListeners=x,this};function E(Z){return Z._maxListeners===void 0?h.defaultMaxListeners:Z._maxListeners}h.prototype.getMaxListeners=function(){return E(this)},h.prototype.emit=function(x){for(var X=[],B=1;B<arguments.length;B++)X.push(arguments[B]);var v=x==="error",bA=this._events;if(bA!==void 0)v=v&&bA.error===void 0;else if(!v)return!1;if(v){var wA;if(X.length>0&&(wA=X[0]),wA instanceof Error)throw wA;var tA=new Error("Unhandled error."+(wA?" ("+wA.message+")":""));throw tA.context=wA,tA}var nA=bA[x];if(nA===void 0)return!1;if(typeof nA=="function")t(nA,this,X);else for(var KA=nA.length,DA=b(nA,KA),B=0;B<KA;++B)t(DA[B],this,X);return!0};function D(Z,x,X,B){var v,bA,wA;if(d(X),bA=Z._events,bA===void 0?(bA=Z._events=Object.create(null),Z._eventsCount=0):(bA.newListener!==void 0&&(Z.emit("newListener",x,X.listener?X.listener:X),bA=Z._events),wA=bA[x]),wA===void 0)wA=bA[x]=X,++Z._eventsCount;else if(typeof wA=="function"?wA=bA[x]=B?[X,wA]:[wA,X]:B?wA.unshift(X):wA.push(X),v=E(Z),v>0&&wA.length>v&&!wA.warned){wA.warned=!0;var tA=new Error("Possible EventEmitter memory leak detected. "+wA.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");tA.name="MaxListenersExceededWarning",tA.emitter=Z,tA.type=x,tA.count=wA.length,a(tA)}return Z}h.prototype.addListener=function(x,X){return D(this,x,X,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(x,X){return D(this,x,X,!0)};function Y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function z(Z,x,X){var B={fired:!1,wrapFn:void 0,target:Z,type:x,listener:X},v=Y.bind(B);return v.listener=X,B.wrapFn=v,v}h.prototype.once=function(x,X){return d(X),this.on(x,z(this,x,X)),this},h.prototype.prependOnceListener=function(x,X){return d(X),this.prependListener(x,z(this,x,X)),this},h.prototype.removeListener=function(x,X){var B,v,bA,wA,tA;if(d(X),v=this._events,v===void 0)return this;if(B=v[x],B===void 0)return this;if(B===X||B.listener===X)--this._eventsCount===0?this._events=Object.create(null):(delete v[x],v.removeListener&&this.emit("removeListener",x,B.listener||X));else if(typeof B!="function"){for(bA=-1,wA=B.length-1;wA>=0;wA--)if(B[wA]===X||B[wA].listener===X){tA=B[wA].listener,bA=wA;break}if(bA<0)return this;bA===0?B.shift():N(B,bA),B.length===1&&(v[x]=B[0]),v.removeListener!==void 0&&this.emit("removeListener",x,tA||X)}return this},h.prototype.off=h.prototype.removeListener,h.prototype.removeAllListeners=function(x){var X,B,v;if(B=this._events,B===void 0)return this;if(B.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):B[x]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete B[x]),this;if(arguments.length===0){var bA=Object.keys(B),wA;for(v=0;v<bA.length;++v)wA=bA[v],wA!=="removeListener"&&this.removeAllListeners(wA);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(X=B[x],typeof X=="function")this.removeListener(x,X);else if(X!==void 0)for(v=X.length-1;v>=0;v--)this.removeListener(x,X[v]);return this};function L(Z,x,X){var B=Z._events;if(B===void 0)return[];var v=B[x];return v===void 0?[]:typeof v=="function"?X?[v.listener||v]:[v]:X?O(v):b(v,v.length)}h.prototype.listeners=function(x){return L(this,x,!0)},h.prototype.rawListeners=function(x){return L(this,x,!1)},h.listenerCount=function(Z,x){return typeof Z.listenerCount=="function"?Z.listenerCount(x):T.call(Z,x)},h.prototype.listenerCount=T;function T(Z){var x=this._events;if(x!==void 0){var X=x[Z];if(typeof X=="function")return 1;if(X!==void 0)return X.length}return 0}h.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]};function b(Z,x){for(var X=new Array(x),B=0;B<x;++B)X[B]=Z[B];return X}function N(Z,x){for(;x+1<Z.length;x++)Z[x]=Z[x+1];Z.pop()}function O(Z){for(var x=new Array(Z.length),X=0;X<x.length;++X)x[X]=Z[X].listener||Z[X];return x}function gA(Z,x){return new Promise(function(X,B){function v(wA){Z.removeListener(x,bA),B(wA)}function bA(){typeof Z.removeListener=="function"&&Z.removeListener("error",v),X([].slice.call(arguments))}q(Z,x,bA,{once:!0}),x!=="error"&&oA(Z,v,{once:!0})})}function oA(Z,x,X){typeof Z.on=="function"&&q(Z,"error",x,X)}function q(Z,x,X,B){if(typeof Z.on=="function")B.once?Z.once(x,X):Z.on(x,X);else if(typeof Z.addEventListener=="function")Z.addEventListener(x,function v(bA){B.once&&Z.removeEventListener(x,v),X(bA)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}},2022(o,r,t){o.exports=function(){if(typeof globalThis=="object")return globalThis;var A;try{A=this||new Function("return this")()}catch{if(typeof window=="object")return window;if(typeof self=="object")return self;if(typeof t.g<"u")return t.g}return A}()},453(o){o.exports=function r(t,A){if(t===A)return!0;if(t&&A&&typeof t=="object"&&typeof A=="object"){if(t.constructor!==A.constructor)return!1;var a,f,h;if(Array.isArray(t)){if(a=t.length,a!=A.length)return!1;for(f=a;f--!==0;)if(!r(t[f],A[f]))return!1;return!0}if(t.constructor===RegExp)return t.source===A.source&&t.flags===A.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===A.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===A.toString();if(h=Object.keys(t),a=h.length,a!==Object.keys(A).length)return!1;for(f=a;f--!==0;)if(!Object.prototype.hasOwnProperty.call(A,h[f]))return!1;for(f=a;f--!==0;){var Q=h[f];if(!r(t[Q],A[Q]))return!1}return!0}return t!==t&&A!==A}},8404(o,r,t){var A=t(3746),a=Object.prototype.toString,f=Object.prototype.hasOwnProperty,h=function(Y,z,L){for(var T=0,b=Y.length;T<b;T++)f.call(Y,T)&&(L==null?z(Y[T],T,Y):z.call(L,Y[T],T,Y))},Q=function(Y,z,L){for(var T=0,b=Y.length;T<b;T++)L==null?z(Y.charAt(T),T,Y):z.call(L,Y.charAt(T),T,Y)},d=function(Y,z,L){for(var T in Y)f.call(Y,T)&&(L==null?z(Y[T],T,Y):z.call(L,Y[T],T,Y))};function E(D){return a.call(D)==="[object Array]"}o.exports=function(Y,z,L){if(!A(z))throw new TypeError("iterator must be a function");var T;arguments.length>=3&&(T=L),E(Y)?h(Y,z,T):typeof Y=="string"?Q(Y,z,T):d(Y,z,T)}},2719(o){var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,A=Math.max,a="[object Function]",f=function(E,D){for(var Y=[],z=0;z<E.length;z+=1)Y[z]=E[z];for(var L=0;L<D.length;L+=1)Y[L+E.length]=D[L];return Y},h=function(E,D){for(var Y=[],z=D,L=0;z<E.length;z+=1,L+=1)Y[L]=E[z];return Y},Q=function(d,E){for(var D="",Y=0;Y<d.length;Y+=1)D+=d[Y],Y+1<d.length&&(D+=E);return D};o.exports=function(E){var D=this;if(typeof D!="function"||t.apply(D)!==a)throw new TypeError(r+D);for(var Y=h(arguments,1),z,L=function(){if(this instanceof z){var gA=D.apply(this,f(Y,arguments));return Object(gA)===gA?gA:this}return D.apply(E,f(Y,arguments))},T=A(0,D.length-Y.length),b=[],N=0;N<T;N++)b[N]="$"+N;if(z=Function("binder","return function ("+Q(b,",")+"){ return binder.apply(this,arguments); }")(L),D.prototype){var O=function(){};O.prototype=D.prototype,z.prototype=new O,O.prototype=null}return z}},5049(o,r,t){var A=t(2719);o.exports=Function.prototype.bind||A},3011(o){const r=(function*(){}).constructor;o.exports=()=>r},8651(o,r,t){var A,a=t(5846),f=t(5293),h=t(9055),Q=t(8888),d=t(7900),E=t(7770),D=t(6785),Y=t(4055),z=t(716),L=t(7450),T=t(3774),b=t(7552),N=t(5874),O=t(9292),gA=t(6071),oA=Function,q=function(G){try{return oA('"use strict"; return ('+G+").constructor;")()}catch{}},Z=t(8109),x=t(6649),X=function(){throw new D},B=Z?function(){try{return arguments.callee,X}catch{try{return Z(arguments,"callee").get}catch{return X}}}():X,v=t(3257)(),bA=t(7106),wA=t(3766),tA=t(6822),nA=t(3036),KA=t(78),DA={},FA=typeof Uint8Array>"u"||!bA?A:bA(Uint8Array),cA={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?A:ArrayBuffer,"%ArrayIteratorPrototype%":v&&bA?bA([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":DA,"%AsyncGenerator%":DA,"%AsyncGeneratorFunction%":DA,"%AsyncIteratorPrototype%":DA,"%Atomics%":typeof Atomics>"u"?A:Atomics,"%BigInt%":typeof BigInt>"u"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":f,"%eval%":eval,"%EvalError%":h,"%Float16Array%":typeof Float16Array>"u"?A:Float16Array,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":oA,"%GeneratorFunction%":DA,"%Int8Array%":typeof Int8Array>"u"?A:Int8Array,"%Int16Array%":typeof Int16Array>"u"?A:Int16Array,"%Int32Array%":typeof Int32Array>"u"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&bA?bA(bA([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map>"u"?A:Map,"%MapIteratorPrototype%":typeof Map>"u"||!v||!bA?A:bA(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":Z,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":Q,"%ReferenceError%":d,"%Reflect%":typeof Reflect>"u"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?A:Set,"%SetIteratorPrototype%":typeof Set>"u"||!v||!bA?A:bA(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&bA?bA(""[Symbol.iterator]()):A,"%Symbol%":v?Symbol:A,"%SyntaxError%":E,"%ThrowTypeError%":B,"%TypedArray%":FA,"%TypeError%":D,"%Uint8Array%":typeof Uint8Array>"u"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?A:Uint32Array,"%URIError%":Y,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet,"%Function.prototype.call%":KA,"%Function.prototype.apply%":nA,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":wA,"%Math.abs%":z,"%Math.floor%":L,"%Math.max%":T,"%Math.min%":b,"%Math.pow%":N,"%Math.round%":O,"%Math.sign%":gA,"%Reflect.getPrototypeOf%":tA};if(bA)try{null.error}catch(G){var yA=bA(bA(G));cA["%Error.prototype%"]=yA}var zA=function G(iA){var MA;if(iA==="%AsyncFunction%")MA=q("async function () {}");else if(iA==="%GeneratorFunction%")MA=q("function* () {}");else if(iA==="%AsyncGeneratorFunction%")MA=q("async function* () {}");else if(iA==="%AsyncGenerator%"){var m=G("%AsyncGeneratorFunction%");m&&(MA=m.prototype)}else if(iA==="%AsyncIteratorPrototype%"){var y=G("%AsyncGenerator%");y&&bA&&(MA=bA(y.prototype))}return cA[iA]=MA,MA},mA={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},HA=t(5049),pA=t(5215),NA=HA.call(KA,Array.prototype.concat),IA=HA.call(nA,Array.prototype.splice),BA=HA.call(KA,String.prototype.replace),hA=HA.call(KA,String.prototype.slice),R=HA.call(KA,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lA=/\\(\\)?/g,rA=function(iA){var MA=hA(iA,0,1),m=hA(iA,-1);if(MA==="%"&&m!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&MA!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var y=[];return BA(iA,C,function(uA,CA,$A,ZA){y[y.length]=$A?BA(ZA,lA,"$1"):CA||uA}),y},p=function(iA,MA){var m=iA,y;if(pA(mA,m)&&(y=mA[m],m="%"+y[0]+"%"),pA(cA,m)){var uA=cA[m];if(uA===DA&&(uA=zA(m)),typeof uA>"u"&&!MA)throw new D("intrinsic "+iA+" exists, but is not available. Please file an issue!");return{alias:y,name:m,value:uA}}throw new E("intrinsic "+iA+" does not exist!")};o.exports=function(iA,MA){if(typeof iA!="string"||iA.length===0)throw new D("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof MA!="boolean")throw new D('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,iA)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=rA(iA),y=m.length>0?m[0]:"",uA=p("%"+y+"%",MA),CA=uA.name,$A=uA.value,ZA=!1,kA=uA.alias;kA&&(y=kA[0],IA(m,NA([0,1],kA)));for(var de=1,Te=!0;de<m.length;de+=1){var Re=m[de],ze=hA(Re,0,1),We=hA(Re,-1);if((ze==='"'||ze==="'"||ze==="`"||We==='"'||We==="'"||We==="`")&&ze!==We)throw new E("property names with quotes must have matching quotes");if((Re==="constructor"||!Te)&&(ZA=!0),y+="."+Re,CA="%"+y+"%",pA(cA,CA))$A=cA[CA];else if($A!=null){if(!(Re in $A)){if(!MA)throw new D("base intrinsic for "+iA+" exists, but the property is not available.");return}if(Z&&de+1>=m.length){var ee=Z($A,Re);Te=!!ee,Te&&"get"in ee&&!("originalValue"in ee.get)?$A=ee.get:$A=$A[Re]}else Te=pA($A,Re),$A=$A[Re];Te&&!ZA&&(cA[CA]=$A)}}return $A}},3766(o,r,t){var A=t(5846);o.exports=A.getPrototypeOf||null},6822(o){o.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},7106(o,r,t){var A=t(6822),a=t(3766),f=t(9302);o.exports=A?function(Q){return A(Q)}:a?function(Q){if(!Q||typeof Q!="object"&&typeof Q!="function")throw new TypeError("getProto: not an object");return a(Q)}:f?function(Q){return f(Q)}:null},5567(o){o.exports=Object.getOwnPropertyDescriptor},8109(o,r,t){var A=t(5567);if(A)try{A([],"length")}catch{A=null}o.exports=A},8890(o,r,t){var A=t(6649),a=function(){return!!A};a.hasArrayLengthDefineBug=function(){if(!A)return null;try{return A([],"length",{value:1}).length!==1}catch{return!0}},o.exports=a},3257(o,r,t){var A=typeof Symbol<"u"&&Symbol,a=t(2843);o.exports=function(){return typeof A!="function"||typeof Symbol!="function"||typeof A("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()}},2843(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},A=Symbol("test"),a=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var f=42;t[A]=f;for(var h in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var Q=Object.getOwnPropertySymbols(t);if(Q.length!==1||Q[0]!==A||!Object.prototype.propertyIsEnumerable.call(t,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,A);if(d.value!==f||d.enumerable!==!0)return!1}return!0}},6626(o,r,t){var A=t(2843);o.exports=function(){return A()&&!!Symbol.toStringTag}},5215(o,r,t){var A=Function.prototype.call,a=Object.prototype.hasOwnProperty,f=t(5049);o.exports=f.call(A,a)},9029(o,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(t,A,a,f,h){var Q,d,E=h*8-f-1,D=(1<<E)-1,Y=D>>1,z=-7,L=a?h-1:0,T=a?-1:1,b=t[A+L];for(L+=T,Q=b&(1<<-z)-1,b>>=-z,z+=E;z>0;Q=Q*256+t[A+L],L+=T,z-=8);for(d=Q&(1<<-z)-1,Q>>=-z,z+=f;z>0;d=d*256+t[A+L],L+=T,z-=8);if(Q===0)Q=1-Y;else{if(Q===D)return d?NaN:(b?-1:1)*(1/0);d=d+Math.pow(2,f),Q=Q-Y}return(b?-1:1)*d*Math.pow(2,Q-f)},r.write=function(t,A,a,f,h,Q){var d,E,D,Y=Q*8-h-1,z=(1<<Y)-1,L=z>>1,T=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=f?0:Q-1,N=f?1:-1,O=A<0||A===0&&1/A<0?1:0;for(A=Math.abs(A),isNaN(A)||A===1/0?(E=isNaN(A)?1:0,d=z):(d=Math.floor(Math.log(A)/Math.LN2),A*(D=Math.pow(2,-d))<1&&(d--,D*=2),d+L>=1?A+=T/D:A+=T*Math.pow(2,1-L),A*D>=2&&(d++,D/=2),d+L>=z?(E=0,d=z):d+L>=1?(E=(A*D-1)*Math.pow(2,h),d=d+L):(E=A*Math.pow(2,L-1)*Math.pow(2,h),d=0));h>=8;t[a+b]=E&255,b+=N,E/=256,h-=8);for(d=d<<h|E,Y+=h;Y>0;t[a+b]=d&255,b+=N,d/=256,Y-=8);t[a+b-N]|=O*128}},9784(o){typeof Object.create=="function"?o.exports=function(t,A){A&&(t.super_=A,t.prototype=Object.create(A.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(t,A){if(A){t.super_=A;var a=function(){};a.prototype=A.prototype,t.prototype=new a,t.prototype.constructor=t}}},7906(o,r,t){var A=t(6626)(),a=t(2774),f=a("Object.prototype.toString"),h=function(D){return A&&D&&typeof D=="object"&&Symbol.toStringTag in D?!1:f(D)==="[object Arguments]"},Q=function(D){return h(D)?!0:D!==null&&typeof D=="object"&&"length"in D&&typeof D.length=="number"&&D.length>=0&&f(D)!=="[object Array]"&&"callee"in D&&f(D.callee)==="[object Function]"},d=function(){return h(arguments)}();h.isLegacyArguments=Q,o.exports=d?h:Q},3746(o){var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,A,a;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{A=Object.defineProperty({},"length",{get:function(){throw a}}),a={},t(function(){throw 42},null,A)}catch(oA){oA!==a&&(t=null)}else t=null;var f=/^\s*class\b/,h=function(q){try{var Z=r.call(q);return f.test(Z)}catch{return!1}},Q=function(q){try{return h(q)?!1:(r.call(q),!0)}catch{return!1}},d=Object.prototype.toString,E="[object Object]",D="[object Function]",Y="[object GeneratorFunction]",z="[object HTMLAllCollection]",L="[object HTML document.all class]",T="[object HTMLCollection]",b=typeof Symbol=="function"&&!!Symbol.toStringTag,N=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var gA=document.all;d.call(gA)===d.call(document.all)&&(O=function(q){if((N||!q)&&(typeof q>"u"||typeof q=="object"))try{var Z=d.call(q);return(Z===z||Z===L||Z===T||Z===E)&&q("")==null}catch{}return!1})}o.exports=t?function(q){if(O(q))return!0;if(!q||typeof q!="function"&&typeof q!="object")return!1;try{t(q,null,A)}catch(Z){if(Z!==a)return!1}return!h(q)&&Q(q)}:function(q){if(O(q))return!0;if(!q||typeof q!="function"&&typeof q!="object")return!1;if(b)return Q(q);if(h(q))return!1;var Z=d.call(q);return Z!==D&&Z!==Y&&!/^\[object HTML/.test(Z)?!1:Q(q)}},4610(o,r,t){var A=t(2774),a=t(8843),f=a(/^\s*(?:function)?\*/),h=t(6626)(),Q=t(7106),d=A("Object.prototype.toString"),E=A("Function.prototype.toString"),D=t(3011);o.exports=function(z){if(typeof z!="function")return!1;if(f(E(z)))return!0;if(!h){var L=d(z);return L==="[object GeneratorFunction]"}if(!Q)return!1;var T=D();return T&&Q(z)===T.prototype}},2621(o){o.exports=function(t){return t!==t}},7051(o,r,t){var A=t(6601),a=t(5421),f=t(2621),h=t(1320),Q=t(5074),d=A(h(),Number);a(d,{getPolyfill:h,implementation:f,shim:Q}),o.exports=d},1320(o,r,t){var A=t(2621);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:A}},5074(o,r,t){var A=t(5421),a=t(1320);o.exports=function(){var h=a();return A(Number,{isNaN:h},{isNaN:function(){return Number.isNaN!==h}}),h}},1689(o,r,t){var A=t(2774),a=t(6626)(),f=t(5215),h=t(8109),Q;if(a){var d=A("RegExp.prototype.exec"),E={},D=function(){throw E},Y={toString:D,valueOf:D};typeof Symbol.toPrimitive=="symbol"&&(Y[Symbol.toPrimitive]=D),Q=function(b){if(!b||typeof b!="object")return!1;var N=h(b,"lastIndex"),O=N&&f(N,"value");if(!O)return!1;try{d(b,Y)}catch(gA){return gA===E}}}else{var z=A("Object.prototype.toString"),L="[object RegExp]";Q=function(b){return!b||typeof b!="object"&&typeof b!="function"?!1:z(b)===L}}o.exports=Q},6094(o,r,t){var A=t(3381);o.exports=function(f){return!!A(f)}},1632(o,r,t){var A=t(9964),a;/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.8.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/(function(){var f="input is invalid type",h="finalize already called",Q=typeof window=="object",d=Q?window:{};d.JS_MD5_NO_WINDOW&&(Q=!1);var E=!Q&&typeof self=="object",D=!d.JS_MD5_NO_NODE_JS&&typeof A=="object"&&A.versions&&A.versions.node;D?d=t.g:E&&(d=self);var Y=!d.JS_MD5_NO_COMMON_JS&&!0&&o.exports,z=t.amdO,L=!d.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",T="0123456789abcdef".split(""),b=[128,32768,8388608,-2147483648],N=[0,8,16,24],O=["hex","array","digest","buffer","arrayBuffer","base64"],gA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),oA=[],q;if(L){var Z=new ArrayBuffer(68);q=new Uint8Array(Z),oA=new Uint32Array(Z)}var x=Array.isArray;(d.JS_MD5_NO_NODE_JS||!x)&&(x=function(cA){return Object.prototype.toString.call(cA)==="[object Array]"});var X=ArrayBuffer.isView;L&&(d.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!X)&&(X=function(cA){return typeof cA=="object"&&cA.buffer&&cA.buffer.constructor===ArrayBuffer});var B=function(cA){var yA=typeof cA;if(yA==="string")return[cA,!0];if(yA!=="object"||cA===null)throw new Error(f);if(L&&cA.constructor===ArrayBuffer)return[new Uint8Array(cA),!1];if(!x(cA)&&!X(cA))throw new Error(f);return[cA,!1]},v=function(cA){return function(yA){return new KA(!0).update(yA)[cA]()}},bA=function(){var cA=v("hex");D&&(cA=wA(cA)),cA.create=function(){return new KA},cA.update=function(mA){return cA.create().update(mA)};for(var yA=0;yA<O.length;++yA){var zA=O[yA];cA[zA]=v(zA)}return cA},wA=function(cA){var yA=t(8535),zA=t(6274).Buffer,mA;zA.from&&!d.JS_MD5_NO_BUFFER_FROM?mA=zA.from:mA=function(pA){return new zA(pA)};var HA=function(pA){if(typeof pA=="string")return yA.createHash("md5").update(pA,"utf8").digest("hex");if(pA==null)throw new Error(f);return pA.constructor===ArrayBuffer&&(pA=new Uint8Array(pA)),x(pA)||X(pA)||pA.constructor===zA?yA.createHash("md5").update(mA(pA)).digest("hex"):cA(pA)};return HA},tA=function(cA){return function(yA,zA){return new DA(yA,!0).update(zA)[cA]()}},nA=function(){var cA=tA("hex");cA.create=function(mA){return new DA(mA)},cA.update=function(mA,HA){return cA.create(mA).update(HA)};for(var yA=0;yA<O.length;++yA){var zA=O[yA];cA[zA]=tA(zA)}return cA};function KA(cA){if(cA)oA[0]=oA[16]=oA[1]=oA[2]=oA[3]=oA[4]=oA[5]=oA[6]=oA[7]=oA[8]=oA[9]=oA[10]=oA[11]=oA[12]=oA[13]=oA[14]=oA[15]=0,this.blocks=oA,this.buffer8=q;else if(L){var yA=new ArrayBuffer(68);this.buffer8=new Uint8Array(yA),this.blocks=new Uint32Array(yA)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}KA.prototype.update=function(cA){if(this.finalized)throw new Error(h);var yA=B(cA);cA=yA[0];for(var zA=yA[1],mA,HA=0,pA,NA=cA.length,IA=this.blocks,BA=this.buffer8;HA<NA;){if(this.hashed&&(this.hashed=!1,IA[0]=IA[16],IA[16]=IA[1]=IA[2]=IA[3]=IA[4]=IA[5]=IA[6]=IA[7]=IA[8]=IA[9]=IA[10]=IA[11]=IA[12]=IA[13]=IA[14]=IA[15]=0),zA)if(L)for(pA=this.start;HA<NA&&pA<64;++HA)mA=cA.charCodeAt(HA),mA<128?BA[pA++]=mA:mA<2048?(BA[pA++]=192|mA>>>6,BA[pA++]=128|mA&63):mA<55296||mA>=57344?(BA[pA++]=224|mA>>>12,BA[pA++]=128|mA>>>6&63,BA[pA++]=128|mA&63):(mA=65536+((mA&1023)<<10|cA.charCodeAt(++HA)&1023),BA[pA++]=240|mA>>>18,BA[pA++]=128|mA>>>12&63,BA[pA++]=128|mA>>>6&63,BA[pA++]=128|mA&63);else for(pA=this.start;HA<NA&&pA<64;++HA)mA=cA.charCodeAt(HA),mA<128?IA[pA>>>2]|=mA<<N[pA++&3]:mA<2048?(IA[pA>>>2]|=(192|mA>>>6)<<N[pA++&3],IA[pA>>>2]|=(128|mA&63)<<N[pA++&3]):mA<55296||mA>=57344?(IA[pA>>>2]|=(224|mA>>>12)<<N[pA++&3],IA[pA>>>2]|=(128|mA>>>6&63)<<N[pA++&3],IA[pA>>>2]|=(128|mA&63)<<N[pA++&3]):(mA=65536+((mA&1023)<<10|cA.charCodeAt(++HA)&1023),IA[pA>>>2]|=(240|mA>>>18)<<N[pA++&3],IA[pA>>>2]|=(128|mA>>>12&63)<<N[pA++&3],IA[pA>>>2]|=(128|mA>>>6&63)<<N[pA++&3],IA[pA>>>2]|=(128|mA&63)<<N[pA++&3]);else if(L)for(pA=this.start;HA<NA&&pA<64;++HA)BA[pA++]=cA[HA];else for(pA=this.start;HA<NA&&pA<64;++HA)IA[pA>>>2]|=cA[HA]<<N[pA++&3];this.lastByteIndex=pA,this.bytes+=pA-this.start,pA>=64?(this.start=pA-64,this.hash(),this.hashed=!0):this.start=pA}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},KA.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var cA=this.blocks,yA=this.lastByteIndex;cA[yA>>>2]|=b[yA&3],yA>=56&&(this.hashed||this.hash(),cA[0]=cA[16],cA[16]=cA[1]=cA[2]=cA[3]=cA[4]=cA[5]=cA[6]=cA[7]=cA[8]=cA[9]=cA[10]=cA[11]=cA[12]=cA[13]=cA[14]=cA[15]=0),cA[14]=this.bytes<<3,cA[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},KA.prototype.hash=function(){var cA,yA,zA,mA,HA,pA,NA=this.blocks;this.first?(cA=NA[0]-680876937,cA=(cA<<7|cA>>>25)-271733879<<0,mA=(-1732584194^cA&2004318071)+NA[1]-117830708,mA=(mA<<12|mA>>>20)+cA<<0,zA=(-271733879^mA&(cA^-271733879))+NA[2]-1126478375,zA=(zA<<17|zA>>>15)+mA<<0,yA=(cA^zA&(mA^cA))+NA[3]-1316259209,yA=(yA<<22|yA>>>10)+zA<<0):(cA=this.h0,yA=this.h1,zA=this.h2,mA=this.h3,cA+=(mA^yA&(zA^mA))+NA[0]-680876936,cA=(cA<<7|cA>>>25)+yA<<0,mA+=(zA^cA&(yA^zA))+NA[1]-389564586,mA=(mA<<12|mA>>>20)+cA<<0,zA+=(yA^mA&(cA^yA))+NA[2]+606105819,zA=(zA<<17|zA>>>15)+mA<<0,yA+=(cA^zA&(mA^cA))+NA[3]-1044525330,yA=(yA<<22|yA>>>10)+zA<<0),cA+=(mA^yA&(zA^mA))+NA[4]-176418897,cA=(cA<<7|cA>>>25)+yA<<0,mA+=(zA^cA&(yA^zA))+NA[5]+1200080426,mA=(mA<<12|mA>>>20)+cA<<0,zA+=(yA^mA&(cA^yA))+NA[6]-1473231341,zA=(zA<<17|zA>>>15)+mA<<0,yA+=(cA^zA&(mA^cA))+NA[7]-45705983,yA=(yA<<22|yA>>>10)+zA<<0,cA+=(mA^yA&(zA^mA))+NA[8]+1770035416,cA=(cA<<7|cA>>>25)+yA<<0,mA+=(zA^cA&(yA^zA))+NA[9]-1958414417,mA=(mA<<12|mA>>>20)+cA<<0,zA+=(yA^mA&(cA^yA))+NA[10]-42063,zA=(zA<<17|zA>>>15)+mA<<0,yA+=(cA^zA&(mA^cA))+NA[11]-1990404162,yA=(yA<<22|yA>>>10)+zA<<0,cA+=(mA^yA&(zA^mA))+NA[12]+1804603682,cA=(cA<<7|cA>>>25)+yA<<0,mA+=(zA^cA&(yA^zA))+NA[13]-40341101,mA=(mA<<12|mA>>>20)+cA<<0,zA+=(yA^mA&(cA^yA))+NA[14]-1502002290,zA=(zA<<17|zA>>>15)+mA<<0,yA+=(cA^zA&(mA^cA))+NA[15]+1236535329,yA=(yA<<22|yA>>>10)+zA<<0,cA+=(zA^mA&(yA^zA))+NA[1]-165796510,cA=(cA<<5|cA>>>27)+yA<<0,mA+=(yA^zA&(cA^yA))+NA[6]-1069501632,mA=(mA<<9|mA>>>23)+cA<<0,zA+=(cA^yA&(mA^cA))+NA[11]+643717713,zA=(zA<<14|zA>>>18)+mA<<0,yA+=(mA^cA&(zA^mA))+NA[0]-373897302,yA=(yA<<20|yA>>>12)+zA<<0,cA+=(zA^mA&(yA^zA))+NA[5]-701558691,cA=(cA<<5|cA>>>27)+yA<<0,mA+=(yA^zA&(cA^yA))+NA[10]+38016083,mA=(mA<<9|mA>>>23)+cA<<0,zA+=(cA^yA&(mA^cA))+NA[15]-660478335,zA=(zA<<14|zA>>>18)+mA<<0,yA+=(mA^cA&(zA^mA))+NA[4]-405537848,yA=(yA<<20|yA>>>12)+zA<<0,cA+=(zA^mA&(yA^zA))+NA[9]+568446438,cA=(cA<<5|cA>>>27)+yA<<0,mA+=(yA^zA&(cA^yA))+NA[14]-1019803690,mA=(mA<<9|mA>>>23)+cA<<0,zA+=(cA^yA&(mA^cA))+NA[3]-187363961,zA=(zA<<14|zA>>>18)+mA<<0,yA+=(mA^cA&(zA^mA))+NA[8]+1163531501,yA=(yA<<20|yA>>>12)+zA<<0,cA+=(zA^mA&(yA^zA))+NA[13]-1444681467,cA=(cA<<5|cA>>>27)+yA<<0,mA+=(yA^zA&(cA^yA))+NA[2]-51403784,mA=(mA<<9|mA>>>23)+cA<<0,zA+=(cA^yA&(mA^cA))+NA[7]+1735328473,zA=(zA<<14|zA>>>18)+mA<<0,yA+=(mA^cA&(zA^mA))+NA[12]-1926607734,yA=(yA<<20|yA>>>12)+zA<<0,HA=yA^zA,cA+=(HA^mA)+NA[5]-378558,cA=(cA<<4|cA>>>28)+yA<<0,mA+=(HA^cA)+NA[8]-2022574463,mA=(mA<<11|mA>>>21)+cA<<0,pA=mA^cA,zA+=(pA^yA)+NA[11]+1839030562,zA=(zA<<16|zA>>>16)+mA<<0,yA+=(pA^zA)+NA[14]-35309556,yA=(yA<<23|yA>>>9)+zA<<0,HA=yA^zA,cA+=(HA^mA)+NA[1]-1530992060,cA=(cA<<4|cA>>>28)+yA<<0,mA+=(HA^cA)+NA[4]+1272893353,mA=(mA<<11|mA>>>21)+cA<<0,pA=mA^cA,zA+=(pA^yA)+NA[7]-155497632,zA=(zA<<16|zA>>>16)+mA<<0,yA+=(pA^zA)+NA[10]-1094730640,yA=(yA<<23|yA>>>9)+zA<<0,HA=yA^zA,cA+=(HA^mA)+NA[13]+681279174,cA=(cA<<4|cA>>>28)+yA<<0,mA+=(HA^cA)+NA[0]-358537222,mA=(mA<<11|mA>>>21)+cA<<0,pA=mA^cA,zA+=(pA^yA)+NA[3]-722521979,zA=(zA<<16|zA>>>16)+mA<<0,yA+=(pA^zA)+NA[6]+76029189,yA=(yA<<23|yA>>>9)+zA<<0,HA=yA^zA,cA+=(HA^mA)+NA[9]-640364487,cA=(cA<<4|cA>>>28)+yA<<0,mA+=(HA^cA)+NA[12]-421815835,mA=(mA<<11|mA>>>21)+cA<<0,pA=mA^cA,zA+=(pA^yA)+NA[15]+530742520,zA=(zA<<16|zA>>>16)+mA<<0,yA+=(pA^zA)+NA[2]-995338651,yA=(yA<<23|yA>>>9)+zA<<0,cA+=(zA^(yA|~mA))+NA[0]-198630844,cA=(cA<<6|cA>>>26)+yA<<0,mA+=(yA^(cA|~zA))+NA[7]+1126891415,mA=(mA<<10|mA>>>22)+cA<<0,zA+=(cA^(mA|~yA))+NA[14]-1416354905,zA=(zA<<15|zA>>>17)+mA<<0,yA+=(mA^(zA|~cA))+NA[5]-57434055,yA=(yA<<21|yA>>>11)+zA<<0,cA+=(zA^(yA|~mA))+NA[12]+1700485571,cA=(cA<<6|cA>>>26)+yA<<0,mA+=(yA^(cA|~zA))+NA[3]-1894986606,mA=(mA<<10|mA>>>22)+cA<<0,zA+=(cA^(mA|~yA))+NA[10]-1051523,zA=(zA<<15|zA>>>17)+mA<<0,yA+=(mA^(zA|~cA))+NA[1]-2054922799,yA=(yA<<21|yA>>>11)+zA<<0,cA+=(zA^(yA|~mA))+NA[8]+1873313359,cA=(cA<<6|cA>>>26)+yA<<0,mA+=(yA^(cA|~zA))+NA[15]-30611744,mA=(mA<<10|mA>>>22)+cA<<0,zA+=(cA^(mA|~yA))+NA[6]-1560198380,zA=(zA<<15|zA>>>17)+mA<<0,yA+=(mA^(zA|~cA))+NA[13]+1309151649,yA=(yA<<21|yA>>>11)+zA<<0,cA+=(zA^(yA|~mA))+NA[4]-145523070,cA=(cA<<6|cA>>>26)+yA<<0,mA+=(yA^(cA|~zA))+NA[11]-1120210379,mA=(mA<<10|mA>>>22)+cA<<0,zA+=(cA^(mA|~yA))+NA[2]+718787259,zA=(zA<<15|zA>>>17)+mA<<0,yA+=(mA^(zA|~cA))+NA[9]-343485551,yA=(yA<<21|yA>>>11)+zA<<0,this.first?(this.h0=cA+1732584193<<0,this.h1=yA-271733879<<0,this.h2=zA-1732584194<<0,this.h3=mA+271733878<<0,this.first=!1):(this.h0=this.h0+cA<<0,this.h1=this.h1+yA<<0,this.h2=this.h2+zA<<0,this.h3=this.h3+mA<<0)},KA.prototype.hex=function(){this.finalize();var cA=this.h0,yA=this.h1,zA=this.h2,mA=this.h3;return T[cA>>>4&15]+T[cA&15]+T[cA>>>12&15]+T[cA>>>8&15]+T[cA>>>20&15]+T[cA>>>16&15]+T[cA>>>28&15]+T[cA>>>24&15]+T[yA>>>4&15]+T[yA&15]+T[yA>>>12&15]+T[yA>>>8&15]+T[yA>>>20&15]+T[yA>>>16&15]+T[yA>>>28&15]+T[yA>>>24&15]+T[zA>>>4&15]+T[zA&15]+T[zA>>>12&15]+T[zA>>>8&15]+T[zA>>>20&15]+T[zA>>>16&15]+T[zA>>>28&15]+T[zA>>>24&15]+T[mA>>>4&15]+T[mA&15]+T[mA>>>12&15]+T[mA>>>8&15]+T[mA>>>20&15]+T[mA>>>16&15]+T[mA>>>28&15]+T[mA>>>24&15]},KA.prototype.toString=KA.prototype.hex,KA.prototype.digest=function(){this.finalize();var cA=this.h0,yA=this.h1,zA=this.h2,mA=this.h3;return[cA&255,cA>>>8&255,cA>>>16&255,cA>>>24&255,yA&255,yA>>>8&255,yA>>>16&255,yA>>>24&255,zA&255,zA>>>8&255,zA>>>16&255,zA>>>24&255,mA&255,mA>>>8&255,mA>>>16&255,mA>>>24&255]},KA.prototype.array=KA.prototype.digest,KA.prototype.arrayBuffer=function(){this.finalize();var cA=new ArrayBuffer(16),yA=new Uint32Array(cA);return yA[0]=this.h0,yA[1]=this.h1,yA[2]=this.h2,yA[3]=this.h3,cA},KA.prototype.buffer=KA.prototype.arrayBuffer,KA.prototype.base64=function(){for(var cA,yA,zA,mA="",HA=this.array(),pA=0;pA<15;)cA=HA[pA++],yA=HA[pA++],zA=HA[pA++],mA+=gA[cA>>>2]+gA[(cA<<4|yA>>>4)&63]+gA[(yA<<2|zA>>>6)&63]+gA[zA&63];return cA=HA[pA],mA+=gA[cA>>>2]+gA[cA<<4&63]+"==",mA};function DA(cA,yA){var zA,mA=B(cA);if(cA=mA[0],mA[1]){var HA=[],pA=cA.length,NA=0,IA;for(zA=0;zA<pA;++zA)IA=cA.charCodeAt(zA),IA<128?HA[NA++]=IA:IA<2048?(HA[NA++]=192|IA>>>6,HA[NA++]=128|IA&63):IA<55296||IA>=57344?(HA[NA++]=224|IA>>>12,HA[NA++]=128|IA>>>6&63,HA[NA++]=128|IA&63):(IA=65536+((IA&1023)<<10|cA.charCodeAt(++zA)&1023),HA[NA++]=240|IA>>>18,HA[NA++]=128|IA>>>12&63,HA[NA++]=128|IA>>>6&63,HA[NA++]=128|IA&63);cA=HA}cA.length>64&&(cA=new KA(!0).update(cA).array());var BA=[],hA=[];for(zA=0;zA<64;++zA){var R=cA[zA]||0;BA[zA]=92^R,hA[zA]=54^R}KA.call(this,yA),this.update(hA),this.oKeyPad=BA,this.inner=!0,this.sharedMemory=yA}DA.prototype=new KA,DA.prototype.finalize=function(){if(KA.prototype.finalize.call(this),this.inner){this.inner=!1;var cA=this.array();KA.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(cA),KA.prototype.finalize.call(this)}};var FA=bA();FA.md5=FA,FA.md5.hmac=nA(),Y?o.exports=FA:(d.md5=FA,z&&(a=(function(){return FA}).call(FA,t,FA,o),a!==void 0&&(o.exports=a)))})()},716(o){o.exports=Math.abs},7450(o){o.exports=Math.floor},713(o){o.exports=Number.isNaN||function(t){return t!==t}},3774(o){o.exports=Math.max},7552(o){o.exports=Math.min},5874(o){o.exports=Math.pow},9292(o){o.exports=Math.round},6071(o,r,t){var A=t(713);o.exports=function(f){return A(f)||f===0?f:f<0?-1:1}},3249(o){var r=function(t){return t!==t};o.exports=function(A,a){return A===0&&a===0?1/A===1/a:!!(A===a||r(A)&&r(a))}},8527(o,r,t){var A=t(5421),a=t(6601),f=t(3249),h=t(9636),Q=t(3534),d=a(h(),Object);A(d,{getPolyfill:h,implementation:f,shim:Q}),o.exports=d},9636(o,r,t){var A=t(3249);o.exports=function(){return typeof Object.is=="function"?Object.is:A}},3534(o,r,t){var A=t(9636),a=t(5421);o.exports=function(){var h=A();return a(Object,{is:h},{is:function(){return Object.is!==h}}),h}},8461(o,r,t){var A;if(!Object.keys){var a=Object.prototype.hasOwnProperty,f=Object.prototype.toString,h=t(6515),Q=Object.prototype.propertyIsEnumerable,d=!Q.call({toString:null},"toString"),E=Q.call(function(){},"prototype"),D=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Y=function(b){var N=b.constructor;return N&&N.prototype===b},z={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},L=function(){if(typeof window>"u")return!1;for(var b in window)try{if(!z["$"+b]&&a.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{Y(window[b])}catch{return!0}}catch{return!0}return!1}(),T=function(b){if(typeof window>"u"||!L)return Y(b);try{return Y(b)}catch{return!1}};A=function(N){var O=N!==null&&typeof N=="object",gA=f.call(N)==="[object Function]",oA=h(N),q=O&&f.call(N)==="[object String]",Z=[];if(!O&&!gA&&!oA)throw new TypeError("Object.keys called on a non-object");var x=E&&gA;if(q&&N.length>0&&!a.call(N,0))for(var X=0;X<N.length;++X)Z.push(String(X));if(oA&&N.length>0)for(var B=0;B<N.length;++B)Z.push(String(B));else for(var v in N)!(x&&v==="prototype")&&a.call(N,v)&&Z.push(String(v));if(d)for(var bA=T(N),wA=0;wA<D.length;++wA)!(bA&&D[wA]==="constructor")&&a.call(N,D[wA])&&Z.push(D[wA]);return Z}}o.exports=A},5643(o,r,t){var A=Array.prototype.slice,a=t(6515),f=Object.keys,h=f?function(E){return f(E)}:t(8461),Q=Object.keys;h.shim=function(){if(Object.keys){var E=function(){var D=Object.keys(arguments);return D&&D.length===arguments.length}(1,2);E||(Object.keys=function(Y){return a(Y)?Q(A.call(Y)):Q(Y)})}else Object.keys=h;return Object.keys||h},o.exports=h},6515(o){var r=Object.prototype.toString;o.exports=function(A){var a=r.call(A),f=a==="[object Arguments]";return f||(f=a!=="[object Array]"&&A!==null&&typeof A=="object"&&typeof A.length=="number"&&A.length>=0&&r.call(A.callee)==="[object Function]"),f}},6521(o,r,t){var A=t(5643),a=t(2843)(),f=t(2774),h=t(5846),Q=f("Array.prototype.push"),d=f("Object.prototype.propertyIsEnumerable"),E=a?h.getOwnPropertySymbols:null;o.exports=function(Y,z){if(Y==null)throw new TypeError("target must be an object");var L=h(Y);if(arguments.length===1)return L;for(var T=1;T<arguments.length;++T){var b=h(arguments[T]),N=A(b),O=a&&(h.getOwnPropertySymbols||E);if(O)for(var gA=O(b),oA=0;oA<gA.length;++oA){var q=gA[oA];d(b,q)&&Q(N,q)}for(var Z=0;Z<N.length;++Z){var x=N[Z];if(d(b,x)){var X=b[x];L[x]=X}}}return L}},7596(o,r,t){var A=t(6521),a=function(){if(!Object.assign)return!1;for(var h="abcdefghijklmnopqrst",Q=h.split(""),d={},E=0;E<Q.length;++E)d[Q[E]]=Q[E];var D=Object.assign({},d),Y="";for(var z in D)Y+=z;return h!==Y},f=function(){if(!Object.assign||!Object.preventExtensions)return!1;var h=Object.preventExtensions({1:2});try{Object.assign(h,"xy")}catch{return h[1]==="y"}return!1};o.exports=function(){return!Object.assign||a()||f()?A:Object.assign}},2519(o,r){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function A(h,Q){return Object.prototype.hasOwnProperty.call(h,Q)}r.assign=function(h){for(var Q=Array.prototype.slice.call(arguments,1);Q.length;){var d=Q.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var E in d)A(d,E)&&(h[E]=d[E])}}return h},r.shrinkBuf=function(h,Q){return h.length===Q?h:h.subarray?h.subarray(0,Q):(h.length=Q,h)};var a={arraySet:function(h,Q,d,E,D){if(Q.subarray&&h.subarray){h.set(Q.subarray(d,d+E),D);return}for(var Y=0;Y<E;Y++)h[D+Y]=Q[d+Y]},flattenChunks:function(h){var Q,d,E,D,Y,z;for(E=0,Q=0,d=h.length;Q<d;Q++)E+=h[Q].length;for(z=new Uint8Array(E),D=0,Q=0,d=h.length;Q<d;Q++)Y=h[Q],z.set(Y,D),D+=Y.length;return z}},f={arraySet:function(h,Q,d,E,D){for(var Y=0;Y<E;Y++)h[D+Y]=Q[d+Y]},flattenChunks:function(h){return[].concat.apply([],h)}};r.setTyped=function(h){h?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,f))},r.setTyped(t)},6911(o){function r(t,A,a,f){for(var h=t&65535|0,Q=t>>>16&65535|0,d=0;a!==0;){d=a>2e3?2e3:a,a-=d;do h=h+A[f++]|0,Q=Q+h|0;while(--d);h%=65521,Q%=65521}return h|Q<<16|0}o.exports=r},1607(o){o.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}},9049(o){function r(){for(var a,f=[],h=0;h<256;h++){a=h;for(var Q=0;Q<8;Q++)a=a&1?3988292384^a>>>1:a>>>1;f[h]=a}return f}var t=r();function A(a,f,h,Q){var d=t,E=Q+h;a^=-1;for(var D=Q;D<E;D++)a=a>>>8^d[(a^f[D])&255];return a^-1}o.exports=A},2925(o,r,t){var A=t(2519),a=t(2367),f=t(6911),h=t(9049),Q=t(6228),d=0,E=1,D=3,Y=4,z=5,L=0,T=1,b=-2,N=-3,O=-5,gA=-1,oA=1,q=2,Z=3,x=4,X=0,B=2,v=8,bA=9,wA=15,tA=8,nA=29,KA=256,DA=KA+1+nA,FA=30,cA=19,yA=2*DA+1,zA=15,mA=3,HA=258,pA=HA+mA+1,NA=32,IA=42,BA=69,hA=73,R=91,C=103,lA=113,rA=666,p=1,G=2,iA=3,MA=4,m=3;function y(AA,Fe){return AA.msg=Q[Fe],Fe}function uA(AA){return(AA<<1)-(AA>4?9:0)}function CA(AA){for(var Fe=AA.length;--Fe>=0;)AA[Fe]=0}function $A(AA){var Fe=AA.state,Ye=Fe.pending;Ye>AA.avail_out&&(Ye=AA.avail_out),Ye!==0&&(A.arraySet(AA.output,Fe.pending_buf,Fe.pending_out,Ye,AA.next_out),AA.next_out+=Ye,Fe.pending_out+=Ye,AA.total_out+=Ye,AA.avail_out-=Ye,Fe.pending-=Ye,Fe.pending===0&&(Fe.pending_out=0))}function ZA(AA,Fe){a._tr_flush_block(AA,AA.block_start>=0?AA.block_start:-1,AA.strstart-AA.block_start,Fe),AA.block_start=AA.strstart,$A(AA.strm)}function kA(AA,Fe){AA.pending_buf[AA.pending++]=Fe}function de(AA,Fe){AA.pending_buf[AA.pending++]=Fe>>>8&255,AA.pending_buf[AA.pending++]=Fe&255}function Te(AA,Fe,Ye,jA){var we=AA.avail_in;return we>jA&&(we=jA),we===0?0:(AA.avail_in-=we,A.arraySet(Fe,AA.input,AA.next_in,we,Ye),AA.state.wrap===1?AA.adler=f(AA.adler,Fe,we,Ye):AA.state.wrap===2&&(AA.adler=h(AA.adler,Fe,we,Ye)),AA.next_in+=we,AA.total_in+=we,we)}function Re(AA,Fe){var Ye=AA.max_chain_length,jA=AA.strstart,we,ye,$e=AA.prev_length,Je=AA.nice_match,Ke=AA.strstart>AA.w_size-pA?AA.strstart-(AA.w_size-pA):0,ht=AA.window,Br=AA.w_mask,rt=AA.prev,It=AA.strstart+HA,ut=ht[jA+$e-1],Yt=ht[jA+$e];AA.prev_length>=AA.good_match&&(Ye>>=2),Je>AA.lookahead&&(Je=AA.lookahead);do if(we=Fe,!(ht[we+$e]!==Yt||ht[we+$e-1]!==ut||ht[we]!==ht[jA]||ht[++we]!==ht[jA+1])){jA+=2,we++;do;while(ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&ht[++jA]===ht[++we]&&jA<It);if(ye=HA-(It-jA),jA=It-HA,ye>$e){if(AA.match_start=Fe,$e=ye,ye>=Je)break;ut=ht[jA+$e-1],Yt=ht[jA+$e]}}while((Fe=rt[Fe&Br])>Ke&&--Ye!==0);return $e<=AA.lookahead?$e:AA.lookahead}function ze(AA){var Fe=AA.w_size,Ye,jA,we,ye,$e;do{if(ye=AA.window_size-AA.lookahead-AA.strstart,AA.strstart>=Fe+(Fe-pA)){A.arraySet(AA.window,AA.window,Fe,Fe,0),AA.match_start-=Fe,AA.strstart-=Fe,AA.block_start-=Fe,jA=AA.hash_size,Ye=jA;do we=AA.head[--Ye],AA.head[Ye]=we>=Fe?we-Fe:0;while(--jA);jA=Fe,Ye=jA;do we=AA.prev[--Ye],AA.prev[Ye]=we>=Fe?we-Fe:0;while(--jA);ye+=Fe}if(AA.strm.avail_in===0)break;if(jA=Te(AA.strm,AA.window,AA.strstart+AA.lookahead,ye),AA.lookahead+=jA,AA.lookahead+AA.insert>=mA)for($e=AA.strstart-AA.insert,AA.ins_h=AA.window[$e],AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[$e+1])&AA.hash_mask;AA.insert&&(AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[$e+mA-1])&AA.hash_mask,AA.prev[$e&AA.w_mask]=AA.head[AA.ins_h],AA.head[AA.ins_h]=$e,$e++,AA.insert--,!(AA.lookahead+AA.insert<mA)););}while(AA.lookahead<pA&&AA.strm.avail_in!==0)}function We(AA,Fe){var Ye=65535;for(Ye>AA.pending_buf_size-5&&(Ye=AA.pending_buf_size-5);;){if(AA.lookahead<=1){if(ze(AA),AA.lookahead===0&&Fe===d)return p;if(AA.lookahead===0)break}AA.strstart+=AA.lookahead,AA.lookahead=0;var jA=AA.block_start+Ye;if((AA.strstart===0||AA.strstart>=jA)&&(AA.lookahead=AA.strstart-jA,AA.strstart=jA,ZA(AA,!1),AA.strm.avail_out===0)||AA.strstart-AA.block_start>=AA.w_size-pA&&(ZA(AA,!1),AA.strm.avail_out===0))return p}return AA.insert=0,Fe===Y?(ZA(AA,!0),AA.strm.avail_out===0?iA:MA):(AA.strstart>AA.block_start&&(ZA(AA,!1),AA.strm.avail_out===0),p)}function ee(AA,Fe){for(var Ye,jA;;){if(AA.lookahead<pA){if(ze(AA),AA.lookahead<pA&&Fe===d)return p;if(AA.lookahead===0)break}if(Ye=0,AA.lookahead>=mA&&(AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[AA.strstart+mA-1])&AA.hash_mask,Ye=AA.prev[AA.strstart&AA.w_mask]=AA.head[AA.ins_h],AA.head[AA.ins_h]=AA.strstart),Ye!==0&&AA.strstart-Ye<=AA.w_size-pA&&(AA.match_length=Re(AA,Ye)),AA.match_length>=mA)if(jA=a._tr_tally(AA,AA.strstart-AA.match_start,AA.match_length-mA),AA.lookahead-=AA.match_length,AA.match_length<=AA.max_lazy_match&&AA.lookahead>=mA){AA.match_length--;do AA.strstart++,AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[AA.strstart+mA-1])&AA.hash_mask,Ye=AA.prev[AA.strstart&AA.w_mask]=AA.head[AA.ins_h],AA.head[AA.ins_h]=AA.strstart;while(--AA.match_length!==0);AA.strstart++}else AA.strstart+=AA.match_length,AA.match_length=0,AA.ins_h=AA.window[AA.strstart],AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[AA.strstart+1])&AA.hash_mask;else jA=a._tr_tally(AA,0,AA.window[AA.strstart]),AA.lookahead--,AA.strstart++;if(jA&&(ZA(AA,!1),AA.strm.avail_out===0))return p}return AA.insert=AA.strstart<mA-1?AA.strstart:mA-1,Fe===Y?(ZA(AA,!0),AA.strm.avail_out===0?iA:MA):AA.last_lit&&(ZA(AA,!1),AA.strm.avail_out===0)?p:G}function ge(AA,Fe){for(var Ye,jA,we;;){if(AA.lookahead<pA){if(ze(AA),AA.lookahead<pA&&Fe===d)return p;if(AA.lookahead===0)break}if(Ye=0,AA.lookahead>=mA&&(AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[AA.strstart+mA-1])&AA.hash_mask,Ye=AA.prev[AA.strstart&AA.w_mask]=AA.head[AA.ins_h],AA.head[AA.ins_h]=AA.strstart),AA.prev_length=AA.match_length,AA.prev_match=AA.match_start,AA.match_length=mA-1,Ye!==0&&AA.prev_length<AA.max_lazy_match&&AA.strstart-Ye<=AA.w_size-pA&&(AA.match_length=Re(AA,Ye),AA.match_length<=5&&(AA.strategy===oA||AA.match_length===mA&&AA.strstart-AA.match_start>4096)&&(AA.match_length=mA-1)),AA.prev_length>=mA&&AA.match_length<=AA.prev_length){we=AA.strstart+AA.lookahead-mA,jA=a._tr_tally(AA,AA.strstart-1-AA.prev_match,AA.prev_length-mA),AA.lookahead-=AA.prev_length-1,AA.prev_length-=2;do++AA.strstart<=we&&(AA.ins_h=(AA.ins_h<<AA.hash_shift^AA.window[AA.strstart+mA-1])&AA.hash_mask,Ye=AA.prev[AA.strstart&AA.w_mask]=AA.head[AA.ins_h],AA.head[AA.ins_h]=AA.strstart);while(--AA.prev_length!==0);if(AA.match_available=0,AA.match_length=mA-1,AA.strstart++,jA&&(ZA(AA,!1),AA.strm.avail_out===0))return p}else if(AA.match_available){if(jA=a._tr_tally(AA,0,AA.window[AA.strstart-1]),jA&&ZA(AA,!1),AA.strstart++,AA.lookahead--,AA.strm.avail_out===0)return p}else AA.match_available=1,AA.strstart++,AA.lookahead--}return AA.match_available&&(jA=a._tr_tally(AA,0,AA.window[AA.strstart-1]),AA.match_available=0),AA.insert=AA.strstart<mA-1?AA.strstart:mA-1,Fe===Y?(ZA(AA,!0),AA.strm.avail_out===0?iA:MA):AA.last_lit&&(ZA(AA,!1),AA.strm.avail_out===0)?p:G}function dA(AA,Fe){for(var Ye,jA,we,ye,$e=AA.window;;){if(AA.lookahead<=HA){if(ze(AA),AA.lookahead<=HA&&Fe===d)return p;if(AA.lookahead===0)break}if(AA.match_length=0,AA.lookahead>=mA&&AA.strstart>0&&(we=AA.strstart-1,jA=$e[we],jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we])){ye=AA.strstart+HA;do;while(jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we]&&jA===$e[++we]&&we<ye);AA.match_length=HA-(ye-we),AA.match_length>AA.lookahead&&(AA.match_length=AA.lookahead)}if(AA.match_length>=mA?(Ye=a._tr_tally(AA,1,AA.match_length-mA),AA.lookahead-=AA.match_length,AA.strstart+=AA.match_length,AA.match_length=0):(Ye=a._tr_tally(AA,0,AA.window[AA.strstart]),AA.lookahead--,AA.strstart++),Ye&&(ZA(AA,!1),AA.strm.avail_out===0))return p}return AA.insert=0,Fe===Y?(ZA(AA,!0),AA.strm.avail_out===0?iA:MA):AA.last_lit&&(ZA(AA,!1),AA.strm.avail_out===0)?p:G}function k(AA,Fe){for(var Ye;;){if(AA.lookahead===0&&(ze(AA),AA.lookahead===0)){if(Fe===d)return p;break}if(AA.match_length=0,Ye=a._tr_tally(AA,0,AA.window[AA.strstart]),AA.lookahead--,AA.strstart++,Ye&&(ZA(AA,!1),AA.strm.avail_out===0))return p}return AA.insert=0,Fe===Y?(ZA(AA,!0),AA.strm.avail_out===0?iA:MA):AA.last_lit&&(ZA(AA,!1),AA.strm.avail_out===0)?p:G}function J(AA,Fe,Ye,jA,we){this.good_length=AA,this.max_lazy=Fe,this.nice_length=Ye,this.max_chain=jA,this.func=we}var _;_=[new J(0,0,0,0,We),new J(4,4,8,4,ee),new J(4,5,16,8,ee),new J(4,6,32,32,ee),new J(4,4,16,16,ge),new J(8,16,32,32,ge),new J(8,16,128,128,ge),new J(8,32,128,256,ge),new J(32,128,258,1024,ge),new J(32,258,258,4096,ge)];function EA(AA){AA.window_size=2*AA.w_size,CA(AA.head),AA.max_lazy_match=_[AA.level].max_lazy,AA.good_match=_[AA.level].good_length,AA.nice_match=_[AA.level].nice_length,AA.max_chain_length=_[AA.level].max_chain,AA.strstart=0,AA.block_start=0,AA.lookahead=0,AA.insert=0,AA.match_length=AA.prev_length=mA-1,AA.match_available=0,AA.ins_h=0}function K(){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=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new A.Buf16(yA*2),this.dyn_dtree=new A.Buf16((2*FA+1)*2),this.bl_tree=new A.Buf16((2*cA+1)*2),CA(this.dyn_ltree),CA(this.dyn_dtree),CA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new A.Buf16(zA+1),this.heap=new A.Buf16(2*DA+1),CA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new A.Buf16(2*DA+1),CA(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 UA(AA){var Fe;return!AA||!AA.state?y(AA,b):(AA.total_in=AA.total_out=0,AA.data_type=B,Fe=AA.state,Fe.pending=0,Fe.pending_out=0,Fe.wrap<0&&(Fe.wrap=-Fe.wrap),Fe.status=Fe.wrap?IA:lA,AA.adler=Fe.wrap===2?0:1,Fe.last_flush=d,a._tr_init(Fe),L)}function se(AA){var Fe=UA(AA);return Fe===L&&EA(AA.state),Fe}function Me(AA,Fe){return!AA||!AA.state||AA.state.wrap!==2?b:(AA.state.gzhead=Fe,L)}function te(AA,Fe,Ye,jA,we,ye){if(!AA)return b;var $e=1;if(Fe===gA&&(Fe=6),jA<0?($e=0,jA=-jA):jA>15&&($e=2,jA-=16),we<1||we>bA||Ye!==v||jA<8||jA>15||Fe<0||Fe>9||ye<0||ye>x)return y(AA,b);jA===8&&(jA=9);var Je=new K;return AA.state=Je,Je.strm=AA,Je.wrap=$e,Je.gzhead=null,Je.w_bits=jA,Je.w_size=1<<Je.w_bits,Je.w_mask=Je.w_size-1,Je.hash_bits=we+7,Je.hash_size=1<<Je.hash_bits,Je.hash_mask=Je.hash_size-1,Je.hash_shift=~~((Je.hash_bits+mA-1)/mA),Je.window=new A.Buf8(Je.w_size*2),Je.head=new A.Buf16(Je.hash_size),Je.prev=new A.Buf16(Je.w_size),Je.lit_bufsize=1<<we+6,Je.pending_buf_size=Je.lit_bufsize*4,Je.pending_buf=new A.Buf8(Je.pending_buf_size),Je.d_buf=1*Je.lit_bufsize,Je.l_buf=3*Je.lit_bufsize,Je.level=Fe,Je.strategy=ye,Je.method=Ye,se(AA)}function Qe(AA,Fe){return te(AA,Fe,v,wA,tA,X)}function vA(AA,Fe){var Ye,jA,we,ye;if(!AA||!AA.state||Fe>z||Fe<0)return AA?y(AA,b):b;if(jA=AA.state,!AA.output||!AA.input&&AA.avail_in!==0||jA.status===rA&&Fe!==Y)return y(AA,AA.avail_out===0?O:b);if(jA.strm=AA,Ye=jA.last_flush,jA.last_flush=Fe,jA.status===IA)if(jA.wrap===2)AA.adler=0,kA(jA,31),kA(jA,139),kA(jA,8),jA.gzhead?(kA(jA,(jA.gzhead.text?1:0)+(jA.gzhead.hcrc?2:0)+(jA.gzhead.extra?4:0)+(jA.gzhead.name?8:0)+(jA.gzhead.comment?16:0)),kA(jA,jA.gzhead.time&255),kA(jA,jA.gzhead.time>>8&255),kA(jA,jA.gzhead.time>>16&255),kA(jA,jA.gzhead.time>>24&255),kA(jA,jA.level===9?2:jA.strategy>=q||jA.level<2?4:0),kA(jA,jA.gzhead.os&255),jA.gzhead.extra&&jA.gzhead.extra.length&&(kA(jA,jA.gzhead.extra.length&255),kA(jA,jA.gzhead.extra.length>>8&255)),jA.gzhead.hcrc&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending,0)),jA.gzindex=0,jA.status=BA):(kA(jA,0),kA(jA,0),kA(jA,0),kA(jA,0),kA(jA,0),kA(jA,jA.level===9?2:jA.strategy>=q||jA.level<2?4:0),kA(jA,m),jA.status=lA);else{var $e=v+(jA.w_bits-8<<4)<<8,Je=-1;jA.strategy>=q||jA.level<2?Je=0:jA.level<6?Je=1:jA.level===6?Je=2:Je=3,$e|=Je<<6,jA.strstart!==0&&($e|=NA),$e+=31-$e%31,jA.status=lA,de(jA,$e),jA.strstart!==0&&(de(jA,AA.adler>>>16),de(jA,AA.adler&65535)),AA.adler=1}if(jA.status===BA)if(jA.gzhead.extra){for(we=jA.pending;jA.gzindex<(jA.gzhead.extra.length&65535)&&!(jA.pending===jA.pending_buf_size&&(jA.gzhead.hcrc&&jA.pending>we&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending-we,we)),$A(AA),we=jA.pending,jA.pending===jA.pending_buf_size));)kA(jA,jA.gzhead.extra[jA.gzindex]&255),jA.gzindex++;jA.gzhead.hcrc&&jA.pending>we&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending-we,we)),jA.gzindex===jA.gzhead.extra.length&&(jA.gzindex=0,jA.status=hA)}else jA.status=hA;if(jA.status===hA)if(jA.gzhead.name){we=jA.pending;do{if(jA.pending===jA.pending_buf_size&&(jA.gzhead.hcrc&&jA.pending>we&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending-we,we)),$A(AA),we=jA.pending,jA.pending===jA.pending_buf_size)){ye=1;break}jA.gzindex<jA.gzhead.name.length?ye=jA.gzhead.name.charCodeAt(jA.gzindex++)&255:ye=0,kA(jA,ye)}while(ye!==0);jA.gzhead.hcrc&&jA.pending>we&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending-we,we)),ye===0&&(jA.gzindex=0,jA.status=R)}else jA.status=R;if(jA.status===R)if(jA.gzhead.comment){we=jA.pending;do{if(jA.pending===jA.pending_buf_size&&(jA.gzhead.hcrc&&jA.pending>we&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending-we,we)),$A(AA),we=jA.pending,jA.pending===jA.pending_buf_size)){ye=1;break}jA.gzindex<jA.gzhead.comment.length?ye=jA.gzhead.comment.charCodeAt(jA.gzindex++)&255:ye=0,kA(jA,ye)}while(ye!==0);jA.gzhead.hcrc&&jA.pending>we&&(AA.adler=h(AA.adler,jA.pending_buf,jA.pending-we,we)),ye===0&&(jA.status=C)}else jA.status=C;if(jA.status===C&&(jA.gzhead.hcrc?(jA.pending+2>jA.pending_buf_size&&$A(AA),jA.pending+2<=jA.pending_buf_size&&(kA(jA,AA.adler&255),kA(jA,AA.adler>>8&255),AA.adler=0,jA.status=lA)):jA.status=lA),jA.pending!==0){if($A(AA),AA.avail_out===0)return jA.last_flush=-1,L}else if(AA.avail_in===0&&uA(Fe)<=uA(Ye)&&Fe!==Y)return y(AA,O);if(jA.status===rA&&AA.avail_in!==0)return y(AA,O);if(AA.avail_in!==0||jA.lookahead!==0||Fe!==d&&jA.status!==rA){var Ke=jA.strategy===q?k(jA,Fe):jA.strategy===Z?dA(jA,Fe):_[jA.level].func(jA,Fe);if((Ke===iA||Ke===MA)&&(jA.status=rA),Ke===p||Ke===iA)return AA.avail_out===0&&(jA.last_flush=-1),L;if(Ke===G&&(Fe===E?a._tr_align(jA):Fe!==z&&(a._tr_stored_block(jA,0,0,!1),Fe===D&&(CA(jA.head),jA.lookahead===0&&(jA.strstart=0,jA.block_start=0,jA.insert=0))),$A(AA),AA.avail_out===0))return jA.last_flush=-1,L}return Fe!==Y?L:jA.wrap<=0?T:(jA.wrap===2?(kA(jA,AA.adler&255),kA(jA,AA.adler>>8&255),kA(jA,AA.adler>>16&255),kA(jA,AA.adler>>24&255),kA(jA,AA.total_in&255),kA(jA,AA.total_in>>8&255),kA(jA,AA.total_in>>16&255),kA(jA,AA.total_in>>24&255)):(de(jA,AA.adler>>>16),de(jA,AA.adler&65535)),$A(AA),jA.wrap>0&&(jA.wrap=-jA.wrap),jA.pending!==0?L:T)}function me(AA){var Fe;return!AA||!AA.state?b:(Fe=AA.state.status,Fe!==IA&&Fe!==BA&&Fe!==hA&&Fe!==R&&Fe!==C&&Fe!==lA&&Fe!==rA?y(AA,b):(AA.state=null,Fe===lA?y(AA,N):L))}function it(AA,Fe){var Ye=Fe.length,jA,we,ye,$e,Je,Ke,ht,Br;if(!AA||!AA.state||(jA=AA.state,$e=jA.wrap,$e===2||$e===1&&jA.status!==IA||jA.lookahead))return b;for($e===1&&(AA.adler=f(AA.adler,Fe,Ye,0)),jA.wrap=0,Ye>=jA.w_size&&($e===0&&(CA(jA.head),jA.strstart=0,jA.block_start=0,jA.insert=0),Br=new A.Buf8(jA.w_size),A.arraySet(Br,Fe,Ye-jA.w_size,jA.w_size,0),Fe=Br,Ye=jA.w_size),Je=AA.avail_in,Ke=AA.next_in,ht=AA.input,AA.avail_in=Ye,AA.next_in=0,AA.input=Fe,ze(jA);jA.lookahead>=mA;){we=jA.strstart,ye=jA.lookahead-(mA-1);do jA.ins_h=(jA.ins_h<<jA.hash_shift^jA.window[we+mA-1])&jA.hash_mask,jA.prev[we&jA.w_mask]=jA.head[jA.ins_h],jA.head[jA.ins_h]=we,we++;while(--ye);jA.strstart=we,jA.lookahead=mA-1,ze(jA)}return jA.strstart+=jA.lookahead,jA.block_start=jA.strstart,jA.insert=jA.lookahead,jA.lookahead=0,jA.match_length=jA.prev_length=mA-1,jA.match_available=0,AA.next_in=Ke,AA.input=ht,AA.avail_in=Je,jA.wrap=$e,L}r.deflateInit=Qe,r.deflateInit2=te,r.deflateReset=se,r.deflateResetKeep=UA,r.deflateSetHeader=Me,r.deflate=vA,r.deflateEnd=me,r.deflateSetDictionary=it,r.deflateInfo="pako deflate (from Nodeca project)"},6395(o){var r=30,t=12;o.exports=function(a,f){var h,Q,d,E,D,Y,z,L,T,b,N,O,gA,oA,q,Z,x,X,B,v,bA,wA,tA,nA,KA;h=a.state,Q=a.next_in,nA=a.input,d=Q+(a.avail_in-5),E=a.next_out,KA=a.output,D=E-(f-a.avail_out),Y=E+(a.avail_out-257),z=h.dmax,L=h.wsize,T=h.whave,b=h.wnext,N=h.window,O=h.hold,gA=h.bits,oA=h.lencode,q=h.distcode,Z=(1<<h.lenbits)-1,x=(1<<h.distbits)-1;A:do{gA<15&&(O+=nA[Q++]<<gA,gA+=8,O+=nA[Q++]<<gA,gA+=8),X=oA[O&Z];e:for(;;){if(B=X>>>24,O>>>=B,gA-=B,B=X>>>16&255,B===0)KA[E++]=X&65535;else if(B&16){v=X&65535,B&=15,B&&(gA<B&&(O+=nA[Q++]<<gA,gA+=8),v+=O&(1<<B)-1,O>>>=B,gA-=B),gA<15&&(O+=nA[Q++]<<gA,gA+=8,O+=nA[Q++]<<gA,gA+=8),X=q[O&x];t:for(;;){if(B=X>>>24,O>>>=B,gA-=B,B=X>>>16&255,B&16){if(bA=X&65535,B&=15,gA<B&&(O+=nA[Q++]<<gA,gA+=8,gA<B&&(O+=nA[Q++]<<gA,gA+=8)),bA+=O&(1<<B)-1,bA>z){a.msg="invalid distance too far back",h.mode=r;break A}if(O>>>=B,gA-=B,B=E-D,bA>B){if(B=bA-B,B>T&&h.sane){a.msg="invalid distance too far back",h.mode=r;break A}if(wA=0,tA=N,b===0){if(wA+=L-B,B<v){v-=B;do KA[E++]=N[wA++];while(--B);wA=E-bA,tA=KA}}else if(b<B){if(wA+=L+b-B,B-=b,B<v){v-=B;do KA[E++]=N[wA++];while(--B);if(wA=0,b<v){B=b,v-=B;do KA[E++]=N[wA++];while(--B);wA=E-bA,tA=KA}}}else if(wA+=b-B,B<v){v-=B;do KA[E++]=N[wA++];while(--B);wA=E-bA,tA=KA}for(;v>2;)KA[E++]=tA[wA++],KA[E++]=tA[wA++],KA[E++]=tA[wA++],v-=3;v&&(KA[E++]=tA[wA++],v>1&&(KA[E++]=tA[wA++]))}else{wA=E-bA;do KA[E++]=KA[wA++],KA[E++]=KA[wA++],KA[E++]=KA[wA++],v-=3;while(v>2);v&&(KA[E++]=KA[wA++],v>1&&(KA[E++]=KA[wA++]))}}else if(B&64){a.msg="invalid distance code",h.mode=r;break A}else{X=q[(X&65535)+(O&(1<<B)-1)];continue t}break}}else if(B&64)if(B&32){h.mode=t;break A}else{a.msg="invalid literal/length code",h.mode=r;break A}else{X=oA[(X&65535)+(O&(1<<B)-1)];continue e}break}}while(Q<d&&E<Y);v=gA>>3,Q-=v,gA-=v<<3,O&=(1<<gA)-1,a.next_in=Q,a.next_out=E,a.avail_in=Q<d?5+(d-Q):5-(Q-d),a.avail_out=E<Y?257+(Y-E):257-(E-Y),h.hold=O,h.bits=gA}},2269(o,r,t){var A=t(2519),a=t(6911),f=t(9049),h=t(6395),Q=t(2920),d=0,E=1,D=2,Y=4,z=5,L=6,T=0,b=1,N=2,O=-2,gA=-3,oA=-4,q=-5,Z=8,x=1,X=2,B=3,v=4,bA=5,wA=6,tA=7,nA=8,KA=9,DA=10,FA=11,cA=12,yA=13,zA=14,mA=15,HA=16,pA=17,NA=18,IA=19,BA=20,hA=21,R=22,C=23,lA=24,rA=25,p=26,G=27,iA=28,MA=29,m=30,y=31,uA=32,CA=852,$A=592,ZA=15,kA=ZA;function de(te){return(te>>>24&255)+(te>>>8&65280)+((te&65280)<<8)+((te&255)<<24)}function Te(){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 A.Buf16(320),this.work=new A.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Re(te){var Qe;return!te||!te.state?O:(Qe=te.state,te.total_in=te.total_out=Qe.total=0,te.msg="",Qe.wrap&&(te.adler=Qe.wrap&1),Qe.mode=x,Qe.last=0,Qe.havedict=0,Qe.dmax=32768,Qe.head=null,Qe.hold=0,Qe.bits=0,Qe.lencode=Qe.lendyn=new A.Buf32(CA),Qe.distcode=Qe.distdyn=new A.Buf32($A),Qe.sane=1,Qe.back=-1,T)}function ze(te){var Qe;return!te||!te.state?O:(Qe=te.state,Qe.wsize=0,Qe.whave=0,Qe.wnext=0,Re(te))}function We(te,Qe){var vA,me;return!te||!te.state||(me=te.state,Qe<0?(vA=0,Qe=-Qe):(vA=(Qe>>4)+1,Qe<48&&(Qe&=15)),Qe&&(Qe<8||Qe>15))?O:(me.window!==null&&me.wbits!==Qe&&(me.window=null),me.wrap=vA,me.wbits=Qe,ze(te))}function ee(te,Qe){var vA,me;return te?(me=new Te,te.state=me,me.window=null,vA=We(te,Qe),vA!==T&&(te.state=null),vA):O}function ge(te){return ee(te,kA)}var dA=!0,k,J;function _(te){if(dA){var Qe;for(k=new A.Buf32(512),J=new A.Buf32(32),Qe=0;Qe<144;)te.lens[Qe++]=8;for(;Qe<256;)te.lens[Qe++]=9;for(;Qe<280;)te.lens[Qe++]=7;for(;Qe<288;)te.lens[Qe++]=8;for(Q(E,te.lens,0,288,k,0,te.work,{bits:9}),Qe=0;Qe<32;)te.lens[Qe++]=5;Q(D,te.lens,0,32,J,0,te.work,{bits:5}),dA=!1}te.lencode=k,te.lenbits=9,te.distcode=J,te.distbits=5}function EA(te,Qe,vA,me){var it,AA=te.state;return AA.window===null&&(AA.wsize=1<<AA.wbits,AA.wnext=0,AA.whave=0,AA.window=new A.Buf8(AA.wsize)),me>=AA.wsize?(A.arraySet(AA.window,Qe,vA-AA.wsize,AA.wsize,0),AA.wnext=0,AA.whave=AA.wsize):(it=AA.wsize-AA.wnext,it>me&&(it=me),A.arraySet(AA.window,Qe,vA-me,it,AA.wnext),me-=it,me?(A.arraySet(AA.window,Qe,vA-me,me,0),AA.wnext=me,AA.whave=AA.wsize):(AA.wnext+=it,AA.wnext===AA.wsize&&(AA.wnext=0),AA.whave<AA.wsize&&(AA.whave+=it))),0}function K(te,Qe){var vA,me,it,AA,Fe,Ye,jA,we,ye,$e,Je,Ke,ht,Br,rt=0,It,ut,Yt,kt,Qr,Dr,Tt,yt,jt=new A.Buf8(4),Vt,je,Ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!te||!te.state||!te.output||!te.input&&te.avail_in!==0)return O;vA=te.state,vA.mode===cA&&(vA.mode=yA),Fe=te.next_out,it=te.output,jA=te.avail_out,AA=te.next_in,me=te.input,Ye=te.avail_in,we=vA.hold,ye=vA.bits,$e=Ye,Je=jA,yt=T;A:for(;;)switch(vA.mode){case x:if(vA.wrap===0){vA.mode=yA;break}for(;ye<16;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(vA.wrap&2&&we===35615){vA.check=0,jt[0]=we&255,jt[1]=we>>>8&255,vA.check=f(vA.check,jt,2,0),we=0,ye=0,vA.mode=X;break}if(vA.flags=0,vA.head&&(vA.head.done=!1),!(vA.wrap&1)||(((we&255)<<8)+(we>>8))%31){te.msg="incorrect header check",vA.mode=m;break}if((we&15)!==Z){te.msg="unknown compression method",vA.mode=m;break}if(we>>>=4,ye-=4,Tt=(we&15)+8,vA.wbits===0)vA.wbits=Tt;else if(Tt>vA.wbits){te.msg="invalid window size",vA.mode=m;break}vA.dmax=1<<Tt,te.adler=vA.check=1,vA.mode=we&512?DA:cA,we=0,ye=0;break;case X:for(;ye<16;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(vA.flags=we,(vA.flags&255)!==Z){te.msg="unknown compression method",vA.mode=m;break}if(vA.flags&57344){te.msg="unknown header flags set",vA.mode=m;break}vA.head&&(vA.head.text=we>>8&1),vA.flags&512&&(jt[0]=we&255,jt[1]=we>>>8&255,vA.check=f(vA.check,jt,2,0)),we=0,ye=0,vA.mode=B;case B:for(;ye<32;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}vA.head&&(vA.head.time=we),vA.flags&512&&(jt[0]=we&255,jt[1]=we>>>8&255,jt[2]=we>>>16&255,jt[3]=we>>>24&255,vA.check=f(vA.check,jt,4,0)),we=0,ye=0,vA.mode=v;case v:for(;ye<16;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}vA.head&&(vA.head.xflags=we&255,vA.head.os=we>>8),vA.flags&512&&(jt[0]=we&255,jt[1]=we>>>8&255,vA.check=f(vA.check,jt,2,0)),we=0,ye=0,vA.mode=bA;case bA:if(vA.flags&1024){for(;ye<16;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}vA.length=we,vA.head&&(vA.head.extra_len=we),vA.flags&512&&(jt[0]=we&255,jt[1]=we>>>8&255,vA.check=f(vA.check,jt,2,0)),we=0,ye=0}else vA.head&&(vA.head.extra=null);vA.mode=wA;case wA:if(vA.flags&1024&&(Ke=vA.length,Ke>Ye&&(Ke=Ye),Ke&&(vA.head&&(Tt=vA.head.extra_len-vA.length,vA.head.extra||(vA.head.extra=new Array(vA.head.extra_len)),A.arraySet(vA.head.extra,me,AA,Ke,Tt)),vA.flags&512&&(vA.check=f(vA.check,me,Ke,AA)),Ye-=Ke,AA+=Ke,vA.length-=Ke),vA.length))break A;vA.length=0,vA.mode=tA;case tA:if(vA.flags&2048){if(Ye===0)break A;Ke=0;do Tt=me[AA+Ke++],vA.head&&Tt&&vA.length<65536&&(vA.head.name+=String.fromCharCode(Tt));while(Tt&&Ke<Ye);if(vA.flags&512&&(vA.check=f(vA.check,me,Ke,AA)),Ye-=Ke,AA+=Ke,Tt)break A}else vA.head&&(vA.head.name=null);vA.length=0,vA.mode=nA;case nA:if(vA.flags&4096){if(Ye===0)break A;Ke=0;do Tt=me[AA+Ke++],vA.head&&Tt&&vA.length<65536&&(vA.head.comment+=String.fromCharCode(Tt));while(Tt&&Ke<Ye);if(vA.flags&512&&(vA.check=f(vA.check,me,Ke,AA)),Ye-=Ke,AA+=Ke,Tt)break A}else vA.head&&(vA.head.comment=null);vA.mode=KA;case KA:if(vA.flags&512){for(;ye<16;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(we!==(vA.check&65535)){te.msg="header crc mismatch",vA.mode=m;break}we=0,ye=0}vA.head&&(vA.head.hcrc=vA.flags>>9&1,vA.head.done=!0),te.adler=vA.check=0,vA.mode=cA;break;case DA:for(;ye<32;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}te.adler=vA.check=de(we),we=0,ye=0,vA.mode=FA;case FA:if(vA.havedict===0)return te.next_out=Fe,te.avail_out=jA,te.next_in=AA,te.avail_in=Ye,vA.hold=we,vA.bits=ye,N;te.adler=vA.check=1,vA.mode=cA;case cA:if(Qe===z||Qe===L)break A;case yA:if(vA.last){we>>>=ye&7,ye-=ye&7,vA.mode=G;break}for(;ye<3;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}switch(vA.last=we&1,we>>>=1,ye-=1,we&3){case 0:vA.mode=zA;break;case 1:if(_(vA),vA.mode=BA,Qe===L){we>>>=2,ye-=2;break A}break;case 2:vA.mode=pA;break;case 3:te.msg="invalid block type",vA.mode=m}we>>>=2,ye-=2;break;case zA:for(we>>>=ye&7,ye-=ye&7;ye<32;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if((we&65535)!==(we>>>16^65535)){te.msg="invalid stored block lengths",vA.mode=m;break}if(vA.length=we&65535,we=0,ye=0,vA.mode=mA,Qe===L)break A;case mA:vA.mode=HA;case HA:if(Ke=vA.length,Ke){if(Ke>Ye&&(Ke=Ye),Ke>jA&&(Ke=jA),Ke===0)break A;A.arraySet(it,me,AA,Ke,Fe),Ye-=Ke,AA+=Ke,jA-=Ke,Fe+=Ke,vA.length-=Ke;break}vA.mode=cA;break;case pA:for(;ye<14;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(vA.nlen=(we&31)+257,we>>>=5,ye-=5,vA.ndist=(we&31)+1,we>>>=5,ye-=5,vA.ncode=(we&15)+4,we>>>=4,ye-=4,vA.nlen>286||vA.ndist>30){te.msg="too many length or distance symbols",vA.mode=m;break}vA.have=0,vA.mode=NA;case NA:for(;vA.have<vA.ncode;){for(;ye<3;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}vA.lens[Ve[vA.have++]]=we&7,we>>>=3,ye-=3}for(;vA.have<19;)vA.lens[Ve[vA.have++]]=0;if(vA.lencode=vA.lendyn,vA.lenbits=7,Vt={bits:vA.lenbits},yt=Q(d,vA.lens,0,19,vA.lencode,0,vA.work,Vt),vA.lenbits=Vt.bits,yt){te.msg="invalid code lengths set",vA.mode=m;break}vA.have=0,vA.mode=IA;case IA:for(;vA.have<vA.nlen+vA.ndist;){for(;rt=vA.lencode[we&(1<<vA.lenbits)-1],It=rt>>>24,ut=rt>>>16&255,Yt=rt&65535,!(It<=ye);){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(Yt<16)we>>>=It,ye-=It,vA.lens[vA.have++]=Yt;else{if(Yt===16){for(je=It+2;ye<je;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(we>>>=It,ye-=It,vA.have===0){te.msg="invalid bit length repeat",vA.mode=m;break}Tt=vA.lens[vA.have-1],Ke=3+(we&3),we>>>=2,ye-=2}else if(Yt===17){for(je=It+3;ye<je;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}we>>>=It,ye-=It,Tt=0,Ke=3+(we&7),we>>>=3,ye-=3}else{for(je=It+7;ye<je;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}we>>>=It,ye-=It,Tt=0,Ke=11+(we&127),we>>>=7,ye-=7}if(vA.have+Ke>vA.nlen+vA.ndist){te.msg="invalid bit length repeat",vA.mode=m;break}for(;Ke--;)vA.lens[vA.have++]=Tt}}if(vA.mode===m)break;if(vA.lens[256]===0){te.msg="invalid code -- missing end-of-block",vA.mode=m;break}if(vA.lenbits=9,Vt={bits:vA.lenbits},yt=Q(E,vA.lens,0,vA.nlen,vA.lencode,0,vA.work,Vt),vA.lenbits=Vt.bits,yt){te.msg="invalid literal/lengths set",vA.mode=m;break}if(vA.distbits=6,vA.distcode=vA.distdyn,Vt={bits:vA.distbits},yt=Q(D,vA.lens,vA.nlen,vA.ndist,vA.distcode,0,vA.work,Vt),vA.distbits=Vt.bits,yt){te.msg="invalid distances set",vA.mode=m;break}if(vA.mode=BA,Qe===L)break A;case BA:vA.mode=hA;case hA:if(Ye>=6&&jA>=258){te.next_out=Fe,te.avail_out=jA,te.next_in=AA,te.avail_in=Ye,vA.hold=we,vA.bits=ye,h(te,Je),Fe=te.next_out,it=te.output,jA=te.avail_out,AA=te.next_in,me=te.input,Ye=te.avail_in,we=vA.hold,ye=vA.bits,vA.mode===cA&&(vA.back=-1);break}for(vA.back=0;rt=vA.lencode[we&(1<<vA.lenbits)-1],It=rt>>>24,ut=rt>>>16&255,Yt=rt&65535,!(It<=ye);){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(ut&&!(ut&240)){for(kt=It,Qr=ut,Dr=Yt;rt=vA.lencode[Dr+((we&(1<<kt+Qr)-1)>>kt)],It=rt>>>24,ut=rt>>>16&255,Yt=rt&65535,!(kt+It<=ye);){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}we>>>=kt,ye-=kt,vA.back+=kt}if(we>>>=It,ye-=It,vA.back+=It,vA.length=Yt,ut===0){vA.mode=p;break}if(ut&32){vA.back=-1,vA.mode=cA;break}if(ut&64){te.msg="invalid literal/length code",vA.mode=m;break}vA.extra=ut&15,vA.mode=R;case R:if(vA.extra){for(je=vA.extra;ye<je;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}vA.length+=we&(1<<vA.extra)-1,we>>>=vA.extra,ye-=vA.extra,vA.back+=vA.extra}vA.was=vA.length,vA.mode=C;case C:for(;rt=vA.distcode[we&(1<<vA.distbits)-1],It=rt>>>24,ut=rt>>>16&255,Yt=rt&65535,!(It<=ye);){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(!(ut&240)){for(kt=It,Qr=ut,Dr=Yt;rt=vA.distcode[Dr+((we&(1<<kt+Qr)-1)>>kt)],It=rt>>>24,ut=rt>>>16&255,Yt=rt&65535,!(kt+It<=ye);){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}we>>>=kt,ye-=kt,vA.back+=kt}if(we>>>=It,ye-=It,vA.back+=It,ut&64){te.msg="invalid distance code",vA.mode=m;break}vA.offset=Yt,vA.extra=ut&15,vA.mode=lA;case lA:if(vA.extra){for(je=vA.extra;ye<je;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}vA.offset+=we&(1<<vA.extra)-1,we>>>=vA.extra,ye-=vA.extra,vA.back+=vA.extra}if(vA.offset>vA.dmax){te.msg="invalid distance too far back",vA.mode=m;break}vA.mode=rA;case rA:if(jA===0)break A;if(Ke=Je-jA,vA.offset>Ke){if(Ke=vA.offset-Ke,Ke>vA.whave&&vA.sane){te.msg="invalid distance too far back",vA.mode=m;break}Ke>vA.wnext?(Ke-=vA.wnext,ht=vA.wsize-Ke):ht=vA.wnext-Ke,Ke>vA.length&&(Ke=vA.length),Br=vA.window}else Br=it,ht=Fe-vA.offset,Ke=vA.length;Ke>jA&&(Ke=jA),jA-=Ke,vA.length-=Ke;do it[Fe++]=Br[ht++];while(--Ke);vA.length===0&&(vA.mode=hA);break;case p:if(jA===0)break A;it[Fe++]=vA.length,jA--,vA.mode=hA;break;case G:if(vA.wrap){for(;ye<32;){if(Ye===0)break A;Ye--,we|=me[AA++]<<ye,ye+=8}if(Je-=jA,te.total_out+=Je,vA.total+=Je,Je&&(te.adler=vA.check=vA.flags?f(vA.check,it,Je,Fe-Je):a(vA.check,it,Je,Fe-Je)),Je=jA,(vA.flags?we:de(we))!==vA.check){te.msg="incorrect data check",vA.mode=m;break}we=0,ye=0}vA.mode=iA;case iA:if(vA.wrap&&vA.flags){for(;ye<32;){if(Ye===0)break A;Ye--,we+=me[AA++]<<ye,ye+=8}if(we!==(vA.total&4294967295)){te.msg="incorrect length check",vA.mode=m;break}we=0,ye=0}vA.mode=MA;case MA:yt=b;break A;case m:yt=gA;break A;case y:return oA;case uA:default:return O}return te.next_out=Fe,te.avail_out=jA,te.next_in=AA,te.avail_in=Ye,vA.hold=we,vA.bits=ye,(vA.wsize||Je!==te.avail_out&&vA.mode<m&&(vA.mode<G||Qe!==Y))&&EA(te,te.output,te.next_out,Je-te.avail_out),$e-=te.avail_in,Je-=te.avail_out,te.total_in+=$e,te.total_out+=Je,vA.total+=Je,vA.wrap&&Je&&(te.adler=vA.check=vA.flags?f(vA.check,it,Je,te.next_out-Je):a(vA.check,it,Je,te.next_out-Je)),te.data_type=vA.bits+(vA.last?64:0)+(vA.mode===cA?128:0)+(vA.mode===BA||vA.mode===mA?256:0),($e===0&&Je===0||Qe===Y)&&yt===T&&(yt=q),yt}function UA(te){if(!te||!te.state)return O;var Qe=te.state;return Qe.window&&(Qe.window=null),te.state=null,T}function se(te,Qe){var vA;return!te||!te.state||(vA=te.state,!(vA.wrap&2))?O:(vA.head=Qe,Qe.done=!1,T)}function Me(te,Qe){var vA=Qe.length,me,it,AA;return!te||!te.state||(me=te.state,me.wrap!==0&&me.mode!==FA)?O:me.mode===FA&&(it=1,it=a(it,Qe,vA,0),it!==me.check)?gA:(AA=EA(te,Qe,vA,vA),AA?(me.mode=y,oA):(me.havedict=1,T))}r.inflateReset=ze,r.inflateReset2=We,r.inflateResetKeep=Re,r.inflateInit=ge,r.inflateInit2=ee,r.inflate=K,r.inflateEnd=UA,r.inflateGetHeader=se,r.inflateSetDictionary=Me,r.inflateInfo="pako inflate (from Nodeca project)"},2920(o,r,t){var A=t(2519),a=15,f=852,h=592,Q=0,d=1,E=2,D=[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],Y=[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],z=[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],L=[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];o.exports=function(b,N,O,gA,oA,q,Z,x){var X=x.bits,B=0,v=0,bA=0,wA=0,tA=0,nA=0,KA=0,DA=0,FA=0,cA=0,yA,zA,mA,HA,pA,NA=null,IA=0,BA,hA=new A.Buf16(a+1),R=new A.Buf16(a+1),C=null,lA=0,rA,p,G;for(B=0;B<=a;B++)hA[B]=0;for(v=0;v<gA;v++)hA[N[O+v]]++;for(tA=X,wA=a;wA>=1&&hA[wA]===0;wA--);if(tA>wA&&(tA=wA),wA===0)return oA[q++]=20971520,oA[q++]=20971520,x.bits=1,0;for(bA=1;bA<wA&&hA[bA]===0;bA++);for(tA<bA&&(tA=bA),DA=1,B=1;B<=a;B++)if(DA<<=1,DA-=hA[B],DA<0)return-1;if(DA>0&&(b===Q||wA!==1))return-1;for(R[1]=0,B=1;B<a;B++)R[B+1]=R[B]+hA[B];for(v=0;v<gA;v++)N[O+v]!==0&&(Z[R[N[O+v]]++]=v);if(b===Q?(NA=C=Z,BA=19):b===d?(NA=D,IA-=257,C=Y,lA-=257,BA=256):(NA=z,C=L,BA=-1),cA=0,v=0,B=bA,pA=q,nA=tA,KA=0,mA=-1,FA=1<<tA,HA=FA-1,b===d&&FA>f||b===E&&FA>h)return 1;for(;;){rA=B-KA,Z[v]<BA?(p=0,G=Z[v]):Z[v]>BA?(p=C[lA+Z[v]],G=NA[IA+Z[v]]):(p=96,G=0),yA=1<<B-KA,zA=1<<nA,bA=zA;do zA-=yA,oA[pA+(cA>>KA)+zA]=rA<<24|p<<16|G|0;while(zA!==0);for(yA=1<<B-1;cA&yA;)yA>>=1;if(yA!==0?(cA&=yA-1,cA+=yA):cA=0,v++,--hA[B]===0){if(B===wA)break;B=N[O+Z[v]]}if(B>tA&&(cA&HA)!==mA){for(KA===0&&(KA=tA),pA+=bA,nA=B-KA,DA=1<<nA;nA+KA<wA&&(DA-=hA[nA+KA],!(DA<=0));)nA++,DA<<=1;if(FA+=1<<nA,b===d&&FA>f||b===E&&FA>h)return 1;mA=cA&HA,oA[mA]=tA<<24|nA<<16|pA-q|0}}return cA!==0&&(oA[pA+cA]=B-KA<<24|4194304|0),x.bits=tA,0}},6228(o){o.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"}},2367(o,r,t){var A=t(2519),a=4,f=0,h=1,Q=2;function d(K){for(var UA=K.length;--UA>=0;)K[UA]=0}var E=0,D=1,Y=2,z=3,L=258,T=29,b=256,N=b+1+T,O=30,gA=19,oA=2*N+1,q=15,Z=16,x=7,X=256,B=16,v=17,bA=18,wA=[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],tA=[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],nA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],KA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DA=512,FA=new Array((N+2)*2);d(FA);var cA=new Array(O*2);d(cA);var yA=new Array(DA);d(yA);var zA=new Array(L-z+1);d(zA);var mA=new Array(T);d(mA);var HA=new Array(O);d(HA);function pA(K,UA,se,Me,te){this.static_tree=K,this.extra_bits=UA,this.extra_base=se,this.elems=Me,this.max_length=te,this.has_stree=K&&K.length}var NA,IA,BA;function hA(K,UA){this.dyn_tree=K,this.max_code=0,this.stat_desc=UA}function R(K){return K<256?yA[K]:yA[256+(K>>>7)]}function C(K,UA){K.pending_buf[K.pending++]=UA&255,K.pending_buf[K.pending++]=UA>>>8&255}function lA(K,UA,se){K.bi_valid>Z-se?(K.bi_buf|=UA<<K.bi_valid&65535,C(K,K.bi_buf),K.bi_buf=UA>>Z-K.bi_valid,K.bi_valid+=se-Z):(K.bi_buf|=UA<<K.bi_valid&65535,K.bi_valid+=se)}function rA(K,UA,se){lA(K,se[UA*2],se[UA*2+1])}function p(K,UA){var se=0;do se|=K&1,K>>>=1,se<<=1;while(--UA>0);return se>>>1}function G(K){K.bi_valid===16?(C(K,K.bi_buf),K.bi_buf=0,K.bi_valid=0):K.bi_valid>=8&&(K.pending_buf[K.pending++]=K.bi_buf&255,K.bi_buf>>=8,K.bi_valid-=8)}function iA(K,UA){var se=UA.dyn_tree,Me=UA.max_code,te=UA.stat_desc.static_tree,Qe=UA.stat_desc.has_stree,vA=UA.stat_desc.extra_bits,me=UA.stat_desc.extra_base,it=UA.stat_desc.max_length,AA,Fe,Ye,jA,we,ye,$e=0;for(jA=0;jA<=q;jA++)K.bl_count[jA]=0;for(se[K.heap[K.heap_max]*2+1]=0,AA=K.heap_max+1;AA<oA;AA++)Fe=K.heap[AA],jA=se[se[Fe*2+1]*2+1]+1,jA>it&&(jA=it,$e++),se[Fe*2+1]=jA,!(Fe>Me)&&(K.bl_count[jA]++,we=0,Fe>=me&&(we=vA[Fe-me]),ye=se[Fe*2],K.opt_len+=ye*(jA+we),Qe&&(K.static_len+=ye*(te[Fe*2+1]+we)));if($e!==0){do{for(jA=it-1;K.bl_count[jA]===0;)jA--;K.bl_count[jA]--,K.bl_count[jA+1]+=2,K.bl_count[it]--,$e-=2}while($e>0);for(jA=it;jA!==0;jA--)for(Fe=K.bl_count[jA];Fe!==0;)Ye=K.heap[--AA],!(Ye>Me)&&(se[Ye*2+1]!==jA&&(K.opt_len+=(jA-se[Ye*2+1])*se[Ye*2],se[Ye*2+1]=jA),Fe--)}}function MA(K,UA,se){var Me=new Array(q+1),te=0,Qe,vA;for(Qe=1;Qe<=q;Qe++)Me[Qe]=te=te+se[Qe-1]<<1;for(vA=0;vA<=UA;vA++){var me=K[vA*2+1];me!==0&&(K[vA*2]=p(Me[me]++,me))}}function m(){var K,UA,se,Me,te,Qe=new Array(q+1);for(se=0,Me=0;Me<T-1;Me++)for(mA[Me]=se,K=0;K<1<<wA[Me];K++)zA[se++]=Me;for(zA[se-1]=Me,te=0,Me=0;Me<16;Me++)for(HA[Me]=te,K=0;K<1<<tA[Me];K++)yA[te++]=Me;for(te>>=7;Me<O;Me++)for(HA[Me]=te<<7,K=0;K<1<<tA[Me]-7;K++)yA[256+te++]=Me;for(UA=0;UA<=q;UA++)Qe[UA]=0;for(K=0;K<=143;)FA[K*2+1]=8,K++,Qe[8]++;for(;K<=255;)FA[K*2+1]=9,K++,Qe[9]++;for(;K<=279;)FA[K*2+1]=7,K++,Qe[7]++;for(;K<=287;)FA[K*2+1]=8,K++,Qe[8]++;for(MA(FA,N+1,Qe),K=0;K<O;K++)cA[K*2+1]=5,cA[K*2]=p(K,5);NA=new pA(FA,wA,b+1,N,q),IA=new pA(cA,tA,0,O,q),BA=new pA(new Array(0),nA,0,gA,x)}function y(K){var UA;for(UA=0;UA<N;UA++)K.dyn_ltree[UA*2]=0;for(UA=0;UA<O;UA++)K.dyn_dtree[UA*2]=0;for(UA=0;UA<gA;UA++)K.bl_tree[UA*2]=0;K.dyn_ltree[X*2]=1,K.opt_len=K.static_len=0,K.last_lit=K.matches=0}function uA(K){K.bi_valid>8?C(K,K.bi_buf):K.bi_valid>0&&(K.pending_buf[K.pending++]=K.bi_buf),K.bi_buf=0,K.bi_valid=0}function CA(K,UA,se,Me){uA(K),C(K,se),C(K,~se),A.arraySet(K.pending_buf,K.window,UA,se,K.pending),K.pending+=se}function $A(K,UA,se,Me){var te=UA*2,Qe=se*2;return K[te]<K[Qe]||K[te]===K[Qe]&&Me[UA]<=Me[se]}function ZA(K,UA,se){for(var Me=K.heap[se],te=se<<1;te<=K.heap_len&&(te<K.heap_len&&$A(UA,K.heap[te+1],K.heap[te],K.depth)&&te++,!$A(UA,Me,K.heap[te],K.depth));)K.heap[se]=K.heap[te],se=te,te<<=1;K.heap[se]=Me}function kA(K,UA,se){var Me,te,Qe=0,vA,me;if(K.last_lit!==0)do Me=K.pending_buf[K.d_buf+Qe*2]<<8|K.pending_buf[K.d_buf+Qe*2+1],te=K.pending_buf[K.l_buf+Qe],Qe++,Me===0?rA(K,te,UA):(vA=zA[te],rA(K,vA+b+1,UA),me=wA[vA],me!==0&&(te-=mA[vA],lA(K,te,me)),Me--,vA=R(Me),rA(K,vA,se),me=tA[vA],me!==0&&(Me-=HA[vA],lA(K,Me,me)));while(Qe<K.last_lit);rA(K,X,UA)}function de(K,UA){var se=UA.dyn_tree,Me=UA.stat_desc.static_tree,te=UA.stat_desc.has_stree,Qe=UA.stat_desc.elems,vA,me,it=-1,AA;for(K.heap_len=0,K.heap_max=oA,vA=0;vA<Qe;vA++)se[vA*2]!==0?(K.heap[++K.heap_len]=it=vA,K.depth[vA]=0):se[vA*2+1]=0;for(;K.heap_len<2;)AA=K.heap[++K.heap_len]=it<2?++it:0,se[AA*2]=1,K.depth[AA]=0,K.opt_len--,te&&(K.static_len-=Me[AA*2+1]);for(UA.max_code=it,vA=K.heap_len>>1;vA>=1;vA--)ZA(K,se,vA);AA=Qe;do vA=K.heap[1],K.heap[1]=K.heap[K.heap_len--],ZA(K,se,1),me=K.heap[1],K.heap[--K.heap_max]=vA,K.heap[--K.heap_max]=me,se[AA*2]=se[vA*2]+se[me*2],K.depth[AA]=(K.depth[vA]>=K.depth[me]?K.depth[vA]:K.depth[me])+1,se[vA*2+1]=se[me*2+1]=AA,K.heap[1]=AA++,ZA(K,se,1);while(K.heap_len>=2);K.heap[--K.heap_max]=K.heap[1],iA(K,UA),MA(se,it,K.bl_count)}function Te(K,UA,se){var Me,te=-1,Qe,vA=UA[0*2+1],me=0,it=7,AA=4;for(vA===0&&(it=138,AA=3),UA[(se+1)*2+1]=65535,Me=0;Me<=se;Me++)Qe=vA,vA=UA[(Me+1)*2+1],!(++me<it&&Qe===vA)&&(me<AA?K.bl_tree[Qe*2]+=me:Qe!==0?(Qe!==te&&K.bl_tree[Qe*2]++,K.bl_tree[B*2]++):me<=10?K.bl_tree[v*2]++:K.bl_tree[bA*2]++,me=0,te=Qe,vA===0?(it=138,AA=3):Qe===vA?(it=6,AA=3):(it=7,AA=4))}function Re(K,UA,se){var Me,te=-1,Qe,vA=UA[0*2+1],me=0,it=7,AA=4;for(vA===0&&(it=138,AA=3),Me=0;Me<=se;Me++)if(Qe=vA,vA=UA[(Me+1)*2+1],!(++me<it&&Qe===vA)){if(me<AA)do rA(K,Qe,K.bl_tree);while(--me!==0);else Qe!==0?(Qe!==te&&(rA(K,Qe,K.bl_tree),me--),rA(K,B,K.bl_tree),lA(K,me-3,2)):me<=10?(rA(K,v,K.bl_tree),lA(K,me-3,3)):(rA(K,bA,K.bl_tree),lA(K,me-11,7));me=0,te=Qe,vA===0?(it=138,AA=3):Qe===vA?(it=6,AA=3):(it=7,AA=4)}}function ze(K){var UA;for(Te(K,K.dyn_ltree,K.l_desc.max_code),Te(K,K.dyn_dtree,K.d_desc.max_code),de(K,K.bl_desc),UA=gA-1;UA>=3&&K.bl_tree[KA[UA]*2+1]===0;UA--);return K.opt_len+=3*(UA+1)+5+5+4,UA}function We(K,UA,se,Me){var te;for(lA(K,UA-257,5),lA(K,se-1,5),lA(K,Me-4,4),te=0;te<Me;te++)lA(K,K.bl_tree[KA[te]*2+1],3);Re(K,K.dyn_ltree,UA-1),Re(K,K.dyn_dtree,se-1)}function ee(K){var UA=4093624447,se;for(se=0;se<=31;se++,UA>>>=1)if(UA&1&&K.dyn_ltree[se*2]!==0)return f;if(K.dyn_ltree[18]!==0||K.dyn_ltree[20]!==0||K.dyn_ltree[26]!==0)return h;for(se=32;se<b;se++)if(K.dyn_ltree[se*2]!==0)return h;return f}var ge=!1;function dA(K){ge||(m(),ge=!0),K.l_desc=new hA(K.dyn_ltree,NA),K.d_desc=new hA(K.dyn_dtree,IA),K.bl_desc=new hA(K.bl_tree,BA),K.bi_buf=0,K.bi_valid=0,y(K)}function k(K,UA,se,Me){lA(K,(E<<1)+(Me?1:0),3),CA(K,UA,se)}function J(K){lA(K,D<<1,3),rA(K,X,FA),G(K)}function _(K,UA,se,Me){var te,Qe,vA=0;K.level>0?(K.strm.data_type===Q&&(K.strm.data_type=ee(K)),de(K,K.l_desc),de(K,K.d_desc),vA=ze(K),te=K.opt_len+3+7>>>3,Qe=K.static_len+3+7>>>3,Qe<=te&&(te=Qe)):te=Qe=se+5,se+4<=te&&UA!==-1?k(K,UA,se,Me):K.strategy===a||Qe===te?(lA(K,(D<<1)+(Me?1:0),3),kA(K,FA,cA)):(lA(K,(Y<<1)+(Me?1:0),3),We(K,K.l_desc.max_code+1,K.d_desc.max_code+1,vA+1),kA(K,K.dyn_ltree,K.dyn_dtree)),y(K),Me&&uA(K)}function EA(K,UA,se){return K.pending_buf[K.d_buf+K.last_lit*2]=UA>>>8&255,K.pending_buf[K.d_buf+K.last_lit*2+1]=UA&255,K.pending_buf[K.l_buf+K.last_lit]=se&255,K.last_lit++,UA===0?K.dyn_ltree[se*2]++:(K.matches++,UA--,K.dyn_ltree[(zA[se]+b+1)*2]++,K.dyn_dtree[R(UA)*2]++),K.last_lit===K.lit_bufsize-1}r._tr_init=dA,r._tr_stored_block=k,r._tr_flush_block=_,r._tr_tally=EA,r._tr_align=J},7468(o){function r(){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}o.exports=r},884(o){o.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},9964(o){var r=o.exports={},t,A;function a(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=a}catch{t=a}try{typeof clearTimeout=="function"?A=clearTimeout:A=f}catch{A=f}})();function h(N){if(t===setTimeout)return setTimeout(N,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(N,0);try{return t(N,0)}catch{try{return t.call(null,N,0)}catch{return t.call(this,N,0)}}}function Q(N){if(A===clearTimeout)return clearTimeout(N);if((A===f||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(N);try{return A(N)}catch{try{return A.call(null,N)}catch{return A.call(this,N)}}}var d=[],E=!1,D,Y=-1;function z(){!E||!D||(E=!1,D.length?d=D.concat(d):Y=-1,d.length&&L())}function L(){if(!E){var N=h(z);E=!0;for(var O=d.length;O;){for(D=d,d=[];++Y<O;)D&&D[Y].run();Y=-1,O=d.length}D=null,E=!1,Q(N)}}r.nextTick=function(N){var O=new Array(arguments.length-1);if(arguments.length>1)for(var gA=1;gA<arguments.length;gA++)O[gA-1]=arguments[gA];d.push(new T(N,O)),d.length===1&&!E&&h(L)};function T(N,O){this.fun=N,this.array=O}T.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function b(){}r.on=b,r.addListener=b,r.once=b,r.off=b,r.removeListener=b,r.removeAllListeners=b,r.emit=b,r.prependListener=b,r.prependOnceListener=b,r.listeners=function(N){return[]},r.binding=function(N){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(N){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},8843(o,r,t){var A=t(2774),a=t(1689),f=A("RegExp.prototype.exec"),h=t(6785);o.exports=function(d){if(!a(d))throw new h("`regex` must be a RegExp");return function(D){return f(d,D)!==null}}},1733(o,r,t){var A=t(783).Buffer;(function(a){a.parser=function(m,y){return new h(m,y)},a.SAXParser=h,a.SAXStream=T,a.createStream=z,a.MAX_BUFFER_LENGTH=65536;var f=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(m,y){if(!(this instanceof h))return new h(m,y);var uA=this;d(uA),uA.q=uA.c="",uA.bufferCheckPosition=a.MAX_BUFFER_LENGTH,uA.encoding=null,uA.opt=y||{},uA.opt.lowercase=uA.opt.lowercase||uA.opt.lowercasetags,uA.looseCase=uA.opt.lowercase?"toLowerCase":"toUpperCase",uA.opt.maxEntityCount=uA.opt.maxEntityCount||512,uA.opt.maxEntityDepth=uA.opt.maxEntityDepth||4,uA.entityCount=uA.entityDepth=0,uA.tags=[],uA.closed=uA.closedRoot=uA.sawRoot=!1,uA.tag=uA.error=null,uA.strict=!!m,uA.noscript=!!(m||uA.opt.noscript),uA.state=nA.BEGIN,uA.strictEntities=uA.opt.strictEntities,uA.ENTITIES=uA.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),uA.attribList=[],uA.opt.xmlns&&(uA.ns=Object.create(oA)),uA.opt.unquotedAttributeValues===void 0&&(uA.opt.unquotedAttributeValues=!m),uA.trackPosition=uA.opt.position!==!1,uA.trackPosition&&(uA.position=uA.line=uA.column=0),DA(uA,"onready")}Object.create||(Object.create=function(m){function y(){}y.prototype=m;var uA=new y;return uA}),Object.keys||(Object.keys=function(m){var y=[];for(var uA in m)m.hasOwnProperty(uA)&&y.push(uA);return y});function Q(m){for(var y=Math.max(a.MAX_BUFFER_LENGTH,10),uA=0,CA=0,$A=f.length;CA<$A;CA++){var ZA=m[f[CA]].length;if(ZA>y)switch(f[CA]){case"textNode":HA(m);break;case"cdata":mA(m,"oncdata",m.cdata),m.cdata="";break;case"script":mA(m,"onscript",m.script),m.script="";break;default:NA(m,"Max buffer length exceeded: "+f[CA])}uA=Math.max(uA,ZA)}var kA=a.MAX_BUFFER_LENGTH-uA;m.bufferCheckPosition=kA+m.position}function d(m){for(var y=0,uA=f.length;y<uA;y++)m[f[y]]=""}function E(m){HA(m),m.cdata!==""&&(mA(m,"oncdata",m.cdata),m.cdata=""),m.script!==""&&(mA(m,"onscript",m.script),m.script="")}h.prototype={end:function(){IA(this)},write:MA,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var D;try{D=t(9760).Stream}catch{D=function(){}}D||(D=function(){});var Y=a.EVENTS.filter(function(m){return m!=="error"&&m!=="end"});function z(m,y){return new T(m,y)}function L(m,y){if(m.length>=2){if(m[0]===255&&m[1]===254)return"utf-16le";if(m[0]===254&&m[1]===255)return"utf-16be"}return m.length>=3&&m[0]===239&&m[1]===187&&m[2]===191?"utf8":m.length>=4?m[0]===60&&m[1]===0&&m[2]===63&&m[3]===0?"utf-16le":m[0]===0&&m[1]===60&&m[2]===0&&m[3]===63?"utf-16be":"utf8":y?"utf8":null}function T(m,y){if(!(this instanceof T))return new T(m,y);D.apply(this),this._parser=new h(m,y),this.writable=!0,this.readable=!0;var uA=this;this._parser.onend=function(){uA.emit("end")},this._parser.onerror=function(CA){uA.emit("error",CA),uA._parser.error=null},this._decoder=null,this._decoderBuffer=null,Y.forEach(function(CA){Object.defineProperty(uA,"on"+CA,{get:function(){return uA._parser["on"+CA]},set:function($A){if(!$A)return uA.removeAllListeners(CA),uA._parser["on"+CA]=$A,$A;uA.on(CA,$A)},enumerable:!0,configurable:!1})})}T.prototype=Object.create(D.prototype,{constructor:{value:T}}),T.prototype._decodeBuffer=function(m,y){if(this._decoderBuffer&&(m=A.concat([this._decoderBuffer,m]),this._decoderBuffer=null),!this._decoder){var uA=L(m,y);if(!uA)return this._decoderBuffer=m,"";this._parser.encoding=uA,this._decoder=new TextDecoder(uA)}return this._decoder.decode(m,{stream:!y})},T.prototype.write=function(m){if(typeof A=="function"&&typeof A.isBuffer=="function"&&A.isBuffer(m))m=this._decodeBuffer(m,!1);else if(this._decoderBuffer){var y=this._decodeBuffer(A.alloc(0),!0);y&&(this._parser.write(y),this.emit("data",y))}return this._parser.write(m.toString()),this.emit("data",m),!0},T.prototype.end=function(m){if(m&&m.length&&this.write(m),this._decoderBuffer){var y=this._decodeBuffer(A.alloc(0),!0);y&&(this._parser.write(y),this.emit("data",y))}else if(this._decoder){var uA=this._decoder.decode();uA&&(this._parser.write(uA),this.emit("data",uA))}return this._parser.end(),!0},T.prototype.on=function(m,y){var uA=this;return!uA._parser["on"+m]&&Y.indexOf(m)!==-1&&(uA._parser["on"+m]=function(){var CA=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);CA.splice(0,0,m),uA.emit.apply(uA,CA)}),D.prototype.on.call(uA,m,y)};var b="[CDATA[",N="DOCTYPE",O="http://www.w3.org/XML/1998/namespace",gA="http://www.w3.org/2000/xmlns/",oA={xml:O,xmlns:gA},q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Z=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,X=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function B(m){return m===" "||m===`
`||m==="\r"||m==="	"}function v(m){return m==='"'||m==="'"}function bA(m){return m===">"||B(m)}function wA(m,y){return m.test(y)}function tA(m,y){return!wA(m,y)}var nA=0;a.STATE={BEGIN:nA++,BEGIN_WHITESPACE:nA++,TEXT:nA++,TEXT_ENTITY:nA++,OPEN_WAKA:nA++,SGML_DECL:nA++,SGML_DECL_QUOTED:nA++,DOCTYPE:nA++,DOCTYPE_QUOTED:nA++,DOCTYPE_DTD:nA++,DOCTYPE_DTD_QUOTED:nA++,COMMENT_STARTING:nA++,COMMENT:nA++,COMMENT_ENDING:nA++,COMMENT_ENDED:nA++,CDATA:nA++,CDATA_ENDING:nA++,CDATA_ENDING_2:nA++,PROC_INST:nA++,PROC_INST_BODY:nA++,PROC_INST_ENDING:nA++,OPEN_TAG:nA++,OPEN_TAG_SLASH:nA++,ATTRIB:nA++,ATTRIB_NAME:nA++,ATTRIB_NAME_SAW_WHITE:nA++,ATTRIB_VALUE:nA++,ATTRIB_VALUE_QUOTED:nA++,ATTRIB_VALUE_CLOSED:nA++,ATTRIB_VALUE_UNQUOTED:nA++,ATTRIB_VALUE_ENTITY_Q:nA++,ATTRIB_VALUE_ENTITY_U:nA++,CLOSE_TAG:nA++,CLOSE_TAG_SAW_WHITE:nA++,SCRIPT:nA++,SCRIPT_ENDING:nA++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(a.ENTITIES).forEach(function(m){var y=a.ENTITIES[m],uA=typeof y=="number"?String.fromCharCode(y):y;a.ENTITIES[m]=uA});for(var KA in a.STATE)a.STATE[a.STATE[KA]]=KA;nA=a.STATE;function DA(m,y,uA){m[y]&&m[y](uA)}function FA(m){var y=m&&m.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return y?y[2]:null}function cA(m){return m?m.toLowerCase().replace(/[^a-z0-9]/g,""):null}function yA(m,y){const uA=cA(m),CA=cA(y);return!uA||!CA?!0:CA==="utf16"?uA==="utf16le"||uA==="utf16be":uA===CA}function zA(m,y){if(!(!m.strict||!m.encoding||!y||y.name!=="xml")){var uA=FA(y.body);uA&&!yA(m.encoding,uA)&&BA(m,"XML declaration encoding "+uA+" does not match detected stream encoding "+m.encoding.toUpperCase())}}function mA(m,y,uA){m.textNode&&HA(m),DA(m,y,uA)}function HA(m){m.textNode=pA(m.opt,m.textNode),m.textNode&&DA(m,"ontext",m.textNode),m.textNode=""}function pA(m,y){return m.trim&&(y=y.trim()),m.normalize&&(y=y.replace(/\s+/g," ")),y}function NA(m,y){return HA(m),m.trackPosition&&(y+=`
Line: `+m.line+`
Column: `+m.column+`
Char: `+m.c),y=new Error(y),m.error=y,DA(m,"onerror",y),m}function IA(m){return m.sawRoot&&!m.closedRoot&&BA(m,"Unclosed root tag"),m.state!==nA.BEGIN&&m.state!==nA.BEGIN_WHITESPACE&&m.state!==nA.TEXT&&NA(m,"Unexpected end"),HA(m),m.c="",m.closed=!0,DA(m,"onend"),h.call(m,m.strict,m.opt),m}function BA(m,y){if(typeof m!="object"||!(m instanceof h))throw new Error("bad call to strictFail");m.strict&&NA(m,y)}function hA(m){m.strict||(m.tagName=m.tagName[m.looseCase]());var y=m.tags[m.tags.length-1]||m,uA=m.tag={name:m.tagName,attributes:{}};m.opt.xmlns&&(uA.ns=y.ns),m.attribList.length=0,mA(m,"onopentagstart",uA)}function R(m,y){var uA=m.indexOf(":"),CA=uA<0?["",m]:m.split(":"),$A=CA[0],ZA=CA[1];return y&&m==="xmlns"&&($A="xmlns",ZA=""),{prefix:$A,local:ZA}}function C(m){if(m.strict||(m.attribName=m.attribName[m.looseCase]()),m.attribList.indexOf(m.attribName)!==-1||m.tag.attributes.hasOwnProperty(m.attribName)){m.attribName=m.attribValue="";return}if(m.opt.xmlns){var y=R(m.attribName,!0),uA=y.prefix,CA=y.local;if(uA==="xmlns")if(CA==="xml"&&m.attribValue!==O)BA(m,"xml: prefix must be bound to "+O+`
Actual: `+m.attribValue);else if(CA==="xmlns"&&m.attribValue!==gA)BA(m,"xmlns: prefix must be bound to "+gA+`
Actual: `+m.attribValue);else{var $A=m.tag,ZA=m.tags[m.tags.length-1]||m;$A.ns===ZA.ns&&($A.ns=Object.create(ZA.ns)),$A.ns[CA]=m.attribValue}m.attribList.push([m.attribName,m.attribValue])}else m.tag.attributes[m.attribName]=m.attribValue,mA(m,"onattribute",{name:m.attribName,value:m.attribValue});m.attribName=m.attribValue=""}function lA(m,y){if(m.opt.xmlns){var uA=m.tag,CA=R(m.tagName);uA.prefix=CA.prefix,uA.local=CA.local,uA.uri=uA.ns[CA.prefix]||"",uA.prefix&&!uA.uri&&(BA(m,"Unbound namespace prefix: "+JSON.stringify(m.tagName)),uA.uri=CA.prefix);var $A=m.tags[m.tags.length-1]||m;uA.ns&&$A.ns!==uA.ns&&Object.keys(uA.ns).forEach(function(k){mA(m,"onopennamespace",{prefix:k,uri:uA.ns[k]})});for(var ZA=0,kA=m.attribList.length;ZA<kA;ZA++){var de=m.attribList[ZA],Te=de[0],Re=de[1],ze=R(Te,!0),We=ze.prefix,ee=ze.local,ge=We===""?"":uA.ns[We]||"",dA={name:Te,value:Re,prefix:We,local:ee,uri:ge};We&&We!=="xmlns"&&!ge&&(BA(m,"Unbound namespace prefix: "+JSON.stringify(We)),dA.uri=We),m.tag.attributes[Te]=dA,mA(m,"onattribute",dA)}m.attribList.length=0}m.tag.isSelfClosing=!!y,m.sawRoot=!0,m.tags.push(m.tag),mA(m,"onopentag",m.tag),y||(!m.noscript&&m.tagName.toLowerCase()==="script"?m.state=nA.SCRIPT:m.state=nA.TEXT,m.tag=null,m.tagName=""),m.attribName=m.attribValue="",m.attribList.length=0}function rA(m){if(!m.tagName){BA(m,"Weird empty close tag."),m.textNode+="</>",m.state=nA.TEXT;return}if(m.script){if(m.tagName!=="script"){m.script+="</"+m.tagName+">",m.tagName="",m.state=nA.SCRIPT;return}mA(m,"onscript",m.script),m.script=""}var y=m.tags.length,uA=m.tagName;m.strict||(uA=uA[m.looseCase]());for(var CA=uA;y--;){var $A=m.tags[y];if($A.name!==CA)BA(m,"Unexpected close tag");else break}if(y<0){BA(m,"Unmatched closing tag: "+m.tagName),m.textNode+="</"+m.tagName+">",m.state=nA.TEXT;return}m.tagName=uA;for(var ZA=m.tags.length;ZA-- >y;){var kA=m.tag=m.tags.pop();m.tagName=m.tag.name,mA(m,"onclosetag",m.tagName);var de={};for(var Te in kA.ns)de[Te]=kA.ns[Te];var Re=m.tags[m.tags.length-1]||m;m.opt.xmlns&&kA.ns!==Re.ns&&Object.keys(kA.ns).forEach(function(ze){var We=kA.ns[ze];mA(m,"onclosenamespace",{prefix:ze,uri:We})})}y===0&&(m.closedRoot=!0),m.tagName=m.attribValue=m.attribName="",m.attribList.length=0,m.state=nA.TEXT}function p(m){var y=m.entity,uA=y.toLowerCase(),CA,$A="";return m.ENTITIES[y]?m.ENTITIES[y]:m.ENTITIES[uA]?m.ENTITIES[uA]:(y=uA,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),CA=parseInt(y,16),$A=CA.toString(16)):(y=y.slice(1),CA=parseInt(y,10),$A=CA.toString(10))),y=y.replace(/^0+/,""),isNaN(CA)||$A.toLowerCase()!==y||CA<0||CA>1114111?(BA(m,"Invalid character entity"),"&"+m.entity+";"):String.fromCodePoint(CA))}function G(m,y){y==="<"?(m.state=nA.OPEN_WAKA,m.startTagPosition=m.position):B(y)||(BA(m,"Non-whitespace before first tag."),m.textNode=y,m.state=nA.TEXT)}function iA(m,y){var uA="";return y<m.length&&(uA=m.charAt(y)),uA}function MA(m){var y=this;if(this.error)throw this.error;if(y.closed)return NA(y,"Cannot write after close. Assign an onready handler.");if(m===null)return IA(y);typeof m=="object"&&(m=m.toString());for(var uA=0,CA="";CA=iA(m,uA++),y.c=CA,!!CA;)switch(y.trackPosition&&(y.position++,CA===`
`?(y.line++,y.column=0):y.column++),y.state){case nA.BEGIN:if(y.state=nA.BEGIN_WHITESPACE,CA==="\uFEFF")continue;G(y,CA);continue;case nA.BEGIN_WHITESPACE:G(y,CA);continue;case nA.TEXT:if(y.sawRoot&&!y.closedRoot){for(var ZA=uA-1;CA&&CA!=="<"&&CA!=="&";)CA=iA(m,uA++),CA&&y.trackPosition&&(y.position++,CA===`
`?(y.line++,y.column=0):y.column++);y.textNode+=m.substring(ZA,uA-1)}CA==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=nA.OPEN_WAKA,y.startTagPosition=y.position):(!B(CA)&&(!y.sawRoot||y.closedRoot)&&BA(y,"Text data outside of root node."),CA==="&"?y.state=nA.TEXT_ENTITY:y.textNode+=CA);continue;case nA.SCRIPT:CA==="<"?y.state=nA.SCRIPT_ENDING:y.script+=CA;continue;case nA.SCRIPT_ENDING:CA==="/"?y.state=nA.CLOSE_TAG:(y.script+="<"+CA,y.state=nA.SCRIPT);continue;case nA.OPEN_WAKA:if(CA==="!")y.state=nA.SGML_DECL,y.sgmlDecl="";else if(!B(CA))if(wA(q,CA))y.state=nA.OPEN_TAG,y.tagName=CA;else if(CA==="/")y.state=nA.CLOSE_TAG,y.tagName="";else if(CA==="?")y.state=nA.PROC_INST,y.procInstName=y.procInstBody="";else{if(BA(y,"Unencoded <"),y.startTagPosition+1<y.position){var $A=y.position-y.startTagPosition;CA=new Array($A).join(" ")+CA}y.textNode+="<"+CA,y.state=nA.TEXT}continue;case nA.SGML_DECL:if(y.sgmlDecl+CA==="--"){y.state=nA.COMMENT,y.comment="",y.sgmlDecl="";continue}y.doctype&&y.doctype!==!0&&y.sgmlDecl?(y.state=nA.DOCTYPE_DTD,y.doctype+="<!"+y.sgmlDecl+CA,y.sgmlDecl=""):(y.sgmlDecl+CA).toUpperCase()===b?(mA(y,"onopencdata"),y.state=nA.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+CA).toUpperCase()===N?(y.state=nA.DOCTYPE,(y.doctype||y.sawRoot)&&BA(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):CA===">"?(mA(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=nA.TEXT):(v(CA)&&(y.state=nA.SGML_DECL_QUOTED),y.sgmlDecl+=CA);continue;case nA.SGML_DECL_QUOTED:CA===y.q&&(y.state=nA.SGML_DECL,y.q=""),y.sgmlDecl+=CA;continue;case nA.DOCTYPE:CA===">"?(y.state=nA.TEXT,mA(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=CA,CA==="["?y.state=nA.DOCTYPE_DTD:v(CA)&&(y.state=nA.DOCTYPE_QUOTED,y.q=CA));continue;case nA.DOCTYPE_QUOTED:y.doctype+=CA,CA===y.q&&(y.q="",y.state=nA.DOCTYPE);continue;case nA.DOCTYPE_DTD:CA==="]"?(y.doctype+=CA,y.state=nA.DOCTYPE):CA==="<"?(y.state=nA.OPEN_WAKA,y.startTagPosition=y.position):v(CA)?(y.doctype+=CA,y.state=nA.DOCTYPE_DTD_QUOTED,y.q=CA):y.doctype+=CA;continue;case nA.DOCTYPE_DTD_QUOTED:y.doctype+=CA,CA===y.q&&(y.state=nA.DOCTYPE_DTD,y.q="");continue;case nA.COMMENT:CA==="-"?y.state=nA.COMMENT_ENDING:y.comment+=CA;continue;case nA.COMMENT_ENDING:CA==="-"?(y.state=nA.COMMENT_ENDED,y.comment=pA(y.opt,y.comment),y.comment&&mA(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+CA,y.state=nA.COMMENT);continue;case nA.COMMENT_ENDED:CA!==">"?(BA(y,"Malformed comment"),y.comment+="--"+CA,y.state=nA.COMMENT):y.doctype&&y.doctype!==!0?y.state=nA.DOCTYPE_DTD:y.state=nA.TEXT;continue;case nA.CDATA:for(var ZA=uA-1;CA&&CA!=="]";)CA=iA(m,uA++),CA&&y.trackPosition&&(y.position++,CA===`
`?(y.line++,y.column=0):y.column++);y.cdata+=m.substring(ZA,uA-1),CA==="]"&&(y.state=nA.CDATA_ENDING);continue;case nA.CDATA_ENDING:CA==="]"?y.state=nA.CDATA_ENDING_2:(y.cdata+="]"+CA,y.state=nA.CDATA);continue;case nA.CDATA_ENDING_2:CA===">"?(y.cdata&&mA(y,"oncdata",y.cdata),mA(y,"onclosecdata"),y.cdata="",y.state=nA.TEXT):CA==="]"?y.cdata+="]":(y.cdata+="]]"+CA,y.state=nA.CDATA);continue;case nA.PROC_INST:CA==="?"?y.state=nA.PROC_INST_ENDING:B(CA)?y.state=nA.PROC_INST_BODY:y.procInstName+=CA;continue;case nA.PROC_INST_BODY:if(!y.procInstBody&&B(CA))continue;CA==="?"?y.state=nA.PROC_INST_ENDING:y.procInstBody+=CA;continue;case nA.PROC_INST_ENDING:if(CA===">"){const Re={name:y.procInstName,body:y.procInstBody};zA(y,Re),mA(y,"onprocessinginstruction",Re),y.procInstName=y.procInstBody="",y.state=nA.TEXT}else y.procInstBody+="?"+CA,y.state=nA.PROC_INST_BODY;continue;case nA.OPEN_TAG:wA(Z,CA)?y.tagName+=CA:(hA(y),CA===">"?lA(y):CA==="/"?y.state=nA.OPEN_TAG_SLASH:(B(CA)||BA(y,"Invalid character in tag name"),y.state=nA.ATTRIB));continue;case nA.OPEN_TAG_SLASH:CA===">"?(lA(y,!0),rA(y)):(BA(y,"Forward-slash in opening tag not followed by >"),y.state=nA.ATTRIB);continue;case nA.ATTRIB:if(B(CA))continue;CA===">"?lA(y):CA==="/"?y.state=nA.OPEN_TAG_SLASH:wA(q,CA)?(y.attribName=CA,y.attribValue="",y.state=nA.ATTRIB_NAME):BA(y,"Invalid attribute name");continue;case nA.ATTRIB_NAME:CA==="="?y.state=nA.ATTRIB_VALUE:CA===">"?(BA(y,"Attribute without value"),y.attribValue=y.attribName,C(y),lA(y)):B(CA)?y.state=nA.ATTRIB_NAME_SAW_WHITE:wA(Z,CA)?y.attribName+=CA:BA(y,"Invalid attribute name");continue;case nA.ATTRIB_NAME_SAW_WHITE:if(CA==="=")y.state=nA.ATTRIB_VALUE;else{if(B(CA))continue;BA(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",mA(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",CA===">"?lA(y):wA(q,CA)?(y.attribName=CA,y.state=nA.ATTRIB_NAME):(BA(y,"Invalid attribute name"),y.state=nA.ATTRIB)}continue;case nA.ATTRIB_VALUE:if(B(CA))continue;v(CA)?(y.q=CA,y.state=nA.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||NA(y,"Unquoted attribute value"),y.state=nA.ATTRIB_VALUE_UNQUOTED,y.attribValue=CA);continue;case nA.ATTRIB_VALUE_QUOTED:if(CA!==y.q){CA==="&"?y.state=nA.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=CA;continue}C(y),y.q="",y.state=nA.ATTRIB_VALUE_CLOSED;continue;case nA.ATTRIB_VALUE_CLOSED:B(CA)?y.state=nA.ATTRIB:CA===">"?lA(y):CA==="/"?y.state=nA.OPEN_TAG_SLASH:wA(q,CA)?(BA(y,"No whitespace between attributes"),y.attribName=CA,y.attribValue="",y.state=nA.ATTRIB_NAME):BA(y,"Invalid attribute name");continue;case nA.ATTRIB_VALUE_UNQUOTED:if(!bA(CA)){CA==="&"?y.state=nA.ATTRIB_VALUE_ENTITY_U:y.attribValue+=CA;continue}C(y),CA===">"?lA(y):y.state=nA.ATTRIB;continue;case nA.CLOSE_TAG:if(y.tagName)CA===">"?rA(y):wA(Z,CA)?y.tagName+=CA:y.script?(y.script+="</"+y.tagName+CA,y.tagName="",y.state=nA.SCRIPT):(B(CA)||BA(y,"Invalid tagname in closing tag"),y.state=nA.CLOSE_TAG_SAW_WHITE);else{if(B(CA))continue;tA(q,CA)?y.script?(y.script+="</"+CA,y.state=nA.SCRIPT):BA(y,"Invalid tagname in closing tag."):y.tagName=CA}continue;case nA.CLOSE_TAG_SAW_WHITE:if(B(CA))continue;CA===">"?rA(y):BA(y,"Invalid characters in closing tag");continue;case nA.TEXT_ENTITY:case nA.ATTRIB_VALUE_ENTITY_Q:case nA.ATTRIB_VALUE_ENTITY_U:var kA,de;switch(y.state){case nA.TEXT_ENTITY:kA=nA.TEXT,de="textNode";break;case nA.ATTRIB_VALUE_ENTITY_Q:kA=nA.ATTRIB_VALUE_QUOTED,de="attribValue";break;case nA.ATTRIB_VALUE_ENTITY_U:kA=nA.ATTRIB_VALUE_UNQUOTED,de="attribValue";break}if(CA===";"){var Te=p(y);y.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(Te)?((y.entityCount+=1)>y.opt.maxEntityCount&&NA(y,"Parsed entity count exceeds max entity count"),(y.entityDepth+=1)>y.opt.maxEntityDepth&&NA(y,"Parsed entity depth exceeds max entity depth"),y.entity="",y.state=kA,y.write(Te),y.entityDepth-=1):(y[de]+=Te,y.entity="",y.state=kA)}else wA(y.entity.length?X:x,CA)?y.entity+=CA:(BA(y,"Invalid character in entity name"),y[de]+="&"+y.entity+CA,y.entity="",y.state=kA);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&Q(y),y}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var m=String.fromCharCode,y=Math.floor,uA=function(){var CA=16384,$A=[],ZA,kA,de=-1,Te=arguments.length;if(!Te)return"";for(var Re="";++de<Te;){var ze=Number(arguments[de]);if(!isFinite(ze)||ze<0||ze>1114111||y(ze)!==ze)throw RangeError("Invalid code point: "+ze);ze<=65535?$A.push(ze):(ze-=65536,ZA=(ze>>10)+55296,kA=ze%1024+56320,$A.push(ZA,kA)),(de+1===Te||$A.length>CA)&&(Re+=m.apply(null,$A),$A.length=0)}return Re};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:uA,configurable:!0,writable:!0}):String.fromCodePoint=uA}()})(r)},6255(o,r,t){var A=t(8651),a=t(9295),f=t(8890)(),h=t(8109),Q=t(6785),d=A("%Math.floor%");o.exports=function(D,Y){if(typeof D!="function")throw new Q("`fn` is not a function");if(typeof Y!="number"||Y<0||Y>4294967295||d(Y)!==Y)throw new Q("`length` must be a positive 32-bit integer");var z=arguments.length>2&&!!arguments[2],L=!0,T=!0;if("length"in D&&h){var b=h(D,"length");b&&!b.configurable&&(L=!1),b&&!b.writable&&(T=!1)}return(L||T||!z)&&(f?a(D,"length",Y,!0,!0):a(D,"length",Y)),D}},9760(o,r,t){o.exports=f;var A=t(4785).EventEmitter,a=t(9784);a(f,A),f.Readable=t(8261),f.Writable=t(9781),f.Duplex=t(4903),f.Transform=t(8569),f.PassThrough=t(7723),f.finished=t(2167),f.pipeline=t(3765),f.Stream=f;function f(){A.call(this)}f.prototype.pipe=function(h,Q){var d=this;function E(N){h.writable&&h.write(N)===!1&&d.pause&&d.pause()}d.on("data",E);function D(){d.readable&&d.resume&&d.resume()}h.on("drain",D),!h._isStdio&&(!Q||Q.end!==!1)&&(d.on("end",z),d.on("close",L));var Y=!1;function z(){Y||(Y=!0,h.end())}function L(){Y||(Y=!0,typeof h.destroy=="function"&&h.destroy())}function T(N){if(b(),A.listenerCount(this,"error")===0)throw N}d.on("error",T),h.on("error",T);function b(){d.removeListener("data",E),h.removeListener("drain",D),d.removeListener("end",z),d.removeListener("close",L),d.removeListener("error",T),h.removeListener("error",T),d.removeListener("end",b),d.removeListener("close",b),h.removeListener("close",b)}return d.on("end",b),d.on("close",b),h.on("close",b),h.emit("pipe",d),h}},3797(o){function r(d,E){d.prototype=Object.create(E.prototype),d.prototype.constructor=d,d.__proto__=E}var t={};function A(d,E,D){D||(D=Error);function Y(L,T,b){return typeof E=="string"?E:E(L,T,b)}var z=function(L){r(T,L);function T(b,N,O){return L.call(this,Y(b,N,O))||this}return T}(D);z.prototype.name=D.name,z.prototype.code=d,t[d]=z}function a(d,E){if(Array.isArray(d)){var D=d.length;return d=d.map(function(Y){return String(Y)}),D>2?"one of ".concat(E," ").concat(d.slice(0,D-1).join(", "),", or ")+d[D-1]:D===2?"one of ".concat(E," ").concat(d[0]," or ").concat(d[1]):"of ".concat(E," ").concat(d[0])}else return"of ".concat(E," ").concat(String(d))}function f(d,E,D){return d.substr(0,E.length)===E}function h(d,E,D){return(D===void 0||D>d.length)&&(D=d.length),d.substring(D-E.length,D)===E}function Q(d,E,D){return typeof D!="number"&&(D=0),D+E.length>d.length?!1:d.indexOf(E,D)!==-1}A("ERR_INVALID_OPT_VALUE",function(d,E){return'The value "'+E+'" is invalid for option "'+d+'"'},TypeError),A("ERR_INVALID_ARG_TYPE",function(d,E,D){var Y;typeof E=="string"&&f(E,"not ")?(Y="must not be",E=E.replace(/^not /,"")):Y="must be";var z;if(h(d," argument"))z="The ".concat(d," ").concat(Y," ").concat(a(E,"type"));else{var L=Q(d,".")?"property":"argument";z='The "'.concat(d,'" ').concat(L," ").concat(Y," ").concat(a(E,"type"))}return z+=". Received type ".concat(typeof D),z},TypeError),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),A("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),A("ERR_STREAM_PREMATURE_CLOSE","Premature close"),A("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),A("ERR_STREAM_WRITE_AFTER_END","write after end"),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.F=t},4903(o,r,t){var A=t(9964),a=Object.keys||function(L){var T=[];for(var b in L)T.push(b);return T};o.exports=D;var f=t(8261),h=t(9781);t(9784)(D,f);for(var Q=a(h.prototype),d=0;d<Q.length;d++){var E=Q[d];D.prototype[E]||(D.prototype[E]=h.prototype[E])}function D(L){if(!(this instanceof D))return new D(L);f.call(this,L),h.call(this,L),this.allowHalfOpen=!0,L&&(L.readable===!1&&(this.readable=!1),L.writable===!1&&(this.writable=!1),L.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Y)))}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Y(){this._writableState.ended||A.nextTick(z,this)}function z(L){L.end()}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=T,this._writableState.destroyed=T)}})},7723(o,r,t){o.exports=a;var A=t(8569);t(9784)(a,A);function a(f){if(!(this instanceof a))return new a(f);A.call(this,f)}a.prototype._transform=function(f,h,Q){Q(null,f)}},8261(o,r,t){var A=t(9964);o.exports=nA;var a;nA.ReadableState=tA,t(4785).EventEmitter;var f=function(y,uA){return y.listeners(uA).length},h=t(9018),Q=t(783).Buffer,d=(typeof t.g<"u"?t.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E(m){return Q.from(m)}function D(m){return Q.isBuffer(m)||m instanceof d}var Y=t(7199),z;Y&&Y.debuglog?z=Y.debuglog("stream"):z=function(){};var L=t(182),T=t(7385),b=t(8130),N=b.getHighWaterMark,O=t(3797).F,gA=O.ERR_INVALID_ARG_TYPE,oA=O.ERR_STREAM_PUSH_AFTER_EOF,q=O.ERR_METHOD_NOT_IMPLEMENTED,Z=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,X,B;t(9784)(nA,h);var v=T.errorOrDestroy,bA=["error","close","destroy","pause","resume"];function wA(m,y,uA){if(typeof m.prependListener=="function")return m.prependListener(y,uA);!m._events||!m._events[y]?m.on(y,uA):Array.isArray(m._events[y])?m._events[y].unshift(uA):m._events[y]=[uA,m._events[y]]}function tA(m,y,uA){a=a||t(4903),m=m||{},typeof uA!="boolean"&&(uA=y instanceof a),this.objectMode=!!m.objectMode,uA&&(this.objectMode=this.objectMode||!!m.readableObjectMode),this.highWaterMark=N(this,m,"readableHighWaterMark",uA),this.buffer=new L,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=m.emitClose!==!1,this.autoDestroy=!!m.autoDestroy,this.destroyed=!1,this.defaultEncoding=m.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,m.encoding&&(x||(x=t(3143).I),this.decoder=new x(m.encoding),this.encoding=m.encoding)}function nA(m){if(a=a||t(4903),!(this instanceof nA))return new nA(m);var y=this instanceof a;this._readableState=new tA(m,this,y),this.readable=!0,m&&(typeof m.read=="function"&&(this._read=m.read),typeof m.destroy=="function"&&(this._destroy=m.destroy)),h.call(this)}Object.defineProperty(nA.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),nA.prototype.destroy=T.destroy,nA.prototype._undestroy=T.undestroy,nA.prototype._destroy=function(m,y){y(m)},nA.prototype.push=function(m,y){var uA=this._readableState,CA;return uA.objectMode?CA=!0:typeof m=="string"&&(y=y||uA.defaultEncoding,y!==uA.encoding&&(m=Q.from(m,y),y=""),CA=!0),KA(this,m,y,!1,CA)},nA.prototype.unshift=function(m){return KA(this,m,null,!0,!1)};function KA(m,y,uA,CA,$A){z("readableAddChunk",y);var ZA=m._readableState;if(y===null)ZA.reading=!1,mA(m,ZA);else{var kA;if($A||(kA=FA(ZA,y)),kA)v(m,kA);else if(ZA.objectMode||y&&y.length>0)if(typeof y!="string"&&!ZA.objectMode&&Object.getPrototypeOf(y)!==Q.prototype&&(y=E(y)),CA)ZA.endEmitted?v(m,new Z):DA(m,ZA,y,!0);else if(ZA.ended)v(m,new oA);else{if(ZA.destroyed)return!1;ZA.reading=!1,ZA.decoder&&!uA?(y=ZA.decoder.write(y),ZA.objectMode||y.length!==0?DA(m,ZA,y,!1):NA(m,ZA)):DA(m,ZA,y,!1)}else CA||(ZA.reading=!1,NA(m,ZA))}return!ZA.ended&&(ZA.length<ZA.highWaterMark||ZA.length===0)}function DA(m,y,uA,CA){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,m.emit("data",uA)):(y.length+=y.objectMode?1:uA.length,CA?y.buffer.unshift(uA):y.buffer.push(uA),y.needReadable&&HA(m)),NA(m,y)}function FA(m,y){var uA;return!D(y)&&typeof y!="string"&&y!==void 0&&!m.objectMode&&(uA=new gA("chunk",["string","Buffer","Uint8Array"],y)),uA}nA.prototype.isPaused=function(){return this._readableState.flowing===!1},nA.prototype.setEncoding=function(m){x||(x=t(3143).I);var y=new x(m);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var uA=this._readableState.buffer.head,CA="";uA!==null;)CA+=y.write(uA.data),uA=uA.next;return this._readableState.buffer.clear(),CA!==""&&this._readableState.buffer.push(CA),this._readableState.length=CA.length,this};var cA=1073741824;function yA(m){return m>=cA?m=cA:(m--,m|=m>>>1,m|=m>>>2,m|=m>>>4,m|=m>>>8,m|=m>>>16,m++),m}function zA(m,y){return m<=0||y.length===0&&y.ended?0:y.objectMode?1:m!==m?y.flowing&&y.length?y.buffer.head.data.length:y.length:(m>y.highWaterMark&&(y.highWaterMark=yA(m)),m<=y.length?m:y.ended?y.length:(y.needReadable=!0,0))}nA.prototype.read=function(m){z("read",m),m=parseInt(m,10);var y=this._readableState,uA=m;if(m!==0&&(y.emittedReadable=!1),m===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return z("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?G(this):HA(this),null;if(m=zA(m,y),m===0&&y.ended)return y.length===0&&G(this),null;var CA=y.needReadable;z("need readable",CA),(y.length===0||y.length-m<y.highWaterMark)&&(CA=!0,z("length less than watermark",CA)),y.ended||y.reading?(CA=!1,z("reading or ended",CA)):CA&&(z("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(m=zA(uA,y)));var $A;return m>0?$A=p(m,y):$A=null,$A===null?(y.needReadable=y.length<=y.highWaterMark,m=0):(y.length-=m,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),uA!==m&&y.ended&&G(this)),$A!==null&&this.emit("data",$A),$A};function mA(m,y){if(z("onEofChunk"),!y.ended){if(y.decoder){var uA=y.decoder.end();uA&&uA.length&&(y.buffer.push(uA),y.length+=y.objectMode?1:uA.length)}y.ended=!0,y.sync?HA(m):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,pA(m)))}}function HA(m){var y=m._readableState;z("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(z("emitReadable",y.flowing),y.emittedReadable=!0,A.nextTick(pA,m))}function pA(m){var y=m._readableState;z("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(m.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,rA(m)}function NA(m,y){y.readingMore||(y.readingMore=!0,A.nextTick(IA,m,y))}function IA(m,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var uA=y.length;if(z("maybeReadMore read 0"),m.read(0),uA===y.length)break}y.readingMore=!1}nA.prototype._read=function(m){v(this,new q("_read()"))},nA.prototype.pipe=function(m,y){var uA=this,CA=this._readableState;switch(CA.pipesCount){case 0:CA.pipes=m;break;case 1:CA.pipes=[CA.pipes,m];break;default:CA.pipes.push(m);break}CA.pipesCount+=1,z("pipe count=%d opts=%j",CA.pipesCount,y);var $A=(!y||y.end!==!1)&&m!==A.stdout&&m!==A.stderr,ZA=$A?de:k;CA.endEmitted?A.nextTick(ZA):uA.once("end",ZA),m.on("unpipe",kA);function kA(J,_){z("onunpipe"),J===uA&&_&&_.hasUnpiped===!1&&(_.hasUnpiped=!0,ze())}function de(){z("onend"),m.end()}var Te=BA(uA);m.on("drain",Te);var Re=!1;function ze(){z("cleanup"),m.removeListener("close",ge),m.removeListener("finish",dA),m.removeListener("drain",Te),m.removeListener("error",ee),m.removeListener("unpipe",kA),uA.removeListener("end",de),uA.removeListener("end",k),uA.removeListener("data",We),Re=!0,CA.awaitDrain&&(!m._writableState||m._writableState.needDrain)&&Te()}uA.on("data",We);function We(J){z("ondata");var _=m.write(J);z("dest.write",_),_===!1&&((CA.pipesCount===1&&CA.pipes===m||CA.pipesCount>1&&MA(CA.pipes,m)!==-1)&&!Re&&(z("false write response, pause",CA.awaitDrain),CA.awaitDrain++),uA.pause())}function ee(J){z("onerror",J),k(),m.removeListener("error",ee),f(m,"error")===0&&v(m,J)}wA(m,"error",ee);function ge(){m.removeListener("finish",dA),k()}m.once("close",ge);function dA(){z("onfinish"),m.removeListener("close",ge),k()}m.once("finish",dA);function k(){z("unpipe"),uA.unpipe(m)}return m.emit("pipe",uA),CA.flowing||(z("pipe resume"),uA.resume()),m};function BA(m){return function(){var uA=m._readableState;z("pipeOnDrain",uA.awaitDrain),uA.awaitDrain&&uA.awaitDrain--,uA.awaitDrain===0&&f(m,"data")&&(uA.flowing=!0,rA(m))}}nA.prototype.unpipe=function(m){var y=this._readableState,uA={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return m&&m!==y.pipes?this:(m||(m=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,m&&m.emit("unpipe",this,uA),this);if(!m){var CA=y.pipes,$A=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var ZA=0;ZA<$A;ZA++)CA[ZA].emit("unpipe",this,{hasUnpiped:!1});return this}var kA=MA(y.pipes,m);return kA===-1?this:(y.pipes.splice(kA,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),m.emit("unpipe",this,uA),this)},nA.prototype.on=function(m,y){var uA=h.prototype.on.call(this,m,y),CA=this._readableState;return m==="data"?(CA.readableListening=this.listenerCount("readable")>0,CA.flowing!==!1&&this.resume()):m==="readable"&&!CA.endEmitted&&!CA.readableListening&&(CA.readableListening=CA.needReadable=!0,CA.flowing=!1,CA.emittedReadable=!1,z("on readable",CA.length,CA.reading),CA.length?HA(this):CA.reading||A.nextTick(R,this)),uA},nA.prototype.addListener=nA.prototype.on,nA.prototype.removeListener=function(m,y){var uA=h.prototype.removeListener.call(this,m,y);return m==="readable"&&A.nextTick(hA,this),uA},nA.prototype.removeAllListeners=function(m){var y=h.prototype.removeAllListeners.apply(this,arguments);return(m==="readable"||m===void 0)&&A.nextTick(hA,this),y};function hA(m){var y=m._readableState;y.readableListening=m.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:m.listenerCount("data")>0&&m.resume()}function R(m){z("readable nexttick read 0"),m.read(0)}nA.prototype.resume=function(){var m=this._readableState;return m.flowing||(z("resume"),m.flowing=!m.readableListening,C(this,m)),m.paused=!1,this};function C(m,y){y.resumeScheduled||(y.resumeScheduled=!0,A.nextTick(lA,m,y))}function lA(m,y){z("resume",y.reading),y.reading||m.read(0),y.resumeScheduled=!1,m.emit("resume"),rA(m),y.flowing&&!y.reading&&m.read(0)}nA.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function rA(m){var y=m._readableState;for(z("flow",y.flowing);y.flowing&&m.read()!==null;);}nA.prototype.wrap=function(m){var y=this,uA=this._readableState,CA=!1;m.on("end",function(){if(z("wrapped end"),uA.decoder&&!uA.ended){var kA=uA.decoder.end();kA&&kA.length&&y.push(kA)}y.push(null)}),m.on("data",function(kA){if(z("wrapped data"),uA.decoder&&(kA=uA.decoder.write(kA)),!(uA.objectMode&&kA==null)&&!(!uA.objectMode&&(!kA||!kA.length))){var de=y.push(kA);de||(CA=!0,m.pause())}});for(var $A in m)this[$A]===void 0&&typeof m[$A]=="function"&&(this[$A]=function(de){return function(){return m[de].apply(m,arguments)}}($A));for(var ZA=0;ZA<bA.length;ZA++)m.on(bA[ZA],this.emit.bind(this,bA[ZA]));return this._read=function(kA){z("wrapped _read",kA),CA&&(CA=!1,m.resume())},this},typeof Symbol=="function"&&(nA.prototype[Symbol.asyncIterator]=function(){return X===void 0&&(X=t(9676)),X(this)}),Object.defineProperty(nA.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(nA.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(nA.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),nA._fromList=p,Object.defineProperty(nA.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function p(m,y){if(y.length===0)return null;var uA;return y.objectMode?uA=y.buffer.shift():!m||m>=y.length?(y.decoder?uA=y.buffer.join(""):y.buffer.length===1?uA=y.buffer.first():uA=y.buffer.concat(y.length),y.buffer.clear()):uA=y.buffer.consume(m,y.decoder),uA}function G(m){var y=m._readableState;z("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,A.nextTick(iA,y,m))}function iA(m,y){if(z("endReadableNT",m.endEmitted,m.length),!m.endEmitted&&m.length===0&&(m.endEmitted=!0,y.readable=!1,y.emit("end"),m.autoDestroy)){var uA=y._writableState;(!uA||uA.autoDestroy&&uA.finished)&&y.destroy()}}typeof Symbol=="function"&&(nA.from=function(m,y){return B===void 0&&(B=t(378)),B(nA,m,y)});function MA(m,y){for(var uA=0,CA=m.length;uA<CA;uA++)if(m[uA]===y)return uA;return-1}},8569(o,r,t){o.exports=D;var A=t(3797).F,a=A.ERR_METHOD_NOT_IMPLEMENTED,f=A.ERR_MULTIPLE_CALLBACK,h=A.ERR_TRANSFORM_ALREADY_TRANSFORMING,Q=A.ERR_TRANSFORM_WITH_LENGTH_0,d=t(4903);t(9784)(D,d);function E(L,T){var b=this._transformState;b.transforming=!1;var N=b.writecb;if(N===null)return this.emit("error",new f);b.writechunk=null,b.writecb=null,T!=null&&this.push(T),N(L);var O=this._readableState;O.reading=!1,(O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}function D(L){if(!(this instanceof D))return new D(L);d.call(this,L),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,L&&(typeof L.transform=="function"&&(this._transform=L.transform),typeof L.flush=="function"&&(this._flush=L.flush)),this.on("prefinish",Y)}function Y(){var L=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(T,b){z(L,T,b)}):z(this,null,null)}D.prototype.push=function(L,T){return this._transformState.needTransform=!1,d.prototype.push.call(this,L,T)},D.prototype._transform=function(L,T,b){b(new a("_transform()"))},D.prototype._write=function(L,T,b){var N=this._transformState;if(N.writecb=b,N.writechunk=L,N.writeencoding=T,!N.transforming){var O=this._readableState;(N.needTransform||O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}},D.prototype._read=function(L){var T=this._transformState;T.writechunk!==null&&!T.transforming?(T.transforming=!0,this._transform(T.writechunk,T.writeencoding,T.afterTransform)):T.needTransform=!0},D.prototype._destroy=function(L,T){d.prototype._destroy.call(this,L,function(b){T(b)})};function z(L,T,b){if(T)return L.emit("error",T);if(b!=null&&L.push(b),L._writableState.length)throw new Q;if(L._transformState.transforming)throw new h;return L.push(null)}},9781(o,r,t){var A=t(9964);o.exports=tA;function a(rA){var p=this;this.next=null,this.entry=null,this.finish=function(){lA(p,rA)}}var f;tA.WritableState=bA;var h={deprecate:t(6465)},Q=t(9018),d=t(783).Buffer,E=(typeof t.g<"u"?t.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function D(rA){return d.from(rA)}function Y(rA){return d.isBuffer(rA)||rA instanceof E}var z=t(7385),L=t(8130),T=L.getHighWaterMark,b=t(3797).F,N=b.ERR_INVALID_ARG_TYPE,O=b.ERR_METHOD_NOT_IMPLEMENTED,gA=b.ERR_MULTIPLE_CALLBACK,oA=b.ERR_STREAM_CANNOT_PIPE,q=b.ERR_STREAM_DESTROYED,Z=b.ERR_STREAM_NULL_VALUES,x=b.ERR_STREAM_WRITE_AFTER_END,X=b.ERR_UNKNOWN_ENCODING,B=z.errorOrDestroy;t(9784)(tA,Q);function v(){}function bA(rA,p,G){f=f||t(4903),rA=rA||{},typeof G!="boolean"&&(G=p instanceof f),this.objectMode=!!rA.objectMode,G&&(this.objectMode=this.objectMode||!!rA.writableObjectMode),this.highWaterMark=T(this,rA,"writableHighWaterMark",G),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var iA=rA.decodeStrings===!1;this.decodeStrings=!iA,this.defaultEncoding=rA.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(MA){mA(p,MA)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=rA.emitClose!==!1,this.autoDestroy=!!rA.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}bA.prototype.getBuffer=function(){for(var p=this.bufferedRequest,G=[];p;)G.push(p),p=p.next;return G},function(){try{Object.defineProperty(bA.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var wA;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wA=Function.prototype[Symbol.hasInstance],Object.defineProperty(tA,Symbol.hasInstance,{value:function(p){return wA.call(this,p)?!0:this!==tA?!1:p&&p._writableState instanceof bA}})):wA=function(p){return p instanceof this};function tA(rA){f=f||t(4903);var p=this instanceof f;if(!p&&!wA.call(tA,this))return new tA(rA);this._writableState=new bA(rA,this,p),this.writable=!0,rA&&(typeof rA.write=="function"&&(this._write=rA.write),typeof rA.writev=="function"&&(this._writev=rA.writev),typeof rA.destroy=="function"&&(this._destroy=rA.destroy),typeof rA.final=="function"&&(this._final=rA.final)),Q.call(this)}tA.prototype.pipe=function(){B(this,new oA)};function nA(rA,p){var G=new x;B(rA,G),A.nextTick(p,G)}function KA(rA,p,G,iA){var MA;return G===null?MA=new Z:typeof G!="string"&&!p.objectMode&&(MA=new N("chunk",["string","Buffer"],G)),MA?(B(rA,MA),A.nextTick(iA,MA),!1):!0}tA.prototype.write=function(rA,p,G){var iA=this._writableState,MA=!1,m=!iA.objectMode&&Y(rA);return m&&!d.isBuffer(rA)&&(rA=D(rA)),typeof p=="function"&&(G=p,p=null),m?p="buffer":p||(p=iA.defaultEncoding),typeof G!="function"&&(G=v),iA.ending?nA(this,G):(m||KA(this,iA,rA,G))&&(iA.pendingcb++,MA=FA(this,iA,m,rA,p,G)),MA},tA.prototype.cork=function(){this._writableState.corked++},tA.prototype.uncork=function(){var rA=this._writableState;rA.corked&&(rA.corked--,!rA.writing&&!rA.corked&&!rA.bufferProcessing&&rA.bufferedRequest&&NA(this,rA))},tA.prototype.setDefaultEncoding=function(p){if(typeof p=="string"&&(p=p.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((p+"").toLowerCase())>-1))throw new X(p);return this._writableState.defaultEncoding=p,this},Object.defineProperty(tA.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function DA(rA,p,G){return!rA.objectMode&&rA.decodeStrings!==!1&&typeof p=="string"&&(p=d.from(p,G)),p}Object.defineProperty(tA.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function FA(rA,p,G,iA,MA,m){if(!G){var y=DA(p,iA,MA);iA!==y&&(G=!0,MA="buffer",iA=y)}var uA=p.objectMode?1:iA.length;p.length+=uA;var CA=p.length<p.highWaterMark;if(CA||(p.needDrain=!0),p.writing||p.corked){var $A=p.lastBufferedRequest;p.lastBufferedRequest={chunk:iA,encoding:MA,isBuf:G,callback:m,next:null},$A?$A.next=p.lastBufferedRequest:p.bufferedRequest=p.lastBufferedRequest,p.bufferedRequestCount+=1}else cA(rA,p,!1,uA,iA,MA,m);return CA}function cA(rA,p,G,iA,MA,m,y){p.writelen=iA,p.writecb=y,p.writing=!0,p.sync=!0,p.destroyed?p.onwrite(new q("write")):G?rA._writev(MA,p.onwrite):rA._write(MA,m,p.onwrite),p.sync=!1}function yA(rA,p,G,iA,MA){--p.pendingcb,G?(A.nextTick(MA,iA),A.nextTick(R,rA,p),rA._writableState.errorEmitted=!0,B(rA,iA)):(MA(iA),rA._writableState.errorEmitted=!0,B(rA,iA),R(rA,p))}function zA(rA){rA.writing=!1,rA.writecb=null,rA.length-=rA.writelen,rA.writelen=0}function mA(rA,p){var G=rA._writableState,iA=G.sync,MA=G.writecb;if(typeof MA!="function")throw new gA;if(zA(G),p)yA(rA,G,iA,p,MA);else{var m=IA(G)||rA.destroyed;!m&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&NA(rA,G),iA?A.nextTick(HA,rA,G,m,MA):HA(rA,G,m,MA)}}function HA(rA,p,G,iA){G||pA(rA,p),p.pendingcb--,iA(),R(rA,p)}function pA(rA,p){p.length===0&&p.needDrain&&(p.needDrain=!1,rA.emit("drain"))}function NA(rA,p){p.bufferProcessing=!0;var G=p.bufferedRequest;if(rA._writev&&G&&G.next){var iA=p.bufferedRequestCount,MA=new Array(iA),m=p.corkedRequestsFree;m.entry=G;for(var y=0,uA=!0;G;)MA[y]=G,G.isBuf||(uA=!1),G=G.next,y+=1;MA.allBuffers=uA,cA(rA,p,!0,p.length,MA,"",m.finish),p.pendingcb++,p.lastBufferedRequest=null,m.next?(p.corkedRequestsFree=m.next,m.next=null):p.corkedRequestsFree=new a(p),p.bufferedRequestCount=0}else{for(;G;){var CA=G.chunk,$A=G.encoding,ZA=G.callback,kA=p.objectMode?1:CA.length;if(cA(rA,p,!1,kA,CA,$A,ZA),G=G.next,p.bufferedRequestCount--,p.writing)break}G===null&&(p.lastBufferedRequest=null)}p.bufferedRequest=G,p.bufferProcessing=!1}tA.prototype._write=function(rA,p,G){G(new O("_write()"))},tA.prototype._writev=null,tA.prototype.end=function(rA,p,G){var iA=this._writableState;return typeof rA=="function"?(G=rA,rA=null,p=null):typeof p=="function"&&(G=p,p=null),rA!=null&&this.write(rA,p),iA.corked&&(iA.corked=1,this.uncork()),iA.ending||C(this,iA,G),this},Object.defineProperty(tA.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function IA(rA){return rA.ending&&rA.length===0&&rA.bufferedRequest===null&&!rA.finished&&!rA.writing}function BA(rA,p){rA._final(function(G){p.pendingcb--,G&&B(rA,G),p.prefinished=!0,rA.emit("prefinish"),R(rA,p)})}function hA(rA,p){!p.prefinished&&!p.finalCalled&&(typeof rA._final=="function"&&!p.destroyed?(p.pendingcb++,p.finalCalled=!0,A.nextTick(BA,rA,p)):(p.prefinished=!0,rA.emit("prefinish")))}function R(rA,p){var G=IA(p);if(G&&(hA(rA,p),p.pendingcb===0&&(p.finished=!0,rA.emit("finish"),p.autoDestroy))){var iA=rA._readableState;(!iA||iA.autoDestroy&&iA.endEmitted)&&rA.destroy()}return G}function C(rA,p,G){p.ending=!0,R(rA,p),G&&(p.finished?A.nextTick(G):rA.once("finish",G)),p.ended=!0,rA.writable=!1}function lA(rA,p,G){var iA=rA.entry;for(rA.entry=null;iA;){var MA=iA.callback;p.pendingcb--,MA(G),iA=iA.next}p.corkedRequestsFree.next=rA}Object.defineProperty(tA.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(p){this._writableState&&(this._writableState.destroyed=p)}}),tA.prototype.destroy=z.destroy,tA.prototype._undestroy=z.undestroy,tA.prototype._destroy=function(rA,p){p(rA)}},9676(o,r,t){var A=t(9964),a;function f(X,B,v){return B=h(B),B in X?Object.defineProperty(X,B,{value:v,enumerable:!0,configurable:!0,writable:!0}):X[B]=v,X}function h(X){var B=Q(X,"string");return typeof B=="symbol"?B:String(B)}function Q(X,B){if(typeof X!="object"||X===null)return X;var v=X[Symbol.toPrimitive];if(v!==void 0){var bA=v.call(X,B);if(typeof bA!="object")return bA;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(X)}var d=t(2167),E=Symbol("lastResolve"),D=Symbol("lastReject"),Y=Symbol("error"),z=Symbol("ended"),L=Symbol("lastPromise"),T=Symbol("handlePromise"),b=Symbol("stream");function N(X,B){return{value:X,done:B}}function O(X){var B=X[E];if(B!==null){var v=X[b].read();v!==null&&(X[L]=null,X[E]=null,X[D]=null,B(N(v,!1)))}}function gA(X){A.nextTick(O,X)}function oA(X,B){return function(v,bA){X.then(function(){if(B[z]){v(N(void 0,!0));return}B[T](v,bA)},bA)}}var q=Object.getPrototypeOf(function(){}),Z=Object.setPrototypeOf((a={get stream(){return this[b]},next:function(){var B=this,v=this[Y];if(v!==null)return Promise.reject(v);if(this[z])return Promise.resolve(N(void 0,!0));if(this[b].destroyed)return new Promise(function(nA,KA){A.nextTick(function(){B[Y]?KA(B[Y]):nA(N(void 0,!0))})});var bA=this[L],wA;if(bA)wA=new Promise(oA(bA,this));else{var tA=this[b].read();if(tA!==null)return Promise.resolve(N(tA,!1));wA=new Promise(this[T])}return this[L]=wA,wA}},f(a,Symbol.asyncIterator,function(){return this}),f(a,"return",function(){var B=this;return new Promise(function(v,bA){B[b].destroy(null,function(wA){if(wA){bA(wA);return}v(N(void 0,!0))})})}),a),q),x=function(B){var v,bA=Object.create(Z,(v={},f(v,b,{value:B,writable:!0}),f(v,E,{value:null,writable:!0}),f(v,D,{value:null,writable:!0}),f(v,Y,{value:null,writable:!0}),f(v,z,{value:B._readableState.endEmitted,writable:!0}),f(v,T,{value:function(tA,nA){var KA=bA[b].read();KA?(bA[L]=null,bA[E]=null,bA[D]=null,tA(N(KA,!1))):(bA[E]=tA,bA[D]=nA)},writable:!0}),v));return bA[L]=null,d(B,function(wA){if(wA&&wA.code!=="ERR_STREAM_PREMATURE_CLOSE"){var tA=bA[D];tA!==null&&(bA[L]=null,bA[E]=null,bA[D]=null,tA(wA)),bA[Y]=wA;return}var nA=bA[E];nA!==null&&(bA[L]=null,bA[E]=null,bA[D]=null,nA(N(void 0,!0))),bA[z]=!0}),B.on("readable",gA.bind(null,bA)),bA};o.exports=x},7385(o,r,t){var A=t(9964);function a(D,Y){var z=this,L=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return L||T?(Y?Y(D):D&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,A.nextTick(d,this,D)):A.nextTick(d,this,D)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(D||null,function(b){!Y&&b?z._writableState?z._writableState.errorEmitted?A.nextTick(h,z):(z._writableState.errorEmitted=!0,A.nextTick(f,z,b)):A.nextTick(f,z,b):Y?(A.nextTick(h,z),Y(b)):A.nextTick(h,z)}),this)}function f(D,Y){d(D,Y),h(D)}function h(D){D._writableState&&!D._writableState.emitClose||D._readableState&&!D._readableState.emitClose||D.emit("close")}function Q(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function d(D,Y){D.emit("error",Y)}function E(D,Y){var z=D._readableState,L=D._writableState;z&&z.autoDestroy||L&&L.autoDestroy?D.destroy(Y):D.emit("error",Y)}o.exports={destroy:a,undestroy:Q,errorOrDestroy:E}},2167(o,r,t){var A=t(3797).F.ERR_STREAM_PREMATURE_CLOSE;function a(d){var E=!1;return function(){if(!E){E=!0;for(var D=arguments.length,Y=new Array(D),z=0;z<D;z++)Y[z]=arguments[z];d.apply(this,Y)}}}function f(){}function h(d){return d.setHeader&&typeof d.abort=="function"}function Q(d,E,D){if(typeof E=="function")return Q(d,null,E);E||(E={}),D=a(D||f);var Y=E.readable||E.readable!==!1&&d.readable,z=E.writable||E.writable!==!1&&d.writable,L=function(){d.writable||b()},T=d._writableState&&d._writableState.finished,b=function(){z=!1,T=!0,Y||D.call(d)},N=d._readableState&&d._readableState.endEmitted,O=function(){Y=!1,N=!0,z||D.call(d)},gA=function(x){D.call(d,x)},oA=function(){var x;if(Y&&!N)return(!d._readableState||!d._readableState.ended)&&(x=new A),D.call(d,x);if(z&&!T)return(!d._writableState||!d._writableState.ended)&&(x=new A),D.call(d,x)},q=function(){d.req.on("finish",b)};return h(d)?(d.on("complete",b),d.on("abort",oA),d.req?q():d.on("request",q)):z&&!d._writableState&&(d.on("end",L),d.on("close",L)),d.on("end",O),d.on("finish",b),E.error!==!1&&d.on("error",gA),d.on("close",oA),function(){d.removeListener("complete",b),d.removeListener("abort",oA),d.removeListener("request",q),d.req&&d.req.removeListener("finish",b),d.removeListener("end",L),d.removeListener("close",L),d.removeListener("finish",b),d.removeListener("end",O),d.removeListener("error",gA),d.removeListener("close",oA)}}o.exports=Q},378(o){o.exports=function(){throw new Error("Readable.from is not available in the browser")}},3765(o,r,t){var A;function a(b){var N=!1;return function(){N||(N=!0,b.apply(void 0,arguments))}}var f=t(3797).F,h=f.ERR_MISSING_ARGS,Q=f.ERR_STREAM_DESTROYED;function d(b){if(b)throw b}function E(b){return b.setHeader&&typeof b.abort=="function"}function D(b,N,O,gA){gA=a(gA);var oA=!1;b.on("close",function(){oA=!0}),A===void 0&&(A=t(2167)),A(b,{readable:N,writable:O},function(Z){if(Z)return gA(Z);oA=!0,gA()});var q=!1;return function(Z){if(!oA&&!q){if(q=!0,E(b))return b.abort();if(typeof b.destroy=="function")return b.destroy();gA(Z||new Q("pipe"))}}}function Y(b){b()}function z(b,N){return b.pipe(N)}function L(b){return!b.length||typeof b[b.length-1]!="function"?d:b.pop()}function T(){for(var b=arguments.length,N=new Array(b),O=0;O<b;O++)N[O]=arguments[O];var gA=L(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new h("streams");var oA,q=N.map(function(Z,x){var X=x<N.length-1,B=x>0;return D(Z,X,B,function(v){oA||(oA=v),v&&q.forEach(Y),!X&&(q.forEach(Y),gA(oA))})});return N.reduce(z)}o.exports=T},8130(o,r,t){var A=t(3797).F.ERR_INVALID_OPT_VALUE;function a(h,Q,d){return h.highWaterMark!=null?h.highWaterMark:Q?h[d]:null}function f(h,Q,d,E){var D=a(Q,E,d);if(D!=null){if(!(isFinite(D)&&Math.floor(D)===D)||D<0){var Y=E?d:"highWaterMark";throw new A(Y,D)}return Math.floor(D)}return h.objectMode?16:16384}o.exports={getHighWaterMark:f}},9018(o,r,t){o.exports=t(4785).EventEmitter},3143(o,r,t){var A=t(5691).Buffer,a=A.isEncoding||function(q){switch(q=""+q,q&&q.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(q){if(!q)return"utf8";for(var Z;;)switch(q){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return q;default:if(Z)return;q=(""+q).toLowerCase(),Z=!0}}function h(q){var Z=f(q);if(typeof Z!="string"&&(A.isEncoding===a||!a(q)))throw new Error("Unknown encoding: "+q);return Z||q}r.I=Q;function Q(q){this.encoding=h(q);var Z;switch(this.encoding){case"utf16le":this.text=T,this.end=b,Z=4;break;case"utf8":this.fillLast=Y,Z=4;break;case"base64":this.text=N,this.end=O,Z=3;break;default:this.write=gA,this.end=oA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(Z)}Q.prototype.write=function(q){if(q.length===0)return"";var Z,x;if(this.lastNeed){if(Z=this.fillLast(q),Z===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<q.length?Z?Z+this.text(q,x):this.text(q,x):Z||""},Q.prototype.end=L,Q.prototype.text=z,Q.prototype.fillLast=function(q){if(this.lastNeed<=q.length)return q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,q.length),this.lastNeed-=q.length};function d(q){return q<=127?0:q>>5===6?2:q>>4===14?3:q>>3===30?4:q>>6===2?-1:-2}function E(q,Z,x){var X=Z.length-1;if(X<x)return 0;var B=d(Z[X]);return B>=0?(B>0&&(q.lastNeed=B-1),B):--X<x||B===-2?0:(B=d(Z[X]),B>=0?(B>0&&(q.lastNeed=B-2),B):--X<x||B===-2?0:(B=d(Z[X]),B>=0?(B>0&&(B===2?B=0:q.lastNeed=B-3),B):0))}function D(q,Z,x){if((Z[0]&192)!==128)return q.lastNeed=0,"�";if(q.lastNeed>1&&Z.length>1){if((Z[1]&192)!==128)return q.lastNeed=1,"�";if(q.lastNeed>2&&Z.length>2&&(Z[2]&192)!==128)return q.lastNeed=2,"�"}}function Y(q){var Z=this.lastTotal-this.lastNeed,x=D(this,q);if(x!==void 0)return x;if(this.lastNeed<=q.length)return q.copy(this.lastChar,Z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);q.copy(this.lastChar,Z,0,q.length),this.lastNeed-=q.length}function z(q,Z){var x=E(this,q,Z);if(!this.lastNeed)return q.toString("utf8",Z);this.lastTotal=x;var X=q.length-(x-this.lastNeed);return q.copy(this.lastChar,0,X),q.toString("utf8",Z,X)}function L(q){var Z=q&&q.length?this.write(q):"";return this.lastNeed?Z+"�":Z}function T(q,Z){if((q.length-Z)%2===0){var x=q.toString("utf16le",Z);if(x){var X=x.charCodeAt(x.length-1);if(X>=55296&&X<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=q[q.length-2],this.lastChar[1]=q[q.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=q[q.length-1],q.toString("utf16le",Z,q.length-1)}function b(q){var Z=q&&q.length?this.write(q):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return Z+this.lastChar.toString("utf16le",0,x)}return Z}function N(q,Z){var x=(q.length-Z)%3;return x===0?q.toString("base64",Z):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=q[q.length-1]:(this.lastChar[0]=q[q.length-2],this.lastChar[1]=q[q.length-1]),q.toString("base64",Z,q.length-x))}function O(q){var Z=q&&q.length?this.write(q):"";return this.lastNeed?Z+this.lastChar.toString("base64",0,3-this.lastNeed):Z}function gA(q){return q.toString(this.encoding)}function oA(q){return q&&q.length?this.write(q):""}},3483(o){var r=0,t=-3;function A(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(v,bA){this.source=v,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=bA,this.destLen=0,this.ltree=new A,this.dtree=new A}var f=new A,h=new A,Q=new Uint8Array(30),d=new Uint16Array(30),E=new Uint8Array(30),D=new Uint16Array(30),Y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),z=new A,L=new Uint8Array(320);function T(v,bA,wA,tA){var nA,KA;for(nA=0;nA<wA;++nA)v[nA]=0;for(nA=0;nA<30-wA;++nA)v[nA+wA]=nA/wA|0;for(KA=tA,nA=0;nA<30;++nA)bA[nA]=KA,KA+=1<<v[nA]}function b(v,bA){var wA;for(wA=0;wA<7;++wA)v.table[wA]=0;for(v.table[7]=24,v.table[8]=152,v.table[9]=112,wA=0;wA<24;++wA)v.trans[wA]=256+wA;for(wA=0;wA<144;++wA)v.trans[24+wA]=wA;for(wA=0;wA<8;++wA)v.trans[168+wA]=280+wA;for(wA=0;wA<112;++wA)v.trans[176+wA]=144+wA;for(wA=0;wA<5;++wA)bA.table[wA]=0;for(bA.table[5]=32,wA=0;wA<32;++wA)bA.trans[wA]=wA}var N=new Uint16Array(16);function O(v,bA,wA,tA){var nA,KA;for(nA=0;nA<16;++nA)v.table[nA]=0;for(nA=0;nA<tA;++nA)v.table[bA[wA+nA]]++;for(v.table[0]=0,KA=0,nA=0;nA<16;++nA)N[nA]=KA,KA+=v.table[nA];for(nA=0;nA<tA;++nA)bA[wA+nA]&&(v.trans[N[bA[wA+nA]]++]=nA)}function gA(v){v.bitcount--||(v.tag=v.source[v.sourceIndex++],v.bitcount=7);var bA=v.tag&1;return v.tag>>>=1,bA}function oA(v,bA,wA){if(!bA)return wA;for(;v.bitcount<24;)v.tag|=v.source[v.sourceIndex++]<<v.bitcount,v.bitcount+=8;var tA=v.tag&65535>>>16-bA;return v.tag>>>=bA,v.bitcount-=bA,tA+wA}function q(v,bA){for(;v.bitcount<24;)v.tag|=v.source[v.sourceIndex++]<<v.bitcount,v.bitcount+=8;var wA=0,tA=0,nA=0,KA=v.tag;do tA=2*tA+(KA&1),KA>>>=1,++nA,wA+=bA.table[nA],tA-=bA.table[nA];while(tA>=0);return v.tag=KA,v.bitcount-=nA,bA.trans[wA+tA]}function Z(v,bA,wA){var tA,nA,KA,DA,FA,cA;for(tA=oA(v,5,257),nA=oA(v,5,1),KA=oA(v,4,4),DA=0;DA<19;++DA)L[DA]=0;for(DA=0;DA<KA;++DA){var yA=oA(v,3,0);L[Y[DA]]=yA}for(O(z,L,0,19),FA=0;FA<tA+nA;){var zA=q(v,z);switch(zA){case 16:var mA=L[FA-1];for(cA=oA(v,2,3);cA;--cA)L[FA++]=mA;break;case 17:for(cA=oA(v,3,3);cA;--cA)L[FA++]=0;break;case 18:for(cA=oA(v,7,11);cA;--cA)L[FA++]=0;break;default:L[FA++]=zA;break}}O(bA,L,0,tA),O(wA,L,tA,nA)}function x(v,bA,wA){for(;;){var tA=q(v,bA);if(tA===256)return r;if(tA<256)v.dest[v.destLen++]=tA;else{var nA,KA,DA,FA;for(tA-=257,nA=oA(v,Q[tA],d[tA]),KA=q(v,wA),DA=v.destLen-oA(v,E[KA],D[KA]),FA=DA;FA<DA+nA;++FA)v.dest[v.destLen++]=v.dest[FA]}}}function X(v){for(var bA,wA,tA;v.bitcount>8;)v.sourceIndex--,v.bitcount-=8;if(bA=v.source[v.sourceIndex+1],bA=256*bA+v.source[v.sourceIndex],wA=v.source[v.sourceIndex+3],wA=256*wA+v.source[v.sourceIndex+2],bA!==(~wA&65535))return t;for(v.sourceIndex+=4,tA=bA;tA;--tA)v.dest[v.destLen++]=v.source[v.sourceIndex++];return v.bitcount=0,r}function B(v,bA){var wA=new a(v,bA),tA,nA,KA;do{switch(tA=gA(wA),nA=oA(wA,2,0),nA){case 0:KA=X(wA);break;case 1:KA=x(wA,f,h);break;case 2:Z(wA,wA.ltree,wA.dtree),KA=x(wA,wA.ltree,wA.dtree);break;default:KA=t}if(KA!==r)throw new Error("Data error")}while(!tA);return wA.destLen<wA.dest.length?typeof wA.dest.slice=="function"?wA.dest.slice(0,wA.destLen):wA.dest.subarray(0,wA.destLen):wA.dest}b(f,h),T(Q,d,4,3),T(E,D,2,1),Q[28]=0,d[28]=258,o.exports=B},6465(o,r,t){o.exports=A;function A(f,h){if(a("noDeprecation"))return f;var Q=!1;function d(){if(!Q){if(a("throwDeprecation"))throw new Error(h);a("traceDeprecation")?console.trace(h):console.warn(h),Q=!0}return f.apply(this,arguments)}return d}function a(f){try{if(!t.g.localStorage)return!1}catch{return!1}var h=t.g.localStorage[f];return h==null?!1:String(h).toLowerCase()==="true"}},1201(o){o.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},9490(o,r,t){var A=t(7906),a=t(4610),f=t(3381),h=t(6094);function Q(kA){return kA.call.bind(kA)}var d=typeof BigInt<"u",E=typeof Symbol<"u",D=Q(Object.prototype.toString),Y=Q(Number.prototype.valueOf),z=Q(String.prototype.valueOf),L=Q(Boolean.prototype.valueOf);if(d)var T=Q(BigInt.prototype.valueOf);if(E)var b=Q(Symbol.prototype.valueOf);function N(kA,de){if(typeof kA!="object")return!1;try{return de(kA),!0}catch{return!1}}r.isArgumentsObject=A,r.isGeneratorFunction=a,r.isTypedArray=h;function O(kA){return typeof Promise<"u"&&kA instanceof Promise||kA!==null&&typeof kA=="object"&&typeof kA.then=="function"&&typeof kA.catch=="function"}r.isPromise=O;function gA(kA){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(kA):h(kA)||BA(kA)}r.isArrayBufferView=gA;function oA(kA){return f(kA)==="Uint8Array"}r.isUint8Array=oA;function q(kA){return f(kA)==="Uint8ClampedArray"}r.isUint8ClampedArray=q;function Z(kA){return f(kA)==="Uint16Array"}r.isUint16Array=Z;function x(kA){return f(kA)==="Uint32Array"}r.isUint32Array=x;function X(kA){return f(kA)==="Int8Array"}r.isInt8Array=X;function B(kA){return f(kA)==="Int16Array"}r.isInt16Array=B;function v(kA){return f(kA)==="Int32Array"}r.isInt32Array=v;function bA(kA){return f(kA)==="Float32Array"}r.isFloat32Array=bA;function wA(kA){return f(kA)==="Float64Array"}r.isFloat64Array=wA;function tA(kA){return f(kA)==="BigInt64Array"}r.isBigInt64Array=tA;function nA(kA){return f(kA)==="BigUint64Array"}r.isBigUint64Array=nA;function KA(kA){return D(kA)==="[object Map]"}KA.working=typeof Map<"u"&&KA(new Map);function DA(kA){return typeof Map>"u"?!1:KA.working?KA(kA):kA instanceof Map}r.isMap=DA;function FA(kA){return D(kA)==="[object Set]"}FA.working=typeof Set<"u"&&FA(new Set);function cA(kA){return typeof Set>"u"?!1:FA.working?FA(kA):kA instanceof Set}r.isSet=cA;function yA(kA){return D(kA)==="[object WeakMap]"}yA.working=typeof WeakMap<"u"&&yA(new WeakMap);function zA(kA){return typeof WeakMap>"u"?!1:yA.working?yA(kA):kA instanceof WeakMap}r.isWeakMap=zA;function mA(kA){return D(kA)==="[object WeakSet]"}mA.working=typeof WeakSet<"u"&&mA(new WeakSet);function HA(kA){return mA(kA)}r.isWeakSet=HA;function pA(kA){return D(kA)==="[object ArrayBuffer]"}pA.working=typeof ArrayBuffer<"u"&&pA(new ArrayBuffer);function NA(kA){return typeof ArrayBuffer>"u"?!1:pA.working?pA(kA):kA instanceof ArrayBuffer}r.isArrayBuffer=NA;function IA(kA){return D(kA)==="[object DataView]"}IA.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&IA(new DataView(new ArrayBuffer(1),0,1));function BA(kA){return typeof DataView>"u"?!1:IA.working?IA(kA):kA instanceof DataView}r.isDataView=BA;var hA=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(kA){return D(kA)==="[object SharedArrayBuffer]"}function C(kA){return typeof hA>"u"?!1:(typeof R.working>"u"&&(R.working=R(new hA)),R.working?R(kA):kA instanceof hA)}r.isSharedArrayBuffer=C;function lA(kA){return D(kA)==="[object AsyncFunction]"}r.isAsyncFunction=lA;function rA(kA){return D(kA)==="[object Map Iterator]"}r.isMapIterator=rA;function p(kA){return D(kA)==="[object Set Iterator]"}r.isSetIterator=p;function G(kA){return D(kA)==="[object Generator]"}r.isGeneratorObject=G;function iA(kA){return D(kA)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=iA;function MA(kA){return N(kA,Y)}r.isNumberObject=MA;function m(kA){return N(kA,z)}r.isStringObject=m;function y(kA){return N(kA,L)}r.isBooleanObject=y;function uA(kA){return d&&N(kA,T)}r.isBigIntObject=uA;function CA(kA){return E&&N(kA,b)}r.isSymbolObject=CA;function $A(kA){return MA(kA)||m(kA)||y(kA)||uA(kA)||CA(kA)}r.isBoxedPrimitive=$A;function ZA(kA){return typeof Uint8Array<"u"&&(NA(kA)||C(kA))}r.isAnyArrayBuffer=ZA,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(kA){Object.defineProperty(r,kA,{enumerable:!1,value:function(){throw new Error(kA+" is not supported in userland")}})})},7187(o,r,t){var A=t(9964),a=Object.getOwnPropertyDescriptors||function(hA){for(var R=Object.keys(hA),C={},lA=0;lA<R.length;lA++)C[R[lA]]=Object.getOwnPropertyDescriptor(hA,R[lA]);return C},f=/%[sdj%]/g;r.format=function(BA){if(!B(BA)){for(var hA=[],R=0;R<arguments.length;R++)hA.push(E(arguments[R]));return hA.join(" ")}for(var R=1,C=arguments,lA=C.length,rA=String(BA).replace(f,function(G){if(G==="%%")return"%";if(R>=lA)return G;switch(G){case"%s":return String(C[R++]);case"%d":return Number(C[R++]);case"%j":try{return JSON.stringify(C[R++])}catch{return"[Circular]"}default:return G}}),p=C[R];R<lA;p=C[++R])Z(p)||!tA(p)?rA+=" "+p:rA+=" "+E(p);return rA},r.deprecate=function(BA,hA){if(typeof A<"u"&&A.noDeprecation===!0)return BA;if(typeof A>"u")return function(){return r.deprecate(BA,hA).apply(this,arguments)};var R=!1;function C(){if(!R){if(A.throwDeprecation)throw new Error(hA);A.traceDeprecation?console.trace(hA):console.error(hA),R=!0}return BA.apply(this,arguments)}return C};var h={},Q=/^$/;if(A.env.NODE_DEBUG){var d=A.env.NODE_DEBUG;d=d.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Q=new RegExp("^"+d+"$","i")}r.debuglog=function(BA){if(BA=BA.toUpperCase(),!h[BA])if(Q.test(BA)){var hA=A.pid;h[BA]=function(){var R=r.format.apply(r,arguments);console.error("%s %d: %s",BA,hA,R)}}else h[BA]=function(){};return h[BA]};function E(BA,hA){var R={seen:[],stylize:Y};return arguments.length>=3&&(R.depth=arguments[2]),arguments.length>=4&&(R.colors=arguments[3]),q(hA)?R.showHidden=hA:hA&&r._extend(R,hA),bA(R.showHidden)&&(R.showHidden=!1),bA(R.depth)&&(R.depth=2),bA(R.colors)&&(R.colors=!1),bA(R.customInspect)&&(R.customInspect=!0),R.colors&&(R.stylize=D),L(R,BA,R.depth)}r.inspect=E,E.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},E.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function D(BA,hA){var R=E.styles[hA];return R?"\x1B["+E.colors[R][0]+"m"+BA+"\x1B["+E.colors[R][1]+"m":BA}function Y(BA,hA){return BA}function z(BA){var hA={};return BA.forEach(function(R,C){hA[R]=!0}),hA}function L(BA,hA,R){if(BA.customInspect&&hA&&DA(hA.inspect)&&hA.inspect!==r.inspect&&!(hA.constructor&&hA.constructor.prototype===hA)){var C=hA.inspect(R,BA);return B(C)||(C=L(BA,C,R)),C}var lA=T(BA,hA);if(lA)return lA;var rA=Object.keys(hA),p=z(rA);if(BA.showHidden&&(rA=Object.getOwnPropertyNames(hA)),KA(hA)&&(rA.indexOf("message")>=0||rA.indexOf("description")>=0))return b(hA);if(rA.length===0){if(DA(hA)){var G=hA.name?": "+hA.name:"";return BA.stylize("[Function"+G+"]","special")}if(wA(hA))return BA.stylize(RegExp.prototype.toString.call(hA),"regexp");if(nA(hA))return BA.stylize(Date.prototype.toString.call(hA),"date");if(KA(hA))return b(hA)}var iA="",MA=!1,m=["{","}"];if(oA(hA)&&(MA=!0,m=["[","]"]),DA(hA)){var y=hA.name?": "+hA.name:"";iA=" [Function"+y+"]"}if(wA(hA)&&(iA=" "+RegExp.prototype.toString.call(hA)),nA(hA)&&(iA=" "+Date.prototype.toUTCString.call(hA)),KA(hA)&&(iA=" "+b(hA)),rA.length===0&&(!MA||hA.length==0))return m[0]+iA+m[1];if(R<0)return wA(hA)?BA.stylize(RegExp.prototype.toString.call(hA),"regexp"):BA.stylize("[Object]","special");BA.seen.push(hA);var uA;return MA?uA=N(BA,hA,R,p,rA):uA=rA.map(function(CA){return O(BA,hA,R,p,CA,MA)}),BA.seen.pop(),gA(uA,iA,m)}function T(BA,hA){if(bA(hA))return BA.stylize("undefined","undefined");if(B(hA)){var R="'"+JSON.stringify(hA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return BA.stylize(R,"string")}if(X(hA))return BA.stylize(""+hA,"number");if(q(hA))return BA.stylize(""+hA,"boolean");if(Z(hA))return BA.stylize("null","null")}function b(BA){return"["+Error.prototype.toString.call(BA)+"]"}function N(BA,hA,R,C,lA){for(var rA=[],p=0,G=hA.length;p<G;++p)HA(hA,String(p))?rA.push(O(BA,hA,R,C,String(p),!0)):rA.push("");return lA.forEach(function(iA){iA.match(/^\d+$/)||rA.push(O(BA,hA,R,C,iA,!0))}),rA}function O(BA,hA,R,C,lA,rA){var p,G,iA;if(iA=Object.getOwnPropertyDescriptor(hA,lA)||{value:hA[lA]},iA.get?iA.set?G=BA.stylize("[Getter/Setter]","special"):G=BA.stylize("[Getter]","special"):iA.set&&(G=BA.stylize("[Setter]","special")),HA(C,lA)||(p="["+lA+"]"),G||(BA.seen.indexOf(iA.value)<0?(Z(R)?G=L(BA,iA.value,null):G=L(BA,iA.value,R-1),G.indexOf(`
`)>-1&&(rA?G=G.split(`
`).map(function(MA){return"  "+MA}).join(`
`).slice(2):G=`
`+G.split(`
`).map(function(MA){return"   "+MA}).join(`
`))):G=BA.stylize("[Circular]","special")),bA(p)){if(rA&&lA.match(/^\d+$/))return G;p=JSON.stringify(""+lA),p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.slice(1,-1),p=BA.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),p=BA.stylize(p,"string"))}return p+": "+G}function gA(BA,hA,R){var C=BA.reduce(function(lA,rA){return rA.indexOf(`
`)>=0,lA+rA.replace(/\u001b\[\d\d?m/g,"").length+1},0);return C>60?R[0]+(hA===""?"":hA+`
 `)+" "+BA.join(`,
  `)+" "+R[1]:R[0]+hA+" "+BA.join(", ")+" "+R[1]}r.types=t(9490);function oA(BA){return Array.isArray(BA)}r.isArray=oA;function q(BA){return typeof BA=="boolean"}r.isBoolean=q;function Z(BA){return BA===null}r.isNull=Z;function x(BA){return BA==null}r.isNullOrUndefined=x;function X(BA){return typeof BA=="number"}r.isNumber=X;function B(BA){return typeof BA=="string"}r.isString=B;function v(BA){return typeof BA=="symbol"}r.isSymbol=v;function bA(BA){return BA===void 0}r.isUndefined=bA;function wA(BA){return tA(BA)&&cA(BA)==="[object RegExp]"}r.isRegExp=wA,r.types.isRegExp=wA;function tA(BA){return typeof BA=="object"&&BA!==null}r.isObject=tA;function nA(BA){return tA(BA)&&cA(BA)==="[object Date]"}r.isDate=nA,r.types.isDate=nA;function KA(BA){return tA(BA)&&(cA(BA)==="[object Error]"||BA instanceof Error)}r.isError=KA,r.types.isNativeError=KA;function DA(BA){return typeof BA=="function"}r.isFunction=DA;function FA(BA){return BA===null||typeof BA=="boolean"||typeof BA=="number"||typeof BA=="string"||typeof BA=="symbol"||typeof BA>"u"}r.isPrimitive=FA,r.isBuffer=t(1201);function cA(BA){return Object.prototype.toString.call(BA)}function yA(BA){return BA<10?"0"+BA.toString(10):BA.toString(10)}var zA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function mA(){var BA=new Date,hA=[yA(BA.getHours()),yA(BA.getMinutes()),yA(BA.getSeconds())].join(":");return[BA.getDate(),zA[BA.getMonth()],hA].join(" ")}r.log=function(){console.log("%s - %s",mA(),r.format.apply(r,arguments))},r.inherits=t(9784),r._extend=function(BA,hA){if(!hA||!tA(hA))return BA;for(var R=Object.keys(hA),C=R.length;C--;)BA[R[C]]=hA[R[C]];return BA};function HA(BA,hA){return Object.prototype.hasOwnProperty.call(BA,hA)}var pA=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;r.promisify=function(hA){if(typeof hA!="function")throw new TypeError('The "original" argument must be of type Function');if(pA&&hA[pA]){var R=hA[pA];if(typeof R!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(R,pA,{value:R,enumerable:!1,writable:!1,configurable:!0}),R}function R(){for(var C,lA,rA=new Promise(function(iA,MA){C=iA,lA=MA}),p=[],G=0;G<arguments.length;G++)p.push(arguments[G]);p.push(function(iA,MA){iA?lA(iA):C(MA)});try{hA.apply(this,p)}catch(iA){lA(iA)}return rA}return Object.setPrototypeOf(R,Object.getPrototypeOf(hA)),pA&&Object.defineProperty(R,pA,{value:R,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(R,a(hA))},r.promisify.custom=pA;function NA(BA,hA){if(!BA){var R=new Error("Promise was rejected with a falsy value");R.reason=BA,BA=R}return hA(BA)}function IA(BA){if(typeof BA!="function")throw new TypeError('The "original" argument must be of type Function');function hA(){for(var R=[],C=0;C<arguments.length;C++)R.push(arguments[C]);var lA=R.pop();if(typeof lA!="function")throw new TypeError("The last argument must be of type Function");var rA=this,p=function(){return lA.apply(rA,arguments)};BA.apply(this,R).then(function(G){A.nextTick(p.bind(null,null,G))},function(G){A.nextTick(NA.bind(null,G,p))})}return Object.setPrototypeOf(hA,Object.getPrototypeOf(BA)),Object.defineProperties(hA,a(BA)),hA}r.callbackify=IA},3381(o,r,t){var A=t(8404),a=t(821),f=t(6601),h=t(2774),Q=t(8109),d=t(7106),E=h("Object.prototype.toString"),D=t(6626)(),Y=typeof globalThis>"u"?t.g:globalThis,z=a(),L=h("String.prototype.slice"),T=h("Array.prototype.indexOf",!0)||function(oA,q){for(var Z=0;Z<oA.length;Z+=1)if(oA[Z]===q)return Z;return-1},b={__proto__:null};D&&Q&&d?A(z,function(gA){var oA=new Y[gA];if(Symbol.toStringTag in oA&&d){var q=d(oA),Z=Q(q,Symbol.toStringTag);if(!Z&&q){var x=d(q);Z=Q(x,Symbol.toStringTag)}if(Z&&Z.get){var X=f(Z.get);b["$"+gA]=X}}}):A(z,function(gA){var oA=new Y[gA],q=oA.slice||oA.set;if(q){var Z=f(q);b["$"+gA]=Z}});var N=function(oA){var q=!1;return A(b,function(Z,x){if(!q)try{"$"+Z(oA)===x&&(q=L(x,1))}catch{}}),q},O=function(oA){var q=!1;return A(b,function(Z,x){if(!q)try{Z(oA),q=L(x,1)}catch{}}),q};o.exports=function(oA){if(!oA||typeof oA!="object")return!1;if(!D){var q=L(E(oA),8,-1);return T(z,q)>-1?q:q!=="Object"?!1:O(oA)}return Q?N(oA):null}},6457(o,r,t){var A,a,f;(function(h,Q){a=[],A=Q,f=typeof A=="function"?A.apply(r,a):A,f!==void 0&&(o.exports=f)})(this,function(){function h(L,T){return typeof T>"u"?T={autoBom:!1}:typeof T!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),T={autoBom:!T}),T.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(L.type)?new Blob(["\uFEFF",L],{type:L.type}):L}function Q(L,T,b){var N=new XMLHttpRequest;N.open("GET",L),N.responseType="blob",N.onload=function(){z(N.response,T,b)},N.onerror=function(){console.error("could not download file")},N.send()}function d(L){var T=new XMLHttpRequest;T.open("HEAD",L,!1);try{T.send()}catch{}return 200<=T.status&&299>=T.status}function E(L){try{L.dispatchEvent(new MouseEvent("click"))}catch{var T=document.createEvent("MouseEvents");T.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),L.dispatchEvent(T)}}var D=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof t.g=="object"&&t.g.global===t.g?t.g:void 0,Y=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),z=D.saveAs||(typeof window!="object"||window!==D?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Y?function(L,T,b){var N=D.URL||D.webkitURL,O=document.createElement("a");T=T||L.name||"download",O.download=T,O.rel="noopener",typeof L=="string"?(O.href=L,O.origin===location.origin?E(O):d(O.href)?Q(L,T,b):E(O,O.target="_blank")):(O.href=N.createObjectURL(L),setTimeout(function(){N.revokeObjectURL(O.href)},4e4),setTimeout(function(){E(O)},0))}:"msSaveOrOpenBlob"in navigator?function(L,T,b){if(T=T||L.name||"download",typeof L!="string")navigator.msSaveOrOpenBlob(h(L,b),T);else if(d(L))Q(L,T,b);else{var N=document.createElement("a");N.href=L,N.target="_blank",setTimeout(function(){E(N)})}}:function(L,T,b,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof L=="string")return Q(L,T,b);var O=L.type==="application/octet-stream",gA=/constructor/i.test(D.HTMLElement)||D.safari,oA=/CriOS\/[\d]+/.test(navigator.userAgent);if((oA||O&&gA||Y)&&typeof FileReader<"u"){var q=new FileReader;q.onloadend=function(){var X=q.result;X=oA?X:X.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=X:location=X,N=null},q.readAsDataURL(L)}else{var Z=D.URL||D.webkitURL,x=Z.createObjectURL(L);N?N.location=x:location.href=x,N=null,setTimeout(function(){Z.revokeObjectURL(x)},4e4)}});D.saveAs=z.saveAs=z,o.exports=z})},6274(){},8535(){},5470(){},3779(){},7199(){},5117(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},4074(o,r,t){var A=t(5117),a=t(5144),f=t(7756),h=t(8681),Q=t(3598),d=t(6341),E=t(9391),D=t(8819),Y=t(5719),z=t(4092),L=t(1182),T=t(9877),b=t(8607),N=t(443),O=t(8663),gA=t(6044),oA=t(6921),q=oA.enforce,Z=oA.get,x=f.Int8Array,X=x&&x.prototype,B=f.Uint8ClampedArray,v=B&&B.prototype,bA=x&&b(x),wA=X&&b(X),tA=Object.prototype,nA=f.TypeError,KA=O("toStringTag"),DA=gA("TYPED_ARRAY_TAG"),FA="TypedArrayConstructor",cA=A&&!!N&&E(f.opera)!=="Opera",yA=!1,zA,mA,HA,pA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},NA={BigInt64Array:8,BigUint64Array:8},IA=function(G){if(!Q(G))return!1;var iA=E(G);return iA==="DataView"||d(pA,iA)||d(NA,iA)},BA=function(p){var G=b(p);if(Q(G)){var iA=Z(G);return iA&&d(iA,FA)?iA[FA]:BA(G)}},hA=function(p){if(!Q(p))return!1;var G=E(p);return d(pA,G)||d(NA,G)},R=function(p){if(hA(p))return p;throw new nA("Target is not a typed array")},C=function(p){if(h(p)&&(!N||T(bA,p)))return p;throw new nA(D(p)+" is not a typed array constructor")},lA=function(p,G,iA,MA){if(a){if(iA)for(var m in pA){var y=f[m];if(y&&d(y.prototype,p))try{delete y.prototype[p]}catch{try{y.prototype[p]=G}catch{}}}(!wA[p]||iA)&&z(wA,p,iA?G:cA&&X[p]||G,MA)}},rA=function(p,G,iA){var MA,m;if(a){if(N){if(iA){for(MA in pA)if(m=f[MA],m&&d(m,p))try{delete m[p]}catch{}}if(!bA[p]||iA)try{return z(bA,p,iA?G:cA&&bA[p]||G)}catch{}else return}for(MA in pA)m=f[MA],m&&(!m[p]||iA)&&z(m,p,G)}};for(zA in pA)mA=f[zA],HA=mA&&mA.prototype,HA?q(HA)[FA]=mA:cA=!1;for(zA in NA)mA=f[zA],HA=mA&&mA.prototype,HA&&(q(HA)[FA]=mA);if((!cA||!h(bA)||bA===Function.prototype)&&(bA=function(){throw new nA("Incorrect invocation")},cA))for(zA in pA)f[zA]&&N(f[zA],bA);if((!cA||!wA||wA===tA)&&(wA=bA.prototype,cA))for(zA in pA)f[zA]&&N(f[zA].prototype,wA);if(cA&&b(v)!==wA&&N(v,wA),a&&!d(wA,KA)){yA=!0,L(wA,KA,{configurable:!0,get:function(){return Q(this)?this[DA]:void 0}});for(zA in pA)f[zA]&&Y(f[zA].prototype,DA,zA)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:cA,TYPED_ARRAY_TAG:yA&&DA,aTypedArray:R,aTypedArrayConstructor:C,exportTypedArrayMethod:lA,exportTypedArrayStaticMethod:rA,getTypedArrayConstructor:BA,isView:IA,isTypedArray:hA,TypedArray:bA,TypedArrayPrototype:wA}},4415(o,r){function t(A,a,f){return a in A?Object.defineProperty(A,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):A[a]=f,A}r._=t},8395(o,r,t){r._=t(1635).__decorate},821(o,r,t){var A=t(884),a=typeof globalThis>"u"?t.g:globalThis;o.exports=function(){for(var h=[],Q=0;Q<A.length;Q++)typeof a[A[Q]]=="function"&&(h[h.length]=A[Q]);return h}},890(o,r,t){var A=t(6341),a=t(8468),f=t(5888),h=t(3793),Q=f.data,d=f.normalize,E="USE_FUNCTION_CONSTRUCTOR",D="AsyncIteratorPrototype",Y=function(z,L){if(a(z))for(var T=0;T<z.length;T++)Q[d(z[T])]=L};o.exports=function(z){z&&typeof z=="object"&&(Y(z.useNative,f.NATIVE),Y(z.usePolyfill,f.POLYFILL),Y(z.useFeatureDetection,null),A(z,E)&&(h[E]=!!z[E]),A(z,D)&&(h[D]=z[D]))}},1078(o,r,t){var A=t(8681),a=t(8819),f=TypeError;o.exports=function(h){if(A(h))return h;throw new f(a(h)+" is not a function")}},7222(o,r,t){var A=t(2657),a=String,f=TypeError;o.exports=function(h){if(A(h))return h;throw new f("Can't set "+a(h)+" as a prototype")}},1825(o,r,t){var A=t(8663),a=t(4860),f=t(2333).f,h=A("unscopables"),Q=Array.prototype;Q[h]===void 0&&f(Q,h,{configurable:!0,value:a(null)}),o.exports=function(d){Q[h][d]=!0}},2091(o,r,t){var A=t(3598),a=String,f=TypeError;o.exports=function(h){if(A(h))return h;throw new f(a(h)+" is not an object")}},3161(o,r,t){var A=t(3297),a=t(4918),f=t(4730);o.exports=function(Q){for(var d=A(this),E=f(d),D=arguments.length,Y=a(D>1?arguments[1]:void 0,E),z=D>2?arguments[2]:void 0,L=z===void 0?E:a(z,E);L>Y;)d[Y++]=Q;return d}},789(o,r,t){var A=t(5137),a=t(4918),f=t(4730),h=function(Q){return function(d,E,D){var Y=A(d),z=f(Y);if(z===0)return!Q&&-1;var L=a(D,z),T;if(Q&&E!==E){for(;z>L;)if(T=Y[L++],T!==T)return!0}else for(;z>L;L++)if((Q||L in Y)&&Y[L]===E)return Q||L||0;return!Q&&-1}};o.exports={includes:h(!0),indexOf:h(!1)}},2740(o,r,t){var A=t(1212);o.exports=A([].slice)},644(o,r,t){var A=t(2740),a=Math.floor,f=function(h,Q){var d=h.length;if(d<8)for(var E=1,D,Y;E<d;){for(Y=E,D=h[E];Y&&Q(h[Y-1],D)>0;)h[Y]=h[--Y];Y!==E++&&(h[Y]=D)}else for(var z=a(d/2),L=f(A(h,0,z),Q),T=f(A(h,z),Q),b=L.length,N=T.length,O=0,gA=0;O<b||gA<N;)h[O+gA]=O<b&&gA<N?Q(L[O],T[gA])<=0?L[O++]:T[gA++]:O<b?L[O++]:T[gA++];return h};o.exports=f},8420(o,r,t){var A=t(1212),a=A({}.toString),f=A("".slice);o.exports=function(h){return f(a(h),8,-1)}},9391(o,r,t){var A=t(7920),a=t(8681),f=t(8420),h=t(8663),Q=h("toStringTag"),d=Object,E=f(function(){return arguments}())==="Arguments",D=function(Y,z){try{return Y[z]}catch{}};o.exports=A?f:function(Y){var z,L,T;return Y===void 0?"Undefined":Y===null?"Null":typeof(L=D(z=d(Y),Q))=="string"?L:E?f(z):(T=f(z))==="Object"&&a(z.callee)?"Arguments":T}},8032(o,r,t){var A=t(6341),a=t(7523),f=t(423),h=t(2333);o.exports=function(Q,d,E){for(var D=a(d),Y=h.f,z=f.f,L=0;L<D.length;L++){var T=D[L];!A(Q,T)&&!(E&&A(E,T))&&Y(Q,T,z(d,T))}}},5071(o,r,t){var A=t(299);o.exports=!A(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},5719(o,r,t){var A=t(5144),a=t(2333),f=t(8264);o.exports=A?function(h,Q,d){return a.f(h,Q,f(1,d))}:function(h,Q,d){return h[Q]=d,h}},8264(o){o.exports=function(r,t){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:t}}},1182(o,r,t){var A=t(3383),a=t(2333);o.exports=function(f,h,Q){return Q.get&&A(Q.get,h,{getter:!0}),Q.set&&A(Q.set,h,{setter:!0}),a.f(f,h,Q)}},4092(o,r,t){var A=t(8681),a=t(2333),f=t(3383),h=t(7309);o.exports=function(Q,d,E,D){D||(D={});var Y=D.enumerable,z=D.name!==void 0?D.name:d;if(A(E)&&f(E,z,D),D.global)Y?Q[d]=E:h(d,E);else{try{D.unsafe?Q[d]&&(Y=!0):delete Q[d]}catch{}Y?Q[d]=E:a.f(Q,d,{value:E,enumerable:!1,configurable:!D.nonConfigurable,writable:!D.nonWritable})}return Q}},7309(o,r,t){var A=t(7756),a=Object.defineProperty;o.exports=function(f,h){try{a(A,f,{value:h,configurable:!0,writable:!0})}catch{A[f]=h}return h}},5144(o,r,t){var A=t(299);o.exports=!A(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},2283(o,r,t){var A=t(7756),a=t(3598),f=A.document,h=a(f)&&a(f.createElement);o.exports=function(Q){return h?f.createElement(Q):{}}},2555(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5337(o,r,t){var A=t(8115),a=A.match(/firefox\/(\d+)/i);o.exports=!!a&&+a[1]},7383(o,r,t){var A=t(8115);o.exports=/MSIE|Trident/.test(A)},8115(o,r,t){var A=t(7756),a=A.navigator,f=a&&a.userAgent;o.exports=f?String(f):""},2227(o,r,t){var A=t(7756),a=t(8115),f=A.process,h=A.Deno,Q=f&&f.versions||h&&h.version,d=Q&&Q.v8,E,D;d&&(E=d.split("."),D=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!D&&a&&(E=a.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=a.match(/Chrome\/(\d+)/),E&&(D=+E[1]))),o.exports=D},4507(o,r,t){var A=t(8115),a=A.match(/AppleWebKit\/(\d+)\./);o.exports=!!a&&+a[1]},3762(o,r,t){var A=t(7756),a=t(423).f,f=t(5719),h=t(4092),Q=t(7309),d=t(8032),E=t(5888);o.exports=function(D,Y){var z=D.target,L=D.global,T=D.stat,b,N,O,gA,oA,q;if(L?N=A:T?N=A[z]||Q(z,{}):N=A[z]&&A[z].prototype,N)for(O in Y){if(oA=Y[O],D.dontCallGetSet?(q=a(N,O),gA=q&&q.value):gA=N[O],b=E(L?O:z+(T?".":"#")+O,D.forced),!b&&gA!==void 0){if(typeof oA==typeof gA)continue;d(oA,gA)}(D.sham||gA&&gA.sham)&&f(oA,"sham",!0),h(N,O,oA,D)}}},299(o){o.exports=function(r){try{return!!r()}catch{return!0}}},1676(o,r,t){var A=t(299);o.exports=!A(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},8993(o,r,t){var A=t(1676),a=Function.prototype.call;o.exports=A?a.bind(a):function(){return a.apply(a,arguments)}},4378(o,r,t){var A=t(5144),a=t(6341),f=Function.prototype,h=A&&Object.getOwnPropertyDescriptor,Q=a(f,"name"),d=Q&&(function(){}).name==="something",E=Q&&(!A||A&&h(f,"name").configurable);o.exports={EXISTS:Q,PROPER:d,CONFIGURABLE:E}},4494(o,r,t){var A=t(1212),a=t(1078);o.exports=function(f,h,Q){try{return A(a(Object.getOwnPropertyDescriptor(f,h)[Q]))}catch{}}},5336(o,r,t){var A=t(8420),a=t(1212);o.exports=function(f){if(A(f)==="Function")return a(f)}},1212(o,r,t){var A=t(1676),a=Function.prototype,f=a.call,h=A&&a.bind.bind(f,f);o.exports=A?h:function(Q){return function(){return f.apply(Q,arguments)}}},7139(o,r,t){var A=t(7756),a=t(8681),f=function(h){return a(h)?h:void 0};o.exports=function(h,Q){return arguments.length<2?f(A[h]):A[h]&&A[h][Q]}},9738(o,r,t){var A=t(1078),a=t(6297);o.exports=function(f,h){var Q=f[h];return a(Q)?void 0:A(Q)}},7756(o,r,t){var A=function(a){return a&&a.Math===Math&&a};o.exports=A(typeof globalThis=="object"&&globalThis)||A(typeof window=="object"&&window)||A(typeof self=="object"&&self)||A(typeof t.g=="object"&&t.g)||A(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},6341(o,r,t){var A=t(1212),a=t(3297),f=A({}.hasOwnProperty);o.exports=Object.hasOwn||function(Q,d){return f(a(Q),d)}},2993(o){o.exports={}},4329(o,r,t){var A=t(7139);o.exports=A("document","documentElement")},7657(o,r,t){var A=t(5144),a=t(299),f=t(2283);o.exports=!A&&!a(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!==7})},2203(o,r,t){var A=t(1212),a=t(299),f=t(8420),h=Object,Q=A("".split);o.exports=a(function(){return!h("z").propertyIsEnumerable(0)})?function(d){return f(d)==="String"?Q(d,""):h(d)}:h},4550(o,r,t){var A=t(1212),a=t(8681),f=t(3793),h=A(Function.toString);a(f.inspectSource)||(f.inspectSource=function(Q){return h(Q)}),o.exports=f.inspectSource},6921(o,r,t){var A=t(1194),a=t(7756),f=t(3598),h=t(5719),Q=t(6341),d=t(3793),E=t(7099),D=t(2993),Y="Object already initialized",z=a.TypeError,L=a.WeakMap,T,b,N,O=function(Z){return N(Z)?b(Z):T(Z,{})},gA=function(Z){return function(x){var X;if(!f(x)||(X=b(x)).type!==Z)throw new z("Incompatible receiver, "+Z+" required");return X}};if(A||d.state){var oA=d.state||(d.state=new L);oA.get=oA.get,oA.has=oA.has,oA.set=oA.set,T=function(Z,x){if(oA.has(Z))throw new z(Y);return x.facade=Z,oA.set(Z,x),x},b=function(Z){return oA.get(Z)||{}},N=function(Z){return oA.has(Z)}}else{var q=E("state");D[q]=!0,T=function(Z,x){if(Q(Z,q))throw new z(Y);return x.facade=Z,h(Z,q,x),x},b=function(Z){return Q(Z,q)?Z[q]:{}},N=function(Z){return Q(Z,q)}}o.exports={set:T,get:b,has:N,enforce:O,getterFor:gA}},8468(o,r,t){var A=t(8420);o.exports=Array.isArray||function(f){return A(f)==="Array"}},8681(o){var r=typeof document=="object"&&document.all;o.exports=typeof r>"u"&&r!==void 0?function(t){return typeof t=="function"||t===r}:function(t){return typeof t=="function"}},5888(o,r,t){var A=t(299),a=t(8681),f=/#|\.prototype\./,h=function(Y,z){var L=d[Q(Y)];return L===D?!0:L===E?!1:a(z)?A(z):!!z},Q=h.normalize=function(Y){return String(Y).replace(f,".").toLowerCase()},d=h.data={},E=h.NATIVE="N",D=h.POLYFILL="P";o.exports=h},6297(o){o.exports=function(r){return r==null}},3598(o,r,t){var A=t(8681);o.exports=function(a){return typeof a=="object"?a!==null:A(a)}},2657(o,r,t){var A=t(3598);o.exports=function(a){return A(a)||a===null}},7695(o){o.exports=!1},5985(o,r,t){var A=t(7139),a=t(8681),f=t(9877),h=t(8300),Q=Object;o.exports=h?function(d){return typeof d=="symbol"}:function(d){var E=A("Symbol");return a(E)&&f(E.prototype,Q(d))}},4730(o,r,t){var A=t(8266);o.exports=function(a){return A(a.length)}},3383(o,r,t){var A=t(1212),a=t(299),f=t(8681),h=t(6341),Q=t(5144),d=t(4378).CONFIGURABLE,E=t(4550),D=t(6921),Y=D.enforce,z=D.get,L=String,T=Object.defineProperty,b=A("".slice),N=A("".replace),O=A([].join),gA=Q&&!a(function(){return T(function(){},"length",{value:8}).length!==8}),oA=String(String).split("String"),q=o.exports=function(Z,x,X){b(L(x),0,7)==="Symbol("&&(x="["+N(L(x),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),X&&X.getter&&(x="get "+x),X&&X.setter&&(x="set "+x),(!h(Z,"name")||d&&Z.name!==x)&&(Q?T(Z,"name",{value:x,configurable:!0}):Z.name=x),gA&&X&&h(X,"arity")&&Z.length!==X.arity&&T(Z,"length",{value:X.arity});try{X&&h(X,"constructor")&&X.constructor?Q&&T(Z,"prototype",{writable:!1}):Z.prototype&&(Z.prototype=void 0)}catch{}var B=Y(Z);return h(B,"source")||(B.source=O(oA,typeof x=="string"?x:"")),Z};Function.prototype.toString=q(function(){return f(this)&&z(this).source||E(this)},"toString")},2537(o){var r=Math.ceil,t=Math.floor;o.exports=Math.trunc||function(a){var f=+a;return(f>0?t:r)(f)}},4860(o,r,t){var A=t(2091),a=t(2197),f=t(2555),h=t(2993),Q=t(4329),d=t(2283),E=t(7099),D=">",Y="<",z="prototype",L="script",T=E("IE_PROTO"),b=function(){},N=function(Z){return Y+L+D+Z+Y+"/"+L+D},O=function(Z){Z.write(N("")),Z.close();var x=Z.parentWindow.Object;return Z=null,x},gA=function(){var Z=d("iframe"),x="java"+L+":",X;return Z.style.display="none",Q.appendChild(Z),Z.src=String(x),X=Z.contentWindow.document,X.open(),X.write(N("document.F=Object")),X.close(),X.F},oA,q=function(){try{oA=new ActiveXObject("htmlfile")}catch{}q=typeof document<"u"?document.domain&&oA?O(oA):gA():O(oA);for(var Z=f.length;Z--;)delete q[z][f[Z]];return q()};h[T]=!0,o.exports=Object.create||function(x,X){var B;return x!==null?(b[z]=A(x),B=new b,b[z]=null,B[T]=x):B=q(),X===void 0?B:a.f(B,X)}},2197(o,r,t){var A=t(5144),a=t(2538),f=t(2333),h=t(2091),Q=t(5137),d=t(9428);r.f=A&&!a?Object.defineProperties:function(D,Y){h(D);for(var z=Q(Y),L=d(Y),T=L.length,b=0,N;T>b;)f.f(D,N=L[b++],z[N]);return D}},2333(o,r,t){var A=t(5144),a=t(7657),f=t(2538),h=t(2091),Q=t(1413),d=TypeError,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,Y="enumerable",z="configurable",L="writable";r.f=A?f?function(b,N,O){if(h(b),N=Q(N),h(O),typeof b=="function"&&N==="prototype"&&"value"in O&&L in O&&!O[L]){var gA=D(b,N);gA&&gA[L]&&(b[N]=O.value,O={configurable:z in O?O[z]:gA[z],enumerable:Y in O?O[Y]:gA[Y],writable:!1})}return E(b,N,O)}:E:function(b,N,O){if(h(b),N=Q(N),h(O),a)try{return E(b,N,O)}catch{}if("get"in O||"set"in O)throw new d("Accessors not supported");return"value"in O&&(b[N]=O.value),b}},423(o,r,t){var A=t(5144),a=t(8993),f=t(4961),h=t(8264),Q=t(5137),d=t(1413),E=t(6341),D=t(7657),Y=Object.getOwnPropertyDescriptor;r.f=A?Y:function(L,T){if(L=Q(L),T=d(T),D)try{return Y(L,T)}catch{}if(E(L,T))return h(!a(f.f,L,T),L[T])}},5412(o,r,t){var A=t(3120),a=t(2555),f=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(Q){return A(Q,f)}},4073(o,r){r.f=Object.getOwnPropertySymbols},8607(o,r,t){var A=t(6341),a=t(8681),f=t(3297),h=t(7099),Q=t(5071),d=h("IE_PROTO"),E=Object,D=E.prototype;o.exports=Q?E.getPrototypeOf:function(Y){var z=f(Y);if(A(z,d))return z[d];var L=z.constructor;return a(L)&&z instanceof L?L.prototype:z instanceof E?D:null}},9877(o,r,t){var A=t(1212);o.exports=A({}.isPrototypeOf)},3120(o,r,t){var A=t(1212),a=t(6341),f=t(5137),h=t(789).indexOf,Q=t(2993),d=A([].push);o.exports=function(E,D){var Y=f(E),z=0,L=[],T;for(T in Y)!a(Q,T)&&a(Y,T)&&d(L,T);for(;D.length>z;)a(Y,T=D[z++])&&(~h(L,T)||d(L,T));return L}},9428(o,r,t){var A=t(3120),a=t(2555);o.exports=Object.keys||function(h){return A(h,a)}},4961(o,r){var t={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,a=A&&!t.call({1:2},1);r.f=a?function(h){var Q=A(this,h);return!!Q&&Q.enumerable}:t},443(o,r,t){var A=t(4494),a=t(3598),f=t(5034),h=t(7222);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Q=!1,d={},E;try{E=A(Object.prototype,"__proto__","set"),E(d,[]),Q=d instanceof Array}catch{}return function(Y,z){return f(Y),h(z),a(Y)&&(Q?E(Y,z):Y.__proto__=z),Y}}():void 0)},290(o,r,t){var A=t(8993),a=t(8681),f=t(3598),h=TypeError;o.exports=function(Q,d){var E,D;if(d==="string"&&a(E=Q.toString)&&!f(D=A(E,Q))||a(E=Q.valueOf)&&!f(D=A(E,Q))||d!=="string"&&a(E=Q.toString)&&!f(D=A(E,Q)))return D;throw new h("Can't convert object to primitive value")}},7523(o,r,t){var A=t(7139),a=t(1212),f=t(5412),h=t(4073),Q=t(2091),d=a([].concat);o.exports=A("Reflect","ownKeys")||function(D){var Y=f.f(Q(D)),z=h.f;return z?d(Y,z(D)):Y}},5034(o,r,t){var A=t(6297),a=TypeError;o.exports=function(f){if(A(f))throw new a("Can't call method on "+f);return f}},7099(o,r,t){var A=t(997),a=t(6044),f=A("keys");o.exports=function(h){return f[h]||(f[h]=a(h))}},3793(o,r,t){var A=t(7695),a=t(7756),f=t(7309),h="__core-js_shared__",Q=o.exports=a[h]||f(h,{});(Q.versions||(Q.versions=[])).push({version:"3.49.0",mode:A?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},997(o,r,t){var A=t(3793);o.exports=function(a,f){return A[a]||(A[a]=f||{})}},4483(o,r,t){var A=t(2227),a=t(299),f=t(7756),h=f.String;o.exports=!!Object.getOwnPropertySymbols&&!a(function(){var Q=Symbol("symbol detection");return!h(Q)||!(Object(Q)instanceof Symbol)||!Symbol.sham&&A&&A<41})},4918(o,r,t){var A=t(2119),a=Math.max,f=Math.min;o.exports=function(h,Q){var d=A(h);return d<0?a(d+Q,0):f(d,Q)}},3018(o,r,t){var A=t(3301),a=TypeError;o.exports=function(f){var h=A(f,"number");if(typeof h=="number")throw new a("Can't convert number to bigint");return BigInt(h)}},5137(o,r,t){var A=t(2203),a=t(5034);o.exports=function(f){return A(a(f))}},2119(o,r,t){var A=t(2537);o.exports=function(a){var f=+a;return f!==f||f===0?0:A(f)}},8266(o,r,t){var A=t(2119),a=Math.min;o.exports=function(f){var h=A(f);return h>0?a(h,9007199254740991):0}},3297(o,r,t){var A=t(5034),a=Object;o.exports=function(f){return a(A(f))}},4001(o,r,t){var A=t(7866),a=RangeError;o.exports=function(f,h){var Q=A(f);if(Q%h)throw new a("Wrong offset");return Q}},7866(o,r,t){var A=t(2119),a=RangeError;o.exports=function(f){var h=A(f);if(h<0)throw new a("The argument can't be less than 0");return h}},3301(o,r,t){var A=t(8993),a=t(3598),f=t(5985),h=t(9738),Q=t(290),d=t(8663),E=TypeError,D=d("toPrimitive");o.exports=function(Y,z){if(!a(Y)||f(Y))return Y;var L=h(Y,D),T;if(L){if(z===void 0&&(z="default"),T=A(L,Y,z),!a(T)||f(T))return T;throw new E("Can't convert object to primitive value")}return z===void 0&&(z="number"),Q(Y,z)}},1413(o,r,t){var A=t(3301),a=t(5985);o.exports=function(f){var h=A(f,"string");return a(h)?h:h+""}},7920(o,r,t){var A=t(8663),a=A("toStringTag"),f={};f[a]="z",o.exports=String(f)==="[object z]"},8819(o){var r=String;o.exports=function(t){try{return r(t)}catch{return"Object"}}},6044(o,r,t){var A=t(1212),a=0,f=Math.random(),h=A(1.1.toString);o.exports=function(Q){return"Symbol("+(Q===void 0?"":Q)+")_"+h(++a+f,36)}},8300(o,r,t){var A=t(4483);o.exports=A&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},2538(o,r,t){var A=t(5144),a=t(299);o.exports=A&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},1194(o,r,t){var A=t(7756),a=t(8681),f=A.WeakMap;o.exports=a(f)&&/native code/.test(String(f))},8663(o,r,t){var A=t(7756),a=t(997),f=t(6341),h=t(6044),Q=t(4483),d=t(8300),E=A.Symbol,D=a("wks"),Y=d?E.for||E:E&&E.withoutSetter||h;o.exports=function(z){return f(D,z)||(D[z]=Q&&f(E,z)?E[z]:Y("Symbol."+z)),D[z]}},187(o,r,t){var A=t(3762),a=t(789).includes,f=t(299),h=t(1825),Q=f(function(){return!Array(1).includes()}),d=f(function(){return[,1].includes(void 0,1)});A({target:"Array",proto:!0,forced:Q||d},{includes:function(D){return a(this,D,arguments.length>1?arguments[1]:void 0)}}),h("includes")},8376(o,r,t){var A=t(4074),a=t(3161),f=t(3018),h=t(9391),Q=t(8993),d=t(1212),E=t(299),D=A.aTypedArray,Y=A.exportTypedArrayMethod,z=d("".slice),L=E(function(){var T=0;return new Int8Array(2).fill({valueOf:function(){return T++}}),T!==1});Y("fill",function(b){var N=arguments.length;D(this);var O=z(h(this),0,3)==="Big"?f(b):+b;return Q(a,this,O,N>1?arguments[1]:void 0,N>2?arguments[2]:void 0)},L)},6401(o,r,t){var A=t(7756),a=t(8993),f=t(4074),h=t(4730),Q=t(4001),d=t(3297),E=t(299),D=A.RangeError,Y=A.Int8Array,z=Y&&Y.prototype,L=z&&z.set,T=f.aTypedArray,b=f.exportTypedArrayMethod,N=!E(function(){var gA=new Uint8ClampedArray(2);return a(L,gA,{length:1,0:3},1),gA[1]!==3}),O=N&&f.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var gA=new Y(2);return gA.set(1),gA.set("2",1),gA[0]!==0||gA[1]!==2});b("set",function(oA){T(this);var q=Q(arguments.length>1?arguments[1]:void 0,1),Z=d(oA);if(N)return a(L,this,Z,q);var x=this.length,X=h(Z),B=0;if(X+q>x)throw new D("Wrong length");for(;B<X;)this[q+B]=Z[B++]},!N||O)},2017(o,r,t){var A=t(7756),a=t(5336),f=t(299),h=t(1078),Q=t(644),d=t(4074),E=t(5337),D=t(7383),Y=t(2227),z=t(4507),L=d.aTypedArray,T=d.exportTypedArrayMethod,b=A.Uint16Array,N=b&&a(b.prototype.sort),O=!!N&&!(f(function(){N(new b(2),null)})&&f(function(){N(new b(2),{})})),gA=!!N&&!f(function(){if(Y)return Y<74;if(E)return E<67;if(D)return!0;if(z)return z<602;var q=new b(516),Z=Array(516),x,X;for(x=0;x<516;x++)X=x%4,q[x]=515-x,Z[x]=x-2*X+3;for(N(q,function(B,v){return(B/4|0)-(v/4|0)}),x=0;x<516;x++)if(q[x]!==Z[x])return!0}),oA=function(q){return function(Z,x){return q!==void 0?+q(Z,x)||0:x!==x?Z!==Z?0:-1:Z!==Z?1:Z===0&&x===0?1/Z>0?1/x>0?0:1:1/x>0?-1:0:Z>x?1:Z<x?-1:0}};T("sort",function(Z){return Z!==void 0&&h(Z),gA?N(this,Z):Q(L(this),oA(Z))},!gA||O)},1715(o,r,t){var A=t(5233),a=t(4415),f=t(8395),h=t(453),Q=t(4766),d=t(7571),E=t(4406),D=t(1613),Y=t(3483),z=t(4460);function L(fA,l){return Object.keys(l).forEach(function(I){I==="default"||I==="__esModule"||Object.prototype.hasOwnProperty.call(fA,I)||Object.defineProperty(fA,I,{enumerable:!0,get:function(){return l[I]}})}),fA}function T(fA,l,I,S){Object.defineProperty(fA,l,{get:I,set:S,enumerable:!0,configurable:!0})}function b(fA){return fA&&fA.__esModule?fA.default:fA}var N={};T(N,"logErrors",()=>O),T(N,"registerFormat",()=>oA),T(N,"create",()=>q),T(N,"defaultLanguage",()=>Z),T(N,"setDefaultLanguage",()=>x);let O=!1,gA=[];function oA(fA){gA.push(fA)}function q(fA,l){for(let I=0;I<gA.length;I++){let S=gA[I];if(S.probe(fA)){let W=new S(new A.DecodeStream(fA));return l?W.getFont(l):W}}throw new Error("Unknown font format")}let Z="en";function x(fA="en"){Z=fA}function X(fA,l,I){if(I.get){let S=I.get;I.get=function(){let W=S.call(this);return Object.defineProperty(this,l,{value:W}),W}}else if(typeof I.value=="function"){let S=I.value;return{get(){let W=new Map;function eA(...V){let SA=V.length>0?V[0]:"value";if(W.has(SA))return W.get(SA);let VA=S.apply(this,V);return W.set(SA,VA),VA}return Object.defineProperty(this,l,{value:eA}),eA}}}}let B=new A.Struct({firstCode:A.uint16,entryCount:A.uint16,idDelta:A.int16,idRangeOffset:A.uint16}),v=new A.Struct({startCharCode:A.uint32,endCharCode:A.uint32,glyphID:A.uint32}),bA=new A.Struct({startUnicodeValue:A.uint24,additionalCount:A.uint8}),wA=new A.Struct({unicodeValue:A.uint24,glyphID:A.uint16}),tA=new A.Array(bA,A.uint32),nA=new A.Array(wA,A.uint32),KA=new A.Struct({varSelector:A.uint24,defaultUVS:new A.Pointer(A.uint32,tA,{type:"parent"}),nonDefaultUVS:new A.Pointer(A.uint32,nA,{type:"parent"})}),DA=new A.VersionedStruct(A.uint16,{0:{length:A.uint16,language:A.uint16,codeMap:new A.LazyArray(A.uint8,256)},2:{length:A.uint16,language:A.uint16,subHeaderKeys:new A.Array(A.uint16,256),subHeaderCount:fA=>Math.max.apply(Math,fA.subHeaderKeys),subHeaders:new A.LazyArray(B,"subHeaderCount"),glyphIndexArray:new A.LazyArray(A.uint16,"subHeaderCount")},4:{length:A.uint16,language:A.uint16,segCountX2:A.uint16,segCount:fA=>fA.segCountX2>>1,searchRange:A.uint16,entrySelector:A.uint16,rangeShift:A.uint16,endCode:new A.LazyArray(A.uint16,"segCount"),reservedPad:new A.Reserved(A.uint16),startCode:new A.LazyArray(A.uint16,"segCount"),idDelta:new A.LazyArray(A.int16,"segCount"),idRangeOffset:new A.LazyArray(A.uint16,"segCount"),glyphIndexArray:new A.LazyArray(A.uint16,fA=>(fA.length-fA._currentOffset)/2)},6:{length:A.uint16,language:A.uint16,firstCode:A.uint16,entryCount:A.uint16,glyphIndices:new A.LazyArray(A.uint16,"entryCount")},8:{reserved:new A.Reserved(A.uint16),length:A.uint32,language:A.uint16,is32:new A.LazyArray(A.uint8,8192),nGroups:A.uint32,groups:new A.LazyArray(v,"nGroups")},10:{reserved:new A.Reserved(A.uint16),length:A.uint32,language:A.uint32,firstCode:A.uint32,entryCount:A.uint32,glyphIndices:new A.LazyArray(A.uint16,"numChars")},12:{reserved:new A.Reserved(A.uint16),length:A.uint32,language:A.uint32,nGroups:A.uint32,groups:new A.LazyArray(v,"nGroups")},13:{reserved:new A.Reserved(A.uint16),length:A.uint32,language:A.uint32,nGroups:A.uint32,groups:new A.LazyArray(v,"nGroups")},14:{length:A.uint32,numRecords:A.uint32,varSelectors:new A.LazyArray(KA,"numRecords")}}),FA=new A.Struct({platformID:A.uint16,encodingID:A.uint16,table:new A.Pointer(A.uint32,DA,{type:"parent",lazy:!0})});var cA=new A.Struct({version:A.uint16,numSubtables:A.uint16,tables:new A.Array(FA,"numSubtables")}),yA=new A.Struct({version:A.int32,revision:A.int32,checkSumAdjustment:A.uint32,magicNumber:A.uint32,flags:A.uint16,unitsPerEm:A.uint16,created:new A.Array(A.int32,2),modified:new A.Array(A.int32,2),xMin:A.int16,yMin:A.int16,xMax:A.int16,yMax:A.int16,macStyle:new A.Bitfield(A.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:A.uint16,fontDirectionHint:A.int16,indexToLocFormat:A.int16,glyphDataFormat:A.int16}),zA=new A.Struct({version:A.int32,ascent:A.int16,descent:A.int16,lineGap:A.int16,advanceWidthMax:A.uint16,minLeftSideBearing:A.int16,minRightSideBearing:A.int16,xMaxExtent:A.int16,caretSlopeRise:A.int16,caretSlopeRun:A.int16,caretOffset:A.int16,reserved:new A.Reserved(A.int16,4),metricDataFormat:A.int16,numberOfMetrics:A.uint16});let mA=new A.Struct({advance:A.uint16,bearing:A.int16});var HA=new A.Struct({metrics:new A.LazyArray(mA,fA=>fA.parent.hhea.numberOfMetrics),bearings:new A.LazyArray(A.int16,fA=>fA.parent.maxp.numGlyphs-fA.parent.hhea.numberOfMetrics)}),pA=new A.Struct({version:A.int32,numGlyphs:A.uint16,maxPoints:A.uint16,maxContours:A.uint16,maxComponentPoints:A.uint16,maxComponentContours:A.uint16,maxZones:A.uint16,maxTwilightPoints:A.uint16,maxStorage:A.uint16,maxFunctionDefs:A.uint16,maxInstructionDefs:A.uint16,maxStackElements:A.uint16,maxSizeOfInstructions:A.uint16,maxComponentElements:A.uint16,maxComponentDepth:A.uint16});function NA(fA,l,I=0){return fA===1&&lA[I]?lA[I]:C[fA][l]}const IA=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),BA={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},hA=new Map;function R(fA){let l=hA.get(fA);if(l)return l;let I=BA[fA];if(I){let S=new Map;for(let W=0;W<I.length;W++)S.set(I.charCodeAt(W),128+W);return hA.set(fA,S),S}if(IA.has(fA)){let S=new TextDecoder(fA),W=new Uint8Array(128);for(let SA=0;SA<128;SA++)W[SA]=128+SA;let eA=new Map,V=S.decode(W);for(let SA=0;SA<128;SA++)eA.set(V.charCodeAt(SA),128+SA);return hA.set(fA,eA),eA}}const C=[["utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be"],["x-mac-roman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","x-mac-greek","x-mac-cyrillic","x-mac-symbol","x-mac-devanagari","x-mac-gurmukhi","x-mac-gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","iso-8859-11","Laotian","Georgian","Armenian","gbk","Tibetan","Mongolian","Geez","x-mac-ce","Vietnamese","Sindhi"],["ascii",null,"iso-8859-1"],["symbol","utf-16be","shift-jis","gb18030","big5","euc-kr","johab",null,null,null,"utf-16be"]],lA={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"},rA=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}];let p=new A.Struct({platformID:A.uint16,encodingID:A.uint16,languageID:A.uint16,nameID:A.uint16,length:A.uint16,string:new A.Pointer(A.uint16,new A.String("length",fA=>NA(fA.platformID,fA.encodingID,fA.languageID)),{type:"parent",relativeTo:fA=>fA.parent.stringOffset,allowNull:!1})}),G=new A.Struct({length:A.uint16,tag:new A.Pointer(A.uint16,new A.String("length","utf16be"),{type:"parent",relativeTo:fA=>fA.stringOffset})});var iA=new A.VersionedStruct(A.uint16,{0:{count:A.uint16,stringOffset:A.uint16,records:new A.Array(p,"count")},1:{count:A.uint16,stringOffset:A.uint16,records:new A.Array(p,"count"),langTagCount:A.uint16,langTags:new A.Array(G,"langTagCount")}}),MA=iA;const m=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];iA.process=function(fA){var l={};for(let I of this.records){let S=rA[I.platformID][I.languageID];S==null&&this.langTags!=null&&I.languageID>=32768&&(S=this.langTags[I.languageID-32768].tag),S==null&&(S=I.platformID+"-"+I.languageID);let W=I.nameID>=256?"fontFeatures":m[I.nameID]||I.nameID;l[W]==null&&(l[W]={});let eA=l[W];I.nameID>=256&&(eA=eA[I.nameID]||(eA[I.nameID]={})),(typeof I.string=="string"||typeof eA[S]!="string")&&(eA[S]=I.string)}this.records=l},iA.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let fA=[];for(let l in this.records){let I=this.records[l];l!=="fontFeatures"&&(fA.push({platformID:3,encodingID:1,languageID:1033,nameID:m.indexOf(l),length:I.en.length*2,string:I.en}),l==="postscriptName"&&fA.push({platformID:1,encodingID:0,languageID:0,nameID:m.indexOf(l),length:I.en.length,string:I.en}))}this.records=fA,this.count=fA.length,this.stringOffset=iA.size(this,null,!1)};var y=new A.VersionedStruct(A.uint16,{header:{xAvgCharWidth:A.int16,usWeightClass:A.uint16,usWidthClass:A.uint16,fsType:new A.Bitfield(A.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:A.int16,ySubscriptYSize:A.int16,ySubscriptXOffset:A.int16,ySubscriptYOffset:A.int16,ySuperscriptXSize:A.int16,ySuperscriptYSize:A.int16,ySuperscriptXOffset:A.int16,ySuperscriptYOffset:A.int16,yStrikeoutSize:A.int16,yStrikeoutPosition:A.int16,sFamilyClass:A.int16,panose:new A.Array(A.uint8,10),ulCharRange:new A.Array(A.uint32,4),vendorID:new A.String(4),fsSelection:new A.Bitfield(A.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:A.uint16,usLastCharIndex:A.uint16},0:{},1:{typoAscender:A.int16,typoDescender:A.int16,typoLineGap:A.int16,winAscent:A.uint16,winDescent:A.uint16,codePageRange:new A.Array(A.uint32,2)},2:{typoAscender:A.int16,typoDescender:A.int16,typoLineGap:A.int16,winAscent:A.uint16,winDescent:A.uint16,codePageRange:new A.Array(A.uint32,2),xHeight:A.int16,capHeight:A.int16,defaultChar:A.uint16,breakChar:A.uint16,maxContent:A.uint16},5:{typoAscender:A.int16,typoDescender:A.int16,typoLineGap:A.int16,winAscent:A.uint16,winDescent:A.uint16,codePageRange:new A.Array(A.uint32,2),xHeight:A.int16,capHeight:A.int16,defaultChar:A.uint16,breakChar:A.uint16,maxContent:A.uint16,usLowerOpticalPointSize:A.uint16,usUpperOpticalPointSize:A.uint16}});let uA=y.versions;uA[3]=uA[4]=uA[2];var CA=y,$A=new A.VersionedStruct(A.fixed32,{header:{italicAngle:A.fixed32,underlinePosition:A.int16,underlineThickness:A.int16,isFixedPitch:A.uint32,minMemType42:A.uint32,maxMemType42:A.uint32,minMemType1:A.uint32,maxMemType1:A.uint32},1:{},2:{numberOfGlyphs:A.uint16,glyphNameIndex:new A.Array(A.uint16,"numberOfGlyphs"),names:new A.Array(new A.String(A.uint8))},2.5:{numberOfGlyphs:A.uint16,offsets:new A.Array(A.uint8,"numberOfGlyphs")},3:{},4:{map:new A.Array(A.uint32,fA=>fA.parent.maxp.numGlyphs)}}),ZA=new A.Struct({controlValues:new A.Array(A.int16)}),kA=new A.Struct({instructions:new A.Array(A.uint8)});let de=new A.VersionedStruct("head.indexToLocFormat",{0:{offsets:new A.Array(A.uint16)},1:{offsets:new A.Array(A.uint32)}});de.process=function(){if(this.version===0&&!this._processed){for(let fA=0;fA<this.offsets.length;fA++)this.offsets[fA]<<=1;this._processed=!0}},de.preEncode=function(){if(this.version===0&&this._processed!==!1){for(let fA=0;fA<this.offsets.length;fA++)this.offsets[fA]>>>=1;this._processed=!1}};var Te=de,Re=new A.Struct({controlValueProgram:new A.Array(A.uint8)}),ze=new A.Array(new A.Buffer);class We{getCFFVersion(l){for(;l&&!l.hdrSize;)l=l.parent;return l?l.version:-1}decode(l,I){let W=this.getCFFVersion(I)>=2?l.readUInt32BE():l.readUInt16BE();if(W===0)return[];let eA=l.readUInt8(),V;if(eA===1)V=A.uint8;else if(eA===2)V=A.uint16;else if(eA===3)V=A.uint24;else if(eA===4)V=A.uint32;else throw new Error(`Bad offset size in CFFIndex: ${eA} ${l.pos}`);let SA=[],VA=l.pos+(W+1)*eA-1,re=V.decode(l);for(let le=0;le<W;le++){let oe=V.decode(l);if(this.type!=null){let Ne=l.pos;l.pos=VA+re,I.length=oe-re,SA.push(this.type.decode(l,I)),l.pos=Ne}else SA.push({offset:VA+re,length:oe-re});re=oe}return l.pos=VA+re,SA}size(l,I){let S=2;if(l.length===0)return S;let W=this.type||new A.Buffer,eA=1;for(let SA=0;SA<l.length;SA++){let VA=l[SA];eA+=W.size(VA,I)}let V;if(eA<=255)V=A.uint8;else if(eA<=65535)V=A.uint16;else if(eA<=16777215)V=A.uint24;else if(eA<=4294967295)V=A.uint32;else throw new Error("Bad offset in CFFIndex");return S+=1+V.size()*(l.length+1),S+=eA-1,S}encode(l,I,S){if(l.writeUInt16BE(I.length),I.length===0)return;let W=this.type||new A.Buffer,eA=[],V=1;for(let VA of I){let re=W.size(VA,S);eA.push(re),V+=re}let SA;if(V<=255)SA=A.uint8;else if(V<=65535)SA=A.uint16;else if(V<=16777215)SA=A.uint24;else if(V<=4294967295)SA=A.uint32;else throw new Error("Bad offset in CFFIndex");l.writeUInt8(SA.size()),V=1,SA.encode(l,V);for(let VA of eA)V+=VA,SA.encode(l,V);for(let VA of I)W.encode(l,VA,S)}constructor(l){this.type=l}}const ee=15,ge=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],dA={".":10,E:11,"E-":12,"-":14};class k{static decode(l,I){if(32<=I&&I<=246)return I-139;if(247<=I&&I<=250)return(I-247)*256+l.readUInt8()+108;if(251<=I&&I<=254)return-(I-251)*256-l.readUInt8()-108;if(I===28)return l.readInt16BE();if(I===29)return l.readInt32BE();if(I===30){let S="";for(;;){let W=l.readUInt8(),eA=W>>4;if(eA===ee)break;S+=ge[eA];let V=W&15;if(V===ee)break;S+=ge[V]}return parseFloat(S)}return null}static size(l){if(l.forceLarge&&(l=32768),(l|0)!==l){let I=""+l;return 1+Math.ceil((I.length+1)/2)}else return-107<=l&&l<=107?1:108<=l&&l<=1131||-1131<=l&&l<=-108?2:-32768<=l&&l<=32767?3:5}static encode(l,I){let S=Number(I);if(I.forceLarge)return l.writeUInt8(29),l.writeInt32BE(S);if((S|0)!==S){l.writeUInt8(30);let eA=""+S;for(let V=0;V<eA.length;V+=2){let SA=eA[V],VA=dA[SA]||+SA;if(V===eA.length-1)var W=ee;else{let re=eA[V+1];var W=dA[re]||+re}l.writeUInt8(VA<<4|W&15)}if(W!==ee)return l.writeUInt8(ee<<4)}else return-107<=S&&S<=107?l.writeUInt8(S+139):108<=S&&S<=1131?(S-=108,l.writeUInt8((S>>8)+247),l.writeUInt8(S&255)):-1131<=S&&S<=-108?(S=-S-108,l.writeUInt8((S>>8)+251),l.writeUInt8(S&255)):-32768<=S&&S<=32767?(l.writeUInt8(28),l.writeInt16BE(S)):(l.writeUInt8(29),l.writeInt32BE(S))}}class J{decodeOperands(l,I,S,W){if(Array.isArray(l))return W.map((eA,V)=>this.decodeOperands(l[V],I,S,[eA]));if(l.decode!=null)return l.decode(I,S,W);switch(l){case"number":case"offset":case"sid":return W[0];case"boolean":return!!W[0];default:return W}}encodeOperands(l,I,S,W){return Array.isArray(l)?W.map((eA,V)=>this.encodeOperands(l[V],I,S,eA)[0]):l.encode!=null?l.encode(I,W,S):typeof W=="number"?[W]:typeof W=="boolean"?[+W]:Array.isArray(W)?W:[W]}decode(l,I){let S=l.pos+I.length,W={},eA=[];Object.defineProperties(W,{parent:{value:I},_startOffset:{value:l.pos}});for(let V in this.fields){let SA=this.fields[V];W[SA[1]]=SA[3]}for(;l.pos<S;){let V=l.readUInt8();if(V<28){V===12&&(V=V<<8|l.readUInt8());let SA=this.fields[V];if(!SA)throw new Error(`Unknown operator ${V}`);let VA=this.decodeOperands(SA[2],l,W,eA);VA!=null&&(VA instanceof A.PropertyDescriptor?Object.defineProperty(W,SA[1],VA):W[SA[1]]=VA),eA=[]}else eA.push(k.decode(l,V))}return W}size(l,I,S=!0){let W={parent:I,val:l,pointerSize:0,startOffset:I.startOffset||0},eA=0;for(let V in this.fields){let SA=this.fields[V],VA=l[SA[1]];if(VA==null||b(h)(VA,SA[3]))continue;let re=this.encodeOperands(SA[2],null,W,VA);for(let oe of re)eA+=k.size(oe);let le=Array.isArray(SA[0])?SA[0]:[SA[0]];eA+=le.length}return S&&(eA+=W.pointerSize),eA}encode(l,I,S){let W={pointers:[],startOffset:l.pos,parent:S,val:I,pointerSize:0};W.pointerOffset=l.pos+this.size(I,W,!1);for(let V of this.ops){let SA=I[V[1]];if(SA==null||b(h)(SA,V[3]))continue;let VA=this.encodeOperands(V[2],l,W,SA);for(let le of VA)k.encode(l,le);let re=Array.isArray(V[0])?V[0]:[V[0]];for(let le of re)l.writeUInt8(le)}let eA=0;for(;eA<W.pointers.length;){let V=W.pointers[eA++];V.type.encode(l,V.val,V.parent)}}constructor(l=[]){this.ops=l,this.fields={};for(let I of l){let S=Array.isArray(I[0])?I[0][0]<<8|I[0][1]:I[0];this.fields[S]=I}}}class _ extends A.Pointer{decode(l,I,S){return this.offsetType={decode:()=>S[0]},super.decode(l,I,S)}encode(l,I,S){if(!l)return this.offsetType={size:()=>0},this.size(I,S),[new EA(0)];let W=null;return this.offsetType={encode:(eA,V)=>W=V},super.encode(l,I,S),[new EA(W)]}constructor(l,I={}){I.type==null&&(I.type="global"),super(null,l,I)}}class EA{valueOf(){return this.val}constructor(l){this.val=l,this.forceLarge=!0}}class K{static decode(l,I,S){let W=S.pop();for(;S.length>W;)S.pop()}}var UA=new J([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",K,null],[19,"Subrs",new _(new We,{type:"local"}),null]]),se=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];let Me=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],te=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],Qe=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],vA=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],me=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],it=new A.Struct({reserved:new A.Reserved(A.uint16),reqFeatureIndex:A.uint16,featureCount:A.uint16,featureIndexes:new A.Array(A.uint16,"featureCount")}),AA=new A.Struct({tag:new A.String(4),langSys:new A.Pointer(A.uint16,it,{type:"parent"})}),Fe=new A.Struct({defaultLangSys:new A.Pointer(A.uint16,it),count:A.uint16,langSysRecords:new A.Array(AA,"count")}),Ye=new A.Struct({tag:new A.String(4),script:new A.Pointer(A.uint16,Fe,{type:"parent"})}),jA=new A.Array(Ye,A.uint16),we=new A.Struct({version:A.uint16,nameID:A.uint16}),ye=new A.Struct({featureParams:new A.Pointer(A.uint16,we),lookupCount:A.uint16,lookupListIndexes:new A.Array(A.uint16,"lookupCount")}),$e=new A.Struct({tag:new A.String(4),feature:new A.Pointer(A.uint16,ye,{type:"parent"})}),Je=new A.Array($e,A.uint16),Ke=new A.Struct({markAttachmentType:A.uint8,flags:new A.Bitfield(A.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function ht(fA){let l=new A.Struct({lookupType:A.uint16,flags:Ke,subTableCount:A.uint16,subTables:new A.Array(new A.Pointer(A.uint16,fA),"subTableCount"),markFilteringSet:new A.Optional(A.uint16,I=>I.flags.flags.useMarkFilteringSet)});return new A.LazyArray(new A.Pointer(A.uint16,l),A.uint16)}let Br=new A.Struct({start:A.uint16,end:A.uint16,startCoverageIndex:A.uint16}),rt=new A.VersionedStruct(A.uint16,{1:{glyphCount:A.uint16,glyphs:new A.Array(A.uint16,"glyphCount")},2:{rangeCount:A.uint16,rangeRecords:new A.Array(Br,"rangeCount")}}),It=new A.Struct({start:A.uint16,end:A.uint16,class:A.uint16}),ut=new A.VersionedStruct(A.uint16,{1:{startGlyph:A.uint16,glyphCount:A.uint16,classValueArray:new A.Array(A.uint16,"glyphCount")},2:{classRangeCount:A.uint16,classRangeRecord:new A.Array(It,"classRangeCount")}}),Yt=new A.Struct({a:A.uint16,b:A.uint16,deltaFormat:A.uint16}),kt=new A.Struct({sequenceIndex:A.uint16,lookupListIndex:A.uint16}),Qr=new A.Struct({glyphCount:A.uint16,lookupCount:A.uint16,input:new A.Array(A.uint16,fA=>fA.glyphCount-1),lookupRecords:new A.Array(kt,"lookupCount")}),Dr=new A.Array(new A.Pointer(A.uint16,Qr),A.uint16),Tt=new A.Struct({glyphCount:A.uint16,lookupCount:A.uint16,classes:new A.Array(A.uint16,fA=>fA.glyphCount-1),lookupRecords:new A.Array(kt,"lookupCount")}),yt=new A.Array(new A.Pointer(A.uint16,Tt),A.uint16),jt=new A.VersionedStruct(A.uint16,{1:{coverage:new A.Pointer(A.uint16,rt),ruleSetCount:A.uint16,ruleSets:new A.Array(new A.Pointer(A.uint16,Dr),"ruleSetCount")},2:{coverage:new A.Pointer(A.uint16,rt),classDef:new A.Pointer(A.uint16,ut),classSetCnt:A.uint16,classSet:new A.Array(new A.Pointer(A.uint16,yt),"classSetCnt")},3:{glyphCount:A.uint16,lookupCount:A.uint16,coverages:new A.Array(new A.Pointer(A.uint16,rt),"glyphCount"),lookupRecords:new A.Array(kt,"lookupCount")}}),Vt=new A.Struct({backtrackGlyphCount:A.uint16,backtrack:new A.Array(A.uint16,"backtrackGlyphCount"),inputGlyphCount:A.uint16,input:new A.Array(A.uint16,fA=>fA.inputGlyphCount-1),lookaheadGlyphCount:A.uint16,lookahead:new A.Array(A.uint16,"lookaheadGlyphCount"),lookupCount:A.uint16,lookupRecords:new A.Array(kt,"lookupCount")}),je=new A.Array(new A.Pointer(A.uint16,Vt),A.uint16),Ve=new A.VersionedStruct(A.uint16,{1:{coverage:new A.Pointer(A.uint16,rt),chainCount:A.uint16,chainRuleSets:new A.Array(new A.Pointer(A.uint16,je),"chainCount")},2:{coverage:new A.Pointer(A.uint16,rt),backtrackClassDef:new A.Pointer(A.uint16,ut),inputClassDef:new A.Pointer(A.uint16,ut),lookaheadClassDef:new A.Pointer(A.uint16,ut),chainCount:A.uint16,chainClassSet:new A.Array(new A.Pointer(A.uint16,je),"chainCount")},3:{backtrackGlyphCount:A.uint16,backtrackCoverage:new A.Array(new A.Pointer(A.uint16,rt),"backtrackGlyphCount"),inputGlyphCount:A.uint16,inputCoverage:new A.Array(new A.Pointer(A.uint16,rt),"inputGlyphCount"),lookaheadGlyphCount:A.uint16,lookaheadCoverage:new A.Array(new A.Pointer(A.uint16,rt),"lookaheadGlyphCount"),lookupCount:A.uint16,lookupRecords:new A.Array(kt,"lookupCount")}}),Qt=new A.Fixed(16,"BE",14),Et=new A.Struct({startCoord:Qt,peakCoord:Qt,endCoord:Qt}),_t=new A.Struct({axisCount:A.uint16,regionCount:A.uint16,variationRegions:new A.Array(new A.Array(Et,"axisCount"),"regionCount")}),ar=new A.Struct({shortDeltas:new A.Array(A.int16,fA=>fA.parent.shortDeltaCount),regionDeltas:new A.Array(A.int8,fA=>fA.parent.regionIndexCount-fA.parent.shortDeltaCount),deltas:fA=>fA.shortDeltas.concat(fA.regionDeltas)}),Ir=new A.Struct({itemCount:A.uint16,shortDeltaCount:A.uint16,regionIndexCount:A.uint16,regionIndexes:new A.Array(A.uint16,"regionIndexCount"),deltaSets:new A.Array(ar,"itemCount")}),TA=new A.Struct({format:A.uint16,variationRegionList:new A.Pointer(A.uint32,_t),variationDataCount:A.uint16,itemVariationData:new A.Array(new A.Pointer(A.uint32,Ir),"variationDataCount")}),GA=new A.VersionedStruct(A.uint16,{1:{axisIndex:A.uint16,axisIndex:A.uint16,filterRangeMinValue:Qt,filterRangeMaxValue:Qt}}),PA=new A.Struct({conditionCount:A.uint16,conditionTable:new A.Array(new A.Pointer(A.uint32,GA),"conditionCount")}),_A=new A.Struct({featureIndex:A.uint16,alternateFeatureTable:new A.Pointer(A.uint32,ye,{type:"parent"})}),qA=new A.Struct({version:A.fixed32,substitutionCount:A.uint16,substitutions:new A.Array(_A,"substitutionCount")}),OA=new A.Struct({conditionSet:new A.Pointer(A.uint32,PA,{type:"parent"}),featureTableSubstitution:new A.Pointer(A.uint32,qA,{type:"parent"})}),ce=new A.Struct({majorVersion:A.uint16,minorVersion:A.uint16,featureVariationRecordCount:A.uint32,featureVariationRecords:new A.Array(OA,"featureVariationRecordCount")});class WA{decode(l,I,S){return this.predefinedOps[S[0]]?this.predefinedOps[S[0]]:this.type.decode(l,I,S)}size(l,I){return this.type.size(l,I)}encode(l,I,S){let W=this.predefinedOps.indexOf(I);return W!==-1?W:this.type.encode(l,I,S)}constructor(l,I){this.predefinedOps=l,this.type=I}}class ie extends A.Number{decode(l){return A.uint8.decode(l)&127}constructor(){super("UInt8")}}let ne=new A.Struct({first:A.uint16,nLeft:A.uint8}),ve=new A.Struct({first:A.uint16,nLeft:A.uint16}),be=new A.VersionedStruct(new ie,{0:{nCodes:A.uint8,codes:new A.Array(A.uint8,"nCodes")},1:{nRanges:A.uint8,ranges:new A.Array(ne,"nRanges")}}),_e=new WA([Me,te],new _(be,{lazy:!0}));class st extends A.Array{decode(l,I){let S=(0,A.resolveLength)(this.length,l,I),W=0,eA=[];for(;W<S;){let V=this.type.decode(l,I);V.offset=W,W+=V.nLeft+1,eA.push(V)}return eA}}let Se=new A.VersionedStruct(A.uint8,{0:{glyphs:new A.Array(A.uint16,fA=>fA.parent.CharStrings.length-1)},1:{ranges:new st(ne,fA=>fA.parent.CharStrings.length-1)},2:{ranges:new st(ve,fA=>fA.parent.CharStrings.length-1)}}),ue=new WA([Qe,vA,me],new _(Se,{lazy:!0})),Ge=new A.Struct({first:A.uint16,fd:A.uint8}),et=new A.Struct({first:A.uint32,fd:A.uint16}),lt=new A.VersionedStruct(A.uint8,{0:{fds:new A.Array(A.uint8,fA=>fA.parent.CharStrings.length)},3:{nRanges:A.uint16,ranges:new A.Array(Ge,"nRanges"),sentinel:A.uint16},4:{nRanges:A.uint32,ranges:new A.Array(et,"nRanges"),sentinel:A.uint32}}),Dt=new _(UA);class wt{decode(l,I,S){return I.length=S[0],Dt.decode(l,I,[S[1]])}size(l,I){return[UA.size(l,I,!1),Dt.size(l,I)[0]]}encode(l,I,S){return[UA.size(I,S,!1),Dt.encode(l,I,S)[0]]}}let bt=new J([[18,"Private",new wt,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),at=new J([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",ue,Qe],[16,"Encoding",_e,Me],[17,"CharStrings",new _(new We),null],[18,"Private",new wt,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new _(lt),null],[[12,36],"FDArray",new _(new We(bt)),null],[[12,38],"FontName","sid",null]]),Mt=new A.Struct({length:A.uint16,itemVariationStore:TA}),tr=new J([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new _(new We),null],[[12,37],"FDSelect",new _(lt),null],[[12,36],"FDArray",new _(new We(bt)),null],[24,"vstore",new _(Mt),null],[25,"maxstack","number",193]]);var Jt=new A.VersionedStruct(A.fixed16,{1:{hdrSize:A.uint8,offSize:A.uint8,nameIndex:new We(new A.String("length")),topDictIndex:new We(at),stringIndex:new We(new A.String("length")),globalSubrIndex:new We},2:{hdrSize:A.uint8,length:A.uint16,topDict:tr,globalSubrIndex:new We}});class Ut{static decode(l){return new Ut(l)}decode(){this.stream.pos;let l=Jt.decode(this.stream);for(let I in l){let S=l[I];this[I]=S}if(this.version<2){if(this.topDictIndex.length!==1)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=this.topDict.ROS!=null,this}string(l){return this.version>=2?null:l<se.length?se[l]:this.stringIndex[l-se.length]}get postscriptName(){return this.version<2?this.nameIndex[0]:null}get fullName(){return this.string(this.topDict.FullName)}get familyName(){return this.string(this.topDict.FamilyName)}getCharString(l){return this.stream.pos=this.topDict.CharStrings[l].offset,this.stream.readBuffer(this.topDict.CharStrings[l].length)}getGlyphName(l){if(this.version>=2||this.isCIDFont)return null;let{charset:I}=this.topDict;if(Array.isArray(I))return I[l];if(l===0)return".notdef";switch(l-=1,I.version){case 0:return this.string(I.glyphs[l]);case 1:case 2:for(let S=0;S<I.ranges.length;S++){let W=I.ranges[S];if(W.offset<=l&&l<=W.offset+W.nLeft)return this.string(W.first+(l-W.offset))}break}return null}fdForGlyph(l){if(!this.topDict.FDSelect)return null;switch(this.topDict.FDSelect.version){case 0:return this.topDict.FDSelect.fds[l];case 3:case 4:let{ranges:I}=this.topDict.FDSelect,S=0,W=I.length-1;for(;S<=W;){let eA=S+W>>1;if(l<I[eA].first)W=eA-1;else if(eA<W&&l>=I[eA+1].first)S=eA+1;else return I[eA].fd}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(l){if(this.topDict.FDSelect){let I=this.fdForGlyph(l);return this.topDict.FDArray[I]?this.topDict.FDArray[I].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(l){this.stream=l,this.decode()}}var $t=Ut;let Bi=new A.Struct({glyphIndex:A.uint16,vertOriginY:A.int16});var pr=new A.Struct({majorVersion:A.uint16,minorVersion:A.uint16,defaultVertOriginY:A.int16,numVertOriginYMetrics:A.uint16,metrics:new A.Array(Bi,"numVertOriginYMetrics")});let hr=new A.Struct({height:A.uint8,width:A.uint8,horiBearingX:A.int8,horiBearingY:A.int8,horiAdvance:A.uint8,vertBearingX:A.int8,vertBearingY:A.int8,vertAdvance:A.uint8}),Pr=new A.Struct({height:A.uint8,width:A.uint8,bearingX:A.int8,bearingY:A.int8,advance:A.uint8}),Er=new A.Struct({glyph:A.uint16,xOffset:A.int8,yOffset:A.int8});class Rr{}class dr{}new A.VersionedStruct("version",{1:{metrics:Pr,data:Rr},2:{metrics:Pr,data:dr},5:{data:dr},6:{metrics:hr,data:Rr},7:{metrics:hr,data:dr},8:{metrics:Pr,pad:new A.Reserved(A.uint8),numComponents:A.uint16,components:new A.Array(Er,"numComponents")},9:{metrics:hr,pad:new A.Reserved(A.uint8),numComponents:A.uint16,components:new A.Array(Er,"numComponents")},17:{metrics:Pr,dataLen:A.uint32,data:new A.Buffer("dataLen")},18:{metrics:hr,dataLen:A.uint32,data:new A.Buffer("dataLen")},19:{dataLen:A.uint32,data:new A.Buffer("dataLen")}});let vr=new A.Struct({ascender:A.int8,descender:A.int8,widthMax:A.uint8,caretSlopeNumerator:A.int8,caretSlopeDenominator:A.int8,caretOffset:A.int8,minOriginSB:A.int8,minAdvanceSB:A.int8,maxBeforeBL:A.int8,minAfterBL:A.int8,pad:new A.Reserved(A.int8,2)}),yr=new A.Struct({glyphCode:A.uint16,offset:A.uint16}),xr=new A.VersionedStruct(A.uint16,{header:{imageFormat:A.uint16,imageDataOffset:A.uint32},1:{offsetArray:new A.Array(A.uint32,fA=>fA.parent.lastGlyphIndex-fA.parent.firstGlyphIndex+1)},2:{imageSize:A.uint32,bigMetrics:hr},3:{offsetArray:new A.Array(A.uint16,fA=>fA.parent.lastGlyphIndex-fA.parent.firstGlyphIndex+1)},4:{numGlyphs:A.uint32,glyphArray:new A.Array(yr,fA=>fA.numGlyphs+1)},5:{imageSize:A.uint32,bigMetrics:hr,numGlyphs:A.uint32,glyphCodeArray:new A.Array(A.uint16,"numGlyphs")}}),bi=new A.Struct({firstGlyphIndex:A.uint16,lastGlyphIndex:A.uint16,subtable:new A.Pointer(A.uint32,xr)}),mr=new A.Struct({indexSubTableArray:new A.Pointer(A.uint32,new A.Array(bi,1),{type:"parent"}),indexTablesSize:A.uint32,numberOfIndexSubTables:A.uint32,colorRef:A.uint32,hori:vr,vert:vr,startGlyphIndex:A.uint16,endGlyphIndex:A.uint16,ppemX:A.uint8,ppemY:A.uint8,bitDepth:A.uint8,flags:new A.Bitfield(A.uint8,["horizontal","vertical"])});var ii=new A.Struct({version:A.uint32,numSizes:A.uint32,sizes:new A.Array(mr,"numSizes")});let Ui=new A.Struct({ppem:A.uint16,resolution:A.uint16,imageOffsets:new A.Array(new A.Pointer(A.uint32,"void"),fA=>fA.parent.parent.maxp.numGlyphs+1)});var ni=new A.Struct({version:A.uint16,flags:new A.Bitfield(A.uint16,["renderOutlines"]),numImgTables:A.uint32,imageTables:new A.Array(new A.Pointer(A.uint32,Ui),"numImgTables")});let gr=new A.Struct({gid:A.uint16,paletteIndex:A.uint16}),Mi=new A.Struct({gid:A.uint16,firstLayerIndex:A.uint16,numLayers:A.uint16});var On=new A.Struct({version:A.uint16,numBaseGlyphRecords:A.uint16,baseGlyphRecord:new A.Pointer(A.uint32,new A.Array(Mi,"numBaseGlyphRecords")),layerRecords:new A.Pointer(A.uint32,new A.Array(gr,"numLayerRecords"),{lazy:!0}),numLayerRecords:A.uint16});let on=new A.Struct({blue:A.uint8,green:A.uint8,red:A.uint8,alpha:A.uint8});var Bn=new A.VersionedStruct(A.uint16,{header:{numPaletteEntries:A.uint16,numPalettes:A.uint16,numColorRecords:A.uint16,colorRecords:new A.Pointer(A.uint32,new A.Array(on,"numColorRecords")),colorRecordIndices:new A.Array(A.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new A.Pointer(A.uint32,new A.Array(A.uint32,"numPalettes")),offsetPaletteLabelArray:new A.Pointer(A.uint32,new A.Array(A.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new A.Pointer(A.uint32,new A.Array(A.uint16,"numPaletteEntries"))}});let li=new A.VersionedStruct(A.uint16,{1:{coordinate:A.int16},2:{coordinate:A.int16,referenceGlyph:A.uint16,baseCoordPoint:A.uint16},3:{coordinate:A.int16,deviceTable:new A.Pointer(A.uint16,Yt)}}),ln=new A.Struct({defaultIndex:A.uint16,baseCoordCount:A.uint16,baseCoords:new A.Array(new A.Pointer(A.uint16,li),"baseCoordCount")}),gn=new A.Struct({tag:new A.String(4),minCoord:new A.Pointer(A.uint16,li,{type:"parent"}),maxCoord:new A.Pointer(A.uint16,li,{type:"parent"})}),cn=new A.Struct({minCoord:new A.Pointer(A.uint16,li),maxCoord:new A.Pointer(A.uint16,li),featMinMaxCount:A.uint16,featMinMaxRecords:new A.Array(gn,"featMinMaxCount")}),Wn=new A.Struct({tag:new A.String(4),minMax:new A.Pointer(A.uint16,cn,{type:"parent"})}),Kn=new A.Struct({baseValues:new A.Pointer(A.uint16,ln),defaultMinMax:new A.Pointer(A.uint16,cn),baseLangSysCount:A.uint16,baseLangSysRecords:new A.Array(Wn,"baseLangSysCount")}),Vn=new A.Struct({tag:new A.String(4),script:new A.Pointer(A.uint16,Kn,{type:"parent"})}),Xn=new A.Array(Vn,A.uint16),Zn=new A.Array(new A.String(4),A.uint16),En=new A.Struct({baseTagList:new A.Pointer(A.uint16,Zn),baseScriptList:new A.Pointer(A.uint16,Xn)});var _n=new A.VersionedStruct(A.uint32,{header:{horizAxis:new A.Pointer(A.uint16,En),vertAxis:new A.Pointer(A.uint16,En)},65536:{},65537:{itemVariationStore:new A.Pointer(A.uint32,TA)}});let wn=new A.Array(A.uint16,A.uint16),gi=new A.Struct({coverage:new A.Pointer(A.uint16,rt),glyphCount:A.uint16,attachPoints:new A.Array(new A.Pointer(A.uint16,wn),"glyphCount")}),Di=new A.VersionedStruct(A.uint16,{1:{coordinate:A.int16},2:{caretValuePoint:A.uint16},3:{coordinate:A.int16,deviceTable:new A.Pointer(A.uint16,Yt)}}),Ki=new A.Array(new A.Pointer(A.uint16,Di),A.uint16),qn=new A.Struct({coverage:new A.Pointer(A.uint16,rt),ligGlyphCount:A.uint16,ligGlyphs:new A.Array(new A.Pointer(A.uint16,Ki),"ligGlyphCount")}),fn=new A.Struct({markSetTableFormat:A.uint16,markSetCount:A.uint16,coverage:new A.Array(new A.Pointer(A.uint32,rt),"markSetCount")});var $n=new A.VersionedStruct(A.uint32,{header:{glyphClassDef:new A.Pointer(A.uint16,ut),attachList:new A.Pointer(A.uint16,gi),ligCaretList:new A.Pointer(A.uint16,qn),markAttachClassDef:new A.Pointer(A.uint16,ut)},65536:{},65538:{markGlyphSetsDef:new A.Pointer(A.uint16,fn)},65539:{markGlyphSetsDef:new A.Pointer(A.uint16,fn),itemVariationStore:new A.Pointer(A.uint32,TA)}});let Jr=new A.Bitfield(A.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),As={xPlacement:A.int16,yPlacement:A.int16,xAdvance:A.int16,yAdvance:A.int16,xPlaDevice:new A.Pointer(A.uint16,Yt,{type:"global",relativeTo:fA=>fA.rel}),yPlaDevice:new A.Pointer(A.uint16,Yt,{type:"global",relativeTo:fA=>fA.rel}),xAdvDevice:new A.Pointer(A.uint16,Yt,{type:"global",relativeTo:fA=>fA.rel}),yAdvDevice:new A.Pointer(A.uint16,Yt,{type:"global",relativeTo:fA=>fA.rel})};class ci{buildStruct(l){let I=l;for(;!I[this.key]&&I.parent;)I=I.parent;if(!I[this.key])return;let S={};S.rel=()=>I._startOffset;let W=I[this.key];for(let eA in W)W[eA]&&(S[eA]=As[eA]);return new A.Struct(S)}size(l,I){return this.buildStruct(I).size(l,I)}decode(l,I){let S=this.buildStruct(I).decode(l,I);return delete S.rel,S}constructor(l="valueFormat"){this.key=l}}let es=new A.Struct({secondGlyph:A.uint16,value1:new ci("valueFormat1"),value2:new ci("valueFormat2")}),ts=new A.Array(es,A.uint16),rs=new A.Struct({value1:new ci("valueFormat1"),value2:new ci("valueFormat2")}),Ii=new A.VersionedStruct(A.uint16,{1:{xCoordinate:A.int16,yCoordinate:A.int16},2:{xCoordinate:A.int16,yCoordinate:A.int16,anchorPoint:A.uint16},3:{xCoordinate:A.int16,yCoordinate:A.int16,xDeviceTable:new A.Pointer(A.uint16,Yt),yDeviceTable:new A.Pointer(A.uint16,Yt)}}),is=new A.Struct({entryAnchor:new A.Pointer(A.uint16,Ii,{type:"parent"}),exitAnchor:new A.Pointer(A.uint16,Ii,{type:"parent"})}),hn=new A.Struct({class:A.uint16,markAnchor:new A.Pointer(A.uint16,Ii,{type:"parent"})}),Vi=new A.Array(hn,A.uint16),ns=new A.Array(new A.Pointer(A.uint16,Ii),fA=>fA.parent.classCount),xA=new A.Array(ns,A.uint16),n=new A.Array(new A.Pointer(A.uint16,Ii),fA=>fA.parent.parent.classCount),U=new A.Array(n,A.uint16),H=new A.Array(new A.Pointer(A.uint16,U),A.uint16),aA=new A.VersionedStruct("lookupType",{1:new A.VersionedStruct(A.uint16,{1:{coverage:new A.Pointer(A.uint16,rt),valueFormat:Jr,value:new ci},2:{coverage:new A.Pointer(A.uint16,rt),valueFormat:Jr,valueCount:A.uint16,values:new A.LazyArray(new ci,"valueCount")}}),2:new A.VersionedStruct(A.uint16,{1:{coverage:new A.Pointer(A.uint16,rt),valueFormat1:Jr,valueFormat2:Jr,pairSetCount:A.uint16,pairSets:new A.LazyArray(new A.Pointer(A.uint16,ts),"pairSetCount")},2:{coverage:new A.Pointer(A.uint16,rt),valueFormat1:Jr,valueFormat2:Jr,classDef1:new A.Pointer(A.uint16,ut),classDef2:new A.Pointer(A.uint16,ut),class1Count:A.uint16,class2Count:A.uint16,classRecords:new A.LazyArray(new A.LazyArray(rs,"class2Count"),"class1Count")}}),3:{format:A.uint16,coverage:new A.Pointer(A.uint16,rt),entryExitCount:A.uint16,entryExitRecords:new A.Array(is,"entryExitCount")},4:{format:A.uint16,markCoverage:new A.Pointer(A.uint16,rt),baseCoverage:new A.Pointer(A.uint16,rt),classCount:A.uint16,markArray:new A.Pointer(A.uint16,Vi),baseArray:new A.Pointer(A.uint16,xA)},5:{format:A.uint16,markCoverage:new A.Pointer(A.uint16,rt),ligatureCoverage:new A.Pointer(A.uint16,rt),classCount:A.uint16,markArray:new A.Pointer(A.uint16,Vi),ligatureArray:new A.Pointer(A.uint16,H)},6:{format:A.uint16,mark1Coverage:new A.Pointer(A.uint16,rt),mark2Coverage:new A.Pointer(A.uint16,rt),classCount:A.uint16,mark1Array:new A.Pointer(A.uint16,Vi),mark2Array:new A.Pointer(A.uint16,xA)},7:jt,8:Ve,9:{posFormat:A.uint16,lookupType:A.uint16,extension:new A.Pointer(A.uint32,null)}});aA.versions[9].extension.type=aA;var QA=new A.VersionedStruct(A.uint32,{header:{scriptList:new A.Pointer(A.uint16,jA),featureList:new A.Pointer(A.uint16,Je),lookupList:new A.Pointer(A.uint16,new ht(aA))},65536:{},65537:{featureVariations:new A.Pointer(A.uint32,ce)}});let YA=new A.Array(A.uint16,A.uint16),LA=YA,JA=new A.Struct({glyph:A.uint16,compCount:A.uint16,components:new A.Array(A.uint16,fA=>fA.compCount-1)}),fe=new A.Array(new A.Pointer(A.uint16,JA),A.uint16),Ee=new A.VersionedStruct("lookupType",{1:new A.VersionedStruct(A.uint16,{1:{coverage:new A.Pointer(A.uint16,rt),deltaGlyphID:A.int16},2:{coverage:new A.Pointer(A.uint16,rt),glyphCount:A.uint16,substitute:new A.LazyArray(A.uint16,"glyphCount")}}),2:{substFormat:A.uint16,coverage:new A.Pointer(A.uint16,rt),count:A.uint16,sequences:new A.LazyArray(new A.Pointer(A.uint16,YA),"count")},3:{substFormat:A.uint16,coverage:new A.Pointer(A.uint16,rt),count:A.uint16,alternateSet:new A.LazyArray(new A.Pointer(A.uint16,LA),"count")},4:{substFormat:A.uint16,coverage:new A.Pointer(A.uint16,rt),count:A.uint16,ligatureSets:new A.LazyArray(new A.Pointer(A.uint16,fe),"count")},5:jt,6:Ve,7:{substFormat:A.uint16,lookupType:A.uint16,extension:new A.Pointer(A.uint32,null)},8:{substFormat:A.uint16,coverage:new A.Pointer(A.uint16,rt),backtrackCoverage:new A.Array(new A.Pointer(A.uint16,rt),"backtrackGlyphCount"),lookaheadGlyphCount:A.uint16,lookaheadCoverage:new A.Array(new A.Pointer(A.uint16,rt),"lookaheadGlyphCount"),glyphCount:A.uint16,substitutes:new A.Array(A.uint16,"glyphCount")}});Ee.versions[7].extension.type=Ee;var pe=new A.VersionedStruct(A.uint32,{header:{scriptList:new A.Pointer(A.uint16,jA),featureList:new A.Pointer(A.uint16,Je),lookupList:new A.Pointer(A.uint16,new ht(Ee))},65536:{},65537:{featureVariations:new A.Pointer(A.uint32,ce)}});let Ce=new A.Array(A.uint16,A.uint16),M=new A.Struct({shrinkageEnableGSUB:new A.Pointer(A.uint16,Ce),shrinkageDisableGSUB:new A.Pointer(A.uint16,Ce),shrinkageEnableGPOS:new A.Pointer(A.uint16,Ce),shrinkageDisableGPOS:new A.Pointer(A.uint16,Ce),shrinkageJstfMax:new A.Pointer(A.uint16,new ht(aA)),extensionEnableGSUB:new A.Pointer(A.uint16,Ce),extensionDisableGSUB:new A.Pointer(A.uint16,Ce),extensionEnableGPOS:new A.Pointer(A.uint16,Ce),extensionDisableGPOS:new A.Pointer(A.uint16,Ce),extensionJstfMax:new A.Pointer(A.uint16,new ht(aA))}),c=new A.Array(new A.Pointer(A.uint16,M),A.uint16),P=new A.Struct({tag:new A.String(4),jstfLangSys:new A.Pointer(A.uint16,c)}),F=new A.Struct({extenderGlyphs:new A.Pointer(A.uint16,new A.Array(A.uint16,A.uint16)),defaultLangSys:new A.Pointer(A.uint16,c),langSysCount:A.uint16,langSysRecords:new A.Array(P,"langSysCount")}),j=new A.Struct({tag:new A.String(4),script:new A.Pointer(A.uint16,F,{type:"parent"})});var sA=new A.Struct({version:A.uint32,scriptCount:A.uint16,scriptList:new A.Array(j,"scriptCount")});class RA{decode(l,I){switch(this.size(0,I)){case 1:return l.readUInt8();case 2:return l.readUInt16BE();case 3:return l.readUInt24BE();case 4:return l.readUInt32BE()}}size(l,I){return(0,A.resolveLength)(this._size,null,I)}constructor(l){this._size=l}}let XA=new A.Struct({entry:new RA(fA=>((fA.parent.entryFormat&48)>>4)+1),outerIndex:fA=>fA.entry>>(fA.parent.entryFormat&15)+1,innerIndex:fA=>fA.entry&(1<<(fA.parent.entryFormat&15)+1)-1}),ae=new A.Struct({entryFormat:A.uint16,mapCount:A.uint16,mapData:new A.Array(XA,"mapCount")});var Ie=new A.Struct({majorVersion:A.uint16,minorVersion:A.uint16,itemVariationStore:new A.Pointer(A.uint32,TA),advanceWidthMapping:new A.Pointer(A.uint32,ae),LSBMapping:new A.Pointer(A.uint32,ae),RSBMapping:new A.Pointer(A.uint32,ae)});let De=new A.Struct({format:A.uint32,length:A.uint32,offset:A.uint32}),he=new A.Struct({reserved:new A.Reserved(A.uint16,2),cbSignature:A.uint32,signature:new A.Buffer("cbSignature")});var xe=new A.Struct({ulVersion:A.uint32,usNumSigs:A.uint16,usFlag:A.uint16,signatures:new A.Array(De,"usNumSigs"),signatureBlocks:new A.Array(he,"usNumSigs")});let qe=new A.Struct({rangeMaxPPEM:A.uint16,rangeGaspBehavior:new A.Bitfield(A.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])});var ke=new A.Struct({version:A.uint16,numRanges:A.uint16,gaspRanges:new A.Array(qe,"numRanges")});let Ze=new A.Struct({pixelSize:A.uint8,maximumWidth:A.uint8,widths:new A.Array(A.uint8,fA=>fA.parent.parent.maxp.numGlyphs)});var He=new A.Struct({version:A.uint16,numRecords:A.int16,sizeDeviceRecord:A.int32,records:new A.Array(Ze,"numRecords")});let At=new A.Struct({left:A.uint16,right:A.uint16,value:A.int16}),Xe=new A.Struct({firstGlyph:A.uint16,nGlyphs:A.uint16,offsets:new A.Array(A.uint16,"nGlyphs"),max:fA=>fA.offsets.length&&Math.max.apply(Math,fA.offsets)}),gt=new A.Struct({off:fA=>fA._startOffset-fA.parent.parent._startOffset,len:fA=>((fA.parent.leftTable.max-fA.off)/fA.parent.rowWidth+1)*(fA.parent.rowWidth/2),values:new A.LazyArray(A.int16,"len")}),Ht=new A.VersionedStruct("format",{0:{nPairs:A.uint16,searchRange:A.uint16,entrySelector:A.uint16,rangeShift:A.uint16,pairs:new A.Array(At,"nPairs")},2:{rowWidth:A.uint16,leftTable:new A.Pointer(A.uint16,Xe,{type:"parent"}),rightTable:new A.Pointer(A.uint16,Xe,{type:"parent"}),array:new A.Pointer(A.uint16,gt,{type:"parent"})},3:{glyphCount:A.uint16,kernValueCount:A.uint8,leftClassCount:A.uint8,rightClassCount:A.uint8,flags:A.uint8,kernValue:new A.Array(A.int16,"kernValueCount"),leftClass:new A.Array(A.uint8,"glyphCount"),rightClass:new A.Array(A.uint8,"glyphCount"),kernIndex:new A.Array(A.uint8,fA=>fA.leftClassCount*fA.rightClassCount)}}),Ot=new A.VersionedStruct("version",{0:{subVersion:A.uint16,length:A.uint16,format:A.uint8,coverage:new A.Bitfield(A.uint8,["horizontal","minimum","crossStream","override"]),subtable:Ht,padding:new A.Reserved(A.uint8,fA=>fA.length-fA._currentOffset)},1:{length:A.uint32,coverage:new A.Bitfield(A.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:A.uint8,tupleIndex:A.uint16,subtable:Ht,padding:new A.Reserved(A.uint8,fA=>fA.length-fA._currentOffset)}});var zt=new A.VersionedStruct(A.uint16,{0:{nTables:A.uint16,tables:new A.Array(Ot,"nTables")},1:{reserved:new A.Reserved(A.uint16),nTables:A.uint32,tables:new A.Array(Ot,"nTables")}}),ot=new A.Struct({version:A.uint16,numGlyphs:A.uint16,yPels:new A.Array(A.uint8,"numGlyphs")}),Nt=new A.Struct({version:A.uint16,fontNumber:A.uint32,pitch:A.uint16,xHeight:A.uint16,style:A.uint16,typeFamily:A.uint16,capHeight:A.uint16,symbolSet:A.uint16,typeface:new A.String(16),characterComplement:new A.String(8),fileName:new A.String(6),strokeWeight:new A.String(1),widthType:new A.String(1),serifStyle:A.uint8,reserved:new A.Reserved(A.uint8)});let Fr=new A.Struct({bCharSet:A.uint8,xRatio:A.uint8,yStartRatio:A.uint8,yEndRatio:A.uint8}),cr=new A.Struct({yPelHeight:A.uint16,yMax:A.int16,yMin:A.int16}),Or=new A.Struct({recs:A.uint16,startsz:A.uint8,endsz:A.uint8,entries:new A.Array(cr,"recs")});var Nr=new A.Struct({version:A.uint16,numRecs:A.uint16,numRatios:A.uint16,ratioRanges:new A.Array(Fr,"numRatios"),offsets:new A.Array(A.uint16,"numRatios"),groups:new A.Array(Or,"numRecs")}),pi=new A.Struct({version:A.uint16,ascent:A.int16,descent:A.int16,lineGap:A.int16,advanceHeightMax:A.int16,minTopSideBearing:A.int16,minBottomSideBearing:A.int16,yMaxExtent:A.int16,caretSlopeRise:A.int16,caretSlopeRun:A.int16,caretOffset:A.int16,reserved:new A.Reserved(A.int16,4),metricDataFormat:A.int16,numberOfMetrics:A.uint16});let Fs=new A.Struct({advance:A.uint16,bearing:A.int16});var Xi=new A.Struct({metrics:new A.LazyArray(Fs,fA=>fA.parent.vhea.numberOfMetrics),bearings:new A.LazyArray(A.int16,fA=>fA.parent.maxp.numGlyphs-fA.parent.vhea.numberOfMetrics)});let Ys=new A.Fixed(16,"BE",14),ma=new A.Struct({fromCoord:Ys,toCoord:Ys}),Jl=new A.Struct({pairCount:A.uint16,correspondence:new A.Array(ma,"pairCount")});var Ol=new A.Struct({version:A.fixed32,axisCount:A.uint32,segment:new A.Array(Jl,"axisCount")});class Wl{getItem(l){if(this._items[l]==null){let I=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*l,this._items[l]=this.type.decode(this.stream,this.parent),this.stream.pos=I}return this._items[l]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(l,I,S){this.type=l,this.stream=I,this.parent=S,this.base=this.stream.pos,this._items=[]}}class Ei extends A.Array{decode(l,I){return new Wl(this.type,l,I)}constructor(l){super(l,0)}}let zi=function(fA=A.uint16){class l{decode(SA,VA){return VA=VA.parent.parent,this.type.decode(SA,VA)}size(SA,VA){return VA=VA.parent.parent,this.type.size(SA,VA)}encode(SA,VA,re){return re=re.parent.parent,this.type.encode(SA,VA,re)}constructor(SA){this.type=SA}}fA=new l(fA);let I=new A.Struct({unitSize:A.uint16,nUnits:A.uint16,searchRange:A.uint16,entrySelector:A.uint16,rangeShift:A.uint16}),S=new A.Struct({lastGlyph:A.uint16,firstGlyph:A.uint16,value:fA}),W=new A.Struct({lastGlyph:A.uint16,firstGlyph:A.uint16,values:new A.Pointer(A.uint16,new A.Array(fA,V=>V.lastGlyph-V.firstGlyph+1),{type:"parent"})}),eA=new A.Struct({glyph:A.uint16,value:fA});return new A.VersionedStruct(A.uint16,{0:{values:new Ei(fA)},2:{binarySearchHeader:I,segments:new A.Array(S,V=>V.binarySearchHeader.nUnits)},4:{binarySearchHeader:I,segments:new A.Array(W,V=>V.binarySearchHeader.nUnits)},6:{binarySearchHeader:I,segments:new A.Array(eA,V=>V.binarySearchHeader.nUnits)},8:{firstGlyph:A.uint16,count:A.uint16,values:new A.Array(fA,"count")}})};function vs(fA={},l=A.uint16){let I=Object.assign({newState:A.uint16,flags:A.uint16},fA),S=new A.Struct(I),W=new Ei(new A.Array(A.uint16,V=>V.nClasses));return new A.Struct({nClasses:A.uint32,classTable:new A.Pointer(A.uint32,new zi(l)),stateArray:new A.Pointer(A.uint32,W),entryTable:new A.Pointer(A.uint32,new Ei(S))})}function Kl(fA={},l=A.uint16){let I=new A.Struct({version(){return 8},firstGlyph:A.uint16,values:new A.Array(A.uint8,A.uint16)}),S=Object.assign({newStateOffset:A.uint16,newState:SA=>(SA.newStateOffset-(SA.parent.stateArray.base-SA.parent._startOffset))/SA.parent.nClasses,flags:A.uint16},fA),W=new A.Struct(S),eA=new Ei(new A.Array(A.uint8,SA=>SA.nClasses));return new A.Struct({nClasses:A.uint16,classTable:new A.Pointer(A.uint16,I),stateArray:new A.Pointer(A.uint16,eA),entryTable:new A.Pointer(A.uint16,new Ei(W))})}let Vl=new A.VersionedStruct("format",{0:{deltas:new A.Array(A.int16,32)},1:{deltas:new A.Array(A.int16,32),mappingData:new zi(A.uint16)},2:{standardGlyph:A.uint16,controlPoints:new A.Array(A.uint16,32)},3:{standardGlyph:A.uint16,controlPoints:new A.Array(A.uint16,32),mappingData:new zi(A.uint16)}});var Xl=new A.Struct({version:A.fixed32,format:A.uint16,defaultBaseline:A.uint16,subtable:Vl});let Zl=new A.Struct({setting:A.uint16,nameIndex:A.int16,name:fA=>fA.parent.parent.parent.name.records.fontFeatures[fA.nameIndex]}),_l=new A.Struct({feature:A.uint16,nSettings:A.uint16,settingTable:new A.Pointer(A.uint32,new A.Array(Zl,"nSettings"),{type:"parent"}),featureFlags:new A.Bitfield(A.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:A.uint8,nameIndex:A.int16,name:fA=>fA.parent.parent.name.records.fontFeatures[fA.nameIndex]});var ql=new A.Struct({version:A.fixed32,featureNameCount:A.uint16,reserved1:new A.Reserved(A.uint16),reserved2:new A.Reserved(A.uint32),featureNames:new A.Array(_l,"featureNameCount")});let $l=new A.Struct({axisTag:new A.String(4),minValue:A.fixed32,defaultValue:A.fixed32,maxValue:A.fixed32,flags:A.uint16,nameID:A.uint16,name:fA=>fA.parent.parent.name.records.fontFeatures[fA.nameID]}),Ag=new A.Struct({nameID:A.uint16,name:fA=>fA.parent.parent.name.records.fontFeatures[fA.nameID],flags:A.uint16,coord:new A.Array(A.fixed32,fA=>fA.parent.axisCount),postscriptNameID:new A.Optional(A.uint16,fA=>fA.parent.instanceSize-fA._currentOffset>0)});var eg=new A.Struct({version:A.fixed32,offsetToData:A.uint16,countSizePairs:A.uint16,axisCount:A.uint16,axisSize:A.uint16,instanceCount:A.uint16,instanceSize:A.uint16,axis:new A.Array($l,"axisCount"),instance:new A.Array(Ag,"instanceCount")});let tg=new A.Fixed(16,"BE",14);class rg{static decode(l,I){return I.flags?l.readUInt32BE():l.readUInt16BE()*2}}var ig=new A.Struct({version:A.uint16,reserved:new A.Reserved(A.uint16),axisCount:A.uint16,globalCoordCount:A.uint16,globalCoords:new A.Pointer(A.uint32,new A.Array(new A.Array(tg,"axisCount"),"globalCoordCount")),glyphCount:A.uint16,flags:A.uint16,offsetToData:A.uint32,offsets:new A.Array(new A.Pointer(rg,"void",{relativeTo:fA=>fA.offsetToData,allowNull:!1}),fA=>fA.glyphCount+1)});let ng=new A.Struct({length:A.uint16,coverage:A.uint16,subFeatureFlags:A.uint32,stateTable:new Kl}),sg=new A.Struct({justClass:A.uint32,beforeGrowLimit:A.fixed32,beforeShrinkLimit:A.fixed32,afterGrowLimit:A.fixed32,afterShrinkLimit:A.fixed32,growFlags:A.uint16,shrinkFlags:A.uint16}),ag=new A.Array(sg,A.uint32),og=new A.VersionedStruct("actionType",{0:{lowerLimit:A.fixed32,upperLimit:A.fixed32,order:A.uint16,glyphs:new A.Array(A.uint16,A.uint16)},1:{addGlyph:A.uint16},2:{substThreshold:A.fixed32,addGlyph:A.uint16,substGlyph:A.uint16},3:{},4:{variationAxis:A.uint32,minimumLimit:A.fixed32,noStretchValue:A.fixed32,maximumLimit:A.fixed32},5:{flags:A.uint16,glyph:A.uint16}}),Bg=new A.Struct({actionClass:A.uint16,actionType:A.uint16,actionLength:A.uint32,actionData:og,padding:new A.Reserved(A.uint8,fA=>fA.actionLength-fA._currentOffset)}),lg=new A.Array(Bg,A.uint32),gg=new A.Struct({lookupTable:new zi(new A.Pointer(A.uint16,lg))}),Ro=new A.Struct({classTable:new A.Pointer(A.uint16,ng,{type:"parent"}),wdcOffset:A.uint16,postCompensationTable:new A.Pointer(A.uint16,gg,{type:"parent"}),widthDeltaClusters:new zi(new A.Pointer(A.uint16,ag,{type:"parent",relativeTo:fA=>fA.wdcOffset}))});var cg=new A.Struct({version:A.uint32,format:A.uint16,horizontal:new A.Pointer(A.uint16,Ro),vertical:new A.Pointer(A.uint16,Ro)});let Eg={action:A.uint16},wg={markIndex:A.uint16,currentIndex:A.uint16},fg={currentInsertIndex:A.uint16,markedInsertIndex:A.uint16},hg=new A.Struct({items:new Ei(new A.Pointer(A.uint32,new zi))}),ug=new A.VersionedStruct("type",{0:{stateTable:new vs},1:{stateTable:new vs(wg),substitutionTable:new A.Pointer(A.uint32,hg)},2:{stateTable:new vs(Eg),ligatureActions:new A.Pointer(A.uint32,new Ei(A.uint32)),components:new A.Pointer(A.uint32,new Ei(A.uint16)),ligatureList:new A.Pointer(A.uint32,new Ei(A.uint16))},4:{lookupTable:new zi},5:{stateTable:new vs(fg),insertionActions:new A.Pointer(A.uint32,new Ei(A.uint16))}}),Qg=new A.Struct({length:A.uint32,coverage:A.uint24,type:A.uint8,subFeatureFlags:A.uint32,table:ug,padding:new A.Reserved(A.uint8,fA=>fA.length-fA._currentOffset)}),Cg=new A.Struct({featureType:A.uint16,featureSetting:A.uint16,enableFlags:A.uint32,disableFlags:A.uint32}),dg=new A.Struct({defaultFlags:A.uint32,chainLength:A.uint32,nFeatureEntries:A.uint32,nSubtables:A.uint32,features:new A.Array(Cg,"nFeatureEntries"),subtables:new A.Array(Qg,"nSubtables")});var Mg=new A.Struct({version:A.uint16,unused:new A.Reserved(A.uint16),nChains:A.uint32,chains:new A.Array(dg,"nChains")});let Dg=new A.Struct({left:A.int16,top:A.int16,right:A.int16,bottom:A.int16});var Ig=new A.Struct({version:A.fixed32,format:A.uint16,lookupTable:new zi(Dg)});let pt={};var ms=pt;pt.cmap=cA,pt.head=yA,pt.hhea=zA,pt.hmtx=HA,pt.maxp=pA,pt.name=MA,pt["OS/2"]=CA,pt.post=$A,pt.fpgm=kA,pt.loca=Te,pt.prep=Re,pt["cvt "]=ZA,pt.glyf=ze,pt["CFF "]=$t,pt.CFF2=$t,pt.VORG=pr,pt.EBLC=ii,pt.CBLC=pt.EBLC,pt.sbix=ni,pt.COLR=On,pt.CPAL=Bn,pt.BASE=_n,pt.GDEF=$n,pt.GPOS=QA,pt.GSUB=pe,pt.JSTF=sA,pt.HVAR=Ie,pt.DSIG=xe,pt.gasp=ke,pt.hdmx=He,pt.kern=zt,pt.LTSH=ot,pt.PCLT=Nt,pt.VDMX=Nr,pt.vhea=pi,pt.vmtx=Xi,pt.avar=Ol,pt.bsln=Xl,pt.feat=ql,pt.fvar=eg,pt.gvar=ig,pt.just=cg,pt.morx=Mg,pt.opbd=Ig;let pg=new A.Struct({tag:new A.String(4),checkSum:A.uint32,offset:new A.Pointer(A.uint32,"void",{type:"global"}),length:A.uint32}),ba=new A.Struct({tag:new A.String(4),numTables:A.uint16,searchRange:A.uint16,entrySelector:A.uint16,rangeShift:A.uint16,tables:new A.Array(pg,"numTables")});ba.process=function(){let fA={};for(let l of this.tables)fA[l.tag]=l;this.tables=fA},ba.preEncode=function(){if(!Array.isArray(this.tables)){let I=[];for(let S in this.tables){let W=this.tables[S];W&&I.push({tag:S,checkSum:0,offset:new A.VoidPointer(ms[S],W),length:ms[S].size(W)})}this.tables=I}this.tag="true",this.numTables=this.tables.length;let fA=Math.floor(Math.log(this.numTables)/Math.LN2),l=Math.pow(2,fA);this.searchRange=l*16,this.entrySelector=Math.log(l)/Math.LN2,this.rangeShift=this.numTables*16-this.searchRange};var No=ba;function bs(fA,l){let I=0,S=fA.length-1;for(;I<=S;){let W=I+S>>1,eA=l(fA[W]);if(eA<0)S=W-1;else if(eA>0)I=W+1;else return W}return-1}function un(fA,l){let I=[];for(;fA<l;)I.push(fA++);return I}const Us=new TextDecoder("ascii"),So="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ss=new Uint8Array(256);for(let fA=0;fA<So.length;fA++)ss[So.charCodeAt(fA)]=fA;function Ua(fA){let l=fA.length*.75;fA[fA.length-1]==="="&&(l--,fA[fA.length-2]==="="&&l--);let I=new Uint8Array(l),S=0;for(let W=0,eA=fA.length;W<eA;W+=4){let V=ss[fA.charCodeAt(W)],SA=ss[fA.charCodeAt(W+1)],VA=ss[fA.charCodeAt(W+2)],re=ss[fA.charCodeAt(W+3)];I[S++]=V<<2|SA>>4,I[S++]=(SA&15)<<4|VA>>2,I[S++]=(VA&3)<<6|re&63}return I}class za{findSubtable(l,I){for(let[S,W]of I)for(let eA of l.tables)if(eA.platformID===S&&eA.encodingID===W)return eA.table;return null}lookup(l,I){if(this.encoding)l=this.encoding.get(l)||l;else if(I){let W=this.getVariationSelector(l,I);if(W)return W}let S=this.cmap;switch(S.version){case 0:return S.codeMap.get(l)||0;case 4:{let W=0,eA=S.segCount-1;for(;W<=eA;){let V=W+eA>>1;if(l<S.startCode.get(V))eA=V-1;else if(l>S.endCode.get(V))W=V+1;else{let SA=S.idRangeOffset.get(V),VA;if(SA===0)VA=l+S.idDelta.get(V);else{let re=SA/2+(l-S.startCode.get(V))-(S.segCount-V);VA=S.glyphIndexArray.get(re)||0,VA!==0&&(VA+=S.idDelta.get(V))}return VA&65535}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return S.glyphIndices.get(l-S.firstCode)||0;case 12:case 13:{let W=0,eA=S.nGroups-1;for(;W<=eA;){let V=W+eA>>1,SA=S.groups.get(V);if(l<SA.startCharCode)eA=V-1;else if(l>SA.endCharCode)W=V+1;else return S.version===12?SA.glyphID+(l-SA.startCharCode):SA.glyphID}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${S.version}`)}}getVariationSelector(l,I){if(!this.uvs)return 0;let S=this.uvs.varSelectors.toArray(),W=bs(S,V=>I-V.varSelector),eA=S[W];return W!==-1&&eA.defaultUVS&&(W=bs(eA.defaultUVS,V=>l<V.startUnicodeValue?-1:l>V.startUnicodeValue+V.additionalCount?1:0)),W!==-1&&eA.nonDefaultUVS&&(W=bs(eA.nonDefaultUVS,V=>l-V.unicodeValue),W!==-1)?eA.nonDefaultUVS[W].glyphID:0}getCharacterSet(){let l=this.cmap;switch(l.version){case 0:return un(0,l.codeMap.length);case 4:{let I=[],S=l.endCode.toArray();for(let W=0;W<S.length;W++){let eA=S[W]+1,V=l.startCode.get(W);I.push(...un(V,eA))}return I}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return un(l.firstCode,l.firstCode+l.glyphIndices.length);case 12:case 13:{let I=[];for(let S of l.groups.toArray())I.push(...un(S.startCharCode,S.endCharCode+1));return I}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${l.version}`)}}codePointsForGlyph(l){let I=this.cmap;switch(I.version){case 0:{let W=[];for(let eA=0;eA<256;eA++)I.codeMap.get(eA)===l&&W.push(eA);return W}case 4:{let W=[];for(let eA=0;eA<I.segCount;eA++){let V=I.endCode.get(eA),SA=I.startCode.get(eA),VA=I.idRangeOffset.get(eA),re=I.idDelta.get(eA);for(var S=SA;S<=V;S++){let le=0;if(VA===0)le=S+re;else{let oe=VA/2+(S-SA)-(I.segCount-eA);le=I.glyphIndexArray.get(oe)||0,le!==0&&(le+=re)}le===l&&W.push(S)}}return W}case 12:{let W=[];for(let eA of I.groups.toArray())l>=eA.glyphID&&l<=eA.glyphID+(eA.endCharCode-eA.startCharCode)&&W.push(eA.startCharCode+(l-eA.glyphID));return W}case 13:{let W=[];for(let eA of I.groups.toArray())l===eA.glyphID&&W.push(...un(eA.startCharCode,eA.endCharCode+1));return W}default:throw new Error(`Unknown cmap format ${I.version}`)}}constructor(l){if(this.encoding=null,this.cmap=this.findSubtable(l,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let I of l.tables){let S=NA(I.platformID,I.encodingID,I.table.language-1),W=R(S);W&&(this.cmap=I.table,this.encoding=W)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(l,[[0,5]]),this.uvs&&this.uvs.version!==14&&(this.uvs=null)}}(0,f._)([X],za.prototype,"getCharacterSet",null),(0,f._)([X],za.prototype,"codePointsForGlyph",null);class yg{process(l,I){for(let S=0;S<l.length-1;S++){let W=l[S].id,eA=l[S+1].id;I[S].xAdvance+=this.getKerning(W,eA)}}getKerning(l,I){let S=0;for(let W of this.kern.tables){if(W.coverage.crossStream)continue;switch(W.version){case 0:if(!W.coverage.horizontal)continue;break;case 1:if(W.coverage.vertical||W.coverage.variation)continue;break;default:throw new Error(`Unsupported kerning table version ${W.version}`)}let eA=0,V=W.subtable;switch(W.format){case 0:let SA=bs(V.pairs,function(oe){return l-oe.left||I-oe.right});SA>=0&&(eA=V.pairs[SA].value);break;case 2:let VA=0,re=0;l>=V.leftTable.firstGlyph&&l<V.leftTable.firstGlyph+V.leftTable.nGlyphs?VA=V.leftTable.offsets[l-V.leftTable.firstGlyph]:VA=V.array.off,I>=V.rightTable.firstGlyph&&I<V.rightTable.firstGlyph+V.rightTable.nGlyphs&&(re=V.rightTable.offsets[I-V.rightTable.firstGlyph]);let le=(VA+re-V.array.off)/2;eA=V.array.values.get(le);break;case 3:if(l>=V.glyphCount||I>=V.glyphCount)return 0;eA=V.kernValue[V.kernIndex[V.leftClass[l]*V.rightClassCount+V.rightClass[I]]];break;default:throw new Error(`Unsupported kerning sub-table format ${W.format}`)}W.coverage.override?S=eA:S+=eA}return S}constructor(l){this.kern=l.kern}}class Fg{positionGlyphs(l,I){let S=0,W=0;for(let eA=0;eA<l.length;eA++)l[eA].isMark?W=eA:(S!==W&&this.positionCluster(l,I,S,W),S=W=eA);return S!==W&&this.positionCluster(l,I,S,W),I}positionCluster(l,I,S,W){let eA=l[S],V=eA.cbox.copy();eA.codePoints.length>1&&(V.minX+=(eA.codePoints.length-1)*V.width/eA.codePoints.length);let SA=-I[S].xAdvance,VA=0,re=this.font.unitsPerEm/16;for(let le=S+1;le<=W;le++){let oe=l[le],Ne=oe.cbox,tt=I[le],nt=this.getCombiningClass(oe.codePoints[0]);if(nt!=="Not_Reordered"){switch(tt.xOffset=tt.yOffset=0,nt){case"Double_Above":case"Double_Below":tt.xOffset+=V.minX-Ne.width/2-Ne.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":tt.xOffset+=V.minX-Ne.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":tt.xOffset+=V.maxX-Ne.width-Ne.minX;break;default:tt.xOffset+=V.minX+(V.width-Ne.width)/2-Ne.minX}switch(nt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":(nt==="Attached_Below_Left"||nt==="Attached_Below")&&(V.minY+=re),tt.yOffset=-V.minY-Ne.maxY,V.minY+=Ne.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":(nt==="Attached_Above"||nt==="Attached_Above_Right")&&(V.maxY+=re),tt.yOffset=V.maxY-Ne.minY,V.maxY+=Ne.height;break}tt.xAdvance=tt.yAdvance=0,tt.xOffset+=SA,tt.yOffset+=VA}else SA-=tt.xAdvance,VA-=tt.yAdvance}}getCombiningClass(l){let I=(0,Q.getCombiningClass)(l);if((l&-256)===3584){if(I==="Not_Reordered")switch(l){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(l===3642)return"Below_Right"}switch(I){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return I}constructor(l){this.font=l}}class Pi{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(l,I){Math.abs(l)!==1/0&&(l<this.minX&&(this.minX=l),l>this.maxX&&(this.maxX=l)),Math.abs(I)!==1/0&&(I<this.minY&&(this.minY=I),I>this.maxY&&(this.maxY=I))}copy(){return new Pi(this.minX,this.minY,this.maxX,this.maxY)}constructor(l=1/0,I=1/0,S=-1/0,W=-1/0){this.minX=l,this.minY=I,this.maxX=S,this.maxY=W}}const Qn={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi  ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Pa={};for(let fA in Qn){let l=Qn[fA];if(Array.isArray(l))for(let I of l)Pa[I]=fA;else Pa[l]=fA}function Yg(fA){return Pa[fA]}function vg(fA){let l=fA.length,I=0;for(;I<l;){let S=fA.charCodeAt(I++);if(55296<=S&&S<=56319&&I<l){let eA=fA.charCodeAt(I);56320<=eA&&eA<=57343&&(I++,S=((S&1023)<<10)+(eA&1023)+65536)}let W=(0,Q.getScript)(S);if(W!=="Common"&&W!=="Inherited"&&W!=="Unknown")return Qn[W]}return Qn.Unknown}function mg(fA){for(let l=0;l<fA.length;l++){let I=fA[l],S=(0,Q.getScript)(I);if(S!=="Common"&&S!=="Inherited"&&S!=="Unknown")return Qn[S]}return Qn.Unknown}const bg={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function To(fA){return bg[fA]?"rtl":"ltr"}class Ug{get advanceWidth(){let l=0;for(let I of this.positions)l+=I.xAdvance;return l}get advanceHeight(){let l=0;for(let I of this.positions)l+=I.yAdvance;return l}get bbox(){let l=new Pi,I=0,S=0;for(let W=0;W<this.glyphs.length;W++){let eA=this.glyphs[W],V=this.positions[W],SA=eA.bbox;l.addPoint(SA.minX+I+V.xOffset,SA.minY+S+V.yOffset),l.addPoint(SA.maxX+I+V.xOffset,SA.maxY+S+V.yOffset),I+=V.xAdvance,S+=V.yAdvance}return l}constructor(l,I,S,W,eA){if(this.glyphs=l,this.positions=null,this.script=S,this.language=W||null,this.direction=eA||To(S),this.features={},Array.isArray(I))for(let V of I)this.features[V]=!0;else typeof I=="object"&&(this.features=I)}}class zg{constructor(l=0,I=0,S=0,W=0){this.xAdvance=l,this.yAdvance=I,this.xOffset=S,this.yOffset=W}}const Zi={allTypographicFeatures:{code:0,exclusive:!1,allTypeFeatures:0},ligatures:{code:1,exclusive:!1,requiredLigatures:0,commonLigatures:2,rareLigatures:4,rebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:!0,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:!0},verticalSubstitution:{code:4,exclusive:!1,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:!1,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:!0,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:!1,wordInitialSwashes:0,wordFinalSwashes:2,nonFinalSwashes:8},diacritics:{code:9,exclusive:!0,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:!0,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:!0,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:!1,preventOverlap:0},typographicExtras:{code:14,exclusive:!1,slashedZero:4},mathematicalExtras:{code:15,exclusive:!1,mathematicalGreek:10},ornamentSets:{code:16,exclusive:!0,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:!0,noAlternates:0},designComplexity:{code:18,exclusive:!0,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:!0,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:!0,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:!0,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:!0,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:!0,noTransliteration:0},annotation:{code:24,exclusive:!0,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:!0,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:!0,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:!1,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:!1,rubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:!0,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:!0,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:!0,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:!1,CJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:!1,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:!1,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:!1,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:!1,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:!0,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:!0,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{code:39,exclusive:!0},CJKRomanSpacing:{code:103,exclusive:!0,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}},Oe=(fA,l)=>[Zi[fA].code,Zi[fA][l]],zs={rlig:Oe("ligatures","requiredLigatures"),clig:Oe("ligatures","contextualLigatures"),dlig:Oe("ligatures","rareLigatures"),hlig:Oe("ligatures","historicalLigatures"),liga:Oe("ligatures","commonLigatures"),hist:Oe("ligatures","historicalLigatures"),smcp:Oe("lowerCase","lowerCaseSmallCaps"),pcap:Oe("lowerCase","lowerCasePetiteCaps"),frac:Oe("fractions","diagonalFractions"),dnom:Oe("fractions","diagonalFractions"),numr:Oe("fractions","diagonalFractions"),afrc:Oe("fractions","verticalFractions"),case:Oe("caseSensitiveLayout","caseSensitiveLayout"),ccmp:Oe("unicodeDecomposition","canonicalComposition"),cpct:Oe("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:Oe("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:Oe("contextualAlternates","swashAlternates"),cswh:Oe("contextualAlternates","contextualSwashAlternates"),curs:Oe("cursiveConnection","cursive"),c2pc:Oe("upperCase","upperCasePetiteCaps"),c2sc:Oe("upperCase","upperCaseSmallCaps"),init:Oe("smartSwash","wordInitialSwashes"),fin2:Oe("smartSwash","wordFinalSwashes"),medi:Oe("smartSwash","nonFinalSwashes"),med2:Oe("smartSwash","nonFinalSwashes"),fin3:Oe("smartSwash","wordFinalSwashes"),fina:Oe("smartSwash","wordFinalSwashes"),pkna:Oe("kanaSpacing","proportionalKana"),half:Oe("textSpacing","halfWidthText"),halt:Oe("textSpacing","altHalfWidthText"),hkna:Oe("alternateKana","alternateHorizKana"),vkna:Oe("alternateKana","alternateVertKana"),ital:Oe("italicCJKRoman","CJKItalicRoman"),lnum:Oe("numberCase","upperCaseNumbers"),onum:Oe("numberCase","lowerCaseNumbers"),mgrk:Oe("mathematicalExtras","mathematicalGreek"),calt:Oe("contextualAlternates","contextualAlternates"),vrt2:Oe("verticalSubstitution","substituteVerticalForms"),vert:Oe("verticalSubstitution","substituteVerticalForms"),tnum:Oe("numberSpacing","monospacedNumbers"),pnum:Oe("numberSpacing","proportionalNumbers"),sups:Oe("verticalPosition","superiors"),subs:Oe("verticalPosition","inferiors"),ordn:Oe("verticalPosition","ordinals"),pwid:Oe("textSpacing","proportionalText"),hwid:Oe("textSpacing","halfWidthText"),qwid:Oe("textSpacing","quarterWidthText"),twid:Oe("textSpacing","thirdWidthText"),fwid:Oe("textSpacing","proportionalText"),palt:Oe("textSpacing","altProportionalText"),trad:Oe("characterShape","traditionalCharacters"),smpl:Oe("characterShape","simplifiedCharacters"),jp78:Oe("characterShape","JIS1978Characters"),jp83:Oe("characterShape","JIS1983Characters"),jp90:Oe("characterShape","JIS1990Characters"),jp04:Oe("characterShape","JIS2004Characters"),expt:Oe("characterShape","expertCharacters"),hojo:Oe("characterShape","hojoCharacters"),nlck:Oe("characterShape","NLCCharacters"),tnam:Oe("characterShape","traditionalNamesCharacters"),ruby:Oe("rubyKana","rubyKana"),titl:Oe("styleOptions","titlingCaps"),zero:Oe("typographicExtras","slashedZero"),ss01:Oe("stylisticAlternatives","stylisticAltOne"),ss02:Oe("stylisticAlternatives","stylisticAltTwo"),ss03:Oe("stylisticAlternatives","stylisticAltThree"),ss04:Oe("stylisticAlternatives","stylisticAltFour"),ss05:Oe("stylisticAlternatives","stylisticAltFive"),ss06:Oe("stylisticAlternatives","stylisticAltSix"),ss07:Oe("stylisticAlternatives","stylisticAltSeven"),ss08:Oe("stylisticAlternatives","stylisticAltEight"),ss09:Oe("stylisticAlternatives","stylisticAltNine"),ss10:Oe("stylisticAlternatives","stylisticAltTen"),ss11:Oe("stylisticAlternatives","stylisticAltEleven"),ss12:Oe("stylisticAlternatives","stylisticAltTwelve"),ss13:Oe("stylisticAlternatives","stylisticAltThirteen"),ss14:Oe("stylisticAlternatives","stylisticAltFourteen"),ss15:Oe("stylisticAlternatives","stylisticAltFifteen"),ss16:Oe("stylisticAlternatives","stylisticAltSixteen"),ss17:Oe("stylisticAlternatives","stylisticAltSeventeen"),ss18:Oe("stylisticAlternatives","stylisticAltEighteen"),ss19:Oe("stylisticAlternatives","stylisticAltNineteen"),ss20:Oe("stylisticAlternatives","stylisticAltTwenty")};for(let fA=1;fA<=99;fA++)zs[`cv${`00${fA}`.slice(-2)}`]=[Zi.characterAlternatives.code,fA];let _i={};for(let fA in zs){let l=zs[fA];_i[l[0]]==null&&(_i[l[0]]={}),_i[l[0]][l[1]]=fA}function Pg(fA){let l={};for(let I in fA){let S;(S=zs[I])&&(l[S[0]]==null&&(l[S[0]]={}),l[S[0]][S[1]]=fA[I])}return l}function Go(fA){let[l,I]=fA;if(isNaN(l))var S=Zi[l]&&Zi[l].code;else var S=l;if(isNaN(I))var W=Zi[l]&&Zi[l][I];else var W=I;return[S,W]}function Rg(fA){let l={};if(Array.isArray(fA))for(let I=0;I<fA.length;I++){let S,W=Go(fA[I]);(S=_i[W[0]]&&_i[W[0]][W[1]])&&(l[S]=!0)}else if(typeof fA=="object")for(let I in fA){let S=fA[I];for(let W in S){let eA,V=Go([I,W]);S[W]&&(eA=_i[V[0]]&&_i[V[0]][V[1]])&&(l[eA]=!0)}}return Object.keys(l)}class as{lookup(l){switch(this.table.version){case 0:return this.table.values.getItem(l);case 2:case 4:{let W=0,eA=this.table.binarySearchHeader.nUnits-1;for(;W<=eA;){var I=W+eA>>1,S=this.table.segments[I];if(S.firstGlyph===65535)return null;if(l<S.firstGlyph)eA=I-1;else if(l>S.lastGlyph)W=I+1;else return this.table.version===2?S.value:S.values[l-S.firstGlyph]}return null}case 6:{let W=0,eA=this.table.binarySearchHeader.nUnits-1;for(;W<=eA;){var I=W+eA>>1,S=this.table.segments[I];if(S.glyph===65535)return null;if(l<S.glyph)eA=I-1;else if(l>S.glyph)W=I+1;else return S.value}return null}case 8:return this.table.values[l-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(l){let I=[];switch(this.table.version){case 2:case 4:for(let S of this.table.segments)if(this.table.version===2&&S.value===l)I.push(...un(S.firstGlyph,S.lastGlyph+1));else for(let W=0;W<S.values.length;W++)S.values[W]===l&&I.push(S.firstGlyph+W);break;case 6:for(let S of this.table.segments)S.value===l&&I.push(S.glyph);break;case 8:for(let S=0;S<this.table.values.length;S++)this.table.values[S]===l&&I.push(this.table.firstGlyph+S);break;default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}return I}constructor(l){this.table=l}}(0,f._)([X],as.prototype,"glyphsForValue",null);const Ng=0,xo=0,Ho=1,Lo=2,Sg=16384;class Tg{process(l,I,S){let W=Ng,eA=I?l.length-1:0,V=I?-1:1;for(;V===1&&eA<=l.length||V===-1&&eA>=-1;){let SA=null,VA=Ho,re=!0;eA===l.length||eA===-1?VA=xo:(SA=l[eA],SA.id===65535?VA=Lo:(VA=this.lookupTable.lookup(SA.id),VA==null&&(VA=Ho)));let oe=this.stateTable.stateArray.getItem(W)[VA],Ne=this.stateTable.entryTable.getItem(oe);VA!==xo&&VA!==Lo&&(S(SA,Ne,eA),re=!(Ne.flags&Sg)),W=Ne.newState,re&&(eA+=V)}return l}traverse(l,I=0,S=new Set){if(S.has(I))return;S.add(I);let{nClasses:W,stateArray:eA,entryTable:V}=this.stateTable,SA=eA.getItem(I);for(let VA=4;VA<W;VA++){let re=SA[VA],le=V.getItem(re);for(let oe of this.lookupTable.glyphsForValue(VA))l.enter&&l.enter(oe,le),le.newState!==0&&this.traverse(l,le.newState,S),l.exit&&l.exit(oe,le)}}constructor(l){this.stateTable=l,this.lookupTable=new as(l.classTable)}}const Gg=32768,xg=8192,Hg=15,ko=32768,Lg=32768,kg=8192,jg=2147483648,Jg=1073741824,Og=1073741823,jo=4194304,Wg=2048,Kg=1024,Vg=992,Xg=31;class Jo{process(l,I={}){for(let W of this.morx.chains){let eA=W.defaultFlags;for(let V of W.features){let SA;(SA=I[V.featureType])&&(SA[V.featureSetting]?(eA&=V.disableFlags,eA|=V.enableFlags):SA[V.featureSetting]===!1&&(eA|=~V.disableFlags,eA&=~V.enableFlags))}for(let V of W.subtables)V.subFeatureFlags&eA&&this.processSubtable(V,l)}let S=l.length-1;for(;S>=0;)l[S].id===65535&&l.splice(S,1),S--;return l}processSubtable(l,I){if(this.subtable=l,this.glyphs=I,this.subtable.type===4){this.processNoncontextualSubstitutions(this.subtable,this.glyphs);return}this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let S=this.getStateMachine(l),W=this.getProcessor(),eA=!!(this.subtable.coverage&jo);return S.process(this.glyphs,eA,W)}getStateMachine(l){return new Tg(l.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(l,I,S){I.flags&Gg&&(this.firstGlyph=S),I.flags&xg&&(this.lastGlyph=S),Zg(this.glyphs,I.flags&Hg,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(l,I,S){let W=this.subtable.table.substitutionTable.items;if(I.markIndex!==65535){let V=W.getItem(I.markIndex),SA=new as(V);l=this.glyphs[this.markedGlyph];var eA=SA.lookup(l.id);eA&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(eA,l.codePoints))}if(I.currentIndex!==65535){let V=W.getItem(I.currentIndex),SA=new as(V);l=this.glyphs[S];var eA=SA.lookup(l.id);eA&&(this.glyphs[S]=this.font.getGlyph(eA,l.codePoints))}I.flags&ko&&(this.markedGlyph=S)}processLigature(l,I,S){if(I.flags&Lg&&this.ligatureStack.push(S),I.flags&kg){let W=this.subtable.table.ligatureActions,eA=this.subtable.table.components,V=this.subtable.table.ligatureList,SA=I.action,VA=!1,re=0,le=[],oe=[];for(;!VA;){let Ne=this.ligatureStack.pop();le.unshift(...this.glyphs[Ne].codePoints);let tt=W.getItem(SA++);VA=!!(tt&jg);let nt=!!(tt&Jg),vt=(tt&Og)<<2>>2;vt+=this.glyphs[Ne].id;let or=eA.getItem(vt);if(re+=or,VA||nt){let Ft=V.getItem(re);this.glyphs[Ne]=this.font.getGlyph(Ft,le),oe.push(Ne),re=0,le=[]}else this.glyphs[Ne]=this.font.getGlyph(65535)}this.ligatureStack.push(...oe)}}processNoncontextualSubstitutions(l,I,S){let W=new as(l.table.lookupTable);for(S=0;S<I.length;S++){let eA=I[S];if(eA.id!==65535){let V=W.lookup(eA.id);V&&(I[S]=this.font.getGlyph(V,eA.codePoints))}}}_insertGlyphs(l,I,S,W){let eA=[];for(;S--;){let V=this.subtable.table.insertionActions.getItem(I++);eA.push(this.font.getGlyph(V))}W||l++,this.glyphs.splice(l,0,...eA)}processGlyphInsertion(l,I,S){if(I.flags&ko&&(this.markedIndex=S),I.markedInsertIndex!==65535){let W=(I.flags&Xg)>>>5,eA=!!(I.flags&Kg);this._insertGlyphs(this.markedIndex,I.markedInsertIndex,W,eA)}if(I.currentInsertIndex!==65535){let W=(I.flags&Vg)>>>5,eA=!!(I.flags&Wg);this._insertGlyphs(S,I.currentInsertIndex,W,eA)}}getSupportedFeatures(){let l=[];for(let I of this.morx.chains)for(let S of I.features)l.push([S.featureType,S.featureSetting]);return l}generateInputs(l){return this.inputCache||this.generateInputCache(),this.inputCache[l]||[]}generateInputCache(){this.inputCache={};for(let l of this.morx.chains){let I=l.defaultFlags;for(let S of l.subtables)S.subFeatureFlags&I&&this.generateInputsForSubtable(S)}}generateInputsForSubtable(l){if(l.type!==2)return;if(!!(l.coverage&jo))throw new Error("Reverse subtable, not supported.");this.subtable=l,this.ligatureStack=[];let S=this.getStateMachine(l),W=this.getProcessor(),eA=[],V=[];this.glyphs=[],S.traverse({enter:(SA,VA)=>{let re=this.glyphs;V.push({glyphs:re.slice(),ligatureStack:this.ligatureStack.slice()});let le=this.font.getGlyph(SA);eA.push(le),re.push(eA[eA.length-1]),W(re[re.length-1],VA,re.length-1);let oe=0,Ne=0;for(let tt=0;tt<re.length&&oe<=1;tt++)re[tt].id!==65535&&(oe++,Ne=re[tt].id);if(oe===1){let tt=eA.map(vt=>vt.id),nt=this.inputCache[Ne];nt?nt.push(tt):this.inputCache[Ne]=[tt]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=V.pop()),eA.pop()}})}constructor(l){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=l,this.morx=l.morx,this.inputCache=null}}(0,f._)([X],Jo.prototype,"getStateMachine",null);function Sr(fA,l,I,S=!1,W=!1){let eA=fA.splice(I[0]-(I[1]-1),I[1]);W&&eA.reverse();let V=fA.splice(l[0],l[1],...eA);return S&&V.reverse(),fA.splice(I[0]-(l[1]-1),0,...V),fA}function Zg(fA,l,I,S){switch(l){case 0:return fA;case 1:return Sr(fA,[I,1],[S,0]);case 2:return Sr(fA,[I,0],[S,1]);case 3:return Sr(fA,[I,1],[S,1]);case 4:return Sr(fA,[I,2],[S,0]);case 5:return Sr(fA,[I,2],[S,0],!0,!1);case 6:return Sr(fA,[I,0],[S,2]);case 7:return Sr(fA,[I,0],[S,2],!1,!0);case 8:return Sr(fA,[I,1],[S,2]);case 9:return Sr(fA,[I,1],[S,2],!1,!0);case 10:return Sr(fA,[I,2],[S,1]);case 11:return Sr(fA,[I,2],[S,1],!0,!1);case 12:return Sr(fA,[I,2],[S,2]);case 13:return Sr(fA,[I,2],[S,2],!0,!1);case 14:return Sr(fA,[I,2],[S,2],!1,!0);case 15:return Sr(fA,[I,2],[S,2],!0,!0);default:throw new Error(`Unknown verb: ${l}`)}}class _g{substitute(l){l.direction==="rtl"&&l.glyphs.reverse(),this.morxProcessor.process(l.glyphs,Pg(l.features))}getAvailableFeatures(l,I){return Rg(this.morxProcessor.getSupportedFeatures())}stringsForGlyph(l){let I=this.morxProcessor.generateInputs(l),S=new Set;for(let W of I)this._addStrings(W,0,S,"");return S}_addStrings(l,I,S,W){let eA=this.font._cmapProcessor.codePointsForGlyph(l[I]);for(let V of eA){let SA=W+String.fromCodePoint(V);I<l.length-1?this._addStrings(l,I+1,S,SA):S.add(SA)}}constructor(l){this.font=l,this.morxProcessor=new Jo(l),this.fallbackPosition=!1}}class qg{_addFeatures(l,I){let S=this.stages.length-1,W=this.stages[S];for(let eA of l)this.allFeatures[eA]==null&&(W.push(eA),this.allFeatures[eA]=S,I&&(this.globalFeatures[eA]=!0))}add(l,I=!0){if(this.stages.length===0&&this.stages.push([]),typeof l=="string"&&(l=[l]),Array.isArray(l))this._addFeatures(l,I);else if(typeof l=="object")this._addFeatures(l.global||[],!0),this._addFeatures(l.local||[],!1);else throw new Error("Unsupported argument to ShapingPlan#add")}addStage(l,I){typeof l=="function"?this.stages.push(l,[]):(this.stages.push([]),this.add(l,I))}setFeatureOverrides(l){if(Array.isArray(l))this.add(l);else if(typeof l=="object"){for(let I in l)if(l[I])this.add(I);else if(this.allFeatures[I]!=null){let S=this.stages[this.allFeatures[I]];S.splice(S.indexOf(I),1),delete this.allFeatures[I],delete this.globalFeatures[I]}}}assignGlobalFeatures(l){for(let I of l)for(let S in this.globalFeatures)I.features[S]=!0}process(l,I,S){for(let W of this.stages)typeof W=="function"?S||W(this.font,I,this):W.length>0&&l.applyFeatures(W,I,S)}constructor(l,I,S){this.font=l,this.script=I,this.direction=S,this.stages=[],this.globalFeatures={},this.allFeatures={}}}const $g=["rvrn"],Ac=["ccmp","locl","rlig","mark","mkmk"],ec=["frac","numr","dnom"],tc=["calt","clig","liga","rclt","curs","kern"],rc={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]};class Ri{static plan(l,I,S){this.planPreprocessing(l),this.planFeatures(l),this.planPostprocessing(l,S),l.assignGlobalFeatures(I),this.assignFeatures(l,I)}static planPreprocessing(l){l.add({global:[...$g,...rc[l.direction]],local:ec})}static planFeatures(l){}static planPostprocessing(l,I){l.add([...Ac,...tc]),l.setFeatureOverrides(I)}static assignFeatures(l,I){for(let S=0;S<I.length;S++){let W=I[S];if(W.codePoints[0]===8260){let eA=S,V=S+1;for(;eA>0&&(0,Q.isDigit)(I[eA-1].codePoints[0]);)I[eA-1].features.numr=!0,I[eA-1].features.frac=!0,eA--;for(;V<I.length&&(0,Q.isDigit)(I[V].codePoints[0]);)I[V].features.dnom=!0,I[V].features.frac=!0,V++;W.features.frac=!0,S=V-1}}}}(0,a._)(Ri,"zeroMarkWidths","AFTER_GPOS");const ic=new(b(d))(Ua("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")),Oo=["isol","fina","fin2","fin3","medi","med2","init"],Ra={Non_Joining:0,Transparent:6},Ar="isol",Ni="fina",Na="fin2",nc="fin3",Ps="medi",Rs="med2",Ns="init",xt=null,sc=[[[xt,xt,0],[xt,Ar,2],[xt,Ar,1],[xt,Ar,2],[xt,Ar,1],[xt,Ar,6]],[[xt,xt,0],[xt,Ar,2],[xt,Ar,1],[xt,Ar,2],[xt,Na,5],[xt,Ar,6]],[[xt,xt,0],[xt,Ar,2],[Ns,Ni,1],[Ns,Ni,3],[Ns,Ni,4],[Ns,Ni,6]],[[xt,xt,0],[xt,Ar,2],[Ps,Ni,1],[Ps,Ni,3],[Ps,Ni,4],[Ps,Ni,6]],[[xt,xt,0],[xt,Ar,2],[Rs,Ar,1],[Rs,Ar,2],[Rs,Na,5],[Rs,Ar,6]],[[xt,xt,0],[xt,Ar,2],[Ar,Ar,1],[Ar,Ar,2],[Ar,Na,5],[Ar,Ar,6]],[[xt,xt,0],[xt,Ar,2],[xt,Ar,1],[xt,Ar,2],[xt,nc,5],[xt,Ar,6]]];class Si extends Ri{static planFeatures(l){l.add(["ccmp","locl"]);for(let I=0;I<Oo.length;I++){let S=Oo[I];l.addStage(S,!1)}l.addStage("mset")}static assignFeatures(l,I){super.assignFeatures(l,I);let S=-1,W=0,eA=[];for(let SA=0;SA<I.length;SA++){let VA,re;var V=I[SA];let le=ac(V.codePoints[0]);if(le===Ra.Transparent){eA[SA]=xt;continue}[re,VA,W]=sc[W][le],re!==xt&&S!==-1&&(eA[S]=re),eA[SA]=VA,S=SA}for(let SA=0;SA<I.length;SA++){let VA;var V=I[SA];(VA=eA[SA])&&(V.features[VA]=!0)}}}function ac(fA){let l=ic.get(fA);if(l)return l-1;let I=(0,Q.getCategory)(fA);return I==="Mn"||I==="Me"||I==="Cf"?Ra.Transparent:Ra.Non_Joining}class oc{reset(l={},I=0){this.options=l,this.flags=l.flags||{},this.markAttachmentType=l.markAttachmentType||0,this.index=I}get cur(){return this.glyphs[this.index]||null}shouldIgnore(l){return this.flags.ignoreMarks&&l.isMark||this.flags.ignoreBaseGlyphs&&l.isBase||this.flags.ignoreLigatures&&l.isLigature||this.markAttachmentType&&l.isMark&&l.markAttachmentType!==this.markAttachmentType}move(l){for(this.index+=l;0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index]);)this.index+=l;return 0>this.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(l=1){let I=this.index,S=this.increment(l);return this.index=I,S}peekIndex(l=1){let I=this.index;this.increment(l);let S=this.index;return this.index=I,S}increment(l=1){let I=l<0?-1:1;for(l=Math.abs(l);l--;)this.move(I);return this.glyphs[this.index]}constructor(l,I){this.glyphs=l,this.reset(I)}}const Bc=["DFLT","dflt","latn"];class Ss{findScript(l){if(this.table.scriptList==null)return null;Array.isArray(l)||(l=[l]);for(let I of l)for(let S of this.table.scriptList)if(S.tag===I)return S;return null}selectScript(l,I,S){let W=!1,eA;if(!this.script||l!==this.scriptTag){if(eA=this.findScript(l),eA||(eA=this.findScript(Bc)),!eA)return this.scriptTag;this.scriptTag=eA.tag,this.script=eA.script,this.language=null,this.languageTag=null,W=!0}if((!S||S!==this.direction)&&(this.direction=S||To(l)),I&&I.length<4&&(I+=" ".repeat(4-I.length)),!I||I!==this.languageTag){this.language=null;for(let V of this.script.langSysRecords)if(V.tag===I){this.language=V.langSys,this.languageTag=V.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),W=!0}if(W&&(this.features={},this.language))for(let V of this.language.featureIndexes){let SA=this.table.featureList[V],VA=this.substituteFeatureForVariations(V);this.features[SA.tag]=VA||SA.feature}return this.scriptTag}lookupsForFeatures(l=[],I){let S=[];for(let W of l){let eA=this.features[W];if(eA)for(let V of eA.lookupListIndexes)I&&I.indexOf(V)!==-1||S.push({feature:W,index:V,lookup:this.table.lookupList.get(V)})}return S.sort((W,eA)=>W.index-eA.index),S}substituteFeatureForVariations(l){if(this.variationsIndex===-1)return null;let S=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let W of S)if(W.featureIndex===l)return W.alternateFeatureTable;return null}findVariationsIndex(l){let I=this.table.featureVariations;if(!I)return-1;let S=I.featureVariationRecords;for(let W=0;W<S.length;W++){let eA=S[W].conditionSet.conditionTable;if(this.variationConditionsMatch(eA,l))return W}return-1}variationConditionsMatch(l,I){return l.every(S=>{let W=S.axisIndex<I.length?I[S.axisIndex]:0;return S.filterRangeMinValue<=W&&W<=S.filterRangeMaxValue})}applyFeatures(l,I,S){let W=this.lookupsForFeatures(l);this.applyLookups(W,I,S)}applyLookups(l,I,S){this.glyphs=I,this.positions=S,this.glyphIterator=new oc(I);for(let{feature:W,lookup:eA}of l)for(this.currentFeature=W,this.glyphIterator.reset(eA.flags);this.glyphIterator.index<I.length;){if(!(W in this.glyphIterator.cur.features)){this.glyphIterator.next();continue}for(let V of eA.subTables)if(this.applyLookup(eA.lookupType,V))break;this.glyphIterator.next()}}applyLookup(l,I){throw new Error("applyLookup must be implemented by subclasses")}applyLookupList(l){let I=this.glyphIterator.options,S=this.glyphIterator.index;for(let W of l){this.glyphIterator.reset(I,S),this.glyphIterator.increment(W.sequenceIndex);let eA=this.table.lookupList.get(W.lookupListIndex);this.glyphIterator.reset(eA.flags,this.glyphIterator.index);for(let V of eA.subTables)if(this.applyLookup(eA.lookupType,V))break}return this.glyphIterator.reset(I,S),!0}coverageIndex(l,I){switch(I==null&&(I=this.glyphIterator.cur.id),l.version){case 1:return l.glyphs.indexOf(I);case 2:for(let S of l.rangeRecords)if(S.start<=I&&I<=S.end)return S.startCoverageIndex+I-S.start;break}return-1}match(l,I,S,W){let eA=this.glyphIterator.index,V=this.glyphIterator.increment(l),SA=0;for(;SA<I.length&&V&&S(I[SA],V);)W&&W.push(this.glyphIterator.index),SA++,V=this.glyphIterator.next();return this.glyphIterator.index=eA,SA<I.length?!1:W||!0}sequenceMatches(l,I){return this.match(l,I,(S,W)=>S===W.id)}sequenceMatchIndices(l,I){return this.match(l,I,(S,W)=>this.currentFeature in W.features?S===W.id:!1,[])}coverageSequenceMatches(l,I){return this.match(l,I,(S,W)=>this.coverageIndex(S,W.id)>=0)}getClassID(l,I){switch(I.version){case 1:let S=l-I.startGlyph;if(S>=0&&S<I.classValueArray.length)return I.classValueArray[S];break;case 2:for(let W of I.classRangeRecord)if(W.start<=l&&l<=W.end)return W.class;break}return 0}classSequenceMatches(l,I,S){return this.match(l,I,(W,eA)=>W===this.getClassID(eA.id,S))}applyContext(l){let I,S;switch(l.version){case 1:if(I=this.coverageIndex(l.coverage),I===-1)return!1;S=l.ruleSets[I];for(let W of S)if(this.sequenceMatches(1,W.input))return this.applyLookupList(W.lookupRecords);break;case 2:if(this.coverageIndex(l.coverage)===-1||(I=this.getClassID(this.glyphIterator.cur.id,l.classDef),I===-1))return!1;S=l.classSet[I];for(let W of S)if(this.classSequenceMatches(1,W.classes,l.classDef))return this.applyLookupList(W.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,l.coverages))return this.applyLookupList(l.lookupRecords);break}return!1}applyChainingContext(l){let I;switch(l.version){case 1:if(I=this.coverageIndex(l.coverage),I===-1)return!1;let S=l.chainRuleSets[I];for(let eA of S)if(this.sequenceMatches(-eA.backtrack.length,eA.backtrack)&&this.sequenceMatches(1,eA.input)&&this.sequenceMatches(1+eA.input.length,eA.lookahead))return this.applyLookupList(eA.lookupRecords);break;case 2:if(this.coverageIndex(l.coverage)===-1)return!1;I=this.getClassID(this.glyphIterator.cur.id,l.inputClassDef);let W=l.chainClassSet[I];if(!W)return!1;for(let eA of W)if(this.classSequenceMatches(-eA.backtrack.length,eA.backtrack,l.backtrackClassDef)&&this.classSequenceMatches(1,eA.input,l.inputClassDef)&&this.classSequenceMatches(1+eA.input.length,eA.lookahead,l.lookaheadClassDef))return this.applyLookupList(eA.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-l.backtrackGlyphCount,l.backtrackCoverage)&&this.coverageSequenceMatches(0,l.inputCoverage)&&this.coverageSequenceMatches(l.inputGlyphCount,l.lookaheadCoverage))return this.applyLookupList(l.lookupRecords);break}return!1}constructor(l,I){this.font=l,this.table=I,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=l._variationProcessor?this.findVariationsIndex(l._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}}class si{get id(){return this._id}set id(l){this._id=l,this.substituted=!0;let I=this._font.GDEF;if(I&&I.glyphClassDef){let S=Ss.prototype.getClassID(l,I.glyphClassDef);this.isBase=S===1,this.isLigature=S===2,this.isMark=S===3,this.markAttachmentType=I.markAttachClassDef?Ss.prototype.getClassID(l,I.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(Q.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new si(this._font,this.id,this.codePoints,this.features)}constructor(l,I,S=[],W){if(this._font=l,this.codePoints=S,this.id=I,this.features={},Array.isArray(W))for(let eA=0;eA<W.length;eA++){let V=W[eA];this.features[V]=!0}else typeof W=="object"&&Object.assign(this.features,W);this.ligatureID=null,this.ligatureComponent=null,this.isLigated=!1,this.cursiveAttachment=null,this.markAttachment=null,this.shaperInfo=null,this.substituted=!1,this.isMultiplied=!1}}class Wo extends Ri{static planFeatures(l){l.add(["ljmo","vjmo","tjmo"],!1)}static assignFeatures(l,I){let S=0,W=0;for(;W<I.length;){let eA,SA=I[W].codePoints[0],VA=ks(SA);switch([eA,S]=Yc[S][VA],eA){case yi:l.font.hasGlyphForCodePoint(SA)||(W=Zo(I,W,l.font));break;case Ta:W=vc(I,W,l.font);break;case Ga:bc(I,W,l.font);break;case xa:W=Uc(I,W,l.font);break}W++}}}(0,a._)(Wo,"zeroMarkWidths","NONE");const Cn=44032,Ko=55204,lc=Ko-Cn+1,Ts=4352,Gs=4449,qi=4519,gc=19,xs=21,os=28,cc=Ts+gc-1,Ec=Gs+xs-1,wc=qi+os-1,Vo=9676,fc=fA=>4352<=fA&&fA<=4447||43360<=fA&&fA<=43388,hc=fA=>4448<=fA&&fA<=4519||55216<=fA&&fA<=55238,uc=fA=>4520<=fA&&fA<=4607||55243<=fA&&fA<=55291,Qc=fA=>12334<=fA&&fA<=12335,Cc=fA=>Cn<=fA&&fA<=Ko,dc=fA=>fA-Cn<lc&&(fA-Cn)%os===0,Mc=fA=>Ts<=fA&&fA<=cc,Dc=fA=>Gs<=fA&&fA<=Ec,Ic=fA=>1<=fA&&fA<=wc,pc=0,yc=1,Hs=2,Sa=3,Ls=4,Xo=5,Fc=6;function ks(fA){return fc(fA)?yc:hc(fA)?Hs:uc(fA)?Sa:dc(fA)?Ls:Cc(fA)?Xo:Qc(fA)?Fc:pc}const Hr=0,yi=1,Ta=2,Ga=4,xa=5,Yc=[[[Hr,0],[Hr,1],[Hr,0],[Hr,0],[yi,2],[yi,3],[xa,0]],[[Hr,0],[Hr,1],[Ta,2],[Hr,0],[yi,2],[yi,3],[xa,0]],[[Hr,0],[Hr,1],[Hr,0],[Ta,3],[yi,2],[yi,3],[Ga,0]],[[Hr,0],[Hr,1],[Hr,0],[Hr,0],[yi,2],[yi,3],[Ga,0]]];function Bs(fA,l,I){return new si(fA,fA.glyphForCodePoint(l).id,[l],I)}function Zo(fA,l,I){let S=fA[l],eA=S.codePoints[0]-Cn,V=qi+eA%os;eA=eA/os|0;let SA=Ts+eA/xs|0,VA=Gs+eA%xs;if(!I.hasGlyphForCodePoint(SA)||!I.hasGlyphForCodePoint(VA)||V!==qi&&!I.hasGlyphForCodePoint(V))return l;let re=Bs(I,SA,S.features);re.features.ljmo=!0;let le=Bs(I,VA,S.features);le.features.vjmo=!0;let oe=[re,le];if(V>qi){let Ne=Bs(I,V,S.features);Ne.features.tjmo=!0,oe.push(Ne)}return fA.splice(l,1,...oe),l+oe.length-1}function vc(fA,l,I){let S=fA[l],W=fA[l].codePoints[0],eA=ks(W),V=fA[l-1].codePoints[0],SA=ks(V),VA,re,le,oe;if(SA===Ls&&eA===Sa)VA=V,oe=S;else{eA===Hs?(re=fA[l-1],le=S):(re=fA[l-2],le=fA[l-1],oe=S);let tt=re.codePoints[0],nt=le.codePoints[0];Mc(tt)&&Dc(nt)&&(VA=Cn+((tt-Ts)*xs+(nt-Gs))*os)}let Ne=oe&&oe.codePoints[0]||qi;if(VA!=null&&(Ne===qi||Ic(Ne))){let tt=VA+(Ne-qi);if(I.hasGlyphForCodePoint(tt)){let nt=SA===Hs?3:2;return fA.splice(l-nt+1,nt,Bs(I,tt,S.features)),l-nt+1}}return re&&(re.features.ljmo=!0),le&&(le.features.vjmo=!0),oe&&(oe.features.tjmo=!0),SA===Ls?(Zo(fA,l-1,I),l+1):l}function mc(fA){switch(ks(fA)){case Ls:case Xo:return 1;case Hs:return 2;case Sa:return 3}}function bc(fA,l,I){let S=fA[l],W=fA[l].codePoints[0];if(I.glyphForCodePoint(W).advanceWidth===0)return;let eA=fA[l-1].codePoints[0],V=mc(eA);return fA.splice(l,1),fA.splice(l-V,0,S)}function Uc(fA,l,I){let S=fA[l],W=fA[l].codePoints[0];if(I.hasGlyphForCodePoint(Vo)){let eA=Bs(I,Vo,S.features),V=I.glyphForCodePoint(W).advanceWidth===0?l:l+1;fA.splice(V,0,eA),l++}return l}var _o={};_o=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}');var js={};js=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');const Rt={X:1,C:2,V:4,N:8,H:16,ZWNJ:32,ZWJ:64,M:128,Placeholder:2048,Dotted_Circle:4096,RS:8192,Coeng:16384,Repha:32768,Ra:65536,CM:131072},Ct={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},zc=Rt.C|Rt.Ra|Rt.CM|Rt.V|Rt.Placeholder|Rt.Dotted_Circle,qo=Rt.ZWJ|Rt.ZWNJ,ls=Rt.H|Rt.Coeng,$o={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:Ct.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:Ct.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:Ct.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:Ct.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:Ct.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:Ct.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:Ct.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:Ct.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:Ct.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:Ct.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:Ct.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},Pc={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:Rc}=b(js),AB=new(b(d))(Ua(" ")),Nc=new(b(E))(b(_o));class wr extends Ri{static planFeatures(l){l.addStage(Sc),l.addStage(["locl","ccmp"]),l.addStage(Gc),l.addStage("nukt"),l.addStage("akhn"),l.addStage("rphf",!1),l.addStage("rkrf"),l.addStage("pref",!1),l.addStage("blwf",!1),l.addStage("abvf",!1),l.addStage("half",!1),l.addStage("pstf",!1),l.addStage("vatu"),l.addStage("cjct"),l.addStage("cfar",!1),l.addStage(xc),l.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),l.unicodeScript=Yg(l.script),l.indicConfig=$o[l.unicodeScript]||$o.Default,l.isOldSpec=l.indicConfig.hasOldSpec&&l.script[l.script.length-1]!=="2"}static assignFeatures(l,I){for(let S=I.length-1;S>=0;S--){let W=I[S].codePoints[0],eA=Pc[W]||Rc[W];if(eA){let V=eA.map(SA=>{let VA=l.font.glyphForCodePoint(SA);return new si(l.font,VA.id,[SA],I[S].features)});I.splice(S,1,...V)}}}}(0,a._)(wr,"zeroMarkWidths","NONE");function Ha(fA){return AB.get(fA.codePoints[0])>>8}function eB(fA){return 1<<(AB.get(fA.codePoints[0])&255)}class Js{constructor(l,I,S,W){this.category=l,this.position=I,this.syllableType=S,this.syllable=W}}function Sc(fA,l){let I=0,S=0;for(let[W,eA,V]of Nc.match(l.map(Ha))){if(W>S){++I;for(let SA=S;SA<W;SA++)l[SA].shaperInfo=new Js(Rt.X,Ct.End,"non_indic_cluster",I)}++I;for(let SA=W;SA<=eA;SA++)l[SA].shaperInfo=new Js(1<<Ha(l[SA]),eB(l[SA]),V[0],I);S=eA+1}if(S<l.length){++I;for(let W=S;W<l.length;W++)l[W].shaperInfo=new Js(Rt.X,Ct.End,"non_indic_cluster",I)}}function $i(fA){return fA.shaperInfo.category&zc}function wi(fA){return fA.shaperInfo.category&qo}function Fi(fA){return fA.shaperInfo.category&ls}function Yi(fA,l){for(let S of fA)S.features={[l]:!0};return fA[0]._font._layoutEngine.engine.GSUBProcessor.applyFeatures([l],fA),fA.length===1}function Tc(fA,l,I){let S=[I,l,I];return Yi(S.slice(0,2),"blwf")||Yi(S.slice(1,3),"blwf")?Ct.Below_C:Yi(S.slice(0,2),"pstf")||Yi(S.slice(1,3),"pstf")||Yi(S.slice(0,2),"pref")||Yi(S.slice(1,3),"pref")?Ct.Post_C:Ct.Base_C}function Gc(fA,l,I){let S=I.indicConfig,W=fA._layoutEngine.engine.GSUBProcessor.features,eA=fA.glyphForCodePoint(9676).id,V=fA.glyphForCodePoint(S.virama).id;if(V){let SA=new si(fA,V,[S.virama]);for(let VA=0;VA<l.length;VA++)l[VA].shaperInfo.position===Ct.Base_C&&(l[VA].shaperInfo.position=Tc(fA,l[VA].copy(),SA))}for(let SA=0,VA=Os(l,0);SA<l.length;SA=VA,VA=Os(l,SA)){let{category:re,syllableType:le}=l[SA].shaperInfo;if(le==="symbol_cluster"||le==="non_indic_cluster")continue;if(le==="broken_cluster"&&eA){let Pe=new si(fA,eA,[9676]);Pe.shaperInfo=new Js(1<<Ha(Pe),eB(Pe),l[SA].shaperInfo.syllableType,l[SA].shaperInfo.syllable);let ft=SA;for(;ft<VA&&l[ft].shaperInfo.category===Rt.Repha;)ft++;l.splice(ft++,0,Pe),VA++}let oe=VA,Ne=SA,tt=!1;if(S.rephPos!==Ct.Ra_To_Become_Reph&&W.rphf&&SA+3<=VA&&(S.rephMode==="Implicit"&&!wi(l[SA+2])||S.rephMode==="Explicit"&&l[SA+2].shaperInfo.category===Rt.ZWJ)){let Pe=[l[SA].copy(),l[SA+1].copy(),l[SA+2].copy()];if(Yi(Pe.slice(0,2),"rphf")||S.rephMode==="Explicit"&&Yi(Pe,"rphf")){for(Ne+=2;Ne<VA&&wi(l[Ne]);)Ne++;oe=SA,tt=!0}}else if(S.rephMode==="Log_Repha"&&l[SA].shaperInfo.category===Rt.Repha){for(Ne++;Ne<VA&&wi(l[Ne]);)Ne++;oe=SA,tt=!0}switch(S.basePos){case"Last":{let Pe=VA,ft=!1;do{let mt=l[--Pe].shaperInfo;if($i(l[Pe])){if(mt.position!==Ct.Below_C&&(mt.position!==Ct.Post_C||ft)){oe=Pe;break}mt.position===Ct.Below_C&&(ft=!0),oe=Pe}else if(SA<Pe&&mt.category===Rt.ZWJ&&l[Pe-1].shaperInfo.category===Rt.H)break}while(Pe>Ne);break}case"First":oe=SA;for(let Pe=oe+1;Pe<VA;Pe++)$i(l[Pe])&&(l[Pe].shaperInfo.position=Ct.Below_C)}tt&&oe===SA&&Ne-oe<=2&&(tt=!1);for(let Pe=SA;Pe<oe;Pe++){let ft=l[Pe].shaperInfo;ft.position=Math.min(Ct.Pre_C,ft.position)}oe<VA&&(l[oe].shaperInfo.position=Ct.Base_C);for(let Pe=oe+1;Pe<VA;Pe++)if(l[Pe].shaperInfo.category===Rt.M){for(let ft=Pe+1;ft<VA;ft++)if($i(l[ft])){l[ft].shaperInfo.position=Ct.Final_C;break}break}if(tt&&(l[SA].shaperInfo.position=Ct.Ra_To_Become_Reph),I.isOldSpec){let Pe=I.unicodeScript!=="Malayalam";for(let ft=oe+1;ft<VA;ft++)if(l[ft].shaperInfo.category===Rt.H){let mt;for(mt=VA-1;mt>ft&&!($i(l[mt])||Pe&&l[mt].shaperInfo.category===Rt.H);mt--);if(l[mt].shaperInfo.category!==Rt.H&&mt>ft){let fr=l[ft];l.splice(ft,0,...l.splice(ft+1,mt-ft)),l[mt]=fr}break}}let nt=Ct.Start;for(let Pe=SA;Pe<VA;Pe++){let ft=l[Pe].shaperInfo;if(ft.category&(qo|Rt.N|Rt.RS|Rt.CM|ls&ft.category)){if(ft.position=nt,ft.category===Rt.H&&ft.position===Ct.Pre_M){for(let mt=Pe;mt>SA;mt--)if(l[mt-1].shaperInfo.position!==Ct.Pre_M){ft.position=l[mt-1].shaperInfo.position;break}}}else ft.position!==Ct.SMVD&&(nt=ft.position)}let vt=oe;for(let Pe=oe+1;Pe<VA;Pe++)if($i(l[Pe])){for(let ft=vt+1;ft<Pe;ft++)l[ft].shaperInfo.position<Ct.SMVD&&(l[ft].shaperInfo.position=l[Pe].shaperInfo.position);vt=Pe}else l[Pe].shaperInfo.category===Rt.M&&(vt=Pe);let or=l.slice(SA,VA);or.sort((Pe,ft)=>Pe.shaperInfo.position-ft.shaperInfo.position),l.splice(SA,or.length,...or);for(let Pe=SA;Pe<VA;Pe++)if(l[Pe].shaperInfo.position===Ct.Base_C){oe=Pe;break}for(let Pe=SA;Pe<VA&&l[Pe].shaperInfo.position===Ct.Ra_To_Become_Reph;Pe++)l[Pe].features.rphf=!0;let Ft=!I.isOldSpec&&S.blwfMode==="Pre_And_Post";for(let Pe=SA;Pe<oe;Pe++)l[Pe].features.half=!0,Ft&&(l[Pe].features.blwf=!0);for(let Pe=oe+1;Pe<VA;Pe++)l[Pe].features.abvf=!0,l[Pe].features.pstf=!0,l[Pe].features.blwf=!0;if(I.isOldSpec&&I.unicodeScript==="Devanagari")for(let Pe=SA;Pe+1<oe;Pe++)l[Pe].shaperInfo.category===Rt.Ra&&l[Pe+1].shaperInfo.category===Rt.H&&(Pe+1===oe||l[Pe+2].shaperInfo.category===Rt.ZWJ)&&(l[Pe].features.blwf=!0,l[Pe+1].features.blwf=!0);let Gt=2;if(W.pref&&oe+Gt<VA)for(let Pe=oe+1;Pe+Gt-1<VA;Pe++){let ft=[l[Pe].copy(),l[Pe+1].copy()];if(Yi(ft,"pref")){for(let mt=0;mt<Gt;mt++)l[Pe++].features.pref=!0;if(W.cfar)for(;Pe<VA;Pe++)l[Pe].features.cfar=!0;break}}for(let Pe=SA+1;Pe<VA;Pe++)if(wi(l[Pe])){let ft=l[Pe].shaperInfo.category===Rt.ZWNJ,mt=Pe;do mt--,ft&&delete l[mt].features.half;while(mt>SA&&!$i(l[mt]))}}}function xc(fA,l,I){let S=I.indicConfig,W=fA._layoutEngine.engine.GSUBProcessor.features;for(let eA=0,V=Os(l,0);eA<l.length;eA=V,V=Os(l,eA)){let SA=!!W.pref,VA=eA;for(;VA<V;VA++)if(l[VA].shaperInfo.position>=Ct.Base_C){if(SA&&VA+1<V){for(let re=VA+1;re<V;re++)if(l[re].features.pref){if(!(l[re].substituted&&l[re].isLigated&&!l[re].isMultiplied)){for(VA=re;VA<V&&Fi(l[VA]);)VA++;l[VA].shaperInfo.position=Ct.BASE_C,SA=!1}break}}if(I.unicodeScript==="Malayalam")for(let re=VA+1;re<V;re++){for(;re<V&&wi(l[re]);)re++;if(re===V||!Fi(l[re]))break;for(re++;re<V&&wi(l[re]);)re++;re<V&&$i(l[re])&&l[re].shaperInfo.position===Ct.Below_C&&(VA=re,l[VA].shaperInfo.position=Ct.Base_C)}eA<VA&&l[VA].shaperInfo.position>Ct.Base_C&&VA--;break}if(VA===V&&eA<VA&&l[VA-1].shaperInfo.category===Rt.ZWJ&&VA--,VA<V)for(;eA<VA&&l[VA].shaperInfo.category&(Rt.N|ls);)VA--;if(eA+1<V&&eA<VA){let re=VA===V?VA-2:VA-1;if(I.unicodeScript!=="Malayalam"&&I.unicodeScript!=="Tamil"){for(;re>eA&&!(l[re].shaperInfo.category&(Rt.M|ls));)re--;Fi(l[re])&&l[re].shaperInfo.position!==Ct.Pre_M?re+1<V&&wi(l[re+1])&&re++:re=eA}if(eA<re&&l[re].shaperInfo.position!==Ct.Pre_M){for(let le=re;le>eA;le--)if(l[le-1].shaperInfo.position===Ct.Pre_M){let oe=le-1;oe<VA&&VA<=re&&VA--;let Ne=l[oe];l.splice(oe,0,...l.splice(oe+1,re-oe)),l[re]=Ne,re--}}}if(eA+1<V&&l[eA].shaperInfo.position===Ct.Ra_To_Become_Reph&&l[eA].shaperInfo.category===Rt.Repha!==(l[eA].isLigated&&!l[eA].isMultiplied)){let re,le=S.rephPos,oe=!1;if(le!==Ct.After_Post){for(re=eA+1;re<VA&&!Fi(l[re]);)re++;if(re<VA&&Fi(l[re])&&(re+1<VA&&wi(l[re+1])&&re++,oe=!0),!oe&&le===Ct.After_Main){for(re=VA;re+1<V&&l[re+1].shaperInfo.position<=Ct.After_Main;)re++;oe=re<V}if(!oe&&le===Ct.After_Sub){for(re=VA;re+1<V&&!(l[re+1].shaperInfo.position&(Ct.Post_C|Ct.After_Post|Ct.SMVD));)re++;oe=re<V}}if(!oe){for(re=eA+1;re<VA&&!Fi(l[re]);)re++;re<VA&&Fi(l[re])&&(re+1<VA&&wi(l[re+1])&&re++,oe=!0)}if(!oe){for(re=V-1;re>eA&&l[re].shaperInfo.position===Ct.SMVD;)re--;if(Fi(l[re]))for(let tt=VA+1;tt<re;tt++)l[tt].shaperInfo.category===Rt.M&&re--}let Ne=l[eA];l.splice(eA,0,...l.splice(eA+1,re-eA)),l[re]=Ne,eA<VA&&VA<=re&&VA--}if(SA&&VA+1<V){for(let re=VA+1;re<V;re++)if(l[re].features.pref){if(l[re].isLigated&&!l[re].isMultiplied){let le=VA;if(I.unicodeScript!=="Malayalam"&&I.unicodeScript!=="Tamil"){for(;le>eA&&!(l[le-1].shaperInfo.category&(Rt.M|ls));)le--;if(le>eA&&l[le-1].shaperInfo.category===Rt.M){let tt=re;for(let nt=VA+1;nt<tt;nt++)if(l[nt].shaperInfo.category===Rt.M){le--;break}}}le>eA&&Fi(l[le-1])&&le<V&&wi(l[le])&&le++;let oe=re,Ne=l[oe];l.splice(le+1,0,...l.splice(le,oe-le)),l[le]=Ne,le<=VA&&VA<oe&&VA++}break}}l[eA].shaperInfo.position===Ct.Pre_M&&(!eA||!/Cf|Mn/.test((0,Q.getCategory)(l[eA-1].codePoints[0])))&&(l[eA].features.init=!0)}}function Os(fA,l){if(l>=fA.length)return l;let I=fA[l].shaperInfo.syllable;for(;++l<fA.length&&fA[l].shaperInfo.syllable===I;);return l}const{categories:Hc,decompositions:tB}=b(js),Lc=new(b(d))(Ua(" ")),kc=new(b(E))(b(js));class Pt extends Ri{static planFeatures(l){l.addStage(Jc),l.addStage(["locl","ccmp","nukt","akhn"]),l.addStage(iB),l.addStage(["rphf"],!1),l.addStage(Oc),l.addStage(iB),l.addStage(["pref"]),l.addStage(Wc),l.addStage(["rkrf","abvf","blwf","half","pstf","vatu","cjct"]),l.addStage(Kc),l.addStage(["abvs","blws","pres","psts","dist","abvm","blwm"])}static assignFeatures(l,I){for(let S=I.length-1;S>=0;S--){let W=I[S].codePoints[0];if(tB[W]){let eA=tB[W].map(V=>{let SA=l.font.glyphForCodePoint(V);return new si(l.font,SA.id,[V],I[S].features)});I.splice(S,1,...eA)}}}}(0,a._)(Pt,"zeroMarkWidths","BEFORE_GPOS");function rB(fA){return Lc.get(fA.codePoints[0])}class jc{constructor(l,I,S){this.category=l,this.syllableType=I,this.syllable=S}}function Jc(fA,l){let I=0;for(let[S,W,eA]of kc.match(l.map(rB))){++I;for(let SA=S;SA<=W;SA++)l[SA].shaperInfo=new jc(Hc[rB(l[SA])],eA[0],I);let V=l[S].shaperInfo.category==="R"?1:Math.min(3,W-S);for(let SA=S;SA<S+V;SA++)l[SA].features.rphf=!0}}function iB(fA,l){for(let I of l)I.substituted=!1}function Oc(fA,l){for(let I of l)I.substituted&&I.features.rphf&&(I.shaperInfo.category="R")}function Wc(fA,l){for(let I of l)I.substituted&&(I.shaperInfo.category="VPre")}function Kc(fA,l){let I=fA.glyphForCodePoint(9676).id;for(let S=0,W=nB(l,0);S<l.length;S=W,W=nB(l,S)){let eA,V,SA=l[S].shaperInfo,VA=SA.syllableType;if(!(VA!=="virama_terminated_cluster"&&VA!=="standard_cluster"&&VA!=="broken_cluster")){if(VA==="broken_cluster"&&I){let re=new si(fA,I,[9676]);for(re.shaperInfo=SA,eA=S;eA<W&&l[eA].shaperInfo.category==="R";eA++);l.splice(++eA,0,re),W++}if(SA.category==="R"&&W-S>1){for(eA=S+1;eA<W;eA++)if(SA=l[eA].shaperInfo,sB(SA)||Ws(l[eA])){Ws(l[eA])&&eA--,l.splice(S,0,...l.splice(S+1,eA-S),l[eA]);break}}for(eA=S,V=W;eA<W;eA++)SA=l[eA].shaperInfo,sB(SA)||Ws(l[eA])?V=Ws(l[eA])?eA+1:eA:(SA.category==="VPre"||SA.category==="VMPre")&&V<eA&&l.splice(V,1,l[eA],...l.splice(V,eA-V))}}}function nB(fA,l){if(l>=fA.length)return l;let I=fA[l].shaperInfo.syllable;for(;++l<fA.length&&fA[l].shaperInfo.syllable===I;);return l}function Ws(fA){return fA.shaperInfo.category==="H"&&!fA.isLigated}function sB(fA){return fA.category==="B"||fA.category==="GB"}const Vc={arab:Si,mong:Si,syrc:Si,"nko ":Si,phag:Si,mand:Si,mani:Si,phlp:Si,hang:Wo,bng2:wr,beng:wr,dev2:wr,deva:wr,gjr2:wr,gujr:wr,guru:wr,gur2:wr,knda:wr,knd2:wr,mlm2:wr,mlym:wr,ory2:wr,orya:wr,taml:wr,tml2:wr,telu:wr,tel2:wr,khmr:wr,bali:Pt,batk:Pt,brah:Pt,bugi:Pt,buhd:Pt,cakm:Pt,cham:Pt,dupl:Pt,egyp:Pt,gran:Pt,hano:Pt,java:Pt,kthi:Pt,kali:Pt,khar:Pt,khoj:Pt,sind:Pt,lepc:Pt,limb:Pt,mahj:Pt,mtei:Pt,modi:Pt,hmng:Pt,rjng:Pt,saur:Pt,shrd:Pt,sidd:Pt,sinh:wr,sund:Pt,sylo:Pt,tglg:Pt,tagb:Pt,tale:Pt,lana:Pt,tavt:Pt,takr:Pt,tibt:Pt,tfng:Pt,tirh:Pt,latn:Ri,DFLT:Ri};function Xc(fA){Array.isArray(fA)||(fA=[fA]);for(let l of fA){let I=Vc[l];if(I)return I}return Ri}class Zc extends Ss{applyLookup(l,I){switch(l){case 1:{let W=this.coverageIndex(I.coverage);if(W===-1)return!1;let eA=this.glyphIterator.cur;switch(I.version){case 1:eA.id=eA.id+I.deltaGlyphID&65535;break;case 2:eA.id=I.substitute.get(W);break}return!0}case 2:{let W=this.coverageIndex(I.coverage);if(W!==-1){let eA=I.sequences.get(W);if(eA.length===0)return this.glyphs.splice(this.glyphIterator.index,1),!0;this.glyphIterator.cur.id=eA[0],this.glyphIterator.cur.ligatureComponent=0;let V=this.glyphIterator.cur.features,SA=this.glyphIterator.cur,VA=eA.slice(1).map((re,le)=>{let oe=new si(this.font,re,void 0,V);return oe.shaperInfo=SA.shaperInfo,oe.isLigated=SA.isLigated,oe.ligatureComponent=le+1,oe.substituted=!0,oe.isMultiplied=!0,oe});return this.glyphs.splice(this.glyphIterator.index+1,0,...VA),!0}return!1}case 3:{let W=this.coverageIndex(I.coverage);if(W!==-1){let eA=0;return this.glyphIterator.cur.id=I.alternateSet.get(W)[eA],!0}return!1}case 4:{let W=this.coverageIndex(I.coverage);if(W===-1)return!1;for(let eA of I.ligatureSets.get(W)){let V=this.sequenceMatchIndices(1,eA.components);if(!V)continue;let SA=this.glyphIterator.cur,VA=SA.codePoints.slice();for(let vt of V)VA.push(...this.glyphs[vt].codePoints);let re=new si(this.font,eA.glyph,VA,SA.features);re.shaperInfo=SA.shaperInfo,re.isLigated=!0,re.substituted=!0;let le=SA.isMark;for(let vt=0;vt<V.length&&le;vt++)le=this.glyphs[V[vt]].isMark;re.ligatureID=le?null:this.ligatureID++;let oe=SA.ligatureID,Ne=SA.codePoints.length,tt=Ne,nt=this.glyphIterator.index+1;for(let vt of V){if(le)nt=vt;else for(;nt<vt;){var S=tt-Ne+Math.min(this.glyphs[nt].ligatureComponent||1,Ne);this.glyphs[nt].ligatureID=re.ligatureID,this.glyphs[nt].ligatureComponent=S,nt++}oe=this.glyphs[nt].ligatureID,Ne=this.glyphs[nt].codePoints.length,tt+=Ne,nt++}if(oe&&!le)for(let vt=nt;vt<this.glyphs.length&&this.glyphs[vt].ligatureID===oe;vt++){var S=tt-Ne+Math.min(this.glyphs[vt].ligatureComponent||1,Ne);this.glyphs[vt].ligatureComponent=S}for(let vt=V.length-1;vt>=0;vt--)this.glyphs.splice(V[vt],1);return this.glyphs[this.glyphIterator.index]=re,!0}return!1}case 5:return this.applyContext(I);case 6:return this.applyChainingContext(I);case 7:return this.applyLookup(I.lookupType,I.extension);default:throw new Error(`GSUB lookupType ${l} is not supported`)}}}class _c extends Ss{applyPositionValue(l,I){let S=this.positions[this.glyphIterator.peekIndex(l)];I.xAdvance!=null&&(S.xAdvance+=I.xAdvance),I.yAdvance!=null&&(S.yAdvance+=I.yAdvance),I.xPlacement!=null&&(S.xOffset+=I.xPlacement),I.yPlacement!=null&&(S.yOffset+=I.yPlacement);let W=this.font._variationProcessor,eA=this.font.GDEF&&this.font.GDEF.itemVariationStore;W&&eA&&(I.xPlaDevice&&(S.xOffset+=W.getDelta(eA,I.xPlaDevice.a,I.xPlaDevice.b)),I.yPlaDevice&&(S.yOffset+=W.getDelta(eA,I.yPlaDevice.a,I.yPlaDevice.b)),I.xAdvDevice&&(S.xAdvance+=W.getDelta(eA,I.xAdvDevice.a,I.xAdvDevice.b)),I.yAdvDevice&&(S.yAdvance+=W.getDelta(eA,I.yAdvDevice.a,I.yAdvDevice.b)))}applyLookup(l,I){switch(l){case 1:{let W=this.coverageIndex(I.coverage);if(W===-1)return!1;switch(I.version){case 1:this.applyPositionValue(0,I.value);break;case 2:this.applyPositionValue(0,I.values.get(W));break}return!0}case 2:{let W=this.glyphIterator.peek();if(!W)return!1;let eA=this.coverageIndex(I.coverage);if(eA===-1)return!1;switch(I.version){case 1:let V=I.pairSets.get(eA);for(let re of V)if(re.secondGlyph===W.id)return this.applyPositionValue(0,re.value1),this.applyPositionValue(1,re.value2),!0;return!1;case 2:let SA=this.getClassID(this.glyphIterator.cur.id,I.classDef1),VA=this.getClassID(W.id,I.classDef2);if(SA===-1||VA===-1)return!1;var S=I.classRecords.get(SA).get(VA);return this.applyPositionValue(0,S.value1),this.applyPositionValue(1,S.value2),!0}}case 3:{let W=this.glyphIterator.peekIndex(),eA=this.glyphs[W];if(!eA)return!1;let V=I.entryExitRecords[this.coverageIndex(I.coverage)];if(!V||!V.exitAnchor)return!1;let SA=I.entryExitRecords[this.coverageIndex(I.coverage,eA.id)];if(!SA||!SA.entryAnchor)return!1;let VA=this.getAnchor(SA.entryAnchor),re=this.getAnchor(V.exitAnchor),le=this.positions[this.glyphIterator.index],oe=this.positions[W],Ne;switch(this.direction){case"ltr":le.xAdvance=re.x+le.xOffset,Ne=VA.x+oe.xOffset,oe.xAdvance-=Ne,oe.xOffset-=Ne;break;case"rtl":Ne=re.x+le.xOffset,le.xAdvance-=Ne,le.xOffset-=Ne,oe.xAdvance=VA.x+oe.xOffset;break}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=W,le.yOffset=VA.y-re.y):(eA.cursiveAttachment=this.glyphIterator.index,le.yOffset=re.y-VA.y),!0}case 4:{let W=this.coverageIndex(I.markCoverage);if(W===-1)return!1;let eA=this.glyphIterator.index;for(;--eA>=0&&(this.glyphs[eA].isMark||this.glyphs[eA].ligatureComponent>0););if(eA<0)return!1;let V=this.coverageIndex(I.baseCoverage,this.glyphs[eA].id);if(V===-1)return!1;let SA=I.markArray[W],VA=I.baseArray[V][SA.class];return this.applyAnchor(SA,VA,eA),!0}case 5:{let W=this.coverageIndex(I.markCoverage);if(W===-1)return!1;let eA=this.glyphIterator.index;for(;--eA>=0&&this.glyphs[eA].isMark;);if(eA<0)return!1;let V=this.coverageIndex(I.ligatureCoverage,this.glyphs[eA].id);if(V===-1)return!1;let SA=I.ligatureArray[V],VA=this.glyphIterator.cur,re=this.glyphs[eA],le=re.ligatureID&&re.ligatureID===VA.ligatureID&&VA.ligatureComponent>0?Math.min(VA.ligatureComponent,re.codePoints.length)-1:re.codePoints.length-1,oe=I.markArray[W],Ne=SA[le][oe.class];return this.applyAnchor(oe,Ne,eA),!0}case 6:{let W=this.coverageIndex(I.mark1Coverage);if(W===-1)return!1;let eA=this.glyphIterator.peekIndex(-1),V=this.glyphs[eA];if(!V||!V.isMark)return!1;let SA=this.glyphIterator.cur,VA=!1;if(SA.ligatureID===V.ligatureID?SA.ligatureID?SA.ligatureComponent===V.ligatureComponent&&(VA=!0):VA=!0:(SA.ligatureID&&!SA.ligatureComponent||V.ligatureID&&!V.ligatureComponent)&&(VA=!0),!VA)return!1;let re=this.coverageIndex(I.mark2Coverage,V.id);if(re===-1)return!1;let le=I.mark1Array[W],oe=I.mark2Array[re][le.class];return this.applyAnchor(le,oe,eA),!0}case 7:return this.applyContext(I);case 8:return this.applyChainingContext(I);case 9:return this.applyLookup(I.lookupType,I.extension);default:throw new Error(`Unsupported GPOS table: ${l}`)}}applyAnchor(l,I,S){let W=this.getAnchor(I),eA=this.getAnchor(l.markAnchor);this.positions[S];let V=this.positions[this.glyphIterator.index];V.xOffset=W.x-eA.x,V.yOffset=W.y-eA.y,this.glyphIterator.cur.markAttachment=S}getAnchor(l){let I=l.xCoordinate,S=l.yCoordinate,W=this.font._variationProcessor,eA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return W&&eA&&(l.xDeviceTable&&(I+=W.getDelta(eA,l.xDeviceTable.a,l.xDeviceTable.b)),l.yDeviceTable&&(S+=W.getDelta(eA,l.yDeviceTable.a,l.yDeviceTable.b))),{x:I,y:S}}applyFeatures(l,I,S){super.applyFeatures(l,I,S);for(var W=0;W<this.glyphs.length;W++)this.fixCursiveAttachment(W);this.fixMarkAttachment()}fixCursiveAttachment(l){let I=this.glyphs[l];if(I.cursiveAttachment!=null){let S=I.cursiveAttachment;I.cursiveAttachment=null,this.fixCursiveAttachment(S),this.positions[l].yOffset+=this.positions[S].yOffset}}fixMarkAttachment(){for(let l=0;l<this.glyphs.length;l++){let I=this.glyphs[l];if(I.markAttachment!=null){let S=I.markAttachment;if(this.positions[l].xOffset+=this.positions[S].xOffset,this.positions[l].yOffset+=this.positions[S].yOffset,this.direction==="ltr")for(let W=S;W<l;W++)this.positions[l].xOffset-=this.positions[W].xAdvance,this.positions[l].yOffset-=this.positions[W].yAdvance;else for(let W=S+1;W<l+1;W++)this.positions[l].xOffset+=this.positions[W].xAdvance,this.positions[l].yOffset+=this.positions[W].yAdvance}}}}class qc{setup(l){this.glyphInfos=l.glyphs.map(S=>new si(this.font,S.id,[...S.codePoints]));let I=null;this.GPOSProcessor&&(I=this.GPOSProcessor.selectScript(l.script,l.language,l.direction)),this.GSUBProcessor&&(I=this.GSUBProcessor.selectScript(l.script,l.language,l.direction)),this.shaper=Xc(I),this.plan=new qg(this.font,I,l.direction),this.shaper.plan(this.plan,this.glyphInfos,l.features);for(let S in this.plan.allFeatures)l.features[S]=!0}substitute(l){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),l.glyphs=this.glyphInfos.map(I=>this.font.getGlyph(I.id,I.codePoints)))}position(l){return this.shaper.zeroMarkWidths==="BEFORE_GPOS"&&this.zeroMarkAdvances(l.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,l.positions),this.shaper.zeroMarkWidths==="AFTER_GPOS"&&this.zeroMarkAdvances(l.positions),l.direction==="rtl"&&(l.glyphs.reverse(),l.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(l){for(let I=0;I<this.glyphInfos.length;I++)this.glyphInfos[I].isMark&&(l[I].xAdvance=0,l[I].yAdvance=0)}cleanup(){this.glyphInfos=null,this.plan=null,this.shaper=null}getAvailableFeatures(l,I){let S=[];return this.GSUBProcessor&&(this.GSUBProcessor.selectScript(l,I),S.push(...Object.keys(this.GSUBProcessor.features))),this.GPOSProcessor&&(this.GPOSProcessor.selectScript(l,I),S.push(...Object.keys(this.GPOSProcessor.features))),S}constructor(l){this.font=l,this.glyphInfos=null,this.plan=null,this.GSUBProcessor=null,this.GPOSProcessor=null,this.fallbackPosition=!0,l.GSUB&&(this.GSUBProcessor=new Zc(l,l.GSUB)),l.GPOS&&(this.GPOSProcessor=new _c(l,l.GPOS))}}class $c{layout(l,I,S,W,eA){if(typeof I=="string"&&(eA=W,W=S,S=I,I=[]),typeof l=="string"){S==null&&(S=vg(l));var V=this.font.glyphsForString(l)}else{if(S==null){let re=[];for(let le of l)re.push(...le.codePoints);S=mg(re)}var V=l}let SA=new Ug(V,I,S,W,eA);return V.length===0?(SA.positions=[],SA):(this.engine&&this.engine.setup&&this.engine.setup(SA),this.substitute(SA),this.position(SA),this.hideDefaultIgnorables(SA.glyphs,SA.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),SA)}substitute(l){this.engine&&this.engine.substitute&&this.engine.substitute(l)}position(l){l.positions=l.glyphs.map(S=>new zg(S.advanceWidth));let I=null;this.engine&&this.engine.position&&(I=this.engine.position(l)),!I&&(!this.engine||this.engine.fallbackPosition)&&(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new Fg(this.font)),this.unicodeLayoutEngine.positionGlyphs(l.glyphs,l.positions)),(!I||!I.kern)&&l.features.kern!==!1&&this.font.kern&&(this.kernProcessor||(this.kernProcessor=new yg(this.font)),this.kernProcessor.process(l.glyphs,l.positions),l.features.kern=!0)}hideDefaultIgnorables(l,I){let S=this.font.glyphForCodePoint(32);for(let W=0;W<l.length;W++)this.isDefaultIgnorable(l[W].codePoints[0])&&(l[W]=S,I[W].xAdvance=0,I[W].yAdvance=0)}isDefaultIgnorable(l){let I=l>>16;if(I===0)switch(l>>8){case 0:return l===173;case 3:return l===847;case 6:return l===1564;case 23:return 6068<=l&&l<=6069;case 24:return 6155<=l&&l<=6158;case 32:return 8203<=l&&l<=8207||8234<=l&&l<=8238||8288<=l&&l<=8303;case 254:return 65024<=l&&l<=65039||l===65279;case 255:return 65520<=l&&l<=65528;default:return!1}else switch(I){case 1:return 113824<=l&&l<=113827||119155<=l&&l<=119162;case 14:return 917504<=l&&l<=921599;default:return!1}}getAvailableFeatures(l,I){let S=[];return this.engine&&S.push(...this.engine.getAvailableFeatures(l,I)),this.font.kern&&S.indexOf("kern")===-1&&S.push("kern"),S}stringsForGlyph(l){let I=new Set,S=this.font._cmapProcessor.codePointsForGlyph(l);for(let W of S)I.add(String.fromCodePoint(W));if(this.engine&&this.engine.stringsForGlyph)for(let W of this.engine.stringsForGlyph(l))I.add(W);return Array.from(I)}constructor(l){this.font=l,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new _g(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new qc(this.font))}}const AE={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"};class dn{toFunction(){return l=>{this.commands.forEach(I=>l[I.command].apply(l,I.args))}}toSVG(){return this.commands.map(I=>{let S=I.args.map(W=>Math.round(W*100)/100);return`${AE[I.command]}${S.join(" ")}`}).join("")}get cbox(){if(!this._cbox){let l=new Pi;for(let I of this.commands)for(let S=0;S<I.args.length;S+=2)l.addPoint(I.args[S],I.args[S+1]);this._cbox=Object.freeze(l)}return this._cbox}get bbox(){if(this._bbox)return this._bbox;let l=new Pi,I=0,S=0,W=Gt=>Math.pow(1-Gt,3)*tt[Ft]+3*Math.pow(1-Gt,2)*Gt*nt[Ft]+3*(1-Gt)*Math.pow(Gt,2)*vt[Ft]+Math.pow(Gt,3)*or[Ft];for(let Gt of this.commands)switch(Gt.command){case"moveTo":case"lineTo":let[Pe,ft]=Gt.args;l.addPoint(Pe,ft),I=Pe,S=ft;break;case"quadraticCurveTo":case"bezierCurveTo":if(Gt.command==="quadraticCurveTo")var[eA,V,oe,Ne]=Gt.args,SA=I+2/3*(eA-I),VA=S+2/3*(V-S),re=oe+2/3*(eA-oe),le=Ne+2/3*(V-Ne);else var[SA,VA,re,le,oe,Ne]=Gt.args;l.addPoint(oe,Ne);for(var tt=[I,S],nt=[SA,VA],vt=[re,le],or=[oe,Ne],Ft=0;Ft<=1;Ft++){let mt=6*tt[Ft]-12*nt[Ft]+6*vt[Ft],fr=-3*tt[Ft]+9*nt[Ft]-9*vt[Ft]+3*or[Ft];if(Gt=3*nt[Ft]-3*tt[Ft],fr===0){if(mt===0)continue;let er=-Gt/mt;0<er&&er<1&&(Ft===0?l.addPoint(W(er),l.maxY):Ft===1&&l.addPoint(l.maxX,W(er)));continue}let Yr=Math.pow(mt,2)-4*Gt*fr;if(Yr<0)continue;let Xt=(-mt+Math.sqrt(Yr))/(2*fr);0<Xt&&Xt<1&&(Ft===0?l.addPoint(W(Xt),l.maxY):Ft===1&&l.addPoint(l.maxX,W(Xt)));let Wr=(-mt-Math.sqrt(Yr))/(2*fr);0<Wr&&Wr<1&&(Ft===0?l.addPoint(W(Wr),l.maxY):Ft===1&&l.addPoint(l.maxX,W(Wr)))}I=oe,S=Ne;break}return this._bbox=Object.freeze(l)}mapPoints(l){let I=new dn;for(let S of this.commands){let W=[];for(let eA=0;eA<S.args.length;eA+=2){let[V,SA]=l(S.args[eA],S.args[eA+1]);W.push(V,SA)}I[S.command](...W)}return I}transform(l,I,S,W,eA,V){return this.mapPoints((SA,VA)=>{const re=l*SA+S*VA+eA,le=I*SA+W*VA+V;return[re,le]})}translate(l,I){return this.transform(1,0,0,1,l,I)}rotate(l){let I=Math.cos(l),S=Math.sin(l);return this.transform(I,S,-S,I,0,0)}scale(l,I=l){return this.transform(l,0,0,I,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}}for(let fA of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])dn.prototype[fA]=function(...l){return this._bbox=this._cbox=null,this.commands.push({command:fA,args:l}),this};var gs=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];class fi{_getPath(){return new dn}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(l){if(this.id<l.metrics.length)return l.metrics.get(this.id);let I=l.metrics.get(l.metrics.length-1);return{advance:I?I.advance:0,bearing:l.bearings.get(this.id-l.metrics.length)||0}}_getMetrics(l){if(this._metrics)return this._metrics;let{advance:I,bearing:S}=this._getTableMetrics(this._font.hmtx);if(this._font.vmtx)var{advance:W,bearing:eA}=this._getTableMetrics(this._font.vmtx);else{let V;if((typeof l>"u"||l===null)&&({cbox:l}=this),(V=this._font["OS/2"])&&V.version>0)var W=Math.abs(V.typoAscender-V.typoDescender),eA=V.typoAscender-l.maxY;else{let{hhea:SA}=this._font;var W=Math.abs(SA.ascent-SA.descent),eA=SA.ascent-l.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(I+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:I,advanceHeight:W,leftBearing:S,topBearing:eA}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(l){let I=1/this._font.unitsPerEm*l;return this.path.scale(I)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:l}=this._font;if(!l)return null;switch(l.version){case 1:return gs[this.id];case 2:let I=l.glyphNameIndex[this.id];return I<gs.length?gs[I]:l.names[I-gs.length];case 2.5:return gs[this.id+l.offsets[this.id]];case 4:return String.fromCharCode(l.map[this.id])}}get name(){return this._getName()}render(l,I){l.save();let S=1/this._font.head.unitsPerEm*I;l.scale(S,S),this.path.toFunction()(l),l.fill(),l.restore()}constructor(l,I,S){this.id=l,this.codePoints=I,this._font=S,this.isMark=this.codePoints.length>0&&this.codePoints.every(Q.isMark),this.isLigature=this.codePoints.length>1}}(0,f._)([X],fi.prototype,"cbox",null),(0,f._)([X],fi.prototype,"bbox",null),(0,f._)([X],fi.prototype,"path",null),(0,f._)([X],fi.prototype,"advanceWidth",null),(0,f._)([X],fi.prototype,"advanceHeight",null),(0,f._)([X],fi.prototype,"name",null);let aB=new A.Struct({numberOfContours:A.int16,xMin:A.int16,yMin:A.int16,xMax:A.int16,yMax:A.int16});const eE=1,tE=2,rE=4,iE=8,nE=16,sE=32,aE=1,oE=8,oB=32,BE=64,lE=128,gE=256;class ai{copy(){return new ai(this.onCurve,this.endContour,this.x,this.y)}constructor(l,I,S=0,W=0){this.onCurve=l,this.endContour=I,this.x=S,this.y=W}}class cE{constructor(l,I,S){this.glyphID=l,this.dx=I,this.dy=S,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}}class Ks extends fi{_getCBox(l){if(this._font._variationProcessor&&!l)return this.path.cbox;let I=this._font._getTableStream("glyf");I.pos+=this._font.loca.offsets[this.id];let S=aB.decode(I),W=new Pi(S.xMin,S.yMin,S.xMax,S.yMax);return Object.freeze(W)}_parseGlyphCoord(l,I,S,W){if(S){var eA=l.readUInt8();W||(eA=-eA),eA+=I}else if(W)var eA=I;else var eA=I+l.readInt16BE();return eA}_decode(){let l=this._font.loca.offsets[this.id],I=this._font.loca.offsets[this.id+1];if(l===I)return null;let S=this._font._getTableStream("glyf");S.pos+=l;let W=S.pos,eA=aB.decode(S);return eA.numberOfContours>0?this._decodeSimple(eA,S):eA.numberOfContours<0&&this._decodeComposite(eA,S,W),eA}_decodeSimple(l,I){l.points=[];let S=new A.Array(A.uint16,l.numberOfContours).decode(I);l.instructions=new A.Array(A.uint8,A.uint16).decode(I);let W=[],eA=S[S.length-1]+1;for(;W.length<eA;){var V=I.readUInt8();if(W.push(V),V&iE){let le=I.readUInt8();for(let oe=0;oe<le;oe++)W.push(V)}}for(var SA=0;SA<W.length;SA++){var V=W[SA];let oe=new ai(!!(V&eE),S.indexOf(SA)>=0,0,0);l.points.push(oe)}let VA=0;for(var SA=0;SA<W.length;SA++){var V=W[SA];l.points[SA].x=VA=this._parseGlyphCoord(I,VA,V&tE,V&nE)}let re=0;for(var SA=0;SA<W.length;SA++){var V=W[SA];l.points[SA].y=re=this._parseGlyphCoord(I,re,V&rE,V&sE)}if(this._font._variationProcessor){let le=l.points.slice();le.push(...this._getPhantomPoints(l)),this._font._variationProcessor.transformPoints(this.id,le),l.phantomPoints=le.slice(-4)}}_decodeComposite(l,I,S=0){l.components=[];let W=!1,eA=oB;for(;eA&oB;){eA=I.readUInt16BE();let re=I.pos-S,le=I.readUInt16BE();if(W||(W=(eA&gE)!==0),eA&aE)var V=I.readInt16BE(),SA=I.readInt16BE();else var V=I.readInt8(),SA=I.readInt8();var VA=new cE(le,V,SA);VA.pos=re,eA&oE?VA.scaleX=VA.scaleY=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824:eA&BE?(VA.scaleX=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824,VA.scaleY=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824):eA&lE&&(VA.scaleX=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824,VA.scale01=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824,VA.scale10=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824,VA.scaleY=(I.readUInt8()<<24|I.readUInt8()<<16)/1073741824),l.components.push(VA)}if(this._font._variationProcessor){let re=[];for(let le=0;le<l.components.length;le++){var VA=l.components[le];re.push(new ai(!0,!0,VA.dx,VA.dy))}re.push(...this._getPhantomPoints(l)),this._font._variationProcessor.transformPoints(this.id,re),l.phantomPoints=re.splice(-4,4);for(let le=0;le<re.length;le++){let oe=re[le];l.components[le].dx=oe.x,l.components[le].dy=oe.y}}return W}_getPhantomPoints(l){let I=this._getCBox(!0);this._metrics==null&&(this._metrics=fi.prototype._getMetrics.call(this,I));let{advanceWidth:S,advanceHeight:W,leftBearing:eA,topBearing:V}=this._metrics;return[new ai(!1,!0,l.xMin-eA,0),new ai(!1,!0,l.xMin-eA+S,0),new ai(!1,!0,0,l.yMax+V),new ai(!1,!0,0,l.yMax+V+W)]}_getContours(){let l=this._decode();if(!l)return[];let I=[];if(l.numberOfContours<0)for(let V of l.components){let SA=this._font.getGlyph(V.glyphID)._getContours();for(let VA=0;VA<SA.length;VA++){let re=SA[VA];for(let le=0;le<re.length;le++){let oe=re[le],Ne=oe.x*V.scaleX+oe.y*V.scale01+V.dx,tt=oe.y*V.scaleY+oe.x*V.scale10+V.dy;I.push(new ai(oe.onCurve,oe.endContour,Ne,tt))}}}else I=l.points||[];l.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=l.phantomPoints[1].x-l.phantomPoints[0].x,this._metrics.advanceHeight=l.phantomPoints[3].y-l.phantomPoints[2].y,this._metrics.leftBearing=l.xMin-l.phantomPoints[0].x,this._metrics.topBearing=l.phantomPoints[2].y-l.yMax);let S=[],W=[];for(let V=0;V<I.length;V++){var eA=I[V];W.push(eA),eA.endContour&&(S.push(W),W=[])}return S}_getMetrics(){if(this._metrics)return this._metrics;let l=this._getCBox(!0);return super._getMetrics(l),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics}_getPath(){let l=this._getContours(),I=new dn;for(let W=0;W<l.length;W++){let eA=l[W],V=eA[0],SA=eA[eA.length-1],VA=0;if(V.onCurve){var S=null;VA=1}else{SA.onCurve?V=SA:V=new ai(!1,!1,(V.x+SA.x)/2,(V.y+SA.y)/2);var S=V}I.moveTo(V.x,V.y);for(let re=VA;re<eA.length;re++){let le=eA[re],oe=re===0?V:eA[re-1];if(oe.onCurve&&le.onCurve)I.lineTo(le.x,le.y);else if(oe.onCurve&&!le.onCurve)var S=le;else if(!oe.onCurve&&!le.onCurve){let tt=(oe.x+le.x)/2,nt=(oe.y+le.y)/2;I.quadraticCurveTo(oe.x,oe.y,tt,nt);var S=le}else if(!oe.onCurve&&le.onCurve){I.quadraticCurveTo(S.x,S.y,le.x,le.y);var S=null}else throw new Error("Unknown TTF path state")}S&&I.quadraticCurveTo(S.x,S.y,V.x,V.y),I.closePath()}return I}constructor(...l){super(...l),(0,a._)(this,"type","TTF")}}class EE extends fi{_getName(){return this._font.CFF2?super._getName():this._font["CFF "].getGlyphName(this.id)}bias(l){return l.length<1240?107:l.length<33900?1131:32768}_getPath(){let l=this._font.CFF2||this._font["CFF "],{stream:I}=l,S=l.topDict.CharStrings[this.id],W=S.offset+S.length;I.pos=S.offset;let eA=new dn,V=[],SA=[],VA=null,re=0,le=0,oe=0,Ne,tt,nt=!1;this._usedGsubrs=Ne={},this._usedSubrs=tt={};let vt=l.globalSubrIndex||[],or=this.bias(vt),Ft=l.privateDictForGlyph(this.id)||{},Gt=Ft.Subrs||[],Pe=this.bias(Gt),ft=l.topDict.vstore&&l.topDict.vstore.itemVariationStore,mt=Ft.vsindex,fr=this._font._variationProcessor;function Yr(){VA==null&&(VA=V.shift()+Ft.nominalWidthX)}function Xt(){return V.length%2!==0&&Yr(),re+=V.length>>1,V.length=0}function Wr(oi,ui){nt&&eA.closePath(),eA.moveTo(oi,ui),nt=!0}let er=function(){for(;I.pos<W;){let Lr=I.readUInt8();if(Lr<32){let Mn,Qi,Ti,rr,ir,nr,sr,Dn,In,pn,yn,Fn,Yn,vn,mn,vi;switch(Lr){case 1:case 3:case 18:case 23:Xt();break;case 4:V.length>1&&Yr(),oe+=V.shift(),Wr(le,oe);break;case 5:for(;V.length>=2;)le+=V.shift(),oe+=V.shift(),eA.lineTo(le,oe);break;case 6:case 7:for(Ti=Lr===6;V.length>=1;)Ti?le+=V.shift():oe+=V.shift(),eA.lineTo(le,oe),Ti=!Ti;break;case 8:for(;V.length>0;)rr=le+V.shift(),ir=oe+V.shift(),nr=rr+V.shift(),sr=ir+V.shift(),le=nr+V.shift(),oe=sr+V.shift(),eA.bezierCurveTo(rr,ir,nr,sr,le,oe);break;case 10:if(Mn=V.pop()+Pe,Qi=Gt[Mn],Qi){tt[Mn]=!0;let Lt=I.pos,lr=W;I.pos=Qi.offset,W=Qi.offset+Qi.length,er(),I.pos=Lt,W=lr}break;case 11:if(l.version>=2)break;return;case 14:if(l.version>=2)break;V.length>0&&Yr(),nt&&(eA.closePath(),nt=!1);break;case 15:if(l.version<2)throw new Error("vsindex operator not supported in CFF v1");mt=V.pop();break;case 16:{if(l.version<2)throw new Error("blend operator not supported in CFF v1");if(!fr)throw new Error("blend operator in non-variation font");let Lt=fr.getBlendVector(ft,mt),lr=V.pop(),Vs=lr*Lt.length,$r=V.length-Vs,Xs=$r-lr;for(let bn=0;bn<lr;bn++){let Zs=V[Xs+bn];for(let cs=0;cs<Lt.length;cs++)Zs+=Lt[cs]*V[$r++];V[Xs+bn]=Zs}for(;Vs--;)V.pop();break}case 19:case 20:Xt(),I.pos+=re+7>>3;break;case 21:V.length>2&&Yr(),le+=V.shift(),oe+=V.shift(),Wr(le,oe);break;case 22:V.length>1&&Yr(),le+=V.shift(),Wr(le,oe);break;case 24:for(;V.length>=8;)rr=le+V.shift(),ir=oe+V.shift(),nr=rr+V.shift(),sr=ir+V.shift(),le=nr+V.shift(),oe=sr+V.shift(),eA.bezierCurveTo(rr,ir,nr,sr,le,oe);le+=V.shift(),oe+=V.shift(),eA.lineTo(le,oe);break;case 25:for(;V.length>=8;)le+=V.shift(),oe+=V.shift(),eA.lineTo(le,oe);rr=le+V.shift(),ir=oe+V.shift(),nr=rr+V.shift(),sr=ir+V.shift(),le=nr+V.shift(),oe=sr+V.shift(),eA.bezierCurveTo(rr,ir,nr,sr,le,oe);break;case 26:for(V.length%2&&(le+=V.shift());V.length>=4;)rr=le,ir=oe+V.shift(),nr=rr+V.shift(),sr=ir+V.shift(),le=nr,oe=sr+V.shift(),eA.bezierCurveTo(rr,ir,nr,sr,le,oe);break;case 27:for(V.length%2&&(oe+=V.shift());V.length>=4;)rr=le+V.shift(),ir=oe,nr=rr+V.shift(),sr=ir+V.shift(),le=nr+V.shift(),oe=sr,eA.bezierCurveTo(rr,ir,nr,sr,le,oe);break;case 28:V.push(I.readInt16BE());break;case 29:if(Mn=V.pop()+or,Qi=vt[Mn],Qi){Ne[Mn]=!0;let Lt=I.pos,lr=W;I.pos=Qi.offset,W=Qi.offset+Qi.length,er(),I.pos=Lt,W=lr}break;case 30:case 31:for(Ti=Lr===31;V.length>=4;)Ti?(rr=le+V.shift(),ir=oe,nr=rr+V.shift(),sr=ir+V.shift(),oe=sr+V.shift(),le=nr+(V.length===1?V.shift():0)):(rr=le,ir=oe+V.shift(),nr=rr+V.shift(),sr=ir+V.shift(),le=nr+V.shift(),oe=sr+(V.length===1?V.shift():0)),eA.bezierCurveTo(rr,ir,nr,sr,le,oe),Ti=!Ti;break;case 12:switch(Lr=I.readUInt8(),Lr){case 3:let Lt=V.pop(),lr=V.pop();V.push(Lt&&lr?1:0);break;case 4:Lt=V.pop(),lr=V.pop(),V.push(Lt||lr?1:0);break;case 5:Lt=V.pop(),V.push(Lt?0:1);break;case 9:Lt=V.pop(),V.push(Math.abs(Lt));break;case 10:Lt=V.pop(),lr=V.pop(),V.push(Lt+lr);break;case 11:Lt=V.pop(),lr=V.pop(),V.push(Lt-lr);break;case 12:Lt=V.pop(),lr=V.pop(),V.push(Lt/lr);break;case 14:Lt=V.pop(),V.push(-Lt);break;case 15:Lt=V.pop(),lr=V.pop(),V.push(Lt===lr?1:0);break;case 18:V.pop();break;case 20:let Vs=V.pop(),$r=V.pop();SA[$r]=Vs;break;case 21:$r=V.pop(),V.push(SA[$r]||0);break;case 22:let Xs=V.pop(),bn=V.pop(),Zs=V.pop(),cs=V.pop();V.push(Zs<=cs?Xs:bn);break;case 23:V.push(Math.random());break;case 24:Lt=V.pop(),lr=V.pop(),V.push(Lt*lr);break;case 26:Lt=V.pop(),V.push(Math.sqrt(Lt));break;case 27:Lt=V.pop(),V.push(Lt,Lt);break;case 28:Lt=V.pop(),lr=V.pop(),V.push(lr,Lt);break;case 29:$r=V.pop(),$r<0?$r=0:$r>V.length-1&&($r=V.length-1),V.push(V[$r]);break;case 30:let _s=V.pop(),Es=V.pop();if(Es>=0)for(;Es>0;){var oi=V[_s-1];for(let Ci=_s-2;Ci>=0;Ci--)V[Ci+1]=V[Ci];V[0]=oi,Es--}else for(;Es<0;){var oi=V[0];for(let qs=0;qs<=_s;qs++)V[qs]=V[qs+1];V[_s-1]=oi,Es++}break;case 34:rr=le+V.shift(),ir=oe,nr=rr+V.shift(),sr=ir+V.shift(),Dn=nr+V.shift(),In=sr,pn=Dn+V.shift(),yn=In,Fn=pn+V.shift(),Yn=yn,vn=Fn+V.shift(),mn=Yn,le=vn,oe=mn,eA.bezierCurveTo(rr,ir,nr,sr,Dn,In),eA.bezierCurveTo(pn,yn,Fn,Yn,vn,mn);break;case 35:vi=[];for(let Ci=0;Ci<=5;Ci++)le+=V.shift(),oe+=V.shift(),vi.push(le,oe);eA.bezierCurveTo(...vi.slice(0,6)),eA.bezierCurveTo(...vi.slice(6)),V.shift();break;case 36:rr=le+V.shift(),ir=oe+V.shift(),nr=rr+V.shift(),sr=ir+V.shift(),Dn=nr+V.shift(),In=sr,pn=Dn+V.shift(),yn=In,Fn=pn+V.shift(),Yn=yn+V.shift(),vn=Fn+V.shift(),mn=Yn,le=vn,oe=mn,eA.bezierCurveTo(rr,ir,nr,sr,Dn,In),eA.bezierCurveTo(pn,yn,Fn,Yn,vn,mn);break;case 37:let DB=le,IB=oe;vi=[];for(let Ci=0;Ci<=4;Ci++)le+=V.shift(),oe+=V.shift(),vi.push(le,oe);Math.abs(le-DB)>Math.abs(oe-IB)?(le+=V.shift(),oe=IB):(le=DB,oe+=V.shift()),vi.push(le,oe),eA.bezierCurveTo(...vi.slice(0,6)),eA.bezierCurveTo(...vi.slice(6));break;default:throw new Error(`Unknown op: 12 ${Lr}`)}break;default:throw new Error(`Unknown op: ${Lr}`)}}else if(Lr<247)V.push(Lr-139);else if(Lr<251){var ui=I.readUInt8();V.push((Lr-247)*256+ui+108)}else if(Lr<255){var ui=I.readUInt8();V.push(-(Lr-251)*256-ui-108)}else V.push(I.readInt32BE()/65536)}};return er(),nt&&eA.closePath(),eA}constructor(...l){super(...l),(0,a._)(this,"type","CFF")}}let wE=new A.Struct({originX:A.uint16,originY:A.uint16,type:new A.String(4),data:new A.Buffer(fA=>fA.parent.buflen-fA._currentOffset)});class fE extends Ks{getImageForSize(l){for(let V=0;V<this._font.sbix.imageTables.length;V++){var I=this._font.sbix.imageTables[V];if(I.ppem>=l)break}let S=I.imageOffsets,W=S[this.id],eA=S[this.id+1];return W===eA?null:(this._font.stream.pos=W,wE.decode(this._font.stream,{buflen:eA-W}))}render(l,I){let S=this.getImageForSize(I);if(S!=null){let W=I/this._font.unitsPerEm;l.image(S.data,{height:I,x:S.originX,y:(this.bbox.minY-S.originY)*W})}this._font.sbix.flags.renderOutlines&&super.render(l,I)}constructor(...l){super(...l),(0,a._)(this,"type","SBIX")}}class BB{constructor(l,I){this.glyph=l,this.color=I}}class hE extends fi{_getBBox(){let l=new Pi;for(let I=0;I<this.layers.length;I++){let W=this.layers[I].glyph.bbox;l.addPoint(W.minX,W.minY),l.addPoint(W.maxX,W.maxY)}return l}get layers(){let l=this._font.CPAL,I=this._font.COLR,S=0,W=I.baseGlyphRecord.length-1;for(;S<=W;){let le=S+W>>1;var eA=I.baseGlyphRecord[le];if(this.id<eA.gid)W=le-1;else if(this.id>eA.gid)S=le+1;else{var V=eA;break}}if(V==null){var SA=this._font._getBaseGlyph(this.id),VA={red:0,green:0,blue:0,alpha:255};return[new BB(SA,VA)]}let re=[];for(let le=V.firstLayerIndex;le<V.firstLayerIndex+V.numLayers;le++){var eA=I.layerRecords[le],VA=l.colorRecords[eA.paletteIndex],SA=this._font._getBaseGlyph(eA.gid);re.push(new BB(SA,VA))}return re}render(l,I){for(let{glyph:S,color:W}of this.layers)l.fillColor([W.red,W.green,W.blue],W.alpha/255*100),S.render(l,I)}constructor(...l){super(...l),(0,a._)(this,"type","COLR")}}const uE=32768,QE=4095,CE=32768,lB=16384,dE=8192,gB=4095,cB=128,EB=127,ME=128,DE=64,IE=63;class pE{normalizeCoords(l){let I=[];for(var S=0;S<this.font.fvar.axis.length;S++){let W=this.font.fvar.axis[S];l[S]<W.defaultValue?I.push((l[S]-W.defaultValue+Number.EPSILON)/(W.defaultValue-W.minValue+Number.EPSILON)):I.push((l[S]-W.defaultValue+Number.EPSILON)/(W.maxValue-W.defaultValue+Number.EPSILON))}if(this.font.avar)for(var S=0;S<this.font.avar.segment.length;S++){let eA=this.font.avar.segment[S];for(let V=0;V<eA.correspondence.length;V++){let SA=eA.correspondence[V];if(V>=1&&I[S]<SA.fromCoord){let VA=eA.correspondence[V-1];I[S]=((I[S]-VA.fromCoord)*(SA.toCoord-VA.toCoord)+Number.EPSILON)/(SA.fromCoord-VA.fromCoord+Number.EPSILON)+VA.toCoord;break}}}return I}transformPoints(l,I){if(!this.font.fvar||!this.font.gvar)return;let{gvar:S}=this.font;if(l>=S.glyphCount)return;let W=S.offsets[l];if(W===S.offsets[l+1])return;let{stream:eA}=this.font;if(eA.pos=W,eA.pos>=eA.length)return;let V=eA.readUInt16BE(),SA=W+eA.readUInt16BE();if(V&uE){var VA=eA.pos;eA.pos=SA;var re=this.decodePoints();SA=eA.pos,eA.pos=VA}let le=I.map(or=>or.copy());V&=QE;for(let or=0;or<V;or++){let Ft=eA.readUInt16BE(),Gt=eA.readUInt16BE();if(Gt&CE){var oe=[];for(let Xt=0;Xt<S.axisCount;Xt++)oe.push(eA.readInt16BE()/16384)}else{if((Gt&gB)>=S.globalCoordCount)throw new Error("Invalid gvar table");var oe=S.globalCoords[Gt&gB]}if(Gt&lB){var Ne=[];for(let Xt=0;Xt<S.axisCount;Xt++)Ne.push(eA.readInt16BE()/16384);var tt=[];for(let Xt=0;Xt<S.axisCount;Xt++)tt.push(eA.readInt16BE()/16384)}let Pe=this.tupleFactor(Gt,oe,Ne,tt);if(Pe===0){SA+=Ft;continue}var VA=eA.pos;if(eA.pos=SA,Gt&dE)var nt=this.decodePoints();else var nt=re;let mt=nt.length===0?I.length:nt.length,fr=this.decodeDeltas(mt),Yr=this.decodeDeltas(mt);if(nt.length===0)for(let Xt=0;Xt<I.length;Xt++){var vt=I[Xt];vt.x+=Math.round(fr[Xt]*Pe),vt.y+=Math.round(Yr[Xt]*Pe)}else{let Xt=le.map(er=>er.copy()),Wr=I.map(()=>!1);for(let er=0;er<nt.length;er++){let oi=nt[er];if(oi<I.length){let ui=Xt[oi];Wr[oi]=!0,ui.x+=fr[er]*Pe,ui.y+=Yr[er]*Pe}}this.interpolateMissingDeltas(Xt,le,Wr);for(let er=0;er<I.length;er++){let oi=Xt[er].x-le[er].x,ui=Xt[er].y-le[er].y;I[er].x=Math.round(I[er].x+oi),I[er].y=Math.round(I[er].y+ui)}}SA+=Ft,eA.pos=VA}}decodePoints(){let l=this.font.stream,I=l.readUInt8();I&cB&&(I=(I&EB)<<8|l.readUInt8());let S=new Uint16Array(I),W=0,eA=0;for(;W<I;){let V=l.readUInt8(),SA=(V&EB)+1,VA=V&cB?l.readUInt16:l.readUInt8;for(let re=0;re<SA&&W<I;re++)eA+=VA.call(l),S[W++]=eA}return S}decodeDeltas(l){let I=this.font.stream,S=0,W=new Int16Array(l);for(;S<l;){let eA=I.readUInt8(),V=(eA&IE)+1;if(eA&ME)S+=V;else{let SA=eA&DE?I.readInt16BE:I.readInt8;for(let VA=0;VA<V&&S<l;VA++)W[S++]=SA.call(I)}}return W}tupleFactor(l,I,S,W){let eA=this.normalizedCoords,{gvar:V}=this.font,SA=1;for(let VA=0;VA<V.axisCount;VA++)if(I[VA]!==0){if(eA[VA]===0)return 0;if(l&lB){if(eA[VA]<S[VA]||eA[VA]>W[VA])return 0;eA[VA]<I[VA]?SA=SA*(eA[VA]-S[VA]+Number.EPSILON)/(I[VA]-S[VA]+Number.EPSILON):SA=SA*(W[VA]-eA[VA]+Number.EPSILON)/(W[VA]-I[VA]+Number.EPSILON)}else{if(eA[VA]<Math.min(0,I[VA])||eA[VA]>Math.max(0,I[VA]))return 0;SA=(SA*eA[VA]+Number.EPSILON)/(I[VA]+Number.EPSILON)}}return SA}interpolateMissingDeltas(l,I,S){if(l.length===0)return;let W=0;for(;W<l.length;){let eA=W,V=W,SA=l[V];for(;!SA.endContour;)SA=l[++V];for(;W<=V&&!S[W];)W++;if(W>V)continue;let VA=W,re=W;for(W++;W<=V;)S[W]&&(this.deltaInterpolate(re+1,W-1,re,W,I,l),re=W),W++;re===VA?this.deltaShift(eA,V,re,I,l):(this.deltaInterpolate(re+1,V,re,VA,I,l),VA>0&&this.deltaInterpolate(eA,VA-1,re,VA,I,l)),W=V+1}}deltaInterpolate(l,I,S,W,eA,V){if(l>I)return;let SA=["x","y"];for(let re=0;re<SA.length;re++){let le=SA[re];if(eA[S][le]>eA[W][le]){var VA=S;S=W,W=VA}let oe=eA[S][le],Ne=eA[W][le],tt=V[S][le],nt=V[W][le];if(oe!==Ne||tt===nt){let vt=oe===Ne?0:(nt-tt)/(Ne-oe);for(let or=l;or<=I;or++){let Ft=eA[or][le];Ft<=oe?Ft+=tt-oe:Ft>=Ne?Ft+=nt-Ne:Ft=tt+(Ft-oe)*vt,V[or][le]=Ft}}}}deltaShift(l,I,S,W,eA){let V=eA[S].x-W[S].x,SA=eA[S].y-W[S].y;if(!(V===0&&SA===0))for(let VA=l;VA<=I;VA++)VA!==S&&(eA[VA].x+=V,eA[VA].y+=SA)}getAdvanceAdjustment(l,I){let S,W;if(I.advanceWidthMapping){let eA=l;eA>=I.advanceWidthMapping.mapCount&&(eA=I.advanceWidthMapping.mapCount-1),I.advanceWidthMapping.entryFormat,{outerIndex:S,innerIndex:W}=I.advanceWidthMapping.mapData[eA]}else S=0,W=l;return this.getDelta(I.itemVariationStore,S,W)}getDelta(l,I,S){if(I>=l.itemVariationData.length)return 0;let W=l.itemVariationData[I];if(S>=W.deltaSets.length)return 0;let eA=W.deltaSets[S],V=this.getBlendVector(l,I),SA=0;for(let VA=0;VA<W.regionIndexCount;VA++)SA+=eA.deltas[VA]*V[VA];return SA}getBlendVector(l,I){let S=l.itemVariationData[I];if(this.blendVectors.has(S))return this.blendVectors.get(S);let W=this.normalizedCoords,eA=[];for(let V=0;V<S.regionIndexCount;V++){let SA=1,VA=S.regionIndexes[V],re=l.variationRegionList.variationRegions[VA];for(let le=0;le<re.length;le++){let oe=re[le],Ne;oe.startCoord>oe.peakCoord||oe.peakCoord>oe.endCoord||oe.startCoord<0&&oe.endCoord>0&&oe.peakCoord!==0||oe.peakCoord===0?Ne=1:W[le]<oe.startCoord||W[le]>oe.endCoord?Ne=0:W[le]===oe.peakCoord?Ne=1:W[le]<oe.peakCoord?Ne=(W[le]-oe.startCoord+Number.EPSILON)/(oe.peakCoord-oe.startCoord+Number.EPSILON):Ne=(oe.endCoord-W[le]+Number.EPSILON)/(oe.endCoord-oe.peakCoord+Number.EPSILON),SA*=Ne}eA[V]=SA}return this.blendVectors.set(S,eA),eA}constructor(l,I){this.font=l,this.normalizedCoords=this.normalizeCoords(I),this.blendVectors=new Map}}Promise.resolve();class wB{includeGlyph(l){return typeof l=="object"&&(l=l.id),this.mapping[l]==null&&(this.glyphs.push(l),this.mapping[l]=this.glyphs.length-1),this.mapping[l]}constructor(l){this.font=l,this.glyphs=[],this.mapping={},this.includeGlyph(0)}}const yE=1,FE=2,YE=4,vE=8,mE=16,bE=32;class fB{static size(l){return l>=0&&l<=255?1:2}static encode(l,I){I>=0&&I<=255?l.writeUInt8(I):l.writeInt16BE(I)}}let hB=new A.Struct({numberOfContours:A.int16,xMin:A.int16,yMin:A.int16,xMax:A.int16,yMax:A.int16,endPtsOfContours:new A.Array(A.uint16,"numberOfContours"),instructions:new A.Array(A.uint8,A.uint16),flags:new A.Array(A.uint8,0),xPoints:new A.Array(fB,0),yPoints:new A.Array(fB,0)});class UE{encodeSimple(l,I=[]){let S=[],W=[],eA=[],V=[],SA=0,VA=0,re=0,le=0,oe=0;for(let Ft=0;Ft<l.commands.length;Ft++){let Gt=l.commands[Ft];for(let Pe=0;Pe<Gt.args.length;Pe+=2){let ft=Gt.args[Pe],mt=Gt.args[Pe+1],fr=0;if(Gt.command==="quadraticCurveTo"&&Pe===2){let Yr=l.commands[Ft+1];if(Yr&&Yr.command==="quadraticCurveTo"){let Xt=(VA+Yr.args[0])/2,Wr=(re+Yr.args[1])/2;if(ft===Xt&&mt===Wr)continue}}Gt.command==="quadraticCurveTo"&&Pe===0||(fr|=yE),fr=this._encodePoint(ft,VA,W,fr,FE,mE),fr=this._encodePoint(mt,re,eA,fr,YE,bE),fr===le&&SA<255?(V[V.length-1]|=vE,SA++):(SA>0&&(V.push(SA),SA=0),V.push(fr),le=fr),VA=ft,re=mt,oe++}Gt.command==="closePath"&&S.push(oe-1)}l.commands.length>1&&l.commands[l.commands.length-1].command!=="closePath"&&S.push(oe-1);let Ne=l.bbox,tt={numberOfContours:S.length,xMin:Ne.minX,yMin:Ne.minY,xMax:Ne.maxX,yMax:Ne.maxY,endPtsOfContours:S,instructions:I,flags:V,xPoints:W,yPoints:eA},nt=hB.size(tt),vt=4-nt%4,or=new A.EncodeStream(nt+vt);return hB.encode(or,tt),vt!==0&&or.fill(0,vt),or.buffer}_encodePoint(l,I,S,W,eA,V){let SA=l-I;return l===I?W|=V:(-255<=SA&&SA<=255&&(W|=eA,SA<0?SA=-SA:W|=V),S.push(SA)),W}}class zE extends wB{_addGlyph(l){let I=this.font.getGlyph(l),S=I._decode(),W=this.font.loca.offsets[l],eA=this.font.loca.offsets[l+1],V=this.font._getTableStream("glyf");V.pos+=W;let SA=V.readBuffer(eA-W);if(S&&S.numberOfContours<0){SA=new Uint8Array(SA);let VA=new DataView(SA.buffer);for(let re of S.components)l=this.includeGlyph(re.glyphID),VA.setUint16(re.pos,l)}else S&&this.font._variationProcessor&&(SA=this.glyphEncoder.encodeSimple(I.path,S.instructions));return this.glyf.push(SA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:I.advanceWidth,bearing:I._getMetrics().leftBearing}),this.offset+=SA.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let l=0;for(;l<this.glyphs.length;)this._addGlyph(this.glyphs[l++]);let I=b(D)(this.font.maxp);I.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset);let S=b(D)(this.font.head);S.indexToLocFormat=this.loca.version;let W=b(D)(this.font.hhea);return W.numberOfMetrics=this.hmtx.metrics.length,No.toBuffer({tables:{head:S,hhea:W,loca:this.loca,maxp:I,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})}constructor(l){super(l),this.glyphEncoder=new UE}}class PE extends wB{subsetCharstrings(){this.charstrings=[];let l={};for(let I of this.glyphs){this.charstrings.push(this.cff.getCharString(I));let S=this.font.getGlyph(I);S.path;for(let W in S._usedGsubrs)l[W]=!0}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,l)}subsetSubrs(l,I){let S=[];for(let W=0;W<l.length;W++){let eA=l[W];I[W]?(this.cff.stream.pos=eA.offset,S.push(this.cff.stream.readBuffer(eA.length))):S.push(new Uint8Array([11]))}return S}subsetFontdict(l){l.FDArray=[],l.FDSelect={version:0,fds:[]};let I={},S=[],W={};for(let eA of this.glyphs){let V=this.cff.fdForGlyph(eA);if(V==null)continue;I[V]||(l.FDArray.push(Object.assign({},this.cff.topDict.FDArray[V])),S.push({}),W[V]=l.FDArray.length-1),I[V]=!0,l.FDSelect.fds.push(W[V]);let SA=this.font.getGlyph(eA);SA.path;for(let VA in SA._usedSubrs)S[W[V]][VA]=!0}for(let eA=0;eA<l.FDArray.length;eA++){let V=l.FDArray[eA];delete V.FontName,V.Private&&V.Private.Subrs&&(V.Private=Object.assign({},V.Private),V.Private.Subrs=this.subsetSubrs(V.Private.Subrs,S[eA]))}}createCIDFontdict(l){let I={};for(let W of this.glyphs){let eA=this.font.getGlyph(W);eA.path;for(let V in eA._usedSubrs)I[V]=!0}let S=Object.assign({},this.cff.topDict.Private);return this.cff.topDict.Private&&this.cff.topDict.Private.Subrs&&(S.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,I)),l.FDArray=[{Private:S}],l.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length}}addString(l){return l?(this.strings||(this.strings=[]),this.strings.push(l),se.length+this.strings.length-1):null}encode(){this.subsetCharstrings();let l={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},I=Object.assign({},this.cff.topDict);I.Private=null,I.charset=l,I.Encoding=null,I.CharStrings=this.charstrings;for(let W of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])I[W]=this.addString(this.cff.string(I[W]));I.ROS=[this.addString("Adobe"),this.addString("Identity"),0],I.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(I):this.createCIDFontdict(I);let S={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[I],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return Jt.toBuffer(S)}constructor(l){if(super(l),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}}class br{static probe(l){let I=Us.decode(l.slice(0,4));return I==="true"||I==="OTTO"||I==="\0\0\0"}setDefaultLanguage(l=null){this.defaultLanguage=l}_getTable(l){if(!(l.tag in this._tables))try{this._tables[l.tag]=this._decodeTable(l)}catch{}return this._tables[l.tag]}_getTableStream(l){let I=this.directory.tables[l];return I?(this.stream.pos=I.offset,this.stream):null}_decodeDirectory(){return this.directory=No.decode(this.stream,{_startOffset:0})}_decodeTable(l){let I=this.stream.pos,S=this._getTableStream(l.tag),W=ms[l.tag].decode(S,this,l.length);return this.stream.pos=I,W}getName(l,I=this.defaultLanguage||Z){let S=this.name&&this.name.records[l];return S&&(S[I]||S[this.defaultLanguage]||S[Z]||S.en||S[Object.keys(S)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let l=this["OS/2"];return l?l.capHeight:this.ascent}get xHeight(){let l=this["OS/2"];return l?l.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new Pi(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new za(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(l){return!!this._cmapProcessor.lookup(l)}glyphForCodePoint(l){return this.getGlyph(this._cmapProcessor.lookup(l),[l])}glyphsForString(l){let I=[],S=l.length,W=0,eA=-1,V=-1;for(;W<=S;){let SA=0,VA=0;if(W<S){if(SA=l.charCodeAt(W++),55296<=SA&&SA<=56319&&W<S){let re=l.charCodeAt(W);56320<=re&&re<=57343&&(W++,SA=((SA&1023)<<10)+(re&1023)+65536)}VA=65024<=SA&&SA<=65039||917760<=SA&&SA<=917999?1:0}else W++;V===0&&VA===1?I.push(this.getGlyph(this._cmapProcessor.lookup(eA,SA),[eA,SA])):V===0&&VA===0&&I.push(this.glyphForCodePoint(eA)),eA=SA,V=VA}return I}get _layoutEngine(){return new $c(this)}layout(l,I,S,W,eA){return this._layoutEngine.layout(l,I,S,W,eA)}stringsForGlyph(l){return this._layoutEngine.stringsForGlyph(l)}get availableFeatures(){return this._layoutEngine.getAvailableFeatures()}getAvailableFeatures(l,I){return this._layoutEngine.getAvailableFeatures(l,I)}_getBaseGlyph(l,I=[]){return this._glyphs[l]||(this.directory.tables.glyf?this._glyphs[l]=new Ks(l,I,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[l]=new EE(l,I,this))),this._glyphs[l]||null}getGlyph(l,I=[]){return this._glyphs[l]||(this.directory.tables.sbix?this._glyphs[l]=new fE(l,I,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[l]=new hE(l,I,this):this._getBaseGlyph(l,I)),this._glyphs[l]||null}createSubset(){return this.directory.tables["CFF "]?new PE(this):new zE(this)}get variationAxes(){let l={};if(!this.fvar)return l;for(let I of this.fvar.axis)l[I.axisTag.trim()]={name:I.name.en,min:I.minValue,default:I.defaultValue,max:I.maxValue};return l}get namedVariations(){let l={};if(!this.fvar)return l;for(let I of this.fvar.instance){let S={};for(let W=0;W<this.fvar.axis.length;W++){let eA=this.fvar.axis[W];S[eA.axisTag.trim()]=I.coord[W]}l[I.name.en]=S}return l}getVariation(l){if(!(this.directory.tables.fvar&&(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2)))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if(typeof l=="string"&&(l=this.namedVariations[l]),typeof l!="object")throw new Error("Variation settings must be either a variation name or settings object.");let I=this.fvar.axis.map((eA,V)=>{let SA=eA.axisTag.trim();return SA in l?Math.max(eA.minValue,Math.min(eA.maxValue,l[SA])):eA.defaultValue}),S=new A.DecodeStream(this.stream.buffer);S.pos=this._directoryPos;let W=new br(S,I);return W._tables=this._tables,W}get _variationProcessor(){if(!this.fvar)return null;let l=this.variationCoords;return!l&&!this.CFF2?null:(l||(l=this.fvar.axis.map(I=>I.defaultValue)),new pE(this,l))}getFont(l){return this.getVariation(l)}constructor(l,I=null){(0,a._)(this,"type","TTF"),this.defaultLanguage=null,this.stream=l,this.variationCoords=I,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let S in this.directory.tables){let W=this.directory.tables[S];ms[S]&&W.length>0&&Object.defineProperty(this,S,{get:this._getTable.bind(this,W)})}}}(0,f._)([X],br.prototype,"bbox",null),(0,f._)([X],br.prototype,"_cmapProcessor",null),(0,f._)([X],br.prototype,"characterSet",null),(0,f._)([X],br.prototype,"_layoutEngine",null),(0,f._)([X],br.prototype,"variationAxes",null),(0,f._)([X],br.prototype,"namedVariations",null),(0,f._)([X],br.prototype,"_variationProcessor",null);let RE=new A.Struct({tag:new A.String(4),offset:new A.Pointer(A.uint32,"void",{type:"global"}),compLength:A.uint32,length:A.uint32,origChecksum:A.uint32}),uB=new A.Struct({tag:new A.String(4),flavor:A.uint32,length:A.uint32,numTables:A.uint16,reserved:new A.Reserved(A.uint16),totalSfntSize:A.uint32,majorVersion:A.uint16,minorVersion:A.uint16,metaOffset:A.uint32,metaLength:A.uint32,metaOrigLength:A.uint32,privOffset:A.uint32,privLength:A.uint32,tables:new A.Array(RE,"numTables")});uB.process=function(){let fA={};for(let l of this.tables)fA[l.tag]=l;this.tables=fA};var NE=uB;class SE extends br{static probe(l){return Us.decode(l.slice(0,4))==="wOFF"}_decodeDirectory(){this.directory=NE.decode(this.stream,{_startOffset:0})}_getTableStream(l){let I=this.directory.tables[l];if(I)if(this.stream.pos=I.offset,I.compLength<I.length){this.stream.pos+=2;let S=new Uint8Array(I.length),W=b(Y)(this.stream.readBuffer(I.compLength-2),S);return new A.DecodeStream(W)}else return this.stream;return null}constructor(...l){super(...l),(0,a._)(this,"type","WOFF")}}class TE extends Ks{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...l){super(...l),(0,a._)(this,"type","WOFF2")}}const QB={decode(fA){let l=0,I=[0,1,2,3,4];for(let S=0;S<I.length;S++){let W=fA.readUInt8();if(l&3758096384)throw new Error("Overflow");if(l=l<<7|W&127,!(W&128))return l}throw new Error("Bad base 128 number")}};let GE=["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"],xE=new A.Struct({flags:A.uint8,customTag:new A.Optional(new A.String(4),fA=>(fA.flags&63)===63),tag:fA=>fA.customTag||GE[fA.flags&63],length:QB,transformVersion:fA=>fA.flags>>>6&3,transformed:fA=>fA.tag==="glyf"||fA.tag==="loca"?fA.transformVersion===0:fA.transformVersion!==0,transformLength:new A.Optional(QB,fA=>fA.transformed)}),CB=new A.Struct({tag:new A.String(4),flavor:A.uint32,length:A.uint32,numTables:A.uint16,reserved:new A.Reserved(A.uint16),totalSfntSize:A.uint32,totalCompressedSize:A.uint32,majorVersion:A.uint16,minorVersion:A.uint16,metaOffset:A.uint32,metaLength:A.uint32,metaOrigLength:A.uint32,privOffset:A.uint32,privLength:A.uint32,tables:new A.Array(xE,"numTables")});CB.process=function(){let fA={};for(let l=0;l<this.tables.length;l++){let I=this.tables[l];fA[I.tag]=I}return this.tables=fA};var HE=CB;class LE extends br{static probe(l){return Us.decode(l.slice(0,4))==="wOF2"}_decodeDirectory(){this.directory=HE.decode(this.stream),this._dataPos=this.stream.pos}_decompress(){if(!this._decompressed){this.stream.pos=this._dataPos;let l=this.stream.readBuffer(this.directory.totalCompressedSize),I=0;for(let W in this.directory.tables){let eA=this.directory.tables[W];eA.offset=I,I+=eA.transformLength!=null?eA.transformLength:eA.length}let S=b(z)(l,I);if(!S)throw new Error("Error decoding compressed data in WOFF2");this.stream=new A.DecodeStream(S),this._decompressed=!0}}_decodeTable(l){return this._decompress(),super._decodeTable(l)}_getBaseGlyph(l,I=[]){if(!this._glyphs[l])return this.directory.tables.glyf&&this.directory.tables.glyf.transformed?(this._transformedGlyphs||this._transformGlyfTable(),this._glyphs[l]=new TE(l,I,this)):super._getBaseGlyph(l,I)}_transformGlyfTable(){this._decompress(),this.stream.pos=this.directory.tables.glyf.offset;let l=kE.decode(this.stream),I=[];for(let W=0;W<l.numGlyphs;W++){let eA={},V=l.nContours.readInt16BE();if(eA.numberOfContours=V,V>0){let SA=[],VA=0;for(let re=0;re<V;re++){let le=La(l.nPoints);VA+=le,SA.push(VA)}eA.points=WE(l.flags,l.glyphs,VA);for(let re=0;re<V;re++)eA.points[SA[re]-1].endContour=!0;var S=La(l.glyphs)}else if(V<0&&Ks.prototype._decodeComposite.call({_font:this},eA,l.composites))var S=La(l.glyphs);I.push(eA)}this._transformedGlyphs=I}constructor(...l){super(...l),(0,a._)(this,"type","WOFF2")}}class An{decode(l,I){return new A.DecodeStream(this._buf.decode(l,I))}constructor(l){this.length=l,this._buf=new A.Buffer(l)}}let kE=new A.Struct({version:A.uint32,numGlyphs:A.uint16,indexFormat:A.uint16,nContourStreamSize:A.uint32,nPointsStreamSize:A.uint32,flagStreamSize:A.uint32,glyphStreamSize:A.uint32,compositeStreamSize:A.uint32,bboxStreamSize:A.uint32,instructionStreamSize:A.uint32,nContours:new An("nContourStreamSize"),nPoints:new An("nPointsStreamSize"),flags:new An("flagStreamSize"),glyphs:new An("glyphStreamSize"),composites:new An("compositeStreamSize"),bboxes:new An("bboxStreamSize"),instructions:new An("instructionStreamSize")});const jE=253,JE=254,OE=255,dB=253;function La(fA){let l=fA.readUInt8();return l===jE?fA.readUInt16BE():l===OE?fA.readUInt8()+dB:l===JE?fA.readUInt8()+dB*2:l}function hi(fA,l){return fA&1?l:-l}function WE(fA,l,I){let S,W=S=0,eA=[];for(let VA=0;VA<I;VA++){let re=0,le=0,oe=fA.readUInt8(),Ne=!(oe>>7);if(oe&=127,oe<10)re=0,le=hi(oe,((oe&14)<<7)+l.readUInt8());else if(oe<20)re=hi(oe,((oe-10&14)<<7)+l.readUInt8()),le=0;else if(oe<84){var V=oe-20,SA=l.readUInt8();re=hi(oe,1+(V&48)+(SA>>4)),le=hi(oe>>1,1+((V&12)<<2)+(SA&15))}else if(oe<120){var V=oe-84;re=hi(oe,1+(V/12<<8)+l.readUInt8()),le=hi(oe>>1,1+(V%12>>2<<8)+l.readUInt8())}else if(oe<124){var SA=l.readUInt8();let nt=l.readUInt8();re=hi(oe,(SA<<4)+(nt>>4)),le=hi(oe>>1,((nt&15)<<8)+l.readUInt8())}else re=hi(oe,l.readUInt16BE()),le=hi(oe>>1,l.readUInt16BE());W+=re,S+=le,eA.push(new ai(Ne,!1,W,S))}return eA}let KE=new A.VersionedStruct(A.uint32,{65536:{numFonts:A.uint32,offsets:new A.Array(A.uint32,"numFonts")},131072:{numFonts:A.uint32,offsets:new A.Array(A.uint32,"numFonts"),dsigTag:A.uint32,dsigLength:A.uint32,dsigOffset:A.uint32}});class VE{static probe(l){return Us.decode(l.slice(0,4))==="ttcf"}getFont(l){for(let I of this.header.offsets){let S=new A.DecodeStream(this.stream.buffer);S.pos=I;let W=new br(S);if(W.postscriptName===l||W.postscriptName instanceof Uint8Array&&l instanceof Uint8Array&&W.postscriptName.every((eA,V)=>l[V]===eA))return W}return null}get fonts(){let l=[];for(let I of this.header.offsets){let S=new A.DecodeStream(this.stream.buffer);S.pos=I,l.push(new br(S))}return l}constructor(l){if((0,a._)(this,"type","TTC"),this.stream=l,l.readString(4)!=="ttcf")throw new Error("Not a TrueType collection");this.header=KE.decode(l)}}let XE=new A.String(A.uint8);new A.Struct({len:A.uint32,buf:new A.Buffer("len")});let ZE=new A.Struct({id:A.uint16,nameOffset:A.int16,attr:A.uint8,dataOffset:A.uint24,handle:A.uint32}),_E=new A.Struct({name:new A.String(4),maxTypeIndex:A.uint16,refList:new A.Pointer(A.uint16,new A.Array(ZE,fA=>fA.maxTypeIndex+1),{type:"parent"})}),qE=new A.Struct({length:A.uint16,types:new A.Array(_E,fA=>fA.length+1)}),$E=new A.Struct({reserved:new A.Reserved(A.uint8,24),typeList:new A.Pointer(A.uint16,qE),nameListOffset:new A.Pointer(A.uint16,"void")}),MB=new A.Struct({dataOffset:A.uint32,map:new A.Pointer(A.uint32,$E),dataLength:A.uint32,mapLength:A.uint32});class Aw{static probe(l){let I=new A.DecodeStream(l);try{var S=MB.decode(I)}catch{return!1}for(let W of S.map.typeList.types)if(W.name==="sfnt")return!0;return!1}getFont(l){if(!this.sfnt)return null;for(let I of this.sfnt.refList){let S=this.header.dataOffset+I.dataOffset+4,W=new A.DecodeStream(this.stream.buffer.slice(S)),eA=new br(W);if(eA.postscriptName===l||eA.postscriptName instanceof Uint8Array&&l instanceof Uint8Array&&eA.postscriptName.every((V,SA)=>l[SA]===V))return eA}return null}get fonts(){let l=[];for(let I of this.sfnt.refList){let S=this.header.dataOffset+I.dataOffset+4,W=new A.DecodeStream(this.stream.buffer.slice(S));l.push(new br(W))}return l}constructor(l){(0,a._)(this,"type","DFont"),this.stream=l,this.header=MB.decode(this.stream);for(let I of this.header.map.typeList.types){for(let S of I.refList)S.nameOffset>=0?(this.stream.pos=S.nameOffset+this.header.map.nameListOffset,S.name=XE.decode(this.stream)):S.name=null;I.name==="sfnt"&&(this.sfnt=I)}}}oA(br),oA(SE),oA(LE),oA(VE),oA(Aw),L(o.exports,N)},2532(o,r,t){var A=t(7571),a=t(3915);function f(mA){return mA&&mA.__esModule?mA.default:mA}const h=5,Q=12,d=13,E=16,D=17,Y=22,z=28,L=31,T=33,b=34,N=35,O=36,gA=37,oA=38,q=39,Z=40,x=41,X=42,B=0,v=1,bA=2,wA=3,tA=4,nA=[[tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,wA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA,tA],[B,tA,tA,v,v,tA,tA,tA,tA,v,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,tA,tA,tA,tA,v,v,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[tA,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,v,v,v,v,v,v,tA,bA,tA,v,v,v,v,v,v,v,v,v,v],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,v,v,v,v,v,v,tA,bA,tA,v,v,v,v,v,v,v,v,v,v],[B,tA,tA,v,v,v,tA,tA,tA,B,B,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,B,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,B,v,B,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,B,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,B,B,v,v,v,v,v,v,v,B,B,tA,bA,tA,v,v,v,v,v,B,v,v,v,B],[v,tA,tA,v,v,v,tA,tA,tA,B,B,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,B,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,B,v,tA,tA,tA,B,B,v,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,B,v,tA,tA,tA,B,B,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,v,v,v,v,v,v,tA,bA,tA,v,v,v,v,v,v,v,v,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,B,B,B,B,B,v,v,v,B,tA,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,tA,B,B,B,B,B,B,B,B,B,B,B,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,v,v,v,v,v,v,tA,bA,tA,v,v,v,v,v,v,v,v,v,v],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,v,v,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,v,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,v,v,v,v,B,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,v,v,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,v,B,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,B,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,v,B,B,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,v,v,B],[B,tA,tA,v,v,v,tA,tA,tA,B,v,B,B,B,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[v,tA,tA,v,v,v,tA,tA,tA,v,v,v,v,v,B,v,v,v,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B],[B,tA,tA,v,v,B,tA,tA,tA,B,B,B,B,B,B,B,B,B,B,B,tA,bA,tA,B,B,B,B,B,B,B,B,v,B]],KA=f(a).toByteArray(" "),DA=new(f(A))(KA),FA=function(mA){switch(mA){case T:return Q;case q:case Z:case X:return Q;case N:return h;default:return mA}},cA=function(mA){switch(mA){case gA:case oA:return b;case x:return Y;default:return mA}};class yA{constructor(HA,pA=!1){this.position=HA,this.required=pA}}class zA{nextCodePoint(){const HA=this.string.charCodeAt(this.pos++),pA=this.string.charCodeAt(this.pos);return 55296<=HA&&HA<=56319&&56320<=pA&&pA<=57343?(this.pos++,(HA-55296)*1024+(pA-56320)+65536):HA}nextCharClass(){return FA(DA.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case x:return!1;case b:case gA:case oA:return this.curClass=b,!1;case O:return this.curClass=O,!1}return null}getPairTableBreak(HA){let pA=!1;switch(nA[this.curClass][this.nextClass]){case B:pA=!0;break;case v:pA=HA===x;break;case bA:if(pA=HA===x,!pA)return pA=!1,pA;break;case wA:if(HA!==x)return pA;break}return this.LB8a&&(pA=!1),this.LB21a&&(this.curClass===E||this.curClass===D)?(pA=!1,this.LB21a=!1):this.LB21a=this.curClass===d,this.curClass===z?(this.LB30a++,this.LB30a==2&&this.nextClass===z&&(pA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,pA}nextBreak(){if(this.curClass==null){let HA=this.nextCharClass();this.curClass=cA(HA),this.nextClass=HA,this.LB8a=HA===L,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;const HA=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===b||this.curClass===O&&this.nextClass!==gA)return this.curClass=cA(FA(this.nextClass)),new yA(this.lastPos,!0);let pA=this.getSimpleBreak();if(pA===null&&(pA=this.getPairTableBreak(HA)),this.LB8a=this.nextClass===L,pA)return new yA(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new yA(this.string.length)):null}constructor(HA){this.string=HA,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}o.exports=zA},5233(o){function r(J,_){return Object.keys(_).forEach(function(EA){EA==="default"||EA==="__esModule"||Object.prototype.hasOwnProperty.call(J,EA)||Object.defineProperty(J,EA,{enumerable:!0,get:function(){return _[EA]}})}),J}function t(J,_,EA,K){Object.defineProperty(J,_,{get:EA,set:K,enumerable:!0,configurable:!0})}t(o.exports,"EncodeStream",()=>Q),t(o.exports,"DecodeStream",()=>a),t(o.exports,"Array",()=>iA),t(o.exports,"LazyArray",()=>MA),t(o.exports,"Bitfield",()=>y),t(o.exports,"Boolean",()=>uA),t(o.exports,"Buffer",()=>CA),t(o.exports,"Enum",()=>$A),t(o.exports,"Optional",()=>ZA),t(o.exports,"Reserved",()=>kA),t(o.exports,"String",()=>de),t(o.exports,"Struct",()=>ze),t(o.exports,"VersionedStruct",()=>ee);const A={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"};class a{constructor(_){this.buffer=_,this.view=new DataView(_.buffer,_.byteOffset,_.byteLength),this.pos=0,this.length=this.buffer.length}readString(_,EA="ascii"){EA=A[EA]||EA;let K=this.readBuffer(_);try{return new TextDecoder(EA).decode(K)}catch{return K}}readBuffer(_){return this.buffer.slice(this.pos,this.pos+=_)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}}a.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let J of Object.getOwnPropertyNames(DataView.prototype))if(J.slice(0,3)==="get"){let _=J.slice(3).replace("Ui","UI");_==="Float32"?_="Float":_==="Float64"&&(_="Double");let EA=a.TYPES[_];a.prototype["read"+_+(EA===1?"":"BE")]=function(){const K=this.view[J](this.pos,!1);return this.pos+=EA,K},EA!==1&&(a.prototype["read"+_+"LE"]=function(){const K=this.view[J](this.pos,!0);return this.pos+=EA,K})}const f=new TextEncoder,h=new Uint8Array(new Uint16Array([4660]).buffer)[0]==18;class Q{constructor(_){this.buffer=_,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(_){this.buffer.set(_,this.pos),this.pos+=_.length}writeString(_,EA="ascii"){let K;switch(EA){case"utf16le":case"utf16-le":case"ucs2":K=d(_,h);break;case"utf16be":case"utf16-be":K=d(_,!h);break;case"utf8":K=f.encode(_);break;case"ascii":K=E(_);break;default:throw new Error(`Unsupported encoding: ${EA}`)}this.writeBuffer(K)}writeUInt24BE(_){this.buffer[this.pos++]=_>>>16&255,this.buffer[this.pos++]=_>>>8&255,this.buffer[this.pos++]=_&255}writeUInt24LE(_){this.buffer[this.pos++]=_&255,this.buffer[this.pos++]=_>>>8&255,this.buffer[this.pos++]=_>>>16&255}writeInt24BE(_){_>=0?this.writeUInt24BE(_):this.writeUInt24BE(_+16777215+1)}writeInt24LE(_){_>=0?this.writeUInt24LE(_):this.writeUInt24LE(_+16777215+1)}fill(_,EA){if(EA<this.buffer.length)this.buffer.fill(_,this.pos,this.pos+EA),this.pos+=EA;else{const K=new Uint8Array(EA);K.fill(_),this.writeBuffer(K)}}}function d(J,_){let EA=new Uint16Array(J.length);for(let K=0;K<J.length;K++){let UA=J.charCodeAt(K);_&&(UA=UA>>8|(UA&255)<<8),EA[K]=UA}return new Uint8Array(EA.buffer)}function E(J){let _=new Uint8Array(J.length);for(let EA=0;EA<J.length;EA++)_[EA]=J.charCodeAt(EA);return _}for(let J of Object.getOwnPropertyNames(DataView.prototype))if(J.slice(0,3)==="set"){let _=J.slice(3).replace("Ui","UI");_==="Float32"?_="Float":_==="Float64"&&(_="Double");let EA=a.TYPES[_];Q.prototype["write"+_+(EA===1?"":"BE")]=function(K){this.view[J](this.pos,K,!1),this.pos+=EA},EA!==1&&(Q.prototype["write"+_+"LE"]=function(K){this.view[J](this.pos,K,!0),this.pos+=EA})}class D{fromBuffer(_){let EA=new a(_);return this.decode(EA)}toBuffer(_){let EA=this.size(_),K=new Uint8Array(EA),UA=new Q(K);return this.encode(UA,_),K}}var Y={};t(Y,"Number",()=>z),t(Y,"uint8",()=>L),t(Y,"uint16be",()=>T),t(Y,"uint16",()=>b),t(Y,"uint16le",()=>N),t(Y,"uint24be",()=>O),t(Y,"uint24",()=>gA),t(Y,"uint24le",()=>oA),t(Y,"uint32be",()=>q),t(Y,"uint32",()=>Z),t(Y,"uint32le",()=>x),t(Y,"int8",()=>X),t(Y,"int16be",()=>B),t(Y,"int16",()=>v),t(Y,"int16le",()=>bA),t(Y,"int24be",()=>wA),t(Y,"int24",()=>tA),t(Y,"int24le",()=>nA),t(Y,"int32be",()=>KA),t(Y,"int32",()=>DA),t(Y,"int32le",()=>FA),t(Y,"floatbe",()=>cA),t(Y,"float",()=>yA),t(Y,"floatle",()=>zA),t(Y,"doublebe",()=>mA),t(Y,"double",()=>HA),t(Y,"doublele",()=>pA),t(Y,"Fixed",()=>NA),t(Y,"fixed16be",()=>IA),t(Y,"fixed16",()=>BA),t(Y,"fixed16le",()=>hA),t(Y,"fixed32be",()=>R),t(Y,"fixed32",()=>C),t(Y,"fixed32le",()=>lA);class z extends D{constructor(_,EA="BE"){super(),this.type=_,this.endian=EA,this.fn=this.type,this.type[this.type.length-1]!=="8"&&(this.fn+=this.endian)}size(){return a.TYPES[this.type]}decode(_){return _[`read${this.fn}`]()}encode(_,EA){return _[`write${this.fn}`](EA)}}const L=new z("UInt8"),T=new z("UInt16","BE"),b=T,N=new z("UInt16","LE"),O=new z("UInt24","BE"),gA=O,oA=new z("UInt24","LE"),q=new z("UInt32","BE"),Z=q,x=new z("UInt32","LE"),X=new z("Int8"),B=new z("Int16","BE"),v=B,bA=new z("Int16","LE"),wA=new z("Int24","BE"),tA=wA,nA=new z("Int24","LE"),KA=new z("Int32","BE"),DA=KA,FA=new z("Int32","LE"),cA=new z("Float","BE"),yA=cA,zA=new z("Float","LE"),mA=new z("Double","BE"),HA=mA,pA=new z("Double","LE");class NA extends z{constructor(_,EA,K=_>>1){super(`Int${_}`,EA),this._point=1<<K}decode(_){return super.decode(_)/this._point}encode(_,EA){return super.encode(_,EA*this._point|0)}}const IA=new NA(16,"BE"),BA=IA,hA=new NA(16,"LE"),R=new NA(32,"BE"),C=R,lA=new NA(32,"LE");var rA={};t(rA,"resolveLength",()=>p),t(rA,"PropertyDescriptor",()=>G);function p(J,_,EA){let K;if(typeof J=="number"?K=J:typeof J=="function"?K=J.call(EA,EA):EA&&typeof J=="string"?K=EA[J]:_&&J instanceof z&&(K=J.decode(_)),isNaN(K))throw new Error("Not a fixed size");return K}class G{constructor(_={}){this.enumerable=!0,this.configurable=!0;for(let EA in _){const K=_[EA];this[EA]=K}}}class iA extends D{constructor(_,EA,K="count"){super(),this.type=_,this.length=EA,this.lengthType=K}decode(_,EA){let K;const{pos:UA}=_,se=[];let Me=EA;if(this.length!=null&&(K=p(this.length,_,EA)),this.length instanceof z&&(Object.defineProperties(se,{parent:{value:EA},_startOffset:{value:UA},_currentOffset:{value:0,writable:!0},_length:{value:K}}),Me=se),K==null||this.lengthType==="bytes"){const te=K!=null?_.pos+K:EA!=null&&EA._length?EA._startOffset+EA._length:_.length;for(;_.pos<te;)se.push(this.type.decode(_,Me))}else for(let te=0,Qe=K;te<Qe;te++)se.push(this.type.decode(_,Me));return se}size(_,EA,K=!0){if(!_)return this.type.size(null,EA)*p(this.length,null,EA);let UA=0;this.length instanceof z&&(UA+=this.length.size(),EA={parent:EA,pointerSize:0});for(let se of _)UA+=this.type.size(se,EA);return EA&&K&&this.length instanceof z&&(UA+=EA.pointerSize),UA}encode(_,EA,K){let UA=K;this.length instanceof z&&(UA={pointers:[],startOffset:_.pos,parent:K},UA.pointerOffset=_.pos+this.size(EA,UA,!1),this.length.encode(_,EA.length));for(let se of EA)this.type.encode(_,se,UA);if(this.length instanceof z){let se=0;for(;se<UA.pointers.length;){const Me=UA.pointers[se++];Me.type.encode(_,Me.val,Me.parent)}}}}class MA extends iA{decode(_,EA){const{pos:K}=_,UA=p(this.length,_,EA);this.length instanceof z&&(EA={parent:EA,_startOffset:K,_currentOffset:0,_length:UA});const se=new m(this.type,UA,_,EA);return _.pos+=UA*this.type.size(null,EA),se}size(_,EA){return _ instanceof m&&(_=_.toArray()),super.size(_,EA)}encode(_,EA,K){return EA instanceof m&&(EA=EA.toArray()),super.encode(_,EA,K)}}class m{constructor(_,EA,K,UA){this.type=_,this.length=EA,this.stream=K,this.ctx=UA,this.base=this.stream.pos,this.items=[]}get(_){if(!(_<0||_>=this.length)){if(this.items[_]==null){const{pos:EA}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*_,this.items[_]=this.type.decode(this.stream,this.ctx),this.stream.pos=EA}return this.items[_]}}toArray(){const _=[];for(let EA=0,K=this.length;EA<K;EA++)_.push(this.get(EA));return _}}class y extends D{constructor(_,EA=[]){super(),this.type=_,this.flags=EA}decode(_){const EA=this.type.decode(_),K={};for(let UA=0;UA<this.flags.length;UA++){const se=this.flags[UA];se!=null&&(K[se]=!!(EA&1<<UA))}return K}size(){return this.type.size()}encode(_,EA){let K=0;for(let UA=0;UA<this.flags.length;UA++){const se=this.flags[UA];se!=null&&EA[se]&&(K|=1<<UA)}return this.type.encode(_,K)}}class uA extends D{constructor(_){super(),this.type=_}decode(_,EA){return!!this.type.decode(_,EA)}size(_,EA){return this.type.size(_,EA)}encode(_,EA,K){return this.type.encode(_,+EA,K)}}class CA extends D{constructor(_){super(),this.length=_}decode(_,EA){const K=p(this.length,_,EA);return _.readBuffer(K)}size(_,EA){if(!_)return p(this.length,null,EA);let K=_.length;return this.length instanceof z&&(K+=this.length.size()),K}encode(_,EA,K){return this.length instanceof z&&this.length.encode(_,EA.length),_.writeBuffer(EA)}}class $A extends D{constructor(_,EA=[]){super(),this.type=_,this.options=EA}decode(_){const EA=this.type.decode(_);return this.options[EA]||EA}size(){return this.type.size()}encode(_,EA){const K=this.options.indexOf(EA);if(K===-1)throw new Error(`Unknown option in enum: ${EA}`);return this.type.encode(_,K)}}class ZA extends D{constructor(_,EA=!0){super(),this.type=_,this.condition=EA}decode(_,EA){let{condition:K}=this;if(typeof K=="function"&&(K=K.call(EA,EA)),K)return this.type.decode(_,EA)}size(_,EA){let{condition:K}=this;return typeof K=="function"&&(K=K.call(EA,EA)),K?this.type.size(_,EA):0}encode(_,EA,K){let{condition:UA}=this;if(typeof UA=="function"&&(UA=UA.call(K,K)),UA)return this.type.encode(_,EA,K)}}class kA extends D{constructor(_,EA=1){super(),this.type=_,this.count=EA}decode(_,EA){_.pos+=this.size(null,EA)}size(_,EA){const K=p(this.count,null,EA);return this.type.size()*K}encode(_,EA,K){return _.fill(0,this.size(EA,K))}}class de extends D{constructor(_,EA="ascii"){super(),this.length=_,this.encoding=EA}decode(_,EA){let K,UA,{encoding:se}=this;typeof se=="function"&&(se=se.call(EA,EA)||"ascii");let Me=Te(se);if(this.length!=null)K=p(this.length,_,EA);else{let Qe;for({buffer:Qe,length:K,pos:UA}=_;UA<K-Me+1&&(Qe[UA]!==0||Me===2&&Qe[UA+1]!==0);)UA+=Me;K=UA-_.pos}const te=_.readString(K,se);return this.length==null&&_.pos<_.length&&(_.pos+=Me),te}size(_,EA){if(_==null)return p(this.length,null,EA);let{encoding:K}=this;typeof K=="function"&&(K=K.call(EA!=null?EA.val:void 0,EA!=null?EA.val:void 0)||"ascii"),K==="utf16be"&&(K="utf16le");let UA=Re(_,K);return this.length instanceof z&&(UA+=this.length.size()),this.length==null&&(UA+=Te(K)),UA}encode(_,EA,K){let{encoding:UA}=this;if(typeof UA=="function"&&(UA=UA.call(K!=null?K.val:void 0,K!=null?K.val:void 0)||"ascii"),this.length instanceof z&&this.length.encode(_,Re(EA,UA)),_.writeString(EA,UA),this.length==null)return Te(UA)==2?_.writeUInt16LE(0):_.writeUInt8(0)}}function Te(J){switch(J){case"ascii":case"utf8":return 1;case"utf16le":case"utf16-le":case"utf-16be":case"utf-16le":case"utf16be":case"utf16-be":case"ucs2":return 2;default:return 1}}function Re(J,_){switch(_){case"ascii":return J.length;case"utf8":let EA=0;for(let K=0;K<J.length;K++){let UA=J.charCodeAt(K);if(UA>=55296&&UA<=56319&&K<J.length-1){let se=J.charCodeAt(++K);(se&64512)===56320?UA=((UA&1023)<<10)+(se&1023)+65536:K--}UA&4294967168?UA&4294965248?UA&4294901760?UA&4292870144||(EA+=4):EA+=3:EA+=2:EA++}return EA;case"utf16le":case"utf16-le":case"utf16be":case"utf16-be":case"ucs2":return J.length*2;default:throw new Error("Unknown encoding "+_)}}class ze extends D{constructor(_={}){super(),this.fields=_}decode(_,EA,K=0){const UA=this._setup(_,EA,K);return this._parseFields(_,UA,this.fields),this.process!=null&&this.process.call(UA,_),UA}_setup(_,EA,K){const UA={};return Object.defineProperties(UA,{parent:{value:EA},_startOffset:{value:_.pos},_currentOffset:{value:0,writable:!0},_length:{value:K}}),UA}_parseFields(_,EA,K){for(let se in K){var UA;const Me=K[se];typeof Me=="function"?UA=Me.call(EA,EA):UA=Me.decode(_,EA),UA!==void 0&&(UA instanceof G?Object.defineProperty(EA,se,UA):EA[se]=UA),EA._currentOffset=_.pos-EA._startOffset}}size(_,EA,K=!0){_==null&&(_={});const UA={parent:EA,val:_,pointerSize:0};this.preEncode!=null&&this.preEncode.call(_);let se=0;for(let Me in this.fields){const te=this.fields[Me];te.size!=null&&(se+=te.size(_[Me],UA))}return K&&(se+=UA.pointerSize),se}encode(_,EA,K){let UA;this.preEncode!=null&&this.preEncode.call(EA,_);const se={pointers:[],startOffset:_.pos,parent:K,val:EA,pointerSize:0};se.pointerOffset=_.pos+this.size(EA,se,!1);for(let te in this.fields)UA=this.fields[te],UA.encode!=null&&UA.encode(_,EA[te],se);let Me=0;for(;Me<se.pointers.length;){const te=se.pointers[Me++];te.type.encode(_,te.val,te.parent)}}}const We=(J,_)=>_.reduce((EA,K)=>EA&&EA[K],J);class ee extends ze{constructor(_,EA={}){super(),this.type=_,this.versions=EA,typeof _=="string"&&(this.versionPath=_.split("."))}decode(_,EA,K=0){const UA=this._setup(_,EA,K);typeof this.type=="string"?UA.version=We(EA,this.versionPath):UA.version=this.type.decode(_),this.versions.header&&this._parseFields(_,UA,this.versions.header);const se=this.versions[UA.version];if(se==null)throw new Error(`Unknown version ${UA.version}`);return se instanceof ee?se.decode(_,EA):(this._parseFields(_,UA,se),this.process!=null&&this.process.call(UA,_),UA)}size(_,EA,K=!0){let UA,se;if(!_)throw new Error("Not a fixed size");this.preEncode!=null&&this.preEncode.call(_);const Me={parent:EA,val:_,pointerSize:0};let te=0;if(typeof this.type!="string"&&(te+=this.type.size(_.version,Me)),this.versions.header)for(UA in this.versions.header)se=this.versions.header[UA],se.size!=null&&(te+=se.size(_[UA],Me));const Qe=this.versions[_.version];if(Qe==null)throw new Error(`Unknown version ${_.version}`);for(UA in Qe)se=Qe[UA],se.size!=null&&(te+=se.size(_[UA],Me));return K&&(te+=Me.pointerSize),te}encode(_,EA,K){let UA,se;this.preEncode!=null&&this.preEncode.call(EA,_);const Me={pointers:[],startOffset:_.pos,parent:K,val:EA,pointerSize:0};if(Me.pointerOffset=_.pos+this.size(EA,Me,!1),typeof this.type!="string"&&this.type.encode(_,EA.version),this.versions.header)for(UA in this.versions.header)se=this.versions.header[UA],se.encode!=null&&se.encode(_,EA[UA],Me);const te=this.versions[EA.version];for(UA in te)se=te[UA],se.encode!=null&&se.encode(_,EA[UA],Me);let Qe=0;for(;Qe<Me.pointers.length;){const vA=Me.pointers[Qe++];vA.type.encode(_,vA.val,vA.parent)}}}var ge={};t(ge,"Pointer",()=>dA),t(ge,"VoidPointer",()=>k);class dA extends D{constructor(_,EA,K={}){if(super(),this.offsetType=_,this.type=EA,this.options=K,this.type==="void"&&(this.type=null),this.options.type==null&&(this.options.type="local"),this.options.allowNull==null&&(this.options.allowNull=!0),this.options.nullValue==null&&(this.options.nullValue=0),this.options.lazy==null&&(this.options.lazy=!1),this.options.relativeTo){if(typeof this.options.relativeTo!="function")throw new Error("relativeTo option must be a function");this.relativeToGetter=K.relativeTo}}decode(_,EA){const K=this.offsetType.decode(_,EA);if(K===this.options.nullValue&&this.options.allowNull)return null;let UA;switch(this.options.type){case"local":UA=EA._startOffset;break;case"immediate":UA=_.pos-this.offsetType.size();break;case"parent":UA=EA.parent._startOffset;break;default:for(var se=EA;se.parent;)se=se.parent;UA=se._startOffset||0}this.options.relativeTo&&(UA+=this.relativeToGetter(EA));const Me=K+UA;if(this.type!=null){let te=null;const Qe=()=>{if(te!=null)return te;const{pos:vA}=_;return _.pos=Me,te=this.type.decode(_,EA),_.pos=vA,te};return this.options.lazy?new G({get:Qe}):Qe()}else return Me}size(_,EA){const K=EA;switch(this.options.type){case"local":case"immediate":break;case"parent":EA=EA.parent;break;default:for(;EA.parent;)EA=EA.parent}let{type:UA}=this;if(UA==null){if(!(_ instanceof k))throw new Error("Must be a VoidPointer");({type:UA}=_),_=_.value}if(_&&EA){let se=UA.size(_,K);EA.pointerSize+=se}return this.offsetType.size()}encode(_,EA,K){let UA;const se=K;if(EA==null){this.offsetType.encode(_,this.options.nullValue);return}switch(this.options.type){case"local":UA=K.startOffset;break;case"immediate":UA=_.pos+this.offsetType.size(EA,se);break;case"parent":K=K.parent,UA=K.startOffset;break;default:for(UA=0;K.parent;)K=K.parent}this.options.relativeTo&&(UA+=this.relativeToGetter(se.val)),this.offsetType.encode(_,K.pointerOffset-UA);let{type:Me}=this;if(Me==null){if(!(EA instanceof k))throw new Error("Must be a VoidPointer");({type:Me}=EA),EA=EA.value}return K.pointers.push({type:Me,val:EA,parent:se}),K.pointerOffset+=Me.size(EA,se)}}class k{constructor(_,EA){this.type=_,this.value=EA}}r(o.exports,rA),r(o.exports,Y),r(o.exports,ge)},4766(o,r,t){var A=t(2504),a=t(7571);function f(BA){return BA&&BA.__esModule?BA.default:BA}function h(BA){Object.defineProperty(BA,"__esModule",{value:!0,configurable:!0})}function Q(BA,hA,R,C){Object.defineProperty(BA,hA,{get:R,set:C,enumerable:!0,configurable:!0})}h(o.exports),Q(o.exports,"getCategory",()=>bA),Q(o.exports,"getCombiningClass",()=>wA),Q(o.exports,"getScript",()=>tA),Q(o.exports,"getEastAsianWidth",()=>nA),Q(o.exports,"getNumericValue",()=>KA),Q(o.exports,"isAlphabetic",()=>DA),Q(o.exports,"isDigit",()=>FA),Q(o.exports,"isPunctuation",()=>cA),Q(o.exports,"isLowerCase",()=>yA),Q(o.exports,"isUpperCase",()=>zA),Q(o.exports,"isTitleCase",()=>mA),Q(o.exports,"isWhiteSpace",()=>HA),Q(o.exports,"isBaseForm",()=>pA),Q(o.exports,"isMark",()=>NA),Q(o.exports,"default",()=>IA);var d={};d=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');const E=new(f(a))(f(A).toByteArray(" ")),D=Math.log2||(BA=>Math.log(BA)/Math.LN2),Y=BA=>D(BA)+1|0,z=Y(f(d).categories.length-1),L=Y(f(d).combiningClasses.length-1),T=Y(f(d).scripts.length-1),b=Y(f(d).eaw.length-1),N=10,O=L+T+b+N,gA=T+b+N,oA=b+N,q=N,Z=(1<<z)-1,x=(1<<L)-1,X=(1<<T)-1,B=(1<<b)-1,v=(1<<N)-1;function bA(BA){const hA=E.get(BA);return f(d).categories[hA>>O&Z]}function wA(BA){const hA=E.get(BA);return f(d).combiningClasses[hA>>gA&x]}function tA(BA){const hA=E.get(BA);return f(d).scripts[hA>>oA&X]}function nA(BA){const hA=E.get(BA);return f(d).eaw[hA>>q&B]}function KA(BA){let hA=E.get(BA),R=hA&v;if(R===0)return null;if(R<=50)return R-1;if(R<480){const C=(R>>4)-12,lA=(R&15)+1;return C/lA}else if(R<768){hA=(R>>5)-14;let C=(R&31)+2;for(;C>0;)hA*=10,C--;return hA}else{hA=(R>>2)-191;let C=(R&3)+1;for(;C>0;)hA*=60,C--;return hA}}function DA(BA){const hA=bA(BA);return hA==="Lu"||hA==="Ll"||hA==="Lt"||hA==="Lm"||hA==="Lo"||hA==="Nl"}function FA(BA){return bA(BA)==="Nd"}function cA(BA){const hA=bA(BA);return hA==="Pc"||hA==="Pd"||hA==="Pe"||hA==="Pf"||hA==="Pi"||hA==="Po"||hA==="Ps"}function yA(BA){return bA(BA)==="Ll"}function zA(BA){return bA(BA)==="Lu"}function mA(BA){return bA(BA)==="Lt"}function HA(BA){const hA=bA(BA);return hA==="Zs"||hA==="Zl"||hA==="Zp"}function pA(BA){const hA=bA(BA);return hA==="Nd"||hA==="No"||hA==="Nl"||hA==="Lu"||hA==="Ll"||hA==="Lt"||hA==="Lm"||hA==="Lo"||hA==="Me"||hA==="Mc"}function NA(BA){const hA=bA(BA);return hA==="Mn"||hA==="Me"||hA==="Mc"}var IA={getCategory:bA,getCombiningClass:wA,getScript:tA,getEastAsianWidth:nA,getNumericValue:KA,isAlphabetic:DA,isDigit:FA,isPunctuation:cA,isLowerCase:yA,isUpperCase:zA,isTitleCase:mA,isWhiteSpace:HA,isBaseForm:pA,isMark:NA}},7507(o,r,t){var A=this&&this.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(r,"__esModule",{value:!0}),r.XmlDocument=r.XmlElement=r.XmlCommentNode=r.XmlCDataNode=r.XmlTextNode=void 0;const a=A(t(1733));class f{constructor(b){this.text=b,this.type="text"}toString(b){return L(z(this.text),b)}toStringWithIndent(b,N){return b+this.toString(N)}}r.XmlTextNode=f;class h{constructor(b){this.cdata=b,this.type="cdata"}toString(b){return`<![CDATA[${L(this.cdata,b)}]]>`}toStringWithIndent(b,N){return b+this.toString(N)}}r.XmlCDataNode=h;class Q{constructor(b){this.comment=b,this.type="comment"}toString(b){return`<!--${L(z(this.comment),b)}-->`}toStringWithIndent(b,N){return b+this.toString(N)}}r.XmlCommentNode=Q;class d{constructor(b,N){if(this.type="element",!N&&D.length){var O=D[D.length-1];"parser"in O&&(N=O.parser)}this.name=b.name,this.attr=b.attributes,this.val="",this.children=[],this.firstChild=null,this.lastChild=null,this.line=N?N.line:null,this.column=N?N.column:null,this.position=N?N.position:null,this.startTagPosition=N?N.startTagPosition:null}_addChild(b){this.children.push(b),this.firstChild||(this.firstChild=b),this.lastChild=b}_opentag(b){const N=new d(b);this._addChild(N),D.unshift(N)}_closetag(){D.shift()}_text(b){this.val+=b,this._addChild(new f(b))}_cdata(b){this.val+=b,this._addChild(new h(b))}_comment(b){this._addChild(new Q(b))}_error(b){throw b}eachChild(b,N){for(let O=0,gA=this.children.length;O<gA;O++){const oA=this.children[O];if(oA.type==="element"&&b.call(N,oA,O,this.children)===!1)return}}childNamed(b){for(let N=0,O=this.children.length;N<O;N++){const gA=this.children[N];if(gA.type==="element"&&gA.name===b)return gA}}childrenNamed(b){const N=[];for(let O=0,gA=this.children.length;O<gA;O++){const oA=this.children[O];oA.type==="element"&&oA.name===b&&N.push(oA)}return N}childWithAttribute(b,N){for(let O=0,gA=this.children.length;O<gA;O++){const oA=this.children[O];if(oA.type==="element"&&(N!==void 0&&oA.attr[b]===N||N===void 0&&oA.attr[b]))return oA}}descendantsNamed(b){const N=[];for(let O=0,gA=this.children.length;O<gA;O++){const oA=this.children[O];if(oA.type==="element"){const q=oA;q.name===b&&N.push(q),N.push(...q.descendantsNamed(b))}}return N}descendantWithPath(b){let N=this;const O=b.split(".");for(let gA=0,oA=O.length;gA<oA;gA++)if(N&&N.type==="element")N=N.childNamed(O[gA]);else return;return N}valueWithPath(b){const N=b.split("@"),O=this.descendantWithPath(N[0]);if(O)return N.length>1?O.attr[N[1]]:O.val}toString(b){return this.toStringWithIndent("",b)}toStringWithIndent(b,N){let O=`${b}<${this.name}`;const gA=N!=null&&N.compressed?"":`
`;for(const oA in this.attr)Object.prototype.hasOwnProperty.call(this.attr,oA)&&(O+=` ${oA}="${z(this.attr[oA])}"`);if(this.children.length===1&&this.children[0].type!=="element")O+=`>${this.children[0].toString(N)}</${this.name}>`;else if(this.children.length){O+=`>${gA}`;const oA=b+(N!=null&&N.compressed?"":"  ");for(let q=0,Z=this.children.length;q<Z;q++)O+=`${this.children[q].toStringWithIndent(oA,N)}${gA}`;O+=`${b}</${this.name}>`}else N!=null&&N.html?["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].includes(this.name)?O+="/>":O+=`></${this.name}>`:O+="/>";return O}}r.XmlElement=d;class E extends d{constructor(b){if(super({name:"",attributes:{}}),b=b.toString().trim(),!b)throw new Error("No XML to parse!");this.doctype="",this.parser=a.default.parser(!0),Y(this.parser),D=[this];try{this.parser.write(b)}finally{delete this.parser}}_opentag(b){this.name===""?(this.name=b.name,this.attr=b.attributes):super._opentag(b)}_doctype(b){this.doctype+=b}}r.XmlDocument=E;let D=[];function Y(T){T.onopentag=b=>{var N;return(N=D[0])===null||N===void 0?void 0:N._opentag(b)},T.onclosetag=()=>{var b;return(b=D[0])===null||b===void 0?void 0:b._closetag()},T.ontext=b=>{var N;return(N=D[0])===null||N===void 0?void 0:N._text(b)},T.oncdata=b=>{var N;return(N=D[0])===null||N===void 0?void 0:N._cdata(b)},T.oncomment=b=>{var N;return(N=D[0])===null||N===void 0?void 0:N._comment(b)},T.ondoctype=b=>{const N=D[0];N._doctype&&N._doctype(b)},T.onerror=b=>{var N;return(N=D[0])===null||N===void 0?void 0:N._error(b)}}function z(T){return T.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")}function L(T,b){let N=T;return b!=null&&b.trimmed&&T.length>25&&(N=N.substring(0,25).trim()+"…"),b!=null&&b.preserveWhitespace||(N=N.trim()),N}r.default=E},1635(o,r,t){t.d(r,{__decorate:()=>A});function A(a,f,h,Q){var d=arguments.length,E=d<3?f:Q===null?Q=Object.getOwnPropertyDescriptor(f,h):Q,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(a,f,h,Q);else for(var Y=a.length-1;Y>=0;Y--)(D=a[Y])&&(E=(d<3?D(E):d>3?D(f,h,E):D(f,h))||E);return d>3&&E&&Object.defineProperty(f,h,E),E}typeof SuppressedError=="function"&&SuppressedError}},g={};function u(o){var r=g[o];if(r!==void 0)return r.exports;var t=g[o]={id:o,loaded:!1,exports:{}};return s[o].call(t.exports,t,t.exports,u),t.loaded=!0,t.exports}u.amdO={},u.n=o=>{var r=o&&o.__esModule?()=>o.default:()=>o;return u.d(r,{a:r}),r},u.d=(o,r)=>{for(var t in r)u.o(r,t)&&!u.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:r[t]})},u.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),u.o=(o,r)=>Object.prototype.hasOwnProperty.call(o,r),u.nmd=o=>(o.paths=[],o.children||(o.children=[]),o);var w=u(6092);return w})())})(el);var rw=el.exports;const Bo=oo(rw);var tl={exports:{}};(function(e){var i={"Roboto-Italic.ttf":" ","Roboto-Medium.ttf":" ","Roboto-MediumItalic.ttf":" ","Roboto-Regular.ttf":" "},s=typeof window=="object"?window:typeof Hi=="object"?Hi:typeof self=="object"?self:Hi;typeof s.pdfMake<"u"&&typeof s.pdfMake.addVirtualFileSystem<"u"&&s.pdfMake.addVirtualFileSystem(i),e.exports=i})(tl);var iw=tl.exports;const nw=oo(iw);/*! DataTables 2.3.8
 * © SpryMedia Ltd - datatables.net/license
 */var Ae=ti,Be=function(e,i){if(Be.factory(e,i))return Be;if(this instanceof Be)return Ae(e).DataTable(i);i=e;var s=this,g=i===void 0,u=this.length;return g&&(i={}),this.api=function(){return new St(this)},this.each(function(){var w={},o=u>1?PB(w,i,!0):i,r=0,t,A=this.getAttribute("id"),a=Be.defaults,f=Ae(this);if(this.nodeName.toLowerCase()!="table"){ei(null,0,"Non-table node initialisation ("+this.nodeName+")",2);return}o.on&&o.on.options&&RB(f,"options",o.on.options),f.trigger("options.dt",o),yB(a),al(a.column),Li(a,a,!0),Li(a.column,a.column,!0),Li(a,Ae.extend(o,Il(f.data())),!0);var h=Be.settings;for(r=0,t=h.length;r<t;r++){var Q=h[r];if(Q.nTable==this||Q.nTHead&&Q.nTHead.parentNode==this||Q.nTFoot&&Q.nTFoot.parentNode==this){var d=o.bRetrieve!==void 0?o.bRetrieve:a.bRetrieve,E=o.bDestroy!==void 0?o.bDestroy:a.bDestroy;if(g||d)return Q.oInstance;if(E){new Be.Api(Q).destroy();break}else{ei(Q,0,"Cannot reinitialise DataTable",3);return}}if(Q.sTableId==this.id){h.splice(r,1);break}}(A===null||A==="")&&(A="DataTables_Table_"+Be.ext._unique++,this.id=A),f.children("colgroup").remove();var D=Ae.extend(!0,{},Be.models.oSettings,{sDestroyWidth:f[0].style.width,sInstance:A,sTableId:A,colgroup:Ae("<colgroup>"),fastData:function(v,bA,wA){return ri(D,v,bA,wA)}});D.nTable=this,D.oInit=o,h.push(D),D.api=new St(D),D.oInstance=s.length===1?s:f.dataTable(),yB(o),o.aLengthMenu&&!o.iDisplayLength&&(o.iDisplayLength=Array.isArray(o.aLengthMenu[0])?o.aLengthMenu[0][0]:Ae.isPlainObject(o.aLengthMenu[0])?o.aLengthMenu[0].value:o.aLengthMenu[0]),o=PB(Ae.extend(!0,{},a),o),ji(D.oFeatures,o,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ji(D,o,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect","columnTitleTag",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),ji(D.oScroll,o,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ji(D.oLanguage,o,"fnInfoCallback"),Ai(D,"aoDrawCallback",o.fnDrawCallback),Ai(D,"aoStateSaveParams",o.fnStateSaveParams),Ai(D,"aoStateLoadParams",o.fnStateLoadParams),Ai(D,"aoStateLoaded",o.fnStateLoaded),Ai(D,"aoRowCallback",o.fnRowCallback),Ai(D,"aoRowCreatedCallback",o.fnCreatedRow),Ai(D,"aoHeaderCallback",o.fnHeaderCallback),Ai(D,"aoFooterCallback",o.fnFooterCallback),Ai(D,"aoInitComplete",o.fnInitComplete),Ai(D,"aoPreDrawCallback",o.fnPreDrawCallback),D.rowIdFn=Tn(o.rowId),o.on&&Object.keys(o.on).forEach(function(v){RB(f,v,o.on[v])}),gw(D);var Y=D.oClasses;Ae.extend(Y,Be.ext.classes,o.oClasses),f.addClass(Y.table),D.oFeatures.bPaginate||(o.iDisplayStart=0),D.iInitDisplayStart===void 0&&(D.iInitDisplayStart=o.iDisplayStart,D._iDisplayStart=o.iDisplayStart);var z=o.iDeferLoading;if(z!==null){D.deferLoading=!0;var L=Array.isArray(z);D._iRecordsDisplay=L?z[0]:z,D._iRecordsTotal=L?z[1]:z}var T=[],b=this.getElementsByTagName("thead"),N=wl(D,b[0]);if(o.aoColumns)T=o.aoColumns;else if(N.length)for(r=0,t=N[0].length;r<t;r++)T.push(null);for(r=0,t=T.length;r<t;r++)ol(D);ww(D,o.aoColumnDefs,T,N,function(v,bA){qa(D,v,bA)});var O=f.children("tbody").find("tr:first-child").eq(0);if(O.length){var gA=function(v,bA){return v.getAttribute("data-"+bA)!==null?bA:null};Ae(O[0]).children("th, td").each(function(v,bA){var wA=D.aoColumns[v];if(wA||ei(D,0,"Incorrect column count",18),wA.mData===v){var tA=gA(bA,"sort")||gA(bA,"order"),nA=gA(bA,"filter")||gA(bA,"search");(tA!==null||nA!==null)&&(wA.mData={_:v+".display",sort:tA!==null?v+".@data-"+tA:void 0,type:tA!==null?v+".@data-"+tA:void 0,filter:nA!==null?v+".@data-"+nA:void 0},wA._isArrayHost=!0,qa(D,v))}})}Ai(D,"aoDrawCallback",Ia);var oA=D.oFeatures;if(o.bStateSave&&(oA.bStateSave=!0),o.aaSorting===void 0){var q=D.aaSorting;for(r=0,t=q.length;r<t;r++)q[r][1]=D.aoColumns[r].asSorting[0]}eo(D),Ai(D,"aoDrawCallback",function(){(D.bSorted||qr(D)==="ssp"||oA.bDeferRender)&&eo(D)});var Z=f.children("caption");D.caption&&(Z.length===0&&(Z=Ae("<caption/>").prependTo(f)),Z.html(D.caption)),Z.length&&(Z[0]._captionSide=Z.css("caption-side"),D.captionNode=Z[0]),Z.length?D.colgroup.insertAfter(Z):D.colgroup.prependTo(D.nTable),b.length===0&&(b=Ae("<thead/>").appendTo(f)),D.nTHead=b[0];var x=f.children("tbody");x.length===0&&(x=Ae("<tbody/>").insertAfter(b)),D.nTBody=x[0];var X=f.children("tfoot");X.length===0&&(X=Ae("<tfoot/>").appendTo(f)),D.nTFoot=X[0],D.aiDisplay=D.aiDisplayMaster.slice(),D.bInitialised=!0;var B=D.oLanguage;Ae.extend(!0,B,o.oLanguage),B.sUrl?Ae.ajax({dataType:"json",url:B.sUrl,success:function(v){Li(a.oLanguage,v),Ae.extend(!0,B,v,D.oInit.oLanguage),Wt(D,null,"i18n",[D],!0),aa(D)},error:function(){ei(D,0,"i18n file loading error",21),aa(D)}}):(Wt(D,null,"i18n",[D],!0),aa(D))}),s=null,this};Be.ext=Mr={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",escape:{attributes:!1},feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:Be.fnVersionCheck,iApiIndex:0,sVersion:Be.version};Ae.extend(Mr,{afnFiltering:Mr.search,aTypes:Mr.type.detect,ofnSearch:Mr.type.search,oSort:Mr.type.order,afnSortData:Mr.order,aoFeatures:Mr.feature,oStdClasses:Mr.classes,oPagination:Mr.pager});Ae.extend(Be.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}});var Mr,St,Bt,Zt,ka={},sw=/[\r\n\u2028]/g,lo=/<([^>]*>)/g,aw=Math.pow(2,28),pB=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,ow=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),go=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Zr=function(e){return!e||e===!0||e==="-"},rl=function(e){var i=parseInt(e,10);return!isNaN(i)&&isFinite(e)?i:null},il=function(e,i){return ka[i]||(ka[i]=new RegExp(Ao(i),"g")),typeof e=="string"&&i!=="."?e.replace(/\./g,"").replace(ka[i],"."):e},Qs=function(e,i,s,g){var u=typeof e,w=u==="string";return u==="number"||u==="bigint"||g&&Zr(e)?!0:(i&&w&&(e=il(e,i)),s&&w&&(e=e.replace(go,"")),!isNaN(parseFloat(e))&&isFinite(e))},Bw=function(e){return Zr(e)||typeof e=="string"},oa=function(e,i,s,g){if(g&&Zr(e))return!0;if(typeof e=="string"&&e.match(/<(input|select)/i))return null;var u=Bw(e);return u&&Qs(mi(e),i,s,g)?!0:null},Ur=function(e,i,s){var g=[],u=0,w=e.length;if(s!==void 0)for(;u<w;u++)e[u]&&e[u][i]&&g.push(e[u][i][s]);else for(;u<w;u++)e[u]&&g.push(e[u][i]);return g},Ds=function(e,i,s,g){var u=[],w=0,o=i.length;if(g!==void 0)for(;w<o;w++)e[i[w]]&&e[i[w]][s]&&u.push(e[i[w]][s][g]);else for(;w<o;w++)e[i[w]]&&u.push(e[i[w]][s]);return u},xi=function(e,i){var s=[],g;i===void 0?(i=0,g=e):(g=i,i=e);for(var u=i;u<g;u++)s.push(u);return s},nl=function(e){for(var i=[],s=0,g=e.length;s<g;s++)e[s]&&i.push(e[s]);return i},mi=function(e,i){if(!e||typeof e!="string")return e;if(e.length>aw)throw new Error("Exceeded max str len");var s;e=e.replace(lo,i||"");do s=e,e=e.replace(/<script/i,"");while(e!==s);return s},nn=function(e){return Array.isArray(e)&&(e=e.join(",")),typeof e=="string"?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e},Ba=function(e,i){if(typeof e!="string")return e;var s=e.normalize?e.normalize("NFD"):e;return s.length!==e.length?(i===!0?e+" ":"")+s.replace(/[\u0300-\u036f]/g,""):s},lw=function(e){if(e.length<2)return!0;for(var i=e.slice().sort(),s=i[0],g=1,u=i.length;g<u;g++){if(i[g]===s)return!1;s=i[g]}return!0},Hn=function(e){if(Array.from&&Set)return Array.from(new Set(e));if(lw(e))return e.slice();var i=[],s,g,u=e.length,w,o=0;A:for(g=0;g<u;g++){for(s=e[g],w=0;w<o;w++)if(i[w]===s)continue A;i.push(s),o++}return i},sl=function(e,i){if(Array.isArray(i))for(var s=0;s<i.length;s++)sl(e,i[s]);else e.push(i);return e};function Nn(e,i){i&&i.split(" ").forEach(function(s){s&&e.classList.add(s)})}Be.util={diacritics:function(e,i){var s=typeof e;if(s!=="function")return Ba(e,i);Ba=e},debounce:function(e,i){var s;return function(){var g=this,u=arguments;clearTimeout(s),s=setTimeout(function(){e.apply(g,u)},i||250)}},throttle:function(e,i){var s=i!==void 0?i:200,g,u;return function(){var w=this,o=+new Date,r=arguments;g&&o<g+s?(clearTimeout(u),u=setTimeout(function(){g=void 0,e.apply(w,r)},s)):(g=o,e.apply(w,r))}},escapeRegex:function(e){return e.replace(ow,"\\$1")},set:function(e){if(Ae.isPlainObject(e))return Be.util.set(e._);if(e===null)return function(){};if(typeof e=="function")return function(s,g,u){e(s,"set",g,u)};if(typeof e=="string"&&(e.indexOf(".")!==-1||e.indexOf("[")!==-1||e.indexOf("(")!==-1)){var i=function(s,g,u){for(var w=YB(u),o,r=w[w.length-1],t,A,a,f,h=0,Q=w.length-1;h<Q;h++){if(w[h]==="__proto__"||w[h]==="constructor")throw new Error("Cannot set prototype values");if(t=w[h].match(ws),A=w[h].match(Un),t){if(w[h]=w[h].replace(ws,""),s[w[h]]=[],o=w.slice(),o.splice(0,h+1),f=o.join("."),Array.isArray(g))for(var d=0,E=g.length;d<E;d++)a={},i(a,g[d],f),s[w[h]].push(a);else s[w[h]]=g;return}else A&&(w[h]=w[h].replace(Un,""),s=s[w[h]](g));(s[w[h]]===null||s[w[h]]===void 0)&&(s[w[h]]={}),s=s[w[h]]}r.match(Un)?s=s[r.replace(Un,"")](g):s[r.replace(ws,"")]=g};return function(s,g){return i(s,g,e)}}else return function(s,g){s[e]=g}},get:function(e){if(Ae.isPlainObject(e)){var i={};return Ae.each(e,function(g,u){u&&(i[g]=Be.util.get(u))}),function(g,u,w,o){var r=i[u]||i._;return r!==void 0?r(g,u,w,o):g}}else{if(e===null)return function(g){return g};if(typeof e=="function")return function(g,u,w,o){return e(g,u,w,o)};if(typeof e=="string"&&(e.indexOf(".")!==-1||e.indexOf("[")!==-1||e.indexOf("(")!==-1)){var s=function(g,u,w){var o,r,t,A;if(w!=="")for(var a=YB(w),f=0,h=a.length;f<h;f++){if(o=a[f].match(ws),r=a[f].match(Un),o){if(a[f]=a[f].replace(ws,""),a[f]!==""&&(g=g[a[f]]),t=[],a.splice(0,f+1),A=a.join("."),Array.isArray(g))for(var Q=0,d=g.length;Q<d;Q++)t.push(s(g[Q],u,A));var E=o[0].substring(1,o[0].length-1);g=E===""?t:t.join(E);break}else if(r){a[f]=a[f].replace(Un,""),g=g[a[f]]();continue}if(g===null||g[a[f]]===null)return null;if(g===void 0||g[a[f]]===void 0)return;g=g[a[f]]}return g};return function(g,u){return s(g,u,e)}}else return function(g){return g[e]}}},stripHtml:function(e,i){var s=typeof e;if(s==="function"){mi=e;return}else if(s==="string")return mi(e,i);return e},escapeHtml:function(e){var i=typeof e;if(i==="function"){nn=e;return}else if(i==="string"||Array.isArray(e))return nn(e);return e},unique:Hn};function ua(e){var i="a aa ai ao as b fn i m o s ",s,g,u={};Ae.each(e,function(w){s=w.match(/^([^A-Z]+?)([A-Z])/),s&&i.indexOf(s[1]+" ")!==-1&&(g=w.replace(s[0],s[2].toLowerCase()),u[g]=w,s[1]==="o"&&ua(e[w]))}),e._hungarianMap=u}function Li(e,i,s){e._hungarianMap||ua(e);var g;Ae.each(i,function(u){g=e._hungarianMap[u],g!==void 0&&(s||i[g]===void 0)&&(g.charAt(0)==="o"?(i[g]||(i[g]={}),Ae.extend(!0,i[g],i[u]),Li(e[g],i[g],s)):i[g]=i[u])})}var kr=function(e,i,s){e[i]!==void 0&&(e[s]=e[i])};function yB(e){kr(e,"ordering","bSort"),kr(e,"orderMulti","bSortMulti"),kr(e,"orderClasses","bSortClasses"),kr(e,"orderCellsTop","bSortCellsTop"),kr(e,"order","aaSorting"),kr(e,"orderFixed","aaSortingFixed"),kr(e,"paging","bPaginate"),kr(e,"pagingType","sPaginationType"),kr(e,"pageLength","iDisplayLength"),kr(e,"searching","bFilter"),typeof e.sScrollX=="boolean"&&(e.sScrollX=e.sScrollX?"100%":""),typeof e.scrollX=="boolean"&&(e.scrollX=e.scrollX?"100%":""),typeof e.bSort=="object"?(e.orderIndicators=e.bSort.indicators!==void 0?e.bSort.indicators:!0,e.orderHandler=e.bSort.handler!==void 0?e.bSort.handler:!0,e.bSort=!0):e.bSort===!1?(e.orderIndicators=!1,e.orderHandler=!1):e.bSort===!0&&(e.orderIndicators=!0,e.orderHandler=!0),typeof e.bSortCellsTop=="boolean"&&(e.titleRow=e.bSortCellsTop);var i=e.aoSearchCols;if(i)for(var s=0,g=i.length;s<g;s++)i[s]&&Li(Be.models.oSearch,i[s]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400)}function al(e){kr(e,"orderable","bSortable"),kr(e,"orderData","aDataSort"),kr(e,"orderSequence","asSorting"),kr(e,"orderDataType","sortDataType");var i=e.aDataSort;typeof i=="number"&&!Array.isArray(i)&&(e.aDataSort=[i])}function gw(e){if(!Be.__browser){var i={};Be.__browser=i;var s=Ae("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append(Ae("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(Ae("<div/>").css({width:"100%",height:10}))).appendTo("body"),g=s.children(),u=g.children();i.barWidth=g[0].offsetWidth-g[0].clientWidth,i.bScrollbarLeft=Math.round(u.offset().left)!==1,s.remove()}Ae.extend(e.oBrowser,Be.__browser),e.oScroll.iBarWidth=Be.__browser.barWidth}function ol(e){var i=Be.defaults.column,s=e.aoColumns.length,g=Ae.extend({},Be.models.oColumn,i,{aDataSort:i.aDataSort?i.aDataSort:[s],mData:i.mData?i.mData:s,idx:s,searchFixed:{},colEl:Ae("<col>").attr("data-dt-column",s)});e.aoColumns.push(g);var u=e.aoPreSearchCols;u[s]=Ae.extend({},Be.models.oSearch,u[s])}function qa(e,i,s){var g=e.aoColumns[i];if(s!=null){al(s),Li(Be.defaults.column,s,!0),s.mDataProp!==void 0&&!s.mData&&(s.mData=s.mDataProp),s.sType&&(g._sManualType=s.sType),s.className&&!s.sClass&&(s.sClass=s.className);var u=g.sClass;Ae.extend(g,s),ji(g,s,"sWidth","sWidthOrig"),u!==g.sClass&&(g.sClass=u+" "+g.sClass),s.iDataSort!==void 0&&(g.aDataSort=[s.iDataSort]),ji(g,s,"aDataSort")}var w=g.mData,o=Tn(w);if(g.mRender&&Array.isArray(g.mRender)){var r=g.mRender.slice(),t=r.shift();g.mRender=Be.render[t].apply(window,r)}g._render=g.mRender?Tn(g.mRender):null;var A=function(a){return typeof a=="string"&&a.indexOf("@")!==-1};g._bAttrSrc=Ae.isPlainObject(w)&&(A(w.sort)||A(w.type)||A(w.filter)),g._setter=null,g.fnGetData=function(a,f,h){var Q=o(a,f,void 0,h);return g._render&&f?g._render(Q,f,a,h):Q},g.fnSetData=function(a,f,h){return tn(w)(a,f,h)},typeof w!="number"&&!g._isArrayHost&&(e._rowReadObject=!0),e.oFeatures.bSort||(g.bSortable=!1)}function Qa(e){mw(e),cw(e);var i=e.oScroll;(i.sY!==""||i.sX!=="")&&Ql(e),Wt(e,null,"column-sizing",[e])}function cw(e){for(var i=e.aoColumns,s=0;s<i.length;s++){var g=Bl(e,[s],!1);i[s].colEl.css("width",g),e.oScroll.sX&&i[s].colEl.css("min-width",g)}}function co(e,i){var s=Eo(e,"bVisible");return typeof s[i]=="number"?s[i]:null}function Is(e,i){var s=Eo(e,"bVisible"),g=s.indexOf(i);return g!==-1?g:null}function Ca(e){var i=e.aoHeader,s=e.aoColumns,g=0;if(i.length)for(var u=0,w=i[0].length;u<w;u++)s[u].bVisible&&Ae(i[0][u].cell).css("display")!=="none"&&g++;return g}function Eo(e,i){var s=[];return e.aoColumns.map(function(g,u){g[i]&&s.push(u)}),s}function ja(e,i){return i===!0?e._name:i}function da(e){var i=e.aoColumns,s=e.aoData,g=Be.ext.type.detect,u,w,o,r,t,A,a,f,h;for(u=0,w=i.length;u<w;u++){if(a=i[u],h=[],!a.sType&&a._sManualType)a.sType=a._sManualType;else if(!a.sType){if(!e.typeDetect)return;for(o=0,r=g.length;o<r;o++){var Q=g[o],d=Q.oneOf,E=Q.allOf||Q,D=Q.init,Y=!1;if(f=null,D&&(f=ja(Q,D(e,a,u)),f)){a.sType=f;break}for(t=0,A=s.length;t<A&&!(s[t]&&(h[t]===void 0&&(h[t]=ri(e,t,u,"type")),d&&!Y&&(Y=ja(Q,d(h[t],e))),f=ja(Q,E(h[t],e)),!f&&o!==g.length-3||f==="html"&&!Zr(h[t])));t++);if(d&&Y&&f||!d&&f){a.sType=f;break}}a.sType||(a.sType="string")}var z=Mr.type.className[a.sType];z&&(FB(e.aoHeader,u,z),FB(e.aoFooter,u,z));var L=Mr.type.render[a.sType];L&&!a._render&&(a._render=Be.util.get(L),Ew(e,u))}}function Ew(e,i){for(var s=e.aoData,g=0;g<s.length;g++)if(s[g].nTr){var u=ri(e,g,i,"display");s[g].displayData[i]=u,la(s[g].anCells[i],u)}}function FB(e,i,s){e.forEach(function(g){g[i]&&g[i].unique&&Nn(g[i].cell,s)})}function ww(e,i,s,g,u){var w,o,r,t,A,a,f,h=e.aoColumns;if(s)for(w=0,o=s.length;w<o;w++)s[w]&&s[w].name&&(h[w].sName=s[w].name);if(i)for(w=i.length-1;w>=0;w--){f=i[w];var Q=f.target!==void 0?f.target:f.targets!==void 0?f.targets:f.aTargets;for(Array.isArray(Q)||(Q=[Q]),r=0,t=Q.length;r<t;r++){var d=Q[r];if(typeof d=="number"&&d>=0){for(;h.length<=d;)ol(e);u(d,f)}else if(typeof d=="number"&&d<0)u(h.length+d,f);else if(typeof d=="string")for(A=0,a=h.length;A<a;A++)d==="_all"?u(A,f):d.indexOf(":name")!==-1?h[A].sName===d.replace(":name","")&&u(A,f):g.forEach(function(E){if(E[A]){var D=Ae(E[A].cell);d.match(/^[a-z][\w-]*$/i)&&(d="."+d),D.is(d)&&u(A,f)}})}}if(s)for(w=0,o=s.length;w<o;w++)u(w,s[w])}function Bl(e,i,s,g){Array.isArray(i)||(i=wo(i));for(var u=0,w,o=e.aoColumns,r=0,t=i.length;r<t;r++){var A=o[i[r]],a=s?A.sWidthOrig:A.sWidth;if(A.bVisible!==!1){if(a==null)return null;if(typeof a=="number")w="px",u+=a;else{var f=a.match(/([\d\.]+)([^\d]*)/);f&&(u+=f[1]*1,w=f.length===3?f[2]:"px")}}}return u+w}function wo(e){var i=Ae(e).closest("[data-dt-column]").attr("data-dt-column");return i?i.split(",").map(function(s){return s*1}):[]}function sn(e,i,s,g){var u=e.aoData.length,w=Ae.extend(!0,{},Be.models.oRow,{src:s?"dom":"data",idx:u});w._aData=i,e.aoData.push(w);for(var o=e.aoColumns,r=0,t=o.length;r<t;r++)o[r].sType=null;e.aiDisplayMaster.push(u);var A=e.rowIdFn(i);return A!==void 0&&(e.aIds[A]=w),(s||!e.oFeatures.bDeferRender)&&gl(e,u,s,g),u}function fo(e,i){var s;return i instanceof Ae||(i=Ae(i)),i.map(function(g,u){return s=ll(e,u),sn(e,s.data,u,s.cells)})}function ri(e,i,s,g){g==="search"?g="filter":g==="order"&&(g="sort");var u=e.aoData[i];if(u){var w=e.iDraw,o=e.aoColumns[s],r=u._aData,t=o.sDefaultContent,A=o.fnGetData(r,g,{settings:e,row:i,col:s});if(g!=="display"&&A&&typeof A=="object"&&A.nodeName&&(A=A.innerHTML),A===void 0)return e.iDrawError!=w&&t===null&&(ei(e,0,"Requested unknown parameter "+(typeof o.mData=="function"?"{function}":"'"+o.mData+"'")+" for row "+i+", column "+s,4),e.iDrawError=w),t;if((A===r||A===null)&&t!==null&&g!==void 0)A=t;else if(typeof A=="function")return A.call(r);if(A===null&&g==="display")return"";if(g==="filter"){var a=Be.ext.type.search;a[o.sType]&&(A=a[o.sType](A))}return A}}function fw(e,i,s,g){var u=e.aoColumns[s],w=e.aoData[i]._aData;u.fnSetData(w,g,{settings:e,row:i,col:s})}function la(e,i){i&&typeof i=="object"&&i.nodeName?Ae(e).empty().append(i):e.innerHTML=i}var ws=/\[.*?\]$/,Un=/\(\)$/;function YB(e){var i=e.match(/(\\.|[^.])+/g)||[""];return i.map(function(s){return s.replace(/\\\./g,".")})}var Tn=Be.util.get,tn=Be.util.set;function vB(e){return Ur(e.aoData,"_aData")}function ho(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function Ma(e,i,s,g){var u=e.aoData[i],w,o;if(u._aSortData=null,u._aFilterData=null,u.displayData=null,s==="dom"||(!s||s==="auto")&&u.src==="dom")u._aData=ll(e,u,g,g===void 0?void 0:u._aData).data;else{var r=u.anCells,t=uo(e,i);if(r)if(g!==void 0)la(r[g],t[g]);else for(w=0,o=r.length;w<o;w++)la(r[w],t[w])}var A=e.aoColumns;if(g!==void 0)A[g].sType=null,A[g].wideStrings=null;else{for(w=0,o=A.length;w<o;w++)A[w].sType=null,A[w].wideStrings=null;cl(e,u)}}function ll(e,i,s,g){var u=[],w=i.firstChild,o,r,t=0,A,a=e.aoColumns,f=e._rowReadObject;g=g!==void 0?g:f?{}:[];var h=function(z,L){if(typeof z=="string"){var T=z.indexOf("@");if(T!==-1){var b=z.substring(T+1),N=tn(z);N(g,L.getAttribute(b))}}},Q=function(z){if(s===void 0||s===t)if(r=a[t],A=z.innerHTML.trim(),r&&r._bAttrSrc){var L=tn(r.mData._);L(g,A),h(r.mData.sort,z),h(r.mData.type,z),h(r.mData.filter,z)}else f?(r._setter||(r._setter=tn(r.mData)),r._setter(g,A)):g[t]=A;t++};if(w)for(;w;)o=w.nodeName.toUpperCase(),(o=="TD"||o=="TH")&&(Q(w),u.push(w)),w=w.nextSibling;else{u=i.anCells;for(var d=0,E=u.length;d<E;d++)Q(u[d])}var D=i.firstChild?i:i.nTr;if(D){var Y=D.getAttribute("id");Y&&tn(e.rowId)(g,Y)}return{data:g,cells:u}}function uo(e,i){var s=e.aoData[i],g=e.aoColumns;if(!s.displayData){s.displayData=[];for(var u=0,w=g.length;u<w;u++)s.displayData.push(ri(e,i,u,"display"))}return s.displayData}function gl(e,i,s,g){var u=e.aoData[i],w=u._aData,o=[],r,t,A,a,f,h,Q=e.oClasses.tbody.row;if(u.nTr===null){for(r=s||document.createElement("tr"),u.nTr=r,u.anCells=o,Nn(r,Q),r._DT_RowIndex=i,cl(e,u),a=0,f=e.aoColumns.length;a<f;a++){A=e.aoColumns[a],h=!(s&&g[a]),t=h?document.createElement(A.sCellType):g[a],t||ei(e,0,"Incorrect column count",18),t._DT_CellIndex={row:i,column:a},o.push(t);var d=uo(e,i);(h||(A.mRender||A.mData!==a)&&(!Ae.isPlainObject(A.mData)||A.mData._!==a+".display"))&&la(t,d[a]),Nn(t,A.sClass),A.bVisible&&h?r.appendChild(t):!A.bVisible&&!h&&t.parentNode.removeChild(t),A.fnCreatedCell&&A.fnCreatedCell.call(e.oInstance,t,ri(e,i,a),w,i,a)}Wt(e,"aoRowCreatedCallback","row-created",[r,w,i,o])}else Nn(u.nTr,Q)}function cl(e,i){var s=i.nTr,g=i._aData;if(s){var u=e.rowIdFn(g);if(u&&(s.id=u),g.DT_RowClass){var w=g.DT_RowClass.split(" ");i.__rowc=i.__rowc?Hn(i.__rowc.concat(w)):w,Ae(s).removeClass(i.__rowc.join(" ")).addClass(g.DT_RowClass)}g.DT_RowAttr&&Ae(s).attr(g.DT_RowAttr),g.DT_RowData&&Ae(s).data(g.DT_RowData)}}function mB(e,i){var s=e.oClasses,g=e.aoColumns,u,w,o,r=i==="header"?e.nTHead:e.nTFoot,t=i==="header"?"sTitle":i;if(r){if((i==="header"||Ur(e.aoColumns,t).join(""))&&(o=Ae("tr",r),o.length||(o=Ae("<tr/>").appendTo(r)),o.length===1)){var A=0;for(Ae("td, th",o).each(function(){A+=this.colSpan}),u=A,w=g.length;u<w;u++)Ae("<th/>").html(g[u][t]||"").appendTo(o)}var a=wl(e,r,!0);i==="header"?(e.aoHeader=a,Ae("tr",r).addClass(s.thead.row)):(e.aoFooter=a,Ae("tr",r).addClass(s.tfoot.row)),Ae(r).children("tr").children("th, td").each(function(){Ea(e,i)(e,Ae(this),s)})}}function El(e,i,s){var g,u,w,o=[],r=[],t=e.aoColumns,A=t.length,a,f;if(i){for(s||(s=xi(A).filter(function(d){return t[d].bVisible})),g=0;g<i.length;g++)o[g]=i[g].slice().filter(function(d,E){return s.includes(E)}),r.push([]);for(g=0;g<o.length;g++)for(u=0;u<o[g].length;u++)if(a=1,f=1,r[g][u]===void 0){for(w=o[g][u].cell;o[g+a]!==void 0&&o[g][u].cell==o[g+a][u].cell;)r[g+a][u]=null,a++;for(;o[g][u+f]!==void 0&&o[g][u].cell==o[g][u+f].cell;){for(var h=0;h<a;h++)r[g+h][u+f]=null;f++}var Q=Ae(".dt-column-title",w);r[g][u]={cell:w,colspan:f,rowspan:a,title:Q.length?Q.html():Ae(w).html()}}return r}}function ga(e,i){for(var s=El(e,i),g,u,w=0;w<i.length;w++){if(g=i[w].row,g)for(;u=g.firstChild;)g.removeChild(u);for(var o=0;o<s[w].length;o++){var r=s[w][o];r&&Ae(r.cell).appendTo(g).attr("rowspan",r.rowspan).attr("colspan",r.colspan)}}}function Ln(e,i){dw(e);var s=Wt(e,"aoPreDrawCallback","preDraw",[e]);if(s.indexOf(!1)!==-1){_r(e,!1);return}var g=[],u=0,w=qr(e)=="ssp",o=e.aiDisplay,r=e._iDisplayStart,t=e.fnDisplayEnd(),A=e.aoColumns,a=Ae(e.nTBody);if(e.bDrawing=!0,e.deferLoading)e.deferLoading=!1,e.iDraw++,_r(e,!1);else if(!w)e.iDraw++;else if(!e.bDestroying&&!i){e.iDraw===0&&a.empty().append(bB(e)),Mw(e);return}if(o.length!==0)for(var f=w?0:r,h=w?e.aoData.length:t,Q=f;Q<h;Q++){var d=o[Q],E=e.aoData[d];if(E!==null){E.nTr===null&&gl(e,d);for(var D=E.nTr,Y=0;Y<A.length;Y++){var z=A[Y],L=E.anCells[Y];Nn(L,Mr.type.className[z.sType]),Nn(L,e.oClasses.tbody.cell)}Wt(e,"aoRowCallback",null,[D,E._aData,u,Q,d]),g.push(D),u++}}else g[0]=bB(e);Wt(e,"aoHeaderCallback","header",[Ae(e.nTHead).children("tr")[0],vB(e),r,t,o]),Wt(e,"aoFooterCallback","footer",[Ae(e.nTFoot).children("tr")[0],vB(e),r,t,o]),a[0].replaceChildren?a[0].replaceChildren.apply(a[0],g):(a.children().detach(),a.append(Ae(g))),Ae(e.nTableWrapper).toggleClass("dt-empty-footer",Ae("tr",e.nTFoot).length===0),Wt(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}function Gn(e,i,s){var g=e.oFeatures,u=g.bSort,w=g.bFilter;(s===void 0||s===!0)&&(da(e),u&&Mo(e),w?ds(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice()),i!==!0?e._iDisplayStart=0:Do(e),e._drawHold=i,Ln(e),e.api.one("draw",function(){e._drawHold=!1})}function bB(e){var i=e.oLanguage,s=i.sZeroRecords,g=qr(e);return(g==="ssp"||g==="ajax")&&!e.json?s=i.sLoadingRecords:i.sEmptyTable&&e.fnRecordsTotal()===0&&(s=i.sEmptyTable),Ae("<tr/>").append(Ae("<td />",{colSpan:Ca(e),class:e.oClasses.empty.row}).html(s))[0]}function $a(e,i,s){if(Array.isArray(s)){for(var g=0;g<s.length;g++)$a(e,i,s[g]);return}var u=e[i];Ae.isPlainObject(s)?s.features?(s.rowId&&(e.id=s.rowId),s.rowClass&&(e.className=s.rowClass),u.id=s.id,u.className=s.className,$a(e,i,s.features)):Object.keys(s).map(function(w){u.contents.push({feature:w,opts:s[w]})}):u.contents.push(s)}function hw(e,i,s){for(var g,u=0;u<e.length;u++)if(g=e[u],g.rowNum===i&&(s==="full"&&g.full||(s==="start"||s==="end")&&(g.start||g.end)))return g[s]||(g[s]={contents:[]}),g;return g={rowNum:i},g[s]={contents:[]},e.push(g),g}function UB(e,i,s){var g=[];Ae.each(i,function(w,o){if(o!==null){var r=w.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/),t=r[2]?r[2]*1:0,A=r[3]?r[3].toLowerCase():"full";if(r[1]===s){var a=hw(g,t,A);$a(a,A,o)}}}),g.sort(function(w,o){var r=w.rowNum,t=o.rowNum;if(r===t){var A=w.full&&!o.full?-1:1;return s==="bottom"?A*-1:A}return t-r}),s==="bottom"&&g.reverse();for(var u=0;u<g.length;u++)delete g[u].rowNum,uw(e,g[u]);return g}function uw(e,i){var s=function(u,w){return Mr.features[u]||ei(e,0,"Unknown feature: "+u),Mr.features[u].apply(this,[e,w])},g=function(u){if(i[u])for(var w=i[u].contents,o=0,r=w.length;o<r;o++)if(w[o]){if(typeof w[o]=="string")w[o]=s(w[o],null);else if(Ae.isPlainObject(w[o]))w[o]=s(w[o].feature,w[o].opts);else if(typeof w[o].node=="function")w[o]=w[o].node(e);else if(typeof w[o]=="function"){var t=w[o](e);w[o]=typeof t.node=="function"?t.node():t}}else continue};g("start"),g("end"),g("full")}function Qw(e){var i=e.oClasses,s=Ae(e.nTable),g=Ae("<div/>").attr({id:e.sTableId+"_wrapper",class:i.container}).insertBefore(s);if(e.nTableWrapper=g[0],e.sDom)Cw(e,e.sDom,g);else{var u=UB(e,e.layout,"top"),w=UB(e,e.layout,"bottom"),o=Ea(e,"layout");u.forEach(function(r){o(e,g,r)}),o(e,g,{full:{table:!0,contents:[ul(e)]}}),w.forEach(function(r){o(e,g,r)})}vw(e)}function Cw(e,i,s){for(var g=i.match(/(".*?")|('.*?')|./g),u,w,o,r,t,A=0;A<g.length;A++){if(u=null,w=g[A],w=="<"){if(o=Ae("<div/>"),r=g[A+1],r[0]=="'"||r[0]=='"'){t=r.replace(/['"]/g,"");var a="",f;if(t.indexOf(".")!=-1){var h=t.split(".");a=h[0],f=h[1]}else t[0]=="#"?a=t:f=t;o.attr("id",a.substring(1)).addClass(f),A++}s.append(o),s=o}else w==">"?s=s.parent():w=="t"?u=ul(e):Be.ext.feature.forEach(function(Q){w==Q.cFeature&&(u=Q.fnInit(e))});u&&s.append(u)}}function wl(e,i,s){var g=e.aoColumns,u=Ae(i).children("tr"),w,o,r,t,A,a,f,h,Q,d,E=e.titleRow,D=i&&i.nodeName.toLowerCase()==="thead",Y=[],z,L=function(q,Z,x){for(var X=q[Z];X[x];)x++;return x};for(r=0,a=u.length;r<a;r++)Y.push([]);for(r=0,a=u.length;r<a;r++)for(w=u[r],h=0,o=w.firstChild;o;){if(o.nodeName.toUpperCase()=="TD"||o.nodeName.toUpperCase()=="TH"){var T=[],b=Ae(o);if(Q=o.getAttribute("colspan")*1,d=o.getAttribute("rowspan")*1,Q=!Q||Q===0||Q===1?1:Q,d=!d||d===0||d===1?1:d,f=L(Y,r,h),z=Q===1,s){if(z){qa(e,f,Il(b.data()));var N=g[f],O=o.getAttribute("width")||null,gA=o.style.width.match(/width:\s*(\d+[pxem%]+)/);gA&&(O=gA[1]),N.sWidthOrig=N.sWidth||O,D?(N.sTitle!==null&&!N.autoTitle&&(E===!0&&r===0||E===!1&&r===u.length-1||E===r||E===null)&&(o.innerHTML=N.sTitle),!N.sTitle&&z&&(N.sTitle=mi(o.innerHTML),N.autoTitle=!0)):N.footer&&(o.innerHTML=N.footer),N.ariaTitle||(N.ariaTitle=b.attr("aria-label")||N.sTitle),N.className&&b.addClass(N.className)}Ae(".dt-column-title",o).length===0&&Ae(document.createElement(e.columnTitleTag)).addClass("dt-column-title").append(o.childNodes).appendTo(o),e.orderIndicators&&D&&b.filter(":not([data-dt-order=disable])").length!==0&&b.parent(":not([data-dt-order=disable])").length!==0&&Ae(".dt-column-order",o).length===0&&Ae(document.createElement(e.columnTitleTag)).addClass("dt-column-order").appendTo(o);var oA=D?"header":"footer";Ae("div.dt-column-"+oA,o).length===0&&Ae("<div>").addClass("dt-column-"+oA).append(o.childNodes).appendTo(o)}for(A=0;A<Q;A++){for(t=0;t<d;t++)Y[r+t][f+A]={cell:o,unique:z},Y[r+t].row=w;T.push(f+A)}o.setAttribute("data-dt-column",Hn(T).join(","))}o=o.nextSibling}return Y}function dw(e){var i=qr(e)=="ssp",s=e.iInitDisplayStart;s!==void 0&&s!==-1&&(e._iDisplayStart=i?s:s>=e.fnRecordsDisplay()?0:s,e.iInitDisplayStart=-1)}function Qo(e,i,s){var g,u=e.ajax,w=e.oInstance,o=function(a){var f=e.jqXHR?e.jqXHR.status:null;(a===null||typeof f=="number"&&f==204)&&(a={},Cs(e,a,[]));var h=a.error||a.sError;if(h&&ei(e,0,h),a.d&&typeof a.d=="string")try{a=JSON.parse(a.d)}catch{}e.json=a,Wt(e,null,"xhr",[e,a,e.jqXHR],!0),s(a)};if(Ae.isPlainObject(u)&&u.data){g=u.data;var r=typeof g=="function"?g(i,e):g;i=typeof g=="function"&&r?r:Ae.extend(!0,i,r),delete u.data}var t={url:typeof u=="string"?u:"",data:i,success:o,dataType:"json",cache:!1,type:e.sServerMethod,error:function(a,f){var h=Wt(e,null,"xhr",[e,null,e.jqXHR],!0);h.indexOf(!0)===-1&&(f=="parsererror"?ei(e,0,"Invalid JSON response",1):a.readyState===4&&ei(e,0,"Ajax error",7)),_r(e,!1)}};if(Ae.isPlainObject(u)&&Ae.extend(t,u),e.oAjaxData=i,Wt(e,null,"preXhr",[e,i,t],!0),t.submitAs==="json"&&typeof i=="object"&&(t.data=JSON.stringify(i),t.contentType||(t.contentType="application/json; charset=utf-8")),typeof u=="function")e.jqXHR=u.call(w,i,o,e);else if(u.url===""){var A={};Cs(e,A,[]),o(A)}else e.jqXHR=Ae.ajax(t);g&&(u.data=g)}function Mw(e){e.iDraw++,_r(e,!0),Qo(e,Dw(e),function(i){Iw(e,i)})}function Dw(e){var i=e.aoColumns,s=e.oFeatures,g=e.oPreviousSearch,u=e.aoPreSearchCols,w=function(o,r){return typeof i[o][r]=="function"?"function":i[o][r]};return{draw:e.iDraw,columns:i.map(function(o,r){return{data:w(r,"mData"),name:o.sName,searchable:o.bSearchable,orderable:o.bSortable,search:{value:u[r].search,regex:u[r].regex,fixed:Object.keys(o.searchFixed).map(function(t){return{name:t,term:typeof o.searchFixed[t]!="function"?o.searchFixed[t].toString():"function"}})}}}),order:Da(e).map(function(o){return{column:o.col,dir:o.dir,name:w(o.col,"sName")}}),start:e._iDisplayStart,length:s.bPaginate?e._iDisplayLength:-1,search:{value:g.search,regex:g.regex,fixed:Object.keys(e.searchFixed).map(function(o){return{name:o,term:typeof e.searchFixed[o]!="function"?e.searchFixed[o].toString():"function"}})}}}function Iw(e,i){var s=Cs(e,i),g=Ja(e,"draw",i),u=Ja(e,"recordsTotal",i),w=Ja(e,"recordsFiltered",i);if(g!==void 0){if(g*1<e.iDraw)return;e.iDraw=g*1}s||(s=[]),ho(e),e._iRecordsTotal=parseInt(u,10),e._iRecordsDisplay=parseInt(w,10);for(var o=0,r=s.length;o<r;o++)sn(e,s[o]);e.aiDisplay=e.aiDisplayMaster.slice(),da(e),Ln(e,!0),ca(e),_r(e,!1)}function Cs(e,i,s){var g="data";if(Ae.isPlainObject(e.ajax)&&e.ajax.dataSrc!==void 0){var u=e.ajax.dataSrc;typeof u=="string"||typeof u=="function"?g=u:u.data!==void 0&&(g=u.data)}if(!s)return g==="data"?i.aaData||i[g]:g!==""?Tn(g)(i):i;tn(g)(i,s)}function Ja(e,i,s){var g=Ae.isPlainObject(e.ajax)?e.ajax.dataSrc:null;if(g&&g[i])return Tn(g[i])(s);var u="";return i==="draw"?u="sEcho":i==="recordsTotal"?u="iTotalRecords":i==="recordsFiltered"&&(u="iTotalDisplayRecords"),s[u]!==void 0?s[u]:s[i]}function ds(e,i){var s=e.aoPreSearchCols;if(qr(e)!="ssp"){Yw(e),e.aiDisplay=e.aiDisplayMaster.slice(),Aa(e.aiDisplay,e,i.search,i),Ae.each(e.searchFixed,function(w,o){Aa(e.aiDisplay,e,o,{})});for(var g=0;g<s.length;g++){var u=s[g];Aa(e.aiDisplay,e,u.search,u,g),Ae.each(e.aoColumns[g].searchFixed,function(w,o){Aa(e.aiDisplay,e,o,{},g)})}pw(e)}e.bFiltered=!0,Wt(e,null,"search",[e])}function pw(e){for(var i=Be.ext.search,s=e.aiDisplay,g,u,w=0,o=i.length;w<o;w++){for(var r=[],t=0,A=s.length;t<A;t++)u=s[t],g=e.aoData[u],i[w](e,g._aFilterData,u,g._aData,t)&&r.push(u);s.length=0,pa(s,r)}}function Aa(e,i,s,g,u){if(s!==""){var w=0,o=[],r=typeof s=="function"?s:null,t=s instanceof RegExp?s:r?null:yw(s,g);for(w=0;w<e.length;w++){var A=i.aoData[e[w]],a=u===void 0?A._sFilterRow:A._aFilterData[u];(r&&r(a,A._aData,e[w],u)||t&&t.test(a))&&o.push(e[w])}for(e.length=o.length,w=0;w<o.length;w++)e[w]=o[w]}}function yw(e,i){var s=[],g=Ae.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},i);if(typeof e!="string"&&(e=e.toString()),e=Ba(e),g.exact)return new RegExp("^"+Ao(e)+"$",g.caseInsensitive?"i":"");if(e=g.regex?e:Ao(e),g.smart){var u=e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],w=u.map(function(t){var A=!1,a;return t.charAt(0)==="!"&&(A=!0,t=t.substring(1)),t.charAt(0)==='"'?(a=t.match(/^"(.*)"$/),t=a?a[1]:t):t.charAt(0)==="“"&&(a=t.match(/^\u201C(.*)\u201D$/),t=a?a[1]:t),A&&(t.length>1&&s.push("(?!"+t+")"),t=""),t.replace(/"/g,"")}),o=s.length?s.join(""):"",r=g.boundary?"\\b":"";e="^(?=.*?"+r+w.join(")(?=.*?"+r)+")("+o+".)*$"}return new RegExp(e,g.caseInsensitive?"i":"")}var Ao=Be.util.escapeRegex,sa=Ae("<div>")[0],Fw=sa.textContent!==void 0;function Yw(e){for(var i=e.aoColumns,s=e.aoData,g,u,w,o,r,t,A=!1,a=0;a<s.length;a++)if(s[a]&&(t=s[a],!t._aFilterData)){for(o=[],u=0,w=i.length;u<w;u++)g=i[u],g.bSearchable?(r=ri(e,a,u,"filter"),r===null&&(r=""),typeof r!="string"&&r.toString&&(r=r.toString())):r="",r.indexOf&&r.indexOf("&")!==-1&&(sa.innerHTML=r,r=Fw?sa.textContent:sa.innerText),r.replace&&(r=r.replace(/[\r\n\u2028]/g,"")),o.push(r);t._aFilterData=o,t._sFilterRow=o.join("  "),A=!0}return A}function aa(e){var i,s=e.oInit,g=e.deferLoading,u=qr(e);if(!e.bInitialised){setTimeout(function(){aa(e)},200);return}mB(e,"header"),mB(e,"footer"),Rw(e,s,function(){ga(e,e.aoHeader),ga(e,e.aoFooter);var w=e.iInitDisplayStart;if(s.aaData)for(i=0;i<s.aaData.length;i++)sn(e,s.aaData[i]);else(g||u=="dom")&&fo(e,Ae(e.nTBody).children("tr"));e.aiDisplay=e.aiDisplayMaster.slice(),Qw(e),Uw(e),Cl(e),_r(e,!0),Wt(e,null,"preInit",[e],!0),Gn(e),(u!="ssp"||g)&&(u=="ajax"?Qo(e,{},function(o){var r=Cs(e,o);for(i=0;i<r.length;i++)sn(e,r[i]);e.iInitDisplayStart=w,Gn(e),_r(e,!1),ca(e)}):(ca(e),_r(e,!1)))})}function ca(e){if(e._bInitComplete)return;var i=[e,e.json];let s=Ae(e.tfoot);s.children().length===0&&s.remove(),e._bInitComplete=!0,Qa(e),Wt(e,null,"plugin-init",i,!0),Wt(e,"aoInitComplete","init",i,!0)}function fl(e,i){var s=parseInt(i,10);e._iDisplayLength=s,Do(e),Wt(e,null,"length",[e,s])}function Co(e,i,s){var g=e._iDisplayStart,u=e._iDisplayLength,w=e.fnRecordsDisplay();if(w===0||u===-1)g=0;else if(typeof i=="number")g=i*u,g>w&&(g=0);else if(i=="first")g=0;else if(i=="previous")g=u>=0?g-u:0,g<0&&(g=0);else if(i=="next")g+u<w&&(g+=u);else if(i=="last")g=Math.floor((w-1)/u)*u;else{if(i==="ellipsis")return;ei(e,0,"Unknown paging action: "+i,5)}var o=e._iDisplayStart!==g;return e._iDisplayStart=g,Wt(e,null,o?"page":"page-nc",[e]),o&&s&&Ln(e),o}function vw(e){var i=e.nTable,s=e.oScroll.sX!==""||e.oScroll.sY!=="";if(e.oFeatures.bProcessing){var g=Ae("<div/>",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>");s?g.prependTo(Ae("div.dt-scroll",e.nTableWrapper)):g.insertBefore(i),Ae(i).on("processing.dt.DT",function(u,w,o){g.css("display",o?"block":"none")})}}function _r(e,i){e.bDrawing&&i===!1||Wt(e,null,"processing",[e,i])}function hl(e,i,s){i?(_r(e,!0),setTimeout(function(){s(),_r(e,!1)},0)):s()}function ul(e){var i=Ae(e.nTable),s=e.oScroll;if(s.sX===""&&s.sY==="")return e.nTable;var g=s.sX,u=s.sY,w=e.oClasses.scrolling,o=e.captionNode,r=o?o._captionSide:null,t=Ae(i[0].cloneNode(!1)),A=Ae(i[0].cloneNode(!1)),a=i.children("tfoot"),f="<div/>",h=function(z){return z?ki(z):null};a.length||(a=null);var Q=Ae(f,{class:w.container}).append(Ae(f,{class:w.header.self}).css({overflow:"hidden",position:"relative",border:0,width:g?h(g):"100%"}).append(Ae(f,{class:w.header.inner}).css({"box-sizing":"content-box",width:s.sXInner||"100%"}).append(t.removeAttr("id").css("margin-left",0).append(r==="top"?o:null).append(i.children("thead"))))).append(Ae(f,{class:w.body}).css({position:"relative",overflow:"auto",width:h(g)}).append(i));a&&Q.append(Ae(f,{class:w.footer.self}).css({overflow:"hidden",border:0,width:g?h(g):"100%"}).append(Ae(f,{class:w.footer.inner}).append(A.removeAttr("id").css("margin-left",0).append(r==="bottom"?o:null).append(i.children("tfoot")))));var d=Q.children(),E=d[0],D=d[1],Y=a?d[2]:null;return Ae(D).on("scroll.DT",function(){var z=this.scrollLeft;E.scrollLeft=z,a&&(Y.scrollLeft=z)}),Ae("th, td",E).on("focus",function(){var z=E.scrollLeft;D.scrollLeft=z,a&&(D.scrollLeft=z)}),Ae(D).css("max-height",u),s.bCollapse||Ae(D).css("height",u),e.nScrollHead=E,e.nScrollBody=D,e.nScrollFoot=Y,e.aoDrawCallback.push(Ql),Q[0]}function Ql(e){var i=e.oScroll,s=i.iBarWidth,g=Ae(e.nScrollHead),u=g.children("div"),w=u.children("table"),o=e.nScrollBody,r=Ae(o),t=Ae(e.nScrollFoot),A=t.children("div"),a=A.children("table"),f=Ae(e.nTHead),h=Ae(e.nTable),Q=e.nTFoot&&Ae("th, td",e.nTFoot).length?Ae(e.nTFoot):null,d=e.oBrowser,E,D,Y=o.scrollHeight>o.clientHeight;if(e.scrollBarVis!==Y&&e.scrollBarVis!==void 0){e.scrollBarVis=Y,Qa(e);return}else e.scrollBarVis=Y;if(h.children("thead, tfoot").remove(),E=f.clone().prependTo(h),E.find("th, td").removeAttr("tabindex"),E.find("[id]").removeAttr("id"),Q&&(D=Q.clone().prependTo(h),D.find("[id]").removeAttr("id")),e.aiDisplay.length){var z=null,L=qr(e)!=="ssp"?e._iDisplayStart:0;for(O=L;O<L+e.aiDisplay.length;O++){var T=e.aiDisplay[O],b=e.aoData[T].nTr;if(b){z=b;break}}if(z)for(var N=Ae(z).children("th, td").map(function(X){return{idx:co(e,X),width:Ae(this).outerWidth()}}),O=0;O<N.length;O++){var gA=e.aoColumns[N[O].idx].colEl[0],oA=gA.style.width.replace("px","");oA!==N[O].width&&(gA.style.width=N[O].width+"px",i.sX&&(gA.style.minWidth=N[O].width+"px"))}}w.find("colgroup").remove(),w.append(e.colgroup.clone()),Q&&(a.find("colgroup").remove(),a.append(e.colgroup.clone())),Ae("th, td",E).each(function(){Ae(this.childNodes).wrapAll('<div class="dt-scroll-sizing" />')}),Q&&Ae("th, td",D).each(function(){Ae(this.childNodes).wrapAll('<div class="dt-scroll-sizing" />')});var q=Math.floor(h.height())>o.clientHeight||r.css("overflow-y")=="scroll",Z="padding"+(d.bScrollbarLeft?"Left":"Right"),x=h.outerWidth();w.css("width",ki(x)),u.css("width",ki(x)).css(Z,q?s+"px":"0px"),Q&&(a.css("width",ki(x)),A.css("width",ki(x)).css(Z,q?s+"px":"0px")),h.children("colgroup").prependTo(h),h.find("thead, tfoot").find("[tabindex]").removeAttr("tabindex"),h.find("thead, tfoot").find("role").removeAttr("role"),r.trigger("scroll"),(e.bSorted||e.bFiltered)&&!e._drawHold&&(o.scrollTop=0)}function mw(e){if(e.oFeatures.bAutoWidth){var i=e.nTable,s=e.aoColumns,g=e.oScroll,u=g.sY,w=g.sX,o=g.sXInner,r=Eo(e,"bVisible"),t=i.getAttribute("width"),A=i.parentNode,a,f,h,Q,d=i.style.width,E=zB(e);if(E===e.containerWidth)return!1;e.containerWidth=E,!d&&!t&&(i.style.width="100%",d="100%"),d&&d.indexOf("%")!==-1&&(t=d),Wt(e,null,"column-calc",{visible:r},!1);var D=Ae(i.cloneNode()).css("visibility","hidden").css("margin",0).removeAttr("id");D.append("<tbody/>"),D.append(Ae(e.nTHead).clone()).append(Ae(e.nTFoot).clone()),D.find("tfoot th, tfoot td").css("width",""),D.find("thead th, thead td").each(function(){var v=Bl(e,this,!0);v?(this.style.width=v,w&&(this.style.minWidth=v,Ae(this).append(Ae("<div/>").css({width:v,margin:0,padding:0,border:0,height:1})))):this.style.width=""});var Y=[];for(a=0;a<r.length;a++)Y.push(bw(e,r[a]));if(Y.length)for(a=0;a<Y[0].length;a++){var z=Ae("<tr/>").appendTo(D.find("tbody"));for(f=0;f<r.length;f++){Q=r[f],h=s[Q];var L=Y[f][a]||"",T=Mr.type.className[h.sType],b=h.sContentPadding||(w?"-":""),N=L+b,O=L.indexOf("<")===-1&&L.indexOf("&")===-1?document.createTextNode(N):N;Ae("<td/>").addClass(T).addClass(h.sClass).append(O).appendTo(z)}}Ae("[name]",D).removeAttr("name");var gA=Ae("<div/>").css(w||u?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(D).appendTo(A);w&&o?D.width(o):w?(D.css("width","auto"),D.removeAttr("width"),D.outerWidth()<A.clientWidth&&t&&D.outerWidth(A.clientWidth)):u?D.outerWidth(A.clientWidth):t&&D.outerWidth(t);var oA=0,q=D.find("tbody tr").eq(0).children();for(a=0;a<r.length;a++){var Z=q[a].getBoundingClientRect().width;oA+=Z,s[r[a]].sWidth=ki(Z)}if(i.style.width=ki(oA),gA.remove(),t&&(i.style.width=ki(t)),(t||w)&&!e._reszEvt){var x=Be.util.throttle(function(){var v=zB(e);!e.bDestroying&&v!==0&&Qa(e)});if(window.ResizeObserver){var X=Ae(e.nTableWrapper).is(":visible"),B=Ae("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(e.nTableWrapper);e.resizeObserver=new ResizeObserver(function(v){X?X=!1:x()}),e.resizeObserver.observe(B[0])}else Ae(window).on("resize.DT-"+e.sInstance,x);e._reszEvt=!0}}}function zB(e){return Ae(e.nTableWrapper).is(":visible")?Ae(e.nTableWrapper).width():0}function bw(e,i){var s=e.aoColumns[i];if(!s.wideStrings){for(var g=[],u=[],w=0,o=e.aiDisplayMaster.length;w<o;w++){var r=e.aiDisplayMaster[w],t=uo(e,r)[i],A=t&&typeof t=="object"&&t.nodeType?t.innerHTML:t+"";A=A.replace(/id=".*?"/g,"").replace(/name=".*?"/g,""),A=A.replace(/<script[\s\S]*?<\/script>/gi," ").replace(/<dialog[\s\S]*?<\/dialog>/gi," ").replace(/<template[\s\S]*?<\/template>/gi," ");var a=mi(A," ").replace(/&nbsp;/g," ");u.push({str:A,len:a.length}),g.push(a)}u.sort(function(h,Q){return Q.len-h.len}).splice(3),s.wideStrings=u.map(function(h){return h.str});let f=g.join(" ").split(" ");f.sort(function(h,Q){return Q.length-h.length}),f.length&&s.wideStrings.push(f[0]),f.length>1&&s.wideStrings.push(f[1]),f.length>2&&s.wideStrings.push(f[3])}return s.wideStrings}function ki(e){return e===null?"0px":typeof e=="number"?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Cl(e){var i=e.aoColumns;for(e.colgroup.empty(),Cr=0;Cr<i.length;Cr++)i[Cr].bVisible&&e.colgroup.append(i[Cr].colEl)}function Uw(e){var i=e.nTHead,s=i.querySelectorAll("tr"),g=e.titleRow,u=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';g===!0?i=s[0]:g===!1?i=s[s.length-1]:g!==null&&(i=s[g]),e.orderHandler&&dl(e,i,i===e.nTHead?"tr"+u+" th"+u+", tr"+u+" td"+u:"th"+u+", td"+u);var w=[];rn(e,w,e.aaSorting),e.aaSorting=w}function dl(e,i,s,g,u){Dl(i,s,function(w){var o=!1,r=g===void 0?wo(w.target):typeof g=="function"?g():Array.isArray(g)?g:[g];if(r.length){for(var t=0,A=r.length;t<A;t++){var a=zw(e,r[t],t,w.shiftKey);if(a!==!1&&(o=!0),e.aaSorting.length===1&&e.aaSorting[0][1]==="")break}o&&hl(e,!0,function(){Mo(e),Ml(e,e.aiDisplay),Gn(e,!1,!1),u&&u()})}})}function Ml(e,i){if(!(i.length<2)){var s=e.aiDisplayMaster,g={},u={},w;for(w=0;w<s.length;w++)g[s[w]]=w;for(w=0;w<i.length;w++)u[i[w]]=g[i[w]];i.sort(function(o,r){return u[o]-u[r]})}}function rn(e,i,s){var g=function(w){if(Ae.isPlainObject(w)){if(w.idx!==void 0)i.push([w.idx,w.dir]);else if(w.name){var o=Ur(e.aoColumns,"sName"),r=o.indexOf(w.name);r!==-1&&i.push([r,w.dir])}}else i.push(w)};if(Ae.isPlainObject(s))g(s);else if(s.length&&typeof s[0]=="number")g(s);else if(s.length)for(var u=0;u<s.length;u++)g(s[u])}function Da(e){var i,s,g,u=[],w=Be.ext.type.order,o=e.aoColumns,r,t,A,a,f=e.aaSortingFixed,h=Ae.isPlainObject(f),Q=[];if(!e.oFeatures.bSort)return u;for(Array.isArray(f)&&rn(e,Q,f),h&&f.pre&&rn(e,Q,f.pre),rn(e,Q,e.aaSorting),h&&f.post&&rn(e,Q,f.post),i=0;i<Q.length;i++)if(a=Q[i][0],o[a])for(r=o[a].aDataSort,s=0,g=r.length;s<g;s++)t=r[s],A=o[t].sType||"string",Q[i]._idx===void 0&&(Q[i]._idx=o[t].asSorting.indexOf(Q[i][1])),Q[i][1]&&u.push({src:a,col:t,dir:Q[i][1],index:Q[i]._idx,type:A,formatter:w[A+"-pre"],sorter:w[A+"-"+Q[i][1]]});return u}function Mo(e,i,s){var g,u,w=[],o=Be.ext.type.order,r=e.aoData,t,A=e.aiDisplayMaster,a;if(da(e),i!==void 0){var f=e.aoColumns[i];a=[{src:i,col:i,dir:s,index:0,type:f.sType,formatter:o[f.sType+"-pre"],sorter:o[f.sType+"-"+s]}],A=A.slice()}else a=Da(e);for(g=0,u=a.length;g<u;g++)t=a[g],Pw(e,t.col);if(qr(e)!="ssp"&&a.length!==0){for(g=0,u=A.length;g<u;g++)w[g]=g;a.length&&a[0].dir==="desc"&&e.orderDescReverse&&w.reverse(),A.sort(function(h,Q){var d,E,D,Y,z,L=a.length,T=r[h]._aSortData,b=r[Q]._aSortData;for(D=0;D<L;D++)if(z=a[D],d=T[z.col],E=b[z.col],z.sorter){if(Y=z.sorter(d,E),Y!==0)return Y}else if(Y=d<E?-1:d>E?1:0,Y!==0)return z.dir==="asc"?Y:-Y;return d=w[h],E=w[Q],d<E?-1:d>E?1:0})}else a.length===0&&A.sort(function(h,Q){return h<Q?-1:h>Q?1:0});return i===void 0&&(e.bSorted=!0,e.sortDetails=a,Wt(e,null,"order",[e,a])),A}function zw(e,i,s,g){var u=e.aoColumns[i],w=e.aaSorting,o=u.asSorting,r,t=function(a,f){var h=a._idx;return h===void 0&&(h=o.indexOf(a[1])),h+1<o.length?h+1:f?null:0};if(!u.bSortable)return!1;if(typeof w[0]=="number"&&(w=e.aaSorting=[w]),(g||s)&&e.oFeatures.bSortMulti){var A=Ur(w,"0").indexOf(i);A!==-1?(r=t(w[A],!0),r===null&&w.length===1&&(r=0),r===null||o[r]===""?w.splice(A,1):(w[A][1]=o[r],w[A]._idx=r)):g?(w.push([i,o[0],0]),w[w.length-1]._idx=0):(w.push([i,w[0][1],0]),w[w.length-1]._idx=0)}else w.length&&w[0][0]==i?(r=t(w[0]),w.length=1,w[0][1]=o[r],w[0]._idx=r):(w.length=0,w.push([i,o[0]]),w[0]._idx=0)}function eo(e){var i=e.aLastSort,s=e.oClasses.order.position,g=Da(e),u=e.oFeatures,w,o,r;if(u.bSort&&u.bSortClasses){for(w=0,o=i.length;w<o;w++)r=i[w].src,Ae(Ur(e.aoData,"anCells",r)).removeClass(s+(w<2?w+1:3));for(w=0,o=g.length;w<o;w++)r=g[w].src,Ae(Ur(e.aoData,"anCells",r)).addClass(s+(w<2?w+1:3))}e.aLastSort=g}function Pw(e,i){var s=e.aoColumns[i],g=Be.ext.order[s.sSortDataType],u;g&&(u=g.call(e.oInstance,e,i,Is(e,i)));for(var w,o,r=Be.ext.type.order[s.sType+"-pre"],t=e.aoData,A=0;A<t.length;A++)t[A]&&(w=t[A],w._aSortData||(w._aSortData=[]),(!w._aSortData[i]||g)&&(o=g?u[A]:ri(e,A,i,"sort"),w._aSortData[i]=r?r(o,e):o))}function Ia(e){if(!e._bLoadingState){var i=[];rn(e,i,e.aaSorting);var s=e.aoColumns,g={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:i.map(function(u){return s[u[0]]&&s[u[0]].sName?[s[u[0]].sName,u[1]]:u.slice()}),search:Ae.extend({},e.oPreviousSearch),columns:e.aoColumns.map(function(u,w){return{name:u.sName,visible:u.bVisible,search:Ae.extend({},e.aoPreSearchCols[w])}})};e.oSavedState=g,Wt(e,"aoStateSaveParams","stateSaveParams",[e,g]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,g)}}function Rw(e,i,s){if(!e.oFeatures.bStateSave){s();return}var g=function(w){to(e,w,s)},u=e.fnStateLoadCallback.call(e.oInstance,e,g);return u!==void 0&&to(e,u,s),!0}function to(e,i,s){var g,u,w=e.aoColumns,o=Ur(e.aoColumns,"sName");e._bLoadingState=!0;var r=e._bInitComplete?new Be.Api(e):null;if(!i||!i.time){e._bLoadingState=!1,s();return}var t=e.iStateDuration;if(t>0&&i.time<+new Date-t*1e3){e._bLoadingState=!1,s();return}var A=Wt(e,"aoStateLoadParams","stateLoadParams",[e,i]);if(A.indexOf(!1)!==-1){e._bLoadingState=!1,s();return}if(e.oLoadedState=Ae.extend(!0,{},i),Wt(e,null,"stateLoadInit",[e,i],!0),i.length!==void 0&&(r?r.page.len(i.length):e._iDisplayLength=i.length),i.start!==void 0&&(r===null?(e._iDisplayStart=i.start,e.iInitDisplayStart=i.start):Co(e,i.start/e._iDisplayLength)),i.order!==void 0&&(e.aaSorting=[],Ae.each(i.order,function(d,E){var D=[E[0],E[1]];if(typeof E[0]=="string"){var Y=o.indexOf(E[0]);if(Y<0)return;D[0]=Y}else if(D[0]>=w.length)return;e.aaSorting.push(D)})),i.search!==void 0&&Ae.extend(e.oPreviousSearch,i.search),i.columns){var a=i.columns,f=Ur(i.columns,"name");if(f.join("").length&&f.join("")!==o.join(""))for(a=[],g=0;g<o.length;g++)if(o[g]!=""){var h=f.indexOf(o[g]);h>=0?a.push(i.columns[h]):a.push({})}else a.push({});if(a.length===w.length){for(g=0,u=a.length;g<u;g++){var Q=a[g];Q.visible!==void 0&&(r?r.column(g).visible(Q.visible,!1):w[g].bVisible=Q.visible),Q.search!==void 0&&Ae.extend(e.aoPreSearchCols[g],Q.search)}r&&r.one("draw",function(){r.columns.adjust()})}}e._bLoadingState=!1,Wt(e,"aoStateLoaded","stateLoaded",[e,i]),s()}function ei(e,i,s,g){s="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+s,g&&(s+=". For more information about this error, please see https://datatables.net/tn/"+g);{var u=Be.ext,w=u.sErrMode||u.errMode;if(e&&Wt(e,null,"dt-error",[e,g,s],!0),w=="alert")alert(s);else{if(w=="throw")throw new Error(s);typeof w=="function"&&w(e,g,s)}}}function ji(e,i,s,g){if(Array.isArray(s)){Ae.each(s,function(u,w){Array.isArray(w)?ji(e,i,w[0],w[1]):ji(e,i,w)});return}g===void 0&&(g=s),i[s]!==void 0&&(e[g]=i[s])}function PB(e,i,s){var g;for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(g=i[u],Ae.isPlainObject(g)?(Ae.isPlainObject(e[u])||(e[u]={}),Ae.extend(!0,e[u],g)):s&&u!=="data"&&u!=="aaData"&&Array.isArray(g)?e[u]=g.slice():e[u]=g);return e}function Dl(e,i,s){Ae(e).on("click.DT",i,function(g){s(g)}).on("keypress.DT",i,function(g){g.which===13&&(g.preventDefault(),s(g))}).on("selectstart.DT",i,function(){return!1})}function Ai(e,i,s){s&&e[i].push(s)}function Wt(e,i,s,g,u){var w=[];if(i&&(w=e[i].slice().reverse().map(function(t){return t.apply(e.oInstance,g)})),s!==null){var o=Ae.Event(s+".dt"),r=Ae(e.nTable);o.dt=e.api,r[u?"trigger":"triggerHandler"](o,g),u&&r.parents("body").length===0&&Ae("body").trigger(o,g),w.push(o.result)}return w}function Do(e){var i=e._iDisplayStart,s=e.fnDisplayEnd(),g=e._iDisplayLength;i>=s&&(i=s-g),i-=i%g,(g===-1||i<0)&&(i=0),e._iDisplayStart=i}function Ea(e,i){var s=e.renderer,g=Be.ext.renderer[i];return Ae.isPlainObject(s)&&s[i]?g[s[i]]||g._:typeof s=="string"&&g[s]||g._}function qr(e){return e.oFeatures.bServerSide?"ssp":e.ajax?"ajax":"dom"}function Io(e,i,s){var g=e.fnFormatNumber,u=e._iDisplayStart+1,w=e._iDisplayLength,o=e.fnRecordsDisplay(),r=e.fnRecordsTotal(),t=w===-1;return i.replace(/_START_/g,g.call(e,u)).replace(/_END_/g,g.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,g.call(e,r)).replace(/_TOTAL_/g,g.call(e,o)).replace(/_PAGE_/g,g.call(e,t?1:Math.ceil(u/w))).replace(/_PAGES_/g,g.call(e,t?1:Math.ceil(o/w))).replace(/_ENTRIES_/g,e.api.i18n("entries","",s)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",r)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",o))}function pa(e,i){if(i)if(i.length<1e4)e.push.apply(e,i);else for(Cr=0;Cr<i.length;Cr++)e.push(i[Cr])}function RB(e,i,s){for(Array.isArray(s)||(s=[s]),Cr=0;Cr<s.length;Cr++)e.on(i+".dt",s[Cr])}function Il(e){return Be.ext.escape.attributes&&Ae.each(e,function(i,s){e[i]=nn(s)}),e}var po=[],Tr=Array.prototype,Nw=function(e){var i,s,g=Be.settings,u=Ur(g,"nTable");if(e){if(e.nTable&&e.oFeatures)return[e];if(e.nodeName&&e.nodeName.toLowerCase()==="table")return i=u.indexOf(e),i!==-1?[g[i]]:null;if(e&&typeof e.settings=="function")return e.settings().toArray();typeof e=="string"?s=Ae(e).get():e instanceof Ae&&(s=e.get())}else return[];if(s)return g.filter(function(w,o){return s.includes(u[o])})};St=function(e,i){if(!(this instanceof St))return new St(e,i);var s,g=[],u=function(w){var o=Nw(w);o&&g.push.apply(g,o)};if(Array.isArray(e))for(s=0;s<e.length;s++)u(e[s]);else u(e);this.context=g.length>1?Hn(g):g,pa(this,i),this.selector={rows:null,cols:null,opts:null},St.extend(this,this,po)};Be.Api=St;Ae.extend(St.prototype,{any:function(){return this.count()!==0},context:[],count:function(){return this.flatten().length},each:function(e){for(var i=0,s=this.length;i<s;i++)e.call(this,this[i],i,this);return this},eq:function(e){var i=this.context;return i.length>e?new St(i[e],this[e]):null},filter:function(e){var i=Tr.filter.call(this,e,this);return new St(this.context,i)},flatten:function(){var e=[];return new St(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:Tr.join,includes:function(e){return this.indexOf(e)!==-1},indexOf:Tr.indexOf,iterator:function(e,i,s,g){var u=[],w,o,r,t,A,a=this.context,f,h,Q,d=this.selector;for(typeof e=="string"&&(g=s,s=i,i=e,e=!1),o=0,r=a.length;o<r;o++){var E=new St(a[o]);if(i==="table")w=s.call(E,a[o],o),w!==void 0&&u.push(w);else if(i==="columns"||i==="rows")w=s.call(E,a[o],this[o],o),w!==void 0&&u.push(w);else if(i==="every"||i==="column"||i==="column-rows"||i==="row"||i==="cell")for(h=this[o],i==="column-rows"&&(f=ya(a[o],d.opts)),t=0,A=h.length;t<A;t++)Q=h[t],i==="cell"?w=s.call(E,a[o],Q.row,Q.column,o,t):w=s.call(E,a[o],Q,o,t,f),w!==void 0&&u.push(w)}if(u.length||g){var D=new St(a,e?u.concat.apply([],u):u),Y=D.selector;return Y.rows=d.rows,Y.cols=d.cols,Y.opts=d.opts,D}return this},lastIndexOf:Tr.lastIndexOf,length:0,map:function(e){var i=Tr.map.call(this,e,this);return new St(this.context,i)},pluck:function(e){var i=Be.util.get(e);return this.map(function(s){return i(s)})},pop:Tr.pop,push:Tr.push,reduce:Tr.reduce,reduceRight:Tr.reduceRight,reverse:Tr.reverse,selector:null,shift:Tr.shift,slice:function(){return new St(this.context,this)},sort:Tr.sort,splice:Tr.splice,toArray:function(){return Tr.slice.call(this)},to$:function(){return Ae(this)},toJQuery:function(){return Ae(this)},unique:function(){return new St(this.context,Hn(this.toArray()))},unshift:Tr.unshift});function Sw(e,i,s){return function(){var g=i.apply(e||this,arguments);return St.extend(g,g,s.methodExt),g}}function Tw(e,i){for(var s=0,g=e.length;s<g;s++)if(e[s].name===i)return e[s];return null}window.__apiStruct=po;St.extend=function(e,i,s){if(!(!s.length||!i||!(i instanceof St)&&!i.__dt_wrapper)){var g,u,w;for(g=0,u=s.length;g<u;g++)w=s[g],w.name!=="__proto__"&&(i[w.name]=w.type==="function"?Sw(e,w.val,w):w.type==="object"?{}:w.val,i[w.name].__dt_wrapper=!0,St.extend(e,i[w.name],w.propExt))}};St.register=Bt=function(e,i){if(Array.isArray(e)){for(var s=0,g=e.length;s<g;s++)St.register(e[s],i);return}var u,w,o=e.split("."),r=po,t,A;for(u=0,w=o.length;u<w;u++){A=o[u].indexOf("()")!==-1,t=A?o[u].replace("()",""):o[u];var a=Tw(r,t);a||(a={name:t,val:{},methodExt:[],propExt:[],type:"object"},r.push(a)),u===w-1?(a.val=i,a.type=typeof i=="function"?"function":Ae.isPlainObject(i)?"object":"other"):r=A?a.methodExt:a.propExt}};St.registerPlural=Zt=function(e,i,s){St.register(e,s),St.register(i,function(){var g=s.apply(this,arguments);return g===this?this:g instanceof St?g.length?Array.isArray(g[0])?new St(g.context,g[0]):g[0]:void 0:g})};var pl=function(e,i){if(Array.isArray(e)){var s=[];return e.forEach(function(u){var w=pl(u,i);pa(s,w)}),s.filter(function(u){return u})}if(typeof e=="number")return[i[e]];var g=i.map(function(u){return u.nTable});return Ae(g).filter(e).map(function(){var u=g.indexOf(this);return i[u]}).toArray()};Bt("tables()",function(e){return e!=null?new St(pl(e,this.context)):this});Bt("table()",function(e){var i=this.tables(e),s=i.context;return s.length?new St(s[0]):i});[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach(function(e){Zt("tables()."+e[0]+"()","table()."+e[1]+"()",function(){return this.iterator("table",function(i){return i[e[2]]},1)})});[["header","aoHeader"],["footer","aoFooter"]].forEach(function(e){Bt("table()."+e[0]+".structure()",function(i){var s=this.columns(i).indexes().flatten().toArray(),g=this.context[0],u=El(g,g[e[1]],s),w=s.slice().sort(function(o,r){return o-r});return u.map(function(o){return s.map(function(r){return o[w.indexOf(r)]})})})});Zt("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)});Bt("tables().every()",function(e){var i=this;return this.iterator("table",function(s,g){e.call(i.table(g),g)})});Bt("caption()",function(e,i){var s=this.context;if(e===void 0){var g=s[0].captionNode;return g&&s.length?g.innerHTML:null}return this.iterator("table",function(u){var w=Ae(u.nTable),o=Ae(u.captionNode),r=Ae(u.nTableWrapper);if(o.length||(o=Ae("<caption/>").html(e),u.captionNode=o[0],i||(w.prepend(o),i=o.css("caption-side"))),o.html(e),i&&(o.css("caption-side",i),o[0]._captionSide=i),r.find("div.dataTables_scroll").length){var t=i==="top"?"Head":"Foot";r.find("div.dataTables_scroll"+t+" table").prepend(o)}else w.prepend(o)},1)});Bt("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null});Bt("draw()",function(e){return this.iterator("table",function(i){e==="page"?Ln(i):(typeof e=="string"&&(e=e!=="full-hold"),Gn(i,e===!1))})});Bt("page()",function(e){return e===void 0?this.page.info().page:this.iterator("table",function(i){Co(i,e)})});Bt("page.info()",function(){if(this.context.length!==0){var e=this.context[0],i=e._iDisplayStart,s=e.oFeatures.bPaginate?e._iDisplayLength:-1,g=e.fnRecordsDisplay(),u=s===-1;return{page:u?0:Math.floor(i/s),pages:u?1:Math.ceil(g/s),start:i,end:e.fnDisplayEnd(),length:s,recordsTotal:e.fnRecordsTotal(),recordsDisplay:g,serverSide:qr(e)==="ssp"}}});Bt("page.len()",function(e){return e===void 0?this.context.length!==0?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(i){fl(i,e)})});var yl=function(e,i,s){if(s){var g=new St(e);g.one("draw",function(){s(g.ajax.json())})}if(qr(e)=="ssp")Gn(e,i);else{_r(e,!0);var u=e.jqXHR;u&&u.readyState!==4&&u.abort(),Qo(e,{},function(w){ho(e);for(var o=Cs(e,w),r=0,t=o.length;r<t;r++)sn(e,o[r]);Gn(e,i),ca(e),_r(e,!1)})}};Bt("ajax.json()",function(){var e=this.context;if(e.length>0)return e[0].json});Bt("ajax.params()",function(){var e=this.context;if(e.length>0)return e[0].oAjaxData});Bt("ajax.reload()",function(e,i){return this.iterator("table",function(s){yl(s,i===!1,e)})});Bt("ajax.url()",function(e){var i=this.context;return e===void 0?i.length===0?void 0:(i=i[0],Ae.isPlainObject(i.ajax)?i.ajax.url:i.ajax):this.iterator("table",function(s){Ae.isPlainObject(s.ajax)?s.ajax.url=e:s.ajax=e})});Bt("ajax.url().load()",function(e,i){return this.iterator("table",function(s){yl(s,i===!1,e)})});var yo=function(e,i,s,g,u){var w=[],o,r,t,A=typeof i;for((!i||A==="string"||A==="function"||i.length===void 0)&&(i=[i]),r=0,t=i.length;r<t;r++)o=s(typeof i[r]=="string"?i[r].trim():i[r]),o=o.filter(function(f){return f!=null}),o&&o.length&&(w=w.concat(o));var a=Mr.selector[e];if(a.length)for(r=0,t=a.length;r<t;r++)w=a[r](g,u,w);return Hn(w)},Fo=function(e){return e||(e={}),e.filter&&e.search===void 0&&(e.search=e.filter),Ae.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},e)},Yo=function(e){var i=new St(e.context[0]);return e.length&&i.push(e[0]),i.selector=e.selector,i.length&&i[0].length>1&&i[0].splice(1),i},ya=function(e,i){var s,g,u,w=[],o=e.aiDisplay,r=e.aiDisplayMaster,t=i.search,A=i.order,a=i.page;if(qr(e)=="ssp")return t==="removed"?[]:xi(0,r.length);if(a=="current")for(s=e._iDisplayStart,g=e.fnDisplayEnd();s<g;s++)w.push(o[s]);else if(A=="current"||A=="applied"){if(t=="none")w=r.slice();else if(t=="applied")w=o.slice();else if(t=="removed"){var f={};for(s=0,g=o.length;s<g;s++)f[o[s]]=null;r.forEach(function(Q){Object.prototype.hasOwnProperty.call(f,Q)||w.push(Q)})}}else if(A=="index"||A=="original")for(s=0,g=e.aoData.length;s<g;s++)e.aoData[s]&&(t=="none"?w.push(s):(u=o.indexOf(s),(u===-1&&t=="removed"||u>=0&&t=="applied")&&w.push(s)));else if(typeof A=="number"){var h=Mo(e,A,"asc");if(t==="none")w=h;else for(s=0;s<h.length;s++)u=o.indexOf(h[s]),(u===-1&&t=="removed"||u>=0&&t=="applied")&&w.push(h[s])}return w},Gw=function(e,i,s){var g,u=function(o){var r=rl(o),t=e.aoData;if(r!==null&&!s)return[r];if(g||(g=ya(e,s)),r!==null&&g.indexOf(r)!==-1)return[r];if(o==null||o==="")return g;if(typeof o=="function")return g.map(function(d){var E=t[d];return o(d,E._aData,E.nTr)?d:null});if(o.nodeName){var A=o._DT_RowIndex,a=o._DT_CellIndex;if(A!==void 0)return t[A]&&t[A].nTr===o?[A]:[];if(a)return t[a.row]&&t[a.row].nTr===o.parentNode?[a.row]:[];var f=Ae(o).closest("*[data-dt-row]");return f.length?[f.data("dt-row")]:[]}if(typeof o=="string"&&o.charAt(0)==="#"){var h=e.aIds[o.replace(/^#/,"")];if(h!==void 0)return[h.idx]}var Q=nl(Ds(e.aoData,g,"nTr"));return Ae(Q).filter(o).map(function(){return this._DT_RowIndex}).toArray()},w=yo("row",i,u,e,s);return(s.order==="current"||s.order==="applied")&&Ml(e,w),w};Bt("rows()",function(e,i){e===void 0?e="":Ae.isPlainObject(e)&&(i=e,e=""),i=Fo(i);var s=this.iterator("table",function(g){return Gw(g,e,i)},1);return s.selector.rows=e,s.selector.opts=i,s});Bt("rows().nodes()",function(){return this.iterator("row",function(e,i){return e.aoData[i].nTr||void 0},1)});Bt("rows().data()",function(){return this.iterator(!0,"rows",function(e,i){return Ds(e.aoData,i,"_aData")},1)});Zt("rows().cache()","row().cache()",function(e){return this.iterator("row",function(i,s){var g=i.aoData[s];return e==="search"?g._aFilterData:g._aSortData},1)});Zt("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(i,s){Ma(i,s,e)})});Zt("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,i){return i},1)});Zt("rows().ids()","row().id()",function(e){for(var i=[],s=this.context,g=0,u=s.length;g<u;g++)for(var w=0,o=this[g].length;w<o;w++){var r=s[g].rowIdFn(s[g].aoData[this[g][w]]._aData);i.push((e===!0?"#":"")+r)}return new St(s,i)});Zt("rows().remove()","row().remove()",function(){return this.iterator("row",function(e,i){var s=e.aoData,g=s[i],u=e.aiDisplayMaster.indexOf(i);u!==-1&&e.aiDisplayMaster.splice(u,1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,Do(e);var w=e.rowIdFn(g._aData);w!==void 0&&delete e.aIds[w],s[i]=null}),this});Bt("rows.add()",function(e){var i=this.iterator("table",function(g){var u,w,o,r=[];for(w=0,o=e.length;w<o;w++)u=e[w],u.nodeName&&u.nodeName.toUpperCase()==="TR"?r.push(fo(g,u)[0]):r.push(sn(g,u));return r},1),s=this.rows(-1);return s.pop(),pa(s,i),s});Bt("row()",function(e,i){return Yo(this.rows(e,i))});Bt("row().data()",function(e){var i=this.context;if(e===void 0)return i.length&&this.length&&this[0].length?i[0].aoData[this[0]]._aData:void 0;var s=i[0].aoData[this[0]];return s._aData=e,Array.isArray(e)&&s.nTr&&s.nTr.id&&tn(i[0].rowId)(e,s.nTr.id),Ma(i[0],this[0],"data"),this});Bt("row().node()",function(){var e=this.context;if(e.length&&this.length&&this[0].length){var i=e[0].aoData[this[0]];if(i&&i.nTr)return i.nTr}return null});Bt("row.add()",function(e){e instanceof Ae&&e.length&&(e=e[0]);var i=this.iterator("table",function(s){return e.nodeName&&e.nodeName.toUpperCase()==="TR"?fo(s,e)[0]:sn(s,e)});return this.row(i[0])});Ae(document).on("plugin-init.dt",function(e,i){var s=new St(i);s.on("stateSaveParams.DT",function(g,u,w){for(var o=u.rowIdFn,r=u.aiDisplayMaster,t=[],A=0;A<r.length;A++){var a=r[A],f=u.aoData[a];f._detailsShow&&t.push("#"+o(f._aData))}w.childRows=t}),s.on("stateLoaded.DT",function(g,u,w){NB(s,w)}),NB(s,s.state.loaded())});var NB=function(e,i){i&&i.childRows&&e.rows(i.childRows.map(function(s){return s.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")})).every(function(){Wt(e.settings()[0],null,"requestChild",[this])})},xw=function(e,i,s,g){var u=[],w=function(o,r){if(Array.isArray(o)||o instanceof Ae){for(var t=0,A=o.length;t<A;t++)w(o[t],r);return}if(o.nodeName&&o.nodeName.toLowerCase()==="tr")o.setAttribute("data-dt-row",i.idx),u.push(o);else{var a=Ae("<tr><td></td></tr>").attr("data-dt-row",i.idx).addClass(r);Ae("td",a).addClass(r).html(o)[0].colSpan=Ca(e),u.push(a[0])}};w(s,g),i._details&&i._details.detach(),i._details=Ae(u),i._detailsShow&&i._details.insertAfter(i.nTr)},Fl=Be.util.throttle(function(e){Ia(e[0])},500),vo=function(e,i){var s=e.context;if(s.length){var g=s[0].aoData[i!==void 0?i:e[0]];g&&g._details&&(g._details.detach(),g._detailsShow=void 0,g._details=void 0,Ae(g.nTr).removeClass("dt-hasChild"),Fl(s))}},Yl=function(e,i){var s=e.context;if(s.length&&e.length){var g=s[0].aoData[e[0]];g._details&&(g._detailsShow=i,i?(g._details.insertAfter(g.nTr),Ae(g.nTr).addClass("dt-hasChild")):(g._details.detach(),Ae(g.nTr).removeClass("dt-hasChild")),Wt(s[0],null,"childRow",[i,e.row(e[0])]),Hw(s[0]),Fl(s))}},Hw=function(e){var i=new St(e),s=".dt.DT_details",g="draw"+s,u="column-sizing"+s,w="destroy"+s,o=e.aoData;i.off(g+" "+u+" "+w),Ur(o,"_details").length>0&&(i.on(g,function(r,t){e===t&&i.rows({page:"current"}).eq(0).each(function(A){var a=o[A];a._detailsShow&&a._details.insertAfter(a.nTr)})}),i.on(u,function(r,t){if(e===t)for(var A,a=Ca(t),f=0,h=o.length;f<h;f++)A=o[f],A&&A._details&&A._details.each(function(){var Q=Ae(this).children("td");Q.length==1&&Q.attr("colspan",a)})}),i.on(w,function(r,t){if(e===t)for(var A=0,a=o.length;A<a;A++)o[A]&&o[A]._details&&vo(i,A)}))},Lw="",ps=Lw+"row().child",Fa=ps+"()";Bt(Fa,function(e,i){var s=this.context;return e===void 0?s.length&&this.length&&s[0].aoData[this[0]]?s[0].aoData[this[0]]._details:void 0:(e===!0?this.child.show():e===!1?vo(this):s.length&&this.length&&xw(s[0],s[0].aoData[this[0]],e,i),this)});Bt([ps+".show()",Fa+".show()"],function(){return Yl(this,!0),this});Bt([ps+".hide()",Fa+".hide()"],function(){return Yl(this,!1),this});Bt([ps+".remove()",Fa+".remove()"],function(){return vo(this),this});Bt(ps+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]&&e[0].aoData[this[0]]._detailsShow||!1});var kw=/^([^:]+)?:(name|title|visIdx|visible)$/,mo=function(e,i,s,g,u,w){for(var o=[],r=0,t=u.length;r<t;r++)o.push(ri(e,u[r],i,w));return o},vl=function(e,i,s){var g=e.aoHeader,u=e.titleRow,w=null;if(s!==void 0)w=s;else if(u===!0)w=0;else if(u===!1)w=g.length-1;else if(u!==null)w=u;else{for(var o=0;o<g.length;o++)g[o][i].unique&&Ae(".dt-column-title",g[o][i].cell).text()&&(w=o);w===null&&(w=0)}return g[w][i].cell},jw=function(e){for(var i=[],s=0;s<e.length;s++)for(var g=0;g<e[s].length;g++){var u=e[s][g].cell;i.includes(u)||i.push(u)}return i},Jw=function(e,i,s){var g=e.aoColumns,u,w,o=jw(e.aoHeader),r=function(A){var a=rl(A);if(A==="")return xi(g.length);if(a!==null)return[a>=0?a:g.length+a];if(typeof A=="function"){var f=ya(e,s);return g.map(function(Y,z){return A(z,mo(e,z,0,0,f),vl(e,z))?z:null})}var h=typeof A=="string"?A.match(kw):"";if(h)switch(h[2]){case"visIdx":case"visible":if(h[1]&&h[1].match(/^\d+$/)){var Q=parseInt(h[1],10);if(Q<0){var d=g.map(function(Y,z){return Y.bVisible?z:null});return[d[d.length+Q]]}return[co(e,Q)]}return g.map(function(Y,z){return!Y.bVisible||Y.responsiveVisible===!1?null:h[1]?Ae(o[z]).filter(h[1]).length>0?z:null:z});case"name":return u||(u=Ur(g,"sName")),u.map(function(Y,z){return Y===h[1]?z:null});case"title":return w||(w=Ur(g,"sTitle")),w.map(function(Y,z){return Y===h[1]?z:null});default:return[]}if(A.nodeName&&A._DT_CellIndex)return[A._DT_CellIndex.column];var E=Ae(o).filter(A).map(function(){return wo(this)}).toArray().sort(function(Y,z){return Y-z});if(E.length||!A.nodeName)return E;var D=Ae(A).closest("*[data-dt-column]");return D.length?[D.data("dt-column")]:[]},t=yo("column",i,r,e,s);return s.columnOrder&&s.columnOrder==="index"?t.sort(function(A,a){return A-a}):t},Ow=function(e,i,s){var g=e.aoColumns,u=g[i],w=e.aoData,o,r,t,A;if(s===void 0)return u.bVisible;if(u.bVisible===s)return!1;if(s){var a=Ur(g,"bVisible").indexOf(!0,i+1);for(r=0,t=w.length;r<t;r++)w[r]&&(A=w[r].nTr,o=w[r].anCells,A&&A.insertBefore(o[i],o[a]||null))}else Ae(Ur(e.aoData,"anCells",i)).detach();return u.bVisible=s,Cl(e),!0};Bt("columns()",function(e,i){e===void 0?e="":Ae.isPlainObject(e)&&(i=e,e=""),i=Fo(i);var s=this.iterator("table",function(g){return Jw(g,e,i)},1);return s.selector.cols=e,s.selector.opts=i,s});Zt("columns().header()","column().header()",function(e){return this.iterator("column",function(i,s){return vl(i,s,e)},1)});Zt("columns().footer()","column().footer()",function(e){return this.iterator("column",function(i,s){var g=i.aoFooter;return g.length?i.aoFooter[e!==void 0?e:0][s].cell:null},1)});Zt("columns().data()","column().data()",function(){return this.iterator("column-rows",mo,1)});Zt("columns().render()","column().render()",function(e){return this.iterator("column-rows",function(i,s,g,u,w){return mo(i,s,g,u,w,e)},1)});Zt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,i){return e.aoColumns[i].mData},1)});Zt("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(i,s,g,u,w){return Ds(i.aoData,w,e==="search"?"_aFilterData":"_aSortData",s)},1)});Zt("columns().init()","column().init()",function(){return this.iterator("column",function(e,i){return e.aoColumns[i]},1)});Zt("columns().names()","column().name()",function(){return this.iterator("column",function(e,i){return e.aoColumns[i].sName},1)});Zt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,i,s,g,u){return Ds(e.aoData,u,"anCells",i)},1)});Zt("columns().titles()","column().title()",function(e,i){return this.iterator("column",function(s,g){typeof e=="number"&&(i=e,e=void 0);var u=Ae(".dt-column-title",this.column(g).header(i));return e!==void 0?(u.html(e),this):u.html()},1)});Zt("columns().types()","column().type()",function(){return this.iterator("column",function(e,i){var s=e.aoColumns[i],g=s.sType;return g||(da(e),g=s.sType),g},1)});Zt("columns().visible()","column().visible()",function(e,i){var s=this,g=[],u=this.iterator("column",function(w,o){if(e===void 0)return w.aoColumns[o].bVisible;Ow(w,o,e)&&g.push(o)});return e!==void 0&&this.iterator("table",function(w){ga(w,w.aoHeader),ga(w,w.aoFooter),w.aiDisplay.length||Ae(w.nTBody).find("td[colspan]").attr("colspan",Ca(w)),Ia(w),s.iterator("column",function(o,r){g.includes(r)&&Wt(o,null,"column-visibility",[o,r,e,i])}),g.length&&(i===void 0||i)&&s.columns.adjust()}),u});Zt("columns().widths()","column().width()",function(){var e=this.columns(":visible").count(),i=Ae("<tr>").html("<td>"+Array(e).join("</td><td>")+"</td>");Ae(this.table().body()).append(i);var s=i.children().map(function(){return Ae(this).outerWidth()});return i.remove(),this.iterator("column",function(g,u){var w=Is(g,u);return w!==null?s[w]:0},1)});Zt("columns().indexes()","column().index()",function(e){return this.iterator("column",function(i,s){return e==="visible"?Is(i,s):s},1)});Bt("columns.adjust()",function(){return this.iterator("table",function(e){e.containerWidth=-1,Qa(e)},1)});Bt("column.index()",function(e,i){if(this.context.length!==0){var s=this.context[0];if(e==="fromVisible"||e==="toData")return co(s,i);if(e==="fromData"||e==="toVisible")return Is(s,i)}});Bt("column()",function(e,i){return Yo(this.columns(e,i))});var Ww=function(e,i,s){var g=e.aoData,u=ya(e,s),w=nl(Ds(g,u,"anCells")),o=Ae(sl([],w)),r,t=e.aoColumns.length,A,a,f,h,Q,d,E=function(D){var Y=typeof D=="function";if(D==null||Y){for(A=[],a=0,f=u.length;a<f;a++)for(r=u[a],h=0;h<t;h++)Q={row:r,column:h},Y?(d=g[r],D(Q,ri(e,r,h),d.anCells?d.anCells[h]:null)&&A.push(Q)):A.push(Q);return A}if(Ae.isPlainObject(D))return D.column!==void 0&&D.row!==void 0&&u.indexOf(D.row)!==-1?[D]:[];var z=o.filter(D).map(function(L,T){return{row:T._DT_CellIndex.row,column:T._DT_CellIndex.column}}).toArray();return z.length||!D.nodeName?z:(d=Ae(D).closest("*[data-dt-row]"),d.length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[])};return yo("cell",i,E,e,s)};Bt("cells()",function(e,i,s){if(Ae.isPlainObject(e)&&(e.row===void 0?(s=e,e=null):(s=i,i=null)),Ae.isPlainObject(i)&&(s=i,i=null),i==null)return this.iterator("table",function(h){return Ww(h,e,Fo(s))});var g=s?{page:s.page,order:s.order,search:s.search}:{},u=this.columns(i,g),w=this.rows(e,g),o,r,t,A,a=this.iterator("table",function(h,Q){var d=[];for(o=0,r=w[Q].length;o<r;o++)for(t=0,A=u[Q].length;t<A;t++)d.push({row:w[Q][o],column:u[Q][t]});return d},1),f=s&&s.selected?this.cells(a,s):a;return Ae.extend(f.selector,{cols:i,rows:e,opts:s}),f});Zt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,i,s){var g=e.aoData[i];return g&&g.anCells?g.anCells[s]:void 0},1)});Bt("cells().data()",function(){return this.iterator("cell",function(e,i,s){return ri(e,i,s)},1)});Zt("cells().cache()","cell().cache()",function(e){return e=e==="search"?"_aFilterData":"_aSortData",this.iterator("cell",function(i,s,g){return i.aoData[s][e][g]},1)});Zt("cells().render()","cell().render()",function(e){return this.iterator("cell",function(i,s,g){return ri(i,s,g,e)},1)});Zt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,i,s){return{row:i,column:s,columnVisible:Is(e,s)}},1)});Zt("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(i,s,g){Ma(i,s,e,g)})});Bt("cell()",function(e,i,s){return Yo(this.cells(e,i,s))});Bt("cell().data()",function(e){var i=this.context,s=this[0];return e===void 0?i.length&&s.length?ri(i[0],s[0].row,s[0].column):void 0:(fw(i[0],s[0].row,s[0].column,e),Ma(i[0],s[0].row,"data",s[0].column),this)});Bt("order()",function(e,i){var s=this.context,g=Array.prototype.slice.call(arguments);return e===void 0?s.length!==0?s[0].aaSorting:void 0:(typeof e=="number"?e=[[e,i]]:g.length>1&&(e=g),this.iterator("table",function(u){var w=[];rn(u,w,e),u.aaSorting=w}))});Bt("order.listener()",function(e,i,s){return this.iterator("table",function(g){dl(g,e,{},i,s)})});Bt("order.fixed()",function(e){if(!e){var i=this.context,s=i.length?i[0].aaSortingFixed:void 0;return Array.isArray(s)?{pre:s}:s}return this.iterator("table",function(g){g.aaSortingFixed=Ae.extend(!0,{},e)})});Bt(["columns().order()","column().order()"],function(e){var i=this;return e?this.iterator("table",function(s,g){s.aaSorting=i[g].map(function(u){return[u,e]})}):this.iterator("column",function(s,g){for(var u=Da(s),w=0,o=u.length;w<o;w++)if(u[w].col===g)return u[w].dir;return null},1)});Zt("columns().orderable()","column().orderable()",function(e){return this.iterator("column",function(i,s){var g=i.aoColumns[s];return e?g.asSorting:g.bSortable},1)});Bt("processing()",function(e){return this.iterator("table",function(i){_r(i,e)})});Bt("search()",function(e,i,s,g){var u=this.context;return e===void 0?u.length!==0?u[0].oPreviousSearch.search:void 0:this.iterator("table",function(w){w.oFeatures.bFilter&&(typeof i=="object"?ds(w,Ae.extend(w.oPreviousSearch,i,{search:e})):ds(w,Ae.extend(w.oPreviousSearch,{search:e,regex:i===null?!1:i,smart:s===null?!0:s,caseInsensitive:g===null?!0:g})))})});Bt("search.fixed()",function(e,i){var s=this.iterator(!0,"table",function(g){var u=g.searchFixed;if(e){if(i===void 0)return u[e];i===null?delete u[e]:u[e]=i}else return Object.keys(u);return this});return e!==void 0&&i===void 0?s[0]:s});Zt("columns().search()","column().search()",function(e,i,s,g){return this.iterator("column",function(u,w){var o=u.aoPreSearchCols;if(e===void 0)return o[w].search;u.oFeatures.bFilter&&(typeof i=="object"?Ae.extend(o[w],i,{search:e}):Ae.extend(o[w],{search:e,regex:i===null?!1:i,smart:s===null?!0:s,caseInsensitive:g===null?!0:g}),ds(u,u.oPreviousSearch))})});Bt(["columns().search.fixed()","column().search.fixed()"],function(e,i){var s=this.iterator(!0,"column",function(g,u){var w=g.aoColumns[u].searchFixed;if(e){if(i===void 0)return w[e]||null;i===null?delete w[e]:w[e]=i}else return Object.keys(w);return this});return e!==void 0&&i===void 0?s[0]:s});Bt("state()",function(e,i){if(!e)return this.context.length?this.context[0].oSavedState:null;var s=Ae.extend(!0,{},e);return this.iterator("table",function(g){i!==!1&&(s.time=+new Date+100),to(g,s,function(){})})});Bt("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})});Bt("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});Bt("state.save()",function(){return this.iterator("table",function(e){Ia(e)})});var SB,TB;Be.use=function(e,i){var s=typeof e=="string"?i:e,g=typeof i=="string"?i:e;if(s===void 0&&typeof g=="string")switch(g){case"lib":case"jq":return Ae;case"win":return window;case"datetime":return Be.DateTime;case"luxon":return Ji;case"moment":return an;case"bootstrap":return SB||window.bootstrap;case"foundation":return TB||window.Foundation;default:return null}g==="lib"||g==="jq"||s&&s.fn&&s.fn.jquery?Ae=s:g==="win"||s&&s.document?(window=s,document=s.document):g==="datetime"||s&&s.type==="DateTime"?Be.DateTime=s:g==="luxon"||s&&s.FixedOffsetZone?Ji=s:g==="moment"||s&&s.isMoment?an=s:g==="bootstrap"||s&&s.Modal&&s.Modal.NAME==="modal"?SB=s:(g==="foundation"||s&&s.Reveal)&&(TB=s)};Be.factory=function(e,i){var s=!1;return e&&e.document&&(window=e,document=e.document),i&&i.fn&&i.fn.jquery&&(Ae=i,s=!0),s};Be.versionCheck=function(e,i){for(var s=i?i.split("."):Be.version.split("."),g=e.split("."),u,w,o=0,r=g.length;o<r;o++)if(u=parseInt(s[o],10)||0,w=parseInt(g[o],10)||0,u!==w)return u>w;return!0};Be.isDataTable=function(e){var i=Ae(e).get(0),s=!1;return e instanceof Be.Api?!0:(Ae.each(Be.settings,function(g,u){var w=u.nScrollHead?Ae("table",u.nScrollHead)[0]:null,o=u.nScrollFoot?Ae("table",u.nScrollFoot)[0]:null;(u.nTable===i||w===i||o===i)&&(s=!0)}),s)};Be.tables=function(e){var i=!1;Ae.isPlainObject(e)&&(i=e.api,e=e.visible);var s=Be.settings.filter(function(g){return!!(!e||e&&Ae(g.nTable).is(":visible"))}).map(function(g){return g.nTable});return i?new St(s):s};Be.camelToHungarian=Li;Bt("$()",function(e,i){var s=this.rows(i).nodes(),g=Ae(s);return Ae([].concat(g.filter(e).toArray(),g.find(e).toArray()))});Ae.each(["on","one","off"],function(e,i){Bt(i+"()",function(){var s=Array.prototype.slice.call(arguments);s[0]=s[0].split(/\s/).map(function(u){return u.match(/\.dt\b/)?u:u+".dt"}).join(" ");var g=Ae(this.tables().nodes());return g[i].apply(g,s),this})});Bt("clear()",function(){return this.iterator("table",function(e){ho(e)})});Bt("error()",function(e){return this.iterator("table",function(i){ei(i,0,e)})});Bt("settings()",function(){return new St(this.context,this.context)});Bt("init()",function(){var e=this.context;return e.length?e[0].oInit:null});Bt("data()",function(){return this.iterator("table",function(e){return Ur(e.aoData,"_aData")}).flatten()});Bt("trigger()",function(e,i,s){return this.iterator("table",function(g){return Wt(g,null,e,i,s)}).flatten()});Bt("ready()",function(e){var i=this.context;return e?this.tables().every(function(){var s=this;this.context[0]._bInitComplete?e.call(s):this.on("init.dt.DT",function(){e.call(s)})}):i.length?i[0]._bInitComplete||!1:null});Bt("destroy()",function(e){return e=e||!1,this.iterator("table",function(i){var s=i.oClasses,g=i.nTable,u=i.nTBody,w=i.nTHead,o=i.nTFoot,r=Ae(g),t=Ae(u),A=Ae(i.nTableWrapper),a=i.aoData.map(function(D){return D?D.nTr:null}),f=s.order;i.bDestroying=!0,Wt(i,"aoDestroyCallback","destroy",[i],!0),e||new St(i).columns().visible(!0),i.resizeObserver&&i.resizeObserver.disconnect(),A.off(".DT").find(":not(tbody *)").off(".DT"),Ae(window).off(".DT-"+i.sInstance),g!=w.parentNode&&(r.children("thead").detach(),r.append(w)),o&&g!=o.parentNode&&(r.children("tfoot").detach(),r.append(o)),GB(w,"header"),GB(o,"footer"),i.colgroup.remove(),i.aaSorting=[],i.aaSortingFixed=[],eo(i),Ae(r).find("th, td").removeClass(Ae.map(Be.ext.type.className,function(D){return D}).join(" ")),Ae("th, td",w).removeClass(f.none+" "+f.canAsc+" "+f.canDesc+" "+f.isAsc+" "+f.isDesc).css("width","").removeAttr("aria-sort"),t.children().detach(),t.append(a);var h=i.nTableWrapper.parentNode,Q=i.nTableWrapper.nextSibling,d=e?"remove":"detach";r[d](),A[d](),!e&&h&&(h.insertBefore(g,Q),r.css("width",i.sDestroyWidth).removeClass(s.table));var E=Be.settings.indexOf(i);E!==-1&&Be.settings.splice(E,1)})});Ae.each(["column","row","cell"],function(e,i){Bt(i+"s().every()",function(s){var g=this.selector.opts,u=this,w,o=0;return this.iterator("every",function(r,t,A){w=u[i](t,g),i==="cell"?s.call(w,w[0][0].row,w[0][0].column,A,o):s.call(w,t,A,o),o++})})});Bt("i18n()",function(e,i,s){var g=this.context[0],u=Tn(e)(g.oLanguage);return u===void 0&&(u=i),Ae.isPlainObject(u)&&(u=s!==void 0&&u[s]!==void 0?u[s]:s===!1?u:u._),typeof u=="string"?u.replace("%d",s):u});function GB(e,i){Ae(e).find(".dt-column-order").remove(),Ae(e).find(".dt-column-title").each(function(){var s=Ae(this).html();Ae(this).parent().parent().append(s),Ae(this).remove()}),Ae(e).find("div.dt-column-"+i).remove(),Ae("th, td",e).removeAttr("data-dt-column")}Be.version="2.3.8";Be.settings=[];Be.models={};Be.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1};Be.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null};Be.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,wideStrings:null,searchFixed:null};Be.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(e){try{return JSON.parse((e.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch{return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,i){try{(e.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(i))}catch{}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"«",sLast:"»",sNext:"›",sPrevious:"‹"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:Ae.extend({},Be.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null,columnTitleTag:"span"};ua(Be.defaults);Be.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};ua(Be.defaults.column);Be.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return qr(this)=="ssp"?this._iRecordsTotal*1:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return qr(this)=="ssp"?this._iRecordsDisplay*1:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,i=this._iDisplayStart,s=i+e,g=this.aiDisplay.length,u=this.oFeatures,w=u.bPaginate;return u.bServerSide?w===!1||e===-1?i+g:Math.min(i+e,this._iRecordsDisplay):!w||s>g||e===-1?g:s},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null,columnTitleTag:"span"};var Kw=Be.ext.pager;Ae.extend(Kw,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:zl,numbers_length:7});Ae.extend(!0,Be.ext.renderer,{pagingButton:{_:function(e,i,s,g,u){var w=e.oClasses.paging,o=[w.button],r;return g&&o.push(w.active),u&&o.push(w.disabled),i==="ellipsis"?r=Ae('<span class="ellipsis"></span>').html(s)[0]:r=Ae("<button>",{class:o.join(" "),role:"link",type:"button"}).html(s),{display:r,clicker:r}}},pagingContainer:{_:function(e,i){return i}}});var kn=function(e,i){return function(s){return Zr(s)||typeof s!="string"||(s=s.replace(sw," "),e&&(s=mi(s)),s=Ba(s,!1)),s}};function xB(e,i,s,g,u){return an?e[i](u):Ji?e[s](u):g?e[g](u):e}var HB=!1,Ji,an,Vw=/[T\s]\d{2}.*?(Z|[+-]\d{2}(?::?\d{2})?)$/;function Xw(){window.luxon&&!Ji&&(Ji=window.luxon),window.moment&&!an&&(an=window.moment)}function wa(e,i,s){var g;if(Xw(),an){if(g=an(e,i,s,!0),!g.isValid())return null}else if(Ji){if(g=i&&typeof e=="string"?Ji.DateTime.fromFormat(e,i):Ji.DateTime.fromISO(e),!g.isValid)return null;g=g.setLocale(s)}else i?(HB||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),HB=!0):g=new Date(e);return g}function Oa(e){return function(i,s,g,u){arguments.length===0?(g="en",s=null,i=null):arguments.length===1?(g="en",s=i,i=null):arguments.length===2&&(g=s,s=i,i=null);var w="datetime"+(s?"-"+s:"");return Be.ext.type.order[w+"-pre"]||Be.type(w,{detect:function(o){return o===w?w:!1},order:{pre:function(o){return o.valueOf()}},className:"dt-right"}),function(o,r){if(o==null)if(u==="--now"){var t=new Date;o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}else o="";if(r==="type")return w;if(o==="")return r!=="sort"?"":wa("0000-01-01 00:00:00",null,g);if(s!==null&&i===s&&r!=="sort"&&r!=="type"&&!(o instanceof Date))return o;let A={},a=typeof o=="string"?o.match(Vw):null;a&&(A.timeZone=a[1]==="Z"?"UTC":a[1]);var f=wa(o,i,g);if(f===null)return o;if(r==="sort")return f;var h=s===null?xB(f,"toDate","toJSDate","")[e](navigator.language,A):xB(f,"format","toFormat","toISOString",s);return r==="display"?nn(h):h}}}var ml=",",bl=".";if(window.Intl!==void 0)try{for(var fs=new Intl.NumberFormat().formatToParts(100000.1),Cr=0;Cr<fs.length;Cr++)fs[Cr].type==="group"?ml=fs[Cr].value:fs[Cr].type==="decimal"&&(bl=fs[Cr].value)}catch{}Be.datetime=function(e,i){var s="datetime-"+e;i||(i="en"),Be.ext.type.order[s]||Be.type(s,{detect:function(g){var u=wa(g,e,i);return g===""||u?s:!1},order:{pre:function(g){return wa(g,e,i)||0}},className:"dt-right"})};Be.render={date:Oa("toLocaleDateString"),datetime:Oa("toLocaleString"),time:Oa("toLocaleTimeString"),number:function(e,i,s,g,u){return e==null&&(e=ml),i==null&&(i=bl),{display:function(w){if(typeof w!="number"&&typeof w!="string"||w===""||w===null)return w;var o=w<0?"-":"",r=parseFloat(w),t=Math.abs(r);if(t>=1e11||t<1e-4&&t!==0){var A=r.toExponential(s).split(/e\+?/);return A[0]+" x 10<sup>"+A[1]+"</sup>"}if(isNaN(r))return nn(w);r=r.toFixed(s),w=Math.abs(r);var a=parseInt(w,10),f=s?i+(w-a).toFixed(s).substring(2):"";return a===0&&parseFloat(f)===0&&(o=""),o+(g||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+f+(u||"")}}},text:function(){return{display:nn,filter:nn}}};var Gr=Be.ext.type;Be.type=function(e,i,s){if(!i)return{className:Gr.className[e],detect:Gr.detect.find(function(o){return o._name===e}),order:{pre:Gr.order[e+"-pre"],asc:Gr.order[e+"-asc"],desc:Gr.order[e+"-desc"]},render:Gr.render[e],search:Gr.search[e]};var g=function(o,r){Gr[o][e]=r},u=function(o){Object.defineProperty(o,"_name",{value:e});var r=Gr.detect.findIndex(function(t){return t._name===e});r===-1?Gr.detect.unshift(o):Gr.detect.splice(r,1,o)},w=function(o){Gr.order[e+"-pre"]=o.pre,Gr.order[e+"-asc"]=o.asc,Gr.order[e+"-desc"]=o.desc};s===void 0&&(s=i,i=null),i==="className"?g("className",s):i==="detect"?u(s):i==="order"?w(s):i==="render"?g("render",s):i==="search"?g("search",s):i||(s.className&&g("className",s.className),s.detect!==void 0&&u(s.detect),s.order&&w(s.order),s.render!==void 0&&g("render",s.render),s.search!==void 0&&g("search",s.search))};Be.types=function(){return Gr.detect.map(function(e){return e._name})};var ro=function(e,i){return e=e!=null?e.toString().toLowerCase():"",i=i!=null?i.toString().toLowerCase():"",e.localeCompare(i,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},LB=function(e,i){return e=mi(e),i=mi(i),ro(e,i)};Be.type("string",{detect:function(){return"string"},order:{pre:function(e){return Zr(e)&&typeof e!="boolean"?"":typeof e=="string"?e.toLowerCase():e.toString?e.toString():""}},search:kn(!1)});Be.type("string-utf8",{detect:{allOf:function(e){return!0},oneOf:function(e){return!Zr(e)&&navigator.languages&&typeof e=="string"&&e.match(/[^\x00-\x7F]/)}},order:{asc:ro,desc:function(e,i){return ro(e,i)*-1}},search:kn(!1)});Be.type("html",{detect:{allOf:function(e){return Zr(e)||typeof e=="string"&&e.indexOf("<")!==-1},oneOf:function(e){return!Zr(e)&&typeof e=="string"&&e.indexOf("<")!==-1}},order:{pre:function(e){return Zr(e)?"":e.replace?mi(e).trim().toLowerCase():e+""}},search:kn(!0)});Be.type("html-utf8",{detect:{allOf:function(e){return Zr(e)||typeof e=="string"&&e.indexOf("<")!==-1},oneOf:function(e){return navigator.languages&&!Zr(e)&&typeof e=="string"&&e.indexOf("<")!==-1&&typeof e=="string"&&e.match(/[^\x00-\x7F]/)}},order:{asc:LB,desc:function(e,i){return LB(e,i)*-1}},search:kn(!0)});Be.type("date",{className:"dt-type-date",detect:{allOf:function(e){if(e&&!(e instanceof Date)&&!pB.test(e))return null;var i=Date.parse(e);return i!==null&&!isNaN(i)||Zr(e)},oneOf:function(e){return e instanceof Date||typeof e=="string"&&pB.test(e)}},order:{pre:function(e){var i=Date.parse(e);return isNaN(i)?-1/0:i}}});Be.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,i){var s=i.oLanguage.sDecimal;return oa(e,s,!0,!1)},oneOf:function(e,i){var s=i.oLanguage.sDecimal;return oa(e,s,!0,!1)}},order:{pre:function(e,i){var s=i.oLanguage.sDecimal;return Ya(e,s,lo,go)}},search:kn(!0)});Be.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(e,i){var s=i.oLanguage.sDecimal;return oa(e,s,!1,!0)},oneOf:function(e,i){var s=i.oLanguage.sDecimal;return oa(e,s,!1,!1)}},order:{pre:function(e,i){var s=i.oLanguage.sDecimal;return Ya(e,s,lo)}},search:kn(!0)});Be.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,i){var s=i.oLanguage.sDecimal;return Qs(e,s,!0,!0)},oneOf:function(e,i){var s=i.oLanguage.sDecimal;return Qs(e,s,!0,!1)}},order:{pre:function(e,i){var s=i.oLanguage.sDecimal;return Ya(e,s,go)}}});Be.type("num",{className:"dt-type-numeric",detect:{allOf:function(e,i){var s=i.oLanguage.sDecimal;return Qs(e,s,!1,!0)},oneOf:function(e,i){var s=i.oLanguage.sDecimal;return Qs(e,s,!1,!1)}},order:{pre:function(e,i){var s=i.oLanguage.sDecimal;return Ya(e,s)}}});var Ya=function(e,i,s,g){if(e!==0&&(!e||e==="-"))return-1/0;var u=typeof e;return u==="number"||u==="bigint"?e:(i&&(e=il(e,i)),e.replace&&(s&&(e=e.replace(s,"")),g&&(e=e.replace(g,""))),e*1)};Ae.extend(!0,Be.ext.renderer,{footer:{_:function(e,i,s){i.addClass(s.tfoot.cell)}},header:{_:function(e,i,s){i.addClass(s.thead.cell),e.oFeatures.bSort||i.addClass(s.order.none);var g=e.titleRow,u=i.closest("thead").find("tr"),w=i.parent().index();i.attr("data-dt-order")==="disable"||i.parent().attr("data-dt-order")==="disable"||g===!0&&w!==0||g===!1&&w!==u.length-1||typeof g=="number"&&w!==g||Ae(e.nTable).on("order.dt.DT column-visibility.dt.DT",function(o,r,t){if(e===r){var A=r.sortDetails;if(A){var a=Ur(A,"col");if(!(o.type==="column-visibility"&&!a.includes(t))){var f,h=s.order,Q=r.api.columns(i),d=e.aoColumns[Q.flatten()[0]],E=Q.orderable().includes(!0),D="",Y=Q.indexes(),z=Q.orderable(!0).flatten(),L=e.iTabIndex,T=r.orderHandler&&E;i.removeClass(h.isAsc+" "+h.isDesc).toggleClass(h.none,!E).toggleClass(h.canAsc,T&&z.includes("asc")).toggleClass(h.canDesc,T&&z.includes("desc"));var b=!0;for(f=0;f<Y.length;f++)a.includes(Y[f])||(b=!1);if(b){var N=Q.order();i.addClass(N.includes("asc")?h.isAsc:""+N.includes("desc")?h.isDesc:"")}var O=-1;for(f=0;f<a.length;f++)if(e.aoColumns[a[f]].bVisible){O=a[f];break}if(Y[0]==O){var gA=A[0],oA=d.asSorting;i.attr("aria-sort",gA.dir==="asc"?"ascending":"descending"),D=oA[gA.index+1]?"Reverse":"Remove"}else i.removeAttr("aria-sort");if(E){var q=i.find(".dt-column-order");q.attr("role","button").attr("aria-label",E?d.ariaTitle+r.api.i18n("oAria.orderable"+D):d.ariaTitle),L!==-1&&q.attr("tabindex",L)}}}}})}},layout:{_:function(e,i,s){var g=e.oClasses.layout,u=Ae("<div/>").attr("id",s.id||null).addClass(s.className||g.row).appendTo(i);Be.ext.renderer.layout._forLayoutRow(s,function(w,o){if(!(w==="id"||w==="className")){var r="";o.table&&(u.addClass(g.tableRow),r+=g.tableCell+" "),w==="start"?r+=g.start:w==="end"?r+=g.end:r+=g.full,Ae("<div/>").attr({id:o.id||null,class:o.className?o.className:g.cell+" "+r}).append(o.contents).appendTo(u)}})},_forLayoutRow:function(e,i){var s=function(g){switch(g){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}};Object.keys(e).sort(function(g,u){return s(g)-s(u)}).forEach(function(g){i(g,e[g])})}}});Be.feature={};Be.feature.register=function(e,i,s){Be.ext.features[e]=i,s&&Mr.feature.push({cFeature:s,fnInit:i})};function ea(e,i,s){s&&(e[i]=s)}Be.feature.register("div",function(e,i){var s=Ae("<div>")[0];return i&&(ea(s,"className",i.className),ea(s,"id",i.id),ea(s,"innerHTML",i.html),ea(s,"textContent",i.text)),s});Be.feature.register("info",function(e,i){if(!e.oFeatures.bInfo)return null;var s=e.oLanguage,g=e.sTableId,u=Ae("<div/>",{class:e.oClasses.info.container});return i=Ae.extend({callback:s.fnInfoCallback,empty:s.sInfoEmpty,postfix:s.sInfoPostFix,search:s.sInfoFiltered,text:s.sInfo},i),e.aoDrawCallback.push(function(w){Zw(w,i,u)}),e._infoEl||(u.attr({"aria-live":"polite",id:g+"_info",role:"status"}),Ae(e.nTable).attr("aria-describedby",g+"_info"),e._infoEl=u),u},"i");function Zw(e,i,s){var g=e._iDisplayStart+1,u=e.fnDisplayEnd(),w=e.fnRecordsTotal(),o=e.fnRecordsDisplay(),r=o?i.text:i.empty;o!==w&&(r+=" "+i.search),r+=i.postfix,r=Io(e,r),i.callback&&(r=i.callback.call(e.oInstance,e,g,u,w,o,r)),s.html(r),Wt(e,null,"info",[e,s[0],r])}var Wa=0;Be.feature.register("search",function(e,i){if(!e.oFeatures.bFilter)return null;var s=e.oClasses.search,g=e.sTableId,u=e.oLanguage,w=e.oPreviousSearch,o='<input type="search" class="'+s.input+'"/>';i=Ae.extend({placeholder:u.sSearchPlaceholder,processing:!1,text:u.sSearch},i),i.text.indexOf("_INPUT_")===-1&&(i.text+="_INPUT_"),i.text=Io(e,i.text);var r=i.text.match(/_INPUT_$/),t=i.text.match(/^_INPUT_/),A=i.text.replace(/_INPUT_/,""),a="<label>"+i.text+"</label>";t?a="_INPUT_<label>"+A+"</label>":r&&(a="<label>"+A+"</label>_INPUT_");var f=Ae("<div>").addClass(s.container).append(a.replace(/_INPUT_/,o));f.find("label").attr("for","dt-search-"+Wa),f.find("input").attr("id","dt-search-"+Wa),Wa++;var h=function(E){var D=this.value;w.return&&E.key!=="Enter"||D!=w.search&&hl(e,i.processing,function(){w.search=D,ds(e,w),e._iDisplayStart=0,Ln(e)})},Q=e.searchDelay!==null?e.searchDelay:0,d=Ae("input",f).val(w.search).attr("placeholder",i.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",Q?Be.util.debounce(h,Q):h).on("mouseup.DT",function(E){setTimeout(function(){h.call(d[0],E)},10)}).on("keypress.DT",function(E){if(E.keyCode==13)return!1}).attr("aria-controls",g);return Ae(e.nTable).on("search.dt.DT",function(E,D){e===D&&d[0]!==document.activeElement&&d.val(typeof w.search!="function"?w.search:"")}),f},"f");Be.feature.register("paging",function(e,i){if(!e.oFeatures.bPaginate)return null;i=Ae.extend({buttons:Be.ext.pager.numbers_length,type:e.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},i);var s=Ae("<div/>").addClass(e.oClasses.paging.container+(i.type?" paging_"+i.type:"")).append(Ae("<nav>").attr("aria-label","pagination").addClass(e.oClasses.paging.nav)),g=function(){Ul(e,s.children(),i)};return e.aoDrawCallback.push(g),Ae(e.nTable).on("column-sizing.dt.DT",g),s},"p");function _w(e){var i=[];return e.numbers&&i.push("numbers"),e.previousNext&&(i.unshift("previous"),i.push("next")),e.firstLast&&(i.unshift("first"),i.push("last")),i}function Ul(e,i,s){if(e._bInitComplete){var g=s.type?Be.ext.pager[s.type]:_w,u=e.oLanguage.oAria.paginate||{},w=e._iDisplayStart,o=e._iDisplayLength,r=e.fnRecordsDisplay(),t=o===-1,A=t?0:Math.ceil(w/o),a=t?1:Math.ceil(r/o),f=[],h=[],Q=g(s).map(function(N){return N==="numbers"?zl(A,a,s.buttons,s.boundaryNumbers):N});f=f.concat.apply(f,Q);for(var d=0;d<f.length;d++){var E=f[d],D=qw(e,E,A,a),Y=Ea(e,"pagingButton")(e,E,D.display,D.active,D.disabled),z=typeof E=="string"?u[E]:u.number?u.number+(E+1):null;Ae(Y.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":D.disabled?"true":null,"aria-current":D.active?"page":null,"aria-label":z,"data-dt-idx":E,tabIndex:D.disabled?-1:e.iTabIndex&&Y.clicker[0].nodeName.toLowerCase()!=="span"?e.iTabIndex:null}),typeof E!="number"&&Ae(Y.clicker).addClass(E),Dl(Y.clicker,{action:E},function(N){N.preventDefault(),Co(e,N.data.action,!0)}),h.push(Y.display)}var L=Ea(e,"pagingContainer")(e,h),T=i.find(document.activeElement).data("dt-idx");if(i.empty().append(L),T!==void 0&&i.find("[data-dt-idx="+T+"]").trigger("focus"),h.length){var b=Ae(h[0]).outerHeight();s.buttons>1&&b>0&&Ae(i).height()>=b*2-10&&Ul(e,i,Ae.extend({},s,{buttons:s.buttons-2}))}}}function qw(e,i,s,g){var u=e.oLanguage.oPaginate,w={display:"",active:!1,disabled:!1};switch(i){case"ellipsis":w.display="&#x2026;";break;case"first":w.display=u.sFirst,s===0&&(w.disabled=!0);break;case"previous":w.display=u.sPrevious,s===0&&(w.disabled=!0);break;case"next":w.display=u.sNext,(g===0||s===g-1)&&(w.disabled=!0);break;case"last":w.display=u.sLast,(g===0||s===g-1)&&(w.disabled=!0);break;default:typeof i=="number"&&(w.display=e.fnFormatNumber(i+1),s===i&&(w.active=!0));break}return w}function zl(e,i,s,g){var u=[],w=Math.floor(s/2),o=g?2:1,r=g?1:0;return i<=s?u=xi(0,i):s===1?u=[e]:s===3?e<=1?u=[0,1,"ellipsis"]:e>=i-2?(u=xi(i-2,i),u.unshift("ellipsis")):u=["ellipsis",e,"ellipsis"]:e<=w?(u=xi(0,s-o),u.push("ellipsis"),g&&u.push(i-1)):e>=i-1-w?(u=xi(i-(s-o),i),u.unshift("ellipsis"),g&&u.unshift(0)):(u=xi(e-w+o,e+w-r),u.push("ellipsis"),u.unshift("ellipsis"),g&&(u.push(i-1),u.unshift(0))),u}var Ka=0;Be.feature.register("pageLength",function(e,i){var s=e.oFeatures;if(!s.bPaginate||!s.bLengthChange)return null;i=Ae.extend({menu:e.aLengthMenu,text:e.oLanguage.sLengthMenu},i);var g=e.oClasses.length,u=e.sTableId,w=i.menu,o=[],r=[],t;if(Array.isArray(w[0]))o=w[0],r=w[1];else for(t=0;t<w.length;t++)Ae.isPlainObject(w[t])?(o.push(w[t].value),r.push(w[t].label)):(o.push(w[t]),r.push(w[t]));var A=i.text.match(/_MENU_$/),a=i.text.match(/^_MENU_/),f=i.text.replace(/_MENU_/,""),h="<label>"+i.text+"</label>";a?h="_MENU_<label>"+f+"</label>":A&&(h="<label>"+f+"</label>_MENU_");var Q="tmp-"+ +new Date,d=Ae("<div/>").addClass(g.container).append(h.replace("_MENU_",'<span id="'+Q+'"></span>')),E=[];Array.prototype.slice.call(d.find("label")[0].childNodes).forEach(function(L){L.nodeType===Node.TEXT_NODE&&E.push({el:L,text:L.textContent})});var D=function(L){E.forEach(function(T){T.el.textContent=Io(e,T.text,L)})},Y=Ae("<select/>",{"aria-controls":u,class:g.select});for(t=0;t<o.length;t++){var z=e.api.i18n("lengthLabels."+o[t],null);z===null&&(z=typeof r[t]=="number"?e.fnFormatNumber(r[t]):r[t]),Y[0][t]=new Option(z,o[t])}return d.find("label").attr("for","dt-length-"+Ka),Y.attr("id","dt-length-"+Ka),Ka++,d.find("#"+Q).replaceWith(Y),Ae("select",d).val(e._iDisplayLength).on("change.DT",function(){fl(e,Ae(this).val()),Ln(e)}),Ae(e.nTable).on("length.dt.DT",function(L,T,b){e===T&&(Ae("select",d).val(b),D(b))}),D(e._iDisplayLength),d},"l");Ae.fn.dataTable=Be;Be.$=Ae;Ae.fn.dataTableSettings=Be.settings;Ae.fn.dataTableExt=Be.ext;Ae.fn.DataTable=function(e){return Ae(this).dataTable(e).api()};Ae.each(Be,function(e,i){Ae.fn.DataTable[e]=i});/*! DataTables Bootstrap 5 integration
 * © SpryMedia Ltd - datatables.net/license
 */let Ms=ti;Ms.extend(!0,Be.defaults,{renderer:"bootstrap"});Ms.extend(!0,Be.ext.classes,{container:"dt-container dt-bootstrap5",search:{input:"form-control form-control-sm"},length:{select:"form-select form-select-sm"},processing:{container:"dt-processing card"},layout:{row:"row mt-2 justify-content-between",cell:"d-md-flex justify-content-between align-items-center",tableCell:"col-12",start:"dt-layout-start col-md-auto me-auto",end:"dt-layout-end col-md-auto ms-auto",full:"dt-layout-full col-md"}});Be.ext.renderer.pagingButton.bootstrap=function(e,i,s,g,u){var w=["dt-paging-button","page-item"];g&&w.push("active"),u&&w.push("disabled");var o=Ms("<li>").addClass(w.join(" ")),r=Ms("<button>",{class:"page-link",role:"link",type:"button"}).html(s).appendTo(o);return{display:o,clicker:r}};Be.ext.renderer.pagingContainer.bootstrap=function(e,i){return Ms("<ul/>").addClass("pagination").append(i)};/*! FixedColumns 5.0.5
 * © SpryMedia Ltd - datatables.net/license
 */let Gi=ti;(function(){var e,i;function s(o){e=o,i=e.fn.dataTable}var g=function(){function o(r,t){var A=this;if(!i||!i.versionCheck||!i.versionCheck("2"))throw new Error("FixedColumns requires DataTables 2 or newer");var a=new i.Api(r);this.classes=e.extend(!0,{},o.classes),this.c=e.extend(!0,{},o.defaults,t),this.s={dt:a,rtl:e(a.table().node()).css("direction")==="rtl"},t&&t.leftColumns!==void 0&&(t.left=t.leftColumns),t&&t.left!==void 0&&(this.c[this.s.rtl?"end":"start"]=t.left),t&&t.rightColumns!==void 0&&(t.right=t.rightColumns),t&&t.right!==void 0&&(this.c[this.s.rtl?"start":"end"]=t.right),this.dom={bottomBlocker:e("<div>").addClass(this.classes.bottomBlocker),topBlocker:e("<div>").addClass(this.classes.topBlocker),scroller:e("div.dt-scroll-body",this.s.dt.table().container())},this.s.dt.settings()[0]._bInitComplete?(this._addStyles(),this._setKeyTableListener()):a.one("init.dt.dtfc",function(){A._addStyles(),A._setKeyTableListener()}),a.on("column-sizing.dt.dtfc column-reorder.dt.dtfc draw.dt.dtfc",function(){return A._addStyles()});var f=i.util.debounce(function(){A._addStyles()},50);return a.on("column-visibility.dt.dtfc",function(){f()}),this.dom.scroller.on("scroll.dtfc",function(){return A._scroll()}),this._scroll(),a.settings()[0]._fixedColumns=this,a.on("destroy",function(){return A._destroy()}),this}return o.prototype.end=function(r){return r!==void 0?(r>=0&&r<=this.s.dt.columns().count()&&(this.c.end=r,this._addStyles()),this):this.c.end},o.prototype.left=function(r){return this.s.rtl?this.end(r):this.start(r)},o.prototype.right=function(r){return this.s.rtl?this.start(r):this.end(r)},o.prototype.start=function(r){return r!==void 0?(r>=0&&r<=this.s.dt.columns().count()&&(this.c.start=r,this._addStyles()),this):this.c.start},o.prototype._addStyles=function(){var r=this.s.dt,t=this,A=this.s.dt.columns(":visible").count(),a=r.table().header.structure(":visible"),f=r.table().footer.structure(":visible"),h=r.columns(":visible").widths().toArray(),Q=e(r.table().node()).closest("div.dt-scroll"),d=e(r.table().node()).closest("div.dt-scroll-body")[0],E=this.s.rtl,D=this.c.start,Y=this.c.end,z=E?Y:D,L=E?D:Y,T=r.settings()[0].oBrowser.barWidth;if(Q.length===0)return this;d.offsetWidth===d.clientWidth&&(T=0),r.columns().every(function(oA){var q=r.column.index("toVisible",oA),Z;q!==null&&(q<D?(Z=t._sum(h,q),t._fixColumn(q,Z,"start",a,f,T)):q>=A-Y?(Z=t._sum(h,A-q-1,!0),t._fixColumn(q,Z,"end",a,f,T)):t._fixColumn(q,0,"none",a,f,T))}),e(r.table().node()).toggleClass(t.classes.tableFixedStart,D>0).toggleClass(t.classes.tableFixedEnd,Y>0).toggleClass(t.classes.tableFixedLeft,z>0).toggleClass(t.classes.tableFixedRight,L>0);var b=r.table().header(),N=r.table().footer(),O=e(b).outerHeight(),gA=e(N).outerHeight();this.dom.topBlocker.appendTo(Q).css("top",0).css(this.s.rtl?"left":"right",0).css("height",O).css("width",T+1).css("display",T?"block":"none"),N&&this.dom.bottomBlocker.appendTo(Q).css("bottom",0).css(this.s.rtl?"left":"right",0).css("height",gA).css("width",T+1).css("display",T?"block":"none")},o.prototype._destroy=function(){this.s.dt.off(".dtfc"),this.dom.scroller.off(".dtfc"),e(this.s.dt.table().node()).removeClass(this.classes.tableScrollingEnd+" "+this.classes.tableScrollingLeft+" "+this.classes.tableScrollingStart+" "+this.classes.tableScrollingRight),this.dom.bottomBlocker.remove(),this.dom.topBlocker.remove()},o.prototype._fixColumn=function(r,t,A,a,f,h){var Q=this,d=this.s.dt,E=function(D,Y){if(A==="none")D.css("position","").css("left","").css("right","").removeClass(Q.classes.fixedEnd+" "+Q.classes.fixedLeft+" "+Q.classes.fixedRight+" "+Q.classes.fixedStart);else{var z=A==="start"?"left":"right";Q.s.rtl&&(z=A==="start"?"right":"left");var L=t;A==="end"&&(Y==="header"||Y==="footer")&&(L+=h),D.css("position","sticky").css(z,L).addClass(A==="start"?Q.classes.fixedStart:Q.classes.fixedEnd).addClass(z==="left"?Q.classes.fixedLeft:Q.classes.fixedRight)}};a.forEach(function(D){D[r]&&E(e(D[r].cell),"header")}),E(d.column(r+":visible",{page:"current"}).nodes().to$(),"body"),f&&f.forEach(function(D){D[r]&&E(e(D[r].cell),"footer")})},o.prototype._scroll=function(){var r=this.dom.scroller[0];if(r){var t=e(this.s.dt.table().node()).add(this.s.dt.table().header().parentNode).add(this.s.dt.table().footer().parentNode).add("div.dt-scroll-headInner table",this.s.dt.table().container()).add("div.dt-scroll-footInner table",this.s.dt.table().container()),A=r.scrollLeft,a=!this.s.rtl,f=A!==0,h=r.scrollWidth>r.clientWidth+Math.abs(A)+1;t.toggleClass(this.classes.tableScrollingStart,f),t.toggleClass(this.classes.tableScrollingEnd,h),t.toggleClass(this.classes.tableScrollingLeft,f&&a||h&&!a),t.toggleClass(this.classes.tableScrollingRight,h&&a||f&&!a)}},o.prototype._setKeyTableListener=function(){var r=this;this.s.dt.on("key-focus.dt.dtfc",function(t,A,a){var f,h=e(a.node()).offset(),Q=r.dom.scroller[0],d=e(e(r.s.dt.table().node()).closest("div.dt-scroll-body"));if(r.c.start>0){var E=e(r.s.dt.column(r.c.start-1).header()),D=E.offset(),Y=E.outerWidth();e(a.node()).hasClass(r.classes.fixedLeft)?d.scrollLeft(0):h.left<D.left+Y&&(f=d.scrollLeft(),d.scrollLeft(f-(D.left+Y-h.left)))}if(r.c.end>0){var z=r.s.dt.columns().data().toArray().length,L=e(a.node()).outerWidth(),T=e(r.s.dt.column(z-r.c.end).header()),b=T.offset();e(a.node()).hasClass(r.classes.fixedRight)?d.scrollLeft(Q.scrollWidth-Q.clientWidth):h.left+L>b.left&&(f=d.scrollLeft(),d.scrollLeft(f-(b.left-(h.left+L))))}})},o.prototype._sum=function(r,t,A){return A===void 0&&(A=!1),A&&(r=r.slice().reverse()),r.slice(0,t).reduce(function(a,f){return a+f},0)},o.version="5.0.5",o.classes={bottomBlocker:"dtfc-bottom-blocker",fixedEnd:"dtfc-fixed-end",fixedLeft:"dtfc-fixed-left",fixedRight:"dtfc-fixed-right",fixedStart:"dtfc-fixed-start",tableFixedEnd:"dtfc-has-end",tableFixedLeft:"dtfc-has-left",tableFixedRight:"dtfc-has-right",tableFixedStart:"dtfc-has-start",tableScrollingEnd:"dtfc-scrolling-end",tableScrollingLeft:"dtfc-scrolling-left",tableScrollingRight:"dtfc-scrolling-right",tableScrollingStart:"dtfc-scrolling-start",topBlocker:"dtfc-top-blocker"},o.defaults={i18n:{button:"FixedColumns"},start:1,end:0},o}();/*! FixedColumns 5.0.5
 * © SpryMedia Ltd - datatables.net/license
 */s(Gi),Gi.fn.dataTable.FixedColumns=g,Gi.fn.DataTable.FixedColumns=g;var u=Be.Api.register;u("fixedColumns()",function(){return this}),u("fixedColumns().start()",function(o){var r=this.context[0];return o!==void 0?(r._fixedColumns.start(o),this):r._fixedColumns.start()}),u("fixedColumns().end()",function(o){var r=this.context[0];return o!==void 0?(r._fixedColumns.end(o),this):r._fixedColumns.end()}),u("fixedColumns().left()",function(o){var r=this.context[0];return o!==void 0?(r._fixedColumns.left(o),this):r._fixedColumns.left()}),u("fixedColumns().right()",function(o){var r=this.context[0];return o!==void 0?(r._fixedColumns.right(o),this):r._fixedColumns.right()}),Be.ext.buttons.fixedColumns={action:function(o,r,t,A){Gi(t).attr("active")?(Gi(t).removeAttr("active").removeClass("active"),r.fixedColumns().start(0),r.fixedColumns().end(0)):(Gi(t).attr("active","true").addClass("active"),r.fixedColumns().start(A.config.start),r.fixedColumns().end(A.config.end))},config:{start:1,end:0},init:function(o,r,t){o.settings()[0]._fixedColumns===void 0&&w(o.settings(),t.config),Gi(r).attr("active","true").addClass("active"),o.button(r).text(t.text||o.i18n("buttons.fixedColumns",o.settings()[0]._fixedColumns.c.i18n.button))},text:null};function w(o,r){r===void 0&&(r=null);var t=new Be.Api(o),A=r||t.init().fixedColumns||Be.defaults.fixedColumns,a=new g(t,A);return a}Gi(document).on("plugin-init.dt",function(o,r){o.namespace==="dt"&&(r.oInit.fixedColumns||Be.defaults.fixedColumns)&&(r._fixedColumns||w(r,null))})})();/*! FixedHeader 4.0.6
 * © SpryMedia Ltd - datatables.net/license
 */let ct=ti;var $w=0,Oi=function(e,i){if(!Be.versionCheck("2"))throw"Warning: FixedHeader requires DataTables 2 or newer";if(!(this instanceof Oi))throw"FixedHeader must be initialised with the 'new' keyword.";i===!0&&(i={}),e=new Be.Api(e),this.c=ct.extend(!0,{},Oi.defaults,i),this.s={dt:e,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:ct(window).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:e.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+$w++,scrollLeft:{header:-1,footer:-1},enable:!0,autoDisable:!1},this.dom={floatingHeader:null,thead:ct(e.table().header()),tbody:ct(e.table().body()),tfoot:ct(e.table().footer()),header:{host:null,scrollAdjust:null,floating:null,floatingParent:ct('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null},footer:{host:null,scrollAdjust:null,floating:null,floatingParent:ct('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null}};var s=this.dom;s.header.host=s.thead.parent(),s.header.limiter=s.header.floatingParent.children(),s.header.scrollAdjust=s.header.limiter.children(),s.footer.host=s.tfoot.parent(),s.footer.limiter=s.footer.floatingParent.children(),s.footer.scrollAdjust=s.footer.limiter.children();var g=e.settings()[0];if(g._fixedHeader)throw"FixedHeader already initialised on table "+g.nTable.id;g._fixedHeader=this,this._constructor()};ct.extend(Oi.prototype,{destroy:function(){var e=this.dom;this.s.dt.off(".dtfc"),ct("body").off(".dtfc"),ct(window).off(this.s.namespace),e.header.rightBlocker&&e.header.rightBlocker.remove(),e.header.leftBlocker&&e.header.leftBlocker.remove(),e.footer.rightBlocker&&e.footer.rightBlocker.remove(),e.footer.leftBlocker&&e.footer.leftBlocker.remove(),this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&e.tfoot.length&&this._modeChange("in-place","footer",!0)},enable:function(e,i,s){this.s.enable=e,this.s.enableType=s,(i||i===void 0)&&(this._positions(),this._scroll(!0))},enabled:function(){return this.s.enable},headerOffset:function(e){return e!==void 0&&(this.c.headerOffset=e,this.update()),this.c.headerOffset},footerOffset:function(e){return e!==void 0&&(this.c.footerOffset=e,this.update()),this.c.footerOffset},update:function(e){var i=this.s.dt.table().node();!this.s.enable&&!this.s.autoDisable||(ct(i).is(":visible")?(this.s.autoDisable=!1,this.enable(!0,!1)):(this.s.autoDisable=!0,this.enable(!1,!1)),ct(i).children("thead").length!==0&&(this._positions(),this._scroll(e!==void 0?e:!0),this._widths(this.dom.header),this._widths(this.dom.footer)))},_constructor:function(){var e=this,i=this.s.dt;ct(window).on("scroll"+this.s.namespace,function(){e._scroll()}).on("resize"+this.s.namespace,Be.util.throttle(function(){e.s.position.windowHeight=ct(window).height(),e.update()},50));var s=ct(".fh-fixedHeader");!this.c.headerOffset&&s.length&&(this.c.headerOffset=s.outerHeight());var g=ct(".fh-fixedFooter");!this.c.footerOffset&&g.length&&(this.c.footerOffset=g.outerHeight()),i.on("column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc",function(u,w){e.update()}),ct("body").on("draw.dt.dtfc",function(u,w){e.update(w!==i.settings()[0])}),i.on("destroy.dtfc",function(){e.destroy()}),this._positions(),this._scroll()},_clone:function(e,i){var s=this,g=this.s.dt,u=this.dom[e],w=e==="header"?this.dom.thead:this.dom.tfoot;if(!(e==="footer"&&this._scrollEnabled()))if(!i&&u.floating)u.floating.removeClass("fixedHeader-floating fixedHeader-locked");else{u.floating&&(u.placeholder!==null&&u.placeholder.detach(),u.floating.detach());var o=ct(g.table().node()),r=ct(o.parent()),t=this._scrollEnabled();u.floating=ct(g.table().node().cloneNode(!1)).attr("aria-hidden","true").css({top:0,left:0}).removeAttr("id"),u.floatingParent.css({width:r[0].offsetWidth,position:"fixed",left:t?o.offset().left+r.scrollLeft():0}).css(e==="header"?{top:this.c.headerOffset,bottom:""}:{top:"",bottom:this.c.footerOffset}).addClass(e==="footer"?"dtfh-floatingparent-foot":"dtfh-floatingparent-head").appendTo("body").children().eq(0),u.limiter.css({width:"100%",overflow:"hidden",height:"fit-content"}),u.scrollAdjust.append(u.floating),this._stickyPosition(u.floating,"-");var A=function(){var f=r.scrollLeft();s.s.scrollLeft={footer:f,header:f},u.limiter.scrollLeft(s.s.scrollLeft.header)};A(),r.off("scroll.dtfh").on("scroll.dtfh",A),u.scrollAdjust.css({width:"fit-content",paddingRight:s.s.dt.settings()[0].oBrowser.barWidth});let a=ct(e==="footer"?"div.dtfc-bottom-blocker":"div.dtfc-top-blocker",g.table().container());return a.length&&a.clone().appendTo(u.floatingParent).css({position:"fixed",right:a.width()}),u.placeholder=w.clone(!1),u.placeholder.find("*[id]").removeAttr("id"),ct(u.placeholder).insertAfter(ct(e==="header"?"colgroup":"tbody",u.host)),u.floating.append(w),this._widths(u),A}},_stickyPosition:function(e,i){if(this._scrollEnabled()){var s=this,g=ct(s.s.dt.table().node()).css("direction")==="rtl";e.find("th").each(function(){if(ct(this).css("position")==="sticky"){var u=ct(this).css("right"),w=ct(this).css("left"),o;u!=="auto"&&!g?(o=+u.replace(/px/g,""),ct(this).css("right",o>0?o:0)):w!=="auto"&&g&&(o=+w.replace(/px/g,""),ct(this).css("left",o>0?o:0))}})}},_horizontal:function(e,i){var s=this.dom[e],g=this.s.scrollLeft;if(s.floating&&g[e]!==i){if(this._scrollEnabled()){var u=ct(ct(this.s.dt.table().node()).parent()).scrollLeft();s.floating.scrollLeft(u),s.floatingParent.scrollLeft(u)}g[e]=i}},_modeChange:function(e,i,s){var g=this.s.dt,u=this.dom[i],w=this.s.position,o=this._scrollEnabled();if(!(i==="footer"&&o)){var r=function(T){u.floating[0].style.setProperty("width",T+"px","important"),o||u.floatingParent[0].style.setProperty("width",T+"px","important")},t=this.dom[i==="footer"?"tfoot":"thead"],A=ct.contains(t[0],document.activeElement)?document.activeElement:null,a=ct(ct(this.s.dt.table().node()).parent());if(e==="in-place")u.placeholder&&(u.placeholder.remove(),u.placeholder=null),ct.contains(u.host[0],t[0])||(i==="header"?t.insertAfter(ct("colgroup",u.host)):u.host.append(t)),u.floating&&(u.floating.remove(),u.floating=null,this._stickyPosition(u.host,"+")),u.floatingParent&&(u.floatingParent.find("div.dtfc-top-blocker").remove(),u.floatingParent.remove()),ct(ct(u.host.parent()).parent()).scrollLeft(a.scrollLeft());else if(e==="in"){let T=this._clone(i,s);var f=a.offset(),h=ct(document).scrollTop(),Q=ct(window).height(),d=h+Q,E=o?f.top:w.tbodyTop,D=o?f.top+a.outerHeight():w.tfootTop,Y;i==="footer"?Y=E>d?w.tfootHeight:E+w.tfootHeight-d:Y=h+this.c.headerOffset+w.theadHeight-D;var z=i==="header"?"top":"bottom",L=this.c[i+"Offset"]-(Y>0?Y:0);u.floating.addClass("fixedHeader-floating"),u.floatingParent.css(z,L).css({left:w.left,"z-index":3}),r(w.width),T&&T(),i==="footer"&&u.floating.css("top","")}else e==="below"?(this._clone(i,s),u.floating.addClass("fixedHeader-locked"),u.floatingParent.css({position:"absolute",top:w.tfootTop-w.theadHeight,left:w.left+"px"}),r(w.width)):e==="above"&&(this._clone(i,s),u.floating.addClass("fixedHeader-locked"),u.floatingParent.css({position:"absolute",top:w.tbodyTop,left:w.left+"px"}),r(w.width));A&&A!==document.activeElement&&setTimeout(function(){A.focus()},10),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[i+"Mode"]=e,g.trigger("fixedheader-mode",[e,i])}},_positions:function(){var e=this.s.dt,i=e.table(),s=this.s.position,g=this.dom,u=ct(i.node()),w=this._scrollEnabled(),o=ct(e.table().header()),r=ct(e.table().footer()),t=g.tbody,A=u.parent();s.visible=u.is(":visible"),s.width=u.outerWidth(),s.left=u.offset().left,s.theadTop=o.offset().top,s.tbodyTop=w?A.offset().top:t.offset().top,s.tbodyHeight=w?A.outerHeight():t.outerHeight(),s.theadHeight=o.outerHeight(),s.theadBottom=s.theadTop+s.theadHeight,s.tfootTop=s.tbodyTop+s.tbodyHeight,r.length?(s.tfootBottom=s.tfootTop+r.outerHeight(),s.tfootHeight=r.outerHeight()):(s.tfootBottom=s.tfootTop,s.tfootHeight=0)},_scroll:function(e){if(!this.s.dt.settings()[0].bDestroying){var i=this._scrollEnabled(),s=ct(this.s.dt.table().node()).parent(),g=s.offset(),u=s.outerHeight(),w=ct(document).scrollLeft(),o=ct(document).scrollTop(),r=ct(window).height(),t=r+o,A=this.s.position,a,f,h=i?g.top:A.tbodyTop,Q=i?g.left:A.left,d=i?g.top+u:A.tfootTop,E=i?s.outerWidth():A.tbodyWidth;if(this.c.header){if(!this.s.enable)a="in-place";else if(!A.visible||o+this.c.headerOffset+A.theadHeight<=h)a="in-place";else if(o+this.c.headerOffset+A.theadHeight>h&&o+this.c.headerOffset+A.theadHeight<d)if(a="in",o+this.c.headerOffset+A.theadHeight>d||this.dom.header.floatingParent===void 0)e=!0;else{var D=this.dom.header.floatingParent.css({top:this.c.headerOffset,position:"fixed"}).children().eq(0);D.find(this.dom.header.floating).length===0&&D.append(this.dom.header.floating)}else a="below";(e||a!==this.s.headerMode)&&this._modeChange(a,"header",e),this._horizontal("header",w)}var Y={offset:{top:0},height:0},z={offset:{top:0},height:0};if(this.c.footer&&this.dom.tfoot.length&&this.dom.tfoot.find("th, td").length){this.s.enable?!A.visible||A.tfootBottom+this.c.footerOffset<=t?f="in-place":d+A.tfootHeight+this.c.footerOffset>t&&h+this.c.footerOffset<t?(f="in",e=!0):f="above":f="in-place",(e||f!==this.s.footerMode)&&this._modeChange(f,"footer",e),this._horizontal("footer",w);var L=function(O){return{offset:O.offset(),height:O.outerHeight()}};if(Y=this.dom.header.floating?L(this.dom.header.floating):L(this.dom.thead),z=this.dom.footer.floating?L(this.dom.footer.floating):L(this.dom.tfoot),i&&z.offset.top>o){var T=o-g.top,b=t+(T>-Y.height?T:0)-(Y.offset.top+(T<-Y.height?Y.height:0)+z.height);b<0&&(b=0),s.outerHeight(b),Math.round(s.outerHeight())>=Math.round(b)?ct(this.dom.tfoot.parent()).addClass("fixedHeader-floating"):ct(this.dom.tfoot.parent()).removeClass("fixedHeader-floating")}}if(this.dom.header.floating&&this.dom.header.floatingParent.css("left",Q-w),this.dom.footer.floating&&this.dom.footer.floatingParent.css("left",Q-w),this.s.dt.settings()[0]._fixedColumns!==void 0){var N=function(O,gA,oA){if(oA===void 0){var q=ct("div.dtfc-"+O+"-"+gA+"-blocker");oA=q.length===0?null:q.clone().css("z-index",1)}return oA!==null&&(a==="in"||a==="below"?oA.appendTo("body").css({top:gA==="top"?Y.offset.top:z.offset.top,left:O==="right"?Q+E-oA.width():Q}):oA.detach()),oA};this.dom.header.rightBlocker=N("right","top",this.dom.header.rightBlocker),this.dom.header.leftBlocker=N("left","top",this.dom.header.leftBlocker),this.dom.footer.rightBlocker=N("right","bottom",this.dom.footer.rightBlocker),this.dom.footer.leftBlocker=N("left","bottom",this.dom.footer.leftBlocker)}}},_scrollEnabled:function(){var e=this.s.dt.settings()[0].oScroll;return e.sY!==""||e.sX!==""},_widths:function(e){if(!(!e||!e.placeholder)){var i=ct(this.s.dt.table().node()),s=ct(i.parent());e.floatingParent.css("width",s[0].offsetWidth),e.floating.css("width",i[0].offsetWidth),ct("colgroup",e.floating).remove();for(var g=e.placeholder.parent().find("colgroup").clone().appendTo(e.floating).find("col"),u=this.s.dt.columns(":visible").widths(),w=0;w<u.length;w++)g.eq(w).css("width",u[w])}}});Oi.version="4.0.6";Oi.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0};ct.fn.dataTable.FixedHeader=Oi;ct.fn.DataTable.FixedHeader=Oi;ct(document).on("init.dt.dtfh",function(e,i,s){if(e.namespace==="dt"){var g=i.oInit.fixedHeader,u=Be.defaults.fixedHeader;if((g||u)&&!i._fixedHeader){var w=ct.extend({},u,g);g!==!1&&new Oi(i,w)}}});Be.Api.register("fixedHeader()",function(){});Be.Api.register("fixedHeader.adjust()",function(){return this.iterator("table",function(e){var i=e._fixedHeader;i&&i.update()})});Be.Api.register("fixedHeader.enable()",function(e){return this.iterator("table",function(i){var s=i._fixedHeader;e=e!==void 0?e:!0,s&&e!==s.enabled()&&s.enable(e)})});Be.Api.register("fixedHeader.enabled()",function(){if(this.context.length){var e=this.context[0]._fixedHeader;if(e)return e.enabled()}return!1});Be.Api.register("fixedHeader.disable()",function(){return this.iterator("table",function(e){var i=e._fixedHeader;i&&i.enabled()&&i.enable(!1)})});ct.each(["header","footer"],function(e,i){Be.Api.register("fixedHeader."+i+"Offset()",function(s){var g=this.context;return s===void 0?g.length&&g[0]._fixedHeader?g[0]._fixedHeader[i+"Offset"]():void 0:this.iterator("table",function(u){var w=u._fixedHeader;w&&w[i+"Offset"](s)})})});/*! Select for DataTables 3.1.3
 * © SpryMedia Ltd - datatables.net/license/mit
 */let dt=ti;Be.select={};Be.select.classes={checkbox:"dt-select-checkbox"};Be.select.version="3.1.3";Be.select.init=function(e){var i=e.settings()[0];if(!Be.versionCheck("2"))throw"Warning: Select requires DataTables 2 or newer";if(!i._select){var s=e.state.loaded(),g=function(L,T,b){if(!(b===null||b.select===void 0)){if(e.rows({selected:!0}).any()&&e.rows().deselect(),b.select.rows!==void 0&&e.rows(b.select.rows).select(),e.columns({selected:!0}).any()&&e.columns().deselect(),b.select.columns!==void 0&&e.columns(b.select.columns).select(),e.cells({selected:!0}).any()&&e.cells().deselect(),b.select.cells!==void 0)for(var N=0;N<b.select.cells.length;N++)e.cell(b.select.cells[N].row,b.select.cells[N].column).select();e.state.save()}};e.on("stateSaveParams",function(L,T,b){b.select={},b.select.rows=e.rows({selected:!0}).ids(!0).toArray(),b.select.columns=e.columns({selected:!0})[0],b.select.cells=e.cells({selected:!0})[0].map(function(N){return{row:e.row(N.row).id(!0),column:N.column}})}).on("stateLoadParams",g).one("init",function(){g(void 0,void 0,s)});var u=i.oInit.select,w=Be.defaults.select,o=u===void 0?w:u,r="row",t="api",A=!1,a=!0,f=null,h=!0,Q="td, th",d="selected",E=!0,D=!1,Y=!1,z=!1;i._select={infoEls:[]},o===!0?(t="os",D=!0):typeof o=="string"?(t=o,D=!0):dt.isPlainObject(o)&&(o.blurable!==void 0&&(A=o.blurable),o.toggleable!==void 0&&(a=o.toggleable),o.info!==void 0&&(h=o.info),o.items!==void 0&&(r=o.items),o.style!==void 0?(t=o.style,D=!0):(t="os",D=!0),o.selector!==void 0&&(Q=o.selector),o.className!==void 0&&(d=o.className),o.headerCheckbox!==void 0&&(E=o.headerCheckbox),o.selectable!==void 0&&(f=o.selectable),o.keys!==void 0&&(Y=o.keys),o.keysWrap!==void 0&&(z=o.keysWrap)),e.select.selector(Q),e.select.items(r),e.select.style(t),e.select.blurable(A),e.select.toggleable(a),e.select.info(h),e.select.keys(Y,z),e.select.selectable(f),i._select.className=d,!D&&dt(e.table().node()).hasClass("selectable")&&e.select.style("os"),(E||E==="select-page"||E==="select-all")&&e.ready(function(){A0(e,E)})}};function kB(e,i,s){var g,u,w,o=function(t,A){if(t>A){var a=A;A=t,t=a}var f=!1;return e.columns(":visible").indexes().filter(function(h){return h===t&&(f=!0),h===A?(f=!1,!0):f})},r=function(t,A){var a=e.rows({search:"applied"}).indexes();if(a.indexOf(t)>a.indexOf(A)){var f=A;A=t,t=f}var h=!1;return a.filter(function(Q){return Q===t&&(h=!0),Q===A?(h=!1,!0):h})};!e.cells({selected:!0}).any()&&!s?(u=o(0,i.column),w=r(0,i.row)):(u=o(s.column,i.column),w=r(s.row,i.row)),g=e.cells(w,u).flatten(),e.cells(i,{selected:!0}).any()?e.cells(g).deselect():e.cells(g).select()}function xn(e){var i=Be.select.classes.checkbox;return e?i.replace(/ /g,"."):i}function Sn(e){var i=e.settings()[0],s=i._select.selector;dt(e.table().container()).off("mousedown.dtSelect",s).off("mouseup.dtSelect",s).off("click.dtSelect",s),dt("body").off("click.dtSelect"+bo(e.table().node()))}function Pl(e){var i=dt(e.table().container()),s=e.settings()[0],g=s._select.selector,u;i.on("mousedown.dtSelect",g,function(w){(w.shiftKey||w.metaKey||w.ctrlKey)&&i.css("-moz-user-select","none").one("selectstart.dtSelect",g,function(){return!1}),window.getSelection&&(u=window.getSelection())}).on("mouseup.dtSelect",g,function(){i.css("-moz-user-select","")}).on("click.dtSelect",g,function(w){var o=e.select.items(),r;if(u){var t=window.getSelection();if((!t.anchorNode||dt(t.anchorNode).closest("table")[0]===e.table().node())&&t!==u)return}var A=e.settings()[0],a=e.table().container();if(dt(w.target).closest("div.dt-container")[0]==a){var f=e.cell(dt(w.target).closest("td, th"));if(f.any()){var h=dt.Event("user-select.dt");if(di(e,h,[o,f,w]),!h.isDefaultPrevented()){var Q=f.index();o==="row"?(r=Q.row,Va(w,e,A,"row",r)):o==="column"?(r=f.index().column,Va(w,e,A,"column",r)):o==="cell"&&(r=f.index(),Va(w,e,A,"cell",r)),A._select_lastCell=Q}}}}),dt("body").on("click.dtSelect"+bo(e.table().node()),function(w){if(s._select.blurable){if(dt(w.target).parents().filter(e.table().container()).length||dt(w.target).parents("html").length===0||dt(w.target).parents("div.DTE").length)return;var o=dt.Event("select-blur.dt");if(di(e,o,[w.target,w]),o.isDefaultPrevented())return;ys(s,!0)}})}function di(e,i,s,g){g&&!e.flatten().length||(typeof i=="string"&&(i=i+".dt"),s.unshift(e),dt(e.table().node()).trigger(i,s))}function va(e){return e.mRender&&e.mRender._name==="selectCheckbox"}function jB(e,i){if(!(e.select.style()==="api"||e.select.info()===!1)){var s=e.settings()[0],g=s._select_set;if(!e.page.info().serverSide)for(var u=g.length-1;u>=0;u--)s.aIds[g[u]]||g.splice(u,1);var w=g.length?g.length:e.rows({selected:!0}).count(),o=e.columns({selected:!0}).count(),r=e.cells({selected:!0}).count();s._select_mode==="subtractive"&&(w=e.page.info().recordsDisplay-g.length);var t=function(h,Q,d){h.append(dt('<span class="select-item"/>').append(e.i18n("select."+Q+"s",{_:"%d "+Q+"s selected",0:"",1:"1 "+Q+" selected"},d)))},A=dt(i),a=dt('<span class="select-info"/>');t(a,"row",w),t(a,"column",o),t(a,"cell",r);var f=A.children("span.select-info");f.length&&f.remove(),a.text()!==""&&A.append(a)}}function A0(e,i){var s=e.settings()[0],g=s.aoColumns;e.columns().iterator("column",function(u,w){var o=g[w];if(va(o)){var r=e.column(w).header(),t=dt("div.dt-column-header",r);if(t.length&&(r=t),!dt("input",r).length){var A=dt("<input>").attr({class:xn(!1),type:"checkbox","aria-label":e.i18n("select.aria.headerCheckbox")||"Select all rows"}).appendTo(r).on("change",function(){this.checked?i=="select-page"?e.rows({page:"current"}).select():e.rows({search:"applied"}).select():i=="select-page"?e.rows({page:"current",selected:!0}).deselect():e.rows({selected:!0}).deselect()}).on("click",function(a){a.stopPropagation()});e.on("draw select deselect",function(a,f,h){if(h==="row"||!h){var Q=t0(e,i);Q.search&&Q.search<=Q.count&&Q.search===Q.available?A.prop("checked",!0).prop("indeterminate",!1):Q.search===0&&Q.count===0?A.prop("checked",!1).prop("indeterminate",!1):A.prop("checked",!1).prop("indeterminate",!0)}})}}})}function e0(e){var i=e.settings()[0],s=i._select.keys,g=i._select.keysWrap,u="dts-keys-"+i.sTableId;s?(dt(e.rows({page:"current"}).nodes()).attr("tabindex",0),e.on("draw."+u,function(){dt(e.rows({page:"current"}).nodes()).attr("tabindex",0)}),dt(document).on("keydown."+u,function(w){var o=w.keyCode,r=document.activeElement;if([9,13,32,38,40].includes(o)){var t=e.rows({page:"current"}).nodes().toArray(),A=t.indexOf(r),a=!0,f=e.page.info();if(A!==-1){if(o===9)w.shift===!1&&A===t.length-1?zn(e,"next",":first-child"):w.shift===!0&&A===0?zn(e,"previous",":last-child"):a=!1;else if(o===13||o===32){var h=e.row(r);h.selected()?h.deselect():h.select()}else o===38?A>0?t[A-1].focus():f.start>0?zn(e,"previous",":last-child"):g&&zn(e,"last",":last-child"):A<t.length-1?t[A+1].focus():f.page<f.pages-1?zn(e,"next",":first-child"):g&&zn(e,"first",":first-child");a&&(w.stopPropagation(),w.preventDefault())}}})):(dt(e.rows().nodes()).removeAttr("tabindex"),e.off("draw."+u),dt(document).off("keydown."+u))}function zn(e,i,s){e.one("draw",function(){e.row(s).node().focus()}).page(i).draw(!1)}function t0(e,i){var s=e.settings()[0],g=s._select.selectable,u=0,w=i=="select-page"?e.rows({page:"current",selected:!0}).count():e.rows({selected:!0}).count(),o=i=="select-page"?e.rows({page:"current",selected:!0}).count():e.rows({search:"applied",selected:!0}).count();if(!g)u=i=="select-page"?e.rows({page:"current"}).count():e.rows({search:"applied"}).count();else for(var r=i=="select-page"?e.rows({page:"current"}).indexes():e.rows({search:"applied"}).indexes(),t=0;t<r.length;t++){var A=s.aoData[r[t]],a=g(A._aData,A.nTr,r[t]);a&&u++}return{available:u,count:w,search:o}}function r0(e){var i=new Be.Api(e);e._select_init=!0,e._select_mode="additive",e._select_set=[],e.aoRowCreatedCallback.push(function(s,g,u){var w,o,r=e.aoData[u],t=i.row(u).id();for((r._select_selected||e._select_mode==="additive"&&e._select_set.includes(t)||e._select_mode==="subtractive"&&!e._select_set.includes(t))&&(r._select_selected=!0,dt(s).addClass(e._select.className).find("input."+xn(!0)).prop("checked",!0)),w=0,o=e.aoColumns.length;w<o;w++)(e.aoColumns[w]._select_selected||r._selected_cells&&r._selected_cells[w])&&dt(r.anCells[w]).addClass(e._select.className)}),i0(i),i.on("info.dt",function(s,g,u){g._select.infoEls.includes(u)||g._select.infoEls.push(u),jB(i,u)}),i.on("select.dtSelect.dt deselect.dtSelect.dt",function(){e._select.infoEls.forEach(function(s){jB(i,s)}),i.state.save()}),i.on("destroy.dtSelect",function(){dt(i.rows({selected:!0}).nodes()).removeClass(i.settings()[0]._select.className),dt("input."+xn(!0),i.table().header()).remove(),Sn(i),i.off(".dtSelect"),dt("body").off(".dtSelect"+bo(i.table().node()))})}function JB(e,i,s,g){var u=e[i+"s"]({search:"applied"}).indexes(),w=u.indexOf(g),o=u.indexOf(s);if(!e[i+"s"]({selected:!0}).any()&&w===-1)u.splice(u.indexOf(s)+1,u.length);else{if(w>o){var r=o;o=w,w=r}u.splice(o+1,u.length),u.splice(0,w)}e[i](s,{selected:!0}).any()?(u.splice(u.indexOf(s),1),e[i+"s"](u).deselect()):e[i+"s"](u).select()}function ys(e,i){if(i||e._select.style==="single"){var s=new Be.Api(e);s.rows({selected:!0}).deselect(),s.columns({selected:!0}).deselect(),s.cells({selected:!0}).deselect()}}function Va(e,i,s,g,u){var w=i.select.style(),o=i.select.toggleable(),r=i[g](u,{selected:!0}).any();if(!(r&&!o))if(w==="os")if(e.ctrlKey||e.metaKey)i[g](u).select(!r);else if(e.shiftKey)g==="cell"?kB(i,u,s._select_lastCell||null):JB(i,g,u,s._select_lastCell?s._select_lastCell[g]:null);else{var t=i[g+"s"]({selected:!0});r&&t.flatten().length===1?i[g](u).deselect():(t.deselect(),i[g](u).select())}else w=="multi+shift"&&e.shiftKey?g==="cell"?kB(i,u,s._select_lastCell||null):JB(i,g,u,s._select_lastCell?s._select_lastCell[g]:null):i[g](u).select(!r)}function bo(e){return e.id.replace(/[^a-zA-Z0-9\-\_]/g,"-")}function i0(e){e.on("select",function(i,s,g,u){if(g==="row"){var w=e.settings()[0];w._select_mode==="additive"?OB(e,w._select_set,u):WB(e,w._select_set,u)}}),e.on("deselect",function(i,s,g,u){if(g==="row"){var w=e.settings()[0];w._select_mode==="additive"?WB(e,w._select_set,u):OB(e,w._select_set,u)}})}function OB(e,i,s){for(var g=0;g<s.length;g++){var u=e.row(s[g]).id();u&&u!=="undefined"&&!i.includes(u)&&i.push(u)}}function WB(e,i,s){for(var g=0;g<s.length;g++){var u=e.row(s[g]).id(),w=i.indexOf(u);w!==-1&&i.splice(w,1)}}dt.each([{type:"row",prop:"aoData"},{type:"column",prop:"aoColumns"}],function(e,i){Be.ext.selector[i.type].push(function(s,g,u){var w=g.selected,o,r=[];if(w!==!0&&w!==!1)return u;for(var t=0,A=u.length;t<A;t++)o=s[i.prop][u[t]],o&&(w===!0&&o._select_selected===!0||w===!1&&!o._select_selected)&&r.push(u[t]);return r})});Be.ext.selector.cell.push(function(e,i,s){var g=i.selected,u,w=[];if(g===void 0)return s;for(var o=0,r=s.length;o<r;o++)u=e.aoData[s[o].row],u&&(g===!0&&u._selected_cells&&u._selected_cells[s[o].column]===!0||g===!1&&(!u._selected_cells||!u._selected_cells[s[o].column]))&&w.push(s[o]);return w});var zr=Be.Api.register,jn=Be.Api.registerPlural;zr("select()",function(){return this.iterator("table",function(e){Be.select.init(new Be.Api(e))})});zr("select.blurable()",function(e){return e===void 0?this.context[0]._select.blurable:this.iterator("table",function(i){i._select.blurable=e})});zr("select.toggleable()",function(e){return e===void 0?this.context[0]._select.toggleable:this.iterator("table",function(i){i._select.toggleable=e})});zr("select.info()",function(e){return e===void 0?this.context[0]._select.info:this.iterator("table",function(i){i._select.info=e})});zr("select.items()",function(e){return e===void 0?this.context[0]._select.items:this.iterator("table",function(i){i._select.items=e,di(new Be.Api(i),"selectItems",[e])})});zr("select.keys()",function(e,i){return e===void 0?this.context[0]._select.keys:this.iterator("table",function(s){s._select||Be.select.init(new Be.Api(s)),s._select.keys=e,s._select.keysWrap=i,e0(new Be.Api(s))})});zr("select.style()",function(e){return e===void 0?this.context[0]._select.style:this.iterator("table",function(i){i._select||Be.select.init(new Be.Api(i)),i._select_init||r0(i),i._select.style=e;var s=new Be.Api(i);e!=="api"?s.ready(function(){Sn(s),Pl(s)}):Sn(s),di(new Be.Api(i),"selectStyle",[e])})});zr("select.selector()",function(e){return e===void 0?this.context[0]._select.selector:this.iterator("table",function(i){var s=new Be.Api(i),g=i._select.style;Sn(s),i._select.selector=e,g&&g!=="api"?s.ready(function(){Sn(s),Pl(s)}):Sn(s)})});zr("select.selectable()",function(e){let i=this.context[0];return e?(i._select.selectable=e,this):i._select.selectable});zr("select.last()",function(e){let i=this.context[0];return e?(i._select_lastCell=e,this):i._select_lastCell});zr("select.cumulative()",function(e){if(e)return this.iterator("table",function(s){if(s._select_mode!==e){var g=new Be.Api(s);if(e==="subtractive"){var u=g.rows({selected:!1}).ids().toArray();s._select_mode=e,s._select_set.length=0,s._select_set.push.apply(s._select_set,u)}else{var w=g.rows({selected:!0}).ids().toArray();s._select_mode=e,s._select_set.length=0,s._select_set.push.apply(s._select_set,w)}}}).draw(!1);let i=this.context[0];return i&&i._select_set?{mode:i._select_mode,rows:i._select_set}:null});jn("rows().select()","row().select()",function(e){var i=this,s=[];return e===!1?this.deselect():(this.iterator("row",function(g,u){ys(g);var w=g.aoData[u],o=g.aoColumns;if(g._select.selectable){var r=g._select.selectable(w._aData,w.nTr,u);if(r===!1)return}dt(w.nTr).addClass(g._select.className),w._select_selected=!0,s.push(u);for(var t=0;t<o.length;t++){var A=o[t];if(A.sType===null&&i.columns().types(),va(A)){var a=w.anCells;a&&a[t]&&dt("input."+xn(!0),a[t]).prop("checked",!0),w._aSortData!==null&&(w._aSortData[t]=null)}}}),this.iterator("table",function(g){di(i,"select",["row",s],!0)}),this)});zr("row().selected()",function(){var e=this.context[0];return!!(e&&this.length&&e.aoData[this[0]]&&e.aoData[this[0]]._select_selected)});zr("row().focus()",function(){var e=this.context[0];e&&this.length&&e.aoData[this[0]]&&e.aoData[this[0]].nTr&&e.aoData[this[0]].nTr.focus()});zr("row().blur()",function(){var e=this.context[0];e&&this.length&&e.aoData[this[0]]&&e.aoData[this[0]].nTr&&e.aoData[this[0]].nTr.blur()});jn("columns().select()","column().select()",function(e){var i=this;return e===!1?this.deselect():(this.iterator("column",function(s,g){ys(s),s.aoColumns[g]._select_selected=!0;var u=new Be.Api(s).column(g);dt(u.header()).addClass(s._select.className),dt(u.footer()).addClass(s._select.className),u.nodes().to$().addClass(s._select.className)}),this.iterator("table",function(s,g){di(i,"select",["column",i[g]],!0)}),this)});zr("column().selected()",function(){var e=this.context[0];return!!(e&&this.length&&e.aoColumns[this[0]]&&e.aoColumns[this[0]]._select_selected)});jn("cells().select()","cell().select()",function(e){var i=this;return e===!1?this.deselect():(this.iterator("cell",function(s,g,u){ys(s);var w=s.aoData[g];w._selected_cells===void 0&&(w._selected_cells=[]),w._selected_cells[u]=!0,w.anCells&&dt(w.anCells[u]).addClass(s._select.className)}),this.iterator("table",function(s,g){di(i,"select",["cell",i.cells(i[g]).indexes().toArray()],!0)}),this)});zr("cell().selected()",function(){var e=this.context[0];if(e&&this.length){var i=e.aoData[this[0][0].row];if(i&&i._selected_cells&&i._selected_cells[this[0][0].column])return!0}return!1});jn("rows().deselect()","row().deselect()",function(){var e=this;return this.iterator("row",function(i,s){var g=i.aoData[s],u=i.aoColumns;dt(g.nTr).removeClass(i._select.className),g._select_selected=!1,i._select_lastCell=null;for(var w=0;w<u.length;w++){var o=u[w];if(o.sType===null&&e.columns().types(),va(o)){var r=g.anCells;r&&r[w]&&dt("input."+xn(!0),g.anCells[w]).prop("checked",!1),g._aSortData!==null&&(g._aSortData[w]=null)}}}),this.iterator("table",function(i,s){di(e,"deselect",["row",e[s]],!0)}),this});jn("columns().deselect()","column().deselect()",function(){var e=this;return this.iterator("column",function(i,s){i.aoColumns[s]._select_selected=!1;var g=new Be.Api(i),u=g.column(s);dt(u.header()).removeClass(i._select.className),dt(u.footer()).removeClass(i._select.className),g.cells(null,s).indexes().each(function(w){var o=i.aoData[w.row],r=o._selected_cells;o.anCells&&(!r||!r[w.column])&&dt(o.anCells[w.column]).removeClass(i._select.className)})}),this.iterator("table",function(i,s){di(e,"deselect",["column",e[s]],!0)}),this});jn("cells().deselect()","cell().deselect()",function(){var e=this;return this.iterator("cell",function(i,s,g){var u=i.aoData[s];u._selected_cells!==void 0&&(u._selected_cells[g]=!1),u.anCells&&!i.aoColumns[g]._select_selected&&dt(u.anCells[g]).removeClass(i._select.className)}),this.iterator("table",function(i,s){di(e,"deselect",["cell",e[s]],!0)}),this});function Rn(e,i){return function(s){return s.i18n("buttons."+e,i)}}function Xa(e){var i=e._eventNamespace;return"draw.dt.DT"+i+" select.dt.DT"+i+" deselect.dt.DT"+i}function n0(e,i){return!!(i.limitTo.indexOf("rows")!==-1&&e.rows({selected:!0}).any()||i.limitTo.indexOf("columns")!==-1&&e.columns({selected:!0}).any()||i.limitTo.indexOf("cells")!==-1&&e.cells({selected:!0}).any())}var Za=0;dt.extend(Be.ext.buttons,{selected:{text:Rn("selected","Selected"),className:"buttons-selected",limitTo:["rows","columns","cells"],init:function(e,i,s){var g=this;s._eventNamespace=".select"+Za++,e.on(Xa(s),function(){g.enable(n0(e,s))}),this.disable()},destroy:function(e,i,s){e.off(s._eventNamespace)}},selectedSingle:{text:Rn("selectedSingle","Selected single"),className:"buttons-selected-single",init:function(e,i,s){var g=this;s._eventNamespace=".select"+Za++,e.on(Xa(s),function(){var u=e.rows({selected:!0}).flatten().length+e.columns({selected:!0}).flatten().length+e.cells({selected:!0}).flatten().length;g.enable(u===1)}),this.disable()},destroy:function(e,i,s){e.off(s._eventNamespace)}},selectAll:{text:Rn("selectAll","Select all"),className:"buttons-select-all",action:function(e,i,s,g){var u=this.select.items(),w=g.selectorModifier;w?(typeof w=="function"&&(w=w.call(i,e,i,s,g)),this[u+"s"](w).select()):this[u+"s"]().select()}},selectNone:{text:Rn("selectNone","Deselect all"),className:"buttons-select-none",action:function(){ys(this.settings()[0],!0)},init:function(e,i,s){var g=this;s._eventNamespace=".select"+Za++,e.on(Xa(s),function(){var u=e.rows({selected:!0}).flatten().length+e.columns({selected:!0}).flatten().length+e.cells({selected:!0}).flatten().length;g.enable(u>0)}),this.disable()},destroy:function(e,i,s){e.off(s._eventNamespace)}},showSelected:{text:Rn("showSelected","Show only selected"),className:"buttons-show-selected",action:function(e,i){if(i.search.fixed("dt-select"))i.search.fixed("dt-select",null),this.active(!1);else{var s=i.settings()[0].aoData;i.search.fixed("dt-select",function(g,u,w){return s[w]._select_selected}),this.active(!0)}i.draw()}}});dt.each(["Row","Column","Cell"],function(e,i){var s=i.toLowerCase();Be.ext.buttons["select"+i+"s"]={text:Rn("select"+i+"s","Select "+s+"s"),className:"buttons-select-"+s+"s",action:function(){this.select.items(s)},init:function(g){var u=this;this.active(g.select.items()===s),g.on("selectItems.dt.DT",function(w,o,r){u.active(r===s)})}}});Be.type("select-checkbox",{className:"dt-select",detect:Be.versionCheck("2.1")?{oneOf:function(){return!1},allOf:function(){return!1},init:function(e,i,s){return va(i)}}:function(e){return e==="select-checkbox"?e:!1},order:{pre:function(e){return e==="X"?-1:0}}});dt.extend(!0,Be.defaults.oLanguage,{select:{aria:{rowCheckbox:"Select row"}}});Be.render.select=function(e,i){var s=e?Be.util.get(e):null,g=i?Be.util.get(i):null,u=function(w,o,r,t){var A=t.settings.aoData[t.row],a=A._select_selected,f=t.settings.oLanguage.select.aria.rowCheckbox,h=t.settings._select.selectable;if(o==="display"){if(h){var Q=h(r,A.nTr,t.row);if(Q===!1)return""}return dt("<input>").attr({"aria-label":f,class:xn(),name:g?g(r):null,type:"checkbox",value:s?s(r):null,checked:a}).on("input",function(d){d.preventDefault(),this.checked=dt(this).closest("tr").hasClass("selected")})[0]}else{if(o==="type")return"select-checkbox";if(o==="filter")return""}return a?"X":""};return u._name="selectCheckbox",u};Be.ext.order["select-checkbox"]=function(e,i){return this.api().column(i,{order:"index"}).nodes().map(function(s){return e._select.items==="row"?dt(s).parent().hasClass(e._select.className).toString():e._select.items==="cell"?dt(s).hasClass(e._select.className).toString():!1})};dt.fn.DataTable.select=Be.select;dt(document).on("i18n.dt.dtSelect preInit.dt.dtSelect",function(e,i){e.namespace==="dt"&&Be.select.init(new Be.Api(i))});/*! Bootstrap 5 styling wrapper for Select
 * © SpryMedia Ltd - datatables.net/license
 */Be.select.classes.checkbox="form-check-input dt-select-checkbox";/*! Buttons for DataTables 3.2.6
 * © SpryMedia Ltd - datatables.net/license
 */let Ue=ti;var s0=0,a0=0,Vr=Be.ext.buttons,io=null;function Uo(e,i,s){Ue.fn.animate?e.stop().fadeIn(i,s):e.css("display","block")}function zo(e,i,s){Ue.fn.animate?e.stop().fadeOut(i,s):(e.css("display","none"),s&&s.call(e))}var qt=function(e,i){if(!Be.versionCheck("2"))throw"Warning: Buttons requires DataTables 2 or newer";if(!(this instanceof qt))return function(s){return new qt(s,e).container()};typeof i>"u"&&(i={}),i===!0&&(i={}),Array.isArray(i)&&(i={buttons:i}),this.c=Ue.extend(!0,{},qt.defaults,i),i.buttons&&(this.c.buttons=i.buttons),this.s={dt:new Be.Api(e),buttons:[],listenKeys:"",namespace:"dtb"+s0++},this.dom={container:Ue("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};Ue.extend(qt.prototype,{action:function(e,i){var s=this._nodeToButton(e);return i===void 0?s.conf.action:(s.conf.action=i,this)},active:function(e,i){var s=this._nodeToButton(e),g=this.c.dom.button.active,u=Ue(s.node);return s.inCollection&&this.c.dom.collection.button&&this.c.dom.collection.button.active!==void 0&&(g=this.c.dom.collection.button.active),i===void 0?u.hasClass(g):(u.toggleClass(g,i===void 0?!0:i),this)},add:function(e,i,s){var g=this.s.buttons;if(typeof i=="string"){for(var u=i.split("-"),w=this.s,o=0,r=u.length-1;o<r;o++)w=w.buttons[u[o]*1];g=w.buttons,i=u[u.length-1]*1}let t=this._expandButton(g,e,e!==void 0?e.split:void 0,(e===void 0||e.split===void 0||e.split.length===0)&&w!==void 0,!1,i);return(s===void 0||s===!0)&&this._draw(),t},collectionRebuild:function(e,i){var s=this._nodeToButton(e);if(i!==void 0){var g;for(g=s.buttons.length-1;g>=0;g--)this.remove(s.buttons[g].node);for(s.conf.prefixButtons&&i.unshift.apply(i,s.conf.prefixButtons),s.conf.postfixButtons&&i.push.apply(i,s.conf.postfixButtons),g=0;g<i.length;g++){var u=i[g];this._expandButton(s.buttons,u,u!==void 0&&u.config!==void 0&&u.config.split!==void 0,!0,u.parentConf!==void 0&&u.parentConf.split!==void 0,null,u.parentConf)}}this._draw(s.collection,s.buttons)},container:function(){return this.dom.container},disable:function(e){var i=this._nodeToButton(e);return i.isSplit?Ue(i.node.childNodes[0]).addClass(this.c.dom.button.disabled).prop("disabled",!0):Ue(i.node).addClass(this.c.dom.button.disabled).prop("disabled",!0),i.disabled=!0,this._checkSplitEnable(),this},destroy:function(){Ue("body").off("keyup."+this.s.namespace);var e=this.s.buttons.slice(),i,s;for(i=0,s=e.length;i<s;i++)this.remove(e[i].node);this.dom.container.remove();var g=this.s.dt.settings()[0];for(i=0,s=g.length;i<s;i++)if(g.inst===this){g.splice(i,1);break}return this},enable:function(e,i){if(i===!1)return this.disable(e);var s=this._nodeToButton(e);return s.isSplit?Ue(s.node.childNodes[0]).removeClass(this.c.dom.button.disabled).prop("disabled",!1):Ue(s.node).removeClass(this.c.dom.button.disabled).prop("disabled",!1),s.disabled=!1,this._checkSplitEnable(),this},index:function(e,i,s){i||(i="",s=this.s.buttons);for(var g=0,u=s.length;g<u;g++){var w=s[g].buttons;if(s[g].node===e)return i+g;if(w&&w.length){var o=this.index(e,g+"-",w);if(o!==null)return o}}return null},name:function(){return this.c.name},node:function(e){if(!e)return this.dom.container;var i=this._nodeToButton(e);return Ue(i.node)},processing:function(e,i){var s=this.s.dt,g=this._nodeToButton(e);return i===void 0?Ue(g.node).hasClass("processing"):(Ue(g.node).toggleClass("processing",i),Ue(s.table().node()).triggerHandler("buttons-processing.dt",[i,s.button(e),s,Ue(e),g.conf]),this)},remove:function(e){var i=this._nodeToButton(e),s=this._nodeToHost(e),g=this.s.dt;if(i.buttons.length)for(var u=i.buttons.length-1;u>=0;u--)this.remove(i.buttons[u].node);i.conf.destroying=!0,i.conf.destroy&&i.conf.destroy.call(g.button(e),g,Ue(e),i.conf),this._removeKey(i.conf),Ue(i.node).remove(),i.inserter&&Ue(i.inserter).remove();var w=Ue.inArray(i,s);return s.splice(w,1),this},text:function(e,i){var s=this._nodeToButton(e),g=s.textNode,u=this.s.dt,w=Ue(s.node),o=function(r){return typeof r=="function"?r(u,w,s.conf):r};return i===void 0?o(s.conf.text):(s.conf.text=i,g.html(o(i)),this)},_constructor:function(){var e=this,i=this.s.dt,s=i.settings()[0],g=this.c.buttons;s._buttons||(s._buttons=[]),s._buttons.push({inst:this,name:this.c.name});for(var u=0,w=g.length;u<w;u++)this.add(g[u]);i.on("destroy",function(o,r){r===s&&e.destroy()}),Ue("body").on("keyup."+this.s.namespace,function(o){if(!document.activeElement||document.activeElement===document.body){var r=String.fromCharCode(o.keyCode).toLowerCase();e.s.listenKeys.toLowerCase().indexOf(r)!==-1&&e._keypress(r,o)}})},_addKey:function(e){e.key&&(this.s.listenKeys+=Ue.isPlainObject(e.key)?e.key.key:e.key)},_draw:function(e,i){e||(e=this.dom.container,i=this.s.buttons),e.children().detach();for(var s=0,g=i.length;s<g;s++)e.append(i[s].inserter),e.append(" "),i[s].buttons&&i[s].buttons.length&&this._draw(i[s].collection,i[s].buttons)},_expandButton:function(e,i,s,g,u,w,o){var r=this.s.dt,t=!1,A=this.c.dom.collection,a=Array.isArray(i)?i:[i],f;i===void 0&&(a=Array.isArray(s)?s:[s]);for(var h=0,Q=a.length;h<Q;h++){var d=this._resolveExtends(a[h]);if(d){if(t=!!(d.config&&d.config.split),Array.isArray(d)){this._expandButton(e,d,E!==void 0&&E.conf!==void 0?E.conf.split:void 0,g,o!==void 0&&o.split!==void 0,w,o);continue}var E=this._buildButton(d,g,d.split!==void 0||d.config!==void 0&&d.config.split!==void 0,u);if(E){if(w!=null?(e.splice(w,0,E),w++):e.push(E),E.conf.dropIcon&&!E.conf.split&&Ue(E.node).addClass(this.c.dom.button.dropClass).append(this.c.dom.button.dropHtml),E.conf.buttons&&(E.collection=Ue("<"+A.container.content.tag+"/>"),E.conf._collection=E.collection,this._expandButton(E.buttons,E.conf.buttons,E.conf.split,!t,t,w,E.conf)),E.conf.split){E.collection=Ue("<"+A.container.tag+"/>"),E.conf._collection=E.collection;for(var D=0;D<E.conf.split.length;D++){var Y=E.conf.split[D];typeof Y=="object"&&(Y.parent=o,Y.collectionLayout===void 0&&(Y.collectionLayout=E.conf.collectionLayout),Y.dropup===void 0&&(Y.dropup=E.conf.dropup),Y.fade===void 0&&(Y.fade=E.conf.fade))}this._expandButton(E.buttons,E.conf.buttons,E.conf.split,!t,t,w,E.conf)}E.conf.parent=o,d.init&&d.init.call(r.button(E.node),r,Ue(E.node),d),f=E.node}}}return f},_buildButton:function(e,i,s,g){var u=this,w=this.c.dom,o,r=this.s.dt,t=!1,A=function(x){return typeof x=="function"?x(r,h,e):x},a=Ue.extend(!0,{},w.button);if(i&&s&&w.collection.split?Ue.extend(!0,a,w.collection.split.action):g||i?Ue.extend(!0,a,w.collection.button):s&&Ue.extend(!0,a,w.split.button),e.spacer){var f=Ue("<"+a.spacer.tag+"/>").addClass("dt-button-spacer "+e.style+" "+a.spacer.className).html(A(e.text));return{conf:e,node:f,nodeChild:null,inserter:f,buttons:[],inCollection:i,isSplit:s,collection:null,textNode:f}}if(e.available&&!e.available(r,e)&&!e.html)return!1;var h;if(e.html)h=Ue(e.html);else{var Q=function(x,X,B,v,bA){v.action.call(X.button(B),x,X,B,v,bA),Ue(X.table().node()).triggerHandler("buttons-action.dt",[X.button(B),X,B,v])},d=function(x,X,B,v){v.async?(u.processing(B[0],!0),setTimeout(function(){Q(x,X,B,v,function(){u.processing(B[0],!1)})},v.async)):Q(x,X,B,v,function(){})},E=e.tag||a.tag,D=e.clickBlurs===void 0?!0:e.clickBlurs;if(h=Ue("<"+E+"/>").addClass(a.className).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(x){x.preventDefault(),!h.hasClass(a.disabled)&&e.action&&d(x,r,h,e),D&&h.trigger("blur")}).on("keypress.dtb",function(x){x.keyCode===13&&(x.preventDefault(),!h.hasClass(a.disabled)&&e.action&&d(x,r,h,e))}),E.toLowerCase()==="a"&&h.attr("href","#"),E.toLowerCase()==="button"&&h.attr("type","button"),a.liner.tag){var Y=a.liner.tag.toLowerCase(),z=Ue("<"+Y+"/>").html(A(e.text)).addClass(a.liner.className);Y==="a"&&z.attr("href","#"),(Y==="a"||Y==="button")&&(z.attr("tabindex",this.s.dt.settings()[0].iTabIndex),t=!0),h.append(z),o=z}else h.html(A(e.text)),o=h;t||h.attr("tabindex",this.s.dt.settings()[0].iTabIndex),e.enabled===!1&&h.addClass(a.disabled),e.className&&h.addClass(e.className),e.titleAttr&&h.attr("title",A(e.titleAttr)),e.attr&&h.attr(e.attr),e.namespace||(e.namespace=".dt-button-"+a0++),e.config!==void 0&&e.config.split&&(e.split=e.config.split)}var L=this.c.dom.buttonContainer,T;L&&L.tag?T=Ue("<"+L.tag+"/>").addClass(L.className).append(h):T=h,this._addKey(e),this.c.buttonCreated&&(T=this.c.buttonCreated(e,T));var b;if(s){var N=i?Ue.extend(!0,this.c.dom.split,this.c.dom.collection.split):this.c.dom.split,O=N.wrapper;b=Ue("<"+O.tag+"/>").addClass(O.className).append(h);var gA=Ue.extend(e,{autoClose:!0,align:N.dropdown.align,attr:{"aria-haspopup":"dialog","aria-expanded":!1},className:N.dropdown.className,closeButton:!1,splitAlignClass:N.dropdown.splitAlignClass,text:N.dropdown.text});this._addKey(gA);var oA=function(x,X,B,v){Vr.split.action.call(X.button(b),x,X,B,v),Ue(X.table().node()).triggerHandler("buttons-action.dt",[X.button(B),X,B,v]),B.attr("aria-expanded",!0)},q=Ue('<button class="'+N.dropdown.className+' dt-button"></button>').html(this.c.dom.button.dropHtml).addClass(this.c.dom.button.dropClass).on("click.dtb",function(x){x.preventDefault(),x.stopPropagation(),q.hasClass(a.disabled)||oA(x,r,q,gA),D&&q.trigger("blur")}).on("keypress.dtb",function(x){x.keyCode===13&&(x.preventDefault(),q.hasClass(a.disabled)||oA(x,r,q,gA))});e.split.length===0&&q.addClass("dtb-hide-drop"),b.append(q).attr(gA.attr)}var Z=s?b.get(0):h.get(0);return{conf:e,node:Z,nodeChild:Z&&Z.children&&Z.children.length?Z.children[0]:null,inserter:s?b:T,buttons:[],inCollection:i,isSplit:s,inSplit:g,collection:null,textNode:o}},_checkSplitEnable:function(e){e||(e=this.s.buttons);for(var i=0;i<e.length;i++){var s=e[i];if(s.isSplit){var g=s.node.childNodes[1];this._checkAnyEnabled(s.buttons)?Ue(g).removeClass(this.c.dom.button.disabled).prop("disabled",!1):Ue(g).addClass(this.c.dom.button.disabled).prop("disabled",!1)}else s.isCollection&&this._checkSplitEnable(s.buttons)}},_checkAnyEnabled:function(e){for(var i=0;i<e.length;i++)if(!e[i].disabled)return!0;return!1},_nodeToButton:function(e,i){i||(i=this.s.buttons);for(var s=0,g=i.length;s<g;s++){if(i[s].node===e||i[s].nodeChild===e)return i[s];if(i[s].buttons.length){var u=this._nodeToButton(e,i[s].buttons);if(u)return u}}},_nodeToHost:function(e,i){i||(i=this.s.buttons);for(var s=0,g=i.length;s<g;s++){if(i[s].node===e)return i;if(i[s].buttons.length){var u=this._nodeToHost(e,i[s].buttons);if(u)return u}}},_keypress:function(e,i){if(!i._buttonsHandled){var s=function(u,w){if(u.key){if(u.key===e)i._buttonsHandled=!0,Ue(w).click();else if(Ue.isPlainObject(u.key)){if(u.key.key!==e||u.key.shiftKey&&!i.shiftKey||u.key.altKey&&!i.altKey||u.key.ctrlKey&&!i.ctrlKey||u.key.metaKey&&!i.metaKey)return;i._buttonsHandled=!0,Ue(w).click()}}},g=function(u){for(var w=0,o=u.length;w<o;w++)s(u[w].conf,u[w].node),u[w].buttons.length&&g(u[w].buttons)};g(this.s.buttons)}},_removeKey:function(e){if(e.key){var i=Ue.isPlainObject(e.key)?e.key.key:e.key,s=this.s.listenKeys.split(""),g=Ue.inArray(i,s);s.splice(g,1),this.s.listenKeys=s.join("")}},_resolveExtends:function(e){var i=this,s=this.s.dt,g,u,w=function(a){for(var f=0;!Ue.isPlainObject(a)&&!Array.isArray(a);){if(a===void 0)return;if(typeof a=="function"){if(a=a.call(i,s,e),!a)return!1}else if(typeof a=="string"){if(!Vr[a])return{html:a};a=Vr[a]}if(f++,f>30)throw"Buttons: Too many iterations"}return Array.isArray(a)?a:Ue.extend({},a)};for(e=w(e);e&&e.extend;){if(!Vr[e.extend])throw"Cannot extend unknown button type: "+e.extend;var o=w(Vr[e.extend]);if(Array.isArray(o))return o;if(!o)return!1;var r=o.className;e.config!==void 0&&o.config!==void 0&&(e.config=Ue.extend({},o.config,e.config)),e=Ue.extend({},o,e),r&&e.className!==r&&(e.className=r+" "+e.className),e.extend=o.extend}var t=e.postfixButtons;if(t)for(e.buttons||(e.buttons=[]),g=0,u=t.length;g<u;g++)e.buttons.push(t[g]);var A=e.prefixButtons;if(A)for(e.buttons||(e.buttons=[]),g=0,u=A.length;g<u;g++)e.buttons.splice(g,0,A[g]);return e},_popover:function(e,i,s){var g=i,u=this.c,w=!1,o=Ue.extend({align:"button-left",autoClose:!1,background:!0,backgroundClassName:"dt-button-background",closeButton:!0,containerClassName:u.dom.collection.container.className,contentClassName:u.dom.collection.container.content.className,collectionLayout:"",collectionTitle:"",dropup:!1,fade:400,popoverTitle:"",rightAlignClassName:"dt-button-right",tag:u.dom.collection.container.tag},s),r=o.tag+"."+o.containerClassName.replace(/ /g,"."),t=i.node(),A=o.collectionLayout.includes("fixed")?Ue("body"):i.node(),a=function(){w=!0,zo(Ue(r),o.fade,function(){Ue(this).detach()}),Ue(g.buttons('[aria-haspopup="dialog"][aria-expanded="true"]').nodes()).attr("aria-expanded","false"),Ue("div.dt-button-background").off("click.dtb-collection"),qt.background(!1,o.backgroundClassName,o.fade,A),Ue(window).off("resize.resize.dtb-collection"),Ue("body").off(".dtb-collection"),g.off("buttons-action.b-internal"),g.off("destroy.dtb-popover"),Ue("body").trigger("buttons-popover-hide.dt")};if(e===!1){a();return}var f=Ue(g.buttons('[aria-haspopup="dialog"][aria-expanded="true"]').nodes());if(f.length&&(A.closest(r).length&&(A=f.eq(0)),a()),o.sort){var h=Ue("button",e).map(function(x,X){return{text:Ue(X).text(),el:X}}).toArray();h.sort(function(x,X){return x.text.localeCompare(X.text)}),Ue(e).append(h.map(function(x){return x.el}))}var Q=Ue(".dt-button",e).length,d="";Q===3?d="dtb-b3":Q===2?d="dtb-b2":Q===1&&(d="dtb-b1");var E=Ue("<"+o.tag+"/>").addClass(o.containerClassName).addClass(o.collectionLayout).addClass(o.splitAlignClass).addClass(d).css("display","none").attr({"aria-modal":!0,role:"dialog"});e=Ue(e).addClass(o.contentClassName).attr("role","menu").appendTo(E),t.attr("aria-expanded","true"),A.parents("body")[0]!==document.body&&(A=Ue(document.body).children("div, section, p").last()),o.popoverTitle?E.prepend('<div class="dt-button-collection-title">'+o.popoverTitle+"</div>"):o.collectionTitle&&E.prepend('<div class="dt-button-collection-title">'+o.collectionTitle+"</div>"),o.closeButton&&E.prepend('<div class="dtb-popover-close">&times;</div>').addClass("dtb-collection-closeable"),Uo(E.insertAfter(A),o.fade);var D=Ue(i.table().container()),Y=E.css("position");if((o.span==="container"||o.align==="dt-container")&&(A=A.parent(),E.css("width",D.width())),Y==="absolute"){var z=Ue(A[0].offsetParent),L=A.position(),T=A.offset(),b=z.offset(),N=z.position(),O=window.getComputedStyle(z[0]);b.height=z.outerHeight(),b.width=z.width()+parseFloat(O.paddingLeft),b.right=b.left+b.width,b.bottom=b.top+b.height;var gA=L.top+A.outerHeight(),oA=L.left;E.css({top:gA,left:oA}),O=window.getComputedStyle(E[0]);var q=E.offset();q.height=E.outerHeight(),q.width=E.outerWidth(),q.right=q.left+q.width,q.bottom=q.top+q.height,q.marginTop=parseFloat(O.marginTop),q.marginBottom=parseFloat(O.marginBottom),o.dropup&&(gA=L.top-q.height-q.marginTop-q.marginBottom),(o.align==="button-right"||E.hasClass(o.rightAlignClassName))&&(oA=L.left-q.width+A.outerWidth()),(o.align==="dt-container"||o.align==="container")&&oA<L.left&&(oA=-L.left),N.left+oA+q.width>Ue(window).width()&&(oA=Ue(window).width()-q.width-N.left),T.left+oA<0&&(oA=-T.left),N.top+gA+q.height>Ue(window).height()+Ue(window).scrollTop()&&(gA=L.top-q.height-q.marginTop-q.marginBottom),z.offset().top+gA<Ue(window).scrollTop()&&(gA=L.top+A.outerHeight()),E.css({top:gA,left:oA})}else{var Z=function(){var x=Ue(window).height()/2,X=E.height()/2;X>x&&(X=x),E.css("marginTop",X*-1)};Z(),Ue(window).on("resize.dtb-collection",function(){Z()})}o.background&&qt.background(!0,o.backgroundClassName,o.fade,o.backgroundHost||A),Ue("div.dt-button-background").on("click.dtb-collection",function(){}),o.autoClose&&setTimeout(function(){g.on("buttons-action.b-internal",function(x,X,B,v){v[0]!==A[0]&&a()})},0),Ue(E).trigger("buttons-popover.dt"),g.on("destroy.dtb-popover",a),setTimeout(function(){w=!1,Ue("body").on("click.dtb-collection",function(x){if(!w){var X=Ue.fn.addBack?"addBack":"andSelf",B=Ue(x.target).parent()[0];(!Ue(x.target).parents()[X]().filter(e).length&&!Ue(B).hasClass("dt-buttons")||Ue(x.target).hasClass("dt-button-background"))&&a()}}).on("keyup.dtb-collection",function(x){x.keyCode===27&&a()}).on("keydown.dtb-collection",function(x){var X=Ue("a, button",e),B=document.activeElement;x.keyCode===9&&(X.index(B)===-1?(X.first().focus(),x.preventDefault()):x.shiftKey?B===X[0]&&(X.last().focus(),x.preventDefault()):B===X.last()[0]&&(X.first().focus(),x.preventDefault()))})},0)}});qt.background=function(e,i,s,g){s===void 0&&(s=400),g||(g=document.body),e?Uo(Ue("<div/>").addClass(i).css("display","none").insertAfter(g),s):zo(Ue("div."+i),s,function(){Ue(this).removeClass(i).remove()})};qt.instanceSelector=function(e,i){if(e==null)return Ue.map(i,function(w){return w.inst});var s=[],g=Ue.map(i,function(w){return w.name}),u=function(w){if(Array.isArray(w)){for(var o=0,r=w.length;o<r;o++)u(w[o]);return}if(typeof w=="string")if(w.indexOf(",")!==-1)u(w.split(","));else{var t=Ue.inArray(w.trim(),g);t!==-1&&s.push(i[t].inst)}else if(typeof w=="number")s.push(i[w].inst);else if(typeof w=="object"&&w.nodeName)for(var A=0;A<i.length;A++)i[A].inst.dom.container[0]===w&&s.push(i[A].inst);else typeof w=="object"&&s.push(w)};return u(e),s};qt.buttonSelector=function(e,i){for(var s=[],g=function(t,A,a){for(var f,h,Q=0,d=A.length;Q<d;Q++)f=A[Q],f&&(h=a!==void 0?a+Q:Q+"",t.push({node:f.node,name:f.conf.name,idx:h}),f.buttons&&g(t,f.buttons,h+"-"))},u=function(t,A){var a,f,h=[];g(h,A.s.buttons);var Q=Ue.map(h,function(z){return z.node});if(Array.isArray(t)||t instanceof Ue){for(a=0,f=t.length;a<f;a++)u(t[a],A);return}if(t==null||t==="*")for(a=0,f=h.length;a<f;a++)s.push({inst:A,node:h[a].node});else if(typeof t=="number")A.s.buttons[t]&&s.push({inst:A,node:A.s.buttons[t].node});else if(typeof t=="string")if(t.indexOf(",")!==-1){var d=t.split(",");for(a=0,f=d.length;a<f;a++)u(d[a].trim(),A)}else if(t.match(/^\d+(\-\d+)*$/)){var E=Ue.map(h,function(z){return z.idx});s.push({inst:A,node:h[Ue.inArray(t,E)].node})}else if(t.indexOf(":name")!==-1){var D=t.replace(":name","");for(a=0,f=h.length;a<f;a++)h[a].name===D&&s.push({inst:A,node:h[a].node})}else Ue(Q).filter(t).each(function(){s.push({inst:A,node:this})});else if(typeof t=="object"&&t.nodeName){var Y=Ue.inArray(t,Q);Y!==-1&&s.push({inst:A,node:Q[Y]})}},w=0,o=e.length;w<o;w++){var r=e[w];u(i,r)}return s};qt.stripData=function(e,i){return e!==null&&typeof e=="object"&&e.nodeName&&e.nodeType&&(e=e.innerHTML),typeof e!="string"||(e=qt.stripHtmlScript(e),e=qt.stripHtmlComments(e),(!i||i.stripHtml)&&(e=Be.util.stripHtml(e)),(!i||i.trim)&&(e=e.trim()),(!i||i.stripNewlines)&&(e=e.replace(/\n/g," ")),(!i||i.decodeEntities)&&(io?e=io(e):(VB.innerHTML=e,e=VB.value)),(!i||i.escapeExcelFormula)&&e.match(/^[=@\t\r]/)&&(e="'"+e)),e};qt.entityDecoder=function(e){io=e};qt.stripHtmlComments=function(e){var i;do i=e,e=e.replace(/(<!--.*?--!?>)|(<!--[\S\s]+?--!?>)|(<!--[\S\s]*?$)/g,"");while(e!==i);return e};qt.stripHtmlScript=function(e){var i;do i=e,e=e.replace(/<script\b[^<]*(?:(?!<\/script[^>]*>)<[^<]*)*<\/script[^>]*>/gi,"");while(e!==i);return e};qt.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{container:{className:"dt-button-collection",content:{className:"",tag:"div"},tag:"div"}},button:{tag:"button",className:"dt-button",active:"dt-button-active",disabled:"disabled",spacer:{className:"dt-button-spacer",tag:"span"},liner:{tag:"span",className:""},dropClass:"",dropHtml:'<span class="dt-button-down-arrow">&#x25BC;</span>'},split:{action:{className:"dt-button-split-drop-button dt-button",tag:"button"},dropdown:{align:"split-right",className:"dt-button-split-drop",splitAlignClass:"dt-button-split-left",tag:"button"},wrapper:{className:"dt-button-split",tag:"div"}}}};qt.version="3.2.6";Ue.extend(Vr,{collection:{text:function(e){return e.i18n("buttons.collection","Collection")},className:"buttons-collection",closeButton:!1,dropIcon:!0,init:function(e,i){i.attr("aria-expanded",!1)},action:function(e,i,s,g){g._collection.parents("body").length?this.popover(!1,g):this.popover(g._collection,g),e.type==="keypress"&&Ue("a, button",g._collection).eq(0).focus()},attr:{"aria-haspopup":"dialog"}},split:{text:function(e){return e.i18n("buttons.split","Split")},className:"buttons-split",closeButton:!1,init:function(e,i){return i.attr("aria-expanded",!1)},action:function(e,i,s,g){this.popover(g._collection,g)},attr:{"aria-haspopup":"dialog"}},copy:function(){if(Vr.copyHtml5)return"copyHtml5"},csv:function(e,i){if(Vr.csvHtml5&&Vr.csvHtml5.available(e,i))return"csvHtml5"},excel:function(e,i){if(Vr.excelHtml5&&Vr.excelHtml5.available(e,i))return"excelHtml5"},pdf:function(e,i){if(Vr.pdfHtml5&&Vr.pdfHtml5.available(e,i))return"pdfHtml5"},pageLength:function(e){var i=e.settings()[0].aLengthMenu,s=[],g=[],u=function(r){return r.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},r.page.len())};if(Array.isArray(i[0]))s=i[0],g=i[1];else for(var w=0;w<i.length;w++){var o=i[w];Ue.isPlainObject(o)?(s.push(o.value),g.push(o.label)):(s.push(o),g.push(o))}return{extend:"collection",text:u,className:"buttons-page-length",autoClose:!0,buttons:Ue.map(s,function(r,t){return{text:g[t],className:"button-page-length",action:function(A,a){a.page.len(r).draw()},init:function(A,a,f){var h=this,Q=function(){h.active(A.page.len()===r)};A.on("length.dt"+f.namespace,Q),Q()},destroy:function(A,a,f){A.off("length.dt"+f.namespace)}}}),init:function(r,t,A){var a=this;r.on("length.dt"+A.namespace,function(){a.text(A.text)})},destroy:function(r,t,A){r.off("length.dt"+A.namespace)}}},spacer:{style:"empty",spacer:!0,text:function(e){return e.i18n("buttons.spacer","")}}});Be.Api.register("buttons()",function(e,i){i===void 0&&(i=e,e=void 0),this.selector.buttonGroup=e;var s=this.iterator(!0,"table",function(g){if(g._buttons)return qt.buttonSelector(qt.instanceSelector(e,g._buttons),i)},!0);return s._groupSelector=e,s});Be.Api.register("button()",function(e,i){var s=this.buttons(e,i);return s.length>1&&s.splice(1,s.length),s});Be.Api.registerPlural("buttons().active()","button().active()",function(e){return e===void 0?this.map(function(i){return i.inst.active(i.node)}):this.each(function(i){i.inst.active(i.node,e)})});Be.Api.registerPlural("buttons().action()","button().action()",function(e){return e===void 0?this.map(function(i){return i.inst.action(i.node)}):this.each(function(i){i.inst.action(i.node,e)})});Be.Api.registerPlural("buttons().collectionRebuild()","button().collectionRebuild()",function(e){return this.each(function(i){for(var s=0;s<e.length;s++)typeof e[s]=="object"&&(e[s].parentConf=i);i.inst.collectionRebuild(i.node,e)})});Be.Api.register(["buttons().enable()","button().enable()"],function(e){return this.each(function(i){i.inst.enable(i.node,e)})});Be.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(e){e.inst.disable(e.node)})});Be.Api.register("button().index()",function(){var e=null;return this.each(function(i){var s=i.inst.index(i.node);s!==null&&(e=s)}),e});Be.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=Ue();return Ue(this.each(function(i){e=e.add(i.inst.node(i.node))})),e});Be.Api.registerPlural("buttons().processing()","button().processing()",function(e){return e===void 0?this.map(function(i){return i.inst.processing(i.node)}):this.each(function(i){i.inst.processing(i.node,e)})});Be.Api.registerPlural("buttons().text()","button().text()",function(e){return e===void 0?this.map(function(i){return i.inst.text(i.node)}):this.each(function(i){i.inst.text(i.node,e)})});Be.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(e){e.inst.node(e.node).trigger("click")})});Be.Api.register("button().popover()",function(e,i){return this.map(function(s){return s.inst._popover(e,this.button(this[0].node),i)})});Be.Api.register("buttons().containers()",function(){var e=Ue(),i=this._groupSelector;return this.iterator(!0,"table",function(s){if(s._buttons)for(var g=qt.instanceSelector(i,s._buttons),u=0,w=g.length;u<w;u++)e=e.add(g[u].container())}),e});Be.Api.register("buttons().container()",function(){return this.containers().eq(0)});Be.Api.register("button().add()",function(e,i,s){var g=this.context,u;if(g.length){var w=qt.instanceSelector(this._groupSelector,g[0]._buttons);w.length&&(u=w[0].add(i,e,s))}return u?this.button(this._groupSelector,u):this});Be.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(e){e.destroy()}),this});Be.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(e){e.inst.remove(e.node)}),this});var hs;Be.Api.register("buttons.info()",function(e,i,s){var g=this;return e===!1?(this.off("destroy.btn-info"),zo(Ue("#datatables_buttons_info"),400,function(){Ue(this).remove()}),clearTimeout(hs),hs=null,this):(hs&&clearTimeout(hs),Ue("#datatables_buttons_info").length&&Ue("#datatables_buttons_info").remove(),e=e?"<h2>"+e+"</h2>":"",Uo(Ue('<div id="datatables_buttons_info" class="dt-button-info"/>').html(e).append(Ue("<div/>")[typeof i=="string"?"html":"append"](i)).css("display","none").appendTo("body")),s!==void 0&&s!==0&&(hs=setTimeout(function(){g.buttons.info(!1)},s)),this.on("destroy.btn-info",function(){g.buttons.info(!1)}),this)});Be.Api.register("buttons.exportData()",function(e){if(this.context.length)return l0(new Be.Api(this.context[0]),e)});Be.Api.register("buttons.exportInfo()",function(e){return e||(e={}),{filename:o0(e,this),title:B0(e,this),messageTop:KB(this,e,e.message||e.messageTop,"top"),messageBottom:KB(this,e,e.messageBottom,"bottom")}});var o0=function(e,i){var s=e.filename==="*"&&e.title!=="*"&&e.title!==void 0&&e.title!==null&&e.title!==""?e.title:e.filename;if(typeof s=="function"&&(s=s(e,i)),s==null)return null;s.indexOf("*")!==-1&&(s=s.replace(/\*/g,Ue("head > title").text()).trim()),s=s.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");var g=Po(e.extension,e,i);return g||(g=""),s+g},Po=function(e,i,s){return e==null?null:typeof e=="function"?e(i,s):e},B0=function(e,i){var s=Po(e.title,e,i);return s===null?null:s.indexOf("*")!==-1?s.replace(/\*/g,Ue("head > title").text()||"Exported data"):s},KB=function(e,i,s,g){var u=Po(s,i,e);if(u===null)return null;var w=Ue("caption",e.table().container()).eq(0);if(u==="*"){var o=w.css("caption-side");return o!==g?null:w.length?w.text():""}return u},VB=Ue("<textarea/>")[0],l0=function(e,i){var s=Ue.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,escapeExcelFormula:!1,trim:!0,format:{header:function(T){return qt.stripData(T,s)},footer:function(T){return qt.stripData(T,s)},body:function(T){return qt.stripData(T,s)}},customizeData:null,customizeZip:null},i),g=e.columns(s.columns).indexes().map(function(T){var b=e.column(T);return s.format.header(b.title(),T,b.header())}).toArray(),u=e.table().footer()?e.columns(s.columns).indexes().map(function(T){var b=e.column(T).footer(),N="";if(b){var O=Ue(".dt-column-title",b);N=O.length?O.html():Ue(b).html()}return s.format.footer(N,T,b)}).toArray():null,w=Ue.extend({},s.modifier);e.select&&typeof e.select.info=="function"&&w.selected===void 0&&e.rows(s.rows,Ue.extend({selected:!0},w)).any()&&Ue.extend(w,{selected:!0});for(var o=e.rows(s.rows,w).indexes().toArray(),r=e.cells(o,s.columns,{order:w.order}),t=r.render(s.orthogonal).toArray(),A=r.nodes().toArray(),a=r.indexes().toArray(),f=e.columns(s.columns).count(),h=f>0?t.length/f:0,Q=[],d=0,E=0,D=h;E<D;E++){for(var Y=[f],z=0;z<f;z++)Y[z]=s.format.body(t[d],a[d].row,a[d].column,A[d]),d++;Q[E]=Y}var L={header:g,headerStructure:XB(s.format.header,e.table().header.structure(s.columns)),footer:u,footerStructure:XB(s.format.footer,e.table().footer.structure(s.columns)),body:Q};return s.customizeData&&s.customizeData(L),L};function XB(e,i){for(var s=0;s<i.length;s++)for(var g=0;g<i[s].length;g++){var u=i[s][g];u&&(u.title=e(u.title,g,u.cell))}return i}Ue.fn.dataTable.Buttons=qt;Ue.fn.DataTable.Buttons=qt;Ue(document).on("init.dt plugin-init.dt",function(e,i){if(e.namespace==="dt"){var s=i.oInit.buttons||Be.defaults.buttons;s&&!i._buttons&&new qt(i,s).container()}});function Rl(e,i){var s=new Be.Api(e),g=i||s.init().buttons||Be.defaults.buttons;return new qt(s,g).container()}Be.ext.feature.push({fnInit:Rl,cFeature:"B"});Be.feature&&Be.feature.register("buttons",Rl);/*! Bootstrap integration for DataTables' Buttons
 * © SpryMedia Ltd - datatables.net/license
 */let ZB=ti;ZB.extend(!0,Be.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group flex-wrap"},button:{className:"btn btn-secondary",active:"active",dropHtml:"",dropClass:"dropdown-toggle"},collection:{container:{tag:"div",className:"dt-button-collection",content:{tag:"ul",className:"dropdown-menu show"}},closeButton:!1,button:{tag:"li",className:"dt-button",active:"dt-button-active-a",disabled:"disabled",liner:{tag:"a",className:"dropdown-item"},spacer:{className:"divider",tag:"li"}}},split:{action:{tag:"a",className:"btn btn-secondary dt-button-split-drop-button",closeButton:!1},dropdown:{tag:"button",className:"btn btn-secondary dt-button-split-drop dropdown-toggle-split",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"},wrapper:{tag:"div",className:"dt-button-split btn-group",closeButton:!1}}},buttonCreated:function(e,i){return e.buttons?ZB('<div class="btn-group"/>').append(i):i}});Be.ext.buttons.collection.rightAlignClassName="dropdown-menu-right";/*!
 * HTML5 export buttons for Buttons and DataTables.
 * © SpryMedia Ltd - datatables.net/license
 *
 * FileSaver.js (1.3.3) - MIT license
 * Copyright © 2016 Eli Grey - http://eligrey.com
 */let ur=ti;var Nl,Sl;function no(){return Nl||window.JSZip}function so(){return Sl||window.pdfMake}Be.Buttons.pdfMake=function(e){if(!e)return so();Sl=e};Be.Buttons.jszip=function(e){if(!e)return no();Nl=e};var fa=function(e){if(!(typeof e>"u"||typeof navigator<"u"&&/MSIE [1-9]\./.test(navigator.userAgent))){var i=e.document,s=function(){return e.URL||e.webkitURL||e},g=i.createElementNS("http://www.w3.org/1999/xhtml","a"),u="download"in g,w=function(Y){var z=new MouseEvent("click");Y.dispatchEvent(z)},o=/constructor/i.test(e.HTMLElement)||e.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent),t=function(Y){(e.setImmediate||e.setTimeout)(function(){throw Y},0)},A="application/octet-stream",a=1e3*40,f=function(Y){var z=function(){typeof Y=="string"?s().revokeObjectURL(Y):Y.remove()};setTimeout(z,a)},h=function(Y,z,L){z=[].concat(z);for(var T=z.length;T--;){var b=Y["on"+z[T]];if(typeof b=="function")try{b.call(Y,L||Y)}catch(N){t(N)}}},Q=function(Y){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\uFEFF",Y],{type:Y.type}):Y},d=function(Y,z,L){L||(Y=Q(Y));var T=this,b=Y.type,N=b===A,O,gA=function(){h(T,"writestart progress write writeend".split(" "))},oA=function(){if((r||N&&o)&&e.FileReader){var q=new FileReader;q.onloadend=function(){var x=r?q.result:q.result.replace(/^data:[^;]*;/,"data:attachment/file;"),X=e.open(x,"_blank");X||(e.location.href=x),x=void 0,T.readyState=T.DONE,gA()},q.readAsDataURL(Y),T.readyState=T.INIT;return}if(O||(O=s().createObjectURL(Y)),N)e.location.href=O;else{var Z=e.open(O,"_blank");Z||(e.location.href=O)}T.readyState=T.DONE,gA(),f(O)};if(T.readyState=T.INIT,u){O=s().createObjectURL(Y),setTimeout(function(){g.href=O,g.download=z,w(g),gA(),f(O),T.readyState=T.DONE});return}oA()},E=d.prototype,D=function(Y,z,L){return new d(Y,z||Y.name||"download",L)};return typeof navigator<"u"&&navigator.msSaveOrOpenBlob?function(Y,z,L){return z=z||Y.name||"download",L||(Y=Q(Y)),navigator.msSaveOrOpenBlob(Y,z)}:(E.abort=function(){},E.readyState=E.INIT=0,E.WRITING=1,E.DONE=2,E.error=E.onwritestart=E.onprogress=E.onwrite=E.onabort=E.onerror=E.onwriteend=null,D)}}(typeof self<"u"&&self||typeof window<"u"&&window||(void 0).content);Be.fileSave=fa;var _B=function(e){var i="Sheet1";return e.sheetName&&(i=e.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),i},Tl=function(e){return e.newline?e.newline:navigator.userAgent.match(/Windows/)?`\r
`:`
`},Gl=function(e,i){var s=Tl(i),g=e.buttons.exportData(i.exportOptions),u=i.fieldBoundary,w=i.fieldSeparator,o=new RegExp(u,"g"),r=i.escapeChar!==void 0?i.escapeChar:"\\",t=function(d){for(var E="",D=0,Y=d.length;D<Y;D++)D>0&&(E+=w),E+=u?u+(""+d[D]).replace(o,r+u)+u:d[D];return E},A="",a="",f=[];i.header&&(A=g.headerStructure.map(function(d){return t(d.map(function(E){return E?E.title:""}))}).join(s)+s),i.footer&&g.footer&&(a=g.footerStructure.map(function(d){return t(d.map(function(E){return E?E.title:""}))}).join(s)+s);for(var h=0,Q=g.body.length;h<Q;h++)f.push(t(g.body[h]));return{str:A+f.join(s)+s+a,rows:f.length}},xl=function(){var e=navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1&&navigator.userAgent.indexOf("Opera")===-1;if(!e)return!1;var i=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return!!(i&&i.length>1&&i[1]*1<603.1)};function us(e){for(var i=65,s=90,g=s-i+1,u="";e>=0;)u=String.fromCharCode(e%g+i)+u,e=Math.floor(e/g)-1;return u}try{var ao=new XMLSerializer,ta}catch{}function Hl(e,i){ta===void 0&&(ta=ao.serializeToString(new window.DOMParser().parseFromString(Ll["xl/worksheets/sheet1.xml"],"text/xml")).indexOf("xmlns:r")===-1),ur.each(i,function(s,g){if(ur.isPlainObject(g)){var u=e.folder(s);Hl(u,g)}else{if(ta){var w=g.childNodes[0],o,r,t=[];for(o=w.attributes.length-1;o>=0;o--){var A=w.attributes[o].nodeName,a=w.attributes[o].nodeValue;A.indexOf(":")!==-1&&(t.push({name:A,value:a}),w.removeAttribute(A))}for(o=0,r=t.length;o<r;o++){var f=g.createAttribute(t[o].name.replace(":","_dt_b_namespace_token_"));f.value=t[o].value,w.setAttributeNode(f)}}var h=ao.serializeToString(g);ta&&(h.indexOf("<?xml")===-1&&(h='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+h),h=h.replace(/_dt_b_namespace_token_/g,":"),h=h.replace(/xmlns:NS[\d]+="" NS[\d]+:/g,"")),h=h.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),e.file(s,h)}})}function Kr(e,i,s){var g=e.createElement(i);return s&&(s.attr&&ur(g).attr(s.attr),s.children&&ur.each(s.children,function(u,w){g.appendChild(w)}),s.text!==null&&s.text!==void 0&&g.appendChild(e.createTextNode(s.text))),g}function g0(e,i){var s=e.header[i].length,g,u,w;e.footer&&e.footer[i]&&e.footer[i].length>s&&(s=e.footer[i].length);for(var o=0,r=e.body.length;o<r;o++){var t=e.body[o][i];if(w=t!=null?t.toString():"",w.indexOf(`
`)!==-1?(u=w.split(`
`),u.sort(function(A,a){return a.length-A.length}),g=u[0].length):g=w.length,g>s&&(s=g),s>40)return 54}return s*=1.35,s>6?s:6}var Ll={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><definedNames/></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="[$$-409]#,##0.00;-[$$-409]#,##0.00"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="68"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9"   fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="14" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},qB=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(e){return e/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(e){return e/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(e){return-1*e.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(e){return-1*e.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64},{match:/^(19\d\d|[2-9]\d\d\d)\-(0\d|1[012])\-[0123][\d]$/,style:67,fmt:function(e){return Math.round(25569+Date.parse(e)/(86400*1e3))}}],ra=function(e,i,s,g,u){var w=ur("mergeCells",e);w[0].appendChild(Kr(e,"mergeCell",{attr:{ref:us(s)+i+":"+us(s+u-1)+(i+g-1)}})),w.attr("count",parseFloat(w.attr("count"))+1)};Be.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(e){return e.i18n("buttons.copy","Copy")},action:function(e,i,s,g,u){var w=Gl(i,g),o=i.buttons.exportInfo(g),r=Tl(g),t=w.str,A=ur("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});o.title&&(t=o.title+r+r+t),o.messageTop&&(t=o.messageTop+r+r+t),o.messageBottom&&(t=t+r+r+o.messageBottom),g.customize&&(t=g.customize(t,g,i));var a=ur("<textarea readonly/>").val(t).appendTo(A);if(document.queryCommandSupported("copy")){A.appendTo(i.table().container()),a[0].focus(),a[0].select();try{var f=document.execCommand("copy");if(A.remove(),f){g.copySuccess&&i.buttons.info(i.i18n("buttons.copyTitle","Copy to clipboard"),i.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},w.rows),2e3),u();return}}catch{}}var h=ur("<span>"+i.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(A);i.buttons.info(i.i18n("buttons.copyTitle","Copy to clipboard"),h,0),a[0].focus(),a[0].select();var Q=ur(h).closest(".dt-button-info"),d=function(){Q.off("click.buttons-copy"),ur(document).off(".buttons-copy"),i.buttons.info(!1)};Q.on("click.buttons-copy",function(){d(),u()}),ur(document).on("keydown.buttons-copy",function(E){E.keyCode===27&&(d(),u())}).on("copy.buttons-copy cut.buttons-copy",function(){d(),u()})},async:100,copySuccess:!0,exportOptions:{},fieldSeparator:"	",fieldBoundary:"",header:!0,footer:!0,title:"*",messageTop:"*",messageBottom:"*"};Be.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return window.FileReader!==void 0&&window.Blob},text:function(e){return e.i18n("buttons.csv","CSV")},action:function(e,i,s,g,u){var w=Gl(i,g).str,o=i.buttons.exportInfo(g),r=g.charset;g.customize&&(w=g.customize(w,g,i)),r!==!1?(r||(r=document.characterSet||document.charset),r&&(r=";charset="+r)):r="",g.bom&&(w="\uFEFF"+w),fa(new Blob([w],{type:"text/csv"+r}),o.filename,!0),u()},async:100,filename:"*",extension:".csv",exportOptions:{escapeExcelFormula:!0},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!0};Be.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return window.FileReader!==void 0&&no()!==void 0&&!xl()&&ao},text:function(e){return e.i18n("buttons.excel","Excel")},action:function(e,i,s,g,u){var w=0,o,r,t=function(x){var X=Ll[x];return ur.parseXML(X)},A=t("xl/worksheets/sheet1.xml"),a=A.getElementsByTagName("sheetData")[0],f={_rels:{".rels":t("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":t("xl/_rels/workbook.xml.rels")},"workbook.xml":t("xl/workbook.xml"),"styles.xml":t("xl/styles.xml"),worksheets:{"sheet1.xml":A}},"[Content_Types].xml":t("[Content_Types].xml")},h=i.buttons.exportData(g.exportOptions),Q,d,E=function(x){Q=w+1,d=Kr(A,"row",{attr:{r:Q}});for(var X=0,B=x.length;X<B;X++){var v=us(X)+""+Q,bA=null;if(x[X]===null||x[X]===void 0||x[X]==="")if(g.createEmptyCells===!0)x[X]="";else continue;var wA=x[X];x[X]=typeof x[X].trim=="function"?x[X].trim():x[X];for(var tA=0,nA=qB.length;tA<nA;tA++){var KA=qB[tA];if(x[X].match&&!x[X].match(/^0\d+/)&&x[X].match(KA.match)){var DA=x[X].replace(/[^\d\.\-]/g,"");KA.fmt&&(DA=KA.fmt(DA)),bA=Kr(A,"c",{attr:{r:v,s:KA.style},children:[Kr(A,"v",{text:DA})]});break}}if(!bA)if(typeof x[X]=="number"||x[X].match&&x[X].match(/^-?\d+(\.\d+)?([eE]\-?\d+)?$/)&&!x[X].match(/^0\d+/))bA=Kr(A,"c",{attr:{t:"n",r:v},children:[Kr(A,"v",{text:x[X]})]});else{var FA=wA.replace?wA.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):wA;bA=Kr(A,"c",{attr:{t:"inlineStr",r:v},children:{row:Kr(A,"is",{children:{row:Kr(A,"t",{text:FA,attr:{"xml:space":"preserve"}})}})}})}d.appendChild(bA)}a.appendChild(d),w++},D=function(x){x.forEach(function(X){E(X.map(function(B){return B?B.title:""})),ur("row:last c",A).attr("s","2"),X.forEach(function(B,v){B&&(B.colSpan>1||B.rowSpan>1)&&ra(A,w,v,B.rowSpan,B.colSpan)})})},Y=i.buttons.exportInfo(g);Y.title&&(E([Y.title]),ra(A,w,0,1,h.header.length),ur("row:last c",A).attr("s","51")),Y.messageTop&&(E([Y.messageTop]),ra(A,w,0,1,h.header.length)),g.header&&D(h.headerStructure),o=w;for(var z=0,L=h.body.length;z<L;z++)E(h.body[z]);r=w,g.footer&&h.footer&&D(h.footerStructure),Y.messageBottom&&(E([Y.messageBottom]),ra(A,w,0,1,h.header.length));var T=Kr(A,"cols");ur("worksheet",A).prepend(T);for(var b=0,N=h.header.length;b<N;b++)T.appendChild(Kr(A,"col",{attr:{min:b+1,max:b+1,width:g0(h,b),customWidth:1}}));var O=f.xl["workbook.xml"];ur("sheets sheet",O).attr("name",_B(g)),g.autoFilter&&(ur("mergeCells",A).before(Kr(A,"autoFilter",{attr:{ref:"A"+o+":"+us(h.header.length-1)+r}})),ur("definedNames",O).append(Kr(O,"definedName",{attr:{name:"_xlnm._FilterDatabase",localSheetId:"0",hidden:1},text:"'"+_B(g).replace(/'/g,"''")+"'!$A$"+o+":$"+us(h.header.length-1)+"$"+r}))),g.customize&&g.customize(f,g,i),ur("mergeCells",A).children().length===0&&ur("mergeCells",A).remove();var gA=no(),oA=new gA,q={compression:"DEFLATE",type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};Hl(oA,f);var Z=Y.filename;Z>175&&(Z=Z.substr(0,175)),g.customizeZip&&g.customizeZip(oA,h,Z),oA.generateAsync?oA.generateAsync(q).then(function(x){fa(x,Z),u()}):(fa(oA.generate(q),Z),u())},async:100,filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!0,title:"*",messageTop:"*",messageBottom:"*",createEmptyCells:!1,autoFilter:!1,sheetName:""};Be.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return window.FileReader!==void 0&&so()},text:function(e){return e.i18n("buttons.pdf","PDF")},action:function(e,i,s,g,u){var w=i.buttons.exportData(g.exportOptions),o=i.buttons.exportInfo(g),r=[];g.header&&w.headerStructure.forEach(function(h){r.push(h.map(function(Q){return Q?{text:Q.title,colSpan:Q.colspan,rowSpan:Q.rowspan,style:"tableHeader"}:{}}))});for(var t=0,A=w.body.length;t<A;t++)r.push(w.body[t].map(function(h){return{text:h==null?"":typeof h=="string"?h:h.toString()}}));g.footer&&w.footerStructure.forEach(function(h){r.push(h.map(function(Q){return Q?{text:Q.title,colSpan:Q.colspan,rowSpan:Q.rowspan,style:"tableFooter"}:{}}))});var a={pageSize:g.pageSize,pageOrientation:g.orientation,content:[{style:"table",table:{headerRows:g.header?w.headerStructure.length:0,footerRows:g.footer?w.footerStructure.length:0,body:r},layout:{hLineWidth:function(h,Q){return h===0||h===Q.table.body.length?0:.5},vLineWidth:function(){return 0},hLineColor:function(h,Q){return h===Q.table.headerRows||h===Q.table.body.length-Q.table.footerRows?"#333":"#ddd"},fillColor:function(h){return h<w.headerStructure.length?"#fff":h%2===0?"#f3f3f3":null},paddingTop:function(){return 5},paddingBottom:function(){return 5}}}],styles:{tableHeader:{bold:!0,fontSize:11,alignment:"center"},tableFooter:{bold:!0,fontSize:11,alignment:"center"},table:{margin:[0,5,0,5]},title:{alignment:"center",fontSize:13},message:{}},defaultStyle:{fontSize:10}};o.messageTop&&a.content.unshift({text:o.messageTop,style:"message",margin:[0,0,0,12]}),o.messageBottom&&a.content.push({text:o.messageBottom,style:"message",margin:[0,0,0,12]}),o.title&&a.content.unshift({text:o.title,style:"title",margin:[0,0,0,12]}),g.customize&&g.customize(a,g,i);var f=so().createPdf(a);g.download==="open"&&!xl()?f.open():f.download(o.filename),u()},async:100,title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:navigator.language==="en-US"||navigator.language==="en-CA"?"LETTER":"A4",header:!0,footer:!0,messageTop:"*",messageBottom:"*",customize:null,download:"download"};/*!
 * Print button for Buttons and DataTables.
 * © SpryMedia Ltd - datatables.net/license
 */let ia=ti;var Pn=document.createElement("a"),$B=function(e){Pn.href=e;var i=Pn.host;return i.indexOf("/")===-1&&Pn.pathname.indexOf("/")!==0&&(i+="/"),Pn.protocol+"//"+i+Pn.pathname+Pn.search};Be.ext.buttons.print={className:"buttons-print",text:function(e){return e.i18n("buttons.print","Print")},action:function(e,i,s,g,u){var w=i.buttons.exportData(ia.extend({decodeEntities:!1},g.exportOptions)),o=i.buttons.exportInfo(g),r=i.columns(g.exportOptions.columns).nodes().map(function(D){return D.className}).toArray(),t=function(D,Y){for(var z="<tr>",L=0,T=D.length;L<T;L++){var b=D[L]===null||D[L]===void 0?"":D[L],N=r[L]?'class="'+r[L]+'"':"";z+="<"+Y+" "+N+">"+b+"</"+Y+">"}return z+"</tr>"},A='<table class="'+i.table().node().className+'">';if(g.header){var a=w.headerStructure.map(function(D){return"<tr>"+D.map(function(Y){return Y?'<th colspan="'+Y.colspan+'" rowspan="'+Y.rowspan+'">'+Y.title+"</th>":""}).join("")+"</tr>"});A+="<thead>"+a.join("")+"</thead>"}A+="<tbody>";for(var f=0,h=w.body.length;f<h;f++)A+=t(w.body[f],"td");if(A+="</tbody>",g.footer&&w.footer){var Q=w.footerStructure.map(function(D){return"<tr>"+D.map(function(Y){return Y?'<th colspan="'+Y.colspan+'" rowspan="'+Y.rowspan+'">'+Y.title+"</th>":""}).join("")+"</tr>"});A+="<tfoot>"+Q.join("")+"</tfoot>"}A+="</table>";var d=window.open("","");if(!d){i.buttons.info(i.i18n("buttons.printErrorTitle","Unable to open print view"),i.i18n("buttons.printErrorMsg","Please allow popups in your browser for this site to be able to view the print view."),5e3);return}d.document.close(),d.document.title=o.title,ia('style, link[rel="stylesheet"]').each(function(){let D=this.cloneNode(!0);D.tagName.toLowerCase()==="link"&&(D.href=$B(D.href)),d.document.head.appendChild(D)}),g.customScripts&&g.customScripts.forEach(function(D){var Y=d.document.createElement("script");Y.src=D,d.document.getElementsByTagName("head")[0].appendChild(Y)}),d.document.body.innerHTML="<h1>"+o.title+"</h1><div>"+(o.messageTop||"")+"</div>"+A+"<div>"+(o.messageBottom||"")+"</div>",ia(d.document.body).addClass("dt-print-view"),ia("img",d.document.body).each(function(D,Y){Y.setAttribute("src",$B(Y.getAttribute("src")))}),g.customize&&g.customize(d,g,i);var E=function(){g.autoPrint&&(d.print(),d.close())};d.setTimeout(E,1e3),u()},async:100,title:"*",messageTop:"*",messageBottom:"*",exportOptions:{},header:!0,footer:!0,autoPrint:!0,customize:null};/*! Responsive 3.0.8
 * © SpryMedia Ltd - datatables.net/license
 */let Le=ti;var jr=function(e,i){if(!Be.versionCheck||!Be.versionCheck("2"))throw"DataTables Responsive requires DataTables 2 or newer";this.s={childNodeStore:{},columns:[],current:[],dt:new Be.Api(e)},!this.s.dt.settings()[0].responsive&&(i&&typeof i.details=="string"?i.details={type:i.details}:i&&i.details===!1?i.details={type:!1}:i&&i.details===!0&&(i.details={type:"inline"}),this.c=Le.extend(!0,{},jr.defaults,Be.defaults.responsive,i),e.responsive=this,this._constructor())};Le.extend(jr.prototype,{_constructor:function(){var e=this,i=this.s.dt,s=Le(window).innerWidth();i.settings()[0]._responsive=this,Le(window).on("orientationchange.dtr",Be.util.throttle(function(){var u=Le(window).innerWidth();u!==s&&(e._resize(),s=u)})),i.on("row-created.dtr",function(u,w,o,r){Le.inArray(!1,e.s.current)!==-1&&Le(">td, >th",w).each(function(t){var A=i.column.index("toData",t);e.s.current[A]===!1&&Le(this).css("display","none").addClass("dtr-hidden")})}),i.on("destroy.dtr",function(){i.off(".dtr"),Le(i.table().body()).off(".dtr"),Le(window).off("resize.dtr orientationchange.dtr"),i.cells(".dtr-control").nodes().to$().removeClass("dtr-control"),Le(i.table().node()).removeClass("dtr-inline collapsed"),Le.each(e.s.current,function(u,w){w===!1&&e._setColumnVis(u,!0)})}),this.c.breakpoints.sort(function(u,w){return u.width<w.width?1:u.width>w.width?-1:0}),this._classLogic();var g=this.c.details;g.type!==!1&&(e._detailsInit(),i.on("column-visibility.dtr",function(){e._timer&&clearTimeout(e._timer),e._timer=setTimeout(function(){e._timer=null,e._classLogic(),e._resizeAuto(),e._resize(!0),e._redrawChildren()},100)}),i.on("draw.dtr",function(){e._redrawChildren()}),Le(i.table().node()).addClass("dtr-"+g.type)),i.on("column-calc.dt",function(u,w){for(var o=e.s.current,r=0;r<o.length;r++){var t=w.visible.indexOf(r);o[r]===!1&&t>=0&&w.visible.splice(t,1)}}),i.on("preXhr.dtr",function(){var u=[];i.rows().every(function(){this.child.isShown()&&u.push(this.id(!0))}),i.one("draw.dtr",function(){e._resizeAuto(),e._resize(),i.rows(u).every(function(){e._detailsDisplay(this,!1)})})}),i.on("draw.dtr",function(){i.page.info().serverSide&&(e.s.childNodeStore={}),e._controlClass()}).ready(function(){e._resizeAuto(),e._resize(),i.on("column-sizing.dtr",function(){e._resizeAuto(),e._resize()})}),i.on("column-reorder.dtr",function(u,w,o){e._classLogic(),e._resizeAuto(),e._resize(!0)})},_colGroupAttach:function(e,i,s){var g=null;if(i[s].get(0).parentNode!==e[0]){for(var u=s+1;u<i.length;u++)if(e[0]===i[u].get(0).parentNode){g=u;break}g!==null?i[s].insertBefore(i[g][0]):e.append(i[s])}},_childNodes:function(e,i,s){var g=i+"-"+s;if(this.s.childNodeStore[g])return this.s.childNodeStore[g];for(var u=[],w=e.cell(i,s).node().childNodes,o=0,r=w.length;o<r;o++)u.push(w[o]);return this.s.childNodeStore[g]=u,u},_childNodesRestore:function(e,i,s){var g=i+"-"+s;if(this.s.childNodeStore[g]){var u=e.cell(i,s).node(),w=this.s.childNodeStore[g];if(w.length>0){for(var o=w[0].parentNode,r=o.childNodes,t=[],A=0,a=r.length;A<a;A++)t.push(r[A]);for(var f=0,h=t.length;f<h;f++)u.appendChild(t[f])}this.s.childNodeStore[g]=void 0}},_columnsVisibility:function(e){var i=this.s.dt,s=this.s.columns,g,u,w=s.map(function(E,D){return{columnIdx:D,priority:E.priority}}).sort(function(E,D){return E.priority!==D.priority?E.priority-D.priority:E.columnIdx-D.columnIdx}),o=Le.map(s,function(E,D){return i.column(D).visible()===!1?"not-visible":E.auto&&E.minWidth===null?!1:E.auto===!0?"-":Le.inArray(e,E.includeIn)!==-1}),r=0;for(g=0,u=o.length;g<u;g++)o[g]===!0&&(r+=s[g].minWidth);var t=i.settings()[0].oScroll,A=t.sY||t.sX?t.iBarWidth:0,a=i.table().container().offsetWidth-A,f=a-r;for(g=0,u=o.length;g<u;g++)s[g].control&&(f-=s[g].minWidth);var h=!1;for(g=0,u=w.length;g<u;g++){var Q=w[g].columnIdx;o[Q]==="-"&&!s[Q].control&&s[Q].minWidth&&(h||f-s[Q].minWidth<0?(h=!0,o[Q]=!1):o[Q]=!0,f-=s[Q].minWidth)}var d=!1;for(g=0,u=s.length;g<u;g++)if(!s[g].control&&!s[g].never&&o[g]===!1){d=!0;break}for(g=0,u=s.length;g<u;g++)s[g].control&&(o[g]=d),o[g]==="not-visible"&&(o[g]=!1);return Le.inArray(!0,o)===-1&&(o[0]=!0),o},_classLogic:function(){var e=this,i=this.c.breakpoints,s=this.s.dt,g=s.columns().eq(0).map(function(o){var r=this.column(o),t=r.header().className,A=r.init().responsivePriority,a=r.header().getAttribute("data-priority");return A===void 0&&(A=a==null?1e4:a*1),{className:t,includeIn:[],auto:!1,control:!1,never:!!t.match(/\b(dtr\-)?never\b/),priority:A}}),u=function(o,r){var t=g[o].includeIn;Le.inArray(r,t)===-1&&t.push(r)},w=function(o,r,t,A){var a,f,h;if(!t)g[o].includeIn.push(r);else if(t==="max-")for(a=e._find(r).width,f=0,h=i.length;f<h;f++)i[f].width<=a&&u(o,i[f].name);else if(t==="min-")for(a=e._find(r).width,f=0,h=i.length;f<h;f++)i[f].width>=a&&u(o,i[f].name);else if(t==="not-")for(f=0,h=i.length;f<h;f++)i[f].name.indexOf(A)===-1&&u(o,i[f].name)};g.each(function(o,r){for(var t=o.className.split(" "),A=!1,a=0,f=t.length;a<f;a++){var h=t[a].trim();if(h==="all"||h==="dtr-all"){A=!0,o.includeIn=Le.map(i,function(Q){return Q.name});return}else if(h==="none"||h==="dtr-none"||o.never){A=!0;return}else if(h==="control"||h==="dtr-control"){A=!0,o.control=!0;return}Le.each(i,function(Q,d){var E=d.name.split("-"),D=new RegExp("(min\\-|max\\-|not\\-)?("+E[0]+")(\\-[_a-zA-Z0-9])?"),Y=h.match(D);Y&&(A=!0,Y[2]===E[0]&&Y[3]==="-"+E[1]?w(r,d.name,Y[1],Y[2]+Y[3]):Y[2]===E[0]&&!Y[3]&&w(r,d.name,Y[1],Y[2]))})}A||(o.auto=!0)}),this.s.columns=g},_controlClass:function(){if(this.c.details.type==="inline"){var e=this.s.dt,i=this.s.current,s=Le.inArray(!0,i);e.cells(null,function(g){return g!==s},{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control"),s>=0&&e.cells(null,s,{page:"current"}).nodes().to$().addClass("dtr-control")}this._tabIndexes()},_detailsDisplay:function(e,i){var s=this,g=this.s.dt,u=this.c.details,w=function(t){Le(e.node()).toggleClass("dtr-expanded",t!==!1),Le(g.table().node()).triggerHandler("responsive-display.dt",[g,e,t,i])};if(u&&u.type!==!1){var o=typeof u.renderer=="string"?jr.renderer[u.renderer]():u.renderer,r=u.display(e,i,function(){return o.call(s,g,e[0][0],s._detailsObj(e[0]))},function(){w(!1)});typeof r=="boolean"&&w(r)}},_detailsInit:function(){var e=this,i=this.s.dt,s=this.c.details;s.type==="inline"&&(s.target="td.dtr-control, th.dtr-control"),Le(i.table().body()).on("keyup.dtr","td, th",function(w){let o=document.activeElement.nodeName.toLowerCase();w.keyCode===13&&Le(this).data("dtr-keyboard")&&(o==="td"||o==="th")&&Le(this).click()});var g=s.target,u=typeof g=="string"?g:"td, th";(g!==void 0||g!==null)&&Le(i.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",u,function(w){if(Le(i.table().node()).hasClass("collapsed")&&Le.inArray(Le(this).closest("tr").get(0),i.rows().nodes().toArray())!==-1){if(typeof g=="number"){var o=g<0?i.columns().eq(0).length+g:g;if(i.cell(this).index().column!==o)return}var r=i.row(Le(this).closest("tr"));w.type==="click"?e._detailsDisplay(r,!1):w.type==="mousedown"?Le(this).css("outline","none"):w.type==="mouseup"&&Le(this).trigger("blur").css("outline","")}})},_detailsObj:function(e){var i=this,s=this.s.dt,g=[];let u=s.settings()[0];return Le.map(this.s.columns,function(w,o){if(!(w.never||w.control)){var r=u.aoColumns[o];return g[o]||(g[o]=s.column(o)),{className:r.sClass,columnIndex:o,data:u.fastData(e,o,i.c.orthogonal),hidden:g[o].visible()&&!i.s.current[o],rowIndex:e,title:g[o].title()}}})},_find:function(e){for(var i=this.c.breakpoints,s=0,g=i.length;s<g;s++)if(i[s].name===e)return i[s]},_redrawChildren:function(){var e=this,i=this.s.dt;i.rows({page:"current"}).iterator("row",function(s,g){e._detailsDisplay(i.row(g),!0)})},_resize:function(e){var i=this,s=this.s.dt,g=Le(window).innerWidth(),u=this.c.breakpoints,w=u[0].name,o=this.s.columns,r,t,A=this.s.current.slice();for(r=u.length-1;r>=0;r--)if(g<=u[r].width){w=u[r].name;break}var a=this._columnsVisibility(w);this.s.current=a;var f=!1;for(r=0,t=o.length;r<t;r++)if(a[r]===!1&&!o[r].never&&!o[r].control&&s.column(r).visible()){f=!0;break}Le(s.table().node()).toggleClass("collapsed",f);var h=!1,Q=0,d=s.settings()[0],E=Le(s.table().node()).children("colgroup"),D=d.aoColumns.map(function(Y){return Y.colEl});s.columns().eq(0).each(function(Y,z){s.column(Y).visible()&&(a[z]===!0&&Q++,(e||a[z]!==A[z])&&(h=!0,i._setColumnVis(Y,a[z])),a[z]?i._colGroupAttach(E,D,z):D[z].detach())}),h&&(s.columns.adjust(),this._redrawChildren(),Le(s.table().node()).trigger("responsive-resize.dt",[s,this._responsiveOnlyHidden()]),s.page.info().recordsDisplay===0&&Le("td",s.table().body()).eq(0).attr("colspan",Q)),i._controlClass()},_resizeAuto:function(){var e=this.s.dt,i=this.s.columns,s=this,g=e.columns().indexes().filter(function(f){return e.column(f).visible()});if(this.c.auto&&Le.inArray(!0,Le.map(i,function(f){return f.auto}))!==-1){var u=e.table().node().cloneNode(!1),w=Le(e.table().header().cloneNode(!1)).appendTo(u),o=Le(e.table().footer().cloneNode(!1)).appendTo(u),r=Le(e.table().body()).clone(!1,!1).empty().appendTo(u);u.style.width="auto",e.table().header.structure(g).forEach(f=>{var h=f.filter(function(Q){return!!Q}).map(function(Q){return Le(Q.cell).clone(!1).css("display","table-cell").css("width","auto").css("min-width",0)});Le("<tr/>").append(h).appendTo(w)});for(var t=Le("<tr/>").appendTo(r),A=0;A<g.count();A++)t.append("<td/>");this.c.details.renderer._responsiveMovesNodes?e.rows({page:"current"}).every(function(f){var h=this.node();if(h){var Q=h.cloneNode(!1);e.cells(f,g).every(function(d,E){var D=s.s.childNodeStore[f+"-"+E];D?Le(this.node().cloneNode(!1)).append(Le(D).clone()).appendTo(Q):Le(this.node()).clone(!1).appendTo(Q)}),r.append(Q)}}):Le(r).append(Le(e.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display",""),r.find("th, td").css("display",""),e.table().footer.structure(g).forEach(f=>{var h=f.filter(function(Q){return!!Q}).map(function(Q){return Le(Q.cell).clone(!1).css("display","table-cell").css("width","auto").css("min-width",0)});Le("<tr/>").append(h).appendTo(o)}),this.c.details.type==="inline"&&Le(u).addClass("dtr-inline collapsed"),Le(u).find("[name]").removeAttr("name"),Le(u).css("position","relative");var a=Le("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(u);a.insertBefore(e.table().node()),t.children().each(function(f){var h=e.column.index("fromVisible",f);i[h].minWidth=this.offsetWidth||0}),a.remove()}},_responsiveOnlyHidden:function(){var e=this.s.dt;return Le.map(this.s.current,function(i,s){return e.column(s).visible()===!1?!0:i})},_setColumnVis:function(e,i){var s=this,g=this.s.dt,u=i?"":"none";this._setHeaderVis(e,i,g.table().header.structure()),this._setHeaderVis(e,i,g.table().footer.structure()),g.column(e).nodes().to$().css("display",u).toggleClass("dtr-hidden",!i),g.settings()[0].aoColumns[e].responsiveVisible=i,Le.isEmptyObject(this.s.childNodeStore)||g.cells(null,e).indexes().each(function(w){s._childNodesRestore(g,w.row,w.column)})},_setHeaderVis:function(e,i,s){var g=this,u=i?"":"none";s.forEach(function(w,o){for(var r=0;r<w.length;r++)if(w[r]&&w[r].rowspan>1)for(var t=w[r].rowspan,A=1;A<t;A++)s[o+A][r]={}}),s.forEach(function(w){if(w[e]&&w[e].cell)Le(w[e].cell).css("display",u).toggleClass("dtr-hidden",!i);else for(var o=e;o>=0;){if(w[o]&&w[o].cell){w[o].cell.colSpan=g._colspan(w,o);break}o--}})},_colspan:function(e,i){for(var s=1,g=i+1;g<e.length;g++)if(e[g]===null&&this.s.current[g])s++;else if(e[g])break;return s},_tabIndexes:function(){var e=this.s.dt,i=e.cells({page:"current"}).nodes().to$(),s=e.settings()[0],g=this.c.details.target;if(i.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]"),typeof g=="number")e.cells(null,g,{page:"current"}).nodes().to$().attr("tabIndex",s.iTabIndex).data("dtr-keyboard",1);else{g==="td:first-child, th:first-child"&&(g=">td:first-child, >th:first-child");var u=e.rows({page:"current"}).nodes(),w=g==="tr"?Le(u):Le(g,u);w.attr("tabIndex",s.iTabIndex).data("dtr-keyboard",1)}}});jr.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];jr.display={childRow:function(e,i,s){var g=Le(e.node());if(i){if(g.hasClass("dtr-expanded"))return e.child(s(),"child").show(),!0}else{if(g.hasClass("dtr-expanded"))return e.child(!1),!1;var u=s();return u===!1?!1:(e.child(u,"child").show(),!0)}},childRowImmediate:function(e,i,s){var g=Le(e.node());if(!i&&g.hasClass("dtr-expanded")||!e.responsive.hasHidden())return e.child(!1),!1;var u=s();return u===!1?!1:(e.child(u,"child").show(),!0)},modal:function(e){return function(i,s,g,u){var w,o=g();if(o===!1)return!1;if(s)if(w=Le("div.dtr-modal-content"),w.length&&i.index()===w.data("dtr-row-idx"))w.empty().append(o);else return null;else{var r=function(){w.remove(),Le(document).off("keypress.dtr"),Le(i.node()).removeClass("dtr-expanded"),u()};w=Le('<div class="dtr-modal"/>').append(Le('<div class="dtr-modal-display"/>').append(Le('<div class="dtr-modal-content"/>').data("dtr-row-idx",i.index()).append(o)).append(Le('<div class="dtr-modal-close">&times;</div>').click(function(){r()}))).append(Le('<div class="dtr-modal-background"/>').click(function(){r()})).appendTo("body"),Le(i.node()).addClass("dtr-expanded"),Le(document).on("keyup.dtr",function(t){t.keyCode===27&&(t.stopPropagation(),r())})}return e&&e.header&&Le("div.dtr-modal-content").prepend("<h2>"+e.header(i)+"</h2>"),!0}}};jr.renderer={listHiddenNodes:function(){var e=function(i,s,g){var u=this,w=Le('<ul data-dtr-index="'+s+'" class="dtr-details"/>'),o=!1;return Le.each(g,function(r,t){if(t.hidden){var A=t.className?'class="'+t.className+'"':"";Le("<li "+A+' data-dtr-index="'+t.columnIndex+'" data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><span class="dtr-title">'+t.title+"</span> </li>").append(Le('<span class="dtr-data"/>').append(u._childNodes(i,t.rowIndex,t.columnIndex))).appendTo(w),o=!0}}),o?w:!1};return e._responsiveMovesNodes=!0,e},listHidden:function(){return function(e,i,s){var g=Le.map(s,function(u){var w=u.className?'class="'+u.className+'"':"";return u.hidden?"<li "+w+' data-dtr-index="'+u.columnIndex+'" data-dt-row="'+u.rowIndex+'" data-dt-column="'+u.columnIndex+'"><span class="dtr-title">'+u.title+'</span> <span class="dtr-data">'+u.data+"</span></li>":""}).join("");return g?Le('<ul data-dtr-index="'+i+'" class="dtr-details"/>').append(g):!1}},tableAll:function(e){return e=Le.extend({tableClass:""},e),function(i,s,g){var u=Le.map(g,function(w){var o=w.className?'class="'+w.className+'"':"";return"<tr "+o+' data-dt-row="'+w.rowIndex+'" data-dt-column="'+w.columnIndex+'"><td>'+(w.title!==""?w.title+":":"")+"</td> <td>"+w.data+"</td></tr>"}).join("");return Le('<table class="'+e.tableClass+' dtr-details" width="100%"/>').append(u)}}};jr.defaults={breakpoints:jr.breakpoints,auto:!0,details:{display:jr.display.childRow,renderer:jr.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var Jn=Le.fn.dataTable.Api;Jn.register("responsive()",function(){return this});Jn.register("responsive.index()",function(e){return e=Le(e),{column:e.data("dtr-index"),row:e.parent().data("dtr-index")}});Jn.register("responsive.rebuild()",function(){return this.iterator("table",function(e){e._responsive&&e._responsive._classLogic()})});Jn.register("responsive.recalc()",function(){return this.iterator("table",function(e){e._responsive&&(e._responsive._resizeAuto(),e._responsive._resize())})});Jn.register("responsive.hasHidden()",function(){var e=this.context[0];return e._responsive?Le.inArray(!1,e._responsive._responsiveOnlyHidden())!==-1:!1});Jn.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",function(){return this.iterator("column",function(e,i){return e._responsive?e._responsive._responsiveOnlyHidden()[i]:!1},1)});jr.version="3.0.8";Le.fn.dataTable.Responsive=jr;Le.fn.DataTable.Responsive=jr;Le(document).on("preInit.dt.dtr",function(e,i,s){if(e.namespace==="dt"&&(Le(i.nTable).hasClass("responsive")||Le(i.nTable).hasClass("dt-responsive")||i.oInit.responsive||Be.defaults.responsive)){var g=i.oInit.responsive;g!==!1&&new jr(i,Le.isPlainObject(g)?g:{})}});/*! Bootstrap 5 integration for DataTables' Responsive
 * © SpryMedia Ltd - datatables.net/license
 */let kl=ti;var jl=Be.Responsive.display,c0=jl.modal,en=kl('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body"/></div></div></div>'),na,ha=window.bootstrap;Be.Responsive.bootstrap=function(e){ha=e};function E0(){let e=Be.use("bootstrap");if(e)return e;if(ha)return ha;throw new Error("No Bootstrap library. Set it with `DataTable.use(bootstrap);`")}jl.modal=function(e){if(!na&&ha.Modal){let i=E0();na=new i.Modal(en[0])}return function(i,s,g,u){if(na){var w=g();if(w===!1)return!1;if(s)if(kl.contains(document,en[0])&&i.index()===en.data("dtr-row-idx"))en.find("div.modal-body").empty().append(w);else return null;else{if(e&&e.header){var o=en.find("div.modal-header"),r=o.find("button").detach();o.empty().append('<h4 class="modal-title">'+e.header(i)+"</h4>").append(r)}en.find("div.modal-body").empty().append(w),en.data("dtr-row-idx",i.index()).one("hidden.bs.modal",u).appendTo("body"),na.show()}return!0}else return c0(i,s,g,u)}};/*! RowGroup 1.6.0
 * © SpryMedia Ltd - datatables.net/license
 */let Xr=ti;var Wi=function(e,i){if(!Be.versionCheck||!Be.versionCheck("2"))throw new Error("RowGroup requires DataTables 2 or newer");this.c=Xr.extend(!0,{},Be.defaults.rowGroup,Wi.defaults,i),this.s={dt:new Be.Api(e)},this.dom={};var s=this.s.dt.settings()[0],g=s.rowGroup;if(g)return g;s.rowGroup=this,this._constructor()};Xr.extend(Wi.prototype,{dataSrc:function(e){if(e===void 0)return this.c.dataSrc;var i=this.s.dt;return this.c.dataSrc=e,Xr(i.table().node()).triggerHandler("rowgroup-datasrc.dt",[i,e]),this},disable:function(){return this.c.enable=!1,this},enable:function(e){return e===!1?this.disable():(this.c.enable=!0,this)},enabled:function(){return this.c.enable},_constructor:function(){var e=this,i=this.s.dt,s=i.settings()[0],g=Xr("div.dt-scroll-body",i.table().container());i.on("draw.dtrg",function(w,o){e.c.enable&&s===o&&(e._draw(),u&&g.scrollTop()&&(g.scrollTop(u),u=null))}),i.on("column-visibility.dt.dtrg responsive-resize.dt.dtrg",function(){e._adjustColspan()}),i.on("destroy",function(){i.off(".dtrg")});var u=null;g.length&&i.on("preDraw",function(){u=g.scrollTop()})},_adjustColspan:function(){let e=Xr("tr."+this.c.className,this.s.dt.table().body()).find("th:visible, td:visible");e.length===1&&e.attr("colspan",this._colspan())},_colspan:function(){return this.s.dt.columns().visible().reduce(function(e,i){return e+i},0)},_draw:function(){var e=this.s.dt;if(!(this.c.dataSrc===null||Array.isArray(this.c.dataSrc)&&this.c.dataSrc.length===0)){var i=this._group(0,e.rows({page:"current"}).indexes());this._groupDisplay(0,i)}},_group:function(e,i){var s=Array.isArray(this.c.dataSrc)?this.c.dataSrc:[this.c.dataSrc],g=Be.util.get(s[e]),u=this.s.dt,w,o,r,t,A=[],a=this;for(r=0,t=i.length;r<t;r++){var f=i[r],h=u.row(f).data();w=g(h,e),w==null&&(w=a.c.emptyDataGroup),(o===void 0||w!==o)&&(A.push({dataPoint:w,rows:[]}),o=w),A[A.length-1].rows.push(f)}if(s[e+1]!==void 0)for(r=0,t=A.length;r<t;r++)A[r].children=this._group(e+1,A[r].rows);return A},_groupDisplay:function(e,i){for(var s=this.s.dt,g,u=0,w=i.length;u<w;u++){var o=i[u],r=o.dataPoint,t,A=o.rows;this.c.startRender&&(g=this.c.startRender.call(this,s.rows(A),r,e),t=this._rowWrap(g,this.c.startClassName,e),t&&t.insertBefore(s.row(A[0]).node())),this.c.endRender&&(g=this.c.endRender.call(this,s.rows(A),r,e),t=this._rowWrap(g,this.c.endClassName,e),t&&t.insertAfter(s.row(A[A.length-1]).node())),o.children&&this._groupDisplay(e+1,o.children)}},_rowWrap:function(e,i,s){var g;return(e===null||e==="")&&(e=this.c.emptyDataGroup),e==null?null:(typeof e=="object"&&e.nodeName&&e.nodeName.toLowerCase()==="tr"?g=Xr(e):e instanceof Xr&&e.length&&e[0].nodeName.toLowerCase()==="tr"?g=e:g=Xr("<tr/>").append(Xr("<th/>").attr("colspan",this._colspan()).attr("scope","row").append(e)),g.addClass(this.c.className).addClass(i).addClass("dtrg-level-"+s))}});Wi.defaults={className:"dtrg-group",dataSrc:0,emptyDataGroup:"No group",enable:!0,endClassName:"dtrg-end",endRender:null,startClassName:"dtrg-start",startRender:function(e,i){return i}};Wi.version="1.6.0";Xr.fn.dataTable.RowGroup=Wi;Xr.fn.DataTable.RowGroup=Wi;Be.Api.register("rowGroup()",function(){return this});Be.Api.register("rowGroup().disable()",function(){return this.iterator("table",function(e){e.rowGroup&&e.rowGroup.enable(!1)})});Be.Api.register("rowGroup().enable()",function(e){return this.iterator("table",function(i){i.rowGroup&&i.rowGroup.enable(e===void 0?!0:e)})});Be.Api.register("rowGroup().enabled()",function(){var e=this.context;return e.length&&e[0].rowGroup?e[0].rowGroup.enabled():!1});Be.Api.register("rowGroup().dataSrc()",function(e){if(e===void 0){let i=this.context[0].rowGroup;return i?i.dataSrc():[]}return this.iterator("table",function(i){i.rowGroup||new Wi(this.context[0]),i.rowGroup.dataSrc(e)})});Xr(document).on("preInit.dt.dtrg",function(e,i,s){if(e.namespace==="dt"){var g=i.oInit.rowGroup,u=Be.defaults.rowGroup;if(g||u){var w=Xr.extend({},u,g);g!==!1&&new Wi(i,w)}}});Bo.fonts={Roboto:{normal:"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-Regular.ttf",bold:"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-Medium.ttf",italics:"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-Italic.ttf",bolditalics:"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-MediumItalic.ttf"}};$.fn.dataTable.ext.buttons.pdfMake=Bo;try{window.pdfMake=Bo,window.pdfFonts=nw,window.JSZip=tw}catch{}window.DataTable=Be;
