mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 17:39:15 +00:00
Merge branch 'main' into mbg/start-proxy/error-types
This commit is contained in:
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60499,7 +60499,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt2, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60840,7 +60840,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -61097,36 +61097,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -61135,11 +61139,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61156,7 +61160,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61168,19 +61172,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61192,71 +61196,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt2 = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt2(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt2, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt2.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt2.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61291,18 +61295,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt2.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt2.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt2.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt2.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61310,14 +61314,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt2.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -59051,7 +59051,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -59392,7 +59392,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -59649,36 +59649,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -59687,11 +59691,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -59708,7 +59712,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -59720,19 +59724,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -59744,71 +59748,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -59843,18 +59847,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -59862,14 +59866,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -62277,7 +62277,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -78954,7 +78954,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -79295,7 +79295,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -79552,36 +79552,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -79590,11 +79594,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -79611,7 +79615,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -79623,19 +79627,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -79647,71 +79651,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -79746,18 +79750,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -79765,14 +79769,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -45790,7 +45790,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -60348,7 +60348,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -60689,7 +60689,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -60946,36 +60946,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -60984,11 +60988,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -61005,7 +61009,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -61017,19 +61021,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -61041,71 +61045,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -61140,18 +61144,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -61159,14 +61163,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -62660,7 +62660,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -63001,7 +63001,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -63258,36 +63258,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -63296,11 +63300,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -63317,7 +63321,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -63329,19 +63333,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -63353,71 +63357,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -63452,18 +63456,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -63471,14 +63475,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Generated
+48
-44
@@ -44493,7 +44493,7 @@ var require_package = __commonJS({
|
||||
"package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "codeql",
|
||||
version: "4.32.1",
|
||||
version: "4.32.2",
|
||||
private: true,
|
||||
description: "CodeQL action",
|
||||
scripts: {
|
||||
@@ -59051,7 +59051,7 @@ var require_fxp = __commonJS({
|
||||
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
||||
} }, e = {};
|
||||
t.r(e), t.d(e, { XMLBuilder: () => lt, XMLParser: () => tt, XMLValidator: () => pt });
|
||||
t.r(e), t.d(e, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
|
||||
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
||||
function s(t2, e2) {
|
||||
const i2 = [];
|
||||
@@ -59392,7 +59392,7 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
class D {
|
||||
constructor(t2) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)) } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e2) => Z(e2, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e2) => Z(e2, 16, "&#x") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
||||
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
||||
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
||||
const e2 = this.options.stopNodes[t3];
|
||||
@@ -59649,36 +59649,40 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
return void 0 !== t2 ? t2 : "";
|
||||
}
|
||||
const Z = y.getMetaDataSymbol();
|
||||
function K(t2, e2) {
|
||||
return Q(t2, e2);
|
||||
function Z(t2, e2, i2) {
|
||||
const n2 = Number.parseInt(t2, e2);
|
||||
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
||||
}
|
||||
function Q(t2, e2, i2) {
|
||||
const K = y.getMetaDataSymbol();
|
||||
function Q(t2, e2) {
|
||||
return z(t2, e2);
|
||||
}
|
||||
function z(t2, e2, i2) {
|
||||
let n2;
|
||||
const s2 = {};
|
||||
for (let r2 = 0; r2 < t2.length; r2++) {
|
||||
const o2 = t2[r2], a2 = z(o2);
|
||||
const o2 = t2[r2], a2 = J(o2);
|
||||
let l2 = "";
|
||||
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
||||
else {
|
||||
if (void 0 === a2) continue;
|
||||
if (o2[a2]) {
|
||||
let t3 = Q(o2[a2], e2, l2);
|
||||
const i3 = H(t3, e2);
|
||||
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
let t3 = z(o2[a2], e2, l2);
|
||||
const i3 = tt(t3, e2);
|
||||
void 0 !== o2[K] && (t3[K] = o2[K]), o2[":@"] ? H(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
||||
}
|
||||
function z(t2) {
|
||||
function J(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let t3 = 0; t3 < e2.length; t3++) {
|
||||
const i2 = e2[t3];
|
||||
if (":@" !== i2) return i2;
|
||||
}
|
||||
}
|
||||
function J(t2, e2, i2, n2) {
|
||||
function H(t2, e2, i2, n2) {
|
||||
if (e2) {
|
||||
const s2 = Object.keys(e2), r2 = s2.length;
|
||||
for (let o2 = 0; o2 < r2; o2++) {
|
||||
@@ -59687,11 +59691,11 @@ var require_fxp = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
function H(t2, e2) {
|
||||
function tt(t2, e2) {
|
||||
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
||||
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
||||
}
|
||||
class tt {
|
||||
class et {
|
||||
constructor(t2) {
|
||||
this.externalEntities = {}, this.options = (function(t3) {
|
||||
return Object.assign({}, v, t3);
|
||||
@@ -59708,7 +59712,7 @@ var require_fxp = __commonJS({
|
||||
const i2 = new D(this.options);
|
||||
i2.addExternalEntities(this.externalEntities);
|
||||
const n2 = i2.parseXml(t2);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
||||
return this.options.preserveOrder || void 0 === n2 ? n2 : Q(n2, this.options);
|
||||
}
|
||||
addEntity(t2, e2) {
|
||||
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
||||
@@ -59720,19 +59724,19 @@ var require_fxp = __commonJS({
|
||||
return y.getMetaDataSymbol();
|
||||
}
|
||||
}
|
||||
function et(t2, e2) {
|
||||
function it(t2, e2) {
|
||||
let i2 = "";
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
||||
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), nt(t2, e2, "", i2);
|
||||
}
|
||||
function it(t2, e2, i2, n2) {
|
||||
function nt(t2, e2, i2, n2) {
|
||||
let s2 = "", r2 = false;
|
||||
for (let o2 = 0; o2 < t2.length; o2++) {
|
||||
const a2 = t2[o2], l2 = nt(a2);
|
||||
const a2 = t2[o2], l2 = st(a2);
|
||||
if (void 0 === l2) continue;
|
||||
let u2 = "";
|
||||
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
||||
let t3 = a2[l2];
|
||||
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
ot(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = at(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
||||
continue;
|
||||
}
|
||||
if (l2 === e2.cdataPropName) {
|
||||
@@ -59744,71 +59748,71 @@ var require_fxp = __commonJS({
|
||||
continue;
|
||||
}
|
||||
if ("?" === l2[0]) {
|
||||
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
const t3 = rt(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
||||
let o3 = a2[l2][0][e2.textNodeName];
|
||||
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
||||
continue;
|
||||
}
|
||||
let h2 = n2;
|
||||
"" !== h2 && (h2 += e2.indentBy);
|
||||
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
||||
const d2 = n2 + `<${l2}${rt(a2[":@"], e2)}`, p2 = nt(a2[l2], e2, u2, h2);
|
||||
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
||||
}
|
||||
return s2;
|
||||
}
|
||||
function nt(t2) {
|
||||
function st(t2) {
|
||||
const e2 = Object.keys(t2);
|
||||
for (let i2 = 0; i2 < e2.length; i2++) {
|
||||
const n2 = e2[i2];
|
||||
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
||||
}
|
||||
}
|
||||
function st(t2, e2) {
|
||||
function rt(t2, e2) {
|
||||
let i2 = "";
|
||||
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
||||
if (!t2.hasOwnProperty(n2)) continue;
|
||||
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
||||
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
s2 = at(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
||||
}
|
||||
return i2;
|
||||
}
|
||||
function rt(t2, e2) {
|
||||
function ot(t2, e2) {
|
||||
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
||||
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
||||
return false;
|
||||
}
|
||||
function ot(t2, e2) {
|
||||
function at(t2, e2) {
|
||||
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
||||
const n2 = e2.entities[i2];
|
||||
t2 = t2.replace(n2.regex, n2.val);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
const at = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, attributeValueProcessor: function(t2, e2) {
|
||||
return e2;
|
||||
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
||||
function lt(t2) {
|
||||
this.options = Object.assign({}, at, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
function ut(t2) {
|
||||
this.options = Object.assign({}, lt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
||||
return false;
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = dt), this.processTextOrObjNode = ut, this.options.format ? (this.indentate = ht, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
} : (this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
||||
return "";
|
||||
}, this.tagEndChar = ">", this.newLine = "");
|
||||
}
|
||||
function ut(t2, e2, i2, n2) {
|
||||
function ht(t2, e2, i2, n2) {
|
||||
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
||||
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
||||
}
|
||||
function ht(t2) {
|
||||
function dt(t2) {
|
||||
return this.options.indentBy.repeat(t2);
|
||||
}
|
||||
function dt(t2) {
|
||||
function pt(t2) {
|
||||
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
||||
}
|
||||
lt.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, lt.prototype.j2x = function(t2, e2, i2) {
|
||||
ut.prototype.build = function(t2) {
|
||||
return this.options.preserveOrder ? it(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
||||
}, ut.prototype.j2x = function(t2, e2, i2) {
|
||||
let n2 = "", s2 = "";
|
||||
const r2 = i2.join(".");
|
||||
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
||||
@@ -59843,18 +59847,18 @@ var require_fxp = __commonJS({
|
||||
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
||||
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
||||
return { attrStr: n2, val: s2 };
|
||||
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
}, ut.prototype.buildAttrPairStr = function(t2, e2) {
|
||||
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
||||
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
||||
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
||||
{
|
||||
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
||||
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
||||
}
|
||||
}, lt.prototype.closeTag = function(t2) {
|
||||
}, ut.prototype.closeTag = function(t2) {
|
||||
let e2 = "";
|
||||
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
||||
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
}, ut.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
||||
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
||||
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
||||
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
||||
@@ -59862,14 +59866,14 @@ var require_fxp = __commonJS({
|
||||
let s2 = this.options.tagValueProcessor(e2, t2);
|
||||
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
||||
}
|
||||
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
||||
}, ut.prototype.replaceEntitiesValue = function(t2) {
|
||||
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
||||
const i2 = this.options.entities[e2];
|
||||
t2 = t2.replace(i2.regex, i2.val);
|
||||
}
|
||||
return t2;
|
||||
};
|
||||
const pt = { validate: a };
|
||||
const ft = { validate: a };
|
||||
module2.exports = e;
|
||||
})();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user