@lobehub/cli 0.0.1-canary.5 → 0.0.1-canary.7
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/chunk-LKA42TM3.js +66 -0
- package/dist/chunk-LMMQX4CK.js +49 -0
- package/dist/chunk-WYAGM234.js +374 -0
- package/dist/doc-5TWWWOPU.js +4361 -0
- package/dist/docx-5F7T34BW.js +31061 -0
- package/dist/excel-4BKAN5IQ.js +26983 -0
- package/dist/index.js +1958 -498
- package/dist/pdf-U4YN27SJ.js +94752 -0
- package/dist/pptx-USXT2HPX.js +10784 -0
- package/dist/text-6IT6PEWE.js +60 -0
- package/package.json +6 -4
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
__commonJS,
|
|
4
|
+
__require
|
|
5
|
+
} from "./chunk-LMMQX4CK.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
|
|
8
|
+
var require_inherits_browser = __commonJS({
|
|
9
|
+
"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module) {
|
|
10
|
+
"use strict";
|
|
11
|
+
if (typeof Object.create === "function") {
|
|
12
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
13
|
+
if (superCtor) {
|
|
14
|
+
ctor.super_ = superCtor;
|
|
15
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
16
|
+
constructor: {
|
|
17
|
+
value: ctor,
|
|
18
|
+
enumerable: false,
|
|
19
|
+
writable: true,
|
|
20
|
+
configurable: true
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
} else {
|
|
26
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
27
|
+
if (superCtor) {
|
|
28
|
+
ctor.super_ = superCtor;
|
|
29
|
+
var TempCtor = function() {
|
|
30
|
+
};
|
|
31
|
+
TempCtor.prototype = superCtor.prototype;
|
|
32
|
+
ctor.prototype = new TempCtor();
|
|
33
|
+
ctor.prototype.constructor = ctor;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
|
|
41
|
+
var require_inherits = __commonJS({
|
|
42
|
+
"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module) {
|
|
43
|
+
"use strict";
|
|
44
|
+
try {
|
|
45
|
+
util = __require("util");
|
|
46
|
+
if (typeof util.inherits !== "function") throw "";
|
|
47
|
+
module.exports = util.inherits;
|
|
48
|
+
} catch (e) {
|
|
49
|
+
module.exports = require_inherits_browser();
|
|
50
|
+
}
|
|
51
|
+
var util;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
|
|
56
|
+
var require_node = __commonJS({
|
|
57
|
+
"node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports, module) {
|
|
58
|
+
"use strict";
|
|
59
|
+
module.exports = __require("util").deprecate;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
require_inherits,
|
|
65
|
+
require_node
|
|
66
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
33
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
38
|
+
mod
|
|
39
|
+
));
|
|
40
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
__require,
|
|
44
|
+
__esm,
|
|
45
|
+
__commonJS,
|
|
46
|
+
__export,
|
|
47
|
+
__toESM,
|
|
48
|
+
__toCommonJS
|
|
49
|
+
};
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
__commonJS,
|
|
4
|
+
__require
|
|
5
|
+
} from "./chunk-LMMQX4CK.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js
|
|
8
|
+
var require_buffer_crc32 = __commonJS({
|
|
9
|
+
"node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js"(exports, module) {
|
|
10
|
+
"use strict";
|
|
11
|
+
var Buffer = __require("buffer").Buffer;
|
|
12
|
+
var CRC_TABLE = [
|
|
13
|
+
0,
|
|
14
|
+
1996959894,
|
|
15
|
+
3993919788,
|
|
16
|
+
2567524794,
|
|
17
|
+
124634137,
|
|
18
|
+
1886057615,
|
|
19
|
+
3915621685,
|
|
20
|
+
2657392035,
|
|
21
|
+
249268274,
|
|
22
|
+
2044508324,
|
|
23
|
+
3772115230,
|
|
24
|
+
2547177864,
|
|
25
|
+
162941995,
|
|
26
|
+
2125561021,
|
|
27
|
+
3887607047,
|
|
28
|
+
2428444049,
|
|
29
|
+
498536548,
|
|
30
|
+
1789927666,
|
|
31
|
+
4089016648,
|
|
32
|
+
2227061214,
|
|
33
|
+
450548861,
|
|
34
|
+
1843258603,
|
|
35
|
+
4107580753,
|
|
36
|
+
2211677639,
|
|
37
|
+
325883990,
|
|
38
|
+
1684777152,
|
|
39
|
+
4251122042,
|
|
40
|
+
2321926636,
|
|
41
|
+
335633487,
|
|
42
|
+
1661365465,
|
|
43
|
+
4195302755,
|
|
44
|
+
2366115317,
|
|
45
|
+
997073096,
|
|
46
|
+
1281953886,
|
|
47
|
+
3579855332,
|
|
48
|
+
2724688242,
|
|
49
|
+
1006888145,
|
|
50
|
+
1258607687,
|
|
51
|
+
3524101629,
|
|
52
|
+
2768942443,
|
|
53
|
+
901097722,
|
|
54
|
+
1119000684,
|
|
55
|
+
3686517206,
|
|
56
|
+
2898065728,
|
|
57
|
+
853044451,
|
|
58
|
+
1172266101,
|
|
59
|
+
3705015759,
|
|
60
|
+
2882616665,
|
|
61
|
+
651767980,
|
|
62
|
+
1373503546,
|
|
63
|
+
3369554304,
|
|
64
|
+
3218104598,
|
|
65
|
+
565507253,
|
|
66
|
+
1454621731,
|
|
67
|
+
3485111705,
|
|
68
|
+
3099436303,
|
|
69
|
+
671266974,
|
|
70
|
+
1594198024,
|
|
71
|
+
3322730930,
|
|
72
|
+
2970347812,
|
|
73
|
+
795835527,
|
|
74
|
+
1483230225,
|
|
75
|
+
3244367275,
|
|
76
|
+
3060149565,
|
|
77
|
+
1994146192,
|
|
78
|
+
31158534,
|
|
79
|
+
2563907772,
|
|
80
|
+
4023717930,
|
|
81
|
+
1907459465,
|
|
82
|
+
112637215,
|
|
83
|
+
2680153253,
|
|
84
|
+
3904427059,
|
|
85
|
+
2013776290,
|
|
86
|
+
251722036,
|
|
87
|
+
2517215374,
|
|
88
|
+
3775830040,
|
|
89
|
+
2137656763,
|
|
90
|
+
141376813,
|
|
91
|
+
2439277719,
|
|
92
|
+
3865271297,
|
|
93
|
+
1802195444,
|
|
94
|
+
476864866,
|
|
95
|
+
2238001368,
|
|
96
|
+
4066508878,
|
|
97
|
+
1812370925,
|
|
98
|
+
453092731,
|
|
99
|
+
2181625025,
|
|
100
|
+
4111451223,
|
|
101
|
+
1706088902,
|
|
102
|
+
314042704,
|
|
103
|
+
2344532202,
|
|
104
|
+
4240017532,
|
|
105
|
+
1658658271,
|
|
106
|
+
366619977,
|
|
107
|
+
2362670323,
|
|
108
|
+
4224994405,
|
|
109
|
+
1303535960,
|
|
110
|
+
984961486,
|
|
111
|
+
2747007092,
|
|
112
|
+
3569037538,
|
|
113
|
+
1256170817,
|
|
114
|
+
1037604311,
|
|
115
|
+
2765210733,
|
|
116
|
+
3554079995,
|
|
117
|
+
1131014506,
|
|
118
|
+
879679996,
|
|
119
|
+
2909243462,
|
|
120
|
+
3663771856,
|
|
121
|
+
1141124467,
|
|
122
|
+
855842277,
|
|
123
|
+
2852801631,
|
|
124
|
+
3708648649,
|
|
125
|
+
1342533948,
|
|
126
|
+
654459306,
|
|
127
|
+
3188396048,
|
|
128
|
+
3373015174,
|
|
129
|
+
1466479909,
|
|
130
|
+
544179635,
|
|
131
|
+
3110523913,
|
|
132
|
+
3462522015,
|
|
133
|
+
1591671054,
|
|
134
|
+
702138776,
|
|
135
|
+
2966460450,
|
|
136
|
+
3352799412,
|
|
137
|
+
1504918807,
|
|
138
|
+
783551873,
|
|
139
|
+
3082640443,
|
|
140
|
+
3233442989,
|
|
141
|
+
3988292384,
|
|
142
|
+
2596254646,
|
|
143
|
+
62317068,
|
|
144
|
+
1957810842,
|
|
145
|
+
3939845945,
|
|
146
|
+
2647816111,
|
|
147
|
+
81470997,
|
|
148
|
+
1943803523,
|
|
149
|
+
3814918930,
|
|
150
|
+
2489596804,
|
|
151
|
+
225274430,
|
|
152
|
+
2053790376,
|
|
153
|
+
3826175755,
|
|
154
|
+
2466906013,
|
|
155
|
+
167816743,
|
|
156
|
+
2097651377,
|
|
157
|
+
4027552580,
|
|
158
|
+
2265490386,
|
|
159
|
+
503444072,
|
|
160
|
+
1762050814,
|
|
161
|
+
4150417245,
|
|
162
|
+
2154129355,
|
|
163
|
+
426522225,
|
|
164
|
+
1852507879,
|
|
165
|
+
4275313526,
|
|
166
|
+
2312317920,
|
|
167
|
+
282753626,
|
|
168
|
+
1742555852,
|
|
169
|
+
4189708143,
|
|
170
|
+
2394877945,
|
|
171
|
+
397917763,
|
|
172
|
+
1622183637,
|
|
173
|
+
3604390888,
|
|
174
|
+
2714866558,
|
|
175
|
+
953729732,
|
|
176
|
+
1340076626,
|
|
177
|
+
3518719985,
|
|
178
|
+
2797360999,
|
|
179
|
+
1068828381,
|
|
180
|
+
1219638859,
|
|
181
|
+
3624741850,
|
|
182
|
+
2936675148,
|
|
183
|
+
906185462,
|
|
184
|
+
1090812512,
|
|
185
|
+
3747672003,
|
|
186
|
+
2825379669,
|
|
187
|
+
829329135,
|
|
188
|
+
1181335161,
|
|
189
|
+
3412177804,
|
|
190
|
+
3160834842,
|
|
191
|
+
628085408,
|
|
192
|
+
1382605366,
|
|
193
|
+
3423369109,
|
|
194
|
+
3138078467,
|
|
195
|
+
570562233,
|
|
196
|
+
1426400815,
|
|
197
|
+
3317316542,
|
|
198
|
+
2998733608,
|
|
199
|
+
733239954,
|
|
200
|
+
1555261956,
|
|
201
|
+
3268935591,
|
|
202
|
+
3050360625,
|
|
203
|
+
752459403,
|
|
204
|
+
1541320221,
|
|
205
|
+
2607071920,
|
|
206
|
+
3965973030,
|
|
207
|
+
1969922972,
|
|
208
|
+
40735498,
|
|
209
|
+
2617837225,
|
|
210
|
+
3943577151,
|
|
211
|
+
1913087877,
|
|
212
|
+
83908371,
|
|
213
|
+
2512341634,
|
|
214
|
+
3803740692,
|
|
215
|
+
2075208622,
|
|
216
|
+
213261112,
|
|
217
|
+
2463272603,
|
|
218
|
+
3855990285,
|
|
219
|
+
2094854071,
|
|
220
|
+
198958881,
|
|
221
|
+
2262029012,
|
|
222
|
+
4057260610,
|
|
223
|
+
1759359992,
|
|
224
|
+
534414190,
|
|
225
|
+
2176718541,
|
|
226
|
+
4139329115,
|
|
227
|
+
1873836001,
|
|
228
|
+
414664567,
|
|
229
|
+
2282248934,
|
|
230
|
+
4279200368,
|
|
231
|
+
1711684554,
|
|
232
|
+
285281116,
|
|
233
|
+
2405801727,
|
|
234
|
+
4167216745,
|
|
235
|
+
1634467795,
|
|
236
|
+
376229701,
|
|
237
|
+
2685067896,
|
|
238
|
+
3608007406,
|
|
239
|
+
1308918612,
|
|
240
|
+
956543938,
|
|
241
|
+
2808555105,
|
|
242
|
+
3495958263,
|
|
243
|
+
1231636301,
|
|
244
|
+
1047427035,
|
|
245
|
+
2932959818,
|
|
246
|
+
3654703836,
|
|
247
|
+
1088359270,
|
|
248
|
+
936918e3,
|
|
249
|
+
2847714899,
|
|
250
|
+
3736837829,
|
|
251
|
+
1202900863,
|
|
252
|
+
817233897,
|
|
253
|
+
3183342108,
|
|
254
|
+
3401237130,
|
|
255
|
+
1404277552,
|
|
256
|
+
615818150,
|
|
257
|
+
3134207493,
|
|
258
|
+
3453421203,
|
|
259
|
+
1423857449,
|
|
260
|
+
601450431,
|
|
261
|
+
3009837614,
|
|
262
|
+
3294710456,
|
|
263
|
+
1567103746,
|
|
264
|
+
711928724,
|
|
265
|
+
3020668471,
|
|
266
|
+
3272380065,
|
|
267
|
+
1510334235,
|
|
268
|
+
755167117
|
|
269
|
+
];
|
|
270
|
+
if (typeof Int32Array !== "undefined") {
|
|
271
|
+
CRC_TABLE = new Int32Array(CRC_TABLE);
|
|
272
|
+
}
|
|
273
|
+
function ensureBuffer(input) {
|
|
274
|
+
if (Buffer.isBuffer(input)) {
|
|
275
|
+
return input;
|
|
276
|
+
}
|
|
277
|
+
var hasNewBufferAPI = typeof Buffer.alloc === "function" && typeof Buffer.from === "function";
|
|
278
|
+
if (typeof input === "number") {
|
|
279
|
+
return hasNewBufferAPI ? Buffer.alloc(input) : new Buffer(input);
|
|
280
|
+
} else if (typeof input === "string") {
|
|
281
|
+
return hasNewBufferAPI ? Buffer.from(input) : new Buffer(input);
|
|
282
|
+
} else {
|
|
283
|
+
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function bufferizeInt(num) {
|
|
287
|
+
var tmp = ensureBuffer(4);
|
|
288
|
+
tmp.writeInt32BE(num, 0);
|
|
289
|
+
return tmp;
|
|
290
|
+
}
|
|
291
|
+
function _crc32(buf, previous) {
|
|
292
|
+
buf = ensureBuffer(buf);
|
|
293
|
+
if (Buffer.isBuffer(previous)) {
|
|
294
|
+
previous = previous.readUInt32BE(0);
|
|
295
|
+
}
|
|
296
|
+
var crc = ~~previous ^ -1;
|
|
297
|
+
for (var n = 0; n < buf.length; n++) {
|
|
298
|
+
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
299
|
+
}
|
|
300
|
+
return crc ^ -1;
|
|
301
|
+
}
|
|
302
|
+
function crc32() {
|
|
303
|
+
return bufferizeInt(_crc32.apply(null, arguments));
|
|
304
|
+
}
|
|
305
|
+
crc32.signed = function() {
|
|
306
|
+
return _crc32.apply(null, arguments);
|
|
307
|
+
};
|
|
308
|
+
crc32.unsigned = function() {
|
|
309
|
+
return _crc32.apply(null, arguments) >>> 0;
|
|
310
|
+
};
|
|
311
|
+
module.exports = crc32;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js
|
|
316
|
+
var require_pend = __commonJS({
|
|
317
|
+
"node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js"(exports, module) {
|
|
318
|
+
"use strict";
|
|
319
|
+
module.exports = Pend;
|
|
320
|
+
function Pend() {
|
|
321
|
+
this.pending = 0;
|
|
322
|
+
this.max = Infinity;
|
|
323
|
+
this.listeners = [];
|
|
324
|
+
this.waiting = [];
|
|
325
|
+
this.error = null;
|
|
326
|
+
}
|
|
327
|
+
Pend.prototype.go = function(fn) {
|
|
328
|
+
if (this.pending < this.max) {
|
|
329
|
+
pendGo(this, fn);
|
|
330
|
+
} else {
|
|
331
|
+
this.waiting.push(fn);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
Pend.prototype.wait = function(cb) {
|
|
335
|
+
if (this.pending === 0) {
|
|
336
|
+
cb(this.error);
|
|
337
|
+
} else {
|
|
338
|
+
this.listeners.push(cb);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
Pend.prototype.hold = function() {
|
|
342
|
+
return pendHold(this);
|
|
343
|
+
};
|
|
344
|
+
function pendHold(self) {
|
|
345
|
+
self.pending += 1;
|
|
346
|
+
var called = false;
|
|
347
|
+
return onCb;
|
|
348
|
+
function onCb(err) {
|
|
349
|
+
if (called) throw new Error("callback called twice");
|
|
350
|
+
called = true;
|
|
351
|
+
self.error = self.error || err;
|
|
352
|
+
self.pending -= 1;
|
|
353
|
+
if (self.waiting.length > 0 && self.pending < self.max) {
|
|
354
|
+
pendGo(self, self.waiting.shift());
|
|
355
|
+
} else if (self.pending === 0) {
|
|
356
|
+
var listeners = self.listeners;
|
|
357
|
+
self.listeners = [];
|
|
358
|
+
listeners.forEach(cbListener);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function cbListener(listener) {
|
|
362
|
+
listener(self.error);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function pendGo(self, fn) {
|
|
366
|
+
fn(pendHold(self));
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
export {
|
|
372
|
+
require_pend,
|
|
373
|
+
require_buffer_crc32
|
|
374
|
+
};
|