@flock/wirespec 0.18.6 → 0.18.13

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 (48) hide show
  1. package/arrow-arrow-atomic.mjs +11 -11
  2. package/arrow-arrow-core.mjs +141 -141
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt.mjs +1395 -1395
  5. package/clikt-clikt.mjs.map +1 -1
  6. package/colormath-root-colormath.mjs +442 -442
  7. package/kotlin-kotlin-stdlib.mjs +1051 -943
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  9. package/kotlin-openapi-bindings.mjs +20812 -6818
  10. package/kotlin-openapi-bindings.mjs.map +1 -1
  11. package/kotlin-rgxgen.mjs +1797 -1797
  12. package/kotlinx-io-kotlinx-io-core.mjs +405 -405
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1960 -1763
  14. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1882 -1407
  16. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  17. package/mordant-mordant.mjs +1269 -1269
  18. package/package.json +3 -2
  19. package/wirespec-lsp.mjs +7 -0
  20. package/wirespec-src-compiler-core.mjs +1708 -1644
  21. package/wirespec-src-compiler-core.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-java.mjs +444 -409
  23. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-kotlin.mjs +325 -290
  25. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-python.mjs +340 -342
  27. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-rust.mjs +370 -372
  29. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-scala.mjs +155 -157
  31. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-typescript.mjs +372 -372
  33. package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
  34. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  35. package/wirespec-src-compiler-ir.mjs +3211 -3312
  36. package/wirespec-src-compiler-ir.mjs.map +1 -1
  37. package/wirespec-src-compiler-lib.mjs +399 -399
  38. package/wirespec-src-converter-avro.mjs +507 -507
  39. package/wirespec-src-converter-openapi.mjs +1487 -1413
  40. package/wirespec-src-converter-openapi.mjs.map +1 -1
  41. package/wirespec-src-ide-lsp.mjs +4928 -0
  42. package/wirespec-src-ide-lsp.mjs.map +1 -0
  43. package/wirespec-src-plugin-arguments.mjs +175 -175
  44. package/wirespec-src-plugin-cli.mjs +102 -102
  45. package/wirespec-src-plugin-npm.d.mts +2 -0
  46. package/wirespec-src-plugin-npm.mjs +42 -37
  47. package/wirespec-src-plugin-npm.mjs.map +1 -1
  48. package/wirespec-src-tools-generator.mjs +32 -32
