@flock/wirespec 0.20.2 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/clikt-clikt-mordant.mjs +79 -79
  2. package/clikt-clikt.mjs +1329 -1329
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +433 -433
  5. package/kotlin-kotlin-stdlib.mjs +6 -6
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +10144 -10144
  8. package/kotlin-rgxgen.mjs +1760 -1760
  9. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
  12. package/mordant-mordant.mjs +1198 -1198
  13. package/package.json +1 -1
  14. package/wirespec-src-compiler-core.mjs +1652 -1139
  15. package/wirespec-src-compiler-core.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-java.mjs +206 -191
  17. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +182 -153
  21. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-rust.mjs +439 -379
  23. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-scala.mjs +175 -160
  25. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
  27. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-wirespec.mjs +98 -77
  29. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  30. package/wirespec-src-compiler-ir.mjs +3704 -3619
  31. package/wirespec-src-compiler-ir.mjs.map +1 -1
  32. package/wirespec-src-compiler-lib.mjs +308 -227
  33. package/wirespec-src-compiler-lib.mjs.map +1 -1
  34. package/wirespec-src-converter-avro.mjs +503 -503
  35. package/wirespec-src-converter-openapi.mjs +581 -569
  36. package/wirespec-src-converter-openapi.mjs.map +1 -1
  37. package/wirespec-src-ide-lsp.mjs +1352 -1352
  38. package/wirespec-src-plugin-arguments.mjs +136 -136
  39. package/wirespec-src-plugin-cli.mjs +85 -85
  40. package/wirespec-src-plugin-npm.d.mts +15 -0
  41. package/wirespec-src-plugin-npm.mjs +26 -26
  42. package/wirespec-src-tools-generator.mjs +29 -24
  43. package/wirespec-src-tools-generator.mjs.map +1 -1
@@ -112,6 +112,7 @@ import {
112
112
  requestParameters1z8fdizgtviyb as requestParameters,
113
113
  convert32tuiui3czihh as convert_3,
114
114
  convert1cn4bolzoed8c as convert_4,
115
+ convert3ewo9inue7gua as convert_5,
115
116
  get_extensions31c4or738wbxz as get_extensions,
116
117
  emit3bzdcd0f6nwtj as emit_1,
117
118
  beforeGenerate3o8idb3hey1b0 as beforeGenerate,
@@ -167,14 +168,14 @@ initMetadataForCompanion(Companion);
167
168
  initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
168
169
  //endregion
169
170
  function _get_sanitizationConfig__sns434($this) {
170
- var tmp0 = $this.m1z_1;
171
+ var tmp0 = $this.w1z_1;
171
172
  var tmp = KProperty1;
172
173
  // Inline function 'kotlin.getValue' call
173
174
  getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh(), null);
174
175
  return tmp0.m1();
175
176
  }
176
177
  function _get_modelSanitizationConfig__vgg831($this) {
177
- var tmp0 = $this.n1z_1;
178
+ var tmp0 = $this.x1z_1;
178
179
  var tmp = KProperty1;
179
180
  // Inline function 'kotlin.getValue' call
180
181
  getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88(), null);
@@ -202,7 +203,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
202
203
  return destination.toString();
203
204
  }
204
205
  function sanitizeKeywords($this, _this__u8e3s4) {
205
- return Companion_getInstance_0().l1x().v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
206
+ return Companion_getInstance_0().v1x().v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
206
207
  }
207
208
  function firstToLower($this, _this__u8e3s4) {
208
209
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -236,7 +237,7 @@ function sanitizeParamName($this, identifier) {
236
237
  }
237
238
  }
238
239
  var parts = destination;
239
- var name = parts.b1() > 1 ? (new Name(parts)).j1m() : identifier.m1();
240
+ var name = parts.b1() > 1 ? (new Name(parts)).t1m() : identifier.m1();
240
241
  return sanitizeKeywords($this, sanitizeSymbol($this, name));
241
242
  }
242
243
  function buildEndpointParams($this, endpoint) {
@@ -245,7 +246,7 @@ function buildEndpointParams($this, endpoint) {
245
246
  // Inline function 'kotlin.apply' call
246
247
  var this_0 = ArrayList_init_$Create$();
247
248
  // Inline function 'kotlin.collections.filterIsInstance' call
248
- var tmp0 = endpoint.gq_1;
249
+ var tmp0 = endpoint.mq_1;
249
250
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
250
251
  var destination = ArrayList_init_$Create$();
251
252
  var _iterator__ex2g4s = tmp0.t();
@@ -259,26 +260,26 @@ function buildEndpointParams($this, endpoint) {
259
260
  var _iterator__ex2g4s_0 = destination.t();
260
261
  while (_iterator__ex2g4s_0.u()) {
261
262
  var element_0 = _iterator__ex2g4s_0.v();
262
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.lq_1), emitTypeScriptReference($this, element_0.mq_1.xu(false)), element_0.mq_1.vu()));
263
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_0.rq_1), emitTypeScriptReference($this, element_0.sq_1.fv(false)), element_0.sq_1.dv()));
263
264
  }
264
265
  // Inline function 'kotlin.collections.forEach' call
265
- var _iterator__ex2g4s_1 = endpoint.hq_1.t();
266
+ var _iterator__ex2g4s_1 = endpoint.nq_1.t();
266
267
  while (_iterator__ex2g4s_1.u()) {
267
268
  var element_1 = _iterator__ex2g4s_1.v();
268
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.aq_1), emitTypeScriptReference($this, element_1.bq_1.xu(false)), element_1.bq_1.vu()));
269
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_1.sp_1), emitTypeScriptReference($this, element_1.tp_1.fv(false)), element_1.tp_1.dv()));
269
270
  }
270
271
  // Inline function 'kotlin.collections.forEach' call
271
- var _iterator__ex2g4s_2 = endpoint.iq_1.t();
272
+ var _iterator__ex2g4s_2 = endpoint.oq_1.t();
272
273
  while (_iterator__ex2g4s_2.u()) {
273
274
  var element_2 = _iterator__ex2g4s_2.v();
274
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.aq_1), emitTypeScriptReference($this, element_2.bq_1.xu(false)), element_2.bq_1.vu()));
275
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_2.sp_1), emitTypeScriptReference($this, element_2.tp_1.fv(false)), element_2.tp_1.dv()));
275
276
  }
276
- var tmp0_safe_receiver = first(endpoint.jq_1).nq_1;
277
+ var tmp0_safe_receiver = first(endpoint.pq_1).tq_1;
277
278
  if (tmp0_safe_receiver == null)
278
279
  null;
279
280
  else {
280
281
  // Inline function 'kotlin.let' call
281
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.pq_1.xu(false)), tmp0_safe_receiver.pq_1.vu()));
282
+ this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.vq_1.fv(false)), tmp0_safe_receiver.vq_1.dv()));
282
283
  }
283
284
  return this_0.p5();
284
285
  }
