@flock/wirespec 0.18.5 → 0.19.0-RC.2

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 (77) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/arrow-arrow-atomic.mjs +12 -12
  4. package/arrow-arrow-core.mjs +163 -163
  5. package/clikt-clikt-mordant.mjs +80 -80
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1574 -1574
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +444 -444
  10. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  12. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  13. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  14. package/kotest-kotest-common.mjs +56 -0
  15. package/kotest-kotest-common.mjs.map +1 -0
  16. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  17. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  18. package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
  19. package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
  20. package/kotest-kotest-property.mjs +3230 -0
  21. package/kotest-kotest-property.mjs.map +1 -0
  22. package/kotest-property-arbs.mjs +482 -0
  23. package/kotest-property-arbs.mjs.map +1 -0
  24. package/kotlin-kotlin-stdlib.mjs +5618 -2436
  25. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  26. package/kotlin-openapi-bindings.mjs +4931 -4931
  27. package/kotlin-openapi-bindings.mjs.map +1 -1
  28. package/kotlin-rgxgen.mjs +1819 -1819
  29. package/kotlinx-coroutines-test.mjs +4 -0
  30. package/kotlinx-coroutines-test.mjs.map +1 -0
  31. package/kotlinx-io-kotlinx-io-core.mjs +453 -453
  32. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  33. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2017 -1983
  34. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  35. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
  36. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  37. package/mordant-mordant.mjs +1364 -1364
  38. package/package.json +9 -2
  39. package/wirespec-generator.d.ts +52 -0
  40. package/wirespec-generator.mjs +9 -0
  41. package/wirespec-src-compiler-core.mjs +1542 -1541
  42. package/wirespec-src-compiler-emitters-java.mjs +476 -413
  43. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  44. package/wirespec-src-compiler-emitters-kotlin.mjs +359 -296
  45. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  46. package/wirespec-src-compiler-emitters-python.mjs +560 -362
  47. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  48. package/wirespec-src-compiler-emitters-rust.mjs +754 -443
  49. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  50. package/wirespec-src-compiler-emitters-scala.mjs +243 -164
  51. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  52. package/wirespec-src-compiler-emitters-typescript.mjs +709 -420
  53. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  54. package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
  55. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  56. package/wirespec-src-compiler-ir.mjs +6676 -4858
  57. package/wirespec-src-compiler-ir.mjs.map +1 -1
  58. package/wirespec-src-compiler-lib.mjs +418 -418
  59. package/wirespec-src-compiler-lib.mjs.map +1 -1
  60. package/wirespec-src-converter-avro.mjs +512 -512
  61. package/wirespec-src-converter-avro.mjs.map +1 -1
  62. package/wirespec-src-converter-openapi.mjs +772 -772
  63. package/wirespec-src-converter-openapi.mjs.map +1 -1
  64. package/wirespec-src-integration-kotest.mjs +1537 -0
  65. package/wirespec-src-integration-kotest.mjs.map +1 -0
  66. package/wirespec-src-plugin-arguments.mjs +185 -185
  67. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  68. package/wirespec-src-plugin-cli.mjs +106 -106
  69. package/wirespec-src-plugin-npm.d.mts +11 -0
  70. package/wirespec-src-plugin-npm.mjs +41 -41
  71. package/wirespec-src-plugin-npm.mjs.map +1 -1
  72. package/wirespec-src-tools-generator.mjs +53 -53
  73. package/wirespec-src-tools-generator.mjs.map +1 -1
  74. package/xmlutil-core.mjs +4 -0
  75. package/xmlutil-core.mjs.map +1 -0
  76. package/xmlutil-serialization.mjs +4 -0
  77. package/xmlutil-serialization.mjs.map +1 -0
