@genome-spy/app 0.73.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/AbortablePromiseCache-3gHJdF3E.js +96 -0
  2. package/dist/blosc-oa0DlI6G.js +692 -0
  3. package/dist/browser-Dvlo92rx.js +126 -0
  4. package/dist/chunk-CPXzm0be.js +11 -0
  5. package/dist/chunk-INHXZS53-fPMmEwMt.js +13 -0
  6. package/dist/esm-B8-vSu-c.js +369 -0
  7. package/dist/esm-BDFRLEuD.js +1248 -0
  8. package/dist/esm-BygJiwh0.js +573 -0
  9. package/dist/esm-CGX-qz1d.js +155 -0
  10. package/dist/esm-Cmo4qEPr.js +1015 -0
  11. package/dist/esm-CuMSzCHy.js +298 -0
  12. package/dist/esm-D-WfYOx7.js +461 -0
  13. package/dist/esm-DCCYNvaz.js +1426 -0
  14. package/dist/esm-n0auOe11.js +121 -0
  15. package/dist/index.es.js +41252 -52718
  16. package/dist/index.js +1093 -1099
  17. package/dist/lz4-jZ0zyLBa.js +626 -0
  18. package/dist/parquetRead-CJe1UPsz.js +1609 -0
  19. package/dist/schema.json +11293 -5027
  20. package/dist/style.css +2 -1
  21. package/dist/zstd-C6ksIG9r.js +583 -0
  22. package/package.json +14 -5
  23. package/dist/AbortablePromiseCache-Dj0vzLnp.js +0 -149
  24. package/dist/blosc-D1xNXZJs.js +0 -719
  25. package/dist/browser-0iNU5Wit.js +0 -138
  26. package/dist/chunk-INHXZS53-DiyuLb3Z.js +0 -14
  27. package/dist/index-BUsSzlHg.js +0 -1771
  28. package/dist/index-BYsZN7b0.js +0 -1597
  29. package/dist/index-C7wOh6y1.js +0 -657
  30. package/dist/index-CRaQAuki.js +0 -326
  31. package/dist/index-D9v1PCj9.js +0 -507
  32. package/dist/index-GDOuv_D5.js +0 -266
  33. package/dist/index-Gt44EOIH.js +0 -628
  34. package/dist/inflate-GtwLkvSP.js +0 -1048
  35. package/dist/lz4-1Ws5oVWR.js +0 -640
  36. package/dist/parquetRead-BnAGCa4_.js +0 -1663
  37. package/dist/unzip-Bac01w6X.js +0 -1492
  38. package/dist/zstd-C4EcZnjq.js +0 -603
