datafolder 1.0.28 → 1.0.30

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.
Files changed (57) hide show
  1. package/ChangeLog.md +4 -0
  2. package/package.json +1 -1
  3. package/scripts/airbnb.js +5 -5
  4. package/scripts/airbnb2.js +4 -4
  5. package/scripts/airbnb_queries.js +6 -6
  6. package/scripts/convertBinFiles.js +2 -2
  7. package/scripts/fastify.js +2 -1
  8. package/scripts/flights.js +1 -1
  9. package/scripts/flights2.js +2 -2
  10. package/scripts/flights2_queries.js +6 -6
  11. package/scripts/flights_queries.js +6 -6
  12. package/src/QyAcl.d.ts +1 -1
  13. package/src/QyAcl.js +85 -87
  14. package/src/QyBatch.d.ts +1 -1
  15. package/src/QyBatch.js +188 -212
  16. package/src/QyBinWriter.js +11 -14
  17. package/src/QyBinaryHeap.js +2 -2
  18. package/src/QyCD.js +1 -1
  19. package/src/QyCache.js +24 -27
  20. package/src/QyCompressor.js +2 -2
  21. package/src/QyDB.js +1 -1
  22. package/src/QyDir.js +9 -9
  23. package/src/QyEmbeddingWriter.js +1 -1
  24. package/src/QyEmbeddings.js +45 -48
  25. package/src/QyExpire.js +20 -28
  26. package/src/QyExpireInfo.js +32 -32
  27. package/src/QyExpire_Worker.js +2 -5
  28. package/src/QyFile.js +67 -67
  29. package/src/QyFileContentUtils.js +95 -95
  30. package/src/QyFileLogger.js +1 -1
  31. package/src/QyIndex.js +113 -113
  32. package/src/QyIndexPropTree.js +5 -5
  33. package/src/QyIntersectNode.js +8 -10
  34. package/src/QyItem.js +28 -28
  35. package/src/QyKVData.js +40 -45
  36. package/src/QyKVDataCleaner_Worker.js +1 -1
  37. package/src/QyKVDataSaver_Worker.js +5 -7
  38. package/src/QyMessageWorker.js +1 -1
  39. package/src/QyMessager.js +2 -2
  40. package/src/QySaver.js +20 -20
  41. package/src/QySnapshotCompactor_Worker.js +6 -15
  42. package/src/QySnapshotSaver_Worker.js +1 -1
  43. package/src/QySnapshots.js +78 -88
  44. package/src/QyStructure.js +1 -1
  45. package/src/QyTrigger.js +3 -8
  46. package/src/QyUtils.d.ts +1 -5
  47. package/src/QyUtils.js +73 -98
  48. package/src/hackernews.js +77 -59
  49. package/src/rpc/getFileContent.js +4 -3
  50. package/src/rpc/getSubItems.js +6 -4
  51. package/src/simulate.js +4 -4
  52. package/src/simulate2.js +3 -3
  53. package/src/soc_pokec.js +1 -1
  54. package/static/codemirror.bundle/editor.bundle.js +348 -178
  55. package/test/testQyAQL.js +23 -23
  56. package/test/testQyGraphQL.js +1 -1
  57. package/test/testQyNorthwind.js +4 -4
package/src/QyIndex.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
- pathSplit as a,
2
+ pathSplit as s,
3
3
  isSimpleType as d,
4
- isFunction as g,
5
- isString as s,
6
- isNotNullObj as c,
4
+ isFunction as v,
5
+ isString as u,
6
+ isNotNullObj as g,
7
7
  SpecialOperators as i,
8
- getSuffix as m,
8
+ getSuffix as c,
9
9
  fromSingleName as r,
10
- toSingleName as u,
11
- isArray as v
10
+ toSingleName as a,
11
+ isArray as m
12
12
  } from "./QyUtils.js";
13
13
 
