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 (c) 2009-2016 Stuart Knightley 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>2,a=(3&g)<<4|y>>4,f=1>6:64,r=2>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>>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>>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>>=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.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 "+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"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>>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>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>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>>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>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>>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>>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)-(4t.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]&&xA&&--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=z)for(x=t.strstart-t.insert,t.ins_h=t.window[x],t.ins_h=(t.ins_h<=z&&(t.ins_h=(t.ins_h<=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<=z&&(t.ins_h=(t.ins_h<=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.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>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.gzindexl&&(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.gzindexl&&(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&&0A.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=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<>>=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,v-=z),v<15&&(h+=e[c++]<>>=z=L>>>24,v-=z,!(16&(z=L>>>16&255))){if((64&z)==0){L=S[(65535&L)+(h&(1<>>=z,v-=z,(z=y-m)>3,h&=(1<<(v-=Z<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c>>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=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>>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<>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++]<>>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++]<>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++]<>>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>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++]<>>=7&E,E-=7&E,e.mode=27;break}for(;E<3;){if(U===0)break t;U--,C+=N[P++]<>>=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++]<>>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>>=5,E-=5,e.ndist=1+(31&C),C>>>=5,E-=5,e.ncode=4+(15&C),C>>>=4,E-=4,286>>=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>>16&255,lt=65535&l,!((tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<>>=tt,E-=tt,e.lens[e.have++]=lt;else{if(lt===16){for(d=tt+2;E>>=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>>=tt)),C>>>=3,E-=3}else{for(d=tt+7;E>>=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<>>16&255,lt=65535&l,!((tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<>st)])>>>16&255,lt=65535&l,!(st+(tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<>>=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>>=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<>>16&255,lt=65535&l,!((tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<>st)])>>>16&255,lt=65535&l,!(st+(tt=l>>>24)<=E);){if(U===0)break t;U--,C+=N[P++]<>>=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>>=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(XO?(z=at[ct+o[R]],E[q+o[R]]):(z=96,0),h=1<<_-Q,e=v=1<>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>>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<>s-l.bi_valid,l.bi_valid+=B-s):(l.bi_buf|=x<>>=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>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>=7;A>>=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>>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>>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"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};