@pod-os/core 0.11.2-fe7524c.0 → 0.12.1-eddb6ac.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-NJZBRQIY.js → chunk-7C7N3OSJ.js} +376 -542
- package/dist/dist-762OQHAF.js +912 -0
- package/dist/index.js +1860 -95
- package/lib/index.js +3091 -945
- package/package.json +8 -7
- package/types/authentication/index.d.ts +10 -2
- package/types/authentication/observeSession.d.ts +4 -0
- package/types/authentication/observeSession.spec.d.ts +1 -0
- package/types/index.d.ts +19 -4
- package/dist/dist-D3HKZNEN.js +0 -384
|
@@ -120,7 +120,7 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
120
120
|
var o2 = h;
|
|
121
121
|
return function(i2, a2) {
|
|
122
122
|
if (o2 === f)
|
|
123
|
-
throw
|
|
123
|
+
throw Error("Generator is already running");
|
|
124
124
|
if (o2 === s) {
|
|
125
125
|
if ("throw" === i2)
|
|
126
126
|
throw a2;
|
|
@@ -281,7 +281,7 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
281
281
|
return handle(i2.catchLoc, true);
|
|
282
282
|
} else {
|
|
283
283
|
if (!u2)
|
|
284
|
-
throw
|
|
284
|
+
throw Error("try statement without catch or finally");
|
|
285
285
|
if (this.prev < i2.finallyLoc)
|
|
286
286
|
return handle(i2.finallyLoc);
|
|
287
287
|
}
|
|
@@ -324,7 +324,7 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
324
324
|
return o2;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
throw
|
|
327
|
+
throw Error("illegal catch attempt");
|
|
328
328
|
},
|
|
329
329
|
delegateYield: function delegateYield(e2, r2, n2) {
|
|
330
330
|
return this.delegate = {
|
|
@@ -6700,6 +6700,7 @@ var require_utils = __commonJS({
|
|
|
6700
6700
|
return strWithoutPlus;
|
|
6701
6701
|
}
|
|
6702
6702
|
};
|
|
6703
|
+
var limit = 1024;
|
|
6703
6704
|
var encode2 = function encode3(str, defaultEncoder, charset, kind, format) {
|
|
6704
6705
|
if (str.length === 0) {
|
|
6705
6706
|
return str;
|
|
@@ -6716,27 +6717,32 @@ var require_utils = __commonJS({
|
|
|
6716
6717
|
});
|
|
6717
6718
|
}
|
|
6718
6719
|
var out = "";
|
|
6719
|
-
for (var
|
|
6720
|
-
var
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6720
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
6721
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
6722
|
+
var arr = [];
|
|
6723
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
6724
|
+
var c = segment.charCodeAt(i);
|
|
6725
|
+
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
6726
|
+
arr[arr.length] = segment.charAt(i);
|
|
6727
|
+
continue;
|
|
6728
|
+
}
|
|
6729
|
+
if (c < 128) {
|
|
6730
|
+
arr[arr.length] = hexTable[c];
|
|
6731
|
+
continue;
|
|
6732
|
+
}
|
|
6733
|
+
if (c < 2048) {
|
|
6734
|
+
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
6735
|
+
continue;
|
|
6736
|
+
}
|
|
6737
|
+
if (c < 55296 || c >= 57344) {
|
|
6738
|
+
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
6739
|
+
continue;
|
|
6740
|
+
}
|
|
6741
|
+
i += 1;
|
|
6742
|
+
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
6743
|
+
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
6736
6744
|
}
|
|
6737
|
-
|
|
6738
|
-
c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
|
|
6739
|
-
out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
6745
|
+
out += arr.join("");
|
|
6740
6746
|
}
|
|
6741
6747
|
return out;
|
|
6742
6748
|
};
|
|
@@ -6826,10 +6832,13 @@ var require_stringify = __commonJS({
|
|
|
6826
6832
|
var defaults = {
|
|
6827
6833
|
addQueryPrefix: false,
|
|
6828
6834
|
allowDots: false,
|
|
6835
|
+
allowEmptyArrays: false,
|
|
6836
|
+
arrayFormat: "indices",
|
|
6829
6837
|
charset: "utf-8",
|
|
6830
6838
|
charsetSentinel: false,
|
|
6831
6839
|
delimiter: "&",
|
|
6832
6840
|
encode: true,
|
|
6841
|
+
encodeDotInKeys: false,
|
|
6833
6842
|
encoder: utils.encode,
|
|
6834
6843
|
encodeValuesOnly: false,
|
|
6835
6844
|
format: defaultFormat,
|
|
@@ -6846,7 +6855,7 @@ var require_stringify = __commonJS({
|
|
|
6846
6855
|
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
6847
6856
|
};
|
|
6848
6857
|
var sentinel = {};
|
|
6849
|
-
var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
6858
|
+
var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
6850
6859
|
var obj = object;
|
|
6851
6860
|
var tmpSc = sideChannel;
|
|
6852
6861
|
var step = 0;
|
|
@@ -6906,14 +6915,19 @@ var require_stringify = __commonJS({
|
|
|
6906
6915
|
var keys = Object.keys(obj);
|
|
6907
6916
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
6908
6917
|
}
|
|
6909
|
-
var
|
|
6918
|
+
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
|
|
6919
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
6920
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
6921
|
+
return adjustedPrefix + "[]";
|
|
6922
|
+
}
|
|
6910
6923
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
6911
6924
|
var key = objKeys[j];
|
|
6912
6925
|
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
6913
6926
|
if (skipNulls && value === null) {
|
|
6914
6927
|
continue;
|
|
6915
6928
|
}
|
|
6916
|
-
var
|
|
6929
|
+
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
|
|
6930
|
+
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
6917
6931
|
sideChannel.set(object, step);
|
|
6918
6932
|
var valueSideChannel = getSideChannel();
|
|
6919
6933
|
valueSideChannel.set(sentinel, sideChannel);
|
|
@@ -6922,8 +6936,10 @@ var require_stringify = __commonJS({
|
|
|
6922
6936
|
keyPrefix,
|
|
6923
6937
|
generateArrayPrefix,
|
|
6924
6938
|
commaRoundTrip,
|
|
6939
|
+
allowEmptyArrays,
|
|
6925
6940
|
strictNullHandling,
|
|
6926
6941
|
skipNulls,
|
|
6942
|
+
encodeDotInKeys,
|
|
6927
6943
|
generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
6928
6944
|
filter,
|
|
6929
6945
|
sort,
|
|
@@ -6942,6 +6958,12 @@ var require_stringify = __commonJS({
|
|
|
6942
6958
|
if (!opts) {
|
|
6943
6959
|
return defaults;
|
|
6944
6960
|
}
|
|
6961
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
6962
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
6963
|
+
}
|
|
6964
|
+
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
6965
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
6966
|
+
}
|
|
6945
6967
|
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
6946
6968
|
throw new TypeError("Encoder has to be a function.");
|
|
6947
6969
|
}
|
|
@@ -6961,13 +6983,29 @@ var require_stringify = __commonJS({
|
|
|
6961
6983
|
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
6962
6984
|
filter = opts.filter;
|
|
6963
6985
|
}
|
|
6986
|
+
var arrayFormat;
|
|
6987
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
6988
|
+
arrayFormat = opts.arrayFormat;
|
|
6989
|
+
} else if ("indices" in opts) {
|
|
6990
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
6991
|
+
} else {
|
|
6992
|
+
arrayFormat = defaults.arrayFormat;
|
|
6993
|
+
}
|
|
6994
|
+
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
6995
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
6996
|
+
}
|
|
6997
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
6964
6998
|
return {
|
|
6965
6999
|
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
6966
|
-
allowDots
|
|
7000
|
+
allowDots,
|
|
7001
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
7002
|
+
arrayFormat,
|
|
6967
7003
|
charset,
|
|
6968
7004
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
7005
|
+
commaRoundTrip: opts.commaRoundTrip,
|
|
6969
7006
|
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
6970
7007
|
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
7008
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
6971
7009
|
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
6972
7010
|
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
6973
7011
|
filter,
|
|
@@ -6995,19 +7033,8 @@ var require_stringify = __commonJS({
|
|
|
6995
7033
|
if (typeof obj !== "object" || obj === null) {
|
|
6996
7034
|
return "";
|
|
6997
7035
|
}
|
|
6998
|
-
var arrayFormat;
|
|
6999
|
-
|
|
7000
|
-
arrayFormat = opts.arrayFormat;
|
|
7001
|
-
} else if (opts && "indices" in opts) {
|
|
7002
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
7003
|
-
} else {
|
|
7004
|
-
arrayFormat = "indices";
|
|
7005
|
-
}
|
|
7006
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
7007
|
-
if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
7008
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
7009
|
-
}
|
|
7010
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
|
|
7036
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
7037
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
7011
7038
|
if (!objKeys) {
|
|
7012
7039
|
objKeys = Object.keys(obj);
|
|
7013
7040
|
}
|
|
@@ -7025,8 +7052,10 @@ var require_stringify = __commonJS({
|
|
|
7025
7052
|
key,
|
|
7026
7053
|
generateArrayPrefix,
|
|
7027
7054
|
commaRoundTrip,
|
|
7055
|
+
options.allowEmptyArrays,
|
|
7028
7056
|
options.strictNullHandling,
|
|
7029
7057
|
options.skipNulls,
|
|
7058
|
+
options.encodeDotInKeys,
|
|
7030
7059
|
options.encode ? options.encoder : null,
|
|
7031
7060
|
options.filter,
|
|
7032
7061
|
options.sort,
|
|
@@ -7062,15 +7091,18 @@ var require_parse = __commonJS({
|
|
|
7062
7091
|
var isArray = Array.isArray;
|
|
7063
7092
|
var defaults = {
|
|
7064
7093
|
allowDots: false,
|
|
7094
|
+
allowEmptyArrays: false,
|
|
7065
7095
|
allowPrototypes: false,
|
|
7066
7096
|
allowSparse: false,
|
|
7067
7097
|
arrayLimit: 20,
|
|
7068
7098
|
charset: "utf-8",
|
|
7069
7099
|
charsetSentinel: false,
|
|
7070
7100
|
comma: false,
|
|
7101
|
+
decodeDotInKeys: false,
|
|
7071
7102
|
decoder: utils.decode,
|
|
7072
7103
|
delimiter: "&",
|
|
7073
7104
|
depth: 5,
|
|
7105
|
+
duplicates: "combine",
|
|
7074
7106
|
ignoreQueryPrefix: false,
|
|
7075
7107
|
interpretNumericEntities: false,
|
|
7076
7108
|
parameterLimit: 1e3,
|
|
@@ -7138,9 +7170,10 @@ var require_parse = __commonJS({
|
|
|
7138
7170
|
if (part.indexOf("[]=") > -1) {
|
|
7139
7171
|
val = isArray(val) ? [val] : val;
|
|
7140
7172
|
}
|
|
7141
|
-
|
|
7173
|
+
var existing = has.call(obj, key);
|
|
7174
|
+
if (existing && options.duplicates === "combine") {
|
|
7142
7175
|
obj[key] = utils.combine(obj[key], val);
|
|
7143
|
-
} else {
|
|
7176
|
+
} else if (!existing || options.duplicates === "last") {
|
|
7144
7177
|
obj[key] = val;
|
|
7145
7178
|
}
|
|
7146
7179
|
}
|
|
@@ -7152,18 +7185,19 @@ var require_parse = __commonJS({
|
|
|
7152
7185
|
var obj;
|
|
7153
7186
|
var root = chain[i];
|
|
7154
7187
|
if (root === "[]" && options.parseArrays) {
|
|
7155
|
-
obj = [].concat(leaf);
|
|
7188
|
+
obj = options.allowEmptyArrays && leaf === "" ? [] : [].concat(leaf);
|
|
7156
7189
|
} else {
|
|
7157
7190
|
obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
7158
7191
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
7159
|
-
var
|
|
7160
|
-
|
|
7192
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
7193
|
+
var index = parseInt(decodedRoot, 10);
|
|
7194
|
+
if (!options.parseArrays && decodedRoot === "") {
|
|
7161
7195
|
obj = { 0: leaf };
|
|
7162
|
-
} else if (!isNaN(index) && root !==
|
|
7196
|
+
} else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
|
|
7163
7197
|
obj = [];
|
|
7164
7198
|
obj[index] = leaf;
|
|
7165
|
-
} else if (
|
|
7166
|
-
obj[
|
|
7199
|
+
} else if (decodedRoot !== "__proto__") {
|
|
7200
|
+
obj[decodedRoot] = leaf;
|
|
7167
7201
|
}
|
|
7168
7202
|
}
|
|
7169
7203
|
leaf = obj;
|
|
@@ -7207,25 +7241,39 @@ var require_parse = __commonJS({
|
|
|
7207
7241
|
if (!opts) {
|
|
7208
7242
|
return defaults;
|
|
7209
7243
|
}
|
|
7210
|
-
if (
|
|
7244
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
7245
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
7246
|
+
}
|
|
7247
|
+
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
7248
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
7249
|
+
}
|
|
7250
|
+
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
7211
7251
|
throw new TypeError("Decoder has to be a function.");
|
|
7212
7252
|
}
|
|
7213
7253
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
7214
7254
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
7215
7255
|
}
|
|
7216
7256
|
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
7257
|
+
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
7258
|
+
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
7259
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
7260
|
+
}
|
|
7261
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
7217
7262
|
return {
|
|
7218
|
-
allowDots
|
|
7263
|
+
allowDots,
|
|
7264
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
7219
7265
|
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
7220
7266
|
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
7221
7267
|
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
7222
7268
|
charset,
|
|
7223
7269
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
7224
7270
|
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
7271
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
7225
7272
|
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
7226
7273
|
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
7227
7274
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
7228
7275
|
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
7276
|
+
duplicates,
|
|
7229
7277
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
7230
7278
|
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
7231
7279
|
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
@@ -13107,7 +13155,7 @@ function toPrimitive(t, r) {
|
|
|
13107
13155
|
// ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
13108
13156
|
function toPropertyKey(t) {
|
|
13109
13157
|
var i = toPrimitive(t, "string");
|
|
13110
|
-
return "symbol" == _typeof(i) ? i :
|
|
13158
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
13111
13159
|
}
|
|
13112
13160
|
|
|
13113
13161
|
// ../node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
@@ -13159,6 +13207,24 @@ function _assertThisInitialized(self2) {
|
|
|
13159
13207
|
return self2;
|
|
13160
13208
|
}
|
|
13161
13209
|
|
|
13210
|
+
// ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
13211
|
+
function _possibleConstructorReturn(self2, call) {
|
|
13212
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
13213
|
+
return call;
|
|
13214
|
+
} else if (call !== void 0) {
|
|
13215
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
13216
|
+
}
|
|
13217
|
+
return _assertThisInitialized(self2);
|
|
13218
|
+
}
|
|
13219
|
+
|
|
13220
|
+
// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
13221
|
+
function _getPrototypeOf(o) {
|
|
13222
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
13223
|
+
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
13224
|
+
};
|
|
13225
|
+
return _getPrototypeOf(o);
|
|
13226
|
+
}
|
|
13227
|
+
|
|
13162
13228
|
// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
13163
13229
|
function _setPrototypeOf(o, p) {
|
|
13164
13230
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
@@ -13187,24 +13253,6 @@ function _inherits(subClass, superClass) {
|
|
|
13187
13253
|
_setPrototypeOf(subClass, superClass);
|
|
13188
13254
|
}
|
|
13189
13255
|
|
|
13190
|
-
// ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
13191
|
-
function _possibleConstructorReturn(self2, call) {
|
|
13192
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
13193
|
-
return call;
|
|
13194
|
-
} else if (call !== void 0) {
|
|
13195
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
13196
|
-
}
|
|
13197
|
-
return _assertThisInitialized(self2);
|
|
13198
|
-
}
|
|
13199
|
-
|
|
13200
|
-
// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
13201
|
-
function _getPrototypeOf(o) {
|
|
13202
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
13203
|
-
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
13204
|
-
};
|
|
13205
|
-
return _getPrototypeOf(o);
|
|
13206
|
-
}
|
|
13207
|
-
|
|
13208
13256
|
// ../node_modules/rdflib/esm/class-order.js
|
|
13209
13257
|
var ClassOrder = {
|
|
13210
13258
|
"Literal": 1,
|
|
@@ -13225,7 +13273,7 @@ var Node2 = /* @__PURE__ */ function() {
|
|
|
13225
13273
|
_defineProperty(this, "value", void 0);
|
|
13226
13274
|
this.value = value;
|
|
13227
13275
|
}
|
|
13228
|
-
_createClass(Node3, [{
|
|
13276
|
+
return _createClass(Node3, [{
|
|
13229
13277
|
key: "substitute",
|
|
13230
13278
|
value: function substitute(bindings) {
|
|
13231
13279
|
return this;
|
|
@@ -13315,54 +13363,37 @@ var Node2 = /* @__PURE__ */ function() {
|
|
|
13315
13363
|
throw new Error("Node.toString() is abstract - see the subclasses instead");
|
|
13316
13364
|
}
|
|
13317
13365
|
}]);
|
|
13318
|
-
return Node3;
|
|
13319
13366
|
}();
|
|
13320
13367
|
_defineProperty(Node2, "fromValue", void 0);
|
|
13321
13368
|
_defineProperty(Node2, "toJS", void 0);
|
|
13322
13369
|
|
|
13323
13370
|
// ../node_modules/rdflib/esm/blank-node.js
|
|
13324
|
-
function
|
|
13325
|
-
|
|
13326
|
-
return function _createSuperInternal() {
|
|
13327
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
13328
|
-
if (hasNativeReflectConstruct) {
|
|
13329
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
13330
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
13331
|
-
} else {
|
|
13332
|
-
result = Super.apply(this, arguments);
|
|
13333
|
-
}
|
|
13334
|
-
return _possibleConstructorReturn(this, result);
|
|
13335
|
-
};
|
|
13371
|
+
function _callSuper(t, o, e) {
|
|
13372
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
13336
13373
|
}
|
|
13337
13374
|
function _isNativeReflectConstruct() {
|
|
13338
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
13339
|
-
return false;
|
|
13340
|
-
if (Reflect.construct.sham)
|
|
13341
|
-
return false;
|
|
13342
|
-
if (typeof Proxy === "function")
|
|
13343
|
-
return true;
|
|
13344
13375
|
try {
|
|
13345
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13376
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13346
13377
|
}));
|
|
13347
|
-
|
|
13348
|
-
} catch (e) {
|
|
13349
|
-
return false;
|
|
13378
|
+
} catch (t2) {
|
|
13350
13379
|
}
|
|
13380
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct10() {
|
|
13381
|
+
return !!t;
|
|
13382
|
+
})();
|
|
13351
13383
|
}
|
|
13352
13384
|
var BlankNode = /* @__PURE__ */ function(_Node) {
|
|
13353
|
-
_inherits(BlankNode3, _Node);
|
|
13354
|
-
var _super = _createSuper(BlankNode3);
|
|
13355
13385
|
function BlankNode3(id3) {
|
|
13356
13386
|
var _this;
|
|
13357
13387
|
_classCallCheck(this, BlankNode3);
|
|
13358
|
-
_this =
|
|
13359
|
-
_defineProperty(
|
|
13360
|
-
_defineProperty(
|
|
13361
|
-
_defineProperty(
|
|
13362
|
-
_defineProperty(
|
|
13388
|
+
_this = _callSuper(this, BlankNode3, [BlankNode3.getId(id3)]);
|
|
13389
|
+
_defineProperty(_this, "termType", BlankNodeTermType);
|
|
13390
|
+
_defineProperty(_this, "classOrder", class_order_default.BlankNode);
|
|
13391
|
+
_defineProperty(_this, "isBlank", 1);
|
|
13392
|
+
_defineProperty(_this, "isVar", 1);
|
|
13363
13393
|
return _this;
|
|
13364
13394
|
}
|
|
13365
|
-
|
|
13395
|
+
_inherits(BlankNode3, _Node);
|
|
13396
|
+
return _createClass(BlankNode3, [{
|
|
13366
13397
|
key: "id",
|
|
13367
13398
|
get: function get() {
|
|
13368
13399
|
return this.value;
|
|
@@ -13424,7 +13455,6 @@ var BlankNode = /* @__PURE__ */ function(_Node) {
|
|
|
13424
13455
|
return "n" + BlankNode3.nextId++;
|
|
13425
13456
|
}
|
|
13426
13457
|
}]);
|
|
13427
|
-
return BlankNode3;
|
|
13428
13458
|
}(Node2);
|
|
13429
13459
|
_defineProperty(BlankNode, "nextId", 0);
|
|
13430
13460
|
_defineProperty(BlankNode, "NTAnonymousNodePrefix", "_:");
|
|
@@ -13438,43 +13468,26 @@ function termValue(node) {
|
|
|
13438
13468
|
}
|
|
13439
13469
|
|
|
13440
13470
|
// ../node_modules/rdflib/esm/named-node.js
|
|
13441
|
-
function
|
|
13442
|
-
|
|
13443
|
-
return function _createSuperInternal() {
|
|
13444
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
13445
|
-
if (hasNativeReflectConstruct) {
|
|
13446
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
13447
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
13448
|
-
} else {
|
|
13449
|
-
result = Super.apply(this, arguments);
|
|
13450
|
-
}
|
|
13451
|
-
return _possibleConstructorReturn(this, result);
|
|
13452
|
-
};
|
|
13471
|
+
function _callSuper2(t, o, e) {
|
|
13472
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
13453
13473
|
}
|
|
13454
13474
|
function _isNativeReflectConstruct2() {
|
|
13455
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
13456
|
-
return false;
|
|
13457
|
-
if (Reflect.construct.sham)
|
|
13458
|
-
return false;
|
|
13459
|
-
if (typeof Proxy === "function")
|
|
13460
|
-
return true;
|
|
13461
13475
|
try {
|
|
13462
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13476
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13463
13477
|
}));
|
|
13464
|
-
|
|
13465
|
-
} catch (e) {
|
|
13466
|
-
return false;
|
|
13478
|
+
} catch (t2) {
|
|
13467
13479
|
}
|
|
13480
|
+
return (_isNativeReflectConstruct2 = function _isNativeReflectConstruct10() {
|
|
13481
|
+
return !!t;
|
|
13482
|
+
})();
|
|
13468
13483
|
}
|
|
13469
13484
|
var NamedNode = /* @__PURE__ */ function(_Node) {
|
|
13470
|
-
_inherits(NamedNode3, _Node);
|
|
13471
|
-
var _super = _createSuper2(NamedNode3);
|
|
13472
13485
|
function NamedNode3(iri) {
|
|
13473
13486
|
var _this;
|
|
13474
13487
|
_classCallCheck(this, NamedNode3);
|
|
13475
|
-
_this =
|
|
13476
|
-
_defineProperty(
|
|
13477
|
-
_defineProperty(
|
|
13488
|
+
_this = _callSuper2(this, NamedNode3, [termValue(iri)]);
|
|
13489
|
+
_defineProperty(_this, "termType", NamedNodeTermType);
|
|
13490
|
+
_defineProperty(_this, "classOrder", class_order_default.NamedNode);
|
|
13478
13491
|
if (!_this.value) {
|
|
13479
13492
|
throw new Error("Missing IRI for NamedNode");
|
|
13480
13493
|
}
|
|
@@ -13487,7 +13500,8 @@ var NamedNode = /* @__PURE__ */ function(_Node) {
|
|
|
13487
13500
|
}
|
|
13488
13501
|
return _this;
|
|
13489
13502
|
}
|
|
13490
|
-
|
|
13503
|
+
_inherits(NamedNode3, _Node);
|
|
13504
|
+
return _createClass(NamedNode3, [{
|
|
13491
13505
|
key: "dir",
|
|
13492
13506
|
value: function dir() {
|
|
13493
13507
|
var str = this.value.split("#")[0];
|
|
@@ -13567,7 +13581,6 @@ var NamedNode = /* @__PURE__ */ function(_Node) {
|
|
|
13567
13581
|
return new NamedNode3(value);
|
|
13568
13582
|
}
|
|
13569
13583
|
}]);
|
|
13570
|
-
return NamedNode3;
|
|
13571
13584
|
}(Node2);
|
|
13572
13585
|
|
|
13573
13586
|
// ../node_modules/rdflib/esm/xsd-internal.js
|
|
@@ -13582,46 +13595,29 @@ var xsd_internal_default = {
|
|
|
13582
13595
|
};
|
|
13583
13596
|
|
|
13584
13597
|
// ../node_modules/rdflib/esm/literal.js
|
|
13585
|
-
function
|
|
13586
|
-
|
|
13587
|
-
return function _createSuperInternal() {
|
|
13588
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
13589
|
-
if (hasNativeReflectConstruct) {
|
|
13590
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
13591
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
13592
|
-
} else {
|
|
13593
|
-
result = Super.apply(this, arguments);
|
|
13594
|
-
}
|
|
13595
|
-
return _possibleConstructorReturn(this, result);
|
|
13596
|
-
};
|
|
13598
|
+
function _callSuper3(t, o, e) {
|
|
13599
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
13597
13600
|
}
|
|
13598
13601
|
function _isNativeReflectConstruct3() {
|
|
13599
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
13600
|
-
return false;
|
|
13601
|
-
if (Reflect.construct.sham)
|
|
13602
|
-
return false;
|
|
13603
|
-
if (typeof Proxy === "function")
|
|
13604
|
-
return true;
|
|
13605
13602
|
try {
|
|
13606
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13603
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13607
13604
|
}));
|
|
13608
|
-
|
|
13609
|
-
} catch (e) {
|
|
13610
|
-
return false;
|
|
13605
|
+
} catch (t2) {
|
|
13611
13606
|
}
|
|
13607
|
+
return (_isNativeReflectConstruct3 = function _isNativeReflectConstruct10() {
|
|
13608
|
+
return !!t;
|
|
13609
|
+
})();
|
|
13612
13610
|
}
|
|
13613
13611
|
var Literal = /* @__PURE__ */ function(_Node) {
|
|
13614
|
-
_inherits(Literal3, _Node);
|
|
13615
|
-
var _super = _createSuper3(Literal3);
|
|
13616
13612
|
function Literal3(value, language, datatype) {
|
|
13617
13613
|
var _this;
|
|
13618
13614
|
_classCallCheck(this, Literal3);
|
|
13619
|
-
_this =
|
|
13620
|
-
_defineProperty(
|
|
13621
|
-
_defineProperty(
|
|
13622
|
-
_defineProperty(
|
|
13623
|
-
_defineProperty(
|
|
13624
|
-
_defineProperty(
|
|
13615
|
+
_this = _callSuper3(this, Literal3, [value]);
|
|
13616
|
+
_defineProperty(_this, "termType", LiteralTermType);
|
|
13617
|
+
_defineProperty(_this, "classOrder", class_order_default.Literal);
|
|
13618
|
+
_defineProperty(_this, "datatype", xsd_internal_default.string);
|
|
13619
|
+
_defineProperty(_this, "isVar", 0);
|
|
13620
|
+
_defineProperty(_this, "language", "");
|
|
13625
13621
|
if (language) {
|
|
13626
13622
|
_this.language = language;
|
|
13627
13623
|
_this.datatype = xsd_internal_default.langString;
|
|
@@ -13632,7 +13628,8 @@ var Literal = /* @__PURE__ */ function(_Node) {
|
|
|
13632
13628
|
}
|
|
13633
13629
|
return _this;
|
|
13634
13630
|
}
|
|
13635
|
-
|
|
13631
|
+
_inherits(Literal3, _Node);
|
|
13632
|
+
return _createClass(Literal3, [{
|
|
13636
13633
|
key: "copy",
|
|
13637
13634
|
value: function copy() {
|
|
13638
13635
|
return new Literal3(this.value, this.lang, this.datatype);
|
|
@@ -13763,7 +13760,6 @@ var Literal = /* @__PURE__ */ function(_Node) {
|
|
|
13763
13760
|
throw new Error("Can't make literal from " + value + " of type " + _typeof(value));
|
|
13764
13761
|
}
|
|
13765
13762
|
}]);
|
|
13766
|
-
return Literal3;
|
|
13767
13763
|
}(Node2);
|
|
13768
13764
|
|
|
13769
13765
|
// ../node_modules/rdflib/esm/utils/default-graph-uri.js
|
|
@@ -13771,47 +13767,31 @@ var defaultGraphURI = "chrome:theSession";
|
|
|
13771
13767
|
var defaultGraphNode = new NamedNode(defaultGraphURI);
|
|
13772
13768
|
|
|
13773
13769
|
// ../node_modules/rdflib/esm/default-graph.js
|
|
13774
|
-
function
|
|
13775
|
-
|
|
13776
|
-
return function _createSuperInternal() {
|
|
13777
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
13778
|
-
if (hasNativeReflectConstruct) {
|
|
13779
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
13780
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
13781
|
-
} else {
|
|
13782
|
-
result = Super.apply(this, arguments);
|
|
13783
|
-
}
|
|
13784
|
-
return _possibleConstructorReturn(this, result);
|
|
13785
|
-
};
|
|
13770
|
+
function _callSuper4(t, o, e) {
|
|
13771
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
13786
13772
|
}
|
|
13787
13773
|
function _isNativeReflectConstruct4() {
|
|
13788
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
13789
|
-
return false;
|
|
13790
|
-
if (Reflect.construct.sham)
|
|
13791
|
-
return false;
|
|
13792
|
-
if (typeof Proxy === "function")
|
|
13793
|
-
return true;
|
|
13794
13774
|
try {
|
|
13795
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13775
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
13796
13776
|
}));
|
|
13797
|
-
|
|
13798
|
-
} catch (e) {
|
|
13799
|
-
return false;
|
|
13777
|
+
} catch (t2) {
|
|
13800
13778
|
}
|
|
13779
|
+
return (_isNativeReflectConstruct4 = function _isNativeReflectConstruct10() {
|
|
13780
|
+
return !!t;
|
|
13781
|
+
})();
|
|
13801
13782
|
}
|
|
13802
13783
|
var DefaultGraph = /* @__PURE__ */ function(_Node) {
|
|
13803
|
-
_inherits(DefaultGraph3, _Node);
|
|
13804
|
-
var _super = _createSuper4(DefaultGraph3);
|
|
13805
13784
|
function DefaultGraph3() {
|
|
13806
13785
|
var _this;
|
|
13807
13786
|
_classCallCheck(this, DefaultGraph3);
|
|
13808
|
-
_this =
|
|
13809
|
-
_defineProperty(
|
|
13810
|
-
_defineProperty(
|
|
13811
|
-
_defineProperty(
|
|
13787
|
+
_this = _callSuper4(this, DefaultGraph3, [""]);
|
|
13788
|
+
_defineProperty(_this, "value", "");
|
|
13789
|
+
_defineProperty(_this, "termType", DefaultGraphTermType);
|
|
13790
|
+
_defineProperty(_this, "uri", defaultGraphURI);
|
|
13812
13791
|
return _this;
|
|
13813
13792
|
}
|
|
13814
|
-
|
|
13793
|
+
_inherits(DefaultGraph3, _Node);
|
|
13794
|
+
return _createClass(DefaultGraph3, [{
|
|
13815
13795
|
key: "toCanonical",
|
|
13816
13796
|
value: function toCanonical() {
|
|
13817
13797
|
return this.value;
|
|
@@ -13822,7 +13802,6 @@ var DefaultGraph = /* @__PURE__ */ function(_Node) {
|
|
|
13822
13802
|
return "DefaultGraph";
|
|
13823
13803
|
}
|
|
13824
13804
|
}]);
|
|
13825
|
-
return DefaultGraph3;
|
|
13826
13805
|
}(Node2);
|
|
13827
13806
|
function isDefaultGraph(object) {
|
|
13828
13807
|
return !!object && object.termType === DefaultGraphTermType;
|
|
@@ -13842,7 +13821,7 @@ var Statement = /* @__PURE__ */ function() {
|
|
|
13842
13821
|
this.object = Node2.fromValue(object);
|
|
13843
13822
|
this.graph = graph3 == void 0 ? defaultGraph : Node2.fromValue(graph3);
|
|
13844
13823
|
}
|
|
13845
|
-
_createClass(Statement2, [{
|
|
13824
|
+
return _createClass(Statement2, [{
|
|
13846
13825
|
key: "why",
|
|
13847
13826
|
get: function get() {
|
|
13848
13827
|
return this.graph;
|
|
@@ -13898,7 +13877,6 @@ var Statement = /* @__PURE__ */ function() {
|
|
|
13898
13877
|
return this.toNT();
|
|
13899
13878
|
}
|
|
13900
13879
|
}]);
|
|
13901
|
-
return Statement2;
|
|
13902
13880
|
}();
|
|
13903
13881
|
|
|
13904
13882
|
// ../node_modules/rdflib/esm/uri.js
|
|
@@ -14071,52 +14049,36 @@ function refTo(base, uri) {
|
|
|
14071
14049
|
}
|
|
14072
14050
|
|
|
14073
14051
|
// ../node_modules/rdflib/esm/variable.js
|
|
14074
|
-
function
|
|
14075
|
-
|
|
14076
|
-
return function _createSuperInternal() {
|
|
14077
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
14078
|
-
if (hasNativeReflectConstruct) {
|
|
14079
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
14080
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
14081
|
-
} else {
|
|
14082
|
-
result = Super.apply(this, arguments);
|
|
14083
|
-
}
|
|
14084
|
-
return _possibleConstructorReturn(this, result);
|
|
14085
|
-
};
|
|
14052
|
+
function _callSuper5(t, o, e) {
|
|
14053
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
14086
14054
|
}
|
|
14087
14055
|
function _isNativeReflectConstruct5() {
|
|
14088
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
14089
|
-
return false;
|
|
14090
|
-
if (Reflect.construct.sham)
|
|
14091
|
-
return false;
|
|
14092
|
-
if (typeof Proxy === "function")
|
|
14093
|
-
return true;
|
|
14094
14056
|
try {
|
|
14095
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14057
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14096
14058
|
}));
|
|
14097
|
-
|
|
14098
|
-
} catch (e) {
|
|
14099
|
-
return false;
|
|
14059
|
+
} catch (t2) {
|
|
14100
14060
|
}
|
|
14061
|
+
return (_isNativeReflectConstruct5 = function _isNativeReflectConstruct10() {
|
|
14062
|
+
return !!t;
|
|
14063
|
+
})();
|
|
14101
14064
|
}
|
|
14102
14065
|
var Variable = /* @__PURE__ */ function(_Node) {
|
|
14103
|
-
_inherits(Variable3, _Node);
|
|
14104
|
-
var _super = _createSuper5(Variable3);
|
|
14105
14066
|
function Variable3() {
|
|
14106
14067
|
var _this;
|
|
14107
14068
|
var name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
14108
14069
|
_classCallCheck(this, Variable3);
|
|
14109
|
-
_this =
|
|
14110
|
-
_defineProperty(
|
|
14111
|
-
_defineProperty(
|
|
14112
|
-
_defineProperty(
|
|
14113
|
-
_defineProperty(
|
|
14114
|
-
_defineProperty(
|
|
14070
|
+
_this = _callSuper5(this, Variable3, [name]);
|
|
14071
|
+
_defineProperty(_this, "termType", VariableTermType);
|
|
14072
|
+
_defineProperty(_this, "base", "varid:");
|
|
14073
|
+
_defineProperty(_this, "classOrder", class_order_default.Variable);
|
|
14074
|
+
_defineProperty(_this, "isVar", 1);
|
|
14075
|
+
_defineProperty(_this, "uri", void 0);
|
|
14115
14076
|
_this.base = "varid:";
|
|
14116
14077
|
_this.uri = join(name, _this.base);
|
|
14117
14078
|
return _this;
|
|
14118
14079
|
}
|
|
14119
|
-
|
|
14080
|
+
_inherits(Variable3, _Node);
|
|
14081
|
+
return _createClass(Variable3, [{
|
|
14120
14082
|
key: "equals",
|
|
14121
14083
|
value: function equals2(other) {
|
|
14122
14084
|
if (!other) {
|
|
@@ -14149,7 +14111,6 @@ var Variable = /* @__PURE__ */ function(_Node) {
|
|
|
14149
14111
|
return "?".concat(variable4.uri);
|
|
14150
14112
|
}
|
|
14151
14113
|
}]);
|
|
14152
|
-
return Variable3;
|
|
14153
14114
|
}(Node2);
|
|
14154
14115
|
|
|
14155
14116
|
// ../node_modules/rdflib/esm/factories/factory-types.js
|
|
@@ -14165,10 +14126,9 @@ var Feature = /* @__PURE__ */ function(Feature2) {
|
|
|
14165
14126
|
}({});
|
|
14166
14127
|
|
|
14167
14128
|
// ../node_modules/rdflib/esm/factories/canonical-data-factory.js
|
|
14168
|
-
var _supports;
|
|
14169
14129
|
var _defaultGraph = new DefaultGraph();
|
|
14170
14130
|
var CanonicalDataFactory = {
|
|
14171
|
-
supports: (
|
|
14131
|
+
supports: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Feature.collections, false), Feature.defaultGraphType, false), Feature.equalsMethod, true), Feature.identity, false), Feature.id, true), Feature.reversibleId, false), Feature.variableType, true),
|
|
14172
14132
|
/**
|
|
14173
14133
|
* Creates a new blank node
|
|
14174
14134
|
* @param value - The blank node's identifier
|
|
@@ -14319,33 +14279,18 @@ var CanonicalDataFactory = {
|
|
|
14319
14279
|
var canonical_data_factory_default = CanonicalDataFactory;
|
|
14320
14280
|
|
|
14321
14281
|
// ../node_modules/rdflib/esm/collection.js
|
|
14322
|
-
function
|
|
14323
|
-
|
|
14324
|
-
return function _createSuperInternal() {
|
|
14325
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
14326
|
-
if (hasNativeReflectConstruct) {
|
|
14327
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
14328
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
14329
|
-
} else {
|
|
14330
|
-
result = Super.apply(this, arguments);
|
|
14331
|
-
}
|
|
14332
|
-
return _possibleConstructorReturn(this, result);
|
|
14333
|
-
};
|
|
14282
|
+
function _callSuper6(t, o, e) {
|
|
14283
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
14334
14284
|
}
|
|
14335
14285
|
function _isNativeReflectConstruct6() {
|
|
14336
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
14337
|
-
return false;
|
|
14338
|
-
if (Reflect.construct.sham)
|
|
14339
|
-
return false;
|
|
14340
|
-
if (typeof Proxy === "function")
|
|
14341
|
-
return true;
|
|
14342
14286
|
try {
|
|
14343
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14287
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14344
14288
|
}));
|
|
14345
|
-
|
|
14346
|
-
} catch (e) {
|
|
14347
|
-
return false;
|
|
14289
|
+
} catch (t2) {
|
|
14348
14290
|
}
|
|
14291
|
+
return (_isNativeReflectConstruct6 = function _isNativeReflectConstruct10() {
|
|
14292
|
+
return !!t;
|
|
14293
|
+
})();
|
|
14349
14294
|
}
|
|
14350
14295
|
function fromValue(value) {
|
|
14351
14296
|
if (typeof value === "undefined" || value === null) {
|
|
@@ -14360,18 +14305,16 @@ function fromValue(value) {
|
|
|
14360
14305
|
return Literal.fromValue(value);
|
|
14361
14306
|
}
|
|
14362
14307
|
var Collection = /* @__PURE__ */ function(_Node) {
|
|
14363
|
-
_inherits(Collection2, _Node);
|
|
14364
|
-
var _super = _createSuper6(Collection2);
|
|
14365
14308
|
function Collection2(initial) {
|
|
14366
14309
|
var _this;
|
|
14367
14310
|
_classCallCheck(this, Collection2);
|
|
14368
|
-
_this =
|
|
14369
|
-
_defineProperty(
|
|
14370
|
-
_defineProperty(
|
|
14371
|
-
_defineProperty(
|
|
14372
|
-
_defineProperty(
|
|
14373
|
-
_defineProperty(
|
|
14374
|
-
_defineProperty(
|
|
14311
|
+
_this = _callSuper6(this, Collection2, [(BlankNode.nextId++).toString()]);
|
|
14312
|
+
_defineProperty(_this, "termType", CollectionTermType);
|
|
14313
|
+
_defineProperty(_this, "classOrder", class_order_default.Collection);
|
|
14314
|
+
_defineProperty(_this, "closed", false);
|
|
14315
|
+
_defineProperty(_this, "compareTerm", BlankNode.prototype.compareTerm);
|
|
14316
|
+
_defineProperty(_this, "elements", []);
|
|
14317
|
+
_defineProperty(_this, "isVar", 0);
|
|
14375
14318
|
if (initial && initial.length > 0) {
|
|
14376
14319
|
initial.forEach(function(element) {
|
|
14377
14320
|
_this.elements.push(fromValue(element));
|
|
@@ -14379,7 +14322,8 @@ var Collection = /* @__PURE__ */ function(_Node) {
|
|
|
14379
14322
|
}
|
|
14380
14323
|
return _this;
|
|
14381
14324
|
}
|
|
14382
|
-
|
|
14325
|
+
_inherits(Collection2, _Node);
|
|
14326
|
+
return _createClass(Collection2, [{
|
|
14383
14327
|
key: "id",
|
|
14384
14328
|
get: function get() {
|
|
14385
14329
|
return this.value;
|
|
@@ -14456,7 +14400,6 @@ var Collection = /* @__PURE__ */ function(_Node) {
|
|
|
14456
14400
|
return BlankNode.NTAnonymousNodePrefix + collection2.id;
|
|
14457
14401
|
}
|
|
14458
14402
|
}]);
|
|
14459
|
-
return Collection2;
|
|
14460
14403
|
}(Node2);
|
|
14461
14404
|
_defineProperty(Collection, "termType", CollectionTermType);
|
|
14462
14405
|
|
|
@@ -14746,7 +14689,7 @@ var Serializer = /* @__PURE__ */ function() {
|
|
|
14746
14689
|
this.rdfFactory = store.rdfFactory || canonical_data_factory_default;
|
|
14747
14690
|
this.xsd = createXSD(this.rdfFactory);
|
|
14748
14691
|
}
|
|
14749
|
-
_createClass(Serializer2, [{
|
|
14692
|
+
return _createClass(Serializer2, [{
|
|
14750
14693
|
key: "setBase",
|
|
14751
14694
|
value: function setBase(base) {
|
|
14752
14695
|
this.base = base;
|
|
@@ -15615,7 +15558,6 @@ var Serializer = /* @__PURE__ */ function() {
|
|
|
15615
15558
|
return JSON.stringify(jsonldObj, null, 2);
|
|
15616
15559
|
}
|
|
15617
15560
|
}]);
|
|
15618
|
-
return Serializer2;
|
|
15619
15561
|
}();
|
|
15620
15562
|
function hexify(str) {
|
|
15621
15563
|
return encodeURI(str);
|
|
@@ -15794,37 +15736,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
15794
15736
|
arr2[i] = arr[i];
|
|
15795
15737
|
return arr2;
|
|
15796
15738
|
}
|
|
15797
|
-
function
|
|
15798
|
-
|
|
15799
|
-
return function _createSuperInternal() {
|
|
15800
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
15801
|
-
if (hasNativeReflectConstruct) {
|
|
15802
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
15803
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
15804
|
-
} else {
|
|
15805
|
-
result = Super.apply(this, arguments);
|
|
15806
|
-
}
|
|
15807
|
-
return _possibleConstructorReturn(this, result);
|
|
15808
|
-
};
|
|
15739
|
+
function _callSuper7(t, o, e) {
|
|
15740
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
15809
15741
|
}
|
|
15810
15742
|
function _isNativeReflectConstruct7() {
|
|
15811
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
15812
|
-
return false;
|
|
15813
|
-
if (Reflect.construct.sham)
|
|
15814
|
-
return false;
|
|
15815
|
-
if (typeof Proxy === "function")
|
|
15816
|
-
return true;
|
|
15817
15743
|
try {
|
|
15818
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
15744
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
15819
15745
|
}));
|
|
15820
|
-
|
|
15821
|
-
} catch (e) {
|
|
15822
|
-
return false;
|
|
15746
|
+
} catch (t2) {
|
|
15823
15747
|
}
|
|
15748
|
+
return (_isNativeReflectConstruct7 = function _isNativeReflectConstruct10() {
|
|
15749
|
+
return !!t;
|
|
15750
|
+
})();
|
|
15824
15751
|
}
|
|
15825
15752
|
var Formula = /* @__PURE__ */ function(_Node) {
|
|
15826
|
-
_inherits(Formula2, _Node);
|
|
15827
|
-
var _super = _createSuper7(Formula2);
|
|
15828
15753
|
function Formula2() {
|
|
15829
15754
|
var _this;
|
|
15830
15755
|
var statements = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
@@ -15833,17 +15758,17 @@ var Formula = /* @__PURE__ */ function(_Node) {
|
|
|
15833
15758
|
var optional = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : [];
|
|
15834
15759
|
var opts = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {};
|
|
15835
15760
|
_classCallCheck(this, Formula2);
|
|
15836
|
-
_this =
|
|
15761
|
+
_this = _callSuper7(this, Formula2, [""]);
|
|
15837
15762
|
_this.statements = statements;
|
|
15838
15763
|
_this.constraints = constraints;
|
|
15839
15764
|
_this.initBindings = initBindings;
|
|
15840
15765
|
_this.optional = optional;
|
|
15841
|
-
_defineProperty(
|
|
15842
|
-
_defineProperty(
|
|
15843
|
-
_defineProperty(
|
|
15844
|
-
_defineProperty(
|
|
15845
|
-
_defineProperty(
|
|
15846
|
-
_defineProperty(
|
|
15766
|
+
_defineProperty(_this, "termType", GraphTermType);
|
|
15767
|
+
_defineProperty(_this, "classOrder", class_order_default.Graph);
|
|
15768
|
+
_defineProperty(_this, "fetcher", void 0);
|
|
15769
|
+
_defineProperty(_this, "isVar", 0);
|
|
15770
|
+
_defineProperty(_this, "ns", Namespace);
|
|
15771
|
+
_defineProperty(_this, "rdfFactory", void 0);
|
|
15847
15772
|
_this.rdfFactory = opts && opts.rdfFactory || canonical_data_factory_default;
|
|
15848
15773
|
var _iterator = _createForOfIteratorHelper(appliedFactoryMethods), _step;
|
|
15849
15774
|
try {
|
|
@@ -15864,7 +15789,8 @@ var Formula = /* @__PURE__ */ function(_Node) {
|
|
|
15864
15789
|
}
|
|
15865
15790
|
return _this;
|
|
15866
15791
|
}
|
|
15867
|
-
|
|
15792
|
+
_inherits(Formula2, _Node);
|
|
15793
|
+
return _createClass(Formula2, [{
|
|
15868
15794
|
key: "add",
|
|
15869
15795
|
value: function add(subject, predicate, object, graph3) {
|
|
15870
15796
|
var _this2 = this;
|
|
@@ -16591,7 +16517,6 @@ var Formula = /* @__PURE__ */ function(_Node) {
|
|
|
16591
16517
|
return this.statementsMatching(s, p, o, g, false).length;
|
|
16592
16518
|
}
|
|
16593
16519
|
}]);
|
|
16594
|
-
return Formula2;
|
|
16595
16520
|
}(Node2);
|
|
16596
16521
|
|
|
16597
16522
|
// ../node_modules/rdflib/esm/node.js
|
|
@@ -17377,7 +17302,7 @@ var SinkParser = /* @__PURE__ */ function() {
|
|
|
17377
17302
|
this._context = this._formula;
|
|
17378
17303
|
this._parentContext = null;
|
|
17379
17304
|
}
|
|
17380
|
-
_createClass(SinkParser2, [{
|
|
17305
|
+
return _createClass(SinkParser2, [{
|
|
17381
17306
|
key: "here",
|
|
17382
17307
|
value: function here(i) {
|
|
17383
17308
|
return this._genPrefix + "_L" + this.lines + "C" + (i - this.startOfLine + 1);
|
|
@@ -18503,7 +18428,6 @@ var SinkParser = /* @__PURE__ */ function() {
|
|
|
18503
18428
|
return new pyjslib_Tuple([j, uch]);
|
|
18504
18429
|
}
|
|
18505
18430
|
}]);
|
|
18506
|
-
return SinkParser2;
|
|
18507
18431
|
}();
|
|
18508
18432
|
function __OLD_BadSyntax(uri, lines, str, i, why) {
|
|
18509
18433
|
this._str = str.encode("utf-8");
|
|
@@ -18541,30 +18465,29 @@ function BadSyntax(uri, lines, str, i, why) {
|
|
|
18541
18465
|
}
|
|
18542
18466
|
|
|
18543
18467
|
// ../node_modules/rdflib/esm/factories/extended-term-factory.js
|
|
18544
|
-
|
|
18545
|
-
|
|
18546
|
-
var keys = Object.keys(object);
|
|
18468
|
+
function ownKeys(e, r) {
|
|
18469
|
+
var t = Object.keys(e);
|
|
18547
18470
|
if (Object.getOwnPropertySymbols) {
|
|
18548
|
-
var
|
|
18549
|
-
|
|
18550
|
-
return Object.getOwnPropertyDescriptor(
|
|
18551
|
-
})),
|
|
18471
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
18472
|
+
r && (o = o.filter(function(r2) {
|
|
18473
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
18474
|
+
})), t.push.apply(t, o);
|
|
18552
18475
|
}
|
|
18553
|
-
return
|
|
18476
|
+
return t;
|
|
18554
18477
|
}
|
|
18555
|
-
function _objectSpread(
|
|
18556
|
-
for (var
|
|
18557
|
-
var
|
|
18558
|
-
|
|
18559
|
-
_defineProperty(
|
|
18560
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
18561
|
-
Object.defineProperty(
|
|
18478
|
+
function _objectSpread(e) {
|
|
18479
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
18480
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
18481
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
18482
|
+
_defineProperty(e, r2, t[r2]);
|
|
18483
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
18484
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
18562
18485
|
});
|
|
18563
18486
|
}
|
|
18564
|
-
return
|
|
18487
|
+
return e;
|
|
18565
18488
|
}
|
|
18566
18489
|
var ExtendedTermFactory = _objectSpread(_objectSpread({}, canonical_data_factory_default), {}, {
|
|
18567
|
-
supports: (
|
|
18490
|
+
supports: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Feature.collections, true), Feature.defaultGraphType, false), Feature.equalsMethod, true), Feature.identity, false), Feature.id, true), Feature.reversibleId, false), Feature.variableType, true),
|
|
18568
18491
|
/**
|
|
18569
18492
|
* Creates a new collection
|
|
18570
18493
|
* @param elements - The initial element
|
|
@@ -18691,6 +18614,9 @@ function createStatement(kb, id3, property, value, base) {
|
|
|
18691
18614
|
return kb.rdfFactory.quad(id3, predicate, object, kb.rdfFactory.namedNode(base));
|
|
18692
18615
|
}
|
|
18693
18616
|
|
|
18617
|
+
// ../node_modules/n3/src/N3Lexer.js
|
|
18618
|
+
var import_queue_microtask = __toESM(require_queue_microtask());
|
|
18619
|
+
|
|
18694
18620
|
// ../node_modules/n3/src/IRIs.js
|
|
18695
18621
|
var RDF2 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
|
|
18696
18622
|
var XSD = "http://www.w3.org/2001/XMLSchema#";
|
|
@@ -18723,7 +18649,6 @@ var IRIs_default = {
|
|
|
18723
18649
|
};
|
|
18724
18650
|
|
|
18725
18651
|
// ../node_modules/n3/src/N3Lexer.js
|
|
18726
|
-
var import_queue_microtask = __toESM(require_queue_microtask());
|
|
18727
18652
|
var { xsd } = IRIs_default;
|
|
18728
18653
|
var escapeSequence = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g;
|
|
18729
18654
|
var escapeReplacements = {
|
|
@@ -20272,7 +20197,7 @@ var RDFaProcessor = /* @__PURE__ */ function() {
|
|
|
20272
20197
|
this.finishedHandlers = [];
|
|
20273
20198
|
this.init();
|
|
20274
20199
|
}
|
|
20275
|
-
_createClass(RDFaProcessor2, [{
|
|
20200
|
+
return _createClass(RDFaProcessor2, [{
|
|
20276
20201
|
key: "addTriple",
|
|
20277
20202
|
value: function addTriple(origin, subject, predicate, object) {
|
|
20278
20203
|
var su, ob, pr, or;
|
|
@@ -21148,7 +21073,6 @@ var RDFaProcessor = /* @__PURE__ */ function() {
|
|
|
21148
21073
|
return str.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
21149
21074
|
}
|
|
21150
21075
|
}]);
|
|
21151
|
-
return RDFaProcessor2;
|
|
21152
21076
|
}();
|
|
21153
21077
|
RDFaProcessor.XMLLiteralURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral";
|
|
21154
21078
|
RDFaProcessor.HTMLLiteralURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML";
|
|
@@ -21188,7 +21112,7 @@ var RDFParser = /* @__PURE__ */ function() {
|
|
|
21188
21112
|
this.why = null;
|
|
21189
21113
|
this.reify = false;
|
|
21190
21114
|
}
|
|
21191
|
-
_createClass(RDFParser2, [{
|
|
21115
|
+
return _createClass(RDFParser2, [{
|
|
21192
21116
|
key: "frameFactory",
|
|
21193
21117
|
value: (
|
|
21194
21118
|
/**
|
|
@@ -21454,7 +21378,7 @@ var RDFParser = /* @__PURE__ */ function() {
|
|
|
21454
21378
|
if (nv === "Literal") {
|
|
21455
21379
|
frame.datatype = RDFParser2.ns.RDF + "XMLLiteral";
|
|
21456
21380
|
frame = this.buildFrame(frame);
|
|
21457
|
-
frame.addLiteral(dom.childNodes);
|
|
21381
|
+
frame.addLiteral(dom.innerHTML || dom.childNodes);
|
|
21458
21382
|
dig = false;
|
|
21459
21383
|
} else if (nv === "Resource") {
|
|
21460
21384
|
frame = this.buildFrame(frame, frame.element);
|
|
@@ -21571,7 +21495,6 @@ var RDFParser = /* @__PURE__ */ function() {
|
|
|
21571
21495
|
return frame;
|
|
21572
21496
|
}
|
|
21573
21497
|
}]);
|
|
21574
|
-
return RDFParser2;
|
|
21575
21498
|
}();
|
|
21576
21499
|
_defineProperty(RDFParser, "ns", {
|
|
21577
21500
|
"RDF": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
|
@@ -21815,33 +21738,18 @@ function _arrayLikeToArray3(arr, len) {
|
|
|
21815
21738
|
arr2[i] = arr[i];
|
|
21816
21739
|
return arr2;
|
|
21817
21740
|
}
|
|
21818
|
-
function
|
|
21819
|
-
|
|
21820
|
-
return function _createSuperInternal() {
|
|
21821
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
21822
|
-
if (hasNativeReflectConstruct) {
|
|
21823
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
21824
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
21825
|
-
} else {
|
|
21826
|
-
result = Super.apply(this, arguments);
|
|
21827
|
-
}
|
|
21828
|
-
return _possibleConstructorReturn(this, result);
|
|
21829
|
-
};
|
|
21741
|
+
function _callSuper8(t, o, e) {
|
|
21742
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct8() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
21830
21743
|
}
|
|
21831
21744
|
function _isNativeReflectConstruct8() {
|
|
21832
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
21833
|
-
return false;
|
|
21834
|
-
if (Reflect.construct.sham)
|
|
21835
|
-
return false;
|
|
21836
|
-
if (typeof Proxy === "function")
|
|
21837
|
-
return true;
|
|
21838
21745
|
try {
|
|
21839
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
21746
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
21840
21747
|
}));
|
|
21841
|
-
|
|
21842
|
-
} catch (e) {
|
|
21843
|
-
return false;
|
|
21748
|
+
} catch (t2) {
|
|
21844
21749
|
}
|
|
21750
|
+
return (_isNativeReflectConstruct8 = function _isNativeReflectConstruct10() {
|
|
21751
|
+
return !!t;
|
|
21752
|
+
})();
|
|
21845
21753
|
}
|
|
21846
21754
|
var Parsable = {
|
|
21847
21755
|
"text/n3": true,
|
|
@@ -21882,14 +21790,13 @@ var Handler = /* @__PURE__ */ _createClass(function Handler2(response, dom) {
|
|
|
21882
21790
|
this.dom = dom;
|
|
21883
21791
|
});
|
|
21884
21792
|
_defineProperty(Handler, "pattern", void 0);
|
|
21885
|
-
var RDFXMLHandler = /* @__PURE__ */ function(
|
|
21886
|
-
_inherits(RDFXMLHandler2, _Handler);
|
|
21887
|
-
var _super = _createSuper8(RDFXMLHandler2);
|
|
21793
|
+
var RDFXMLHandler = /* @__PURE__ */ function(_Handler2) {
|
|
21888
21794
|
function RDFXMLHandler2() {
|
|
21889
21795
|
_classCallCheck(this, RDFXMLHandler2);
|
|
21890
|
-
return
|
|
21796
|
+
return _callSuper8(this, RDFXMLHandler2, arguments);
|
|
21891
21797
|
}
|
|
21892
|
-
|
|
21798
|
+
_inherits(RDFXMLHandler2, _Handler2);
|
|
21799
|
+
return _createClass(RDFXMLHandler2, [{
|
|
21893
21800
|
key: "parse",
|
|
21894
21801
|
value: function parse3(fetcher3, responseText, options) {
|
|
21895
21802
|
var kb = fetcher3.store;
|
|
@@ -21924,17 +21831,15 @@ var RDFXMLHandler = /* @__PURE__ */ function(_Handler) {
|
|
|
21924
21831
|
};
|
|
21925
21832
|
}
|
|
21926
21833
|
}]);
|
|
21927
|
-
return RDFXMLHandler2;
|
|
21928
21834
|
}(Handler);
|
|
21929
21835
|
RDFXMLHandler.pattern = new RegExp("application/rdf\\+xml");
|
|
21930
|
-
var XHTMLHandler = /* @__PURE__ */ function(
|
|
21931
|
-
_inherits(XHTMLHandler2, _Handler2);
|
|
21932
|
-
var _super2 = _createSuper8(XHTMLHandler2);
|
|
21836
|
+
var XHTMLHandler = /* @__PURE__ */ function(_Handler3) {
|
|
21933
21837
|
function XHTMLHandler2() {
|
|
21934
21838
|
_classCallCheck(this, XHTMLHandler2);
|
|
21935
|
-
return
|
|
21839
|
+
return _callSuper8(this, XHTMLHandler2, arguments);
|
|
21936
21840
|
}
|
|
21937
|
-
|
|
21841
|
+
_inherits(XHTMLHandler2, _Handler3);
|
|
21842
|
+
return _createClass(XHTMLHandler2, [{
|
|
21938
21843
|
key: "parse",
|
|
21939
21844
|
value: function parse3(fetcher3, responseText, options) {
|
|
21940
21845
|
var relation, reverse;
|
|
@@ -21990,17 +21895,15 @@ var XHTMLHandler = /* @__PURE__ */ function(_Handler2) {
|
|
|
21990
21895
|
fetcher3.mediatypes[XHTMLContentType] = {};
|
|
21991
21896
|
}
|
|
21992
21897
|
}]);
|
|
21993
|
-
return XHTMLHandler2;
|
|
21994
21898
|
}(Handler);
|
|
21995
21899
|
XHTMLHandler.pattern = new RegExp("application/xhtml");
|
|
21996
|
-
var XMLHandler = /* @__PURE__ */ function(
|
|
21997
|
-
_inherits(XMLHandler2, _Handler3);
|
|
21998
|
-
var _super3 = _createSuper8(XMLHandler2);
|
|
21900
|
+
var XMLHandler = /* @__PURE__ */ function(_Handler4) {
|
|
21999
21901
|
function XMLHandler2() {
|
|
22000
21902
|
_classCallCheck(this, XMLHandler2);
|
|
22001
|
-
return
|
|
21903
|
+
return _callSuper8(this, XMLHandler2, arguments);
|
|
22002
21904
|
}
|
|
22003
|
-
|
|
21905
|
+
_inherits(XMLHandler2, _Handler4);
|
|
21906
|
+
return _createClass(XMLHandler2, [{
|
|
22004
21907
|
key: "parse",
|
|
22005
21908
|
value: function parse3(fetcher3, responseText, options) {
|
|
22006
21909
|
var dom = parseXML(responseText);
|
|
@@ -22055,17 +21958,15 @@ var XMLHandler = /* @__PURE__ */ function(_Handler3) {
|
|
|
22055
21958
|
return node.nodeType === Node.ELEMENT_NODE;
|
|
22056
21959
|
}
|
|
22057
21960
|
}]);
|
|
22058
|
-
return XMLHandler2;
|
|
22059
21961
|
}(Handler);
|
|
22060
21962
|
XMLHandler.pattern = new RegExp("(text|application)/(.*)xml");
|
|
22061
|
-
var HTMLHandler = /* @__PURE__ */ function(
|
|
22062
|
-
_inherits(HTMLHandler2, _Handler4);
|
|
22063
|
-
var _super4 = _createSuper8(HTMLHandler2);
|
|
21963
|
+
var HTMLHandler = /* @__PURE__ */ function(_Handler5) {
|
|
22064
21964
|
function HTMLHandler2() {
|
|
22065
21965
|
_classCallCheck(this, HTMLHandler2);
|
|
22066
|
-
return
|
|
21966
|
+
return _callSuper8(this, HTMLHandler2, arguments);
|
|
22067
21967
|
}
|
|
22068
|
-
|
|
21968
|
+
_inherits(HTMLHandler2, _Handler5);
|
|
21969
|
+
return _createClass(HTMLHandler2, [{
|
|
22069
21970
|
key: "parse",
|
|
22070
21971
|
value: function parse3(fetcher3, responseText, options) {
|
|
22071
21972
|
var kb = fetcher3.store;
|
|
@@ -22105,17 +22006,15 @@ var HTMLHandler = /* @__PURE__ */ function(_Handler4) {
|
|
|
22105
22006
|
};
|
|
22106
22007
|
}
|
|
22107
22008
|
}]);
|
|
22108
|
-
return HTMLHandler2;
|
|
22109
22009
|
}(Handler);
|
|
22110
22010
|
HTMLHandler.pattern = new RegExp("text/html");
|
|
22111
|
-
var JsonLdHandler = /* @__PURE__ */ function(
|
|
22112
|
-
_inherits(JsonLdHandler2, _Handler5);
|
|
22113
|
-
var _super5 = _createSuper8(JsonLdHandler2);
|
|
22011
|
+
var JsonLdHandler = /* @__PURE__ */ function(_Handler6) {
|
|
22114
22012
|
function JsonLdHandler2() {
|
|
22115
22013
|
_classCallCheck(this, JsonLdHandler2);
|
|
22116
|
-
return
|
|
22014
|
+
return _callSuper8(this, JsonLdHandler2, arguments);
|
|
22117
22015
|
}
|
|
22118
|
-
|
|
22016
|
+
_inherits(JsonLdHandler2, _Handler6);
|
|
22017
|
+
return _createClass(JsonLdHandler2, [{
|
|
22119
22018
|
key: "parse",
|
|
22120
22019
|
value: function parse3(fetcher3, responseText, options, response) {
|
|
22121
22020
|
var kb = fetcher3.store;
|
|
@@ -22143,17 +22042,15 @@ var JsonLdHandler = /* @__PURE__ */ function(_Handler5) {
|
|
|
22143
22042
|
};
|
|
22144
22043
|
}
|
|
22145
22044
|
}]);
|
|
22146
|
-
return JsonLdHandler2;
|
|
22147
22045
|
}(Handler);
|
|
22148
22046
|
JsonLdHandler.pattern = /application\/ld\+json/;
|
|
22149
|
-
var TextHandler = /* @__PURE__ */ function(
|
|
22150
|
-
_inherits(TextHandler2, _Handler6);
|
|
22151
|
-
var _super6 = _createSuper8(TextHandler2);
|
|
22047
|
+
var TextHandler = /* @__PURE__ */ function(_Handler7) {
|
|
22152
22048
|
function TextHandler2() {
|
|
22153
22049
|
_classCallCheck(this, TextHandler2);
|
|
22154
|
-
return
|
|
22050
|
+
return _callSuper8(this, TextHandler2, arguments);
|
|
22155
22051
|
}
|
|
22156
|
-
|
|
22052
|
+
_inherits(TextHandler2, _Handler7);
|
|
22053
|
+
return _createClass(TextHandler2, [{
|
|
22157
22054
|
key: "parse",
|
|
22158
22055
|
value: function parse3(fetcher3, responseText, options) {
|
|
22159
22056
|
if (isXML(responseText)) {
|
|
@@ -22182,17 +22079,15 @@ var TextHandler = /* @__PURE__ */ function(_Handler6) {
|
|
|
22182
22079
|
};
|
|
22183
22080
|
}
|
|
22184
22081
|
}]);
|
|
22185
|
-
return TextHandler2;
|
|
22186
22082
|
}(Handler);
|
|
22187
22083
|
TextHandler.pattern = new RegExp("text/plain");
|
|
22188
|
-
var N3Handler = /* @__PURE__ */ function(
|
|
22189
|
-
_inherits(N3Handler2, _Handler7);
|
|
22190
|
-
var _super7 = _createSuper8(N3Handler2);
|
|
22084
|
+
var N3Handler = /* @__PURE__ */ function(_Handler8) {
|
|
22191
22085
|
function N3Handler2() {
|
|
22192
22086
|
_classCallCheck(this, N3Handler2);
|
|
22193
|
-
return
|
|
22087
|
+
return _callSuper8(this, N3Handler2, arguments);
|
|
22194
22088
|
}
|
|
22195
|
-
|
|
22089
|
+
_inherits(N3Handler2, _Handler8);
|
|
22090
|
+
return _createClass(N3Handler2, [{
|
|
22196
22091
|
key: "parse",
|
|
22197
22092
|
value: function parse3(fetcher3, responseText, options, response) {
|
|
22198
22093
|
var kb = fetcher3.store;
|
|
@@ -22223,7 +22118,6 @@ var N3Handler = /* @__PURE__ */ function(_Handler7) {
|
|
|
22223
22118
|
};
|
|
22224
22119
|
}
|
|
22225
22120
|
}]);
|
|
22226
|
-
return N3Handler2;
|
|
22227
22121
|
}(Handler);
|
|
22228
22122
|
N3Handler.pattern = new RegExp("(application|text)/(x-)?(rdf\\+)?(n3|turtle)");
|
|
22229
22123
|
var defaultHandlers = {
|
|
@@ -22302,7 +22196,7 @@ var Fetcher = /* @__PURE__ */ function() {
|
|
|
22302
22196
|
return _this.addHandler(defaultHandlers[key]);
|
|
22303
22197
|
});
|
|
22304
22198
|
}
|
|
22305
|
-
_createClass(Fetcher2, [{
|
|
22199
|
+
return _createClass(Fetcher2, [{
|
|
22306
22200
|
key: "load",
|
|
22307
22201
|
value: (
|
|
22308
22202
|
/**
|
|
@@ -22373,7 +22267,7 @@ var Fetcher = /* @__PURE__ */ function() {
|
|
|
22373
22267
|
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
22374
22268
|
var request = _step.value;
|
|
22375
22269
|
var _response = kb.any(request, this.ns.link("response"), null, meta);
|
|
22376
|
-
if (_response
|
|
22270
|
+
if (_response != void 0) {
|
|
22377
22271
|
var quad4 = kb.statementsMatching(_response, this.ns.link("outOfDate"), true, meta);
|
|
22378
22272
|
kb.remove(quad4);
|
|
22379
22273
|
options.force = true;
|
|
@@ -22876,11 +22770,6 @@ var Fetcher = /* @__PURE__ */ function() {
|
|
|
22876
22770
|
}
|
|
22877
22771
|
return createIfNotExists;
|
|
22878
22772
|
}()
|
|
22879
|
-
/**
|
|
22880
|
-
* @param parentURI URI of parent container
|
|
22881
|
-
* @param folderName - Optional folder name (slug)
|
|
22882
|
-
* @param data - Optional folder metadata
|
|
22883
|
-
*/
|
|
22884
22773
|
}, {
|
|
22885
22774
|
key: "createContainer",
|
|
22886
22775
|
value: function createContainer(parentURI, folderName, data) {
|
|
@@ -23279,7 +23168,10 @@ var Fetcher = /* @__PURE__ */ function() {
|
|
|
23279
23168
|
this.addType(this.ns.link("Document"), reqNode, kb, diffLocation);
|
|
23280
23169
|
}
|
|
23281
23170
|
if (options.clearPreviousData) {
|
|
23282
|
-
kb.
|
|
23171
|
+
var sts = kb.statementsMatching(void 0, void 0, void 0, options.resource).slice();
|
|
23172
|
+
for (var i = 0; i < sts.length; i++) {
|
|
23173
|
+
kb.removeStatement(sts[i]);
|
|
23174
|
+
}
|
|
23283
23175
|
}
|
|
23284
23176
|
var isImage = contentType.includes("image/") || contentType.includes("application/pdf");
|
|
23285
23177
|
if (contentType && isImage) {
|
|
@@ -23501,7 +23393,6 @@ var Fetcher = /* @__PURE__ */ function() {
|
|
|
23501
23393
|
}
|
|
23502
23394
|
}
|
|
23503
23395
|
}]);
|
|
23504
|
-
return Fetcher2;
|
|
23505
23396
|
}();
|
|
23506
23397
|
_defineProperty(Fetcher, "HANDLERS", void 0);
|
|
23507
23398
|
_defineProperty(Fetcher, "CONTENT_TYPE_BY_EXT", void 0);
|
|
@@ -23510,26 +23401,26 @@ Fetcher.HANDLERS = defaultHandlers;
|
|
|
23510
23401
|
Fetcher.CONTENT_TYPE_BY_EXT = CONTENT_TYPE_BY_EXT;
|
|
23511
23402
|
|
|
23512
23403
|
// ../node_modules/rdflib/esm/factories/rdflib-data-factory.js
|
|
23513
|
-
function ownKeys2(
|
|
23514
|
-
var
|
|
23404
|
+
function ownKeys2(e, r) {
|
|
23405
|
+
var t = Object.keys(e);
|
|
23515
23406
|
if (Object.getOwnPropertySymbols) {
|
|
23516
|
-
var
|
|
23517
|
-
|
|
23518
|
-
return Object.getOwnPropertyDescriptor(
|
|
23519
|
-
})),
|
|
23407
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
23408
|
+
r && (o = o.filter(function(r2) {
|
|
23409
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
23410
|
+
})), t.push.apply(t, o);
|
|
23520
23411
|
}
|
|
23521
|
-
return
|
|
23412
|
+
return t;
|
|
23522
23413
|
}
|
|
23523
|
-
function _objectSpread2(
|
|
23524
|
-
for (var
|
|
23525
|
-
var
|
|
23526
|
-
|
|
23527
|
-
_defineProperty(
|
|
23528
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
23529
|
-
Object.defineProperty(
|
|
23414
|
+
function _objectSpread2(e) {
|
|
23415
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
23416
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
23417
|
+
r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
|
|
23418
|
+
_defineProperty(e, r2, t[r2]);
|
|
23419
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
|
|
23420
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
23530
23421
|
});
|
|
23531
23422
|
}
|
|
23532
|
-
return
|
|
23423
|
+
return e;
|
|
23533
23424
|
}
|
|
23534
23425
|
var RDFlibDataFactory = _objectSpread2(_objectSpread2({}, extended_term_factory_default), {}, {
|
|
23535
23426
|
/**
|
|
@@ -23595,26 +23486,26 @@ var term = node_default.fromValue;
|
|
|
23595
23486
|
var NextId = BlankNode.nextId;
|
|
23596
23487
|
|
|
23597
23488
|
// ../node_modules/rdflib/esm/store.js
|
|
23598
|
-
function ownKeys3(
|
|
23599
|
-
var
|
|
23489
|
+
function ownKeys3(e, r) {
|
|
23490
|
+
var t = Object.keys(e);
|
|
23600
23491
|
if (Object.getOwnPropertySymbols) {
|
|
23601
|
-
var
|
|
23602
|
-
|
|
23603
|
-
return Object.getOwnPropertyDescriptor(
|
|
23604
|
-
})),
|
|
23492
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
23493
|
+
r && (o = o.filter(function(r2) {
|
|
23494
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
23495
|
+
})), t.push.apply(t, o);
|
|
23605
23496
|
}
|
|
23606
|
-
return
|
|
23497
|
+
return t;
|
|
23607
23498
|
}
|
|
23608
|
-
function _objectSpread3(
|
|
23609
|
-
for (var
|
|
23610
|
-
var
|
|
23611
|
-
|
|
23612
|
-
_defineProperty(
|
|
23613
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
23614
|
-
Object.defineProperty(
|
|
23499
|
+
function _objectSpread3(e) {
|
|
23500
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
23501
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
23502
|
+
r % 2 ? ownKeys3(Object(t), true).forEach(function(r2) {
|
|
23503
|
+
_defineProperty(e, r2, t[r2]);
|
|
23504
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r2) {
|
|
23505
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
23615
23506
|
});
|
|
23616
23507
|
}
|
|
23617
|
-
return
|
|
23508
|
+
return e;
|
|
23618
23509
|
}
|
|
23619
23510
|
function _createForOfIteratorHelper4(o, allowArrayLike) {
|
|
23620
23511
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
@@ -23675,33 +23566,18 @@ function _arrayLikeToArray4(arr, len) {
|
|
|
23675
23566
|
arr2[i] = arr[i];
|
|
23676
23567
|
return arr2;
|
|
23677
23568
|
}
|
|
23678
|
-
function
|
|
23679
|
-
|
|
23680
|
-
return function _createSuperInternal() {
|
|
23681
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
23682
|
-
if (hasNativeReflectConstruct) {
|
|
23683
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
23684
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
23685
|
-
} else {
|
|
23686
|
-
result = Super.apply(this, arguments);
|
|
23687
|
-
}
|
|
23688
|
-
return _possibleConstructorReturn(this, result);
|
|
23689
|
-
};
|
|
23569
|
+
function _callSuper9(t, o, e) {
|
|
23570
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct9() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
23690
23571
|
}
|
|
23691
23572
|
function _isNativeReflectConstruct9() {
|
|
23692
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
23693
|
-
return false;
|
|
23694
|
-
if (Reflect.construct.sham)
|
|
23695
|
-
return false;
|
|
23696
|
-
if (typeof Proxy === "function")
|
|
23697
|
-
return true;
|
|
23698
23573
|
try {
|
|
23699
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
23574
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
23700
23575
|
}));
|
|
23701
|
-
|
|
23702
|
-
} catch (e) {
|
|
23703
|
-
return false;
|
|
23576
|
+
} catch (t2) {
|
|
23704
23577
|
}
|
|
23578
|
+
return (_isNativeReflectConstruct9 = function _isNativeReflectConstruct10() {
|
|
23579
|
+
return !!t;
|
|
23580
|
+
})();
|
|
23705
23581
|
}
|
|
23706
23582
|
var owlNamespaceURI = "http://www.w3.org/2002/07/owl#";
|
|
23707
23583
|
function handleFP(formula2, subj, pred, obj) {
|
|
@@ -23734,30 +23610,28 @@ function handleRDFType(formula2, subj, pred, obj, why) {
|
|
|
23734
23610
|
return done;
|
|
23735
23611
|
}
|
|
23736
23612
|
var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
23737
|
-
_inherits(IndexedFormula2, _Formula);
|
|
23738
|
-
var _super = _createSuper9(IndexedFormula2);
|
|
23739
23613
|
function IndexedFormula2(features) {
|
|
23740
23614
|
var _this;
|
|
23741
23615
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
23742
23616
|
_classCallCheck(this, IndexedFormula2);
|
|
23743
|
-
_this =
|
|
23744
|
-
_defineProperty(
|
|
23745
|
-
_defineProperty(
|
|
23746
|
-
_defineProperty(
|
|
23747
|
-
_defineProperty(
|
|
23748
|
-
_defineProperty(
|
|
23749
|
-
_defineProperty(
|
|
23750
|
-
_defineProperty(
|
|
23751
|
-
_defineProperty(
|
|
23752
|
-
_defineProperty(
|
|
23753
|
-
_defineProperty(
|
|
23754
|
-
_defineProperty(
|
|
23755
|
-
_defineProperty(
|
|
23756
|
-
_defineProperty(
|
|
23757
|
-
_defineProperty(
|
|
23758
|
-
_defineProperty(
|
|
23759
|
-
_defineProperty(
|
|
23760
|
-
_defineProperty(
|
|
23617
|
+
_this = _callSuper9(this, IndexedFormula2, [void 0, void 0, void 0, void 0, opts]);
|
|
23618
|
+
_defineProperty(_this, "updater", void 0);
|
|
23619
|
+
_defineProperty(_this, "namespaces", void 0);
|
|
23620
|
+
_defineProperty(_this, "classActions", void 0);
|
|
23621
|
+
_defineProperty(_this, "propertyActions", void 0);
|
|
23622
|
+
_defineProperty(_this, "redirections", void 0);
|
|
23623
|
+
_defineProperty(_this, "aliases", void 0);
|
|
23624
|
+
_defineProperty(_this, "HTTPRedirects", void 0);
|
|
23625
|
+
_defineProperty(_this, "subjectIndex", void 0);
|
|
23626
|
+
_defineProperty(_this, "predicateIndex", void 0);
|
|
23627
|
+
_defineProperty(_this, "objectIndex", void 0);
|
|
23628
|
+
_defineProperty(_this, "whyIndex", void 0);
|
|
23629
|
+
_defineProperty(_this, "index", void 0);
|
|
23630
|
+
_defineProperty(_this, "features", void 0);
|
|
23631
|
+
_defineProperty(_this, "_universalVariables", void 0);
|
|
23632
|
+
_defineProperty(_this, "_existentialVariables", void 0);
|
|
23633
|
+
_defineProperty(_this, "rdfArrayRemove", void 0);
|
|
23634
|
+
_defineProperty(_this, "dataCallbacks", void 0);
|
|
23761
23635
|
_this.propertyActions = {};
|
|
23762
23636
|
_this.classActions = {};
|
|
23763
23637
|
_this.redirections = [];
|
|
@@ -23783,7 +23657,8 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
|
23783
23657
|
_this.initPropertyActions(_this.features);
|
|
23784
23658
|
return _this;
|
|
23785
23659
|
}
|
|
23786
|
-
|
|
23660
|
+
_inherits(IndexedFormula2, _Formula);
|
|
23661
|
+
return _createClass(IndexedFormula2, [{
|
|
23787
23662
|
key: "substitute",
|
|
23788
23663
|
value: (
|
|
23789
23664
|
/**
|
|
@@ -24361,12 +24236,23 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
|
24361
24236
|
return this;
|
|
24362
24237
|
}
|
|
24363
24238
|
/**
|
|
24364
|
-
* Removes all statements in a doc, along with the related metadata including request/response
|
|
24239
|
+
* Removes all statements in a doc, along with the related metadata including request/response/status
|
|
24365
24240
|
* @param doc - The document / graph
|
|
24366
24241
|
*/
|
|
24367
24242
|
}, {
|
|
24368
24243
|
key: "removeDocument",
|
|
24369
24244
|
value: function removeDocument(doc) {
|
|
24245
|
+
this.removeMetadata(doc);
|
|
24246
|
+
var sts = this.statementsMatching(void 0, void 0, void 0, doc).slice();
|
|
24247
|
+
for (var i = 0; i < sts.length; i++) {
|
|
24248
|
+
this.removeStatement(sts[i]);
|
|
24249
|
+
}
|
|
24250
|
+
this.removeMatches(doc, null, null);
|
|
24251
|
+
return this;
|
|
24252
|
+
}
|
|
24253
|
+
}, {
|
|
24254
|
+
key: "removeMetadata",
|
|
24255
|
+
value: function removeMetadata(doc) {
|
|
24370
24256
|
var meta = this.sym("chrome://TheCurrentSession");
|
|
24371
24257
|
var linkNamespaceURI = "http://www.w3.org/2007/ont/link#";
|
|
24372
24258
|
var requests = this.statementsMatching(void 0, this.sym("".concat(linkNamespaceURI, "requestedURI")), this.rdfFactory.literal(doc.value), meta).map(function(st3) {
|
|
@@ -24374,19 +24260,29 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
|
24374
24260
|
});
|
|
24375
24261
|
for (var r = 0; r < requests.length; r++) {
|
|
24376
24262
|
var request = requests[r];
|
|
24377
|
-
if (request
|
|
24378
|
-
|
|
24263
|
+
if (request != void 0) {
|
|
24264
|
+
var sts = void 0;
|
|
24265
|
+
var status = this.any(request, this.sym("".concat(linkNamespaceURI, "status")), null, meta);
|
|
24266
|
+
if (status != void 0) {
|
|
24267
|
+
sts = this.statementsMatching(status, this.sym("".concat(linkNamespaceURI, "status")), null, meta).slice();
|
|
24268
|
+
for (var i = 0; i < sts.length; i++) {
|
|
24269
|
+
this.removeStatement(sts[i]);
|
|
24270
|
+
}
|
|
24271
|
+
}
|
|
24379
24272
|
var response = this.any(request, this.sym("".concat(linkNamespaceURI, "response")), null, meta);
|
|
24380
|
-
if (response
|
|
24381
|
-
this.
|
|
24273
|
+
if (response != void 0) {
|
|
24274
|
+
sts = this.statementsMatching(response, null, null, meta).slice();
|
|
24275
|
+
for (var i = 0; i < sts.length; i++) {
|
|
24276
|
+
this.removeStatement(sts[i]);
|
|
24277
|
+
}
|
|
24278
|
+
}
|
|
24279
|
+
sts = this.statementsMatching(request, null, null, meta).slice();
|
|
24280
|
+
for (var i = 0; i < sts.length; i++) {
|
|
24281
|
+
this.removeStatement(sts[i]);
|
|
24382
24282
|
}
|
|
24383
24283
|
}
|
|
24384
24284
|
}
|
|
24385
24285
|
this.removeMatches(this.sym(doc.value), null, null, meta);
|
|
24386
|
-
var sts = this.statementsMatching(void 0, void 0, void 0, doc).slice();
|
|
24387
|
-
for (var i = 0; i < sts.length; i++) {
|
|
24388
|
-
this.removeStatement(sts[i]);
|
|
24389
|
-
}
|
|
24390
24286
|
return this;
|
|
24391
24287
|
}
|
|
24392
24288
|
/**
|
|
@@ -24660,7 +24556,6 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
|
24660
24556
|
return defaultGraphURI;
|
|
24661
24557
|
}
|
|
24662
24558
|
}]);
|
|
24663
|
-
return IndexedFormula2;
|
|
24664
24559
|
}(Formula);
|
|
24665
24560
|
_defineProperty(IndexedFormula, "handleRDFType", void 0);
|
|
24666
24561
|
IndexedFormula.handleRDFType = handleRDFType;
|
|
@@ -24755,7 +24650,7 @@ var UpdateManager = /* @__PURE__ */ function() {
|
|
|
24755
24650
|
this.ns.owl = Namespace("http://www.w3.org/2002/07/owl#");
|
|
24756
24651
|
this.patchControl = [];
|
|
24757
24652
|
}
|
|
24758
|
-
_createClass(UpdateManager2, [{
|
|
24653
|
+
return _createClass(UpdateManager2, [{
|
|
24759
24654
|
key: "patchControlFor",
|
|
24760
24655
|
value: function patchControlFor(doc) {
|
|
24761
24656
|
if (!this.patchControl[doc.value]) {
|
|
@@ -24790,7 +24685,7 @@ var UpdateManager = /* @__PURE__ */ function() {
|
|
|
24790
24685
|
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
24791
24686
|
var request = _step.value;
|
|
24792
24687
|
var _response = kb.any(request, this.ns.link("response"), null, meta);
|
|
24793
|
-
if (_response
|
|
24688
|
+
if (_response != void 0) {
|
|
24794
24689
|
kb.add(_response, this.ns.link("outOfDate"), true, meta);
|
|
24795
24690
|
}
|
|
24796
24691
|
}
|
|
@@ -24853,17 +24748,6 @@ var UpdateManager = /* @__PURE__ */ function() {
|
|
|
24853
24748
|
}
|
|
24854
24749
|
return checkEditable;
|
|
24855
24750
|
}()
|
|
24856
|
-
/**
|
|
24857
|
-
* Tests whether a file is editable.
|
|
24858
|
-
* If the file has a specific annotation that it is machine written,
|
|
24859
|
-
* for safety, it is editable (this doesn't actually check for write access)
|
|
24860
|
-
* If the file has wac-allow and accept patch headers, those are respected.
|
|
24861
|
-
* and local write access is determined by those headers.
|
|
24862
|
-
* This synchronous version only looks at past HTTP requests, does not make new ones.
|
|
24863
|
-
*
|
|
24864
|
-
* @returns The method string SPARQL or DAV or
|
|
24865
|
-
* LOCALFILE or false if known, undefined if not known.
|
|
24866
|
-
*/
|
|
24867
24751
|
}, {
|
|
24868
24752
|
key: "editable",
|
|
24869
24753
|
value: function editable(uri, kb) {
|
|
@@ -25297,7 +25181,7 @@ var UpdateManager = /* @__PURE__ */ function() {
|
|
|
25297
25181
|
}
|
|
25298
25182
|
} else {
|
|
25299
25183
|
control.reloading = false;
|
|
25300
|
-
if (response.status === 0) {
|
|
25184
|
+
if (response && response.status === 0) {
|
|
25301
25185
|
control.reloading = true;
|
|
25302
25186
|
retryTimeout = retryTimeout * 2;
|
|
25303
25187
|
setTimeout(tryReload2, retryTimeout);
|
|
@@ -25834,59 +25718,9 @@ var UpdateManager = /* @__PURE__ */ function() {
|
|
|
25834
25718
|
});
|
|
25835
25719
|
}
|
|
25836
25720
|
}]);
|
|
25837
|
-
return UpdateManager2;
|
|
25838
25721
|
}();
|
|
25839
25722
|
|
|
25840
|
-
// ../node_modules/uuid/dist/esm-browser/native.js
|
|
25841
|
-
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
25842
|
-
var native_default = {
|
|
25843
|
-
randomUUID
|
|
25844
|
-
};
|
|
25845
|
-
|
|
25846
|
-
// ../node_modules/uuid/dist/esm-browser/rng.js
|
|
25847
|
-
var getRandomValues;
|
|
25848
|
-
var rnds8 = new Uint8Array(16);
|
|
25849
|
-
function rng() {
|
|
25850
|
-
if (!getRandomValues) {
|
|
25851
|
-
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
25852
|
-
if (!getRandomValues) {
|
|
25853
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
25854
|
-
}
|
|
25855
|
-
}
|
|
25856
|
-
return getRandomValues(rnds8);
|
|
25857
|
-
}
|
|
25858
|
-
|
|
25859
|
-
// ../node_modules/uuid/dist/esm-browser/stringify.js
|
|
25860
|
-
var byteToHex = [];
|
|
25861
|
-
for (let i = 0; i < 256; ++i) {
|
|
25862
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
25863
|
-
}
|
|
25864
|
-
function unsafeStringify(arr, offset = 0) {
|
|
25865
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
25866
|
-
}
|
|
25867
|
-
|
|
25868
|
-
// ../node_modules/uuid/dist/esm-browser/v4.js
|
|
25869
|
-
function v4(options, buf, offset) {
|
|
25870
|
-
if (native_default.randomUUID && !buf && !options) {
|
|
25871
|
-
return native_default.randomUUID();
|
|
25872
|
-
}
|
|
25873
|
-
options = options || {};
|
|
25874
|
-
const rnds = options.random || (options.rng || rng)();
|
|
25875
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
25876
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
25877
|
-
if (buf) {
|
|
25878
|
-
offset = offset || 0;
|
|
25879
|
-
for (let i = 0; i < 16; ++i) {
|
|
25880
|
-
buf[offset + i] = rnds[i];
|
|
25881
|
-
}
|
|
25882
|
-
return buf;
|
|
25883
|
-
}
|
|
25884
|
-
return unsafeStringify(rnds);
|
|
25885
|
-
}
|
|
25886
|
-
var v4_default = v4;
|
|
25887
|
-
|
|
25888
25723
|
export {
|
|
25889
|
-
v4_default,
|
|
25890
25724
|
isLiteral,
|
|
25891
25725
|
isNamedNode,
|
|
25892
25726
|
isBlankNode,
|