@opentui/core 0.1.1 → 0.1.2
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/3d.js +553 -235
- package/README.md +4 -4
- package/Renderable.d.ts +6 -3
- package/index.d.ts +1 -0
- package/index.js +359 -272
- package/lib/TrackedNode.d.ts +0 -1
- package/package.json +8 -8
- package/renderables/ASCIIFont.d.ts +1 -1
- package/renderables/Input.d.ts +23 -20
- package/renderables/Select.d.ts +37 -25
- package/renderables/TabSelect.d.ts +1 -1
- package/renderables/Text.d.ts +1 -1
- package/LICENSE +0 -21
package/3d.js
CHANGED
|
@@ -27,7 +27,7 @@ var __export = (target, all) => {
|
|
|
27
27
|
};
|
|
28
28
|
var __require = import.meta.require;
|
|
29
29
|
|
|
30
|
-
// node_modules/omggif/omggif.js
|
|
30
|
+
// ../../node_modules/omggif/omggif.js
|
|
31
31
|
var require_omggif = __commonJS((exports) => {
|
|
32
32
|
function GifWriter(buf, width, height, gopts) {
|
|
33
33
|
var p = 0;
|
|
@@ -575,7 +575,7 @@ var require_omggif = __commonJS((exports) => {
|
|
|
575
575
|
} catch (e) {}
|
|
576
576
|
});
|
|
577
577
|
|
|
578
|
-
// node_modules/gifwrap/src/bitmapimage.js
|
|
578
|
+
// ../../node_modules/gifwrap/src/bitmapimage.js
|
|
579
579
|
var require_bitmapimage = __commonJS((exports, module) => {
|
|
580
580
|
class BitmapImage {
|
|
581
581
|
constructor(...args) {
|
|
@@ -758,7 +758,7 @@ var require_bitmapimage = __commonJS((exports, module) => {
|
|
|
758
758
|
module.exports = BitmapImage;
|
|
759
759
|
});
|
|
760
760
|
|
|
761
|
-
// node_modules/gifwrap/src/gif.js
|
|
761
|
+
// ../../node_modules/gifwrap/src/gif.js
|
|
762
762
|
var require_gif = __commonJS((exports) => {
|
|
763
763
|
class Gif {
|
|
764
764
|
constructor(buffer, frames, spec) {
|
|
@@ -787,7 +787,7 @@ var require_gif = __commonJS((exports) => {
|
|
|
787
787
|
exports.GifError = GifError2;
|
|
788
788
|
});
|
|
789
789
|
|
|
790
|
-
// node_modules/image-q/dist/cjs/image-q.cjs
|
|
790
|
+
// ../../node_modules/image-q/dist/cjs/image-q.cjs
|
|
791
791
|
var require_image_q = __commonJS((exports, module) => {
|
|
792
792
|
var __defProp2 = Object.defineProperty;
|
|
793
793
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -3387,7 +3387,7 @@ var require_image_q = __commonJS((exports, module) => {
|
|
|
3387
3387
|
module.exports = __toCommonJS(src_exports);
|
|
3388
3388
|
});
|
|
3389
3389
|
|
|
3390
|
-
// node_modules/gifwrap/src/gifframe.js
|
|
3390
|
+
// ../../node_modules/gifwrap/src/gifframe.js
|
|
3391
3391
|
var require_gifframe = __commonJS((exports) => {
|
|
3392
3392
|
var BitmapImage = require_bitmapimage();
|
|
3393
3393
|
var { GifError: GifError2 } = require_gif();
|
|
@@ -3449,7 +3449,7 @@ var require_gifframe = __commonJS((exports) => {
|
|
|
3449
3449
|
exports.GifFrame = GifFrame;
|
|
3450
3450
|
});
|
|
3451
3451
|
|
|
3452
|
-
// node_modules/gifwrap/src/gifutil.js
|
|
3452
|
+
// ../../node_modules/gifwrap/src/gifutil.js
|
|
3453
3453
|
var require_gifutil = __commonJS((exports) => {
|
|
3454
3454
|
var fs = __require("fs");
|
|
3455
3455
|
var ImageQ = require_image_q();
|
|
@@ -3653,7 +3653,7 @@ var require_gifutil = __commonJS((exports) => {
|
|
|
3653
3653
|
}
|
|
3654
3654
|
});
|
|
3655
3655
|
|
|
3656
|
-
// node_modules/gifwrap/src/gifcodec.js
|
|
3656
|
+
// ../../node_modules/gifwrap/src/gifcodec.js
|
|
3657
3657
|
var require_gifcodec = __commonJS((exports) => {
|
|
3658
3658
|
var Omggif = require_omggif();
|
|
3659
3659
|
var { Gif, GifError: GifError2 } = require_gif();
|
|
@@ -3964,7 +3964,7 @@ var require_gifcodec = __commonJS((exports) => {
|
|
|
3964
3964
|
}
|
|
3965
3965
|
});
|
|
3966
3966
|
|
|
3967
|
-
// node_modules/gifwrap/src/index.js
|
|
3967
|
+
// ../../node_modules/gifwrap/src/index.js
|
|
3968
3968
|
var require_src = __commonJS((exports, module) => {
|
|
3969
3969
|
var BitmapImage = require_bitmapimage();
|
|
3970
3970
|
var { Gif, GifError: GifError2 } = require_gif();
|
|
@@ -3981,7 +3981,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
3981
3981
|
};
|
|
3982
3982
|
});
|
|
3983
3983
|
|
|
3984
|
-
// node_modules/jpeg-js/lib/encoder.js
|
|
3984
|
+
// ../../node_modules/jpeg-js/lib/encoder.js
|
|
3985
3985
|
var require_encoder = __commonJS((exports, module) => {
|
|
3986
3986
|
var btoa = btoa || function(buf) {
|
|
3987
3987
|
return Buffer.from(buf).toString("base64");
|
|
@@ -5061,7 +5061,7 @@ var require_encoder = __commonJS((exports, module) => {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
5063
|
|
|
5064
|
-
// node_modules/jpeg-js/lib/decoder.js
|
|
5064
|
+
// ../../node_modules/jpeg-js/lib/decoder.js
|
|
5065
5065
|
var require_decoder = __commonJS((exports, module) => {
|
|
5066
5066
|
var JpegImage = function jpegImage() {
|
|
5067
5067
|
var dctZigZag = new Int32Array([
|
|
@@ -6091,7 +6091,7 @@ var require_decoder = __commonJS((exports, module) => {
|
|
|
6091
6091
|
}
|
|
6092
6092
|
});
|
|
6093
6093
|
|
|
6094
|
-
// node_modules/jpeg-js/index.js
|
|
6094
|
+
// ../../node_modules/jpeg-js/index.js
|
|
6095
6095
|
var require_jpeg_js = __commonJS((exports, module) => {
|
|
6096
6096
|
var encode3 = require_encoder();
|
|
6097
6097
|
var decode3 = require_decoder();
|
|
@@ -6101,7 +6101,7 @@ var require_jpeg_js = __commonJS((exports, module) => {
|
|
|
6101
6101
|
};
|
|
6102
6102
|
});
|
|
6103
6103
|
|
|
6104
|
-
// node_modules/pngjs/lib/chunkstream.js
|
|
6104
|
+
// ../../node_modules/pngjs/lib/chunkstream.js
|
|
6105
6105
|
var require_chunkstream = __commonJS((exports, module) => {
|
|
6106
6106
|
var util = __require("util");
|
|
6107
6107
|
var Stream = __require("stream");
|
|
@@ -6233,7 +6233,7 @@ var require_chunkstream = __commonJS((exports, module) => {
|
|
|
6233
6233
|
};
|
|
6234
6234
|
});
|
|
6235
6235
|
|
|
6236
|
-
// node_modules/pngjs/lib/interlace.js
|
|
6236
|
+
// ../../node_modules/pngjs/lib/interlace.js
|
|
6237
6237
|
var require_interlace = __commonJS((exports) => {
|
|
6238
6238
|
var imagePasses = [
|
|
6239
6239
|
{
|
|
@@ -6306,7 +6306,7 @@ var require_interlace = __commonJS((exports) => {
|
|
|
6306
6306
|
};
|
|
6307
6307
|
});
|
|
6308
6308
|
|
|
6309
|
-
// node_modules/pngjs/lib/paeth-predictor.js
|
|
6309
|
+
// ../../node_modules/pngjs/lib/paeth-predictor.js
|
|
6310
6310
|
var require_paeth_predictor = __commonJS((exports, module) => {
|
|
6311
6311
|
module.exports = function paethPredictor(left, above, upLeft) {
|
|
6312
6312
|
let paeth = left + above - upLeft;
|
|
@@ -6323,7 +6323,7 @@ var require_paeth_predictor = __commonJS((exports, module) => {
|
|
|
6323
6323
|
};
|
|
6324
6324
|
});
|
|
6325
6325
|
|
|
6326
|
-
// node_modules/pngjs/lib/filter-parse.js
|
|
6326
|
+
// ../../node_modules/pngjs/lib/filter-parse.js
|
|
6327
6327
|
var require_filter_parse = __commonJS((exports, module) => {
|
|
6328
6328
|
var interlaceUtils = require_interlace();
|
|
6329
6329
|
var paethPredictor = require_paeth_predictor();
|
|
@@ -6458,7 +6458,7 @@ var require_filter_parse = __commonJS((exports, module) => {
|
|
|
6458
6458
|
};
|
|
6459
6459
|
});
|
|
6460
6460
|
|
|
6461
|
-
// node_modules/pngjs/lib/filter-parse-async.js
|
|
6461
|
+
// ../../node_modules/pngjs/lib/filter-parse-async.js
|
|
6462
6462
|
var require_filter_parse_async = __commonJS((exports, module) => {
|
|
6463
6463
|
var util = __require("util");
|
|
6464
6464
|
var ChunkStream = require_chunkstream();
|
|
@@ -6481,7 +6481,7 @@ var require_filter_parse_async = __commonJS((exports, module) => {
|
|
|
6481
6481
|
util.inherits(FilterAsync, ChunkStream);
|
|
6482
6482
|
});
|
|
6483
6483
|
|
|
6484
|
-
// node_modules/pngjs/lib/constants.js
|
|
6484
|
+
// ../../node_modules/pngjs/lib/constants.js
|
|
6485
6485
|
var require_constants = __commonJS((exports, module) => {
|
|
6486
6486
|
module.exports = {
|
|
6487
6487
|
PNG_SIGNATURE: [137, 80, 78, 71, 13, 10, 26, 10],
|
|
@@ -6508,7 +6508,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
6508
6508
|
};
|
|
6509
6509
|
});
|
|
6510
6510
|
|
|
6511
|
-
// node_modules/pngjs/lib/crc.js
|
|
6511
|
+
// ../../node_modules/pngjs/lib/crc.js
|
|
6512
6512
|
var require_crc = __commonJS((exports, module) => {
|
|
6513
6513
|
var crcTable = [];
|
|
6514
6514
|
(function() {
|
|
@@ -6545,7 +6545,7 @@ var require_crc = __commonJS((exports, module) => {
|
|
|
6545
6545
|
};
|
|
6546
6546
|
});
|
|
6547
6547
|
|
|
6548
|
-
// node_modules/pngjs/lib/parser.js
|
|
6548
|
+
// ../../node_modules/pngjs/lib/parser.js
|
|
6549
6549
|
var require_parser = __commonJS((exports, module) => {
|
|
6550
6550
|
var constants2 = require_constants();
|
|
6551
6551
|
var CrcCalculator = require_crc();
|
|
@@ -6762,7 +6762,7 @@ var require_parser = __commonJS((exports, module) => {
|
|
|
6762
6762
|
};
|
|
6763
6763
|
});
|
|
6764
6764
|
|
|
6765
|
-
// node_modules/pngjs/lib/bitmapper.js
|
|
6765
|
+
// ../../node_modules/pngjs/lib/bitmapper.js
|
|
6766
6766
|
var require_bitmapper = __commonJS((exports) => {
|
|
6767
6767
|
var interlaceUtils = require_interlace();
|
|
6768
6768
|
var pixelBppMapper = [
|
|
@@ -6973,7 +6973,7 @@ var require_bitmapper = __commonJS((exports) => {
|
|
|
6973
6973
|
};
|
|
6974
6974
|
});
|
|
6975
6975
|
|
|
6976
|
-
// node_modules/pngjs/lib/format-normaliser.js
|
|
6976
|
+
// ../../node_modules/pngjs/lib/format-normaliser.js
|
|
6977
6977
|
var require_format_normaliser = __commonJS((exports, module) => {
|
|
6978
6978
|
function dePalette(indata, outdata, width, height, palette2) {
|
|
6979
6979
|
let pxPos = 0;
|
|
@@ -7049,7 +7049,7 @@ var require_format_normaliser = __commonJS((exports, module) => {
|
|
|
7049
7049
|
};
|
|
7050
7050
|
});
|
|
7051
7051
|
|
|
7052
|
-
// node_modules/pngjs/lib/parser-async.js
|
|
7052
|
+
// ../../node_modules/pngjs/lib/parser-async.js
|
|
7053
7053
|
var require_parser_async = __commonJS((exports, module) => {
|
|
7054
7054
|
var util = __require("util");
|
|
7055
7055
|
var zlib = __require("zlib");
|
|
@@ -7171,7 +7171,7 @@ var require_parser_async = __commonJS((exports, module) => {
|
|
|
7171
7171
|
};
|
|
7172
7172
|
});
|
|
7173
7173
|
|
|
7174
|
-
// node_modules/pngjs/lib/bitpacker.js
|
|
7174
|
+
// ../../node_modules/pngjs/lib/bitpacker.js
|
|
7175
7175
|
var require_bitpacker = __commonJS((exports, module) => {
|
|
7176
7176
|
var constants2 = require_constants();
|
|
7177
7177
|
module.exports = function(dataIn, width, height, options) {
|
|
@@ -7300,7 +7300,7 @@ var require_bitpacker = __commonJS((exports, module) => {
|
|
|
7300
7300
|
};
|
|
7301
7301
|
});
|
|
7302
7302
|
|
|
7303
|
-
// node_modules/pngjs/lib/filter-pack.js
|
|
7303
|
+
// ../../node_modules/pngjs/lib/filter-pack.js
|
|
7304
7304
|
var require_filter_pack = __commonJS((exports, module) => {
|
|
7305
7305
|
var paethPredictor = require_paeth_predictor();
|
|
7306
7306
|
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
|
|
@@ -7439,7 +7439,7 @@ var require_filter_pack = __commonJS((exports, module) => {
|
|
|
7439
7439
|
};
|
|
7440
7440
|
});
|
|
7441
7441
|
|
|
7442
|
-
// node_modules/pngjs/lib/packer.js
|
|
7442
|
+
// ../../node_modules/pngjs/lib/packer.js
|
|
7443
7443
|
var require_packer = __commonJS((exports, module) => {
|
|
7444
7444
|
var constants2 = require_constants();
|
|
7445
7445
|
var CrcStream = require_crc();
|
|
@@ -7527,7 +7527,7 @@ var require_packer = __commonJS((exports, module) => {
|
|
|
7527
7527
|
};
|
|
7528
7528
|
});
|
|
7529
7529
|
|
|
7530
|
-
// node_modules/pngjs/lib/packer-async.js
|
|
7530
|
+
// ../../node_modules/pngjs/lib/packer-async.js
|
|
7531
7531
|
var require_packer_async = __commonJS((exports, module) => {
|
|
7532
7532
|
var util = __require("util");
|
|
7533
7533
|
var Stream = __require("stream");
|
|
@@ -7560,7 +7560,7 @@ var require_packer_async = __commonJS((exports, module) => {
|
|
|
7560
7560
|
};
|
|
7561
7561
|
});
|
|
7562
7562
|
|
|
7563
|
-
// node_modules/pngjs/lib/sync-inflate.js
|
|
7563
|
+
// ../../node_modules/pngjs/lib/sync-inflate.js
|
|
7564
7564
|
var require_sync_inflate = __commonJS((exports, module) => {
|
|
7565
7565
|
var assert = __require("assert").ok;
|
|
7566
7566
|
var zlib = __require("zlib");
|
|
@@ -7679,7 +7679,7 @@ var require_sync_inflate = __commonJS((exports, module) => {
|
|
|
7679
7679
|
exports.inflateSync = inflateSync;
|
|
7680
7680
|
});
|
|
7681
7681
|
|
|
7682
|
-
// node_modules/pngjs/lib/sync-reader.js
|
|
7682
|
+
// ../../node_modules/pngjs/lib/sync-reader.js
|
|
7683
7683
|
var require_sync_reader = __commonJS((exports, module) => {
|
|
7684
7684
|
var SyncReader = module.exports = function(buffer) {
|
|
7685
7685
|
this._buffer = buffer;
|
|
@@ -7713,7 +7713,7 @@ var require_sync_reader = __commonJS((exports, module) => {
|
|
|
7713
7713
|
};
|
|
7714
7714
|
});
|
|
7715
7715
|
|
|
7716
|
-
// node_modules/pngjs/lib/filter-parse-sync.js
|
|
7716
|
+
// ../../node_modules/pngjs/lib/filter-parse-sync.js
|
|
7717
7717
|
var require_filter_parse_sync = __commonJS((exports) => {
|
|
7718
7718
|
var SyncReader = require_sync_reader();
|
|
7719
7719
|
var Filter = require_filter_parse();
|
|
@@ -7733,7 +7733,7 @@ var require_filter_parse_sync = __commonJS((exports) => {
|
|
|
7733
7733
|
};
|
|
7734
7734
|
});
|
|
7735
7735
|
|
|
7736
|
-
// node_modules/pngjs/lib/parser-sync.js
|
|
7736
|
+
// ../../node_modules/pngjs/lib/parser-sync.js
|
|
7737
7737
|
var require_parser_sync = __commonJS((exports, module) => {
|
|
7738
7738
|
var hasSyncZlib = true;
|
|
7739
7739
|
var zlib = __require("zlib");
|
|
@@ -7819,7 +7819,7 @@ var require_parser_sync = __commonJS((exports, module) => {
|
|
|
7819
7819
|
};
|
|
7820
7820
|
});
|
|
7821
7821
|
|
|
7822
|
-
// node_modules/pngjs/lib/packer-sync.js
|
|
7822
|
+
// ../../node_modules/pngjs/lib/packer-sync.js
|
|
7823
7823
|
var require_packer_sync = __commonJS((exports, module) => {
|
|
7824
7824
|
var hasSyncZlib = true;
|
|
7825
7825
|
var zlib = __require("zlib");
|
|
@@ -7852,7 +7852,7 @@ var require_packer_sync = __commonJS((exports, module) => {
|
|
|
7852
7852
|
};
|
|
7853
7853
|
});
|
|
7854
7854
|
|
|
7855
|
-
// node_modules/pngjs/lib/png-sync.js
|
|
7855
|
+
// ../../node_modules/pngjs/lib/png-sync.js
|
|
7856
7856
|
var require_png_sync = __commonJS((exports) => {
|
|
7857
7857
|
var parse = require_parser_sync();
|
|
7858
7858
|
var pack = require_packer_sync();
|
|
@@ -7864,7 +7864,7 @@ var require_png_sync = __commonJS((exports) => {
|
|
|
7864
7864
|
};
|
|
7865
7865
|
});
|
|
7866
7866
|
|
|
7867
|
-
// node_modules/pngjs/lib/png.js
|
|
7867
|
+
// ../../node_modules/pngjs/lib/png.js
|
|
7868
7868
|
var require_png = __commonJS((exports) => {
|
|
7869
7869
|
var util = __require("util");
|
|
7870
7870
|
var Stream = __require("stream");
|
|
@@ -7988,7 +7988,7 @@ var require_png = __commonJS((exports) => {
|
|
|
7988
7988
|
};
|
|
7989
7989
|
});
|
|
7990
7990
|
|
|
7991
|
-
// node_modules/pako/lib/utils/common.js
|
|
7991
|
+
// ../../node_modules/pako/lib/utils/common.js
|
|
7992
7992
|
var require_common = __commonJS((exports) => {
|
|
7993
7993
|
var TYPED_OK = typeof Uint8Array !== "undefined" && typeof Uint16Array !== "undefined" && typeof Int32Array !== "undefined";
|
|
7994
7994
|
function _has(obj, key) {
|
|
@@ -8074,7 +8074,7 @@ var require_common = __commonJS((exports) => {
|
|
|
8074
8074
|
exports.setTyped(TYPED_OK);
|
|
8075
8075
|
});
|
|
8076
8076
|
|
|
8077
|
-
// node_modules/pako/lib/zlib/trees.js
|
|
8077
|
+
// ../../node_modules/pako/lib/zlib/trees.js
|
|
8078
8078
|
var require_trees = __commonJS((exports) => {
|
|
8079
8079
|
var utils2 = require_common();
|
|
8080
8080
|
var Z_FIXED = 4;
|
|
@@ -8674,7 +8674,7 @@ var require_trees = __commonJS((exports) => {
|
|
|
8674
8674
|
exports._tr_align = _tr_align;
|
|
8675
8675
|
});
|
|
8676
8676
|
|
|
8677
|
-
// node_modules/pako/lib/zlib/adler32.js
|
|
8677
|
+
// ../../node_modules/pako/lib/zlib/adler32.js
|
|
8678
8678
|
var require_adler32 = __commonJS((exports, module) => {
|
|
8679
8679
|
function adler32(adler, buf, len, pos) {
|
|
8680
8680
|
var s1 = adler & 65535 | 0, s2 = adler >>> 16 & 65535 | 0, n = 0;
|
|
@@ -8693,7 +8693,7 @@ var require_adler32 = __commonJS((exports, module) => {
|
|
|
8693
8693
|
module.exports = adler32;
|
|
8694
8694
|
});
|
|
8695
8695
|
|
|
8696
|
-
// node_modules/pako/lib/zlib/crc32.js
|
|
8696
|
+
// ../../node_modules/pako/lib/zlib/crc32.js
|
|
8697
8697
|
var require_crc32 = __commonJS((exports, module) => {
|
|
8698
8698
|
function makeTable() {
|
|
8699
8699
|
var c, table = [];
|
|
@@ -8718,7 +8718,7 @@ var require_crc32 = __commonJS((exports, module) => {
|
|
|
8718
8718
|
module.exports = crc32;
|
|
8719
8719
|
});
|
|
8720
8720
|
|
|
8721
|
-
// node_modules/pako/lib/zlib/messages.js
|
|
8721
|
+
// ../../node_modules/pako/lib/zlib/messages.js
|
|
8722
8722
|
var require_messages = __commonJS((exports, module) => {
|
|
8723
8723
|
module.exports = {
|
|
8724
8724
|
2: "need dictionary",
|
|
@@ -8733,7 +8733,7 @@ var require_messages = __commonJS((exports, module) => {
|
|
|
8733
8733
|
};
|
|
8734
8734
|
});
|
|
8735
8735
|
|
|
8736
|
-
// node_modules/pako/lib/zlib/deflate.js
|
|
8736
|
+
// ../../node_modules/pako/lib/zlib/deflate.js
|
|
8737
8737
|
var require_deflate = __commonJS((exports) => {
|
|
8738
8738
|
var utils2 = require_common();
|
|
8739
8739
|
var trees = require_trees();
|
|
@@ -9763,7 +9763,7 @@ var require_deflate = __commonJS((exports) => {
|
|
|
9763
9763
|
exports.deflateInfo = "pako deflate (from Nodeca project)";
|
|
9764
9764
|
});
|
|
9765
9765
|
|
|
9766
|
-
// node_modules/pako/lib/utils/strings.js
|
|
9766
|
+
// ../../node_modules/pako/lib/utils/strings.js
|
|
9767
9767
|
var require_strings = __commonJS((exports) => {
|
|
9768
9768
|
var utils2 = require_common();
|
|
9769
9769
|
var STR_APPLY_OK = true;
|
|
@@ -9902,7 +9902,7 @@ var require_strings = __commonJS((exports) => {
|
|
|
9902
9902
|
};
|
|
9903
9903
|
});
|
|
9904
9904
|
|
|
9905
|
-
// node_modules/pako/lib/zlib/zstream.js
|
|
9905
|
+
// ../../node_modules/pako/lib/zlib/zstream.js
|
|
9906
9906
|
var require_zstream = __commonJS((exports, module) => {
|
|
9907
9907
|
function ZStream() {
|
|
9908
9908
|
this.input = null;
|
|
@@ -9921,7 +9921,7 @@ var require_zstream = __commonJS((exports, module) => {
|
|
|
9921
9921
|
module.exports = ZStream;
|
|
9922
9922
|
});
|
|
9923
9923
|
|
|
9924
|
-
// node_modules/pako/lib/deflate.js
|
|
9924
|
+
// ../../node_modules/pako/lib/deflate.js
|
|
9925
9925
|
var require_deflate2 = __commonJS((exports) => {
|
|
9926
9926
|
var zlib_deflate = require_deflate();
|
|
9927
9927
|
var utils2 = require_common();
|
|
@@ -10073,7 +10073,7 @@ var require_deflate2 = __commonJS((exports) => {
|
|
|
10073
10073
|
exports.gzip = gzip;
|
|
10074
10074
|
});
|
|
10075
10075
|
|
|
10076
|
-
// node_modules/pako/lib/zlib/inffast.js
|
|
10076
|
+
// ../../node_modules/pako/lib/zlib/inffast.js
|
|
10077
10077
|
var require_inffast = __commonJS((exports, module) => {
|
|
10078
10078
|
var BAD = 30;
|
|
10079
10079
|
var TYPE = 12;
|
|
@@ -10299,7 +10299,7 @@ var require_inffast = __commonJS((exports, module) => {
|
|
|
10299
10299
|
};
|
|
10300
10300
|
});
|
|
10301
10301
|
|
|
10302
|
-
// node_modules/pako/lib/zlib/inftrees.js
|
|
10302
|
+
// ../../node_modules/pako/lib/zlib/inftrees.js
|
|
10303
10303
|
var require_inftrees = __commonJS((exports, module) => {
|
|
10304
10304
|
var utils2 = require_common();
|
|
10305
10305
|
var MAXBITS = 15;
|
|
@@ -10608,7 +10608,7 @@ var require_inftrees = __commonJS((exports, module) => {
|
|
|
10608
10608
|
};
|
|
10609
10609
|
});
|
|
10610
10610
|
|
|
10611
|
-
// node_modules/pako/lib/zlib/inflate.js
|
|
10611
|
+
// ../../node_modules/pako/lib/zlib/inflate.js
|
|
10612
10612
|
var require_inflate = __commonJS((exports) => {
|
|
10613
10613
|
var utils2 = require_common();
|
|
10614
10614
|
var adler32 = require_adler32();
|
|
@@ -11806,7 +11806,7 @@ var require_inflate = __commonJS((exports) => {
|
|
|
11806
11806
|
exports.inflateInfo = "pako inflate (from Nodeca project)";
|
|
11807
11807
|
});
|
|
11808
11808
|
|
|
11809
|
-
// node_modules/pako/lib/zlib/constants.js
|
|
11809
|
+
// ../../node_modules/pako/lib/zlib/constants.js
|
|
11810
11810
|
var require_constants2 = __commonJS((exports, module) => {
|
|
11811
11811
|
module.exports = {
|
|
11812
11812
|
Z_NO_FLUSH: 0,
|
|
@@ -11839,7 +11839,7 @@ var require_constants2 = __commonJS((exports, module) => {
|
|
|
11839
11839
|
};
|
|
11840
11840
|
});
|
|
11841
11841
|
|
|
11842
|
-
// node_modules/pako/lib/zlib/gzheader.js
|
|
11842
|
+
// ../../node_modules/pako/lib/zlib/gzheader.js
|
|
11843
11843
|
var require_gzheader = __commonJS((exports, module) => {
|
|
11844
11844
|
function GZheader() {
|
|
11845
11845
|
this.text = 0;
|
|
@@ -11856,7 +11856,7 @@ var require_gzheader = __commonJS((exports, module) => {
|
|
|
11856
11856
|
module.exports = GZheader;
|
|
11857
11857
|
});
|
|
11858
11858
|
|
|
11859
|
-
// node_modules/pako/lib/inflate.js
|
|
11859
|
+
// ../../node_modules/pako/lib/inflate.js
|
|
11860
11860
|
var require_inflate2 = __commonJS((exports) => {
|
|
11861
11861
|
var zlib_inflate = require_inflate();
|
|
11862
11862
|
var utils2 = require_common();
|
|
@@ -12025,7 +12025,7 @@ var require_inflate2 = __commonJS((exports) => {
|
|
|
12025
12025
|
exports.ungzip = inflate;
|
|
12026
12026
|
});
|
|
12027
12027
|
|
|
12028
|
-
// node_modules/pako/index.js
|
|
12028
|
+
// ../../node_modules/pako/index.js
|
|
12029
12029
|
var require_pako = __commonJS((exports, module) => {
|
|
12030
12030
|
var assign = require_common().assign;
|
|
12031
12031
|
var deflate = require_deflate2();
|
|
@@ -12036,7 +12036,7 @@ var require_pako = __commonJS((exports, module) => {
|
|
|
12036
12036
|
module.exports = pako;
|
|
12037
12037
|
});
|
|
12038
12038
|
|
|
12039
|
-
// node_modules/utif2/UTIF.js
|
|
12039
|
+
// ../../node_modules/utif2/UTIF.js
|
|
12040
12040
|
var require_UTIF = __commonJS((exports, module) => {
|
|
12041
12041
|
(function() {
|
|
12042
12042
|
var UTIF = {};
|
|
@@ -15805,7 +15805,7 @@ var require_UTIF = __commonJS((exports, module) => {
|
|
|
15805
15805
|
})();
|
|
15806
15806
|
});
|
|
15807
15807
|
|
|
15808
|
-
// node_modules/ieee754/index.js
|
|
15808
|
+
// ../../node_modules/ieee754/index.js
|
|
15809
15809
|
var require_ieee754 = __commonJS((exports) => {
|
|
15810
15810
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
15811
15811
|
exports.read = function(buffer, offset, isLE, mLen, nBytes) {
|
|
@@ -15883,7 +15883,7 @@ var require_ieee754 = __commonJS((exports) => {
|
|
|
15883
15883
|
};
|
|
15884
15884
|
});
|
|
15885
15885
|
|
|
15886
|
-
// node_modules/token-types/lib/index.js
|
|
15886
|
+
// ../../node_modules/token-types/lib/index.js
|
|
15887
15887
|
var require_lib = __commonJS((exports) => {
|
|
15888
15888
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15889
15889
|
exports.AnsiStringType = exports.StringType = exports.BufferType = exports.Uint8ArrayType = exports.IgnoreType = exports.Float80_LE = exports.Float80_BE = exports.Float64_LE = exports.Float64_BE = exports.Float32_LE = exports.Float32_BE = exports.Float16_LE = exports.Float16_BE = exports.INT64_BE = exports.UINT64_BE = exports.INT64_LE = exports.UINT64_LE = exports.INT32_LE = exports.INT32_BE = exports.INT24_BE = exports.INT24_LE = exports.INT16_LE = exports.INT16_BE = exports.INT8 = exports.UINT32_BE = exports.UINT32_LE = exports.UINT24_BE = exports.UINT24_LE = exports.UINT16_BE = exports.UINT16_LE = exports.UINT8 = undefined;
|
|
@@ -16372,7 +16372,7 @@ var require_lib = __commonJS((exports) => {
|
|
|
16372
16372
|
];
|
|
16373
16373
|
});
|
|
16374
16374
|
|
|
16375
|
-
// node_modules/peek-readable/lib/EndOfFileStream.js
|
|
16375
|
+
// ../../node_modules/peek-readable/lib/EndOfFileStream.js
|
|
16376
16376
|
var require_EndOfFileStream = __commonJS((exports) => {
|
|
16377
16377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16378
16378
|
exports.EndOfStreamError = exports.defaultMessages = undefined;
|
|
@@ -16386,7 +16386,7 @@ var require_EndOfFileStream = __commonJS((exports) => {
|
|
|
16386
16386
|
exports.EndOfStreamError = EndOfStreamError;
|
|
16387
16387
|
});
|
|
16388
16388
|
|
|
16389
|
-
// node_modules/peek-readable/lib/Deferred.js
|
|
16389
|
+
// ../../node_modules/peek-readable/lib/Deferred.js
|
|
16390
16390
|
var require_Deferred = __commonJS((exports) => {
|
|
16391
16391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16392
16392
|
exports.Deferred = undefined;
|
|
@@ -16404,7 +16404,7 @@ var require_Deferred = __commonJS((exports) => {
|
|
|
16404
16404
|
exports.Deferred = Deferred;
|
|
16405
16405
|
});
|
|
16406
16406
|
|
|
16407
|
-
// node_modules/peek-readable/lib/StreamReader.js
|
|
16407
|
+
// ../../node_modules/peek-readable/lib/StreamReader.js
|
|
16408
16408
|
var require_StreamReader = __commonJS((exports) => {
|
|
16409
16409
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16410
16410
|
exports.StreamReader = exports.EndOfStreamError = undefined;
|
|
@@ -16507,7 +16507,7 @@ var require_StreamReader = __commonJS((exports) => {
|
|
|
16507
16507
|
exports.StreamReader = StreamReader;
|
|
16508
16508
|
});
|
|
16509
16509
|
|
|
16510
|
-
// node_modules/peek-readable/lib/index.js
|
|
16510
|
+
// ../../node_modules/peek-readable/lib/index.js
|
|
16511
16511
|
var require_lib2 = __commonJS((exports) => {
|
|
16512
16512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16513
16513
|
exports.StreamReader = exports.EndOfStreamError = undefined;
|
|
@@ -16521,7 +16521,7 @@ var require_lib2 = __commonJS((exports) => {
|
|
|
16521
16521
|
} });
|
|
16522
16522
|
});
|
|
16523
16523
|
|
|
16524
|
-
// node_modules/strtok3/lib/AbstractTokenizer.js
|
|
16524
|
+
// ../../node_modules/strtok3/lib/AbstractTokenizer.js
|
|
16525
16525
|
var require_AbstractTokenizer = __commonJS((exports) => {
|
|
16526
16526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16527
16527
|
exports.AbstractTokenizer = undefined;
|
|
@@ -16594,7 +16594,7 @@ var require_AbstractTokenizer = __commonJS((exports) => {
|
|
|
16594
16594
|
exports.AbstractTokenizer = AbstractTokenizer;
|
|
16595
16595
|
});
|
|
16596
16596
|
|
|
16597
|
-
// node_modules/strtok3/lib/ReadStreamTokenizer.js
|
|
16597
|
+
// ../../node_modules/strtok3/lib/ReadStreamTokenizer.js
|
|
16598
16598
|
var require_ReadStreamTokenizer = __commonJS((exports) => {
|
|
16599
16599
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16600
16600
|
exports.ReadStreamTokenizer = undefined;
|
|
@@ -16676,7 +16676,7 @@ var require_ReadStreamTokenizer = __commonJS((exports) => {
|
|
|
16676
16676
|
exports.ReadStreamTokenizer = ReadStreamTokenizer;
|
|
16677
16677
|
});
|
|
16678
16678
|
|
|
16679
|
-
// node_modules/strtok3/lib/BufferTokenizer.js
|
|
16679
|
+
// ../../node_modules/strtok3/lib/BufferTokenizer.js
|
|
16680
16680
|
var require_BufferTokenizer = __commonJS((exports) => {
|
|
16681
16681
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16682
16682
|
exports.BufferTokenizer = undefined;
|
|
@@ -16715,7 +16715,7 @@ var require_BufferTokenizer = __commonJS((exports) => {
|
|
|
16715
16715
|
exports.BufferTokenizer = BufferTokenizer;
|
|
16716
16716
|
});
|
|
16717
16717
|
|
|
16718
|
-
// node_modules/strtok3/lib/core.js
|
|
16718
|
+
// ../../node_modules/strtok3/lib/core.js
|
|
16719
16719
|
var require_core = __commonJS((exports) => {
|
|
16720
16720
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16721
16721
|
exports.fromBuffer = exports.fromStream = exports.EndOfStreamError = undefined;
|
|
@@ -16736,7 +16736,7 @@ var require_core = __commonJS((exports) => {
|
|
|
16736
16736
|
exports.fromBuffer = fromBuffer;
|
|
16737
16737
|
});
|
|
16738
16738
|
|
|
16739
|
-
// node_modules/file-type/util.js
|
|
16739
|
+
// ../../node_modules/file-type/util.js
|
|
16740
16740
|
var require_util = __commonJS((exports) => {
|
|
16741
16741
|
exports.stringToBytes = (string) => [...string].map((character) => character.charCodeAt(0));
|
|
16742
16742
|
exports.tarHeaderChecksumMatches = (buffer, offset = 0) => {
|
|
@@ -16761,7 +16761,7 @@ var require_util = __commonJS((exports) => {
|
|
|
16761
16761
|
};
|
|
16762
16762
|
});
|
|
16763
16763
|
|
|
16764
|
-
// node_modules/file-type/supported.js
|
|
16764
|
+
// ../../node_modules/file-type/supported.js
|
|
16765
16765
|
var require_supported = __commonJS((exports, module) => {
|
|
16766
16766
|
module.exports = {
|
|
16767
16767
|
extensions: [
|
|
@@ -17042,7 +17042,7 @@ var require_supported = __commonJS((exports, module) => {
|
|
|
17042
17042
|
};
|
|
17043
17043
|
});
|
|
17044
17044
|
|
|
17045
|
-
// node_modules/file-type/core.js
|
|
17045
|
+
// ../../node_modules/file-type/core.js
|
|
17046
17046
|
var require_core2 = __commonJS((exports, module) => {
|
|
17047
17047
|
var Token = require_lib();
|
|
17048
17048
|
var strtok3 = require_core();
|
|
@@ -18158,7 +18158,7 @@ var require_core2 = __commonJS((exports, module) => {
|
|
|
18158
18158
|
module.exports = fileType;
|
|
18159
18159
|
});
|
|
18160
18160
|
|
|
18161
|
-
// node_modules/mime/Mime.js
|
|
18161
|
+
// ../../node_modules/mime/Mime.js
|
|
18162
18162
|
var require_Mime = __commonJS((exports, module) => {
|
|
18163
18163
|
function Mime() {
|
|
18164
18164
|
this._types = Object.create(null);
|
|
@@ -18207,18 +18207,18 @@ var require_Mime = __commonJS((exports, module) => {
|
|
|
18207
18207
|
module.exports = Mime;
|
|
18208
18208
|
});
|
|
18209
18209
|
|
|
18210
|
-
// node_modules/mime/types/standard.js
|
|
18210
|
+
// ../../node_modules/mime/types/standard.js
|
|
18211
18211
|
var require_standard = __commonJS((exports, module) => {
|
|
18212
18212
|
module.exports = { "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["es", "ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avif": ["avif"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] };
|
|
18213
18213
|
});
|
|
18214
18214
|
|
|
18215
|
-
// node_modules/mime/lite.js
|
|
18215
|
+
// ../../node_modules/mime/lite.js
|
|
18216
18216
|
var require_lite = __commonJS((exports, module) => {
|
|
18217
18217
|
var Mime = require_Mime();
|
|
18218
18218
|
module.exports = new Mime(require_standard());
|
|
18219
18219
|
});
|
|
18220
18220
|
|
|
18221
|
-
// node_modules/exif-parser/lib/jpeg.js
|
|
18221
|
+
// ../../node_modules/exif-parser/lib/jpeg.js
|
|
18222
18222
|
var require_jpeg = __commonJS((exports, module) => {
|
|
18223
18223
|
module.exports = {
|
|
18224
18224
|
parseSections: function(stream2, iterator) {
|
|
@@ -18293,7 +18293,7 @@ var require_jpeg = __commonJS((exports, module) => {
|
|
|
18293
18293
|
};
|
|
18294
18294
|
});
|
|
18295
18295
|
|
|
18296
|
-
// node_modules/exif-parser/lib/exif.js
|
|
18296
|
+
// ../../node_modules/exif-parser/lib/exif.js
|
|
18297
18297
|
var require_exif = __commonJS((exports, module) => {
|
|
18298
18298
|
function readExifValue(format, stream2) {
|
|
18299
18299
|
switch (format) {
|
|
@@ -18449,7 +18449,7 @@ var require_exif = __commonJS((exports, module) => {
|
|
|
18449
18449
|
};
|
|
18450
18450
|
});
|
|
18451
18451
|
|
|
18452
|
-
// node_modules/exif-parser/lib/date.js
|
|
18452
|
+
// ../../node_modules/exif-parser/lib/date.js
|
|
18453
18453
|
var require_date = __commonJS((exports, module) => {
|
|
18454
18454
|
function parseNumber(s) {
|
|
18455
18455
|
return parseInt(s, 10);
|
|
@@ -18505,7 +18505,7 @@ var require_date = __commonJS((exports, module) => {
|
|
|
18505
18505
|
};
|
|
18506
18506
|
});
|
|
18507
18507
|
|
|
18508
|
-
// node_modules/exif-parser/lib/simplify.js
|
|
18508
|
+
// ../../node_modules/exif-parser/lib/simplify.js
|
|
18509
18509
|
var require_simplify = __commonJS((exports, module) => {
|
|
18510
18510
|
var exif = require_exif();
|
|
18511
18511
|
var date = require_date();
|
|
@@ -18589,7 +18589,7 @@ var require_simplify = __commonJS((exports, module) => {
|
|
|
18589
18589
|
};
|
|
18590
18590
|
});
|
|
18591
18591
|
|
|
18592
|
-
// node_modules/exif-parser/lib/exif-tags.js
|
|
18592
|
+
// ../../node_modules/exif-parser/lib/exif-tags.js
|
|
18593
18593
|
var require_exif_tags = __commonJS((exports, module) => {
|
|
18594
18594
|
module.exports = {
|
|
18595
18595
|
exif: {
|
|
@@ -19060,7 +19060,7 @@ var require_exif_tags = __commonJS((exports, module) => {
|
|
|
19060
19060
|
};
|
|
19061
19061
|
});
|
|
19062
19062
|
|
|
19063
|
-
// node_modules/exif-parser/lib/parser.js
|
|
19063
|
+
// ../../node_modules/exif-parser/lib/parser.js
|
|
19064
19064
|
var require_parser2 = __commonJS((exports, module) => {
|
|
19065
19065
|
var jpeg2 = require_jpeg();
|
|
19066
19066
|
var exif = require_exif();
|
|
@@ -19247,7 +19247,7 @@ var require_parser2 = __commonJS((exports, module) => {
|
|
|
19247
19247
|
module.exports = Parser;
|
|
19248
19248
|
});
|
|
19249
19249
|
|
|
19250
|
-
// node_modules/exif-parser/lib/dom-bufferstream.js
|
|
19250
|
+
// ../../node_modules/exif-parser/lib/dom-bufferstream.js
|
|
19251
19251
|
var require_dom_bufferstream = __commonJS((exports, module) => {
|
|
19252
19252
|
function DOMBufferStream(arrayBuffer, offset, length, bigEndian, global2, parentOffset) {
|
|
19253
19253
|
this.global = global2;
|
|
@@ -19344,7 +19344,7 @@ var require_dom_bufferstream = __commonJS((exports, module) => {
|
|
|
19344
19344
|
module.exports = DOMBufferStream;
|
|
19345
19345
|
});
|
|
19346
19346
|
|
|
19347
|
-
// node_modules/exif-parser/lib/bufferstream.js
|
|
19347
|
+
// ../../node_modules/exif-parser/lib/bufferstream.js
|
|
19348
19348
|
var require_bufferstream = __commonJS((exports, module) => {
|
|
19349
19349
|
function BufferStream(buffer, offset, length, bigEndian) {
|
|
19350
19350
|
this.buffer = buffer;
|
|
@@ -19434,7 +19434,7 @@ var require_bufferstream = __commonJS((exports, module) => {
|
|
|
19434
19434
|
module.exports = BufferStream;
|
|
19435
19435
|
});
|
|
19436
19436
|
|
|
19437
|
-
// node_modules/exif-parser/index.js
|
|
19437
|
+
// ../../node_modules/exif-parser/index.js
|
|
19438
19438
|
var require_exif_parser = __commonJS((exports, module) => {
|
|
19439
19439
|
var Parser = require_parser2();
|
|
19440
19440
|
function getGlobal() {
|
|
@@ -19454,7 +19454,7 @@ var require_exif_parser = __commonJS((exports, module) => {
|
|
|
19454
19454
|
};
|
|
19455
19455
|
});
|
|
19456
19456
|
|
|
19457
|
-
// node_modules/any-base/src/converter.js
|
|
19457
|
+
// ../../node_modules/any-base/src/converter.js
|
|
19458
19458
|
var require_converter = __commonJS((exports, module) => {
|
|
19459
19459
|
function Converter(srcAlphabet, dstAlphabet) {
|
|
19460
19460
|
if (!srcAlphabet || !dstAlphabet || !srcAlphabet.length || !dstAlphabet.length) {
|
|
@@ -19503,7 +19503,7 @@ var require_converter = __commonJS((exports, module) => {
|
|
|
19503
19503
|
module.exports = Converter;
|
|
19504
19504
|
});
|
|
19505
19505
|
|
|
19506
|
-
// node_modules/any-base/index.js
|
|
19506
|
+
// ../../node_modules/any-base/index.js
|
|
19507
19507
|
var require_any_base = __commonJS((exports, module) => {
|
|
19508
19508
|
var Converter = require_converter();
|
|
19509
19509
|
function anyBase(srcAlphabet, dstAlphabet) {
|
|
@@ -19663,7 +19663,7 @@ import { createWebGPUDevice, setupGlobals } from "bun-webgpu";
|
|
|
19663
19663
|
import { GPUCanvasContextMock } from "bun-webgpu";
|
|
19664
19664
|
import { toArrayBuffer } from "bun:ffi";
|
|
19665
19665
|
|
|
19666
|
-
// node_modules/bmp-ts/dist/esm/header-types.js
|
|
19666
|
+
// ../../node_modules/bmp-ts/dist/esm/header-types.js
|
|
19667
19667
|
var HeaderTypes;
|
|
19668
19668
|
(function(HeaderTypes2) {
|
|
19669
19669
|
HeaderTypes2[HeaderTypes2["BITMAP_INFO_HEADER"] = 40] = "BITMAP_INFO_HEADER";
|
|
@@ -19674,7 +19674,7 @@ var HeaderTypes;
|
|
|
19674
19674
|
})(HeaderTypes || (HeaderTypes = {}));
|
|
19675
19675
|
var header_types_default = HeaderTypes;
|
|
19676
19676
|
|
|
19677
|
-
// node_modules/bmp-ts/dist/esm/mask-color.js
|
|
19677
|
+
// ../../node_modules/bmp-ts/dist/esm/mask-color.js
|
|
19678
19678
|
function maskColor(maskRed, maskGreen, maskBlue, maskAlpha) {
|
|
19679
19679
|
const maskRedR = ~maskRed + 1 & maskRed;
|
|
19680
19680
|
const maskGreenR = ~maskGreen + 1 & maskGreen;
|
|
@@ -19692,7 +19692,7 @@ function maskColor(maskRed, maskGreen, maskBlue, maskAlpha) {
|
|
|
19692
19692
|
};
|
|
19693
19693
|
}
|
|
19694
19694
|
|
|
19695
|
-
// node_modules/bmp-ts/dist/esm/types.js
|
|
19695
|
+
// ../../node_modules/bmp-ts/dist/esm/types.js
|
|
19696
19696
|
var BmpCompression;
|
|
19697
19697
|
(function(BmpCompression2) {
|
|
19698
19698
|
BmpCompression2[BmpCompression2["NONE"] = 0] = "NONE";
|
|
@@ -19702,7 +19702,7 @@ var BmpCompression;
|
|
|
19702
19702
|
BmpCompression2[BmpCompression2["BI_ALPHA_BIT_FIELDS"] = 6] = "BI_ALPHA_BIT_FIELDS";
|
|
19703
19703
|
})(BmpCompression || (BmpCompression = {}));
|
|
19704
19704
|
|
|
19705
|
-
// node_modules/bmp-ts/dist/esm/decoder.js
|
|
19705
|
+
// ../../node_modules/bmp-ts/dist/esm/decoder.js
|
|
19706
19706
|
class BmpDecoder {
|
|
19707
19707
|
flag;
|
|
19708
19708
|
fileSize;
|
|
@@ -20065,7 +20065,7 @@ class BmpDecoder {
|
|
|
20065
20065
|
}
|
|
20066
20066
|
}
|
|
20067
20067
|
|
|
20068
|
-
// node_modules/bmp-ts/dist/esm/encoder.js
|
|
20068
|
+
// ../../node_modules/bmp-ts/dist/esm/encoder.js
|
|
20069
20069
|
function createInteger(numbers) {
|
|
20070
20070
|
return numbers.reduce((final, n) => final << 1 | n, 0);
|
|
20071
20071
|
}
|
|
@@ -20320,7 +20320,7 @@ class BmpEncoder {
|
|
|
20320
20320
|
}
|
|
20321
20321
|
}
|
|
20322
20322
|
|
|
20323
|
-
// node_modules/bmp-ts/dist/esm/index.js
|
|
20323
|
+
// ../../node_modules/bmp-ts/dist/esm/index.js
|
|
20324
20324
|
function decode(bmpData, options) {
|
|
20325
20325
|
return new BmpDecoder(bmpData, options);
|
|
20326
20326
|
}
|
|
@@ -20328,7 +20328,7 @@ function encode(imgData) {
|
|
|
20328
20328
|
return new BmpEncoder(imgData);
|
|
20329
20329
|
}
|
|
20330
20330
|
|
|
20331
|
-
// node_modules/tinycolor2/esm/tinycolor.js
|
|
20331
|
+
// ../../node_modules/tinycolor2/esm/tinycolor.js
|
|
20332
20332
|
function _typeof(obj) {
|
|
20333
20333
|
"@babel/helpers - typeof";
|
|
20334
20334
|
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
|
|
@@ -21305,7 +21305,7 @@ function validateWCAG2Parms(parms) {
|
|
|
21305
21305
|
};
|
|
21306
21306
|
}
|
|
21307
21307
|
|
|
21308
|
-
// node_modules/@jimp/utils/dist/esm/index.js
|
|
21308
|
+
// ../../node_modules/@jimp/utils/dist/esm/index.js
|
|
21309
21309
|
function clone2(image2) {
|
|
21310
21310
|
const newBitmap = {
|
|
21311
21311
|
width: image2.bitmap.width,
|
|
@@ -21402,7 +21402,7 @@ function cssColorToHex(cssColor) {
|
|
|
21402
21402
|
return parseInt(tinycolor(cssColor).toHex8(), 16);
|
|
21403
21403
|
}
|
|
21404
21404
|
|
|
21405
|
-
// node_modules/@jimp/js-bmp/dist/esm/index.js
|
|
21405
|
+
// ../../node_modules/@jimp/js-bmp/dist/esm/index.js
|
|
21406
21406
|
function encode2(image2, options = {}) {
|
|
21407
21407
|
scan({ bitmap: image2 }, 0, 0, image2.width, image2.height, function(_, __, index) {
|
|
21408
21408
|
const red = image2.data[index + 0];
|
|
@@ -21444,7 +21444,7 @@ function bmp() {
|
|
|
21444
21444
|
};
|
|
21445
21445
|
}
|
|
21446
21446
|
|
|
21447
|
-
// node_modules/@jimp/js-gif/dist/esm/index.js
|
|
21447
|
+
// ../../node_modules/@jimp/js-gif/dist/esm/index.js
|
|
21448
21448
|
var import_omggif = __toESM(require_omggif(), 1);
|
|
21449
21449
|
var import_gifwrap = __toESM(require_src(), 1);
|
|
21450
21450
|
function gif() {
|
|
@@ -21471,7 +21471,7 @@ function gif() {
|
|
|
21471
21471
|
};
|
|
21472
21472
|
}
|
|
21473
21473
|
|
|
21474
|
-
// node_modules/@jimp/js-jpeg/dist/esm/index.js
|
|
21474
|
+
// ../../node_modules/@jimp/js-jpeg/dist/esm/index.js
|
|
21475
21475
|
var import_jpeg_js = __toESM(require_jpeg_js(), 1);
|
|
21476
21476
|
function jpeg() {
|
|
21477
21477
|
return {
|
|
@@ -21481,10 +21481,10 @@ function jpeg() {
|
|
|
21481
21481
|
};
|
|
21482
21482
|
}
|
|
21483
21483
|
|
|
21484
|
-
// node_modules/@jimp/js-png/dist/esm/index.js
|
|
21484
|
+
// ../../node_modules/@jimp/js-png/dist/esm/index.js
|
|
21485
21485
|
var import_pngjs = __toESM(require_png(), 1);
|
|
21486
21486
|
|
|
21487
|
-
// node_modules/@jimp/js-png/dist/esm/constants.js
|
|
21487
|
+
// ../../node_modules/@jimp/js-png/dist/esm/constants.js
|
|
21488
21488
|
var PNGFilterType;
|
|
21489
21489
|
(function(PNGFilterType2) {
|
|
21490
21490
|
PNGFilterType2[PNGFilterType2["AUTO"] = -1] = "AUTO";
|
|
@@ -21502,7 +21502,7 @@ var PNGColorType;
|
|
|
21502
21502
|
PNGColorType2[PNGColorType2["COLOR_ALPHA"] = 6] = "COLOR_ALPHA";
|
|
21503
21503
|
})(PNGColorType || (PNGColorType = {}));
|
|
21504
21504
|
|
|
21505
|
-
// node_modules/@jimp/js-png/dist/esm/index.js
|
|
21505
|
+
// ../../node_modules/@jimp/js-png/dist/esm/index.js
|
|
21506
21506
|
function png() {
|
|
21507
21507
|
return {
|
|
21508
21508
|
mime: "image/png",
|
|
@@ -21533,7 +21533,7 @@ function png() {
|
|
|
21533
21533
|
};
|
|
21534
21534
|
}
|
|
21535
21535
|
|
|
21536
|
-
// node_modules/@jimp/js-tiff/dist/esm/index.js
|
|
21536
|
+
// ../../node_modules/@jimp/js-tiff/dist/esm/index.js
|
|
21537
21537
|
var import_utif2 = __toESM(require_UTIF(), 1);
|
|
21538
21538
|
function getDimensionValue(dimension) {
|
|
21539
21539
|
if (typeof dimension === "number") {
|
|
@@ -21579,7 +21579,7 @@ function tiff() {
|
|
|
21579
21579
|
};
|
|
21580
21580
|
}
|
|
21581
21581
|
|
|
21582
|
-
// node_modules/zod/v3/external.js
|
|
21582
|
+
// ../../node_modules/zod/v3/external.js
|
|
21583
21583
|
var exports_external = {};
|
|
21584
21584
|
__export(exports_external, {
|
|
21585
21585
|
void: () => voidType,
|
|
@@ -21691,7 +21691,7 @@ __export(exports_external, {
|
|
|
21691
21691
|
BRAND: () => BRAND
|
|
21692
21692
|
});
|
|
21693
21693
|
|
|
21694
|
-
// node_modules/zod/v3/helpers/util.js
|
|
21694
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
21695
21695
|
var util;
|
|
21696
21696
|
(function(util2) {
|
|
21697
21697
|
util2.assertEqual = (_) => {};
|
|
@@ -21822,7 +21822,7 @@ var getParsedType = (data) => {
|
|
|
21822
21822
|
}
|
|
21823
21823
|
};
|
|
21824
21824
|
|
|
21825
|
-
// node_modules/zod/v3/ZodError.js
|
|
21825
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
21826
21826
|
var ZodIssueCode = util.arrayToEnum([
|
|
21827
21827
|
"invalid_type",
|
|
21828
21828
|
"invalid_literal",
|
|
@@ -21941,7 +21941,7 @@ ZodError.create = (issues) => {
|
|
|
21941
21941
|
return error;
|
|
21942
21942
|
};
|
|
21943
21943
|
|
|
21944
|
-
// node_modules/zod/v3/locales/en.js
|
|
21944
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
21945
21945
|
var errorMap = (issue, _ctx) => {
|
|
21946
21946
|
let message;
|
|
21947
21947
|
switch (issue.code) {
|
|
@@ -22044,7 +22044,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
22044
22044
|
};
|
|
22045
22045
|
var en_default = errorMap;
|
|
22046
22046
|
|
|
22047
|
-
// node_modules/zod/v3/errors.js
|
|
22047
|
+
// ../../node_modules/zod/v3/errors.js
|
|
22048
22048
|
var overrideErrorMap = en_default;
|
|
22049
22049
|
function setErrorMap(map) {
|
|
22050
22050
|
overrideErrorMap = map;
|
|
@@ -22052,7 +22052,7 @@ function setErrorMap(map) {
|
|
|
22052
22052
|
function getErrorMap() {
|
|
22053
22053
|
return overrideErrorMap;
|
|
22054
22054
|
}
|
|
22055
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
22055
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
22056
22056
|
var makeIssue = (params) => {
|
|
22057
22057
|
const { data, path, errorMaps, issueData } = params;
|
|
22058
22058
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -22158,14 +22158,14 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
22158
22158
|
var isDirty = (x) => x.status === "dirty";
|
|
22159
22159
|
var isValid2 = (x) => x.status === "valid";
|
|
22160
22160
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
22161
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
22161
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
22162
22162
|
var errorUtil;
|
|
22163
22163
|
(function(errorUtil2) {
|
|
22164
22164
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
22165
22165
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
22166
22166
|
})(errorUtil || (errorUtil = {}));
|
|
22167
22167
|
|
|
22168
|
-
// node_modules/zod/v3/types.js
|
|
22168
|
+
// ../../node_modules/zod/v3/types.js
|
|
22169
22169
|
class ParseInputLazyPath {
|
|
22170
22170
|
constructor(parent, value, path, key) {
|
|
22171
22171
|
this._cachedPath = [];
|
|
@@ -25552,10 +25552,10 @@ var coerce = {
|
|
|
25552
25552
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
25553
25553
|
};
|
|
25554
25554
|
var NEVER = INVALID;
|
|
25555
|
-
// node_modules/zod/index.js
|
|
25555
|
+
// ../../node_modules/zod/index.js
|
|
25556
25556
|
var zod_default = exports_external;
|
|
25557
25557
|
|
|
25558
|
-
// node_modules/@jimp/types/dist/esm/index.js
|
|
25558
|
+
// ../../node_modules/@jimp/types/dist/esm/index.js
|
|
25559
25559
|
var Edge;
|
|
25560
25560
|
(function(Edge2) {
|
|
25561
25561
|
Edge2[Edge2["EXTEND"] = 1] = "EXTEND";
|
|
@@ -25570,7 +25570,7 @@ var JimpClassSchema = exports_external.object({
|
|
|
25570
25570
|
})
|
|
25571
25571
|
});
|
|
25572
25572
|
|
|
25573
|
-
// node_modules/@jimp/plugin-blit/dist/esm/index.js
|
|
25573
|
+
// ../../node_modules/@jimp/plugin-blit/dist/esm/index.js
|
|
25574
25574
|
var BlitOptionsSchemaComplex = exports_external.object({
|
|
25575
25575
|
src: JimpClassSchema,
|
|
25576
25576
|
x: exports_external.number().optional(),
|
|
@@ -25634,7 +25634,7 @@ var methods = {
|
|
|
25634
25634
|
}
|
|
25635
25635
|
};
|
|
25636
25636
|
|
|
25637
|
-
// node_modules/@jimp/plugin-blur/dist/esm/blur-tables.js
|
|
25637
|
+
// ../../node_modules/@jimp/plugin-blur/dist/esm/blur-tables.js
|
|
25638
25638
|
var mulTable = [
|
|
25639
25639
|
1,
|
|
25640
25640
|
57,
|
|
@@ -26154,7 +26154,7 @@ var shgTable = [
|
|
|
26154
26154
|
18
|
|
26155
26155
|
];
|
|
26156
26156
|
|
|
26157
|
-
// node_modules/@jimp/plugin-blur/dist/esm/index.js
|
|
26157
|
+
// ../../node_modules/@jimp/plugin-blur/dist/esm/index.js
|
|
26158
26158
|
var methods2 = {
|
|
26159
26159
|
blur(image2, r) {
|
|
26160
26160
|
if (typeof r !== "number") {
|
|
@@ -26308,7 +26308,7 @@ var methods2 = {
|
|
|
26308
26308
|
}
|
|
26309
26309
|
};
|
|
26310
26310
|
|
|
26311
|
-
// node_modules/@jimp/plugin-circle/dist/esm/index.js
|
|
26311
|
+
// ../../node_modules/@jimp/plugin-circle/dist/esm/index.js
|
|
26312
26312
|
var CircleOptionsSchema = exports_external.object({
|
|
26313
26313
|
x: exports_external.number().optional(),
|
|
26314
26314
|
y: exports_external.number().optional(),
|
|
@@ -26334,7 +26334,7 @@ var methods3 = {
|
|
|
26334
26334
|
}
|
|
26335
26335
|
};
|
|
26336
26336
|
|
|
26337
|
-
// node_modules/@jimp/plugin-color/dist/esm/index.js
|
|
26337
|
+
// ../../node_modules/@jimp/plugin-color/dist/esm/index.js
|
|
26338
26338
|
var ConvolutionMatrixSchema = exports_external.array(exports_external.number()).min(1).array();
|
|
26339
26339
|
var ConvolutionComplexOptionsSchema = exports_external.object({
|
|
26340
26340
|
kernel: ConvolutionMatrixSchema,
|
|
@@ -26798,10 +26798,10 @@ var methods4 = {
|
|
|
26798
26798
|
}
|
|
26799
26799
|
};
|
|
26800
26800
|
|
|
26801
|
-
// node_modules/@jimp/core/dist/esm/index.js
|
|
26801
|
+
// ../../node_modules/@jimp/core/dist/esm/index.js
|
|
26802
26802
|
var import_core = __toESM(require_core2(), 1);
|
|
26803
26803
|
|
|
26804
|
-
// node_modules/await-to-js/dist/await-to-js.es5.js
|
|
26804
|
+
// ../../node_modules/await-to-js/dist/await-to-js.es5.js
|
|
26805
26805
|
function to(promise, errorExt) {
|
|
26806
26806
|
return promise.then(function(data) {
|
|
26807
26807
|
return [null, data];
|
|
@@ -26813,16 +26813,16 @@ function to(promise, errorExt) {
|
|
|
26813
26813
|
});
|
|
26814
26814
|
}
|
|
26815
26815
|
|
|
26816
|
-
// node_modules/@jimp/file-ops/dist/esm/index.js
|
|
26816
|
+
// ../../node_modules/@jimp/file-ops/dist/esm/index.js
|
|
26817
26817
|
import { promises as fs } from "fs";
|
|
26818
26818
|
import { existsSync } from "fs";
|
|
26819
26819
|
var readFile = fs.readFile;
|
|
26820
26820
|
var writeFile = fs.writeFile;
|
|
26821
26821
|
|
|
26822
|
-
// node_modules/@jimp/core/dist/esm/index.js
|
|
26822
|
+
// ../../node_modules/@jimp/core/dist/esm/index.js
|
|
26823
26823
|
var import_lite = __toESM(require_lite(), 1);
|
|
26824
26824
|
|
|
26825
|
-
// node_modules/@jimp/core/dist/esm/utils/constants.js
|
|
26825
|
+
// ../../node_modules/@jimp/core/dist/esm/utils/constants.js
|
|
26826
26826
|
var HorizontalAlign;
|
|
26827
26827
|
(function(HorizontalAlign2) {
|
|
26828
26828
|
HorizontalAlign2[HorizontalAlign2["LEFT"] = 1] = "LEFT";
|
|
@@ -26850,7 +26850,7 @@ var BlendMode;
|
|
|
26850
26850
|
BlendMode2["EXCLUSION"] = "exclusion";
|
|
26851
26851
|
})(BlendMode || (BlendMode = {}));
|
|
26852
26852
|
|
|
26853
|
-
// node_modules/@jimp/core/dist/esm/utils/composite-modes.js
|
|
26853
|
+
// ../../node_modules/@jimp/core/dist/esm/utils/composite-modes.js
|
|
26854
26854
|
var exports_composite_modes = {};
|
|
26855
26855
|
__export(exports_composite_modes, {
|
|
26856
26856
|
srcOver: () => srcOver,
|
|
@@ -27022,7 +27022,7 @@ var names2 = [
|
|
|
27022
27022
|
exclusion
|
|
27023
27023
|
];
|
|
27024
27024
|
|
|
27025
|
-
// node_modules/@jimp/core/dist/esm/utils/composite.js
|
|
27025
|
+
// ../../node_modules/@jimp/core/dist/esm/utils/composite.js
|
|
27026
27026
|
function composite(baseImage, src, x = 0, y = 0, options = {}) {
|
|
27027
27027
|
if (!(src instanceof baseImage.constructor)) {
|
|
27028
27028
|
throw new Error("The source must be a Jimp image");
|
|
@@ -27071,7 +27071,7 @@ function composite(baseImage, src, x = 0, y = 0, options = {}) {
|
|
|
27071
27071
|
return baseImage;
|
|
27072
27072
|
}
|
|
27073
27073
|
|
|
27074
|
-
// node_modules/@jimp/core/dist/esm/utils/image-bitmap.js
|
|
27074
|
+
// ../../node_modules/@jimp/core/dist/esm/utils/image-bitmap.js
|
|
27075
27075
|
var import_exif_parser = __toESM(require_exif_parser(), 1);
|
|
27076
27076
|
function getExifOrientation(img) {
|
|
27077
27077
|
const _exif = img._exif;
|
|
@@ -27152,7 +27152,7 @@ async function attemptExifRotate(image2, buffer) {
|
|
|
27152
27152
|
} catch {}
|
|
27153
27153
|
}
|
|
27154
27154
|
|
|
27155
|
-
// node_modules/@jimp/core/dist/esm/index.js
|
|
27155
|
+
// ../../node_modules/@jimp/core/dist/esm/index.js
|
|
27156
27156
|
var emptyBitmap = {
|
|
27157
27157
|
data: Buffer.alloc(0),
|
|
27158
27158
|
width: 0,
|
|
@@ -27397,7 +27397,7 @@ function createJimp({ plugins: pluginsArg, formats: formatsArg } = {}) {
|
|
|
27397
27397
|
return CustomJimp;
|
|
27398
27398
|
}
|
|
27399
27399
|
|
|
27400
|
-
// node_modules/@jimp/plugin-resize/dist/esm/constants.js
|
|
27400
|
+
// ../../node_modules/@jimp/plugin-resize/dist/esm/constants.js
|
|
27401
27401
|
var ResizeStrategy;
|
|
27402
27402
|
(function(ResizeStrategy2) {
|
|
27403
27403
|
ResizeStrategy2["NEAREST_NEIGHBOR"] = "nearestNeighbor";
|
|
@@ -27407,7 +27407,7 @@ var ResizeStrategy;
|
|
|
27407
27407
|
ResizeStrategy2["BEZIER"] = "bezierInterpolation";
|
|
27408
27408
|
})(ResizeStrategy || (ResizeStrategy = {}));
|
|
27409
27409
|
|
|
27410
|
-
// node_modules/@jimp/plugin-resize/dist/esm/modules/resize.js
|
|
27410
|
+
// ../../node_modules/@jimp/plugin-resize/dist/esm/modules/resize.js
|
|
27411
27411
|
function Resize(widthOriginal, heightOriginal, targetWidth, targetHeight, blendAlpha, interpolationPass, resizeCallback) {
|
|
27412
27412
|
this.widthOriginal = Math.abs(Math.floor(widthOriginal) || 0);
|
|
27413
27413
|
this.heightOriginal = Math.abs(Math.floor(heightOriginal) || 0);
|
|
@@ -27739,7 +27739,7 @@ Resize.prototype.generateUint8Buffer = function(bufferLength) {
|
|
|
27739
27739
|
};
|
|
27740
27740
|
var resize_default = Resize;
|
|
27741
27741
|
|
|
27742
|
-
// node_modules/@jimp/plugin-resize/dist/esm/modules/resize2.js
|
|
27742
|
+
// ../../node_modules/@jimp/plugin-resize/dist/esm/modules/resize2.js
|
|
27743
27743
|
var operations = {
|
|
27744
27744
|
nearestNeighbor(src, dst) {
|
|
27745
27745
|
const wSrc = src.width;
|
|
@@ -27920,7 +27920,7 @@ var operations = {
|
|
|
27920
27920
|
}
|
|
27921
27921
|
};
|
|
27922
27922
|
|
|
27923
|
-
// node_modules/@jimp/plugin-resize/dist/esm/index.js
|
|
27923
|
+
// ../../node_modules/@jimp/plugin-resize/dist/esm/index.js
|
|
27924
27924
|
var ResizeOptionsSchema = exports_external.union([
|
|
27925
27925
|
exports_external.object({
|
|
27926
27926
|
w: exports_external.number().min(0),
|
|
@@ -27989,7 +27989,7 @@ var methods5 = {
|
|
|
27989
27989
|
}
|
|
27990
27990
|
};
|
|
27991
27991
|
|
|
27992
|
-
// node_modules/@jimp/plugin-contain/dist/esm/index.js
|
|
27992
|
+
// ../../node_modules/@jimp/plugin-contain/dist/esm/index.js
|
|
27993
27993
|
var ContainOptionsSchema = exports_external.object({
|
|
27994
27994
|
w: exports_external.number(),
|
|
27995
27995
|
h: exports_external.number(),
|
|
@@ -28021,7 +28021,7 @@ var methods6 = {
|
|
|
28021
28021
|
}
|
|
28022
28022
|
};
|
|
28023
28023
|
|
|
28024
|
-
// node_modules/@jimp/plugin-crop/dist/esm/index.js
|
|
28024
|
+
// ../../node_modules/@jimp/plugin-crop/dist/esm/index.js
|
|
28025
28025
|
var CropOptionsSchema = exports_external.object({
|
|
28026
28026
|
x: exports_external.number(),
|
|
28027
28027
|
y: exports_external.number(),
|
|
@@ -28175,7 +28175,7 @@ var methods7 = {
|
|
|
28175
28175
|
}
|
|
28176
28176
|
};
|
|
28177
28177
|
|
|
28178
|
-
// node_modules/@jimp/plugin-cover/dist/esm/index.js
|
|
28178
|
+
// ../../node_modules/@jimp/plugin-cover/dist/esm/index.js
|
|
28179
28179
|
var CoverOptionsSchema = exports_external.object({
|
|
28180
28180
|
w: exports_external.number(),
|
|
28181
28181
|
h: exports_external.number(),
|
|
@@ -28207,7 +28207,7 @@ var methods8 = {
|
|
|
28207
28207
|
}
|
|
28208
28208
|
};
|
|
28209
28209
|
|
|
28210
|
-
// node_modules/@jimp/plugin-displace/dist/esm/index.js
|
|
28210
|
+
// ../../node_modules/@jimp/plugin-displace/dist/esm/index.js
|
|
28211
28211
|
var DisplaceOptionsSchema = exports_external.object({
|
|
28212
28212
|
map: JimpClassSchema,
|
|
28213
28213
|
offset: exports_external.number()
|
|
@@ -28228,7 +28228,7 @@ var methods9 = {
|
|
|
28228
28228
|
}
|
|
28229
28229
|
};
|
|
28230
28230
|
|
|
28231
|
-
// node_modules/@jimp/plugin-dither/dist/esm/index.js
|
|
28231
|
+
// ../../node_modules/@jimp/plugin-dither/dist/esm/index.js
|
|
28232
28232
|
var methods10 = {
|
|
28233
28233
|
dither(image2) {
|
|
28234
28234
|
const rgb565Matrix = [
|
|
@@ -28260,7 +28260,7 @@ var methods10 = {
|
|
|
28260
28260
|
}
|
|
28261
28261
|
};
|
|
28262
28262
|
|
|
28263
|
-
// node_modules/@jimp/plugin-fisheye/dist/esm/index.js
|
|
28263
|
+
// ../../node_modules/@jimp/plugin-fisheye/dist/esm/index.js
|
|
28264
28264
|
var FisheyeOptionsSchema = exports_external.object({
|
|
28265
28265
|
radius: exports_external.number().min(0).optional()
|
|
28266
28266
|
});
|
|
@@ -28286,7 +28286,7 @@ var methods11 = {
|
|
|
28286
28286
|
}
|
|
28287
28287
|
};
|
|
28288
28288
|
|
|
28289
|
-
// node_modules/@jimp/plugin-flip/dist/esm/index.js
|
|
28289
|
+
// ../../node_modules/@jimp/plugin-flip/dist/esm/index.js
|
|
28290
28290
|
var FlipOptionsSchema = exports_external.object({
|
|
28291
28291
|
horizontal: exports_external.boolean().optional(),
|
|
28292
28292
|
vertical: exports_external.boolean().optional()
|
|
@@ -28307,10 +28307,10 @@ var methods12 = {
|
|
|
28307
28307
|
}
|
|
28308
28308
|
};
|
|
28309
28309
|
|
|
28310
|
-
// node_modules/@jimp/plugin-hash/dist/esm/index.js
|
|
28310
|
+
// ../../node_modules/@jimp/plugin-hash/dist/esm/index.js
|
|
28311
28311
|
var import_any_base = __toESM(require_any_base(), 1);
|
|
28312
28312
|
|
|
28313
|
-
// node_modules/@jimp/plugin-hash/dist/esm/phash.js
|
|
28313
|
+
// ../../node_modules/@jimp/plugin-hash/dist/esm/phash.js
|
|
28314
28314
|
class ImagePHash {
|
|
28315
28315
|
size;
|
|
28316
28316
|
smallerSize;
|
|
@@ -28394,7 +28394,7 @@ function applyDCT(f, size) {
|
|
|
28394
28394
|
}
|
|
28395
28395
|
var phash_default = ImagePHash;
|
|
28396
28396
|
|
|
28397
|
-
// node_modules/@jimp/plugin-hash/dist/esm/index.js
|
|
28397
|
+
// ../../node_modules/@jimp/plugin-hash/dist/esm/index.js
|
|
28398
28398
|
var alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_";
|
|
28399
28399
|
var maxHashLength = [NaN, NaN];
|
|
28400
28400
|
for (let i = 2;i < 65; i++) {
|
|
@@ -28422,7 +28422,7 @@ var methods13 = {
|
|
|
28422
28422
|
}
|
|
28423
28423
|
};
|
|
28424
28424
|
|
|
28425
|
-
// node_modules/@jimp/plugin-mask/dist/esm/index.js
|
|
28425
|
+
// ../../node_modules/@jimp/plugin-mask/dist/esm/index.js
|
|
28426
28426
|
var MaskOptionsObjectSchema = exports_external.object({
|
|
28427
28427
|
src: JimpClassSchema,
|
|
28428
28428
|
x: exports_external.number().optional(),
|
|
@@ -28462,7 +28462,7 @@ var methods14 = {
|
|
|
28462
28462
|
}
|
|
28463
28463
|
};
|
|
28464
28464
|
|
|
28465
|
-
// node_modules/@jimp/plugin-print/dist/esm/measure-text.js
|
|
28465
|
+
// ../../node_modules/@jimp/plugin-print/dist/esm/measure-text.js
|
|
28466
28466
|
function measureText(font, text) {
|
|
28467
28467
|
let x = 0;
|
|
28468
28468
|
for (let i = 0;i < text.length; i++) {
|
|
@@ -28530,7 +28530,7 @@ function measureTextHeight(font, text, maxWidth) {
|
|
|
28530
28530
|
return lines.length * font.common.lineHeight;
|
|
28531
28531
|
}
|
|
28532
28532
|
|
|
28533
|
-
// node_modules/@jimp/plugin-print/dist/esm/index.js
|
|
28533
|
+
// ../../node_modules/@jimp/plugin-print/dist/esm/index.js
|
|
28534
28534
|
var PrintOptionsSchema = exports_external.object({
|
|
28535
28535
|
x: exports_external.number(),
|
|
28536
28536
|
y: exports_external.number(),
|
|
@@ -28638,7 +28638,7 @@ var methods15 = {
|
|
|
28638
28638
|
}
|
|
28639
28639
|
};
|
|
28640
28640
|
|
|
28641
|
-
// node_modules/@jimp/plugin-rotate/dist/esm/index.js
|
|
28641
|
+
// ../../node_modules/@jimp/plugin-rotate/dist/esm/index.js
|
|
28642
28642
|
var RotateOptionsSchema = exports_external.union([
|
|
28643
28643
|
exports_external.number(),
|
|
28644
28644
|
exports_external.object({
|
|
@@ -28785,7 +28785,7 @@ var methods16 = {
|
|
|
28785
28785
|
}
|
|
28786
28786
|
};
|
|
28787
28787
|
|
|
28788
|
-
// node_modules/@jimp/plugin-threshold/dist/esm/index.js
|
|
28788
|
+
// ../../node_modules/@jimp/plugin-threshold/dist/esm/index.js
|
|
28789
28789
|
var ThresholdOptionsSchema = exports_external.object({
|
|
28790
28790
|
max: exports_external.number().min(0).max(255),
|
|
28791
28791
|
replace: exports_external.number().min(0).max(255).optional(),
|
|
@@ -28813,7 +28813,7 @@ var methods17 = {
|
|
|
28813
28813
|
}
|
|
28814
28814
|
};
|
|
28815
28815
|
|
|
28816
|
-
// node_modules/image-q/dist/esm/image-q.mjs
|
|
28816
|
+
// ../../node_modules/image-q/dist/esm/image-q.mjs
|
|
28817
28817
|
var __defProp2 = Object.defineProperty;
|
|
28818
28818
|
var __defNormalProp = (obj, key, value) => (key in obj) ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
28819
28819
|
var __export2 = (target, all) => {
|
|
@@ -31318,7 +31318,7 @@ function paletteQuantizationToPaletteQuantizer(distanceCalculator, paletteQuanti
|
|
|
31318
31318
|
}
|
|
31319
31319
|
}
|
|
31320
31320
|
|
|
31321
|
-
// node_modules/@jimp/plugin-quantize/dist/esm/index.js
|
|
31321
|
+
// ../../node_modules/@jimp/plugin-quantize/dist/esm/index.js
|
|
31322
31322
|
var QuantizeOptionsSchema = zod_default.object({
|
|
31323
31323
|
colors: zod_default.number().optional(),
|
|
31324
31324
|
colorDistanceFormula: zod_default.union([
|
|
@@ -31372,7 +31372,7 @@ var methods18 = {
|
|
|
31372
31372
|
}
|
|
31373
31373
|
};
|
|
31374
31374
|
|
|
31375
|
-
// node_modules/jimp/dist/esm/index.js
|
|
31375
|
+
// ../../node_modules/jimp/dist/esm/index.js
|
|
31376
31376
|
var defaultPlugins = [
|
|
31377
31377
|
methods,
|
|
31378
31378
|
methods2,
|
|
@@ -31747,7 +31747,7 @@ class CLICanvas {
|
|
|
31747
31747
|
// src/Renderable.ts
|
|
31748
31748
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
31749
31749
|
|
|
31750
|
-
// node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
|
|
31750
|
+
// ../../node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
|
|
31751
31751
|
var loadYoga = (() => {
|
|
31752
31752
|
var _scriptDir = import.meta.url;
|
|
31753
31753
|
return function(loadYoga2) {
|
|
@@ -33052,7 +33052,7 @@ var loadYoga = (() => {
|
|
|
33052
33052
|
})();
|
|
33053
33053
|
var yoga_wasm_base64_esm_default = loadYoga;
|
|
33054
33054
|
|
|
33055
|
-
// node_modules/yoga-layout/dist/src/generated/YGEnums.js
|
|
33055
|
+
// ../../node_modules/yoga-layout/dist/src/generated/YGEnums.js
|
|
33056
33056
|
var Align = /* @__PURE__ */ function(Align2) {
|
|
33057
33057
|
Align2[Align2["Auto"] = 0] = "Auto";
|
|
33058
33058
|
Align2[Align2["FlexStart"] = 1] = "FlexStart";
|
|
@@ -33255,7 +33255,7 @@ var constants5 = {
|
|
|
33255
33255
|
};
|
|
33256
33256
|
var YGEnums_default = constants5;
|
|
33257
33257
|
|
|
33258
|
-
// node_modules/yoga-layout/dist/src/wrapAssembly.js
|
|
33258
|
+
// ../../node_modules/yoga-layout/dist/src/wrapAssembly.js
|
|
33259
33259
|
function wrapAssembly(lib) {
|
|
33260
33260
|
function patch(prototype, name, fn) {
|
|
33261
33261
|
const original = prototype[name];
|
|
@@ -33357,7 +33357,7 @@ function wrapAssembly(lib) {
|
|
|
33357
33357
|
};
|
|
33358
33358
|
}
|
|
33359
33359
|
|
|
33360
|
-
// node_modules/yoga-layout/dist/src/index.js
|
|
33360
|
+
// ../../node_modules/yoga-layout/dist/src/index.js
|
|
33361
33361
|
var Yoga = wrapAssembly(await yoga_wasm_base64_esm_default());
|
|
33362
33362
|
var src_default = Yoga;
|
|
33363
33363
|
|
|
@@ -33371,7 +33371,6 @@ class TrackedNode extends EventEmitter {
|
|
|
33371
33371
|
metadata;
|
|
33372
33372
|
parent;
|
|
33373
33373
|
children;
|
|
33374
|
-
zIndex;
|
|
33375
33374
|
_destroyed = false;
|
|
33376
33375
|
_width = "auto";
|
|
33377
33376
|
_height = "auto";
|
|
@@ -33382,7 +33381,6 @@ class TrackedNode extends EventEmitter {
|
|
|
33382
33381
|
this.metadata = metadata;
|
|
33383
33382
|
this.parent = null;
|
|
33384
33383
|
this.children = [];
|
|
33385
|
-
this.zIndex = 0;
|
|
33386
33384
|
}
|
|
33387
33385
|
parseWidth(width) {
|
|
33388
33386
|
if (this._destroyed) {
|
|
@@ -33439,9 +33437,6 @@ class TrackedNode extends EventEmitter {
|
|
|
33439
33437
|
childNode.parent = this;
|
|
33440
33438
|
const index = this.children.length;
|
|
33441
33439
|
this.children.push(childNode);
|
|
33442
|
-
if (!childNode.zIndex) {
|
|
33443
|
-
childNode.zIndex = this.zIndex + 100;
|
|
33444
|
-
}
|
|
33445
33440
|
this.yogaNode.insertChild(childNode.yogaNode, index);
|
|
33446
33441
|
try {
|
|
33447
33442
|
childNode.yogaNode.setWidth(childNode.parseWidth(childNode._width));
|
|
@@ -33494,7 +33489,6 @@ class TrackedNode extends EventEmitter {
|
|
|
33494
33489
|
childNode.parent.removeChild(childNode);
|
|
33495
33490
|
}
|
|
33496
33491
|
childNode.parent = this;
|
|
33497
|
-
childNode.zIndex = this.zIndex + 100;
|
|
33498
33492
|
const boundedIndex = Math.max(0, Math.min(index, this.children.length));
|
|
33499
33493
|
this.children.splice(boundedIndex, 0, childNode);
|
|
33500
33494
|
this.yogaNode.insertChild(childNode.yogaNode, boundedIndex);
|
|
@@ -33987,38 +33981,8 @@ class Renderable extends EventEmitter3 {
|
|
|
33987
33981
|
if (options.maxHeight !== undefined) {
|
|
33988
33982
|
node.setMaxHeight(options.maxHeight);
|
|
33989
33983
|
}
|
|
33990
|
-
|
|
33991
|
-
|
|
33992
|
-
if (top !== undefined)
|
|
33993
|
-
node.setMargin(Edge2.Top, top);
|
|
33994
|
-
if (right !== undefined)
|
|
33995
|
-
node.setMargin(Edge2.Right, right);
|
|
33996
|
-
if (bottom !== undefined)
|
|
33997
|
-
node.setMargin(Edge2.Bottom, bottom);
|
|
33998
|
-
if (left !== undefined)
|
|
33999
|
-
node.setMargin(Edge2.Left, left);
|
|
34000
|
-
} else if (options.margin !== undefined) {
|
|
34001
|
-
node.setMargin(Edge2.Top, options.margin);
|
|
34002
|
-
node.setMargin(Edge2.Right, options.margin);
|
|
34003
|
-
node.setMargin(Edge2.Bottom, options.margin);
|
|
34004
|
-
node.setMargin(Edge2.Left, options.margin);
|
|
34005
|
-
}
|
|
34006
|
-
if (typeof options.padding === "object") {
|
|
34007
|
-
const { top, right, bottom, left } = options.padding;
|
|
34008
|
-
if (top !== undefined)
|
|
34009
|
-
node.setPadding(Edge2.Top, top);
|
|
34010
|
-
if (right !== undefined)
|
|
34011
|
-
node.setPadding(Edge2.Right, right);
|
|
34012
|
-
if (bottom !== undefined)
|
|
34013
|
-
node.setPadding(Edge2.Bottom, bottom);
|
|
34014
|
-
if (left !== undefined)
|
|
34015
|
-
node.setPadding(Edge2.Left, left);
|
|
34016
|
-
} else if (options.padding !== undefined) {
|
|
34017
|
-
node.setPadding(Edge2.Top, options.padding);
|
|
34018
|
-
node.setPadding(Edge2.Right, options.padding);
|
|
34019
|
-
node.setPadding(Edge2.Bottom, options.padding);
|
|
34020
|
-
node.setPadding(Edge2.Left, options.padding);
|
|
34021
|
-
}
|
|
33984
|
+
this.margin = options.margin;
|
|
33985
|
+
this.padding = options.padding;
|
|
34022
33986
|
}
|
|
34023
33987
|
setPosition(position) {
|
|
34024
33988
|
this._position = position;
|
|
@@ -34108,6 +34072,46 @@ class Renderable extends EventEmitter3 {
|
|
|
34108
34072
|
this.layoutNode.yogaNode.setMaxHeight(maxHeight);
|
|
34109
34073
|
this.requestLayout();
|
|
34110
34074
|
}
|
|
34075
|
+
set margin(margin) {
|
|
34076
|
+
const node = this.layoutNode.yogaNode;
|
|
34077
|
+
if (typeof margin === "object") {
|
|
34078
|
+
const { top, right, bottom, left } = margin;
|
|
34079
|
+
if (top !== undefined)
|
|
34080
|
+
node.setMargin(Edge2.Top, top);
|
|
34081
|
+
if (right !== undefined)
|
|
34082
|
+
node.setMargin(Edge2.Right, right);
|
|
34083
|
+
if (bottom !== undefined)
|
|
34084
|
+
node.setMargin(Edge2.Bottom, bottom);
|
|
34085
|
+
if (left !== undefined)
|
|
34086
|
+
node.setMargin(Edge2.Left, left);
|
|
34087
|
+
} else if (margin !== undefined) {
|
|
34088
|
+
node.setMargin(Edge2.Top, margin);
|
|
34089
|
+
node.setMargin(Edge2.Right, margin);
|
|
34090
|
+
node.setMargin(Edge2.Bottom, margin);
|
|
34091
|
+
node.setMargin(Edge2.Left, margin);
|
|
34092
|
+
}
|
|
34093
|
+
this.requestLayout();
|
|
34094
|
+
}
|
|
34095
|
+
set padding(padding) {
|
|
34096
|
+
const node = this.layoutNode.yogaNode;
|
|
34097
|
+
if (typeof padding === "object") {
|
|
34098
|
+
const { top, right, bottom, left } = padding;
|
|
34099
|
+
if (top !== undefined)
|
|
34100
|
+
node.setPadding(Edge2.Top, top);
|
|
34101
|
+
if (right !== undefined)
|
|
34102
|
+
node.setPadding(Edge2.Right, right);
|
|
34103
|
+
if (bottom !== undefined)
|
|
34104
|
+
node.setPadding(Edge2.Bottom, bottom);
|
|
34105
|
+
if (left !== undefined)
|
|
34106
|
+
node.setPadding(Edge2.Left, left);
|
|
34107
|
+
} else if (padding !== undefined) {
|
|
34108
|
+
node.setPadding(Edge2.Top, padding);
|
|
34109
|
+
node.setPadding(Edge2.Right, padding);
|
|
34110
|
+
node.setPadding(Edge2.Bottom, padding);
|
|
34111
|
+
node.setPadding(Edge2.Left, padding);
|
|
34112
|
+
}
|
|
34113
|
+
this.requestLayout();
|
|
34114
|
+
}
|
|
34111
34115
|
getLayoutNode() {
|
|
34112
34116
|
return this.layoutNode;
|
|
34113
34117
|
}
|
|
@@ -34172,10 +34176,7 @@ class Renderable extends EventEmitter3 {
|
|
|
34172
34176
|
}
|
|
34173
34177
|
this.needsUpdate();
|
|
34174
34178
|
}
|
|
34175
|
-
|
|
34176
|
-
if (this.renderableMap.has(obj.id)) {
|
|
34177
|
-
this.remove(obj.id);
|
|
34178
|
-
}
|
|
34179
|
+
replaceParent(obj) {
|
|
34179
34180
|
if (obj.parent) {
|
|
34180
34181
|
obj.parent.remove(obj.id);
|
|
34181
34182
|
}
|
|
@@ -34183,13 +34184,40 @@ class Renderable extends EventEmitter3 {
|
|
|
34183
34184
|
if (this.ctx) {
|
|
34184
34185
|
obj.propagateContext(this.ctx);
|
|
34185
34186
|
}
|
|
34186
|
-
|
|
34187
|
+
}
|
|
34188
|
+
add(obj, index) {
|
|
34189
|
+
if (this.renderableMap.has(obj.id)) {
|
|
34190
|
+
console.warn(`A renderable with id ${obj.id} already exists in ${this.id}, removing it`);
|
|
34191
|
+
this.remove(obj.id);
|
|
34192
|
+
}
|
|
34193
|
+
this.replaceParent(obj);
|
|
34194
|
+
const childLayoutNode = obj.getLayoutNode();
|
|
34195
|
+
let insertedIndex;
|
|
34196
|
+
if (index !== undefined) {
|
|
34197
|
+
this.renderableArray.splice(index, 0, obj);
|
|
34198
|
+
insertedIndex = this.layoutNode.insertChild(childLayoutNode, index);
|
|
34199
|
+
} else {
|
|
34200
|
+
this.renderableArray.push(obj);
|
|
34201
|
+
insertedIndex = this.layoutNode.addChild(childLayoutNode);
|
|
34202
|
+
}
|
|
34187
34203
|
this.needsZIndexSort = true;
|
|
34188
34204
|
this.renderableMap.set(obj.id, obj);
|
|
34189
|
-
const childLayoutNode = obj.getLayoutNode();
|
|
34190
|
-
this.layoutNode.addChild(childLayoutNode);
|
|
34191
34205
|
this.requestLayout();
|
|
34192
34206
|
this.emit("child:added", obj);
|
|
34207
|
+
return insertedIndex;
|
|
34208
|
+
}
|
|
34209
|
+
insertBefore(obj, anchor) {
|
|
34210
|
+
if (!anchor) {
|
|
34211
|
+
return this.add(obj);
|
|
34212
|
+
}
|
|
34213
|
+
if (!this.renderableMap.has(anchor.id)) {
|
|
34214
|
+
throw new Error("Anchor does not exist");
|
|
34215
|
+
}
|
|
34216
|
+
const anchorIndex = this.renderableArray.indexOf(anchor);
|
|
34217
|
+
if (anchorIndex === -1) {
|
|
34218
|
+
throw new Error("Anchor does not exist");
|
|
34219
|
+
}
|
|
34220
|
+
return this.add(obj, anchorIndex);
|
|
34193
34221
|
}
|
|
34194
34222
|
propagateContext(ctx) {
|
|
34195
34223
|
this.ctx = ctx;
|
|
@@ -34263,6 +34291,12 @@ class Renderable extends EventEmitter3 {
|
|
|
34263
34291
|
this.removeAllListeners();
|
|
34264
34292
|
this.destroySelf();
|
|
34265
34293
|
}
|
|
34294
|
+
destroyRecursively() {
|
|
34295
|
+
this.destroy();
|
|
34296
|
+
for (const child of this.renderableArray) {
|
|
34297
|
+
child.destroyRecursively();
|
|
34298
|
+
}
|
|
34299
|
+
}
|
|
34266
34300
|
destroySelf() {}
|
|
34267
34301
|
processMouseEvent(event) {
|
|
34268
34302
|
this.onMouseEvent(event);
|
|
@@ -34290,22 +34324,6 @@ class RootRenderable extends Renderable {
|
|
|
34290
34324
|
this.layoutNode.yogaNode.setFlexDirection(FlexDirection.Column);
|
|
34291
34325
|
this.calculateLayout();
|
|
34292
34326
|
}
|
|
34293
|
-
add(obj) {
|
|
34294
|
-
super.add(obj);
|
|
34295
|
-
const childLayoutNode = obj.getLayoutNode();
|
|
34296
|
-
this.layoutNode.addChild(childLayoutNode);
|
|
34297
|
-
this.requestLayout();
|
|
34298
|
-
this.emit("added" /* ADDED */, obj);
|
|
34299
|
-
}
|
|
34300
|
-
remove(id) {
|
|
34301
|
-
const obj = this.getRenderable(id);
|
|
34302
|
-
if (obj) {
|
|
34303
|
-
this.layoutNode.removeChild(obj.getLayoutNode());
|
|
34304
|
-
this.emit("removed" /* REMOVED */, obj);
|
|
34305
|
-
this.requestLayout();
|
|
34306
|
-
}
|
|
34307
|
-
super.remove(id);
|
|
34308
|
-
}
|
|
34309
34327
|
requestLayout() {
|
|
34310
34328
|
this.needsUpdate();
|
|
34311
34329
|
}
|
|
@@ -34334,9 +34352,8 @@ class RootRenderable extends Renderable {
|
|
|
34334
34352
|
}
|
|
34335
34353
|
}
|
|
34336
34354
|
// src/zig.ts
|
|
34337
|
-
import { dlopen,
|
|
34338
|
-
import {
|
|
34339
|
-
import { existsSync as existsSync2, readFileSync } from "fs";
|
|
34355
|
+
import { dlopen, toArrayBuffer as toArrayBuffer2 } from "bun:ffi";
|
|
34356
|
+
import { existsSync as existsSync2 } from "fs";
|
|
34340
34357
|
|
|
34341
34358
|
// src/text-buffer.ts
|
|
34342
34359
|
class TextBuffer {
|
|
@@ -34423,25 +34440,13 @@ class TextBuffer {
|
|
|
34423
34440
|
}
|
|
34424
34441
|
|
|
34425
34442
|
// src/zig.ts
|
|
34426
|
-
|
|
34427
|
-
|
|
34428
|
-
|
|
34429
|
-
var __filename2 = fileURLToPath(import.meta.url);
|
|
34430
|
-
var __dirname2 = dirname(__filename2);
|
|
34431
|
-
var packageJson = JSON.parse(readFileSync(join(__dirname2, ...__filename2.endsWith(".ts") ? ["..", "dist", "./package.json"] : ["./package.json"]), { encoding: "utf8" }));
|
|
34432
|
-
function findLibrary() {
|
|
34433
|
-
try {
|
|
34434
|
-
const isWindows = process.platform === "win32";
|
|
34435
|
-
const libraryName = isWindows ? "opentui" : "libopentui";
|
|
34436
|
-
const targetLibPath = require2.resolve(`${packageJson.name}-${process.platform}-${process.arch}/${libraryName}.${suffix}`);
|
|
34437
|
-
if (existsSync2(targetLibPath)) {
|
|
34438
|
-
return targetLibPath;
|
|
34439
|
-
}
|
|
34440
|
-
} catch {}
|
|
34443
|
+
var module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`);
|
|
34444
|
+
var targetLibPath = module.default;
|
|
34445
|
+
if (!existsSync2(targetLibPath)) {
|
|
34441
34446
|
throw new Error(`opentui is not supported on the current platform: ${process.platform}-${process.arch}`);
|
|
34442
34447
|
}
|
|
34443
34448
|
function getOpenTUILib(libPath) {
|
|
34444
|
-
const resolvedLibPath = libPath ||
|
|
34449
|
+
const resolvedLibPath = libPath || targetLibPath;
|
|
34445
34450
|
return dlopen(resolvedLibPath, {
|
|
34446
34451
|
createRenderer: {
|
|
34447
34452
|
args: ["u32", "u32"],
|
|
@@ -35530,6 +35535,32 @@ class TimelineEngine {
|
|
|
35530
35535
|
var engine = new TimelineEngine;
|
|
35531
35536
|
// src/lib/styled-text.ts
|
|
35532
35537
|
var textEncoder = new TextEncoder;
|
|
35538
|
+
|
|
35539
|
+
class StyledText {
|
|
35540
|
+
chunks;
|
|
35541
|
+
_length;
|
|
35542
|
+
_plainText;
|
|
35543
|
+
constructor(chunks, length, plainText) {
|
|
35544
|
+
this.chunks = chunks;
|
|
35545
|
+
this._length = length;
|
|
35546
|
+
this._plainText = plainText;
|
|
35547
|
+
}
|
|
35548
|
+
toString() {
|
|
35549
|
+
return this._plainText;
|
|
35550
|
+
}
|
|
35551
|
+
get length() {
|
|
35552
|
+
return this._length;
|
|
35553
|
+
}
|
|
35554
|
+
}
|
|
35555
|
+
function stringToStyledText(content) {
|
|
35556
|
+
const textEncoder2 = new TextEncoder;
|
|
35557
|
+
const chunk = {
|
|
35558
|
+
__isChunk: true,
|
|
35559
|
+
text: textEncoder2.encode(content),
|
|
35560
|
+
plainText: content
|
|
35561
|
+
};
|
|
35562
|
+
return new StyledText([chunk], content.length, content);
|
|
35563
|
+
}
|
|
35533
35564
|
var templateCache = new WeakMap;
|
|
35534
35565
|
// src/lib/selection.ts
|
|
35535
35566
|
class Selection {
|
|
@@ -35570,6 +35601,122 @@ class Selection {
|
|
|
35570
35601
|
`);
|
|
35571
35602
|
}
|
|
35572
35603
|
}
|
|
35604
|
+
|
|
35605
|
+
class TextSelectionHelper {
|
|
35606
|
+
getX;
|
|
35607
|
+
getY;
|
|
35608
|
+
getTextLength;
|
|
35609
|
+
getLineInfo;
|
|
35610
|
+
localSelection = null;
|
|
35611
|
+
cachedGlobalSelection = null;
|
|
35612
|
+
constructor(getX, getY, getTextLength, getLineInfo) {
|
|
35613
|
+
this.getX = getX;
|
|
35614
|
+
this.getY = getY;
|
|
35615
|
+
this.getTextLength = getTextLength;
|
|
35616
|
+
this.getLineInfo = getLineInfo;
|
|
35617
|
+
}
|
|
35618
|
+
hasSelection() {
|
|
35619
|
+
return this.localSelection !== null;
|
|
35620
|
+
}
|
|
35621
|
+
getSelection() {
|
|
35622
|
+
return this.localSelection;
|
|
35623
|
+
}
|
|
35624
|
+
reevaluateSelection(width, height = 1) {
|
|
35625
|
+
if (!this.cachedGlobalSelection) {
|
|
35626
|
+
return false;
|
|
35627
|
+
}
|
|
35628
|
+
return this.onSelectionChanged(this.cachedGlobalSelection, width, height);
|
|
35629
|
+
}
|
|
35630
|
+
shouldStartSelection(x2, y2, width, height) {
|
|
35631
|
+
const localX = x2 - this.getX();
|
|
35632
|
+
const localY = y2 - this.getY();
|
|
35633
|
+
return localX >= 0 && localX < width && localY >= 0 && localY < height;
|
|
35634
|
+
}
|
|
35635
|
+
onSelectionChanged(selection, width, height = 1) {
|
|
35636
|
+
this.cachedGlobalSelection = selection;
|
|
35637
|
+
const previousSelection = this.localSelection;
|
|
35638
|
+
if (!selection?.isActive) {
|
|
35639
|
+
this.localSelection = null;
|
|
35640
|
+
return previousSelection !== null;
|
|
35641
|
+
}
|
|
35642
|
+
const myY = this.getY();
|
|
35643
|
+
const myEndY = myY + height - 1;
|
|
35644
|
+
if (myEndY < selection.anchor.y || myY > selection.focus.y) {
|
|
35645
|
+
this.localSelection = null;
|
|
35646
|
+
return previousSelection !== null;
|
|
35647
|
+
}
|
|
35648
|
+
if (height === 1) {
|
|
35649
|
+
this.localSelection = this.calculateSingleLineSelection(myY, selection.anchor.y, selection.focus.y, selection.anchor.x, selection.focus.x, width);
|
|
35650
|
+
} else {
|
|
35651
|
+
this.localSelection = this.calculateMultiLineSelection(myY, selection.anchor.y, selection.focus.y, selection.anchor.x, selection.focus.x);
|
|
35652
|
+
}
|
|
35653
|
+
return this.localSelection !== null !== (previousSelection !== null) || this.localSelection?.start !== previousSelection?.start || this.localSelection?.end !== previousSelection?.end;
|
|
35654
|
+
}
|
|
35655
|
+
calculateSingleLineSelection(lineY, anchorY, focusY, anchorX, focusX, width) {
|
|
35656
|
+
const textLength = this.getTextLength();
|
|
35657
|
+
const myX = this.getX();
|
|
35658
|
+
if (lineY > anchorY && lineY < focusY) {
|
|
35659
|
+
return { start: 0, end: textLength };
|
|
35660
|
+
}
|
|
35661
|
+
if (lineY === anchorY && lineY === focusY) {
|
|
35662
|
+
const start = Math.max(0, Math.min(anchorX - myX, textLength));
|
|
35663
|
+
const end = Math.max(0, Math.min(focusX - myX, textLength));
|
|
35664
|
+
return start < end ? { start, end } : null;
|
|
35665
|
+
}
|
|
35666
|
+
if (lineY === anchorY) {
|
|
35667
|
+
const start = Math.max(0, Math.min(anchorX - myX, textLength));
|
|
35668
|
+
return start < textLength ? { start, end: textLength } : null;
|
|
35669
|
+
}
|
|
35670
|
+
if (lineY === focusY) {
|
|
35671
|
+
const end = Math.max(0, Math.min(focusX - myX, textLength));
|
|
35672
|
+
return end > 0 ? { start: 0, end } : null;
|
|
35673
|
+
}
|
|
35674
|
+
return null;
|
|
35675
|
+
}
|
|
35676
|
+
calculateMultiLineSelection(startY, anchorY, focusY, anchorX, focusX) {
|
|
35677
|
+
const lineInfo = this.getLineInfo?.();
|
|
35678
|
+
if (!lineInfo) {
|
|
35679
|
+
return { start: 0, end: this.getTextLength() };
|
|
35680
|
+
}
|
|
35681
|
+
const myX = this.getX();
|
|
35682
|
+
let selectionStart = null;
|
|
35683
|
+
let selectionEnd = null;
|
|
35684
|
+
for (let i = 0;i < lineInfo.lineStarts.length; i++) {
|
|
35685
|
+
const lineY = startY + i;
|
|
35686
|
+
if (lineY < anchorY || lineY > focusY)
|
|
35687
|
+
continue;
|
|
35688
|
+
const lineStart = lineInfo.lineStarts[i];
|
|
35689
|
+
const lineEnd = i < lineInfo.lineStarts.length - 1 ? lineInfo.lineStarts[i + 1] - 1 : this.getTextLength();
|
|
35690
|
+
const lineWidth = lineInfo.lineWidths[i];
|
|
35691
|
+
if (lineY > anchorY && lineY < focusY) {
|
|
35692
|
+
if (selectionStart === null)
|
|
35693
|
+
selectionStart = lineStart;
|
|
35694
|
+
selectionEnd = lineEnd;
|
|
35695
|
+
} else if (lineY === anchorY && lineY === focusY) {
|
|
35696
|
+
const localStartX = Math.max(0, Math.min(anchorX - myX, lineWidth));
|
|
35697
|
+
const localEndX = Math.max(0, Math.min(focusX - myX, lineWidth));
|
|
35698
|
+
if (localStartX < localEndX) {
|
|
35699
|
+
selectionStart = lineStart + localStartX;
|
|
35700
|
+
selectionEnd = lineStart + localEndX;
|
|
35701
|
+
}
|
|
35702
|
+
} else if (lineY === anchorY) {
|
|
35703
|
+
const localStartX = Math.max(0, Math.min(anchorX - myX, lineWidth));
|
|
35704
|
+
if (localStartX < lineWidth) {
|
|
35705
|
+
selectionStart = lineStart + localStartX;
|
|
35706
|
+
selectionEnd = lineEnd;
|
|
35707
|
+
}
|
|
35708
|
+
} else if (lineY === focusY) {
|
|
35709
|
+
const localEndX = Math.max(0, Math.min(focusX - myX, lineWidth));
|
|
35710
|
+
if (localEndX > 0) {
|
|
35711
|
+
if (selectionStart === null)
|
|
35712
|
+
selectionStart = lineStart;
|
|
35713
|
+
selectionEnd = lineStart + localEndX;
|
|
35714
|
+
}
|
|
35715
|
+
}
|
|
35716
|
+
}
|
|
35717
|
+
return selectionStart !== null && selectionEnd !== null && selectionStart < selectionEnd ? { start: selectionStart, end: selectionEnd } : null;
|
|
35718
|
+
}
|
|
35719
|
+
}
|
|
35573
35720
|
// src/ansi.ts
|
|
35574
35721
|
var ANSI = {
|
|
35575
35722
|
switchToAlternateScreen: "\x1B[?1049h",
|
|
@@ -35670,6 +35817,22 @@ function getCallerInfo() {
|
|
|
35670
35817
|
const columnNumber = parseInt(match[4], 10) || 0;
|
|
35671
35818
|
return { functionName, fullPath, fileName, lineNumber, columnNumber };
|
|
35672
35819
|
}
|
|
35820
|
+
var capture = new Capture;
|
|
35821
|
+
var mockStdout = new CapturedWritableStream("stdout", capture);
|
|
35822
|
+
var mockStderr = new CapturedWritableStream("stderr", capture);
|
|
35823
|
+
if (process.env.SKIP_CONSOLE_CACHE !== "true") {
|
|
35824
|
+
global.console = new console.Console({
|
|
35825
|
+
stdout: mockStdout,
|
|
35826
|
+
stderr: mockStderr,
|
|
35827
|
+
colorMode: true,
|
|
35828
|
+
inspectOptions: {
|
|
35829
|
+
compact: false,
|
|
35830
|
+
breakLength: 80,
|
|
35831
|
+
depth: 2
|
|
35832
|
+
}
|
|
35833
|
+
});
|
|
35834
|
+
}
|
|
35835
|
+
|
|
35673
35836
|
class TerminalConsoleCache extends EventEmitter5 {
|
|
35674
35837
|
originalConsole;
|
|
35675
35838
|
_cachedLogs = [];
|
|
@@ -35750,19 +35913,6 @@ class TerminalConsoleCache extends EventEmitter5 {
|
|
|
35750
35913
|
this.deactivate();
|
|
35751
35914
|
}
|
|
35752
35915
|
}
|
|
35753
|
-
var capture = new Capture;
|
|
35754
|
-
var mockStdout = new CapturedWritableStream("stdout", capture);
|
|
35755
|
-
var mockStderr = new CapturedWritableStream("stderr", capture);
|
|
35756
|
-
global.console = new console.Console({
|
|
35757
|
-
stdout: mockStdout,
|
|
35758
|
-
stderr: mockStderr,
|
|
35759
|
-
colorMode: true,
|
|
35760
|
-
inspectOptions: {
|
|
35761
|
-
compact: false,
|
|
35762
|
-
breakLength: 80,
|
|
35763
|
-
depth: 2
|
|
35764
|
-
}
|
|
35765
|
-
});
|
|
35766
35916
|
var terminalConsoleCache = new TerminalConsoleCache;
|
|
35767
35917
|
process.on("exit", () => {
|
|
35768
35918
|
terminalConsoleCache.destroy();
|
|
@@ -37278,6 +37428,174 @@ Error details:
|
|
|
37278
37428
|
}
|
|
37279
37429
|
}
|
|
37280
37430
|
}
|
|
37431
|
+
// src/renderables/Text.ts
|
|
37432
|
+
class TextRenderable extends Renderable {
|
|
37433
|
+
selectable = true;
|
|
37434
|
+
_text = stringToStyledText("");
|
|
37435
|
+
_defaultFg;
|
|
37436
|
+
_defaultBg;
|
|
37437
|
+
_defaultAttributes;
|
|
37438
|
+
_selectionBg;
|
|
37439
|
+
_selectionFg;
|
|
37440
|
+
selectionHelper;
|
|
37441
|
+
textBuffer;
|
|
37442
|
+
_plainText = "";
|
|
37443
|
+
_lineInfo = { lineStarts: [], lineWidths: [] };
|
|
37444
|
+
constructor(id, options) {
|
|
37445
|
+
super(id, options);
|
|
37446
|
+
this.selectionHelper = new TextSelectionHelper(() => this.x, () => this.y, () => this._plainText.length, () => this._lineInfo);
|
|
37447
|
+
if (options.content) {
|
|
37448
|
+
this._text = typeof options.content === "string" ? stringToStyledText(options.content) : options.content;
|
|
37449
|
+
}
|
|
37450
|
+
this._defaultFg = options.fg ? parseColor(options.fg) : RGBA.fromValues(1, 1, 1, 1);
|
|
37451
|
+
this._defaultBg = options.bg ? parseColor(options.bg) : RGBA.fromValues(0, 0, 0, 0);
|
|
37452
|
+
this._defaultAttributes = options.attributes ?? 0;
|
|
37453
|
+
this._selectionBg = options.selectionBg ? parseColor(options.selectionBg) : undefined;
|
|
37454
|
+
this._selectionFg = options.selectionFg ? parseColor(options.selectionFg) : undefined;
|
|
37455
|
+
this.selectable = options.selectable ?? true;
|
|
37456
|
+
this.textBuffer = TextBuffer.create(64);
|
|
37457
|
+
this.textBuffer.setDefaultFg(this._defaultFg);
|
|
37458
|
+
this.textBuffer.setDefaultBg(this._defaultBg);
|
|
37459
|
+
this.textBuffer.setDefaultAttributes(this._defaultAttributes);
|
|
37460
|
+
this.updateTextInfo();
|
|
37461
|
+
this.setupMeasureFunc();
|
|
37462
|
+
}
|
|
37463
|
+
get content() {
|
|
37464
|
+
return this._text;
|
|
37465
|
+
}
|
|
37466
|
+
set content(value) {
|
|
37467
|
+
this._text = typeof value === "string" ? stringToStyledText(value) : value;
|
|
37468
|
+
this.updateTextInfo();
|
|
37469
|
+
this.setupMeasureFunc();
|
|
37470
|
+
this.needsUpdate();
|
|
37471
|
+
}
|
|
37472
|
+
get fg() {
|
|
37473
|
+
return this._defaultFg;
|
|
37474
|
+
}
|
|
37475
|
+
set fg(value) {
|
|
37476
|
+
if (value) {
|
|
37477
|
+
this._defaultFg = parseColor(value);
|
|
37478
|
+
this.textBuffer.setDefaultFg(this._defaultFg);
|
|
37479
|
+
this.needsUpdate();
|
|
37480
|
+
}
|
|
37481
|
+
}
|
|
37482
|
+
get bg() {
|
|
37483
|
+
return this._defaultBg;
|
|
37484
|
+
}
|
|
37485
|
+
set bg(value) {
|
|
37486
|
+
if (value) {
|
|
37487
|
+
this._defaultBg = parseColor(value);
|
|
37488
|
+
this.textBuffer.setDefaultBg(this._defaultBg);
|
|
37489
|
+
this.needsUpdate();
|
|
37490
|
+
}
|
|
37491
|
+
}
|
|
37492
|
+
get attributes() {
|
|
37493
|
+
return this._defaultAttributes;
|
|
37494
|
+
}
|
|
37495
|
+
set attributes(value) {
|
|
37496
|
+
this._defaultAttributes = value;
|
|
37497
|
+
this.textBuffer.setDefaultAttributes(this._defaultAttributes);
|
|
37498
|
+
this.needsUpdate();
|
|
37499
|
+
}
|
|
37500
|
+
onResize(width, height) {
|
|
37501
|
+
const changed = this.selectionHelper.reevaluateSelection(width, height);
|
|
37502
|
+
if (changed) {
|
|
37503
|
+
this.syncSelectionToTextBuffer();
|
|
37504
|
+
this.needsUpdate();
|
|
37505
|
+
}
|
|
37506
|
+
}
|
|
37507
|
+
syncSelectionToTextBuffer() {
|
|
37508
|
+
const selection = this.selectionHelper.getSelection();
|
|
37509
|
+
if (selection) {
|
|
37510
|
+
this.textBuffer.setSelection(selection.start, selection.end, this._selectionBg, this._selectionFg);
|
|
37511
|
+
} else {
|
|
37512
|
+
this.textBuffer.resetSelection();
|
|
37513
|
+
}
|
|
37514
|
+
}
|
|
37515
|
+
updateTextInfo() {
|
|
37516
|
+
this._plainText = this._text.toString();
|
|
37517
|
+
this.updateTextBuffer();
|
|
37518
|
+
const lineInfo = this.textBuffer.lineInfo;
|
|
37519
|
+
this._lineInfo.lineStarts = lineInfo.lineStarts;
|
|
37520
|
+
this._lineInfo.lineWidths = lineInfo.lineWidths;
|
|
37521
|
+
const numLines = this._lineInfo.lineStarts.length;
|
|
37522
|
+
if (this._height === "auto") {
|
|
37523
|
+
this.height = numLines;
|
|
37524
|
+
}
|
|
37525
|
+
const maxLineWidth = Math.max(...this._lineInfo.lineWidths);
|
|
37526
|
+
if (this._positionType === "absolute" && this._width === "auto") {
|
|
37527
|
+
this.width = maxLineWidth;
|
|
37528
|
+
}
|
|
37529
|
+
const changed = this.selectionHelper.reevaluateSelection(this.width, this.height);
|
|
37530
|
+
if (changed) {
|
|
37531
|
+
this.syncSelectionToTextBuffer();
|
|
37532
|
+
this.needsUpdate();
|
|
37533
|
+
}
|
|
37534
|
+
}
|
|
37535
|
+
setupMeasureFunc() {
|
|
37536
|
+
if (this._positionType === "relative" && this._width === "auto") {
|
|
37537
|
+
const measureFunc = (width, widthMode, height, heightMode) => {
|
|
37538
|
+
const maxLineWidth = Math.max(...this._lineInfo.lineWidths, 0);
|
|
37539
|
+
const numLines = this._lineInfo.lineStarts.length || 1;
|
|
37540
|
+
let measuredWidth = maxLineWidth;
|
|
37541
|
+
let measuredHeight = numLines;
|
|
37542
|
+
if (widthMode === MeasureMode.Exactly) {
|
|
37543
|
+
measuredWidth = width;
|
|
37544
|
+
} else if (widthMode === MeasureMode.AtMost) {
|
|
37545
|
+
measuredWidth = Math.min(maxLineWidth, width);
|
|
37546
|
+
}
|
|
37547
|
+
if (heightMode === MeasureMode.Exactly) {
|
|
37548
|
+
measuredHeight = height;
|
|
37549
|
+
} else if (heightMode === MeasureMode.AtMost) {
|
|
37550
|
+
measuredHeight = Math.min(numLines, height);
|
|
37551
|
+
}
|
|
37552
|
+
return {
|
|
37553
|
+
width: Math.max(1, measuredWidth),
|
|
37554
|
+
height: Math.max(1, measuredHeight)
|
|
37555
|
+
};
|
|
37556
|
+
};
|
|
37557
|
+
this.layoutNode.yogaNode.setMeasureFunc(measureFunc);
|
|
37558
|
+
}
|
|
37559
|
+
}
|
|
37560
|
+
shouldStartSelection(x2, y2) {
|
|
37561
|
+
return this.selectionHelper.shouldStartSelection(x2, y2, this.width, this.height);
|
|
37562
|
+
}
|
|
37563
|
+
onSelectionChanged(selection) {
|
|
37564
|
+
const changed = this.selectionHelper.onSelectionChanged(selection, this.width, this.height);
|
|
37565
|
+
if (changed) {
|
|
37566
|
+
this.syncSelectionToTextBuffer();
|
|
37567
|
+
this.needsUpdate();
|
|
37568
|
+
}
|
|
37569
|
+
return this.selectionHelper.hasSelection();
|
|
37570
|
+
}
|
|
37571
|
+
getSelectedText() {
|
|
37572
|
+
const selection = this.selectionHelper.getSelection();
|
|
37573
|
+
if (!selection)
|
|
37574
|
+
return "";
|
|
37575
|
+
return this._plainText.slice(selection.start, selection.end);
|
|
37576
|
+
}
|
|
37577
|
+
hasSelection() {
|
|
37578
|
+
return this.selectionHelper.hasSelection();
|
|
37579
|
+
}
|
|
37580
|
+
updateTextBuffer() {
|
|
37581
|
+
this.textBuffer.setStyledText(this._text);
|
|
37582
|
+
}
|
|
37583
|
+
renderSelf(buffer) {
|
|
37584
|
+
if (this.textBuffer.ptr) {
|
|
37585
|
+
const clipRect = {
|
|
37586
|
+
x: this.x,
|
|
37587
|
+
y: this.y,
|
|
37588
|
+
width: this.width,
|
|
37589
|
+
height: this.height
|
|
37590
|
+
};
|
|
37591
|
+
buffer.drawTextBuffer(this.textBuffer, this.x, this.y, clipRect);
|
|
37592
|
+
}
|
|
37593
|
+
}
|
|
37594
|
+
destroy() {
|
|
37595
|
+
this.textBuffer.destroy();
|
|
37596
|
+
super.destroy();
|
|
37597
|
+
}
|
|
37598
|
+
}
|
|
37281
37599
|
// src/3d/WGPURenderer.ts
|
|
37282
37600
|
var SuperSampleType;
|
|
37283
37601
|
((SuperSampleType2) => {
|