@dpuse/dpuse-tool-adaltas-csv-parser 1.0.127 → 1.0.129
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.
|
@@ -919,7 +919,7 @@ function dt(e) {
|
|
|
919
919
|
}
|
|
920
920
|
default: return e;
|
|
921
921
|
}
|
|
922
|
-
}), o = r[n]; n < i; o = r[++n]) Dt(o) || !
|
|
922
|
+
}), o = r[n]; n < i; o = r[++n]) Dt(o) || !z(o) ? a += " " + o : a += " " + L(o);
|
|
923
923
|
return a;
|
|
924
924
|
}
|
|
925
925
|
function ft(t, n) {
|
|
@@ -955,7 +955,7 @@ function L(e, t) {
|
|
|
955
955
|
seen: [],
|
|
956
956
|
stylize: _t
|
|
957
957
|
};
|
|
958
|
-
return arguments.length >= 3 && (n.depth = arguments[2]), arguments.length >= 4 && (n.colors = arguments[3]), Et(t) ? n.showHidden = t : t &&
|
|
958
|
+
return arguments.length >= 3 && (n.depth = arguments[2]), arguments.length >= 4 && (n.colors = arguments[3]), Et(t) ? n.showHidden = t : t && Ft(n, t), R(n.showHidden) && (n.showHidden = !1), R(n.depth) && (n.depth = 2), R(n.colors) && (n.colors = !1), R(n.customInspect) && (n.customInspect = !0), n.colors && (n.stylize = gt), yt(n, e, n.depth);
|
|
959
959
|
}
|
|
960
960
|
L.colors = {
|
|
961
961
|
bold: [1, 22],
|
|
@@ -995,25 +995,25 @@ function vt(e) {
|
|
|
995
995
|
}), t;
|
|
996
996
|
}
|
|
997
997
|
function yt(e, t, n) {
|
|
998
|
-
if (e.customInspect && t &&
|
|
998
|
+
if (e.customInspect && t && Nt(t.inspect) && t.inspect !== L && !(t.constructor && t.constructor.prototype === t)) {
|
|
999
999
|
var r = t.inspect(n, e);
|
|
1000
1000
|
return kt(r) || (r = yt(e, r, n)), r;
|
|
1001
1001
|
}
|
|
1002
1002
|
var i = bt(e, t);
|
|
1003
1003
|
if (i) return i;
|
|
1004
1004
|
var a = Object.keys(t), o = vt(a);
|
|
1005
|
-
if (e.showHidden && (a = Object.getOwnPropertyNames(t)),
|
|
1005
|
+
if (e.showHidden && (a = Object.getOwnPropertyNames(t)), Mt(t) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0)) return xt(t);
|
|
1006
1006
|
if (a.length === 0) {
|
|
1007
|
-
if (
|
|
1007
|
+
if (Nt(t)) {
|
|
1008
1008
|
var s = t.name ? ": " + t.name : "";
|
|
1009
1009
|
return e.stylize("[Function" + s + "]", "special");
|
|
1010
1010
|
}
|
|
1011
1011
|
if (At(t)) return e.stylize(RegExp.prototype.toString.call(t), "regexp");
|
|
1012
|
-
if (
|
|
1013
|
-
if (
|
|
1012
|
+
if (jt(t)) return e.stylize(Date.prototype.toString.call(t), "date");
|
|
1013
|
+
if (Mt(t)) return xt(t);
|
|
1014
1014
|
}
|
|
1015
1015
|
var c = "", l = !1, u = ["{", "}"];
|
|
1016
|
-
if (Tt(t) && (l = !0, u = ["[", "]"]),
|
|
1016
|
+
if (Tt(t) && (l = !0, u = ["[", "]"]), Nt(t) && (c = " [Function" + (t.name ? ": " + t.name : "") + "]"), At(t) && (c = " " + RegExp.prototype.toString.call(t)), jt(t) && (c = " " + Date.prototype.toUTCString.call(t)), Mt(t) && (c = " " + xt(t)), a.length === 0 && (!l || t.length == 0)) return u[0] + c + u[1];
|
|
1017
1017
|
if (n < 0) return At(t) ? e.stylize(RegExp.prototype.toString.call(t), "regexp") : e.stylize("[Object]", "special");
|
|
1018
1018
|
e.seen.push(t);
|
|
1019
1019
|
var d = l ? St(e, t, n, o, a) : a.map(function(r) {
|
|
@@ -1035,14 +1035,14 @@ function xt(e) {
|
|
|
1035
1035
|
return "[" + Error.prototype.toString.call(e) + "]";
|
|
1036
1036
|
}
|
|
1037
1037
|
function St(e, t, n, r, i) {
|
|
1038
|
-
for (var a = [], o = 0, s = t.length; o < s; ++o)
|
|
1038
|
+
for (var a = [], o = 0, s = t.length; o < s; ++o) It(t, String(o)) ? a.push(Ct(e, t, n, r, String(o), !0)) : a.push("");
|
|
1039
1039
|
return i.forEach(function(i) {
|
|
1040
1040
|
i.match(/^\d+$/) || a.push(Ct(e, t, n, r, i, !0));
|
|
1041
1041
|
}), a;
|
|
1042
1042
|
}
|
|
1043
1043
|
function Ct(e, t, n, r, i, a) {
|
|
1044
1044
|
var o, s, c = Object.getOwnPropertyDescriptor(t, i) || { value: t[i] };
|
|
1045
|
-
if (c.get ? s = c.set ? e.stylize("[Getter/Setter]", "special") : e.stylize("[Getter]", "special") : c.set && (s = e.stylize("[Setter]", "special")),
|
|
1045
|
+
if (c.get ? s = c.set ? e.stylize("[Getter/Setter]", "special") : e.stylize("[Getter]", "special") : c.set && (s = e.stylize("[Setter]", "special")), It(r, i) || (o = "[" + i + "]"), s || (e.seen.indexOf(c.value) < 0 ? (s = Dt(n) ? yt(e, c.value, null) : yt(e, c.value, n - 1), s.indexOf("\n") > -1 && (s = a ? s.split("\n").map(function(e) {
|
|
1046
1046
|
return " " + e;
|
|
1047
1047
|
}).join("\n").substr(2) : "\n" + s.split("\n").map(function(e) {
|
|
1048
1048
|
return " " + e;
|
|
@@ -1076,64 +1076,64 @@ function R(e) {
|
|
|
1076
1076
|
return e === void 0;
|
|
1077
1077
|
}
|
|
1078
1078
|
function At(e) {
|
|
1079
|
-
return
|
|
1079
|
+
return z(e) && Pt(e) === "[object RegExp]";
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function z(e) {
|
|
1082
1082
|
return typeof e == "object" && !!e;
|
|
1083
1083
|
}
|
|
1084
|
+
function jt(e) {
|
|
1085
|
+
return z(e) && Pt(e) === "[object Date]";
|
|
1086
|
+
}
|
|
1084
1087
|
function Mt(e) {
|
|
1085
|
-
return
|
|
1088
|
+
return z(e) && (Pt(e) === "[object Error]" || e instanceof Error);
|
|
1086
1089
|
}
|
|
1087
1090
|
function Nt(e) {
|
|
1088
|
-
return jt(e) && (Ft(e) === "[object Error]" || e instanceof Error);
|
|
1089
|
-
}
|
|
1090
|
-
function Pt(e) {
|
|
1091
1091
|
return typeof e == "function";
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function Pt(e) {
|
|
1094
1094
|
return Object.prototype.toString.call(e);
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
if (!t || !
|
|
1096
|
+
function Ft(e, t) {
|
|
1097
|
+
if (!t || !z(t)) return e;
|
|
1098
1098
|
for (var n = Object.keys(t), r = n.length; r--;) e[n[r]] = t[n[r]];
|
|
1099
1099
|
return e;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function It(e, t) {
|
|
1102
1102
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function B() {
|
|
1105
1105
|
this.head = null, this.tail = null, this.length = 0;
|
|
1106
1106
|
}
|
|
1107
|
-
|
|
1107
|
+
B.prototype.push = function(e) {
|
|
1108
1108
|
var t = {
|
|
1109
1109
|
data: e,
|
|
1110
1110
|
next: null
|
|
1111
1111
|
};
|
|
1112
1112
|
this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length;
|
|
1113
|
-
},
|
|
1113
|
+
}, B.prototype.unshift = function(e) {
|
|
1114
1114
|
var t = {
|
|
1115
1115
|
data: e,
|
|
1116
1116
|
next: this.head
|
|
1117
1117
|
};
|
|
1118
1118
|
this.length === 0 && (this.tail = t), this.head = t, ++this.length;
|
|
1119
|
-
},
|
|
1119
|
+
}, B.prototype.shift = function() {
|
|
1120
1120
|
if (this.length !== 0) {
|
|
1121
1121
|
var e = this.head.data;
|
|
1122
1122
|
return this.head = this.length === 1 ? this.tail = null : this.head.next, --this.length, e;
|
|
1123
1123
|
}
|
|
1124
|
-
},
|
|
1124
|
+
}, B.prototype.clear = function() {
|
|
1125
1125
|
this.head = this.tail = null, this.length = 0;
|
|
1126
|
-
},
|
|
1126
|
+
}, B.prototype.join = function(e) {
|
|
1127
1127
|
if (this.length === 0) return "";
|
|
1128
1128
|
for (var t = this.head, n = "" + t.data; t = t.next;) n += e + t.data;
|
|
1129
1129
|
return n;
|
|
1130
|
-
},
|
|
1130
|
+
}, B.prototype.concat = function(e) {
|
|
1131
1131
|
if (this.length === 0) return _.alloc(0);
|
|
1132
1132
|
if (this.length === 1) return this.head.data;
|
|
1133
1133
|
for (var t = _.allocUnsafe(e >>> 0), n = this.head, r = 0; n;) n.data.copy(t, r), r += n.data.length, n = n.next;
|
|
1134
1134
|
return t;
|
|
1135
1135
|
};
|
|
1136
|
-
var
|
|
1136
|
+
var Lt = _.isEncoding || function(e) {
|
|
1137
1137
|
switch (e && e.toLowerCase()) {
|
|
1138
1138
|
case "hex":
|
|
1139
1139
|
case "utf8":
|
|
@@ -1149,28 +1149,28 @@ var Rt = _.isEncoding || function(e) {
|
|
|
1149
1149
|
default: return !1;
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
|
-
function
|
|
1153
|
-
if (e && !
|
|
1152
|
+
function Rt(e) {
|
|
1153
|
+
if (e && !Lt(e)) throw Error("Unknown encoding: " + e);
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
switch (this.encoding = (e || "utf8").toLowerCase().replace(/[-_]/, ""),
|
|
1155
|
+
function zt(e) {
|
|
1156
|
+
switch (this.encoding = (e || "utf8").toLowerCase().replace(/[-_]/, ""), Rt(e), this.encoding) {
|
|
1157
1157
|
case "utf8":
|
|
1158
1158
|
this.surrogateSize = 3;
|
|
1159
1159
|
break;
|
|
1160
1160
|
case "ucs2":
|
|
1161
1161
|
case "utf16le":
|
|
1162
|
-
this.surrogateSize = 2, this.detectIncompleteChar =
|
|
1162
|
+
this.surrogateSize = 2, this.detectIncompleteChar = Vt;
|
|
1163
1163
|
break;
|
|
1164
1164
|
case "base64":
|
|
1165
|
-
this.surrogateSize = 3, this.detectIncompleteChar =
|
|
1165
|
+
this.surrogateSize = 3, this.detectIncompleteChar = Ht;
|
|
1166
1166
|
break;
|
|
1167
1167
|
default:
|
|
1168
|
-
this.write =
|
|
1168
|
+
this.write = Bt;
|
|
1169
1169
|
return;
|
|
1170
1170
|
}
|
|
1171
1171
|
this.charBuffer = new _(6), this.charReceived = 0, this.charLength = 0;
|
|
1172
1172
|
}
|
|
1173
|
-
|
|
1173
|
+
zt.prototype.write = function(e) {
|
|
1174
1174
|
for (var t = ""; this.charLength;) {
|
|
1175
1175
|
var n = e.length >= this.charLength - this.charReceived ? this.charLength - this.charReceived : e.length;
|
|
1176
1176
|
if (e.copy(this.charBuffer, this.charReceived, 0, n), this.charReceived += n, this.charReceived < this.charLength) return "";
|
|
@@ -1191,7 +1191,7 @@ Bt.prototype.write = function(e) {
|
|
|
1191
1191
|
return this.charLength += a, this.charReceived += a, this.charBuffer.copy(this.charBuffer, a, 0, a), e.copy(this.charBuffer, 0, 0, a), t.substring(0, i);
|
|
1192
1192
|
}
|
|
1193
1193
|
return t;
|
|
1194
|
-
},
|
|
1194
|
+
}, zt.prototype.detectIncompleteChar = function(e) {
|
|
1195
1195
|
for (var t = e.length >= 3 ? 3 : e.length; t > 0; t--) {
|
|
1196
1196
|
var n = e[e.length - t];
|
|
1197
1197
|
if (t == 1 && n >> 5 == 6) {
|
|
@@ -1208,7 +1208,7 @@ Bt.prototype.write = function(e) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
this.charReceived = t;
|
|
1211
|
-
},
|
|
1211
|
+
}, zt.prototype.end = function(e) {
|
|
1212
1212
|
var t = "";
|
|
1213
1213
|
if (e && e.length && (t = this.write(e)), this.charReceived) {
|
|
1214
1214
|
var n = this.charReceived, r = this.charBuffer, i = this.encoding;
|
|
@@ -1216,47 +1216,47 @@ Bt.prototype.write = function(e) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return t;
|
|
1218
1218
|
};
|
|
1219
|
-
function
|
|
1219
|
+
function Bt(e) {
|
|
1220
1220
|
return e.toString(this.encoding);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Vt(e) {
|
|
1223
1223
|
this.charReceived = e.length % 2, this.charLength = this.charReceived ? 2 : 0;
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function Ht(e) {
|
|
1226
1226
|
this.charReceived = e.length % 3, this.charLength = this.charReceived ? 3 : 0;
|
|
1227
1227
|
}
|
|
1228
|
-
|
|
1229
|
-
var
|
|
1230
|
-
I(
|
|
1231
|
-
function
|
|
1228
|
+
H.ReadableState = Gt;
|
|
1229
|
+
var V = ht("stream");
|
|
1230
|
+
I(H, k);
|
|
1231
|
+
function Ut(e, t, n) {
|
|
1232
1232
|
if (typeof e.prependListener == "function") return e.prependListener(t, n);
|
|
1233
1233
|
!e._events || !e._events[t] ? e.on(t, n) : Array.isArray(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]];
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function Wt(e, t) {
|
|
1236
1236
|
return e.listeners(t).length;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
e ||= {}, this.objectMode = !!e.objectMode, t instanceof
|
|
1238
|
+
function Gt(e, t) {
|
|
1239
|
+
e ||= {}, this.objectMode = !!e.objectMode, t instanceof W && (this.objectMode = this.objectMode || !!e.readableObjectMode);
|
|
1240
1240
|
var n = e.highWaterMark, r = this.objectMode ? 16 : 16384;
|
|
1241
|
-
this.highWaterMark = n || n === 0 ? n : r, this.highWaterMark = ~~this.highWaterMark, this.buffer = new
|
|
1241
|
+
this.highWaterMark = n || n === 0 ? n : r, this.highWaterMark = ~~this.highWaterMark, this.buffer = new B(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.ranOut = !1, this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (this.decoder = new zt(e.encoding), this.encoding = e.encoding);
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1244
|
-
if (!(this instanceof
|
|
1245
|
-
this._readableState = new
|
|
1243
|
+
function H(e) {
|
|
1244
|
+
if (!(this instanceof H)) return new H(e);
|
|
1245
|
+
this._readableState = new Gt(e, this), this.readable = !0, e && typeof e.read == "function" && (this._read = e.read), k.call(this);
|
|
1246
1246
|
}
|
|
1247
|
-
|
|
1247
|
+
H.prototype.push = function(e, t) {
|
|
1248
1248
|
var n = this._readableState;
|
|
1249
|
-
return !n.objectMode && typeof e == "string" && (t ||= n.defaultEncoding, t !== n.encoding && (e = _.from(e, t), t = "")),
|
|
1250
|
-
},
|
|
1249
|
+
return !n.objectMode && typeof e == "string" && (t ||= n.defaultEncoding, t !== n.encoding && (e = _.from(e, t), t = "")), Kt(this, n, e, t, !1);
|
|
1250
|
+
}, H.prototype.unshift = function(e) {
|
|
1251
1251
|
var t = this._readableState;
|
|
1252
|
-
return
|
|
1253
|
-
},
|
|
1252
|
+
return Kt(this, t, e, "", !0);
|
|
1253
|
+
}, H.prototype.isPaused = function() {
|
|
1254
1254
|
return this._readableState.flowing === !1;
|
|
1255
1255
|
};
|
|
1256
|
-
function
|
|
1257
|
-
var a =
|
|
1256
|
+
function Kt(e, t, n, r, i) {
|
|
1257
|
+
var a = Zt(t, n);
|
|
1258
1258
|
if (a) e.emit("error", a);
|
|
1259
|
-
else if (n === null) t.reading = !1,
|
|
1259
|
+
else if (n === null) t.reading = !1, Qt(e, t);
|
|
1260
1260
|
else if (t.objectMode || n && n.length > 0) {
|
|
1261
1261
|
if (t.ended && !i) {
|
|
1262
1262
|
var o = /* @__PURE__ */ Error("stream.push() after EOF");
|
|
@@ -1266,64 +1266,64 @@ function qt(e, t, n, r, i) {
|
|
|
1266
1266
|
e.emit("error", s);
|
|
1267
1267
|
} else {
|
|
1268
1268
|
var c;
|
|
1269
|
-
t.decoder && !i && !r && (n = t.decoder.write(n), c = !t.objectMode && n.length === 0), i || (t.reading = !1), c || (t.flowing && t.length === 0 && !t.sync ? (e.emit("data", n), e.read(0)) : (t.length += t.objectMode ? 1 : n.length, i ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable &&
|
|
1269
|
+
t.decoder && !i && !r && (n = t.decoder.write(n), c = !t.objectMode && n.length === 0), i || (t.reading = !1), c || (t.flowing && t.length === 0 && !t.sync ? (e.emit("data", n), e.read(0)) : (t.length += t.objectMode ? 1 : n.length, i ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && $t(e))), tn(e, t);
|
|
1270
1270
|
}
|
|
1271
1271
|
} else i || (t.reading = !1);
|
|
1272
|
-
return
|
|
1272
|
+
return qt(t);
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function qt(e) {
|
|
1275
1275
|
return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0);
|
|
1276
1276
|
}
|
|
1277
|
-
|
|
1278
|
-
return this._readableState.decoder = new
|
|
1277
|
+
H.prototype.setEncoding = function(e) {
|
|
1278
|
+
return this._readableState.decoder = new zt(e), this._readableState.encoding = e, this;
|
|
1279
1279
|
};
|
|
1280
|
-
var
|
|
1281
|
-
function
|
|
1282
|
-
return e >=
|
|
1280
|
+
var Jt = 8388608;
|
|
1281
|
+
function Yt(e) {
|
|
1282
|
+
return e >= Jt ? e = Jt : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e;
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e === e ? (e > t.highWaterMark && (t.highWaterMark =
|
|
1284
|
+
function Xt(e, t) {
|
|
1285
|
+
return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e === e ? (e > t.highWaterMark && (t.highWaterMark = Yt(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)) : t.flowing && t.length ? t.buffer.head.data.length : t.length;
|
|
1286
1286
|
}
|
|
1287
|
-
|
|
1288
|
-
|
|
1287
|
+
H.prototype.read = function(e) {
|
|
1288
|
+
V("read", e), e = parseInt(e, 10);
|
|
1289
1289
|
var t = this._readableState, n = e;
|
|
1290
|
-
if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return
|
|
1291
|
-
if (e =
|
|
1290
|
+
if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return V("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? pn(this) : $t(this), null;
|
|
1291
|
+
if (e = Xt(e, t), e === 0 && t.ended) return t.length === 0 && pn(this), null;
|
|
1292
1292
|
var r = t.needReadable;
|
|
1293
|
-
|
|
1294
|
-
var i = e > 0 ?
|
|
1295
|
-
return i === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), n !== e && t.ended &&
|
|
1293
|
+
V("need readable", r), (t.length === 0 || t.length - e < t.highWaterMark) && (r = !0, V("length less than watermark", r)), t.ended || t.reading ? (r = !1, V("reading or ended", r)) : r && (V("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = Xt(n, t)));
|
|
1294
|
+
var i = e > 0 ? ln(e, t) : null;
|
|
1295
|
+
return i === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), n !== e && t.ended && pn(this)), i !== null && this.emit("data", i), i;
|
|
1296
1296
|
};
|
|
1297
|
-
function
|
|
1297
|
+
function Zt(e, t) {
|
|
1298
1298
|
var n = null;
|
|
1299
1299
|
return !D(t) && typeof t != "string" && t != null && !e.objectMode && (n = /* @__PURE__ */ TypeError("Invalid non-string/buffer chunk")), n;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Qt(e, t) {
|
|
1302
1302
|
if (!t.ended) {
|
|
1303
1303
|
if (t.decoder) {
|
|
1304
1304
|
var n = t.decoder.end();
|
|
1305
1305
|
n && n.length && (t.buffer.push(n), t.length += t.objectMode ? 1 : n.length);
|
|
1306
1306
|
}
|
|
1307
|
-
t.ended = !0,
|
|
1307
|
+
t.ended = !0, $t(e);
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function $t(e) {
|
|
1311
1311
|
var t = e._readableState;
|
|
1312
|
-
t.needReadable = !1, t.emittedReadable || (
|
|
1312
|
+
t.needReadable = !1, t.emittedReadable || (V("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? F(en, e) : en(e));
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
|
|
1314
|
+
function en(e) {
|
|
1315
|
+
V("emit readable"), e.emit("readable"), cn(e);
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
t.readingMore || (t.readingMore = !0, F(
|
|
1317
|
+
function tn(e, t) {
|
|
1318
|
+
t.readingMore || (t.readingMore = !0, F(nn, e, t));
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1321
|
-
for (var n = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (
|
|
1320
|
+
function nn(e, t) {
|
|
1321
|
+
for (var n = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (V("maybeReadMore read 0"), e.read(0), n !== t.length);) n = t.length;
|
|
1322
1322
|
t.readingMore = !1;
|
|
1323
1323
|
}
|
|
1324
|
-
|
|
1324
|
+
H.prototype._read = function(e) {
|
|
1325
1325
|
this.emit("error", /* @__PURE__ */ Error("not implemented"));
|
|
1326
|
-
},
|
|
1326
|
+
}, H.prototype.pipe = function(e, t) {
|
|
1327
1327
|
var n = this, r = this._readableState;
|
|
1328
1328
|
switch (r.pipesCount) {
|
|
1329
1329
|
case 0:
|
|
@@ -1334,50 +1334,50 @@ V.prototype._read = function(e) {
|
|
|
1334
1334
|
break;
|
|
1335
1335
|
default: r.pipes.push(e);
|
|
1336
1336
|
}
|
|
1337
|
-
r.pipesCount += 1,
|
|
1337
|
+
r.pipesCount += 1, V("pipe count=%d opts=%j", r.pipesCount, t);
|
|
1338
1338
|
var i = !t || t.end !== !1 ? o : l;
|
|
1339
1339
|
r.endEmitted ? F(i) : n.once("end", i), e.on("unpipe", a);
|
|
1340
1340
|
function a(e) {
|
|
1341
|
-
|
|
1341
|
+
V("onunpipe"), e === n && l();
|
|
1342
1342
|
}
|
|
1343
1343
|
function o() {
|
|
1344
|
-
|
|
1344
|
+
V("onend"), e.end();
|
|
1345
1345
|
}
|
|
1346
|
-
var s =
|
|
1346
|
+
var s = rn(n);
|
|
1347
1347
|
e.on("drain", s);
|
|
1348
1348
|
var c = !1;
|
|
1349
1349
|
function l() {
|
|
1350
|
-
|
|
1350
|
+
V("cleanup"), e.removeListener("close", p), e.removeListener("finish", m), e.removeListener("drain", s), e.removeListener("error", f), e.removeListener("unpipe", a), n.removeListener("end", o), n.removeListener("end", l), n.removeListener("data", d), c = !0, r.awaitDrain && (!e._writableState || e._writableState.needDrain) && s();
|
|
1351
1351
|
}
|
|
1352
1352
|
var u = !1;
|
|
1353
1353
|
n.on("data", d);
|
|
1354
1354
|
function d(t) {
|
|
1355
|
-
|
|
1355
|
+
V("ondata"), u = !1, !1 === e.write(t) && !u && ((r.pipesCount === 1 && r.pipes === e || r.pipesCount > 1 && gn(r.pipes, e) !== -1) && !c && (V("false write response, pause", n._readableState.awaitDrain), n._readableState.awaitDrain++, u = !0), n.pause());
|
|
1356
1356
|
}
|
|
1357
1357
|
function f(t) {
|
|
1358
|
-
|
|
1358
|
+
V("onerror", t), h(), e.removeListener("error", f), Wt(e, "error") === 0 && e.emit("error", t);
|
|
1359
1359
|
}
|
|
1360
|
-
|
|
1360
|
+
Ut(e, "error", f);
|
|
1361
1361
|
function p() {
|
|
1362
1362
|
e.removeListener("finish", m), h();
|
|
1363
1363
|
}
|
|
1364
1364
|
e.once("close", p);
|
|
1365
1365
|
function m() {
|
|
1366
|
-
|
|
1366
|
+
V("onfinish"), e.removeListener("close", p), h();
|
|
1367
1367
|
}
|
|
1368
1368
|
e.once("finish", m);
|
|
1369
1369
|
function h() {
|
|
1370
|
-
|
|
1370
|
+
V("unpipe"), n.unpipe(e);
|
|
1371
1371
|
}
|
|
1372
|
-
return e.emit("pipe", n), r.flowing || (
|
|
1372
|
+
return e.emit("pipe", n), r.flowing || (V("pipe resume"), n.resume()), e;
|
|
1373
1373
|
};
|
|
1374
|
-
function
|
|
1374
|
+
function rn(e) {
|
|
1375
1375
|
return function() {
|
|
1376
1376
|
var t = e._readableState;
|
|
1377
|
-
|
|
1377
|
+
V("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && e.listeners("data").length && (t.flowing = !0, cn(e));
|
|
1378
1378
|
};
|
|
1379
1379
|
}
|
|
1380
|
-
|
|
1380
|
+
H.prototype.unpipe = function(e) {
|
|
1381
1381
|
var t = this._readableState;
|
|
1382
1382
|
if (t.pipesCount === 0) return this;
|
|
1383
1383
|
if (t.pipesCount === 1) return e && e !== t.pipes || (e ||= t.pipes, t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this)), this;
|
|
@@ -1387,53 +1387,53 @@ V.prototype.unpipe = function(e) {
|
|
|
1387
1387
|
for (var i = 0; i < r; i++) n[i].emit("unpipe", this);
|
|
1388
1388
|
return this;
|
|
1389
1389
|
}
|
|
1390
|
-
var a =
|
|
1390
|
+
var a = gn(t.pipes, e);
|
|
1391
1391
|
return a === -1 || (t.pipes.splice(a, 1), --t.pipesCount, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this)), this;
|
|
1392
|
-
},
|
|
1392
|
+
}, H.prototype.on = function(e, t) {
|
|
1393
1393
|
var n = k.prototype.on.call(this, e, t);
|
|
1394
1394
|
if (e === "data") this._readableState.flowing !== !1 && this.resume();
|
|
1395
1395
|
else if (e === "readable") {
|
|
1396
1396
|
var r = this._readableState;
|
|
1397
|
-
!r.endEmitted && !r.readableListening && (r.readableListening = r.needReadable = !0, r.emittedReadable = !1, r.reading ? r.length &&
|
|
1397
|
+
!r.endEmitted && !r.readableListening && (r.readableListening = r.needReadable = !0, r.emittedReadable = !1, r.reading ? r.length && $t(this) : F(an, this));
|
|
1398
1398
|
}
|
|
1399
1399
|
return n;
|
|
1400
|
-
},
|
|
1401
|
-
function
|
|
1402
|
-
|
|
1400
|
+
}, H.prototype.addListener = H.prototype.on;
|
|
1401
|
+
function an(e) {
|
|
1402
|
+
V("readable nexttick read 0"), e.read(0);
|
|
1403
1403
|
}
|
|
1404
|
-
|
|
1404
|
+
H.prototype.resume = function() {
|
|
1405
1405
|
var e = this._readableState;
|
|
1406
|
-
return e.flowing || (
|
|
1406
|
+
return e.flowing || (V("resume"), e.flowing = !0, on(this, e)), this;
|
|
1407
1407
|
};
|
|
1408
|
-
function
|
|
1409
|
-
t.resumeScheduled || (t.resumeScheduled = !0, F(
|
|
1408
|
+
function on(e, t) {
|
|
1409
|
+
t.resumeScheduled || (t.resumeScheduled = !0, F(sn, e, t));
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1412
|
-
t.reading || (
|
|
1411
|
+
function sn(e, t) {
|
|
1412
|
+
t.reading || (V("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), cn(e), t.flowing && !t.reading && e.read(0);
|
|
1413
1413
|
}
|
|
1414
|
-
|
|
1415
|
-
return
|
|
1414
|
+
H.prototype.pause = function() {
|
|
1415
|
+
return V("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (V("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
|
|
1416
1416
|
};
|
|
1417
|
-
function
|
|
1417
|
+
function cn(e) {
|
|
1418
1418
|
var t = e._readableState;
|
|
1419
|
-
for (
|
|
1419
|
+
for (V("flow", t.flowing); t.flowing && e.read() !== null;);
|
|
1420
1420
|
}
|
|
1421
|
-
|
|
1421
|
+
H.prototype.wrap = function(e) {
|
|
1422
1422
|
var t = this._readableState, n = !1, r = this;
|
|
1423
1423
|
for (var i in e.on("end", function() {
|
|
1424
|
-
if (
|
|
1424
|
+
if (V("wrapped end"), t.decoder && !t.ended) {
|
|
1425
1425
|
var e = t.decoder.end();
|
|
1426
1426
|
e && e.length && r.push(e);
|
|
1427
1427
|
}
|
|
1428
1428
|
r.push(null);
|
|
1429
1429
|
}), e.on("data", function(i) {
|
|
1430
|
-
|
|
1430
|
+
V("wrapped data"), t.decoder && (i = t.decoder.write(i)), t.objectMode && i == null || (t.objectMode || i && i.length) && (r.push(i) || (n = !0, e.pause()));
|
|
1431
1431
|
}), e) this[i] === void 0 && typeof e[i] == "function" && (this[i] = function(t) {
|
|
1432
1432
|
return function() {
|
|
1433
1433
|
return e[t].apply(e, arguments);
|
|
1434
1434
|
};
|
|
1435
1435
|
}(i));
|
|
1436
|
-
return
|
|
1436
|
+
return hn([
|
|
1437
1437
|
"error",
|
|
1438
1438
|
"close",
|
|
1439
1439
|
"destroy",
|
|
@@ -1442,19 +1442,19 @@ V.prototype.wrap = function(e) {
|
|
|
1442
1442
|
], function(t) {
|
|
1443
1443
|
e.on(t, r.emit.bind(r, t));
|
|
1444
1444
|
}), r._read = function(t) {
|
|
1445
|
-
|
|
1445
|
+
V("wrapped _read", t), n && (n = !1, e.resume());
|
|
1446
1446
|
}, r;
|
|
1447
|
-
},
|
|
1448
|
-
function
|
|
1447
|
+
}, H._fromList = ln;
|
|
1448
|
+
function ln(e, t) {
|
|
1449
1449
|
if (t.length === 0) return null;
|
|
1450
1450
|
var n;
|
|
1451
|
-
return t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : t.buffer.length === 1 ? t.buffer.head.data : t.buffer.concat(t.length), t.buffer.clear()) : n =
|
|
1451
|
+
return t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : t.buffer.length === 1 ? t.buffer.head.data : t.buffer.concat(t.length), t.buffer.clear()) : n = un(e, t.buffer, t.decoder), n;
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function un(e, t, n) {
|
|
1454
1454
|
var r;
|
|
1455
|
-
return e < t.head.data.length ? (r = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : r = e === t.head.data.length ? t.shift() : n ?
|
|
1455
|
+
return e < t.head.data.length ? (r = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : r = e === t.head.data.length ? t.shift() : n ? dn(e, t) : fn(e, t), r;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function dn(e, t) {
|
|
1458
1458
|
var n = t.head, r = 1, i = n.data;
|
|
1459
1459
|
for (e -= i.length; n = n.next;) {
|
|
1460
1460
|
var a = n.data, o = e > a.length ? a.length : e;
|
|
@@ -1466,7 +1466,7 @@ function fn(e, t) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return t.length -= r, i;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function fn(e, t) {
|
|
1470
1470
|
var n = _.allocUnsafe(e), r = t.head, i = 1;
|
|
1471
1471
|
for (r.data.copy(n), e -= r.data.length; r = r.next;) {
|
|
1472
1472
|
var a = r.data, o = e > a.length ? a.length : e;
|
|
@@ -1478,66 +1478,66 @@ function pn(e, t) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
return t.length -= i, n;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function pn(e) {
|
|
1482
1482
|
var t = e._readableState;
|
|
1483
1483
|
if (t.length > 0) throw Error("\"endReadable()\" called on non-empty stream");
|
|
1484
|
-
t.endEmitted || (t.ended = !0, F(
|
|
1484
|
+
t.endEmitted || (t.ended = !0, F(mn, t, e));
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function mn(e, t) {
|
|
1487
1487
|
!e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end"));
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function hn(e, t) {
|
|
1490
1490
|
for (var n = 0, r = e.length; n < r; n++) t(e[n], n);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function gn(e, t) {
|
|
1493
1493
|
for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
|
|
1494
1494
|
return -1;
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1497
|
-
function
|
|
1498
|
-
function
|
|
1496
|
+
U.WritableState = yn, I(U, k);
|
|
1497
|
+
function _n() {}
|
|
1498
|
+
function vn(e, t, n) {
|
|
1499
1499
|
this.chunk = e, this.encoding = t, this.callback = n, this.next = null;
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function yn(e, t) {
|
|
1502
1502
|
Object.defineProperty(this, "buffer", { get: ft(function() {
|
|
1503
1503
|
return this.getBuffer();
|
|
1504
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.") }), e ||= {}, this.objectMode = !!e.objectMode, t instanceof
|
|
1504
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.") }), e ||= {}, this.objectMode = !!e.objectMode, t instanceof W && (this.objectMode = this.objectMode || !!e.writableObjectMode);
|
|
1505
1505
|
var n = e.highWaterMark, r = this.objectMode ? 16 : 16384;
|
|
1506
1506
|
this.highWaterMark = n || n === 0 ? n : r, this.highWaterMark = ~~this.highWaterMark, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1;
|
|
1507
1507
|
var i = e.decodeStrings === !1;
|
|
1508
1508
|
this.decodeStrings = !i, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) {
|
|
1509
|
-
|
|
1510
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new
|
|
1509
|
+
Dn(t, e);
|
|
1510
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new Fn(this);
|
|
1511
1511
|
}
|
|
1512
|
-
|
|
1512
|
+
yn.prototype.getBuffer = function() {
|
|
1513
1513
|
for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next;
|
|
1514
1514
|
return t;
|
|
1515
1515
|
};
|
|
1516
|
-
function
|
|
1517
|
-
if (!(this instanceof
|
|
1518
|
-
this._writableState = new
|
|
1516
|
+
function U(e) {
|
|
1517
|
+
if (!(this instanceof U) && !(this instanceof W)) return new U(e);
|
|
1518
|
+
this._writableState = new yn(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev)), k.call(this);
|
|
1519
1519
|
}
|
|
1520
|
-
|
|
1520
|
+
U.prototype.pipe = function() {
|
|
1521
1521
|
this.emit("error", /* @__PURE__ */ Error("Cannot pipe, not readable"));
|
|
1522
1522
|
};
|
|
1523
|
-
function
|
|
1523
|
+
function bn(e, t) {
|
|
1524
1524
|
var n = /* @__PURE__ */ Error("write after end");
|
|
1525
1525
|
e.emit("error", n), F(t, n);
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function xn(e, t, n, r) {
|
|
1528
1528
|
var i = !0, a = !1;
|
|
1529
1529
|
return n === null ? a = /* @__PURE__ */ TypeError("May not write null values to stream") : !_.isBuffer(n) && typeof n != "string" && n !== void 0 && !t.objectMode && (a = /* @__PURE__ */ TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), F(r, a), i = !1), i;
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1531
|
+
U.prototype.write = function(e, t, n) {
|
|
1532
1532
|
var r = this._writableState, i = !1;
|
|
1533
|
-
return typeof t == "function" && (n = t, t = null), _.isBuffer(e) ? t = "buffer" : t ||= r.defaultEncoding, typeof n != "function" && (n =
|
|
1534
|
-
},
|
|
1533
|
+
return typeof t == "function" && (n = t, t = null), _.isBuffer(e) ? t = "buffer" : t ||= r.defaultEncoding, typeof n != "function" && (n = _n), r.ended ? bn(this, n) : xn(this, r, e, n) && (r.pendingcb++, i = Cn(this, r, e, t, n)), i;
|
|
1534
|
+
}, U.prototype.cork = function() {
|
|
1535
1535
|
var e = this._writableState;
|
|
1536
1536
|
e.corked++;
|
|
1537
|
-
},
|
|
1537
|
+
}, U.prototype.uncork = function() {
|
|
1538
1538
|
var e = this._writableState;
|
|
1539
|
-
e.corked && (e.corked--, e.writing || e.corked || e.finished || e.bufferProcessing || !e.bufferedRequest ||
|
|
1540
|
-
},
|
|
1539
|
+
e.corked && (e.corked--, e.writing || e.corked || e.finished || e.bufferProcessing || !e.bufferedRequest || An(this, e));
|
|
1540
|
+
}, U.prototype.setDefaultEncoding = function(e) {
|
|
1541
1541
|
if (typeof e == "string" && (e = e.toLowerCase()), !([
|
|
1542
1542
|
"hex",
|
|
1543
1543
|
"utf8",
|
|
@@ -1553,80 +1553,80 @@ H.prototype.write = function(e, t, n) {
|
|
|
1553
1553
|
].indexOf((e + "").toLowerCase()) > -1)) throw TypeError("Unknown encoding: " + e);
|
|
1554
1554
|
return this._writableState.defaultEncoding = e, this;
|
|
1555
1555
|
};
|
|
1556
|
-
function
|
|
1556
|
+
function Sn(e, t, n) {
|
|
1557
1557
|
return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = _.from(t, n)), t;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1560
|
-
n =
|
|
1559
|
+
function Cn(e, t, n, r, i) {
|
|
1560
|
+
n = Sn(t, n, r), _.isBuffer(n) && (r = "buffer");
|
|
1561
1561
|
var a = t.objectMode ? 1 : n.length;
|
|
1562
1562
|
t.length += a;
|
|
1563
1563
|
var o = t.length < t.highWaterMark;
|
|
1564
1564
|
if (o || (t.needDrain = !0), t.writing || t.corked) {
|
|
1565
1565
|
var s = t.lastBufferedRequest;
|
|
1566
|
-
t.lastBufferedRequest = new
|
|
1567
|
-
} else
|
|
1566
|
+
t.lastBufferedRequest = new vn(n, r, i), s ? s.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1;
|
|
1567
|
+
} else wn(e, t, !1, a, n, r, i);
|
|
1568
1568
|
return o;
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function wn(e, t, n, r, i, a, o) {
|
|
1571
1571
|
t.writelen = r, t.writecb = o, t.writing = !0, t.sync = !0, n ? e._writev(i, t.onwrite) : e._write(i, a, t.onwrite), t.sync = !1;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function Tn(e, t, n, r, i) {
|
|
1574
1574
|
--t.pendingcb, n ? F(i, r) : i(r), e._writableState.errorEmitted = !0, e.emit("error", r);
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function En(e) {
|
|
1577
1577
|
e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0;
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function Dn(e, t) {
|
|
1580
1580
|
var n = e._writableState, r = n.sync, i = n.writecb;
|
|
1581
|
-
if (
|
|
1581
|
+
if (En(n), t) Tn(e, n, r, t, i);
|
|
1582
1582
|
else {
|
|
1583
|
-
var a =
|
|
1584
|
-
!a && !n.corked && !n.bufferProcessing && n.bufferedRequest &&
|
|
1583
|
+
var a = jn(n);
|
|
1584
|
+
!a && !n.corked && !n.bufferProcessing && n.bufferedRequest && An(e, n), r ? F(On, e, n, a, i) : On(e, n, a, i);
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
n ||
|
|
1587
|
+
function On(e, t, n, r) {
|
|
1588
|
+
n || kn(e, t), t.pendingcb--, r(), Nn(e, t);
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function kn(e, t) {
|
|
1591
1591
|
t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain"));
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function An(e, t) {
|
|
1594
1594
|
t.bufferProcessing = !0;
|
|
1595
1595
|
var n = t.bufferedRequest;
|
|
1596
1596
|
if (e._writev && n && n.next) {
|
|
1597
1597
|
var r = t.bufferedRequestCount, i = Array(r), a = t.corkedRequestsFree;
|
|
1598
1598
|
a.entry = n;
|
|
1599
1599
|
for (var o = 0; n;) i[o] = n, n = n.next, o += 1;
|
|
1600
|
-
|
|
1600
|
+
wn(e, t, !0, t.length, i, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new Fn(t);
|
|
1601
1601
|
} else {
|
|
1602
1602
|
for (; n;) {
|
|
1603
1603
|
var s = n.chunk, c = n.encoding, l = n.callback;
|
|
1604
|
-
if (
|
|
1604
|
+
if (wn(e, t, !1, t.objectMode ? 1 : s.length, s, c, l), n = n.next, t.writing) break;
|
|
1605
1605
|
}
|
|
1606
1606
|
n === null && (t.lastBufferedRequest = null);
|
|
1607
1607
|
}
|
|
1608
1608
|
t.bufferedRequestCount = 0, t.bufferedRequest = n, t.bufferProcessing = !1;
|
|
1609
1609
|
}
|
|
1610
|
-
|
|
1610
|
+
U.prototype._write = function(e, t, n) {
|
|
1611
1611
|
n(/* @__PURE__ */ Error("not implemented"));
|
|
1612
|
-
},
|
|
1612
|
+
}, U.prototype._writev = null, U.prototype.end = function(e, t, n) {
|
|
1613
1613
|
var r = this._writableState;
|
|
1614
|
-
typeof e == "function" ? (n = e, e = null, t = null) : typeof t == "function" && (n = t, t = null), e != null && this.write(e, t), r.corked && (r.corked = 1, this.uncork()), !r.ending && !r.finished &&
|
|
1614
|
+
typeof e == "function" ? (n = e, e = null, t = null) : typeof t == "function" && (n = t, t = null), e != null && this.write(e, t), r.corked && (r.corked = 1, this.uncork()), !r.ending && !r.finished && Pn(this, r, n);
|
|
1615
1615
|
};
|
|
1616
|
-
function
|
|
1616
|
+
function jn(e) {
|
|
1617
1617
|
return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Mn(e, t) {
|
|
1620
1620
|
t.prefinished || (t.prefinished = !0, e.emit("prefinish"));
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1623
|
-
var n =
|
|
1624
|
-
return n && (t.pendingcb === 0 ? (
|
|
1622
|
+
function Nn(e, t) {
|
|
1623
|
+
var n = jn(t);
|
|
1624
|
+
return n && (t.pendingcb === 0 ? (Mn(e, t), t.finished = !0, e.emit("finish")) : Mn(e, t)), n;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1627
|
-
t.ending = !0,
|
|
1626
|
+
function Pn(e, t, n) {
|
|
1627
|
+
t.ending = !0, Nn(e, t), n && (t.finished ? F(n) : e.once("finish", n)), t.ended = !0, e.writable = !1;
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function Fn(e) {
|
|
1630
1630
|
var t = this;
|
|
1631
1631
|
this.next = null, this.entry = null, this.finish = function(n) {
|
|
1632
1632
|
var r = t.entry;
|
|
@@ -1637,28 +1637,28 @@ function In(e) {
|
|
|
1637
1637
|
e.corkedRequestsFree ? e.corkedRequestsFree.next = t : e.corkedRequestsFree = t;
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
|
-
I(
|
|
1641
|
-
for (var
|
|
1642
|
-
var
|
|
1643
|
-
|
|
1640
|
+
I(W, H);
|
|
1641
|
+
for (var In = Object.keys(U.prototype), Ln = 0; Ln < In.length; Ln++) {
|
|
1642
|
+
var Rn = In[Ln];
|
|
1643
|
+
W.prototype[Rn] || (W.prototype[Rn] = U.prototype[Rn]);
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1646
|
-
if (!(this instanceof
|
|
1647
|
-
|
|
1645
|
+
function W(e) {
|
|
1646
|
+
if (!(this instanceof W)) return new W(e);
|
|
1647
|
+
H.call(this, e), U.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", zn);
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1650
|
-
this.allowHalfOpen || this._writableState.ended || F(
|
|
1649
|
+
function zn() {
|
|
1650
|
+
this.allowHalfOpen || this._writableState.ended || F(Bn, this);
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function Bn(e) {
|
|
1653
1653
|
e.end();
|
|
1654
1654
|
}
|
|
1655
|
-
I(
|
|
1656
|
-
function
|
|
1655
|
+
I(G, W);
|
|
1656
|
+
function Vn(e) {
|
|
1657
1657
|
this.afterTransform = function(t, n) {
|
|
1658
|
-
return
|
|
1658
|
+
return Hn(e, t, n);
|
|
1659
1659
|
}, this.needTransform = !1, this.transforming = !1, this.writecb = null, this.writechunk = null, this.writeencoding = null;
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Hn(e, t, n) {
|
|
1662
1662
|
var r = e._transformState;
|
|
1663
1663
|
r.transforming = !1;
|
|
1664
1664
|
var i = r.writecb;
|
|
@@ -1667,49 +1667,49 @@ function Un(e, t, n) {
|
|
|
1667
1667
|
var a = e._readableState;
|
|
1668
1668
|
a.reading = !1, (a.needReadable || a.length < a.highWaterMark) && e._read(a.highWaterMark);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
if (!(this instanceof
|
|
1672
|
-
|
|
1670
|
+
function G(e) {
|
|
1671
|
+
if (!(this instanceof G)) return new G(e);
|
|
1672
|
+
W.call(this, e), this._transformState = new Vn(this);
|
|
1673
1673
|
var t = this;
|
|
1674
1674
|
this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.once("prefinish", function() {
|
|
1675
1675
|
typeof this._flush == "function" ? this._flush(function(e) {
|
|
1676
|
-
|
|
1677
|
-
}) :
|
|
1676
|
+
Un(t, e);
|
|
1677
|
+
}) : Un(t);
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
|
-
|
|
1681
|
-
return this._transformState.needTransform = !1,
|
|
1682
|
-
},
|
|
1680
|
+
G.prototype.push = function(e, t) {
|
|
1681
|
+
return this._transformState.needTransform = !1, W.prototype.push.call(this, e, t);
|
|
1682
|
+
}, G.prototype._transform = function(e, t, n) {
|
|
1683
1683
|
throw Error("Not implemented");
|
|
1684
|
-
},
|
|
1684
|
+
}, G.prototype._write = function(e, t, n) {
|
|
1685
1685
|
var r = this._transformState;
|
|
1686
1686
|
if (r.writecb = n, r.writechunk = e, r.writeencoding = t, !r.transforming) {
|
|
1687
1687
|
var i = this._readableState;
|
|
1688
1688
|
(r.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
|
|
1689
1689
|
}
|
|
1690
|
-
},
|
|
1690
|
+
}, G.prototype._read = function(e) {
|
|
1691
1691
|
var t = this._transformState;
|
|
1692
1692
|
t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
1693
1693
|
};
|
|
1694
|
-
function
|
|
1694
|
+
function Un(e, t) {
|
|
1695
1695
|
if (t) return e.emit("error", t);
|
|
1696
1696
|
var n = e._writableState, r = e._transformState;
|
|
1697
1697
|
if (n.length) throw Error("Calling transform done when ws.length != 0");
|
|
1698
1698
|
if (r.transforming) throw Error("Calling transform done when still transforming");
|
|
1699
1699
|
return e.push(null);
|
|
1700
1700
|
}
|
|
1701
|
-
I(
|
|
1702
|
-
function
|
|
1703
|
-
if (!(this instanceof
|
|
1704
|
-
|
|
1701
|
+
I(Wn, G);
|
|
1702
|
+
function Wn(e) {
|
|
1703
|
+
if (!(this instanceof Wn)) return new Wn(e);
|
|
1704
|
+
G.call(this, e);
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1706
|
+
Wn.prototype._transform = function(e, t, n) {
|
|
1707
1707
|
n(null, e);
|
|
1708
|
-
}, I(
|
|
1709
|
-
function
|
|
1708
|
+
}, I(K, k), K.Readable = H, K.Writable = U, K.Duplex = W, K.Transform = G, K.PassThrough = Wn, K.Stream = K;
|
|
1709
|
+
function K() {
|
|
1710
1710
|
k.call(this);
|
|
1711
1711
|
}
|
|
1712
|
-
|
|
1712
|
+
K.prototype.pipe = function(e, t) {
|
|
1713
1713
|
var n = this;
|
|
1714
1714
|
function r(t) {
|
|
1715
1715
|
e.writable && !1 === e.write(t) && n.pause && n.pause();
|
|
@@ -1735,9 +1735,9 @@ G.prototype.pipe = function(e, t) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
return n.on("end", l), n.on("close", l), e.on("close", l), e.emit("pipe", n), e;
|
|
1737
1737
|
};
|
|
1738
|
-
var
|
|
1738
|
+
var Gn = function(e) {
|
|
1739
1739
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1740
|
-
},
|
|
1740
|
+
}, q = class e extends Error {
|
|
1741
1741
|
constructor(t, n, r, ...i) {
|
|
1742
1742
|
Array.isArray(n) && (n = n.join(" ").trim()), super(n), Error.captureStackTrace !== void 0 && Error.captureStackTrace(this, e), this.code = t;
|
|
1743
1743
|
for (let e of i) for (let t in e) {
|
|
@@ -1745,27 +1745,27 @@ var Kn = function(e) {
|
|
|
1745
1745
|
this[t] = D(n) ? n.toString(r.encoding) : n == null ? n : JSON.parse(JSON.stringify(n));
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
},
|
|
1748
|
+
}, Kn = function(e) {
|
|
1749
1749
|
let t = [];
|
|
1750
1750
|
for (let n = 0, r = e.length; n < r; n++) {
|
|
1751
1751
|
let r = e[n];
|
|
1752
1752
|
if (r == null || r === !1) t[n] = { disabled: !0 };
|
|
1753
1753
|
else if (typeof r == "string" || typeof r == "number") t[n] = { name: `${r}` };
|
|
1754
|
-
else if (
|
|
1755
|
-
if (typeof r.name != "string") throw new
|
|
1754
|
+
else if (Gn(r)) {
|
|
1755
|
+
if (typeof r.name != "string") throw new q("CSV_OPTION_COLUMNS_MISSING_NAME", [
|
|
1756
1756
|
"Option columns missing name:",
|
|
1757
1757
|
`property "name" is required at position ${n}`,
|
|
1758
1758
|
"when column is an object literal"
|
|
1759
1759
|
]);
|
|
1760
1760
|
t[n] = r;
|
|
1761
|
-
} else throw new
|
|
1761
|
+
} else throw new q("CSV_INVALID_COLUMN_DEFINITION", [
|
|
1762
1762
|
"Invalid column definition:",
|
|
1763
1763
|
"expect a string or a literal object,",
|
|
1764
1764
|
`got ${JSON.stringify(r)} at position ${n}`
|
|
1765
1765
|
]);
|
|
1766
1766
|
}
|
|
1767
1767
|
return t;
|
|
1768
|
-
},
|
|
1768
|
+
}, qn = class {
|
|
1769
1769
|
constructor(e = 100) {
|
|
1770
1770
|
this.size = e, this.length = 0, this.buf = _.allocUnsafe(e);
|
|
1771
1771
|
}
|
|
@@ -1804,7 +1804,7 @@ var Kn = function(e) {
|
|
|
1804
1804
|
reset() {
|
|
1805
1805
|
this.length = 0;
|
|
1806
1806
|
}
|
|
1807
|
-
},
|
|
1807
|
+
}, Jn = function(e) {
|
|
1808
1808
|
let t = [
|
|
1809
1809
|
32,
|
|
1810
1810
|
9,
|
|
@@ -1848,13 +1848,13 @@ var Kn = function(e) {
|
|
|
1848
1848
|
escaping: !1,
|
|
1849
1849
|
escapeIsQuote: D(e.escape) && D(e.quote) && _.compare(e.escape, e.quote) === 0,
|
|
1850
1850
|
expectedRecordLength: Array.isArray(e.columns) ? e.columns.length : void 0,
|
|
1851
|
-
field: new
|
|
1851
|
+
field: new qn(20),
|
|
1852
1852
|
firstLineToHeaders: e.cast_first_line_to_header,
|
|
1853
1853
|
needMoreDataSize: Math.max(e.comment === null ? 0 : e.comment.length, ...e.delimiter ? e.delimiter.map((e) => e.length) : [], +!!e.delimiter_auto, e.quote === null ? 0 : e.quote.length, ...t.map((e) => e.length)),
|
|
1854
1854
|
previousBuf: void 0,
|
|
1855
1855
|
quoting: !1,
|
|
1856
1856
|
stop: !1,
|
|
1857
|
-
rawBuffer: new
|
|
1857
|
+
rawBuffer: new qn(100),
|
|
1858
1858
|
record: [],
|
|
1859
1859
|
recordHasError: !1,
|
|
1860
1860
|
record_length: 0,
|
|
@@ -1865,29 +1865,29 @@ var Kn = function(e) {
|
|
|
1865
1865
|
timchars: t,
|
|
1866
1866
|
timcharFirstBytes: n
|
|
1867
1867
|
};
|
|
1868
|
-
},
|
|
1868
|
+
}, Yn = function(e) {
|
|
1869
1869
|
return e.replace(/([A-Z])/g, function(e, t) {
|
|
1870
1870
|
return "_" + t.toLowerCase();
|
|
1871
1871
|
});
|
|
1872
|
-
},
|
|
1872
|
+
}, Xn = function(e) {
|
|
1873
1873
|
let t = {};
|
|
1874
|
-
for (let n in e) t[
|
|
1874
|
+
for (let n in e) t[Yn(n)] = e[n];
|
|
1875
1875
|
if (t.encoding === void 0 || t.encoding === !0) t.encoding = "utf8";
|
|
1876
1876
|
else if (t.encoding === null || t.encoding === !1) t.encoding = null;
|
|
1877
|
-
else if (typeof t.encoding != "string" && t.encoding !== null) throw new
|
|
1877
|
+
else if (typeof t.encoding != "string" && t.encoding !== null) throw new q("CSV_INVALID_OPTION_ENCODING", [
|
|
1878
1878
|
"Invalid option encoding:",
|
|
1879
1879
|
"encoding must be a string or null to return a buffer,",
|
|
1880
1880
|
`got ${JSON.stringify(t.encoding)}`
|
|
1881
1881
|
], t);
|
|
1882
1882
|
if (t.bom === void 0 || t.bom === null || t.bom === !1) t.bom = !1;
|
|
1883
|
-
else if (t.bom !== !0) throw new
|
|
1883
|
+
else if (t.bom !== !0) throw new q("CSV_INVALID_OPTION_BOM", [
|
|
1884
1884
|
"Invalid option bom:",
|
|
1885
1885
|
"bom must be true,",
|
|
1886
1886
|
`got ${JSON.stringify(t.bom)}`
|
|
1887
1887
|
], t);
|
|
1888
1888
|
if (t.cast_function = null, t.cast === void 0 || t.cast === null || t.cast === !1 || t.cast === "") t.cast = void 0;
|
|
1889
1889
|
else if (typeof t.cast == "function") t.cast_function = t.cast, t.cast = !0;
|
|
1890
|
-
else if (t.cast !== !0) throw new
|
|
1890
|
+
else if (t.cast !== !0) throw new q("CSV_INVALID_OPTION_CAST", [
|
|
1891
1891
|
"Invalid option cast:",
|
|
1892
1892
|
"cast must be true or a function,",
|
|
1893
1893
|
`got ${JSON.stringify(t.cast)}`
|
|
@@ -1897,42 +1897,42 @@ var Kn = function(e) {
|
|
|
1897
1897
|
let t = Date.parse(e);
|
|
1898
1898
|
return isNaN(t) ? e : new Date(t);
|
|
1899
1899
|
};
|
|
1900
|
-
else if (typeof t.cast_date != "function") throw new
|
|
1900
|
+
else if (typeof t.cast_date != "function") throw new q("CSV_INVALID_OPTION_CAST_DATE", [
|
|
1901
1901
|
"Invalid option cast_date:",
|
|
1902
1902
|
"cast_date must be true or a function,",
|
|
1903
1903
|
`got ${JSON.stringify(t.cast_date)}`
|
|
1904
1904
|
], t);
|
|
1905
1905
|
if (t.cast_first_line_to_header = void 0, t.columns === !0) t.cast_first_line_to_header = void 0;
|
|
1906
1906
|
else if (typeof t.columns == "function") t.cast_first_line_to_header = t.columns, t.columns = !0;
|
|
1907
|
-
else if (Array.isArray(t.columns)) t.columns =
|
|
1907
|
+
else if (Array.isArray(t.columns)) t.columns = Kn(t.columns);
|
|
1908
1908
|
else if (t.columns === void 0 || t.columns === null || t.columns === !1) t.columns = !1;
|
|
1909
|
-
else throw new
|
|
1909
|
+
else throw new q("CSV_INVALID_OPTION_COLUMNS", [
|
|
1910
1910
|
"Invalid option columns:",
|
|
1911
1911
|
"expect an array, a function or true,",
|
|
1912
1912
|
`got ${JSON.stringify(t.columns)}`
|
|
1913
1913
|
], t);
|
|
1914
1914
|
if (t.group_columns_by_name === void 0 || t.group_columns_by_name === null || t.group_columns_by_name === !1) t.group_columns_by_name = !1;
|
|
1915
|
-
else if (t.group_columns_by_name !== !0) throw new
|
|
1915
|
+
else if (t.group_columns_by_name !== !0) throw new q("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME", [
|
|
1916
1916
|
"Invalid option group_columns_by_name:",
|
|
1917
1917
|
"expect an boolean,",
|
|
1918
1918
|
`got ${JSON.stringify(t.group_columns_by_name)}`
|
|
1919
1919
|
], t);
|
|
1920
|
-
else if (t.columns === !1) throw new
|
|
1920
|
+
else if (t.columns === !1) throw new q("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME", ["Invalid option group_columns_by_name:", "the `columns` mode must be activated."], t);
|
|
1921
1921
|
if (t.comment === void 0 || t.comment === null || t.comment === !1 || t.comment === "") t.comment = null;
|
|
1922
|
-
else if (typeof t.comment == "string" && (t.comment = _.from(t.comment, t.encoding)), !D(t.comment)) throw new
|
|
1922
|
+
else if (typeof t.comment == "string" && (t.comment = _.from(t.comment, t.encoding)), !D(t.comment)) throw new q("CSV_INVALID_OPTION_COMMENT", [
|
|
1923
1923
|
"Invalid option comment:",
|
|
1924
1924
|
"comment must be a buffer or a string,",
|
|
1925
1925
|
`got ${JSON.stringify(t.comment)}`
|
|
1926
1926
|
], t);
|
|
1927
1927
|
if (t.comment_no_infix === void 0 || t.comment_no_infix === null || t.comment_no_infix === !1) t.comment_no_infix = !1;
|
|
1928
|
-
else if (t.comment_no_infix !== !0) throw new
|
|
1928
|
+
else if (t.comment_no_infix !== !0) throw new q("CSV_INVALID_OPTION_COMMENT", [
|
|
1929
1929
|
"Invalid option comment_no_infix:",
|
|
1930
1930
|
"value must be a boolean,",
|
|
1931
1931
|
`got ${JSON.stringify(t.comment_no_infix)}`
|
|
1932
1932
|
], t);
|
|
1933
1933
|
if (t.delimiter_auto === void 0 || t.delimiter_auto === null || t.delimiter_auto === !1) t.delimiter_auto = !1;
|
|
1934
1934
|
else if (t.delimiter_auto === !0) t.delimiter_auto = {};
|
|
1935
|
-
else if (!
|
|
1935
|
+
else if (!Gn(t.delimiter_auto)) throw new q("CSV_INVALID_OPTION_DELIMITER_AUTO", [
|
|
1936
1936
|
"Invalid option delimiter_auto:",
|
|
1937
1937
|
"delimiter_auto must be a boolean or a configuration object,",
|
|
1938
1938
|
`got ${JSON.stringify(t.delimiter_auto)}`
|
|
@@ -1947,19 +1947,19 @@ var Kn = function(e) {
|
|
|
1947
1947
|
46: 1.4,
|
|
1948
1948
|
47: 1.4
|
|
1949
1949
|
};
|
|
1950
|
-
else if (!
|
|
1950
|
+
else if (!Gn(t.delimiter_auto.preferred)) throw new q("CSV_INVALID_OPTION_DELIMITER_AUTO", [
|
|
1951
1951
|
"Invalid option delimiter_auto:",
|
|
1952
1952
|
"preferred must be an object,",
|
|
1953
1953
|
`got ${JSON.stringify(t.delimiter_auto.preferred)}`
|
|
1954
1954
|
], t);
|
|
1955
1955
|
if (t.delimiter_auto.score === void 0) t.delimiter_auto.score = (e, t) => (e.total - e.std) * (t.preferred[e.char_code] || 1);
|
|
1956
|
-
else if (typeof t.delimiter_auto.score != "function") throw new
|
|
1956
|
+
else if (typeof t.delimiter_auto.score != "function") throw new q("CSV_INVALID_OPTION_DELIMITER_AUTO", [
|
|
1957
1957
|
"Invalid option delimiter_auto:",
|
|
1958
1958
|
"score must be a function,",
|
|
1959
1959
|
`got ${JSON.stringify(t.delimiter_auto.score)}`
|
|
1960
1960
|
], t);
|
|
1961
1961
|
if (t.delimiter_auto.size === void 0) t.delimiter_auto.size = 2048;
|
|
1962
|
-
else if (typeof t.delimiter_auto.size != "number") throw new
|
|
1962
|
+
else if (typeof t.delimiter_auto.size != "number") throw new q("CSV_INVALID_OPTION_DELIMITER_AUTO", [
|
|
1963
1963
|
"Invalid option delimiter_auto:",
|
|
1964
1964
|
"size must be a number,",
|
|
1965
1965
|
`got ${JSON.stringify(t.delimiter_auto.size)}`
|
|
@@ -1967,7 +1967,7 @@ var Kn = function(e) {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
let n = JSON.stringify(t.delimiter);
|
|
1969
1969
|
if (t.delimiter_auto !== !1 && (t.delimiter = []), Array.isArray(t.delimiter) || ((t.delimiter === void 0 || t.delimiter === null || t.delimiter === !1) && (t.delimiter = _.from(",", t.encoding)), t.delimiter = [t.delimiter]), t.delimiter = t.delimiter.map(function(e) {
|
|
1970
|
-
if (typeof e == "string" && (e = _.from(e, t.encoding)), !D(e) || e.length === 0) throw new
|
|
1970
|
+
if (typeof e == "string" && (e = _.from(e, t.encoding)), !D(e) || e.length === 0) throw new q("CSV_INVALID_OPTION_DELIMITER", [
|
|
1971
1971
|
"Invalid option delimiter:",
|
|
1972
1972
|
"delimiter must be a non empty string or buffer or array of string|buffer,",
|
|
1973
1973
|
`got ${n}`
|
|
@@ -1984,12 +1984,12 @@ var Kn = function(e) {
|
|
|
1984
1984
|
} else throw Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);
|
|
1985
1985
|
if (t.ignore_last_delimiters === void 0 || t.ignore_last_delimiters === null) t.ignore_last_delimiters = !1;
|
|
1986
1986
|
else if (typeof t.ignore_last_delimiters == "number") t.ignore_last_delimiters = Math.floor(t.ignore_last_delimiters), t.ignore_last_delimiters === 0 && (t.ignore_last_delimiters = !1);
|
|
1987
|
-
else if (typeof t.ignore_last_delimiters != "boolean") throw new
|
|
1987
|
+
else if (typeof t.ignore_last_delimiters != "boolean") throw new q("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS", [
|
|
1988
1988
|
"Invalid option `ignore_last_delimiters`:",
|
|
1989
1989
|
"the value must be a boolean value or an integer,",
|
|
1990
1990
|
`got ${JSON.stringify(t.ignore_last_delimiters)}`
|
|
1991
1991
|
], t);
|
|
1992
|
-
if (t.ignore_last_delimiters === !0 && t.columns === !1) throw new
|
|
1992
|
+
if (t.ignore_last_delimiters === !0 && t.columns === !1) throw new q("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS", ["The option `ignore_last_delimiters`", "requires the activation of the `columns` option"], t);
|
|
1993
1993
|
if (t.info === void 0 || t.info === null || t.info === !1) t.info = !1;
|
|
1994
1994
|
else if (t.info !== !0) throw Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);
|
|
1995
1995
|
if (t.max_record_size === void 0 || t.max_record_size === null || t.max_record_size === !1) t.max_record_size = 0;
|
|
@@ -2010,7 +2010,7 @@ var Kn = function(e) {
|
|
|
2010
2010
|
} else if (t.columns === !1) throw Error("Invalid Option: objname field must be combined with columns or be defined as an index");
|
|
2011
2011
|
}
|
|
2012
2012
|
if (t.on_record === void 0 || t.on_record === null) t.on_record = void 0;
|
|
2013
|
-
else if (typeof t.on_record != "function") throw new
|
|
2013
|
+
else if (typeof t.on_record != "function") throw new q("CSV_INVALID_OPTION_ON_RECORD", [
|
|
2014
2014
|
"Invalid option `on_record`:",
|
|
2015
2015
|
"expect a function,",
|
|
2016
2016
|
`got ${JSON.stringify(t.on_record)}`
|
|
@@ -2022,25 +2022,25 @@ var Kn = function(e) {
|
|
|
2022
2022
|
else if (t.raw !== !0) throw Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);
|
|
2023
2023
|
if (t.record_delimiter === void 0) t.record_delimiter = [];
|
|
2024
2024
|
else if (typeof t.record_delimiter == "string" || D(t.record_delimiter)) {
|
|
2025
|
-
if (t.record_delimiter.length === 0) throw new
|
|
2025
|
+
if (t.record_delimiter.length === 0) throw new q("CSV_INVALID_OPTION_RECORD_DELIMITER", [
|
|
2026
2026
|
"Invalid option `record_delimiter`:",
|
|
2027
2027
|
"value must be a non empty string or buffer,",
|
|
2028
2028
|
`got ${JSON.stringify(t.record_delimiter)}`
|
|
2029
2029
|
], t);
|
|
2030
2030
|
t.record_delimiter = [t.record_delimiter];
|
|
2031
|
-
} else if (!Array.isArray(t.record_delimiter)) throw new
|
|
2031
|
+
} else if (!Array.isArray(t.record_delimiter)) throw new q("CSV_INVALID_OPTION_RECORD_DELIMITER", [
|
|
2032
2032
|
"Invalid option `record_delimiter`:",
|
|
2033
2033
|
"value must be a string, a buffer or array of string|buffer,",
|
|
2034
2034
|
`got ${JSON.stringify(t.record_delimiter)}`
|
|
2035
2035
|
], t);
|
|
2036
2036
|
if (t.record_delimiter = t.record_delimiter.map(function(e, n) {
|
|
2037
|
-
if (typeof e != "string" && !D(e)) throw new
|
|
2037
|
+
if (typeof e != "string" && !D(e)) throw new q("CSV_INVALID_OPTION_RECORD_DELIMITER", [
|
|
2038
2038
|
"Invalid option `record_delimiter`:",
|
|
2039
2039
|
"value must be a string, a buffer or array of string|buffer",
|
|
2040
2040
|
`at index ${n},`,
|
|
2041
2041
|
`got ${JSON.stringify(e)}`
|
|
2042
2042
|
], t);
|
|
2043
|
-
if (e.length === 0) throw new
|
|
2043
|
+
if (e.length === 0) throw new q("CSV_INVALID_OPTION_RECORD_DELIMITER", [
|
|
2044
2044
|
"Invalid option `record_delimiter`:",
|
|
2045
2045
|
"value must be a non empty string or buffer",
|
|
2046
2046
|
`at index ${n},`,
|
|
@@ -2094,9 +2094,9 @@ var Kn = function(e) {
|
|
|
2094
2094
|
} else throw Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);
|
|
2095
2095
|
}
|
|
2096
2096
|
return t;
|
|
2097
|
-
},
|
|
2098
|
-
t || ({delimiter_auto: t} =
|
|
2099
|
-
let t = [], n =
|
|
2097
|
+
}, Zn = function(e, t) {
|
|
2098
|
+
t || ({delimiter_auto: t} = Xn({ delimiter_auto: !0 })), typeof e == "string" && (e = _.from(e)), D(e) && (e = ((e) => {
|
|
2099
|
+
let t = [], n = nr({ delimiter: [] }).parse(e, !0, (e) => t.push(e), () => {});
|
|
2100
2100
|
if (n !== void 0) throw n;
|
|
2101
2101
|
return t;
|
|
2102
2102
|
})(e));
|
|
@@ -2107,25 +2107,25 @@ var Kn = function(e) {
|
|
|
2107
2107
|
n[i].lines[t] === void 0 && (n[i].lines[t] = 0), n[i].lines[t]++;
|
|
2108
2108
|
}
|
|
2109
2109
|
}), n.map((e, n) => {
|
|
2110
|
-
e.char_code = n, e.std =
|
|
2110
|
+
e.char_code = n, e.std = Qn(e.lines), e.total = e.lines.reduce((e, t) => e + t, 0), e.preferred = !!t.preferred[n], e.score = t.score(e, t);
|
|
2111
2111
|
});
|
|
2112
2112
|
let r = n.reduce((e, t) => e.score > t.score ? e : t, {});
|
|
2113
2113
|
return String.fromCharCode(r.char_code);
|
|
2114
|
-
},
|
|
2114
|
+
}, Qn = function(e) {
|
|
2115
2115
|
let t = e.length;
|
|
2116
2116
|
if (t === 0) return 0;
|
|
2117
2117
|
let n = e.reduce((e, t) => e + t) / t;
|
|
2118
2118
|
return Math.sqrt(e.map((e) => (e - n) ** 2).reduce((e, t) => e + t) / t);
|
|
2119
|
-
},
|
|
2119
|
+
}, $n = function(e) {
|
|
2120
2120
|
return e.every((e) => e == null || e.toString && e.toString().trim() === "");
|
|
2121
|
-
},
|
|
2121
|
+
}, er = 13, tr = 10, J = {
|
|
2122
2122
|
utf8: _.from([
|
|
2123
2123
|
239,
|
|
2124
2124
|
187,
|
|
2125
2125
|
191
|
|
2126
2126
|
]),
|
|
2127
2127
|
utf16le: _.from([255, 254])
|
|
2128
|
-
},
|
|
2128
|
+
}, nr = function(e = {}) {
|
|
2129
2129
|
let t = {
|
|
2130
2130
|
bytes: 0,
|
|
2131
2131
|
bytes_records: 0,
|
|
@@ -2134,12 +2134,12 @@ var Kn = function(e) {
|
|
|
2134
2134
|
invalid_field_length: 0,
|
|
2135
2135
|
lines: 1,
|
|
2136
2136
|
records: 0
|
|
2137
|
-
}, n =
|
|
2137
|
+
}, n = Xn(e);
|
|
2138
2138
|
return {
|
|
2139
2139
|
info: t,
|
|
2140
2140
|
original_options: e,
|
|
2141
2141
|
options: n,
|
|
2142
|
-
state:
|
|
2142
|
+
state: Jn(n),
|
|
2143
2143
|
__needMoreData: function(e, t, n) {
|
|
2144
2144
|
if (n) return !1;
|
|
2145
2145
|
let { encoding: r, escape: i, quote: a } = this.options, { quoting: o, needMoreDataSize: s, recordDelimiterMaxLength: c } = this.state;
|
|
@@ -2149,7 +2149,7 @@ var Kn = function(e) {
|
|
|
2149
2149
|
let { bom: i, comment_no_infix: a, delimiter_auto: o, encoding: s, from_line: c, ltrim: l, max_record_size: u, raw: d, relax_quotes: f, rtrim: p, skip_empty_lines: m, to: h, to_line: g } = this.options, { comment: v, escape: y, quote: b, record_delimiter: x } = this.options, { bomSkipped: ee, delimiterDiscovered: te, delimiterBufPrevious: ne, rawBuffer: re, escapeIsQuote: ie } = this.state;
|
|
2150
2150
|
if (!te && o) {
|
|
2151
2151
|
let n;
|
|
2152
|
-
if (n = ne === void 0 ? e : ne !== void 0 && e === void 0 ? ne : _.concat([ne, e]), e = void 0, t || n.length > o.size) this.options.delimiter = [_.from(
|
|
2152
|
+
if (n = ne === void 0 ? e : ne !== void 0 && e === void 0 ? ne : _.concat([ne, e]), e = void 0, t || n.length > o.size) this.options.delimiter = [_.from(Zn(n, this.options.delimiter_auto))], this.state.previousBuf = n, this.state.delimiterBufPrevious = void 0, this.state.delimiterDiscovered = !0;
|
|
2153
2153
|
else {
|
|
2154
2154
|
this.state.delimiterBufPrevious = n;
|
|
2155
2155
|
return;
|
|
@@ -2171,10 +2171,10 @@ var Kn = function(e) {
|
|
|
2171
2171
|
return;
|
|
2172
2172
|
}
|
|
2173
2173
|
} else {
|
|
2174
|
-
for (let e in
|
|
2175
|
-
let t =
|
|
2174
|
+
for (let e in J) if (J[e].compare(C, 0, J[e].length) === 0) {
|
|
2175
|
+
let t = J[e].length;
|
|
2176
2176
|
this.state.bufBytesStart += t, C = C.slice(t);
|
|
2177
|
-
let n =
|
|
2177
|
+
let n = Xn({
|
|
2178
2178
|
...this.original_options,
|
|
2179
2179
|
encoding: e
|
|
2180
2180
|
});
|
|
@@ -2193,7 +2193,7 @@ var Kn = function(e) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
this.state.quoting === !1 && x.length === 0 && this.__autoDiscoverRecordDelimiter(C, w) && (x = this.options.record_delimiter);
|
|
2195
2195
|
let e = C[w];
|
|
2196
|
-
if (d === !0 && re.append(e), (e ===
|
|
2196
|
+
if (d === !0 && re.append(e), (e === er || e === tr) && this.state.wasRowDelimiter === !1 && (this.state.wasRowDelimiter = !0), this.state.escaping === !0) this.state.escaping = !1;
|
|
2197
2197
|
else {
|
|
2198
2198
|
if (y !== null && this.state.quoting === !0 && this.__isEscape(C, w, e) && w + y.length < ae) {
|
|
2199
2199
|
if (ie) {
|
|
@@ -2214,7 +2214,7 @@ var Kn = function(e) {
|
|
|
2214
2214
|
this.state.quoting = !1, this.state.wasQuoting = !0, w += b.length - 1;
|
|
2215
2215
|
continue;
|
|
2216
2216
|
} else if (f === !1) {
|
|
2217
|
-
let e = this.__error(new
|
|
2217
|
+
let e = this.__error(new q("CSV_INVALID_CLOSING_QUOTE", [
|
|
2218
2218
|
"Invalid Closing Quote:",
|
|
2219
2219
|
`got "${String.fromCharCode(t)}"`,
|
|
2220
2220
|
`at line ${this.info.lines}`,
|
|
@@ -2225,7 +2225,7 @@ var Kn = function(e) {
|
|
|
2225
2225
|
} else this.state.quoting = !1, this.state.wasQuoting = !0, this.state.field.prepend(b), w += b.length - 1;
|
|
2226
2226
|
} else if (this.state.field.length !== 0) {
|
|
2227
2227
|
if (f === !1) {
|
|
2228
|
-
let e = this.__infoField(), t = Object.keys(
|
|
2228
|
+
let e = this.__infoField(), t = Object.keys(J).map((e) => J[e].equals(this.state.field.toString()) ? e : !1).filter(Boolean)[0], n = this.__error(new q("INVALID_OPENING_QUOTE", [
|
|
2229
2229
|
"Invalid Opening Quote:",
|
|
2230
2230
|
`a quote is found on field ${JSON.stringify(e.column)} at line ${e.lines}, value is ${JSON.stringify(this.state.field.toString(s))}`,
|
|
2231
2231
|
t ? `(${t} bom)` : void 0
|
|
@@ -2279,7 +2279,7 @@ var Kn = function(e) {
|
|
|
2279
2279
|
}
|
|
2280
2280
|
}
|
|
2281
2281
|
}
|
|
2282
|
-
if (this.state.commenting === !1 && u !== 0 && this.state.record_length + this.state.field.length > u) return this.__error(new
|
|
2282
|
+
if (this.state.commenting === !1 && u !== 0 && this.state.record_length + this.state.field.length > u) return this.__error(new q("CSV_MAX_RECORD_SIZE", [
|
|
2283
2283
|
"Max Record Size:",
|
|
2284
2284
|
"record exceed the maximum number of tolerated bytes",
|
|
2285
2285
|
`of ${u}`,
|
|
@@ -2287,7 +2287,7 @@ var Kn = function(e) {
|
|
|
2287
2287
|
], this.options, this.__infoField()));
|
|
2288
2288
|
let t = l === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(C, w), i = p === !1 || this.state.wasQuoting === !1;
|
|
2289
2289
|
if (t === !0 && i === !0) this.state.field.append(e);
|
|
2290
|
-
else if (p === !0 && !this.__isCharTrimable(C, w)) return this.__error(new
|
|
2290
|
+
else if (p === !0 && !this.__isCharTrimable(C, w)) return this.__error(new q("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE", [
|
|
2291
2291
|
"Invalid Closing Quote:",
|
|
2292
2292
|
"found non trimable byte after quote",
|
|
2293
2293
|
`at line ${this.info.lines}`
|
|
@@ -2299,7 +2299,7 @@ var Kn = function(e) {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
if (t === !0) {
|
|
2301
2301
|
if (this.state.quoting === !0) {
|
|
2302
|
-
let e = this.__error(new
|
|
2302
|
+
let e = this.__error(new q("CSV_QUOTE_NOT_CLOSED", ["Quote Not Closed:", `the parsing is finished with an opening quote at line ${this.info.lines}`], this.options, this.__infoField()));
|
|
2303
2303
|
if (e !== void 0) return e;
|
|
2304
2304
|
} else if (this.state.wasQuoting === !0 || this.state.record.length !== 0 || this.state.field.length !== 0) {
|
|
2305
2305
|
this.info.bytes = this.state.bufBytesStart + w;
|
|
@@ -2316,18 +2316,18 @@ var Kn = function(e) {
|
|
|
2316
2316
|
if (d === !1) return this.__resetRecord();
|
|
2317
2317
|
let p = f.length;
|
|
2318
2318
|
if (t === !0) {
|
|
2319
|
-
if (u === !0 &&
|
|
2319
|
+
if (u === !0 && $n(f)) {
|
|
2320
2320
|
this.__resetRecord();
|
|
2321
2321
|
return;
|
|
2322
2322
|
}
|
|
2323
2323
|
return this.__firstLineToColumns(f);
|
|
2324
2324
|
}
|
|
2325
2325
|
if (t === !1 && this.info.records === 0 && (this.state.expectedRecordLength = p), p !== this.state.expectedRecordLength) {
|
|
2326
|
-
let e = t === !1 ? new
|
|
2326
|
+
let e = t === !1 ? new q("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH", [
|
|
2327
2327
|
"Invalid Record Length:",
|
|
2328
2328
|
`expect ${this.state.expectedRecordLength},`,
|
|
2329
2329
|
`got ${p} on line ${this.info.lines}`
|
|
2330
|
-
], this.options, this.__infoField(), { record: f }) : new
|
|
2330
|
+
], this.options, this.__infoField(), { record: f }) : new q("CSV_RECORD_INCONSISTENT_COLUMNS", [
|
|
2331
2331
|
"Invalid Record Length:",
|
|
2332
2332
|
`columns length is ${t.length},`,
|
|
2333
2333
|
`got ${p} on line ${this.info.lines}`
|
|
@@ -2338,7 +2338,7 @@ var Kn = function(e) {
|
|
|
2338
2338
|
if (t) return t;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
if (u === !0 &&
|
|
2341
|
+
if (u === !0 && $n(f)) this.__resetRecord();
|
|
2342
2342
|
else if (this.state.recordHasError === !0) this.__resetRecord(), this.state.recordHasError = !1;
|
|
2343
2343
|
else {
|
|
2344
2344
|
if (this.info.records++, a === 1 || this.info.records >= a) {
|
|
@@ -2373,12 +2373,12 @@ var Kn = function(e) {
|
|
|
2373
2373
|
let { firstLineToHeaders: t } = this.state;
|
|
2374
2374
|
try {
|
|
2375
2375
|
let n = t === void 0 ? e : t.call(null, e);
|
|
2376
|
-
if (!Array.isArray(n)) return this.__error(new
|
|
2376
|
+
if (!Array.isArray(n)) return this.__error(new q("CSV_INVALID_COLUMN_MAPPING", [
|
|
2377
2377
|
"Invalid Column Mapping:",
|
|
2378
2378
|
"expect an array from column function,",
|
|
2379
2379
|
`got ${JSON.stringify(n)}`
|
|
2380
2380
|
], this.options, this.__infoField(), { headers: n }));
|
|
2381
|
-
let r =
|
|
2381
|
+
let r = Kn(n);
|
|
2382
2382
|
this.state.expectedRecordLength = r.length, this.options.columns = r, this.__resetRecord();
|
|
2383
2383
|
return;
|
|
2384
2384
|
} catch (e) {
|
|
@@ -2540,13 +2540,13 @@ var Kn = function(e) {
|
|
|
2540
2540
|
};
|
|
2541
2541
|
}
|
|
2542
2542
|
};
|
|
2543
|
-
},
|
|
2543
|
+
}, rr = class extends G {
|
|
2544
2544
|
constructor(e = {}) {
|
|
2545
2545
|
super({
|
|
2546
2546
|
readableObjectMode: !0,
|
|
2547
2547
|
...e,
|
|
2548
2548
|
encoding: null
|
|
2549
|
-
}), this.api =
|
|
2549
|
+
}), this.api = nr({
|
|
2550
2550
|
on_skip: (e, t) => {
|
|
2551
2551
|
this.emit("skip", e, t);
|
|
2552
2552
|
},
|
|
@@ -2569,16 +2569,16 @@ var Kn = function(e) {
|
|
|
2569
2569
|
this.push(null), this.on("end", this.destroy);
|
|
2570
2570
|
}));
|
|
2571
2571
|
}
|
|
2572
|
-
},
|
|
2572
|
+
}, ir = function() {
|
|
2573
2573
|
let e, t, n;
|
|
2574
2574
|
for (let r in arguments) {
|
|
2575
2575
|
let i = arguments[r], a = typeof i;
|
|
2576
2576
|
if (e === void 0 && (typeof i == "string" || D(i))) e = i;
|
|
2577
|
-
else if (t === void 0 &&
|
|
2577
|
+
else if (t === void 0 && Gn(i)) t = i;
|
|
2578
2578
|
else if (n === void 0 && a === "function") n = i;
|
|
2579
|
-
else throw new
|
|
2579
|
+
else throw new q("CSV_INVALID_ARGUMENT", ["Invalid argument:", `got ${JSON.stringify(i)} at index ${r}`], t || {});
|
|
2580
2580
|
}
|
|
2581
|
-
let r = new
|
|
2581
|
+
let r = new rr(t);
|
|
2582
2582
|
if (n) {
|
|
2583
2583
|
let e = t === void 0 || t.objname === void 0 ? [] : Object.create(null);
|
|
2584
2584
|
r.on("readable", function() {
|
|
@@ -2597,33 +2597,28 @@ var Kn = function(e) {
|
|
|
2597
2597
|
typeof setImmediate == "function" ? setImmediate(t) : setTimeout(t, 0);
|
|
2598
2598
|
}
|
|
2599
2599
|
return r;
|
|
2600
|
-
}
|
|
2601
|
-
// node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
|
|
2602
|
-
function J(e) {
|
|
2603
|
-
return new Map(Object.entries(e));
|
|
2604
|
-
}
|
|
2605
|
-
var or = {
|
|
2600
|
+
}, ar = {
|
|
2606
2601
|
lang: void 0,
|
|
2607
2602
|
message: void 0,
|
|
2608
2603
|
abortEarly: void 0,
|
|
2609
2604
|
abortPipeEarly: void 0
|
|
2610
2605
|
};
|
|
2611
2606
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2612
|
-
function
|
|
2607
|
+
function or(e) {
|
|
2613
2608
|
return e ? {
|
|
2614
2609
|
lang: e?.lang ?? void 0,
|
|
2615
2610
|
message: e?.message,
|
|
2616
2611
|
abortEarly: e?.abortEarly ?? void 0,
|
|
2617
2612
|
abortPipeEarly: e?.abortPipeEarly ?? void 0
|
|
2618
|
-
} :
|
|
2613
|
+
} : ar;
|
|
2619
2614
|
}
|
|
2620
2615
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2621
|
-
function
|
|
2616
|
+
function sr(e) {
|
|
2622
2617
|
let t = typeof e;
|
|
2623
2618
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
2624
2619
|
}
|
|
2625
2620
|
function Y(e, t, n, r, i) {
|
|
2626
|
-
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */
|
|
2621
|
+
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ sr(a), c = {
|
|
2627
2622
|
kind: e.kind,
|
|
2628
2623
|
type: e.type,
|
|
2629
2624
|
input: a,
|
|
@@ -2640,11 +2635,11 @@ function Y(e, t, n, r, i) {
|
|
|
2640
2635
|
u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
|
|
2641
2636
|
}
|
|
2642
2637
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2643
|
-
function
|
|
2638
|
+
function cr(e, t) {
|
|
2644
2639
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
2645
2640
|
}
|
|
2646
2641
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2647
|
-
function
|
|
2642
|
+
function lr(e, t) {
|
|
2648
2643
|
let n = [...new Set(e)];
|
|
2649
2644
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
2650
2645
|
}
|
|
@@ -2652,29 +2647,29 @@ function X(e) {
|
|
|
2652
2647
|
return e["~standard"] = {
|
|
2653
2648
|
version: 1,
|
|
2654
2649
|
vendor: "valibot",
|
|
2655
|
-
validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */
|
|
2650
|
+
validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ or())
|
|
2656
2651
|
}, e;
|
|
2657
2652
|
}
|
|
2658
2653
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2659
|
-
function
|
|
2654
|
+
function ur(e, t, n) {
|
|
2660
2655
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
2661
2656
|
}
|
|
2662
2657
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2663
|
-
function
|
|
2658
|
+
function dr(e, t, n) {
|
|
2664
2659
|
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
2665
2660
|
}
|
|
2666
2661
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2667
|
-
function
|
|
2662
|
+
function fr(e, t) {
|
|
2668
2663
|
return X({
|
|
2669
2664
|
kind: "schema",
|
|
2670
2665
|
type: "literal",
|
|
2671
|
-
reference:
|
|
2672
|
-
expects: /* @__PURE__ */
|
|
2666
|
+
reference: fr,
|
|
2667
|
+
expects: /* @__PURE__ */ sr(e),
|
|
2673
2668
|
async: !1,
|
|
2674
2669
|
literal: e,
|
|
2675
2670
|
message: t,
|
|
2676
2671
|
"~run"(e, t) {
|
|
2677
|
-
return /* @__PURE__ */
|
|
2672
|
+
return /* @__PURE__ */ cr(e.value, this.literal) ? e.typed = !0 : Y(this, "type", e, t), e;
|
|
2678
2673
|
}
|
|
2679
2674
|
});
|
|
2680
2675
|
}
|
|
@@ -2689,16 +2684,16 @@ function Z(e, t) {
|
|
|
2689
2684
|
wrapped: e,
|
|
2690
2685
|
default: t,
|
|
2691
2686
|
"~run"(e, t) {
|
|
2692
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
2687
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ dr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
2693
2688
|
}
|
|
2694
2689
|
});
|
|
2695
2690
|
}
|
|
2696
2691
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2697
|
-
function
|
|
2692
|
+
function pr(e) {
|
|
2698
2693
|
return X({
|
|
2699
2694
|
kind: "schema",
|
|
2700
2695
|
type: "number",
|
|
2701
|
-
reference:
|
|
2696
|
+
reference: pr,
|
|
2702
2697
|
expects: "number",
|
|
2703
2698
|
async: !1,
|
|
2704
2699
|
message: e,
|
|
@@ -2708,26 +2703,26 @@ function mr(e) {
|
|
|
2708
2703
|
});
|
|
2709
2704
|
}
|
|
2710
2705
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2711
|
-
function
|
|
2706
|
+
function mr(e, t) {
|
|
2712
2707
|
return X({
|
|
2713
2708
|
kind: "schema",
|
|
2714
2709
|
type: "optional",
|
|
2715
|
-
reference:
|
|
2710
|
+
reference: mr,
|
|
2716
2711
|
expects: `(${e.expects} | undefined)`,
|
|
2717
2712
|
async: !1,
|
|
2718
2713
|
wrapped: e,
|
|
2719
2714
|
default: t,
|
|
2720
2715
|
"~run"(e, t) {
|
|
2721
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
2716
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ dr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
2722
2717
|
}
|
|
2723
2718
|
});
|
|
2724
2719
|
}
|
|
2725
2720
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2726
|
-
function
|
|
2721
|
+
function hr(e, t) {
|
|
2727
2722
|
return X({
|
|
2728
2723
|
kind: "schema",
|
|
2729
2724
|
type: "strict_object",
|
|
2730
|
-
reference:
|
|
2725
|
+
reference: hr,
|
|
2731
2726
|
expects: "Object",
|
|
2732
2727
|
async: !1,
|
|
2733
2728
|
entries: e,
|
|
@@ -2739,7 +2734,7 @@ function gr(e, t) {
|
|
|
2739
2734
|
for (let r in this.entries) {
|
|
2740
2735
|
let i = this.entries[r];
|
|
2741
2736
|
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
2742
|
-
let a = r in n ? n[r] : /* @__PURE__ */
|
|
2737
|
+
let a = r in n ? n[r] : /* @__PURE__ */ dr(i), o = i["~run"]({ value: a }, t);
|
|
2743
2738
|
if (o.issues) {
|
|
2744
2739
|
let i = {
|
|
2745
2740
|
type: "object",
|
|
@@ -2755,7 +2750,7 @@ function gr(e, t) {
|
|
|
2755
2750
|
}
|
|
2756
2751
|
}
|
|
2757
2752
|
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
2758
|
-
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */
|
|
2753
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ur(i);
|
|
2759
2754
|
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (Y(this, "key", e, t, {
|
|
2760
2755
|
input: void 0,
|
|
2761
2756
|
expected: `"${r}"`,
|
|
@@ -2804,19 +2799,19 @@ function Q(e) {
|
|
|
2804
2799
|
});
|
|
2805
2800
|
}
|
|
2806
2801
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2807
|
-
function
|
|
2802
|
+
function gr(e) {
|
|
2808
2803
|
let t;
|
|
2809
2804
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
2810
2805
|
else t = n.issues;
|
|
2811
2806
|
return t;
|
|
2812
2807
|
}
|
|
2813
2808
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2814
|
-
function
|
|
2809
|
+
function _r(e, t) {
|
|
2815
2810
|
return X({
|
|
2816
2811
|
kind: "schema",
|
|
2817
2812
|
type: "union",
|
|
2818
|
-
reference:
|
|
2819
|
-
expects: /* @__PURE__ */
|
|
2813
|
+
reference: _r,
|
|
2814
|
+
expects: /* @__PURE__ */ lr(e.map((e) => e.expects), "|"),
|
|
2820
2815
|
async: !1,
|
|
2821
2816
|
options: e,
|
|
2822
2817
|
message: t,
|
|
@@ -2835,26 +2830,26 @@ function vr(e, t) {
|
|
|
2835
2830
|
if (n) return n;
|
|
2836
2831
|
if (r) {
|
|
2837
2832
|
if (r.length === 1) return r[0];
|
|
2838
|
-
Y(this, "type", e, t, { issues: /* @__PURE__ */
|
|
2833
|
+
Y(this, "type", e, t, { issues: /* @__PURE__ */ gr(r) }), e.typed = !0;
|
|
2839
2834
|
} else if (i?.length === 1) return i[0];
|
|
2840
|
-
else Y(this, "type", e, t, { issues: /* @__PURE__ */
|
|
2835
|
+
else Y(this, "type", e, t, { issues: /* @__PURE__ */ gr(i) });
|
|
2841
2836
|
return e;
|
|
2842
2837
|
}
|
|
2843
2838
|
});
|
|
2844
2839
|
}
|
|
2845
|
-
var
|
|
2840
|
+
var vr = {
|
|
2846
2841
|
id: /* @__PURE__ */ Q(),
|
|
2847
|
-
label: /* @__PURE__ */
|
|
2848
|
-
en: /* @__PURE__ */
|
|
2849
|
-
es: /* @__PURE__ */
|
|
2842
|
+
label: /* @__PURE__ */ hr({
|
|
2843
|
+
en: /* @__PURE__ */ mr(/* @__PURE__ */ Q()),
|
|
2844
|
+
es: /* @__PURE__ */ mr(/* @__PURE__ */ Q())
|
|
2850
2845
|
}),
|
|
2851
|
-
description: /* @__PURE__ */
|
|
2852
|
-
en: /* @__PURE__ */
|
|
2853
|
-
es: /* @__PURE__ */
|
|
2846
|
+
description: /* @__PURE__ */ hr({
|
|
2847
|
+
en: /* @__PURE__ */ mr(/* @__PURE__ */ Q()),
|
|
2848
|
+
es: /* @__PURE__ */ mr(/* @__PURE__ */ Q())
|
|
2854
2849
|
}),
|
|
2855
2850
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
|
|
2856
2851
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ Q())
|
|
2857
|
-
}, $ = (e) => /* @__PURE__ */
|
|
2852
|
+
}, $ = (e) => /* @__PURE__ */ _r(e.map((e) => /* @__PURE__ */ fr(e))), yr = $([
|
|
2858
2853
|
"app",
|
|
2859
2854
|
"connector",
|
|
2860
2855
|
"connectorConnection",
|
|
@@ -2876,31 +2871,77 @@ var yr = {
|
|
|
2876
2871
|
"presenter",
|
|
2877
2872
|
"presenterPresentation",
|
|
2878
2873
|
"tool"
|
|
2879
|
-
]),
|
|
2874
|
+
]), br = $([
|
|
2880
2875
|
"danger",
|
|
2881
2876
|
"success",
|
|
2882
2877
|
"warning"
|
|
2883
|
-
]),
|
|
2878
|
+
]), xr = $([
|
|
2884
2879
|
"alpha",
|
|
2885
2880
|
"beta",
|
|
2886
2881
|
"releaseCandidate",
|
|
2887
2882
|
"generalAvailability"
|
|
2888
|
-
]),
|
|
2889
|
-
color:
|
|
2883
|
+
]), Sr = /* @__PURE__ */ hr({
|
|
2884
|
+
color: br,
|
|
2890
2885
|
label: /* @__PURE__ */ Q()
|
|
2891
|
-
}),
|
|
2892
|
-
...
|
|
2893
|
-
typeId:
|
|
2886
|
+
}), Cr = {
|
|
2887
|
+
...vr,
|
|
2888
|
+
typeId: yr
|
|
2894
2889
|
};
|
|
2895
|
-
({ ...
|
|
2896
|
-
var
|
|
2897
|
-
...
|
|
2898
|
-
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
2899
|
-
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
2900
|
-
status: /* @__PURE__ */ Z(
|
|
2901
|
-
statusId: /* @__PURE__ */ Z(
|
|
2890
|
+
({ ...Cr });
|
|
2891
|
+
var wr = {
|
|
2892
|
+
...Cr,
|
|
2893
|
+
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ pr()),
|
|
2894
|
+
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ pr()),
|
|
2895
|
+
status: /* @__PURE__ */ Z(Sr),
|
|
2896
|
+
statusId: /* @__PURE__ */ Z(xr)
|
|
2902
2897
|
};
|
|
2903
|
-
({ ...
|
|
2898
|
+
({ ...wr });
|
|
2899
|
+
var Tr = [
|
|
2900
|
+
{
|
|
2901
|
+
id: ",",
|
|
2902
|
+
character: ","
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
id: ";",
|
|
2906
|
+
character: ";"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
id: " ",
|
|
2910
|
+
character: " "
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
id: "|",
|
|
2914
|
+
character: "|"
|
|
2915
|
+
},
|
|
2916
|
+
{
|
|
2917
|
+
id: " ",
|
|
2918
|
+
character: " "
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
id: ":",
|
|
2922
|
+
character: ":"
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
id: "_",
|
|
2926
|
+
character: "_"
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
id: "!",
|
|
2930
|
+
character: "!"
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
id: "0x1F",
|
|
2934
|
+
character: ""
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
id: "0x1E",
|
|
2938
|
+
character: ""
|
|
2939
|
+
}
|
|
2940
|
+
];
|
|
2941
|
+
function Er(e) {
|
|
2942
|
+
return Tr.find(({ id: t }) => t === e)?.character ?? e;
|
|
2943
|
+
}
|
|
2944
|
+
$([
|
|
2904
2945
|
"app",
|
|
2905
2946
|
"engine",
|
|
2906
2947
|
"connector",
|
|
@@ -2908,14 +2949,14 @@ var Tr = {
|
|
|
2908
2949
|
"presenter",
|
|
2909
2950
|
"tool"
|
|
2910
2951
|
]);
|
|
2911
|
-
var
|
|
2912
|
-
...
|
|
2952
|
+
var Dr = {
|
|
2953
|
+
...wr,
|
|
2913
2954
|
vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
|
|
2914
2955
|
vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
|
|
2915
2956
|
vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
|
|
2916
2957
|
version: /* @__PURE__ */ Q()
|
|
2917
2958
|
};
|
|
2918
|
-
({ ...
|
|
2959
|
+
({ ...Dr }), $([
|
|
2919
2960
|
"abortOperation",
|
|
2920
2961
|
"auditObjectContent",
|
|
2921
2962
|
"closeStore",
|
|
@@ -2954,446 +2995,807 @@ var Er = {
|
|
|
2954
2995
|
"disabled",
|
|
2955
2996
|
"oAuth2",
|
|
2956
2997
|
"none"
|
|
2957
|
-
]), { ...
|
|
2958
|
-
var
|
|
2998
|
+
]), { ...Dr };
|
|
2999
|
+
var Or = {
|
|
3000
|
+
"armscii-8": {
|
|
3001
|
+
id: "armscii-8",
|
|
3002
|
+
groupId: "armenian",
|
|
3003
|
+
isDetectable: !1,
|
|
3004
|
+
textDecoderId: null,
|
|
3005
|
+
iconvLiteDecoderId: "armscii8"
|
|
3006
|
+
},
|
|
2959
3007
|
ascii: {
|
|
2960
3008
|
id: "ascii",
|
|
2961
3009
|
groupId: null,
|
|
2962
|
-
|
|
3010
|
+
isDetectable: !0,
|
|
3011
|
+
textDecoderId: "windows-1252",
|
|
3012
|
+
iconvLiteDecoderId: "ascii"
|
|
2963
3013
|
},
|
|
2964
3014
|
big5: {
|
|
2965
3015
|
id: "big5",
|
|
2966
3016
|
groupId: "chineseTraditional",
|
|
2967
|
-
|
|
3017
|
+
isDetectable: !0,
|
|
3018
|
+
textDecoderId: "big5",
|
|
3019
|
+
iconvLiteDecoderId: "big5hkscs"
|
|
3020
|
+
},
|
|
3021
|
+
"cesu-8": {
|
|
3022
|
+
id: "cesu-8",
|
|
3023
|
+
groupId: "unicode",
|
|
3024
|
+
isDetectable: !1,
|
|
3025
|
+
textDecoderId: null,
|
|
3026
|
+
iconvLiteDecoderId: "cesu8"
|
|
2968
3027
|
},
|
|
2969
3028
|
cp273: {
|
|
2970
3029
|
id: "cp273",
|
|
2971
3030
|
groupId: "western",
|
|
2972
|
-
|
|
3031
|
+
isDetectable: !0,
|
|
3032
|
+
textDecoderId: null,
|
|
3033
|
+
iconvLiteDecoderId: null
|
|
2973
3034
|
},
|
|
2974
3035
|
cp424: {
|
|
2975
3036
|
id: "cp424",
|
|
2976
3037
|
groupId: "hebrew",
|
|
2977
|
-
|
|
3038
|
+
isDetectable: !0,
|
|
3039
|
+
textDecoderId: null,
|
|
3040
|
+
iconvLiteDecoderId: null
|
|
2978
3041
|
},
|
|
2979
3042
|
cp437: {
|
|
2980
3043
|
id: "cp437",
|
|
2981
3044
|
groupId: "western",
|
|
2982
|
-
|
|
3045
|
+
isDetectable: !0,
|
|
3046
|
+
textDecoderId: null,
|
|
3047
|
+
iconvLiteDecoderId: "cp437"
|
|
2983
3048
|
},
|
|
2984
3049
|
cp500: {
|
|
2985
3050
|
id: "cp500",
|
|
2986
3051
|
groupId: "western",
|
|
2987
|
-
|
|
3052
|
+
isDetectable: !0,
|
|
3053
|
+
textDecoderId: null,
|
|
3054
|
+
iconvLiteDecoderId: null
|
|
2988
3055
|
},
|
|
2989
3056
|
cp720: {
|
|
2990
3057
|
id: "cp720",
|
|
2991
3058
|
groupId: "arabic",
|
|
2992
|
-
|
|
3059
|
+
isDetectable: !0,
|
|
3060
|
+
textDecoderId: null,
|
|
3061
|
+
iconvLiteDecoderId: "cp720"
|
|
2993
3062
|
},
|
|
2994
3063
|
cp737: {
|
|
2995
3064
|
id: "cp737",
|
|
2996
3065
|
groupId: "greek",
|
|
2997
|
-
|
|
3066
|
+
isDetectable: !0,
|
|
3067
|
+
textDecoderId: null,
|
|
3068
|
+
iconvLiteDecoderId: "cp737"
|
|
2998
3069
|
},
|
|
2999
3070
|
cp775: {
|
|
3000
3071
|
id: "cp775",
|
|
3001
3072
|
groupId: "baltic",
|
|
3002
|
-
|
|
3073
|
+
isDetectable: !0,
|
|
3074
|
+
textDecoderId: null,
|
|
3075
|
+
iconvLiteDecoderId: "cp775"
|
|
3076
|
+
},
|
|
3077
|
+
cp808: {
|
|
3078
|
+
id: "cp808",
|
|
3079
|
+
groupId: "cyrillic",
|
|
3080
|
+
isDetectable: !1,
|
|
3081
|
+
textDecoderId: null,
|
|
3082
|
+
iconvLiteDecoderId: "cp808"
|
|
3003
3083
|
},
|
|
3004
3084
|
cp850: {
|
|
3005
3085
|
id: "cp850",
|
|
3006
3086
|
groupId: "western",
|
|
3007
|
-
|
|
3087
|
+
isDetectable: !0,
|
|
3088
|
+
textDecoderId: null,
|
|
3089
|
+
iconvLiteDecoderId: "cp850"
|
|
3008
3090
|
},
|
|
3009
3091
|
cp852: {
|
|
3010
3092
|
id: "cp852",
|
|
3011
3093
|
groupId: "centralEuropean",
|
|
3012
|
-
|
|
3094
|
+
isDetectable: !0,
|
|
3095
|
+
textDecoderId: null,
|
|
3096
|
+
iconvLiteDecoderId: "cp852"
|
|
3013
3097
|
},
|
|
3014
3098
|
cp856: {
|
|
3015
3099
|
id: "cp856",
|
|
3016
3100
|
groupId: "hebrew",
|
|
3017
|
-
|
|
3101
|
+
isDetectable: !0,
|
|
3102
|
+
textDecoderId: null,
|
|
3103
|
+
iconvLiteDecoderId: "cp856"
|
|
3018
3104
|
},
|
|
3019
3105
|
cp857: {
|
|
3020
3106
|
id: "cp857",
|
|
3021
3107
|
groupId: "turkish",
|
|
3022
|
-
|
|
3108
|
+
isDetectable: !0,
|
|
3109
|
+
textDecoderId: null,
|
|
3110
|
+
iconvLiteDecoderId: "cp857"
|
|
3023
3111
|
},
|
|
3024
3112
|
cp858: {
|
|
3025
3113
|
id: "cp858",
|
|
3026
3114
|
groupId: "western",
|
|
3027
|
-
|
|
3115
|
+
isDetectable: !0,
|
|
3116
|
+
textDecoderId: null,
|
|
3117
|
+
iconvLiteDecoderId: "cp858"
|
|
3028
3118
|
},
|
|
3029
3119
|
cp860: {
|
|
3030
3120
|
id: "cp860",
|
|
3031
3121
|
groupId: "western",
|
|
3032
|
-
|
|
3122
|
+
isDetectable: !0,
|
|
3123
|
+
textDecoderId: null,
|
|
3124
|
+
iconvLiteDecoderId: "cp860"
|
|
3033
3125
|
},
|
|
3034
3126
|
cp861: {
|
|
3035
3127
|
id: "cp861",
|
|
3036
3128
|
groupId: "nordic",
|
|
3037
|
-
|
|
3129
|
+
isDetectable: !0,
|
|
3130
|
+
textDecoderId: null,
|
|
3131
|
+
iconvLiteDecoderId: "cp861"
|
|
3038
3132
|
},
|
|
3039
3133
|
cp862: {
|
|
3040
3134
|
id: "cp862",
|
|
3041
3135
|
groupId: "hebrew",
|
|
3042
|
-
|
|
3136
|
+
isDetectable: !0,
|
|
3137
|
+
textDecoderId: null,
|
|
3138
|
+
iconvLiteDecoderId: "cp862"
|
|
3043
3139
|
},
|
|
3044
3140
|
cp863: {
|
|
3045
3141
|
id: "cp863",
|
|
3046
3142
|
groupId: "western",
|
|
3047
|
-
|
|
3143
|
+
isDetectable: !0,
|
|
3144
|
+
textDecoderId: null,
|
|
3145
|
+
iconvLiteDecoderId: "cp863"
|
|
3048
3146
|
},
|
|
3049
3147
|
cp864: {
|
|
3050
3148
|
id: "cp864",
|
|
3051
3149
|
groupId: "arabic",
|
|
3052
|
-
|
|
3150
|
+
isDetectable: !0,
|
|
3151
|
+
textDecoderId: null,
|
|
3152
|
+
iconvLiteDecoderId: "cp864"
|
|
3053
3153
|
},
|
|
3054
3154
|
cp865: {
|
|
3055
3155
|
id: "cp865",
|
|
3056
3156
|
groupId: "nordic",
|
|
3057
|
-
|
|
3157
|
+
isDetectable: !0,
|
|
3158
|
+
textDecoderId: null,
|
|
3159
|
+
iconvLiteDecoderId: "cp865"
|
|
3058
3160
|
},
|
|
3059
3161
|
cp869: {
|
|
3060
3162
|
id: "cp869",
|
|
3061
3163
|
groupId: "greek",
|
|
3062
|
-
|
|
3164
|
+
isDetectable: !0,
|
|
3165
|
+
textDecoderId: null,
|
|
3166
|
+
iconvLiteDecoderId: "cp869"
|
|
3063
3167
|
},
|
|
3064
3168
|
cp874: {
|
|
3065
3169
|
id: "cp874",
|
|
3066
3170
|
groupId: "thai",
|
|
3067
|
-
|
|
3171
|
+
isDetectable: !0,
|
|
3172
|
+
textDecoderId: "windows-874",
|
|
3173
|
+
iconvLiteDecoderId: "windows874"
|
|
3068
3174
|
},
|
|
3069
3175
|
cp875: {
|
|
3070
3176
|
id: "cp875",
|
|
3071
3177
|
groupId: "greek",
|
|
3072
|
-
|
|
3178
|
+
isDetectable: !0,
|
|
3179
|
+
textDecoderId: null,
|
|
3180
|
+
iconvLiteDecoderId: null
|
|
3181
|
+
},
|
|
3182
|
+
cp922: {
|
|
3183
|
+
id: "cp922",
|
|
3184
|
+
groupId: "baltic",
|
|
3185
|
+
isDetectable: !1,
|
|
3186
|
+
textDecoderId: null,
|
|
3187
|
+
iconvLiteDecoderId: "cp922"
|
|
3073
3188
|
},
|
|
3074
3189
|
cp932: {
|
|
3075
3190
|
id: "cp932",
|
|
3076
3191
|
groupId: "japanese",
|
|
3077
|
-
|
|
3192
|
+
isDetectable: !0,
|
|
3193
|
+
textDecoderId: "shift_jis",
|
|
3194
|
+
iconvLiteDecoderId: "shiftjis"
|
|
3195
|
+
},
|
|
3196
|
+
cp936: {
|
|
3197
|
+
id: "cp936",
|
|
3198
|
+
groupId: "chineseSimplified",
|
|
3199
|
+
isDetectable: !1,
|
|
3200
|
+
textDecoderId: null,
|
|
3201
|
+
iconvLiteDecoderId: "cp936"
|
|
3078
3202
|
},
|
|
3079
3203
|
cp949: {
|
|
3080
3204
|
id: "cp949",
|
|
3081
3205
|
groupId: "korean",
|
|
3082
|
-
|
|
3206
|
+
isDetectable: !0,
|
|
3207
|
+
textDecoderId: "euc-kr",
|
|
3208
|
+
iconvLiteDecoderId: "cp949"
|
|
3209
|
+
},
|
|
3210
|
+
cp950: {
|
|
3211
|
+
id: "cp950",
|
|
3212
|
+
groupId: "chineseTraditional",
|
|
3213
|
+
isDetectable: !1,
|
|
3214
|
+
textDecoderId: null,
|
|
3215
|
+
iconvLiteDecoderId: "cp950"
|
|
3083
3216
|
},
|
|
3084
3217
|
cp1006: {
|
|
3085
3218
|
id: "cp1006",
|
|
3086
3219
|
groupId: "arabic",
|
|
3087
|
-
|
|
3220
|
+
isDetectable: !0,
|
|
3221
|
+
textDecoderId: null,
|
|
3222
|
+
iconvLiteDecoderId: null
|
|
3088
3223
|
},
|
|
3089
3224
|
cp1026: {
|
|
3090
3225
|
id: "cp1026",
|
|
3091
3226
|
groupId: "turkish",
|
|
3092
|
-
|
|
3227
|
+
isDetectable: !0,
|
|
3228
|
+
textDecoderId: null,
|
|
3229
|
+
iconvLiteDecoderId: null
|
|
3230
|
+
},
|
|
3231
|
+
cp1046: {
|
|
3232
|
+
id: "cp1046",
|
|
3233
|
+
groupId: "arabic",
|
|
3234
|
+
isDetectable: !1,
|
|
3235
|
+
textDecoderId: null,
|
|
3236
|
+
iconvLiteDecoderId: "cp1046"
|
|
3237
|
+
},
|
|
3238
|
+
cp1124: {
|
|
3239
|
+
id: "cp1124",
|
|
3240
|
+
groupId: "cyrillic",
|
|
3241
|
+
isDetectable: !1,
|
|
3242
|
+
textDecoderId: null,
|
|
3243
|
+
iconvLiteDecoderId: "cp1124"
|
|
3093
3244
|
},
|
|
3094
3245
|
cp1125: {
|
|
3095
3246
|
id: "cp1125",
|
|
3096
3247
|
groupId: "cyrillic",
|
|
3097
|
-
|
|
3248
|
+
isDetectable: !0,
|
|
3249
|
+
textDecoderId: null,
|
|
3250
|
+
iconvLiteDecoderId: "cp1125"
|
|
3251
|
+
},
|
|
3252
|
+
cp1129: {
|
|
3253
|
+
id: "cp1129",
|
|
3254
|
+
groupId: "vietnamese",
|
|
3255
|
+
isDetectable: !1,
|
|
3256
|
+
textDecoderId: null,
|
|
3257
|
+
iconvLiteDecoderId: "cp1129"
|
|
3258
|
+
},
|
|
3259
|
+
cp1133: {
|
|
3260
|
+
id: "cp1133",
|
|
3261
|
+
groupId: "lao",
|
|
3262
|
+
isDetectable: !1,
|
|
3263
|
+
textDecoderId: null,
|
|
3264
|
+
iconvLiteDecoderId: "cp1133"
|
|
3098
3265
|
},
|
|
3099
3266
|
cp1140: {
|
|
3100
3267
|
id: "cp1140",
|
|
3101
3268
|
groupId: "western",
|
|
3102
|
-
|
|
3269
|
+
isDetectable: !0,
|
|
3270
|
+
textDecoderId: null,
|
|
3271
|
+
iconvLiteDecoderId: null
|
|
3272
|
+
},
|
|
3273
|
+
cp1161: {
|
|
3274
|
+
id: "cp1161",
|
|
3275
|
+
groupId: "thai",
|
|
3276
|
+
isDetectable: !1,
|
|
3277
|
+
textDecoderId: null,
|
|
3278
|
+
iconvLiteDecoderId: "cp1161"
|
|
3279
|
+
},
|
|
3280
|
+
cp1162: {
|
|
3281
|
+
id: "cp1162",
|
|
3282
|
+
groupId: "thai",
|
|
3283
|
+
isDetectable: !1,
|
|
3284
|
+
textDecoderId: null,
|
|
3285
|
+
iconvLiteDecoderId: "cp1162"
|
|
3286
|
+
},
|
|
3287
|
+
cp1163: {
|
|
3288
|
+
id: "cp1163",
|
|
3289
|
+
groupId: "vietnamese",
|
|
3290
|
+
isDetectable: !1,
|
|
3291
|
+
textDecoderId: null,
|
|
3292
|
+
iconvLiteDecoderId: "cp1163"
|
|
3103
3293
|
},
|
|
3104
3294
|
cp1258: {
|
|
3105
3295
|
id: "cp1258",
|
|
3106
3296
|
groupId: "vietnamese",
|
|
3107
|
-
|
|
3297
|
+
isDetectable: !0,
|
|
3298
|
+
textDecoderId: "windows-1258",
|
|
3299
|
+
iconvLiteDecoderId: "windows1258"
|
|
3108
3300
|
},
|
|
3109
3301
|
"euc-jp": {
|
|
3110
3302
|
id: "euc-jp",
|
|
3111
3303
|
groupId: "japanese",
|
|
3112
|
-
|
|
3304
|
+
isDetectable: !0,
|
|
3305
|
+
textDecoderId: "euc-jp",
|
|
3306
|
+
iconvLiteDecoderId: "eucjp"
|
|
3113
3307
|
},
|
|
3114
3308
|
"euc-kr": {
|
|
3115
3309
|
id: "euc-kr",
|
|
3116
3310
|
groupId: "korean",
|
|
3117
|
-
|
|
3311
|
+
isDetectable: !0,
|
|
3312
|
+
textDecoderId: "euc-kr",
|
|
3313
|
+
iconvLiteDecoderId: "cp949"
|
|
3118
3314
|
},
|
|
3119
3315
|
gb18030: {
|
|
3120
3316
|
id: "gb18030",
|
|
3121
3317
|
groupId: "chineseSimplified",
|
|
3122
|
-
|
|
3318
|
+
isDetectable: !0,
|
|
3319
|
+
textDecoderId: "gb18030",
|
|
3320
|
+
iconvLiteDecoderId: "gb18030"
|
|
3321
|
+
},
|
|
3322
|
+
gbk: {
|
|
3323
|
+
id: "gbk",
|
|
3324
|
+
groupId: "chineseSimplified",
|
|
3325
|
+
isDetectable: !1,
|
|
3326
|
+
textDecoderId: "gbk",
|
|
3327
|
+
iconvLiteDecoderId: "gbk"
|
|
3328
|
+
},
|
|
3329
|
+
"georgian-academy": {
|
|
3330
|
+
id: "georgian-academy",
|
|
3331
|
+
groupId: "georgian",
|
|
3332
|
+
isDetectable: !1,
|
|
3333
|
+
textDecoderId: null,
|
|
3334
|
+
iconvLiteDecoderId: "georgianacademy"
|
|
3335
|
+
},
|
|
3336
|
+
"georgian-ps": {
|
|
3337
|
+
id: "georgian-ps",
|
|
3338
|
+
groupId: "georgian",
|
|
3339
|
+
isDetectable: !1,
|
|
3340
|
+
textDecoderId: null,
|
|
3341
|
+
iconvLiteDecoderId: "georgianps"
|
|
3123
3342
|
},
|
|
3124
3343
|
"hp-roman8": {
|
|
3125
3344
|
id: "hp-roman8",
|
|
3126
3345
|
groupId: "western",
|
|
3127
|
-
|
|
3346
|
+
isDetectable: !0,
|
|
3347
|
+
textDecoderId: null,
|
|
3348
|
+
iconvLiteDecoderId: "hproman8"
|
|
3128
3349
|
},
|
|
3129
3350
|
"hz-gb-2312": {
|
|
3130
3351
|
id: "hz-gb-2312",
|
|
3131
3352
|
groupId: "chineseSimplified",
|
|
3132
|
-
|
|
3353
|
+
isDetectable: !0,
|
|
3354
|
+
textDecoderId: null,
|
|
3355
|
+
iconvLiteDecoderId: null
|
|
3133
3356
|
},
|
|
3134
3357
|
ibm855: {
|
|
3135
3358
|
id: "ibm855",
|
|
3136
3359
|
groupId: "cyrillic",
|
|
3137
|
-
|
|
3360
|
+
isDetectable: !0,
|
|
3361
|
+
textDecoderId: null,
|
|
3362
|
+
iconvLiteDecoderId: "cp855"
|
|
3138
3363
|
},
|
|
3139
3364
|
ibm866: {
|
|
3140
3365
|
id: "ibm866",
|
|
3141
3366
|
groupId: "cyrillic",
|
|
3142
|
-
|
|
3367
|
+
isDetectable: !0,
|
|
3368
|
+
textDecoderId: "ibm866",
|
|
3369
|
+
iconvLiteDecoderId: "cp866"
|
|
3143
3370
|
},
|
|
3144
3371
|
"iso-2022-jp": {
|
|
3145
3372
|
id: "iso-2022-jp",
|
|
3146
3373
|
groupId: "japanese",
|
|
3147
|
-
|
|
3374
|
+
isDetectable: !0,
|
|
3375
|
+
textDecoderId: "iso-2022-jp",
|
|
3376
|
+
iconvLiteDecoderId: null
|
|
3148
3377
|
},
|
|
3149
3378
|
"iso-2022-kr": {
|
|
3150
3379
|
id: "iso-2022-kr",
|
|
3151
3380
|
groupId: "korean",
|
|
3152
|
-
|
|
3381
|
+
isDetectable: !0,
|
|
3382
|
+
textDecoderId: null,
|
|
3383
|
+
iconvLiteDecoderId: null
|
|
3153
3384
|
},
|
|
3154
3385
|
"iso-8859-1": {
|
|
3155
3386
|
id: "iso-8859-1",
|
|
3156
3387
|
groupId: "western",
|
|
3157
|
-
|
|
3388
|
+
isDetectable: !0,
|
|
3389
|
+
textDecoderId: "windows-1252",
|
|
3390
|
+
iconvLiteDecoderId: "iso88591"
|
|
3158
3391
|
},
|
|
3159
3392
|
"iso-8859-2": {
|
|
3160
3393
|
id: "iso-8859-2",
|
|
3161
3394
|
groupId: "centralEuropean",
|
|
3162
|
-
|
|
3395
|
+
isDetectable: !0,
|
|
3396
|
+
textDecoderId: "iso-8859-2",
|
|
3397
|
+
iconvLiteDecoderId: "iso88592"
|
|
3163
3398
|
},
|
|
3164
3399
|
"iso-8859-5": {
|
|
3165
3400
|
id: "iso-8859-5",
|
|
3166
3401
|
groupId: "cyrillic",
|
|
3167
|
-
|
|
3402
|
+
isDetectable: !0,
|
|
3403
|
+
textDecoderId: "iso-8859-5",
|
|
3404
|
+
iconvLiteDecoderId: "iso88595"
|
|
3168
3405
|
},
|
|
3169
3406
|
"iso-8859-6": {
|
|
3170
3407
|
id: "iso-8859-6",
|
|
3171
3408
|
groupId: "arabic",
|
|
3172
|
-
|
|
3409
|
+
isDetectable: !0,
|
|
3410
|
+
textDecoderId: "iso-8859-6",
|
|
3411
|
+
iconvLiteDecoderId: "iso88596"
|
|
3173
3412
|
},
|
|
3174
3413
|
"iso-8859-7": {
|
|
3175
3414
|
id: "iso-8859-7",
|
|
3176
3415
|
groupId: "greek",
|
|
3177
|
-
|
|
3416
|
+
isDetectable: !0,
|
|
3417
|
+
textDecoderId: "iso-8859-7",
|
|
3418
|
+
iconvLiteDecoderId: "iso88597"
|
|
3178
3419
|
},
|
|
3179
3420
|
"iso-8859-8": {
|
|
3180
3421
|
id: "iso-8859-8",
|
|
3181
3422
|
groupId: "hebrew",
|
|
3182
|
-
|
|
3423
|
+
isDetectable: !0,
|
|
3424
|
+
textDecoderId: "iso-8859-8-i",
|
|
3425
|
+
iconvLiteDecoderId: "iso88598"
|
|
3183
3426
|
},
|
|
3184
3427
|
"iso-8859-9": {
|
|
3185
3428
|
id: "iso-8859-9",
|
|
3186
3429
|
groupId: "turkish",
|
|
3187
|
-
|
|
3430
|
+
isDetectable: !0,
|
|
3431
|
+
textDecoderId: "windows-1254",
|
|
3432
|
+
iconvLiteDecoderId: "iso88599"
|
|
3433
|
+
},
|
|
3434
|
+
"iso-8859-11": {
|
|
3435
|
+
id: "iso-8859-11",
|
|
3436
|
+
groupId: "thai",
|
|
3437
|
+
isDetectable: !1,
|
|
3438
|
+
textDecoderId: "windows-874",
|
|
3439
|
+
iconvLiteDecoderId: "iso885911"
|
|
3188
3440
|
},
|
|
3189
3441
|
"iso-8859-13": {
|
|
3190
3442
|
id: "iso-8859-13",
|
|
3191
3443
|
groupId: "baltic",
|
|
3192
|
-
|
|
3444
|
+
isDetectable: !0,
|
|
3445
|
+
textDecoderId: "iso-8859-13",
|
|
3446
|
+
iconvLiteDecoderId: "iso885913"
|
|
3447
|
+
},
|
|
3448
|
+
"iso646-cn": {
|
|
3449
|
+
id: "iso646-cn",
|
|
3450
|
+
groupId: "chineseSimplified",
|
|
3451
|
+
isDetectable: !1,
|
|
3452
|
+
textDecoderId: null,
|
|
3453
|
+
iconvLiteDecoderId: "iso646cn"
|
|
3454
|
+
},
|
|
3455
|
+
"iso646-jp": {
|
|
3456
|
+
id: "iso646-jp",
|
|
3457
|
+
groupId: "japanese",
|
|
3458
|
+
isDetectable: !1,
|
|
3459
|
+
textDecoderId: null,
|
|
3460
|
+
iconvLiteDecoderId: "iso646jp"
|
|
3193
3461
|
},
|
|
3194
3462
|
iso2022_jp_2004: {
|
|
3195
3463
|
id: "iso2022_jp_2004",
|
|
3196
3464
|
groupId: "japanese",
|
|
3197
|
-
|
|
3465
|
+
isDetectable: !0,
|
|
3466
|
+
textDecoderId: null,
|
|
3467
|
+
iconvLiteDecoderId: null
|
|
3198
3468
|
},
|
|
3199
3469
|
iso2022_jp_ext: {
|
|
3200
3470
|
id: "iso2022_jp_ext",
|
|
3201
3471
|
groupId: "japanese",
|
|
3202
|
-
|
|
3472
|
+
isDetectable: !0,
|
|
3473
|
+
textDecoderId: null,
|
|
3474
|
+
iconvLiteDecoderId: null
|
|
3203
3475
|
},
|
|
3204
3476
|
"iso8859-3": {
|
|
3205
3477
|
id: "iso8859-3",
|
|
3206
3478
|
groupId: "southernEuropean",
|
|
3207
|
-
|
|
3479
|
+
isDetectable: !0,
|
|
3480
|
+
textDecoderId: "iso-8859-3",
|
|
3481
|
+
iconvLiteDecoderId: "iso88593"
|
|
3208
3482
|
},
|
|
3209
3483
|
"iso8859-4": {
|
|
3210
3484
|
id: "iso8859-4",
|
|
3211
3485
|
groupId: "baltic",
|
|
3212
|
-
|
|
3486
|
+
isDetectable: !0,
|
|
3487
|
+
textDecoderId: "iso-8859-4",
|
|
3488
|
+
iconvLiteDecoderId: "iso88594"
|
|
3213
3489
|
},
|
|
3214
3490
|
"iso8859-10": {
|
|
3215
3491
|
id: "iso8859-10",
|
|
3216
3492
|
groupId: "nordic",
|
|
3217
|
-
|
|
3493
|
+
isDetectable: !0,
|
|
3494
|
+
textDecoderId: "iso-8859-10",
|
|
3495
|
+
iconvLiteDecoderId: "iso885910"
|
|
3218
3496
|
},
|
|
3219
3497
|
"iso8859-14": {
|
|
3220
3498
|
id: "iso8859-14",
|
|
3221
3499
|
groupId: "celtic",
|
|
3222
|
-
|
|
3500
|
+
isDetectable: !0,
|
|
3501
|
+
textDecoderId: "iso-8859-14",
|
|
3502
|
+
iconvLiteDecoderId: "iso885914"
|
|
3223
3503
|
},
|
|
3224
3504
|
"iso8859-15": {
|
|
3225
3505
|
id: "iso8859-15",
|
|
3226
3506
|
groupId: "western",
|
|
3227
|
-
|
|
3507
|
+
isDetectable: !0,
|
|
3508
|
+
textDecoderId: "iso-8859-15",
|
|
3509
|
+
iconvLiteDecoderId: "iso885915"
|
|
3228
3510
|
},
|
|
3229
3511
|
"iso8859-16": {
|
|
3230
3512
|
id: "iso8859-16",
|
|
3231
|
-
groupId: "
|
|
3232
|
-
|
|
3513
|
+
groupId: "southEasternEuropean",
|
|
3514
|
+
isDetectable: !0,
|
|
3515
|
+
textDecoderId: "iso-8859-16",
|
|
3516
|
+
iconvLiteDecoderId: "iso885916"
|
|
3233
3517
|
},
|
|
3234
3518
|
johab: {
|
|
3235
3519
|
id: "johab",
|
|
3236
3520
|
groupId: "korean",
|
|
3237
|
-
|
|
3521
|
+
isDetectable: !0,
|
|
3522
|
+
textDecoderId: null,
|
|
3523
|
+
iconvLiteDecoderId: null
|
|
3238
3524
|
},
|
|
3239
3525
|
"koi8-r": {
|
|
3240
3526
|
id: "koi8-r",
|
|
3241
3527
|
groupId: "cyrillic",
|
|
3242
|
-
|
|
3528
|
+
isDetectable: !0,
|
|
3529
|
+
textDecoderId: "koi8-r",
|
|
3530
|
+
iconvLiteDecoderId: "koi8r"
|
|
3531
|
+
},
|
|
3532
|
+
"koi8-ru": {
|
|
3533
|
+
id: "koi8-ru",
|
|
3534
|
+
groupId: "cyrillic",
|
|
3535
|
+
isDetectable: !1,
|
|
3536
|
+
textDecoderId: "koi8-u",
|
|
3537
|
+
iconvLiteDecoderId: "koi8ru"
|
|
3243
3538
|
},
|
|
3244
3539
|
"koi8-t": {
|
|
3245
3540
|
id: "koi8-t",
|
|
3246
3541
|
groupId: "cyrillic",
|
|
3247
|
-
|
|
3542
|
+
isDetectable: !0,
|
|
3543
|
+
textDecoderId: null,
|
|
3544
|
+
iconvLiteDecoderId: "koi8t"
|
|
3248
3545
|
},
|
|
3249
3546
|
"koi8-u": {
|
|
3250
3547
|
id: "koi8-u",
|
|
3251
3548
|
groupId: "cyrillic",
|
|
3252
|
-
|
|
3549
|
+
isDetectable: !0,
|
|
3550
|
+
textDecoderId: "koi8-u",
|
|
3551
|
+
iconvLiteDecoderId: "koi8u"
|
|
3253
3552
|
},
|
|
3254
3553
|
kz1048: {
|
|
3255
3554
|
id: "kz1048",
|
|
3256
3555
|
groupId: "cyrillic",
|
|
3257
|
-
|
|
3556
|
+
isDetectable: !0,
|
|
3557
|
+
textDecoderId: null,
|
|
3558
|
+
iconvLiteDecoderId: "rk1048"
|
|
3559
|
+
},
|
|
3560
|
+
maccroatian: {
|
|
3561
|
+
id: "maccroatian",
|
|
3562
|
+
groupId: "centralEuropean",
|
|
3563
|
+
isDetectable: !1,
|
|
3564
|
+
textDecoderId: null,
|
|
3565
|
+
iconvLiteDecoderId: "maccroatian"
|
|
3258
3566
|
},
|
|
3259
3567
|
maccyrillic: {
|
|
3260
3568
|
id: "maccyrillic",
|
|
3261
3569
|
groupId: "cyrillic",
|
|
3262
|
-
|
|
3570
|
+
isDetectable: !0,
|
|
3571
|
+
textDecoderId: "x-mac-cyrillic",
|
|
3572
|
+
iconvLiteDecoderId: "maccyrillic"
|
|
3263
3573
|
},
|
|
3264
3574
|
macgreek: {
|
|
3265
3575
|
id: "macgreek",
|
|
3266
3576
|
groupId: "greek",
|
|
3267
|
-
|
|
3577
|
+
isDetectable: !0,
|
|
3578
|
+
textDecoderId: null,
|
|
3579
|
+
iconvLiteDecoderId: "macgreek"
|
|
3268
3580
|
},
|
|
3269
3581
|
maciceland: {
|
|
3270
3582
|
id: "maciceland",
|
|
3271
3583
|
groupId: "nordic",
|
|
3272
|
-
|
|
3584
|
+
isDetectable: !0,
|
|
3585
|
+
textDecoderId: null,
|
|
3586
|
+
iconvLiteDecoderId: "maciceland"
|
|
3273
3587
|
},
|
|
3274
3588
|
maclatin2: {
|
|
3275
3589
|
id: "maclatin2",
|
|
3276
3590
|
groupId: "centralEuropean",
|
|
3277
|
-
|
|
3591
|
+
isDetectable: !0,
|
|
3592
|
+
textDecoderId: null,
|
|
3593
|
+
iconvLiteDecoderId: "maccenteuro"
|
|
3278
3594
|
},
|
|
3279
3595
|
macroman: {
|
|
3280
3596
|
id: "macroman",
|
|
3281
3597
|
groupId: "western",
|
|
3282
|
-
|
|
3598
|
+
isDetectable: !0,
|
|
3599
|
+
textDecoderId: "macintosh",
|
|
3600
|
+
iconvLiteDecoderId: "macroman"
|
|
3601
|
+
},
|
|
3602
|
+
macromania: {
|
|
3603
|
+
id: "macromania",
|
|
3604
|
+
groupId: "southEasternEuropean",
|
|
3605
|
+
isDetectable: !1,
|
|
3606
|
+
textDecoderId: null,
|
|
3607
|
+
iconvLiteDecoderId: "macromania"
|
|
3608
|
+
},
|
|
3609
|
+
macthai: {
|
|
3610
|
+
id: "macthai",
|
|
3611
|
+
groupId: "thai",
|
|
3612
|
+
isDetectable: !1,
|
|
3613
|
+
textDecoderId: null,
|
|
3614
|
+
iconvLiteDecoderId: "macthai"
|
|
3283
3615
|
},
|
|
3284
3616
|
macturkish: {
|
|
3285
3617
|
id: "macturkish",
|
|
3286
3618
|
groupId: "turkish",
|
|
3287
|
-
|
|
3619
|
+
isDetectable: !0,
|
|
3620
|
+
textDecoderId: null,
|
|
3621
|
+
iconvLiteDecoderId: "macturkish"
|
|
3622
|
+
},
|
|
3623
|
+
macukraine: {
|
|
3624
|
+
id: "macukraine",
|
|
3625
|
+
groupId: "cyrillic",
|
|
3626
|
+
isDetectable: !1,
|
|
3627
|
+
textDecoderId: null,
|
|
3628
|
+
iconvLiteDecoderId: "macukraine"
|
|
3629
|
+
},
|
|
3630
|
+
mik: {
|
|
3631
|
+
id: "mik",
|
|
3632
|
+
groupId: "cyrillic",
|
|
3633
|
+
isDetectable: !1,
|
|
3634
|
+
textDecoderId: null,
|
|
3635
|
+
iconvLiteDecoderId: "mik"
|
|
3288
3636
|
},
|
|
3289
3637
|
ptcp154: {
|
|
3290
3638
|
id: "ptcp154",
|
|
3291
3639
|
groupId: "cyrillic",
|
|
3292
|
-
|
|
3640
|
+
isDetectable: !0,
|
|
3641
|
+
textDecoderId: null,
|
|
3642
|
+
iconvLiteDecoderId: "pt154"
|
|
3293
3643
|
},
|
|
3294
3644
|
shift_jis: {
|
|
3295
3645
|
id: "shift_jis",
|
|
3296
3646
|
groupId: "japanese",
|
|
3297
|
-
|
|
3647
|
+
isDetectable: !0,
|
|
3648
|
+
textDecoderId: "shift_jis",
|
|
3649
|
+
iconvLiteDecoderId: "shiftjis"
|
|
3650
|
+
},
|
|
3651
|
+
tcvn: {
|
|
3652
|
+
id: "tcvn",
|
|
3653
|
+
groupId: "vietnamese",
|
|
3654
|
+
isDetectable: !1,
|
|
3655
|
+
textDecoderId: null,
|
|
3656
|
+
iconvLiteDecoderId: "tcvn"
|
|
3298
3657
|
},
|
|
3299
3658
|
"tis-620": {
|
|
3300
3659
|
id: "tis-620",
|
|
3301
3660
|
groupId: "thai",
|
|
3302
|
-
|
|
3661
|
+
isDetectable: !0,
|
|
3662
|
+
textDecoderId: "windows-874",
|
|
3663
|
+
iconvLiteDecoderId: "tis620"
|
|
3303
3664
|
},
|
|
3304
3665
|
"utf-7": {
|
|
3305
3666
|
id: "utf-7",
|
|
3306
|
-
groupId: "
|
|
3307
|
-
|
|
3667
|
+
groupId: "unicode",
|
|
3668
|
+
isDetectable: !0,
|
|
3669
|
+
textDecoderId: null,
|
|
3670
|
+
iconvLiteDecoderId: "utf7"
|
|
3308
3671
|
},
|
|
3309
3672
|
"utf-8": {
|
|
3310
3673
|
id: "utf-8",
|
|
3311
|
-
groupId:
|
|
3312
|
-
|
|
3674
|
+
groupId: "unicode",
|
|
3675
|
+
isDetectable: !0,
|
|
3676
|
+
textDecoderId: "utf-8",
|
|
3677
|
+
iconvLiteDecoderId: "utf-8"
|
|
3313
3678
|
},
|
|
3314
3679
|
"utf-8-sig": {
|
|
3315
3680
|
id: "utf-8-sig",
|
|
3316
|
-
groupId:
|
|
3317
|
-
|
|
3681
|
+
groupId: "unicode",
|
|
3682
|
+
isDetectable: !0,
|
|
3683
|
+
textDecoderId: "utf-8",
|
|
3684
|
+
iconvLiteDecoderId: "utf-8"
|
|
3318
3685
|
},
|
|
3319
3686
|
"utf-16": {
|
|
3320
3687
|
id: "utf-16",
|
|
3321
|
-
groupId: "
|
|
3322
|
-
|
|
3688
|
+
groupId: "unicode",
|
|
3689
|
+
isDetectable: !0,
|
|
3690
|
+
textDecoderId: null,
|
|
3691
|
+
iconvLiteDecoderId: "utf16"
|
|
3323
3692
|
},
|
|
3324
3693
|
"utf-16-be": {
|
|
3325
3694
|
id: "utf-16-be",
|
|
3326
|
-
groupId: "
|
|
3327
|
-
|
|
3695
|
+
groupId: "unicode",
|
|
3696
|
+
isDetectable: !0,
|
|
3697
|
+
textDecoderId: "utf-16be",
|
|
3698
|
+
iconvLiteDecoderId: "utf16be"
|
|
3328
3699
|
},
|
|
3329
3700
|
"utf-16-le": {
|
|
3330
3701
|
id: "utf-16-le",
|
|
3331
|
-
groupId: "
|
|
3332
|
-
|
|
3702
|
+
groupId: "unicode",
|
|
3703
|
+
isDetectable: !0,
|
|
3704
|
+
textDecoderId: "utf-16le",
|
|
3705
|
+
iconvLiteDecoderId: "utf16le"
|
|
3333
3706
|
},
|
|
3334
3707
|
"utf-32": {
|
|
3335
3708
|
id: "utf-32",
|
|
3336
|
-
groupId: "
|
|
3337
|
-
|
|
3709
|
+
groupId: "unicode",
|
|
3710
|
+
isDetectable: !0,
|
|
3711
|
+
textDecoderId: null,
|
|
3712
|
+
iconvLiteDecoderId: "utf32"
|
|
3338
3713
|
},
|
|
3339
3714
|
"utf-32-be": {
|
|
3340
3715
|
id: "utf-32-be",
|
|
3341
|
-
groupId: "
|
|
3342
|
-
|
|
3716
|
+
groupId: "unicode",
|
|
3717
|
+
isDetectable: !0,
|
|
3718
|
+
textDecoderId: null,
|
|
3719
|
+
iconvLiteDecoderId: "utf32be"
|
|
3343
3720
|
},
|
|
3344
3721
|
"utf-32-le": {
|
|
3345
3722
|
id: "utf-32-le",
|
|
3346
|
-
groupId: "
|
|
3347
|
-
|
|
3723
|
+
groupId: "unicode",
|
|
3724
|
+
isDetectable: !0,
|
|
3725
|
+
textDecoderId: null,
|
|
3726
|
+
iconvLiteDecoderId: "utf32le"
|
|
3727
|
+
},
|
|
3728
|
+
viscii: {
|
|
3729
|
+
id: "viscii",
|
|
3730
|
+
groupId: "vietnamese",
|
|
3731
|
+
isDetectable: !1,
|
|
3732
|
+
textDecoderId: null,
|
|
3733
|
+
iconvLiteDecoderId: "viscii"
|
|
3348
3734
|
},
|
|
3349
3735
|
"windows-1250": {
|
|
3350
3736
|
id: "windows-1250",
|
|
3351
3737
|
groupId: "centralEuropean",
|
|
3352
|
-
|
|
3738
|
+
isDetectable: !0,
|
|
3739
|
+
textDecoderId: "windows-1250",
|
|
3740
|
+
iconvLiteDecoderId: "windows1250"
|
|
3353
3741
|
},
|
|
3354
3742
|
"windows-1251": {
|
|
3355
3743
|
id: "windows-1251",
|
|
3356
3744
|
groupId: "cyrillic",
|
|
3357
|
-
|
|
3745
|
+
isDetectable: !0,
|
|
3746
|
+
textDecoderId: "windows-1251",
|
|
3747
|
+
iconvLiteDecoderId: "windows1251"
|
|
3358
3748
|
},
|
|
3359
3749
|
"windows-1252": {
|
|
3360
3750
|
id: "windows-1252",
|
|
3361
3751
|
groupId: "western",
|
|
3362
|
-
|
|
3752
|
+
isDetectable: !0,
|
|
3753
|
+
textDecoderId: "windows-1252",
|
|
3754
|
+
iconvLiteDecoderId: "windows1252"
|
|
3363
3755
|
},
|
|
3364
3756
|
"windows-1253": {
|
|
3365
3757
|
id: "windows-1253",
|
|
3366
3758
|
groupId: "greek",
|
|
3367
|
-
|
|
3759
|
+
isDetectable: !0,
|
|
3760
|
+
textDecoderId: "windows-1253",
|
|
3761
|
+
iconvLiteDecoderId: "windows1253"
|
|
3368
3762
|
},
|
|
3369
3763
|
"windows-1254": {
|
|
3370
3764
|
id: "windows-1254",
|
|
3371
3765
|
groupId: "turkish",
|
|
3372
|
-
|
|
3766
|
+
isDetectable: !0,
|
|
3767
|
+
textDecoderId: "windows-1254",
|
|
3768
|
+
iconvLiteDecoderId: "windows1254"
|
|
3373
3769
|
},
|
|
3374
3770
|
"windows-1255": {
|
|
3375
3771
|
id: "windows-1255",
|
|
3376
3772
|
groupId: "hebrew",
|
|
3377
|
-
|
|
3773
|
+
isDetectable: !0,
|
|
3774
|
+
textDecoderId: "windows-1255",
|
|
3775
|
+
iconvLiteDecoderId: "windows1255"
|
|
3378
3776
|
},
|
|
3379
3777
|
"windows-1256": {
|
|
3380
3778
|
id: "windows-1256",
|
|
3381
3779
|
groupId: "arabic",
|
|
3382
|
-
|
|
3780
|
+
isDetectable: !0,
|
|
3781
|
+
textDecoderId: "windows-1256",
|
|
3782
|
+
iconvLiteDecoderId: "windows1256"
|
|
3383
3783
|
},
|
|
3384
3784
|
"windows-1257": {
|
|
3385
3785
|
id: "windows-1257",
|
|
3386
3786
|
groupId: "baltic",
|
|
3387
|
-
|
|
3787
|
+
isDetectable: !0,
|
|
3788
|
+
textDecoderId: "windows-1257",
|
|
3789
|
+
iconvLiteDecoderId: "windows1257"
|
|
3388
3790
|
}
|
|
3389
3791
|
};
|
|
3390
|
-
function Or(e) {
|
|
3391
|
-
return Object.hasOwn(Dr, e);
|
|
3392
|
-
}
|
|
3393
3792
|
function kr(e) {
|
|
3394
|
-
return Or
|
|
3793
|
+
return Object.hasOwn(Or, e);
|
|
3395
3794
|
}
|
|
3396
3795
|
function Ar(e) {
|
|
3796
|
+
return kr(e) ? Or[e].textDecoderId ?? e : e;
|
|
3797
|
+
}
|
|
3798
|
+
function jr(e) {
|
|
3397
3799
|
try {
|
|
3398
3800
|
e();
|
|
3399
3801
|
} catch {}
|
|
@@ -3411,9 +3813,9 @@ $([
|
|
|
3411
3813
|
"sqlite",
|
|
3412
3814
|
"xlsx",
|
|
3413
3815
|
"xml"
|
|
3414
|
-
]), { ...
|
|
3415
|
-
async function
|
|
3416
|
-
let r =
|
|
3816
|
+
]), { ...Dr };
|
|
3817
|
+
async function Mr(e, t, n) {
|
|
3818
|
+
let r = Nr(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Pr(e, t.valueDelimiterIds, t.isComplete, n);
|
|
3417
3819
|
return {
|
|
3418
3820
|
issues: i,
|
|
3419
3821
|
parsedRecords: a,
|
|
@@ -3421,16 +3823,16 @@ async function jr(e, t, n) {
|
|
|
3421
3823
|
valueDelimiterId: o
|
|
3422
3824
|
};
|
|
3423
3825
|
}
|
|
3424
|
-
function
|
|
3826
|
+
function Nr(e) {
|
|
3425
3827
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
3426
3828
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
3427
3829
|
}
|
|
3428
|
-
async function
|
|
3830
|
+
async function Pr(e, t, n, r) {
|
|
3429
3831
|
let i, a, o, s = [], c, l = !1;
|
|
3430
3832
|
for (let u of t) {
|
|
3431
3833
|
let { issues: t, records: d } = await r(e, u, n);
|
|
3432
3834
|
if (t.length > 0) {
|
|
3433
|
-
c =
|
|
3835
|
+
c = Fr(c, {
|
|
3434
3836
|
delimiter: u,
|
|
3435
3837
|
issues: t,
|
|
3436
3838
|
records: d
|
|
@@ -3438,7 +3840,7 @@ async function Nr(e, t, n, r) {
|
|
|
3438
3840
|
continue;
|
|
3439
3841
|
}
|
|
3440
3842
|
if (l = !0, d.length === 0) continue;
|
|
3441
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
3843
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = Ir(d);
|
|
3442
3844
|
(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
|
|
3443
3845
|
}
|
|
3444
3846
|
if (!l && c != null) {
|
|
@@ -3446,19 +3848,19 @@ async function Nr(e, t, n, r) {
|
|
|
3446
3848
|
return {
|
|
3447
3849
|
issues: t,
|
|
3448
3850
|
parsedRecords: n,
|
|
3449
|
-
valueDelimiterId:
|
|
3851
|
+
valueDelimiterId: Lr(n) ? e : void 0
|
|
3450
3852
|
};
|
|
3451
3853
|
}
|
|
3452
3854
|
return {
|
|
3453
3855
|
issues: [],
|
|
3454
3856
|
parsedRecords: s,
|
|
3455
|
-
valueDelimiterId: i != null &&
|
|
3857
|
+
valueDelimiterId: i != null && Lr(s) ? i : void 0
|
|
3456
3858
|
};
|
|
3457
3859
|
}
|
|
3458
|
-
function
|
|
3860
|
+
function Fr(e, t) {
|
|
3459
3861
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
3460
3862
|
}
|
|
3461
|
-
function
|
|
3863
|
+
function Ir(e) {
|
|
3462
3864
|
let t = 0, n = 0, r;
|
|
3463
3865
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
3464
3866
|
return {
|
|
@@ -3466,19 +3868,19 @@ function Fr(e) {
|
|
|
3466
3868
|
sumOfValueCountDiffs: n
|
|
3467
3869
|
};
|
|
3468
3870
|
}
|
|
3469
|
-
function
|
|
3871
|
+
function Lr(e) {
|
|
3470
3872
|
let t = /* @__PURE__ */ new Map();
|
|
3471
3873
|
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
3472
3874
|
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
3473
3875
|
return n > 1 && r * 2 > e.length;
|
|
3474
3876
|
}
|
|
3475
|
-
$(["list"]), { ...
|
|
3877
|
+
$(["list"]), { ...Dr }, $([
|
|
3476
3878
|
"list",
|
|
3477
3879
|
"render",
|
|
3478
3880
|
"setColorMode"
|
|
3479
|
-
]), { ...
|
|
3881
|
+
]), { ...Dr };
|
|
3480
3882
|
// src/index.ts
|
|
3481
|
-
var
|
|
3883
|
+
var Rr = {
|
|
3482
3884
|
bom: !1,
|
|
3483
3885
|
cast_date: !1,
|
|
3484
3886
|
columns: !1,
|
|
@@ -3507,32 +3909,32 @@ var Lr = {
|
|
|
3507
3909
|
skip_records_with_error: !1,
|
|
3508
3910
|
to_line: -1,
|
|
3509
3911
|
trim: !1
|
|
3510
|
-
},
|
|
3912
|
+
}, zr = 4, Br = 1048576, Vr = 50, Hr = 1e4, Ur = class {
|
|
3511
3913
|
async parseStream(e, t, n) {
|
|
3512
3914
|
return new Promise((r, i) => {
|
|
3513
3915
|
let a, o, s, c = !1, l = !1, u = () => {
|
|
3514
3916
|
if (l) return;
|
|
3515
3917
|
l = !0;
|
|
3516
3918
|
let e = a;
|
|
3517
|
-
a = void 0, s = void 0, e != null && (
|
|
3919
|
+
a = void 0, s = void 0, e != null && (jr(() => e.removeAllListeners()), jr(() => e.end())), jr(() => void o?.cancel()), o = void 0;
|
|
3518
3920
|
}, d = (e) => {
|
|
3519
3921
|
c || (c = !0, u(), i(e instanceof Error ? e : Error(String(e))));
|
|
3520
3922
|
};
|
|
3521
3923
|
t.abortSignal.addEventListener("abort", () => {
|
|
3522
3924
|
d(t.abortSignal.reason);
|
|
3523
3925
|
}, { once: !0 }), (async () => {
|
|
3524
|
-
t.abortSignal.throwIfAborted(), a =
|
|
3525
|
-
...
|
|
3926
|
+
t.abortSignal.throwIfAborted(), a = ir({
|
|
3927
|
+
...Rr,
|
|
3526
3928
|
cast: (e, t) => ({
|
|
3527
3929
|
value: e,
|
|
3528
3930
|
valueWasQuoted: t.quoting
|
|
3529
3931
|
}),
|
|
3530
|
-
delimiter: t.valueDelimiterId,
|
|
3932
|
+
delimiter: Er(t.valueDelimiterId),
|
|
3531
3933
|
relax_column_count: !0
|
|
3532
3934
|
});
|
|
3533
|
-
let i =
|
|
3935
|
+
let i = Kr({
|
|
3534
3936
|
chunk: n,
|
|
3535
|
-
chunkSize: t.chunkSize ??
|
|
3937
|
+
chunkSize: t.chunkSize ?? Hr
|
|
3536
3938
|
});
|
|
3537
3939
|
s = i, a.on("readable", () => {
|
|
3538
3940
|
try {
|
|
@@ -3556,12 +3958,12 @@ var Lr = {
|
|
|
3556
3958
|
}
|
|
3557
3959
|
};
|
|
3558
3960
|
a.on("end", () => {
|
|
3559
|
-
c || (i.flush(), l(
|
|
3961
|
+
c || (i.flush(), l(qr(a)));
|
|
3560
3962
|
}), o = e.getReader();
|
|
3561
|
-
let u = new TextDecoder(
|
|
3963
|
+
let u = new TextDecoder(Ar(t.encodingId)), f = 0, p = !1, m = await o.read();
|
|
3562
3964
|
for (; !m.done;) {
|
|
3563
3965
|
if (c) return;
|
|
3564
|
-
t.abortSignal.throwIfAborted(), f += m.value.length, await
|
|
3966
|
+
t.abortSignal.throwIfAborted(), f += m.value.length, await Wr(a, u, m.value, i) > 0 && (p = !0), m = await o.read();
|
|
3565
3967
|
}
|
|
3566
3968
|
if (c) return;
|
|
3567
3969
|
let h = u.decode();
|
|
@@ -3579,31 +3981,31 @@ var Lr = {
|
|
|
3579
3981
|
});
|
|
3580
3982
|
}
|
|
3581
3983
|
async parseText(e, t) {
|
|
3582
|
-
return await
|
|
3984
|
+
return await Mr(e, t, Jr);
|
|
3583
3985
|
}
|
|
3584
3986
|
};
|
|
3585
|
-
async function
|
|
3987
|
+
async function Wr(e, t, n, r) {
|
|
3586
3988
|
let i = 0;
|
|
3587
|
-
for (let a = 0; a < n.length; a +=
|
|
3588
|
-
let o = t.decode(n.subarray(a, a +
|
|
3589
|
-
o.length > 0 && (i += o.length, e.write(o) || await
|
|
3989
|
+
for (let a = 0; a < n.length; a += Br) {
|
|
3990
|
+
let o = t.decode(n.subarray(a, a + Br), { stream: !0 });
|
|
3991
|
+
o.length > 0 && (i += o.length, e.write(o) || await Gr(e)), await r.drain();
|
|
3590
3992
|
}
|
|
3591
3993
|
return i;
|
|
3592
3994
|
}
|
|
3593
|
-
function
|
|
3995
|
+
function Gr(e) {
|
|
3594
3996
|
return new Promise((t) => {
|
|
3595
3997
|
e.once("drain", () => {
|
|
3596
3998
|
t();
|
|
3597
3999
|
});
|
|
3598
4000
|
});
|
|
3599
4001
|
}
|
|
3600
|
-
function
|
|
4002
|
+
function Kr(e) {
|
|
3601
4003
|
let t = Math.max(1, Math.floor(e.chunkSize)), n = [], r = [], i = s(), a = 0, o = () => {
|
|
3602
4004
|
if (a === 0) return;
|
|
3603
4005
|
let t = i;
|
|
3604
4006
|
t.length = a, i = s(), a = 0;
|
|
3605
4007
|
let o = e.chunk("parsingRecordArray", t);
|
|
3606
|
-
o instanceof Promise ? r.push(o) : n.length <
|
|
4008
|
+
o instanceof Promise ? r.push(o) : n.length < zr && n.push(t);
|
|
3607
4009
|
};
|
|
3608
4010
|
return {
|
|
3609
4011
|
drain: async () => {
|
|
@@ -3621,7 +4023,7 @@ function Gr(e) {
|
|
|
3621
4023
|
return r.length = 0, r;
|
|
3622
4024
|
}
|
|
3623
4025
|
}
|
|
3624
|
-
function
|
|
4026
|
+
function qr(e) {
|
|
3625
4027
|
return {
|
|
3626
4028
|
byteCount: e?.info.bytes ?? -1,
|
|
3627
4029
|
commentLineCount: e?.info.comment_lines ?? -1,
|
|
@@ -3631,17 +4033,17 @@ function Kr(e) {
|
|
|
3631
4033
|
recordCount: e?.info.records ?? -1
|
|
3632
4034
|
};
|
|
3633
4035
|
}
|
|
3634
|
-
function
|
|
4036
|
+
function Jr(e, t, n) {
|
|
3635
4037
|
return new Promise((r) => {
|
|
3636
4038
|
let i = [], a = [], o = 0, s = (e) => {
|
|
3637
|
-
e == null || !n && e.code === "CSV_QUOTE_NOT_CLOSED" || (i.push(
|
|
3638
|
-
}, c =
|
|
3639
|
-
...
|
|
4039
|
+
e == null || !n && e.code === "CSV_QUOTE_NOT_CLOSED" || (i.push(Yr(e, o + 1)), e.code !== "CSV_INVALID_CLOSING_QUOTE" && e.lines != null && (o = e.lines));
|
|
4040
|
+
}, c = ir({
|
|
4041
|
+
...Rr,
|
|
3640
4042
|
cast: (e, t) => ({
|
|
3641
4043
|
value: e,
|
|
3642
4044
|
valueWasQuoted: t.quoting
|
|
3643
4045
|
}),
|
|
3644
|
-
delimiter: t,
|
|
4046
|
+
delimiter: Er(t),
|
|
3645
4047
|
info: !0,
|
|
3646
4048
|
on_skip: (e) => {
|
|
3647
4049
|
s(e);
|
|
@@ -3664,7 +4066,7 @@ function qr(e, t, n) {
|
|
|
3664
4066
|
}), c.write(e), c.end();
|
|
3665
4067
|
});
|
|
3666
4068
|
}
|
|
3667
|
-
function
|
|
4069
|
+
function Yr(e, t) {
|
|
3668
4070
|
let n = e.lines, r = e.code === "CSV_INVALID_CLOSING_QUOTE" ? /got "(.*?)" at line/u.exec(e.message)?.[1] : void 0, i = typeof e.field == "string" ? e.field : r;
|
|
3669
4071
|
return {
|
|
3670
4072
|
endLineNumber: n != null && n > t ? n : void 0,
|
|
@@ -3674,7 +4076,7 @@ function Jr(e, t) {
|
|
|
3674
4076
|
message: e.message,
|
|
3675
4077
|
recordNumber: e.records == null ? void 0 : e.records + 1,
|
|
3676
4078
|
severityId: "error",
|
|
3677
|
-
value: i != null && i.length >
|
|
4079
|
+
value: i != null && i.length > Vr ? `${i.slice(0, Vr)}…` : i
|
|
3678
4080
|
};
|
|
3679
4081
|
}
|
|
3680
|
-
export {
|
|
4082
|
+
export { Ur as Tool };
|