@harbour-enterprises/superdoc 0.9.31 → 0.9.33
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/chunks/{index-CqRwYOdx.cjs → index--PIRPKWt.cjs} +1 -1
- package/dist/chunks/{index-dZKHAFXF.es.js → index-B5GDfEJg.es.js} +1 -1
- package/dist/chunks/index-Bq_aNm9n.es.js +473 -0
- package/dist/chunks/index-DrgTIkvI.cjs +1 -0
- package/dist/chunks/{super-editor.es-Cfp9d4tz.es.js → super-editor.es-B8noCvT1.es.js} +5226 -5187
- package/dist/chunks/{super-editor.es-PLzciugT.cjs → super-editor.es-y2QD_ueu.cjs} +64 -64
- package/dist/chunks/{url-BxDGAI6E.es.js → url-BDmRlERW.es.js} +1 -1
- package/dist/chunks/{url-6Xu7gR4T.cjs → url-C5DCBLAS.cjs} +1 -1
- package/dist/chunks/xml-js-DMX8C2aY.es.js +2965 -0
- package/dist/chunks/xml-js-DN6JJ8Mw.cjs +10 -0
- package/dist/style.css +1 -1
- package/dist/super-editor/chunks/{converter-DPs2uVUI.js → converter-CdhiEvSA.js} +1989 -1940
- package/dist/super-editor/chunks/{docx-zipper-qfQSstu1.js → docx-zipper-Cb4eXMOp.js} +1 -1
- package/dist/super-editor/chunks/{editor-BHdWrpsU.js → editor-Czx51mKu.js} +1191 -1200
- package/dist/super-editor/chunks/{toolbar-xuviIFg4.js → toolbar-BE-PZVKR.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/tableImporter.d.ts +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/tableImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/table/tableHelpers/createColGroup.d.ts +2 -0
- package/dist/super-editor/extensions/table/tableHelpers/createColGroup.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +36 -36
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DX0vnkoa.d.ts +3 -0
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DX0vnkoa.d.ts.map +1 -0
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
- package/dist/super-editor/tests/export/tableExporter.test.d.ts +2 -0
- package/dist/super-editor/tests/export/tableExporter.test.d.ts.map +1 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +3961 -3923
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-BXKGjuVW.cjs +0 -1
- package/dist/chunks/index-DjLrg1eZ.es.js +0 -1676
- package/dist/chunks/xml-js-BAML2_fM.es.js +0 -1757
- package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./jszip-ChlzEvf9.cjs"),f=require("./index-
|
|
1
|
+
"use strict";const p=require("./jszip-ChlzEvf9.cjs"),f=require("./index-DrgTIkvI.cjs");function d(i,o){for(var c=0;c<o.length;c++){const e=o[c];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in i)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(i){var o=f.streamHttp,c=f.require$$1,e=i.exports;for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r]);e.request=function(t,s){return t=n(t),o.request.call(this,t,s)},e.get=function(t,s){return t=n(t),o.get.call(this,t,s)};function n(t){if(typeof t=="string"&&(t=c.parse(t)),t.protocol||(t.protocol="https:"),t.protocol!=="https:")throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}})(u);var l=u.exports;const g=p.getDefaultExportFromCjs(l),h=d({__proto__:null,default:g},[l]);exports.index=h;
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { c as d, B as p, a as L, g as k } from "./jszip-DSGi1sNe.es.js";
|
|
2
|
+
import { p as T } from "./vue-BDbTsTMu.es.js";
|
|
3
|
+
import { r as I, a as U, b as D, _ as F, c as x, e as B, p as G, i as q } from "./xml-js-DMX8C2aY.es.js";
|
|
4
|
+
import { u as $ } from "./url-BDmRlERW.es.js";
|
|
5
|
+
function X(e, r) {
|
|
6
|
+
for (var o = 0; o < r.length; o++) {
|
|
7
|
+
const n = r[o];
|
|
8
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
9
|
+
for (const t in n)
|
|
10
|
+
if (t !== "default" && !(t in e)) {
|
|
11
|
+
const f = Object.getOwnPropertyDescriptor(n, t);
|
|
12
|
+
f && Object.defineProperty(e, t, f.get ? f : {
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
get: () => n[t]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
}
|
|
21
|
+
var R = {}, P = { exports: {} }, C = {};
|
|
22
|
+
(function(e) {
|
|
23
|
+
e.fetch = t(d.fetch) && t(d.ReadableStream), e.writableStream = t(d.WritableStream), e.abortController = t(d.AbortController);
|
|
24
|
+
var r;
|
|
25
|
+
function o() {
|
|
26
|
+
if (r !== void 0) return r;
|
|
27
|
+
if (d.XMLHttpRequest) {
|
|
28
|
+
r = new d.XMLHttpRequest();
|
|
29
|
+
try {
|
|
30
|
+
r.open("GET", d.XDomainRequest ? "/" : "https://example.com");
|
|
31
|
+
} catch {
|
|
32
|
+
r = null;
|
|
33
|
+
}
|
|
34
|
+
} else
|
|
35
|
+
r = null;
|
|
36
|
+
return r;
|
|
37
|
+
}
|
|
38
|
+
function n(f) {
|
|
39
|
+
var i = o();
|
|
40
|
+
if (!i) return !1;
|
|
41
|
+
try {
|
|
42
|
+
return i.responseType = f, i.responseType === f;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
return !1;
|
|
46
|
+
}
|
|
47
|
+
e.arraybuffer = e.fetch || n("arraybuffer"), e.msstream = !e.fetch && n("ms-stream"), e.mozchunkedarraybuffer = !e.fetch && n("moz-chunked-arraybuffer"), e.overrideMimeType = e.fetch || (o() ? t(o().overrideMimeType) : !1);
|
|
48
|
+
function t(f) {
|
|
49
|
+
return typeof f == "function";
|
|
50
|
+
}
|
|
51
|
+
r = null;
|
|
52
|
+
})(C);
|
|
53
|
+
var y = {}, g = { exports: {} };
|
|
54
|
+
(function(e, r) {
|
|
55
|
+
r = e.exports = I(), r.Stream = r, r.Readable = r, r.Writable = U(), r.Duplex = D(), r.Transform = F, r.PassThrough = x, r.finished = B, r.pipeline = G;
|
|
56
|
+
})(g, g.exports);
|
|
57
|
+
var H = g.exports, S = C, j = q, M = H, v = y.readyStates = {
|
|
58
|
+
UNSENT: 0,
|
|
59
|
+
OPENED: 1,
|
|
60
|
+
HEADERS_RECEIVED: 2,
|
|
61
|
+
LOADING: 3,
|
|
62
|
+
DONE: 4
|
|
63
|
+
}, E = y.IncomingMessage = function(e, r, o, n) {
|
|
64
|
+
var t = this;
|
|
65
|
+
if (M.Readable.call(t), t._mode = o, t.headers = {}, t.rawHeaders = [], t.trailers = {}, t.rawTrailers = [], t.on("end", function() {
|
|
66
|
+
T.nextTick(function() {
|
|
67
|
+
t.emit("close");
|
|
68
|
+
});
|
|
69
|
+
}), o === "fetch") {
|
|
70
|
+
let m = function() {
|
|
71
|
+
i.read().then(function(s) {
|
|
72
|
+
if (!t._destroyed) {
|
|
73
|
+
if (n(s.done), s.done) {
|
|
74
|
+
t.push(null);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
t.push(p.from(s.value)), m();
|
|
78
|
+
}
|
|
79
|
+
}).catch(function(s) {
|
|
80
|
+
n(!0), t._destroyed || t.emit("error", s);
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
if (t._fetchResponse = r, t.url = r.url, t.statusCode = r.status, t.statusMessage = r.statusText, r.headers.forEach(function(s, c) {
|
|
84
|
+
t.headers[c.toLowerCase()] = s, t.rawHeaders.push(c, s);
|
|
85
|
+
}), S.writableStream) {
|
|
86
|
+
var f = new WritableStream({
|
|
87
|
+
write: function(s) {
|
|
88
|
+
return n(!1), new Promise(function(c, b) {
|
|
89
|
+
t._destroyed ? b() : t.push(p.from(s)) ? c() : t._resumeFetch = c;
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
close: function() {
|
|
93
|
+
n(!0), t._destroyed || t.push(null);
|
|
94
|
+
},
|
|
95
|
+
abort: function(s) {
|
|
96
|
+
n(!0), t._destroyed || t.emit("error", s);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
try {
|
|
100
|
+
r.body.pipeTo(f).catch(function(s) {
|
|
101
|
+
n(!0), t._destroyed || t.emit("error", s);
|
|
102
|
+
});
|
|
103
|
+
return;
|
|
104
|
+
} catch {
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
var i = r.body.getReader();
|
|
108
|
+
m();
|
|
109
|
+
} else {
|
|
110
|
+
t._xhr = e, t._pos = 0, t.url = e.responseURL, t.statusCode = e.status, t.statusMessage = e.statusText;
|
|
111
|
+
var a = e.getAllResponseHeaders().split(/\r?\n/);
|
|
112
|
+
if (a.forEach(function(m) {
|
|
113
|
+
var s = m.match(/^([^:]+):\s*(.*)/);
|
|
114
|
+
if (s) {
|
|
115
|
+
var c = s[1].toLowerCase();
|
|
116
|
+
c === "set-cookie" ? (t.headers[c] === void 0 && (t.headers[c] = []), t.headers[c].push(s[2])) : t.headers[c] !== void 0 ? t.headers[c] += ", " + s[2] : t.headers[c] = s[2], t.rawHeaders.push(s[1], s[2]);
|
|
117
|
+
}
|
|
118
|
+
}), t._charset = "x-user-defined", !S.overrideMimeType) {
|
|
119
|
+
var u = t.rawHeaders["mime-type"];
|
|
120
|
+
if (u) {
|
|
121
|
+
var h = u.match(/;\s*charset=([^;])(;|$)/);
|
|
122
|
+
h && (t._charset = h[1].toLowerCase());
|
|
123
|
+
}
|
|
124
|
+
t._charset || (t._charset = "utf-8");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
j(E, M.Readable);
|
|
129
|
+
E.prototype._read = function() {
|
|
130
|
+
var e = this, r = e._resumeFetch;
|
|
131
|
+
r && (e._resumeFetch = null, r());
|
|
132
|
+
};
|
|
133
|
+
E.prototype._onXHRProgress = function(e) {
|
|
134
|
+
var r = this, o = r._xhr, n = null;
|
|
135
|
+
switch (r._mode) {
|
|
136
|
+
case "text":
|
|
137
|
+
if (n = o.responseText, n.length > r._pos) {
|
|
138
|
+
var t = n.substr(r._pos);
|
|
139
|
+
if (r._charset === "x-user-defined") {
|
|
140
|
+
for (var f = p.alloc(t.length), i = 0; i < t.length; i++)
|
|
141
|
+
f[i] = t.charCodeAt(i) & 255;
|
|
142
|
+
r.push(f);
|
|
143
|
+
} else
|
|
144
|
+
r.push(t, r._charset);
|
|
145
|
+
r._pos = n.length;
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case "arraybuffer":
|
|
149
|
+
if (o.readyState !== v.DONE || !o.response)
|
|
150
|
+
break;
|
|
151
|
+
n = o.response, r.push(p.from(new Uint8Array(n)));
|
|
152
|
+
break;
|
|
153
|
+
case "moz-chunked-arraybuffer":
|
|
154
|
+
if (n = o.response, o.readyState !== v.LOADING || !n)
|
|
155
|
+
break;
|
|
156
|
+
r.push(p.from(new Uint8Array(n)));
|
|
157
|
+
break;
|
|
158
|
+
case "ms-stream":
|
|
159
|
+
if (n = o.response, o.readyState !== v.LOADING)
|
|
160
|
+
break;
|
|
161
|
+
var a = new d.MSStreamReader();
|
|
162
|
+
a.onprogress = function() {
|
|
163
|
+
a.result.byteLength > r._pos && (r.push(p.from(new Uint8Array(a.result.slice(r._pos)))), r._pos = a.result.byteLength);
|
|
164
|
+
}, a.onload = function() {
|
|
165
|
+
e(!0), r.push(null);
|
|
166
|
+
}, a.readAsArrayBuffer(n);
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
r._xhr.readyState === v.DONE && r._mode !== "ms-stream" && (e(!0), r.push(null));
|
|
170
|
+
};
|
|
171
|
+
var _ = C, z = q, N = y, w = H, K = N.IncomingMessage, O = N.readyStates;
|
|
172
|
+
function V(e, r) {
|
|
173
|
+
return _.fetch && r ? "fetch" : _.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : _.msstream ? "ms-stream" : _.arraybuffer && e ? "arraybuffer" : "text";
|
|
174
|
+
}
|
|
175
|
+
var l = P.exports = function(e) {
|
|
176
|
+
var r = this;
|
|
177
|
+
w.Writable.call(r), r._opts = e, r._body = [], r._headers = {}, e.auth && r.setHeader("Authorization", "Basic " + p.from(e.auth).toString("base64")), Object.keys(e.headers).forEach(function(t) {
|
|
178
|
+
r.setHeader(t, e.headers[t]);
|
|
179
|
+
});
|
|
180
|
+
var o, n = !0;
|
|
181
|
+
if (e.mode === "disable-fetch" || "requestTimeout" in e && !_.abortController)
|
|
182
|
+
n = !1, o = !0;
|
|
183
|
+
else if (e.mode === "prefer-streaming")
|
|
184
|
+
o = !1;
|
|
185
|
+
else if (e.mode === "allow-wrong-content-type")
|
|
186
|
+
o = !_.overrideMimeType;
|
|
187
|
+
else if (!e.mode || e.mode === "default" || e.mode === "prefer-fast")
|
|
188
|
+
o = !0;
|
|
189
|
+
else
|
|
190
|
+
throw new Error("Invalid value for opts.mode");
|
|
191
|
+
r._mode = V(o, n), r._fetchTimer = null, r._socketTimeout = null, r._socketTimer = null, r.on("finish", function() {
|
|
192
|
+
r._onFinish();
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
z(l, w.Writable);
|
|
196
|
+
l.prototype.setHeader = function(e, r) {
|
|
197
|
+
var o = this, n = e.toLowerCase();
|
|
198
|
+
Y.indexOf(n) === -1 && (o._headers[n] = {
|
|
199
|
+
name: e,
|
|
200
|
+
value: r
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
l.prototype.getHeader = function(e) {
|
|
204
|
+
var r = this._headers[e.toLowerCase()];
|
|
205
|
+
return r ? r.value : null;
|
|
206
|
+
};
|
|
207
|
+
l.prototype.removeHeader = function(e) {
|
|
208
|
+
var r = this;
|
|
209
|
+
delete r._headers[e.toLowerCase()];
|
|
210
|
+
};
|
|
211
|
+
l.prototype._onFinish = function() {
|
|
212
|
+
var e = this;
|
|
213
|
+
if (!e._destroyed) {
|
|
214
|
+
var r = e._opts;
|
|
215
|
+
"timeout" in r && r.timeout !== 0 && e.setTimeout(r.timeout);
|
|
216
|
+
var o = e._headers, n = null;
|
|
217
|
+
r.method !== "GET" && r.method !== "HEAD" && (n = new Blob(e._body, {
|
|
218
|
+
type: (o["content-type"] || {}).value || ""
|
|
219
|
+
}));
|
|
220
|
+
var t = [];
|
|
221
|
+
if (Object.keys(o).forEach(function(u) {
|
|
222
|
+
var h = o[u].name, m = o[u].value;
|
|
223
|
+
Array.isArray(m) ? m.forEach(function(s) {
|
|
224
|
+
t.push([h, s]);
|
|
225
|
+
}) : t.push([h, m]);
|
|
226
|
+
}), e._mode === "fetch") {
|
|
227
|
+
var f = null;
|
|
228
|
+
if (_.abortController) {
|
|
229
|
+
var i = new AbortController();
|
|
230
|
+
f = i.signal, e._fetchAbortController = i, "requestTimeout" in r && r.requestTimeout !== 0 && (e._fetchTimer = d.setTimeout(function() {
|
|
231
|
+
e.emit("requestTimeout"), e._fetchAbortController && e._fetchAbortController.abort();
|
|
232
|
+
}, r.requestTimeout));
|
|
233
|
+
}
|
|
234
|
+
d.fetch(e._opts.url, {
|
|
235
|
+
method: e._opts.method,
|
|
236
|
+
headers: t,
|
|
237
|
+
body: n || void 0,
|
|
238
|
+
mode: "cors",
|
|
239
|
+
credentials: r.withCredentials ? "include" : "same-origin",
|
|
240
|
+
signal: f
|
|
241
|
+
}).then(function(u) {
|
|
242
|
+
e._fetchResponse = u, e._resetTimers(!1), e._connect();
|
|
243
|
+
}, function(u) {
|
|
244
|
+
e._resetTimers(!0), e._destroyed || e.emit("error", u);
|
|
245
|
+
});
|
|
246
|
+
} else {
|
|
247
|
+
var a = e._xhr = new d.XMLHttpRequest();
|
|
248
|
+
try {
|
|
249
|
+
a.open(e._opts.method, e._opts.url, !0);
|
|
250
|
+
} catch (u) {
|
|
251
|
+
T.nextTick(function() {
|
|
252
|
+
e.emit("error", u);
|
|
253
|
+
});
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
"responseType" in a && (a.responseType = e._mode), "withCredentials" in a && (a.withCredentials = !!r.withCredentials), e._mode === "text" && "overrideMimeType" in a && a.overrideMimeType("text/plain; charset=x-user-defined"), "requestTimeout" in r && (a.timeout = r.requestTimeout, a.ontimeout = function() {
|
|
257
|
+
e.emit("requestTimeout");
|
|
258
|
+
}), t.forEach(function(u) {
|
|
259
|
+
a.setRequestHeader(u[0], u[1]);
|
|
260
|
+
}), e._response = null, a.onreadystatechange = function() {
|
|
261
|
+
switch (a.readyState) {
|
|
262
|
+
case O.LOADING:
|
|
263
|
+
case O.DONE:
|
|
264
|
+
e._onXHRProgress();
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
}, e._mode === "moz-chunked-arraybuffer" && (a.onprogress = function() {
|
|
268
|
+
e._onXHRProgress();
|
|
269
|
+
}), a.onerror = function() {
|
|
270
|
+
e._destroyed || (e._resetTimers(!0), e.emit("error", new Error("XHR error")));
|
|
271
|
+
};
|
|
272
|
+
try {
|
|
273
|
+
a.send(n);
|
|
274
|
+
} catch (u) {
|
|
275
|
+
T.nextTick(function() {
|
|
276
|
+
e.emit("error", u);
|
|
277
|
+
});
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
function W(e) {
|
|
284
|
+
try {
|
|
285
|
+
var r = e.status;
|
|
286
|
+
return r !== null && r !== 0;
|
|
287
|
+
} catch {
|
|
288
|
+
return !1;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
l.prototype._onXHRProgress = function() {
|
|
292
|
+
var e = this;
|
|
293
|
+
e._resetTimers(!1), !(!W(e._xhr) || e._destroyed) && (e._response || e._connect(), e._response._onXHRProgress(e._resetTimers.bind(e)));
|
|
294
|
+
};
|
|
295
|
+
l.prototype._connect = function() {
|
|
296
|
+
var e = this;
|
|
297
|
+
e._destroyed || (e._response = new K(e._xhr, e._fetchResponse, e._mode, e._resetTimers.bind(e)), e._response.on("error", function(r) {
|
|
298
|
+
e.emit("error", r);
|
|
299
|
+
}), e.emit("response", e._response));
|
|
300
|
+
};
|
|
301
|
+
l.prototype._write = function(e, r, o) {
|
|
302
|
+
var n = this;
|
|
303
|
+
n._body.push(e), o();
|
|
304
|
+
};
|
|
305
|
+
l.prototype._resetTimers = function(e) {
|
|
306
|
+
var r = this;
|
|
307
|
+
d.clearTimeout(r._socketTimer), r._socketTimer = null, e ? (d.clearTimeout(r._fetchTimer), r._fetchTimer = null) : r._socketTimeout && (r._socketTimer = d.setTimeout(function() {
|
|
308
|
+
r.emit("timeout");
|
|
309
|
+
}, r._socketTimeout));
|
|
310
|
+
};
|
|
311
|
+
l.prototype.abort = l.prototype.destroy = function(e) {
|
|
312
|
+
var r = this;
|
|
313
|
+
r._destroyed = !0, r._resetTimers(!0), r._response && (r._response._destroyed = !0), r._xhr ? r._xhr.abort() : r._fetchAbortController && r._fetchAbortController.abort(), e && r.emit("error", e);
|
|
314
|
+
};
|
|
315
|
+
l.prototype.end = function(e, r, o) {
|
|
316
|
+
var n = this;
|
|
317
|
+
typeof e == "function" && (o = e, e = void 0), w.Writable.prototype.end.call(n, e, r, o);
|
|
318
|
+
};
|
|
319
|
+
l.prototype.setTimeout = function(e, r) {
|
|
320
|
+
var o = this;
|
|
321
|
+
r && o.once("timeout", r), o._socketTimeout = e, o._resetTimers(!1);
|
|
322
|
+
};
|
|
323
|
+
l.prototype.flushHeaders = function() {
|
|
324
|
+
};
|
|
325
|
+
l.prototype.setNoDelay = function() {
|
|
326
|
+
};
|
|
327
|
+
l.prototype.setSocketKeepAlive = function() {
|
|
328
|
+
};
|
|
329
|
+
var Y = [
|
|
330
|
+
"accept-charset",
|
|
331
|
+
"accept-encoding",
|
|
332
|
+
"access-control-request-headers",
|
|
333
|
+
"access-control-request-method",
|
|
334
|
+
"connection",
|
|
335
|
+
"content-length",
|
|
336
|
+
"cookie",
|
|
337
|
+
"cookie2",
|
|
338
|
+
"date",
|
|
339
|
+
"dnt",
|
|
340
|
+
"expect",
|
|
341
|
+
"host",
|
|
342
|
+
"keep-alive",
|
|
343
|
+
"origin",
|
|
344
|
+
"referer",
|
|
345
|
+
"te",
|
|
346
|
+
"trailer",
|
|
347
|
+
"transfer-encoding",
|
|
348
|
+
"upgrade",
|
|
349
|
+
"via"
|
|
350
|
+
], J = P.exports, Q = ee, Z = Object.prototype.hasOwnProperty;
|
|
351
|
+
function ee() {
|
|
352
|
+
for (var e = {}, r = 0; r < arguments.length; r++) {
|
|
353
|
+
var o = arguments[r];
|
|
354
|
+
for (var n in o)
|
|
355
|
+
Z.call(o, n) && (e[n] = o[n]);
|
|
356
|
+
}
|
|
357
|
+
return e;
|
|
358
|
+
}
|
|
359
|
+
var re = {
|
|
360
|
+
100: "Continue",
|
|
361
|
+
101: "Switching Protocols",
|
|
362
|
+
102: "Processing",
|
|
363
|
+
200: "OK",
|
|
364
|
+
201: "Created",
|
|
365
|
+
202: "Accepted",
|
|
366
|
+
203: "Non-Authoritative Information",
|
|
367
|
+
204: "No Content",
|
|
368
|
+
205: "Reset Content",
|
|
369
|
+
206: "Partial Content",
|
|
370
|
+
207: "Multi-Status",
|
|
371
|
+
208: "Already Reported",
|
|
372
|
+
226: "IM Used",
|
|
373
|
+
300: "Multiple Choices",
|
|
374
|
+
301: "Moved Permanently",
|
|
375
|
+
302: "Found",
|
|
376
|
+
303: "See Other",
|
|
377
|
+
304: "Not Modified",
|
|
378
|
+
305: "Use Proxy",
|
|
379
|
+
307: "Temporary Redirect",
|
|
380
|
+
308: "Permanent Redirect",
|
|
381
|
+
400: "Bad Request",
|
|
382
|
+
401: "Unauthorized",
|
|
383
|
+
402: "Payment Required",
|
|
384
|
+
403: "Forbidden",
|
|
385
|
+
404: "Not Found",
|
|
386
|
+
405: "Method Not Allowed",
|
|
387
|
+
406: "Not Acceptable",
|
|
388
|
+
407: "Proxy Authentication Required",
|
|
389
|
+
408: "Request Timeout",
|
|
390
|
+
409: "Conflict",
|
|
391
|
+
410: "Gone",
|
|
392
|
+
411: "Length Required",
|
|
393
|
+
412: "Precondition Failed",
|
|
394
|
+
413: "Payload Too Large",
|
|
395
|
+
414: "URI Too Long",
|
|
396
|
+
415: "Unsupported Media Type",
|
|
397
|
+
416: "Range Not Satisfiable",
|
|
398
|
+
417: "Expectation Failed",
|
|
399
|
+
418: "I'm a teapot",
|
|
400
|
+
421: "Misdirected Request",
|
|
401
|
+
422: "Unprocessable Entity",
|
|
402
|
+
423: "Locked",
|
|
403
|
+
424: "Failed Dependency",
|
|
404
|
+
425: "Unordered Collection",
|
|
405
|
+
426: "Upgrade Required",
|
|
406
|
+
428: "Precondition Required",
|
|
407
|
+
429: "Too Many Requests",
|
|
408
|
+
431: "Request Header Fields Too Large",
|
|
409
|
+
451: "Unavailable For Legal Reasons",
|
|
410
|
+
500: "Internal Server Error",
|
|
411
|
+
501: "Not Implemented",
|
|
412
|
+
502: "Bad Gateway",
|
|
413
|
+
503: "Service Unavailable",
|
|
414
|
+
504: "Gateway Timeout",
|
|
415
|
+
505: "HTTP Version Not Supported",
|
|
416
|
+
506: "Variant Also Negotiates",
|
|
417
|
+
507: "Insufficient Storage",
|
|
418
|
+
508: "Loop Detected",
|
|
419
|
+
509: "Bandwidth Limit Exceeded",
|
|
420
|
+
510: "Not Extended",
|
|
421
|
+
511: "Network Authentication Required"
|
|
422
|
+
};
|
|
423
|
+
const te = /* @__PURE__ */ L($);
|
|
424
|
+
(function(e) {
|
|
425
|
+
var r = J, o = y, n = Q, t = re, f = te, i = e;
|
|
426
|
+
i.request = function(a, u) {
|
|
427
|
+
typeof a == "string" ? a = f.parse(a) : a = n(a);
|
|
428
|
+
var h = d.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", m = a.protocol || h, s = a.hostname || a.host, c = a.port, b = a.path || "/";
|
|
429
|
+
s && s.indexOf(":") !== -1 && (s = "[" + s + "]"), a.url = (s ? m + "//" + s : "") + (c ? ":" + c : "") + b, a.method = (a.method || "GET").toUpperCase(), a.headers = a.headers || {};
|
|
430
|
+
var A = new r(a);
|
|
431
|
+
return u && A.on("response", u), A;
|
|
432
|
+
}, i.get = function(u, h) {
|
|
433
|
+
var m = i.request(u, h);
|
|
434
|
+
return m.end(), m;
|
|
435
|
+
}, i.ClientRequest = r, i.IncomingMessage = o.IncomingMessage, i.Agent = function() {
|
|
436
|
+
}, i.Agent.defaultMaxSockets = 4, i.globalAgent = new i.Agent(), i.STATUS_CODES = t, i.METHODS = [
|
|
437
|
+
"CHECKOUT",
|
|
438
|
+
"CONNECT",
|
|
439
|
+
"COPY",
|
|
440
|
+
"DELETE",
|
|
441
|
+
"GET",
|
|
442
|
+
"HEAD",
|
|
443
|
+
"LOCK",
|
|
444
|
+
"M-SEARCH",
|
|
445
|
+
"MERGE",
|
|
446
|
+
"MKACTIVITY",
|
|
447
|
+
"MKCOL",
|
|
448
|
+
"MOVE",
|
|
449
|
+
"NOTIFY",
|
|
450
|
+
"OPTIONS",
|
|
451
|
+
"PATCH",
|
|
452
|
+
"POST",
|
|
453
|
+
"PROPFIND",
|
|
454
|
+
"PROPPATCH",
|
|
455
|
+
"PURGE",
|
|
456
|
+
"PUT",
|
|
457
|
+
"REPORT",
|
|
458
|
+
"SEARCH",
|
|
459
|
+
"SUBSCRIBE",
|
|
460
|
+
"TRACE",
|
|
461
|
+
"UNLOCK",
|
|
462
|
+
"UNSUBSCRIBE"
|
|
463
|
+
];
|
|
464
|
+
})(R);
|
|
465
|
+
const oe = /* @__PURE__ */ k(R), ue = /* @__PURE__ */ X({
|
|
466
|
+
__proto__: null,
|
|
467
|
+
default: oe
|
|
468
|
+
}, [R]);
|
|
469
|
+
export {
|
|
470
|
+
ue as i,
|
|
471
|
+
te as r,
|
|
472
|
+
R as s
|
|
473
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./jszip-ChlzEvf9.cjs"),g=require("./vue-Ckf0DkDN.cjs"),p=require("./xml-js-DN6JJ8Mw.cjs"),L=require("./url-C5DCBLAS.cjs");function G(e,r){for(var o=0;o<r.length;o++){const n=r[o];if(typeof n!="string"&&!Array.isArray(n)){for(const t in n)if(t!=="default"&&!(t in e)){const l=Object.getOwnPropertyDescriptor(n,t);l&&Object.defineProperty(e,t,l.get?l:{enumerable:!0,get:()=>n[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var y={},O={exports:{}},C={};(function(e){e.fetch=t(u.commonjsGlobal.fetch)&&t(u.commonjsGlobal.ReadableStream),e.writableStream=t(u.commonjsGlobal.WritableStream),e.abortController=t(u.commonjsGlobal.AbortController);var r;function o(){if(r!==void 0)return r;if(u.commonjsGlobal.XMLHttpRequest){r=new u.commonjsGlobal.XMLHttpRequest;try{r.open("GET",u.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function n(l){var i=o();if(!i)return!1;try{return i.responseType=l,i.responseType===l}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(o()?t(o().overrideMimeType):!1);function t(l){return typeof l=="function"}r=null})(C);var b={},R={exports:{}};(function(e,r){r=e.exports=p.require_stream_readable(),r.Stream=r,r.Readable=r,r.Writable=p.require_stream_writable(),r.Duplex=p.require_stream_duplex(),r.Transform=p._stream_transform,r.PassThrough=p._stream_passthrough,r.finished=p.endOfStream,r.pipeline=p.pipeline_1})(R,R.exports);var P=R.exports,S=C,k=p.inherits_browserExports,H=P,v=b.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},E=b.IncomingMessage=function(e,r,o,n){var t=this;if(H.Readable.call(t),t._mode=o,t.headers={},t.rawHeaders=[],t.trailers={},t.rawTrailers=[],t.on("end",function(){g.process$1.nextTick(function(){t.emit("close")})}),o==="fetch"){let m=function(){i.read().then(function(s){if(!t._destroyed){if(n(s.done),s.done){t.push(null);return}t.push(u.Buffer.from(s.value)),m()}}).catch(function(s){n(!0),t._destroyed||t.emit("error",s)})};if(t._fetchResponse=r,t.url=r.url,t.statusCode=r.status,t.statusMessage=r.statusText,r.headers.forEach(function(s,c){t.headers[c.toLowerCase()]=s,t.rawHeaders.push(c,s)}),S.writableStream){var l=new WritableStream({write:function(s){return n(!1),new Promise(function(c,T){t._destroyed?T():t.push(u.Buffer.from(s))?c():t._resumeFetch=c})},close:function(){n(!0),t._destroyed||t.push(null)},abort:function(s){n(!0),t._destroyed||t.emit("error",s)}});try{r.body.pipeTo(l).catch(function(s){n(!0),t._destroyed||t.emit("error",s)});return}catch{}}var i=r.body.getReader();m()}else{t._xhr=e,t._pos=0,t.url=e.responseURL,t.statusCode=e.status,t.statusMessage=e.statusText;var a=e.getAllResponseHeaders().split(/\r?\n/);if(a.forEach(function(m){var s=m.match(/^([^:]+):\s*(.*)/);if(s){var c=s[1].toLowerCase();c==="set-cookie"?(t.headers[c]===void 0&&(t.headers[c]=[]),t.headers[c].push(s[2])):t.headers[c]!==void 0?t.headers[c]+=", "+s[2]:t.headers[c]=s[2],t.rawHeaders.push(s[1],s[2])}}),t._charset="x-user-defined",!S.overrideMimeType){var f=t.rawHeaders["mime-type"];if(f){var h=f.match(/;\s*charset=([^;])(;|$)/);h&&(t._charset=h[1].toLowerCase())}t._charset||(t._charset="utf-8")}}};k(E,H.Readable);E.prototype._read=function(){var e=this,r=e._resumeFetch;r&&(e._resumeFetch=null,r())};E.prototype._onXHRProgress=function(e){var r=this,o=r._xhr,n=null;switch(r._mode){case"text":if(n=o.responseText,n.length>r._pos){var t=n.substr(r._pos);if(r._charset==="x-user-defined"){for(var l=u.Buffer.alloc(t.length),i=0;i<t.length;i++)l[i]=t.charCodeAt(i)&255;r.push(l)}else r.push(t,r._charset);r._pos=n.length}break;case"arraybuffer":if(o.readyState!==v.DONE||!o.response)break;n=o.response,r.push(u.Buffer.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=o.response,o.readyState!==v.LOADING||!n)break;r.push(u.Buffer.from(new Uint8Array(n)));break;case"ms-stream":if(n=o.response,o.readyState!==v.LOADING)break;var a=new u.commonjsGlobal.MSStreamReader;a.onprogress=function(){a.result.byteLength>r._pos&&(r.push(u.Buffer.from(new Uint8Array(a.result.slice(r._pos)))),r._pos=a.result.byteLength)},a.onload=function(){e(!0),r.push(null)},a.readAsArrayBuffer(n);break}r._xhr.readyState===v.DONE&&r._mode!=="ms-stream"&&(e(!0),r.push(null))};var _=C,I=p.inherits_browserExports,M=b,w=P,j=M.IncomingMessage,q=M.readyStates;function U(e,r){return _.fetch&&r?"fetch":_.mozchunkedarraybuffer?"moz-chunked-arraybuffer":_.msstream?"ms-stream":_.arraybuffer&&e?"arraybuffer":"text"}var d=O.exports=function(e){var r=this;w.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+u.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o,n=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!_.abortController)n=!1,o=!0;else if(e.mode==="prefer-streaming")o=!1;else if(e.mode==="allow-wrong-content-type")o=!_.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")o=!0;else throw new Error("Invalid value for opts.mode");r._mode=U(o,n),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};I(d,w.Writable);d.prototype.setHeader=function(e,r){var o=this,n=e.toLowerCase();B.indexOf(n)===-1&&(o._headers[n]={name:e,value:r})};d.prototype.getHeader=function(e){var r=this._headers[e.toLowerCase()];return r?r.value:null};d.prototype.removeHeader=function(e){var r=this;delete r._headers[e.toLowerCase()]};d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts;"timeout"in r&&r.timeout!==0&&e.setTimeout(r.timeout);var o=e._headers,n=null;r.method!=="GET"&&r.method!=="HEAD"&&(n=new Blob(e._body,{type:(o["content-type"]||{}).value||""}));var t=[];if(Object.keys(o).forEach(function(f){var h=o[f].name,m=o[f].value;Array.isArray(m)?m.forEach(function(s){t.push([h,s])}):t.push([h,m])}),e._mode==="fetch"){var l=null;if(_.abortController){var i=new AbortController;l=i.signal,e._fetchAbortController=i,"requestTimeout"in r&&r.requestTimeout!==0&&(e._fetchTimer=u.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},r.requestTimeout))}u.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:t,body:n||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:l}).then(function(f){e._fetchResponse=f,e._resetTimers(!1),e._connect()},function(f){e._resetTimers(!0),e._destroyed||e.emit("error",f)})}else{var a=e._xhr=new u.commonjsGlobal.XMLHttpRequest;try{a.open(e._opts.method,e._opts.url,!0)}catch(f){g.process$1.nextTick(function(){e.emit("error",f)});return}"responseType"in a&&(a.responseType=e._mode),"withCredentials"in a&&(a.withCredentials=!!r.withCredentials),e._mode==="text"&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(a.timeout=r.requestTimeout,a.ontimeout=function(){e.emit("requestTimeout")}),t.forEach(function(f){a.setRequestHeader(f[0],f[1])}),e._response=null,a.onreadystatechange=function(){switch(a.readyState){case q.LOADING:case q.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(a.onprogress=function(){e._onXHRProgress()}),a.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{a.send(n)}catch(f){g.process$1.nextTick(function(){e.emit("error",f)});return}}}};function D(e){try{var r=e.status;return r!==null&&r!==0}catch{return!1}}d.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!D(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new j(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(r){e.emit("error",r)}),e.emit("response",e._response))};d.prototype._write=function(e,r,o){var n=this;n._body.push(e),o()};d.prototype._resetTimers=function(e){var r=this;u.commonjsGlobal.clearTimeout(r._socketTimer),r._socketTimer=null,e?(u.commonjsGlobal.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=u.commonjsGlobal.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};d.prototype.abort=d.prototype.destroy=function(e){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),e&&r.emit("error",e)};d.prototype.end=function(e,r,o){var n=this;typeof e=="function"&&(o=e,e=void 0),w.Writable.prototype.end.call(n,e,r,o)};d.prototype.setTimeout=function(e,r){var o=this;r&&o.once("timeout",r),o._socketTimeout=e,o._resetTimers(!1)};d.prototype.flushHeaders=function(){};d.prototype.setNoDelay=function(){};d.prototype.setSocketKeepAlive=function(){};var B=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],F=O.exports,x=X,$=Object.prototype.hasOwnProperty;function X(){for(var e={},r=0;r<arguments.length;r++){var o=arguments[r];for(var n in o)$.call(o,n)&&(e[n]=o[n])}return e}var z={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};const N=u.getAugmentedNamespace(L.url);(function(e){var r=F,o=b,n=x,t=z,l=N,i=e;i.request=function(a,f){typeof a=="string"?a=l.parse(a):a=n(a);var h=u.commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",m=a.protocol||h,s=a.hostname||a.host,c=a.port,T=a.path||"/";s&&s.indexOf(":")!==-1&&(s="["+s+"]"),a.url=(s?m+"//"+s:"")+(c?":"+c:"")+T,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var A=new r(a);return f&&A.on("response",f),A},i.get=function(f,h){var m=i.request(f,h);return m.end(),m},i.ClientRequest=r,i.IncomingMessage=o.IncomingMessage,i.Agent=function(){},i.Agent.defaultMaxSockets=4,i.globalAgent=new i.Agent,i.STATUS_CODES=t,i.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(y);const K=u.getDefaultExportFromCjs(y),V=G({__proto__:null,default:K},[y]);exports.index=V;exports.require$$1=N;exports.streamHttp=y;
|