@zenwave360/architecture-graph 0.0.0-stage → 1.0.0-next.23.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.
Files changed (31) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +474 -2
  3. package/kotlin/antlr-kotlin-antlr-kotlin-runtime.js +9497 -0
  4. package/kotlin/antlr-kotlin-antlr-kotlin-runtime.js.map +1 -0
  5. package/kotlin/dsl-kotlin.js +17039 -0
  6. package/kotlin/dsl-kotlin.js.map +1 -0
  7. package/kotlin/json-schema-ref-parser-kmp.js +2491 -0
  8. package/kotlin/json-schema-ref-parser-kmp.js.map +1 -0
  9. package/kotlin/kotlin-kotlin-stdlib.js +10593 -0
  10. package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
  11. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  12. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  13. package/kotlin/kotlinx-atomicfu.js +174 -0
  14. package/kotlin/kotlinx-atomicfu.js.map +1 -0
  15. package/kotlin/kotlinx-coroutines-core.js +3577 -0
  16. package/kotlin/kotlinx-coroutines-core.js.map +1 -0
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +15 -0
  18. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  19. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +15 -0
  20. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  21. package/kotlin/okio-parent-okio.js +2510 -0
  22. package/kotlin/okio-parent-okio.js.map +1 -0
  23. package/kotlin/snakeyaml-engine-kmp.js +5842 -0
  24. package/kotlin/snakeyaml-engine-kmp.js.map +1 -0
  25. package/kotlin/urlencoder-urlencoder-lib.js +322 -0
  26. package/kotlin/urlencoder-urlencoder-lib.js.map +1 -0
  27. package/kotlin/zenwave-architecture-architecture-graph.js +26 -0
  28. package/kotlin/zenwave-architecture-architecture-graph.js.map +1 -0
  29. package/kotlin/zenwave-architecture-architecture-manifest.js +15 -0
  30. package/kotlin/zenwave-architecture-architecture-manifest.js.map +1 -0
  31. package/package.json +21 -3
