@zelloptt/react-native-zello-sdk 0.1.1 → 0.3.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/README.md +113 -2
- package/lib/commonjs/docs/assets/highlight.css +11 -4
- package/lib/commonjs/docs/assets/icons.js +7 -7
- package/lib/commonjs/docs/assets/icons.js.map +1 -1
- package/lib/commonjs/docs/assets/main.js +216 -216
- package/lib/commonjs/docs/assets/main.js.map +1 -1
- package/lib/commonjs/docs/assets/navigation.js +1 -1
- package/lib/commonjs/docs/assets/navigation.js.map +1 -1
- package/lib/commonjs/docs/assets/search.js +1 -1
- package/lib/commonjs/docs/assets/search.js.map +1 -1
- package/lib/commonjs/docs/classes/sdk.Zello.html +40 -40
- package/lib/commonjs/docs/classes/types.ZelloAlertMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloChannel.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloChannelUser.html +3 -3
- package/lib/commonjs/docs/classes/types.ZelloHistoryAlertMessage.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloHistoryImageMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloHistoryLocationMessage.html +12 -12
- package/lib/commonjs/docs/classes/types.ZelloHistoryTextMessage.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloHistoryVoiceMessage.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloImageMessage.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloIncomingEmergency.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloIncomingVoiceMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloLocationMessage.html +11 -11
- package/lib/commonjs/docs/classes/types.ZelloOutgoingEmergency.html +6 -6
- package/lib/commonjs/docs/classes/types.ZelloOutgoingVoiceMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloRecentEntry.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloTextMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloUser.html +9 -9
- package/lib/commonjs/docs/enums/events.ZelloEvent.html +34 -34
- package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +4 -4
- package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
- package/lib/commonjs/docs/enums/types.ZelloChannelConnectionStatus.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloConnectionError.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloConnectionState.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloContactType.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageError.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageState.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloRecentEntryType.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloUserStatus.html +6 -6
- package/lib/commonjs/docs/index.html +74 -3
- package/lib/commonjs/docs/modules/events.html +2 -2
- package/lib/commonjs/docs/modules/index.html +2 -2
- package/lib/commonjs/docs/modules/sdk.html +2 -2
- package/lib/commonjs/docs/modules/types.html +2 -2
- package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +2 -2
- package/lib/commonjs/docs/types/types.ZelloConfig.html +2 -2
- package/lib/commonjs/docs/types/types.ZelloContact.html +2 -2
- package/lib/commonjs/docs/types/types.ZelloCredentials.html +2 -2
- package/lib/commonjs/docs/types/types.ZelloHistoryMessage.html +2 -2
- package/lib/commonjs/docs/types/types.ZelloMessage.html +2 -2
- package/lib/module/docs/assets/highlight.css +11 -4
- package/lib/module/docs/assets/icons.js +7 -7
- package/lib/module/docs/assets/icons.js.map +1 -1
- package/lib/module/docs/assets/main.js +216 -216
- package/lib/module/docs/assets/main.js.map +1 -1
- package/lib/module/docs/assets/navigation.js +1 -1
- package/lib/module/docs/assets/navigation.js.map +1 -1
- package/lib/module/docs/assets/search.js +1 -1
- package/lib/module/docs/assets/search.js.map +1 -1
- package/lib/module/docs/classes/sdk.Zello.html +40 -40
- package/lib/module/docs/classes/types.ZelloAlertMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloChannel.html +9 -9
- package/lib/module/docs/classes/types.ZelloChannelUser.html +3 -3
- package/lib/module/docs/classes/types.ZelloHistoryAlertMessage.html +9 -9
- package/lib/module/docs/classes/types.ZelloHistoryImageMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloHistoryLocationMessage.html +12 -12
- package/lib/module/docs/classes/types.ZelloHistoryTextMessage.html +9 -9
- package/lib/module/docs/classes/types.ZelloHistoryVoiceMessage.html +9 -9
- package/lib/module/docs/classes/types.ZelloImageMessage.html +9 -9
- package/lib/module/docs/classes/types.ZelloIncomingEmergency.html +8 -8
- package/lib/module/docs/classes/types.ZelloIncomingVoiceMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloLocationMessage.html +11 -11
- package/lib/module/docs/classes/types.ZelloOutgoingEmergency.html +6 -6
- package/lib/module/docs/classes/types.ZelloOutgoingVoiceMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloRecentEntry.html +8 -8
- package/lib/module/docs/classes/types.ZelloTextMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloUser.html +9 -9
- package/lib/module/docs/enums/events.ZelloEvent.html +34 -34
- package/lib/module/docs/enums/types.ZelloAccountStatus.html +4 -4
- package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
- package/lib/module/docs/enums/types.ZelloChannelConnectionStatus.html +3 -3
- package/lib/module/docs/enums/types.ZelloConnectionError.html +3 -3
- package/lib/module/docs/enums/types.ZelloConnectionState.html +3 -3
- package/lib/module/docs/enums/types.ZelloContactType.html +3 -3
- package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageError.html +3 -3
- package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageState.html +3 -3
- package/lib/module/docs/enums/types.ZelloRecentEntryType.html +3 -3
- package/lib/module/docs/enums/types.ZelloUserStatus.html +6 -6
- package/lib/module/docs/index.html +74 -3
- package/lib/module/docs/modules/events.html +2 -2
- package/lib/module/docs/modules/index.html +2 -2
- package/lib/module/docs/modules/sdk.html +2 -2
- package/lib/module/docs/modules/types.html +2 -2
- package/lib/module/docs/types/types.ZelloChannelOptions.html +2 -2
- package/lib/module/docs/types/types.ZelloConfig.html +2 -2
- package/lib/module/docs/types/types.ZelloContact.html +2 -2
- package/lib/module/docs/types/types.ZelloCredentials.html +2 -2
- package/lib/module/docs/types/types.ZelloHistoryMessage.html +2 -2
- package/lib/module/docs/types/types.ZelloMessage.html +2 -2
- package/package.json +1 -1
- package/react-native-zello-sdk.podspec +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
4
4
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
@@ -13,11 +13,11 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
window.translations = {
|
|
16
|
-
copy:
|
|
17
|
-
copied:
|
|
18
|
-
normally_hidden:
|
|
16
|
+
"copy": "Copy",
|
|
17
|
+
"copied": "Copied!",
|
|
18
|
+
"normally_hidden": "This member is normally hidden due to your filter settings."
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
"use strict";
|
|
21
21
|
(() => {
|
|
22
22
|
var Pe = Object.create;
|
|
23
23
|
var ie = Object.defineProperty;
|
|
@@ -29,13 +29,13 @@ window.translations = {
|
|
|
29
29
|
exports: {}
|
|
30
30
|
}).exports, e), e.exports);
|
|
31
31
|
var De = (t, e, n, r) => {
|
|
32
|
-
if (e && typeof e
|
|
32
|
+
if (e && typeof e == "object" || typeof e == "function") for (let i of _e(e)) !Me.call(t, i) && i !== n && ie(t, i, {
|
|
33
33
|
get: () => e[i],
|
|
34
34
|
enumerable: !(r = Oe(e, i)) || r.enumerable
|
|
35
35
|
});
|
|
36
36
|
return t;
|
|
37
37
|
};
|
|
38
|
-
var Ae = (t, e, n) => (n = t != null ? Pe(Re(t)) : {}, De(e || !t || !t.__esModule ? ie(n,
|
|
38
|
+
var Ae = (t, e, n) => (n = t != null ? Pe(Re(t)) : {}, De(e || !t || !t.__esModule ? ie(n, "default", {
|
|
39
39
|
value: t,
|
|
40
40
|
enumerable: !0
|
|
41
41
|
}) : n, t));
|
|
@@ -45,13 +45,13 @@ window.translations = {
|
|
|
45
45
|
var n = new t.Builder();
|
|
46
46
|
return n.pipeline.add(t.trimmer, t.stopWordFilter, t.stemmer), n.searchPipeline.add(t.stemmer), e.call(n, n), n.build();
|
|
47
47
|
};
|
|
48
|
-
t.version =
|
|
48
|
+
t.version = "2.3.9";
|
|
49
49
|
t.utils = {}, t.utils.warn = function (e) {
|
|
50
50
|
return function (n) {
|
|
51
51
|
e.console && console.warn && console.warn(n);
|
|
52
52
|
};
|
|
53
53
|
}(this), t.utils.asString = function (e) {
|
|
54
|
-
return e == null ?
|
|
54
|
+
return e == null ? "" : e.toString();
|
|
55
55
|
}, t.utils.clone = function (e) {
|
|
56
56
|
if (e == null) return e;
|
|
57
57
|
for (var n = Object.create(null), r = Object.keys(e), i = 0; i < r.length; i++) {
|
|
@@ -61,18 +61,18 @@ window.translations = {
|
|
|
61
61
|
n[s] = o.slice();
|
|
62
62
|
continue;
|
|
63
63
|
}
|
|
64
|
-
if (typeof o
|
|
64
|
+
if (typeof o == "string" || typeof o == "number" || typeof o == "boolean") {
|
|
65
65
|
n[s] = o;
|
|
66
66
|
continue;
|
|
67
67
|
}
|
|
68
|
-
throw new TypeError(
|
|
68
|
+
throw new TypeError("clone is not deep and does not support nested objects");
|
|
69
69
|
}
|
|
70
70
|
return n;
|
|
71
71
|
}, t.FieldRef = function (e, n, r) {
|
|
72
72
|
this.docRef = e, this.fieldName = n, this._stringValue = r;
|
|
73
|
-
}, t.FieldRef.joiner =
|
|
73
|
+
}, t.FieldRef.joiner = "/", t.FieldRef.fromString = function (e) {
|
|
74
74
|
var n = e.indexOf(t.FieldRef.joiner);
|
|
75
|
-
if (n === -1) throw
|
|
75
|
+
if (n === -1) throw "malformed field ref string";
|
|
76
76
|
var r = e.slice(0, n),
|
|
77
77
|
i = e.slice(n + 1);
|
|
78
78
|
return new t.FieldRef(i, r, e);
|
|
@@ -123,11 +123,11 @@ window.translations = {
|
|
|
123
123
|
return e === t.Set.complete ? t.Set.complete : e === t.Set.empty ? this : new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)));
|
|
124
124
|
}, t.idf = function (e, n) {
|
|
125
125
|
var r = 0;
|
|
126
|
-
for (var i in e) i !=
|
|
127
|
-
var s = (n - r +
|
|
126
|
+
for (var i in e) i != "_index" && (r += Object.keys(e[i]).length);
|
|
127
|
+
var s = (n - r + .5) / (r + .5);
|
|
128
128
|
return Math.log(1 + Math.abs(s));
|
|
129
129
|
}, t.Token = function (e, n) {
|
|
130
|
-
this.str = e ||
|
|
130
|
+
this.str = e || "", this.metadata = n || {};
|
|
131
131
|
}, t.Token.prototype.toString = function () {
|
|
132
132
|
return this.str;
|
|
133
133
|
}, t.Token.prototype.update = function (e) {
|
|
@@ -158,7 +158,7 @@ window.translations = {
|
|
|
158
158
|
t.Pipeline = function () {
|
|
159
159
|
this._stack = [];
|
|
160
160
|
}, t.Pipeline.registeredFunctions = Object.create(null), t.Pipeline.registerFunction = function (e, n) {
|
|
161
|
-
n in this.registeredFunctions && t.utils.warn(
|
|
161
|
+
n in this.registeredFunctions && t.utils.warn("Overwriting existing registered function: " + n), e.label = n, t.Pipeline.registeredFunctions[e.label] = e;
|
|
162
162
|
}, t.Pipeline.warnIfFunctionNotRegistered = function (e) {
|
|
163
163
|
var n = e.label && e.label in this.registeredFunctions;
|
|
164
164
|
n || t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index.
|
|
@@ -167,7 +167,7 @@ window.translations = {
|
|
|
167
167
|
var n = new t.Pipeline();
|
|
168
168
|
return e.forEach(function (r) {
|
|
169
169
|
var i = t.Pipeline.registeredFunctions[r];
|
|
170
|
-
if (i) n.add(i);else throw new Error(
|
|
170
|
+
if (i) n.add(i);else throw new Error("Cannot load unregistered function: " + r);
|
|
171
171
|
}), n;
|
|
172
172
|
}, t.Pipeline.prototype.add = function () {
|
|
173
173
|
var e = Array.prototype.slice.call(arguments);
|
|
@@ -177,12 +177,12 @@ window.translations = {
|
|
|
177
177
|
}, t.Pipeline.prototype.after = function (e, n) {
|
|
178
178
|
t.Pipeline.warnIfFunctionNotRegistered(n);
|
|
179
179
|
var r = this._stack.indexOf(e);
|
|
180
|
-
if (r == -1) throw new Error(
|
|
180
|
+
if (r == -1) throw new Error("Cannot find existingFn");
|
|
181
181
|
r = r + 1, this._stack.splice(r, 0, n);
|
|
182
182
|
}, t.Pipeline.prototype.before = function (e, n) {
|
|
183
183
|
t.Pipeline.warnIfFunctionNotRegistered(n);
|
|
184
184
|
var r = this._stack.indexOf(e);
|
|
185
|
-
if (r == -1) throw new Error(
|
|
185
|
+
if (r == -1) throw new Error("Cannot find existingFn");
|
|
186
186
|
this._stack.splice(r, 0, n);
|
|
187
187
|
}, t.Pipeline.prototype.remove = function (e) {
|
|
188
188
|
var n = this._stack.indexOf(e);
|
|
@@ -191,7 +191,7 @@ window.translations = {
|
|
|
191
191
|
for (var n = this._stack.length, r = 0; r < n; r++) {
|
|
192
192
|
for (var i = this._stack[r], s = [], o = 0; o < e.length; o++) {
|
|
193
193
|
var a = i(e[o], o, e);
|
|
194
|
-
if (!(a == null || a ===
|
|
194
|
+
if (!(a == null || a === "")) if (Array.isArray(a)) for (var l = 0; l < a.length; l++) s.push(a[l]);else s.push(a);
|
|
195
195
|
}
|
|
196
196
|
e = s;
|
|
197
197
|
}
|
|
@@ -217,7 +217,7 @@ window.translations = {
|
|
|
217
217
|
if (o < e) return (s + 1) * 2;
|
|
218
218
|
}, t.Vector.prototype.insert = function (e, n) {
|
|
219
219
|
this.upsert(e, n, function () {
|
|
220
|
-
throw
|
|
220
|
+
throw "duplicate index";
|
|
221
221
|
});
|
|
222
222
|
}, t.Vector.prototype.upsert = function (e, n, r) {
|
|
223
223
|
this._magnitude = 0;
|
|
@@ -243,45 +243,45 @@ window.translations = {
|
|
|
243
243
|
};
|
|
244
244
|
t.stemmer = function () {
|
|
245
245
|
var e = {
|
|
246
|
-
ational:
|
|
247
|
-
tional:
|
|
248
|
-
enci:
|
|
249
|
-
anci:
|
|
250
|
-
izer:
|
|
251
|
-
bli:
|
|
252
|
-
alli:
|
|
253
|
-
entli:
|
|
254
|
-
eli:
|
|
255
|
-
ousli:
|
|
256
|
-
ization:
|
|
257
|
-
ation:
|
|
258
|
-
ator:
|
|
259
|
-
alism:
|
|
260
|
-
iveness:
|
|
261
|
-
fulness:
|
|
262
|
-
ousness:
|
|
263
|
-
aliti:
|
|
264
|
-
iviti:
|
|
265
|
-
biliti:
|
|
266
|
-
logi:
|
|
246
|
+
ational: "ate",
|
|
247
|
+
tional: "tion",
|
|
248
|
+
enci: "ence",
|
|
249
|
+
anci: "ance",
|
|
250
|
+
izer: "ize",
|
|
251
|
+
bli: "ble",
|
|
252
|
+
alli: "al",
|
|
253
|
+
entli: "ent",
|
|
254
|
+
eli: "e",
|
|
255
|
+
ousli: "ous",
|
|
256
|
+
ization: "ize",
|
|
257
|
+
ation: "ate",
|
|
258
|
+
ator: "ate",
|
|
259
|
+
alism: "al",
|
|
260
|
+
iveness: "ive",
|
|
261
|
+
fulness: "ful",
|
|
262
|
+
ousness: "ous",
|
|
263
|
+
aliti: "al",
|
|
264
|
+
iviti: "ive",
|
|
265
|
+
biliti: "ble",
|
|
266
|
+
logi: "log"
|
|
267
267
|
},
|
|
268
268
|
n = {
|
|
269
|
-
icate:
|
|
270
|
-
ative:
|
|
271
|
-
alize:
|
|
272
|
-
iciti:
|
|
273
|
-
ical:
|
|
274
|
-
ful:
|
|
275
|
-
ness:
|
|
269
|
+
icate: "ic",
|
|
270
|
+
ative: "",
|
|
271
|
+
alize: "al",
|
|
272
|
+
iciti: "ic",
|
|
273
|
+
ical: "ic",
|
|
274
|
+
ful: "",
|
|
275
|
+
ness: ""
|
|
276
276
|
},
|
|
277
|
-
r =
|
|
278
|
-
i =
|
|
279
|
-
s = r +
|
|
280
|
-
o = i +
|
|
281
|
-
a =
|
|
282
|
-
l =
|
|
283
|
-
u =
|
|
284
|
-
d =
|
|
277
|
+
r = "[^aeiou]",
|
|
278
|
+
i = "[aeiouy]",
|
|
279
|
+
s = r + "[^aeiouy]*",
|
|
280
|
+
o = i + "[aeiou]*",
|
|
281
|
+
a = "^(" + s + ")?" + o + s,
|
|
282
|
+
l = "^(" + s + ")?" + o + s + "(" + o + ")?$",
|
|
283
|
+
u = "^(" + s + ")?" + o + s + o + s,
|
|
284
|
+
d = "^(" + s + ")?" + i,
|
|
285
285
|
m = new RegExp(a),
|
|
286
286
|
p = new RegExp(u),
|
|
287
287
|
b = new RegExp(l),
|
|
@@ -292,8 +292,8 @@ window.translations = {
|
|
|
292
292
|
S = /^(.+?)(ed|ing)$/,
|
|
293
293
|
w = /.$/,
|
|
294
294
|
k = /(at|bl|iz)$/,
|
|
295
|
-
_ = new RegExp(
|
|
296
|
-
B = new RegExp(
|
|
295
|
+
_ = new RegExp("([^aeiouylsz])\\1$"),
|
|
296
|
+
B = new RegExp("^" + s + i + "[^aeiouwxy]$"),
|
|
297
297
|
A = /^(.+?[^aeiou])y$/,
|
|
298
298
|
j = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,
|
|
299
299
|
q = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,
|
|
@@ -301,20 +301,20 @@ window.translations = {
|
|
|
301
301
|
$ = /^(.+?)(s|t)(ion)$/,
|
|
302
302
|
C = /^(.+?)e$/,
|
|
303
303
|
z = /ll$/,
|
|
304
|
-
W = new RegExp(
|
|
304
|
+
W = new RegExp("^" + s + i + "[^aeiouwxy]$"),
|
|
305
305
|
H = function (c) {
|
|
306
306
|
var v, P, T, h, x, O, M;
|
|
307
307
|
if (c.length < 3) return c;
|
|
308
|
-
if (T = c.substr(0, 1), T ==
|
|
308
|
+
if (T = c.substr(0, 1), T == "y" && (c = T.toUpperCase() + c.substr(1)), h = L, x = f, h.test(c) ? c = c.replace(h, "$1$2") : x.test(c) && (c = c.replace(x, "$1$2")), h = y, x = S, h.test(c)) {
|
|
309
309
|
var E = h.exec(c);
|
|
310
|
-
h = m, h.test(E[1]) && (h = w, c = c.replace(h,
|
|
310
|
+
h = m, h.test(E[1]) && (h = w, c = c.replace(h, ""));
|
|
311
311
|
} else if (x.test(c)) {
|
|
312
312
|
var E = x.exec(c);
|
|
313
|
-
v = E[1], x = g, x.test(v) && (c = v, x = k, O = _, M = B, x.test(c) ? c = c +
|
|
313
|
+
v = E[1], x = g, x.test(v) && (c = v, x = k, O = _, M = B, x.test(c) ? c = c + "e" : O.test(c) ? (h = w, c = c.replace(h, "")) : M.test(c) && (c = c + "e"));
|
|
314
314
|
}
|
|
315
315
|
if (h = A, h.test(c)) {
|
|
316
316
|
var E = h.exec(c);
|
|
317
|
-
v = E[1], c = v +
|
|
317
|
+
v = E[1], c = v + "i";
|
|
318
318
|
}
|
|
319
319
|
if (h = j, h.test(c)) {
|
|
320
320
|
var E = h.exec(c);
|
|
@@ -335,12 +335,12 @@ window.translations = {
|
|
|
335
335
|
var E = h.exec(c);
|
|
336
336
|
v = E[1], h = p, x = b, O = W, (h.test(v) || x.test(v) && !O.test(v)) && (c = v);
|
|
337
337
|
}
|
|
338
|
-
return h = z, x = p, h.test(c) && x.test(c) && (h = w, c = c.replace(h,
|
|
338
|
+
return h = z, x = p, h.test(c) && x.test(c) && (h = w, c = c.replace(h, "")), T == "y" && (c = T.toLowerCase() + c.substr(1)), c;
|
|
339
339
|
};
|
|
340
340
|
return function (R) {
|
|
341
341
|
return R.update(H);
|
|
342
342
|
};
|
|
343
|
-
}(), t.Pipeline.registerFunction(t.stemmer,
|
|
343
|
+
}(), t.Pipeline.registerFunction(t.stemmer, "stemmer");
|
|
344
344
|
t.generateStopWordFilter = function (e) {
|
|
345
345
|
var n = e.reduce(function (r, i) {
|
|
346
346
|
return r[i] = i, r;
|
|
@@ -348,19 +348,19 @@ window.translations = {
|
|
|
348
348
|
return function (r) {
|
|
349
349
|
if (r && n[r.toString()] !== r.toString()) return r;
|
|
350
350
|
};
|
|
351
|
-
}, t.stopWordFilter = t.generateStopWordFilter([
|
|
351
|
+
}, t.stopWordFilter = t.generateStopWordFilter(["a", "able", "about", "across", "after", "all", "almost", "also", "am", "among", "an", "and", "any", "are", "as", "at", "be", "because", "been", "but", "by", "can", "cannot", "could", "dear", "did", "do", "does", "either", "else", "ever", "every", "for", "from", "get", "got", "had", "has", "have", "he", "her", "hers", "him", "his", "how", "however", "i", "if", "in", "into", "is", "it", "its", "just", "least", "let", "like", "likely", "may", "me", "might", "most", "must", "my", "neither", "no", "nor", "not", "of", "off", "often", "on", "only", "or", "other", "our", "own", "rather", "said", "say", "says", "she", "should", "since", "so", "some", "than", "that", "the", "their", "them", "then", "there", "these", "they", "this", "tis", "to", "too", "twas", "us", "wants", "was", "we", "were", "what", "when", "where", "which", "while", "who", "whom", "why", "will", "with", "would", "yet", "you", "your"]), t.Pipeline.registerFunction(t.stopWordFilter, "stopWordFilter");
|
|
352
352
|
t.trimmer = function (e) {
|
|
353
353
|
return e.update(function (n) {
|
|
354
|
-
return n.replace(/^\W+/,
|
|
354
|
+
return n.replace(/^\W+/, "").replace(/\W+$/, "");
|
|
355
355
|
});
|
|
356
|
-
}, t.Pipeline.registerFunction(t.trimmer,
|
|
356
|
+
}, t.Pipeline.registerFunction(t.trimmer, "trimmer");
|
|
357
357
|
t.TokenSet = function () {
|
|
358
358
|
this.final = !1, this.edges = {}, this.id = t.TokenSet._nextId, t.TokenSet._nextId += 1;
|
|
359
359
|
}, t.TokenSet._nextId = 1, t.TokenSet.fromArray = function (e) {
|
|
360
360
|
for (var n = new t.TokenSet.Builder(), r = 0, i = e.length; r < i; r++) n.insert(e[r]);
|
|
361
361
|
return n.finish(), n.root;
|
|
362
362
|
}, t.TokenSet.fromClause = function (e) {
|
|
363
|
-
return
|
|
363
|
+
return "editDistance" in e ? t.TokenSet.fromFuzzyString(e.term, e.editDistance) : t.TokenSet.fromString(e.term);
|
|
364
364
|
}, t.TokenSet.fromFuzzyString = function (e, n) {
|
|
365
365
|
for (var r = new t.TokenSet(), i = [{
|
|
366
366
|
node: r,
|
|
@@ -378,9 +378,9 @@ window.translations = {
|
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
if (s.editsRemaining != 0) {
|
|
381
|
-
if (
|
|
381
|
+
if ("*" in s.node.edges) var l = s.node.edges["*"];else {
|
|
382
382
|
var l = new t.TokenSet();
|
|
383
|
-
s.node.edges[
|
|
383
|
+
s.node.edges["*"] = l;
|
|
384
384
|
}
|
|
385
385
|
if (s.str.length == 0 && (l.final = !0), i.push({
|
|
386
386
|
node: l,
|
|
@@ -391,9 +391,9 @@ window.translations = {
|
|
|
391
391
|
editsRemaining: s.editsRemaining - 1,
|
|
392
392
|
str: s.str.slice(1)
|
|
393
393
|
}), s.str.length == 1 && (s.node.final = !0), s.str.length >= 1) {
|
|
394
|
-
if (
|
|
394
|
+
if ("*" in s.node.edges) var u = s.node.edges["*"];else {
|
|
395
395
|
var u = new t.TokenSet();
|
|
396
|
-
s.node.edges[
|
|
396
|
+
s.node.edges["*"] = u;
|
|
397
397
|
}
|
|
398
398
|
s.str.length == 1 && (u.final = !0), i.push({
|
|
399
399
|
node: u,
|
|
@@ -418,7 +418,7 @@ window.translations = {
|
|
|
418
418
|
for (var n = new t.TokenSet(), r = n, i = 0, s = e.length; i < s; i++) {
|
|
419
419
|
var o = e[i],
|
|
420
420
|
a = i == s - 1;
|
|
421
|
-
if (o ==
|
|
421
|
+
if (o == "*") n.edges[o] = n, n.final = a;else {
|
|
422
422
|
var l = new t.TokenSet();
|
|
423
423
|
l.final = a, n.edges[o] = l, n = l;
|
|
424
424
|
}
|
|
@@ -426,7 +426,7 @@ window.translations = {
|
|
|
426
426
|
return r;
|
|
427
427
|
}, t.TokenSet.prototype.toArray = function () {
|
|
428
428
|
for (var e = [], n = [{
|
|
429
|
-
prefix:
|
|
429
|
+
prefix: "",
|
|
430
430
|
node: this
|
|
431
431
|
}]; n.length;) {
|
|
432
432
|
var r = n.pop(),
|
|
@@ -444,7 +444,7 @@ window.translations = {
|
|
|
444
444
|
return e;
|
|
445
445
|
}, t.TokenSet.prototype.toString = function () {
|
|
446
446
|
if (this._str) return this._str;
|
|
447
|
-
for (var e = this.final ?
|
|
447
|
+
for (var e = this.final ? "1" : "0", n = Object.keys(this.edges).sort(), r = n.length, i = 0; i < r; i++) {
|
|
448
448
|
var s = n[i],
|
|
449
449
|
o = this.edges[s];
|
|
450
450
|
e = e + s + o.id;
|
|
@@ -459,7 +459,7 @@ window.translations = {
|
|
|
459
459
|
r = i.pop();
|
|
460
460
|
for (var s = Object.keys(r.qNode.edges), o = s.length, a = Object.keys(r.node.edges), l = a.length, u = 0; u < o; u++) for (var d = s[u], m = 0; m < l; m++) {
|
|
461
461
|
var p = a[m];
|
|
462
|
-
if (p == d || d ==
|
|
462
|
+
if (p == d || d == "*") {
|
|
463
463
|
var b = r.node.edges[p],
|
|
464
464
|
g = r.qNode.edges[d],
|
|
465
465
|
L = b.final && g.final,
|
|
@@ -474,11 +474,11 @@ window.translations = {
|
|
|
474
474
|
}
|
|
475
475
|
return n;
|
|
476
476
|
}, t.TokenSet.Builder = function () {
|
|
477
|
-
this.previousWord =
|
|
477
|
+
this.previousWord = "", this.root = new t.TokenSet(), this.uncheckedNodes = [], this.minimizedNodes = {};
|
|
478
478
|
}, t.TokenSet.Builder.prototype.insert = function (e) {
|
|
479
479
|
var n,
|
|
480
480
|
r = 0;
|
|
481
|
-
if (e < this.previousWord) throw new Error(
|
|
481
|
+
if (e < this.previousWord) throw new Error("Out of order word insertion");
|
|
482
482
|
for (var i = 0; i < e.length && i < this.previousWord.length && e[i] == this.previousWord[i]; i++) r++;
|
|
483
483
|
this.minimize(r), this.uncheckedNodes.length == 0 ? n = this.root : n = this.uncheckedNodes[this.uncheckedNodes.length - 1].child;
|
|
484
484
|
for (var i = r; i < e.length; i++) {
|
|
@@ -533,7 +533,7 @@ window.translations = {
|
|
|
533
533
|
var y = u.fields[f],
|
|
534
534
|
B = k[y],
|
|
535
535
|
A = Object.keys(B),
|
|
536
|
-
j = w +
|
|
536
|
+
j = w + "/" + y,
|
|
537
537
|
q = new t.Set(A);
|
|
538
538
|
if (u.presence == t.Query.presence.REQUIRED && (m = m.union(q), o[y] === void 0 && (o[y] = t.Set.complete)), u.presence == t.Query.presence.PROHIBITED) {
|
|
539
539
|
a[y] === void 0 && (a[y] = t.Set.empty), a[y] = a[y].union(q);
|
|
@@ -631,7 +631,7 @@ window.translations = {
|
|
|
631
631
|
return a.finish(), n.fields = e.fields, n.fieldVectors = r, n.invertedIndex = s, n.tokenSet = a.root, n.pipeline = l, new t.Index(n);
|
|
632
632
|
};
|
|
633
633
|
t.Builder = function () {
|
|
634
|
-
this._ref =
|
|
634
|
+
this._ref = "id", this._fields = Object.create(null), this._documents = Object.create(null), this.invertedIndex = Object.create(null), this.fieldTermFrequencies = {}, this.fieldLengths = {}, this.tokenizer = t.tokenizer, this.pipeline = new t.Pipeline(), this.searchPipeline = new t.Pipeline(), this.documentCount = 0, this._b = .75, this._k1 = 1.2, this.termIndex = 0, this.metadataWhitelist = [];
|
|
635
635
|
}, t.Builder.prototype.ref = function (e) {
|
|
636
636
|
this._ref = e;
|
|
637
637
|
}, t.Builder.prototype.field = function (e, n) {
|
|
@@ -746,12 +746,12 @@ window.translations = {
|
|
|
746
746
|
}
|
|
747
747
|
}, t.Query = function (e) {
|
|
748
748
|
this.clauses = [], this.allFields = e;
|
|
749
|
-
}, t.Query.wildcard = new String(
|
|
749
|
+
}, t.Query.wildcard = new String("*"), t.Query.wildcard.NONE = 0, t.Query.wildcard.LEADING = 1, t.Query.wildcard.TRAILING = 2, t.Query.presence = {
|
|
750
750
|
OPTIONAL: 1,
|
|
751
751
|
REQUIRED: 2,
|
|
752
752
|
PROHIBITED: 3
|
|
753
753
|
}, t.Query.prototype.clause = function (e) {
|
|
754
|
-
return
|
|
754
|
+
return "fields" in e || (e.fields = this.allFields), "boost" in e || (e.boost = 1), "usePipeline" in e || (e.usePipeline = !0), "wildcard" in e || (e.wildcard = t.Query.wildcard.NONE), e.wildcard & t.Query.wildcard.LEADING && e.term.charAt(0) != t.Query.wildcard && (e.term = "*" + e.term), e.wildcard & t.Query.wildcard.TRAILING && e.term.slice(-1) != t.Query.wildcard && (e.term = "" + e.term + "*"), "presence" in e || (e.presence = t.Query.presence.OPTIONAL), this.clauses.push(e), this;
|
|
755
755
|
}, t.Query.prototype.isNegated = function () {
|
|
756
756
|
for (var e = 0; e < this.clauses.length; e++) if (this.clauses[e].presence != t.Query.presence.PROHIBITED) return !1;
|
|
757
757
|
return !0;
|
|
@@ -762,14 +762,14 @@ window.translations = {
|
|
|
762
762
|
var r = n || {};
|
|
763
763
|
return r.term = e.toString(), this.clause(r), this;
|
|
764
764
|
}, t.QueryParseError = function (e, n, r) {
|
|
765
|
-
this.name =
|
|
765
|
+
this.name = "QueryParseError", this.message = e, this.start = n, this.end = r;
|
|
766
766
|
}, t.QueryParseError.prototype = new Error(), t.QueryLexer = function (e) {
|
|
767
767
|
this.lexemes = [], this.str = e, this.length = e.length, this.pos = 0, this.start = 0, this.escapeCharPositions = [];
|
|
768
768
|
}, t.QueryLexer.prototype.run = function () {
|
|
769
769
|
for (var e = t.QueryLexer.lexText; e;) e = e(this);
|
|
770
770
|
}, t.QueryLexer.prototype.sliceString = function () {
|
|
771
771
|
for (var e = [], n = this.start, r = this.pos, i = 0; i < this.escapeCharPositions.length; i++) r = this.escapeCharPositions[i], e.push(this.str.slice(n, r)), n = r + 1;
|
|
772
|
-
return e.push(this.str.slice(n, this.pos)), this.escapeCharPositions.length = 0, e.join(
|
|
772
|
+
return e.push(this.str.slice(n, this.pos)), this.escapeCharPositions.length = 0, e.join("");
|
|
773
773
|
}, t.QueryLexer.prototype.emit = function (e) {
|
|
774
774
|
this.lexemes.push({
|
|
775
775
|
type: e,
|
|
@@ -795,7 +795,7 @@ window.translations = {
|
|
|
795
795
|
e != t.QueryLexer.EOS && this.backup();
|
|
796
796
|
}, t.QueryLexer.prototype.more = function () {
|
|
797
797
|
return this.pos < this.length;
|
|
798
|
-
}, t.QueryLexer.EOS =
|
|
798
|
+
}, t.QueryLexer.EOS = "EOS", t.QueryLexer.FIELD = "FIELD", t.QueryLexer.TERM = "TERM", t.QueryLexer.EDIT_DISTANCE = "EDIT_DISTANCE", t.QueryLexer.BOOST = "BOOST", t.QueryLexer.PRESENCE = "PRESENCE", t.QueryLexer.lexField = function (e) {
|
|
799
799
|
return e.backup(), e.emit(t.QueryLexer.FIELD), e.ignore(), t.QueryLexer.lexText;
|
|
800
800
|
}, t.QueryLexer.lexTerm = function (e) {
|
|
801
801
|
if (e.width() > 1 && (e.backup(), e.emit(t.QueryLexer.TERM)), e.ignore(), e.more()) return t.QueryLexer.lexText;
|
|
@@ -813,10 +813,10 @@ window.translations = {
|
|
|
813
813
|
e.escapeCharacter();
|
|
814
814
|
continue;
|
|
815
815
|
}
|
|
816
|
-
if (n ==
|
|
817
|
-
if (n ==
|
|
818
|
-
if (n ==
|
|
819
|
-
if (n ==
|
|
816
|
+
if (n == ":") return t.QueryLexer.lexField;
|
|
817
|
+
if (n == "~") return e.backup(), e.width() > 0 && e.emit(t.QueryLexer.TERM), t.QueryLexer.lexEditDistance;
|
|
818
|
+
if (n == "^") return e.backup(), e.width() > 0 && e.emit(t.QueryLexer.TERM), t.QueryLexer.lexBoost;
|
|
819
|
+
if (n == "+" && e.width() === 1 || n == "-" && e.width() === 1) return e.emit(t.QueryLexer.PRESENCE), t.QueryLexer.lexText;
|
|
820
820
|
if (n.match(t.QueryLexer.termSeparator)) return t.QueryLexer.lexTerm;
|
|
821
821
|
}
|
|
822
822
|
}, t.QueryParser = function (e, n) {
|
|
@@ -843,17 +843,17 @@ window.translations = {
|
|
|
843
843
|
case t.QueryLexer.TERM:
|
|
844
844
|
return t.QueryParser.parseTerm;
|
|
845
845
|
default:
|
|
846
|
-
var r =
|
|
846
|
+
var r = "expected either a field or a term, found " + n.type;
|
|
847
847
|
throw n.str.length >= 1 && (r += " with value '" + n.str + "'"), new t.QueryParseError(r, n.start, n.end);
|
|
848
848
|
}
|
|
849
849
|
}, t.QueryParser.parsePresence = function (e) {
|
|
850
850
|
var n = e.consumeLexeme();
|
|
851
851
|
if (n != null) {
|
|
852
852
|
switch (n.str) {
|
|
853
|
-
case
|
|
853
|
+
case "-":
|
|
854
854
|
e.currentClause.presence = t.Query.presence.PROHIBITED;
|
|
855
855
|
break;
|
|
856
|
-
case
|
|
856
|
+
case "+":
|
|
857
857
|
e.currentClause.presence = t.Query.presence.REQUIRED;
|
|
858
858
|
break;
|
|
859
859
|
default:
|
|
@@ -862,7 +862,7 @@ window.translations = {
|
|
|
862
862
|
}
|
|
863
863
|
var i = e.peekLexeme();
|
|
864
864
|
if (i == null) {
|
|
865
|
-
var r =
|
|
865
|
+
var r = "expecting term or field, found nothing";
|
|
866
866
|
throw new t.QueryParseError(r, n.start, n.end);
|
|
867
867
|
}
|
|
868
868
|
switch (i.type) {
|
|
@@ -881,14 +881,14 @@ window.translations = {
|
|
|
881
881
|
if (e.query.allFields.indexOf(n.str) == -1) {
|
|
882
882
|
var r = e.query.allFields.map(function (o) {
|
|
883
883
|
return "'" + o + "'";
|
|
884
|
-
}).join(
|
|
884
|
+
}).join(", "),
|
|
885
885
|
i = "unrecognised field '" + n.str + "', possible fields: " + r;
|
|
886
886
|
throw new t.QueryParseError(i, n.start, n.end);
|
|
887
887
|
}
|
|
888
888
|
e.currentClause.fields = [n.str];
|
|
889
889
|
var s = e.peekLexeme();
|
|
890
890
|
if (s == null) {
|
|
891
|
-
var i =
|
|
891
|
+
var i = "expecting term, found nothing";
|
|
892
892
|
throw new t.QueryParseError(i, n.start, n.end);
|
|
893
893
|
}
|
|
894
894
|
switch (s.type) {
|
|
@@ -902,7 +902,7 @@ window.translations = {
|
|
|
902
902
|
}, t.QueryParser.parseTerm = function (e) {
|
|
903
903
|
var n = e.consumeLexeme();
|
|
904
904
|
if (n != null) {
|
|
905
|
-
e.currentClause.term = n.str.toLowerCase(), n.str.indexOf(
|
|
905
|
+
e.currentClause.term = n.str.toLowerCase(), n.str.indexOf("*") != -1 && (e.currentClause.usePipeline = !1);
|
|
906
906
|
var r = e.peekLexeme();
|
|
907
907
|
if (r == null) {
|
|
908
908
|
e.nextClause();
|
|
@@ -929,7 +929,7 @@ window.translations = {
|
|
|
929
929
|
if (n != null) {
|
|
930
930
|
var r = parseInt(n.str, 10);
|
|
931
931
|
if (isNaN(r)) {
|
|
932
|
-
var i =
|
|
932
|
+
var i = "edit distance must be numeric";
|
|
933
933
|
throw new t.QueryParseError(i, n.start, n.end);
|
|
934
934
|
}
|
|
935
935
|
e.currentClause.editDistance = r;
|
|
@@ -959,7 +959,7 @@ window.translations = {
|
|
|
959
959
|
if (n != null) {
|
|
960
960
|
var r = parseInt(n.str, 10);
|
|
961
961
|
if (isNaN(r)) {
|
|
962
|
-
var i =
|
|
962
|
+
var i = "boost must be numeric";
|
|
963
963
|
throw new t.QueryParseError(i, n.start, n.end);
|
|
964
964
|
}
|
|
965
965
|
e.currentClause.boost = r;
|
|
@@ -985,7 +985,7 @@ window.translations = {
|
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
}, function (e, n) {
|
|
988
|
-
typeof define
|
|
988
|
+
typeof define == "function" && define.amd ? define(n) : typeof ae == "object" ? le.exports = n() : e.lunr = n();
|
|
989
989
|
}(this, function () {
|
|
990
990
|
return t;
|
|
991
991
|
});
|
|
@@ -1002,7 +1002,7 @@ window.translations = {
|
|
|
1002
1002
|
function U() {
|
|
1003
1003
|
_classCallCheck(this, U);
|
|
1004
1004
|
this.alwaysVisibleMember = null;
|
|
1005
|
-
this.createComponents(document.body), this.ensureFocusedElementVisible(), this.listenForCodeCopies(), window.addEventListener(
|
|
1005
|
+
this.createComponents(document.body), this.ensureFocusedElementVisible(), this.listenForCodeCopies(), window.addEventListener("hashchange", () => this.ensureFocusedElementVisible()), document.body.style.display || (this.ensureFocusedElementVisible(), this.updateIndexVisibility(), this.scrollToHash());
|
|
1006
1006
|
}
|
|
1007
1007
|
return _createClass(U, [{
|
|
1008
1008
|
key: "createComponents",
|
|
@@ -1024,7 +1024,7 @@ window.translations = {
|
|
|
1024
1024
|
}, {
|
|
1025
1025
|
key: "showPage",
|
|
1026
1026
|
value: function showPage() {
|
|
1027
|
-
document.body.style.display && (document.body.style.removeProperty(
|
|
1027
|
+
document.body.style.display && (document.body.style.removeProperty("display"), this.ensureFocusedElementVisible(), this.updateIndexVisibility(), this.scrollToHash());
|
|
1028
1028
|
}
|
|
1029
1029
|
}, {
|
|
1030
1030
|
key: "scrollToHash",
|
|
@@ -1033,60 +1033,60 @@ window.translations = {
|
|
|
1033
1033
|
let e = document.getElementById(location.hash.substring(1));
|
|
1034
1034
|
if (!e) return;
|
|
1035
1035
|
e.scrollIntoView({
|
|
1036
|
-
behavior:
|
|
1037
|
-
block:
|
|
1036
|
+
behavior: "instant",
|
|
1037
|
+
block: "start"
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
}, {
|
|
1042
1042
|
key: "ensureActivePageVisible",
|
|
1043
1043
|
value: function ensureActivePageVisible() {
|
|
1044
|
-
let e = document.querySelector(
|
|
1044
|
+
let e = document.querySelector(".tsd-navigation .current"),
|
|
1045
1045
|
n = e?.parentElement;
|
|
1046
|
-
for (; n && !n.classList.contains(
|
|
1046
|
+
for (; n && !n.classList.contains(".tsd-navigation");) n instanceof HTMLDetailsElement && (n.open = !0), n = n.parentElement;
|
|
1047
1047
|
if (e && !Ve(e)) {
|
|
1048
1048
|
let r = e.getBoundingClientRect().top - document.documentElement.clientHeight / 4;
|
|
1049
|
-
document.querySelector(
|
|
1049
|
+
document.querySelector(".site-menu").scrollTop = r, document.querySelector(".col-sidebar").scrollTop = r;
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
}, {
|
|
1053
1053
|
key: "updateIndexVisibility",
|
|
1054
1054
|
value: function updateIndexVisibility() {
|
|
1055
|
-
let e = document.querySelector(
|
|
1055
|
+
let e = document.querySelector(".tsd-index-content"),
|
|
1056
1056
|
n = e?.open;
|
|
1057
|
-
e && (e.open = !0), document.querySelectorAll(
|
|
1058
|
-
r.style.display =
|
|
1059
|
-
let i = Array.from(r.querySelectorAll(
|
|
1060
|
-
r.style.display = i ?
|
|
1057
|
+
e && (e.open = !0), document.querySelectorAll(".tsd-index-section").forEach(r => {
|
|
1058
|
+
r.style.display = "block";
|
|
1059
|
+
let i = Array.from(r.querySelectorAll(".tsd-index-link")).every(s => s.offsetParent == null);
|
|
1060
|
+
r.style.display = i ? "none" : "block";
|
|
1061
1061
|
}), e && (e.open = n);
|
|
1062
1062
|
}
|
|
1063
1063
|
}, {
|
|
1064
1064
|
key: "ensureFocusedElementVisible",
|
|
1065
1065
|
value: function ensureFocusedElementVisible() {
|
|
1066
|
-
if (this.alwaysVisibleMember && (this.alwaysVisibleMember.classList.remove(
|
|
1066
|
+
if (this.alwaysVisibleMember && (this.alwaysVisibleMember.classList.remove("always-visible"), this.alwaysVisibleMember.firstElementChild.remove(), this.alwaysVisibleMember = null), !location.hash) return;
|
|
1067
1067
|
let e = document.getElementById(location.hash.substring(1));
|
|
1068
1068
|
if (!e) return;
|
|
1069
1069
|
let n = e.parentElement;
|
|
1070
|
-
for (; n && n.tagName !==
|
|
1070
|
+
for (; n && n.tagName !== "SECTION";) n = n.parentElement;
|
|
1071
1071
|
if (!n) return;
|
|
1072
1072
|
let r = n.offsetParent == null,
|
|
1073
1073
|
i = n;
|
|
1074
1074
|
for (; i !== document.body;) i instanceof HTMLDetailsElement && (i.open = !0), i = i.parentElement;
|
|
1075
1075
|
if (n.offsetParent == null) {
|
|
1076
|
-
this.alwaysVisibleMember = n, n.classList.add(
|
|
1077
|
-
let s = document.createElement(
|
|
1078
|
-
s.classList.add(
|
|
1076
|
+
this.alwaysVisibleMember = n, n.classList.add("always-visible");
|
|
1077
|
+
let s = document.createElement("p");
|
|
1078
|
+
s.classList.add("warning"), s.textContent = window.translations.normally_hidden, n.prepend(s);
|
|
1079
1079
|
}
|
|
1080
1080
|
r && e.scrollIntoView();
|
|
1081
1081
|
}
|
|
1082
1082
|
}, {
|
|
1083
1083
|
key: "listenForCodeCopies",
|
|
1084
1084
|
value: function listenForCodeCopies() {
|
|
1085
|
-
document.querySelectorAll(
|
|
1085
|
+
document.querySelectorAll("pre > button").forEach(e => {
|
|
1086
1086
|
let n;
|
|
1087
|
-
e.addEventListener(
|
|
1088
|
-
e.previousElementSibling instanceof HTMLElement && navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()), e.textContent = window.translations.copied, e.classList.add(
|
|
1089
|
-
e.classList.remove(
|
|
1087
|
+
e.addEventListener("click", () => {
|
|
1088
|
+
e.previousElementSibling instanceof HTMLElement && navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()), e.textContent = window.translations.copied, e.classList.add("visible"), clearTimeout(n), n = setTimeout(() => {
|
|
1089
|
+
e.classList.remove("visible"), n = setTimeout(() => {
|
|
1090
1090
|
e.textContent = window.translations.copy;
|
|
1091
1091
|
}, 100);
|
|
1092
1092
|
}, 1e3);
|
|
@@ -1110,50 +1110,50 @@ window.translations = {
|
|
|
1110
1110
|
async function ce(t, e) {
|
|
1111
1111
|
if (!window.searchData) return;
|
|
1112
1112
|
let n = await fetch(window.searchData),
|
|
1113
|
-
r = new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream(
|
|
1113
|
+
r = new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),
|
|
1114
1114
|
i = await new Response(r).json();
|
|
1115
|
-
t.data = i, t.index = pe.Index.load(i.index), e.classList.remove(
|
|
1115
|
+
t.data = i, t.index = pe.Index.load(i.index), e.classList.remove("loading"), e.classList.add("ready");
|
|
1116
1116
|
}
|
|
1117
1117
|
function fe() {
|
|
1118
|
-
let t = document.getElementById(
|
|
1118
|
+
let t = document.getElementById("tsd-search");
|
|
1119
1119
|
if (!t) return;
|
|
1120
1120
|
let e = {
|
|
1121
|
-
base: t.dataset.base +
|
|
1121
|
+
base: t.dataset.base + "/"
|
|
1122
1122
|
},
|
|
1123
|
-
n = document.getElementById(
|
|
1124
|
-
t.classList.add(
|
|
1125
|
-
t.classList.remove(
|
|
1126
|
-
}), n.addEventListener(
|
|
1123
|
+
n = document.getElementById("tsd-search-script");
|
|
1124
|
+
t.classList.add("loading"), n && (n.addEventListener("error", () => {
|
|
1125
|
+
t.classList.remove("loading"), t.classList.add("failure");
|
|
1126
|
+
}), n.addEventListener("load", () => {
|
|
1127
1127
|
ce(e, t);
|
|
1128
1128
|
}), ce(e, t));
|
|
1129
|
-
let r = document.querySelector(
|
|
1130
|
-
i = document.querySelector(
|
|
1131
|
-
if (!r || !i) throw new Error(
|
|
1132
|
-
i.addEventListener(
|
|
1129
|
+
let r = document.querySelector("#tsd-search input"),
|
|
1130
|
+
i = document.querySelector("#tsd-search .results");
|
|
1131
|
+
if (!r || !i) throw new Error("The input field or the result list wrapper was not found");
|
|
1132
|
+
i.addEventListener("mouseup", () => {
|
|
1133
1133
|
te(t);
|
|
1134
|
-
}), r.addEventListener(
|
|
1134
|
+
}), r.addEventListener("focus", () => t.classList.add("has-focus")), He(t, i, r, e);
|
|
1135
1135
|
}
|
|
1136
1136
|
function He(t, e, n, r) {
|
|
1137
|
-
n.addEventListener(
|
|
1137
|
+
n.addEventListener("input", oe(() => {
|
|
1138
1138
|
Ne(t, e, n, r);
|
|
1139
|
-
}, 200)), n.addEventListener(
|
|
1140
|
-
i.key ==
|
|
1141
|
-
}), document.body.addEventListener(
|
|
1142
|
-
i.altKey || i.ctrlKey || i.metaKey || !n.matches(
|
|
1143
|
-
}), document.body.addEventListener(
|
|
1144
|
-
t.classList.contains(
|
|
1139
|
+
}, 200)), n.addEventListener("keydown", i => {
|
|
1140
|
+
i.key == "Enter" ? Be(e, t) : i.key == "ArrowUp" ? (de(e, n, -1), i.preventDefault()) : i.key === "ArrowDown" && (de(e, n, 1), i.preventDefault());
|
|
1141
|
+
}), document.body.addEventListener("keypress", i => {
|
|
1142
|
+
i.altKey || i.ctrlKey || i.metaKey || !n.matches(":focus") && i.key === "/" && (i.preventDefault(), n.focus());
|
|
1143
|
+
}), document.body.addEventListener("keyup", i => {
|
|
1144
|
+
t.classList.contains("has-focus") && (i.key === "Escape" || !e.matches(":focus-within") && !n.matches(":focus")) && (n.blur(), te(t));
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
function te(t) {
|
|
1148
|
-
t.classList.remove(
|
|
1148
|
+
t.classList.remove("has-focus");
|
|
1149
1149
|
}
|
|
1150
1150
|
function Ne(t, e, n, r) {
|
|
1151
1151
|
if (!r.index || !r.data) return;
|
|
1152
|
-
e.textContent =
|
|
1152
|
+
e.textContent = "";
|
|
1153
1153
|
let i = n.value.trim(),
|
|
1154
1154
|
s;
|
|
1155
1155
|
if (i) {
|
|
1156
|
-
let o = i.split(
|
|
1156
|
+
let o = i.split(" ").map(a => a.length ? `*${a}*` : "").join(" ");
|
|
1157
1157
|
s = r.index.search(o);
|
|
1158
1158
|
} else s = [];
|
|
1159
1159
|
for (let o = 0; o < s.length; o++) {
|
|
@@ -1163,10 +1163,10 @@ window.translations = {
|
|
|
1163
1163
|
l.name.toLowerCase().startsWith(i.toLowerCase()) && (u *= 1 + 1 / (1 + Math.abs(l.name.length - i.length))), a.score *= u;
|
|
1164
1164
|
}
|
|
1165
1165
|
if (s.length === 0) {
|
|
1166
|
-
let o = document.createElement(
|
|
1167
|
-
o.classList.add(
|
|
1168
|
-
let a = document.createElement(
|
|
1169
|
-
a.textContent =
|
|
1166
|
+
let o = document.createElement("li");
|
|
1167
|
+
o.classList.add("no-results");
|
|
1168
|
+
let a = document.createElement("span");
|
|
1169
|
+
a.textContent = "No results found", o.appendChild(a), e.appendChild(o);
|
|
1170
1170
|
}
|
|
1171
1171
|
s.sort((o, a) => a.score - o.score);
|
|
1172
1172
|
for (let o = 0, a = Math.min(10, s.length); o < a; o++) {
|
|
@@ -1175,45 +1175,45 @@ window.translations = {
|
|
|
1175
1175
|
d = he(l.name, i);
|
|
1176
1176
|
globalThis.DEBUG_SEARCH_WEIGHTS && (d += ` (score: ${s[o].score.toFixed(2)})`), l.parent && (d = `<span class="parent">
|
|
1177
1177
|
${he(l.parent, i)}.</span>${d}`);
|
|
1178
|
-
let m = document.createElement(
|
|
1179
|
-
m.classList.value = l.classes ??
|
|
1180
|
-
let p = document.createElement(
|
|
1181
|
-
p.href = r.base + l.url, p.innerHTML = u + d, m.append(p), p.addEventListener(
|
|
1182
|
-
e.querySelector(
|
|
1178
|
+
let m = document.createElement("li");
|
|
1179
|
+
m.classList.value = l.classes ?? "";
|
|
1180
|
+
let p = document.createElement("a");
|
|
1181
|
+
p.href = r.base + l.url, p.innerHTML = u + d, m.append(p), p.addEventListener("focus", () => {
|
|
1182
|
+
e.querySelector(".current")?.classList.remove("current"), m.classList.add("current");
|
|
1183
1183
|
}), e.appendChild(m);
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
function de(t, e, n) {
|
|
1187
|
-
let r = t.querySelector(
|
|
1188
|
-
if (!r) r = t.querySelector(n == 1 ?
|
|
1187
|
+
let r = t.querySelector(".current");
|
|
1188
|
+
if (!r) r = t.querySelector(n == 1 ? "li:first-child" : "li:last-child"), r && r.classList.add("current");else {
|
|
1189
1189
|
let i = r;
|
|
1190
1190
|
if (n === 1) do i = i.nextElementSibling ?? void 0; while (i instanceof HTMLElement && i.offsetParent == null);else do i = i.previousElementSibling ?? void 0; while (i instanceof HTMLElement && i.offsetParent == null);
|
|
1191
|
-
i ? (r.classList.remove(
|
|
1191
|
+
i ? (r.classList.remove("current"), i.classList.add("current")) : n === -1 && (r.classList.remove("current"), e.focus());
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
function Be(t, e) {
|
|
1195
|
-
let n = t.querySelector(
|
|
1196
|
-
if (n || (n = t.querySelector(
|
|
1197
|
-
let r = n.querySelector(
|
|
1195
|
+
let n = t.querySelector(".current");
|
|
1196
|
+
if (n || (n = t.querySelector("li:first-child")), n) {
|
|
1197
|
+
let r = n.querySelector("a");
|
|
1198
1198
|
r && (window.location.href = r.href), te(e);
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
function he(t, e) {
|
|
1202
|
-
if (e ===
|
|
1202
|
+
if (e === "") return t;
|
|
1203
1203
|
let n = t.toLocaleLowerCase(),
|
|
1204
1204
|
r = e.toLocaleLowerCase(),
|
|
1205
1205
|
i = [],
|
|
1206
1206
|
s = 0,
|
|
1207
1207
|
o = n.indexOf(r);
|
|
1208
1208
|
for (; o != -1;) i.push(ee(t.substring(s, o)), `<b>${ee(t.substring(o, o + r.length))}</b>`), s = o + r.length, o = n.indexOf(r, s);
|
|
1209
|
-
return i.push(ee(t.substring(s))), i.join(
|
|
1209
|
+
return i.push(ee(t.substring(s))), i.join("");
|
|
1210
1210
|
}
|
|
1211
1211
|
var je = {
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
"'":
|
|
1216
|
-
'"':
|
|
1212
|
+
"&": "&",
|
|
1213
|
+
"<": "<",
|
|
1214
|
+
">": ">",
|
|
1215
|
+
"'": "'",
|
|
1216
|
+
'"': """
|
|
1217
1217
|
};
|
|
1218
1218
|
function ee(t) {
|
|
1219
1219
|
return t.replace(/[&<>"'"]/g, e => je[e]);
|
|
@@ -1222,9 +1222,9 @@ window.translations = {
|
|
|
1222
1222
|
_classCallCheck(this, I);
|
|
1223
1223
|
this.el = e.el, this.app = e.app;
|
|
1224
1224
|
});
|
|
1225
|
-
var F =
|
|
1226
|
-
ye =
|
|
1227
|
-
N =
|
|
1225
|
+
var F = "mousedown",
|
|
1226
|
+
ye = "mousemove",
|
|
1227
|
+
N = "mouseup",
|
|
1228
1228
|
J = {
|
|
1229
1229
|
x: 0,
|
|
1230
1230
|
y: 0
|
|
@@ -1234,16 +1234,16 @@ window.translations = {
|
|
|
1234
1234
|
qe = !1,
|
|
1235
1235
|
D = !1,
|
|
1236
1236
|
ve = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1237
|
-
document.documentElement.classList.add(ve ?
|
|
1238
|
-
ve &&
|
|
1237
|
+
document.documentElement.classList.add(ve ? "is-mobile" : "not-mobile");
|
|
1238
|
+
ve && "ontouchstart" in document.documentElement && (qe = !0, F = "touchstart", ye = "touchmove", N = "touchend");
|
|
1239
1239
|
document.addEventListener(F, t => {
|
|
1240
1240
|
ne = !0, D = !1;
|
|
1241
|
-
let e = F ==
|
|
1241
|
+
let e = F == "touchstart" ? t.targetTouches[0] : t;
|
|
1242
1242
|
J.y = e.pageY || 0, J.x = e.pageX || 0;
|
|
1243
1243
|
});
|
|
1244
1244
|
document.addEventListener(ye, t => {
|
|
1245
1245
|
if (ne && !D) {
|
|
1246
|
-
let e = F ==
|
|
1246
|
+
let e = F == "touchstart" ? t.targetTouches[0] : t,
|
|
1247
1247
|
n = J.x - (e.pageX || 0),
|
|
1248
1248
|
r = J.y - (e.pageY || 0);
|
|
1249
1249
|
D = Math.sqrt(n * n + r * r) > 10;
|
|
@@ -1252,14 +1252,14 @@ window.translations = {
|
|
|
1252
1252
|
document.addEventListener(N, () => {
|
|
1253
1253
|
ne = !1;
|
|
1254
1254
|
});
|
|
1255
|
-
document.addEventListener(
|
|
1255
|
+
document.addEventListener("click", t => {
|
|
1256
1256
|
me && (t.preventDefault(), t.stopImmediatePropagation(), me = !1);
|
|
1257
1257
|
});
|
|
1258
1258
|
var X = /*#__PURE__*/function (_I) {
|
|
1259
1259
|
function X(e) {
|
|
1260
1260
|
var _this;
|
|
1261
1261
|
_classCallCheck(this, X);
|
|
1262
|
-
_this = _callSuper(this, X, [e]), _this.className = _this.el.dataset.toggle ||
|
|
1262
|
+
_this = _callSuper(this, X, [e]), _this.className = _this.el.dataset.toggle || "", _this.el.addEventListener(N, n => _this.onPointerUp(n)), _this.el.addEventListener("click", n => n.preventDefault()), document.addEventListener(F, n => _this.onDocumentPointerDown(n)), document.addEventListener(N, n => _this.onDocumentPointerUp(n));
|
|
1263
1263
|
return _this;
|
|
1264
1264
|
}
|
|
1265
1265
|
_inherits(X, _I);
|
|
@@ -1267,8 +1267,8 @@ window.translations = {
|
|
|
1267
1267
|
key: "setActive",
|
|
1268
1268
|
value: function setActive(e) {
|
|
1269
1269
|
if (this.active == e) return;
|
|
1270
|
-
this.active = e, document.documentElement.classList.toggle(
|
|
1271
|
-
let n = (this.active ?
|
|
1270
|
+
this.active = e, document.documentElement.classList.toggle("has-" + this.className, e), this.el.classList.toggle("active", e);
|
|
1271
|
+
let n = (this.active ? "to-has-" : "from-has-") + this.className;
|
|
1272
1272
|
document.documentElement.classList.add(n), setTimeout(() => document.documentElement.classList.remove(n), 500);
|
|
1273
1273
|
}
|
|
1274
1274
|
}, {
|
|
@@ -1280,18 +1280,18 @@ window.translations = {
|
|
|
1280
1280
|
key: "onDocumentPointerDown",
|
|
1281
1281
|
value: function onDocumentPointerDown(e) {
|
|
1282
1282
|
if (this.active) {
|
|
1283
|
-
if (e.target.closest(
|
|
1283
|
+
if (e.target.closest(".col-sidebar, .tsd-filter-group")) return;
|
|
1284
1284
|
this.setActive(!1);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}, {
|
|
1288
1288
|
key: "onDocumentPointerUp",
|
|
1289
1289
|
value: function onDocumentPointerUp(e) {
|
|
1290
|
-
if (!D && this.active && e.target.closest(
|
|
1291
|
-
let n = e.target.closest(
|
|
1290
|
+
if (!D && this.active && e.target.closest(".col-sidebar")) {
|
|
1291
|
+
let n = e.target.closest("a");
|
|
1292
1292
|
if (n) {
|
|
1293
1293
|
let r = window.location.href;
|
|
1294
|
-
r.indexOf(
|
|
1294
|
+
r.indexOf("#") != -1 && (r = r.substring(0, r.indexOf("#"))), n.href.substring(0, r.length) == r && setTimeout(() => this.setActive(!1), 250);
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
@@ -1309,13 +1309,13 @@ window.translations = {
|
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
1311
|
var Q = re;
|
|
1312
|
-
var ge = document.head.appendChild(document.createElement(
|
|
1313
|
-
ge.dataset.for =
|
|
1312
|
+
var ge = document.head.appendChild(document.createElement("style"));
|
|
1313
|
+
ge.dataset.for = "filters";
|
|
1314
1314
|
var Y = /*#__PURE__*/function (_I2) {
|
|
1315
1315
|
function Y(e) {
|
|
1316
1316
|
var _this2;
|
|
1317
1317
|
_classCallCheck(this, Y);
|
|
1318
|
-
_this2 = _callSuper(this, Y, [e]), _this2.key = `filter-${_this2.el.name}`, _this2.value = _this2.el.checked, _this2.el.addEventListener(
|
|
1318
|
+
_this2 = _callSuper(this, Y, [e]), _this2.key = `filter-${_this2.el.name}`, _this2.value = _this2.el.checked, _this2.el.addEventListener("change", () => {
|
|
1319
1319
|
_this2.setLocalStorage(_this2.el.checked);
|
|
1320
1320
|
}), _this2.setLocalStorage(_this2.fromLocalStorage()), ge.innerHTML += `html:not(.${_this2.key}) .tsd-is-${_this2.el.name} { display: none; }
|
|
1321
1321
|
`, _this2.app.updateIndexVisibility();
|
|
@@ -1326,7 +1326,7 @@ window.translations = {
|
|
|
1326
1326
|
key: "fromLocalStorage",
|
|
1327
1327
|
value: function fromLocalStorage() {
|
|
1328
1328
|
let e = Q.getItem(this.key);
|
|
1329
|
-
return e ? e ===
|
|
1329
|
+
return e ? e === "true" : this.el.checked;
|
|
1330
1330
|
}
|
|
1331
1331
|
}, {
|
|
1332
1332
|
key: "setLocalStorage",
|
|
@@ -1344,11 +1344,11 @@ window.translations = {
|
|
|
1344
1344
|
function Z(e) {
|
|
1345
1345
|
var _this3;
|
|
1346
1346
|
_classCallCheck(this, Z);
|
|
1347
|
-
_this3 = _callSuper(this, Z, [e]), _this3.summary = _this3.el.querySelector(
|
|
1347
|
+
_this3 = _callSuper(this, Z, [e]), _this3.summary = _this3.el.querySelector(".tsd-accordion-summary"), _this3.icon = _this3.summary.querySelector("svg"), _this3.key = `tsd-accordion-${_this3.summary.dataset.key ?? _this3.summary.textContent.trim().replace(/\s+/g, "-").toLowerCase()}`;
|
|
1348
1348
|
let n = Q.getItem(_this3.key);
|
|
1349
|
-
_this3.el.open = n ? n ===
|
|
1350
|
-
let r = _this3.summary.querySelector(
|
|
1351
|
-
r && r.addEventListener(
|
|
1349
|
+
_this3.el.open = n ? n === "true" : _this3.el.open, _this3.el.addEventListener("toggle", () => _this3.update());
|
|
1350
|
+
let r = _this3.summary.querySelector("a");
|
|
1351
|
+
r && r.addEventListener("click", () => {
|
|
1352
1352
|
location.assign(r.href);
|
|
1353
1353
|
}), _this3.update();
|
|
1354
1354
|
return _this3;
|
|
@@ -1362,9 +1362,9 @@ window.translations = {
|
|
|
1362
1362
|
}]);
|
|
1363
1363
|
}(I);
|
|
1364
1364
|
function Ee(t) {
|
|
1365
|
-
let e = Q.getItem(
|
|
1366
|
-
t.value = e, xe(e), t.addEventListener(
|
|
1367
|
-
Q.setItem(
|
|
1365
|
+
let e = Q.getItem("tsd-theme") || "os";
|
|
1366
|
+
t.value = e, xe(e), t.addEventListener("change", () => {
|
|
1367
|
+
Q.setItem("tsd-theme", t.value), xe(t.value);
|
|
1368
1368
|
});
|
|
1369
1369
|
}
|
|
1370
1370
|
function xe(t) {
|
|
@@ -1372,47 +1372,47 @@ window.translations = {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
var K;
|
|
1374
1374
|
function we() {
|
|
1375
|
-
let t = document.getElementById(
|
|
1376
|
-
t && (t.addEventListener(
|
|
1375
|
+
let t = document.getElementById("tsd-nav-script");
|
|
1376
|
+
t && (t.addEventListener("load", Le), Le());
|
|
1377
1377
|
}
|
|
1378
1378
|
async function Le() {
|
|
1379
|
-
let t = document.getElementById(
|
|
1379
|
+
let t = document.getElementById("tsd-nav-container");
|
|
1380
1380
|
if (!t || !window.navigationData) return;
|
|
1381
1381
|
let n = await (await fetch(window.navigationData)).arrayBuffer(),
|
|
1382
|
-
r = new Blob([n]).stream().pipeThrough(new DecompressionStream(
|
|
1382
|
+
r = new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),
|
|
1383
1383
|
i = await new Response(r).json();
|
|
1384
|
-
K = t.dataset.base, K.endsWith(
|
|
1384
|
+
K = t.dataset.base, K.endsWith("/") || (K += "/"), t.innerHTML = "";
|
|
1385
1385
|
for (let s of i) Se(s, t, []);
|
|
1386
1386
|
window.app.createComponents(t), window.app.showPage(), window.app.ensureActivePageVisible();
|
|
1387
1387
|
}
|
|
1388
1388
|
function Se(t, e, n) {
|
|
1389
|
-
let r = e.appendChild(document.createElement(
|
|
1389
|
+
let r = e.appendChild(document.createElement("li"));
|
|
1390
1390
|
if (t.children) {
|
|
1391
1391
|
let i = [...n, t.text],
|
|
1392
|
-
s = r.appendChild(document.createElement(
|
|
1393
|
-
s.className = t.class ? `${t.class} tsd-accordion` :
|
|
1394
|
-
let o = s.appendChild(document.createElement(
|
|
1395
|
-
o.className =
|
|
1396
|
-
let a = s.appendChild(document.createElement(
|
|
1397
|
-
a.className =
|
|
1398
|
-
let l = a.appendChild(document.createElement(
|
|
1399
|
-
l.className =
|
|
1392
|
+
s = r.appendChild(document.createElement("details"));
|
|
1393
|
+
s.className = t.class ? `${t.class} tsd-accordion` : "tsd-accordion";
|
|
1394
|
+
let o = s.appendChild(document.createElement("summary"));
|
|
1395
|
+
o.className = "tsd-accordion-summary", o.dataset.key = i.join("$"), o.innerHTML = '<svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>', be(t, o);
|
|
1396
|
+
let a = s.appendChild(document.createElement("div"));
|
|
1397
|
+
a.className = "tsd-accordion-details";
|
|
1398
|
+
let l = a.appendChild(document.createElement("ul"));
|
|
1399
|
+
l.className = "tsd-nested-navigation";
|
|
1400
1400
|
for (let u of t.children) Se(u, l, i);
|
|
1401
1401
|
} else be(t, r, t.class);
|
|
1402
1402
|
}
|
|
1403
1403
|
function be(t, e, n) {
|
|
1404
1404
|
if (t.path) {
|
|
1405
|
-
let r = e.appendChild(document.createElement(
|
|
1406
|
-
r.href = K + t.path, n && (r.className = n), location.pathname === r.pathname && r.classList.add(
|
|
1407
|
-
} else e.appendChild(document.createElement(
|
|
1405
|
+
let r = e.appendChild(document.createElement("a"));
|
|
1406
|
+
r.href = K + t.path, n && (r.className = n), location.pathname === r.pathname && r.classList.add("current"), t.kind && (r.innerHTML = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon"><use href="#icon-${t.kind}"></use></svg>`), r.appendChild(document.createElement("span")).textContent = t.text;
|
|
1407
|
+
} else e.appendChild(document.createElement("span")).textContent = t.text;
|
|
1408
1408
|
}
|
|
1409
|
-
G(X,
|
|
1410
|
-
G(Z,
|
|
1411
|
-
G(Y,
|
|
1412
|
-
var Te = document.getElementById(
|
|
1409
|
+
G(X, "a[data-toggle]");
|
|
1410
|
+
G(Z, ".tsd-accordion");
|
|
1411
|
+
G(Y, ".tsd-filter-item input[type=checkbox]");
|
|
1412
|
+
var Te = document.getElementById("tsd-theme");
|
|
1413
1413
|
Te && Ee(Te);
|
|
1414
1414
|
var $e = new U();
|
|
1415
|
-
Object.defineProperty(window,
|
|
1415
|
+
Object.defineProperty(window, "app", {
|
|
1416
1416
|
value: $e
|
|
1417
1417
|
});
|
|
1418
1418
|
fe();
|