@zenwave360/dsl 1.10.0-next.10.1 → 1.10.0-next.12.1

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.
@@ -61,6 +61,7 @@ import {
61
61
  to2cs3ny02qtbcb as to,
62
62
  mapOf1xd03cq9cnmy8 as mapOf,
63
63
  isIntArrayeijsubfngq38 as isIntArray,
64
+ substringBeforeLastqh7oeuvefdek as substringBeforeLast,
64
65
  hashCodeq5arwsb9dgti as hashCode,
65
66
  equals2au1ep9vhcato as equals,
66
67
  getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
@@ -83,18 +84,10 @@ import {
83
84
  trimIndent1qytc1wvt8suh as trimIndent,
84
85
  emptySetcxexqki71qfa as emptySet,
85
86
  joinToStringxqcavsxcmh4q as joinToString_0,
86
- StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
87
- isBlank1dvkhjjvox3p0 as isBlank,
88
- listOfNotNull2woi2boe01ub4 as listOfNotNull,
89
- setOf45ia9pnfhe90 as setOf,
90
- isDigit3mimrri4wkzop as isDigit,
91
- equals2v6cggk171b6e as equals_0,
92
- toSet2orjxp16sotqu as toSet,
93
- LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
94
- listOfNotNull1v4ggfackvuny as listOfNotNull_0,
95
87
  println2shhhgwwt4c61 as println,
96
88
  sorted354mfsiv4s7x5 as sorted,
97
89
  checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
90
+ LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
98
91
  MutableCollection3jqcg879qsnhr as MutableCollection,
99
92
  eachCount1imd75z0wkpbt as eachCount,
100
93
  distinct10qe1scfdvu5k as distinct,
@@ -329,13 +322,10 @@ initMetadataForClass(ZdlParseResult, 'ZdlParseResult');
329
322
  initMetadataForCompanion(Companion_3);
330
323
  initMetadataForClass(ZdlParser$parse$errorListener$1, VOID, VOID, BaseErrorListener);
331
324
  initMetadataForClass(ZdlParser_0, 'ZdlParser', ZdlParser_0);
332
- initMetadataForClass(GenerateMermaidFromZdl, 'GenerateMermaidFromZdl', GenerateMermaidFromZdl);
333
325
  initMetadataForClass(ZdlListenerImpl, 'ZdlListenerImpl', ZdlListenerImpl, ZdlBaseListener);
334
326
  initMetadataForObject(ZdlListenerUtils, 'ZdlListenerUtils');
335
327
  initMetadataForCompanion(Companion_4);
336
328
  initMetadataForClass(ZdlModelValidator, 'ZdlModelValidator', ZdlModelValidator);
337
- initMetadataForCompanion(Companion_5);
338
- initMetadataForClass(ZdlToMermaidClassDiagramTransformer, 'ZdlToMermaidClassDiagramTransformer', ZdlToMermaidClassDiagramTransformer);
339
329
  initMetadataForClass(ZflModel, 'ZflModel', ZflModel, VOID, [KtMutableMap]);
340
330
  initMetadataForClass(ZflParseResult, 'ZflParseResult');
341
331
  initMetadataForClass(ZflParser$parse$1, VOID, VOID, BaseErrorListener);
@@ -13746,7 +13736,7 @@ function collectRecursive($this, current, segments, results) {
13746
13736
  var directResult = evaluatePath($this, current, segments);
13747
13737
  if (!(directResult == null)) {
13748
13738
  if (isInterface(directResult, KtList))
13749
- results.q(directResult);
13739
+ results.p(directResult);
13750
13740
  else {
13751
13741
  results.f(directResult);
13752
13742
  }
@@ -13802,8 +13792,20 @@ function problem($this, path, value, error) {
13802
13792
  return mapOf([to('path', path), to('location', location), to('value', value), to('message', message)]);
13803
13793
  }
13804
13794
  function getLocation($this, path) {
13805
- var tmp = JSONPath_instance.k44($this, "$.locations.['" + path + "']");
13806
- return (!(tmp == null) ? isIntArray(tmp) : false) ? tmp : null;
13795
+ var candidate = path;
13796
+ $l$loop: while (true) {
13797
+ // Inline function 'kotlin.text.isNotEmpty' call
13798
+ var this_0 = candidate;
13799
+ if (!(charSequenceLength(this_0) > 0)) {
13800
+ break $l$loop;
13801
+ }
13802
+ var tmp = JSONPath_instance.k44($this, "$.locations.['" + candidate + "']");
13803
+ var location = (!(tmp == null) ? isIntArray(tmp) : false) ? tmp : null;
13804
+ if (!(location == null))
13805
+ return location;
13806
+ candidate = substringBeforeLast(candidate, _Char___init__impl__6a9atx(46), '');
13807
+ }
13808
+ return null;
13807
13809
  }
13808
13810
  function ZdlModel(delegate) {
13809
13811
  delegate = delegate === VOID ? buildMap() : delegate;
@@ -14050,15 +14052,6 @@ protoOf(ZdlParser_0).n45 = function (model) {
14050
14052
  }
14051
14053
  return zdlModel;
14052
14054
  };
14053
- function GenerateMermaidFromZdl(parser, transformer) {
14054
- parser = parser === VOID ? new ZdlParser_0() : parser;
14055
- transformer = transformer === VOID ? new ZdlToMermaidClassDiagramTransformer() : transformer;
14056
- this.z45_1 = parser;
14057
- this.a46_1 = transformer;
14058
- }
14059
- protoOf(GenerateMermaidFromZdl).b46 = function (zdlContent) {
14060
- return this.a46_1.c46(this.z45_1.n45(zdlContent));
14061
- };
14062
14055
  function pluginInstanceCount($this) {
14063
14056
  var tmp = $this.o45_1.u9('pluginsList');
14064
14057
  var tmp0_safe_receiver = (!(tmp == null) ? isInterface(tmp, KtList) : false) ? tmp : null;
@@ -14066,11 +14059,11 @@ function pluginInstanceCount($this) {
14066
14059
  return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
14067
14060
  }
14068
14061
  function processEntity($this, name, javadoc, tableName) {
14069
- var className = ensureNotNull(ZdlListenerUtils_getInstance().e46(name));
14070
- var instanceName = ensureNotNull(ZdlListenerUtils_getInstance().f46(className));
14071
- var kebab = ensureNotNull(ZdlListenerUtils_getInstance().g46(name));
14062
+ var className = ensureNotNull(ZdlListenerUtils_getInstance().a46(name));
14063
+ var instanceName = ensureNotNull(ZdlListenerUtils_getInstance().b46(className));
14064
+ var kebab = ensureNotNull(ZdlListenerUtils_getInstance().c46(name));
14072
14065
  var tmp = with_0(with_0(buildMap(), 'name', name), 'className', className);
14073
- return with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(tmp, 'tableName', tableName == null ? ZdlListenerUtils_getInstance().h46(name) : tableName), 'instanceName', instanceName), 'classNamePlural', ZdlListenerUtils_getInstance().i46(name)), 'instanceNamePlural', ZdlListenerUtils_getInstance().i46(instanceName)), 'kebabCase', kebab), 'kebabCasePlural', ZdlListenerUtils_getInstance().i46(kebab)), 'javadoc', javadoc), 'options', buildMap()), 'fields', buildMap());
14066
+ return with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(tmp, 'tableName', tableName == null ? ZdlListenerUtils_getInstance().d46(name) : tableName), 'instanceName', instanceName), 'classNamePlural', ZdlListenerUtils_getInstance().e46(name)), 'instanceNamePlural', ZdlListenerUtils_getInstance().e46(instanceName)), 'kebabCase', kebab), 'kebabCasePlural', ZdlListenerUtils_getInstance().e46(kebab)), 'javadoc', javadoc), 'options', buildMap()), 'fields', buildMap());
14074
14067
  }
14075
14068
  function trackComplexValueLocations($this, baseLocationPath, ctx) {
14076
14069
  var tmp0_safe_receiver = ctx.c1u();
@@ -14092,7 +14085,7 @@ function trackComplexValueLocations($this, baseLocationPath, ctx) {
14092
14085
  index = _unary__edvuaz + 1 | 0;
14093
14086
  checkIndexOverflow(_unary__edvuaz);
14094
14087
  $l$block: {
14095
- var tmp0_safe_receiver_1 = ZdlListenerUtils_getInstance().j46(item.s1r());
14088
+ var tmp0_safe_receiver_1 = ZdlListenerUtils_getInstance().f46(item.s1r());
14096
14089
  var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : toString_0(tmp0_safe_receiver_1);
14097
14090
  var tmp;
14098
14091
  if (tmp1_elvis_lhs == null) {
@@ -14102,7 +14095,7 @@ function trackComplexValueLocations($this, baseLocationPath, ctx) {
14102
14095
  }
14103
14096
  var key = tmp;
14104
14097
  var propertyPath = baseLocationPath + '.value.' + key;
14105
- $this.o45_1.y44(propertyPath, ZdlListenerUtils_getInstance().k46(item));
14098
+ $this.o45_1.y44(propertyPath, ZdlListenerUtils_getInstance().g46(item));
14106
14099
  }
14107
14100
  }
14108
14101
  }
@@ -14120,7 +14113,7 @@ function trackComplexValueLocations($this, baseLocationPath, ctx) {
14120
14113
  var _unary__edvuaz_0 = index_0;
14121
14114
  index_0 = _unary__edvuaz_0 + 1 | 0;
14122
14115
  var elementPath = baseLocationPath + '.value[' + checkIndexOverflow(_unary__edvuaz_0) + ']';
14123
- $this.o45_1.y44(elementPath, ZdlListenerUtils_getInstance().k46(item_0));
14116
+ $this.o45_1.y44(elementPath, ZdlListenerUtils_getInstance().g46(item_0));
14124
14117
  }
14125
14118
  tmp_0 = Unit_instance;
14126
14119
  }
@@ -14139,7 +14132,7 @@ function trackComplexValueLocations($this, baseLocationPath, ctx) {
14139
14132
  index_1 = _unary__edvuaz_1 + 1 | 0;
14140
14133
  checkIndexOverflow(_unary__edvuaz_1);
14141
14134
  $l$block_0: {
14142
- var tmp0_safe_receiver_2 = ZdlListenerUtils_getInstance().j46(item_1.s1r());
14135
+ var tmp0_safe_receiver_2 = ZdlListenerUtils_getInstance().f46(item_1.s1r());
14143
14136
  var tmp1_elvis_lhs_0 = tmp0_safe_receiver_2 == null ? null : toString_0(tmp0_safe_receiver_2);
14144
14137
  var tmp_1;
14145
14138
  if (tmp1_elvis_lhs_0 == null) {
@@ -14149,7 +14142,7 @@ function trackComplexValueLocations($this, baseLocationPath, ctx) {
14149
14142
  }
14150
14143
  var key_0 = tmp_1;
14151
14144
  var propertyPath_0 = baseLocationPath + '.value.' + key_0;
14152
- $this.o45_1.y44(propertyPath_0, ZdlListenerUtils_getInstance().k46(item_1));
14145
+ $this.o45_1.y44(propertyPath_0, ZdlListenerUtils_getInstance().g46(item_1));
14153
14146
  }
14154
14147
  }
14155
14148
  }
@@ -14166,7 +14159,7 @@ function trackComplexValueLocations($this, baseLocationPath, ctx) {
14166
14159
  var _unary__edvuaz_2 = index_2;
14167
14160
  index_2 = _unary__edvuaz_2 + 1 | 0;
14168
14161
  var elementPath_0 = baseLocationPath + '.value[' + checkIndexOverflow(_unary__edvuaz_2) + ']';
14169
- $this.o45_1.y44(elementPath_0, ZdlListenerUtils_getInstance().k46(item_2));
14162
+ $this.o45_1.y44(elementPath_0, ZdlListenerUtils_getInstance().g46(item_2));
14170
14163
  }
14171
14164
  }
14172
14165
  }
@@ -14179,8 +14172,8 @@ function processFieldValidations($this, field_validations) {
14179
14172
  var _iterator__ex2g4s = field_validations.g();
14180
14173
  while (_iterator__ex2g4s.h()) {
14181
14174
  var element = _iterator__ex2g4s.i();
14182
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(element.d2i()));
14183
- var value = ZdlListenerUtils_getInstance().m46([ZdlListenerUtils_getInstance().l46(element.e2i()), '']);
14175
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(element.d2i()));
14176
+ var value = ZdlListenerUtils_getInstance().i46([ZdlListenerUtils_getInstance().h46(element.e2i()), '']);
14184
14177
  if ('pattern' === name && !(value == null)) {
14185
14178
  var s = typeof value === 'string' ? value : THROW_CCE();
14186
14179
  value = substring_0(s, 1, s.length - 2 | 0);
@@ -14205,8 +14198,8 @@ function processNestedFieldValidations($this, field_validations) {
14205
14198
  var _iterator__ex2g4s = field_validations.g();
14206
14199
  while (_iterator__ex2g4s.h()) {
14207
14200
  var element = _iterator__ex2g4s.i();
14208
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(element.j2j()));
14209
- var value = ZdlListenerUtils_getInstance().m46([ZdlListenerUtils_getInstance().l46(element.k2j()), '']);
14201
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(element.j2j()));
14202
+ var value = ZdlListenerUtils_getInstance().i46([ZdlListenerUtils_getInstance().h46(element.k2j()), '']);
14210
14203
  with_0(validations, name, mapOf([to('name', name), to('value', value)]));
14211
14204
  }
14212
14205
  }
@@ -14236,7 +14229,7 @@ function relationshipValidations($this, relationshipDefinitionContext) {
14236
14229
  else {
14237
14230
  // Inline function 'kotlin.let' call
14238
14231
  var name_0 = 'minlength';
14239
- var value = ZdlListenerUtils_getInstance().l46(tmp1_safe_receiver.e2u());
14232
+ var value = ZdlListenerUtils_getInstance().h46(tmp1_safe_receiver.e2u());
14240
14233
  with_0(validations, name_0, mapOf([to('name', name_0), to('value', value)]));
14241
14234
  }
14242
14235
  var tmp2_safe_receiver = tmp0_safe_receiver.j2t();
@@ -14246,7 +14239,7 @@ function relationshipValidations($this, relationshipDefinitionContext) {
14246
14239
  } else {
14247
14240
  // Inline function 'kotlin.let' call
14248
14241
  var name_1 = 'maxlength';
14249
- var value_0 = ZdlListenerUtils_getInstance().l46(tmp2_safe_receiver.e2u());
14242
+ var value_0 = ZdlListenerUtils_getInstance().h46(tmp2_safe_receiver.e2u());
14250
14243
  tmp = with_0(validations, name_1, mapOf([to('name', name_1), to('value', value_0)]));
14251
14244
  }
14252
14245
  }
@@ -14261,9 +14254,9 @@ function removeJavadoc($this, text) {
14261
14254
  function relationshipDescription($this, ctx) {
14262
14255
  var description = '';
14263
14256
  if (!(ctx == null)) {
14264
- description = description + ZdlListenerUtils_getInstance().l46(ctx.p2r());
14257
+ description = description + ZdlListenerUtils_getInstance().h46(ctx.p2r());
14265
14258
  if (!(ctx.q2r() == null)) {
14266
- description = description + ('{' + ZdlListenerUtils_getInstance().l46(ctx.q2r()) + '}');
14259
+ description = description + ('{' + ZdlListenerUtils_getInstance().h46(ctx.q2r()) + '}');
14267
14260
  }
14268
14261
  }
14269
14262
  return description;
@@ -14277,13 +14270,13 @@ function relationshipOptions($this, options) {
14277
14270
  while (_iterator__ex2g4s.h()) {
14278
14271
  var element = _iterator__ex2g4s.i();
14279
14272
  // Inline function 'kotlin.collections.plusAssign' call
14280
- var pair = to(replace_0(ensureNotNull(ZdlListenerUtils_getInstance().l46(element.v2b())), '@', ''), ZdlListenerUtils_getInstance().n46(element.w2b()));
14273
+ var pair = to(replace_0(ensureNotNull(ZdlListenerUtils_getInstance().h46(element.v2b())), '@', ''), ZdlListenerUtils_getInstance().j46(element.w2b()));
14281
14274
  destination.t1(pair.qb_1, pair.rb_1);
14282
14275
  }
14283
14276
  return destination;
14284
14277
  }
14285
14278
  function getServiceMethodEvents($this, location, ctx) {
14286
- $this.o45_1.y44(location + '.withEvents', ZdlListenerUtils_getInstance().k46(ctx));
14279
+ $this.o45_1.y44(location + '.withEvents', ZdlListenerUtils_getInstance().g46(ctx));
14287
14280
  // Inline function 'kotlin.collections.mutableListOf' call
14288
14281
  var events = ArrayList_init_$Create$();
14289
14282
  var tmp1_safe_receiver = ctx == null ? null : ctx.q31();
@@ -14303,10 +14296,10 @@ function getServiceMethodEvents($this, location, ctx) {
14303
14296
  null;
14304
14297
  else {
14305
14298
  // Inline function 'kotlin.let' call
14306
- var eventName = ensureNotNull(ZdlListenerUtils_getInstance().l46(tmp0_safe_receiver));
14299
+ var eventName = ensureNotNull(ZdlListenerUtils_getInstance().h46(tmp0_safe_receiver));
14307
14300
  events.f(eventName);
14308
- $this.o45_1.y44(location + '.withEvents.' + i, ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver));
14309
- $this.o45_1.y44(location + '.withEvents.' + eventName, ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver));
14301
+ $this.o45_1.y44(location + '.withEvents.' + i, ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver));
14302
+ $this.o45_1.y44(location + '.withEvents.' + eventName, ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver));
14310
14303
  }
14311
14304
  var tmp1_safe_receiver_0 = item.c32();
14312
14305
  if (tmp1_safe_receiver_0 == null)
@@ -14333,8 +14326,8 @@ function getServiceMethodEvents($this, location, ctx) {
14333
14326
  var _unary__edvuaz_0 = index_0;
14334
14327
  index_0 = _unary__edvuaz_0 + 1 | 0;
14335
14328
  var j = checkIndexOverflow(_unary__edvuaz_0);
14336
- $this.o45_1.y44(location + '.withEvents.' + i + '.' + j, ZdlListenerUtils_getInstance().k46(item_1));
14337
- $this.o45_1.y44(location + '.withEvents.' + ZdlListenerUtils_getInstance().l46(item_1), ZdlListenerUtils_getInstance().k46(item_1));
14329
+ $this.o45_1.y44(location + '.withEvents.' + i + '.' + j, ZdlListenerUtils_getInstance().g46(item_1));
14330
+ $this.o45_1.y44(location + '.withEvents.' + ZdlListenerUtils_getInstance().h46(item_1), ZdlListenerUtils_getInstance().g46(item_1));
14338
14331
  }
14339
14332
  }
14340
14333
  }
@@ -14354,7 +14347,7 @@ protoOf(ZdlListenerImpl).u1f = function (ctx) {
14354
14347
  protoOf(ZdlBaseListener).u1f.call(this, ctx);
14355
14348
  };
14356
14349
  protoOf(ZdlListenerImpl).q1f = function (ctx) {
14357
- this.o45_1.b45('javadoc', ZdlListenerUtils_getInstance().o46(ctx));
14350
+ this.o45_1.b45('javadoc', ZdlListenerUtils_getInstance().k46(ctx));
14358
14351
  };
14359
14352
  protoOf(ZdlListenerImpl).w1f = function (ctx) {
14360
14353
  // Inline function 'kotlin.collections.map' call
@@ -14385,72 +14378,72 @@ protoOf(ZdlListenerImpl).w1f = function (ctx) {
14385
14378
  }
14386
14379
  };
14387
14380
  protoOf(ZdlListenerImpl).k1f = function (ctx) {
14388
- var name = ZdlListenerUtils_getInstance().l46(ctx.x1q());
14381
+ var name = ZdlListenerUtils_getInstance().h46(ctx.x1q());
14389
14382
  var tmp = ZdlListenerUtils_getInstance();
14390
14383
  var tmp0_safe_receiver = ctx.w1q();
14391
- var value = tmp.j46(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1r());
14384
+ var value = tmp.f46(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1r());
14392
14385
  this.o45_1.p44('imports', with_0(with_0(buildMap(), 'key', name), 'value', value));
14393
14386
  };
14394
14387
  protoOf(ZdlListenerImpl).y1g = function (ctx) {
14395
14388
  var name = ctx.h1z().bh();
14396
- var value = ZdlListenerUtils_getInstance().p46(ctx.i1z());
14389
+ var value = ZdlListenerUtils_getInstance().l46(ctx.i1z());
14397
14390
  this.o45_1.n44('config', name, value);
14398
- this.o45_1.y44('config.' + name, ZdlListenerUtils_getInstance().k46(ctx));
14399
- this.o45_1.y44('config.' + name + '.value', ZdlListenerUtils_getInstance().k46(ctx.i1z()));
14391
+ this.o45_1.y44('config.' + name, ZdlListenerUtils_getInstance().g46(ctx));
14392
+ this.o45_1.y44('config.' + name + '.value', ZdlListenerUtils_getInstance().g46(ctx.i1z()));
14400
14393
  };
14401
14394
  protoOf(ZdlListenerImpl).a1h = function (ctx) {
14402
- var keyword = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.c1v()));
14403
- var value = ZdlListenerUtils_getInstance().l46(ctx.r1u());
14395
+ var keyword = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.c1v()));
14396
+ var value = ZdlListenerUtils_getInstance().h46(ctx.r1u());
14404
14397
  this.o45_1.n44('cliOptions', keyword, value);
14405
14398
  var location = 'cliOptions.' + keyword;
14406
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14399
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14407
14400
  var tmp0_safe_receiver = ctx.r1u();
14408
14401
  if (tmp0_safe_receiver == null)
14409
14402
  null;
14410
14403
  else {
14411
14404
  // Inline function 'kotlin.let' call
14412
- this.o45_1.y44(location + '.value', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver));
14405
+ this.o45_1.y44(location + '.value', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver));
14413
14406
  }
14414
14407
  };
14415
14408
  protoOf(ZdlListenerImpl).g1h = function (ctx) {
14416
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.y20()));
14417
- var type = ZdlListenerUtils_getInstance().l46(ctx.x20());
14418
- var role = !(ctx.a21() == null) ? ZdlListenerUtils_getInstance().l46(ctx.a21()) : type === 'zdl' ? 'client' : 'provider';
14409
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.y20()));
14410
+ var type = ZdlListenerUtils_getInstance().h46(ctx.x20());
14411
+ var role = !(ctx.a21() == null) ? ZdlListenerUtils_getInstance().h46(ctx.a21()) : type === 'zdl' ? 'client' : 'provider';
14419
14412
  var tmp = ZdlListenerUtils_getInstance();
14420
14413
  var tmp0_safe_receiver = ctx.b21();
14421
- var uri = tmp.j46(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1r());
14422
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14414
+ var uri = tmp.f46(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1r());
14415
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14423
14416
  var apiModel = with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'type', type), 'role', role), 'uri', uri), 'javadoc', jd), 'options', buildMap()), 'config', buildMap());
14424
14417
  appendTo(apiModel, 'config', 'uri', uri);
14425
14418
  this.p45_1.gb(apiModel);
14426
14419
  this.o45_1.n44('apis', name, apiModel);
14427
14420
  var apiLocation = 'apis.' + name;
14428
14421
  this.r45_1 = apiLocation;
14429
- this.o45_1.y44(apiLocation, ZdlListenerUtils_getInstance().k46(ctx));
14430
- this.o45_1.y44(apiLocation + '.name', ZdlListenerUtils_getInstance().k46(ctx.y20()));
14431
- this.o45_1.y44(apiLocation + '.type', ZdlListenerUtils_getInstance().k46(ctx.x20()));
14422
+ this.o45_1.y44(apiLocation, ZdlListenerUtils_getInstance().g46(ctx));
14423
+ this.o45_1.y44(apiLocation + '.name', ZdlListenerUtils_getInstance().g46(ctx.y20()));
14424
+ this.o45_1.y44(apiLocation + '.type', ZdlListenerUtils_getInstance().g46(ctx.x20()));
14432
14425
  var tmp1_safe_receiver = ctx.a21();
