@opencloud-eu/web-client 3.1.0 → 3.2.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.
@@ -1,6 +1,6 @@
1
- var we = Object.defineProperty;
2
- var Ie = (e, t, i) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var b = (e, t, i) => Ie(e, typeof t != "symbol" ? t + "" : t, i);
1
+ var Ie = Object.defineProperty;
2
+ var we = (e, t, i) => t in e ? Ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var b = (e, t, i) => we(e, typeof t != "symbol" ? t + "" : t, i);
4
4
  import { a as Ce, g as De, i as Ae, t as U, M as Pe, b as Oe, c as ye, u as L } from "./toString-Cn0xCZ28.js";
5
5
  import { p as Se } from "./index-Pl8khka8.js";
6
6
  function Te(e, t = "") {
@@ -9,42 +9,42 @@ function Te(e, t = "") {
9
9
  function Ue(e, t = "") {
10
10
  return `/ocm/${e}/${t}`.split("/").filter(Boolean).join("/");
11
11
  }
12
- var F, V;
12
+ var F, W;
13
13
  function Ee() {
14
- if (V) return F;
15
- V = 1;
14
+ if (W) return F;
15
+ W = 1;
16
16
  function e(s) {
17
17
  if (typeof s != "string")
18
18
  throw new TypeError("Path must be a string. Received " + JSON.stringify(s));
19
19
  }
20
20
  function t(s, n) {
21
- for (var r = "", l = 0, c = -1, p = 0, u, f = 0; f <= s.length; ++f) {
22
- if (f < s.length)
23
- u = s.charCodeAt(f);
21
+ for (var r = "", l = 0, c = -1, h = 0, u, p = 0; p <= s.length; ++p) {
22
+ if (p < s.length)
23
+ u = s.charCodeAt(p);
24
24
  else {
25
25
  if (u === 47)
26
26
  break;
27
27
  u = 47;
28
28
  }
29
29
  if (u === 47) {
30
- if (!(c === f - 1 || p === 1)) if (c !== f - 1 && p === 2) {
30
+ if (!(c === p - 1 || h === 1)) if (c !== p - 1 && h === 2) {
31
31
  if (r.length < 2 || l !== 2 || r.charCodeAt(r.length - 1) !== 46 || r.charCodeAt(r.length - 2) !== 46) {
32
32
  if (r.length > 2) {
33
33
  var g = r.lastIndexOf("/");
34
34
  if (g !== r.length - 1) {
35
- g === -1 ? (r = "", l = 0) : (r = r.slice(0, g), l = r.length - 1 - r.lastIndexOf("/")), c = f, p = 0;
35
+ g === -1 ? (r = "", l = 0) : (r = r.slice(0, g), l = r.length - 1 - r.lastIndexOf("/")), c = p, h = 0;
36
36
  continue;
37
37
  }
38
38
  } else if (r.length === 2 || r.length === 1) {
39
- r = "", l = 0, c = f, p = 0;
39
+ r = "", l = 0, c = p, h = 0;
40
40
  continue;
41
41
  }
42
42
  }
43
43
  n && (r.length > 0 ? r += "/.." : r = "..", l = 2);
44
44
  } else
45
- r.length > 0 ? r += "/" + s.slice(c + 1, f) : r = s.slice(c + 1, f), l = f - c - 1;
46
- c = f, p = 0;
47
- } else u === 46 && p !== -1 ? ++p : p = -1;
45
+ r.length > 0 ? r += "/" + s.slice(c + 1, p) : r = s.slice(c + 1, p), l = p - c - 1;
46
+ c = p, h = 0;
47
+ } else u === 46 && h !== -1 ? ++h : h = -1;
48
48
  }
49
49
  return r;
50
50
  }
@@ -56,8 +56,8 @@ function Ee() {
56
56
  // path.resolve([from ...], to)
57
57
  resolve: function() {
58
58
  for (var n = "", r = !1, l, c = arguments.length - 1; c >= -1 && !r; c--) {
59
- var p;
60
- c >= 0 ? p = arguments[c] : (l === void 0 && (l = Se.cwd()), p = l), e(p), p.length !== 0 && (n = p + "/" + n, r = p.charCodeAt(0) === 47);
59
+ var h;
60
+ c >= 0 ? h = arguments[c] : (l === void 0 && (l = Se.cwd()), h = l), e(h), h.length !== 0 && (n = h + "/" + n, r = h.charCodeAt(0) === 47);
61
61
  }
62
62
  return n = t(n, !r), r ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
63
63
  },
@@ -82,84 +82,84 @@ function Ee() {
82
82
  if (e(n), e(r), n === r || (n = d.resolve(n), r = d.resolve(r), n === r)) return "";
83
83
  for (var l = 1; l < n.length && n.charCodeAt(l) === 47; ++l)
84
84
  ;
85
- for (var c = n.length, p = c - l, u = 1; u < r.length && r.charCodeAt(u) === 47; ++u)
85
+ for (var c = n.length, h = c - l, u = 1; u < r.length && r.charCodeAt(u) === 47; ++u)
86
86
  ;
87
- for (var f = r.length, g = f - u, o = p < g ? p : g, h = -1, m = 0; m <= o; ++m) {
87
+ for (var p = r.length, g = p - u, o = h < g ? h : g, f = -1, m = 0; m <= o; ++m) {
88
88
  if (m === o) {
89
89
  if (g > o) {
90
90
  if (r.charCodeAt(u + m) === 47)
91
91
  return r.slice(u + m + 1);
92
92
  if (m === 0)
93
93
  return r.slice(u + m);
94
- } else p > o && (n.charCodeAt(l + m) === 47 ? h = m : m === 0 && (h = 0));
94
+ } else h > o && (n.charCodeAt(l + m) === 47 ? f = m : m === 0 && (f = 0));
95
95
  break;
96
96
  }
97
- var w = n.charCodeAt(l + m), D = r.charCodeAt(u + m);
98
- if (w !== D)
97
+ var I = n.charCodeAt(l + m), D = r.charCodeAt(u + m);
98
+ if (I !== D)
99
99
  break;
100
- w === 47 && (h = m);
100
+ I === 47 && (f = m);
101
101
  }
102
- var I = "";
103
- for (m = l + h + 1; m <= c; ++m)
104
- (m === c || n.charCodeAt(m) === 47) && (I.length === 0 ? I += ".." : I += "/..");
105
- return I.length > 0 ? I + r.slice(u + h) : (u += h, r.charCodeAt(u) === 47 && ++u, r.slice(u));
102
+ var w = "";
103
+ for (m = l + f + 1; m <= c; ++m)
104
+ (m === c || n.charCodeAt(m) === 47) && (w.length === 0 ? w += ".." : w += "/..");
105
+ return w.length > 0 ? w + r.slice(u + f) : (u += f, r.charCodeAt(u) === 47 && ++u, r.slice(u));
106
106
  },
107
107
  _makeLong: function(n) {
108
108
  return n;
109
109
  },
110
110
  dirname: function(n) {
111
111
  if (e(n), n.length === 0) return ".";
112
- for (var r = n.charCodeAt(0), l = r === 47, c = -1, p = !0, u = n.length - 1; u >= 1; --u)
112
+ for (var r = n.charCodeAt(0), l = r === 47, c = -1, h = !0, u = n.length - 1; u >= 1; --u)
113
113
  if (r = n.charCodeAt(u), r === 47) {
114
- if (!p) {
114
+ if (!h) {
115
115
  c = u;
116
116
  break;
117
117
  }
118
118
  } else
119
- p = !1;
119
+ h = !1;
120
120
  return c === -1 ? l ? "/" : "." : l && c === 1 ? "//" : n.slice(0, c);
121
121
  },
122
122
  basename: function(n, r) {
123
123
  if (r !== void 0 && typeof r != "string") throw new TypeError('"ext" argument must be a string');
124
124
  e(n);
125
- var l = 0, c = -1, p = !0, u;
125
+ var l = 0, c = -1, h = !0, u;
126
126
  if (r !== void 0 && r.length > 0 && r.length <= n.length) {
127
127
  if (r.length === n.length && r === n) return "";
128
- var f = r.length - 1, g = -1;
128
+ var p = r.length - 1, g = -1;
129
129
  for (u = n.length - 1; u >= 0; --u) {
130
130
  var o = n.charCodeAt(u);
131
131
  if (o === 47) {
132
- if (!p) {
132
+ if (!h) {
133
133
  l = u + 1;
134
134
  break;
135
135
  }
136
136
  } else
137
- g === -1 && (p = !1, g = u + 1), f >= 0 && (o === r.charCodeAt(f) ? --f === -1 && (c = u) : (f = -1, c = g));
137
+ g === -1 && (h = !1, g = u + 1), p >= 0 && (o === r.charCodeAt(p) ? --p === -1 && (c = u) : (p = -1, c = g));
138
138
  }
139
139
  return l === c ? c = g : c === -1 && (c = n.length), n.slice(l, c);
140
140
  } else {
141
141
  for (u = n.length - 1; u >= 0; --u)
142
142
  if (n.charCodeAt(u) === 47) {
143
- if (!p) {
143
+ if (!h) {
144
144
  l = u + 1;
145
145
  break;
146
146
  }
147
- } else c === -1 && (p = !1, c = u + 1);
147
+ } else c === -1 && (h = !1, c = u + 1);
148
148
  return c === -1 ? "" : n.slice(l, c);
149
149
  }
150
150
  },
151
151
  extname: function(n) {
152
152
  e(n);
153
- for (var r = -1, l = 0, c = -1, p = !0, u = 0, f = n.length - 1; f >= 0; --f) {
154
- var g = n.charCodeAt(f);
153
+ for (var r = -1, l = 0, c = -1, h = !0, u = 0, p = n.length - 1; p >= 0; --p) {
154
+ var g = n.charCodeAt(p);
155
155
  if (g === 47) {
156
- if (!p) {
157
- l = f + 1;
156
+ if (!h) {
157
+ l = p + 1;
158
158
  break;
159
159
  }
160
160
  continue;
161
161
  }
162
- c === -1 && (p = !1, c = f + 1), g === 46 ? r === -1 ? r = f : u !== 1 && (u = 1) : r !== -1 && (u = -1);
162
+ c === -1 && (h = !1, c = p + 1), g === 46 ? r === -1 ? r = p : u !== 1 && (u = 1) : r !== -1 && (u = -1);
163
163
  }
164
164
  return r === -1 || c === -1 || // We saw a non-dot character immediately before the dot
165
165
  u === 0 || // The (right-most) trimmed path component is exactly '..'
@@ -174,21 +174,21 @@ function Ee() {
174
174
  e(n);
175
175
  var r = { root: "", dir: "", base: "", ext: "", name: "" };
176
176
  if (n.length === 0) return r;
177
- var l = n.charCodeAt(0), c = l === 47, p;
178
- c ? (r.root = "/", p = 1) : p = 0;
179
- for (var u = -1, f = 0, g = -1, o = !0, h = n.length - 1, m = 0; h >= p; --h) {
180
- if (l = n.charCodeAt(h), l === 47) {
177
+ var l = n.charCodeAt(0), c = l === 47, h;
178
+ c ? (r.root = "/", h = 1) : h = 0;
179
+ for (var u = -1, p = 0, g = -1, o = !0, f = n.length - 1, m = 0; f >= h; --f) {
180
+ if (l = n.charCodeAt(f), l === 47) {
181
181
  if (!o) {
182
- f = h + 1;
182
+ p = f + 1;
183
183
  break;
184
184
  }
185
185
  continue;
186
186
  }
187
- g === -1 && (o = !1, g = h + 1), l === 46 ? u === -1 ? u = h : m !== 1 && (m = 1) : u !== -1 && (m = -1);
187
+ g === -1 && (o = !1, g = f + 1), l === 46 ? u === -1 ? u = f : m !== 1 && (m = 1) : u !== -1 && (m = -1);
188
188
  }
189
189
  return u === -1 || g === -1 || // We saw a non-dot character immediately before the dot
190
190
  m === 0 || // The (right-most) trimmed path component is exactly '..'
191
- m === 1 && u === g - 1 && u === f + 1 ? g !== -1 && (f === 0 && c ? r.base = r.name = n.slice(1, g) : r.base = r.name = n.slice(f, g)) : (f === 0 && c ? (r.name = n.slice(1, u), r.base = n.slice(1, g)) : (r.name = n.slice(f, u), r.base = n.slice(f, g)), r.ext = n.slice(u, g)), f > 0 ? r.dir = n.slice(0, f - 1) : c && (r.dir = "/"), r;
191
+ m === 1 && u === g - 1 && u === p + 1 ? g !== -1 && (p === 0 && c ? r.base = r.name = n.slice(1, g) : r.base = r.name = n.slice(p, g)) : (p === 0 && c ? (r.name = n.slice(1, u), r.base = n.slice(1, g)) : (r.name = n.slice(p, u), r.base = n.slice(p, g)), r.ext = n.slice(u, g)), p > 0 ? r.dir = n.slice(0, p - 1) : c && (r.dir = "/"), r;
192
192
  },
193
193
  sep: "/",
194
194
  delimiter: ":",
@@ -198,7 +198,7 @@ function Ee() {
198
198
  return d.posix = d, F = d, F;
199
199
  }
200
200
  var S = Ee();
201
- const W = /* @__PURE__ */ Ce(S);
201
+ const B = /* @__PURE__ */ Ce(S);
202
202
  class R {
203
203
  }
204
204
  b(R, "Shared", "S"), b(R, "Shareable", "R"), b(R, "Mounted", "M"), b(R, "Deletable", "D"), b(R, "Renameable", "N"), b(R, "Moveable", "V"), b(R, "Updateable", "NV"), b(R, "FileUpdateable", "W"), b(R, "FolderCreateable", "CK"), b(R, "Deny", "Z"), b(R, "SecureView", "X");
@@ -315,7 +315,7 @@ b(C, "DavNamespace", [
315
315
  a.LockDiscovery,
316
316
  a.ActiveLock
317
317
  ]);
318
- let B = C;
318
+ let H = C;
319
319
  function G(e) {
320
320
  return e;
321
321
  }
@@ -350,14 +350,14 @@ function He(e) {
350
350
  return e;
351
351
  };
352
352
  }
353
- var H = function() {
353
+ var _ = function() {
354
354
  try {
355
355
  var e = De(Object, "defineProperty");
356
356
  return e({}, "", {}), e;
357
357
  } catch {
358
358
  }
359
- }(), _e = H ? function(e, t) {
360
- return H(e, "toString", {
359
+ }(), _e = _ ? function(e, t) {
360
+ return _(e, "toString", {
361
361
  configurable: !0,
362
362
  enumerable: !1,
363
363
  value: He(t),
@@ -386,10 +386,10 @@ function Qe(e, t) {
386
386
  var i = e == null ? 0 : e.length;
387
387
  return !!i && Ye(e, t, 0) > -1;
388
388
  }
389
- var _ = Math.max;
389
+ var Z = Math.max;
390
390
  function Xe(e, t, i) {
391
- return t = _(t === void 0 ? e.length - 1 : t, 0), function() {
392
- for (var d = arguments, s = -1, n = _(d.length - t, 0), r = Array(n); ++s < n; )
391
+ return t = Z(t === void 0 ? e.length - 1 : t, 0), function() {
392
+ for (var d = arguments, s = -1, n = Z(d.length - t, 0), r = Array(n); ++s < n; )
393
393
  r[s] = d[t + s];
394
394
  s = -1;
395
395
  for (var l = Array(t + 1); ++s < t; )
@@ -425,7 +425,7 @@ function ee(e) {
425
425
  function pt(e) {
426
426
  return e.split("");
427
427
  }
428
- var te = "\\ud800-\\udfff", ht = "\\u0300-\\u036f", gt = "\\ufe20-\\ufe2f", mt = "\\u20d0-\\u20ff", bt = ht + gt + mt, vt = "\\ufe0e\\ufe0f", xt = "[" + te + "]", M = "[" + bt + "]", N = "\\ud83c[\\udffb-\\udfff]", Rt = "(?:" + M + "|" + N + ")", ne = "[^" + te + "]", re = "(?:\\ud83c[\\udde6-\\uddff]){2}", ie = "[\\ud800-\\udbff][\\udc00-\\udfff]", kt = "\\u200d", ae = Rt + "?", se = "[" + vt + "]?", Lt = "(?:" + kt + "(?:" + [ne, re, ie].join("|") + ")" + se + ae + ")*", wt = se + ae + Lt, It = "(?:" + [ne + M + "?", M, re, ie, xt].join("|") + ")", Ct = RegExp(N + "(?=" + N + ")|" + It + wt, "g");
428
+ var te = "\\ud800-\\udfff", ht = "\\u0300-\\u036f", gt = "\\ufe20-\\ufe2f", mt = "\\u20d0-\\u20ff", bt = ht + gt + mt, vt = "\\ufe0e\\ufe0f", xt = "[" + te + "]", N = "[" + bt + "]", j = "\\ud83c[\\udffb-\\udfff]", Rt = "(?:" + N + "|" + j + ")", ne = "[^" + te + "]", re = "(?:\\ud83c[\\udde6-\\uddff]){2}", ie = "[\\ud800-\\udbff][\\udc00-\\udfff]", kt = "\\u200d", ae = Rt + "?", se = "[" + vt + "]?", Lt = "(?:" + kt + "(?:" + [ne, re, ie].join("|") + ")" + se + ae + ")*", It = se + ae + Lt, wt = "(?:" + [ne + N + "?", N, re, ie, xt].join("|") + ")", Ct = RegExp(j + "(?=" + j + ")|" + wt + It, "g");
429
429
  function Dt(e) {
430
430
  return e.match(Ct) || [];
431
431
  }
@@ -658,11 +658,11 @@ var _t = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
658
658
  function Zt(e) {
659
659
  return _t.test(e);
660
660
  }
661
- var oe = "\\ud800-\\udfff", Jt = "\\u0300-\\u036f", qt = "\\ufe20-\\ufe2f", Kt = "\\u20d0-\\u20ff", Yt = Jt + qt + Kt, ue = "\\u2700-\\u27bf", le = "a-z\\xdf-\\xf6\\xf8-\\xff", Qt = "\\xac\\xb1\\xd7\\xf7", Xt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Gt = "\\u2000-\\u206f", en = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ce = "A-Z\\xc0-\\xd6\\xd8-\\xde", tn = "\\ufe0e\\ufe0f", de = Qt + Xt + Gt + en, fe = "['’]", Z = "[" + de + "]", nn = "[" + Yt + "]", pe = "\\d+", rn = "[" + ue + "]", he = "[" + le + "]", ge = "[^" + oe + de + pe + ue + le + ce + "]", an = "\\ud83c[\\udffb-\\udfff]", sn = "(?:" + nn + "|" + an + ")", on = "[^" + oe + "]", me = "(?:\\ud83c[\\udde6-\\uddff]){2}", be = "[\\ud800-\\udbff][\\udc00-\\udfff]", A = "[" + ce + "]", un = "\\u200d", J = "(?:" + he + "|" + ge + ")", ln = "(?:" + A + "|" + ge + ")", q = "(?:" + fe + "(?:d|ll|m|re|s|t|ve))?", K = "(?:" + fe + "(?:D|LL|M|RE|S|T|VE))?", ve = sn + "?", xe = "[" + tn + "]?", cn = "(?:" + un + "(?:" + [on, me, be].join("|") + ")" + xe + ve + ")*", dn = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", fn = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", pn = xe + ve + cn, hn = "(?:" + [rn, me, be].join("|") + ")" + pn, gn = RegExp([
662
- A + "?" + he + "+" + q + "(?=" + [Z, A, "$"].join("|") + ")",
663
- ln + "+" + K + "(?=" + [Z, A + J, "$"].join("|") + ")",
664
- A + "?" + J + "+" + q,
665
- A + "+" + K,
661
+ var oe = "\\ud800-\\udfff", Jt = "\\u0300-\\u036f", qt = "\\ufe20-\\ufe2f", Kt = "\\u20d0-\\u20ff", Yt = Jt + qt + Kt, ue = "\\u2700-\\u27bf", le = "a-z\\xdf-\\xf6\\xf8-\\xff", Qt = "\\xac\\xb1\\xd7\\xf7", Xt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Gt = "\\u2000-\\u206f", en = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ce = "A-Z\\xc0-\\xd6\\xd8-\\xde", tn = "\\ufe0e\\ufe0f", de = Qt + Xt + Gt + en, fe = "['’]", J = "[" + de + "]", nn = "[" + Yt + "]", pe = "\\d+", rn = "[" + ue + "]", he = "[" + le + "]", ge = "[^" + oe + de + pe + ue + le + ce + "]", an = "\\ud83c[\\udffb-\\udfff]", sn = "(?:" + nn + "|" + an + ")", on = "[^" + oe + "]", me = "(?:\\ud83c[\\udde6-\\uddff]){2}", be = "[\\ud800-\\udbff][\\udc00-\\udfff]", A = "[" + ce + "]", un = "\\u200d", q = "(?:" + he + "|" + ge + ")", ln = "(?:" + A + "|" + ge + ")", K = "(?:" + fe + "(?:d|ll|m|re|s|t|ve))?", Y = "(?:" + fe + "(?:D|LL|M|RE|S|T|VE))?", ve = sn + "?", xe = "[" + tn + "]?", cn = "(?:" + un + "(?:" + [on, me, be].join("|") + ")" + xe + ve + ")*", dn = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", fn = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", pn = xe + ve + cn, hn = "(?:" + [rn, me, be].join("|") + ")" + pn, gn = RegExp([
662
+ A + "?" + he + "+" + K + "(?=" + [J, A, "$"].join("|") + ")",
663
+ ln + "+" + Y + "(?=" + [J, A + q, "$"].join("|") + ")",
664
+ A + "?" + q + "+" + K,
665
+ A + "+" + Y,
666
666
  fn,
667
667
  dn,
668
668
  pe,
@@ -683,10 +683,10 @@ function Rn(e) {
683
683
  var kn = Rn(function(e, t, i) {
684
684
  return t = t.toLowerCase(), e + (i ? yt(t) : t);
685
685
  }), Ln = "__lodash_hash_undefined__";
686
- function wn(e) {
686
+ function In(e) {
687
687
  return this.__data__.set(e, Ln), this;
688
688
  }
689
- function In(e) {
689
+ function wn(e) {
690
690
  return this.__data__.has(e);
691
691
  }
692
692
  function T(e) {
@@ -694,9 +694,9 @@ function T(e) {
694
694
  for (this.__data__ = new Pe(); ++t < i; )
695
695
  this.add(e[t]);
696
696
  }
697
- T.prototype.add = T.prototype.push = wn;
698
- T.prototype.has = In;
699
- function Y(e, t) {
697
+ T.prototype.add = T.prototype.push = In;
698
+ T.prototype.has = wn;
699
+ function Q(e, t) {
700
700
  return e.has(t);
701
701
  }
702
702
  function Cn(e) {
@@ -704,25 +704,25 @@ function Cn(e) {
704
704
  }
705
705
  var Dn = Math.min;
706
706
  function An(e, t, i) {
707
- for (var d = Qe, s = e[0].length, n = e.length, r = n, l = Array(n), c = 1 / 0, p = []; r--; ) {
707
+ for (var d = Qe, s = e[0].length, n = e.length, r = n, l = Array(n), c = 1 / 0, h = []; r--; ) {
708
708
  var u = e[r];
709
709
  c = Dn(u.length, c), l[r] = s >= 120 && u.length >= 120 ? new T(r && u) : void 0;
710
710
  }
711
711
  u = e[0];
712
- var f = -1, g = l[0];
712
+ var p = -1, g = l[0];
713
713
  e:
714
- for (; ++f < s && p.length < c; ) {
715
- var o = u[f], h = o;
716
- if (o = o !== 0 ? o : 0, !(g ? Y(g, h) : d(p, h))) {
714
+ for (; ++p < s && h.length < c; ) {
715
+ var o = u[p], f = o;
716
+ if (o = o !== 0 ? o : 0, !(g ? Q(g, f) : d(h, f))) {
717
717
  for (r = n; --r; ) {
718
718
  var m = l[r];
719
- if (!(m ? Y(m, h) : d(e[r], h)))
719
+ if (!(m ? Q(m, f) : d(e[r], f)))
720
720
  continue e;
721
721
  }
722
- g && g.push(h), p.push(o);
722
+ g && g.push(f), h.push(o);
723
723
  }
724
724
  }
725
- return p;
725
+ return h;
726
726
  }
727
727
  function Pn(e) {
728
728
  return Cn(e) ? e : [];
@@ -733,13 +733,13 @@ var On = Ge(function(e) {
733
733
  });
734
734
  const yn = {
735
735
  complex: ["tar.bz2", "tar.gz", "tar.xz"]
736
- }, Mn = (e) => Object.hasOwn(e, "ddate"), Nn = (e) => Object.hasOwn(e, "highlights"), j = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), Re = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", Sn = (e) => Re(e, 0), ke = (e) => Re(e, 1), jn = (e) => {
736
+ }, Mn = (e) => Object.hasOwn(e, "ddate"), Nn = (e) => Object.hasOwn(e, "highlights"), z = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), Re = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", Sn = (e) => Re(e, 0), ke = (e) => Re(e, 1), jn = (e) => {
737
737
  const t = e.extension || "", i = e.name || "";
738
738
  if (!t.length)
739
739
  return i;
740
740
  const d = i.lastIndexOf(`.${t}`);
741
741
  return i.substring(0, d);
742
- }, z = (e) => {
742
+ }, V = (e) => {
743
743
  const t = e.name;
744
744
  if (e.type === "directory" || e.isFolder)
745
745
  return "";
@@ -760,19 +760,19 @@ const yn = {
760
760
  }), t;
761
761
  };
762
762
  function Wn(e, t = []) {
763
- var h, m, w;
764
- const i = ((h = e.props[a.Name]) == null ? void 0 : h.toString()) || S.basename(e.filename), d = e.props[a.FileId], s = e.type === "directory";
763
+ var f, m, I;
764
+ const i = ((f = e.props[a.Name]) == null ? void 0 : f.toString()) || S.basename(e.filename), d = e.props[a.FileId], s = e.type === "directory";
765
765
  let n;
766
766
  e.filename.startsWith("/files") || e.filename.startsWith("/space") ? n = e.filename.split("/").slice(3).join("/") : n = e.filename, n.startsWith("/") || (n = `/${n}`);
767
- const r = z({ ...e, name: i }), l = e.props[a.LockDiscovery];
768
- let c, p, u;
769
- l && (c = l[a.ActiveLock], p = c[a.LockOwner], u = c[a.LockTime]);
770
- let f = [];
771
- e.props[a.ShareTypes] && (f = e.props[a.ShareTypes]["share-type"], Array.isArray(f) || (f = [f]));
767
+ const r = V({ ...e, name: i }), l = e.props[a.LockDiscovery];
768
+ let c, h, u;
769
+ l && (c = l[a.ActiveLock], h = c[a.LockOwner], u = c[a.LockTime]);
770
+ let p = [];
771
+ e.props[a.ShareTypes] && (p = e.props[a.ShareTypes]["share-type"], Array.isArray(p) || (p = [p]));
772
772
  const g = {};
773
773
  for (const D of t || []) {
774
- const I = D.split(":").pop();
775
- e.props[I] && (g[D] = e.props[I]);
774
+ const w = D.split(":").pop();
775
+ e.props[w] && (g[D] = e.props[w]);
776
776
  }
777
777
  const o = {
778
778
  id: d,
@@ -787,15 +787,15 @@ function Wn(e, t = []) {
787
787
  type: s ? "folder" : e.type,
788
788
  isFolder: s,
789
789
  locked: !!c,
790
- lockOwner: p,
790
+ lockOwner: h,
791
791
  lockTime: u,
792
792
  processing: e.processing || !1,
793
793
  mdate: e.props[a.LastModifiedDate],
794
- size: s ? ((m = e.props[a.ContentSize]) == null ? void 0 : m.toString()) || "0" : ((w = e.props[a.ContentLength]) == null ? void 0 : w.toString()) || "0",
794
+ size: s ? ((m = e.props[a.ContentSize]) == null ? void 0 : m.toString()) || "0" : ((I = e.props[a.ContentLength]) == null ? void 0 : I.toString()) || "0",
795
795
  permissions: e.props[a.Permissions] || "",
796
796
  starred: e.props[a.IsFavorite] !== 0,
797
797
  etag: e.props[a.ETag],
798
- shareTypes: f,
798
+ shareTypes: p,
799
799
  privateLink: e.props[a.PrivateLink],
800
800
  downloadURL: e.props[a.DownloadURL],
801
801
  remoteItemId: e.props[a.RemoteItemId],
@@ -843,7 +843,7 @@ function Wn(e, t = []) {
843
843
  canDeny: function() {
844
844
  return this.permissions.indexOf(R.Deny) >= 0;
845
845
  },
846
- getDomSelector: () => j(d)
846
+ getDomSelector: () => z(d)
847
847
  };
848
848
  return Object.defineProperty(o, "nodeId", {
849
849
  get() {
@@ -853,12 +853,12 @@ function Wn(e, t = []) {
853
853
  }
854
854
  function Bn(e) {
855
855
  var n;
856
- const t = e.type === "directory", i = (n = e.props[a.TrashbinOriginalFilename]) == null ? void 0 : n.toString(), d = z({ name: i, type: e.type }), s = W.basename(e.filename);
856
+ const t = e.type === "directory", i = (n = e.props[a.TrashbinOriginalFilename]) == null ? void 0 : n.toString(), d = V({ name: i, type: e.type }), s = B.basename(e.filename);
857
857
  return {
858
858
  type: t ? "folder" : e.type,
859
859
  isFolder: t,
860
860
  ddate: e.props[a.TrashbinDeletedDate],
861
- name: W.basename(i),
861
+ name: B.basename(i),
862
862
  extension: d,
863
863
  path: L(e.props[a.TrashbinOriginalLocation], { leadingSlash: !0 }),
864
864
  id: s,
@@ -875,7 +875,7 @@ function Bn(e) {
875
875
  canCreate: () => !1,
876
876
  isMounted: () => !1,
877
877
  isReceivedShare: () => !1,
878
- getDomSelector: () => j(s)
878
+ getDomSelector: () => z(s)
879
879
  };
880
880
  }
881
881
  var k = /* @__PURE__ */ ((e) => (e.createUpload = "libre.graph/driveItem/upload/create", e.createPermissions = "libre.graph/driveItem/permissions/create", e.createChildren = "libre.graph/driveItem/children/create", e.readBasic = "libre.graph/driveItem/basic/read", e.readPath = "libre.graph/driveItem/path/read", e.readQuota = "libre.graph/driveItem/quota/read", e.readContent = "libre.graph/driveItem/content/read", e.readChildren = "libre.graph/driveItem/children/read", e.readDeleted = "libre.graph/driveItem/deleted/read", e.readPermissions = "libre.graph/driveItem/permissions/read", e.readVersions = "libre.graph/driveItem/versions/read", e.updatePath = "libre.graph/driveItem/path/update", e.updateDeleted = "libre.graph/driveItem/deleted/update", e.updatePermissions = "libre.graph/driveItem/permissions/update", e.updateVersions = "libre.graph/driveItem/versions/update", e.deleteStandard = "libre.graph/driveItem/standard/delete", e.deleteDeleted = "libre.graph/driveItem/deleted/delete", e.deletePermissions = "libre.graph/driveItem/permissions/delete", e))(k || {});
@@ -931,8 +931,8 @@ const x = class x {
931
931
  }
932
932
  };
933
933
  b(x, "user", new O("user", 0, P("User"), "user")), b(x, "group", new O("group", 1, P("Group"), "group")), b(x, "link", new O("link", 3, P("Link"), "link")), b(x, "guest", new O("guest", 4, P("Guest"), "global")), b(x, "remote", new O("remote", 6, P("External"), "earth")), b(x, "individuals", [x.user, x.guest, x.remote]), b(x, "collectives", [x.group]), b(x, "unauthenticated", [x.link]), b(x, "authenticated", [x.user, x.group, x.guest, x.remote]), b(x, "all", [x.user, x.group, x.link, x.guest, x.remote]);
934
- let Q = x;
935
- const Hn = "a0ca6a90-a365-4782-871e-d44447bbc668", _n = "89f37a33-858b-45fa-8890-a1f2b27d90e1", Zn = (e) => (e == null ? void 0 : e.type) === "space", X = (e) => (e == null ? void 0 : e.driveType) === "personal", Jn = (e) => (e == null ? void 0 : e.driveType) === "project", qn = (e) => (e == null ? void 0 : e.driveType) === "share", Kn = (e) => (e == null ? void 0 : e.driveType) === "mountpoint", Yn = (e) => (e == null ? void 0 : e.driveType) === "public";
934
+ let X = x;
935
+ const Hn = "a0ca6a90-a365-4782-871e-d44447bbc668", _n = "89f37a33-858b-45fa-8890-a1f2b27d90e1", Zn = (e) => (e == null ? void 0 : e.type) === "space", M = (e) => (e == null ? void 0 : e.driveType) === "personal", Jn = (e) => (e == null ? void 0 : e.driveType) === "project", qn = (e) => (e == null ? void 0 : e.driveType) === "share", Kn = (e) => (e == null ? void 0 : e.driveType) === "mountpoint", Yn = (e) => (e == null ? void 0 : e.driveType) === "public";
936
936
  function Tn(e, t) {
937
937
  return L("spaces", e, t, {
938
938
  leadingSlash: !0
@@ -954,14 +954,14 @@ function Xn(e) {
954
954
  return e.permissions.includes(k.deletePermissions);
955
955
  }
956
956
  function Gn(e) {
957
- var f, g, o, h, m, w;
958
- const t = e.publicLinkPassword, i = (f = e.props) == null ? void 0 : f[a.FileId], d = (g = e.props) == null ? void 0 : g[a.PublicLinkItemType], s = (o = e.props) == null ? void 0 : o[a.PublicLinkPermission], n = (h = e.props) == null ? void 0 : h[a.PublicLinkExpiration], r = (m = e.props) == null ? void 0 : m[a.PublicLinkShareDate], l = (w = e.props) == null ? void 0 : w[a.PublicLinkShareOwner], c = e.publicLinkType;
959
- let p, u;
960
- return c === "ocm" ? (p = `ocm/${e.id}`, u = Ue(e.id)) : (p = `public/${e.id}`, u = Te(e.id)), Object.assign(
957
+ var p, g, o, f, m, I;
958
+ const t = e.publicLinkPassword, i = (p = e.props) == null ? void 0 : p[a.FileId], d = (g = e.props) == null ? void 0 : g[a.PublicLinkItemType], s = (o = e.props) == null ? void 0 : o[a.PublicLinkPermission], n = (f = e.props) == null ? void 0 : f[a.PublicLinkExpiration], r = (m = e.props) == null ? void 0 : m[a.PublicLinkShareDate], l = (I = e.props) == null ? void 0 : I[a.PublicLinkShareOwner], c = e.publicLinkType;
959
+ let h, u;
960
+ return c === "ocm" ? (h = `ocm/${e.id}`, u = Ue(e.id)) : (h = `public/${e.id}`, u = Te(e.id)), Object.assign(
961
961
  Le({
962
962
  ...e,
963
963
  driveType: "public",
964
- driveAlias: p,
964
+ driveAlias: h,
965
965
  webDavPath: u
966
966
  }),
967
967
  {
@@ -994,10 +994,10 @@ function er({
994
994
  }, s;
995
995
  }
996
996
  function Le(e) {
997
- var p, u, f, g;
997
+ var h, u, p, g;
998
998
  let t, i;
999
999
  e.special && (t = e.special.find((o) => o.specialFolder.name === "image"), i = e.special.find((o) => o.specialFolder.name === "readme"), t && (t.webDavUrl = decodeURI(t.webDavUrl)), i && (i.webDavUrl = decodeURI(i.webDavUrl)));
1000
- const d = ((u = (p = e.root) == null ? void 0 : p.deleted) == null ? void 0 : u.state) === "trashed", s = L(e.webDavPath || Tn(e.id), {
1000
+ const d = ((u = (h = e.root) == null ? void 0 : h.deleted) == null ? void 0 : u.state) === "trashed", s = L(e.webDavPath || Tn(e.id), {
1001
1001
  leadingSlash: !0
1002
1002
  }), n = L(e.serverUrl, "remote.php/dav", s), r = L(e.webDavTrashPath || Un(e.id), {
1003
1003
  leadingSlash: !0
@@ -1017,7 +1017,7 @@ function Le(e) {
1017
1017
  type: "space",
1018
1018
  isFolder: !0,
1019
1019
  mdate: e.lastModifiedDateTime,
1020
- size: ((f = e.quota) == null ? void 0 : f.used) || 0,
1020
+ size: ((p = e.quota) == null ? void 0 : p.used) || 0,
1021
1021
  tags: [],
1022
1022
  permissions: "",
1023
1023
  starred: !1,
@@ -1031,33 +1031,34 @@ function Le(e) {
1031
1031
  spaceQuota: e.quota,
1032
1032
  spaceImageData: t,
1033
1033
  spaceReadmeData: i,
1034
+ hasTrashedItems: e["@libre.graph.hasTrashedItems"] || !1,
1034
1035
  graphPermissions: void 0,
1035
1036
  canUpload: function({ user: o } = {}) {
1036
- var h;
1037
- return X(this) && this.isOwner(o) ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.createUpload);
1037
+ var f;
1038
+ return M(this) && this.isOwner(o) ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.createUpload);
1038
1039
  },
1039
1040
  canDownload: function() {
1040
1041
  return !0;
1041
1042
  },
1042
1043
  canBeDeleted: function({ ability: o } = {}) {
1043
- var h;
1044
- return this.disabled ? o != null && o.can("delete-all", "Drive") ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.deletePermissions) : !1;
1044
+ var f;
1045
+ return this.disabled ? o != null && o.can("delete-all", "Drive") ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.deletePermissions) : !1;
1045
1046
  },
1046
1047
  canRename: function({ ability: o } = {}) {
1047
- var h;
1048
- return o != null && o.can("update-all", "Drive") ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.deletePermissions);
1048
+ var f;
1049
+ return o != null && o.can("update-all", "Drive") ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.deletePermissions);
1049
1050
  },
1050
1051
  canEditDescription: function({ ability: o } = {}) {
1051
- var h;
1052
- return o != null && o.can("update-all", "Drive") ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.deletePermissions);
1052
+ var f;
1053
+ return o != null && o.can("update-all", "Drive") ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.deletePermissions);
1053
1054
  },
1054
1055
  canRestore: function({ ability: o } = {}) {
1055
- var h;
1056
- return this.disabled ? o != null && o.can("update-all", "Drive") ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.deletePermissions) : !1;
1056
+ var f;
1057
+ return this.disabled ? o != null && o.can("update-all", "Drive") ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.deletePermissions) : !1;
1057
1058
  },
1058
1059
  canDisable: function({ ability: o } = {}) {
1059
- var h;
1060
- return this.disabled ? !1 : o != null && o.can("delete-all", "Drive") ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.deletePermissions);
1060
+ var f;
1061
+ return this.disabled ? !1 : o != null && o.can("delete-all", "Drive") ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.deletePermissions);
1061
1062
  },
1062
1063
  canShare: function() {
1063
1064
  var o;
@@ -1075,13 +1076,13 @@ function Le(e) {
1075
1076
  var o;
1076
1077
  return (o = this.graphPermissions) == null ? void 0 : o.includes(k.updateDeleted);
1077
1078
  },
1078
- canDeleteFromTrashBin: function() {
1079
- var o;
1080
- return (o = this.graphPermissions) == null ? void 0 : o.includes(k.deletePermissions);
1079
+ canDeleteFromTrashBin: function({ user: o } = {}) {
1080
+ var f;
1081
+ return M(this) && this.isOwner(o) ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.deletePermissions);
1081
1082
  },
1082
1083
  canListVersions: function({ user: o } = {}) {
1083
- var h;
1084
- return X(this) && this.isOwner(o) ? !0 : (h = this.graphPermissions) == null ? void 0 : h.includes(k.readVersions);
1084
+ var f;
1085
+ return M(this) && this.isOwner(o) ? !0 : (f = this.graphPermissions) == null ? void 0 : f.includes(k.readVersions);
1085
1086
  },
1086
1087
  canCreate: function() {
1087
1088
  return !0;
@@ -1099,7 +1100,7 @@ function Le(e) {
1099
1100
  return ["share", "mountpoint", "public"].includes(e.driveType);
1100
1101
  },
1101
1102
  canDeny: () => !1,
1102
- getDomSelector: () => j(e.id),
1103
+ getDomSelector: () => z(e.id),
1103
1104
  getDriveAliasAndItem({ path: o }) {
1104
1105
  return L(this.driveAlias, o, {
1105
1106
  leadingSlash: !1
@@ -1112,8 +1113,8 @@ function Le(e) {
1112
1113
  return L(l, o);
1113
1114
  },
1114
1115
  isOwner(o) {
1115
- var h;
1116
- return (o == null ? void 0 : o.id) === ((h = this.owner) == null ? void 0 : h.id);
1116
+ var f;
1117
+ return (o == null ? void 0 : o.id) === ((f = this.owner) == null ? void 0 : f.id);
1117
1118
  }
1118
1119
  };
1119
1120
  return Object.defineProperty(c, "nodeId", {
@@ -1127,7 +1128,7 @@ function tr(e) {
1127
1128
  id: e.spaceImageData.id,
1128
1129
  name: e.spaceImageData.name,
1129
1130
  etag: e.spaceImageData.eTag,
1130
- extension: z({ name: e.spaceImageData.name }),
1131
+ extension: V({ name: e.spaceImageData.name }),
1131
1132
  mimeType: e.spaceImageData.file.mimeType,
1132
1133
  type: "file",
1133
1134
  webDavPath: L(e.webDavPath, ".space", e.spaceImageData.name),
@@ -1140,9 +1141,9 @@ export {
1140
1141
  Yn as C,
1141
1142
  T as D,
1142
1143
  Qe as E,
1143
- Y as F,
1144
+ Q as F,
1144
1145
  k as G,
1145
- B as H,
1146
+ H,
1146
1147
  a as I,
1147
1148
  Fe as J,
1148
1149
  R as K,
@@ -1152,16 +1153,16 @@ export {
1152
1153
  Te as b,
1153
1154
  Nn as c,
1154
1155
  Sn as d,
1155
- j as e,
1156
+ z as e,
1156
1157
  ke as f,
1157
1158
  jn as g,
1158
- z as h,
1159
+ V as h,
1159
1160
  Mn as i,
1160
1161
  zn as j,
1161
1162
  Vn as k,
1162
1163
  Wn as l,
1163
1164
  Bn as m,
1164
- Q as n,
1165
+ X as n,
1165
1166
  Tn as o,
1166
1167
  Un as p,
1167
1168
  Qn as q,
@@ -1172,6 +1173,6 @@ export {
1172
1173
  tr as v,
1173
1174
  Hn as w,
1174
1175
  Zn as x,
1175
- X as y,
1176
+ M as y,
1176
1177
  Jn as z
1177
1178
  };