@flock/wirespec 0.19.6 → 0.19.7

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 (35) hide show
  1. package/clikt-clikt-mordant.mjs +79 -79
  2. package/clikt-clikt.mjs +1265 -1265
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +406 -406
  5. package/kotlin-kotlin-stdlib.mjs +6 -6
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +9383 -9383
  8. package/kotlin-rgxgen.mjs +1757 -1757
  9. package/kotlinx-io-kotlinx-io-core.mjs +397 -397
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1708 -1708
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1449 -1449
  12. package/mordant-mordant.mjs +1097 -1097
  13. package/package.json +2 -2
  14. package/wirespec-src-compiler-core.mjs +973 -968
  15. package/wirespec-src-compiler-core.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-java.mjs +416 -416
  17. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +295 -295
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +381 -381
  21. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-rust.mjs +377 -377
  23. package/wirespec-src-compiler-emitters-scala.mjs +153 -153
  24. package/wirespec-src-compiler-emitters-typescript.mjs +400 -400
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +89 -79
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-ir.mjs +3425 -3425
  28. package/wirespec-src-compiler-lib.mjs +343 -343
  29. package/wirespec-src-converter-avro.mjs +499 -499
  30. package/wirespec-src-converter-openapi.mjs +555 -555
  31. package/wirespec-src-ide-lsp.mjs +1350 -1350
  32. package/wirespec-src-plugin-arguments.mjs +121 -121
  33. package/wirespec-src-plugin-cli.mjs +91 -91
  34. package/wirespec-src-plugin-npm.mjs +26 -26
  35. package/wirespec-src-tools-generator.mjs +23 -23