@@ -297,10 +298,10 @@ function emitTypeScriptReference($this, ref) {
297
298
  tmp = 'any';
298
299
  } else {
299
300
  if (ref instanceof Custom_0) {
300
- tmp = sanitizeSymbol($this, ref.dv_1);
301
+ tmp = sanitizeSymbol($this, ref.lv_1);
301
302
  } else {
302
303
  if (ref instanceof Primitive) {
303
- var tmp1_subject = ref.ot_1;
304
+ var tmp1_subject = ref.wt_1;
304
305
  var tmp_0;
305
306
  if (tmp1_subject instanceof String_0) {
306
307
  tmp_0 = 'string';
@@ -333,20 +334,20 @@ function emitTypeScriptReference($this, ref) {
333
334
  }
334
335
  }
335
336
  // Inline function 'kotlin.let' call
336
- return tmp + (ref.vu() ? ' | undefined' : '');
337
+ return tmp + (ref.dv() ? ' | undefined' : '');
337
338
  }
338
339
  function EndpointParam(name, type, nullable) {
339
- this.q1z_1 = name;
340
- this.r1z_1 = type;
341
- this.s1z_1 = nullable;
340
+ this.a20_1 = name;
341
+ this.b20_1 = type;
342
+ this.c20_1 = nullable;
342
343
  }
343
344
  protoOf(EndpointParam).toString = function () {
344
- return 'EndpointParam(name=' + this.q1z_1 + ', type=' + this.r1z_1 + ', nullable=' + this.s1z_1 + ')';
345
+ return 'EndpointParam(name=' + this.a20_1 + ', type=' + this.b20_1 + ', nullable=' + this.c20_1 + ')';
345
346
  };
346
347
  protoOf(EndpointParam).hashCode = function () {
347
- var result = getStringHashCode(this.q1z_1);
348
- result = imul(result, 31) + getStringHashCode(this.r1z_1) | 0;
349
- result = imul(result, 31) + getBooleanHashCode(this.s1z_1) | 0;
348
+ var result = getStringHashCode(this.a20_1);
349
+ result = imul(result, 31) + getStringHashCode(this.b20_1) | 0;
350
+ result = imul(result, 31) + getBooleanHashCode(this.c20_1) | 0;
350
351
  return result;
351
352
  };
352
353
  protoOf(EndpointParam).equals = function (other) {
@@ -354,17 +355,17 @@ protoOf(EndpointParam).equals = function (other) {
354
355
  return true;
355
356
  if (!(other instanceof EndpointParam))
356
357
  return false;
357
- if (!(this.q1z_1 === other.q1z_1))
358
+ if (!(this.a20_1 === other.a20_1))
358
359
  return false;
359
- if (!(this.r1z_1 === other.r1z_1))
360
+ if (!(this.b20_1 === other.b20_1))
360
361
  return false;
361
- if (!(this.s1z_1 === other.s1z_1))
362
+ if (!(this.c20_1 === other.c20_1))
362
363
  return false;
363
364
  return true;
364
365
  };
365
366
  function Companion() {
366
367
  Companion_instance_0 = this;
367
- this.o1z_1 = TypeScriptGenerator_getInstance();
368
+ this.y1z_1 = TypeScriptGenerator_getInstance();
368
369
  var tmp = this;
369
370
  // Inline function 'kotlin.collections.associateWith' call
370
371
  var this_0 = listOf(['GeneratorFieldString', 'GeneratorFieldInteger64', 'GeneratorFieldInteger32', 'GeneratorFieldNumber64', 'GeneratorFieldNumber32', 'GeneratorFieldBoolean', 'GeneratorFieldBytes', 'GeneratorFieldEnum', 'GeneratorFieldUnion', 'GeneratorFieldArray', 'GeneratorFieldNullable', 'GeneratorFieldShape', 'GeneratorFieldDict']);
@@ -378,10 +379,10 @@ function Companion() {
378
379
  var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
379
380
  result.t2(element, tmp$ret$2);
380
381
  }
381
- tmp.p1z_1 = result;
382
+ tmp.z1z_1 = result;
382
383
  }
383
- protoOf(Companion).l1x = function () {
384
- return this.o1z_1.x1w_1;
384
+ protoOf(Companion).v1x = function () {
385
+ return this.y1z_1.h1x_1;
385
386
  };
386
387
  var Companion_instance_0;
387
388
  function Companion_getInstance_0() {
@@ -394,13 +395,13 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
394
395
  }
395
396
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
396
397
  return function (name) {
397
- var sanitized = name.v1g_1.b1() > 1 ? name.j1m() : sanitizeSymbol(this$0, name.w1i());
398
+ var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
398
399
  return new Name(listOf_0(sanitized));
399
400
  };
400
401
  }
401
402
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
402
403
  return function (name) {
403
- var sanitized = name.v1g_1.b1() > 1 ? name.j1m() : sanitizeSymbol(this$0, name.w1i());
404
+ var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
404
405
  return new Name(listOf_0(sanitized));
405
406
  };
406
407
  }
@@ -426,12 +427,12 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
426
427
  return function (stmt, tr) {
427
428
  var tmp;
428
429
  if (stmt instanceof VariableReference) {
429
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.r1n_1));
430
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.b1o_1));
430
431
  } else {
431
432
  if (stmt instanceof ConstructorStatement) {
432
- var tmp_0 = tr.i1v(stmt.o1n_1);
433
+ var tmp_0 = tr.s1v(stmt.y1n_1);
433
434
  // Inline function 'kotlin.collections.map' call
434
- var this_0 = stmt.p1n_1;
435
+ var this_0 = stmt.z1n_1;
435
436
  // Inline function 'kotlin.collections.mapTo' call
436
437
  var destination = ArrayList_init_$Create$_0(this_0.b1());
437
438
  // Inline function 'kotlin.collections.iterator' call
@@ -442,13 +443,13 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
442
443
  var key = item.l1();
443
444
  // Inline function 'kotlin.collections.component2' call
444
445
  var value = item.m1();
445
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.l1v(value));
446
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.v1v(value));
446
447
  destination.x(tmp$ret$3);
447
448
  }
448
449
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
449
450
  } else {
450
451
  if (stmt instanceof Assignment) {
451
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.i1q_1), tr.l1v(stmt.j1q_1), stmt.k1q_1);
452
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.s1q_1), tr.v1v(stmt.t1q_1), stmt.u1q_1);
452
453
  } else {
453
454
  tmp = transformChildren(stmt, tr);
454
455
  }
@@ -459,7 +460,7 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
459
460
  }
460
461
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
461
462
  return function () {
462
- var tmp0_reservedKeywords = Companion_getInstance_0().l1x();
463
+ var tmp0_reservedKeywords = Companion_getInstance_0().v1x();
463
464
  var tmp = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda;
464
465
  var tmp_0 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
465
466
  var tmp_1 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -473,7 +474,7 @@ function TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh() {
473
474
  };
474
475
  }
475
476
  function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
476
- return new Name(listOf_0(name.w1i()));
477
+ return new Name(listOf_0(name.g1j()));
477
478
  }