@@ -153,10 +153,10 @@ import {
153
153
  function emit_3(identifier) {
154
154
  var tmp;
155
155
  if (identifier instanceof DefinitionIdentifier) {
156
- tmp = this.d1w(identifier);
156
+ tmp = this.i1w(identifier);
157
157
  } else {
158
158
  if (identifier instanceof FieldIdentifier) {
159
- tmp = this.t1v(this.d1w(identifier));
159
+ tmp = this.y1v(this.i1w(identifier));
160
160
  } else {
161
161
  noWhenBranchMatchedException();
162
162
  }
@@ -174,11 +174,11 @@ function sanitize(_this__u8e3s4) {
174
174
  var item = _iterator__ex2g4s.v();
175
175
  var _unary__edvuaz = index;
176
176
  index = _unary__edvuaz + 1 | 0;
177
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
177
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
178
178
  destination.x(tmp$ret$0);
179
179
  }
180
180
  var tmp = asSequence(joinToString(destination, ''));
181
- return this.s1v(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
181
+ return this.x1v(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
182
182
  }
183
183
  function sanitizeFirstIsDigit(_this__u8e3s4) {
184
184
  var tmp;
@@ -198,18 +198,18 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
198
198
  return tmp;
199
199
  }
200
200
  function sanitizeKeywords(_this__u8e3s4) {
201
- return Companion_getInstance_0().q1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
201
+ return Companion_getInstance_0().v1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
202
202
  }
203
203
  initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
204
204
  function emit_4(type, module_0) {
205
205
  var tmp;
206
- if (type.wo_1.so_1.r()) {
207
- tmp = 'data object ' + this.wq(type.vo_1);
206
+ if (type.ap_1.wo_1.r()) {
207
+ tmp = 'data object ' + this.br(type.zo_1);
208
208
  } else {
209
- var tmp_0 = this.wq(type.vo_1);
210
- var tmp_1 = this.vp(type.wo_1);
209
+ var tmp_0 = this.br(type.zo_1);
210
+ var tmp_1 = this.zp(type.ap_1);
211
211
  // Inline function 'kotlin.run' call
212
- var $this$run = type.xo_1;
212
+ var $this$run = type.bp_1;
213
213
  var tmp_2;
214
214
  if ($this$run.r()) {
215
215
  tmp_2 = '';
@@ -222,18 +222,18 @@ function emit_4(type, module_0) {
222
222
  return tmp;
223
223
  }
224
224
  function emit_5(_this__u8e3s4) {
225
- return dropLast(joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
225
+ return dropLast(joinToString(_this__u8e3s4.wo_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
226
226
  }
227
227
  function emit_6(_this__u8e3s4) {
228
- return this.wq(_this__u8e3s4.ap_1) + ': ' + this.xp(_this__u8e3s4.bp_1);
228
+ return this.br(_this__u8e3s4.ep_1) + ': ' + this.bq(_this__u8e3s4.fp_1);
229
229
  }
230
230
  function emit_7(_this__u8e3s4) {
231
231
  var tmp;
232
232
  if (_this__u8e3s4 instanceof Dict) {
233
- tmp = 'Map<String, ' + this.xp(_this__u8e3s4.co_1) + '>';
233
+ tmp = 'Map<String, ' + this.bq(_this__u8e3s4.go_1) + '>';
234
234
  } else {
235
235
  if (_this__u8e3s4 instanceof Iterable) {
236
- tmp = 'List<' + this.xp(_this__u8e3s4.zn_1) + '>';
236
+ tmp = 'List<' + this.bq(_this__u8e3s4.do_1) + '>';
237
237
  } else {
238
238
  if (_this__u8e3s4 instanceof Unit) {
239
239
  tmp = 'Unit';
@@ -242,17 +242,17 @@ function emit_7(_this__u8e3s4) {
242
242
  tmp = 'Any';
243
243
  } else {
244
244
  if (_this__u8e3s4 instanceof Custom) {
245
- tmp = _this__u8e3s4.ku_1;
245
+ tmp = _this__u8e3s4.pu_1;
246
246
  } else {
247
247
  if (_this__u8e3s4 instanceof Primitive) {
248
- var t = _this__u8e3s4.ou_1;
248
+ var t = _this__u8e3s4.tu_1;
249
249
  var tmp_0;
250
250
  if (t instanceof String_0) {
251
251
  tmp_0 = 'String';
252
252
  } else {
253
253
  if (t instanceof Integer) {
254
254
  var tmp_1;
255
- switch (t.st_1.b3_1) {
255
+ switch (t.xt_1.b3_1) {
256
256
  case 0:
257
257
  tmp_1 = 'Int';
258
258
  break;
@@ -267,7 +267,7 @@ function emit_7(_this__u8e3s4) {
267
267
  } else {
268
268
  if (t instanceof Number_0) {
269
269
  var tmp_2;
270
- switch (t.vt_1.b3_1) {
270
+ switch (t.au_1.b3_1) {
271
271
  case 0:
272
272
  tmp_2 = 'Float';
273
273
  break;
@@ -303,15 +303,15 @@ function emit_7(_this__u8e3s4) {
303
303
  }
304
304
  // Inline function 'kotlin.let' call
305
305
  var it = tmp;
306
- return _this__u8e3s4.cu() ? it + '?' : it;
306
+ return _this__u8e3s4.hu() ? it + '?' : it;
307
307
  }
308
308
  function emit_8(_this__u8e3s4) {
309
309
  var tmp;
310
310
  if (_this__u8e3s4 instanceof RegExp_0) {
311
- tmp = 'Regex("""' + this.zp(_this__u8e3s4.ys_1) + '""").matches(value)';
311
+ tmp = 'Regex("""' + this.dq(_this__u8e3s4.dt_1) + '""").matches(value)';
312
312
  } else {
313
313
  if (_this__u8e3s4 instanceof Bound) {
314
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
314
+ var tmp1_safe_receiver = _this__u8e3s4.tt_1;
315
315
  var tmp_0;
316
316
  if (tmp1_safe_receiver == null) {
317
317
  tmp_0 = null;
@@ -320,7 +320,7 @@ function emit_8(_this__u8e3s4) {
320
320
  tmp_0 = tmp1_safe_receiver + ' < value';
321
321
  }
322
322
  var minCheck = tmp_0;
323
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
323
+ var tmp2_safe_receiver = _this__u8e3s4.ut_1;
324
324
  var tmp_1;
325
325
  if (tmp2_safe_receiver == null) {
326
326
  tmp_1 = null;
@@ -348,10 +348,14 @@ function emit_8(_this__u8e3s4) {
348
348
  }
349
349
  initMetadataForInterface(KotlinTypeDefinitionEmitter, 'KotlinTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, KotlinIdentifierEmitter]);
350
350
  function emit_9(channel) {
351
- return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.wq(channel.mo_1) + ' {\n | operator fun invoke(message: ' + this.xp(channel.no_1) + ')\n |}\n |\n ');
351
+ return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.br(channel.qo_1) + ' {\n | operator fun invoke(message: ' + this.bq(channel.ro_1) + ')\n |}\n |\n ');
352
352
  }
353
353
  initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
354
- function emit_10(endpoint) {
354
+ function emit_10(union) {
355
+ return trimMargin('\n |sealed interface ' + this.br(union.uo_1) + '\n |\n ');
356
+ }
357
+ initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
358
+ function emit_11(endpoint) {
355
359
  // Inline function 'kotlin.collections.map' call
356
360
  var this_0 = importReferences(endpoint);
357
361
  // Inline function 'kotlin.collections.mapTo' call
@@ -359,158 +363,154 @@ function emit_10(endpoint) {
359
363
  var _iterator__ex2g4s = this_0.t();
360
364
  while (_iterator__ex2g4s.u()) {
361
365
  var item = _iterator__ex2g4s.v();
362
- var tmp$ret$0 = 'import ' + this.d1v().mr_1 + '.model.' + item.ku_1;
366
+ var tmp$ret$0 = 'import ' + this.i1v().rr_1 + '.model.' + item.pu_1;
363
367
  destination.x(tmp$ret$0);
364
368
  }
365
369
  var tmp = destination;
366
370
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda);
367
- var tmp_1 = this.wq(endpoint.ep_1);
371
+ var tmp_1 = this.br(endpoint.ip_1);
368
372
  var tmp_2 = get_pathParams(endpoint);
369
373
  var tmp_3 = emitObject$default(this, tmp_2, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
370
- var tmp_4 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
371
- var tmp_5 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
372
- var tmp_6 = this.q1v(first(endpoint.jp_1), endpoint);
374
+ var tmp_4 = emitObject$default(this, endpoint.lp_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
375
+ var tmp_5 = emitObject$default(this, endpoint.mp_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
376
+ var tmp_6 = this.v1v(first(endpoint.np_1), endpoint);
373
377
  var tmp_7 = Spacer_instance.toString();
374
378
  var tmp_8 = emitStatusInterfaces(this, endpoint);
375
379
  var tmp_9 = emitResponseInterfaces(this, endpoint);
376
- var tmp_10 = distinctByStatus(endpoint.kp_1);
380
+ var tmp_10 = distinctByStatus(endpoint.op_1);
377
381
  var tmp_11 = joinToString(tmp_10, '\n\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_3(this));
378
382
  var tmp_12 = Spacer_instance.toString();
379
- var tmp_13 = Spacer_instance.qr(2);
380
- var tmp_14 = distinctByStatus(endpoint.kp_1);
383
+ var tmp_13 = Spacer_instance.vr(2);
384
+ var tmp_14 = distinctByStatus(endpoint.op_1);
381
385
  var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_4(this));
382
- var tmp_16 = Spacer_instance.qr(2);
386
+ var tmp_16 = Spacer_instance.vr(2);
383
387
  var tmp_17 = Spacer_instance.toString();
384
- var tmp_18 = Spacer_instance.qr(2);
388
+ var tmp_18 = Spacer_instance.vr(2);
385
389
  // Inline function 'kotlin.collections.filter' call
386
- var tmp0 = distinctByStatus(endpoint.kp_1);
390
+ var tmp0 = distinctByStatus(endpoint.op_1);
387
391
  // Inline function 'kotlin.collections.filterTo' call
388
392
  var destination_0 = ArrayList_init_$Create$_0();
389
393
  var _iterator__ex2g4s_0 = tmp0.t();
390
394
  while (_iterator__ex2g4s_0.u()) {
391
395
  var element = _iterator__ex2g4s_0.v();
392
- if (Companion_instance_1.rq(element.qp_1)) {
396
+ if (Companion_instance_1.wq(element.up_1)) {
393
397
  destination_0.x(element);
394
398
  }
395
399
  }
396
400
  var tmp_19 = destination_0;
397
401
  var tmp_20 = joinToString(tmp_19, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_5(this));
398
- var tmp_21 = Spacer_instance.qr(3);
399
- var tmp_22 = Spacer_instance.qr(2);
402
+ var tmp_21 = Spacer_instance.vr(3);
403
+ var tmp_22 = Spacer_instance.vr(2);
400
404
  var tmp_23 = Spacer_instance.toString();
401
- var tmp_24 = Spacer_instance.qr(2);
402
- var tmp_25 = this.u1v(endpoint);
403
- var tmp_26 = Spacer_instance.qr(2);
404
- var tmp_27 = Spacer_instance.qr(3);
405
- return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.qr(3) + 'override val method = "' + endpoint.fp_1.toString() + '"\n |' + Spacer_instance.qr(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.qr(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.qr(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.qr(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.qr(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
405
+ var tmp_24 = Spacer_instance.vr(2);
406
+ var tmp_25 = this.z1v(endpoint);
407
+ var tmp_26 = Spacer_instance.vr(2);
408
+ var tmp_27 = Spacer_instance.vr(3);
409
+ return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.kp_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.vr(3) + 'override val method = "' + endpoint.jp_1.toString() + '"\n |' + Spacer_instance.vr(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.vr(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.vr(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.vr(3) + '}\n |' + Spacer_instance.vr(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.vr(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.vr(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.vr(3) + '}\n |' + Spacer_instance.vr(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
406
410
  }
407
411
  function emitHandleFunction(endpoint) {
408
- return 'suspend fun ' + Companion_instance_1.pq(this.wq(endpoint.ep_1)) + '(request: Request): Response<*>';
412
+ return 'suspend fun ' + Companion_instance_1.tq(this.br(endpoint.ip_1)) + '(request: Request): Response<*>';
409
413
  }
410
- function emit_11(_this__u8e3s4, endpoint) {
414
+ function emit_12(_this__u8e3s4, endpoint) {
411
415
  var tmp = Spacer_instance.toString();
412
416
  var tmp_0 = emitConstructor(this, _this__u8e3s4, endpoint);
413
- var tmp_1 = Spacer_instance.qr(2);
417
+ var tmp_1 = Spacer_instance.vr(2);
414
418
  var tmp_2 = get_pathParams(endpoint);
415
419
  var tmp_3 = brace(this, joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_7(this)));
416
- var tmp_4 = Spacer_instance.qr(2);
417
- var tmp_5 = Spacer_instance.qr(2);
418
- var tmp_6 = brace(this, joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
419
- var tmp_7 = Spacer_instance.qr(2);
420
- var tmp_8 = brace(this, joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
421
- var tmp_9 = _this__u8e3s4.np_1 == null ? Spacer_instance.qr(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
420
+ var tmp_4 = Spacer_instance.vr(2);
421
+ var tmp_5 = Spacer_instance.vr(2);
422
+ var tmp_6 = brace(this, joinToString(endpoint.lp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
423
+ var tmp_7 = Spacer_instance.vr(2);
424
+ var tmp_8 = brace(this, joinToString(endpoint.mp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
425
+ var tmp_9 = _this__u8e3s4.rp_1 == null ? Spacer_instance.vr(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
422
426
  var tmp_10 = Spacer_instance.toString();
423
- var tmp_11 = Spacer_instance.qr(2);
424
- var tmp_12 = Spacer_instance.qr(3);
425
- return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.fp_1.a3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.qr(3) + 'method = request.method.name,\n |' + Spacer_instance.qr(3) + 'queries = ' + this.n1w(endpoint) + ',\n |' + Spacer_instance.qr(3) + 'headers = ' + this.m1w(endpoint) + ',\n |' + Spacer_instance.qr(3) + 'body = ' + (!(_this__u8e3s4.np_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.np_1) + '>())' : 'null') + ',\n |' + Spacer_instance.qr(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.qr(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
427
+ var tmp_11 = Spacer_instance.vr(2);
428
+ var tmp_12 = Spacer_instance.vr(3);
429
+ return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.jp_1.a3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.kp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.vr(3) + 'method = request.method.name,\n |' + Spacer_instance.vr(3) + 'queries = ' + this.s1w(endpoint) + ',\n |' + Spacer_instance.vr(3) + 'headers = ' + this.r1w(endpoint) + ',\n |' + Spacer_instance.vr(3) + 'body = ' + (!(_this__u8e3s4.rp_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.rp_1) + '>())' : 'null') + ',\n |' + Spacer_instance.vr(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.vr(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
426
430
  }
427
431
  function emitRequestHeaders(_this__u8e3s4) {
428
432
  var tmp;
429
- if (_this__u8e3s4.ip_1.r()) {
433
+ if (_this__u8e3s4.mp_1.r()) {
430
434
  tmp = 'emptyMap()';
431
435
  } else {
432
- var tmp_0 = Spacer_instance.qr(5);
433
- var tmp_1 = ',\n' + Spacer_instance.qr(5);
434
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.ip_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.qr(4) + ')\n ');
436
+ var tmp_0 = Spacer_instance.vr(5);
437
+ var tmp_1 = ',\n' + Spacer_instance.vr(5);
438
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.mp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.vr(4) + ')\n ');
435
439
  }
436
440
  return tmp;
437
441
  }
438
442
  function emitQueries(endpoint) {
439
443
  var tmp;
440
444
  // Inline function 'kotlin.collections.isNotEmpty' call
441
- if (!endpoint.hp_1.r()) {
442
- var tmp_0 = Spacer_instance.qr(5);
443
- var tmp_1 = ',\n' + Spacer_instance.qr(5);
444
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.hp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.qr(4) + ')\n ');
445
+ if (!endpoint.lp_1.r()) {
446
+ var tmp_0 = Spacer_instance.vr(5);
447
+ var tmp_1 = ',\n' + Spacer_instance.vr(5);
448
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.lp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.vr(4) + ')\n ');
445
449
  } else {
446
450
  tmp = 'emptyMap()';
447
451
  }
448
452
  return tmp;
449
453
  }
450
- function emit_12(_this__u8e3s4) {
454
+ function emit_13(_this__u8e3s4) {
451
455
  // Inline function 'kotlin.let' call
452
- var it = joinToString(_this__u8e3s4.rp_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
456
+ var it = joinToString(_this__u8e3s4.vp_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
453
457
  var responseHeaderFields = isBlank(it) ? '' : ', ' + it;
454
458
  var tmp = Spacer_instance.toString();
455
- var tmp_0 = emit_16(this, _this__u8e3s4.sp_1);
456
- var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.qp_1, 0));
457
- var tmp_2 = emit_16(this, _this__u8e3s4.sp_1);
458
- var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.sp_1));
459
- var tmp_4 = Spacer_instance.qr(2);
460
- var tmp_5 = fixStatus(_this__u8e3s4.qp_1);
461
- var tmp_6 = Spacer_instance.qr(2);
462
- var tmp_7 = brace(this, joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
463
- return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.qp_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.rp_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
459
+ var tmp_0 = emit_16(this, _this__u8e3s4.wp_1);
460
+ var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.up_1, 0));
461
+ var tmp_2 = emit_16(this, _this__u8e3s4.wp_1);
462
+ var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.wp_1));
463
+ var tmp_4 = Spacer_instance.vr(2);
464
+ var tmp_5 = fixStatus(_this__u8e3s4.up_1);
465
+ var tmp_6 = Spacer_instance.vr(2);
466
+ var tmp_7 = brace(this, joinToString(_this__u8e3s4.vp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
467
+ return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.up_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.vp_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
464
468
  }
465
469
  function emitBody(_this__u8e3s4, content) {
466
470
  return 'serialization.serializeBody(response.body, typeOf<' + emit_16(_this__u8e3s4, content) + '>())';
467
471
  }
468
472
  function emitHeaders(_this__u8e3s4) {
469
473
  var tmp;
470
- if (_this__u8e3s4.rp_1.r()) {
474
+ if (_this__u8e3s4.vp_1.r()) {
471
475
  tmp = 'emptyMap()';
472
476
  } else {
473
- var tmp_0 = Spacer_instance.qr(5);
474
- var tmp_1 = ',\n' + Spacer_instance.qr(5);
475
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.rp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.qr(4) + ')\n ');
477
+ var tmp_0 = Spacer_instance.vr(5);
478
+ var tmp_1 = ',\n' + Spacer_instance.vr(5);
479
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.vp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.vr(4) + ')\n ');
476
480
  }
477
481
  return tmp;
478
482
  }
479
483
  initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
480
- function emit_13(union) {
481
- return trimMargin('\n |sealed interface ' + this.wq(union.qo_1) + '\n |\n ');
482
- }
483
- initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
484
484
  function emit_14(enum_0, module_0) {
485
- var tmp = this.d1w(enum_0.gr_1);
486
- return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.hr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.qr(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
485
+ var tmp = this.i1w(enum_0.lr_1);
486
+ return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.mr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.vr(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
487
487
  }
488
488
  initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
489
489
  function emit_15(refined) {
490
- return trimMargin('\n |data class ' + this.d1w(refined.br_1) + '(override val value: ' + this.xp(refined.cr_1) + '): Wirespec.Refined<' + this.xp(refined.cr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.kr(refined) + '\n |}\n |\n ');
490
+ return trimMargin('\n |data class ' + this.i1w(refined.gr_1) + '(override val value: ' + this.bq(refined.hr_1) + '): Wirespec.Refined<' + this.bq(refined.hr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.pr(refined) + '\n |}\n |\n ');
491
491
  }
492
492
  function emitValidator(_this__u8e3s4) {
493
493
  var defaultReturn = 'true';
494
- var type = _this__u8e3s4.cr_1.ou_1;
494
+ var type = _this__u8e3s4.hr_1.tu_1;
495
495
  var tmp;
496
496
  if (type instanceof Integer) {
497
- var tmp0_safe_receiver = type.tt_1;
498
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
497
+ var tmp0_safe_receiver = type.yt_1;
498
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.cq(tmp0_safe_receiver);
499
499
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
500
500
  } else {
501
501
  if (type instanceof Number_0) {
502
- var tmp2_safe_receiver = type.wt_1;
503
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
502
+ var tmp2_safe_receiver = type.bu_1;
503
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.cq(tmp2_safe_receiver);
504
504
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
505
505
  } else {
506
506
  if (type instanceof String_0) {
507
- var tmp4_safe_receiver = type.qt_1;
507
+ var tmp4_safe_receiver = type.vt_1;
508
508
  var tmp_0;
509
509
  var tmp_1 = tmp4_safe_receiver;
510
510
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
511
511
  tmp_0 = null;
512
512
  } else {
513
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
513
+ tmp_0 = this.cq(new RegExp_0(tmp4_safe_receiver));
514
514
  }
515
515
  var tmp5_elvis_lhs = tmp_0;
516
516
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -530,7 +530,7 @@ function emitValidator(_this__u8e3s4) {
530
530
  return tmp;
531
531
  }
532
532
  initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
533
- initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinEndpointDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter]);
533
+ initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinChannelDefinitionEmitter, KotlinTypeDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinEndpointDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter, KotlinIdentifierEmitter]);
534
534
  initMetadataForCompanion(Companion);
535
535
  initMetadataForCompanion(Companion_0);
536
536
  initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
@@ -544,7 +544,7 @@ function emitImports($this, _this__u8e3s4) {
544
544
  var _iterator__ex2g4s = this_0.t();
545
545
  while (_iterator__ex2g4s.u()) {
546
546
  var item = _iterator__ex2g4s.v();
547
- var tmp$ret$0 = 'import ' + $this.d1v().mr_1 + '.model.' + item.ku_1 + ';';
547
+ var tmp$ret$0 = 'import ' + $this.i1v().rr_1 + '.model.' + item.pu_1 + ';';
548
548
  destination.x(tmp$ret$0);
549
549
  }
550
550
  var tmp = destination;
@@ -557,52 +557,52 @@ function KotlinChannelDefinitionEmitter$emitImports$lambda(it) {
557
557
  function KotlinChannelDefinitionEmitter() {
558
558
  }
559
559
  function KotlinEmitter(packageName, emitShared) {
560
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
561
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
560
+ packageName = packageName === VOID ? Companion_instance.qr('community.flock.wirespec.generated') : packageName;
561
+ emitShared = emitShared === VOID ? Companion_instance_0.ko() : emitShared;
562
562
  LanguageEmitter.call(this);
563
- this.e1w_1 = packageName;
564
- this.f1w_1 = emitShared;
565
- this.g1w_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
566
- this.h1w_1 = FileExtension_Kotlin_getInstance();
567
- this.i1w_1 = KotlinShared_getInstance();
568
- this.j1w_1 = '//';
569
- }
570
- protoOf(KotlinEmitter).d1v = function () {
571
- return this.e1w_1;
563
+ this.j1w_1 = packageName;
564
+ this.k1w_1 = emitShared;
565
+ this.l1w_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
566
+ this.m1w_1 = FileExtension_Kotlin_getInstance();
567
+ this.n1w_1 = KotlinShared_getInstance();
568
+ this.o1w_1 = '//';
569
+ }
570
+ protoOf(KotlinEmitter).i1v = function () {
571
+ return this.j1w_1;
572
572
  };
573
- protoOf(KotlinEmitter).eq = function () {
574
- return this.h1w_1;
573
+ protoOf(KotlinEmitter).iq = function () {
574
+ return this.m1w_1;
575
575
  };
576
- protoOf(KotlinEmitter).m1v = function () {
577
- return this.i1w_1;
576
+ protoOf(KotlinEmitter).r1v = function () {
577
+ return this.n1w_1;
578
578
  };
579
- protoOf(KotlinEmitter).fq = function () {
580
- return this.j1w_1;
579
+ protoOf(KotlinEmitter).jq = function () {
580
+ return this.o1w_1;
581
581
  };
582
- protoOf(KotlinEmitter).tq = function (module_0, logger) {
582
+ protoOf(KotlinEmitter).yq = function (module_0, logger) {
583
583
  // Inline function 'kotlin.let' call
584
- var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
585
- return this.f1w_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.lr('community.flock.wirespec.kotlin').or() + 'Wirespec', this.m1v().l1w_1)) : it;
584
+ var it = protoOf(LanguageEmitter).yq.call(this, module_0, logger);
585
+ return this.k1w_1.lo_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.qr('community.flock.wirespec.kotlin').tr() + 'Wirespec', this.r1v().q1w_1)) : it;
586
586
  };
587
- protoOf(KotlinEmitter).uq = function (definition, module_0, logger) {
587
+ protoOf(KotlinEmitter).zq = function (definition, module_0, logger) {
588
588
  // Inline function 'kotlin.let' call
589
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
590
- var subPackageName = plus(this.d1v(), definition);
591
- var tmp = subPackageName.or() + it.io_1;
589
+ var it = protoOf(LanguageEmitter).zq.call(this, definition, module_0, logger);
590
+ var subPackageName = plus(this.i1v(), definition);
591
+ var tmp = subPackageName.tr() + it.mo_1;
592
592
  // Inline function 'kotlin.text.trimStart' call
593
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.qq(module_0) ? this.g1w_1 : '') + '\n |' + it.jo_1 + '\n ');
593
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.uq(module_0) ? this.l1w_1 : '') + '\n |' + it.no_1 + '\n ');
594
594
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
595
595
  return new Emitted(tmp, tmp$ret$0);
596
596
  };
597
597
  function emitStatusInterfaces($this, _this__u8e3s4) {
598
598
  // Inline function 'kotlin.collections.map' call
599
- var this_0 = _this__u8e3s4.kp_1;
599
+ var this_0 = _this__u8e3s4.op_1;
600
600
  // Inline function 'kotlin.collections.mapTo' call
601
601
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
602
602
  var _iterator__ex2g4s = this_0.t();
603
603
  while (_iterator__ex2g4s.u()) {
604
604
  var item = _iterator__ex2g4s.v();
605
- var tmp$ret$0 = new Char(charCodeAt(item.qp_1, 0));
605
+ var tmp$ret$0 = new Char(charCodeAt(item.up_1, 0));
606
606
  destination.x(tmp$ret$0);
607
607
  }
608
608
  var tmp = distinct(destination);
@@ -610,13 +610,13 @@ function emitStatusInterfaces($this, _this__u8e3s4) {
610
610
  }
611
611
  function emitResponseInterfaces($this, _this__u8e3s4) {
612
612
  // Inline function 'kotlin.collections.map' call
613
- var this_0 = _this__u8e3s4.kp_1;
613
+ var this_0 = _this__u8e3s4.op_1;
614
614
  // Inline function 'kotlin.collections.mapTo' call
615
615
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
616
616
  var _iterator__ex2g4s = this_0.t();
617
617
  while (_iterator__ex2g4s.u()) {
618
618
  var item = _iterator__ex2g4s.v();
619
- var tmp$ret$0 = emit_16($this, item.sp_1);
619
+ var tmp$ret$0 = emit_16($this, item.wp_1);
620
620
  destination.x(tmp$ret$0);
621
621
  }
622
622
  var tmp = distinct(destination);
@@ -625,64 +625,64 @@ function emitResponseInterfaces($this, _this__u8e3s4) {
625
625
  function emitConstructor($this, _this__u8e3s4, endpoint) {
626
626
  var tmp = get_pathParams(endpoint);
627
627
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda($this)));
628
- var tmp_1 = orNull(joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
629
- var tmp_2 = orNull(joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
630
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
628
+ var tmp_1 = orNull(joinToString(endpoint.lp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
629
+ var tmp_2 = orNull(joinToString(endpoint.mp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
630
+ var tmp0_safe_receiver = _this__u8e3s4.rp_1;
631
631
  var tmp_3;
632
632
  if (tmp0_safe_receiver == null) {
633
633
  tmp_3 = null;
634
634
  } else {
635
635
  // Inline function 'kotlin.let' call
636
- tmp_3 = Spacer_instance.qr(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
636
+ tmp_3 = Spacer_instance.vr(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
637
637
  }
638
638
  // Inline function 'kotlin.let' call
639
639
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
640
- return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.np_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.np_1) + '> {';
640
+ return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.rp_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.rp_1) + '> {';
641
641
  }
642
642
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
643
643
  var tmp = get_indexedPathParams(endpoint);
644
644
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
645
- var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
646
- var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
647
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
645
+ var tmp_1 = orNull(joinToString(endpoint.lp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
646
+ var tmp_2 = orNull(joinToString(endpoint.mp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
647
+ var tmp0_safe_receiver = _this__u8e3s4.rp_1;
648
648
  var tmp_3;
649
649
  if (tmp0_safe_receiver == null) {
650
650
  tmp_3 = null;
651
651
  } else {
652
652
  // Inline function 'kotlin.let' call
653
- tmp_3 = Spacer_instance.qr(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
653
+ tmp_3 = Spacer_instance.vr(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
654
654
  }
655
655
  // Inline function 'kotlin.let' call
656
656
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
657
- return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.qr(2) + ')';
657
+ return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.vr(2) + ')';
658
658
  }
659
659
  function emitSerialized($this, _this__u8e3s4) {
660
- return trimMargin('\n |' + Spacer_instance.qr(3) + 'is Response' + _this__u8e3s4.qp_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.qr(4) + 'statusCode = response.status,\n |' + Spacer_instance.qr(4) + 'headers = ' + $this.p1w(_this__u8e3s4) + ',\n |' + Spacer_instance.qr(4) + 'body = ' + (!(_this__u8e3s4.sp_1 == null) ? $this.o1w($this, _this__u8e3s4.sp_1) : 'null') + ',\n |' + Spacer_instance.qr(3) + ')\n ');
660
+ return trimMargin('\n |' + Spacer_instance.vr(3) + 'is Response' + _this__u8e3s4.up_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.vr(4) + 'statusCode = response.status,\n |' + Spacer_instance.vr(4) + 'headers = ' + $this.u1w(_this__u8e3s4) + ',\n |' + Spacer_instance.vr(4) + 'body = ' + (!(_this__u8e3s4.wp_1 == null) ? $this.t1w($this, _this__u8e3s4.wp_1) : 'null') + ',\n |' + Spacer_instance.vr(3) + ')\n ');
661
661
  }
662
662
  function emitDeserialized($this, _this__u8e3s4) {
663
- var tmp = Spacer_instance.qr(3) + _this__u8e3s4.qp_1 + ' -> Response' + _this__u8e3s4.qp_1 + '(';
663
+ var tmp = Spacer_instance.vr(3) + _this__u8e3s4.up_1 + ' -> Response' + _this__u8e3s4.up_1 + '(';
664
664
  var tmp_0;
665
- if (!(_this__u8e3s4.sp_1 == null)) {
666
- tmp_0 = Spacer_instance.qr(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.sp_1) + '>()),';
665
+ if (!(_this__u8e3s4.wp_1 == null)) {
666
+ tmp_0 = Spacer_instance.vr(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.wp_1) + '>()),';
667
667
  } else {
668
- tmp_0 = Spacer_instance.qr(4) + 'body = Unit,';
668
+ tmp_0 = Spacer_instance.vr(4) + 'body = Unit,';
669
669
  }
670
670
  var tmp_1 = tmp_0;
671
- return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.qr(3) + ')']), '\n');
671
+ return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.vp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.vr(3) + ')']), '\n');
672
672
  }
673
673
  function emitSerializedMapEntry($this, _this__u8e3s4, type, fields) {
674
- return '"' + _this__u8e3s4.ap_1.l1() + '" to ' + type + '.' + fields + '.' + $this.wq(_this__u8e3s4.ap_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.xp(_this__u8e3s4.bp_1) + '>()) }.orEmpty()';
674
+ return '"' + _this__u8e3s4.ep_1.l1() + '" to ' + type + '.' + fields + '.' + $this.br(_this__u8e3s4.ep_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.bq(_this__u8e3s4.fp_1) + '>()) }.orEmpty()';
675
675
  }
676
676
  function emitDeserialized_0($this, _this__u8e3s4) {
677
- return Spacer_instance.qr(3) + $this.wq(_this__u8e3s4.me_1.lp_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.le_1 + '], typeOf<' + $this.xp(_this__u8e3s4.me_1.mp_1) + '>())';
677
+ return Spacer_instance.vr(3) + $this.br(_this__u8e3s4.pe_1.pp_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.oe_1 + '], typeOf<' + $this.bq(_this__u8e3s4.pe_1.qp_1) + '>())';
678
678
  }
679
679
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
680
- var trimMargin_0 = trimMargin('\n |' + Spacer_instance.qr(spaces) + $this.wq(_this__u8e3s4.ap_1) + ' =\n |' + Spacer_instance.qr(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.qr(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.qr(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.ap_1.l1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.qr(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.xp(_this__u8e3s4.bp_1) + '>()) }\n ');
680
+ var trimMargin_0 = trimMargin('\n |' + Spacer_instance.vr(spaces) + $this.br(_this__u8e3s4.ep_1) + ' =\n |' + Spacer_instance.vr(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.vr(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.vr(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.ep_1.l1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.vr(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.bq(_this__u8e3s4.fp_1) + '>()) }\n ');
681
681
  var tmp;
682
- if (_this__u8e3s4.bp_1.cu()) {
682
+ if (_this__u8e3s4.fp_1.hu()) {
683
683
  tmp = trimMargin_0;
684
684
  } else {
685
- tmp = trimMargin_0 + '\n' + Spacer_instance.qr(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.wq(_this__u8e3s4.ap_1) + ' is null")';
685
+ tmp = trimMargin_0 + '\n' + Spacer_instance.vr(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.br(_this__u8e3s4.ep_1) + ' is null")';
686
686
  }
687
687
  return tmp;
688
688
  }
@@ -692,16 +692,16 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
692
692
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
693
693
  }
694
694
  function emitIdentifier($this, _this__u8e3s4) {
695
- return 'request.path.' + $this.wq(_this__u8e3s4.lp_1) + '.let{serialization.serializePath(it, typeOf<' + $this.xp(_this__u8e3s4.mp_1) + '>())}';
695
+ return 'request.path.' + $this.br(_this__u8e3s4.pp_1) + '.let{serialization.serializePath(it, typeOf<' + $this.bq(_this__u8e3s4.qp_1) + '>())}';
696
696
  }
697
697
  function emit_16($this, _this__u8e3s4) {
698
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
699
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
698
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.tp_1;
699
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.bq(tmp1_safe_receiver);
700
700
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : removeQuestionMark(tmp2_safe_receiver);
701
701
  return tmp3_elvis_lhs == null ? 'Unit' : tmp3_elvis_lhs;
702
702
  }
703
703
  function emit_17($this, _this__u8e3s4) {
704
- return $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
704
+ return $this.br(_this__u8e3s4.pp_1) + ': ' + $this.bq(_this__u8e3s4.qp_1);
705
705
  }
706
706
  function brace($this, _this__u8e3s4) {
707
707
  return wrap($this, _this__u8e3s4, '(', ')');
@@ -719,10 +719,10 @@ function wrap($this, _this__u8e3s4, prefix, postfix) {
719
719
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
720
720
  var tmp;
721
721
  if (_this__u8e3s4.r()) {
722
- tmp = Spacer_instance.qr(spaces) + 'data object ' + name + ' : ' + extends_0;
722
+ tmp = Spacer_instance.vr(spaces) + 'data object ' + name + ' : ' + extends_0;
723
723
  } else {
724
- var tmp_0 = Spacer_instance.qr(spaces);
725
- tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.qr(spaces) + ') : ' + extends_0 + '\n ');
724
+ var tmp_0 = Spacer_instance.vr(spaces);
725
+ tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.vr(spaces) + ') : ' + extends_0 + '\n ');
726
726
  }
727
727
  return tmp;
728
728
  }
@@ -741,17 +741,17 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_0(this$0) {
741
741
  }
742
742
  function KotlinEndpointDefinitionEmitter$emit$lambda_1(this$0) {
743
743
  return function (it) {
744
- return this$0.wp(it);
744
+ return this$0.aq(it);
745
745
  };
746
746
  }
747
747
  function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
748
748
  return function (it) {
749
- return this$0.wp(it);
749
+ return this$0.aq(it);
750
750
  };
751
751
  }
752
752
  function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
753
753
  return function (it) {
754
- return this$0.r1v(it);
754
+ return this$0.w1v(it);
755
755
  };
756
756
  }
757
757
  function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -775,24 +775,24 @@ function KotlinEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
775
775
  }
776
776
  function KotlinEndpointDefinitionEmitter$emit$lambda_7(this$0) {
777
777
  return function (it) {
778
- return this$0.wq(it.lp_1);
778
+ return this$0.br(it.pp_1);
779
779
  };
780
780
  }
781
781
  function KotlinEndpointDefinitionEmitter$emit$lambda_8(this$0) {
782
782
  return function (it) {
783
- return this$0.wq(it.ap_1);
783
+ return this$0.br(it.ep_1);
784
784
  };
785
785
  }
786
786
  function KotlinEndpointDefinitionEmitter$emit$lambda_9(this$0) {
787
787
  return function (it) {
788
- return this$0.wq(it.ap_1);
788
+ return this$0.br(it.ep_1);
789
789
  };
790
790
  }
791
791
  function KotlinEndpointDefinitionEmitter$emit$lambda_10(this$0) {
792
792
  return function (it) {
793
793
  var tmp;
794
794
  if (it instanceof Literal) {
795
- tmp = '"' + it.hq_1 + '"';
795
+ tmp = '"' + it.lq_1 + '"';
796
796
  } else {
797
797
  if (it instanceof Param) {
798
798
  tmp = emitIdentifier(this$0, it);
@@ -815,32 +815,32 @@ function KotlinEndpointDefinitionEmitter$emitQueries$lambda(this$0) {
815
815
  }
816
816
  function KotlinEndpointDefinitionEmitter$emit$lambda_11(this$0) {
817
817
  return function (it) {
818
- return 'val ' + this$0.wp(it);
818
+ return 'val ' + this$0.aq(it);
819
819
  };
820
820
  }
821
821
  function KotlinEndpointDefinitionEmitter$emit$lambda_12(this$0) {
822
822
  return function (it) {
823
- return this$0.wq(it.ap_1);
823
+ return this$0.br(it.ep_1);
824
824
  };
825
825
  }
826
826
  function KotlinEndpointDefinitionEmitter$emit$lambda_13(this$0) {
827
827
  return function (it) {
828
- return this$0.wp(it);
828
+ return this$0.aq(it);
829
829
  };
830
830
  }
831
831
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
832
832
  return function (it) {
833
- return Spacer_instance.qr(2) + emit_17(this$0, it);
833
+ return Spacer_instance.vr(2) + emit_17(this$0, it);
834
834
  };
835
835
  }
836
836
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
837
837
  return function (it) {
838
- return Spacer_instance.qr(2) + this$0.wp(it);
838
+ return Spacer_instance.vr(2) + this$0.aq(it);
839
839
  };
840
840
  }
841
841
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
842
842
  return function (it) {
843
- return Spacer_instance.qr(2) + this$0.wp(it);
843
+ return Spacer_instance.vr(2) + this$0.aq(it);
844
844
  };
845
845
  }
846
846
  function KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
@@ -870,7 +870,7 @@ function KotlinEndpointDefinitionEmitter$emitDeserialized$lambda(this$0) {
870
870
  }
871
871
  function KotlinEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
872
872
  return function (it) {
873
- return Spacer_instance.qr($spaces + 1 | 0) + 'val ' + $block(it);
873
+ return Spacer_instance.vr($spaces + 1 | 0) + 'val ' + $block(it);
874
874
  };
875
875
  }
876
876
  function KotlinEndpointDefinitionEmitter() {
@@ -879,18 +879,18 @@ function sanitizeNegative($this, _this__u8e3s4) {
879
879
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
880
880
  }
881
881
  function sanitizeEnum($this, _this__u8e3s4) {
882
- return $this.s1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
882
+ return $this.x1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
883
883
  }
884
884
  function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
885
885
  return function (it) {
886
- return this$0.t1v(sanitizeEnum(this$0, it)) + '("' + it + '")';
886
+ return this$0.y1v(sanitizeEnum(this$0, it)) + '("' + it + '")';
887
887
  };
888
888
  }
889
889
  function KotlinEnumDefinitionEmitter() {
890
890
  }
891
891
  function Companion() {
892
892
  Companion_instance_2 = this;
893
- this.q1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
893
+ this.v1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
894
894
  }
895
895
  var Companion_instance_2;
896
896
  function Companion_getInstance_0() {
@@ -904,7 +904,7 @@ function KotlinIdentifierEmitter$sanitize$lambda(it) {
904
904
  function KotlinIdentifierEmitter() {
905
905
  }
906
906
  function _get_sanitizationConfig__sns434($this) {
907
- var tmp0 = $this.w1w_1;
907
+ var tmp0 = $this.b1x_1;
908
908
  var tmp = KProperty1;
909
909
  // Inline function 'kotlin.getValue' call
910
910
  getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
@@ -921,7 +921,7 @@ function sanitize_0($this, _this__u8e3s4) {
921
921
  var item = _iterator__ex2g4s.v();
922
922
  var _unary__edvuaz = index;
923
923
  index = _unary__edvuaz + 1 | 0;
924
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
924
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
925
925
  destination.x(tmp$ret$0);
926
926
  }
927
927
  // Inline function 'kotlin.text.filter' call
@@ -969,7 +969,7 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
969
969
  return tmp;
970
970
  }
971
971
  function sanitizeKeywords_0($this, _this__u8e3s4) {
972
- return Companion_getInstance_1().x1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
972
+ return Companion_getInstance_1().c1x_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
973
973
  }
974
974
  function sanitizeSymbol($this, _this__u8e3s4) {
975
975
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -982,7 +982,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
982
982
  var item = _iterator__ex2g4s.v();
983
983
  var _unary__edvuaz = index;
984
984
  index = _unary__edvuaz + 1 | 0;
985
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
985
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
986
986
  destination.x(tmp$ret$0);
987
987
  }
988
988
  // Inline function 'kotlin.text.filter' call
@@ -1009,7 +1009,7 @@ function sanitizeEnum_0($this, _this__u8e3s4) {
1009
1009
  }
1010
1010
  function Companion_0() {
1011
1011
  Companion_instance_3 = this;
1012
- this.x1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1012
+ this.c1x_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1013
1013
  }
1014
1014
  var Companion_instance_3;
1015
1015
  function Companion_getInstance_1() {
@@ -1022,13 +1022,13 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1022
1022
  }
1023
1023
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1024
1024
  return function (name) {
1025
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol(this$0, name.s1h());
1025
+ var sanitized = name.l1h_1.a1() > 1 ? name.x1l() : sanitizeSymbol(this$0, name.x1h());
1026
1026
  return new Name(listOf(sanitized));
1027
1027
  };
1028
1028
  }
1029
1029
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1030
1030
  return function (name) {
1031
- return new Name(listOf(sanitizeSymbol(this$0, name.s1l())));
1031
+ return new Name(listOf(sanitizeSymbol(this$0, name.x1l())));
1032
1032
  };
1033
1033
  }
1034
1034
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -1041,17 +1041,17 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1041
1041
  var tmp;
1042
1042
  var tmp_0;
1043
1043
  if (stmt instanceof FunctionCall) {
1044
- tmp_0 = stmt.b1m_1.s1h() === 'validate';
1044
+ tmp_0 = stmt.g1m_1.x1h() === 'validate';
1045
1045
  } else {
1046
1046
  tmp_0 = false;
1047
1047
  }
1048
1048
  if (tmp_0) {
1049
- tmp = transformChildren(stmt.f1m(VOID, emptyList()), tr);
1049
+ tmp = transformChildren(stmt.k1m(VOID, emptyList()), tr);
1050
1050
  } else {
1051
1051
  if (stmt instanceof ConstructorStatement) {
1052
- var tmp_1 = tr.p1t(stmt.p1m_1);
1052
+ var tmp_1 = tr.u1t(stmt.u1m_1);
1053
1053
  // Inline function 'kotlin.collections.map' call
1054
- var this_0 = stmt.q1m_1;
1054
+ var this_0 = stmt.v1m_1;
1055
1055
  // Inline function 'kotlin.collections.mapTo' call
1056
1056
  var destination = ArrayList_init_$Create$(this_0.a1());
1057
1057
  // Inline function 'kotlin.collections.iterator' call
@@ -1062,7 +1062,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1062
1062
  var name = item.k1();
1063
1063
  // Inline function 'kotlin.collections.component2' call
1064
1064
  var expr = item.l1();
1065
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.s1t(expr));
1065
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.x1t(expr));
1066
1066
  destination.x(tmp$ret$3);
1067
1067
  }
1068
1068
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -1075,7 +1075,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1075
1075
  }
1076
1076
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1077
1077
  return function () {
1078
- var tmp = Companion_getInstance_1().x1w_1;
1078
+ var tmp = Companion_getInstance_1().c1x_1;
1079
1079
  var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1080
1080
  var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1081
1081
  var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1092,7 +1092,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1092
1092
  var tmp;
1093
1093
  if (element instanceof File) {
1094
1094
  // Inline function 'kotlin.collections.partition' call
1095
- var this_0 = element.t1m_1;
1095
+ var this_0 = element.y1m_1;
1096
1096
  var first = ArrayList_init_$Create$_0();
1097
1097
  var second = ArrayList_init_$Create$_0();
1098
1098
  var _iterator__ex2g4s = this_0.t();
@@ -1105,9 +1105,9 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1105
1105
  }
1106
1106
  }
1107
1107
  var _destruct__k2r9zo = new Pair(first, second);
1108
- var packageElements = _destruct__k2r9zo.ne();
1109
- var rest = _destruct__k2r9zo.oe();
1110
- tmp = element.w1m(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1108
+ var packageElements = _destruct__k2r9zo.qe();
1109
+ var rest = _destruct__k2r9zo.re();
1110
+ tmp = element.b1n(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1111
1111
  } else {
1112
1112
  tmp = element;
1113
1113
  }
@@ -1118,11 +1118,11 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
1118
1118
  return function (element, transformer) {
1119
1119
  var tmp;
1120
1120
  if (element instanceof Namespace) {
1121
- var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? $clientServer : emptyList();
1121
+ var injected = element.d1n_1.equals(Companion_getInstance().k1h('Wirespec')) ? $clientServer : emptyList();
1122
1122
  var tmp_0;
1123
1123
  // Inline function 'kotlin.collections.isNotEmpty' call
1124
1124
  if (!injected.r()) {
1125
- tmp_0 = withElements(element, plus_2(element.u1m(), injected));
1125
+ tmp_0 = withElements(element, plus_2(element.z1m(), injected));
1126
1126
  } else {
1127
1127
  tmp_0 = element;
1128
1128
  }
@@ -1141,27 +1141,27 @@ function KotlinIrEmitter$emit$lambda(this$0) {
1141
1141
  }
1142
1142
  function KotlinIrEmitter(packageName, emitShared) {
1143
1143
  Companion_getInstance_1();
1144
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1145
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1146
- this.r1w_1 = packageName;
1147
- this.s1w_1 = emitShared;
1148
- this.t1w_1 = KotlinGenerator_instance;
1149
- this.u1w_1 = FileExtension_Kotlin_getInstance();
1150
- this.v1w_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1144
+ packageName = packageName === VOID ? Companion_instance.qr('community.flock.wirespec.generated') : packageName;
1145
+ emitShared = emitShared === VOID ? Companion_instance_0.ko() : emitShared;
1146
+ this.w1w_1 = packageName;
1147
+ this.x1w_1 = emitShared;
1148
+ this.y1w_1 = KotlinGenerator_instance;
1149
+ this.z1w_1 = FileExtension_Kotlin_getInstance();
1150
+ this.a1x_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1151
1151
  var tmp = this;
1152
- tmp.w1w_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1152
+ tmp.b1x_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1153
1153
  }
1154
- protoOf(KotlinIrEmitter).d1v = function () {
1155
- return this.r1w_1;
1154
+ protoOf(KotlinIrEmitter).i1v = function () {
1155
+ return this.w1w_1;
1156
1156
  };
1157
- protoOf(KotlinIrEmitter).k1u = function () {
1158
- return this.t1w_1;
1157
+ protoOf(KotlinIrEmitter).p1u = function () {
1158
+ return this.y1w_1;
1159
1159
  };
1160
- protoOf(KotlinIrEmitter).eq = function () {
1161
- return this.u1w_1;
1160
+ protoOf(KotlinIrEmitter).iq = function () {
1161
+ return this.z1w_1;
1162
1162
  };
1163
- protoOf(KotlinIrEmitter).n1u = function () {
1164
- var packageName = Companion_instance.lr('community.flock.wirespec.kotlin');
1163
+ protoOf(KotlinIrEmitter).s1u = function () {
1164
+ var packageName = Companion_instance.qr('community.flock.wirespec.kotlin');
1165
1165
  var clientServer = convertClientServer(packageName);
1166
1166
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1167
1167
  var this_0 = convert(packageName);
@@ -1169,62 +1169,62 @@ protoOf(KotlinIrEmitter).n1u = function () {
1169
1169
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1170
1170
  var tmp = scope;
1171
1171
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1172
- var this_1 = scope.x1t_1;
1172
+ var this_1 = scope.c1u_1;
1173
1173
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1174
1174
  // Inline function 'kotlin.apply' call
1175
1175
  var this_2 = new TransformerBuilder();
1176
- this_2.c1h(KotlinIrEmitter$emitShared$lambda);
1177
- var tmp$ret$2 = this_2.d1h();
1178
- tmp.x1t_1 = transform(this_1, tmp$ret$2);
1176
+ this_2.h1h(KotlinIrEmitter$emitShared$lambda);
1177
+ var tmp$ret$2 = this_2.i1h();
1178
+ tmp.c1u_1 = transform(this_1, tmp$ret$2);
1179
1179
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1180
1180
  var tmp_0 = scope;
1181
1181
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1182
1182
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1183
- var this_3 = scope.x1t_1;
1183
+ var this_3 = scope.c1u_1;
1184
1184
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1185
1185
  // Inline function 'kotlin.apply' call
1186
1186
  var this_4 = new TransformerBuilder();
1187
- this_4.c1h(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1188
- var tmp$ret$7 = this_4.d1h();
1189
- tmp_0.x1t_1 = transform(this_3, tmp$ret$7);
1190
- var tmp_1 = scope.x1t_1;
1187
+ this_4.h1h(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1188
+ var tmp$ret$7 = this_4.i1h();
1189
+ tmp_0.c1u_1 = transform(this_3, tmp$ret$7);
1190
+ var tmp_1 = scope.c1u_1;
1191
1191
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1192
1192
  var tmp_2;
1193
- if (this.s1w_1.ho_1) {
1193
+ if (this.x1w_1.lo_1) {
1194
1194
  tmp_2 = wirespecShared;
1195
1195
  } else {
1196
1196
  tmp_2 = null;
1197
1197
  }
1198
1198
  return tmp_2;
1199
1199
  };
1200
- protoOf(KotlinIrEmitter).uq = function (definition, module_0, logger) {
1200
+ protoOf(KotlinIrEmitter).zq = function (definition, module_0, logger) {
1201
1201
  var file = emit_0.call(this, definition, module_0, logger);
1202
1202
  // Inline function 'kotlin.takeIf' call
1203
- var this_0 = this.v1w_1;
1203
+ var this_0 = this.a1x_1;
1204
1204
  var tmp;
1205
- if (Companion_instance_1.qq(module_0)) {
1205
+ if (Companion_instance_1.vq(module_0)) {
1206
1206
  tmp = this_0;
1207
1207
  } else {
1208
1208
  tmp = null;
1209
1209
  }
1210
1210
  var tmp$ret$1 = tmp;
1211
- return placeInPackage(prependImports(file, tmp$ret$1), this.d1v(), definition);
1211
+ return placeInPackage(prependImports(file, tmp$ret$1), this.i1v(), definition);
1212
1212
  };
1213
- protoOf(KotlinIrEmitter).up = function (type, module_0) {
1213
+ protoOf(KotlinIrEmitter).yp = function (type, module_0) {
1214
1214
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
1215
1215
  };
1216
- protoOf(KotlinIrEmitter).ir = function (enum_0, module_0) {
1216
+ protoOf(KotlinIrEmitter).nr = function (enum_0, module_0) {
1217
1217
  var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1218
1218
  return injectEnumLabelField(tmp, KotlinIrEmitter$emit$lambda(this));
1219
1219
  };
1220
- protoOf(KotlinIrEmitter).yq = function (union) {
1220
+ protoOf(KotlinIrEmitter).dr = function (union) {
1221
1221
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1222
1222
  };
1223
- protoOf(KotlinIrEmitter).dr = function (refined) {
1223
+ protoOf(KotlinIrEmitter).ir = function (refined) {
1224
1224
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
1225
1225
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1226
1226
  // Inline function 'kotlin.collections.filterIsInstance' call
1227
- var tmp0 = file.u1m();
1227
+ var tmp0 = file.z1m();
1228
1228
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1229
1229
  var destination = ArrayList_init_$Create$_0();
1230
1230
  var _iterator__ex2g4s = tmp0.t();
@@ -1236,13 +1236,13 @@ protoOf(KotlinIrEmitter).dr = function (refined) {
1236
1236
  }
1237
1237
  var tmp0_safe_receiver = firstOrNull_0(destination);
1238
1238
  var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
1239
- return new File(Companion_getInstance().f1h(sanitize_0(this, refined.br_1)), listOfNotNull_0(updatedStruct));
1239
+ return new File(Companion_getInstance().k1h(sanitize_0(this, refined.gr_1)), listOfNotNull_0(updatedStruct));
1240
1240
  };
1241
- protoOf(KotlinIrEmitter).jr = function (endpoint) {
1242
- var imports = buildModelImports(endpoint, this.d1v());
1241
+ protoOf(KotlinIrEmitter).or = function (endpoint) {
1242
+ var imports = buildModelImports(endpoint, this.i1v());
1243
1243
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1244
1244
  // Inline function 'kotlin.collections.filterIsInstance' call
1245
- var tmp0 = convert_3(endpoint).u1m();
1245
+ var tmp0 = convert_3(endpoint).z1m();
1246
1246
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1247
1247
  var destination = ArrayList_init_$Create$_0();
1248
1248
  var _iterator__ex2g4s = tmp0.t();
@@ -1254,8 +1254,8 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
1254
1254
  }
1255
1255
  var tmp$ret$2 = firstOrNull_0(destination);
1256
1256
  var endpointNamespace = ensureNotNull(tmp$ret$2);
1257
- var body = injectCompanionObject(endpointNamespace, endpoint);
1258
- var tmp = sanitizeNames(new File(Companion_getInstance().f1h(sanitize_0(this, endpoint.ep_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1257
+ var body = injectApiAlias(injectCompanionObject(endpointNamespace, endpoint));
1258
+ var tmp = sanitizeNames(new File(Companion_getInstance().k1h(sanitize_0(this, endpoint.ip_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1259
1259
  // Inline function 'kotlin.takeIf' call
1260
1260
  var tmp_0;
1261
1261
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -1267,10 +1267,10 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
1267
1267
  var tmp$ret$5 = tmp_0;
1268
1268
  return prependImports(tmp, tmp$ret$5);
1269
1269
  };
1270
- protoOf(KotlinIrEmitter).xq = function (channel) {
1270
+ protoOf(KotlinIrEmitter).cr = function (channel) {
1271
1271
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1272
1272
  // Inline function 'kotlin.takeIf' call
1273
- var this_0 = buildModelImports(channel, this.d1v());
1273
+ var this_0 = buildModelImports(channel, this.i1v());
1274
1274
  var tmp_0;
1275
1275
  // Inline function 'kotlin.collections.isNotEmpty' call
1276
1276
  if (!this_0.r()) {
@@ -1281,25 +1281,25 @@ protoOf(KotlinIrEmitter).xq = function (channel) {
1281
1281
  var tmp$ret$2 = tmp_0;
1282
1282
  return prependImports(tmp, tmp$ret$2);
1283
1283
  };
1284
- protoOf(KotlinIrEmitter).p1u = function (endpoint) {
1285
- var imports = buildModelImports(endpoint, this.d1v());
1286
- var endpointImport = import_0(this.d1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
1284
+ protoOf(KotlinIrEmitter).u1u = function (endpoint) {
1285
+ var imports = buildModelImports(endpoint, this.i1v());
1286
+ var endpointImport = import_0(this.i1v().rr_1 + '.endpoint', endpoint.ip_1.l1());
1287
1287
  var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
1288
- var subPackageName = plus_0(this.d1v(), 'client');
1289
- var tmp = Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h());
1288
+ var subPackageName = plus_0(this.i1v(), 'client');
1289
+ var tmp = Companion_getInstance().k1h(subPackageName.tr() + file.x1m_1.m1h());
1290
1290
  // Inline function 'kotlin.collections.buildList' call
1291
1291
  // Inline function 'kotlin.collections.buildListInternal' call
1292
1292
  // Inline function 'kotlin.apply' call
1293
1293
  var this_0 = ArrayList_init_$Create$_0();
1294
- this_0.x(new Package(subPackageName.mr_1));
1295
- this_0.e1(this.v1w_1);
1296
- this_0.e1(imports);
1294
+ this_0.x(new Package(subPackageName.rr_1));
1295
+ this_0.f1(this.a1x_1);
1296
+ this_0.f1(imports);
1297
1297
  this_0.x(endpointImport);
1298
- this_0.e1(file.t1m_1);
1298
+ this_0.f1(file.y1m_1);
1299
1299
  var tmp$ret$3 = this_0.o5();
1300
1300
  return new File(tmp, tmp$ret$3);
1301
1301
  };
1302
- protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1302
+ protoOf(KotlinIrEmitter).t1u = function (endpoints, logger) {
1303
1303
  // Inline function 'kotlin.collections.flatMap' call
1304
1304
  // Inline function 'kotlin.collections.flatMapTo' call
1305
1305
  var destination = ArrayList_init_$Create$_0();
@@ -1315,7 +1315,7 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1315
1315
  var _iterator__ex2g4s_0 = destination.t();
1316
1316
  while (_iterator__ex2g4s_0.u()) {
1317
1317
  var e = _iterator__ex2g4s_0.v();
1318
- var key = e.ku_1;
1318
+ var key = e.pu_1;
1319
1319
  if (set.x(key)) {
1320
1320
  list_0.x(e);
1321
1321
  }
@@ -1326,7 +1326,7 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1326
1326
  var _iterator__ex2g4s_1 = list_0.t();
1327
1327
  while (_iterator__ex2g4s_1.u()) {
1328
1328
  var item = _iterator__ex2g4s_1.v();
1329
- var tmp$ret$5 = import_0(this.d1v().mr_1 + '.model', item.ku_1);
1329
+ var tmp$ret$5 = import_0(this.i1v().rr_1 + '.model', item.pu_1);
1330
1330
  destination_0.x(tmp$ret$5);
1331
1331
  }
1332
1332
  var imports = destination_0;
@@ -1336,7 +1336,7 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1336
1336
  var _iterator__ex2g4s_2 = endpoints.t();
1337
1337
  while (_iterator__ex2g4s_2.u()) {
1338
1338
  var item_0 = _iterator__ex2g4s_2.v();
1339
- var tmp$ret$8 = import_0(this.d1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1339
+ var tmp$ret$8 = import_0(this.i1v().rr_1 + '.endpoint', item_0.ip_1.l1());
1340
1340
  destination_1.x(tmp$ret$8);
1341
1341
  }
1342
1342
  var endpointImports = destination_1;
@@ -1346,21 +1346,21 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1346
1346
  var _iterator__ex2g4s_3 = endpoints.t();
1347
1347
  while (_iterator__ex2g4s_3.u()) {
1348
1348
  var item_1 = _iterator__ex2g4s_3.v();
1349
- var tmp$ret$11 = import_0(this.d1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1349
+ var tmp$ret$11 = import_0(this.i1v().rr_1 + '.client', item_1.ip_1.l1() + 'Client');
1350
1350
  destination_2.x(tmp$ret$11);
1351
1351
  }
1352
1352
  var clientImports = destination_2;
1353
1353
  var allImports = plus_2(plus_2(imports, endpointImports), clientImports);
1354
1354
  var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
1355
- var tmp = Companion_getInstance().f1h(this.d1v().or() + file.s1m_1.h1h());
1355
+ var tmp = Companion_getInstance().k1h(this.i1v().tr() + file.x1m_1.m1h());
1356
1356
  // Inline function 'kotlin.collections.buildList' call
1357
1357
  // Inline function 'kotlin.collections.buildListInternal' call
1358
1358
  // Inline function 'kotlin.apply' call
1359
1359
  var this_0 = ArrayList_init_$Create$_0();
1360
- this_0.x(new Package(this.d1v().mr_1));
1361
- this_0.e1(this.v1w_1);
1362
- this_0.e1(allImports);
1363
- this_0.e1(file.t1m_1);
1360
+ this_0.x(new Package(this.i1v().rr_1));
1361
+ this_0.f1(this.a1x_1);
1362
+ this_0.f1(allImports);
1363
+ this_0.f1(file.y1m_1);
1364
1364
  var tmp$ret$17 = this_0.o5();
1365
1365
  return new File(tmp, tmp$ret$17);
1366
1366
  };
@@ -1372,7 +1372,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1372
1372
  var _iterator__ex2g4s = this_0.t();
1373
1373
  while (_iterator__ex2g4s.u()) {
1374
1374
  var e = _iterator__ex2g4s.v();
1375
- var key = e.ku_1;
1375
+ var key = e.pu_1;
1376
1376
  if (set.x(key)) {
1377
1377
  list.x(e);
1378
1378
  }
@@ -1383,11 +1383,28 @@ function buildModelImports(_this__u8e3s4, packageName) {
1383
1383
  var _iterator__ex2g4s_0 = list.t();
1384
1384
  while (_iterator__ex2g4s_0.u()) {
1385
1385
  var item = _iterator__ex2g4s_0.v();
1386
- var tmp$ret$2 = import_0(packageName.mr_1 + '.model', Companion_getInstance().f1h(item.ku_1).h1h());
1386
+ var tmp$ret$2 = import_0(packageName.rr_1 + '.model', Companion_getInstance().k1h(item.pu_1).m1h());
1387
1387
  destination.x(tmp$ret$2);
1388
1388
  }
1389
1389
  return destination;
1390
1390
  }
1391
+ function injectApiAlias(_this__u8e3s4) {
1392
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1393
+ var scope = new TransformScope(_this__u8e3s4);
1394
+ // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1395
+ var tmp = scope;
1396
+ // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1397
+ // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1398
+ var this_0 = scope.c1u_1;
1399
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
1400
+ // Inline function 'kotlin.apply' call
1401
+ var this_1 = new TransformerBuilder();
1402
+ this_1.h1h(injectApiAlias$lambda);
1403
+ var tmp$ret$2 = this_1.i1h();
1404
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1405
+ var tmp_0 = scope.c1u_1;
1406
+ return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1407
+ }
1391
1408
  function injectCompanionObject(_this__u8e3s4, endpoint) {
1392
1409
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1393
1410
  var scope = new TransformScope(_this__u8e3s4);
@@ -1395,31 +1412,49 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
1395
1412
  var tmp = scope;
1396
1413
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1397
1414
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1398
- var this_0 = scope.x1t_1;
1415
+ var this_0 = scope.c1u_1;
1399
1416
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1400
1417
  // Inline function 'kotlin.apply' call
1401
1418
  var this_1 = new TransformerBuilder();
1402
- this_1.c1h(injectCompanionObject$lambda(endpoint));
1403
- var tmp$ret$2 = this_1.d1h();
1404
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1405
- var tmp_0 = scope.x1t_1;
1419
+ this_1.h1h(injectCompanionObject$lambda(endpoint));
1420
+ var tmp$ret$2 = this_1.i1h();
1421
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1422
+ var tmp_0 = scope.c1u_1;
1406
1423
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1407
1424
  }
1408
1425
  function buildCompanionObject(endpoint) {
1409
- var pathTemplate = '/' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
1426
+ var pathTemplate = '/' + joinToString(endpoint.kp_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
1410
1427
  // Inline function 'kotlin.let' call
1411
- var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.fp_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
1428
+ var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.jp_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
1412
1429
  return raw(p0);
1413
1430
  }
1431
+ function injectApiAlias$lambda(element, transformer) {
1432
+ var tmp;
1433
+ if (element instanceof Namespace) {
1434
+ var injected = listOf(raw('val api = Handler'));
1435
+ var tmp_0;
1436
+ // Inline function 'kotlin.collections.isNotEmpty' call
1437
+ if (!injected.r()) {
1438
+ tmp_0 = withElements(element, plus_2(element.z1m(), injected));
1439
+ } else {
1440
+ tmp_0 = element;
1441
+ }
1442
+ tmp = tmp_0;
1443
+ } else {
1444
+ tmp = element;
1445
+ }
1446
+ var transformed = tmp;
1447
+ return transformChildren_0(transformed, transformer);
1448
+ }
1414
1449
  function injectCompanionObject$lambda($endpoint) {
1415
1450
  return function (element, transformer) {
1416
1451
  var tmp;
1417
1452
  if (element instanceof Interface) {
1418
- var injected = element.k1n_1.equals(Companion_getInstance().f1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1453
+ var injected = element.q1n_1.equals(Companion_getInstance().k1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1419
1454
  var tmp_0;
1420
1455
  // Inline function 'kotlin.collections.isNotEmpty' call
1421
1456
  if (!injected.r()) {
1422
- tmp_0 = withElements(element, plus_2(element.u1m(), injected));
1457
+ tmp_0 = withElements(element, plus_2(element.z1m(), injected));
1423
1458
  } else {
1424
1459
  tmp_0 = element;
1425
1460
  }
@@ -1434,10 +1469,10 @@ function injectCompanionObject$lambda($endpoint) {
1434
1469
  function buildCompanionObject$lambda(it) {
1435
1470
  var tmp;
1436
1471
  if (it instanceof Literal) {
1437
- tmp = it.hq_1;
1472
+ tmp = it.lq_1;
1438
1473
  } else {
1439
1474
  if (it instanceof Param) {
1440
- tmp = '{' + it.lp_1.l1() + '}';
1475
+ tmp = '{' + it.pp_1.l1() + '}';
1441
1476
  } else {
1442
1477
  noWhenBranchMatchedException();
1443
1478
  }
@@ -1448,8 +1483,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
1448
1483
  }
1449
1484
  function KotlinShared() {
1450
1485
  KotlinShared_instance = this;
1451
- this.k1w_1 = 'community.flock.wirespec.kotlin';
1452
- this.l1w_1 = trimMargin('\n |package ' + this.k1w_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> { val value: T }\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.qr(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.qr(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.qr(2) + 'val pathTemplate: String\n |' + Spacer_instance.qr(2) + 'val method: String\n |' + Spacer_instance.qr(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.qr(2) + 'val pathTemplate: String\n |' + Spacer_instance.qr(2) + 'val method: String\n |' + Spacer_instance.qr(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
1486
+ this.p1w_1 = 'community.flock.wirespec.kotlin';
1487
+ this.q1w_1 = trimMargin('\n |package ' + this.p1w_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> {\n |' + Spacer_instance.vr(2) + 'val value: T\n |' + Spacer_instance.vr(2) + 'fun validate(): Boolean\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.vr(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.vr(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.vr(2) + 'val pathTemplate: String\n |' + Spacer_instance.vr(2) + 'val method: String\n |' + Spacer_instance.vr(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.vr(2) + 'val pathTemplate: String\n |' + Spacer_instance.vr(2) + 'val method: String\n |' + Spacer_instance.vr(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
1453
1488
  }
1454
1489
  protoOf(KotlinShared).toString = function () {
1455
1490
  return 'KotlinShared';
@@ -1472,12 +1507,12 @@ function KotlinShared_getInstance() {
1472
1507
  }
1473
1508
  function KotlinTypeDefinitionEmitter$emit$lambda(this$0) {
1474
1509
  return function (it) {
1475
- return this$0.xp(it);
1510
+ return this$0.bq(it);
1476
1511
  };
1477
1512
  }
1478
1513
  function KotlinTypeDefinitionEmitter$emit$lambda_0(this$0) {
1479
1514
  return function (it) {
1480
- return Spacer_instance.toString() + 'val ' + this$0.wp(it) + ',';
1515
+ return Spacer_instance.toString() + 'val ' + this$0.aq(it) + ',';
1481
1516
  };
1482
1517
  }
1483
1518
  function KotlinTypeDefinitionEmitter() {
@@ -1485,30 +1520,30 @@ function KotlinTypeDefinitionEmitter() {
1485
1520
  function KotlinUnionDefinitionEmitter() {
1486
1521
  }
1487
1522
  //region block: post-declaration
1488
- protoOf(KotlinEmitter).up = emit_4;
1489
- protoOf(KotlinEmitter).vp = emit_5;
1490
- protoOf(KotlinEmitter).wp = emit_6;
1491
- protoOf(KotlinEmitter).xp = emit_7;
1492
- protoOf(KotlinEmitter).yp = emit_8;
1493
- protoOf(KotlinEmitter).ir = emit_14;
1494
- protoOf(KotlinEmitter).dr = emit_15;
1495
- protoOf(KotlinEmitter).jr = emit_10;
1496
- protoOf(KotlinEmitter).yq = emit_13;
1497
- protoOf(KotlinEmitter).wq = emit_3;
1498
- protoOf(KotlinEmitter).xq = emit_9;
1499
- protoOf(KotlinEmitter).q1v = emit_11;
1500
- protoOf(KotlinEmitter).r1v = emit_12;
1501
- protoOf(KotlinEmitter).kr = emitValidator;
1502
- protoOf(KotlinEmitter).d1w = sanitize;
1503
- protoOf(KotlinEmitter).s1v = sanitizeFirstIsDigit;
1504
- protoOf(KotlinEmitter).t1v = sanitizeKeywords;
1505
- protoOf(KotlinEmitter).u1v = emitHandleFunction;
1506
- protoOf(KotlinEmitter).m1w = emitRequestHeaders;
1507
- protoOf(KotlinEmitter).n1w = emitQueries;
1508
- protoOf(KotlinEmitter).o1w = emitBody;
1509
- protoOf(KotlinEmitter).p1w = emitHeaders;
1510
- protoOf(KotlinIrEmitter).on = emit_1;
1511
- protoOf(KotlinIrEmitter).m1u = emit_2;
1523
+ protoOf(KotlinEmitter).yp = emit_4;
1524
+ protoOf(KotlinEmitter).zp = emit_5;
1525
+ protoOf(KotlinEmitter).aq = emit_6;
1526
+ protoOf(KotlinEmitter).bq = emit_7;
1527
+ protoOf(KotlinEmitter).cq = emit_8;
1528
+ protoOf(KotlinEmitter).nr = emit_14;
1529
+ protoOf(KotlinEmitter).ir = emit_15;
1530
+ protoOf(KotlinEmitter).or = emit_11;
1531
+ protoOf(KotlinEmitter).dr = emit_10;
1532
+ protoOf(KotlinEmitter).br = emit_3;
1533
+ protoOf(KotlinEmitter).cr = emit_9;
1534
+ protoOf(KotlinEmitter).v1v = emit_12;
1535
+ protoOf(KotlinEmitter).w1v = emit_13;
1536
+ protoOf(KotlinEmitter).pr = emitValidator;
1537
+ protoOf(KotlinEmitter).i1w = sanitize;
1538
+ protoOf(KotlinEmitter).x1v = sanitizeFirstIsDigit;
1539
+ protoOf(KotlinEmitter).y1v = sanitizeKeywords;
1540
+ protoOf(KotlinEmitter).z1v = emitHandleFunction;
1541
+ protoOf(KotlinEmitter).r1w = emitRequestHeaders;
1542
+ protoOf(KotlinEmitter).s1w = emitQueries;
1543
+ protoOf(KotlinEmitter).t1w = emitBody;
1544
+ protoOf(KotlinEmitter).u1w = emitHeaders;
1545
+ protoOf(KotlinIrEmitter).sn = emit_1;
1546
+ protoOf(KotlinIrEmitter).r1u = emit_2;
1512
1547
  //endregion
1513
1548
  //region block: exports
1514
1549
  export {