@@ -1,138 +0,0 @@
1
- class f {
2
- constructor(e) {
3
- this.blob = e;
4
- }
5
- async read(e, t = 0) {
6
- if (!e)
7
- return new Uint8Array(0);
8
- const s = t, n = s + e, a = this.blob.slice(s, n);
9
- return a.bytes ? a.bytes() : new Uint8Array(await a.arrayBuffer());
10
- }
11
- async readFile(e) {
12
- const t = typeof e == "string" ? e : e?.encoding;
13
- if (t === "utf8")
14
- return this.blob.text();
15
- if (t)
16
- throw new Error(`unsupported encoding: ${t}`);
17
- return this.blob.bytes ? this.blob.bytes() : new Uint8Array(await this.blob.arrayBuffer());
18
- }
19
- async stat() {
20
- return { size: this.blob.size };
21
- }
22
- async close() {
23
- }
24
- }
25
- function d(i) {
26
- return (typeof i == "object" && i !== null && "message" in i ? i.message : `${i}`).replace(/\.$/, "");
27
- }
28
- class u {
29
- constructor(e, t = {}) {
30
- this.baseOverrides = {}, this.url = e;
31
- const s = t.fetch || globalThis.fetch.bind(globalThis);
32
- t.overrides && (this.baseOverrides = t.overrides), this.fetchImplementation = s;
33
- }
34
- async fetch(e, t) {
35
- const s = (a) => new Error(`${d(a)} fetching ${e}`, { cause: a });
36
- let n;
37
- try {
38
- n = await this.fetchImplementation(e, t);
39
- } catch (a) {
40
- if (`${a}`.includes("Failed to fetch")) {
41
- console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);
42
- try {
43
- n = await this.fetchImplementation(e, {
44
- ...t,
45
- cache: "reload"
46
- });
47
- } catch (c) {
48
- throw s(c);
49
- }
50
- } else
51
- throw s(a);
52
- }
53
- return n;
54
- }
55
- async read(e, t, s = {}) {
56
- if (e === 0)
57
- return new Uint8Array(0);
58
- const { headers: n = {}, signal: a, overrides: c = {} } = s;
59
- e < 1 / 0 ? n.range = `bytes=${t}-${t + e - 1}` : e === 1 / 0 && t !== 0 && (n.range = `bytes=${t}-`);
60
- const r = await this.fetch(this.url, {
61
- ...this.baseOverrides,
62
- ...c,
63
- headers: {
64
- ...this.baseOverrides.headers,
65
- ...c.headers,
66
- ...n
67
- },
68
- method: "GET",
69
- redirect: "follow",
70
- mode: "cors",
71
- signal: a
72
- });
73
- if (!r.ok)
74
- throw new Error(`HTTP ${r.status} fetching ${this.url}`);
75
- if (r.status === 200 && t === 0 || r.status === 206) {
76
- const l = r.headers.get("content-range"), o = /\/(\d+)$/.exec(l || "");
77
- o?.[1] && (this._stat = {
78
- size: parseInt(o[1], 10)
79
- });
80
- const h = r.bytes ? await r.bytes() : new Uint8Array(await r.arrayBuffer());
81
- return h.byteLength <= e ? h : h.subarray(0, e);
82
- }
83
- throw new Error(r.status === 200 ? `${this.url} fetch returned status 200, expected 206` : `HTTP ${r.status} fetching ${this.url}`);
84
- }
85
- async readFile(e = {}) {
86
- let t, s;
87
- if (typeof e == "string")
88
- t = e, s = {};
89
- else {
90
- t = e.encoding;
91
- const { encoding: l, ...o } = e;
92
- s = o;
93
- }
94
- const { headers: n = {}, signal: a, overrides: c = {} } = s, r = await this.fetch(this.url, {
95
- ...this.baseOverrides,
96
- ...c,
97
- headers: {
98
- ...this.baseOverrides.headers,
99
- ...c.headers,
100
- ...n
101
- },
102
- method: "GET",
103
- redirect: "follow",
104
- mode: "cors",
105
- signal: a
106
- });
107
- if (!r.ok)
108
- throw new Error(`HTTP ${r.status} fetching ${this.url}`);
109
- if (t === "utf8")
110
- return r.text();
111
- if (t)
112
- throw new Error(`unsupported encoding: ${t}`);
113
- return r.bytes ? r.bytes() : new Uint8Array(await r.arrayBuffer());
114
- }
115
- async stat() {
116
- if (!this._stat && (await this.read(10, 0), !this._stat))
117
- throw new Error(`unable to determine size of file at ${this.url}`);
118
- return this._stat;
119
- }
120
- async close() {
121
- }
122
- }
123
- class w {
124
- readFile() {
125
- throw new Error("unimplemented");
126
- }
127
- read() {
128
- throw new Error("unimplemented");
129
- }
130
- close() {
131
- throw new Error("unimplemented");
132
- }
133
- }
134
- export {
135
- f as BlobFile,
136
- w as LocalFile,
137
- u as RemoteFile
138
- };
@@ -1,14 +0,0 @@
1
- var C = /* @__PURE__ */ (() => {
2
- for (var a = new Uint8Array(128), r = 0; r < 64; r++)
3
- a[r < 26 ? r + 65 : r < 52 ? r + 71 : r < 62 ? r - 4 : r * 4 - 205] = r;
4
- return (t) => {
5
- for (var o = t.length, v = new Uint8Array((o - (t[o - 1] == "=") - (t[o - 2] == "=")) * 3 / 4 | 0), n = 0, e = 0; n < o; ) {
6
- var d = a[t.charCodeAt(n++)], A = a[t.charCodeAt(n++)], h = a[t.charCodeAt(n++)], y = a[t.charCodeAt(n++)];
7
- v[e++] = d << 2 | A >> 4, v[e++] = A << 4 | h >> 2, v[e++] = h << 6 | y;
8
- }
9
- return v;
10
- };
11
- })();
12
- export {
13
- C as _
14
- };