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