@module-federation/enhanced 0.8.8 → 0.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/package.json +15 -13
  2. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +3 -2
  3. package/dist/src/schemas/container/ContainerPlugin.check.js +812 -1064
  4. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  5. package/dist/src/schemas/container/ContainerPlugin.d.ts +218 -257
  6. package/dist/src/schemas/container/ContainerPlugin.js +32 -31
  7. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  8. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +4 -3
  9. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +258 -853
  10. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  11. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +72 -67
  12. package/dist/src/schemas/container/ContainerReferencePlugin.js +6 -1
  13. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  14. package/dist/src/schemas/container/ExternalsType.check.d.ts +8 -0
  15. package/dist/src/schemas/container/ExternalsType.check.js +64 -0
  16. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -0
  17. package/dist/src/schemas/container/ExternalsType.d.ts +4 -0
  18. package/dist/src/schemas/container/ExternalsType.js +12 -0
  19. package/dist/src/schemas/container/ExternalsType.js.map +1 -0
  20. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3100 -0
  21. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
  22. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +622 -0
  23. package/dist/src/schemas/container/ModuleFederationPlugin.js +753 -0
  24. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  25. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +8 -0
  26. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +357 -0
  27. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -0
  28. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +106 -0
  29. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +129 -0
  30. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -0
  31. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +8 -0
  32. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +281 -0
  33. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -0
  34. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +83 -0
  35. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +103 -0
  36. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -0
  37. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +8 -0
  38. package/dist/src/schemas/sharing/SharePlugin.check.js +388 -0
  39. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -0
  40. package/dist/src/schemas/sharing/SharePlugin.d.ts +116 -0
  41. package/dist/src/schemas/sharing/SharePlugin.js +142 -0
  42. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -0
  43. package/dist/src/wrapper/ModuleFederationPlugin.js +0 -3
  44. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  45. package/package.json +17 -15
