a11oy / console /assets /Compass-CTBXwHll.js
betterwithage's picture
sync(space): full source mirror — resolve all GitHub<->Space drift (CTO)
a6a5d8e verified
Raw
History Blame
114 kB
import{h as St,j as Zt,r as Nt,k as M}from"./index-BVfpSx5Q.js";import{L as Gt}from"./layout-NiehYZnq.js";import{P as Ht,K as vt,S as At,C as Tt}from"./ui-DGkmnhL-.js";import{c as Bt,C as Ft,a as _t,F as Et,b as Ct}from"./complianceFabric-CIzuJFiy.js";function It(nt){throw new Error('Could not dynamically require "'+nt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ot={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Dt;function Vt(){return Dt||(Dt=1,(function(nt,dt){(function(p){nt.exports=p()})(function(){return(function p(F,w,u){function i(g,y){if(!w[g]){if(!F[g]){var m=typeof It=="function"&&It;if(!y&&m)return m(g,!0);if(n)return n(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var a=w[g]={exports:{}};F[g][0].call(a.exports,function(f){var r=F[g][1][f];return i(r||f)},a,a.exports,p,F,w,u)}return w[g].exports}for(var n=typeof It=="function"&&It,c=0;c<u.length;c++)i(u[c]);return i})({1:[function(p,F,w){var u=p("./utils"),i=p("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";w.encode=function(c){for(var g,y,m,b,a,f,r,o=[],s=0,h=c.length,v=h,k=u.getTypeOf(c)!=="string";s<c.length;)v=h-s,m=k?(g=c[s++],y=s<h?c[s++]:0,s<h?c[s++]:0):(g=c.charCodeAt(s++),y=s<h?c.charCodeAt(s++):0,s<h?c.charCodeAt(s++):0),b=g>>2,a=(3&g)<<4|y>>4,f=1<v?(15&y)<<2|m>>6:64,r=2<v?63&m:64,o.push(n.charAt(b)+n.charAt(a)+n.charAt(f)+n.charAt(r));return o.join("")},w.decode=function(c){var g,y,m,b,a,f,r=0,o=0,s="data:";if(c.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var h,v=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===n.charAt(64)&&v--,c.charAt(c.length-2)===n.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|v):new Array(0|v);r<c.length;)g=n.indexOf(c.charAt(r++))<<2|(b=n.indexOf(c.charAt(r++)))>>4,y=(15&b)<<4|(a=n.indexOf(c.charAt(r++)))>>2,m=(3&a)<<6|(f=n.indexOf(c.charAt(r++))),h[o++]=g,a!==64&&(h[o++]=y),f!==64&&(h[o++]=m);return h}},{"./support":30,"./utils":32}],2:[function(p,F,w){var u=p("./external"),i=p("./stream/DataWorker"),n=p("./stream/Crc32Probe"),c=p("./stream/DataLengthProbe");function g(y,m,b,a,f){this.compressedSize=y,this.uncompressedSize=m,this.crc32=b,this.compression=a,this.compressedContent=f}g.prototype={getContentWorker:function(){var y=new i(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),m=this;return y.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new i(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,m,b){return y.pipe(new n).pipe(new c("uncompressedSize")).pipe(m.compressWorker(b)).pipe(new c("compressedSize")).withStreamInfo("compression",m)},F.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,F,w){var u=p("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},w.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,F,w){var u=p("./utils"),i=(function(){for(var n,c=[],g=0;g<256;g++){n=g;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;c[g]=n}return c})();F.exports=function(n,c){return n!==void 0&&n.length?u.getTypeOf(n)!=="string"?(function(g,y,m,b){var a=i,f=b+m;g^=-1;for(var r=b;r<f;r++)g=g>>>8^a[255&(g^y[r])];return-1^g})(0|c,n,n.length,0):(function(g,y,m,b){var a=i,f=b+m;g^=-1;for(var r=b;r<f;r++)g=g>>>8^a[255&(g^y.charCodeAt(r))];return-1^g})(0|c,n,n.length,0):0}},{"./utils":32}],5:[function(p,F,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(p,F,w){var u=null;u=typeof Promise<"u"?Promise:p("lie"),F.exports={Promise:u}},{lie:37}],7:[function(p,F,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=p("pako"),n=p("./utils"),c=p("./stream/GenericWorker"),g=u?"uint8array":"array";function y(m,b){c.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=b,this.meta={}}w.magic="\b\0",n.inherits(y,c),y.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,m.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(b){m.push({data:b,meta:m.meta})}},w.compressWorker=function(m){return new y("Deflate",m)},w.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,F,w){function u(a,f){var r,o="";for(r=0;r<f;r++)o+=String.fromCharCode(255&a),a>>>=8;return o}function i(a,f,r,o,s,h){var v,k,S=a.file,T=a.compression,O=h!==g.utf8encode,L=n.transformTo("string",h(S.name)),z=n.transformTo("string",g.utf8encode(S.name)),Z=S.comment,J=n.transformTo("string",h(Z)),_=n.transformTo("string",g.utf8encode(Z)),R=z.length!==S.name.length,e=_.length!==Z.length,N="",$="",P="",Q=S.dir,U=S.date,X={crc32:0,compressedSize:0,uncompressedSize:0};f&&!r||(X.crc32=a.crc32,X.compressedSize=a.compressedSize,X.uncompressedSize=a.uncompressedSize);var C=0;f&&(C|=8),O||!R&&!e||(C|=2048);var E=0,q=0;Q&&(E|=16),s==="UNIX"?(q=798,E|=(function(H,at){var ct=H;return H||(ct=at?16893:33204),(65535&ct)<<16})(S.unixPermissions,Q)):(q=20,E|=(function(H){return 63&(H||0)})(S.dosPermissions)),v=U.getUTCHours(),v<<=6,v|=U.getUTCMinutes(),v<<=5,v|=U.getUTCSeconds()/2,k=U.getUTCFullYear()-1980,k<<=4,k|=U.getUTCMonth()+1,k<<=5,k|=U.getUTCDate(),R&&($=u(1,1)+u(y(L),4)+z,N+="up"+u($.length,2)+$),e&&(P=u(1,1)+u(y(J),4)+_,N+="uc"+u(P.length,2)+P);var V="";return V+=`
\0`,V+=u(C,2),V+=T.magic,V+=u(v,2),V+=u(k,2),V+=u(X.crc32,4),V+=u(X.compressedSize,4),V+=u(X.uncompressedSize,4),V+=u(L.length,2),V+=u(N.length,2),{fileRecord:m.LOCAL_FILE_HEADER+V+L+N,dirRecord:m.CENTRAL_FILE_HEADER+u(q,2)+V+u(J.length,2)+"\0\0\0\0"+u(E,4)+u(o,4)+L+N+J}}var n=p("../utils"),c=p("../stream/GenericWorker"),g=p("../utf8"),y=p("../crc32"),m=p("../signature");function b(a,f,r,o){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=f,this.zipPlatform=r,this.encodeFileName=o,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,c),b.prototype.push=function(a){var f=a.meta.percent||0,r=this.entriesCount,o=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,c.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:r?(f+100*(r-o-1))/r:100}}))},b.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var f=this.streamFiles&&!a.file.dir;if(f){var r=i(a,f,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(a){this.accumulate=!1;var f=this.streamFiles&&!a.file.dir,r=i(a,f,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),f)this.push({data:(function(o){return m.DATA_DESCRIPTOR+u(o.crc32,4)+u(o.compressedSize,4)+u(o.uncompressedSize,4)})(a),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var a=this.bytesWritten,f=0;f<this.dirRecords.length;f++)this.push({data:this.dirRecords[f],meta:{percent:100}});var r=this.bytesWritten-a,o=(function(s,h,v,k,S){var T=n.transformTo("string",S(k));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(s,2)+u(s,2)+u(h,4)+u(v,4)+u(T.length,2)+T})(this.dirRecords.length,r,a,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(a){this._sources.push(a);var f=this;return a.on("data",function(r){f.processChunk(r)}),a.on("end",function(){f.closedSource(f.previous.streamInfo),f._sources.length?f.prepareNextSource():f.end()}),a.on("error",function(r){f.error(r)}),this},b.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(a){var f=this._sources;if(!c.prototype.error.call(this,a))return!1;for(var r=0;r<f.length;r++)try{f[r].error(a)}catch{}return!0},b.prototype.lock=function(){c.prototype.lock.call(this);for(var a=this._sources,f=0;f<a.length;f++)a[f].lock()},F.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,F,w){var u=p("../compressions"),i=p("./ZipFileWorker");w.generateWorker=function(n,c,g){var y=new i(c.streamFiles,g,c.platform,c.encodeFileName),m=0;try{n.forEach(function(b,a){m++;var f=(function(h,v){var k=h||v,S=u[k];if(!S)throw new Error(k+" is not a valid compression method !");return S})(a.options.compression,c.compression),r=a.options.compressionOptions||c.compressionOptions||{},o=a.dir,s=a.date;a._compressWorker(f,r).withStreamInfo("file",{name:b,dir:o,date:s,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(y)}),y.entriesCount=m}catch(b){y.error(b)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,F,w){function u(){if(!(this instanceof u))return new u;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 i=new u;for(var n in this)typeof this[n]!="function"&&(i[n]=this[n]);return i}}(u.prototype=p("./object")).loadAsync=p("./load"),u.support=p("./support"),u.defaults=p("./defaults"),u.version="3.10.1",u.loadAsync=function(i,n){return new u().loadAsync(i,n)},u.external=p("./external"),F.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,F,w){var u=p("./utils"),i=p("./external"),n=p("./utf8"),c=p("./zipEntries"),g=p("./stream/Crc32Probe"),y=p("./nodejsUtils");function m(b){return new i.Promise(function(a,f){var r=b.decompressed.getContentWorker().pipe(new g);r.on("error",function(o){f(o)}).on("end",function(){r.streamInfo.crc32!==b.decompressed.crc32?f(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}F.exports=function(b,a){var f=this;return a=u.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),y.isNode&&y.isStream(b)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",b,!0,a.optimizedBinaryString,a.base64).then(function(r){var o=new c(a);return o.load(r),o}).then(function(r){var o=[i.Promise.resolve(r)],s=r.files;if(a.checkCRC32)for(var h=0;h<s.length;h++)o.push(m(s[h]));return i.Promise.all(o)}).then(function(r){for(var o=r.shift(),s=o.files,h=0;h<s.length;h++){var v=s[h],k=v.fileNameStr,S=u.resolve(v.fileNameStr);f.file(S,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:a.createFolders}),v.dir||(f.file(S).unsafeOriginalName=k)}return o.zipComment.length&&(f.comment=o.zipComment),f})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,F,w){var u=p("../utils"),i=p("../stream/GenericWorker");function n(c,g){i.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(g)}u.inherits(n,i),n.prototype._bindStream=function(c){var g=this;(this._stream=c).pause(),c.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},n.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},F.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,F,w){var u=p("readable-stream").Readable;function i(n,c,g){u.call(this,c),this._helper=n;var y=this;n.on("data",function(m,b){y.push(m)||y._helper.pause(),g&&g(b)}).on("error",function(m){y.emit("error",m)}).on("end",function(){y.push(null)})}p("../utils").inherits(i,u),i.prototype._read=function(){this._helper.resume()},F.exports=i},{"../utils":32,"readable-stream":16}],14:[function(p,F,w){F.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,i);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,i)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var i=new Buffer(u);return i.fill(0),i},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(p,F,w){function u(S,T,O){var L,z=n.getTypeOf(T),Z=n.extend(O||{},y);Z.date=Z.date||new Date,Z.compression!==null&&(Z.compression=Z.compression.toUpperCase()),typeof Z.unixPermissions=="string"&&(Z.unixPermissions=parseInt(Z.unixPermissions,8)),Z.unixPermissions&&16384&Z.unixPermissions&&(Z.dir=!0),Z.dosPermissions&&16&Z.dosPermissions&&(Z.dir=!0),Z.dir&&(S=s(S)),Z.createFolders&&(L=o(S))&&h.call(this,L,!0);var J=z==="string"&&Z.binary===!1&&Z.base64===!1;O&&O.binary!==void 0||(Z.binary=!J),(T instanceof m&&T.uncompressedSize===0||Z.dir||!T||T.length===0)&&(Z.base64=!1,Z.binary=!0,T="",Z.compression="STORE",z="string");var _=null;_=T instanceof m||T instanceof c?T:f.isNode&&f.isStream(T)?new r(S,T):n.prepareContent(S,T,Z.binary,Z.optimizedBinaryString,Z.base64);var R=new b(S,_,Z);this.files[S]=R}var i=p("./utf8"),n=p("./utils"),c=p("./stream/GenericWorker"),g=p("./stream/StreamHelper"),y=p("./defaults"),m=p("./compressedObject"),b=p("./zipObject"),a=p("./generate"),f=p("./nodejsUtils"),r=p("./nodejs/NodejsStreamInputAdapter"),o=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var T=S.lastIndexOf("/");return 0<T?S.substring(0,T):""},s=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},h=function(S,T){return T=T!==void 0?T:y.createFolders,S=s(S),this.files[S]||u.call(this,S,null,{dir:!0,createFolders:T}),this.files[S]};function v(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var k={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var T,O,L;for(T in this.files)L=this.files[T],(O=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&S(O,L)},filter:function(S){var T=[];return this.forEach(function(O,L){S(O,L)&&T.push(L)}),T},file:function(S,T,O){if(arguments.length!==1)return S=this.root+S,u.call(this,S,T,O),this;if(v(S)){var L=S;return this.filter(function(Z,J){return!J.dir&&L.test(Z)})}var z=this.files[this.root+S];return z&&!z.dir?z:null},folder:function(S){if(!S)return this;if(v(S))return this.filter(function(z,Z){return Z.dir&&S.test(z)});var T=this.root+S,O=h.call(this,T),L=this.clone();return L.root=O.name,L},remove:function(S){S=this.root+S;var T=this.files[S];if(T||(S.slice(-1)!=="/"&&(S+="/"),T=this.files[S]),T&&!T.dir)delete this.files[S];else for(var O=this.filter(function(z,Z){return Z.name.slice(0,S.length)===S}),L=0;L<O.length;L++)delete this.files[O[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var T,O={};try{if((O=n.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.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.");n.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 L=O.comment||this.comment||"";T=a.generateWorker(this,O,L)}catch(z){(T=new c("error")).error(z)}return new g(T,O.type||"string",O.mimeType)},generateAsync:function(S,T){return this.generateInternalStream(S).accumulate(T)},generateNodeStream:function(S,T){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(T)}};F.exports=k},{"./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(p,F,w){F.exports=p("stream")},{stream:void 0}],17:[function(p,F,w){var u=p("./DataReader");function i(n){u.call(this,n);for(var c=0;c<this.data.length;c++)n[c]=255&n[c]}p("../utils").inherits(i,u),i.prototype.byteAt=function(n){return this.data[this.zero+n]},i.prototype.lastIndexOfSignature=function(n){for(var c=n.charCodeAt(0),g=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===c&&this.data[b+1]===g&&this.data[b+2]===y&&this.data[b+3]===m)return b-this.zero;return-1},i.prototype.readAndCheckSignature=function(n){var c=n.charCodeAt(0),g=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),b=this.readData(4);return c===b[0]&&g===b[1]&&y===b[2]&&m===b[3]},i.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},F.exports=i},{"../utils":32,"./DataReader":18}],18:[function(p,F,w){var u=p("../utils");function i(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var c,g=0;for(this.checkOffset(n),c=this.index+n-1;c>=this.index;c--)g=(g<<8)+this.byteAt(c);return this.index+=n,g},readString:function(n){return u.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},F.exports=i},{"../utils":32}],19:[function(p,F,w){var u=p("./Uint8ArrayReader");function i(n){u.call(this,n)}p("../utils").inherits(i,u),i.prototype.readData=function(n){this.checkOffset(n);var c=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},F.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,F,w){var u=p("./DataReader");function i(n){u.call(this,n)}p("../utils").inherits(i,u),i.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},i.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},i.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},i.prototype.readData=function(n){this.checkOffset(n);var c=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},F.exports=i},{"../utils":32,"./DataReader":18}],21:[function(p,F,w){var u=p("./ArrayReader");function i(n){u.call(this,n)}p("../utils").inherits(i,u),i.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},F.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(p,F,w){var u=p("../utils"),i=p("../support"),n=p("./ArrayReader"),c=p("./StringReader"),g=p("./NodeBufferReader"),y=p("./Uint8ArrayReader");F.exports=function(m){var b=u.getTypeOf(m);return u.checkSupport(b),b!=="string"||i.uint8array?b==="nodebuffer"?new g(m):i.uint8array?new y(u.transformTo("uint8array",m)):new n(u.transformTo("array",m)):new c(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,F,w){w.LOCAL_FILE_HEADER="PK",w.CENTRAL_FILE_HEADER="PK",w.CENTRAL_DIRECTORY_END="PK",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,F,w){var u=p("./GenericWorker"),i=p("../utils");function n(c){u.call(this,"ConvertWorker to "+c),this.destType=c}i.inherits(n,u),n.prototype.processChunk=function(c){this.push({data:i.transformTo(this.destType,c.data),meta:c.meta})},F.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(p,F,w){var u=p("./GenericWorker"),i=p("../crc32");function n(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(n,u),n.prototype.processChunk=function(c){this.streamInfo.crc32=i(c.data,this.streamInfo.crc32||0),this.push(c)},F.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,F,w){var u=p("../utils"),i=p("./GenericWorker");function n(c){i.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(n,i),n.prototype.processChunk=function(c){if(c){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+c.data.length}i.prototype.processChunk.call(this,c)},F.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(p,F,w){var u=p("../utils"),i=p("./GenericWorker");function n(c){i.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=u.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}u.inherits(n,i),n.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,g);break;case"uint8array":c=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":c=this.data.slice(this.index,g)}return this.index=g,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},F.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(p,F,w){function u(i){this.name=i||"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}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,n){return this._listeners[i].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,n){if(this._listeners[i])for(var c=0;c<this._listeners[i].length;c++)this._listeners[i][c].call(this,n)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var n=this;return i.on("data",function(c){n.processChunk(c)}),i.on("end",function(){n.end()}),i.on("error",function(c){n.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,n){return this.extraStreamInfo[i]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},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 i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},F.exports=u},{}],29:[function(p,F,w){var u=p("../utils"),i=p("./ConvertWorker"),n=p("./GenericWorker"),c=p("../base64"),g=p("../support"),y=p("../external"),m=null;if(g.nodestream)try{m=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(f,r){return new y.Promise(function(o,s){var h=[],v=f._internalType,k=f._outputType,S=f._mimeType;f.on("data",function(T,O){h.push(T),r&&r(O)}).on("error",function(T){h=[],s(T)}).on("end",function(){try{var T=(function(O,L,z){switch(O){case"blob":return u.newBlob(u.transformTo("arraybuffer",L),z);case"base64":return c.encode(L);default:return u.transformTo(O,L)}})(k,(function(O,L){var z,Z=0,J=null,_=0;for(z=0;z<L.length;z++)_+=L[z].length;switch(O){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(J=new Uint8Array(_),z=0;z<L.length;z++)J.set(L[z],Z),Z+=L[z].length;return J;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+O+"'")}})(v,h),S);o(T)}catch(O){s(O)}h=[]}).resume()})}function a(f,r,o){var s=r;switch(r){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=r,this._mimeType=o,u.checkSupport(s),this._worker=f.pipe(new i(s)),f.lock()}catch(h){this._worker=new n("error"),this._worker.error(h)}}a.prototype={accumulate:function(f){return b(this,f)},on:function(f,r){var o=this;return f==="data"?this._worker.on(f,function(s){r.call(o,s.data,s.meta)}):this._worker.on(f,function(){u.delay(r,arguments,o)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(f){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},f)}},F.exports=a},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,F,w){if(w.base64=!0,w.array=!0,w.string=!0,w.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",w.nodebuffer=typeof Buffer<"u",w.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")w.blob=!1;else{var u=new ArrayBuffer(0);try{w.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(u),w.blob=i.getBlob("application/zip").size===0}catch{w.blob=!1}}}try{w.nodestream=!!p("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(p,F,w){for(var u=p("./utils"),i=p("./support"),n=p("./nodejsUtils"),c=p("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function m(){c.call(this,"utf-8 decode"),this.leftOver=null}function b(){c.call(this,"utf-8 encode")}w.utf8encode=function(a){return i.nodebuffer?n.newBufferFrom(a,"utf-8"):(function(f){var r,o,s,h,v,k=f.length,S=0;for(h=0;h<k;h++)(64512&(o=f.charCodeAt(h)))==55296&&h+1<k&&(64512&(s=f.charCodeAt(h+1)))==56320&&(o=65536+(o-55296<<10)+(s-56320),h++),S+=o<128?1:o<2048?2:o<65536?3:4;for(r=i.uint8array?new Uint8Array(S):new Array(S),h=v=0;v<S;h++)(64512&(o=f.charCodeAt(h)))==55296&&h+1<k&&(64512&(s=f.charCodeAt(h+1)))==56320&&(o=65536+(o-55296<<10)+(s-56320),h++),o<128?r[v++]=o:(o<2048?r[v++]=192|o>>>6:(o<65536?r[v++]=224|o>>>12:(r[v++]=240|o>>>18,r[v++]=128|o>>>12&63),r[v++]=128|o>>>6&63),r[v++]=128|63&o);return r})(a)},w.utf8decode=function(a){return i.nodebuffer?u.transformTo("nodebuffer",a).toString("utf-8"):(function(f){var r,o,s,h,v=f.length,k=new Array(2*v);for(r=o=0;r<v;)if((s=f[r++])<128)k[o++]=s;else if(4<(h=g[s]))k[o++]=65533,r+=h-1;else{for(s&=h===2?31:h===3?15:7;1<h&&r<v;)s=s<<6|63&f[r++],h--;1<h?k[o++]=65533:s<65536?k[o++]=s:(s-=65536,k[o++]=55296|s>>10&1023,k[o++]=56320|1023&s)}return k.length!==o&&(k.subarray?k=k.subarray(0,o):k.length=o),u.applyFromCharCode(k)})(a=u.transformTo(i.uint8array?"uint8array":"array",a))},u.inherits(m,c),m.prototype.processChunk=function(a){var f=u.transformTo(i.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var r=f;(f=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),f.set(r,this.leftOver.length)}else f=this.leftOver.concat(f);this.leftOver=null}var o=(function(h,v){var k;for((v=v||h.length)>h.length&&(v=h.length),k=v-1;0<=k&&(192&h[k])==128;)k--;return k<0||k===0?v:k+g[h[k]]>v?k:v})(f),s=f;o!==f.length&&(i.uint8array?(s=f.subarray(0,o),this.leftOver=f.subarray(o,f.length)):(s=f.slice(0,o),this.leftOver=f.slice(o,f.length))),this.push({data:w.utf8decode(s),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=m,u.inherits(b,c),b.prototype.processChunk=function(a){this.push({data:w.utf8encode(a.data),meta:a.meta})},w.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,F,w){var u=p("./support"),i=p("./base64"),n=p("./nodejsUtils"),c=p("./external");function g(r){return r}function y(r,o){for(var s=0;s<r.length;++s)o[s]=255&r.charCodeAt(s);return o}p("setimmediate"),w.newBlob=function(r,o){w.checkSupport("blob");try{return new Blob([r],{type:o})}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(r),s.getBlob(o)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(r,o,s){var h=[],v=0,k=r.length;if(k<=s)return String.fromCharCode.apply(null,r);for(;v<k;)o==="array"||o==="nodebuffer"?h.push(String.fromCharCode.apply(null,r.slice(v,Math.min(v+s,k)))):h.push(String.fromCharCode.apply(null,r.subarray(v,Math.min(v+s,k)))),v+=s;return h.join("")},stringifyByChar:function(r){for(var o="",s=0;s<r.length;s++)o+=String.fromCharCode(r[s]);return o},applyCanBeUsed:{uint8array:(function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}})()}};function b(r){var o=65536,s=w.getTypeOf(r),h=!0;if(s==="uint8array"?h=m.applyCanBeUsed.uint8array:s==="nodebuffer"&&(h=m.applyCanBeUsed.nodebuffer),h)for(;1<o;)try{return m.stringifyByChunk(r,s,o)}catch{o=Math.floor(o/2)}return m.stringifyByChar(r)}function a(r,o){for(var s=0;s<r.length;s++)o[s]=r[s];return o}w.applyFromCharCode=b;var f={};f.string={string:g,array:function(r){return y(r,new Array(r.length))},arraybuffer:function(r){return f.string.uint8array(r).buffer},uint8array:function(r){return y(r,new Uint8Array(r.length))},nodebuffer:function(r){return y(r,n.allocBuffer(r.length))}},f.array={string:b,array:g,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(r)}},f.arraybuffer={string:function(r){return b(new Uint8Array(r))},array:function(r){return a(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:g,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(new Uint8Array(r))}},f.uint8array={string:b,array:function(r){return a(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:g,nodebuffer:function(r){return n.newBufferFrom(r)}},f.nodebuffer={string:b,array:function(r){return a(r,new Array(r.length))},arraybuffer:function(r){return f.nodebuffer.uint8array(r).buffer},uint8array:function(r){return a(r,new Uint8Array(r.length))},nodebuffer:g},w.transformTo=function(r,o){if(o=o||"",!r)return o;w.checkSupport(r);var s=w.getTypeOf(o);return f[s][r](o)},w.resolve=function(r){for(var o=r.split("/"),s=[],h=0;h<o.length;h++){var v=o[h];v==="."||v===""&&h!==0&&h!==o.length-1||(v===".."?s.pop():s.push(v))}return s.join("/")},w.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":u.nodebuffer&&n.isBuffer(r)?"nodebuffer":u.uint8array&&r instanceof Uint8Array?"uint8array":u.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},w.checkSupport=function(r){if(!u[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},w.MAX_VALUE_16BITS=65535,w.MAX_VALUE_32BITS=-1,w.pretty=function(r){var o,s,h="";for(s=0;s<(r||"").length;s++)h+="\\x"+((o=r.charCodeAt(s))<16?"0":"")+o.toString(16).toUpperCase();return h},w.delay=function(r,o,s){setImmediate(function(){r.apply(s||null,o||[])})},w.inherits=function(r,o){function s(){}s.prototype=o.prototype,r.prototype=new s},w.extend=function(){var r,o,s={};for(r=0;r<arguments.length;r++)for(o in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],o)&&s[o]===void 0&&(s[o]=arguments[r][o]);return s},w.prepareContent=function(r,o,s,h,v){return c.Promise.resolve(o).then(function(k){return u.blob&&(k instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(k))!==-1)&&typeof FileReader<"u"?new c.Promise(function(S,T){var O=new FileReader;O.onload=function(L){S(L.target.result)},O.onerror=function(L){T(L.target.error)},O.readAsArrayBuffer(k)}):k}).then(function(k){var S=w.getTypeOf(k);return S?(S==="arraybuffer"?k=w.transformTo("uint8array",k):S==="string"&&(v?k=i.decode(k):s&&h!==!0&&(k=(function(T){return y(T,u.uint8array?new Uint8Array(T.length):new Array(T.length))})(k))),k):c.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,F,w){var u=p("./reader/readerFor"),i=p("./utils"),n=p("./signature"),c=p("./zipEntry"),g=p("./support");function y(m){this.files=[],this.loadOptions=m}y.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(b)+", expected "+i.pretty(m)+")")}},isSignature:function(m,b){var a=this.reader.index;this.reader.setIndex(m);var f=this.reader.readString(4)===b;return this.reader.setIndex(a),f},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 m=this.reader.readData(this.zipCommentLength),b=g.uint8array?"uint8array":"array",a=i.transformTo(b,m);this.zipComment=this.loadOptions.decodeFileName(a)},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 m,b,a,f=this.zip64EndOfCentralSize-44;0<f;)m=this.reader.readInt(2),b=this.reader.readInt(4),a=this.reader.readData(b),this.zip64ExtensibleData[m]={id:m,length:b,value:a}},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 m,b;for(m=0;m<this.files.length;m++)b=this.files[m],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);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 m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,n.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(m);var b=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a+=20,a+=12+this.zip64EndOfCentralSize);var f=b-a;if(0<f)this.isSignature(b,n.CENTRAL_FILE_HEADER)||(this.reader.zero=f);else if(f<0)throw new Error("Corrupted zip: missing "+Math.abs(f)+" bytes.")},prepareReader:function(m){this.reader=u(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},F.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,F,w){var u=p("./reader/readerFor"),i=p("./utils"),n=p("./compressedObject"),c=p("./crc32"),g=p("./utf8"),y=p("./compressions"),m=p("./support");function b(a,f){this.options=a,this.loadOptions=f}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var f,r;if(a.skip(22),this.fileNameLength=a.readInt(2),r=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(r),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((f=(function(o){for(var s in y)if(Object.prototype.hasOwnProperty.call(y,s)&&y[s].magic===o)return y[s];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,f,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var f=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");a.skip(f),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),a==0&&(this.dosPermissions=63&this.externalFileAttributes),a==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=u(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var f,r,o,s=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<s;)f=a.readInt(2),r=a.readInt(2),o=a.readData(r),this.extraFields[f]={id:f,length:r,value:o};a.setIndex(s)},handleUTF8:function(){var a=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var f=this.findExtraFieldUnicodePath();if(f!==null)this.fileNameStr=f;else{var r=i.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var o=this.findExtraFieldUnicodeComment();if(o!==null)this.fileCommentStr=o;else{var s=i.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var f=u(a.value);return f.readInt(1)!==1||c(this.fileName)!==f.readInt(4)?null:g.utf8decode(f.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var f=u(a.value);return f.readInt(1)!==1||c(this.fileComment)!==f.readInt(4)?null:g.utf8decode(f.readData(a.length-5))}return null}},F.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,F,w){function u(f,r,o){this.name=f,this.dir=o.dir,this.date=o.date,this.comment=o.comment,this.unixPermissions=o.unixPermissions,this.dosPermissions=o.dosPermissions,this._data=r,this._dataBinary=o.binary,this.options={compression:o.compression,compressionOptions:o.compressionOptions}}var i=p("./stream/StreamHelper"),n=p("./stream/DataWorker"),c=p("./utf8"),g=p("./compressedObject"),y=p("./stream/GenericWorker");u.prototype={internalStream:function(f){var r=null,o="string";try{if(!f)throw new Error("No output type specified.");var s=(o=f.toLowerCase())==="string"||o==="text";o!=="binarystring"&&o!=="text"||(o="string"),r=this._decompressWorker();var h=!this._dataBinary;h&&!s&&(r=r.pipe(new c.Utf8EncodeWorker)),!h&&s&&(r=r.pipe(new c.Utf8DecodeWorker))}catch(v){(r=new y("error")).error(v)}return new i(r,o,"")},async:function(f,r){return this.internalStream(f).accumulate(r)},nodeStream:function(f,r){return this.internalStream(f||"nodebuffer").toNodejsStream(r)},_compressWorker:function(f,r){if(this._data instanceof g&&this._data.compression.magic===f.magic)return this._data.getCompressedWorker();var o=this._decompressWorker();return this._dataBinary||(o=o.pipe(new c.Utf8EncodeWorker)),g.createWorkerFrom(o,f,r)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<m.length;a++)u.prototype[m[a]]=b;F.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,F,w){(function(u){var i,n,c=u.MutationObserver||u.WebKitMutationObserver;if(c){var g=0,y=new c(f),m=u.document.createTextNode("");y.observe(m,{characterData:!0}),i=function(){m.data=g=++g%2}}else if(u.setImmediate||u.MessageChannel===void 0)i="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var r=u.document.createElement("script");r.onreadystatechange=function(){f(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},u.document.documentElement.appendChild(r)}:function(){setTimeout(f,0)};else{var b=new u.MessageChannel;b.port1.onmessage=f,i=function(){b.port2.postMessage(0)}}var a=[];function f(){var r,o;n=!0;for(var s=a.length;s;){for(o=a,a=[],r=-1;++r<s;)o[r]();s=a.length}n=!1}F.exports=function(r){a.push(r)!==1||n||i()}}).call(this,typeof St<"u"?St:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,F,w){var u=p("immediate");function i(){}var n={},c=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function m(s){if(typeof s!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,s!==i&&r(this,s)}function b(s,h,v){this.promise=s,typeof h=="function"&&(this.onFulfilled=h,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function a(s,h,v){u(function(){var k;try{k=h(v)}catch(S){return n.reject(s,S)}k===s?n.reject(s,new TypeError("Cannot resolve promise with itself")):n.resolve(s,k)})}function f(s){var h=s&&s.then;if(s&&(typeof s=="object"||typeof s=="function")&&typeof h=="function")return function(){h.apply(s,arguments)}}function r(s,h){var v=!1;function k(O){v||(v=!0,n.reject(s,O))}function S(O){v||(v=!0,n.resolve(s,O))}var T=o(function(){h(S,k)});T.status==="error"&&k(T.value)}function o(s,h){var v={};try{v.value=s(h),v.status="success"}catch(k){v.status="error",v.value=k}return v}(F.exports=m).prototype.finally=function(s){if(typeof s!="function")return this;var h=this.constructor;return this.then(function(v){return h.resolve(s()).then(function(){return v})},function(v){return h.resolve(s()).then(function(){throw v})})},m.prototype.catch=function(s){return this.then(null,s)},m.prototype.then=function(s,h){if(typeof s!="function"&&this.state===g||typeof h!="function"&&this.state===c)return this;var v=new this.constructor(i);return this.state!==y?a(v,this.state===g?s:h,this.outcome):this.queue.push(new b(v,s,h)),v},b.prototype.callFulfilled=function(s){n.resolve(this.promise,s)},b.prototype.otherCallFulfilled=function(s){a(this.promise,this.onFulfilled,s)},b.prototype.callRejected=function(s){n.reject(this.promise,s)},b.prototype.otherCallRejected=function(s){a(this.promise,this.onRejected,s)},n.resolve=function(s,h){var v=o(f,h);if(v.status==="error")return n.reject(s,v.value);var k=v.value;if(k)r(s,k);else{s.state=g,s.outcome=h;for(var S=-1,T=s.queue.length;++S<T;)s.queue[S].callFulfilled(h)}return s},n.reject=function(s,h){s.state=c,s.outcome=h;for(var v=-1,k=s.queue.length;++v<k;)s.queue[v].callRejected(h);return s},m.resolve=function(s){return s instanceof this?s:n.resolve(new this(i),s)},m.reject=function(s){var h=new this(i);return n.reject(h,s)},m.all=function(s){var h=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=s.length,k=!1;if(!v)return this.resolve([]);for(var S=new Array(v),T=0,O=-1,L=new this(i);++O<v;)z(s[O],O);return L;function z(Z,J){h.resolve(Z).then(function(_){S[J]=_,++T!==v||k||(k=!0,n.resolve(L,S))},function(_){k||(k=!0,n.reject(L,_))})}},m.race=function(s){var h=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=s.length,k=!1;if(!v)return this.resolve([]);for(var S=-1,T=new this(i);++S<v;)O=s[S],h.resolve(O).then(function(L){k||(k=!0,n.resolve(T,L))},function(L){k||(k=!0,n.reject(T,L))});var O;return T}},{immediate:36}],38:[function(p,F,w){var u={};(0,p("./lib/utils/common").assign)(u,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),F.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,F,w){var u=p("./zlib/deflate"),i=p("./utils/common"),n=p("./utils/strings"),c=p("./zlib/messages"),g=p("./zlib/zstream"),y=Object.prototype.toString,m=0,b=-1,a=0,f=8;function r(s){if(!(this instanceof r))return new r(s);this.options=i.assign({level:b,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},s||{});var h=this.options;h.raw&&0<h.windowBits?h.windowBits=-h.windowBits:h.gzip&&0<h.windowBits&&h.windowBits<16&&(h.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var v=u.deflateInit2(this.strm,h.level,h.method,h.windowBits,h.memLevel,h.strategy);if(v!==m)throw new Error(c[v]);if(h.header&&u.deflateSetHeader(this.strm,h.header),h.dictionary){var k;if(k=typeof h.dictionary=="string"?n.string2buf(h.dictionary):y.call(h.dictionary)==="[object ArrayBuffer]"?new Uint8Array(h.dictionary):h.dictionary,(v=u.deflateSetDictionary(this.strm,k))!==m)throw new Error(c[v]);this._dict_set=!0}}function o(s,h){var v=new r(h);if(v.push(s,!0),v.err)throw v.msg||c[v.err];return v.result}r.prototype.push=function(s,h){var v,k,S=this.strm,T=this.options.chunkSize;if(this.ended)return!1;k=h===~~h?h:h===!0?4:0,typeof s=="string"?S.input=n.string2buf(s):y.call(s)==="[object ArrayBuffer]"?S.input=new Uint8Array(s):S.input=s,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new i.Buf8(T),S.next_out=0,S.avail_out=T),(v=u.deflate(S,k))!==1&&v!==m)return this.onEnd(v),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||k!==4&&k!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(i.shrinkBuf(S.output,S.next_out))):this.onData(i.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&v!==1);return k===4?(v=u.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===m):k!==2||(this.onEnd(m),!(S.avail_out=0))},r.prototype.onData=function(s){this.chunks.push(s)},r.prototype.onEnd=function(s){s===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},w.Deflate=r,w.deflate=o,w.deflateRaw=function(s,h){return(h=h||{}).raw=!0,o(s,h)},w.gzip=function(s,h){return(h=h||{}).gzip=!0,o(s,h)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,F,w){var u=p("./zlib/inflate"),i=p("./utils/common"),n=p("./utils/strings"),c=p("./zlib/constants"),g=p("./zlib/messages"),y=p("./zlib/zstream"),m=p("./zlib/gzheader"),b=Object.prototype.toString;function a(r){if(!(this instanceof a))return new a(r);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},r||{});var o=this.options;o.raw&&0<=o.windowBits&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),!(0<=o.windowBits&&o.windowBits<16)||r&&r.windowBits||(o.windowBits+=32),15<o.windowBits&&o.windowBits<48&&(15&o.windowBits)==0&&(o.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var s=u.inflateInit2(this.strm,o.windowBits);if(s!==c.Z_OK)throw new Error(g[s]);this.header=new m,u.inflateGetHeader(this.strm,this.header)}function f(r,o){var s=new a(o);if(s.push(r,!0),s.err)throw s.msg||g[s.err];return s.result}a.prototype.push=function(r,o){var s,h,v,k,S,T,O=this.strm,L=this.options.chunkSize,z=this.options.dictionary,Z=!1;if(this.ended)return!1;h=o===~~o?o:o===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof r=="string"?O.input=n.binstring2buf(r):b.call(r)==="[object ArrayBuffer]"?O.input=new Uint8Array(r):O.input=r,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new i.Buf8(L),O.next_out=0,O.avail_out=L),(s=u.inflate(O,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&z&&(T=typeof z=="string"?n.string2buf(z):b.call(z)==="[object ArrayBuffer]"?new Uint8Array(z):z,s=u.inflateSetDictionary(this.strm,T)),s===c.Z_BUF_ERROR&&Z===!0&&(s=c.Z_OK,Z=!1),s!==c.Z_STREAM_END&&s!==c.Z_OK)return this.onEnd(s),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&s!==c.Z_STREAM_END&&(O.avail_in!==0||h!==c.Z_FINISH&&h!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=n.utf8border(O.output,O.next_out),k=O.next_out-v,S=n.buf2string(O.output,v),O.next_out=k,O.avail_out=L-k,k&&i.arraySet(O.output,O.output,v,k,0),this.onData(S)):this.onData(i.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(Z=!0)}while((0<O.avail_in||O.avail_out===0)&&s!==c.Z_STREAM_END);return s===c.Z_STREAM_END&&(h=c.Z_FINISH),h===c.Z_FINISH?(s=u.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===c.Z_OK):h!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(O.avail_out=0))},a.prototype.onData=function(r){this.chunks.push(r)},a.prototype.onEnd=function(r){r===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},w.Inflate=a,w.inflate=f,w.inflateRaw=function(r,o){return(o=o||{}).raw=!0,f(r,o)},w.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,F,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";w.assign=function(c){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var m in y)y.hasOwnProperty(m)&&(c[m]=y[m])}}return c},w.shrinkBuf=function(c,g){return c.length===g?c:c.subarray?c.subarray(0,g):(c.length=g,c)};var i={arraySet:function(c,g,y,m,b){if(g.subarray&&c.subarray)c.set(g.subarray(y,y+m),b);else for(var a=0;a<m;a++)c[b+a]=g[y+a]},flattenChunks:function(c){var g,y,m,b,a,f;for(g=m=0,y=c.length;g<y;g++)m+=c[g].length;for(f=new Uint8Array(m),g=b=0,y=c.length;g<y;g++)a=c[g],f.set(a,b),b+=a.length;return f}},n={arraySet:function(c,g,y,m,b){for(var a=0;a<m;a++)c[b+a]=g[y+a]},flattenChunks:function(c){return[].concat.apply([],c)}};w.setTyped=function(c){c?(w.Buf8=Uint8Array,w.Buf16=Uint16Array,w.Buf32=Int32Array,w.assign(w,i)):(w.Buf8=Array,w.Buf16=Array,w.Buf32=Array,w.assign(w,n))},w.setTyped(u)},{}],42:[function(p,F,w){var u=p("./common"),i=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var c=new u.Buf8(256),g=0;g<256;g++)c[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(m,b){if(b<65537&&(m.subarray&&n||!m.subarray&&i))return String.fromCharCode.apply(null,u.shrinkBuf(m,b));for(var a="",f=0;f<b;f++)a+=String.fromCharCode(m[f]);return a}c[254]=c[254]=1,w.string2buf=function(m){var b,a,f,r,o,s=m.length,h=0;for(r=0;r<s;r++)(64512&(a=m.charCodeAt(r)))==55296&&r+1<s&&(64512&(f=m.charCodeAt(r+1)))==56320&&(a=65536+(a-55296<<10)+(f-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(b=new u.Buf8(h),r=o=0;o<h;r++)(64512&(a=m.charCodeAt(r)))==55296&&r+1<s&&(64512&(f=m.charCodeAt(r+1)))==56320&&(a=65536+(a-55296<<10)+(f-56320),r++),a<128?b[o++]=a:(a<2048?b[o++]=192|a>>>6:(a<65536?b[o++]=224|a>>>12:(b[o++]=240|a>>>18,b[o++]=128|a>>>12&63),b[o++]=128|a>>>6&63),b[o++]=128|63&a);return b},w.buf2binstring=function(m){return y(m,m.length)},w.binstring2buf=function(m){for(var b=new u.Buf8(m.length),a=0,f=b.length;a<f;a++)b[a]=m.charCodeAt(a);return b},w.buf2string=function(m,b){var a,f,r,o,s=b||m.length,h=new Array(2*s);for(a=f=0;a<s;)if((r=m[a++])<128)h[f++]=r;else if(4<(o=c[r]))h[f++]=65533,a+=o-1;else{for(r&=o===2?31:o===3?15:7;1<o&&a<s;)r=r<<6|63&m[a++],o--;1<o?h[f++]=65533:r<65536?h[f++]=r:(r-=65536,h[f++]=55296|r>>10&1023,h[f++]=56320|1023&r)}return y(h,f)},w.utf8border=function(m,b){var a;for((b=b||m.length)>m.length&&(b=m.length),a=b-1;0<=a&&(192&m[a])==128;)a--;return a<0||a===0?b:a+c[m[a]]>b?a:b}},{"./common":41}],43:[function(p,F,w){F.exports=function(u,i,n,c){for(var g=65535&u|0,y=u>>>16&65535|0,m=0;n!==0;){for(n-=m=2e3<n?2e3:n;y=y+(g=g+i[c++]|0)|0,--m;);g%=65521,y%=65521}return g|y<<16|0}},{}],44:[function(p,F,w){F.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(p,F,w){var u=(function(){for(var i,n=[],c=0;c<256;c++){i=c;for(var g=0;g<8;g++)i=1&i?3988292384^i>>>1:i>>>1;n[c]=i}return n})();F.exports=function(i,n,c,g){var y=u,m=g+c;i^=-1;for(var b=g;b<m;b++)i=i>>>8^y[255&(i^n[b])];return-1^i}},{}],46:[function(p,F,w){var u,i=p("../utils/common"),n=p("./trees"),c=p("./adler32"),g=p("./crc32"),y=p("./messages"),m=0,b=4,a=0,f=-2,r=-1,o=4,s=2,h=8,v=9,k=286,S=30,T=19,O=2*k+1,L=15,z=3,Z=258,J=Z+z+1,_=42,R=113,e=1,N=2,$=3,P=4;function Q(t,j){return t.msg=y[j],j}function U(t){return(t<<1)-(4<t?9:0)}function X(t){for(var j=t.length;0<=--j;)t[j]=0}function C(t){var j=t.state,I=j.pending;I>t.avail_out&&(I=t.avail_out),I!==0&&(i.arraySet(t.output,j.pending_buf,j.pending_out,I,t.next_out),t.next_out+=I,j.pending_out+=I,t.total_out+=I,t.avail_out-=I,j.pending-=I,j.pending===0&&(j.pending_out=0))}function E(t,j){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,j),t.block_start=t.strstart,C(t.strm)}function q(t,j){t.pending_buf[t.pending++]=j}function V(t,j){t.pending_buf[t.pending++]=j>>>8&255,t.pending_buf[t.pending++]=255&j}function H(t,j){var I,d,l=t.max_chain_length,x=t.strstart,B=t.prev_length,D=t.nice_match,A=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,W=t.window,K=t.w_mask,G=t.prev,Y=t.strstart+Z,it=W[x+B-1],et=W[x+B];t.prev_length>=t.good_match&&(l>>=2),D>t.lookahead&&(D=t.lookahead);do if(W[(I=j)+B]===et&&W[I+B-1]===it&&W[I]===W[x]&&W[++I]===W[x+1]){x+=2,I++;do;while(W[++x]===W[++I]&&W[++x]===W[++I]&&W[++x]===W[++I]&&W[++x]===W[++I]&&W[++x]===W[++I]&&W[++x]===W[++I]&&W[++x]===W[++I]&&W[++x]===W[++I]&&x<Y);if(d=Z-(Y-x),x=Y-Z,B<d){if(t.match_start=j,D<=(B=d))break;it=W[x+B-1],et=W[x+B]}}while((j=G[j&K])>A&&--l!=0);return B<=t.lookahead?B:t.lookahead}function at(t){var j,I,d,l,x,B,D,A,W,K,G=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=G+(G-J)){for(i.arraySet(t.window,t.window,G,G,0),t.match_start-=G,t.strstart-=G,t.block_start-=G,j=I=t.hash_size;d=t.head[--j],t.head[j]=G<=d?d-G:0,--I;);for(j=I=G;d=t.prev[--j],t.prev[j]=G<=d?d-G:0,--I;);l+=G}if(t.strm.avail_in===0)break;if(B=t.strm,D=t.window,A=t.strstart+t.lookahead,W=l,K=void 0,K=B.avail_in,W<K&&(K=W),I=K===0?0:(B.avail_in-=K,i.arraySet(D,B.input,B.next_in,K,A),B.state.wrap===1?B.adler=c(B.adler,D,K,A):B.state.wrap===2&&(B.adler=g(B.adler,D,K,A)),B.next_in+=K,B.total_in+=K,K),t.lookahead+=I,t.lookahead+t.insert>=z)for(x=t.strstart-t.insert,t.ins_h=t.window[x],t.ins_h=(t.ins_h<<t.hash_shift^t.window[x+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[x+z-1])&t.hash_mask,t.prev[x&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=x,x++,t.insert--,!(t.lookahead+t.insert<z)););}while(t.lookahead<J&&t.strm.avail_in!==0)}function ct(t,j){for(var I,d;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&j===m)return e;if(t.lookahead===0)break}if(I=0,t.lookahead>=z&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),I!==0&&t.strstart-I<=t.w_size-J&&(t.match_length=H(t,I)),t.match_length>=z)if(d=n._tr_tally(t,t.strstart-t.match_start,t.match_length-z),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=z){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else d=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(d&&(E(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<z-1?t.strstart:z-1,j===b?(E(t,!0),t.strm.avail_out===0?$:P):t.last_lit&&(E(t,!1),t.strm.avail_out===0)?e:N}function tt(t,j){for(var I,d,l;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&j===m)return e;if(t.lookahead===0)break}if(I=0,t.lookahead>=z&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=z-1,I!==0&&t.prev_length<t.max_lazy_match&&t.strstart-I<=t.w_size-J&&(t.match_length=H(t,I),t.match_length<=5&&(t.strategy===1||t.match_length===z&&4096<t.strstart-t.match_start)&&(t.match_length=z-1)),t.prev_length>=z&&t.match_length<=t.prev_length){for(l=t.strstart+t.lookahead-z,d=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-z),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=l&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=z-1,t.strstart++,d&&(E(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((d=n._tr_tally(t,0,t.window[t.strstart-1]))&&E(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(d=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<z-1?t.strstart:z-1,j===b?(E(t,!0),t.strm.avail_out===0?$:P):t.last_lit&&(E(t,!1),t.strm.avail_out===0)?e:N}function rt(t,j,I,d,l){this.good_length=t,this.max_lazy=j,this.nice_length=I,this.max_chain=d,this.func=l}function lt(){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=h,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 i.Buf16(2*O),this.dyn_dtree=new i.Buf16(2*(2*S+1)),this.bl_tree=new i.Buf16(2*(2*T+1)),X(this.dyn_ltree),X(this.dyn_dtree),X(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(L+1),this.heap=new i.Buf16(2*k+1),X(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*k+1),X(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 st(t){var j;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=s,(j=t.state).pending=0,j.pending_out=0,j.wrap<0&&(j.wrap=-j.wrap),j.status=j.wrap?_:R,t.adler=j.wrap===2?0:1,j.last_flush=m,n._tr_init(j),a):Q(t,f)}function pt(t){var j=st(t);return j===a&&(function(I){I.window_size=2*I.w_size,X(I.head),I.max_lazy_match=u[I.level].max_lazy,I.good_match=u[I.level].good_length,I.nice_match=u[I.level].nice_length,I.max_chain_length=u[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=z-1,I.match_available=0,I.ins_h=0})(t.state),j}function ht(t,j,I,d,l,x){if(!t)return f;var B=1;if(j===r&&(j=6),d<0?(B=0,d=-d):15<d&&(B=2,d-=16),l<1||v<l||I!==h||d<8||15<d||j<0||9<j||x<0||o<x)return Q(t,f);d===8&&(d=9);var D=new lt;return(t.state=D).strm=t,D.wrap=B,D.gzhead=null,D.w_bits=d,D.w_size=1<<D.w_bits,D.w_mask=D.w_size-1,D.hash_bits=l+7,D.hash_size=1<<D.hash_bits,D.hash_mask=D.hash_size-1,D.hash_shift=~~((D.hash_bits+z-1)/z),D.window=new i.Buf8(2*D.w_size),D.head=new i.Buf16(D.hash_size),D.prev=new i.Buf16(D.w_size),D.lit_bufsize=1<<l+6,D.pending_buf_size=4*D.lit_bufsize,D.pending_buf=new i.Buf8(D.pending_buf_size),D.d_buf=1*D.lit_bufsize,D.l_buf=3*D.lit_bufsize,D.level=j,D.strategy=x,D.method=I,pt(t)}u=[new rt(0,0,0,0,function(t,j){var I=65535;for(I>t.pending_buf_size-5&&(I=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),t.lookahead===0&&j===m)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var d=t.block_start+I;if((t.strstart===0||t.strstart>=d)&&(t.lookahead=t.strstart-d,t.strstart=d,E(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-J&&(E(t,!1),t.strm.avail_out===0))return e}return t.insert=0,j===b?(E(t,!0),t.strm.avail_out===0?$:P):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),e)}),new rt(4,4,8,4,ct),new rt(4,5,16,8,ct),new rt(4,6,32,32,ct),new rt(4,4,16,16,tt),new rt(8,16,32,32,tt),new rt(8,16,128,128,tt),new rt(8,32,128,256,tt),new rt(32,128,258,1024,tt),new rt(32,258,258,4096,tt)],w.deflateInit=function(t,j){return ht(t,j,h,15,8,0)},w.deflateInit2=ht,w.deflateReset=pt,w.deflateResetKeep=st,w.deflateSetHeader=function(t,j){return t&&t.state?t.state.wrap!==2?f:(t.state.gzhead=j,a):f},w.deflate=function(t,j){var I,d,l,x;if(!t||!t.state||5<j||j<0)return t?Q(t,f):f;if(d=t.state,!t.output||!t.input&&t.avail_in!==0||d.status===666&&j!==b)return Q(t,t.avail_out===0?-5:f);if(d.strm=t,I=d.last_flush,d.last_flush=j,d.status===_)if(d.wrap===2)t.adler=0,q(d,31),q(d,139),q(d,8),d.gzhead?(q(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),q(d,255&d.gzhead.time),q(d,d.gzhead.time>>8&255),q(d,d.gzhead.time>>16&255),q(d,d.gzhead.time>>24&255),q(d,d.level===9?2:2<=d.strategy||d.level<2?4:0),q(d,255&d.gzhead.os),d.gzhead.extra&&d.gzhead.extra.length&&(q(d,255&d.gzhead.extra.length),q(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(t.adler=g(t.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=69):(q(d,0),q(d,0),q(d,0),q(d,0),q(d,0),q(d,d.level===9?2:2<=d.strategy||d.level<2?4:0),q(d,3),d.status=R);else{var B=h+(d.w_bits-8<<4)<<8;B|=(2<=d.strategy||d.level<2?0:d.level<6?1:d.level===6?2:3)<<6,d.strstart!==0&&(B|=32),B+=31-B%31,d.status=R,V(d,B),d.strstart!==0&&(V(d,t.adler>>>16),V(d,65535&t.adler)),t.adler=1}if(d.status===69)if(d.gzhead.extra){for(l=d.pending;d.gzindex<(65535&d.gzhead.extra.length)&&(d.pending!==d.pending_buf_size||(d.gzhead.hcrc&&d.pending>l&&(t.adler=g(t.adler,d.pending_buf,d.pending-l,l)),C(t),l=d.pending,d.pending!==d.pending_buf_size));)q(d,255&d.gzhead.extra[d.gzindex]),d.gzindex++;d.gzhead.hcrc&&d.pending>l&&(t.adler=g(t.adler,d.pending_buf,d.pending-l,l)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=73)}else d.status=73;if(d.status===73)if(d.gzhead.name){l=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>l&&(t.adler=g(t.adler,d.pending_buf,d.pending-l,l)),C(t),l=d.pending,d.pending===d.pending_buf_size)){x=1;break}x=d.gzindex<d.gzhead.name.length?255&d.gzhead.name.charCodeAt(d.gzindex++):0,q(d,x)}while(x!==0);d.gzhead.hcrc&&d.pending>l&&(t.adler=g(t.adler,d.pending_buf,d.pending-l,l)),x===0&&(d.gzindex=0,d.status=91)}else d.status=91;if(d.status===91)if(d.gzhead.comment){l=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>l&&(t.adler=g(t.adler,d.pending_buf,d.pending-l,l)),C(t),l=d.pending,d.pending===d.pending_buf_size)){x=1;break}x=d.gzindex<d.gzhead.comment.length?255&d.gzhead.comment.charCodeAt(d.gzindex++):0,q(d,x)}while(x!==0);d.gzhead.hcrc&&d.pending>l&&(t.adler=g(t.adler,d.pending_buf,d.pending-l,l)),x===0&&(d.status=103)}else d.status=103;if(d.status===103&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&C(t),d.pending+2<=d.pending_buf_size&&(q(d,255&t.adler),q(d,t.adler>>8&255),t.adler=0,d.status=R)):d.status=R),d.pending!==0){if(C(t),t.avail_out===0)return d.last_flush=-1,a}else if(t.avail_in===0&&U(j)<=U(I)&&j!==b)return Q(t,-5);if(d.status===666&&t.avail_in!==0)return Q(t,-5);if(t.avail_in!==0||d.lookahead!==0||j!==m&&d.status!==666){var D=d.strategy===2?(function(A,W){for(var K;;){if(A.lookahead===0&&(at(A),A.lookahead===0)){if(W===m)return e;break}if(A.match_length=0,K=n._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,K&&(E(A,!1),A.strm.avail_out===0))return e}return A.insert=0,W===b?(E(A,!0),A.strm.avail_out===0?$:P):A.last_lit&&(E(A,!1),A.strm.avail_out===0)?e:N})(d,j):d.strategy===3?(function(A,W){for(var K,G,Y,it,et=A.window;;){if(A.lookahead<=Z){if(at(A),A.lookahead<=Z&&W===m)return e;if(A.lookahead===0)break}if(A.match_length=0,A.lookahead>=z&&0<A.strstart&&(G=et[Y=A.strstart-1])===et[++Y]&&G===et[++Y]&&G===et[++Y]){it=A.strstart+Z;do;while(G===et[++Y]&&G===et[++Y]&&G===et[++Y]&&G===et[++Y]&&G===et[++Y]&&G===et[++Y]&&G===et[++Y]&&G===et[++Y]&&Y<it);A.match_length=Z-(it-Y),A.match_length>A.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=z?(K=n._tr_tally(A,1,A.match_length-z),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(K=n._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),K&&(E(A,!1),A.strm.avail_out===0))return e}return A.insert=0,W===b?(E(A,!0),A.strm.avail_out===0?$:P):A.last_lit&&(E(A,!1),A.strm.avail_out===0)?e:N})(d,j):u[d.level].func(d,j);if(D!==$&&D!==P||(d.status=666),D===e||D===$)return t.avail_out===0&&(d.last_flush=-1),a;if(D===N&&(j===1?n._tr_align(d):j!==5&&(n._tr_stored_block(d,0,0,!1),j===3&&(X(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),C(t),t.avail_out===0))return d.last_flush=-1,a}return j!==b?a:d.wrap<=0?1:(d.wrap===2?(q(d,255&t.adler),q(d,t.adler>>8&255),q(d,t.adler>>16&255),q(d,t.adler>>24&255),q(d,255&t.total_in),q(d,t.total_in>>8&255),q(d,t.total_in>>16&255),q(d,t.total_in>>24&255)):(V(d,t.adler>>>16),V(d,65535&t.adler)),C(t),0<d.wrap&&(d.wrap=-d.wrap),d.pending!==0?a:1)},w.deflateEnd=function(t){var j;return t&&t.state?(j=t.state.status)!==_&&j!==69&&j!==73&&j!==91&&j!==103&&j!==R&&j!==666?Q(t,f):(t.state=null,j===R?Q(t,-3):a):f},w.deflateSetDictionary=function(t,j){var I,d,l,x,B,D,A,W,K=j.length;if(!t||!t.state||(x=(I=t.state).wrap)===2||x===1&&I.status!==_||I.lookahead)return f;for(x===1&&(t.adler=c(t.adler,j,K,0)),I.wrap=0,K>=I.w_size&&(x===0&&(X(I.head),I.strstart=0,I.block_start=0,I.insert=0),W=new i.Buf8(I.w_size),i.arraySet(W,j,K-I.w_size,I.w_size,0),j=W,K=I.w_size),B=t.avail_in,D=t.next_in,A=t.input,t.avail_in=K,t.next_in=0,t.input=j,at(I);I.lookahead>=z;){for(d=I.strstart,l=I.lookahead-(z-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[d+z-1])&I.hash_mask,I.prev[d&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=d,d++,--l;);I.strstart=d,I.lookahead=z-1,at(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=z-1,I.match_available=0,t.next_in=D,t.input=A,t.avail_in=B,I.wrap=x,a},w.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,F,w){F.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(p,F,w){F.exports=function(u,i){var n,c,g,y,m,b,a,f,r,o,s,h,v,k,S,T,O,L,z,Z,J,_,R,e,N;n=u.state,c=u.next_in,e=u.input,g=c+(u.avail_in-5),y=u.next_out,N=u.output,m=y-(i-u.avail_out),b=y+(u.avail_out-257),a=n.dmax,f=n.wsize,r=n.whave,o=n.wnext,s=n.window,h=n.hold,v=n.bits,k=n.lencode,S=n.distcode,T=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{v<15&&(h+=e[c++]<<v,v+=8,h+=e[c++]<<v,v+=8),L=k[h&T];e:for(;;){if(h>>>=z=L>>>24,v-=z,(z=L>>>16&255)===0)N[y++]=65535&L;else{if(!(16&z)){if((64&z)==0){L=k[(65535&L)+(h&(1<<z)-1)];continue e}if(32&z){n.mode=12;break t}u.msg="invalid literal/length code",n.mode=30;break t}Z=65535&L,(z&=15)&&(v<z&&(h+=e[c++]<<v,v+=8),Z+=h&(1<<z)-1,h>>>=z,v-=z),v<15&&(h+=e[c++]<<v,v+=8,h+=e[c++]<<v,v+=8),L=S[h&O];r:for(;;){if(h>>>=z=L>>>24,v-=z,!(16&(z=L>>>16&255))){if((64&z)==0){L=S[(65535&L)+(h&(1<<z)-1)];continue r}u.msg="invalid distance code",n.mode=30;break t}if(J=65535&L,v<(z&=15)&&(h+=e[c++]<<v,(v+=8)<z&&(h+=e[c++]<<v,v+=8)),a<(J+=h&(1<<z)-1)){u.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=z,v-=z,(z=y-m)<J){if(r<(z=J-z)&&n.sane){u.msg="invalid distance too far back",n.mode=30;break t}if(R=s,(_=0)===o){if(_+=f-z,z<Z){for(Z-=z;N[y++]=s[_++],--z;);_=y-J,R=N}}else if(o<z){if(_+=f+o-z,(z-=o)<Z){for(Z-=z;N[y++]=s[_++],--z;);if(_=0,o<Z){for(Z-=z=o;N[y++]=s[_++],--z;);_=y-J,R=N}}}else if(_+=o-z,z<Z){for(Z-=z;N[y++]=s[_++],--z;);_=y-J,R=N}for(;2<Z;)N[y++]=R[_++],N[y++]=R[_++],N[y++]=R[_++],Z-=3;Z&&(N[y++]=R[_++],1<Z&&(N[y++]=R[_++]))}else{for(_=y-J;N[y++]=N[_++],N[y++]=N[_++],N[y++]=N[_++],2<(Z-=3););Z&&(N[y++]=N[_++],1<Z&&(N[y++]=N[_++]))}break}}break}}while(c<g&&y<b);c-=Z=v>>3,h&=(1<<(v-=Z<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c<g?g-c+5:5-(c-g),u.avail_out=y<b?b-y+257:257-(y-b),n.hold=h,n.bits=v}},{}],49:[function(p,F,w){var u=p("../utils/common"),i=p("./adler32"),n=p("./crc32"),c=p("./inffast"),g=p("./inftrees"),y=1,m=2,b=0,a=-2,f=1,r=852,o=592;function s(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function h(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(_){var R;return _&&_.state?(R=_.state,_.total_in=_.total_out=R.total=0,_.msg="",R.wrap&&(_.adler=1&R.wrap),R.mode=f,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new u.Buf32(r),R.distcode=R.distdyn=new u.Buf32(o),R.sane=1,R.back=-1,b):a}function k(_){var R;return _&&_.state?((R=_.state).wsize=0,R.whave=0,R.wnext=0,v(_)):a}function S(_,R){var e,N;return _&&_.state?(N=_.state,R<0?(e=0,R=-R):(e=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?a:(N.window!==null&&N.wbits!==R&&(N.window=null),N.wrap=e,N.wbits=R,k(_))):a}function T(_,R){var e,N;return _?(N=new h,(_.state=N).window=null,(e=S(_,R))!==b&&(_.state=null),e):a}var O,L,z=!0;function Z(_){if(z){var R;for(O=new u.Buf32(512),L=new u.Buf32(32),R=0;R<144;)_.lens[R++]=8;for(;R<256;)_.lens[R++]=9;for(;R<280;)_.lens[R++]=7;for(;R<288;)_.lens[R++]=8;for(g(y,_.lens,0,288,O,0,_.work,{bits:9}),R=0;R<32;)_.lens[R++]=5;g(m,_.lens,0,32,L,0,_.work,{bits:5}),z=!1}_.lencode=O,_.lenbits=9,_.distcode=L,_.distbits=5}function J(_,R,e,N){var $,P=_.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new u.Buf8(P.wsize)),N>=P.wsize?(u.arraySet(P.window,R,e-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(N<($=P.wsize-P.wnext)&&($=N),u.arraySet(P.window,R,e-N,$,P.wnext),(N-=$)?(u.arraySet(P.window,R,e-N,N,0),P.wnext=N,P.whave=P.wsize):(P.wnext+=$,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=$))),0}w.inflateReset=k,w.inflateReset2=S,w.inflateResetKeep=v,w.inflateInit=function(_){return T(_,15)},w.inflateInit2=T,w.inflate=function(_,R){var e,N,$,P,Q,U,X,C,E,q,V,H,at,ct,tt,rt,lt,st,pt,ht,t,j,I,d,l=0,x=new u.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return a;(e=_.state).mode===12&&(e.mode=13),Q=_.next_out,$=_.output,X=_.avail_out,P=_.next_in,N=_.input,U=_.avail_in,C=e.hold,E=e.bits,q=U,V=X,j=b;t:for(;;)switch(e.mode){case f:if(e.wrap===0){e.mode=13;break}for(;E<16;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(2&e.wrap&&C===35615){x[e.check=0]=255&C,x[1]=C>>>8&255,e.check=n(e.check,x,2,0),E=C=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&C)<<8)+(C>>8))%31){_.msg="incorrect header check",e.mode=30;break}if((15&C)!=8){_.msg="unknown compression method",e.mode=30;break}if(E-=4,t=8+(15&(C>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){_.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,_.adler=e.check=1,e.mode=512&C?10:12,E=C=0;break;case 2:for(;E<16;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(e.flags=C,(255&e.flags)!=8){_.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){_.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=C>>8&1),512&e.flags&&(x[0]=255&C,x[1]=C>>>8&255,e.check=n(e.check,x,2,0)),E=C=0,e.mode=3;case 3:for(;E<32;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}e.head&&(e.head.time=C),512&e.flags&&(x[0]=255&C,x[1]=C>>>8&255,x[2]=C>>>16&255,x[3]=C>>>24&255,e.check=n(e.check,x,4,0)),E=C=0,e.mode=4;case 4:for(;E<16;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}e.head&&(e.head.xflags=255&C,e.head.os=C>>8),512&e.flags&&(x[0]=255&C,x[1]=C>>>8&255,e.check=n(e.check,x,2,0)),E=C=0,e.mode=5;case 5:if(1024&e.flags){for(;E<16;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}e.length=C,e.head&&(e.head.extra_len=C),512&e.flags&&(x[0]=255&C,x[1]=C>>>8&255,e.check=n(e.check,x,2,0)),E=C=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(U<(H=e.length)&&(H=U),H&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),u.arraySet(e.head.extra,N,P,H,t)),512&e.flags&&(e.check=n(e.check,N,H,P)),U-=H,P+=H,e.length-=H),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(U===0)break t;for(H=0;t=N[P+H++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&H<U;);if(512&e.flags&&(e.check=n(e.check,N,H,P)),U-=H,P+=H,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(U===0)break t;for(H=0;t=N[P+H++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&H<U;);if(512&e.flags&&(e.check=n(e.check,N,H,P)),U-=H,P+=H,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;E<16;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(C!==(65535&e.check)){_.msg="header crc mismatch",e.mode=30;break}E=C=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),_.adler=e.check=0,e.mode=12;break;case 10:for(;E<32;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}_.adler=e.check=s(C),E=C=0,e.mode=11;case 11:if(e.havedict===0)return _.next_out=Q,_.avail_out=X,_.next_in=P,_.avail_in=U,e.hold=C,e.bits=E,2;_.adler=e.check=1,e.mode=12;case 12:if(R===5||R===6)break t;case 13:if(e.last){C>>>=7&E,E-=7&E,e.mode=27;break}for(;E<3;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}switch(e.last=1&C,E-=1,3&(C>>>=1)){case 0:e.mode=14;break;case 1:if(Z(e),e.mode=20,R!==6)break;C>>>=2,E-=2;break t;case 2:e.mode=17;break;case 3:_.msg="invalid block type",e.mode=30}C>>>=2,E-=2;break;case 14:for(C>>>=7&E,E-=7&E;E<32;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if((65535&C)!=(C>>>16^65535)){_.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&C,E=C=0,e.mode=15,R===6)break t;case 15:e.mode=16;case 16:if(H=e.length){if(U<H&&(H=U),X<H&&(H=X),H===0)break t;u.arraySet($,N,P,H,Q),U-=H,P+=H,X-=H,Q+=H,e.length-=H;break}e.mode=12;break;case 17:for(;E<14;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(e.nlen=257+(31&C),C>>>=5,E-=5,e.ndist=1+(31&C),C>>>=5,E-=5,e.ncode=4+(15&C),C>>>=4,E-=4,286<e.nlen||30<e.ndist){_.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;E<3;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}e.lens[B[e.have++]]=7&C,C>>>=3,E-=3}for(;e.have<19;)e.lens[B[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,I={bits:e.lenbits},j=g(0,e.lens,0,19,e.lencode,0,e.work,I),e.lenbits=I.bits,j){_.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;rt=(l=e.lencode[C&(1<<e.lenbits)-1])>>>16&255,lt=65535&l,!((tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(lt<16)C>>>=tt,E-=tt,e.lens[e.have++]=lt;else{if(lt===16){for(d=tt+2;E<d;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(C>>>=tt,E-=tt,e.have===0){_.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],H=3+(3&C),C>>>=2,E-=2}else if(lt===17){for(d=tt+3;E<d;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}E-=tt,t=0,H=3+(7&(C>>>=tt)),C>>>=3,E-=3}else{for(d=tt+7;E<d;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}E-=tt,t=0,H=11+(127&(C>>>=tt)),C>>>=7,E-=7}if(e.have+H>e.nlen+e.ndist){_.msg="invalid bit length repeat",e.mode=30;break}for(;H--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){_.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,I={bits:e.lenbits},j=g(y,e.lens,0,e.nlen,e.lencode,0,e.work,I),e.lenbits=I.bits,j){_.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,I={bits:e.distbits},j=g(m,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,I),e.distbits=I.bits,j){_.msg="invalid distances set",e.mode=30;break}if(e.mode=20,R===6)break t;case 20:e.mode=21;case 21:if(6<=U&&258<=X){_.next_out=Q,_.avail_out=X,_.next_in=P,_.avail_in=U,e.hold=C,e.bits=E,c(_,V),Q=_.next_out,$=_.output,X=_.avail_out,P=_.next_in,N=_.input,U=_.avail_in,C=e.hold,E=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;rt=(l=e.lencode[C&(1<<e.lenbits)-1])>>>16&255,lt=65535&l,!((tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(rt&&(240&rt)==0){for(st=tt,pt=rt,ht=lt;rt=(l=e.lencode[ht+((C&(1<<st+pt)-1)>>st)])>>>16&255,lt=65535&l,!(st+(tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}C>>>=st,E-=st,e.back+=st}if(C>>>=tt,E-=tt,e.back+=tt,e.length=lt,rt===0){e.mode=26;break}if(32&rt){e.back=-1,e.mode=12;break}if(64&rt){_.msg="invalid literal/length code",e.mode=30;break}e.extra=15&rt,e.mode=22;case 22:if(e.extra){for(d=e.extra;E<d;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}e.length+=C&(1<<e.extra)-1,C>>>=e.extra,E-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;rt=(l=e.distcode[C&(1<<e.distbits)-1])>>>16&255,lt=65535&l,!((tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if((240&rt)==0){for(st=tt,pt=rt,ht=lt;rt=(l=e.distcode[ht+((C&(1<<st+pt)-1)>>st)])>>>16&255,lt=65535&l,!(st+(tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}C>>>=st,E-=st,e.back+=st}if(C>>>=tt,E-=tt,e.back+=tt,64&rt){_.msg="invalid distance code",e.mode=30;break}e.offset=lt,e.extra=15&rt,e.mode=24;case 24:if(e.extra){for(d=e.extra;E<d;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}e.offset+=C&(1<<e.extra)-1,C>>>=e.extra,E-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){_.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(X===0)break t;if(H=V-X,e.offset>H){if((H=e.offset-H)>e.whave&&e.sane){_.msg="invalid distance too far back",e.mode=30;break}at=H>e.wnext?(H-=e.wnext,e.wsize-H):e.wnext-H,H>e.length&&(H=e.length),ct=e.window}else ct=$,at=Q-e.offset,H=e.length;for(X<H&&(H=X),X-=H,e.length-=H;$[Q++]=ct[at++],--H;);e.length===0&&(e.mode=21);break;case 26:if(X===0)break t;$[Q++]=e.length,X--,e.mode=21;break;case 27:if(e.wrap){for(;E<32;){if(U===0)break t;U--,C|=N[P++]<<E,E+=8}if(V-=X,_.total_out+=V,e.total+=V,V&&(_.adler=e.check=e.flags?n(e.check,$,V,Q-V):i(e.check,$,V,Q-V)),V=X,(e.flags?C:s(C))!==e.check){_.msg="incorrect data check",e.mode=30;break}E=C=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;E<32;){if(U===0)break t;U--,C+=N[P++]<<E,E+=8}if(C!==(4294967295&e.total)){_.msg="incorrect length check",e.mode=30;break}E=C=0}e.mode=29;case 29:j=1;break t;case 30:j=-3;break t;case 31:return-4;case 32:default:return a}return _.next_out=Q,_.avail_out=X,_.next_in=P,_.avail_in=U,e.hold=C,e.bits=E,(e.wsize||V!==_.avail_out&&e.mode<30&&(e.mode<27||R!==4))&&J(_,_.output,_.next_out,V-_.avail_out)?(e.mode=31,-4):(q-=_.avail_in,V-=_.avail_out,_.total_in+=q,_.total_out+=V,e.total+=V,e.wrap&&V&&(_.adler=e.check=e.flags?n(e.check,$,V,_.next_out-V):i(e.check,$,V,_.next_out-V)),_.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(q==0&&V===0||R===4)&&j===b&&(j=-5),j)},w.inflateEnd=function(_){if(!_||!_.state)return a;var R=_.state;return R.window&&(R.window=null),_.state=null,b},w.inflateGetHeader=function(_,R){var e;return _&&_.state?(2&(e=_.state).wrap)==0?a:((e.head=R).done=!1,b):a},w.inflateSetDictionary=function(_,R){var e,N=R.length;return _&&_.state?(e=_.state).wrap!==0&&e.mode!==11?a:e.mode===11&&i(1,R,N,0)!==e.check?-3:J(_,R,N,N)?(e.mode=31,-4):(e.havedict=1,b):a},w.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,F,w){var u=p("../utils/common"),i=[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],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[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];F.exports=function(y,m,b,a,f,r,o,s){var h,v,k,S,T,O,L,z,Z,J=s.bits,_=0,R=0,e=0,N=0,$=0,P=0,Q=0,U=0,X=0,C=0,E=null,q=0,V=new u.Buf16(16),H=new u.Buf16(16),at=null,ct=0;for(_=0;_<=15;_++)V[_]=0;for(R=0;R<a;R++)V[m[b+R]]++;for($=J,N=15;1<=N&&V[N]===0;N--);if(N<$&&($=N),N===0)return f[r++]=20971520,f[r++]=20971520,s.bits=1,0;for(e=1;e<N&&V[e]===0;e++);for($<e&&($=e),_=U=1;_<=15;_++)if(U<<=1,(U-=V[_])<0)return-1;if(0<U&&(y===0||N!==1))return-1;for(H[1]=0,_=1;_<15;_++)H[_+1]=H[_]+V[_];for(R=0;R<a;R++)m[b+R]!==0&&(o[H[m[b+R]]++]=R);if(O=y===0?(E=at=o,19):y===1?(E=i,q-=257,at=n,ct-=257,256):(E=c,at=g,-1),_=e,T=r,Q=R=C=0,k=-1,S=(X=1<<(P=$))-1,y===1&&852<X||y===2&&592<X)return 1;for(;;){for(L=_-Q,Z=o[R]<O?(z=0,o[R]):o[R]>O?(z=at[ct+o[R]],E[q+o[R]]):(z=96,0),h=1<<_-Q,e=v=1<<P;f[T+(C>>Q)+(v-=h)]=L<<24|z<<16|Z|0,v!==0;);for(h=1<<_-1;C&h;)h>>=1;if(h!==0?(C&=h-1,C+=h):C=0,R++,--V[_]==0){if(_===N)break;_=m[b+o[R]]}if($<_&&(C&S)!==k){for(Q===0&&(Q=$),T+=e,U=1<<(P=_-Q);P+Q<N&&!((U-=V[P+Q])<=0);)P++,U<<=1;if(X+=1<<P,y===1&&852<X||y===2&&592<X)return 1;f[k=C&S]=$<<24|P<<16|T-r|0}}return C!==0&&(f[T+C]=_-Q<<24|64<<16|0),s.bits=$,0}},{"../utils/common":41}],51:[function(p,F,w){F.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(p,F,w){var u=p("../utils/common"),i=0,n=1;function c(l){for(var x=l.length;0<=--x;)l[x]=0}var g=0,y=29,m=256,b=m+1+y,a=30,f=19,r=2*b+1,o=15,s=16,h=7,v=256,k=16,S=17,T=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],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=new Array(2*(b+2));c(J);var _=new Array(2*a);c(_);var R=new Array(512);c(R);var e=new Array(256);c(e);var N=new Array(y);c(N);var $,P,Q,U=new Array(a);function X(l,x,B,D,A){this.static_tree=l,this.extra_bits=x,this.extra_base=B,this.elems=D,this.max_length=A,this.has_stree=l&&l.length}function C(l,x){this.dyn_tree=l,this.max_code=0,this.stat_desc=x}function E(l){return l<256?R[l]:R[256+(l>>>7)]}function q(l,x){l.pending_buf[l.pending++]=255&x,l.pending_buf[l.pending++]=x>>>8&255}function V(l,x,B){l.bi_valid>s-B?(l.bi_buf|=x<<l.bi_valid&65535,q(l,l.bi_buf),l.bi_buf=x>>s-l.bi_valid,l.bi_valid+=B-s):(l.bi_buf|=x<<l.bi_valid&65535,l.bi_valid+=B)}function H(l,x,B){V(l,B[2*x],B[2*x+1])}function at(l,x){for(var B=0;B|=1&l,l>>>=1,B<<=1,0<--x;);return B>>>1}function ct(l,x,B){var D,A,W=new Array(o+1),K=0;for(D=1;D<=o;D++)W[D]=K=K+B[D-1]<<1;for(A=0;A<=x;A++){var G=l[2*A+1];G!==0&&(l[2*A]=at(W[G]++,G))}}function tt(l){var x;for(x=0;x<b;x++)l.dyn_ltree[2*x]=0;for(x=0;x<a;x++)l.dyn_dtree[2*x]=0;for(x=0;x<f;x++)l.bl_tree[2*x]=0;l.dyn_ltree[2*v]=1,l.opt_len=l.static_len=0,l.last_lit=l.matches=0}function rt(l){8<l.bi_valid?q(l,l.bi_buf):0<l.bi_valid&&(l.pending_buf[l.pending++]=l.bi_buf),l.bi_buf=0,l.bi_valid=0}function lt(l,x,B,D){var A=2*x,W=2*B;return l[A]<l[W]||l[A]===l[W]&&D[x]<=D[B]}function st(l,x,B){for(var D=l.heap[B],A=B<<1;A<=l.heap_len&&(A<l.heap_len&&lt(x,l.heap[A+1],l.heap[A],l.depth)&&A++,!lt(x,D,l.heap[A],l.depth));)l.heap[B]=l.heap[A],B=A,A<<=1;l.heap[B]=D}function pt(l,x,B){var D,A,W,K,G=0;if(l.last_lit!==0)for(;D=l.pending_buf[l.d_buf+2*G]<<8|l.pending_buf[l.d_buf+2*G+1],A=l.pending_buf[l.l_buf+G],G++,D===0?H(l,A,x):(H(l,(W=e[A])+m+1,x),(K=O[W])!==0&&V(l,A-=N[W],K),H(l,W=E(--D),B),(K=L[W])!==0&&V(l,D-=U[W],K)),G<l.last_lit;);H(l,v,x)}function ht(l,x){var B,D,A,W=x.dyn_tree,K=x.stat_desc.static_tree,G=x.stat_desc.has_stree,Y=x.stat_desc.elems,it=-1;for(l.heap_len=0,l.heap_max=r,B=0;B<Y;B++)W[2*B]!==0?(l.heap[++l.heap_len]=it=B,l.depth[B]=0):W[2*B+1]=0;for(;l.heap_len<2;)W[2*(A=l.heap[++l.heap_len]=it<2?++it:0)]=1,l.depth[A]=0,l.opt_len--,G&&(l.static_len-=K[2*A+1]);for(x.max_code=it,B=l.heap_len>>1;1<=B;B--)st(l,W,B);for(A=Y;B=l.heap[1],l.heap[1]=l.heap[l.heap_len--],st(l,W,1),D=l.heap[1],l.heap[--l.heap_max]=B,l.heap[--l.heap_max]=D,W[2*A]=W[2*B]+W[2*D],l.depth[A]=(l.depth[B]>=l.depth[D]?l.depth[B]:l.depth[D])+1,W[2*B+1]=W[2*D+1]=A,l.heap[1]=A++,st(l,W,1),2<=l.heap_len;);l.heap[--l.heap_max]=l.heap[1],(function(et,ut){var bt,mt,yt,ot,xt,zt,gt=ut.dyn_tree,Rt=ut.max_code,Ut=ut.stat_desc.static_tree,Mt=ut.stat_desc.has_stree,Wt=ut.stat_desc.extra_bits,jt=ut.stat_desc.extra_base,wt=ut.stat_desc.max_length,kt=0;for(ot=0;ot<=o;ot++)et.bl_count[ot]=0;for(gt[2*et.heap[et.heap_max]+1]=0,bt=et.heap_max+1;bt<r;bt++)wt<(ot=gt[2*gt[2*(mt=et.heap[bt])+1]+1]+1)&&(ot=wt,kt++),gt[2*mt+1]=ot,Rt<mt||(et.bl_count[ot]++,xt=0,jt<=mt&&(xt=Wt[mt-jt]),zt=gt[2*mt],et.opt_len+=zt*(ot+xt),Mt&&(et.static_len+=zt*(Ut[2*mt+1]+xt)));if(kt!==0){do{for(ot=wt-1;et.bl_count[ot]===0;)ot--;et.bl_count[ot]--,et.bl_count[ot+1]+=2,et.bl_count[wt]--,kt-=2}while(0<kt);for(ot=wt;ot!==0;ot--)for(mt=et.bl_count[ot];mt!==0;)Rt<(yt=et.heap[--bt])||(gt[2*yt+1]!==ot&&(et.opt_len+=(ot-gt[2*yt+1])*gt[2*yt],gt[2*yt+1]=ot),mt--)}})(l,x),ct(W,it,l.bl_count)}function t(l,x,B){var D,A,W=-1,K=x[1],G=0,Y=7,it=4;for(K===0&&(Y=138,it=3),x[2*(B+1)+1]=65535,D=0;D<=B;D++)A=K,K=x[2*(D+1)+1],++G<Y&&A===K||(G<it?l.bl_tree[2*A]+=G:A!==0?(A!==W&&l.bl_tree[2*A]++,l.bl_tree[2*k]++):G<=10?l.bl_tree[2*S]++:l.bl_tree[2*T]++,W=A,it=(G=0)===K?(Y=138,3):A===K?(Y=6,3):(Y=7,4))}function j(l,x,B){var D,A,W=-1,K=x[1],G=0,Y=7,it=4;for(K===0&&(Y=138,it=3),D=0;D<=B;D++)if(A=K,K=x[2*(D+1)+1],!(++G<Y&&A===K)){if(G<it)for(;H(l,A,l.bl_tree),--G!=0;);else A!==0?(A!==W&&(H(l,A,l.bl_tree),G--),H(l,k,l.bl_tree),V(l,G-3,2)):G<=10?(H(l,S,l.bl_tree),V(l,G-3,3)):(H(l,T,l.bl_tree),V(l,G-11,7));W=A,it=(G=0)===K?(Y=138,3):A===K?(Y=6,3):(Y=7,4)}}c(U);var I=!1;function d(l,x,B,D){V(l,(g<<1)+(D?1:0),3),(function(A,W,K,G){rt(A),q(A,K),q(A,~K),u.arraySet(A.pending_buf,A.window,W,K,A.pending),A.pending+=K})(l,x,B)}w._tr_init=function(l){I||((function(){var x,B,D,A,W,K=new Array(o+1);for(A=D=0;A<y-1;A++)for(N[A]=D,x=0;x<1<<O[A];x++)e[D++]=A;for(e[D-1]=A,A=W=0;A<16;A++)for(U[A]=W,x=0;x<1<<L[A];x++)R[W++]=A;for(W>>=7;A<a;A++)for(U[A]=W<<7,x=0;x<1<<L[A]-7;x++)R[256+W++]=A;for(B=0;B<=o;B++)K[B]=0;for(x=0;x<=143;)J[2*x+1]=8,x++,K[8]++;for(;x<=255;)J[2*x+1]=9,x++,K[9]++;for(;x<=279;)J[2*x+1]=7,x++,K[7]++;for(;x<=287;)J[2*x+1]=8,x++,K[8]++;for(ct(J,b+1,K),x=0;x<a;x++)_[2*x+1]=5,_[2*x]=at(x,5);$=new X(J,O,m+1,b,o),P=new X(_,L,0,a,o),Q=new X(new Array(0),z,0,f,h)})(),I=!0),l.l_desc=new C(l.dyn_ltree,$),l.d_desc=new C(l.dyn_dtree,P),l.bl_desc=new C(l.bl_tree,Q),l.bi_buf=0,l.bi_valid=0,tt(l)},w._tr_stored_block=d,w._tr_flush_block=function(l,x,B,D){var A,W,K=0;0<l.level?(l.strm.data_type===2&&(l.strm.data_type=(function(G){var Y,it=4093624447;for(Y=0;Y<=31;Y++,it>>>=1)if(1&it&&G.dyn_ltree[2*Y]!==0)return i;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return n;for(Y=32;Y<m;Y++)if(G.dyn_ltree[2*Y]!==0)return n;return i})(l)),ht(l,l.l_desc),ht(l,l.d_desc),K=(function(G){var Y;for(t(G,G.dyn_ltree,G.l_desc.max_code),t(G,G.dyn_dtree,G.d_desc.max_code),ht(G,G.bl_desc),Y=f-1;3<=Y&&G.bl_tree[2*Z[Y]+1]===0;Y--);return G.opt_len+=3*(Y+1)+5+5+4,Y})(l),A=l.opt_len+3+7>>>3,(W=l.static_len+3+7>>>3)<=A&&(A=W)):A=W=B+5,B+4<=A&&x!==-1?d(l,x,B,D):l.strategy===4||W===A?(V(l,2+(D?1:0),3),pt(l,J,_)):(V(l,4+(D?1:0),3),(function(G,Y,it,et){var ut;for(V(G,Y-257,5),V(G,it-1,5),V(G,et-4,4),ut=0;ut<et;ut++)V(G,G.bl_tree[2*Z[ut]+1],3);j(G,G.dyn_ltree,Y-1),j(G,G.dyn_dtree,it-1)})(l,l.l_desc.max_code+1,l.d_desc.max_code+1,K+1),pt(l,l.dyn_ltree,l.dyn_dtree)),tt(l),D&&rt(l)},w._tr_tally=function(l,x,B){return l.pending_buf[l.d_buf+2*l.last_lit]=x>>>8&255,l.pending_buf[l.d_buf+2*l.last_lit+1]=255&x,l.pending_buf[l.l_buf+l.last_lit]=255&B,l.last_lit++,x===0?l.dyn_ltree[2*B]++:(l.matches++,x--,l.dyn_ltree[2*(e[B]+m+1)]++,l.dyn_dtree[2*E(x)]++),l.last_lit===l.lit_bufsize-1},w._tr_align=function(l){V(l,2,3),H(l,v,J),(function(x){x.bi_valid===16?(q(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):8<=x.bi_valid&&(x.pending_buf[x.pending++]=255&x.bi_buf,x.bi_buf>>=8,x.bi_valid-=8)})(l)}},{"../utils/common":41}],53:[function(p,F,w){F.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(p,F,w){(function(u){(function(i,n){if(!i.setImmediate){var c,g,y,m,b=1,a={},f=!1,r=i.document,o=Object.getPrototypeOf&&Object.getPrototypeOf(i);o=o&&o.setTimeout?o:i,c={}.toString.call(i.process)==="[object process]"?function(k){process.nextTick(function(){h(k)})}:(function(){if(i.postMessage&&!i.importScripts){var k=!0,S=i.onmessage;return i.onmessage=function(){k=!1},i.postMessage("","*"),i.onmessage=S,k}})()?(m="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",v,!1):i.attachEvent("onmessage",v),function(k){i.postMessage(m+k,"*")}):i.MessageChannel?((y=new MessageChannel).port1.onmessage=function(k){h(k.data)},function(k){y.port2.postMessage(k)}):r&&"onreadystatechange"in r.createElement("script")?(g=r.documentElement,function(k){var S=r.createElement("script");S.onreadystatechange=function(){h(k),S.onreadystatechange=null,g.removeChild(S),S=null},g.appendChild(S)}):function(k){setTimeout(h,0,k)},o.setImmediate=function(k){typeof k!="function"&&(k=new Function(""+k));for(var S=new Array(arguments.length-1),T=0;T<S.length;T++)S[T]=arguments[T+1];var O={callback:k,args:S};return a[b]=O,c(b),b++},o.clearImmediate=s}function s(k){delete a[k]}function h(k){if(f)setTimeout(h,0,k);else{var S=a[k];if(S){f=!0;try{(function(T){var O=T.callback,L=T.args;switch(L.length){case 0:O();break;case 1:O(L[0]);break;case 2:O(L[0],L[1]);break;case 3:O(L[0],L[1],L[2]);break;default:O.apply(n,L)}})(S)}finally{s(k),f=!1}}}}function v(k){k.source===i&&typeof k.data=="string"&&k.data.indexOf(m)===0&&h(+k.data.slice(m.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof St<"u"?St:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ot)),Ot.exports}var Kt=Vt();const Yt=Zt(Kt),ft="#c9b787",Pt={fresh:{color:"#22c55e",bg:"rgba(34,197,94,0.08)",label:"SATISFIED"},stale:{color:"#f97316",bg:"rgba(249,115,22,0.08)",label:"STALE"},gap:{color:"#ef4444",bg:"rgba(239,68,68,0.08)",label:"GAP"}};function Lt(nt){return new Date(nt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function qt({score:nt,color:dt,size:p=64}){const F=(p-8)/2,w=2*Math.PI*F,u=w*(1-nt/100);return M.jsxs("svg",{width:p,height:p,viewBox:`0 0 ${p} ${p}`,children:[M.jsx("circle",{cx:p/2,cy:p/2,r:F,fill:"none",stroke:"rgba(255,255,255,0.06)",strokeWidth:4}),M.jsx("circle",{cx:p/2,cy:p/2,r:F,fill:"none",stroke:dt,strokeWidth:4,strokeDasharray:w,strokeDashoffset:u,strokeLinecap:"round",transform:`rotate(-90 ${p/2} ${p/2})`}),M.jsxs("text",{x:p/2,y:p/2+1,textAnchor:"middle",dominantBaseline:"middle",fill:dt,fontSize:p*.28,fontFamily:"ui-monospace",fontWeight:700,children:[nt,"%"]})]})}function Jt({control:nt}){const dt=Pt[nt.evidenceStatus];return M.jsxs("div",{className:"rounded-lg border p-4",style:{backgroundColor:"var(--color-a11oy-card)",borderColor:"var(--color-a11oy-border)"},children:[M.jsx("div",{className:"flex items-start justify-between gap-3 mb-3",children:M.jsxs("div",{children:[M.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[M.jsx("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded",style:{backgroundColor:dt.bg,color:dt.color},children:dt.label}),M.jsx("span",{className:"text-xs font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:nt.controlRef})]}),M.jsx("div",{className:"text-sm font-semibold",style:{color:"var(--color-a11oy-text)"},children:nt.controlTitle})]})}),M.jsx("p",{className:"text-xs mb-3",style:{color:"var(--color-a11oy-text-sub)"},children:nt.description}),M.jsxs("div",{className:"space-y-2 text-xs",children:[M.jsxs("div",{children:[M.jsx("span",{className:"font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:"A11oy Primitive:"})," ",M.jsx("span",{style:{color:ft},children:nt.a11oyPrimitive})]}),M.jsxs("div",{children:[M.jsx("span",{className:"font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:"Evidence Source:"})," ",M.jsx("span",{style:{color:"var(--color-a11oy-text-sub)"},children:nt.evidenceSource})]}),M.jsxs("div",{children:[M.jsx("span",{className:"font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:"Last Evidence:"})," ",M.jsx("span",{style:{color:"var(--color-a11oy-text-sub)"},children:Lt(nt.lastEvidenceAt)})]}),M.jsxs("div",{children:[M.jsx("span",{className:"font-mono",style:{color:"var(--color-a11oy-text-ghost)"},children:"Freshness Threshold:"})," ",M.jsxs("span",{style:{color:"var(--color-a11oy-text-sub)"},children:[nt.freshnessThresholdDays," days"]})]})]}),M.jsxs("div",{className:"mt-3 p-3 rounded",style:{backgroundColor:"var(--color-a11oy-deep)",border:"1px solid var(--color-a11oy-border)"},children:[M.jsx("div",{className:"text-xs font-mono mb-1",style:{color:ft},children:"EVIDENCE DETAIL"}),M.jsx("p",{className:"text-xs",style:{color:"var(--color-a11oy-text-sub)"},children:nt.drilldownDetail})]})]})}function ee(){const[nt,dt]=Nt.useState("all"),[p,F]=Nt.useState(null),w=Bt(),u=nt==="all"?Ft:_t(nt);return M.jsxs(Gt,{children:[M.jsx(Ht,{label:"COMPASS — COMPLIANCE FABRIC",title:"Regulatory Compliance Posture",subtitle:"Real-time compliance posture across EU AI Act, NIST AI RMF, ISO 42001, and CSA Agentic Profile. Every A11oy primitive is mapped to the regulatory controls it satisfies. Compliance is a byproduct of operating.",status:"LIVE"}),M.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-3 mb-8",children:[M.jsx(vt,{label:"OVERALL POSTURE",value:`${w.score}%`,sub:"compliance score",accent:ft}),M.jsx(vt,{label:"CONTROLS MAPPED",value:String(Ft.length),sub:"across 4 frameworks",accent:ft}),M.jsx(vt,{label:"SATISFIED",value:String(w.fresh),sub:"evidence fresh",accent:"#22c55e"}),M.jsx(vt,{label:"STALE",value:String(w.stale),sub:"needs refresh",accent:"#f97316"}),M.jsx(vt,{label:"GAPS",value:String(w.gap),sub:"evidence missing",accent:"#ef4444"}),M.jsx(vt,{label:"FRAMEWORKS",value:"4",sub:"actively monitored",accent:ft})]}),M.jsx(At,{children:"Framework Posture Heat Map"}),M.jsx("div",{className:"grid md:grid-cols-4 gap-4 mb-8",children:Et.map(i=>{const n=Ct(i.id),c=_t(i.id),g=c.filter(m=>m.evidenceStatus==="fresh").length,y=nt===i.id;return M.jsxs("div",{className:"rounded-lg border p-4 cursor-pointer transition-all",onClick:()=>dt(y?"all":i.id),style:{backgroundColor:y?"rgba(201,183,135,0.03)":"var(--color-a11oy-card)",borderColor:y?i.color:"var(--color-a11oy-border)"},children:[M.jsxs("div",{className:"flex items-center justify-between mb-3",children:[M.jsxs("div",{children:[M.jsx("div",{className:"text-xs font-mono font-bold",style:{color:i.color},children:i.shortName}),M.jsx("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:i.version})]}),M.jsx(qt,{score:n,color:i.color})]}),M.jsx("div",{className:"text-xs mb-2",style:{color:"var(--color-a11oy-text-sub)"},children:i.description}),M.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[M.jsxs("span",{style:{color:"#22c55e"},children:[g," satisfied"]}),M.jsxs("span",{style:{color:"var(--color-a11oy-text-ghost)"},children:[c.length-g," pending"]})]})]},i.id)})}),M.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[M.jsx("button",{onClick:()=>dt("all"),className:"text-xs px-3 py-1 rounded font-mono",style:{backgroundColor:nt==="all"?"rgba(201,183,135,0.15)":"var(--color-a11oy-muted)",color:nt==="all"?ft:"var(--color-a11oy-text-ghost)",border:nt==="all"?"1px solid rgba(201,183,135,0.3)":"1px solid transparent",cursor:"pointer"},children:"All Frameworks"}),Et.map(i=>M.jsx("button",{onClick:()=>dt(i.id),className:"text-xs px-3 py-1 rounded font-mono",style:{backgroundColor:nt===i.id?`${i.color}18`:"var(--color-a11oy-muted)",color:nt===i.id?i.color:"var(--color-a11oy-text-ghost)",border:nt===i.id?`1px solid ${i.color}40`:"1px solid transparent",cursor:"pointer"},children:i.shortName},i.id))]}),M.jsxs("div",{className:"grid lg:grid-cols-3 gap-6 mb-8",children:[M.jsxs("div",{className:"lg:col-span-2",children:[M.jsxs(At,{children:["Control Registry (",u.length,")"]}),M.jsx("div",{className:"flex flex-col gap-2 max-h-[600px] overflow-y-auto pr-1",children:u.map(i=>{const n=Pt[i.evidenceStatus],c=Et.find(y=>y.id===i.framework),g=(p==null?void 0:p.id)===i.id;return M.jsxs("div",{className:"rounded-lg border p-3 cursor-pointer transition-all",onClick:()=>F(g?null:i),style:{backgroundColor:g?"rgba(201,183,135,0.03)":"var(--color-a11oy-card)",borderColor:g?ft:"var(--color-a11oy-border)"},children:[M.jsx("div",{className:"flex items-start justify-between gap-2 mb-1",children:M.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[M.jsx("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded",style:{backgroundColor:n.bg,color:n.color},children:n.label}),M.jsx("span",{className:"text-xs font-mono",style:{color:(c==null?void 0:c.color)??ft},children:i.controlRef}),M.jsx("span",{className:"text-xs font-semibold",style:{color:"var(--color-a11oy-text)"},children:i.controlTitle})]})}),M.jsxs("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:[M.jsx("span",{style:{color:ft},children:i.a11oyPrimitive})," — ",Lt(i.lastEvidenceAt)]})]},i.id)})})]}),M.jsxs("div",{children:[p?M.jsxs(M.Fragment,{children:[M.jsx(At,{children:"Evidence Drill-Down"}),M.jsx(Jt,{control:p})]}):M.jsx(Tt,{children:M.jsxs("div",{className:"text-center py-8",children:[M.jsx("div",{className:"text-2xl mb-2",style:{color:"var(--color-a11oy-border)"},children:"◇"}),M.jsx("div",{className:"text-xs",style:{color:"var(--color-a11oy-text-ghost)"},children:"Select a control to view evidence"})]})}),M.jsxs("div",{className:"mt-6",children:[M.jsx(At,{children:"Export Audit Package"}),M.jsxs(Tt,{children:[M.jsx("p",{className:"text-xs mb-4",style:{color:"var(--color-a11oy-text-sub)"},children:"Generate a signed audit package containing EU AI Act Annex IV technical documentation, NIST AI RMF evidence matrices, ISO 42001 Statement of Applicability, and a pre-populated FRIA template. Signed via the Proof Ledger chain."}),M.jsx("div",{className:"space-y-2 mb-4",children:[{label:"EU AI Act Annex IV Technical Documentation",icon:"📋"},{label:"NIST AI RMF Evidence Matrices (GOVERN/MAP/MEASURE/MANAGE)",icon:"📊"},{label:"ISO 42001 Statement of Applicability",icon:"📄"},{label:"Fundamental Rights Impact Assessment (FRIA)",icon:"⚖"},{label:"Proof Ledger Cryptographic Signatures",icon:"🔒"}].map(i=>M.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[M.jsx("span",{children:i.icon}),M.jsx("span",{style:{color:"var(--color-a11oy-text-sub)"},children:i.label})]},i.label))}),(()=>{const i=new Date().toISOString(),n=i.split("T")[0],c="sha256:audit-pkg-signed-"+Date.now().toString(36),g=()=>{const r=_t("eu-ai-act");return{documentType:"EU AI Act Annex IV — Technical Documentation",generatedAt:i,proofLedgerSignature:c,system:{name:"A11oy Governed Execution Fabric",version:"9.0",provider:"SZL Holdings"},sections:[{section:"Annex IV.1",title:"General Description",content:"A11oy is a governed autonomous AI layer for complex enterprise operations. Nine-layer execution fabric with human-gated autonomy, cryptographic proof, and policy-constrained recommendations."},{section:"Annex IV.2",title:"Detailed Description of Elements",content:"Architecture: 9-layer fabric (Connectors → Signal Mesh → Governed AI → Human Gate → Digital Twin → Executive Briefing → Proof Ledger → Doctrine → Compliance Fabric). Model routing: multi-provider (OpenAI, Anthropic, Gemini). Training: not applicable (orchestration layer)."},{section:"Annex IV.3",title:"Monitoring and Oversight",content:"Human-in-the-loop: all Tier 2/3 actions require explicit approval. MirrorEval 2.0: 14-dimension scoring before any action reaches approval queue. Covenant Layer: policy constraints enforced at runtime."},{section:"Annex IV.4",title:"Human Oversight",content:"PCE (Policy Contract Engine) gate on every workcell. Named human approver required. No agent override of human decisions. Approval delegation with full audit trail."},{section:"Annex IV.5",title:"Validation and Testing",content:`${r.filter(o=>o.evidenceStatus==="fresh").length} of ${r.length} EU AI Act controls satisfied with fresh evidence.`}],controlMatrix:r.map(o=>({ref:o.controlRef,title:o.controlTitle,status:o.evidenceStatus,a11oyPrimitive:o.a11oyPrimitive,evidenceSource:o.evidenceSource,lastEvidence:o.lastEvidenceAt}))}},y=()=>{const r=_t("nist-ai-rmf"),s=Object.keys({GOVERN:"GOVERN",MAP:"MAP",MEASURE:"MEASURE",MANAGE:"MANAGE"});return{documentType:"NIST AI RMF 1.0 Evidence Matrices + CSA Agentic Overlay",generatedAt:i,proofLedgerSignature:c,overallScore:Ct("nist-ai-rmf"),functions:s.map(h=>({function:h,controls:r.filter(v=>{const k=v.controlRef.toUpperCase().replace(/[^A-Z]/g," ").trim().split(" ")[0]||"";return k===h||k.startsWith(h+" ")}).map(v=>({ref:v.controlRef,title:v.controlTitle,status:v.evidenceStatus,primitive:v.a11oyPrimitive,evidence:v.evidenceSource,lastEvidence:v.lastEvidenceAt}))})),csaAgenticOverlay:_t("csa-agentic").map(h=>({ref:h.controlRef,title:h.controlTitle,status:h.evidenceStatus,primitive:h.a11oyPrimitive,evidence:h.evidenceSource}))}},m=()=>{const r=_t("iso-42001");return{documentType:"ISO/IEC 42001:2023 Statement of Applicability",generatedAt:i,proofLedgerSignature:c,scope:"A11oy governed autonomous AI layer — all agent operations, model routing, proof chain, and compliance fabric.",overallScore:Ct("iso-42001"),controls:r.map(o=>({ref:o.controlRef,title:o.controlTitle,applicability:"applicable",justification:o.a11oyPrimitive,implementation:o.evidenceStatus==="fresh"?"implemented":"in-progress",evidenceSource:o.evidenceSource,lastEvidence:o.lastEvidenceAt}))}},b=()=>({documentType:"Fundamental Rights Impact Assessment (FRIA) — Pre-populated Template",generatedAt:i,proofLedgerSignature:c,system:"A11oy Governed Execution Fabric",assessmentAreas:[{right:"Non-discrimination",impact:"Low",mitigation:"Bias detection in MirrorEval 2.0 (14-dimension scoring). Constitutional alignment checked on every output.",evidenceRef:"MirrorEval bias dimension scores, Constitutional Enforcer logs"},{right:"Privacy and data protection",impact:"Low",mitigation:"PII redaction enforced. Data minimization. No customer data persisted in LLM context beyond single request.",evidenceRef:"Connector Firewall logs, Data Handling controls"},{right:"Human dignity",impact:"Low",mitigation:"Agent Welfare Assessment active. No claims of sentience. Welfare telemetry is governance signal only.",evidenceRef:"WelfareAssessment probe results, Hatun Doctrine system cards"},{right:"Freedom of expression",impact:"Not applicable",mitigation:"A11oy operates in enterprise operational context. No content moderation or speech filtering.",evidenceRef:"N/A"},{right:"Access to justice",impact:"Low",mitigation:"Full audit trail via Proof Ledger. Every decision is replayable and attributable. Human override always available.",evidenceRef:"Proof Ledger chain, Workcell Replay logs"}],overallRiskLevel:"Low — all fundamental rights impacts mitigated by structural governance controls"}),a=(r,o)=>{const s=new Blob([JSON.stringify(r,null,2)],{type:"application/json"}),h=URL.createObjectURL(s),v=document.createElement("a");v.href=h,v.download=o,v.click(),URL.revokeObjectURL(h)},f=[{id:"annex-iv",label:"EU AI Act Annex IV Technical Documentation",build:g,filename:`annex-iv-technical-documentation-${n}.json`},{id:"nist",label:"NIST AI RMF Evidence Matrices + CSA Overlay",build:y,filename:`nist-ai-rmf-evidence-matrices-${n}.json`},{id:"iso-soa",label:"ISO 42001 Statement of Applicability",build:m,filename:`iso-42001-statement-of-applicability-${n}.json`},{id:"fria",label:"FRIA — Fundamental Rights Impact Assessment",build:b,filename:`fria-impact-assessment-${n}.json`}];return M.jsxs("div",{className:"space-y-2",children:[f.map(r=>M.jsxs("button",{className:"w-full text-left text-xs font-medium py-2 px-3 rounded-lg transition-all flex items-center justify-between",style:{backgroundColor:"rgba(201,183,135,0.06)",color:"var(--color-a11oy-text-sub)",border:"1px solid rgba(201,183,135,0.15)",cursor:"pointer"},onClick:()=>a(r.build(),r.filename),children:[M.jsx("span",{children:r.label}),M.jsx("span",{style:{color:ft,fontSize:10},children:"JSON ↓"})]},r.id)),M.jsx("button",{className:"w-full text-xs font-medium py-2.5 rounded-lg transition-all mt-2",style:{backgroundColor:"rgba(201,183,135,0.12)",color:ft,border:"1px solid rgba(201,183,135,0.25)",cursor:"pointer"},onClick:async()=>{const r=new Yt,o={packageType:"Compliance-as-Runtime Audit Package",version:"1.0.0",generatedAt:i,proofLedgerSignature:c,posture:Bt(),contents:["annex-iv-technical-documentation.json","nist-ai-rmf-evidence-matrices.json","iso-42001-statement-of-applicability.json","fria-impact-assessment.json","MANIFEST.json"],frameworkSummary:Et.map(k=>({name:k.name,id:k.id,score:Ct(k.id),satisfied:_t(k.id).filter(S=>S.evidenceStatus==="fresh").length,total:_t(k.id).length}))};r.file("annex-iv-technical-documentation.json",JSON.stringify(g(),null,2)),r.file("nist-ai-rmf-evidence-matrices.json",JSON.stringify(y(),null,2)),r.file("iso-42001-statement-of-applicability.json",JSON.stringify(m(),null,2)),r.file("fria-impact-assessment.json",JSON.stringify(b(),null,2)),r.file("MANIFEST.json",JSON.stringify(o,null,2));const s=await r.generateAsync({type:"blob"}),h=URL.createObjectURL(s),v=document.createElement("a");v.href=h,v.download=`a11oy-audit-package-${n}.zip`,v.click(),URL.revokeObjectURL(h)},children:"Export Complete Audit Package (ZIP)"})]})})()]})]})]})]}),M.jsxs("div",{className:"p-3 rounded-lg text-xs flex items-center gap-2",style:{backgroundColor:"rgba(201,183,135,0.06)",border:"1px solid rgba(201,183,135,0.15)",color:"var(--color-a11oy-text-ghost)"},children:[M.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-a11oy-blue)] flex-shrink-0"})," Compliance Fabric — every A11oy primitive is mapped to regulatory controls. Evidence status is computed from live governance data. Audit packages are signed via the Proof Ledger."]})]})}export{ee as Compass};