vzcode 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-5qf102c2.css +1 -0
- package/dist/assets/{index-DT8aFBKg.js → index-dSJDl5x9.js} +3 -3
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/client/App/index.tsx +7 -0
- package/src/client/App/initialSidebarView.ts +14 -0
- package/src/client/VZSidebar/index.tsx +1 -1
- package/src/client/VZSidebar/styles.scss +56 -48
- package/src/client/ui.scss +8 -1
- package/dist/assets/index-DyMLoJaw.css +0 -1
|
@@ -351,6 +351,6 @@ Image files available:
|
|
|
351
351
|
\0`,se+=s(z,2),se+=E.magic,se+=s(S,2),se+=s(x,2),se+=s(U.crc32,4),se+=s(U.compressedSize,4),se+=s(U.uncompressedSize,4),se+=s(R.length,2),se+=s(X.length,2),{fileRecord:f.LOCAL_FILE_HEADER+se+R+X,dirRecord:f.CENTRAL_FILE_HEADER+s(L,2)+se+s(I.length,2)+"\0\0\0\0"+s(Y,4)+s(y,4)+R+X+I}}var a=n("../utils"),l=n("../stream/GenericWorker"),u=n("../utf8"),c=n("../crc32"),f=n("../signature");function d(p,g,O,y){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=O,this.encodeFileName=y,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(d,l),d.prototype.push=function(p){var g=p.meta.percent||0,O=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,l.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:O?(g+100*(O-y-1))/O:100}}))},d.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var g=this.streamFiles&&!p.file.dir;if(g){var O=o(p,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:O.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(p){this.accumulate=!1;var g=this.streamFiles&&!p.file.dir,O=o(p,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(O.dirRecord),g)this.push({data:(function(y){return f.DATA_DESCRIPTOR+s(y.crc32,4)+s(y.compressedSize,4)+s(y.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:O.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var p=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var O=this.bytesWritten-p,y=(function(b,v,S,x,P){var E=a.transformTo("string",P(x));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(b,2)+s(b,2)+s(v,4)+s(S,4)+s(E.length,2)+E})(this.dirRecords.length,O,p,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(p){this._sources.push(p);var g=this;return p.on("data",function(O){g.processChunk(O)}),p.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),p.on("error",function(O){g.error(O)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(p){var g=this._sources;if(!l.prototype.error.call(this,p))return!1;for(var O=0;O<g.length;O++)try{g[O].error(p)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var p=this._sources,g=0;g<p.length;g++)p[g].lock()},r.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var s=n("../compressions"),o=n("./ZipFileWorker");i.generateWorker=function(a,l,u){var c=new o(l.streamFiles,u,l.platform,l.encodeFileName),f=0;try{a.forEach(function(d,p){f++;var g=(function(v,S){var x=v||S,P=s[x];if(!P)throw new Error(x+" is not a valid compression method !");return P})(p.options.compression,l.compression),O=p.options.compressionOptions||l.compressionOptions||{},y=p.dir,b=p.date;p._compressWorker(g,O).withStreamInfo("file",{name:d,dir:y,date:b,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(c)}),c.entriesCount=f}catch(d){c.error(d)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new s;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(o,a){return new s().loadAsync(o,a)},s.external=n("./external"),r.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var s=n("./utils"),o=n("./external"),a=n("./utf8"),l=n("./zipEntries"),u=n("./stream/Crc32Probe"),c=n("./nodejsUtils");function f(d){return new o.Promise(function(p,g){var O=d.decompressed.getContentWorker().pipe(new u);O.on("error",function(y){g(y)}).on("end",function(){O.streamInfo.crc32!==d.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(d,p){var g=this;return p=s.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(d)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",d,!0,p.optimizedBinaryString,p.base64).then(function(O){var y=new l(p);return y.load(O),y}).then(function(O){var y=[o.Promise.resolve(O)],b=O.files;if(p.checkCRC32)for(var v=0;v<b.length;v++)y.push(f(b[v]));return o.Promise.all(y)}).then(function(O){for(var y=O.shift(),b=y.files,v=0;v<b.length;v++){var S=b[v],x=S.fileNameStr,P=s.resolve(S.fileNameStr);g.file(P,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:p.createFolders}),S.dir||(g.file(P).unsafeOriginalName=x)}return y.zipComment.length&&(g.comment=y.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var s=n("../utils"),o=n("../stream/GenericWorker");function a(l,u){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(u)}s.inherits(a,o),a.prototype._bindStream=function(l){var u=this;(this._stream=l).pause(),l.on("data",function(c){u.push({data:c,meta:{percent:0}})}).on("error",function(c){u.isPaused?this.generatedError=c:u.error(c)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},a.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var s=n("readable-stream").Readable;function o(a,l,u){s.call(this,l),this._helper=a;var c=this;a.on("data",function(f,d){c.push(f)||c._helper.pause(),u&&u(d)}).on("error",function(f){c.emit("error",f)}).on("end",function(){c.push(null)})}n("../utils").inherits(o,s),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,o);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,o)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var o=new Buffer(s);return o.fill(0),o},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,r,i){function s(P,E,D){var R,_=a.getTypeOf(E),C=a.extend(D||{},c);C.date=C.date||new Date,C.compression!==null&&(C.compression=C.compression.toUpperCase()),typeof C.unixPermissions=="string"&&(C.unixPermissions=parseInt(C.unixPermissions,8)),C.unixPermissions&&16384&C.unixPermissions&&(C.dir=!0),C.dosPermissions&&16&C.dosPermissions&&(C.dir=!0),C.dir&&(P=b(P)),C.createFolders&&(R=y(P))&&v.call(this,R,!0);var I=_==="string"&&C.binary===!1&&C.base64===!1;D&&D.binary!==void 0||(C.binary=!I),(E instanceof f&&E.uncompressedSize===0||C.dir||!E||E.length===0)&&(C.base64=!1,C.binary=!0,E="",C.compression="STORE",_="string");var T=null;T=E instanceof f||E instanceof l?E:g.isNode&&g.isStream(E)?new O(P,E):a.prepareContent(P,E,C.binary,C.optimizedBinaryString,C.base64);var B=new d(P,T,C);this.files[P]=B}var o=n("./utf8"),a=n("./utils"),l=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),c=n("./defaults"),f=n("./compressedObject"),d=n("./zipObject"),p=n("./generate"),g=n("./nodejsUtils"),O=n("./nodejs/NodejsStreamInputAdapter"),y=function(P){P.slice(-1)==="/"&&(P=P.substring(0,P.length-1));var E=P.lastIndexOf("/");return 0<E?P.substring(0,E):""},b=function(P){return P.slice(-1)!=="/"&&(P+="/"),P},v=function(P,E){return E=E!==void 0?E:c.createFolders,P=b(P),this.files[P]||s.call(this,P,null,{dir:!0,createFolders:E}),this.files[P]};function S(P){return Object.prototype.toString.call(P)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(P){var E,D,R;for(E in this.files)R=this.files[E],(D=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&P(D,R)},filter:function(P){var E=[];return this.forEach(function(D,R){P(D,R)&&E.push(R)}),E},file:function(P,E,D){if(arguments.length!==1)return P=this.root+P,s.call(this,P,E,D),this;if(S(P)){var R=P;return this.filter(function(C,I){return!I.dir&&R.test(C)})}var _=this.files[this.root+P];return _&&!_.dir?_:null},folder:function(P){if(!P)return this;if(S(P))return this.filter(function(_,C){return C.dir&&P.test(_)});var E=this.root+P,D=v.call(this,E),R=this.clone();return R.root=D.name,R},remove:function(P){P=this.root+P;var E=this.files[P];if(E||(P.slice(-1)!=="/"&&(P+="/"),E=this.files[P]),E&&!E.dir)delete this.files[P];else for(var D=this.filter(function(_,C){return C.name.slice(0,P.length)===P}),R=0;R<D.length;R++)delete this.files[D[R].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(P){var E,D={};try{if((D=a.extend(P||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=D.type.toLowerCase(),D.compression=D.compression.toUpperCase(),D.type==="binarystring"&&(D.type="string"),!D.type)throw new Error("No output type specified.");a.checkSupport(D.type),D.platform!=="darwin"&&D.platform!=="freebsd"&&D.platform!=="linux"&&D.platform!=="sunos"||(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var R=D.comment||this.comment||"";E=p.generateWorker(this,D,R)}catch(_){(E=new l("error")).error(_)}return new u(E,D.type||"string",D.mimeType)},generateAsync:function(P,E){return this.generateInternalStream(P).accumulate(E)},generateNodeStream:function(P,E){return(P=P||{}).type||(P.type="nodebuffer"),this.generateInternalStream(P).toNodejsStream(E)}};r.exports=x},{"./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(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a);for(var l=0;l<this.data.length;l++)a[l]=255&a[l]}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data[this.zero+a]},o.prototype.lastIndexOfSignature=function(a){for(var l=a.charCodeAt(0),u=a.charCodeAt(1),c=a.charCodeAt(2),f=a.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===u&&this.data[d+2]===c&&this.data[d+3]===f)return d-this.zero;return-1},o.prototype.readAndCheckSignature=function(a){var l=a.charCodeAt(0),u=a.charCodeAt(1),c=a.charCodeAt(2),f=a.charCodeAt(3),d=this.readData(4);return l===d[0]&&u===d[1]&&c===d[2]&&f===d[3]},o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var s=n("../utils");function o(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var l,u=0;for(this.checkOffset(a),l=this.index+a-1;l>=this.index;l--)u=(u<<8)+this.byteAt(l);return this.index+=a,u},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=o},{"../utils":32}],19:[function(n,r,i){var s=n("./Uint8ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},o.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},o.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},o.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var s=n("./ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var s=n("../utils"),o=n("../support"),a=n("./ArrayReader"),l=n("./StringReader"),u=n("./NodeBufferReader"),c=n("./Uint8ArrayReader");r.exports=function(f){var d=s.getTypeOf(f);return s.checkSupport(d),d!=="string"||o.uint8array?d==="nodebuffer"?new u(f):o.uint8array?new c(s.transformTo("uint8array",f)):new a(s.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var s=n("./GenericWorker"),o=n("../utils");function a(l){s.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(a,s),a.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var s=n("./GenericWorker"),o=n("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,s),a.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}s.inherits(a,o),a.prototype.processChunk=function(l){if(l){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+l.data.length}o.prototype.processChunk.call(this,l)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(l){o.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(c){u.dataIsReady=!0,u.data=c,u.max=c&&c.length||0,u.type=s.getTypeOf(c),u.isPaused||u._tickAndRepeat()},function(c){u.error(c)})}s.inherits(a,o),a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,u);break;case"uint8array":l=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":l=this.data.slice(this.index,u)}return this.index=u,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function s(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,a){return this._listeners[o].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,a){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,a)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var a=this;return o.on("data",function(l){a.processChunk(l)}),o.on("end",function(){a.end()}),o.on("error",function(l){a.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,a){return this.extraStreamInfo[o]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=s},{}],29:[function(n,r,i){var s=n("../utils"),o=n("./ConvertWorker"),a=n("./GenericWorker"),l=n("../base64"),u=n("../support"),c=n("../external"),f=null;if(u.nodestream)try{f=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(g,O){return new c.Promise(function(y,b){var v=[],S=g._internalType,x=g._outputType,P=g._mimeType;g.on("data",function(E,D){v.push(E),O&&O(D)}).on("error",function(E){v=[],b(E)}).on("end",function(){try{var E=(function(D,R,_){switch(D){case"blob":return s.newBlob(s.transformTo("arraybuffer",R),_);case"base64":return l.encode(R);default:return s.transformTo(D,R)}})(x,(function(D,R){var _,C=0,I=null,T=0;for(_=0;_<R.length;_++)T+=R[_].length;switch(D){case"string":return R.join("");case"array":return Array.prototype.concat.apply([],R);case"uint8array":for(I=new Uint8Array(T),_=0;_<R.length;_++)I.set(R[_],C),C+=R[_].length;return I;case"nodebuffer":return Buffer.concat(R);default:throw new Error("concat : unsupported type '"+D+"'")}})(S,v),P);y(E)}catch(D){b(D)}v=[]}).resume()})}function p(g,O,y){var b=O;switch(O){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=O,this._mimeType=y,s.checkSupport(b),this._worker=g.pipe(new o(b)),g.lock()}catch(v){this._worker=new a("error"),this._worker.error(v)}}p.prototype={accumulate:function(g){return d(this,g)},on:function(g,O){var y=this;return g==="data"?this._worker.on(g,function(b){O.call(y,b.data,b.meta)}):this._worker.on(g,function(){s.delay(O,arguments,y)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(s),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var s=n("./utils"),o=n("./support"),a=n("./nodejsUtils"),l=n("./stream/GenericWorker"),u=new Array(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;u[254]=u[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}i.utf8encode=function(p){return o.nodebuffer?a.newBufferFrom(p,"utf-8"):(function(g){var O,y,b,v,S,x=g.length,P=0;for(v=0;v<x;v++)(64512&(y=g.charCodeAt(v)))==55296&&v+1<x&&(64512&(b=g.charCodeAt(v+1)))==56320&&(y=65536+(y-55296<<10)+(b-56320),v++),P+=y<128?1:y<2048?2:y<65536?3:4;for(O=o.uint8array?new Uint8Array(P):new Array(P),v=S=0;S<P;v++)(64512&(y=g.charCodeAt(v)))==55296&&v+1<x&&(64512&(b=g.charCodeAt(v+1)))==56320&&(y=65536+(y-55296<<10)+(b-56320),v++),y<128?O[S++]=y:(y<2048?O[S++]=192|y>>>6:(y<65536?O[S++]=224|y>>>12:(O[S++]=240|y>>>18,O[S++]=128|y>>>12&63),O[S++]=128|y>>>6&63),O[S++]=128|63&y);return O})(p)},i.utf8decode=function(p){return o.nodebuffer?s.transformTo("nodebuffer",p).toString("utf-8"):(function(g){var O,y,b,v,S=g.length,x=new Array(2*S);for(O=y=0;O<S;)if((b=g[O++])<128)x[y++]=b;else if(4<(v=u[b]))x[y++]=65533,O+=v-1;else{for(b&=v===2?31:v===3?15:7;1<v&&O<S;)b=b<<6|63&g[O++],v--;1<v?x[y++]=65533:b<65536?x[y++]=b:(b-=65536,x[y++]=55296|b>>10&1023,x[y++]=56320|1023&b)}return x.length!==y&&(x.subarray?x=x.subarray(0,y):x.length=y),s.applyFromCharCode(x)})(p=s.transformTo(o.uint8array?"uint8array":"array",p))},s.inherits(f,l),f.prototype.processChunk=function(p){var g=s.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var O=g;(g=new Uint8Array(O.length+this.leftOver.length)).set(this.leftOver,0),g.set(O,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var y=(function(v,S){var x;for((S=S||v.length)>v.length&&(S=v.length),x=S-1;0<=x&&(192&v[x])==128;)x--;return x<0||x===0?S:x+u[v[x]]>S?x:S})(g),b=g;y!==g.length&&(o.uint8array?(b=g.subarray(0,y),this.leftOver=g.subarray(y,g.length)):(b=g.slice(0,y),this.leftOver=g.slice(y,g.length))),this.push({data:i.utf8decode(b),meta:p.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,s.inherits(d,l),d.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var s=n("./support"),o=n("./base64"),a=n("./nodejsUtils"),l=n("./external");function u(O){return O}function c(O,y){for(var b=0;b<O.length;++b)y[b]=255&O.charCodeAt(b);return y}n("setimmediate"),i.newBlob=function(O,y){i.checkSupport("blob");try{return new Blob([O],{type:y})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(O),b.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(O,y,b){var v=[],S=0,x=O.length;if(x<=b)return String.fromCharCode.apply(null,O);for(;S<x;)y==="array"||y==="nodebuffer"?v.push(String.fromCharCode.apply(null,O.slice(S,Math.min(S+b,x)))):v.push(String.fromCharCode.apply(null,O.subarray(S,Math.min(S+b,x)))),S+=b;return v.join("")},stringifyByChar:function(O){for(var y="",b=0;b<O.length;b++)y+=String.fromCharCode(O[b]);return y},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function d(O){var y=65536,b=i.getTypeOf(O),v=!0;if(b==="uint8array"?v=f.applyCanBeUsed.uint8array:b==="nodebuffer"&&(v=f.applyCanBeUsed.nodebuffer),v)for(;1<y;)try{return f.stringifyByChunk(O,b,y)}catch{y=Math.floor(y/2)}return f.stringifyByChar(O)}function p(O,y){for(var b=0;b<O.length;b++)y[b]=O[b];return y}i.applyFromCharCode=d;var g={};g.string={string:u,array:function(O){return c(O,new Array(O.length))},arraybuffer:function(O){return g.string.uint8array(O).buffer},uint8array:function(O){return c(O,new Uint8Array(O.length))},nodebuffer:function(O){return c(O,a.allocBuffer(O.length))}},g.array={string:d,array:u,arraybuffer:function(O){return new Uint8Array(O).buffer},uint8array:function(O){return new Uint8Array(O)},nodebuffer:function(O){return a.newBufferFrom(O)}},g.arraybuffer={string:function(O){return d(new Uint8Array(O))},array:function(O){return p(new Uint8Array(O),new Array(O.byteLength))},arraybuffer:u,uint8array:function(O){return new Uint8Array(O)},nodebuffer:function(O){return a.newBufferFrom(new Uint8Array(O))}},g.uint8array={string:d,array:function(O){return p(O,new Array(O.length))},arraybuffer:function(O){return O.buffer},uint8array:u,nodebuffer:function(O){return a.newBufferFrom(O)}},g.nodebuffer={string:d,array:function(O){return p(O,new Array(O.length))},arraybuffer:function(O){return g.nodebuffer.uint8array(O).buffer},uint8array:function(O){return p(O,new Uint8Array(O.length))},nodebuffer:u},i.transformTo=function(O,y){if(y=y||"",!O)return y;i.checkSupport(O);var b=i.getTypeOf(y);return g[b][O](y)},i.resolve=function(O){for(var y=O.split("/"),b=[],v=0;v<y.length;v++){var S=y[v];S==="."||S===""&&v!==0&&v!==y.length-1||(S===".."?b.pop():b.push(S))}return b.join("/")},i.getTypeOf=function(O){return typeof O=="string"?"string":Object.prototype.toString.call(O)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(O)?"nodebuffer":s.uint8array&&O instanceof Uint8Array?"uint8array":s.arraybuffer&&O instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(O){if(!s[O.toLowerCase()])throw new Error(O+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(O){var y,b,v="";for(b=0;b<(O||"").length;b++)v+="\\x"+((y=O.charCodeAt(b))<16?"0":"")+y.toString(16).toUpperCase();return v},i.delay=function(O,y,b){setImmediate(function(){O.apply(b||null,y||[])})},i.inherits=function(O,y){function b(){}b.prototype=y.prototype,O.prototype=new b},i.extend=function(){var O,y,b={};for(O=0;O<arguments.length;O++)for(y in arguments[O])Object.prototype.hasOwnProperty.call(arguments[O],y)&&b[y]===void 0&&(b[y]=arguments[O][y]);return b},i.prepareContent=function(O,y,b,v,S){return l.Promise.resolve(y).then(function(x){return s.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new l.Promise(function(P,E){var D=new FileReader;D.onload=function(R){P(R.target.result)},D.onerror=function(R){E(R.target.error)},D.readAsArrayBuffer(x)}):x}).then(function(x){var P=i.getTypeOf(x);return P?(P==="arraybuffer"?x=i.transformTo("uint8array",x):P==="string"&&(S?x=o.decode(x):b&&v!==!0&&(x=(function(E){return c(E,s.uint8array?new Uint8Array(E.length):new Array(E.length))})(x))),x):l.Promise.reject(new Error("Can't read the data of '"+O+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./signature"),l=n("./zipEntry"),u=n("./support");function c(f){this.files=[],this.loadOptions=f}c.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(d)+", expected "+o.pretty(f)+")")}},isSignature:function(f,d){var p=this.reader.index;this.reader.setIndex(f);var g=this.reader.readString(4)===d;return this.reader.setIndex(p),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),d=u.uint8array?"uint8array":"array",p=o.transformTo(d,f);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,d,p,g=this.zip64EndOfCentralSize-44;0<g;)f=this.reader.readInt(2),d=this.reader.readInt(4),p=this.reader.readData(d),this.zip64ExtensibleData[f]={id:f,length:d,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,d;for(f=0;f<this.files.length;f++)d=this.files[f],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(f=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var d=f;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.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(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var g=d-p;if(0<g)this.isSignature(d,a.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(f){this.reader=s(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./compressedObject"),l=n("./crc32"),u=n("./utf8"),c=n("./compressions"),f=n("./support");function d(p,g){this.options=p,this.loadOptions=g}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var g,O;if(p.skip(22),this.fileNameLength=p.readInt(2),O=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(O),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((g=(function(y){for(var b in c)if(Object.prototype.hasOwnProperty.call(c,b)&&c[b].magic===y)return c[b];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,g,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var g=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(g),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=s(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var g,O,y,b=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<b;)g=p.readInt(2),O=p.readInt(2),y=p.readData(O),this.extraFields[g]={id:g,length:O,value:y};p.setIndex(b)},handleUTF8:function(){var p=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var O=o.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(O)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var b=o.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var g=s(p.value);return g.readInt(1)!==1||l(this.fileName)!==g.readInt(4)?null:u.utf8decode(g.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var g=s(p.value);return g.readInt(1)!==1||l(this.fileComment)!==g.readInt(4)?null:u.utf8decode(g.readData(p.length-5))}return null}},r.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function s(g,O,y){this.name=g,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=O,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var o=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),l=n("./utf8"),u=n("./compressedObject"),c=n("./stream/GenericWorker");s.prototype={internalStream:function(g){var O=null,y="string";try{if(!g)throw new Error("No output type specified.");var b=(y=g.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),O=this._decompressWorker();var v=!this._dataBinary;v&&!b&&(O=O.pipe(new l.Utf8EncodeWorker)),!v&&b&&(O=O.pipe(new l.Utf8DecodeWorker))}catch(S){(O=new c("error")).error(S)}return new o(O,y,"")},async:function(g,O){return this.internalStream(g).accumulate(O)},nodeStream:function(g,O){return this.internalStream(g||"nodebuffer").toNodejsStream(O)},_compressWorker:function(g,O){if(this._data instanceof u&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(y,g,O)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<f.length;p++)s.prototype[f[p]]=d;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(s){var o,a,l=s.MutationObserver||s.WebKitMutationObserver;if(l){var u=0,c=new l(g),f=s.document.createTextNode("");c.observe(f,{characterData:!0}),o=function(){f.data=u=++u%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var O=s.document.createElement("script");O.onreadystatechange=function(){g(),O.onreadystatechange=null,O.parentNode.removeChild(O),O=null},s.document.documentElement.appendChild(O)}:function(){setTimeout(g,0)};else{var d=new s.MessageChannel;d.port1.onmessage=g,o=function(){d.port2.postMessage(0)}}var p=[];function g(){var O,y;a=!0;for(var b=p.length;b;){for(y=p,p=[],O=-1;++O<b;)y[O]();b=p.length}a=!1}r.exports=function(O){p.push(O)!==1||a||o()}}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function o(){}var a={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function f(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,b!==o&&O(this,b)}function d(b,v,S){this.promise=b,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function p(b,v,S){s(function(){var x;try{x=v(S)}catch(P){return a.reject(b,P)}x===b?a.reject(b,new TypeError("Cannot resolve promise with itself")):a.resolve(b,x)})}function g(b){var v=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof v=="function")return function(){v.apply(b,arguments)}}function O(b,v){var S=!1;function x(D){S||(S=!0,a.reject(b,D))}function P(D){S||(S=!0,a.resolve(b,D))}var E=y(function(){v(P,x)});E.status==="error"&&x(E.value)}function y(b,v){var S={};try{S.value=b(v),S.status="success"}catch(x){S.status="error",S.value=x}return S}(r.exports=f).prototype.finally=function(b){if(typeof b!="function")return this;var v=this.constructor;return this.then(function(S){return v.resolve(b()).then(function(){return S})},function(S){return v.resolve(b()).then(function(){throw S})})},f.prototype.catch=function(b){return this.then(null,b)},f.prototype.then=function(b,v){if(typeof b!="function"&&this.state===u||typeof v!="function"&&this.state===l)return this;var S=new this.constructor(o);return this.state!==c?p(S,this.state===u?b:v,this.outcome):this.queue.push(new d(S,b,v)),S},d.prototype.callFulfilled=function(b){a.resolve(this.promise,b)},d.prototype.otherCallFulfilled=function(b){p(this.promise,this.onFulfilled,b)},d.prototype.callRejected=function(b){a.reject(this.promise,b)},d.prototype.otherCallRejected=function(b){p(this.promise,this.onRejected,b)},a.resolve=function(b,v){var S=y(g,v);if(S.status==="error")return a.reject(b,S.value);var x=S.value;if(x)O(b,x);else{b.state=u,b.outcome=v;for(var P=-1,E=b.queue.length;++P<E;)b.queue[P].callFulfilled(v)}return b},a.reject=function(b,v){b.state=l,b.outcome=v;for(var S=-1,x=b.queue.length;++S<x;)b.queue[S].callRejected(v);return b},f.resolve=function(b){return b instanceof this?b:a.resolve(new this(o),b)},f.reject=function(b){var v=new this(o);return a.reject(v,b)},f.all=function(b){var v=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=b.length,x=!1;if(!S)return this.resolve([]);for(var P=new Array(S),E=0,D=-1,R=new this(o);++D<S;)_(b[D],D);return R;function _(C,I){v.resolve(C).then(function(T){P[I]=T,++E!==S||x||(x=!0,a.resolve(R,P))},function(T){x||(x=!0,a.reject(R,T))})}},f.race=function(b){var v=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=b.length,x=!1;if(!S)return this.resolve([]);for(var P=-1,E=new this(o);++P<S;)D=b[P],v.resolve(D).then(function(R){x||(x=!0,a.resolve(E,R))},function(R){x||(x=!0,a.reject(E,R))});var D;return E}},{immediate:36}],38:[function(n,r,i){var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var s=n("./zlib/deflate"),o=n("./utils/common"),a=n("./utils/strings"),l=n("./zlib/messages"),u=n("./zlib/zstream"),c=Object.prototype.toString,f=0,d=-1,p=0,g=8;function O(b){if(!(this instanceof O))return new O(b);this.options=o.assign({level:d,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},b||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var S=s.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(S!==f)throw new Error(l[S]);if(v.header&&s.deflateSetHeader(this.strm,v.header),v.dictionary){var x;if(x=typeof v.dictionary=="string"?a.string2buf(v.dictionary):c.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(S=s.deflateSetDictionary(this.strm,x))!==f)throw new Error(l[S]);this._dict_set=!0}}function y(b,v){var S=new O(v);if(S.push(b,!0),S.err)throw S.msg||l[S.err];return S.result}O.prototype.push=function(b,v){var S,x,P=this.strm,E=this.options.chunkSize;if(this.ended)return!1;x=v===~~v?v:v===!0?4:0,typeof b=="string"?P.input=a.string2buf(b):c.call(b)==="[object ArrayBuffer]"?P.input=new Uint8Array(b):P.input=b,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new o.Buf8(E),P.next_out=0,P.avail_out=E),(S=s.deflate(P,x))!==1&&S!==f)return this.onEnd(S),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(o.shrinkBuf(P.output,P.next_out))):this.onData(o.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.avail_out===0)&&S!==1);return x===4?(S=s.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===f):x!==2||(this.onEnd(f),!(P.avail_out=0))},O.prototype.onData=function(b){this.chunks.push(b)},O.prototype.onEnd=function(b){b===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},i.Deflate=O,i.deflate=y,i.deflateRaw=function(b,v){return(v=v||{}).raw=!0,y(b,v)},i.gzip=function(b,v){return(v=v||{}).gzip=!0,y(b,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var s=n("./zlib/inflate"),o=n("./utils/common"),a=n("./utils/strings"),l=n("./zlib/constants"),u=n("./zlib/messages"),c=n("./zlib/zstream"),f=n("./zlib/gzheader"),d=Object.prototype.toString;function p(O){if(!(this instanceof p))return new p(O);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},O||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||O&&O.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var b=s.inflateInit2(this.strm,y.windowBits);if(b!==l.Z_OK)throw new Error(u[b]);this.header=new f,s.inflateGetHeader(this.strm,this.header)}function g(O,y){var b=new p(y);if(b.push(O,!0),b.err)throw b.msg||u[b.err];return b.result}p.prototype.push=function(O,y){var b,v,S,x,P,E,D=this.strm,R=this.options.chunkSize,_=this.options.dictionary,C=!1;if(this.ended)return!1;v=y===~~y?y:y===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof O=="string"?D.input=a.binstring2buf(O):d.call(O)==="[object ArrayBuffer]"?D.input=new Uint8Array(O):D.input=O,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(R),D.next_out=0,D.avail_out=R),(b=s.inflate(D,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&_&&(E=typeof _=="string"?a.string2buf(_):d.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,b=s.inflateSetDictionary(this.strm,E)),b===l.Z_BUF_ERROR&&C===!0&&(b=l.Z_OK,C=!1),b!==l.Z_STREAM_END&&b!==l.Z_OK)return this.onEnd(b),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&b!==l.Z_STREAM_END&&(D.avail_in!==0||v!==l.Z_FINISH&&v!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=a.utf8border(D.output,D.next_out),x=D.next_out-S,P=a.buf2string(D.output,S),D.next_out=x,D.avail_out=R-x,x&&o.arraySet(D.output,D.output,S,x,0),this.onData(P)):this.onData(o.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(C=!0)}while((0<D.avail_in||D.avail_out===0)&&b!==l.Z_STREAM_END);return b===l.Z_STREAM_END&&(v=l.Z_FINISH),v===l.Z_FINISH?(b=s.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===l.Z_OK):v!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(D.avail_out=0))},p.prototype.onData=function(O){this.chunks.push(O)},p.prototype.onEnd=function(O){O===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg},i.Inflate=p,i.inflate=g,i.inflateRaw=function(O,y){return(y=y||{}).raw=!0,g(O,y)},i.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var c=u.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var f in c)c.hasOwnProperty(f)&&(l[f]=c[f])}}return l},i.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var o={arraySet:function(l,u,c,f,d){if(u.subarray&&l.subarray)l.set(u.subarray(c,c+f),d);else for(var p=0;p<f;p++)l[d+p]=u[c+p]},flattenChunks:function(l){var u,c,f,d,p,g;for(u=f=0,c=l.length;u<c;u++)f+=l[u].length;for(g=new Uint8Array(f),u=d=0,c=l.length;u<c;u++)p=l[u],g.set(p,d),d+=p.length;return g}},a={arraySet:function(l,u,c,f,d){for(var p=0;p<f;p++)l[d+p]=u[c+p]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(n,r,i){var s=n("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var l=new s.Buf8(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function c(f,d){if(d<65537&&(f.subarray&&a||!f.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(f,d));for(var p="",g=0;g<d;g++)p+=String.fromCharCode(f[g]);return p}l[254]=l[254]=1,i.string2buf=function(f){var d,p,g,O,y,b=f.length,v=0;for(O=0;O<b;O++)(64512&(p=f.charCodeAt(O)))==55296&&O+1<b&&(64512&(g=f.charCodeAt(O+1)))==56320&&(p=65536+(p-55296<<10)+(g-56320),O++),v+=p<128?1:p<2048?2:p<65536?3:4;for(d=new s.Buf8(v),O=y=0;y<v;O++)(64512&(p=f.charCodeAt(O)))==55296&&O+1<b&&(64512&(g=f.charCodeAt(O+1)))==56320&&(p=65536+(p-55296<<10)+(g-56320),O++),p<128?d[y++]=p:(p<2048?d[y++]=192|p>>>6:(p<65536?d[y++]=224|p>>>12:(d[y++]=240|p>>>18,d[y++]=128|p>>>12&63),d[y++]=128|p>>>6&63),d[y++]=128|63&p);return d},i.buf2binstring=function(f){return c(f,f.length)},i.binstring2buf=function(f){for(var d=new s.Buf8(f.length),p=0,g=d.length;p<g;p++)d[p]=f.charCodeAt(p);return d},i.buf2string=function(f,d){var p,g,O,y,b=d||f.length,v=new Array(2*b);for(p=g=0;p<b;)if((O=f[p++])<128)v[g++]=O;else if(4<(y=l[O]))v[g++]=65533,p+=y-1;else{for(O&=y===2?31:y===3?15:7;1<y&&p<b;)O=O<<6|63&f[p++],y--;1<y?v[g++]=65533:O<65536?v[g++]=O:(O-=65536,v[g++]=55296|O>>10&1023,v[g++]=56320|1023&O)}return c(v,g)},i.utf8border=function(f,d){var p;for((d=d||f.length)>f.length&&(d=f.length),p=d-1;0<=p&&(192&f[p])==128;)p--;return p<0||p===0?d:p+l[f[p]]>d?p:d}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,o,a,l){for(var u=65535&s|0,c=s>>>16&65535|0,f=0;a!==0;){for(a-=f=2e3<a?2e3:a;c=c+(u=u+o[l++]|0)|0,--f;);u%=65521,c%=65521}return u|c<<16|0}},{}],44:[function(n,r,i){r.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(n,r,i){var s=(function(){for(var o,a=[],l=0;l<256;l++){o=l;for(var u=0;u<8;u++)o=1&o?3988292384^o>>>1:o>>>1;a[l]=o}return a})();r.exports=function(o,a,l,u){var c=s,f=u+l;o^=-1;for(var d=u;d<f;d++)o=o>>>8^c[255&(o^a[d])];return-1^o}},{}],46:[function(n,r,i){var s,o=n("../utils/common"),a=n("./trees"),l=n("./adler32"),u=n("./crc32"),c=n("./messages"),f=0,d=4,p=0,g=-2,O=-1,y=4,b=2,v=8,S=9,x=286,P=30,E=19,D=2*x+1,R=15,_=3,C=258,I=C+_+1,T=42,B=113,A=1,X=2,G=3,W=4;function te(F,me){return F.msg=c[me],me}function J(F){return(F<<1)-(4<F?9:0)}function U(F){for(var me=F.length;0<=--me;)F[me]=0}function z(F){var me=F.state,Oe=me.pending;Oe>F.avail_out&&(Oe=F.avail_out),Oe!==0&&(o.arraySet(F.output,me.pending_buf,me.pending_out,Oe,F.next_out),F.next_out+=Oe,me.pending_out+=Oe,F.total_out+=Oe,F.avail_out-=Oe,me.pending-=Oe,me.pending===0&&(me.pending_out=0))}function Y(F,me){a._tr_flush_block(F,0<=F.block_start?F.block_start:-1,F.strstart-F.block_start,me),F.block_start=F.strstart,z(F.strm)}function L(F,me){F.pending_buf[F.pending++]=me}function se(F,me){F.pending_buf[F.pending++]=me>>>8&255,F.pending_buf[F.pending++]=255&me}function ee(F,me){var Oe,ie,re=F.max_chain_length,pe=F.strstart,Me=F.prev_length,je=F.nice_match,_e=F.strstart>F.w_size-I?F.strstart-(F.w_size-I):0,q=F.window,ye=F.w_mask,xe=F.prev,ce=F.strstart+C,Se=q[pe+Me-1],Ee=q[pe+Me];F.prev_length>=F.good_match&&(re>>=2),je>F.lookahead&&(je=F.lookahead);do if(q[(Oe=me)+Me]===Ee&&q[Oe+Me-1]===Se&&q[Oe]===q[pe]&&q[++Oe]===q[pe+1]){pe+=2,Oe++;do;while(q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&q[++pe]===q[++Oe]&&pe<ce);if(ie=C-(ce-pe),pe=ce-C,Me<ie){if(F.match_start=me,je<=(Me=ie))break;Se=q[pe+Me-1],Ee=q[pe+Me]}}while((me=xe[me&ye])>_e&&--re!=0);return Me<=F.lookahead?Me:F.lookahead}function ue(F){var me,Oe,ie,re,pe,Me,je,_e,q,ye,xe=F.w_size;do{if(re=F.window_size-F.lookahead-F.strstart,F.strstart>=xe+(xe-I)){for(o.arraySet(F.window,F.window,xe,xe,0),F.match_start-=xe,F.strstart-=xe,F.block_start-=xe,me=Oe=F.hash_size;ie=F.head[--me],F.head[me]=xe<=ie?ie-xe:0,--Oe;);for(me=Oe=xe;ie=F.prev[--me],F.prev[me]=xe<=ie?ie-xe:0,--Oe;);re+=xe}if(F.strm.avail_in===0)break;if(Me=F.strm,je=F.window,_e=F.strstart+F.lookahead,q=re,ye=void 0,ye=Me.avail_in,q<ye&&(ye=q),Oe=ye===0?0:(Me.avail_in-=ye,o.arraySet(je,Me.input,Me.next_in,ye,_e),Me.state.wrap===1?Me.adler=l(Me.adler,je,ye,_e):Me.state.wrap===2&&(Me.adler=u(Me.adler,je,ye,_e)),Me.next_in+=ye,Me.total_in+=ye,ye),F.lookahead+=Oe,F.lookahead+F.insert>=_)for(pe=F.strstart-F.insert,F.ins_h=F.window[pe],F.ins_h=(F.ins_h<<F.hash_shift^F.window[pe+1])&F.hash_mask;F.insert&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[pe+_-1])&F.hash_mask,F.prev[pe&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=pe,pe++,F.insert--,!(F.lookahead+F.insert<_)););}while(F.lookahead<I&&F.strm.avail_in!==0)}function Z(F,me){for(var Oe,ie;;){if(F.lookahead<I){if(ue(F),F.lookahead<I&&me===f)return A;if(F.lookahead===0)break}if(Oe=0,F.lookahead>=_&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+_-1])&F.hash_mask,Oe=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart),Oe!==0&&F.strstart-Oe<=F.w_size-I&&(F.match_length=ee(F,Oe)),F.match_length>=_)if(ie=a._tr_tally(F,F.strstart-F.match_start,F.match_length-_),F.lookahead-=F.match_length,F.match_length<=F.max_lazy_match&&F.lookahead>=_){for(F.match_length--;F.strstart++,F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+_-1])&F.hash_mask,Oe=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart,--F.match_length!=0;);F.strstart++}else F.strstart+=F.match_length,F.match_length=0,F.ins_h=F.window[F.strstart],F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+1])&F.hash_mask;else ie=a._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++;if(ie&&(Y(F,!1),F.strm.avail_out===0))return A}return F.insert=F.strstart<_-1?F.strstart:_-1,me===d?(Y(F,!0),F.strm.avail_out===0?G:W):F.last_lit&&(Y(F,!1),F.strm.avail_out===0)?A:X}function V(F,me){for(var Oe,ie,re;;){if(F.lookahead<I){if(ue(F),F.lookahead<I&&me===f)return A;if(F.lookahead===0)break}if(Oe=0,F.lookahead>=_&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+_-1])&F.hash_mask,Oe=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart),F.prev_length=F.match_length,F.prev_match=F.match_start,F.match_length=_-1,Oe!==0&&F.prev_length<F.max_lazy_match&&F.strstart-Oe<=F.w_size-I&&(F.match_length=ee(F,Oe),F.match_length<=5&&(F.strategy===1||F.match_length===_&&4096<F.strstart-F.match_start)&&(F.match_length=_-1)),F.prev_length>=_&&F.match_length<=F.prev_length){for(re=F.strstart+F.lookahead-_,ie=a._tr_tally(F,F.strstart-1-F.prev_match,F.prev_length-_),F.lookahead-=F.prev_length-1,F.prev_length-=2;++F.strstart<=re&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+_-1])&F.hash_mask,Oe=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart),--F.prev_length!=0;);if(F.match_available=0,F.match_length=_-1,F.strstart++,ie&&(Y(F,!1),F.strm.avail_out===0))return A}else if(F.match_available){if((ie=a._tr_tally(F,0,F.window[F.strstart-1]))&&Y(F,!1),F.strstart++,F.lookahead--,F.strm.avail_out===0)return A}else F.match_available=1,F.strstart++,F.lookahead--}return F.match_available&&(ie=a._tr_tally(F,0,F.window[F.strstart-1]),F.match_available=0),F.insert=F.strstart<_-1?F.strstart:_-1,me===d?(Y(F,!0),F.strm.avail_out===0?G:W):F.last_lit&&(Y(F,!1),F.strm.avail_out===0)?A:X}function H(F,me,Oe,ie,re){this.good_length=F,this.max_lazy=me,this.nice_length=Oe,this.max_chain=ie,this.func=re}function he(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*D),this.dyn_dtree=new o.Buf16(2*(2*P+1)),this.bl_tree=new o.Buf16(2*(2*E+1)),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(R+1),this.heap=new o.Buf16(2*x+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*x+1),U(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 ve(F){var me;return F&&F.state?(F.total_in=F.total_out=0,F.data_type=b,(me=F.state).pending=0,me.pending_out=0,me.wrap<0&&(me.wrap=-me.wrap),me.status=me.wrap?T:B,F.adler=me.wrap===2?0:1,me.last_flush=f,a._tr_init(me),p):te(F,g)}function Ae(F){var me=ve(F);return me===p&&(function(Oe){Oe.window_size=2*Oe.w_size,U(Oe.head),Oe.max_lazy_match=s[Oe.level].max_lazy,Oe.good_match=s[Oe.level].good_length,Oe.nice_match=s[Oe.level].nice_length,Oe.max_chain_length=s[Oe.level].max_chain,Oe.strstart=0,Oe.block_start=0,Oe.lookahead=0,Oe.insert=0,Oe.match_length=Oe.prev_length=_-1,Oe.match_available=0,Oe.ins_h=0})(F.state),me}function Re(F,me,Oe,ie,re,pe){if(!F)return g;var Me=1;if(me===O&&(me=6),ie<0?(Me=0,ie=-ie):15<ie&&(Me=2,ie-=16),re<1||S<re||Oe!==v||ie<8||15<ie||me<0||9<me||pe<0||y<pe)return te(F,g);ie===8&&(ie=9);var je=new he;return(F.state=je).strm=F,je.wrap=Me,je.gzhead=null,je.w_bits=ie,je.w_size=1<<je.w_bits,je.w_mask=je.w_size-1,je.hash_bits=re+7,je.hash_size=1<<je.hash_bits,je.hash_mask=je.hash_size-1,je.hash_shift=~~((je.hash_bits+_-1)/_),je.window=new o.Buf8(2*je.w_size),je.head=new o.Buf16(je.hash_size),je.prev=new o.Buf16(je.w_size),je.lit_bufsize=1<<re+6,je.pending_buf_size=4*je.lit_bufsize,je.pending_buf=new o.Buf8(je.pending_buf_size),je.d_buf=1*je.lit_bufsize,je.l_buf=3*je.lit_bufsize,je.level=me,je.strategy=pe,je.method=Oe,Ae(F)}s=[new H(0,0,0,0,function(F,me){var Oe=65535;for(Oe>F.pending_buf_size-5&&(Oe=F.pending_buf_size-5);;){if(F.lookahead<=1){if(ue(F),F.lookahead===0&&me===f)return A;if(F.lookahead===0)break}F.strstart+=F.lookahead,F.lookahead=0;var ie=F.block_start+Oe;if((F.strstart===0||F.strstart>=ie)&&(F.lookahead=F.strstart-ie,F.strstart=ie,Y(F,!1),F.strm.avail_out===0)||F.strstart-F.block_start>=F.w_size-I&&(Y(F,!1),F.strm.avail_out===0))return A}return F.insert=0,me===d?(Y(F,!0),F.strm.avail_out===0?G:W):(F.strstart>F.block_start&&(Y(F,!1),F.strm.avail_out),A)}),new H(4,4,8,4,Z),new H(4,5,16,8,Z),new H(4,6,32,32,Z),new H(4,4,16,16,V),new H(8,16,32,32,V),new H(8,16,128,128,V),new H(8,32,128,256,V),new H(32,128,258,1024,V),new H(32,258,258,4096,V)],i.deflateInit=function(F,me){return Re(F,me,v,15,8,0)},i.deflateInit2=Re,i.deflateReset=Ae,i.deflateResetKeep=ve,i.deflateSetHeader=function(F,me){return F&&F.state?F.state.wrap!==2?g:(F.state.gzhead=me,p):g},i.deflate=function(F,me){var Oe,ie,re,pe;if(!F||!F.state||5<me||me<0)return F?te(F,g):g;if(ie=F.state,!F.output||!F.input&&F.avail_in!==0||ie.status===666&&me!==d)return te(F,F.avail_out===0?-5:g);if(ie.strm=F,Oe=ie.last_flush,ie.last_flush=me,ie.status===T)if(ie.wrap===2)F.adler=0,L(ie,31),L(ie,139),L(ie,8),ie.gzhead?(L(ie,(ie.gzhead.text?1:0)+(ie.gzhead.hcrc?2:0)+(ie.gzhead.extra?4:0)+(ie.gzhead.name?8:0)+(ie.gzhead.comment?16:0)),L(ie,255&ie.gzhead.time),L(ie,ie.gzhead.time>>8&255),L(ie,ie.gzhead.time>>16&255),L(ie,ie.gzhead.time>>24&255),L(ie,ie.level===9?2:2<=ie.strategy||ie.level<2?4:0),L(ie,255&ie.gzhead.os),ie.gzhead.extra&&ie.gzhead.extra.length&&(L(ie,255&ie.gzhead.extra.length),L(ie,ie.gzhead.extra.length>>8&255)),ie.gzhead.hcrc&&(F.adler=u(F.adler,ie.pending_buf,ie.pending,0)),ie.gzindex=0,ie.status=69):(L(ie,0),L(ie,0),L(ie,0),L(ie,0),L(ie,0),L(ie,ie.level===9?2:2<=ie.strategy||ie.level<2?4:0),L(ie,3),ie.status=B);else{var Me=v+(ie.w_bits-8<<4)<<8;Me|=(2<=ie.strategy||ie.level<2?0:ie.level<6?1:ie.level===6?2:3)<<6,ie.strstart!==0&&(Me|=32),Me+=31-Me%31,ie.status=B,se(ie,Me),ie.strstart!==0&&(se(ie,F.adler>>>16),se(ie,65535&F.adler)),F.adler=1}if(ie.status===69)if(ie.gzhead.extra){for(re=ie.pending;ie.gzindex<(65535&ie.gzhead.extra.length)&&(ie.pending!==ie.pending_buf_size||(ie.gzhead.hcrc&&ie.pending>re&&(F.adler=u(F.adler,ie.pending_buf,ie.pending-re,re)),z(F),re=ie.pending,ie.pending!==ie.pending_buf_size));)L(ie,255&ie.gzhead.extra[ie.gzindex]),ie.gzindex++;ie.gzhead.hcrc&&ie.pending>re&&(F.adler=u(F.adler,ie.pending_buf,ie.pending-re,re)),ie.gzindex===ie.gzhead.extra.length&&(ie.gzindex=0,ie.status=73)}else ie.status=73;if(ie.status===73)if(ie.gzhead.name){re=ie.pending;do{if(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>re&&(F.adler=u(F.adler,ie.pending_buf,ie.pending-re,re)),z(F),re=ie.pending,ie.pending===ie.pending_buf_size)){pe=1;break}pe=ie.gzindex<ie.gzhead.name.length?255&ie.gzhead.name.charCodeAt(ie.gzindex++):0,L(ie,pe)}while(pe!==0);ie.gzhead.hcrc&&ie.pending>re&&(F.adler=u(F.adler,ie.pending_buf,ie.pending-re,re)),pe===0&&(ie.gzindex=0,ie.status=91)}else ie.status=91;if(ie.status===91)if(ie.gzhead.comment){re=ie.pending;do{if(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>re&&(F.adler=u(F.adler,ie.pending_buf,ie.pending-re,re)),z(F),re=ie.pending,ie.pending===ie.pending_buf_size)){pe=1;break}pe=ie.gzindex<ie.gzhead.comment.length?255&ie.gzhead.comment.charCodeAt(ie.gzindex++):0,L(ie,pe)}while(pe!==0);ie.gzhead.hcrc&&ie.pending>re&&(F.adler=u(F.adler,ie.pending_buf,ie.pending-re,re)),pe===0&&(ie.status=103)}else ie.status=103;if(ie.status===103&&(ie.gzhead.hcrc?(ie.pending+2>ie.pending_buf_size&&z(F),ie.pending+2<=ie.pending_buf_size&&(L(ie,255&F.adler),L(ie,F.adler>>8&255),F.adler=0,ie.status=B)):ie.status=B),ie.pending!==0){if(z(F),F.avail_out===0)return ie.last_flush=-1,p}else if(F.avail_in===0&&J(me)<=J(Oe)&&me!==d)return te(F,-5);if(ie.status===666&&F.avail_in!==0)return te(F,-5);if(F.avail_in!==0||ie.lookahead!==0||me!==f&&ie.status!==666){var je=ie.strategy===2?(function(_e,q){for(var ye;;){if(_e.lookahead===0&&(ue(_e),_e.lookahead===0)){if(q===f)return A;break}if(_e.match_length=0,ye=a._tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++,ye&&(Y(_e,!1),_e.strm.avail_out===0))return A}return _e.insert=0,q===d?(Y(_e,!0),_e.strm.avail_out===0?G:W):_e.last_lit&&(Y(_e,!1),_e.strm.avail_out===0)?A:X})(ie,me):ie.strategy===3?(function(_e,q){for(var ye,xe,ce,Se,Ee=_e.window;;){if(_e.lookahead<=C){if(ue(_e),_e.lookahead<=C&&q===f)return A;if(_e.lookahead===0)break}if(_e.match_length=0,_e.lookahead>=_&&0<_e.strstart&&(xe=Ee[ce=_e.strstart-1])===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]){Se=_e.strstart+C;do;while(xe===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]&&xe===Ee[++ce]&&ce<Se);_e.match_length=C-(Se-ce),_e.match_length>_e.lookahead&&(_e.match_length=_e.lookahead)}if(_e.match_length>=_?(ye=a._tr_tally(_e,1,_e.match_length-_),_e.lookahead-=_e.match_length,_e.strstart+=_e.match_length,_e.match_length=0):(ye=a._tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++),ye&&(Y(_e,!1),_e.strm.avail_out===0))return A}return _e.insert=0,q===d?(Y(_e,!0),_e.strm.avail_out===0?G:W):_e.last_lit&&(Y(_e,!1),_e.strm.avail_out===0)?A:X})(ie,me):s[ie.level].func(ie,me);if(je!==G&&je!==W||(ie.status=666),je===A||je===G)return F.avail_out===0&&(ie.last_flush=-1),p;if(je===X&&(me===1?a._tr_align(ie):me!==5&&(a._tr_stored_block(ie,0,0,!1),me===3&&(U(ie.head),ie.lookahead===0&&(ie.strstart=0,ie.block_start=0,ie.insert=0))),z(F),F.avail_out===0))return ie.last_flush=-1,p}return me!==d?p:ie.wrap<=0?1:(ie.wrap===2?(L(ie,255&F.adler),L(ie,F.adler>>8&255),L(ie,F.adler>>16&255),L(ie,F.adler>>24&255),L(ie,255&F.total_in),L(ie,F.total_in>>8&255),L(ie,F.total_in>>16&255),L(ie,F.total_in>>24&255)):(se(ie,F.adler>>>16),se(ie,65535&F.adler)),z(F),0<ie.wrap&&(ie.wrap=-ie.wrap),ie.pending!==0?p:1)},i.deflateEnd=function(F){var me;return F&&F.state?(me=F.state.status)!==T&&me!==69&&me!==73&&me!==91&&me!==103&&me!==B&&me!==666?te(F,g):(F.state=null,me===B?te(F,-3):p):g},i.deflateSetDictionary=function(F,me){var Oe,ie,re,pe,Me,je,_e,q,ye=me.length;if(!F||!F.state||(pe=(Oe=F.state).wrap)===2||pe===1&&Oe.status!==T||Oe.lookahead)return g;for(pe===1&&(F.adler=l(F.adler,me,ye,0)),Oe.wrap=0,ye>=Oe.w_size&&(pe===0&&(U(Oe.head),Oe.strstart=0,Oe.block_start=0,Oe.insert=0),q=new o.Buf8(Oe.w_size),o.arraySet(q,me,ye-Oe.w_size,Oe.w_size,0),me=q,ye=Oe.w_size),Me=F.avail_in,je=F.next_in,_e=F.input,F.avail_in=ye,F.next_in=0,F.input=me,ue(Oe);Oe.lookahead>=_;){for(ie=Oe.strstart,re=Oe.lookahead-(_-1);Oe.ins_h=(Oe.ins_h<<Oe.hash_shift^Oe.window[ie+_-1])&Oe.hash_mask,Oe.prev[ie&Oe.w_mask]=Oe.head[Oe.ins_h],Oe.head[Oe.ins_h]=ie,ie++,--re;);Oe.strstart=ie,Oe.lookahead=_-1,ue(Oe)}return Oe.strstart+=Oe.lookahead,Oe.block_start=Oe.strstart,Oe.insert=Oe.lookahead,Oe.lookahead=0,Oe.match_length=Oe.prev_length=_-1,Oe.match_available=0,F.next_in=je,F.input=_e,F.avail_in=Me,Oe.wrap=pe,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.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(n,r,i){r.exports=function(s,o){var a,l,u,c,f,d,p,g,O,y,b,v,S,x,P,E,D,R,_,C,I,T,B,A,X;a=s.state,l=s.next_in,A=s.input,u=l+(s.avail_in-5),c=s.next_out,X=s.output,f=c-(o-s.avail_out),d=c+(s.avail_out-257),p=a.dmax,g=a.wsize,O=a.whave,y=a.wnext,b=a.window,v=a.hold,S=a.bits,x=a.lencode,P=a.distcode,E=(1<<a.lenbits)-1,D=(1<<a.distbits)-1;e:do{S<15&&(v+=A[l++]<<S,S+=8,v+=A[l++]<<S,S+=8),R=x[v&E];t:for(;;){if(v>>>=_=R>>>24,S-=_,(_=R>>>16&255)===0)X[c++]=65535&R;else{if(!(16&_)){if((64&_)==0){R=x[(65535&R)+(v&(1<<_)-1)];continue t}if(32&_){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}C=65535&R,(_&=15)&&(S<_&&(v+=A[l++]<<S,S+=8),C+=v&(1<<_)-1,v>>>=_,S-=_),S<15&&(v+=A[l++]<<S,S+=8,v+=A[l++]<<S,S+=8),R=P[v&D];n:for(;;){if(v>>>=_=R>>>24,S-=_,!(16&(_=R>>>16&255))){if((64&_)==0){R=P[(65535&R)+(v&(1<<_)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(I=65535&R,S<(_&=15)&&(v+=A[l++]<<S,(S+=8)<_&&(v+=A[l++]<<S,S+=8)),p<(I+=v&(1<<_)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(v>>>=_,S-=_,(_=c-f)<I){if(O<(_=I-_)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(B=b,(T=0)===y){if(T+=g-_,_<C){for(C-=_;X[c++]=b[T++],--_;);T=c-I,B=X}}else if(y<_){if(T+=g+y-_,(_-=y)<C){for(C-=_;X[c++]=b[T++],--_;);if(T=0,y<C){for(C-=_=y;X[c++]=b[T++],--_;);T=c-I,B=X}}}else if(T+=y-_,_<C){for(C-=_;X[c++]=b[T++],--_;);T=c-I,B=X}for(;2<C;)X[c++]=B[T++],X[c++]=B[T++],X[c++]=B[T++],C-=3;C&&(X[c++]=B[T++],1<C&&(X[c++]=B[T++]))}else{for(T=c-I;X[c++]=X[T++],X[c++]=X[T++],X[c++]=X[T++],2<(C-=3););C&&(X[c++]=X[T++],1<C&&(X[c++]=X[T++]))}break}}break}}while(l<u&&c<d);l-=C=S>>3,v&=(1<<(S-=C<<3))-1,s.next_in=l,s.next_out=c,s.avail_in=l<u?u-l+5:5-(l-u),s.avail_out=c<d?d-c+257:257-(c-d),a.hold=v,a.bits=S}},{}],49:[function(n,r,i){var s=n("../utils/common"),o=n("./adler32"),a=n("./crc32"),l=n("./inffast"),u=n("./inftrees"),c=1,f=2,d=0,p=-2,g=1,O=852,y=592;function b(T){return(T>>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function v(){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 s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(T){var B;return T&&T.state?(B=T.state,T.total_in=T.total_out=B.total=0,T.msg="",B.wrap&&(T.adler=1&B.wrap),B.mode=g,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new s.Buf32(O),B.distcode=B.distdyn=new s.Buf32(y),B.sane=1,B.back=-1,d):p}function x(T){var B;return T&&T.state?((B=T.state).wsize=0,B.whave=0,B.wnext=0,S(T)):p}function P(T,B){var A,X;return T&&T.state?(X=T.state,B<0?(A=0,B=-B):(A=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?p:(X.window!==null&&X.wbits!==B&&(X.window=null),X.wrap=A,X.wbits=B,x(T))):p}function E(T,B){var A,X;return T?(X=new v,(T.state=X).window=null,(A=P(T,B))!==d&&(T.state=null),A):p}var D,R,_=!0;function C(T){if(_){var B;for(D=new s.Buf32(512),R=new s.Buf32(32),B=0;B<144;)T.lens[B++]=8;for(;B<256;)T.lens[B++]=9;for(;B<280;)T.lens[B++]=7;for(;B<288;)T.lens[B++]=8;for(u(c,T.lens,0,288,D,0,T.work,{bits:9}),B=0;B<32;)T.lens[B++]=5;u(f,T.lens,0,32,R,0,T.work,{bits:5}),_=!1}T.lencode=D,T.lenbits=9,T.distcode=R,T.distbits=5}function I(T,B,A,X){var G,W=T.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new s.Buf8(W.wsize)),X>=W.wsize?(s.arraySet(W.window,B,A-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(X<(G=W.wsize-W.wnext)&&(G=X),s.arraySet(W.window,B,A-X,G,W.wnext),(X-=G)?(s.arraySet(W.window,B,A-X,X,0),W.wnext=X,W.whave=W.wsize):(W.wnext+=G,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=G))),0}i.inflateReset=x,i.inflateReset2=P,i.inflateResetKeep=S,i.inflateInit=function(T){return E(T,15)},i.inflateInit2=E,i.inflate=function(T,B){var A,X,G,W,te,J,U,z,Y,L,se,ee,ue,Z,V,H,he,ve,Ae,Re,F,me,Oe,ie,re=0,pe=new s.Buf8(4),Me=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return p;(A=T.state).mode===12&&(A.mode=13),te=T.next_out,G=T.output,U=T.avail_out,W=T.next_in,X=T.input,J=T.avail_in,z=A.hold,Y=A.bits,L=J,se=U,me=d;e:for(;;)switch(A.mode){case g:if(A.wrap===0){A.mode=13;break}for(;Y<16;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(2&A.wrap&&z===35615){pe[A.check=0]=255&z,pe[1]=z>>>8&255,A.check=a(A.check,pe,2,0),Y=z=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&z)<<8)+(z>>8))%31){T.msg="incorrect header check",A.mode=30;break}if((15&z)!=8){T.msg="unknown compression method",A.mode=30;break}if(Y-=4,F=8+(15&(z>>>=4)),A.wbits===0)A.wbits=F;else if(F>A.wbits){T.msg="invalid window size",A.mode=30;break}A.dmax=1<<F,T.adler=A.check=1,A.mode=512&z?10:12,Y=z=0;break;case 2:for(;Y<16;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(A.flags=z,(255&A.flags)!=8){T.msg="unknown compression method",A.mode=30;break}if(57344&A.flags){T.msg="unknown header flags set",A.mode=30;break}A.head&&(A.head.text=z>>8&1),512&A.flags&&(pe[0]=255&z,pe[1]=z>>>8&255,A.check=a(A.check,pe,2,0)),Y=z=0,A.mode=3;case 3:for(;Y<32;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}A.head&&(A.head.time=z),512&A.flags&&(pe[0]=255&z,pe[1]=z>>>8&255,pe[2]=z>>>16&255,pe[3]=z>>>24&255,A.check=a(A.check,pe,4,0)),Y=z=0,A.mode=4;case 4:for(;Y<16;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}A.head&&(A.head.xflags=255&z,A.head.os=z>>8),512&A.flags&&(pe[0]=255&z,pe[1]=z>>>8&255,A.check=a(A.check,pe,2,0)),Y=z=0,A.mode=5;case 5:if(1024&A.flags){for(;Y<16;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}A.length=z,A.head&&(A.head.extra_len=z),512&A.flags&&(pe[0]=255&z,pe[1]=z>>>8&255,A.check=a(A.check,pe,2,0)),Y=z=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(J<(ee=A.length)&&(ee=J),ee&&(A.head&&(F=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),s.arraySet(A.head.extra,X,W,ee,F)),512&A.flags&&(A.check=a(A.check,X,ee,W)),J-=ee,W+=ee,A.length-=ee),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(J===0)break e;for(ee=0;F=X[W+ee++],A.head&&F&&A.length<65536&&(A.head.name+=String.fromCharCode(F)),F&&ee<J;);if(512&A.flags&&(A.check=a(A.check,X,ee,W)),J-=ee,W+=ee,F)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=8;case 8:if(4096&A.flags){if(J===0)break e;for(ee=0;F=X[W+ee++],A.head&&F&&A.length<65536&&(A.head.comment+=String.fromCharCode(F)),F&&ee<J;);if(512&A.flags&&(A.check=a(A.check,X,ee,W)),J-=ee,W+=ee,F)break e}else A.head&&(A.head.comment=null);A.mode=9;case 9:if(512&A.flags){for(;Y<16;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(z!==(65535&A.check)){T.msg="header crc mismatch",A.mode=30;break}Y=z=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),T.adler=A.check=0,A.mode=12;break;case 10:for(;Y<32;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}T.adler=A.check=b(z),Y=z=0,A.mode=11;case 11:if(A.havedict===0)return T.next_out=te,T.avail_out=U,T.next_in=W,T.avail_in=J,A.hold=z,A.bits=Y,2;T.adler=A.check=1,A.mode=12;case 12:if(B===5||B===6)break e;case 13:if(A.last){z>>>=7&Y,Y-=7&Y,A.mode=27;break}for(;Y<3;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}switch(A.last=1&z,Y-=1,3&(z>>>=1)){case 0:A.mode=14;break;case 1:if(C(A),A.mode=20,B!==6)break;z>>>=2,Y-=2;break e;case 2:A.mode=17;break;case 3:T.msg="invalid block type",A.mode=30}z>>>=2,Y-=2;break;case 14:for(z>>>=7&Y,Y-=7&Y;Y<32;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if((65535&z)!=(z>>>16^65535)){T.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&z,Y=z=0,A.mode=15,B===6)break e;case 15:A.mode=16;case 16:if(ee=A.length){if(J<ee&&(ee=J),U<ee&&(ee=U),ee===0)break e;s.arraySet(G,X,W,ee,te),J-=ee,W+=ee,U-=ee,te+=ee,A.length-=ee;break}A.mode=12;break;case 17:for(;Y<14;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(A.nlen=257+(31&z),z>>>=5,Y-=5,A.ndist=1+(31&z),z>>>=5,Y-=5,A.ncode=4+(15&z),z>>>=4,Y-=4,286<A.nlen||30<A.ndist){T.msg="too many length or distance symbols",A.mode=30;break}A.have=0,A.mode=18;case 18:for(;A.have<A.ncode;){for(;Y<3;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}A.lens[Me[A.have++]]=7&z,z>>>=3,Y-=3}for(;A.have<19;)A.lens[Me[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Oe={bits:A.lenbits},me=u(0,A.lens,0,19,A.lencode,0,A.work,Oe),A.lenbits=Oe.bits,me){T.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have<A.nlen+A.ndist;){for(;H=(re=A.lencode[z&(1<<A.lenbits)-1])>>>16&255,he=65535&re,!((V=re>>>24)<=Y);){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(he<16)z>>>=V,Y-=V,A.lens[A.have++]=he;else{if(he===16){for(ie=V+2;Y<ie;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(z>>>=V,Y-=V,A.have===0){T.msg="invalid bit length repeat",A.mode=30;break}F=A.lens[A.have-1],ee=3+(3&z),z>>>=2,Y-=2}else if(he===17){for(ie=V+3;Y<ie;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}Y-=V,F=0,ee=3+(7&(z>>>=V)),z>>>=3,Y-=3}else{for(ie=V+7;Y<ie;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}Y-=V,F=0,ee=11+(127&(z>>>=V)),z>>>=7,Y-=7}if(A.have+ee>A.nlen+A.ndist){T.msg="invalid bit length repeat",A.mode=30;break}for(;ee--;)A.lens[A.have++]=F}}if(A.mode===30)break;if(A.lens[256]===0){T.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,Oe={bits:A.lenbits},me=u(c,A.lens,0,A.nlen,A.lencode,0,A.work,Oe),A.lenbits=Oe.bits,me){T.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,Oe={bits:A.distbits},me=u(f,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Oe),A.distbits=Oe.bits,me){T.msg="invalid distances set",A.mode=30;break}if(A.mode=20,B===6)break e;case 20:A.mode=21;case 21:if(6<=J&&258<=U){T.next_out=te,T.avail_out=U,T.next_in=W,T.avail_in=J,A.hold=z,A.bits=Y,l(T,se),te=T.next_out,G=T.output,U=T.avail_out,W=T.next_in,X=T.input,J=T.avail_in,z=A.hold,Y=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;H=(re=A.lencode[z&(1<<A.lenbits)-1])>>>16&255,he=65535&re,!((V=re>>>24)<=Y);){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(H&&(240&H)==0){for(ve=V,Ae=H,Re=he;H=(re=A.lencode[Re+((z&(1<<ve+Ae)-1)>>ve)])>>>16&255,he=65535&re,!(ve+(V=re>>>24)<=Y);){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}z>>>=ve,Y-=ve,A.back+=ve}if(z>>>=V,Y-=V,A.back+=V,A.length=he,H===0){A.mode=26;break}if(32&H){A.back=-1,A.mode=12;break}if(64&H){T.msg="invalid literal/length code",A.mode=30;break}A.extra=15&H,A.mode=22;case 22:if(A.extra){for(ie=A.extra;Y<ie;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}A.length+=z&(1<<A.extra)-1,z>>>=A.extra,Y-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;H=(re=A.distcode[z&(1<<A.distbits)-1])>>>16&255,he=65535&re,!((V=re>>>24)<=Y);){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if((240&H)==0){for(ve=V,Ae=H,Re=he;H=(re=A.distcode[Re+((z&(1<<ve+Ae)-1)>>ve)])>>>16&255,he=65535&re,!(ve+(V=re>>>24)<=Y);){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}z>>>=ve,Y-=ve,A.back+=ve}if(z>>>=V,Y-=V,A.back+=V,64&H){T.msg="invalid distance code",A.mode=30;break}A.offset=he,A.extra=15&H,A.mode=24;case 24:if(A.extra){for(ie=A.extra;Y<ie;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}A.offset+=z&(1<<A.extra)-1,z>>>=A.extra,Y-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){T.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(U===0)break e;if(ee=se-U,A.offset>ee){if((ee=A.offset-ee)>A.whave&&A.sane){T.msg="invalid distance too far back",A.mode=30;break}ue=ee>A.wnext?(ee-=A.wnext,A.wsize-ee):A.wnext-ee,ee>A.length&&(ee=A.length),Z=A.window}else Z=G,ue=te-A.offset,ee=A.length;for(U<ee&&(ee=U),U-=ee,A.length-=ee;G[te++]=Z[ue++],--ee;);A.length===0&&(A.mode=21);break;case 26:if(U===0)break e;G[te++]=A.length,U--,A.mode=21;break;case 27:if(A.wrap){for(;Y<32;){if(J===0)break e;J--,z|=X[W++]<<Y,Y+=8}if(se-=U,T.total_out+=se,A.total+=se,se&&(T.adler=A.check=A.flags?a(A.check,G,se,te-se):o(A.check,G,se,te-se)),se=U,(A.flags?z:b(z))!==A.check){T.msg="incorrect data check",A.mode=30;break}Y=z=0}A.mode=28;case 28:if(A.wrap&&A.flags){for(;Y<32;){if(J===0)break e;J--,z+=X[W++]<<Y,Y+=8}if(z!==(4294967295&A.total)){T.msg="incorrect length check",A.mode=30;break}Y=z=0}A.mode=29;case 29:me=1;break e;case 30:me=-3;break e;case 31:return-4;default:return p}return T.next_out=te,T.avail_out=U,T.next_in=W,T.avail_in=J,A.hold=z,A.bits=Y,(A.wsize||se!==T.avail_out&&A.mode<30&&(A.mode<27||B!==4))&&I(T,T.output,T.next_out,se-T.avail_out)?(A.mode=31,-4):(L-=T.avail_in,se-=T.avail_out,T.total_in+=L,T.total_out+=se,A.total+=se,A.wrap&&se&&(T.adler=A.check=A.flags?a(A.check,G,se,T.next_out-se):o(A.check,G,se,T.next_out-se)),T.data_type=A.bits+(A.last?64:0)+(A.mode===12?128:0)+(A.mode===20||A.mode===15?256:0),(L==0&&se===0||B===4)&&me===d&&(me=-5),me)},i.inflateEnd=function(T){if(!T||!T.state)return p;var B=T.state;return B.window&&(B.window=null),T.state=null,d},i.inflateGetHeader=function(T,B){var A;return T&&T.state?(2&(A=T.state).wrap)==0?p:((A.head=B).done=!1,d):p},i.inflateSetDictionary=function(T,B){var A,X=B.length;return T&&T.state?(A=T.state).wrap!==0&&A.mode!==11?p:A.mode===11&&o(1,B,X,0)!==A.check?-3:I(T,B,X,X)?(A.mode=31,-4):(A.havedict=1,d):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var s=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[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],l=[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],u=[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];r.exports=function(c,f,d,p,g,O,y,b){var v,S,x,P,E,D,R,_,C,I=b.bits,T=0,B=0,A=0,X=0,G=0,W=0,te=0,J=0,U=0,z=0,Y=null,L=0,se=new s.Buf16(16),ee=new s.Buf16(16),ue=null,Z=0;for(T=0;T<=15;T++)se[T]=0;for(B=0;B<p;B++)se[f[d+B]]++;for(G=I,X=15;1<=X&&se[X]===0;X--);if(X<G&&(G=X),X===0)return g[O++]=20971520,g[O++]=20971520,b.bits=1,0;for(A=1;A<X&&se[A]===0;A++);for(G<A&&(G=A),T=J=1;T<=15;T++)if(J<<=1,(J-=se[T])<0)return-1;if(0<J&&(c===0||X!==1))return-1;for(ee[1]=0,T=1;T<15;T++)ee[T+1]=ee[T]+se[T];for(B=0;B<p;B++)f[d+B]!==0&&(y[ee[f[d+B]]++]=B);if(D=c===0?(Y=ue=y,19):c===1?(Y=o,L-=257,ue=a,Z-=257,256):(Y=l,ue=u,-1),T=A,E=O,te=B=z=0,x=-1,P=(U=1<<(W=G))-1,c===1&&852<U||c===2&&592<U)return 1;for(;;){for(R=T-te,C=y[B]<D?(_=0,y[B]):y[B]>D?(_=ue[Z+y[B]],Y[L+y[B]]):(_=96,0),v=1<<T-te,A=S=1<<W;g[E+(z>>te)+(S-=v)]=R<<24|_<<16|C|0,S!==0;);for(v=1<<T-1;z&v;)v>>=1;if(v!==0?(z&=v-1,z+=v):z=0,B++,--se[T]==0){if(T===X)break;T=f[d+y[B]]}if(G<T&&(z&P)!==x){for(te===0&&(te=G),E+=A,J=1<<(W=T-te);W+te<X&&!((J-=se[W+te])<=0);)W++,J<<=1;if(U+=1<<W,c===1&&852<U||c===2&&592<U)return 1;g[x=z&P]=G<<24|W<<16|E-O|0}}return z!==0&&(g[E+z]=T-te<<24|64<<16|0),b.bits=G,0}},{"../utils/common":41}],51:[function(n,r,i){r.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(n,r,i){var s=n("../utils/common"),o=0,a=1;function l(re){for(var pe=re.length;0<=--pe;)re[pe]=0}var u=0,c=29,f=256,d=f+1+c,p=30,g=19,O=2*d+1,y=15,b=16,v=7,S=256,x=16,P=17,E=18,D=[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],R=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(d+2));l(I);var T=new Array(2*p);l(T);var B=new Array(512);l(B);var A=new Array(256);l(A);var X=new Array(c);l(X);var G,W,te,J=new Array(p);function U(re,pe,Me,je,_e){this.static_tree=re,this.extra_bits=pe,this.extra_base=Me,this.elems=je,this.max_length=_e,this.has_stree=re&&re.length}function z(re,pe){this.dyn_tree=re,this.max_code=0,this.stat_desc=pe}function Y(re){return re<256?B[re]:B[256+(re>>>7)]}function L(re,pe){re.pending_buf[re.pending++]=255&pe,re.pending_buf[re.pending++]=pe>>>8&255}function se(re,pe,Me){re.bi_valid>b-Me?(re.bi_buf|=pe<<re.bi_valid&65535,L(re,re.bi_buf),re.bi_buf=pe>>b-re.bi_valid,re.bi_valid+=Me-b):(re.bi_buf|=pe<<re.bi_valid&65535,re.bi_valid+=Me)}function ee(re,pe,Me){se(re,Me[2*pe],Me[2*pe+1])}function ue(re,pe){for(var Me=0;Me|=1&re,re>>>=1,Me<<=1,0<--pe;);return Me>>>1}function Z(re,pe,Me){var je,_e,q=new Array(y+1),ye=0;for(je=1;je<=y;je++)q[je]=ye=ye+Me[je-1]<<1;for(_e=0;_e<=pe;_e++){var xe=re[2*_e+1];xe!==0&&(re[2*_e]=ue(q[xe]++,xe))}}function V(re){var pe;for(pe=0;pe<d;pe++)re.dyn_ltree[2*pe]=0;for(pe=0;pe<p;pe++)re.dyn_dtree[2*pe]=0;for(pe=0;pe<g;pe++)re.bl_tree[2*pe]=0;re.dyn_ltree[2*S]=1,re.opt_len=re.static_len=0,re.last_lit=re.matches=0}function H(re){8<re.bi_valid?L(re,re.bi_buf):0<re.bi_valid&&(re.pending_buf[re.pending++]=re.bi_buf),re.bi_buf=0,re.bi_valid=0}function he(re,pe,Me,je){var _e=2*pe,q=2*Me;return re[_e]<re[q]||re[_e]===re[q]&&je[pe]<=je[Me]}function ve(re,pe,Me){for(var je=re.heap[Me],_e=Me<<1;_e<=re.heap_len&&(_e<re.heap_len&&he(pe,re.heap[_e+1],re.heap[_e],re.depth)&&_e++,!he(pe,je,re.heap[_e],re.depth));)re.heap[Me]=re.heap[_e],Me=_e,_e<<=1;re.heap[Me]=je}function Ae(re,pe,Me){var je,_e,q,ye,xe=0;if(re.last_lit!==0)for(;je=re.pending_buf[re.d_buf+2*xe]<<8|re.pending_buf[re.d_buf+2*xe+1],_e=re.pending_buf[re.l_buf+xe],xe++,je===0?ee(re,_e,pe):(ee(re,(q=A[_e])+f+1,pe),(ye=D[q])!==0&&se(re,_e-=X[q],ye),ee(re,q=Y(--je),Me),(ye=R[q])!==0&&se(re,je-=J[q],ye)),xe<re.last_lit;);ee(re,S,pe)}function Re(re,pe){var Me,je,_e,q=pe.dyn_tree,ye=pe.stat_desc.static_tree,xe=pe.stat_desc.has_stree,ce=pe.stat_desc.elems,Se=-1;for(re.heap_len=0,re.heap_max=O,Me=0;Me<ce;Me++)q[2*Me]!==0?(re.heap[++re.heap_len]=Se=Me,re.depth[Me]=0):q[2*Me+1]=0;for(;re.heap_len<2;)q[2*(_e=re.heap[++re.heap_len]=Se<2?++Se:0)]=1,re.depth[_e]=0,re.opt_len--,xe&&(re.static_len-=ye[2*_e+1]);for(pe.max_code=Se,Me=re.heap_len>>1;1<=Me;Me--)ve(re,q,Me);for(_e=ce;Me=re.heap[1],re.heap[1]=re.heap[re.heap_len--],ve(re,q,1),je=re.heap[1],re.heap[--re.heap_max]=Me,re.heap[--re.heap_max]=je,q[2*_e]=q[2*Me]+q[2*je],re.depth[_e]=(re.depth[Me]>=re.depth[je]?re.depth[Me]:re.depth[je])+1,q[2*Me+1]=q[2*je+1]=_e,re.heap[1]=_e++,ve(re,q,1),2<=re.heap_len;);re.heap[--re.heap_max]=re.heap[1],(function(Ee,Ue){var Ge,Ne,Ve,qe,Ke,it,at=Ue.dyn_tree,kt=Ue.max_code,We=Ue.stat_desc.static_tree,St=Ue.stat_desc.has_stree,Wt=Ue.stat_desc.extra_bits,jt=Ue.stat_desc.extra_base,At=Ue.stat_desc.max_length,Jt=0;for(qe=0;qe<=y;qe++)Ee.bl_count[qe]=0;for(at[2*Ee.heap[Ee.heap_max]+1]=0,Ge=Ee.heap_max+1;Ge<O;Ge++)At<(qe=at[2*at[2*(Ne=Ee.heap[Ge])+1]+1]+1)&&(qe=At,Jt++),at[2*Ne+1]=qe,kt<Ne||(Ee.bl_count[qe]++,Ke=0,jt<=Ne&&(Ke=Wt[Ne-jt]),it=at[2*Ne],Ee.opt_len+=it*(qe+Ke),St&&(Ee.static_len+=it*(We[2*Ne+1]+Ke)));if(Jt!==0){do{for(qe=At-1;Ee.bl_count[qe]===0;)qe--;Ee.bl_count[qe]--,Ee.bl_count[qe+1]+=2,Ee.bl_count[At]--,Jt-=2}while(0<Jt);for(qe=At;qe!==0;qe--)for(Ne=Ee.bl_count[qe];Ne!==0;)kt<(Ve=Ee.heap[--Ge])||(at[2*Ve+1]!==qe&&(Ee.opt_len+=(qe-at[2*Ve+1])*at[2*Ve],at[2*Ve+1]=qe),Ne--)}})(re,pe),Z(q,Se,re.bl_count)}function F(re,pe,Me){var je,_e,q=-1,ye=pe[1],xe=0,ce=7,Se=4;for(ye===0&&(ce=138,Se=3),pe[2*(Me+1)+1]=65535,je=0;je<=Me;je++)_e=ye,ye=pe[2*(je+1)+1],++xe<ce&&_e===ye||(xe<Se?re.bl_tree[2*_e]+=xe:_e!==0?(_e!==q&&re.bl_tree[2*_e]++,re.bl_tree[2*x]++):xe<=10?re.bl_tree[2*P]++:re.bl_tree[2*E]++,q=_e,Se=(xe=0)===ye?(ce=138,3):_e===ye?(ce=6,3):(ce=7,4))}function me(re,pe,Me){var je,_e,q=-1,ye=pe[1],xe=0,ce=7,Se=4;for(ye===0&&(ce=138,Se=3),je=0;je<=Me;je++)if(_e=ye,ye=pe[2*(je+1)+1],!(++xe<ce&&_e===ye)){if(xe<Se)for(;ee(re,_e,re.bl_tree),--xe!=0;);else _e!==0?(_e!==q&&(ee(re,_e,re.bl_tree),xe--),ee(re,x,re.bl_tree),se(re,xe-3,2)):xe<=10?(ee(re,P,re.bl_tree),se(re,xe-3,3)):(ee(re,E,re.bl_tree),se(re,xe-11,7));q=_e,Se=(xe=0)===ye?(ce=138,3):_e===ye?(ce=6,3):(ce=7,4)}}l(J);var Oe=!1;function ie(re,pe,Me,je){se(re,(u<<1)+(je?1:0),3),(function(_e,q,ye,xe){H(_e),L(_e,ye),L(_e,~ye),s.arraySet(_e.pending_buf,_e.window,q,ye,_e.pending),_e.pending+=ye})(re,pe,Me)}i._tr_init=function(re){Oe||((function(){var pe,Me,je,_e,q,ye=new Array(y+1);for(_e=je=0;_e<c-1;_e++)for(X[_e]=je,pe=0;pe<1<<D[_e];pe++)A[je++]=_e;for(A[je-1]=_e,_e=q=0;_e<16;_e++)for(J[_e]=q,pe=0;pe<1<<R[_e];pe++)B[q++]=_e;for(q>>=7;_e<p;_e++)for(J[_e]=q<<7,pe=0;pe<1<<R[_e]-7;pe++)B[256+q++]=_e;for(Me=0;Me<=y;Me++)ye[Me]=0;for(pe=0;pe<=143;)I[2*pe+1]=8,pe++,ye[8]++;for(;pe<=255;)I[2*pe+1]=9,pe++,ye[9]++;for(;pe<=279;)I[2*pe+1]=7,pe++,ye[7]++;for(;pe<=287;)I[2*pe+1]=8,pe++,ye[8]++;for(Z(I,d+1,ye),pe=0;pe<p;pe++)T[2*pe+1]=5,T[2*pe]=ue(pe,5);G=new U(I,D,f+1,d,y),W=new U(T,R,0,p,y),te=new U(new Array(0),_,0,g,v)})(),Oe=!0),re.l_desc=new z(re.dyn_ltree,G),re.d_desc=new z(re.dyn_dtree,W),re.bl_desc=new z(re.bl_tree,te),re.bi_buf=0,re.bi_valid=0,V(re)},i._tr_stored_block=ie,i._tr_flush_block=function(re,pe,Me,je){var _e,q,ye=0;0<re.level?(re.strm.data_type===2&&(re.strm.data_type=(function(xe){var ce,Se=4093624447;for(ce=0;ce<=31;ce++,Se>>>=1)if(1&Se&&xe.dyn_ltree[2*ce]!==0)return o;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return a;for(ce=32;ce<f;ce++)if(xe.dyn_ltree[2*ce]!==0)return a;return o})(re)),Re(re,re.l_desc),Re(re,re.d_desc),ye=(function(xe){var ce;for(F(xe,xe.dyn_ltree,xe.l_desc.max_code),F(xe,xe.dyn_dtree,xe.d_desc.max_code),Re(xe,xe.bl_desc),ce=g-1;3<=ce&&xe.bl_tree[2*C[ce]+1]===0;ce--);return xe.opt_len+=3*(ce+1)+5+5+4,ce})(re),_e=re.opt_len+3+7>>>3,(q=re.static_len+3+7>>>3)<=_e&&(_e=q)):_e=q=Me+5,Me+4<=_e&&pe!==-1?ie(re,pe,Me,je):re.strategy===4||q===_e?(se(re,2+(je?1:0),3),Ae(re,I,T)):(se(re,4+(je?1:0),3),(function(xe,ce,Se,Ee){var Ue;for(se(xe,ce-257,5),se(xe,Se-1,5),se(xe,Ee-4,4),Ue=0;Ue<Ee;Ue++)se(xe,xe.bl_tree[2*C[Ue]+1],3);me(xe,xe.dyn_ltree,ce-1),me(xe,xe.dyn_dtree,Se-1)})(re,re.l_desc.max_code+1,re.d_desc.max_code+1,ye+1),Ae(re,re.dyn_ltree,re.dyn_dtree)),V(re),je&&H(re)},i._tr_tally=function(re,pe,Me){return re.pending_buf[re.d_buf+2*re.last_lit]=pe>>>8&255,re.pending_buf[re.d_buf+2*re.last_lit+1]=255&pe,re.pending_buf[re.l_buf+re.last_lit]=255&Me,re.last_lit++,pe===0?re.dyn_ltree[2*Me]++:(re.matches++,pe--,re.dyn_ltree[2*(A[Me]+f+1)]++,re.dyn_dtree[2*Y(pe)]++),re.last_lit===re.lit_bufsize-1},i._tr_align=function(re){se(re,2,3),ee(re,S,I),(function(pe){pe.bi_valid===16?(L(pe,pe.bi_buf),pe.bi_buf=0,pe.bi_valid=0):8<=pe.bi_valid&&(pe.pending_buf[pe.pending++]=255&pe.bi_buf,pe.bi_buf>>=8,pe.bi_valid-=8)})(re)}},{"../utils/common":41}],53:[function(n,r,i){r.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(n,r,i){(function(s){(function(o,a){if(!o.setImmediate){var l,u,c,f,d=1,p={},g=!1,O=o.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(o);y=y&&y.setTimeout?y:o,l={}.toString.call(o.process)==="[object process]"?function(x){process.nextTick(function(){v(x)})}:(function(){if(o.postMessage&&!o.importScripts){var x=!0,P=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=P,x}})()?(f="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",S,!1):o.attachEvent("onmessage",S),function(x){o.postMessage(f+x,"*")}):o.MessageChannel?((c=new MessageChannel).port1.onmessage=function(x){v(x.data)},function(x){c.port2.postMessage(x)}):O&&"onreadystatechange"in O.createElement("script")?(u=O.documentElement,function(x){var P=O.createElement("script");P.onreadystatechange=function(){v(x),P.onreadystatechange=null,u.removeChild(P),P=null},u.appendChild(P)}):function(x){setTimeout(v,0,x)},y.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var P=new Array(arguments.length-1),E=0;E<P.length;E++)P[E]=arguments[E+1];var D={callback:x,args:P};return p[d]=D,l(d),d++},y.clearImmediate=b}function b(x){delete p[x]}function v(x){if(g)setTimeout(v,0,x);else{var P=p[x];if(P){g=!0;try{(function(E){var D=E.callback,R=E.args;switch(R.length){case 0:D();break;case 1:D(R[0]);break;case 2:D(R[0],R[1]);break;case 3:D(R[0],R[1],R[2]);break;default:D.apply(a,R)}})(P)}finally{b(x),g=!1}}}}function S(x){x.source===o&&typeof x.data=="string"&&x.data.indexOf(f)===0&&v(+x.data.slice(f.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(db)),db.exports}var the=ehe();const nhe=du(the),rhe=(t,e,n,r,i)=>({handleCopyForAI:async()=>{if(!t||Object.keys(t).length===0){n("No files to copy"),setTimeout(()=>n("Copy for AI"),2e3);return}try{const{files:l,imageFiles:u}=b5.prepareFilesForPrompt(t);let f=Ufe(l);u.length>0&&(f+=`
|
|
352
352
|
|
|
353
353
|
<!-- Image files (not included): `+u.join(", ")+" -->"),await navigator.clipboard.writeText(f),n("Copied!"),setTimeout(()=>n("Copy for AI"),2e3)}catch(l){console.error("Failed to copy files for AI:",l),n("Error"),setTimeout(()=>n("Copy for AI"),2e3)}},handlePasteForAI:async()=>{if(e)try{const u=(await navigator.clipboard.readText()).replace(/\r\n?/g,`
|
|
354
|
-
`);if(!u.trim()){r("Empty clipboard"),setTimeout(()=>r("Paste for AI"),2e3);return}const c=qfe(u,"bold");if(c.files&&Object.keys(c.files).length>0){const f=b5.mergeFileChanges(t||{},c.files);e(d=>({...d,files:f,runId:u4()})),r("Pasted!"),setTimeout(()=>r("Paste for AI"),2e3)}else r("No files found"),setTimeout(()=>r("Paste for AI"),2e3)}catch(l){console.error("Failed to paste files from AI:",l),r("Error"),setTimeout(()=>r("Paste for AI"),2e3)}},handleExportToZip:async()=>{if(!t||Object.keys(t).length===0){i("No files to export"),setTimeout(()=>i("Export to ZIP"),2e3);return}try{const l=new nhe;Object.entries(t).forEach(([d,p])=>{const g=p.name||d,O=p.text||"";l.file(g,O)});const u=await l.generateAsync({type:"blob"}),c=URL.createObjectURL(u),f=document.createElement("a");f.href=c,f.download="viz-files.zip",f.click(),URL.revokeObjectURL(c),i("Exported!"),setTimeout(()=>i("Export to ZIP"),2e3)}catch(l){console.error("Failed to export files to ZIP:",l),i("Error"),setTimeout(()=>i("Export to ZIP"),2e3)}}});function ihe(t,e){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{source:"vzcode-sidebar"}}))}function she({aiChatButtonEvent:t,target:e,openAIChat:n}){if(t){ihe(t,e);return}n()}const ohe=({children:t})=>j.jsx("div",{className:"empty-state",children:t});function qd(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Hg(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function bu(){}var dd=.7,Jm=1/dd,Cc="\\s*([+-]?\\d+)\\s*",pd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Co="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ahe=/^#([0-9a-f]{3,8})$/,lhe=new RegExp(`^rgb\\(${Cc},${Cc},${Cc}\\)$`),uhe=new RegExp(`^rgb\\(${Co},${Co},${Co}\\)$`),che=new RegExp(`^rgba\\(${Cc},${Cc},${Cc},${pd}\\)$`),fhe=new RegExp(`^rgba\\(${Co},${Co},${Co},${pd}\\)$`),hhe=new RegExp(`^hsl\\(${pd},${Co},${Co}\\)$`),dhe=new RegExp(`^hsla\\(${pd},${Co},${Co},${pd}\\)$`),S5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qd(bu,zd,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:x5,formatHex:x5,formatHex8:phe,formatHsl:mhe,formatRgb:k5,toString:k5});function x5(){return this.rgb().formatHex()}function phe(){return this.rgb().formatHex8()}function mhe(){return YL(this).formatHsl()}function k5(){return this.rgb().formatRgb()}function zd(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ahe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?P5(e):n===3?new ci(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?A1(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?A1(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=lhe.exec(t))?new ci(e[1],e[2],e[3],1):(e=uhe.exec(t))?new ci(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=che.exec(t))?A1(e[1],e[2],e[3],e[4]):(e=fhe.exec(t))?A1(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=hhe.exec(t))?C5(e[1],e[2]/100,e[3]/100,1):(e=dhe.exec(t))?C5(e[1],e[2]/100,e[3]/100,e[4]):S5.hasOwnProperty(t)?P5(S5[t]):t==="transparent"?new ci(NaN,NaN,NaN,0):null}function P5(t){return new ci(t>>16&255,t>>8&255,t&255,1)}function A1(t,e,n,r){return r<=0&&(t=e=n=NaN),new ci(t,e,n,r)}function HL(t){return t instanceof bu||(t=zd(t)),t?(t=t.rgb(),new ci(t.r,t.g,t.b,t.opacity)):new ci}function ghe(t,e,n,r){return arguments.length===1?HL(t):new ci(t,e,n,r??1)}function ci(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}qd(ci,ghe,Hg(bu,{brighter(t){return t=t==null?Jm:Math.pow(Jm,t),new ci(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?dd:Math.pow(dd,t),new ci(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ci(ou(this.r),ou(this.g),ou(this.b),eg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_5,formatHex:_5,formatHex8:Ohe,formatRgb:E5,toString:E5}));function _5(){return`#${nu(this.r)}${nu(this.g)}${nu(this.b)}`}function Ohe(){return`#${nu(this.r)}${nu(this.g)}${nu(this.b)}${nu((isNaN(this.opacity)?1:this.opacity)*255)}`}function E5(){const t=eg(this.opacity);return`${t===1?"rgb(":"rgba("}${ou(this.r)}, ${ou(this.g)}, ${ou(this.b)}${t===1?")":`, ${t})`}`}function eg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ou(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nu(t){return t=ou(t),(t<16?"0":"")+t.toString(16)}function C5(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Bs(t,e,n,r)}function YL(t){if(t instanceof Bs)return new Bs(t.h,t.s,t.l,t.opacity);if(t instanceof bu||(t=zd(t)),!t)return new Bs;if(t instanceof Bs)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,l=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=l<.5?s+i:2-s-i,o*=60):a=l>0&&l<1?0:o,new Bs(o,a,l,t.opacity)}function yhe(t,e,n,r){return arguments.length===1?YL(t):new Bs(t,e,n,r??1)}function Bs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}qd(Bs,yhe,Hg(bu,{brighter(t){return t=t==null?Jm:Math.pow(Jm,t),new Bs(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?dd:Math.pow(dd,t),new Bs(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ci(pb(t>=240?t-240:t+120,i,r),pb(t,i,r),pb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Bs(R5(this.h),$1(this.s),$1(this.l),eg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=eg(this.opacity);return`${t===1?"hsl(":"hsla("}${R5(this.h)}, ${$1(this.s)*100}%, ${$1(this.l)*100}%${t===1?")":`, ${t})`}`}}));function R5(t){return t=(t||0)%360,t<0?t+360:t}function $1(t){return Math.max(0,Math.min(1,t||0))}function pb(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const vhe=Math.PI/180,bhe=180/Math.PI,tg=18,GL=.96422,KL=1,JL=.82521,e6=4/29,Rc=6/29,t6=3*Rc*Rc,whe=Rc*Rc*Rc;function n6(t){if(t instanceof Ro)return new Ro(t.l,t.a,t.b,t.opacity);if(t instanceof Ko)return r6(t);t instanceof ci||(t=HL(t));var e=yb(t.r),n=yb(t.g),r=yb(t.b),i=mb((.2225045*e+.7168786*n+.0606169*r)/KL),s,o;return e===n&&n===r?s=o=i:(s=mb((.4360747*e+.3850649*n+.1430804*r)/GL),o=mb((.0139322*e+.0971045*n+.7141733*r)/JL)),new Ro(116*i-16,500*(s-i),200*(i-o),t.opacity)}function She(t,e,n,r){return arguments.length===1?n6(t):new Ro(t,e,n,r??1)}function Ro(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}qd(Ro,She,Hg(bu,{brighter(t){return new Ro(this.l+tg*(t??1),this.a,this.b,this.opacity)},darker(t){return new Ro(this.l-tg*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=GL*gb(e),t=KL*gb(t),n=JL*gb(n),new ci(Ob(3.1338561*e-1.6168667*t-.4906146*n),Ob(-.9787684*e+1.9161415*t+.033454*n),Ob(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function mb(t){return t>whe?Math.pow(t,1/3):t/t6+e6}function gb(t){return t>Rc?t*t*t:t6*(t-e6)}function Ob(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xhe(t){if(t instanceof Ko)return new Ko(t.h,t.c,t.l,t.opacity);if(t instanceof Ro||(t=n6(t)),t.a===0&&t.b===0)return new Ko(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*bhe;return new Ko(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Gc(t,e,n,r){return arguments.length===1?xhe(t):new Ko(t,e,n,r??1)}function Ko(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function r6(t){if(isNaN(t.h))return new Ro(t.l,0,0,t.opacity);var e=t.h*vhe;return new Ro(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}qd(Ko,Gc,Hg(bu,{brighter(t){return new Ko(this.h,this.c,this.l+tg*(t??1),this.opacity)},darker(t){return new Ko(this.h,this.c,this.l-tg*(t??1),this.opacity)},rgb(){return r6(this).rgb()}}));function vb(t){const e=zd(t),n=Gc(e||"black");return{h:Number.isFinite(n.h)?n.h:0,c:Number.isFinite(n.c)?n.c:0,l:Number.isFinite(n.l)?n.l:0}}function bb(t,e){return typeof t=="number"&&Number.isFinite(t)?t:e}function khe(t,e){const n=Gc(t.h,t.c,t.l);return n.displayable()?n.formatHex():e}const Phe="config.json",_he=(t,e,n)=>(t-e)/(n-e)*100,Ehe=(t,e,n)=>{const r=n-e,i=r<10?2:r<100?1:0;return Number(t).toFixed(i)},Che=(t,e,n)=>{try{return Gc(t,e,n).displayable()}catch{return!1}},wb=(t,e,n)=>{if(!t)return;const r=t.width,i=t.height,s=t.getContext("2d");if(!s)return;const o=s.createImageData(r,i);for(let a=0;a<r;a++){let l,u,c;if(e==="h")l=a*360/(r-1),u=Math.max(0,Math.min(n.c,100)),c=Math.max(0,Math.min(n.l,100));else if(e==="c"){const d=a*100/(r-1);l=Math.max(0,Math.min(n.h,360)),u=d,c=Math.max(0,Math.min(n.l,100))}else{const d=a*100/(r-1);l=Math.max(0,Math.min(n.h,360)),u=Math.max(0,Math.min(n.c,100)),c=d}let f;if(Che(l,u,c)){const p=Gc(l,u,c).rgb();f={r:p.r,g:p.g,b:p.b}}else f={r:128,g:128,b:128};for(let d=0;d<i;d++){const p=4*(d*r+a);o.data[p]=f.r,o.data[p+1]=f.g,o.data[p+2]=f.b,o.data[p+3]=255}}s.putImageData(o,0,0)},i6=t=>{if(typeof t!="string"||!t)return null;const e=t.split(".");return e.every(n=>n.length>0&&n!=="__proto__"&&n!=="constructor"&&n!=="prototype")?e:null},s2=(t,e)=>{const n=i6(e);if(!n)return{found:!1,value:void 0};let r=t;for(const i of n){if(r===null||typeof r!="object"||Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,i))return{found:!1,value:void 0};r=r[i]}return{found:!0,value:r}},ql=(t,e)=>{const{found:n,value:r}=s2(t,e);return n?r:void 0},Rhe=(t,e,n)=>{const r=i6(e);if(!r)throw new Error("Invalid or unsafe property path: "+e);const i={...t};let s=i;for(let a=0;a<r.length-1;a++){const l=r[a];s[l]==null||typeof s[l]!="object"||Array.isArray(s[l])?s[l]={}:s[l]={...s[l]},s=s[l]}const o=r[r.length-1];return s[o]=n,i},A5=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);function Ahe(t){if(t===null)return"missing-config";let e;try{e=JSON.parse(t)}catch{return"invalid-config"}if(!A5(e))return"invalid-config";if(!Object.prototype.hasOwnProperty.call(e,"visualEditorWidgets"))return"missing-widgets";const n=e.visualEditorWidgets;if(!Array.isArray(n))return"invalid-widgets";if(!n.length)return"empty-widgets";for(const r of n){if(!A5(r)||typeof r.property!="string"||!r.property||typeof r.label!="string"||!r.label.trim())return"invalid-widgets";const{found:i,value:s}=s2(e,r.property);if(!i)return"invalid-widgets";switch(r.type){case"slider":if(!Number.isFinite(s)||!Number.isFinite(r.min)||!Number.isFinite(r.max)||r.min>=r.max||r.step!==void 0&&(!Number.isFinite(r.step)||r.step<=0))return"invalid-widgets";break;case"checkbox":if(typeof s!="boolean")return"invalid-widgets";break;case"textInput":if(typeof s!="string")return"invalid-widgets";break;case"dropdown":if(typeof s!="string"||!Array.isArray(r.options)||r.options.length===0||!r.options.every(o=>typeof o=="string")||!r.options.includes(s))return"invalid-widgets";break;case"color":{if(typeof s!="string")return"invalid-widgets";const o=zd(s)?.rgb();if(!o||!Number.isFinite(o.r)||!Number.isFinite(o.g)||!Number.isFinite(o.b)||o.opacity!==1)return"invalid-widgets";break}default:return"invalid-widgets"}}return null}function $he(t,e,n,r){if(!e)return t;const i=t.files[e];if(!i)return t;let s;try{s=JSON.parse(i.text)}catch{return t}if(!s||typeof s!="object"||Array.isArray(s)||!s2(s,n).found)return t;let o;try{o=Rhe(s,n,r)}catch{return t}return{...t,files:{...t.files,[e]:{...i,text:JSON.stringify(o,null,2)}}}}const The=({property:t,label:e,min:n,max:r,step:i,currentValue:s,onChange:o})=>{const a=_he(s,n,r);return j.jsxs("div",{className:"visual-editor-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{htmlFor:t,className:"slider-label",children:e}),j.jsx("span",{className:"slider-value",children:Ehe(s,n,r)})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("input",{type:"range",id:t,className:"slider-input",min:n,max:r,step:i,value:s,onChange:o}),j.jsx("div",{className:"slider-track-fill",style:{width:`${a}%`}})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:n}),j.jsx("span",{className:"max-value",children:r})]})]})},Qhe=({property:t,label:e,currentValue:n,onChange:r})=>j.jsxs("div",{className:"visual-editor-checkbox",children:[j.jsxs("div",{className:"checkbox-header",children:[j.jsx("label",{htmlFor:t,className:"checkbox-label",children:e}),j.jsx("span",{className:"checkbox-value",children:n?"On":"Off"})]}),j.jsxs("div",{className:"checkbox-container",children:[j.jsx("input",{type:"checkbox",id:t,className:"checkbox-input",checked:n,onChange:r}),j.jsx("div",{className:"checkbox-visual",children:j.jsx("div",{className:`checkbox-indicator ${n?"checked":""}`})})]})]}),Mhe=({property:t,label:e,currentValue:n,onChange:r})=>j.jsxs("div",{className:"visual-editor-text-input",children:[j.jsx("div",{className:"text-input-header",children:j.jsx("label",{htmlFor:t,className:"text-input-label",children:e})}),j.jsx("div",{className:"text-input-container",children:j.jsx("input",{type:"text",id:t,className:"text-input-field",value:n||"",onChange:r})})]}),Ihe=({property:t,label:e,options:n,currentValue:r,isOpen:i,onToggle:s,onOptionClick:o})=>j.jsxs("div",{className:"visual-editor-dropdown",children:[j.jsx("div",{className:"dropdown-header",children:j.jsx("label",{htmlFor:t,className:"dropdown-label",children:e})}),j.jsxs("div",{className:"dropdown-container",children:[j.jsxs("button",{type:"button",className:`dropdown-button ${i?"open":""}`,onClick:s,"aria-expanded":i,"aria-haspopup":"listbox",children:[j.jsx("span",{className:"dropdown-button-text",children:r}),j.jsx("div",{className:`dropdown-arrow ${i?"open":""}`,children:j.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i&&j.jsx("div",{className:"dropdown-options",children:n.map(a=>j.jsx("button",{type:"button",className:`dropdown-option ${a===r?"selected":""}`,onClick:()=>o(a),children:a},a))})]})]}),Dhe=({property:t,label:e,currentHex:n,currentH:r,currentC:i,currentL:s,onColorChange:o})=>{const a=M.useRef({});return M.useEffect(()=>{const l={h:r,c:i,l:s};wb(a.current[`${t}_l_bg`],"l",l),wb(a.current[`${t}_c_bg`],"c",l),wb(a.current[`${t}_h_bg`],"h",l)},[t,r,i,s]),j.jsxs("div",{className:"visual-editor-color",children:[j.jsxs("div",{className:"color-header",children:[j.jsx("label",{className:"color-label",children:e}),j.jsx("span",{className:"color-value",children:n})]}),j.jsx("div",{className:"color-preview",style:{backgroundColor:n}}),j.jsxs("div",{className:"lch-sliders",children:[j.jsxs("div",{className:"lch-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{className:"slider-label",children:"Lightness"}),j.jsx("span",{className:"slider-value",children:Math.round(s)})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("canvas",{ref:l=>{a.current[`${t}_l_bg`]=l},className:"slider-bg-canvas",width:200}),j.jsx("input",{type:"range",className:"slider-input",min:0,max:100,step:1,value:s,onChange:o(t,"l")})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:"0"}),j.jsx("span",{className:"max-value",children:"100"})]})]}),j.jsxs("div",{className:"lch-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{className:"slider-label",children:"Chroma"}),j.jsx("span",{className:"slider-value",children:Math.round(i)})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("canvas",{ref:l=>{a.current[`${t}_c_bg`]=l},className:"slider-bg-canvas",width:200}),j.jsx("input",{type:"range",className:"slider-input",min:0,max:100,step:1,value:i,onChange:o(t,"c")})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:"0"}),j.jsx("span",{className:"max-value",children:"100"})]})]}),j.jsxs("div",{className:"lch-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{className:"slider-label",children:"Hue"}),j.jsxs("span",{className:"slider-value",children:[Math.round(r),"°"]})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("canvas",{ref:l=>{a.current[`${t}_h_bg`]=l},className:"slider-bg-canvas",width:200}),j.jsx("input",{type:"range",className:"slider-input",min:0,max:360,step:1,value:r,onChange:o(t,"h")})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:"0°"}),j.jsx("span",{className:"max-value",children:"360°"})]})]})]})]})},jhe=()=>{const{files:t,submitOperation:e,renderVisualEditorEmptyState:n}=M.useContext(pr),[r,i]=M.useState({}),[s,o]=M.useState(null);let a=null;if(t){for(const S in t)if(t[S].name===Phe){a=S;break}}const l=M.useMemo(()=>{if(!t||!a)return null;try{return JSON.parse(t[a].text)}catch(S){return console.error("Error parsing config.json:",S),null}},[a,t]),u=M.useCallback((S,x,P={})=>{i(E=>({...E,[S]:x,...P})),e(E=>$he(E,a,S,x))},[a,e]),c=M.useCallback(S=>x=>u(S,parseFloat(x.currentTarget.value)),[u]),f=M.useCallback(S=>x=>u(S,x.currentTarget.checked),[u]),d=M.useCallback(S=>x=>u(S,x.currentTarget.value),[u]),p=M.useCallback((S,x)=>u(S,x),[u]),g=M.useCallback(S=>{o(x=>x===S?null:S)},[]),O=M.useCallback((S,x)=>{p(S,x),o(null)},[p]);M.useEffect(()=>{const S=x=>{s&&(x.target.closest(".visual-editor-dropdown")||o(null))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[s]);const y=M.useCallback((S,x)=>P=>{const E=parseFloat(P.currentTarget.value),D=ql(l,S)??"#000000",R=vb(D),_={h:r[`${S}_h`]??R.h,c:r[`${S}_c`]??R.c,l:r[`${S}_l`]??R.l};_[x]=E;const C=khe(_,D);u(S,C,{[`${S}_h`]:_.h,[`${S}_c`]:_.c,[`${S}_l`]:_.l})},[l,u,r]),b=M.useMemo(()=>Array.isArray(l?.visualEditorWidgets)?l.visualEditorWidgets:[],[l]);M.useEffect(()=>{const S={};b.forEach(x=>{const P=ql(l,x.property);if(P!==void 0&&(S[x.property]=P),x.type==="color"&&typeof P=="string"){const E=vb(P);S[`${x.property}_h`]=E.h,S[`${x.property}_c`]=E.c,S[`${x.property}_l`]=E.l}}),i(S)},[l,b]);const v=Ahe(a===null?null:t?.[a]?.text??null);if(v){const S=n?.(v);if(S!=null)return j.jsx(j.Fragment,{children:S});const x={"missing-config":"To begin using the visual editor, create a config.json.","invalid-config":"Your config.json file is not valid JSON.","missing-widgets":"Add a visualEditorWidgets array to config.json.","invalid-widgets":"Your visualEditorWidgets configuration is invalid.","empty-widgets":"Add at least one widget to visualEditorWidgets."};return j.jsx(ohe,{children:x[v]})}return j.jsx("div",{className:"visual-editor",children:b.map((S,x)=>{if(S.type==="slider"){const P=r[S.property]??ql(l,S.property)??S.min;return j.jsx(The,{property:S.property,label:S.label,min:S.min,max:S.max,step:S.step,currentValue:P,onChange:c(S.property)},S.property)}else if(S.type==="checkbox"){const P=r[S.property]??ql(l,S.property)??!1;return j.jsx(Qhe,{property:S.property,label:S.label,currentValue:P,onChange:f(S.property)},S.property)}else if(S.type==="textInput"){const P=r[S.property]??ql(l,S.property)??"";return j.jsx(Mhe,{property:S.property,label:S.label,currentValue:P,onChange:d(S.property)},S.property)}else if(S.type==="dropdown"){const P=r[S.property]??ql(l,S.property)??S.options?.[0]??"",E=s===S.property;return j.jsx(Ihe,{property:S.property,label:S.label,options:S.options,currentValue:P,isOpen:E,onToggle:()=>g(S.property),onOptionClick:D=>O(S.property,D)},S.property)}else if(S.type==="color"){const P=r[S.property]??ql(l,S.property)??"#000000",E=vb(P),D=bb(r[`${S.property}_h`],E.h),R=bb(r[`${S.property}_c`],E.c),_=bb(r[`${S.property}_l`],E.l);return j.jsx(Dhe,{property:S.property,label:S.label,currentHex:P,currentH:D,currentC:R,currentL:_,onColorChange:y},S.property)}})})},Nhe=({enableAIChat:t=KG,aiChatButtonEvent:e,createFileTooltipText:n=j.jsxs(j.Fragment,{children:[j.jsx("strong",{children:"New file"}),j.jsx("div",{children:"(Alt + N or Ctrl + Shift + N)"})]}),createDirTooltipText:r=j.jsxs("div",{children:[j.jsx("strong",{children:"New Directory"}),j.jsx("div",{children:"(Ctrl + Shift + D)"})]}),openSettingsTooltipText:i=j.jsxs("div",{children:[j.jsx("strong",{children:"Open Settings"}),j.jsx("div",{children:"(Ctrl + Shift + S or Ctrl + ,)"})]}),openKeyboardShortcuts:s=j.jsxs("div",{children:[j.jsx("strong",{children:"Keyboard Shortcuts"}),j.jsx("div",{children:"(Ctrl + Shift + K)"})]}),reportBugTooltipText:o=j.jsx("div",{children:j.jsx("strong",{children:"Report Bug"})}),searchToolTipText:a=j.jsxs("div",{children:[j.jsx("strong",{children:"Search"}),j.jsx("div",{children:"(Ctrl + Shift + F)"})]}),filesToolTipText:l=j.jsxs("div",{children:[j.jsx("strong",{children:"Files"}),j.jsx("div",{children:"(Ctrl + Shift + E)"})]}),enableAutoFollowTooltipText:u=j.jsxs("div",{children:[j.jsx("strong",{children:"Enable Auto Follow"}),j.jsx("div",{children:"(Ctrl + Shift + A)"})]}),disableAutoFollowTooltipText:c=j.jsxs("div",{children:[j.jsx("strong",{children:"Disable Auto Follow"}),j.jsx("div",{children:"(Ctrl + Shift + A)"})]}),voiceChatToolTipText:f=j.jsx("div",{children:j.jsx("strong",{children:"Open Voice Chat Menu"})}),aiChatToolTipText:d=j.jsx("div",{children:j.jsx("strong",{children:"Edit with AI"})}),visualEditorToolTipText:p=j.jsx("div",{children:j.jsx("strong",{children:"Visual Editor"})})})=>{const{files:g,openTab:O,setIsSettingsOpen:y,setIsDocOpen:b,isSearchOpen:v,setIsSearchOpen:S,isVisualEditorOpen:x,setIsVisualEditorOpen:P,isAIChatOpen:E,setIsAIChatOpen:D,handleOpenCreateFileModal:R,handleOpenCreateDirModal:_,connected:C,pending:I,sidebarRef:T,enableAutoFollow:B,toggleAutoFollow:A,docPresence:X,updatePresenceIndicator:G,setVoiceChatModalOpen:W,submitOperation:te,deleteAllFiles:J}=M.useContext(pr),U=M.useMemo(()=>g?TN(Cre(g)):null,[g]),z=M.useCallback(()=>{b(!0)},[b]),Y=M.useCallback(()=>{y(!0)},[y]),[L,se]=M.useState("Copy for AI"),[ee,ue]=M.useState("Paste for AI"),[Z,V]=M.useState("Export to ZIP"),[H,he]=M.useState(!1),{handleCopyForAI:ve,handlePasteForAI:Ae,handleExportToZip:Re}=M.useMemo(()=>rhe(g,te,se,ue,V),[g,te]),F=M.useCallback(()=>{he(!0)},[]),me=M.useCallback(()=>{he(!1)},[]),Oe=M.useCallback(()=>{he(!1),J()},[J]),{sidebarWidth:ie,setSidebarView:re}=M.useContext(rg),pe=M.useCallback(Ve=>{O({fileId:Ve,isTransient:!0})},[O]),Me=M.useCallback(Ve=>{O({fileId:Ve,isTransient:!1})},[O]),je=U&&U.children&&U.children.length>0,{isDragOver:_e,handleDragEnter:q,handleDragOver:ye,handleDragLeave:xe,handleDrop:ce}=Bfe();M.useEffect(()=>{},[X]),M.useEffect(()=>{if(X){const Ve=(qe,Ke)=>{if(!Ke)return;const it={username:Ke.username,fileId:Ke.start[1]};G(it)};return X.on("receive",Ve),()=>{X.off("receive",Ve)}}},[X,G]);const[Se,Ee]=M.useState(!1),[Ue,Ge]=M.useState(!0),Ne=M.useRef(I);return M.useEffect(()=>{Ue&&C&&Ge(!1)},[C,Ue]),M.useEffect(()=>{if(Ne.current&&!I&&C&&!Ue){Ee(!0);const Ve=setTimeout(()=>{Ee(!1)},1500);return()=>clearTimeout(Ve)}Ne.current=I},[I,C,Ue]),M.useEffect(()=>{re(E)},[E,re]),j.jsxs("div",{className:"vz-sidebar",style:{width:ie+"px"},children:[j.jsxs("div",{className:"full-box",ref:T,tabIndex:-1,children:[j.jsxs("div",{className:"sidebar-section-buttons",children:[t&&j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"ai-chat-tooltip",children:d}),children:j.jsx("i",{id:"ai-chat-icon",className:"vz-icon-button",onClick:()=>she({aiChatButtonEvent:e,target:window,openAIChat:()=>{D(!0),S(!1),re(!0)}}),children:j.jsx(Bx,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"files-tooltip",children:l}),children:j.jsx("i",{id:"files-icon",className:"vz-icon-button",onClick:()=>{S(!1),D(!1),P(!1),re(!1)},children:j.jsx(jre,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"search-tooltip",children:a}),children:j.jsx("i",{id:"search-icon",className:"vz-icon-button",onClick:()=>{S(!0),D(!1),P(!1),re(!1)},children:j.jsx(Nre,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"visual-editor-tooltip",children:p}),children:j.jsx("i",{id:"visual-editor-icon",className:"vz-icon-button",onClick:()=>{P(!0),D(!1),S(!1),re(!1)},children:j.jsx(Wre,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"open-keyboard-shortcuts",children:s}),children:j.jsx("i",{id:"shortcut-icon",className:"vz-icon-button",onClick:z,children:j.jsx(Ire,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"report-bug-tooltip",children:o}),children:j.jsx("a",{href:"https://github.com/vizhub-core/vzcode/issues/new",target:"_blank",rel:"noopener noreferrer",children:j.jsx("i",{id:"bug-icon",className:"vz-icon-button",children:j.jsx(Qre,{})})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"open-settings-tooltip",children:i}),children:j.jsx("i",{id:"settings-icon",className:"vz-icon-button",onClick:Y,children:j.jsx($re,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"create-file-tooltip",children:n}),children:j.jsx("i",{id:"new-file-icon",className:"vz-icon-button",onClick:R,children:j.jsx(Are,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"create-dir-tooltip",children:r}),children:j.jsx("i",{id:"new-directory-icon",className:"vz-icon-button",onClick:_,children:j.jsx(AN,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"toggle-auto-follow",children:B?c:u}),children:j.jsxs("i",{id:"auto-focus-icon",className:`vz-icon-button${B?" vz-color-success-01":""}`,onClick:A,children:[j.jsx("i",{}),j.jsx(Dre,{})]})}),s4]}),j.jsx("div",{className:"files",id:"sidebar-view-container",onDragEnter:q,onDragOver:ye,onDragLeave:xe,onDrop:ce,children:E?j.jsx("div",{className:"sidebar-ai-chat",children:j.jsx(Mfe,{})}):v?j.jsx("div",{className:"sidebar-search",children:j.jsx(Lfe,{})}):x?j.jsx("div",{className:"sidebar-visual-editor",children:j.jsx(jhe,{})}):j.jsx("div",{className:"sidebar-files",children:_e?j.jsxs("div",{className:"empty drag-over",children:[j.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),j.jsx("div",{className:"empty-text",children:"Drop files here!"})]}):je?U.children.map(Ve=>{const{fileId:qe}=Ve,{path:Ke}=Ve,it=qe||Ke;return j.jsx(XL,{entity:Ve,handleFileClick:pe,handleFileDoubleClick:Me},it)}):j.jsxs("div",{className:"empty",children:[j.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),j.jsx("div",{className:"empty-text",children:"Drop files here!"})]})})})]}),!E&&!v&&j.jsxs("div",{className:"ai-buttons",children:[je&&j.jsxs("button",{className:"ai-button export-button",onClick:Re,title:"Export files to ZIP",children:[j.jsx(Pre,{size:14,"aria-hidden":"true"}),Z]}),je&&j.jsxs("button",{className:"ai-button copy-button",onClick:ve,title:"Copy files formatted for AI",children:[j.jsx(xre,{size:14,"aria-hidden":"true"}),L]}),j.jsxs("button",{className:"ai-button paste-button",onClick:Ae,title:"Paste files from AI",children:[j.jsx(wre,{size:14,"aria-hidden":"true"}),ee]}),je&&j.jsxs("button",{className:"ai-button delete-all-button",onClick:F,title:"Delete all files",children:[j.jsx(Ere,{size:14,"aria-hidden":"true"}),"delete all"]})]}),j.jsxs("div",{className:"connection-status",children:[Ue?"Connecting...":C?I?"Saving...":Se?"Saved.":"Connected":"Connection Lost",j.jsx("div",{className:"connection",children:j.jsx("div",{className:`connection-status-indicator ${Ue?"pending":C?I?"pending":"connected":"disconnected"}`})})]}),H&&j.jsx(VL,{show:H,onClose:me,onConfirm:Oe,isDirectory:!1,name:"all files"})]})},Lhe=({initialFileName:t=""})=>{const[e,n]=M.useState(t),r=M.useRef(null),{files:i,isCreateDirModalOpen:s,handleCloseCreateDirModal:o,handleCreateDirClick:a}=M.useContext(pr);M.useEffect(()=>{s&&r.current&&r.current.focus()},[s]);const l=M.useCallback(d=>{n(d.target.value)},[]),u=M.useCallback(()=>{a(e),n("")},[e,a]),c=M.useCallback(d=>{let p;p=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const O in i)d+"/"===i[O].name&&(p=!1);return p},[i]),f=M.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return s?j.jsxs(ar,{show:s,onHide:o,animation:!1,onKeyDown:f,children:[j.jsx(ar.Header,{closeButton:!0,children:j.jsx(ar.Title,{children:"Create Directory"})}),j.jsx(ar.Body,{children:j.jsxs(dr.Group,{controlId:"fileName",children:[j.jsx(dr.Label,{children:"Directory Name"}),j.jsx(dr.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),j.jsx(dr.Text,{children:"Enter the name for your file"})]})}),j.jsx(ar.Footer,{children:j.jsx(fu,{variant:"primary",onClick:u,disabled:!c(e),children:"Create Directory"})})]}):null},Fhe=({initialFileName:t=""})=>{const[e,n]=M.useState(t),r=M.useRef(null),{files:i,isCreateFileModalOpen:s,handleCloseCreateFileModal:o,handleCreateFileClick:a}=M.useContext(pr);M.useEffect(()=>{s&&r.current&&r.current.focus()},[s]);const l=M.useCallback(d=>{n(d.target.value)},[]),u=M.useCallback(()=>{a(e),n("")},[e,a]),c=M.useCallback(d=>{let p;p=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const O in i)d===i[O].name&&(p=!1);return p},[i]),f=M.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return s?j.jsxs(ar,{show:s,onHide:o,animation:!1,onKeyDown:f,children:[j.jsx(ar.Header,{closeButton:!0,children:j.jsx(ar.Title,{children:"Create File"})}),j.jsx(ar.Body,{children:j.jsxs(dr.Group,{controlId:"fileName",children:[j.jsx(dr.Label,{children:"File Name"}),j.jsx(dr.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),j.jsx(dr.Text,{children:"Enter the name for your file"})]})}),j.jsx(ar.Footer,{children:j.jsx(fu,{variant:"primary",onClick:u,disabled:!c(e),children:"Create File"})})]}):null},Bhe=({enableUsernameField:t=!0,enableAIChat:e,aiChatButtonEvent:n}={})=>j.jsxs("div",{className:"left",children:[j.jsx(Nhe,{enableAIChat:e,aiChatButtonEvent:n}),j.jsx(pre,{enableUsernameField:t}),j.jsx(cre,{enableUsernameField:t}),j.jsx(Fhe,{}),j.jsx(Lhe,{}),s4]}),qhe=t=>{const e=t.split("/");return e.length===1?e[e.length-1]:e[e.length-2]+"/"+e[e.length-1]},zhe=({fileId:t,isTransient:e,isActive:n,setActiveFileId:r,openTab:i,closeTabs:s,fileName:o})=>{const a=M.useCallback(f=>{f.stopPropagation(),s([t])},[s,t]),l=M.useMemo(()=>qhe(o),[o]),u=M.useCallback(()=>{r(t)},[t,r]),c=M.useCallback(()=>{i({fileId:t})},[t,i]);return j.jsxs("div",{className:`tab ${n?"active":""} ${e?"transient":""}`,onClick:u,onDoubleClick:c,children:[l,j.jsx("i",{className:"vz-icon-button",onClick:a,children:j.jsx(Vm,{})})]})},Uhe=({activeFileId:t,tabList:e})=>{const{files:n,setActiveFileId:r,openTab:i,closeTabs:s}=M.useContext(pr);return j.jsx("div",{className:"vz-tab-list",children:n&&e.filter(o=>o.fileId in n).map(o=>j.jsx(zhe,{fileId:o.fileId,isTransient:o.isTransient,isActive:o.fileId===t,setActiveFileId:r,openTab:i,closeTabs:s,fileName:n[o.fileId].name},o.fileId))})},Zhe=["files"],Vhe=({customInteractRules:t,aiCopilotEndpoint:e,esLintSource:n,enableBuiltInAIChat:r=!0})=>{const{activePane:i,shareDBDoc:s,submitOperation:o,localPresence:a,docPresence:l,username:u,editorCache:c,editorWantsFocus:f,editorNoLongerWantsFocus:d,theme:p,codeEditorRef:g,enableAutoFollow:O,setIsAIChatOpen:y,setAIChatMessage:b}=M.useContext(pr),v=M.useRef(null),S=M.useCallback(()=>{v.current?clearTimeout(v.current):o(R=>({...R,isInteracting:!0})),v.current=setTimeout(()=>{v.current=null,o(({isInteracting:R,..._})=>({..._}))},800)},[o]),x=M.useRef(u);x.current=u;const P=M.useRef(O);M.useEffect(()=>{P.current=O},[O]);const[E,D]=M.useState(null);return M.useEffect(()=>{if(!s)return;let R=!0;return(async()=>{const C=await sK({fileId:i.activeFileId,shareDBDoc:s,filesPath:Zhe,localPresence:a,docPresence:l,theme:p,onInteract:S,editorCache:c,usernameRef:x,customInteractRules:t,enableAutoFollowRef:P,aiCopilotEndpoint:e,esLintSource:n,setIsAIChatOpen:y,setAIChatMessage:b,enableBuiltInAIChat:r});R&&D(C)})(),()=>{R=!1}},[i,s,a,l,p,S,c,t,e,n,y,b,r]),M.useLayoutEffect(()=>{if(!g.current||!E)return;const R=g.current;return R.appendChild(E.editor.dom),E.editor.scrollDOM.scrollTo({top:E.scrollPosition??0}),()=>{E&&R?.contains(E.editor.dom)&&(E.scrollPosition=E.editor.scrollDOM.scrollTop,R.removeChild(E.editor.dom))}},[g,E]),M.useEffect(()=>{f&&E&&(E.editor.focus(),d())},[f,E,d]),j.jsx("div",{className:"vz-code-editor",ref:g,tabIndex:-1})},Whe=()=>{const{activePane:t,content:e}=M.useContext(pr),n=t?.activeFileId,r=n&&e?.files?.[n];if(!r)return j.jsx("div",{className:"image-viewer-error",children:"No file selected"});if(!r.name.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i))return j.jsx("div",{className:"image-viewer-error",children:"Not an image file"});const o=(u=>{switch(u.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";case"bmp":return"image/bmp";case"svg":return"image/svg+xml";case"webp":return"image/webp";default:return"image/png"}})(r.name),l=r.name.split(".").pop()?.toLowerCase()==="svg"&&!r.text.startsWith("PHN2Zw")?`data:${o};utf8,${encodeURIComponent(r.text)}`:`data:${o};base64,${r.text}`;return j.jsx("div",{className:"image-viewer",children:j.jsx("div",{className:"image-viewer-content",children:j.jsx("img",{src:l,alt:r.name,className:"image-viewer-img",onError:u=>{console.error("Failed to load image:",r.name),u.target.style.display="none"}})})})},Xhe=({errorMessage:t,content:e})=>{const[n,r]=M.useState(!0);M.useEffect(()=>{t!==null&&r(!0)},[t]);const i=M.useCallback(()=>{r(!1)},[]);return M.useEffect(()=>{const s=o=>{o.key==="Escape"&&i()};return document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("keydown",s,!0)}},[i]),n&&t!==null?j.jsxs("div",{className:"vz-code-error-overlay",children:[j.jsx("pre",{children:t}),j.jsx("i",{className:"vz-icon-button error-dismiss-button",onClick:i,children:j.jsx(Vm,{})})]}):null},$5=t=>{const[e]=t.split("-");return parseInt(e,36)},Hhe=(t,e)=>{const n=$5(t),r=$5(e);return n>r},Yhe=(t,e,n,r)=>{n.current.has(t)?n.current.set(t,e):(n.current.set(t,e),r(i=>[...i,{user:e,join:!0,presenceId:t}]))},Ghe=(t,e,n)=>{const r=e.current.get(t);r&&(e.current.delete(t),n(i=>[...i,{user:r,join:!1,presenceId:t}]))},Khe=({docPresence:t,localPresence:e})=>{const[n,r]=M.useState([]),i=M.useRef(new Map);return M.useEffect(()=>{if(t){const s=(o,a)=>{const l=a!==null;if(Hhe(o,e.presenceId)){if(l){const c=t.remotePresences[o]?.username;Yhe(o,c,i,r)}else Ghe(o,i,r);const u=setTimeout(()=>{r(c=>c.slice(1))},5e3);return()=>{clearTimeout(u)}}};return t.on("receive",s),()=>{t.off("receive",s)}}},[t,e]),n.length>0?j.jsx("div",{className:"vz-notification",children:n.map(({user:s,join:o,presenceId:a})=>j.jsx("div",{className:"vz-notification-item",children:o?`${s} has joined the session.`:`${s} has left the session.`},a))}):null},Jhe=()=>(Math.random()+"").slice(2),ede=100,tde=2e3,nde=(t,e=!0)=>{const n=t.name?.substring(0,ede).trim(),r=(e?t.text?.substring(0,tde):t.text).trim();return["`"+n+"`:","```",r,"```"].join(`
|
|
355
|
-
`)},rde="/ai-assist",ide=async({view:t,shareDBDoc:e,fileId:n,tabList:r,aiAssistEndpoint:i=rde,aiAssistOptions:s={},aiStreamId:o})=>{const a=e.data.files[n].name,l=t.state.sliceDoc(0,t.state.selection.main.from),u=t.state.sliceDoc(t.state.selection.main.to),c=l+"<FILL_ME>"+u,f={name:a,text:c},d=t.state.selection.main.to;let p=nde(f,!1);const O=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,inputText:p,fileId:n,insertionCursor:d,aiStreamId:o})})).json();O.error&&console.error("[startAIAssist] error from server:",O.error)},sde=[{x:40,y:0,r:4},{x:28.28,y:28.28,r:4.85},{x:0,y:40,r:5.71},{x:-28.29,y:28.28,r:6.57},{x:-40,y:0,r:7.42},{x:-28.29,y:-28.29,r:8.28},{x:-.01,y:-40,r:9.14},{x:28.28,y:-28.29,r:10}],ode=({height:t=40,fill:e="currentcolor",fadeIn:n=!0})=>{const[r,i]=M.useState(!1);return M.useEffect(()=>{i(!0)},[]),r&&j.jsx("div",{className:`vz-spinner${n?" fade-in":""}`,children:j.jsx("svg",{height:t,viewBox:"0 0 100 100",style:{opacity:1},children:j.jsx("g",{transform:"translate(50, 50)",fill:e,children:j.jsx("g",{className:"vz-spinner-dots",children:sde.map(({x:s,y:o,r:a},l)=>j.jsx("circle",{cx:s,cy:o,r:a},l))})})})})},ade=({aiAssistEndpoint:t,aiAssistOptions:e,aiAssistTooltipText:n="Start AI Assist",aiAssistClickOverride:r,activeFileId:i,tabList:s,paneId:o})=>{const{shareDBDoc:a,editorCache:l,runPrettierRef:u,runCodeRef:c}=M.useContext(pr),[f,d]=M.useState(null),p=M.useCallback(async()=>{if(!(f!==null)){const y=Jhe();d(y),await ide({view:l.get(Jh(i,o)).editor,shareDBDoc:a,fileId:i,tabList:s,aiStreamId:y,aiAssistEndpoint:t,aiAssistOptions:e}),await new Promise(S=>setTimeout(S,1e3));const b=u.current;b!==null&&b();const v=c.current;v!==null&&v(),d(S=>S===y?null:S)}},[i,o,f,t,e,l,c,u,a,s]),g=f===null;return j.jsx("div",{className:"vz-code-ai-assist-widget",children:f?j.jsx(ode,{}):g&&j.jsx(Ni,{placement:"left",overlay:j.jsx(ji,{id:"ai-assist-widget-tooltip",children:n}),children:j.jsx("i",{className:"vz-icon-button",onClick:r||p,children:j.jsx(Bx,{})})})})},lde=!1,ude=({runCodeWidgetTooltipText:t=j.jsxs(j.Fragment,{children:[j.jsx("strong",{children:"Run Code"}),j.jsx("div",{children:"(Shift + Enter or Ctrl + s)"})]})})=>{const{runCodeRef:e,runPrettierRef:n,splitCurrentPane:r}=M.useContext(pr),[i,s]=M.useState(!1),o=M.useCallback(a=>{s(!0);const l=n.current;l!==null&&l();const u=e.current;u!==null&&u(),setTimeout(()=>s(!1),1e3)},[e,n]);return M.useCallback(()=>{r()},[r]),M.useEffect(()=>{const a=l=>{(l.ctrlKey&&l.key==="s"||l.shiftKey&&l.key==="Enter")&&(l.preventDefault(),o())};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[o]),j.jsxs("div",{children:[j.jsx("div",{className:"vz-code-split-view-widget",children:lde}),j.jsx("div",{className:"vz-code-run-code-widget",children:j.jsx(Ni,{placement:"bottom",overlay:j.jsx(ji,{id:"run-code-widget-tooltip",children:t}),children:j.jsx("i",{className:`vz-icon-button ${i?"rotate-icon":""}`,onClick:o,children:j.jsx(Mre,{})})})})]})},cde=t=>t.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i)!==null,fde=({pane:t,content:e,customInteractRules:n,enableAIAssist:r,aiAssistEndpoint:i,aiAssistOptions:s,aiAssistTooltipText:o,aiAssistClickOverride:a,aiCopilotEndpoint:l,esLintSource:u,enableBuiltInAIChat:c})=>{const[f,d]=M.useState(!1);return M.useEffect(()=>{d(!0)},[]),j.jsxs(j.Fragment,{children:[j.jsx(Uhe,{activeFileId:t.activeFileId,tabList:t.tabList}),f&&e&&t.activeFileId&&(()=>{const p=e.files[t.activeFileId];return p&&cde(p.name)?j.jsx(Whe,{}):j.jsx(Vhe,{customInteractRules:n,aiCopilotEndpoint:l,esLintSource:u,enableBuiltInAIChat:c})})(),f&&r&&e&&t.activeFileId?j.jsx(ade,{aiAssistEndpoint:i,aiAssistOptions:s,aiAssistTooltipText:o,aiAssistClickOverride:a,paneId:t.id,activeFileId:t.activeFileId,tabList:t.tabList}):null,j.jsx(ude,{})]})},hde=({enableAIAssist:t=!1,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:s,customInteractRules:o,esLintSource:a,enableAIChat:l=!0,aiChatButtonEvent:u})=>{const c=l&&!u,{codeEditorWidth:f}=M.useContext(rg),{content:d,localPresence:p,docPresence:g,pane:O,activePane:y,errorMessage:b}=M.useContext(pr);if(y.type!=="leafPane")throw new Error("Expected leafPane");return y.activeFileId!==null?j.jsxs("div",{className:"middle",style:{width:f+"px"},children:[j.jsx(fde,{pane:O,content:d,customInteractRules:o,enableAIAssist:t,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:s,esLintSource:a,enableBuiltInAIChat:c}),j.jsx(Xhe,{errorMessage:b,content:d}),j.jsx(Khe,{docPresence:g,localPresence:p})]}):null},dde=20,pde=200,T5=4,Q5=({side:t,isSidebarVisible:e=!0})=>{const{sidebarWidth:n,codeEditorWidth:r,moveSplitPane:i,isDraggingRight:s,isDraggingLeft:o,setIsDragging:a}=M.useContext(rg),{activePane:l}=M.useContext(pr),u=t==="left"||l.activeFileId,c=M.useRef(0),f=M.useCallback(b=>{b.preventDefault(),c.current=b.clientX,a(!0,t),document.body.style.cursor="col-resize"},[a,t]),d=M.useCallback(b=>{b.preventDefault();const v=b.clientX-c.current;c.current=b.clientX,i(v,t)},[i,t]),p=M.useCallback(()=>{a(!1,t),document.body.style.cursor="default"},[a,t]),g=t==="left"&&o||t==="right"&&s;M.useEffect(()=>{if(g)return document.addEventListener("mousemove",d),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p)}},[g,d,p]);const O=g?pde:dde,y=(t==="left"?n:e?n+r:r)-O/2;return u?j.jsx("div",{className:"vz-resizer",onMouseDown:f,style:{left:y+O/2-1.5,width:O},children:j.jsx("div",{className:"vz-resizer-thumb",style:{left:T5/2-1.5,width:T5}})}):null};var tn;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const r=n+1;t[t._accessor=r]="_accessor";const i=r+1;t[t._as=i]="_as";const s=i+1;t[t._assert=s]="_assert";const o=s+1;t[t._asserts=o]="_asserts";const a=o+1;t[t._async=a]="_async";const l=a+1;t[t._await=l]="_await";const u=l+1;t[t._checks=u]="_checks";const c=u+1;t[t._constructor=c]="_constructor";const f=c+1;t[t._declare=f]="_declare";const d=f+1;t[t._enum=d]="_enum";const p=d+1;t[t._exports=p]="_exports";const g=p+1;t[t._from=g]="_from";const O=g+1;t[t._get=O]="_get";const y=O+1;t[t._global=y]="_global";const b=y+1;t[t._implements=b]="_implements";const v=b+1;t[t._infer=v]="_infer";const S=v+1;t[t._interface=S]="_interface";const x=S+1;t[t._is=x]="_is";const P=x+1;t[t._keyof=P]="_keyof";const E=P+1;t[t._mixins=E]="_mixins";const D=E+1;t[t._module=D]="_module";const R=D+1;t[t._namespace=R]="_namespace";const _=R+1;t[t._of=_]="_of";const C=_+1;t[t._opaque=C]="_opaque";const I=C+1;t[t._out=I]="_out";const T=I+1;t[t._override=T]="_override";const B=T+1;t[t._private=B]="_private";const A=B+1;t[t._protected=A]="_protected";const X=A+1;t[t._proto=X]="_proto";const G=X+1;t[t._public=G]="_public";const W=G+1;t[t._readonly=W]="_readonly";const te=W+1;t[t._require=te]="_require";const J=te+1;t[t._satisfies=J]="_satisfies";const U=J+1;t[t._set=U]="_set";const z=U+1;t[t._static=z]="_static";const Y=z+1;t[t._symbol=Y]="_symbol";const L=Y+1;t[t._type=L]="_type";const se=L+1;t[t._unique=se]="_unique";const ee=se+1;t[t._using=ee]="_using"})(tn||(tn={}));var on;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const r=32;t[t.IS_ASSIGN=r]="IS_ASSIGN";const i=64;t[t.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const s=128;t[t.IS_PREFIX=s]="IS_PREFIX";const o=256;t[t.IS_POSTFIX=o]="IS_POSTFIX";const a=512;t[t.IS_EXPRESSION_START=a]="IS_EXPRESSION_START";const l=512;t[t.num=l]="num";const u=1536;t[t.bigint=u]="bigint";const c=2560;t[t.decimal=c]="decimal";const f=3584;t[t.regexp=f]="regexp";const d=4608;t[t.string=d]="string";const p=5632;t[t.name=p]="name";const g=6144;t[t.eof=g]="eof";const O=7680;t[t.bracketL=O]="bracketL";const y=8192;t[t.bracketR=y]="bracketR";const b=9728;t[t.braceL=b]="braceL";const v=10752;t[t.braceBarL=v]="braceBarL";const S=11264;t[t.braceR=S]="braceR";const x=12288;t[t.braceBarR=x]="braceBarR";const P=13824;t[t.parenL=P]="parenL";const E=14336;t[t.parenR=E]="parenR";const D=15360;t[t.comma=D]="comma";const R=16384;t[t.semi=R]="semi";const _=17408;t[t.colon=_]="colon";const C=18432;t[t.doubleColon=C]="doubleColon";const I=19456;t[t.dot=I]="dot";const T=20480;t[t.question=T]="question";const B=21504;t[t.questionDot=B]="questionDot";const A=22528;t[t.arrow=A]="arrow";const X=23552;t[t.template=X]="template";const G=24576;t[t.ellipsis=G]="ellipsis";const W=25600;t[t.backQuote=W]="backQuote";const te=27136;t[t.dollarBraceL=te]="dollarBraceL";const J=27648;t[t.at=J]="at";const U=29184;t[t.hash=U]="hash";const z=29728;t[t.eq=z]="eq";const Y=30752;t[t.assign=Y]="assign";const L=32640;t[t.preIncDec=L]="preIncDec";const se=33664;t[t.postIncDec=se]="postIncDec";const ee=34432;t[t.bang=ee]="bang";const ue=35456;t[t.tilde=ue]="tilde";const Z=35841;t[t.pipeline=Z]="pipeline";const V=36866;t[t.nullishCoalescing=V]="nullishCoalescing";const H=37890;t[t.logicalOR=H]="logicalOR";const he=38915;t[t.logicalAND=he]="logicalAND";const ve=39940;t[t.bitwiseOR=ve]="bitwiseOR";const Ae=40965;t[t.bitwiseXOR=Ae]="bitwiseXOR";const Re=41990;t[t.bitwiseAND=Re]="bitwiseAND";const F=43015;t[t.equality=F]="equality";const me=44040;t[t.lessThan=me]="lessThan";const Oe=45064;t[t.greaterThan=Oe]="greaterThan";const ie=46088;t[t.relationalOrEqual=ie]="relationalOrEqual";const re=47113;t[t.bitShiftL=re]="bitShiftL";const pe=48137;t[t.bitShiftR=pe]="bitShiftR";const Me=49802;t[t.plus=Me]="plus";const je=50826;t[t.minus=je]="minus";const _e=51723;t[t.modulo=_e]="modulo";const q=52235;t[t.star=q]="star";const ye=53259;t[t.slash=ye]="slash";const xe=54348;t[t.exponent=xe]="exponent";const ce=55296;t[t.jsxName=ce]="jsxName";const Se=56320;t[t.jsxText=Se]="jsxText";const Ee=57344;t[t.jsxEmptyText=Ee]="jsxEmptyText";const Ue=58880;t[t.jsxTagStart=Ue]="jsxTagStart";const Ge=59392;t[t.jsxTagEnd=Ge]="jsxTagEnd";const Ne=60928;t[t.typeParameterStart=Ne]="typeParameterStart";const Ve=61440;t[t.nonNullAssertion=Ve]="nonNullAssertion";const qe=62480;t[t._break=qe]="_break";const Ke=63504;t[t._case=Ke]="_case";const it=64528;t[t._catch=it]="_catch";const at=65552;t[t._continue=at]="_continue";const kt=66576;t[t._debugger=kt]="_debugger";const We=67600;t[t._default=We]="_default";const St=68624;t[t._do=St]="_do";const Wt=69648;t[t._else=Wt]="_else";const jt=70672;t[t._finally=jt]="_finally";const At=71696;t[t._for=At]="_for";const Jt=73232;t[t._function=Jt]="_function";const kn=73744;t[t._if=kn]="_if";const gn=74768;t[t._return=gn]="_return";const ln=75792;t[t._switch=ln]="_switch";const jn=77456;t[t._throw=jn]="_throw";const un=77840;t[t._try=un]="_try";const Xn=78864;t[t._var=Xn]="_var";const Mn=79888;t[t._let=Mn]="_let";const Hn=80912;t[t._const=Hn]="_const";const An=81936;t[t._while=An]="_while";const le=82960;t[t._with=le]="_with";const fe=84496;t[t._new=fe]="_new";const ge=85520;t[t._this=ge]="_this";const Ce=86544;t[t._super=Ce]="_super";const Pe=87568;t[t._class=Pe]="_class";const Be=88080;t[t._extends=Be]="_extends";const Xe=89104;t[t._export=Xe]="_export";const He=90640;t[t._import=He]="_import";const Ze=91664;t[t._yield=Ze]="_yield";const lt=92688;t[t._null=lt]="_null";const ct=93712;t[t._true=ct]="_true";const pt=94736;t[t._false=pt]="_false";const gt=95256;t[t._in=gt]="_in";const ft=96280;t[t._instanceof=ft]="_instanceof";const dt=97936;t[t._typeof=dt]="_typeof";const st=98960;t[t._void=st]="_void";const bt=99984;t[t._delete=bt]="_delete";const Nt=100880;t[t._async=Nt]="_async";const Bt=101904;t[t._get=Bt]="_get";const On=102928;t[t._set=On]="_set";const zn=103952;t[t._declare=zn]="_declare";const Yn=104976;t[t._readonly=Yn]="_readonly";const tr=106e3;t[t._abstract=tr]="_abstract";const In=107024;t[t._static=In]="_static";const nr=107536;t[t._public=nr]="_public";const Pt=108560;t[t._private=Pt]="_private";const Zt=109584;t[t._protected=Zt]="_protected";const Pn=110608;t[t._override=Pn]="_override";const Yt=112144;t[t._as=Yt]="_as";const rr=113168;t[t._enum=rr]="_enum";const Vt=114192;t[t._type=Vt]="_type";const yn=115216;t[t._implements=yn]="_implements"})(on||(on={}));var au;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const r=9;t[t.tab=r]="tab";const i=13;t[t.carriageReturn=i]="carriageReturn";const s=14;t[t.shiftOut=s]="shiftOut";const o=32;t[t.space=o]="space";const a=33;t[t.exclamationMark=a]="exclamationMark";const l=34;t[t.quotationMark=l]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const c=36;t[t.dollarSign=c]="dollarSign";const f=37;t[t.percentSign=f]="percentSign";const d=38;t[t.ampersand=d]="ampersand";const p=39;t[t.apostrophe=p]="apostrophe";const g=40;t[t.leftParenthesis=g]="leftParenthesis";const O=41;t[t.rightParenthesis=O]="rightParenthesis";const y=42;t[t.asterisk=y]="asterisk";const b=43;t[t.plusSign=b]="plusSign";const v=44;t[t.comma=v]="comma";const S=45;t[t.dash=S]="dash";const x=46;t[t.dot=x]="dot";const P=47;t[t.slash=P]="slash";const E=48;t[t.digit0=E]="digit0";const D=49;t[t.digit1=D]="digit1";const R=50;t[t.digit2=R]="digit2";const _=51;t[t.digit3=_]="digit3";const C=52;t[t.digit4=C]="digit4";const I=53;t[t.digit5=I]="digit5";const T=54;t[t.digit6=T]="digit6";const B=55;t[t.digit7=B]="digit7";const A=56;t[t.digit8=A]="digit8";const X=57;t[t.digit9=X]="digit9";const G=58;t[t.colon=G]="colon";const W=59;t[t.semicolon=W]="semicolon";const te=60;t[t.lessThan=te]="lessThan";const J=61;t[t.equalsTo=J]="equalsTo";const U=62;t[t.greaterThan=U]="greaterThan";const z=63;t[t.questionMark=z]="questionMark";const Y=64;t[t.atSign=Y]="atSign";const L=65;t[t.uppercaseA=L]="uppercaseA";const se=66;t[t.uppercaseB=se]="uppercaseB";const ee=67;t[t.uppercaseC=ee]="uppercaseC";const ue=68;t[t.uppercaseD=ue]="uppercaseD";const Z=69;t[t.uppercaseE=Z]="uppercaseE";const V=70;t[t.uppercaseF=V]="uppercaseF";const H=71;t[t.uppercaseG=H]="uppercaseG";const he=72;t[t.uppercaseH=he]="uppercaseH";const ve=73;t[t.uppercaseI=ve]="uppercaseI";const Ae=74;t[t.uppercaseJ=Ae]="uppercaseJ";const Re=75;t[t.uppercaseK=Re]="uppercaseK";const F=76;t[t.uppercaseL=F]="uppercaseL";const me=77;t[t.uppercaseM=me]="uppercaseM";const Oe=78;t[t.uppercaseN=Oe]="uppercaseN";const ie=79;t[t.uppercaseO=ie]="uppercaseO";const re=80;t[t.uppercaseP=re]="uppercaseP";const pe=81;t[t.uppercaseQ=pe]="uppercaseQ";const Me=82;t[t.uppercaseR=Me]="uppercaseR";const je=83;t[t.uppercaseS=je]="uppercaseS";const _e=84;t[t.uppercaseT=_e]="uppercaseT";const q=85;t[t.uppercaseU=q]="uppercaseU";const ye=86;t[t.uppercaseV=ye]="uppercaseV";const xe=87;t[t.uppercaseW=xe]="uppercaseW";const ce=88;t[t.uppercaseX=ce]="uppercaseX";const Se=89;t[t.uppercaseY=Se]="uppercaseY";const Ee=90;t[t.uppercaseZ=Ee]="uppercaseZ";const Ue=91;t[t.leftSquareBracket=Ue]="leftSquareBracket";const Ge=92;t[t.backslash=Ge]="backslash";const Ne=93;t[t.rightSquareBracket=Ne]="rightSquareBracket";const Ve=94;t[t.caret=Ve]="caret";const qe=95;t[t.underscore=qe]="underscore";const Ke=96;t[t.graveAccent=Ke]="graveAccent";const it=97;t[t.lowercaseA=it]="lowercaseA";const at=98;t[t.lowercaseB=at]="lowercaseB";const kt=99;t[t.lowercaseC=kt]="lowercaseC";const We=100;t[t.lowercaseD=We]="lowercaseD";const St=101;t[t.lowercaseE=St]="lowercaseE";const Wt=102;t[t.lowercaseF=Wt]="lowercaseF";const jt=103;t[t.lowercaseG=jt]="lowercaseG";const At=104;t[t.lowercaseH=At]="lowercaseH";const Jt=105;t[t.lowercaseI=Jt]="lowercaseI";const kn=106;t[t.lowercaseJ=kn]="lowercaseJ";const gn=107;t[t.lowercaseK=gn]="lowercaseK";const ln=108;t[t.lowercaseL=ln]="lowercaseL";const jn=109;t[t.lowercaseM=jn]="lowercaseM";const un=110;t[t.lowercaseN=un]="lowercaseN";const Xn=111;t[t.lowercaseO=Xn]="lowercaseO";const Mn=112;t[t.lowercaseP=Mn]="lowercaseP";const Hn=113;t[t.lowercaseQ=Hn]="lowercaseQ";const An=114;t[t.lowercaseR=An]="lowercaseR";const le=115;t[t.lowercaseS=le]="lowercaseS";const fe=116;t[t.lowercaseT=fe]="lowercaseT";const ge=117;t[t.lowercaseU=ge]="lowercaseU";const Ce=118;t[t.lowercaseV=Ce]="lowercaseV";const Pe=119;t[t.lowercaseW=Pe]="lowercaseW";const Be=120;t[t.lowercaseX=Be]="lowercaseX";const Xe=121;t[t.lowercaseY=Xe]="lowercaseY";const He=122;t[t.lowercaseZ=He]="lowercaseZ";const Ze=123;t[t.leftCurlyBrace=Ze]="leftCurlyBrace";const lt=124;t[t.verticalBar=lt]="verticalBar";const ct=125;t[t.rightCurlyBrace=ct]="rightCurlyBrace";const pt=126;t[t.tilde=pt]="tilde";const gt=160;t[t.nonBreakingSpace=gt]="nonBreakingSpace";const ft=5760;t[t.oghamSpaceMark=ft]="oghamSpaceMark";const dt=8232;t[t.lineSeparator=dt]="lineSeparator";const st=8233;t[t.paragraphSeparator=st]="paragraphSeparator"})(au||(au={}));const s6=[9,11,12,au.space,au.nonBreakingSpace,au.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],mde=new Uint8Array(65536);for(const t of s6)mde[t]=1;function gde(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const cf=new Uint8Array(65536);for(let t=0;t<128;t++)cf[t]=gde(t)?1:0;for(let t=128;t<65536;t++)cf[t]=1;for(const t of s6)cf[t]=0;cf[8232]=0;cf[8233]=0;const Ode=cf.slice();for(let t=au.digit0;t<=au.digit9;t++)Ode[t]=0;new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-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-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(on._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var M5;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const r=n+1;t[t.TopLevelDeclaration=r]="TopLevelDeclaration";const i=r+1;t[t.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const s=i+1;t[t.BlockScopedDeclaration=s]="BlockScopedDeclaration";const o=s+1;t[t.ObjectShorthandTopLevelDeclaration=o]="ObjectShorthandTopLevelDeclaration";const a=o+1;t[t.ObjectShorthandFunctionScopedDeclaration=a]="ObjectShorthandFunctionScopedDeclaration";const l=a+1;t[t.ObjectShorthandBlockScopedDeclaration=l]="ObjectShorthandBlockScopedDeclaration";const u=l+1;t[t.ObjectShorthand=u]="ObjectShorthand";const c=u+1;t[t.ImportDeclaration=c]="ImportDeclaration";const f=c+1;t[t.ObjectKey=f]="ObjectKey";const d=f+1;t[t.ImportAccess=d]="ImportAccess"})(M5||(M5={}));var I5;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const r=n+1;t[t.StaticChildren=r]="StaticChildren";const i=r+1;t[t.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(I5||(I5={}));var D5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yde=new Uint8Array(64),vde=new Uint8Array(128);for(let t=0;t<D5.length;t++){const e=D5.charCodeAt(t);yde[t]=e,vde[e]=t}var em={exports:{}},bde=em.exports,j5;function wde(){return j5||(j5=1,(function(t,e){(function(n,r){t.exports=r()})(bde,(function(){const n=/^[\w+.-]+:\/\//,r=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(v){return n.test(v)}function o(v){return v.startsWith("//")}function a(v){return v.startsWith("/")}function l(v){return v.startsWith("file:")}function u(v){return/^[.?#]/.test(v)}function c(v){const S=r.exec(v);return d(S[1],S[2]||"",S[3],S[4]||"",S[5]||"/",S[6]||"",S[7]||"")}function f(v){const S=i.exec(v),x=S[2];return d("file:","",S[1]||"","",a(x)?x:"/"+x,S[3]||"",S[4]||"")}function d(v,S,x,P,E,D,R){return{scheme:v,user:S,host:x,port:P,path:E,query:D,hash:R,type:7}}function p(v){if(o(v)){const x=c("http:"+v);return x.scheme="",x.type=6,x}if(a(v)){const x=c("http://foo.com"+v);return x.scheme="",x.host="",x.type=5,x}if(l(v))return f(v);if(s(v))return c(v);const S=c("http://foo.com/"+v);return S.scheme="",S.host="",S.type=v?v.startsWith("?")?3:v.startsWith("#")?2:4:1,S}function g(v){if(v.endsWith("/.."))return v;const S=v.lastIndexOf("/");return v.slice(0,S+1)}function O(v,S){y(S,S.type),v.path==="/"?v.path=S.path:v.path=g(S.path)+v.path}function y(v,S){const x=S<=4,P=v.path.split("/");let E=1,D=0,R=!1;for(let C=1;C<P.length;C++){const I=P[C];if(!I){R=!0;continue}if(R=!1,I!=="."){if(I===".."){D?(R=!0,D--,E--):x&&(P[E++]=I);continue}P[E++]=I,D++}}let _="";for(let C=1;C<E;C++)_+="/"+P[C];(!_||R&&!_.endsWith("/.."))&&(_+="/"),v.path=_}function b(v,S){if(!v&&!S)return"";const x=p(v);let P=x.type;if(S&&P!==7){const D=p(S),R=D.type;switch(P){case 1:x.hash=D.hash;case 2:x.query=D.query;case 3:case 4:O(x,D);case 5:x.user=D.user,x.host=D.host,x.port=D.port;case 6:x.scheme=D.scheme}R>P&&(P=R)}y(x,P);const E=x.query+x.hash;switch(P){case 2:case 3:return E;case 4:{const D=x.path.slice(1);return D?u(S||v)&&!u(D)?"./"+D+E:D+E:E||"."}case 5:return x.path+E;default:return x.scheme+"//"+x.user+x.host+x.port+x.path+E}}return b}))})(em)),em.exports}wde();var dh={},ph={},Ns={},N5;function PS(){if(N5)return Ns;N5=1;var t=Ns&&Ns.__extends||(function(){var s=function(o,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var c in u)u.hasOwnProperty(c)&&(l[c]=u[c])},s(o,a)};return function(o,a){s(o,a);function l(){this.constructor=o}o.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}})();Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.DetailContext=Ns.NoopContext=Ns.VError=void 0;var e=(function(s){t(o,s);function o(a,l){var u=s.call(this,l)||this;return u.path=a,Object.setPrototypeOf(u,o.prototype),u}return o})(Error);Ns.VError=e;var n=(function(){function s(){}return s.prototype.fail=function(o,a,l){return!1},s.prototype.unionResolver=function(){return this},s.prototype.createContext=function(){return this},s.prototype.resolveUnion=function(o){},s})();Ns.NoopContext=n;var r=(function(){function s(){this._propNames=[""],this._messages=[null],this._score=0}return s.prototype.fail=function(o,a,l){return this._propNames.push(o),this._messages.push(a),this._score+=l,!1},s.prototype.unionResolver=function(){return new i},s.prototype.resolveUnion=function(o){for(var a,l,u=o,c=null,f=0,d=u.contexts;f<d.length;f++){var p=d[f];(!c||p._score>=c._score)&&(c=p)}c&&c._score>0&&((a=this._propNames).push.apply(a,c._propNames),(l=this._messages).push.apply(l,c._messages))},s.prototype.getError=function(o){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];o+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push(o+" "+c)}return new e(o,a.join("; "))},s.prototype.getErrorDetail=function(o){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];o+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push({path:o,message:c})}for(var f=null,l=a.length-1;l>=0;l--)f&&(a[l].nested=[f]),f=a[l];return f},s})();Ns.DetailContext=r;var i=(function(){function s(){this.contexts=[]}return s.prototype.createContext=function(){var o=new r;return this.contexts.push(o),o},s})();return Ns}var L5;function F5(){return L5||(L5=1,(function(t){var e=ph&&ph.__extends||(function(){var ee=function(ue,Z){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,H){V.__proto__=H}||function(V,H){for(var he in H)H.hasOwnProperty(he)&&(V[he]=H[he])},ee(ue,Z)};return function(ue,Z){ee(ue,Z);function V(){this.constructor=ue}ue.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}})();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=PS(),r=(function(){function ee(){}return ee})();t.TType=r;function i(ee){return typeof ee=="string"?o(ee):ee}function s(ee,ue){var Z=ee[ue];if(!Z)throw new Error("Unknown type "+ue);return Z}function o(ee){return new a(ee)}t.name=o;var a=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.name=Z,V._failMsg="is not a "+Z,V}return ue.prototype.getChecker=function(Z,V,H){var he=this,ve=s(Z,this.name),Ae=ve.getChecker(Z,V,H);return ve instanceof te||ve instanceof ue?Ae:function(Re,F){return Ae(Re,F)?!0:F.fail(null,he._failMsg,0)}},ue})(r);t.TName=a;function l(ee){return new u(ee)}t.lit=l;var u=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.value=Z,V.name=JSON.stringify(Z),V._failMsg="is not "+V.name,V}return ue.prototype.getChecker=function(Z,V){var H=this;return function(he,ve){return he===H.value?!0:ve.fail(null,H._failMsg,-1)}},ue})(r);t.TLiteral=u;function c(ee){return new f(i(ee))}t.array=c;var f=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttype=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this.ttype.getChecker(Z,V);return function(he,ve){if(!Array.isArray(he))return ve.fail(null,"is not an array",0);for(var Ae=0;Ae<he.length;Ae++){var Re=H(he[Ae],ve);if(!Re)return ve.fail(Ae,null,1)}return!0}},ue})(r);t.TArray=f;function d(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new p(ee.map(function(Z){return i(Z)}))}t.tuple=d;var p=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttypes=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this.ttypes.map(function(ve){return ve.getChecker(Z,V)}),he=function(ve,Ae){if(!Array.isArray(ve))return Ae.fail(null,"is not an array",0);for(var Re=0;Re<H.length;Re++){var F=H[Re](ve[Re],Ae);if(!F)return Ae.fail(Re,null,1)}return!0};return V?function(ve,Ae){return he(ve,Ae)?ve.length<=H.length?!0:Ae.fail(H.length,"is extraneous",2):!1}:he},ue})(r);t.TTuple=p;function g(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new O(ee.map(function(Z){return i(Z)}))}t.union=g;var O=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;V.ttypes=Z;var H=Z.map(function(ve){return ve instanceof a||ve instanceof u?ve.name:null}).filter(function(ve){return ve}),he=Z.length-H.length;return H.length?(he>0&&H.push(he+" more"),V._failMsg="is none of "+H.join(", ")):V._failMsg="is none of "+he+" types",V}return ue.prototype.getChecker=function(Z,V){var H=this,he=this.ttypes.map(function(ve){return ve.getChecker(Z,V)});return function(ve,Ae){for(var Re=Ae.unionResolver(),F=0;F<he.length;F++){var me=he[F](ve,Re.createContext());if(me)return!0}return Ae.resolveUnion(Re),Ae.fail(null,H._failMsg,0)}},ue})(r);t.TUnion=O;function y(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new b(ee.map(function(Z){return i(Z)}))}t.intersection=y;var b=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttypes=Z,V}return ue.prototype.getChecker=function(Z,V){var H=new Set,he=this.ttypes.map(function(ve){return ve.getChecker(Z,V,H)});return function(ve,Ae){var Re=he.every(function(F){return F(ve,Ae)});return Re?!0:Ae.fail(null,null,0)}},ue})(r);t.TIntersection=b;function v(ee){return new S(ee)}t.enumtype=v;var S=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.members=Z,V.validValues=new Set,V._failMsg="is not a valid enum value",V.validValues=new Set(Object.keys(Z).map(function(H){return Z[H]})),V}return ue.prototype.getChecker=function(Z,V){var H=this;return function(he,ve){return H.validValues.has(he)?!0:ve.fail(null,H._failMsg,0)}},ue})(r);t.TEnumType=S;function x(ee,ue){return new P(ee,ue)}t.enumlit=x;var P=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.enumName=Z,H.prop=V,H._failMsg="is not "+Z+"."+V,H}return ue.prototype.getChecker=function(Z,V){var H=this,he=s(Z,this.enumName);if(!(he instanceof S))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var ve=he.members[this.prop];if(!he.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(Ae,Re){return Ae===ve?!0:Re.fail(null,H._failMsg,-1)}},ue})(r);t.TEnumLiteral=P;function E(ee){return Object.keys(ee).map(function(ue){return D(ue,ee[ue])})}function D(ee,ue){return ue instanceof I?new T(ee,ue.ttype,!0):new T(ee,i(ue),!1)}function R(ee,ue){return new _(ee,E(ue))}t.iface=R;var _=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.bases=Z,H.props=V,H.propSet=new Set(V.map(function(he){return he.name})),H}return ue.prototype.getChecker=function(Z,V,H){var he=this,ve=this.bases.map(function(ie){return s(Z,ie).getChecker(Z,V)}),Ae=this.props.map(function(ie){return ie.ttype.getChecker(Z,V)}),Re=new n.NoopContext,F=this.props.map(function(ie,re){return!ie.isOpt&&!Ae[re](void 0,Re)}),me=function(ie,re){if(typeof ie!="object"||ie===null)return re.fail(null,"is not an object",0);for(var pe=0;pe<ve.length;pe++)if(!ve[pe](ie,re))return!1;for(var pe=0;pe<Ae.length;pe++){var Me=he.props[pe].name,je=ie[Me];if(je===void 0){if(F[pe])return re.fail(Me,"is missing",1)}else{var _e=Ae[pe](je,re);if(!_e)return re.fail(Me,null,1)}}return!0};if(!V)return me;var Oe=this.propSet;return H&&(this.propSet.forEach(function(ie){return H.add(ie)}),Oe=H),function(ie,re){if(!me(ie,re))return!1;for(var pe in ie)if(!Oe.has(pe))return re.fail(pe,"is extraneous",2);return!0}},ue})(r);t.TIface=_;function C(ee){return new I(i(ee))}t.opt=C;var I=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttype=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this.ttype.getChecker(Z,V);return function(he,ve){return he===void 0||H(he,ve)}},ue})(r);t.TOptional=I;var T=(function(){function ee(ue,Z,V){this.name=ue,this.ttype=Z,this.isOpt=V}return ee})();t.TProp=T;function B(ee){for(var ue=[],Z=1;Z<arguments.length;Z++)ue[Z-1]=arguments[Z];return new A(new W(ue),i(ee))}t.func=B;var A=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.paramList=Z,H.result=V,H}return ue.prototype.getChecker=function(Z,V){return function(H,he){return typeof H=="function"?!0:he.fail(null,"is not a function",0)}},ue})(r);t.TFunc=A;function X(ee,ue,Z){return new G(ee,i(ue),!!Z)}t.param=X;var G=(function(){function ee(ue,Z,V){this.name=ue,this.ttype=Z,this.isOpt=V}return ee})();t.TParam=G;var W=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.params=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this,he=this.params.map(function(F){return F.ttype.getChecker(Z,V)}),ve=new n.NoopContext,Ae=this.params.map(function(F,me){return!F.isOpt&&!he[me](void 0,ve)}),Re=function(F,me){if(!Array.isArray(F))return me.fail(null,"is not an array",0);for(var Oe=0;Oe<he.length;Oe++){var ie=H.params[Oe];if(F[Oe]===void 0){if(Ae[Oe])return me.fail(ie.name,"is missing",1)}else{var re=he[Oe](F[Oe],me);if(!re)return me.fail(ie.name,null,1)}}return!0};return V?function(F,me){return Re(F,me)?F.length<=he.length?!0:me.fail(he.length,"is extraneous",2):!1}:Re},ue})(r);t.TParamList=W;var te=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.validator=Z,H.message=V,H}return ue.prototype.getChecker=function(Z,V){var H=this;return function(he,ve){return H.validator(he)?!0:ve.fail(null,H.message,0)}},ue})(r);t.BasicType=te,t.basicTypes={any:new te(function(ee){return!0},"is invalid"),number:new te(function(ee){return typeof ee=="number"},"is not a number"),object:new te(function(ee){return typeof ee=="object"&&ee},"is not an object"),boolean:new te(function(ee){return typeof ee=="boolean"},"is not a boolean"),string:new te(function(ee){return typeof ee=="string"},"is not a string"),symbol:new te(function(ee){return typeof ee=="symbol"},"is not a symbol"),void:new te(function(ee){return ee==null},"is not void"),undefined:new te(function(ee){return ee===void 0},"is not undefined"),null:new te(function(ee){return ee===null},"is not null"),never:new te(function(ee){return!1},"is unexpected"),Date:new te(U("[object Date]"),"is not a Date"),RegExp:new te(U("[object RegExp]"),"is not a RegExp")};var J=Object.prototype.toString;function U(ee){return function(ue){return typeof ue=="object"&&ue&&J.call(ue)===ee}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new te(function(ee){return Buffer.isBuffer(ee)},"is not a Buffer"));for(var z=function(ee){t.basicTypes[ee.name]=new te(function(ue){return ue instanceof ee},"is not a "+ee.name)},Y=0,L=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Y<L.length;Y++){var se=L[Y];z(se)}})(ph)),ph}var B5;function Sde(){return B5||(B5=1,(function(t){var e=dh&&dh.__spreadArrays||function(){for(var l=0,u=0,c=arguments.length;u<c;u++)l+=arguments[u].length;for(var f=Array(l),d=0,u=0;u<c;u++)for(var p=arguments[u],g=0,O=p.length;g<O;g++,d++)f[d]=p[g];return f};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=F5(),r=PS(),i=F5();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var s=PS();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return s.VError}});function o(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];for(var c=Object.assign.apply(Object,e([{},n.basicTypes],l)),f={},d=0,p=l;d<p.length;d++)for(var g=p[d],O=0,y=Object.keys(g);O<y.length;O++){var b=y[O];f[b]=new a(c,g[b])}return f}t.createCheckers=o;var a=(function(){function l(u,c,f){if(f===void 0&&(f="value"),this.suite=u,this.ttype=c,this._path=f,this.props=new Map,c instanceof n.TIface)for(var d=0,p=c.props;d<p.length;d++){var g=p[d];this.props.set(g.name,g.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return l.prototype.setReportedPath=function(u){this._path=u},l.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},l.prototype.test=function(u){return this.checkerPlain(u,new r.NoopContext)},l.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},l.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},l.prototype.strictTest=function(u){return this.checkerStrict(u,new r.NoopContext)},l.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},l.prototype.getProp=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);return new l(this.suite,c,this._path+"."+u)},l.prototype.methodArgs=function(u){var c=this._getMethod(u);return new l(this.suite,c.paramList)},l.prototype.methodResult=function(u){var c=this._getMethod(u);return new l(this.suite,c.result)},l.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new l(this.suite,this.ttype.paramList)},l.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new l(this.suite,this.ttype.result)},l.prototype.getType=function(){return this.ttype},l.prototype._doCheck=function(u,c){var f=new r.NoopContext;if(!u(c,f)){var d=new r.DetailContext;throw u(c,d),d.getError(this._path)}},l.prototype._doValidate=function(u,c){var f=new r.NoopContext;if(u(c,f))return null;var d=new r.DetailContext;return u(c,d),d.getErrorDetail(this._path)},l.prototype._getMethod=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);if(!(c instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return c},l})();t.Checker=a})(dh)),dh}var Ln=Sde();const xde=Ln.union(Ln.lit("jsx"),Ln.lit("typescript"),Ln.lit("flow"),Ln.lit("imports"),Ln.lit("react-hot-loader"),Ln.lit("jest")),kde=Ln.iface([],{compiledFilename:"string"}),Pde=Ln.iface([],{transforms:Ln.array("Transform"),disableESTransforms:Ln.opt("boolean"),jsxRuntime:Ln.opt(Ln.union(Ln.lit("classic"),Ln.lit("automatic"),Ln.lit("preserve"))),production:Ln.opt("boolean"),jsxImportSource:Ln.opt("string"),jsxPragma:Ln.opt("string"),jsxFragmentPragma:Ln.opt("string"),keepUnusedImports:Ln.opt("boolean"),preserveDynamicImport:Ln.opt("boolean"),injectCreateRequireForImportRequire:Ln.opt("boolean"),enableLegacyTypeScriptModuleInterop:Ln.opt("boolean"),enableLegacyBabel5ModuleInterop:Ln.opt("boolean"),sourceMapOptions:Ln.opt("SourceMapOptions"),filePath:Ln.opt("string")}),_de={Transform:xde,SourceMapOptions:kde,Options:Pde},{Options:ope}=Ln.createCheckers(_de);var q5;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const r=n+1;t[t.TSAbstractConstructorType=r]="TSAbstractConstructorType"})(q5||(q5={}));var Sb={},z5;function Ede(){return z5||(z5=1,(function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
|
|
356
|
-
`,n="\r",r=(function(){function i(s){this.string=s;for(var o=[0],a=0;a<s.length;)switch(s[a]){case e:a+=e.length,o.push(a);break;case n:a+=n.length,s[a]===e&&(a+=e.length),o.push(a);break;default:a++;break}this.offsets=o}return i.prototype.locationForIndex=function(s){if(s<0||s>this.string.length)return null;for(var o=0,a=this.offsets;a[o+1]<=s;)o++;var l=s-a[o];return{line:o,column:l}},i.prototype.indexForLocation=function(s){var o=s.line,a=s.column;return o<0||o>=this.offsets.length||a<0||a>this.lengthOfLine(o)?null:this.offsets[o]+a},i.prototype.lengthOfLine=function(s){var o=this.offsets[s],a=s===this.offsets.length-1?this.string.length:this.offsets[s+1];return a-o},i})();t.LinesAndColumns=r,t.default=r})(Sb)),Sb}Ede();const o6=()=>(Math.random()+"").slice(2),Cde=t=>async e=>{const n=o6();return new Promise(r=>{const i=s=>{s.data.type==="invalidateVizCacheResponse"&&s.data.requestId===n&&(t.removeEventListener("message",i),r())};t.addEventListener("message",i),t.postMessage({type:"invalidateVizCacheRequest",changedVizIds:e,requestId:n})})},Rde=({worker:t,setBuildErrorMessage:e})=>({files:n,enableSourcemap:r,vizId:i})=>{const s=o6();return new Promise(o=>{const a=u=>{const c=u.data;if(c.type==="buildResponse"&&c.requestId===s){t.removeEventListener("message",a);const f=c.buildResult,d=c.error;e?.(d||null),o(f)}};t.addEventListener("message",a);const l={type:"buildRequest",files:n,enableSourcemap:r,requestId:s,vizId:i};t.postMessage(l)})},xb="IDLE",kb="ENQUEUED",U5="PENDING_CLEAN",Pb="PENDING_DIRTY",Ade=({iframe:t,worker:e,setBuildErrorMessage:n,getLatestContent:r,resolveSlugKey:i,writeFile:s,handleRuntimeError:o})=>{let a=xb,l=null;const u=Rde({worker:e,setBuildErrorMessage:n}),c=({data:O})=>{if(O.type==="contentRequest"&&r){const{vizId:y}=O;r(y).then(b=>{e.postMessage({type:"contentResponse",vizId:y,content:b})})}else if(O.type==="resolveSlugRequest"){const{slugKey:y,requestId:b}=O;if(i)i(y).then(v=>{const S={type:"resolveSlugResponse",vizId:v,requestId:b};e.postMessage(S)});else{const v={type:"resolveSlugResponse",vizId:null,requestId:b};e.postMessage(v)}}};e.addEventListener("message",c);const f=O=>{const y=O.data;(y.type==="runDone"||y.type==="runError")&&y.type==="runError"&&n&&n(y.error.message),y.type==="runtimeError"&&o&&o(y.formattedErrorMessage),y.type==="writeFile"&&s&&y.fileName&&y.content&&s(y.fileName,y.content)};window.addEventListener("message",f);const d=()=>{e.removeEventListener("message",c),window.removeEventListener("message",f)},p=async({files:O,enableHotReloading:y=!1,enableSourcemap:b=!1,vizId:v,clearConsole:S=!0})=>{a=U5;const x=await u({files:O,enableSourcemap:b,vizId:v});if(x){const{html:P,runtimeVersion:E,js:D,css:R}=x;if(S&&console.clear(),y&&(E==="v3"||E==="v4")){if(R){const _={type:"runCSS",css:R};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(_,window.location.origin)}if(D){const _={type:"runJS",js:D};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(_,window.location.origin)}}else t.srcdoc=P||""}a===Pb?(requestAnimationFrame(()=>{if(!l)throw new Error("latestFiles is not defined and state is PENDING_DIRTY - this should never happen");p({files:l,enableHotReloading:y,enableSourcemap:b,vizId:v,clearConsole:S})}),a=kb):a=xb},g=({files:O,enableHotReloading:y=!1,enableSourcemap:b=!1,vizId:v=void 0,clearConsole:S=!0})=>{if(l=null,a===xb)a=kb,p({files:O,enableHotReloading:y,enableSourcemap:b,vizId:v,clearConsole:S});else if(a===U5)l=O,a=Pb;else if(a===Pb)l=O;else if(a===kb)l=O;else throw new Error(`Unexpected state: ${a}`)};return{invalidateVizCache:Cde(e),run:g,cleanup:d}};function $de(t){return new Worker("/assets/buildWorker-BZlya278.js",{name:t?.name})}const Tde=()=>{const t=M.useRef(null),e=M.useRef(!0),n=M.useRef(void 0),{content:r,handleRuntimeError:i,clearRuntimeError:s,iframeRef:o}=M.useContext(pr),a=M.useMemo(()=>r?bK(r.files):null,[r]),l=r?.isInteracting||!1,u=r?.runId,c=r?.hardRerun||!1,f=u!==n.current;return f&&(n.current=u),M.useEffect(()=>{if(a){if(!t.current&&o.current){const d=new $de;t.current=Ade({iframe:o.current,worker:d,setBuildErrorMessage:p=>{p&&console.error("Build error:",p)},handleRuntimeError:i})}(e.current||l||f)&&(s(),t.current?.run({files:a,enableHotReloading:l,enableSourcemap:!0,vizId:"example-viz",clearConsole:!1}),e.current=!1)}},[a,l,f,c,s,i,o]),j.jsx("div",{className:"right",children:j.jsx("iframe",{ref:o})})},Qde="vzCodeUsername",Mde="Anonymous",Ide=()=>{let t=Mde;if(typeof window<"u"){const e=window.localStorage.getItem(Qde);e!==null&&(t=e)}return t},Dde=t=>{const e=M.useRef(t);M.useEffect(()=>{e.current!==t&&(e.current=t,window.localStorage.setItem("vzCodeUsername",t))},[t])},jde=t=>e=>{const n=t.data,r=fF(n,e(n));r&&t&&t.submitOp(r)},Nde=t=>M.useCallback(()=>jde(t),[t])(),Lde=1e3,Fde=t=>{const e=M.useRef(),[n,r]=M.useState(!1),i=M.useCallback(()=>{t&&t.whenNothingPending(()=>{r(!1)})},[t,r]);return M.useEffect(()=>{t&&t.on("before op",()=>{r(!0),clearTimeout(e.current),e.current=setTimeout(()=>{i()},Lde)})},[t,i]),n},Bde=({connection:t})=>{const[e,n]=M.useState(null),[r,i]=M.useState(null),[s,o]=M.useState(null),[a,l]=M.useState(null),[u,c]=M.useState(!1);M.useEffect(()=>{t.on("connected",()=>{c(!0)}),t.on("disconnected",()=>{c(!1)});const p="documents",g="1",O=t.get(p,g);return O.subscribe(()=>{n(O),l(O.data),O.on("op",()=>{l(O.data)});const y=t.getDocPresence(p,g);y.subscribe(function(v){if(v)throw v});const b=()=>{const v=Date.now().toString(36),S=_w();return`${v}-${S}`};i(y.create(b())),o(y)}),()=>{}},[t]);const f=Fde(e),d=Nde(e);return{shareDBDoc:e,content:a,localPresence:r,docPresence:s,submitOperation:d,connected:u,pending:f}};function qde(t){return new Worker("/assets/worker-BfgPD8zR.js",{name:t?.name})}let zde=0;const _b=new Map,Ude=()=>{const[t,e]=M.useState(null);return M.useEffect(()=>{e(new qde)},[]),M.useEffect(()=>{if(!t)return;const r=i=>{const{diagnostics:s,requestId:o,error:a}=i.data;a&&console.error("[ESLint] Error:",a);const l=_b.get(o);l&&(l(s),_b.delete(o))};return t.addEventListener("message",r),()=>{t.removeEventListener("message",r),t.terminate()}},[t]),{esLintSource:M.useCallback(async r=>{const i=r.state.field(o4);try{const s=r.state.doc.toString(),o=zde++;return new Promise(a=>{_b.set(o,a),t.postMessage({code:s,requestId:o,fileName:i})})}catch(s){return console.error("[ESLint] Error in linter:",s),[]}},[t])}},Zde=new hF;X5.types.register(Gl.type);const{Connection:
|
|
354
|
+
`);if(!u.trim()){r("Empty clipboard"),setTimeout(()=>r("Paste for AI"),2e3);return}const c=qfe(u,"bold");if(c.files&&Object.keys(c.files).length>0){const f=b5.mergeFileChanges(t||{},c.files);e(d=>({...d,files:f,runId:u4()})),r("Pasted!"),setTimeout(()=>r("Paste for AI"),2e3)}else r("No files found"),setTimeout(()=>r("Paste for AI"),2e3)}catch(l){console.error("Failed to paste files from AI:",l),r("Error"),setTimeout(()=>r("Paste for AI"),2e3)}},handleExportToZip:async()=>{if(!t||Object.keys(t).length===0){i("No files to export"),setTimeout(()=>i("Export to ZIP"),2e3);return}try{const l=new nhe;Object.entries(t).forEach(([d,p])=>{const g=p.name||d,O=p.text||"";l.file(g,O)});const u=await l.generateAsync({type:"blob"}),c=URL.createObjectURL(u),f=document.createElement("a");f.href=c,f.download="viz-files.zip",f.click(),URL.revokeObjectURL(c),i("Exported!"),setTimeout(()=>i("Export to ZIP"),2e3)}catch(l){console.error("Failed to export files to ZIP:",l),i("Error"),setTimeout(()=>i("Export to ZIP"),2e3)}}});function ihe(t,e){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{source:"vzcode-sidebar"}}))}function she({aiChatButtonEvent:t,target:e,openAIChat:n}){if(t){ihe(t,e);return}n()}const ohe=({children:t})=>j.jsx("div",{className:"empty-state",children:t});function qd(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Hg(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function bu(){}var dd=.7,Jm=1/dd,Cc="\\s*([+-]?\\d+)\\s*",pd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Co="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ahe=/^#([0-9a-f]{3,8})$/,lhe=new RegExp(`^rgb\\(${Cc},${Cc},${Cc}\\)$`),uhe=new RegExp(`^rgb\\(${Co},${Co},${Co}\\)$`),che=new RegExp(`^rgba\\(${Cc},${Cc},${Cc},${pd}\\)$`),fhe=new RegExp(`^rgba\\(${Co},${Co},${Co},${pd}\\)$`),hhe=new RegExp(`^hsl\\(${pd},${Co},${Co}\\)$`),dhe=new RegExp(`^hsla\\(${pd},${Co},${Co},${pd}\\)$`),S5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qd(bu,zd,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:x5,formatHex:x5,formatHex8:phe,formatHsl:mhe,formatRgb:k5,toString:k5});function x5(){return this.rgb().formatHex()}function phe(){return this.rgb().formatHex8()}function mhe(){return YL(this).formatHsl()}function k5(){return this.rgb().formatRgb()}function zd(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ahe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?P5(e):n===3?new ci(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?A1(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?A1(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=lhe.exec(t))?new ci(e[1],e[2],e[3],1):(e=uhe.exec(t))?new ci(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=che.exec(t))?A1(e[1],e[2],e[3],e[4]):(e=fhe.exec(t))?A1(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=hhe.exec(t))?C5(e[1],e[2]/100,e[3]/100,1):(e=dhe.exec(t))?C5(e[1],e[2]/100,e[3]/100,e[4]):S5.hasOwnProperty(t)?P5(S5[t]):t==="transparent"?new ci(NaN,NaN,NaN,0):null}function P5(t){return new ci(t>>16&255,t>>8&255,t&255,1)}function A1(t,e,n,r){return r<=0&&(t=e=n=NaN),new ci(t,e,n,r)}function HL(t){return t instanceof bu||(t=zd(t)),t?(t=t.rgb(),new ci(t.r,t.g,t.b,t.opacity)):new ci}function ghe(t,e,n,r){return arguments.length===1?HL(t):new ci(t,e,n,r??1)}function ci(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}qd(ci,ghe,Hg(bu,{brighter(t){return t=t==null?Jm:Math.pow(Jm,t),new ci(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?dd:Math.pow(dd,t),new ci(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ci(ou(this.r),ou(this.g),ou(this.b),eg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_5,formatHex:_5,formatHex8:Ohe,formatRgb:E5,toString:E5}));function _5(){return`#${nu(this.r)}${nu(this.g)}${nu(this.b)}`}function Ohe(){return`#${nu(this.r)}${nu(this.g)}${nu(this.b)}${nu((isNaN(this.opacity)?1:this.opacity)*255)}`}function E5(){const t=eg(this.opacity);return`${t===1?"rgb(":"rgba("}${ou(this.r)}, ${ou(this.g)}, ${ou(this.b)}${t===1?")":`, ${t})`}`}function eg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ou(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nu(t){return t=ou(t),(t<16?"0":"")+t.toString(16)}function C5(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Bs(t,e,n,r)}function YL(t){if(t instanceof Bs)return new Bs(t.h,t.s,t.l,t.opacity);if(t instanceof bu||(t=zd(t)),!t)return new Bs;if(t instanceof Bs)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,l=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=l<.5?s+i:2-s-i,o*=60):a=l>0&&l<1?0:o,new Bs(o,a,l,t.opacity)}function yhe(t,e,n,r){return arguments.length===1?YL(t):new Bs(t,e,n,r??1)}function Bs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}qd(Bs,yhe,Hg(bu,{brighter(t){return t=t==null?Jm:Math.pow(Jm,t),new Bs(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?dd:Math.pow(dd,t),new Bs(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ci(pb(t>=240?t-240:t+120,i,r),pb(t,i,r),pb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Bs(R5(this.h),$1(this.s),$1(this.l),eg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=eg(this.opacity);return`${t===1?"hsl(":"hsla("}${R5(this.h)}, ${$1(this.s)*100}%, ${$1(this.l)*100}%${t===1?")":`, ${t})`}`}}));function R5(t){return t=(t||0)%360,t<0?t+360:t}function $1(t){return Math.max(0,Math.min(1,t||0))}function pb(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const vhe=Math.PI/180,bhe=180/Math.PI,tg=18,GL=.96422,KL=1,JL=.82521,e6=4/29,Rc=6/29,t6=3*Rc*Rc,whe=Rc*Rc*Rc;function n6(t){if(t instanceof Ro)return new Ro(t.l,t.a,t.b,t.opacity);if(t instanceof Ko)return r6(t);t instanceof ci||(t=HL(t));var e=yb(t.r),n=yb(t.g),r=yb(t.b),i=mb((.2225045*e+.7168786*n+.0606169*r)/KL),s,o;return e===n&&n===r?s=o=i:(s=mb((.4360747*e+.3850649*n+.1430804*r)/GL),o=mb((.0139322*e+.0971045*n+.7141733*r)/JL)),new Ro(116*i-16,500*(s-i),200*(i-o),t.opacity)}function She(t,e,n,r){return arguments.length===1?n6(t):new Ro(t,e,n,r??1)}function Ro(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}qd(Ro,She,Hg(bu,{brighter(t){return new Ro(this.l+tg*(t??1),this.a,this.b,this.opacity)},darker(t){return new Ro(this.l-tg*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=GL*gb(e),t=KL*gb(t),n=JL*gb(n),new ci(Ob(3.1338561*e-1.6168667*t-.4906146*n),Ob(-.9787684*e+1.9161415*t+.033454*n),Ob(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function mb(t){return t>whe?Math.pow(t,1/3):t/t6+e6}function gb(t){return t>Rc?t*t*t:t6*(t-e6)}function Ob(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xhe(t){if(t instanceof Ko)return new Ko(t.h,t.c,t.l,t.opacity);if(t instanceof Ro||(t=n6(t)),t.a===0&&t.b===0)return new Ko(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*bhe;return new Ko(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Gc(t,e,n,r){return arguments.length===1?xhe(t):new Ko(t,e,n,r??1)}function Ko(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function r6(t){if(isNaN(t.h))return new Ro(t.l,0,0,t.opacity);var e=t.h*vhe;return new Ro(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}qd(Ko,Gc,Hg(bu,{brighter(t){return new Ko(this.h,this.c,this.l+tg*(t??1),this.opacity)},darker(t){return new Ko(this.h,this.c,this.l-tg*(t??1),this.opacity)},rgb(){return r6(this).rgb()}}));function vb(t){const e=zd(t),n=Gc(e||"black");return{h:Number.isFinite(n.h)?n.h:0,c:Number.isFinite(n.c)?n.c:0,l:Number.isFinite(n.l)?n.l:0}}function bb(t,e){return typeof t=="number"&&Number.isFinite(t)?t:e}function khe(t,e){const n=Gc(t.h,t.c,t.l);return n.displayable()?n.formatHex():e}const Phe="config.json",_he=(t,e,n)=>(t-e)/(n-e)*100,Ehe=(t,e,n)=>{const r=n-e,i=r<10?2:r<100?1:0;return Number(t).toFixed(i)},Che=(t,e,n)=>{try{return Gc(t,e,n).displayable()}catch{return!1}},wb=(t,e,n)=>{if(!t)return;const r=t.width,i=t.height,s=t.getContext("2d");if(!s)return;const o=s.createImageData(r,i);for(let a=0;a<r;a++){let l,u,c;if(e==="h")l=a*360/(r-1),u=Math.max(0,Math.min(n.c,100)),c=Math.max(0,Math.min(n.l,100));else if(e==="c"){const d=a*100/(r-1);l=Math.max(0,Math.min(n.h,360)),u=d,c=Math.max(0,Math.min(n.l,100))}else{const d=a*100/(r-1);l=Math.max(0,Math.min(n.h,360)),u=Math.max(0,Math.min(n.c,100)),c=d}let f;if(Che(l,u,c)){const p=Gc(l,u,c).rgb();f={r:p.r,g:p.g,b:p.b}}else f={r:128,g:128,b:128};for(let d=0;d<i;d++){const p=4*(d*r+a);o.data[p]=f.r,o.data[p+1]=f.g,o.data[p+2]=f.b,o.data[p+3]=255}}s.putImageData(o,0,0)},i6=t=>{if(typeof t!="string"||!t)return null;const e=t.split(".");return e.every(n=>n.length>0&&n!=="__proto__"&&n!=="constructor"&&n!=="prototype")?e:null},s2=(t,e)=>{const n=i6(e);if(!n)return{found:!1,value:void 0};let r=t;for(const i of n){if(r===null||typeof r!="object"||Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,i))return{found:!1,value:void 0};r=r[i]}return{found:!0,value:r}},ql=(t,e)=>{const{found:n,value:r}=s2(t,e);return n?r:void 0},Rhe=(t,e,n)=>{const r=i6(e);if(!r)throw new Error("Invalid or unsafe property path: "+e);const i={...t};let s=i;for(let a=0;a<r.length-1;a++){const l=r[a];s[l]==null||typeof s[l]!="object"||Array.isArray(s[l])?s[l]={}:s[l]={...s[l]},s=s[l]}const o=r[r.length-1];return s[o]=n,i},A5=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);function Ahe(t){if(t===null)return"missing-config";let e;try{e=JSON.parse(t)}catch{return"invalid-config"}if(!A5(e))return"invalid-config";if(!Object.prototype.hasOwnProperty.call(e,"visualEditorWidgets"))return"missing-widgets";const n=e.visualEditorWidgets;if(!Array.isArray(n))return"invalid-widgets";if(!n.length)return"empty-widgets";for(const r of n){if(!A5(r)||typeof r.property!="string"||!r.property||typeof r.label!="string"||!r.label.trim())return"invalid-widgets";const{found:i,value:s}=s2(e,r.property);if(!i)return"invalid-widgets";switch(r.type){case"slider":if(!Number.isFinite(s)||!Number.isFinite(r.min)||!Number.isFinite(r.max)||r.min>=r.max||r.step!==void 0&&(!Number.isFinite(r.step)||r.step<=0))return"invalid-widgets";break;case"checkbox":if(typeof s!="boolean")return"invalid-widgets";break;case"textInput":if(typeof s!="string")return"invalid-widgets";break;case"dropdown":if(typeof s!="string"||!Array.isArray(r.options)||r.options.length===0||!r.options.every(o=>typeof o=="string")||!r.options.includes(s))return"invalid-widgets";break;case"color":{if(typeof s!="string")return"invalid-widgets";const o=zd(s)?.rgb();if(!o||!Number.isFinite(o.r)||!Number.isFinite(o.g)||!Number.isFinite(o.b)||o.opacity!==1)return"invalid-widgets";break}default:return"invalid-widgets"}}return null}function $he(t,e,n,r){if(!e)return t;const i=t.files[e];if(!i)return t;let s;try{s=JSON.parse(i.text)}catch{return t}if(!s||typeof s!="object"||Array.isArray(s)||!s2(s,n).found)return t;let o;try{o=Rhe(s,n,r)}catch{return t}return{...t,files:{...t.files,[e]:{...i,text:JSON.stringify(o,null,2)}}}}const The=({property:t,label:e,min:n,max:r,step:i,currentValue:s,onChange:o})=>{const a=_he(s,n,r);return j.jsxs("div",{className:"visual-editor-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{htmlFor:t,className:"slider-label",children:e}),j.jsx("span",{className:"slider-value",children:Ehe(s,n,r)})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("input",{type:"range",id:t,className:"slider-input",min:n,max:r,step:i,value:s,onChange:o}),j.jsx("div",{className:"slider-track-fill",style:{width:`${a}%`}})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:n}),j.jsx("span",{className:"max-value",children:r})]})]})},Qhe=({property:t,label:e,currentValue:n,onChange:r})=>j.jsxs("div",{className:"visual-editor-checkbox",children:[j.jsxs("div",{className:"checkbox-header",children:[j.jsx("label",{htmlFor:t,className:"checkbox-label",children:e}),j.jsx("span",{className:"checkbox-value",children:n?"On":"Off"})]}),j.jsxs("div",{className:"checkbox-container",children:[j.jsx("input",{type:"checkbox",id:t,className:"checkbox-input",checked:n,onChange:r}),j.jsx("div",{className:"checkbox-visual",children:j.jsx("div",{className:`checkbox-indicator ${n?"checked":""}`})})]})]}),Mhe=({property:t,label:e,currentValue:n,onChange:r})=>j.jsxs("div",{className:"visual-editor-text-input",children:[j.jsx("div",{className:"text-input-header",children:j.jsx("label",{htmlFor:t,className:"text-input-label",children:e})}),j.jsx("div",{className:"text-input-container",children:j.jsx("input",{type:"text",id:t,className:"text-input-field",value:n||"",onChange:r})})]}),Ihe=({property:t,label:e,options:n,currentValue:r,isOpen:i,onToggle:s,onOptionClick:o})=>j.jsxs("div",{className:"visual-editor-dropdown",children:[j.jsx("div",{className:"dropdown-header",children:j.jsx("label",{htmlFor:t,className:"dropdown-label",children:e})}),j.jsxs("div",{className:"dropdown-container",children:[j.jsxs("button",{type:"button",className:`dropdown-button ${i?"open":""}`,onClick:s,"aria-expanded":i,"aria-haspopup":"listbox",children:[j.jsx("span",{className:"dropdown-button-text",children:r}),j.jsx("div",{className:`dropdown-arrow ${i?"open":""}`,children:j.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i&&j.jsx("div",{className:"dropdown-options",children:n.map(a=>j.jsx("button",{type:"button",className:`dropdown-option ${a===r?"selected":""}`,onClick:()=>o(a),children:a},a))})]})]}),Dhe=({property:t,label:e,currentHex:n,currentH:r,currentC:i,currentL:s,onColorChange:o})=>{const a=M.useRef({});return M.useEffect(()=>{const l={h:r,c:i,l:s};wb(a.current[`${t}_l_bg`],"l",l),wb(a.current[`${t}_c_bg`],"c",l),wb(a.current[`${t}_h_bg`],"h",l)},[t,r,i,s]),j.jsxs("div",{className:"visual-editor-color",children:[j.jsxs("div",{className:"color-header",children:[j.jsx("label",{className:"color-label",children:e}),j.jsx("span",{className:"color-value",children:n})]}),j.jsx("div",{className:"color-preview",style:{backgroundColor:n}}),j.jsxs("div",{className:"lch-sliders",children:[j.jsxs("div",{className:"lch-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{className:"slider-label",children:"Lightness"}),j.jsx("span",{className:"slider-value",children:Math.round(s)})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("canvas",{ref:l=>{a.current[`${t}_l_bg`]=l},className:"slider-bg-canvas",width:200}),j.jsx("input",{type:"range",className:"slider-input",min:0,max:100,step:1,value:s,onChange:o(t,"l")})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:"0"}),j.jsx("span",{className:"max-value",children:"100"})]})]}),j.jsxs("div",{className:"lch-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{className:"slider-label",children:"Chroma"}),j.jsx("span",{className:"slider-value",children:Math.round(i)})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("canvas",{ref:l=>{a.current[`${t}_c_bg`]=l},className:"slider-bg-canvas",width:200}),j.jsx("input",{type:"range",className:"slider-input",min:0,max:100,step:1,value:i,onChange:o(t,"c")})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:"0"}),j.jsx("span",{className:"max-value",children:"100"})]})]}),j.jsxs("div",{className:"lch-slider",children:[j.jsxs("div",{className:"slider-header",children:[j.jsx("label",{className:"slider-label",children:"Hue"}),j.jsxs("span",{className:"slider-value",children:[Math.round(r),"°"]})]}),j.jsxs("div",{className:"slider-container",children:[j.jsx("canvas",{ref:l=>{a.current[`${t}_h_bg`]=l},className:"slider-bg-canvas",width:200}),j.jsx("input",{type:"range",className:"slider-input",min:0,max:360,step:1,value:r,onChange:o(t,"h")})]}),j.jsxs("div",{className:"slider-bounds",children:[j.jsx("span",{className:"min-value",children:"0°"}),j.jsx("span",{className:"max-value",children:"360°"})]})]})]})]})},jhe=()=>{const{files:t,submitOperation:e,renderVisualEditorEmptyState:n}=M.useContext(pr),[r,i]=M.useState({}),[s,o]=M.useState(null);let a=null;if(t){for(const S in t)if(t[S].name===Phe){a=S;break}}const l=M.useMemo(()=>{if(!t||!a)return null;try{return JSON.parse(t[a].text)}catch(S){return console.error("Error parsing config.json:",S),null}},[a,t]),u=M.useCallback((S,x,P={})=>{i(E=>({...E,[S]:x,...P})),e(E=>$he(E,a,S,x))},[a,e]),c=M.useCallback(S=>x=>u(S,parseFloat(x.currentTarget.value)),[u]),f=M.useCallback(S=>x=>u(S,x.currentTarget.checked),[u]),d=M.useCallback(S=>x=>u(S,x.currentTarget.value),[u]),p=M.useCallback((S,x)=>u(S,x),[u]),g=M.useCallback(S=>{o(x=>x===S?null:S)},[]),O=M.useCallback((S,x)=>{p(S,x),o(null)},[p]);M.useEffect(()=>{const S=x=>{s&&(x.target.closest(".visual-editor-dropdown")||o(null))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[s]);const y=M.useCallback((S,x)=>P=>{const E=parseFloat(P.currentTarget.value),D=ql(l,S)??"#000000",R=vb(D),_={h:r[`${S}_h`]??R.h,c:r[`${S}_c`]??R.c,l:r[`${S}_l`]??R.l};_[x]=E;const C=khe(_,D);u(S,C,{[`${S}_h`]:_.h,[`${S}_c`]:_.c,[`${S}_l`]:_.l})},[l,u,r]),b=M.useMemo(()=>Array.isArray(l?.visualEditorWidgets)?l.visualEditorWidgets:[],[l]);M.useEffect(()=>{const S={};b.forEach(x=>{const P=ql(l,x.property);if(P!==void 0&&(S[x.property]=P),x.type==="color"&&typeof P=="string"){const E=vb(P);S[`${x.property}_h`]=E.h,S[`${x.property}_c`]=E.c,S[`${x.property}_l`]=E.l}}),i(S)},[l,b]);const v=Ahe(a===null?null:t?.[a]?.text??null);if(v){const S=n?.(v);if(S!=null)return j.jsx(j.Fragment,{children:S});const x={"missing-config":"To begin using the visual editor, create a config.json.","invalid-config":"Your config.json file is not valid JSON.","missing-widgets":"Add a visualEditorWidgets array to config.json.","invalid-widgets":"Your visualEditorWidgets configuration is invalid.","empty-widgets":"Add at least one widget to visualEditorWidgets."};return j.jsx(ohe,{children:x[v]})}return j.jsx("div",{className:"visual-editor",children:b.map((S,x)=>{if(S.type==="slider"){const P=r[S.property]??ql(l,S.property)??S.min;return j.jsx(The,{property:S.property,label:S.label,min:S.min,max:S.max,step:S.step,currentValue:P,onChange:c(S.property)},S.property)}else if(S.type==="checkbox"){const P=r[S.property]??ql(l,S.property)??!1;return j.jsx(Qhe,{property:S.property,label:S.label,currentValue:P,onChange:f(S.property)},S.property)}else if(S.type==="textInput"){const P=r[S.property]??ql(l,S.property)??"";return j.jsx(Mhe,{property:S.property,label:S.label,currentValue:P,onChange:d(S.property)},S.property)}else if(S.type==="dropdown"){const P=r[S.property]??ql(l,S.property)??S.options?.[0]??"",E=s===S.property;return j.jsx(Ihe,{property:S.property,label:S.label,options:S.options,currentValue:P,isOpen:E,onToggle:()=>g(S.property),onOptionClick:D=>O(S.property,D)},S.property)}else if(S.type==="color"){const P=r[S.property]??ql(l,S.property)??"#000000",E=vb(P),D=bb(r[`${S.property}_h`],E.h),R=bb(r[`${S.property}_c`],E.c),_=bb(r[`${S.property}_l`],E.l);return j.jsx(Dhe,{property:S.property,label:S.label,currentHex:P,currentH:D,currentC:R,currentL:_,onColorChange:y},S.property)}})})},Nhe=({enableAIChat:t=KG,aiChatButtonEvent:e,createFileTooltipText:n=j.jsxs(j.Fragment,{children:[j.jsx("strong",{children:"New file"}),j.jsx("div",{children:"(Alt + N or Ctrl + Shift + N)"})]}),createDirTooltipText:r=j.jsxs("div",{children:[j.jsx("strong",{children:"New Directory"}),j.jsx("div",{children:"(Ctrl + Shift + D)"})]}),openSettingsTooltipText:i=j.jsxs("div",{children:[j.jsx("strong",{children:"Open Settings"}),j.jsx("div",{children:"(Ctrl + Shift + S or Ctrl + ,)"})]}),openKeyboardShortcuts:s=j.jsxs("div",{children:[j.jsx("strong",{children:"Keyboard Shortcuts"}),j.jsx("div",{children:"(Ctrl + Shift + K)"})]}),reportBugTooltipText:o=j.jsx("div",{children:j.jsx("strong",{children:"Report Bug"})}),searchToolTipText:a=j.jsxs("div",{children:[j.jsx("strong",{children:"Search"}),j.jsx("div",{children:"(Ctrl + Shift + F)"})]}),filesToolTipText:l=j.jsxs("div",{children:[j.jsx("strong",{children:"Files"}),j.jsx("div",{children:"(Ctrl + Shift + E)"})]}),enableAutoFollowTooltipText:u=j.jsxs("div",{children:[j.jsx("strong",{children:"Enable Auto Follow"}),j.jsx("div",{children:"(Ctrl + Shift + A)"})]}),disableAutoFollowTooltipText:c=j.jsxs("div",{children:[j.jsx("strong",{children:"Disable Auto Follow"}),j.jsx("div",{children:"(Ctrl + Shift + A)"})]}),voiceChatToolTipText:f=j.jsx("div",{children:j.jsx("strong",{children:"Open Voice Chat Menu"})}),aiChatToolTipText:d=j.jsx("div",{children:j.jsx("strong",{children:"Edit with AI"})}),visualEditorToolTipText:p=j.jsx("div",{children:j.jsx("strong",{children:"Visual Editor"})})})=>{const{files:g,openTab:O,setIsSettingsOpen:y,setIsDocOpen:b,isSearchOpen:v,setIsSearchOpen:S,isVisualEditorOpen:x,setIsVisualEditorOpen:P,isAIChatOpen:E,setIsAIChatOpen:D,handleOpenCreateFileModal:R,handleOpenCreateDirModal:_,connected:C,pending:I,sidebarRef:T,enableAutoFollow:B,toggleAutoFollow:A,docPresence:X,updatePresenceIndicator:G,setVoiceChatModalOpen:W,submitOperation:te,deleteAllFiles:J}=M.useContext(pr),U=M.useMemo(()=>g?TN(Cre(g)):null,[g]),z=M.useCallback(()=>{b(!0)},[b]),Y=M.useCallback(()=>{y(!0)},[y]),[L,se]=M.useState("Copy for AI"),[ee,ue]=M.useState("Paste for AI"),[Z,V]=M.useState("Export to ZIP"),[H,he]=M.useState(!1),{handleCopyForAI:ve,handlePasteForAI:Ae,handleExportToZip:Re}=M.useMemo(()=>rhe(g,te,se,ue,V),[g,te]),F=M.useCallback(()=>{he(!0)},[]),me=M.useCallback(()=>{he(!1)},[]),Oe=M.useCallback(()=>{he(!1),J()},[J]),{sidebarWidth:ie,setSidebarView:re}=M.useContext(rg),pe=M.useCallback(Ve=>{O({fileId:Ve,isTransient:!0})},[O]),Me=M.useCallback(Ve=>{O({fileId:Ve,isTransient:!1})},[O]),je=U&&U.children&&U.children.length>0,{isDragOver:_e,handleDragEnter:q,handleDragOver:ye,handleDragLeave:xe,handleDrop:ce}=Bfe();M.useEffect(()=>{},[X]),M.useEffect(()=>{if(X){const Ve=(qe,Ke)=>{if(!Ke)return;const it={username:Ke.username,fileId:Ke.start[1]};G(it)};return X.on("receive",Ve),()=>{X.off("receive",Ve)}}},[X,G]);const[Se,Ee]=M.useState(!1),[Ue,Ge]=M.useState(!0),Ne=M.useRef(I);return M.useEffect(()=>{Ue&&C&&Ge(!1)},[C,Ue]),M.useEffect(()=>{if(Ne.current&&!I&&C&&!Ue){Ee(!0);const Ve=setTimeout(()=>{Ee(!1)},1500);return()=>clearTimeout(Ve)}Ne.current=I},[I,C,Ue]),M.useEffect(()=>{re(E)},[E,re]),j.jsxs("div",{className:"vz-sidebar",style:{width:ie+"px"},children:[j.jsxs("div",{className:"full-box",ref:T,tabIndex:-1,children:[j.jsxs("div",{className:"sidebar-section-buttons",children:[t&&j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"ai-chat-tooltip",children:d}),children:j.jsx("i",{id:"ai-chat-icon",className:"vz-icon-button",onClick:()=>she({aiChatButtonEvent:e,target:window,openAIChat:()=>{D(!0),S(!1),re(!0)}}),children:j.jsx(Bx,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"files-tooltip",children:l}),children:j.jsx("i",{id:"files-icon",className:"vz-icon-button",onClick:()=>{S(!1),D(!1),P(!1),re(!1)},children:j.jsx(jre,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"search-tooltip",children:a}),children:j.jsx("i",{id:"search-icon",className:"vz-icon-button",onClick:()=>{S(!0),D(!1),P(!1),re(!1)},children:j.jsx(Nre,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"visual-editor-tooltip",children:p}),children:j.jsx("i",{id:"visual-editor-icon",className:"vz-icon-button",onClick:()=>{P(!0),D(!1),S(!1),re(!1)},children:j.jsx(Wre,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"open-keyboard-shortcuts",children:s}),children:j.jsx("i",{id:"shortcut-icon",className:"vz-icon-button",onClick:z,children:j.jsx(Ire,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"report-bug-tooltip",children:o}),children:j.jsx("a",{href:"https://github.com/vizhub-core/vzcode/issues/new",target:"_blank",rel:"noopener noreferrer",children:j.jsx("i",{id:"bug-icon",className:"vz-icon-button",children:j.jsx(Qre,{})})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"open-settings-tooltip",children:i}),children:j.jsx("i",{id:"settings-icon",className:"vz-icon-button",onClick:Y,children:j.jsx($re,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"create-file-tooltip",children:n}),children:j.jsx("i",{id:"new-file-icon",className:"vz-icon-button",onClick:R,children:j.jsx(Are,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"create-dir-tooltip",children:r}),children:j.jsx("i",{id:"new-directory-icon",className:"vz-icon-button",onClick:_,children:j.jsx(AN,{})})}),j.jsx(Ni,{placement:"right",overlay:j.jsx(ji,{id:"toggle-auto-follow",children:B?c:u}),children:j.jsxs("i",{id:"auto-focus-icon",className:`vz-icon-button${B?" vz-color-success-01":""}`,onClick:A,children:[j.jsx("i",{}),j.jsx(Dre,{})]})}),s4]}),j.jsx("div",{className:"files",id:"sidebar-view-container",onDragEnter:q,onDragOver:ye,onDragLeave:xe,onDrop:ce,children:E?j.jsx("div",{className:"sidebar-ai-chat",children:j.jsx(Mfe,{})}):v?j.jsx("div",{className:"sidebar-search",children:j.jsx(Lfe,{})}):x?j.jsx("div",{className:"sidebar-visual-editor",children:j.jsx(jhe,{})}):j.jsx("div",{className:"sidebar-files",children:_e?j.jsxs("div",{className:"empty drag-over",children:[j.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),j.jsx("div",{className:"empty-text",children:"Drop files here!"})]}):je?U.children.map(Ve=>{const{fileId:qe}=Ve,{path:Ke}=Ve,it=qe||Ke;return j.jsx(XL,{entity:Ve,handleFileClick:pe,handleFileDoubleClick:Me},it)}):j.jsxs("div",{className:"empty",children:[j.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),j.jsx("div",{className:"empty-text",children:"Drop files here!"})]})})})]}),!E&&!v&&j.jsxs("div",{className:"ai-buttons",children:[je&&j.jsxs("button",{className:"ai-button export-button",onClick:Re,title:"Export files to ZIP",children:[j.jsx(Pre,{size:14,"aria-hidden":"true"}),Z]}),je&&j.jsxs("button",{className:"ai-button copy-button",onClick:ve,title:"Copy files formatted for AI",children:[j.jsx(xre,{size:14,"aria-hidden":"true"}),L]}),j.jsxs("button",{className:"ai-button paste-button",onClick:Ae,title:"Paste files from AI",children:[j.jsx(wre,{size:14,"aria-hidden":"true"}),ee]}),je&&j.jsxs("button",{className:"ai-button delete-all-button",onClick:F,title:"Delete all files",children:[j.jsx(Ere,{size:14,"aria-hidden":"true"}),"Delete all files"]})]}),j.jsxs("div",{className:"connection-status",children:[Ue?"Connecting...":C?I?"Saving...":Se?"Saved.":"Connected":"Connection Lost",j.jsx("div",{className:"connection",children:j.jsx("div",{className:`connection-status-indicator ${Ue?"pending":C?I?"pending":"connected":"disconnected"}`})})]}),H&&j.jsx(VL,{show:H,onClose:me,onConfirm:Oe,isDirectory:!1,name:"all files"})]})},Lhe=({initialFileName:t=""})=>{const[e,n]=M.useState(t),r=M.useRef(null),{files:i,isCreateDirModalOpen:s,handleCloseCreateDirModal:o,handleCreateDirClick:a}=M.useContext(pr);M.useEffect(()=>{s&&r.current&&r.current.focus()},[s]);const l=M.useCallback(d=>{n(d.target.value)},[]),u=M.useCallback(()=>{a(e),n("")},[e,a]),c=M.useCallback(d=>{let p;p=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const O in i)d+"/"===i[O].name&&(p=!1);return p},[i]),f=M.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return s?j.jsxs(ar,{show:s,onHide:o,animation:!1,onKeyDown:f,children:[j.jsx(ar.Header,{closeButton:!0,children:j.jsx(ar.Title,{children:"Create Directory"})}),j.jsx(ar.Body,{children:j.jsxs(dr.Group,{controlId:"fileName",children:[j.jsx(dr.Label,{children:"Directory Name"}),j.jsx(dr.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),j.jsx(dr.Text,{children:"Enter the name for your file"})]})}),j.jsx(ar.Footer,{children:j.jsx(fu,{variant:"primary",onClick:u,disabled:!c(e),children:"Create Directory"})})]}):null},Fhe=({initialFileName:t=""})=>{const[e,n]=M.useState(t),r=M.useRef(null),{files:i,isCreateFileModalOpen:s,handleCloseCreateFileModal:o,handleCreateFileClick:a}=M.useContext(pr);M.useEffect(()=>{s&&r.current&&r.current.focus()},[s]);const l=M.useCallback(d=>{n(d.target.value)},[]),u=M.useCallback(()=>{a(e),n("")},[e,a]),c=M.useCallback(d=>{let p;p=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const O in i)d===i[O].name&&(p=!1);return p},[i]),f=M.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return s?j.jsxs(ar,{show:s,onHide:o,animation:!1,onKeyDown:f,children:[j.jsx(ar.Header,{closeButton:!0,children:j.jsx(ar.Title,{children:"Create File"})}),j.jsx(ar.Body,{children:j.jsxs(dr.Group,{controlId:"fileName",children:[j.jsx(dr.Label,{children:"File Name"}),j.jsx(dr.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),j.jsx(dr.Text,{children:"Enter the name for your file"})]})}),j.jsx(ar.Footer,{children:j.jsx(fu,{variant:"primary",onClick:u,disabled:!c(e),children:"Create File"})})]}):null},Bhe=({enableUsernameField:t=!0,enableAIChat:e,aiChatButtonEvent:n}={})=>j.jsxs("div",{className:"left",children:[j.jsx(Nhe,{enableAIChat:e,aiChatButtonEvent:n}),j.jsx(pre,{enableUsernameField:t}),j.jsx(cre,{enableUsernameField:t}),j.jsx(Fhe,{}),j.jsx(Lhe,{}),s4]}),qhe=t=>{const e=t.split("/");return e.length===1?e[e.length-1]:e[e.length-2]+"/"+e[e.length-1]},zhe=({fileId:t,isTransient:e,isActive:n,setActiveFileId:r,openTab:i,closeTabs:s,fileName:o})=>{const a=M.useCallback(f=>{f.stopPropagation(),s([t])},[s,t]),l=M.useMemo(()=>qhe(o),[o]),u=M.useCallback(()=>{r(t)},[t,r]),c=M.useCallback(()=>{i({fileId:t})},[t,i]);return j.jsxs("div",{className:`tab ${n?"active":""} ${e?"transient":""}`,onClick:u,onDoubleClick:c,children:[l,j.jsx("i",{className:"vz-icon-button",onClick:a,children:j.jsx(Vm,{})})]})},Uhe=({activeFileId:t,tabList:e})=>{const{files:n,setActiveFileId:r,openTab:i,closeTabs:s}=M.useContext(pr);return j.jsx("div",{className:"vz-tab-list",children:n&&e.filter(o=>o.fileId in n).map(o=>j.jsx(zhe,{fileId:o.fileId,isTransient:o.isTransient,isActive:o.fileId===t,setActiveFileId:r,openTab:i,closeTabs:s,fileName:n[o.fileId].name},o.fileId))})},Zhe=["files"],Vhe=({customInteractRules:t,aiCopilotEndpoint:e,esLintSource:n,enableBuiltInAIChat:r=!0})=>{const{activePane:i,shareDBDoc:s,submitOperation:o,localPresence:a,docPresence:l,username:u,editorCache:c,editorWantsFocus:f,editorNoLongerWantsFocus:d,theme:p,codeEditorRef:g,enableAutoFollow:O,setIsAIChatOpen:y,setAIChatMessage:b}=M.useContext(pr),v=M.useRef(null),S=M.useCallback(()=>{v.current?clearTimeout(v.current):o(R=>({...R,isInteracting:!0})),v.current=setTimeout(()=>{v.current=null,o(({isInteracting:R,..._})=>({..._}))},800)},[o]),x=M.useRef(u);x.current=u;const P=M.useRef(O);M.useEffect(()=>{P.current=O},[O]);const[E,D]=M.useState(null);return M.useEffect(()=>{if(!s)return;let R=!0;return(async()=>{const C=await sK({fileId:i.activeFileId,shareDBDoc:s,filesPath:Zhe,localPresence:a,docPresence:l,theme:p,onInteract:S,editorCache:c,usernameRef:x,customInteractRules:t,enableAutoFollowRef:P,aiCopilotEndpoint:e,esLintSource:n,setIsAIChatOpen:y,setAIChatMessage:b,enableBuiltInAIChat:r});R&&D(C)})(),()=>{R=!1}},[i,s,a,l,p,S,c,t,e,n,y,b,r]),M.useLayoutEffect(()=>{if(!g.current||!E)return;const R=g.current;return R.appendChild(E.editor.dom),E.editor.scrollDOM.scrollTo({top:E.scrollPosition??0}),()=>{E&&R?.contains(E.editor.dom)&&(E.scrollPosition=E.editor.scrollDOM.scrollTop,R.removeChild(E.editor.dom))}},[g,E]),M.useEffect(()=>{f&&E&&(E.editor.focus(),d())},[f,E,d]),j.jsx("div",{className:"vz-code-editor",ref:g,tabIndex:-1})},Whe=()=>{const{activePane:t,content:e}=M.useContext(pr),n=t?.activeFileId,r=n&&e?.files?.[n];if(!r)return j.jsx("div",{className:"image-viewer-error",children:"No file selected"});if(!r.name.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i))return j.jsx("div",{className:"image-viewer-error",children:"Not an image file"});const o=(u=>{switch(u.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";case"bmp":return"image/bmp";case"svg":return"image/svg+xml";case"webp":return"image/webp";default:return"image/png"}})(r.name),l=r.name.split(".").pop()?.toLowerCase()==="svg"&&!r.text.startsWith("PHN2Zw")?`data:${o};utf8,${encodeURIComponent(r.text)}`:`data:${o};base64,${r.text}`;return j.jsx("div",{className:"image-viewer",children:j.jsx("div",{className:"image-viewer-content",children:j.jsx("img",{src:l,alt:r.name,className:"image-viewer-img",onError:u=>{console.error("Failed to load image:",r.name),u.target.style.display="none"}})})})},Xhe=({errorMessage:t,content:e})=>{const[n,r]=M.useState(!0);M.useEffect(()=>{t!==null&&r(!0)},[t]);const i=M.useCallback(()=>{r(!1)},[]);return M.useEffect(()=>{const s=o=>{o.key==="Escape"&&i()};return document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("keydown",s,!0)}},[i]),n&&t!==null?j.jsxs("div",{className:"vz-code-error-overlay",children:[j.jsx("pre",{children:t}),j.jsx("i",{className:"vz-icon-button error-dismiss-button",onClick:i,children:j.jsx(Vm,{})})]}):null},$5=t=>{const[e]=t.split("-");return parseInt(e,36)},Hhe=(t,e)=>{const n=$5(t),r=$5(e);return n>r},Yhe=(t,e,n,r)=>{n.current.has(t)?n.current.set(t,e):(n.current.set(t,e),r(i=>[...i,{user:e,join:!0,presenceId:t}]))},Ghe=(t,e,n)=>{const r=e.current.get(t);r&&(e.current.delete(t),n(i=>[...i,{user:r,join:!1,presenceId:t}]))},Khe=({docPresence:t,localPresence:e})=>{const[n,r]=M.useState([]),i=M.useRef(new Map);return M.useEffect(()=>{if(t){const s=(o,a)=>{const l=a!==null;if(Hhe(o,e.presenceId)){if(l){const c=t.remotePresences[o]?.username;Yhe(o,c,i,r)}else Ghe(o,i,r);const u=setTimeout(()=>{r(c=>c.slice(1))},5e3);return()=>{clearTimeout(u)}}};return t.on("receive",s),()=>{t.off("receive",s)}}},[t,e]),n.length>0?j.jsx("div",{className:"vz-notification",children:n.map(({user:s,join:o,presenceId:a})=>j.jsx("div",{className:"vz-notification-item",children:o?`${s} has joined the session.`:`${s} has left the session.`},a))}):null},Jhe=()=>(Math.random()+"").slice(2),ede=100,tde=2e3,nde=(t,e=!0)=>{const n=t.name?.substring(0,ede).trim(),r=(e?t.text?.substring(0,tde):t.text).trim();return["`"+n+"`:","```",r,"```"].join(`
|
|
355
|
+
`)},rde="/ai-assist",ide=async({view:t,shareDBDoc:e,fileId:n,tabList:r,aiAssistEndpoint:i=rde,aiAssistOptions:s={},aiStreamId:o})=>{const a=e.data.files[n].name,l=t.state.sliceDoc(0,t.state.selection.main.from),u=t.state.sliceDoc(t.state.selection.main.to),c=l+"<FILL_ME>"+u,f={name:a,text:c},d=t.state.selection.main.to;let p=nde(f,!1);const O=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,inputText:p,fileId:n,insertionCursor:d,aiStreamId:o})})).json();O.error&&console.error("[startAIAssist] error from server:",O.error)},sde=[{x:40,y:0,r:4},{x:28.28,y:28.28,r:4.85},{x:0,y:40,r:5.71},{x:-28.29,y:28.28,r:6.57},{x:-40,y:0,r:7.42},{x:-28.29,y:-28.29,r:8.28},{x:-.01,y:-40,r:9.14},{x:28.28,y:-28.29,r:10}],ode=({height:t=40,fill:e="currentcolor",fadeIn:n=!0})=>{const[r,i]=M.useState(!1);return M.useEffect(()=>{i(!0)},[]),r&&j.jsx("div",{className:`vz-spinner${n?" fade-in":""}`,children:j.jsx("svg",{height:t,viewBox:"0 0 100 100",style:{opacity:1},children:j.jsx("g",{transform:"translate(50, 50)",fill:e,children:j.jsx("g",{className:"vz-spinner-dots",children:sde.map(({x:s,y:o,r:a},l)=>j.jsx("circle",{cx:s,cy:o,r:a},l))})})})})},ade=({aiAssistEndpoint:t,aiAssistOptions:e,aiAssistTooltipText:n="Start AI Assist",aiAssistClickOverride:r,activeFileId:i,tabList:s,paneId:o})=>{const{shareDBDoc:a,editorCache:l,runPrettierRef:u,runCodeRef:c}=M.useContext(pr),[f,d]=M.useState(null),p=M.useCallback(async()=>{if(!(f!==null)){const y=Jhe();d(y),await ide({view:l.get(Jh(i,o)).editor,shareDBDoc:a,fileId:i,tabList:s,aiStreamId:y,aiAssistEndpoint:t,aiAssistOptions:e}),await new Promise(S=>setTimeout(S,1e3));const b=u.current;b!==null&&b();const v=c.current;v!==null&&v(),d(S=>S===y?null:S)}},[i,o,f,t,e,l,c,u,a,s]),g=f===null;return j.jsx("div",{className:"vz-code-ai-assist-widget",children:f?j.jsx(ode,{}):g&&j.jsx(Ni,{placement:"left",overlay:j.jsx(ji,{id:"ai-assist-widget-tooltip",children:n}),children:j.jsx("i",{className:"vz-icon-button",onClick:r||p,children:j.jsx(Bx,{})})})})},lde=!1,ude=({runCodeWidgetTooltipText:t=j.jsxs(j.Fragment,{children:[j.jsx("strong",{children:"Run Code"}),j.jsx("div",{children:"(Shift + Enter or Ctrl + s)"})]})})=>{const{runCodeRef:e,runPrettierRef:n,splitCurrentPane:r}=M.useContext(pr),[i,s]=M.useState(!1),o=M.useCallback(a=>{s(!0);const l=n.current;l!==null&&l();const u=e.current;u!==null&&u(),setTimeout(()=>s(!1),1e3)},[e,n]);return M.useCallback(()=>{r()},[r]),M.useEffect(()=>{const a=l=>{(l.ctrlKey&&l.key==="s"||l.shiftKey&&l.key==="Enter")&&(l.preventDefault(),o())};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[o]),j.jsxs("div",{children:[j.jsx("div",{className:"vz-code-split-view-widget",children:lde}),j.jsx("div",{className:"vz-code-run-code-widget",children:j.jsx(Ni,{placement:"bottom",overlay:j.jsx(ji,{id:"run-code-widget-tooltip",children:t}),children:j.jsx("i",{className:`vz-icon-button ${i?"rotate-icon":""}`,onClick:o,children:j.jsx(Mre,{})})})})]})},cde=t=>t.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i)!==null,fde=({pane:t,content:e,customInteractRules:n,enableAIAssist:r,aiAssistEndpoint:i,aiAssistOptions:s,aiAssistTooltipText:o,aiAssistClickOverride:a,aiCopilotEndpoint:l,esLintSource:u,enableBuiltInAIChat:c})=>{const[f,d]=M.useState(!1);return M.useEffect(()=>{d(!0)},[]),j.jsxs(j.Fragment,{children:[j.jsx(Uhe,{activeFileId:t.activeFileId,tabList:t.tabList}),f&&e&&t.activeFileId&&(()=>{const p=e.files[t.activeFileId];return p&&cde(p.name)?j.jsx(Whe,{}):j.jsx(Vhe,{customInteractRules:n,aiCopilotEndpoint:l,esLintSource:u,enableBuiltInAIChat:c})})(),f&&r&&e&&t.activeFileId?j.jsx(ade,{aiAssistEndpoint:i,aiAssistOptions:s,aiAssistTooltipText:o,aiAssistClickOverride:a,paneId:t.id,activeFileId:t.activeFileId,tabList:t.tabList}):null,j.jsx(ude,{})]})},hde=({enableAIAssist:t=!1,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:s,customInteractRules:o,esLintSource:a,enableAIChat:l=!0,aiChatButtonEvent:u})=>{const c=l&&!u,{codeEditorWidth:f}=M.useContext(rg),{content:d,localPresence:p,docPresence:g,pane:O,activePane:y,errorMessage:b}=M.useContext(pr);if(y.type!=="leafPane")throw new Error("Expected leafPane");return y.activeFileId!==null?j.jsxs("div",{className:"middle",style:{width:f+"px"},children:[j.jsx(fde,{pane:O,content:d,customInteractRules:o,enableAIAssist:t,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:s,esLintSource:a,enableBuiltInAIChat:c}),j.jsx(Xhe,{errorMessage:b,content:d}),j.jsx(Khe,{docPresence:g,localPresence:p})]}):null},dde=20,pde=200,T5=4,Q5=({side:t,isSidebarVisible:e=!0})=>{const{sidebarWidth:n,codeEditorWidth:r,moveSplitPane:i,isDraggingRight:s,isDraggingLeft:o,setIsDragging:a}=M.useContext(rg),{activePane:l}=M.useContext(pr),u=t==="left"||l.activeFileId,c=M.useRef(0),f=M.useCallback(b=>{b.preventDefault(),c.current=b.clientX,a(!0,t),document.body.style.cursor="col-resize"},[a,t]),d=M.useCallback(b=>{b.preventDefault();const v=b.clientX-c.current;c.current=b.clientX,i(v,t)},[i,t]),p=M.useCallback(()=>{a(!1,t),document.body.style.cursor="default"},[a,t]),g=t==="left"&&o||t==="right"&&s;M.useEffect(()=>{if(g)return document.addEventListener("mousemove",d),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p)}},[g,d,p]);const O=g?pde:dde,y=(t==="left"?n:e?n+r:r)-O/2;return u?j.jsx("div",{className:"vz-resizer",onMouseDown:f,style:{left:y+O/2-1.5,width:O},children:j.jsx("div",{className:"vz-resizer-thumb",style:{left:T5/2-1.5,width:T5}})}):null};var tn;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const r=n+1;t[t._accessor=r]="_accessor";const i=r+1;t[t._as=i]="_as";const s=i+1;t[t._assert=s]="_assert";const o=s+1;t[t._asserts=o]="_asserts";const a=o+1;t[t._async=a]="_async";const l=a+1;t[t._await=l]="_await";const u=l+1;t[t._checks=u]="_checks";const c=u+1;t[t._constructor=c]="_constructor";const f=c+1;t[t._declare=f]="_declare";const d=f+1;t[t._enum=d]="_enum";const p=d+1;t[t._exports=p]="_exports";const g=p+1;t[t._from=g]="_from";const O=g+1;t[t._get=O]="_get";const y=O+1;t[t._global=y]="_global";const b=y+1;t[t._implements=b]="_implements";const v=b+1;t[t._infer=v]="_infer";const S=v+1;t[t._interface=S]="_interface";const x=S+1;t[t._is=x]="_is";const P=x+1;t[t._keyof=P]="_keyof";const E=P+1;t[t._mixins=E]="_mixins";const D=E+1;t[t._module=D]="_module";const R=D+1;t[t._namespace=R]="_namespace";const _=R+1;t[t._of=_]="_of";const C=_+1;t[t._opaque=C]="_opaque";const I=C+1;t[t._out=I]="_out";const T=I+1;t[t._override=T]="_override";const B=T+1;t[t._private=B]="_private";const A=B+1;t[t._protected=A]="_protected";const X=A+1;t[t._proto=X]="_proto";const G=X+1;t[t._public=G]="_public";const W=G+1;t[t._readonly=W]="_readonly";const te=W+1;t[t._require=te]="_require";const J=te+1;t[t._satisfies=J]="_satisfies";const U=J+1;t[t._set=U]="_set";const z=U+1;t[t._static=z]="_static";const Y=z+1;t[t._symbol=Y]="_symbol";const L=Y+1;t[t._type=L]="_type";const se=L+1;t[t._unique=se]="_unique";const ee=se+1;t[t._using=ee]="_using"})(tn||(tn={}));var on;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const r=32;t[t.IS_ASSIGN=r]="IS_ASSIGN";const i=64;t[t.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const s=128;t[t.IS_PREFIX=s]="IS_PREFIX";const o=256;t[t.IS_POSTFIX=o]="IS_POSTFIX";const a=512;t[t.IS_EXPRESSION_START=a]="IS_EXPRESSION_START";const l=512;t[t.num=l]="num";const u=1536;t[t.bigint=u]="bigint";const c=2560;t[t.decimal=c]="decimal";const f=3584;t[t.regexp=f]="regexp";const d=4608;t[t.string=d]="string";const p=5632;t[t.name=p]="name";const g=6144;t[t.eof=g]="eof";const O=7680;t[t.bracketL=O]="bracketL";const y=8192;t[t.bracketR=y]="bracketR";const b=9728;t[t.braceL=b]="braceL";const v=10752;t[t.braceBarL=v]="braceBarL";const S=11264;t[t.braceR=S]="braceR";const x=12288;t[t.braceBarR=x]="braceBarR";const P=13824;t[t.parenL=P]="parenL";const E=14336;t[t.parenR=E]="parenR";const D=15360;t[t.comma=D]="comma";const R=16384;t[t.semi=R]="semi";const _=17408;t[t.colon=_]="colon";const C=18432;t[t.doubleColon=C]="doubleColon";const I=19456;t[t.dot=I]="dot";const T=20480;t[t.question=T]="question";const B=21504;t[t.questionDot=B]="questionDot";const A=22528;t[t.arrow=A]="arrow";const X=23552;t[t.template=X]="template";const G=24576;t[t.ellipsis=G]="ellipsis";const W=25600;t[t.backQuote=W]="backQuote";const te=27136;t[t.dollarBraceL=te]="dollarBraceL";const J=27648;t[t.at=J]="at";const U=29184;t[t.hash=U]="hash";const z=29728;t[t.eq=z]="eq";const Y=30752;t[t.assign=Y]="assign";const L=32640;t[t.preIncDec=L]="preIncDec";const se=33664;t[t.postIncDec=se]="postIncDec";const ee=34432;t[t.bang=ee]="bang";const ue=35456;t[t.tilde=ue]="tilde";const Z=35841;t[t.pipeline=Z]="pipeline";const V=36866;t[t.nullishCoalescing=V]="nullishCoalescing";const H=37890;t[t.logicalOR=H]="logicalOR";const he=38915;t[t.logicalAND=he]="logicalAND";const ve=39940;t[t.bitwiseOR=ve]="bitwiseOR";const Ae=40965;t[t.bitwiseXOR=Ae]="bitwiseXOR";const Re=41990;t[t.bitwiseAND=Re]="bitwiseAND";const F=43015;t[t.equality=F]="equality";const me=44040;t[t.lessThan=me]="lessThan";const Oe=45064;t[t.greaterThan=Oe]="greaterThan";const ie=46088;t[t.relationalOrEqual=ie]="relationalOrEqual";const re=47113;t[t.bitShiftL=re]="bitShiftL";const pe=48137;t[t.bitShiftR=pe]="bitShiftR";const Me=49802;t[t.plus=Me]="plus";const je=50826;t[t.minus=je]="minus";const _e=51723;t[t.modulo=_e]="modulo";const q=52235;t[t.star=q]="star";const ye=53259;t[t.slash=ye]="slash";const xe=54348;t[t.exponent=xe]="exponent";const ce=55296;t[t.jsxName=ce]="jsxName";const Se=56320;t[t.jsxText=Se]="jsxText";const Ee=57344;t[t.jsxEmptyText=Ee]="jsxEmptyText";const Ue=58880;t[t.jsxTagStart=Ue]="jsxTagStart";const Ge=59392;t[t.jsxTagEnd=Ge]="jsxTagEnd";const Ne=60928;t[t.typeParameterStart=Ne]="typeParameterStart";const Ve=61440;t[t.nonNullAssertion=Ve]="nonNullAssertion";const qe=62480;t[t._break=qe]="_break";const Ke=63504;t[t._case=Ke]="_case";const it=64528;t[t._catch=it]="_catch";const at=65552;t[t._continue=at]="_continue";const kt=66576;t[t._debugger=kt]="_debugger";const We=67600;t[t._default=We]="_default";const St=68624;t[t._do=St]="_do";const Wt=69648;t[t._else=Wt]="_else";const jt=70672;t[t._finally=jt]="_finally";const At=71696;t[t._for=At]="_for";const Jt=73232;t[t._function=Jt]="_function";const kn=73744;t[t._if=kn]="_if";const gn=74768;t[t._return=gn]="_return";const ln=75792;t[t._switch=ln]="_switch";const jn=77456;t[t._throw=jn]="_throw";const un=77840;t[t._try=un]="_try";const Xn=78864;t[t._var=Xn]="_var";const Mn=79888;t[t._let=Mn]="_let";const Hn=80912;t[t._const=Hn]="_const";const An=81936;t[t._while=An]="_while";const le=82960;t[t._with=le]="_with";const fe=84496;t[t._new=fe]="_new";const ge=85520;t[t._this=ge]="_this";const Ce=86544;t[t._super=Ce]="_super";const Pe=87568;t[t._class=Pe]="_class";const Be=88080;t[t._extends=Be]="_extends";const Xe=89104;t[t._export=Xe]="_export";const He=90640;t[t._import=He]="_import";const Ze=91664;t[t._yield=Ze]="_yield";const lt=92688;t[t._null=lt]="_null";const ct=93712;t[t._true=ct]="_true";const pt=94736;t[t._false=pt]="_false";const gt=95256;t[t._in=gt]="_in";const ft=96280;t[t._instanceof=ft]="_instanceof";const dt=97936;t[t._typeof=dt]="_typeof";const st=98960;t[t._void=st]="_void";const bt=99984;t[t._delete=bt]="_delete";const Nt=100880;t[t._async=Nt]="_async";const Bt=101904;t[t._get=Bt]="_get";const On=102928;t[t._set=On]="_set";const zn=103952;t[t._declare=zn]="_declare";const Yn=104976;t[t._readonly=Yn]="_readonly";const tr=106e3;t[t._abstract=tr]="_abstract";const In=107024;t[t._static=In]="_static";const nr=107536;t[t._public=nr]="_public";const Pt=108560;t[t._private=Pt]="_private";const Zt=109584;t[t._protected=Zt]="_protected";const Pn=110608;t[t._override=Pn]="_override";const Yt=112144;t[t._as=Yt]="_as";const rr=113168;t[t._enum=rr]="_enum";const Vt=114192;t[t._type=Vt]="_type";const yn=115216;t[t._implements=yn]="_implements"})(on||(on={}));var au;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const r=9;t[t.tab=r]="tab";const i=13;t[t.carriageReturn=i]="carriageReturn";const s=14;t[t.shiftOut=s]="shiftOut";const o=32;t[t.space=o]="space";const a=33;t[t.exclamationMark=a]="exclamationMark";const l=34;t[t.quotationMark=l]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const c=36;t[t.dollarSign=c]="dollarSign";const f=37;t[t.percentSign=f]="percentSign";const d=38;t[t.ampersand=d]="ampersand";const p=39;t[t.apostrophe=p]="apostrophe";const g=40;t[t.leftParenthesis=g]="leftParenthesis";const O=41;t[t.rightParenthesis=O]="rightParenthesis";const y=42;t[t.asterisk=y]="asterisk";const b=43;t[t.plusSign=b]="plusSign";const v=44;t[t.comma=v]="comma";const S=45;t[t.dash=S]="dash";const x=46;t[t.dot=x]="dot";const P=47;t[t.slash=P]="slash";const E=48;t[t.digit0=E]="digit0";const D=49;t[t.digit1=D]="digit1";const R=50;t[t.digit2=R]="digit2";const _=51;t[t.digit3=_]="digit3";const C=52;t[t.digit4=C]="digit4";const I=53;t[t.digit5=I]="digit5";const T=54;t[t.digit6=T]="digit6";const B=55;t[t.digit7=B]="digit7";const A=56;t[t.digit8=A]="digit8";const X=57;t[t.digit9=X]="digit9";const G=58;t[t.colon=G]="colon";const W=59;t[t.semicolon=W]="semicolon";const te=60;t[t.lessThan=te]="lessThan";const J=61;t[t.equalsTo=J]="equalsTo";const U=62;t[t.greaterThan=U]="greaterThan";const z=63;t[t.questionMark=z]="questionMark";const Y=64;t[t.atSign=Y]="atSign";const L=65;t[t.uppercaseA=L]="uppercaseA";const se=66;t[t.uppercaseB=se]="uppercaseB";const ee=67;t[t.uppercaseC=ee]="uppercaseC";const ue=68;t[t.uppercaseD=ue]="uppercaseD";const Z=69;t[t.uppercaseE=Z]="uppercaseE";const V=70;t[t.uppercaseF=V]="uppercaseF";const H=71;t[t.uppercaseG=H]="uppercaseG";const he=72;t[t.uppercaseH=he]="uppercaseH";const ve=73;t[t.uppercaseI=ve]="uppercaseI";const Ae=74;t[t.uppercaseJ=Ae]="uppercaseJ";const Re=75;t[t.uppercaseK=Re]="uppercaseK";const F=76;t[t.uppercaseL=F]="uppercaseL";const me=77;t[t.uppercaseM=me]="uppercaseM";const Oe=78;t[t.uppercaseN=Oe]="uppercaseN";const ie=79;t[t.uppercaseO=ie]="uppercaseO";const re=80;t[t.uppercaseP=re]="uppercaseP";const pe=81;t[t.uppercaseQ=pe]="uppercaseQ";const Me=82;t[t.uppercaseR=Me]="uppercaseR";const je=83;t[t.uppercaseS=je]="uppercaseS";const _e=84;t[t.uppercaseT=_e]="uppercaseT";const q=85;t[t.uppercaseU=q]="uppercaseU";const ye=86;t[t.uppercaseV=ye]="uppercaseV";const xe=87;t[t.uppercaseW=xe]="uppercaseW";const ce=88;t[t.uppercaseX=ce]="uppercaseX";const Se=89;t[t.uppercaseY=Se]="uppercaseY";const Ee=90;t[t.uppercaseZ=Ee]="uppercaseZ";const Ue=91;t[t.leftSquareBracket=Ue]="leftSquareBracket";const Ge=92;t[t.backslash=Ge]="backslash";const Ne=93;t[t.rightSquareBracket=Ne]="rightSquareBracket";const Ve=94;t[t.caret=Ve]="caret";const qe=95;t[t.underscore=qe]="underscore";const Ke=96;t[t.graveAccent=Ke]="graveAccent";const it=97;t[t.lowercaseA=it]="lowercaseA";const at=98;t[t.lowercaseB=at]="lowercaseB";const kt=99;t[t.lowercaseC=kt]="lowercaseC";const We=100;t[t.lowercaseD=We]="lowercaseD";const St=101;t[t.lowercaseE=St]="lowercaseE";const Wt=102;t[t.lowercaseF=Wt]="lowercaseF";const jt=103;t[t.lowercaseG=jt]="lowercaseG";const At=104;t[t.lowercaseH=At]="lowercaseH";const Jt=105;t[t.lowercaseI=Jt]="lowercaseI";const kn=106;t[t.lowercaseJ=kn]="lowercaseJ";const gn=107;t[t.lowercaseK=gn]="lowercaseK";const ln=108;t[t.lowercaseL=ln]="lowercaseL";const jn=109;t[t.lowercaseM=jn]="lowercaseM";const un=110;t[t.lowercaseN=un]="lowercaseN";const Xn=111;t[t.lowercaseO=Xn]="lowercaseO";const Mn=112;t[t.lowercaseP=Mn]="lowercaseP";const Hn=113;t[t.lowercaseQ=Hn]="lowercaseQ";const An=114;t[t.lowercaseR=An]="lowercaseR";const le=115;t[t.lowercaseS=le]="lowercaseS";const fe=116;t[t.lowercaseT=fe]="lowercaseT";const ge=117;t[t.lowercaseU=ge]="lowercaseU";const Ce=118;t[t.lowercaseV=Ce]="lowercaseV";const Pe=119;t[t.lowercaseW=Pe]="lowercaseW";const Be=120;t[t.lowercaseX=Be]="lowercaseX";const Xe=121;t[t.lowercaseY=Xe]="lowercaseY";const He=122;t[t.lowercaseZ=He]="lowercaseZ";const Ze=123;t[t.leftCurlyBrace=Ze]="leftCurlyBrace";const lt=124;t[t.verticalBar=lt]="verticalBar";const ct=125;t[t.rightCurlyBrace=ct]="rightCurlyBrace";const pt=126;t[t.tilde=pt]="tilde";const gt=160;t[t.nonBreakingSpace=gt]="nonBreakingSpace";const ft=5760;t[t.oghamSpaceMark=ft]="oghamSpaceMark";const dt=8232;t[t.lineSeparator=dt]="lineSeparator";const st=8233;t[t.paragraphSeparator=st]="paragraphSeparator"})(au||(au={}));const s6=[9,11,12,au.space,au.nonBreakingSpace,au.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],mde=new Uint8Array(65536);for(const t of s6)mde[t]=1;function gde(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const cf=new Uint8Array(65536);for(let t=0;t<128;t++)cf[t]=gde(t)?1:0;for(let t=128;t<65536;t++)cf[t]=1;for(const t of s6)cf[t]=0;cf[8232]=0;cf[8233]=0;const Ode=cf.slice();for(let t=au.digit0;t<=au.digit9;t++)Ode[t]=0;new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,tn._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,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,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(on._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(on._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(on._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var M5;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const r=n+1;t[t.TopLevelDeclaration=r]="TopLevelDeclaration";const i=r+1;t[t.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const s=i+1;t[t.BlockScopedDeclaration=s]="BlockScopedDeclaration";const o=s+1;t[t.ObjectShorthandTopLevelDeclaration=o]="ObjectShorthandTopLevelDeclaration";const a=o+1;t[t.ObjectShorthandFunctionScopedDeclaration=a]="ObjectShorthandFunctionScopedDeclaration";const l=a+1;t[t.ObjectShorthandBlockScopedDeclaration=l]="ObjectShorthandBlockScopedDeclaration";const u=l+1;t[t.ObjectShorthand=u]="ObjectShorthand";const c=u+1;t[t.ImportDeclaration=c]="ImportDeclaration";const f=c+1;t[t.ObjectKey=f]="ObjectKey";const d=f+1;t[t.ImportAccess=d]="ImportAccess"})(M5||(M5={}));var I5;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const r=n+1;t[t.StaticChildren=r]="StaticChildren";const i=r+1;t[t.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(I5||(I5={}));var D5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yde=new Uint8Array(64),vde=new Uint8Array(128);for(let t=0;t<D5.length;t++){const e=D5.charCodeAt(t);yde[t]=e,vde[e]=t}var em={exports:{}},bde=em.exports,j5;function wde(){return j5||(j5=1,(function(t,e){(function(n,r){t.exports=r()})(bde,(function(){const n=/^[\w+.-]+:\/\//,r=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(v){return n.test(v)}function o(v){return v.startsWith("//")}function a(v){return v.startsWith("/")}function l(v){return v.startsWith("file:")}function u(v){return/^[.?#]/.test(v)}function c(v){const S=r.exec(v);return d(S[1],S[2]||"",S[3],S[4]||"",S[5]||"/",S[6]||"",S[7]||"")}function f(v){const S=i.exec(v),x=S[2];return d("file:","",S[1]||"","",a(x)?x:"/"+x,S[3]||"",S[4]||"")}function d(v,S,x,P,E,D,R){return{scheme:v,user:S,host:x,port:P,path:E,query:D,hash:R,type:7}}function p(v){if(o(v)){const x=c("http:"+v);return x.scheme="",x.type=6,x}if(a(v)){const x=c("http://foo.com"+v);return x.scheme="",x.host="",x.type=5,x}if(l(v))return f(v);if(s(v))return c(v);const S=c("http://foo.com/"+v);return S.scheme="",S.host="",S.type=v?v.startsWith("?")?3:v.startsWith("#")?2:4:1,S}function g(v){if(v.endsWith("/.."))return v;const S=v.lastIndexOf("/");return v.slice(0,S+1)}function O(v,S){y(S,S.type),v.path==="/"?v.path=S.path:v.path=g(S.path)+v.path}function y(v,S){const x=S<=4,P=v.path.split("/");let E=1,D=0,R=!1;for(let C=1;C<P.length;C++){const I=P[C];if(!I){R=!0;continue}if(R=!1,I!=="."){if(I===".."){D?(R=!0,D--,E--):x&&(P[E++]=I);continue}P[E++]=I,D++}}let _="";for(let C=1;C<E;C++)_+="/"+P[C];(!_||R&&!_.endsWith("/.."))&&(_+="/"),v.path=_}function b(v,S){if(!v&&!S)return"";const x=p(v);let P=x.type;if(S&&P!==7){const D=p(S),R=D.type;switch(P){case 1:x.hash=D.hash;case 2:x.query=D.query;case 3:case 4:O(x,D);case 5:x.user=D.user,x.host=D.host,x.port=D.port;case 6:x.scheme=D.scheme}R>P&&(P=R)}y(x,P);const E=x.query+x.hash;switch(P){case 2:case 3:return E;case 4:{const D=x.path.slice(1);return D?u(S||v)&&!u(D)?"./"+D+E:D+E:E||"."}case 5:return x.path+E;default:return x.scheme+"//"+x.user+x.host+x.port+x.path+E}}return b}))})(em)),em.exports}wde();var dh={},ph={},Ns={},N5;function PS(){if(N5)return Ns;N5=1;var t=Ns&&Ns.__extends||(function(){var s=function(o,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var c in u)u.hasOwnProperty(c)&&(l[c]=u[c])},s(o,a)};return function(o,a){s(o,a);function l(){this.constructor=o}o.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}})();Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.DetailContext=Ns.NoopContext=Ns.VError=void 0;var e=(function(s){t(o,s);function o(a,l){var u=s.call(this,l)||this;return u.path=a,Object.setPrototypeOf(u,o.prototype),u}return o})(Error);Ns.VError=e;var n=(function(){function s(){}return s.prototype.fail=function(o,a,l){return!1},s.prototype.unionResolver=function(){return this},s.prototype.createContext=function(){return this},s.prototype.resolveUnion=function(o){},s})();Ns.NoopContext=n;var r=(function(){function s(){this._propNames=[""],this._messages=[null],this._score=0}return s.prototype.fail=function(o,a,l){return this._propNames.push(o),this._messages.push(a),this._score+=l,!1},s.prototype.unionResolver=function(){return new i},s.prototype.resolveUnion=function(o){for(var a,l,u=o,c=null,f=0,d=u.contexts;f<d.length;f++){var p=d[f];(!c||p._score>=c._score)&&(c=p)}c&&c._score>0&&((a=this._propNames).push.apply(a,c._propNames),(l=this._messages).push.apply(l,c._messages))},s.prototype.getError=function(o){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];o+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push(o+" "+c)}return new e(o,a.join("; "))},s.prototype.getErrorDetail=function(o){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];o+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push({path:o,message:c})}for(var f=null,l=a.length-1;l>=0;l--)f&&(a[l].nested=[f]),f=a[l];return f},s})();Ns.DetailContext=r;var i=(function(){function s(){this.contexts=[]}return s.prototype.createContext=function(){var o=new r;return this.contexts.push(o),o},s})();return Ns}var L5;function F5(){return L5||(L5=1,(function(t){var e=ph&&ph.__extends||(function(){var ee=function(ue,Z){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,H){V.__proto__=H}||function(V,H){for(var he in H)H.hasOwnProperty(he)&&(V[he]=H[he])},ee(ue,Z)};return function(ue,Z){ee(ue,Z);function V(){this.constructor=ue}ue.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}})();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=PS(),r=(function(){function ee(){}return ee})();t.TType=r;function i(ee){return typeof ee=="string"?o(ee):ee}function s(ee,ue){var Z=ee[ue];if(!Z)throw new Error("Unknown type "+ue);return Z}function o(ee){return new a(ee)}t.name=o;var a=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.name=Z,V._failMsg="is not a "+Z,V}return ue.prototype.getChecker=function(Z,V,H){var he=this,ve=s(Z,this.name),Ae=ve.getChecker(Z,V,H);return ve instanceof te||ve instanceof ue?Ae:function(Re,F){return Ae(Re,F)?!0:F.fail(null,he._failMsg,0)}},ue})(r);t.TName=a;function l(ee){return new u(ee)}t.lit=l;var u=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.value=Z,V.name=JSON.stringify(Z),V._failMsg="is not "+V.name,V}return ue.prototype.getChecker=function(Z,V){var H=this;return function(he,ve){return he===H.value?!0:ve.fail(null,H._failMsg,-1)}},ue})(r);t.TLiteral=u;function c(ee){return new f(i(ee))}t.array=c;var f=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttype=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this.ttype.getChecker(Z,V);return function(he,ve){if(!Array.isArray(he))return ve.fail(null,"is not an array",0);for(var Ae=0;Ae<he.length;Ae++){var Re=H(he[Ae],ve);if(!Re)return ve.fail(Ae,null,1)}return!0}},ue})(r);t.TArray=f;function d(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new p(ee.map(function(Z){return i(Z)}))}t.tuple=d;var p=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttypes=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this.ttypes.map(function(ve){return ve.getChecker(Z,V)}),he=function(ve,Ae){if(!Array.isArray(ve))return Ae.fail(null,"is not an array",0);for(var Re=0;Re<H.length;Re++){var F=H[Re](ve[Re],Ae);if(!F)return Ae.fail(Re,null,1)}return!0};return V?function(ve,Ae){return he(ve,Ae)?ve.length<=H.length?!0:Ae.fail(H.length,"is extraneous",2):!1}:he},ue})(r);t.TTuple=p;function g(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new O(ee.map(function(Z){return i(Z)}))}t.union=g;var O=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;V.ttypes=Z;var H=Z.map(function(ve){return ve instanceof a||ve instanceof u?ve.name:null}).filter(function(ve){return ve}),he=Z.length-H.length;return H.length?(he>0&&H.push(he+" more"),V._failMsg="is none of "+H.join(", ")):V._failMsg="is none of "+he+" types",V}return ue.prototype.getChecker=function(Z,V){var H=this,he=this.ttypes.map(function(ve){return ve.getChecker(Z,V)});return function(ve,Ae){for(var Re=Ae.unionResolver(),F=0;F<he.length;F++){var me=he[F](ve,Re.createContext());if(me)return!0}return Ae.resolveUnion(Re),Ae.fail(null,H._failMsg,0)}},ue})(r);t.TUnion=O;function y(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new b(ee.map(function(Z){return i(Z)}))}t.intersection=y;var b=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttypes=Z,V}return ue.prototype.getChecker=function(Z,V){var H=new Set,he=this.ttypes.map(function(ve){return ve.getChecker(Z,V,H)});return function(ve,Ae){var Re=he.every(function(F){return F(ve,Ae)});return Re?!0:Ae.fail(null,null,0)}},ue})(r);t.TIntersection=b;function v(ee){return new S(ee)}t.enumtype=v;var S=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.members=Z,V.validValues=new Set,V._failMsg="is not a valid enum value",V.validValues=new Set(Object.keys(Z).map(function(H){return Z[H]})),V}return ue.prototype.getChecker=function(Z,V){var H=this;return function(he,ve){return H.validValues.has(he)?!0:ve.fail(null,H._failMsg,0)}},ue})(r);t.TEnumType=S;function x(ee,ue){return new P(ee,ue)}t.enumlit=x;var P=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.enumName=Z,H.prop=V,H._failMsg="is not "+Z+"."+V,H}return ue.prototype.getChecker=function(Z,V){var H=this,he=s(Z,this.enumName);if(!(he instanceof S))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var ve=he.members[this.prop];if(!he.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(Ae,Re){return Ae===ve?!0:Re.fail(null,H._failMsg,-1)}},ue})(r);t.TEnumLiteral=P;function E(ee){return Object.keys(ee).map(function(ue){return D(ue,ee[ue])})}function D(ee,ue){return ue instanceof I?new T(ee,ue.ttype,!0):new T(ee,i(ue),!1)}function R(ee,ue){return new _(ee,E(ue))}t.iface=R;var _=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.bases=Z,H.props=V,H.propSet=new Set(V.map(function(he){return he.name})),H}return ue.prototype.getChecker=function(Z,V,H){var he=this,ve=this.bases.map(function(ie){return s(Z,ie).getChecker(Z,V)}),Ae=this.props.map(function(ie){return ie.ttype.getChecker(Z,V)}),Re=new n.NoopContext,F=this.props.map(function(ie,re){return!ie.isOpt&&!Ae[re](void 0,Re)}),me=function(ie,re){if(typeof ie!="object"||ie===null)return re.fail(null,"is not an object",0);for(var pe=0;pe<ve.length;pe++)if(!ve[pe](ie,re))return!1;for(var pe=0;pe<Ae.length;pe++){var Me=he.props[pe].name,je=ie[Me];if(je===void 0){if(F[pe])return re.fail(Me,"is missing",1)}else{var _e=Ae[pe](je,re);if(!_e)return re.fail(Me,null,1)}}return!0};if(!V)return me;var Oe=this.propSet;return H&&(this.propSet.forEach(function(ie){return H.add(ie)}),Oe=H),function(ie,re){if(!me(ie,re))return!1;for(var pe in ie)if(!Oe.has(pe))return re.fail(pe,"is extraneous",2);return!0}},ue})(r);t.TIface=_;function C(ee){return new I(i(ee))}t.opt=C;var I=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.ttype=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this.ttype.getChecker(Z,V);return function(he,ve){return he===void 0||H(he,ve)}},ue})(r);t.TOptional=I;var T=(function(){function ee(ue,Z,V){this.name=ue,this.ttype=Z,this.isOpt=V}return ee})();t.TProp=T;function B(ee){for(var ue=[],Z=1;Z<arguments.length;Z++)ue[Z-1]=arguments[Z];return new A(new W(ue),i(ee))}t.func=B;var A=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.paramList=Z,H.result=V,H}return ue.prototype.getChecker=function(Z,V){return function(H,he){return typeof H=="function"?!0:he.fail(null,"is not a function",0)}},ue})(r);t.TFunc=A;function X(ee,ue,Z){return new G(ee,i(ue),!!Z)}t.param=X;var G=(function(){function ee(ue,Z,V){this.name=ue,this.ttype=Z,this.isOpt=V}return ee})();t.TParam=G;var W=(function(ee){e(ue,ee);function ue(Z){var V=ee.call(this)||this;return V.params=Z,V}return ue.prototype.getChecker=function(Z,V){var H=this,he=this.params.map(function(F){return F.ttype.getChecker(Z,V)}),ve=new n.NoopContext,Ae=this.params.map(function(F,me){return!F.isOpt&&!he[me](void 0,ve)}),Re=function(F,me){if(!Array.isArray(F))return me.fail(null,"is not an array",0);for(var Oe=0;Oe<he.length;Oe++){var ie=H.params[Oe];if(F[Oe]===void 0){if(Ae[Oe])return me.fail(ie.name,"is missing",1)}else{var re=he[Oe](F[Oe],me);if(!re)return me.fail(ie.name,null,1)}}return!0};return V?function(F,me){return Re(F,me)?F.length<=he.length?!0:me.fail(he.length,"is extraneous",2):!1}:Re},ue})(r);t.TParamList=W;var te=(function(ee){e(ue,ee);function ue(Z,V){var H=ee.call(this)||this;return H.validator=Z,H.message=V,H}return ue.prototype.getChecker=function(Z,V){var H=this;return function(he,ve){return H.validator(he)?!0:ve.fail(null,H.message,0)}},ue})(r);t.BasicType=te,t.basicTypes={any:new te(function(ee){return!0},"is invalid"),number:new te(function(ee){return typeof ee=="number"},"is not a number"),object:new te(function(ee){return typeof ee=="object"&&ee},"is not an object"),boolean:new te(function(ee){return typeof ee=="boolean"},"is not a boolean"),string:new te(function(ee){return typeof ee=="string"},"is not a string"),symbol:new te(function(ee){return typeof ee=="symbol"},"is not a symbol"),void:new te(function(ee){return ee==null},"is not void"),undefined:new te(function(ee){return ee===void 0},"is not undefined"),null:new te(function(ee){return ee===null},"is not null"),never:new te(function(ee){return!1},"is unexpected"),Date:new te(U("[object Date]"),"is not a Date"),RegExp:new te(U("[object RegExp]"),"is not a RegExp")};var J=Object.prototype.toString;function U(ee){return function(ue){return typeof ue=="object"&&ue&&J.call(ue)===ee}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new te(function(ee){return Buffer.isBuffer(ee)},"is not a Buffer"));for(var z=function(ee){t.basicTypes[ee.name]=new te(function(ue){return ue instanceof ee},"is not a "+ee.name)},Y=0,L=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Y<L.length;Y++){var se=L[Y];z(se)}})(ph)),ph}var B5;function Sde(){return B5||(B5=1,(function(t){var e=dh&&dh.__spreadArrays||function(){for(var l=0,u=0,c=arguments.length;u<c;u++)l+=arguments[u].length;for(var f=Array(l),d=0,u=0;u<c;u++)for(var p=arguments[u],g=0,O=p.length;g<O;g++,d++)f[d]=p[g];return f};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=F5(),r=PS(),i=F5();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var s=PS();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return s.VError}});function o(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];for(var c=Object.assign.apply(Object,e([{},n.basicTypes],l)),f={},d=0,p=l;d<p.length;d++)for(var g=p[d],O=0,y=Object.keys(g);O<y.length;O++){var b=y[O];f[b]=new a(c,g[b])}return f}t.createCheckers=o;var a=(function(){function l(u,c,f){if(f===void 0&&(f="value"),this.suite=u,this.ttype=c,this._path=f,this.props=new Map,c instanceof n.TIface)for(var d=0,p=c.props;d<p.length;d++){var g=p[d];this.props.set(g.name,g.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return l.prototype.setReportedPath=function(u){this._path=u},l.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},l.prototype.test=function(u){return this.checkerPlain(u,new r.NoopContext)},l.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},l.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},l.prototype.strictTest=function(u){return this.checkerStrict(u,new r.NoopContext)},l.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},l.prototype.getProp=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);return new l(this.suite,c,this._path+"."+u)},l.prototype.methodArgs=function(u){var c=this._getMethod(u);return new l(this.suite,c.paramList)},l.prototype.methodResult=function(u){var c=this._getMethod(u);return new l(this.suite,c.result)},l.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new l(this.suite,this.ttype.paramList)},l.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new l(this.suite,this.ttype.result)},l.prototype.getType=function(){return this.ttype},l.prototype._doCheck=function(u,c){var f=new r.NoopContext;if(!u(c,f)){var d=new r.DetailContext;throw u(c,d),d.getError(this._path)}},l.prototype._doValidate=function(u,c){var f=new r.NoopContext;if(u(c,f))return null;var d=new r.DetailContext;return u(c,d),d.getErrorDetail(this._path)},l.prototype._getMethod=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);if(!(c instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return c},l})();t.Checker=a})(dh)),dh}var Ln=Sde();const xde=Ln.union(Ln.lit("jsx"),Ln.lit("typescript"),Ln.lit("flow"),Ln.lit("imports"),Ln.lit("react-hot-loader"),Ln.lit("jest")),kde=Ln.iface([],{compiledFilename:"string"}),Pde=Ln.iface([],{transforms:Ln.array("Transform"),disableESTransforms:Ln.opt("boolean"),jsxRuntime:Ln.opt(Ln.union(Ln.lit("classic"),Ln.lit("automatic"),Ln.lit("preserve"))),production:Ln.opt("boolean"),jsxImportSource:Ln.opt("string"),jsxPragma:Ln.opt("string"),jsxFragmentPragma:Ln.opt("string"),keepUnusedImports:Ln.opt("boolean"),preserveDynamicImport:Ln.opt("boolean"),injectCreateRequireForImportRequire:Ln.opt("boolean"),enableLegacyTypeScriptModuleInterop:Ln.opt("boolean"),enableLegacyBabel5ModuleInterop:Ln.opt("boolean"),sourceMapOptions:Ln.opt("SourceMapOptions"),filePath:Ln.opt("string")}),_de={Transform:xde,SourceMapOptions:kde,Options:Pde},{Options:ape}=Ln.createCheckers(_de);var q5;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const r=n+1;t[t.TSAbstractConstructorType=r]="TSAbstractConstructorType"})(q5||(q5={}));var Sb={},z5;function Ede(){return z5||(z5=1,(function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
|
|
356
|
+
`,n="\r",r=(function(){function i(s){this.string=s;for(var o=[0],a=0;a<s.length;)switch(s[a]){case e:a+=e.length,o.push(a);break;case n:a+=n.length,s[a]===e&&(a+=e.length),o.push(a);break;default:a++;break}this.offsets=o}return i.prototype.locationForIndex=function(s){if(s<0||s>this.string.length)return null;for(var o=0,a=this.offsets;a[o+1]<=s;)o++;var l=s-a[o];return{line:o,column:l}},i.prototype.indexForLocation=function(s){var o=s.line,a=s.column;return o<0||o>=this.offsets.length||a<0||a>this.lengthOfLine(o)?null:this.offsets[o]+a},i.prototype.lengthOfLine=function(s){var o=this.offsets[s],a=s===this.offsets.length-1?this.string.length:this.offsets[s+1];return a-o},i})();t.LinesAndColumns=r,t.default=r})(Sb)),Sb}Ede();const o6=()=>(Math.random()+"").slice(2),Cde=t=>async e=>{const n=o6();return new Promise(r=>{const i=s=>{s.data.type==="invalidateVizCacheResponse"&&s.data.requestId===n&&(t.removeEventListener("message",i),r())};t.addEventListener("message",i),t.postMessage({type:"invalidateVizCacheRequest",changedVizIds:e,requestId:n})})},Rde=({worker:t,setBuildErrorMessage:e})=>({files:n,enableSourcemap:r,vizId:i})=>{const s=o6();return new Promise(o=>{const a=u=>{const c=u.data;if(c.type==="buildResponse"&&c.requestId===s){t.removeEventListener("message",a);const f=c.buildResult,d=c.error;e?.(d||null),o(f)}};t.addEventListener("message",a);const l={type:"buildRequest",files:n,enableSourcemap:r,requestId:s,vizId:i};t.postMessage(l)})},xb="IDLE",kb="ENQUEUED",U5="PENDING_CLEAN",Pb="PENDING_DIRTY",Ade=({iframe:t,worker:e,setBuildErrorMessage:n,getLatestContent:r,resolveSlugKey:i,writeFile:s,handleRuntimeError:o})=>{let a=xb,l=null;const u=Rde({worker:e,setBuildErrorMessage:n}),c=({data:O})=>{if(O.type==="contentRequest"&&r){const{vizId:y}=O;r(y).then(b=>{e.postMessage({type:"contentResponse",vizId:y,content:b})})}else if(O.type==="resolveSlugRequest"){const{slugKey:y,requestId:b}=O;if(i)i(y).then(v=>{const S={type:"resolveSlugResponse",vizId:v,requestId:b};e.postMessage(S)});else{const v={type:"resolveSlugResponse",vizId:null,requestId:b};e.postMessage(v)}}};e.addEventListener("message",c);const f=O=>{const y=O.data;(y.type==="runDone"||y.type==="runError")&&y.type==="runError"&&n&&n(y.error.message),y.type==="runtimeError"&&o&&o(y.formattedErrorMessage),y.type==="writeFile"&&s&&y.fileName&&y.content&&s(y.fileName,y.content)};window.addEventListener("message",f);const d=()=>{e.removeEventListener("message",c),window.removeEventListener("message",f)},p=async({files:O,enableHotReloading:y=!1,enableSourcemap:b=!1,vizId:v,clearConsole:S=!0})=>{a=U5;const x=await u({files:O,enableSourcemap:b,vizId:v});if(x){const{html:P,runtimeVersion:E,js:D,css:R}=x;if(S&&console.clear(),y&&(E==="v3"||E==="v4")){if(R){const _={type:"runCSS",css:R};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(_,window.location.origin)}if(D){const _={type:"runJS",js:D};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(_,window.location.origin)}}else t.srcdoc=P||""}a===Pb?(requestAnimationFrame(()=>{if(!l)throw new Error("latestFiles is not defined and state is PENDING_DIRTY - this should never happen");p({files:l,enableHotReloading:y,enableSourcemap:b,vizId:v,clearConsole:S})}),a=kb):a=xb},g=({files:O,enableHotReloading:y=!1,enableSourcemap:b=!1,vizId:v=void 0,clearConsole:S=!0})=>{if(l=null,a===xb)a=kb,p({files:O,enableHotReloading:y,enableSourcemap:b,vizId:v,clearConsole:S});else if(a===U5)l=O,a=Pb;else if(a===Pb)l=O;else if(a===kb)l=O;else throw new Error(`Unexpected state: ${a}`)};return{invalidateVizCache:Cde(e),run:g,cleanup:d}};function $de(t){return new Worker("/assets/buildWorker-BZlya278.js",{name:t?.name})}const Tde=()=>{const t=M.useRef(null),e=M.useRef(!0),n=M.useRef(void 0),{content:r,handleRuntimeError:i,clearRuntimeError:s,iframeRef:o}=M.useContext(pr),a=M.useMemo(()=>r?bK(r.files):null,[r]),l=r?.isInteracting||!1,u=r?.runId,c=r?.hardRerun||!1,f=u!==n.current;return f&&(n.current=u),M.useEffect(()=>{if(a){if(!t.current&&o.current){const d=new $de;t.current=Ade({iframe:o.current,worker:d,setBuildErrorMessage:p=>{p&&console.error("Build error:",p)},handleRuntimeError:i})}(e.current||l||f)&&(s(),t.current?.run({files:a,enableHotReloading:l,enableSourcemap:!0,vizId:"example-viz",clearConsole:!1}),e.current=!1)}},[a,l,f,c,s,i,o]),j.jsx("div",{className:"right",children:j.jsx("iframe",{ref:o})})},Qde="vzCodeUsername",Mde="Anonymous",Ide=()=>{let t=Mde;if(typeof window<"u"){const e=window.localStorage.getItem(Qde);e!==null&&(t=e)}return t},Dde=t=>{const e=M.useRef(t);M.useEffect(()=>{e.current!==t&&(e.current=t,window.localStorage.setItem("vzCodeUsername",t))},[t])},jde=t=>e=>{const n=t.data,r=fF(n,e(n));r&&t&&t.submitOp(r)},Nde=t=>M.useCallback(()=>jde(t),[t])(),Lde=1e3,Fde=t=>{const e=M.useRef(),[n,r]=M.useState(!1),i=M.useCallback(()=>{t&&t.whenNothingPending(()=>{r(!1)})},[t,r]);return M.useEffect(()=>{t&&t.on("before op",()=>{r(!0),clearTimeout(e.current),e.current=setTimeout(()=>{i()},Lde)})},[t,i]),n},Bde=({connection:t})=>{const[e,n]=M.useState(null),[r,i]=M.useState(null),[s,o]=M.useState(null),[a,l]=M.useState(null),[u,c]=M.useState(!1);M.useEffect(()=>{t.on("connected",()=>{c(!0)}),t.on("disconnected",()=>{c(!1)});const p="documents",g="1",O=t.get(p,g);return O.subscribe(()=>{n(O),l(O.data),O.on("op",()=>{l(O.data)});const y=t.getDocPresence(p,g);y.subscribe(function(v){if(v)throw v});const b=()=>{const v=Date.now().toString(36),S=_w();return`${v}-${S}`};i(y.create(b())),o(y)}),()=>{}},[t]);const f=Fde(e),d=Nde(e);return{shareDBDoc:e,content:a,localPresence:r,docPresence:s,submitOperation:d,connected:u,pending:f}};function qde(t){return new Worker("/assets/worker-BfgPD8zR.js",{name:t?.name})}let zde=0;const _b=new Map,Ude=()=>{const[t,e]=M.useState(null);return M.useEffect(()=>{e(new qde)},[]),M.useEffect(()=>{if(!t)return;const r=i=>{const{diagnostics:s,requestId:o,error:a}=i.data;a&&console.error("[ESLint] Error:",a);const l=_b.get(o);l&&(l(s),_b.delete(o))};return t.addEventListener("message",r),()=>{t.removeEventListener("message",r),t.terminate()}},[t]),{esLintSource:M.useCallback(async r=>{const i=r.state.field(o4);try{const s=r.state.doc.toString(),o=zde++;return new Promise(a=>{_b.set(o,a),t.postMessage({code:s,requestId:o,fileName:i})})}catch(s){return console.error("[ESLint] Error in linter:",s),[]}},[t])}},Zde=t=>new URLSearchParams(t).get("file")?"files":"ai-chat",Vde=new hF;X5.types.register(Gl.type);const{Connection:Wde}=X5,Xde=window.location.protocol==="https:"?"wss://":"ws://",Hde=new WebSocket(Xde+window.location.host+"/ws"),Yde=new Wde(Hde),Gde=()=>{const{username:t}=M.useContext(pr);return Dde(t),null};function Kde(){const{shareDBDoc:t,content:e,localPresence:n,docPresence:r,submitOperation:i,connected:s,pending:o}=Bde({connection:Yde}),[a,l]=M.useState(void 0),[u,c]=M.useState(Cb()),[f,d]=M.useState(!1),{esLintSource:p}=Ude(),g=Ide(),[O]=M.useState(()=>Zde(window.location.search)),y=j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:"app",children:[j.jsx(Bhe,{}),j.jsx(hde,{aiCopilotEndpoint:null,esLintSource:p}),j.jsx(Tde,{}),j.jsx(Q5,{side:"left"}),j.jsx(Q5,{side:"right"})]}),j.jsx(Gde,{})]});return j.jsx(SF,{children:j.jsx(tre,{content:e,shareDBDoc:t,submitOperation:i,localPresence:n,docPresence:r,prettierWorker:Vde,initialUsername:g,initialSidebarView:O,connected:s,pending:o,liveKitRoomName:u,setLiveKitRoom:c,liveKitToken:a,setLiveKitToken:l,liveKitConnection:f,setLiveKitConnection:d,aiChatEndpoint:"/ai-chat-message",aiChatOptions:{},children:y})})}window.addEventListener("error",t=>{if(t.error instanceof RangeError&&t.error.message.includes("Trying to find position for a DOM position outside of the document"))return console.log("Suppressed CodeMirror DOM position error:",t.error),!0});W5.createRoot(document.getElementById("root")).render(j.jsx(tN,{children:j.jsx(Kde,{})}));
|