@pristy/pristy-libvue 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/pristy-libvue.mjs +1195 -971
- package/dist/pristy-libvue.umd.js +5 -5
- package/package.json +11 -5
package/dist/pristy-libvue.mjs
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { AlfrescoApi as
|
|
2
|
-
import { getCurrentInstance as
|
|
3
|
-
let
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import { AlfrescoApi as Tt, ContentApi as Ft, UploadApi as Dt, RenditionsApi as jt, NodesApi as Ut, SitesApi as Vt, SearchApi as Bt, PeopleApi as It, FavoritesApi as Mt, TrashcanApi as Wt } from "@alfresco/js-api";
|
|
2
|
+
import { getCurrentInstance as it, inject as $t, markRaw as B, ref as ct, watch as zt, reactive as qt, effectScope as Ht, isRef as Z, isReactive as De, toRef as fe, toRaw as Jt, nextTick as We, computed as ut, onUnmounted as Xt, toRefs as $e } from "vue";
|
|
3
|
+
let pe = null;
|
|
4
|
+
function _() {
|
|
5
|
+
return pe || (pe = new Tt({
|
|
6
6
|
hostEcm: window.config.ALFRESCO_HOST,
|
|
7
7
|
authType: window.config.ALFRESCO_AUTH,
|
|
8
8
|
contextRoot: window.config.ALFRESCO_ROOT
|
|
9
|
-
})),
|
|
9
|
+
})), pe;
|
|
10
10
|
}
|
|
11
|
-
let
|
|
12
|
-
function
|
|
13
|
-
return
|
|
11
|
+
let he = null;
|
|
12
|
+
function me() {
|
|
13
|
+
return he || (he = new Ft(_())), he;
|
|
14
14
|
}
|
|
15
|
-
let
|
|
16
|
-
function
|
|
17
|
-
return
|
|
15
|
+
let be = null;
|
|
16
|
+
function Gt() {
|
|
17
|
+
return be || (be = new Dt(_())), be;
|
|
18
18
|
}
|
|
19
19
|
let Ee = null;
|
|
20
|
-
function
|
|
21
|
-
return Ee || (Ee = new
|
|
22
|
-
}
|
|
23
|
-
let be = null;
|
|
24
|
-
function P() {
|
|
25
|
-
return be || (be = new jt(v())), be;
|
|
20
|
+
function ze() {
|
|
21
|
+
return Ee || (Ee = new jt(_())), Ee;
|
|
26
22
|
}
|
|
27
23
|
let we = null;
|
|
28
|
-
function
|
|
29
|
-
return we || (we = new Ut(
|
|
24
|
+
function P() {
|
|
25
|
+
return we || (we = new Ut(_())), we;
|
|
30
26
|
}
|
|
31
27
|
let ye = null;
|
|
32
|
-
function
|
|
33
|
-
return ye || (ye = new
|
|
28
|
+
function T() {
|
|
29
|
+
return ye || (ye = new Vt(_())), ye;
|
|
34
30
|
}
|
|
35
31
|
let ge = null;
|
|
32
|
+
function Kt() {
|
|
33
|
+
return ge || (ge = new Bt(_())), ge;
|
|
34
|
+
}
|
|
35
|
+
let ke = null;
|
|
36
36
|
function Re() {
|
|
37
|
-
return
|
|
37
|
+
return ke || (ke = new It(_())), ke;
|
|
38
38
|
}
|
|
39
39
|
let Ne = null;
|
|
40
40
|
function Se() {
|
|
41
|
-
return Ne || (Ne = new
|
|
41
|
+
return Ne || (Ne = new Mt(_())), Ne;
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
function
|
|
45
|
-
return
|
|
43
|
+
let ve = null;
|
|
44
|
+
function Es() {
|
|
45
|
+
return ve || (ve = new Wt(_())), ve;
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class je {
|
|
48
48
|
uploadFileError(t, r) {
|
|
49
|
-
let
|
|
49
|
+
let s;
|
|
50
50
|
switch (t.status) {
|
|
51
51
|
case 400:
|
|
52
|
-
|
|
52
|
+
s = "Les param\xE8tres de la requ\xEAte sont invalides.";
|
|
53
53
|
break;
|
|
54
54
|
case 403:
|
|
55
|
-
|
|
55
|
+
s = "Vous n'avez pas les droits pour cr\xE9er un fichier.";
|
|
56
56
|
break;
|
|
57
57
|
case 404:
|
|
58
|
-
|
|
58
|
+
s = "Impossible de trouver le dossier parent.";
|
|
59
59
|
break;
|
|
60
60
|
case 409:
|
|
61
|
-
|
|
61
|
+
s = "Le fichier " + r + " existe d\xE9j\xE0.";
|
|
62
62
|
break;
|
|
63
63
|
case 413:
|
|
64
|
-
|
|
64
|
+
s = "Le contenu d\xE9passe la limite de taille de fichier individuelle configur\xE9e pour le r\xE9seau ou le syst\xE8me";
|
|
65
65
|
break;
|
|
66
66
|
case 415:
|
|
67
|
-
|
|
67
|
+
s = "Le type du contenu du noeud n'est pas support\xE9.";
|
|
68
68
|
break;
|
|
69
69
|
case 422:
|
|
70
|
-
|
|
70
|
+
s = "Exception d'int\xE9grit\xE9 du mod\xE8le incluant un nom de fichier contenant des caract\xE8res non valides.";
|
|
71
71
|
break;
|
|
72
72
|
case 502:
|
|
73
|
-
|
|
73
|
+
s = "La r\xE9ponse re\xE7ue est non valide.";
|
|
74
74
|
break;
|
|
75
75
|
case 504:
|
|
76
|
-
|
|
76
|
+
s = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
77
77
|
break;
|
|
78
78
|
case 507:
|
|
79
|
-
|
|
79
|
+
s = "Le contenu d\xE9passe la limite de quota de stockage globale configur\xE9e pour le r\xE9seau ou le syst\xE8me.";
|
|
80
80
|
break;
|
|
81
81
|
default:
|
|
82
|
-
|
|
82
|
+
s = t.message;
|
|
83
83
|
}
|
|
84
|
-
throw new Error(
|
|
84
|
+
throw new Error(s);
|
|
85
85
|
}
|
|
86
86
|
createNodeError(t) {
|
|
87
87
|
let r;
|
|
@@ -118,21 +118,21 @@ class ct {
|
|
|
118
118
|
throw new Error(r);
|
|
119
119
|
}
|
|
120
120
|
deleteNodeError(t, r) {
|
|
121
|
-
let
|
|
121
|
+
let s;
|
|
122
122
|
switch (t.status) {
|
|
123
123
|
case 403:
|
|
124
|
-
|
|
124
|
+
s = `Vous n'avez pas la permission de supprimer ce ${r}.`;
|
|
125
125
|
break;
|
|
126
126
|
case 404:
|
|
127
|
-
|
|
127
|
+
s = `Le ${r} \xE0 supprimer n'existe pas.`;
|
|
128
128
|
break;
|
|
129
129
|
case 409:
|
|
130
|
-
|
|
130
|
+
s = `Vous ne pouvez pas supprimer ce ${r}, ce dernier est verrouill\xE9.`;
|
|
131
131
|
break;
|
|
132
132
|
default:
|
|
133
|
-
|
|
133
|
+
s = t.message;
|
|
134
134
|
}
|
|
135
|
-
throw new Error(
|
|
135
|
+
throw new Error(s);
|
|
136
136
|
}
|
|
137
137
|
updateContentNodeError(t) {
|
|
138
138
|
let r;
|
|
@@ -206,8 +206,293 @@ class ct {
|
|
|
206
206
|
}
|
|
207
207
|
throw new Error(r);
|
|
208
208
|
}
|
|
209
|
+
getWorkspacesError(t) {
|
|
210
|
+
let r;
|
|
211
|
+
switch (t.status) {
|
|
212
|
+
case 400:
|
|
213
|
+
r = "Param\xE8tres invalides lors de la recherche de sites.";
|
|
214
|
+
break;
|
|
215
|
+
case 401:
|
|
216
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
217
|
+
break;
|
|
218
|
+
case 502:
|
|
219
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
220
|
+
break;
|
|
221
|
+
case 504:
|
|
222
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
223
|
+
break;
|
|
224
|
+
default:
|
|
225
|
+
r = t.message;
|
|
226
|
+
}
|
|
227
|
+
throw new Error(r);
|
|
228
|
+
}
|
|
229
|
+
searchAllWorkspacesError(t) {
|
|
230
|
+
let r;
|
|
231
|
+
switch (t.status) {
|
|
232
|
+
case 400:
|
|
233
|
+
r = "Param\xE8tres invalides lors de la recherche de tous les sites.";
|
|
234
|
+
break;
|
|
235
|
+
case 401:
|
|
236
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
237
|
+
break;
|
|
238
|
+
case 502:
|
|
239
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
240
|
+
break;
|
|
241
|
+
case 504:
|
|
242
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
243
|
+
break;
|
|
244
|
+
default:
|
|
245
|
+
r = t.message;
|
|
246
|
+
}
|
|
247
|
+
throw new Error(r);
|
|
248
|
+
}
|
|
249
|
+
getWorkspaceError(t) {
|
|
250
|
+
let r;
|
|
251
|
+
switch (t.status) {
|
|
252
|
+
case 400:
|
|
253
|
+
r = "Param\xE8tre invalide lors de la recherche d'un site";
|
|
254
|
+
break;
|
|
255
|
+
case 401:
|
|
256
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
257
|
+
break;
|
|
258
|
+
case 404:
|
|
259
|
+
r = "Le site recherch\xE9 n'existe pas ou plus.";
|
|
260
|
+
break;
|
|
261
|
+
case 502:
|
|
262
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
263
|
+
break;
|
|
264
|
+
case 504:
|
|
265
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
266
|
+
break;
|
|
267
|
+
default:
|
|
268
|
+
r = t.message;
|
|
269
|
+
}
|
|
270
|
+
throw new Error(r);
|
|
271
|
+
}
|
|
272
|
+
getWorkspaceMembershipsError(t) {
|
|
273
|
+
let r;
|
|
274
|
+
switch (t.status) {
|
|
275
|
+
case 400:
|
|
276
|
+
r = "Param\xE8tres invalides lors de la recherche de tous les membres d'un site.";
|
|
277
|
+
break;
|
|
278
|
+
case 401:
|
|
279
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
280
|
+
break;
|
|
281
|
+
case 404:
|
|
282
|
+
r = "Le site dont les membres sont recherch\xE9s n'existe pas ou plus.";
|
|
283
|
+
break;
|
|
284
|
+
case 502:
|
|
285
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
286
|
+
break;
|
|
287
|
+
case 504:
|
|
288
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
289
|
+
break;
|
|
290
|
+
default:
|
|
291
|
+
r = t.message;
|
|
292
|
+
}
|
|
293
|
+
throw new Error(r);
|
|
294
|
+
}
|
|
295
|
+
createWorkspaceError(t) {
|
|
296
|
+
let r;
|
|
297
|
+
switch (t.status) {
|
|
298
|
+
case 400:
|
|
299
|
+
r = "L'identifiant choisi ne respecte pas le format requis.";
|
|
300
|
+
break;
|
|
301
|
+
case 401:
|
|
302
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
303
|
+
break;
|
|
304
|
+
case 409:
|
|
305
|
+
r = "L'identifiant choisi est d\xE9j\xE0 existant.";
|
|
306
|
+
break;
|
|
307
|
+
case 502:
|
|
308
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
309
|
+
break;
|
|
310
|
+
case 504:
|
|
311
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
312
|
+
break;
|
|
313
|
+
default:
|
|
314
|
+
r = t.message;
|
|
315
|
+
}
|
|
316
|
+
throw new Error(r);
|
|
317
|
+
}
|
|
318
|
+
updateWorkspaceMemberRoleError(t) {
|
|
319
|
+
let r;
|
|
320
|
+
switch (t.status) {
|
|
321
|
+
case 400:
|
|
322
|
+
r = "Param\xE8tres invalides lors de la mise \xE0 jour du r\xF4le d'un membre sur un site.";
|
|
323
|
+
break;
|
|
324
|
+
case 401:
|
|
325
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
326
|
+
break;
|
|
327
|
+
case 404:
|
|
328
|
+
r = "L'identifiant entr\xE9 ne correspond \xE0 aucun utilisateur.";
|
|
329
|
+
break;
|
|
330
|
+
case 422:
|
|
331
|
+
r = "Au moins un utilisateur doit \xEAtre Gestionnaire. Si ce n'est pas le cas, vous n'avez pas la permission de modifier le r\xF4le de cet utilisateur.";
|
|
332
|
+
break;
|
|
333
|
+
case 502:
|
|
334
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
335
|
+
break;
|
|
336
|
+
case 504:
|
|
337
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
r = t.message;
|
|
341
|
+
}
|
|
342
|
+
throw new Error(r);
|
|
343
|
+
}
|
|
344
|
+
deleteWorkspaceMemberError(t) {
|
|
345
|
+
let r;
|
|
346
|
+
switch (t.status) {
|
|
347
|
+
case 400:
|
|
348
|
+
r = "Impossible de supprimer le seul Gestionnaire de l'espace.";
|
|
349
|
+
break;
|
|
350
|
+
case 401:
|
|
351
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
352
|
+
break;
|
|
353
|
+
case 404:
|
|
354
|
+
r = "Vous ne pouvez pas supprimer un utilisateur inexistant.";
|
|
355
|
+
break;
|
|
356
|
+
case 422:
|
|
357
|
+
r = "Vous n'avez pas la permission de supprimer l'acc\xE8s \xE0 cet utilisateur.";
|
|
358
|
+
break;
|
|
359
|
+
case 502:
|
|
360
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
361
|
+
break;
|
|
362
|
+
case 504:
|
|
363
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
364
|
+
break;
|
|
365
|
+
default:
|
|
366
|
+
r = t.message;
|
|
367
|
+
}
|
|
368
|
+
throw new Error(r);
|
|
369
|
+
}
|
|
370
|
+
addWorkspaceMemberError(t) {
|
|
371
|
+
let r;
|
|
372
|
+
switch (t.status) {
|
|
373
|
+
case 400:
|
|
374
|
+
r = "Param\xE8tres invalides lors de l'ajout d'un membre sur un site.";
|
|
375
|
+
break;
|
|
376
|
+
case 401:
|
|
377
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
378
|
+
break;
|
|
379
|
+
case 403:
|
|
380
|
+
r = "Vous ne pouvez pas inviter sur ce site.";
|
|
381
|
+
break;
|
|
382
|
+
case 404:
|
|
383
|
+
r = "Vous ne pouvez pas ajouter un utilisateur inexistant.";
|
|
384
|
+
break;
|
|
385
|
+
case 409:
|
|
386
|
+
r = "L'utilisateur a d\xE9j\xE0 acc\xE8s \xE0 cet espace.";
|
|
387
|
+
break;
|
|
388
|
+
case 502:
|
|
389
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
390
|
+
break;
|
|
391
|
+
case 504:
|
|
392
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
393
|
+
break;
|
|
394
|
+
default:
|
|
395
|
+
r = t.message;
|
|
396
|
+
}
|
|
397
|
+
throw new Error(r);
|
|
398
|
+
}
|
|
399
|
+
updateWorkspaceTypeError(t) {
|
|
400
|
+
let r;
|
|
401
|
+
switch (t.status) {
|
|
402
|
+
case 400:
|
|
403
|
+
r = "Param\xE8tres invalides lors de la mise \xE0 jour d'un site.";
|
|
404
|
+
break;
|
|
405
|
+
case 401:
|
|
406
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
407
|
+
break;
|
|
408
|
+
case 404:
|
|
409
|
+
r = "Vous ne pouvez pas mettre \xE0 jour un espace inexistant.";
|
|
410
|
+
break;
|
|
411
|
+
case 502:
|
|
412
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
413
|
+
break;
|
|
414
|
+
case 504:
|
|
415
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
416
|
+
break;
|
|
417
|
+
default:
|
|
418
|
+
r = t.message;
|
|
419
|
+
}
|
|
420
|
+
throw new Error(r);
|
|
421
|
+
}
|
|
422
|
+
getAllUsersError(t) {
|
|
423
|
+
let r;
|
|
424
|
+
switch (t.status) {
|
|
425
|
+
case 400:
|
|
426
|
+
r = "Param\xE8tres invalides lors de la recherche de tous les utilisateurs.";
|
|
427
|
+
break;
|
|
428
|
+
case 401:
|
|
429
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
430
|
+
break;
|
|
431
|
+
case 502:
|
|
432
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
433
|
+
break;
|
|
434
|
+
case 504:
|
|
435
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
436
|
+
break;
|
|
437
|
+
default:
|
|
438
|
+
r = t.message;
|
|
439
|
+
}
|
|
440
|
+
throw new Error(r);
|
|
441
|
+
}
|
|
442
|
+
deleteWorkspaceError(t) {
|
|
443
|
+
let r;
|
|
444
|
+
switch (t.status) {
|
|
445
|
+
case 400:
|
|
446
|
+
r = "Param\xE8tres invalides lors de la suppression du site.";
|
|
447
|
+
break;
|
|
448
|
+
case 401:
|
|
449
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
450
|
+
break;
|
|
451
|
+
case 403:
|
|
452
|
+
r = "Vous n'avez pas les permission pour supprimer ce site.";
|
|
453
|
+
break;
|
|
454
|
+
case 404:
|
|
455
|
+
r = "Le site que vous essayez de supprimer n'existe pas ou plus.";
|
|
456
|
+
break;
|
|
457
|
+
case 502:
|
|
458
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
459
|
+
break;
|
|
460
|
+
case 504:
|
|
461
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
462
|
+
break;
|
|
463
|
+
default:
|
|
464
|
+
r = t.message;
|
|
465
|
+
}
|
|
466
|
+
throw new Error(r);
|
|
467
|
+
}
|
|
468
|
+
updateWorkspaceError(t) {
|
|
469
|
+
let r;
|
|
470
|
+
switch (t.status) {
|
|
471
|
+
case 400:
|
|
472
|
+
r = "Param\xE8tres invalides lors de la mise \xE0 jour du site.";
|
|
473
|
+
break;
|
|
474
|
+
case 401:
|
|
475
|
+
r = "Vous n'\xEAtes pas ou plus connect\xE9.";
|
|
476
|
+
break;
|
|
477
|
+
case 403:
|
|
478
|
+
r = "Vous n'avez pas les permission pour mettre \xE0 jour ce site.";
|
|
479
|
+
break;
|
|
480
|
+
case 404:
|
|
481
|
+
r = "Le site que vous essayez de modifier n'existe pas ou plus.";
|
|
482
|
+
break;
|
|
483
|
+
case 502:
|
|
484
|
+
r = "La r\xE9ponse re\xE7ue est non valide.";
|
|
485
|
+
break;
|
|
486
|
+
case 504:
|
|
487
|
+
r = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
488
|
+
break;
|
|
489
|
+
default:
|
|
490
|
+
r = t.message;
|
|
491
|
+
}
|
|
492
|
+
throw new Error(r);
|
|
493
|
+
}
|
|
209
494
|
}
|
|
210
|
-
function
|
|
495
|
+
function Qt(e) {
|
|
211
496
|
let t, r = JSON.parse(e.message).error;
|
|
212
497
|
switch (r.statusCode) {
|
|
213
498
|
case 401:
|
|
@@ -221,7 +506,7 @@ function Kt(e) {
|
|
|
221
506
|
}
|
|
222
507
|
throw new Error(t);
|
|
223
508
|
}
|
|
224
|
-
function
|
|
509
|
+
function Yt(e) {
|
|
225
510
|
let t;
|
|
226
511
|
switch (e.status) {
|
|
227
512
|
case 404:
|
|
@@ -235,7 +520,7 @@ function Qt(e) {
|
|
|
235
520
|
}
|
|
236
521
|
throw new Error(t);
|
|
237
522
|
}
|
|
238
|
-
function
|
|
523
|
+
function Zt(e) {
|
|
239
524
|
let t;
|
|
240
525
|
switch (e.status) {
|
|
241
526
|
case 404:
|
|
@@ -249,7 +534,7 @@ function Yt(e) {
|
|
|
249
534
|
}
|
|
250
535
|
throw new Error(t);
|
|
251
536
|
}
|
|
252
|
-
function
|
|
537
|
+
function er(e) {
|
|
253
538
|
let t;
|
|
254
539
|
switch (e.status) {
|
|
255
540
|
case 404:
|
|
@@ -263,7 +548,7 @@ function Zt(e) {
|
|
|
263
548
|
}
|
|
264
549
|
throw new Error(t);
|
|
265
550
|
}
|
|
266
|
-
function
|
|
551
|
+
function tr(e) {
|
|
267
552
|
let t;
|
|
268
553
|
switch (e.status) {
|
|
269
554
|
case 404:
|
|
@@ -277,7 +562,7 @@ function er(e) {
|
|
|
277
562
|
}
|
|
278
563
|
throw new Error(t);
|
|
279
564
|
}
|
|
280
|
-
function
|
|
565
|
+
function rr(e) {
|
|
281
566
|
let t;
|
|
282
567
|
switch (e.status) {
|
|
283
568
|
case 404:
|
|
@@ -294,7 +579,7 @@ function tr(e) {
|
|
|
294
579
|
}
|
|
295
580
|
throw new Error(t);
|
|
296
581
|
}
|
|
297
|
-
function
|
|
582
|
+
function sr(e) {
|
|
298
583
|
let t;
|
|
299
584
|
switch (e.status) {
|
|
300
585
|
case 401:
|
|
@@ -334,36 +619,36 @@ function nr(e) {
|
|
|
334
619
|
}
|
|
335
620
|
throw new Error(t);
|
|
336
621
|
}
|
|
337
|
-
function
|
|
338
|
-
return new
|
|
622
|
+
function or() {
|
|
623
|
+
return new je();
|
|
339
624
|
}
|
|
340
|
-
class
|
|
625
|
+
class ws {
|
|
341
626
|
getThumbnailUrl(t) {
|
|
342
|
-
return
|
|
627
|
+
return me().getDocumentThumbnailUrl(t);
|
|
343
628
|
}
|
|
344
629
|
getPreviewUrl(t) {
|
|
345
|
-
return
|
|
630
|
+
return me().getDocumentPreviewUrl(t);
|
|
346
631
|
}
|
|
347
632
|
getContentUrl(t) {
|
|
348
|
-
return
|
|
633
|
+
return me().getContentUrl(t);
|
|
349
634
|
}
|
|
350
|
-
uploadFile(t, r,
|
|
351
|
-
return
|
|
352
|
-
console.log("Percent :" +
|
|
635
|
+
uploadFile(t, r, s) {
|
|
636
|
+
return Gt().uploadFile(s, null, t, null, r).on("progress", (n) => {
|
|
637
|
+
console.log("Percent :" + n.percent);
|
|
353
638
|
}).then(
|
|
354
|
-
(
|
|
355
|
-
(
|
|
356
|
-
|
|
639
|
+
(n) => this.createAllRendition(n.entry.id).then(() => n).catch((a) => a),
|
|
640
|
+
(n) => {
|
|
641
|
+
or().uploadFileError(n, s.name);
|
|
357
642
|
}
|
|
358
643
|
);
|
|
359
644
|
}
|
|
360
645
|
createRendition(t, r) {
|
|
361
|
-
return
|
|
646
|
+
return ze().createRendition(t, {
|
|
362
647
|
id: r
|
|
363
648
|
});
|
|
364
649
|
}
|
|
365
650
|
createAllRendition(t) {
|
|
366
|
-
return
|
|
651
|
+
return ze().createRendition(t, [
|
|
367
652
|
{
|
|
368
653
|
id: "doclib"
|
|
369
654
|
},
|
|
@@ -374,9 +659,9 @@ class wn {
|
|
|
374
659
|
}
|
|
375
660
|
}
|
|
376
661
|
function $() {
|
|
377
|
-
return new
|
|
662
|
+
return new je();
|
|
378
663
|
}
|
|
379
|
-
class
|
|
664
|
+
class ys {
|
|
380
665
|
getNode(t) {
|
|
381
666
|
const r = {
|
|
382
667
|
include: [
|
|
@@ -386,13 +671,13 @@ class yn {
|
|
|
386
671
|
"permissions"
|
|
387
672
|
]
|
|
388
673
|
};
|
|
389
|
-
return P().getNode(t, r).then((
|
|
674
|
+
return P().getNode(t, r).then((s) => s.entry);
|
|
390
675
|
}
|
|
391
676
|
createNode(t, r) {
|
|
392
677
|
return P().createNode(t, r).then(
|
|
393
|
-
(
|
|
394
|
-
(
|
|
395
|
-
$().createNodeError(
|
|
678
|
+
(s) => s,
|
|
679
|
+
(s) => {
|
|
680
|
+
$().createNodeError(s);
|
|
396
681
|
}
|
|
397
682
|
);
|
|
398
683
|
}
|
|
@@ -405,30 +690,30 @@ class yn {
|
|
|
405
690
|
"permissions"
|
|
406
691
|
]
|
|
407
692
|
};
|
|
408
|
-
return P().listNodeChildren(t, r).then((
|
|
409
|
-
let
|
|
693
|
+
return P().listNodeChildren(t, r).then((s) => {
|
|
694
|
+
let n = s.list.entries.map((o) => o.entry), a = n.filter(
|
|
410
695
|
(o) => o.name === "documentLibrary"
|
|
411
696
|
)[0];
|
|
412
|
-
return
|
|
413
|
-
documentLibrary:
|
|
697
|
+
return a ? this.getChildren(a.id).then((o) => ({
|
|
698
|
+
documentLibrary: a,
|
|
414
699
|
subChildren: o
|
|
415
|
-
})) :
|
|
700
|
+
})) : n;
|
|
416
701
|
});
|
|
417
702
|
}
|
|
418
703
|
updateNode(t, r) {
|
|
419
704
|
return P().updateNode(t, r).then(
|
|
420
|
-
(
|
|
421
|
-
function(
|
|
422
|
-
$().updateNodeError(
|
|
705
|
+
(s) => s,
|
|
706
|
+
function(s) {
|
|
707
|
+
$().updateNodeError(s);
|
|
423
708
|
}
|
|
424
709
|
);
|
|
425
710
|
}
|
|
426
711
|
deleteNode(t, r) {
|
|
427
|
-
const
|
|
428
|
-
return P().deleteNode(t,
|
|
429
|
-
(
|
|
430
|
-
function(
|
|
431
|
-
$().deleteNodeError(
|
|
712
|
+
const s = {};
|
|
713
|
+
return P().deleteNode(t, s).then(
|
|
714
|
+
(n) => n,
|
|
715
|
+
function(n) {
|
|
716
|
+
$().deleteNodeError(n, r);
|
|
432
717
|
}
|
|
433
718
|
);
|
|
434
719
|
}
|
|
@@ -436,12 +721,12 @@ class yn {
|
|
|
436
721
|
const r = {
|
|
437
722
|
include: ["isFavorite", "properties"]
|
|
438
723
|
};
|
|
439
|
-
return P().listParents(t, r).then((
|
|
440
|
-
let
|
|
441
|
-
return
|
|
442
|
-
documentLibrary:
|
|
724
|
+
return P().listParents(t, r).then((s) => {
|
|
725
|
+
let n = s.list.entries.map((o) => o.entry), a = n[0];
|
|
726
|
+
return a && a.name === "documentLibrary" ? this.getParents(a.id).then((o) => ({
|
|
727
|
+
documentLibrary: a,
|
|
443
728
|
supParent: o
|
|
444
|
-
})) :
|
|
729
|
+
})) : n[0];
|
|
445
730
|
});
|
|
446
731
|
}
|
|
447
732
|
getDocumentLibrary(t) {
|
|
@@ -453,42 +738,45 @@ class yn {
|
|
|
453
738
|
"permissions"
|
|
454
739
|
]
|
|
455
740
|
};
|
|
456
|
-
return P().listNodeChildren(t, r).then((
|
|
741
|
+
return P().listNodeChildren(t, r).then((s) => s.list.entries.map((a) => a.entry).find((a) => a.name === "documentLibrary"));
|
|
457
742
|
}
|
|
458
|
-
updateContentNode(t, r) {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
743
|
+
updateContentNode(t, r, s) {
|
|
744
|
+
let n = {
|
|
745
|
+
majorVersion: s
|
|
746
|
+
};
|
|
747
|
+
return P().updateNodeContent(t, r, n).then(
|
|
748
|
+
(a) => a,
|
|
749
|
+
function(a) {
|
|
750
|
+
$().updateContentNodeError(a);
|
|
463
751
|
}
|
|
464
752
|
);
|
|
465
753
|
}
|
|
466
|
-
copyNode(t, r,
|
|
467
|
-
const
|
|
754
|
+
copyNode(t, r, s) {
|
|
755
|
+
const n = s !== null ? {
|
|
468
756
|
targetParentId: r,
|
|
469
|
-
name:
|
|
757
|
+
name: s
|
|
470
758
|
} : {
|
|
471
759
|
targetParentId: r
|
|
472
|
-
},
|
|
760
|
+
}, a = {
|
|
473
761
|
include: ["path"]
|
|
474
762
|
};
|
|
475
|
-
return P().copyNode(t,
|
|
763
|
+
return P().copyNode(t, n, a).then(
|
|
476
764
|
(o) => o,
|
|
477
765
|
function(o) {
|
|
478
766
|
$().copyNodeError(o);
|
|
479
767
|
}
|
|
480
768
|
);
|
|
481
769
|
}
|
|
482
|
-
moveNode(t, r,
|
|
483
|
-
const
|
|
770
|
+
moveNode(t, r, s) {
|
|
771
|
+
const n = s !== null ? {
|
|
484
772
|
targetParentId: r,
|
|
485
|
-
name:
|
|
773
|
+
name: s
|
|
486
774
|
} : {
|
|
487
775
|
targetParentId: r
|
|
488
|
-
},
|
|
776
|
+
}, a = {
|
|
489
777
|
include: ["path"]
|
|
490
778
|
};
|
|
491
|
-
return P().moveNode(t,
|
|
779
|
+
return P().moveNode(t, n, a).then(
|
|
492
780
|
(o) => o,
|
|
493
781
|
function(o) {
|
|
494
782
|
$().moveNodeError(o);
|
|
@@ -496,20 +784,23 @@ class yn {
|
|
|
496
784
|
);
|
|
497
785
|
}
|
|
498
786
|
}
|
|
499
|
-
class
|
|
787
|
+
class gs {
|
|
500
788
|
getPublicLink() {
|
|
501
789
|
}
|
|
502
790
|
createPublicLink() {
|
|
503
791
|
}
|
|
504
792
|
}
|
|
505
|
-
|
|
793
|
+
function O() {
|
|
794
|
+
return new je();
|
|
795
|
+
}
|
|
796
|
+
class ks {
|
|
506
797
|
getWorkspaces() {
|
|
507
798
|
const t = {
|
|
508
799
|
skipCount: 0,
|
|
509
800
|
maxItems: 100
|
|
510
801
|
};
|
|
511
|
-
return
|
|
512
|
-
|
|
802
|
+
return T().listSites(t).then((r) => r.list.entries.map((s) => s.entry)).catch((r) => {
|
|
803
|
+
O().getWorkspacesError(r);
|
|
513
804
|
});
|
|
514
805
|
}
|
|
515
806
|
searchAllWorkspaces(t = "") {
|
|
@@ -524,169 +815,102 @@ class Nn {
|
|
|
524
815
|
},
|
|
525
816
|
localization: { locales: ["fr_FR"] }
|
|
526
817
|
};
|
|
527
|
-
return
|
|
528
|
-
let
|
|
529
|
-
return
|
|
530
|
-
})).catch((
|
|
531
|
-
|
|
818
|
+
return Kt().search(r).then((s) => s.list.entries.map((n) => {
|
|
819
|
+
let a = n.entry;
|
|
820
|
+
return a.title = n.entry.properties["cm:title"], a.visibility = n.entry.properties["st:siteVisibility"], a.typeEspace = n.entry.properties["pm:typeEspace"], a;
|
|
821
|
+
})).catch((s) => {
|
|
822
|
+
O().searchAllWorkspacesError(s);
|
|
532
823
|
});
|
|
533
824
|
}
|
|
534
825
|
getWorkspace(t) {
|
|
535
826
|
const r = {};
|
|
536
|
-
return
|
|
537
|
-
|
|
827
|
+
return T().getSite(t, r).then((s) => s.entry).catch((s) => {
|
|
828
|
+
O().getWorkspaceError(s);
|
|
538
829
|
});
|
|
539
830
|
}
|
|
540
831
|
getWorkspaceMemberships(t) {
|
|
541
832
|
const r = {};
|
|
542
|
-
return
|
|
543
|
-
|
|
833
|
+
return T().listSiteMemberships(t, r).then((s) => s.list.entries.map((n) => n.entry)).catch((s) => {
|
|
834
|
+
O().getWorkspaceMembershipsError(s);
|
|
544
835
|
});
|
|
545
836
|
}
|
|
546
|
-
createWorkspace(t, r,
|
|
547
|
-
const
|
|
837
|
+
createWorkspace(t, r, s, n) {
|
|
838
|
+
const a = {
|
|
548
839
|
id: t,
|
|
549
840
|
title: r,
|
|
550
|
-
description:
|
|
551
|
-
visibility:
|
|
841
|
+
description: s,
|
|
842
|
+
visibility: n
|
|
552
843
|
};
|
|
553
|
-
return
|
|
554
|
-
|
|
555
|
-
switch (o.status) {
|
|
556
|
-
case 400:
|
|
557
|
-
u = "L'identifiant choisi ne respecte pas le format requis.";
|
|
558
|
-
break;
|
|
559
|
-
case 409:
|
|
560
|
-
u = "L'identifiant choisi est d\xE9j\xE0 existant.";
|
|
561
|
-
break;
|
|
562
|
-
default:
|
|
563
|
-
u = o.message;
|
|
564
|
-
}
|
|
565
|
-
throw new Error(u);
|
|
844
|
+
return T().createSite(a).then((o) => o).catch((o) => {
|
|
845
|
+
O().createWorkspaceError(o);
|
|
566
846
|
});
|
|
567
847
|
}
|
|
568
|
-
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
const s = (await L.listSiteContainers(t, r)).list.entries;
|
|
575
|
-
for (let i in s)
|
|
576
|
-
s[i].entry.folderId === "documentLibrary" && (n = s[i].entry.id);
|
|
577
|
-
return n;
|
|
578
|
-
}
|
|
579
|
-
updateWorkspaceMemberRole(t, r, n) {
|
|
580
|
-
const s = {
|
|
581
|
-
role: n
|
|
582
|
-
}, i = {};
|
|
583
|
-
return L().updateSiteMembership(t, r, s, i).then((o) => o).catch((o) => {
|
|
584
|
-
let u;
|
|
585
|
-
switch (o.status) {
|
|
586
|
-
case 404:
|
|
587
|
-
u = "L'identifiant entr\xE9 ne correspond \xE0 aucun utilisateur.";
|
|
588
|
-
break;
|
|
589
|
-
case 422:
|
|
590
|
-
u = "Au moins un utilisateur doit \xEAtre Gestionnaire. Si ce n'est pas le cas, vous n'avez pas la permission de modifier le r\xF4le de cet utilisateur.";
|
|
591
|
-
break;
|
|
592
|
-
default:
|
|
593
|
-
u = o.message;
|
|
594
|
-
}
|
|
595
|
-
throw new Error(u);
|
|
848
|
+
updateWorkspaceMemberRole(t, r, s) {
|
|
849
|
+
const n = {
|
|
850
|
+
role: s
|
|
851
|
+
}, a = {};
|
|
852
|
+
return T().updateSiteMembership(t, r, n, a).then((o) => o).catch((o) => {
|
|
853
|
+
O().updateWorkspaceMemberRoleError(o);
|
|
596
854
|
});
|
|
597
855
|
}
|
|
598
856
|
deleteWorkspaceMember(t, r) {
|
|
599
|
-
return
|
|
600
|
-
|
|
601
|
-
switch (n.status) {
|
|
602
|
-
case 400:
|
|
603
|
-
s = "Impossible de supprimer le seul Gestionnaire de l'espace.";
|
|
604
|
-
break;
|
|
605
|
-
case 404:
|
|
606
|
-
s = "Vous ne pouvez pas supprimer un utilisateur inexistant.";
|
|
607
|
-
break;
|
|
608
|
-
case 422:
|
|
609
|
-
s = "Vous n'avez pas la permission de supprimer l'acc\xE8s \xE0 cet utilisateur.";
|
|
610
|
-
break;
|
|
611
|
-
default:
|
|
612
|
-
s = n.message;
|
|
613
|
-
}
|
|
614
|
-
throw new Error(s);
|
|
857
|
+
return T().deleteSiteMembership(t, r).then(() => r).catch((s) => {
|
|
858
|
+
O().deleteWorkspaceMemberError(s);
|
|
615
859
|
});
|
|
616
860
|
}
|
|
617
|
-
addWorkspaceMember(t, r,
|
|
618
|
-
const
|
|
619
|
-
role:
|
|
861
|
+
addWorkspaceMember(t, r, s) {
|
|
862
|
+
const n = {
|
|
863
|
+
role: s,
|
|
620
864
|
id: r
|
|
621
|
-
},
|
|
622
|
-
return
|
|
623
|
-
|
|
624
|
-
switch (o.status) {
|
|
625
|
-
case 403:
|
|
626
|
-
u = "Vous ne pouvez pas inviter sur ce site.";
|
|
627
|
-
break;
|
|
628
|
-
case 404:
|
|
629
|
-
u = "Vous ne pouvez pas ajouter un utilisateur inexistant.";
|
|
630
|
-
break;
|
|
631
|
-
case 409:
|
|
632
|
-
u = "L'utilisateur a d\xE9j\xE0 acc\xE8s \xE0 cet espace.";
|
|
633
|
-
break;
|
|
634
|
-
default:
|
|
635
|
-
u = o.message;
|
|
636
|
-
}
|
|
637
|
-
throw new Error(u);
|
|
865
|
+
}, a = {};
|
|
866
|
+
return T().createSiteMembership(t, n, a).then((o) => o).catch((o) => {
|
|
867
|
+
O().addWorkspaceMemberError(o);
|
|
638
868
|
});
|
|
639
869
|
}
|
|
640
870
|
updateWorkspaceType(t, r) {
|
|
641
|
-
const
|
|
871
|
+
const s = {
|
|
642
872
|
properties: {
|
|
643
873
|
"pm:typeEspace": r
|
|
644
874
|
}
|
|
645
875
|
};
|
|
646
|
-
return P().updateNode(t,
|
|
647
|
-
|
|
648
|
-
switch (s.status) {
|
|
649
|
-
case 404:
|
|
650
|
-
i = "Vous ne pouvez pas mettre \xE0 jour un espace inexistant.";
|
|
651
|
-
break;
|
|
652
|
-
default:
|
|
653
|
-
i = s.message;
|
|
654
|
-
}
|
|
655
|
-
throw new Error(i);
|
|
876
|
+
return P().updateNode(t, s).then((n) => n).catch((n) => {
|
|
877
|
+
O().updateWorkspaceTypeError(n);
|
|
656
878
|
});
|
|
657
879
|
}
|
|
658
880
|
async getAllUsers() {
|
|
659
881
|
return Re().listPeople().then((t) => t.list.entries.map((r) => {
|
|
660
|
-
let
|
|
661
|
-
return
|
|
662
|
-
firstname:
|
|
663
|
-
lastname:
|
|
664
|
-
email:
|
|
665
|
-
id:
|
|
666
|
-
label: `${
|
|
667
|
-
label2: `${
|
|
882
|
+
let s = r.entry;
|
|
883
|
+
return s.email = (s == null ? void 0 : s.email) || "", s.firstName = (s == null ? void 0 : s.firstName) || s.email, s.lastName = (s == null ? void 0 : s.lastName) || s.email, {
|
|
884
|
+
firstname: s.firstName,
|
|
885
|
+
lastname: s.lastName,
|
|
886
|
+
email: s.email,
|
|
887
|
+
id: s.id,
|
|
888
|
+
label: `${s.firstName} ${s.lastName}`,
|
|
889
|
+
label2: `${s.lastName} ${s.firstName}`
|
|
668
890
|
};
|
|
669
|
-
}))
|
|
891
|
+
})).catch((t) => {
|
|
892
|
+
O().getAllUsersError(t);
|
|
893
|
+
});
|
|
670
894
|
}
|
|
671
895
|
deleteWorkspace(t) {
|
|
672
896
|
const r = {};
|
|
673
|
-
return
|
|
897
|
+
return T().deleteSite(t, r).then(() => {
|
|
674
898
|
console.log("Site deletion successful.");
|
|
675
|
-
}).catch((
|
|
676
|
-
|
|
899
|
+
}).catch((s) => {
|
|
900
|
+
O().deleteWorkspaceError(s);
|
|
677
901
|
});
|
|
678
902
|
}
|
|
679
903
|
updateWorkspace(t, r) {
|
|
680
|
-
return
|
|
681
|
-
|
|
904
|
+
return T().updateSite(t, r).then((s) => s).catch((s) => {
|
|
905
|
+
O().updateWorkspaceError(s);
|
|
682
906
|
});
|
|
683
907
|
}
|
|
684
908
|
}
|
|
685
|
-
var
|
|
686
|
-
function
|
|
909
|
+
var ar = !1;
|
|
910
|
+
function oe(e, t, r) {
|
|
687
911
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
|
688
912
|
}
|
|
689
|
-
function
|
|
913
|
+
function Ae(e, t) {
|
|
690
914
|
if (Array.isArray(e)) {
|
|
691
915
|
e.splice(t, 1);
|
|
692
916
|
return;
|
|
@@ -698,277 +922,277 @@ function Oe(e, t) {
|
|
|
698
922
|
* (c) 2022 Eduardo San Martin Morote
|
|
699
923
|
* @license MIT
|
|
700
924
|
*/
|
|
701
|
-
let
|
|
702
|
-
const
|
|
703
|
-
function
|
|
925
|
+
let G;
|
|
926
|
+
const ce = (e) => G = e, ir = process.env.NODE_ENV !== "production" ? Symbol("pinia") : Symbol();
|
|
927
|
+
function M(e) {
|
|
704
928
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
705
929
|
}
|
|
706
|
-
var
|
|
930
|
+
var Y;
|
|
707
931
|
(function(e) {
|
|
708
932
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
709
|
-
})(
|
|
710
|
-
const
|
|
711
|
-
function
|
|
933
|
+
})(Y || (Y = {}));
|
|
934
|
+
const K = typeof window < "u";
|
|
935
|
+
function lt(e, t) {
|
|
712
936
|
for (const r in t) {
|
|
713
|
-
const
|
|
937
|
+
const s = t[r];
|
|
714
938
|
if (!(r in e))
|
|
715
939
|
continue;
|
|
716
|
-
const
|
|
717
|
-
|
|
940
|
+
const n = e[r];
|
|
941
|
+
M(n) && M(s) && !Z(s) && !De(s) ? e[r] = lt(n, s) : e[r] = s;
|
|
718
942
|
}
|
|
719
943
|
return e;
|
|
720
944
|
}
|
|
721
|
-
const
|
|
945
|
+
const dt = () => {
|
|
722
946
|
};
|
|
723
|
-
function
|
|
947
|
+
function qe(e, t, r, s = dt) {
|
|
724
948
|
e.push(t);
|
|
725
|
-
const
|
|
726
|
-
const
|
|
727
|
-
|
|
949
|
+
const n = () => {
|
|
950
|
+
const a = e.indexOf(t);
|
|
951
|
+
a > -1 && (e.splice(a, 1), s());
|
|
728
952
|
};
|
|
729
|
-
return !r &&
|
|
953
|
+
return !r && it() && Xt(n), n;
|
|
730
954
|
}
|
|
731
955
|
function z(e, ...t) {
|
|
732
956
|
e.slice().forEach((r) => {
|
|
733
957
|
r(...t);
|
|
734
958
|
});
|
|
735
959
|
}
|
|
736
|
-
function
|
|
960
|
+
function Le(e, t) {
|
|
737
961
|
for (const r in t) {
|
|
738
962
|
if (!t.hasOwnProperty(r))
|
|
739
963
|
continue;
|
|
740
|
-
const
|
|
741
|
-
|
|
964
|
+
const s = t[r], n = e[r];
|
|
965
|
+
M(n) && M(s) && e.hasOwnProperty(r) && !Z(s) && !De(s) ? e[r] = Le(n, s) : e[r] = s;
|
|
742
966
|
}
|
|
743
967
|
return e;
|
|
744
968
|
}
|
|
745
|
-
const
|
|
746
|
-
function
|
|
747
|
-
return !
|
|
969
|
+
const cr = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : Symbol();
|
|
970
|
+
function ur(e) {
|
|
971
|
+
return !M(e) || !e.hasOwnProperty(cr);
|
|
748
972
|
}
|
|
749
973
|
const { assign: x } = Object;
|
|
750
|
-
function
|
|
751
|
-
return !!(
|
|
974
|
+
function He(e) {
|
|
975
|
+
return !!(Z(e) && e.effect);
|
|
752
976
|
}
|
|
753
|
-
function
|
|
754
|
-
const { state:
|
|
755
|
-
let
|
|
977
|
+
function Je(e, t, r, s) {
|
|
978
|
+
const { state: n, actions: a, getters: o } = t, u = r.state.value[e];
|
|
979
|
+
let d;
|
|
756
980
|
function c() {
|
|
757
|
-
!u && (process.env.NODE_ENV === "production" || !
|
|
758
|
-
const
|
|
759
|
-
return x(
|
|
760
|
-
|
|
981
|
+
!u && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = n ? n() : {});
|
|
982
|
+
const f = process.env.NODE_ENV !== "production" && s ? $e(ct(n ? n() : {}).value) : $e(r.state.value[e]);
|
|
983
|
+
return x(f, a, Object.keys(o || {}).reduce((m, g) => (process.env.NODE_ENV !== "production" && g in f && console.warn(`[\u{1F34D}]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), m[g] = B(ut(() => {
|
|
984
|
+
ce(r);
|
|
761
985
|
const h = r._s.get(e);
|
|
762
986
|
return o[g].call(h, h);
|
|
763
987
|
})), m), {}));
|
|
764
988
|
}
|
|
765
|
-
return
|
|
766
|
-
const m =
|
|
989
|
+
return d = Pe(e, c, t, r, s, !0), d.$reset = function() {
|
|
990
|
+
const m = n ? n() : {};
|
|
767
991
|
this.$patch((g) => {
|
|
768
992
|
x(g, m);
|
|
769
993
|
});
|
|
770
|
-
},
|
|
994
|
+
}, d;
|
|
771
995
|
}
|
|
772
|
-
function Pe(e, t, r = {},
|
|
996
|
+
function Pe(e, t, r = {}, s, n, a) {
|
|
773
997
|
let o;
|
|
774
998
|
const u = x({ actions: {} }, r);
|
|
775
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
999
|
+
if (process.env.NODE_ENV !== "production" && !s._e.active)
|
|
776
1000
|
throw new Error("Pinia destroyed");
|
|
777
|
-
const
|
|
1001
|
+
const d = {
|
|
778
1002
|
deep: !0
|
|
779
1003
|
};
|
|
780
|
-
process.env.NODE_ENV !== "production" && !
|
|
781
|
-
c ? h =
|
|
1004
|
+
process.env.NODE_ENV !== "production" && !ar && (d.onTrigger = (E) => {
|
|
1005
|
+
c ? h = E : c == !1 && !b._hotUpdating && (Array.isArray(h) ? h.push(E) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
782
1006
|
});
|
|
783
|
-
let c,
|
|
784
|
-
const l =
|
|
785
|
-
!
|
|
786
|
-
const
|
|
1007
|
+
let c, f, m = B([]), g = B([]), h;
|
|
1008
|
+
const l = s.state.value[e];
|
|
1009
|
+
!a && !l && (process.env.NODE_ENV === "production" || !n) && (s.state.value[e] = {});
|
|
1010
|
+
const k = ct({});
|
|
787
1011
|
let C;
|
|
788
|
-
function
|
|
1012
|
+
function S(E) {
|
|
789
1013
|
let p;
|
|
790
|
-
c =
|
|
791
|
-
type:
|
|
1014
|
+
c = f = !1, process.env.NODE_ENV !== "production" && (h = []), typeof E == "function" ? (E(s.state.value[e]), p = {
|
|
1015
|
+
type: Y.patchFunction,
|
|
792
1016
|
storeId: e,
|
|
793
1017
|
events: h
|
|
794
|
-
}) : (
|
|
795
|
-
type:
|
|
796
|
-
payload:
|
|
1018
|
+
}) : (Le(s.state.value[e], E), p = {
|
|
1019
|
+
type: Y.patchObject,
|
|
1020
|
+
payload: E,
|
|
797
1021
|
storeId: e,
|
|
798
1022
|
events: h
|
|
799
1023
|
});
|
|
800
1024
|
const w = C = Symbol();
|
|
801
|
-
|
|
1025
|
+
We().then(() => {
|
|
802
1026
|
C === w && (c = !0);
|
|
803
|
-
}),
|
|
1027
|
+
}), f = !0, z(m, p, s.state.value[e]);
|
|
804
1028
|
}
|
|
805
|
-
const
|
|
1029
|
+
const j = process.env.NODE_ENV !== "production" ? () => {
|
|
806
1030
|
throw new Error(`\u{1F34D}: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
807
|
-
} :
|
|
808
|
-
function
|
|
809
|
-
o.stop(), m = [], g = [],
|
|
1031
|
+
} : dt;
|
|
1032
|
+
function W() {
|
|
1033
|
+
o.stop(), m = [], g = [], s._s.delete(e);
|
|
810
1034
|
}
|
|
811
|
-
function
|
|
1035
|
+
function se(E, p) {
|
|
812
1036
|
return function() {
|
|
813
|
-
|
|
814
|
-
const w = Array.from(arguments),
|
|
815
|
-
function xt(
|
|
816
|
-
|
|
1037
|
+
ce(s);
|
|
1038
|
+
const w = Array.from(arguments), v = [], L = [];
|
|
1039
|
+
function xt(A) {
|
|
1040
|
+
v.push(A);
|
|
817
1041
|
}
|
|
818
|
-
function Ct(
|
|
819
|
-
|
|
1042
|
+
function Ct(A) {
|
|
1043
|
+
L.push(A);
|
|
820
1044
|
}
|
|
821
1045
|
z(g, {
|
|
822
1046
|
args: w,
|
|
823
|
-
name:
|
|
824
|
-
store:
|
|
1047
|
+
name: E,
|
|
1048
|
+
store: b,
|
|
825
1049
|
after: xt,
|
|
826
1050
|
onError: Ct
|
|
827
1051
|
});
|
|
828
|
-
let
|
|
1052
|
+
let J;
|
|
829
1053
|
try {
|
|
830
|
-
|
|
831
|
-
} catch (
|
|
832
|
-
throw z(
|
|
1054
|
+
J = p.apply(this && this.$id === e ? this : b, w);
|
|
1055
|
+
} catch (A) {
|
|
1056
|
+
throw z(L, A), A;
|
|
833
1057
|
}
|
|
834
|
-
return
|
|
1058
|
+
return J instanceof Promise ? J.then((A) => (z(v, A), A)).catch((A) => (z(L, A), Promise.reject(A))) : (z(v, J), J);
|
|
835
1059
|
};
|
|
836
1060
|
}
|
|
837
1061
|
const ne = /* @__PURE__ */ B({
|
|
838
1062
|
actions: {},
|
|
839
1063
|
getters: {},
|
|
840
1064
|
state: [],
|
|
841
|
-
hotState:
|
|
1065
|
+
hotState: k
|
|
842
1066
|
}), Pt = {
|
|
843
|
-
_p:
|
|
1067
|
+
_p: s,
|
|
844
1068
|
$id: e,
|
|
845
|
-
$onAction:
|
|
846
|
-
$patch:
|
|
847
|
-
$reset:
|
|
848
|
-
$subscribe(
|
|
849
|
-
const w =
|
|
850
|
-
(p.flush === "sync" ?
|
|
1069
|
+
$onAction: qe.bind(null, g),
|
|
1070
|
+
$patch: S,
|
|
1071
|
+
$reset: j,
|
|
1072
|
+
$subscribe(E, p = {}) {
|
|
1073
|
+
const w = qe(m, E, p.detached, () => v()), v = o.run(() => zt(() => s.state.value[e], (L) => {
|
|
1074
|
+
(p.flush === "sync" ? f : c) && E({
|
|
851
1075
|
storeId: e,
|
|
852
|
-
type:
|
|
1076
|
+
type: Y.direct,
|
|
853
1077
|
events: h
|
|
854
|
-
},
|
|
855
|
-
}, x({},
|
|
1078
|
+
}, L);
|
|
1079
|
+
}, x({}, d, p)));
|
|
856
1080
|
return w;
|
|
857
1081
|
},
|
|
858
|
-
$dispose:
|
|
859
|
-
},
|
|
860
|
-
process.env.NODE_ENV !== "production" &&
|
|
1082
|
+
$dispose: W
|
|
1083
|
+
}, b = qt(x(
|
|
1084
|
+
process.env.NODE_ENV !== "production" && K ? {
|
|
861
1085
|
_customProperties: B(/* @__PURE__ */ new Set()),
|
|
862
1086
|
_hmrPayload: ne
|
|
863
1087
|
} : {},
|
|
864
1088
|
Pt
|
|
865
1089
|
));
|
|
866
|
-
|
|
867
|
-
const
|
|
868
|
-
for (const
|
|
869
|
-
const p =
|
|
870
|
-
if (
|
|
871
|
-
process.env.NODE_ENV !== "production" &&
|
|
1090
|
+
s._s.set(e, b);
|
|
1091
|
+
const U = s._e.run(() => (o = Ht(), o.run(() => t())));
|
|
1092
|
+
for (const E in U) {
|
|
1093
|
+
const p = U[E];
|
|
1094
|
+
if (Z(p) && !He(p) || De(p))
|
|
1095
|
+
process.env.NODE_ENV !== "production" && n ? oe(k.value, E, fe(U, E)) : a || (l && ur(p) && (Z(p) ? p.value = l[E] : Le(p, l[E])), s.state.value[e][E] = p), process.env.NODE_ENV !== "production" && ne.state.push(E);
|
|
872
1096
|
else if (typeof p == "function") {
|
|
873
|
-
const w = process.env.NODE_ENV !== "production" &&
|
|
874
|
-
|
|
1097
|
+
const w = process.env.NODE_ENV !== "production" && n ? p : se(E, p);
|
|
1098
|
+
U[E] = w, process.env.NODE_ENV !== "production" && (ne.actions[E] = p), u.actions[E] = p;
|
|
875
1099
|
} else
|
|
876
|
-
process.env.NODE_ENV !== "production" &&
|
|
1100
|
+
process.env.NODE_ENV !== "production" && He(p) && (ne.getters[E] = a ? r.getters[E] : p, K && (U._getters || (U._getters = B([]))).push(E));
|
|
877
1101
|
}
|
|
878
|
-
if (x(
|
|
879
|
-
get: () => process.env.NODE_ENV !== "production" &&
|
|
880
|
-
set: (
|
|
881
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1102
|
+
if (x(b, U), x(Jt(b), U), Object.defineProperty(b, "$state", {
|
|
1103
|
+
get: () => process.env.NODE_ENV !== "production" && n ? k.value : s.state.value[e],
|
|
1104
|
+
set: (E) => {
|
|
1105
|
+
if (process.env.NODE_ENV !== "production" && n)
|
|
882
1106
|
throw new Error("cannot set hotState");
|
|
883
|
-
|
|
884
|
-
x(p,
|
|
1107
|
+
S((p) => {
|
|
1108
|
+
x(p, E);
|
|
885
1109
|
});
|
|
886
1110
|
}
|
|
887
1111
|
}), process.env.NODE_ENV !== "production") {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
if (w in
|
|
891
|
-
const
|
|
892
|
-
typeof
|
|
1112
|
+
b._hotUpdate = B((p) => {
|
|
1113
|
+
b._hotUpdating = !0, p._hmrPayload.state.forEach((w) => {
|
|
1114
|
+
if (w in b.$state) {
|
|
1115
|
+
const v = p.$state[w], L = b.$state[w];
|
|
1116
|
+
typeof v == "object" && M(v) && M(L) ? lt(v, L) : p.$state[w] = L;
|
|
893
1117
|
}
|
|
894
|
-
|
|
895
|
-
}), Object.keys(
|
|
896
|
-
w in p.$state ||
|
|
897
|
-
}), c = !1,
|
|
1118
|
+
oe(b, w, fe(p.$state, w));
|
|
1119
|
+
}), Object.keys(b.$state).forEach((w) => {
|
|
1120
|
+
w in p.$state || Ae(b, w);
|
|
1121
|
+
}), c = !1, f = !1, s.state.value[e] = fe(p._hmrPayload, "hotState"), f = !0, We().then(() => {
|
|
898
1122
|
c = !0;
|
|
899
1123
|
});
|
|
900
1124
|
for (const w in p._hmrPayload.actions) {
|
|
901
|
-
const
|
|
902
|
-
|
|
1125
|
+
const v = p[w];
|
|
1126
|
+
oe(b, w, se(w, v));
|
|
903
1127
|
}
|
|
904
1128
|
for (const w in p._hmrPayload.getters) {
|
|
905
|
-
const
|
|
906
|
-
|
|
1129
|
+
const v = p._hmrPayload.getters[w], L = a ? ut(() => (ce(s), v.call(b, b))) : v;
|
|
1130
|
+
oe(b, w, L);
|
|
907
1131
|
}
|
|
908
|
-
Object.keys(
|
|
909
|
-
w in p._hmrPayload.getters ||
|
|
910
|
-
}), Object.keys(
|
|
911
|
-
w in p._hmrPayload.actions ||
|
|
912
|
-
}),
|
|
1132
|
+
Object.keys(b._hmrPayload.getters).forEach((w) => {
|
|
1133
|
+
w in p._hmrPayload.getters || Ae(b, w);
|
|
1134
|
+
}), Object.keys(b._hmrPayload.actions).forEach((w) => {
|
|
1135
|
+
w in p._hmrPayload.actions || Ae(b, w);
|
|
1136
|
+
}), b._hmrPayload = p._hmrPayload, b._getters = p._getters, b._hotUpdating = !1;
|
|
913
1137
|
});
|
|
914
|
-
const
|
|
1138
|
+
const E = {
|
|
915
1139
|
writable: !0,
|
|
916
1140
|
configurable: !0,
|
|
917
1141
|
enumerable: !1
|
|
918
1142
|
};
|
|
919
|
-
|
|
920
|
-
Object.defineProperty(
|
|
921
|
-
value:
|
|
922
|
-
...
|
|
1143
|
+
K && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p) => {
|
|
1144
|
+
Object.defineProperty(b, p, {
|
|
1145
|
+
value: b[p],
|
|
1146
|
+
...E
|
|
923
1147
|
});
|
|
924
1148
|
});
|
|
925
1149
|
}
|
|
926
|
-
return
|
|
927
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
928
|
-
const p = o.run(() =>
|
|
929
|
-
store:
|
|
930
|
-
app:
|
|
931
|
-
pinia:
|
|
1150
|
+
return s._p.forEach((E) => {
|
|
1151
|
+
if (process.env.NODE_ENV !== "production" && K) {
|
|
1152
|
+
const p = o.run(() => E({
|
|
1153
|
+
store: b,
|
|
1154
|
+
app: s._a,
|
|
1155
|
+
pinia: s,
|
|
932
1156
|
options: u
|
|
933
1157
|
}));
|
|
934
|
-
Object.keys(p || {}).forEach((w) =>
|
|
1158
|
+
Object.keys(p || {}).forEach((w) => b._customProperties.add(w)), x(b, p);
|
|
935
1159
|
} else
|
|
936
|
-
x(
|
|
937
|
-
store:
|
|
938
|
-
app:
|
|
939
|
-
pinia:
|
|
1160
|
+
x(b, o.run(() => E({
|
|
1161
|
+
store: b,
|
|
1162
|
+
app: s._a,
|
|
1163
|
+
pinia: s,
|
|
940
1164
|
options: u
|
|
941
1165
|
})));
|
|
942
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1166
|
+
}), process.env.NODE_ENV !== "production" && b.$state && typeof b.$state == "object" && typeof b.$state.constructor == "function" && !b.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
|
943
1167
|
state: () => new MyClass()
|
|
944
|
-
Found in store "${
|
|
945
|
-
}
|
|
946
|
-
function
|
|
947
|
-
let
|
|
948
|
-
const
|
|
949
|
-
typeof e == "string" ? (
|
|
950
|
-
function o(u,
|
|
951
|
-
const c =
|
|
952
|
-
if (u = (process.env.NODE_ENV === "test" &&
|
|
1168
|
+
Found in store "${b.$id}".`), l && a && r.hydrate && r.hydrate(b.$state, l), c = !0, f = !0, b;
|
|
1169
|
+
}
|
|
1170
|
+
function lr(e, t, r) {
|
|
1171
|
+
let s, n;
|
|
1172
|
+
const a = typeof t == "function";
|
|
1173
|
+
typeof e == "string" ? (s = e, n = a ? r : t) : (n = e, s = e.id);
|
|
1174
|
+
function o(u, d) {
|
|
1175
|
+
const c = it();
|
|
1176
|
+
if (u = (process.env.NODE_ENV === "test" && G && G._testing ? null : u) || c && $t(ir), u && ce(u), process.env.NODE_ENV !== "production" && !G)
|
|
953
1177
|
throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
|
|
954
1178
|
const pinia = createPinia()
|
|
955
1179
|
app.use(pinia)
|
|
956
1180
|
This will fail in production.`);
|
|
957
|
-
u =
|
|
958
|
-
const
|
|
959
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
960
|
-
const m = "__hot:" +
|
|
961
|
-
|
|
1181
|
+
u = G, u._s.has(s) || (a ? Pe(s, t, n, u) : Je(s, n, u), process.env.NODE_ENV !== "production" && (o._pinia = u));
|
|
1182
|
+
const f = u._s.get(s);
|
|
1183
|
+
if (process.env.NODE_ENV !== "production" && d) {
|
|
1184
|
+
const m = "__hot:" + s, g = a ? Pe(m, t, n, u, !0) : Je(m, x({}, n), u, !0);
|
|
1185
|
+
d._hotUpdate(g), delete u.state.value[m], u._s.delete(m);
|
|
962
1186
|
}
|
|
963
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1187
|
+
if (process.env.NODE_ENV !== "production" && K && c && c.proxy && !d) {
|
|
964
1188
|
const m = c.proxy, g = "_pStores" in m ? m._pStores : m._pStores = {};
|
|
965
|
-
g[
|
|
1189
|
+
g[s] = f;
|
|
966
1190
|
}
|
|
967
|
-
return
|
|
1191
|
+
return f;
|
|
968
1192
|
}
|
|
969
|
-
return o.$id =
|
|
1193
|
+
return o.$id = s, o;
|
|
970
1194
|
}
|
|
971
|
-
const
|
|
1195
|
+
const Xe = lr({
|
|
972
1196
|
id: "user",
|
|
973
1197
|
state: () => ({
|
|
974
1198
|
displayName: "",
|
|
@@ -993,10 +1217,10 @@ const We = ur({
|
|
|
993
1217
|
},
|
|
994
1218
|
isLoggedIn() {
|
|
995
1219
|
let e;
|
|
996
|
-
return this.apiAlfresco ? e = this.apiAlfresco : e =
|
|
1220
|
+
return this.apiAlfresco ? e = this.apiAlfresco : e = _(), Re().getPerson("-me-").then((t) => (this.$patch({
|
|
997
1221
|
person: t.entry,
|
|
998
1222
|
apiAlfresco: e
|
|
999
|
-
}), !0)).catch((t) =>
|
|
1223
|
+
}), !0)).catch((t) => dr(t));
|
|
1000
1224
|
},
|
|
1001
1225
|
async login(e, t) {
|
|
1002
1226
|
if (!e || !t)
|
|
@@ -1006,12 +1230,12 @@ const We = ur({
|
|
|
1006
1230
|
person: r.entry
|
|
1007
1231
|
});
|
|
1008
1232
|
}).catch((r) => {
|
|
1009
|
-
|
|
1233
|
+
Qt(r);
|
|
1010
1234
|
});
|
|
1011
1235
|
},
|
|
1012
1236
|
apiLogin(e, t) {
|
|
1013
|
-
return
|
|
1014
|
-
apiAlfresco:
|
|
1237
|
+
return _().login(e, t).then(() => (this.$patch({
|
|
1238
|
+
apiAlfresco: _()
|
|
1015
1239
|
}), Re().getPerson("-me-"))).catch((r) => Promise.reject(r));
|
|
1016
1240
|
},
|
|
1017
1241
|
async publiclogoff() {
|
|
@@ -1038,33 +1262,33 @@ const We = ur({
|
|
|
1038
1262
|
}
|
|
1039
1263
|
}
|
|
1040
1264
|
});
|
|
1041
|
-
function
|
|
1265
|
+
function dr(e) {
|
|
1042
1266
|
let t = JSON.parse(e.message).error;
|
|
1043
1267
|
if (t.statusCode === 401 || t.statusCode === 403)
|
|
1044
1268
|
return !1;
|
|
1045
1269
|
throw new Error(e);
|
|
1046
1270
|
}
|
|
1047
|
-
class
|
|
1271
|
+
class Ns {
|
|
1048
1272
|
getFavorites(t) {
|
|
1049
|
-
const r =
|
|
1273
|
+
const r = Xe(), s = {
|
|
1050
1274
|
skipCount: 0,
|
|
1051
1275
|
maxItems: 100,
|
|
1052
1276
|
include: ["properties", "path"]
|
|
1053
1277
|
};
|
|
1054
|
-
return t && (
|
|
1055
|
-
|
|
1278
|
+
return t && (s.where = `(EXISTS(target/${t}))`), Se().listFavorites(r.person.id, s).then((n) => n.list.entries.map((a) => a.entry)).catch((n) => {
|
|
1279
|
+
rr(n);
|
|
1056
1280
|
});
|
|
1057
1281
|
}
|
|
1058
1282
|
changeSingleFavorite(t) {
|
|
1059
|
-
const r =
|
|
1283
|
+
const r = Xe();
|
|
1060
1284
|
if (t.isFavorite)
|
|
1061
|
-
return Se().deleteFavorite(r.person.id, t.id).then(() => (t.isFavorite = !1, t)).catch((
|
|
1062
|
-
nr(
|
|
1285
|
+
return Se().deleteFavorite(r.person.id, t.id).then(() => (t.isFavorite = !1, t)).catch((s) => {
|
|
1286
|
+
nr(s);
|
|
1063
1287
|
});
|
|
1064
1288
|
{
|
|
1065
|
-
let
|
|
1066
|
-
return t.nodeType === "st:site" ?
|
|
1067
|
-
|
|
1289
|
+
let s = { target: {} }, n = { guid: t.id };
|
|
1290
|
+
return t.nodeType === "st:site" ? s.target = { site: n } : t.isFile ? s.target = { file: n } : s.target = { folder: n }, Se().createFavorite(r.person.id, s).then((a) => (t.isFavorite = a.entry.targetGuid === t.id, t)).catch((a) => {
|
|
1291
|
+
sr(a);
|
|
1068
1292
|
});
|
|
1069
1293
|
}
|
|
1070
1294
|
}
|
|
@@ -1074,109 +1298,109 @@ function ft(e, t) {
|
|
|
1074
1298
|
return e.apply(t, arguments);
|
|
1075
1299
|
};
|
|
1076
1300
|
}
|
|
1077
|
-
const { toString:
|
|
1078
|
-
const r =
|
|
1301
|
+
const { toString: pt } = Object.prototype, { getPrototypeOf: Ue } = Object, Ve = ((e) => (t) => {
|
|
1302
|
+
const r = pt.call(t);
|
|
1079
1303
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1080
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
1304
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Ve(t) === e), ue = (e) => (t) => typeof t === e, { isArray: te } = Array, xe = ue("undefined");
|
|
1081
1305
|
function fr(e) {
|
|
1082
1306
|
return e !== null && !xe(e) && e.constructor !== null && !xe(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1083
1307
|
}
|
|
1084
|
-
const
|
|
1085
|
-
function
|
|
1308
|
+
const ht = D("ArrayBuffer");
|
|
1309
|
+
function pr(e) {
|
|
1086
1310
|
let t;
|
|
1087
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1311
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ht(e.buffer), t;
|
|
1088
1312
|
}
|
|
1089
|
-
const
|
|
1090
|
-
if (
|
|
1313
|
+
const hr = ue("string"), q = ue("function"), mt = ue("number"), bt = (e) => e !== null && typeof e == "object", mr = (e) => e === !0 || e === !1, ae = (e) => {
|
|
1314
|
+
if (Ve(e) !== "object")
|
|
1091
1315
|
return !1;
|
|
1092
|
-
const t =
|
|
1316
|
+
const t = Ue(e);
|
|
1093
1317
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1094
|
-
},
|
|
1318
|
+
}, br = D("Date"), Er = D("File"), wr = D("Blob"), yr = D("FileList"), gr = (e) => bt(e) && q(e.pipe), kr = (e) => {
|
|
1095
1319
|
const t = "[object FormData]";
|
|
1096
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
1097
|
-
}, Nr =
|
|
1098
|
-
function
|
|
1320
|
+
return e && (typeof FormData == "function" && e instanceof FormData || pt.call(e) === t || q(e.toString) && e.toString() === t);
|
|
1321
|
+
}, Nr = D("URLSearchParams"), Sr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1322
|
+
function le(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1099
1323
|
if (e === null || typeof e > "u")
|
|
1100
1324
|
return;
|
|
1101
|
-
let
|
|
1102
|
-
if (typeof e != "object" && (e = [e]),
|
|
1103
|
-
for (
|
|
1104
|
-
t.call(null, e[
|
|
1325
|
+
let s, n;
|
|
1326
|
+
if (typeof e != "object" && (e = [e]), te(e))
|
|
1327
|
+
for (s = 0, n = e.length; s < n; s++)
|
|
1328
|
+
t.call(null, e[s], s, e);
|
|
1105
1329
|
else {
|
|
1106
|
-
const
|
|
1330
|
+
const a = r ? Object.getOwnPropertyNames(e) : Object.keys(e), o = a.length;
|
|
1107
1331
|
let u;
|
|
1108
|
-
for (
|
|
1109
|
-
u =
|
|
1332
|
+
for (s = 0; s < o; s++)
|
|
1333
|
+
u = a[s], t.call(null, e[u], u, e);
|
|
1110
1334
|
}
|
|
1111
1335
|
}
|
|
1112
1336
|
function Ce() {
|
|
1113
|
-
const e = {}, t = (r,
|
|
1114
|
-
|
|
1337
|
+
const e = {}, t = (r, s) => {
|
|
1338
|
+
ae(e[s]) && ae(r) ? e[s] = Ce(e[s], r) : ae(r) ? e[s] = Ce({}, r) : te(r) ? e[s] = r.slice() : e[s] = r;
|
|
1115
1339
|
};
|
|
1116
|
-
for (let r = 0,
|
|
1117
|
-
arguments[r] &&
|
|
1340
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
1341
|
+
arguments[r] && le(arguments[r], t);
|
|
1118
1342
|
return e;
|
|
1119
1343
|
}
|
|
1120
|
-
const
|
|
1121
|
-
r && q(
|
|
1122
|
-
}, { allOwnKeys:
|
|
1123
|
-
e.prototype = Object.create(t.prototype,
|
|
1344
|
+
const vr = (e, t, r, { allOwnKeys: s } = {}) => (le(t, (n, a) => {
|
|
1345
|
+
r && q(n) ? e[a] = ft(n, r) : e[a] = n;
|
|
1346
|
+
}, { allOwnKeys: s }), e), Ar = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Or = (e, t, r, s) => {
|
|
1347
|
+
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1124
1348
|
value: t.prototype
|
|
1125
1349
|
}), r && Object.assign(e.prototype, r);
|
|
1126
|
-
},
|
|
1127
|
-
let
|
|
1350
|
+
}, _r = (e, t, r, s) => {
|
|
1351
|
+
let n, a, o;
|
|
1128
1352
|
const u = {};
|
|
1129
1353
|
if (t = t || {}, e == null)
|
|
1130
1354
|
return t;
|
|
1131
1355
|
do {
|
|
1132
|
-
for (
|
|
1133
|
-
o =
|
|
1134
|
-
e = r !== !1 &&
|
|
1356
|
+
for (n = Object.getOwnPropertyNames(e), a = n.length; a-- > 0; )
|
|
1357
|
+
o = n[a], (!s || s(o, e, t)) && !u[o] && (t[o] = e[o], u[o] = !0);
|
|
1358
|
+
e = r !== !1 && Ue(e);
|
|
1135
1359
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1136
1360
|
return t;
|
|
1137
1361
|
}, Rr = (e, t, r) => {
|
|
1138
1362
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1139
|
-
const
|
|
1140
|
-
return
|
|
1141
|
-
},
|
|
1363
|
+
const s = e.indexOf(t, r);
|
|
1364
|
+
return s !== -1 && s === r;
|
|
1365
|
+
}, Lr = (e) => {
|
|
1142
1366
|
if (!e)
|
|
1143
1367
|
return null;
|
|
1144
|
-
if (
|
|
1368
|
+
if (te(e))
|
|
1145
1369
|
return e;
|
|
1146
1370
|
let t = e.length;
|
|
1147
|
-
if (!
|
|
1371
|
+
if (!mt(t))
|
|
1148
1372
|
return null;
|
|
1149
1373
|
const r = new Array(t);
|
|
1150
1374
|
for (; t-- > 0; )
|
|
1151
1375
|
r[t] = e[t];
|
|
1152
1376
|
return r;
|
|
1153
|
-
}, Pr = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
1154
|
-
const
|
|
1155
|
-
let
|
|
1156
|
-
for (; (
|
|
1157
|
-
const
|
|
1158
|
-
t.call(e,
|
|
1377
|
+
}, Pr = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ue(Uint8Array)), xr = (e, t) => {
|
|
1378
|
+
const s = (e && e[Symbol.iterator]).call(e);
|
|
1379
|
+
let n;
|
|
1380
|
+
for (; (n = s.next()) && !n.done; ) {
|
|
1381
|
+
const a = n.value;
|
|
1382
|
+
t.call(e, a[0], a[1]);
|
|
1159
1383
|
}
|
|
1160
1384
|
}, Cr = (e, t) => {
|
|
1161
1385
|
let r;
|
|
1162
|
-
const
|
|
1386
|
+
const s = [];
|
|
1163
1387
|
for (; (r = e.exec(t)) !== null; )
|
|
1164
|
-
|
|
1165
|
-
return
|
|
1166
|
-
},
|
|
1388
|
+
s.push(r);
|
|
1389
|
+
return s;
|
|
1390
|
+
}, Tr = D("HTMLFormElement"), Fr = (e) => e.toLowerCase().replace(
|
|
1167
1391
|
/[_-\s]([a-z\d])(\w*)/g,
|
|
1168
|
-
function(r,
|
|
1169
|
-
return
|
|
1170
|
-
}
|
|
1171
|
-
),
|
|
1172
|
-
const r = Object.getOwnPropertyDescriptors(e),
|
|
1173
|
-
|
|
1174
|
-
t(
|
|
1175
|
-
}), Object.defineProperties(e,
|
|
1176
|
-
},
|
|
1392
|
+
function(r, s, n) {
|
|
1393
|
+
return s.toUpperCase() + n;
|
|
1394
|
+
}
|
|
1395
|
+
), Ge = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Dr = D("RegExp"), Et = (e, t) => {
|
|
1396
|
+
const r = Object.getOwnPropertyDescriptors(e), s = {};
|
|
1397
|
+
le(r, (n, a) => {
|
|
1398
|
+
t(n, a, e) !== !1 && (s[a] = n);
|
|
1399
|
+
}), Object.defineProperties(e, s);
|
|
1400
|
+
}, jr = (e) => {
|
|
1177
1401
|
Et(e, (t, r) => {
|
|
1178
|
-
const
|
|
1179
|
-
if (!!q(
|
|
1402
|
+
const s = e[r];
|
|
1403
|
+
if (!!q(s)) {
|
|
1180
1404
|
if (t.enumerable = !1, "writable" in t) {
|
|
1181
1405
|
t.writable = !1;
|
|
1182
1406
|
return;
|
|
@@ -1186,62 +1410,62 @@ const Ar = (e, t, r, { allOwnKeys: n } = {}) => (ue(t, (s, i) => {
|
|
|
1186
1410
|
});
|
|
1187
1411
|
}
|
|
1188
1412
|
});
|
|
1189
|
-
},
|
|
1190
|
-
const r = {},
|
|
1191
|
-
|
|
1192
|
-
r[
|
|
1413
|
+
}, Ur = (e, t) => {
|
|
1414
|
+
const r = {}, s = (n) => {
|
|
1415
|
+
n.forEach((a) => {
|
|
1416
|
+
r[a] = !0;
|
|
1193
1417
|
});
|
|
1194
1418
|
};
|
|
1195
|
-
return
|
|
1196
|
-
},
|
|
1197
|
-
}, Br = (e, t) => (e = +e, Number.isFinite(e) ? e : t),
|
|
1198
|
-
isArray:
|
|
1199
|
-
isArrayBuffer:
|
|
1419
|
+
return te(e) ? s(e) : s(String(e).split(t)), r;
|
|
1420
|
+
}, Vr = () => {
|
|
1421
|
+
}, Br = (e, t) => (e = +e, Number.isFinite(e) ? e : t), i = {
|
|
1422
|
+
isArray: te,
|
|
1423
|
+
isArrayBuffer: ht,
|
|
1200
1424
|
isBuffer: fr,
|
|
1201
|
-
isFormData:
|
|
1202
|
-
isArrayBufferView:
|
|
1203
|
-
isString:
|
|
1204
|
-
isNumber:
|
|
1205
|
-
isBoolean:
|
|
1206
|
-
isObject:
|
|
1207
|
-
isPlainObject:
|
|
1425
|
+
isFormData: kr,
|
|
1426
|
+
isArrayBufferView: pr,
|
|
1427
|
+
isString: hr,
|
|
1428
|
+
isNumber: mt,
|
|
1429
|
+
isBoolean: mr,
|
|
1430
|
+
isObject: bt,
|
|
1431
|
+
isPlainObject: ae,
|
|
1208
1432
|
isUndefined: xe,
|
|
1209
|
-
isDate:
|
|
1433
|
+
isDate: br,
|
|
1210
1434
|
isFile: Er,
|
|
1211
|
-
isBlob:
|
|
1212
|
-
isRegExp:
|
|
1435
|
+
isBlob: wr,
|
|
1436
|
+
isRegExp: Dr,
|
|
1213
1437
|
isFunction: q,
|
|
1214
|
-
isStream:
|
|
1438
|
+
isStream: gr,
|
|
1215
1439
|
isURLSearchParams: Nr,
|
|
1216
1440
|
isTypedArray: Pr,
|
|
1217
|
-
isFileList:
|
|
1218
|
-
forEach:
|
|
1441
|
+
isFileList: yr,
|
|
1442
|
+
forEach: le,
|
|
1219
1443
|
merge: Ce,
|
|
1220
|
-
extend:
|
|
1444
|
+
extend: vr,
|
|
1221
1445
|
trim: Sr,
|
|
1222
|
-
stripBOM:
|
|
1223
|
-
inherits:
|
|
1224
|
-
toFlatObject:
|
|
1225
|
-
kindOf:
|
|
1226
|
-
kindOfTest:
|
|
1446
|
+
stripBOM: Ar,
|
|
1447
|
+
inherits: Or,
|
|
1448
|
+
toFlatObject: _r,
|
|
1449
|
+
kindOf: Ve,
|
|
1450
|
+
kindOfTest: D,
|
|
1227
1451
|
endsWith: Rr,
|
|
1228
|
-
toArray:
|
|
1452
|
+
toArray: Lr,
|
|
1229
1453
|
forEachEntry: xr,
|
|
1230
1454
|
matchAll: Cr,
|
|
1231
|
-
isHTMLForm:
|
|
1232
|
-
hasOwnProperty:
|
|
1233
|
-
hasOwnProp:
|
|
1455
|
+
isHTMLForm: Tr,
|
|
1456
|
+
hasOwnProperty: Ge,
|
|
1457
|
+
hasOwnProp: Ge,
|
|
1234
1458
|
reduceDescriptors: Et,
|
|
1235
|
-
freezeMethods:
|
|
1236
|
-
toObjectSet:
|
|
1237
|
-
toCamelCase:
|
|
1238
|
-
noop:
|
|
1459
|
+
freezeMethods: jr,
|
|
1460
|
+
toObjectSet: Ur,
|
|
1461
|
+
toCamelCase: Fr,
|
|
1462
|
+
noop: Vr,
|
|
1239
1463
|
toFiniteNumber: Br
|
|
1240
1464
|
};
|
|
1241
|
-
function y(e, t, r,
|
|
1242
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r),
|
|
1465
|
+
function y(e, t, r, s, n) {
|
|
1466
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), s && (this.request = s), n && (this.response = n);
|
|
1243
1467
|
}
|
|
1244
|
-
|
|
1468
|
+
i.inherits(y, Error, {
|
|
1245
1469
|
toJSON: function() {
|
|
1246
1470
|
return {
|
|
1247
1471
|
message: this.message,
|
|
@@ -1258,7 +1482,7 @@ a.inherits(y, Error, {
|
|
|
1258
1482
|
};
|
|
1259
1483
|
}
|
|
1260
1484
|
});
|
|
1261
|
-
const
|
|
1485
|
+
const wt = y.prototype, yt = {};
|
|
1262
1486
|
[
|
|
1263
1487
|
"ERR_BAD_OPTION_VALUE",
|
|
1264
1488
|
"ERR_BAD_OPTION",
|
|
@@ -1273,99 +1497,99 @@ const bt = y.prototype, wt = {};
|
|
|
1273
1497
|
"ERR_NOT_SUPPORT",
|
|
1274
1498
|
"ERR_INVALID_URL"
|
|
1275
1499
|
].forEach((e) => {
|
|
1276
|
-
|
|
1500
|
+
yt[e] = { value: e };
|
|
1277
1501
|
});
|
|
1278
|
-
Object.defineProperties(y,
|
|
1279
|
-
Object.defineProperty(
|
|
1280
|
-
y.from = (e, t, r,
|
|
1281
|
-
const o = Object.create(
|
|
1282
|
-
return
|
|
1283
|
-
return
|
|
1284
|
-
}, (u) => u !== "isAxiosError"), y.call(o, e.message, t, r,
|
|
1502
|
+
Object.defineProperties(y, yt);
|
|
1503
|
+
Object.defineProperty(wt, "isAxiosError", { value: !0 });
|
|
1504
|
+
y.from = (e, t, r, s, n, a) => {
|
|
1505
|
+
const o = Object.create(wt);
|
|
1506
|
+
return i.toFlatObject(e, o, function(d) {
|
|
1507
|
+
return d !== Error.prototype;
|
|
1508
|
+
}, (u) => u !== "isAxiosError"), y.call(o, e.message, t, r, s, n), o.cause = e, o.name = e.name, a && Object.assign(o, a), o;
|
|
1285
1509
|
};
|
|
1286
1510
|
var Ir = typeof self == "object" ? self.FormData : window.FormData;
|
|
1287
|
-
function
|
|
1288
|
-
return
|
|
1511
|
+
function Te(e) {
|
|
1512
|
+
return i.isPlainObject(e) || i.isArray(e);
|
|
1289
1513
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return
|
|
1514
|
+
function gt(e) {
|
|
1515
|
+
return i.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1292
1516
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return e ? e.concat(t).map(function(
|
|
1295
|
-
return
|
|
1517
|
+
function Ke(e, t, r) {
|
|
1518
|
+
return e ? e.concat(t).map(function(n, a) {
|
|
1519
|
+
return n = gt(n), !r && a ? "[" + n + "]" : n;
|
|
1296
1520
|
}).join(r ? "." : "") : t;
|
|
1297
1521
|
}
|
|
1298
|
-
function
|
|
1299
|
-
return
|
|
1522
|
+
function Mr(e) {
|
|
1523
|
+
return i.isArray(e) && !e.some(Te);
|
|
1300
1524
|
}
|
|
1301
|
-
const
|
|
1525
|
+
const Wr = i.toFlatObject(i, {}, null, function(t) {
|
|
1302
1526
|
return /^is[A-Z]/.test(t);
|
|
1303
1527
|
});
|
|
1304
1528
|
function $r(e) {
|
|
1305
|
-
return e &&
|
|
1529
|
+
return e && i.isFunction(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator];
|
|
1306
1530
|
}
|
|
1307
|
-
function
|
|
1308
|
-
if (!
|
|
1531
|
+
function de(e, t, r) {
|
|
1532
|
+
if (!i.isObject(e))
|
|
1309
1533
|
throw new TypeError("target must be an object");
|
|
1310
|
-
t = t || new (Ir || FormData)(), r =
|
|
1534
|
+
t = t || new (Ir || FormData)(), r = i.toFlatObject(r, {
|
|
1311
1535
|
metaTokens: !0,
|
|
1312
1536
|
dots: !1,
|
|
1313
1537
|
indexes: !1
|
|
1314
|
-
}, !1, function(
|
|
1315
|
-
return !
|
|
1538
|
+
}, !1, function(k, C) {
|
|
1539
|
+
return !i.isUndefined(C[k]);
|
|
1316
1540
|
});
|
|
1317
|
-
const
|
|
1318
|
-
if (!
|
|
1541
|
+
const s = r.metaTokens, n = r.visitor || f, a = r.dots, o = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && $r(t);
|
|
1542
|
+
if (!i.isFunction(n))
|
|
1319
1543
|
throw new TypeError("visitor must be a function");
|
|
1320
1544
|
function c(l) {
|
|
1321
1545
|
if (l === null)
|
|
1322
1546
|
return "";
|
|
1323
|
-
if (
|
|
1547
|
+
if (i.isDate(l))
|
|
1324
1548
|
return l.toISOString();
|
|
1325
|
-
if (!
|
|
1549
|
+
if (!d && i.isBlob(l))
|
|
1326
1550
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
1327
|
-
return
|
|
1551
|
+
return i.isArrayBuffer(l) || i.isTypedArray(l) ? d && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
|
|
1328
1552
|
}
|
|
1329
|
-
function
|
|
1330
|
-
let
|
|
1553
|
+
function f(l, k, C) {
|
|
1554
|
+
let S = l;
|
|
1331
1555
|
if (l && !C && typeof l == "object") {
|
|
1332
|
-
if (
|
|
1333
|
-
|
|
1334
|
-
else if (
|
|
1335
|
-
return
|
|
1336
|
-
!(
|
|
1337
|
-
o === !0 ?
|
|
1338
|
-
c(
|
|
1556
|
+
if (i.endsWith(k, "{}"))
|
|
1557
|
+
k = s ? k : k.slice(0, -2), l = JSON.stringify(l);
|
|
1558
|
+
else if (i.isArray(l) && Mr(l) || i.isFileList(l) || i.endsWith(k, "[]") && (S = i.toArray(l)))
|
|
1559
|
+
return k = gt(k), S.forEach(function(W, se) {
|
|
1560
|
+
!(i.isUndefined(W) || W === null) && t.append(
|
|
1561
|
+
o === !0 ? Ke([k], se, a) : o === null ? k : k + "[]",
|
|
1562
|
+
c(W)
|
|
1339
1563
|
);
|
|
1340
1564
|
}), !1;
|
|
1341
1565
|
}
|
|
1342
|
-
return
|
|
1566
|
+
return Te(l) ? !0 : (t.append(Ke(C, k, a), c(l)), !1);
|
|
1343
1567
|
}
|
|
1344
|
-
const m = [], g = Object.assign(
|
|
1345
|
-
defaultVisitor:
|
|
1568
|
+
const m = [], g = Object.assign(Wr, {
|
|
1569
|
+
defaultVisitor: f,
|
|
1346
1570
|
convertValue: c,
|
|
1347
|
-
isVisitable:
|
|
1571
|
+
isVisitable: Te
|
|
1348
1572
|
});
|
|
1349
|
-
function h(l,
|
|
1350
|
-
if (!
|
|
1573
|
+
function h(l, k) {
|
|
1574
|
+
if (!i.isUndefined(l)) {
|
|
1351
1575
|
if (m.indexOf(l) !== -1)
|
|
1352
|
-
throw Error("Circular reference detected in " +
|
|
1353
|
-
m.push(l),
|
|
1354
|
-
(!(
|
|
1576
|
+
throw Error("Circular reference detected in " + k.join("."));
|
|
1577
|
+
m.push(l), i.forEach(l, function(S, j) {
|
|
1578
|
+
(!(i.isUndefined(S) || S === null) && n.call(
|
|
1355
1579
|
t,
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1580
|
+
S,
|
|
1581
|
+
i.isString(j) ? j.trim() : j,
|
|
1582
|
+
k,
|
|
1359
1583
|
g
|
|
1360
|
-
)) === !0 && h(
|
|
1584
|
+
)) === !0 && h(S, k ? k.concat(j) : [j]);
|
|
1361
1585
|
}), m.pop();
|
|
1362
1586
|
}
|
|
1363
1587
|
}
|
|
1364
|
-
if (!
|
|
1588
|
+
if (!i.isObject(e))
|
|
1365
1589
|
throw new TypeError("data must be an object");
|
|
1366
1590
|
return h(e), t;
|
|
1367
1591
|
}
|
|
1368
|
-
function
|
|
1592
|
+
function Qe(e) {
|
|
1369
1593
|
const t = {
|
|
1370
1594
|
"!": "%21",
|
|
1371
1595
|
"'": "%27",
|
|
@@ -1375,23 +1599,23 @@ function Ge(e) {
|
|
|
1375
1599
|
"%20": "+",
|
|
1376
1600
|
"%00": "\0"
|
|
1377
1601
|
};
|
|
1378
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(
|
|
1379
|
-
return t[
|
|
1602
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
|
|
1603
|
+
return t[s];
|
|
1380
1604
|
});
|
|
1381
1605
|
}
|
|
1382
|
-
function
|
|
1383
|
-
this._pairs = [], e &&
|
|
1606
|
+
function Be(e, t) {
|
|
1607
|
+
this._pairs = [], e && de(e, this, t);
|
|
1384
1608
|
}
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1609
|
+
const kt = Be.prototype;
|
|
1610
|
+
kt.append = function(t, r) {
|
|
1387
1611
|
this._pairs.push([t, r]);
|
|
1388
1612
|
};
|
|
1389
|
-
|
|
1390
|
-
const r = t ? function(
|
|
1391
|
-
return t.call(this,
|
|
1392
|
-
} :
|
|
1393
|
-
return this._pairs.map(function(
|
|
1394
|
-
return r(
|
|
1613
|
+
kt.toString = function(t) {
|
|
1614
|
+
const r = t ? function(s) {
|
|
1615
|
+
return t.call(this, s, Qe);
|
|
1616
|
+
} : Qe;
|
|
1617
|
+
return this._pairs.map(function(n) {
|
|
1618
|
+
return r(n[0]) + "=" + r(n[1]);
|
|
1395
1619
|
}, "").join("&");
|
|
1396
1620
|
};
|
|
1397
1621
|
function zr(e) {
|
|
@@ -1400,24 +1624,24 @@ function zr(e) {
|
|
|
1400
1624
|
function Nt(e, t, r) {
|
|
1401
1625
|
if (!t)
|
|
1402
1626
|
return e;
|
|
1403
|
-
const
|
|
1404
|
-
let
|
|
1405
|
-
if (
|
|
1627
|
+
const s = r && r.encode || zr, n = r && r.serialize;
|
|
1628
|
+
let a;
|
|
1629
|
+
if (n ? a = n(t, r) : a = i.isURLSearchParams(t) ? t.toString() : new Be(t, r).toString(s), a) {
|
|
1406
1630
|
const o = e.indexOf("#");
|
|
1407
|
-
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") +
|
|
1631
|
+
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
1408
1632
|
}
|
|
1409
1633
|
return e;
|
|
1410
1634
|
}
|
|
1411
|
-
class
|
|
1635
|
+
class Ye {
|
|
1412
1636
|
constructor() {
|
|
1413
1637
|
this.handlers = [];
|
|
1414
1638
|
}
|
|
1415
|
-
use(t, r,
|
|
1639
|
+
use(t, r, s) {
|
|
1416
1640
|
return this.handlers.push({
|
|
1417
1641
|
fulfilled: t,
|
|
1418
1642
|
rejected: r,
|
|
1419
|
-
synchronous:
|
|
1420
|
-
runWhen:
|
|
1643
|
+
synchronous: s ? s.synchronous : !1,
|
|
1644
|
+
runWhen: s ? s.runWhen : null
|
|
1421
1645
|
}), this.handlers.length - 1;
|
|
1422
1646
|
}
|
|
1423
1647
|
eject(t) {
|
|
@@ -1427,8 +1651,8 @@ class Ke {
|
|
|
1427
1651
|
this.handlers && (this.handlers = []);
|
|
1428
1652
|
}
|
|
1429
1653
|
forEach(t) {
|
|
1430
|
-
|
|
1431
|
-
|
|
1654
|
+
i.forEach(this.handlers, function(s) {
|
|
1655
|
+
s !== null && t(s);
|
|
1432
1656
|
});
|
|
1433
1657
|
}
|
|
1434
1658
|
}
|
|
@@ -1436,55 +1660,55 @@ const St = {
|
|
|
1436
1660
|
silentJSONParsing: !0,
|
|
1437
1661
|
forcedJSONParsing: !0,
|
|
1438
1662
|
clarifyTimeoutError: !1
|
|
1439
|
-
}, qr = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
1663
|
+
}, qr = typeof URLSearchParams < "u" ? URLSearchParams : Be, Hr = FormData, Jr = (() => {
|
|
1440
1664
|
let e;
|
|
1441
1665
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
1442
|
-
})(),
|
|
1666
|
+
})(), F = {
|
|
1443
1667
|
isBrowser: !0,
|
|
1444
1668
|
classes: {
|
|
1445
1669
|
URLSearchParams: qr,
|
|
1446
1670
|
FormData: Hr,
|
|
1447
1671
|
Blob
|
|
1448
1672
|
},
|
|
1449
|
-
isStandardBrowserEnv:
|
|
1673
|
+
isStandardBrowserEnv: Jr,
|
|
1450
1674
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1451
1675
|
};
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1454
|
-
visitor: function(r,
|
|
1455
|
-
return
|
|
1676
|
+
function Xr(e, t) {
|
|
1677
|
+
return de(e, new F.classes.URLSearchParams(), Object.assign({
|
|
1678
|
+
visitor: function(r, s, n, a) {
|
|
1679
|
+
return F.isNode && i.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
1456
1680
|
}
|
|
1457
1681
|
}, t));
|
|
1458
1682
|
}
|
|
1459
|
-
function Xr(e) {
|
|
1460
|
-
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1461
|
-
}
|
|
1462
1683
|
function Gr(e) {
|
|
1684
|
+
return i.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1685
|
+
}
|
|
1686
|
+
function Kr(e) {
|
|
1463
1687
|
const t = {}, r = Object.keys(e);
|
|
1464
|
-
let
|
|
1465
|
-
const
|
|
1466
|
-
let
|
|
1467
|
-
for (
|
|
1468
|
-
|
|
1688
|
+
let s;
|
|
1689
|
+
const n = r.length;
|
|
1690
|
+
let a;
|
|
1691
|
+
for (s = 0; s < n; s++)
|
|
1692
|
+
a = r[s], t[a] = e[a];
|
|
1469
1693
|
return t;
|
|
1470
1694
|
}
|
|
1471
|
-
function
|
|
1472
|
-
function t(r,
|
|
1473
|
-
let o = r[
|
|
1474
|
-
const u = Number.isFinite(+o),
|
|
1475
|
-
return o = !o &&
|
|
1695
|
+
function vt(e) {
|
|
1696
|
+
function t(r, s, n, a) {
|
|
1697
|
+
let o = r[a++];
|
|
1698
|
+
const u = Number.isFinite(+o), d = a >= r.length;
|
|
1699
|
+
return o = !o && i.isArray(n) ? n.length : o, d ? (i.hasOwnProp(n, o) ? n[o] = [n[o], s] : n[o] = s, !u) : ((!n[o] || !i.isObject(n[o])) && (n[o] = []), t(r, s, n[o], a) && i.isArray(n[o]) && (n[o] = Kr(n[o])), !u);
|
|
1476
1700
|
}
|
|
1477
|
-
if (
|
|
1701
|
+
if (i.isFormData(e) && i.isFunction(e.entries)) {
|
|
1478
1702
|
const r = {};
|
|
1479
|
-
return
|
|
1480
|
-
t(
|
|
1703
|
+
return i.forEachEntry(e, (s, n) => {
|
|
1704
|
+
t(Gr(s), n, r, 0);
|
|
1481
1705
|
}), r;
|
|
1482
1706
|
}
|
|
1483
1707
|
return null;
|
|
1484
1708
|
}
|
|
1485
|
-
function
|
|
1486
|
-
const
|
|
1487
|
-
!r.status || !
|
|
1709
|
+
function Qr(e, t, r) {
|
|
1710
|
+
const s = r.config.validateStatus;
|
|
1711
|
+
!r.status || !s || s(r.status) ? e(r) : t(new y(
|
|
1488
1712
|
"Request failed with status code " + r.status,
|
|
1489
1713
|
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
1490
1714
|
r.config,
|
|
@@ -1492,15 +1716,15 @@ function Kr(e, t, r) {
|
|
|
1492
1716
|
r
|
|
1493
1717
|
));
|
|
1494
1718
|
}
|
|
1495
|
-
const
|
|
1719
|
+
const Yr = F.isStandardBrowserEnv ? function() {
|
|
1496
1720
|
return {
|
|
1497
|
-
write: function(r,
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1721
|
+
write: function(r, s, n, a, o, u) {
|
|
1722
|
+
const d = [];
|
|
1723
|
+
d.push(r + "=" + encodeURIComponent(s)), i.isNumber(n) && d.push("expires=" + new Date(n).toGMTString()), i.isString(a) && d.push("path=" + a), i.isString(o) && d.push("domain=" + o), u === !0 && d.push("secure"), document.cookie = d.join("; ");
|
|
1500
1724
|
},
|
|
1501
1725
|
read: function(r) {
|
|
1502
|
-
const
|
|
1503
|
-
return
|
|
1726
|
+
const s = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
|
|
1727
|
+
return s ? decodeURIComponent(s[3]) : null;
|
|
1504
1728
|
},
|
|
1505
1729
|
remove: function(r) {
|
|
1506
1730
|
this.write(r, "", Date.now() - 864e5);
|
|
@@ -1517,20 +1741,20 @@ const Qr = T.isStandardBrowserEnv ? function() {
|
|
|
1517
1741
|
}
|
|
1518
1742
|
};
|
|
1519
1743
|
}();
|
|
1520
|
-
function
|
|
1744
|
+
function Zr(e) {
|
|
1521
1745
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1522
1746
|
}
|
|
1523
|
-
function
|
|
1747
|
+
function es(e, t) {
|
|
1524
1748
|
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1525
1749
|
}
|
|
1526
|
-
function
|
|
1527
|
-
return e && !
|
|
1750
|
+
function At(e, t) {
|
|
1751
|
+
return e && !Zr(t) ? es(e, t) : t;
|
|
1528
1752
|
}
|
|
1529
|
-
const
|
|
1753
|
+
const ts = F.isStandardBrowserEnv ? function() {
|
|
1530
1754
|
const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
|
|
1531
|
-
let
|
|
1532
|
-
function
|
|
1533
|
-
let o =
|
|
1755
|
+
let s;
|
|
1756
|
+
function n(a) {
|
|
1757
|
+
let o = a;
|
|
1534
1758
|
return t && (r.setAttribute("href", o), o = r.href), r.setAttribute("href", o), {
|
|
1535
1759
|
href: r.href,
|
|
1536
1760
|
protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
|
|
@@ -1542,26 +1766,26 @@ const en = T.isStandardBrowserEnv ? function() {
|
|
|
1542
1766
|
pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
|
|
1543
1767
|
};
|
|
1544
1768
|
}
|
|
1545
|
-
return
|
|
1546
|
-
const u =
|
|
1547
|
-
return u.protocol ===
|
|
1769
|
+
return s = n(window.location.href), function(o) {
|
|
1770
|
+
const u = i.isString(o) ? n(o) : o;
|
|
1771
|
+
return u.protocol === s.protocol && u.host === s.host;
|
|
1548
1772
|
};
|
|
1549
1773
|
}() : function() {
|
|
1550
1774
|
return function() {
|
|
1551
1775
|
return !0;
|
|
1552
1776
|
};
|
|
1553
1777
|
}();
|
|
1554
|
-
function
|
|
1778
|
+
function re(e, t, r) {
|
|
1555
1779
|
y.call(this, e == null ? "canceled" : e, y.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
1556
1780
|
}
|
|
1557
|
-
|
|
1781
|
+
i.inherits(re, y, {
|
|
1558
1782
|
__CANCEL__: !0
|
|
1559
1783
|
});
|
|
1560
|
-
function
|
|
1784
|
+
function rs(e) {
|
|
1561
1785
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1562
1786
|
return t && t[1] || "";
|
|
1563
1787
|
}
|
|
1564
|
-
const
|
|
1788
|
+
const ss = i.toObjectSet([
|
|
1565
1789
|
"age",
|
|
1566
1790
|
"authorization",
|
|
1567
1791
|
"content-length",
|
|
@@ -1579,210 +1803,210 @@ const rn = a.toObjectSet([
|
|
|
1579
1803
|
"referer",
|
|
1580
1804
|
"retry-after",
|
|
1581
1805
|
"user-agent"
|
|
1582
|
-
]),
|
|
1806
|
+
]), ns = (e) => {
|
|
1583
1807
|
const t = {};
|
|
1584
|
-
let r,
|
|
1808
|
+
let r, s, n;
|
|
1585
1809
|
return e && e.split(`
|
|
1586
1810
|
`).forEach(function(o) {
|
|
1587
|
-
|
|
1811
|
+
n = o.indexOf(":"), r = o.substring(0, n).trim().toLowerCase(), s = o.substring(n + 1).trim(), !(!r || t[r] && ss[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
|
|
1588
1812
|
}), t;
|
|
1589
|
-
},
|
|
1590
|
-
function
|
|
1813
|
+
}, Ze = Symbol("internals"), Ot = Symbol("defaults");
|
|
1814
|
+
function Q(e) {
|
|
1591
1815
|
return e && String(e).trim().toLowerCase();
|
|
1592
1816
|
}
|
|
1593
1817
|
function ie(e) {
|
|
1594
|
-
return e === !1 || e == null ? e :
|
|
1818
|
+
return e === !1 || e == null ? e : i.isArray(e) ? e.map(ie) : String(e);
|
|
1595
1819
|
}
|
|
1596
|
-
function
|
|
1820
|
+
function os(e) {
|
|
1597
1821
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1598
|
-
let
|
|
1599
|
-
for (;
|
|
1600
|
-
t[
|
|
1822
|
+
let s;
|
|
1823
|
+
for (; s = r.exec(e); )
|
|
1824
|
+
t[s[1]] = s[2];
|
|
1601
1825
|
return t;
|
|
1602
1826
|
}
|
|
1603
|
-
function
|
|
1604
|
-
if (
|
|
1605
|
-
return
|
|
1606
|
-
if (!!
|
|
1607
|
-
if (
|
|
1608
|
-
return t.indexOf(
|
|
1609
|
-
if (
|
|
1610
|
-
return
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
function
|
|
1614
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r,
|
|
1615
|
-
}
|
|
1616
|
-
function
|
|
1617
|
-
const r =
|
|
1618
|
-
["get", "set", "has"].forEach((
|
|
1619
|
-
Object.defineProperty(e,
|
|
1620
|
-
value: function(
|
|
1621
|
-
return this[
|
|
1827
|
+
function et(e, t, r, s) {
|
|
1828
|
+
if (i.isFunction(s))
|
|
1829
|
+
return s.call(this, t, r);
|
|
1830
|
+
if (!!i.isString(t)) {
|
|
1831
|
+
if (i.isString(s))
|
|
1832
|
+
return t.indexOf(s) !== -1;
|
|
1833
|
+
if (i.isRegExp(s))
|
|
1834
|
+
return s.test(t);
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
function as(e) {
|
|
1838
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
|
|
1839
|
+
}
|
|
1840
|
+
function is(e, t) {
|
|
1841
|
+
const r = i.toCamelCase(" " + t);
|
|
1842
|
+
["get", "set", "has"].forEach((s) => {
|
|
1843
|
+
Object.defineProperty(e, s + r, {
|
|
1844
|
+
value: function(n, a, o) {
|
|
1845
|
+
return this[s].call(this, t, n, a, o);
|
|
1622
1846
|
},
|
|
1623
1847
|
configurable: !0
|
|
1624
1848
|
});
|
|
1625
1849
|
});
|
|
1626
1850
|
}
|
|
1627
|
-
function
|
|
1851
|
+
function X(e, t) {
|
|
1628
1852
|
t = t.toLowerCase();
|
|
1629
1853
|
const r = Object.keys(e);
|
|
1630
|
-
let
|
|
1631
|
-
for (;
|
|
1632
|
-
if (
|
|
1633
|
-
return
|
|
1854
|
+
let s = r.length, n;
|
|
1855
|
+
for (; s-- > 0; )
|
|
1856
|
+
if (n = r[s], t === n.toLowerCase())
|
|
1857
|
+
return n;
|
|
1634
1858
|
return null;
|
|
1635
1859
|
}
|
|
1636
1860
|
function R(e, t) {
|
|
1637
|
-
e && this.set(e), this[
|
|
1861
|
+
e && this.set(e), this[Ot] = t || null;
|
|
1638
1862
|
}
|
|
1639
1863
|
Object.assign(R.prototype, {
|
|
1640
1864
|
set: function(e, t, r) {
|
|
1641
|
-
const
|
|
1642
|
-
function
|
|
1643
|
-
const
|
|
1644
|
-
if (!
|
|
1865
|
+
const s = this;
|
|
1866
|
+
function n(a, o, u) {
|
|
1867
|
+
const d = Q(o);
|
|
1868
|
+
if (!d)
|
|
1645
1869
|
throw new Error("header name must be a non-empty string");
|
|
1646
|
-
const c =
|
|
1647
|
-
c && u !== !0 && (
|
|
1870
|
+
const c = X(s, d);
|
|
1871
|
+
c && u !== !0 && (s[c] === !1 || u === !1) || (s[c || o] = ie(a));
|
|
1648
1872
|
}
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1651
|
-
}) :
|
|
1873
|
+
return i.isPlainObject(e) ? i.forEach(e, (a, o) => {
|
|
1874
|
+
n(a, o, t);
|
|
1875
|
+
}) : n(t, e, r), this;
|
|
1652
1876
|
},
|
|
1653
1877
|
get: function(e, t) {
|
|
1654
|
-
if (e =
|
|
1878
|
+
if (e = Q(e), !e)
|
|
1655
1879
|
return;
|
|
1656
|
-
const r =
|
|
1880
|
+
const r = X(this, e);
|
|
1657
1881
|
if (r) {
|
|
1658
|
-
const
|
|
1882
|
+
const s = this[r];
|
|
1659
1883
|
if (!t)
|
|
1660
|
-
return
|
|
1884
|
+
return s;
|
|
1661
1885
|
if (t === !0)
|
|
1662
|
-
return
|
|
1663
|
-
if (
|
|
1664
|
-
return t.call(this,
|
|
1665
|
-
if (
|
|
1666
|
-
return t.exec(
|
|
1886
|
+
return os(s);
|
|
1887
|
+
if (i.isFunction(t))
|
|
1888
|
+
return t.call(this, s, r);
|
|
1889
|
+
if (i.isRegExp(t))
|
|
1890
|
+
return t.exec(s);
|
|
1667
1891
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1668
1892
|
}
|
|
1669
1893
|
},
|
|
1670
1894
|
has: function(e, t) {
|
|
1671
|
-
if (e =
|
|
1672
|
-
const r =
|
|
1673
|
-
return !!(r && (!t ||
|
|
1895
|
+
if (e = Q(e), e) {
|
|
1896
|
+
const r = X(this, e);
|
|
1897
|
+
return !!(r && (!t || et(this, this[r], r, t)));
|
|
1674
1898
|
}
|
|
1675
1899
|
return !1;
|
|
1676
1900
|
},
|
|
1677
1901
|
delete: function(e, t) {
|
|
1678
1902
|
const r = this;
|
|
1679
|
-
let
|
|
1680
|
-
function
|
|
1681
|
-
if (
|
|
1682
|
-
const o =
|
|
1683
|
-
o && (!t ||
|
|
1903
|
+
let s = !1;
|
|
1904
|
+
function n(a) {
|
|
1905
|
+
if (a = Q(a), a) {
|
|
1906
|
+
const o = X(r, a);
|
|
1907
|
+
o && (!t || et(r, r[o], o, t)) && (delete r[o], s = !0);
|
|
1684
1908
|
}
|
|
1685
1909
|
}
|
|
1686
|
-
return
|
|
1910
|
+
return i.isArray(e) ? e.forEach(n) : n(e), s;
|
|
1687
1911
|
},
|
|
1688
1912
|
clear: function() {
|
|
1689
1913
|
return Object.keys(this).forEach(this.delete.bind(this));
|
|
1690
1914
|
},
|
|
1691
1915
|
normalize: function(e) {
|
|
1692
1916
|
const t = this, r = {};
|
|
1693
|
-
return
|
|
1694
|
-
const
|
|
1695
|
-
if (
|
|
1696
|
-
t[
|
|
1917
|
+
return i.forEach(this, (s, n) => {
|
|
1918
|
+
const a = X(r, n);
|
|
1919
|
+
if (a) {
|
|
1920
|
+
t[a] = ie(s), delete t[n];
|
|
1697
1921
|
return;
|
|
1698
1922
|
}
|
|
1699
|
-
const o = e ?
|
|
1700
|
-
o !==
|
|
1923
|
+
const o = e ? as(n) : String(n).trim();
|
|
1924
|
+
o !== n && delete t[n], t[o] = ie(s), r[o] = !0;
|
|
1701
1925
|
}), this;
|
|
1702
1926
|
},
|
|
1703
1927
|
toJSON: function(e) {
|
|
1704
1928
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1705
|
-
return
|
|
1706
|
-
Object.assign({}, this[
|
|
1707
|
-
(r,
|
|
1708
|
-
r == null || r === !1 || (t[
|
|
1929
|
+
return i.forEach(
|
|
1930
|
+
Object.assign({}, this[Ot] || null, this),
|
|
1931
|
+
(r, s) => {
|
|
1932
|
+
r == null || r === !1 || (t[s] = e && i.isArray(r) ? r.join(", ") : r);
|
|
1709
1933
|
}
|
|
1710
1934
|
), t;
|
|
1711
1935
|
}
|
|
1712
1936
|
});
|
|
1713
1937
|
Object.assign(R, {
|
|
1714
1938
|
from: function(e) {
|
|
1715
|
-
return
|
|
1939
|
+
return i.isString(e) ? new this(ns(e)) : e instanceof this ? e : new this(e);
|
|
1716
1940
|
},
|
|
1717
1941
|
accessor: function(e) {
|
|
1718
|
-
const r = (this[
|
|
1942
|
+
const r = (this[Ze] = this[Ze] = {
|
|
1719
1943
|
accessors: {}
|
|
1720
|
-
}).accessors,
|
|
1721
|
-
function
|
|
1722
|
-
const o =
|
|
1723
|
-
r[o] || (
|
|
1944
|
+
}).accessors, s = this.prototype;
|
|
1945
|
+
function n(a) {
|
|
1946
|
+
const o = Q(a);
|
|
1947
|
+
r[o] || (is(s, a), r[o] = !0);
|
|
1724
1948
|
}
|
|
1725
|
-
return
|
|
1949
|
+
return i.isArray(e) ? e.forEach(n) : n(e), this;
|
|
1726
1950
|
}
|
|
1727
1951
|
});
|
|
1728
1952
|
R.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent"]);
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
function
|
|
1953
|
+
i.freezeMethods(R.prototype);
|
|
1954
|
+
i.freezeMethods(R);
|
|
1955
|
+
function cs(e, t) {
|
|
1732
1956
|
e = e || 10;
|
|
1733
|
-
const r = new Array(e),
|
|
1734
|
-
let
|
|
1735
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
1736
|
-
const c = Date.now(),
|
|
1737
|
-
o || (o = c), r[
|
|
1738
|
-
let m =
|
|
1739
|
-
for (; m !==
|
|
1957
|
+
const r = new Array(e), s = new Array(e);
|
|
1958
|
+
let n = 0, a = 0, o;
|
|
1959
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
1960
|
+
const c = Date.now(), f = s[a];
|
|
1961
|
+
o || (o = c), r[n] = d, s[n] = c;
|
|
1962
|
+
let m = a, g = 0;
|
|
1963
|
+
for (; m !== n; )
|
|
1740
1964
|
g += r[m++], m = m % e;
|
|
1741
|
-
if (
|
|
1965
|
+
if (n = (n + 1) % e, n === a && (a = (a + 1) % e), c - o < t)
|
|
1742
1966
|
return;
|
|
1743
|
-
const h =
|
|
1967
|
+
const h = f && c - f;
|
|
1744
1968
|
return h ? Math.round(g * 1e3 / h) : void 0;
|
|
1745
1969
|
};
|
|
1746
1970
|
}
|
|
1747
|
-
function
|
|
1971
|
+
function tt(e, t) {
|
|
1748
1972
|
let r = 0;
|
|
1749
|
-
const
|
|
1750
|
-
return (
|
|
1751
|
-
const
|
|
1752
|
-
r =
|
|
1753
|
-
const
|
|
1754
|
-
loaded:
|
|
1973
|
+
const s = cs(50, 250);
|
|
1974
|
+
return (n) => {
|
|
1975
|
+
const a = n.loaded, o = n.lengthComputable ? n.total : void 0, u = a - r, d = s(u), c = a <= o;
|
|
1976
|
+
r = a;
|
|
1977
|
+
const f = {
|
|
1978
|
+
loaded: a,
|
|
1755
1979
|
total: o,
|
|
1756
|
-
progress: o ?
|
|
1980
|
+
progress: o ? a / o : void 0,
|
|
1757
1981
|
bytes: u,
|
|
1758
|
-
rate:
|
|
1759
|
-
estimated:
|
|
1982
|
+
rate: d || void 0,
|
|
1983
|
+
estimated: d && o && c ? (o - a) / d : void 0
|
|
1760
1984
|
};
|
|
1761
|
-
|
|
1985
|
+
f[t ? "download" : "upload"] = !0, e(f);
|
|
1762
1986
|
};
|
|
1763
1987
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return new Promise(function(r,
|
|
1766
|
-
let
|
|
1767
|
-
const
|
|
1988
|
+
function rt(e) {
|
|
1989
|
+
return new Promise(function(r, s) {
|
|
1990
|
+
let n = e.data;
|
|
1991
|
+
const a = R.from(e.headers).normalize(), o = e.responseType;
|
|
1768
1992
|
let u;
|
|
1769
|
-
function
|
|
1993
|
+
function d() {
|
|
1770
1994
|
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
1771
1995
|
}
|
|
1772
|
-
|
|
1996
|
+
i.isFormData(n) && F.isStandardBrowserEnv && a.setContentType(!1);
|
|
1773
1997
|
let c = new XMLHttpRequest();
|
|
1774
1998
|
if (e.auth) {
|
|
1775
1999
|
const h = e.auth.username || "", l = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
1776
|
-
|
|
2000
|
+
a.set("Authorization", "Basic " + btoa(h + ":" + l));
|
|
1777
2001
|
}
|
|
1778
|
-
const
|
|
1779
|
-
c.open(e.method.toUpperCase(), Nt(
|
|
2002
|
+
const f = At(e.baseURL, e.url);
|
|
2003
|
+
c.open(e.method.toUpperCase(), Nt(f, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
|
|
1780
2004
|
function m() {
|
|
1781
2005
|
if (!c)
|
|
1782
2006
|
return;
|
|
1783
2007
|
const h = R.from(
|
|
1784
2008
|
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
1785
|
-
),
|
|
2009
|
+
), k = {
|
|
1786
2010
|
data: !o || o === "text" || o === "json" ? c.responseText : c.response,
|
|
1787
2011
|
status: c.status,
|
|
1788
2012
|
statusText: c.statusText,
|
|
@@ -1790,111 +2014,111 @@ function et(e) {
|
|
|
1790
2014
|
config: e,
|
|
1791
2015
|
request: c
|
|
1792
2016
|
};
|
|
1793
|
-
|
|
1794
|
-
r(
|
|
1795
|
-
}, function(
|
|
1796
|
-
|
|
1797
|
-
},
|
|
2017
|
+
Qr(function(S) {
|
|
2018
|
+
r(S), d();
|
|
2019
|
+
}, function(S) {
|
|
2020
|
+
s(S), d();
|
|
2021
|
+
}, k), c = null;
|
|
1798
2022
|
}
|
|
1799
2023
|
if ("onloadend" in c ? c.onloadend = m : c.onreadystatechange = function() {
|
|
1800
2024
|
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(m);
|
|
1801
2025
|
}, c.onabort = function() {
|
|
1802
|
-
!c || (
|
|
2026
|
+
!c || (s(new y("Request aborted", y.ECONNABORTED, e, c)), c = null);
|
|
1803
2027
|
}, c.onerror = function() {
|
|
1804
|
-
|
|
2028
|
+
s(new y("Network Error", y.ERR_NETWORK, e, c)), c = null;
|
|
1805
2029
|
}, c.ontimeout = function() {
|
|
1806
2030
|
let l = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
1807
|
-
const
|
|
1808
|
-
e.timeoutErrorMessage && (l = e.timeoutErrorMessage),
|
|
2031
|
+
const k = e.transitional || St;
|
|
2032
|
+
e.timeoutErrorMessage && (l = e.timeoutErrorMessage), s(new y(
|
|
1809
2033
|
l,
|
|
1810
|
-
|
|
2034
|
+
k.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1811
2035
|
e,
|
|
1812
2036
|
c
|
|
1813
2037
|
)), c = null;
|
|
1814
|
-
},
|
|
1815
|
-
const h = (e.withCredentials ||
|
|
1816
|
-
h &&
|
|
2038
|
+
}, F.isStandardBrowserEnv) {
|
|
2039
|
+
const h = (e.withCredentials || ts(f)) && e.xsrfCookieName && Yr.read(e.xsrfCookieName);
|
|
2040
|
+
h && a.set(e.xsrfHeaderName, h);
|
|
1817
2041
|
}
|
|
1818
|
-
|
|
1819
|
-
c.setRequestHeader(
|
|
1820
|
-
}),
|
|
1821
|
-
!c || (
|
|
2042
|
+
n === void 0 && a.setContentType(null), "setRequestHeader" in c && i.forEach(a.toJSON(), function(l, k) {
|
|
2043
|
+
c.setRequestHeader(k, l);
|
|
2044
|
+
}), i.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), o && o !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", tt(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", tt(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (h) => {
|
|
2045
|
+
!c || (s(!h || h.type ? new re(null, e, c) : h), c.abort(), c = null);
|
|
1822
2046
|
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
1823
|
-
const g =
|
|
1824
|
-
if (g &&
|
|
1825
|
-
|
|
2047
|
+
const g = rs(f);
|
|
2048
|
+
if (g && F.protocols.indexOf(g) === -1) {
|
|
2049
|
+
s(new y("Unsupported protocol " + g + ":", y.ERR_BAD_REQUEST, e));
|
|
1826
2050
|
return;
|
|
1827
2051
|
}
|
|
1828
|
-
c.send(
|
|
2052
|
+
c.send(n || null);
|
|
1829
2053
|
});
|
|
1830
2054
|
}
|
|
1831
|
-
const
|
|
1832
|
-
http:
|
|
1833
|
-
xhr:
|
|
1834
|
-
},
|
|
2055
|
+
const st = {
|
|
2056
|
+
http: rt,
|
|
2057
|
+
xhr: rt
|
|
2058
|
+
}, nt = {
|
|
1835
2059
|
getAdapter: (e) => {
|
|
1836
|
-
if (
|
|
1837
|
-
const t =
|
|
2060
|
+
if (i.isString(e)) {
|
|
2061
|
+
const t = st[e];
|
|
1838
2062
|
if (!e)
|
|
1839
2063
|
throw Error(
|
|
1840
|
-
|
|
2064
|
+
i.hasOwnProp(e) ? `Adapter '${e}' is not available in the build` : `Can not resolve adapter '${e}'`
|
|
1841
2065
|
);
|
|
1842
2066
|
return t;
|
|
1843
2067
|
}
|
|
1844
|
-
if (!
|
|
2068
|
+
if (!i.isFunction(e))
|
|
1845
2069
|
throw new TypeError("adapter is not a function");
|
|
1846
2070
|
return e;
|
|
1847
2071
|
},
|
|
1848
|
-
adapters:
|
|
1849
|
-
},
|
|
2072
|
+
adapters: st
|
|
2073
|
+
}, us = {
|
|
1850
2074
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
1851
2075
|
};
|
|
1852
|
-
function
|
|
2076
|
+
function ls() {
|
|
1853
2077
|
let e;
|
|
1854
|
-
return typeof XMLHttpRequest < "u" ? e =
|
|
2078
|
+
return typeof XMLHttpRequest < "u" ? e = nt.getAdapter("xhr") : typeof process < "u" && i.kindOf(process) === "process" && (e = nt.getAdapter("http")), e;
|
|
1855
2079
|
}
|
|
1856
|
-
function
|
|
1857
|
-
if (
|
|
2080
|
+
function ds(e, t, r) {
|
|
2081
|
+
if (i.isString(e))
|
|
1858
2082
|
try {
|
|
1859
|
-
return (t || JSON.parse)(e),
|
|
1860
|
-
} catch (
|
|
1861
|
-
if (
|
|
1862
|
-
throw
|
|
2083
|
+
return (t || JSON.parse)(e), i.trim(e);
|
|
2084
|
+
} catch (s) {
|
|
2085
|
+
if (s.name !== "SyntaxError")
|
|
2086
|
+
throw s;
|
|
1863
2087
|
}
|
|
1864
2088
|
return (r || JSON.stringify)(e);
|
|
1865
2089
|
}
|
|
1866
2090
|
const H = {
|
|
1867
2091
|
transitional: St,
|
|
1868
|
-
adapter:
|
|
2092
|
+
adapter: ls(),
|
|
1869
2093
|
transformRequest: [function(t, r) {
|
|
1870
|
-
const
|
|
1871
|
-
if (
|
|
1872
|
-
return
|
|
1873
|
-
if (
|
|
2094
|
+
const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, a = i.isObject(t);
|
|
2095
|
+
if (a && i.isHTMLForm(t) && (t = new FormData(t)), i.isFormData(t))
|
|
2096
|
+
return n && n ? JSON.stringify(vt(t)) : t;
|
|
2097
|
+
if (i.isArrayBuffer(t) || i.isBuffer(t) || i.isStream(t) || i.isFile(t) || i.isBlob(t))
|
|
1874
2098
|
return t;
|
|
1875
|
-
if (
|
|
2099
|
+
if (i.isArrayBufferView(t))
|
|
1876
2100
|
return t.buffer;
|
|
1877
|
-
if (
|
|
2101
|
+
if (i.isURLSearchParams(t))
|
|
1878
2102
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1879
2103
|
let u;
|
|
1880
|
-
if (
|
|
1881
|
-
if (
|
|
1882
|
-
return
|
|
1883
|
-
if ((u =
|
|
1884
|
-
const
|
|
1885
|
-
return
|
|
2104
|
+
if (a) {
|
|
2105
|
+
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2106
|
+
return Xr(t, this.formSerializer).toString();
|
|
2107
|
+
if ((u = i.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
2108
|
+
const d = this.env && this.env.FormData;
|
|
2109
|
+
return de(
|
|
1886
2110
|
u ? { "files[]": t } : t,
|
|
1887
|
-
|
|
2111
|
+
d && new d(),
|
|
1888
2112
|
this.formSerializer
|
|
1889
2113
|
);
|
|
1890
2114
|
}
|
|
1891
2115
|
}
|
|
1892
|
-
return
|
|
2116
|
+
return a || n ? (r.setContentType("application/json", !1), ds(t)) : t;
|
|
1893
2117
|
}],
|
|
1894
2118
|
transformResponse: [function(t) {
|
|
1895
|
-
const r = this.transitional || H.transitional,
|
|
1896
|
-
if (t &&
|
|
1897
|
-
const o = !(r && r.silentJSONParsing) &&
|
|
2119
|
+
const r = this.transitional || H.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
|
|
2120
|
+
if (t && i.isString(t) && (s && !this.responseType || n)) {
|
|
2121
|
+
const o = !(r && r.silentJSONParsing) && n;
|
|
1898
2122
|
try {
|
|
1899
2123
|
return JSON.parse(t);
|
|
1900
2124
|
} catch (u) {
|
|
@@ -1910,8 +2134,8 @@ const H = {
|
|
|
1910
2134
|
maxContentLength: -1,
|
|
1911
2135
|
maxBodyLength: -1,
|
|
1912
2136
|
env: {
|
|
1913
|
-
FormData:
|
|
1914
|
-
Blob:
|
|
2137
|
+
FormData: F.classes.FormData,
|
|
2138
|
+
Blob: F.classes.Blob
|
|
1915
2139
|
},
|
|
1916
2140
|
validateStatus: function(t) {
|
|
1917
2141
|
return t >= 200 && t < 300;
|
|
@@ -1922,78 +2146,78 @@ const H = {
|
|
|
1922
2146
|
}
|
|
1923
2147
|
}
|
|
1924
2148
|
};
|
|
1925
|
-
|
|
2149
|
+
i.forEach(["delete", "get", "head"], function(t) {
|
|
1926
2150
|
H.headers[t] = {};
|
|
1927
2151
|
});
|
|
1928
|
-
|
|
1929
|
-
H.headers[t] =
|
|
2152
|
+
i.forEach(["post", "put", "patch"], function(t) {
|
|
2153
|
+
H.headers[t] = i.merge(us);
|
|
1930
2154
|
});
|
|
1931
|
-
function
|
|
1932
|
-
const r = this || H,
|
|
1933
|
-
let
|
|
1934
|
-
return
|
|
1935
|
-
|
|
1936
|
-
}),
|
|
2155
|
+
function Oe(e, t) {
|
|
2156
|
+
const r = this || H, s = t || r, n = R.from(s.headers);
|
|
2157
|
+
let a = s.data;
|
|
2158
|
+
return i.forEach(e, function(u) {
|
|
2159
|
+
a = u.call(r, a, n.normalize(), t ? t.status : void 0);
|
|
2160
|
+
}), n.normalize(), a;
|
|
1937
2161
|
}
|
|
1938
|
-
function
|
|
2162
|
+
function _t(e) {
|
|
1939
2163
|
return !!(e && e.__CANCEL__);
|
|
1940
2164
|
}
|
|
1941
|
-
function
|
|
2165
|
+
function _e(e) {
|
|
1942
2166
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1943
|
-
throw new
|
|
2167
|
+
throw new re();
|
|
1944
2168
|
}
|
|
1945
|
-
function
|
|
1946
|
-
return
|
|
2169
|
+
function ot(e) {
|
|
2170
|
+
return _e(e), e.headers = R.from(e.headers), e.data = Oe.call(
|
|
1947
2171
|
e,
|
|
1948
2172
|
e.transformRequest
|
|
1949
|
-
), (e.adapter || H.adapter)(e).then(function(
|
|
1950
|
-
return
|
|
2173
|
+
), (e.adapter || H.adapter)(e).then(function(s) {
|
|
2174
|
+
return _e(e), s.data = Oe.call(
|
|
1951
2175
|
e,
|
|
1952
2176
|
e.transformResponse,
|
|
1953
|
-
|
|
1954
|
-
),
|
|
1955
|
-
}, function(
|
|
1956
|
-
return
|
|
2177
|
+
s
|
|
2178
|
+
), s.headers = R.from(s.headers), s;
|
|
2179
|
+
}, function(s) {
|
|
2180
|
+
return _t(s) || (_e(e), s && s.response && (s.response.data = Oe.call(
|
|
1957
2181
|
e,
|
|
1958
2182
|
e.transformResponse,
|
|
1959
|
-
|
|
1960
|
-
),
|
|
2183
|
+
s.response
|
|
2184
|
+
), s.response.headers = R.from(s.response.headers))), Promise.reject(s);
|
|
1961
2185
|
});
|
|
1962
2186
|
}
|
|
1963
|
-
function
|
|
2187
|
+
function ee(e, t) {
|
|
1964
2188
|
t = t || {};
|
|
1965
2189
|
const r = {};
|
|
1966
|
-
function
|
|
1967
|
-
return
|
|
2190
|
+
function s(c, f) {
|
|
2191
|
+
return i.isPlainObject(c) && i.isPlainObject(f) ? i.merge(c, f) : i.isPlainObject(f) ? i.merge({}, f) : i.isArray(f) ? f.slice() : f;
|
|
1968
2192
|
}
|
|
1969
|
-
function
|
|
1970
|
-
if (
|
|
1971
|
-
if (!
|
|
1972
|
-
return
|
|
2193
|
+
function n(c) {
|
|
2194
|
+
if (i.isUndefined(t[c])) {
|
|
2195
|
+
if (!i.isUndefined(e[c]))
|
|
2196
|
+
return s(void 0, e[c]);
|
|
1973
2197
|
} else
|
|
1974
|
-
return
|
|
2198
|
+
return s(e[c], t[c]);
|
|
1975
2199
|
}
|
|
1976
|
-
function
|
|
1977
|
-
if (!
|
|
1978
|
-
return
|
|
2200
|
+
function a(c) {
|
|
2201
|
+
if (!i.isUndefined(t[c]))
|
|
2202
|
+
return s(void 0, t[c]);
|
|
1979
2203
|
}
|
|
1980
2204
|
function o(c) {
|
|
1981
|
-
if (
|
|
1982
|
-
if (!
|
|
1983
|
-
return
|
|
2205
|
+
if (i.isUndefined(t[c])) {
|
|
2206
|
+
if (!i.isUndefined(e[c]))
|
|
2207
|
+
return s(void 0, e[c]);
|
|
1984
2208
|
} else
|
|
1985
|
-
return
|
|
2209
|
+
return s(void 0, t[c]);
|
|
1986
2210
|
}
|
|
1987
2211
|
function u(c) {
|
|
1988
2212
|
if (c in t)
|
|
1989
|
-
return
|
|
2213
|
+
return s(e[c], t[c]);
|
|
1990
2214
|
if (c in e)
|
|
1991
|
-
return
|
|
2215
|
+
return s(void 0, e[c]);
|
|
1992
2216
|
}
|
|
1993
|
-
const
|
|
1994
|
-
url:
|
|
1995
|
-
method:
|
|
1996
|
-
data:
|
|
2217
|
+
const d = {
|
|
2218
|
+
url: a,
|
|
2219
|
+
method: a,
|
|
2220
|
+
data: a,
|
|
1997
2221
|
baseURL: o,
|
|
1998
2222
|
transformRequest: o,
|
|
1999
2223
|
transformResponse: o,
|
|
@@ -2019,177 +2243,177 @@ function Z(e, t) {
|
|
|
2019
2243
|
responseEncoding: o,
|
|
2020
2244
|
validateStatus: u
|
|
2021
2245
|
};
|
|
2022
|
-
return
|
|
2023
|
-
const m = f
|
|
2024
|
-
|
|
2246
|
+
return i.forEach(Object.keys(e).concat(Object.keys(t)), function(f) {
|
|
2247
|
+
const m = d[f] || n, g = m(f);
|
|
2248
|
+
i.isUndefined(g) && m !== u || (r[f] = g);
|
|
2025
2249
|
}), r;
|
|
2026
2250
|
}
|
|
2027
|
-
const Rt = "1.1.3",
|
|
2251
|
+
const Rt = "1.1.3", Ie = {};
|
|
2028
2252
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2029
|
-
|
|
2030
|
-
return typeof
|
|
2253
|
+
Ie[e] = function(s) {
|
|
2254
|
+
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2031
2255
|
};
|
|
2032
2256
|
});
|
|
2033
|
-
const
|
|
2034
|
-
|
|
2035
|
-
function
|
|
2036
|
-
return "[Axios v" + Rt + "] Transitional option '" +
|
|
2257
|
+
const at = {};
|
|
2258
|
+
Ie.transitional = function(t, r, s) {
|
|
2259
|
+
function n(a, o) {
|
|
2260
|
+
return "[Axios v" + Rt + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
|
|
2037
2261
|
}
|
|
2038
|
-
return (
|
|
2262
|
+
return (a, o, u) => {
|
|
2039
2263
|
if (t === !1)
|
|
2040
2264
|
throw new y(
|
|
2041
|
-
|
|
2265
|
+
n(o, " has been removed" + (r ? " in " + r : "")),
|
|
2042
2266
|
y.ERR_DEPRECATED
|
|
2043
2267
|
);
|
|
2044
|
-
return r && !
|
|
2045
|
-
|
|
2268
|
+
return r && !at[o] && (at[o] = !0, console.warn(
|
|
2269
|
+
n(
|
|
2046
2270
|
o,
|
|
2047
2271
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
2048
2272
|
)
|
|
2049
|
-
)), t ? t(
|
|
2273
|
+
)), t ? t(a, o, u) : !0;
|
|
2050
2274
|
};
|
|
2051
2275
|
};
|
|
2052
|
-
function
|
|
2276
|
+
function fs(e, t, r) {
|
|
2053
2277
|
if (typeof e != "object")
|
|
2054
2278
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
2055
|
-
const
|
|
2056
|
-
let
|
|
2057
|
-
for (;
|
|
2058
|
-
const
|
|
2279
|
+
const s = Object.keys(e);
|
|
2280
|
+
let n = s.length;
|
|
2281
|
+
for (; n-- > 0; ) {
|
|
2282
|
+
const a = s[n], o = t[a];
|
|
2059
2283
|
if (o) {
|
|
2060
|
-
const u = e[
|
|
2061
|
-
if (
|
|
2062
|
-
throw new y("option " +
|
|
2284
|
+
const u = e[a], d = u === void 0 || o(u, a, e);
|
|
2285
|
+
if (d !== !0)
|
|
2286
|
+
throw new y("option " + a + " must be " + d, y.ERR_BAD_OPTION_VALUE);
|
|
2063
2287
|
continue;
|
|
2064
2288
|
}
|
|
2065
2289
|
if (r !== !0)
|
|
2066
|
-
throw new y("Unknown option " +
|
|
2290
|
+
throw new y("Unknown option " + a, y.ERR_BAD_OPTION);
|
|
2067
2291
|
}
|
|
2068
2292
|
}
|
|
2069
|
-
const
|
|
2070
|
-
assertOptions:
|
|
2071
|
-
validators:
|
|
2072
|
-
},
|
|
2293
|
+
const Fe = {
|
|
2294
|
+
assertOptions: fs,
|
|
2295
|
+
validators: Ie
|
|
2296
|
+
}, V = Fe.validators;
|
|
2073
2297
|
class I {
|
|
2074
2298
|
constructor(t) {
|
|
2075
2299
|
this.defaults = t, this.interceptors = {
|
|
2076
|
-
request: new
|
|
2077
|
-
response: new
|
|
2300
|
+
request: new Ye(),
|
|
2301
|
+
response: new Ye()
|
|
2078
2302
|
};
|
|
2079
2303
|
}
|
|
2080
2304
|
request(t, r) {
|
|
2081
|
-
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r =
|
|
2082
|
-
const { transitional:
|
|
2083
|
-
|
|
2084
|
-
silentJSONParsing:
|
|
2085
|
-
forcedJSONParsing:
|
|
2086
|
-
clarifyTimeoutError:
|
|
2087
|
-
}, !1),
|
|
2088
|
-
encode:
|
|
2089
|
-
serialize:
|
|
2305
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ee(this.defaults, r);
|
|
2306
|
+
const { transitional: s, paramsSerializer: n } = r;
|
|
2307
|
+
s !== void 0 && Fe.assertOptions(s, {
|
|
2308
|
+
silentJSONParsing: V.transitional(V.boolean),
|
|
2309
|
+
forcedJSONParsing: V.transitional(V.boolean),
|
|
2310
|
+
clarifyTimeoutError: V.transitional(V.boolean)
|
|
2311
|
+
}, !1), n !== void 0 && Fe.assertOptions(n, {
|
|
2312
|
+
encode: V.function,
|
|
2313
|
+
serialize: V.function
|
|
2090
2314
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
2091
|
-
const
|
|
2315
|
+
const a = r.headers && i.merge(
|
|
2092
2316
|
r.headers.common,
|
|
2093
2317
|
r.headers[r.method]
|
|
2094
2318
|
);
|
|
2095
|
-
|
|
2319
|
+
a && i.forEach(
|
|
2096
2320
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2097
2321
|
function(l) {
|
|
2098
2322
|
delete r.headers[l];
|
|
2099
2323
|
}
|
|
2100
|
-
), r.headers = new R(r.headers,
|
|
2324
|
+
), r.headers = new R(r.headers, a);
|
|
2101
2325
|
const o = [];
|
|
2102
2326
|
let u = !0;
|
|
2103
2327
|
this.interceptors.request.forEach(function(l) {
|
|
2104
2328
|
typeof l.runWhen == "function" && l.runWhen(r) === !1 || (u = u && l.synchronous, o.unshift(l.fulfilled, l.rejected));
|
|
2105
2329
|
});
|
|
2106
|
-
const
|
|
2330
|
+
const d = [];
|
|
2107
2331
|
this.interceptors.response.forEach(function(l) {
|
|
2108
|
-
|
|
2332
|
+
d.push(l.fulfilled, l.rejected);
|
|
2109
2333
|
});
|
|
2110
|
-
let c,
|
|
2334
|
+
let c, f = 0, m;
|
|
2111
2335
|
if (!u) {
|
|
2112
|
-
const h = [
|
|
2113
|
-
for (h.unshift.apply(h, o), h.push.apply(h,
|
|
2114
|
-
c = c.then(h[
|
|
2336
|
+
const h = [ot.bind(this), void 0];
|
|
2337
|
+
for (h.unshift.apply(h, o), h.push.apply(h, d), m = h.length, c = Promise.resolve(r); f < m; )
|
|
2338
|
+
c = c.then(h[f++], h[f++]);
|
|
2115
2339
|
return c;
|
|
2116
2340
|
}
|
|
2117
2341
|
m = o.length;
|
|
2118
2342
|
let g = r;
|
|
2119
|
-
for (
|
|
2120
|
-
const h = o[
|
|
2343
|
+
for (f = 0; f < m; ) {
|
|
2344
|
+
const h = o[f++], l = o[f++];
|
|
2121
2345
|
try {
|
|
2122
2346
|
g = h(g);
|
|
2123
|
-
} catch (
|
|
2124
|
-
l.call(this,
|
|
2347
|
+
} catch (k) {
|
|
2348
|
+
l.call(this, k);
|
|
2125
2349
|
break;
|
|
2126
2350
|
}
|
|
2127
2351
|
}
|
|
2128
2352
|
try {
|
|
2129
|
-
c =
|
|
2353
|
+
c = ot.call(this, g);
|
|
2130
2354
|
} catch (h) {
|
|
2131
2355
|
return Promise.reject(h);
|
|
2132
2356
|
}
|
|
2133
|
-
for (
|
|
2134
|
-
c = c.then(f
|
|
2357
|
+
for (f = 0, m = d.length; f < m; )
|
|
2358
|
+
c = c.then(d[f++], d[f++]);
|
|
2135
2359
|
return c;
|
|
2136
2360
|
}
|
|
2137
2361
|
getUri(t) {
|
|
2138
|
-
t =
|
|
2139
|
-
const r =
|
|
2362
|
+
t = ee(this.defaults, t);
|
|
2363
|
+
const r = At(t.baseURL, t.url);
|
|
2140
2364
|
return Nt(r, t.params, t.paramsSerializer);
|
|
2141
2365
|
}
|
|
2142
2366
|
}
|
|
2143
|
-
|
|
2144
|
-
I.prototype[t] = function(r,
|
|
2145
|
-
return this.request(
|
|
2367
|
+
i.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2368
|
+
I.prototype[t] = function(r, s) {
|
|
2369
|
+
return this.request(ee(s || {}, {
|
|
2146
2370
|
method: t,
|
|
2147
2371
|
url: r,
|
|
2148
|
-
data: (
|
|
2372
|
+
data: (s || {}).data
|
|
2149
2373
|
}));
|
|
2150
2374
|
};
|
|
2151
2375
|
});
|
|
2152
|
-
|
|
2153
|
-
function r(
|
|
2154
|
-
return function(
|
|
2155
|
-
return this.request(
|
|
2376
|
+
i.forEach(["post", "put", "patch"], function(t) {
|
|
2377
|
+
function r(s) {
|
|
2378
|
+
return function(a, o, u) {
|
|
2379
|
+
return this.request(ee(u || {}, {
|
|
2156
2380
|
method: t,
|
|
2157
|
-
headers:
|
|
2381
|
+
headers: s ? {
|
|
2158
2382
|
"Content-Type": "multipart/form-data"
|
|
2159
2383
|
} : {},
|
|
2160
|
-
url:
|
|
2384
|
+
url: a,
|
|
2161
2385
|
data: o
|
|
2162
2386
|
}));
|
|
2163
2387
|
};
|
|
2164
2388
|
}
|
|
2165
2389
|
I.prototype[t] = r(), I.prototype[t + "Form"] = r(!0);
|
|
2166
2390
|
});
|
|
2167
|
-
class
|
|
2391
|
+
class Me {
|
|
2168
2392
|
constructor(t) {
|
|
2169
2393
|
if (typeof t != "function")
|
|
2170
2394
|
throw new TypeError("executor must be a function.");
|
|
2171
2395
|
let r;
|
|
2172
|
-
this.promise = new Promise(function(
|
|
2173
|
-
r =
|
|
2396
|
+
this.promise = new Promise(function(a) {
|
|
2397
|
+
r = a;
|
|
2174
2398
|
});
|
|
2175
|
-
const
|
|
2176
|
-
this.promise.then((
|
|
2177
|
-
if (!
|
|
2399
|
+
const s = this;
|
|
2400
|
+
this.promise.then((n) => {
|
|
2401
|
+
if (!s._listeners)
|
|
2178
2402
|
return;
|
|
2179
|
-
let
|
|
2180
|
-
for (;
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
}), this.promise.then = (
|
|
2184
|
-
let
|
|
2403
|
+
let a = s._listeners.length;
|
|
2404
|
+
for (; a-- > 0; )
|
|
2405
|
+
s._listeners[a](n);
|
|
2406
|
+
s._listeners = null;
|
|
2407
|
+
}), this.promise.then = (n) => {
|
|
2408
|
+
let a;
|
|
2185
2409
|
const o = new Promise((u) => {
|
|
2186
|
-
|
|
2187
|
-
}).then(
|
|
2410
|
+
s.subscribe(u), a = u;
|
|
2411
|
+
}).then(n);
|
|
2188
2412
|
return o.cancel = function() {
|
|
2189
|
-
|
|
2413
|
+
s.unsubscribe(a);
|
|
2190
2414
|
}, o;
|
|
2191
|
-
}, t(function(
|
|
2192
|
-
|
|
2415
|
+
}, t(function(a, o, u) {
|
|
2416
|
+
s.reason || (s.reason = new re(a, o, u), r(s.reason));
|
|
2193
2417
|
});
|
|
2194
2418
|
}
|
|
2195
2419
|
throwIfRequested() {
|
|
@@ -2212,99 +2436,99 @@ class Ie {
|
|
|
2212
2436
|
static source() {
|
|
2213
2437
|
let t;
|
|
2214
2438
|
return {
|
|
2215
|
-
token: new
|
|
2216
|
-
t =
|
|
2439
|
+
token: new Me(function(n) {
|
|
2440
|
+
t = n;
|
|
2217
2441
|
}),
|
|
2218
2442
|
cancel: t
|
|
2219
2443
|
};
|
|
2220
2444
|
}
|
|
2221
2445
|
}
|
|
2222
|
-
function
|
|
2446
|
+
function ps(e) {
|
|
2223
2447
|
return function(r) {
|
|
2224
2448
|
return e.apply(null, r);
|
|
2225
2449
|
};
|
|
2226
2450
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2451
|
+
function hs(e) {
|
|
2452
|
+
return i.isObject(e) && e.isAxiosError === !0;
|
|
2229
2453
|
}
|
|
2230
|
-
function
|
|
2454
|
+
function Lt(e) {
|
|
2231
2455
|
const t = new I(e), r = ft(I.prototype.request, t);
|
|
2232
|
-
return
|
|
2233
|
-
return
|
|
2456
|
+
return i.extend(r, I.prototype, t, { allOwnKeys: !0 }), i.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
|
|
2457
|
+
return Lt(ee(e, n));
|
|
2234
2458
|
}, r;
|
|
2235
2459
|
}
|
|
2236
|
-
const
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2460
|
+
const N = Lt(H);
|
|
2461
|
+
N.Axios = I;
|
|
2462
|
+
N.CanceledError = re;
|
|
2463
|
+
N.CancelToken = Me;
|
|
2464
|
+
N.isCancel = _t;
|
|
2465
|
+
N.VERSION = Rt;
|
|
2466
|
+
N.toFormData = de;
|
|
2467
|
+
N.AxiosError = y;
|
|
2468
|
+
N.Cancel = N.CanceledError;
|
|
2469
|
+
N.all = function(t) {
|
|
2246
2470
|
return Promise.all(t);
|
|
2247
2471
|
};
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
class
|
|
2472
|
+
N.spread = ps;
|
|
2473
|
+
N.isAxiosError = hs;
|
|
2474
|
+
N.formToJSON = (e) => vt(i.isHTMLForm(e) ? new FormData(e) : e);
|
|
2475
|
+
class Ss {
|
|
2252
2476
|
getLoolUrl(t) {
|
|
2253
2477
|
let r = `${t}/alfresco/service/lool/host/url`;
|
|
2254
|
-
return
|
|
2255
|
-
|
|
2478
|
+
return N.get(r).then((s) => s.data).catch((s) => {
|
|
2479
|
+
Yt(s);
|
|
2256
2480
|
});
|
|
2257
2481
|
}
|
|
2258
|
-
getAccessToken(t, r,
|
|
2259
|
-
let
|
|
2482
|
+
getAccessToken(t, r, s) {
|
|
2483
|
+
let n = `${t}/alfresco/service/lool/token?nodeRef=workspace://SpacesStore/${r}&action=${s}`, a = {
|
|
2260
2484
|
headers: {
|
|
2261
2485
|
Authorization: `basic ${window.btoa(
|
|
2262
2486
|
window.localStorage["ticket-ECM"]
|
|
2263
2487
|
)}`
|
|
2264
2488
|
}
|
|
2265
2489
|
};
|
|
2266
|
-
return
|
|
2267
|
-
|
|
2490
|
+
return N.get(n, a).then((o) => o.data).catch((o) => {
|
|
2491
|
+
Zt(o);
|
|
2268
2492
|
});
|
|
2269
2493
|
}
|
|
2270
2494
|
}
|
|
2271
|
-
class
|
|
2495
|
+
class vs {
|
|
2272
2496
|
getCollaboraExtensions(t) {
|
|
2273
|
-
return
|
|
2274
|
-
|
|
2497
|
+
return N.get(`${t}/hosting/discovery`).then((r) => new DOMParser().parseFromString(r.data, "text/xml")).catch((r) => {
|
|
2498
|
+
er(r);
|
|
2275
2499
|
});
|
|
2276
2500
|
}
|
|
2277
|
-
canOpenWithCollabora(t, r,
|
|
2278
|
-
return this.getCollaboraExtensions(t).then((
|
|
2279
|
-
|
|
2501
|
+
canOpenWithCollabora(t, r, s) {
|
|
2502
|
+
return this.getCollaboraExtensions(t).then((n) => this.checkIfExists(n, r, s)).catch((n) => {
|
|
2503
|
+
tr(n);
|
|
2280
2504
|
});
|
|
2281
2505
|
}
|
|
2282
|
-
checkIfExists(t, r,
|
|
2283
|
-
const
|
|
2506
|
+
checkIfExists(t, r, s) {
|
|
2507
|
+
const a = [...t.getElementsByTagName("app")].find(
|
|
2284
2508
|
(o) => o.attributes.name.value === r
|
|
2285
2509
|
);
|
|
2286
|
-
return
|
|
2287
|
-
(
|
|
2288
|
-
) : !!
|
|
2510
|
+
return a ? !![...a.getElementsByTagName("action")].find(
|
|
2511
|
+
(d) => d.attributes.name.value === s
|
|
2512
|
+
) : !!a;
|
|
2289
2513
|
}
|
|
2290
2514
|
}
|
|
2291
2515
|
export {
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2516
|
+
ws as AlfrescoFileService,
|
|
2517
|
+
ys as AlfrescoNodeService,
|
|
2518
|
+
gs as AlfrescoPermissionService,
|
|
2519
|
+
Ss as CollaboraAccessService,
|
|
2520
|
+
vs as CollaboraExtensionService,
|
|
2521
|
+
je as ErrorService,
|
|
2522
|
+
Ns as FavoriteService,
|
|
2523
|
+
ks as WorkspaceService,
|
|
2524
|
+
_ as alfrescoApi,
|
|
2301
2525
|
Se as favoritesApi,
|
|
2302
2526
|
P as nodesApi,
|
|
2303
2527
|
Re as peopleApi,
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2528
|
+
ze as renditionsApi,
|
|
2529
|
+
Kt as searchApi,
|
|
2530
|
+
T as sitesApi,
|
|
2531
|
+
Es as trashcanApi,
|
|
2532
|
+
Gt as uploadApi,
|
|
2533
|
+
Xe as useUserStore
|
|
2310
2534
|
};
|