@forsakringskassan/docs-generator 3.22.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/dist/{create-markdown-renderer-CX0kOizk.mjs → create-markdown-renderer-Bdz-A22S.mjs} +3 -3
- package/dist/{create-markdown-renderer-CX0kOizk.mjs.map → create-markdown-renderer-Bdz-A22S.mjs.map} +1 -1
- package/dist/{format-code.worker-BsMUHGd2.mjs → format-code.worker-Ce20Jr32.mjs} +2 -2
- package/dist/{format-code.worker-BsMUHGd2.mjs.map → format-code.worker-Ce20Jr32.mjs.map} +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.mjs +27 -20
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +2 -2
- package/dist/runtime-internal.mjs +1383 -1609
- package/dist/{tsconfig-path-bG7G_cK8.mjs → tsconfig-path-ZL5FzYwU.mjs} +1 -1
- package/dist/{tsconfig-path-bG7G_cK8.mjs.map → tsconfig-path-ZL5FzYwU.mjs.map} +1 -1
- package/dist/{vendor-DBujHFR5.mjs → vendor-D1q9wBug.mjs} +416 -142
- package/dist/{vendor-DBujHFR5.mjs.map → vendor-D1q9wBug.mjs.map} +1 -1
- package/dist/{vue3-DbJPWpmQ.mjs → vue3-B2fm2G4T.mjs} +1 -1
- package/dist/{vue3-DbJPWpmQ.mjs.map → vue3-B2fm2G4T.mjs.map} +1 -1
- package/dist/{worker-DfUDllYf.mjs → worker-CNOMn6wO.mjs} +3 -3
- package/dist/{worker-DfUDllYf.mjs.map → worker-CNOMn6wO.mjs.map} +1 -1
- package/package.json +2 -2
|
@@ -7241,7 +7241,7 @@ const punycode = {
|
|
|
7241
7241
|
'toUnicode': toUnicode
|
|
7242
7242
|
};
|
|
7243
7243
|
|
|
7244
|
-
/*! markdown-it 15.0.
|
|
7244
|
+
/*! markdown-it 15.0.3 https://github.com/markdown-it/markdown-it @license MIT */
|
|
7245
7245
|
//#region \0rolldown/runtime.js
|
|
7246
7246
|
var __defProp$2 = Object.defineProperty;
|
|
7247
7247
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -7640,7 +7640,7 @@ var helpers_exports = /* @__PURE__ */ __exportAll({
|
|
|
7640
7640
|
parseLinkTitle: () => parseLinkTitle
|
|
7641
7641
|
});
|
|
7642
7642
|
//#endregion
|
|
7643
|
-
//#region \0@oxc-project+runtime@0.
|
|
7643
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
7644
7644
|
function _typeof(o) {
|
|
7645
7645
|
"@babel/helpers - typeof";
|
|
7646
7646
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -7650,7 +7650,7 @@ function _typeof(o) {
|
|
|
7650
7650
|
}, _typeof(o);
|
|
7651
7651
|
}
|
|
7652
7652
|
//#endregion
|
|
7653
|
-
//#region \0@oxc-project+runtime@0.
|
|
7653
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
7654
7654
|
function toPrimitive(t, r) {
|
|
7655
7655
|
if ("object" != _typeof(t) || !t) return t;
|
|
7656
7656
|
var e = t[Symbol.toPrimitive];
|
|
@@ -7662,13 +7662,13 @@ function toPrimitive(t, r) {
|
|
|
7662
7662
|
return ("string" === r ? String : Number)(t);
|
|
7663
7663
|
}
|
|
7664
7664
|
//#endregion
|
|
7665
|
-
//#region \0@oxc-project+runtime@0.
|
|
7665
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
7666
7666
|
function toPropertyKey(t) {
|
|
7667
7667
|
var i = toPrimitive(t, "string");
|
|
7668
7668
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
7669
7669
|
}
|
|
7670
7670
|
//#endregion
|
|
7671
|
-
//#region \0@oxc-project+runtime@0.
|
|
7671
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
7672
7672
|
function _defineProperty$1(e, r, t) {
|
|
7673
7673
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7674
7674
|
value: t,
|
|
@@ -8650,12 +8650,14 @@ var StateBlock = class {
|
|
|
8650
8650
|
const s = this.src;
|
|
8651
8651
|
for (let start = 0, pos = 0, indent = 0, offset = 0, len = s.length, indent_found = false; pos < len; pos++) {
|
|
8652
8652
|
const ch = s.charCodeAt(pos);
|
|
8653
|
-
if (!indent_found)
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8653
|
+
if (!indent_found) {
|
|
8654
|
+
if (isSpace(ch)) {
|
|
8655
|
+
indent++;
|
|
8656
|
+
if (ch === 9) offset += 4 - offset % 4;
|
|
8657
|
+
else offset++;
|
|
8658
|
+
continue;
|
|
8659
|
+
} else indent_found = true;
|
|
8660
|
+
}
|
|
8659
8661
|
if (ch === 10 || pos === len - 1) {
|
|
8660
8662
|
if (ch !== 10) pos++;
|
|
8661
8663
|
this.bMarks.push(start);
|
|
@@ -8722,9 +8724,10 @@ var StateBlock = class {
|
|
|
8722
8724
|
else last = this.eMarks[line];
|
|
8723
8725
|
while (first < last && lineIndent < indent) {
|
|
8724
8726
|
const ch = this.src.charCodeAt(first);
|
|
8725
|
-
if (isSpace(ch))
|
|
8726
|
-
|
|
8727
|
-
|
|
8727
|
+
if (isSpace(ch)) {
|
|
8728
|
+
if (ch === 9) lineIndent += 4 - (lineIndent + this.bsCount[line]) % 4;
|
|
8729
|
+
else lineIndent++;
|
|
8730
|
+
} else if (first - lineStart < this.tShift[line]) lineIndent++;
|
|
8728
8731
|
else break;
|
|
8729
8732
|
first++;
|
|
8730
8733
|
}
|
|
@@ -8751,13 +8754,15 @@ function escapedSplit(str) {
|
|
|
8751
8754
|
let lastPos = 0;
|
|
8752
8755
|
let current = "";
|
|
8753
8756
|
while (pos < max) {
|
|
8754
|
-
if (ch === 124)
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8757
|
+
if (ch === 124) {
|
|
8758
|
+
if (!isEscaped) {
|
|
8759
|
+
result.push(current + str.substring(lastPos, pos));
|
|
8760
|
+
current = "";
|
|
8761
|
+
lastPos = pos + 1;
|
|
8762
|
+
} else {
|
|
8763
|
+
current += str.substring(lastPos, pos - 1);
|
|
8764
|
+
lastPos = pos;
|
|
8765
|
+
}
|
|
8761
8766
|
}
|
|
8762
8767
|
isEscaped = ch === 92;
|
|
8763
8768
|
pos++;
|
|
@@ -8789,8 +8794,10 @@ function table(state, startLine, endLine, silent) {
|
|
|
8789
8794
|
const aligns = [];
|
|
8790
8795
|
for (let i = 0; i < columns.length; i++) {
|
|
8791
8796
|
const t = columns[i].trim();
|
|
8792
|
-
if (!t)
|
|
8793
|
-
|
|
8797
|
+
if (!t) {
|
|
8798
|
+
if (i === 0 || i === columns.length - 1) continue;
|
|
8799
|
+
else return false;
|
|
8800
|
+
}
|
|
8794
8801
|
if (!/^:?-+:?$/.test(t)) return false;
|
|
8795
8802
|
if (t.charCodeAt(t.length - 1) === 58) aligns.push(t.charCodeAt(0) === 58 ? "center" : "right");
|
|
8796
8803
|
else if (t.charCodeAt(0) === 58) aligns.push("left");
|
|
@@ -8983,9 +8990,10 @@ function blockquote(state, startLine, endLine, silent) {
|
|
|
8983
8990
|
state.bMarks[nextLine] = pos;
|
|
8984
8991
|
while (pos < max) {
|
|
8985
8992
|
const ch = state.src.charCodeAt(pos);
|
|
8986
|
-
if (isSpace(ch))
|
|
8987
|
-
|
|
8988
|
-
|
|
8993
|
+
if (isSpace(ch)) {
|
|
8994
|
+
if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
|
|
8995
|
+
else offset++;
|
|
8996
|
+
} else break;
|
|
8989
8997
|
pos++;
|
|
8990
8998
|
}
|
|
8991
8999
|
lastLineEmpty = pos >= max;
|
|
@@ -9218,129 +9226,141 @@ function list(state, startLine, endLine, silent) {
|
|
|
9218
9226
|
}
|
|
9219
9227
|
//#endregion
|
|
9220
9228
|
//#region src/rules_block/reference.ts
|
|
9229
|
+
var MAX_LABEL_LENGTH = 999;
|
|
9230
|
+
function countCodePoints(str) {
|
|
9231
|
+
let length = str.length;
|
|
9232
|
+
for (let i = 0; i < str.length - 1; i++) {
|
|
9233
|
+
const high = str.charCodeAt(i);
|
|
9234
|
+
if (high < 55296 || high > 56319) continue;
|
|
9235
|
+
const low = str.charCodeAt(i + 1);
|
|
9236
|
+
if (low >= 56320 && low <= 57343) {
|
|
9237
|
+
length--;
|
|
9238
|
+
i++;
|
|
9239
|
+
}
|
|
9240
|
+
}
|
|
9241
|
+
return length;
|
|
9242
|
+
}
|
|
9243
|
+
function lineEnd(state, line) {
|
|
9244
|
+
return Math.min(state.eMarks[line] + 1, state.src.length);
|
|
9245
|
+
}
|
|
9246
|
+
function getNextLinePos(state, nextLine) {
|
|
9247
|
+
const endLine = state.lineMax;
|
|
9248
|
+
if (nextLine >= endLine || state.isEmpty(nextLine)) return -1;
|
|
9249
|
+
let isContinuation = false;
|
|
9250
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
|
|
9251
|
+
if (state.sCount[nextLine] < 0) isContinuation = true;
|
|
9252
|
+
if (!isContinuation) {
|
|
9253
|
+
const terminatorRules = state.md.block.ruler.getRules("reference");
|
|
9254
|
+
const oldParentType = state.parentType;
|
|
9255
|
+
state.parentType = "reference";
|
|
9256
|
+
let terminate = false;
|
|
9257
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
9258
|
+
terminate = true;
|
|
9259
|
+
break;
|
|
9260
|
+
}
|
|
9261
|
+
state.parentType = oldParentType;
|
|
9262
|
+
if (terminate) return -1;
|
|
9263
|
+
}
|
|
9264
|
+
return state.bMarks[nextLine] + state.tShift[nextLine];
|
|
9265
|
+
}
|
|
9221
9266
|
function reference(state, startLine, _endLine, silent) {
|
|
9267
|
+
const src = state.src;
|
|
9222
9268
|
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
9223
|
-
let max = state.eMarks[startLine];
|
|
9224
9269
|
let nextLine = startLine + 1;
|
|
9225
9270
|
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
9226
|
-
if (
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
if (nextLine >= endLine || state.isEmpty(nextLine)) return null;
|
|
9230
|
-
let isContinuation = false;
|
|
9231
|
-
if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
|
|
9232
|
-
if (state.sCount[nextLine] < 0) isContinuation = true;
|
|
9233
|
-
if (!isContinuation) {
|
|
9234
|
-
const terminatorRules = state.md.block.ruler.getRules("reference");
|
|
9235
|
-
const oldParentType = state.parentType;
|
|
9236
|
-
state.parentType = "reference";
|
|
9237
|
-
let terminate = false;
|
|
9238
|
-
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
9239
|
-
terminate = true;
|
|
9240
|
-
break;
|
|
9241
|
-
}
|
|
9242
|
-
state.parentType = oldParentType;
|
|
9243
|
-
if (terminate) return null;
|
|
9244
|
-
}
|
|
9245
|
-
const pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
9246
|
-
const max = state.eMarks[nextLine];
|
|
9247
|
-
return state.src.slice(pos, max + 1);
|
|
9248
|
-
}
|
|
9249
|
-
let str = state.src.slice(pos, max + 1);
|
|
9250
|
-
max = str.length;
|
|
9271
|
+
if (src.charCodeAt(pos) !== 91) return false;
|
|
9272
|
+
let max = lineEnd(state, startLine);
|
|
9273
|
+
let rawLabel = "";
|
|
9251
9274
|
let labelEnd = -1;
|
|
9252
|
-
|
|
9253
|
-
|
|
9275
|
+
let segmentStart = ++pos;
|
|
9276
|
+
while (pos < max) {
|
|
9277
|
+
if (rawLabel.length + pos - segmentStart > MAX_LABEL_LENGTH * 2) return false;
|
|
9278
|
+
let ch = src.charCodeAt(pos);
|
|
9254
9279
|
if (ch === 91) return false;
|
|
9255
|
-
|
|
9280
|
+
if (ch === 93) {
|
|
9256
9281
|
labelEnd = pos;
|
|
9257
9282
|
break;
|
|
9258
|
-
} else if (ch === 10) {
|
|
9259
|
-
const lineContent = getNextLine(nextLine);
|
|
9260
|
-
if (lineContent !== null) {
|
|
9261
|
-
str += lineContent;
|
|
9262
|
-
max = str.length;
|
|
9263
|
-
nextLine++;
|
|
9264
|
-
}
|
|
9265
|
-
} else if (ch === 92) {
|
|
9266
|
-
pos++;
|
|
9267
|
-
if (pos < max && str.charCodeAt(pos) === 10) {
|
|
9268
|
-
const lineContent = getNextLine(nextLine);
|
|
9269
|
-
if (lineContent !== null) {
|
|
9270
|
-
str += lineContent;
|
|
9271
|
-
max = str.length;
|
|
9272
|
-
nextLine++;
|
|
9273
|
-
}
|
|
9274
|
-
}
|
|
9275
9283
|
}
|
|
9284
|
+
if (ch === 92) ch = src.charCodeAt(++pos);
|
|
9285
|
+
if (ch === 10 && pos < max) {
|
|
9286
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
9287
|
+
if (nextPos < 0) return false;
|
|
9288
|
+
rawLabel += src.slice(segmentStart, max);
|
|
9289
|
+
pos = segmentStart = nextPos;
|
|
9290
|
+
max = lineEnd(state, nextLine++);
|
|
9291
|
+
continue;
|
|
9292
|
+
}
|
|
9293
|
+
pos++;
|
|
9276
9294
|
}
|
|
9277
|
-
if (labelEnd < 0 ||
|
|
9278
|
-
|
|
9279
|
-
|
|
9295
|
+
if (labelEnd < 0 || src.charCodeAt(labelEnd + 1) !== 58) return false;
|
|
9296
|
+
rawLabel += src.slice(segmentStart, labelEnd);
|
|
9297
|
+
if (rawLabel.length > MAX_LABEL_LENGTH && countCodePoints(rawLabel) > MAX_LABEL_LENGTH) return false;
|
|
9298
|
+
pos = labelEnd + 2;
|
|
9299
|
+
while (pos < max) {
|
|
9300
|
+
const ch = src.charCodeAt(pos);
|
|
9280
9301
|
if (ch === 10) {
|
|
9281
|
-
const
|
|
9282
|
-
if (
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
const destRes = state.md.helpers.parseLinkDestination(str, pos, max);
|
|
9302
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
9303
|
+
if (nextPos < 0) break;
|
|
9304
|
+
pos = nextPos;
|
|
9305
|
+
max = lineEnd(state, nextLine++);
|
|
9306
|
+
} else if (isSpace(ch)) pos++;
|
|
9307
|
+
else break;
|
|
9308
|
+
}
|
|
9309
|
+
const destRes = state.md.helpers.parseLinkDestination(src, pos, max);
|
|
9290
9310
|
if (!destRes.ok) return false;
|
|
9291
9311
|
const href = state.md.normalizeLink(destRes.str);
|
|
9292
9312
|
if (!state.md.validateLink(href)) return false;
|
|
9293
9313
|
pos = destRes.pos;
|
|
9294
9314
|
const destEndPos = pos;
|
|
9315
|
+
const destEndMax = max;
|
|
9295
9316
|
const destEndLineNo = nextLine;
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
const ch = str.charCodeAt(pos);
|
|
9317
|
+
while (pos < max) {
|
|
9318
|
+
const ch = src.charCodeAt(pos);
|
|
9299
9319
|
if (ch === 10) {
|
|
9300
|
-
const
|
|
9301
|
-
if (
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
let titleRes = state.md.helpers.parseLinkTitle(
|
|
9320
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
9321
|
+
if (nextPos < 0) break;
|
|
9322
|
+
pos = nextPos;
|
|
9323
|
+
max = lineEnd(state, nextLine++);
|
|
9324
|
+
} else if (isSpace(ch)) pos++;
|
|
9325
|
+
else break;
|
|
9326
|
+
}
|
|
9327
|
+
const titleStart = pos;
|
|
9328
|
+
let titleRes = state.md.helpers.parseLinkTitle(src, pos, max);
|
|
9309
9329
|
while (titleRes.can_continue) {
|
|
9310
|
-
const
|
|
9311
|
-
if (
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
nextLine++;
|
|
9316
|
-
titleRes = state.md.helpers.parseLinkTitle(str, pos, max, titleRes);
|
|
9330
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
9331
|
+
if (nextPos < 0) break;
|
|
9332
|
+
pos = nextPos;
|
|
9333
|
+
max = lineEnd(state, nextLine++);
|
|
9334
|
+
titleRes = state.md.helpers.parseLinkTitle(src, pos, max, titleRes);
|
|
9317
9335
|
}
|
|
9318
9336
|
let title;
|
|
9319
|
-
if (
|
|
9337
|
+
if (titleStart !== destEndPos && titleRes.ok) {
|
|
9320
9338
|
title = titleRes.str;
|
|
9321
9339
|
pos = titleRes.pos;
|
|
9322
9340
|
} else {
|
|
9323
9341
|
title = "";
|
|
9324
9342
|
pos = destEndPos;
|
|
9343
|
+
max = destEndMax;
|
|
9325
9344
|
nextLine = destEndLineNo;
|
|
9326
9345
|
}
|
|
9327
9346
|
while (pos < max) {
|
|
9328
|
-
if (!isSpace(
|
|
9347
|
+
if (!isSpace(src.charCodeAt(pos))) break;
|
|
9329
9348
|
pos++;
|
|
9330
9349
|
}
|
|
9331
|
-
if (pos < max &&
|
|
9350
|
+
if (pos < max && src.charCodeAt(pos) !== 10) {
|
|
9332
9351
|
if (title) {
|
|
9333
9352
|
title = "";
|
|
9334
9353
|
pos = destEndPos;
|
|
9354
|
+
max = destEndMax;
|
|
9335
9355
|
nextLine = destEndLineNo;
|
|
9336
9356
|
while (pos < max) {
|
|
9337
|
-
if (!isSpace(
|
|
9357
|
+
if (!isSpace(src.charCodeAt(pos))) break;
|
|
9338
9358
|
pos++;
|
|
9339
9359
|
}
|
|
9340
9360
|
}
|
|
9341
9361
|
}
|
|
9342
|
-
if (pos < max &&
|
|
9343
|
-
const label = normalizeReference(
|
|
9362
|
+
if (pos < max && src.charCodeAt(pos) !== 10) return false;
|
|
9363
|
+
const label = normalizeReference(rawLabel);
|
|
9344
9364
|
if (!label) return false;
|
|
9345
9365
|
/* istanbul ignore if */
|
|
9346
9366
|
if (silent) return true;
|
|
@@ -9428,7 +9448,6 @@ var html_blocks_default = [
|
|
|
9428
9448
|
//#region src/common/html_re.ts
|
|
9429
9449
|
var open_tag = `<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`;
|
|
9430
9450
|
var close_tag = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";
|
|
9431
|
-
var HTML_TAG_RE = new RegExp(`^(?:${open_tag}|${close_tag}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);
|
|
9432
9451
|
var HTML_OPEN_CLOSE_TAG_RE = new RegExp(`^(?:${open_tag}|${close_tag})`);
|
|
9433
9452
|
//#endregion
|
|
9434
9453
|
//#region src/rules_block/html_block.ts
|
|
@@ -9754,6 +9773,7 @@ var StateInline = class {
|
|
|
9754
9773
|
_defineProperty$1(this, "cache", {});
|
|
9755
9774
|
_defineProperty$1(this, "backticks", {});
|
|
9756
9775
|
_defineProperty$1(this, "backticksScanned", false);
|
|
9776
|
+
_defineProperty$1(this, "skipHtmlSpecial", false);
|
|
9757
9777
|
_defineProperty$1(this, "linkLevel", 0);
|
|
9758
9778
|
_defineProperty$1(this, "delimiters", []);
|
|
9759
9779
|
_defineProperty$1(this, "_prev_delimiters", []);
|
|
@@ -9920,16 +9940,19 @@ function newline(state, silent) {
|
|
|
9920
9940
|
if (state.src.charCodeAt(pos) !== 10) return false;
|
|
9921
9941
|
const pmax = state.pending.length - 1;
|
|
9922
9942
|
const max = state.posMax;
|
|
9923
|
-
if (!silent)
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9943
|
+
if (!silent) {
|
|
9944
|
+
if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) {
|
|
9945
|
+
if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
|
|
9946
|
+
let ws = pmax - 1;
|
|
9947
|
+
while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
|
|
9948
|
+
state.pending = state.pending.slice(0, ws);
|
|
9949
|
+
state.push("hardbreak", "br", 0);
|
|
9950
|
+
} else {
|
|
9951
|
+
state.pending = state.pending.slice(0, -1);
|
|
9952
|
+
state.push("softbreak", "br", 0);
|
|
9953
|
+
}
|
|
9954
|
+
} else state.push("softbreak", "br", 0);
|
|
9931
9955
|
}
|
|
9932
|
-
else state.push("softbreak", "br", 0);
|
|
9933
9956
|
pos++;
|
|
9934
9957
|
while (pos < max && isSpace(state.src.charCodeAt(pos))) pos++;
|
|
9935
9958
|
state.pos = pos;
|
|
@@ -10418,22 +10441,53 @@ function isLetter(ch) {
|
|
|
10418
10441
|
const lc = ch | 32;
|
|
10419
10442
|
return lc >= 97 && lc <= 122;
|
|
10420
10443
|
}
|
|
10444
|
+
function scanSpecial(state, pos) {
|
|
10445
|
+
const src = state.src;
|
|
10446
|
+
let start;
|
|
10447
|
+
let terminator;
|
|
10448
|
+
if (src.startsWith("<!--", pos)) {
|
|
10449
|
+
if (src.startsWith(">", pos + 4)) return pos + 5;
|
|
10450
|
+
if (src.startsWith("->", pos + 4)) return pos + 6;
|
|
10451
|
+
start = pos + 4;
|
|
10452
|
+
terminator = "-->";
|
|
10453
|
+
} else if (src.startsWith("<![CDATA[", pos)) {
|
|
10454
|
+
start = pos + 9;
|
|
10455
|
+
terminator = "]]>";
|
|
10456
|
+
} else if (src.charCodeAt(pos + 1) === 63) {
|
|
10457
|
+
start = pos + 2;
|
|
10458
|
+
terminator = "?>";
|
|
10459
|
+
} else if (isLetter(src.charCodeAt(pos + 2))) {
|
|
10460
|
+
start = pos + 3;
|
|
10461
|
+
terminator = ">";
|
|
10462
|
+
} else return -1;
|
|
10463
|
+
if (state.skipHtmlSpecial) return -1;
|
|
10464
|
+
const end = src.indexOf(terminator, start);
|
|
10465
|
+
if (end < 0) {
|
|
10466
|
+
state.skipHtmlSpecial = true;
|
|
10467
|
+
return -1;
|
|
10468
|
+
}
|
|
10469
|
+
return end + terminator.length;
|
|
10470
|
+
}
|
|
10421
10471
|
function html_inline(state, silent) {
|
|
10422
10472
|
if (!state.md.options.html) return false;
|
|
10423
10473
|
const max = state.posMax;
|
|
10424
10474
|
const pos = state.pos;
|
|
10425
10475
|
if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max) return false;
|
|
10476
|
+
let end;
|
|
10426
10477
|
const ch = state.src.charCodeAt(pos + 1);
|
|
10427
|
-
if (ch
|
|
10428
|
-
|
|
10429
|
-
|
|
10478
|
+
if (ch === 33 || ch === 63) end = scanSpecial(state, pos);
|
|
10479
|
+
else if (ch === 47 || isLetter(ch)) {
|
|
10480
|
+
const match = state.src.slice(pos).match(HTML_OPEN_CLOSE_TAG_RE);
|
|
10481
|
+
end = match ? pos + match[0].length : -1;
|
|
10482
|
+
} else return false;
|
|
10483
|
+
if (end < 0) return false;
|
|
10430
10484
|
if (!silent) {
|
|
10431
10485
|
const token = state.push("html_inline", "", 0);
|
|
10432
|
-
token.content =
|
|
10486
|
+
token.content = state.src.slice(pos, end);
|
|
10433
10487
|
if (isLinkOpen(token.content)) state.linkLevel++;
|
|
10434
10488
|
if (isLinkClose(token.content)) state.linkLevel--;
|
|
10435
10489
|
}
|
|
10436
|
-
state.pos
|
|
10490
|
+
state.pos = end;
|
|
10437
10491
|
return true;
|
|
10438
10492
|
}
|
|
10439
10493
|
//#endregion
|
|
@@ -16388,7 +16442,8 @@ class LanguageUtil {
|
|
|
16388
16442
|
addCode(this.formatLanguageCode(code));
|
|
16389
16443
|
}
|
|
16390
16444
|
fallbackCodes.forEach(fc => {
|
|
16391
|
-
|
|
16445
|
+
const formattedFc = this.formatLanguageCode(fc);
|
|
16446
|
+
if (!codes.includes(formattedFc)) addCode(formattedFc);
|
|
16392
16447
|
});
|
|
16393
16448
|
if (cacheKey !== null) {
|
|
16394
16449
|
this.resolveHierarchyCache[cacheKey] = codes;
|
|
@@ -17487,7 +17542,11 @@ class I18n extends EventEmitter {
|
|
|
17487
17542
|
}
|
|
17488
17543
|
if (this.hasResourceBundle(lng, ns)) return true;
|
|
17489
17544
|
if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;
|
|
17490
|
-
|
|
17545
|
+
const {
|
|
17546
|
+
languageUtils
|
|
17547
|
+
} = this.services;
|
|
17548
|
+
const loadLng = !options.lng ? lng : languageUtils.isSupportedCode(lng) && languageUtils.toResolveHierarchy(lng, false)[0];
|
|
17549
|
+
if ((!loadLng || loadNotPending(loadLng, ns)) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
|
|
17491
17550
|
return false;
|
|
17492
17551
|
}
|
|
17493
17552
|
loadNamespaces(ns, callback) {
|
|
@@ -17547,6 +17606,7 @@ class I18n extends EventEmitter {
|
|
|
17547
17606
|
if (forkResourceStore) delete options.forkResourceStore;
|
|
17548
17607
|
const mergedOptions = {
|
|
17549
17608
|
...this.options,
|
|
17609
|
+
preload: false,
|
|
17550
17610
|
...options,
|
|
17551
17611
|
...{
|
|
17552
17612
|
isClone: true
|
|
@@ -18181,7 +18241,7 @@ function requireLib$1 () {
|
|
|
18181
18241
|
var libExports = requireLib$1();
|
|
18182
18242
|
var resolvePackagePath = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
18183
18243
|
|
|
18184
|
-
function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n$1(n,i,o,f){let s,u,l=r$1(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r$1(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function i(e,n={}){let t,i=0,o=n.browser,f=n.fields||["module","main"],s="string"==typeof o;for(o&&!f.includes("browser")&&(f.unshift("browser"),s&&(o=r$1(e.name,o,true)));i<f.length;i++)if(t=e[f[i]]){if("string"==typeof t);else {if("object"!=typeof t||"browser"!=f[i])continue;if(s&&(t=t[o],null==t))return o}return "string"==typeof t?"./"+t.replace(/^\.?\//,""):t}}function o$2(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n$1(e.name,o,r||".",t)}}
|
|
18244
|
+
function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n$1(n,i,o,f){let s,u,l=r$1(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,(()=>n)):f.test(r)?r+n:r;}(s,u),s}function r$1(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function i(e,n={}){let t,i=0,o=n.browser,f=n.fields||["module","main"],s="string"==typeof o;for(o&&!f.includes("browser")&&(f.unshift("browser"),s&&(o=r$1(e.name,o,true)));i<f.length;i++)if(t=e[f[i]]){if("string"==typeof t);else {if("object"!=typeof t||"browser"!=f[i])continue;if(s&&(t=t[o],null==t))return o}return "string"==typeof t?"./"+t.replace(/^\.?\//,""):t}}function o$2(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n$1(e.name,o,r||".",t)}}
|
|
18185
18245
|
|
|
18186
18246
|
const require$2 = createRequire(import.meta.url);
|
|
18187
18247
|
var __require$1 = /* @__PURE__ */ ((x) => typeof require$2 !== "undefined" ? require$2 : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
@@ -46677,6 +46737,23 @@ function requireUtils () {
|
|
|
46677
46737
|
overflowChannel.set(obj, maxIndex);
|
|
46678
46738
|
};
|
|
46679
46739
|
|
|
46740
|
+
// Track containers produced by a `strictMerge` conflict wrap, and their current max numeric index,
|
|
46741
|
+
// so repeated conflicts on one path append instead of nesting a new wrapper each time
|
|
46742
|
+
var conflictChannel = getSideChannel();
|
|
46743
|
+
|
|
46744
|
+
var markConflict = function markConflict(obj, maxIndex) {
|
|
46745
|
+
conflictChannel.set(obj, maxIndex);
|
|
46746
|
+
return obj;
|
|
46747
|
+
};
|
|
46748
|
+
|
|
46749
|
+
var isConflict = function isConflict(obj) {
|
|
46750
|
+
return conflictChannel.has(obj);
|
|
46751
|
+
};
|
|
46752
|
+
|
|
46753
|
+
var getConflictIndex = function getConflictIndex(obj) {
|
|
46754
|
+
return conflictChannel.get(obj);
|
|
46755
|
+
};
|
|
46756
|
+
|
|
46680
46757
|
var hexTable = (function () {
|
|
46681
46758
|
var array = [];
|
|
46682
46759
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -46729,6 +46806,30 @@ function requireUtils () {
|
|
|
46729
46806
|
}
|
|
46730
46807
|
};
|
|
46731
46808
|
|
|
46809
|
+
var maxNumericIndex = function maxNumericIndex(obj, min) {
|
|
46810
|
+
var max = min;
|
|
46811
|
+
var keys = Object.keys(obj);
|
|
46812
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
46813
|
+
var num = parseInt(keys[i], 10);
|
|
46814
|
+
if (String(num) === keys[i] && num > max) {
|
|
46815
|
+
max = num;
|
|
46816
|
+
}
|
|
46817
|
+
}
|
|
46818
|
+
|
|
46819
|
+
return max;
|
|
46820
|
+
};
|
|
46821
|
+
|
|
46822
|
+
var limitedPair = function limitedPair(first, second, options) {
|
|
46823
|
+
var pair = [first, second];
|
|
46824
|
+
if (options && typeof options.arrayLimit === 'number' && pair.length > options.arrayLimit) {
|
|
46825
|
+
if (options.throwOnLimitExceeded) {
|
|
46826
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
46827
|
+
}
|
|
46828
|
+
return markOverflow(arrayToObject(pair, options), 1);
|
|
46829
|
+
}
|
|
46830
|
+
return pair;
|
|
46831
|
+
};
|
|
46832
|
+
|
|
46732
46833
|
var merge = function merge(target, source, options) {
|
|
46733
46834
|
/* eslint no-param-reassign: 0 */
|
|
46734
46835
|
if (!source) {
|
|
@@ -46751,8 +46852,20 @@ function requireUtils () {
|
|
|
46751
46852
|
var newIndex = getMaxIndex(target) + 1;
|
|
46752
46853
|
target[newIndex] = source;
|
|
46753
46854
|
setMaxIndex(target, newIndex);
|
|
46855
|
+
} else if (options && options.strictMerge && isConflict(target)) {
|
|
46856
|
+
var nextConflict = getConflictIndex(target) + 1;
|
|
46857
|
+
if (
|
|
46858
|
+
options.throwOnLimitExceeded
|
|
46859
|
+
&& typeof options.arrayLimit === 'number'
|
|
46860
|
+
&& nextConflict >= options.arrayLimit
|
|
46861
|
+
) {
|
|
46862
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
46863
|
+
}
|
|
46864
|
+
target[nextConflict] = source;
|
|
46865
|
+
markConflict(target, nextConflict);
|
|
46754
46866
|
} else if (options && options.strictMerge) {
|
|
46755
|
-
|
|
46867
|
+
var conflict = limitedPair(target, source, options);
|
|
46868
|
+
return isArray(conflict) ? markConflict(conflict, 1) : conflict;
|
|
46756
46869
|
} else if (
|
|
46757
46870
|
(options && (options.plainObjects || options.allowPrototypes))
|
|
46758
46871
|
|| !has.call(Object.prototype, source)
|
|
@@ -46760,7 +46873,7 @@ function requireUtils () {
|
|
|
46760
46873
|
target[source] = true;
|
|
46761
46874
|
}
|
|
46762
46875
|
} else {
|
|
46763
|
-
return
|
|
46876
|
+
return limitedPair(target, source, options);
|
|
46764
46877
|
}
|
|
46765
46878
|
|
|
46766
46879
|
return target;
|
|
@@ -46792,6 +46905,10 @@ function requireUtils () {
|
|
|
46792
46905
|
var mergeTarget = target;
|
|
46793
46906
|
if (isArray(target) && !isArray(source)) {
|
|
46794
46907
|
mergeTarget = arrayToObject(target, options);
|
|
46908
|
+
if (isConflict(target)) {
|
|
46909
|
+
// the array may have grown past its last conflict, so continue after its last index
|
|
46910
|
+
markConflict(mergeTarget, target.length - 1);
|
|
46911
|
+
}
|
|
46795
46912
|
}
|
|
46796
46913
|
|
|
46797
46914
|
if (isArray(target) && isArray(source)) {
|
|
@@ -46826,7 +46943,7 @@ function requireUtils () {
|
|
|
46826
46943
|
}
|
|
46827
46944
|
|
|
46828
46945
|
if (isOverflow(source) && !isOverflow(acc)) {
|
|
46829
|
-
markOverflow(acc, getMaxIndex(source));
|
|
46946
|
+
markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
|
|
46830
46947
|
}
|
|
46831
46948
|
if (isOverflow(acc)) {
|
|
46832
46949
|
var keyNum = parseInt(key, 10);
|
|
@@ -46834,6 +46951,12 @@ function requireUtils () {
|
|
|
46834
46951
|
setMaxIndex(acc, keyNum);
|
|
46835
46952
|
}
|
|
46836
46953
|
}
|
|
46954
|
+
if (isConflict(acc)) {
|
|
46955
|
+
var conflictKey = parseInt(key, 10);
|
|
46956
|
+
if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
|
|
46957
|
+
markConflict(acc, conflictKey);
|
|
46958
|
+
}
|
|
46959
|
+
}
|
|
46837
46960
|
|
|
46838
46961
|
return acc;
|
|
46839
46962
|
}, mergeTarget);
|
|
@@ -46847,6 +46970,13 @@ function requireUtils () {
|
|
|
46847
46970
|
};
|
|
46848
46971
|
|
|
46849
46972
|
var decode = function (str, defaultDecoder, charset) {
|
|
46973
|
+
// With no `%` there is no escape to expand, in either charset: `unescape` has
|
|
46974
|
+
// nothing to match, and `decodeURIComponent` is the identity on such a string
|
|
46975
|
+
// (and cannot throw). So only `+` -> ' ' remains, and often not even that.
|
|
46976
|
+
if (typeof str === 'string' && str.indexOf('%') === -1) {
|
|
46977
|
+
return str.indexOf('+') === -1 ? str : str.replace(/\+/g, ' ');
|
|
46978
|
+
}
|
|
46979
|
+
|
|
46850
46980
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
46851
46981
|
if (charset === 'iso-8859-1') {
|
|
46852
46982
|
// unescape never throws, no try...catch needed:
|
|
@@ -46860,6 +46990,57 @@ function requireUtils () {
|
|
|
46860
46990
|
}
|
|
46861
46991
|
};
|
|
46862
46992
|
|
|
46993
|
+
var hasToPrimitive = typeof Symbol === 'function' && typeof Symbol.toPrimitive === 'symbol';
|
|
46994
|
+
var arrayJoin = Array.prototype.join;
|
|
46995
|
+
var arrayToString = Array.prototype.toString;
|
|
46996
|
+
var objectToString = Object.prototype.toString;
|
|
46997
|
+
|
|
46998
|
+
// an object with no callable toString (eg, from JSON, or null-prototype) would make String() or join() throw,
|
|
46999
|
+
// so it becomes its primitive valueOf or else Object.prototype.toString; arrays are walked like join walks them,
|
|
47000
|
+
// copied only once an element changes, with an array already being joined becoming '' as engines do for cycles
|
|
47001
|
+
var toCoercible = function toCoercible(value, joining) {
|
|
47002
|
+
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
47003
|
+
return value;
|
|
47004
|
+
}
|
|
47005
|
+
if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
|
|
47006
|
+
return value;
|
|
47007
|
+
}
|
|
47008
|
+
if (isArray(value) && value.toString === arrayToString && value.join === arrayJoin) {
|
|
47009
|
+
var ancestors = joining || getSideChannel();
|
|
47010
|
+
if (ancestors.has(value)) {
|
|
47011
|
+
return '';
|
|
47012
|
+
}
|
|
47013
|
+
ancestors.set(value, true);
|
|
47014
|
+
var copy;
|
|
47015
|
+
for (var i = 0; i < value.length; i += 1) {
|
|
47016
|
+
var item = value[i];
|
|
47017
|
+
var coerced = toCoercible(item, ancestors);
|
|
47018
|
+
if (!copy && coerced !== item) {
|
|
47019
|
+
copy = [];
|
|
47020
|
+
for (var j = 0; j < i; j += 1) {
|
|
47021
|
+
copy[j] = value[j];
|
|
47022
|
+
}
|
|
47023
|
+
}
|
|
47024
|
+
if (copy) {
|
|
47025
|
+
copy[i] = coerced;
|
|
47026
|
+
}
|
|
47027
|
+
}
|
|
47028
|
+
ancestors['delete'](value);
|
|
47029
|
+
return copy || value;
|
|
47030
|
+
}
|
|
47031
|
+
if (typeof value.toString === 'function') {
|
|
47032
|
+
return value;
|
|
47033
|
+
}
|
|
47034
|
+
var valueOf = value.valueOf;
|
|
47035
|
+
if (typeof valueOf === 'function') {
|
|
47036
|
+
var primitive = valueOf.call(value);
|
|
47037
|
+
if (!primitive || (typeof primitive !== 'object' && typeof primitive !== 'function')) {
|
|
47038
|
+
return String(primitive);
|
|
47039
|
+
}
|
|
47040
|
+
}
|
|
47041
|
+
return objectToString.call(value);
|
|
47042
|
+
};
|
|
47043
|
+
|
|
46863
47044
|
var limit = 1024;
|
|
46864
47045
|
|
|
46865
47046
|
/* eslint operator-linebreak: [2, "before"] */
|
|
@@ -46875,13 +47056,15 @@ function requireUtils () {
|
|
|
46875
47056
|
if (typeof str === 'symbol') {
|
|
46876
47057
|
string = Symbol.prototype.toString.call(str);
|
|
46877
47058
|
} else if (typeof str !== 'string') {
|
|
46878
|
-
string = String(str);
|
|
47059
|
+
string = String(toCoercible(str));
|
|
46879
47060
|
}
|
|
46880
47061
|
|
|
46881
47062
|
if (charset === 'iso-8859-1') {
|
|
47063
|
+
// `escape` leaves `+` untouched, but a literal `+` is decoded back to a space,
|
|
47064
|
+
// so it must be percent-encoded to round-trip (the utf-8 path already does this).
|
|
46882
47065
|
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
46883
47066
|
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
46884
|
-
});
|
|
47067
|
+
}).replace(/\+/g, '%2B');
|
|
46885
47068
|
}
|
|
46886
47069
|
|
|
46887
47070
|
var out = '';
|
|
@@ -47033,7 +47216,8 @@ function requireUtils () {
|
|
|
47033
47216
|
isRegExp: isRegExp,
|
|
47034
47217
|
markOverflow: markOverflow,
|
|
47035
47218
|
maybeMap: maybeMap,
|
|
47036
|
-
merge: merge
|
|
47219
|
+
merge: merge,
|
|
47220
|
+
toCoercible: toCoercible
|
|
47037
47221
|
};
|
|
47038
47222
|
return utils$1;
|
|
47039
47223
|
}
|
|
@@ -47195,10 +47379,10 @@ function requireStringify () {
|
|
|
47195
47379
|
// we need to join elements in
|
|
47196
47380
|
if (encodeValuesOnly && encoder) {
|
|
47197
47381
|
obj = utils.maybeMap(obj, function (v) {
|
|
47198
|
-
return v == null ? v : encoder(v);
|
|
47382
|
+
return v == null ? v : encoder(v, defaults.encoder, charset, 'value', format);
|
|
47199
47383
|
});
|
|
47200
47384
|
}
|
|
47201
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
47385
|
+
objKeys = [{ value: obj.length > 0 ? utils.toCoercible(obj).join(',') || null : void undefined }];
|
|
47202
47386
|
} else if (isArray(filter)) {
|
|
47203
47387
|
objKeys = filter;
|
|
47204
47388
|
} else {
|
|
@@ -47206,7 +47390,7 @@ function requireStringify () {
|
|
|
47206
47390
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
47207
47391
|
}
|
|
47208
47392
|
|
|
47209
|
-
var encodedPrefix =
|
|
47393
|
+
var encodedPrefix = String(prefix);
|
|
47210
47394
|
|
|
47211
47395
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
47212
47396
|
|
|
@@ -47296,7 +47480,7 @@ function requireStringify () {
|
|
|
47296
47480
|
}
|
|
47297
47481
|
|
|
47298
47482
|
var arrayFormat;
|
|
47299
|
-
if (opts.arrayFormat
|
|
47483
|
+
if (has.call(arrayPrefixGenerators, opts.arrayFormat)) {
|
|
47300
47484
|
arrayFormat = opts.arrayFormat;
|
|
47301
47485
|
} else if ('indices' in opts) {
|
|
47302
47486
|
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
@@ -47431,10 +47615,60 @@ function requireParse () {
|
|
|
47431
47615
|
if (hasRequiredParse) return parse$1;
|
|
47432
47616
|
hasRequiredParse = 1;
|
|
47433
47617
|
|
|
47618
|
+
var getSideChannel = requireSideChannel();
|
|
47434
47619
|
var utils = requireUtils();
|
|
47435
47620
|
|
|
47436
47621
|
var has = Object.prototype.hasOwnProperty;
|
|
47437
47622
|
var isArray = Array.isArray;
|
|
47623
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
47624
|
+
|
|
47625
|
+
var isPlainContainer = function isPlainContainer(value) {
|
|
47626
|
+
if (!value || typeof value !== 'object') {
|
|
47627
|
+
return false;
|
|
47628
|
+
}
|
|
47629
|
+
if (isArray(value)) {
|
|
47630
|
+
return true;
|
|
47631
|
+
}
|
|
47632
|
+
var proto = getPrototypeOf(value);
|
|
47633
|
+
return proto === Object.prototype || proto === null;
|
|
47634
|
+
};
|
|
47635
|
+
|
|
47636
|
+
var emptyCopyOf = function emptyCopyOf(value) {
|
|
47637
|
+
if (isArray(value)) {
|
|
47638
|
+
var arr = [];
|
|
47639
|
+
arr.length = value.length;
|
|
47640
|
+
return arr;
|
|
47641
|
+
}
|
|
47642
|
+
return getPrototypeOf(value) === null ? { __proto__: null } : {};
|
|
47643
|
+
};
|
|
47644
|
+
|
|
47645
|
+
// `merge` and `compact` modify the containers they are given, so copy the caller's arrays and plain objects first
|
|
47646
|
+
var copyInput = function copyInput(input) {
|
|
47647
|
+
var copies = getSideChannel();
|
|
47648
|
+
var result = {};
|
|
47649
|
+
var queue = [{ source: input, target: result }];
|
|
47650
|
+
|
|
47651
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
47652
|
+
var source = queue[i].source;
|
|
47653
|
+
var target = queue[i].target;
|
|
47654
|
+
var keys = Object.keys(source);
|
|
47655
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
47656
|
+
var value = source[keys[j]];
|
|
47657
|
+
if (isPlainContainer(value)) {
|
|
47658
|
+
if (!copies.has(value)) {
|
|
47659
|
+
var copy = emptyCopyOf(value);
|
|
47660
|
+
copies.set(value, copy);
|
|
47661
|
+
queue[queue.length] = { source: value, target: copy };
|
|
47662
|
+
}
|
|
47663
|
+
target[keys[j]] = copies.get(value);
|
|
47664
|
+
} else {
|
|
47665
|
+
target[keys[j]] = value;
|
|
47666
|
+
}
|
|
47667
|
+
}
|
|
47668
|
+
}
|
|
47669
|
+
|
|
47670
|
+
return result;
|
|
47671
|
+
};
|
|
47438
47672
|
|
|
47439
47673
|
var defaults = {
|
|
47440
47674
|
allowDots: false,
|
|
@@ -47543,6 +47777,9 @@ function requireParse () {
|
|
|
47543
47777
|
var bracketEqualsPos = part.indexOf(']=');
|
|
47544
47778
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
47545
47779
|
|
|
47780
|
+
// `[]` belongs to the key, so look for it at the split point, not anywhere in the part
|
|
47781
|
+
var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === '[]';
|
|
47782
|
+
|
|
47546
47783
|
var key;
|
|
47547
47784
|
var val;
|
|
47548
47785
|
if (pos === -1) {
|
|
@@ -47569,7 +47806,7 @@ function requireParse () {
|
|
|
47569
47806
|
val = interpretNumericEntities(String(val));
|
|
47570
47807
|
}
|
|
47571
47808
|
|
|
47572
|
-
if (
|
|
47809
|
+
if (isEmptyBracketKey) {
|
|
47573
47810
|
val = isArray(val) ? [val] : val;
|
|
47574
47811
|
}
|
|
47575
47812
|
|
|
@@ -47579,7 +47816,7 @@ function requireParse () {
|
|
|
47579
47816
|
|
|
47580
47817
|
if (key !== null) {
|
|
47581
47818
|
var existing = has.call(obj, key);
|
|
47582
|
-
if (existing && (options.duplicates === 'combine' ||
|
|
47819
|
+
if (existing && (options.duplicates === 'combine' || isEmptyBracketKey)) {
|
|
47583
47820
|
obj[key] = utils.combine(
|
|
47584
47821
|
obj[key],
|
|
47585
47822
|
val,
|
|
@@ -47655,10 +47892,47 @@ function requireParse () {
|
|
|
47655
47892
|
return leaf;
|
|
47656
47893
|
};
|
|
47657
47894
|
|
|
47895
|
+
// Behaves like `key.replace(/\.([^.[]+)/g, '[$1]')`, but only rewrites a dot
|
|
47896
|
+
// that sits at bracket depth 0. A literal dot already inside a `[...]` segment
|
|
47897
|
+
// is left untouched instead of corrupting the key (e.g. "outer[a.b]"). (#617)
|
|
47898
|
+
var topLevelDotsToBrackets = function topLevelDotsToBrackets(key) {
|
|
47899
|
+
var result = '';
|
|
47900
|
+
var depth = 0;
|
|
47901
|
+
for (var i = 0; i < key.length; i += 1) {
|
|
47902
|
+
var cu = key.charCodeAt(i);
|
|
47903
|
+
if (cu === 0x5B) { // '['
|
|
47904
|
+
depth += 1;
|
|
47905
|
+
result += '[';
|
|
47906
|
+
} else if (cu === 0x5D) { // ']'
|
|
47907
|
+
if (depth > 0) {
|
|
47908
|
+
depth -= 1;
|
|
47909
|
+
}
|
|
47910
|
+
result += ']';
|
|
47911
|
+
} else if (
|
|
47912
|
+
cu === 0x2E // '.'
|
|
47913
|
+
&& depth === 0
|
|
47914
|
+
&& i + 1 < key.length
|
|
47915
|
+
&& key.charCodeAt(i + 1) !== 0x2E // not another '.'
|
|
47916
|
+
&& key.charCodeAt(i + 1) !== 0x5B // not '['
|
|
47917
|
+
) {
|
|
47918
|
+
var start = i + 1;
|
|
47919
|
+
var j = start;
|
|
47920
|
+
while (j < key.length && key.charCodeAt(j) !== 0x2E && key.charCodeAt(j) !== 0x5B) {
|
|
47921
|
+
j += 1;
|
|
47922
|
+
}
|
|
47923
|
+
result += '[' + key.slice(start, j) + ']';
|
|
47924
|
+
i = j - 1;
|
|
47925
|
+
} else {
|
|
47926
|
+
result += key.charAt(i);
|
|
47927
|
+
}
|
|
47928
|
+
}
|
|
47929
|
+
return result;
|
|
47930
|
+
};
|
|
47931
|
+
|
|
47658
47932
|
// Split a key like "a[b][c[]]" into ['a', '[b]', '[c[]]'] while preserving
|
|
47659
47933
|
// qs parse semantics for depth/prototype guards.
|
|
47660
47934
|
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
47661
|
-
var key = options.allowDots ? originalKey
|
|
47935
|
+
var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
47662
47936
|
|
|
47663
47937
|
// depth <= 0 keeps the whole key as one segment
|
|
47664
47938
|
if (options.depth <= 0) {
|
|
@@ -47824,7 +48098,7 @@ function requireParse () {
|
|
|
47824
48098
|
return options.plainObjects ? { __proto__: null } : {};
|
|
47825
48099
|
}
|
|
47826
48100
|
|
|
47827
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
48101
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : copyInput(str);
|
|
47828
48102
|
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
47829
48103
|
|
|
47830
48104
|
// Iterate over the keys and setup the new object
|
|
@@ -69238,4 +69512,4 @@ var yaml = /*#__PURE__*/Object.freeze({
|
|
|
69238
69512
|
});
|
|
69239
69513
|
|
|
69240
69514
|
export { HighlightJS as H, MarkdownItCallable as M, Ze$b as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, fm$3 as g, strFromU8 as h, closest as i, distance as j, isCI as k, cliProgress as l, moduleImporter as m, createInstance as n, fse as o, inter as p, runAsWorker as r, strToU8 as s, tinylr as t, watch$1 as w, zlibSync as z };
|
|
69241
|
-
//# sourceMappingURL=vendor-
|
|
69515
|
+
//# sourceMappingURL=vendor-D1q9wBug.mjs.map
|