478
479
  function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(it) {
479
480
  return it;
@@ -482,7 +483,7 @@ function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
482
483
  return function () {
483
484
  var tmp = _get_sanitizationConfig__sns434(this$0);
484
485
  var tmp_0 = TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
485
- return tmp.j1x(VOID, VOID, tmp_0, VOID, TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
486
+ return tmp.t1x(VOID, VOID, tmp_0, VOID, TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
486
487
  };
487
488
  }
488
489
  function TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88() {
@@ -493,27 +494,27 @@ function TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88() {
493
494
  function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
494
495
  var tmp;
495
496
  if (element instanceof Namespace) {
496
- var injected = element.y1n_1.equals(Companion_getInstance().x1g('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
497
+ var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
497
498
  var tmp_0;
498
499
  // Inline function 'kotlin.collections.isNotEmpty' call
499
500
  if (!injected.r()) {
500
501
  // Inline function 'community.flock.wirespec.ir.core.withElements' call
501
- var elements = plus(injected, element.u1n());
502
+ var elements = plus(injected, element.e1o());
502
503
  var tmp_1;
503
504
  if (element instanceof File) {
504
- tmp_1 = element.w1n(VOID, elements);
505
+ tmp_1 = element.g1o(VOID, elements);
505
506
  } else {
506
507
  if (element instanceof Struct) {
507
- tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
508
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
508
509
  } else {
509
510
  if (element instanceof Namespace) {
510
- tmp_1 = element.d1o(VOID, elements);
511
+ tmp_1 = element.n1o(VOID, elements);
511
512
  } else {
512
513
  if (element instanceof Interface) {
513
- tmp_1 = element.m1o(VOID, elements);
514
+ tmp_1 = element.w1o(VOID, elements);
514
515
  } else {
515
516
  if (element instanceof Enum) {
516
- tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
517
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
517
518
  } else {
518
519
  if (element instanceof Main) {
519
520
  tmp_1 = element;
@@ -541,27 +542,27 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
541
542
  return function (element, transformer) {
542
543
  var tmp;
543
544
  if (element instanceof Namespace) {
544
- var injected = element.y1n_1.equals(Companion_getInstance().x1g('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
545
+ var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
545
546
  var tmp_0;
546
547
  // Inline function 'kotlin.collections.isNotEmpty' call
547
548
  if (!injected.r()) {
548
549
  // Inline function 'community.flock.wirespec.ir.core.withElements' call
549
- var elements = plus(element.u1n(), injected);
550
+ var elements = plus(element.e1o(), injected);
550
551
  var tmp_1;
551
552
  if (element instanceof File) {
552
- tmp_1 = element.w1n(VOID, elements);
553
+ tmp_1 = element.g1o(VOID, elements);
553
554
  } else {
554
555
  if (element instanceof Struct) {
555
- tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
556
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
556
557
  } else {
557
558
  if (element instanceof Namespace) {
558
- tmp_1 = element.d1o(VOID, elements);
559
+ tmp_1 = element.n1o(VOID, elements);
559
560
  } else {
560
561
  if (element instanceof Interface) {
561
- tmp_1 = element.m1o(VOID, elements);
562
+ tmp_1 = element.w1o(VOID, elements);
562
563
  } else {
563
564
  if (element instanceof Enum) {
564
- tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
565
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
565
566
  } else {
566
567
  if (element instanceof Main) {
567
568
  tmp_1 = element;
@@ -589,13 +590,13 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
589
590
  function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
590
591
  var tmp;
591
592
  if (element instanceof Struct) {
592
- var tmp0_safe_receiver = Companion_getInstance_0().p1z_1.q2(element.s1p_1.w1i());
593
+ var tmp0_safe_receiver = Companion_getInstance_0().z1z_1.q2(element.c1q_1.g1j());
593
594
  var tmp_0;
594
595
  if (tmp0_safe_receiver == null) {
595
596
  tmp_0 = null;
596
597
  } else {
597
598
  // Inline function 'kotlin.let' call
598
- tmp_0 = element.d1q(VOID, plus(listOf_0(new Field(Companion_getInstance().x1g('kind'), new StringLiteral(tmp0_safe_receiver))), element.t1p_1));
599
+ tmp_0 = element.n1q(VOID, plus(listOf_0(new Field(Companion_getInstance().h1h('kind'), new StringLiteral(tmp0_safe_receiver))), element.d1q_1));
599
600
  }
600
601
  var tmp1_elvis_lhs = tmp_0;
601
602
  tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
@@ -606,7 +607,7 @@ function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
606
607
  return transformChildren_0(transformed, transformer);
607
608
  }
608
609
  function TypeScriptIrEmitter$emit$lambda(it) {
609
- return 'export {' + it.gr().m1() + "} from './" + it.gr().m1() + "'";
610
+ return 'export {' + it.mr().m1() + "} from './" + it.mr().m1() + "'";
610
611
  }
611
612
  function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
612
613
  return function (expr, t) {
@@ -615,24 +616,24 @@ function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
615
616
  var tmp_1;
616
617
  var tmp_2;
617
618
  if (expr instanceof FunctionCall) {
618
- var tmp_3 = expr.r1m_1;
619
+ var tmp_3 = expr.b1n_1;
619
620
  tmp_2 = tmp_3 instanceof RawExpression;
620
621
  } else {
621
622
  tmp_2 = false;
622
623
  }
623
624
  if (tmp_2) {
624
- var tmp_4 = expr.r1m_1;
625
- tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).h1q_1 === $definition.rr_1.m1();
625
+ var tmp_4 = expr.b1n_1;
626
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).r1q_1 === $definition.yr_1.m1();
626
627
  } else {
627
628
  tmp_1 = false;
628
629
  }
629
630
  if (tmp_1) {
630
- tmp_0 = expr.t1m_1.equals(Companion_getInstance().x1g('valueOf'));
631
+ tmp_0 = expr.d1n_1.equals(Companion_getInstance().h1h('valueOf'));
631
632
  } else {
632
633
  tmp_0 = false;
633
634
  }
634
635
  if (tmp_0) {
635
- var tmp0_elvis_lhs = expr.u1m_1.q2(Companion_getInstance().x1g('label'));
636
+ var tmp0_elvis_lhs = expr.e1n_1.q2(Companion_getInstance().h1h('label'));
636
637
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
637
638
  } else {
638
639
  tmp = transformChildren_1(expr, t);
@@ -645,12 +646,12 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
645
646
  var tmp;
646
647
  var tmp_0;
647
648
  if (expr instanceof ConstructorStatement) {
648
- tmp_0 = equals(expr.o1n_1, Custom_init_$Create$($definition.mr_1.m1()));
649
+ tmp_0 = equals(expr.y1n_1, Custom_init_$Create$($definition.tr_1.m1()));
649
650
  } else {
650
651
  tmp_0 = false;
651
652
  }
652
653
  if (tmp_0) {
653
- var tmp0_elvis_lhs = expr.p1n_1.q2(Companion_getInstance().x1g('value'));
654
+ var tmp0_elvis_lhs = expr.z1n_1.q2(Companion_getInstance().h1h('value'));
654
655
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
655
656
  } else {
656
657
  tmp = transformChildren_1(expr, t);
@@ -661,24 +662,24 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
661
662
  function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
662
663
  var tmp;
663
664
  if (expr instanceof ConstructorStatement) {
664
- var tmp_0 = expr.o1n_1;
665
+ var tmp_0 = expr.y1n_1;
665
666
  var tmp0_safe_receiver = tmp_0 instanceof Custom ? tmp_0 : null;
666
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1i_1;
667
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1i();
667
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1j_1;
668
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g1j();
668
669
  var typeName = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Wirespec.');
669
670
  var tmp_1;
670
671
  if (typeName == null) {
671
672
  tmp_1 = null;
672
673
  } else {
673
674
  // Inline function 'kotlin.let' call
674
- tmp_1 = Companion_getInstance_0().p1z_1.q2(typeName);
675
+ tmp_1 = Companion_getInstance_0().z1z_1.q2(typeName);
675
676
  }
676
677
  var kind = tmp_1;
677
678
  var tmp_2;
678
679
  if (!(kind == null)) {
679
- var tmp_3 = mapOf(to(Companion_getInstance().x1g('kind'), new Literal(kind, String_instance)));
680
+ var tmp_3 = mapOf(to(Companion_getInstance().h1h('kind'), new Literal(kind, String_instance)));
680
681
  // Inline function 'kotlin.collections.mapValues' call
681
- var this_0 = expr.p1n_1;
682
+ var this_0 = expr.z1n_1;
682
683
  // Inline function 'kotlin.collections.mapValuesTo' call
683
684
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
684
685
  // Inline function 'kotlin.collections.associateByTo' call
@@ -688,10 +689,10 @@ function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
688
689
  var tmp_4 = element.l1();
689
690
  // Inline function 'kotlin.collections.component2' call
690
691
  var v = element.m1();
691
- var tmp$ret$4 = t.l1v(v);
692
+ var tmp$ret$4 = t.v1v(v);
692
693
  destination.t2(tmp_4, tmp$ret$4);
693
694
  }
694
- tmp_2 = new ConstructorStatement(expr.o1n_1, plus_0(tmp_3, destination));
695
+ tmp_2 = new ConstructorStatement(expr.y1n_1, plus_0(tmp_3, destination));
695
696
  } else {
696
697
  tmp_2 = transformChildren(expr, t);
697
698
  }
@@ -718,17 +719,17 @@ function TypeScriptIrEmitter$emitGenerator$lambda_5($generatorOwnName, $generato
718
719
  var tmp_0;
719
720
  var tmp_1;
720
721
  if (expr instanceof RawExpression) {
721
- tmp_1 = endsWith(expr.h1q_1, 'Generator');
722
+ tmp_1 = endsWith(expr.r1q_1, 'Generator');
722
723
  } else {
723
724
  tmp_1 = false;
724
725
  }
725
726
  if (tmp_1) {
726
- tmp_0 = !(expr.h1q_1 === $generatorOwnName);
727
+ tmp_0 = !(expr.r1q_1 === $generatorOwnName);
727
728
  } else {
728
729
  tmp_0 = false;
729
730
  }
730
731
  if (tmp_0) {
731
- $generatorRefs.x(expr.h1q_1);
732
+ $generatorRefs.x(expr.r1q_1);
732
733
  tmp = Unit_instance;
733
734
  }
734
735
  return transformChildren_1(expr, t);
@@ -743,22 +744,22 @@ function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
743
744
  // Inline function 'kotlin.collections.isNotEmpty' call
744
745
  if (!injected.r()) {
745
746
  // Inline function 'community.flock.wirespec.ir.core.withElements' call
746
- var elements = plus(element.u1n(), injected);
747
+ var elements = plus(element.e1o(), injected);
747
748
  var tmp_1;
748
749
  if (element instanceof File) {
749
- tmp_1 = element.w1n(VOID, elements);
750
+ tmp_1 = element.g1o(VOID, elements);
750
751
  } else {
751
752
  if (element instanceof Struct) {
752
- tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
753
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
753
754
  } else {
754
755
  if (element instanceof Namespace) {
755
- tmp_1 = element.d1o(VOID, elements);
756
+ tmp_1 = element.n1o(VOID, elements);
756
757
  } else {
757
758
  if (element instanceof Interface) {
758
- tmp_1 = element.m1o(VOID, elements);
759
+ tmp_1 = element.w1o(VOID, elements);
759
760
  } else {
760
761
  if (element instanceof Enum) {
761
- tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
762
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
762
763
  } else {
763
764
  if (element instanceof Main) {
764
765
  tmp_1 = element;
@@ -790,14 +791,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
790
791
  var tmp = scope;
791
792
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
792
793
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
793
- var this_0 = scope.q1v_1;
794
+ var this_0 = scope.a1w_1;
794
795
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
795
796
  // Inline function 'kotlin.apply' call
796
797
  var this_1 = new TransformerBuilder();
797
- this_1.k1i(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
798
- var tmp$ret$2 = this_1.l1i();
799
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
800
- var tmp_0 = scope.q1v_1;
798
+ this_1.u1i(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
799
+ var tmp$ret$2 = this_1.v1i();
800
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
801
+ var tmp_0 = scope.a1w_1;
801
802
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
802
803
  }
803
804
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -805,27 +806,27 @@ function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
805
806
  }
806
807
  function TypeScriptIrEmitter$emitClient$lambda(this$0) {
807
808
  return function (it) {
808
- var methodName = firstToLower(this$0, it.eq_1.m1());
809
+ var methodName = firstToLower(this$0, it.kq_1.m1());
809
810
  return ' ...' + methodName + 'Client(serialization, transportation),';
810
811
  };
811
812
  }
812
813
  function TypeScriptIrEmitter() {
813
814
  Companion_getInstance_0();
814
- this.k1z_1 = TypeScriptGenerator_getInstance();
815
- this.l1z_1 = FileExtension_TypeScript_getInstance();
815
+ this.u1z_1 = TypeScriptGenerator_getInstance();
816
+ this.v1z_1 = FileExtension_TypeScript_getInstance();
816
817
  var tmp = this;
817
- tmp.m1z_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
818
+ tmp.w1z_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
818
819
  var tmp_0 = this;
819
- tmp_0.n1z_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
820
+ tmp_0.x1z_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
820
821
  }
821
- protoOf(TypeScriptIrEmitter).d1w = function () {
822
- return this.k1z_1;
822
+ protoOf(TypeScriptIrEmitter).n1w = function () {
823
+ return this.u1z_1;
823
824
  };
824
- protoOf(TypeScriptIrEmitter).er = function () {
825
- return this.l1z_1;
825
+ protoOf(TypeScriptIrEmitter).kr = function () {
826
+ return this.v1z_1;
826
827
  };
827
- protoOf(TypeScriptIrEmitter).h1w = function () {
828
- var packageName = Companion_instance.bs('community.flock.wirespec');
828
+ protoOf(TypeScriptIrEmitter).r1w = function () {
829
+ var packageName = Companion_instance.is('community.flock.wirespec');
829
830
  var api = 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n to: (request: REQ) => RawRequest;\n from: (response: RawResponse) => RES\n}\nexport type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n from: (request: RawRequest) => REQ;\n to: (response: RES) => RawResponse\n}\nexport type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = {\n name: string;\n method: Method,\n path: string,\n client: Client<REQ, RES>;\n server: Server<REQ, RES>\n}';
830
831
  // Inline function 'community.flock.wirespec.ir.core.transform' call
831
832
  var this_0 = convert(packageName);
@@ -834,41 +835,41 @@ protoOf(TypeScriptIrEmitter).h1w = function () {
834
835
  var tmp = scope;
835
836
  // Inline function 'community.flock.wirespec.ir.core.injectBefore' call
836
837
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
837
- var this_1 = scope.q1v_1;
838
+ var this_1 = scope.a1w_1;
838
839
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
839
840
  // Inline function 'kotlin.apply' call
840
841
  var this_2 = new TransformerBuilder();
841
- this_2.k1i(TypeScriptIrEmitter$emitShared$lambda);
842
- var tmp$ret$2 = this_2.l1i();
843
- tmp.q1v_1 = transform(this_1, tmp$ret$2);
842
+ this_2.u1i(TypeScriptIrEmitter$emitShared$lambda);
843
+ var tmp$ret$2 = this_2.v1i();
844
+ tmp.a1w_1 = transform(this_1, tmp$ret$2);
844
845
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
845
846
  var tmp_0 = scope;
846
847
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
847
848
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
848
- var this_3 = scope.q1v_1;
849
+ var this_3 = scope.a1w_1;
849
850
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
850
851
  // Inline function 'kotlin.apply' call
851
852
  var this_4 = new TransformerBuilder();
852
- this_4.k1i(TypeScriptIrEmitter$emitShared$lambda_0(api));
853
- var tmp$ret$8 = this_4.l1i();
854
- tmp_0.q1v_1 = transform(this_3, tmp$ret$8);
853
+ this_4.u1i(TypeScriptIrEmitter$emitShared$lambda_0(api));
854
+ var tmp$ret$8 = this_4.v1i();
855
+ tmp_0.a1w_1 = transform(this_3, tmp$ret$8);
855
856
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
856
857
  var tmp_1 = scope;
857
858
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
858
- var this_5 = scope.q1v_1;
859
+ var this_5 = scope.a1w_1;
859
860
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
860
861
  // Inline function 'kotlin.apply' call
861
862
  var this_6 = new TransformerBuilder();
862
- this_6.k1i(TypeScriptIrEmitter$emitShared$lambda_1);
863
- var tmp$ret$14 = this_6.l1i();
864
- tmp_1.q1v_1 = transform(this_5, tmp$ret$14);
865
- var tmp_2 = scope.q1v_1;
863
+ this_6.u1i(TypeScriptIrEmitter$emitShared$lambda_1);
864
+ var tmp$ret$14 = this_6.v1i();
865
+ tmp_1.a1w_1 = transform(this_5, tmp$ret$14);
866
+ var tmp_2 = scope.a1w_1;
866
867
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
867
868
  };
868
869
  protoOf(TypeScriptIrEmitter).no = function (ast, logger) {
869
870
  var tmp = emit.call(this, ast, logger);
870
871
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
871
- var this_0 = ast.br_1;
872
+ var this_0 = ast.hr_1;
872
873
  // Inline function 'kotlin.collections.flatMap' call
873
874
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
874
875
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -876,7 +877,7 @@ protoOf(TypeScriptIrEmitter).no = function (ast, logger) {
876
877
  var _iterator__ex2g4s = tmp0.t();
877
878
  while (_iterator__ex2g4s.u()) {
878
879
  var element = _iterator__ex2g4s.v();
879
- var list = new NonEmptyList(element.ar_1);
880
+ var list = new NonEmptyList(element.gr_1);
880
881
  addAll(destination, list);
881
882
  }
882
883
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -912,18 +913,18 @@ protoOf(TypeScriptIrEmitter).no = function (ast, logger) {
912
913
  var ns = item.l1();
913
914
  // Inline function 'kotlin.collections.component2' call
914
915
  var defs = item.m1();
915
- var tmp_1 = ns + '/index.' + this.er().wq_1;
916
+ var tmp_1 = ns + '/index.' + this.kr().cr_1;
916
917
  var tmp$ret$12 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emit$lambda));
917
918
  destination_1.x(tmp$ret$12);
918
919
  }
919
920
  return NonEmptyList__plus_impl_xqmb9(tmp, destination_1);
920
921
  };
921
- protoOf(TypeScriptIrEmitter).fr = function (definition, module_0, logger) {
922
+ protoOf(TypeScriptIrEmitter).lr = function (definition, module_0, logger) {
922
923
  var file = emit_0.call(this, definition, module_0, logger);
923
- var subPackageName = plus_1(Companion_instance.bs(''), definition);
924
- return new File(Companion_getInstance().x1g(subPackageName.es() + sanitizeSymbol(this, file.s1n_1.y1g())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.t1n_1));
924
+ var subPackageName = plus_1(Companion_instance.is(''), definition);
925
+ return new File(Companion_getInstance().h1h(subPackageName.ls() + sanitizeSymbol(this, file.c1o_1.i1h())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.d1o_1));
925
926
  };
926
- protoOf(TypeScriptIrEmitter).m1w = function (definition, module_0) {
927
+ protoOf(TypeScriptIrEmitter).w1w = function (definition, module_0) {
927
928
  var tmp;
928
929
  if (definition instanceof Type) {
929
930
  tmp = convertToGenerator_2(definition, module_0);
@@ -932,16 +933,16 @@ protoOf(TypeScriptIrEmitter).m1w = function (definition, module_0) {
932
933
  // Inline function 'community.flock.wirespec.ir.core.transform' call
933
934
  var this_0 = convertToGenerator_1(definition);
934
935
  var scope = new TransformScope(this_0);
935
- scope.y1v(TypeScriptIrEmitter$emitGenerator$lambda(definition));
936
- var tmp_0 = scope.q1v_1;
936
+ scope.i1w(TypeScriptIrEmitter$emitGenerator$lambda(definition));
937
+ var tmp_0 = scope.a1w_1;
937
938
  tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
938
939
  } else {
939
940
  if (definition instanceof Refined) {
940
941
  // Inline function 'community.flock.wirespec.ir.core.transform' call
941
942
  var this_1 = convertToGenerator_0(definition);
942
943
  var scope_0 = new TransformScope(this_1);
943
- scope_0.y1v(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
944
- var tmp_1 = scope_0.q1v_1;
944
+ scope_0.i1w(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
945
+ var tmp_1 = scope_0.a1w_1;
945
946
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
946
947
  } else {
947
948
  if (definition instanceof Union) {
@@ -955,10 +956,10 @@ protoOf(TypeScriptIrEmitter).m1w = function (definition, module_0) {
955
956
  // Inline function 'community.flock.wirespec.ir.core.transform' call
956
957
  var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
957
958
  var scope_1 = new TransformScope(this_2);
958
- scope_1.y1v(TypeScriptIrEmitter$emitGenerator$lambda_1);
959
- var tmp_2 = scope_1.q1v_1;
959
+ scope_1.i1w(TypeScriptIrEmitter$emitGenerator$lambda_1);
960
+ var tmp_2 = scope_1.a1w_1;
960
961
  var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
961
- var generatorOwnName = definition.gr().m1() + 'Generator';
962
+ var generatorOwnName = definition.mr().m1() + 'Generator';
962
963
  var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
963
964
  var tmp_4 = filterNot(tmp_3, TypeScriptIrEmitter$emitGenerator$lambda_2);
964
965
  var tmp_5 = filterNot(tmp_4, TypeScriptIrEmitter$emitGenerator$lambda_3(generatorOwnName));
@@ -967,8 +968,8 @@ protoOf(TypeScriptIrEmitter).m1w = function (definition, module_0) {
967
968
  var generatorRefs = LinkedHashSet_init_$Create$();
968
969
  // Inline function 'community.flock.wirespec.ir.core.transform' call
969
970
  var scope_2 = new TransformScope(generatorFile);
970
- scope_2.y1v(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
971
- var tmp_6 = scope_2.q1v_1;
971
+ scope_2.i1w(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
972
+ var tmp_6 = scope_2.a1w_1;
972
973
  isInterface(tmp_6, Element) || THROW_CCE();
973
974
  // Inline function 'kotlin.collections.filter' call
974
975
  // Inline function 'kotlin.collections.filterTo' call
@@ -1011,10 +1012,10 @@ protoOf(TypeScriptIrEmitter).m1w = function (definition, module_0) {
1011
1012
  destination_2.x(tmp$ret$18);
1012
1013
  }
1013
1014
  var modelImports = destination_2;
1014
- var subPackageName = plus_2(Companion_instance.bs(''), 'generator');
1015
- return new File(Companion_getInstance().x1g(subPackageName.es() + sanitizeSymbol(this, generatorFile.s1n_1.y1g())), plus(plus(plus(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.t1n_1));
1015
+ var subPackageName = plus_2(Companion_instance.is(''), 'generator');
1016
+ return new File(Companion_getInstance().h1h(subPackageName.ls() + sanitizeSymbol(this, generatorFile.c1o_1.i1h())), plus(plus(plus(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.d1o_1));
1016
1017
  };
1017
- protoOf(TypeScriptIrEmitter).vr = function (type, module_0) {
1018
+ protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1018
1019
  var fieldValidations = classifyValidatableFields(type, module_0);
1019
1020
  // Inline function 'kotlin.collections.distinctBy' call
1020
1021
  var this_0 = importReferences(type);
@@ -1023,7 +1024,7 @@ protoOf(TypeScriptIrEmitter).vr = function (type, module_0) {
1023
1024
  var _iterator__ex2g4s = this_0.t();
1024
1025
  while (_iterator__ex2g4s.u()) {
1025
1026
  var e = _iterator__ex2g4s.v();
1026
- var key = e.dv_1;
1027
+ var key = e.lv_1;
1027
1028
  if (set.x(key)) {
1028
1029
  list.x(e);
1029
1030
  }
@@ -1034,7 +1035,7 @@ protoOf(TypeScriptIrEmitter).vr = function (type, module_0) {
1034
1035
  var _iterator__ex2g4s_0 = list.t();
1035
1036
  while (_iterator__ex2g4s_0.u()) {
1036
1037
  var item = _iterator__ex2g4s_0.v();
1037
- var tmp$ret$2 = import_0('./' + item.dv_1, item.dv_1);
1038
+ var tmp$ret$2 = import_0('./' + item.lv_1, item.lv_1);
1038
1039
  destination.x(tmp$ret$2);
1039
1040
  }
1040
1041
  var typeImports = destination;
@@ -1044,7 +1045,7 @@ protoOf(TypeScriptIrEmitter).vr = function (type, module_0) {
1044
1045
  var _iterator__ex2g4s_1 = fieldValidations.t();
1045
1046
  while (_iterator__ex2g4s_1.u()) {
1046
1047
  var item_0 = _iterator__ex2g4s_1.v();
1047
- var tmp$ret$5 = item_0.q1i_1;
1048
+ var tmp$ret$5 = item_0.a1j_1;
1048
1049
  destination_0.x(tmp$ret$5);
1049
1050
  }
1050
1051
  // Inline function 'kotlin.collections.filter' call
@@ -1054,7 +1055,7 @@ protoOf(TypeScriptIrEmitter).vr = function (type, module_0) {
1054
1055
  var _iterator__ex2g4s_2 = tmp0.t();
1055
1056
  while (_iterator__ex2g4s_2.u()) {
1056
1057
  var element = _iterator__ex2g4s_2.v();
1057
- if (!(element === type.vp_1.m1())) {
1058
+ if (!(element === type.eq_1.m1())) {
1058
1059
  destination_1.x(element);
1059
1060
  }
1060
1061
  }
@@ -1070,30 +1071,30 @@ protoOf(TypeScriptIrEmitter).vr = function (type, module_0) {
1070
1071
  var validateImports = destination_2;
1071
1072
  var allImports = plus(typeImports, validateImports);
1072
1073
  // Inline function 'kotlin.collections.map' call
1073
- var this_1 = type.wp_1.sp_1;
1074
+ var this_1 = type.fq_1.kp_1;
1074
1075
  // Inline function 'kotlin.collections.mapTo' call
1075
1076
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1076
1077
  var _iterator__ex2g4s_4 = this_1.t();
1077
1078
  while (_iterator__ex2g4s_4.u()) {
1078
1079
  var item_2 = _iterator__ex2g4s_4.v();
1079
- var tmp$ret$14 = item_2.aq_1.m1();
1080
+ var tmp$ret$14 = item_2.sp_1.m1();
1080
1081
  destination_3.x(tmp$ret$14);
1081
1082
  }
1082
1083
  var fieldNames = toSet(destination_3);
1083
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.vp_1.m1(), fieldNames);
1084
+ var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.eq_1.m1(), fieldNames);
1084
1085
  var tmp;
1085
1086
  // Inline function 'kotlin.collections.isNotEmpty' call
1086
1087
  if (!allImports.r()) {
1087
- tmp = file.w1n(VOID, plus(allImports, file.t1n_1));
1088
+ tmp = file.g1o(VOID, plus(allImports, file.d1o_1));
1088
1089
  } else {
1089
1090
  tmp = file;
1090
1091
  }
1091
1092
  return tmp;
1092
1093
  };
1093
- protoOf(TypeScriptIrEmitter).tr = function (enum_0, module_0) {
1094
+ protoOf(TypeScriptIrEmitter).as = function (enum_0, module_0) {
1094
1095
  return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1095
1096
  };
1096
- protoOf(TypeScriptIrEmitter).jr = function (union) {
1097
+ protoOf(TypeScriptIrEmitter).qr = function (union) {
1097
1098
  // Inline function 'kotlin.collections.distinctBy' call
1098
1099
  var this_0 = importReferences(union);
1099
1100
  var set = HashSet_init_$Create$();
@@ -1101,7 +1102,7 @@ protoOf(TypeScriptIrEmitter).jr = function (union) {
1101
1102
  var _iterator__ex2g4s = this_0.t();
1102
1103
  while (_iterator__ex2g4s.u()) {
1103
1104
  var e = _iterator__ex2g4s.v();
1104
- var key = e.dv_1;
1105
+ var key = e.lv_1;
1105
1106
  if (set.x(key)) {
1106
1107
  list.x(e);
1107
1108
  }
@@ -1112,7 +1113,7 @@ protoOf(TypeScriptIrEmitter).jr = function (union) {
1112
1113
  var _iterator__ex2g4s_0 = list.t();
1113
1114
  while (_iterator__ex2g4s_0.u()) {
1114
1115
  var item = _iterator__ex2g4s_0.v();
1115
- var tmp$ret$2 = import_0('../model', item.dv_1, true);
1116
+ var tmp$ret$2 = import_0('../model', item.lv_1, true);
1116
1117
  destination.x(tmp$ret$2);
1117
1118
  }
1118
1119
  var imports = destination;
@@ -1120,19 +1121,19 @@ protoOf(TypeScriptIrEmitter).jr = function (union) {
1120
1121
  var tmp;
1121
1122
  // Inline function 'kotlin.collections.isNotEmpty' call
1122
1123
  if (!imports.r()) {
1123
- tmp = file.w1n(VOID, plus(imports, file.t1n_1));
1124
+ tmp = file.g1o(VOID, plus(imports, file.d1o_1));
1124
1125
  } else {
1125
1126
  tmp = file;
1126
1127
  }
1127
1128
  return tmp;
1128
1129
  };
1129
- protoOf(TypeScriptIrEmitter).or = function (refined) {
1130
+ protoOf(TypeScriptIrEmitter).vr = function (refined) {
1130
1131
  var converted = convert_2(refined);
1131
- var constraintExpr = convertConstraint(refined.nr_1, new VariableReference(Companion_getInstance().x1g('value')));
1132
- var validatorStr = TypeScriptGenerator_getInstance().a1x(constraintExpr);
1133
- return new File(converted.s1n_1, listOf([new RawElement('export type ' + converted.s1n_1.y1g() + ' = ' + emitTypeScriptReference(this, refined.nr_1) + ';'), new RawElement('export const validate' + refined.mr_1.m1() + ' = (value: ' + emitTypeScriptReference(this, refined.nr_1) + ') =>\n ' + validatorStr + ';')]));
1132
+ var constraintExpr = convertConstraint(refined.ur_1, new VariableReference(Companion_getInstance().h1h('value')));
1133
+ var validatorStr = TypeScriptGenerator_getInstance().k1x(constraintExpr);
1134
+ return new File(converted.c1o_1, listOf([new RawElement('export type ' + converted.c1o_1.i1h() + ' = ' + emitTypeScriptReference(this, refined.ur_1) + ';'), new RawElement('export const validate' + refined.tr_1.m1() + ' = (value: ' + emitTypeScriptReference(this, refined.ur_1) + ') =>\n ' + validatorStr + ';')]));
1134
1135
  };
1135
- protoOf(TypeScriptIrEmitter).ur = function (endpoint) {
1136
+ protoOf(TypeScriptIrEmitter).bs = function (endpoint) {
1136
1137
  // Inline function 'kotlin.collections.distinctBy' call
1137
1138
  var this_0 = importReferences(endpoint);
1138
1139
  var set = HashSet_init_$Create$();
@@ -1140,7 +1141,7 @@ protoOf(TypeScriptIrEmitter).ur = function (endpoint) {
1140
1141
  var _iterator__ex2g4s = this_0.t();
1141
1142
  while (_iterator__ex2g4s.u()) {
1142
1143
  var e = _iterator__ex2g4s.v();
1143
- var key = e.dv_1;
1144
+ var key = e.lv_1;
1144
1145
  if (set.x(key)) {
1145
1146
  list.x(e);
1146
1147
  }
@@ -1151,7 +1152,7 @@ protoOf(TypeScriptIrEmitter).ur = function (endpoint) {
1151
1152
  var _iterator__ex2g4s_0 = list.t();
1152
1153
  while (_iterator__ex2g4s_0.u()) {
1153
1154
  var item = _iterator__ex2g4s_0.v();
1154
- var tmp$ret$2 = import_0('../model', item.dv_1, true);
1155
+ var tmp$ret$2 = import_0('../model', item.lv_1, true);
1155
1156
  destination.x(tmp$ret$2);
1156
1157
  }
1157
1158
  var imports = destination;
@@ -1160,25 +1161,68 @@ protoOf(TypeScriptIrEmitter).ur = function (endpoint) {
1160
1161
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1161
1162
  var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1162
1163
  var scope = new TransformScope(this_1);
1163
- scope.v1v(transformPatternSwitchToValueSwitch());
1164
- var tmp = scope.q1v_1;
1164
+ scope.f1w(transformPatternSwitchToValueSwitch());
1165
+ var tmp = scope.a1w_1;
1165
1166
  var tmp$ret$7 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1166
1167
  // Inline function 'kotlin.let' call
1167
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).w1n(Companion_getInstance().x1g(sanitize(this, endpoint.eq_1))), _get_sanitizationConfig__sns434(this));
1168
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).g1o(Companion_getInstance().h1h(sanitize(this, endpoint.kq_1))), _get_sanitizationConfig__sns434(this));
1168
1169
  var tmp_0;
1169
1170
  // Inline function 'kotlin.collections.isNotEmpty' call
1170
1171
  if (!imports.r()) {
1171
- tmp_0 = it.w1n(VOID, plus(imports, it.t1n_1));
1172
+ tmp_0 = it.g1o(VOID, plus(imports, it.d1o_1));
1172
1173
  } else {
1173
1174
  tmp_0 = it;
1174
1175
  }
1175
1176
  return tmp_0;
1176
1177
  };
1177
- protoOf(TypeScriptIrEmitter).ir = function (channel) {
1178
+ protoOf(TypeScriptIrEmitter).pr = function (channel) {
1178
1179
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1179
1180
  };
1180
- protoOf(TypeScriptIrEmitter).l1w = function (endpoint) {
1181
- var endpointName = endpoint.eq_1.m1();
1181
+ protoOf(TypeScriptIrEmitter).or = function (rpc) {
1182
+ // Inline function 'kotlin.let' call
1183
+ var file = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
1184
+ // Inline function 'kotlin.collections.distinctBy' call
1185
+ var this_0 = importReferences(rpc);
1186
+ var set = HashSet_init_$Create$();
1187
+ var list = ArrayList_init_$Create$();
1188
+ var _iterator__ex2g4s = this_0.t();
1189
+ while (_iterator__ex2g4s.u()) {
1190
+ var e = _iterator__ex2g4s.v();
1191
+ var key = e.lv_1;
1192
+ if (set.x(key)) {
1193
+ list.x(e);
1194
+ }
1195
+ }
1196
+ // Inline function 'kotlin.collections.map' call
1197
+ // Inline function 'kotlin.collections.mapTo' call
1198
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
1199
+ var _iterator__ex2g4s_0 = list.t();
1200
+ while (_iterator__ex2g4s_0.u()) {
1201
+ var item = _iterator__ex2g4s_0.v();
1202
+ var tmp$ret$2 = import_0('../model', item.lv_1, true);
1203
+ destination.x(tmp$ret$2);
1204
+ }
1205
+ // Inline function 'kotlin.takeIf' call
1206
+ var tmp;
1207
+ // Inline function 'kotlin.collections.isNotEmpty' call
1208
+ if (!destination.r()) {
1209
+ tmp = destination;
1210
+ } else {
1211
+ tmp = null;
1212
+ }
1213
+ var tmp0_safe_receiver = tmp;
1214
+ var tmp_0;
1215
+ if (tmp0_safe_receiver == null) {
1216
+ tmp_0 = null;
1217
+ } else {
1218
+ // Inline function 'kotlin.let' call
1219
+ tmp_0 = file.g1o(VOID, plus(tmp0_safe_receiver, file.d1o_1));
1220
+ }
1221
+ var tmp1_elvis_lhs = tmp_0;
1222
+ return tmp1_elvis_lhs == null ? file : tmp1_elvis_lhs;
1223
+ };
1224
+ protoOf(TypeScriptIrEmitter).v1w = function (endpoint) {
1225
+ var endpointName = endpoint.kq_1.m1();
1182
1226
  var methodName = firstToLower(this, endpointName);
1183
1227
  // Inline function 'kotlin.collections.distinctBy' call
1184
1228
  var this_0 = importReferences(endpoint);
@@ -1187,7 +1231,7 @@ protoOf(TypeScriptIrEmitter).l1w = function (endpoint) {
1187
1231
  var _iterator__ex2g4s = this_0.t();
1188
1232
  while (_iterator__ex2g4s.u()) {
1189
1233
  var e = _iterator__ex2g4s.v();
1190
- var key = e.dv_1;
1234
+ var key = e.lv_1;
1191
1235
  if (set.x(key)) {
1192
1236
  list.x(e);
1193
1237
  }
@@ -1198,7 +1242,7 @@ protoOf(TypeScriptIrEmitter).l1w = function (endpoint) {
1198
1242
  var _iterator__ex2g4s_0 = list.t();
1199
1243
  while (_iterator__ex2g4s_0.u()) {
1200
1244
  var item = _iterator__ex2g4s_0.v();
1201
- var tmp$ret$2 = import_0('../model', item.dv_1, true);
1245
+ var tmp$ret$2 = import_0('../model', item.lv_1, true);
1202
1246
  destination.x(tmp$ret$2);
1203
1247
  }
1204
1248
  var imports = destination;
@@ -1220,7 +1264,7 @@ protoOf(TypeScriptIrEmitter).l1w = function (endpoint) {
1220
1264
  }
1221
1265
  var requestArgs = tmp_0;
1222
1266
  var code = trimMargin('\n |export const ' + methodName + 'Client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n | ' + methodName + ': async (' + paramList + '): Promise<' + endpointName + '.Response<unknown>> => {\n | const request: ' + endpointName + '.Request = ' + requestArgs + ';\n | const rawRequest = ' + endpointName + '.toRawRequest(serialization, request);\n | const rawResponse = await transportation.transport(rawRequest);\n | return ' + endpointName + '.fromRawResponse(serialization, rawResponse);\n | }\n |})\n ');
1223
- var tmp_1 = Companion_getInstance().x1g('client/' + endpointName + 'Client');
1267
+ var tmp_1 = Companion_getInstance().h1h('client/' + endpointName + 'Client');
1224
1268
  // Inline function 'kotlin.collections.buildList' call
1225
1269
  // Inline function 'kotlin.collections.buildListInternal' call
1226
1270
  // Inline function 'kotlin.apply' call
@@ -1232,22 +1276,22 @@ protoOf(TypeScriptIrEmitter).l1w = function (endpoint) {
1232
1276
  var tmp$ret$10 = this_1.p5();
1233
1277
  return new File(tmp_1, tmp$ret$10);
1234
1278
  };
1235
- protoOf(TypeScriptIrEmitter).i1w = function (endpoints, logger) {
1236
- logger.cr('Emitting main Client for ' + endpoints.b1() + ' endpoints');
1279
+ protoOf(TypeScriptIrEmitter).s1w = function (endpoints, logger) {
1280
+ logger.ir('Emitting main Client for ' + endpoints.b1() + ' endpoints');
1237
1281
  // Inline function 'kotlin.collections.map' call
1238
1282
  // Inline function 'kotlin.collections.mapTo' call
1239
1283
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
1240
1284
  var _iterator__ex2g4s = endpoints.t();
1241
1285
  while (_iterator__ex2g4s.u()) {
1242
1286
  var item = _iterator__ex2g4s.v();
1243
- var methodName = firstToLower(this, item.eq_1.m1());
1244
- var tmp$ret$0 = import_0('./client/' + item.eq_1.m1() + 'Client', methodName + 'Client');
1287
+ var methodName = firstToLower(this, item.kq_1.m1());
1288
+ var tmp$ret$0 = import_0('./client/' + item.kq_1.m1() + 'Client', methodName + 'Client');
1245
1289
  destination.x(tmp$ret$0);
1246
1290
  }
1247
1291
  var clientImports = destination;
1248
1292
  var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emitClient$lambda(this));
1249
1293
  var code = trimMargin('\n |export const client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n |' + spreadEntries + '\n |})\n ');
1250
- var tmp = Companion_getInstance().x1g('Client');
1294
+ var tmp = Companion_getInstance().h1h('Client');
1251
1295
  // Inline function 'kotlin.collections.buildList' call
1252
1296
  // Inline function 'kotlin.collections.buildListInternal' call
1253
1297
  // Inline function 'kotlin.apply' call
@@ -1262,8 +1306,8 @@ function transformPatternSwitchToValueSwitch() {
1262
1306
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1263
1307
  // Inline function 'kotlin.apply' call
1264
1308
  var this_0 = new TransformerBuilder();
1265
- this_0.x1v(transformPatternSwitchToValueSwitch$lambda);
1266
- return this_0.l1i();
1309
+ this_0.h1w(transformPatternSwitchToValueSwitch$lambda);
1310
+ return this_0.v1i();
1267
1311
  }
1268
1312
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1269
1313
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1271,19 +1315,19 @@ function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1271
1315
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1272
1316
  var tmp = scope;
1273
1317
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1274
- var this_0 = scope.q1v_1;
1318
+ var this_0 = scope.a1w_1;
1275
1319
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1276
1320
  // Inline function 'kotlin.apply' call
1277
1321
  var this_1 = new TransformerBuilder();
1278
- this_1.k1i(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1279
- var tmp$ret$2 = this_1.l1i();
1280
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
1281
- var tmp_0 = scope.q1v_1;
1322
+ this_1.u1i(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1323
+ var tmp$ret$2 = this_1.v1i();
1324
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
1325
+ var tmp_0 = scope.a1w_1;
1282
1326
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1283
1327
  }
1284
1328
  function buildApiConst(endpoint) {
1285
1329
  // Inline function 'kotlin.text.replaceFirstChar' call
1286
- var this_0 = endpoint.eq_1.m1();
1330
+ var this_0 = endpoint.kq_1.m1();
1287
1331
  var tmp;
1288
1332
  // Inline function 'kotlin.text.isNotEmpty' call
1289
1333
  if (charSequenceLength(this_0) > 0) {
@@ -1297,8 +1341,8 @@ function buildApiConst(endpoint) {
1297
1341
  tmp = this_0;
1298
1342
  }
1299
1343
  var apiName = tmp;
1300
- var method = endpoint.fq_1.b3_1;
1301
- var pathString = joinToString(endpoint.gq_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
1344
+ var method = endpoint.lq_1.b3_1;
1345
+ var pathString = joinToString(endpoint.mq_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
1302
1346
  return raw(trimMargin('\n |export const client:Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawResponse(serialization, it),\n | to: (it) => toRawRequest(serialization, it)\n |})\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawRequest(serialization, it),\n | to: (it) => toRawResponse(serialization, it)\n |})\n |export const api = {\n | name: "' + apiName + '",\n | method: "' + method + '",\n | path: "' + pathString + '",\n | server,\n | client\n |} as const\n '));
1303
1347
  }
1304
1348
  function bindCallToRequestParams(_this__u8e3s4) {
@@ -1307,21 +1351,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
1307
1351
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1308
1352
  var tmp = scope;
1309
1353
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1310
- var this_0 = scope.q1v_1;
1354
+ var this_0 = scope.a1w_1;
1311
1355
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1312
1356
  // Inline function 'kotlin.apply' call
1313
1357
  var this_1 = new TransformerBuilder();
1314
- this_1.k1i(bindCallToRequestParams$lambda);
1315
- var tmp$ret$2 = this_1.l1i();
1316
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
1317
- var tmp_0 = scope.q1v_1;
1358
+ this_1.u1i(bindCallToRequestParams$lambda);
1359
+ var tmp$ret$2 = this_1.v1i();
1360
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
1361
+ var tmp_0 = scope.a1w_1;
1318
1362
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1319
1363
  }
1320
1364
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
1321
1365
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1322
1366
  var scope = new TransformScope(_this__u8e3s4);
1323
- scope.x1v(stripTrailingSpaceFromErrorMessage$lambda);
1324
- var tmp = scope.q1v_1;
1367
+ scope.h1w(stripTrailingSpaceFromErrorMessage$lambda);
1368
+ var tmp = scope.a1w_1;
1325
1369
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1326
1370
  }
1327
1371
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -1329,7 +1373,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1329
1373
  if (!(stmt instanceof Switch)) {
1330
1374
  tmp = true;
1331
1375
  } else {
1332
- var tmp0 = stmt.u1q_1;
1376
+ var tmp0 = stmt.e1r_1;
1333
1377
  var tmp$ret$0;
1334
1378
  $l$block_0: {
1335
1379
  // Inline function 'kotlin.collections.none' call
@@ -1346,7 +1390,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1346
1390
  var _iterator__ex2g4s = tmp0.t();
1347
1391
  while (_iterator__ex2g4s.u()) {
1348
1392
  var element = _iterator__ex2g4s.v();
1349
- if (!(element.b1r_1 == null)) {
1393
+ if (!(element.l1r_1 == null)) {
1350
1394
  tmp$ret$0 = false;
1351
1395
  break $l$block_0;
1352
1396
  }
@@ -1357,11 +1401,11 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1357
1401
  }
1358
1402
  if (tmp)
1359
1403
  return transformChildren(stmt, tr);
1360
- var tmp0_safe_receiver = stmt.w1q_1;
1361
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1m();
1404
+ var tmp0_safe_receiver = stmt.g1r_1;
1405
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1m();
1362
1406
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
1363
1407
  // Inline function 'kotlin.collections.map' call
1364
- var this_0 = stmt.u1q_1;
1408
+ var this_0 = stmt.e1r_1;
1365
1409
  // Inline function 'kotlin.collections.mapTo' call
1366
1410
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1367
1411
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1369,39 +1413,39 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1369
1413
  var item = _iterator__ex2g4s_0.v();
1370
1414
  var tmp$ret$5;
1371
1415
  $l$block_1: {
1372
- var tmp_1 = item.b1r_1;
1416
+ var tmp_1 = item.l1r_1;
1373
1417
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom ? tmp_1 : null;
1374
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.u1i_1;
1375
- var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1g();
1418
+ var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.e1j_1;
1419
+ var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i1h();
1376
1420
  var tmp3_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
1377
1421
  var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : removePrefix(tmp3_safe_receiver, 'Response');
1378
1422
  var statusNum = tmp4_safe_receiver == null ? null : toIntOrNull(tmp4_safe_receiver);
1379
1423
  if (statusNum == null) {
1380
1424
  // Inline function 'kotlin.collections.map' call
1381
- var this_1 = item.a1r_1;
1425
+ var this_1 = item.k1r_1;
1382
1426
  // Inline function 'kotlin.collections.mapTo' call
1383
1427
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1384
1428
  var _iterator__ex2g4s_1 = this_1.t();
1385
1429
  while (_iterator__ex2g4s_1.u()) {
1386
1430
  var item_0 = _iterator__ex2g4s_1.v();
1387
- var tmp$ret$2 = tr.k1v(item_0);
1431
+ var tmp$ret$2 = tr.u1v(item_0);
1388
1432
  destination_0.x(tmp$ret$2);
1389
1433
  }
1390
- tmp$ret$5 = item.d1r(VOID, destination_0);
1434
+ tmp$ret$5 = item.n1r(VOID, destination_0);
1391
1435
  break $l$block_1;
1392
1436
  }
1393
- var exprCode = TypeScriptGenerator_getInstance().a1x(tr.l1v(stmt.t1q_1));
1394
- var castAssignment = new Assignment(Companion_getInstance().x1g(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1437
+ var exprCode = TypeScriptGenerator_getInstance().k1x(tr.v1v(stmt.d1r_1));
1438
+ var castAssignment = new Assignment(Companion_getInstance().h1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1395
1439
  var tmp_2 = new Literal(statusNum, new Integer());
1396
1440
  var tmp_3 = listOf_0(castAssignment);
1397
1441
  // Inline function 'kotlin.collections.map' call
1398
- var this_2 = item.a1r_1;
1442
+ var this_2 = item.k1r_1;
1399
1443
  // Inline function 'kotlin.collections.mapTo' call
1400
1444
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
1401
1445
  var _iterator__ex2g4s_2 = this_2.t();
1402
1446
  while (_iterator__ex2g4s_2.u()) {
1403
1447
  var item_1 = _iterator__ex2g4s_2.v();
1404
- var tmp$ret$6 = tr.k1v(item_1);
1448
+ var tmp$ret$6 = tr.u1v(item_1);
1405
1449
  destination_1.x(tmp$ret$6);
1406
1450
  }
1407
1451
  tmp$ret$5 = new Case(tmp_2, plus(tmp_3, destination_1), null);
@@ -1409,8 +1453,8 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1409
1453
  destination.x(tmp$ret$5);
1410
1454
  }
1411
1455
  var transformedCases = destination;
1412
- var tmp_4 = new FieldCall(tr.l1v(stmt.t1q_1), Companion_getInstance().x1g('status'));
1413
- var tmp2_safe_receiver = stmt.v1q_1;
1456
+ var tmp_4 = new FieldCall(tr.v1v(stmt.d1r_1), Companion_getInstance().h1h('status'));
1457
+ var tmp2_safe_receiver = stmt.f1r_1;
1414
1458
  var tmp_5;
1415
1459
  if (tmp2_safe_receiver == null) {
1416
1460
  tmp_5 = null;
@@ -1421,7 +1465,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1421
1465
  var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
1422
1466
  while (_iterator__ex2g4s_3.u()) {
1423
1467
  var item_2 = _iterator__ex2g4s_3.v();
1424
- var tmp$ret$11 = tr.k1v(item_2);
1468
+ var tmp$ret$11 = tr.u1v(item_2);
1425
1469
  destination_2.x(tmp$ret$11);
1426
1470
  }
1427
1471
  tmp_5 = destination_2;
@@ -1434,9 +1478,9 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1434
1478
  var tmp_0;
1435
1479
  if (s instanceof FunctionCall) {
1436
1480
  var tmp_1;
1437
- if (s.t1m_1.equals(Companion_getInstance().x1g('validate')) && !(s.r1m_1 == null)) {
1481
+ if (s.d1n_1.equals(Companion_getInstance().h1h('validate')) && !(s.b1n_1 == null)) {
1438
1482
  // Inline function 'kotlin.collections.isNotEmpty' call
1439
- tmp_1 = !s.s1m_1.r();
1483
+ tmp_1 = !s.c1n_1.r();
1440
1484
  } else {
1441
1485
  tmp_1 = false;
1442
1486
  }
@@ -1445,21 +1489,21 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1445
1489
  tmp_0 = false;
1446
1490
  }
1447
1491
  if (tmp_0) {
1448
- var tmp_2 = first(s.s1m_1);
1492
+ var tmp_2 = first(s.c1n_1);
1449
1493
  var tmp1_safe_receiver = tmp_2 instanceof Custom ? tmp_2 : null;
1450
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u1i_1;
1451
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y1g();
1494
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e1j_1;
1495
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1h();
1452
1496
  var tn = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
1453
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().x1g('validate' + tn), mapOf(to(Companion_getInstance().x1g('obj'), t.l1v(ensureNotNull(s.r1m_1)))));
1497
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().h1h('validate' + tn), mapOf(to(Companion_getInstance().h1h('obj'), t.v1v(ensureNotNull(s.b1n_1)))));
1454
1498
  } else {
1455
1499
  var tmp_3;
1456
1500
  if (s instanceof FieldCall) {
1457
- tmp_3 = (s.e1r_1 == null && $fieldNames.v1(s.f1r_1.j1m()));
1501
+ tmp_3 = (s.o1r_1 == null && $fieldNames.v1(s.p1r_1.t1m()));
1458
1502
  } else {
1459
1503
  tmp_3 = false;
1460
1504
  }
1461
1505
  if (tmp_3) {
1462
- tmp = new FieldCall(new VariableReference(Companion_getInstance().x1g('obj')), s.f1r_1);
1506
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().h1h('obj')), s.p1r_1);
1463
1507
  } else {
1464
1508
  tmp = transformChildren(s, t);
1465
1509
  }
@@ -1473,15 +1517,15 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1473
1517
  if (element instanceof Function) {
1474
1518
  var tmp$ret$0;
1475
1519
  $l$block: {
1476
- if (!element.u1k_1.equals(Companion_getInstance().x1g('validate'))) {
1520
+ if (!element.e1l_1.equals(Companion_getInstance().h1h('validate'))) {
1477
1521
  tmp$ret$0 = element;
1478
1522
  break $l$block;
1479
1523
  }
1480
1524
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1481
- var this_0 = element.f1l(Companion_getInstance().x1g('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().x1g('obj'), Custom_init_$Create$($typeName))));
1525
+ var this_0 = element.p1l(Companion_getInstance().h1h('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().h1h('obj'), Custom_init_$Create$($typeName))));
1482
1526
  var scope = new TransformScope(this_0);
1483
- scope.z1v(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1484
- var tmp_0 = scope.q1v_1;
1527
+ scope.j1w(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1528
+ var tmp_0 = scope.a1w_1;
1485
1529
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1486
1530
  }
1487
1531
  tmp = tmp$ret$0;
@@ -1495,10 +1539,10 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1495
1539
  function buildApiConst$lambda(it) {
1496
1540
  var tmp;
1497
1541
  if (it instanceof Literal_0) {
1498
- tmp = it.tt_1;
1542
+ tmp = it.bu_1;
1499
1543
  } else {
1500
1544
  if (it instanceof Param) {
1501
- tmp = '{' + it.lq_1.m1() + '}';
1545
+ tmp = '{' + it.rq_1.m1() + '}';
1502
1546
  } else {
1503
1547
  noWhenBranchMatchedException();
1504
1548
  }
@@ -1510,23 +1554,23 @@ function bindCallToRequestParams$lambda(element, transformer) {
1510
1554
  if (element instanceof Interface) {
1511
1555
  var tmp$ret$0;
1512
1556
  $l$block: {
1513
- if (!element.e1o_1.equals(Companion_getInstance().x1g('Call'))) {
1557
+ if (!element.o1o_1.equals(Companion_getInstance().h1h('Call'))) {
1514
1558
  tmp$ret$0 = element;
1515
1559
  break $l$block;
1516
1560
  }
1517
1561
  // Inline function 'kotlin.collections.map' call
1518
- var this_0 = element.f1o_1;
1562
+ var this_0 = element.p1o_1;
1519
1563
  // Inline function 'kotlin.collections.mapTo' call
1520
1564
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1521
1565
  var _iterator__ex2g4s = this_0.t();
1522
1566
  while (_iterator__ex2g4s.u()) {
1523
1567
  var item = _iterator__ex2g4s.v();
1524
1568
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1525
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1l(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().x1g('params'), Custom_init_$Create$('RequestParams'))));
1569
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().h1h('params'), Custom_init_$Create$('RequestParams'))));
1526
1570
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1527
1571
  destination.x(tmp$ret$1);
1528
1572
  }
1529
- tmp$ret$0 = element.m1o(VOID, destination);
1573
+ tmp$ret$0 = element.w1o(VOID, destination);
1530
1574
  }
1531
1575
  tmp = tmp$ret$0;
1532
1576
  } else {
@@ -1538,7 +1582,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
1538
1582
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1539
1583
  var tmp;
1540
1584
  if (stmt instanceof Switch) {
1541
- var tmp1_safe_receiver = stmt.v1q_1;
1585
+ var tmp1_safe_receiver = stmt.f1r_1;
1542
1586
  var tmp_0;
1543
1587
  if (tmp1_safe_receiver == null) {
1544
1588
  tmp_0 = null;
@@ -1560,7 +1604,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1560
1604
  tmp_1 = tmp0_elvis_lhs;
1561
1605
  }
1562
1606
  var errorStmt = tmp_1;
1563
- var tmp_2 = errorStmt.n1r_1;
1607
+ var tmp_2 = errorStmt.x1r_1;
1564
1608
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
1565
1609
  var tmp_3;
1566
1610
  if (tmp1_elvis_lhs == null) {
@@ -1570,7 +1614,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1570
1614
  tmp_3 = tmp1_elvis_lhs;
1571
1615
  }
1572
1616
  var binary = tmp_3;
1573
- var tmp_4 = binary.o1r_1;
1617
+ var tmp_4 = binary.y1r_1;
1574
1618
  var tmp2_elvis_lhs = tmp_4 instanceof Literal ? tmp_4 : null;
1575
1619
  var tmp_5;
1576
1620
  if (tmp2_elvis_lhs == null) {
@@ -1580,22 +1624,22 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1580
1624
  tmp_5 = tmp2_elvis_lhs;
1581
1625
  }
1582
1626
  var literal = tmp_5;
1583
- tmp$ret$0 = new ErrorStatement(new Literal(trimEnd(toString_0(literal.p1q_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.q1q_1));
1627
+ tmp$ret$0 = new ErrorStatement(new Literal(trimEnd(toString_0(literal.z1q_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.a1r_1));
1584
1628
  }
1585
1629
  destination.x(tmp$ret$0);
1586
1630
  }
1587
1631
  tmp_0 = destination;
1588
1632
  }
1589
- tmp = transformChildren(stmt.y1q(VOID, VOID, tmp_0), transformer);
1633
+ tmp = transformChildren(stmt.i1r(VOID, VOID, tmp_0), transformer);
1590
1634
  } else {
1591
1635
  tmp = transformChildren(stmt, transformer);
1592
1636
  }
1593
1637
  return tmp;
1594
1638
  }
1595
1639
  //region block: post-declaration
1596
- protoOf(TypeScriptIrEmitter).f1w = get_extensions;
1597
- protoOf(TypeScriptIrEmitter).g1w = emit_1;
1598
- protoOf(TypeScriptIrEmitter).k1w = beforeGenerate;
1640
+ protoOf(TypeScriptIrEmitter).p1w = get_extensions;
1641
+ protoOf(TypeScriptIrEmitter).q1w = emit_1;
1642
+ protoOf(TypeScriptIrEmitter).u1w = beforeGenerate;
1599
1643
  //endregion
1600
1644
  //region block: exports
1601
1645
  export {