@@ -0,0 +1,2491 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './snakeyaml-engine-kmp.js', './kotlinx-coroutines-core.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./snakeyaml-engine-kmp.js'), require('./kotlinx-coroutines-core.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'json-schema-ref-parser-kmp'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'json-schema-ref-parser-kmp'.");
9
+ }
10
+ if (typeof globalThis['snakeyaml-engine-kmp'] === 'undefined') {
11
+ throw new Error("Error loading module 'json-schema-ref-parser-kmp'. Its dependency 'snakeyaml-engine-kmp' was not found. Please, check whether 'snakeyaml-engine-kmp' is loaded prior to 'json-schema-ref-parser-kmp'.");
12
+ }
13
+ if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
14
+ throw new Error("Error loading module 'json-schema-ref-parser-kmp'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'json-schema-ref-parser-kmp'.");
15
+ }
16
+ globalThis['json-schema-ref-parser-kmp'] = factory(typeof globalThis['json-schema-ref-parser-kmp'] === 'undefined' ? {} : globalThis['json-schema-ref-parser-kmp'], globalThis['kotlin-kotlin-stdlib'], globalThis['snakeyaml-engine-kmp'], globalThis['kotlinx-coroutines-core']);
17
+ }
18
+ }(function (_, kotlin_kotlin, kotlin_it_krzeminski_snakeyaml_engine_kmp, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
19
+ 'use strict';
20
+ //region block: imports
21
+ var imul = Math.imul;
22
+ var emptyList = kotlin_kotlin.$_$.j3;
23
+ var charSequenceLength = kotlin_kotlin.$_$.j6;
24
+ var startsWith = kotlin_kotlin.$_$.m8;
25
+ var toString = kotlin_kotlin.$_$.f7;
26
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.x;
27
+ var Unit_instance = kotlin_kotlin.$_$.d2;
28
+ var drop = kotlin_kotlin.$_$.u7;
29
+ var split = kotlin_kotlin.$_$.l8;
30
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.w2;
31
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
32
+ var replace = kotlin_kotlin.$_$.j8;
33
+ var protoOf = kotlin_kotlin.$_$.d7;
34
+ var initMetadataForCompanion = kotlin_kotlin.$_$.r6;
35
+ var plus = kotlin_kotlin.$_$.k4;
36
+ var toIntOrNull = kotlin_kotlin.$_$.x8;
37
+ var getOrNull = kotlin_kotlin.$_$.s3;
38
+ var KtList = kotlin_kotlin.$_$.i2;
39
+ var isInterface = kotlin_kotlin.$_$.z6;
40
+ var THROW_CCE = kotlin_kotlin.$_$.u9;
41
+ var KtMap = kotlin_kotlin.$_$.j2;
42
+ var joinToString = kotlin_kotlin.$_$.v3;
43
+ var hashCode = kotlin_kotlin.$_$.p6;
44
+ var equals = kotlin_kotlin.$_$.m6;
45
+ var initMetadataForClass = kotlin_kotlin.$_$.q6;
46
+ var listOf = kotlin_kotlin.$_$.a4;
47
+ var plus_0 = kotlin_kotlin.$_$.j4;
48
+ var VOID = kotlin_kotlin.$_$.a;
49
+ var removePrefix = kotlin_kotlin.$_$.f8;
50
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r1;
51
+ var indexOf = kotlin_kotlin.$_$.z7;
52
+ var replace_0 = kotlin_kotlin.$_$.k8;
53
+ var CoroutineImpl = kotlin_kotlin.$_$.l5;
54
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a1;
55
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.w4;
56
+ var toMutableMap = kotlin_kotlin.$_$.t4;
57
+ var to = kotlin_kotlin.$_$.ea;
58
+ var mutableMapOf = kotlin_kotlin.$_$.h4;
59
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.s6;
60
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.k;
61
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
62
+ var Enum = kotlin_kotlin.$_$.l9;
63
+ var emptyMap = kotlin_kotlin.$_$.k3;
64
+ var toString_0 = kotlin_kotlin.$_$.da;
65
+ var getBooleanHashCode = kotlin_kotlin.$_$.n6;
66
+ var getStringHashCode = kotlin_kotlin.$_$.o6;
67
+ var RuntimeException = kotlin_kotlin.$_$.t9;
68
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.k1;
69
+ var captureStack = kotlin_kotlin.$_$.e6;
70
+ var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.m1;
71
+ var Compose = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.a;
72
+ var KtMutableMap = kotlin_kotlin.$_$.n2;
73
+ var ScalarNode = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.d;
74
+ var checkIndexOverflow = kotlin_kotlin.$_$.v2;
75
+ var toMutableList = kotlin_kotlin.$_$.s4;
76
+ var SequenceNode = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.e;
77
+ var MappingNode = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.c;
78
+ var toLongOrNull = kotlin_kotlin.$_$.a9;
79
+ var toDoubleOrNull = kotlin_kotlin.$_$.v8;
80
+ var LoadSettings = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.b;
81
+ var contains = kotlin_kotlin.$_$.p7;
82
+ var initMetadataForObject = kotlin_kotlin.$_$.v6;
83
+ var UnsupportedOperationException = kotlin_kotlin.$_$.v9;
84
+ var UnsupportedOperationException_init_$Init$ = kotlin_kotlin.$_$.p1;
85
+ var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.m;
86
+ var KtMutableList = kotlin_kotlin.$_$.l2;
87
+ var toList = kotlin_kotlin.$_$.q4;
88
+ var Collection = kotlin_kotlin.$_$.h2;
89
+ var get_lastIndex = kotlin_kotlin.$_$.x3;
90
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.z9;
91
+ var get_indices = kotlin_kotlin.$_$.t3;
92
+ var Exception = kotlin_kotlin.$_$.n9;
93
+ var indexOf_0 = kotlin_kotlin.$_$.y7;
94
+ var substring = kotlin_kotlin.$_$.q8;
95
+ var substring_0 = kotlin_kotlin.$_$.p8;
96
+ var substringBeforeLast = kotlin_kotlin.$_$.n8;
97
+ var mapOf = kotlin_kotlin.$_$.d4;
98
+ var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
99
+ var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
100
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
101
+ var initMetadataForLambda = kotlin_kotlin.$_$.u6;
102
+ var listOf_0 = kotlin_kotlin.$_$.b4;
103
+ var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
104
+ var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.l1;
105
+ var substringBefore = kotlin_kotlin.$_$.o8;
106
+ var Regex_init_$Create$ = kotlin_kotlin.$_$.p;
107
+ //endregion
108
+ //region block: pre-declaration
109
+ initMetadataForCompanion(Companion);
110
+ initMetadataForClass(JsonPointer, 'JsonPointer');
111
+ initMetadataForCompanion(Companion_0);
112
+ initMetadataForCoroutine($parseCOROUTINE$, CoroutineImpl);
113
+ initMetadataForCoroutine($dereferenceCOROUTINE$, CoroutineImpl);
114
+ initMetadataForClass(RefParser, 'RefParser', VOID, VOID, VOID, [0]);
115
+ initMetadataForClass(InMemoryLoader, 'InMemoryLoader', VOID, VOID, VOID, [1]);
116
+ initMetadataForClass(AuthenticationType, 'AuthenticationType', VOID, Enum);
117
+ initMetadataForClass(ParsedDocument, 'ParsedDocument');
118
+ initMetadataForClass(ResolvedRef, 'ResolvedRef');
119
+ initMetadataForClass(OriginalAllOf, 'OriginalAllOf');
120
+ initMetadataForClass(RefParserOptions, 'RefParserOptions', RefParserOptions);
121
+ initMetadataForClass(OnCircular, 'OnCircular', VOID, Enum);
122
+ initMetadataForClass(OnMissing, 'OnMissing', VOID, Enum);
123
+ initMetadataForClass(CircularReferenceException, 'CircularReferenceException', VOID, RuntimeException);
124
+ initMetadataForClass(MissingRefException, 'MissingRefException', VOID, RuntimeException);
125
+ initMetadataForClass(SourceLocation, 'SourceLocation');
126
+ initMetadataForClass(RawDocument, 'RawDocument');
127
+ initMetadataForObject(RefParserPlatform, 'RefParserPlatform');
128
+ initMetadataForClass(CapabilityUnavailableException, 'CapabilityUnavailableException', VOID, UnsupportedOperationException);
129
+ initMetadataForClass(ResolvingContext, 'ResolvingContext');
130
+ initMetadataForClass(IdentityStack, 'IdentityStack', IdentityStack);
131
+ initMetadataForClass(AllOfAccumulator, 'AllOfAccumulator', AllOfAccumulator);
132
+ initMetadataForCoroutine($resolveDocumentCOROUTINE$, CoroutineImpl);
133
+ initMetadataForCoroutine($resolveValueCOROUTINE$, CoroutineImpl);
134
+ initMetadataForCoroutine($resolveRefCOROUTINE$, CoroutineImpl);
135
+ initMetadataForCoroutine($loadFileCOROUTINE$, CoroutineImpl);
136
+ initMetadataForCompanion(Companion_1);
137
+ initMetadataForClass(SchemaRef, 'SchemaRef');
138
+ initMetadataForClass(SchemaRefFormat, 'SchemaRefFormat', VOID, Enum);
139
+ initMetadataForLambda(dereferenceSchema$slambda, CoroutineImpl, VOID, [1]);
140
+ initMetadataForLambda(dereferenceSchemaText$slambda, CoroutineImpl, VOID, [1]);
141
+ initMetadataForCoroutine($loadCOROUTINE$, CoroutineImpl);
142
+ initMetadataForClass(FetchLoader, 'FetchLoader', FetchLoader, VOID, VOID, [1]);
143
+ initMetadataForCoroutine($readUtf8FileCOROUTINE$, CoroutineImpl);
144
+ initMetadataForClass(NodeFsLoader, 'NodeFsLoader', NodeFsLoader, VOID, VOID, [1]);
145
+ initMetadataForCoroutine($nodeFsCOROUTINE$, CoroutineImpl);
146
+ initMetadataForCoroutine($resolveNodeFsCOROUTINE$, CoroutineImpl);
147
+ //endregion
148
+ function Companion() {
149
+ Companion_instance = this;
150
+ this.h1c_1 = new JsonPointer(emptyList());
151
+ }
152
+ protoOf(Companion).i1c = function (pointer) {
153
+ // Inline function 'kotlin.text.isEmpty' call
154
+ if (charSequenceLength(pointer) === 0)
155
+ return this.h1c_1;
156
+ // Inline function 'kotlin.require' call
157
+ if (!startsWith(pointer, '/')) {
158
+ var message = 'JSON Pointer must start with /: ' + pointer;
159
+ throw IllegalArgumentException_init_$Create$(toString(message));
160
+ }
161
+ // Inline function 'kotlin.collections.map' call
162
+ var this_0 = split(drop(pointer, 1), ['/']);
163
+ // Inline function 'kotlin.collections.mapTo' call
164
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
165
+ var _iterator__ex2g4s = this_0.i();
166
+ while (_iterator__ex2g4s.j()) {
167
+ var item = _iterator__ex2g4s.k();
168
+ var tmp$ret$3 = replace(replace(item, '~1', '/'), '~0', '~');
169
+ destination.g(tmp$ret$3);
170
+ }
171
+ return new JsonPointer(destination);
172
+ };
173
+ protoOf(Companion).j1c = function (fragment) {
174
+ var tmp;
175
+ var tmp_0;
176
+ // Inline function 'kotlin.text.isEmpty' call
177
+ if (charSequenceLength(fragment) === 0) {
178
+ tmp_0 = true;
179
+ } else {
180
+ tmp_0 = fragment === '#';
181
+ }
182
+ if (tmp_0) {
183
+ tmp = true;
184
+ } else {
185
+ tmp = fragment === '#/';
186
+ }
187
+ if (tmp)
188
+ return this.h1c_1;
189
+ var pointer = startsWith(fragment, '#') ? drop(fragment, 1) : fragment;
190
+ return this.i1c(pointer);
191
+ };
192
+ var Companion_instance;
193
+ function Companion_getInstance() {
194
+ if (Companion_instance == null)
195
+ new Companion();
196
+ return Companion_instance;
197
+ }
198
+ function JsonPointer(tokens) {
199
+ Companion_getInstance();
200
+ this.k1c_1 = tokens;
201
+ }
202
+ protoOf(JsonPointer).l1c = function (key) {
203
+ return new JsonPointer(plus(this.k1c_1, replace(replace(key, '~', '~0'), '/', '~1')));
204
+ };
205
+ protoOf(JsonPointer).m1c = function (index) {
206
+ return new JsonPointer(plus(this.k1c_1, index.toString()));
207
+ };
208
+ protoOf(JsonPointer).n1c = function (document) {
209
+ var current = document;
210
+ var _iterator__ex2g4s = this.k1c_1.i();
211
+ while (_iterator__ex2g4s.j()) {
212
+ var token = _iterator__ex2g4s.k();
213
+ var tmp0_subject = current;
214
+ var tmp;
215
+ if (!(tmp0_subject == null) ? isInterface(tmp0_subject, KtMap) : false) {
216
+ // Inline function 'kotlin.collections.get' call
217
+ var this_0 = current;
218
+ tmp = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r1(token);
219
+ } else {
220
+ if (!(tmp0_subject == null) ? isInterface(tmp0_subject, KtList) : false) {
221
+ var tmp_0 = current;
222
+ var tmp1_elvis_lhs = toIntOrNull(token);
223
+ var tmp_1;
224
+ if (tmp1_elvis_lhs == null) {
225
+ return null;
226
+ } else {
227
+ tmp_1 = tmp1_elvis_lhs;
228
+ }
229
+ tmp = getOrNull(tmp_0, tmp_1);
230
+ } else {
231
+ return null;
232
+ }
233
+ }
234
+ current = tmp;
235
+ }
236
+ return current;
237
+ };
238
+ protoOf(JsonPointer).toString = function () {
239
+ return this.k1c_1.l() ? '' : '/' + joinToString(this.k1c_1, '/');
240
+ };
241
+ protoOf(JsonPointer).hashCode = function () {
242
+ return hashCode(this.k1c_1);
243
+ };
244
+ protoOf(JsonPointer).equals = function (other) {
245
+ if (this === other)
246
+ return true;
247
+ if (!(other instanceof JsonPointer))
248
+ return false;
249
+ if (!equals(this.k1c_1, other.k1c_1))
250
+ return false;
251
+ return true;
252
+ };
253
+ function Companion_0() {
254
+ }
255
+ protoOf(Companion_0).o1c = function (text, baseUri, options, auth, loaders) {
256
+ var memLoader = new InMemoryLoader(baseUri, text);
257
+ var resolvedLoaders = loaders == null ? defaultLoaders(auth) : loaders;
258
+ return new RefParser(baseUri, options, auth, plus_0(listOf(memLoader), resolvedLoaders));
259
+ };
260
+ protoOf(Companion_0).p1c = function (text, baseUri, options, auth, loaders, $super) {
261
+ baseUri = baseUri === VOID ? 'memory://anonymous' : baseUri;
262
+ options = options === VOID ? new RefParserOptions() : options;
263
+ auth = auth === VOID ? emptyList() : auth;
264
+ loaders = loaders === VOID ? null : loaders;
265
+ return $super === VOID ? this.o1c(text, baseUri, options, auth, loaders) : $super.o1c.call(this, text, baseUri, options, auth, loaders);
266
+ };
267
+ protoOf(Companion_0).q1c = function (rawUri) {
268
+ if (startsWith(rawUri, 'classpath:') && !startsWith(rawUri, 'classpath:/')) {
269
+ return 'classpath:/' + removePrefix(rawUri, 'classpath:');
270
+ }
271
+ var colonIdx = indexOf(rawUri, _Char___init__impl__6a9atx(58));
272
+ if (colonIdx < 0) {
273
+ var normalized = replace_0(rawUri, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(47));
274
+ return startsWith(normalized, '/') ? 'file://' + normalized : 'file:///' + normalized;
275
+ }
276
+ if (colonIdx === 1) {
277
+ var normalized_0 = replace_0(rawUri, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(47));
278
+ return 'file:///' + normalized_0;
279
+ }
280
+ return rawUri;
281
+ };
282
+ var Companion_instance_0;
283
+ function Companion_getInstance_0() {
284
+ return Companion_instance_0;
285
+ }
286
+ function $parseCOROUTINE$(_this__u8e3s4, resultContinuation) {
287
+ CoroutineImpl.call(this, resultContinuation);
288
+ this.z1c_1 = _this__u8e3s4;
289
+ }
290
+ protoOf($parseCOROUTINE$).i8 = function () {
291
+ var suspendResult = this.c8_1;
292
+ $sm: do
293
+ try {
294
+ var tmp = this.a8_1;
295
+ switch (tmp) {
296
+ case 0:
297
+ this.b8_1 = 2;
298
+ var tmp0 = this.z1c_1.d1d_1;
299
+ var tmp$ret$0;
300
+ l$ret$1: do {
301
+ var _iterator__ex2g4s = tmp0.i();
302
+ while (_iterator__ex2g4s.j()) {
303
+ var element = _iterator__ex2g4s.k();
304
+ if (element.m1d(this.z1c_1.e1d_1)) {
305
+ tmp$ret$0 = element;
306
+ break l$ret$1;
307
+ }
308
+ }
309
+ tmp$ret$0 = null;
310
+ }
311
+ while (false);
312
+ var tmp0_elvis_lhs = tmp$ret$0;
313
+ var tmp_0;
314
+ if (tmp0_elvis_lhs == null) {
315
+ var tmp1_elvis_lhs = RefParserPlatform_instance.q1d(this.z1c_1.e1d_1);
316
+ throw tmp1_elvis_lhs == null ? IllegalStateException_init_$Create$('No loader available for URI: ' + this.z1c_1.e1d_1) : tmp1_elvis_lhs;
317
+ } else {
318
+ tmp_0 = tmp0_elvis_lhs;
319
+ }
320
+
321
+ var loader = tmp_0;
322
+ this.a8_1 = 1;
323
+ suspendResult = loader.r1d(this.z1c_1.e1d_1, this);
324
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
325
+ return suspendResult;
326
+ }
327
+
328
+ continue $sm;
329
+ case 1:
330
+ var text = suspendResult;
331
+ var raw = parseText(text, this.z1c_1.e1d_1);
332
+ this.z1c_1.f1d_1 = raw.u1d_1;
333
+ this.z1c_1.g1d_1 = raw.v1d_1;
334
+ this.z1c_1.h1d_1 = mutableMapOf([to(raw.s1d_1, toMutableMap(raw.v1d_1))]);
335
+ this.z1c_1.l1d_1 = raw.t1d_1;
336
+ return this.z1c_1;
337
+ case 2:
338
+ throw this.d8_1;
339
+ }
340
+ } catch ($p) {
341
+ var e = $p;
342
+ if (this.b8_1 === 2) {
343
+ throw e;
344
+ } else {
345
+ this.a8_1 = this.b8_1;
346
+ this.d8_1 = e;
347
+ }
348
+ }
349
+ while (true);
350
+ };
351
+ function $dereferenceCOROUTINE$(_this__u8e3s4, resultContinuation) {
352
+ CoroutineImpl.call(this, resultContinuation);
353
+ this.e1e_1 = _this__u8e3s4;
354
+ }
355
+ protoOf($dereferenceCOROUTINE$).i8 = function () {
356
+ var suspendResult = this.c8_1;
357
+ $sm: do
358
+ try {
359
+ var tmp = this.a8_1;
360
+ switch (tmp) {
361
+ case 0:
362
+ this.b8_1 = 4;
363
+ if (this.e1e_1.f1d_1.l() && this.e1e_1.g1d_1.l()) {
364
+ this.a8_1 = 1;
365
+ suspendResult = this.e1e_1.g1e(this);
366
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
367
+ return suspendResult;
368
+ }
369
+ continue $sm;
370
+ } else {
371
+ this.a8_1 = 2;
372
+ continue $sm;
373
+ }
374
+
375
+ case 1:
376
+ this.a8_1 = 2;
377
+ continue $sm;
378
+ case 2:
379
+ this.f1e_1 = new ResolvingContext(this.e1e_1.b1d_1, this.e1e_1.d1d_1, this.e1e_1.c1d_1, this.e1e_1.g1d_1);
380
+ var raw = new RawDocument(this.e1e_1.e1d_1, this.e1e_1.f1d_1, this.e1e_1.f1d_1, this.e1e_1.g1d_1);
381
+ this.a8_1 = 3;
382
+ suspendResult = resolveDocument(raw, this.f1e_1, this);
383
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
384
+ return suspendResult;
385
+ }
386
+
387
+ continue $sm;
388
+ case 3:
389
+ var ARGUMENT = suspendResult;
390
+ this.e1e_1.f1d_1 = ARGUMENT;
391
+ this.e1e_1.i1d_1 = this.f1e_1.q1e_1;
392
+ this.e1e_1.h1d_1 = this.f1e_1.s1e_1;
393
+ this.e1e_1.k1d_1 = this.f1e_1.p1e_1;
394
+ return this.e1e_1;
395
+ case 4:
396
+ throw this.d8_1;
397
+ }
398
+ } catch ($p) {
399
+ var e = $p;
400
+ if (this.b8_1 === 4) {
401
+ throw e;
402
+ } else {
403
+ this.a8_1 = this.b8_1;
404
+ this.d8_1 = e;
405
+ }
406
+ }
407
+ while (true);
408
+ };
409
+ function RefParser(uri, options, auth, loaders) {
410
+ options = options === VOID ? new RefParserOptions() : options;
411
+ auth = auth === VOID ? emptyList() : auth;
412
+ loaders = loaders === VOID ? defaultLoaders() : loaders;
413
+ this.a1d_1 = uri;
414
+ this.b1d_1 = options;
415
+ this.c1d_1 = auth;
416
+ this.d1d_1 = loaders;
417
+ this.e1d_1 = Companion_instance_0.q1c(this.a1d_1);
418
+ var tmp = this;
419
+ // Inline function 'kotlin.collections.linkedMapOf' call
420
+ tmp.f1d_1 = LinkedHashMap_init_$Create$();
421
+ var tmp_0 = this;
422
+ // Inline function 'kotlin.collections.mutableMapOf' call
423
+ tmp_0.g1d_1 = LinkedHashMap_init_$Create$();
424
+ var tmp_1 = this;
425
+ // Inline function 'kotlin.collections.mutableMapOf' call
426
+ tmp_1.h1d_1 = LinkedHashMap_init_$Create$();
427
+ this.i1d_1 = emptyList();
428
+ var tmp_2 = this;
429
+ // Inline function 'kotlin.collections.mutableListOf' call
430
+ tmp_2.j1d_1 = ArrayList_init_$Create$_0();
431
+ this.k1d_1 = false;
432
+ this.l1d_1 = null;
433
+ }
434
+ protoOf(RefParser).g1e = function ($completion) {
435
+ var tmp = new $parseCOROUTINE$(this, $completion);
436
+ tmp.c8_1 = Unit_instance;
437
+ tmp.d8_1 = null;
438
+ return tmp.i8();
439
+ };
440
+ protoOf(RefParser).t1e = function ($completion) {
441
+ var tmp = new $dereferenceCOROUTINE$(this, $completion);
442
+ tmp.c8_1 = Unit_instance;
443
+ tmp.d8_1 = null;
444
+ return tmp.i8();
445
+ };
446
+ protoOf(RefParser).u1e = function ($completion) {
447
+ var tmp = this;
448
+ // Inline function 'kotlin.collections.mutableListOf' call
449
+ tmp.j1d_1 = ArrayList_init_$Create$_0();
450
+ mergeAllOf(this.f1d_1, VOID, this.j1d_1);
451
+ return this;
452
+ };
453
+ protoOf(RefParser).v1e = function () {
454
+ var tmp0_elvis_lhs = this.l1d_1;
455
+ return new ParsedDocument(tmp0_elvis_lhs == null ? this.f1d_1 : tmp0_elvis_lhs, this.f1d_1, this.g1d_1, this.h1d_1, this.i1d_1, this.j1d_1, this.k1d_1);
456
+ };
457
+ function InMemoryLoader(uri, content) {
458
+ this.w1e_1 = uri;
459
+ this.x1e_1 = content;
460
+ }
461
+ protoOf(InMemoryLoader).m1d = function (uri) {
462
+ return uri === this.w1e_1;
463
+ };
464
+ protoOf(InMemoryLoader).r1d = function (uri, $completion) {
465
+ return this.x1e_1;
466
+ };
467
+ var AuthenticationType_QUERY_instance;
468
+ var AuthenticationType_HEADER_instance;
469
+ var AuthenticationType_entriesInitialized;
470
+ function AuthenticationType_initEntries() {
471
+ if (AuthenticationType_entriesInitialized)
472
+ return Unit_instance;
473
+ AuthenticationType_entriesInitialized = true;
474
+ AuthenticationType_QUERY_instance = new AuthenticationType('QUERY', 0);
475
+ AuthenticationType_HEADER_instance = new AuthenticationType('HEADER', 1);
476
+ }
477
+ function AuthenticationType(name, ordinal) {
478
+ Enum.call(this, name, ordinal);
479
+ }
480
+ function AuthenticationType_QUERY_getInstance() {
481
+ AuthenticationType_initEntries();
482
+ return AuthenticationType_QUERY_instance;
483
+ }
484
+ function AuthenticationType_HEADER_getInstance() {
485
+ AuthenticationType_initEntries();
486
+ return AuthenticationType_HEADER_instance;
487
+ }
488
+ function ParsedDocument(root, schema, locations, documentLocations, resolvedRefs, originalAllOfs, hasCircularRefs) {
489
+ documentLocations = documentLocations === VOID ? emptyMap() : documentLocations;
490
+ resolvedRefs = resolvedRefs === VOID ? emptyList() : resolvedRefs;
491
+ originalAllOfs = originalAllOfs === VOID ? emptyList() : originalAllOfs;
492
+ hasCircularRefs = hasCircularRefs === VOID ? false : hasCircularRefs;
493
+ this.y1e_1 = root;
494
+ this.z1e_1 = schema;
495
+ this.a1f_1 = locations;
496
+ this.b1f_1 = documentLocations;
497
+ this.c1f_1 = resolvedRefs;
498
+ this.d1f_1 = originalAllOfs;
499
+ this.e1f_1 = hasCircularRefs;
500
+ }
501
+ protoOf(ParsedDocument).toString = function () {
502
+ return 'ParsedDocument(root=' + toString_0(this.y1e_1) + ', schema=' + toString(this.z1e_1) + ', locations=' + toString(this.a1f_1) + ', documentLocations=' + toString(this.b1f_1) + ', resolvedRefs=' + toString(this.c1f_1) + ', originalAllOfs=' + toString(this.d1f_1) + ', hasCircularRefs=' + this.e1f_1 + ')';
503
+ };
504
+ protoOf(ParsedDocument).hashCode = function () {
505
+ var result = this.y1e_1 == null ? 0 : hashCode(this.y1e_1);
506
+ result = imul(result, 31) + hashCode(this.z1e_1) | 0;
507
+ result = imul(result, 31) + hashCode(this.a1f_1) | 0;
508
+ result = imul(result, 31) + hashCode(this.b1f_1) | 0;
509
+ result = imul(result, 31) + hashCode(this.c1f_1) | 0;
510
+ result = imul(result, 31) + hashCode(this.d1f_1) | 0;
511
+ result = imul(result, 31) + getBooleanHashCode(this.e1f_1) | 0;
512
+ return result;
513
+ };
514
+ protoOf(ParsedDocument).equals = function (other) {
515
+ if (this === other)
516
+ return true;
517
+ if (!(other instanceof ParsedDocument))
518
+ return false;
519
+ if (!equals(this.y1e_1, other.y1e_1))
520
+ return false;
521
+ if (!equals(this.z1e_1, other.z1e_1))
522
+ return false;
523
+ if (!equals(this.a1f_1, other.a1f_1))
524
+ return false;
525
+ if (!equals(this.b1f_1, other.b1f_1))
526
+ return false;
527
+ if (!equals(this.c1f_1, other.c1f_1))
528
+ return false;
529
+ if (!equals(this.d1f_1, other.d1f_1))
530
+ return false;
531
+ if (!(this.e1f_1 === other.e1f_1))
532
+ return false;
533
+ return true;
534
+ };
535
+ function ResolvedRef(refString, resolvedTo, replacedValue, targetUri, sourceUri, sourcePointer) {
536
+ replacedValue = replacedValue === VOID ? resolvedTo : replacedValue;
537
+ targetUri = targetUri === VOID ? null : targetUri;
538
+ sourceUri = sourceUri === VOID ? null : sourceUri;
539
+ sourcePointer = sourcePointer === VOID ? null : sourcePointer;
540
+ this.f1f_1 = refString;
541
+ this.g1f_1 = resolvedTo;
542
+ this.h1f_1 = replacedValue;
543
+ this.i1f_1 = targetUri;
544
+ this.j1f_1 = sourceUri;
545
+ this.k1f_1 = sourcePointer;
546
+ }
547
+ protoOf(ResolvedRef).toString = function () {
548
+ return 'ResolvedRef(refString=' + this.f1f_1 + ', resolvedTo=' + toString_0(this.g1f_1) + ', replacedValue=' + toString_0(this.h1f_1) + ', targetUri=' + this.i1f_1 + ', sourceUri=' + this.j1f_1 + ', sourcePointer=' + this.k1f_1 + ')';
549
+ };
550
+ protoOf(ResolvedRef).hashCode = function () {
551
+ var result = getStringHashCode(this.f1f_1);
552
+ result = imul(result, 31) + (this.g1f_1 == null ? 0 : hashCode(this.g1f_1)) | 0;
553
+ result = imul(result, 31) + (this.h1f_1 == null ? 0 : hashCode(this.h1f_1)) | 0;
554
+ result = imul(result, 31) + (this.i1f_1 == null ? 0 : getStringHashCode(this.i1f_1)) | 0;
555
+ result = imul(result, 31) + (this.j1f_1 == null ? 0 : getStringHashCode(this.j1f_1)) | 0;
556
+ result = imul(result, 31) + (this.k1f_1 == null ? 0 : getStringHashCode(this.k1f_1)) | 0;
557
+ return result;
558
+ };
559
+ protoOf(ResolvedRef).equals = function (other) {
560
+ if (this === other)
561
+ return true;
562
+ if (!(other instanceof ResolvedRef))
563
+ return false;
564
+ if (!(this.f1f_1 === other.f1f_1))
565
+ return false;
566
+ if (!equals(this.g1f_1, other.g1f_1))
567
+ return false;
568
+ if (!equals(this.h1f_1, other.h1f_1))
569
+ return false;
570
+ if (!(this.i1f_1 == other.i1f_1))
571
+ return false;
572
+ if (!(this.j1f_1 == other.j1f_1))
573
+ return false;
574
+ if (!(this.k1f_1 == other.k1f_1))
575
+ return false;
576
+ return true;
577
+ };
578
+ function OriginalAllOf(mergedMap, allOfItems) {
579
+ this.l1f_1 = mergedMap;
580
+ this.m1f_1 = allOfItems;
581
+ }
582
+ protoOf(OriginalAllOf).toString = function () {
583
+ return 'OriginalAllOf(mergedMap=' + toString(this.l1f_1) + ', allOfItems=' + toString(this.m1f_1) + ')';
584
+ };
585
+ protoOf(OriginalAllOf).hashCode = function () {
586
+ var result = hashCode(this.l1f_1);
587
+ result = imul(result, 31) + hashCode(this.m1f_1) | 0;
588
+ return result;
589
+ };
590
+ protoOf(OriginalAllOf).equals = function (other) {
591
+ if (this === other)
592
+ return true;
593
+ if (!(other instanceof OriginalAllOf))
594
+ return false;
595
+ if (!equals(this.l1f_1, other.l1f_1))
596
+ return false;
597
+ if (!equals(this.m1f_1, other.m1f_1))
598
+ return false;
599
+ return true;
600
+ };
601
+ function RefParserOptions(onCircular, onMissing) {
602
+ onCircular = onCircular === VOID ? OnCircular_RESOLVE_getInstance() : onCircular;
603
+ onMissing = onMissing === VOID ? OnMissing_FAIL_getInstance() : onMissing;
604
+ this.n1f_1 = onCircular;
605
+ this.o1f_1 = onMissing;
606
+ }
607
+ protoOf(RefParserOptions).toString = function () {
608
+ return 'RefParserOptions(onCircular=' + this.n1f_1.toString() + ', onMissing=' + this.o1f_1.toString() + ')';
609
+ };
610
+ protoOf(RefParserOptions).hashCode = function () {
611
+ var result = this.n1f_1.hashCode();
612
+ result = imul(result, 31) + this.o1f_1.hashCode() | 0;
613
+ return result;
614
+ };
615
+ protoOf(RefParserOptions).equals = function (other) {
616
+ if (this === other)
617
+ return true;
618
+ if (!(other instanceof RefParserOptions))
619
+ return false;
620
+ if (!this.n1f_1.equals(other.n1f_1))
621
+ return false;
622
+ if (!this.o1f_1.equals(other.o1f_1))
623
+ return false;
624
+ return true;
625
+ };
626
+ var OnCircular_RESOLVE_instance;
627
+ var OnCircular_SKIP_instance;
628
+ var OnCircular_FAIL_instance;
629
+ var OnCircular_entriesInitialized;
630
+ function OnCircular_initEntries() {
631
+ if (OnCircular_entriesInitialized)
632
+ return Unit_instance;
633
+ OnCircular_entriesInitialized = true;
634
+ OnCircular_RESOLVE_instance = new OnCircular('RESOLVE', 0);
635
+ OnCircular_SKIP_instance = new OnCircular('SKIP', 1);
636
+ OnCircular_FAIL_instance = new OnCircular('FAIL', 2);
637
+ }
638
+ function OnCircular(name, ordinal) {
639
+ Enum.call(this, name, ordinal);
640
+ }
641
+ var OnMissing_FAIL_instance;
642
+ var OnMissing_SKIP_instance;
643
+ var OnMissing_entriesInitialized;
644
+ function OnMissing_initEntries() {
645
+ if (OnMissing_entriesInitialized)
646
+ return Unit_instance;
647
+ OnMissing_entriesInitialized = true;
648
+ OnMissing_FAIL_instance = new OnMissing('FAIL', 0);
649
+ OnMissing_SKIP_instance = new OnMissing('SKIP', 1);
650
+ }
651
+ function OnMissing(name, ordinal) {
652
+ Enum.call(this, name, ordinal);
653
+ }
654
+ function CircularReferenceException(message) {
655
+ RuntimeException_init_$Init$(message, this);
656
+ captureStack(this, CircularReferenceException);
657
+ }
658
+ function MissingRefException(message, cause) {
659
+ cause = cause === VOID ? null : cause;
660
+ RuntimeException_init_$Init$_0(message, cause, this);
661
+ captureStack(this, MissingRefException);
662
+ }
663
+ function OnCircular_RESOLVE_getInstance() {
664
+ OnCircular_initEntries();
665
+ return OnCircular_RESOLVE_instance;
666
+ }
667
+ function OnMissing_FAIL_getInstance() {
668
+ OnMissing_initEntries();
669
+ return OnMissing_FAIL_instance;
670
+ }
671
+ function OnMissing_SKIP_getInstance() {
672
+ OnMissing_initEntries();
673
+ return OnMissing_SKIP_instance;
674
+ }
675
+ function SourceLocation(file, line, column, endLine, endColumn) {
676
+ this.p1f_1 = file;
677
+ this.q1f_1 = line;
678
+ this.r1f_1 = column;
679
+ this.s1f_1 = endLine;
680
+ this.t1f_1 = endColumn;
681
+ }
682
+ protoOf(SourceLocation).toString = function () {
683
+ return 'SourceLocation(file=' + this.p1f_1 + ', line=' + this.q1f_1 + ', column=' + this.r1f_1 + ', endLine=' + this.s1f_1 + ', endColumn=' + this.t1f_1 + ')';
684
+ };
685
+ protoOf(SourceLocation).hashCode = function () {
686
+ var result = getStringHashCode(this.p1f_1);
687
+ result = imul(result, 31) + this.q1f_1 | 0;
688
+ result = imul(result, 31) + this.r1f_1 | 0;
689
+ result = imul(result, 31) + this.s1f_1 | 0;
690
+ result = imul(result, 31) + this.t1f_1 | 0;
691
+ return result;
692
+ };
693
+ protoOf(SourceLocation).equals = function (other) {
694
+ if (this === other)
695
+ return true;
696
+ if (!(other instanceof SourceLocation))
697
+ return false;
698
+ if (!(this.p1f_1 === other.p1f_1))
699
+ return false;
700
+ if (!(this.q1f_1 === other.q1f_1))
701
+ return false;
702
+ if (!(this.r1f_1 === other.r1f_1))
703
+ return false;
704
+ if (!(this.s1f_1 === other.s1f_1))
705
+ return false;
706
+ if (!(this.t1f_1 === other.t1f_1))
707
+ return false;
708
+ return true;
709
+ };
710
+ function get_loadSettings() {
711
+ _init_properties_SchemaParser_kt__ctx6o();
712
+ return loadSettings;
713
+ }
714
+ var loadSettings;
715
+ function RawDocument(uri, root, map, locations) {
716
+ this.s1d_1 = uri;
717
+ this.t1d_1 = root;
718
+ this.u1d_1 = map;
719
+ this.v1d_1 = locations;
720
+ }
721
+ protoOf(RawDocument).toString = function () {
722
+ return 'RawDocument(uri=' + this.s1d_1 + ', root=' + toString_0(this.t1d_1) + ', map=' + toString(this.u1d_1) + ', locations=' + toString(this.v1d_1) + ')';
723
+ };
724
+ protoOf(RawDocument).hashCode = function () {
725
+ var result = getStringHashCode(this.s1d_1);
726
+ result = imul(result, 31) + (this.t1d_1 == null ? 0 : hashCode(this.t1d_1)) | 0;
727
+ result = imul(result, 31) + hashCode(this.u1d_1) | 0;
728
+ result = imul(result, 31) + hashCode(this.v1d_1) | 0;
729
+ return result;
730
+ };
731
+ protoOf(RawDocument).equals = function (other) {
732
+ if (this === other)
733
+ return true;
734
+ if (!(other instanceof RawDocument))
735
+ return false;
736
+ if (!(this.s1d_1 === other.s1d_1))
737
+ return false;
738
+ if (!equals(this.t1d_1, other.t1d_1))
739
+ return false;
740
+ if (!equals(this.u1d_1, other.u1d_1))
741
+ return false;
742
+ if (!equals(this.v1d_1, other.v1d_1))
743
+ return false;
744
+ return true;
745
+ };
746
+ function parseText(text, fileUri) {
747
+ _init_properties_SchemaParser_kt__ctx6o();
748
+ var compose = new Compose(get_loadSettings());
749
+ var node = compose.i12(text);
750
+ if (node == null) {
751
+ // Inline function 'kotlin.collections.linkedMapOf' call
752
+ var tmp = LinkedHashMap_init_$Create$();
753
+ // Inline function 'kotlin.collections.linkedMapOf' call
754
+ var tmp_0 = LinkedHashMap_init_$Create$();
755
+ // Inline function 'kotlin.collections.mutableMapOf' call
756
+ var tmp$ret$2 = LinkedHashMap_init_$Create$();
757
+ return new RawDocument(fileUri, tmp, tmp_0, tmp$ret$2);
758
+ }
759
+ // Inline function 'kotlin.collections.mutableMapOf' call
760
+ var locations = LinkedHashMap_init_$Create$();
761
+ var value = buildNode(node, Companion_getInstance().h1c_1, fileUri, locations);
762
+ var tmp_1;
763
+ if (!(value == null) ? isInterface(value, KtMutableMap) : false) {
764
+ tmp_1 = isInterface(value, KtMutableMap) ? value : THROW_CCE();
765
+ } else {
766
+ // Inline function 'kotlin.collections.linkedMapOf' call
767
+ tmp_1 = LinkedHashMap_init_$Create$();
768
+ }
769
+ var map = tmp_1;
770
+ return new RawDocument(fileUri, value, map, locations);
771
+ }
772
+ function buildNode(node, pointer, fileUri, locations) {
773
+ _init_properties_SchemaParser_kt__ctx6o();
774
+ var start = node.cp_1;
775
+ var end = node.dp_1;
776
+ if (!(start == null) && !(end == null)) {
777
+ var tmp2 = pointer.toString();
778
+ // Inline function 'kotlin.collections.set' call
779
+ var value = new SourceLocation(fileUri, start.ct_1, start.dt_1, end.ct_1, end.dt_1);
780
+ locations.v1(tmp2, value);
781
+ }
782
+ var tmp;
783
+ if (node instanceof MappingNode) {
784
+ // Inline function 'kotlin.collections.linkedMapOf' call
785
+ var map = LinkedHashMap_init_$Create$();
786
+ // Inline function 'kotlin.collections.forEach' call
787
+ var _iterator__ex2g4s = node.qr_1.i();
788
+ while (_iterator__ex2g4s.j()) {
789
+ var element = _iterator__ex2g4s.k();
790
+ $l$block: {
791
+ var tmp_0 = element.cu_1;
792
+ var tmp0_safe_receiver = tmp_0 instanceof ScalarNode ? tmp_0 : null;
793
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ou_1;
794
+ var tmp_1;
795
+ if (tmp1_elvis_lhs == null) {
796
+ break $l$block;
797
+ } else {
798
+ tmp_1 = tmp1_elvis_lhs;
799
+ }
800
+ var key = tmp_1;
801
+ // Inline function 'kotlin.collections.set' call
802
+ var value_0 = buildNode(element.du_1, pointer.l1c(key), fileUri, locations);
803
+ map.v1(key, value_0);
804
+ }
805
+ }
806
+ tmp = map;
807
+ } else {
808
+ if (node instanceof SequenceNode) {
809
+ // Inline function 'kotlin.collections.mapIndexed' call
810
+ var this_0 = node.bv_1;
811
+ // Inline function 'kotlin.collections.mapIndexedTo' call
812
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
813
+ var index = 0;
814
+ var _iterator__ex2g4s_0 = this_0.i();
815
+ while (_iterator__ex2g4s_0.j()) {
816
+ var item = _iterator__ex2g4s_0.k();
817
+ var _unary__edvuaz = index;
818
+ index = _unary__edvuaz + 1 | 0;
819
+ var i = checkIndexOverflow(_unary__edvuaz);
820
+ var tmp$ret$5 = buildNode(item, pointer.m1c(i), fileUri, locations);
821
+ destination.g(tmp$ret$5);
822
+ }
823
+ tmp = toMutableList(destination);
824
+ } else {
825
+ if (node instanceof ScalarNode) {
826
+ tmp = scalarValue(node);
827
+ } else {
828
+ tmp = null;
829
+ }
830
+ }
831
+ }
832
+ return tmp;
833
+ }
834
+ function scalarValue(node) {
835
+ _init_properties_SchemaParser_kt__ctx6o();
836
+ var raw = node.ou_1;
837
+ var tmp;
838
+ switch (node.bp_1.cv_1) {
839
+ case 'tag:yaml.org,2002:null':
840
+ tmp = null;
841
+ break;
842
+ case 'tag:yaml.org,2002:bool':
843
+ // Inline function 'kotlin.text.lowercase' call
844
+
845
+ // Inline function 'kotlin.js.asDynamic' call
846
+
847
+ tmp = raw.toLowerCase() === 'true';
848
+ break;
849
+ case 'tag:yaml.org,2002:int':
850
+ var tmp1_elvis_lhs = toLongOrNull(raw);
851
+ var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? toLongOrNull(removePrefix(raw, '+')) : tmp1_elvis_lhs;
852
+ tmp = tmp2_elvis_lhs == null ? raw : tmp2_elvis_lhs;
853
+ break;
854
+ case 'tag:yaml.org,2002:float':
855
+ // Inline function 'kotlin.text.lowercase' call
856
+
857
+ // Inline function 'kotlin.js.asDynamic' call
858
+
859
+ var tmp_0;
860
+ switch (raw.toLowerCase()) {
861
+ case '.inf':
862
+ case '+.inf':
863
+ tmp_0 = Infinity;
864
+ break;
865
+ case '-.inf':
866
+ tmp_0 = -Infinity;
867
+ break;
868
+ case '.nan':
869
+ tmp_0 = NaN;
870
+ break;
871
+ default:
872
+ var tmp4_elvis_lhs = toDoubleOrNull(raw);
873
+ tmp_0 = tmp4_elvis_lhs == null ? raw : tmp4_elvis_lhs;
874
+ break;
875
+ }
876
+
877
+ tmp = tmp_0;
878
+ break;
879
+ default:
880
+ tmp = raw;
881
+ break;
882
+ }
883
+ return tmp;
884
+ }
885
+ var properties_initialized_SchemaParser_kt_f24p3y;
886
+ function _init_properties_SchemaParser_kt__ctx6o() {
887
+ if (!properties_initialized_SchemaParser_kt_f24p3y) {
888
+ properties_initialized_SchemaParser_kt_f24p3y = true;
889
+ loadSettings = new LoadSettings();
890
+ }
891
+ }
892
+ function RefParserPlatform() {
893
+ this.n1d_1 = 'jsonrefparser.filesystem';
894
+ this.o1d_1 = 'jsonrefparser.classpath';
895
+ this.p1d_1 = 'jsonrefparser.http';
896
+ }
897
+ protoOf(RefParserPlatform).u1f = function () {
898
+ return currentPlatformName();
899
+ };
900
+ protoOf(RefParserPlatform).v1f = function () {
901
+ return currentPlatformCapabilities();
902
+ };
903
+ protoOf(RefParserPlatform).w1f = function (capability) {
904
+ return this.v1f().l1(capability);
905
+ };
906
+ protoOf(RefParserPlatform).x1f = function (uri) {
907
+ return startsWith(uri, 'classpath:') ? 'jsonrefparser.classpath' : startsWith(uri, 'file:') ? 'jsonrefparser.filesystem' : startsWith(uri, 'http://') || startsWith(uri, 'https://') ? 'jsonrefparser.http' : !contains(uri, '://') ? 'jsonrefparser.filesystem' : null;
908
+ };
909
+ protoOf(RefParserPlatform).q1d = function (uri) {
910
+ var tmp0_elvis_lhs = this.x1f(uri);
911
+ var tmp;
912
+ if (tmp0_elvis_lhs == null) {
913
+ return null;
914
+ } else {
915
+ tmp = tmp0_elvis_lhs;
916
+ }
917
+ var capability = tmp;
918
+ return this.w1f(capability) ? null : new CapabilityUnavailableException(capability, this.u1f());
919
+ };
920
+ var RefParserPlatform_instance;
921
+ function RefParserPlatform_getInstance() {
922
+ return RefParserPlatform_instance;
923
+ }
924
+ function CapabilityUnavailableException(capability, platform, message) {
925
+ message = message === VOID ? "Capability '" + capability + "' is not available on " + platform : message;
926
+ UnsupportedOperationException_init_$Init$(message, this);
927
+ captureStack(this, CapabilityUnavailableException);
928
+ this.y1f_1 = capability;
929
+ this.z1f_1 = platform;
930
+ }
931
+ function ResolvingContext(options, loaders, auth, locationIndex) {
932
+ this.h1e_1 = options;
933
+ this.i1e_1 = loaders;
934
+ this.j1e_1 = auth;
935
+ this.k1e_1 = locationIndex;
936
+ var tmp = this;
937
+ // Inline function 'kotlin.collections.mutableMapOf' call
938
+ tmp.l1e_1 = LinkedHashMap_init_$Create$();
939
+ var tmp_0 = this;
940
+ // Inline function 'kotlin.collections.mutableMapOf' call
941
+ tmp_0.m1e_1 = LinkedHashMap_init_$Create$();
942
+ var tmp_1 = this;
943
+ // Inline function 'kotlin.collections.mutableSetOf' call
944
+ tmp_1.n1e_1 = LinkedHashSet_init_$Create$();
945
+ var tmp_2 = this;
946
+ // Inline function 'kotlin.collections.mutableSetOf' call
947
+ tmp_2.o1e_1 = LinkedHashSet_init_$Create$();
948
+ this.p1e_1 = false;
949
+ var tmp_3 = this;
950
+ // Inline function 'kotlin.collections.mutableListOf' call
951
+ tmp_3.q1e_1 = ArrayList_init_$Create$_0();
952
+ var tmp_4 = this;
953
+ // Inline function 'kotlin.collections.mutableListOf' call
954
+ tmp_4.r1e_1 = ArrayList_init_$Create$_0();
955
+ var tmp_5 = this;
956
+ // Inline function 'kotlin.collections.mutableMapOf' call
957
+ tmp_5.s1e_1 = LinkedHashMap_init_$Create$();
958
+ }
959
+ function resolveDocument(doc, ctx, $completion) {
960
+ var tmp = new $resolveDocumentCOROUTINE$(doc, ctx, $completion);
961
+ tmp.c8_1 = Unit_instance;
962
+ tmp.d8_1 = null;
963
+ return tmp.i8();
964
+ }
965
+ function mergeAllOf(value, identityStack, collector) {
966
+ identityStack = identityStack === VOID ? new IdentityStack() : identityStack;
967
+ collector = collector === VOID ? null : collector;
968
+ if (value == null)
969
+ return Unit_instance;
970
+ if (identityStack.l1g(value))
971
+ return Unit_instance;
972
+ identityStack.m1g(value);
973
+ try {
974
+ if (isInterface(value, KtMutableMap)) {
975
+ var map = isInterface(value, KtMutableMap) ? value : THROW_CCE();
976
+ var _iterator__ex2g4s = toList(map.u1()).i();
977
+ while (_iterator__ex2g4s.j()) {
978
+ var _destruct__k2r9zo = _iterator__ex2g4s.k();
979
+ // Inline function 'kotlin.collections.component1' call
980
+ var k = _destruct__k2r9zo.n1();
981
+ // Inline function 'kotlin.collections.component2' call
982
+ var v = _destruct__k2r9zo.o1();
983
+ if (!(k === 'allOf')) {
984
+ mergeAllOf(v, identityStack, collector);
985
+ }
986
+ }
987
+ if (map.p1('allOf')) {
988
+ var allOf = map.r1('allOf');
989
+ if (!(allOf == null) ? isInterface(allOf, KtList) : false) {
990
+ var acc = new AllOfAccumulator();
991
+ collectAllOf(acc, map);
992
+ var merged = acc.q1g();
993
+ map.w1('allOf');
994
+ map.x1(merged);
995
+ if (collector == null)
996
+ null;
997
+ else
998
+ collector.g(new OriginalAllOf(map, toList(allOf)));
999
+ }
1000
+ }
1001
+ } else {
1002
+ if (isInterface(value, KtMutableList)) {
1003
+ var list = isInterface(value, KtMutableList) ? value : THROW_CCE();
1004
+ var _iterator__ex2g4s_0 = list.i();
1005
+ while (_iterator__ex2g4s_0.j()) {
1006
+ var item = _iterator__ex2g4s_0.k();
1007
+ mergeAllOf(item, identityStack, collector);
1008
+ }
1009
+ }
1010
+ }
1011
+ }finally {
1012
+ identityStack.r1g();
1013
+ }
1014
+ }
1015
+ function resolveValue(value, fileUri, pointer, ctx, $completion) {
1016
+ var tmp = new $resolveValueCOROUTINE$(value, fileUri, pointer, ctx, $completion);
1017
+ tmp.c8_1 = Unit_instance;
1018
+ tmp.d8_1 = null;
1019
+ return tmp.i8();
1020
+ }
1021
+ function IdentityStack() {
1022
+ var tmp = this;
1023
+ // Inline function 'kotlin.collections.mutableListOf' call
1024
+ tmp.k1g_1 = ArrayList_init_$Create$_0();
1025
+ }
1026
+ protoOf(IdentityStack).l1g = function (obj) {
1027
+ var tmp0 = this.k1g_1;
1028
+ var tmp$ret$0;
1029
+ $l$block_0: {
1030
+ // Inline function 'kotlin.collections.any' call
1031
+ var tmp;
1032
+ if (isInterface(tmp0, Collection)) {
1033
+ tmp = tmp0.l();
1034
+ } else {
1035
+ tmp = false;
1036
+ }
1037
+ if (tmp) {
1038
+ tmp$ret$0 = false;
1039
+ break $l$block_0;
1040
+ }
1041
+ var _iterator__ex2g4s = tmp0.i();
1042
+ while (_iterator__ex2g4s.j()) {
1043
+ var element = _iterator__ex2g4s.k();
1044
+ if (element === obj) {
1045
+ tmp$ret$0 = true;
1046
+ break $l$block_0;
1047
+ }
1048
+ }
1049
+ tmp$ret$0 = false;
1050
+ }
1051
+ return tmp$ret$0;
1052
+ };
1053
+ protoOf(IdentityStack).m1g = function (obj) {
1054
+ this.k1g_1.g(obj);
1055
+ };
1056
+ protoOf(IdentityStack).r1g = function () {
1057
+ // Inline function 'kotlin.collections.isNotEmpty' call
1058
+ if (!this.k1g_1.l()) {
1059
+ this.k1g_1.b2(get_lastIndex(this.k1g_1));
1060
+ }
1061
+ };
1062
+ function AllOfAccumulator() {
1063
+ var tmp = this;
1064
+ // Inline function 'kotlin.collections.linkedMapOf' call
1065
+ tmp.n1g_1 = LinkedHashMap_init_$Create$();
1066
+ var tmp_0 = this;
1067
+ // Inline function 'kotlin.collections.linkedMapOf' call
1068
+ tmp_0.o1g_1 = LinkedHashMap_init_$Create$();
1069
+ var tmp_1 = this;
1070
+ // Inline function 'kotlin.collections.mutableListOf' call
1071
+ tmp_1.p1g_1 = ArrayList_init_$Create$_0();
1072
+ }
1073
+ protoOf(AllOfAccumulator).q1g = function () {
1074
+ // Inline function 'kotlin.collections.linkedMapOf' call
1075
+ var result = LinkedHashMap_init_$Create$();
1076
+ result.x1(this.n1g_1);
1077
+ // Inline function 'kotlin.collections.isNotEmpty' call
1078
+ if (!this.p1g_1.l()) {
1079
+ var tmp2 = 'required';
1080
+ // Inline function 'kotlin.collections.set' call
1081
+ var value = this.p1g_1;
1082
+ result.v1(tmp2, value);
1083
+ }
1084
+ // Inline function 'kotlin.collections.isNotEmpty' call
1085
+ if (!this.o1g_1.l()) {
1086
+ var tmp2_0 = 'properties';
1087
+ // Inline function 'kotlin.collections.set' call
1088
+ var value_0 = this.o1g_1;
1089
+ result.v1(tmp2_0, value_0);
1090
+ }
1091
+ return result;
1092
+ };
1093
+ function collectAllOf(acc, item) {
1094
+ if (item.n() === 1 && item.p1('allOf')) {
1095
+ var inner = item.r1('allOf');
1096
+ if (!(inner == null) ? isInterface(inner, KtList) : false) {
1097
+ var _iterator__ex2g4s = inner.i();
1098
+ while (_iterator__ex2g4s.j()) {
1099
+ var entry = _iterator__ex2g4s.k();
1100
+ if (!(entry == null) ? isInterface(entry, KtMap) : false) {
1101
+ collectAllOf(acc, isInterface(entry, KtMap) ? entry : THROW_CCE());
1102
+ }
1103
+ }
1104
+ }
1105
+ return Unit_instance;
1106
+ }
1107
+ // Inline function 'kotlin.collections.iterator' call
1108
+ var _iterator__ex2g4s_0 = item.u1().i();
1109
+ while (_iterator__ex2g4s_0.j()) {
1110
+ var _destruct__k2r9zo = _iterator__ex2g4s_0.k();
1111
+ // Inline function 'kotlin.collections.component1' call
1112
+ var k = _destruct__k2r9zo.n1();
1113
+ // Inline function 'kotlin.collections.component2' call
1114
+ var v = _destruct__k2r9zo.o1();
1115
+ if (k === 'allOf') {
1116
+ if (!(v == null) ? isInterface(v, KtList) : false) {
1117
+ var _iterator__ex2g4s_1 = v.i();
1118
+ while (_iterator__ex2g4s_1.j()) {
1119
+ var entry_0 = _iterator__ex2g4s_1.k();
1120
+ if (!(entry_0 == null) ? isInterface(entry_0, KtMap) : false) {
1121
+ collectAllOf(acc, isInterface(entry_0, KtMap) ? entry_0 : THROW_CCE());
1122
+ }
1123
+ }
1124
+ }
1125
+ } else {
1126
+ // Inline function 'kotlin.collections.set' call
1127
+ acc.n1g_1.v1(k, v);
1128
+ }
1129
+ }
1130
+ if (item.p1('properties')) {
1131
+ var props = item.r1('properties');
1132
+ if (!(props == null) ? isInterface(props, KtMap) : false) {
1133
+ acc.o1g_1.x1(isInterface(props, KtMap) ? props : THROW_CCE());
1134
+ }
1135
+ }
1136
+ if (item.p1('required')) {
1137
+ var req = item.r1('required');
1138
+ if (!(req == null) ? isInterface(req, KtList) : false) {
1139
+ acc.p1g_1.s(req);
1140
+ }
1141
+ }
1142
+ }
1143
+ function resolveRef(refMap, fileUri, pointer, ctx, $completion) {
1144
+ var tmp = new $resolveRefCOROUTINE$(refMap, fileUri, pointer, ctx, $completion);
1145
+ tmp.c8_1 = Unit_instance;
1146
+ tmp.d8_1 = null;
1147
+ return tmp.i8();
1148
+ }
1149
+ function escapeToken(key) {
1150
+ return replace(replace(key, '~', '~0'), '/', '~1');
1151
+ }
1152
+ function normalizePointer(pointer) {
1153
+ switch (pointer) {
1154
+ case null:
1155
+ case '#/':
1156
+ return '';
1157
+ default:
1158
+ return removePrefix(pointer, '#');
1159
+ }
1160
+ }
1161
+ function mergeSiblings(refMap, resolved) {
1162
+ // Inline function 'kotlin.collections.filterKeys' call
1163
+ var result = LinkedHashMap_init_$Create$();
1164
+ // Inline function 'kotlin.collections.iterator' call
1165
+ var _iterator__ex2g4s = refMap.u1().i();
1166
+ while (_iterator__ex2g4s.j()) {
1167
+ var entry = _iterator__ex2g4s.k();
1168
+ if (!(entry.n1() === '$ref')) {
1169
+ result.v1(entry.n1(), entry.o1());
1170
+ }
1171
+ }
1172
+ var siblings = result;
1173
+ if (siblings.l())
1174
+ return resolved;
1175
+ // Inline function 'kotlin.collections.linkedMapOf' call
1176
+ var merged = LinkedHashMap_init_$Create$();
1177
+ merged.x1(siblings);
1178
+ if (!(resolved == null) ? isInterface(resolved, KtMap) : false) {
1179
+ merged.x1(isInterface(resolved, KtMap) ? resolved : THROW_CCE());
1180
+ }
1181
+ return merged;
1182
+ }
1183
+ function loadFile(uri, ctx, $completion) {
1184
+ var tmp = new $loadFileCOROUTINE$(uri, ctx, $completion);
1185
+ tmp.c8_1 = Unit_instance;
1186
+ tmp.d8_1 = null;
1187
+ return tmp.i8();
1188
+ }
1189
+ function $resolveDocumentCOROUTINE$(doc, ctx, resultContinuation) {
1190
+ CoroutineImpl.call(this, resultContinuation);
1191
+ this.i1g_1 = doc;
1192
+ this.j1g_1 = ctx;
1193
+ }
1194
+ protoOf($resolveDocumentCOROUTINE$).i8 = function () {
1195
+ var suspendResult = this.c8_1;
1196
+ $sm: do
1197
+ try {
1198
+ var tmp = this.a8_1;
1199
+ switch (tmp) {
1200
+ case 0:
1201
+ this.b8_1 = 2;
1202
+ var tmp0 = this.j1g_1.l1e_1;
1203
+ var tmp2 = this.i1g_1.s1d_1;
1204
+ var value = this.i1g_1.t1d_1;
1205
+ tmp0.v1(tmp2, value);
1206
+ var tmp0_0 = this.j1g_1.s1e_1;
1207
+ var tmp2_0 = this.i1g_1.s1d_1;
1208
+ var value_0 = toMutableMap(this.i1g_1.v1d_1);
1209
+ tmp0_0.v1(tmp2_0, value_0);
1210
+ this.j1g_1.k1e_1.x1(this.i1g_1.v1d_1);
1211
+ this.a8_1 = 1;
1212
+ suspendResult = resolveValue(this.i1g_1.t1d_1, this.i1g_1.s1d_1, '', this.j1g_1, this);
1213
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1214
+ return suspendResult;
1215
+ }
1216
+
1217
+ continue $sm;
1218
+ case 1:
1219
+ var resolvedRoot = suspendResult;
1220
+ var tmp0_elvis_lhs = (!(resolvedRoot == null) ? isInterface(resolvedRoot, KtMutableMap) : false) ? resolvedRoot : null;
1221
+ var tmp_0;
1222
+ if (tmp0_elvis_lhs == null) {
1223
+ tmp_0 = LinkedHashMap_init_$Create$();
1224
+ } else {
1225
+ tmp_0 = tmp0_elvis_lhs;
1226
+ }
1227
+
1228
+ return tmp_0;
1229
+ case 2:
1230
+ throw this.d8_1;
1231
+ }
1232
+ } catch ($p) {
1233
+ var e = $p;
1234
+ if (this.b8_1 === 2) {
1235
+ throw e;
1236
+ } else {
1237
+ this.a8_1 = this.b8_1;
1238
+ this.d8_1 = e;
1239
+ }
1240
+ }
1241
+ while (true);
1242
+ };
1243
+ function $resolveValueCOROUTINE$(value, fileUri, pointer, ctx, resultContinuation) {
1244
+ CoroutineImpl.call(this, resultContinuation);
1245
+ this.a1h_1 = value;
1246
+ this.b1h_1 = fileUri;
1247
+ this.c1h_1 = pointer;
1248
+ this.d1h_1 = ctx;
1249
+ }
1250
+ protoOf($resolveValueCOROUTINE$).i8 = function () {
1251
+ var suspendResult = this.c8_1;
1252
+ $sm: do
1253
+ try {
1254
+ var tmp = this.a8_1;
1255
+ switch (tmp) {
1256
+ case 0:
1257
+ this.b8_1 = 14;
1258
+ this.e1h_1 = this.b1h_1 + '#' + this.c1h_1;
1259
+ if (this.d1h_1.n1e_1.l1(this.e1h_1)) {
1260
+ this.d1h_1.p1e_1 = true;
1261
+ var tmp_0;
1262
+ switch (this.d1h_1.h1e_1.n1f_1.e2_1) {
1263
+ case 2:
1264
+ throw new CircularReferenceException('Circular $ref at ' + this.e1h_1);
1265
+ case 1:
1266
+ tmp_0 = this.a1h_1;
1267
+ break;
1268
+ case 0:
1269
+ var tmp1_elvis_lhs = this.d1h_1.m1e_1.r1(this.e1h_1);
1270
+ tmp_0 = tmp1_elvis_lhs == null ? this.a1h_1 : tmp1_elvis_lhs;
1271
+ break;
1272
+ default:
1273
+ noWhenBranchMatchedException();
1274
+ break;
1275
+ }
1276
+ return tmp_0;
1277
+ }
1278
+
1279
+ if (this.d1h_1.o1e_1.l1(this.e1h_1))
1280
+ return this.a1h_1;
1281
+ this.d1h_1.n1e_1.g(this.e1h_1);
1282
+ this.d1h_1.o1e_1.g(this.e1h_1);
1283
+ this.a8_1 = 1;
1284
+ continue $sm;
1285
+ case 1:
1286
+ this.f1h_1 = Unit_instance;
1287
+ this.a8_1 = 2;
1288
+ continue $sm;
1289
+ case 2:
1290
+ this.b8_1 = 13;
1291
+ var tmp_1;
1292
+ var tmp_2 = this.a1h_1;
1293
+ if (!(tmp_2 == null) ? isInterface(tmp_2, KtMap) : false) {
1294
+ var this_0 = this.a1h_1;
1295
+ tmp_1 = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).p1('$ref');
1296
+ } else {
1297
+ tmp_1 = false;
1298
+ }
1299
+
1300
+ if (tmp_1) {
1301
+ this.a8_1 = 9;
1302
+ var tmp_3 = this.a1h_1;
1303
+ suspendResult = resolveRef(isInterface(tmp_3, KtMap) ? tmp_3 : THROW_CCE(), this.b1h_1, this.c1h_1, this.d1h_1, this);
1304
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1305
+ return suspendResult;
1306
+ }
1307
+ continue $sm;
1308
+ } else {
1309
+ var tmp_4 = this.a1h_1;
1310
+ if (!(tmp_4 == null) ? isInterface(tmp_4, KtMutableMap) : false) {
1311
+ var tmp_5 = this;
1312
+ var tmp_6 = this.a1h_1;
1313
+ tmp_5.h1h_1 = isInterface(tmp_6, KtMutableMap) ? tmp_6 : THROW_CCE();
1314
+ this.k1h_1 = toList(this.h1h_1.u1()).i();
1315
+ this.a8_1 = 6;
1316
+ continue $sm;
1317
+ } else {
1318
+ var tmp_7 = this.a1h_1;
1319
+ if (!(tmp_7 == null) ? isInterface(tmp_7, KtMutableList) : false) {
1320
+ var tmp_8 = this;
1321
+ var tmp_9 = this.a1h_1;
1322
+ tmp_8.l1h_1 = isInterface(tmp_9, KtMutableList) ? tmp_9 : THROW_CCE();
1323
+ this.n1h_1 = get_indices(this.l1h_1).i();
1324
+ this.a8_1 = 3;
1325
+ continue $sm;
1326
+ } else {
1327
+ this.g1h_1 = this.a1h_1;
1328
+ this.a8_1 = 10;
1329
+ continue $sm;
1330
+ }
1331
+ }
1332
+ }
1333
+
1334
+ case 3:
1335
+ if (!this.n1h_1.j()) {
1336
+ this.a8_1 = 5;
1337
+ continue $sm;
1338
+ }
1339
+
1340
+ this.m1h_1 = this.n1h_1.k();
1341
+ this.a8_1 = 4;
1342
+ suspendResult = resolveValue(this.l1h_1.m(this.m1h_1), this.b1h_1, this.c1h_1 + '/' + this.m1h_1, this.d1h_1, this);
1343
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1344
+ return suspendResult;
1345
+ }
1346
+
1347
+ continue $sm;
1348
+ case 4:
1349
+ var resolved = suspendResult;
1350
+ if (!(resolved === this.l1h_1.m(this.m1h_1))) {
1351
+ this.l1h_1.z1(this.m1h_1, resolved);
1352
+ }
1353
+
1354
+ this.a8_1 = 3;
1355
+ continue $sm;
1356
+ case 5:
1357
+ this.g1h_1 = this.l1h_1;
1358
+ this.a8_1 = 10;
1359
+ continue $sm;
1360
+ case 6:
1361
+ if (!this.k1h_1.j()) {
1362
+ this.a8_1 = 8;
1363
+ continue $sm;
1364
+ }
1365
+
1366
+ var _destruct__k2r9zo = this.k1h_1.k();
1367
+ var tmp_10 = this;
1368
+ tmp_10.i1h_1 = _destruct__k2r9zo.n1();
1369
+ var tmp_11 = this;
1370
+ tmp_11.j1h_1 = _destruct__k2r9zo.o1();
1371
+ this.a8_1 = 7;
1372
+ suspendResult = resolveValue(this.j1h_1, this.b1h_1, this.c1h_1 + '/' + escapeToken(this.i1h_1), this.d1h_1, this);
1373
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1374
+ return suspendResult;
1375
+ }
1376
+
1377
+ continue $sm;
1378
+ case 7:
1379
+ var resolved_0 = suspendResult;
1380
+ if (!(resolved_0 === this.j1h_1)) {
1381
+ var tmp0 = this.h1h_1;
1382
+ var key = this.i1h_1;
1383
+ tmp0.v1(key, resolved_0);
1384
+ }
1385
+
1386
+ this.a8_1 = 6;
1387
+ continue $sm;
1388
+ case 8:
1389
+ var tmp0_0 = this.d1h_1.m1e_1;
1390
+ var tmp2 = this.e1h_1;
1391
+ var value = this.h1h_1;
1392
+ tmp0_0.v1(tmp2, value);
1393
+ this.g1h_1 = this.h1h_1;
1394
+ this.a8_1 = 10;
1395
+ continue $sm;
1396
+ case 9:
1397
+ this.g1h_1 = suspendResult;
1398
+ this.a8_1 = 10;
1399
+ continue $sm;
1400
+ case 10:
1401
+ this.f1h_1 = this.g1h_1;
1402
+ this.b8_1 = 14;
1403
+ this.a8_1 = 11;
1404
+ var tmp_12 = this;
1405
+ continue $sm;
1406
+ case 11:
1407
+ var tmp_13 = this.f1h_1;
1408
+ this.b8_1 = 14;
1409
+ this.d1h_1.n1e_1.y2(this.e1h_1);
1410
+ return tmp_13;
1411
+ case 12:
1412
+ this.b8_1 = 14;
1413
+ this.d1h_1.n1e_1.y2(this.e1h_1);
1414
+ return Unit_instance;
1415
+ case 13:
1416
+ this.b8_1 = 14;
1417
+ var t = this.d8_1;
1418
+ this.d1h_1.n1e_1.y2(this.e1h_1);
1419
+ throw t;
1420
+ case 14:
1421
+ throw this.d8_1;
1422
+ }
1423
+ } catch ($p) {
1424
+ var e = $p;
1425
+ if (this.b8_1 === 14) {
1426
+ throw e;
1427
+ } else {
1428
+ this.a8_1 = this.b8_1;
1429
+ this.d8_1 = e;
1430
+ }
1431
+ }
1432
+ while (true);
1433
+ };
1434
+ function $resolveRefCOROUTINE$(refMap, fileUri, pointer, ctx, resultContinuation) {
1435
+ CoroutineImpl.call(this, resultContinuation);
1436
+ this.w1h_1 = refMap;
1437
+ this.x1h_1 = fileUri;
1438
+ this.y1h_1 = pointer;
1439
+ this.z1h_1 = ctx;
1440
+ }
1441
+ protoOf($resolveRefCOROUTINE$).i8 = function () {
1442
+ var suspendResult = this.c8_1;
1443
+ $sm: do
1444
+ try {
1445
+ var tmp = this.a8_1;
1446
+ switch (tmp) {
1447
+ case 0:
1448
+ this.b8_1 = 5;
1449
+ var tmp_0 = this;
1450
+ var tmp_1 = this.w1h_1.r1('$ref');
1451
+ var tmp0_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : null;
1452
+ var tmp_2;
1453
+ if (tmp0_elvis_lhs == null) {
1454
+ return this.w1h_1;
1455
+ } else {
1456
+ tmp_2 = tmp0_elvis_lhs;
1457
+ }
1458
+
1459
+ tmp_0.b1i_1 = tmp_2;
1460
+ this.a1i_1 = Companion_instance_1.q1i(this.b1i_1, this.x1h_1);
1461
+ var tmp_3 = this;
1462
+ var tmp1_elvis_lhs = this.a1i_1.t1i_1;
1463
+ tmp_3.e1i_1 = tmp1_elvis_lhs == null ? this.x1h_1 : tmp1_elvis_lhs;
1464
+ this.d1i_1 = normalizePointer(this.a1i_1.u1i_1);
1465
+ this.c1i_1 = this.e1i_1 + '#' + this.d1i_1;
1466
+ if (this.z1h_1.n1e_1.l1(this.c1i_1)) {
1467
+ this.z1h_1.p1e_1 = true;
1468
+ var tmp_4;
1469
+ switch (this.z1h_1.h1e_1.n1f_1.e2_1) {
1470
+ case 2:
1471
+ throw new CircularReferenceException('Circular $ref at ' + this.c1i_1);
1472
+ case 1:
1473
+ tmp_4 = this.w1h_1;
1474
+ break;
1475
+ case 0:
1476
+ var cached = this.z1h_1.m1e_1.r1(this.c1i_1);
1477
+ tmp_4 = !(cached == null) ? mergeSiblings(this.w1h_1, cached) : this.w1h_1;
1478
+ break;
1479
+ default:
1480
+ noWhenBranchMatchedException();
1481
+ break;
1482
+ }
1483
+ return tmp_4;
1484
+ }
1485
+
1486
+ var tmp_5;
1487
+ if (this.a1i_1.s1i_1.y1i()) {
1488
+ var tmp0 = this.z1h_1.l1e_1;
1489
+ var key = this.e1i_1;
1490
+ tmp_5 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).p1(key);
1491
+ } else {
1492
+ tmp_5 = false;
1493
+ }
1494
+
1495
+ if (tmp_5) {
1496
+ this.a8_1 = 1;
1497
+ suspendResult = loadFile(this.e1i_1, this.z1h_1, this);
1498
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1499
+ return suspendResult;
1500
+ }
1501
+ continue $sm;
1502
+ } else {
1503
+ this.a8_1 = 3;
1504
+ continue $sm;
1505
+ }
1506
+
1507
+ case 1:
1508
+ var tmp3_elvis_lhs = suspendResult;
1509
+ var tmp_6;
1510
+ if (tmp3_elvis_lhs == null) {
1511
+ var tmp_7;
1512
+ switch (this.z1h_1.h1e_1.o1f_1.e2_1) {
1513
+ case 1:
1514
+ tmp_7 = this.w1h_1;
1515
+ break;
1516
+ case 0:
1517
+ throw new MissingRefException('Cannot load: ' + this.e1i_1);
1518
+ default:
1519
+ noWhenBranchMatchedException();
1520
+ break;
1521
+ }
1522
+ return tmp_7;
1523
+ } else {
1524
+ tmp_6 = tmp3_elvis_lhs;
1525
+ }
1526
+
1527
+ var text = tmp_6;
1528
+ var raw = parseText(text, this.e1i_1);
1529
+ var tmp0_0 = this.z1h_1.l1e_1;
1530
+ var tmp2 = this.e1i_1;
1531
+ var value = raw.t1d_1;
1532
+ tmp0_0.v1(tmp2, value);
1533
+ var tmp0_1 = this.z1h_1.s1e_1;
1534
+ var tmp2_0 = this.e1i_1;
1535
+ var value_0 = toMutableMap(raw.v1d_1);
1536
+ tmp0_1.v1(tmp2_0, value_0);
1537
+ var _iterator__ex2g4s = raw.v1d_1.u1().i();
1538
+ while (_iterator__ex2g4s.j()) {
1539
+ var element = _iterator__ex2g4s.k();
1540
+ var key_0 = element.n1();
1541
+ var loc = element.o1();
1542
+ if (!this.z1h_1.k1e_1.p1(key_0)) {
1543
+ this.z1h_1.k1e_1.v1(key_0, loc);
1544
+ }
1545
+ }
1546
+
1547
+ this.a8_1 = 2;
1548
+ suspendResult = resolveValue(raw.t1d_1, this.e1i_1, '', this.z1h_1, this);
1549
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1550
+ return suspendResult;
1551
+ }
1552
+
1553
+ continue $sm;
1554
+ case 2:
1555
+ this.a8_1 = 3;
1556
+ continue $sm;
1557
+ case 3:
1558
+ var tmp5_elvis_lhs = this.z1h_1.l1e_1.r1(this.e1i_1);
1559
+ var tmp_8;
1560
+ if (tmp5_elvis_lhs == null) {
1561
+ var tmp_9;
1562
+ switch (this.z1h_1.h1e_1.o1f_1.e2_1) {
1563
+ case 1:
1564
+ tmp_9 = this.w1h_1;
1565
+ break;
1566
+ case 0:
1567
+ throw new MissingRefException('Document not in cache: ' + this.e1i_1);
1568
+ default:
1569
+ noWhenBranchMatchedException();
1570
+ break;
1571
+ }
1572
+ return tmp_9;
1573
+ } else {
1574
+ tmp_8 = tmp5_elvis_lhs;
1575
+ }
1576
+
1577
+ var targetDoc = tmp_8;
1578
+ var tmp0_2 = this.z1h_1.m1e_1;
1579
+ var key_1 = this.c1i_1;
1580
+ if ((isInterface(tmp0_2, KtMap) ? tmp0_2 : THROW_CCE()).p1(key_1)) {
1581
+ var cached_0 = this.z1h_1.m1e_1.r1(this.c1i_1);
1582
+ var replaced = mergeSiblings(this.w1h_1, cached_0);
1583
+ this.z1h_1.q1e_1.g(new ResolvedRef(this.b1i_1, cached_0, replaced, this.a1i_1.t1i_1, this.x1h_1, this.y1h_1));
1584
+ return replaced;
1585
+ }
1586
+
1587
+ var tmp_10;
1588
+ var this_0 = this.d1i_1;
1589
+ if (charSequenceLength(this_0) === 0) {
1590
+ tmp_10 = targetDoc;
1591
+ } else {
1592
+ var tmp7_elvis_lhs = Companion_getInstance().j1c(this.d1i_1).n1c(targetDoc);
1593
+ var tmp_11;
1594
+ if (tmp7_elvis_lhs == null) {
1595
+ var tmp_12;
1596
+ switch (this.z1h_1.h1e_1.o1f_1.e2_1) {
1597
+ case 1:
1598
+ tmp_12 = this.w1h_1;
1599
+ break;
1600
+ case 0:
1601
+ throw new MissingRefException('Pointer ' + this.d1i_1 + ' not found in ' + this.e1i_1);
1602
+ default:
1603
+ noWhenBranchMatchedException();
1604
+ break;
1605
+ }
1606
+ return tmp_12;
1607
+ } else {
1608
+ tmp_11 = tmp7_elvis_lhs;
1609
+ }
1610
+ tmp_10 = tmp_11;
1611
+ }
1612
+
1613
+ var resolved = tmp_10;
1614
+ var tmp0_3 = this.z1h_1.m1e_1;
1615
+ var key_2 = this.c1i_1;
1616
+ tmp0_3.v1(key_2, resolved);
1617
+ this.a8_1 = 4;
1618
+ suspendResult = resolveValue(resolved, this.e1i_1, this.d1i_1, this.z1h_1, this);
1619
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1620
+ return suspendResult;
1621
+ }
1622
+
1623
+ continue $sm;
1624
+ case 4:
1625
+ var fullyResolved = suspendResult;
1626
+ var tmp0_4 = this.z1h_1.m1e_1;
1627
+ var key_3 = this.c1i_1;
1628
+ tmp0_4.v1(key_3, fullyResolved);
1629
+ var replaced_0 = mergeSiblings(this.w1h_1, fullyResolved);
1630
+ this.z1h_1.q1e_1.g(new ResolvedRef(this.b1i_1, fullyResolved, replaced_0, this.a1i_1.t1i_1, this.x1h_1, this.y1h_1));
1631
+ return replaced_0;
1632
+ case 5:
1633
+ throw this.d8_1;
1634
+ }
1635
+ } catch ($p) {
1636
+ var e = $p;
1637
+ if (this.b8_1 === 5) {
1638
+ throw e;
1639
+ } else {
1640
+ this.a8_1 = this.b8_1;
1641
+ this.d8_1 = e;
1642
+ }
1643
+ }
1644
+ while (true);
1645
+ };
1646
+ function $loadFileCOROUTINE$(uri, ctx, resultContinuation) {
1647
+ CoroutineImpl.call(this, resultContinuation);
1648
+ this.n1i_1 = uri;
1649
+ this.o1i_1 = ctx;
1650
+ }
1651
+ protoOf($loadFileCOROUTINE$).i8 = function () {
1652
+ var suspendResult = this.c8_1;
1653
+ $sm: do
1654
+ try {
1655
+ var tmp = this.a8_1;
1656
+ switch (tmp) {
1657
+ case 0:
1658
+ this.b8_1 = 3;
1659
+ var tmp0 = this.o1i_1.i1e_1;
1660
+ var tmp$ret$0;
1661
+ l$ret$1: do {
1662
+ var _iterator__ex2g4s = tmp0.i();
1663
+ while (_iterator__ex2g4s.j()) {
1664
+ var element = _iterator__ex2g4s.k();
1665
+ if (element.m1d(this.n1i_1)) {
1666
+ tmp$ret$0 = element;
1667
+ break l$ret$1;
1668
+ }
1669
+ }
1670
+ tmp$ret$0 = null;
1671
+ }
1672
+ while (false);
1673
+ var loader = tmp$ret$0;
1674
+ if (loader == null) {
1675
+ var unavailable = RefParserPlatform_instance.q1d(this.n1i_1);
1676
+ if (!(unavailable == null) && this.o1i_1.h1e_1.o1f_1.equals(OnMissing_FAIL_getInstance()))
1677
+ throw unavailable;
1678
+ return null;
1679
+ }
1680
+
1681
+ this.b8_1 = 2;
1682
+ this.a8_1 = 1;
1683
+ suspendResult = loader.r1d(this.n1i_1, this);
1684
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1685
+ return suspendResult;
1686
+ }
1687
+
1688
+ continue $sm;
1689
+ case 1:
1690
+ this.p1i_1 = suspendResult;
1691
+ this.b8_1 = 3;
1692
+ this.a8_1 = 4;
1693
+ continue $sm;
1694
+ case 2:
1695
+ this.b8_1 = 3;
1696
+ var tmp_0 = this.d8_1;
1697
+ if (tmp_0 instanceof CapabilityUnavailableException) {
1698
+ var e = this.d8_1;
1699
+ var tmp_1 = this;
1700
+ var tmp_2;
1701
+ if (this.o1i_1.h1e_1.o1f_1.equals(OnMissing_SKIP_getInstance())) {
1702
+ tmp_2 = null;
1703
+ } else {
1704
+ throw e;
1705
+ }
1706
+ tmp_1.p1i_1 = tmp_2;
1707
+ this.a8_1 = 4;
1708
+ continue $sm;
1709
+ } else {
1710
+ var tmp_3 = this.d8_1;
1711
+ if (tmp_3 instanceof Exception) {
1712
+ var e_0 = this.d8_1;
1713
+ var tmp_4 = this;
1714
+ var tmp_5;
1715
+ if (this.o1i_1.h1e_1.o1f_1.equals(OnMissing_SKIP_getInstance())) {
1716
+ tmp_5 = null;
1717
+ } else {
1718
+ throw new MissingRefException('Failed to load: ' + this.n1i_1, e_0);
1719
+ }
1720
+ tmp_4.p1i_1 = tmp_5;
1721
+ this.a8_1 = 4;
1722
+ continue $sm;
1723
+ } else {
1724
+ throw this.d8_1;
1725
+ }
1726
+ }
1727
+
1728
+ case 3:
1729
+ throw this.d8_1;
1730
+ case 4:
1731
+ this.b8_1 = 3;
1732
+ return this.p1i_1;
1733
+ }
1734
+ } catch ($p) {
1735
+ var e_1 = $p;
1736
+ if (this.b8_1 === 3) {
1737
+ throw e_1;
1738
+ } else {
1739
+ this.a8_1 = this.b8_1;
1740
+ this.d8_1 = e_1;
1741
+ }
1742
+ }
1743
+ while (true);
1744
+ };
1745
+ function mungeRef($this, ref) {
1746
+ if (ref === '#')
1747
+ return '#/';
1748
+ if (!contains(ref, ':') && !startsWith(ref, '#') && !startsWith(ref, '/') && !contains(ref, '$') && indexOf(ref, _Char___init__impl__6a9atx(46)) > 0) {
1749
+ return './' + ref;
1750
+ }
1751
+ return ref;
1752
+ }
1753
+ function detectFormat($this, ref) {
1754
+ return startsWith(ref, 'classpath:') ? SchemaRefFormat_CLASSPATH_getInstance() : startsWith(ref, 'http://') || startsWith(ref, 'https://') ? SchemaRefFormat_URL_getInstance() : startsWith(ref, 'file://') ? SchemaRefFormat_FILE_getInstance() : startsWith(ref, '#/') || ref === '#' ? SchemaRefFormat_INTERNAL_getInstance() : SchemaRefFormat_RELATIVE_getInstance();
1755
+ }
1756
+ function normalizePath($this, path) {
1757
+ var absolute = startsWith(path, '/');
1758
+ // Inline function 'kotlin.collections.mutableListOf' call
1759
+ var result = ArrayList_init_$Create$_0();
1760
+ // Inline function 'kotlin.collections.forEach' call
1761
+ var _iterator__ex2g4s = split(path, ['/']).i();
1762
+ while (_iterator__ex2g4s.j()) {
1763
+ var element = _iterator__ex2g4s.k();
1764
+ switch (element) {
1765
+ case '':
1766
+ case '.':
1767
+ break;
1768
+ case '..':
1769
+ // Inline function 'kotlin.collections.isNotEmpty' call
1770
+
1771
+ if (!result.l()) {
1772
+ result.b2(get_lastIndex(result));
1773
+ }
1774
+
1775
+ break;
1776
+ default:
1777
+ result.g(element);
1778
+ break;
1779
+ }
1780
+ }
1781
+ return absolute ? '/' + joinToString(result, '/') : joinToString(result, '/');
1782
+ }
1783
+ function Companion_1() {
1784
+ }
1785
+ protoOf(Companion_1).q1i = function (refString, baseUri) {
1786
+ var ref = mungeRef(this, refString);
1787
+ var format = detectFormat(this, ref);
1788
+ if (format.equals(SchemaRefFormat_INTERNAL_getInstance())) {
1789
+ return new SchemaRef(ref, format, null, ref, baseUri);
1790
+ }
1791
+ var hashIdx = indexOf_0(ref, '#/');
1792
+ var filePart;
1793
+ var pointer;
1794
+ if (hashIdx >= 0) {
1795
+ filePart = substring(ref, 0, hashIdx);
1796
+ pointer = substring_0(ref, hashIdx);
1797
+ } else if (ref === '#') {
1798
+ return new SchemaRef(ref, SchemaRefFormat_INTERNAL_getInstance(), null, '#/', baseUri);
1799
+ } else {
1800
+ filePart = ref;
1801
+ pointer = null;
1802
+ }
1803
+ var resolvedFileUri = format.e2_1 === 1 ? this.z1i(baseUri, filePart) : filePart;
1804
+ return new SchemaRef(ref, format, resolvedFileUri, pointer, baseUri);
1805
+ };
1806
+ protoOf(Companion_1).z1i = function (base, relative) {
1807
+ // Inline function 'kotlin.text.isEmpty' call
1808
+ if (charSequenceLength(relative) === 0)
1809
+ return base;
1810
+ if (startsWith(relative, 'http://') || startsWith(relative, 'https://') || startsWith(relative, 'file://') || startsWith(relative, 'classpath:'))
1811
+ return relative;
1812
+ var normalizedBase = replace_0(base, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(47));
1813
+ var normalizedRel = replace_0(relative, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(47));
1814
+ if (startsWith(normalizedBase, 'classpath:')) {
1815
+ var basePath = removePrefix(normalizedBase, 'classpath:');
1816
+ var baseDir = substringBeforeLast(basePath, '/') + '/';
1817
+ var combinedPath = startsWith(normalizedRel, '/') ? normalizedRel : baseDir + normalizedRel;
1818
+ return 'classpath:' + normalizePath(this, combinedPath);
1819
+ }
1820
+ var baseDir_0 = substringBeforeLast(normalizedBase, '/') + '/';
1821
+ var combined = startsWith(normalizedRel, '/') ? normalizedRel : baseDir_0 + normalizedRel;
1822
+ var parts = split(combined, ['/']);
1823
+ // Inline function 'kotlin.collections.mutableListOf' call
1824
+ var result = ArrayList_init_$Create$_0();
1825
+ var _iterator__ex2g4s = parts.i();
1826
+ while (_iterator__ex2g4s.j()) {
1827
+ var part = _iterator__ex2g4s.k();
1828
+ switch (part) {
1829
+ case '.':
1830
+ break;
1831
+ case '..':
1832
+ if (result.n() > 3) {
1833
+ result.b2(get_lastIndex(result));
1834
+ }
1835
+
1836
+ break;
1837
+ default:
1838
+ result.g(part);
1839
+ break;
1840
+ }
1841
+ }
1842
+ return joinToString(result, '/');
1843
+ };
1844
+ var Companion_instance_1;
1845
+ function Companion_getInstance_1() {
1846
+ return Companion_instance_1;
1847
+ }
1848
+ function SchemaRef(rawRef, format, fileUri, pointer, referencingUri) {
1849
+ this.r1i_1 = rawRef;
1850
+ this.s1i_1 = format;
1851
+ this.t1i_1 = fileUri;
1852
+ this.u1i_1 = pointer;
1853
+ this.v1i_1 = referencingUri;
1854
+ }
1855
+ protoOf(SchemaRef).toString = function () {
1856
+ return 'SchemaRef(rawRef=' + this.r1i_1 + ', format=' + this.s1i_1.toString() + ', fileUri=' + this.t1i_1 + ', pointer=' + this.u1i_1 + ', referencingUri=' + this.v1i_1 + ')';
1857
+ };
1858
+ protoOf(SchemaRef).hashCode = function () {
1859
+ var result = getStringHashCode(this.r1i_1);
1860
+ result = imul(result, 31) + this.s1i_1.hashCode() | 0;
1861
+ result = imul(result, 31) + (this.t1i_1 == null ? 0 : getStringHashCode(this.t1i_1)) | 0;
1862
+ result = imul(result, 31) + (this.u1i_1 == null ? 0 : getStringHashCode(this.u1i_1)) | 0;
1863
+ result = imul(result, 31) + getStringHashCode(this.v1i_1) | 0;
1864
+ return result;
1865
+ };
1866
+ protoOf(SchemaRef).equals = function (other) {
1867
+ if (this === other)
1868
+ return true;
1869
+ if (!(other instanceof SchemaRef))
1870
+ return false;
1871
+ if (!(this.r1i_1 === other.r1i_1))
1872
+ return false;
1873
+ if (!this.s1i_1.equals(other.s1i_1))
1874
+ return false;
1875
+ if (!(this.t1i_1 == other.t1i_1))
1876
+ return false;
1877
+ if (!(this.u1i_1 == other.u1i_1))
1878
+ return false;
1879
+ if (!(this.v1i_1 === other.v1i_1))
1880
+ return false;
1881
+ return true;
1882
+ };
1883
+ var SchemaRefFormat_INTERNAL_instance;
1884
+ var SchemaRefFormat_RELATIVE_instance;
1885
+ var SchemaRefFormat_FILE_instance;
1886
+ var SchemaRefFormat_CLASSPATH_instance;
1887
+ var SchemaRefFormat_URL_instance;
1888
+ var SchemaRefFormat_entriesInitialized;
1889
+ function SchemaRefFormat_initEntries() {
1890
+ if (SchemaRefFormat_entriesInitialized)
1891
+ return Unit_instance;
1892
+ SchemaRefFormat_entriesInitialized = true;
1893
+ SchemaRefFormat_INTERNAL_instance = new SchemaRefFormat('INTERNAL', 0);
1894
+ SchemaRefFormat_RELATIVE_instance = new SchemaRefFormat('RELATIVE', 1);
1895
+ SchemaRefFormat_FILE_instance = new SchemaRefFormat('FILE', 2);
1896
+ SchemaRefFormat_CLASSPATH_instance = new SchemaRefFormat('CLASSPATH', 3);
1897
+ SchemaRefFormat_URL_instance = new SchemaRefFormat('URL', 4);
1898
+ }
1899
+ function SchemaRefFormat(name, ordinal) {
1900
+ Enum.call(this, name, ordinal);
1901
+ }
1902
+ protoOf(SchemaRefFormat).y1i = function () {
1903
+ return this.equals(SchemaRefFormat_RELATIVE_getInstance()) || this.equals(SchemaRefFormat_FILE_getInstance()) || this.equals(SchemaRefFormat_CLASSPATH_getInstance()) || this.equals(SchemaRefFormat_URL_getInstance());
1904
+ };
1905
+ function SchemaRefFormat_INTERNAL_getInstance() {
1906
+ SchemaRefFormat_initEntries();
1907
+ return SchemaRefFormat_INTERNAL_instance;
1908
+ }
1909
+ function SchemaRefFormat_RELATIVE_getInstance() {
1910
+ SchemaRefFormat_initEntries();
1911
+ return SchemaRefFormat_RELATIVE_instance;
1912
+ }
1913
+ function SchemaRefFormat_FILE_getInstance() {
1914
+ SchemaRefFormat_initEntries();
1915
+ return SchemaRefFormat_FILE_instance;
1916
+ }
1917
+ function SchemaRefFormat_CLASSPATH_getInstance() {
1918
+ SchemaRefFormat_initEntries();
1919
+ return SchemaRefFormat_CLASSPATH_instance;
1920
+ }
1921
+ function SchemaRefFormat_URL_getInstance() {
1922
+ SchemaRefFormat_initEntries();
1923
+ return SchemaRefFormat_URL_instance;
1924
+ }
1925
+ function parseSchemaText(input, baseUri) {
1926
+ baseUri = baseUri === VOID ? 'memory://anonymous' : baseUri;
1927
+ var normalizedBaseUri = Companion_instance_0.q1c(baseUri);
1928
+ var raw = parseText(input, normalizedBaseUri);
1929
+ return exportParsedDocument(new ParsedDocument(raw.t1d_1, raw.u1d_1, raw.v1d_1, mapOf(to(raw.s1d_1, raw.v1d_1))));
1930
+ }
1931
+ function refParserPlatform() {
1932
+ var result = {};
1933
+ result.name = RefParserPlatform_instance.u1f();
1934
+ var capabilities = [];
1935
+ // Inline function 'kotlin.collections.forEach' call
1936
+ var _iterator__ex2g4s = RefParserPlatform_instance.v1f().i();
1937
+ while (_iterator__ex2g4s.j()) {
1938
+ var element = _iterator__ex2g4s.k();
1939
+ capabilities.push(element);
1940
+ }
1941
+ result.capabilities = capabilities;
1942
+ return result;
1943
+ }
1944
+ function dereferenceSchema(uri, mergeAllOf) {
1945
+ mergeAllOf = mergeAllOf === VOID ? false : mergeAllOf;
1946
+ var tmp = GlobalScope_instance;
1947
+ return promise(tmp, VOID, VOID, dereferenceSchema$slambda_0(uri, mergeAllOf, null));
1948
+ }
1949
+ function dereferenceSchemaText(input, baseUri, mergeAllOf) {
1950
+ baseUri = baseUri === VOID ? 'memory://anonymous' : baseUri;
1951
+ mergeAllOf = mergeAllOf === VOID ? false : mergeAllOf;
1952
+ var tmp = GlobalScope_instance;
1953
+ return promise(tmp, VOID, VOID, dereferenceSchemaText$slambda_0(input, baseUri, mergeAllOf, null));
1954
+ }
1955
+ function exportParsedDocument(document) {
1956
+ var result = {};
1957
+ result.root = convertToPlain(document.y1e_1);
1958
+ result.schema = convertToPlain(document.z1e_1);
1959
+ result.locations = convertToPlain(document.a1f_1);
1960
+ result.documentLocations = convertToPlain(document.b1f_1);
1961
+ result.resolvedRefs = exportResolvedRefs(document.c1f_1);
1962
+ result.hasCircularRefs = document.e1f_1;
1963
+ return result;
1964
+ }
1965
+ function exportResolvedRefs(resolvedRefs) {
1966
+ var result = [];
1967
+ // Inline function 'kotlin.collections.forEach' call
1968
+ var _iterator__ex2g4s = resolvedRefs.i();
1969
+ while (_iterator__ex2g4s.j()) {
1970
+ var element = _iterator__ex2g4s.k();
1971
+ var item = {};
1972
+ item.refString = element.f1f_1;
1973
+ item.targetUri = element.i1f_1;
1974
+ result.push(item);
1975
+ }
1976
+ return result;
1977
+ }
1978
+ function convertToPlain(value) {
1979
+ var tmp;
1980
+ if (value == null) {
1981
+ tmp = null;
1982
+ } else {
1983
+ if (value instanceof SourceLocation) {
1984
+ tmp = exportSourceLocation(value);
1985
+ } else {
1986
+ if (isInterface(value, KtMap)) {
1987
+ var result = {};
1988
+ // Inline function 'kotlin.collections.forEach' call
1989
+ // Inline function 'kotlin.collections.iterator' call
1990
+ var _iterator__ex2g4s = value.u1().i();
1991
+ while (_iterator__ex2g4s.j()) {
1992
+ var element = _iterator__ex2g4s.k();
1993
+ // Inline function 'kotlin.collections.component1' call
1994
+ var key = element.n1();
1995
+ // Inline function 'kotlin.collections.component2' call
1996
+ var childValue = element.o1();
1997
+ result[toString_0(key)] = convertToPlain(childValue);
1998
+ }
1999
+ tmp = result;
2000
+ } else {
2001
+ if (isInterface(value, Collection)) {
2002
+ var result_0 = [];
2003
+ // Inline function 'kotlin.collections.forEach' call
2004
+ var _iterator__ex2g4s_0 = value.i();
2005
+ while (_iterator__ex2g4s_0.j()) {
2006
+ var element_0 = _iterator__ex2g4s_0.k();
2007
+ result_0.push(convertToPlain(element_0));
2008
+ }
2009
+ tmp = result_0;
2010
+ } else {
2011
+ tmp = value;
2012
+ }
2013
+ }
2014
+ }
2015
+ }
2016
+ return tmp;
2017
+ }
2018
+ function exportSourceLocation(location) {
2019
+ var result = {};
2020
+ result.file = location.p1f_1;
2021
+ result.line = location.q1f_1;
2022
+ result.column = location.r1f_1;
2023
+ result.endLine = location.s1f_1;
2024
+ result.endColumn = location.t1f_1;
2025
+ return result;
2026
+ }
2027
+ function dereferenceSchema$slambda($uri, $mergeAllOf, resultContinuation) {
2028
+ this.i1j_1 = $uri;
2029
+ this.j1j_1 = $mergeAllOf;
2030
+ CoroutineImpl.call(this, resultContinuation);
2031
+ }
2032
+ protoOf(dereferenceSchema$slambda).m1j = function ($this$promise, $completion) {
2033
+ var tmp = this.n1j($this$promise, $completion);
2034
+ tmp.c8_1 = Unit_instance;
2035
+ tmp.d8_1 = null;
2036
+ return tmp.i8();
2037
+ };
2038
+ protoOf(dereferenceSchema$slambda).q8 = function (p1, $completion) {
2039
+ return this.m1j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2040
+ };
2041
+ protoOf(dereferenceSchema$slambda).i8 = function () {
2042
+ var suspendResult = this.c8_1;
2043
+ $sm: do
2044
+ try {
2045
+ var tmp = this.a8_1;
2046
+ switch (tmp) {
2047
+ case 0:
2048
+ this.b8_1 = 4;
2049
+ this.a8_1 = 1;
2050
+ suspendResult = (new RefParser(this.i1j_1)).t1e(this);
2051
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2052
+ return suspendResult;
2053
+ }
2054
+
2055
+ continue $sm;
2056
+ case 1:
2057
+ this.l1j_1 = suspendResult;
2058
+ if (this.j1j_1) {
2059
+ this.a8_1 = 2;
2060
+ suspendResult = this.l1j_1.u1e(this);
2061
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2062
+ return suspendResult;
2063
+ }
2064
+ continue $sm;
2065
+ } else {
2066
+ this.a8_1 = 3;
2067
+ continue $sm;
2068
+ }
2069
+
2070
+ case 2:
2071
+ this.a8_1 = 3;
2072
+ continue $sm;
2073
+ case 3:
2074
+ return exportParsedDocument(this.l1j_1.v1e());
2075
+ case 4:
2076
+ throw this.d8_1;
2077
+ }
2078
+ } catch ($p) {
2079
+ var e = $p;
2080
+ if (this.b8_1 === 4) {
2081
+ throw e;
2082
+ } else {
2083
+ this.a8_1 = this.b8_1;
2084
+ this.d8_1 = e;
2085
+ }
2086
+ }
2087
+ while (true);
2088
+ };
2089
+ protoOf(dereferenceSchema$slambda).n1j = function ($this$promise, completion) {
2090
+ var i = new dereferenceSchema$slambda(this.i1j_1, this.j1j_1, completion);
2091
+ i.k1j_1 = $this$promise;
2092
+ return i;
2093
+ };
2094
+ function dereferenceSchema$slambda_0($uri, $mergeAllOf, resultContinuation) {
2095
+ var i = new dereferenceSchema$slambda($uri, $mergeAllOf, resultContinuation);
2096
+ var l = function ($this$promise, $completion) {
2097
+ return i.m1j($this$promise, $completion);
2098
+ };
2099
+ l.$arity = 1;
2100
+ return l;
2101
+ }
2102
+ function dereferenceSchemaText$slambda($input, $baseUri, $mergeAllOf, resultContinuation) {
2103
+ this.w1j_1 = $input;
2104
+ this.x1j_1 = $baseUri;
2105
+ this.y1j_1 = $mergeAllOf;
2106
+ CoroutineImpl.call(this, resultContinuation);
2107
+ }
2108
+ protoOf(dereferenceSchemaText$slambda).m1j = function ($this$promise, $completion) {
2109
+ var tmp = this.n1j($this$promise, $completion);
2110
+ tmp.c8_1 = Unit_instance;
2111
+ tmp.d8_1 = null;
2112
+ return tmp.i8();
2113
+ };
2114
+ protoOf(dereferenceSchemaText$slambda).q8 = function (p1, $completion) {
2115
+ return this.m1j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2116
+ };
2117
+ protoOf(dereferenceSchemaText$slambda).i8 = function () {
2118
+ var suspendResult = this.c8_1;
2119
+ $sm: do
2120
+ try {
2121
+ var tmp = this.a8_1;
2122
+ switch (tmp) {
2123
+ case 0:
2124
+ this.b8_1 = 4;
2125
+ this.a8_1 = 1;
2126
+ suspendResult = Companion_instance_0.p1c(this.w1j_1, this.x1j_1).t1e(this);
2127
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2128
+ return suspendResult;
2129
+ }
2130
+
2131
+ continue $sm;
2132
+ case 1:
2133
+ this.a1k_1 = suspendResult;
2134
+ if (this.y1j_1) {
2135
+ this.a8_1 = 2;
2136
+ suspendResult = this.a1k_1.u1e(this);
2137
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2138
+ return suspendResult;
2139
+ }
2140
+ continue $sm;
2141
+ } else {
2142
+ this.a8_1 = 3;
2143
+ continue $sm;
2144
+ }
2145
+
2146
+ case 2:
2147
+ this.a8_1 = 3;
2148
+ continue $sm;
2149
+ case 3:
2150
+ return exportParsedDocument(this.a1k_1.v1e());
2151
+ case 4:
2152
+ throw this.d8_1;
2153
+ }
2154
+ } catch ($p) {
2155
+ var e = $p;
2156
+ if (this.b8_1 === 4) {
2157
+ throw e;
2158
+ } else {
2159
+ this.a8_1 = this.b8_1;
2160
+ this.d8_1 = e;
2161
+ }
2162
+ }
2163
+ while (true);
2164
+ };
2165
+ protoOf(dereferenceSchemaText$slambda).n1j = function ($this$promise, completion) {
2166
+ var i = new dereferenceSchemaText$slambda(this.w1j_1, this.x1j_1, this.y1j_1, completion);
2167
+ i.z1j_1 = $this$promise;
2168
+ return i;
2169
+ };
2170
+ function dereferenceSchemaText$slambda_0($input, $baseUri, $mergeAllOf, resultContinuation) {
2171
+ var i = new dereferenceSchemaText$slambda($input, $baseUri, $mergeAllOf, resultContinuation);
2172
+ var l = function ($this$promise, $completion) {
2173
+ return i.m1j($this$promise, $completion);
2174
+ };
2175
+ l.$arity = 1;
2176
+ return l;
2177
+ }
2178
+ function defaultLoaders(auth) {
2179
+ auth = auth === VOID ? emptyList() : auth;
2180
+ return listOf_0([new NodeFsLoader(), new FetchLoader(auth)]);
2181
+ }
2182
+ function applyQueryAuth($this, url) {
2183
+ // Inline function 'kotlin.collections.filter' call
2184
+ var tmp0 = $this.b1k_1;
2185
+ // Inline function 'kotlin.collections.filterTo' call
2186
+ var destination = ArrayList_init_$Create$_0();
2187
+ var _iterator__ex2g4s = tmp0.i();
2188
+ while (_iterator__ex2g4s.j()) {
2189
+ var element = _iterator__ex2g4s.k();
2190
+ if (element.e1k_1.equals(AuthenticationType_QUERY_getInstance()) && element.h1k(url)) {
2191
+ destination.g(element);
2192
+ }
2193
+ }
2194
+ // Inline function 'kotlin.collections.map' call
2195
+ // Inline function 'kotlin.collections.mapTo' call
2196
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
2197
+ var _iterator__ex2g4s_0 = destination.i();
2198
+ while (_iterator__ex2g4s_0.j()) {
2199
+ var item = _iterator__ex2g4s_0.k();
2200
+ var tmp$ret$3 = encode($this, item.c1k_1) + '=' + encode($this, item.d1k_1);
2201
+ destination_0.g(tmp$ret$3);
2202
+ }
2203
+ var params = destination_0;
2204
+ if (params.l())
2205
+ return url;
2206
+ var separator = contains(url, '?') ? '&' : '?';
2207
+ return url + separator + joinToString(params, '&');
2208
+ }
2209
+ function encode($this, value) {
2210
+ return encodeURIComponent(value);
2211
+ }
2212
+ function $loadCOROUTINE$(_this__u8e3s4, uri, resultContinuation) {
2213
+ CoroutineImpl.call(this, resultContinuation);
2214
+ this.q1k_1 = _this__u8e3s4;
2215
+ this.r1k_1 = uri;
2216
+ }
2217
+ protoOf($loadCOROUTINE$).i8 = function () {
2218
+ var suspendResult = this.c8_1;
2219
+ $sm: do
2220
+ try {
2221
+ var tmp = this.a8_1;
2222
+ switch (tmp) {
2223
+ case 0:
2224
+ this.b8_1 = 3;
2225
+ this.s1k_1 = applyQueryAuth(this.q1k_1, this.r1k_1);
2226
+ var headers = {};
2227
+ headers['Accept'] = 'application/json, application/yaml, */*';
2228
+ var _iterator__ex2g4s = this.q1k_1.b1k_1.i();
2229
+ while (_iterator__ex2g4s.j()) {
2230
+ var a = _iterator__ex2g4s.k();
2231
+ if (a.e1k_1.equals(AuthenticationType_HEADER_getInstance()) && a.h1k(this.s1k_1)) {
2232
+ headers[a.c1k_1] = a.d1k_1;
2233
+ }
2234
+ }
2235
+
2236
+ var init = {};
2237
+ init['headers'] = headers;
2238
+ this.a8_1 = 1;
2239
+ suspendResult = await_0(fetch(this.s1k_1, init), this);
2240
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2241
+ return suspendResult;
2242
+ }
2243
+
2244
+ continue $sm;
2245
+ case 1:
2246
+ var response = suspendResult;
2247
+ var tmp_0 = response.status;
2248
+ var status = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
2249
+ if (status >= 400)
2250
+ throw RuntimeException_init_$Create$('HTTP ' + status + ' loading: ' + this.s1k_1);
2251
+ this.a8_1 = 2;
2252
+ var tmp_1 = response.text();
2253
+ suspendResult = await_0(tmp_1 instanceof Promise ? tmp_1 : THROW_CCE(), this);
2254
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2255
+ return suspendResult;
2256
+ }
2257
+
2258
+ continue $sm;
2259
+ case 2:
2260
+ return suspendResult;
2261
+ case 3:
2262
+ throw this.d8_1;
2263
+ }
2264
+ } catch ($p) {
2265
+ var e = $p;
2266
+ if (this.b8_1 === 3) {
2267
+ throw e;
2268
+ } else {
2269
+ this.a8_1 = this.b8_1;
2270
+ this.d8_1 = e;
2271
+ }
2272
+ }
2273
+ while (true);
2274
+ };
2275
+ function FetchLoader(auth) {
2276
+ auth = auth === VOID ? emptyList() : auth;
2277
+ this.b1k_1 = auth;
2278
+ }
2279
+ protoOf(FetchLoader).m1d = function (uri) {
2280
+ return startsWith(uri, 'http://') || startsWith(uri, 'https://');
2281
+ };
2282
+ protoOf(FetchLoader).r1d = function (uri, $completion) {
2283
+ var tmp = new $loadCOROUTINE$(this, uri, $completion);
2284
+ tmp.c8_1 = Unit_instance;
2285
+ tmp.d8_1 = null;
2286
+ return tmp.i8();
2287
+ };
2288
+ function readUtf8File($this, filePath, $completion) {
2289
+ var tmp = new $readUtf8FileCOROUTINE$($this, filePath, $completion);
2290
+ tmp.c8_1 = Unit_instance;
2291
+ tmp.d8_1 = null;
2292
+ return tmp.i8();
2293
+ }
2294
+ function $readUtf8FileCOROUTINE$(_this__u8e3s4, filePath, resultContinuation) {
2295
+ CoroutineImpl.call(this, resultContinuation);
2296
+ this.b1l_1 = _this__u8e3s4;
2297
+ this.c1l_1 = filePath;
2298
+ }
2299
+ protoOf($readUtf8FileCOROUTINE$).i8 = function () {
2300
+ var suspendResult = this.c8_1;
2301
+ $sm: do
2302
+ try {
2303
+ var tmp = this.a8_1;
2304
+ if (tmp === 0) {
2305
+ this.b8_1 = 1;
2306
+ var tmp_0 = nodeFs(this).readFileSync(this.c1l_1, 'utf8');
2307
+ return (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE();
2308
+ } else if (tmp === 1) {
2309
+ throw this.d8_1;
2310
+ }
2311
+ } catch ($p) {
2312
+ var e = $p;
2313
+ throw e;
2314
+ }
2315
+ while (true);
2316
+ };
2317
+ function NodeFsLoader() {
2318
+ }
2319
+ protoOf(NodeFsLoader).m1d = function (uri) {
2320
+ return startsWith(uri, 'file://') || (!contains(uri, '://') && !startsWith(uri, 'classpath:'));
2321
+ };
2322
+ protoOf(NodeFsLoader).r1d = function (uri, $completion) {
2323
+ var normalizedUri = substringBefore(uri, _Char___init__impl__6a9atx(35));
2324
+ var tmp;
2325
+ // Inline function 'kotlin.text.matches' call
2326
+ if (Regex_init_$Create$('^file:///[A-Za-z]:/.*$').db(normalizedUri)) {
2327
+ tmp = removePrefix(normalizedUri, 'file:///');
2328
+ } else {
2329
+ if (startsWith(normalizedUri, 'file:///')) {
2330
+ tmp = removePrefix(normalizedUri, 'file://');
2331
+ } else {
2332
+ if (startsWith(normalizedUri, 'file://')) {
2333
+ tmp = removePrefix(normalizedUri, 'file://');
2334
+ } else {
2335
+ tmp = normalizedUri;
2336
+ }
2337
+ }
2338
+ }
2339
+ var filePath = tmp;
2340
+ return readUtf8File(this, filePath, $completion);
2341
+ };
2342
+ var cachedNodeFs;
2343
+ function currentPlatformName() {
2344
+ return isNodeRuntime() ? 'node' : 'browser';
2345
+ }
2346
+ function currentPlatformCapabilities() {
2347
+ // Inline function 'kotlin.collections.buildSet' call
2348
+ // Inline function 'kotlin.collections.buildSetInternal' call
2349
+ // Inline function 'kotlin.apply' call
2350
+ var this_0 = LinkedHashSet_init_$Create$();
2351
+ if (isNodeRuntime()) {
2352
+ this_0.g('jsonrefparser.filesystem');
2353
+ }
2354
+ if (hasGlobalFetch()) {
2355
+ this_0.g('jsonrefparser.http');
2356
+ }
2357
+ return this_0.j4();
2358
+ }
2359
+ function isNodeRuntime() {
2360
+ var tmp = typeof globalThis.process === 'object' && globalThis.process !== null && typeof (globalThis.process.versions || {}).node === 'string';
2361
+ return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
2362
+ }
2363
+ function hasGlobalFetch() {
2364
+ var tmp = typeof globalThis.fetch === 'function';
2365
+ return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
2366
+ }
2367
+ function nodeFs($completion) {
2368
+ var tmp = new $nodeFsCOROUTINE$($completion);
2369
+ tmp.c8_1 = Unit_instance;
2370
+ tmp.d8_1 = null;
2371
+ return tmp.i8();
2372
+ }
2373
+ function resolveNodeFs(preferBuiltinModule, $completion) {
2374
+ var tmp = new $resolveNodeFsCOROUTINE$(preferBuiltinModule, $completion);
2375
+ tmp.c8_1 = Unit_instance;
2376
+ tmp.d8_1 = null;
2377
+ return tmp.i8();
2378
+ }
2379
+ function $nodeFsCOROUTINE$(resultContinuation) {
2380
+ CoroutineImpl.call(this, resultContinuation);
2381
+ }
2382
+ protoOf($nodeFsCOROUTINE$).i8 = function () {
2383
+ var suspendResult = this.c8_1;
2384
+ $sm: do
2385
+ try {
2386
+ var tmp = this.a8_1;
2387
+ switch (tmp) {
2388
+ case 0:
2389
+ this.b8_1 = 3;
2390
+ if (cachedNodeFs == null) {
2391
+ this.a8_1 = 1;
2392
+ suspendResult = resolveNodeFs(true, this);
2393
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2394
+ return suspendResult;
2395
+ }
2396
+ continue $sm;
2397
+ } else {
2398
+ this.a8_1 = 2;
2399
+ continue $sm;
2400
+ }
2401
+
2402
+ case 1:
2403
+ cachedNodeFs = suspendResult;
2404
+ this.a8_1 = 2;
2405
+ continue $sm;
2406
+ case 2:
2407
+ return cachedNodeFs;
2408
+ case 3:
2409
+ throw this.d8_1;
2410
+ }
2411
+ } catch ($p) {
2412
+ var e = $p;
2413
+ if (this.b8_1 === 3) {
2414
+ throw e;
2415
+ } else {
2416
+ this.a8_1 = this.b8_1;
2417
+ this.d8_1 = e;
2418
+ }
2419
+ }
2420
+ while (true);
2421
+ };
2422
+ function $resolveNodeFsCOROUTINE$(preferBuiltinModule, resultContinuation) {
2423
+ CoroutineImpl.call(this, resultContinuation);
2424
+ this.t1l_1 = preferBuiltinModule;
2425
+ }
2426
+ protoOf($resolveNodeFsCOROUTINE$).i8 = function () {
2427
+ var suspendResult = this.c8_1;
2428
+ $sm: do
2429
+ try {
2430
+ var tmp = this.a8_1;
2431
+ switch (tmp) {
2432
+ case 0:
2433
+ this.b8_1 = 2;
2434
+ if (!isNodeRuntime()) {
2435
+ throw new CapabilityUnavailableException('jsonrefparser.filesystem', currentPlatformName());
2436
+ }
2437
+
2438
+ var process = globalThis.process;
2439
+ if (this.t1l_1 && typeof process.getBuiltinModule === 'function') {
2440
+ return process.getBuiltinModule('node:fs');
2441
+ }
2442
+
2443
+ var dynamicImport = new Function('s', 'return import(s)');
2444
+ this.a8_1 = 1;
2445
+ var tmp_0 = dynamicImport('node:fs');
2446
+ suspendResult = await_0(tmp_0 instanceof Promise ? tmp_0 : THROW_CCE(), this);
2447
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2448
+ return suspendResult;
2449
+ }
2450
+
2451
+ continue $sm;
2452
+ case 1:
2453
+ var module_0 = suspendResult;
2454
+ return typeof module_0.readFileSync === 'function' ? module_0 : module_0.default;
2455
+ case 2:
2456
+ throw this.d8_1;
2457
+ }
2458
+ } catch ($p) {
2459
+ var e = $p;
2460
+ if (this.b8_1 === 2) {
2461
+ throw e;
2462
+ } else {
2463
+ this.a8_1 = this.b8_1;
2464
+ this.d8_1 = e;
2465
+ }
2466
+ }
2467
+ while (true);
2468
+ };
2469
+ //region block: init
2470
+ Companion_instance_0 = new Companion_0();
2471
+ RefParserPlatform_instance = new RefParserPlatform();
2472
+ Companion_instance_1 = new Companion_1();
2473
+ cachedNodeFs = null;
2474
+ //endregion
2475
+ //region block: exports
2476
+ function $jsExportAll$(_) {
2477
+ var $io = _.io || (_.io = {});
2478
+ var $io$zenwave360 = $io.zenwave360 || ($io.zenwave360 = {});
2479
+ var $io$zenwave360$jsonrefparser = $io$zenwave360.jsonrefparser || ($io$zenwave360.jsonrefparser = {});
2480
+ $io$zenwave360$jsonrefparser.parseSchemaText = parseSchemaText;
2481
+ $io$zenwave360$jsonrefparser.refParserPlatform = refParserPlatform;
2482
+ $io$zenwave360$jsonrefparser.dereferenceSchema = dereferenceSchema;
2483
+ $io$zenwave360$jsonrefparser.dereferenceSchemaText = dereferenceSchemaText;
2484
+ }
2485
+ $jsExportAll$(_);
2486
+ _.$jsExportAll$ = $jsExportAll$;
2487
+ //endregion
2488
+ return _;
2489
+ }));
2490
+
2491
+ //# sourceMappingURL=json-schema-ref-parser-kmp.js.map