@hostlink/light 2.3.8 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/light.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var Xt = Object.defineProperty;
2
2
  var Yt = (e, t, r) => t in e ? Xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var w = (e, t, r) => Yt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsonToGraphQLQuery as Ft, VariableType as W } from "json-to-graphql-query";
3
+ var A = (e, t, r) => Yt(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsonToGraphQLQuery as Tt, VariableType as W } from "json-to-graphql-query";
5
5
  import Zt from "axios";
6
- function Dt(e) {
6
+ function Pt(e) {
7
7
  const t = "==".slice(0, (4 - e.length % 4) % 4), r = e.replace(/-/g, "+").replace(/_/g, "/") + t, n = atob(r), i = new ArrayBuffer(n.length), s = new Uint8Array(i);
8
8
  for (let o = 0; o < n.length; o++)
9
9
  s[o] = n.charCodeAt(o);
@@ -19,14 +19,14 @@ function Nt(e) {
19
19
  "_"
20
20
  ).replace(/=/g, "");
21
21
  }
22
- var l = "copy", A = "convert";
23
- function P(e, t, r) {
24
- if (t === l)
22
+ var h = "copy", _ = "convert";
23
+ function F(e, t, r) {
24
+ if (t === h)
25
25
  return r;
26
- if (t === A)
26
+ if (t === _)
27
27
  return e(r);
28
28
  if (t instanceof Array)
29
- return r.map((n) => P(e, t[0], n));
29
+ return r.map((n) => F(e, t[0], n));
30
30
  if (t instanceof Object) {
31
31
  const n = {};
32
32
  for (const [i, s] of Object.entries(t)) {
@@ -43,7 +43,7 @@ function P(e, t, r) {
43
43
  n[i] = null;
44
44
  continue;
45
45
  }
46
- n[i] = P(
46
+ n[i] = F(
47
47
  e,
48
48
  s.schema,
49
49
  r[i]
@@ -59,7 +59,7 @@ function H(e, t) {
59
59
  derive: t
60
60
  };
61
61
  }
62
- function p(e) {
62
+ function y(e) {
63
63
  return {
64
64
  required: !0,
65
65
  schema: e
@@ -72,44 +72,44 @@ function b(e) {
72
72
  };
73
73
  }
74
74
  var Bt = {
75
- type: p(l),
76
- id: p(A),
77
- transports: b(l)
75
+ type: y(h),
76
+ id: y(_),
77
+ transports: b(h)
78
78
  }, qt = {
79
- appid: b(l),
80
- appidExclude: b(l),
81
- credProps: b(l)
82
- }, xt = {
83
- appid: b(l),
84
- appidExclude: b(l),
85
- credProps: b(l)
79
+ appid: b(h),
80
+ appidExclude: b(h),
81
+ credProps: b(h)
82
+ }, Kt = {
83
+ appid: b(h),
84
+ appidExclude: b(h),
85
+ credProps: b(h)
86
86
  }, kt = {
87
- publicKey: p({
88
- rp: p(l),
89
- user: p({
90
- id: p(A),
91
- name: p(l),
92
- displayName: p(l)
87
+ publicKey: y({
88
+ rp: y(h),
89
+ user: y({
90
+ id: y(_),
91
+ name: y(h),
92
+ displayName: y(h)
93
93
  }),
94
- challenge: p(A),
95
- pubKeyCredParams: p(l),
96
- timeout: b(l),
94
+ challenge: y(_),
95
+ pubKeyCredParams: y(h),
96
+ timeout: b(h),
97
97
  excludeCredentials: b([Bt]),
98
- authenticatorSelection: b(l),
99
- attestation: b(l),
98
+ authenticatorSelection: b(h),
99
+ attestation: b(h),
100
100
  extensions: b(qt)
101
101
  }),
102
- signal: b(l)
102
+ signal: b(h)
103
103
  }, tr = {
104
- type: p(l),
105
- id: p(l),
106
- rawId: p(A),
107
- authenticatorAttachment: b(l),
108
- response: p({
109
- clientDataJSON: p(A),
110
- attestationObject: p(A),
104
+ type: y(h),
105
+ id: y(h),
106
+ rawId: y(_),
107
+ authenticatorAttachment: b(h),
108
+ response: y({
109
+ clientDataJSON: y(_),
110
+ attestationObject: y(_),
111
111
  transports: H(
112
- l,
112
+ h,
113
113
  (e) => {
114
114
  var t;
115
115
  return ((t = e.getTransports) == null ? void 0 : t.call(e)) || [];
@@ -117,51 +117,51 @@ var Bt = {
117
117
  )
118
118
  }),
119
119
  clientExtensionResults: H(
120
- xt,
120
+ Kt,
121
121
  (e) => e.getClientExtensionResults()
122
122
  )
123
123
  }, rr = {
124
- mediation: b(l),
125
- publicKey: p({
126
- challenge: p(A),
127
- timeout: b(l),
128
- rpId: b(l),
124
+ mediation: b(h),
125
+ publicKey: y({
126
+ challenge: y(_),
127
+ timeout: b(h),
128
+ rpId: b(h),
129
129
  allowCredentials: b([Bt]),
130
- userVerification: b(l),
130
+ userVerification: b(h),
131
131
  extensions: b(qt)
132
132
  }),
133
- signal: b(l)
133
+ signal: b(h)
134
134
  }, er = {
135
- type: p(l),
136
- id: p(l),
137
- rawId: p(A),
138
- authenticatorAttachment: b(l),
139
- response: p({
140
- clientDataJSON: p(A),
141
- authenticatorData: p(A),
142
- signature: p(A),
143
- userHandle: p(A)
135
+ type: y(h),
136
+ id: y(h),
137
+ rawId: y(_),
138
+ authenticatorAttachment: b(h),
139
+ response: y({
140
+ clientDataJSON: y(_),
141
+ authenticatorData: y(_),
142
+ signature: y(_),
143
+ userHandle: y(_)
144
144
  }),
145
145
  clientExtensionResults: H(
146
- xt,
146
+ Kt,
147
147
  (e) => e.getClientExtensionResults()
148
148
  )
149
149
  };
150
150
  function nr(e) {
151
- return P(Dt, kt, e);
151
+ return F(Pt, kt, e);
152
152
  }
153
153
  function ir(e) {
154
- return P(
154
+ return F(
155
155
  Nt,
156
156
  tr,
157
157
  e
158
158
  );
159
159
  }
160
160
  function sr(e) {
161
- return P(Dt, rr, e);
161
+ return F(Pt, rr, e);
162
162
  }
163
163
  function or(e) {
164
- return P(
164
+ return F(
165
165
  Nt,
166
166
  er,
167
167
  e
@@ -181,7 +181,7 @@ async function ur(e) {
181
181
  }
182
182
  const cr = (e) => ({
183
183
  login: async (t) => {
184
- const { app: r } = await O(e, {
184
+ const { app: r } = await w(e, {
185
185
  app: {
186
186
  auth: {
187
187
  webAuthnRequestOptions: {
@@ -194,13 +194,13 @@ const cr = (e) => ({
194
194
  }), n = r.auth.webAuthnRequestOptions, i = sr({
195
195
  publicKey: n
196
196
  }), s = await ur(i);
197
- await y(e, "webAuthnAssertion", {
197
+ await f(e, "webAuthnAssertion", {
198
198
  username: t,
199
199
  assertion: s.toJSON()
200
200
  });
201
201
  },
202
202
  register: async () => {
203
- const { app: t } = await O(e, {
203
+ const { app: t } = await w(e, {
204
204
  app: {
205
205
  auth: {
206
206
  webAuthnCreationOptions: !0
@@ -209,52 +209,52 @@ const cr = (e) => ({
209
209
  }), r = nr({
210
210
  publicKey: t.auth.webAuthnCreationOptions
211
211
  }), n = await ar(r);
212
- await y(e, "webAuthnRegister", {
212
+ await f(e, "webAuthnRegister", {
213
213
  registration: n.toJSON()
214
214
  });
215
215
  }
216
216
  }), fr = (e) => ({
217
217
  WebAuthn: cr(e),
218
- facebookLogin: (t) => y(e, "facebookLogin", {
218
+ facebookLogin: (t) => f(e, "facebookLogin", {
219
219
  access_token: t
220
220
  }),
221
- microsoftLogin: (t) => y(e, "microsoftLogin", {
221
+ microsoftLogin: (t) => f(e, "microsoftLogin", {
222
222
  access_token: t
223
223
  }),
224
- googleLogin: (t) => y(e, "googleLogin", {
224
+ googleLogin: (t) => f(e, "googleLogin", {
225
225
  credential: t
226
226
  }),
227
- login: (t, r, n = "") => y(e, "login", {
227
+ login: (t, r, n = "") => f(e, "login", {
228
228
  username: t,
229
229
  password: r,
230
230
  code: n
231
231
  }),
232
- logout: () => y(e, "logout"),
233
- changeExpiredPassword: (t, r, n) => y(e, "changeExpiredPassword", {
232
+ logout: () => f(e, "logout"),
233
+ changeExpiredPassword: (t, r, n) => f(e, "changeExpiredPassword", {
234
234
  username: t,
235
235
  old_password: r,
236
236
  new_password: n
237
237
  }),
238
- updatePassword: (t, r) => y(e, "updatePassword", {
238
+ updatePassword: (t, r) => f(e, "updatePassword", {
239
239
  old_password: t,
240
240
  new_password: r
241
241
  }),
242
- resetPassword: (t, r, n) => y(e, "resetPassword", {
242
+ resetPassword: (t, r, n) => f(e, "resetPassword", {
243
243
  username: t,
244
244
  password: r,
245
245
  code: n
246
246
  }),
247
- forgetPassword: (t, r) => y(e, "forgetPassword", {
247
+ forgetPassword: (t, r) => f(e, "forgetPassword", {
248
248
  username: t,
249
249
  email: r
250
250
  }),
251
251
  verifyCode(t, r) {
252
- return y(e, "forgetPasswordVerifyCode", {
252
+ return f(e, "forgetPasswordVerifyCode", {
253
253
  username: t,
254
254
  code: r
255
255
  });
256
256
  },
257
- granted: async (t) => (await O(e, {
257
+ granted: async (t) => (await w(e, {
258
258
  granted: {
259
259
  __args: {
260
260
  rights: t
@@ -276,32 +276,32 @@ const cr = (e) => ({
276
276
  },
277
277
  gqlFields(a) {
278
278
  const c = [];
279
- for (const h of a)
280
- if (typeof h == "string") {
281
- const v = u(h);
279
+ for (const p of a)
280
+ if (typeof p == "string") {
281
+ const v = u(p);
282
282
  v && c.push(v.getGQLField());
283
- } else typeof h == "object" && c.push(h);
283
+ } else typeof p == "object" && c.push(p);
284
284
  return c;
285
285
  },
286
286
  async update(a, c) {
287
- return await y(i, "update" + n, { id: a, data: c });
287
+ return await f(i, "update" + n, { id: a, data: c });
288
288
  },
289
289
  async delete(a) {
290
- return await y(i, "delete" + n, { id: a });
290
+ return await f(i, "delete" + n, { id: a });
291
291
  },
292
292
  async add(a) {
293
- return await y(i, "add" + n, { data: a });
293
+ return await f(i, "add" + n, { data: a });
294
294
  },
295
295
  fields(a) {
296
296
  let c = [];
297
- for (let h of a) {
298
- const v = u(h);
297
+ for (let p of a) {
298
+ const v = u(p);
299
299
  v && c.push(v);
300
300
  }
301
301
  return c;
302
302
  },
303
303
  async get(a, c) {
304
- return (await O(i, {
304
+ return (await w(i, {
305
305
  ["list" + n]: {
306
306
  __args: {
307
307
  filters: a
@@ -316,7 +316,7 @@ const cr = (e) => ({
316
316
  }))["list" + n].data[0];
317
317
  },
318
318
  async list(a, c) {
319
- return (await O(i, {
319
+ return (await w(i, {
320
320
  ["list" + n]: {
321
321
  __args: {
322
322
  filters: a
@@ -334,10 +334,10 @@ function hr(e) {
334
334
  var t, r, n, i, s, o = String, u = 255;
335
335
  for (e.slice(0, 2) === "<~" && e.slice(-2), e = e.slice(2, -2).replace(/\s/g, "").replace("z", "!!!!!"), t = "uuuuu".slice(e.length % 5 || 5), e += t, n = [], i = 0, s = e.length; s > i; i += 5) r = 52200625 * (e.charCodeAt(i) - 33) + 614125 * (e.charCodeAt(i + 1) - 33) + 7225 * (e.charCodeAt(i + 2) - 33) + 85 * (e.charCodeAt(i + 3) - 33) + (e.charCodeAt(i + 4) - 33), n.push(u & r >> 24, u & r >> 16, u & r >> 8, u & r);
336
336
  return function(a, c) {
337
- for (var h = c; h > 0; h--) a.pop();
337
+ for (var p = c; p > 0; p--) a.pop();
338
338
  }(n, t.length), o.fromCharCode.apply(o, n);
339
339
  }
340
- const R = (e = "") => {
340
+ const M = (e = "") => {
341
341
  const t = e, r = (n = "application/octet-stream") => {
342
342
  const i = new Uint8Array(t.length);
343
343
  for (let u = 0; u < t.length; u++)
@@ -356,10 +356,10 @@ const R = (e = "") => {
356
356
  window.open(r(n), "_blank");
357
357
  }
358
358
  };
359
- }, lo = {
360
- fromBase85: (e) => R(hr(e)),
361
- fromBase64: (e) => R(atob(e)),
362
- fromString: (e) => R(e)
359
+ }, ho = {
360
+ fromBase85: (e) => M(hr(e)),
361
+ fromBase64: (e) => M(atob(e)),
362
+ fromString: (e) => M(e)
363
363
  }, G = (e) => {
364
364
  let t = {};
365
365
  return typeof e == "string" ? (t[e] = !0, t) : e instanceof Array ? (e.forEach((r) => {
@@ -377,8 +377,8 @@ const R = (e = "") => {
377
377
  }
378
378
  t[r] = G(n);
379
379
  }), t);
380
- }, N = (e) => G(e), O = async (e, t) => {
381
- let r = Ft(N(t));
380
+ }, N = (e) => G(e), w = async (e, t) => {
381
+ let r = Tt(N(t));
382
382
  const n = await e.post("", {
383
383
  query: `{ ${r} }`
384
384
  });
@@ -398,32 +398,32 @@ function yr(e) {
398
398
  return !0;
399
399
  return !1;
400
400
  }
401
- const y = async (e, t, r = null, n = []) => {
401
+ const f = async (e, t, r = null, n = []) => {
402
402
  let i = {
403
403
  [t]: {}
404
404
  };
405
405
  const s = new FormData();
406
406
  let o = !1;
407
407
  if (r) {
408
- const c = {}, h = {}, v = {};
409
- let f = 0;
408
+ const c = {}, p = {}, v = {};
409
+ let l = 0;
410
410
  Object.entries(r).forEach(([m, g]) => {
411
411
  if (g instanceof Array && pr(g)) {
412
412
  o = !0;
413
413
  let E = 0;
414
414
  g.forEach((C) => {
415
- C instanceof File && (c[m] = new W(m), h[f] = ["variables." + m + "." + E], s.append(f.toString(), C), f++);
415
+ C instanceof File && (c[m] = new W(m), p[l] = ["variables." + m + "." + E], s.append(l.toString(), C), l++);
416
416
  }), v[m] = "[Upload!]!";
417
- } else g instanceof File ? (o = !0, c[m] = new W(m), h[f] = ["variables." + m], s.append(f.toString(), g), v[m] = "Upload!", f++) : g instanceof Object && yr(g) ? (o = !0, c[m] = {}, Object.entries(g).forEach(([E, C]) => {
418
- C instanceof File ? (c[m][E] = new W(E), h[f] = ["variables." + E], s.append(f.toString(), C), v[E] = "Upload!", f++) : c[m][E] = C;
417
+ } else g instanceof File ? (o = !0, c[m] = new W(m), p[l] = ["variables." + m], s.append(l.toString(), g), v[m] = "Upload!", l++) : g instanceof Object && yr(g) ? (o = !0, c[m] = {}, Object.entries(g).forEach(([E, C]) => {
418
+ C instanceof File ? (c[m][E] = new W(E), p[l] = ["variables." + E], s.append(l.toString(), C), v[E] = "Upload!", l++) : c[m][E] = C;
419
419
  })) : g !== void 0 && (c[m] = g);
420
- }), i[t].__args = c, i.__variables = v, o && s.append("map", JSON.stringify(h));
420
+ }), i[t].__args = c, i.__variables = v, o && s.append("map", JSON.stringify(p));
421
421
  }
422
- Object.entries(N(n)).forEach(([c, h]) => {
423
- i[t][c] = h;
422
+ Object.entries(N(n)).forEach(([c, p]) => {
423
+ i[t][c] = p;
424
424
  }), Object.entries(i[t]).length === 0 && (i[t] = !0);
425
425
  let u = null;
426
- const a = Ft({ mutation: i });
426
+ const a = Tt({ mutation: i });
427
427
  if (o ? (s.append("operations", JSON.stringify({
428
428
  query: a
429
429
  })), u = await e.post("", s)) : u = await e.post("", {
@@ -432,7 +432,7 @@ const y = async (e, t, r = null, n = []) => {
432
432
  throw new Error(u.data.errors[0].message);
433
433
  return u.data.data[t];
434
434
  }, mr = (e) => ({
435
- uploadTempFile: (t) => y(e, "fsUploadTempFile", {
435
+ uploadTempFile: (t) => f(e, "fsUploadTempFile", {
436
436
  file: t
437
437
  }, {
438
438
  name: !0,
@@ -441,7 +441,7 @@ const y = async (e, t, r = null, n = []) => {
441
441
  mime: !0
442
442
  }),
443
443
  folders: {
444
- list: async (t) => (await O(e, {
444
+ list: async (t) => (await w(e, {
445
445
  fsListFolders: {
446
446
  __args: {
447
447
  path: t
@@ -450,12 +450,12 @@ const y = async (e, t, r = null, n = []) => {
450
450
  path: !0
451
451
  }
452
452
  })).fsListFolders,
453
- create: (t) => y(e, "fsCreateFolder", { path: t }),
454
- delete: (t) => y(e, "fsDeleteFolder", { path: t }),
455
- rename: (t, r) => y(e, "fsRenameFolder", { path: t, name: r })
453
+ create: (t) => f(e, "fsCreateFolder", { path: t }),
454
+ delete: (t) => f(e, "fsDeleteFolder", { path: t }),
455
+ rename: (t, r) => f(e, "fsRenameFolder", { path: t, name: r })
456
456
  },
457
457
  files: {
458
- list: async (t) => (await O(e, {
458
+ list: async (t) => (await w(e, {
459
459
  fsListFiles: {
460
460
  __args: {
461
461
  path: t
@@ -469,7 +469,7 @@ const y = async (e, t, r = null, n = []) => {
469
469
  }
470
470
  })).fsListFiles,
471
471
  read: async (t) => {
472
- let r = await O(e, {
472
+ let r = await w(e, {
473
473
  fsFile: {
474
474
  __args: {
475
475
  path: t
@@ -479,13 +479,13 @@ const y = async (e, t, r = null, n = []) => {
479
479
  });
480
480
  return window.atob(r.fsFile.base64Content);
481
481
  },
482
- write: (t, r) => y(e, "fsWriteFile", {
482
+ write: (t, r) => f(e, "fsWriteFile", {
483
483
  path: t,
484
484
  content: r
485
485
  }),
486
- delete: (t) => y(e, "fsDeleteFile", { path: t }),
487
- rename: (t, r) => y(e, "fsRenameFile", { path: t, name: r }),
488
- move: (t, r) => y(e, "fsMoveFile", { source: t, target: r })
486
+ delete: (t) => f(e, "fsDeleteFile", { path: t }),
487
+ rename: (t, r) => f(e, "fsRenameFile", { path: t, name: r }),
488
+ move: (t, r) => f(e, "fsMoveFile", { source: t, target: r })
489
489
  }
490
490
  }), dr = (e) => ({
491
491
  get: async (t) => (await e({
@@ -496,13 +496,13 @@ const y = async (e, t, r = null, n = []) => {
496
496
  }
497
497
  })).config
498
498
  }), vr = (e) => ({
499
- send: (t, r, n) => y(e, "sendMail", {
499
+ send: (t, r, n) => f(e, "sendMail", {
500
500
  email: t,
501
501
  subject: r,
502
502
  message: n
503
503
  })
504
504
  }), br = (e) => ({
505
- list: async () => (await O(e, {
505
+ list: async () => (await w(e, {
506
506
  listUser: {
507
507
  data: {
508
508
  user_id: !0,
@@ -533,8 +533,8 @@ const y = async (e, t, r = null, n = []) => {
533
533
  return a.field && typeof a.field == "function" ? a.field(c) : a.field && typeof a.field == "string" ? c[a.field] : c[this.getName()];
534
534
  },
535
535
  getFormattedValue(c) {
536
- const h = this.getValue(c);
537
- return a.format ? a.format(h) : h;
536
+ const p = this.getValue(c);
537
+ return a.format ? a.format(p) : p;
538
538
  }
539
539
  });
540
540
  }
@@ -545,7 +545,7 @@ const y = async (e, t, r = null, n = []) => {
545
545
  }
546
546
  };
547
547
  }, wr = (e) => ({
548
- list: async () => (await O(e, {
548
+ list: async () => (await w(e, {
549
549
  listRole: {
550
550
  name: !0
551
551
  }
@@ -554,7 +554,7 @@ const y = async (e, t, r = null, n = []) => {
554
554
  function Ar(e) {
555
555
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
556
556
  }
557
- var Kt = { exports: {} }, _r = function() {
557
+ var Rt = { exports: {} }, _r = function() {
558
558
  var t = this, r = -1;
559
559
  return {
560
560
  next: function() {
@@ -614,9 +614,9 @@ var Ir = function(t) {
614
614
  } while (i < this.items.length);
615
615
  else if (z(this.items) === "object") {
616
616
  var u = Object.keys(this.items), a = function() {
617
- var h = u.slice(i, i + t), v = new r.constructor({});
618
- h.forEach(function(f) {
619
- return v.put(f, r.items[f]);
617
+ var p = u.slice(i, i + t), v = new r.constructor({});
618
+ p.forEach(function(l) {
619
+ return v.put(l, r.items[l]);
620
620
  }), n.push(v), i += t;
621
621
  };
622
622
  do
@@ -627,13 +627,13 @@ var Ir = function(t) {
627
627
  return new this.constructor(n);
628
628
  };
629
629
  function Cr(e) {
630
- return Dr(e) || Fr(e) || Pr(e) || Tr();
630
+ return Pr(e) || Tr(e) || Fr(e) || Dr();
631
631
  }
632
- function Tr() {
632
+ function Dr() {
633
633
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
634
634
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
635
635
  }
636
- function Pr(e, t) {
636
+ function Fr(e, t) {
637
637
  if (e) {
638
638
  if (typeof e == "string") return X(e, t);
639
639
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -641,10 +641,10 @@ function Pr(e, t) {
641
641
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return X(e, t);
642
642
  }
643
643
  }
644
- function Fr(e) {
644
+ function Tr(e) {
645
645
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
646
646
  }
647
- function Dr(e) {
647
+ function Pr(e) {
648
648
  if (Array.isArray(e)) return X(e);
649
649
  }
650
650
  function X(e, t) {
@@ -658,13 +658,13 @@ var Nr = function() {
658
658
  return new this.constructor((t = []).concat.apply(t, Cr(this.items)));
659
659
  };
660
660
  function Br(e, t) {
661
- return Ur(e) || Kr(e, t) || xr(e, t) || qr();
661
+ return Ur(e) || Rr(e, t) || Kr(e, t) || qr();
662
662
  }
663
663
  function qr() {
664
664
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
665
665
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
666
666
  }
667
- function xr(e, t) {
667
+ function Kr(e, t) {
668
668
  if (e) {
669
669
  if (typeof e == "string") return pt(e, t);
670
670
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -678,7 +678,7 @@ function pt(e, t) {
678
678
  n[r] = e[r];
679
679
  return n;
680
680
  }
681
- function Kr(e, t) {
681
+ function Rr(e, t) {
682
682
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
683
683
  if (r != null) {
684
684
  var n = [], i = !0, s = !1, o, u;
@@ -728,14 +728,14 @@ var Wr = function(t) {
728
728
  } else typeof this.items == "string" && (i[this.items] = n);
729
729
  return new this.constructor(i);
730
730
  };
731
- function Rr(e) {
732
- return Lr(e) || Vr(e) || Mr(e) || Jr();
731
+ function Mr(e) {
732
+ return xr(e) || Lr(e) || Vr(e) || Jr();
733
733
  }
734
734
  function Jr() {
735
735
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
736
736
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
737
737
  }
738
- function Mr(e, t) {
738
+ function Vr(e, t) {
739
739
  if (e) {
740
740
  if (typeof e == "string") return Y(e, t);
741
741
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -743,10 +743,10 @@ function Mr(e, t) {
743
743
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Y(e, t);
744
744
  }
745
745
  }
746
- function Vr(e) {
746
+ function Lr(e) {
747
747
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
748
748
  }
749
- function Lr(e) {
749
+ function xr(e) {
750
750
  if (Array.isArray(e)) return Y(e);
751
751
  }
752
752
  function Y(e, t) {
@@ -759,7 +759,7 @@ var Wt = function(t) {
759
759
  var r;
760
760
  if (Array.isArray(t)) {
761
761
  var n;
762
- r = [], (n = r).push.apply(n, Rr(t));
762
+ r = [], (n = r).push.apply(n, Mr(t));
763
763
  } else
764
764
  r = {}, Object.keys(t).forEach(function(i) {
765
765
  r[i] = t[i];
@@ -846,7 +846,7 @@ function k(e, t) {
846
846
  n[r] = e[r];
847
847
  return n;
848
848
  }
849
- var ne = $, ie = d, se = ie.isFunction, Rt = function(t, r) {
849
+ var ne = $, ie = d, se = ie.isFunction, Mt = function(t, r) {
850
850
  if (r !== void 0)
851
851
  return Array.isArray(this.items) ? this.items.filter(function(i) {
852
852
  return i[t] !== void 0 && i[t] === r;
@@ -875,9 +875,9 @@ var ne = $, ie = d, se = ie.isFunction, Rt = function(t, r) {
875
875
  function t(s, o, u) {
876
876
  var a = u[0];
877
877
  a instanceof o && (a = a.all());
878
- for (var c = u.slice(1), h = !c.length, v = [], f = 0; f < a.length; f += 1) {
878
+ for (var c = u.slice(1), p = !c.length, v = [], l = 0; l < a.length; l += 1) {
879
879
  var m = s.slice();
880
- m.push(a[f]), h ? v.push(m) : v = v.concat(t(m, o, c));
880
+ m.push(a[l]), p ? v.push(m) : v = v.concat(t(m, o, c));
881
881
  }
882
882
  return v;
883
883
  }
@@ -919,22 +919,22 @@ var ne = $, ie = d, se = ie.isFunction, Rt = function(t, r) {
919
919
  }, de = function() {
920
920
  return console.log(this), this;
921
921
  };
922
- function x(e) {
922
+ function K(e) {
923
923
  "@babel/helpers - typeof";
924
- return x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
924
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
925
925
  return typeof t;
926
926
  } : function(t) {
927
927
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
928
- }, x(e);
928
+ }, K(e);
929
929
  }
930
930
  var ve = function() {
931
931
  var t = this, r = [], n = {}, i = function(o) {
932
- return Array.isArray(o) || x(o) === "object" ? JSON.stringify(o) : o;
932
+ return Array.isArray(o) || K(o) === "object" ? JSON.stringify(o) : o;
933
933
  };
934
934
  return Array.isArray(this.items) ? this.items.forEach(function(s, o) {
935
935
  var u = i(s);
936
936
  r.indexOf(u) === -1 ? r.push(u) : n[o] = s;
937
- }) : x(this.items) === "object" && Object.keys(this.items).forEach(function(s) {
937
+ }) : K(this.items) === "object" && Object.keys(this.items).forEach(function(s) {
938
938
  var o = i(t.items[s]);
939
939
  r.indexOf(o) === -1 ? r.push(o) : n[s] = t.items[s];
940
940
  }), new this.constructor(n);
@@ -1026,7 +1026,7 @@ function Ce(e, t) {
1026
1026
  e ? e(t[n], n) && (r[n] = t[n]) : Jt(t[n]) || (r[n] = t[n]);
1027
1027
  }), r;
1028
1028
  }
1029
- function Te(e, t) {
1029
+ function De(e, t) {
1030
1030
  if (e)
1031
1031
  return t.filter(e);
1032
1032
  for (var r = [], n = 0; n < t.length; n += 1) {
@@ -1035,10 +1035,10 @@ function Te(e, t) {
1035
1035
  }
1036
1036
  return r;
1037
1037
  }
1038
- var Pe = function(t) {
1038
+ var Fe = function(t) {
1039
1039
  var r = t || !1, n = null;
1040
- return Array.isArray(this.items) ? n = Te(r, this.items) : n = Ce(r, this.items), new this.constructor(n);
1041
- }, Fe = d, J = Fe.isFunction, De = function(t, r) {
1040
+ return Array.isArray(this.items) ? n = De(r, this.items) : n = Ce(r, this.items), new this.constructor(n);
1041
+ }, Te = d, J = Te.isFunction, Pe = function(t, r) {
1042
1042
  if (J(t)) {
1043
1043
  for (var n = Object.keys(this.items), i = 0; i < n.length; i += 1) {
1044
1044
  var s = n[i], o = this.items[s];
@@ -1063,22 +1063,22 @@ var Pe = function(t) {
1063
1063
  if (i.isEmpty())
1064
1064
  throw new Error("Item not found.");
1065
1065
  return i.first();
1066
- }, xe = function(t, r, n) {
1066
+ }, Ke = function(t, r, n) {
1067
1067
  return this.where(t, r, n).first() || null;
1068
- }, Ke = function(t) {
1068
+ }, Re = function(t) {
1069
1069
  return this.map(t).collapse();
1070
- }, Mt = d, M = Mt.isArray, V = Mt.isObject, Ue = function(t) {
1070
+ }, Vt = d, V = Vt.isArray, L = Vt.isObject, Ue = function(t) {
1071
1071
  var r = t || 1 / 0, n = !1, i = [], s = function(u) {
1072
- i = [], M(u) ? u.forEach(function(a) {
1073
- M(a) ? i = i.concat(a) : V(a) ? Object.keys(a).forEach(function(c) {
1072
+ i = [], V(u) ? u.forEach(function(a) {
1073
+ V(a) ? i = i.concat(a) : L(a) ? Object.keys(a).forEach(function(c) {
1074
1074
  i = i.concat(a[c]);
1075
1075
  }) : i.push(a);
1076
1076
  }) : Object.keys(u).forEach(function(a) {
1077
- M(u[a]) ? i = i.concat(u[a]) : V(u[a]) ? Object.keys(u[a]).forEach(function(c) {
1077
+ V(u[a]) ? i = i.concat(u[a]) : L(u[a]) ? Object.keys(u[a]).forEach(function(c) {
1078
1078
  i = i.concat(u[a][c]);
1079
1079
  }) : i.push(u[a]);
1080
1080
  }), n = i.filter(function(a) {
1081
- return V(a);
1081
+ return L(a);
1082
1082
  }), n = n.length === 0, r -= 1;
1083
1083
  };
1084
1084
  for (s(this.items); !n && r > 0; )
@@ -1091,16 +1091,16 @@ var Pe = function(t) {
1091
1091
  }) : Object.keys(this.items).forEach(function(n) {
1092
1092
  r[t.items[n]] = n;
1093
1093
  }), new this.constructor(r);
1094
- }, Re = function(t, r) {
1094
+ }, Me = function(t, r) {
1095
1095
  var n = this, i = {};
1096
1096
  return Array.isArray(this.items) ? i = this.items.slice(t * r - r, t * r) : Object.keys(this.items).slice(t * r - r, t * r).forEach(function(s) {
1097
1097
  i[s] = n.items[s];
1098
1098
  }), new this.constructor(i);
1099
1099
  }, Je = function(t) {
1100
1100
  return Array.isArray(this.items) ? this.items.splice(t, 1) : delete this.items[t], this;
1101
- }, Me = d, Ve = Me.isFunction, Le = function(t) {
1101
+ }, Ve = d, Le = Ve.isFunction, xe = function(t) {
1102
1102
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
1103
- return this.items[t] !== void 0 ? this.items[t] : Ve(r) ? r() : r !== null ? r : null;
1103
+ return this.items[t] !== void 0 ? this.items[t] : Le(r) ? r() : r !== null ? r : null;
1104
1104
  }, j = function(t, r) {
1105
1105
  try {
1106
1106
  return r.split(".").reduce(function(n, i) {
@@ -1109,11 +1109,11 @@ var Pe = function(t) {
1109
1109
  } catch {
1110
1110
  return t;
1111
1111
  }
1112
- }, L = j, He = d, Ge = He.isFunction, Qe = function(t) {
1112
+ }, x = j, He = d, Ge = He.isFunction, Qe = function(t) {
1113
1113
  var r = this, n = {};
1114
1114
  return this.items.forEach(function(i, s) {
1115
1115
  var o;
1116
- Ge(t) ? o = t(i, s) : L(i, t) || L(i, t) === 0 ? o = L(i, t) : o = "", n[o] === void 0 && (n[o] = new r.constructor([])), n[o].push(i);
1116
+ Ge(t) ? o = t(i, s) : x(i, t) || x(i, t) === 0 ? o = x(i, t) : o = "", n[o] === void 0 && (n[o] = new r.constructor([])), n[o].push(i);
1117
1117
  }), new this.constructor(n);
1118
1118
  }, ze = U, Xe = function() {
1119
1119
  for (var t = this, r = arguments.length, n = new Array(r), i = 0; i < r; i++)
@@ -1273,7 +1273,7 @@ var $n = function(t) {
1273
1273
  });
1274
1274
  };
1275
1275
  function En(e, t) {
1276
- return Pn(e) || Tn(e, t) || Cn(e, t) || In();
1276
+ return Fn(e) || Dn(e, t) || Cn(e, t) || In();
1277
1277
  }
1278
1278
  function In() {
1279
1279
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1293,7 +1293,7 @@ function vt(e, t) {
1293
1293
  n[r] = e[r];
1294
1294
  return n;
1295
1295
  }
1296
- function Tn(e, t) {
1296
+ function Dn(e, t) {
1297
1297
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1298
1298
  if (r != null) {
1299
1299
  var n = [], i = !0, s = !1, o, u;
@@ -1312,10 +1312,10 @@ function Tn(e, t) {
1312
1312
  return n;
1313
1313
  }
1314
1314
  }
1315
- function Pn(e) {
1315
+ function Fn(e) {
1316
1316
  if (Array.isArray(e)) return e;
1317
1317
  }
1318
- var Fn = function(t) {
1318
+ var Tn = function(t) {
1319
1319
  var r = {};
1320
1320
  return this.items.forEach(function(n, i) {
1321
1321
  var s = t(n, i), o = En(s, 2), u = o[0], a = o[1];
@@ -1323,9 +1323,9 @@ var Fn = function(t) {
1323
1323
  }), new this.constructor(r);
1324
1324
  };
1325
1325
  function bt(e, t) {
1326
- return qn(e) || Bn(e, t) || Nn(e, t) || Dn();
1326
+ return qn(e) || Bn(e, t) || Nn(e, t) || Pn();
1327
1327
  }
1328
- function Dn() {
1328
+ function Pn() {
1329
1329
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1330
1330
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1331
1331
  }
@@ -1365,7 +1365,7 @@ function Bn(e, t) {
1365
1365
  function qn(e) {
1366
1366
  if (Array.isArray(e)) return e;
1367
1367
  }
1368
- var xn = function(t) {
1368
+ var Kn = function(t) {
1369
1369
  var r = this, n = {};
1370
1370
  return Array.isArray(this.items) ? this.items.forEach(function(i, s) {
1371
1371
  var o = t(i, s), u = bt(o, 2), a = u[0], c = u[1];
@@ -1376,9 +1376,9 @@ var xn = function(t) {
1376
1376
  }), new this.constructor(n);
1377
1377
  };
1378
1378
  function wt(e) {
1379
- return Rn(e) || Wn(e) || Un(e) || Kn();
1379
+ return Mn(e) || Wn(e) || Un(e) || Rn();
1380
1380
  }
1381
- function Kn() {
1381
+ function Rn() {
1382
1382
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1383
1383
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1384
1384
  }
@@ -1393,7 +1393,7 @@ function Un(e, t) {
1393
1393
  function Wn(e) {
1394
1394
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1395
1395
  }
1396
- function Rn(e) {
1396
+ function Mn(e) {
1397
1397
  if (Array.isArray(e)) return nt(e);
1398
1398
  }
1399
1399
  function nt(e, t) {
@@ -1412,10 +1412,10 @@ var Jn = function(t) {
1412
1412
  })));
1413
1413
  }
1414
1414
  return Math.max.apply(Math, wt(this.items));
1415
- }, Mn = function(t) {
1415
+ }, Vn = function(t) {
1416
1416
  var r = this.items.length;
1417
1417
  return t === void 0 ? r % 2 === 0 ? (this.items[r / 2 - 1] + this.items[r / 2]) / 2 : this.items[Math.floor(r / 2)] : r % 2 === 0 ? (this.items[r / 2 - 1][t] + this.items[r / 2][t]) / 2 : this.items[Math.floor(r / 2)][t];
1418
- }, Vn = function(t) {
1418
+ }, Ln = function(t) {
1419
1419
  var r = t;
1420
1420
  if (typeof r == "string" && (r = [r]), Array.isArray(this.items) && Array.isArray(r))
1421
1421
  return new this.constructor(this.items.concat(r));
@@ -1424,13 +1424,13 @@ var Jn = function(t) {
1424
1424
  n[i] = r[i];
1425
1425
  }), new this.constructor(n);
1426
1426
  };
1427
- function K(e) {
1427
+ function R(e) {
1428
1428
  "@babel/helpers - typeof";
1429
- return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1429
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1430
1430
  return typeof t;
1431
1431
  } : function(t) {
1432
1432
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1433
- }, K(e);
1433
+ }, R(e);
1434
1434
  }
1435
1435
  function At(e, t) {
1436
1436
  var r = Object.keys(e);
@@ -1446,21 +1446,21 @@ function _t(e) {
1446
1446
  for (var t = 1; t < arguments.length; t++) {
1447
1447
  var r = arguments[t] != null ? arguments[t] : {};
1448
1448
  t % 2 ? At(Object(r), !0).forEach(function(n) {
1449
- Ln(e, n, r[n]);
1449
+ xn(e, n, r[n]);
1450
1450
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : At(Object(r)).forEach(function(n) {
1451
1451
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1452
1452
  });
1453
1453
  }
1454
1454
  return e;
1455
1455
  }
1456
- function Ln(e, t, r) {
1456
+ function xn(e, t, r) {
1457
1457
  return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1458
1458
  }
1459
1459
  var Hn = function(t) {
1460
1460
  var r = function n(i, s) {
1461
1461
  var o = {}, u = Object.keys(_t(_t({}, i), s));
1462
1462
  return u.forEach(function(a) {
1463
- i[a] === void 0 && s[a] !== void 0 ? o[a] = s[a] : i[a] !== void 0 && s[a] === void 0 ? o[a] = i[a] : i[a] !== void 0 && s[a] !== void 0 && (i[a] === s[a] ? o[a] = i[a] : !Array.isArray(i[a]) && K(i[a]) === "object" && !Array.isArray(s[a]) && K(s[a]) === "object" ? o[a] = n(i[a], s[a]) : o[a] = [].concat(i[a], s[a]));
1463
+ i[a] === void 0 && s[a] !== void 0 ? o[a] = s[a] : i[a] !== void 0 && s[a] === void 0 ? o[a] = i[a] : i[a] !== void 0 && s[a] !== void 0 && (i[a] === s[a] ? o[a] = i[a] : !Array.isArray(i[a]) && R(i[a]) === "object" && !Array.isArray(s[a]) && R(s[a]) === "object" ? o[a] = n(i[a], s[a]) : o[a] = [].concat(i[a], s[a]));
1464
1464
  }), o;
1465
1465
  };
1466
1466
  return t ? t.constructor.name === "Collection" ? new this.constructor(r(this.items, t.all())) : new this.constructor(r(this.items, t)) : this;
@@ -1562,7 +1562,7 @@ var Yn = function(t) {
1562
1562
  })), new this.constructor(n);
1563
1563
  }, oi = function(t) {
1564
1564
  return t(this);
1565
- }, Vt = d, ai = Vt.isArray, ui = Vt.isObject, F = j, ci = function(t) {
1565
+ }, Lt = d, ai = Lt.isArray, ui = Lt.isObject, T = j, ci = function(t) {
1566
1566
  var r = {};
1567
1567
  return t.forEach(function(n, i) {
1568
1568
  function s(o, u) {
@@ -1579,8 +1579,8 @@ var Yn = function(t) {
1579
1579
  var n = ci(this.items), i = [];
1580
1580
  if (r !== void 0) {
1581
1581
  var s = new RegExp("0.".concat(r), "g"), o = "0.".concat(r).split(".").length;
1582
- Object.keys(n).forEach(function(f) {
1583
- var m = f.match(s);
1582
+ Object.keys(n).forEach(function(l) {
1583
+ var m = l.match(s);
1584
1584
  if (m) {
1585
1585
  var g = m[0];
1586
1586
  g.split(".").length === o && i.push(n[g]);
@@ -1588,36 +1588,36 @@ var Yn = function(t) {
1588
1588
  });
1589
1589
  }
1590
1590
  var u = [], a = new RegExp("0.".concat(t), "g"), c = "0.".concat(t).split(".").length;
1591
- if (Object.keys(n).forEach(function(f) {
1592
- var m = f.match(a);
1591
+ if (Object.keys(n).forEach(function(l) {
1592
+ var m = l.match(a);
1593
1593
  if (m) {
1594
1594
  var g = m[0];
1595
1595
  g.split(".").length === c && u.push(n[g]);
1596
1596
  }
1597
1597
  }), r !== void 0) {
1598
- var h = {};
1599
- return this.items.forEach(function(f, m) {
1600
- h[i[m] || ""] = u;
1601
- }), new this.constructor(h);
1598
+ var p = {};
1599
+ return this.items.forEach(function(l, m) {
1600
+ p[i[m] || ""] = u;
1601
+ }), new this.constructor(p);
1602
1602
  }
1603
1603
  return new this.constructor([u]);
1604
1604
  }
1605
1605
  if (r !== void 0) {
1606
1606
  var v = {};
1607
- return this.items.forEach(function(f) {
1608
- F(f, t) !== void 0 ? v[f[r] || ""] = F(f, t) : v[f[r] || ""] = null;
1607
+ return this.items.forEach(function(l) {
1608
+ T(l, t) !== void 0 ? v[l[r] || ""] = T(l, t) : v[l[r] || ""] = null;
1609
1609
  }), new this.constructor(v);
1610
1610
  }
1611
- return this.map(function(f) {
1612
- return F(f, t) !== void 0 ? F(f, t) : null;
1611
+ return this.map(function(l) {
1612
+ return T(l, t) !== void 0 ? T(l, t) : null;
1613
1613
  });
1614
- }, li = U, Lt = function(t) {
1614
+ }, li = U, xt = function(t) {
1615
1615
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
1616
1616
  n[i - 1] = arguments[i];
1617
1617
  li(n).forEach(function(s) {
1618
1618
  delete t[s];
1619
1619
  });
1620
- }, Ht = d, hi = Ht.isArray, pi = Ht.isObject, St = Lt, yi = function() {
1620
+ }, Ht = d, hi = Ht.isArray, pi = Ht.isObject, St = xt, yi = function() {
1621
1621
  var t = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1622
1622
  if (this.isEmpty())
1623
1623
  return null;
@@ -1670,7 +1670,7 @@ function $t(e, t) {
1670
1670
  }
1671
1671
  return r;
1672
1672
  }
1673
- function D(e) {
1673
+ function P(e) {
1674
1674
  for (var t = 1; t < arguments.length; t++) {
1675
1675
  var r = arguments[t] != null ? arguments[t] : {};
1676
1676
  t % 2 ? $t(Object(r), !0).forEach(function(n) {
@@ -1694,10 +1694,10 @@ var ji = function(t) {
1694
1694
  return new this.constructor(r);
1695
1695
  }
1696
1696
  if (t.constructor.name === "Collection") {
1697
- var n = D(D({}, this.items), t.all());
1697
+ var n = P(P({}, this.items), t.all());
1698
1698
  return new this.constructor(n);
1699
1699
  }
1700
- var i = D(D({}, this.items), t);
1700
+ var i = P(P({}, this.items), t);
1701
1701
  return new this.constructor(i);
1702
1702
  };
1703
1703
  function I(e) {
@@ -1718,7 +1718,7 @@ function jt(e, t) {
1718
1718
  }
1719
1719
  return r;
1720
1720
  }
1721
- function T(e) {
1721
+ function D(e) {
1722
1722
  for (var t = 1; t < arguments.length; t++) {
1723
1723
  var r = arguments[t] != null ? arguments[t] : {};
1724
1724
  t % 2 ? jt(Object(r), !0).forEach(function(n) {
@@ -1734,23 +1734,23 @@ function Ei(e, t, r) {
1734
1734
  }
1735
1735
  var Ii = function(t) {
1736
1736
  var r = function n(i, s) {
1737
- var o = T({}, i), u = Object.keys(T(T({}, i), s));
1737
+ var o = D({}, i), u = Object.keys(D(D({}, i), s));
1738
1738
  return u.forEach(function(a) {
1739
- !Array.isArray(s[a]) && I(s[a]) === "object" ? o[a] = n(i[a], s[a]) : i[a] === void 0 && s[a] !== void 0 ? I(i[a]) === "object" ? o[a] = T({}, s[a]) : o[a] = s[a] : i[a] !== void 0 && s[a] === void 0 ? I(i[a]) === "object" ? o[a] = T({}, i[a]) : o[a] = i[a] : i[a] !== void 0 && s[a] !== void 0 && (I(s[a]) === "object" ? o[a] = T({}, s[a]) : o[a] = s[a]);
1739
+ !Array.isArray(s[a]) && I(s[a]) === "object" ? o[a] = n(i[a], s[a]) : i[a] === void 0 && s[a] !== void 0 ? I(i[a]) === "object" ? o[a] = D({}, s[a]) : o[a] = s[a] : i[a] !== void 0 && s[a] === void 0 ? I(i[a]) === "object" ? o[a] = D({}, i[a]) : o[a] = i[a] : i[a] !== void 0 && s[a] !== void 0 && (I(s[a]) === "object" ? o[a] = D({}, s[a]) : o[a] = s[a]);
1740
1740
  }), o;
1741
1741
  };
1742
1742
  return t ? !Array.isArray(t) && I(t) !== "object" ? new this.constructor(r(this.items, [t])) : t.constructor.name === "Collection" ? new this.constructor(r(this.items, t.all())) : new this.constructor(r(this.items, t)) : this;
1743
1743
  }, Ci = function() {
1744
1744
  var t = [].concat(this.items).reverse();
1745
1745
  return new this.constructor(t);
1746
- }, ut = d, Ti = ut.isArray, Pi = ut.isObject, Fi = ut.isFunction, Di = function(t, r) {
1746
+ }, ut = d, Di = ut.isArray, Fi = ut.isObject, Ti = ut.isFunction, Pi = function(t, r) {
1747
1747
  var n = this, i, s = function(u, a) {
1748
- return Fi(t) ? t(n.items[a], a) : r ? n.items[a] === t : n.items[a] == t;
1748
+ return Ti(t) ? t(n.items[a], a) : r ? n.items[a] === t : n.items[a] == t;
1749
1749
  };
1750
- return Ti(this.items) ? i = this.items.findIndex(s) : Pi(this.items) && (i = Object.keys(this.items).find(function(o) {
1750
+ return Di(this.items) ? i = this.items.findIndex(s) : Fi(this.items) && (i = Object.keys(this.items).find(function(o) {
1751
1751
  return s(n.items[o], o);
1752
1752
  })), i === void 0 || i < 0 ? !1 : i;
1753
- }, Gt = d, Ni = Gt.isArray, Bi = Gt.isObject, qi = Lt, xi = function() {
1753
+ }, Gt = d, Ni = Gt.isArray, Bi = Gt.isObject, qi = xt, Ki = function() {
1754
1754
  var t = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1755
1755
  if (this.isEmpty())
1756
1756
  return null;
@@ -1767,23 +1767,23 @@ var Ii = function(t) {
1767
1767
  return qi(this.items, o), new this.constructor(u);
1768
1768
  }
1769
1769
  return null;
1770
- }, Ki = $, Ui = function() {
1771
- var t = Ki(this.items), r, n, i;
1770
+ }, Ri = $, Ui = function() {
1771
+ var t = Ri(this.items), r, n, i;
1772
1772
  for (i = t.length; i; i -= 1)
1773
1773
  r = Math.floor(Math.random() * i), n = t[i - 1], t[i - 1] = t[r], t[r] = n;
1774
1774
  return this.items = t, this;
1775
- }, Wi = d, Ri = Wi.isObject, Ji = function(t) {
1775
+ }, Wi = d, Mi = Wi.isObject, Ji = function(t) {
1776
1776
  var r = this;
1777
- return Ri(this.items) ? new this.constructor(Object.keys(this.items).reduce(function(n, i, s) {
1777
+ return Mi(this.items) ? new this.constructor(Object.keys(this.items).reduce(function(n, i, s) {
1778
1778
  return s + 1 > t && (n[i] = r.items[i]), n;
1779
1779
  }, {})) : new this.constructor(this.items.slice(t));
1780
- }, ct = d, Mi = ct.isArray, Vi = ct.isObject, Li = ct.isFunction, Hi = function(t) {
1780
+ }, ct = d, Vi = ct.isArray, Li = ct.isObject, xi = ct.isFunction, Hi = function(t) {
1781
1781
  var r = this, n = null, i, s = function(u) {
1782
1782
  return u === t;
1783
1783
  };
1784
- return Li(t) && (s = t), Mi(this.items) && (i = this.items.filter(function(o) {
1784
+ return xi(t) && (s = t), Vi(this.items) && (i = this.items.filter(function(o) {
1785
1785
  return n !== !0 && (n = s(o)), n;
1786
- })), Vi(this.items) && (i = Object.keys(this.items).reduce(function(o, u) {
1786
+ })), Li(this.items) && (i = Object.keys(this.items).reduce(function(o, u) {
1787
1787
  return n !== !0 && (n = s(r.items[u])), n !== !1 && (o[u] = r.items[u]), o;
1788
1788
  }, {})), new this.constructor(i);
1789
1789
  }, ft = d, Gi = ft.isArray, Qi = ft.isObject, zi = ft.isFunction, Xi = function(t) {
@@ -1805,7 +1805,7 @@ var Ii = function(t) {
1805
1805
  if (i.count() > 1)
1806
1806
  throw new Error("Multiple items found.");
1807
1807
  return i.first();
1808
- }, rs = Rt, es = rs, ns = function(t) {
1808
+ }, rs = Mt, es = rs, ns = function(t) {
1809
1809
  var r = [].concat(this.items);
1810
1810
  return t === void 0 ? this.every(function(n) {
1811
1811
  return typeof n == "number";
@@ -1926,9 +1926,9 @@ function ot(e) {
1926
1926
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1927
1927
  }, ot(e);
1928
1928
  }
1929
- var Ts = function() {
1929
+ var Ds = function() {
1930
1930
  return ot(this.items) === "object" && !Array.isArray(this.items) ? JSON.stringify(this.all()) : JSON.stringify(this.toArray());
1931
- }, Ps = function(t) {
1931
+ }, Fs = function(t) {
1932
1932
  var r = this;
1933
1933
  if (Array.isArray(this.items))
1934
1934
  this.items = this.items.map(t);
@@ -1954,17 +1954,17 @@ function It(e) {
1954
1954
  for (var t = 1; t < arguments.length; t++) {
1955
1955
  var r = arguments[t] != null ? arguments[t] : {};
1956
1956
  t % 2 ? Et(Object(r), !0).forEach(function(n) {
1957
- Fs(e, n, r[n]);
1957
+ Ts(e, n, r[n]);
1958
1958
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Et(Object(r)).forEach(function(n) {
1959
1959
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1960
1960
  });
1961
1961
  }
1962
1962
  return e;
1963
1963
  }
1964
- function Fs(e, t, r) {
1964
+ function Ts(e, t, r) {
1965
1965
  return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1966
1966
  }
1967
- var Ds = function() {
1967
+ var Ps = function() {
1968
1968
  var t = this;
1969
1969
  if (Array.isArray(this.items))
1970
1970
  return this;
@@ -1992,7 +1992,7 @@ var Ds = function() {
1992
1992
  return r(this);
1993
1993
  }
1994
1994
  return this;
1995
- }, Tt = function(t, r) {
1995
+ }, Dt = function(t, r) {
1996
1996
  if (Array.isArray(this.items) && !this.items.length)
1997
1997
  return t(this);
1998
1998
  if (!Object.keys(this.items).length)
@@ -2009,7 +2009,7 @@ var Ds = function() {
2009
2009
  return Object.keys(t).forEach(function(i) {
2010
2010
  r.items[i] === void 0 && (n[i] = t[i]);
2011
2011
  }), new this.constructor(n);
2012
- }, qs = d, xs = qs.isFunction, Ks = function(t) {
2012
+ }, qs = d, Ks = qs.isFunction, Rs = function(t) {
2013
2013
  var r;
2014
2014
  if (t === void 0)
2015
2015
  r = this.items.filter(function(u, a, c) {
@@ -2019,51 +2019,51 @@ var Ds = function() {
2019
2019
  r = [];
2020
2020
  for (var n = [], i = 0, s = this.items.length; i < s; i += 1) {
2021
2021
  var o = void 0;
2022
- xs(t) ? o = t(this.items[i]) : o = this.items[i][t], n.indexOf(o) === -1 && (r.push(this.items[i]), n.push(o));
2022
+ Ks(t) ? o = t(this.items[i]) : o = this.items[i][t], n.indexOf(o) === -1 && (r.push(this.items[i]), n.push(o));
2023
2023
  }
2024
2024
  }
2025
2025
  return new this.constructor(r);
2026
2026
  }, Us = function(t) {
2027
2027
  return t instanceof this.constructor ? t.all() : t;
2028
- }, Ws = $, Rs = function() {
2028
+ }, Ws = $, Ms = function() {
2029
2029
  return new this.constructor(Ws(this.items));
2030
2030
  }, Js = function(t, r, n) {
2031
2031
  return t ? r(this, t) : n ? n(this, t) : this;
2032
- }, Ms = $, _ = j, Vs = function(t, r, n) {
2033
- var i = r, s = n, o = Ms(this.items);
2032
+ }, Vs = $, O = j, Ls = function(t, r, n) {
2033
+ var i = r, s = n, o = Vs(this.items);
2034
2034
  if (r === void 0 || r === !0)
2035
2035
  return new this.constructor(o.filter(function(a) {
2036
- return _(a, t);
2036
+ return O(a, t);
2037
2037
  }));
2038
2038
  if (r === !1)
2039
2039
  return new this.constructor(o.filter(function(a) {
2040
- return !_(a, t);
2040
+ return !O(a, t);
2041
2041
  }));
2042
2042
  n === void 0 && (s = r, i = "===");
2043
2043
  var u = o.filter(function(a) {
2044
2044
  switch (i) {
2045
2045
  case "==":
2046
- return _(a, t) === Number(s) || _(a, t) === s.toString();
2046
+ return O(a, t) === Number(s) || O(a, t) === s.toString();
2047
2047
  default:
2048
2048
  case "===":
2049
- return _(a, t) === s;
2049
+ return O(a, t) === s;
2050
2050
  case "!=":
2051
2051
  case "<>":
2052
- return _(a, t) !== Number(s) && _(a, t) !== s.toString();
2052
+ return O(a, t) !== Number(s) && O(a, t) !== s.toString();
2053
2053
  case "!==":
2054
- return _(a, t) !== s;
2054
+ return O(a, t) !== s;
2055
2055
  case "<":
2056
- return _(a, t) < s;
2056
+ return O(a, t) < s;
2057
2057
  case "<=":
2058
- return _(a, t) <= s;
2058
+ return O(a, t) <= s;
2059
2059
  case ">":
2060
- return _(a, t) > s;
2060
+ return O(a, t) > s;
2061
2061
  case ">=":
2062
- return _(a, t) >= s;
2062
+ return O(a, t) >= s;
2063
2063
  }
2064
2064
  });
2065
2065
  return new this.constructor(u);
2066
- }, Ls = function(t, r) {
2066
+ }, xs = function(t, r) {
2067
2067
  return this.where(t, ">=", r[0]).where(t, "<=", r[r.length - 1]);
2068
2068
  }, Hs = $, Gs = j, Qs = function(t, r) {
2069
2069
  var n = Hs(r), i = this.items.filter(function(s) {
@@ -2074,9 +2074,9 @@ var Ds = function() {
2074
2074
  return this.filter(function(r) {
2075
2075
  return r instanceof t;
2076
2076
  });
2077
- }, Pt = j, Xs = function(t, r) {
2077
+ }, Ft = j, Xs = function(t, r) {
2078
2078
  return this.filter(function(n) {
2079
- return Pt(n, t) < r[0] || Pt(n, t) > r[r.length - 1];
2079
+ return Ft(n, t) < r[0] || Ft(n, t) > r[r.length - 1];
2080
2080
  });
2081
2081
  }, Ys = $, Zs = j, ks = function(t, r) {
2082
2082
  var n = Ys(r), i = this.items.filter(function(s) {
@@ -2123,13 +2123,13 @@ var eo = function(t) {
2123
2123
  var n = _r;
2124
2124
  typeof Symbol < "u" && (r.prototype[Symbol.iterator] = n), r.prototype.toJSON = function() {
2125
2125
  return this.items;
2126
- }, r.prototype.all = Or, r.prototype.average = Ut, r.prototype.avg = Er, r.prototype.chunk = Ir, r.prototype.collapse = Nr, r.prototype.combine = Wr, r.prototype.concat = Gr, r.prototype.contains = Rt, r.prototype.containsOneItem = oe, r.prototype.count = ae, r.prototype.countBy = ue, r.prototype.crossJoin = ce, r.prototype.dd = fe, r.prototype.diff = le, r.prototype.diffAssoc = he, r.prototype.diffKeys = pe, r.prototype.diffUsing = ye, r.prototype.doesntContain = me, r.prototype.dump = de, r.prototype.duplicates = ve, r.prototype.each = be, r.prototype.eachSpread = Se, r.prototype.every = je, r.prototype.except = Ie, r.prototype.filter = Pe, r.prototype.first = De, r.prototype.firstOrFail = qe, r.prototype.firstWhere = xe, r.prototype.flatMap = Ke, r.prototype.flatten = Ue, r.prototype.flip = We, r.prototype.forPage = Re, r.prototype.forget = Je, r.prototype.get = Le, r.prototype.groupBy = Qe, r.prototype.has = Xe, r.prototype.implode = Ye, r.prototype.intersect = Ze, r.prototype.intersectByKeys = ke, r.prototype.isEmpty = tn, r.prototype.isNotEmpty = rn, r.prototype.join = en, r.prototype.keyBy = an, r.prototype.keys = un, r.prototype.last = fn, r.prototype.macro = ln, r.prototype.make = hn, r.prototype.map = pn, r.prototype.mapSpread = gn, r.prototype.mapToDictionary = $n, r.prototype.mapInto = jn, r.prototype.mapToGroups = Fn, r.prototype.mapWithKeys = xn, r.prototype.max = Jn, r.prototype.median = Mn, r.prototype.merge = Vn, r.prototype.mergeRecursive = Hn, r.prototype.min = Yn, r.prototype.mode = Zn, r.prototype.nth = ti, r.prototype.only = ei, r.prototype.pad = ii, r.prototype.partition = si, r.prototype.pipe = oi, r.prototype.pluck = fi, r.prototype.pop = yi, r.prototype.prepend = mi, r.prototype.pull = bi, r.prototype.push = gi, r.prototype.put = wi, r.prototype.random = _i, r.prototype.reduce = Oi, r.prototype.reject = Si, r.prototype.replace = ji, r.prototype.replaceRecursive = Ii, r.prototype.reverse = Ci, r.prototype.search = Di, r.prototype.shift = xi, r.prototype.shuffle = Ui, r.prototype.skip = Ji, r.prototype.skipUntil = Hi, r.prototype.skipWhile = Xi, r.prototype.slice = Yi, r.prototype.sole = ts, r.prototype.some = es, r.prototype.sort = ns, r.prototype.sortDesc = is, r.prototype.sortBy = us, r.prototype.sortByDesc = cs, r.prototype.sortKeys = fs, r.prototype.sortKeysDesc = ls, r.prototype.splice = hs, r.prototype.split = ps, r.prototype.sum = vs, r.prototype.take = bs, r.prototype.takeUntil = _s, r.prototype.takeWhile = js, r.prototype.tap = Es, r.prototype.times = Is, r.prototype.toArray = Cs, r.prototype.toJson = Ts, r.prototype.transform = Ps, r.prototype.undot = Ds, r.prototype.unless = Ns, r.prototype.unlessEmpty = Ct, r.prototype.unlessNotEmpty = Tt, r.prototype.union = Bs, r.prototype.unique = Ks, r.prototype.unwrap = Us, r.prototype.values = Rs, r.prototype.when = Js, r.prototype.whenEmpty = Tt, r.prototype.whenNotEmpty = Ct, r.prototype.where = Vs, r.prototype.whereBetween = Ls, r.prototype.whereIn = Qs, r.prototype.whereInstanceOf = zs, r.prototype.whereNotBetween = Xs, r.prototype.whereNotIn = ks, r.prototype.whereNull = to, r.prototype.whereNotNull = ro, r.prototype.wrap = eo, r.prototype.zip = no;
2126
+ }, r.prototype.all = Or, r.prototype.average = Ut, r.prototype.avg = Er, r.prototype.chunk = Ir, r.prototype.collapse = Nr, r.prototype.combine = Wr, r.prototype.concat = Gr, r.prototype.contains = Mt, r.prototype.containsOneItem = oe, r.prototype.count = ae, r.prototype.countBy = ue, r.prototype.crossJoin = ce, r.prototype.dd = fe, r.prototype.diff = le, r.prototype.diffAssoc = he, r.prototype.diffKeys = pe, r.prototype.diffUsing = ye, r.prototype.doesntContain = me, r.prototype.dump = de, r.prototype.duplicates = ve, r.prototype.each = be, r.prototype.eachSpread = Se, r.prototype.every = je, r.prototype.except = Ie, r.prototype.filter = Fe, r.prototype.first = Pe, r.prototype.firstOrFail = qe, r.prototype.firstWhere = Ke, r.prototype.flatMap = Re, r.prototype.flatten = Ue, r.prototype.flip = We, r.prototype.forPage = Me, r.prototype.forget = Je, r.prototype.get = xe, r.prototype.groupBy = Qe, r.prototype.has = Xe, r.prototype.implode = Ye, r.prototype.intersect = Ze, r.prototype.intersectByKeys = ke, r.prototype.isEmpty = tn, r.prototype.isNotEmpty = rn, r.prototype.join = en, r.prototype.keyBy = an, r.prototype.keys = un, r.prototype.last = fn, r.prototype.macro = ln, r.prototype.make = hn, r.prototype.map = pn, r.prototype.mapSpread = gn, r.prototype.mapToDictionary = $n, r.prototype.mapInto = jn, r.prototype.mapToGroups = Tn, r.prototype.mapWithKeys = Kn, r.prototype.max = Jn, r.prototype.median = Vn, r.prototype.merge = Ln, r.prototype.mergeRecursive = Hn, r.prototype.min = Yn, r.prototype.mode = Zn, r.prototype.nth = ti, r.prototype.only = ei, r.prototype.pad = ii, r.prototype.partition = si, r.prototype.pipe = oi, r.prototype.pluck = fi, r.prototype.pop = yi, r.prototype.prepend = mi, r.prototype.pull = bi, r.prototype.push = gi, r.prototype.put = wi, r.prototype.random = _i, r.prototype.reduce = Oi, r.prototype.reject = Si, r.prototype.replace = ji, r.prototype.replaceRecursive = Ii, r.prototype.reverse = Ci, r.prototype.search = Pi, r.prototype.shift = Ki, r.prototype.shuffle = Ui, r.prototype.skip = Ji, r.prototype.skipUntil = Hi, r.prototype.skipWhile = Xi, r.prototype.slice = Yi, r.prototype.sole = ts, r.prototype.some = es, r.prototype.sort = ns, r.prototype.sortDesc = is, r.prototype.sortBy = us, r.prototype.sortByDesc = cs, r.prototype.sortKeys = fs, r.prototype.sortKeysDesc = ls, r.prototype.splice = hs, r.prototype.split = ps, r.prototype.sum = vs, r.prototype.take = bs, r.prototype.takeUntil = _s, r.prototype.takeWhile = js, r.prototype.tap = Es, r.prototype.times = Is, r.prototype.toArray = Cs, r.prototype.toJson = Ds, r.prototype.transform = Fs, r.prototype.undot = Ps, r.prototype.unless = Ns, r.prototype.unlessEmpty = Ct, r.prototype.unlessNotEmpty = Dt, r.prototype.union = Bs, r.prototype.unique = Rs, r.prototype.unwrap = Us, r.prototype.values = Ms, r.prototype.when = Js, r.prototype.whenEmpty = Dt, r.prototype.whenNotEmpty = Ct, r.prototype.where = Ls, r.prototype.whereBetween = xs, r.prototype.whereIn = Qs, r.prototype.whereInstanceOf = zs, r.prototype.whereNotBetween = Xs, r.prototype.whereNotIn = ks, r.prototype.whereNull = to, r.prototype.whereNotNull = ro, r.prototype.wrap = eo, r.prototype.zip = no;
2127
2127
  var i = function(o) {
2128
2128
  return new r(o);
2129
2129
  };
2130
2130
  e.exports = i, e.exports.collect = i, e.exports.default = i, e.exports.Collection = r;
2131
- })(Kt);
2132
- var io = Kt.exports;
2131
+ })(Rt);
2132
+ var io = Rt.exports;
2133
2133
  const Qt = /* @__PURE__ */ Ar(io), zt = [
2134
2134
  "chunk",
2135
2135
  "shuffle",
@@ -2175,18 +2175,18 @@ const Qt = /* @__PURE__ */ Ar(io), zt = [
2175
2175
  ];
2176
2176
  class S {
2177
2177
  constructor(t, r) {
2178
- w(this, "data_path", "");
2179
- w(this, "axios");
2180
- w(this, "filters");
2181
- w(this, "steps");
2182
- w(this, "fields");
2183
- w(this, "already_limit", !1);
2184
- w(this, "already_offset", !1);
2185
- w(this, "limit", null);
2186
- w(this, "offset", null);
2187
- w(this, "_sort", null);
2188
- w(this, "_sortDesc", !1);
2189
- w(this, "meta", {});
2178
+ A(this, "data_path", "");
2179
+ A(this, "axios");
2180
+ A(this, "filters");
2181
+ A(this, "steps");
2182
+ A(this, "fields");
2183
+ A(this, "already_limit", !1);
2184
+ A(this, "already_offset", !1);
2185
+ A(this, "limit", null);
2186
+ A(this, "offset", null);
2187
+ A(this, "_sort", null);
2188
+ A(this, "_sortDesc", !1);
2189
+ A(this, "meta", {});
2190
2190
  this.axios = r, this.filters = {}, this.steps = [], this.fields = t;
2191
2191
  }
2192
2192
  }
@@ -2223,7 +2223,7 @@ S.prototype.fetchData = async function() {
2223
2223
  }
2224
2224
  n[u] = {}, n = n[u];
2225
2225
  }
2226
- let o = await O(this.axios, r);
2226
+ let o = await w(this.axios, r);
2227
2227
  for (const u of t)
2228
2228
  o = o[u];
2229
2229
  return this.meta = o.meta, Qt(o.data);
@@ -2266,11 +2266,101 @@ S.prototype.first = async function() {
2266
2266
  const ao = (e, t, r) => {
2267
2267
  const n = new S(r, t);
2268
2268
  return n.data_path = "list" + e, n;
2269
- }, ho = (e) => {
2269
+ }, uo = (e, t) => ({
2270
+ folders: {
2271
+ list: async (r, n = {
2272
+ name: !0,
2273
+ path: !0
2274
+ }) => (await w(t, {
2275
+ app: {
2276
+ drive: {
2277
+ __args: {
2278
+ index: e
2279
+ },
2280
+ folders: {
2281
+ __args: {
2282
+ path: r
2283
+ },
2284
+ ...n
2285
+ }
2286
+ }
2287
+ }
2288
+ })).app.drive.folders,
2289
+ create: (r) => f(t, "lightDriveCreateFolder", { index: e, path: r }),
2290
+ delete: (r) => f(t, "lightDriveDeleteFolder", { index: e, path: r }),
2291
+ rename: (r, n) => f(t, "lightDriveRenameFolder", { index: e, path: r, name: n })
2292
+ },
2293
+ files: {
2294
+ list: async (r, n = {
2295
+ name: !0,
2296
+ path: !0,
2297
+ size: !0,
2298
+ mime: !0,
2299
+ url: !0
2300
+ }) => (await w(t, {
2301
+ app: {
2302
+ drive: {
2303
+ __args: {
2304
+ index: e
2305
+ },
2306
+ files: {
2307
+ __args: {
2308
+ path: r
2309
+ },
2310
+ ...n
2311
+ }
2312
+ }
2313
+ }
2314
+ })).app.drive.files,
2315
+ get: async (r, n = {
2316
+ name: !0,
2317
+ path: !0,
2318
+ size: !0,
2319
+ mime: !0,
2320
+ url: !0
2321
+ }) => (await w(t, {
2322
+ app: {
2323
+ drive: {
2324
+ __args: {
2325
+ index: e
2326
+ },
2327
+ file: {
2328
+ __args: {
2329
+ path: r
2330
+ },
2331
+ ...n
2332
+ }
2333
+ }
2334
+ }
2335
+ })).app.drive.file,
2336
+ read: async (r) => {
2337
+ let n = await w(t, {
2338
+ app: {
2339
+ drive: {
2340
+ __args: {
2341
+ index: e
2342
+ },
2343
+ file: {
2344
+ __args: {
2345
+ path: r
2346
+ },
2347
+ base64Content: !0
2348
+ }
2349
+ }
2350
+ }
2351
+ });
2352
+ return window.atob(n.app.drive.file.base64Content);
2353
+ },
2354
+ write: (r, n) => f(t, "lightDriveWriteFile", { index: e, path: r, content: n }),
2355
+ delete: (r) => f(t, "lightDriveDeleteFile", { index: e, path: r }),
2356
+ rename: (r, n) => f(t, "lightDriveRenameFile", { index: e, path: r, name: n }),
2357
+ move: (r, n) => f(t, "lightDriveMoveFile", { index: e, source: r, destination: n })
2358
+ }
2359
+ }), po = (e) => {
2270
2360
  const t = Zt.create({
2271
2361
  baseURL: e,
2272
2362
  withCredentials: !0
2273
- }), r = (s, o = null, u = []) => y(t, s, o, u), n = (s) => O(t, s), i = gr(t);
2363
+ }), r = (s, o = null, u = []) => f(t, s, o, u), n = (s) => w(t, s), i = gr(t);
2274
2364
  return {
2275
2365
  baseURL: e,
2276
2366
  axios: t,
@@ -2289,15 +2379,18 @@ const ao = (e, t, r) => {
2289
2379
  collect: (s, o) => {
2290
2380
  const u = ao(s, t, o);
2291
2381
  return u.data_path = i.get(s).getDataPath(), u;
2382
+ },
2383
+ drive(s) {
2384
+ return uo(s, t);
2292
2385
  }
2293
2386
  };
2294
2387
  };
2295
2388
  export {
2296
- lo as File,
2297
- ho as createClient,
2389
+ ho as File,
2390
+ po as createClient,
2298
2391
  ao as createCollection,
2299
- R as file,
2300
- y as mutation,
2301
- O as query,
2392
+ M as file,
2393
+ f as mutation,
2394
+ w as query,
2302
2395
  N as toQuery
2303
2396
  };