@flock/wirespec 0.8.30 → 0.8.31

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.
@@ -1,60 +1,98 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './wirespec-src-compiler-cli.js', './arrow-arrow-core.js', './wirespec-src-compiler-core.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './wirespec-src-compiler-core.js', './wirespec-src-compiler-cli.js', './arrow-arrow-core.js', './wirespec-src-openapi.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./wirespec-src-compiler-cli.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-core.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./wirespec-src-compiler-core.js'), require('./wirespec-src-compiler-cli.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-openapi.js'));
6
6
  else {
7
7
  if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
8
  throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'wirespec-src-compiler-lib'.");
9
9
  }
10
+ if (typeof this['wirespec-src-compiler-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-compiler-lib'.");
12
+ }
10
13
  if (typeof this['wirespec-src-compiler-cli'] === 'undefined') {
11
14
  throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'wirespec-src-compiler-cli' was not found. Please, check whether 'wirespec-src-compiler-cli' is loaded prior to 'wirespec-src-compiler-lib'.");
12
15
  }
13
16
  if (typeof this['arrow-arrow-core'] === 'undefined') {
14
17
  throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'arrow-arrow-core' was not found. Please, check whether 'arrow-arrow-core' is loaded prior to 'wirespec-src-compiler-lib'.");
15
18
  }
16
- if (typeof this['wirespec-src-compiler-core'] === 'undefined') {
17
- throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-compiler-lib'.");
19
+ if (typeof this['wirespec-src-openapi'] === 'undefined') {
20
+ throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'wirespec-src-openapi' was not found. Please, check whether 'wirespec-src-openapi' is loaded prior to 'wirespec-src-compiler-lib'.");
18
21
  }
19
- root['wirespec-src-compiler-lib'] = factory(typeof this['wirespec-src-compiler-lib'] === 'undefined' ? {} : this['wirespec-src-compiler-lib'], this['kotlin-kotlin-stdlib-js-ir'], this['wirespec-src-compiler-cli'], this['arrow-arrow-core'], this['wirespec-src-compiler-core']);
22
+ root['wirespec-src-compiler-lib'] = factory(typeof this['wirespec-src-compiler-lib'] === 'undefined' ? {} : this['wirespec-src-compiler-lib'], this['kotlin-kotlin-stdlib-js-ir'], this['wirespec-src-compiler-core'], this['wirespec-src-compiler-cli'], this['arrow-arrow-core'], this['wirespec-src-openapi']);
20
23
  }
21
- }(this, function (_, kotlin_kotlin, kotlin_community_flock_wirespec_compiler_cli, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_core) {
24
+ }(this, function (_, kotlin_kotlin, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_compiler_cli, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_openapi) {
22
25
  'use strict';
23
26
  //region block: imports
24
27
  var imul = Math.imul;
25
- var protoOf = kotlin_kotlin.$_$.t7;
26
- var classMeta = kotlin_kotlin.$_$.q6;
27
- var VOID = kotlin_kotlin.$_$.cb;
28
- var setMetadataFor = kotlin_kotlin.$_$.u7;
28
+ var protoOf = kotlin_kotlin.$_$.j8;
29
+ var interfaceMeta = kotlin_kotlin.$_$.p7;
30
+ var VOID = kotlin_kotlin.$_$.vb;
31
+ var setMetadataFor = kotlin_kotlin.$_$.k8;
32
+ var getStringHashCode = kotlin_kotlin.$_$.n7;
33
+ var THROW_CCE = kotlin_kotlin.$_$.va;
34
+ var classMeta = kotlin_kotlin.$_$.g7;
35
+ var toString = kotlin_kotlin.$_$.o8;
36
+ var hashCode = kotlin_kotlin.$_$.o7;
37
+ var equals = kotlin_kotlin.$_$.i7;
38
+ var THROW_ISE = kotlin_kotlin.$_$.wa;
39
+ var Unit_getInstance = kotlin_kotlin.$_$.r3;
40
+ var Enum = kotlin_kotlin.$_$.ma;
41
+ var defineProp = kotlin_kotlin.$_$.h7;
42
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.l4;
43
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
44
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.qb;
45
+ var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.p;
46
+ var copyToArray = kotlin_kotlin.$_$.y4;
47
+ var Enum_0 = kotlin_community_flock_wirespec_compiler_core.$_$.o;
48
+ var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.n;
49
+ var Type = kotlin_community_flock_wirespec_compiler_core.$_$.w;
50
+ var Param = kotlin_community_flock_wirespec_compiler_core.$_$.m;
51
+ var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.l;
52
+ var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.t;
53
+ var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.s;
54
+ var Any = kotlin_community_flock_wirespec_compiler_core.$_$.r;
29
55
  var main = kotlin_community_flock_wirespec_compiler_cli.$_$.a;
30
- var Unit_getInstance = kotlin_kotlin.$_$.h3;
31
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.xa;
32
- var first = kotlin_kotlin.$_$.u4;
56
+ var first = kotlin_kotlin.$_$.h5;
33
57
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.d;
34
- var collectionSizeOrDefault = kotlin_kotlin.$_$.b4;
35
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
36
58
  var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.e;
37
- var copyToArray = kotlin_kotlin.$_$.n4;
38
59
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.c;
39
- var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.y;
40
- var objectMeta = kotlin_kotlin.$_$.s7;
41
- var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
42
- var compile = kotlin_community_flock_wirespec_compiler_core.$_$.x;
43
- var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.w;
44
- var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.v;
60
+ var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
61
+ var objectMeta = kotlin_kotlin.$_$.i8;
62
+ var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
63
+ var compile = kotlin_community_flock_wirespec_compiler_core.$_$.z;
64
+ var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.y;
65
+ var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.x;
45
66
  var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
46
- var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
47
- var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
48
- var defineProp = kotlin_kotlin.$_$.r6;
49
- var THROW_CCE = kotlin_kotlin.$_$.ca;
50
- var equals = kotlin_kotlin.$_$.s6;
51
- var contentEquals = kotlin_kotlin.$_$.c4;
52
- var contentHashCode = kotlin_kotlin.$_$.d4;
53
- var toString = kotlin_kotlin.$_$.y7;
54
- var getStringHashCode = kotlin_kotlin.$_$.x6;
67
+ var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
68
+ var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
69
+ var Companion_getInstance = kotlin_community_flock_wirespec_openapi.$_$.a;
70
+ var Companion_getInstance_0 = kotlin_community_flock_wirespec_openapi.$_$.b;
71
+ var contentEquals = kotlin_kotlin.$_$.m4;
72
+ var contentHashCode = kotlin_kotlin.$_$.n4;
55
73
  //endregion
56
74
  //region block: pre-declaration
57
- setMetadataFor(Ast, 'Ast', classMeta);
75
+ setMetadataFor(WsNode, 'WsNode', interfaceMeta);
76
+ setMetadataFor(WsType, 'WsType', classMeta, VOID, [WsNode]);
77
+ setMetadataFor(WsShape, 'WsShape', classMeta);
78
+ setMetadataFor(WsEndpoint, 'WsEndpoint', classMeta, VOID, [WsNode]);
79
+ setMetadataFor(WsEnum, 'WsEnum', classMeta, VOID, [WsNode]);
80
+ setMetadataFor(WsRefined, 'WsRefined', classMeta, VOID, [WsNode]);
81
+ setMetadataFor(WsMethod, 'WsMethod', classMeta, Enum);
82
+ setMetadataFor(WsSegment, 'WsSegment', interfaceMeta);
83
+ setMetadataFor(WsLiteral, 'WsLiteral', classMeta, VOID, [WsSegment]);
84
+ setMetadataFor(WsParam, 'WsParam', classMeta, VOID, [WsSegment]);
85
+ setMetadataFor(Shape, 'Shape', classMeta);
86
+ setMetadataFor(WsField, 'WsField', classMeta);
87
+ setMetadataFor(WsIdentifier, 'WsIdentifier', classMeta);
88
+ setMetadataFor(WsReference, 'WsReference', interfaceMeta);
89
+ setMetadataFor(WsAny, 'WsAny', classMeta, VOID, [WsReference]);
90
+ setMetadataFor(WsCustom, 'WsCustom', classMeta, VOID, [WsReference]);
91
+ setMetadataFor(WsPrimitive, 'WsPrimitive', classMeta, VOID, [WsReference]);
92
+ setMetadataFor(WsPrimitiveType, 'WsPrimitiveType', classMeta, Enum);
93
+ setMetadataFor(WsRequest, 'WsRequest', classMeta);
94
+ setMetadataFor(WsResponse, 'WsResponse', classMeta);
95
+ setMetadataFor(WsContent, 'WsContent', classMeta);
58
96
  setMetadataFor(WsCompilationResult, 'WsCompilationResult', classMeta);
59
97
  setMetadataFor(WsCompiled, 'WsCompiled', classMeta);
60
98
  setMetadataFor(Compiler$Companion$logger$1, VOID, classMeta, Logger);
@@ -66,6 +104,8 @@
66
104
  setMetadataFor(WsToTypeScript, 'WsToTypeScript', classMeta, Compiler);
67
105
  setMetadataFor(Companion_2, 'Companion', objectMeta);
68
106
  setMetadataFor(WsToWirespec, 'WsToWirespec', classMeta, Compiler);
107
+ setMetadataFor(OpenApiV2, 'OpenApiV2', classMeta);
108
+ setMetadataFor(OpenApiV3, 'OpenApiV3', classMeta);
69
109
  setMetadataFor(WsTokenResult, 'WsTokenResult', classMeta);
70
110
  setMetadataFor(WsTokens, 'WsTokens', classMeta);
71
111
  setMetadataFor(WsToken, 'WsToken', classMeta);
@@ -73,12 +113,1119 @@
73
113
  setMetadataFor(WsIndex, 'WsIndex', classMeta);
74
114
  setMetadataFor(WsError, 'WsError', classMeta);
75
115
  //endregion
76
- function Ast(value) {
116
+ function WsNode() {
117
+ }
118
+ function WsType(name, shape) {
119
+ this.name = name;
120
+ this.shape = shape;
121
+ }
122
+ protoOf(WsType).lf = function () {
123
+ return this.name;
124
+ };
125
+ protoOf(WsType).l2d = function () {
126
+ return this.shape;
127
+ };
128
+ protoOf(WsType).j3 = function () {
129
+ return this.name;
130
+ };
131
+ protoOf(WsType).k3 = function () {
132
+ return this.shape;
133
+ };
134
+ protoOf(WsType).m2d = function (name, shape) {
135
+ return new WsType(name, shape);
136
+ };
137
+ protoOf(WsType).copy = function (name, shape, $super) {
138
+ name = name === VOID ? this.name : name;
139
+ shape = shape === VOID ? this.shape : shape;
140
+ return this.m2d(name, shape);
141
+ };
142
+ protoOf(WsType).toString = function () {
143
+ return 'WsType(name=' + this.name + ', shape=' + this.shape + ')';
144
+ };
145
+ protoOf(WsType).hashCode = function () {
146
+ var result = getStringHashCode(this.name);
147
+ result = imul(result, 31) + this.shape.hashCode() | 0;
148
+ return result;
149
+ };
150
+ protoOf(WsType).equals = function (other) {
151
+ if (this === other)
152
+ return true;
153
+ if (!(other instanceof WsType))
154
+ return false;
155
+ var tmp0_other_with_cast = other instanceof WsType ? other : THROW_CCE();
156
+ if (!(this.name === tmp0_other_with_cast.name))
157
+ return false;
158
+ if (!this.shape.equals(tmp0_other_with_cast.shape))
159
+ return false;
160
+ return true;
161
+ };
162
+ function WsShape(value) {
163
+ this.value = value;
164
+ }
165
+ protoOf(WsShape).w = function () {
166
+ return this.value;
167
+ };
168
+ protoOf(WsShape).j3 = function () {
169
+ return this.value;
170
+ };
171
+ protoOf(WsShape).n2d = function (value) {
172
+ return new WsShape(value);
173
+ };
174
+ protoOf(WsShape).copy = function (value, $super) {
175
+ value = value === VOID ? this.value : value;
176
+ return this.n2d(value);
177
+ };
178
+ protoOf(WsShape).toString = function () {
179
+ return 'WsShape(value=' + toString(this.value) + ')';
180
+ };
181
+ protoOf(WsShape).hashCode = function () {
182
+ return hashCode(this.value);
183
+ };
184
+ protoOf(WsShape).equals = function (other) {
185
+ if (this === other)
186
+ return true;
187
+ if (!(other instanceof WsShape))
188
+ return false;
189
+ var tmp0_other_with_cast = other instanceof WsShape ? other : THROW_CCE();
190
+ if (!equals(this.value, tmp0_other_with_cast.value))
191
+ return false;
192
+ return true;
193
+ };
194
+ function WsEndpoint(name, method, path, query, headers, cookies, requests, responses) {
195
+ this.name = name;
196
+ this.method = method;
197
+ this.path = path;
198
+ this.query = query;
199
+ this.headers = headers;
200
+ this.cookies = cookies;
201
+ this.requests = requests;
202
+ this.responses = responses;
203
+ }
204
+ protoOf(WsEndpoint).lf = function () {
205
+ return this.name;
206
+ };
207
+ protoOf(WsEndpoint).o2d = function () {
208
+ return this.method;
209
+ };
210
+ protoOf(WsEndpoint).p2d = function () {
211
+ return this.path;
212
+ };
213
+ protoOf(WsEndpoint).q2d = function () {
214
+ return this.query;
215
+ };
216
+ protoOf(WsEndpoint).r2d = function () {
217
+ return this.headers;
218
+ };
219
+ protoOf(WsEndpoint).s2d = function () {
220
+ return this.cookies;
221
+ };
222
+ protoOf(WsEndpoint).t2d = function () {
223
+ return this.requests;
224
+ };
225
+ protoOf(WsEndpoint).u2d = function () {
226
+ return this.responses;
227
+ };
228
+ protoOf(WsEndpoint).j3 = function () {
229
+ return this.name;
230
+ };
231
+ protoOf(WsEndpoint).k3 = function () {
232
+ return this.method;
233
+ };
234
+ protoOf(WsEndpoint).v2d = function () {
235
+ return this.path;
236
+ };
237
+ protoOf(WsEndpoint).w2d = function () {
238
+ return this.query;
239
+ };
240
+ protoOf(WsEndpoint).x2d = function () {
241
+ return this.headers;
242
+ };
243
+ protoOf(WsEndpoint).y2d = function () {
244
+ return this.cookies;
245
+ };
246
+ protoOf(WsEndpoint).z2d = function () {
247
+ return this.requests;
248
+ };
249
+ protoOf(WsEndpoint).a2e = function () {
250
+ return this.responses;
251
+ };
252
+ protoOf(WsEndpoint).b2e = function (name, method, path, query, headers, cookies, requests, responses) {
253
+ return new WsEndpoint(name, method, path, query, headers, cookies, requests, responses);
254
+ };
255
+ protoOf(WsEndpoint).copy = function (name, method, path, query, headers, cookies, requests, responses, $super) {
256
+ name = name === VOID ? this.name : name;
257
+ method = method === VOID ? this.method : method;
258
+ path = path === VOID ? this.path : path;
259
+ query = query === VOID ? this.query : query;
260
+ headers = headers === VOID ? this.headers : headers;
261
+ cookies = cookies === VOID ? this.cookies : cookies;
262
+ requests = requests === VOID ? this.requests : requests;
263
+ responses = responses === VOID ? this.responses : responses;
264
+ return this.b2e(name, method, path, query, headers, cookies, requests, responses);
265
+ };
266
+ protoOf(WsEndpoint).toString = function () {
267
+ return 'WsEndpoint(name=' + this.name + ', method=' + this.method + ', path=' + toString(this.path) + ', query=' + toString(this.query) + ', headers=' + toString(this.headers) + ', cookies=' + toString(this.cookies) + ', requests=' + toString(this.requests) + ', responses=' + toString(this.responses) + ')';
268
+ };
269
+ protoOf(WsEndpoint).hashCode = function () {
270
+ var result = getStringHashCode(this.name);
271
+ result = imul(result, 31) + this.method.hashCode() | 0;
272
+ result = imul(result, 31) + hashCode(this.path) | 0;
273
+ result = imul(result, 31) + hashCode(this.query) | 0;
274
+ result = imul(result, 31) + hashCode(this.headers) | 0;
275
+ result = imul(result, 31) + hashCode(this.cookies) | 0;
276
+ result = imul(result, 31) + hashCode(this.requests) | 0;
277
+ result = imul(result, 31) + hashCode(this.responses) | 0;
278
+ return result;
279
+ };
280
+ protoOf(WsEndpoint).equals = function (other) {
281
+ if (this === other)
282
+ return true;
283
+ if (!(other instanceof WsEndpoint))
284
+ return false;
285
+ var tmp0_other_with_cast = other instanceof WsEndpoint ? other : THROW_CCE();
286
+ if (!(this.name === tmp0_other_with_cast.name))
287
+ return false;
288
+ if (!this.method.equals(tmp0_other_with_cast.method))
289
+ return false;
290
+ if (!equals(this.path, tmp0_other_with_cast.path))
291
+ return false;
292
+ if (!equals(this.query, tmp0_other_with_cast.query))
293
+ return false;
294
+ if (!equals(this.headers, tmp0_other_with_cast.headers))
295
+ return false;
296
+ if (!equals(this.cookies, tmp0_other_with_cast.cookies))
297
+ return false;
298
+ if (!equals(this.requests, tmp0_other_with_cast.requests))
299
+ return false;
300
+ if (!equals(this.responses, tmp0_other_with_cast.responses))
301
+ return false;
302
+ return true;
303
+ };
304
+ function WsEnum(name, entries) {
305
+ this.name = name;
306
+ this.entries = entries;
307
+ }
308
+ protoOf(WsEnum).lf = function () {
309
+ return this.name;
310
+ };
311
+ protoOf(WsEnum).u = function () {
312
+ return this.entries;
313
+ };
314
+ protoOf(WsEnum).j3 = function () {
315
+ return this.name;
316
+ };
317
+ protoOf(WsEnum).k3 = function () {
318
+ return this.entries;
319
+ };
320
+ protoOf(WsEnum).c2e = function (name, entries) {
321
+ return new WsEnum(name, entries);
322
+ };
323
+ protoOf(WsEnum).copy = function (name, entries, $super) {
324
+ name = name === VOID ? this.name : name;
325
+ entries = entries === VOID ? this.entries : entries;
326
+ return this.c2e(name, entries);
327
+ };
328
+ protoOf(WsEnum).toString = function () {
329
+ return 'WsEnum(name=' + this.name + ', entries=' + toString(this.entries) + ')';
330
+ };
331
+ protoOf(WsEnum).hashCode = function () {
332
+ var result = getStringHashCode(this.name);
333
+ result = imul(result, 31) + hashCode(this.entries) | 0;
334
+ return result;
335
+ };
336
+ protoOf(WsEnum).equals = function (other) {
337
+ if (this === other)
338
+ return true;
339
+ if (!(other instanceof WsEnum))
340
+ return false;
341
+ var tmp0_other_with_cast = other instanceof WsEnum ? other : THROW_CCE();
342
+ if (!(this.name === tmp0_other_with_cast.name))
343
+ return false;
344
+ if (!equals(this.entries, tmp0_other_with_cast.entries))
345
+ return false;
346
+ return true;
347
+ };
348
+ function WsRefined(name, validator) {
349
+ this.name = name;
350
+ this.validator = validator;
351
+ }
352
+ protoOf(WsRefined).lf = function () {
353
+ return this.name;
354
+ };
355
+ protoOf(WsRefined).d2e = function () {
356
+ return this.validator;
357
+ };
358
+ protoOf(WsRefined).j3 = function () {
359
+ return this.name;
360
+ };
361
+ protoOf(WsRefined).k3 = function () {
362
+ return this.validator;
363
+ };
364
+ protoOf(WsRefined).e2e = function (name, validator) {
365
+ return new WsRefined(name, validator);
366
+ };
367
+ protoOf(WsRefined).copy = function (name, validator, $super) {
368
+ name = name === VOID ? this.name : name;
369
+ validator = validator === VOID ? this.validator : validator;
370
+ return this.e2e(name, validator);
371
+ };
372
+ protoOf(WsRefined).toString = function () {
373
+ return 'WsRefined(name=' + this.name + ', validator=' + this.validator + ')';
374
+ };
375
+ protoOf(WsRefined).hashCode = function () {
376
+ var result = getStringHashCode(this.name);
377
+ result = imul(result, 31) + getStringHashCode(this.validator) | 0;
378
+ return result;
379
+ };
380
+ protoOf(WsRefined).equals = function (other) {
381
+ if (this === other)
382
+ return true;
383
+ if (!(other instanceof WsRefined))
384
+ return false;
385
+ var tmp0_other_with_cast = other instanceof WsRefined ? other : THROW_CCE();
386
+ if (!(this.name === tmp0_other_with_cast.name))
387
+ return false;
388
+ if (!(this.validator === tmp0_other_with_cast.validator))
389
+ return false;
390
+ return true;
391
+ };
392
+ var WsMethod_GET_instance;
393
+ var WsMethod_POST_instance;
394
+ var WsMethod_PUT_instance;
395
+ var WsMethod_DELETE_instance;
396
+ var WsMethod_OPTIONS_instance;
397
+ var WsMethod_HEAD_instance;
398
+ var WsMethod_PATCH_instance;
399
+ var WsMethod_TRACE_instance;
400
+ function values() {
401
+ return [WsMethod_GET_getInstance(), WsMethod_POST_getInstance(), WsMethod_PUT_getInstance(), WsMethod_DELETE_getInstance(), WsMethod_OPTIONS_getInstance(), WsMethod_HEAD_getInstance(), WsMethod_PATCH_getInstance(), WsMethod_TRACE_getInstance()];
402
+ }
403
+ function valueOf(value) {
404
+ switch (value) {
405
+ case 'GET':
406
+ return WsMethod_GET_getInstance();
407
+ case 'POST':
408
+ return WsMethod_POST_getInstance();
409
+ case 'PUT':
410
+ return WsMethod_PUT_getInstance();
411
+ case 'DELETE':
412
+ return WsMethod_DELETE_getInstance();
413
+ case 'OPTIONS':
414
+ return WsMethod_OPTIONS_getInstance();
415
+ case 'HEAD':
416
+ return WsMethod_HEAD_getInstance();
417
+ case 'PATCH':
418
+ return WsMethod_PATCH_getInstance();
419
+ case 'TRACE':
420
+ return WsMethod_TRACE_getInstance();
421
+ default:
422
+ WsMethod_initEntries();
423
+ THROW_ISE();
424
+ break;
425
+ }
426
+ }
427
+ var WsMethod_entriesInitialized;
428
+ function WsMethod_initEntries() {
429
+ if (WsMethod_entriesInitialized)
430
+ return Unit_getInstance();
431
+ WsMethod_entriesInitialized = true;
432
+ WsMethod_GET_instance = new WsMethod('GET', 0);
433
+ WsMethod_POST_instance = new WsMethod('POST', 1);
434
+ WsMethod_PUT_instance = new WsMethod('PUT', 2);
435
+ WsMethod_DELETE_instance = new WsMethod('DELETE', 3);
436
+ WsMethod_OPTIONS_instance = new WsMethod('OPTIONS', 4);
437
+ WsMethod_HEAD_instance = new WsMethod('HEAD', 5);
438
+ WsMethod_PATCH_instance = new WsMethod('PATCH', 6);
439
+ WsMethod_TRACE_instance = new WsMethod('TRACE', 7);
440
+ }
441
+ function WsMethod(name, ordinal) {
442
+ Enum.call(this, name, ordinal);
443
+ }
444
+ function WsSegment() {
445
+ }
446
+ function WsLiteral(value) {
77
447
  this.value = value;
78
448
  }
79
- protoOf(Ast).w = function () {
449
+ protoOf(WsLiteral).w = function () {
80
450
  return this.value;
81
451
  };
452
+ protoOf(WsLiteral).j3 = function () {
453
+ return this.value;
454
+ };
455
+ protoOf(WsLiteral).z2c = function (value) {
456
+ return new WsLiteral(value);
457
+ };
458
+ protoOf(WsLiteral).copy = function (value, $super) {
459
+ value = value === VOID ? this.value : value;
460
+ return this.z2c(value);
461
+ };
462
+ protoOf(WsLiteral).toString = function () {
463
+ return 'WsLiteral(value=' + this.value + ')';
464
+ };
465
+ protoOf(WsLiteral).hashCode = function () {
466
+ return getStringHashCode(this.value);
467
+ };
468
+ protoOf(WsLiteral).equals = function (other) {
469
+ if (this === other)
470
+ return true;
471
+ if (!(other instanceof WsLiteral))
472
+ return false;
473
+ var tmp0_other_with_cast = other instanceof WsLiteral ? other : THROW_CCE();
474
+ if (!(this.value === tmp0_other_with_cast.value))
475
+ return false;
476
+ return true;
477
+ };
478
+ function WsParam(identifier, reference) {
479
+ this.identifier = identifier;
480
+ this.reference = reference;
481
+ }
482
+ protoOf(WsParam).h2e = function () {
483
+ return this.identifier;
484
+ };
485
+ protoOf(WsParam).i2e = function () {
486
+ return this.reference;
487
+ };
488
+ protoOf(WsParam).j3 = function () {
489
+ return this.identifier;
490
+ };
491
+ protoOf(WsParam).k3 = function () {
492
+ return this.reference;
493
+ };
494
+ protoOf(WsParam).j2e = function (identifier, reference) {
495
+ return new WsParam(identifier, reference);
496
+ };
497
+ protoOf(WsParam).copy = function (identifier, reference, $super) {
498
+ identifier = identifier === VOID ? this.identifier : identifier;
499
+ reference = reference === VOID ? this.reference : reference;
500
+ return this.j2e(identifier, reference);
501
+ };
502
+ protoOf(WsParam).toString = function () {
503
+ return 'WsParam(identifier=' + this.identifier + ', reference=' + this.reference + ')';
504
+ };
505
+ protoOf(WsParam).hashCode = function () {
506
+ var result = this.identifier.hashCode();
507
+ result = imul(result, 31) + hashCode(this.reference) | 0;
508
+ return result;
509
+ };
510
+ protoOf(WsParam).equals = function (other) {
511
+ if (this === other)
512
+ return true;
513
+ if (!(other instanceof WsParam))
514
+ return false;
515
+ var tmp0_other_with_cast = other instanceof WsParam ? other : THROW_CCE();
516
+ if (!this.identifier.equals(tmp0_other_with_cast.identifier))
517
+ return false;
518
+ if (!equals(this.reference, tmp0_other_with_cast.reference))
519
+ return false;
520
+ return true;
521
+ };
522
+ function Shape(value) {
523
+ this.value = value;
524
+ }
525
+ protoOf(Shape).w = function () {
526
+ return this.value;
527
+ };
528
+ protoOf(Shape).j3 = function () {
529
+ return this.value;
530
+ };
531
+ protoOf(Shape).n2d = function (value) {
532
+ return new Shape(value);
533
+ };
534
+ protoOf(Shape).copy = function (value, $super) {
535
+ value = value === VOID ? this.value : value;
536
+ return this.n2d(value);
537
+ };
538
+ protoOf(Shape).toString = function () {
539
+ return 'Shape(value=' + toString(this.value) + ')';
540
+ };
541
+ protoOf(Shape).hashCode = function () {
542
+ return hashCode(this.value);
543
+ };
544
+ protoOf(Shape).equals = function (other) {
545
+ if (this === other)
546
+ return true;
547
+ if (!(other instanceof Shape))
548
+ return false;
549
+ var tmp0_other_with_cast = other instanceof Shape ? other : THROW_CCE();
550
+ if (!equals(this.value, tmp0_other_with_cast.value))
551
+ return false;
552
+ return true;
553
+ };
554
+ function WsField(identifier, reference, isNullable) {
555
+ this.identifier = identifier;
556
+ this.reference = reference;
557
+ this.isNullable = isNullable;
558
+ }
559
+ protoOf(WsField).h2e = function () {
560
+ return this.identifier;
561
+ };
562
+ protoOf(WsField).i2e = function () {
563
+ return this.reference;
564
+ };
565
+ protoOf(WsField).mh = function () {
566
+ return this.isNullable;
567
+ };
568
+ protoOf(WsField).j3 = function () {
569
+ return this.identifier;
570
+ };
571
+ protoOf(WsField).k3 = function () {
572
+ return this.reference;
573
+ };
574
+ protoOf(WsField).v2d = function () {
575
+ return this.isNullable;
576
+ };
577
+ protoOf(WsField).k2e = function (identifier, reference, isNullable) {
578
+ return new WsField(identifier, reference, isNullable);
579
+ };
580
+ protoOf(WsField).copy = function (identifier, reference, isNullable, $super) {
581
+ identifier = identifier === VOID ? this.identifier : identifier;
582
+ reference = reference === VOID ? this.reference : reference;
583
+ isNullable = isNullable === VOID ? this.isNullable : isNullable;
584
+ return this.k2e(identifier, reference, isNullable);
585
+ };
586
+ protoOf(WsField).toString = function () {
587
+ return 'WsField(identifier=' + this.identifier + ', reference=' + this.reference + ', isNullable=' + this.isNullable + ')';
588
+ };
589
+ protoOf(WsField).hashCode = function () {
590
+ var result = this.identifier.hashCode();
591
+ result = imul(result, 31) + hashCode(this.reference) | 0;
592
+ result = imul(result, 31) + (this.isNullable | 0) | 0;
593
+ return result;
594
+ };
595
+ protoOf(WsField).equals = function (other) {
596
+ if (this === other)
597
+ return true;
598
+ if (!(other instanceof WsField))
599
+ return false;
600
+ var tmp0_other_with_cast = other instanceof WsField ? other : THROW_CCE();
601
+ if (!this.identifier.equals(tmp0_other_with_cast.identifier))
602
+ return false;
603
+ if (!equals(this.reference, tmp0_other_with_cast.reference))
604
+ return false;
605
+ if (!(this.isNullable === tmp0_other_with_cast.isNullable))
606
+ return false;
607
+ return true;
608
+ };
609
+ function WsIdentifier(value) {
610
+ this.value = value;
611
+ }
612
+ protoOf(WsIdentifier).w = function () {
613
+ return this.value;
614
+ };
615
+ protoOf(WsIdentifier).j3 = function () {
616
+ return this.value;
617
+ };
618
+ protoOf(WsIdentifier).z2c = function (value) {
619
+ return new WsIdentifier(value);
620
+ };
621
+ protoOf(WsIdentifier).copy = function (value, $super) {
622
+ value = value === VOID ? this.value : value;
623
+ return this.z2c(value);
624
+ };
625
+ protoOf(WsIdentifier).toString = function () {
626
+ return 'WsIdentifier(value=' + this.value + ')';
627
+ };
628
+ protoOf(WsIdentifier).hashCode = function () {
629
+ return getStringHashCode(this.value);
630
+ };
631
+ protoOf(WsIdentifier).equals = function (other) {
632
+ if (this === other)
633
+ return true;
634
+ if (!(other instanceof WsIdentifier))
635
+ return false;
636
+ var tmp0_other_with_cast = other instanceof WsIdentifier ? other : THROW_CCE();
637
+ if (!(this.value === tmp0_other_with_cast.value))
638
+ return false;
639
+ return true;
640
+ };
641
+ function WsReference() {
642
+ }
643
+ function WsAny(isIterable, isMap) {
644
+ isMap = isMap === VOID ? false : isMap;
645
+ this.l2e_1 = isIterable;
646
+ this.m2e_1 = isMap;
647
+ }
648
+ protoOf(WsAny).a22 = function () {
649
+ return this.l2e_1;
650
+ };
651
+ protoOf(WsAny).x22 = function () {
652
+ return this.m2e_1;
653
+ };
654
+ protoOf(WsAny).j3 = function () {
655
+ return this.l2e_1;
656
+ };
657
+ protoOf(WsAny).k3 = function () {
658
+ return this.m2e_1;
659
+ };
660
+ protoOf(WsAny).d26 = function (isIterable, isMap) {
661
+ return new WsAny(isIterable, isMap);
662
+ };
663
+ protoOf(WsAny).copy = function (isIterable, isMap, $super) {
664
+ isIterable = isIterable === VOID ? this.l2e_1 : isIterable;
665
+ isMap = isMap === VOID ? this.m2e_1 : isMap;
666
+ return this.d26(isIterable, isMap);
667
+ };
668
+ protoOf(WsAny).toString = function () {
669
+ return 'WsAny(isIterable=' + this.l2e_1 + ', isMap=' + this.m2e_1 + ')';
670
+ };
671
+ protoOf(WsAny).hashCode = function () {
672
+ var result = this.l2e_1 | 0;
673
+ result = imul(result, 31) + (this.m2e_1 | 0) | 0;
674
+ return result;
675
+ };
676
+ protoOf(WsAny).equals = function (other) {
677
+ if (this === other)
678
+ return true;
679
+ if (!(other instanceof WsAny))
680
+ return false;
681
+ var tmp0_other_with_cast = other instanceof WsAny ? other : THROW_CCE();
682
+ if (!(this.l2e_1 === tmp0_other_with_cast.l2e_1))
683
+ return false;
684
+ if (!(this.m2e_1 === tmp0_other_with_cast.m2e_1))
685
+ return false;
686
+ return true;
687
+ };
688
+ function WsCustom(value, isIterable, isMap) {
689
+ isMap = isMap === VOID ? false : isMap;
690
+ this.value = value;
691
+ this.n2e_1 = isIterable;
692
+ this.o2e_1 = isMap;
693
+ }
694
+ protoOf(WsCustom).w = function () {
695
+ return this.value;
696
+ };
697
+ protoOf(WsCustom).a22 = function () {
698
+ return this.n2e_1;
699
+ };
700
+ protoOf(WsCustom).x22 = function () {
701
+ return this.o2e_1;
702
+ };
703
+ protoOf(WsCustom).j3 = function () {
704
+ return this.value;
705
+ };
706
+ protoOf(WsCustom).k3 = function () {
707
+ return this.n2e_1;
708
+ };
709
+ protoOf(WsCustom).v2d = function () {
710
+ return this.o2e_1;
711
+ };
712
+ protoOf(WsCustom).f26 = function (value, isIterable, isMap) {
713
+ return new WsCustom(value, isIterable, isMap);
714
+ };
715
+ protoOf(WsCustom).copy = function (value, isIterable, isMap, $super) {
716
+ value = value === VOID ? this.value : value;
717
+ isIterable = isIterable === VOID ? this.n2e_1 : isIterable;
718
+ isMap = isMap === VOID ? this.o2e_1 : isMap;
719
+ return this.f26(value, isIterable, isMap);
720
+ };
721
+ protoOf(WsCustom).toString = function () {
722
+ return 'WsCustom(value=' + this.value + ', isIterable=' + this.n2e_1 + ', isMap=' + this.o2e_1 + ')';
723
+ };
724
+ protoOf(WsCustom).hashCode = function () {
725
+ var result = getStringHashCode(this.value);
726
+ result = imul(result, 31) + (this.n2e_1 | 0) | 0;
727
+ result = imul(result, 31) + (this.o2e_1 | 0) | 0;
728
+ return result;
729
+ };
730
+ protoOf(WsCustom).equals = function (other) {
731
+ if (this === other)
732
+ return true;
733
+ if (!(other instanceof WsCustom))
734
+ return false;
735
+ var tmp0_other_with_cast = other instanceof WsCustom ? other : THROW_CCE();
736
+ if (!(this.value === tmp0_other_with_cast.value))
737
+ return false;
738
+ if (!(this.n2e_1 === tmp0_other_with_cast.n2e_1))
739
+ return false;
740
+ if (!(this.o2e_1 === tmp0_other_with_cast.o2e_1))
741
+ return false;
742
+ return true;
743
+ };
744
+ function WsPrimitive(type, isIterable, isMap) {
745
+ isMap = isMap === VOID ? false : isMap;
746
+ this.type = type;
747
+ this.p2e_1 = isIterable;
748
+ this.q2e_1 = isMap;
749
+ }
750
+ protoOf(WsPrimitive).r2e = function () {
751
+ return this.type;
752
+ };
753
+ protoOf(WsPrimitive).a22 = function () {
754
+ return this.p2e_1;
755
+ };
756
+ protoOf(WsPrimitive).x22 = function () {
757
+ return this.q2e_1;
758
+ };
759
+ protoOf(WsPrimitive).j3 = function () {
760
+ return this.type;
761
+ };
762
+ protoOf(WsPrimitive).k3 = function () {
763
+ return this.p2e_1;
764
+ };
765
+ protoOf(WsPrimitive).v2d = function () {
766
+ return this.q2e_1;
767
+ };
768
+ protoOf(WsPrimitive).s2e = function (type, isIterable, isMap) {
769
+ return new WsPrimitive(type, isIterable, isMap);
770
+ };
771
+ protoOf(WsPrimitive).copy = function (type, isIterable, isMap, $super) {
772
+ type = type === VOID ? this.type : type;
773
+ isIterable = isIterable === VOID ? this.p2e_1 : isIterable;
774
+ isMap = isMap === VOID ? this.q2e_1 : isMap;
775
+ return this.s2e(type, isIterable, isMap);
776
+ };
777
+ protoOf(WsPrimitive).toString = function () {
778
+ return 'WsPrimitive(type=' + this.type + ', isIterable=' + this.p2e_1 + ', isMap=' + this.q2e_1 + ')';
779
+ };
780
+ protoOf(WsPrimitive).hashCode = function () {
781
+ var result = this.type.hashCode();
782
+ result = imul(result, 31) + (this.p2e_1 | 0) | 0;
783
+ result = imul(result, 31) + (this.q2e_1 | 0) | 0;
784
+ return result;
785
+ };
786
+ protoOf(WsPrimitive).equals = function (other) {
787
+ if (this === other)
788
+ return true;
789
+ if (!(other instanceof WsPrimitive))
790
+ return false;
791
+ var tmp0_other_with_cast = other instanceof WsPrimitive ? other : THROW_CCE();
792
+ if (!this.type.equals(tmp0_other_with_cast.type))
793
+ return false;
794
+ if (!(this.p2e_1 === tmp0_other_with_cast.p2e_1))
795
+ return false;
796
+ if (!(this.q2e_1 === tmp0_other_with_cast.q2e_1))
797
+ return false;
798
+ return true;
799
+ };
800
+ var WsPrimitiveType_String_instance;
801
+ var WsPrimitiveType_Integer_instance;
802
+ var WsPrimitiveType_Number_instance;
803
+ var WsPrimitiveType_Boolean_instance;
804
+ function values_0() {
805
+ return [WsPrimitiveType_String_getInstance(), WsPrimitiveType_Integer_getInstance(), WsPrimitiveType_Number_getInstance(), WsPrimitiveType_Boolean_getInstance()];
806
+ }
807
+ function valueOf_0(value) {
808
+ switch (value) {
809
+ case 'String':
810
+ return WsPrimitiveType_String_getInstance();
811
+ case 'Integer':
812
+ return WsPrimitiveType_Integer_getInstance();
813
+ case 'Number':
814
+ return WsPrimitiveType_Number_getInstance();
815
+ case 'Boolean':
816
+ return WsPrimitiveType_Boolean_getInstance();
817
+ default:
818
+ WsPrimitiveType_initEntries();
819
+ THROW_ISE();
820
+ break;
821
+ }
822
+ }
823
+ var WsPrimitiveType_entriesInitialized;
824
+ function WsPrimitiveType_initEntries() {
825
+ if (WsPrimitiveType_entriesInitialized)
826
+ return Unit_getInstance();
827
+ WsPrimitiveType_entriesInitialized = true;
828
+ WsPrimitiveType_String_instance = new WsPrimitiveType('String', 0);
829
+ WsPrimitiveType_Integer_instance = new WsPrimitiveType('Integer', 1);
830
+ WsPrimitiveType_Number_instance = new WsPrimitiveType('Number', 2);
831
+ WsPrimitiveType_Boolean_instance = new WsPrimitiveType('Boolean', 3);
832
+ }
833
+ function WsPrimitiveType(name, ordinal) {
834
+ Enum.call(this, name, ordinal);
835
+ }
836
+ function WsRequest(content) {
837
+ this.content = content;
838
+ }
839
+ protoOf(WsRequest).t12 = function () {
840
+ return this.content;
841
+ };
842
+ protoOf(WsRequest).j3 = function () {
843
+ return this.content;
844
+ };
845
+ protoOf(WsRequest).v2e = function (content) {
846
+ return new WsRequest(content);
847
+ };
848
+ protoOf(WsRequest).copy = function (content, $super) {
849
+ content = content === VOID ? this.content : content;
850
+ return this.v2e(content);
851
+ };
852
+ protoOf(WsRequest).toString = function () {
853
+ return 'WsRequest(content=' + this.content + ')';
854
+ };
855
+ protoOf(WsRequest).hashCode = function () {
856
+ return this.content == null ? 0 : this.content.hashCode();
857
+ };
858
+ protoOf(WsRequest).equals = function (other) {
859
+ if (this === other)
860
+ return true;
861
+ if (!(other instanceof WsRequest))
862
+ return false;
863
+ var tmp0_other_with_cast = other instanceof WsRequest ? other : THROW_CCE();
864
+ if (!equals(this.content, tmp0_other_with_cast.content))
865
+ return false;
866
+ return true;
867
+ };
868
+ function WsResponse(status, content) {
869
+ this.status = status;
870
+ this.content = content;
871
+ }
872
+ protoOf(WsResponse).w2e = function () {
873
+ return this.status;
874
+ };
875
+ protoOf(WsResponse).t12 = function () {
876
+ return this.content;
877
+ };
878
+ protoOf(WsResponse).j3 = function () {
879
+ return this.status;
880
+ };
881
+ protoOf(WsResponse).k3 = function () {
882
+ return this.content;
883
+ };
884
+ protoOf(WsResponse).x2e = function (status, content) {
885
+ return new WsResponse(status, content);
886
+ };
887
+ protoOf(WsResponse).copy = function (status, content, $super) {
888
+ status = status === VOID ? this.status : status;
889
+ content = content === VOID ? this.content : content;
890
+ return this.x2e(status, content);
891
+ };
892
+ protoOf(WsResponse).toString = function () {
893
+ return 'WsResponse(status=' + this.status + ', content=' + this.content + ')';
894
+ };
895
+ protoOf(WsResponse).hashCode = function () {
896
+ var result = getStringHashCode(this.status);
897
+ result = imul(result, 31) + (this.content == null ? 0 : this.content.hashCode()) | 0;
898
+ return result;
899
+ };
900
+ protoOf(WsResponse).equals = function (other) {
901
+ if (this === other)
902
+ return true;
903
+ if (!(other instanceof WsResponse))
904
+ return false;
905
+ var tmp0_other_with_cast = other instanceof WsResponse ? other : THROW_CCE();
906
+ if (!(this.status === tmp0_other_with_cast.status))
907
+ return false;
908
+ if (!equals(this.content, tmp0_other_with_cast.content))
909
+ return false;
910
+ return true;
911
+ };
912
+ function WsContent(type, reference, isNullable) {
913
+ isNullable = isNullable === VOID ? false : isNullable;
914
+ this.type = type;
915
+ this.reference = reference;
916
+ this.isNullable = isNullable;
917
+ }
918
+ protoOf(WsContent).r2e = function () {
919
+ return this.type;
920
+ };
921
+ protoOf(WsContent).i2e = function () {
922
+ return this.reference;
923
+ };
924
+ protoOf(WsContent).mh = function () {
925
+ return this.isNullable;
926
+ };
927
+ protoOf(WsContent).j3 = function () {
928
+ return this.type;
929
+ };
930
+ protoOf(WsContent).k3 = function () {
931
+ return this.reference;
932
+ };
933
+ protoOf(WsContent).v2d = function () {
934
+ return this.isNullable;
935
+ };
936
+ protoOf(WsContent).y2e = function (type, reference, isNullable) {
937
+ return new WsContent(type, reference, isNullable);
938
+ };
939
+ protoOf(WsContent).copy = function (type, reference, isNullable, $super) {
940
+ type = type === VOID ? this.type : type;
941
+ reference = reference === VOID ? this.reference : reference;
942
+ isNullable = isNullable === VOID ? this.isNullable : isNullable;
943
+ return this.y2e(type, reference, isNullable);
944
+ };
945
+ protoOf(WsContent).toString = function () {
946
+ return 'WsContent(type=' + this.type + ', reference=' + this.reference + ', isNullable=' + this.isNullable + ')';
947
+ };
948
+ protoOf(WsContent).hashCode = function () {
949
+ var result = getStringHashCode(this.type);
950
+ result = imul(result, 31) + hashCode(this.reference) | 0;
951
+ result = imul(result, 31) + (this.isNullable | 0) | 0;
952
+ return result;
953
+ };
954
+ protoOf(WsContent).equals = function (other) {
955
+ if (this === other)
956
+ return true;
957
+ if (!(other instanceof WsContent))
958
+ return false;
959
+ var tmp0_other_with_cast = other instanceof WsContent ? other : THROW_CCE();
960
+ if (!(this.type === tmp0_other_with_cast.type))
961
+ return false;
962
+ if (!equals(this.reference, tmp0_other_with_cast.reference))
963
+ return false;
964
+ if (!(this.isNullable === tmp0_other_with_cast.isNullable))
965
+ return false;
966
+ return true;
967
+ };
968
+ function produce(_this__u8e3s4) {
969
+ // Inline function 'kotlin.collections.toTypedArray' call
970
+ // Inline function 'kotlin.collections.map' call
971
+ // Inline function 'kotlin.collections.mapTo' call
972
+ var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
973
+ var tmp0_iterator = _this__u8e3s4.c();
974
+ while (tmp0_iterator.d()) {
975
+ var item = tmp0_iterator.e();
976
+ var tmp$ret$1;
977
+ // Inline function 'produce.<anonymous>' call
978
+ var tmp;
979
+ if (item instanceof Type) {
980
+ tmp = new WsType(item.f22_1, produce_0(item.g22_1));
981
+ } else {
982
+ if (item instanceof Endpoint) {
983
+ tmp = new WsEndpoint(item.p21_1, produce_7(item.q21_1), produce_1(item.r21_1), produce_3(item.s21_1), produce_3(item.t21_1), produce_3(item.u21_1), produce_10(item.v21_1), produce_12(item.w21_1));
984
+ } else {
985
+ if (item instanceof Enum_0) {
986
+ var tmp$ret$0;
987
+ // Inline function 'kotlin.collections.toTypedArray' call
988
+ var tmp0_toTypedArray = item.z22_1;
989
+ tmp$ret$0 = copyToArray(tmp0_toTypedArray);
990
+ tmp = new WsEnum(item.y22_1, tmp$ret$0);
991
+ } else {
992
+ if (item instanceof Refined) {
993
+ tmp = new WsRefined(item.a23_1, item.b23_1.d23_1);
994
+ } else {
995
+ noWhenBranchMatchedException();
996
+ }
997
+ }
998
+ }
999
+ }
1000
+ tmp$ret$1 = tmp;
1001
+ tmp0_mapTo.a(tmp$ret$1);
1002
+ }
1003
+ return copyToArray(tmp0_mapTo);
1004
+ }
1005
+ function produce_0(_this__u8e3s4) {
1006
+ var tmp$ret$3;
1007
+ // Inline function 'kotlin.collections.toTypedArray' call
1008
+ // Inline function 'kotlin.collections.map' call
1009
+ var tmp0_map = _this__u8e3s4.k22_1;
1010
+ // Inline function 'kotlin.collections.mapTo' call
1011
+ var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
1012
+ var tmp0_iterator = tmp0_map.c();
1013
+ while (tmp0_iterator.d()) {
1014
+ var item = tmp0_iterator.e();
1015
+ var tmp$ret$0;
1016
+ // Inline function 'produce.<anonymous>' call
1017
+ tmp$ret$0 = produce_2(item);
1018
+ tmp0_mapTo.a(tmp$ret$0);
1019
+ }
1020
+ tmp$ret$3 = copyToArray(tmp0_mapTo);
1021
+ return new WsShape(tmp$ret$3);
1022
+ }
1023
+ function produce_1(_this__u8e3s4) {
1024
+ // Inline function 'kotlin.collections.toTypedArray' call
1025
+ // Inline function 'kotlin.collections.map' call
1026
+ // Inline function 'kotlin.collections.mapTo' call
1027
+ var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1028
+ var tmp0_iterator = _this__u8e3s4.c();
1029
+ while (tmp0_iterator.d()) {
1030
+ var item = tmp0_iterator.e();
1031
+ var tmp$ret$0;
1032
+ // Inline function 'produce.<anonymous>' call
1033
+ var tmp;
1034
+ if (item instanceof Literal) {
1035
+ tmp = new WsLiteral(item.f23_1);
1036
+ } else {
1037
+ if (item instanceof Param) {
1038
+ tmp = new WsParam(produce_4(item.c22_1), produce_5(item.d22_1));
1039
+ } else {
1040
+ noWhenBranchMatchedException();
1041
+ }
1042
+ }
1043
+ tmp$ret$0 = tmp;
1044
+ tmp0_mapTo.a(tmp$ret$0);
1045
+ }
1046
+ return copyToArray(tmp0_mapTo);
1047
+ }
1048
+ function produce_2(_this__u8e3s4) {
1049
+ return new WsField(produce_4(_this__u8e3s4.l22_1), produce_5(_this__u8e3s4.m22_1), _this__u8e3s4.n22_1);
1050
+ }
1051
+ function produce_3(_this__u8e3s4) {
1052
+ // Inline function 'kotlin.collections.toTypedArray' call
1053
+ // Inline function 'kotlin.collections.map' call
1054
+ // Inline function 'kotlin.collections.mapTo' call
1055
+ var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1056
+ var tmp0_iterator = _this__u8e3s4.c();
1057
+ while (tmp0_iterator.d()) {
1058
+ var item = tmp0_iterator.e();
1059
+ var tmp$ret$0;
1060
+ // Inline function 'produce.<anonymous>' call
1061
+ tmp$ret$0 = produce_2(item);
1062
+ tmp0_mapTo.a(tmp$ret$0);
1063
+ }
1064
+ return copyToArray(tmp0_mapTo);
1065
+ }
1066
+ function produce_4(_this__u8e3s4) {
1067
+ return new WsIdentifier(_this__u8e3s4.p22_1);
1068
+ }
1069
+ function produce_5(_this__u8e3s4) {
1070
+ var tmp;
1071
+ if (_this__u8e3s4 instanceof Any) {
1072
+ tmp = new WsAny(_this__u8e3s4.a22(), _this__u8e3s4.x22());
1073
+ } else {
1074
+ if (_this__u8e3s4 instanceof Custom) {
1075
+ tmp = new WsCustom(_this__u8e3s4.u22_1, _this__u8e3s4.a22(), _this__u8e3s4.x22());
1076
+ } else {
1077
+ if (_this__u8e3s4 instanceof Primitive) {
1078
+ tmp = new WsPrimitive(produce_6(_this__u8e3s4.r22_1), _this__u8e3s4.a22(), _this__u8e3s4.x22());
1079
+ } else {
1080
+ noWhenBranchMatchedException();
1081
+ }
1082
+ }
1083
+ }
1084
+ return tmp;
1085
+ }
1086
+ function produce_6(_this__u8e3s4) {
1087
+ var tmp;
1088
+ switch (_this__u8e3s4.w4_1) {
1089
+ case 0:
1090
+ tmp = WsPrimitiveType_String_getInstance();
1091
+ break;
1092
+ case 1:
1093
+ tmp = WsPrimitiveType_Integer_getInstance();
1094
+ break;
1095
+ case 2:
1096
+ tmp = WsPrimitiveType_Number_getInstance();
1097
+ break;
1098
+ case 3:
1099
+ tmp = WsPrimitiveType_Boolean_getInstance();
1100
+ break;
1101
+ default:
1102
+ noWhenBranchMatchedException();
1103
+ break;
1104
+ }
1105
+ return tmp;
1106
+ }
1107
+ function produce_7(_this__u8e3s4) {
1108
+ var tmp;
1109
+ switch (_this__u8e3s4.w4_1) {
1110
+ case 0:
1111
+ tmp = WsMethod_GET_getInstance();
1112
+ break;
1113
+ case 1:
1114
+ tmp = WsMethod_POST_getInstance();
1115
+ break;
1116
+ case 2:
1117
+ tmp = WsMethod_PUT_getInstance();
1118
+ break;
1119
+ case 3:
1120
+ tmp = WsMethod_DELETE_getInstance();
1121
+ break;
1122
+ case 4:
1123
+ tmp = WsMethod_OPTIONS_getInstance();
1124
+ break;
1125
+ case 5:
1126
+ tmp = WsMethod_HEAD_getInstance();
1127
+ break;
1128
+ case 6:
1129
+ tmp = WsMethod_PATCH_getInstance();
1130
+ break;
1131
+ case 7:
1132
+ tmp = WsMethod_TRACE_getInstance();
1133
+ break;
1134
+ default:
1135
+ noWhenBranchMatchedException();
1136
+ break;
1137
+ }
1138
+ return tmp;
1139
+ }
1140
+ function produce_8(_this__u8e3s4) {
1141
+ return new WsContent(_this__u8e3s4.f21_1, produce_5(_this__u8e3s4.g21_1), _this__u8e3s4.h21_1);
1142
+ }
1143
+ function produce_9(_this__u8e3s4) {
1144
+ var tmp0_safe_receiver = _this__u8e3s4.e21_1;
1145
+ return new WsRequest(tmp0_safe_receiver == null ? null : produce_8(tmp0_safe_receiver));
1146
+ }
1147
+ function produce_10(_this__u8e3s4) {
1148
+ // Inline function 'kotlin.collections.toTypedArray' call
1149
+ // Inline function 'kotlin.collections.map' call
1150
+ // Inline function 'kotlin.collections.mapTo' call
1151
+ var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1152
+ var tmp0_iterator = _this__u8e3s4.c();
1153
+ while (tmp0_iterator.d()) {
1154
+ var item = tmp0_iterator.e();
1155
+ var tmp$ret$0;
1156
+ // Inline function 'produce.<anonymous>' call
1157
+ tmp$ret$0 = produce_9(item);
1158
+ tmp0_mapTo.a(tmp$ret$0);
1159
+ }
1160
+ return copyToArray(tmp0_mapTo);
1161
+ }
1162
+ function produce_11(_this__u8e3s4) {
1163
+ var tmp0_safe_receiver = _this__u8e3s4.y21_1;
1164
+ return new WsResponse(_this__u8e3s4.x21_1, tmp0_safe_receiver == null ? null : produce_8(tmp0_safe_receiver));
1165
+ }
1166
+ function produce_12(_this__u8e3s4) {
1167
+ // Inline function 'kotlin.collections.toTypedArray' call
1168
+ // Inline function 'kotlin.collections.map' call
1169
+ // Inline function 'kotlin.collections.mapTo' call
1170
+ var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1171
+ var tmp0_iterator = _this__u8e3s4.c();
1172
+ while (tmp0_iterator.d()) {
1173
+ var item = tmp0_iterator.e();
1174
+ var tmp$ret$0;
1175
+ // Inline function 'produce.<anonymous>' call
1176
+ tmp$ret$0 = produce_11(item);
1177
+ tmp0_mapTo.a(tmp$ret$0);
1178
+ }
1179
+ return copyToArray(tmp0_mapTo);
1180
+ }
1181
+ function WsMethod_GET_getInstance() {
1182
+ WsMethod_initEntries();
1183
+ return WsMethod_GET_instance;
1184
+ }
1185
+ function WsMethod_POST_getInstance() {
1186
+ WsMethod_initEntries();
1187
+ return WsMethod_POST_instance;
1188
+ }
1189
+ function WsMethod_PUT_getInstance() {
1190
+ WsMethod_initEntries();
1191
+ return WsMethod_PUT_instance;
1192
+ }
1193
+ function WsMethod_DELETE_getInstance() {
1194
+ WsMethod_initEntries();
1195
+ return WsMethod_DELETE_instance;
1196
+ }
1197
+ function WsMethod_OPTIONS_getInstance() {
1198
+ WsMethod_initEntries();
1199
+ return WsMethod_OPTIONS_instance;
1200
+ }
1201
+ function WsMethod_HEAD_getInstance() {
1202
+ WsMethod_initEntries();
1203
+ return WsMethod_HEAD_instance;
1204
+ }
1205
+ function WsMethod_PATCH_getInstance() {
1206
+ WsMethod_initEntries();
1207
+ return WsMethod_PATCH_instance;
1208
+ }
1209
+ function WsMethod_TRACE_getInstance() {
1210
+ WsMethod_initEntries();
1211
+ return WsMethod_TRACE_instance;
1212
+ }
1213
+ function WsPrimitiveType_String_getInstance() {
1214
+ WsPrimitiveType_initEntries();
1215
+ return WsPrimitiveType_String_instance;
1216
+ }
1217
+ function WsPrimitiveType_Integer_getInstance() {
1218
+ WsPrimitiveType_initEntries();
1219
+ return WsPrimitiveType_Integer_instance;
1220
+ }
1221
+ function WsPrimitiveType_Number_getInstance() {
1222
+ WsPrimitiveType_initEntries();
1223
+ return WsPrimitiveType_Number_instance;
1224
+ }
1225
+ function WsPrimitiveType_Boolean_getInstance() {
1226
+ WsPrimitiveType_initEntries();
1227
+ return WsPrimitiveType_Boolean_instance;
1228
+ }
82
1229
  function cli(args) {
83
1230
  main(args);
84
1231
  }
@@ -95,10 +1242,10 @@
95
1242
  this.compiled = compiled;
96
1243
  this.errors = errors;
97
1244
  }
98
- protoOf(WsCompilationResult).h21 = function () {
1245
+ protoOf(WsCompilationResult).z2e = function () {
99
1246
  return this.compiled;
100
1247
  };
101
- protoOf(WsCompilationResult).i21 = function () {
1248
+ protoOf(WsCompilationResult).a2f = function () {
102
1249
  return this.errors;
103
1250
  };
104
1251
  function WsCompiled(value) {
@@ -107,18 +1254,18 @@
107
1254
  protoOf(WsCompiled).w = function () {
108
1255
  return this.value;
109
1256
  };
110
- function produce(_this__u8e3s4) {
1257
+ function produce_13(_this__u8e3s4) {
111
1258
  var tmp;
112
1259
  if (_this__u8e3s4 instanceof Left) {
113
1260
  var tmp$ret$5;
114
1261
  // Inline function 'kotlin.collections.toTypedArray' call
115
1262
  // Inline function 'arrow.core.NonEmptyList.map' call
116
- var tmp0_map = _this__u8e3s4.qg_1;
1263
+ var tmp0_map = _this__u8e3s4.h1z_1;
117
1264
  // Inline function 'produce.<anonymous>' call
118
- var tmp1_anonymous = tmp0_map.zg_1;
119
- var tmp_0 = produce_4(tmp1_anonymous);
1265
+ var tmp1_anonymous = tmp0_map.q1z_1;
1266
+ var tmp_0 = produce_18(tmp1_anonymous);
120
1267
  // Inline function 'kotlin.collections.map' call
121
- var tmp0_map_0 = tmp0_map.ah_1;
1268
+ var tmp0_map_0 = tmp0_map.r1z_1;
122
1269
  // Inline function 'kotlin.collections.mapTo' call
123
1270
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0, 10));
124
1271
  var tmp0_iterator = tmp0_map_0.c();
@@ -126,7 +1273,7 @@
126
1273
  var item = tmp0_iterator.e();
127
1274
  var tmp$ret$1;
128
1275
  // Inline function 'produce.<anonymous>' call
129
- tmp$ret$1 = produce_4(item);
1276
+ tmp$ret$1 = produce_18(item);
130
1277
  tmp0_mapTo.a(tmp$ret$1);
131
1278
  }
132
1279
  var tmp2_toTypedArray = new NonEmptyList(tmp_0, tmp0_mapTo);
@@ -134,7 +1281,7 @@
134
1281
  tmp = new WsCompilationResult(VOID, tmp$ret$5);
135
1282
  } else {
136
1283
  if (_this__u8e3s4 instanceof Right) {
137
- tmp = new WsCompilationResult(new WsCompiled(first(_this__u8e3s4.vg_1).i3_1));
1284
+ tmp = new WsCompilationResult(new WsCompiled(first(_this__u8e3s4.m1z_1).i3_1));
138
1285
  } else {
139
1286
  noWhenBranchMatchedException();
140
1287
  }
@@ -149,90 +1296,91 @@
149
1296
  var tmp = this;
150
1297
  tmp.logger = new Compiler$Companion$logger$1();
151
1298
  }
152
- protoOf(Companion).j21 = function () {
1299
+ protoOf(Companion).c21 = function () {
153
1300
  return this.logger;
154
1301
  };
155
1302
  var Companion_instance;
156
- function Companion_getInstance() {
1303
+ function Companion_getInstance_1() {
157
1304
  if (Companion_instance == null)
158
1305
  new Companion();
159
1306
  return Companion_instance;
160
1307
  }
161
1308
  function Compiler() {
162
- Companion_getInstance();
1309
+ Companion_getInstance_1();
163
1310
  }
164
1311
  protoOf(Compiler).preCompile = function (source) {
165
- return compile(Wirespec_getInstance(), source)(Companion_getInstance().logger);
1312
+ return compile(Wirespec_getInstance(), source)(Companion_getInstance_1().logger);
166
1313
  };
167
1314
  protoOf(Compiler).tokenize = function (source) {
168
- return produce_0(tokenize(Wirespec_getInstance(), source));
1315
+ return produce_14(tokenize(Wirespec_getInstance(), source));
169
1316
  };
170
1317
  protoOf(Compiler).parse = function (source) {
171
- // Inline function 'kotlin.let' call
172
1318
  // Inline function 'kotlin.let' call
173
1319
  var tmp0_let = tokenize(Wirespec_getInstance(), source);
174
1320
  // Inline function 'kotlin.contracts.contract' call
175
1321
  // Inline function 'Compiler.parse.<anonymous>' call
176
- (new Parser(Companion_getInstance().logger)).zh(tmp0_let);
177
- // Inline function 'kotlin.contracts.contract' call
178
- // Inline function 'Compiler.parse.<anonymous>' call
179
- var tmp$ret$4;
180
- // Inline function 'kotlin.arrayOf' call
181
- // Inline function 'kotlin.js.unsafeCast' call
182
- // Inline function 'kotlin.js.asDynamic' call
183
- tmp$ret$4 = [];
184
- return new Ast(tmp$ret$4);
1322
+ return (new Parser(Companion_getInstance_1().logger)).q20(tmp0_let);
185
1323
  };
186
1324
  function Companion_0() {
187
1325
  Companion_instance_0 = this;
188
- this.k21_1 = new KotlinEmitter(VOID, Companion_getInstance().logger);
1326
+ this.b2f_1 = new KotlinEmitter(VOID, Companion_getInstance_1().logger);
189
1327
  }
190
1328
  var Companion_instance_0;
191
- function Companion_getInstance_0() {
1329
+ function Companion_getInstance_2() {
192
1330
  if (Companion_instance_0 == null)
193
1331
  new Companion_0();
194
1332
  return Companion_instance_0;
195
1333
  }
196
1334
  function WsToKotlin() {
197
- Companion_getInstance_0();
1335
+ Companion_getInstance_2();
198
1336
  Compiler.call(this);
199
1337
  }
200
1338
  protoOf(WsToKotlin).compile = function (source) {
201
- return produce(this.preCompile(source)(Companion_getInstance_0().k21_1));
1339
+ return produce_13(this.preCompile(source)(Companion_getInstance_2().b2f_1));
202
1340
  };
203
1341
  function Companion_1() {
204
1342
  Companion_instance_1 = this;
205
- this.l21_1 = new TypeScriptEmitter(Companion_getInstance().logger);
1343
+ this.c2f_1 = new TypeScriptEmitter(Companion_getInstance_1().logger);
206
1344
  }
207
1345
  var Companion_instance_1;
208
- function Companion_getInstance_1() {
1346
+ function Companion_getInstance_3() {
209
1347
  if (Companion_instance_1 == null)
210
1348
  new Companion_1();
211
1349
  return Companion_instance_1;
212
1350
  }
213
1351
  function WsToTypeScript() {
214
- Companion_getInstance_1();
1352
+ Companion_getInstance_3();
215
1353
  Compiler.call(this);
216
1354
  }
217
1355
  protoOf(WsToTypeScript).compile = function (source) {
218
- return produce(this.preCompile(source)(Companion_getInstance_1().l21_1));
1356
+ return produce_13(this.preCompile(source)(Companion_getInstance_3().c2f_1));
219
1357
  };
220
1358
  function Companion_2() {
221
1359
  Companion_instance_2 = this;
222
- this.m21_1 = new WirespecEmitter(Companion_getInstance().logger);
1360
+ this.d2f_1 = new WirespecEmitter(Companion_getInstance_1().logger);
223
1361
  }
224
1362
  var Companion_instance_2;
225
- function Companion_getInstance_2() {
1363
+ function Companion_getInstance_4() {
226
1364
  if (Companion_instance_2 == null)
227
1365
  new Companion_2();
228
1366
  return Companion_instance_2;
229
1367
  }
230
1368
  function WsToWirespec() {
231
- Companion_getInstance_2();
1369
+ Companion_getInstance_4();
232
1370
  Compiler.call(this);
233
1371
  }
234
1372
  protoOf(WsToWirespec).compile = function (source) {
235
- return produce(this.preCompile(source)(Companion_getInstance_2().m21_1));
1373
+ return produce_13(this.preCompile(source)(Companion_getInstance_4().d2f_1));
1374
+ };
1375
+ function OpenApiV2() {
1376
+ }
1377
+ protoOf(OpenApiV2).parse = function (source) {
1378
+ return produce(Companion_getInstance().q26(source));
1379
+ };
1380
+ function OpenApiV3() {
1381
+ }
1382
+ protoOf(OpenApiV3).parse = function (source) {
1383
+ return produce(Companion_getInstance_0().q26(source));
236
1384
  };
237
1385
  function WsTokenResult(tokens, error) {
238
1386
  tokens = tokens === VOID ? null : tokens;
@@ -240,10 +1388,10 @@
240
1388
  this.tokens = tokens;
241
1389
  this.error = error;
242
1390
  }
243
- protoOf(WsTokenResult).n21 = function () {
1391
+ protoOf(WsTokenResult).e2f = function () {
244
1392
  return this.tokens;
245
1393
  };
246
- protoOf(WsTokenResult).o21 = function () {
1394
+ protoOf(WsTokenResult).f2f = function () {
247
1395
  return this.error;
248
1396
  };
249
1397
  protoOf(WsTokenResult).j3 = function () {
@@ -252,13 +1400,13 @@
252
1400
  protoOf(WsTokenResult).k3 = function () {
253
1401
  return this.error;
254
1402
  };
255
- protoOf(WsTokenResult).p21 = function (tokens, error) {
1403
+ protoOf(WsTokenResult).g2f = function (tokens, error) {
256
1404
  return new WsTokenResult(tokens, error);
257
1405
  };
258
1406
  protoOf(WsTokenResult).copy = function (tokens, error, $super) {
259
1407
  tokens = tokens === VOID ? this.tokens : tokens;
260
1408
  error = error === VOID ? this.error : error;
261
- return this.p21(tokens, error);
1409
+ return this.g2f(tokens, error);
262
1410
  };
263
1411
  protoOf(WsTokenResult).toString = function () {
264
1412
  return 'WsTokenResult(tokens=' + this.tokens + ', error=' + this.error + ')';
@@ -303,12 +1451,12 @@
303
1451
  protoOf(WsTokens).j3 = function () {
304
1452
  return this.value;
305
1453
  };
306
- protoOf(WsTokens).q21 = function (value) {
1454
+ protoOf(WsTokens).h2f = function (value) {
307
1455
  return new WsTokens(value);
308
1456
  };
309
1457
  protoOf(WsTokens).copy = function (value, $super) {
310
1458
  value = value === VOID ? this.value : value;
311
- return this.q21(value);
1459
+ return this.h2f(value);
312
1460
  };
313
1461
  protoOf(WsTokens).toString = function () {
314
1462
  return 'WsTokens(value=' + toString(this.value) + ')';
@@ -319,13 +1467,13 @@
319
1467
  this.value = value;
320
1468
  this.coordinates = coordinates;
321
1469
  }
322
- protoOf(WsToken).r21 = function () {
1470
+ protoOf(WsToken).r2e = function () {
323
1471
  return this.type;
324
1472
  };
325
1473
  protoOf(WsToken).w = function () {
326
1474
  return this.value;
327
1475
  };
328
- protoOf(WsToken).s21 = function () {
1476
+ protoOf(WsToken).i2f = function () {
329
1477
  return this.coordinates;
330
1478
  };
331
1479
  protoOf(WsToken).j3 = function () {
@@ -334,17 +1482,17 @@
334
1482
  protoOf(WsToken).k3 = function () {
335
1483
  return this.value;
336
1484
  };
337
- protoOf(WsToken).t21 = function () {
1485
+ protoOf(WsToken).v2d = function () {
338
1486
  return this.coordinates;
339
1487
  };
340
- protoOf(WsToken).u21 = function (type, value, coordinates) {
1488
+ protoOf(WsToken).j2f = function (type, value, coordinates) {
341
1489
  return new WsToken(type, value, coordinates);
342
1490
  };
343
1491
  protoOf(WsToken).copy = function (type, value, coordinates, $super) {
344
1492
  type = type === VOID ? this.type : type;
345
1493
  value = value === VOID ? this.value : value;
346
1494
  coordinates = coordinates === VOID ? this.coordinates : coordinates;
347
- return this.u21(type, value, coordinates);
1495
+ return this.j2f(type, value, coordinates);
348
1496
  };
349
1497
  protoOf(WsToken).toString = function () {
350
1498
  return 'WsToken(type=' + this.type + ', value=' + this.value + ', coordinates=' + this.coordinates + ')';
@@ -377,13 +1525,13 @@
377
1525
  this.position = position;
378
1526
  this.idxAndLength = idxAndLength;
379
1527
  }
380
- protoOf(WsCoordinates).v21 = function () {
1528
+ protoOf(WsCoordinates).k2f = function () {
381
1529
  return this.line;
382
1530
  };
383
- protoOf(WsCoordinates).vt = function () {
1531
+ protoOf(WsCoordinates).zo = function () {
384
1532
  return this.position;
385
1533
  };
386
- protoOf(WsCoordinates).w21 = function () {
1534
+ protoOf(WsCoordinates).l2f = function () {
387
1535
  return this.idxAndLength;
388
1536
  };
389
1537
  protoOf(WsCoordinates).j3 = function () {
@@ -392,17 +1540,17 @@
392
1540
  protoOf(WsCoordinates).k3 = function () {
393
1541
  return this.position;
394
1542
  };
395
- protoOf(WsCoordinates).t21 = function () {
1543
+ protoOf(WsCoordinates).v2d = function () {
396
1544
  return this.idxAndLength;
397
1545
  };
398
- protoOf(WsCoordinates).x21 = function (line, position, idxAndLength) {
1546
+ protoOf(WsCoordinates).m2f = function (line, position, idxAndLength) {
399
1547
  return new WsCoordinates(line, position, idxAndLength);
400
1548
  };
401
1549
  protoOf(WsCoordinates).copy = function (line, position, idxAndLength, $super) {
402
1550
  line = line === VOID ? this.line : line;
403
1551
  position = position === VOID ? this.position : position;
404
1552
  idxAndLength = idxAndLength === VOID ? this.idxAndLength : idxAndLength;
405
- return this.x21(line, position, idxAndLength);
1553
+ return this.m2f(line, position, idxAndLength);
406
1554
  };
407
1555
  protoOf(WsCoordinates).toString = function () {
408
1556
  return 'WsCoordinates(line=' + this.line + ', position=' + this.position + ', idxAndLength=' + this.idxAndLength + ')';
@@ -433,10 +1581,10 @@
433
1581
  this.idx = idx;
434
1582
  this.length = length;
435
1583
  }
436
- protoOf(WsIndex).y21 = function () {
1584
+ protoOf(WsIndex).n2f = function () {
437
1585
  return this.idx;
438
1586
  };
439
- protoOf(WsIndex).r8 = function () {
1587
+ protoOf(WsIndex).w8 = function () {
440
1588
  return this.length;
441
1589
  };
442
1590
  protoOf(WsIndex).j3 = function () {
@@ -445,13 +1593,13 @@
445
1593
  protoOf(WsIndex).k3 = function () {
446
1594
  return this.length;
447
1595
  };
448
- protoOf(WsIndex).z21 = function (idx, length) {
1596
+ protoOf(WsIndex).o2f = function (idx, length) {
449
1597
  return new WsIndex(idx, length);
450
1598
  };
451
1599
  protoOf(WsIndex).copy = function (idx, length, $super) {
452
1600
  idx = idx === VOID ? this.idx : idx;
453
1601
  length = length === VOID ? this.length : length;
454
- return this.z21(idx, length);
1602
+ return this.o2f(idx, length);
455
1603
  };
456
1604
  protoOf(WsIndex).toString = function () {
457
1605
  return 'WsIndex(idx=' + this.idx + ', length=' + this.length + ')';
@@ -473,7 +1621,7 @@
473
1621
  return false;
474
1622
  return true;
475
1623
  };
476
- function produce_0(_this__u8e3s4) {
1624
+ function produce_14(_this__u8e3s4) {
477
1625
  var tmp$ret$3;
478
1626
  // Inline function 'kotlin.collections.toTypedArray' call
479
1627
  // Inline function 'kotlin.collections.map' call
@@ -484,30 +1632,30 @@
484
1632
  var item = tmp0_iterator.e();
485
1633
  var tmp$ret$0;
486
1634
  // Inline function 'produce.<anonymous>' call
487
- tmp$ret$0 = produce_1(item);
1635
+ tmp$ret$0 = produce_15(item);
488
1636
  tmp0_mapTo.a(tmp$ret$0);
489
1637
  }
490
1638
  tmp$ret$3 = copyToArray(tmp0_mapTo);
491
1639
  return new WsTokenResult(new WsTokens(tmp$ret$3));
492
1640
  }
493
- function produce_1(_this__u8e3s4) {
494
- return new WsToken(_this__u8e3s4.pl_1.sl(), _this__u8e3s4.ql_1, produce_2(_this__u8e3s4.rl_1));
1641
+ function produce_15(_this__u8e3s4) {
1642
+ return new WsToken(_this__u8e3s4.b25_1.e25(), _this__u8e3s4.c25_1, produce_16(_this__u8e3s4.d25_1));
495
1643
  }
496
- function produce_2(_this__u8e3s4) {
497
- return new WsCoordinates(_this__u8e3s4.tl_1, _this__u8e3s4.ul_1, produce_3(_this__u8e3s4.vl_1));
1644
+ function produce_16(_this__u8e3s4) {
1645
+ return new WsCoordinates(_this__u8e3s4.f25_1, _this__u8e3s4.g25_1, produce_17(_this__u8e3s4.h25_1));
498
1646
  }
499
- function produce_3(_this__u8e3s4) {
500
- return new WsIndex(_this__u8e3s4.xm_1, _this__u8e3s4.ym_1);
1647
+ function produce_17(_this__u8e3s4) {
1648
+ return new WsIndex(_this__u8e3s4.j26_1, _this__u8e3s4.k26_1);
501
1649
  }
502
1650
  function WsError(index, length, value) {
503
1651
  this.index = index;
504
1652
  this.length = length;
505
1653
  this.value = value;
506
1654
  }
507
- protoOf(WsError).a22 = function () {
1655
+ protoOf(WsError).p2f = function () {
508
1656
  return this.index;
509
1657
  };
510
- protoOf(WsError).r8 = function () {
1658
+ protoOf(WsError).w8 = function () {
511
1659
  return this.length;
512
1660
  };
513
1661
  protoOf(WsError).w = function () {
@@ -519,17 +1667,17 @@
519
1667
  protoOf(WsError).k3 = function () {
520
1668
  return this.length;
521
1669
  };
522
- protoOf(WsError).t21 = function () {
1670
+ protoOf(WsError).v2d = function () {
523
1671
  return this.value;
524
1672
  };
525
- protoOf(WsError).b22 = function (index, length, value) {
1673
+ protoOf(WsError).q2f = function (index, length, value) {
526
1674
  return new WsError(index, length, value);
527
1675
  };
528
1676
  protoOf(WsError).copy = function (index, length, value, $super) {
529
1677
  index = index === VOID ? this.index : index;
530
1678
  length = length === VOID ? this.length : length;
531
1679
  value = value === VOID ? this.value : value;
532
- return this.b22(index, length, value);
1680
+ return this.q2f(index, length, value);
533
1681
  };
534
1682
  protoOf(WsError).toString = function () {
535
1683
  return 'WsError(index=' + this.index + ', length=' + this.length + ', value=' + this.value + ')';
@@ -554,25 +1702,84 @@
554
1702
  return false;
555
1703
  return true;
556
1704
  };
557
- function produce_4(_this__u8e3s4) {
558
- var tmp = _this__u8e3s4.wl_1.vl_1.xm_1 - _this__u8e3s4.wl_1.vl_1.ym_1 | 0;
1705
+ function produce_18(_this__u8e3s4) {
1706
+ var tmp = _this__u8e3s4.i25_1.h25_1.j26_1 - _this__u8e3s4.i25_1.h25_1.k26_1 | 0;
559
1707
  var tmp0_elvis_lhs = _this__u8e3s4.message;
560
- return new WsError(tmp, _this__u8e3s4.wl_1.vl_1.ym_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
1708
+ return new WsError(tmp, _this__u8e3s4.i25_1.h25_1.k26_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
561
1709
  }
1710
+ //region block: post-declaration
1711
+ defineProp(protoOf(WsMethod), 'name', protoOf(WsMethod).lf, VOID);
1712
+ defineProp(protoOf(WsMethod), 'ordinal', protoOf(WsMethod).mf, VOID);
1713
+ defineProp(protoOf(WsAny), 'isIterable', function () {
1714
+ return this.a22();
1715
+ }, VOID);
1716
+ defineProp(protoOf(WsAny), 'isMap', function () {
1717
+ return this.x22();
1718
+ }, VOID);
1719
+ defineProp(protoOf(WsCustom), 'isIterable', function () {
1720
+ return this.a22();
1721
+ }, VOID);
1722
+ defineProp(protoOf(WsCustom), 'isMap', function () {
1723
+ return this.x22();
1724
+ }, VOID);
1725
+ defineProp(protoOf(WsPrimitive), 'isIterable', function () {
1726
+ return this.a22();
1727
+ }, VOID);
1728
+ defineProp(protoOf(WsPrimitive), 'isMap', function () {
1729
+ return this.x22();
1730
+ }, VOID);
1731
+ defineProp(protoOf(WsPrimitiveType), 'name', protoOf(WsPrimitiveType).lf, VOID);
1732
+ defineProp(protoOf(WsPrimitiveType), 'ordinal', protoOf(WsPrimitiveType).mf, VOID);
1733
+ //endregion
562
1734
  //region block: exports
563
1735
  function $jsExportAll$(_) {
564
- _.Ast = Ast;
1736
+ _.WsType = WsType;
1737
+ _.WsShape = WsShape;
1738
+ _.WsEndpoint = WsEndpoint;
1739
+ _.WsEnum = WsEnum;
1740
+ _.WsRefined = WsRefined;
1741
+ _.WsMethod = WsMethod;
1742
+ _.WsMethod.values = values;
1743
+ _.WsMethod.valueOf = valueOf;
1744
+ defineProp(_.WsMethod, 'GET', WsMethod_GET_getInstance, VOID);
1745
+ defineProp(_.WsMethod, 'POST', WsMethod_POST_getInstance, VOID);
1746
+ defineProp(_.WsMethod, 'PUT', WsMethod_PUT_getInstance, VOID);
1747
+ defineProp(_.WsMethod, 'DELETE', WsMethod_DELETE_getInstance, VOID);
1748
+ defineProp(_.WsMethod, 'OPTIONS', WsMethod_OPTIONS_getInstance, VOID);
1749
+ defineProp(_.WsMethod, 'HEAD', WsMethod_HEAD_getInstance, VOID);
1750
+ defineProp(_.WsMethod, 'PATCH', WsMethod_PATCH_getInstance, VOID);
1751
+ defineProp(_.WsMethod, 'TRACE', WsMethod_TRACE_getInstance, VOID);
1752
+ _.WsLiteral = WsLiteral;
1753
+ _.WsParam = WsParam;
1754
+ _.Shape = Shape;
1755
+ _.WsField = WsField;
1756
+ _.WsIdentifier = WsIdentifier;
1757
+ _.WsAny = WsAny;
1758
+ _.WsCustom = WsCustom;
1759
+ _.WsPrimitive = WsPrimitive;
1760
+ _.WsPrimitiveType = WsPrimitiveType;
1761
+ _.WsPrimitiveType.values = values_0;
1762
+ _.WsPrimitiveType.valueOf = valueOf_0;
1763
+ defineProp(_.WsPrimitiveType, 'String', WsPrimitiveType_String_getInstance, VOID);
1764
+ defineProp(_.WsPrimitiveType, 'Integer', WsPrimitiveType_Integer_getInstance, VOID);
1765
+ defineProp(_.WsPrimitiveType, 'Number', WsPrimitiveType_Number_getInstance, VOID);
1766
+ defineProp(_.WsPrimitiveType, 'Boolean', WsPrimitiveType_Boolean_getInstance, VOID);
1767
+ _.WsRequest = WsRequest;
1768
+ _.WsResponse = WsResponse;
1769
+ _.WsContent = WsContent;
565
1770
  _.cli = cli;
566
1771
  _.WsCompilationResult = WsCompilationResult;
567
1772
  _.WsCompiled = WsCompiled;
568
1773
  _.Compiler = Compiler;
569
- defineProp(_.Compiler, 'Companion', Companion_getInstance, VOID);
1774
+ defineProp(_.Compiler, 'Companion', Companion_getInstance_1, VOID);
570
1775
  _.WsToKotlin = WsToKotlin;
571
- defineProp(_.WsToKotlin, 'Companion', Companion_getInstance_0, VOID);
1776
+ defineProp(_.WsToKotlin, 'Companion', Companion_getInstance_2, VOID);
572
1777
  _.WsToTypeScript = WsToTypeScript;
573
- defineProp(_.WsToTypeScript, 'Companion', Companion_getInstance_1, VOID);
1778
+ defineProp(_.WsToTypeScript, 'Companion', Companion_getInstance_3, VOID);
574
1779
  _.WsToWirespec = WsToWirespec;
575
- defineProp(_.WsToWirespec, 'Companion', Companion_getInstance_2, VOID);
1780
+ defineProp(_.WsToWirespec, 'Companion', Companion_getInstance_4, VOID);
1781
+ _.OpenApiV2 = OpenApiV2;
1782
+ _.OpenApiV3 = OpenApiV3;
576
1783
  _.WsTokenResult = WsTokenResult;
577
1784
  _.WsTokens = WsTokens;
578
1785
  _.WsToken = WsToken;