@@ -21,6 +21,10 @@ import {
21
21
  spacer28p2fwyb64afn as spacer,
22
22
  FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
23
23
  DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
24
+ Unionccsavx6nrdr2 as Union,
25
+ Refined1lkzc0dg6wey7 as Refined,
26
+ Enum3l2iuc342kle6 as Enum,
27
+ Type12n1gx16iqtcu as Type,
24
28
  plus14o24vdaiongg as plus_0,
25
29
  Bytes_instance1o9u095wd3kx6 as Bytes_instance,
26
30
  Boolean_instance237vwt01w3hs8 as Boolean_instance,
@@ -82,9 +86,15 @@ import {
82
86
  emptyList1g2z5xcrvp2zy as emptyList,
83
87
  Paire9pteg33gng7 as Pair,
84
88
  plus310ted5e4i90h as plus_1,
89
+ substringBefore3n7kj60w69hju as substringBefore,
85
90
  listOf1jh22dvmctj1r as listOf_0,
86
91
  plus20p0vtfmu0596 as plus_2,
87
92
  isInterface3d6p8outrmvmk as isInterface,
93
+ asSequence2phdjljfh9jhx as asSequence_0,
94
+ filterNot56uwv8hfomaa as filterNot,
95
+ mapsbvh18eqox7a as map,
96
+ distinct17vua5ffe1cfv as distinct_0,
97
+ toListx6x8nvfmvvht as toList,
88
98
  addAll1k27qatfgp3k5 as addAll,
89
99
  HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
90
100
  Collection1k04j3hzsbod0 as Collection,
@@ -112,11 +122,11 @@ import {
112
122
  transformChildrend9p91tpcqdkx as transformChildren_0,
113
123
  withElements2toq84v08e72 as withElements,
114
124
  Namespace345pal554qu3j as Namespace,
125
+ import5uhkz67bd8tt as import_0,
115
126
  function12vu2kapzno4w as function_0,
116
127
  String_instance3uxvo48ki208u as String_instance,
117
128
  VariableReference2vlynnhaw1i64 as VariableReference,
118
- JavaGenerator_instance753fwcs3a4n9 as JavaGenerator_instance,
119
- import5uhkz67bd8tt as import_0,
129
+ JavaGenerator_getInstancepty760x3tbfi as JavaGenerator_getInstance,
120
130
  SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
121
131
  convertClientServer1w4pgeabrnbb9 as convertClientServer,
122
132
  toGetterAccessors2z6mndbqwlczg as toGetterAccessors,
@@ -129,8 +139,14 @@ import {
129
139
  emitn3eihixilqyh as emit_0,
130
140
  prependImports32gcj3yb8voha as prependImports,
131
141
  placeInPackage1ffljbk9me4ug as placeInPackage,
132
- convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
142
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
143
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
144
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
145
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
133
146
  sanitizeNames2wqmyf8vafp9x as sanitizeNames,
147
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
148
+ placeInPackagena6oqbi45fz6 as placeInPackage_0,
149
+ convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
134
150
  convert11ert2po54h1y as convert_0,
135
151
  injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
136
152
  convert37aabdzvtv9vg as convert_1,
@@ -141,6 +157,7 @@ import {
141
157
  emitClient32kfwzg2hm5vj as emitClient,
142
158
  emit1oxjujel6f3jb as emit_1,
143
159
  emit3bzdcd0f6nwtj as emit_2,
160
+ beforeGenerate3o8idb3hey1b0 as beforeGenerate,
144
161
  IrEmitterh2m93ojzvkep as IrEmitter,
145
162
  Dict22iqrhoo0g8et as Dict_0,
146
163
  Array2goj74t0aak7b as Array_0,
@@ -169,10 +186,10 @@ import {
169
186
  //endregion
170
187
  //region block: pre-declaration
171
188
  function emit_3(type, module_0) {
172
- var tmp = this.wq(type.vo_1);
173
- var tmp_0 = this.vp(type.wo_1);
189
+ var tmp = this.mv(type.lt_1);
190
+ var tmp_0 = this.lu(type.mt_1);
174
191
  // Inline function 'kotlin.run' call
175
- var $this$run = type.xo_1;
192
+ var $this$run = type.nt_1;
176
193
  var tmp_1;
177
194
  if ($this$run.r()) {
178
195
  tmp_1 = '';
@@ -183,23 +200,23 @@ function emit_3(type, module_0) {
183
200
  return trimMargin('\n |public record ' + tmp + ' (\n |' + tmp_0 + '\n |)' + tmp$ret$1 + ' {\n |};\n |\n ');
184
201
  }
185
202
  function emit_4(_this__u8e3s4) {
186
- return dropLast_0(joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, JavaTypeDefinitionEmitter$emit$lambda_0(this)), 1);
203
+ return dropLast_0(joinToString(_this__u8e3s4.it_1, '\n', VOID, VOID, VOID, VOID, JavaTypeDefinitionEmitter$emit$lambda_0(this)), 1);
187
204
  }
188
205
  function emit_5(_this__u8e3s4) {
189
- return this.xp(_this__u8e3s4.bp_1) + ' ' + this.wq(_this__u8e3s4.ap_1);
206
+ return this.nu(_this__u8e3s4.rt_1) + ' ' + this.mv(_this__u8e3s4.qt_1);
190
207
  }
191
208
  function emit_6(_this__u8e3s4) {
192
209
  // Inline function 'kotlin.let' call
193
210
  var it = emitType(this, _this__u8e3s4);
194
- return _this__u8e3s4.cu() ? 'java.util.Optional<' + it + '>' : it;
211
+ return _this__u8e3s4.sy() ? 'java.util.Optional<' + it + '>' : it;
195
212
  }
196
213
  function emitRoot(_this__u8e3s4, void_0) {
197
214
  var tmp;
198
215
  if (_this__u8e3s4 instanceof Dict) {
199
- tmp = this.d1v(_this__u8e3s4.co_1);
216
+ tmp = this.o20(_this__u8e3s4.ss_1);
200
217
  } else {
201
218
  if (_this__u8e3s4 instanceof Iterable) {
202
- tmp = this.d1v(_this__u8e3s4.zn_1);
219
+ tmp = this.o20(_this__u8e3s4.ps_1);
203
220
  } else {
204
221
  if (_this__u8e3s4 instanceof Unit) {
205
222
  tmp = void_0;
@@ -228,15 +245,15 @@ function emitRoot(_this__u8e3s4, void_0) {
228
245
  }
229
246
  function emitRoot$default(_this__u8e3s4, void_0, $super) {
230
247
  void_0 = void_0 === VOID ? 'void' : void_0;
231
- return $super === VOID ? this.e1v(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
248
+ return $super === VOID ? this.p20(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
232
249
  }
233
250
  function emit_7(_this__u8e3s4) {
234
251
  var tmp;
235
252
  if (_this__u8e3s4 instanceof RegExp_0) {
236
- tmp = 'return java.util.regex.Pattern.compile("' + replace(this.zp(_this__u8e3s4.ys_1), '\\', '\\\\') + '").matcher(value).find();';
253
+ tmp = 'return java.util.regex.Pattern.compile("' + replace(this.pu(_this__u8e3s4.ox_1), '\\', '\\\\') + '").matcher(value).find();';
237
254
  } else {
238
255
  if (_this__u8e3s4 instanceof Bound) {
239
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
256
+ var tmp1_safe_receiver = _this__u8e3s4.ey_1;
240
257
  var tmp_0;
241
258
  if (tmp1_safe_receiver == null) {
242
259
  tmp_0 = null;
@@ -245,7 +262,7 @@ function emit_7(_this__u8e3s4) {
245
262
  tmp_0 = tmp1_safe_receiver + ' < value';
246
263
  }
247
264
  var minCheck = tmp_0;
248
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
265
+ var tmp2_safe_receiver = _this__u8e3s4.fy_1;
249
266
  var tmp_1;
250
267
  if (tmp2_safe_receiver == null) {
251
268
  tmp_1 = null;
@@ -271,84 +288,16 @@ function emit_7(_this__u8e3s4) {
271
288
  }
272
289
  initMetadataForInterface(JavaTypeDefinitionEmitter, 'JavaTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter]);
273
290
  function emit_8(channel) {
274
- return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |@FunctionalInterface\n |public interface ' + this.wq(channel.mo_1) + ' {\n | void invoke(' + emitFullyQualified(this, channel, channel.no_1) + this.d1v(channel.no_1) + ' message);\n |}\n |\n ');
291
+ return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |@FunctionalInterface\n |public interface ' + this.mv(channel.ct_1) + ' {\n | void invoke(' + emitFullyQualified(this, channel, channel.dt_1) + this.o20(channel.dt_1) + ' message);\n |}\n |\n ');
275
292
  }
276
293
  initMetadataForInterface(JavaChannelDefinitionEmitter, 'JavaChannelDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
277
- function emit_9(endpoint) {
278
- var tmp = emitImports_0(this, endpoint);
279
- var tmp_0 = this.wq(endpoint.ep_1);
280
- var tmp_1 = get_pathParams(endpoint);
281
- var tmp_2 = emitObject(this, tmp_1, 'Path', 'Wirespec.Path', JavaEndpointDefinitionEmitter$emit$lambda(this));
282
- var tmp_3 = emitObject(this, endpoint.hp_1, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
283
- var tmp_4 = emitObject(this, endpoint.ip_1, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
284
- var tmp_5 = this.p1v(first_0(endpoint.jp_1), endpoint);
285
- var tmp_6 = Spacer_instance.toString();
286
- var tmp_7 = emitStatusInterfaces(this, endpoint);
287
- var tmp_8 = emitResponseInterfaces(this, endpoint);
288
- var tmp_9 = distinctByStatus(endpoint.kp_1);
289
- var tmp_10 = joinToString(tmp_9, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_2(this));
290
- var tmp_11 = Spacer_instance.toString();
291
- var tmp_12 = emitRequestFunctions(this, first_0(endpoint.jp_1), endpoint);
292
- var tmp_13 = Spacer_instance.qr(2);
293
- var tmp_14 = distinctByStatus(endpoint.kp_1);
294
- var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_3(this));
295
- var tmp_16 = Spacer_instance.qr(3);
296
- var tmp_17 = Spacer_instance.qr(2);
297
- var tmp_18 = Spacer_instance.qr(2);
298
- var tmp_19 = emitFromResponse(this, endpoint);
299
- var tmp_20 = Spacer_instance.qr(2);
300
- var tmp_21 = Spacer_instance.qr(2);
301
- var tmp_22 = this.t1v(endpoint);
302
- var tmp_23 = Spacer_instance.qr(2);
303
- var tmp_24 = Spacer_instance.qr(3);
304
- return trimMargin('\n |' + tmp + '\n |\n |public interface ' + tmp_0 + ' extends Wirespec.Endpoint {\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_7 + '\n |' + tmp_8 + '\n |\n |' + tmp_10 + '\n |\n |' + tmp_11 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_12 + '\n |\n |' + tmp_13 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer serialization, Response<?> response) {\n |' + tmp_15 + '\n |' + tmp_16 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.status());}\n |' + tmp_17 + '}\n |\n |' + tmp_18 + 'static Response<?> fromResponse(Wirespec.Deserializer serialization, Wirespec.RawResponse response) {\n |' + tmp_19 + '\n |' + tmp_20 + '}\n |\n |' + tmp_21 + tmp_22 + '\n |' + tmp_23 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_24 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_4) + '"; }\n |' + Spacer_instance.qr(3) + '@Override public String getMethod() { return "' + endpoint.fp_1.toString() + '"; }\n |' + Spacer_instance.qr(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization serialization) {\n |' + Spacer_instance.qr(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.qr(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.qr(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.qr(4) + '};\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization serialization) {\n |' + Spacer_instance.qr(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.qr(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.qr(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.qr(4) + '};\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
305
- }
306
- function emitHandleFunction(endpoint) {
307
- return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.pq(this.wq(endpoint.ep_1)) + '(Request request);';
308
- }
309
- function emit_10(_this__u8e3s4, endpoint) {
310
- return trimMargin('\n |' + Spacer_instance.toString() + 'record Request (\n |' + Spacer_instance.qr(2) + 'Path path,\n |' + Spacer_instance.qr(2) + 'Wirespec.Method method,\n |' + Spacer_instance.qr(2) + 'Queries queries,\n |' + Spacer_instance.qr(2) + 'RequestHeaders headers,\n |' + Spacer_instance.qr(2) + emit_16(this, _this__u8e3s4.np_1) + ' body\n |' + Spacer_instance.toString() + ') implements Wirespec.Request<' + emit_16(this, _this__u8e3s4.np_1) + '> {\n |' + Spacer_instance.qr(2) + emitConstructor(this, _this__u8e3s4, endpoint) + '\n |' + Spacer_instance.toString() + '}\n ');
311
- }
312
- function emit_11(_this__u8e3s4) {
313
- var tmp = Spacer_instance.toString();
314
- var tmp_0 = Companion_instance_1.oq(_this__u8e3s4.qp_1);
315
- var tmp_1 = Spacer_instance.qr(2);
316
- var tmp_2 = Spacer_instance.qr(2);
317
- var tmp_3 = Spacer_instance.qr(2);
318
- var tmp_4 = emit_16(this, _this__u8e3s4.sp_1);
319
- var tmp_5 = Spacer_instance.toString();
320
- var tmp_6 = toString_0(first(_this__u8e3s4.qp_1));
321
- var tmp_7 = emit_16(this, _this__u8e3s4.sp_1);
322
- var tmp_8 = concatGenerics(emit_16(this, _this__u8e3s4.sp_1));
323
- var tmp_9 = Spacer_instance.qr(2);
324
- var tmp_10 = Companion_instance_1.oq(_this__u8e3s4.qp_1);
325
- var tmp_11 = orNull(joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_5(this)));
326
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
327
- var tmp_12;
328
- if (tmp0_safe_receiver == null) {
329
- tmp_12 = null;
330
- } else {
331
- // Inline function 'kotlin.let' call
332
- tmp_12 = emit_16(this, tmp0_safe_receiver) + ' body';
333
- }
334
- var tmp_13 = joinToString(listOfNotNull([tmp_11, tmp_12]));
335
- var tmp_14 = Spacer_instance.qr(3);
336
- var tmp_15 = fixStatus(_this__u8e3s4.qp_1);
337
- // Inline function 'kotlin.let' call
338
- var tmp_16 = 'new Headers(' + joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_6(this)) + ')';
339
- var tmp_17 = _this__u8e3s4.sp_1 == null ? 'null' : 'body';
340
- var tmp_18 = Spacer_instance.qr(2);
341
- var tmp_19 = Spacer_instance.qr(1);
342
- return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(\n |' + tmp_1 + 'Integer status,\n |' + tmp_2 + 'Headers headers,\n |' + tmp_3 + tmp_4 + ' body\n |' + tmp_5 + ') implements Response' + tmp_6 + 'XX<' + tmp_7 + '>, Response' + tmp_8 + ' {\n |' + tmp_9 + 'public Response' + tmp_10 + '(' + tmp_13 + ') {\n |' + tmp_14 + 'this(' + tmp_15 + ', ' + tmp_16 + ', ' + tmp_17 + ');\n |' + tmp_18 + '}\n |' + tmp_19 + emitObject(this, _this__u8e3s4.rp_1, 'Headers', 'Wirespec.Response.Headers', JavaEndpointDefinitionEmitter$emit$lambda_7(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
343
- }
344
- initMetadataForInterface(JavaEndpointDefinitionEmitter, 'JavaEndpointDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
345
- function emit_12(identifier) {
294
+ function emit_9(identifier) {
346
295
  var tmp;
347
296
  if (identifier instanceof DefinitionIdentifier) {
348
- tmp = this.o1v(identifier.l1());
297
+ tmp = this.z20(identifier.n1());
349
298
  } else {
350
299
  if (identifier instanceof FieldIdentifier) {
351
- tmp = this.s1v(this.o1v(identifier.l1()));
300
+ tmp = this.d21(this.z20(identifier.n1()));
352
301
  } else {
353
302
  noWhenBranchMatchedException();
354
303
  }
@@ -366,11 +315,11 @@ function sanitizeSymbol(_this__u8e3s4) {
366
315
  var item = _iterator__ex2g4s.v();
367
316
  var _unary__edvuaz = index;
368
317
  index = _unary__edvuaz + 1 | 0;
369
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
318
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.ev(item) : item;
370
319
  destination.x(tmp$ret$0);
371
320
  }
372
321
  var tmp = asSequence(joinToString(destination, ''));
373
- return this.r1v(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
322
+ return this.c21(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
374
323
  }
375
324
  function sanitizeFirstIsDigit(_this__u8e3s4) {
376
325
  var tmp;
@@ -390,39 +339,39 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
390
339
  return tmp;
391
340
  }
392
341
  function sanitizeKeywords(_this__u8e3s4) {
393
- return Companion_getInstance_0().u1v_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
342
+ return Companion_getInstance_0().f21_1.a2(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
394
343
  }
395
344
  initMetadataForInterface(JavaIdentifierEmitter, 'JavaIdentifierEmitter');
396
- function emit_13(union) {
397
- var tmp = this.wq(union.qo_1);
398
- return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.ro_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
345
+ function emit_10(union) {
346
+ var tmp = this.mv(union.gt_1);
347
+ return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.ht_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
399
348
  }
400
349
  initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
401
- function emit_14(refined) {
402
- return trimMargin('\n |public record ' + this.wq(refined.br_1) + ' (' + this.xp(refined.cr_1) + ' value) implements Wirespec.Refined<' + this.xp(refined.cr_1) + '> {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value.toString(); }\n |' + Spacer_instance.toString() + 'public boolean validate() {\n |' + Spacer_instance.toString() + Spacer_instance.toString() + this.kr(refined) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public ' + this.xp(refined.cr_1) + ' value() { return value; }\n |}\n |\n ');
350
+ function emit_11(refined) {
351
+ return trimMargin('\n |public record ' + this.mv(refined.rv_1) + ' (' + this.nu(refined.sv_1) + ' value) implements Wirespec.Refined<' + this.nu(refined.sv_1) + '> {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value.toString(); }\n |' + Spacer_instance.toString() + 'public Boolean validate() {\n |' + Spacer_instance.toString() + Spacer_instance.toString() + this.aw(refined) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public ' + this.nu(refined.sv_1) + ' value() { return value; }\n |}\n |\n ');
403
352
  }
404
353
  function emitValidator(_this__u8e3s4) {
405
354
  var defaultReturn = 'return true;';
406
- var type = _this__u8e3s4.cr_1.ou_1;
355
+ var type = _this__u8e3s4.sv_1.ez_1;
407
356
  var tmp;
408
357
  if (type instanceof Integer) {
409
- var tmp0_safe_receiver = type.tt_1;
410
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
358
+ var tmp0_safe_receiver = type.jy_1;
359
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.ou(tmp0_safe_receiver);
411
360
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
412
361
  } else {
413
362
  if (type instanceof Number_0) {
414
- var tmp2_safe_receiver = type.wt_1;
415
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
363
+ var tmp2_safe_receiver = type.my_1;
364
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.ou(tmp2_safe_receiver);
416
365
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
417
366
  } else {
418
367
  if (type instanceof String_0) {
419
- var tmp4_safe_receiver = type.qt_1;
368
+ var tmp4_safe_receiver = type.gy_1;
420
369
  var tmp_0;
421
370
  var tmp_1 = tmp4_safe_receiver;
422
371
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
423
372
  tmp_0 = null;
424
373
  } else {
425
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
374
+ tmp_0 = this.ou(new RegExp_0(tmp4_safe_receiver));
426
375
  }
427
376
  var tmp5_elvis_lhs = tmp_0;
428
377
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -442,12 +391,80 @@ function emitValidator(_this__u8e3s4) {
442
391
  return tmp;
443
392
  }
444
393
  initMetadataForInterface(JavaRefinedTypeDefinitionEmitter, 'JavaRefinedTypeDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
445
- function emit_15(enum_0, module_0) {
446
- var tmp = this.wq(enum_0.gr_1);
447
- return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.hr_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.wq(enum_0.gr_1) + '(String label) {\n |' + Spacer_instance.qr(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.qr(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String label() {\n |' + Spacer_instance.qr(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
394
+ function emit_12(enum_0, module_0) {
395
+ var tmp = this.mv(enum_0.wv_1);
396
+ return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.xv_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.mv(enum_0.wv_1) + '(String label) {\n |' + Spacer_instance.gw(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.gw(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String label() {\n |' + Spacer_instance.gw(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
448
397
  }
449
398
  initMetadataForInterface(JavaEnumDefinitionEmitter, 'JavaEnumDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
450
- initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaEndpointDefinitionEmitter, JavaChannelDefinitionEmitter, JavaIdentifierEmitter, JavaTypeDefinitionEmitter, JavaUnionDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, JavaEnumDefinitionEmitter, LanguageEmitter]);
399
+ function emit_13(endpoint) {
400
+ var tmp = emitImports_0(this, endpoint);
401
+ var tmp_0 = this.mv(endpoint.ut_1);
402
+ var tmp_1 = get_pathParams(endpoint);
403
+ var tmp_2 = emitObject(this, tmp_1, 'Path', 'Wirespec.Path', JavaEndpointDefinitionEmitter$emit$lambda(this));
404
+ var tmp_3 = emitObject(this, endpoint.xt_1, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
405
+ var tmp_4 = emitObject(this, endpoint.yt_1, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
406
+ var tmp_5 = this.a21(first_0(endpoint.zt_1), endpoint);
407
+ var tmp_6 = Spacer_instance.toString();
408
+ var tmp_7 = emitStatusInterfaces(this, endpoint);
409
+ var tmp_8 = emitResponseInterfaces(this, endpoint);
410
+ var tmp_9 = distinctByStatus(endpoint.au_1);
411
+ var tmp_10 = joinToString(tmp_9, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_2(this));
412
+ var tmp_11 = Spacer_instance.toString();
413
+ var tmp_12 = emitRequestFunctions(this, first_0(endpoint.zt_1), endpoint);
414
+ var tmp_13 = Spacer_instance.gw(2);
415
+ var tmp_14 = distinctByStatus(endpoint.au_1);
416
+ var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_3(this));
417
+ var tmp_16 = Spacer_instance.gw(3);
418
+ var tmp_17 = Spacer_instance.gw(2);
419
+ var tmp_18 = Spacer_instance.gw(2);
420
+ var tmp_19 = emitFromResponse(this, endpoint);
421
+ var tmp_20 = Spacer_instance.gw(2);
422
+ var tmp_21 = Spacer_instance.gw(2);
423
+ var tmp_22 = this.e21(endpoint);
424
+ var tmp_23 = Spacer_instance.gw(2);
425
+ var tmp_24 = Spacer_instance.gw(3);
426
+ return trimMargin('\n |' + tmp + '\n |\n |public interface ' + tmp_0 + ' extends Wirespec.Endpoint {\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_7 + '\n |' + tmp_8 + '\n |\n |' + tmp_10 + '\n |\n |' + tmp_11 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_12 + '\n |\n |' + tmp_13 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer serialization, Response<?> response) {\n |' + tmp_15 + '\n |' + tmp_16 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.status());}\n |' + tmp_17 + '}\n |\n |' + tmp_18 + 'static Response<?> fromResponse(Wirespec.Deserializer serialization, Wirespec.RawResponse response) {\n |' + tmp_19 + '\n |' + tmp_20 + '}\n |\n |' + tmp_21 + tmp_22 + '\n |' + tmp_23 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_24 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_4) + '"; }\n |' + Spacer_instance.gw(3) + '@Override public String getMethod() { return "' + endpoint.vt_1.toString() + '"; }\n |' + Spacer_instance.gw(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization serialization) {\n |' + Spacer_instance.gw(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.gw(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.gw(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.gw(4) + '};\n |' + Spacer_instance.gw(3) + '}\n |' + Spacer_instance.gw(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization serialization) {\n |' + Spacer_instance.gw(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.gw(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.gw(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.gw(4) + '};\n |' + Spacer_instance.gw(3) + '}\n |' + Spacer_instance.gw(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
427
+ }
428
+ function emitHandleFunction(endpoint) {
429
+ return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.fv(this.mv(endpoint.ut_1)) + '(Request request);';
430
+ }
431
+ function emit_14(_this__u8e3s4, endpoint) {
432
+ return trimMargin('\n |' + Spacer_instance.toString() + 'record Request (\n |' + Spacer_instance.gw(2) + 'Path path,\n |' + Spacer_instance.gw(2) + 'Wirespec.Method method,\n |' + Spacer_instance.gw(2) + 'Queries queries,\n |' + Spacer_instance.gw(2) + 'RequestHeaders headers,\n |' + Spacer_instance.gw(2) + emit_16(this, _this__u8e3s4.du_1) + ' body\n |' + Spacer_instance.toString() + ') implements Wirespec.Request<' + emit_16(this, _this__u8e3s4.du_1) + '> {\n |' + Spacer_instance.gw(2) + emitConstructor(this, _this__u8e3s4, endpoint) + '\n |' + Spacer_instance.toString() + '}\n ');
433
+ }
434
+ function emit_15(_this__u8e3s4) {
435
+ var tmp = Spacer_instance.toString();
436
+ var tmp_0 = Companion_instance_1.ev(_this__u8e3s4.gu_1);
437
+ var tmp_1 = Spacer_instance.gw(2);
438
+ var tmp_2 = Spacer_instance.gw(2);
439
+ var tmp_3 = Spacer_instance.gw(2);
440
+ var tmp_4 = emit_16(this, _this__u8e3s4.iu_1);
441
+ var tmp_5 = Spacer_instance.toString();
442
+ var tmp_6 = toString_0(first(_this__u8e3s4.gu_1));
443
+ var tmp_7 = emit_16(this, _this__u8e3s4.iu_1);
444
+ var tmp_8 = concatGenerics(emit_16(this, _this__u8e3s4.iu_1));
445
+ var tmp_9 = Spacer_instance.gw(2);
446
+ var tmp_10 = Companion_instance_1.ev(_this__u8e3s4.gu_1);
447
+ var tmp_11 = orNull(joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_5(this)));
448
+ var tmp0_safe_receiver = _this__u8e3s4.iu_1;
449
+ var tmp_12;
450
+ if (tmp0_safe_receiver == null) {
451
+ tmp_12 = null;
452
+ } else {
453
+ // Inline function 'kotlin.let' call
454
+ tmp_12 = emit_16(this, tmp0_safe_receiver) + ' body';
455
+ }
456
+ var tmp_13 = joinToString(listOfNotNull([tmp_11, tmp_12]));
457
+ var tmp_14 = Spacer_instance.gw(3);
458
+ var tmp_15 = fixStatus(_this__u8e3s4.gu_1);
459
+ // Inline function 'kotlin.let' call
460
+ var tmp_16 = 'new Headers(' + joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_6(this)) + ')';
461
+ var tmp_17 = _this__u8e3s4.iu_1 == null ? 'null' : 'body';
462
+ var tmp_18 = Spacer_instance.gw(2);
463
+ var tmp_19 = Spacer_instance.gw(1);
464
+ return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(\n |' + tmp_1 + 'Integer status,\n |' + tmp_2 + 'Headers headers,\n |' + tmp_3 + tmp_4 + ' body\n |' + tmp_5 + ') implements Response' + tmp_6 + 'XX<' + tmp_7 + '>, Response' + tmp_8 + ' {\n |' + tmp_9 + 'public Response' + tmp_10 + '(' + tmp_13 + ') {\n |' + tmp_14 + 'this(' + tmp_15 + ', ' + tmp_16 + ', ' + tmp_17 + ');\n |' + tmp_18 + '}\n |' + tmp_19 + emitObject(this, _this__u8e3s4.hu_1, 'Headers', 'Wirespec.Response.Headers', JavaEndpointDefinitionEmitter$emit$lambda_7(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
465
+ }
466
+ initMetadataForInterface(JavaEndpointDefinitionEmitter, 'JavaEndpointDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
467
+ initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaUnionDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, JavaEnumDefinitionEmitter, JavaChannelDefinitionEmitter, JavaIdentifierEmitter, JavaEndpointDefinitionEmitter, JavaTypeDefinitionEmitter, LanguageEmitter]);
451
468
  initMetadataForCompanion(Companion);
452
469
  initMetadataForCompanion(Companion_0);
453
470
  initMetadataForClass(JavaIrEmitter, 'JavaIrEmitter', JavaIrEmitter, VOID, [IrEmitter]);
@@ -461,7 +478,7 @@ function emitImports($this, _this__u8e3s4) {
461
478
  var _iterator__ex2g4s = tmp0.t();
462
479
  while (_iterator__ex2g4s.u()) {
463
480
  var element = _iterator__ex2g4s.v();
464
- if (!(_this__u8e3s4.vq().l1() === element.ku_1)) {
481
+ if (!(_this__u8e3s4.lv().n1() === element.az_1)) {
465
482
  destination.x(element);
466
483
  }
467
484
  }
@@ -471,7 +488,7 @@ function emitImports($this, _this__u8e3s4) {
471
488
  var _iterator__ex2g4s_0 = destination.t();
472
489
  while (_iterator__ex2g4s_0.u()) {
473
490
  var item = _iterator__ex2g4s_0.v();
474
- var tmp$ret$3 = 'import ' + $this.c1v().mr_1 + '.model.' + item.ku_1 + ';';
491
+ var tmp$ret$3 = 'import ' + $this.n20().cw_1 + '.model.' + item.az_1 + ';';
475
492
  destination_0.x(tmp$ret$3);
476
493
  }
477
494
  var tmp = destination_0;
@@ -479,8 +496,8 @@ function emitImports($this, _this__u8e3s4) {
479
496
  }
480
497
  function emitFullyQualified($this, _this__u8e3s4, reference) {
481
498
  var tmp;
482
- if (_this__u8e3s4.vq().l1() === reference.l1()) {
483
- tmp = $this.c1v().mr_1 + '.model.';
499
+ if (_this__u8e3s4.lv().n1() === reference.n1()) {
500
+ tmp = $this.n20().cw_1 + '.model.';
484
501
  } else {
485
502
  tmp = '';
486
503
  }
@@ -493,49 +510,49 @@ function JavaChannelDefinitionEmitter$emitImports$lambda(it) {
493
510
  function JavaChannelDefinitionEmitter() {
494
511
  }
495
512
  function JavaEmitter(packageName, emitShared) {
496
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
497
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
513
+ packageName = packageName === VOID ? Companion_instance.bw('community.flock.wirespec.generated') : packageName;
514
+ emitShared = emitShared === VOID ? Companion_instance_0.ws() : emitShared;
498
515
  LanguageEmitter.call(this);
499
- this.f1v_1 = packageName;
500
- this.g1v_1 = emitShared;
501
- this.h1v_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
502
- this.i1v_1 = FileExtension_Java_getInstance();
503
- this.j1v_1 = JavaShared_getInstance();
504
- this.k1v_1 = '//';
505
- }
506
- protoOf(JavaEmitter).c1v = function () {
507
- return this.f1v_1;
516
+ this.q20_1 = packageName;
517
+ this.r20_1 = emitShared;
518
+ this.s20_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
519
+ this.t20_1 = FileExtension_Java_getInstance();
520
+ this.u20_1 = JavaShared_getInstance();
521
+ this.v20_1 = '//';
522
+ }
523
+ protoOf(JavaEmitter).n20 = function () {
524
+ return this.q20_1;
508
525
  };
509
- protoOf(JavaEmitter).eq = function () {
510
- return this.i1v_1;
526
+ protoOf(JavaEmitter).uu = function () {
527
+ return this.t20_1;
511
528
  };
512
- protoOf(JavaEmitter).l1v = function () {
513
- return this.j1v_1;
529
+ protoOf(JavaEmitter).w20 = function () {
530
+ return this.u20_1;
514
531
  };
515
- protoOf(JavaEmitter).fq = function () {
516
- return this.k1v_1;
532
+ protoOf(JavaEmitter).vu = function () {
533
+ return this.v20_1;
517
534
  };
518
- protoOf(JavaEmitter).tq = function (module_0, logger) {
535
+ protoOf(JavaEmitter).jv = function (module_0, logger) {
519
536
  // Inline function 'kotlin.let' call
520
- var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
521
- return this.g1v_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.lr('community.flock.wirespec.java').or() + 'Wirespec', this.l1v().n1v_1)) : it;
537
+ var it = protoOf(LanguageEmitter).jv.call(this, module_0, logger);
538
+ return this.r20_1.xs_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.bw('community.flock.wirespec.java').ew() + 'Wirespec', this.w20().y20_1)) : it;
522
539
  };
523
- protoOf(JavaEmitter).uq = function (definition, module_0, logger) {
540
+ protoOf(JavaEmitter).kv = function (definition, module_0, logger) {
524
541
  // Inline function 'kotlin.let' call
525
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
526
- var subPackageName = plus(this.c1v(), definition);
527
- var tmp = subPackageName.or() + this.o1v(it.io_1);
542
+ var it = protoOf(LanguageEmitter).kv.call(this, definition, module_0, logger);
543
+ var subPackageName = plus(this.n20(), definition);
544
+ var tmp = subPackageName.ew() + this.z20(it.ys_1);
528
545
  // Inline function 'kotlin.text.trimStart' call
529
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.qq(module_0) ? this.h1v_1 : '') + '\n |' + it.jo_1 + '\n ');
546
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.gv(module_0) ? this.s20_1 : '') + '\n |' + it.zs_1 + '\n ');
530
547
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
531
548
  return new Emitted(tmp, tmp$ret$0);
532
549
  };
533
550
  function emitGetType($this, _this__u8e3s4) {
534
- return 'Wirespec.getType(' + $this.e1v(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw($this, _this__u8e3s4) + ')';
551
+ return 'Wirespec.getType(' + $this.p20(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw($this, _this__u8e3s4) + ')';
535
552
  }
536
553
  function emitGetTypeRaw($this, _this__u8e3s4) {
537
554
  var tmp;
538
- var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : _this__u8e3s4.cu();
555
+ var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : _this__u8e3s4.sy();
539
556
  if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
540
557
  tmp = 'java.util.Optional.class';
541
558
  } else {
@@ -550,9 +567,9 @@ function emitGetTypeRaw($this, _this__u8e3s4) {
550
567
  function emitConstructor($this, _this__u8e3s4, endpoint) {
551
568
  var tmp = get_pathParams(endpoint);
552
569
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda($this)));
553
- var tmp_1 = orNull(joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
554
- var tmp_2 = orNull(joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
555
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
570
+ var tmp_1 = orNull(joinToString(endpoint.xt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
571
+ var tmp_2 = orNull(joinToString(endpoint.yt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
572
+ var tmp0_safe_receiver = _this__u8e3s4.du_1;
556
573
  var tmp_3;
557
574
  if (tmp0_safe_receiver == null) {
558
575
  tmp_3 = null;
@@ -561,112 +578,112 @@ function emitConstructor($this, _this__u8e3s4, endpoint) {
561
578
  tmp_3 = emit_16($this, tmp0_safe_receiver) + ' body';
562
579
  }
563
580
  var tmp_4 = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]));
564
- var tmp_5 = Spacer_instance.qr(3);
581
+ var tmp_5 = Spacer_instance.gw(3);
565
582
  var tmp_6 = get_pathParams(endpoint);
566
583
  // Inline function 'kotlin.let' call
567
584
  var tmp$ret$3 = 'new Path(' + joinToString(tmp_6, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_2($this)) + ')';
568
585
  var tmp1_elvis_lhs = orNull(tmp$ret$3);
569
586
  var tmp_7 = tmp1_elvis_lhs == null ? 'new Path()' : tmp1_elvis_lhs;
570
- var tmp_8 = 'Wirespec.Method.' + endpoint.fp_1.a3_1;
587
+ var tmp_8 = 'Wirespec.Method.' + endpoint.vt_1.g3_1;
571
588
  // Inline function 'kotlin.let' call
572
- var tmp$ret$5 = 'new Queries(' + joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_3($this)) + ')';
589
+ var tmp$ret$5 = 'new Queries(' + joinToString(endpoint.xt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_3($this)) + ')';
573
590
  var tmp2_elvis_lhs = orNull(tmp$ret$5);
574
591
  var tmp_9 = tmp2_elvis_lhs == null ? 'new Queries()' : tmp2_elvis_lhs;
575
592
  // Inline function 'kotlin.let' call
576
- var tmp$ret$7 = 'new RequestHeaders(' + joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_4($this)) + ')';
593
+ var tmp$ret$7 = 'new RequestHeaders(' + joinToString(endpoint.yt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_4($this)) + ')';
577
594
  var tmp3_elvis_lhs = orNull(tmp$ret$7);
578
595
  var tmp_10 = tmp3_elvis_lhs == null ? 'new RequestHeaders()' : tmp3_elvis_lhs;
579
596
  var tmp_11;
580
- if (_this__u8e3s4.np_1 == null) {
597
+ if (_this__u8e3s4.du_1 == null) {
581
598
  tmp_11 = null;
582
599
  } else {
583
600
  // Inline function 'kotlin.let' call
584
601
  tmp_11 = 'body';
585
602
  }
586
603
  var tmp5_elvis_lhs = tmp_11;
587
- return 'public Request(' + tmp_4 + ') {\n' + tmp_5 + 'this(' + joinToString(listOfNotNull([tmp_7, tmp_8, tmp_9, tmp_10, tmp5_elvis_lhs == null ? 'null' : tmp5_elvis_lhs])) + ');\n' + Spacer_instance.qr(2) + '}';
604
+ return 'public Request(' + tmp_4 + ') {\n' + tmp_5 + 'this(' + joinToString(listOfNotNull([tmp_7, tmp_8, tmp_9, tmp_10, tmp5_elvis_lhs == null ? 'null' : tmp5_elvis_lhs])) + ');\n' + Spacer_instance.gw(2) + '}';
588
605
  }
589
606
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
590
607
  var tmp = get_indexedPathParams(endpoint);
591
608
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
592
- var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
593
- var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
594
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
609
+ var tmp_1 = orNull(joinToString(endpoint.xt_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
610
+ var tmp_2 = orNull(joinToString(endpoint.yt_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
611
+ var tmp0_safe_receiver = _this__u8e3s4.du_1;
595
612
  var tmp_3;
596
613
  if (tmp0_safe_receiver == null) {
597
614
  tmp_3 = null;
598
615
  } else {
599
616
  // Inline function 'kotlin.let' call
600
- tmp_3 = Spacer_instance.qr(4) + 'request.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.pp_1) + ')).orElse(null)';
617
+ tmp_3 = Spacer_instance.gw(4) + 'request.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.fu_1) + ')).orElse(null)';
601
618
  }
602
619
  // Inline function 'kotlin.let' call
603
620
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
604
- return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.qr(3);
621
+ return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.gw(3);
605
622
  }
606
623
  function emitDeserializedParams_0($this, _this__u8e3s4) {
607
- var tmp = orNull(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_2($this)));
608
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
624
+ var tmp = orNull(joinToString(_this__u8e3s4.hu_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_2($this)));
625
+ var tmp0_safe_receiver = _this__u8e3s4.iu_1;
609
626
  var tmp_0;
610
627
  if (tmp0_safe_receiver == null) {
611
628
  tmp_0 = null;
612
629
  } else {
613
630
  // Inline function 'kotlin.let' call
614
- tmp_0 = Spacer_instance.qr(5) + 'response.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.pp_1) + ')).orElse(null)';
631
+ tmp_0 = Spacer_instance.gw(5) + 'response.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.fu_1) + ')).orElse(null)';
615
632
  }
616
633
  // Inline function 'kotlin.let' call
617
634
  var it = joinToString(listOfNotNull([tmp, tmp_0]), ',\n');
618
- return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.qr(4);
635
+ return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.gw(4);
619
636
  }
620
637
  function emitSerialized($this, _this__u8e3s4) {
621
638
  var tmp;
622
- if (!(_this__u8e3s4.sp_1 == null)) {
623
- tmp = 'java.util.Optional.ofNullable(serialization.serializeBody(r.body, ' + emitGetType($this, ensureNotNull(_this__u8e3s4.sp_1).pp_1) + '))';
639
+ if (!(_this__u8e3s4.iu_1 == null)) {
640
+ tmp = 'java.util.Optional.ofNullable(serialization.serializeBody(r.body, ' + emitGetType($this, ensureNotNull(_this__u8e3s4.iu_1).fu_1) + '))';
624
641
  } else {
625
642
  tmp = 'java.util.Optional.empty()';
626
643
  }
627
644
  var body = tmp;
628
645
  var tmp_0;
629
646
  // Inline function 'kotlin.collections.isNotEmpty' call
630
- if (!_this__u8e3s4.rp_1.r()) {
631
- tmp_0 = 'java.util.Map.ofEntries(' + joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitSerialized$lambda($this)) + ')';
647
+ if (!_this__u8e3s4.hu_1.r()) {
648
+ tmp_0 = 'java.util.Map.ofEntries(' + joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitSerialized$lambda($this)) + ')';
632
649
  } else {
633
650
  tmp_0 = 'java.util.Collections.emptyMap()';
634
651
  }
635
652
  var headers = tmp_0;
636
- return Spacer_instance.qr(3) + 'if (response instanceof Response' + Companion_instance_1.oq(_this__u8e3s4.qp_1) + ' r) { return new Wirespec.RawResponse(r.status(), ' + headers + ', ' + body + '); }';
653
+ return Spacer_instance.gw(3) + 'if (response instanceof Response' + Companion_instance_1.ev(_this__u8e3s4.gu_1) + ' r) { return new Wirespec.RawResponse(r.status(), ' + headers + ', ' + body + '); }';
637
654
  }
638
655
  function emitDeserialized($this, _this__u8e3s4) {
639
- return Spacer_instance.qr(4) + 'case ' + _this__u8e3s4.qp_1 + ' -> new Response' + Companion_instance_1.oq(_this__u8e3s4.qp_1) + '(' + emitDeserializedParams_0($this, _this__u8e3s4) + ');';
656
+ return Spacer_instance.gw(4) + 'case ' + _this__u8e3s4.gu_1 + ' -> new Response' + Companion_instance_1.ev(_this__u8e3s4.gu_1) + '(' + emitDeserializedParams_0($this, _this__u8e3s4) + ');';
640
657
  }
641
658
  function emitSerializedParams($this, _this__u8e3s4, fields) {
642
- return 'java.util.Map.entry("' + _this__u8e3s4.ap_1.l1() + '", serialization.serializeParam(request.' + (fields === 'queries' ? 'queries' : 'headers') + '().' + $this.wq(_this__u8e3s4.ap_1) + '(), ' + emitGetType($this, _this__u8e3s4.bp_1) + '))';
659
+ return 'java.util.Map.entry("' + _this__u8e3s4.qt_1.n1() + '", serialization.serializeParam(request.' + (fields === 'queries' ? 'queries' : 'headers') + '().' + $this.mv(_this__u8e3s4.qt_1) + '(), ' + emitGetType($this, _this__u8e3s4.rt_1) + '))';
643
660
  }
644
661
  function emitDeserialized_0($this, _this__u8e3s4) {
645
- return Spacer_instance.qr(4) + 'serialization.deserializePath(request.path().get(' + _this__u8e3s4.le_1 + '), ' + emitGetType($this, _this__u8e3s4.me_1.mp_1) + ')';
662
+ return Spacer_instance.gw(4) + 'serialization.deserializePath(request.path().get(' + _this__u8e3s4.nf_1 + '), ' + emitGetType($this, _this__u8e3s4.of_1.cu_1) + ')';
646
663
  }
647
664
  function emitDeserializedParams_1($this, _this__u8e3s4, fields, caseSensitive) {
648
665
  var tmp;
649
666
  if (caseSensitive) {
650
- tmp = 'request.' + fields + '().getOrDefault("' + _this__u8e3s4.ap_1.l1() + '", java.util.Collections.emptyList())';
667
+ tmp = 'request.' + fields + '().getOrDefault("' + _this__u8e3s4.qt_1.n1() + '", java.util.Collections.emptyList())';
651
668
  } else {
652
- tmp = 'request.' + fields + '().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + _this__u8e3s4.ap_1.l1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList())';
669
+ tmp = 'request.' + fields + '().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + _this__u8e3s4.qt_1.n1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList())';
653
670
  }
654
671
  var valuesFromField = tmp;
655
- return Spacer_instance.qr(4) + 'serialization.<' + $this.xp(_this__u8e3s4.bp_1) + '>deserializeParam(' + valuesFromField + ', ' + emitGetType($this, _this__u8e3s4.bp_1) + ')';
672
+ return Spacer_instance.gw(4) + 'serialization.<' + $this.nu(_this__u8e3s4.rt_1) + '>deserializeParam(' + valuesFromField + ', ' + emitGetType($this, _this__u8e3s4.rt_1) + ')';
656
673
  }
657
674
  function emitSerializedHeader($this, _this__u8e3s4) {
658
- return 'java.util.Map.entry("' + _this__u8e3s4.ap_1.l1() + '", serialization.<' + $this.xp(_this__u8e3s4.bp_1) + '>serializeParam(r.headers().' + $this.wq(_this__u8e3s4.ap_1) + '(), ' + emitGetType($this, _this__u8e3s4.bp_1) + '))';
675
+ return 'java.util.Map.entry("' + _this__u8e3s4.qt_1.n1() + '", serialization.<' + $this.nu(_this__u8e3s4.rt_1) + '>serializeParam(r.headers().' + $this.mv(_this__u8e3s4.qt_1) + '(), ' + emitGetType($this, _this__u8e3s4.rt_1) + '))';
659
676
  }
660
677
  function emitIdentifier($this, _this__u8e3s4) {
661
- return 'serialization.serializePath(request.path().' + Companion_instance_1.pq($this.wq(_this__u8e3s4.lp_1)) + '(), ' + emitGetType($this, _this__u8e3s4.mp_1) + ')';
678
+ return 'serialization.serializePath(request.path().' + Companion_instance_1.fv($this.mv(_this__u8e3s4.bu_1)) + '(), ' + emitGetType($this, _this__u8e3s4.cu_1) + ')';
662
679
  }
663
680
  function emit_16($this, _this__u8e3s4) {
664
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
665
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
681
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fu_1;
682
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nu(tmp1_safe_receiver);
666
683
  return tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
667
684
  }
668
685
  function emit_17($this, _this__u8e3s4) {
669
- return $this.xp(_this__u8e3s4.mp_1) + ' ' + $this.wq(_this__u8e3s4.lp_1);
686
+ return $this.nu(_this__u8e3s4.cu_1) + ' ' + $this.mv(_this__u8e3s4.bu_1);
670
687
  }
671
688
  function emitImports_0($this, _this__u8e3s4) {
672
689
  // Inline function 'kotlin.collections.filter' call
@@ -676,7 +693,7 @@ function emitImports_0($this, _this__u8e3s4) {
676
693
  var _iterator__ex2g4s = tmp0.t();
677
694
  while (_iterator__ex2g4s.u()) {
678
695
  var element = _iterator__ex2g4s.v();
679
- if (!(_this__u8e3s4.vq().l1() === element.ku_1)) {
696
+ if (!(_this__u8e3s4.lv().n1() === element.az_1)) {
680
697
  destination.x(element);
681
698
  }
682
699
  }
@@ -686,46 +703,46 @@ function emitImports_0($this, _this__u8e3s4) {
686
703
  var _iterator__ex2g4s_0 = destination.t();
687
704
  while (_iterator__ex2g4s_0.u()) {
688
705
  var item = _iterator__ex2g4s_0.v();
689
- var tmp$ret$3 = 'import ' + $this.c1v().mr_1 + '.model.' + item.ku_1 + ';';
706
+ var tmp$ret$3 = 'import ' + $this.n20().cw_1 + '.model.' + item.az_1 + ';';
690
707
  destination_0.x(tmp$ret$3);
691
708
  }
692
709
  var tmp = destination_0;
693
710
  return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitImports$lambda);
694
711
  }
695
712
  function emitRequestFunctions($this, _this__u8e3s4, endpoint) {
696
- var tmp = Spacer_instance.qr(2);
697
- var tmp_0 = Spacer_instance.qr(3);
698
- var tmp_1 = Spacer_instance.qr(4);
699
- var tmp_2 = Spacer_instance.qr(4);
700
- var tmp_3 = joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda($this));
701
- var tmp_4 = Spacer_instance.qr(4);
713
+ var tmp = Spacer_instance.gw(2);
714
+ var tmp_0 = Spacer_instance.gw(3);
715
+ var tmp_1 = Spacer_instance.gw(4);
716
+ var tmp_2 = Spacer_instance.gw(4);
717
+ var tmp_3 = joinToString(endpoint.wt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda($this));
718
+ var tmp_4 = Spacer_instance.gw(4);
702
719
  var tmp_5;
703
720
  // Inline function 'kotlin.collections.isNotEmpty' call
704
- if (!endpoint.hp_1.r()) {
705
- tmp_5 = 'java.util.Map.ofEntries(' + joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_0($this)) + ')';
721
+ if (!endpoint.xt_1.r()) {
722
+ tmp_5 = 'java.util.Map.ofEntries(' + joinToString(endpoint.xt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_0($this)) + ')';
706
723
  } else {
707
724
  tmp_5 = 'java.util.Collections.emptyMap()';
708
725
  }
709
726
  var tmp_6 = tmp_5;
710
- var tmp_7 = Spacer_instance.qr(4);
727
+ var tmp_7 = Spacer_instance.gw(4);
711
728
  var tmp_8;
712
729
  // Inline function 'kotlin.collections.isNotEmpty' call
713
- if (!endpoint.ip_1.r()) {
714
- tmp_8 = 'java.util.Map.ofEntries(' + joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_1($this)) + ')';
730
+ if (!endpoint.yt_1.r()) {
731
+ tmp_8 = 'java.util.Map.ofEntries(' + joinToString(endpoint.yt_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_1($this)) + ')';
715
732
  } else {
716
733
  tmp_8 = 'java.util.Collections.emptyMap()';
717
734
  }
718
735
  var tmp_9 = tmp_8;
719
- var tmp_10 = Spacer_instance.qr(4);
736
+ var tmp_10 = Spacer_instance.gw(4);
720
737
  var tmp_11;
721
- if (!(_this__u8e3s4.np_1 == null)) {
722
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
723
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
738
+ if (!(_this__u8e3s4.du_1 == null)) {
739
+ var tmp0_safe_receiver = _this__u8e3s4.du_1;
740
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fu_1;
724
741
  tmp_11 = 'java.util.Optional.ofNullable(serialization.serializeBody(request.body(), ' + (tmp1_safe_receiver == null ? null : emitGetType($this, tmp1_safe_receiver)) + '))';
725
742
  } else {
726
743
  tmp_11 = 'java.util.Optional.empty()';
727
744
  }
728
- return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer serialization, Request request) {\n |' + tmp_0 + 'return new Wirespec.RawRequest(\n |' + tmp_1 + 'request.method().name(),\n |' + tmp_2 + 'java.util.List.of(' + tmp_3 + '),\n |' + tmp_4 + tmp_6 + ',\n |' + tmp_7 + tmp_9 + ',\n |' + tmp_10 + tmp_11 + '\n |' + Spacer_instance.qr(3) + ');\n |' + Spacer_instance.qr(2) + '}\n |\n |' + Spacer_instance.qr(2) + 'static Request fromRequest(Wirespec.Deserializer serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.qr(3) + 'return new Request(' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + ');\n |' + Spacer_instance.qr(2) + '}\n ');
745
+ return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer serialization, Request request) {\n |' + tmp_0 + 'return new Wirespec.RawRequest(\n |' + tmp_1 + 'request.method().name(),\n |' + tmp_2 + 'java.util.List.of(' + tmp_3 + '),\n |' + tmp_4 + tmp_6 + ',\n |' + tmp_7 + tmp_9 + ',\n |' + tmp_10 + tmp_11 + '\n |' + Spacer_instance.gw(3) + ');\n |' + Spacer_instance.gw(2) + '}\n |\n |' + Spacer_instance.gw(2) + 'static Request fromRequest(Wirespec.Deserializer serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.gw(3) + 'return new Request(' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + ');\n |' + Spacer_instance.gw(2) + '}\n ');
729
746
  }
730
747
  function emitObject($this, _this__u8e3s4, name, extends_0, block) {
731
748
  var tmp;
@@ -739,13 +756,13 @@ function emitObject($this, _this__u8e3s4, name, extends_0, block) {
739
756
  }
740
757
  function emitResponseInterfaces($this, _this__u8e3s4) {
741
758
  // Inline function 'kotlin.collections.map' call
742
- var this_0 = distinctByStatus(_this__u8e3s4.kp_1);
759
+ var this_0 = distinctByStatus(_this__u8e3s4.au_1);
743
760
  // Inline function 'kotlin.collections.mapTo' call
744
761
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
745
762
  var _iterator__ex2g4s = this_0.t();
746
763
  while (_iterator__ex2g4s.u()) {
747
764
  var item = _iterator__ex2g4s.v();
748
- var tmp$ret$0 = emit_16($this, item.sp_1);
765
+ var tmp$ret$0 = emit_16($this, item.iu_1);
749
766
  destination.x(tmp$ret$0);
750
767
  }
751
768
  var tmp = distinct(destination);
@@ -753,13 +770,13 @@ function emitResponseInterfaces($this, _this__u8e3s4) {
753
770
  }
754
771
  function emitStatusInterfaces($this, _this__u8e3s4) {
755
772
  // Inline function 'kotlin.collections.map' call
756
- var this_0 = _this__u8e3s4.kp_1;
773
+ var this_0 = _this__u8e3s4.au_1;
757
774
  // Inline function 'kotlin.collections.mapTo' call
758
775
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
759
776
  var _iterator__ex2g4s = this_0.t();
760
777
  while (_iterator__ex2g4s.u()) {
761
778
  var item = _iterator__ex2g4s.v();
762
- var tmp$ret$0 = new Char(first(item.qp_1));
779
+ var tmp$ret$0 = new Char(first(item.gu_1));
763
780
  destination.x(tmp$ret$0);
764
781
  }
765
782
  var tmp = distinct(destination);
@@ -767,26 +784,26 @@ function emitStatusInterfaces($this, _this__u8e3s4) {
767
784
  }
768
785
  function emitFromResponse($this, _this__u8e3s4) {
769
786
  // Inline function 'kotlin.collections.filter' call
770
- var tmp0 = distinctByStatus(_this__u8e3s4.kp_1);
787
+ var tmp0 = distinctByStatus(_this__u8e3s4.au_1);
771
788
  // Inline function 'kotlin.collections.filterTo' call
772
789
  var destination = ArrayList_init_$Create$();
773
790
  var _iterator__ex2g4s = tmp0.t();
774
791
  while (_iterator__ex2g4s.u()) {
775
792
  var element = _iterator__ex2g4s.v();
776
- if (Companion_instance_1.rq(element.qp_1)) {
793
+ if (Companion_instance_1.hv(element.gu_1)) {
777
794
  destination.x(element);
778
795
  }
779
796
  }
780
797
  var statusResponses = destination;
781
798
  var tmp;
782
799
  if (statusResponses.r()) {
783
- tmp = trimMargin('\n |' + Spacer_instance.qr(3) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n ');
784
- } else if (statusResponses.a1() === 1) {
800
+ tmp = trimMargin('\n |' + Spacer_instance.gw(3) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n ');
801
+ } else if (statusResponses.b1() === 1) {
785
802
  var response = first_0(statusResponses);
786
- tmp = trimMargin('\n |' + Spacer_instance.qr(3) + 'if (response.statusCode() == ' + response.qp_1 + ') {\n |' + Spacer_instance.qr(4) + 'return new Response' + Companion_instance_1.oq(response.qp_1) + '(' + emitDeserializedParams_0($this, response) + ');\n |' + Spacer_instance.qr(3) + '} else {\n |' + Spacer_instance.qr(4) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.qr(3) + '}\n ');
803
+ tmp = trimMargin('\n |' + Spacer_instance.gw(3) + 'if (response.statusCode() == ' + response.gu_1 + ') {\n |' + Spacer_instance.gw(4) + 'return new Response' + Companion_instance_1.ev(response.gu_1) + '(' + emitDeserializedParams_0($this, response) + ');\n |' + Spacer_instance.gw(3) + '} else {\n |' + Spacer_instance.gw(4) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.gw(3) + '}\n ');
787
804
  } else {
788
- var tmp_0 = Spacer_instance.qr(3);
789
- tmp = trimMargin('\n |' + tmp_0 + 'return switch (response.statusCode()) {\n |' + joinToString(statusResponses, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitFromResponse$lambda($this)) + '\n |' + Spacer_instance.qr(4) + 'default -> throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.qr(3) + '};\n ');
805
+ var tmp_0 = Spacer_instance.gw(3);
806
+ tmp = trimMargin('\n |' + tmp_0 + 'return switch (response.statusCode()) {\n |' + joinToString(statusResponses, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitFromResponse$lambda($this)) + '\n |' + Spacer_instance.gw(4) + 'default -> throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.gw(3) + '};\n ');
790
807
  }
791
808
  return tmp;
792
809
  }
@@ -797,17 +814,17 @@ function JavaEndpointDefinitionEmitter$emit$lambda(this$0) {
797
814
  }
798
815
  function JavaEndpointDefinitionEmitter$emit$lambda_0(this$0) {
799
816
  return function (it) {
800
- return this$0.wp(it);
817
+ return this$0.mu(it);
801
818
  };
802
819
  }
803
820
  function JavaEndpointDefinitionEmitter$emit$lambda_1(this$0) {
804
821
  return function (it) {
805
- return this$0.wp(it);
822
+ return this$0.mu(it);
806
823
  };
807
824
  }
808
825
  function JavaEndpointDefinitionEmitter$emit$lambda_2(this$0) {
809
826
  return function (it) {
810
- return this$0.q1v(it);
827
+ return this$0.b21(it);
811
828
  };
812
829
  }
813
830
  function JavaEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -825,27 +842,27 @@ function JavaEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
825
842
  }
826
843
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
827
844
  return function (it) {
828
- return this$0.wp(it);
845
+ return this$0.mu(it);
829
846
  };
830
847
  }
831
848
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
832
849
  return function (it) {
833
- return this$0.wp(it);
850
+ return this$0.mu(it);
834
851
  };
835
852
  }
836
853
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_2(this$0) {
837
854
  return function (it) {
838
- return this$0.wq(it.lp_1);
855
+ return this$0.mv(it.bu_1);
839
856
  };
840
857
  }
841
858
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_3(this$0) {
842
859
  return function (it) {
843
- return this$0.wq(it.ap_1);
860
+ return this$0.mv(it.qt_1);
844
861
  };
845
862
  }
846
863
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_4(this$0) {
847
864
  return function (it) {
848
- return this$0.wq(it.ap_1);
865
+ return this$0.mv(it.qt_1);
849
866
  };
850
867
  }
851
868
  function JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
@@ -865,22 +882,22 @@ function JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0) {
865
882
  }
866
883
  function JavaEndpointDefinitionEmitter$emit$lambda_5(this$0) {
867
884
  return function (it) {
868
- return this$0.wp(it);
885
+ return this$0.mu(it);
869
886
  };
870
887
  }
871
888
  function JavaEndpointDefinitionEmitter$emit$lambda_6(this$0) {
872
889
  return function (it) {
873
- return this$0.wq(it.ap_1);
890
+ return this$0.mv(it.qt_1);
874
891
  };
875
892
  }
876
893
  function JavaEndpointDefinitionEmitter$emit$lambda_7(this$0) {
877
894
  return function (it) {
878
- return this$0.wp(it);
895
+ return this$0.mu(it);
879
896
  };
880
897
  }
881
898
  function JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_2(this$0) {
882
899
  return function (it) {
883
- return Spacer_instance.qr(5) + 'serialization.<' + this$0.xp(it.bp_1) + '>deserializeParam(response.headers().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + it.ap_1.l1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList()), ' + emitGetType(this$0, it.bp_1) + ')';
900
+ return Spacer_instance.gw(5) + 'serialization.<' + this$0.nu(it.rt_1) + '>deserializeParam(response.headers().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + it.qt_1.n1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList()), ' + emitGetType(this$0, it.rt_1) + ')';
884
901
  };
885
902
  }
886
903
  function JavaEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
@@ -896,7 +913,7 @@ function JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda(this$0) {
896
913
  return function (it) {
897
914
  var tmp;
898
915
  if (it instanceof Literal) {
899
- tmp = '"' + it.hq_1 + '"';
916
+ tmp = '"' + it.xu_1 + '"';
900
917
  } else {
901
918
  if (it instanceof Param) {
902
919
  tmp = emitIdentifier(this$0, it);
@@ -919,14 +936,14 @@ function JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_1(this$0) {
919
936
  }
920
937
  function JavaEndpointDefinitionEmitter$emitObject$lambda($block) {
921
938
  return function (it) {
922
- return Spacer_instance.qr(2) + $block(it);
939
+ return Spacer_instance.gw(2) + $block(it);
923
940
  };
924
941
  }
925
942
  function JavaEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
926
943
  return Spacer_instance.toString() + 'sealed interface Response' + concatGenerics(it) + ' extends Response<' + it + '> {}';
927
944
  }
928
945
  function JavaEndpointDefinitionEmitter$emitStatusInterfaces$lambda(it) {
929
- return Spacer_instance.toString() + 'sealed interface Response' + toString_0(it.h1_1) + 'XX<T> extends Response<T> {}';
946
+ return Spacer_instance.toString() + 'sealed interface Response' + toString_0(it.i1_1) + 'XX<T> extends Response<T> {}';
930
947
  }
931
948
  function JavaEndpointDefinitionEmitter$emitFromResponse$lambda(this$0) {
932
949
  return function (it) {
@@ -939,7 +956,7 @@ function sanitizeNegative($this, _this__u8e3s4) {
939
956
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
940
957
  }
941
958
  function sanitizeEnum($this, _this__u8e3s4) {
942
- return $this.s1v($this.r1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_')));
959
+ return $this.d21($this.c21(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_')));
943
960
  }
944
961
  function JavaEnumDefinitionEmitter$emit$lambda(this$0) {
945
962
  return function (it) {
@@ -950,7 +967,7 @@ function JavaEnumDefinitionEmitter() {
950
967
  }
951
968
  function Companion() {
952
969
  Companion_instance_2 = this;
953
- this.u1v_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
970
+ this.f21_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
954
971
  }
955
972
  var Companion_instance_2;
956
973
  function Companion_getInstance_0() {
@@ -959,7 +976,7 @@ function Companion_getInstance_0() {
959
976
  return Companion_instance_2;
960
977
  }
961
978
  function JavaIdentifierEmitter$sanitizeSymbol$lambda(it) {
962
- return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).u1(it);
979
+ return isLetterOrDigit(it.i1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).a2(it);
963
980
  }
964
981
  function JavaIdentifierEmitter() {
965
982
  }
@@ -974,7 +991,7 @@ function sanitizeSymbol_0($this, _this__u8e3s4) {
974
991
  var item = _iterator__ex2g4s.v();
975
992
  var _unary__edvuaz = index;
976
993
  index = _unary__edvuaz + 1 | 0;
977
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
994
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.ev(item) : item;
978
995
  destination.x(tmp$ret$0);
979
996
  }
980
997
  // Inline function 'kotlin.text.filter' call
@@ -1014,14 +1031,14 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
1014
1031
  return tmp;
1015
1032
  }
1016
1033
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1017
- return Companion_getInstance_1().v1v_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1034
+ return Companion_getInstance_1().g21_1.a2(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1018
1035
  }
1019
1036
  function sanitizeEnum_0($this, _this__u8e3s4) {
1020
1037
  return sanitizeKeywords_0($this, sanitizeFirstIsDigit_0($this, joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_')));
1021
1038
  }
1022
1039
  function Companion_0() {
1023
1040
  Companion_instance_3 = this;
1024
- this.v1v_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
1041
+ this.g21_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
1025
1042
  }
1026
1043
  var Companion_instance_3;
1027
1044
  function Companion_getInstance_1() {
@@ -1033,10 +1050,10 @@ function JavaIrEmitter$sanitizationConfig$lambda(it) {
1033
1050
  return '_' + it;
1034
1051
  }
1035
1052
  function JavaIrEmitter$sanitizationConfig$lambda_0(name) {
1036
- return name.m1h_1.a1() > 1 ? new Name(listOf(name.q1l())) : name;
1053
+ return name.k1l_1.b1() > 1 ? new Name(listOf(name.n1q())) : name;
1037
1054
  }
1038
1055
  function JavaIrEmitter$sanitizationConfig$lambda_1(name) {
1039
- return new Name(listOf(name.q1l()));
1056
+ return new Name(listOf(name.n1q()));
1040
1057
  }
1041
1058
  function JavaIrEmitter$sanitizationConfig$lambda_2(this$0) {
1042
1059
  return function (it) {
@@ -1047,23 +1064,23 @@ function JavaIrEmitter$sanitizationConfig$lambda_3(stmt, tr) {
1047
1064
  var tmp;
1048
1065
  var tmp_0;
1049
1066
  if (stmt instanceof FunctionCall) {
1050
- tmp_0 = stmt.a1m_1.r1h() === 'validate';
1067
+ tmp_0 = stmt.x1q_1.h1n() === 'validate';
1051
1068
  } else {
1052
1069
  tmp_0 = false;
1053
1070
  }
1054
1071
  if (tmp_0) {
1055
- tmp = transformChildren(stmt.e1m(VOID, emptyList()), tr);
1072
+ tmp = transformChildren(stmt.b1r(VOID, emptyList()), tr);
1056
1073
  } else {
1057
1074
  tmp = transformChildren(stmt, tr);
1058
1075
  }
1059
1076
  return tmp;
1060
1077
  }
1061
1078
  function JavaIrEmitter$emitShared$lambda(name) {
1062
- switch (name.r1h()) {
1079
+ switch (name.h1n()) {
1063
1080
  case 'client':
1064
- return Companion_getInstance().l1h('getClient');
1081
+ return Companion_getInstance().m1l('getClient');
1065
1082
  case 'server':
1066
- return Companion_getInstance().l1h('getServer');
1083
+ return Companion_getInstance().m1l('getServer');
1067
1084
  default:
1068
1085
  return null;
1069
1086
  }
@@ -1073,7 +1090,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
1073
1090
  var tmp;
1074
1091
  if (element instanceof File) {
1075
1092
  // Inline function 'kotlin.collections.partition' call
1076
- var this_0 = element.s1m_1;
1093
+ var this_0 = element.t1r_1;
1077
1094
  var first = ArrayList_init_$Create$();
1078
1095
  var second = ArrayList_init_$Create$();
1079
1096
  var _iterator__ex2g4s = this_0.t();
@@ -1086,9 +1103,9 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
1086
1103
  }
1087
1104
  }
1088
1105
  var _destruct__k2r9zo = new Pair(first, second);
1089
- var packageElements = _destruct__k2r9zo.ne();
1090
- var rest = _destruct__k2r9zo.oe();
1091
- tmp = element.v1m(VOID, plus_1(plus_1(packageElements, $imports), rest));
1106
+ var packageElements = _destruct__k2r9zo.pf();
1107
+ var rest = _destruct__k2r9zo.qf();
1108
+ tmp = element.w1r(VOID, plus_1(plus_1(packageElements, $imports), rest));
1092
1109
  } else {
1093
1110
  tmp = element;
1094
1111
  }
@@ -1100,11 +1117,11 @@ function JavaIrEmitter$emitShared$lambda_1($clientServer) {
1100
1117
  return function (element, transformer) {
1101
1118
  var tmp;
1102
1119
  if (element instanceof Namespace) {
1103
- var injected = element.x1m_1.equals(Companion_getInstance().l1h('Wirespec')) ? $clientServer : emptyList();
1120
+ var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? $clientServer : emptyList();
1104
1121
  var tmp_0;
1105
1122
  // Inline function 'kotlin.collections.isNotEmpty' call
1106
1123
  if (!injected.r()) {
1107
- tmp_0 = withElements(element, plus_1(element.t1m(), injected));
1124
+ tmp_0 = withElements(element, plus_1(element.u1r(), injected));
1108
1125
  } else {
1109
1126
  tmp_0 = element;
1110
1127
  }
@@ -1116,6 +1133,22 @@ function JavaIrEmitter$emitShared$lambda_1($clientServer) {
1116
1133
  return transformChildren_0(transformed, transformer);
1117
1134
  };
1118
1135
  }
1136
+ function JavaIrEmitter$emitGenerator$lambda(it) {
1137
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
1138
+ }
1139
+ function JavaIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
1140
+ return function (it) {
1141
+ return it === $generatorOwnName;
1142
+ };
1143
+ }
1144
+ function JavaIrEmitter$emitGenerator$lambda_1(it) {
1145
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
1146
+ }
1147
+ function JavaIrEmitter$emitGenerator$lambda_2(this$0) {
1148
+ return function (it) {
1149
+ return import_0(this$0.n20().cw_1 + '.model', it);
1150
+ };
1151
+ }
1119
1152
  function JavaIrEmitter$emit$lambda(this$0) {
1120
1153
  return function (it) {
1121
1154
  return sanitizeEnum_0(this$0, it);
@@ -1125,38 +1158,38 @@ function JavaIrEmitter$emit$lambda_0(it) {
1125
1158
  return listOf(function_0('label', VOID, VOID, JavaIrEmitter$emit$lambda$lambda));
1126
1159
  }
1127
1160
  function JavaIrEmitter$emit$lambda$lambda($this$function) {
1128
- $this$function.j1i(String_instance);
1129
- $this$function.i1k(new VariableReference(Companion_getInstance().l1h('label')));
1161
+ $this$function.z1l(String_instance);
1162
+ $this$function.a1m(new VariableReference(Companion_getInstance().m1l('label')));
1130
1163
  return Unit_instance;
1131
1164
  }
1132
1165
  function JavaIrEmitter(packageName, emitShared) {
1133
1166
  Companion_getInstance_1();
1134
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1135
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1136
- this.w1v_1 = packageName;
1137
- this.x1v_1 = emitShared;
1138
- this.y1v_1 = JavaGenerator_instance;
1139
- this.z1v_1 = FileExtension_Java_getInstance();
1140
- this.a1w_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
1167
+ packageName = packageName === VOID ? Companion_instance.bw('community.flock.wirespec.generated') : packageName;
1168
+ emitShared = emitShared === VOID ? Companion_instance_0.ws() : emitShared;
1169
+ this.h21_1 = packageName;
1170
+ this.i21_1 = emitShared;
1171
+ this.j21_1 = JavaGenerator_getInstance();
1172
+ this.k21_1 = FileExtension_Java_getInstance();
1173
+ this.l21_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
1141
1174
  var tmp = this;
1142
- var tmp_0 = Companion_getInstance_1().v1v_1;
1175
+ var tmp_0 = Companion_getInstance_1().g21_1;
1143
1176
  var tmp_1 = JavaIrEmitter$sanitizationConfig$lambda;
1144
1177
  var tmp_2 = JavaIrEmitter$sanitizationConfig$lambda_0;
1145
1178
  var tmp_3 = JavaIrEmitter$sanitizationConfig$lambda_1;
1146
1179
  var tmp_4 = JavaIrEmitter$sanitizationConfig$lambda_2(this);
1147
- tmp.b1w_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
1180
+ tmp.m21_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
1148
1181
  }
1149
- protoOf(JavaIrEmitter).c1v = function () {
1150
- return this.w1v_1;
1182
+ protoOf(JavaIrEmitter).n20 = function () {
1183
+ return this.h21_1;
1151
1184
  };
1152
- protoOf(JavaIrEmitter).j1u = function () {
1153
- return this.y1v_1;
1185
+ protoOf(JavaIrEmitter).q1z = function () {
1186
+ return this.j21_1;
1154
1187
  };
1155
- protoOf(JavaIrEmitter).eq = function () {
1156
- return this.z1v_1;
1188
+ protoOf(JavaIrEmitter).uu = function () {
1189
+ return this.k21_1;
1157
1190
  };
1158
- protoOf(JavaIrEmitter).m1u = function () {
1159
- var packageName = Companion_instance.lr('community.flock.wirespec.java');
1191
+ protoOf(JavaIrEmitter).t1z = function () {
1192
+ var packageName = Companion_instance.bw('community.flock.wirespec.java');
1160
1193
  var imports = listOf_0([import_0('java.lang.reflect', 'Type'), import_0('java.lang.reflect', 'ParameterizedType'), import_0('java.util', 'List'), import_0('java.util', 'Map')]);
1161
1194
  // Inline function 'kotlin.collections.map' call
1162
1195
  var this_0 = convertClientServer(packageName);
@@ -1175,66 +1208,95 @@ protoOf(JavaIrEmitter).m1u = function () {
1175
1208
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1176
1209
  var tmp = scope;
1177
1210
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1178
- var this_2 = scope.w1t_1;
1211
+ var this_2 = scope.d1z_1;
1179
1212
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1180
1213
  // Inline function 'kotlin.apply' call
1181
1214
  var this_3 = new TransformerBuilder();
1182
- this_3.c1h(JavaIrEmitter$emitShared$lambda_0(imports));
1183
- var tmp$ret$5 = this_3.d1h();
1184
- tmp.w1t_1 = transform(this_2, tmp$ret$5);
1215
+ this_3.v1m(JavaIrEmitter$emitShared$lambda_0(imports));
1216
+ var tmp$ret$5 = this_3.w1m();
1217
+ tmp.d1z_1 = transform(this_2, tmp$ret$5);
1185
1218
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1186
1219
  var tmp_0 = scope;
1187
1220
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1188
1221
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1189
- var this_4 = scope.w1t_1;
1222
+ var this_4 = scope.d1z_1;
1190
1223
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1191
1224
  // Inline function 'kotlin.apply' call
1192
1225
  var this_5 = new TransformerBuilder();
1193
- this_5.c1h(JavaIrEmitter$emitShared$lambda_1(clientServer));
1194
- var tmp$ret$10 = this_5.d1h();
1195
- tmp_0.w1t_1 = transform(this_4, tmp$ret$10);
1196
- var tmp_1 = scope.w1t_1;
1226
+ this_5.v1m(JavaIrEmitter$emitShared$lambda_1(clientServer));
1227
+ var tmp$ret$10 = this_5.w1m();
1228
+ tmp_0.d1z_1 = transform(this_4, tmp$ret$10);
1229
+ var tmp_1 = scope.d1z_1;
1197
1230
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1198
1231
  var tmp_2;
1199
- if (this.x1v_1.ho_1) {
1232
+ if (this.i21_1.xs_1) {
1200
1233
  tmp_2 = wirespecShared;
1201
1234
  } else {
1202
1235
  tmp_2 = null;
1203
1236
  }
1204
1237
  return tmp_2;
1205
1238
  };
1206
- protoOf(JavaIrEmitter).uq = function (definition, module_0, logger) {
1239
+ protoOf(JavaIrEmitter).kv = function (definition, module_0, logger) {
1207
1240
  var file = emit_0.call(this, definition, module_0, logger);
1208
- var tmp = file.v1m(Companion_getInstance().l1h(sanitizeSymbol_0(this, file.r1m_1.w1l())));
1241
+ var tmp = file.w1r(Companion_getInstance().m1l(sanitizeSymbol_0(this, file.s1r_1.t1q())));
1209
1242
  // Inline function 'kotlin.takeIf' call
1210
- var this_0 = this.a1w_1;
1243
+ var this_0 = this.l21_1;
1211
1244
  var tmp_0;
1212
- if (Companion_instance_1.qq(module_0)) {
1245
+ if (Companion_instance_1.gv(module_0)) {
1213
1246
  tmp_0 = this_0;
1214
1247
  } else {
1215
1248
  tmp_0 = null;
1216
1249
  }
1217
1250
  var tmp$ret$1 = tmp_0;
1218
- return placeInPackage(prependImports(tmp, tmp$ret$1), this.c1v(), definition);
1251
+ return placeInPackage(prependImports(tmp, tmp$ret$1), this.n20(), definition);
1252
+ };
1253
+ protoOf(JavaIrEmitter).x1z = function (definition, module_0) {
1254
+ var tmp;
1255
+ if (definition instanceof Type) {
1256
+ tmp = convertToGenerator_2(definition, module_0);
1257
+ } else {
1258
+ if (definition instanceof Enum) {
1259
+ tmp = convertToGenerator_1(definition);
1260
+ } else {
1261
+ if (definition instanceof Refined) {
1262
+ tmp = convertToGenerator_0(definition);
1263
+ } else {
1264
+ if (definition instanceof Union) {
1265
+ tmp = convertToGenerator(definition);
1266
+ } else {
1267
+ return null;
1268
+ }
1269
+ }
1270
+ }
1271
+ }
1272
+ var generatorFile = tmp;
1273
+ var sanitized = sanitizeNames(generatorFile, this.m21_1);
1274
+ var generatorOwnName = definition.lv().n1() + 'Generator';
1275
+ var tmp_0 = asSequence_0(collectCustomTypeNames(sanitized));
1276
+ var tmp_1 = filterNot(tmp_0, JavaIrEmitter$emitGenerator$lambda);
1277
+ var tmp_2 = filterNot(tmp_1, JavaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1278
+ var tmp_3 = distinct_0(map(tmp_2, JavaIrEmitter$emitGenerator$lambda_1));
1279
+ var modelImports = toList(map(tmp_3, JavaIrEmitter$emitGenerator$lambda_2(this)));
1280
+ return placeInPackage_0(prependImports(sanitized, plus_1(this.l21_1, modelImports)), this.n20(), 'generator');
1219
1281
  };
1220
- protoOf(JavaIrEmitter).up = function (type, module_0) {
1221
- return sanitizeNames(convertWithValidation(type, module_0), this.b1w_1);
1282
+ protoOf(JavaIrEmitter).ku = function (type, module_0) {
1283
+ return sanitizeNames(convertWithValidation(type, module_0), this.m21_1);
1222
1284
  };
1223
- protoOf(JavaIrEmitter).ir = function (enum_0, module_0) {
1285
+ protoOf(JavaIrEmitter).yv = function (enum_0, module_0) {
1224
1286
  var tmp = convert_0(enum_0);
1225
1287
  var tmp_0 = JavaIrEmitter$emit$lambda(this);
1226
- return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.b1w_1);
1288
+ return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.m21_1);
1227
1289
  };
1228
- protoOf(JavaIrEmitter).yq = function (union) {
1229
- return sanitizeNames(convert_1(union), this.b1w_1);
1290
+ protoOf(JavaIrEmitter).ov = function (union) {
1291
+ return sanitizeNames(convert_1(union), this.m21_1);
1230
1292
  };
1231
- protoOf(JavaIrEmitter).dr = function (refined) {
1232
- return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.b1w_1);
1293
+ protoOf(JavaIrEmitter).tv = function (refined) {
1294
+ return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.m21_1);
1233
1295
  };
1234
- protoOf(JavaIrEmitter).jr = function (endpoint) {
1235
- var tmp = sanitizeNames(transformTypeDescriptors(injectHandleFunction(convert_3(endpoint), endpoint)), this.b1w_1);
1296
+ protoOf(JavaIrEmitter).zv = function (endpoint) {
1297
+ var tmp = sanitizeNames(transformTypeDescriptors(injectHandleFunction(convert_3(endpoint), endpoint)), this.m21_1);
1236
1298
  // Inline function 'kotlin.takeIf' call
1237
- var this_0 = buildModelImports(endpoint, this.c1v());
1299
+ var this_0 = buildModelImports(endpoint, this.n20());
1238
1300
  var tmp_0;
1239
1301
  // Inline function 'kotlin.collections.isNotEmpty' call
1240
1302
  if (!this_0.r()) {
@@ -1245,25 +1307,25 @@ protoOf(JavaIrEmitter).jr = function (endpoint) {
1245
1307
  var tmp$ret$2 = tmp_0;
1246
1308
  return prependImports(tmp, tmp$ret$2);
1247
1309
  };
1248
- protoOf(JavaIrEmitter).xq = function (channel) {
1310
+ protoOf(JavaIrEmitter).nv = function (channel) {
1249
1311
  var tmp;
1250
- if (channel.mo_1.l1() === channel.no_1.l1()) {
1251
- tmp = this.c1v().mr_1 + '.model.';
1312
+ if (channel.ct_1.n1() === channel.dt_1.n1()) {
1313
+ tmp = this.n20().cw_1 + '.model.';
1252
1314
  } else {
1253
1315
  tmp = '';
1254
1316
  }
1255
1317
  var fullyQualifiedPrefix = tmp;
1256
- return applyFunctionalInterface(sanitizeNames(convert_4(channel), this.b1w_1), fullyQualifiedPrefix);
1318
+ return applyFunctionalInterface(sanitizeNames(convert_4(channel), this.m21_1), fullyQualifiedPrefix);
1257
1319
  };
1258
- protoOf(JavaIrEmitter).o1u = function (endpoint) {
1259
- var imports = buildModelImports(endpoint, this.c1v());
1260
- var endpointImport = import_0(this.c1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
1261
- var endpointName = endpoint.ep_1.l1();
1262
- var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.b1w_1)), endpointName);
1263
- var subPackageName = plus_0(this.c1v(), 'client');
1264
- return new File(Companion_getInstance().l1h(subPackageName.or() + sanitizeSymbol_0(this, file.r1m_1.w1l())), plus_1(plus_1(plus_1(plus_1(listOf(new Package(subPackageName.mr_1)), this.a1w_1), imports), listOf(endpointImport)), file.s1m_1));
1320
+ protoOf(JavaIrEmitter).w1z = function (endpoint) {
1321
+ var imports = buildModelImports(endpoint, this.n20());
1322
+ var endpointImport = import_0(this.n20().cw_1 + '.endpoint', endpoint.ut_1.n1());
1323
+ var endpointName = endpoint.ut_1.n1();
1324
+ var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.m21_1)), endpointName);
1325
+ var subPackageName = plus_0(this.n20(), 'client');
1326
+ return new File(Companion_getInstance().m1l(subPackageName.ew() + sanitizeSymbol_0(this, file.s1r_1.t1q())), plus_1(plus_1(plus_1(plus_1(listOf(new Package(subPackageName.cw_1)), this.l21_1), imports), listOf(endpointImport)), file.t1r_1));
1265
1327
  };
1266
- protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1328
+ protoOf(JavaIrEmitter).u1z = function (endpoints, logger) {
1267
1329
  // Inline function 'kotlin.collections.flatMap' call
1268
1330
  // Inline function 'kotlin.collections.flatMapTo' call
1269
1331
  var destination = ArrayList_init_$Create$();
@@ -1279,7 +1341,7 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1279
1341
  var _iterator__ex2g4s_0 = destination.t();
1280
1342
  while (_iterator__ex2g4s_0.u()) {
1281
1343
  var e = _iterator__ex2g4s_0.v();
1282
- var key = e.ku_1;
1344
+ var key = e.az_1;
1283
1345
  if (set.x(key)) {
1284
1346
  list_0.x(e);
1285
1347
  }
@@ -1306,7 +1368,7 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1306
1368
  var _iterator__ex2g4s_2 = endpoints.t();
1307
1369
  while (_iterator__ex2g4s_2.u()) {
1308
1370
  var element_1 = _iterator__ex2g4s_2.v();
1309
- if (element_1.ep_1.l1() === element_0.ku_1) {
1371
+ if (element_1.ut_1.n1() === element_0.az_1) {
1310
1372
  tmp$ret$5 = false;
1311
1373
  break $l$block_0;
1312
1374
  }
@@ -1323,7 +1385,7 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1323
1385
  var _iterator__ex2g4s_3 = destination_0.t();
1324
1386
  while (_iterator__ex2g4s_3.u()) {
1325
1387
  var item = _iterator__ex2g4s_3.v();
1326
- var tmp$ret$10 = import_0(this.c1v().mr_1 + '.model', item.ku_1);
1388
+ var tmp$ret$10 = import_0(this.n20().cw_1 + '.model', item.az_1);
1327
1389
  destination_1.x(tmp$ret$10);
1328
1390
  }
1329
1391
  var imports = destination_1;
@@ -1333,7 +1395,7 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1333
1395
  var _iterator__ex2g4s_4 = endpoints.t();
1334
1396
  while (_iterator__ex2g4s_4.u()) {
1335
1397
  var item_0 = _iterator__ex2g4s_4.v();
1336
- var tmp$ret$13 = import_0(this.c1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1398
+ var tmp$ret$13 = import_0(this.n20().cw_1 + '.endpoint', item_0.ut_1.n1());
1337
1399
  destination_2.x(tmp$ret$13);
1338
1400
  }
1339
1401
  var endpointImports = destination_2;
@@ -1343,19 +1405,19 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1343
1405
  var _iterator__ex2g4s_5 = endpoints.t();
1344
1406
  while (_iterator__ex2g4s_5.u()) {
1345
1407
  var item_1 = _iterator__ex2g4s_5.v();
1346
- var tmp$ret$16 = import_0(this.c1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1408
+ var tmp$ret$16 = import_0(this.n20().cw_1 + '.client', item_1.ut_1.n1() + 'Client');
1347
1409
  destination_3.x(tmp$ret$16);
1348
1410
  }
1349
1411
  var clientImports = destination_3;
1350
1412
  var allImports = plus_1(plus_1(imports, endpointImports), clientImports);
1351
- var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.b1w_1);
1352
- return new File(Companion_getInstance().l1h(this.c1v().or() + sanitizeSymbol_0(this, file.r1m_1.w1l())), plus_1(plus_1(plus_1(listOf(new Package(this.c1v().mr_1)), this.a1w_1), allImports), file.s1m_1));
1413
+ var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.m21_1);
1414
+ return new File(Companion_getInstance().m1l(this.n20().ew() + sanitizeSymbol_0(this, file.s1r_1.t1q())), plus_1(plus_1(plus_1(listOf(new Package(this.n20().cw_1)), this.l21_1), allImports), file.t1r_1));
1353
1415
  };
1354
1416
  function transformTypeDescriptors(_this__u8e3s4) {
1355
1417
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1356
1418
  var scope = new TransformScope(_this__u8e3s4);
1357
- scope.f1u(transformTypeDescriptors$lambda);
1358
- var tmp = scope.w1t_1;
1419
+ scope.m1z(transformTypeDescriptors$lambda);
1420
+ var tmp = scope.d1z_1;
1359
1421
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1360
1422
  }
1361
1423
  function applyRefinedStructShape(_this__u8e3s4, refined) {
@@ -1364,14 +1426,14 @@ function applyRefinedStructShape(_this__u8e3s4, refined) {
1364
1426
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1365
1427
  var tmp = scope;
1366
1428
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1367
- var this_0 = scope.w1t_1;
1429
+ var this_0 = scope.d1z_1;
1368
1430
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1369
1431
  // Inline function 'kotlin.apply' call
1370
1432
  var this_1 = new TransformerBuilder();
1371
- this_1.c1h(applyRefinedStructShape$lambda(refined));
1372
- var tmp$ret$2 = this_1.d1h();
1373
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1374
- var tmp_0 = scope.w1t_1;
1433
+ this_1.v1m(applyRefinedStructShape$lambda(refined));
1434
+ var tmp$ret$2 = this_1.w1m();
1435
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
1436
+ var tmp_0 = scope.d1z_1;
1375
1437
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1376
1438
  }
1377
1439
  function injectHandleFunction(_this__u8e3s4, endpoint) {
@@ -1381,14 +1443,14 @@ function injectHandleFunction(_this__u8e3s4, endpoint) {
1381
1443
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1382
1444
  var tmp = scope;
1383
1445
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1384
- var this_0 = scope.w1t_1;
1446
+ var this_0 = scope.d1z_1;
1385
1447
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1386
1448
  // Inline function 'kotlin.apply' call
1387
1449
  var this_1 = new TransformerBuilder();
1388
- this_1.c1h(injectHandleFunction$lambda(handlersStruct));
1389
- var tmp$ret$2 = this_1.d1h();
1390
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1391
- var tmp_0 = scope.w1t_1;
1450
+ this_1.v1m(injectHandleFunction$lambda(handlersStruct));
1451
+ var tmp$ret$2 = this_1.w1m();
1452
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
1453
+ var tmp_0 = scope.d1z_1;
1392
1454
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1393
1455
  }
1394
1456
  function buildModelImports(_this__u8e3s4, packageName) {
@@ -1399,7 +1461,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1399
1461
  var _iterator__ex2g4s = tmp0.t();
1400
1462
  while (_iterator__ex2g4s.u()) {
1401
1463
  var element = _iterator__ex2g4s.v();
1402
- if (!(_this__u8e3s4.vq().l1() === element.ku_1)) {
1464
+ if (!(_this__u8e3s4.lv().n1() === element.az_1)) {
1403
1465
  destination.x(element);
1404
1466
  }
1405
1467
  }
@@ -1409,7 +1471,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1409
1471
  var _iterator__ex2g4s_0 = destination.t();
1410
1472
  while (_iterator__ex2g4s_0.u()) {
1411
1473
  var item = _iterator__ex2g4s_0.v();
1412
- var tmp$ret$3 = import_0(packageName.mr_1 + '.model', item.ku_1);
1474
+ var tmp$ret$3 = import_0(packageName.cw_1 + '.model', item.az_1);
1413
1475
  destination_0.x(tmp$ret$3);
1414
1476
  }
1415
1477
  return destination_0;
@@ -1420,24 +1482,24 @@ function applyFunctionalInterface(_this__u8e3s4, fullyQualifiedPrefix) {
1420
1482
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1421
1483
  var tmp = scope;
1422
1484
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1423
- var this_0 = scope.w1t_1;
1485
+ var this_0 = scope.d1z_1;
1424
1486
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1425
1487
  // Inline function 'kotlin.apply' call
1426
1488
  var this_1 = new TransformerBuilder();
1427
- this_1.c1h(applyFunctionalInterface$lambda(fullyQualifiedPrefix));
1428
- var tmp$ret$2 = this_1.d1h();
1429
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1489
+ this_1.v1m(applyFunctionalInterface$lambda(fullyQualifiedPrefix));
1490
+ var tmp$ret$2 = this_1.w1m();
1491
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
1430
1492
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1431
1493
  var tmp_0 = scope;
1432
1494
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1433
- var this_2 = scope.w1t_1;
1495
+ var this_2 = scope.d1z_1;
1434
1496
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1435
1497
  // Inline function 'kotlin.apply' call
1436
1498
  var this_3 = new TransformerBuilder();
1437
- this_3.c1h(applyFunctionalInterface$lambda_0);
1438
- var tmp$ret$7 = this_3.d1h();
1439
- tmp_0.w1t_1 = transform(this_2, tmp$ret$7);
1440
- var tmp_1 = scope.w1t_1;
1499
+ this_3.v1m(applyFunctionalInterface$lambda_0);
1500
+ var tmp$ret$7 = this_3.w1m();
1501
+ tmp_0.d1z_1 = transform(this_2, tmp$ret$7);
1502
+ var tmp_1 = scope.d1z_1;
1441
1503
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1442
1504
  }
1443
1505
  function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
@@ -1446,26 +1508,26 @@ function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
1446
1508
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1447
1509
  var tmp = scope;
1448
1510
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1449
- var this_0 = scope.w1t_1;
1511
+ var this_0 = scope.d1z_1;
1450
1512
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1451
1513
  // Inline function 'kotlin.apply' call
1452
1514
  var this_1 = new TransformerBuilder();
1453
- this_1.c1h(wrapAsyncReturnInThenApply$lambda(endpointName));
1454
- var tmp$ret$2 = this_1.d1h();
1455
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1456
- var tmp_0 = scope.w1t_1;
1515
+ this_1.v1m(wrapAsyncReturnInThenApply$lambda(endpointName));
1516
+ var tmp$ret$2 = this_1.w1m();
1517
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
1518
+ var tmp_0 = scope.d1z_1;
1457
1519
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1458
1520
  }
1459
1521
  function findRoot(_this__u8e3s4) {
1460
1522
  var tmp;
1461
1523
  if (_this__u8e3s4 instanceof Nullable) {
1462
- tmp = findRoot(_this__u8e3s4.n1h_1);
1524
+ tmp = findRoot(_this__u8e3s4.d1n_1);
1463
1525
  } else {
1464
1526
  if (_this__u8e3s4 instanceof Array_0) {
1465
- tmp = findRoot(_this__u8e3s4.o1h_1);
1527
+ tmp = findRoot(_this__u8e3s4.e1n_1);
1466
1528
  } else {
1467
1529
  if (_this__u8e3s4 instanceof Dict_0) {
1468
- tmp = findRoot(_this__u8e3s4.j1m_1);
1530
+ tmp = findRoot(_this__u8e3s4.g1r_1);
1469
1531
  } else {
1470
1532
  tmp = _this__u8e3s4;
1471
1533
  }
@@ -1494,7 +1556,7 @@ function toJavaName(_this__u8e3s4) {
1494
1556
  var tmp;
1495
1557
  if (_this__u8e3s4 instanceof Integer_0) {
1496
1558
  var tmp_0;
1497
- switch (_this__u8e3s4.f1m_1.b3_1) {
1559
+ switch (_this__u8e3s4.c1r_1.h3_1) {
1498
1560
  case 0:
1499
1561
  tmp_0 = 'Integer';
1500
1562
  break;
@@ -1509,7 +1571,7 @@ function toJavaName(_this__u8e3s4) {
1509
1571
  } else {
1510
1572
  if (_this__u8e3s4 instanceof Number_1) {
1511
1573
  var tmp_1;
1512
- switch (_this__u8e3s4.g1m_1.b3_1) {
1574
+ switch (_this__u8e3s4.d1r_1.h3_1) {
1513
1575
  case 0:
1514
1576
  tmp_1 = 'Float';
1515
1577
  break;
@@ -1538,7 +1600,7 @@ function toJavaName(_this__u8e3s4) {
1538
1600
  tmp = 'Void';
1539
1601
  } else {
1540
1602
  if (_this__u8e3s4 instanceof Custom_0) {
1541
- tmp = _this__u8e3s4.p1h_1;
1603
+ tmp = _this__u8e3s4.f1n_1;
1542
1604
  } else {
1543
1605
  tmp = 'Object';
1544
1606
  }
@@ -1552,7 +1614,7 @@ function toJavaName(_this__u8e3s4) {
1552
1614
  return tmp;
1553
1615
  }
1554
1616
  function buildHandlersStruct(_this__u8e3s4) {
1555
- var pathTemplate = '/' + joinToString(_this__u8e3s4.gp_1, '/', VOID, VOID, VOID, VOID, buildHandlersStruct$lambda);
1617
+ var pathTemplate = '/' + joinToString(_this__u8e3s4.wt_1, '/', VOID, VOID, VOID, VOID, buildHandlersStruct$lambda);
1556
1618
  return struct('Handlers', buildHandlersStruct$lambda_0(pathTemplate, _this__u8e3s4));
1557
1619
  }
1558
1620
  function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
@@ -1562,8 +1624,8 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
1562
1624
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1563
1625
  var scope = new TransformScope(_this__u8e3s4);
1564
1626
  var tmp_0 = withFullyQualifiedPrefix$lambda;
1565
- scope.z1t(tmp_0, withFullyQualifiedPrefix$lambda_0(prefix));
1566
- var tmp_1 = scope.w1t_1;
1627
+ scope.g1z(tmp_0, withFullyQualifiedPrefix$lambda_0(prefix));
1628
+ var tmp_1 = scope.d1z_1;
1567
1629
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1568
1630
  } else {
1569
1631
  tmp = _this__u8e3s4;
@@ -1573,8 +1635,8 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
1573
1635
  function transformTypeDescriptors$lambda(stmt, tr) {
1574
1636
  var tmp;
1575
1637
  if (stmt instanceof TypeDescriptor) {
1576
- var rootType = findRoot(stmt.g1o_1);
1577
- var containerStr = rawContainerClass(stmt.g1o_1);
1638
+ var rootType = findRoot(stmt.i1t_1);
1639
+ var containerStr = rawContainerClass(stmt.i1t_1);
1578
1640
  var rootStr = toJavaName(rootType) + '.class';
1579
1641
  var tmp_0;
1580
1642
  if (containerStr == null) {
@@ -1593,8 +1655,8 @@ function transformTypeDescriptors$lambda(stmt, tr) {
1593
1655
  }
1594
1656
  function applyRefinedStructShape$lambda$lambda($refined) {
1595
1657
  return function ($this$function) {
1596
- $this$function.j1i(convert_5($refined.cr_1));
1597
- $this$function.i1k(new VariableReference(Companion_getInstance().l1h('value')));
1658
+ $this$function.z1l(convert_5($refined.sv_1));
1659
+ $this$function.a1m(new VariableReference(Companion_getInstance().m1l('value')));
1598
1660
  return Unit_instance;
1599
1661
  };
1600
1662
  }
@@ -1604,18 +1666,18 @@ function applyRefinedStructShape$lambda($refined) {
1604
1666
  if (element instanceof Struct) {
1605
1667
  var tmp_0 = listOf(new Custom_0('Wirespec.Refined'));
1606
1668
  // Inline function 'kotlin.collections.map' call
1607
- var this_0 = element.g1n_1;
1669
+ var this_0 = element.h1s_1;
1608
1670
  // Inline function 'kotlin.collections.mapTo' call
1609
1671
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1610
1672
  var _iterator__ex2g4s = this_0.t();
1611
1673
  while (_iterator__ex2g4s.u()) {
1612
1674
  var item = _iterator__ex2g4s.v();
1613
1675
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1614
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
1676
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
1615
1677
  var tmp$ret$0 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1616
1678
  destination.x(tmp$ret$0);
1617
1679
  }
1618
- var tmp_1 = element.i1n(VOID, VOID, VOID, tmp_0, destination);
1680
+ var tmp_1 = element.k1s(VOID, VOID, VOID, tmp_0, destination);
1619
1681
  tmp = plus_3(tmp_1, function_0('value', VOID, true, applyRefinedStructShape$lambda$lambda($refined)));
1620
1682
  } else {
1621
1683
  tmp = element;
@@ -1632,7 +1694,7 @@ function injectHandleFunction$lambda$lambda($handlersStruct) {
1632
1694
  var tmp_0;
1633
1695
  // Inline function 'kotlin.collections.isNotEmpty' call
1634
1696
  if (!injected.r()) {
1635
- tmp_0 = withElements(element, plus_1(element.t1m(), injected));
1697
+ tmp_0 = withElements(element, plus_1(element.u1r(), injected));
1636
1698
  } else {
1637
1699
  tmp_0 = element;
1638
1700
  }
@@ -1649,21 +1711,21 @@ function injectHandleFunction$lambda($handlersStruct) {
1649
1711
  var tmp;
1650
1712
  if (element instanceof Interface) {
1651
1713
  var tmp_0;
1652
- if (element.j1n_1.equals(Companion_getInstance().l1h('Handler'))) {
1714
+ if (element.l1s_1.equals(Companion_getInstance().m1l('Handler'))) {
1653
1715
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1654
1716
  var scope = new TransformScope(element);
1655
1717
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1656
1718
  var tmp_1 = scope;
1657
1719
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1658
1720
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1659
- var this_0 = scope.w1t_1;
1721
+ var this_0 = scope.d1z_1;
1660
1722
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1661
1723
  // Inline function 'kotlin.apply' call
1662
1724
  var this_1 = new TransformerBuilder();
1663
- this_1.c1h(injectHandleFunction$lambda$lambda($handlersStruct));
1664
- var tmp$ret$2 = this_1.d1h();
1665
- tmp_1.w1t_1 = transform(this_0, tmp$ret$2);
1666
- var tmp_2 = scope.w1t_1;
1725
+ this_1.v1m(injectHandleFunction$lambda$lambda($handlersStruct));
1726
+ var tmp$ret$2 = this_1.w1m();
1727
+ tmp_1.d1z_1 = transform(this_0, tmp$ret$2);
1728
+ var tmp_2 = scope.d1z_1;
1667
1729
  tmp_0 = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1668
1730
  } else {
1669
1731
  tmp_0 = element;
@@ -1693,7 +1755,7 @@ function applyFunctionalInterface$lambda_0(element, transformer) {
1693
1755
  if (element instanceof File) {
1694
1756
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1695
1757
  // Inline function 'kotlin.collections.filterIsInstance' call
1696
- var tmp0 = element.t1m();
1758
+ var tmp0 = element.u1r();
1697
1759
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1698
1760
  var destination = ArrayList_init_$Create$();
1699
1761
  var _iterator__ex2g4s = tmp0.t();
@@ -1705,7 +1767,7 @@ function applyFunctionalInterface$lambda_0(element, transformer) {
1705
1767
  }
1706
1768
  var tmp$ret$2 = firstOrNull_0(destination);
1707
1769
  var interfaceElement = ensureNotNull(tmp$ret$2);
1708
- tmp = element.v1m(VOID, listOf_0([new RawElement('@FunctionalInterface\n'), interfaceElement]));
1770
+ tmp = element.w1r(VOID, listOf_0([new RawElement('@FunctionalInterface\n'), interfaceElement]));
1709
1771
  } else {
1710
1772
  tmp = element;
1711
1773
  }
@@ -1718,11 +1780,11 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1718
1780
  if (element instanceof Function) {
1719
1781
  var tmp$ret$0;
1720
1782
  $l$block_1: {
1721
- if (!element.x1j_1 || element.w1j_1.a1() < 2) {
1783
+ if (!element.g1p_1 || element.f1p_1.b1() < 2) {
1722
1784
  tmp$ret$0 = element;
1723
1785
  break $l$block_1;
1724
1786
  }
1725
- var tmp_0 = element.w1j_1.f1(element.w1j_1.a1() - 2 | 0);
1787
+ var tmp_0 = element.f1p_1.g1(element.f1p_1.b1() - 2 | 0);
1726
1788
  var tmp0_elvis_lhs = tmp_0 instanceof Assignment ? tmp_0 : null;
1727
1789
  var tmp_1;
1728
1790
  if (tmp0_elvis_lhs == null) {
@@ -1732,16 +1794,16 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1732
1794
  tmp_1 = tmp0_elvis_lhs;
1733
1795
  }
1734
1796
  var transportAssign = tmp_1;
1735
- var tmp_2 = last(element.w1j_1);
1797
+ var tmp_2 = last(element.f1p_1);
1736
1798
  if (!(tmp_2 instanceof ReturnStatement)) {
1737
1799
  tmp$ret$0 = element;
1738
1800
  break $l$block_1;
1739
1801
  }
1740
- var tmp_3 = dropLast(element.w1j_1, 2);
1741
- var tmp1_name = Companion_getInstance().l1h('thenApply');
1742
- var tmp2_receiver = transportAssign.j1o_1;
1743
- var tmp3_arguments = mapOf(to(Companion_getInstance().l1h('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1744
- tmp$ret$0 = element.a1k(VOID, VOID, VOID, VOID, plus_2(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1802
+ var tmp_3 = dropLast(element.f1p_1, 2);
1803
+ var tmp1_name = Companion_getInstance().m1l('thenApply');
1804
+ var tmp2_receiver = transportAssign.l1t_1;
1805
+ var tmp3_arguments = mapOf(to(Companion_getInstance().m1l('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1806
+ tmp$ret$0 = element.j1p(VOID, VOID, VOID, VOID, plus_2(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1745
1807
  }
1746
1808
  tmp = tmp$ret$0;
1747
1809
  } else {
@@ -1754,10 +1816,10 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1754
1816
  function buildHandlersStruct$lambda(it) {
1755
1817
  var tmp;
1756
1818
  if (it instanceof Literal) {
1757
- tmp = it.hq_1;
1819
+ tmp = it.xu_1;
1758
1820
  } else {
1759
1821
  if (it instanceof Param) {
1760
- tmp = '{' + it.lp_1.l1() + '}';
1822
+ tmp = '{' + it.bu_1.n1() + '}';
1761
1823
  } else {
1762
1824
  noWhenBranchMatchedException();
1763
1825
  }
@@ -1766,50 +1828,50 @@ function buildHandlersStruct$lambda(it) {
1766
1828
  }
1767
1829
  function buildHandlersStruct$lambda$lambda($pathTemplate) {
1768
1830
  return function ($this$function) {
1769
- $this$function.j1i(String_instance);
1770
- $this$function.i1k($this$function.z1s($pathTemplate));
1831
+ $this$function.z1l(String_instance);
1832
+ $this$function.a1m($this$function.i1y($pathTemplate));
1771
1833
  return Unit_instance;
1772
1834
  };
1773
1835
  }
1774
1836
  function buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct) {
1775
1837
  return function ($this$function) {
1776
- $this$function.j1i(String_instance);
1777
- $this$function.i1k($this$function.z1s($this_buildHandlersStruct.fp_1.a3_1));
1838
+ $this$function.z1l(String_instance);
1839
+ $this$function.a1m($this$function.i1y($this_buildHandlersStruct.vt_1.g3_1));
1778
1840
  return Unit_instance;
1779
1841
  };
1780
1842
  }
1781
1843
  function buildHandlersStruct$lambda$lambda_1($this$function) {
1782
- $this$function.j1i($this$function.s1h('Wirespec.ServerEdge', [$this$function.s1h('Request', []), $this$function.s1h('Response', [Wildcard_instance])]));
1783
- $this$function.k1i('serialization', $this$function.s1h('Wirespec.Serialization', []));
1784
- $this$function.i1k(new RawExpression('new Wirespec.ServerEdge<>() {\n@Override public Request from(Wirespec.RawRequest request) {\n return fromRawRequest(serialization, request);\n}\n@Override public Wirespec.RawResponse to(Response<?> response) {\n return toRawResponse(serialization, response);\n}\n}'));
1844
+ $this$function.z1l($this$function.n1l('Wirespec.ServerEdge', [$this$function.n1l('Request', []), $this$function.n1l('Response', [Wildcard_instance])]));
1845
+ $this$function.w1l('serialization', $this$function.n1l('Wirespec.Serialization', []));
1846
+ $this$function.a1m(new RawExpression('new Wirespec.ServerEdge<>() {\n@Override public Request from(Wirespec.RawRequest request) {\n return fromRawRequest(serialization, request);\n}\n@Override public Wirespec.RawResponse to(Response<?> response) {\n return toRawResponse(serialization, response);\n}\n}'));
1785
1847
  return Unit_instance;
1786
1848
  }
1787
1849
  function buildHandlersStruct$lambda$lambda_2($this$function) {
1788
- $this$function.j1i($this$function.s1h('Wirespec.ClientEdge', [$this$function.s1h('Request', []), $this$function.s1h('Response', [Wildcard_instance])]));
1789
- $this$function.k1i('serialization', $this$function.s1h('Wirespec.Serialization', []));
1790
- $this$function.i1k(new RawExpression('new Wirespec.ClientEdge<>() {\n@Override public Wirespec.RawRequest to(Request request) {\n return toRawRequest(serialization, request);\n}\n@Override public Response<?> from(Wirespec.RawResponse response) {\n return fromRawResponse(serialization, response);\n}\n}'));
1850
+ $this$function.z1l($this$function.n1l('Wirespec.ClientEdge', [$this$function.n1l('Request', []), $this$function.n1l('Response', [Wildcard_instance])]));
1851
+ $this$function.w1l('serialization', $this$function.n1l('Wirespec.Serialization', []));
1852
+ $this$function.a1m(new RawExpression('new Wirespec.ClientEdge<>() {\n@Override public Wirespec.RawRequest to(Request request) {\n return toRawRequest(serialization, request);\n}\n@Override public Response<?> from(Wirespec.RawResponse response) {\n return fromRawResponse(serialization, response);\n}\n}'));
1791
1853
  return Unit_instance;
1792
1854
  }
1793
1855
  function buildHandlersStruct$lambda_0($pathTemplate, $this_buildHandlersStruct) {
1794
1856
  return function ($this$struct) {
1795
- $this$struct.j1k($this$struct.s1h('Wirespec.Server', [$this$struct.s1h('Request', []), $this$struct.s1h('Response', [Wildcard_instance])]));
1796
- $this$struct.j1k($this$struct.s1h('Wirespec.Client', [$this$struct.s1h('Request', []), $this$struct.s1h('Response', [Wildcard_instance])]));
1797
- $this$struct.a1i('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1798
- $this$struct.a1i('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1799
- $this$struct.a1i('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1800
- $this$struct.a1i('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1857
+ $this$struct.s1o($this$struct.n1l('Wirespec.Server', [$this$struct.n1l('Request', []), $this$struct.n1l('Response', [Wildcard_instance])]));
1858
+ $this$struct.s1o($this$struct.n1l('Wirespec.Client', [$this$struct.n1l('Request', []), $this$struct.n1l('Response', [Wildcard_instance])]));
1859
+ $this$struct.b1m('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1860
+ $this$struct.b1m('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1861
+ $this$struct.b1m('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1862
+ $this$struct.b1m('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1801
1863
  return Unit_instance;
1802
1864
  };
1803
1865
  }
1804
1866
  function withFullyQualifiedPrefix$lambda(it) {
1805
- return it.t1o_1.equals(Companion_getInstance().l1h('message'));
1867
+ return it.v1t_1.equals(Companion_getInstance().m1l('message'));
1806
1868
  }
1807
1869
  function withFullyQualifiedPrefix$lambda_0($prefix) {
1808
1870
  return function (param) {
1809
- var t = param.u1o_1;
1871
+ var t = param.w1t_1;
1810
1872
  var tmp;
1811
1873
  if (t instanceof Custom_0) {
1812
- tmp = param.w1o(VOID, t.m1m($prefix + t.p1h_1));
1874
+ tmp = param.y1t(VOID, t.j1r($prefix + t.f1n_1));
1813
1875
  } else {
1814
1876
  tmp = param;
1815
1877
  }
@@ -1820,8 +1882,8 @@ function JavaRefinedTypeDefinitionEmitter() {
1820
1882
  }
1821
1883
  function JavaShared() {
1822
1884
  JavaShared_instance = this;
1823
- this.m1v_1 = 'community.flock.wirespec.java';
1824
- this.n1v_1 = trimMargin('\n |package ' + this.m1v_1 + ';\n |\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |import java.util.List;\n |import java.util.Map;\n |import java.util.Optional;\n |\n |public interface Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { String label(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T value(); }\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 extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.qr(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.qr(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'String getPathTemplate();\n |' + Spacer_instance.qr(2) + 'String getMethod();\n |' + Spacer_instance.qr(2) + 'ClientEdge<Req, Res> getClient(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'String getPathTemplate();\n |' + Spacer_instance.qr(2) + 'String getMethod();\n |' + Spacer_instance.qr(2) + 'ServerEdge<Req, Res> getServer(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T> { Path path(); Method method(); Queries queries(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { Integer status(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Serialization extends Serializer, Deserializer {}\n |' + Spacer_instance.toString() + 'interface Serializer extends BodySerializer, PathSerializer, ParamSerializer {}\n |' + Spacer_instance.toString() + 'interface Deserializer extends BodyDeserializer, PathDeserializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerialization extends BodySerializer, BodyDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerializer { <T> byte[] serializeBody(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { <T> T deserializeBody(byte[] raw, Type type); }\n |' + Spacer_instance.toString() + 'interface PathSerialization extends PathSerializer, PathDeserializer {}\n |' + Spacer_instance.toString() + 'interface PathSerializer { <T> String serializePath(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { <T> T deserializePath(String raw, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> actualTypeArguments, final Class<?> rawType) {\n |' + Spacer_instance.qr(2) + 'if(rawType != null) {\n |' + Spacer_instance.qr(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.qr(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.qr(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.qr(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.qr(3) + '};\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.qr(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1885
+ this.x20_1 = 'community.flock.wirespec.java';
1886
+ this.y20_1 = trimMargin('\n |package ' + this.x20_1 + ';\n |\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |import java.util.List;\n |import java.util.Map;\n |import java.util.Optional;\n |\n |public interface Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { String label(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T value(); }\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 extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.gw(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.gw(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.gw(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.gw(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.gw(2) + 'String getPathTemplate();\n |' + Spacer_instance.gw(2) + 'String getMethod();\n |' + Spacer_instance.gw(2) + 'ClientEdge<Req, Res> getClient(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.gw(2) + 'String getPathTemplate();\n |' + Spacer_instance.gw(2) + 'String getMethod();\n |' + Spacer_instance.gw(2) + 'ServerEdge<Req, Res> getServer(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T> { Path path(); Method method(); Queries queries(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { Integer status(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Serialization extends Serializer, Deserializer {}\n |' + Spacer_instance.toString() + 'interface Serializer extends BodySerializer, PathSerializer, ParamSerializer {}\n |' + Spacer_instance.toString() + 'interface Deserializer extends BodyDeserializer, PathDeserializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerialization extends BodySerializer, BodyDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerializer { <T> byte[] serializeBody(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { <T> T deserializeBody(byte[] raw, Type type); }\n |' + Spacer_instance.toString() + 'interface PathSerialization extends PathSerializer, PathDeserializer {}\n |' + Spacer_instance.toString() + 'interface PathSerializer { <T> String serializePath(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { <T> T deserializePath(String raw, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> actualTypeArguments, final Class<?> rawType) {\n |' + Spacer_instance.gw(2) + 'if(rawType != null) {\n |' + Spacer_instance.gw(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.gw(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.gw(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.gw(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.gw(3) + '};\n |' + Spacer_instance.gw(2) + '}\n |' + Spacer_instance.gw(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1825
1887
  }
1826
1888
  protoOf(JavaShared).toString = function () {
1827
1889
  return 'JavaShared';
@@ -1845,10 +1907,10 @@ function JavaShared_getInstance() {
1845
1907
  function emitType($this, _this__u8e3s4) {
1846
1908
  var tmp;
1847
1909
  if (_this__u8e3s4 instanceof Dict) {
1848
- tmp = 'java.util.Map<String, ' + $this.xp(_this__u8e3s4.co_1) + '>';
1910
+ tmp = 'java.util.Map<String, ' + $this.nu(_this__u8e3s4.ss_1) + '>';
1849
1911
  } else {
1850
1912
  if (_this__u8e3s4 instanceof Iterable) {
1851
- tmp = 'java.util.List<' + $this.xp(_this__u8e3s4.zn_1) + '>';
1913
+ tmp = 'java.util.List<' + $this.nu(_this__u8e3s4.ps_1) + '>';
1852
1914
  } else {
1853
1915
  if (_this__u8e3s4 instanceof Unit) {
1854
1916
  tmp = 'void';
@@ -1857,7 +1919,7 @@ function emitType($this, _this__u8e3s4) {
1857
1919
  tmp = 'Object';
1858
1920
  } else {
1859
1921
  if (_this__u8e3s4 instanceof Custom) {
1860
- tmp = _this__u8e3s4.ku_1;
1922
+ tmp = _this__u8e3s4.az_1;
1861
1923
  } else {
1862
1924
  if (_this__u8e3s4 instanceof Primitive) {
1863
1925
  tmp = emit_18($this, _this__u8e3s4);
@@ -1872,14 +1934,14 @@ function emitType($this, _this__u8e3s4) {
1872
1934
  return tmp;
1873
1935
  }
1874
1936
  function emit_18($this, _this__u8e3s4) {
1875
- var t = _this__u8e3s4.ou_1;
1937
+ var t = _this__u8e3s4.ez_1;
1876
1938
  var tmp;
1877
1939
  if (t instanceof String_0) {
1878
1940
  tmp = 'String';
1879
1941
  } else {
1880
1942
  if (t instanceof Integer) {
1881
1943
  var tmp_0;
1882
- switch (t.st_1.b3_1) {
1944
+ switch (t.iy_1.h3_1) {
1883
1945
  case 0:
1884
1946
  tmp_0 = 'Integer';
1885
1947
  break;
@@ -1894,7 +1956,7 @@ function emit_18($this, _this__u8e3s4) {
1894
1956
  } else {
1895
1957
  if (t instanceof Number_0) {
1896
1958
  var tmp_1;
1897
- switch (t.vt_1.b3_1) {
1959
+ switch (t.ly_1.h3_1) {
1898
1960
  case 0:
1899
1961
  tmp_1 = 'Float';
1900
1962
  break;
@@ -1923,44 +1985,45 @@ function emit_18($this, _this__u8e3s4) {
1923
1985
  }
1924
1986
  function JavaTypeDefinitionEmitter$emit$lambda(this$0) {
1925
1987
  return function (it) {
1926
- return this$0.xp(it);
1988
+ return this$0.nu(it);
1927
1989
  };
1928
1990
  }
1929
1991
  function JavaTypeDefinitionEmitter$emit$lambda_0(this$0) {
1930
1992
  return function (it) {
1931
- return Spacer_instance.toString() + this$0.wp(it) + ',';
1993
+ return Spacer_instance.toString() + this$0.mu(it) + ',';
1932
1994
  };
1933
1995
  }
1934
1996
  function JavaTypeDefinitionEmitter() {
1935
1997
  }
1936
1998
  function JavaUnionDefinitionEmitter$emit$lambda(it) {
1937
- return it.l1();
1999
+ return it.n1();
1938
2000
  }
1939
2001
  function JavaUnionDefinitionEmitter() {
1940
2002
  }
1941
2003
  //region block: post-declaration
1942
- protoOf(JavaEmitter).wq = emit_12;
1943
- protoOf(JavaEmitter).up = emit_3;
1944
- protoOf(JavaEmitter).vp = emit_4;
1945
- protoOf(JavaEmitter).wp = emit_5;
1946
- protoOf(JavaEmitter).xp = emit_6;
1947
- protoOf(JavaEmitter).yp = emit_7;
1948
- protoOf(JavaEmitter).jr = emit_9;
1949
- protoOf(JavaEmitter).p1v = emit_10;
1950
- protoOf(JavaEmitter).q1v = emit_11;
1951
- protoOf(JavaEmitter).xq = emit_8;
1952
- protoOf(JavaEmitter).ir = emit_15;
1953
- protoOf(JavaEmitter).yq = emit_13;
1954
- protoOf(JavaEmitter).dr = emit_14;
1955
- protoOf(JavaEmitter).o1v = sanitizeSymbol;
1956
- protoOf(JavaEmitter).r1v = sanitizeFirstIsDigit;
1957
- protoOf(JavaEmitter).s1v = sanitizeKeywords;
1958
- protoOf(JavaEmitter).e1v = emitRoot;
1959
- protoOf(JavaEmitter).d1v = emitRoot$default;
1960
- protoOf(JavaEmitter).t1v = emitHandleFunction;
1961
- protoOf(JavaEmitter).kr = emitValidator;
1962
- protoOf(JavaIrEmitter).on = emit_1;
1963
- protoOf(JavaIrEmitter).l1u = emit_2;
2004
+ protoOf(JavaEmitter).mv = emit_9;
2005
+ protoOf(JavaEmitter).ku = emit_3;
2006
+ protoOf(JavaEmitter).lu = emit_4;
2007
+ protoOf(JavaEmitter).mu = emit_5;
2008
+ protoOf(JavaEmitter).nu = emit_6;
2009
+ protoOf(JavaEmitter).ou = emit_7;
2010
+ protoOf(JavaEmitter).zv = emit_13;
2011
+ protoOf(JavaEmitter).a21 = emit_14;
2012
+ protoOf(JavaEmitter).b21 = emit_15;
2013
+ protoOf(JavaEmitter).nv = emit_8;
2014
+ protoOf(JavaEmitter).yv = emit_12;
2015
+ protoOf(JavaEmitter).ov = emit_10;
2016
+ protoOf(JavaEmitter).tv = emit_11;
2017
+ protoOf(JavaEmitter).z20 = sanitizeSymbol;
2018
+ protoOf(JavaEmitter).c21 = sanitizeFirstIsDigit;
2019
+ protoOf(JavaEmitter).d21 = sanitizeKeywords;
2020
+ protoOf(JavaEmitter).p20 = emitRoot;
2021
+ protoOf(JavaEmitter).o20 = emitRoot$default;
2022
+ protoOf(JavaEmitter).e21 = emitHandleFunction;
2023
+ protoOf(JavaEmitter).aw = emitValidator;
2024
+ protoOf(JavaIrEmitter).es = emit_1;
2025
+ protoOf(JavaIrEmitter).s1z = emit_2;
2026
+ protoOf(JavaIrEmitter).v1z = beforeGenerate;
1964
2027
  //endregion
1965
2028
  //region block: exports
1966
2029
  export {