@@ -0,0 +1,3100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validate = void 0;
4
+ // @ts-nocheck
5
+ /* eslint-disable */
6
+ /*
7
+ * This file was automatically generated.
8
+ * DO NOT MODIFY BY HAND.
9
+ */
10
+ const e = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
+ exports.validate = j;
12
+ exports.default = j;
13
+ const t = {
14
+ definitions: {
15
+ AmdContainer: { type: 'string', minLength: 1 },
16
+ AuxiliaryComment: {
17
+ anyOf: [
18
+ { type: 'string' },
19
+ { $ref: '#/definitions/LibraryCustomUmdCommentObject' },
20
+ ],
21
+ },
22
+ EntryRuntime: {
23
+ anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }],
24
+ },
25
+ Exposes: {
26
+ anyOf: [
27
+ {
28
+ type: 'array',
29
+ items: {
30
+ anyOf: [
31
+ { $ref: '#/definitions/ExposesItem' },
32
+ { $ref: '#/definitions/ExposesObject' },
33
+ ],
34
+ },
35
+ },
36
+ { $ref: '#/definitions/ExposesObject' },
37
+ ],
38
+ },
39
+ ExposesConfig: {
40
+ type: 'object',
41
+ additionalProperties: !1,
42
+ properties: {
43
+ import: {
44
+ anyOf: [
45
+ { $ref: '#/definitions/ExposesItem' },
46
+ { $ref: '#/definitions/ExposesItems' },
47
+ ],
48
+ },
49
+ name: { type: 'string' },
50
+ },
51
+ required: ['import'],
52
+ },
53
+ ExposesItem: { type: 'string', minLength: 1 },
54
+ ExposesItems: {
55
+ type: 'array',
56
+ items: { $ref: '#/definitions/ExposesItem' },
57
+ },
58
+ ExposesObject: {
59
+ type: 'object',
60
+ additionalProperties: {
61
+ anyOf: [
62
+ { $ref: '#/definitions/ExposesConfig' },
63
+ { $ref: '#/definitions/ExposesItem' },
64
+ { $ref: '#/definitions/ExposesItems' },
65
+ ],
66
+ },
67
+ },
68
+ ExternalsType: {
69
+ enum: [
70
+ 'var',
71
+ 'module',
72
+ 'assign',
73
+ 'this',
74
+ 'window',
75
+ 'self',
76
+ 'global',
77
+ 'commonjs',
78
+ 'commonjs2',
79
+ 'commonjs-module',
80
+ 'commonjs-static',
81
+ 'amd',
82
+ 'amd-require',
83
+ 'umd',
84
+ 'umd2',
85
+ 'jsonp',
86
+ 'system',
87
+ 'promise',
88
+ 'import',
89
+ 'script',
90
+ 'module-import',
91
+ 'node-commonjs',
92
+ ],
93
+ },
94
+ LibraryCustomUmdCommentObject: {
95
+ type: 'object',
96
+ additionalProperties: !1,
97
+ properties: {
98
+ amd: { type: 'string' },
99
+ commonjs: { type: 'string' },
100
+ commonjs2: { type: 'string' },
101
+ root: { type: 'string' },
102
+ },
103
+ },
104
+ LibraryCustomUmdObject: {
105
+ type: 'object',
106
+ additionalProperties: !1,
107
+ properties: {
108
+ amd: { type: 'string', minLength: 1 },
109
+ commonjs: { type: 'string', minLength: 1 },
110
+ root: {
111
+ anyOf: [
112
+ { type: 'array', items: { type: 'string', minLength: 1 } },
113
+ { type: 'string', minLength: 1 },
114
+ ],
115
+ },
116
+ },
117
+ },
118
+ LibraryExport: {
119
+ anyOf: [
120
+ { type: 'array', items: { type: 'string', minLength: 1 } },
121
+ { type: 'string', minLength: 1 },
122
+ ],
123
+ },
124
+ LibraryName: {
125
+ anyOf: [
126
+ {
127
+ type: 'array',
128
+ items: { type: 'string', minLength: 1 },
129
+ minItems: 1,
130
+ },
131
+ { type: 'string', minLength: 1 },
132
+ { $ref: '#/definitions/LibraryCustomUmdObject' },
133
+ ],
134
+ },
135
+ LibraryOptions: {
136
+ type: 'object',
137
+ additionalProperties: !1,
138
+ properties: {
139
+ amdContainer: { $ref: '#/definitions/AmdContainer' },
140
+ auxiliaryComment: { $ref: '#/definitions/AuxiliaryComment' },
141
+ export: { $ref: '#/definitions/LibraryExport' },
142
+ name: { $ref: '#/definitions/LibraryName' },
143
+ type: { $ref: '#/definitions/LibraryType' },
144
+ umdNamedDefine: { $ref: '#/definitions/UmdNamedDefine' },
145
+ },
146
+ required: ['type'],
147
+ },
148
+ LibraryType: {
149
+ anyOf: [
150
+ {
151
+ enum: [
152
+ 'var',
153
+ 'module',
154
+ 'assign',
155
+ 'assign-properties',
156
+ 'this',
157
+ 'window',
158
+ 'self',
159
+ 'global',
160
+ 'commonjs',
161
+ 'commonjs2',
162
+ 'commonjs-module',
163
+ 'commonjs-static',
164
+ 'amd',
165
+ 'amd-require',
166
+ 'umd',
167
+ 'umd2',
168
+ 'jsonp',
169
+ 'system',
170
+ ],
171
+ },
172
+ { type: 'string' },
173
+ ],
174
+ },
175
+ Remotes: {
176
+ anyOf: [
177
+ {
178
+ type: 'array',
179
+ items: {
180
+ anyOf: [
181
+ { $ref: '#/definitions/RemotesItem' },
182
+ { $ref: '#/definitions/RemotesObject' },
183
+ ],
184
+ },
185
+ },
186
+ { $ref: '#/definitions/RemotesObject' },
187
+ ],
188
+ },
189
+ RemotesConfig: {
190
+ type: 'object',
191
+ additionalProperties: !1,
192
+ properties: {
193
+ external: {
194
+ anyOf: [
195
+ { $ref: '#/definitions/RemotesItem' },
196
+ { $ref: '#/definitions/RemotesItems' },
197
+ ],
198
+ },
199
+ shareScope: { type: 'string', minLength: 1 },
200
+ },
201
+ required: ['external'],
202
+ },
203
+ RemotesItem: { type: 'string', minLength: 1 },
204
+ RemotesItems: {
205
+ type: 'array',
206
+ items: { $ref: '#/definitions/RemotesItem' },
207
+ },
208
+ RemotesObject: {
209
+ type: 'object',
210
+ additionalProperties: {
211
+ anyOf: [
212
+ { $ref: '#/definitions/RemotesConfig' },
213
+ { $ref: '#/definitions/RemotesItem' },
214
+ { $ref: '#/definitions/RemotesItems' },
215
+ ],
216
+ },
217
+ },
218
+ Shared: {
219
+ anyOf: [
220
+ {
221
+ type: 'array',
222
+ items: {
223
+ anyOf: [
224
+ { $ref: '#/definitions/SharedItem' },
225
+ { $ref: '#/definitions/SharedObject' },
226
+ ],
227
+ },
228
+ },
229
+ { $ref: '#/definitions/SharedObject' },
230
+ ],
231
+ },
232
+ SharedConfig: {
233
+ type: 'object',
234
+ additionalProperties: !1,
235
+ properties: {
236
+ eager: { type: 'boolean' },
237
+ import: {
238
+ anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }],
239
+ },
240
+ packageName: { type: 'string', minLength: 1 },
241
+ requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
242
+ shareKey: { type: 'string', minLength: 1 },
243
+ shareScope: { type: 'string', minLength: 1 },
244
+ shareStrategy: { enum: ['version-first', 'loaded-first'] },
245
+ singleton: { type: 'boolean' },
246
+ strictVersion: { type: 'boolean' },
247
+ version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
248
+ },
249
+ },
250
+ SharedItem: { type: 'string', minLength: 1 },
251
+ SharedObject: {
252
+ type: 'object',
253
+ additionalProperties: {
254
+ anyOf: [
255
+ { $ref: '#/definitions/SharedConfig' },
256
+ { $ref: '#/definitions/SharedItem' },
257
+ ],
258
+ },
259
+ },
260
+ UmdNamedDefine: { type: 'boolean' },
261
+ },
262
+ type: 'object',
263
+ additionalProperties: !1,
264
+ properties: {
265
+ dataPrefetch: { type: 'boolean' },
266
+ exposes: { $ref: '#/definitions/Exposes' },
267
+ filename: { type: 'string', absolutePath: !1 },
268
+ getPublicPath: { type: 'string' },
269
+ implementation: { type: 'string' },
270
+ library: { $ref: '#/definitions/LibraryOptions' },
271
+ manifest: {
272
+ anyOf: [
273
+ { type: 'boolean' },
274
+ {
275
+ type: 'object',
276
+ properties: {
277
+ filePath: { type: 'string' },
278
+ disableAssetsAnalyze: { type: 'boolean' },
279
+ fileName: { type: 'string' },
280
+ additionalData: { type: 'string' },
281
+ },
282
+ },
283
+ ],
284
+ },
285
+ name: { type: 'string' },
286
+ remoteType: { oneOf: [{ $ref: '#/definitions/ExternalsType' }] },
287
+ remotes: { $ref: '#/definitions/Remotes' },
288
+ runtime: { $ref: '#/definitions/EntryRuntime' },
289
+ runtimePlugins: { type: 'array', items: { type: 'string' } },
290
+ shareScope: { type: 'string', minLength: 1 },
291
+ shareStrategy: { enum: ['version-first', 'loaded-first'] },
292
+ shared: { $ref: '#/definitions/Shared' },
293
+ virtualRuntimeEntry: { type: 'boolean' },
294
+ dev: {
295
+ anyOf: [
296
+ { type: 'boolean' },
297
+ {
298
+ type: 'object',
299
+ properties: {
300
+ disableLiveReload: { type: 'boolean' },
301
+ disableHotTypesReload: { type: 'boolean' },
302
+ disableDynamicRemoteTypeHints: { type: 'boolean' },
303
+ },
304
+ },
305
+ ],
306
+ },
307
+ dts: {
308
+ anyOf: [
309
+ { type: 'boolean' },
310
+ {
311
+ type: 'object',
312
+ properties: {
313
+ generateTypes: {
314
+ anyOf: [
315
+ { type: 'boolean' },
316
+ {
317
+ type: 'object',
318
+ properties: {
319
+ tsConfigPath: { type: 'string' },
320
+ typesFolder: { type: 'string' },
321
+ compiledTypesFolder: { type: 'string' },
322
+ deleteTypesFolder: { type: 'boolean' },
323
+ additionalFilesToCompile: {
324
+ type: 'array',
325
+ items: { type: 'string' },
326
+ },
327
+ compileInChildProcess: { type: 'boolean' },
328
+ compilerInstance: { enum: ['tsc', 'vue-tsc'] },
329
+ generateAPITypes: { type: 'boolean' },
330
+ extractThirdParty: { type: 'boolean' },
331
+ extractRemoteTypes: { type: 'boolean' },
332
+ abortOnError: { type: 'boolean' },
333
+ },
334
+ },
335
+ ],
336
+ },
337
+ consumeTypes: {
338
+ anyOf: [
339
+ { type: 'boolean' },
340
+ {
341
+ type: 'object',
342
+ properties: {
343
+ typesFolder: { type: 'string' },
344
+ abortOnError: { type: 'boolean' },
345
+ remoteTypesFolder: { type: 'string' },
346
+ deleteTypesFolder: { type: 'boolean' },
347
+ maxRetries: { type: 'number' },
348
+ consumeAPITypes: { type: 'boolean' },
349
+ runtimePkgs: { type: 'array', items: { type: 'string' } },
350
+ },
351
+ },
352
+ ],
353
+ },
354
+ tsConfigPath: { type: 'string' },
355
+ extraOptions: { type: 'object' },
356
+ implementation: { type: 'string' },
357
+ cwd: { type: 'string' },
358
+ displayErrorInTerminal: { type: 'boolean' },
359
+ },
360
+ },
361
+ ],
362
+ },
363
+ experiments: {
364
+ type: 'object',
365
+ properties: {
366
+ federationRuntime: {
367
+ anyOf: [
368
+ { type: 'boolean', enum: [!1] },
369
+ { type: 'string', enum: ['hoisted'] },
370
+ ],
371
+ },
372
+ externalRuntime: { type: 'boolean' },
373
+ provideExternalRuntime: { type: 'boolean' },
374
+ },
375
+ },
376
+ bridge: {
377
+ type: 'object',
378
+ properties: { disableAlias: { type: 'boolean', default: !1 } },
379
+ },
380
+ },
381
+ }, r = {
382
+ enum: [
383
+ 'var',
384
+ 'module',
385
+ 'assign',
386
+ 'this',
387
+ 'window',
388
+ 'self',
389
+ 'global',
390
+ 'commonjs',
391
+ 'commonjs2',
392
+ 'commonjs-module',
393
+ 'commonjs-static',
394
+ 'amd',
395
+ 'amd-require',
396
+ 'umd',
397
+ 'umd2',
398
+ 'jsonp',
399
+ 'system',
400
+ 'promise',
401
+ 'import',
402
+ 'script',
403
+ 'module-import',
404
+ 'node-commonjs',
405
+ ],
406
+ }, n = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] }, s = Object.prototype.hasOwnProperty;
407
+ function o(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
408
+ if (!Array.isArray(e))
409
+ return (o.errors = [{ params: { type: 'array' } }]), !1;
410
+ {
411
+ const t = e.length;
412
+ for (let r = 0; r < t; r++) {
413
+ let t = e[r];
414
+ const n = 0;
415
+ if ('string' != typeof t)
416
+ return (o.errors = [{ params: { type: 'string' } }]), !1;
417
+ if (t.length < 1)
418
+ return (o.errors = [{ params: {} }]), !1;
419
+ if (0 !== n)
420
+ break;
421
+ }
422
+ }
423
+ return (o.errors = null), !0;
424
+ }
425
+ function a(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
426
+ let i = null, l = 0;
427
+ if (0 === l) {
428
+ if (!e || 'object' != typeof e || Array.isArray(e))
429
+ return (a.errors = [{ params: { type: 'object' } }]), !1;
430
+ {
431
+ let r;
432
+ if (void 0 === e.import && (r = 'import'))
433
+ return (a.errors = [{ params: { missingProperty: r } }]), !1;
434
+ {
435
+ const r = l;
436
+ for (const t in e)
437
+ if ('import' !== t && 'name' !== t)
438
+ return (a.errors = [{ params: { additionalProperty: t } }]), !1;
439
+ if (r === l) {
440
+ if (void 0 !== e.import) {
441
+ let r = e.import;
442
+ const n = l, m = l;
443
+ let y = !1;
444
+ const u = l;
445
+ if (l == l)
446
+ if ('string' == typeof r) {
447
+ if (r.length < 1) {
448
+ const e = { params: {} };
449
+ null === i ? (i = [e]) : i.push(e), l++;
450
+ }
451
+ }
452
+ else {
453
+ const e = { params: { type: 'string' } };
454
+ null === i ? (i = [e]) : i.push(e), l++;
455
+ }
456
+ var p = u === l;
457
+ if (((y = y || p), !y)) {
458
+ const n = l;
459
+ o(r, {
460
+ instancePath: t + '/import',
461
+ parentData: e,
462
+ parentDataProperty: 'import',
463
+ rootData: s,
464
+ }) ||
465
+ ((i = null === i ? o.errors : i.concat(o.errors)),
466
+ (l = i.length)),
467
+ (p = n === l),
468
+ (y = y || p);
469
+ }
470
+ if (!y) {
471
+ const e = { params: {} };
472
+ return (null === i ? (i = [e]) : i.push(e), l++, (a.errors = i), !1);
473
+ }
474
+ (l = m), null !== i && (m ? (i.length = m) : (i = null));
475
+ var f = n === l;
476
+ }
477
+ else
478
+ f = !0;
479
+ if (f)
480
+ if (void 0 !== e.name) {
481
+ const t = l;
482
+ if ('string' != typeof e.name)
483
+ return (a.errors = [{ params: { type: 'string' } }]), !1;
484
+ f = t === l;
485
+ }
486
+ else
487
+ f = !0;
488
+ }
489
+ }
490
+ }
491
+ }
492
+ return (a.errors = i), 0 === l;
493
+ }
494
+ function i(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
495
+ let l = null, p = 0;
496
+ if (0 === p) {
497
+ if (!e || 'object' != typeof e || Array.isArray(e))
498
+ return (i.errors = [{ params: { type: 'object' } }]), !1;
499
+ for (const r in e) {
500
+ let n = e[r];
501
+ const m = p, y = p;
502
+ let u = !1;
503
+ const c = p;
504
+ a(n, {
505
+ instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
506
+ parentData: e,
507
+ parentDataProperty: r,
508
+ rootData: s,
509
+ }) || ((l = null === l ? a.errors : l.concat(a.errors)), (p = l.length));
510
+ var f = c === p;
511
+ if (((u = u || f), !u)) {
512
+ const a = p;
513
+ if (p == p)
514
+ if ('string' == typeof n) {
515
+ if (n.length < 1) {
516
+ const e = { params: {} };
517
+ null === l ? (l = [e]) : l.push(e), p++;
518
+ }
519
+ }
520
+ else {
521
+ const e = { params: { type: 'string' } };
522
+ null === l ? (l = [e]) : l.push(e), p++;
523
+ }
524
+ if (((f = a === p), (u = u || f), !u)) {
525
+ const a = p;
526
+ o(n, {
527
+ instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
528
+ parentData: e,
529
+ parentDataProperty: r,
530
+ rootData: s,
531
+ }) ||
532
+ ((l = null === l ? o.errors : l.concat(o.errors)), (p = l.length)),
533
+ (f = a === p),
534
+ (u = u || f);
535
+ }
536
+ }
537
+ if (!u) {
538
+ const e = { params: {} };
539
+ return null === l ? (l = [e]) : l.push(e), p++, (i.errors = l), !1;
540
+ }
541
+ if (((p = y), null !== l && (y ? (l.length = y) : (l = null)), m !== p))
542
+ break;
543
+ }
544
+ }
545
+ return (i.errors = l), 0 === p;
546
+ }
547
+ function l(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
548
+ let o = null, a = 0;
549
+ const p = a;
550
+ let f = !1;
551
+ const m = a;
552
+ if (a === m)
553
+ if (Array.isArray(e)) {
554
+ const r = e.length;
555
+ for (let n = 0; n < r; n++) {
556
+ let r = e[n];
557
+ const l = a, p = a;
558
+ let f = !1;
559
+ const m = a;
560
+ if (a == a)
561
+ if ('string' == typeof r) {
562
+ if (r.length < 1) {
563
+ const e = { params: {} };
564
+ null === o ? (o = [e]) : o.push(e), a++;
565
+ }
566
+ }
567
+ else {
568
+ const e = { params: { type: 'string' } };
569
+ null === o ? (o = [e]) : o.push(e), a++;
570
+ }
571
+ var y = m === a;
572
+ if (((f = f || y), !f)) {
573
+ const l = a;
574
+ i(r, {
575
+ instancePath: t + '/' + n,
576
+ parentData: e,
577
+ parentDataProperty: n,
578
+ rootData: s,
579
+ }) ||
580
+ ((o = null === o ? i.errors : o.concat(i.errors)), (a = o.length)),
581
+ (y = l === a),
582
+ (f = f || y);
583
+ }
584
+ if (f)
585
+ (a = p), null !== o && (p ? (o.length = p) : (o = null));
586
+ else {
587
+ const e = { params: {} };
588
+ null === o ? (o = [e]) : o.push(e), a++;
589
+ }
590
+ if (l !== a)
591
+ break;
592
+ }
593
+ }
594
+ else {
595
+ const e = { params: { type: 'array' } };
596
+ null === o ? (o = [e]) : o.push(e), a++;
597
+ }
598
+ var u = m === a;
599
+ if (((f = f || u), !f)) {
600
+ const l = a;
601
+ i(e, {
602
+ instancePath: t,
603
+ parentData: r,
604
+ parentDataProperty: n,
605
+ rootData: s,
606
+ }) || ((o = null === o ? i.errors : o.concat(i.errors)), (a = o.length)),
607
+ (u = l === a),
608
+ (f = f || u);
609
+ }
610
+ if (!f) {
611
+ const e = { params: {} };
612
+ return null === o ? (o = [e]) : o.push(e), a++, (l.errors = o), !1;
613
+ }
614
+ return ((a = p),
615
+ null !== o && (p ? (o.length = p) : (o = null)),
616
+ (l.errors = o),
617
+ 0 === a);
618
+ }
619
+ const p = {
620
+ anyOf: [
621
+ {
622
+ enum: [
623
+ 'var',
624
+ 'module',
625
+ 'assign',
626
+ 'assign-properties',
627
+ 'this',
628
+ 'window',
629
+ 'self',
630
+ 'global',
631
+ 'commonjs',
632
+ 'commonjs2',
633
+ 'commonjs-module',
634
+ 'commonjs-static',
635
+ 'amd',
636
+ 'amd-require',
637
+ 'umd',
638
+ 'umd2',
639
+ 'jsonp',
640
+ 'system',
641
+ ],
642
+ },
643
+ { type: 'string' },
644
+ ],
645
+ };
646
+ function f(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
647
+ let o = null, a = 0;
648
+ const i = a;
649
+ let l = !1;
650
+ const p = a;
651
+ if ('string' != typeof e) {
652
+ const e = { params: { type: 'string' } };
653
+ null === o ? (o = [e]) : o.push(e), a++;
654
+ }
655
+ var m = p === a;
656
+ if (((l = l || m), !l)) {
657
+ const t = a;
658
+ if (a == a)
659
+ if (e && 'object' == typeof e && !Array.isArray(e)) {
660
+ const t = a;
661
+ for (const t in e)
662
+ if ('amd' !== t &&
663
+ 'commonjs' !== t &&
664
+ 'commonjs2' !== t &&
665
+ 'root' !== t) {
666
+ const e = { params: { additionalProperty: t } };
667
+ null === o ? (o = [e]) : o.push(e), a++;
668
+ break;
669
+ }
670
+ if (t === a) {
671
+ if (void 0 !== e.amd) {
672
+ const t = a;
673
+ if ('string' != typeof e.amd) {
674
+ const e = { params: { type: 'string' } };
675
+ null === o ? (o = [e]) : o.push(e), a++;
676
+ }
677
+ var y = t === a;
678
+ }
679
+ else
680
+ y = !0;
681
+ if (y) {
682
+ if (void 0 !== e.commonjs) {
683
+ const t = a;
684
+ if ('string' != typeof e.commonjs) {
685
+ const e = { params: { type: 'string' } };
686
+ null === o ? (o = [e]) : o.push(e), a++;
687
+ }
688
+ y = t === a;
689
+ }
690
+ else
691
+ y = !0;
692
+ if (y) {
693
+ if (void 0 !== e.commonjs2) {
694
+ const t = a;
695
+ if ('string' != typeof e.commonjs2) {
696
+ const e = { params: { type: 'string' } };
697
+ null === o ? (o = [e]) : o.push(e), a++;
698
+ }
699
+ y = t === a;
700
+ }
701
+ else
702
+ y = !0;
703
+ if (y)
704
+ if (void 0 !== e.root) {
705
+ const t = a;
706
+ if ('string' != typeof e.root) {
707
+ const e = { params: { type: 'string' } };
708
+ null === o ? (o = [e]) : o.push(e), a++;
709
+ }
710
+ y = t === a;
711
+ }
712
+ else
713
+ y = !0;
714
+ }
715
+ }
716
+ }
717
+ }
718
+ else {
719
+ const e = { params: { type: 'object' } };
720
+ null === o ? (o = [e]) : o.push(e), a++;
721
+ }
722
+ (m = t === a), (l = l || m);
723
+ }
724
+ if (!l) {
725
+ const e = { params: {} };
726
+ return null === o ? (o = [e]) : o.push(e), a++, (f.errors = o), !1;
727
+ }
728
+ return ((a = i),
729
+ null !== o && (i ? (o.length = i) : (o = null)),
730
+ (f.errors = o),
731
+ 0 === a);
732
+ }
733
+ function m(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
734
+ let o = null, a = 0;
735
+ const i = a;
736
+ let l = !1;
737
+ const p = a;
738
+ if (a === p)
739
+ if (Array.isArray(e))
740
+ if (e.length < 1) {
741
+ const e = { params: { limit: 1 } };
742
+ null === o ? (o = [e]) : o.push(e), a++;
743
+ }
744
+ else {
745
+ const t = e.length;
746
+ for (let r = 0; r < t; r++) {
747
+ let t = e[r];
748
+ const n = a;
749
+ if (a === n)
750
+ if ('string' == typeof t) {
751
+ if (t.length < 1) {
752
+ const e = { params: {} };
753
+ null === o ? (o = [e]) : o.push(e), a++;
754
+ }
755
+ }
756
+ else {
757
+ const e = { params: { type: 'string' } };
758
+ null === o ? (o = [e]) : o.push(e), a++;
759
+ }
760
+ if (n !== a)
761
+ break;
762
+ }
763
+ }
764
+ else {
765
+ const e = { params: { type: 'array' } };
766
+ null === o ? (o = [e]) : o.push(e), a++;
767
+ }
768
+ var f = p === a;
769
+ if (((l = l || f), !l)) {
770
+ const t = a;
771
+ if (a === t)
772
+ if ('string' == typeof e) {
773
+ if (e.length < 1) {
774
+ const e = { params: {} };
775
+ null === o ? (o = [e]) : o.push(e), a++;
776
+ }
777
+ }
778
+ else {
779
+ const e = { params: { type: 'string' } };
780
+ null === o ? (o = [e]) : o.push(e), a++;
781
+ }
782
+ if (((f = t === a), (l = l || f), !l)) {
783
+ const t = a;
784
+ if (a == a)
785
+ if (e && 'object' == typeof e && !Array.isArray(e)) {
786
+ const t = a;
787
+ for (const t in e)
788
+ if ('amd' !== t && 'commonjs' !== t && 'root' !== t) {
789
+ const e = { params: { additionalProperty: t } };
790
+ null === o ? (o = [e]) : o.push(e), a++;
791
+ break;
792
+ }
793
+ if (t === a) {
794
+ if (void 0 !== e.amd) {
795
+ let t = e.amd;
796
+ const r = a;
797
+ if (a === r)
798
+ if ('string' == typeof t) {
799
+ if (t.length < 1) {
800
+ const e = { params: {} };
801
+ null === o ? (o = [e]) : o.push(e), a++;
802
+ }
803
+ }
804
+ else {
805
+ const e = { params: { type: 'string' } };
806
+ null === o ? (o = [e]) : o.push(e), a++;
807
+ }
808
+ var y = r === a;
809
+ }
810
+ else
811
+ y = !0;
812
+ if (y) {
813
+ if (void 0 !== e.commonjs) {
814
+ let t = e.commonjs;
815
+ const r = a;
816
+ if (a === r)
817
+ if ('string' == typeof t) {
818
+ if (t.length < 1) {
819
+ const e = { params: {} };
820
+ null === o ? (o = [e]) : o.push(e), a++;
821
+ }
822
+ }
823
+ else {
824
+ const e = { params: { type: 'string' } };
825
+ null === o ? (o = [e]) : o.push(e), a++;
826
+ }
827
+ y = r === a;
828
+ }
829
+ else
830
+ y = !0;
831
+ if (y)
832
+ if (void 0 !== e.root) {
833
+ let t = e.root;
834
+ const r = a, n = a;
835
+ let s = !1;
836
+ const i = a;
837
+ if (a === i)
838
+ if (Array.isArray(t)) {
839
+ const e = t.length;
840
+ for (let r = 0; r < e; r++) {
841
+ let e = t[r];
842
+ const n = a;
843
+ if (a === n)
844
+ if ('string' == typeof e) {
845
+ if (e.length < 1) {
846
+ const e = { params: {} };
847
+ null === o ? (o = [e]) : o.push(e), a++;
848
+ }
849
+ }
850
+ else {
851
+ const e = { params: { type: 'string' } };
852
+ null === o ? (o = [e]) : o.push(e), a++;
853
+ }
854
+ if (n !== a)
855
+ break;
856
+ }
857
+ }
858
+ else {
859
+ const e = { params: { type: 'array' } };
860
+ null === o ? (o = [e]) : o.push(e), a++;
861
+ }
862
+ var u = i === a;
863
+ if (((s = s || u), !s)) {
864
+ const e = a;
865
+ if (a === e)
866
+ if ('string' == typeof t) {
867
+ if (t.length < 1) {
868
+ const e = { params: {} };
869
+ null === o ? (o = [e]) : o.push(e), a++;
870
+ }
871
+ }
872
+ else {
873
+ const e = { params: { type: 'string' } };
874
+ null === o ? (o = [e]) : o.push(e), a++;
875
+ }
876
+ (u = e === a), (s = s || u);
877
+ }
878
+ if (s)
879
+ (a = n), null !== o && (n ? (o.length = n) : (o = null));
880
+ else {
881
+ const e = { params: {} };
882
+ null === o ? (o = [e]) : o.push(e), a++;
883
+ }
884
+ y = r === a;
885
+ }
886
+ else
887
+ y = !0;
888
+ }
889
+ }
890
+ }
891
+ else {
892
+ const e = { params: { type: 'object' } };
893
+ null === o ? (o = [e]) : o.push(e), a++;
894
+ }
895
+ (f = t === a), (l = l || f);
896
+ }
897
+ }
898
+ if (!l) {
899
+ const e = { params: {} };
900
+ return null === o ? (o = [e]) : o.push(e), a++, (m.errors = o), !1;
901
+ }
902
+ return ((a = i),
903
+ null !== o && (i ? (o.length = i) : (o = null)),
904
+ (m.errors = o),
905
+ 0 === a);
906
+ }
907
+ function y(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
908
+ let o = null, a = 0;
909
+ if (0 === a) {
910
+ if (!e || 'object' != typeof e || Array.isArray(e))
911
+ return (y.errors = [{ params: { type: 'object' } }]), !1;
912
+ {
913
+ let r;
914
+ if (void 0 === e.type && (r = 'type'))
915
+ return (y.errors = [{ params: { missingProperty: r } }]), !1;
916
+ {
917
+ const r = a;
918
+ for (const t in e)
919
+ if ('amdContainer' !== t &&
920
+ 'auxiliaryComment' !== t &&
921
+ 'export' !== t &&
922
+ 'name' !== t &&
923
+ 'type' !== t &&
924
+ 'umdNamedDefine' !== t)
925
+ return (y.errors = [{ params: { additionalProperty: t } }]), !1;
926
+ if (r === a) {
927
+ if (void 0 !== e.amdContainer) {
928
+ let t = e.amdContainer;
929
+ const r = a;
930
+ if (a == a) {
931
+ if ('string' != typeof t)
932
+ return (y.errors = [{ params: { type: 'string' } }]), !1;
933
+ if (t.length < 1)
934
+ return (y.errors = [{ params: {} }]), !1;
935
+ }
936
+ var i = r === a;
937
+ }
938
+ else
939
+ i = !0;
940
+ if (i) {
941
+ if (void 0 !== e.auxiliaryComment) {
942
+ const r = a;
943
+ f(e.auxiliaryComment, {
944
+ instancePath: t + '/auxiliaryComment',
945
+ parentData: e,
946
+ parentDataProperty: 'auxiliaryComment',
947
+ rootData: s,
948
+ }) ||
949
+ ((o = null === o ? f.errors : o.concat(f.errors)),
950
+ (a = o.length)),
951
+ (i = r === a);
952
+ }
953
+ else
954
+ i = !0;
955
+ if (i) {
956
+ if (void 0 !== e.export) {
957
+ let t = e.export;
958
+ const r = a, n = a;
959
+ let s = !1;
960
+ const p = a;
961
+ if (a === p)
962
+ if (Array.isArray(t)) {
963
+ const e = t.length;
964
+ for (let r = 0; r < e; r++) {
965
+ let e = t[r];
966
+ const n = a;
967
+ if (a === n)
968
+ if ('string' == typeof e) {
969
+ if (e.length < 1) {
970
+ const e = { params: {} };
971
+ null === o ? (o = [e]) : o.push(e), a++;
972
+ }
973
+ }
974
+ else {
975
+ const e = { params: { type: 'string' } };
976
+ null === o ? (o = [e]) : o.push(e), a++;
977
+ }
978
+ if (n !== a)
979
+ break;
980
+ }
981
+ }
982
+ else {
983
+ const e = { params: { type: 'array' } };
984
+ null === o ? (o = [e]) : o.push(e), a++;
985
+ }
986
+ var l = p === a;
987
+ if (((s = s || l), !s)) {
988
+ const e = a;
989
+ if (a === e)
990
+ if ('string' == typeof t) {
991
+ if (t.length < 1) {
992
+ const e = { params: {} };
993
+ null === o ? (o = [e]) : o.push(e), a++;
994
+ }
995
+ }
996
+ else {
997
+ const e = { params: { type: 'string' } };
998
+ null === o ? (o = [e]) : o.push(e), a++;
999
+ }
1000
+ (l = e === a), (s = s || l);
1001
+ }
1002
+ if (!s) {
1003
+ const e = { params: {} };
1004
+ return (null === o ? (o = [e]) : o.push(e), a++, (y.errors = o), !1);
1005
+ }
1006
+ (a = n),
1007
+ null !== o && (n ? (o.length = n) : (o = null)),
1008
+ (i = r === a);
1009
+ }
1010
+ else
1011
+ i = !0;
1012
+ if (i) {
1013
+ if (void 0 !== e.name) {
1014
+ const r = a;
1015
+ m(e.name, {
1016
+ instancePath: t + '/name',
1017
+ parentData: e,
1018
+ parentDataProperty: 'name',
1019
+ rootData: s,
1020
+ }) ||
1021
+ ((o = null === o ? m.errors : o.concat(m.errors)),
1022
+ (a = o.length)),
1023
+ (i = r === a);
1024
+ }
1025
+ else
1026
+ i = !0;
1027
+ if (i) {
1028
+ if (void 0 !== e.type) {
1029
+ let t = e.type;
1030
+ const r = a, n = a;
1031
+ let s = !1;
1032
+ const l = a;
1033
+ if ('var' !== t &&
1034
+ 'module' !== t &&
1035
+ 'assign' !== t &&
1036
+ 'assign-properties' !== t &&
1037
+ 'this' !== t &&
1038
+ 'window' !== t &&
1039
+ 'self' !== t &&
1040
+ 'global' !== t &&
1041
+ 'commonjs' !== t &&
1042
+ 'commonjs2' !== t &&
1043
+ 'commonjs-module' !== t &&
1044
+ 'commonjs-static' !== t &&
1045
+ 'amd' !== t &&
1046
+ 'amd-require' !== t &&
1047
+ 'umd' !== t &&
1048
+ 'umd2' !== t &&
1049
+ 'jsonp' !== t &&
1050
+ 'system' !== t) {
1051
+ const e = { params: { allowedValues: p.anyOf[0].enum } };
1052
+ null === o ? (o = [e]) : o.push(e), a++;
1053
+ }
1054
+ var u = l === a;
1055
+ if (((s = s || u), !s)) {
1056
+ const e = a;
1057
+ if ('string' != typeof t) {
1058
+ const e = { params: { type: 'string' } };
1059
+ null === o ? (o = [e]) : o.push(e), a++;
1060
+ }
1061
+ (u = e === a), (s = s || u);
1062
+ }
1063
+ if (!s) {
1064
+ const e = { params: {} };
1065
+ return (null === o ? (o = [e]) : o.push(e),
1066
+ a++,
1067
+ (y.errors = o),
1068
+ !1);
1069
+ }
1070
+ (a = n),
1071
+ null !== o && (n ? (o.length = n) : (o = null)),
1072
+ (i = r === a);
1073
+ }
1074
+ else
1075
+ i = !0;
1076
+ if (i)
1077
+ if (void 0 !== e.umdNamedDefine) {
1078
+ const t = a;
1079
+ if ('boolean' != typeof e.umdNamedDefine)
1080
+ return ((y.errors = [{ params: { type: 'boolean' } }]), !1);
1081
+ i = t === a;
1082
+ }
1083
+ else
1084
+ i = !0;
1085
+ }
1086
+ }
1087
+ }
1088
+ }
1089
+ }
1090
+ }
1091
+ }
1092
+ }
1093
+ return (y.errors = o), 0 === a;
1094
+ }
1095
+ function u(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1096
+ if (!Array.isArray(e))
1097
+ return (u.errors = [{ params: { type: 'array' } }]), !1;
1098
+ {
1099
+ const t = e.length;
1100
+ for (let r = 0; r < t; r++) {
1101
+ let t = e[r];
1102
+ const n = 0;
1103
+ if ('string' != typeof t)
1104
+ return (u.errors = [{ params: { type: 'string' } }]), !1;
1105
+ if (t.length < 1)
1106
+ return (u.errors = [{ params: {} }]), !1;
1107
+ if (0 !== n)
1108
+ break;
1109
+ }
1110
+ }
1111
+ return (u.errors = null), !0;
1112
+ }
1113
+ function c(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1114
+ let o = null, a = 0;
1115
+ if (0 === a) {
1116
+ if (!e || 'object' != typeof e || Array.isArray(e))
1117
+ return (c.errors = [{ params: { type: 'object' } }]), !1;
1118
+ {
1119
+ let r;
1120
+ if (void 0 === e.external && (r = 'external'))
1121
+ return (c.errors = [{ params: { missingProperty: r } }]), !1;
1122
+ {
1123
+ const r = a;
1124
+ for (const t in e)
1125
+ if ('external' !== t && 'shareScope' !== t)
1126
+ return (c.errors = [{ params: { additionalProperty: t } }]), !1;
1127
+ if (r === a) {
1128
+ if (void 0 !== e.external) {
1129
+ let r = e.external;
1130
+ const n = a, p = a;
1131
+ let f = !1;
1132
+ const m = a;
1133
+ if (a == a)
1134
+ if ('string' == typeof r) {
1135
+ if (r.length < 1) {
1136
+ const e = { params: {} };
1137
+ null === o ? (o = [e]) : o.push(e), a++;
1138
+ }
1139
+ }
1140
+ else {
1141
+ const e = { params: { type: 'string' } };
1142
+ null === o ? (o = [e]) : o.push(e), a++;
1143
+ }
1144
+ var i = m === a;
1145
+ if (((f = f || i), !f)) {
1146
+ const n = a;
1147
+ u(r, {
1148
+ instancePath: t + '/external',
1149
+ parentData: e,
1150
+ parentDataProperty: 'external',
1151
+ rootData: s,
1152
+ }) ||
1153
+ ((o = null === o ? u.errors : o.concat(u.errors)),
1154
+ (a = o.length)),
1155
+ (i = n === a),
1156
+ (f = f || i);
1157
+ }
1158
+ if (!f) {
1159
+ const e = { params: {} };
1160
+ return (null === o ? (o = [e]) : o.push(e), a++, (c.errors = o), !1);
1161
+ }
1162
+ (a = p), null !== o && (p ? (o.length = p) : (o = null));
1163
+ var l = n === a;
1164
+ }
1165
+ else
1166
+ l = !0;
1167
+ if (l)
1168
+ if (void 0 !== e.shareScope) {
1169
+ let t = e.shareScope;
1170
+ const r = a;
1171
+ if (a === r) {
1172
+ if ('string' != typeof t)
1173
+ return (c.errors = [{ params: { type: 'string' } }]), !1;
1174
+ if (t.length < 1)
1175
+ return (c.errors = [{ params: {} }]), !1;
1176
+ }
1177
+ l = r === a;
1178
+ }
1179
+ else
1180
+ l = !0;
1181
+ }
1182
+ }
1183
+ }
1184
+ }
1185
+ return (c.errors = o), 0 === a;
1186
+ }
1187
+ function d(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1188
+ let o = null, a = 0;
1189
+ if (0 === a) {
1190
+ if (!e || 'object' != typeof e || Array.isArray(e))
1191
+ return (d.errors = [{ params: { type: 'object' } }]), !1;
1192
+ for (const r in e) {
1193
+ let n = e[r];
1194
+ const l = a, p = a;
1195
+ let f = !1;
1196
+ const m = a;
1197
+ c(n, {
1198
+ instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1199
+ parentData: e,
1200
+ parentDataProperty: r,
1201
+ rootData: s,
1202
+ }) || ((o = null === o ? c.errors : o.concat(c.errors)), (a = o.length));
1203
+ var i = m === a;
1204
+ if (((f = f || i), !f)) {
1205
+ const l = a;
1206
+ if (a == a)
1207
+ if ('string' == typeof n) {
1208
+ if (n.length < 1) {
1209
+ const e = { params: {} };
1210
+ null === o ? (o = [e]) : o.push(e), a++;
1211
+ }
1212
+ }
1213
+ else {
1214
+ const e = { params: { type: 'string' } };
1215
+ null === o ? (o = [e]) : o.push(e), a++;
1216
+ }
1217
+ if (((i = l === a), (f = f || i), !f)) {
1218
+ const l = a;
1219
+ u(n, {
1220
+ instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1221
+ parentData: e,
1222
+ parentDataProperty: r,
1223
+ rootData: s,
1224
+ }) ||
1225
+ ((o = null === o ? u.errors : o.concat(u.errors)), (a = o.length)),
1226
+ (i = l === a),
1227
+ (f = f || i);
1228
+ }
1229
+ }
1230
+ if (!f) {
1231
+ const e = { params: {} };
1232
+ return null === o ? (o = [e]) : o.push(e), a++, (d.errors = o), !1;
1233
+ }
1234
+ if (((a = p), null !== o && (p ? (o.length = p) : (o = null)), l !== a))
1235
+ break;
1236
+ }
1237
+ }
1238
+ return (d.errors = o), 0 === a;
1239
+ }
1240
+ function g(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1241
+ let o = null, a = 0;
1242
+ const i = a;
1243
+ let l = !1;
1244
+ const p = a;
1245
+ if (a === p)
1246
+ if (Array.isArray(e)) {
1247
+ const r = e.length;
1248
+ for (let n = 0; n < r; n++) {
1249
+ let r = e[n];
1250
+ const i = a, l = a;
1251
+ let p = !1;
1252
+ const m = a;
1253
+ if (a == a)
1254
+ if ('string' == typeof r) {
1255
+ if (r.length < 1) {
1256
+ const e = { params: {} };
1257
+ null === o ? (o = [e]) : o.push(e), a++;
1258
+ }
1259
+ }
1260
+ else {
1261
+ const e = { params: { type: 'string' } };
1262
+ null === o ? (o = [e]) : o.push(e), a++;
1263
+ }
1264
+ var f = m === a;
1265
+ if (((p = p || f), !p)) {
1266
+ const i = a;
1267
+ d(r, {
1268
+ instancePath: t + '/' + n,
1269
+ parentData: e,
1270
+ parentDataProperty: n,
1271
+ rootData: s,
1272
+ }) ||
1273
+ ((o = null === o ? d.errors : o.concat(d.errors)), (a = o.length)),
1274
+ (f = i === a),
1275
+ (p = p || f);
1276
+ }
1277
+ if (p)
1278
+ (a = l), null !== o && (l ? (o.length = l) : (o = null));
1279
+ else {
1280
+ const e = { params: {} };
1281
+ null === o ? (o = [e]) : o.push(e), a++;
1282
+ }
1283
+ if (i !== a)
1284
+ break;
1285
+ }
1286
+ }
1287
+ else {
1288
+ const e = { params: { type: 'array' } };
1289
+ null === o ? (o = [e]) : o.push(e), a++;
1290
+ }
1291
+ var m = p === a;
1292
+ if (((l = l || m), !l)) {
1293
+ const i = a;
1294
+ d(e, {
1295
+ instancePath: t,
1296
+ parentData: r,
1297
+ parentDataProperty: n,
1298
+ rootData: s,
1299
+ }) || ((o = null === o ? d.errors : o.concat(d.errors)), (a = o.length)),
1300
+ (m = i === a),
1301
+ (l = l || m);
1302
+ }
1303
+ if (!l) {
1304
+ const e = { params: {} };
1305
+ return null === o ? (o = [e]) : o.push(e), a++, (g.errors = o), !1;
1306
+ }
1307
+ return ((a = i),
1308
+ null !== o && (i ? (o.length = i) : (o = null)),
1309
+ (g.errors = o),
1310
+ 0 === a);
1311
+ }
1312
+ const h = {
1313
+ type: 'object',
1314
+ additionalProperties: !1,
1315
+ properties: {
1316
+ eager: { type: 'boolean' },
1317
+ import: { anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }] },
1318
+ packageName: { type: 'string', minLength: 1 },
1319
+ requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
1320
+ shareKey: { type: 'string', minLength: 1 },
1321
+ shareScope: { type: 'string', minLength: 1 },
1322
+ shareStrategy: { enum: ['version-first', 'loaded-first'] },
1323
+ singleton: { type: 'boolean' },
1324
+ strictVersion: { type: 'boolean' },
1325
+ version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
1326
+ },
1327
+ };
1328
+ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: o = e, } = {}) {
1329
+ let a = null, i = 0;
1330
+ if (0 === i) {
1331
+ if (!e || 'object' != typeof e || Array.isArray(e))
1332
+ return (b.errors = [{ params: { type: 'object' } }]), !1;
1333
+ {
1334
+ const t = i;
1335
+ for (const t in e)
1336
+ if (!s.call(h.properties, t))
1337
+ return (b.errors = [{ params: { additionalProperty: t } }]), !1;
1338
+ if (t === i) {
1339
+ if (void 0 !== e.eager) {
1340
+ const t = i;
1341
+ if ('boolean' != typeof e.eager)
1342
+ return (b.errors = [{ params: { type: 'boolean' } }]), !1;
1343
+ var l = t === i;
1344
+ }
1345
+ else
1346
+ l = !0;
1347
+ if (l) {
1348
+ if (void 0 !== e.import) {
1349
+ let t = e.import;
1350
+ const r = i, n = i;
1351
+ let s = !1;
1352
+ const o = i;
1353
+ if (!1 !== t) {
1354
+ const e = {
1355
+ params: { allowedValues: h.properties.import.anyOf[0].enum },
1356
+ };
1357
+ null === a ? (a = [e]) : a.push(e), i++;
1358
+ }
1359
+ var p = o === i;
1360
+ if (((s = s || p), !s)) {
1361
+ const e = i;
1362
+ if (i == i)
1363
+ if ('string' == typeof t) {
1364
+ if (t.length < 1) {
1365
+ const e = { params: {} };
1366
+ null === a ? (a = [e]) : a.push(e), i++;
1367
+ }
1368
+ }
1369
+ else {
1370
+ const e = { params: { type: 'string' } };
1371
+ null === a ? (a = [e]) : a.push(e), i++;
1372
+ }
1373
+ (p = e === i), (s = s || p);
1374
+ }
1375
+ if (!s) {
1376
+ const e = { params: {} };
1377
+ return (null === a ? (a = [e]) : a.push(e), i++, (b.errors = a), !1);
1378
+ }
1379
+ (i = n),
1380
+ null !== a && (n ? (a.length = n) : (a = null)),
1381
+ (l = r === i);
1382
+ }
1383
+ else
1384
+ l = !0;
1385
+ if (l) {
1386
+ if (void 0 !== e.packageName) {
1387
+ let t = e.packageName;
1388
+ const r = i;
1389
+ if (i === r) {
1390
+ if ('string' != typeof t)
1391
+ return (b.errors = [{ params: { type: 'string' } }]), !1;
1392
+ if (t.length < 1)
1393
+ return (b.errors = [{ params: {} }]), !1;
1394
+ }
1395
+ l = r === i;
1396
+ }
1397
+ else
1398
+ l = !0;
1399
+ if (l) {
1400
+ if (void 0 !== e.requiredVersion) {
1401
+ let t = e.requiredVersion;
1402
+ const r = i, n = i;
1403
+ let s = !1;
1404
+ const o = i;
1405
+ if (!1 !== t) {
1406
+ const e = {
1407
+ params: {
1408
+ allowedValues: h.properties.requiredVersion.anyOf[0].enum,
1409
+ },
1410
+ };
1411
+ null === a ? (a = [e]) : a.push(e), i++;
1412
+ }
1413
+ var f = o === i;
1414
+ if (((s = s || f), !s)) {
1415
+ const e = i;
1416
+ if ('string' != typeof t) {
1417
+ const e = { params: { type: 'string' } };
1418
+ null === a ? (a = [e]) : a.push(e), i++;
1419
+ }
1420
+ (f = e === i), (s = s || f);
1421
+ }
1422
+ if (!s) {
1423
+ const e = { params: {} };
1424
+ return (null === a ? (a = [e]) : a.push(e), i++, (b.errors = a), !1);
1425
+ }
1426
+ (i = n),
1427
+ null !== a && (n ? (a.length = n) : (a = null)),
1428
+ (l = r === i);
1429
+ }
1430
+ else
1431
+ l = !0;
1432
+ if (l) {
1433
+ if (void 0 !== e.shareKey) {
1434
+ let t = e.shareKey;
1435
+ const r = i;
1436
+ if (i === r) {
1437
+ if ('string' != typeof t)
1438
+ return (b.errors = [{ params: { type: 'string' } }]), !1;
1439
+ if (t.length < 1)
1440
+ return (b.errors = [{ params: {} }]), !1;
1441
+ }
1442
+ l = r === i;
1443
+ }
1444
+ else
1445
+ l = !0;
1446
+ if (l) {
1447
+ if (void 0 !== e.shareScope) {
1448
+ let t = e.shareScope;
1449
+ const r = i;
1450
+ if (i === r) {
1451
+ if ('string' != typeof t)
1452
+ return ((b.errors = [{ params: { type: 'string' } }]), !1);
1453
+ if (t.length < 1)
1454
+ return (b.errors = [{ params: {} }]), !1;
1455
+ }
1456
+ l = r === i;
1457
+ }
1458
+ else
1459
+ l = !0;
1460
+ if (l) {
1461
+ if (void 0 !== e.shareStrategy) {
1462
+ let t = e.shareStrategy;
1463
+ const r = i;
1464
+ if ('version-first' !== t && 'loaded-first' !== t)
1465
+ return ((b.errors = [
1466
+ {
1467
+ params: {
1468
+ allowedValues: h.properties.shareStrategy.enum,
1469
+ },
1470
+ },
1471
+ ]),
1472
+ !1);
1473
+ l = r === i;
1474
+ }
1475
+ else
1476
+ l = !0;
1477
+ if (l) {
1478
+ if (void 0 !== e.singleton) {
1479
+ const t = i;
1480
+ if ('boolean' != typeof e.singleton)
1481
+ return ((b.errors = [{ params: { type: 'boolean' } }]), !1);
1482
+ l = t === i;
1483
+ }
1484
+ else
1485
+ l = !0;
1486
+ if (l) {
1487
+ if (void 0 !== e.strictVersion) {
1488
+ const t = i;
1489
+ if ('boolean' != typeof e.strictVersion)
1490
+ return ((b.errors = [{ params: { type: 'boolean' } }]), !1);
1491
+ l = t === i;
1492
+ }
1493
+ else
1494
+ l = !0;
1495
+ if (l)
1496
+ if (void 0 !== e.version) {
1497
+ let t = e.version;
1498
+ const r = i, n = i;
1499
+ let s = !1;
1500
+ const o = i;
1501
+ if (!1 !== t) {
1502
+ const e = {
1503
+ params: {
1504
+ allowedValues: h.properties.version.anyOf[0].enum,
1505
+ },
1506
+ };
1507
+ null === a ? (a = [e]) : a.push(e), i++;
1508
+ }
1509
+ var m = o === i;
1510
+ if (((s = s || m), !s)) {
1511
+ const e = i;
1512
+ if ('string' != typeof t) {
1513
+ const e = { params: { type: 'string' } };
1514
+ null === a ? (a = [e]) : a.push(e), i++;
1515
+ }
1516
+ (m = e === i), (s = s || m);
1517
+ }
1518
+ if (!s) {
1519
+ const e = { params: {} };
1520
+ return (null === a ? (a = [e]) : a.push(e),
1521
+ i++,
1522
+ (b.errors = a),
1523
+ !1);
1524
+ }
1525
+ (i = n),
1526
+ null !== a && (n ? (a.length = n) : (a = null)),
1527
+ (l = r === i);
1528
+ }
1529
+ else
1530
+ l = !0;
1531
+ }
1532
+ }
1533
+ }
1534
+ }
1535
+ }
1536
+ }
1537
+ }
1538
+ }
1539
+ }
1540
+ }
1541
+ }
1542
+ return (b.errors = a), 0 === i;
1543
+ }
1544
+ function v(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1545
+ let o = null, a = 0;
1546
+ if (0 === a) {
1547
+ if (!e || 'object' != typeof e || Array.isArray(e))
1548
+ return (v.errors = [{ params: { type: 'object' } }]), !1;
1549
+ for (const r in e) {
1550
+ let n = e[r];
1551
+ const l = a, p = a;
1552
+ let f = !1;
1553
+ const m = a;
1554
+ b(n, {
1555
+ instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1556
+ parentData: e,
1557
+ parentDataProperty: r,
1558
+ rootData: s,
1559
+ }) || ((o = null === o ? b.errors : o.concat(b.errors)), (a = o.length));
1560
+ var i = m === a;
1561
+ if (((f = f || i), !f)) {
1562
+ const e = a;
1563
+ if (a == a)
1564
+ if ('string' == typeof n) {
1565
+ if (n.length < 1) {
1566
+ const e = { params: {} };
1567
+ null === o ? (o = [e]) : o.push(e), a++;
1568
+ }
1569
+ }
1570
+ else {
1571
+ const e = { params: { type: 'string' } };
1572
+ null === o ? (o = [e]) : o.push(e), a++;
1573
+ }
1574
+ (i = e === a), (f = f || i);
1575
+ }
1576
+ if (!f) {
1577
+ const e = { params: {} };
1578
+ return null === o ? (o = [e]) : o.push(e), a++, (v.errors = o), !1;
1579
+ }
1580
+ if (((a = p), null !== o && (p ? (o.length = p) : (o = null)), l !== a))
1581
+ break;
1582
+ }
1583
+ }
1584
+ return (v.errors = o), 0 === a;
1585
+ }
1586
+ function P(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1587
+ let o = null, a = 0;
1588
+ const i = a;
1589
+ let l = !1;
1590
+ const p = a;
1591
+ if (a === p)
1592
+ if (Array.isArray(e)) {
1593
+ const r = e.length;
1594
+ for (let n = 0; n < r; n++) {
1595
+ let r = e[n];
1596
+ const i = a, l = a;
1597
+ let p = !1;
1598
+ const m = a;
1599
+ if (a == a)
1600
+ if ('string' == typeof r) {
1601
+ if (r.length < 1) {
1602
+ const e = { params: {} };
1603
+ null === o ? (o = [e]) : o.push(e), a++;
1604
+ }
1605
+ }
1606
+ else {
1607
+ const e = { params: { type: 'string' } };
1608
+ null === o ? (o = [e]) : o.push(e), a++;
1609
+ }
1610
+ var f = m === a;
1611
+ if (((p = p || f), !p)) {
1612
+ const i = a;
1613
+ v(r, {
1614
+ instancePath: t + '/' + n,
1615
+ parentData: e,
1616
+ parentDataProperty: n,
1617
+ rootData: s,
1618
+ }) ||
1619
+ ((o = null === o ? v.errors : o.concat(v.errors)), (a = o.length)),
1620
+ (f = i === a),
1621
+ (p = p || f);
1622
+ }
1623
+ if (p)
1624
+ (a = l), null !== o && (l ? (o.length = l) : (o = null));
1625
+ else {
1626
+ const e = { params: {} };
1627
+ null === o ? (o = [e]) : o.push(e), a++;
1628
+ }
1629
+ if (i !== a)
1630
+ break;
1631
+ }
1632
+ }
1633
+ else {
1634
+ const e = { params: { type: 'array' } };
1635
+ null === o ? (o = [e]) : o.push(e), a++;
1636
+ }
1637
+ var m = p === a;
1638
+ if (((l = l || m), !l)) {
1639
+ const i = a;
1640
+ v(e, {
1641
+ instancePath: t,
1642
+ parentData: r,
1643
+ parentDataProperty: n,
1644
+ rootData: s,
1645
+ }) || ((o = null === o ? v.errors : o.concat(v.errors)), (a = o.length)),
1646
+ (m = i === a),
1647
+ (l = l || m);
1648
+ }
1649
+ if (!l) {
1650
+ const e = { params: {} };
1651
+ return null === o ? (o = [e]) : o.push(e), a++, (P.errors = o), !1;
1652
+ }
1653
+ return ((a = i),
1654
+ null !== o && (i ? (o.length = i) : (o = null)),
1655
+ (P.errors = o),
1656
+ 0 === a);
1657
+ }
1658
+ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, rootData: f = o, } = {}) {
1659
+ let m = null, u = 0;
1660
+ if (0 === u) {
1661
+ if (!o || 'object' != typeof o || Array.isArray(o))
1662
+ return (j.errors = [{ params: { type: 'object' } }]), !1;
1663
+ {
1664
+ const i = u;
1665
+ for (const e in o)
1666
+ if (!s.call(t.properties, e))
1667
+ return (j.errors = [{ params: { additionalProperty: e } }]), !1;
1668
+ if (i === u) {
1669
+ if (void 0 !== o.dataPrefetch) {
1670
+ const e = u;
1671
+ if ('boolean' != typeof o.dataPrefetch)
1672
+ return (j.errors = [{ params: { type: 'boolean' } }]), !1;
1673
+ var c = e === u;
1674
+ }
1675
+ else
1676
+ c = !0;
1677
+ if (c) {
1678
+ if (void 0 !== o.exposes) {
1679
+ const e = u;
1680
+ l(o.exposes, {
1681
+ instancePath: a + '/exposes',
1682
+ parentData: o,
1683
+ parentDataProperty: 'exposes',
1684
+ rootData: f,
1685
+ }) ||
1686
+ ((m = null === m ? l.errors : m.concat(l.errors)),
1687
+ (u = m.length)),
1688
+ (c = e === u);
1689
+ }
1690
+ else
1691
+ c = !0;
1692
+ if (c) {
1693
+ if (void 0 !== o.filename) {
1694
+ let t = o.filename;
1695
+ const r = u;
1696
+ if (u === r) {
1697
+ if ('string' != typeof t)
1698
+ return (j.errors = [{ params: { type: 'string' } }]), !1;
1699
+ if (t.includes('!') || !1 !== e.test(t))
1700
+ return (j.errors = [{ params: {} }]), !1;
1701
+ }
1702
+ c = r === u;
1703
+ }
1704
+ else
1705
+ c = !0;
1706
+ if (c) {
1707
+ if (void 0 !== o.getPublicPath) {
1708
+ const e = u;
1709
+ if ('string' != typeof o.getPublicPath)
1710
+ return (j.errors = [{ params: { type: 'string' } }]), !1;
1711
+ c = e === u;
1712
+ }
1713
+ else
1714
+ c = !0;
1715
+ if (c) {
1716
+ if (void 0 !== o.implementation) {
1717
+ const e = u;
1718
+ if ('string' != typeof o.implementation)
1719
+ return (j.errors = [{ params: { type: 'string' } }]), !1;
1720
+ c = e === u;
1721
+ }
1722
+ else
1723
+ c = !0;
1724
+ if (c) {
1725
+ if (void 0 !== o.library) {
1726
+ const e = u;
1727
+ y(o.library, {
1728
+ instancePath: a + '/library',
1729
+ parentData: o,
1730
+ parentDataProperty: 'library',
1731
+ rootData: f,
1732
+ }) ||
1733
+ ((m = null === m ? y.errors : m.concat(y.errors)),
1734
+ (u = m.length)),
1735
+ (c = e === u);
1736
+ }
1737
+ else
1738
+ c = !0;
1739
+ if (c) {
1740
+ if (void 0 !== o.manifest) {
1741
+ let e = o.manifest;
1742
+ const t = u, r = u;
1743
+ let n = !1;
1744
+ const s = u;
1745
+ if ('boolean' != typeof e) {
1746
+ const e = { params: { type: 'boolean' } };
1747
+ null === m ? (m = [e]) : m.push(e), u++;
1748
+ }
1749
+ var d = s === u;
1750
+ if (((n = n || d), !n)) {
1751
+ const t = u;
1752
+ if (u === t)
1753
+ if (e && 'object' == typeof e && !Array.isArray(e)) {
1754
+ if (void 0 !== e.filePath) {
1755
+ const t = u;
1756
+ if ('string' != typeof e.filePath) {
1757
+ const e = { params: { type: 'string' } };
1758
+ null === m ? (m = [e]) : m.push(e), u++;
1759
+ }
1760
+ var h = t === u;
1761
+ }
1762
+ else
1763
+ h = !0;
1764
+ if (h) {
1765
+ if (void 0 !== e.disableAssetsAnalyze) {
1766
+ const t = u;
1767
+ if ('boolean' != typeof e.disableAssetsAnalyze) {
1768
+ const e = { params: { type: 'boolean' } };
1769
+ null === m ? (m = [e]) : m.push(e), u++;
1770
+ }
1771
+ h = t === u;
1772
+ }
1773
+ else
1774
+ h = !0;
1775
+ if (h) {
1776
+ if (void 0 !== e.fileName) {
1777
+ const t = u;
1778
+ if ('string' != typeof e.fileName) {
1779
+ const e = { params: { type: 'string' } };
1780
+ null === m ? (m = [e]) : m.push(e), u++;
1781
+ }
1782
+ h = t === u;
1783
+ }
1784
+ else
1785
+ h = !0;
1786
+ if (h)
1787
+ if (void 0 !== e.additionalData) {
1788
+ const t = u;
1789
+ if ('string' != typeof e.additionalData) {
1790
+ const e = { params: { type: 'string' } };
1791
+ null === m ? (m = [e]) : m.push(e), u++;
1792
+ }
1793
+ h = t === u;
1794
+ }
1795
+ else
1796
+ h = !0;
1797
+ }
1798
+ }
1799
+ }
1800
+ else {
1801
+ const e = { params: { type: 'object' } };
1802
+ null === m ? (m = [e]) : m.push(e), u++;
1803
+ }
1804
+ (d = t === u), (n = n || d);
1805
+ }
1806
+ if (!n) {
1807
+ const e = { params: {} };
1808
+ return (null === m ? (m = [e]) : m.push(e),
1809
+ u++,
1810
+ (j.errors = m),
1811
+ !1);
1812
+ }
1813
+ (u = r),
1814
+ null !== m && (r ? (m.length = r) : (m = null)),
1815
+ (c = t === u);
1816
+ }
1817
+ else
1818
+ c = !0;
1819
+ if (c) {
1820
+ if (void 0 !== o.name) {
1821
+ const e = u;
1822
+ if ('string' != typeof o.name)
1823
+ return ((j.errors = [{ params: { type: 'string' } }]), !1);
1824
+ c = e === u;
1825
+ }
1826
+ else
1827
+ c = !0;
1828
+ if (c) {
1829
+ if (void 0 !== o.remoteType) {
1830
+ let e = o.remoteType;
1831
+ const t = u, n = u;
1832
+ let s = !1, a = null;
1833
+ const i = u;
1834
+ if ('var' !== e &&
1835
+ 'module' !== e &&
1836
+ 'assign' !== e &&
1837
+ 'this' !== e &&
1838
+ 'window' !== e &&
1839
+ 'self' !== e &&
1840
+ 'global' !== e &&
1841
+ 'commonjs' !== e &&
1842
+ 'commonjs2' !== e &&
1843
+ 'commonjs-module' !== e &&
1844
+ 'commonjs-static' !== e &&
1845
+ 'amd' !== e &&
1846
+ 'amd-require' !== e &&
1847
+ 'umd' !== e &&
1848
+ 'umd2' !== e &&
1849
+ 'jsonp' !== e &&
1850
+ 'system' !== e &&
1851
+ 'promise' !== e &&
1852
+ 'import' !== e &&
1853
+ 'script' !== e &&
1854
+ 'module-import' !== e &&
1855
+ 'node-commonjs' !== e) {
1856
+ const e = { params: { allowedValues: r.enum } };
1857
+ null === m ? (m = [e]) : m.push(e), u++;
1858
+ }
1859
+ if ((i === u && ((s = !0), (a = 0)), !s)) {
1860
+ const e = { params: { passingSchemas: a } };
1861
+ return (null === m ? (m = [e]) : m.push(e),
1862
+ u++,
1863
+ (j.errors = m),
1864
+ !1);
1865
+ }
1866
+ (u = n),
1867
+ null !== m && (n ? (m.length = n) : (m = null)),
1868
+ (c = t === u);
1869
+ }
1870
+ else
1871
+ c = !0;
1872
+ if (c) {
1873
+ if (void 0 !== o.remotes) {
1874
+ const e = u;
1875
+ g(o.remotes, {
1876
+ instancePath: a + '/remotes',
1877
+ parentData: o,
1878
+ parentDataProperty: 'remotes',
1879
+ rootData: f,
1880
+ }) ||
1881
+ ((m = null === m ? g.errors : m.concat(g.errors)),
1882
+ (u = m.length)),
1883
+ (c = e === u);
1884
+ }
1885
+ else
1886
+ c = !0;
1887
+ if (c) {
1888
+ if (void 0 !== o.runtime) {
1889
+ let e = o.runtime;
1890
+ const t = u, r = u;
1891
+ let s = !1;
1892
+ const a = u;
1893
+ if (!1 !== e) {
1894
+ const e = {
1895
+ params: { allowedValues: n.anyOf[0].enum },
1896
+ };
1897
+ null === m ? (m = [e]) : m.push(e), u++;
1898
+ }
1899
+ var b = a === u;
1900
+ if (((s = s || b), !s)) {
1901
+ const t = u;
1902
+ if (u === t)
1903
+ if ('string' == typeof e) {
1904
+ if (e.length < 1) {
1905
+ const e = { params: {} };
1906
+ null === m ? (m = [e]) : m.push(e), u++;
1907
+ }
1908
+ }
1909
+ else {
1910
+ const e = { params: { type: 'string' } };
1911
+ null === m ? (m = [e]) : m.push(e), u++;
1912
+ }
1913
+ (b = t === u), (s = s || b);
1914
+ }
1915
+ if (!s) {
1916
+ const e = { params: {} };
1917
+ return (null === m ? (m = [e]) : m.push(e),
1918
+ u++,
1919
+ (j.errors = m),
1920
+ !1);
1921
+ }
1922
+ (u = r),
1923
+ null !== m && (r ? (m.length = r) : (m = null)),
1924
+ (c = t === u);
1925
+ }
1926
+ else
1927
+ c = !0;
1928
+ if (c) {
1929
+ if (void 0 !== o.runtimePlugins) {
1930
+ let e = o.runtimePlugins;
1931
+ const t = u;
1932
+ if (u === t) {
1933
+ if (!Array.isArray(e))
1934
+ return ((j.errors = [
1935
+ { params: { type: 'array' } },
1936
+ ]),
1937
+ !1);
1938
+ {
1939
+ const t = e.length;
1940
+ for (let r = 0; r < t; r++) {
1941
+ const t = u;
1942
+ if ('string' != typeof e[r])
1943
+ return ((j.errors = [
1944
+ { params: { type: 'string' } },
1945
+ ]),
1946
+ !1);
1947
+ if (t !== u)
1948
+ break;
1949
+ }
1950
+ }
1951
+ }
1952
+ c = t === u;
1953
+ }
1954
+ else
1955
+ c = !0;
1956
+ if (c) {
1957
+ if (void 0 !== o.shareScope) {
1958
+ let e = o.shareScope;
1959
+ const t = u;
1960
+ if (u === t) {
1961
+ if ('string' != typeof e)
1962
+ return ((j.errors = [
1963
+ { params: { type: 'string' } },
1964
+ ]),
1965
+ !1);
1966
+ if (e.length < 1)
1967
+ return (j.errors = [{ params: {} }]), !1;
1968
+ }
1969
+ c = t === u;
1970
+ }
1971
+ else
1972
+ c = !0;
1973
+ if (c) {
1974
+ if (void 0 !== o.shareStrategy) {
1975
+ let e = o.shareStrategy;
1976
+ const r = u;
1977
+ if ('version-first' !== e &&
1978
+ 'loaded-first' !== e)
1979
+ return ((j.errors = [
1980
+ {
1981
+ params: {
1982
+ allowedValues: t.properties.shareStrategy.enum,
1983
+ },
1984
+ },
1985
+ ]),
1986
+ !1);
1987
+ c = r === u;
1988
+ }
1989
+ else
1990
+ c = !0;
1991
+ if (c) {
1992
+ if (void 0 !== o.shared) {
1993
+ const e = u;
1994
+ P(o.shared, {
1995
+ instancePath: a + '/shared',
1996
+ parentData: o,
1997
+ parentDataProperty: 'shared',
1998
+ rootData: f,
1999
+ }) ||
2000
+ ((m =
2001
+ null === m
2002
+ ? P.errors
2003
+ : m.concat(P.errors)),
2004
+ (u = m.length)),
2005
+ (c = e === u);
2006
+ }
2007
+ else
2008
+ c = !0;
2009
+ if (c) {
2010
+ if (void 0 !== o.virtualRuntimeEntry) {
2011
+ const e = u;
2012
+ if ('boolean' !=
2013
+ typeof o.virtualRuntimeEntry)
2014
+ return ((j.errors = [
2015
+ { params: { type: 'boolean' } },
2016
+ ]),
2017
+ !1);
2018
+ c = e === u;
2019
+ }
2020
+ else
2021
+ c = !0;
2022
+ if (c) {
2023
+ if (void 0 !== o.dev) {
2024
+ let e = o.dev;
2025
+ const t = u, r = u;
2026
+ let n = !1;
2027
+ const s = u;
2028
+ if ('boolean' != typeof e) {
2029
+ const e = {
2030
+ params: { type: 'boolean' },
2031
+ };
2032
+ null === m ? (m = [e]) : m.push(e),
2033
+ u++;
2034
+ }
2035
+ var v = s === u;
2036
+ if (((n = n || v), !n)) {
2037
+ const t = u;
2038
+ if (u === t)
2039
+ if (e &&
2040
+ 'object' == typeof e &&
2041
+ !Array.isArray(e)) {
2042
+ if (void 0 !== e.disableLiveReload) {
2043
+ const t = u;
2044
+ if ('boolean' !=
2045
+ typeof e.disableLiveReload) {
2046
+ const e = {
2047
+ params: {
2048
+ type: 'boolean',
2049
+ },
2050
+ };
2051
+ null === m
2052
+ ? (m = [e])
2053
+ : m.push(e),
2054
+ u++;
2055
+ }
2056
+ var D = t === u;
2057
+ }
2058
+ else
2059
+ D = !0;
2060
+ if (D) {
2061
+ if (void 0 !==
2062
+ e.disableHotTypesReload) {
2063
+ const t = u;
2064
+ if ('boolean' !=
2065
+ typeof e.disableHotTypesReload) {
2066
+ const e = {
2067
+ params: {
2068
+ type: 'boolean',
2069
+ },
2070
+ };
2071
+ null === m
2072
+ ? (m = [e])
2073
+ : m.push(e),
2074
+ u++;
2075
+ }
2076
+ D = t === u;
2077
+ }
2078
+ else
2079
+ D = !0;
2080
+ if (D)
2081
+ if (void 0 !==
2082
+ e.disableDynamicRemoteTypeHints) {
2083
+ const t = u;
2084
+ if ('boolean' !=
2085
+ typeof e.disableDynamicRemoteTypeHints) {
2086
+ const e = {
2087
+ params: {
2088
+ type: 'boolean',
2089
+ },
2090
+ };
2091
+ null === m
2092
+ ? (m = [e])
2093
+ : m.push(e),
2094
+ u++;
2095
+ }
2096
+ D = t === u;
2097
+ }
2098
+ else
2099
+ D = !0;
2100
+ }
2101
+ }
2102
+ else {
2103
+ const e = {
2104
+ params: { type: 'object' },
2105
+ };
2106
+ null === m
2107
+ ? (m = [e])
2108
+ : m.push(e),
2109
+ u++;
2110
+ }
2111
+ (v = t === u), (n = n || v);
2112
+ }
2113
+ if (!n) {
2114
+ const e = { params: {} };
2115
+ return (null === m
2116
+ ? (m = [e])
2117
+ : m.push(e),
2118
+ u++,
2119
+ (j.errors = m),
2120
+ !1);
2121
+ }
2122
+ (u = r),
2123
+ null !== m &&
2124
+ (r ? (m.length = r) : (m = null)),
2125
+ (c = t === u);
2126
+ }
2127
+ else
2128
+ c = !0;
2129
+ if (c) {
2130
+ if (void 0 !== o.dts) {
2131
+ let e = o.dts;
2132
+ const r = u, n = u;
2133
+ let s = !1;
2134
+ const a = u;
2135
+ if ('boolean' != typeof e) {
2136
+ const e = {
2137
+ params: { type: 'boolean' },
2138
+ };
2139
+ null === m
2140
+ ? (m = [e])
2141
+ : m.push(e),
2142
+ u++;
2143
+ }
2144
+ var A = a === u;
2145
+ if (((s = s || A), !s)) {
2146
+ const r = u;
2147
+ if (u === r)
2148
+ if (e &&
2149
+ 'object' == typeof e &&
2150
+ !Array.isArray(e)) {
2151
+ if (void 0 !== e.generateTypes) {
2152
+ let r = e.generateTypes;
2153
+ const n = u, s = u;
2154
+ let o = !1;
2155
+ const a = u;
2156
+ if ('boolean' != typeof r) {
2157
+ const e = {
2158
+ params: {
2159
+ type: 'boolean',
2160
+ },
2161
+ };
2162
+ null === m
2163
+ ? (m = [e])
2164
+ : m.push(e),
2165
+ u++;
2166
+ }
2167
+ var x = a === u;
2168
+ if (((o = o || x), !o)) {
2169
+ const e = u;
2170
+ if (u === e)
2171
+ if (r &&
2172
+ 'object' ==
2173
+ typeof r &&
2174
+ !Array.isArray(r)) {
2175
+ if (void 0 !==
2176
+ r.tsConfigPath) {
2177
+ const e = u;
2178
+ if ('string' !=
2179
+ typeof r.tsConfigPath) {
2180
+ const e = {
2181
+ params: {
2182
+ type: 'string',
2183
+ },
2184
+ };
2185
+ null === m
2186
+ ? (m = [e])
2187
+ : m.push(e),
2188
+ u++;
2189
+ }
2190
+ var O = e === u;
2191
+ }
2192
+ else
2193
+ O = !0;
2194
+ if (O) {
2195
+ if (void 0 !==
2196
+ r.typesFolder) {
2197
+ const e = u;
2198
+ if ('string' !=
2199
+ typeof r.typesFolder) {
2200
+ const e = {
2201
+ params: {
2202
+ type: 'string',
2203
+ },
2204
+ };
2205
+ null === m
2206
+ ? (m = [e])
2207
+ : m.push(e),
2208
+ u++;
2209
+ }
2210
+ O = e === u;
2211
+ }
2212
+ else
2213
+ O = !0;
2214
+ if (O) {
2215
+ if (void 0 !==
2216
+ r.compiledTypesFolder) {
2217
+ const e = u;
2218
+ if ('string' !=
2219
+ typeof r.compiledTypesFolder) {
2220
+ const e = {
2221
+ params: {
2222
+ type: 'string',
2223
+ },
2224
+ };
2225
+ null === m
2226
+ ? (m = [e])
2227
+ : m.push(e),
2228
+ u++;
2229
+ }
2230
+ O = e === u;
2231
+ }
2232
+ else
2233
+ O = !0;
2234
+ if (O) {
2235
+ if (void 0 !==
2236
+ r.deleteTypesFolder) {
2237
+ const e = u;
2238
+ if ('boolean' !=
2239
+ typeof r.deleteTypesFolder) {
2240
+ const e = {
2241
+ params: {
2242
+ type: 'boolean',
2243
+ },
2244
+ };
2245
+ null === m
2246
+ ? (m = [
2247
+ e,
2248
+ ])
2249
+ : m.push(e),
2250
+ u++;
2251
+ }
2252
+ O = e === u;
2253
+ }
2254
+ else
2255
+ O = !0;
2256
+ if (O) {
2257
+ if (void 0 !==
2258
+ r.additionalFilesToCompile) {
2259
+ let e = r.additionalFilesToCompile;
2260
+ const t = u;
2261
+ if (u === t)
2262
+ if (Array.isArray(e)) {
2263
+ const t = e.length;
2264
+ for (let r = 0; r < t; r++) {
2265
+ const t = u;
2266
+ if ('string' !=
2267
+ typeof e[r]) {
2268
+ const e = {
2269
+ params: {
2270
+ type: 'string',
2271
+ },
2272
+ };
2273
+ null ===
2274
+ m
2275
+ ? (m =
2276
+ [
2277
+ e,
2278
+ ])
2279
+ : m.push(e),
2280
+ u++;
2281
+ }
2282
+ if (t !==
2283
+ u)
2284
+ break;
2285
+ }
2286
+ }
2287
+ else {
2288
+ const e = {
2289
+ params: {
2290
+ type: 'array',
2291
+ },
2292
+ };
2293
+ null ===
2294
+ m
2295
+ ? (m =
2296
+ [
2297
+ e,
2298
+ ])
2299
+ : m.push(e),
2300
+ u++;
2301
+ }
2302
+ O = t === u;
2303
+ }
2304
+ else
2305
+ O = !0;
2306
+ if (O) {
2307
+ if (void 0 !==
2308
+ r.compileInChildProcess) {
2309
+ const e = u;
2310
+ if ('boolean' !=
2311
+ typeof r.compileInChildProcess) {
2312
+ const e = {
2313
+ params: {
2314
+ type: 'boolean',
2315
+ },
2316
+ };
2317
+ null ===
2318
+ m
2319
+ ? (m =
2320
+ [
2321
+ e,
2322
+ ])
2323
+ : m.push(e),
2324
+ u++;
2325
+ }
2326
+ O =
2327
+ e === u;
2328
+ }
2329
+ else
2330
+ O = !0;
2331
+ if (O) {
2332
+ if (void 0 !==
2333
+ r.compilerInstance) {
2334
+ let e = r.compilerInstance;
2335
+ const n = u;
2336
+ if ('tsc' !==
2337
+ e &&
2338
+ 'vue-tsc' !==
2339
+ e) {
2340
+ const e = {
2341
+ params: {
2342
+ allowedValues: t
2343
+ .properties
2344
+ .dts
2345
+ .anyOf[1]
2346
+ .properties
2347
+ .generateTypes
2348
+ .anyOf[1]
2349
+ .properties
2350
+ .compilerInstance
2351
+ .enum,
2352
+ },
2353
+ };
2354
+ null ===
2355
+ m
2356
+ ? (m =
2357
+ [
2358
+ e,
2359
+ ])
2360
+ : m.push(e),
2361
+ u++;
2362
+ }
2363
+ O =
2364
+ n ===
2365
+ u;
2366
+ }
2367
+ else
2368
+ O = !0;
2369
+ if (O) {
2370
+ if (void 0 !==
2371
+ r.generateAPITypes) {
2372
+ const e = u;
2373
+ if ('boolean' !=
2374
+ typeof r.generateAPITypes) {
2375
+ const e = {
2376
+ params: {
2377
+ type: 'boolean',
2378
+ },
2379
+ };
2380
+ null ===
2381
+ m
2382
+ ? (m =
2383
+ [
2384
+ e,
2385
+ ])
2386
+ : m.push(e),
2387
+ u++;
2388
+ }
2389
+ O =
2390
+ e ===
2391
+ u;
2392
+ }
2393
+ else
2394
+ O =
2395
+ !0;
2396
+ if (O) {
2397
+ if (void 0 !==
2398
+ r.extractThirdParty) {
2399
+ const e = u;
2400
+ if ('boolean' !=
2401
+ typeof r.extractThirdParty) {
2402
+ const e = {
2403
+ params: {
2404
+ type: 'boolean',
2405
+ },
2406
+ };
2407
+ null ===
2408
+ m
2409
+ ? (m =
2410
+ [
2411
+ e,
2412
+ ])
2413
+ : m.push(e),
2414
+ u++;
2415
+ }
2416
+ O =
2417
+ e ===
2418
+ u;
2419
+ }
2420
+ else
2421
+ O =
2422
+ !0;
2423
+ if (O) {
2424
+ if (void 0 !==
2425
+ r.extractRemoteTypes) {
2426
+ const e = u;
2427
+ if ('boolean' !=
2428
+ typeof r.extractRemoteTypes) {
2429
+ const e = {
2430
+ params: {
2431
+ type: 'boolean',
2432
+ },
2433
+ };
2434
+ null ===
2435
+ m
2436
+ ? (m =
2437
+ [
2438
+ e,
2439
+ ])
2440
+ : m.push(e),
2441
+ u++;
2442
+ }
2443
+ O =
2444
+ e ===
2445
+ u;
2446
+ }
2447
+ else
2448
+ O =
2449
+ !0;
2450
+ if (O)
2451
+ if (void 0 !==
2452
+ r.abortOnError) {
2453
+ const e = u;
2454
+ if ('boolean' !=
2455
+ typeof r.abortOnError) {
2456
+ const e = {
2457
+ params: {
2458
+ type: 'boolean',
2459
+ },
2460
+ };
2461
+ null ===
2462
+ m
2463
+ ? (m =
2464
+ [
2465
+ e,
2466
+ ])
2467
+ : m.push(e),
2468
+ u++;
2469
+ }
2470
+ O =
2471
+ e ===
2472
+ u;
2473
+ }
2474
+ else
2475
+ O =
2476
+ !0;
2477
+ }
2478
+ }
2479
+ }
2480
+ }
2481
+ }
2482
+ }
2483
+ }
2484
+ }
2485
+ }
2486
+ }
2487
+ else {
2488
+ const e = {
2489
+ params: {
2490
+ type: 'object',
2491
+ },
2492
+ };
2493
+ null === m
2494
+ ? (m = [e])
2495
+ : m.push(e),
2496
+ u++;
2497
+ }
2498
+ (x = e === u),
2499
+ (o = o || x);
2500
+ }
2501
+ if (o)
2502
+ (u = s),
2503
+ null !== m &&
2504
+ (s
2505
+ ? (m.length = s)
2506
+ : (m = null));
2507
+ else {
2508
+ const e = { params: {} };
2509
+ null === m
2510
+ ? (m = [e])
2511
+ : m.push(e),
2512
+ u++;
2513
+ }
2514
+ var T = n === u;
2515
+ }
2516
+ else
2517
+ T = !0;
2518
+ if (T) {
2519
+ if (void 0 !== e.consumeTypes) {
2520
+ let t = e.consumeTypes;
2521
+ const r = u, n = u;
2522
+ let s = !1;
2523
+ const o = u;
2524
+ if ('boolean' != typeof t) {
2525
+ const e = {
2526
+ params: {
2527
+ type: 'boolean',
2528
+ },
2529
+ };
2530
+ null === m
2531
+ ? (m = [e])
2532
+ : m.push(e),
2533
+ u++;
2534
+ }
2535
+ var R = o === u;
2536
+ if (((s = s || R), !s)) {
2537
+ const e = u;
2538
+ if (u === e)
2539
+ if (t &&
2540
+ 'object' ==
2541
+ typeof t &&
2542
+ !Array.isArray(t)) {
2543
+ if (void 0 !==
2544
+ t.typesFolder) {
2545
+ const e = u;
2546
+ if ('string' !=
2547
+ typeof t.typesFolder) {
2548
+ const e = {
2549
+ params: {
2550
+ type: 'string',
2551
+ },
2552
+ };
2553
+ null === m
2554
+ ? (m = [e])
2555
+ : m.push(e),
2556
+ u++;
2557
+ }
2558
+ var $ = e === u;
2559
+ }
2560
+ else
2561
+ $ = !0;
2562
+ if ($) {
2563
+ if (void 0 !==
2564
+ t.abortOnError) {
2565
+ const e = u;
2566
+ if ('boolean' !=
2567
+ typeof t.abortOnError) {
2568
+ const e = {
2569
+ params: {
2570
+ type: 'boolean',
2571
+ },
2572
+ };
2573
+ null === m
2574
+ ? (m = [e])
2575
+ : m.push(e),
2576
+ u++;
2577
+ }
2578
+ $ = e === u;
2579
+ }
2580
+ else
2581
+ $ = !0;
2582
+ if ($) {
2583
+ if (void 0 !==
2584
+ t.remoteTypesFolder) {
2585
+ const e = u;
2586
+ if ('string' !=
2587
+ typeof t.remoteTypesFolder) {
2588
+ const e = {
2589
+ params: {
2590
+ type: 'string',
2591
+ },
2592
+ };
2593
+ null === m
2594
+ ? (m = [
2595
+ e,
2596
+ ])
2597
+ : m.push(e),
2598
+ u++;
2599
+ }
2600
+ $ = e === u;
2601
+ }
2602
+ else
2603
+ $ = !0;
2604
+ if ($) {
2605
+ if (void 0 !==
2606
+ t.deleteTypesFolder) {
2607
+ const e = u;
2608
+ if ('boolean' !=
2609
+ typeof t.deleteTypesFolder) {
2610
+ const e = {
2611
+ params: {
2612
+ type: 'boolean',
2613
+ },
2614
+ };
2615
+ null === m
2616
+ ? (m = [
2617
+ e,
2618
+ ])
2619
+ : m.push(e),
2620
+ u++;
2621
+ }
2622
+ $ = e === u;
2623
+ }
2624
+ else
2625
+ $ = !0;
2626
+ if ($) {
2627
+ if (void 0 !==
2628
+ t.maxRetries) {
2629
+ const e = u;
2630
+ if ('number' !=
2631
+ typeof t.maxRetries) {
2632
+ const e = {
2633
+ params: {
2634
+ type: 'number',
2635
+ },
2636
+ };
2637
+ null ===
2638
+ m
2639
+ ? (m =
2640
+ [
2641
+ e,
2642
+ ])
2643
+ : m.push(e),
2644
+ u++;
2645
+ }
2646
+ $ =
2647
+ e === u;
2648
+ }
2649
+ else
2650
+ $ = !0;
2651
+ if ($) {
2652
+ if (void 0 !==
2653
+ t.consumeAPITypes) {
2654
+ const e = u;
2655
+ if ('boolean' !=
2656
+ typeof t.consumeAPITypes) {
2657
+ const e = {
2658
+ params: {
2659
+ type: 'boolean',
2660
+ },
2661
+ };
2662
+ null ===
2663
+ m
2664
+ ? (m =
2665
+ [
2666
+ e,
2667
+ ])
2668
+ : m.push(e),
2669
+ u++;
2670
+ }
2671
+ $ =
2672
+ e ===
2673
+ u;
2674
+ }
2675
+ else
2676
+ $ = !0;
2677
+ if ($)
2678
+ if (void 0 !==
2679
+ t.runtimePkgs) {
2680
+ let e = t.runtimePkgs;
2681
+ const r = u;
2682
+ if (u ===
2683
+ r)
2684
+ if (Array.isArray(e)) {
2685
+ const t = e.length;
2686
+ for (let r = 0; r <
2687
+ t; r++) {
2688
+ const t = u;
2689
+ if ('string' !=
2690
+ typeof e[r]) {
2691
+ const e = {
2692
+ params: {
2693
+ type: 'string',
2694
+ },
2695
+ };
2696
+ null ===
2697
+ m
2698
+ ? (m =
2699
+ [
2700
+ e,
2701
+ ])
2702
+ : m.push(e),
2703
+ u++;
2704
+ }
2705
+ if (t !==
2706
+ u)
2707
+ break;
2708
+ }
2709
+ }
2710
+ else {
2711
+ const e = {
2712
+ params: {
2713
+ type: 'array',
2714
+ },
2715
+ };
2716
+ null ===
2717
+ m
2718
+ ? (m =
2719
+ [
2720
+ e,
2721
+ ])
2722
+ : m.push(e),
2723
+ u++;
2724
+ }
2725
+ $ =
2726
+ r ===
2727
+ u;
2728
+ }
2729
+ else
2730
+ $ =
2731
+ !0;
2732
+ }
2733
+ }
2734
+ }
2735
+ }
2736
+ }
2737
+ }
2738
+ else {
2739
+ const e = {
2740
+ params: {
2741
+ type: 'object',
2742
+ },
2743
+ };
2744
+ null === m
2745
+ ? (m = [e])
2746
+ : m.push(e),
2747
+ u++;
2748
+ }
2749
+ (R = e === u),
2750
+ (s = s || R);
2751
+ }
2752
+ if (s)
2753
+ (u = n),
2754
+ null !== m &&
2755
+ (n
2756
+ ? (m.length = n)
2757
+ : (m = null));
2758
+ else {
2759
+ const e = {
2760
+ params: {},
2761
+ };
2762
+ null === m
2763
+ ? (m = [e])
2764
+ : m.push(e),
2765
+ u++;
2766
+ }
2767
+ T = r === u;
2768
+ }
2769
+ else
2770
+ T = !0;
2771
+ if (T) {
2772
+ if (void 0 !==
2773
+ e.tsConfigPath) {
2774
+ const t = u;
2775
+ if ('string' !=
2776
+ typeof e.tsConfigPath) {
2777
+ const e = {
2778
+ params: {
2779
+ type: 'string',
2780
+ },
2781
+ };
2782
+ null === m
2783
+ ? (m = [e])
2784
+ : m.push(e),
2785
+ u++;
2786
+ }
2787
+ T = t === u;
2788
+ }
2789
+ else
2790
+ T = !0;
2791
+ if (T) {
2792
+ if (void 0 !==
2793
+ e.extraOptions) {
2794
+ let t = e.extraOptions;
2795
+ const r = u;
2796
+ if (!t ||
2797
+ 'object' !=
2798
+ typeof t ||
2799
+ Array.isArray(t)) {
2800
+ const e = {
2801
+ params: {
2802
+ type: 'object',
2803
+ },
2804
+ };
2805
+ null === m
2806
+ ? (m = [e])
2807
+ : m.push(e),
2808
+ u++;
2809
+ }
2810
+ T = r === u;
2811
+ }
2812
+ else
2813
+ T = !0;
2814
+ if (T) {
2815
+ if (void 0 !==
2816
+ e.implementation) {
2817
+ const t = u;
2818
+ if ('string' !=
2819
+ typeof e.implementation) {
2820
+ const e = {
2821
+ params: {
2822
+ type: 'string',
2823
+ },
2824
+ };
2825
+ null === m
2826
+ ? (m = [e])
2827
+ : m.push(e),
2828
+ u++;
2829
+ }
2830
+ T = t === u;
2831
+ }
2832
+ else
2833
+ T = !0;
2834
+ if (T) {
2835
+ if (void 0 !== e.cwd) {
2836
+ const t = u;
2837
+ if ('string' !=
2838
+ typeof e.cwd) {
2839
+ const e = {
2840
+ params: {
2841
+ type: 'string',
2842
+ },
2843
+ };
2844
+ null === m
2845
+ ? (m = [e])
2846
+ : m.push(e),
2847
+ u++;
2848
+ }
2849
+ T = t === u;
2850
+ }
2851
+ else
2852
+ T = !0;
2853
+ if (T)
2854
+ if (void 0 !==
2855
+ e.displayErrorInTerminal) {
2856
+ const t = u;
2857
+ if ('boolean' !=
2858
+ typeof e.displayErrorInTerminal) {
2859
+ const e = {
2860
+ params: {
2861
+ type: 'boolean',
2862
+ },
2863
+ };
2864
+ null === m
2865
+ ? (m = [e])
2866
+ : m.push(e),
2867
+ u++;
2868
+ }
2869
+ T = t === u;
2870
+ }
2871
+ else
2872
+ T = !0;
2873
+ }
2874
+ }
2875
+ }
2876
+ }
2877
+ }
2878
+ }
2879
+ else {
2880
+ const e = {
2881
+ params: { type: 'object' },
2882
+ };
2883
+ null === m
2884
+ ? (m = [e])
2885
+ : m.push(e),
2886
+ u++;
2887
+ }
2888
+ (A = r === u), (s = s || A);
2889
+ }
2890
+ if (!s) {
2891
+ const e = { params: {} };
2892
+ return (null === m
2893
+ ? (m = [e])
2894
+ : m.push(e),
2895
+ u++,
2896
+ (j.errors = m),
2897
+ !1);
2898
+ }
2899
+ (u = n),
2900
+ null !== m &&
2901
+ (n
2902
+ ? (m.length = n)
2903
+ : (m = null)),
2904
+ (c = r === u);
2905
+ }
2906
+ else
2907
+ c = !0;
2908
+ if (c) {
2909
+ if (void 0 !== o.experiments) {
2910
+ let e = o.experiments;
2911
+ const r = u;
2912
+ if (u === r) {
2913
+ if (!e ||
2914
+ 'object' != typeof e ||
2915
+ Array.isArray(e))
2916
+ return ((j.errors = [
2917
+ {
2918
+ params: {
2919
+ type: 'object',
2920
+ },
2921
+ },
2922
+ ]),
2923
+ !1);
2924
+ if (void 0 !== e.federationRuntime) {
2925
+ let r = e.federationRuntime;
2926
+ const n = u, s = u;
2927
+ let o = !1;
2928
+ const a = u;
2929
+ if ('boolean' != typeof r) {
2930
+ const e = {
2931
+ params: {
2932
+ type: 'boolean',
2933
+ },
2934
+ };
2935
+ null === m
2936
+ ? (m = [e])
2937
+ : m.push(e),
2938
+ u++;
2939
+ }
2940
+ if (!1 !== r) {
2941
+ const e = {
2942
+ params: {
2943
+ allowedValues: t.properties
2944
+ .experiments
2945
+ .properties
2946
+ .federationRuntime
2947
+ .anyOf[0].enum,
2948
+ },
2949
+ };
2950
+ null === m
2951
+ ? (m = [e])
2952
+ : m.push(e),
2953
+ u++;
2954
+ }
2955
+ var C = a === u;
2956
+ if (((o = o || C), !o)) {
2957
+ const e = u;
2958
+ if ('string' != typeof r) {
2959
+ const e = {
2960
+ params: {
2961
+ type: 'string',
2962
+ },
2963
+ };
2964
+ null === m
2965
+ ? (m = [e])
2966
+ : m.push(e),
2967
+ u++;
2968
+ }
2969
+ if ('hoisted' !== r) {
2970
+ const e = {
2971
+ params: {
2972
+ allowedValues: t.properties
2973
+ .experiments
2974
+ .properties
2975
+ .federationRuntime
2976
+ .anyOf[1].enum,
2977
+ },
2978
+ };
2979
+ null === m
2980
+ ? (m = [e])
2981
+ : m.push(e),
2982
+ u++;
2983
+ }
2984
+ (C = e === u), (o = o || C);
2985
+ }
2986
+ if (!o) {
2987
+ const e = { params: {} };
2988
+ return (null === m
2989
+ ? (m = [e])
2990
+ : m.push(e),
2991
+ u++,
2992
+ (j.errors = m),
2993
+ !1);
2994
+ }
2995
+ (u = s),
2996
+ null !== m &&
2997
+ (s
2998
+ ? (m.length = s)
2999
+ : (m = null));
3000
+ var I = n === u;
3001
+ }
3002
+ else
3003
+ I = !0;
3004
+ if (I) {
3005
+ if (void 0 !== e.externalRuntime) {
3006
+ const t = u;
3007
+ if ('boolean' !=
3008
+ typeof e.externalRuntime)
3009
+ return ((j.errors = [
3010
+ {
3011
+ params: {
3012
+ type: 'boolean',
3013
+ },
3014
+ },
3015
+ ]),
3016
+ !1);
3017
+ I = t === u;
3018
+ }
3019
+ else
3020
+ I = !0;
3021
+ if (I)
3022
+ if (void 0 !==
3023
+ e.provideExternalRuntime) {
3024
+ const t = u;
3025
+ if ('boolean' !=
3026
+ typeof e.provideExternalRuntime)
3027
+ return ((j.errors = [
3028
+ {
3029
+ params: {
3030
+ type: 'boolean',
3031
+ },
3032
+ },
3033
+ ]),
3034
+ !1);
3035
+ I = t === u;
3036
+ }
3037
+ else
3038
+ I = !0;
3039
+ }
3040
+ }
3041
+ c = r === u;
3042
+ }
3043
+ else
3044
+ c = !0;
3045
+ if (c)
3046
+ if (void 0 !== o.bridge) {
3047
+ let e = o.bridge;
3048
+ const t = u;
3049
+ if (u === t) {
3050
+ if (!e ||
3051
+ 'object' != typeof e ||
3052
+ Array.isArray(e))
3053
+ return ((j.errors = [
3054
+ {
3055
+ params: {
3056
+ type: 'object',
3057
+ },
3058
+ },
3059
+ ]),
3060
+ !1);
3061
+ if (void 0 !== e.disableAlias &&
3062
+ 'boolean' !=
3063
+ typeof e.disableAlias)
3064
+ return ((j.errors = [
3065
+ {
3066
+ params: {
3067
+ type: 'boolean',
3068
+ },
3069
+ },
3070
+ ]),
3071
+ !1);
3072
+ }
3073
+ c = t === u;
3074
+ }
3075
+ else
3076
+ c = !0;
3077
+ }
3078
+ }
3079
+ }
3080
+ }
3081
+ }
3082
+ }
3083
+ }
3084
+ }
3085
+ }
3086
+ }
3087
+ }
3088
+ }
3089
+ }
3090
+ }
3091
+ }
3092
+ }
3093
+ }
3094
+ }
3095
+ }
3096
+ }
3097
+ }
3098
+ return (j.errors = m), 0 === u;
3099
+ }
3100
+ //# sourceMappingURL=ModuleFederationPlugin.check.js.map