14433
14426
  if (tmp1_safe_receiver == null)
14434
14427
  null;
14435
14428
  else {
14436
14429
  // Inline function 'kotlin.let' call
14437
- this.o45_1.y44(apiLocation + '.role', ZdlListenerUtils_getInstance().k46(tmp1_safe_receiver));
14430
+ this.o45_1.y44(apiLocation + '.role', ZdlListenerUtils_getInstance().g46(tmp1_safe_receiver));
14438
14431
  }
14439
14432
  var tmp2_safe_receiver = ctx.b21();
14440
14433
  if (tmp2_safe_receiver == null)
14441
14434
  null;
14442
14435
  else {
14443
14436
  // Inline function 'kotlin.let' call
14444
- this.o45_1.y44(apiLocation + '.uri', ZdlListenerUtils_getInstance().k46(tmp2_safe_receiver));
14437
+ this.o45_1.y44(apiLocation + '.uri', ZdlListenerUtils_getInstance().g46(tmp2_safe_receiver));
14445
14438
  }
14446
14439
  };
14447
14440
  protoOf(ZdlListenerImpl).u1h = function (ctx) {
14448
14441
  var name = ctx.h1z().bh();
14449
- var value = ZdlListenerUtils_getInstance().p46(ctx.i1z());
14442
+ var value = ZdlListenerUtils_getInstance().l46(ctx.i1z());
14450
14443
  if ('uri' === name && this.p45_1.db().p1('uri') == null) {
14451
14444
  // Inline function 'kotlin.collections.set' call
14452
14445
  this.p45_1.db().t1('uri', value);
14453
- this.o45_1.y44('apis.' + toString_1(this.p45_1.db().p1('name')) + '.uri', ZdlListenerUtils_getInstance().k46(ctx.i1z()));
14446
+ this.o45_1.y44('apis.' + toString_1(this.p45_1.db().p1('name')) + '.uri', ZdlListenerUtils_getInstance().g46(ctx.i1z()));
14454
14447
  }
14455
14448
  appendTo(this.p45_1.db(), 'config', name, value);
14456
14449
  };
@@ -14459,8 +14452,8 @@ protoOf(ZdlListenerImpl).h1h = function (ctx) {
14459
14452
  this.r45_1 = null;
14460
14453
  };
14461
14454
  protoOf(ZdlListenerImpl).a1i = function (ctx) {
14462
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.z24()));
14463
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14455
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.z24()));
14456
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14464
14457
  var disabled = !(ctx.y24().l25() == null);
14465
14458
  var tmp0_safe_receiver = ctx.a25();
14466
14459
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g26();
@@ -14470,48 +14463,48 @@ protoOf(ZdlListenerImpl).a1i = function (ctx) {
14470
14463
  this.o45_1.p44('pluginsList', this.p45_1.db());
14471
14464
  var location = 'pluginsList.' + (pluginInstanceCount(this) - 1 | 0);
14472
14465
  this.r45_1 = location;
14473
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14474
- this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().k46(ctx.z24()));
14475
- this.o45_1.y44(location + '.javadoc', ZdlListenerUtils_getInstance().k46(ctx.z20()));
14466
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14467
+ this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().g46(ctx.z24()));
14468
+ this.o45_1.y44(location + '.javadoc', ZdlListenerUtils_getInstance().g46(ctx.z20()));
14476
14469
  if (!(ctx.y24().l25() == null)) {
14477
- this.o45_1.y44(location + '.disabled', ZdlListenerUtils_getInstance().k46(ctx.y24()));
14470
+ this.o45_1.y44(location + '.disabled', ZdlListenerUtils_getInstance().g46(ctx.y24()));
14478
14471
  }
14479
14472
  var tmp3_safe_receiver = ctx.a25();
14480
14473
  if (tmp3_safe_receiver == null)
14481
14474
  null;
14482
14475
  else {
14483
14476
  // Inline function 'kotlin.let' call
14484
- this.o45_1.y44(location + '.options', ZdlListenerUtils_getInstance().k46(tmp3_safe_receiver));
14477
+ this.o45_1.y44(location + '.options', ZdlListenerUtils_getInstance().g46(tmp3_safe_receiver));
14485
14478
  var tmp0_safe_receiver_0 = tmp3_safe_receiver.g26();
14486
14479
  var tmp;
14487
14480
  if (tmp0_safe_receiver_0 == null) {
14488
14481
  tmp = null;
14489
14482
  } else {
14490
14483
  // Inline function 'kotlin.let' call
14491
- tmp = this.o45_1.y44(location + '.options.inherit', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver_0));
14484
+ tmp = this.o45_1.y44(location + '.options.inherit', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver_0));
14492
14485
  }
14493
14486
  }
14494
14487
  };
14495
14488
  protoOf(ZdlListenerImpl).q1i = function (ctx) {
14496
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.h1z()));
14497
- var value = ZdlListenerUtils_getInstance().p46(ctx.i1z());
14489
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.h1z()));
14490
+ var value = ZdlListenerUtils_getInstance().l46(ctx.i1z());
14498
14491
  appendTo(this.p45_1.db(), 'config', name, value);
14499
14492
  var location = '' + this.r45_1 + '.config.' + name;
14500
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14501
- this.o45_1.y44(location + '.value', ZdlListenerUtils_getInstance().k46(ctx.i1z()));
14493
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14494
+ this.o45_1.y44(location + '.value', ZdlListenerUtils_getInstance().g46(ctx.i1z()));
14502
14495
  };
14503
14496
  protoOf(ZdlListenerImpl).s1i = function (ctx) {
14504
- var keyword = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.c1v()));
14505
- var value = ZdlListenerUtils_getInstance().l46(ctx.r1u());
14497
+ var keyword = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.c1v()));
14498
+ var value = ZdlListenerUtils_getInstance().h46(ctx.r1u());
14506
14499
  appendTo(this.p45_1.db(), 'cliOptions', keyword, value);
14507
14500
  var location = '' + this.r45_1 + '.cliOptions.' + keyword;
14508
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14501
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14509
14502
  var tmp0_safe_receiver = ctx.r1u();
14510
14503
  if (tmp0_safe_receiver == null)
14511
14504
  null;
14512
14505
  else {
14513
14506
  // Inline function 'kotlin.let' call
14514
- this.o45_1.y44(location + '.value', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver));
14507
+ this.o45_1.y44(location + '.value', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver));
14515
14508
  }
14516
14509
  };
14517
14510
  protoOf(ZdlListenerImpl).b1i = function (ctx) {
@@ -14519,8 +14512,8 @@ protoOf(ZdlListenerImpl).b1i = function (ctx) {
14519
14512
  this.r45_1 = null;
14520
14513
  };
14521
14514
  protoOf(ZdlListenerImpl).a1j = function (ctx) {
14522
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.e2a()));
14523
- var value = ZdlListenerUtils_getInstance().q46(ctx.f2a().r1u());
14515
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.e2a()));
14516
+ var value = ZdlListenerUtils_getInstance().m46(ctx.f2a().r1u());
14524
14517
  var tmp0_safe_receiver = ctx.wm();
14525
14518
  var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wm();
14526
14519
  var aggregate = (tmp instanceof PoliciesContext ? tmp : THROW_CCE()).z28();
@@ -14530,38 +14523,38 @@ protoOf(ZdlListenerImpl).a1j = function (ctx) {
14530
14523
  protoOf(ZdlListenerImpl).o1j = function (ctx) {
14531
14524
  var entity = ctx.b2d();
14532
14525
  var name = entity.n2d().bh();
14533
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14534
- var tableName = ZdlListenerUtils_getInstance().l46(entity.o2d());
14526
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14527
+ var tableName = ZdlListenerUtils_getInstance().h46(entity.o2d());
14535
14528
  this.p45_1.gb(with_0(processEntity(this, name, jd, tableName), 'type', 'entities'));
14536
14529
  this.o45_1.n44('entities', name, this.p45_1.db());
14537
14530
  this.q45_1 = 'entities';
14538
14531
  var entityLocation = '' + this.q45_1 + '.' + name;
14539
14532
  this.r45_1 = entityLocation;
14540
- this.o45_1.y44(entityLocation, ZdlListenerUtils_getInstance().k46(ctx));
14541
- this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().k46(entity.n2d()));
14542
- this.o45_1.y44(entityLocation + '.tableName', ZdlListenerUtils_getInstance().k46(entity.o2d()));
14543
- this.o45_1.y44(entityLocation + '.body', ZdlListenerUtils_getInstance().k46(ctx.c2d()));
14533
+ this.o45_1.y44(entityLocation, ZdlListenerUtils_getInstance().g46(ctx));
14534
+ this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().g46(entity.n2d()));
14535
+ this.o45_1.y44(entityLocation + '.tableName', ZdlListenerUtils_getInstance().g46(entity.o2d()));
14536
+ this.o45_1.y44(entityLocation + '.body', ZdlListenerUtils_getInstance().g46(ctx.c2d()));
14544
14537
  };
14545
14538
  protoOf(ZdlListenerImpl).p1j = function (ctx) {
14546
14539
  this.p45_1.ib();
14547
14540
  };
14548
14541
  protoOf(ZdlListenerImpl).i1j = function (ctx) {
14549
14542
  var name = replace_0(ctx.v2b().bh(), '@', '');
14550
- var value = ZdlListenerUtils_getInstance().n46(ctx.w2b());
14543
+ var value = ZdlListenerUtils_getInstance().j46(ctx.w2b());
14551
14544
  // Inline function 'kotlin.collections.isNotEmpty' call
14552
14545
  if (!this.p45_1.l()) {
14553
14546
  appendTo(this.p45_1.db(), 'options', name, value);
14554
14547
  appendToList(this.p45_1.db(), 'optionsList', with_0(with_0(buildMap(), 'name', name), 'value', value));
14555
14548
  if (!(this.r45_1 == null)) {
14556
14549
  var optionLocation = '' + this.r45_1 + '.options.' + name;
14557
- this.o45_1.y44(optionLocation, ZdlListenerUtils_getInstance().k46(ctx));
14558
- this.o45_1.y44(optionLocation + '.name', ZdlListenerUtils_getInstance().k46(ctx.v2b()));
14550
+ this.o45_1.y44(optionLocation, ZdlListenerUtils_getInstance().g46(ctx));
14551
+ this.o45_1.y44(optionLocation + '.name', ZdlListenerUtils_getInstance().g46(ctx.v2b()));
14559
14552
  var tmp0_safe_receiver = ctx.w2b();
14560
14553
  if (tmp0_safe_receiver == null)
14561
14554
  null;
14562
14555
  else {
14563
14556
  // Inline function 'kotlin.let' call
14564
- this.o45_1.y44(optionLocation + '.value', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver));
14557
+ this.o45_1.y44(optionLocation + '.value', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver));
14565
14558
  var tmp0_safe_receiver_0 = tmp0_safe_receiver.i1z();
14566
14559
  var tmp;
14567
14560
  if (tmp0_safe_receiver_0 == null) {
@@ -14577,7 +14570,7 @@ protoOf(ZdlListenerImpl).i1j = function (ctx) {
14577
14570
  protoOf(ZdlBaseListener).i1j.call(this, ctx);
14578
14571
  };
14579
14572
  protoOf(ZdlListenerImpl).a1k = function (ctx) {
14580
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.h1z()));
14573
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.h1z()));
14581
14574
  var tmp0_safe_receiver = ctx.n2f();
14582
14575
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2g();
14583
14576
  var type = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bh();
@@ -14588,10 +14581,10 @@ protoOf(ZdlListenerImpl).a1k = function (ctx) {
14588
14581
  tmp = null;
14589
14582
  } else {
14590
14583
  // Inline function 'kotlin.let' call
14591
- tmp = ZdlListenerUtils_getInstance().q46(tmp3_safe_receiver.r1u());
14584
+ tmp = ZdlListenerUtils_getInstance().m46(tmp3_safe_receiver.r1u());
14592
14585
  }
14593
14586
  var initialValue = tmp;
14594
- var jd = ZdlListenerUtils_getInstance().o46(ZdlListenerUtils_getInstance().m46([ctx.z20(), ctx.q2f()]));
14587
+ var jd = ZdlListenerUtils_getInstance().k46(ZdlListenerUtils_getInstance().i46([ctx.z20(), ctx.q2f()]));
14595
14588
  var isEnum = false;
14596
14589
  var isEntity = false;
14597
14590
  var isArray = !(ctx.n2f().x2g() == null);
@@ -14606,15 +14599,15 @@ protoOf(ZdlListenerImpl).a1k = function (ctx) {
14606
14599
  var entityLocation = '' + this.q45_1 + '.' + toString_1(entityName) + '.fields.' + name;
14607
14600
  var previousParentLocation = this.r45_1;
14608
14601
  this.r45_1 = entityLocation;
14609
- this.o45_1.y44(entityLocation, ZdlListenerUtils_getInstance().k46(ctx));
14610
- this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().k46(ctx.h1z()));
14611
- this.o45_1.y44(entityLocation + '.type', ZdlListenerUtils_getInstance().k46(ctx.n2f()));
14602
+ this.o45_1.y44(entityLocation, ZdlListenerUtils_getInstance().g46(ctx));
14603
+ this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().g46(ctx.h1z()));
14604
+ this.o45_1.y44(entityLocation + '.type', ZdlListenerUtils_getInstance().g46(ctx.n2f()));
14612
14605
  var _iterator__ex2g4s = ctx.p2f().g();
14613
14606
  while (_iterator__ex2g4s.h()) {
14614
14607
  var fieldValidation = _iterator__ex2g4s.i();
14615
- this.o45_1.y44(entityLocation + '.validations.' + ZdlListenerUtils_getInstance().l46(fieldValidation.d2i()), ZdlListenerUtils_getInstance().k46(fieldValidation));
14608
+ this.o45_1.y44(entityLocation + '.validations.' + ZdlListenerUtils_getInstance().h46(fieldValidation.d2i()), ZdlListenerUtils_getInstance().g46(fieldValidation));
14616
14609
  }
14617
- this.o45_1.y44(entityLocation + '.javadoc', ZdlListenerUtils_getInstance().k46(ZdlListenerUtils_getInstance().m46([ctx.z20(), ctx.q2f()])));
14610
+ this.o45_1.y44(entityLocation + '.javadoc', ZdlListenerUtils_getInstance().g46(ZdlListenerUtils_getInstance().i46([ctx.z20(), ctx.q2f()])));
14618
14611
  this.p45_1.gb(with_0(field, '_previousParentLocation', previousParentLocation));
14619
14612
  };
14620
14613
  protoOf(ZdlListenerImpl).b1k = function (ctx) {
@@ -14633,8 +14626,8 @@ protoOf(ZdlListenerImpl).c1k = function (ctx) {
14633
14626
  var tmp_1 = ArrayList_init_$Create$_1(parentEntityFields.r1()).k(parentEntityFields.j() - 1 | 0);
14634
14627
  var parentField = (!(tmp_1 == null) ? isInterface(tmp_1, KtMutableMap) : false) ? tmp_1 : THROW_CCE();
14635
14628
  var entityName = ensureNotNull(parent.n2f().w2g()).bh();
14636
- var entityJavadoc = ZdlListenerUtils_getInstance().o46(parent.z20());
14637
- var tableName = ZdlListenerUtils_getInstance().l46(parent.o2d());
14629
+ var entityJavadoc = ZdlListenerUtils_getInstance().k46(parent.z20());
14630
+ var tableName = ZdlListenerUtils_getInstance().h46(parent.o2d());
14638
14631
  var validations = processNestedFieldValidations(this, ctx.b2g());
14639
14632
  appendToWithMap(parentField, 'validations', validations);
14640
14633
  this.p45_1.gb(with_0(processEntity(this, entityName, entityJavadoc, tableName), 'type', split(ensureNotNull(this.q45_1), ['.']).k(0)));
@@ -14655,35 +14648,35 @@ protoOf(ZdlListenerImpl).c1k = function (ctx) {
14655
14648
  }
14656
14649
  this.o45_1.n44(ensureNotNull(this.q45_1), entityName, this.p45_1.db());
14657
14650
  var entityLocation = '' + this.q45_1 + '.' + entityName;
14658
- var startLocation = ZdlListenerUtils_getInstance().k46(parent.n2f());
14659
- var endLocation = ZdlListenerUtils_getInstance().k46(ctx);
14651
+ var startLocation = ZdlListenerUtils_getInstance().g46(parent.n2f());
14652
+ var endLocation = ZdlListenerUtils_getInstance().g46(ctx);
14660
14653
  this.o45_1.y44(entityLocation, mergeLocations(this, startLocation, endLocation));
14661
- this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().k46(parent.n2f()));
14662
- this.o45_1.y44(entityLocation + '.tableName', ZdlListenerUtils_getInstance().k46(parent.o2d()));
14663
- this.o45_1.y44(entityLocation + '.body', ZdlListenerUtils_getInstance().k46(ctx));
14654
+ this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().g46(parent.n2f()));
14655
+ this.o45_1.y44(entityLocation + '.tableName', ZdlListenerUtils_getInstance().g46(parent.o2d()));
14656
+ this.o45_1.y44(entityLocation + '.body', ZdlListenerUtils_getInstance().g46(ctx));
14664
14657
  };
14665
14658
  protoOf(ZdlListenerImpl).d1k = function (ctx) {
14666
14659
  this.p45_1.ib();
14667
14660
  };
14668
14661
  protoOf(ZdlListenerImpl).y1k = function (ctx) {
14669
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.p2k()));
14670
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14671
- this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'type', 'enums'), 'className', ZdlListenerUtils_getInstance().e46(name)), 'javadoc', jd), 'comment', jd));
14662
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.p2k()));
14663
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14664
+ this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'type', 'enums'), 'className', ZdlListenerUtils_getInstance().a46(name)), 'javadoc', jd), 'comment', jd));
14672
14665
  this.o45_1.n44('enums', name, this.p45_1.db());
14673
14666
  var entityLocation = 'enums.' + name;
14674
14667
  this.r45_1 = entityLocation;
14675
- this.o45_1.y44(entityLocation, ZdlListenerUtils_getInstance().k46(ctx));
14676
- this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().k46(ctx.p2k()));
14677
- this.o45_1.y44(entityLocation + '.body', ZdlListenerUtils_getInstance().k46(ctx.q2k()));
14668
+ this.o45_1.y44(entityLocation, ZdlListenerUtils_getInstance().g46(ctx));
14669
+ this.o45_1.y44(entityLocation + '.name', ZdlListenerUtils_getInstance().g46(ctx.p2k()));
14670
+ this.o45_1.y44(entityLocation + '.body', ZdlListenerUtils_getInstance().g46(ctx.q2k()));
14678
14671
  };
14679
14672
  protoOf(ZdlListenerImpl).z1k = function (ctx) {
14680
14673
  this.p45_1.ib();
14681
14674
  this.r45_1 = null;
14682
14675
  };
14683
14676
  protoOf(ZdlListenerImpl).e1l = function (ctx) {
14684
- var name = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.v2l()));
14685
- var jd = ZdlListenerUtils_getInstance().o46(ZdlListenerUtils_getInstance().m46([ctx.z20(), ctx.q2f()]));
14686
- var value = ZdlListenerUtils_getInstance().l46(ctx.w2l());
14677
+ var name = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.v2l()));
14678
+ var jd = ZdlListenerUtils_getInstance().k46(ZdlListenerUtils_getInstance().i46([ctx.z20(), ctx.q2f()]));
14679
+ var value = ZdlListenerUtils_getInstance().h46(ctx.w2l());
14687
14680
  if (!(value == null)) {
14688
14681
  with_0(this.p45_1.db(), 'hasValue', true);
14689
14682
  }
@@ -14696,29 +14689,29 @@ protoOf(ZdlListenerImpl).a1m = function (ctx) {
14696
14689
  var relationshipName = removeJavadoc(this, relationshipType + '_' + relationshipDescription(this, ctx.h2q().u2q()) + '_' + relationshipDescription(this, ctx.i2q().u2q()));
14697
14690
  var relationship = with_0(with_0(buildMap(), 'type', relationshipType), 'name', relationshipName);
14698
14691
  var location = 'relationships.' + relationshipName;
14699
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14692
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14700
14693
  if (!(ctx.h2q().u2q() == null)) {
14701
- var from = ZdlListenerUtils_getInstance().l46(ctx.h2q().u2q().p2r());
14702
- var fromField = ZdlListenerUtils_getInstance().l46(ctx.h2q().u2q().q2r());
14703
- var commentInFrom = ZdlListenerUtils_getInstance().o46(ctx.h2q().z20());
14694
+ var from = ZdlListenerUtils_getInstance().h46(ctx.h2q().u2q().p2r());
14695
+ var fromField = ZdlListenerUtils_getInstance().h46(ctx.h2q().u2q().q2r());
14696
+ var commentInFrom = ZdlListenerUtils_getInstance().k46(ctx.h2q().z20());
14704
14697
  var fromOptions = relationshipOptions(this, ctx.h2q().t2q().k2b());
14705
14698
  var isInjectedFieldInFromRequired = isRequired(this, ctx.h2q().u2q());
14706
- var injectedFieldInFromDescription = ZdlListenerUtils_getInstance().l46(ctx.h2q().u2q().s2r());
14699
+ var injectedFieldInFromDescription = ZdlListenerUtils_getInstance().h46(ctx.h2q().u2q().s2r());
14707
14700
  var relationshipValidations_0 = relationshipValidations(this, ctx.h2q().u2q());
14708
- this.o45_1.y44(location + '.from.entity', ZdlListenerUtils_getInstance().k46(ctx.h2q().u2q().p2r()));
14709
- this.o45_1.y44(location + '.from.field', ZdlListenerUtils_getInstance().k46(ctx.h2q().u2q().q2r()));
14701
+ this.o45_1.y44(location + '.from.entity', ZdlListenerUtils_getInstance().g46(ctx.h2q().u2q().p2r()));
14702
+ this.o45_1.y44(location + '.from.field', ZdlListenerUtils_getInstance().g46(ctx.h2q().u2q().q2r()));
14710
14703
  var tmp0_safe_receiver = ctx.h2q().u2q().r2r();
14711
14704
  if (tmp0_safe_receiver == null)
14712
14705
  null;
14713
14706
  else {
14714
14707
  // Inline function 'kotlin.let' call
14715
- this.o45_1.y44(location + '.from.validations', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver));
14708
+ this.o45_1.y44(location + '.from.validations', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver));
14716
14709
  var tmp0_safe_receiver_0 = tmp0_safe_receiver.i2t();
14717
14710
  if (tmp0_safe_receiver_0 == null)
14718
14711
  null;
14719
14712
  else {
14720
14713
  // Inline function 'kotlin.let' call
14721
- this.o45_1.y44(location + '.from.validations.min', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver_0));
14714
+ this.o45_1.y44(location + '.from.validations.min', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver_0));
14722
14715
  }
14723
14716
  var tmp1_safe_receiver = tmp0_safe_receiver.j2t();
14724
14717
  var tmp_0;
@@ -14726,33 +14719,33 @@ protoOf(ZdlListenerImpl).a1m = function (ctx) {
14726
14719
  tmp_0 = null;
14727
14720
  } else {
14728
14721
  // Inline function 'kotlin.let' call
14729
- tmp_0 = this.o45_1.y44(location + '.from.validations.max', ZdlListenerUtils_getInstance().k46(tmp1_safe_receiver));
14722
+ tmp_0 = this.o45_1.y44(location + '.from.validations.max', ZdlListenerUtils_getInstance().g46(tmp1_safe_receiver));
14730
14723
  }
14731
14724
  }
14732
14725
  with_0(with_0(with_0(with_0(with_0(with_0(with_0(relationship, 'from', from), 'commentInFrom', commentInFrom), 'injectedFieldInFrom', fromField), 'fromOptions', fromOptions), 'fromValidations', relationshipValidations_0), 'injectedFieldInFromDescription', injectedFieldInFromDescription), 'isInjectedFieldInFromRequired', isInjectedFieldInFromRequired);
14733
14726
  }
