@poe-platform/safe-bash 0.1.756 → 0.1.757
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/image-ast/index.browser.js +4 -4
- package/dist/image-ast/index.js +4 -4
- package/dist/safe-bash/chunks/{chunk-LESPJ3OG.js → chunk-WNWIBBJZ.js} +15 -2
- package/dist/safe-bash/command-chunks/{chunk-S4J6MSLY.js → chunk-444OTXM7.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-6AIOGLZO.js → chunk-CE6Z2ULX.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-5VSGEE6J.js → chunk-F4IQCXZG.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-F5MORDSU.js → chunk-FDNCPZQS.js} +32 -1
- package/dist/safe-bash/command-chunks/{chunk-SG3ZDZCX.js → chunk-FLMLM7Y4.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CT3FB722.js → chunk-J7UMKBRK.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QQOAK7JQ.js → chunk-KKJCKPTA.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-7KS6PX4U.js → chunk-KSIGF4AG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-4HQ7WYSI.js → chunk-MED2BOOW.js} +30 -5
- package/dist/safe-bash/command-chunks/{chunk-JRNLDPLI.js → chunk-OZSWW23M.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DKQ5REXF.js → chunk-QDPRSPHQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WOPU2VWF.js → chunk-RID3B5RE.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DVZCHNB5.js → chunk-S4MLIYSN.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-REYTQLLB.js → chunk-TT2DMDBY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-UGX6MXDD.js → chunk-UIIT4ULR.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-A6NFLWZI.js → chunk-WKPOGTZY.js} +22 -6
- package/dist/safe-bash/command-chunks/{chunk-3DOHQQJR.js → chunk-Y64PA6IA.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6Z7OS3TZ.js → chunk-ZP5KDHB4.js} +7 -7
- package/dist/safe-bash/commands/pandoc/index.d.ts +1 -1
- package/dist/safe-bash/commands/pandoc/index.js +5 -3
- package/dist/safe-bash/commands/python/index.browser.js +1 -1
- package/dist/safe-bash/commands/python/index.js +6 -0
- package/dist/safe-bash/commands/python/jspi.js +11 -2
- package/dist/safe-bash/core.browser.js +6 -4
- package/dist/safe-bash-command-csvkit/index.js +8 -8
- package/dist/safe-bash-command-soffice/index.js +16 -16
- package/dist/safe-bash-command-ssconvert/core.js +8 -8
- package/dist/safe-bash-command-ssconvert/formats/csv.js +9 -9
- package/dist/safe-bash-command-ssconvert/formats/ods.js +8 -8
- package/dist/safe-bash-command-ssconvert/formats/spreadsheetml.js +1 -1
- package/dist/safe-bash-command-ssconvert/formats/xls.js +9 -8
- package/dist/safe-bash-command-ssconvert/formats/xlsx.js +8 -8
- package/dist/safe-bash-command-ssconvert/index.js +107 -27
- package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
- package/dist/safe-bash-contracts/filesystem-output.js +1 -1
- package/dist/safe-bash-mcp/index.js +4 -4
- package/dist/spreadsheet-engine/formulas/ast.d.ts +13 -0
- package/dist/spreadsheet-engine/formulas/conventions.js +1 -1
- package/dist/spreadsheet-engine/formulas/dependencies.js +2 -2
- package/dist/spreadsheet-engine/formulas/evaluator.js +2 -2
- package/dist/spreadsheet-engine/formulas/named-expressions.d.ts +2 -2
- package/dist/spreadsheet-engine/formulas/named-expressions.js +31 -5
- package/dist/spreadsheet-engine/formulas/parser.js +34 -0
- package/dist/spreadsheet-engine/formulas/rewriting.js +19 -1
- package/dist/spreadsheet-engine/formulas/serialization.js +6 -0
- package/dist/spreadsheet-format-xls/biff-write-formulas.js +2 -0
- package/dist/xlsx-ast/formula-semantics.js +2 -0
- package/package.json +2 -2
- package/dist/safe-bash/chunks/browser-ECQX6GMK.js +0 -6766
- package/dist/safe-bash/chunks/bz2-4OP3OWW3.js +0 -8
- package/dist/safe-bash/chunks/chunk-22XPAAOI.js +0 -173
- package/dist/safe-bash/chunks/chunk-44WUNUPV.js +0 -649
- package/dist/safe-bash/chunks/chunk-4E3SGG37.js +0 -876
- package/dist/safe-bash/chunks/chunk-4QTSSQKP.js +0 -898
- package/dist/safe-bash/chunks/chunk-5UVGPVXP.js +0 -410
- package/dist/safe-bash/chunks/chunk-64OE6Q6X.js +0 -3487
- package/dist/safe-bash/chunks/chunk-6IIFUPN2.js +0 -1526
- package/dist/safe-bash/chunks/chunk-BENDLTQD.js +0 -7065
- package/dist/safe-bash/chunks/chunk-BMO5LWEX.js +0 -534
- package/dist/safe-bash/chunks/chunk-BPMCPTNP.js +0 -1920
- package/dist/safe-bash/chunks/chunk-BRJTAWP5.js +0 -2955
- package/dist/safe-bash/chunks/chunk-C3GEIN7Q.js +0 -20054
- package/dist/safe-bash/chunks/chunk-CBVANNKK.js +0 -174814
- package/dist/safe-bash/chunks/chunk-CEWCRI6H.js +0 -2813
- package/dist/safe-bash/chunks/chunk-CGL53DQQ.js +0 -37
- package/dist/safe-bash/chunks/chunk-CTYJJD4O.js +0 -869
- package/dist/safe-bash/chunks/chunk-CWSS4MQA.js +0 -7
- package/dist/safe-bash/chunks/chunk-DLIGMTCP.js +0 -3266
- package/dist/safe-bash/chunks/chunk-EMAJ7WUW.js +0 -1031
- package/dist/safe-bash/chunks/chunk-FDKIZ2IJ.js +0 -1950
- package/dist/safe-bash/chunks/chunk-FZWJ2A7V.js +0 -3093
- package/dist/safe-bash/chunks/chunk-G2VCIF2J.js +0 -22
- package/dist/safe-bash/chunks/chunk-GVKBUQDX.js +0 -2649
- package/dist/safe-bash/chunks/chunk-IO2OGW3E.js +0 -28051
- package/dist/safe-bash/chunks/chunk-ISCZG7WA.js +0 -2648
- package/dist/safe-bash/chunks/chunk-JCN3FXLP.js +0 -38983
- package/dist/safe-bash/chunks/chunk-KJHDD4A2.js +0 -759
- package/dist/safe-bash/chunks/chunk-LB6HVRXS.js +0 -857
- package/dist/safe-bash/chunks/chunk-LLWAJOZH.js +0 -15
- package/dist/safe-bash/chunks/chunk-LMUKYZIJ.js +0 -708
- package/dist/safe-bash/chunks/chunk-M5SCNKIK.js +0 -2012
- package/dist/safe-bash/chunks/chunk-MJPFHANT.js +0 -3350
- package/dist/safe-bash/chunks/chunk-MZQW2DOL.js +0 -82
- package/dist/safe-bash/chunks/chunk-NB2V7EOY.js +0 -1348
- package/dist/safe-bash/chunks/chunk-NJVGOIYN.js +0 -17
- package/dist/safe-bash/chunks/chunk-OLNZHDIQ.js +0 -5141
- package/dist/safe-bash/chunks/chunk-OSUXMC43.js +0 -2317
- package/dist/safe-bash/chunks/chunk-OUUVROTM.js +0 -38
- package/dist/safe-bash/chunks/chunk-PA6GYKBQ.js +0 -151
- package/dist/safe-bash/chunks/chunk-PEFHZ226.js +0 -6957
- package/dist/safe-bash/chunks/chunk-QBB5P5KW.js +0 -4839
- package/dist/safe-bash/chunks/chunk-RSAWYAEH.js +0 -973
- package/dist/safe-bash/chunks/chunk-UWLYRWT4.js +0 -739
- package/dist/safe-bash/chunks/chunk-V463NBQH.js +0 -13
- package/dist/safe-bash/chunks/chunk-WPUALYUS.js +0 -843
- package/dist/safe-bash/chunks/chunk-XHKFSRGU.js +0 -5747
- package/dist/safe-bash/chunks/chunk-XHRCLZ3N.js +0 -13391
- package/dist/safe-bash/chunks/chunk-XPF5XHLY.js +0 -15
- package/dist/safe-bash/chunks/chunk-ZBFOWARG.js +0 -305
- package/dist/safe-bash/chunks/chunk-ZG7GWQ5P.js +0 -1859
- package/dist/safe-bash/chunks/model-store-EIY3ZQLZ.js +0 -10
- package/dist/safe-bash/chunks/pdf-renderer-CMF3CSVU.js +0 -22
- package/dist/safe-bash/chunks/pptx-ZL6L7KP2-O425BFIU.js +0 -30658
- package/dist/safe-bash/chunks/src-HHEPGR7U.js +0 -18969
- package/dist/safe-bash/chunks/src-MXIKQCIC.js +0 -187
- package/dist/safe-bash/chunks/usage-6TGVA2OM.js +0 -35
- package/dist/safe-bash/chunks/xz-EGQGQUEI.js +0 -8
- package/dist/safe-bash/chunks/xz-K2E2WLM6.js +0 -9
- package/dist/safe-bash/chunks/zstd-6JBLP5EF.js +0 -8
- package/dist/safe-bash/git_rust-C3QYOAZL.wasm +0 -0
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Chi,
|
|
3
|
-
HashMD,
|
|
4
|
-
Maj,
|
|
5
|
-
clean,
|
|
6
|
-
createHasher,
|
|
7
|
-
rotl
|
|
8
|
-
} from "./chunk-CTYJJD4O.js";
|
|
9
|
-
import {
|
|
10
|
-
init_platform
|
|
11
|
-
} from "./chunk-ZG7GWQ5P.js";
|
|
12
|
-
|
|
13
|
-
// node_modules/@noble/hashes/legacy.js
|
|
14
|
-
init_platform();
|
|
15
|
-
var SHA1_IV = /* @__PURE__ */ Uint32Array.from([
|
|
16
|
-
1732584193,
|
|
17
|
-
4023233417,
|
|
18
|
-
2562383102,
|
|
19
|
-
271733878,
|
|
20
|
-
3285377520
|
|
21
|
-
]);
|
|
22
|
-
var SHA1_W = /* @__PURE__ */ new Uint32Array(80);
|
|
23
|
-
var _SHA1 = class extends HashMD {
|
|
24
|
-
A = SHA1_IV[0] | 0;
|
|
25
|
-
B = SHA1_IV[1] | 0;
|
|
26
|
-
C = SHA1_IV[2] | 0;
|
|
27
|
-
D = SHA1_IV[3] | 0;
|
|
28
|
-
E = SHA1_IV[4] | 0;
|
|
29
|
-
constructor() {
|
|
30
|
-
super(64, 20, 8, false);
|
|
31
|
-
}
|
|
32
|
-
get() {
|
|
33
|
-
const { A, B, C, D, E } = this;
|
|
34
|
-
return [A, B, C, D, E];
|
|
35
|
-
}
|
|
36
|
-
set(A, B, C, D, E) {
|
|
37
|
-
this.A = A | 0;
|
|
38
|
-
this.B = B | 0;
|
|
39
|
-
this.C = C | 0;
|
|
40
|
-
this.D = D | 0;
|
|
41
|
-
this.E = E | 0;
|
|
42
|
-
}
|
|
43
|
-
_cloneInto(to) {
|
|
44
|
-
(to ||= new this.constructor()).set(...this.get());
|
|
45
|
-
return this._cloneIntoMeta(to);
|
|
46
|
-
}
|
|
47
|
-
process(view, offset) {
|
|
48
|
-
for (let i = 0; i < 16; i++, offset += 4)
|
|
49
|
-
SHA1_W[i] = view.getUint32(offset, false);
|
|
50
|
-
for (let i = 16; i < 80; i++)
|
|
51
|
-
SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1);
|
|
52
|
-
let { A, B, C, D, E } = this;
|
|
53
|
-
for (let i = 0; i < 80; i++) {
|
|
54
|
-
let F, K2;
|
|
55
|
-
if (i < 20) {
|
|
56
|
-
F = Chi(B, C, D);
|
|
57
|
-
K2 = 1518500249;
|
|
58
|
-
} else if (i < 40) {
|
|
59
|
-
F = B ^ C ^ D;
|
|
60
|
-
K2 = 1859775393;
|
|
61
|
-
} else if (i < 60) {
|
|
62
|
-
F = Maj(B, C, D);
|
|
63
|
-
K2 = 2400959708;
|
|
64
|
-
} else {
|
|
65
|
-
F = B ^ C ^ D;
|
|
66
|
-
K2 = 3395469782;
|
|
67
|
-
}
|
|
68
|
-
const T = rotl(A, 5) + F + E + K2 + SHA1_W[i] | 0;
|
|
69
|
-
E = D;
|
|
70
|
-
D = C;
|
|
71
|
-
C = rotl(B, 30);
|
|
72
|
-
B = A;
|
|
73
|
-
A = T;
|
|
74
|
-
}
|
|
75
|
-
A = A + this.A | 0;
|
|
76
|
-
B = B + this.B | 0;
|
|
77
|
-
C = C + this.C | 0;
|
|
78
|
-
D = D + this.D | 0;
|
|
79
|
-
E = E + this.E | 0;
|
|
80
|
-
this.set(A, B, C, D, E);
|
|
81
|
-
}
|
|
82
|
-
roundClean() {
|
|
83
|
-
clean(SHA1_W);
|
|
84
|
-
}
|
|
85
|
-
destroy() {
|
|
86
|
-
this.destroyed = true;
|
|
87
|
-
this.set(0, 0, 0, 0, 0);
|
|
88
|
-
clean(this.buffer);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var sha1 = /* @__PURE__ */ createHasher(() => new _SHA1());
|
|
92
|
-
var p32 = /* @__PURE__ */ Math.pow(2, 32);
|
|
93
|
-
var K = /* @__PURE__ */ Array.from({ length: 64 }, (_, i) => Math.floor(p32 * Math.abs(Math.sin(i + 1))));
|
|
94
|
-
var MD5_IV = /* @__PURE__ */ SHA1_IV.slice(0, 4);
|
|
95
|
-
var MD5_W = /* @__PURE__ */ new Uint32Array(16);
|
|
96
|
-
var MD5_SHIFTS = /* @__PURE__ */ (() => {
|
|
97
|
-
const S = [
|
|
98
|
-
[7, 12, 17, 22],
|
|
99
|
-
[5, 9, 14, 20],
|
|
100
|
-
[4, 11, 16, 23],
|
|
101
|
-
[6, 10, 15, 21]
|
|
102
|
-
];
|
|
103
|
-
return Uint8Array.from({ length: 64 }, (_, i) => S[Math.floor(i / 16)][i % 4]);
|
|
104
|
-
})();
|
|
105
|
-
var _MD5 = class extends HashMD {
|
|
106
|
-
A = MD5_IV[0] | 0;
|
|
107
|
-
B = MD5_IV[1] | 0;
|
|
108
|
-
C = MD5_IV[2] | 0;
|
|
109
|
-
D = MD5_IV[3] | 0;
|
|
110
|
-
constructor() {
|
|
111
|
-
super(64, 16, 8, true);
|
|
112
|
-
}
|
|
113
|
-
get() {
|
|
114
|
-
const { A, B, C, D } = this;
|
|
115
|
-
return [A, B, C, D];
|
|
116
|
-
}
|
|
117
|
-
set(A, B, C, D) {
|
|
118
|
-
this.A = A | 0;
|
|
119
|
-
this.B = B | 0;
|
|
120
|
-
this.C = C | 0;
|
|
121
|
-
this.D = D | 0;
|
|
122
|
-
}
|
|
123
|
-
_cloneInto(to) {
|
|
124
|
-
(to ||= new this.constructor()).set(...this.get());
|
|
125
|
-
return this._cloneIntoMeta(to);
|
|
126
|
-
}
|
|
127
|
-
process(view, offset) {
|
|
128
|
-
for (let i = 0; i < 16; i++, offset += 4)
|
|
129
|
-
MD5_W[i] = view.getUint32(offset, true);
|
|
130
|
-
let { A, B, C, D } = this;
|
|
131
|
-
for (let i = 0; i < 64; i++) {
|
|
132
|
-
let F, g;
|
|
133
|
-
if (i < 16) {
|
|
134
|
-
F = Chi(B, C, D);
|
|
135
|
-
g = i;
|
|
136
|
-
} else if (i < 32) {
|
|
137
|
-
F = Chi(D, B, C);
|
|
138
|
-
g = (5 * i + 1) % 16;
|
|
139
|
-
} else if (i < 48) {
|
|
140
|
-
F = B ^ C ^ D;
|
|
141
|
-
g = (3 * i + 5) % 16;
|
|
142
|
-
} else {
|
|
143
|
-
F = C ^ (B | ~D);
|
|
144
|
-
g = 7 * i % 16;
|
|
145
|
-
}
|
|
146
|
-
F = F + A + K[i] + MD5_W[g];
|
|
147
|
-
A = D;
|
|
148
|
-
D = C;
|
|
149
|
-
C = B;
|
|
150
|
-
B = B + rotl(F, MD5_SHIFTS[i]);
|
|
151
|
-
}
|
|
152
|
-
A = A + this.A | 0;
|
|
153
|
-
B = B + this.B | 0;
|
|
154
|
-
C = C + this.C | 0;
|
|
155
|
-
D = D + this.D | 0;
|
|
156
|
-
this.set(A, B, C, D);
|
|
157
|
-
}
|
|
158
|
-
roundClean() {
|
|
159
|
-
clean(MD5_W);
|
|
160
|
-
}
|
|
161
|
-
destroy() {
|
|
162
|
-
this.destroyed = true;
|
|
163
|
-
this.set(0, 0, 0, 0);
|
|
164
|
-
clean(this.buffer);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
var md5 = /* @__PURE__ */ createHasher(() => new _MD5());
|
|
168
|
-
|
|
169
|
-
export {
|
|
170
|
-
sha1,
|
|
171
|
-
md5
|
|
172
|
-
};
|
|
173
|
-
//# sourceMappingURL=chunk-22XPAAOI.js.map
|