@@ -209,10 +209,10 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
209
209
  function emit_3(identifier) {
210
210
  var tmp;
211
211
  if (identifier instanceof DefinitionIdentifier) {
212
- tmp = this.w1x(identifier);
212
+ tmp = this.x1x(identifier);
213
213
  } else {
214
214
  if (identifier instanceof FieldIdentifier) {
215
- tmp = this.m1x(this.w1x(identifier));
215
+ tmp = this.n1x(this.x1x(identifier));
216
216
  } else {
217
217
  noWhenBranchMatchedException();
218
218
  }
@@ -230,7 +230,7 @@ function sanitize(_this__u8e3s4) {
230
230
  var item = _iterator__ex2g4s.v();
231
231
  var _unary__edvuaz = index;
232
232
  index = _unary__edvuaz + 1 | 0;
233
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
233
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.fr(item) : item;
234
234
  destination.x(tmp$ret$0);
235
235
  }
236
236
  // Inline function 'kotlin.text.filter' call
@@ -268,42 +268,51 @@ function sanitize(_this__u8e3s4) {
268
268
  return tmp;
269
269
  }
270
270
  function sanitizeKeywords(_this__u8e3s4) {
271
- return Companion_getInstance_0().g1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
271
+ return Companion_getInstance_0().h1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
272
272
  }
273
273
  initMetadataForInterface(PythonIdentifierEmitter, 'PythonIdentifierEmitter');
274
- function emit_4(type, module_0) {
274
+ function emit_4(enum_0, module_0) {
275
+ var tmp = this.x1x(enum_0.yr_1);
276
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.zr_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.is(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.is(2) + 'return self.value\n ');
277
+ }
278
+ initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
279
+ function emit_5(union) {
280
+ return trimMargin('\n |class ' + this.or(union.hp_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
281
+ }
282
+ initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
283
+ function emit_6(type, module_0) {
275
284
  var tmp;
276
- if (type.mp_1.ip_1.r()) {
277
- var tmp_0 = this.nr(type.lp_1);
285
+ if (type.np_1.jp_1.r()) {
286
+ var tmp_0 = this.or(type.mp_1);
278
287
  var tmp_1 = Spacer_instance.toString();
279
288
  var tmp_2 = importReferences(type);
280
289
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_0 + ':\n |' + tmp_1 + 'pass\n |\n |' + joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda(this)) + '\n |\n ');
281
290
  } else {
282
- var tmp_3 = this.nr(type.lp_1);
283
- var tmp_4 = this.lq(type.mp_1);
291
+ var tmp_3 = this.or(type.mp_1);
292
+ var tmp_4 = this.mq(type.np_1);
284
293
  var tmp_5 = importReferences(type);
285
294
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_3 + ':\n |' + tmp_4 + '\n |\n |' + joinToString(tmp_5, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_0(this)) + '\n ');
286
295
  }
287
296
  return tmp;
288
297
  }
289
- function emit_5(_this__u8e3s4) {
290
- return joinToString(_this__u8e3s4.ip_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
298
+ function emit_7(_this__u8e3s4) {
299
+ return joinToString(_this__u8e3s4.jp_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
291
300
  }
292
- function emit_6(_this__u8e3s4) {
293
- return this.nr(_this__u8e3s4.qp_1) + ": '" + this.nq(_this__u8e3s4.rp_1) + "'";
301
+ function emit_8(_this__u8e3s4) {
302
+ return this.or(_this__u8e3s4.rp_1) + ": '" + this.oq(_this__u8e3s4.sp_1) + "'";
294
303
  }
295
- function emit_7(_this__u8e3s4) {
304
+ function emit_9(_this__u8e3s4) {
296
305
  // Inline function 'kotlin.let' call
297
- var it = this.e1z(_this__u8e3s4);
298
- return _this__u8e3s4.tu() ? 'Optional[' + it + ']' : it;
306
+ var it = this.f1z(_this__u8e3s4);
307
+ return _this__u8e3s4.uu() ? 'Optional[' + it + ']' : it;
299
308
  }
300
309
  function emitType(_this__u8e3s4) {
301
310
  var tmp;
302
311
  if (_this__u8e3s4 instanceof Dict) {
303
- tmp = 'Dict[str, ' + this.nq(_this__u8e3s4.so_1) + ']';
312
+ tmp = 'Dict[str, ' + this.oq(_this__u8e3s4.so_1) + ']';
304
313
  } else {
305
314
  if (_this__u8e3s4 instanceof Iterable) {
306
- tmp = 'List[' + this.nq(_this__u8e3s4.po_1) + ']';
315
+ tmp = 'List[' + this.oq(_this__u8e3s4.po_1) + ']';
307
316
  } else {
308
317
  if (_this__u8e3s4 instanceof Unit) {
309
318
  tmp = 'None';
@@ -312,10 +321,10 @@ function emitType(_this__u8e3s4) {
312
321
  tmp = 'Any';
313
322
  } else {
314
323
  if (_this__u8e3s4 instanceof Custom) {
315
- tmp = _this__u8e3s4.bv_1;
324
+ tmp = _this__u8e3s4.cv_1;
316
325
  } else {
317
326
  if (_this__u8e3s4 instanceof Primitive) {
318
- tmp = this.c1z(_this__u8e3s4.fv_1);
327
+ tmp = this.d1z(_this__u8e3s4.gv_1);
319
328
  } else {
320
329
  noWhenBranchMatchedException();
321
330
  }
@@ -326,7 +335,7 @@ function emitType(_this__u8e3s4) {
326
335
  }
327
336
  return tmp;
328
337
  }
329
- function emit_8(_this__u8e3s4) {
338
+ function emit_10(_this__u8e3s4) {
330
339
  var tmp;
331
340
  if (_this__u8e3s4 instanceof String_0) {
332
341
  tmp = 'str';
@@ -351,13 +360,13 @@ function emit_8(_this__u8e3s4) {
351
360
  }
352
361
  return tmp;
353
362
  }
354
- function emit_9(_this__u8e3s4) {
363
+ function emit_11(_this__u8e3s4) {
355
364
  var tmp;
356
365
  if (_this__u8e3s4 instanceof RegExp_0) {
357
- tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.pt_1) + '", self.value))';
366
+ tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.qt_1) + '", self.value))';
358
367
  } else {
359
368
  if (_this__u8e3s4 instanceof Bound) {
360
- var tmp1_safe_receiver = _this__u8e3s4.fu_1;
369
+ var tmp1_safe_receiver = _this__u8e3s4.gu_1;
361
370
  var tmp_0;
362
371
  if (tmp1_safe_receiver == null) {
363
372
  tmp_0 = null;
@@ -366,7 +375,7 @@ function emit_9(_this__u8e3s4) {
366
375
  tmp_0 = tmp1_safe_receiver + ' < self.value';
367
376
  }
368
377
  var minCheck = tmp_0;
369
- var tmp2_safe_receiver = _this__u8e3s4.gu_1;
378
+ var tmp2_safe_receiver = _this__u8e3s4.hu_1;
370
379
  var tmp_1;
371
380
  if (tmp2_safe_receiver == null) {
372
381
  tmp_1 = null;
@@ -392,70 +401,26 @@ function emit_9(_this__u8e3s4) {
392
401
  return tmp;
393
402
  }
394
403
  function emitReferenceCustomImports(_this__u8e3s4) {
395
- return 'from ..model.' + _this__u8e3s4.bv_1 + ' import ' + _this__u8e3s4.bv_1;
404
+ return 'from ..model.' + _this__u8e3s4.cv_1 + ' import ' + _this__u8e3s4.cv_1;
396
405
  }
397
406
  initMetadataForInterface(PythonTypeDefinitionEmitter, 'PythonTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, PythonIdentifierEmitter]);
398
- function emit_10(refined) {
399
- return trimMargin('\n |@dataclass\n |class ' + this.w1x(refined.sr_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.e1z(refined.tr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.hs(2) + 'return ' + this.bs(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.hs(2) + 'return str(self.value)\n |\n ');
400
- }
401
- function emitValidator(_this__u8e3s4) {
402
- var defaultReturn = 'True';
403
- var type = _this__u8e3s4.tr_1.fv_1;
404
- var tmp;
405
- if (type instanceof Integer) {
406
- var tmp0_safe_receiver = type.ku_1;
407
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.oq(tmp0_safe_receiver);
408
- tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
409
- } else {
410
- if (type instanceof Number_0) {
411
- var tmp2_safe_receiver = type.nu_1;
412
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.oq(tmp2_safe_receiver);
413
- tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
414
- } else {
415
- if (type instanceof String_0) {
416
- var tmp4_safe_receiver = type.hu_1;
417
- var tmp_0;
418
- var tmp_1 = tmp4_safe_receiver;
419
- if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
420
- tmp_0 = null;
421
- } else {
422
- tmp_0 = this.oq(new RegExp_0(tmp4_safe_receiver));
423
- }
424
- var tmp5_elvis_lhs = tmp_0;
425
- tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
426
- } else {
427
- if (equals(type, Boolean_instance)) {
428
- tmp = defaultReturn;
429
- } else {
430
- if (equals(type, Bytes_instance)) {
431
- tmp = defaultReturn;
432
- } else {
433
- noWhenBranchMatchedException();
434
- }
435
- }
436
- }
437
- }
438
- }
439
- return tmp;
440
- }
441
- initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
442
- function emit_11(endpoint) {
407
+ function emit_12(endpoint) {
443
408
  var tmp = importReferences(endpoint);
444
409
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda(this));
445
- var tmp_1 = this.nr(endpoint.up_1);
446
- var tmp_2 = spacer(this.j1x(first(endpoint.zp_1), endpoint), 1);
447
- var tmp_3 = distinctByStatus(endpoint.aq_1);
410
+ var tmp_1 = this.or(endpoint.vp_1);
411
+ var tmp_2 = spacer(this.k1x(first(endpoint.aq_1), endpoint), 1);
412
+ var tmp_3 = distinctByStatus(endpoint.bq_1);
448
413
  return trimMargin('\n |' + tmp_0 + '\n |\n |class ' + tmp_1 + ' (Wirespec.Endpoint):\n |' + tmp_2 + '\n |' + spacer(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_0(this, endpoint)), 1) + '\n |' + spacer(emitResponseUnion(this, endpoint), 1) + '\n |' + spacer(emitHandleClass(this, endpoint), 1) + '\n |' + spacer(emitConvertClass(this, endpoint), 1) + '\n |\n ');
449
414
  }
450
- function emit_12(_this__u8e3s4, endpoint) {
451
- var tmp = emit_18(this, _this__u8e3s4.dq_1);
415
+ function emit_13(_this__u8e3s4, endpoint) {
416
+ var tmp = emit_18(this, _this__u8e3s4.eq_1);
452
417
  var tmp_0 = get_pathParams(endpoint);
453
418
  var tmp_1 = emitObject$default(this, tmp_0, 'Path', 'Wirespec.Request.Path', VOID, PythonEndpointDefinitionEmitter$emit$lambda_1(this));
454
- var tmp_2 = emitObject$default(this, endpoint.xp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
455
- var tmp_3 = emitObject$default(this, endpoint.yp_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
419
+ var tmp_2 = emitObject$default(this, endpoint.yp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
420
+ var tmp_3 = emitObject$default(this, endpoint.zp_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
456
421
  var tmp_4 = Spacer_instance.toString();
457
422
  var tmp_5 = Spacer_instance.toString();
458
- var tmp_6 = emit_18(this, _this__u8e3s4.dq_1);
423
+ var tmp_6 = emit_18(this, _this__u8e3s4.eq_1);
459
424
  var tmp_7 = Spacer_instance.toString();
460
425
  var tmp_8 = Spacer_instance.toString();
461
426
  var tmp_9 = Spacer_instance.toString();
@@ -471,46 +436,81 @@ function emit_12(_this__u8e3s4, endpoint) {
471
436
  var tmp_19 = Spacer_instance.toString();
472
437
  var tmp_20 = Spacer_instance.toString();
473
438
  var tmp_21 = Spacer_instance.toString();
474
- var tmp_22 = emit_18(this, _this__u8e3s4.dq_1);
439
+ var tmp_22 = emit_18(this, _this__u8e3s4.eq_1);
475
440
  var tmp_23 = Spacer_instance.toString();
476
441
  var tmp_24 = Spacer_instance.toString();
477
442
  var tmp_25 = Spacer_instance.toString();
478
443
  var tmp_26 = Spacer_instance.toString();
479
444
  var tmp_27 = Spacer_instance.toString();
480
445
  var tmp_28 = paramList(_this__u8e3s4, endpoint);
481
- return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.vp_1.a3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
446
+ return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.wp_1.a3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
482
447
  }
483
- function emit_13(_this__u8e3s4, endpoint) {
484
- var tmp = emit_18(this, _this__u8e3s4.iq_1);
485
- var tmp_0 = emitObject$default(this, _this__u8e3s4.hq_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
448
+ function emit_14(_this__u8e3s4, endpoint) {
449
+ var tmp = emit_18(this, _this__u8e3s4.jq_1);
450
+ var tmp_0 = emitObject$default(this, _this__u8e3s4.iq_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
486
451
  var tmp_1 = Spacer_instance.toString();
487
452
  var tmp_2 = Spacer_instance.toString();
488
453
  var tmp_3 = Spacer_instance.toString();
489
454
  var tmp_4 = Spacer_instance.toString();
490
455
  var tmp_5 = Spacer_instance.toString();
491
456
  var tmp_6 = Spacer_instance.toString();
492
- var tmp_7 = emit_18(this, _this__u8e3s4.iq_1);
457
+ var tmp_7 = emit_18(this, _this__u8e3s4.jq_1);
493
458
  var tmp_8 = Spacer_instance.toString();
494
459
  var tmp_9 = Spacer_instance.toString();
495
460
  var tmp_10 = Spacer_instance.toString();
496
- var tmp_11 = emit_18(this, _this__u8e3s4.iq_1);
461
+ var tmp_11 = emit_18(this, _this__u8e3s4.jq_1);
497
462
  var tmp_12 = Spacer_instance.toString();
498
463
  var tmp_13 = Spacer_instance.toString();
499
464
  var tmp_14 = Spacer_instance.toString();
500
465
  var tmp_15 = paramList_0(_this__u8e3s4);
501
- return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.gq_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.gq_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
466
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.hq_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.hq_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
502
467
  }
503
468
  initMetadataForInterface(PythonEndpointDefinitionEmitter, 'PythonEndpointDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter]);
504
- function emit_14(enum_0, module_0) {
505
- var tmp = this.w1x(enum_0.xr_1);
506
- return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.yr_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.hs(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.hs(2) + 'return self.value\n ');
469
+ function emit_15(refined) {
470
+ return trimMargin('\n |@dataclass\n |class ' + this.x1x(refined.tr_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.f1z(refined.ur_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.is(2) + 'return ' + this.cs(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.is(2) + 'return str(self.value)\n |\n ');
507
471
  }
508
- initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
509
- function emit_15(union) {
510
- return trimMargin('\n |class ' + this.nr(union.gp_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
472
+ function emitValidator(_this__u8e3s4) {
473
+ var defaultReturn = 'True';
474
+ var type = _this__u8e3s4.ur_1.gv_1;
475
+ var tmp;
476
+ if (type instanceof Integer) {
477
+ var tmp0_safe_receiver = type.lu_1;
478
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.pq(tmp0_safe_receiver);
479
+ tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
480
+ } else {
481
+ if (type instanceof Number_0) {
482
+ var tmp2_safe_receiver = type.ou_1;
483
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.pq(tmp2_safe_receiver);
484
+ tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
485
+ } else {
486
+ if (type instanceof String_0) {
487
+ var tmp4_safe_receiver = type.iu_1;
488
+ var tmp_0;
489
+ var tmp_1 = tmp4_safe_receiver;
490
+ if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
491
+ tmp_0 = null;
492
+ } else {
493
+ tmp_0 = this.pq(new RegExp_0(tmp4_safe_receiver));
494
+ }
495
+ var tmp5_elvis_lhs = tmp_0;
496
+ tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
497
+ } else {
498
+ if (equals(type, Boolean_instance)) {
499
+ tmp = defaultReturn;
500
+ } else {
501
+ if (equals(type, Bytes_instance)) {
502
+ tmp = defaultReturn;
503
+ } else {
504
+ noWhenBranchMatchedException();
505
+ }
506
+ }
507
+ }
508
+ }
509
+ }
510
+ return tmp;
511
511
  }
512
- initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
513
- initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonTypeDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonIdentifierEmitter, PythonChannelDefinitionEmitter, PythonEndpointDefinitionEmitter, PythonEnumDefinitionEmitter, PythonUnionDefinitionEmitter]);
512
+ initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
513
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonEnumDefinitionEmitter, PythonChannelDefinitionEmitter, PythonUnionDefinitionEmitter, PythonIdentifierEmitter, PythonEndpointDefinitionEmitter, PythonTypeDefinitionEmitter, PythonRefinedTypeDefinitionEmitter]);
514
514
  initMetadataForCompanion(Companion);
515
515
  initMetadataForCompanion(Companion_0);
516
516
  initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -520,16 +520,16 @@ initMetadataForObject(PythonShared, 'PythonShared');
520
520
  function PythonChannelDefinitionEmitter() {
521
521
  }
522
522
  function sam$kotlin_Comparator$0(function_0) {
523
- this.s1y_1 = function_0;
523
+ this.t1y_1 = function_0;
524
524
  }
525
525
  protoOf(sam$kotlin_Comparator$0).td = function (a, b) {
526
- return this.s1y_1(a, b);
526
+ return this.t1y_1(a, b);
527
527
  };
528
528
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
529
529
  return this.td(a, b);
530
530
  };
531
531
  protoOf(sam$kotlin_Comparator$0).l3 = function () {
532
- return this.s1y_1;
532
+ return this.t1y_1;
533
533
  };
534
534
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
535
535
  var tmp;
@@ -552,35 +552,35 @@ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
552
552
  function PythonEmitter$emit$lambda(this$0) {
553
553
  return function (a, b) {
554
554
  // Inline function 'kotlin.comparisons.compareValuesBy' call
555
- var tmp = this$0.z1y(a);
556
- var tmp$ret$1 = this$0.z1y(b);
555
+ var tmp = this$0.a1z(a);
556
+ var tmp$ret$1 = this$0.a1z(b);
557
557
  return compareValues(tmp, tmp$ret$1);
558
558
  };
559
559
  }
560
560
  function emit$emitInit(this$0, def) {
561
- return 'from .' + this$0.nr(def.mr()) + ' import ' + this$0.nr(def.mr());
561
+ return 'from .' + this$0.or(def.nr()) + ' import ' + this$0.or(def.nr());
562
562
  }
563
563
  function PythonEmitter(packageName, emitShared) {
564
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
564
+ packageName = packageName === VOID ? Companion_instance.ds('community.flock.wirespec.generated') : packageName;
565
565
  emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
566
566
  LanguageEmitter.call(this);
567
- this.t1y_1 = packageName;
568
- this.u1y_1 = emitShared;
569
- this.v1y_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
570
- this.w1y_1 = FileExtension_Python_getInstance();
571
- this.x1y_1 = PythonShared_instance;
572
- this.y1y_1 = '#';
573
- }
574
- protoOf(PythonEmitter).uq = function () {
575
- return this.w1y_1;
576
- };
577
- protoOf(PythonEmitter).f1x = function () {
567
+ this.u1y_1 = packageName;
568
+ this.v1y_1 = emitShared;
569
+ this.w1y_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
570
+ this.x1y_1 = FileExtension_Python_getInstance();
571
+ this.y1y_1 = PythonShared_instance;
572
+ this.z1y_1 = '#';
573
+ }
574
+ protoOf(PythonEmitter).vq = function () {
578
575
  return this.x1y_1;
579
576
  };
580
- protoOf(PythonEmitter).vq = function () {
577
+ protoOf(PythonEmitter).g1x = function () {
581
578
  return this.y1y_1;
582
579
  };
583
- protoOf(PythonEmitter).z1y = function (definition) {
580
+ protoOf(PythonEmitter).wq = function () {
581
+ return this.z1y_1;
582
+ };
583
+ protoOf(PythonEmitter).a1z = function (definition) {
584
584
  var tmp;
585
585
  if (definition instanceof Enum) {
586
586
  tmp = 1;
@@ -609,9 +609,9 @@ protoOf(PythonEmitter).z1y = function (definition) {
609
609
  }
610
610
  return tmp;
611
611
  };
612
- protoOf(PythonEmitter).kr = function (module_0, logger) {
612
+ protoOf(PythonEmitter).lr = function (module_0, logger) {
613
613
  // Inline function 'kotlin.collections.sortedBy' call
614
- var this_0 = new NonEmptyList(module_0.tq_1);
614
+ var this_0 = new NonEmptyList(module_0.uq_1);
615
615
  // Inline function 'kotlin.comparisons.compareBy' call
616
616
  var tmp = PythonEmitter$emit$lambda(this);
617
617
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
@@ -619,11 +619,11 @@ protoOf(PythonEmitter).kr = function (module_0, logger) {
619
619
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
620
620
  var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).om_1;
621
621
  // Inline function 'kotlin.let' call
622
- var it = protoOf(LanguageEmitter).kr.call(this, module_0.mv(VOID, statements), logger);
623
- var init = new Emitted(this.t1y_1.fs() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
624
- var tmp_1 = this.t1y_1.fs() + 'endpoint/' + '__init__';
622
+ var it = protoOf(LanguageEmitter).lr.call(this, module_0.nv(VOID, statements), logger);
623
+ var init = new Emitted(this.u1y_1.gs() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
624
+ var tmp_1 = this.u1y_1.gs() + 'endpoint/' + '__init__';
625
625
  // Inline function 'kotlin.collections.filter' call
626
- var tmp0 = new NonEmptyList(module_0.tq_1);
626
+ var tmp0 = new NonEmptyList(module_0.uq_1);
627
627
  // Inline function 'kotlin.collections.filterTo' call
628
628
  var destination = ArrayList_init_$Create$();
629
629
  var _iterator__ex2g4s = tmp0.t();
@@ -643,9 +643,9 @@ protoOf(PythonEmitter).kr = function (module_0, logger) {
643
643
  destination_0.x(tmp$ret$5);
644
644
  }
645
645
  var initEndpoint = new Emitted(tmp_1, joinToString(destination_0, '\n'));
646
- var tmp_2 = this.t1y_1.fs() + 'model/' + '__init__';
646
+ var tmp_2 = this.u1y_1.gs() + 'model/' + '__init__';
647
647
  // Inline function 'kotlin.collections.filter' call
648
- var tmp0_0 = new NonEmptyList(module_0.tq_1);
648
+ var tmp0_0 = new NonEmptyList(module_0.uq_1);
649
649
  // Inline function 'kotlin.collections.filterTo' call
650
650
  var destination_1 = ArrayList_init_$Create$();
651
651
  var _iterator__ex2g4s_1 = tmp0_0.t();
@@ -665,33 +665,33 @@ protoOf(PythonEmitter).kr = function (module_0, logger) {
665
665
  destination_2.x(tmp$ret$11);
666
666
  }
667
667
  var initModel = new Emitted(tmp_2, joinToString(destination_2, '\n'));
668
- var shared = new Emitted(this.t1y_1.fs() + 'wirespec', this.f1x().b1z_1);
669
- return this.u1y_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
668
+ var shared = new Emitted(this.u1y_1.gs() + 'wirespec', this.g1x().c1z_1);
669
+ return this.v1y_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
670
670
  };
671
- protoOf(PythonEmitter).lr = function (definition, module_0, logger) {
672
- var subPackageName = plus_1(this.t1y_1, definition);
671
+ protoOf(PythonEmitter).mr = function (definition, module_0, logger) {
672
+ var subPackageName = plus_1(this.u1y_1, definition);
673
673
  // Inline function 'kotlin.let' call
674
- var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
675
- var tmp = subPackageName.fs() + it.yo_1;
674
+ var it = protoOf(LanguageEmitter).mr.call(this, definition, module_0, logger);
675
+ var tmp = subPackageName.gs() + it.yo_1;
676
676
  // Inline function 'kotlin.text.trimStart' call
677
- var this_0 = trimMargin('\n |' + this.v1y_1 + '\n |' + it.zo_1 + '\n ');
677
+ var this_0 = trimMargin('\n |' + this.w1y_1 + '\n |' + it.zo_1 + '\n ');
678
678
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
679
679
  return new Emitted(tmp, tmp$ret$0);
680
680
  };
681
681
  function emitToRawRequest($this, _this__u8e3s4, endpoint) {
682
- var tmp = $this.nr(endpoint.up_1);
682
+ var tmp = $this.or(endpoint.vp_1);
683
683
  var tmp_0 = Spacer_instance.toString();
684
684
  var tmp_1 = Spacer_instance.toString();
685
685
  var tmp_2 = Spacer_instance.toString();
686
- var tmp_3 = joinToString(endpoint.wp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
686
+ var tmp_3 = joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
687
687
  var tmp_4 = Spacer_instance.toString();
688
688
  var tmp_5 = Spacer_instance.toString();
689
689
  var tmp_6 = Spacer_instance.toString();
690
690
  var tmp_7 = Spacer_instance.toString();
691
691
  var tmp_8;
692
692
  // Inline function 'kotlin.collections.isNotEmpty' call
693
- if (!endpoint.xp_1.r()) {
694
- tmp_8 = prependIndent(joinToString(endpoint.xp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.hs(3));
693
+ if (!endpoint.yp_1.r()) {
694
+ tmp_8 = prependIndent(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.is(3));
695
695
  } else {
696
696
  tmp_8 = '';
697
697
  }
@@ -702,8 +702,8 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
702
702
  var tmp_13 = Spacer_instance.toString();
703
703
  var tmp_14;
704
704
  // Inline function 'kotlin.collections.isNotEmpty' call
705
- if (!endpoint.yp_1.r()) {
706
- tmp_14 = prependIndent(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.hs(3));
705
+ if (!endpoint.zp_1.r()) {
706
+ tmp_14 = prependIndent(joinToString(endpoint.zp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.is(3));
707
707
  } else {
708
708
  tmp_14 = '';
709
709
  }
@@ -712,48 +712,48 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
712
712
  var tmp_17 = Spacer_instance.toString();
713
713
  var tmp_18 = Spacer_instance.toString();
714
714
  var tmp_19 = Spacer_instance.toString();
715
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
716
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
717
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.e1z(tmp1_safe_receiver);
715
+ var tmp0_safe_receiver = _this__u8e3s4.eq_1;
716
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gq_1;
717
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.f1z(tmp1_safe_receiver);
718
718
  return trimMargin("\n |@staticmethod\n |def to_raw_request(serialization: Wirespec.Serializer, request: '" + tmp + ".Request') -> Wirespec.RawRequest:\n |" + tmp_0 + 'return Wirespec.RawRequest(\n |' + tmp_1 + tmp_2 + 'path = [' + tmp_3 + '],\n |' + tmp_4 + tmp_5 + 'method = request.method.value,\n |' + tmp_6 + tmp_7 + 'queries = {\n |' + tmp_9 + '\n |' + tmp_10 + tmp_11 + '},\n |' + tmp_12 + tmp_13 + 'headers = {\n |' + tmp_15 + '\n |' + tmp_16 + tmp_17 + '},\n |' + tmp_18 + tmp_19 + 'body = serialization.serialize(request.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),\n |' + Spacer_instance.toString() + ')\n |\n ');
719
719
  }
720
720
  function emitFromRawRequest($this, _this__u8e3s4, endpoint) {
721
- return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.nr(endpoint.up_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.nr(endpoint.up_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
721
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.or(endpoint.vp_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.or(endpoint.vp_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
722
722
  }
723
723
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
724
724
  var tmp = get_indexedPathParams(endpoint);
725
725
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
726
- var tmp_1 = orNull(joinToString(endpoint.xp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
727
- var tmp_2 = orNull(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
728
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
726
+ var tmp_1 = orNull(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
727
+ var tmp_2 = orNull(joinToString(endpoint.zp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
728
+ var tmp0_safe_receiver = _this__u8e3s4.eq_1;
729
729
  var tmp_3;
730
730
  if (tmp0_safe_receiver == null) {
731
731
  tmp_3 = null;
732
732
  } else {
733
733
  // Inline function 'kotlin.let' call
734
- tmp_3 = Spacer_instance.hs(3) + 'body = serialization.deserialize(request.body, ' + $this.e1z(tmp0_safe_receiver.fq_1) + '),';
734
+ tmp_3 = Spacer_instance.is(3) + 'body = serialization.deserialize(request.body, ' + $this.f1z(tmp0_safe_receiver.gq_1) + '),';
735
735
  }
736
736
  // Inline function 'kotlin.let' call
737
737
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
738
738
  return isBlank(it) ? '()' : '(\n' + it + '\n)';
739
739
  }
740
740
  function emitResponseUnion($this, _this__u8e3s4) {
741
- return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.aq_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
741
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.bq_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
742
742
  }
743
743
  function emitHandleClass($this, _this__u8e3s4) {
744
- return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.up_1.l1() + "(self, req: '" + $this.nr(_this__u8e3s4.up_1) + ".Request') -> '" + $this.nr(_this__u8e3s4.up_1) + ".Response': pass\n |\n ");
744
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.vp_1.l1() + "(self, req: '" + $this.or(_this__u8e3s4.vp_1) + ".Request') -> '" + $this.or(_this__u8e3s4.vp_1) + ".Response': pass\n |\n ");
745
745
  }
746
746
  function emitConvertClass($this, _this__u8e3s4) {
747
- return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.zp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.zp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
747
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.aq_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.aq_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
748
748
  }
749
749
  function emit_16($this, _this__u8e3s4) {
750
- return $this.nr(_this__u8e3s4.zq_1) + ': ' + $this.nq(_this__u8e3s4.ar_1);
750
+ return $this.or(_this__u8e3s4.ar_1) + ': ' + $this.oq(_this__u8e3s4.br_1);
751
751
  }
752
752
  function emitAssignSelf($this, _this__u8e3s4) {
753
- return $this.nr(_this__u8e3s4.zq_1) + ' = ' + $this.nr(_this__u8e3s4.zq_1);
753
+ return $this.or(_this__u8e3s4.ar_1) + ' = ' + $this.or(_this__u8e3s4.ar_1);
754
754
  }
755
755
  function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
756
- var tmp = $this.nr(endpoint.up_1);
756
+ var tmp = $this.or(endpoint.vp_1);
757
757
  // Inline function 'kotlin.collections.filter' call
758
758
  var tmp0 = paramList(_this__u8e3s4, endpoint);
759
759
  // Inline function 'kotlin.collections.filterTo' call
@@ -761,13 +761,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
761
761
  var _iterator__ex2g4s = tmp0.t();
762
762
  while (_iterator__ex2g4s.u()) {
763
763
  var element = _iterator__ex2g4s.v();
764
- if (element.yq_1.equals(ParamType_PATH_getInstance())) {
764
+ if (element.zq_1.equals(ParamType_PATH_getInstance())) {
765
765
  destination.x(element);
766
766
  }
767
767
  }
768
768
  var tmp_0 = destination;
769
769
  var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda($this));
770
- var tmp_2 = $this.nr(endpoint.up_1);
770
+ var tmp_2 = $this.or(endpoint.vp_1);
771
771
  // Inline function 'kotlin.collections.filter' call
772
772
  var tmp0_0 = paramList(_this__u8e3s4, endpoint);
773
773
  // Inline function 'kotlin.collections.filterTo' call
@@ -775,13 +775,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
775
775
  var _iterator__ex2g4s_0 = tmp0_0.t();
776
776
  while (_iterator__ex2g4s_0.u()) {
777
777
  var element_0 = _iterator__ex2g4s_0.v();
778
- if (element_0.yq_1.equals(ParamType_QUERY_getInstance())) {
778
+ if (element_0.zq_1.equals(ParamType_QUERY_getInstance())) {
779
779
  destination_0.x(element_0);
780
780
  }
781
781
  }
782
782
  var tmp_3 = destination_0;
783
783
  var tmp_4 = spacer(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_0($this)), 1);
784
- var tmp_5 = $this.nr(endpoint.up_1);
784
+ var tmp_5 = $this.or(endpoint.vp_1);
785
785
  // Inline function 'kotlin.collections.filter' call
786
786
  var tmp0_1 = paramList(_this__u8e3s4, endpoint);
787
787
  // Inline function 'kotlin.collections.filterTo' call
@@ -789,14 +789,14 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
789
789
  var _iterator__ex2g4s_1 = tmp0_1.t();
790
790
  while (_iterator__ex2g4s_1.u()) {
791
791
  var element_1 = _iterator__ex2g4s_1.v();
792
- if (element_1.yq_1.equals(ParamType_HEADER_getInstance())) {
792
+ if (element_1.zq_1.equals(ParamType_HEADER_getInstance())) {
793
793
  destination_1.x(element_1);
794
794
  }
795
795
  }
796
796
  var tmp_6 = destination_1;
797
797
  var tmp_7 = spacer(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_1($this)), 1);
798
798
  var tmp_8;
799
- if (_this__u8e3s4.dq_1 == null) {
799
+ if (_this__u8e3s4.eq_1 == null) {
800
800
  tmp_8 = null;
801
801
  } else {
802
802
  // Inline function 'kotlin.let' call
@@ -806,7 +806,7 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
806
806
  return trimMargin('\n |self._path = ' + tmp + '.Request.Path(' + tmp_1 + ')\n |self._queries =' + tmp_2 + '.Request.Queries(' + tmp_4 + ')\n |self._headers = ' + tmp_5 + '.Request.Headers(' + tmp_7 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
807
807
  }
808
808
  function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
809
- var tmp = $this.nr(endpoint.up_1);
809
+ var tmp = $this.or(endpoint.vp_1);
810
810
  // Inline function 'kotlin.collections.filter' call
811
811
  var tmp0 = paramList_0(_this__u8e3s4);
812
812
  // Inline function 'kotlin.collections.filterTo' call
@@ -814,35 +814,35 @@ function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
814
814
  var _iterator__ex2g4s = tmp0.t();
815
815
  while (_iterator__ex2g4s.u()) {
816
816
  var element = _iterator__ex2g4s.v();
817
- if (element.yq_1.equals(ParamType_HEADER_getInstance())) {
817
+ if (element.zq_1.equals(ParamType_HEADER_getInstance())) {
818
818
  destination.x(element);
819
819
  }
820
820
  }
821
821
  var tmp_0 = destination;
822
822
  var tmp_1 = spacer(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2($this)), 1);
823
823
  var tmp_2;
824
- if (_this__u8e3s4.iq_1 == null) {
824
+ if (_this__u8e3s4.jq_1 == null) {
825
825
  tmp_2 = null;
826
826
  } else {
827
827
  // Inline function 'kotlin.let' call
828
828
  tmp_2 = 'body';
829
829
  }
830
830
  var tmp1_elvis_lhs = tmp_2;
831
- return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.gq_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
831
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.hq_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
832
832
  }
833
833
  function emitDeserialized($this, _this__u8e3s4) {
834
- return Spacer_instance.hs(3) + $this.nr(_this__u8e3s4.ue_1.bq_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.te_1 + '], ' + $this.e1z(_this__u8e3s4.ue_1.cq_1) + ')';
834
+ return Spacer_instance.is(3) + $this.or(_this__u8e3s4.ue_1.cq_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.te_1 + '], ' + $this.f1z(_this__u8e3s4.ue_1.dq_1) + ')';
835
835
  }
836
836
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
837
837
  var tmp;
838
838
  if (caseSensitive) {
839
- tmp = Spacer_instance.hs(spaces) + $this.nr(_this__u8e3s4.qp_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.qp_1.l1() + '"), ' + $this.e1z(_this__u8e3s4.rp_1) + ')';
839
+ tmp = Spacer_instance.is(spaces) + $this.or(_this__u8e3s4.rp_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.rp_1.l1() + '"), ' + $this.f1z(_this__u8e3s4.sp_1) + ')';
840
840
  } else {
841
- var tmp_0 = Spacer_instance.hs(spaces);
842
- var tmp_1 = $this.nr(_this__u8e3s4.qp_1);
841
+ var tmp_0 = Spacer_instance.is(spaces);
842
+ var tmp_1 = $this.or(_this__u8e3s4.rp_1);
843
843
  // Inline function 'kotlin.text.lowercase' call
844
844
  // Inline function 'kotlin.js.asDynamic' call
845
- tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.qp_1.l1().toLowerCase() + '"), None), ' + $this.e1z(_this__u8e3s4.rp_1) + ')';
845
+ tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.rp_1.l1().toLowerCase() + '"), None), ' + $this.f1z(_this__u8e3s4.sp_1) + ')';
846
846
  }
847
847
  return tmp;
848
848
  }
@@ -852,73 +852,73 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
852
852
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
853
853
  }
854
854
  function emitToRawResponse($this, _this__u8e3s4) {
855
- var tmp = $this.nr(_this__u8e3s4.up_1);
855
+ var tmp = $this.or(_this__u8e3s4.vp_1);
856
856
  var tmp_0 = Spacer_instance.toString();
857
- var tmp_1 = distinctByStatus(_this__u8e3s4.aq_1);
857
+ var tmp_1 = distinctByStatus(_this__u8e3s4.bq_1);
858
858
  return trimMargin("\n |@staticmethod\n |def to_raw_response(serialization: Wirespec.Serializer, response: '" + tmp + ".Response') -> Wirespec.RawResponse:\n |" + tmp_0 + 'match response:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.toString() + Spacer_instance.toString() + 'case _:\n |' + Spacer_instance.toString() + Spacer_instance.toString() + Spacer_instance.toString() + 'raise Exception("Cannot match response with status: " + str(response.status))\n ');
859
859
  }
860
860
  function emitFromRawResponse($this, _this__u8e3s4) {
861
- var tmp = $this.nr(_this__u8e3s4.up_1);
861
+ var tmp = $this.or(_this__u8e3s4.vp_1);
862
862
  var tmp_0 = Spacer_instance.toString();
863
863
  // Inline function 'kotlin.collections.filter' call
864
- var tmp0 = distinctByStatus(_this__u8e3s4.aq_1);
864
+ var tmp0 = distinctByStatus(_this__u8e3s4.bq_1);
865
865
  // Inline function 'kotlin.collections.filterTo' call
866
866
  var destination = ArrayList_init_$Create$();
867
867
  var _iterator__ex2g4s = tmp0.t();
868
868
  while (_iterator__ex2g4s.u()) {
869
869
  var element = _iterator__ex2g4s.v();
870
- if (Companion_instance_1.ir(element.gq_1)) {
870
+ if (Companion_instance_1.jr(element.hq_1)) {
871
871
  destination.x(element);
872
872
  }
873
873
  }
874
874
  var tmp_1 = destination;
875
- return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.hs(2) + 'case _:\n |' + Spacer_instance.hs(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
875
+ return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.is(2) + 'case _:\n |' + Spacer_instance.is(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
876
876
  }
877
877
  function emitDeserialized_0($this, _this__u8e3s4, endpoint) {
878
- var tmp = 'case ' + _this__u8e3s4.gq_1 + ':';
879
- var tmp_0 = Spacer_instance.toString() + 'return ' + $this.nr(endpoint.up_1) + '.Response' + _this__u8e3s4.gq_1 + '(';
880
- var tmp_1 = Spacer_instance.hs(2);
881
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
882
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
883
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.e1z(tmp1_safe_receiver);
878
+ var tmp = 'case ' + _this__u8e3s4.hq_1 + ':';
879
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.or(endpoint.vp_1) + '.Response' + _this__u8e3s4.hq_1 + '(';
880
+ var tmp_1 = Spacer_instance.is(2);
881
+ var tmp0_safe_receiver = _this__u8e3s4.jq_1;
882
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gq_1;
883
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.f1z(tmp1_safe_receiver);
884
884
  var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
885
- return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.hq_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
885
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.iq_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
886
886
  }
887
887
  function emitSerialized($this, _this__u8e3s4, endpoint) {
888
- var tmp = $this.nr(endpoint.up_1);
889
- var tmp_0 = Spacer_instance.hs(1);
890
- var tmp_1 = Spacer_instance.hs(2);
891
- var tmp_2 = Spacer_instance.hs(2);
888
+ var tmp = $this.or(endpoint.vp_1);
889
+ var tmp_0 = Spacer_instance.is(1);
890
+ var tmp_1 = Spacer_instance.is(2);
891
+ var tmp_2 = Spacer_instance.is(2);
892
892
  var tmp_3;
893
893
  // Inline function 'kotlin.collections.isNotEmpty' call
894
- if (!_this__u8e3s4.hq_1.r()) {
895
- tmp_3 = joinToString(_this__u8e3s4.hq_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
894
+ if (!_this__u8e3s4.iq_1.r()) {
895
+ tmp_3 = joinToString(_this__u8e3s4.iq_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
896
896
  } else {
897
897
  tmp_3 = '{}';
898
898
  }
899
899
  var tmp_4 = tmp_3;
900
- var tmp_5 = Spacer_instance.hs(2);
901
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
900
+ var tmp_5 = Spacer_instance.is(2);
901
+ var tmp0_safe_receiver = _this__u8e3s4.jq_1;
902
902
  var tmp_6;
903
903
  if (tmp0_safe_receiver == null) {
904
904
  tmp_6 = null;
905
905
  } else {
906
906
  // Inline function 'kotlin.let' call
907
- tmp_6 = 'serialization.serialize(response.body, ' + $this.e1z(tmp0_safe_receiver.fq_1) + ')';
907
+ tmp_6 = 'serialization.serialize(response.body, ' + $this.f1z(tmp0_safe_receiver.gq_1) + ')';
908
908
  }
909
909
  var tmp1_elvis_lhs = tmp_6;
910
- return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.gq_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.hs(1) + ')\n ');
910
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.hq_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.is(1) + ')\n ');
911
911
  }
912
912
  function emitSerializedParams($this, _this__u8e3s4, type, fields) {
913
- return '"' + _this__u8e3s4.qp_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.nr(_this__u8e3s4.qp_1) + ', ' + $this.e1z(_this__u8e3s4.rp_1) + ')';
913
+ return '"' + _this__u8e3s4.rp_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.or(_this__u8e3s4.rp_1) + ', ' + $this.f1z(_this__u8e3s4.sp_1) + ')';
914
914
  }
915
915
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
916
916
  var tmp;
917
917
  if (_this__u8e3s4.r()) {
918
- tmp = trimMargin('\n |' + Spacer_instance.hs(spaces) + '@dataclass\n |' + Spacer_instance.hs(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
918
+ tmp = trimMargin('\n |' + Spacer_instance.is(spaces) + '@dataclass\n |' + Spacer_instance.is(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
919
919
  } else {
920
- var tmp_0 = Spacer_instance.hs(spaces);
921
- var tmp_1 = Spacer_instance.hs(spaces);
920
+ var tmp_0 = Spacer_instance.is(spaces);
921
+ var tmp_1 = Spacer_instance.is(spaces);
922
922
  tmp = trimMargin('\n |' + tmp_0 + '@dataclass\n |' + tmp_1 + 'class ' + name + ' (' + extends_0 + '):\n |' + joinToString(_this__u8e3s4, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + '\n ');
923
923
  }
924
924
  return tmp;
@@ -928,21 +928,21 @@ function emitObject$default($this, _this__u8e3s4, name, extends_0, spaces, block
928
928
  return emitObject($this, _this__u8e3s4, name, extends_0, spaces, block);
929
929
  }
930
930
  function emit_17($this, _this__u8e3s4) {
931
- return $this.nr(_this__u8e3s4.bq_1) + ': ' + $this.nq(_this__u8e3s4.cq_1);
931
+ return $this.or(_this__u8e3s4.cq_1) + ': ' + $this.oq(_this__u8e3s4.dq_1);
932
932
  }
933
933
  function emit_18($this, _this__u8e3s4) {
934
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fq_1;
935
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
934
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.gq_1;
935
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.oq(tmp1_safe_receiver);
936
936
  return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
937
937
  }
938
938
  function PythonEndpointDefinitionEmitter$emit$lambda(this$0) {
939
939
  return function (it) {
940
- return this$0.f1z(it);
940
+ return this$0.g1z(it);
941
941
  };
942
942
  }
943
943
  function PythonEndpointDefinitionEmitter$emit$lambda_0(this$0, $endpoint) {
944
944
  return function (it) {
945
- return this$0.d1z(it, $endpoint);
945
+ return this$0.e1z(it, $endpoint);
946
946
  };
947
947
  }
948
948
  function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
@@ -952,12 +952,12 @@ function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
952
952
  }
953
953
  function PythonEndpointDefinitionEmitter$emit$lambda_2(this$0) {
954
954
  return function (it) {
955
- return this$0.mq(it);
955
+ return this$0.nq(it);
956
956
  };
957
957
  }
958
958
  function PythonEndpointDefinitionEmitter$emit$lambda_3(this$0) {
959
959
  return function (it) {
960
- return this$0.mq(it);
960
+ return this$0.nq(it);
961
961
  };
962
962
  }
963
963
  function PythonEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -969,10 +969,10 @@ function PythonEndpointDefinitionEmitter$emitToRawRequest$lambda(this$0) {
969
969
  return function (it) {
970
970
  var tmp;
971
971
  if (it instanceof Literal) {
972
- tmp = '"' + it.xq_1 + '"';
972
+ tmp = '"' + it.yq_1 + '"';
973
973
  } else {
974
974
  if (it instanceof Param) {
975
- tmp = 'str(request.path.' + this$0.nr(it.bq_1) + ')';
975
+ tmp = 'str(request.path.' + this$0.or(it.cq_1) + ')';
976
976
  } else {
977
977
  noWhenBranchMatchedException();
978
978
  }
@@ -1006,7 +1006,7 @@ function PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0)
1006
1006
  };
1007
1007
  }
1008
1008
  function PythonEndpointDefinitionEmitter$emitResponseUnion$lambda(it) {
1009
- return 'Response' + it.gq_1;
1009
+ return 'Response' + it.hq_1;
1010
1010
  }
1011
1011
  function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda(this$0) {
1012
1012
  return function (it) {
@@ -1030,7 +1030,7 @@ function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2(this$0) {
1030
1030
  }
1031
1031
  function PythonEndpointDefinitionEmitter$emit$lambda_5(this$0) {
1032
1032
  return function (it) {
1033
- return this$0.mq(it);
1033
+ return this$0.nq(it);
1034
1034
  };
1035
1035
  }
1036
1036
  function PythonEndpointDefinitionEmitter$emit$lambda_6(this$0) {
@@ -1060,7 +1060,7 @@ function PythonEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
1060
1060
  }
1061
1061
  function PythonEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
1062
1062
  return function (it) {
1063
- return Spacer_instance.hs($spaces + 2 | 0) + $block(it);
1063
+ return Spacer_instance.is($spaces + 2 | 0) + $block(it);
1064
1064
  };
1065
1065
  }
1066
1066
  function PythonEndpointDefinitionEmitter() {
@@ -1089,14 +1089,14 @@ function sanitizeEnum($this, _this__u8e3s4) {
1089
1089
  }
1090
1090
  function PythonEnumDefinitionEmitter$emit$lambda(this$0) {
1091
1091
  return function (it) {
1092
- return Spacer_instance.toString() + this$0.m1x(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1092
+ return Spacer_instance.toString() + this$0.n1x(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1093
1093
  };
1094
1094
  }
1095
1095
  function PythonEnumDefinitionEmitter() {
1096
1096
  }
1097
1097
  function Companion() {
1098
1098
  Companion_instance_2 = this;
1099
- this.g1z_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1099
+ this.h1z_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1100
1100
  }
1101
1101
  var Companion_instance_2;
1102
1102
  function Companion_getInstance_0() {
@@ -1107,7 +1107,7 @@ function Companion_getInstance_0() {
1107
1107
  function PythonIdentifierEmitter() {
1108
1108
  }
1109
1109
  function _get_sanitizationConfig__sns434($this) {
1110
- var tmp0 = $this.l1z_1;
1110
+ var tmp0 = $this.m1z_1;
1111
1111
  var tmp = KProperty1;
1112
1112
  // Inline function 'kotlin.getValue' call
1113
1113
  getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai(), null);
@@ -1124,7 +1124,7 @@ function sanitize_0($this, _this__u8e3s4) {
1124
1124
  var item = _iterator__ex2g4s.v();
1125
1125
  var _unary__edvuaz = index;
1126
1126
  index = _unary__edvuaz + 1 | 0;
1127
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
1127
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.fr(item) : item;
1128
1128
  destination.x(tmp$ret$0);
1129
1129
  }
1130
1130
  // Inline function 'kotlin.text.filter' call
@@ -1170,7 +1170,7 @@ function sanitize_0($this, _this__u8e3s4) {
1170
1170
  return tmp_2;
1171
1171
  }
1172
1172
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1173
- return Companion_getInstance_1().n1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1173
+ return Companion_getInstance_1().o1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1174
1174
  }
1175
1175
  function sanitizeEnum_0($this, _this__u8e3s4) {
1176
1176
  // Inline function 'kotlin.let' call
@@ -1196,7 +1196,7 @@ function buildImports($this, wirespecPath) {
1196
1196
  }
1197
1197
  function Companion_0() {
1198
1198
  Companion_instance_3 = this;
1199
- this.n1z_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1199
+ this.o1z_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1200
1200
  }
1201
1201
  var Companion_instance_3;
1202
1202
  function Companion_getInstance_1() {
@@ -1205,16 +1205,16 @@ function Companion_getInstance_1() {
1205
1205
  return Companion_instance_3;
1206
1206
  }
1207
1207
  function sam$kotlin_Comparator$0_0(function_0) {
1208
- this.o1z_1 = function_0;
1208
+ this.p1z_1 = function_0;
1209
1209
  }
1210
1210
  protoOf(sam$kotlin_Comparator$0_0).td = function (a, b) {
1211
- return this.o1z_1(a, b);
1211
+ return this.p1z_1(a, b);
1212
1212
  };
1213
1213
  protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
1214
1214
  return this.td(a, b);
1215
1215
  };
1216
1216
  protoOf(sam$kotlin_Comparator$0_0).l3 = function () {
1217
- return this.o1z_1;
1217
+ return this.p1z_1;
1218
1218
  };
1219
1219
  protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1220
1220
  var tmp;
@@ -1238,11 +1238,11 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1238
1238
  return '_' + it;
1239
1239
  }
1240
1240
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1241
- var sanitized = name.p1h_1.a1() > 1 ? name.t1m() : name.n1j();
1241
+ var sanitized = name.q1h_1.a1() > 1 ? name.u1m() : name.o1j();
1242
1242
  return new Name(listOf_0(sanitized));
1243
1243
  }
1244
1244
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1245
- return new Name(listOf_0(name.t1m()));
1245
+ return new Name(listOf_0(name.u1m()));
1246
1246
  }
1247
1247
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
1248
1248
  return it;
@@ -1251,9 +1251,9 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1251
1251
  return function (stmt, tr) {
1252
1252
  var tmp;
1253
1253
  if (stmt instanceof ConstructorStatement) {
1254
- var tmp_0 = tr.a1v(stmt.v1n_1);
1254
+ var tmp_0 = tr.b1v(stmt.w1n_1);
1255
1255
  // Inline function 'kotlin.collections.map' call
1256
- var this_0 = stmt.w1n_1;
1256
+ var this_0 = stmt.x1n_1;
1257
1257
  // Inline function 'kotlin.collections.mapTo' call
1258
1258
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1259
1259
  // Inline function 'kotlin.collections.iterator' call
@@ -1264,7 +1264,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1264
1264
  var k = item.k1();
1265
1265
  // Inline function 'kotlin.collections.component2' call
1266
1266
  var v = item.l1();
1267
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.d1v(v));
1267
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.e1v(v));
1268
1268
  destination.x(tmp$ret$3);
1269
1269
  }
1270
1270
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -1276,7 +1276,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1276
1276
  }
1277
1277
  function PythonIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1278
1278
  return function () {
1279
- var tmp = Companion_getInstance_1().n1z_1;
1279
+ var tmp = Companion_getInstance_1().o1z_1;
1280
1280
  var tmp_0 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1281
1281
  var tmp_1 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1282
1282
  var tmp_2 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1296,7 +1296,7 @@ function PythonIrEmitter$emit$lambda(a, b) {
1296
1296
  return compareValues(tmp, tmp$ret$1);
1297
1297
  }
1298
1298
  function emit$emitInitImport(this$0, def) {
1299
- return import_0('.' + sanitize_0(this$0, def.mr()), sanitize_0(this$0, def.mr()));
1299
+ return import_0('.' + sanitize_0(this$0, def.nr()), sanitize_0(this$0, def.nr()));
1300
1300
  }
1301
1301
  function PythonIrEmitter$emitGenerator$lambda(it) {
1302
1302
  return startsWith(it, 'Wirespec.') || it === 'Wirespec';
@@ -1315,17 +1315,17 @@ function PythonIrEmitter$emitGenerator$lambda_2($generatorOwnName, $generatorRef
1315
1315
  var tmp_0;
1316
1316
  var tmp_1;
1317
1317
  if (expr instanceof RawExpression) {
1318
- tmp_1 = endsWith(expr.p1p_1, 'Generator');
1318
+ tmp_1 = endsWith(expr.q1p_1, 'Generator');
1319
1319
  } else {
1320
1320
  tmp_1 = false;
1321
1321
  }
1322
1322
  if (tmp_1) {
1323
- tmp_0 = !(expr.p1p_1 === $generatorOwnName);
1323
+ tmp_0 = !(expr.q1p_1 === $generatorOwnName);
1324
1324
  } else {
1325
1325
  tmp_0 = false;
1326
1326
  }
1327
1327
  if (tmp_0) {
1328
- $generatorRefs.x(expr.p1p_1);
1328
+ $generatorRefs.x(expr.q1p_1);
1329
1329
  tmp = Unit_instance;
1330
1330
  }
1331
1331
  return transformChildren_0(expr, t);
@@ -1338,43 +1338,43 @@ function PythonIrEmitter$emit$lambda_0(this$0) {
1338
1338
  }
1339
1339
  function PythonIrEmitter(packageName, emitShared) {
1340
1340
  Companion_getInstance_1();
1341
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
1341
+ packageName = packageName === VOID ? Companion_instance.ds('community.flock.wirespec.generated') : packageName;
1342
1342
  emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
1343
- this.h1z_1 = packageName;
1344
- this.i1z_1 = emitShared;
1345
- this.j1z_1 = PythonGenerator_instance;
1346
- this.k1z_1 = FileExtension_Python_getInstance();
1343
+ this.i1z_1 = packageName;
1344
+ this.j1z_1 = emitShared;
1345
+ this.k1z_1 = PythonGenerator_instance;
1346
+ this.l1z_1 = FileExtension_Python_getInstance();
1347
1347
  var tmp = this;
1348
- tmp.l1z_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1349
- this.m1z_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1348
+ tmp.m1z_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1349
+ this.n1z_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1350
1350
  }
1351
- protoOf(PythonIrEmitter).v1v = function () {
1352
- return this.j1z_1;
1353
- };
1354
- protoOf(PythonIrEmitter).uq = function () {
1351
+ protoOf(PythonIrEmitter).w1v = function () {
1355
1352
  return this.k1z_1;
1356
1353
  };
1357
- protoOf(PythonIrEmitter).z1v = function () {
1358
- var source = replaceReflectInNonGenericStructFields(convert(Companion_instance.cs('shared')));
1354
+ protoOf(PythonIrEmitter).vq = function () {
1355
+ return this.l1z_1;
1356
+ };
1357
+ protoOf(PythonIrEmitter).a1w = function () {
1358
+ var source = replaceReflectInNonGenericStructFields(convert(Companion_instance.ds('shared')));
1359
1359
  var tmp;
1360
- if (this.i1z_1.xo_1) {
1361
- tmp = new File(Companion_getInstance().r1h(this.h1z_1.fs() + 'wirespec'), listOf_0(raw(this.m1z_1 + PythonGenerator_instance.w1v(source))));
1360
+ if (this.j1z_1.xo_1) {
1361
+ tmp = new File(Companion_getInstance().s1h(this.i1z_1.gs() + 'wirespec'), listOf_0(raw(this.n1z_1 + PythonGenerator_instance.x1v(source))));
1362
1362
  } else {
1363
1363
  tmp = null;
1364
1364
  }
1365
1365
  return tmp;
1366
1366
  };
1367
- protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1367
+ protoOf(PythonIrEmitter).z1v = function (module_0, logger) {
1368
1368
  // Inline function 'kotlin.collections.sortedBy' call
1369
- var this_0 = new NonEmptyList(module_0.tq_1);
1369
+ var this_0 = new NonEmptyList(module_0.uq_1);
1370
1370
  // Inline function 'kotlin.comparisons.compareBy' call
1371
1371
  var tmp = PythonIrEmitter$emit$lambda;
1372
1372
  var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp);
1373
1373
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1374
1374
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1375
1375
  var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).om_1;
1376
- var emitted = emit.call(this, module_0.mv(VOID, statements), logger);
1377
- var tmp0 = new NonEmptyList(module_0.tq_1);
1376
+ var emitted = emit.call(this, module_0.nv(VOID, statements), logger);
1377
+ var tmp0 = new NonEmptyList(module_0.uq_1);
1378
1378
  var tmp$ret$2;
1379
1379
  $l$block_0: {
1380
1380
  // Inline function 'kotlin.collections.any' call
@@ -1399,7 +1399,7 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1399
1399
  tmp$ret$2 = false;
1400
1400
  }
1401
1401
  var hasEndpoints = tmp$ret$2;
1402
- var tmp_2 = Companion_getInstance().r1h(this.h1z_1.fs() + '__init__');
1402
+ var tmp_2 = Companion_getInstance().s1h(this.i1z_1.gs() + '__init__');
1403
1403
  // Inline function 'kotlin.collections.buildList' call
1404
1404
  // Inline function 'kotlin.collections.buildListInternal' call
1405
1405
  // Inline function 'kotlin.apply' call
@@ -1412,9 +1412,9 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1412
1412
  this_1.x(import_0('.', 'wirespec'));
1413
1413
  var tmp$ret$7 = this_1.o5();
1414
1414
  var init = new File(tmp_2, tmp$ret$7);
1415
- var tmp_3 = Companion_getInstance().r1h(this.h1z_1.fs() + 'endpoint/' + '__init__');
1415
+ var tmp_3 = Companion_getInstance().s1h(this.i1z_1.gs() + 'endpoint/' + '__init__');
1416
1416
  // Inline function 'kotlin.collections.filterIsInstance' call
1417
- var tmp0_0 = new NonEmptyList(module_0.tq_1);
1417
+ var tmp0_0 = new NonEmptyList(module_0.uq_1);
1418
1418
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1419
1419
  var destination = ArrayList_init_$Create$();
1420
1420
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1434,9 +1434,9 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1434
1434
  destination_0.x(tmp$ret$10);
1435
1435
  }
1436
1436
  var initEndpoint = new File(tmp_3, destination_0);
1437
- var tmp_4 = Companion_getInstance().r1h(this.h1z_1.fs() + 'model/' + '__init__');
1437
+ var tmp_4 = Companion_getInstance().s1h(this.i1z_1.gs() + 'model/' + '__init__');
1438
1438
  // Inline function 'kotlin.collections.filterIsInstance' call
1439
- var tmp0_1 = new NonEmptyList(module_0.tq_1);
1439
+ var tmp0_1 = new NonEmptyList(module_0.uq_1);
1440
1440
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1441
1441
  var destination_1 = ArrayList_init_$Create$();
1442
1442
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -1456,8 +1456,8 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1456
1456
  destination_2.x(tmp$ret$15);
1457
1457
  }
1458
1458
  var initModel = new File(tmp_4, destination_2);
1459
- var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().r1h(this.h1z_1.fs() + 'client/' + '__init__'), emptyList())) : emptyList();
1460
- var tmp0_2 = dropLast(split(this.h1z_1.ds_1, ['.']), 1);
1459
+ var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().s1h(this.i1z_1.gs() + 'client/' + '__init__'), emptyList())) : emptyList();
1460
+ var tmp0_2 = dropLast(split(this.i1z_1.es_1, ['.']), 1);
1461
1461
  var tmp$ret$18;
1462
1462
  $l$block_1: {
1463
1463
  // Inline function 'kotlin.collections.runningFold' call
@@ -1494,17 +1494,17 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1494
1494
  var _iterator__ex2g4s_5 = this_3.t();
1495
1495
  while (_iterator__ex2g4s_5.u()) {
1496
1496
  var item_1 = _iterator__ex2g4s_5.v();
1497
- var tmp$ret$23 = new File(Companion_getInstance().r1h(item_1 + '/__init__'), emptyList());
1497
+ var tmp$ret$23 = new File(Companion_getInstance().s1h(item_1 + '/__init__'), emptyList());
1498
1498
  destination_3.x(tmp$ret$23);
1499
1499
  }
1500
1500
  var parentInits = destination_3;
1501
- return this.i1z_1.xo_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
1501
+ return this.j1z_1.xo_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
1502
1502
  };
1503
- protoOf(PythonIrEmitter).lr = function (definition, module_0, logger) {
1503
+ protoOf(PythonIrEmitter).mr = function (definition, module_0, logger) {
1504
1504
  var file = emit_0.call(this, definition, module_0, logger);
1505
- return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.h1z_1, definition);
1505
+ return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.i1z_1, definition);
1506
1506
  };
1507
- protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1507
+ protoOf(PythonIrEmitter).f1w = function (definition, module_0) {
1508
1508
  var tmp;
1509
1509
  if (definition instanceof Type) {
1510
1510
  tmp = convertToGenerator_2(definition, module_0);
@@ -1525,7 +1525,7 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1525
1525
  }
1526
1526
  var generatorFile = tmp;
1527
1527
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
1528
- var generatorOwnName = definition.mr().l1() + 'Generator';
1528
+ var generatorOwnName = definition.nr().l1() + 'Generator';
1529
1529
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
1530
1530
  var tmp_1 = filterNot(tmp_0, PythonIrEmitter$emitGenerator$lambda);
1531
1531
  var tmp_2 = filterNot(tmp_1, PythonIrEmitter$emitGenerator$lambda_0(generatorOwnName));
@@ -1534,8 +1534,8 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1534
1534
  var generatorRefs = LinkedHashSet_init_$Create$();
1535
1535
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1536
1536
  var scope = new TransformScope(sanitized);
1537
- scope.q1v(PythonIrEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
1538
- var tmp_3 = scope.i1v_1;
1537
+ scope.r1v(PythonIrEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
1538
+ var tmp_3 = scope.j1v_1;
1539
1539
  isInterface(tmp_3, Element) || THROW_CCE();
1540
1540
  // Inline function 'kotlin.collections.filter' call
1541
1541
  // Inline function 'kotlin.collections.filterTo' call
@@ -1578,9 +1578,9 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1578
1578
  destination_2.x(tmp$ret$12);
1579
1579
  }
1580
1580
  var modelImports = destination_2;
1581
- return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.h1z_1, 'generator');
1581
+ return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.i1z_1, 'generator');
1582
1582
  };
1583
- protoOf(PythonIrEmitter).kq = function (type, module_0) {
1583
+ protoOf(PythonIrEmitter).lq = function (type, module_0) {
1584
1584
  // Inline function 'kotlin.collections.distinctBy' call
1585
1585
  var this_0 = importReferences(type);
1586
1586
  var set = HashSet_init_$Create$();
@@ -1588,7 +1588,7 @@ protoOf(PythonIrEmitter).kq = function (type, module_0) {
1588
1588
  var _iterator__ex2g4s = this_0.t();
1589
1589
  while (_iterator__ex2g4s.u()) {
1590
1590
  var e = _iterator__ex2g4s.v();
1591
- var key = e.bv_1;
1591
+ var key = e.cv_1;
1592
1592
  if (set.x(key)) {
1593
1593
  list.x(e);
1594
1594
  }
@@ -1599,18 +1599,18 @@ protoOf(PythonIrEmitter).kq = function (type, module_0) {
1599
1599
  var _iterator__ex2g4s_0 = list.t();
1600
1600
  while (_iterator__ex2g4s_0.u()) {
1601
1601
  var item = _iterator__ex2g4s_0.v();
1602
- var tmp$ret$2 = import_0('.' + item.bv_1, item.bv_1);
1602
+ var tmp$ret$2 = import_0('.' + item.cv_1, item.cv_1);
1603
1603
  destination.x(tmp$ret$2);
1604
1604
  }
1605
1605
  var typeImports = destination;
1606
1606
  // Inline function 'kotlin.collections.map' call
1607
- var this_1 = type.mp_1.ip_1;
1607
+ var this_1 = type.np_1.jp_1;
1608
1608
  // Inline function 'kotlin.collections.mapTo' call
1609
1609
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1610
1610
  var _iterator__ex2g4s_1 = this_1.t();
1611
1611
  while (_iterator__ex2g4s_1.u()) {
1612
1612
  var item_0 = _iterator__ex2g4s_1.v();
1613
- var tmp$ret$5 = item_0.qp_1.l1();
1613
+ var tmp$ret$5 = item_0.rp_1.l1();
1614
1614
  destination_0.x(tmp$ret$5);
1615
1615
  }
1616
1616
  var fieldNames = toSet(destination_0);
@@ -1626,17 +1626,17 @@ protoOf(PythonIrEmitter).kq = function (type, module_0) {
1626
1626
  var tmp$ret$10 = tmp_0;
1627
1627
  return prependImports(tmp, tmp$ret$10);
1628
1628
  };
1629
- protoOf(PythonIrEmitter).zr = function (enum_0, module_0) {
1629
+ protoOf(PythonIrEmitter).as = function (enum_0, module_0) {
1630
1630
  var tmp = convert_0(enum_0);
1631
1631
  return sanitizeNames(sanitizeEnumEntries(tmp, PythonIrEmitter$emit$lambda_0(this)), _get_sanitizationConfig__sns434(this));
1632
1632
  };
1633
- protoOf(PythonIrEmitter).pr = function (union) {
1633
+ protoOf(PythonIrEmitter).qr = function (union) {
1634
1634
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1635
1635
  };
1636
- protoOf(PythonIrEmitter).ur = function (refined) {
1636
+ protoOf(PythonIrEmitter).vr = function (refined) {
1637
1637
  return sanitizeNames(replaceRefinedFunctions(convert_2(refined), refined), _get_sanitizationConfig__sns434(this));
1638
1638
  };
1639
- protoOf(PythonIrEmitter).as = function (endpoint) {
1639
+ protoOf(PythonIrEmitter).bs = function (endpoint) {
1640
1640
  // Inline function 'kotlin.collections.distinctBy' call
1641
1641
  var this_0 = importReferences(endpoint);
1642
1642
  var set = HashSet_init_$Create$();
@@ -1644,7 +1644,7 @@ protoOf(PythonIrEmitter).as = function (endpoint) {
1644
1644
  var _iterator__ex2g4s = this_0.t();
1645
1645
  while (_iterator__ex2g4s.u()) {
1646
1646
  var e = _iterator__ex2g4s.v();
1647
- var key = e.bv_1;
1647
+ var key = e.cv_1;
1648
1648
  if (set.x(key)) {
1649
1649
  list.x(e);
1650
1650
  }
@@ -1655,19 +1655,19 @@ protoOf(PythonIrEmitter).as = function (endpoint) {
1655
1655
  var _iterator__ex2g4s_0 = list.t();
1656
1656
  while (_iterator__ex2g4s_0.u()) {
1657
1657
  var item = _iterator__ex2g4s_0.v();
1658
- var tmp$ret$2 = import_0('..model.' + item.bv_1, item.bv_1);
1658
+ var tmp$ret$2 = import_0('..model.' + item.cv_1, item.cv_1);
1659
1659
  destination.x(tmp$ret$2);
1660
1660
  }
1661
1661
  var endpointImports = destination;
1662
1662
  // Inline function 'kotlin.let' call
1663
1663
  var it = splitEndpointStructsToModuleLevel(convert_3(endpoint));
1664
- var tmp$ret$6 = it.c1o(VOID, plus(endpointImports, it.z1n_1));
1664
+ var tmp$ret$6 = it.d1o(VOID, plus(endpointImports, it.a1o_1));
1665
1665
  return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$6), _get_sanitizationConfig__sns434(this));
1666
1666
  };
1667
- protoOf(PythonIrEmitter).or = function (channel) {
1667
+ protoOf(PythonIrEmitter).pr = function (channel) {
1668
1668
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1669
1669
  };
1670
- protoOf(PythonIrEmitter).d1w = function (endpoint) {
1670
+ protoOf(PythonIrEmitter).e1w = function (endpoint) {
1671
1671
  // Inline function 'kotlin.collections.distinctBy' call
1672
1672
  var this_0 = importReferences(endpoint);
1673
1673
  var set = HashSet_init_$Create$();
@@ -1675,7 +1675,7 @@ protoOf(PythonIrEmitter).d1w = function (endpoint) {
1675
1675
  var _iterator__ex2g4s = this_0.t();
1676
1676
  while (_iterator__ex2g4s.u()) {
1677
1677
  var e = _iterator__ex2g4s.v();
1678
- var key = e.bv_1;
1678
+ var key = e.cv_1;
1679
1679
  if (set.x(key)) {
1680
1680
  list.x(e);
1681
1681
  }
@@ -1686,17 +1686,17 @@ protoOf(PythonIrEmitter).d1w = function (endpoint) {
1686
1686
  var _iterator__ex2g4s_0 = list.t();
1687
1687
  while (_iterator__ex2g4s_0.u()) {
1688
1688
  var item = _iterator__ex2g4s_0.v();
1689
- var tmp$ret$2 = import_0('..model.' + item.bv_1, item.bv_1);
1689
+ var tmp$ret$2 = import_0('..model.' + item.cv_1, item.cv_1);
1690
1690
  destination.x(tmp$ret$2);
1691
1691
  }
1692
1692
  var modelImports = destination;
1693
- var endpointImport = import_0('..endpoint.' + endpoint.up_1.l1(), '*');
1694
- var endpointName = endpoint.up_1.l1();
1693
+ var endpointImport = import_0('..endpoint.' + endpoint.vp_1.l1(), '*');
1694
+ var endpointName = endpoint.vp_1.l1();
1695
1695
  var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
1696
- var subPackageName = plus_2(this.h1z_1, 'client');
1697
- return new File(Companion_getInstance().r1h(subPackageName.fs() + file.y1n_1.s1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.z1n_1));
1696
+ var subPackageName = plus_2(this.i1z_1, 'client');
1697
+ return new File(Companion_getInstance().s1h(subPackageName.gs() + file.z1n_1.t1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.a1o_1));
1698
1698
  };
1699
- protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1699
+ protoOf(PythonIrEmitter).b1w = function (endpoints, logger) {
1700
1700
  // Inline function 'kotlin.collections.flatMap' call
1701
1701
  // Inline function 'kotlin.collections.flatMapTo' call
1702
1702
  var destination = ArrayList_init_$Create$();
@@ -1712,7 +1712,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1712
1712
  var _iterator__ex2g4s_0 = destination.t();
1713
1713
  while (_iterator__ex2g4s_0.u()) {
1714
1714
  var e = _iterator__ex2g4s_0.v();
1715
- var key = e.bv_1;
1715
+ var key = e.cv_1;
1716
1716
  if (set.x(key)) {
1717
1717
  list_0.x(e);
1718
1718
  }
@@ -1723,7 +1723,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1723
1723
  var _iterator__ex2g4s_1 = list_0.t();
1724
1724
  while (_iterator__ex2g4s_1.u()) {
1725
1725
  var item = _iterator__ex2g4s_1.v();
1726
- var tmp$ret$5 = import_0('.model.' + item.bv_1, item.bv_1);
1726
+ var tmp$ret$5 = import_0('.model.' + item.cv_1, item.cv_1);
1727
1727
  destination_0.x(tmp$ret$5);
1728
1728
  }
1729
1729
  var modelImports = destination_0;
@@ -1733,7 +1733,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1733
1733
  var _iterator__ex2g4s_2 = endpoints.t();
1734
1734
  while (_iterator__ex2g4s_2.u()) {
1735
1735
  var item_0 = _iterator__ex2g4s_2.v();
1736
- var tmp$ret$8 = import_0('.endpoint.' + item_0.up_1.l1(), '*');
1736
+ var tmp$ret$8 = import_0('.endpoint.' + item_0.vp_1.l1(), '*');
1737
1737
  destination_1.x(tmp$ret$8);
1738
1738
  }
1739
1739
  var endpointImports = destination_1;
@@ -1743,7 +1743,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1743
1743
  var _iterator__ex2g4s_3 = endpoints.t();
1744
1744
  while (_iterator__ex2g4s_3.u()) {
1745
1745
  var item_1 = _iterator__ex2g4s_3.v();
1746
- var tmp$ret$11 = import_0('.client.' + item_1.up_1.l1() + 'Client', item_1.up_1.l1() + 'Client');
1746
+ var tmp$ret$11 = import_0('.client.' + item_1.vp_1.l1() + 'Client', item_1.vp_1.l1() + 'Client');
1747
1747
  destination_2.x(tmp$ret$11);
1748
1748
  }
1749
1749
  var clientImports = destination_2;
@@ -1754,7 +1754,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1754
1754
  var _iterator__ex2g4s_4 = endpoints.t();
1755
1755
  while (_iterator__ex2g4s_4.u()) {
1756
1756
  var item_2 = _iterator__ex2g4s_4.v();
1757
- var tmp$ret$14 = item_2.up_1.l1();
1757
+ var tmp$ret$14 = item_2.vp_1.l1();
1758
1758
  destination_3.x(tmp$ret$14);
1759
1759
  }
1760
1760
  var endpointNames = destination_3;
@@ -1768,7 +1768,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1768
1768
  accumulator = flattenEndpointTypeRefs(acc, element_0);
1769
1769
  }
1770
1770
  var file = accumulator;
1771
- return new File(Companion_getInstance().r1h(this.h1z_1.fs() + file.y1n_1.s1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.z1n_1));
1771
+ return new File(Companion_getInstance().s1h(this.i1z_1.gs() + file.z1n_1.t1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.a1o_1));
1772
1772
  };
1773
1773
  function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
1774
1774
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1776,14 +1776,14 @@ function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
1776
1776
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1777
1777
  var tmp = scope;
1778
1778
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1779
- var this_0 = scope.i1v_1;
1779
+ var this_0 = scope.j1v_1;
1780
1780
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1781
1781
  // Inline function 'kotlin.apply' call
1782
1782
  var this_1 = new TransformerBuilder();
1783
- this_1.b1j(replaceReflectInNonGenericStructFields$lambda);
1784
- var tmp$ret$2 = this_1.c1j();
1785
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1786
- var tmp_0 = scope.i1v_1;
1783
+ this_1.c1j(replaceReflectInNonGenericStructFields$lambda);
1784
+ var tmp$ret$2 = this_1.d1j();
1785
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1786
+ var tmp_0 = scope.j1v_1;
1787
1787
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1788
1788
  }
1789
1789
  function replaceRefinedFunctions(_this__u8e3s4, refined) {
@@ -1792,14 +1792,14 @@ function replaceRefinedFunctions(_this__u8e3s4, refined) {
1792
1792
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1793
1793
  var tmp = scope;
1794
1794
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1795
- var this_0 = scope.i1v_1;
1795
+ var this_0 = scope.j1v_1;
1796
1796
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1797
1797
  // Inline function 'kotlin.apply' call
1798
1798
  var this_1 = new TransformerBuilder();
1799
- this_1.b1j(replaceRefinedFunctions$lambda(refined));
1800
- var tmp$ret$2 = this_1.c1j();
1801
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1802
- var tmp_0 = scope.i1v_1;
1799
+ this_1.c1j(replaceRefinedFunctions$lambda(refined));
1800
+ var tmp$ret$2 = this_1.d1j();
1801
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1802
+ var tmp_0 = scope.j1v_1;
1803
1803
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1804
1804
  }
1805
1805
  function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
@@ -1808,20 +1808,20 @@ function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
1808
1808
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1809
1809
  var tmp = scope;
1810
1810
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1811
- var this_0 = scope.i1v_1;
1811
+ var this_0 = scope.j1v_1;
1812
1812
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1813
1813
  // Inline function 'kotlin.apply' call
1814
1814
  var this_1 = new TransformerBuilder();
1815
- this_1.b1j(snakeCaseHandlerAndCallMethods$lambda);
1816
- var tmp$ret$2 = this_1.c1j();
1817
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1818
- var tmp_0 = scope.i1v_1;
1815
+ this_1.c1j(snakeCaseHandlerAndCallMethods$lambda);
1816
+ var tmp$ret$2 = this_1.d1j();
1817
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1818
+ var tmp_0 = scope.j1v_1;
1819
1819
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1820
1820
  }
1821
1821
  function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1822
1822
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1823
1823
  // Inline function 'kotlin.collections.filterIsInstance' call
1824
- var tmp0 = _this__u8e3s4.a1o();
1824
+ var tmp0 = _this__u8e3s4.b1o();
1825
1825
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1826
1826
  var destination = ArrayList_init_$Create$();
1827
1827
  var _iterator__ex2g4s = tmp0.t();
@@ -1834,7 +1834,7 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1834
1834
  var tmp$ret$2 = firstOrNull_0(destination);
1835
1835
  var namespace = ensureNotNull(tmp$ret$2);
1836
1836
  // Inline function 'kotlin.collections.partition' call
1837
- var this_0 = namespace.f1o_1;
1837
+ var this_0 = namespace.g1o_1;
1838
1838
  var first = ArrayList_init_$Create$();
1839
1839
  var second = ArrayList_init_$Create$();
1840
1840
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1855,14 +1855,14 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1855
1855
  var _destruct__k2r9zo = new Pair(first, second);
1856
1856
  var moduleElements = _destruct__k2r9zo.ve();
1857
1857
  var classElements = _destruct__k2r9zo.we();
1858
- var endpointClass = new Namespace(namespace.e1o_1, classElements, namespace.g1o_1);
1859
- return new File(namespace.e1o_1, plus_0(moduleElements, endpointClass));
1858
+ var endpointClass = new Namespace(namespace.f1o_1, classElements, namespace.h1o_1);
1859
+ return new File(namespace.f1o_1, plus_0(moduleElements, endpointClass));
1860
1860
  }
1861
1861
  function flattenEndpointTypeRefs(_this__u8e3s4, endpointName) {
1862
1862
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1863
1863
  var scope = new TransformScope(_this__u8e3s4);
1864
- scope.o1v(flattenEndpointTypeRefs$lambda(endpointName));
1865
- var tmp = scope.i1v_1;
1864
+ scope.p1v(flattenEndpointTypeRefs$lambda(endpointName));
1865
+ var tmp = scope.j1v_1;
1866
1866
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1867
1867
  }
1868
1868
  function snakeCaseClientFunctions(_this__u8e3s4) {
@@ -1871,15 +1871,15 @@ function snakeCaseClientFunctions(_this__u8e3s4) {
1871
1871
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1872
1872
  var tmp = scope;
1873
1873
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1874
- var this_0 = scope.i1v_1;
1874
+ var this_0 = scope.j1v_1;
1875
1875
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1876
1876
  // Inline function 'kotlin.apply' call
1877
1877
  var this_1 = new TransformerBuilder();
1878
- this_1.b1j(snakeCaseClientFunctions$lambda);
1879
- var tmp$ret$2 = this_1.c1j();
1880
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1881
- scope.r1v(snakeCaseClientFunctions$lambda_0);
1882
- var tmp_0 = scope.i1v_1;
1878
+ this_1.c1j(snakeCaseClientFunctions$lambda);
1879
+ var tmp$ret$2 = this_1.d1j();
1880
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1881
+ scope.s1v(snakeCaseClientFunctions$lambda_0);
1882
+ var tmp_0 = scope.j1v_1;
1883
1883
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1884
1884
  }
1885
1885
  function addSelfReceiverToClientFields(_this__u8e3s4) {
@@ -1890,7 +1890,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1890
1890
  } else {
1891
1891
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1892
1892
  // Inline function 'kotlin.collections.filterIsInstance' call
1893
- var tmp0 = tmp0_safe_receiver.a1o();
1893
+ var tmp0 = tmp0_safe_receiver.b1o();
1894
1894
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1895
1895
  var destination = ArrayList_init_$Create$();
1896
1896
  var _iterator__ex2g4s = tmp0.t();
@@ -1914,7 +1914,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1914
1914
  var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
1915
1915
  while (_iterator__ex2g4s_0.u()) {
1916
1916
  var item = _iterator__ex2g4s_0.v();
1917
- var tmp$ret$3 = item.b1q_1.n1j();
1917
+ var tmp$ret$3 = item.c1q_1.o1j();
1918
1918
  destination_0.x(tmp$ret$3);
1919
1919
  }
1920
1920
  tmp_0 = destination_0;
@@ -1926,8 +1926,8 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1926
1926
  return _this__u8e3s4;
1927
1927
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1928
1928
  var scope = new TransformScope(_this__u8e3s4);
1929
- scope.r1v(addSelfReceiverToClientFields$lambda(fieldNames));
1930
- var tmp_1 = scope.i1v_1;
1929
+ scope.s1v(addSelfReceiverToClientFields$lambda(fieldNames));
1930
+ var tmp_1 = scope.j1v_1;
1931
1931
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1932
1932
  }
1933
1933
  function replaceReflectAsTypeAny(_this__u8e3s4) {
@@ -1936,13 +1936,13 @@ function replaceReflectAsTypeAny(_this__u8e3s4) {
1936
1936
  tmp = Custom_init_$Create$('type', listOf_0(Any_instance));
1937
1937
  } else {
1938
1938
  if (_this__u8e3s4 instanceof Nullable) {
1939
- tmp = _this__u8e3s4.k1n(replaceReflectAsTypeAny(_this__u8e3s4.j1j_1));
1939
+ tmp = _this__u8e3s4.l1n(replaceReflectAsTypeAny(_this__u8e3s4.k1j_1));
1940
1940
  } else {
1941
1941
  if (_this__u8e3s4 instanceof Array_0) {
1942
- tmp = _this__u8e3s4.k1n(replaceReflectAsTypeAny(_this__u8e3s4.k1j_1));
1942
+ tmp = _this__u8e3s4.l1n(replaceReflectAsTypeAny(_this__u8e3s4.l1j_1));
1943
1943
  } else {
1944
1944
  if (_this__u8e3s4 instanceof Dict_0) {
1945
- tmp = _this__u8e3s4.n1n(replaceReflectAsTypeAny(_this__u8e3s4.l1n_1), replaceReflectAsTypeAny(_this__u8e3s4.m1n_1));
1945
+ tmp = _this__u8e3s4.o1n(replaceReflectAsTypeAny(_this__u8e3s4.m1n_1), replaceReflectAsTypeAny(_this__u8e3s4.n1n_1));
1946
1946
  } else {
1947
1947
  tmp = _this__u8e3s4;
1948
1948
  }
@@ -1957,12 +1957,12 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1957
1957
  var tmp$ret$1;
1958
1958
  $l$block: {
1959
1959
  // Inline function 'kotlin.collections.isNotEmpty' call
1960
- if (!element.o1o_1.r()) {
1960
+ if (!element.p1o_1.r()) {
1961
1961
  tmp$ret$1 = element;
1962
1962
  break $l$block;
1963
1963
  }
1964
1964
  // Inline function 'kotlin.collections.map' call
1965
- var this_0 = element.k1o_1;
1965
+ var this_0 = element.l1o_1;
1966
1966
  // Inline function 'kotlin.collections.mapTo' call
1967
1967
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1968
1968
  var _iterator__ex2g4s = this_0.t();
@@ -1970,14 +1970,14 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1970
1970
  var item = _iterator__ex2g4s.v();
1971
1971
  var tmp_0;
1972
1972
  if (item instanceof Field) {
1973
- tmp_0 = item.f1q(VOID, replaceReflectAsTypeAny(item.c1q_1));
1973
+ tmp_0 = item.g1q(VOID, replaceReflectAsTypeAny(item.d1q_1));
1974
1974
  } else {
1975
1975
  tmp_0 = item;
1976
1976
  }
1977
1977
  var tmp$ret$2 = tmp_0;
1978
1978
  destination.x(tmp$ret$2);
1979
1979
  }
1980
- tmp$ret$1 = element.q1o(VOID, destination);
1980
+ tmp$ret$1 = element.r1o(VOID, destination);
1981
1981
  }
1982
1982
  tmp = tmp$ret$1;
1983
1983
  } else {
@@ -1988,17 +1988,17 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1988
1988
  }
1989
1989
  function replaceRefinedFunctions$lambda$lambda($constraintExpr) {
1990
1990
  return function ($this$function) {
1991
- $this$function.c1i('self', Custom_init_$Create$(''));
1992
- $this$function.f1i(Boolean_instance_0);
1993
- $this$function.g1i($constraintExpr);
1991
+ $this$function.d1i('self', Custom_init_$Create$(''));
1992
+ $this$function.g1i(Boolean_instance_0);
1993
+ $this$function.h1i($constraintExpr);
1994
1994
  return Unit_instance;
1995
1995
  };
1996
1996
  }
1997
1997
  function replaceRefinedFunctions$lambda$lambda_0($toStringExpr) {
1998
1998
  return function ($this$function) {
1999
- $this$function.c1i('self', Custom_init_$Create$(''));
2000
- $this$function.f1i(String_instance);
2001
- $this$function.g1i(new RawExpression($toStringExpr));
1999
+ $this$function.d1i('self', Custom_init_$Create$(''));
2000
+ $this$function.g1i(String_instance);
2001
+ $this$function.h1i(new RawExpression($toStringExpr));
2002
2002
  return Unit_instance;
2003
2003
  };
2004
2004
  }
@@ -2007,7 +2007,7 @@ function replaceRefinedFunctions$lambda($refined) {
2007
2007
  var tmp;
2008
2008
  if (element instanceof Struct) {
2009
2009
  // Inline function 'kotlin.collections.mapNotNull' call
2010
- var tmp0 = element.n1o_1;
2010
+ var tmp0 = element.o1o_1;
2011
2011
  // Inline function 'kotlin.collections.mapNotNullTo' call
2012
2012
  var destination = ArrayList_init_$Create$();
2013
2013
  // Inline function 'kotlin.collections.forEach' call
@@ -2017,23 +2017,23 @@ function replaceRefinedFunctions$lambda($refined) {
2017
2017
  var tmp_0;
2018
2018
  var tmp_1;
2019
2019
  if (element_0 instanceof Function) {
2020
- tmp_1 = element_0.h1l_1.equals(Companion_getInstance().r1h('validate'));
2020
+ tmp_1 = element_0.i1l_1.equals(Companion_getInstance().s1h('validate'));
2021
2021
  } else {
2022
2022
  tmp_1 = false;
2023
2023
  }
2024
2024
  if (tmp_1) {
2025
- var constraintExpr = convertConstraint($refined.tr_1, new FieldCall(new VariableReference(Companion_getInstance().r1h('self')), Companion_getInstance().r1h('value')));
2025
+ var constraintExpr = convertConstraint($refined.ur_1, new FieldCall(new VariableReference(Companion_getInstance().s1h('self')), Companion_getInstance().s1h('value')));
2026
2026
  tmp_0 = function_0('validate', VOID, VOID, replaceRefinedFunctions$lambda$lambda(constraintExpr));
2027
2027
  } else {
2028
2028
  var tmp_2;
2029
2029
  if (element_0 instanceof Function) {
2030
- tmp_2 = element_0.h1l_1.equals(Companion_getInstance().r1h('toString'));
2030
+ tmp_2 = element_0.i1l_1.equals(Companion_getInstance().s1h('toString'));
2031
2031
  } else {
2032
2032
  tmp_2 = false;
2033
2033
  }
2034
2034
  if (tmp_2) {
2035
2035
  var tmp_3;
2036
- if ($refined.tr_1.fv_1 instanceof String_0) {
2036
+ if ($refined.ur_1.gv_1 instanceof String_0) {
2037
2037
  tmp_3 = 'self.value';
2038
2038
  } else {
2039
2039
  tmp_3 = 'str(self.value)';
@@ -2052,7 +2052,7 @@ function replaceRefinedFunctions$lambda($refined) {
2052
2052
  destination.x(tmp0_safe_receiver);
2053
2053
  }
2054
2054
  }
2055
- tmp = element.q1o(VOID, VOID, VOID, VOID, destination);
2055
+ tmp = element.r1o(VOID, VOID, VOID, VOID, destination);
2056
2056
  } else {
2057
2057
  tmp = element;
2058
2058
  }
@@ -2065,23 +2065,23 @@ function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
2065
2065
  if (element instanceof Interface) {
2066
2066
  var tmp$ret$0;
2067
2067
  $l$block: {
2068
- if (!element.s1o_1.equals(Companion_getInstance().r1h('Handler')) && !element.s1o_1.equals(Companion_getInstance().r1h('Call'))) {
2068
+ if (!element.t1o_1.equals(Companion_getInstance().s1h('Handler')) && !element.t1o_1.equals(Companion_getInstance().s1h('Call'))) {
2069
2069
  tmp$ret$0 = element;
2070
2070
  break $l$block;
2071
2071
  }
2072
2072
  // Inline function 'kotlin.collections.map' call
2073
- var this_0 = element.t1o_1;
2073
+ var this_0 = element.u1o_1;
2074
2074
  // Inline function 'kotlin.collections.mapTo' call
2075
2075
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2076
2076
  var _iterator__ex2g4s = this_0.t();
2077
2077
  while (_iterator__ex2g4s.u()) {
2078
2078
  var item = _iterator__ex2g4s.v();
2079
2079
  var tmp0_safe_receiver = item instanceof Function ? item : null;
2080
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(Companion_getInstance().r1h(item.h1l_1.z1m()));
2080
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1l(Companion_getInstance().s1h(item.i1l_1.a1n()));
2081
2081
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2082
2082
  destination.x(tmp$ret$1);
2083
2083
  }
2084
- tmp$ret$0 = element.z1o(VOID, destination);
2084
+ tmp$ret$0 = element.a1p(VOID, destination);
2085
2085
  }
2086
2086
  tmp = tmp$ret$0;
2087
2087
  } else {
@@ -2096,17 +2096,17 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
2096
2096
  if (!(type instanceof Custom_0)) {
2097
2097
  tmp = type;
2098
2098
  } else {
2099
- if (!startsWith(type.l1j_1.s1h(), $endpointName + '.')) {
2099
+ if (!startsWith(type.m1j_1.t1h(), $endpointName + '.')) {
2100
2100
  tmp = type;
2101
2101
  } else {
2102
- var suffix = removePrefix(type.l1j_1.s1h(), $endpointName + '.');
2102
+ var suffix = removePrefix(type.m1j_1.t1h(), $endpointName + '.');
2103
2103
  switch (suffix) {
2104
2104
  case 'Call':
2105
2105
  case 'Handler':
2106
2106
  tmp = type;
2107
2107
  break;
2108
2108
  default:
2109
- tmp = type.p1n(Companion_getInstance().r1h(suffix));
2109
+ tmp = type.q1n(Companion_getInstance().s1h(suffix));
2110
2110
  break;
2111
2111
  }
2112
2112
  }
@@ -2117,7 +2117,7 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
2117
2117
  function snakeCaseClientFunctions$lambda(element, transformer) {
2118
2118
  var tmp;
2119
2119
  if (element instanceof Function) {
2120
- tmp = element.p1l(Companion_getInstance().r1h(element.h1l_1.z1m()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().r1h('self'), Custom_init_$Create$(''))), element.j1l_1));
2120
+ tmp = element.q1l(Companion_getInstance().s1h(element.i1l_1.a1n()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().s1h('self'), Custom_init_$Create$(''))), element.k1l_1));
2121
2121
  } else {
2122
2122
  tmp = element;
2123
2123
  }
@@ -2127,19 +2127,19 @@ function snakeCaseClientFunctions$lambda(element, transformer) {
2127
2127
  function snakeCaseClientFunctions$lambda_0(stmt, tr) {
2128
2128
  var tmp;
2129
2129
  if (stmt instanceof FunctionCall) {
2130
- var nameStr = stmt.d1n_1.n1j();
2131
- var newName = contains(nameStr, '.') ? stmt.d1n_1 : Companion_getInstance().r1h(Companion_getInstance().r1h(nameStr).z1m());
2132
- var tmp1_safe_receiver = stmt.b1n_1;
2130
+ var nameStr = stmt.e1n_1.o1j();
2131
+ var newName = contains(nameStr, '.') ? stmt.e1n_1 : Companion_getInstance().s1h(Companion_getInstance().s1h(nameStr).a1n());
2132
+ var tmp1_safe_receiver = stmt.c1n_1;
2133
2133
  var tmp_0;
2134
2134
  if (tmp1_safe_receiver == null) {
2135
2135
  tmp_0 = null;
2136
2136
  } else {
2137
2137
  // Inline function 'kotlin.let' call
2138
- tmp_0 = tr.d1v(tmp1_safe_receiver);
2138
+ tmp_0 = tr.e1v(tmp1_safe_receiver);
2139
2139
  }
2140
2140
  var tmp2_receiver = tmp_0;
2141
2141
  // Inline function 'kotlin.collections.mapValues' call
2142
- var this_0 = stmt.e1n_1;
2142
+ var this_0 = stmt.f1n_1;
2143
2143
  // Inline function 'kotlin.collections.mapValuesTo' call
2144
2144
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
2145
2145
  // Inline function 'kotlin.collections.associateByTo' call
@@ -2149,10 +2149,10 @@ function snakeCaseClientFunctions$lambda_0(stmt, tr) {
2149
2149
  var tmp_1 = element.k1();
2150
2150
  // Inline function 'kotlin.collections.component2' call
2151
2151
  var v = element.l1();
2152
- var tmp$ret$4 = tr.d1v(v);
2152
+ var tmp$ret$4 = tr.e1v(v);
2153
2153
  destination.s2(tmp_1, tmp$ret$4);
2154
2154
  }
2155
- var tmp4_isAwait = !(stmt.b1n_1 == null);
2155
+ var tmp4_isAwait = !(stmt.c1n_1 == null);
2156
2156
  tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
2157
2157
  } else {
2158
2158
  tmp = transformChildren(stmt, tr);
@@ -2165,28 +2165,28 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
2165
2165
  var tmp_0;
2166
2166
  var tmp_1;
2167
2167
  if (stmt instanceof FieldCall) {
2168
- tmp_1 = stmt.r1q_1 == null;
2168
+ tmp_1 = stmt.s1q_1 == null;
2169
2169
  } else {
2170
2170
  tmp_1 = false;
2171
2171
  }
2172
2172
  if (tmp_1) {
2173
- tmp_0 = $fieldNames.u1(stmt.s1q_1.n1j());
2173
+ tmp_0 = $fieldNames.u1(stmt.t1q_1.o1j());
2174
2174
  } else {
2175
2175
  tmp_0 = false;
2176
2176
  }
2177
2177
  if (tmp_0) {
2178
- tmp = new FieldCall(new VariableReference(Companion_getInstance().r1h('self')), stmt.s1q_1);
2178
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().s1h('self')), stmt.t1q_1);
2179
2179
  } else {
2180
2180
  if (stmt instanceof FieldCall) {
2181
- var tmp0_safe_receiver = stmt.r1q_1;
2181
+ var tmp0_safe_receiver = stmt.s1q_1;
2182
2182
  var tmp_2;
2183
2183
  if (tmp0_safe_receiver == null) {
2184
2184
  tmp_2 = null;
2185
2185
  } else {
2186
2186
  // Inline function 'kotlin.let' call
2187
- tmp_2 = tr.d1v(tmp0_safe_receiver);
2187
+ tmp_2 = tr.e1v(tmp0_safe_receiver);
2188
2188
  }
2189
- tmp = new FieldCall(tmp_2, stmt.s1q_1);
2189
+ tmp = new FieldCall(tmp_2, stmt.t1q_1);
2190
2190
  } else {
2191
2191
  tmp = transformChildren(stmt, tr);
2192
2192
  }
@@ -2197,8 +2197,8 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
2197
2197
  function PythonRefinedTypeDefinitionEmitter() {
2198
2198
  }
2199
2199
  function PythonShared() {
2200
- this.a1z_1 = 'shared';
2201
- this.b1z_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2200
+ this.b1z_1 = 'shared';
2201
+ this.c1z_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2202
2202
  }
2203
2203
  protoOf(PythonShared).toString = function () {
2204
2204
  return 'PythonShared';
@@ -2219,17 +2219,17 @@ function PythonShared_getInstance() {
2219
2219
  }
2220
2220
  function PythonTypeDefinitionEmitter$emit$lambda(this$0) {
2221
2221
  return function (it) {
2222
- return this$0.f1z(it);
2222
+ return this$0.g1z(it);
2223
2223
  };
2224
2224
  }
2225
2225
  function PythonTypeDefinitionEmitter$emit$lambda_0(this$0) {
2226
2226
  return function (it) {
2227
- return this$0.f1z(it);
2227
+ return this$0.g1z(it);
2228
2228
  };
2229
2229
  }
2230
2230
  function PythonTypeDefinitionEmitter$emit$lambda_1(this$0) {
2231
2231
  return function (it) {
2232
- return Spacer_instance.toString() + this$0.mq(it);
2232
+ return Spacer_instance.toString() + this$0.nq(it);
2233
2233
  };
2234
2234
  }
2235
2235
  function PythonTypeDefinitionEmitter() {
@@ -2237,28 +2237,28 @@ function PythonTypeDefinitionEmitter() {
2237
2237
  function PythonUnionDefinitionEmitter() {
2238
2238
  }
2239
2239
  //region block: post-declaration
2240
- protoOf(PythonEmitter).kq = emit_4;
2241
- protoOf(PythonEmitter).lq = emit_5;
2242
- protoOf(PythonEmitter).mq = emit_6;
2243
- protoOf(PythonEmitter).nq = emit_7;
2240
+ protoOf(PythonEmitter).lq = emit_6;
2241
+ protoOf(PythonEmitter).mq = emit_7;
2242
+ protoOf(PythonEmitter).nq = emit_8;
2244
2243
  protoOf(PythonEmitter).oq = emit_9;
2245
- protoOf(PythonEmitter).zr = emit_14;
2246
- protoOf(PythonEmitter).ur = emit_10;
2247
- protoOf(PythonEmitter).as = emit_11;
2248
- protoOf(PythonEmitter).pr = emit_15;
2249
- protoOf(PythonEmitter).nr = emit_3;
2250
- protoOf(PythonEmitter).or = emit_2;
2251
- protoOf(PythonEmitter).c1z = emit_8;
2252
- protoOf(PythonEmitter).j1x = emit_12;
2253
- protoOf(PythonEmitter).d1z = emit_13;
2254
- protoOf(PythonEmitter).bs = emitValidator;
2255
- protoOf(PythonEmitter).w1x = sanitize;
2256
- protoOf(PythonEmitter).m1x = sanitizeKeywords;
2257
- protoOf(PythonEmitter).e1z = emitType;
2258
- protoOf(PythonEmitter).f1z = emitReferenceCustomImports;
2259
- protoOf(PythonIrEmitter).x1v = get_extensions;
2244
+ protoOf(PythonEmitter).pq = emit_11;
2245
+ protoOf(PythonEmitter).as = emit_4;
2246
+ protoOf(PythonEmitter).vr = emit_15;
2247
+ protoOf(PythonEmitter).bs = emit_12;
2248
+ protoOf(PythonEmitter).qr = emit_5;
2249
+ protoOf(PythonEmitter).or = emit_3;
2250
+ protoOf(PythonEmitter).pr = emit_2;
2251
+ protoOf(PythonEmitter).d1z = emit_10;
2252
+ protoOf(PythonEmitter).k1x = emit_13;
2253
+ protoOf(PythonEmitter).e1z = emit_14;
2254
+ protoOf(PythonEmitter).cs = emitValidator;
2255
+ protoOf(PythonEmitter).x1x = sanitize;
2256
+ protoOf(PythonEmitter).n1x = sanitizeKeywords;
2257
+ protoOf(PythonEmitter).f1z = emitType;
2258
+ protoOf(PythonEmitter).g1z = emitReferenceCustomImports;
2259
+ protoOf(PythonIrEmitter).y1v = get_extensions;
2260
2260
  protoOf(PythonIrEmitter).eo = emit_1;
2261
- protoOf(PythonIrEmitter).c1w = beforeGenerate;
2261
+ protoOf(PythonIrEmitter).d1w = beforeGenerate;
2262
2262
  //endregion
2263
2263
  //region block: init
2264
2264
  PythonShared_instance = new PythonShared();