├── .envrc ├── .gitignore ├── .gitmodules ├── .prettierrc.js ├── README.md ├── flake.lock ├── flake.nix ├── nix ├── althttpd.nix ├── extension-functions.c ├── sqlite-wasm.nix └── wa-sqlite-livestore.nix ├── package.json ├── packages ├── example │ ├── crsqlite.html │ ├── index.html │ ├── package.json │ ├── sqlite.html │ ├── src │ │ ├── crsqlite-worker.ts │ │ ├── crsqlite.ts │ │ ├── sqlite-worker.ts │ │ └── sqlite.ts │ └── vite.config.js └── sqlite │ ├── nix │ ├── builder.sh │ └── default.nix │ ├── package.json │ ├── publish.sh │ └── src │ ├── sqlite3-wrapper.js │ └── sqlite3.d.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml └── test ├── lib ├── lib.ts └── sqlite-utils.ts ├── package.json ├── session-ext.ts ├── session-ext2.ts ├── session-ext3.ts ├── session-ext4.ts └── test-blob.ts /.envrc: -------------------------------------------------------------------------------- 1 | if command -v nix-shell &> /dev/null 2 | then 3 | use_flake 4 | fi -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules/ 3 | .DS_Store 4 | .turbo/ 5 | .pnpm-debug.log 6 | tsconfig.tsbuildinfo 7 | .direnv 8 | 9 | /wa-sqlite-livestore 10 | 11 | tmp 12 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "wa-sqlite"] 2 | path = wa-sqlite 3 | url = git@github.com:livestorejs/wa-sqlite.git 4 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | trailingComma: "es5", 3 | tabWidth: 2, 4 | semi: true, 5 | singleQuote: false, 6 | }; 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # wa-sqlite-build-env 2 | 3 | Build environment for [livestorejs/wa-sqlite](https://github.com/livestorejs/wa-sqlite). 4 | 5 | ## Build 6 | 7 | ```sh 8 | cp -r wa-sqlite wa-sqlite-local 9 | rm -rf wa-sqlite-local/.git 10 | git add wa-sqlite-local 11 | # update `localWaSqlite` in `nix/wa-sqlite-livestore.nix` 12 | nix develop --print-build-logs 13 | 14 | # TODO bring this back once Nix-submodule issue is fixed 15 | rm -rf wa-sqlite/dist 16 | nix develop '.?submodules=1' --print-build-logs 17 | ``` 18 | 19 | NOTE: `.?submodules=1` is required since `wa-sqlite` is a submodule. 20 | 21 | ## Publish 22 | 23 | ```sh 24 | cd wa-sqlite 25 | pnpm publish 26 | ``` 27 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "flake-utils": { 4 | "inputs": { 5 | "systems": "systems" 6 | }, 7 | "locked": { 8 | "lastModified": 1731533236, 9 | "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 10 | "owner": "numtide", 11 | "repo": "flake-utils", 12 | "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 13 | "type": "github" 14 | }, 15 | "original": { 16 | "owner": "numtide", 17 | "repo": "flake-utils", 18 | "type": "github" 19 | } 20 | }, 21 | "nixpkgs": { 22 | "locked": { 23 | "lastModified": 1740014378, 24 | "narHash": "sha256-OCFppvFOgQsSSTdQdxW3oVAsIvMJo/OyZD18dvJ2Ixc=", 25 | "owner": "NixOS", 26 | "repo": "nixpkgs", 27 | "rev": "f444c7cb4f9395451da6b40492d3bcd795b7d3f8", 28 | "type": "github" 29 | }, 30 | "original": { 31 | "owner": "NixOS", 32 | "ref": "release-24.11", 33 | "repo": "nixpkgs", 34 | "type": "github" 35 | } 36 | }, 37 | "nixpkgsUnstable": { 38 | "locked": { 39 | "lastModified": 1739866667, 40 | "narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=", 41 | "owner": "NixOS", 42 | "repo": "nixpkgs", 43 | "rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680", 44 | "type": "github" 45 | }, 46 | "original": { 47 | "owner": "NixOS", 48 | "ref": "nixos-unstable", 49 | "repo": "nixpkgs", 50 | "type": "github" 51 | } 52 | }, 53 | "root": { 54 | "inputs": { 55 | "flake-utils": "flake-utils", 56 | "nixpkgs": "nixpkgs", 57 | "nixpkgsUnstable": "nixpkgsUnstable" 58 | } 59 | }, 60 | "systems": { 61 | "locked": { 62 | "lastModified": 1681028828, 63 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 64 | "owner": "nix-systems", 65 | "repo": "default", 66 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 67 | "type": "github" 68 | }, 69 | "original": { 70 | "owner": "nix-systems", 71 | "repo": "default", 72 | "type": "github" 73 | } 74 | } 75 | }, 76 | "root": "root", 77 | "version": 7 78 | } 79 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs = { 3 | nixpkgs.url = "github:NixOS/nixpkgs/release-24.11"; 4 | nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable"; 5 | flake-utils.url = "github:numtide/flake-utils"; 6 | }; 7 | 8 | outputs = { self, nixpkgs, nixpkgsUnstable, flake-utils }: 9 | flake-utils.lib.eachDefaultSystem (system: 10 | let 11 | pkgs = import nixpkgs { inherit system; }; 12 | # pkgsUnstable is currently needed to get a recent emscripten version (2025-02-20-14:45) 13 | # TODO remove this once emscripten 3.1.73 is available in nixpkgs 14 | pkgsUnstable = import nixpkgsUnstable { inherit system; }; 15 | corepack = pkgs.runCommand "corepack-enable" {} '' 16 | mkdir -p $out/bin 17 | ${pkgs.nodejs_22}/bin/corepack enable --install-directory $out/bin 18 | ''; 19 | in 20 | { 21 | packages = { 22 | wa-sqlite-livestore = pkgs.callPackage ./nix/wa-sqlite-livestore.nix { inherit pkgsUnstable; }; 23 | # wa-sqlite-livestore-esm = pkgs.callPackage ./packages/sqlite/nix/default.nix { 24 | # wa-sqlite-livestore = self.packages.${system}.wa-sqlite-livestore; 25 | # }; 26 | # althttpd = pkgs.callPackage ./nix/althttpd.nix { }; 27 | }; 28 | 29 | devShell = with pkgs; pkgs.mkShell { 30 | buildInputs = [ 31 | # self.packages.${system}.althttpd # need newer version with `--enable-sab` flag 32 | 33 | nodejs_22 34 | corepack 35 | bun 36 | ]; 37 | 38 | # Can also be run explicitly via `nix develop --print-build-logs` to see full logs 39 | shellHook = '' 40 | rm -rf wa-sqlite/dist 41 | echo ${self.packages.${system}.wa-sqlite-livestore} 42 | cp -rf ${self.packages.${system}.wa-sqlite-livestore}/dist wa-sqlite/dist 43 | chmod -R u+w wa-sqlite/dist 44 | ''; 45 | 46 | }; 47 | 48 | 49 | }); 50 | } 51 | -------------------------------------------------------------------------------- /nix/althttpd.nix: -------------------------------------------------------------------------------- 1 | { lib, stdenv, fetchfossil, openssl }: 2 | 3 | stdenv.mkDerivation rec { 4 | pname = "althttpd"; 5 | version = "unstable-2022-08-12"; 6 | 7 | src = fetchfossil { 8 | url = "https://sqlite.org/althttpd/"; 9 | rev = "29088d6f040b7e67"; 10 | sha256 = "sha256-mjIvVHR3dlvBWKzRtSSB7Voe+VJUmuQXQBJW1U6woas="; 11 | # sha256 = lib.fakeSha256; 12 | }; 13 | 14 | buildInputs = [ openssl ]; 15 | 16 | makeFlags = [ "CC:=$(CC)" ]; 17 | 18 | installPhase = '' 19 | install -Dm755 -t $out/bin althttpd 20 | ''; 21 | 22 | meta = with lib; { 23 | description = "The Althttpd webserver"; 24 | homepage = "https://sqlite.org/althttpd/"; 25 | license = licenses.publicDomain; 26 | maintainers = with maintainers; [ siraben ]; 27 | platforms = platforms.all; 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /nix/extension-functions.c: -------------------------------------------------------------------------------- 1 | /* 2 | This library will provide common mathematical and string functions in 3 | SQL queries using the operating system libraries or provided 4 | definitions. It includes the following functions: 5 | 6 | Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, 7 | degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, exp, 8 | log, log10, power, sign, sqrt, square, ceil, floor, pi. 9 | 10 | String: replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim, 11 | replace, reverse, proper, padl, padr, padc, strfilter. 12 | 13 | Aggregate: stdev, variance, mode, median, lower_quartile, 14 | upper_quartile. 15 | 16 | The string functions ltrim, rtrim, trim, replace are included in 17 | recent versions of SQLite and so by default do not build. 18 | 19 | Compilation instructions: 20 | Compile this C source file into a dynamic library as follows: 21 | * Linux: 22 | gcc -fPIC -lm -shared extension-functions.c -o libsqlitefunctions.so 23 | * Mac OS X: 24 | gcc -fno-common -dynamiclib extension-functions.c -o libsqlitefunctions.dylib 25 | (You may need to add flags 26 | -I /opt/local/include/ -L/opt/local/lib -lsqlite3 27 | if your sqlite3 is installed from Mac ports, or 28 | -I /sw/include/ -L/sw/lib -lsqlite3 29 | if installed with Fink.) 30 | * Windows: 31 | 1. Install MinGW (http://www.mingw.org/) and you will get the gcc 32 | (gnu compiler collection) 33 | 2. add the path to your path variable (isn't done during the 34 | installation!) 35 | 3. compile: 36 | gcc -shared -I "path" -o libsqlitefunctions.so extension-functions.c 37 | (path = path of sqlite3ext.h; i.e. C:\programs\sqlite) 38 | 39 | Usage instructions for applications calling the sqlite3 API functions: 40 | In your application, call sqlite3_enable_load_extension(db,1) to 41 | allow loading external libraries. Then load the library libsqlitefunctions 42 | using sqlite3_load_extension; the third argument should be 0. 43 | See http://www.sqlite.org/cvstrac/wiki?p=LoadableExtensions. 44 | Select statements may now use these functions, as in 45 | SELECT cos(radians(inclination)) FROM satsum WHERE satnum = 25544; 46 | 47 | Usage instructions for the sqlite3 program: 48 | If the program is built so that loading extensions is permitted, 49 | the following will work: 50 | sqlite> SELECT load_extension('./libsqlitefunctions.so'); 51 | sqlite> select cos(radians(45)); 52 | 0.707106781186548 53 | Note: Loading extensions is by default prohibited as a 54 | security measure; see "Security Considerations" in 55 | http://www.sqlite.org/cvstrac/wiki?p=LoadableExtensions. 56 | If the sqlite3 program and library are built this 57 | way, you cannot use these functions from the program, you 58 | must write your own program using the sqlite3 API, and call 59 | sqlite3_enable_load_extension as described above, or else 60 | rebuilt the sqlite3 program to allow loadable extensions. 61 | 62 | Alterations: 63 | The instructions are for Linux, Mac OS X, and Windows; users of other 64 | OSes may need to modify this procedure. In particular, if your math 65 | library lacks one or more of the needed trig or log functions, comment 66 | out the appropriate HAVE_ #define at the top of file. If you do not 67 | wish to make a loadable module, comment out the define for 68 | COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE. If you are using a 69 | version of SQLite without the trim functions and replace, comment out 70 | the HAVE_TRIM #define. 71 | 72 | Liam Healy 73 | 74 | History: 75 | 2010-01-06 Correct check for argc in squareFunc, and add Windows 76 | compilation instructions. 77 | 2009-06-24 Correct check for argc in properFunc. 78 | 2008-09-14 Add check that memory was actually allocated after 79 | sqlite3_malloc or sqlite3StrDup, call sqlite3_result_error_nomem if 80 | not. Thanks to Robert Simpson. 81 | 2008-06-13 Change to instructions to indicate use of the math library 82 | and that program might work. 83 | 2007-10-01 Minor clarification to instructions. 84 | 2007-09-29 Compilation as loadable module is optional with 85 | COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE. 86 | 2007-09-28 Use sqlite3_extension_init and macros 87 | SQLITE_EXTENSION_INIT1, SQLITE_EXTENSION_INIT2, so that it works with 88 | sqlite3_load_extension. Thanks to Eric Higashino and Joe Wilson. 89 | New instructions for Mac compilation. 90 | 2007-09-17 With help from Joe Wilson and Nuno Luca, made use of 91 | external interfaces so that compilation is no longer dependent on 92 | SQLite source code. Merged source, header, and README into a single 93 | file. Added casts so that Mac will compile without warnings (unsigned 94 | and signed char). 95 | 2007-09-05 Included some definitions from sqlite 3.3.13 so that this 96 | will continue to work in newer versions of sqlite. Completed 97 | description of functions available. 98 | 2007-03-27 Revised description. 99 | 2007-03-23 Small cleanup and a bug fix on the code. This was mainly 100 | letting errno flag errors encountered in the math library and checking 101 | the result, rather than pre-checking. This fixes a bug in power that 102 | would cause an error if any non-positive number was raised to any 103 | power. 104 | 2007-02-07 posted by Mikey C to sqlite mailing list. 105 | Original code 2006 June 05 by relicoder. 106 | 107 | */ 108 | 109 | //#include "config.h" 110 | 111 | #define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1 112 | #define HAVE_ACOSH 1 113 | #define HAVE_ASINH 1 114 | #define HAVE_ATANH 1 115 | #define HAVE_SINH 1 116 | #define HAVE_COSH 1 117 | #define HAVE_TANH 1 118 | #define HAVE_LOG10 1 119 | #define HAVE_ISBLANK 1 120 | #define SQLITE_SOUNDEX 1 121 | #define HAVE_TRIM 1 /* LMH 2007-03-25 if sqlite has trim functions */ 122 | 123 | #ifdef COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 124 | #include "sqlite3ext.h" 125 | SQLITE_EXTENSION_INIT1 126 | #else 127 | #include "sqlite3.h" 128 | #endif 129 | 130 | #include 131 | /* relicoder */ 132 | #include 133 | #include 134 | #include 135 | #include /* LMH 2007-03-25 */ 136 | 137 | #include 138 | #include 139 | 140 | #ifndef _MAP_H_ 141 | #define _MAP_H_ 142 | 143 | #include 144 | 145 | /* 146 | ** Simple binary tree implementation to use in median, mode and quartile calculations 147 | ** Tree is not necessarily balanced. That would require something like red&black trees of AVL 148 | */ 149 | 150 | typedef int(*cmp_func)(const void *, const void *); 151 | typedef void(*map_iterator)(void*, int64_t, void*); 152 | 153 | typedef struct node{ 154 | struct node *l; 155 | struct node *r; 156 | void* data; 157 | int64_t count; 158 | } node; 159 | 160 | typedef struct map{ 161 | node *base; 162 | cmp_func cmp; 163 | short free; 164 | } map; 165 | 166 | /* 167 | ** creates a map given a comparison function 168 | */ 169 | map map_make(cmp_func cmp); 170 | 171 | /* 172 | ** inserts the element e into map m 173 | */ 174 | void map_insert(map *m, void *e); 175 | 176 | /* 177 | ** executes function iter over all elements in the map, in key increasing order 178 | */ 179 | void map_iterate(map *m, map_iterator iter, void* p); 180 | 181 | /* 182 | ** frees all memory used by a map 183 | */ 184 | void map_destroy(map *m); 185 | 186 | /* 187 | ** compares 2 integers 188 | ** to use with map_make 189 | */ 190 | int int_cmp(const void *a, const void *b); 191 | 192 | /* 193 | ** compares 2 doubles 194 | ** to use with map_make 195 | */ 196 | int double_cmp(const void *a, const void *b); 197 | 198 | #endif /* _MAP_H_ */ 199 | 200 | typedef uint8_t u8; 201 | typedef uint16_t u16; 202 | typedef int64_t i64; 203 | 204 | static char *sqlite3StrDup( const char *z ) { 205 | char *res = sqlite3_malloc( strlen(z)+1 ); 206 | return strcpy( res, z ); 207 | } 208 | 209 | /* 210 | ** These are copied verbatim from fun.c so as to not have the names exported 211 | */ 212 | 213 | /* LMH from sqlite3 3.3.13 */ 214 | /* 215 | ** This table maps from the first byte of a UTF-8 character to the number 216 | ** of trailing bytes expected. A value '4' indicates that the table key 217 | ** is not a legal first byte for a UTF-8 character. 218 | */ 219 | static const u8 xtra_utf8_bytes[256] = { 220 | /* 0xxxxxxx */ 221 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 222 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 227 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 228 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 229 | 230 | /* 10wwwwww */ 231 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 232 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 233 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 234 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 235 | 236 | /* 110yyyyy */ 237 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 238 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 239 | 240 | /* 1110zzzz */ 241 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 242 | 243 | /* 11110yyy */ 244 | 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 245 | }; 246 | 247 | 248 | /* 249 | ** This table maps from the number of trailing bytes in a UTF-8 character 250 | ** to an integer constant that is effectively calculated for each character 251 | ** read by a naive implementation of a UTF-8 character reader. The code 252 | ** in the READ_UTF8 macro explains things best. 253 | */ 254 | static const int xtra_utf8_bits[] = { 255 | 0, 256 | 12416, /* (0xC0 << 6) + (0x80) */ 257 | 925824, /* (0xE0 << 12) + (0x80 << 6) + (0x80) */ 258 | 63447168 /* (0xF0 << 18) + (0x80 << 12) + (0x80 << 6) + 0x80 */ 259 | }; 260 | 261 | /* 262 | ** If a UTF-8 character contains N bytes extra bytes (N bytes follow 263 | ** the initial byte so that the total character length is N+1) then 264 | ** masking the character with utf8_mask[N] must produce a non-zero 265 | ** result. Otherwise, we have an (illegal) overlong encoding. 266 | */ 267 | static const int utf_mask[] = { 268 | 0x00000000, 269 | 0xffffff80, 270 | 0xfffff800, 271 | 0xffff0000, 272 | }; 273 | 274 | /* LMH salvaged from sqlite3 3.3.13 source code src/utf.c */ 275 | #define READ_UTF8(zIn, c) { \ 276 | int xtra; \ 277 | c = *(zIn)++; \ 278 | xtra = xtra_utf8_bytes[c]; \ 279 | switch( xtra ){ \ 280 | case 4: c = (int)0xFFFD; break; \ 281 | case 3: c = (c<<6) + *(zIn)++; \ 282 | case 2: c = (c<<6) + *(zIn)++; \ 283 | case 1: c = (c<<6) + *(zIn)++; \ 284 | c -= xtra_utf8_bits[xtra]; \ 285 | if( (utf_mask[xtra]&c)==0 \ 286 | || (c&0xFFFFF800)==0xD800 \ 287 | || (c&0xFFFFFFFE)==0xFFFE ){ c = 0xFFFD; } \ 288 | } \ 289 | } 290 | 291 | static int sqlite3ReadUtf8(const unsigned char *z){ 292 | int c; 293 | READ_UTF8(z, c); 294 | return c; 295 | } 296 | 297 | #define SKIP_UTF8(zIn) { \ 298 | zIn += (xtra_utf8_bytes[*(u8 *)zIn] + 1); \ 299 | } 300 | 301 | /* 302 | ** pZ is a UTF-8 encoded unicode string. If nByte is less than zero, 303 | ** return the number of unicode characters in pZ up to (but not including) 304 | ** the first 0x00 byte. If nByte is not less than zero, return the 305 | ** number of unicode characters in the first nByte of pZ (or up to 306 | ** the first 0x00, whichever comes first). 307 | */ 308 | static int sqlite3Utf8CharLen(const char *z, int nByte){ 309 | int r = 0; 310 | const char *zTerm; 311 | if( nByte>=0 ){ 312 | zTerm = &z[nByte]; 313 | }else{ 314 | zTerm = (const char *)(-1); 315 | } 316 | assert( z<=zTerm ); 317 | while( *z!=0 && z 0) ? 1: ( iVal < 0 ) ? -1: 0; 595 | sqlite3_result_int64(context, iVal); 596 | break; 597 | } 598 | case SQLITE_NULL: { 599 | sqlite3_result_null(context); 600 | break; 601 | } 602 | default: { 603 | /* 2nd change below. Line for abs was: if( rVal<0 ) rVal = rVal * -1.0; */ 604 | 605 | rVal = sqlite3_value_double(argv[0]); 606 | rVal = ( rVal > 0) ? 1: ( rVal < 0 ) ? -1: 0; 607 | sqlite3_result_double(context, rVal); 608 | break; 609 | } 610 | } 611 | } 612 | 613 | 614 | /* 615 | ** smallest integer value not less than argument 616 | */ 617 | static void ceilFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 618 | double rVal=0.0; 619 | i64 iVal=0; 620 | assert( argc==1 ); 621 | switch( sqlite3_value_type(argv[0]) ){ 622 | case SQLITE_INTEGER: { 623 | i64 iVal = sqlite3_value_int64(argv[0]); 624 | sqlite3_result_int64(context, iVal); 625 | break; 626 | } 627 | case SQLITE_NULL: { 628 | sqlite3_result_null(context); 629 | break; 630 | } 631 | default: { 632 | rVal = sqlite3_value_double(argv[0]); 633 | sqlite3_result_int64(context, (i64) ceil(rVal)); 634 | break; 635 | } 636 | } 637 | } 638 | 639 | /* 640 | ** largest integer value not greater than argument 641 | */ 642 | static void floorFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 643 | double rVal=0.0; 644 | i64 iVal=0; 645 | assert( argc==1 ); 646 | switch( sqlite3_value_type(argv[0]) ){ 647 | case SQLITE_INTEGER: { 648 | i64 iVal = sqlite3_value_int64(argv[0]); 649 | sqlite3_result_int64(context, iVal); 650 | break; 651 | } 652 | case SQLITE_NULL: { 653 | sqlite3_result_null(context); 654 | break; 655 | } 656 | default: { 657 | rVal = sqlite3_value_double(argv[0]); 658 | sqlite3_result_int64(context, (i64) floor(rVal)); 659 | break; 660 | } 661 | } 662 | } 663 | 664 | /* 665 | ** Given a string (s) in the first argument and an integer (n) in the second returns the 666 | ** string that constains s contatenated n times 667 | */ 668 | static void replicateFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 669 | unsigned char *z; /* input string */ 670 | unsigned char *zo; /* result string */ 671 | i64 iCount; /* times to repeat */ 672 | i64 nLen; /* length of the input string (no multibyte considerations) */ 673 | i64 nTLen; /* length of the result string (no multibyte considerations) */ 674 | i64 i=0; 675 | 676 | if( argc!=2 || SQLITE_NULL==sqlite3_value_type(argv[0]) ) 677 | return; 678 | 679 | iCount = sqlite3_value_int64(argv[1]); 680 | 681 | if( iCount<0 ){ 682 | sqlite3_result_error(context, "domain error", -1); 683 | }else{ 684 | 685 | nLen = sqlite3_value_bytes(argv[0]); 686 | nTLen = nLen*iCount; 687 | z=sqlite3_malloc(nTLen+1); 688 | zo=sqlite3_malloc(nLen+1); 689 | if (!z || !zo){ 690 | sqlite3_result_error_nomem(context); 691 | if (z) sqlite3_free(z); 692 | if (zo) sqlite3_free(zo); 693 | return; 694 | } 695 | strcpy((char*)zo, (char*)sqlite3_value_text(argv[0])); 696 | 697 | for(i=0; i=n it's a NOP 761 | ** padl(NULL) = NULL 762 | */ 763 | static void padlFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 764 | i64 ilen; /* length to pad to */ 765 | i64 zl; /* length of the input string (UTF-8 chars) */ 766 | int i = 0; 767 | const char *zi; /* input string */ 768 | char *zo; /* output string */ 769 | char *zt; 770 | 771 | assert( argc==2 ); 772 | 773 | if( sqlite3_value_type(argv[0]) == SQLITE_NULL ){ 774 | sqlite3_result_null(context); 775 | }else{ 776 | zi = (char *)sqlite3_value_text(argv[0]); 777 | ilen = sqlite3_value_int64(argv[1]); 778 | /* check domain */ 779 | if(ilen<0){ 780 | sqlite3_result_error(context, "domain error", -1); 781 | return; 782 | } 783 | zl = sqlite3Utf8CharLen(zi, -1); 784 | if( zl>=ilen ){ 785 | /* string is longer than the requested pad length, return the same string (dup it) */ 786 | zo = sqlite3StrDup(zi); 787 | if (!zo){ 788 | sqlite3_result_error_nomem(context); 789 | return; 790 | } 791 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 792 | }else{ 793 | zo = sqlite3_malloc(strlen(zi)+ilen-zl+1); 794 | if (!zo){ 795 | sqlite3_result_error_nomem(context); 796 | return; 797 | } 798 | zt = zo; 799 | for(i=1; i+zl<=ilen; ++i){ 800 | *(zt++)=' '; 801 | } 802 | /* no need to take UTF-8 into consideration here */ 803 | strcpy(zt,zi); 804 | } 805 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 806 | sqlite3_free(zo); 807 | } 808 | } 809 | 810 | /* 811 | ** given an input string (s) and an integer (n) appends spaces at the end of s 812 | ** until it has a length of n characters. 813 | ** When s has a length >=n it's a NOP 814 | ** padl(NULL) = NULL 815 | */ 816 | static void padrFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 817 | i64 ilen; /* length to pad to */ 818 | i64 zl; /* length of the input string (UTF-8 chars) */ 819 | i64 zll; /* length of the input string (bytes) */ 820 | int i = 0; 821 | const char *zi; /* input string */ 822 | char *zo; /* output string */ 823 | char *zt; 824 | 825 | assert( argc==2 ); 826 | 827 | if( sqlite3_value_type(argv[0]) == SQLITE_NULL ){ 828 | sqlite3_result_null(context); 829 | }else{ 830 | zi = (char *)sqlite3_value_text(argv[0]); 831 | ilen = sqlite3_value_int64(argv[1]); 832 | /* check domain */ 833 | if(ilen<0){ 834 | sqlite3_result_error(context, "domain error", -1); 835 | return; 836 | } 837 | zl = sqlite3Utf8CharLen(zi, -1); 838 | if( zl>=ilen ){ 839 | /* string is longer than the requested pad length, return the same string (dup it) */ 840 | zo = sqlite3StrDup(zi); 841 | if (!zo){ 842 | sqlite3_result_error_nomem(context); 843 | return; 844 | } 845 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 846 | }else{ 847 | zll = strlen(zi); 848 | zo = sqlite3_malloc(zll+ilen-zl+1); 849 | if (!zo){ 850 | sqlite3_result_error_nomem(context); 851 | return; 852 | } 853 | zt = strcpy(zo,zi)+zll; 854 | for(i=1; i+zl<=ilen; ++i){ 855 | *(zt++) = ' '; 856 | } 857 | *zt = '\0'; 858 | } 859 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 860 | sqlite3_free(zo); 861 | } 862 | } 863 | 864 | /* 865 | ** given an input string (s) and an integer (n) appends spaces at the end of s 866 | ** and adds spaces at the begining of s until it has a length of n characters. 867 | ** Tries to add has many characters at the left as at the right. 868 | ** When s has a length >=n it's a NOP 869 | ** padl(NULL) = NULL 870 | */ 871 | static void padcFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 872 | i64 ilen; /* length to pad to */ 873 | i64 zl; /* length of the input string (UTF-8 chars) */ 874 | i64 zll; /* length of the input string (bytes) */ 875 | int i = 0; 876 | const char *zi; /* input string */ 877 | char *zo; /* output string */ 878 | char *zt; 879 | 880 | assert( argc==2 ); 881 | 882 | if( sqlite3_value_type(argv[0]) == SQLITE_NULL ){ 883 | sqlite3_result_null(context); 884 | }else{ 885 | zi = (char *)sqlite3_value_text(argv[0]); 886 | ilen = sqlite3_value_int64(argv[1]); 887 | /* check domain */ 888 | if(ilen<0){ 889 | sqlite3_result_error(context, "domain error", -1); 890 | return; 891 | } 892 | zl = sqlite3Utf8CharLen(zi, -1); 893 | if( zl>=ilen ){ 894 | /* string is longer than the requested pad length, return the same string (dup it) */ 895 | zo = sqlite3StrDup(zi); 896 | if (!zo){ 897 | sqlite3_result_error_nomem(context); 898 | return; 899 | } 900 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 901 | }else{ 902 | zll = strlen(zi); 903 | zo = sqlite3_malloc(zll+ilen-zl+1); 904 | if (!zo){ 905 | sqlite3_result_error_nomem(context); 906 | return; 907 | } 908 | zt = zo; 909 | for(i=1; 2*i+zl<=ilen; ++i){ 910 | *(zt++) = ' '; 911 | } 912 | strcpy(zt, zi); 913 | zt+=zll; 914 | for(; i+zl<=ilen; ++i){ 915 | *(zt++) = ' '; 916 | } 917 | *zt = '\0'; 918 | } 919 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 920 | sqlite3_free(zo); 921 | } 922 | } 923 | 924 | /* 925 | ** given 2 string (s1,s2) returns the string s1 with the characters NOT in s2 removed 926 | ** assumes strings are UTF-8 encoded 927 | */ 928 | static void strfilterFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 929 | const char *zi1; /* first parameter string (searched string) */ 930 | const char *zi2; /* second parameter string (vcontains valid characters) */ 931 | const char *z1; 932 | const char *z21; 933 | const char *z22; 934 | char *zo; /* output string */ 935 | char *zot; 936 | int c1 = 0; 937 | int c2 = 0; 938 | 939 | assert( argc==2 ); 940 | 941 | if( sqlite3_value_type(argv[0]) == SQLITE_NULL || sqlite3_value_type(argv[1]) == SQLITE_NULL ){ 942 | sqlite3_result_null(context); 943 | }else{ 944 | zi1 = (char *)sqlite3_value_text(argv[0]); 945 | zi2 = (char *)sqlite3_value_text(argv[1]); 946 | /* 947 | ** maybe I could allocate less, but that would imply 2 passes, rather waste 948 | ** (possibly) some memory 949 | */ 950 | zo = sqlite3_malloc(strlen(zi1)+1); 951 | if (!zo){ 952 | sqlite3_result_error_nomem(context); 953 | return; 954 | } 955 | zot = zo; 956 | z1 = zi1; 957 | while( (c1=sqliteCharVal((unsigned char *)z1))!=0 ){ 958 | z21=zi2; 959 | while( (c2=sqliteCharVal((unsigned char *)z21))!=0 && c2!=c1 ){ 960 | sqliteNextChar(z21); 961 | } 962 | if( c2!=0){ 963 | z22=z21; 964 | sqliteNextChar(z22); 965 | strncpy(zot, z21, z22-z21); 966 | zot+=z22-z21; 967 | } 968 | sqliteNextChar(z1); 969 | } 970 | *zot = '\0'; 971 | 972 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 973 | sqlite3_free(zo); 974 | } 975 | } 976 | 977 | /* 978 | ** Given a string z1, retutns the (0 based) index of it's first occurence 979 | ** in z2 after the first s characters. 980 | ** Returns -1 when there isn't a match. 981 | ** updates p to point to the character where the match occured. 982 | ** This is an auxiliary function. 983 | */ 984 | static int _substr(const char* z1, const char* z2, int s, const char** p){ 985 | int c = 0; 986 | int rVal=-1; 987 | const char* zt1; 988 | const char* zt2; 989 | int c1,c2; 990 | 991 | if( '\0'==*z1 ){ 992 | return -1; 993 | } 994 | 995 | while( (sqliteCharVal((unsigned char *)z2) != 0) && (c++)=0 ? rVal+s : rVal; 1023 | } 1024 | 1025 | /* 1026 | ** given 2 input strings (s1,s2) and an integer (n) searches from the nth character 1027 | ** for the string s1. Returns the position where the match occured. 1028 | ** Characters are counted from 1. 1029 | ** 0 is returned when no match occurs. 1030 | */ 1031 | 1032 | static void charindexFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1033 | const u8 *z1; /* s1 string */ 1034 | u8 *z2; /* s2 string */ 1035 | int s=0; 1036 | int rVal=0; 1037 | 1038 | assert( argc==3 ||argc==2); 1039 | 1040 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) || SQLITE_NULL==sqlite3_value_type(argv[1])){ 1041 | sqlite3_result_null(context); 1042 | return; 1043 | } 1044 | 1045 | z1 = sqlite3_value_text(argv[0]); 1046 | if( z1==0 ) return; 1047 | z2 = (u8*) sqlite3_value_text(argv[1]); 1048 | if(argc==3){ 1049 | s = sqlite3_value_int(argv[2])-1; 1050 | if(s<0){ 1051 | s=0; 1052 | } 1053 | }else{ 1054 | s = 0; 1055 | } 1056 | 1057 | rVal = _substr((char *)z1,(char *)z2,s,NULL); 1058 | sqlite3_result_int(context, rVal+1); 1059 | } 1060 | 1061 | /* 1062 | ** given a string (s) and an integer (n) returns the n leftmost (UTF-8) characters 1063 | ** if the string has a length<=n or is NULL this function is NOP 1064 | */ 1065 | static void leftFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1066 | int c=0; 1067 | int cc=0; 1068 | int l=0; 1069 | const unsigned char *z; /* input string */ 1070 | const unsigned char *zt; 1071 | unsigned char *rz; /* output string */ 1072 | 1073 | assert( argc==2); 1074 | 1075 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) || SQLITE_NULL==sqlite3_value_type(argv[1])){ 1076 | sqlite3_result_null(context); 1077 | return; 1078 | } 1079 | 1080 | z = sqlite3_value_text(argv[0]); 1081 | l = sqlite3_value_int(argv[1]); 1082 | zt = z; 1083 | 1084 | while( sqliteCharVal(zt) && c++ 0 ){ 1137 | sqliteNextChar(zt); 1138 | } 1139 | 1140 | rz = sqlite3_malloc(ze-zt+1); 1141 | if (!rz){ 1142 | sqlite3_result_error_nomem(context); 1143 | return; 1144 | } 1145 | strcpy((char*) rz, (char*) (zt)); 1146 | sqlite3_result_text(context, (char*)rz, -1, SQLITE_TRANSIENT); 1147 | sqlite3_free(rz); 1148 | } 1149 | 1150 | #ifndef HAVE_TRIM 1151 | /* 1152 | ** removes the whitespaces at the begining of a string. 1153 | */ 1154 | const char* ltrim(const char* s){ 1155 | while( *s==' ' ) 1156 | ++s; 1157 | return s; 1158 | } 1159 | 1160 | /* 1161 | ** removes the whitespaces at the end of a string. 1162 | ** !mutates the input string! 1163 | */ 1164 | void rtrim(char* s){ 1165 | char* ss = s+strlen(s)-1; 1166 | while( ss>=s && *ss==' ' ) 1167 | --ss; 1168 | *(ss+1)='\0'; 1169 | } 1170 | 1171 | /* 1172 | ** Removes the whitespace at the begining of a string 1173 | */ 1174 | static void ltrimFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1175 | const char *z; 1176 | 1177 | assert( argc==1); 1178 | 1179 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) ){ 1180 | sqlite3_result_null(context); 1181 | return; 1182 | } 1183 | z = sqlite3_value_text(argv[0]); 1184 | sqlite3_result_text(context, ltrim(z), -1, SQLITE_TRANSIENT); 1185 | } 1186 | 1187 | /* 1188 | ** Removes the whitespace at the end of a string 1189 | */ 1190 | static void rtrimFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1191 | const char *z; 1192 | char *rz; 1193 | /* try not to change data in argv */ 1194 | 1195 | assert( argc==1); 1196 | 1197 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) ){ 1198 | sqlite3_result_null(context); 1199 | return; 1200 | } 1201 | z = sqlite3_value_text(argv[0]); 1202 | rz = sqlite3StrDup(z); 1203 | rtrim(rz); 1204 | sqlite3_result_text(context, rz, -1, SQLITE_TRANSIENT); 1205 | sqlite3_free(rz); 1206 | } 1207 | 1208 | /* 1209 | ** Removes the whitespace at the begining and end of a string 1210 | */ 1211 | static void trimFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1212 | const char *z; 1213 | char *rz; 1214 | /* try not to change data in argv */ 1215 | 1216 | assert( argc==1); 1217 | 1218 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) ){ 1219 | sqlite3_result_null(context); 1220 | return; 1221 | } 1222 | z = sqlite3_value_text(argv[0]); 1223 | rz = sqlite3StrDup(z); 1224 | rtrim(rz); 1225 | sqlite3_result_text(context, ltrim(rz), -1, SQLITE_TRANSIENT); 1226 | sqlite3_free(rz); 1227 | } 1228 | #endif 1229 | 1230 | /* 1231 | ** given a pointer to a string s1, the length of that string (l1), a new string (s2) 1232 | ** and it's length (l2) appends s2 to s1. 1233 | ** All lengths in bytes. 1234 | ** This is just an auxiliary function 1235 | */ 1236 | // static void _append(char **s1, int l1, const char *s2, int l2){ 1237 | // *s1 = realloc(*s1, (l1+l2+1)*sizeof(char)); 1238 | // strncpy((*s1)+l1, s2, l2); 1239 | // *(*(s1)+l1+l2) = '\0'; 1240 | // } 1241 | 1242 | #ifndef HAVE_TRIM 1243 | 1244 | /* 1245 | ** given strings s, s1 and s2 replaces occurrences of s1 in s by s2 1246 | */ 1247 | static void replaceFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1248 | const char *z1; /* string s (first parameter) */ 1249 | const char *z2; /* string s1 (second parameter) string to look for */ 1250 | const char *z3; /* string s2 (third parameter) string to replace occurrences of s1 with */ 1251 | int lz1; 1252 | int lz2; 1253 | int lz3; 1254 | int lzo=0; 1255 | char *zo=0; 1256 | int ret=0; 1257 | const char *zt1; 1258 | const char *zt2; 1259 | 1260 | assert( 3==argc ); 1261 | 1262 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) ){ 1263 | sqlite3_result_null(context); 1264 | return; 1265 | } 1266 | 1267 | z1 = sqlite3_value_text(argv[0]); 1268 | z2 = sqlite3_value_text(argv[1]); 1269 | z3 = sqlite3_value_text(argv[2]); 1270 | /* handle possible null values */ 1271 | if( 0==z2 ){ 1272 | z2=""; 1273 | } 1274 | if( 0==z3 ){ 1275 | z3=""; 1276 | } 1277 | 1278 | lz1 = strlen(z1); 1279 | lz2 = strlen(z2); 1280 | lz3 = strlen(z3); 1281 | 1282 | #if 0 1283 | /* special case when z2 is empty (or null) nothing will be changed */ 1284 | if( 0==lz2 ){ 1285 | sqlite3_result_text(context, z1, -1, SQLITE_TRANSIENT); 1286 | return; 1287 | } 1288 | #endif 1289 | 1290 | zt1=z1; 1291 | zt2=z1; 1292 | 1293 | while(1){ 1294 | ret=_substr(z2,zt1 , 0, &zt2); 1295 | 1296 | if( ret<0 ) 1297 | break; 1298 | 1299 | _append(&zo, lzo, zt1, zt2-zt1); 1300 | lzo+=zt2-zt1; 1301 | _append(&zo, lzo, z3, lz3); 1302 | lzo+=lz3; 1303 | 1304 | zt1=zt2+lz2; 1305 | } 1306 | _append(&zo, lzo, zt1, lz1-(zt1-z1)); 1307 | sqlite3_result_text(context, zo, -1, SQLITE_TRANSIENT); 1308 | sqlite3_free(zo); 1309 | } 1310 | #endif 1311 | 1312 | /* 1313 | ** given a string returns the same string but with the characters in reverse order 1314 | */ 1315 | static void reverseFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1316 | const char *z; 1317 | const char *zt; 1318 | char *rz; 1319 | char *rzt; 1320 | int l = 0; 1321 | int i = 0; 1322 | 1323 | assert( 1==argc ); 1324 | 1325 | if( SQLITE_NULL==sqlite3_value_type(argv[0]) ){ 1326 | sqlite3_result_null(context); 1327 | return; 1328 | } 1329 | z = (char *)sqlite3_value_text(argv[0]); 1330 | l = strlen(z); 1331 | rz = sqlite3_malloc(l+1); 1332 | if (!rz){ 1333 | sqlite3_result_error_nomem(context); 1334 | return; 1335 | } 1336 | rzt = rz+l; 1337 | *(rzt--) = '\0'; 1338 | 1339 | zt=z; 1340 | while( sqliteCharVal((unsigned char *)zt)!=0 ){ 1341 | z=zt; 1342 | sqliteNextChar(zt); 1343 | for(i=1; zt-i>=z; ++i){ 1344 | *(rzt--)=*(zt-i); 1345 | } 1346 | } 1347 | 1348 | sqlite3_result_text(context, rz, -1, SQLITE_TRANSIENT); 1349 | sqlite3_free(rz); 1350 | } 1351 | 1352 | /* 1353 | ** An instance of the following structure holds the context of a 1354 | ** stdev() or variance() aggregate computation. 1355 | ** implementaion of http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Algorithm_II 1356 | ** less prone to rounding errors 1357 | */ 1358 | typedef struct StdevCtx StdevCtx; 1359 | struct StdevCtx { 1360 | double rM; 1361 | double rS; 1362 | i64 cnt; /* number of elements */ 1363 | }; 1364 | 1365 | /* 1366 | ** An instance of the following structure holds the context of a 1367 | ** mode() or median() aggregate computation. 1368 | ** Depends on structures defined in map.c (see map & map) 1369 | ** These aggregate functions only work for integers and floats although 1370 | ** they could be made to work for strings. This is usually considered meaningless. 1371 | ** Only usuall order (for median), no use of collation functions (would this even make sense?) 1372 | */ 1373 | typedef struct ModeCtx ModeCtx; 1374 | struct ModeCtx { 1375 | i64 riM; /* integer value found so far */ 1376 | double rdM; /* double value found so far */ 1377 | i64 cnt; /* number of elements so far */ 1378 | double pcnt; /* number of elements smaller than a percentile */ 1379 | i64 mcnt; /* maximum number of occurrences (for mode) */ 1380 | i64 mn; /* number of occurrences (for mode and percentiles) */ 1381 | i64 is_double; /* whether the computation is being done for doubles (>0) or integers (=0) */ 1382 | map* m; /* map structure used for the computation */ 1383 | int done; /* whether the answer has been found */ 1384 | }; 1385 | 1386 | /* 1387 | ** called for each value received during a calculation of stdev or variance 1388 | */ 1389 | static void varianceStep(sqlite3_context *context, int argc, sqlite3_value **argv){ 1390 | StdevCtx *p; 1391 | 1392 | double delta; 1393 | double x; 1394 | 1395 | assert( argc==1 ); 1396 | p = sqlite3_aggregate_context(context, sizeof(*p)); 1397 | /* only consider non-null values */ 1398 | if( SQLITE_NULL != sqlite3_value_numeric_type(argv[0]) ){ 1399 | p->cnt++; 1400 | x = sqlite3_value_double(argv[0]); 1401 | delta = (x-p->rM); 1402 | p->rM += delta/p->cnt; 1403 | p->rS += delta*(x-p->rM); 1404 | } 1405 | } 1406 | 1407 | /* 1408 | ** called for each value received during a calculation of mode of median 1409 | */ 1410 | static void modeStep(sqlite3_context *context, int argc, sqlite3_value **argv){ 1411 | ModeCtx *p; 1412 | i64 xi=0; 1413 | double xd=0.0; 1414 | i64 *iptr; 1415 | double *dptr; 1416 | int type; 1417 | 1418 | assert( argc==1 ); 1419 | type = sqlite3_value_numeric_type(argv[0]); 1420 | 1421 | if( type == SQLITE_NULL) 1422 | return; 1423 | 1424 | p = sqlite3_aggregate_context(context, sizeof(*p)); 1425 | 1426 | if( 0==(p->m) ){ 1427 | p->m = calloc(1, sizeof(map)); 1428 | if( type==SQLITE_INTEGER ){ 1429 | /* map will be used for integers */ 1430 | *(p->m) = map_make(int_cmp); 1431 | p->is_double = 0; 1432 | }else{ 1433 | p->is_double = 1; 1434 | /* map will be used for doubles */ 1435 | *(p->m) = map_make(double_cmp); 1436 | } 1437 | } 1438 | 1439 | ++(p->cnt); 1440 | 1441 | if( 0==p->is_double ){ 1442 | xi = sqlite3_value_int64(argv[0]); 1443 | iptr = (i64*)calloc(1,sizeof(i64)); 1444 | *iptr = xi; 1445 | map_insert(p->m, iptr); 1446 | }else{ 1447 | xd = sqlite3_value_double(argv[0]); 1448 | dptr = (double*)calloc(1,sizeof(double)); 1449 | *dptr = xd; 1450 | map_insert(p->m, dptr); 1451 | } 1452 | } 1453 | 1454 | /* 1455 | ** Auxiliary function that iterates all elements in a map and finds the mode 1456 | ** (most frequent value) 1457 | */ 1458 | static void modeIterate(void* e, i64 c, void* pp){ 1459 | i64 ei; 1460 | double ed; 1461 | ModeCtx *p = (ModeCtx*)pp; 1462 | 1463 | if( 0==p->is_double ){ 1464 | ei = *(int*)(e); 1465 | 1466 | if( p->mcnt==c ){ 1467 | ++p->mn; 1468 | }else if( p->mcntriM = ei; 1470 | p->mcnt = c; 1471 | p->mn=1; 1472 | } 1473 | }else{ 1474 | ed = *(double*)(e); 1475 | 1476 | if( p->mcnt==c ){ 1477 | ++p->mn; 1478 | }else if(p->mcntrdM = ed; 1480 | p->mcnt = c; 1481 | p->mn=1; 1482 | } 1483 | } 1484 | } 1485 | 1486 | /* 1487 | ** Auxiliary function that iterates all elements in a map and finds the median 1488 | ** (the value such that the number of elements smaller is equal the the number of 1489 | ** elements larger) 1490 | */ 1491 | static void medianIterate(void* e, i64 c, void* pp){ 1492 | i64 ei; 1493 | double ed; 1494 | double iL; 1495 | double iR; 1496 | int il; 1497 | int ir; 1498 | ModeCtx *p = (ModeCtx*)pp; 1499 | 1500 | if(p->done>0) 1501 | return; 1502 | 1503 | iL = p->pcnt; 1504 | iR = p->cnt - p->pcnt; 1505 | il = p->mcnt + c; 1506 | ir = p->cnt - p->mcnt; 1507 | 1508 | if( il >= iL ){ 1509 | if( ir >= iR ){ 1510 | ++p->mn; 1511 | if( 0==p->is_double ){ 1512 | ei = *(int*)(e); 1513 | p->riM += ei; 1514 | }else{ 1515 | ed = *(double*)(e); 1516 | p->rdM += ed; 1517 | } 1518 | }else{ 1519 | p->done=1; 1520 | } 1521 | } 1522 | p->mcnt+=c; 1523 | } 1524 | 1525 | /* 1526 | ** Returns the mode value 1527 | */ 1528 | static void modeFinalize(sqlite3_context *context){ 1529 | ModeCtx *p; 1530 | p = sqlite3_aggregate_context(context, 0); 1531 | if( p && p->m ){ 1532 | map_iterate(p->m, modeIterate, p); 1533 | map_destroy(p->m); 1534 | free(p->m); 1535 | 1536 | if( 1==p->mn ){ 1537 | if( 0==p->is_double ) 1538 | sqlite3_result_int64(context, p->riM); 1539 | else 1540 | sqlite3_result_double(context, p->rdM); 1541 | } 1542 | } 1543 | } 1544 | 1545 | /* 1546 | ** auxiliary function for percentiles 1547 | */ 1548 | static void _medianFinalize(sqlite3_context *context){ 1549 | ModeCtx *p; 1550 | p = (ModeCtx*) sqlite3_aggregate_context(context, 0); 1551 | if( p && p->m ){ 1552 | p->done=0; 1553 | map_iterate(p->m, medianIterate, p); 1554 | map_destroy(p->m); 1555 | free(p->m); 1556 | 1557 | if( 0==p->is_double ) 1558 | if( 1==p->mn ) 1559 | sqlite3_result_int64(context, p->riM); 1560 | else 1561 | sqlite3_result_double(context, p->riM*1.0/p->mn); 1562 | else 1563 | sqlite3_result_double(context, p->rdM/p->mn); 1564 | } 1565 | } 1566 | 1567 | /* 1568 | ** Returns the median value 1569 | */ 1570 | static void medianFinalize(sqlite3_context *context){ 1571 | ModeCtx *p; 1572 | p = (ModeCtx*) sqlite3_aggregate_context(context, 0); 1573 | if( p!=0 ){ 1574 | p->pcnt = (p->cnt)/2.0; 1575 | _medianFinalize(context); 1576 | } 1577 | } 1578 | 1579 | /* 1580 | ** Returns the lower_quartile value 1581 | */ 1582 | static void lower_quartileFinalize(sqlite3_context *context){ 1583 | ModeCtx *p; 1584 | p = (ModeCtx*) sqlite3_aggregate_context(context, 0); 1585 | if( p!=0 ){ 1586 | p->pcnt = (p->cnt)/4.0; 1587 | _medianFinalize(context); 1588 | } 1589 | } 1590 | 1591 | /* 1592 | ** Returns the upper_quartile value 1593 | */ 1594 | static void upper_quartileFinalize(sqlite3_context *context){ 1595 | ModeCtx *p; 1596 | p = (ModeCtx*) sqlite3_aggregate_context(context, 0); 1597 | if( p!=0 ){ 1598 | p->pcnt = (p->cnt)*3/4.0; 1599 | _medianFinalize(context); 1600 | } 1601 | } 1602 | 1603 | /* 1604 | ** Returns the stdev value 1605 | */ 1606 | static void stdevFinalize(sqlite3_context *context){ 1607 | StdevCtx *p; 1608 | p = sqlite3_aggregate_context(context, 0); 1609 | if( p && p->cnt>1 ){ 1610 | sqlite3_result_double(context, sqrt(p->rS/(p->cnt-1))); 1611 | }else{ 1612 | sqlite3_result_double(context, 0.0); 1613 | } 1614 | } 1615 | 1616 | /* 1617 | ** Returns the variance value 1618 | */ 1619 | static void varianceFinalize(sqlite3_context *context){ 1620 | StdevCtx *p; 1621 | p = sqlite3_aggregate_context(context, 0); 1622 | if( p && p->cnt>1 ){ 1623 | sqlite3_result_double(context, p->rS/(p->cnt-1)); 1624 | }else{ 1625 | sqlite3_result_double(context, 0.0); 1626 | } 1627 | } 1628 | 1629 | #ifdef SQLITE_SOUNDEX 1630 | 1631 | /* relicoder factored code */ 1632 | /* 1633 | ** Calculates the soundex value of a string 1634 | */ 1635 | 1636 | static void soundex(const u8 *zIn, char *zResult){ 1637 | int i, j; 1638 | static const unsigned char iCode[] = { 1639 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1640 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1641 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1642 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1643 | 0, 0, 1, 2, 3, 0, 1, 2, 0, 0, 2, 2, 4, 5, 5, 0, 1644 | 1, 2, 6, 2, 3, 0, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1645 | 0, 0, 1, 2, 3, 0, 1, 2, 0, 0, 2, 2, 4, 5, 5, 0, 1646 | 1, 2, 6, 2, 3, 0, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1647 | }; 1648 | 1649 | for(i=0; zIn[i] && !isalpha(zIn[i]); i++){} 1650 | if( zIn[i] ){ 1651 | zResult[0] = toupper(zIn[i]); 1652 | for(j=1; j<4 && zIn[i]; i++){ 1653 | int code = iCode[zIn[i]&0x7f]; 1654 | if( code>0 ){ 1655 | zResult[j++] = code + '0'; 1656 | } 1657 | } 1658 | while( j<4 ){ 1659 | zResult[j++] = '0'; 1660 | } 1661 | zResult[j] = 0; 1662 | }else{ 1663 | strcpy(zResult, "?000"); 1664 | } 1665 | } 1666 | 1667 | /* 1668 | ** computes the number of different characters between the soundex value fo 2 strings 1669 | */ 1670 | static void differenceFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ 1671 | char zResult1[8]; 1672 | char zResult2[8]; 1673 | char *zR1 = zResult1; 1674 | char *zR2 = zResult2; 1675 | int rVal = 0; 1676 | int i = 0; 1677 | const u8 *zIn1; 1678 | const u8 *zIn2; 1679 | 1680 | assert( argc==2 ); 1681 | 1682 | if( sqlite3_value_type(argv[0])==SQLITE_NULL || sqlite3_value_type(argv[1])==SQLITE_NULL ){ 1683 | sqlite3_result_null(context); 1684 | return; 1685 | } 1686 | 1687 | zIn1 = (u8*)sqlite3_value_text(argv[0]); 1688 | zIn2 = (u8*)sqlite3_value_text(argv[1]); 1689 | 1690 | soundex(zIn1, zR1); 1691 | soundex(zIn2, zR2); 1692 | 1693 | for(i=0; i<4; ++i){ 1694 | if( sqliteCharVal((unsigned char *)zR1)==sqliteCharVal((unsigned char *)zR2) ) 1695 | ++rVal; 1696 | sqliteNextChar(zR1); 1697 | sqliteNextChar(zR2); 1698 | } 1699 | sqlite3_result_int(context, rVal); 1700 | } 1701 | #endif 1702 | 1703 | /* 1704 | ** This function registered all of the above C functions as SQL 1705 | ** functions. This should be the only routine in this file with 1706 | ** external linkage. 1707 | */ 1708 | int RegisterExtensionFunctions(sqlite3 *db){ 1709 | static const struct FuncDef { 1710 | char *zName; 1711 | signed char nArg; 1712 | u8 argType; /* 0: none. 1: db 2: (-1) */ 1713 | u8 eTextRep; /* 1: UTF-16. 0: UTF-8 */ 1714 | u8 needCollSeq; 1715 | void (*xFunc)(sqlite3_context*,int,sqlite3_value **); 1716 | } aFuncs[] = { 1717 | /* math.h */ 1718 | { "acos", 1, 0, SQLITE_UTF8, 0, acosFunc }, 1719 | { "asin", 1, 0, SQLITE_UTF8, 0, asinFunc }, 1720 | { "atan", 1, 0, SQLITE_UTF8, 0, atanFunc }, 1721 | { "atn2", 2, 0, SQLITE_UTF8, 0, atn2Func }, 1722 | /* XXX alias */ 1723 | { "atan2", 2, 0, SQLITE_UTF8, 0, atn2Func }, 1724 | { "acosh", 1, 0, SQLITE_UTF8, 0, acoshFunc }, 1725 | { "asinh", 1, 0, SQLITE_UTF8, 0, asinhFunc }, 1726 | { "atanh", 1, 0, SQLITE_UTF8, 0, atanhFunc }, 1727 | 1728 | { "difference", 2, 0, SQLITE_UTF8, 0, differenceFunc}, 1729 | { "degrees", 1, 0, SQLITE_UTF8, 0, rad2degFunc }, 1730 | { "radians", 1, 0, SQLITE_UTF8, 0, deg2radFunc }, 1731 | 1732 | { "cos", 1, 0, SQLITE_UTF8, 0, cosFunc }, 1733 | { "sin", 1, 0, SQLITE_UTF8, 0, sinFunc }, 1734 | { "tan", 1, 0, SQLITE_UTF8, 0, tanFunc }, 1735 | { "cot", 1, 0, SQLITE_UTF8, 0, cotFunc }, 1736 | { "cosh", 1, 0, SQLITE_UTF8, 0, coshFunc }, 1737 | { "sinh", 1, 0, SQLITE_UTF8, 0, sinhFunc }, 1738 | { "tanh", 1, 0, SQLITE_UTF8, 0, tanhFunc }, 1739 | { "coth", 1, 0, SQLITE_UTF8, 0, cothFunc }, 1740 | 1741 | { "exp", 1, 0, SQLITE_UTF8, 0, expFunc }, 1742 | { "log", 1, 0, SQLITE_UTF8, 0, logFunc }, 1743 | { "log10", 1, 0, SQLITE_UTF8, 0, log10Func }, 1744 | { "power", 2, 0, SQLITE_UTF8, 0, powerFunc }, 1745 | { "sign", 1, 0, SQLITE_UTF8, 0, signFunc }, 1746 | { "sqrt", 1, 0, SQLITE_UTF8, 0, sqrtFunc }, 1747 | { "square", 1, 0, SQLITE_UTF8, 0, squareFunc }, 1748 | 1749 | { "ceil", 1, 0, SQLITE_UTF8, 0, ceilFunc }, 1750 | { "floor", 1, 0, SQLITE_UTF8, 0, floorFunc }, 1751 | 1752 | { "pi", 0, 0, SQLITE_UTF8, 1, piFunc }, 1753 | 1754 | 1755 | /* string */ 1756 | { "replicate", 2, 0, SQLITE_UTF8, 0, replicateFunc }, 1757 | { "charindex", 2, 0, SQLITE_UTF8, 0, charindexFunc }, 1758 | { "charindex", 3, 0, SQLITE_UTF8, 0, charindexFunc }, 1759 | { "leftstr", 2, 0, SQLITE_UTF8, 0, leftFunc }, 1760 | { "rightstr", 2, 0, SQLITE_UTF8, 0, rightFunc }, 1761 | #ifndef HAVE_TRIM 1762 | { "ltrim", 1, 0, SQLITE_UTF8, 0, ltrimFunc }, 1763 | { "rtrim", 1, 0, SQLITE_UTF8, 0, rtrimFunc }, 1764 | { "trim", 1, 0, SQLITE_UTF8, 0, trimFunc }, 1765 | { "replace", 3, 0, SQLITE_UTF8, 0, replaceFunc }, 1766 | #endif 1767 | { "reverse", 1, 0, SQLITE_UTF8, 0, reverseFunc }, 1768 | { "proper", 1, 0, SQLITE_UTF8, 0, properFunc }, 1769 | { "padl", 2, 0, SQLITE_UTF8, 0, padlFunc }, 1770 | { "padr", 2, 0, SQLITE_UTF8, 0, padrFunc }, 1771 | { "padc", 2, 0, SQLITE_UTF8, 0, padcFunc }, 1772 | { "strfilter", 2, 0, SQLITE_UTF8, 0, strfilterFunc }, 1773 | 1774 | }; 1775 | /* Aggregate functions */ 1776 | static const struct FuncDefAgg { 1777 | char *zName; 1778 | signed char nArg; 1779 | u8 argType; 1780 | u8 needCollSeq; 1781 | void (*xStep)(sqlite3_context*,int,sqlite3_value**); 1782 | void (*xFinalize)(sqlite3_context*); 1783 | } aAggs[] = { 1784 | { "stdev", 1, 0, 0, varianceStep, stdevFinalize }, 1785 | { "variance", 1, 0, 0, varianceStep, varianceFinalize }, 1786 | { "mode", 1, 0, 0, modeStep, modeFinalize }, 1787 | { "median", 1, 0, 0, modeStep, medianFinalize }, 1788 | { "lower_quartile", 1, 0, 0, modeStep, lower_quartileFinalize }, 1789 | { "upper_quartile", 1, 0, 0, modeStep, upper_quartileFinalize }, 1790 | }; 1791 | int i; 1792 | 1793 | for(i=0; ineedCollSeq = 1; 1809 | } 1810 | } 1811 | #endif 1812 | } 1813 | 1814 | for(i=0; ineedCollSeq = 1; 1830 | } 1831 | } 1832 | #endif 1833 | } 1834 | return 0; 1835 | } 1836 | 1837 | #ifdef COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE 1838 | int sqlite3_extension_init( 1839 | sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi){ 1840 | SQLITE_EXTENSION_INIT2(pApi); 1841 | RegisterExtensionFunctions(db); 1842 | return 0; 1843 | } 1844 | #endif /* COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE */ 1845 | 1846 | map map_make(cmp_func cmp){ 1847 | map r; 1848 | r.cmp=cmp; 1849 | r.base = 0; 1850 | 1851 | return r; 1852 | } 1853 | 1854 | void* xcalloc(size_t nmemb, size_t size, char* s){ 1855 | void* ret = calloc(nmemb, size); 1856 | return ret; 1857 | } 1858 | 1859 | void xfree(void* p){ 1860 | free(p); 1861 | } 1862 | 1863 | void node_insert(node** n, cmp_func cmp, void *e){ 1864 | int c; 1865 | node* nn; 1866 | if(*n==0){ 1867 | nn = (node*)xcalloc(1,sizeof(node), "for node"); 1868 | nn->data = e; 1869 | nn->count = 1; 1870 | *n=nn; 1871 | }else{ 1872 | c=cmp((*n)->data,e); 1873 | if(0==c){ 1874 | ++((*n)->count); 1875 | xfree(e); 1876 | }else if(c>0){ 1877 | /* put it right here */ 1878 | node_insert(&((*n)->l), cmp, e); 1879 | }else{ 1880 | node_insert(&((*n)->r), cmp, e); 1881 | } 1882 | } 1883 | } 1884 | 1885 | void map_insert(map *m, void *e){ 1886 | node_insert(&(m->base), m->cmp, e); 1887 | } 1888 | 1889 | void node_iterate(node *n, map_iterator iter, void* p){ 1890 | if(n){ 1891 | if(n->l) 1892 | node_iterate(n->l, iter, p); 1893 | iter(n->data, n->count, p); 1894 | if(n->r) 1895 | node_iterate(n->r, iter, p); 1896 | } 1897 | } 1898 | 1899 | void map_iterate(map *m, map_iterator iter, void* p){ 1900 | node_iterate(m->base, iter, p); 1901 | } 1902 | 1903 | void node_destroy(node *n){ 1904 | if(0!=n){ 1905 | xfree(n->data); 1906 | if(n->l) 1907 | node_destroy(n->l); 1908 | if(n->r) 1909 | node_destroy(n->r); 1910 | 1911 | xfree(n); 1912 | } 1913 | } 1914 | 1915 | void map_destroy(map *m){ 1916 | node_destroy(m->base); 1917 | } 1918 | 1919 | int int_cmp(const void *a, const void *b){ 1920 | int64_t aa = *(int64_t *)(a); 1921 | int64_t bb = *(int64_t *)(b); 1922 | /* printf("cmp %d <=> %d\n",aa,bb); */ 1923 | if(aa==bb) 1924 | return 0; 1925 | else if(aa %d\n",aa,bb); */ 1935 | if(aa==bb) 1936 | return 0; 1937 | else if(aa %lld\n", ee,c); 1946 | } 1947 | 1948 | -------------------------------------------------------------------------------- /nix/sqlite-wasm.nix: -------------------------------------------------------------------------------- 1 | { lib, stdenv, fetchFromGitHub, pkgs }: 2 | 3 | stdenv.mkDerivation { 4 | pname = "sqlite-wasm"; 5 | version = "3.46.0"; 6 | 7 | src = fetchFromGitHub { 8 | owner = "sqlite"; 9 | repo = "sqlite"; 10 | rev = "5fb718aaab631e6a7f750e5049aa6f1eb33fb4a8"; 11 | sha256 = "sha256-ySHTmoONjoN965Q3OrYQRC6MiuCMDRvHnyRcjV6fa4Y="; 12 | # sha256 = lib.fakeSha256; 13 | }; 14 | 15 | nativeBuildInputs = [ 16 | pkgs.which # needed for Make file 17 | pkgs.tcl 18 | pkgs.gcc 19 | pkgs.wabt 20 | pkgs.emscripten 21 | pkgs.unzip 22 | pkgs.zip 23 | ]; 24 | 25 | configurePhase = '' 26 | cp -r ${pkgs.emscripten}/share/emscripten/cache/ $TMPDIR/emscripten_cache_sqlite 27 | chmod u+rwX -R $TMPDIR/emscripten_cache_sqlite 28 | export EM_CACHE=$TMPDIR/emscripten_cache_sqlite 29 | 30 | ./configure 31 | # ./configure --enable-all 32 | 33 | # Add SQLite flags to `ext/wasm/api/sqlite3-wasm.c` (bytecode, session (incl. preupdate)) 34 | # i.e. add `#define SQLITE_ENABLE_BYTECODE_VTAB`, ... to beginning of file 35 | sed -i '1s/^/#define SQLITE_ENABLE_BYTECODE_VTAB\n/' ext/wasm/api/sqlite3-wasm.c 36 | sed -i '1s/^/#define SQLITE_ENABLE_SESSION\n/' ext/wasm/api/sqlite3-wasm.c 37 | sed -i '1s/^/#define SQLITE_ENABLE_PREUPDATE_HOOK\n/' ext/wasm/api/sqlite3-wasm.c 38 | ''; 39 | 40 | buildPhase = '' 41 | # Needed for `make` 42 | export DESTDIR="$PWD" 43 | 44 | # https://github.com/sqlite/sqlite/blob/master/ext/wasm/dist.make#L95 45 | make -C ext/wasm dist 46 | 47 | # TODO switch to `esm` target once fixed: https://sqlite.org/forum/forumpost/af308d69455db6b9eab2ceb9301ddbe085c8e549c6cdbe2dae6420a15e212386 48 | # make -C ext/wasm esm 49 | 50 | cp -r . $out 51 | ''; 52 | } 53 | -------------------------------------------------------------------------------- /nix/wa-sqlite-livestore.nix: -------------------------------------------------------------------------------- 1 | { lib, stdenv, fetchFromGitHub, fetchurl, pkgs, pkgsUnstable }: 2 | let 3 | extension-functions = ./extension-functions.c; 4 | localWaSqlite = ../wa-sqlite; # Adjust this path as needed 5 | in 6 | stdenv.mkDerivation rec { 7 | pname = "wa-sqlite-livestore"; 8 | version = "3.47.0"; 9 | # version = "3.46.1"; 10 | 11 | srcs = [ 12 | localWaSqlite 13 | (fetchFromGitHub { 14 | owner = "sqlite"; 15 | repo = "sqlite"; 16 | rev = "f5fb820c0f4781337faf02ed871be68d13a83d94"; 17 | sha256 = "sha256-35xrRPgoj92rji9EAyCHvhMP/NEz9hffOMJyhSKCCZ8="; 18 | # version = "3.46.1"; 19 | # rev = "f3d536d37825302e31ed0eddd811c689f38f85a3"; 20 | # sha256 = "sha256-dJd03TOsNkOeW3f8vC5hXiIx+/w74vXcnq6HkRL7A24="; 21 | name = "sqlite-src"; 22 | }) 23 | ]; 24 | 25 | sourceRoot = pname; 26 | 27 | unpackPhase = '' 28 | runHook preUnpack 29 | 30 | mkdir -p ${pname} 31 | cd ${pname} 32 | 33 | # Unpack the SQLite source to sqlite-src 34 | unpackFile ${builtins.elemAt srcs 1} 35 | 36 | # Copy wa-sqlite sources 37 | cp -r ${localWaSqlite}/* . 38 | 39 | # Set the source root 40 | sourceRoot=${pname} 41 | 42 | cd .. 43 | 44 | runHook postUnpack 45 | ''; 46 | 47 | # Disable the automatic update of GNU config scripts 48 | dontUpdateAutotoolsGnuConfigScripts = true; 49 | 50 | nativeBuildInputs = [ 51 | pkgs.which # needed for Make file 52 | pkgs.tcl 53 | pkgs.gcc 54 | pkgs.wabt 55 | pkgsUnstable.emscripten 56 | pkgs.unzip 57 | pkgs.openssl 58 | pkgs.zip 59 | ]; 60 | 61 | # unpackPhase = '' 62 | # mkdir -p ${pname} 63 | # echo $PWD 64 | # cp -r ${wa-sqlite}/* ${pname} 65 | # ls -la 66 | # ls -la ${pname} 67 | # ''; 68 | 69 | configurePhase = '' 70 | echo "Emscripten version:" 71 | emcc --version 72 | 73 | 74 | pwd 75 | ls -la 76 | 77 | mkdir -p cache/version-${version} 78 | cp -r ./sqlite-src/* ./cache/version-${version} 79 | 80 | cp ${extension-functions} ./cache/extension-functions.c 81 | 82 | # Since we provide the source code via Nix, we don't need to download it 83 | # comment out all `curl` commands in `Makefile` of wa-sqlite 84 | chmod u+w Makefile # Ensure we have write permissions for the Makefile 85 | sed -i 's/curl/#curl/g' Makefile 86 | 87 | # Add `dist/wa-sqlite.node.mjs` to end of `Makefile` of wa-sqlite 88 | cat >> Makefile < 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | crsqlite - wasm - esm 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /packages/example/index.html: -------------------------------------------------------------------------------- 1 | SQLite
2 | CR-SQLite
-------------------------------------------------------------------------------- /packages/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "type": "module", 4 | "version": "0.0.1", 5 | "sideEffects": false, 6 | "scripts": { 7 | "start": "vite", 8 | "build": "vite build", 9 | "tsc": "tsc --noEmit", 10 | "preview": "vite preview", 11 | "test:unit": "vitest" 12 | }, 13 | "dependencies": { 14 | "crsqlite-wasm-esm": "workspace:*", 15 | "sqlite-wasm-esm": "workspace:*", 16 | "uuid-tool": "^2.0.3" 17 | }, 18 | "devDependencies": { 19 | "vite": "^3.2.2" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /packages/example/sqlite.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | sqlite - wasm - esm 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /packages/example/src/crsqlite-worker.ts: -------------------------------------------------------------------------------- 1 | import sqlite3InitModule from "crsqlite-wasm-esm"; 2 | 3 | sqlite3InitModule().then((sqlite3) => { 4 | const db = new sqlite3.opfs!.OpfsDb("crdb", "c"); 5 | // const db = new sqlite3.oo1.DB(":memory:"); 6 | 7 | db.exec([ 8 | "CREATE TABLE IF NOT EXISTS baz (a, b);", 9 | "INSERT INTO baz VALUES (1, 2);", 10 | ]); 11 | 12 | let rows = []; 13 | db.exec({ 14 | sql: "SELECT * FROM baz", 15 | resultRows: rows, 16 | rowMode: "object", 17 | }); 18 | console.log(rows); 19 | 20 | // you _MUST_ run this before closing `crsql` db connections 21 | // see -- https://sqlite.org/forum/forumpost/a38be46f01 22 | db.exec("SELECT crsql_finalize()"); 23 | db.close(); 24 | }); 25 | -------------------------------------------------------------------------------- /packages/example/src/crsqlite.ts: -------------------------------------------------------------------------------- 1 | import sqliteWasm from "crsqlite-wasm-esm"; 2 | import { Uuid } from "uuid-tool"; 3 | 4 | const sqlite = await sqliteWasm(); 5 | 6 | const db = new sqlite.oo1.DB(":memory:"); 7 | 8 | // @ts-ignore 9 | window.db = db; 10 | let rows = []; 11 | 12 | db.exec("CREATE TABLE foo (a primary key, b);"); 13 | db.exec("SELECT crsql_as_crr('foo');"); 14 | db.exec("INSERT INTO foo VALUES (1, 2);"); 15 | db.exec("select crsql_dbversion();", { resultRows: rows }); 16 | console.log("DB Version: ", rows[0][0]); 17 | rows = []; 18 | db.exec("select crsql_siteid();", { resultRows: rows }); 19 | console.log("Site ID: ", new Uuid(rows[0][0]).toString()); 20 | 21 | rows = []; 22 | db.exec("select * from crsql_changes();", { resultRows: rows }); 23 | console.log("Changes: ", rows); 24 | 25 | rows = []; 26 | db.exec({ 27 | sql: "SELECT * FROM foo", 28 | resultRows: rows, 29 | rowMode: "object", 30 | }); 31 | console.log(rows[0]); 32 | 33 | // you _MUST_ run this before closing `crsql` db connections 34 | // see -- https://sqlite.org/forum/forumpost/a38be46f01 35 | db.exec("SELECT crsql_finalize()"); 36 | db.close(); 37 | 38 | // Spawning into a worker 39 | console.log("Try running the db in a worker"); 40 | new Worker(new URL("./crsqlite-worker.ts", import.meta.url), { 41 | type: "module", 42 | }); 43 | -------------------------------------------------------------------------------- /packages/example/src/sqlite-worker.ts: -------------------------------------------------------------------------------- 1 | import sqlite3InitModule from "sqlite-wasm-esm"; 2 | 3 | sqlite3InitModule().then((sqlite3) => { 4 | const db = new sqlite3.opfs!.OpfsDb("my-db", "c"); 5 | // const db = new sqlite3.oo1.DB(":memory:"); 6 | 7 | db.exec([ 8 | "CREATE TABLE IF NOT EXISTS baz (a, b);", 9 | "INSERT INTO baz VALUES (1, 2);", 10 | ]); 11 | 12 | let rows = []; 13 | db.exec({ 14 | sql: "SELECT * FROM baz", 15 | resultRows: rows, 16 | rowMode: "object", 17 | }); 18 | console.log(rows); 19 | 20 | db.close(); 21 | }); 22 | -------------------------------------------------------------------------------- /packages/example/src/sqlite.ts: -------------------------------------------------------------------------------- 1 | import sqliteWasm from "sqlite-wasm-esm"; 2 | 3 | const sqlite = await sqliteWasm(); 4 | 5 | const db = new sqlite.oo1.DB(":memory:"); 6 | 7 | db.exec([ 8 | "CREATE TABLE foo (a primary key, b);", 9 | "INSERT INTO foo VALUES (1, 2);", 10 | ]); 11 | 12 | let rows = []; 13 | db.exec({ 14 | sql: "SELECT * FROM foo", 15 | resultRows: rows, 16 | rowMode: "object", 17 | }); 18 | console.log(rows); 19 | db.close(); 20 | 21 | console.log("Try running the db in a worker"); 22 | new Worker(new URL("./sqlite-worker.ts", import.meta.url), { 23 | type: "module", 24 | }); 25 | -------------------------------------------------------------------------------- /packages/example/vite.config.js: -------------------------------------------------------------------------------- 1 | // vite.config.js 2 | import { resolve } from "path"; 3 | import { defineConfig } from "vite"; 4 | 5 | export default defineConfig({ 6 | build: { 7 | rollupOptions: { 8 | input: { 9 | sqlite: resolve(__dirname, "sqlite.html"), 10 | crsqlite: resolve(__dirname, "crsqlite.html"), 11 | }, 12 | }, 13 | }, 14 | server: { 15 | headers: { 16 | "Cross-Origin-Opener-Policy": "same-origin", 17 | "Cross-Origin-Embedder-Policy": "require-corp", 18 | }, 19 | }, 20 | }); 21 | -------------------------------------------------------------------------------- /packages/sqlite/nix/builder.sh: -------------------------------------------------------------------------------- 1 | source $stdenv/setup 2 | 3 | # echo $src 4 | # ls $src 5 | ls 6 | 7 | cp -r $src/* . 8 | 9 | # cd *-sqlite 10 | ls 11 | 12 | chmod -R 777 . 13 | 14 | mkdir dist 15 | 16 | cp src/sqlite3.d.ts dist 17 | cp src/sqlite3-wrapper.js dist/sqlite3-wrapper.js 18 | cp $sqlitelib/sqlite3.wasm dist 19 | cp $sqlitelib/sqlite3-opfs-async-proxy.js dist 20 | 21 | cat <(echo "export default function install(wrapper) {") $sqlitelib/sqlite3.js <(echo "wrapper.self = self; }") > dist/sqlite3.js 22 | 23 | # Remove `self.` 24 | sed -i "s|const originalInit = self.sqlite3InitModule;|const originalInit = sqlite3InitModule;|g" dist/sqlite3.js 25 | 26 | # Use `new URL()` pattern which can be understood by Vite 27 | sed -i "s|wasmBinaryFile = 'sqlite3.wasm';|wasmBinaryFile = new URL('sqlite3.wasm', import.meta.url).href;|g" dist/sqlite3.js 28 | sed -i "s|.uri = 'sqlite3.wasm'|.uri = new URL('sqlite3.wasm', import.meta.url).href|g" dist/sqlite3.js 29 | sed -i "s|const W = new Worker(options.proxyUri);|const W = new Worker(new URL(options.proxyUri, import.meta.url));|g" dist/sqlite3.js 30 | sed -i "s|\"sqlite3-opfs-async-proxy.js\";|new URL('sqlite3-opfs-async-proxy.js', import.meta.url).href;|g" dist/sqlite3.js 31 | 32 | # comment out as not neccessary with Vite 33 | sed -i "s|wasmBinaryFile = locateFile(wasmBinaryFile)|// wasmBinaryFile = locateFile(wasmBinaryFile)|g" dist/sqlite3.js 34 | 35 | # prevent warn log message (even during dev) 36 | sed -i "s|console.warn(\"Installing sqlite3|// console.warn(\"Installing sqlite3|g" dist/sqlite3.js 37 | 38 | # Use `new URL()` pattern which can be understood by Vite 39 | sed -i "s|Module\['locateFile'\] = function(path, prefix) {|Module\['locateFile'\] = function(path, prefix) { return new URL(path, import.meta.url).href;|" dist/sqlite3.js 40 | 41 | cp -r dist $out 42 | -------------------------------------------------------------------------------- /packages/sqlite/nix/default.nix: -------------------------------------------------------------------------------- 1 | { lib, stdenv, sqlite-wasm, pkgs }: 2 | 3 | stdenv.mkDerivation rec { 4 | pname = "sqlite-wasm-esm"; 5 | version = "3.40.0"; 6 | 7 | src = ./..; 8 | 9 | builder = ./builder.sh; 10 | 11 | nativeBuildInputs = [ 12 | pkgs.gnused # use version with support for `sed -i` 13 | ]; 14 | 15 | sqlitelib = "${sqlite-wasm}/ext/wasm/jswasm"; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /packages/sqlite/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sqlite-wasm-esm", 3 | "type": "module", 4 | "version": "0.0.30", 5 | "files": [ 6 | "dist" 7 | ], 8 | "exports": { 9 | ".": { 10 | "import": "./dist/sqlite3-wrapper.js" 11 | }, 12 | "./sqlite3.js": { 13 | "import": "./dist/sqlite3.js" 14 | }, 15 | "./sqlite3.wasm": { 16 | "import": "./dist/sqlite3.wasm" 17 | }, 18 | "./sqlite3-opfs-async-proxy": { 19 | "import": "./dist/sqlite3-opfs-async-proxy.js" 20 | } 21 | }, 22 | "types": "dist/sqlite3.d.ts", 23 | "sideEffects": false 24 | } 25 | -------------------------------------------------------------------------------- /packages/sqlite/publish.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | set -ex 4 | 5 | npm version patch --no-git-tag-version 6 | 7 | npm publish --access=public 8 | -------------------------------------------------------------------------------- /packages/sqlite/src/sqlite3-wrapper.js: -------------------------------------------------------------------------------- 1 | import install from "./sqlite3.js"; 2 | 3 | const wrapper = {}; 4 | 5 | const init = () => { 6 | install(wrapper); 7 | return wrapper.self.sqlite3InitModule(wrapper); 8 | }; 9 | 10 | export default init; 11 | -------------------------------------------------------------------------------- /packages/sqlite/src/sqlite3.d.ts: -------------------------------------------------------------------------------- 1 | export type TODO = any; 2 | 3 | interface Window { 4 | // eslint-disable-next-line @typescript-eslint/consistent-type-imports 5 | sqlite3InitModule: (_?: TODO) => Promise; 6 | } 7 | 8 | export type Sqlite3 = { 9 | oo1: { 10 | DB: new (options?: OO1DBOptions) => DB; 11 | }; 12 | opfs?: { 13 | OpfsDb: new (filename: string, mode: string) => DB; 14 | debug: TODO; 15 | deleteEntry: TODO; 16 | entryExists: TODO; 17 | metrics: TODO; 18 | mkdir: TODO; 19 | randomFilename: TODO; 20 | registerVfs: TODO; 21 | rootDirectory: TODO; 22 | }; 23 | capi: { 24 | sqlite3_deserialize: TODO; 25 | [key: string]: TODO; 26 | }; 27 | wasm: { 28 | allocFromTypedArray: (typedArray: Uint8Array) => number; 29 | [key: string]: TODO; 30 | }; 31 | }; 32 | 33 | /** https://sqlite.org/wasm/doc/trunk/api-oo1.md#db-ctor */ 34 | export type OO1DBOptions = { 35 | /** @default ':memory:' */ 36 | filename?: string; 37 | /** open-mode flags */ 38 | flags?: string; 39 | /** name of the sqlite3_vfs to use */ 40 | vfs?: string; 41 | }; 42 | 43 | export declare const InitWasm: () => Promise; 44 | 45 | export default InitWasm; 46 | 47 | export class DB { 48 | filename: string; 49 | pointer: TODO; 50 | 51 | affirmOpen(): DB; 52 | 53 | changes(total: boolean, sixtyFour: boolean): number; 54 | 55 | exec(options: ExecOptions): TODO; 56 | exec(query: FlexibleString, options?: ExecOptions): TODO; 57 | close(): DB; 58 | export(): TODO; 59 | /** 60 | * @example aDb.prepare("INSERT INTO foo(a) VALUES(?)").bind(123).stepFinalize(); 61 | */ 62 | prepare(query: FlexibleString): Stmt; 63 | 64 | checkRc(db: TODO, resultCode: TODO); 65 | 66 | createFunction(): TODO; 67 | 68 | dbFilename(): string; 69 | 70 | dbName(): string; 71 | } 72 | 73 | export type ExecOptions = { 74 | sql?: FlexibleString; 75 | bind?: Bindable; 76 | // saveSql?: TODO 77 | 78 | returnValue?: "this" | "resultRows" | "saveSql"; 79 | 80 | rowMode?: "array" | "object" | "stmt"; 81 | 82 | resultRows?: TODO[]; 83 | }; 84 | 85 | export type FlexibleString = string | Uint8Array | Int8Array | string[]; 86 | 87 | /** https://sqlite.org/wasm/doc/trunk/api-oo1.md#stmt-properties */ 88 | export interface Stmt { 89 | columnCount: number; 90 | parameterCount: number; 91 | pointer: TODO; 92 | 93 | bind(bindable: Bindable): Stmt; 94 | bind(indexOrParameterName: number | string, bindable: Bindable): Stmt; 95 | 96 | stepFinalize(): boolean; 97 | } 98 | 99 | export type Bindable = BindableValue[] | Record; 100 | 101 | export type BindableValue = 102 | | null 103 | | undefined 104 | | number 105 | | boolean 106 | | string 107 | | Uint8Array 108 | | Int8Array; 109 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '9.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false 6 | 7 | importers: 8 | 9 | .: {} 10 | 11 | test: 12 | dependencies: 13 | '@livestore/wa-sqlite': 14 | specifier: workspace:* 15 | version: link:../wa-sqlite 16 | 17 | wa-sqlite: 18 | devDependencies: 19 | '@types/jasmine': 20 | specifier: ^5.1.4 21 | version: 5.1.4 22 | '@web/dev-server': 23 | specifier: ^0.4.6 24 | version: 0.4.6 25 | '@web/test-runner': 26 | specifier: ^0.18.2 27 | version: 0.18.3 28 | '@web/test-runner-core': 29 | specifier: ^0.13.3 30 | version: 0.13.4 31 | comlink: 32 | specifier: ^4.4.1 33 | version: 4.4.1 34 | jasmine-core: 35 | specifier: ^4.5.0 36 | version: 4.6.1 37 | monaco-editor: 38 | specifier: ^0.34.1 39 | version: 0.34.1 40 | typedoc: 41 | specifier: ^0.25.7 42 | version: 0.25.13(typescript@5.6.2) 43 | typescript: 44 | specifier: ^5.3.3 45 | version: 5.6.2 46 | web-test-runner-jasmine: 47 | specifier: ^0.0.6 48 | version: 0.0.6 49 | dependenciesMeta: 50 | monaco-editor@0.34.1: 51 | unplugged: true 52 | web-test-runner-jasmine@0.0.6: 53 | unplugged: true 54 | 55 | packages: 56 | 57 | '@babel/code-frame@7.25.7': 58 | resolution: {integrity: sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==} 59 | engines: {node: '>=6.9.0'} 60 | 61 | '@babel/helper-validator-identifier@7.25.7': 62 | resolution: {integrity: sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==} 63 | engines: {node: '>=6.9.0'} 64 | 65 | '@babel/highlight@7.25.7': 66 | resolution: {integrity: sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==} 67 | engines: {node: '>=6.9.0'} 68 | 69 | '@hapi/bourne@3.0.0': 70 | resolution: {integrity: sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w==} 71 | 72 | '@jridgewell/resolve-uri@3.1.2': 73 | resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} 74 | engines: {node: '>=6.0.0'} 75 | 76 | '@jridgewell/sourcemap-codec@1.5.0': 77 | resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} 78 | 79 | '@jridgewell/trace-mapping@0.3.25': 80 | resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} 81 | 82 | '@nodelib/fs.scandir@2.1.5': 83 | resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} 84 | engines: {node: '>= 8'} 85 | 86 | '@nodelib/fs.stat@2.0.5': 87 | resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} 88 | engines: {node: '>= 8'} 89 | 90 | '@nodelib/fs.walk@1.2.8': 91 | resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} 92 | engines: {node: '>= 8'} 93 | 94 | '@puppeteer/browsers@2.3.0': 95 | resolution: {integrity: sha512-ioXoq9gPxkss4MYhD+SFaU9p1IHFUX0ILAWFPyjGaBdjLsYAlZw6j1iLA0N/m12uVHLFDfSYNF7EQccjinIMDA==} 96 | engines: {node: '>=18'} 97 | hasBin: true 98 | 99 | '@rollup/plugin-node-resolve@15.3.0': 100 | resolution: {integrity: sha512-9eO5McEICxMzJpDW9OnMYSv4Sta3hmt7VtBFz5zR9273suNOydOyq/FrGeGy+KsTRFm8w0SLVhzig2ILFT63Ag==} 101 | engines: {node: '>=14.0.0'} 102 | peerDependencies: 103 | rollup: ^2.78.0||^3.0.0||^4.0.0 104 | peerDependenciesMeta: 105 | rollup: 106 | optional: true 107 | 108 | '@rollup/pluginutils@5.1.2': 109 | resolution: {integrity: sha512-/FIdS3PyZ39bjZlwqFnWqCOVnW7o963LtKMwQOD0NhQqw22gSr2YY1afu3FxRip4ZCZNsD5jq6Aaz6QV3D/Njw==} 110 | engines: {node: '>=14.0.0'} 111 | peerDependencies: 112 | rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 113 | peerDependenciesMeta: 114 | rollup: 115 | optional: true 116 | 117 | '@rollup/rollup-android-arm-eabi@4.24.0': 118 | resolution: {integrity: sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA==} 119 | cpu: [arm] 120 | os: [android] 121 | 122 | '@rollup/rollup-android-arm64@4.24.0': 123 | resolution: {integrity: sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==} 124 | cpu: [arm64] 125 | os: [android] 126 | 127 | '@rollup/rollup-darwin-arm64@4.24.0': 128 | resolution: {integrity: sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==} 129 | cpu: [arm64] 130 | os: [darwin] 131 | 132 | '@rollup/rollup-darwin-x64@4.24.0': 133 | resolution: {integrity: sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==} 134 | cpu: [x64] 135 | os: [darwin] 136 | 137 | '@rollup/rollup-linux-arm-gnueabihf@4.24.0': 138 | resolution: {integrity: sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==} 139 | cpu: [arm] 140 | os: [linux] 141 | 142 | '@rollup/rollup-linux-arm-musleabihf@4.24.0': 143 | resolution: {integrity: sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==} 144 | cpu: [arm] 145 | os: [linux] 146 | 147 | '@rollup/rollup-linux-arm64-gnu@4.24.0': 148 | resolution: {integrity: sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==} 149 | cpu: [arm64] 150 | os: [linux] 151 | 152 | '@rollup/rollup-linux-arm64-musl@4.24.0': 153 | resolution: {integrity: sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==} 154 | cpu: [arm64] 155 | os: [linux] 156 | 157 | '@rollup/rollup-linux-powerpc64le-gnu@4.24.0': 158 | resolution: {integrity: sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==} 159 | cpu: [ppc64] 160 | os: [linux] 161 | 162 | '@rollup/rollup-linux-riscv64-gnu@4.24.0': 163 | resolution: {integrity: sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==} 164 | cpu: [riscv64] 165 | os: [linux] 166 | 167 | '@rollup/rollup-linux-s390x-gnu@4.24.0': 168 | resolution: {integrity: sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==} 169 | cpu: [s390x] 170 | os: [linux] 171 | 172 | '@rollup/rollup-linux-x64-gnu@4.24.0': 173 | resolution: {integrity: sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==} 174 | cpu: [x64] 175 | os: [linux] 176 | 177 | '@rollup/rollup-linux-x64-musl@4.24.0': 178 | resolution: {integrity: sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==} 179 | cpu: [x64] 180 | os: [linux] 181 | 182 | '@rollup/rollup-win32-arm64-msvc@4.24.0': 183 | resolution: {integrity: sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==} 184 | cpu: [arm64] 185 | os: [win32] 186 | 187 | '@rollup/rollup-win32-ia32-msvc@4.24.0': 188 | resolution: {integrity: sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==} 189 | cpu: [ia32] 190 | os: [win32] 191 | 192 | '@rollup/rollup-win32-x64-msvc@4.24.0': 193 | resolution: {integrity: sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==} 194 | cpu: [x64] 195 | os: [win32] 196 | 197 | '@tootallnate/quickjs-emscripten@0.23.0': 198 | resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} 199 | 200 | '@types/accepts@1.3.7': 201 | resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==} 202 | 203 | '@types/babel__code-frame@7.0.6': 204 | resolution: {integrity: sha512-Anitqkl3+KrzcW2k77lRlg/GfLZLWXBuNgbEcIOU6M92yw42vsd3xV/Z/yAHEj8m+KUjL6bWOVOFqX8PFPJ4LA==} 205 | 206 | '@types/body-parser@1.19.5': 207 | resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} 208 | 209 | '@types/co-body@6.1.3': 210 | resolution: {integrity: sha512-UhuhrQ5hclX6UJctv5m4Rfp52AfG9o9+d9/HwjxhVB5NjXxr5t9oKgJxN8xRHgr35oo8meUEHUPFWiKg6y71aA==} 211 | 212 | '@types/command-line-args@5.2.3': 213 | resolution: {integrity: sha512-uv0aG6R0Y8WHZLTamZwtfsDLVRnOa+n+n5rEvFWL5Na5gZ8V2Teab/duDPFzIIIhs9qizDpcavCusCLJZu62Kw==} 214 | 215 | '@types/connect@3.4.38': 216 | resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} 217 | 218 | '@types/content-disposition@0.5.8': 219 | resolution: {integrity: sha512-QVSSvno3dE0MgO76pJhmv4Qyi/j0Yk9pBp0Y7TJ2Tlj+KCgJWY6qX7nnxCOLkZ3VYRSIk1WTxCvwUSdx6CCLdg==} 220 | 221 | '@types/convert-source-map@2.0.3': 222 | resolution: {integrity: sha512-ag0BfJLZf6CQz8VIuRIEYQ5Ggwk/82uvTQf27RcpyDNbY0Vw49LIPqAxk5tqYfrCs9xDaIMvl4aj7ZopnYL8bA==} 223 | 224 | '@types/cookies@0.9.0': 225 | resolution: {integrity: sha512-40Zk8qR147RABiQ7NQnBzWzDcjKzNrntB5BAmeGCb2p/MIyOE+4BVvc17wumsUqUw00bJYqoXFHYygQnEFh4/Q==} 226 | 227 | '@types/debounce@1.2.4': 228 | resolution: {integrity: sha512-jBqiORIzKDOToaF63Fm//haOCHuwQuLa2202RK4MozpA6lh93eCBc+/8+wZn5OzjJt3ySdc+74SXWXB55Ewtyw==} 229 | 230 | '@types/estree@1.0.6': 231 | resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} 232 | 233 | '@types/express-serve-static-core@5.0.0': 234 | resolution: {integrity: sha512-AbXMTZGt40T+KON9/Fdxx0B2WK5hsgxcfXJLr5bFpZ7b4JCex2WyQPTEKdXqfHiY5nKKBScZ7yCoO6Pvgxfvnw==} 235 | 236 | '@types/express@5.0.0': 237 | resolution: {integrity: sha512-DvZriSMehGHL1ZNLzi6MidnsDhUZM/x2pRdDIKdwbUNqqwHxMlRdkxtn6/EPKyqKpHqTl/4nRZsRNLpZxZRpPQ==} 238 | 239 | '@types/http-assert@1.5.5': 240 | resolution: {integrity: sha512-4+tE/lwdAahgZT1g30Jkdm9PzFRde0xwxBNUyRsCitRvCQB90iuA2uJYdUnhnANRcqGXaWOGY4FEoxeElNAK2g==} 241 | 242 | '@types/http-errors@2.0.4': 243 | resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==} 244 | 245 | '@types/istanbul-lib-coverage@2.0.6': 246 | resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} 247 | 248 | '@types/istanbul-lib-report@3.0.3': 249 | resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} 250 | 251 | '@types/istanbul-reports@3.0.4': 252 | resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} 253 | 254 | '@types/jasmine@5.1.4': 255 | resolution: {integrity: sha512-px7OMFO/ncXxixDe1zR13V1iycqWae0MxTaw62RpFlksUi5QuNWgQJFkTQjIOvrmutJbI7Fp2Y2N1F6D2R4G6w==} 256 | 257 | '@types/keygrip@1.0.6': 258 | resolution: {integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==} 259 | 260 | '@types/koa-compose@3.2.8': 261 | resolution: {integrity: sha512-4Olc63RY+MKvxMwVknCUDhRQX1pFQoBZ/lXcRLP69PQkEpze/0cr8LNqJQe5NFb/b19DWi2a5bTi2VAlQzhJuA==} 262 | 263 | '@types/koa@2.15.0': 264 | resolution: {integrity: sha512-7QFsywoE5URbuVnG3loe03QXuGajrnotr3gQkXcEBShORai23MePfFYdhz90FEtBBpkyIYQbVD+evKtloCgX3g==} 265 | 266 | '@types/mime@1.3.5': 267 | resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} 268 | 269 | '@types/node@22.7.4': 270 | resolution: {integrity: sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg==} 271 | 272 | '@types/parse5@6.0.3': 273 | resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} 274 | 275 | '@types/qs@6.9.16': 276 | resolution: {integrity: sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A==} 277 | 278 | '@types/range-parser@1.2.7': 279 | resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==} 280 | 281 | '@types/resolve@1.20.2': 282 | resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} 283 | 284 | '@types/send@0.17.4': 285 | resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} 286 | 287 | '@types/serve-static@1.15.7': 288 | resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} 289 | 290 | '@types/ws@7.4.7': 291 | resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} 292 | 293 | '@types/yauzl@2.10.3': 294 | resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} 295 | 296 | '@web/browser-logs@0.4.0': 297 | resolution: {integrity: sha512-/EBiDAUCJ2DzZhaFxTPRIznEPeafdLbXShIL6aTu7x73x7ZoxSDv7DGuTsh2rWNMUa4+AKli4UORrpyv6QBOiA==} 298 | engines: {node: '>=18.0.0'} 299 | 300 | '@web/config-loader@0.3.2': 301 | resolution: {integrity: sha512-Vrjv/FexBGmAdnCYpJKLHX1dfT1UaUdvHmX1JRaWos9OvDf/tFznYJ5SpJwww3Rl87/ewvLSYG7kfsMqEAsizQ==} 302 | engines: {node: '>=18.0.0'} 303 | 304 | '@web/dev-server-core@0.7.3': 305 | resolution: {integrity: sha512-GS+Ok6HiqNZOsw2oEv5V2OISZ2s/6icJodyGjUuD3RChr0G5HiESbKf2K8mZV4shTz9sRC9KSQf8qvno2gPKrQ==} 306 | engines: {node: '>=18.0.0'} 307 | 308 | '@web/dev-server-rollup@0.6.4': 309 | resolution: {integrity: sha512-sJZfTGCCrdku5xYnQQG51odGI092hKY9YFM0X3Z0tRY3iXKXcYRaLZrErw5KfCxr6g0JRuhe4BBhqXTA5Q2I3Q==} 310 | engines: {node: '>=18.0.0'} 311 | 312 | '@web/dev-server@0.4.6': 313 | resolution: {integrity: sha512-jj/1bcElAy5EZet8m2CcUdzxT+CRvUjIXGh8Lt7vxtthkN9PzY9wlhWx/9WOs5iwlnG1oj0VGo6f/zvbPO0s9w==} 314 | engines: {node: '>=18.0.0'} 315 | hasBin: true 316 | 317 | '@web/parse5-utils@2.1.0': 318 | resolution: {integrity: sha512-GzfK5disEJ6wEjoPwx8AVNwUe9gYIiwc+x//QYxYDAFKUp4Xb1OJAGLc2l2gVrSQmtPGLKrTRcW90Hv4pEq1qA==} 319 | engines: {node: '>=18.0.0'} 320 | 321 | '@web/test-runner-chrome@0.16.0': 322 | resolution: {integrity: sha512-Edc6Y49aVB6k18S5IOj9OCX3rEf8F3jptIu0p95+imqxmcutFEh1GNmlAk2bQGnXS0U6uVY7Xbf61fiaXUQqhg==} 323 | engines: {node: '>=18.0.0'} 324 | 325 | '@web/test-runner-commands@0.9.0': 326 | resolution: {integrity: sha512-zeLI6QdH0jzzJMDV5O42Pd8WLJtYqovgdt0JdytgHc0d1EpzXDsc7NTCJSImboc2NcayIsWAvvGGeRF69SMMYg==} 327 | engines: {node: '>=18.0.0'} 328 | 329 | '@web/test-runner-core@0.13.4': 330 | resolution: {integrity: sha512-84E1025aUSjvZU1j17eCTwV7m5Zg3cZHErV3+CaJM9JPCesZwLraIa0ONIQ9w4KLgcDgJFw9UnJ0LbFf42h6tg==} 331 | engines: {node: '>=18.0.0'} 332 | 333 | '@web/test-runner-coverage-v8@0.8.0': 334 | resolution: {integrity: sha512-PskiucYpjUtgNfR2zF2AWqWwjXL7H3WW/SnCAYmzUrtob7X9o/+BjdyZ4wKbOxWWSbJO4lEdGIDLu+8X2Xw+lA==} 335 | engines: {node: '>=18.0.0'} 336 | 337 | '@web/test-runner-mocha@0.9.0': 338 | resolution: {integrity: sha512-ZL9F6FXd0DBQvo/h/+mSfzFTSRVxzV9st/AHhpgABtUtV/AIpVE9to6+xdkpu6827kwjezdpuadPfg+PlrBWqQ==} 339 | engines: {node: '>=18.0.0'} 340 | 341 | '@web/test-runner@0.18.3': 342 | resolution: {integrity: sha512-QkVK8Qguw3Zhyu8SYR7F4VdcjyXBeJNr8W8L++s4zO/Ok7DR/Wu7+rLswn3H7OH3xYoCHRmwteehcFejefz6ew==} 343 | engines: {node: '>=18.0.0'} 344 | hasBin: true 345 | 346 | accepts@1.3.8: 347 | resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} 348 | engines: {node: '>= 0.6'} 349 | 350 | agent-base@7.1.1: 351 | resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} 352 | engines: {node: '>= 14'} 353 | 354 | ansi-escapes@4.3.2: 355 | resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} 356 | engines: {node: '>=8'} 357 | 358 | ansi-regex@5.0.1: 359 | resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} 360 | engines: {node: '>=8'} 361 | 362 | ansi-sequence-parser@1.1.1: 363 | resolution: {integrity: sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==} 364 | 365 | ansi-styles@3.2.1: 366 | resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} 367 | engines: {node: '>=4'} 368 | 369 | ansi-styles@4.3.0: 370 | resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} 371 | engines: {node: '>=8'} 372 | 373 | array-back@3.1.0: 374 | resolution: {integrity: sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==} 375 | engines: {node: '>=6'} 376 | 377 | array-back@6.2.2: 378 | resolution: {integrity: sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==} 379 | engines: {node: '>=12.17'} 380 | 381 | array-union@2.1.0: 382 | resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} 383 | engines: {node: '>=8'} 384 | 385 | ast-types@0.13.4: 386 | resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} 387 | engines: {node: '>=4'} 388 | 389 | astral-regex@2.0.0: 390 | resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} 391 | engines: {node: '>=8'} 392 | 393 | async-mutex@0.4.0: 394 | resolution: {integrity: sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==} 395 | 396 | async@2.6.4: 397 | resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} 398 | 399 | b4a@1.6.7: 400 | resolution: {integrity: sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==} 401 | 402 | balanced-match@1.0.2: 403 | resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} 404 | 405 | bare-events@2.5.0: 406 | resolution: {integrity: sha512-/E8dDe9dsbLyh2qrZ64PEPadOQ0F4gbl1sUJOrmph7xOiIxfY8vwab/4bFLh4Y88/Hk/ujKcrQKc+ps0mv873A==} 407 | 408 | bare-fs@2.3.5: 409 | resolution: {integrity: sha512-SlE9eTxifPDJrT6YgemQ1WGFleevzwY+XAP1Xqgl56HtcrisC2CHCZ2tq6dBpcH2TnNxwUEUGhweo+lrQtYuiw==} 410 | 411 | bare-os@2.4.4: 412 | resolution: {integrity: sha512-z3UiI2yi1mK0sXeRdc4O1Kk8aOa/e+FNWZcTiPB/dfTWyLypuE99LibgRaQki914Jq//yAWylcAt+mknKdixRQ==} 413 | 414 | bare-path@2.1.3: 415 | resolution: {integrity: sha512-lh/eITfU8hrj9Ru5quUp0Io1kJWIk1bTjzo7JH1P5dWmQ2EL4hFUlfI8FonAhSlgIfhn63p84CDY/x+PisgcXA==} 416 | 417 | bare-stream@2.3.0: 418 | resolution: {integrity: sha512-pVRWciewGUeCyKEuRxwv06M079r+fRjAQjBEK2P6OYGrO43O+Z0LrPZZEjlc4mB6C2RpZ9AxJ1s7NLEtOHO6eA==} 419 | 420 | base64-js@1.5.1: 421 | resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} 422 | 423 | basic-ftp@5.0.5: 424 | resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==} 425 | engines: {node: '>=10.0.0'} 426 | 427 | brace-expansion@2.0.1: 428 | resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} 429 | 430 | braces@3.0.3: 431 | resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} 432 | engines: {node: '>=8'} 433 | 434 | buffer-crc32@0.2.13: 435 | resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} 436 | 437 | buffer@5.7.1: 438 | resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} 439 | 440 | bytes@3.1.2: 441 | resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} 442 | engines: {node: '>= 0.8'} 443 | 444 | cache-content-type@1.0.1: 445 | resolution: {integrity: sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==} 446 | engines: {node: '>= 6.0.0'} 447 | 448 | call-bind@1.0.7: 449 | resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} 450 | engines: {node: '>= 0.4'} 451 | 452 | camelcase@6.3.0: 453 | resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} 454 | engines: {node: '>=10'} 455 | 456 | chalk-template@0.4.0: 457 | resolution: {integrity: sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==} 458 | engines: {node: '>=12'} 459 | 460 | chalk@2.4.2: 461 | resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} 462 | engines: {node: '>=4'} 463 | 464 | chalk@4.1.2: 465 | resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} 466 | engines: {node: '>=10'} 467 | 468 | chokidar@4.0.1: 469 | resolution: {integrity: sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==} 470 | engines: {node: '>= 14.16.0'} 471 | 472 | chrome-launcher@0.15.2: 473 | resolution: {integrity: sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==} 474 | engines: {node: '>=12.13.0'} 475 | hasBin: true 476 | 477 | chromium-bidi@0.6.3: 478 | resolution: {integrity: sha512-qXlsCmpCZJAnoTYI83Iu6EdYQpMYdVkCfq08KDh2pmlVqK5t5IA9mGs4/LwCwp4fqisSOMXZxP3HIh8w8aRn0A==} 479 | peerDependencies: 480 | devtools-protocol: '*' 481 | 482 | cli-cursor@3.1.0: 483 | resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==} 484 | engines: {node: '>=8'} 485 | 486 | cliui@8.0.1: 487 | resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} 488 | engines: {node: '>=12'} 489 | 490 | clone@2.1.2: 491 | resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==} 492 | engines: {node: '>=0.8'} 493 | 494 | co-body@6.2.0: 495 | resolution: {integrity: sha512-Kbpv2Yd1NdL1V/V4cwLVxraHDV6K8ayohr2rmH0J87Er8+zJjcTa6dAn9QMPC9CRgU8+aNajKbSf1TzDB1yKPA==} 496 | engines: {node: '>=8.0.0'} 497 | 498 | co@4.6.0: 499 | resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} 500 | engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} 501 | 502 | color-convert@1.9.3: 503 | resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} 504 | 505 | color-convert@2.0.1: 506 | resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} 507 | engines: {node: '>=7.0.0'} 508 | 509 | color-name@1.1.3: 510 | resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} 511 | 512 | color-name@1.1.4: 513 | resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} 514 | 515 | comlink@4.4.1: 516 | resolution: {integrity: sha512-+1dlx0aY5Jo1vHy/tSsIGpSkN4tS9rZSW8FIhG0JH/crs9wwweswIo/POr451r7bZww3hFbPAKnTpimzL/mm4Q==} 517 | 518 | command-line-args@5.2.1: 519 | resolution: {integrity: sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==} 520 | engines: {node: '>=4.0.0'} 521 | 522 | command-line-usage@7.0.3: 523 | resolution: {integrity: sha512-PqMLy5+YGwhMh1wS04mVG44oqDsgyLRSKJBdOo1bnYhMKBW65gZF1dRp2OZRhiTjgUHljy99qkO7bsctLaw35Q==} 524 | engines: {node: '>=12.20.0'} 525 | 526 | content-disposition@0.5.4: 527 | resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} 528 | engines: {node: '>= 0.6'} 529 | 530 | content-type@1.0.5: 531 | resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} 532 | engines: {node: '>= 0.6'} 533 | 534 | convert-source-map@2.0.0: 535 | resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} 536 | 537 | cookies@0.9.1: 538 | resolution: {integrity: sha512-TG2hpqe4ELx54QER/S3HQ9SRVnQnGBtKUz5bLQWtYAQ+o6GpgMs6sYUvaiJjVxb+UXwhRhAEP3m7LbsIZ77Hmw==} 539 | engines: {node: '>= 0.8'} 540 | 541 | cross-spawn@7.0.3: 542 | resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} 543 | engines: {node: '>= 8'} 544 | 545 | data-uri-to-buffer@6.0.2: 546 | resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==} 547 | engines: {node: '>= 14'} 548 | 549 | debounce@1.2.1: 550 | resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==} 551 | 552 | debug@2.6.9: 553 | resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} 554 | peerDependencies: 555 | supports-color: '*' 556 | peerDependenciesMeta: 557 | supports-color: 558 | optional: true 559 | 560 | debug@3.2.7: 561 | resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} 562 | peerDependencies: 563 | supports-color: '*' 564 | peerDependenciesMeta: 565 | supports-color: 566 | optional: true 567 | 568 | debug@4.3.7: 569 | resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} 570 | engines: {node: '>=6.0'} 571 | peerDependencies: 572 | supports-color: '*' 573 | peerDependenciesMeta: 574 | supports-color: 575 | optional: true 576 | 577 | deep-equal@1.0.1: 578 | resolution: {integrity: sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==} 579 | 580 | deepmerge@4.3.1: 581 | resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} 582 | engines: {node: '>=0.10.0'} 583 | 584 | default-gateway@6.0.3: 585 | resolution: {integrity: sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==} 586 | engines: {node: '>= 10'} 587 | 588 | define-data-property@1.1.4: 589 | resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} 590 | engines: {node: '>= 0.4'} 591 | 592 | define-lazy-prop@2.0.0: 593 | resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} 594 | engines: {node: '>=8'} 595 | 596 | degenerator@5.0.1: 597 | resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} 598 | engines: {node: '>= 14'} 599 | 600 | delegates@1.0.0: 601 | resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} 602 | 603 | depd@1.1.2: 604 | resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} 605 | engines: {node: '>= 0.6'} 606 | 607 | depd@2.0.0: 608 | resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} 609 | engines: {node: '>= 0.8'} 610 | 611 | dependency-graph@0.11.0: 612 | resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} 613 | engines: {node: '>= 0.6.0'} 614 | 615 | destroy@1.2.0: 616 | resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} 617 | engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} 618 | 619 | devtools-protocol@0.0.1312386: 620 | resolution: {integrity: sha512-DPnhUXvmvKT2dFA/j7B+riVLUt9Q6RKJlcppojL5CoRywJJKLDYnRlw0gTFKfgDPHP5E04UoB71SxoJlVZy8FA==} 621 | 622 | diff@5.2.0: 623 | resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==} 624 | engines: {node: '>=0.3.1'} 625 | 626 | dir-glob@3.0.1: 627 | resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} 628 | engines: {node: '>=8'} 629 | 630 | ee-first@1.1.1: 631 | resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} 632 | 633 | emoji-regex@8.0.0: 634 | resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} 635 | 636 | encodeurl@1.0.2: 637 | resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} 638 | engines: {node: '>= 0.8'} 639 | 640 | end-of-stream@1.4.4: 641 | resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} 642 | 643 | errorstacks@2.4.1: 644 | resolution: {integrity: sha512-jE4i0SMYevwu/xxAuzhly/KTwtj0xDhbzB6m1xPImxTkw8wcCbgarOQPfCVMi5JKVyW7in29pNJCCJrry3Ynnw==} 645 | 646 | es-define-property@1.0.0: 647 | resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} 648 | engines: {node: '>= 0.4'} 649 | 650 | es-errors@1.3.0: 651 | resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} 652 | engines: {node: '>= 0.4'} 653 | 654 | es-module-lexer@1.5.4: 655 | resolution: {integrity: sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==} 656 | 657 | escalade@3.2.0: 658 | resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} 659 | engines: {node: '>=6'} 660 | 661 | escape-html@1.0.3: 662 | resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} 663 | 664 | escape-string-regexp@1.0.5: 665 | resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} 666 | engines: {node: '>=0.8.0'} 667 | 668 | escape-string-regexp@4.0.0: 669 | resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} 670 | engines: {node: '>=10'} 671 | 672 | escodegen@2.1.0: 673 | resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} 674 | engines: {node: '>=6.0'} 675 | hasBin: true 676 | 677 | esprima@4.0.1: 678 | resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} 679 | engines: {node: '>=4'} 680 | hasBin: true 681 | 682 | estraverse@5.3.0: 683 | resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} 684 | engines: {node: '>=4.0'} 685 | 686 | estree-walker@2.0.2: 687 | resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} 688 | 689 | esutils@2.0.3: 690 | resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} 691 | engines: {node: '>=0.10.0'} 692 | 693 | etag@1.8.1: 694 | resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} 695 | engines: {node: '>= 0.6'} 696 | 697 | execa@5.1.1: 698 | resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} 699 | engines: {node: '>=10'} 700 | 701 | extract-zip@2.0.1: 702 | resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} 703 | engines: {node: '>= 10.17.0'} 704 | hasBin: true 705 | 706 | fast-fifo@1.3.2: 707 | resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==} 708 | 709 | fast-glob@3.3.2: 710 | resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} 711 | engines: {node: '>=8.6.0'} 712 | 713 | fastq@1.17.1: 714 | resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} 715 | 716 | fd-slicer@1.1.0: 717 | resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} 718 | 719 | fill-range@7.1.1: 720 | resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} 721 | engines: {node: '>=8'} 722 | 723 | find-replace@3.0.0: 724 | resolution: {integrity: sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==} 725 | engines: {node: '>=4.0.0'} 726 | 727 | fresh@0.5.2: 728 | resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} 729 | engines: {node: '>= 0.6'} 730 | 731 | fs-extra@11.2.0: 732 | resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} 733 | engines: {node: '>=14.14'} 734 | 735 | fsevents@2.3.3: 736 | resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} 737 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 738 | os: [darwin] 739 | 740 | function-bind@1.1.2: 741 | resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} 742 | 743 | get-caller-file@2.0.5: 744 | resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} 745 | engines: {node: 6.* || 8.* || >= 10.*} 746 | 747 | get-intrinsic@1.2.4: 748 | resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} 749 | engines: {node: '>= 0.4'} 750 | 751 | get-stream@5.2.0: 752 | resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} 753 | engines: {node: '>=8'} 754 | 755 | get-stream@6.0.1: 756 | resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} 757 | engines: {node: '>=10'} 758 | 759 | get-uri@6.0.3: 760 | resolution: {integrity: sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==} 761 | engines: {node: '>= 14'} 762 | 763 | glob-parent@5.1.2: 764 | resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} 765 | engines: {node: '>= 6'} 766 | 767 | globby@11.1.0: 768 | resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} 769 | engines: {node: '>=10'} 770 | 771 | gopd@1.0.1: 772 | resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} 773 | 774 | graceful-fs@4.2.11: 775 | resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} 776 | 777 | has-flag@3.0.0: 778 | resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} 779 | engines: {node: '>=4'} 780 | 781 | has-flag@4.0.0: 782 | resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} 783 | engines: {node: '>=8'} 784 | 785 | has-property-descriptors@1.0.2: 786 | resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} 787 | 788 | has-proto@1.0.3: 789 | resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} 790 | engines: {node: '>= 0.4'} 791 | 792 | has-symbols@1.0.3: 793 | resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} 794 | engines: {node: '>= 0.4'} 795 | 796 | has-tostringtag@1.0.2: 797 | resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} 798 | engines: {node: '>= 0.4'} 799 | 800 | hasown@2.0.2: 801 | resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} 802 | engines: {node: '>= 0.4'} 803 | 804 | html-escaper@2.0.2: 805 | resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} 806 | 807 | http-assert@1.5.0: 808 | resolution: {integrity: sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==} 809 | engines: {node: '>= 0.8'} 810 | 811 | http-errors@1.6.3: 812 | resolution: {integrity: sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==} 813 | engines: {node: '>= 0.6'} 814 | 815 | http-errors@1.8.1: 816 | resolution: {integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==} 817 | engines: {node: '>= 0.6'} 818 | 819 | http-errors@2.0.0: 820 | resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} 821 | engines: {node: '>= 0.8'} 822 | 823 | http-proxy-agent@7.0.2: 824 | resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} 825 | engines: {node: '>= 14'} 826 | 827 | https-proxy-agent@7.0.5: 828 | resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} 829 | engines: {node: '>= 14'} 830 | 831 | human-signals@2.1.0: 832 | resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} 833 | engines: {node: '>=10.17.0'} 834 | 835 | iconv-lite@0.4.24: 836 | resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} 837 | engines: {node: '>=0.10.0'} 838 | 839 | ieee754@1.2.1: 840 | resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} 841 | 842 | ignore@5.3.2: 843 | resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} 844 | engines: {node: '>= 4'} 845 | 846 | inflation@2.1.0: 847 | resolution: {integrity: sha512-t54PPJHG1Pp7VQvxyVCJ9mBbjG3Hqryges9bXoOO6GExCPa+//i/d5GSuFtpx3ALLd7lgIAur6zrIlBQyJuMlQ==} 848 | engines: {node: '>= 0.8.0'} 849 | 850 | inherits@2.0.3: 851 | resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} 852 | 853 | inherits@2.0.4: 854 | resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} 855 | 856 | internal-ip@6.2.0: 857 | resolution: {integrity: sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==} 858 | engines: {node: '>=10'} 859 | 860 | ip-address@9.0.5: 861 | resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} 862 | engines: {node: '>= 12'} 863 | 864 | ip-regex@4.3.0: 865 | resolution: {integrity: sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==} 866 | engines: {node: '>=8'} 867 | 868 | ipaddr.js@1.9.1: 869 | resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} 870 | engines: {node: '>= 0.10'} 871 | 872 | is-core-module@2.15.1: 873 | resolution: {integrity: sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==} 874 | engines: {node: '>= 0.4'} 875 | 876 | is-docker@2.2.1: 877 | resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} 878 | engines: {node: '>=8'} 879 | hasBin: true 880 | 881 | is-extglob@2.1.1: 882 | resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} 883 | engines: {node: '>=0.10.0'} 884 | 885 | is-fullwidth-code-point@3.0.0: 886 | resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} 887 | engines: {node: '>=8'} 888 | 889 | is-generator-function@1.0.10: 890 | resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==} 891 | engines: {node: '>= 0.4'} 892 | 893 | is-glob@4.0.3: 894 | resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} 895 | engines: {node: '>=0.10.0'} 896 | 897 | is-ip@3.1.0: 898 | resolution: {integrity: sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==} 899 | engines: {node: '>=8'} 900 | 901 | is-module@1.0.0: 902 | resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} 903 | 904 | is-number@7.0.0: 905 | resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} 906 | engines: {node: '>=0.12.0'} 907 | 908 | is-stream@2.0.1: 909 | resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} 910 | engines: {node: '>=8'} 911 | 912 | is-wsl@2.2.0: 913 | resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} 914 | engines: {node: '>=8'} 915 | 916 | isbinaryfile@5.0.2: 917 | resolution: {integrity: sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==} 918 | engines: {node: '>= 18.0.0'} 919 | 920 | isexe@2.0.0: 921 | resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} 922 | 923 | istanbul-lib-coverage@3.2.2: 924 | resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} 925 | engines: {node: '>=8'} 926 | 927 | istanbul-lib-report@3.0.1: 928 | resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} 929 | engines: {node: '>=10'} 930 | 931 | istanbul-reports@3.1.7: 932 | resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} 933 | engines: {node: '>=8'} 934 | 935 | jasmine-core@4.6.1: 936 | resolution: {integrity: sha512-VYz/BjjmC3klLJlLwA4Kw8ytk0zDSmbbDLNs794VnWmkcCB7I9aAL/D48VNQtmITyPvea2C3jdUMfc3kAoy0PQ==} 937 | 938 | js-tokens@4.0.0: 939 | resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} 940 | 941 | jsbn@1.1.0: 942 | resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} 943 | 944 | jsonc-parser@3.3.1: 945 | resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} 946 | 947 | jsonfile@6.1.0: 948 | resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} 949 | 950 | keygrip@1.1.0: 951 | resolution: {integrity: sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==} 952 | engines: {node: '>= 0.6'} 953 | 954 | koa-compose@4.1.0: 955 | resolution: {integrity: sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==} 956 | 957 | koa-convert@2.0.0: 958 | resolution: {integrity: sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==} 959 | engines: {node: '>= 10'} 960 | 961 | koa-etag@4.0.0: 962 | resolution: {integrity: sha512-1cSdezCkBWlyuB9l6c/IFoe1ANCDdPBxkDkRiaIup40xpUub6U/wwRXoKBZw/O5BifX9OlqAjYnDyzM6+l+TAg==} 963 | 964 | koa-send@5.0.1: 965 | resolution: {integrity: sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==} 966 | engines: {node: '>= 8'} 967 | 968 | koa-static@5.0.0: 969 | resolution: {integrity: sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==} 970 | engines: {node: '>= 7.6.0'} 971 | 972 | koa@2.15.3: 973 | resolution: {integrity: sha512-j/8tY9j5t+GVMLeioLaxweJiKUayFhlGqNTzf2ZGwL0ZCQijd2RLHK0SLW5Tsko8YyyqCZC2cojIb0/s62qTAg==} 974 | engines: {node: ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4} 975 | 976 | lighthouse-logger@1.4.2: 977 | resolution: {integrity: sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==} 978 | 979 | lodash.camelcase@4.3.0: 980 | resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} 981 | 982 | lodash@4.17.21: 983 | resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} 984 | 985 | log-update@4.0.0: 986 | resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==} 987 | engines: {node: '>=10'} 988 | 989 | lru-cache@7.18.3: 990 | resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} 991 | engines: {node: '>=12'} 992 | 993 | lru-cache@8.0.5: 994 | resolution: {integrity: sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==} 995 | engines: {node: '>=16.14'} 996 | 997 | lunr@2.3.9: 998 | resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} 999 | 1000 | make-dir@4.0.0: 1001 | resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} 1002 | engines: {node: '>=10'} 1003 | 1004 | marked@4.3.0: 1005 | resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==} 1006 | engines: {node: '>= 12'} 1007 | hasBin: true 1008 | 1009 | marky@1.2.5: 1010 | resolution: {integrity: sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==} 1011 | 1012 | media-typer@0.3.0: 1013 | resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} 1014 | engines: {node: '>= 0.6'} 1015 | 1016 | merge-stream@2.0.0: 1017 | resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} 1018 | 1019 | merge2@1.4.1: 1020 | resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} 1021 | engines: {node: '>= 8'} 1022 | 1023 | micromatch@4.0.8: 1024 | resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} 1025 | engines: {node: '>=8.6'} 1026 | 1027 | mime-db@1.52.0: 1028 | resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} 1029 | engines: {node: '>= 0.6'} 1030 | 1031 | mime-types@2.1.35: 1032 | resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} 1033 | engines: {node: '>= 0.6'} 1034 | 1035 | mimic-fn@2.1.0: 1036 | resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} 1037 | engines: {node: '>=6'} 1038 | 1039 | minimatch@9.0.5: 1040 | resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} 1041 | engines: {node: '>=16 || 14 >=14.17'} 1042 | 1043 | minimist@1.2.8: 1044 | resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} 1045 | 1046 | mitt@3.0.1: 1047 | resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} 1048 | 1049 | mkdirp@0.5.6: 1050 | resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} 1051 | hasBin: true 1052 | 1053 | mkdirp@1.0.4: 1054 | resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} 1055 | engines: {node: '>=10'} 1056 | hasBin: true 1057 | 1058 | monaco-editor@0.34.1: 1059 | resolution: {integrity: sha512-FKc80TyiMaruhJKKPz5SpJPIjL+dflGvz4CpuThaPMc94AyN7SeC9HQ8hrvaxX7EyHdJcUY5i4D0gNyJj1vSZQ==} 1060 | 1061 | ms@2.0.0: 1062 | resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} 1063 | 1064 | ms@2.1.3: 1065 | resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} 1066 | 1067 | nanocolors@0.2.13: 1068 | resolution: {integrity: sha512-0n3mSAQLPpGLV9ORXT5+C/D4mwew7Ebws69Hx4E2sgz2ZA5+32Q80B9tL8PbL7XHnRDiAxH/pnrUJ9a4fkTNTA==} 1069 | 1070 | nanoid@3.3.7: 1071 | resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} 1072 | engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} 1073 | hasBin: true 1074 | 1075 | negotiator@0.6.3: 1076 | resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} 1077 | engines: {node: '>= 0.6'} 1078 | 1079 | netmask@2.0.2: 1080 | resolution: {integrity: sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==} 1081 | engines: {node: '>= 0.4.0'} 1082 | 1083 | npm-run-path@4.0.1: 1084 | resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} 1085 | engines: {node: '>=8'} 1086 | 1087 | object-inspect@1.13.2: 1088 | resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} 1089 | engines: {node: '>= 0.4'} 1090 | 1091 | on-finished@2.4.1: 1092 | resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} 1093 | engines: {node: '>= 0.8'} 1094 | 1095 | once@1.4.0: 1096 | resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} 1097 | 1098 | onetime@5.1.2: 1099 | resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} 1100 | engines: {node: '>=6'} 1101 | 1102 | only@0.0.2: 1103 | resolution: {integrity: sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==} 1104 | 1105 | open@8.4.2: 1106 | resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} 1107 | engines: {node: '>=12'} 1108 | 1109 | p-event@4.2.0: 1110 | resolution: {integrity: sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==} 1111 | engines: {node: '>=8'} 1112 | 1113 | p-finally@1.0.0: 1114 | resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} 1115 | engines: {node: '>=4'} 1116 | 1117 | p-timeout@3.2.0: 1118 | resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} 1119 | engines: {node: '>=8'} 1120 | 1121 | pac-proxy-agent@7.0.2: 1122 | resolution: {integrity: sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==} 1123 | engines: {node: '>= 14'} 1124 | 1125 | pac-resolver@7.0.1: 1126 | resolution: {integrity: sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==} 1127 | engines: {node: '>= 14'} 1128 | 1129 | parse5@6.0.1: 1130 | resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} 1131 | 1132 | parseurl@1.3.3: 1133 | resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} 1134 | engines: {node: '>= 0.8'} 1135 | 1136 | path-is-absolute@1.0.1: 1137 | resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} 1138 | engines: {node: '>=0.10.0'} 1139 | 1140 | path-key@3.1.1: 1141 | resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} 1142 | engines: {node: '>=8'} 1143 | 1144 | path-parse@1.0.7: 1145 | resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} 1146 | 1147 | path-type@4.0.0: 1148 | resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} 1149 | engines: {node: '>=8'} 1150 | 1151 | pend@1.2.0: 1152 | resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} 1153 | 1154 | picocolors@1.1.0: 1155 | resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} 1156 | 1157 | picomatch@2.3.1: 1158 | resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} 1159 | engines: {node: '>=8.6'} 1160 | 1161 | portfinder@1.0.32: 1162 | resolution: {integrity: sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==} 1163 | engines: {node: '>= 0.12.0'} 1164 | 1165 | progress@2.0.3: 1166 | resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} 1167 | engines: {node: '>=0.4.0'} 1168 | 1169 | proxy-agent@6.4.0: 1170 | resolution: {integrity: sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ==} 1171 | engines: {node: '>= 14'} 1172 | 1173 | proxy-from-env@1.1.0: 1174 | resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} 1175 | 1176 | pump@3.0.2: 1177 | resolution: {integrity: sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==} 1178 | 1179 | punycode@2.3.1: 1180 | resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} 1181 | engines: {node: '>=6'} 1182 | 1183 | puppeteer-core@22.15.0: 1184 | resolution: {integrity: sha512-cHArnywCiAAVXa3t4GGL2vttNxh7GqXtIYGym99egkNJ3oG//wL9LkvO4WE8W1TJe95t1F1ocu9X4xWaGsOKOA==} 1185 | engines: {node: '>=18'} 1186 | 1187 | qs@6.13.0: 1188 | resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} 1189 | engines: {node: '>=0.6'} 1190 | 1191 | queue-microtask@1.2.3: 1192 | resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} 1193 | 1194 | queue-tick@1.0.1: 1195 | resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} 1196 | 1197 | raw-body@2.5.2: 1198 | resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} 1199 | engines: {node: '>= 0.8'} 1200 | 1201 | readdirp@4.0.2: 1202 | resolution: {integrity: sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==} 1203 | engines: {node: '>= 14.16.0'} 1204 | 1205 | require-directory@2.1.1: 1206 | resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} 1207 | engines: {node: '>=0.10.0'} 1208 | 1209 | resolve-path@1.4.0: 1210 | resolution: {integrity: sha512-i1xevIst/Qa+nA9olDxLWnLk8YZbi8R/7JPbCMcgyWaFR6bKWaexgJgEB5oc2PKMjYdrHynyz0NY+if+H98t1w==} 1211 | engines: {node: '>= 0.8'} 1212 | 1213 | resolve@1.22.8: 1214 | resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} 1215 | hasBin: true 1216 | 1217 | restore-cursor@3.1.0: 1218 | resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} 1219 | engines: {node: '>=8'} 1220 | 1221 | reusify@1.0.4: 1222 | resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} 1223 | engines: {iojs: '>=1.0.0', node: '>=0.10.0'} 1224 | 1225 | rollup@4.24.0: 1226 | resolution: {integrity: sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==} 1227 | engines: {node: '>=18.0.0', npm: '>=8.0.0'} 1228 | hasBin: true 1229 | 1230 | run-parallel@1.2.0: 1231 | resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} 1232 | 1233 | safe-buffer@5.2.1: 1234 | resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} 1235 | 1236 | safer-buffer@2.1.2: 1237 | resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} 1238 | 1239 | semver@7.6.3: 1240 | resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} 1241 | engines: {node: '>=10'} 1242 | hasBin: true 1243 | 1244 | set-function-length@1.2.2: 1245 | resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} 1246 | engines: {node: '>= 0.4'} 1247 | 1248 | setprototypeof@1.1.0: 1249 | resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==} 1250 | 1251 | setprototypeof@1.2.0: 1252 | resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} 1253 | 1254 | shebang-command@2.0.0: 1255 | resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} 1256 | engines: {node: '>=8'} 1257 | 1258 | shebang-regex@3.0.0: 1259 | resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} 1260 | engines: {node: '>=8'} 1261 | 1262 | shiki@0.14.7: 1263 | resolution: {integrity: sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==} 1264 | 1265 | side-channel@1.0.6: 1266 | resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} 1267 | engines: {node: '>= 0.4'} 1268 | 1269 | signal-exit@3.0.7: 1270 | resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} 1271 | 1272 | slash@3.0.0: 1273 | resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} 1274 | engines: {node: '>=8'} 1275 | 1276 | slice-ansi@4.0.0: 1277 | resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} 1278 | engines: {node: '>=10'} 1279 | 1280 | smart-buffer@4.2.0: 1281 | resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} 1282 | engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} 1283 | 1284 | socks-proxy-agent@8.0.4: 1285 | resolution: {integrity: sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==} 1286 | engines: {node: '>= 14'} 1287 | 1288 | socks@2.8.3: 1289 | resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==} 1290 | engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} 1291 | 1292 | source-map@0.6.1: 1293 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} 1294 | engines: {node: '>=0.10.0'} 1295 | 1296 | source-map@0.7.4: 1297 | resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} 1298 | engines: {node: '>= 8'} 1299 | 1300 | sprintf-js@1.1.3: 1301 | resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==} 1302 | 1303 | statuses@1.5.0: 1304 | resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} 1305 | engines: {node: '>= 0.6'} 1306 | 1307 | statuses@2.0.1: 1308 | resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} 1309 | engines: {node: '>= 0.8'} 1310 | 1311 | streamx@2.20.1: 1312 | resolution: {integrity: sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==} 1313 | 1314 | string-width@4.2.3: 1315 | resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} 1316 | engines: {node: '>=8'} 1317 | 1318 | strip-ansi@6.0.1: 1319 | resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} 1320 | engines: {node: '>=8'} 1321 | 1322 | strip-final-newline@2.0.0: 1323 | resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} 1324 | engines: {node: '>=6'} 1325 | 1326 | supports-color@5.5.0: 1327 | resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} 1328 | engines: {node: '>=4'} 1329 | 1330 | supports-color@7.2.0: 1331 | resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} 1332 | engines: {node: '>=8'} 1333 | 1334 | supports-preserve-symlinks-flag@1.0.0: 1335 | resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} 1336 | engines: {node: '>= 0.4'} 1337 | 1338 | table-layout@4.1.1: 1339 | resolution: {integrity: sha512-iK5/YhZxq5GO5z8wb0bY1317uDF3Zjpha0QFFLA8/trAoiLbQD0HUbMesEaxyzUgDxi2QlcbM8IvqOlEjgoXBA==} 1340 | engines: {node: '>=12.17'} 1341 | 1342 | tar-fs@3.0.6: 1343 | resolution: {integrity: sha512-iokBDQQkUyeXhgPYaZxmczGPhnhXZ0CmrqI+MOb/WFGS9DW5wnfrLgtjUJBvz50vQ3qfRwJ62QVoCFu8mPVu5w==} 1344 | 1345 | tar-stream@3.1.7: 1346 | resolution: {integrity: sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==} 1347 | 1348 | text-decoder@1.2.0: 1349 | resolution: {integrity: sha512-n1yg1mOj9DNpk3NeZOx7T6jchTbyJS3i3cucbNN6FcdPriMZx7NsgrGpWWdWZZGxD7ES1XB+3uoqHMgOKaN+fg==} 1350 | 1351 | through@2.3.8: 1352 | resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} 1353 | 1354 | to-regex-range@5.0.1: 1355 | resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} 1356 | engines: {node: '>=8.0'} 1357 | 1358 | toidentifier@1.0.1: 1359 | resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} 1360 | engines: {node: '>=0.6'} 1361 | 1362 | tr46@5.0.0: 1363 | resolution: {integrity: sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==} 1364 | engines: {node: '>=18'} 1365 | 1366 | tslib@2.7.0: 1367 | resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} 1368 | 1369 | tsscmp@1.0.6: 1370 | resolution: {integrity: sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==} 1371 | engines: {node: '>=0.6.x'} 1372 | 1373 | type-fest@0.21.3: 1374 | resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} 1375 | engines: {node: '>=10'} 1376 | 1377 | type-is@1.6.18: 1378 | resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} 1379 | engines: {node: '>= 0.6'} 1380 | 1381 | typedoc@0.25.13: 1382 | resolution: {integrity: sha512-pQqiwiJ+Z4pigfOnnysObszLiU3mVLWAExSPf+Mu06G/qsc3wzbuM56SZQvONhHLncLUhYzOVkjFFpFfL5AzhQ==} 1383 | engines: {node: '>= 16'} 1384 | hasBin: true 1385 | peerDependencies: 1386 | typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x 1387 | 1388 | typescript@5.6.2: 1389 | resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} 1390 | engines: {node: '>=14.17'} 1391 | hasBin: true 1392 | 1393 | typical@4.0.0: 1394 | resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==} 1395 | engines: {node: '>=8'} 1396 | 1397 | typical@7.2.0: 1398 | resolution: {integrity: sha512-W1+HdVRUl8fS3MZ9ogD51GOb46xMmhAZzR0WPw5jcgIZQJVvkddYzAl4YTU6g5w33Y1iRQLdIi2/1jhi2RNL0g==} 1399 | engines: {node: '>=12.17'} 1400 | 1401 | unbzip2-stream@1.4.3: 1402 | resolution: {integrity: sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==} 1403 | 1404 | undici-types@6.19.8: 1405 | resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} 1406 | 1407 | universalify@2.0.1: 1408 | resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} 1409 | engines: {node: '>= 10.0.0'} 1410 | 1411 | unpipe@1.0.0: 1412 | resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} 1413 | engines: {node: '>= 0.8'} 1414 | 1415 | urlpattern-polyfill@10.0.0: 1416 | resolution: {integrity: sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==} 1417 | 1418 | v8-to-istanbul@9.3.0: 1419 | resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} 1420 | engines: {node: '>=10.12.0'} 1421 | 1422 | vary@1.1.2: 1423 | resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} 1424 | engines: {node: '>= 0.8'} 1425 | 1426 | vscode-oniguruma@1.7.0: 1427 | resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} 1428 | 1429 | vscode-textmate@8.0.0: 1430 | resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} 1431 | 1432 | web-test-runner-jasmine@0.0.6: 1433 | resolution: {integrity: sha512-dB403Cll5TKhW1vhFpe4z5Fzh1FIkpaCYLmznQKnB/lvqST4R1QmkXgJqs9UcM/hpnCSfUJ0/0WlW4hqhq0xVA==} 1434 | 1435 | webidl-conversions@7.0.0: 1436 | resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} 1437 | engines: {node: '>=12'} 1438 | 1439 | whatwg-url@14.0.0: 1440 | resolution: {integrity: sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==} 1441 | engines: {node: '>=18'} 1442 | 1443 | which@2.0.2: 1444 | resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} 1445 | engines: {node: '>= 8'} 1446 | hasBin: true 1447 | 1448 | wordwrapjs@5.1.0: 1449 | resolution: {integrity: sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg==} 1450 | engines: {node: '>=12.17'} 1451 | 1452 | wrap-ansi@6.2.0: 1453 | resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} 1454 | engines: {node: '>=8'} 1455 | 1456 | wrap-ansi@7.0.0: 1457 | resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} 1458 | engines: {node: '>=10'} 1459 | 1460 | wrappy@1.0.2: 1461 | resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} 1462 | 1463 | ws@7.5.10: 1464 | resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} 1465 | engines: {node: '>=8.3.0'} 1466 | peerDependencies: 1467 | bufferutil: ^4.0.1 1468 | utf-8-validate: ^5.0.2 1469 | peerDependenciesMeta: 1470 | bufferutil: 1471 | optional: true 1472 | utf-8-validate: 1473 | optional: true 1474 | 1475 | ws@8.18.0: 1476 | resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} 1477 | engines: {node: '>=10.0.0'} 1478 | peerDependencies: 1479 | bufferutil: ^4.0.1 1480 | utf-8-validate: '>=5.0.2' 1481 | peerDependenciesMeta: 1482 | bufferutil: 1483 | optional: true 1484 | utf-8-validate: 1485 | optional: true 1486 | 1487 | y18n@5.0.8: 1488 | resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} 1489 | engines: {node: '>=10'} 1490 | 1491 | yargs-parser@21.1.1: 1492 | resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} 1493 | engines: {node: '>=12'} 1494 | 1495 | yargs@17.7.2: 1496 | resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} 1497 | engines: {node: '>=12'} 1498 | 1499 | yauzl@2.10.0: 1500 | resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} 1501 | 1502 | ylru@1.4.0: 1503 | resolution: {integrity: sha512-2OQsPNEmBCvXuFlIni/a+Rn+R2pHW9INm0BxXJ4hVDA8TirqMj+J/Rp9ItLatT/5pZqWwefVrTQcHpixsxnVlA==} 1504 | engines: {node: '>= 4.0.0'} 1505 | 1506 | zod@3.23.8: 1507 | resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} 1508 | 1509 | snapshots: 1510 | 1511 | '@babel/code-frame@7.25.7': 1512 | dependencies: 1513 | '@babel/highlight': 7.25.7 1514 | picocolors: 1.1.0 1515 | 1516 | '@babel/helper-validator-identifier@7.25.7': {} 1517 | 1518 | '@babel/highlight@7.25.7': 1519 | dependencies: 1520 | '@babel/helper-validator-identifier': 7.25.7 1521 | chalk: 2.4.2 1522 | js-tokens: 4.0.0 1523 | picocolors: 1.1.0 1524 | 1525 | '@hapi/bourne@3.0.0': {} 1526 | 1527 | '@jridgewell/resolve-uri@3.1.2': {} 1528 | 1529 | '@jridgewell/sourcemap-codec@1.5.0': {} 1530 | 1531 | '@jridgewell/trace-mapping@0.3.25': 1532 | dependencies: 1533 | '@jridgewell/resolve-uri': 3.1.2 1534 | '@jridgewell/sourcemap-codec': 1.5.0 1535 | 1536 | '@nodelib/fs.scandir@2.1.5': 1537 | dependencies: 1538 | '@nodelib/fs.stat': 2.0.5 1539 | run-parallel: 1.2.0 1540 | 1541 | '@nodelib/fs.stat@2.0.5': {} 1542 | 1543 | '@nodelib/fs.walk@1.2.8': 1544 | dependencies: 1545 | '@nodelib/fs.scandir': 2.1.5 1546 | fastq: 1.17.1 1547 | 1548 | '@puppeteer/browsers@2.3.0': 1549 | dependencies: 1550 | debug: 4.3.7 1551 | extract-zip: 2.0.1 1552 | progress: 2.0.3 1553 | proxy-agent: 6.4.0 1554 | semver: 7.6.3 1555 | tar-fs: 3.0.6 1556 | unbzip2-stream: 1.4.3 1557 | yargs: 17.7.2 1558 | transitivePeerDependencies: 1559 | - supports-color 1560 | 1561 | '@rollup/plugin-node-resolve@15.3.0(rollup@4.24.0)': 1562 | dependencies: 1563 | '@rollup/pluginutils': 5.1.2(rollup@4.24.0) 1564 | '@types/resolve': 1.20.2 1565 | deepmerge: 4.3.1 1566 | is-module: 1.0.0 1567 | resolve: 1.22.8 1568 | optionalDependencies: 1569 | rollup: 4.24.0 1570 | 1571 | '@rollup/pluginutils@5.1.2(rollup@4.24.0)': 1572 | dependencies: 1573 | '@types/estree': 1.0.6 1574 | estree-walker: 2.0.2 1575 | picomatch: 2.3.1 1576 | optionalDependencies: 1577 | rollup: 4.24.0 1578 | 1579 | '@rollup/rollup-android-arm-eabi@4.24.0': 1580 | optional: true 1581 | 1582 | '@rollup/rollup-android-arm64@4.24.0': 1583 | optional: true 1584 | 1585 | '@rollup/rollup-darwin-arm64@4.24.0': 1586 | optional: true 1587 | 1588 | '@rollup/rollup-darwin-x64@4.24.0': 1589 | optional: true 1590 | 1591 | '@rollup/rollup-linux-arm-gnueabihf@4.24.0': 1592 | optional: true 1593 | 1594 | '@rollup/rollup-linux-arm-musleabihf@4.24.0': 1595 | optional: true 1596 | 1597 | '@rollup/rollup-linux-arm64-gnu@4.24.0': 1598 | optional: true 1599 | 1600 | '@rollup/rollup-linux-arm64-musl@4.24.0': 1601 | optional: true 1602 | 1603 | '@rollup/rollup-linux-powerpc64le-gnu@4.24.0': 1604 | optional: true 1605 | 1606 | '@rollup/rollup-linux-riscv64-gnu@4.24.0': 1607 | optional: true 1608 | 1609 | '@rollup/rollup-linux-s390x-gnu@4.24.0': 1610 | optional: true 1611 | 1612 | '@rollup/rollup-linux-x64-gnu@4.24.0': 1613 | optional: true 1614 | 1615 | '@rollup/rollup-linux-x64-musl@4.24.0': 1616 | optional: true 1617 | 1618 | '@rollup/rollup-win32-arm64-msvc@4.24.0': 1619 | optional: true 1620 | 1621 | '@rollup/rollup-win32-ia32-msvc@4.24.0': 1622 | optional: true 1623 | 1624 | '@rollup/rollup-win32-x64-msvc@4.24.0': 1625 | optional: true 1626 | 1627 | '@tootallnate/quickjs-emscripten@0.23.0': {} 1628 | 1629 | '@types/accepts@1.3.7': 1630 | dependencies: 1631 | '@types/node': 22.7.4 1632 | 1633 | '@types/babel__code-frame@7.0.6': {} 1634 | 1635 | '@types/body-parser@1.19.5': 1636 | dependencies: 1637 | '@types/connect': 3.4.38 1638 | '@types/node': 22.7.4 1639 | 1640 | '@types/co-body@6.1.3': 1641 | dependencies: 1642 | '@types/node': 22.7.4 1643 | '@types/qs': 6.9.16 1644 | 1645 | '@types/command-line-args@5.2.3': {} 1646 | 1647 | '@types/connect@3.4.38': 1648 | dependencies: 1649 | '@types/node': 22.7.4 1650 | 1651 | '@types/content-disposition@0.5.8': {} 1652 | 1653 | '@types/convert-source-map@2.0.3': {} 1654 | 1655 | '@types/cookies@0.9.0': 1656 | dependencies: 1657 | '@types/connect': 3.4.38 1658 | '@types/express': 5.0.0 1659 | '@types/keygrip': 1.0.6 1660 | '@types/node': 22.7.4 1661 | 1662 | '@types/debounce@1.2.4': {} 1663 | 1664 | '@types/estree@1.0.6': {} 1665 | 1666 | '@types/express-serve-static-core@5.0.0': 1667 | dependencies: 1668 | '@types/node': 22.7.4 1669 | '@types/qs': 6.9.16 1670 | '@types/range-parser': 1.2.7 1671 | '@types/send': 0.17.4 1672 | 1673 | '@types/express@5.0.0': 1674 | dependencies: 1675 | '@types/body-parser': 1.19.5 1676 | '@types/express-serve-static-core': 5.0.0 1677 | '@types/qs': 6.9.16 1678 | '@types/serve-static': 1.15.7 1679 | 1680 | '@types/http-assert@1.5.5': {} 1681 | 1682 | '@types/http-errors@2.0.4': {} 1683 | 1684 | '@types/istanbul-lib-coverage@2.0.6': {} 1685 | 1686 | '@types/istanbul-lib-report@3.0.3': 1687 | dependencies: 1688 | '@types/istanbul-lib-coverage': 2.0.6 1689 | 1690 | '@types/istanbul-reports@3.0.4': 1691 | dependencies: 1692 | '@types/istanbul-lib-report': 3.0.3 1693 | 1694 | '@types/jasmine@5.1.4': {} 1695 | 1696 | '@types/keygrip@1.0.6': {} 1697 | 1698 | '@types/koa-compose@3.2.8': 1699 | dependencies: 1700 | '@types/koa': 2.15.0 1701 | 1702 | '@types/koa@2.15.0': 1703 | dependencies: 1704 | '@types/accepts': 1.3.7 1705 | '@types/content-disposition': 0.5.8 1706 | '@types/cookies': 0.9.0 1707 | '@types/http-assert': 1.5.5 1708 | '@types/http-errors': 2.0.4 1709 | '@types/keygrip': 1.0.6 1710 | '@types/koa-compose': 3.2.8 1711 | '@types/node': 22.7.4 1712 | 1713 | '@types/mime@1.3.5': {} 1714 | 1715 | '@types/node@22.7.4': 1716 | dependencies: 1717 | undici-types: 6.19.8 1718 | 1719 | '@types/parse5@6.0.3': {} 1720 | 1721 | '@types/qs@6.9.16': {} 1722 | 1723 | '@types/range-parser@1.2.7': {} 1724 | 1725 | '@types/resolve@1.20.2': {} 1726 | 1727 | '@types/send@0.17.4': 1728 | dependencies: 1729 | '@types/mime': 1.3.5 1730 | '@types/node': 22.7.4 1731 | 1732 | '@types/serve-static@1.15.7': 1733 | dependencies: 1734 | '@types/http-errors': 2.0.4 1735 | '@types/node': 22.7.4 1736 | '@types/send': 0.17.4 1737 | 1738 | '@types/ws@7.4.7': 1739 | dependencies: 1740 | '@types/node': 22.7.4 1741 | 1742 | '@types/yauzl@2.10.3': 1743 | dependencies: 1744 | '@types/node': 22.7.4 1745 | optional: true 1746 | 1747 | '@web/browser-logs@0.4.0': 1748 | dependencies: 1749 | errorstacks: 2.4.1 1750 | 1751 | '@web/config-loader@0.3.2': {} 1752 | 1753 | '@web/dev-server-core@0.7.3': 1754 | dependencies: 1755 | '@types/koa': 2.15.0 1756 | '@types/ws': 7.4.7 1757 | '@web/parse5-utils': 2.1.0 1758 | chokidar: 4.0.1 1759 | clone: 2.1.2 1760 | es-module-lexer: 1.5.4 1761 | get-stream: 6.0.1 1762 | is-stream: 2.0.1 1763 | isbinaryfile: 5.0.2 1764 | koa: 2.15.3 1765 | koa-etag: 4.0.0 1766 | koa-send: 5.0.1 1767 | koa-static: 5.0.0 1768 | lru-cache: 8.0.5 1769 | mime-types: 2.1.35 1770 | parse5: 6.0.1 1771 | picomatch: 2.3.1 1772 | ws: 7.5.10 1773 | transitivePeerDependencies: 1774 | - bufferutil 1775 | - supports-color 1776 | - utf-8-validate 1777 | 1778 | '@web/dev-server-rollup@0.6.4': 1779 | dependencies: 1780 | '@rollup/plugin-node-resolve': 15.3.0(rollup@4.24.0) 1781 | '@web/dev-server-core': 0.7.3 1782 | nanocolors: 0.2.13 1783 | parse5: 6.0.1 1784 | rollup: 4.24.0 1785 | whatwg-url: 14.0.0 1786 | transitivePeerDependencies: 1787 | - bufferutil 1788 | - supports-color 1789 | - utf-8-validate 1790 | 1791 | '@web/dev-server@0.4.6': 1792 | dependencies: 1793 | '@babel/code-frame': 7.25.7 1794 | '@types/command-line-args': 5.2.3 1795 | '@web/config-loader': 0.3.2 1796 | '@web/dev-server-core': 0.7.3 1797 | '@web/dev-server-rollup': 0.6.4 1798 | camelcase: 6.3.0 1799 | command-line-args: 5.2.1 1800 | command-line-usage: 7.0.3 1801 | debounce: 1.2.1 1802 | deepmerge: 4.3.1 1803 | internal-ip: 6.2.0 1804 | nanocolors: 0.2.13 1805 | open: 8.4.2 1806 | portfinder: 1.0.32 1807 | transitivePeerDependencies: 1808 | - bufferutil 1809 | - supports-color 1810 | - utf-8-validate 1811 | 1812 | '@web/parse5-utils@2.1.0': 1813 | dependencies: 1814 | '@types/parse5': 6.0.3 1815 | parse5: 6.0.1 1816 | 1817 | '@web/test-runner-chrome@0.16.0': 1818 | dependencies: 1819 | '@web/test-runner-core': 0.13.4 1820 | '@web/test-runner-coverage-v8': 0.8.0 1821 | async-mutex: 0.4.0 1822 | chrome-launcher: 0.15.2 1823 | puppeteer-core: 22.15.0 1824 | transitivePeerDependencies: 1825 | - bufferutil 1826 | - supports-color 1827 | - utf-8-validate 1828 | 1829 | '@web/test-runner-commands@0.9.0': 1830 | dependencies: 1831 | '@web/test-runner-core': 0.13.4 1832 | mkdirp: 1.0.4 1833 | transitivePeerDependencies: 1834 | - bufferutil 1835 | - supports-color 1836 | - utf-8-validate 1837 | 1838 | '@web/test-runner-core@0.13.4': 1839 | dependencies: 1840 | '@babel/code-frame': 7.25.7 1841 | '@types/babel__code-frame': 7.0.6 1842 | '@types/co-body': 6.1.3 1843 | '@types/convert-source-map': 2.0.3 1844 | '@types/debounce': 1.2.4 1845 | '@types/istanbul-lib-coverage': 2.0.6 1846 | '@types/istanbul-reports': 3.0.4 1847 | '@web/browser-logs': 0.4.0 1848 | '@web/dev-server-core': 0.7.3 1849 | chokidar: 4.0.1 1850 | cli-cursor: 3.1.0 1851 | co-body: 6.2.0 1852 | convert-source-map: 2.0.0 1853 | debounce: 1.2.1 1854 | dependency-graph: 0.11.0 1855 | globby: 11.1.0 1856 | internal-ip: 6.2.0 1857 | istanbul-lib-coverage: 3.2.2 1858 | istanbul-lib-report: 3.0.1 1859 | istanbul-reports: 3.1.7 1860 | log-update: 4.0.0 1861 | nanocolors: 0.2.13 1862 | nanoid: 3.3.7 1863 | open: 8.4.2 1864 | picomatch: 2.3.1 1865 | source-map: 0.7.4 1866 | transitivePeerDependencies: 1867 | - bufferutil 1868 | - supports-color 1869 | - utf-8-validate 1870 | 1871 | '@web/test-runner-coverage-v8@0.8.0': 1872 | dependencies: 1873 | '@web/test-runner-core': 0.13.4 1874 | istanbul-lib-coverage: 3.2.2 1875 | lru-cache: 8.0.5 1876 | picomatch: 2.3.1 1877 | v8-to-istanbul: 9.3.0 1878 | transitivePeerDependencies: 1879 | - bufferutil 1880 | - supports-color 1881 | - utf-8-validate 1882 | 1883 | '@web/test-runner-mocha@0.9.0': 1884 | dependencies: 1885 | '@web/test-runner-core': 0.13.4 1886 | transitivePeerDependencies: 1887 | - bufferutil 1888 | - supports-color 1889 | - utf-8-validate 1890 | 1891 | '@web/test-runner@0.18.3': 1892 | dependencies: 1893 | '@web/browser-logs': 0.4.0 1894 | '@web/config-loader': 0.3.2 1895 | '@web/dev-server': 0.4.6 1896 | '@web/test-runner-chrome': 0.16.0 1897 | '@web/test-runner-commands': 0.9.0 1898 | '@web/test-runner-core': 0.13.4 1899 | '@web/test-runner-mocha': 0.9.0 1900 | camelcase: 6.3.0 1901 | command-line-args: 5.2.1 1902 | command-line-usage: 7.0.3 1903 | convert-source-map: 2.0.0 1904 | diff: 5.2.0 1905 | globby: 11.1.0 1906 | nanocolors: 0.2.13 1907 | portfinder: 1.0.32 1908 | source-map: 0.7.4 1909 | transitivePeerDependencies: 1910 | - bufferutil 1911 | - supports-color 1912 | - utf-8-validate 1913 | 1914 | accepts@1.3.8: 1915 | dependencies: 1916 | mime-types: 2.1.35 1917 | negotiator: 0.6.3 1918 | 1919 | agent-base@7.1.1: 1920 | dependencies: 1921 | debug: 4.3.7 1922 | transitivePeerDependencies: 1923 | - supports-color 1924 | 1925 | ansi-escapes@4.3.2: 1926 | dependencies: 1927 | type-fest: 0.21.3 1928 | 1929 | ansi-regex@5.0.1: {} 1930 | 1931 | ansi-sequence-parser@1.1.1: {} 1932 | 1933 | ansi-styles@3.2.1: 1934 | dependencies: 1935 | color-convert: 1.9.3 1936 | 1937 | ansi-styles@4.3.0: 1938 | dependencies: 1939 | color-convert: 2.0.1 1940 | 1941 | array-back@3.1.0: {} 1942 | 1943 | array-back@6.2.2: {} 1944 | 1945 | array-union@2.1.0: {} 1946 | 1947 | ast-types@0.13.4: 1948 | dependencies: 1949 | tslib: 2.7.0 1950 | 1951 | astral-regex@2.0.0: {} 1952 | 1953 | async-mutex@0.4.0: 1954 | dependencies: 1955 | tslib: 2.7.0 1956 | 1957 | async@2.6.4: 1958 | dependencies: 1959 | lodash: 4.17.21 1960 | 1961 | b4a@1.6.7: {} 1962 | 1963 | balanced-match@1.0.2: {} 1964 | 1965 | bare-events@2.5.0: 1966 | optional: true 1967 | 1968 | bare-fs@2.3.5: 1969 | dependencies: 1970 | bare-events: 2.5.0 1971 | bare-path: 2.1.3 1972 | bare-stream: 2.3.0 1973 | optional: true 1974 | 1975 | bare-os@2.4.4: 1976 | optional: true 1977 | 1978 | bare-path@2.1.3: 1979 | dependencies: 1980 | bare-os: 2.4.4 1981 | optional: true 1982 | 1983 | bare-stream@2.3.0: 1984 | dependencies: 1985 | b4a: 1.6.7 1986 | streamx: 2.20.1 1987 | optional: true 1988 | 1989 | base64-js@1.5.1: {} 1990 | 1991 | basic-ftp@5.0.5: {} 1992 | 1993 | brace-expansion@2.0.1: 1994 | dependencies: 1995 | balanced-match: 1.0.2 1996 | 1997 | braces@3.0.3: 1998 | dependencies: 1999 | fill-range: 7.1.1 2000 | 2001 | buffer-crc32@0.2.13: {} 2002 | 2003 | buffer@5.7.1: 2004 | dependencies: 2005 | base64-js: 1.5.1 2006 | ieee754: 1.2.1 2007 | 2008 | bytes@3.1.2: {} 2009 | 2010 | cache-content-type@1.0.1: 2011 | dependencies: 2012 | mime-types: 2.1.35 2013 | ylru: 1.4.0 2014 | 2015 | call-bind@1.0.7: 2016 | dependencies: 2017 | es-define-property: 1.0.0 2018 | es-errors: 1.3.0 2019 | function-bind: 1.1.2 2020 | get-intrinsic: 1.2.4 2021 | set-function-length: 1.2.2 2022 | 2023 | camelcase@6.3.0: {} 2024 | 2025 | chalk-template@0.4.0: 2026 | dependencies: 2027 | chalk: 4.1.2 2028 | 2029 | chalk@2.4.2: 2030 | dependencies: 2031 | ansi-styles: 3.2.1 2032 | escape-string-regexp: 1.0.5 2033 | supports-color: 5.5.0 2034 | 2035 | chalk@4.1.2: 2036 | dependencies: 2037 | ansi-styles: 4.3.0 2038 | supports-color: 7.2.0 2039 | 2040 | chokidar@4.0.1: 2041 | dependencies: 2042 | readdirp: 4.0.2 2043 | 2044 | chrome-launcher@0.15.2: 2045 | dependencies: 2046 | '@types/node': 22.7.4 2047 | escape-string-regexp: 4.0.0 2048 | is-wsl: 2.2.0 2049 | lighthouse-logger: 1.4.2 2050 | transitivePeerDependencies: 2051 | - supports-color 2052 | 2053 | chromium-bidi@0.6.3(devtools-protocol@0.0.1312386): 2054 | dependencies: 2055 | devtools-protocol: 0.0.1312386 2056 | mitt: 3.0.1 2057 | urlpattern-polyfill: 10.0.0 2058 | zod: 3.23.8 2059 | 2060 | cli-cursor@3.1.0: 2061 | dependencies: 2062 | restore-cursor: 3.1.0 2063 | 2064 | cliui@8.0.1: 2065 | dependencies: 2066 | string-width: 4.2.3 2067 | strip-ansi: 6.0.1 2068 | wrap-ansi: 7.0.0 2069 | 2070 | clone@2.1.2: {} 2071 | 2072 | co-body@6.2.0: 2073 | dependencies: 2074 | '@hapi/bourne': 3.0.0 2075 | inflation: 2.1.0 2076 | qs: 6.13.0 2077 | raw-body: 2.5.2 2078 | type-is: 1.6.18 2079 | 2080 | co@4.6.0: {} 2081 | 2082 | color-convert@1.9.3: 2083 | dependencies: 2084 | color-name: 1.1.3 2085 | 2086 | color-convert@2.0.1: 2087 | dependencies: 2088 | color-name: 1.1.4 2089 | 2090 | color-name@1.1.3: {} 2091 | 2092 | color-name@1.1.4: {} 2093 | 2094 | comlink@4.4.1: {} 2095 | 2096 | command-line-args@5.2.1: 2097 | dependencies: 2098 | array-back: 3.1.0 2099 | find-replace: 3.0.0 2100 | lodash.camelcase: 4.3.0 2101 | typical: 4.0.0 2102 | 2103 | command-line-usage@7.0.3: 2104 | dependencies: 2105 | array-back: 6.2.2 2106 | chalk-template: 0.4.0 2107 | table-layout: 4.1.1 2108 | typical: 7.2.0 2109 | 2110 | content-disposition@0.5.4: 2111 | dependencies: 2112 | safe-buffer: 5.2.1 2113 | 2114 | content-type@1.0.5: {} 2115 | 2116 | convert-source-map@2.0.0: {} 2117 | 2118 | cookies@0.9.1: 2119 | dependencies: 2120 | depd: 2.0.0 2121 | keygrip: 1.1.0 2122 | 2123 | cross-spawn@7.0.3: 2124 | dependencies: 2125 | path-key: 3.1.1 2126 | shebang-command: 2.0.0 2127 | which: 2.0.2 2128 | 2129 | data-uri-to-buffer@6.0.2: {} 2130 | 2131 | debounce@1.2.1: {} 2132 | 2133 | debug@2.6.9: 2134 | dependencies: 2135 | ms: 2.0.0 2136 | 2137 | debug@3.2.7: 2138 | dependencies: 2139 | ms: 2.1.3 2140 | 2141 | debug@4.3.7: 2142 | dependencies: 2143 | ms: 2.1.3 2144 | 2145 | deep-equal@1.0.1: {} 2146 | 2147 | deepmerge@4.3.1: {} 2148 | 2149 | default-gateway@6.0.3: 2150 | dependencies: 2151 | execa: 5.1.1 2152 | 2153 | define-data-property@1.1.4: 2154 | dependencies: 2155 | es-define-property: 1.0.0 2156 | es-errors: 1.3.0 2157 | gopd: 1.0.1 2158 | 2159 | define-lazy-prop@2.0.0: {} 2160 | 2161 | degenerator@5.0.1: 2162 | dependencies: 2163 | ast-types: 0.13.4 2164 | escodegen: 2.1.0 2165 | esprima: 4.0.1 2166 | 2167 | delegates@1.0.0: {} 2168 | 2169 | depd@1.1.2: {} 2170 | 2171 | depd@2.0.0: {} 2172 | 2173 | dependency-graph@0.11.0: {} 2174 | 2175 | destroy@1.2.0: {} 2176 | 2177 | devtools-protocol@0.0.1312386: {} 2178 | 2179 | diff@5.2.0: {} 2180 | 2181 | dir-glob@3.0.1: 2182 | dependencies: 2183 | path-type: 4.0.0 2184 | 2185 | ee-first@1.1.1: {} 2186 | 2187 | emoji-regex@8.0.0: {} 2188 | 2189 | encodeurl@1.0.2: {} 2190 | 2191 | end-of-stream@1.4.4: 2192 | dependencies: 2193 | once: 1.4.0 2194 | 2195 | errorstacks@2.4.1: {} 2196 | 2197 | es-define-property@1.0.0: 2198 | dependencies: 2199 | get-intrinsic: 1.2.4 2200 | 2201 | es-errors@1.3.0: {} 2202 | 2203 | es-module-lexer@1.5.4: {} 2204 | 2205 | escalade@3.2.0: {} 2206 | 2207 | escape-html@1.0.3: {} 2208 | 2209 | escape-string-regexp@1.0.5: {} 2210 | 2211 | escape-string-regexp@4.0.0: {} 2212 | 2213 | escodegen@2.1.0: 2214 | dependencies: 2215 | esprima: 4.0.1 2216 | estraverse: 5.3.0 2217 | esutils: 2.0.3 2218 | optionalDependencies: 2219 | source-map: 0.6.1 2220 | 2221 | esprima@4.0.1: {} 2222 | 2223 | estraverse@5.3.0: {} 2224 | 2225 | estree-walker@2.0.2: {} 2226 | 2227 | esutils@2.0.3: {} 2228 | 2229 | etag@1.8.1: {} 2230 | 2231 | execa@5.1.1: 2232 | dependencies: 2233 | cross-spawn: 7.0.3 2234 | get-stream: 6.0.1 2235 | human-signals: 2.1.0 2236 | is-stream: 2.0.1 2237 | merge-stream: 2.0.0 2238 | npm-run-path: 4.0.1 2239 | onetime: 5.1.2 2240 | signal-exit: 3.0.7 2241 | strip-final-newline: 2.0.0 2242 | 2243 | extract-zip@2.0.1: 2244 | dependencies: 2245 | debug: 4.3.7 2246 | get-stream: 5.2.0 2247 | yauzl: 2.10.0 2248 | optionalDependencies: 2249 | '@types/yauzl': 2.10.3 2250 | transitivePeerDependencies: 2251 | - supports-color 2252 | 2253 | fast-fifo@1.3.2: {} 2254 | 2255 | fast-glob@3.3.2: 2256 | dependencies: 2257 | '@nodelib/fs.stat': 2.0.5 2258 | '@nodelib/fs.walk': 1.2.8 2259 | glob-parent: 5.1.2 2260 | merge2: 1.4.1 2261 | micromatch: 4.0.8 2262 | 2263 | fastq@1.17.1: 2264 | dependencies: 2265 | reusify: 1.0.4 2266 | 2267 | fd-slicer@1.1.0: 2268 | dependencies: 2269 | pend: 1.2.0 2270 | 2271 | fill-range@7.1.1: 2272 | dependencies: 2273 | to-regex-range: 5.0.1 2274 | 2275 | find-replace@3.0.0: 2276 | dependencies: 2277 | array-back: 3.1.0 2278 | 2279 | fresh@0.5.2: {} 2280 | 2281 | fs-extra@11.2.0: 2282 | dependencies: 2283 | graceful-fs: 4.2.11 2284 | jsonfile: 6.1.0 2285 | universalify: 2.0.1 2286 | 2287 | fsevents@2.3.3: 2288 | optional: true 2289 | 2290 | function-bind@1.1.2: {} 2291 | 2292 | get-caller-file@2.0.5: {} 2293 | 2294 | get-intrinsic@1.2.4: 2295 | dependencies: 2296 | es-errors: 1.3.0 2297 | function-bind: 1.1.2 2298 | has-proto: 1.0.3 2299 | has-symbols: 1.0.3 2300 | hasown: 2.0.2 2301 | 2302 | get-stream@5.2.0: 2303 | dependencies: 2304 | pump: 3.0.2 2305 | 2306 | get-stream@6.0.1: {} 2307 | 2308 | get-uri@6.0.3: 2309 | dependencies: 2310 | basic-ftp: 5.0.5 2311 | data-uri-to-buffer: 6.0.2 2312 | debug: 4.3.7 2313 | fs-extra: 11.2.0 2314 | transitivePeerDependencies: 2315 | - supports-color 2316 | 2317 | glob-parent@5.1.2: 2318 | dependencies: 2319 | is-glob: 4.0.3 2320 | 2321 | globby@11.1.0: 2322 | dependencies: 2323 | array-union: 2.1.0 2324 | dir-glob: 3.0.1 2325 | fast-glob: 3.3.2 2326 | ignore: 5.3.2 2327 | merge2: 1.4.1 2328 | slash: 3.0.0 2329 | 2330 | gopd@1.0.1: 2331 | dependencies: 2332 | get-intrinsic: 1.2.4 2333 | 2334 | graceful-fs@4.2.11: {} 2335 | 2336 | has-flag@3.0.0: {} 2337 | 2338 | has-flag@4.0.0: {} 2339 | 2340 | has-property-descriptors@1.0.2: 2341 | dependencies: 2342 | es-define-property: 1.0.0 2343 | 2344 | has-proto@1.0.3: {} 2345 | 2346 | has-symbols@1.0.3: {} 2347 | 2348 | has-tostringtag@1.0.2: 2349 | dependencies: 2350 | has-symbols: 1.0.3 2351 | 2352 | hasown@2.0.2: 2353 | dependencies: 2354 | function-bind: 1.1.2 2355 | 2356 | html-escaper@2.0.2: {} 2357 | 2358 | http-assert@1.5.0: 2359 | dependencies: 2360 | deep-equal: 1.0.1 2361 | http-errors: 1.8.1 2362 | 2363 | http-errors@1.6.3: 2364 | dependencies: 2365 | depd: 1.1.2 2366 | inherits: 2.0.3 2367 | setprototypeof: 1.1.0 2368 | statuses: 1.5.0 2369 | 2370 | http-errors@1.8.1: 2371 | dependencies: 2372 | depd: 1.1.2 2373 | inherits: 2.0.4 2374 | setprototypeof: 1.2.0 2375 | statuses: 1.5.0 2376 | toidentifier: 1.0.1 2377 | 2378 | http-errors@2.0.0: 2379 | dependencies: 2380 | depd: 2.0.0 2381 | inherits: 2.0.4 2382 | setprototypeof: 1.2.0 2383 | statuses: 2.0.1 2384 | toidentifier: 1.0.1 2385 | 2386 | http-proxy-agent@7.0.2: 2387 | dependencies: 2388 | agent-base: 7.1.1 2389 | debug: 4.3.7 2390 | transitivePeerDependencies: 2391 | - supports-color 2392 | 2393 | https-proxy-agent@7.0.5: 2394 | dependencies: 2395 | agent-base: 7.1.1 2396 | debug: 4.3.7 2397 | transitivePeerDependencies: 2398 | - supports-color 2399 | 2400 | human-signals@2.1.0: {} 2401 | 2402 | iconv-lite@0.4.24: 2403 | dependencies: 2404 | safer-buffer: 2.1.2 2405 | 2406 | ieee754@1.2.1: {} 2407 | 2408 | ignore@5.3.2: {} 2409 | 2410 | inflation@2.1.0: {} 2411 | 2412 | inherits@2.0.3: {} 2413 | 2414 | inherits@2.0.4: {} 2415 | 2416 | internal-ip@6.2.0: 2417 | dependencies: 2418 | default-gateway: 6.0.3 2419 | ipaddr.js: 1.9.1 2420 | is-ip: 3.1.0 2421 | p-event: 4.2.0 2422 | 2423 | ip-address@9.0.5: 2424 | dependencies: 2425 | jsbn: 1.1.0 2426 | sprintf-js: 1.1.3 2427 | 2428 | ip-regex@4.3.0: {} 2429 | 2430 | ipaddr.js@1.9.1: {} 2431 | 2432 | is-core-module@2.15.1: 2433 | dependencies: 2434 | hasown: 2.0.2 2435 | 2436 | is-docker@2.2.1: {} 2437 | 2438 | is-extglob@2.1.1: {} 2439 | 2440 | is-fullwidth-code-point@3.0.0: {} 2441 | 2442 | is-generator-function@1.0.10: 2443 | dependencies: 2444 | has-tostringtag: 1.0.2 2445 | 2446 | is-glob@4.0.3: 2447 | dependencies: 2448 | is-extglob: 2.1.1 2449 | 2450 | is-ip@3.1.0: 2451 | dependencies: 2452 | ip-regex: 4.3.0 2453 | 2454 | is-module@1.0.0: {} 2455 | 2456 | is-number@7.0.0: {} 2457 | 2458 | is-stream@2.0.1: {} 2459 | 2460 | is-wsl@2.2.0: 2461 | dependencies: 2462 | is-docker: 2.2.1 2463 | 2464 | isbinaryfile@5.0.2: {} 2465 | 2466 | isexe@2.0.0: {} 2467 | 2468 | istanbul-lib-coverage@3.2.2: {} 2469 | 2470 | istanbul-lib-report@3.0.1: 2471 | dependencies: 2472 | istanbul-lib-coverage: 3.2.2 2473 | make-dir: 4.0.0 2474 | supports-color: 7.2.0 2475 | 2476 | istanbul-reports@3.1.7: 2477 | dependencies: 2478 | html-escaper: 2.0.2 2479 | istanbul-lib-report: 3.0.1 2480 | 2481 | jasmine-core@4.6.1: {} 2482 | 2483 | js-tokens@4.0.0: {} 2484 | 2485 | jsbn@1.1.0: {} 2486 | 2487 | jsonc-parser@3.3.1: {} 2488 | 2489 | jsonfile@6.1.0: 2490 | dependencies: 2491 | universalify: 2.0.1 2492 | optionalDependencies: 2493 | graceful-fs: 4.2.11 2494 | 2495 | keygrip@1.1.0: 2496 | dependencies: 2497 | tsscmp: 1.0.6 2498 | 2499 | koa-compose@4.1.0: {} 2500 | 2501 | koa-convert@2.0.0: 2502 | dependencies: 2503 | co: 4.6.0 2504 | koa-compose: 4.1.0 2505 | 2506 | koa-etag@4.0.0: 2507 | dependencies: 2508 | etag: 1.8.1 2509 | 2510 | koa-send@5.0.1: 2511 | dependencies: 2512 | debug: 4.3.7 2513 | http-errors: 1.8.1 2514 | resolve-path: 1.4.0 2515 | transitivePeerDependencies: 2516 | - supports-color 2517 | 2518 | koa-static@5.0.0: 2519 | dependencies: 2520 | debug: 3.2.7 2521 | koa-send: 5.0.1 2522 | transitivePeerDependencies: 2523 | - supports-color 2524 | 2525 | koa@2.15.3: 2526 | dependencies: 2527 | accepts: 1.3.8 2528 | cache-content-type: 1.0.1 2529 | content-disposition: 0.5.4 2530 | content-type: 1.0.5 2531 | cookies: 0.9.1 2532 | debug: 4.3.7 2533 | delegates: 1.0.0 2534 | depd: 2.0.0 2535 | destroy: 1.2.0 2536 | encodeurl: 1.0.2 2537 | escape-html: 1.0.3 2538 | fresh: 0.5.2 2539 | http-assert: 1.5.0 2540 | http-errors: 1.8.1 2541 | is-generator-function: 1.0.10 2542 | koa-compose: 4.1.0 2543 | koa-convert: 2.0.0 2544 | on-finished: 2.4.1 2545 | only: 0.0.2 2546 | parseurl: 1.3.3 2547 | statuses: 1.5.0 2548 | type-is: 1.6.18 2549 | vary: 1.1.2 2550 | transitivePeerDependencies: 2551 | - supports-color 2552 | 2553 | lighthouse-logger@1.4.2: 2554 | dependencies: 2555 | debug: 2.6.9 2556 | marky: 1.2.5 2557 | transitivePeerDependencies: 2558 | - supports-color 2559 | 2560 | lodash.camelcase@4.3.0: {} 2561 | 2562 | lodash@4.17.21: {} 2563 | 2564 | log-update@4.0.0: 2565 | dependencies: 2566 | ansi-escapes: 4.3.2 2567 | cli-cursor: 3.1.0 2568 | slice-ansi: 4.0.0 2569 | wrap-ansi: 6.2.0 2570 | 2571 | lru-cache@7.18.3: {} 2572 | 2573 | lru-cache@8.0.5: {} 2574 | 2575 | lunr@2.3.9: {} 2576 | 2577 | make-dir@4.0.0: 2578 | dependencies: 2579 | semver: 7.6.3 2580 | 2581 | marked@4.3.0: {} 2582 | 2583 | marky@1.2.5: {} 2584 | 2585 | media-typer@0.3.0: {} 2586 | 2587 | merge-stream@2.0.0: {} 2588 | 2589 | merge2@1.4.1: {} 2590 | 2591 | micromatch@4.0.8: 2592 | dependencies: 2593 | braces: 3.0.3 2594 | picomatch: 2.3.1 2595 | 2596 | mime-db@1.52.0: {} 2597 | 2598 | mime-types@2.1.35: 2599 | dependencies: 2600 | mime-db: 1.52.0 2601 | 2602 | mimic-fn@2.1.0: {} 2603 | 2604 | minimatch@9.0.5: 2605 | dependencies: 2606 | brace-expansion: 2.0.1 2607 | 2608 | minimist@1.2.8: {} 2609 | 2610 | mitt@3.0.1: {} 2611 | 2612 | mkdirp@0.5.6: 2613 | dependencies: 2614 | minimist: 1.2.8 2615 | 2616 | mkdirp@1.0.4: {} 2617 | 2618 | monaco-editor@0.34.1: {} 2619 | 2620 | ms@2.0.0: {} 2621 | 2622 | ms@2.1.3: {} 2623 | 2624 | nanocolors@0.2.13: {} 2625 | 2626 | nanoid@3.3.7: {} 2627 | 2628 | negotiator@0.6.3: {} 2629 | 2630 | netmask@2.0.2: {} 2631 | 2632 | npm-run-path@4.0.1: 2633 | dependencies: 2634 | path-key: 3.1.1 2635 | 2636 | object-inspect@1.13.2: {} 2637 | 2638 | on-finished@2.4.1: 2639 | dependencies: 2640 | ee-first: 1.1.1 2641 | 2642 | once@1.4.0: 2643 | dependencies: 2644 | wrappy: 1.0.2 2645 | 2646 | onetime@5.1.2: 2647 | dependencies: 2648 | mimic-fn: 2.1.0 2649 | 2650 | only@0.0.2: {} 2651 | 2652 | open@8.4.2: 2653 | dependencies: 2654 | define-lazy-prop: 2.0.0 2655 | is-docker: 2.2.1 2656 | is-wsl: 2.2.0 2657 | 2658 | p-event@4.2.0: 2659 | dependencies: 2660 | p-timeout: 3.2.0 2661 | 2662 | p-finally@1.0.0: {} 2663 | 2664 | p-timeout@3.2.0: 2665 | dependencies: 2666 | p-finally: 1.0.0 2667 | 2668 | pac-proxy-agent@7.0.2: 2669 | dependencies: 2670 | '@tootallnate/quickjs-emscripten': 0.23.0 2671 | agent-base: 7.1.1 2672 | debug: 4.3.7 2673 | get-uri: 6.0.3 2674 | http-proxy-agent: 7.0.2 2675 | https-proxy-agent: 7.0.5 2676 | pac-resolver: 7.0.1 2677 | socks-proxy-agent: 8.0.4 2678 | transitivePeerDependencies: 2679 | - supports-color 2680 | 2681 | pac-resolver@7.0.1: 2682 | dependencies: 2683 | degenerator: 5.0.1 2684 | netmask: 2.0.2 2685 | 2686 | parse5@6.0.1: {} 2687 | 2688 | parseurl@1.3.3: {} 2689 | 2690 | path-is-absolute@1.0.1: {} 2691 | 2692 | path-key@3.1.1: {} 2693 | 2694 | path-parse@1.0.7: {} 2695 | 2696 | path-type@4.0.0: {} 2697 | 2698 | pend@1.2.0: {} 2699 | 2700 | picocolors@1.1.0: {} 2701 | 2702 | picomatch@2.3.1: {} 2703 | 2704 | portfinder@1.0.32: 2705 | dependencies: 2706 | async: 2.6.4 2707 | debug: 3.2.7 2708 | mkdirp: 0.5.6 2709 | transitivePeerDependencies: 2710 | - supports-color 2711 | 2712 | progress@2.0.3: {} 2713 | 2714 | proxy-agent@6.4.0: 2715 | dependencies: 2716 | agent-base: 7.1.1 2717 | debug: 4.3.7 2718 | http-proxy-agent: 7.0.2 2719 | https-proxy-agent: 7.0.5 2720 | lru-cache: 7.18.3 2721 | pac-proxy-agent: 7.0.2 2722 | proxy-from-env: 1.1.0 2723 | socks-proxy-agent: 8.0.4 2724 | transitivePeerDependencies: 2725 | - supports-color 2726 | 2727 | proxy-from-env@1.1.0: {} 2728 | 2729 | pump@3.0.2: 2730 | dependencies: 2731 | end-of-stream: 1.4.4 2732 | once: 1.4.0 2733 | 2734 | punycode@2.3.1: {} 2735 | 2736 | puppeteer-core@22.15.0: 2737 | dependencies: 2738 | '@puppeteer/browsers': 2.3.0 2739 | chromium-bidi: 0.6.3(devtools-protocol@0.0.1312386) 2740 | debug: 4.3.7 2741 | devtools-protocol: 0.0.1312386 2742 | ws: 8.18.0 2743 | transitivePeerDependencies: 2744 | - bufferutil 2745 | - supports-color 2746 | - utf-8-validate 2747 | 2748 | qs@6.13.0: 2749 | dependencies: 2750 | side-channel: 1.0.6 2751 | 2752 | queue-microtask@1.2.3: {} 2753 | 2754 | queue-tick@1.0.1: {} 2755 | 2756 | raw-body@2.5.2: 2757 | dependencies: 2758 | bytes: 3.1.2 2759 | http-errors: 2.0.0 2760 | iconv-lite: 0.4.24 2761 | unpipe: 1.0.0 2762 | 2763 | readdirp@4.0.2: {} 2764 | 2765 | require-directory@2.1.1: {} 2766 | 2767 | resolve-path@1.4.0: 2768 | dependencies: 2769 | http-errors: 1.6.3 2770 | path-is-absolute: 1.0.1 2771 | 2772 | resolve@1.22.8: 2773 | dependencies: 2774 | is-core-module: 2.15.1 2775 | path-parse: 1.0.7 2776 | supports-preserve-symlinks-flag: 1.0.0 2777 | 2778 | restore-cursor@3.1.0: 2779 | dependencies: 2780 | onetime: 5.1.2 2781 | signal-exit: 3.0.7 2782 | 2783 | reusify@1.0.4: {} 2784 | 2785 | rollup@4.24.0: 2786 | dependencies: 2787 | '@types/estree': 1.0.6 2788 | optionalDependencies: 2789 | '@rollup/rollup-android-arm-eabi': 4.24.0 2790 | '@rollup/rollup-android-arm64': 4.24.0 2791 | '@rollup/rollup-darwin-arm64': 4.24.0 2792 | '@rollup/rollup-darwin-x64': 4.24.0 2793 | '@rollup/rollup-linux-arm-gnueabihf': 4.24.0 2794 | '@rollup/rollup-linux-arm-musleabihf': 4.24.0 2795 | '@rollup/rollup-linux-arm64-gnu': 4.24.0 2796 | '@rollup/rollup-linux-arm64-musl': 4.24.0 2797 | '@rollup/rollup-linux-powerpc64le-gnu': 4.24.0 2798 | '@rollup/rollup-linux-riscv64-gnu': 4.24.0 2799 | '@rollup/rollup-linux-s390x-gnu': 4.24.0 2800 | '@rollup/rollup-linux-x64-gnu': 4.24.0 2801 | '@rollup/rollup-linux-x64-musl': 4.24.0 2802 | '@rollup/rollup-win32-arm64-msvc': 4.24.0 2803 | '@rollup/rollup-win32-ia32-msvc': 4.24.0 2804 | '@rollup/rollup-win32-x64-msvc': 4.24.0 2805 | fsevents: 2.3.3 2806 | 2807 | run-parallel@1.2.0: 2808 | dependencies: 2809 | queue-microtask: 1.2.3 2810 | 2811 | safe-buffer@5.2.1: {} 2812 | 2813 | safer-buffer@2.1.2: {} 2814 | 2815 | semver@7.6.3: {} 2816 | 2817 | set-function-length@1.2.2: 2818 | dependencies: 2819 | define-data-property: 1.1.4 2820 | es-errors: 1.3.0 2821 | function-bind: 1.1.2 2822 | get-intrinsic: 1.2.4 2823 | gopd: 1.0.1 2824 | has-property-descriptors: 1.0.2 2825 | 2826 | setprototypeof@1.1.0: {} 2827 | 2828 | setprototypeof@1.2.0: {} 2829 | 2830 | shebang-command@2.0.0: 2831 | dependencies: 2832 | shebang-regex: 3.0.0 2833 | 2834 | shebang-regex@3.0.0: {} 2835 | 2836 | shiki@0.14.7: 2837 | dependencies: 2838 | ansi-sequence-parser: 1.1.1 2839 | jsonc-parser: 3.3.1 2840 | vscode-oniguruma: 1.7.0 2841 | vscode-textmate: 8.0.0 2842 | 2843 | side-channel@1.0.6: 2844 | dependencies: 2845 | call-bind: 1.0.7 2846 | es-errors: 1.3.0 2847 | get-intrinsic: 1.2.4 2848 | object-inspect: 1.13.2 2849 | 2850 | signal-exit@3.0.7: {} 2851 | 2852 | slash@3.0.0: {} 2853 | 2854 | slice-ansi@4.0.0: 2855 | dependencies: 2856 | ansi-styles: 4.3.0 2857 | astral-regex: 2.0.0 2858 | is-fullwidth-code-point: 3.0.0 2859 | 2860 | smart-buffer@4.2.0: {} 2861 | 2862 | socks-proxy-agent@8.0.4: 2863 | dependencies: 2864 | agent-base: 7.1.1 2865 | debug: 4.3.7 2866 | socks: 2.8.3 2867 | transitivePeerDependencies: 2868 | - supports-color 2869 | 2870 | socks@2.8.3: 2871 | dependencies: 2872 | ip-address: 9.0.5 2873 | smart-buffer: 4.2.0 2874 | 2875 | source-map@0.6.1: 2876 | optional: true 2877 | 2878 | source-map@0.7.4: {} 2879 | 2880 | sprintf-js@1.1.3: {} 2881 | 2882 | statuses@1.5.0: {} 2883 | 2884 | statuses@2.0.1: {} 2885 | 2886 | streamx@2.20.1: 2887 | dependencies: 2888 | fast-fifo: 1.3.2 2889 | queue-tick: 1.0.1 2890 | text-decoder: 1.2.0 2891 | optionalDependencies: 2892 | bare-events: 2.5.0 2893 | 2894 | string-width@4.2.3: 2895 | dependencies: 2896 | emoji-regex: 8.0.0 2897 | is-fullwidth-code-point: 3.0.0 2898 | strip-ansi: 6.0.1 2899 | 2900 | strip-ansi@6.0.1: 2901 | dependencies: 2902 | ansi-regex: 5.0.1 2903 | 2904 | strip-final-newline@2.0.0: {} 2905 | 2906 | supports-color@5.5.0: 2907 | dependencies: 2908 | has-flag: 3.0.0 2909 | 2910 | supports-color@7.2.0: 2911 | dependencies: 2912 | has-flag: 4.0.0 2913 | 2914 | supports-preserve-symlinks-flag@1.0.0: {} 2915 | 2916 | table-layout@4.1.1: 2917 | dependencies: 2918 | array-back: 6.2.2 2919 | wordwrapjs: 5.1.0 2920 | 2921 | tar-fs@3.0.6: 2922 | dependencies: 2923 | pump: 3.0.2 2924 | tar-stream: 3.1.7 2925 | optionalDependencies: 2926 | bare-fs: 2.3.5 2927 | bare-path: 2.1.3 2928 | 2929 | tar-stream@3.1.7: 2930 | dependencies: 2931 | b4a: 1.6.7 2932 | fast-fifo: 1.3.2 2933 | streamx: 2.20.1 2934 | 2935 | text-decoder@1.2.0: 2936 | dependencies: 2937 | b4a: 1.6.7 2938 | 2939 | through@2.3.8: {} 2940 | 2941 | to-regex-range@5.0.1: 2942 | dependencies: 2943 | is-number: 7.0.0 2944 | 2945 | toidentifier@1.0.1: {} 2946 | 2947 | tr46@5.0.0: 2948 | dependencies: 2949 | punycode: 2.3.1 2950 | 2951 | tslib@2.7.0: {} 2952 | 2953 | tsscmp@1.0.6: {} 2954 | 2955 | type-fest@0.21.3: {} 2956 | 2957 | type-is@1.6.18: 2958 | dependencies: 2959 | media-typer: 0.3.0 2960 | mime-types: 2.1.35 2961 | 2962 | typedoc@0.25.13(typescript@5.6.2): 2963 | dependencies: 2964 | lunr: 2.3.9 2965 | marked: 4.3.0 2966 | minimatch: 9.0.5 2967 | shiki: 0.14.7 2968 | typescript: 5.6.2 2969 | 2970 | typescript@5.6.2: {} 2971 | 2972 | typical@4.0.0: {} 2973 | 2974 | typical@7.2.0: {} 2975 | 2976 | unbzip2-stream@1.4.3: 2977 | dependencies: 2978 | buffer: 5.7.1 2979 | through: 2.3.8 2980 | 2981 | undici-types@6.19.8: {} 2982 | 2983 | universalify@2.0.1: {} 2984 | 2985 | unpipe@1.0.0: {} 2986 | 2987 | urlpattern-polyfill@10.0.0: {} 2988 | 2989 | v8-to-istanbul@9.3.0: 2990 | dependencies: 2991 | '@jridgewell/trace-mapping': 0.3.25 2992 | '@types/istanbul-lib-coverage': 2.0.6 2993 | convert-source-map: 2.0.0 2994 | 2995 | vary@1.1.2: {} 2996 | 2997 | vscode-oniguruma@1.7.0: {} 2998 | 2999 | vscode-textmate@8.0.0: {} 3000 | 3001 | web-test-runner-jasmine@0.0.6: 3002 | dependencies: 3003 | '@web/test-runner': 0.18.3 3004 | transitivePeerDependencies: 3005 | - bufferutil 3006 | - supports-color 3007 | - utf-8-validate 3008 | 3009 | webidl-conversions@7.0.0: {} 3010 | 3011 | whatwg-url@14.0.0: 3012 | dependencies: 3013 | tr46: 5.0.0 3014 | webidl-conversions: 7.0.0 3015 | 3016 | which@2.0.2: 3017 | dependencies: 3018 | isexe: 2.0.0 3019 | 3020 | wordwrapjs@5.1.0: {} 3021 | 3022 | wrap-ansi@6.2.0: 3023 | dependencies: 3024 | ansi-styles: 4.3.0 3025 | string-width: 4.2.3 3026 | strip-ansi: 6.0.1 3027 | 3028 | wrap-ansi@7.0.0: 3029 | dependencies: 3030 | ansi-styles: 4.3.0 3031 | string-width: 4.2.3 3032 | strip-ansi: 6.0.1 3033 | 3034 | wrappy@1.0.2: {} 3035 | 3036 | ws@7.5.10: {} 3037 | 3038 | ws@8.18.0: {} 3039 | 3040 | y18n@5.0.8: {} 3041 | 3042 | yargs-parser@21.1.1: {} 3043 | 3044 | yargs@17.7.2: 3045 | dependencies: 3046 | cliui: 8.0.1 3047 | escalade: 3.2.0 3048 | get-caller-file: 2.0.5 3049 | require-directory: 2.1.1 3050 | string-width: 4.2.3 3051 | y18n: 5.0.8 3052 | yargs-parser: 21.1.1 3053 | 3054 | yauzl@2.10.0: 3055 | dependencies: 3056 | buffer-crc32: 0.2.13 3057 | fd-slicer: 1.1.0 3058 | 3059 | ylru@1.4.0: {} 3060 | 3061 | zod@3.23.8: {} 3062 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | - "test" 3 | - "wa-sqlite" -------------------------------------------------------------------------------- /test/lib/lib.ts: -------------------------------------------------------------------------------- 1 | import * as SqliteConstants from '@livestore/wa-sqlite/src/sqlite-constants.js' 2 | 3 | export type PreparedBindValues = Record 4 | 5 | export interface PreparedStatement { 6 | execute(bindValues: PreparedBindValues | undefined, options?: { onRowsChanged?: (rowsChanged: number) => void }): void 7 | select(bindValues: PreparedBindValues | undefined): ReadonlyArray 8 | finalize(): void 9 | sql: string 10 | } 11 | 12 | export type SynchronousDatabase = { 13 | _tag: 'SynchronousDatabase' 14 | prepare(queryStr: string): PreparedStatement 15 | execute( 16 | queryStr: string, 17 | bindValues?: PreparedBindValues | undefined, 18 | options?: { onRowsChanged?: (rowsChanged: number) => void }, 19 | ): void 20 | select(queryStr: string, bindValues?: PreparedBindValues | undefined): ReadonlyArray 21 | export(): Uint8Array 22 | close(): void 23 | } 24 | 25 | export class SqliteError extends Error { 26 | constructor({ query, code, cause }: { query: { sql: string; bindValues: PreparedBindValues }, code: number, cause: any }) { 27 | super(`SQL error: ${query.sql}`) 28 | } 29 | } 30 | 31 | import { exportDb } from './sqlite-utils.ts' 32 | 33 | export const makeSynchronousDatabase = (sqlite3: SQLiteAPI, db: number): SynchronousDatabase => { 34 | const preparedStmts: PreparedStatement[] = [] 35 | 36 | const syncDb: SynchronousDatabase = { 37 | _tag: 'SynchronousDatabase', 38 | prepare: (queryStr) => { 39 | try { 40 | const stmts = sqlite3.statements(db, queryStr.trim(), { unscoped: true }) 41 | 42 | let isFinalized = false 43 | 44 | const preparedStmt = { 45 | execute: (bindValues, options) => { 46 | for (const stmt of stmts) { 47 | if (bindValues !== undefined && Object.keys(bindValues).length > 0) { 48 | sqlite3.bind_collection(stmt, bindValues as any) 49 | } 50 | 51 | try { 52 | sqlite3.step(stmt) 53 | } finally { 54 | if (options?.onRowsChanged) { 55 | options.onRowsChanged(sqlite3.changes(db)) 56 | } 57 | 58 | sqlite3.reset(stmt) // Reset is needed for next execution 59 | } 60 | } 61 | }, 62 | select: (bindValues: PreparedBindValues) => { 63 | if (stmts.length !== 1) { 64 | throw new SqliteError({ 65 | query: { bindValues, sql: queryStr }, 66 | code: -1, 67 | cause: 'Expected only one statement when using `select`', 68 | }) 69 | } 70 | 71 | const stmt = stmts[0]! 72 | 73 | if (bindValues !== undefined && Object.keys(bindValues).length > 0) { 74 | sqlite3.bind_collection(stmt, bindValues as any) 75 | } 76 | 77 | const results: T[] = [] 78 | 79 | try { 80 | // NOTE `column_names` only works for `SELECT` statements, ignoring other statements for now 81 | let columns: string[] | undefined = undefined 82 | try { 83 | columns = sqlite3.column_names(stmt) 84 | } catch (_e) {} 85 | 86 | while (sqlite3.step(stmt) === SqliteConstants.SQLITE_ROW) { 87 | if (columns !== undefined) { 88 | const obj: { [key: string]: any } = {} 89 | for (let i = 0; i < columns.length; i++) { 90 | obj[columns[i]!] = sqlite3.column(stmt, i) 91 | } 92 | results.push(obj as unknown as T) 93 | } 94 | } 95 | } catch (e) { 96 | throw new SqliteError({ 97 | query: { bindValues, sql: queryStr }, 98 | code: (e as any).code, 99 | cause: e, 100 | }) 101 | } finally { 102 | // reset the cached statement so we can use it again in the future 103 | sqlite3.reset(stmt) 104 | } 105 | 106 | return results 107 | }, 108 | finalize: () => { 109 | // Avoid double finalization which leads to a crash 110 | if (isFinalized) { 111 | return 112 | } 113 | 114 | isFinalized = true 115 | 116 | for (const stmt of stmts) { 117 | sqlite3.finalize(stmt) 118 | } 119 | }, 120 | sql: queryStr, 121 | } satisfies PreparedStatement 122 | 123 | preparedStmts.push(preparedStmt) 124 | 125 | return preparedStmt 126 | } catch (e) { 127 | throw new SqliteError({ 128 | query: { sql: queryStr, bindValues: {} }, 129 | code: (e as any).code, 130 | cause: e, 131 | }) 132 | } 133 | }, 134 | export: () => exportDb(sqlite3, db), 135 | execute: (queryStr, bindValues, options) => { 136 | const stmt = syncDb.prepare(queryStr) 137 | stmt.execute(bindValues, options) 138 | stmt.finalize() 139 | }, 140 | select: (queryStr, bindValues) => { 141 | const stmt = syncDb.prepare(queryStr) 142 | const results = stmt.select(bindValues) 143 | stmt.finalize() 144 | return results as ReadonlyArray 145 | }, 146 | close: () => { 147 | for (const stmt of preparedStmts) { 148 | stmt.finalize() 149 | } 150 | return sqlite3.close(db) 151 | }, 152 | } satisfies SynchronousDatabase 153 | 154 | return syncDb 155 | } 156 | -------------------------------------------------------------------------------- /test/lib/sqlite-utils.ts: -------------------------------------------------------------------------------- 1 | import * as WaSqlite from '@livestore/wa-sqlite' 2 | import WaSqliteFactory from '@livestore/wa-sqlite/dist/wa-sqlite.mjs' 3 | import { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 4 | 5 | export * as SqliteConstants from '@livestore/wa-sqlite/src/sqlite-constants.js' 6 | export { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 7 | // export { AccessHandlePoolVFS } from '@livestore/wa-sqlite/src/examples/AccessHandlePoolVFS.js' 8 | // export { AccessHandlePoolVFS } from './wa-sqlite/AccessHandlePoolVFS.js' 9 | 10 | export const loadSqlite3Wasm = async () => { 11 | const module = await WaSqliteFactory() 12 | // https://github.com/rhashimoto/wa-sqlite/issues/143#issuecomment-1899060056 13 | // module._free(module._malloc(10_000 * 4096 + 65_536)) 14 | const sqlite3 = WaSqlite.Factory(module) 15 | // @ts-expect-error TODO fix types 16 | sqlite3.module = module 17 | return sqlite3 18 | } 19 | 20 | export const importBytesToDb = ( 21 | sqlite3: WaSqlite.SQLiteAPI, 22 | db: number, 23 | bytes: Uint8Array, 24 | readOnly: boolean = false, 25 | ) => { 26 | // https://www.sqlite.org/c3ref/c_deserialize_freeonclose.html 27 | // #define SQLITE_DESERIALIZE_FREEONCLOSE 1 /* Call sqlite3_free() on close */ 28 | // #define SQLITE_DESERIALIZE_RESIZEABLE 2 /* Resize using sqlite3_realloc64() */ 29 | // #define SQLITE_DESERIALIZE_READONLY 4 /* Database is read-only */ 30 | const FREE_ON_CLOSE = 1 31 | const RESIZEABLE = 2 32 | 33 | if (readOnly === true) { 34 | sqlite3.deserialize(db, 'main', bytes, bytes.length, bytes.length, FREE_ON_CLOSE | RESIZEABLE) 35 | } else { 36 | const tmpDb = makeInMemoryDb(sqlite3) 37 | // TODO find a way to do this more efficiently with sqlite to avoid either of the deserialize + backup call 38 | // Maybe this can be done via the VFS API 39 | sqlite3.deserialize(tmpDb, 'main', bytes, bytes.length, bytes.length, FREE_ON_CLOSE | RESIZEABLE) 40 | sqlite3.backup(db, 'main', tmpDb, 'main') 41 | sqlite3.close(tmpDb) 42 | } 43 | } 44 | 45 | export const makeInMemoryDb = (sqlite3: WaSqlite.SQLiteAPI) => { 46 | if (sqlite3.vfs_registered.has('memory-vfs') === false) { 47 | // @ts-expect-error TODO fix types 48 | const vfs = new MemoryVFS('memory-vfs', (sqlite3 as any).module) 49 | 50 | // @ts-expect-error TODO fix types 51 | sqlite3.vfs_register(vfs, false) 52 | } 53 | 54 | const db = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 55 | 56 | return db 57 | } 58 | 59 | export const exportDb = (sqlite3: WaSqlite.SQLiteAPI, db: number) => { 60 | return sqlite3.serialize(db, 'main') 61 | } 62 | -------------------------------------------------------------------------------- /test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-scripts", 3 | "private": true, 4 | "dependencies": { 5 | "@livestore/wa-sqlite": "workspace:*" 6 | } 7 | } -------------------------------------------------------------------------------- /test/session-ext.ts: -------------------------------------------------------------------------------- 1 | import { makeSynchronousDatabase } from "./lib/lib" 2 | import WaSqliteFactory from '@livestore/wa-sqlite/dist/wa-sqlite.node.mjs' 3 | import * as WaSqlite from '@livestore/wa-sqlite' 4 | import { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 5 | 6 | const main = async () => { 7 | const module = await WaSqliteFactory() 8 | const sqlite3 = WaSqlite.Factory(module) 9 | 10 | if (sqlite3.vfs_registered.has('memory-vfs') === false) { 11 | // @ts-expect-error TODO fix types 12 | const vfs = new MemoryVFS('memory-vfs', (sqlite3 as any).module) 13 | 14 | // @ts-expect-error TODO fix types 15 | sqlite3.vfs_register(vfs, false) 16 | } 17 | 18 | const db = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 19 | 20 | const syncDb = makeSynchronousDatabase(sqlite3, db) 21 | 22 | const db2 = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 23 | const syncDb2 = makeSynchronousDatabase(sqlite3, db2) 24 | 25 | syncDb.execute('CREATE TABLE todo (id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, group_id INTEGER, counter INTEGER)') 26 | 27 | syncDb.execute('INSERT INTO todo (title, group_id, counter) VALUES (?, ?, ?)', ['initial todo', 1, 0]) 28 | 29 | const groupIds = [1, 2, 3] 30 | type GroupId = (typeof groupIds)[number] 31 | 32 | const newSession = (groupId: GroupId) => { 33 | const session = sqlite3.session_create(db, 'main') 34 | sqlite3.session_attach(session, null) 35 | // sqlite3.session_enable(session, false) 36 | return session 37 | } 38 | 39 | const sessions = Object.fromEntries(groupIds.map(groupId => [groupId, newSession(groupId)])) 40 | 41 | const newTodo = (groupId: GroupId) => { 42 | const session = sessions[groupId] 43 | 44 | sqlite3.session_enable(session, true) 45 | syncDb.execute('INSERT INTO todo (title, group_id, counter) VALUES (?, ?, ?)', [randomTodo(), groupId, 0]) 46 | sqlite3.session_enable(session, false) 47 | } 48 | 49 | const rewindSession = (groupId: GroupId) => { 50 | console.log('rewinding session', groupId) 51 | const session = sessions[groupId] 52 | 53 | sqlite3.session_enable(session, true) 54 | const changeset = sqlite3.session_changeset(session) 55 | // This works but I want to try the other path via `changeset_invert` 56 | // const invertedChangeset = sqlite3.session_changeset_inverted(session) 57 | 58 | 59 | // const restoredChangesetIter = sqlite3.changeset_start(changeset.changeset) 60 | // sqlite3.changeset_finalize(restoredChangesetIter) 61 | const invertedChangeset = { changeset: sqlite3.changeset_invert(new Uint8Array(changeset.changeset.slice())) } 62 | 63 | sqlite3.changeset_apply(db, invertedChangeset.changeset) 64 | } 65 | 66 | const result = syncDb.select('SELECT * FROM todo') 67 | console.log('initial result', result) 68 | 69 | for (const groupId of groupIds) { 70 | newTodo(groupId) 71 | newTodo(groupId) 72 | } 73 | 74 | console.log('after inserts', syncDb.select('SELECT * FROM todo')) 75 | 76 | // extra update bound to session 3 77 | const session3 = sessions[3] 78 | sqlite3.session_enable(session3, true) 79 | syncDb.execute('UPDATE todo SET title = ?, counter = counter + 3 WHERE id = ?', ['updated todo in session 3', 1]) 80 | sqlite3.session_enable(session3, false) 81 | 82 | // extra update bound to session 2 83 | const session2 = sessions[2] 84 | sqlite3.session_enable(session2, true) 85 | syncDb.execute('UPDATE todo SET title = ?, counter = counter + 1 WHERE id = ?', ['updated todo in session 2', 1]) 86 | sqlite3.session_enable(session2, false) 87 | 88 | for (const groupId of groupIds) { 89 | rewindSession(groupId) 90 | console.log(`after rewind ${groupId}`, syncDb.select('SELECT * FROM todo')) 91 | } 92 | 93 | for (const groupId of groupIds) { 94 | sqlite3.session_delete(sessions[groupId]) 95 | } 96 | 97 | sqlite3.close(db) 98 | 99 | } 100 | 101 | main().catch(console.error) 102 | 103 | const randomTodo = () => `${randomVerb()} ${randomThing()}` 104 | 105 | const randomVerb = () => { 106 | const verbs = ['Buy', 'Clean', 'Cook', 'Fix', 'Learn', 'Make', 'Organize', 'Plan', 'Read', 'Write', 'Call', 'Email', 'Meet', 'Visit', 'Attend', 'Prepare', 'Review', 'Study', 'Practice', 'Exercise', 'Paint', 'Draw', 'Create', 'Design', 'Build', 'Repair', 'Update', 'Finish', 'Start', 'Schedule']; 107 | return verbs[Math.floor(Math.random() * verbs.length)]; 108 | } 109 | 110 | const randomThing = () => { 111 | const things = ['groceries', 'car', 'dinner', 'leaky faucet', 'new skill', 'cake', 'closet', 'vacation', 'book', 'essay', 'friend', 'client', 'colleague', 'grandma', 'conference', 'presentation', 'report', 'exam', 'instrument', 'workout routine', 'bedroom', 'portrait', 'website', 'furniture', 'birdhouse', 'bike', 'software', 'project', 'business plan', 'appointment']; 112 | return things[Math.floor(Math.random() * things.length)]; 113 | } -------------------------------------------------------------------------------- /test/session-ext2.ts: -------------------------------------------------------------------------------- 1 | import { makeSynchronousDatabase } from "./lib/lib" 2 | import WaSqliteFactory from '@livestore/wa-sqlite/dist/wa-sqlite.node.mjs' 3 | import * as WaSqlite from '@livestore/wa-sqlite' 4 | import { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 5 | 6 | const main = async () => { 7 | const module = await WaSqliteFactory() 8 | const sqlite3 = WaSqlite.Factory(module) 9 | 10 | if (sqlite3.vfs_registered.has('memory-vfs') === false) { 11 | // @ts-expect-error TODO fix types 12 | const vfs = new MemoryVFS('memory-vfs', (sqlite3 as any).module) 13 | 14 | // @ts-expect-error TODO fix types 15 | sqlite3.vfs_register(vfs, false) 16 | } 17 | 18 | const db = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 19 | 20 | const syncDb = makeSynchronousDatabase(sqlite3, db) 21 | 22 | syncDb.execute('CREATE TABLE todo (id TEXT PRIMARY KEY, title TEXT, completed INTEGER)') 23 | 24 | const session = sqlite3.session_create(db, 'main') 25 | sqlite3.session_attach(session, 'todo') 26 | 27 | syncDb.execute('INSERT INTO todo (id, title, completed) VALUES (?, ?, ?)', ['t2', 't2', 0]) 28 | 29 | const changeset = sqlite3.session_changeset(session) 30 | console.log(changeset) 31 | 32 | 33 | } 34 | 35 | main().catch(console.error) 36 | -------------------------------------------------------------------------------- /test/session-ext3.ts: -------------------------------------------------------------------------------- 1 | import { makeSynchronousDatabase } from "./lib/lib" 2 | import WaSqliteFactory from '@livestore/wa-sqlite/dist/wa-sqlite.node.mjs' 3 | import * as WaSqlite from '@livestore/wa-sqlite' 4 | import { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 5 | 6 | // TODO better understand changesets and e.g. whether they are invalidated when the db schema changes 7 | const blob = new Uint8Array([ 8 | 84, 3, 0, 0, 1, 97, 112, 112, 0, 23, 0, 3, 1, 49, 0, 3, 5, 83, 84, 57, 116, 115, 3, 0, 0, 0 9 | ]) 10 | 11 | const invertedBlob = new Uint8Array([ 12 | 84, 3, 0, 0, 1, 97, 112, 112, 0, 23, 0, 3, 0, 0, 3, 5, 83, 84, 57, 116, 115, 3, 1, 49, 0, 0 13 | ]) 14 | 15 | console.log('blob length', blob.length) 16 | console.log('invertedBlob length', invertedBlob.length) 17 | 18 | const main = async () => { 19 | const module = await WaSqliteFactory() 20 | const sqlite3 = WaSqlite.Factory(module) 21 | 22 | if (sqlite3.vfs_registered.has('memory-vfs') === false) { 23 | // @ts-expect-error TODO fix types 24 | const vfs = new MemoryVFS('memory-vfs', (sqlite3 as any).module) 25 | 26 | // @ts-expect-error TODO fix types 27 | sqlite3.vfs_register(vfs, false) 28 | } 29 | 30 | // const app = DbSchema.table( 31 | // 'app', 32 | // { 33 | // newTodoText: DbSchema.text({ default: '' }), 34 | // filter: DbSchema.text({ schema: Filter, default: 'all' }), 35 | // }, 36 | // { deriveMutations: { enabled: true, localOnly: true } }, 37 | // ) 38 | 39 | const db = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 40 | 41 | const syncDb = makeSynchronousDatabase(sqlite3, db) 42 | 43 | syncDb.execute('CREATE TABLE __livestore_schema (tableName text not null, schemaHash integer not null, updatedAt text not null, PRIMARY KEY (tableName)) strict') 44 | syncDb.execute('CREATE TABLE __livestore_schema_mutations (mutationName text not null, schemaHash integer not null, updatedAt text not null, PRIMARY KEY (mutationName)) strict') 45 | syncDb.execute('CREATE TABLE __livestore_session_changeset (idGlobal integer not null, idLocal integer not null, changeset blob not null) strict') 46 | syncDb.execute('CREATE TABLE todos (id text not null, text text not null default "", completed integer not null default 0, deleted integer, PRIMARY KEY (id)) strict') 47 | syncDb.execute('CREATE TABLE app (newTodoText text not null default "", filter text not null default "all", id text not null, PRIMARY KEY (id)) strict') 48 | 49 | const session = sqlite3.session_create(db, 'main') 50 | sqlite3.session_attach(session, null) 51 | 52 | syncDb.execute('INSERT INTO app (id, newTodoText) VALUES (?, ?)', ['ST9ts', 'test']) 53 | 54 | const changeset = sqlite3.session_changeset(session).changeset 55 | sqlite3.session_delete(session) 56 | console.log('changeset', changeset) 57 | 58 | const inverted = sqlite3.changeset_invert(changeset!) 59 | console.log('inverted', inverted) 60 | const inverted2 = sqlite3.changeset_invert(inverted!) 61 | console.log('inverted2', inverted2) 62 | 63 | console.log('res1', syncDb.select('SELECT * FROM app')) 64 | 65 | // sqlite3.changeset_apply(db, invertedBlob) 66 | sqlite3.changeset_apply(db, blob) 67 | // const inverted = sqlite3.changeset_invert(blob) 68 | // sqlite3.changeset_apply(db, inverted) 69 | 70 | console.log('res2', syncDb.select('SELECT * FROM app')) 71 | 72 | // syncDb.execute('INSERT INTO todo (id, title, completed, deleted) VALUES (?, ?, ?, ?)', ['t2', 't2', 0, null]) 73 | 74 | // console.log('res1', syncDb.select('SELECT * FROM todo')) 75 | // console.log('res2', syncDb.select('SELECT * FROM todo')) 76 | 77 | 78 | } 79 | 80 | main().catch(console.error) 81 | 82 | -------------------------------------------------------------------------------- /test/session-ext4.ts: -------------------------------------------------------------------------------- 1 | import { makeSynchronousDatabase } from "./lib/lib" 2 | import WaSqliteFactory from '@livestore/wa-sqlite/dist/wa-sqlite.node.mjs' 3 | import * as WaSqlite from '@livestore/wa-sqlite' 4 | import { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 5 | 6 | // TODO better understand changesets and e.g. whether they are invalidated when the db schema changes 7 | const blob = new Uint8Array([ 8 | 84, 3, 0, 0, 1, 97, 112, 112, 0, 23, 0, 3, 1, 49, 0, 3, 5, 83, 84, 57, 116, 115, 3, 0, 0, 0 9 | ]) 10 | 11 | const invertedBlob = new Uint8Array([ 12 | 84, 3, 0, 0, 1, 97, 112, 112, 0, 23, 0, 3, 0, 0, 3, 5, 83, 84, 57, 116, 115, 3, 1, 49, 0, 0 13 | ]) 14 | 15 | // console.log('blob length', blob.length) 16 | // console.log('invertedBlob length', invertedBlob.length) 17 | 18 | const main = async () => { 19 | const module = await WaSqliteFactory() 20 | const sqlite3 = WaSqlite.Factory(module) 21 | 22 | if (sqlite3.vfs_registered.has('memory-vfs') === false) { 23 | // @ts-expect-error TODO fix types 24 | const vfs = new MemoryVFS('memory-vfs', (sqlite3 as any).module) 25 | 26 | // @ts-expect-error TODO fix types 27 | sqlite3.vfs_register(vfs, false) 28 | } 29 | 30 | // const app = DbSchema.table( 31 | // 'app', 32 | // { 33 | // newTodoText: DbSchema.text({ default: '' }), 34 | // filter: DbSchema.text({ schema: Filter, default: 'all' }), 35 | // }, 36 | // { deriveMutations: { enabled: true, localOnly: true } }, 37 | // ) 38 | 39 | const db = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 40 | 41 | const syncDb = makeSynchronousDatabase(sqlite3, db) 42 | 43 | syncDb.execute('CREATE TABLE __livestore_schema (tableName text not null, schemaHash integer not null, updatedAt text not null, PRIMARY KEY (tableName)) strict') 44 | syncDb.execute('CREATE TABLE __livestore_schema_mutations (mutationName text not null, schemaHash integer not null, updatedAt text not null, PRIMARY KEY (mutationName)) strict') 45 | syncDb.execute('CREATE TABLE __livestore_session_changeset (idGlobal integer not null, idLocal integer not null, changeset blob not null) strict') 46 | syncDb.execute('CREATE TABLE todos (id text not null, text text not null default "", completed integer not null default 0, deleted integer, PRIMARY KEY (id)) strict') 47 | syncDb.execute('CREATE TABLE app (newTodoText text not null default "", filter text not null default "all", id text not null, PRIMARY KEY (id)) strict') 48 | 49 | const stmts = [ 50 | { 51 | "statementSql": "INSERT INTO app (newTodoText, filter, id) VALUES ($newTodoText, $filter, $id)", 52 | "bindValues": { 53 | "$newTodoText": "", 54 | "$filter": "all", 55 | "$id": "QwyUK" 56 | }, 57 | "writeTables": {} 58 | }, 59 | { 60 | "statementSql": "UPDATE app SET newTodoText = $text WHERE id = $sessionId", 61 | "bindValues": { 62 | "$text": "1", 63 | "$sessionId": "QwyUK" 64 | } 65 | }, 66 | { 67 | "statementSql": "INSERT INTO todos (id, text, completed) VALUES ($id, $text, false)", 68 | "bindValues": { 69 | "$id": "24a5ca89-53a6-4ebf-8733-65ce92225f84", 70 | "$text": "1" 71 | } 72 | }, 73 | { 74 | "statementSql": "UPDATE app SET newTodoText = $text WHERE id = $sessionId", 75 | "bindValues": { 76 | "$text": "", 77 | "$sessionId": "QwyUK" 78 | } 79 | } 80 | ] 81 | 82 | const changesets: Uint8Array[] = [] 83 | 84 | for (const stmt of stmts) { 85 | const session = sqlite3.session_create(db, 'main') 86 | sqlite3.session_attach(session, null) 87 | syncDb.execute(stmt.statementSql, stmt.bindValues) 88 | changesets.push(sqlite3.session_changeset(session).changeset!) 89 | } 90 | 91 | console.log('app', syncDb.select('SELECT * FROM app')) 92 | console.log('changesets', changesets.length, changesets) 93 | 94 | for (let i = changesets.length - 1; i >= 0; i--) { 95 | const inverted = sqlite3.changeset_invert(changesets[i]) 96 | sqlite3.changeset_apply(db, inverted) 97 | console.log(`app[${i}]`, syncDb.select('SELECT * FROM app')) 98 | } 99 | 100 | 101 | // const session = sqlite3.session_create(db, 'main') 102 | // sqlite3.session_attach(session, null) 103 | 104 | // syncDb.execute('INSERT INTO app (id, newTodoText) VALUES (?, ?)', ['ST9ts', 'test']) 105 | 106 | // const changeset = sqlite3.session_changeset(session).changeset 107 | // sqlite3.session_delete(session) 108 | // console.log('changeset', changeset) 109 | 110 | // const inverted = sqlite3.changeset_invert(changeset!) 111 | // console.log('inverted', inverted) 112 | // const inverted2 = sqlite3.changeset_invert(inverted!) 113 | // console.log('inverted2', inverted2) 114 | 115 | // console.log('res1', syncDb.select('SELECT * FROM app')) 116 | 117 | // sqlite3.changeset_apply(db, invertedBlob) 118 | // sqlite3.changeset_apply(db, blob) 119 | // const inverted = sqlite3.changeset_invert(blob) 120 | // sqlite3.changeset_apply(db, inverted) 121 | 122 | // console.log('res2', syncDb.select('SELECT * FROM app')) 123 | 124 | // syncDb.execute('INSERT INTO todo (id, title, completed, deleted) VALUES (?, ?, ?, ?)', ['t2', 't2', 0, null]) 125 | 126 | // console.log('res1', syncDb.select('SELECT * FROM todo')) 127 | // console.log('res2', syncDb.select('SELECT * FROM todo')) 128 | 129 | 130 | } 131 | 132 | main().catch(console.error) 133 | 134 | -------------------------------------------------------------------------------- /test/test-blob.ts: -------------------------------------------------------------------------------- 1 | import { makeSynchronousDatabase } from "./lib/lib" 2 | import WaSqliteFactory from '@livestore/wa-sqlite/dist/wa-sqlite.node.mjs' 3 | import * as WaSqlite from '@livestore/wa-sqlite' 4 | import { MemoryVFS } from '@livestore/wa-sqlite/src/examples/MemoryVFS.js' 5 | 6 | const blob = new Uint8Array([ 7 | 84, 3, 1, 0, 0, 116, 111, 100, 111, 8 | 115, 0, 18, 0, 3, 1, 50, 3, 2, 9 | 116, 50, 1, 0, 0, 0, 0, 0, 0, 10 | 0, 0 11 | ]) 12 | 13 | const main = async () => { 14 | const module = await WaSqliteFactory() 15 | const sqlite3 = WaSqlite.Factory(module) 16 | 17 | if (sqlite3.vfs_registered.has('memory-vfs') === false) { 18 | // @ts-expect-error TODO fix types 19 | const vfs = new MemoryVFS('memory-vfs', (sqlite3 as any).module) 20 | 21 | // @ts-expect-error TODO fix types 22 | sqlite3.vfs_register(vfs, false) 23 | } 24 | 25 | const db = sqlite3.open_v2Sync(':memory:', undefined, 'memory-vfs') 26 | 27 | const syncDb = makeSynchronousDatabase(sqlite3, db) 28 | 29 | syncDb.execute('CREATE TABLE todo (id TEXT PRIMARY KEY, title TEXT, completed INTEGER, blob BLOB)') 30 | 31 | 32 | syncDb.execute('INSERT INTO todo (id, title, completed, blob) VALUES (?, ?, ?, ?)', ['t2', 't2', 0, blob]) 33 | 34 | console.log('res1', syncDb.select('SELECT * FROM todo')) 35 | console.log('res2', syncDb.select('SELECT * FROM todo')) 36 | 37 | 38 | } 39 | 40 | main().catch(console.error) 41 | 42 | --------------------------------------------------------------------------------