14734
14727
  if (!(ctx.i2q() == null) && !(ctx.i2q().u2q() == null)) {
14735
- var to = ZdlListenerUtils_getInstance().l46(ctx.i2q().u2q().p2r());
14736
- var toField = ZdlListenerUtils_getInstance().l46(ctx.i2q().u2q().q2r());
14737
- var commentInTo = ZdlListenerUtils_getInstance().o46(ctx.i2q().z20());
14728
+ var to = ZdlListenerUtils_getInstance().h46(ctx.i2q().u2q().p2r());
14729
+ var toField = ZdlListenerUtils_getInstance().h46(ctx.i2q().u2q().q2r());
14730
+ var commentInTo = ZdlListenerUtils_getInstance().k46(ctx.i2q().z20());
14738
14731
  var toOptions = relationshipOptions(this, ctx.i2q().t2q().k2b());
14739
14732
  var isInjectedFieldInToRequired = isRequired(this, ctx.i2q().u2q());
14740
- var injectedFieldInToDescription = ZdlListenerUtils_getInstance().l46(ctx.i2q().u2q().s2r());
14733
+ var injectedFieldInToDescription = ZdlListenerUtils_getInstance().h46(ctx.i2q().u2q().s2r());
14741
14734
  var relationshipValidations_1 = relationshipValidations(this, ctx.i2q().u2q());
14742
- this.o45_1.y44(location + '.to.entity', ZdlListenerUtils_getInstance().k46(ctx.i2q().u2q().p2r()));
14743
- this.o45_1.y44(location + '.to.field', ZdlListenerUtils_getInstance().k46(ctx.i2q().u2q().q2r()));
14735
+ this.o45_1.y44(location + '.to.entity', ZdlListenerUtils_getInstance().g46(ctx.i2q().u2q().p2r()));
14736
+ this.o45_1.y44(location + '.to.field', ZdlListenerUtils_getInstance().g46(ctx.i2q().u2q().q2r()));
14744
14737
  var tmp1_safe_receiver_0 = ctx.i2q().u2q().r2r();
14745
14738
  if (tmp1_safe_receiver_0 == null)
14746
14739
  null;
14747
14740
  else {
14748
14741
  // Inline function 'kotlin.let' call
14749
- this.o45_1.y44(location + '.to.validations', ZdlListenerUtils_getInstance().k46(tmp1_safe_receiver_0));
14742
+ this.o45_1.y44(location + '.to.validations', ZdlListenerUtils_getInstance().g46(tmp1_safe_receiver_0));
14750
14743
  var tmp0_safe_receiver_1 = tmp1_safe_receiver_0.i2t();
14751
14744
  if (tmp0_safe_receiver_1 == null)
14752
14745
  null;
14753
14746
  else {
14754
14747
  // Inline function 'kotlin.let' call
14755
- this.o45_1.y44(location + '.to.validations.min', ZdlListenerUtils_getInstance().k46(tmp0_safe_receiver_1));
14748
+ this.o45_1.y44(location + '.to.validations.min', ZdlListenerUtils_getInstance().g46(tmp0_safe_receiver_1));
14756
14749
  }
14757
14750
  var tmp1_safe_receiver_1 = tmp1_safe_receiver_0.j2t();
14758
14751
  var tmp_1;
@@ -14760,7 +14753,7 @@ protoOf(ZdlListenerImpl).a1m = function (ctx) {
14760
14753
  tmp_1 = null;
14761
14754
  } else {
14762
14755
  // Inline function 'kotlin.let' call
14763
- tmp_1 = this.o45_1.y44(location + '.to.validations.max', ZdlListenerUtils_getInstance().k46(tmp1_safe_receiver_1));
14756
+ tmp_1 = this.o45_1.y44(location + '.to.validations.max', ZdlListenerUtils_getInstance().g46(tmp1_safe_receiver_1));
14764
14757
  }
14765
14758
  }
14766
14759
  with_0(with_0(with_0(with_0(with_0(with_0(with_0(relationship, 'to', to), 'commentInTo', commentInTo), 'injectedFieldInTo', toField), 'toOptions', toOptions), 'toValidations', relationshipValidations_1), 'injectedFieldInToDescription', injectedFieldInToDescription), 'isInjectedFieldInToRequired', isInjectedFieldInToRequired);
@@ -14770,55 +14763,58 @@ protoOf(ZdlListenerImpl).a1m = function (ctx) {
14770
14763
  protoOf(ZdlListenerImpl).k1o = function (ctx) {
14771
14764
  var serviceName = ctx.w2g().bh();
14772
14765
  var serviceJavadoc = 'Legacy service';
14773
- var serviceAggregates = ZdlListenerUtils_getInstance().r46(ctx.y2x(), ',');
14774
- this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', serviceName), 'isLegacy', true), 'className', ZdlListenerUtils_getInstance().e46(ensureNotNull(serviceName))), 'javadoc', serviceJavadoc), 'aggregates', serviceAggregates), 'options', mapOf_0(to('rest', true))), 'methods', ZdlListenerUtils_getInstance().s46(serviceName, ensureNotNull(serviceAggregates))));
14766
+ var serviceAggregates = ZdlListenerUtils_getInstance().n46(ctx.y2x(), ',');
14767
+ this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', serviceName), 'isLegacy', true), 'className', ZdlListenerUtils_getInstance().a46(ensureNotNull(serviceName))), 'javadoc', serviceJavadoc), 'aggregates', serviceAggregates), 'options', mapOf_0(to('rest', true))), 'methods', ZdlListenerUtils_getInstance().o46(serviceName, ensureNotNull(serviceAggregates))));
14775
14768
  this.o45_1.n44('services', serviceName, this.p45_1.db());
14776
14769
  };
14777
14770
  protoOf(ZdlListenerImpl).l1o = function (ctx) {
14778
14771
  this.p45_1.ib();
14779
14772
  };
14780
14773
  protoOf(ZdlListenerImpl).y1m = function (ctx) {
14781
- var aggregateName = ZdlListenerUtils_getInstance().l46(ctx.j2v());
14782
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14783
- var aggregateRoot = ZdlListenerUtils_getInstance().l46(ctx.k2v());
14784
- this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', aggregateName), 'type', 'aggregates'), 'className', ZdlListenerUtils_getInstance().e46(ensureNotNull(aggregateName))), 'javadoc', jd), 'aggregateRoot', aggregateRoot), 'commands', buildMap()));
14774
+ var aggregateName = ZdlListenerUtils_getInstance().h46(ctx.j2v());
14775
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14776
+ var aggregateRoot = ZdlListenerUtils_getInstance().h46(ctx.k2v());
14777
+ this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', aggregateName), 'type', 'aggregates'), 'className', ZdlListenerUtils_getInstance().a46(ensureNotNull(aggregateName))), 'javadoc', jd), 'aggregateRoot', aggregateRoot), 'commands', buildMap()));
14785
14778
  this.o45_1.n44('aggregates', aggregateName, this.p45_1.db());
14786
14779
  var name = this.p45_1.db().p1('name');
14787
14780
  var location = 'aggregates.' + toString_1(name);
14788
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14789
- this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().k46(ctx.j2v()));
14790
- this.o45_1.y44(location + '.aggregateRoot', ZdlListenerUtils_getInstance().k46(ctx.k2v()));
14781
+ this.r45_1 = location;
14782
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14783
+ this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().g46(ctx.j2v()));
14784
+ this.o45_1.y44(location + '.aggregateRoot', ZdlListenerUtils_getInstance().g46(ctx.k2v()));
14791
14785
  };
14792
14786
  protoOf(ZdlListenerImpl).z1m = function (ctx) {
14793
14787
  this.p45_1.ib();
14788
+ this.r45_1 = null;
14794
14789
  };
14795
14790
  protoOf(ZdlListenerImpl).e1n = function (ctx) {
14796
14791
  var tmp = ZdlListenerUtils_getInstance();
14797
14792
  var tmp_0 = ctx.wm();
14798
- var aggregateName = ensureNotNull(tmp.l46((tmp_0 instanceof AggregateContext ? tmp_0 : THROW_CCE()).j2v()));
14799
- var commandName = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.p2w()));
14793
+ var aggregateName = ensureNotNull(tmp.h46((tmp_0 instanceof AggregateContext ? tmp_0 : THROW_CCE()).j2v()));
14794
+ var commandName = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.p2w()));
14800
14795
  var location = 'aggregates.' + aggregateName + '.commands.' + commandName;
14796
+ this.r45_1 = location;
14801
14797
  var tmp0_safe_receiver = ctx.q2w();
14802
14798
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2g();
14803
14799
  var parameter = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bh();
14804
14800
  var tmp2_safe_receiver = ctx.q2w();
14805
14801
  var parameterIsOptional = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.m2x()) == null);
14806
14802
  var withEvents = getServiceMethodEvents(this, location, ctx.r2w());
14807
- var jd = ZdlListenerUtils_getInstance().o46(ZdlListenerUtils_getInstance().m46([ctx.z20(), ctx.q2f()]));
14803
+ var jd = ZdlListenerUtils_getInstance().k46(ZdlListenerUtils_getInstance().i46([ctx.z20(), ctx.q2f()]));
14808
14804
  var method = with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', commandName), 'aggregateName', aggregateName), 'parameter', parameter), 'parameterIsOptional', parameterIsOptional), 'transition', null), 'withEvents', withEvents), 'javadoc', jd);
14809
14805
  appendTo(this.p45_1.db(), 'commands', commandName, method);
14810
14806
  this.p45_1.gb(method);
14811
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14812
- this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().k46(ctx.p2w()));
14813
- this.o45_1.y44(location + '.parameter', ZdlListenerUtils_getInstance().k46(ctx.q2w()));
14807
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14808
+ this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().g46(ctx.p2w()));
14809
+ this.o45_1.y44(location + '.parameter', ZdlListenerUtils_getInstance().g46(ctx.q2w()));
14814
14810
  };
14815
14811
  protoOf(ZdlListenerImpl).f1n = function (ctx) {
14816
14812
  var transitionOption = JSONPath_instance.k44(this.p45_1.db(), 'options.transition');
14817
14813
  if (!(transitionOption == null)) {
14818
14814
  var tmp = ZdlListenerUtils_getInstance();
14819
14815
  var tmp_0 = ctx.wm();
14820
- var aggregateName = ensureNotNull(tmp.l46((tmp_0 instanceof AggregateContext ? tmp_0 : THROW_CCE()).j2v()));
14821
- var commandName = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.p2w()));
14816
+ var aggregateName = ensureNotNull(tmp.h46((tmp_0 instanceof AggregateContext ? tmp_0 : THROW_CCE()).j2v()));
14817
+ var commandName = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.p2w()));
14822
14818
  var location = 'aggregates.' + aggregateName + '.commands.' + commandName;
14823
14819
  // Inline function 'kotlin.collections.get' call
14824
14820
  var fromValue = (isInterface(transitionOption, KtMap) ? transitionOption : THROW_CCE()).p1('from');
@@ -14843,37 +14839,59 @@ protoOf(ZdlListenerImpl).f1n = function (ctx) {
14843
14839
  }
14844
14840
  var fromStates = tmp_1;
14845
14841
  // Inline function 'kotlin.collections.get' call
14846
- var tmp1_safe_receiver = (isInterface(transitionOption, KtMap) ? transitionOption : THROW_CCE()).p1('to');
14847
- var toState = tmp1_safe_receiver == null ? null : toString_0(tmp1_safe_receiver);
14842
+ var toValue = (isInterface(transitionOption, KtMap) ? transitionOption : THROW_CCE()).p1('to');
14843
+ var tmp_2;
14844
+ if (!(toValue == null) ? isInterface(toValue, KtList) : false) {
14845
+ // Inline function 'kotlin.collections.map' call
14846
+ // Inline function 'kotlin.collections.mapTo' call
14847
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(toValue, 10));
14848
+ var _iterator__ex2g4s_0 = toValue.g();
14849
+ while (_iterator__ex2g4s_0.h()) {
14850
+ var item_0 = _iterator__ex2g4s_0.i();
14851
+ var tmp$ret$5 = toString_1(item_0);
14852
+ destination_0.f(tmp$ret$5);
14853
+ }
14854
+ tmp_2 = destination_0;
14855
+ } else {
14856
+ tmp_2 = toValue == null ? null : toString_0(toValue);
14857
+ }
14858
+ var toStates = tmp_2;
14848
14859
  var tmp0 = this.p45_1.db();
14849
14860
  var tmp2 = 'transition';
14850
14861
  // Inline function 'kotlin.collections.set' call
14851
- var value = with_0(with_0(buildMap(), 'from', fromStates), 'to', toState);
14862
+ var value = with_0(with_0(buildMap(), 'from', fromStates), 'to', toStates);
14852
14863
  tmp0.t1(tmp2, value);
14853
14864
  }
14854
14865
  this.p45_1.ib();
14866
+ var tmp_3 = ZdlListenerUtils_getInstance();
14867
+ var tmp_4 = ctx.wm();
14868
+ var aggregateName_0 = ensureNotNull(tmp_3.h46((tmp_4 instanceof AggregateContext ? tmp_4 : THROW_CCE()).j2v()));
14869
+ this.r45_1 = 'aggregates.' + aggregateName_0;
14855
14870
  };
14856
14871
  protoOf(ZdlListenerImpl).k1n = function (ctx) {
14857
- var serviceName = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.x2x()));
14858
- var serviceJavadoc = ZdlListenerUtils_getInstance().o46(ctx.z20());
14859
- var serviceAggregates = ZdlListenerUtils_getInstance().r46(ctx.y2x(), ',');
14860
- this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', serviceName), 'className', ZdlListenerUtils_getInstance().e46(serviceName)), 'javadoc', serviceJavadoc), 'aggregates', serviceAggregates), 'methods', buildMap()));
14872
+ var serviceName = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.x2x()));
14873
+ var serviceJavadoc = ZdlListenerUtils_getInstance().k46(ctx.z20());
14874
+ var serviceAggregates = ZdlListenerUtils_getInstance().n46(ctx.y2x(), ',');
14875
+ this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', serviceName), 'className', ZdlListenerUtils_getInstance().a46(serviceName)), 'javadoc', serviceJavadoc), 'aggregates', serviceAggregates), 'methods', buildMap()));
14861
14876
  this.o45_1.n44('services', serviceName, this.p45_1.db());
14862
14877
  var name = this.p45_1.db().p1('name');
14863
14878
  var location = 'services.' + toString_1(name);
14864
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14865
- this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().k46(ctx.x2x()));
14866
- this.o45_1.y44(location + '.aggregates', ZdlListenerUtils_getInstance().k46(ctx.y2x()));
14879
+ this.r45_1 = location;
14880
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14881
+ this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().g46(ctx.x2x()));
14882
+ this.o45_1.y44(location + '.aggregates', ZdlListenerUtils_getInstance().g46(ctx.y2x()));
14867
14883
  };
14868
14884
  protoOf(ZdlListenerImpl).l1n = function (ctx) {
14869
14885
  this.p45_1.ib();
14886
+ this.r45_1 = null;
14870
14887
  };
14871
14888
  protoOf(ZdlListenerImpl).q1n = function (ctx) {
14872
14889
  var tmp = ZdlListenerUtils_getInstance();
14873
14890
  var tmp_0 = ctx.wm();
14874
- var serviceName = ensureNotNull(tmp.l46((tmp_0 instanceof ServiceContext ? tmp_0 : THROW_CCE()).x2x()));
14875
- var methodName = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.d2z()));
14891
+ var serviceName = ensureNotNull(tmp.h46((tmp_0 instanceof ServiceContext ? tmp_0 : THROW_CCE()).x2x()));
14892
+ var methodName = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.d2z()));
14876
14893
  var location = 'services.' + serviceName + '.methods.' + methodName;
14894
+ this.r45_1 = location;
14877
14895
  var naturalId = !(ctx.e2z() == null) ? true : null;
14878
14896
  var methodParamId = !(ctx.f2z() == null) ? 'id' : null;
14879
14897
  var tmp0_safe_receiver = ctx.f2z();
@@ -14891,22 +14909,22 @@ protoOf(ZdlListenerImpl).q1n = function (ctx) {
14891
14909
  var tmp7_safe_receiver = ctx.h2z();
14892
14910
  var returnTypeIsOptional = !((tmp7_safe_receiver == null ? null : tmp7_safe_receiver.m2x()) == null);
14893
14911
  var withEvents = getServiceMethodEvents(this, location, ctx.r2w());
14894
- var jd = ZdlListenerUtils_getInstance().o46(ZdlListenerUtils_getInstance().m46([ctx.z20(), ctx.q2f()]));
14912
+ var jd = ZdlListenerUtils_getInstance().k46(ZdlListenerUtils_getInstance().i46([ctx.z20(), ctx.q2f()]));
14895
14913
  var method = with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', methodName), 'serviceName', serviceName), 'naturalId', naturalId), 'paramId', methodParamId), 'paramIdIsOptional', methodParamIdIsOptional), 'parameter', methodParameter), 'parameterIsOptional', methodParameterIsOptional), 'returnType', returnType), 'returnTypeIsArray', returnTypeIsArray), 'returnTypeIsOptional', returnTypeIsOptional), 'transition', null), 'withEvents', withEvents), 'javadoc', jd);
14896
14914
  appendTo(this.p45_1.db(), 'methods', methodName, method);
14897
14915
  this.p45_1.gb(method);
14898
- this.o45_1.y44(location, ZdlListenerUtils_getInstance().k46(ctx));
14899
- this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().k46(ctx.d2z()));
14900
- this.o45_1.y44(location + '.parameter', ZdlListenerUtils_getInstance().k46(ctx.g2z()));
14901
- this.o45_1.y44(location + '.returnType', ZdlListenerUtils_getInstance().k46(ctx.h2z()));
14916
+ this.o45_1.y44(location, ZdlListenerUtils_getInstance().g46(ctx));
14917
+ this.o45_1.y44(location + '.name', ZdlListenerUtils_getInstance().g46(ctx.d2z()));
14918
+ this.o45_1.y44(location + '.parameter', ZdlListenerUtils_getInstance().g46(ctx.g2z()));
14919
+ this.o45_1.y44(location + '.returnType', ZdlListenerUtils_getInstance().g46(ctx.h2z()));
14902
14920
  };
14903
14921
  protoOf(ZdlListenerImpl).r1n = function (ctx) {
14904
14922
  var transitionOption = JSONPath_instance.k44(this.p45_1.db(), 'options.transition');
14905
14923
  if (!(transitionOption == null)) {
14906
14924
  var tmp = ZdlListenerUtils_getInstance();
14907
14925
  var tmp_0 = ctx.wm();
14908
- var serviceName = ensureNotNull(tmp.l46((tmp_0 instanceof ServiceContext ? tmp_0 : THROW_CCE()).x2x()));
14909
- var methodName = ensureNotNull(ZdlListenerUtils_getInstance().l46(ctx.d2z()));
14926
+ var serviceName = ensureNotNull(tmp.h46((tmp_0 instanceof ServiceContext ? tmp_0 : THROW_CCE()).x2x()));
14927
+ var methodName = ensureNotNull(ZdlListenerUtils_getInstance().h46(ctx.d2z()));
14910
14928
  var location = 'services.' + serviceName + '.methods.' + methodName;
14911
14929
  // Inline function 'kotlin.collections.get' call
14912
14930
  var fromValue = (isInterface(transitionOption, KtMap) ? transitionOption : THROW_CCE()).p1('from');
@@ -14931,21 +14949,40 @@ protoOf(ZdlListenerImpl).r1n = function (ctx) {
14931
14949
  }
14932
14950
  var fromStates = tmp_1;
14933
14951
  // Inline function 'kotlin.collections.get' call
14934
- var tmp1_safe_receiver = (isInterface(transitionOption, KtMap) ? transitionOption : THROW_CCE()).p1('to');
14935
- var toState = tmp1_safe_receiver == null ? null : toString_0(tmp1_safe_receiver);
14952
+ var toValue = (isInterface(transitionOption, KtMap) ? transitionOption : THROW_CCE()).p1('to');
14953
+ var tmp_2;
14954
+ if (!(toValue == null) ? isInterface(toValue, KtList) : false) {
14955
+ // Inline function 'kotlin.collections.map' call
14956
+ // Inline function 'kotlin.collections.mapTo' call
14957
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(toValue, 10));
14958
+ var _iterator__ex2g4s_0 = toValue.g();
14959
+ while (_iterator__ex2g4s_0.h()) {
14960
+ var item_0 = _iterator__ex2g4s_0.i();
14961
+ var tmp$ret$5 = toString_1(item_0);
14962
+ destination_0.f(tmp$ret$5);
14963
+ }
14964
+ tmp_2 = destination_0;
14965
+ } else {
14966
+ tmp_2 = toValue == null ? null : toString_0(toValue);
14967
+ }
14968
+ var toStates = tmp_2;
14936
14969
  var tmp0 = this.p45_1.db();
14937
14970
  var tmp2 = 'transition';
14938
14971
  // Inline function 'kotlin.collections.set' call
14939
- var value = with_0(with_0(buildMap(), 'from', fromStates), 'to', toState);
14972
+ var value = with_0(with_0(buildMap(), 'from', fromStates), 'to', toStates);
14940
14973
  tmp0.t1(tmp2, value);
14941
14974
  }
14942
14975
  this.p45_1.ib();
14976
+ var tmp_3 = ZdlListenerUtils_getInstance();
14977
+ var tmp_4 = ctx.wm();
14978
+ var serviceName_0 = ensureNotNull(tmp_3.h46((tmp_4 instanceof ServiceContext ? tmp_4 : THROW_CCE()).x2x()));
14979
+ this.r45_1 = 'services.' + serviceName_0;
14943
14980
  };
14944
14981
  protoOf(ZdlListenerImpl).s1l = function (ctx) {
14945
14982
  var name = ctx.r2o().bh();
14946
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14947
- var kebab = ZdlListenerUtils_getInstance().g46(name);
14948
- this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'className', ensureNotNull(ZdlListenerUtils_getInstance().e46(name))), 'type', 'events'), 'kebabCase', kebab), 'javadoc', jd), 'fields', buildMap()));
14983
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14984
+ var kebab = ZdlListenerUtils_getInstance().c46(name);
14985
+ this.p45_1.gb(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'className', ensureNotNull(ZdlListenerUtils_getInstance().a46(name))), 'type', 'events'), 'kebabCase', kebab), 'javadoc', jd), 'fields', buildMap()));
14949
14986
  this.o45_1.n44('events', name, this.p45_1.db());
14950
14987
  this.q45_1 = 'events';
14951
14988
  };
@@ -14954,7 +14991,7 @@ protoOf(ZdlListenerImpl).t1l = function (ctx) {
14954
14991
  };