14
14
  import {
@@ -30,102 +30,102 @@ import {
30
30
  let {
31
31
  $or: $,
32
32
  $and: F
33
- } = i, I = new y(), o = [];
33
+ } = i, I = new y(), l = [];
34
34
 
35
35
  function e(e) {
36
- if (null != e && !s(e)) return function r(i, n, t, l) {
37
- if (Q(i)) 0 < t.length && (n[u(t)] = 1); else {
36
+ if (void 0 !== e && !u(e)) return function r(i, t, n, f) {
37
+ if (Q(i)) 0 < n.length && (t[a(n)] = 1); else {
38
38
  let e = i[$] || i[F];
39
- if (null != e) if (v(e)) for (var f of e) r(f, n, t, l), t.length = l; else r(e, n, t, l),
40
- t.length = l; else for (var o in i) t.push(o), r(i[o], n, t, l + 1),
41
- t.length = l;
39
+ if (void 0 !== e) if (m(e)) for (var o of e) r(o, t, n, f), n.length = f; else r(e, t, n, f),
40
+ n.length = f; else for (var l in i) n.push(l), r(i[l], t, n, f + 1),
41
+ n.length = f;
42
42
  }
43
43
  }(e, e = {}, [], 0), Object.keys(e).map(e => r(e));
44
44
  }
45
45
 
46
- function n(e, r, i, n, t) {
47
- i = p(i, r), n = p(n, r);
48
- if (i !== n) {
49
- var l, f, o, u, t = v(n) || v(p(t, r)), a = Object.fromEntries(L(i, t).map(e => [ JSON.stringify(e), e ])), s = Object.fromEntries(L(n, t).map(e => [ JSON.stringify(e), e ])), d = [], g = [];
50
- for (l in a) !s[l] && (f = a[l], f = e.searchFile(f)) && g.push(f);
51
- for (o in s) a[o] || (u = s[o], d.push(e.searchOrCreateFile(u)));
46
+ function t(e, r, i, t, n) {
47
+ i = p(i, r), t = p(t, r);
48
+ if (i !== t) {
49
+ var f, o, l, a, n = m(t) || m(p(n, r)), s = Object.fromEntries(L(i, n).map(e => [ JSON.stringify(e), e ])), u = Object.fromEntries(L(t, n).map(e => [ JSON.stringify(e), e ])), d = [], v = [];
50
+ for (f in s) !u[f] && (o = s[f], o = e.searchFile(o)) && v.push(o);
51
+ for (l in u) s[l] || (a = u[l], d.push(e.searchOrCreateFile(a)));
52
52
  return {
53
53
  toAddFileList: d,
54
- toDelFileList: g
54
+ toDelFileList: v
55
55
  };
56
56
  }
57
57
  }
58
58
 
59
- function S(e, r, i, n, t, l) {
60
- if (s(n) || c(n)) if (e.isDir) j(e, i, n, t, l); else {
61
- var f = e.$or;
62
- if (f) {
63
- for (var o of f) if (S(o, r, i, n, t, l), l?.isFull) return;
64
- } else for (var u of b(e = s(e) ? a(e) : e, r)) if (j(u, i, n, t, l), l?.isFull) return;
59
+ function S(e, r, i, t, n, f) {
60
+ if (u(t) || g(t)) if (e.isDir) j(e, i, t, n, f); else {
61
+ var o = e.$or;
62
+ if (o) {
63
+ for (var l of o) if (S(l, r, i, t, n, f), f?.isFull) return;
64
+ } else for (var a of b(e = u(e) ? s(e) : e, r)) if (j(a, i, t, n, f), f?.isFull) return;
65
65
  }
66
66
  }
67
67
 
68
68
  function* b(e, r, i = 0) {
69
- i == e.length ? yield r : yield* function* r(i, n, t, l) {
70
- if (null == n) return;
71
- if ("**" == n) {
72
- t.isHiddenFolder || (yield t);
73
- for (var e of t.allSubdirs()) yield e;
74
- } else if ("*" == n) for (var f of t.subdirList) yield* b(i, f, l + 1); else if (g(n)) for (var o of t.filterSubdirNames(n)) yield* b(i, o, l + 1); else if (v(n)) for (var u of n) yield* r(i, u, t, l); else {
75
- let e = n.$or || n.$in;
76
- if (v(e)) for (var a of e) yield* r(i, a, t, l); else if (C(n)) for (var s of w(t, n)) yield* b(i, s, l + 1); else {
77
- let e = t.getSubdir(n);
78
- e && (yield* b(i, e, l + 1));
69
+ i === e.length ? yield r : yield* function* r(i, t, n, f) {
70
+ if (void 0 === t) return;
71
+ if ("**" === t) {
72
+ n.isHiddenFolder || (yield n);
73
+ for (var e of n.allSubdirs()) yield e;
74
+ } else if ("*" === t) for (var o of n.subdirList) yield* b(i, o, f + 1); else if (v(t)) for (var l of n.filterSubdirNames(t)) yield* b(i, l, f + 1); else if (m(t)) for (var a of t) yield* r(i, a, n, f); else {
75
+ let e = t.$or || t.$in;
76
+ if (m(e)) for (var s of e) yield* r(i, s, n, f); else if (C(t)) for (var u of w(n, t)) yield* b(i, u, f + 1); else {
77
+ let e = n.getSubdir(t);
78
+ e && (yield* b(i, e, f + 1));
79
79
  }
80
80
  }
81
81
  }(e, e[i], r, i);
82
82
  }
83
83
 
84
- function j(r, i, n, t, l) {
85
- var f = r.fileCount;
86
- if (!(f <= 0)) {
84
+ function j(r, i, t, n, f) {
85
+ var o = r.fileCount;
86
+ if (!(o <= 0)) {
87
87
  let e = 0;
88
- if (s(n)) {
89
- var o = r.getFile(n);
90
- o && l.countOne() && (t.push(o), ++e);
88
+ if (u(t)) {
89
+ var l = r.getFile(t);
90
+ l && f.countOne() && (n.push(l), ++e);
91
91
  } else {
92
- var u, o = r.qyCache, i = (0 < i?.length && o.qyDB.createIndex(r, i),
93
- o.getIndexDir(r));
92
+ var a, l = r.qyCache, i = (0 < i?.length && l.qyDB.createIndex(r, i),
93
+ l.getIndexDir(r));
94
94
  if (!i) return;
95
- for (u of function i(n, e) {
96
- if (null == e) return I;
97
- if (d(e)) return new y(n.getFile(e));
98
- if (g(e)) return R(n.filterFileNames(e));
99
- if (C(e)) return R(w(n, e, !0));
95
+ for (a of function i(t, e) {
96
+ if (void 0 === e) return I;
97
+ if (d(e)) return new y(t.getFile(e));
98
+ if (v(e)) return R(t.filterFileNames(e));
99
+ if (C(e)) return R(w(t, e, !0));
100
100
  let {
101
- $link: t,
102
- $spec: l
101
+ $link: n,
102
+ $spec: f
103
103
  } = e;
104
- if (null != t) {
104
+ if (void 0 !== n) {
105
105
  let e = new y(), {
106
106
  qyCache: r,
107
107
  fileList: i
108
- } = n;
109
- for (var f of i) D(r, t, f.name, l) && e.addItem(f);
108
+ } = t;
109
+ for (var o of i) D(r, n, o.name, f) && e.addItem(o);
110
110
  return e;
111
111
  }
112
- let o = new h();
113
- if (v(e)) for (var r of e) o.addNode(i(n, r)); else for (var u in e) {
114
- let r = e[u];
115
- if (u == $) if (v(r)) {
112
+ let l = new h();
113
+ if (m(e)) for (var r of e) l.addNode(i(t, r)); else for (var a in e) {
114
+ let r = e[a];
115
+ if (a === $) if (m(r)) {
116
116
  let e = new y();
117
- for (var a of r) e.addNode(i(n, a));
118
- o.addNode(e);
119
- } else o.addNode(i(n, r)); else if (u == F) if (v(r)) for (var s of r) o.addNode(i(n, s)); else o.addNode(i(n, r)); else {
120
- let e = n.getSubdir(u);
121
- if (null == e) return I;
122
- o.addNode(i(e, r));
117
+ for (var s of r) e.addNode(i(t, s));
118
+ l.addNode(e);
119
+ } else l.addNode(i(t, r)); else if (a === F) if (m(r)) for (var u of r) l.addNode(i(t, u)); else l.addNode(i(t, r)); else {
120
+ let e = t.getSubdir(a);
121
+ if (void 0 === e) return I;
122
+ l.addNode(i(e, r));
123
123
  }
124
124
  }
125
- return o;
126
- }(i, n).getFiles(l)) t.push(r.getFile(u)), ++e;
125
+ return l;
126
+ }(i, t).getFiles(f)) n.push(r.getFile(a)), ++e;
127
127
  }
128
- N.info(`Checking ${f} file${m(f)}, result: ${e} file` + m(e));
128
+ N.info(`Checking ${o} file${c(o)}, result: ${e} file` + c(e));
129
129
  }
130
130
  }
131
131
 
@@ -135,85 +135,85 @@ function O(e) {
135
135
  }
136
136
 
137
137
  function R(e) {
138
- if (0 == e.length) return I;
138
+ if (0 === e.length) return I;
139
139
  var r, i = new y();
140
140
  for (r of e) i.addItem(r);
141
141
  return i;
142
142
  }
143
143
 
144
144
  function C(e) {
145
- return null != e && null != (e.$gt ?? e.$lt ?? e.$gte ?? e.$lte);
145
+ return void 0 !== e && void 0 !== (e.$gt ?? e.$lt ?? e.$gte ?? e.$lte);
146
146
  }
147
147
 
148
148
  function Q(e) {
149
- return null == e || d(e) || g(e) || C(e);
149
+ return void 0 === e || d(e) || v(e) || C(e);
150
150
  }
151
151
 
152
152
  function w(e, {
153
153
  $gt: r,
154
154
  $gte: i,
155
- $lte: n,
156
- $lt: t
157
- }, l = !1) {
158
- if (null != r && null != i && (i <= r ? i = void 0 : r = void 0), null != t && null != n && (t <= n ? n = void 0 : t = void 0),
159
- null != r) if (null != t) {
160
- if (r < t) return e.compareItemRange(e => r < e && e < t, l);
155
+ $lte: t,
156
+ $lt: n
157
+ }, f = !1) {
158
+ if (void 0 !== r && void 0 !== i && (i <= r ? i = void 0 : r = void 0), void 0 !== n && void 0 !== t && (n <= t ? t = void 0 : n = void 0),
159
+ void 0 !== r) if (void 0 !== n) {
160
+ if (r < n) return e.compareItemRange(e => r < e && e < n, f);
161
161
  } else {
162
- if (null == n) return e.compareItemRange(e => r < e, l, !0);
163
- if (r < n) return e.compareItemRange(e => r < e && e <= n, l);
164
- } else if (null != i) if (null != t) {
165
- if (i < t) return e.compareItemRange(e => i <= e && e < t, l);
162
+ if (void 0 === t) return e.compareItemRange(e => r < e, f, !0);
163
+ if (r < t) return e.compareItemRange(e => r < e && e <= t, f);
164
+ } else if (void 0 !== i) if (void 0 !== n) {
165
+ if (i < n) return e.compareItemRange(e => i <= e && e < n, f);
166
166
  } else {
167
- if (null == n) return e.compareItemRange(e => i <= e, l, !0);
168
- if (i < n) return e.compareItemRange(e => i <= e && e <= n, l);
169
- var f;
170
- if (i == n) return (f = l ? e.getFile(i) : e.getSubdir(i)) ? [ f ] : o;
167
+ if (void 0 === t) return e.compareItemRange(e => i <= e, f, !0);
168
+ if (i < t) return e.compareItemRange(e => i <= e && e <= t, f);
169
+ var o;
170
+ if (i === t) return (o = f ? e.getFile(i) : e.getSubdir(i)) ? [ o ] : l;
171
171
  } else {
172
- if (null != t) return e.compareItemRange(e => e < t, l);
173
- if (null != n) return e.compareItemRange(e => e <= n, l);
172
+ if (void 0 !== n) return e.compareItemRange(e => e < n, f);
173
+ if (void 0 !== t) return e.compareItemRange(e => e <= t, f);
174
174
  }
175
- return o;
175
+ return l;
176
176
  }
177
177
 
178
- function D(e, r, i, n) {
178
+ function D(e, r, i, t) {
179
179
  var r = e.getDir(r);
180
- return !!r && !!(r = r.getFile(i)) && (null == n || function r(i, n, t) {
181
- if (null == n) return !1;
182
- if (d(t)) return v(n) ? n.includes(t) : c(n) ? n[t] : n == t;
183
- if (g(t)) return t(n);
184
- if (v(t)) {
185
- if (!v(n)) return !1;
186
- for (let e = 0; e < t.length; ++e) if (!r(i, n[e], t[e])) return !1;
180
+ return !!r && !!(r = r.getFile(i)) && (void 0 === t || function r(i, t, n) {
181
+ if (void 0 === t) return !1;
182
+ if (d(n)) return m(t) ? t.includes(n) : g(t) ? t[n] : t === n;
183
+ if (v(n)) return n(t);
184
+ if (m(n)) {
185
+ if (!m(t)) return !1;
186
+ for (let e = 0; e < n.length; ++e) if (!r(i, t[e], n[e])) return !1;
187
187
  } else {
188
188
  var e, {
189
- $link: l,
190
- $spec: f
191
- } = t;
192
- if (l) {
193
- if (d(n)) return D(i, l, n, f);
194
- if (v(n)) {
195
- for (var o of n) if (D(i, l, o, f)) return !0;
196
- } else for (var u in n) if (D(i, l, u, f)) return !0;
189
+ $link: f,
190
+ $spec: o
191
+ } = n;
192
+ if (f) {
193
+ if (d(t)) return D(i, f, t, o);
194
+ if (m(t)) {
195
+ for (var l of t) if (D(i, f, l, o)) return !0;
196
+ } else for (var a in t) if (D(i, f, a, o)) return !0;
197
197
  return !1;
198
198
  }
199
- if (d(n) || v(n)) return !1;
200
- for (e in t) if (!r(i, n[e], t[e])) return !1;
199
+ if (d(t) || m(t)) return !1;
200
+ for (e in n) if (!r(i, t[e], n[e])) return !1;
201
201
  }
202
202
  return !0;
203
- }(e, r.fileContent, n));
203
+ }(e, r.fileContent, t));
204
204
  }
205
205
 
206
- function L(e, r, i = [], n = [], t = 0) {
207
- if (null != e && "" !== e) if (O(e = c(e) && r ? Object.values(e) : e)) n[t] = e,
208
- n.length = t + 1, i.push([ ...n ]); else if (v(e)) {
209
- n.length = t + 1;
210
- for (var l of e.filter(e => O(e))) n[t] = l, i.push([ ...n ]);
211
- } else if (c(e)) for (var f in e) n[t] = f, n.length = t + 1, L(e[f], !1, i, n, t + 1);
206
+ function L(e, r, i = [], t = [], n = 0) {
207
+ if (null != e && "" !== e) if (O(e = g(e) && r ? Object.values(e) : e)) t[n] = e,
208
+ t.length = n + 1, i.push([ ...t ]); else if (m(e)) {
209
+ t.length = n + 1;
210
+ for (var f of e.filter(e => O(e))) t[n] = f, i.push([ ...t ]);
211
+ } else if (g(e)) for (var o in e) t[n] = o, t.length = n + 1, L(e[o], !1, i, t, n + 1);
212
212
  return i;
213
213
  }
214
214
 
215
215
  export {
216
216
  e as getIndexPropPaths,
217
- n as calDifferenceList,
217
+ t as calDifferenceList,
218
218
  S as parseNamePathAndQuery
219
219
  };
@@ -17,7 +17,7 @@ class o {
17
17
  }
18
18
  insert(e, t) {
19
19
  var n = this.children;
20
- if (t == e.length) return !this.indexPropPath && (this.indexPropPath = e,
20
+ if (t === e.length) return !this.indexPropPath && (this.indexPropPath = e,
21
21
  !0);
22
22
  var r = e[t];
23
23
  let h;
@@ -32,7 +32,7 @@ class o {
32
32
  name: h,
33
33
  children: o
34
34
  } = this;
35
- if (t == e.length) return this.indexPropPath && (n.removed = !0, delete this.indexPropPath),
35
+ if (t === e.length) return this.indexPropPath && (n.removed = !0, delete this.indexPropPath),
36
36
  r && i(this) && function e(t, n) {
37
37
  let {
38
38
  children: r,
@@ -55,7 +55,7 @@ class o {
55
55
  }
56
56
 
57
57
  function i(e) {
58
- return !e.indexPropPath && 0 == e.childCount;
58
+ return !e.indexPropPath && 0 === e.childCount;
59
59
  }
60
60
 
61
61
  class r {
@@ -85,13 +85,13 @@ class r {
85
85
  rootNode: n,
86
86
  changeCount: r
87
87
  } = this;
88
- return e != r && (t.length = 0, n.getAllIndexPropPaths(t), this._cachedChangeCount = r),
88
+ return e !== r && (t.length = 0, n.getAllIndexPropPaths(t), this._cachedChangeCount = r),
89
89
  t;
90
90
  }
91
91
  }
92
92
 
93
93
  function e(e) {
94
- if (0 == e.length) return [];
94
+ if (0 === e.length) return [];
95
95
  var t, n = new r();
96
96
  for (t of e) n.insert(t);
97
97
  return n.getAllIndexPropPaths();
@@ -5,35 +5,33 @@ import {
5
5
  class n extends t {
6
6
  sorted = !1;
7
7
  constructor() {
8
- super(), Object.assign(this, {
9
- fileCount: void 0
10
- });
8
+ super(), this.fileCount = -1;
11
9
  }
12
10
  containsFile(t) {
13
11
  var {
14
12
  nodeList: e,
15
13
  fileCount: i
16
14
  } = this;
17
- if (0 != i && 0 != e.length) return s(this), e[0].containsFile(t) && l(e, t);
15
+ if (0 !== i && 0 !== e.length) return s(this), e[0].containsFile(t) && r(e, t);
18
16
  }
19
17
  *getFiles(t, e = {}) {
20
18
  var {
21
19
  nodeList: i,
22
20
  fileCount: n
23
21
  } = this;
24
- if (0 != n && 0 != i.length) {
22
+ if (0 !== n && 0 !== i.length) {
25
23
  s(this);
26
- for (var o of i[0].getFiles()) if (!(o in e) && l(i, o) && this.encounterOne(e, o, t) && (yield o,
24
+ for (var o of i[0].getFiles()) if (!(o in e) && r(i, o) && this.encounterOne(e, o, t) && (yield o,
27
25
  t?.isFull)) return;
28
26
  }
29
27
  }
30
28
  addNode(t) {
31
29
  var e, i;
32
- t && null != t.fileCount && ({
30
+ t && -1 !== t.fileCount && ({
33
31
  fileCount: e,
34
32
  nodeList: i
35
- } = this, 0 == e && 0 < i.length || (t instanceof n ? (i.push(...t.nodeList),
36
- this.sorted = !1) : i.push(t), (null == e || e > t.fileCount) && (this.fileCount = t.fileCount)));
33
+ } = this, 0 === e && 0 < i.length || (t instanceof n ? (i.push(...t.nodeList),
34
+ this.sorted = !1) : i.push(t), (-1 === e || e > t.fileCount) && (this.fileCount = t.fileCount)));
37
35
  }
38
36
  }
39
37
 
@@ -41,7 +39,7 @@ function s(t) {
41
39
  t.sorted || (t.nodeList.sort((t, e) => t.fileCount - e.fileCount), t.sorted = !0);
42
40
  }
43
41
 
44
- function l(e, i) {
42
+ function r(e, i) {
45
43
  var n = e.length;
46
44
  for (let t = 1; t < n; ++t) if (!e[t].containsFile(i)) return !1;
47
45
  return !0;
package/src/QyItem.js CHANGED
@@ -1,73 +1,73 @@
1
1
  import {
2
- calHash as a,
2
+ calHash as i,
3
3
  SpecialFilePaths as t
4
4
  } from "./QyUtils.js";
5
5
 
6
- let r = t.HiddenFolderName;
6
+ let a = t.HiddenFolderName;
7
7
 
8
8
  class e {
9
9
  name;
10
10
  parentDir;
11
11
  flagInt;
12
- constructor(t, e = !1, a) {
13
- this.name = t.toString(), this.parentDir = a, this.flagInt = 0, this._created = e,
14
- (t == r || a && (a.name == r || a.underHiddenFolder)) && s(this, 2, !0);
12
+ constructor(t, e = !1, i) {
13
+ this.name = t.toString(), this.parentDir = i, this.flagInt = 0, this._created = e,
14
+ (t === a || i && (i.name === a || i.underHiddenFolder)) && s(this, 2, !0);
15
15
  }
16
16
  get qyCache() {
17
17
  var t = this.parentDir;
18
18
  return t ? t.qyCache : this._qyCache;
19
19
  }
20
20
  get _created() {
21
- return i(this, 1);
21
+ return r(this, 1);
22
22
  }
23
23
  set _created(t) {
24
24
  s(this, 1, t);
25
25
  }
26
26
  get subdirMapLoaded() {
27
- return i(this, 4);
27
+ return r(this, 4);
28
28
  }
29
29
  set subdirMapLoaded(t) {
30
30
  s(this, 4, t);
31
31
  }
32
32
  get fileMapLoaded() {
33
- return i(this, 8);
33
+ return r(this, 8);
34
34
  }
35
35
  set fileMapLoaded(t) {
36
36
  s(this, 8, t);
37
37
  }
38
38
  get fileContentLoaded() {
39
- return i(this, 16);
39
+ return r(this, 16);
40
40
  }
41
41
  set fileContentLoaded(t) {
42
42
  s(this, 16, t);
43
43
  }
44
44
  get dExpireChecked() {
45
- return i(this, 64);
45
+ return r(this, 64);
46
46
  }
47
47
  set dExpireChecked(t) {
48
48
  s(this, 64, t);
49
49
  }
50
50
  get fExpireChecked() {
51
- return i(this, 128);
51
+ return r(this, 128);
52
52
  }
53
53
  set fExpireChecked(t) {
54
54
  s(this, 128, t);
55
55
  }
56
56
  get cExpireChecked() {
57
- return i(this, 256);
57
+ return r(this, 256);
58
58
  }
59
59
  set cExpireChecked(t) {
60
60
  s(this, 256, t);
61
61
  }
62
62
  get visited() {
63
- return i(this, 32);
63
+ return r(this, 32);
64
64
  }
65
65
  set visited(t) {
66
66
  s(this, 32, t);
67
67
  }
68
68
  get nameNum() {
69
69
  var t = this._nameNum;
70
- return null != t ? t : (t = +this.name, this._nameNum = isNaN(t) ? this.name : t);
70
+ return void 0 !== t ? t : (t = +this.name, this._nameNum = isNaN(t) ? this.name : t);
71
71
  }
72
72
  cmp({
73
73
  nameNum: t
@@ -77,29 +77,29 @@ class e {
77
77
  }
78
78
  get fullPath() {
79
79
  var t, e;
80
- return null == this._fullPath && ({
80
+ return void 0 === this._fullPath && ({
81
81
  parentDir: t,
82
82
  name: e
83
83
  } = this, this._fullPath = t ? t.fullPath + "/" + e : e), this._fullPath;
84
84
  }
85
85
  get fullPathHash() {
86
86
  var t, e;
87
- return null == this._fullPathHash && ({
87
+ return void 0 === this._fullPathHash && ({
88
88
  parentDir: t,
89
89
  name: e
90
- } = this, this._fullPathHash = a(t ? t.fullPathHash + e : e)), this._fullPathHash;
90
+ } = this, this._fullPathHash = i(t ? t.fullPathHash + e : e)), this._fullPathHash;
91
91
  }
92
92
  get isItem() {
93
93
  return !0;
94
94
  }
95
95
  get underHiddenFolder() {
96
- return i(this, 2);
96
+ return r(this, 2);
97
97
  }
98
98
  get parentList() {
99
- if (null == this._parentList) {
99
+ if (void 0 === this._parentList) {
100
100
  var e = this._parentList = [];
101
101
  let t = this.parentDir;
102
- if (null != t) {
102
+ if (void 0 !== t) {
103
103
  for (;t.parentDir; ) e.push(t), t = t.parentDir;
104
104
  e.reverse();
105
105
  }
@@ -107,27 +107,27 @@ class e {
107
107
  return this._parentList;
108
108
  }
109
109
  get parentNamePath() {
110
- return null == this._parentNameList && (this._parentNameList = this.parentList.map(t => t.name)),
110
+ return void 0 === this._parentNameList && (this._parentNameList = this.parentList.map(t => t.name)),
111
111
  this._parentNameList;
112
112
  }
113
113
  get namePath() {
114
- return null == this._namePath && (this._namePath = [ ...this.parentNamePath, this.name ]),
114
+ return void 0 === this._namePath && (this._namePath = [ ...this.parentNamePath, this.name ]),
115
115
  this._namePath;
116
116
  }
117
117
  relativeNamePath(t) {
118
118
  var e = [ this.name ];
119
- let a = this.parentDir;
120
- for (;a && a != t; ) e.push(a.name), a = a.parentDir;
121
- if (a == t) return e.reverse();
119
+ let i = this.parentDir;
120
+ for (;i && i !== t; ) e.push(i.name), i = i.parentDir;
121
+ if (i === t) return e.reverse();
122
122
  }
123
123
  }
124
124
 
125
- function i(t, e) {
125
+ function r(t, e) {
126
126
  return 0 != (t.flagInt & e);
127
127
  }
128
128
 
129
- function s(t, e, a) {
130
- a ? t.flagInt |= e : t.flagInt &= ~e;
129
+ function s(t, e, i) {
130
+ i ? t.flagInt |= e : t.flagInt &= ~e;
131
131
  }
132
132
 
133
133
  export {