14955
14992
  protoOf(ZdlListenerImpl).k1l = function (ctx) {
14956
14993
  var name = ctx.b2n().bh();
14957
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
14994
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14958
14995
  this.p45_1.gb(with_0(processEntity(this, name, jd, null), 'type', 'inputs'));
14959
14996
  this.o45_1.n44('inputs', name, this.p45_1.db());
14960
14997
  this.q45_1 = 'inputs';
@@ -14964,7 +15001,7 @@ protoOf(ZdlListenerImpl).l1l = function (ctx) {
14964
15001
  };
14965
15002
  protoOf(ZdlListenerImpl).o1l = function (ctx) {
14966
15003
  var name = ctx.w2n().bh();
14967
- var jd = ZdlListenerUtils_getInstance().o46(ctx.z20());
15004
+ var jd = ZdlListenerUtils_getInstance().k46(ctx.z20());
14968
15005
  this.p45_1.gb(with_0(processEntity(this, name, jd, null), 'type', 'outputs'));
14969
15006
  this.o45_1.n44('outputs', name, this.p45_1.db());
14970
15007
  this.q45_1 = 'outputs';
@@ -14983,12 +15020,12 @@ protoOf(ZdlListenerImpl).er = function (node) {
14983
15020
  };
14984
15021
  function ZdlListenerUtils() {
14985
15022
  ZdlListenerUtils_instance = this;
14986
- this.d46_1 = Inflector_instance;
15023
+ this.z45_1 = Inflector_instance;
14987
15024
  }
14988
- protoOf(ZdlListenerUtils).l46 = function (ctx) {
15025
+ protoOf(ZdlListenerUtils).h46 = function (ctx) {
14989
15026
  return ctx == null ? null : ctx.bh();
14990
15027
  };
14991
- protoOf(ZdlListenerUtils).j46 = function (ctx) {
15028
+ protoOf(ZdlListenerUtils).f46 = function (ctx) {
14992
15029
  if (ctx == null)
14993
15030
  return null;
14994
15031
  var tmp0_safe_receiver = ctx.c1v();
@@ -15003,25 +15040,25 @@ protoOf(ZdlListenerUtils).j46 = function (ctx) {
15003
15040
  null;
15004
15041
  else {
15005
15042
  // Inline function 'kotlin.let' call
15006
- return ZdlListenerUtils_getInstance().t46(tmp1_safe_receiver.bh(), "'");
15043
+ return ZdlListenerUtils_getInstance().p46(tmp1_safe_receiver.bh(), "'");
15007
15044
  }
15008
15045
  var tmp2_safe_receiver = ctx.e1v();
15009
15046
  if (tmp2_safe_receiver == null)
15010
15047
  null;
15011
15048
  else {
15012
15049
  // Inline function 'kotlin.let' call
15013
- return ZdlListenerUtils_getInstance().t46(tmp2_safe_receiver.bh(), '"');
15050
+ return ZdlListenerUtils_getInstance().p46(tmp2_safe_receiver.bh(), '"');
15014
15051
  }
15015
15052
  var tmp3_safe_receiver = ctx.f1v();
15016
15053
  if (tmp3_safe_receiver == null)
15017
15054
  null;
15018
15055
  else {
15019
15056
  // Inline function 'kotlin.let' call
15020
- return ZdlListenerUtils_getInstance().u46(tmp3_safe_receiver.bh());
15057
+ return ZdlListenerUtils_getInstance().q46(tmp3_safe_receiver.bh());
15021
15058
  }
15022
15059
  return ctx.bh();
15023
15060
  };
15024
- protoOf(ZdlListenerUtils).q46 = function (ctx) {
15061
+ protoOf(ZdlListenerUtils).m46 = function (ctx) {
15025
15062
  if (ctx == null)
15026
15063
  return null;
15027
15064
  var tmp0_safe_receiver = ctx.c1v();
@@ -15036,21 +15073,21 @@ protoOf(ZdlListenerUtils).q46 = function (ctx) {
15036
15073
  null;
15037
15074
  else {
15038
15075
  // Inline function 'kotlin.let' call
15039
- return ZdlListenerUtils_getInstance().t46(tmp1_safe_receiver.bh(), "'");
15076
+ return ZdlListenerUtils_getInstance().p46(tmp1_safe_receiver.bh(), "'");
15040
15077
  }
15041
15078
  var tmp2_safe_receiver = ctx.e1v();
15042
15079
  if (tmp2_safe_receiver == null)
15043
15080
  null;
15044
15081
  else {
15045
15082
  // Inline function 'kotlin.let' call
15046
- return ZdlListenerUtils_getInstance().t46(tmp2_safe_receiver.bh(), '"');
15083
+ return ZdlListenerUtils_getInstance().p46(tmp2_safe_receiver.bh(), '"');
15047
15084
  }
15048
15085
  var tmp3_safe_receiver = ctx.f1v();
15049
15086
  if (tmp3_safe_receiver == null)
15050
15087
  null;
15051
15088
  else {
15052
15089
  // Inline function 'kotlin.let' call
15053
- return ZdlListenerUtils_getInstance().u46(tmp3_safe_receiver.bh());
15090
+ return ZdlListenerUtils_getInstance().q46(tmp3_safe_receiver.bh());
15054
15091
  }
15055
15092
  if (ctx.q1v() == null)
15056
15093
  null;
@@ -15070,12 +15107,12 @@ protoOf(ZdlListenerUtils).q46 = function (ctx) {
15070
15107
  return false;
15071
15108
  return ctx.bh();
15072
15109
  };
15073
- protoOf(ZdlListenerUtils).n46 = function (ctx) {
15110
+ protoOf(ZdlListenerUtils).j46 = function (ctx) {
15074
15111
  if (ctx == null)
15075
15112
  return true;
15076
- return this.p46(ctx.i1z());
15113
+ return this.l46(ctx.i1z());
15077
15114
  };
15078
- protoOf(ZdlListenerUtils).p46 = function (complexValue) {
15115
+ protoOf(ZdlListenerUtils).l46 = function (complexValue) {
15079
15116
  if (complexValue == null)
15080
15117
  return true;
15081
15118
  var tmp0_safe_receiver = complexValue.c1u();
@@ -15083,21 +15120,21 @@ protoOf(ZdlListenerUtils).p46 = function (complexValue) {
15083
15120
  null;
15084
15121
  else {
15085
15122
  // Inline function 'kotlin.let' call
15086
- return ZdlListenerUtils_getInstance().v46(tmp0_safe_receiver);
15123
+ return ZdlListenerUtils_getInstance().r46(tmp0_safe_receiver);
15087
15124
  }
15088
- var array = this.w46(complexValue.d1u());
15089
- var obj = this.x46(complexValue.e1u());
15090
- return this.m46([array, obj, true]);
15125
+ var array = this.s46(complexValue.d1u());
15126
+ var obj = this.t46(complexValue.e1u());
15127
+ return this.i46([array, obj, true]);
15091
15128
  };
15092
- protoOf(ZdlListenerUtils).v46 = function (value) {
15129
+ protoOf(ZdlListenerUtils).r46 = function (value) {
15093
15130
  if (value == null)
15094
15131
  return true;
15095
- var obj = this.y46(value.p1u());
15096
- var array = this.z46(value.q1u());
15097
- var simple = this.q46(value.r1u());
15098
- return this.m46([obj, array, simple, true]);
15132
+ var obj = this.u46(value.p1u());
15133
+ var array = this.v46(value.q1u());
15134
+ var simple = this.m46(value.r1u());
15135
+ return this.i46([obj, array, simple, true]);
15099
15136
  };
15100
- protoOf(ZdlListenerUtils).t46 = function (text, quote) {
15137
+ protoOf(ZdlListenerUtils).p46 = function (text, quote) {
15101
15138
  var escape = '\\\\';
15102
15139
  // Inline function 'kotlin.text.replace' call
15103
15140
  var tmp0 = Regex_init_$Create$('^' + Companion_getInstance().y8(quote)).j9(text, '');
@@ -15106,10 +15143,10 @@ protoOf(ZdlListenerUtils).t46 = function (text, quote) {
15106
15143
  // Inline function 'kotlin.text.replace' call
15107
15144
  return Regex_init_$Create$(Companion_getInstance().y8(quote) + '$').j9(tmp0_0, '');
15108
15145
  };
15109
- protoOf(ZdlListenerUtils).u46 = function (text) {
15146
+ protoOf(ZdlListenerUtils).q46 = function (text) {
15110
15147
  return trimIndent(removeSuffix(removePrefix(text, '"""'), '"""'));
15111
15148
  };
15112
- protoOf(ZdlListenerUtils).y46 = function (ctx) {
15149
+ protoOf(ZdlListenerUtils).u46 = function (ctx) {
15113
15150
  if (ctx == null)
15114
15151
  return null;
15115
15152
  var map = buildMap();
@@ -15119,12 +15156,12 @@ protoOf(ZdlListenerUtils).y46 = function (ctx) {
15119
15156
  var element = _iterator__ex2g4s.i();
15120
15157
  // Inline function 'kotlin.let' call
15121
15158
  var it = element.s1r();
15122
- var tmp$ret$1 = toString_1(ZdlListenerUtils_getInstance().j46(it));
15123
- map.t1(tmp$ret$1, ZdlListenerUtils_getInstance().v46(element.c1u()));
15159
+ var tmp$ret$1 = toString_1(ZdlListenerUtils_getInstance().f46(it));
15160
+ map.t1(tmp$ret$1, ZdlListenerUtils_getInstance().r46(element.c1u()));
15124
15161
  }
15125
15162
  return map;
15126
15163
  };
15127
- protoOf(ZdlListenerUtils).x46 = function (ctx) {
15164
+ protoOf(ZdlListenerUtils).t46 = function (ctx) {
15128
15165
  if (ctx == null)
15129
15166
  return null;
15130
15167
  var map = buildMap();
@@ -15134,12 +15171,12 @@ protoOf(ZdlListenerUtils).x46 = function (ctx) {
15134
15171
  var element = _iterator__ex2g4s.i();
15135
15172
  // Inline function 'kotlin.let' call
15136
15173
  var it = element.s1r();
15137
- var tmp$ret$1 = toString_1(ZdlListenerUtils_getInstance().j46(it));
15138
- map.t1(tmp$ret$1, ZdlListenerUtils_getInstance().v46(element.c1u()));
15174
+ var tmp$ret$1 = toString_1(ZdlListenerUtils_getInstance().f46(it));
15175
+ map.t1(tmp$ret$1, ZdlListenerUtils_getInstance().r46(element.c1u()));
15139
15176
  }
15140
15177
  return map;
15141
15178
  };
15142
- protoOf(ZdlListenerUtils).z46 = function (ctx) {
15179
+ protoOf(ZdlListenerUtils).v46 = function (ctx) {
15143
15180
  if (ctx == null)
15144
15181
  return null;
15145
15182
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -15148,11 +15185,11 @@ protoOf(ZdlListenerUtils).z46 = function (ctx) {
15148
15185
  var _iterator__ex2g4s = ctx.c1u().g();
15149
15186
  while (_iterator__ex2g4s.h()) {
15150
15187
  var element = _iterator__ex2g4s.i();
15151
- list.f(ZdlListenerUtils_getInstance().v46(element));
15188
+ list.f(ZdlListenerUtils_getInstance().r46(element));
15152
15189
  }
15153
15190
  return list;
15154
15191
  };
15155
- protoOf(ZdlListenerUtils).w46 = function (ctx) {
15192
+ protoOf(ZdlListenerUtils).s46 = function (ctx) {
15156
15193
  if (ctx == null)
15157
15194
  return null;
15158
15195
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -15161,11 +15198,11 @@ protoOf(ZdlListenerUtils).w46 = function (ctx) {
15161
15198
  var _iterator__ex2g4s = ctx.r1u().g();
15162
15199
  while (_iterator__ex2g4s.h()) {
15163
15200
  var element = _iterator__ex2g4s.i();
15164
- list.f(ZdlListenerUtils_getInstance().q46(element));
15201
+ list.f(ZdlListenerUtils_getInstance().m46(element));
15165
15202
  }
15166
15203
  return list;
15167
15204
  };
15168
- protoOf(ZdlListenerUtils).r46 = function (ctx, split_0) {
15205
+ protoOf(ZdlListenerUtils).n46 = function (ctx, split_0) {
15169
15206
  if (ctx == null)
15170
15207
  return null;
15171
15208
  // Inline function 'kotlin.collections.map' call
@@ -15181,22 +15218,22 @@ protoOf(ZdlListenerUtils).r46 = function (ctx, split_0) {
15181
15218
  }
15182
15219
  return destination;
15183
15220
  };
15184
- protoOf(ZdlListenerUtils).i46 = function (name) {
15185
- return this.d46_1.e44(name);
15186
- };
15187
15221
  protoOf(ZdlListenerUtils).e46 = function (name) {
15188
- return this.d46_1.f44(name);
15222
+ return this.z45_1.e44(name);
15189
15223
  };
15190
- protoOf(ZdlListenerUtils).f46 = function (name) {
15191
- return this.d46_1.h44(name);
15224
+ protoOf(ZdlListenerUtils).a46 = function (name) {
15225
+ return this.z45_1.f44(name);
15192
15226
  };
15193
- protoOf(ZdlListenerUtils).g46 = function (name) {
15194
- return this.d46_1.j44(name);
15227
+ protoOf(ZdlListenerUtils).b46 = function (name) {
15228
+ return this.z45_1.h44(name);
15195
15229
  };
15196
- protoOf(ZdlListenerUtils).h46 = function (name) {
15197
- return this.d46_1.i44(name);
15230
+ protoOf(ZdlListenerUtils).c46 = function (name) {
15231
+ return this.z45_1.j44(name);
15198
15232
  };
15199
- protoOf(ZdlListenerUtils).m46 = function (args) {
15233
+ protoOf(ZdlListenerUtils).d46 = function (name) {
15234
+ return this.z45_1.i44(name);
15235
+ };
15236
+ protoOf(ZdlListenerUtils).i46 = function (args) {
15200
15237
  var tmp$ret$1;
15201
15238
  $l$block: {
15202
15239
  // Inline function 'kotlin.collections.firstOrNull' call
@@ -15214,10 +15251,10 @@ protoOf(ZdlListenerUtils).m46 = function (args) {
15214
15251
  }
15215
15252
  return tmp$ret$1;
15216
15253
  };
15217
- protoOf(ZdlListenerUtils).o46 = function (javadoc) {
15254
+ protoOf(ZdlListenerUtils).k46 = function (javadoc) {
15218
15255
  if (javadoc == null)
15219
15256
  return null;
15220
- var text = this.l46(javadoc instanceof ParserRuleContext ? javadoc : THROW_CCE());
15257
+ var text = this.h46(javadoc instanceof ParserRuleContext ? javadoc : THROW_CCE());
15221
15258
  var tmp;
15222
15259
  if (text == null) {
15223
15260
  tmp = null;
@@ -15251,7 +15288,7 @@ protoOf(ZdlListenerUtils).o46 = function (javadoc) {
15251
15288
  }
15252
15289
  return tmp_2;
15253
15290
  };
15254
- protoOf(ZdlListenerUtils).k46 = function (ctx) {
15291
+ protoOf(ZdlListenerUtils).g46 = function (ctx) {
15255
15292
  if (ctx == null)
15256
15293
  return null;
15257
15294
  var stopCharOffset = 0;
@@ -15261,7 +15298,7 @@ protoOf(ZdlListenerUtils).k46 = function (ctx) {
15261
15298
  // Inline function 'kotlin.intArrayOf' call
15262
15299
  return new Int32Array([ensureNotNull(ctx.rq_1).ai(), ensureNotNull(ctx.sq_1).bi() + 1 | 0, ensureNotNull(ctx.rq_1).wh(), ensureNotNull(ctx.rq_1).yh(), ensureNotNull(ctx.sq_1).wh(), ensureNotNull(ctx.sq_1).yh() + stopCharOffset | 0]);
15263
15300
  };
15264
- protoOf(ZdlListenerUtils).s46 = function (serviceName, entities) {
15301
+ protoOf(ZdlListenerUtils).o46 = function (serviceName, entities) {
15265
15302
  var methods = buildMap();
15266
15303
  var _iterator__ex2g4s = entities.g();
15267
15304
  while (_iterator__ex2g4s.h()) {
@@ -15269,7 +15306,7 @@ protoOf(ZdlListenerUtils).s46 = function (serviceName, entities) {
15269
15306
  // Inline function 'kotlin.text.trim' call
15270
15307
  var tmp$ret$0 = toString_0(trim(isCharSequence(entity) ? entity : THROW_CCE()));
15271
15308
  // Inline function 'kotlin.collections.forEach' call
15272
- var _iterator__ex2g4s_0 = this.a47(serviceName, tmp$ret$0).g();
15309
+ var _iterator__ex2g4s_0 = this.w46(serviceName, tmp$ret$0).g();
15273
15310
  while (_iterator__ex2g4s_0.h()) {
15274
15311
  var element = _iterator__ex2g4s_0.i();
15275
15312
  methods.t1(toString_1(element.p1('name')), element);
@@ -15277,18 +15314,18 @@ protoOf(ZdlListenerUtils).s46 = function (serviceName, entities) {
15277
15314
  }
15278
15315
  return methods;
15279
15316
  };
15280
- protoOf(ZdlListenerUtils).a47 = function (serviceName, entity) {
15317
+ protoOf(ZdlListenerUtils).w46 = function (serviceName, entity) {
15281
15318
  // Inline function 'kotlin.text.lowercase' call
15282
15319
  // Inline function 'kotlin.js.asDynamic' call
15283
15320
  var tmp$ret$1 = entity.toLowerCase();
15284
- var path = '/' + this.d46_1.j44(this.d46_1.e44(tmp$ret$1));
15285
- var entityIdPath = path + '/{' + this.d46_1.h44(entity) + 'Id}';
15321
+ var path = '/' + this.z45_1.j44(this.z45_1.e44(tmp$ret$1));
15322
+ var entityIdPath = path + '/{' + this.z45_1.h44(entity) + 'Id}';
15286
15323
  // Inline function 'kotlin.collections.mutableListOf' call
15287
15324
  var crudMethods = ArrayList_init_$Create$();
15288
15325
  crudMethods.f(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', 'create' + entity), 'serviceName', serviceName), 'parameter', entity), 'returnType', entity), 'options', with_0(buildMap(), 'post', path)), 'optionsList', listOf_0(mapOf([to('name', 'post'), to('value', path)]))));
15289
15326
  crudMethods.f(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', 'update' + entity), 'serviceName', serviceName), 'paramId', 'id'), 'parameter', entity), 'returnType', entity), 'returnTypeIsOptional', true), 'options', with_0(buildMap(), 'put', entityIdPath)), 'optionsList', listOf_0(mapOf([to('name', 'put'), to('value', entityIdPath)]))));
15290
15327
  crudMethods.f(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', 'get' + entity), 'serviceName', serviceName), 'paramId', 'id'), 'returnType', entity), 'returnTypeIsOptional', true), 'options', with_0(buildMap(), 'get', entityIdPath)), 'optionsList', listOf_0(mapOf([to('name', 'get'), to('value', entityIdPath)]))));
15291
- crudMethods.f(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', 'list' + this.i46(entity)), 'serviceName', serviceName), 'paginated', true), 'returnType', entity), 'returnTypeIsArray', true), 'options', with_0(buildMap(), 'paginated', true)), 'options', with_0(buildMap(), 'get', path)), 'optionsList', listOf_0(mapOf([to('name', 'get'), to('value', path)]))));
15328
+ crudMethods.f(with_0(with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', 'list' + this.e46(entity)), 'serviceName', serviceName), 'paginated', true), 'returnType', entity), 'returnTypeIsArray', true), 'options', with_0(buildMap(), 'paginated', true)), 'options', with_0(buildMap(), 'get', path)), 'optionsList', listOf_0(mapOf([to('name', 'get'), to('value', path)]))));
15292
15329
  crudMethods.f(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', 'delete' + entity), 'serviceName', serviceName), 'paramId', 'id'), 'options', with_0(buildMap(), 'delete', entityIdPath)), 'optionsList', listOf_0(mapOf([to('name', 'delete'), to('value', entityIdPath)]))));
15293
15330
  return crudMethods;
15294
15331
  };
@@ -15689,7 +15726,7 @@ function validateLifecycle($this, model, aggregateKey, aggregate, aggregateRoot)
15689
15726
  }
15690
15727
  function validateCommandTransition($this, model, aggregateKey, methodName, method, enumValues) {
15691
15728
  var fromStates = JSONPath_instance.k44(method, 'transition.from');
15692
- var toState = JSONPath_instance.k44(method, 'transition.to');
15729
+ var toStates = transitionStates($this, method, 'transition.to');
15693
15730
  if (fromStates == null)
15694
15731
  null;
15695
15732
  else {
@@ -15706,8 +15743,21 @@ function validateCommandTransition($this, model, aggregateKey, methodName, metho
15706
15743
  }
15707
15744
  }
15708
15745
  }
15709
- if (!(toState == null) && !enumValues.j1(toState)) {
15710
- model.a45(path($this, ['aggregates', aggregateKey, 'commands', methodName == null ? '' : methodName, 'transition', 'to']), toState, '%s is not a valid state value');
15746
+ if (toStates == null)
15747
+ null;
15748
+ else {
15749
+ // Inline function 'kotlin.collections.forEachIndexed' call
15750
+ var index_0 = 0;
15751
+ var _iterator__ex2g4s_0 = toStates.g();
15752
+ while (_iterator__ex2g4s_0.h()) {
15753
+ var item_0 = _iterator__ex2g4s_0.i();
15754
+ var _unary__edvuaz_0 = index_0;
15755
+ index_0 = _unary__edvuaz_0 + 1 | 0;
15756
+ var i_0 = checkIndexOverflow(_unary__edvuaz_0);
15757
+ if (!enumValues.j1(item_0)) {
15758
+ model.a45(path($this, ['aggregates', aggregateKey, 'commands', methodName == null ? '' : methodName, 'transition', 'to', '' + i_0]), item_0, '%s is not a valid state value');
15759
+ }
15760
+ }
15711
15761
  }
15712
15762
  }
15713
15763
  function validateLifecycles($this, model) {
@@ -15978,29 +16028,23 @@ function validateServices($this, model) {
15978
16028
  }
15979
16029
  function validateServiceMethodTransition($this, model, serviceKey, methodName, method, serviceAggregates) {
15980
16030
  var mPath = path($this, ['services', serviceKey, 'methods', methodName == null ? '' : methodName]);
15981
- var tmp = method.p1('paramId');
15982
- var paramId = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
15983
- if (!(paramId === 'id')) {
15984
- model.a45(mPath + '.options.transition.value.from', null, 'state transitions require an id parameter');
15985
- return Unit_instance;
15986
- }
15987
- var tmp_0;
16031
+ var fromStates = JSONPath_instance.k44(method, 'transition.from');
16032
+ var toStates = transitionStates($this, method, 'transition.to');
16033
+ var tmp;
15988
16034
  if (serviceAggregates.j() === 1) {
15989
- tmp_0 = serviceAggregates.k(0);
16035
+ tmp = serviceAggregates.k(0);
15990
16036
  } else {
15991
- var tmp_1 = method.p1('returnType');
15992
- var returnType = (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : null;
15993
- var tmp_2 = method.p1('parameter');
15994
- var parameter = (!(tmp_2 == null) ? typeof tmp_2 === 'string' : false) ? tmp_2 : null;
15995
- tmp_0 = !(returnType == null) && serviceAggregates.j1(returnType) ? returnType : !(parameter == null) && serviceAggregates.j1(parameter) ? parameter : null;
16037
+ var tmp_0 = method.p1('returnType');
16038
+ var returnType = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null;
16039
+ var tmp_1 = method.p1('parameter');
16040
+ var parameter = (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : null;
16041
+ tmp = !(returnType == null) && serviceAggregates.j1(returnType) ? returnType : !(parameter == null) && serviceAggregates.j1(parameter) ? parameter : null;
15996
16042
  }
15997
- var targetEntity = tmp_0;
16043
+ var targetEntity = tmp;
15998
16044
  if (targetEntity == null) {
15999
16045
  model.a45(mPath + '.options.transition.value', null, 'cannot determine target entity for state transition');
16000
16046
  return Unit_instance;
16001
16047
  }
16002
- var fromStates = JSONPath_instance.k44(method, 'transition.from');
16003
- var toState = JSONPath_instance.k44(method, 'transition.to');
16004
16048
  var enumValues = getEntityLifecycleEnumValues($this, model, targetEntity);
16005
16049
  if (enumValues == null) {
16006
16050
  model.a45(mPath + '.options.transition.value', targetEntity, 'entity %s does not have a @lifecycle annotation');
@@ -16022,13 +16066,50 @@ function validateServiceMethodTransition($this, model, serviceKey, methodName, m
16022
16066
  }
16023
16067
  }
16024
16068
  }
16025
- if (!(toState == null) && !enumValues.j1(toState)) {
16026
- model.a45(path($this, ['services', serviceKey, 'methods', methodName == null ? '' : methodName, 'options', 'transition', 'value', 'to']), toState, '%s is not a valid state value');
16069
+ if (toStates == null)
16070
+ null;
16071
+ else {
16072
+ // Inline function 'kotlin.collections.forEachIndexed' call
16073
+ var index_0 = 0;
16074
+ var _iterator__ex2g4s_0 = toStates.g();
16075
+ while (_iterator__ex2g4s_0.h()) {
16076
+ var item_0 = _iterator__ex2g4s_0.i();
16077
+ var _unary__edvuaz_0 = index_0;
16078
+ index_0 = _unary__edvuaz_0 + 1 | 0;
16079
+ var i = checkIndexOverflow(_unary__edvuaz_0);
16080
+ if (!enumValues.j1(item_0)) {
16081
+ model.a45(path($this, ['services', serviceKey, 'methods', methodName == null ? '' : methodName, 'options', 'transition', 'value', 'to', '' + i]), item_0, '%s is not a valid state value');
16082
+ }
16083
+ }
16027
16084
  }
16028
16085
  }
16029
16086
  function path($this, path) {
16030
16087
  return joinToString_0(path, '.');
16031
16088
  }
16089
+ function transitionStates($this, method, property) {
16090
+ var value = JSONPath_instance.k44(method, property);
16091
+ var tmp;
16092
+ if (!(value == null) ? isInterface(value, KtList) : false) {
16093
+ // Inline function 'kotlin.collections.filterIsInstance' call
16094
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
16095
+ var destination = ArrayList_init_$Create$();
16096
+ var _iterator__ex2g4s = value.g();
16097
+ while (_iterator__ex2g4s.h()) {
16098
+ var element = _iterator__ex2g4s.i();
16099
+ if (!(element == null) ? typeof element === 'string' : false) {
16100
+ destination.f(element);
16101
+ }
16102
+ }
16103
+ tmp = destination;
16104
+ } else {
16105
+ if (!(value == null) ? typeof value === 'string' : false) {
16106
+ tmp = listOf_0(value);
16107
+ } else {
16108
+ tmp = null;
16109
+ }
16110
+ }
16111
+ return tmp;
16112
+ }
16032
16113
  function isStandardFieldType($this, fieldType) {
16033
16114
  return !(fieldType == null) && ($this.u45_1.j1(fieldType) || $this.v45_1.j1(fieldType));
16034
16115
  }
@@ -16086,716 +16167,6 @@ protoOf(ZdlModelValidator).y45 = function (model) {
16086
16167
  validateLifecycles(this, model);
16087
16168
  return model;
16088
16169
  };
16089
- function labelText($this, text) {
16090
- return replace_0(replace_0($this.c47(text), '[', ''), ']', '');
16091
- }
16092
- function fieldMembers($this, type) {
16093
- // Inline function 'kotlin.collections.map' call
16094
- var this_0 = section(type, 'fields').r1();
16095
- // Inline function 'kotlin.collections.mapTo' call
16096
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
16097
- var _iterator__ex2g4s = this_0.g();
16098
- while (_iterator__ex2g4s.h()) {
16099
- var item = _iterator__ex2g4s.i();
16100
- var field = map(item);
16101
- var tmp = field.p1('type');
16102
- var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
16103
- var fieldType = (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + (equals(field.p1('isArray'), true) ? '[]' : '');
16104
- var tmp_0 = field.p1('name');
16105
- var tmp1_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null;
16106
- var tmp$ret$0 = member($this, fieldType + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs));
16107
- destination.f(tmp$ret$0);
16108
- }
16109
- return destination;
16110
- }
16111
- function fieldLinks($this, source, type, declared, allTypes) {
16112
- // Inline function 'kotlin.collections.mapNotNull' call
16113
- var tmp0 = section(type, 'fields').r1();
16114
- // Inline function 'kotlin.collections.mapNotNullTo' call
16115
- var destination = ArrayList_init_$Create$();
16116
- // Inline function 'kotlin.collections.forEach' call
16117
- var _iterator__ex2g4s = tmp0.g();
16118
- while (_iterator__ex2g4s.h()) {
16119
- var element = _iterator__ex2g4s.i();
16120
- var tmp$ret$0;
16121
- $l$block_0: {
16122
- var field = map(element);
16123
- var tmp = field.p1('type');
16124
- var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
16125
- var tmp_0;
16126
- if (tmp0_elvis_lhs == null) {
16127
- tmp$ret$0 = null;
16128
- break $l$block_0;
16129
- } else {
16130
- tmp_0 = tmp0_elvis_lhs;
16131
- }
16132
- var target = tmp_0;
16133
- if (target === source || !declared.n1(target)) {
16134
- tmp$ret$0 = null;
16135
- break $l$block_0;
16136
- }
16137
- var embedded = equals(section(map(allTypes.p1(target)), 'options').p1('embedded'), true);
16138
- var arrow = embedded ? '*--' : '-->';
16139
- var cardinality = equals(field.p1('isArray'), true) ? '"*" ' : '';
16140
- var tmp_1 = Companion_getInstance_7().d47(source);
16141
- var tmp_2 = Companion_getInstance_7().d47(target);
16142
- var tmp_3 = Companion_getInstance_7();
16143
- var tmp_4 = field.p1('name');
16144
- var tmp1_elvis_lhs = (!(tmp_4 == null) ? typeof tmp_4 === 'string' : false) ? tmp_4 : null;
16145
- tmp$ret$0 = tmp_1 + ' ' + arrow + ' ' + cardinality + tmp_2 + ' : ' + tmp_3.c47(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
16146
- }
16147
- var tmp0_safe_receiver = tmp$ret$0;
16148
- if (tmp0_safe_receiver == null)
16149
- null;
16150
- else {
16151
- // Inline function 'kotlin.let' call
16152
- destination.f(tmp0_safe_receiver);
16153
- }
16154
- }
16155
- return destination;
16156
- }
16157
- function classBlock($this, name, stereotype, members) {
16158
- // Inline function 'kotlin.text.buildString' call
16159
- // Inline function 'kotlin.apply' call
16160
- var this_0 = StringBuilder_init_$Create$();
16161
- $l$block: {
16162
- var identifier = Companion_getInstance_7().d47(name);
16163
- var label = labelText(Companion_getInstance_7(), name);
16164
- if (!(identifier === name)) {
16165
- this_0.u6(' class ').u6(identifier).u6('["').u6(label).u6('"]\n');
16166
- }
16167
- if (stereotype == null && members.l()) {
16168
- if (identifier === name) {
16169
- this_0.u6(' class ').u6(identifier).v6(_Char___init__impl__6a9atx(10));
16170
- }
16171
- break $l$block;
16172
- }
16173
- this_0.u6(' class ').u6(identifier).u6(' {\n');
16174
- if (stereotype == null)
16175
- null;
16176
- else {
16177
- // Inline function 'kotlin.let' call
16178
- this_0.u6(' <<').u6(stereotype).u6('>>\n');
16179
- }
16180
- // Inline function 'kotlin.collections.filter' call
16181
- // Inline function 'kotlin.collections.filterTo' call
16182
- var destination = ArrayList_init_$Create$();
16183
- var _iterator__ex2g4s = members.g();
16184
- while (_iterator__ex2g4s.h()) {
16185
- var element = _iterator__ex2g4s.i();
16186
- // Inline function 'kotlin.text.isNotBlank' call
16187
- if (!isBlank(element)) {
16188
- destination.f(element);
16189
- }
16190
- }
16191
- // Inline function 'kotlin.collections.forEach' call
16192
- var _iterator__ex2g4s_0 = destination.g();
16193
- while (_iterator__ex2g4s_0.h()) {
16194
- var element_0 = _iterator__ex2g4s_0.i();
16195
- this_0.u6(' ').u6(element_0).v6(_Char___init__impl__6a9atx(10));
16196
- }
16197
- this_0.u6(' }\n');
16198
- }
16199
- return this_0.toString();
16200
- }
16201
- function method($this, name, params, returnType, withEvents) {
16202
- var events = renderEvents($this, withEvents);
16203
- var tmp;
16204
- if (events == null) {
16205
- tmp = null;
16206
- } else {
16207
- // Inline function 'kotlin.let' call
16208
- tmp = 'withEvents ' + events;
16209
- }
16210
- var tail = joinToString(listOfNotNull([returnType, tmp]), ' ');
16211
- var tmp_0 = Companion_getInstance_7();
16212
- var tmp_1 = name + '(' + joinToString(params, ', ') + ')';
16213
- var tmp_2;
16214
- // Inline function 'kotlin.text.isEmpty' call
16215
- if (charSequenceLength(tail) === 0) {
16216
- tmp_2 = '';
16217
- } else {
16218
- tmp_2 = ' ' + tail;
16219
- }
16220
- return tmp_0.c47(tmp_1 + tmp_2);
16221
- }
16222
- function member($this, text) {
16223
- return Companion_getInstance_7().c47(text);
16224
- }
16225
- function renderEvents($this, withEvents) {
16226
- var tmp0_elvis_lhs = (!(withEvents == null) ? isInterface(withEvents, KtList) : false) ? withEvents : null;
16227
- var tmp;
16228
- if (tmp0_elvis_lhs == null) {
16229
- return null;
16230
- } else {
16231
- tmp = tmp0_elvis_lhs;
16232
- }
16233
- var list = tmp;
16234
- if (list.l())
16235
- return null;
16236
- return joinToString(list, ' ', VOID, VOID, VOID, VOID, ZdlToMermaidClassDiagramTransformer$renderEvents$lambda);
16237
- }
16238
- function flattenEvents($this, withEvents) {
16239
- // Inline function 'kotlin.collections.orEmpty' call
16240
- var tmp0_elvis_lhs = (!(withEvents == null) ? isInterface(withEvents, KtList) : false) ? withEvents : null;
16241
- // Inline function 'kotlin.collections.flatMap' call
16242
- var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
16243
- // Inline function 'kotlin.collections.flatMapTo' call
16244
- var destination = ArrayList_init_$Create$();
16245
- var _iterator__ex2g4s = tmp0.g();
16246
- while (_iterator__ex2g4s.h()) {
16247
- var element = _iterator__ex2g4s.i();
16248
- var tmp;
16249
- if (!(element == null) ? isInterface(element, KtList) : false) {
16250
- // Inline function 'kotlin.collections.mapNotNull' call
16251
- // Inline function 'kotlin.collections.mapNotNullTo' call
16252
- var destination_0 = ArrayList_init_$Create$();
16253
- // Inline function 'kotlin.collections.forEach' call
16254
- var _iterator__ex2g4s_0 = element.g();
16255
- while (_iterator__ex2g4s_0.h()) {
16256
- var element_0 = _iterator__ex2g4s_0.i();
16257
- var tmp0_safe_receiver = (!(element_0 == null) ? typeof element_0 === 'string' : false) ? element_0 : null;
16258
- if (tmp0_safe_receiver == null)
16259
- null;
16260
- else {
16261
- // Inline function 'kotlin.let' call
16262
- destination_0.f(tmp0_safe_receiver);
16263
- }
16264
- }
16265
- tmp = destination_0;
16266
- } else {
16267
- if (!(element == null) ? typeof element === 'string' : false) {
16268
- tmp = listOf_0(element);
16269
- } else {
16270
- tmp = emptyList();
16271
- }
16272
- }
16273
- var list = tmp;
16274
- addAll(destination, list);
16275
- }
16276
- return destination;
16277
- }
16278
- function Companion_5() {
16279
- Companion_instance_5 = this;
16280
- this.b47_1 = setOf(['classDiagram', 'class', 'namespace', 'direction', 'click', 'link', 'callback', 'call', 'href', 'note', 'style', 'classDef', 'cssClass', 'end', 'accTitle', 'accDescr', 'title']);
16281
- }
16282
- protoOf(Companion_5).d47 = function (name) {
16283
- // Inline function 'kotlin.text.replace' call
16284
- var identifier = Regex_init_$Create$('[^A-Za-z0-9_]').j9(name, '_');
16285
- var tmp;
16286
- // Inline function 'kotlin.text.isEmpty' call
16287
- var this_0 = identifier;
16288
- if (charSequenceLength(this_0) === 0) {
16289
- tmp = true;
16290
- } else {
16291
- tmp = isDigit(charCodeAt(identifier, 0));
16292
- }
16293
- if (tmp)
16294
- identifier = '_' + identifier;
16295
- var tmp0 = this.b47_1;
16296
- var tmp$ret$2;
16297
- $l$block_0: {
16298
- // Inline function 'kotlin.collections.any' call
16299
- var tmp_0;
16300
- if (isInterface(tmp0, Collection)) {
16301
- tmp_0 = tmp0.l();
16302
- } else {
16303
- tmp_0 = false;
16304
- }
16305
- if (tmp_0) {
16306
- tmp$ret$2 = false;
16307
- break $l$block_0;
16308
- }
16309
- var _iterator__ex2g4s = tmp0.g();
16310
- while (_iterator__ex2g4s.h()) {
16311
- var element = _iterator__ex2g4s.i();
16312
- if (equals_0(element, identifier, true)) {
16313
- tmp$ret$2 = true;
16314
- break $l$block_0;
16315
- }
16316
- }
16317
- tmp$ret$2 = false;
16318
- }
16319
- if (tmp$ret$2)
16320
- identifier = identifier + '_';
16321
- return identifier;
16322
- };
16323
- protoOf(Companion_5).c47 = function (text) {
16324
- // Inline function 'kotlin.text.replace' call
16325
- var tmp0 = Regex_init_$Create$('[\\r\\n]+').j9(text, ' ');
16326
- // Inline function 'kotlin.text.replace' call
16327
- // Inline function 'kotlin.text.trim' call
16328
- var this_0 = Regex_init_$Create$('[{}<>"\'`~;#%:$*\\\\]').j9(tmp0, '');
16329
- return toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
16330
- };
16331
- var Companion_instance_5;
16332
- function Companion_getInstance_7() {
16333
- if (Companion_instance_5 == null)
16334
- new Companion_5();
16335
- return Companion_instance_5;
16336
- }
16337
- function ZdlToMermaidClassDiagramTransformer$transform$lambda(it) {
16338
- return Companion_getInstance_7().c47(it);
16339
- }
16340
- function ZdlToMermaidClassDiagramTransformer$renderEvents$lambda(event) {
16341
- var tmp;
16342
- if (!(event == null) ? isInterface(event, KtList) : false) {
16343
- tmp = joinToString(event, ' or ', VOID, VOID, VOID, VOID, ZdlToMermaidClassDiagramTransformer$renderEvents$lambda$lambda);
16344
- } else {
16345
- tmp = toString_1(event);
16346
- }
16347
- return tmp;
16348
- }
16349
- function ZdlToMermaidClassDiagramTransformer$renderEvents$lambda$lambda(it) {
16350
- return toString_1(it);
16351
- }
16352
- function ZdlToMermaidClassDiagramTransformer() {
16353
- Companion_getInstance_7();
16354
- }
16355
- protoOf(ZdlToMermaidClassDiagramTransformer).c46 = function (model) {
16356
- var aggregates = section(model, 'aggregates');
16357
- var entities = section(model, 'entities');
16358
- var enums = section(model, 'enums');
16359
- var inputs = section(model, 'inputs');
16360
- var outputs = section(model, 'outputs');
16361
- var events = section(model, 'events');
16362
- var services = section(model, 'services');
16363
- // Inline function 'kotlin.collections.linkedMapOf' call
16364
- var declared = LinkedHashMap_init_$Create$();
16365
- // Inline function 'kotlin.collections.forEach' call
16366
- var _iterator__ex2g4s = aggregates.q1().g();
16367
- while (_iterator__ex2g4s.h()) {
16368
- var element = _iterator__ex2g4s.i();
16369
- // Inline function 'kotlin.collections.set' call
16370
- var value = 'aggregates';
16371
- declared.t1(element, value);
16372
- }
16373
- // Inline function 'kotlin.collections.forEach' call
16374
- var _iterator__ex2g4s_0 = entities.q1().g();
16375
- while (_iterator__ex2g4s_0.h()) {
16376
- var element_0 = _iterator__ex2g4s_0.i();
16377
- // Inline function 'kotlin.collections.getOrPut' call
16378
- var value_0 = declared.p1(element_0);
16379
- var tmp;
16380
- if (value_0 == null) {
16381
- var answer = 'entities';
16382
- declared.t1(element_0, answer);
16383
- tmp = answer;
16384
- } else {
16385
- tmp = value_0;
16386
- }
16387
- }
16388
- // Inline function 'kotlin.collections.forEach' call
16389
- var _iterator__ex2g4s_1 = enums.q1().g();
16390
- while (_iterator__ex2g4s_1.h()) {
16391
- var element_1 = _iterator__ex2g4s_1.i();
16392
- // Inline function 'kotlin.collections.getOrPut' call
16393
- var value_1 = declared.p1(element_1);
16394
- var tmp_0;
16395
- if (value_1 == null) {
16396
- var answer_0 = 'enums';
16397
- declared.t1(element_1, answer_0);
16398
- tmp_0 = answer_0;
16399
- } else {
16400
- tmp_0 = value_1;
16401
- }
16402
- }
16403
- // Inline function 'kotlin.collections.forEach' call
16404
- var _iterator__ex2g4s_2 = inputs.q1().g();
16405
- while (_iterator__ex2g4s_2.h()) {
16406
- var element_2 = _iterator__ex2g4s_2.i();
16407
- // Inline function 'kotlin.collections.getOrPut' call
16408
- var value_2 = declared.p1(element_2);
16409
- var tmp_1;
16410
- if (value_2 == null) {
16411
- var answer_1 = 'inputs';
16412
- declared.t1(element_2, answer_1);
16413
- tmp_1 = answer_1;
16414
- } else {
16415
- tmp_1 = value_2;
16416
- }
16417
- }
16418
- // Inline function 'kotlin.collections.forEach' call
16419
- var _iterator__ex2g4s_3 = outputs.q1().g();
16420
- while (_iterator__ex2g4s_3.h()) {
16421
- var element_3 = _iterator__ex2g4s_3.i();
16422
- // Inline function 'kotlin.collections.getOrPut' call
16423
- var value_3 = declared.p1(element_3);
16424
- var tmp_2;
16425
- if (value_3 == null) {
16426
- var answer_2 = 'outputs';
16427
- declared.t1(element_3, answer_2);
16428
- tmp_2 = answer_2;
16429
- } else {
16430
- tmp_2 = value_3;
16431
- }
16432
- }
16433
- // Inline function 'kotlin.collections.forEach' call
16434
- var _iterator__ex2g4s_4 = events.q1().g();
16435
- while (_iterator__ex2g4s_4.h()) {
16436
- var element_4 = _iterator__ex2g4s_4.i();
16437
- // Inline function 'kotlin.collections.getOrPut' call
16438
- var value_4 = declared.p1(element_4);
16439
- var tmp_3;
16440
- if (value_4 == null) {
16441
- var answer_3 = 'events';
16442
- declared.t1(element_4, answer_3);
16443
- tmp_3 = answer_3;
16444
- } else {
16445
- tmp_3 = value_4;
16446
- }
16447
- }
16448
- // Inline function 'kotlin.collections.linkedMapOf' call
16449
- // Inline function 'kotlin.apply' call
16450
- var this_0 = LinkedHashMap_init_$Create$();
16451
- this_0.u1(events);
16452
- this_0.u1(outputs);
16453
- this_0.u1(inputs);
16454
- this_0.u1(enums);
16455
- this_0.u1(entities);
16456
- var allTypes = this_0;
16457
- // Inline function 'kotlin.collections.mapNotNull' call
16458
- var tmp0 = aggregates.r1();
16459
- // Inline function 'kotlin.collections.mapNotNullTo' call
16460
- var destination = ArrayList_init_$Create$();
16461
- // Inline function 'kotlin.collections.forEach' call
16462
- var _iterator__ex2g4s_5 = tmp0.g();
16463
- while (_iterator__ex2g4s_5.h()) {
16464
- var element_5 = _iterator__ex2g4s_5.i();
16465
- var tmp_4 = map(element_5).p1('aggregateRoot');
16466
- var tmp0_safe_receiver = (!(tmp_4 == null) ? typeof tmp_4 === 'string' : false) ? tmp_4 : null;
16467
- if (tmp0_safe_receiver == null)
16468
- null;
16469
- else {
16470
- // Inline function 'kotlin.let' call
16471
- destination.f(tmp0_safe_receiver);
16472
- }
16473
- }
16474
- var aggregateRoots = toSet(destination);
16475
- // Inline function 'kotlin.collections.mutableListOf' call
16476
- var classes = ArrayList_init_$Create$();
16477
- var links = LinkedHashSet_init_$Create$();
16478
- // Inline function 'kotlin.collections.iterator' call
16479
- var _iterator__ex2g4s_6 = aggregates.s1().g();
16480
- while (_iterator__ex2g4s_6.h()) {
16481
- var _destruct__k2r9zo = _iterator__ex2g4s_6.i();
16482
- // Inline function 'kotlin.collections.component1' call
16483
- var name = _destruct__k2r9zo.l1();
16484
- // Inline function 'kotlin.collections.component2' call
16485
- var aggregate = _destruct__k2r9zo.m1();
16486
- // Inline function 'kotlin.collections.map' call
16487
- var this_1 = section(map(aggregate), 'commands').r1();
16488
- // Inline function 'kotlin.collections.mapTo' call
16489
- var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
16490
- var _iterator__ex2g4s_7 = this_1.g();
16491
- while (_iterator__ex2g4s_7.h()) {
16492
- var item = _iterator__ex2g4s_7.i();
16493
- var c = map(item);
16494
- var tmp_5 = c.p1('parameter');
16495
- var tmp0_safe_receiver_0 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : null;
16496
- var tmp_6;
16497
- if (tmp0_safe_receiver_0 == null) {
16498
- tmp_6 = null;
16499
- } else {
16500
- // Inline function 'kotlin.let' call
16501
- tmp_6 = tmp0_safe_receiver_0 + (equals(c.p1('parameterIsOptional'), true) ? '?' : '');
16502
- }
16503
- var parameter = tmp_6;
16504
- var tmp_7 = c.p1('name');
16505
- var tmp1_elvis_lhs = (!(tmp_7 == null) ? typeof tmp_7 === 'string' : false) ? tmp_7 : null;
16506
- var tmp$ret$40 = method(this, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs, listOfNotNull_0(parameter), null, c.p1('withEvents'));
16507
- destination_0.f(tmp$ret$40);
16508
- }
16509
- var members = destination_0;
16510
- // Inline function 'kotlin.collections.plusAssign' call
16511
- var element_6 = classBlock(this, name, 'aggregate', members);
16512
- classes.f(element_6);
16513
- var tmp_8 = map(aggregate).p1('aggregateRoot');
16514
- var tmp0_safe_receiver_1 = (!(tmp_8 == null) ? typeof tmp_8 === 'string' : false) ? tmp_8 : null;
16515
- if (tmp0_safe_receiver_1 == null)
16516
- null;
16517
- else {
16518
- // Inline function 'kotlin.let' call
16519
- if (entities.n1(tmp0_safe_receiver_1)) {
16520
- // Inline function 'kotlin.collections.plusAssign' call
16521
- var element_7 = Companion_getInstance_7().d47(name) + ' *-- ' + Companion_getInstance_7().d47(tmp0_safe_receiver_1);
16522
- links.f(element_7);
16523
- }
16524
- }
16525
- }
16526
- // Inline function 'kotlin.collections.iterator' call
16527
- var _iterator__ex2g4s_8 = entities.s1().g();
16528
- while (_iterator__ex2g4s_8.h()) {
16529
- var _destruct__k2r9zo_0 = _iterator__ex2g4s_8.i();
16530
- // Inline function 'kotlin.collections.component1' call
16531
- var name_0 = _destruct__k2r9zo_0.l1();
16532
- // Inline function 'kotlin.collections.component2' call
16533
- var entity = _destruct__k2r9zo_0.m1();
16534
- var e = map(entity);
16535
- var stereotype = aggregateRoots.j1(name_0) || equals(section(e, 'options').p1('aggregate'), true) ? 'aggregate' : equals(section(e, 'options').p1('embedded'), true) ? 'embedded' : null;
16536
- // Inline function 'kotlin.collections.plusAssign' call
16537
- var element_8 = classBlock(this, name_0, stereotype, fieldMembers(this, e));
16538
- classes.f(element_8);
16539
- // Inline function 'kotlin.collections.plusAssign' call
16540
- var elements = fieldLinks(this, name_0, e, declared, allTypes);
16541
- addAll(links, elements);
16542
- }
16543
- // Inline function 'kotlin.collections.iterator' call
16544
- var _iterator__ex2g4s_9 = enums.s1().g();
16545
- while (_iterator__ex2g4s_9.h()) {
16546
- var _destruct__k2r9zo_1 = _iterator__ex2g4s_9.i();
16547
- // Inline function 'kotlin.collections.component1' call
16548
- var name_1 = _destruct__k2r9zo_1.l1();
16549
- // Inline function 'kotlin.collections.component2' call
16550
- var enum_0 = _destruct__k2r9zo_1.m1();
16551
- // Inline function 'kotlin.collections.map' call
16552
- var this_2 = section(map(enum_0), 'values').r1();
16553
- // Inline function 'kotlin.collections.mapTo' call
16554
- var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
16555
- var _iterator__ex2g4s_10 = this_2.g();
16556
- while (_iterator__ex2g4s_10.h()) {
16557
- var item_0 = _iterator__ex2g4s_10.i();
16558
- var value_5 = map(item_0);
16559
- var tmp_9 = value_5.p1('name');
16560
- var tmp0_elvis_lhs = (!(tmp_9 == null) ? typeof tmp_9 === 'string' : false) ? tmp_9 : null;
16561
- var valueName = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
16562
- var tmp1_safe_receiver = value_5.p1('value');
16563
- var literal = tmp1_safe_receiver == null ? null : toString_0(tmp1_safe_receiver);
16564
- var tmp$ret$55 = literal == null ? member(this, valueName) : member(this, valueName + ' = ' + literal);
16565
- destination_1.f(tmp$ret$55);
16566
- }
16567
- var members_0 = destination_1;
16568
- // Inline function 'kotlin.collections.plusAssign' call
16569
- var element_9 = classBlock(this, name_1, 'enumeration', members_0);
16570
- classes.f(element_9);
16571
- }
16572
- var _iterator__ex2g4s_11 = listOf([to(inputs, 'input'), to(outputs, 'output'), to(events, 'event')]).g();
16573
- while (_iterator__ex2g4s_11.h()) {
16574
- var _destruct__k2r9zo_2 = _iterator__ex2g4s_11.i();
16575
- var collection = _destruct__k2r9zo_2.sb();
16576
- var stereotype_0 = _destruct__k2r9zo_2.tb();
16577
- // Inline function 'kotlin.collections.iterator' call
16578
- var _iterator__ex2g4s_12 = collection.s1().g();
16579
- while (_iterator__ex2g4s_12.h()) {
16580
- var _destruct__k2r9zo_3 = _iterator__ex2g4s_12.i();
16581
- // Inline function 'kotlin.collections.component1' call
16582
- var name_2 = _destruct__k2r9zo_3.l1();
16583
- // Inline function 'kotlin.collections.component2' call
16584
- var type = _destruct__k2r9zo_3.m1();
16585
- // Inline function 'kotlin.collections.plusAssign' call
16586
- var element_10 = classBlock(this, name_2, stereotype_0, fieldMembers(this, map(type)));
16587
- classes.f(element_10);
16588
- // Inline function 'kotlin.collections.plusAssign' call
16589
- var elements_0 = fieldLinks(this, name_2, map(type), declared, allTypes);
16590
- addAll(links, elements_0);
16591
- }
16592
- }
16593
- // Inline function 'kotlin.collections.iterator' call
16594
- var _iterator__ex2g4s_13 = services.s1().g();
16595
- while (_iterator__ex2g4s_13.h()) {
16596
- var _destruct__k2r9zo_4 = _iterator__ex2g4s_13.i();
16597
- // Inline function 'kotlin.collections.component1' call
16598
- var name_3 = _destruct__k2r9zo_4.l1();
16599
- // Inline function 'kotlin.collections.component2' call
16600
- var service = _destruct__k2r9zo_4.m1();
16601
- var s = map(service);
16602
- // Inline function 'kotlin.collections.map' call
16603
- var this_3 = section(s, 'methods').r1();
16604
- // Inline function 'kotlin.collections.mapTo' call
16605
- var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
16606
- var _iterator__ex2g4s_14 = this_3.g();
16607
- while (_iterator__ex2g4s_14.h()) {
16608
- var item_1 = _iterator__ex2g4s_14.i();
16609
- var tmp$ret$67 = map(item_1);
16610
- destination_2.f(tmp$ret$67);
16611
- }
16612
- var methods = destination_2;
16613
- // Inline function 'kotlin.collections.map' call
16614
- // Inline function 'kotlin.collections.mapTo' call
16615
- var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(methods, 10));
16616
- var _iterator__ex2g4s_15 = methods.g();
16617
- while (_iterator__ex2g4s_15.h()) {
16618
- var item_2 = _iterator__ex2g4s_15.i();
16619
- var tmp_10;
16620
- if (item_2.p1('paramId') == null) {
16621
- tmp_10 = null;
16622
- } else {
16623
- // Inline function 'kotlin.let' call
16624
- tmp_10 = 'id' + (equals(item_2.p1('paramIdIsOptional'), true) ? '?' : '');
16625
- }
16626
- var tmp_11 = tmp_10;
16627
- var tmp_12 = item_2.p1('parameter');
16628
- var tmp1_safe_receiver_0 = (!(tmp_12 == null) ? typeof tmp_12 === 'string' : false) ? tmp_12 : null;
16629
- var tmp_13;
16630
- if (tmp1_safe_receiver_0 == null) {
16631
- tmp_13 = null;
16632
- } else {
16633
- // Inline function 'kotlin.let' call
16634
- tmp_13 = tmp1_safe_receiver_0 + (equals(item_2.p1('parameterIsOptional'), true) ? '?' : '');
16635
- }
16636
- var params = listOfNotNull([tmp_11, tmp_13]);
16637
- var tmp_14 = item_2.p1('returnType');
16638
- var tmp2_safe_receiver = (!(tmp_14 == null) ? typeof tmp_14 === 'string' : false) ? tmp_14 : null;
16639
- var tmp_15;
16640
- if (tmp2_safe_receiver == null) {
16641
- tmp_15 = null;
16642
- } else {
16643
- // Inline function 'kotlin.let' call
16644
- tmp_15 = tmp2_safe_receiver + (equals(item_2.p1('returnTypeIsArray'), true) ? '[]' : '') + (equals(item_2.p1('returnTypeIsOptional'), true) ? '?' : '');
16645
- }
16646
- var returnType = tmp_15;
16647
- var tmp_16 = item_2.p1('name');
16648
- var tmp3_elvis_lhs = (!(tmp_16 == null) ? typeof tmp_16 === 'string' : false) ? tmp_16 : null;
16649
- var tmp$ret$76 = method(this, tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs, params, returnType, item_2.p1('withEvents'));
16650
- destination_3.f(tmp$ret$76);
16651
- }
16652
- var members_1 = destination_3;
16653
- // Inline function 'kotlin.collections.plusAssign' call
16654
- var element_11 = classBlock(this, name_3, 'service', members_1);
16655
- classes.f(element_11);
16656
- var tmp_17 = s.p1('aggregates');
16657
- // Inline function 'kotlin.collections.orEmpty' call
16658
- var tmp0_elvis_lhs_0 = (!(tmp_17 == null) ? isInterface(tmp_17, KtList) : false) ? tmp_17 : null;
16659
- var _iterator__ex2g4s_16 = (tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0).g();
16660
- $l$loop: while (_iterator__ex2g4s_16.h()) {
16661
- var aggregate_0 = _iterator__ex2g4s_16.i();
16662
- var tmp1_elvis_lhs_0 = (!(aggregate_0 == null) ? typeof aggregate_0 === 'string' : false) ? aggregate_0 : null;
16663
- var tmp_18;
16664
- if (tmp1_elvis_lhs_0 == null) {
16665
- continue $l$loop;
16666
- } else {
16667
- tmp_18 = tmp1_elvis_lhs_0;
16668
- }
16669
- var target = tmp_18;
16670
- if (declared.n1(target)) {
16671
- // Inline function 'kotlin.collections.plusAssign' call
16672
- var element_12 = Companion_getInstance_7().d47(name_3) + ' ..> ' + Companion_getInstance_7().d47(target);
16673
- links.f(element_12);
16674
- }
16675
- }
16676
- var _iterator__ex2g4s_17 = methods.g();
16677
- while (_iterator__ex2g4s_17.h()) {
16678
- var m = _iterator__ex2g4s_17.i();
16679
- var tmp_19 = m.p1('parameter');
16680
- var tmp_20 = (!(tmp_19 == null) ? typeof tmp_19 === 'string' : false) ? tmp_19 : null;
16681
- var tmp_21 = m.p1('returnType');
16682
- var types = plus(listOfNotNull([tmp_20, (!(tmp_21 == null) ? typeof tmp_21 === 'string' : false) ? tmp_21 : null]), flattenEvents(this, m.p1('withEvents')));
16683
- var _iterator__ex2g4s_18 = types.g();
16684
- $l$loop_0: while (_iterator__ex2g4s_18.h()) {
16685
- var type_0 = _iterator__ex2g4s_18.i();
16686
- var tmp2_elvis_lhs = declared.p1(type_0);
16687
- var tmp_22;
16688
- if (tmp2_elvis_lhs == null) {
16689
- continue $l$loop_0;
16690
- } else {
16691
- tmp_22 = tmp2_elvis_lhs;
16692
- }
16693
- var kind = tmp_22;
16694
- switch (kind) {
16695
- case 'inputs':
16696
- case 'outputs':
16697
- case 'events':
16698
- // Inline function 'kotlin.collections.plusAssign' call
16699
-
16700
- var element_13 = Companion_getInstance_7().d47(name_3) + ' ..> ' + Companion_getInstance_7().d47(type_0);
16701
- links.f(element_13);
16702
- break;
16703
- }
16704
- }
16705
- }
16706
- }
16707
- var relationships = section(model, 'relationships');
16708
- // Inline function 'kotlin.collections.iterator' call
16709
- var _iterator__ex2g4s_19 = relationships.s1().g();
16710
- $l$loop_1: while (_iterator__ex2g4s_19.h()) {
16711
- var _destruct__k2r9zo_5 = _iterator__ex2g4s_19.i();
16712
- // Inline function 'kotlin.collections.component1' call
16713
- var relationshipType = _destruct__k2r9zo_5.l1();
16714
- // Inline function 'kotlin.collections.component2' call
16715
- var byName = _destruct__k2r9zo_5.m1();
16716
- var tmp_23;
16717
- switch (relationshipType) {
16718
- case 'OneToOne':
16719
- tmp_23 = to('1', '1');
16720
- break;
16721
- case 'OneToMany':
16722
- tmp_23 = to('1', '*');
16723
- break;
16724
- case 'ManyToOne':
16725
- tmp_23 = to('*', '1');
16726
- break;
16727
- case 'ManyToMany':
16728
- tmp_23 = to('*', '*');
16729
- break;
16730
- default:
16731
- continue $l$loop_1;
16732
- }
16733
- var _destruct__k2r9zo_6 = tmp_23;
16734
- var fromCardinality = _destruct__k2r9zo_6.sb();
16735
- var toCardinality = _destruct__k2r9zo_6.tb();
16736
- var _iterator__ex2g4s_20 = map(byName).r1().g();
16737
- $l$loop_3: while (_iterator__ex2g4s_20.h()) {
16738
- var relationship = _iterator__ex2g4s_20.i();
16739
- var r = map(relationship);
16740
- var tmp_24 = r.p1('from');
16741
- var tmp4_elvis_lhs = (!(tmp_24 == null) ? typeof tmp_24 === 'string' : false) ? tmp_24 : null;
16742
- var tmp_25;
16743
- if (tmp4_elvis_lhs == null) {
16744
- continue $l$loop_3;
16745
- } else {
16746
- tmp_25 = tmp4_elvis_lhs;
16747
- }
16748
- var from = tmp_25;
16749
- var tmp_26 = r.p1('to');
16750
- var tmp5_elvis_lhs = (!(tmp_26 == null) ? typeof tmp_26 === 'string' : false) ? tmp_26 : null;
16751
- var tmp_27;
16752
- if (tmp5_elvis_lhs == null) {
16753
- continue $l$loop_3;
16754
- } else {
16755
- tmp_27 = tmp5_elvis_lhs;
16756
- }
16757
- var to_0 = tmp_27;
16758
- var tmp_28 = r.p1('injectedFieldInFrom');
16759
- var fromField = (!(tmp_28 == null) ? typeof tmp_28 === 'string' : false) ? tmp_28 : null;
16760
- var tmp_29 = r.p1('injectedFieldInTo');
16761
- var toField = (!(tmp_29 == null) ? typeof tmp_29 === 'string' : false) ? tmp_29 : null;
16762
- var arrow = !(fromField == null) && toField == null ? '-->' : fromField == null && !(toField == null) ? '<--' : '--';
16763
- var tmp_30 = listOfNotNull([fromField, toField]);
16764
- var label = joinToString(tmp_30, ' / ', VOID, VOID, VOID, VOID, ZdlToMermaidClassDiagramTransformer$transform$lambda);
16765
- var suffix = isBlank(label) ? '' : ' : ' + label;
16766
- // Inline function 'kotlin.collections.plusAssign' call
16767
- var element_14 = Companion_getInstance_7().d47(from) + ' "' + fromCardinality + '" ' + arrow + ' "' + toCardinality + '" ' + Companion_getInstance_7().d47(to_0) + suffix;
16768
- links.f(element_14);
16769
- }
16770
- }
16771
- // Inline function 'kotlin.text.buildString' call
16772
- // Inline function 'kotlin.apply' call
16773
- var this_4 = StringBuilder_init_$Create$();
16774
- this_4.u6('classDiagram\n');
16775
- var _iterator__ex2g4s_21 = classes.g();
16776
- while (_iterator__ex2g4s_21.h()) {
16777
- var block = _iterator__ex2g4s_21.i();
16778
- this_4.u6(block);
16779
- }
16780
- var _iterator__ex2g4s_22 = links.g();
16781
- while (_iterator__ex2g4s_22.h()) {
16782
- var link = _iterator__ex2g4s_22.i();
16783
- this_4.u6(' ').u6(link).v6(_Char___init__impl__6a9atx(10));
16784
- }
16785
- if (classes.l() && links.l()) {
16786
- this_4.u6(' note "No types declared"\n');
16787
- }
16788
- return this_4.toString();
16789
- };
16790
- function map(_this__u8e3s4) {
16791
- var tmp0_elvis_lhs = (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtMap) : false) ? _this__u8e3s4 : null;
16792
- return tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
16793
- }
16794
- function section(_this__u8e3s4, key) {
16795
- var tmp = _this__u8e3s4.p1(key);
16796
- var tmp0_elvis_lhs = (!(tmp == null) ? isInterface(tmp, KtMap) : false) ? tmp : null;
16797
- return tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
16798
- }
16799
16170
  function problem_0($this, path, value, error) {
16800
16171
  var location = getLocation_0($this, path);
16801
16172
  var message = replace_0(error, '%s', value == null ? '' : value);
@@ -16807,28 +16178,28 @@ function getLocation_0($this, path) {
16807
16178
  }
16808
16179
  function ZflModel(delegate) {
16809
16180
  delegate = delegate === VOID ? buildMap() : delegate;
16810
- this.e47_1 = delegate;
16181
+ this.x46_1 = delegate;
16811
16182
  // Inline function 'kotlin.collections.mutableListOf' call
16812
16183
  var tmp$ret$0 = ArrayList_init_$Create$();
16813
- putEntry(this.e47_1, 'imports', tmp$ret$0);
16814
- putEntry(this.e47_1, 'config', buildMap());
16815
- putEntry(this.e47_1, 'systems', buildMap());
16816
- putEntry(this.e47_1, 'flows', buildMap());
16817
- putEntry(this.e47_1, 'locations', buildMap());
16184
+ putEntry(this.x46_1, 'imports', tmp$ret$0);
16185
+ putEntry(this.x46_1, 'config', buildMap());
16186
+ putEntry(this.x46_1, 'systems', buildMap());
16187
+ putEntry(this.x46_1, 'flows', buildMap());
16188
+ putEntry(this.x46_1, 'locations', buildMap());
16818
16189
  // Inline function 'kotlin.collections.mutableListOf' call
16819
16190
  var tmp$ret$1 = ArrayList_init_$Create$();
16820
- putEntry(this.e47_1, 'problems', tmp$ret$1);
16191
+ putEntry(this.x46_1, 'problems', tmp$ret$1);
16821
16192
  }
16822
16193
  protoOf(ZflModel).n44 = function (collection, key, value) {
16823
- appendTo(this.e47_1, collection, key, value);
16194
+ appendTo(this.x46_1, collection, key, value);
16824
16195
  return this;
16825
16196
  };
16826
16197
  protoOf(ZflModel).p44 = function (collection, value) {
16827
- appendToList(this.e47_1, collection, value);
16198
+ appendToList(this.x46_1, collection, value);
16828
16199
  return this;
16829
16200
  };
16830
16201
  protoOf(ZflModel).x44 = function () {
16831
- var tmp = this.e47_1.p1('problems');
16202
+ var tmp = this.x46_1.p1('problems');
16832
16203
  return (!(tmp == null) ? isInterface(tmp, KtMutableList) : false) ? tmp : THROW_CCE();
16833
16204
  };
16834
16205
  protoOf(ZflModel).y44 = function (location, positions) {
@@ -16839,7 +16210,7 @@ protoOf(ZflModel).y44 = function (location, positions) {
16839
16210
  protoOf(ZflModel).a45 = function (path, value, error) {
16840
16211
  try {
16841
16212
  var p = problem_0(this, path, value, error);
16842
- var tmp = this.e47_1.p1('problems');
16213
+ var tmp = this.x46_1.p1('problems');
16843
16214
  ((!(tmp == null) ? isInterface(tmp, KtMutableList) : false) ? tmp : THROW_CCE()).f(p);
16844
16215
  } catch ($p) {
16845
16216
  if ($p instanceof Exception) {
@@ -16851,32 +16222,32 @@ protoOf(ZflModel).a45 = function (path, value, error) {
16851
16222
  }
16852
16223
  };
16853
16224
  protoOf(ZflModel).b45 = function (key, value) {
16854
- return this.e47_1.t1(key, value);
16225
+ return this.x46_1.t1(key, value);
16855
16226
  };
16856
16227
  protoOf(ZflModel).t1 = function (key, value) {
16857
16228
  var tmp = (!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE();
16858
16229
  return this.b45(tmp, (value == null ? true : !(value == null)) ? value : THROW_CCE());
16859
16230
  };
16860
16231
  protoOf(ZflModel).c45 = function (from) {
16861
- this.e47_1.u1(from);
16232
+ this.x46_1.u1(from);
16862
16233
  };
16863
16234
  protoOf(ZflModel).u1 = function (from) {
16864
16235
  return this.c45(from);
16865
16236
  };
16866
16237
  protoOf(ZflModel).q1 = function () {
16867
- return this.e47_1.q1();
16238
+ return this.x46_1.q1();
16868
16239
  };
16869
16240
  protoOf(ZflModel).r1 = function () {
16870
- return this.e47_1.r1();
16241
+ return this.x46_1.r1();
16871
16242
  };
16872
16243
  protoOf(ZflModel).s1 = function () {
16873
- return this.e47_1.s1();
16244
+ return this.x46_1.s1();
16874
16245
  };
16875
16246
  protoOf(ZflModel).l = function () {
16876
- return this.e47_1.l();
16247
+ return this.x46_1.l();
16877
16248
  };
16878
16249
  protoOf(ZflModel).d45 = function (key) {
16879
- return this.e47_1.n1(key);
16250
+ return this.x46_1.n1(key);
16880
16251
  };
16881
16252
  protoOf(ZflModel).n1 = function (key) {
16882
16253
  if (!(!(key == null) ? typeof key === 'string' : false))
@@ -16884,7 +16255,7 @@ protoOf(ZflModel).n1 = function (key) {
16884
16255
  return this.d45((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
16885
16256
  };
16886
16257
  protoOf(ZflModel).u9 = function (key) {
16887
- return this.e47_1.p1(key);
16258
+ return this.x46_1.p1(key);
16888
16259
  };
16889
16260
  protoOf(ZflModel).p1 = function (key) {
16890
16261
  if (!(!(key == null) ? typeof key === 'string' : false))
@@ -16892,20 +16263,20 @@ protoOf(ZflModel).p1 = function (key) {
16892
16263
  return this.u9((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
16893
16264
  };
16894
16265
  protoOf(ZflModel).j = function () {
16895
- return this.e47_1.j();
16266
+ return this.x46_1.j();
16896
16267
  };
16897
16268
  function ZflParseResult(tree, tokens, syntaxProblems) {
16898
- this.f47_1 = tree;
16899
- this.g47_1 = tokens;
16900
- this.h47_1 = syntaxProblems;
16269
+ this.y46_1 = tree;
16270
+ this.z46_1 = tokens;
16271
+ this.a47_1 = syntaxProblems;
16901
16272
  }
16902
16273
  protoOf(ZflParseResult).toString = function () {
16903
- return 'ZflParseResult(tree=' + this.f47_1.toString() + ', tokens=' + toString_0(this.g47_1) + ', syntaxProblems=' + toString_0(this.h47_1) + ')';
16274
+ return 'ZflParseResult(tree=' + this.y46_1.toString() + ', tokens=' + toString_0(this.z46_1) + ', syntaxProblems=' + toString_0(this.a47_1) + ')';
16904
16275
  };
16905
16276
  protoOf(ZflParseResult).hashCode = function () {
16906
- var result = hashCode(this.f47_1);
16907
- result = imul(result, 31) + hashCode(this.g47_1) | 0;
16908
- result = imul(result, 31) + hashCode(this.h47_1) | 0;
16277
+ var result = hashCode(this.y46_1);
16278
+ result = imul(result, 31) + hashCode(this.z46_1) | 0;
16279
+ result = imul(result, 31) + hashCode(this.a47_1) | 0;
16909
16280
  return result;
16910
16281
  };
16911
16282
  protoOf(ZflParseResult).equals = function (other) {
@@ -16913,20 +16284,20 @@ protoOf(ZflParseResult).equals = function (other) {
16913
16284
  return true;
16914
16285
  if (!(other instanceof ZflParseResult))
16915
16286
  return false;
16916
- if (!equals(this.f47_1, other.f47_1))
16287
+ if (!equals(this.y46_1, other.y46_1))
16917
16288
  return false;
16918
- if (!equals(this.g47_1, other.g47_1))
16289
+ if (!equals(this.z46_1, other.z46_1))
16919
16290
  return false;
16920
- if (!equals(this.h47_1, other.h47_1))
16291
+ if (!equals(this.a47_1, other.a47_1))
16921
16292
  return false;
16922
16293
  return true;
16923
16294
  };
16924
16295
  function ZflParser$parse$1($syntaxProblems) {
16925
- this.i47_1 = $syntaxProblems;
16296
+ this.b47_1 = $syntaxProblems;
16926
16297
  BaseErrorListener.call(this);
16927
16298
  }
16928
16299
  protoOf(ZflParser$parse$1).vf = function (recognizer, offendingSymbol, line, charPositionInLine, msg, e) {
16929
- var tmp0 = this.i47_1;
16300
+ var tmp0 = this.b47_1;
16930
16301
  var tmp = to('path', 'syntax');
16931
16302
  // Inline function 'kotlin.intArrayOf' call
16932
16303
  var tmp$ret$0 = new Int32Array([0, 0, line, charPositionInLine, line, charPositionInLine]);
@@ -16948,17 +16319,17 @@ protoOf(ZflParser_0).m45 = function (input) {
16948
16319
  var zflRoot = parser.j43();
16949
16320
  return new ZflParseResult(zflRoot, tokens, syntaxProblems);
16950
16321
  };
16951
- protoOf(ZflParser_0).j47 = function (model, sourceName) {
16322
+ protoOf(ZflParser_0).c47 = function (model, sourceName) {
16952
16323
  var parseResult = this.m45(model);
16953
16324
  var listener = new ZflListenerImpl();
16954
16325
  // Inline function 'kotlin.collections.set' call
16955
- listener.k47_1.t1('source', sourceName);
16326
+ listener.d47_1.t1('source', sourceName);
16956
16327
  try {
16957
- Companion_getInstance_0().o1e_1.p1e(listener, parseResult.f47_1);
16328
+ Companion_getInstance_0().o1e_1.p1e(listener, parseResult.y46_1);
16958
16329
  } catch ($p) {
16959
16330
  if ($p instanceof Exception) {
16960
16331
  var e = $p;
16961
- var tmp = listener.k47_1.x44();
16332
+ var tmp = listener.d47_1.x44();
16962
16333
  var tmp_0 = to('path', 'parser');
16963
16334
  // Inline function 'kotlin.intArrayOf' call
16964
16335
  var tmp$ret$1 = new Int32Array([0, 0, 1, 0, 1, 0]);
@@ -16971,16 +16342,16 @@ protoOf(ZflParser_0).j47 = function (model, sourceName) {
16971
16342
  }
16972
16343
  }
16973
16344
  // Inline function 'kotlin.collections.forEach' call
16974
- var _iterator__ex2g4s = parseResult.h47_1.g();
16345
+ var _iterator__ex2g4s = parseResult.a47_1.g();
16975
16346
  while (_iterator__ex2g4s.h()) {
16976
16347
  var element = _iterator__ex2g4s.i();
16977
- listener.k47_1.x44().f(toMutableMap(element));
16348
+ listener.d47_1.x44().f(toMutableMap(element));
16978
16349
  }
16979
- return listener.k47_1;
16350
+ return listener.d47_1;
16980
16351
  };
16981
- protoOf(ZflParser_0).m47 = function (model, sourceName, $super) {
16352
+ protoOf(ZflParser_0).f47 = function (model, sourceName, $super) {
16982
16353
  sourceName = sourceName === VOID ? '<zfl>' : sourceName;
16983
- return $super === VOID ? this.j47(model, sourceName) : $super.j47.call(this, model, sourceName);
16354
+ return $super === VOID ? this.c47(model, sourceName) : $super.c47.call(this, model, sourceName);
16984
16355
  };
16985
16356
  function getOptions($this, ctx) {
16986
16357
  var options = buildMap();
@@ -16993,7 +16364,7 @@ function getOptions($this, ctx) {
16993
16364
  while (_iterator__ex2g4s.h()) {
16994
16365
  var element = _iterator__ex2g4s.i();
16995
16366
  var name = replace_0(element.v2b().bh(), '@', '');
16996
- var value = ZflListenerUtils_getInstance().o47(element.w2b());
16367
+ var value = ZflListenerUtils_getInstance().h47(element.w2b());
16997
16368
  // Inline function 'kotlin.collections.set' call
16998
16369
  options.t1(name, value);
16999
16370
  }
@@ -17003,7 +16374,7 @@ function getOptions($this, ctx) {
17003
16374
  function getOutcomeEvents($this, ctx) {
17004
16375
  if (ctx == null)
17005
16376
  return null;
17006
- return ZflListenerUtils_getInstance().r46(ctx, ',');
16377
+ return ZflListenerUtils_getInstance().n46(ctx, ',');
17007
16378
  }
17008
16379
  function getOrCreateAction($this, flow, actionName, jd) {
17009
16380
  // Inline function 'kotlin.collections.getOrPut' call
@@ -17030,7 +16401,7 @@ function getOrCreateAction($this, flow, actionName, jd) {
17030
16401
  }
17031
16402
  var tmp_2 = with_0(buildMap(), 'name', actionName);
17032
16403
  var tmp_3 = ZflListenerUtils_getInstance();
17033
- var tmp_4 = with_0(with_0(with_0(tmp_2, 'className', tmp_3.e46(actionName == null ? '' : actionName)), 'javadoc', jd), 'options', buildMap());
16404
+ var tmp_4 = with_0(with_0(with_0(tmp_2, 'className', tmp_3.a46(actionName == null ? '' : actionName)), 'javadoc', jd), 'options', buildMap());
17034
16405
  // Inline function 'kotlin.collections.mutableListOf' call
17035
16406
  var tmp$ret$4 = ArrayList_init_$Create$();
17036
16407
  var tmp_5 = with_0(tmp_4, 'steps', tmp$ret$4);
@@ -17129,7 +16500,7 @@ function createOccurrence($this, flow, actionName, description, triggers, option
17129
16500
  var tmp$ret$9 = ArrayList_init_$Create$();
17130
16501
  var occurrence = with_0(tmp_8, 'responseDetails', tmp$ret$9);
17131
16502
  occurrences.f(occurrence);
17132
- $this.k47_1.y44(locationPath, locations);
16503
+ $this.d47_1.y44(locationPath, locations);
17133
16504
  return occurrence;
17134
16505
  }
17135
16506
  function mergeOccurrence($this, action, occurrence) {
@@ -17175,7 +16546,7 @@ function appendStep($this, action, step) {
17175
16546
  }
17176
16547
  function registerCommand($this, systemName, serviceName, commandName) {
17177
16548
  // Inline function 'kotlin.collections.getOrPut' call
17178
- var this_0 = $this.k47_1;
16549
+ var this_0 = $this.d47_1;
17179
16550
  var value = this_0.p1('systems');
17180
16551
  var tmp;
17181
16552
  if (value == null) {
@@ -17245,133 +16616,133 @@ function registerCommand($this, systemName, serviceName, commandName) {
17245
16616
  (isInterface(tmp_9, MutableCollection) ? tmp_9 : THROW_CCE()).f(commandName);
17246
16617
  }
17247
16618
  function ZflListenerImpl$enterFlow_when$$inlined$groupingBy$1($this) {
17248
- this.p47_1 = $this;
16619
+ this.i47_1 = $this;
17249
16620
  }
17250
16621
  protoOf(ZflListenerImpl$enterFlow_when$$inlined$groupingBy$1).t2 = function () {
17251
- return this.p47_1.g();
16622
+ return this.i47_1.g();
17252
16623
  };
17253
- protoOf(ZflListenerImpl$enterFlow_when$$inlined$groupingBy$1).q47 = function (element) {
16624
+ protoOf(ZflListenerImpl$enterFlow_when$$inlined$groupingBy$1).j47 = function (element) {
17254
16625
  return element;
17255
16626
  };
17256
16627
  protoOf(ZflListenerImpl$enterFlow_when$$inlined$groupingBy$1).u2 = function (element) {
17257
- return this.q47((element == null ? true : !(element == null)) ? element : THROW_CCE());
16628
+ return this.j47((element == null ? true : !(element == null)) ? element : THROW_CCE());
17258
16629
  };
17259
16630
  function ZflListenerImpl() {
17260
16631
  ZflBaseListener.call(this);
17261
- this.k47_1 = new ZflModel();
17262
- this.l47_1 = ArrayDeque_init_$Create$();
16632
+ this.d47_1 = new ZflModel();
16633
+ this.e47_1 = ArrayDeque_init_$Create$();
17263
16634
  }
17264
16635
  protoOf(ZflListenerImpl).q35 = function (ctx) {
17265
16636
  };
17266
16637
  protoOf(ZflListenerImpl).y35 = function (ctx) {
17267
- this.k47_1.b45('javadoc', ZflListenerUtils_getInstance().o46(ctx));
16638
+ this.d47_1.b45('javadoc', ZflListenerUtils_getInstance().k46(ctx));
17268
16639
  };
17269
16640
  protoOf(ZflListenerImpl).s35 = function (ctx) {
17270
- var tmp = with_0(buildMap(), 'key', ZflListenerUtils_getInstance().l46(ctx.x1q()));
16641
+ var tmp = with_0(buildMap(), 'key', ZflListenerUtils_getInstance().h46(ctx.x1q()));
17271
16642
  var tmp_0 = ZflListenerUtils_getInstance();
17272
16643
  var tmp0_safe_receiver = ctx.w1q();
17273
- this.k47_1.p44('imports', with_0(tmp, 'value', tmp_0.r47(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1r())));
16644
+ this.d47_1.p44('imports', with_0(tmp, 'value', tmp_0.k47(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1r())));
17274
16645
  };
17275
16646
  protoOf(ZflListenerImpl).k37 = function (ctx) {
17276
16647
  var name = ctx.h1z().bh();
17277
- var value = ZflListenerUtils_getInstance().s47(ctx.i1z());
17278
- this.k47_1.n44('config', name, value);
16648
+ var value = ZflListenerUtils_getInstance().l47(ctx.i1z());
16649
+ this.d47_1.n44('config', name, value);
17279
16650
  };
17280
16651
  protoOf(ZflListenerImpl).o38 = function (ctx) {
17281
- var name = ZflListenerUtils_getInstance().l46(ctx.m3r());
17282
- var jd = ZflListenerUtils_getInstance().o46(ctx.z20());
17283
- var tmp = with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'className', ZflListenerUtils_getInstance().e46(ensureNotNull(name))), 'javadoc', jd), 'options', buildMap()), 'systems', buildMap()), 'starts', buildMap()), 'actions', buildMap());
16652
+ var name = ZflListenerUtils_getInstance().h46(ctx.m3r());
16653
+ var jd = ZflListenerUtils_getInstance().k46(ctx.z20());
16654
+ var tmp = with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'className', ZflListenerUtils_getInstance().a46(ensureNotNull(name))), 'javadoc', jd), 'options', buildMap()), 'systems', buildMap()), 'starts', buildMap()), 'actions', buildMap());
17284
16655
  // Inline function 'kotlin.collections.mutableListOf' call
17285
16656
  var tmp$ret$0 = ArrayList_init_$Create$();
17286
- this.l47_1.gb(with_0(with_0(tmp, 'whens', tmp$ret$0), 'end', buildMap()));
17287
- this.k47_1.n44('flows', name, this.l47_1.db());
16657
+ this.e47_1.gb(with_0(with_0(tmp, 'whens', tmp$ret$0), 'end', buildMap()));
16658
+ this.d47_1.n44('flows', name, this.e47_1.db());
17288
16659
  var flowLocation = 'flows.' + name;
17289
- this.k47_1.y44(flowLocation, ZflListenerUtils_getInstance().k46(ctx));
17290
- this.k47_1.y44(flowLocation + '.name', ZflListenerUtils_getInstance().k46(ctx.m3r()));
16660
+ this.d47_1.y44(flowLocation, ZflListenerUtils_getInstance().g46(ctx));
16661
+ this.d47_1.y44(flowLocation + '.name', ZflListenerUtils_getInstance().g46(ctx.m3r()));
17291
16662
  };
17292
16663
  protoOf(ZflListenerImpl).p38 = function (ctx) {
17293
- this.l47_1.ib();
16664
+ this.e47_1.ib();
17294
16665
  };
17295
16666
  protoOf(ZflListenerImpl).o37 = function (ctx) {
17296
16667
  var name = replace_0(ctx.v2b().bh(), '@', '');
17297
- var value = ZflListenerUtils_getInstance().o47(ctx.w2b());
16668
+ var value = ZflListenerUtils_getInstance().h47(ctx.w2b());
17298
16669
  // Inline function 'kotlin.collections.isNotEmpty' call
17299
- if (!this.l47_1.l()) {
17300
- appendTo(this.l47_1.db(), 'options', name, value);
17301
- appendToList(this.l47_1.db(), 'optionsList', with_0(with_0(buildMap(), 'name', name), 'value', value));
16670
+ if (!this.e47_1.l()) {
16671
+ appendTo(this.e47_1.db(), 'options', name, value);
16672
+ appendToList(this.e47_1.db(), 'optionsList', with_0(with_0(buildMap(), 'name', name), 'value', value));
17302
16673
  }
17303
16674
  };
17304
16675
  protoOf(ZflListenerImpl).u37 = function (ctx) {
17305
- this.k47_1.y44('systems', ZflListenerUtils_getInstance().k46(ctx));
16676
+ this.d47_1.y44('systems', ZflListenerUtils_getInstance().g46(ctx));
17306
16677
  };
17307
16678
  protoOf(ZflListenerImpl).w37 = function (ctx) {
17308
- var name = ZflListenerUtils_getInstance().l46(ctx.w3n());
17309
- var jd = ZflListenerUtils_getInstance().o46(ctx.z20());
16679
+ var name = ZflListenerUtils_getInstance().h46(ctx.w3n());
16680
+ var jd = ZflListenerUtils_getInstance().k46(ctx.z20());
17310
16681
  var tmp = with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'javadoc', jd), 'options', buildMap()), 'zdl', null), 'services', buildMap());
17311
16682
  // Inline function 'kotlin.collections.mutableListOf' call
17312
16683
  var tmp$ret$0 = ArrayList_init_$Create$();
17313
- this.l47_1.gb(with_0(tmp, 'events', tmp$ret$0));
17314
- this.k47_1.y44('systems.' + name, ZflListenerUtils_getInstance().k46(ctx));
17315
- this.k47_1.y44('systems.' + name + '.name', ZflListenerUtils_getInstance().k46(ctx.w3n()));
17316
- var tmp_0 = this.k47_1.u9('systems');
16684
+ this.e47_1.gb(with_0(tmp, 'events', tmp$ret$0));
16685
+ this.d47_1.y44('systems.' + name, ZflListenerUtils_getInstance().g46(ctx));
16686
+ this.d47_1.y44('systems.' + name + '.name', ZflListenerUtils_getInstance().g46(ctx.w3n()));
16687
+ var tmp_0 = this.d47_1.u9('systems');
17317
16688
  var tmp0 = (!(tmp_0 == null) ? isInterface(tmp_0, KtMutableMap) : false) ? tmp_0 : THROW_CCE();
17318
16689
  var tmp2 = ensureNotNull(name);
17319
16690
  // Inline function 'kotlin.collections.set' call
17320
- var value = this.l47_1.db();
16691
+ var value = this.e47_1.db();
17321
16692
  tmp0.t1(tmp2, value);
17322
16693
  };
17323
16694
  protoOf(ZflListenerImpl).x37 = function (ctx) {
17324
- this.l47_1.ib();
16695
+ this.e47_1.ib();
17325
16696
  };
17326
16697
  protoOf(ZflListenerImpl).e38 = function (ctx) {
17327
- var serviceName = !(ctx.l3p() == null) ? ZflListenerUtils_getInstance().l46(ctx.l3p()) : 'DefaultService';
17328
- var tmp = with_0(with_0(with_0(buildMap(), 'name', serviceName), 'options', buildMap()), 'aggregates', ZflListenerUtils_getInstance().r46(ctx.m3p(), ','));
16698
+ var serviceName = !(ctx.l3p() == null) ? ZflListenerUtils_getInstance().h46(ctx.l3p()) : 'DefaultService';
16699
+ var tmp = with_0(with_0(with_0(buildMap(), 'name', serviceName), 'options', buildMap()), 'aggregates', ZflListenerUtils_getInstance().n46(ctx.m3p(), ','));
17329
16700
  // Inline function 'kotlin.collections.mutableSetOf' call
17330
16701
  var tmp$ret$0 = LinkedHashSet_init_$Create$();
17331
16702
  var service = with_0(tmp, 'commands', tmp$ret$0);
17332
- this.l47_1.gb(service);
17333
- var system = this.l47_1.k(this.l47_1.ab_1 - 2 | 0);
16703
+ this.e47_1.gb(service);
16704
+ var system = this.e47_1.k(this.e47_1.ab_1 - 2 | 0);
17334
16705
  var tmp_0 = system.p1('services');
17335
16706
  var tmp0 = (!(tmp_0 == null) ? isInterface(tmp_0, KtMutableMap) : false) ? tmp_0 : THROW_CCE();
17336
16707
  // Inline function 'kotlin.collections.set' call
17337
16708
  var key = ensureNotNull(serviceName);
17338
16709
  tmp0.t1(key, service);
17339
16710
  var systemName = system.p1('name');
17340
- this.k47_1.y44('systems.' + toString_1(systemName) + '.services.' + serviceName, ZflListenerUtils_getInstance().k46(ctx));
17341
- this.k47_1.y44('systems.' + toString_1(systemName) + '.services.' + serviceName + '.name', ZflListenerUtils_getInstance().k46(ctx.l3p()));
16711
+ this.d47_1.y44('systems.' + toString_1(systemName) + '.services.' + serviceName, ZflListenerUtils_getInstance().g46(ctx));
16712
+ this.d47_1.y44('systems.' + toString_1(systemName) + '.services.' + serviceName + '.name', ZflListenerUtils_getInstance().g46(ctx.l3p()));
17342
16713
  };
17343
16714
  protoOf(ZflListenerImpl).f38 = function (ctx) {
17344
- this.l47_1.ib();
16715
+ this.e47_1.ib();
17345
16716
  };
17346
16717
  protoOf(ZflListenerImpl).k38 = function (ctx) {
17347
- var commands = ZflListenerUtils_getInstance().r46(ctx.r3q(), ',');
17348
- var tmp0 = this.l47_1.db();
16718
+ var commands = ZflListenerUtils_getInstance().n46(ctx.r3q(), ',');
16719
+ var tmp0 = this.e47_1.db();
17349
16720
  // Inline function 'kotlin.collections.set' call
17350
16721
  var key = 'commands';
17351
16722
  tmp0.t1(key, commands);
17352
16723
  };
17353
16724
  protoOf(ZflListenerImpl).u38 = function (ctx) {
17354
- var name = ZflListenerUtils_getInstance().l46(ctx.r3s());
17355
- var jd = ZflListenerUtils_getInstance().o46(ctx.z20());
17356
- var start = with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'className', ZflListenerUtils_getInstance().e46(ensureNotNull(name))), 'javadoc', jd), 'options', buildMap()), 'fields', buildMap());
17357
- this.l47_1.gb(start);
17358
- var flow = this.l47_1.k(this.l47_1.ab_1 - 2 | 0);
16725
+ var name = ZflListenerUtils_getInstance().h46(ctx.r3s());
16726
+ var jd = ZflListenerUtils_getInstance().k46(ctx.z20());
16727
+ var start = with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'className', ZflListenerUtils_getInstance().a46(ensureNotNull(name))), 'javadoc', jd), 'options', buildMap()), 'fields', buildMap());
16728
+ this.e47_1.gb(start);
16729
+ var flow = this.e47_1.k(this.e47_1.ab_1 - 2 | 0);
17359
16730
  var tmp = flow.p1('starts');
17360
16731
  // Inline function 'kotlin.collections.set' call
17361
16732
  ((!(tmp == null) ? isInterface(tmp, KtMutableMap) : false) ? tmp : THROW_CCE()).t1(name, start);
17362
- this.k47_1.y44('starts.' + name, ZflListenerUtils_getInstance().k46(ctx));
17363
- this.k47_1.y44('starts.' + name + '.name', ZflListenerUtils_getInstance().k46(ctx.r3s()));
16733
+ this.d47_1.y44('starts.' + name, ZflListenerUtils_getInstance().g46(ctx));
16734
+ this.d47_1.y44('starts.' + name + '.name', ZflListenerUtils_getInstance().g46(ctx.r3s()));
17364
16735
  };
17365
16736
  protoOf(ZflListenerImpl).v38 = function (ctx) {
17366
- this.l47_1.ib();
16737
+ this.e47_1.ib();
17367
16738
  };
17368
16739
  protoOf(ZflListenerImpl).a37 = function (ctx) {
17369
- var name = ZflListenerUtils_getInstance().l46(ctx.h1z());
16740
+ var name = ZflListenerUtils_getInstance().h46(ctx.h1z());
17370
16741
  var type = !(ctx.n2f() == null) && !(ctx.n2f().w2g() == null) ? ensureNotNull(ctx.n2f().w2g()).bh() : null;
17371
16742
  var isArray = !(ctx.n2f().x2g() == null);
17372
- var jd = ZflListenerUtils_getInstance().o46(ZflListenerUtils_getInstance().m46([ctx.z20(), ctx.q2f()]));
16743
+ var jd = ZflListenerUtils_getInstance().k46(ZflListenerUtils_getInstance().i46([ctx.z20(), ctx.q2f()]));
17373
16744
  var field = with_0(with_0(with_0(with_0(with_0(buildMap(), 'name', name), 'type', type), 'isArray', isArray), 'javadoc', jd), 'options', buildMap());
17374
- appendTo(this.l47_1.db(), 'fields', ensureNotNull(name), field);
16745
+ appendTo(this.e47_1.db(), 'fields', ensureNotNull(name), field);
17375
16746
  };
17376
16747
  protoOf(ZflListenerImpl).y38 = function (ctx) {
17377
16748
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -17403,7 +16774,7 @@ protoOf(ZflListenerImpl).y38 = function (ctx) {
17403
16774
  triggerSeparator = groupSeparator;
17404
16775
  }
17405
16776
  triggerGroups.f(with_0(with_0(with_0(with_0(buildMap(), 'events', events), 'separator', groupSeparator), 'hasMixedSeparators', hasMixedSeparators), 'hasTrailingSeparator', hasTrailingSeparator));
17406
- collectedTriggers.q(events);
16777
+ collectedTriggers.p(events);
17407
16778
  }
17408
16779
  // Inline function 'kotlin.collections.groupingBy' call
17409
16780
  var tmp$ret$5 = new ZflListenerImpl$enterFlow_when$$inlined$groupingBy$1(collectedTriggers);
@@ -17420,73 +16791,73 @@ protoOf(ZflListenerImpl).y38 = function (ctx) {
17420
16791
  }
17421
16792
  var duplicateTriggers = result.q1();
17422
16793
  var triggers = distinct(collectedTriggers);
17423
- var actionName = ZflListenerUtils_getInstance().l46(ctx.n3t());
17424
- var flow = this.l47_1.db();
16794
+ var actionName = ZflListenerUtils_getInstance().h46(ctx.n3t());
16795
+ var flow = this.e47_1.db();
17425
16796
  var tmp = flow.p1('name');
17426
16797
  var flowName = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
17427
- var occurrence = createOccurrence(this, flow, actionName, ZflListenerUtils_getInstance().o46(ctx.z20()), triggers, getOptions(this, ctx.t2q()), false, ZflListenerUtils_getInstance().k46(ctx));
17428
- var whenBlock = with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'triggers', triggers), 'triggerGroups', triggerGroups), 'triggerSeparator', triggerSeparator), 'action', actionName), 'javadoc', ZflListenerUtils_getInstance().o46(ctx.z20())), 'options', getOptions(this, ctx.t2q())), 'occurrence', occurrence);
17429
- this.l47_1.gb(whenBlock);
16798
+ var occurrence = createOccurrence(this, flow, actionName, ZflListenerUtils_getInstance().k46(ctx.z20()), triggers, getOptions(this, ctx.t2q()), false, ZflListenerUtils_getInstance().g46(ctx));
16799
+ var whenBlock = with_0(with_0(with_0(with_0(with_0(with_0(with_0(buildMap(), 'triggers', triggers), 'triggerGroups', triggerGroups), 'triggerSeparator', triggerSeparator), 'action', actionName), 'javadoc', ZflListenerUtils_getInstance().k46(ctx.z20())), 'options', getOptions(this, ctx.t2q())), 'occurrence', occurrence);
16800
+ this.e47_1.gb(whenBlock);
17430
16801
  var tmp_0 = flow.p1('whens');
17431
16802
  var whens = (!(tmp_0 == null) ? isInterface(tmp_0, KtMutableList) : false) ? tmp_0 : THROW_CCE();
17432
16803
  whens.f(whenBlock);
17433
- this.k47_1.y44('flows.' + flowName + '.whens[' + (whens.j() - 1 | 0) + ']', ZflListenerUtils_getInstance().k46(ctx));
17434
- this.k47_1.y44('flows.' + flowName + '.whens[' + (whens.j() - 1 | 0) + '].triggers', ZflListenerUtils_getInstance().k46(ctx.m3t()));
16804
+ this.d47_1.y44('flows.' + flowName + '.whens[' + (whens.j() - 1 | 0) + ']', ZflListenerUtils_getInstance().g46(ctx));
16805
+ this.d47_1.y44('flows.' + flowName + '.whens[' + (whens.j() - 1 | 0) + '].triggers', ZflListenerUtils_getInstance().g46(ctx.m3t()));
17435
16806
  var triggerPath = 'flows.' + flowName + '.whens[' + (whens.j() - 1 | 0) + '].triggers';
17436
16807
  // Inline function 'kotlin.collections.forEach' call
17437
16808
  var _iterator__ex2g4s_2 = triggerGroups.g();
17438
16809
  while (_iterator__ex2g4s_2.h()) {
17439
16810
  var element = _iterator__ex2g4s_2.i();
17440
16811
  if (equals(element.p1('hasMixedSeparators'), true)) {
17441
- this.k47_1.a45(triggerPath, null, 'Mixed separators are not allowed in when triggers');
16812
+ this.d47_1.a45(triggerPath, null, 'Mixed separators are not allowed in when triggers');
17442
16813
  }
17443
16814
  if (equals(element.p1('hasTrailingSeparator'), true)) {
17444
- this.k47_1.a45(triggerPath, null, 'Trailing separators are not allowed in when triggers');
16815
+ this.d47_1.a45(triggerPath, null, 'Trailing separators are not allowed in when triggers');
17445
16816
  }
17446
16817
  }
17447
16818
  // Inline function 'kotlin.collections.forEach' call
17448
16819
  var _iterator__ex2g4s_3 = duplicateTriggers.g();
17449
16820
  while (_iterator__ex2g4s_3.h()) {
17450
16821
  var element_0 = _iterator__ex2g4s_3.i();
17451
- this.k47_1.a45(triggerPath, element_0, "Duplicate trigger event '%s' in when clause");
16822
+ this.d47_1.a45(triggerPath, element_0, "Duplicate trigger event '%s' in when clause");
17452
16823
  }
17453
16824
  };
17454
16825
  protoOf(ZflListenerImpl).z38 = function (ctx) {
17455
- this.l47_1.ib();
16826
+ this.e47_1.ib();
17456
16827
  };
17457
16828
  protoOf(ZflListenerImpl).i39 = function (ctx) {
17458
- var flow = this.l47_1.db();
17459
- var actionName = ZflListenerUtils_getInstance().l46(ctx.n3t());
17460
- this.l47_1.gb(createOccurrence(this, flow, actionName, ZflListenerUtils_getInstance().o46(ctx.z20()), emptyList(), getOptions(this, ctx.t2q()), true, ZflListenerUtils_getInstance().k46(ctx)));
16829
+ var flow = this.e47_1.db();
16830
+ var actionName = ZflListenerUtils_getInstance().h46(ctx.n3t());
16831
+ this.e47_1.gb(createOccurrence(this, flow, actionName, ZflListenerUtils_getInstance().k46(ctx.z20()), emptyList(), getOptions(this, ctx.t2q()), true, ZflListenerUtils_getInstance().g46(ctx)));
17461
16832
  };
17462
16833
  protoOf(ZflListenerImpl).j39 = function (ctx) {
17463
- var occurrence = this.l47_1.db();
17464
- var flow = this.l47_1.k(this.l47_1.ab_1 - 2 | 0);
16834
+ var occurrence = this.e47_1.db();
16835
+ var flow = this.e47_1.k(this.e47_1.ab_1 - 2 | 0);
17465
16836
  var tmp = occurrence.p1('name');
17466
16837
  mergeOccurrence(this, getOrCreateAction(this, flow, (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null, null), occurrence);
17467
- this.l47_1.ib();
16838
+ this.e47_1.ib();
17468
16839
  };
17469
16840
  protoOf(ZflListenerImpl).k39 = function (ctx) {
17470
- var current = this.l47_1.eb();
16841
+ var current = this.e47_1.eb();
17471
16842
  if (!(current == null) && current.n1('triggers') && current.n1('action')) {
17472
16843
  var tmp = current.p1('occurrence');
17473
- this.l47_1.gb((!(tmp == null) ? isInterface(tmp, KtMutableMap) : false) ? tmp : THROW_CCE());
16844
+ this.e47_1.gb((!(tmp == null) ? isInterface(tmp, KtMutableMap) : false) ? tmp : THROW_CCE());
17474
16845
  }
17475
16846
  };
17476
16847
  protoOf(ZflListenerImpl).l39 = function (ctx) {
17477
- var current = this.l47_1.eb();
17478
- if (!(current == null) && current.n1('steps') && this.l47_1.ab_1 >= 2) {
17479
- var maybeWhen = this.l47_1.k(this.l47_1.ab_1 - 2 | 0);
16848
+ var current = this.e47_1.eb();
16849
+ if (!(current == null) && current.n1('steps') && this.e47_1.ab_1 >= 2) {
16850
+ var maybeWhen = this.e47_1.k(this.e47_1.ab_1 - 2 | 0);
17480
16851
  if (maybeWhen.n1('triggers') && maybeWhen.n1('action')) {
17481
- var flow = this.l47_1.k(this.l47_1.ab_1 - 3 | 0);
16852
+ var flow = this.e47_1.k(this.e47_1.ab_1 - 3 | 0);
17482
16853
  var tmp = current.p1('name');
17483
16854
  mergeOccurrence(this, getOrCreateAction(this, flow, (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null, null), current);
17484
- this.l47_1.ib();
16855
+ this.e47_1.ib();
17485
16856
  }
17486
16857
  }
17487
16858
  };
17488
16859
  protoOf(ZflListenerImpl).o39 = function (ctx) {
17489
- var action = this.l47_1.db();
16860
+ var action = this.e47_1.db();
17490
16861
  // Inline function 'kotlin.collections.mapNotNull' call
17491
16862
  var tmp0 = ctx.u3w().k3z();
17492
16863
  // Inline function 'kotlin.collections.mapNotNullTo' call
@@ -17495,7 +16866,7 @@ protoOf(ZflListenerImpl).o39 = function (ctx) {
17495
16866
  var _iterator__ex2g4s = tmp0.g();
17496
16867
  while (_iterator__ex2g4s.h()) {
17497
16868
  var element = _iterator__ex2g4s.i();
17498
- var tmp0_safe_receiver = ZflListenerUtils_getInstance().l46(element);
16869
+ var tmp0_safe_receiver = ZflListenerUtils_getInstance().h46(element);
17499
16870
  if (tmp0_safe_receiver == null)
17500
16871
  null;
17501
16872
  else {
@@ -17527,16 +16898,16 @@ protoOf(ZflListenerImpl).o39 = function (ctx) {
17527
16898
  registerCommand(this, systemName, tmp, (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null);
17528
16899
  };
17529
16900
  protoOf(ZflListenerImpl).q39 = function (ctx) {
17530
- appendStep(this, this.l47_1.db(), with_0(with_0(with_0(buildMap(), 'type', 'call'), 'async', !(ctx.f3x() == null)), 'action', ZflListenerUtils_getInstance().l46(ctx.n3t())));
16901
+ appendStep(this, this.e47_1.db(), with_0(with_0(with_0(buildMap(), 'type', 'call'), 'async', !(ctx.f3x() == null)), 'action', ZflListenerUtils_getInstance().h46(ctx.n3t())));
17531
16902
  };
17532
16903
  protoOf(ZflListenerImpl).s39 = function (ctx) {
17533
- var endOutcome = ZflListenerUtils_getInstance().l46(ctx.q3x());
16904
+ var endOutcome = ZflListenerUtils_getInstance().h46(ctx.q3x());
17534
16905
  var step = with_0(with_0(buildMap(), 'type', 'on'), 'endOutcome', endOutcome);
17535
16906
  if (!(ctx.r3x() == null)) {
17536
16907
  // Inline function 'kotlin.collections.set' call
17537
16908
  step.t1('kind', 'call');
17538
16909
  // Inline function 'kotlin.collections.set' call
17539
- var value = ZflListenerUtils_getInstance().l46(ctx.n3t());
16910
+ var value = ZflListenerUtils_getInstance().h46(ctx.n3t());
17540
16911
  step.t1('action', value);
17541
16912
  } else if (!(ctx.s3x() == null)) {
17542
16913
  var options = getOptions(this, ctx.t2q());
@@ -17556,7 +16927,7 @@ protoOf(ZflListenerImpl).s39 = function (ctx) {
17556
16927
  var _iterator__ex2g4s = tmp0.g();
17557
16928
  while (_iterator__ex2g4s.h()) {
17558
16929
  var element = _iterator__ex2g4s.i();
17559
- var tmp0_safe_receiver = ZflListenerUtils_getInstance().l46(element);
16930
+ var tmp0_safe_receiver = ZflListenerUtils_getInstance().h46(element);
17560
16931
  if (tmp0_safe_receiver == null)
17561
16932
  null;
17562
16933
  else {
@@ -17590,10 +16961,10 @@ protoOf(ZflListenerImpl).s39 = function (ctx) {
17590
16961
  var value_2 = tmp_1;
17591
16962
  step.t1('outcome', value_2);
17592
16963
  }
17593
- appendStep(this, this.l47_1.db(), step);
16964
+ appendStep(this, this.e47_1.db(), step);
17594
16965
  };
17595
16966
  protoOf(ZflListenerImpl).u39 = function (ctx) {
17596
- var action = this.l47_1.db();
16967
+ var action = this.e47_1.db();
17597
16968
  var options = getOptions(this, ctx.t2q());
17598
16969
  var tmp = options.p1('outcome');
17599
16970
  var outcome = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
@@ -17606,7 +16977,7 @@ protoOf(ZflListenerImpl).u39 = function (ctx) {
17606
16977
  var _iterator__ex2g4s = tmp0.g();
17607
16978
  while (_iterator__ex2g4s.h()) {
17608
16979
  var element = _iterator__ex2g4s.i();
17609
- var tmp0_safe_receiver = ZflListenerUtils_getInstance().l46(element);
16980
+ var tmp0_safe_receiver = ZflListenerUtils_getInstance().h46(element);
17610
16981
  if (tmp0_safe_receiver == null)
17611
16982
  null;
17612
16983
  else {
@@ -17639,15 +17010,15 @@ protoOf(ZflListenerImpl).u39 = function (ctx) {
17639
17010
  }
17640
17011
  };
17641
17012
  protoOf(ZflListenerImpl).g3a = function (ctx) {
17642
- var end = with_0(with_0(buildMap(), 'endOutcomes', buildMap()), 'javadoc', ZflListenerUtils_getInstance().o46(ctx.z20()));
17643
- this.l47_1.gb(end);
17644
- var flow = this.l47_1.k(this.l47_1.ab_1 - 2 | 0);
17013
+ var end = with_0(with_0(buildMap(), 'endOutcomes', buildMap()), 'javadoc', ZflListenerUtils_getInstance().k46(ctx.z20()));
17014
+ this.e47_1.gb(end);
17015
+ var flow = this.e47_1.k(this.e47_1.ab_1 - 2 | 0);
17645
17016
  // Inline function 'kotlin.collections.set' call
17646
17017
  flow.t1('end', end);
17647
- this.k47_1.y44('flows.' + toString_1(flow.p1('name')) + '.end', ZflListenerUtils_getInstance().k46(ctx));
17018
+ this.d47_1.y44('flows.' + toString_1(flow.p1('name')) + '.end', ZflListenerUtils_getInstance().g46(ctx));
17648
17019
  };
17649
17020
  protoOf(ZflListenerImpl).h3a = function (ctx) {
17650
- this.l47_1.ib();
17021
+ this.e47_1.ib();
17651
17022
  };
17652
17023
  protoOf(ZflListenerImpl).i3a = function (ctx) {
17653
17024
  var endOutcomes = buildMap();
@@ -17662,7 +17033,7 @@ protoOf(ZflListenerImpl).i3a = function (ctx) {
17662
17033
  with_0(endOutcomes, outcomeName, outcomeEvents);
17663
17034
  }
17664
17035
  }
17665
- appendToWithMap(this.l47_1.db(), 'endOutcomes', endOutcomes);
17036
+ appendToWithMap(this.e47_1.db(), 'endOutcomes', endOutcomes);
17666
17037
  };
17667
17038
  protoOf(ZflListenerImpl).ar = function (ctx) {
17668
17039
  protoOf(ZflBaseListener).ar.call(this, ctx);
@@ -17675,12 +17046,12 @@ protoOf(ZflListenerImpl).er = function (node) {
17675
17046
  };
17676
17047
  function ZflListenerUtils() {
17677
17048
  ZflListenerUtils_instance = this;
17678
- this.n47_1 = Inflector_instance;
17049
+ this.g47_1 = Inflector_instance;
17679
17050
  }
17680
- protoOf(ZflListenerUtils).l46 = function (ctx) {
17051
+ protoOf(ZflListenerUtils).h46 = function (ctx) {
17681
17052
  return ctx == null ? null : ctx.bh();
17682
17053
  };
17683
- protoOf(ZflListenerUtils).r47 = function (ctx) {
17054
+ protoOf(ZflListenerUtils).k47 = function (ctx) {
17684
17055
  if (ctx == null)
17685
17056
  return null;
17686
17057
  var tmp0_safe_receiver = ctx.c1v();
@@ -17695,18 +17066,18 @@ protoOf(ZflListenerUtils).r47 = function (ctx) {
17695
17066
  null;
17696
17067
  else {
17697
17068
  // Inline function 'kotlin.let' call
17698
- return ZflListenerUtils_getInstance().t46(tmp1_safe_receiver.bh(), "'");
17069
+ return ZflListenerUtils_getInstance().p46(tmp1_safe_receiver.bh(), "'");
17699
17070
  }
17700
17071
  var tmp2_safe_receiver = ctx.e1v();
17701
17072
  if (tmp2_safe_receiver == null)
17702
17073
  null;
17703
17074
  else {
17704
17075
  // Inline function 'kotlin.let' call
17705
- return ZflListenerUtils_getInstance().t46(tmp2_safe_receiver.bh(), '"');
17076
+ return ZflListenerUtils_getInstance().p46(tmp2_safe_receiver.bh(), '"');
17706
17077
  }
17707
17078
  return ctx.bh();
17708
17079
  };
17709
- protoOf(ZflListenerUtils).t47 = function (ctx) {
17080
+ protoOf(ZflListenerUtils).m47 = function (ctx) {
17710
17081
  if (ctx == null)
17711
17082
  return null;
17712
17083
  var tmp0_safe_receiver = ctx.c1v();
@@ -17721,14 +17092,14 @@ protoOf(ZflListenerUtils).t47 = function (ctx) {
17721
17092
  null;
17722
17093
  else {
17723
17094
  // Inline function 'kotlin.let' call
17724
- return ZflListenerUtils_getInstance().t46(tmp1_safe_receiver.bh(), "'");
17095
+ return ZflListenerUtils_getInstance().p46(tmp1_safe_receiver.bh(), "'");
17725
17096
  }
17726
17097
  var tmp2_safe_receiver = ctx.e1v();
17727
17098
  if (tmp2_safe_receiver == null)
17728
17099
  null;
17729
17100
  else {
17730
17101
  // Inline function 'kotlin.let' call
17731
- return ZflListenerUtils_getInstance().t46(tmp2_safe_receiver.bh(), '"');
17102
+ return ZflListenerUtils_getInstance().p46(tmp2_safe_receiver.bh(), '"');
17732
17103
  }
17733
17104
  if (ctx.q1v() == null)
17734
17105
  null;
@@ -17748,12 +17119,12 @@ protoOf(ZflListenerUtils).t47 = function (ctx) {
17748
17119
  return false;
17749
17120
  return ctx.bh();
17750
17121
  };
17751
- protoOf(ZflListenerUtils).o47 = function (ctx) {
17122
+ protoOf(ZflListenerUtils).h47 = function (ctx) {
17752
17123
  if (ctx == null)
17753
17124
  return true;
17754
- return this.s47(ctx.i1z());
17125
+ return this.l47(ctx.i1z());
17755
17126
  };
17756
- protoOf(ZflListenerUtils).s47 = function (complexValue) {
17127
+ protoOf(ZflListenerUtils).l47 = function (complexValue) {
17757
17128
  if (complexValue == null)
17758
17129
  return true;
17759
17130
  var tmp0_safe_receiver = complexValue.c1u();
@@ -17761,21 +17132,21 @@ protoOf(ZflListenerUtils).s47 = function (complexValue) {
17761
17132
  null;
17762
17133
  else {
17763
17134
  // Inline function 'kotlin.let' call
17764
- return ZflListenerUtils_getInstance().u47(tmp0_safe_receiver);
17135
+ return ZflListenerUtils_getInstance().n47(tmp0_safe_receiver);
17765
17136
  }
17766
- var array = this.v47(complexValue.d1u());
17767
- var obj = this.w47(complexValue.e1u());
17768
- return this.m46([array, obj, true]);
17137
+ var array = this.o47(complexValue.d1u());
17138
+ var obj = this.p47(complexValue.e1u());
17139
+ return this.i46([array, obj, true]);
17769
17140
  };
17770
- protoOf(ZflListenerUtils).u47 = function (value) {
17141
+ protoOf(ZflListenerUtils).n47 = function (value) {
17771
17142
  if (value == null)
17772
17143
  return true;
17773
- var obj = this.x47(value.p1u());
17774
- var array = this.y47(value.q1u());
17775
- var simple = this.t47(value.r1u());
17776
- return this.m46([obj, array, simple, true]);
17144
+ var obj = this.q47(value.p1u());
17145
+ var array = this.r47(value.q1u());
17146
+ var simple = this.m47(value.r1u());
17147
+ return this.i46([obj, array, simple, true]);
17777
17148
  };
17778
- protoOf(ZflListenerUtils).t46 = function (text, quote) {
17149
+ protoOf(ZflListenerUtils).p46 = function (text, quote) {
17779
17150
  var escape = '\\\\';
17780
17151
  // Inline function 'kotlin.text.replace' call
17781
17152
  var tmp0 = Regex_init_$Create$('^' + Companion_getInstance().y8(quote)).j9(text, '');
@@ -17784,7 +17155,7 @@ protoOf(ZflListenerUtils).t46 = function (text, quote) {
17784
17155
  // Inline function 'kotlin.text.replace' call
17785
17156
  return Regex_init_$Create$(Companion_getInstance().y8(quote) + '$').j9(tmp0_0, '');
17786
17157
  };
17787
- protoOf(ZflListenerUtils).x47 = function (ctx) {
17158
+ protoOf(ZflListenerUtils).q47 = function (ctx) {
17788
17159
  if (ctx == null)
17789
17160
  return null;
17790
17161
  var map = buildMap();
@@ -17794,12 +17165,12 @@ protoOf(ZflListenerUtils).x47 = function (ctx) {
17794
17165
  var element = _iterator__ex2g4s.i();
17795
17166
  // Inline function 'kotlin.let' call
17796
17167
  var it = element.s1r();
17797
- var tmp$ret$1 = toString_1(ZflListenerUtils_getInstance().r47(it));
17798
- map.t1(tmp$ret$1, ZflListenerUtils_getInstance().u47(element.c1u()));
17168
+ var tmp$ret$1 = toString_1(ZflListenerUtils_getInstance().k47(it));
17169
+ map.t1(tmp$ret$1, ZflListenerUtils_getInstance().n47(element.c1u()));
17799
17170
  }
17800
17171
  return map;
17801
17172
  };
17802
- protoOf(ZflListenerUtils).w47 = function (ctx) {
17173
+ protoOf(ZflListenerUtils).p47 = function (ctx) {
17803
17174
  if (ctx == null)
17804
17175
  return null;
17805
17176
  var map = buildMap();
@@ -17809,12 +17180,12 @@ protoOf(ZflListenerUtils).w47 = function (ctx) {
17809
17180
  var element = _iterator__ex2g4s.i();
17810
17181
  // Inline function 'kotlin.let' call
17811
17182
  var it = element.s1r();
17812
- var tmp$ret$1 = toString_1(ZflListenerUtils_getInstance().r47(it));
17813
- map.t1(tmp$ret$1, ZflListenerUtils_getInstance().u47(element.c1u()));
17183
+ var tmp$ret$1 = toString_1(ZflListenerUtils_getInstance().k47(it));
17184
+ map.t1(tmp$ret$1, ZflListenerUtils_getInstance().n47(element.c1u()));
17814
17185
  }
17815
17186
  return map;
17816
17187
  };
17817
- protoOf(ZflListenerUtils).y47 = function (ctx) {
17188
+ protoOf(ZflListenerUtils).r47 = function (ctx) {
17818
17189
  if (ctx == null)
17819
17190
  return null;
17820
17191
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -17823,11 +17194,11 @@ protoOf(ZflListenerUtils).y47 = function (ctx) {
17823
17194
  var _iterator__ex2g4s = ctx.c1u().g();
17824
17195
  while (_iterator__ex2g4s.h()) {
17825
17196
  var element = _iterator__ex2g4s.i();
17826
- list.f(ZflListenerUtils_getInstance().u47(element));
17197
+ list.f(ZflListenerUtils_getInstance().n47(element));
17827
17198
  }
17828
17199
  return list;
17829
17200
  };
17830
- protoOf(ZflListenerUtils).v47 = function (ctx) {
17201
+ protoOf(ZflListenerUtils).o47 = function (ctx) {
17831
17202
  if (ctx == null)
17832
17203
  return null;
17833
17204
  // Inline function 'kotlin.collections.mutableListOf' call
@@ -17836,11 +17207,11 @@ protoOf(ZflListenerUtils).v47 = function (ctx) {
17836
17207
  var _iterator__ex2g4s = ctx.r1u().g();
17837
17208
  while (_iterator__ex2g4s.h()) {
17838
17209
  var element = _iterator__ex2g4s.i();
17839
- list.f(ZflListenerUtils_getInstance().t47(element));
17210
+ list.f(ZflListenerUtils_getInstance().m47(element));
17840
17211
  }
17841
17212
  return list;
17842
17213
  };
17843
- protoOf(ZflListenerUtils).r46 = function (ctx, split_0) {
17214
+ protoOf(ZflListenerUtils).n46 = function (ctx, split_0) {
17844
17215
  if (ctx == null)
17845
17216
  return null;
17846
17217
  // Inline function 'kotlin.collections.map' call
@@ -17856,10 +17227,10 @@ protoOf(ZflListenerUtils).r46 = function (ctx, split_0) {
17856
17227
  }
17857
17228
  return destination;
17858
17229
  };
17859
- protoOf(ZflListenerUtils).e46 = function (name) {
17860
- return this.n47_1.f44(name);
17230
+ protoOf(ZflListenerUtils).a46 = function (name) {
17231
+ return this.g47_1.f44(name);
17861
17232
  };
17862
- protoOf(ZflListenerUtils).m46 = function (args) {
17233
+ protoOf(ZflListenerUtils).i46 = function (args) {
17863
17234
  var tmp$ret$1;
17864
17235
  $l$block: {
17865
17236
  // Inline function 'kotlin.collections.firstOrNull' call
@@ -17877,10 +17248,10 @@ protoOf(ZflListenerUtils).m46 = function (args) {
17877
17248
  }
17878
17249
  return tmp$ret$1;
17879
17250
  };
17880
- protoOf(ZflListenerUtils).o46 = function (javadoc) {
17251
+ protoOf(ZflListenerUtils).k46 = function (javadoc) {
17881
17252
  if (javadoc == null)
17882
17253
  return null;
17883
- var text = this.l46(javadoc instanceof ParserRuleContext ? javadoc : THROW_CCE());
17254
+ var text = this.h46(javadoc instanceof ParserRuleContext ? javadoc : THROW_CCE());
17884
17255
  var tmp;
17885
17256
  if (text == null) {
17886
17257
  tmp = null;
@@ -17914,7 +17285,7 @@ protoOf(ZflListenerUtils).o46 = function (javadoc) {
17914
17285
  }
17915
17286
  return tmp_2;
17916
17287
  };
17917
- protoOf(ZflListenerUtils).k46 = function (ctx) {
17288
+ protoOf(ZflListenerUtils).g46 = function (ctx) {
17918
17289
  if (ctx == null)
17919
17290
  return null;
17920
17291
  var stopCharOffset = 0;
@@ -17937,12 +17308,9 @@ function parseZdl(input) {
17937
17308
  }
17938
17309
  function parseZfl(input) {
17939
17310
  var parser = new ZflParser_0();
17940
- var model = parser.m47(input);
17311
+ var model = parser.f47(input);
17941
17312
  return convertToPlain(isInterface(model, KtMap) ? model : THROW_CCE());
17942
17313
  }
17943
- function generateMermaidFromZdl(input) {
17944
- return (new GenerateMermaidFromZdl()).b46(input);
17945
- }
17946
17314
  function convertToPlain(value) {
17947
17315
  var tmp;
17948
17316
  if (value == null) {
@@ -18001,7 +17369,6 @@ Companion_instance_4 = new Companion_4();
18001
17369
  export {
18002
17370
  parseZdl as parseZdl,
18003
17371
  parseZfl as parseZfl,
18004
- generateMermaidFromZdl as generateMermaidFromZdl,
18005
17372
  };
18006
17373
  //endregion
18007
17374