git-digger 1.9.22 → 1.9.24

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.
@@ -1,14 +1,15 @@
1
- (function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_digger_core, kotlin_com_zegreatrob_tools_git_adapter, kotlin_clikt_clikt_mordant, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_digger_json, kotlin_com_zegreatrob_tools_cli_tools) {
1
+ (function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_digger_core, kotlin_com_zegreatrob_tools_git_adapter, kotlin_clikt_clikt_mordant, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_digger_json, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_com_zegreatrob_tools_cli_tools, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var protoOf = kotlin_kotlin.$_$.d8;
5
- var initMetadataForObject = kotlin_kotlin.$_$.l7;
6
- var KProperty1 = kotlin_kotlin.$_$.v8;
7
- var getPropertyCallableRef = kotlin_kotlin.$_$.d7;
8
- var split = kotlin_kotlin.$_$.ia;
9
- var lastOrNull = kotlin_kotlin.$_$.s4;
10
- var isBlank = kotlin_kotlin.$_$.w9;
11
- var Regex_init_$Create$ = kotlin_kotlin.$_$.i1;
4
+ var imul = Math.imul;
5
+ var protoOf = kotlin_kotlin.$_$.da;
6
+ var initMetadataForObject = kotlin_kotlin.$_$.k9;
7
+ var KProperty1 = kotlin_kotlin.$_$.ya;
8
+ var getPropertyCallableRef = kotlin_kotlin.$_$.c9;
9
+ var split = kotlin_kotlin.$_$.oc;
10
+ var lastOrNull = kotlin_kotlin.$_$.b6;
11
+ var isBlank = kotlin_kotlin.$_$.bc;
12
+ var Regex_init_$Create$ = kotlin_kotlin.$_$.n1;
12
13
  var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.c;
13
14
  var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
14
15
  var Defaults_getInstance_0 = kotlin_com_zegreatrob_tools_digger_core.$_$.d;
@@ -18,27 +19,53 @@
18
19
  var argument = kotlin_clikt_clikt.$_$.h;
19
20
  var option = kotlin_clikt_clikt.$_$.k;
20
21
  var default_0 = kotlin_clikt_clikt.$_$.i;
22
+ var mapCapacity = kotlin_kotlin.$_$.h6;
23
+ var coerceAtLeast = kotlin_kotlin.$_$.ka;
24
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i1;
25
+ var Unit_instance = kotlin_kotlin.$_$.v;
26
+ var VOID = kotlin_kotlin.$_$.c;
27
+ var choice = kotlin_clikt_clikt.$_$.l;
21
28
  var toJsonString = kotlin_com_zegreatrob_tools_digger_json.$_$.b;
29
+ var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
22
30
  var writeToFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.b;
23
- var Unit_instance = kotlin_kotlin.$_$.v;
24
- var initMetadataForClass = kotlin_kotlin.$_$.g7;
31
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ze;
32
+ var initMetadataForClass = kotlin_kotlin.$_$.f9;
25
33
  var toJsonString_0 = kotlin_com_zegreatrob_tools_digger_json.$_$.a;
26
34
  var PrintMessage = kotlin_clikt_clikt.$_$.c;
27
- var setOf = kotlin_kotlin.$_$.l5;
28
- var VOID = kotlin_kotlin.$_$.c;
35
+ var setOf = kotlin_kotlin.$_$.u6;
29
36
  var eagerOption = kotlin_clikt_clikt.$_$.j;
37
+ var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
38
+ var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
39
+ var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
40
+ var THROW_CCE = kotlin_kotlin.$_$.de;
41
+ var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
42
+ var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
43
+ var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
44
+ var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
45
+ var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
46
+ var objectCreate = kotlin_kotlin.$_$.ca;
47
+ var toString = kotlin_kotlin.$_$.fa;
48
+ var getStringHashCode = kotlin_kotlin.$_$.d9;
49
+ var hashCode = kotlin_kotlin.$_$.e9;
50
+ var equals = kotlin_kotlin.$_$.z8;
51
+ var SerializableWith = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
30
52
  var platformArgCorrection = kotlin_com_zegreatrob_tools_cli_tools.$_$.a;
31
53
  var main = kotlin_clikt_clikt.$_$.d;
32
54
  var subcommands = kotlin_clikt_clikt.$_$.f;
55
+ var Enum = kotlin_kotlin.$_$.vd;
33
56
  //endregion
34
57
  //region block: pre-declaration
35
58
  initMetadataForObject(Versions, 'Versions');
36
59
  initMetadataForClass(AllContributionData, 'AllContributionData', AllContributionData, CliktCommand);
37
60
  initMetadataForClass(CurrentContributionData, 'CurrentContributionData', CurrentContributionData, CliktCommand);
38
61
  initMetadataForClass(Digger, 'Digger', Digger, CliktCommand);
62
+ initMetadataForCompanion(Companion);
63
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
64
+ initMetadataForClass(SuccessResponse, 'SuccessResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
65
+ initMetadataForClass(OutputFormat, 'OutputFormat', VOID, Enum);
39
66
  //endregion
40
67
  function Versions() {
41
- this.r21_1 = '1.9.22';
68
+ this.x2h_1 = '1.9.24';
42
69
  }
43
70
  var Versions_instance;
44
71
  function Versions_getInstance() {
@@ -46,43 +73,47 @@
46
73
  }
47
74
  function _get_dir__e67350($this) {
48
75
  var tmp = KProperty1;
49
- return $this.h22_1.a1e($this, getPropertyCallableRef('dir', 1, tmp, AllContributionData$_get_dir_$ref_wg6jhm_0(), null));
76
+ return $this.n2i_1.g1u($this, getPropertyCallableRef('dir', 1, tmp, AllContributionData$_get_dir_$ref_wg6jhm_0(), null));
50
77
  }
51
78
  function _get_outputFile__pta58u($this) {
52
79
  var tmp = KProperty1;
53
- return $this.i22_1.a1e($this, getPropertyCallableRef('outputFile', 1, tmp, AllContributionData$_get_outputFile_$ref_2u5sp2_0(), null));
80
+ return $this.o2i_1.g1u($this, getPropertyCallableRef('outputFile', 1, tmp, AllContributionData$_get_outputFile_$ref_2u5sp2_0(), null));
54
81
  }
55
82
  function _get_label__euqgmb($this) {
56
83
  var tmp = KProperty1;
57
- return $this.j22_1.a1e($this, getPropertyCallableRef('label', 1, tmp, AllContributionData$_get_label_$ref_3wi4kj_0(), null));
84
+ return $this.p2i_1.g1u($this, getPropertyCallableRef('label', 1, tmp, AllContributionData$_get_label_$ref_3wi4kj_0(), null));
58
85
  }
59
86
  function _get_majorRegex__5j6ypp($this) {
60
87
  var tmp = KProperty1;
61
- return $this.k22_1.a1e($this, getPropertyCallableRef('majorRegex', 1, tmp, AllContributionData$_get_majorRegex_$ref_1hzqob_0(), null));
88
+ return $this.q2i_1.g1u($this, getPropertyCallableRef('majorRegex', 1, tmp, AllContributionData$_get_majorRegex_$ref_1hzqob_0(), null));
62
89
  }
63
90
  function _get_minorRegex__20z96h($this) {
64
91
  var tmp = KProperty1;
65
- return $this.l22_1.a1e($this, getPropertyCallableRef('minorRegex', 1, tmp, AllContributionData$_get_minorRegex_$ref_grl9sf_0(), null));
92
+ return $this.r2i_1.g1u($this, getPropertyCallableRef('minorRegex', 1, tmp, AllContributionData$_get_minorRegex_$ref_grl9sf_0(), null));
66
93
  }
67
94
  function _get_patchRegex__mtlu2c($this) {
68
95
  var tmp = KProperty1;
69
- return $this.m22_1.a1e($this, getPropertyCallableRef('patchRegex', 1, tmp, AllContributionData$_get_patchRegex_$ref_c7qjno_0(), null));
96
+ return $this.s2i_1.g1u($this, getPropertyCallableRef('patchRegex', 1, tmp, AllContributionData$_get_patchRegex_$ref_c7qjno_0(), null));
70
97
  }
71
98
  function _get_noneRegex__1tdbgi($this) {
72
99
  var tmp = KProperty1;
73
- return $this.n22_1.a1e($this, getPropertyCallableRef('noneRegex', 1, tmp, AllContributionData$_get_noneRegex_$ref_zhv3p4_0(), null));
100
+ return $this.t2i_1.g1u($this, getPropertyCallableRef('noneRegex', 1, tmp, AllContributionData$_get_noneRegex_$ref_zhv3p4_0(), null));
74
101
  }
75
102
  function _get_storyIdRegex__auqux8($this) {
76
103
  var tmp = KProperty1;
77
- return $this.o22_1.a1e($this, getPropertyCallableRef('storyIdRegex', 1, tmp, AllContributionData$_get_storyIdRegex_$ref_5u1ovg_0(), null));
104
+ return $this.u2i_1.g1u($this, getPropertyCallableRef('storyIdRegex', 1, tmp, AllContributionData$_get_storyIdRegex_$ref_5u1ovg_0(), null));
78
105
  }
79
106
  function _get_easeRegex__pf594o($this) {
80
107
  var tmp = KProperty1;
81
- return $this.p22_1.a1e($this, getPropertyCallableRef('easeRegex', 1, tmp, AllContributionData$_get_easeRegex_$ref_np9uma_0(), null));
108
+ return $this.v2i_1.g1u($this, getPropertyCallableRef('easeRegex', 1, tmp, AllContributionData$_get_easeRegex_$ref_np9uma_0(), null));
82
109
  }
83
110
  function _get_tagRegex__ibn0wy($this) {
84
111
  var tmp = KProperty1;
85
- return $this.q22_1.a1e($this, getPropertyCallableRef('tagRegex', 1, tmp, AllContributionData$_get_tagRegex_$ref_cls7rq_0(), null));
112
+ return $this.w2i_1.g1u($this, getPropertyCallableRef('tagRegex', 1, tmp, AllContributionData$_get_tagRegex_$ref_cls7rq_0(), null));
113
+ }
114
+ function _get_format__qlarck($this) {
115
+ var tmp = KProperty1;
116
+ return $this.x2i_1.g1u($this, getPropertyCallableRef('format', 1, tmp, AllContributionData$_get_format_$ref_cn6yng_0(), null));
86
117
  }
87
118
  function _get_core__d4zfrg($this) {
88
119
  // Inline function 'kotlin.text.ifBlank' call
@@ -103,7 +134,7 @@
103
134
  tmp_0 = Regex_init_$Create$(tmp0_safe_receiver);
104
135
  }
105
136
  var tmp1_elvis_lhs = tmp_0;
106
- var tmp15_tagRegex = tmp1_elvis_lhs == null ? Defaults_getInstance().sl_1 : tmp1_elvis_lhs;
137
+ var tmp15_tagRegex = tmp1_elvis_lhs == null ? Defaults_getInstance().wm_1 : tmp1_elvis_lhs;
107
138
  var tmp16_gitWrapper = new GitAdapter(_get_dir__e67350($this));
108
139
  var tmp2_safe_receiver = _get_majorRegex__5j6ypp($this);
109
140
  var tmp_1;
@@ -114,7 +145,7 @@
114
145
  tmp_1 = Regex_init_$Create$(tmp2_safe_receiver);
115
146
  }
116
147
  var tmp3_elvis_lhs = tmp_1;
117
- var tmp_2 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().vl_1 : tmp3_elvis_lhs;
148
+ var tmp_2 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().zm_1 : tmp3_elvis_lhs;
118
149
  var tmp4_safe_receiver = _get_minorRegex__20z96h($this);
119
150
  var tmp_3;
120
151
  if (tmp4_safe_receiver == null) {
@@ -124,7 +155,7 @@
124
155
  tmp_3 = Regex_init_$Create$(tmp4_safe_receiver);
125
156
  }
126
157
  var tmp5_elvis_lhs = tmp_3;
127
- var tmp_4 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().wl_1 : tmp5_elvis_lhs;
158
+ var tmp_4 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().an_1 : tmp5_elvis_lhs;
128
159
  var tmp6_safe_receiver = _get_patchRegex__mtlu2c($this);
129
160
  var tmp_5;
130
161
  if (tmp6_safe_receiver == null) {
@@ -134,7 +165,7 @@
134
165
  tmp_5 = Regex_init_$Create$(tmp6_safe_receiver);
135
166
  }
136
167
  var tmp7_elvis_lhs = tmp_5;
137
- var tmp_6 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().xl_1 : tmp7_elvis_lhs;
168
+ var tmp_6 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().bn_1 : tmp7_elvis_lhs;
138
169
  var tmp8_safe_receiver = _get_noneRegex__1tdbgi($this);
139
170
  var tmp_7;
140
171
  if (tmp8_safe_receiver == null) {
@@ -144,7 +175,7 @@
144
175
  tmp_7 = Regex_init_$Create$(tmp8_safe_receiver);
145
176
  }
146
177
  var tmp9_elvis_lhs = tmp_7;
147
- var tmp_8 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().yl_1 : tmp9_elvis_lhs;
178
+ var tmp_8 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().cn_1 : tmp9_elvis_lhs;
148
179
  var tmp10_safe_receiver = _get_storyIdRegex__auqux8($this);
149
180
  var tmp_9;
150
181
  if (tmp10_safe_receiver == null) {
@@ -154,7 +185,7 @@
154
185
  tmp_9 = Regex_init_$Create$(tmp10_safe_receiver);
155
186
  }
156
187
  var tmp11_elvis_lhs = tmp_9;
157
- var tmp_10 = tmp11_elvis_lhs == null ? Defaults_getInstance_0().zl_1 : tmp11_elvis_lhs;
188
+ var tmp_10 = tmp11_elvis_lhs == null ? Defaults_getInstance_0().dn_1 : tmp11_elvis_lhs;
158
189
  var tmp12_safe_receiver = _get_easeRegex__pf594o($this);
159
190
  var tmp_11;
160
191
  if (tmp12_safe_receiver == null) {
@@ -164,7 +195,7 @@
164
195
  tmp_11 = Regex_init_$Create$(tmp12_safe_receiver);
165
196
  }
166
197
  var tmp13_elvis_lhs = tmp_11;
167
- var tmp17_messageDigger = new MessageDigger(tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp13_elvis_lhs == null ? Defaults_getInstance_0().am_1 : tmp13_elvis_lhs);
198
+ var tmp17_messageDigger = new MessageDigger(tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp13_elvis_lhs == null ? Defaults_getInstance_0().en_1 : tmp13_elvis_lhs);
168
199
  return new DiggerCore(tmp14_label, tmp16_gitWrapper, tmp17_messageDigger, tmp15_tagRegex);
169
200
  }
170
201
  function AllContributionData$_get_dir_$ref_wg6jhm() {
@@ -267,94 +298,143 @@
267
298
  return _get_tagRegex__ibn0wy(p0);
268
299
  };
269
300
  }
301
+ function AllContributionData$_get_format_$ref_cn6yng() {
302
+ return function (p0) {
303
+ return _get_format__qlarck(p0);
304
+ };
305
+ }
306
+ function AllContributionData$_get_format_$ref_cn6yng_0() {
307
+ return function (p0) {
308
+ return _get_format__qlarck(p0);
309
+ };
310
+ }
270
311
  function AllContributionData() {
271
312
  CliktCommand.call(this);
272
313
  var tmp = this;
273
314
  var tmp_0 = argument(this, 'git-repo');
274
315
  var tmp_1 = KProperty1;
275
- tmp.h22_1 = tmp_0.c1e(this, getPropertyCallableRef('dir', 1, tmp_1, AllContributionData$_get_dir_$ref_wg6jhm(), null));
316
+ tmp.n2i_1 = tmp_0.i1u(this, getPropertyCallableRef('dir', 1, tmp_1, AllContributionData$_get_dir_$ref_wg6jhm(), null));
276
317
  var tmp_2 = this;
277
318
  var tmp_3 = default_0(option(this, []), 'allContributionData.json');
278
319
  var tmp_4 = KProperty1;
279
- tmp_2.i22_1 = tmp_3.n1e(this, getPropertyCallableRef('outputFile', 1, tmp_4, AllContributionData$_get_outputFile_$ref_2u5sp2(), null));
320
+ tmp_2.o2i_1 = tmp_3.t1u(this, getPropertyCallableRef('outputFile', 1, tmp_4, AllContributionData$_get_outputFile_$ref_2u5sp2(), null));
280
321
  var tmp_5 = this;
281
322
  var tmp_6 = default_0(option(this, []), '');
282
323
  var tmp_7 = KProperty1;
283
- tmp_5.j22_1 = tmp_6.n1e(this, getPropertyCallableRef('label', 1, tmp_7, AllContributionData$_get_label_$ref_3wi4kj(), null));
324
+ tmp_5.p2i_1 = tmp_6.t1u(this, getPropertyCallableRef('label', 1, tmp_7, AllContributionData$_get_label_$ref_3wi4kj(), null));
284
325
  var tmp_8 = this;
285
326
  var tmp_9 = option(this, []);
286
327
  var tmp_10 = KProperty1;
287
- tmp_8.k22_1 = tmp_9.n1e(this, getPropertyCallableRef('majorRegex', 1, tmp_10, AllContributionData$_get_majorRegex_$ref_1hzqob(), null));
328
+ tmp_8.q2i_1 = tmp_9.t1u(this, getPropertyCallableRef('majorRegex', 1, tmp_10, AllContributionData$_get_majorRegex_$ref_1hzqob(), null));
288
329
  var tmp_11 = this;
289
330
  var tmp_12 = option(this, []);
290
331
  var tmp_13 = KProperty1;
291
- tmp_11.l22_1 = tmp_12.n1e(this, getPropertyCallableRef('minorRegex', 1, tmp_13, AllContributionData$_get_minorRegex_$ref_grl9sf(), null));
332
+ tmp_11.r2i_1 = tmp_12.t1u(this, getPropertyCallableRef('minorRegex', 1, tmp_13, AllContributionData$_get_minorRegex_$ref_grl9sf(), null));
292
333
  var tmp_14 = this;
293
334
  var tmp_15 = option(this, []);
294
335
  var tmp_16 = KProperty1;
295
- tmp_14.m22_1 = tmp_15.n1e(this, getPropertyCallableRef('patchRegex', 1, tmp_16, AllContributionData$_get_patchRegex_$ref_c7qjno(), null));
336
+ tmp_14.s2i_1 = tmp_15.t1u(this, getPropertyCallableRef('patchRegex', 1, tmp_16, AllContributionData$_get_patchRegex_$ref_c7qjno(), null));
296
337
  var tmp_17 = this;
297
338
  var tmp_18 = option(this, []);
298
339
  var tmp_19 = KProperty1;
299
- tmp_17.n22_1 = tmp_18.n1e(this, getPropertyCallableRef('noneRegex', 1, tmp_19, AllContributionData$_get_noneRegex_$ref_zhv3p4(), null));
340
+ tmp_17.t2i_1 = tmp_18.t1u(this, getPropertyCallableRef('noneRegex', 1, tmp_19, AllContributionData$_get_noneRegex_$ref_zhv3p4(), null));
300
341
  var tmp_20 = this;
301
342
  var tmp_21 = option(this, []);
302
343
  var tmp_22 = KProperty1;
303
- tmp_20.o22_1 = tmp_21.n1e(this, getPropertyCallableRef('storyIdRegex', 1, tmp_22, AllContributionData$_get_storyIdRegex_$ref_5u1ovg(), null));
344
+ tmp_20.u2i_1 = tmp_21.t1u(this, getPropertyCallableRef('storyIdRegex', 1, tmp_22, AllContributionData$_get_storyIdRegex_$ref_5u1ovg(), null));
304
345
  var tmp_23 = this;
305
346
  var tmp_24 = option(this, []);
306
347
  var tmp_25 = KProperty1;
307
- tmp_23.p22_1 = tmp_24.n1e(this, getPropertyCallableRef('easeRegex', 1, tmp_25, AllContributionData$_get_easeRegex_$ref_np9uma(), null));
348
+ tmp_23.v2i_1 = tmp_24.t1u(this, getPropertyCallableRef('easeRegex', 1, tmp_25, AllContributionData$_get_easeRegex_$ref_np9uma(), null));
308
349
  var tmp_26 = this;
309
350
  var tmp_27 = option(this, []);
310
351
  var tmp_28 = KProperty1;
311
- tmp_26.q22_1 = tmp_27.n1e(this, getPropertyCallableRef('tagRegex', 1, tmp_28, AllContributionData$_get_tagRegex_$ref_cls7rq(), null));
312
- }
313
- protoOf(AllContributionData).m15 = function () {
314
- writeToFile(toJsonString(_get_core__d4zfrg(this).ul()), _get_outputFile__pta58u(this));
315
- // Inline function 'kotlin.also' call
316
- this.b14('Data written to ' + _get_outputFile__pta58u(this));
317
- return Unit_instance;
352
+ tmp_26.w2i_1 = tmp_27.t1u(this, getPropertyCallableRef('tagRegex', 1, tmp_28, AllContributionData$_get_tagRegex_$ref_cls7rq(), null));
353
+ var tmp_29 = this;
354
+ // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
355
+ var this_0 = option(this, ['--format'], 'Output format: text (writes to file, default) or json (stdout)');
356
+ // Inline function 'kotlin.enumValues' call
357
+ // Inline function 'kotlin.collections.associateBy' call
358
+ var this_1 = values();
359
+ var capacity = coerceAtLeast(mapCapacity(this_1.length), 16);
360
+ // Inline function 'kotlin.collections.associateByTo' call
361
+ var destination = LinkedHashMap_init_$Create$(capacity);
362
+ var inductionVariable = 0;
363
+ var last = this_1.length;
364
+ while (inductionVariable < last) {
365
+ var element = this_1[inductionVariable];
366
+ inductionVariable = inductionVariable + 1 | 0;
367
+ // Inline function 'kotlin.text.lowercase' call
368
+ // Inline function 'kotlin.js.asDynamic' call
369
+ var tmp$ret$4 = element.x2_1.toLowerCase();
370
+ destination.p2(tmp$ret$4, element);
371
+ }
372
+ var tmp$ret$0 = choice(this_0, destination, VOID, true);
373
+ var tmp_30 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
374
+ var tmp_31 = KProperty1;
375
+ tmp_29.x2i_1 = tmp_30.t1u(this, getPropertyCallableRef('format', 1, tmp_31, AllContributionData$_get_format_$ref_cn6yng(), null));
376
+ }
377
+ protoOf(AllContributionData).r1l = function () {
378
+ var jsonString = toJsonString(_get_core__d4zfrg(this).ym());
379
+ switch (_get_format__qlarck(this).y2_1) {
380
+ case 1:
381
+ var dataElement = Default_getInstance().f16(jsonString);
382
+ this.g1k(successResponse(dataElement));
383
+ break;
384
+ case 0:
385
+ writeToFile(jsonString, _get_outputFile__pta58u(this));
386
+ // Inline function 'kotlin.also' call
387
+
388
+ this.g1k('Data written to ' + _get_outputFile__pta58u(this));
389
+ break;
390
+ default:
391
+ noWhenBranchMatchedException();
392
+ break;
393
+ }
318
394
  };
319
395
  function _get_dir__e67350_0($this) {
320
396
  var tmp = KProperty1;
321
- return $this.g23_1.a1e($this, getPropertyCallableRef('dir', 1, tmp, CurrentContributionData$_get_dir_$ref_bhrf2a_0(), null));
397
+ return $this.n2j_1.g1u($this, getPropertyCallableRef('dir', 1, tmp, CurrentContributionData$_get_dir_$ref_bhrf2a_0(), null));
322
398
  }
323
399
  function _get_outputFile__pta58u_0($this) {
324
400
  var tmp = KProperty1;
325
- return $this.h23_1.a1e($this, getPropertyCallableRef('outputFile', 1, tmp, CurrentContributionData$_get_outputFile_$ref_rovsk2_0(), null));
401
+ return $this.o2j_1.g1u($this, getPropertyCallableRef('outputFile', 1, tmp, CurrentContributionData$_get_outputFile_$ref_rovsk2_0(), null));
326
402
  }
327
403
  function _get_label__euqgmb_0($this) {
328
404
  var tmp = KProperty1;
329
- return $this.i23_1.a1e($this, getPropertyCallableRef('label', 1, tmp, CurrentContributionData$_get_label_$ref_x6bhqd_0(), null));
405
+ return $this.p2j_1.g1u($this, getPropertyCallableRef('label', 1, tmp, CurrentContributionData$_get_label_$ref_x6bhqd_0(), null));
330
406
  }
331
407
  function _get_majorRegex__5j6ypp_0($this) {
332
408
  var tmp = KProperty1;
333
- return $this.j23_1.a1e($this, getPropertyCallableRef('majorRegex', 1, tmp, CurrentContributionData$_get_majorRegex_$ref_w11bxf_0(), null));
409
+ return $this.q2j_1.g1u($this, getPropertyCallableRef('majorRegex', 1, tmp, CurrentContributionData$_get_majorRegex_$ref_w11bxf_0(), null));
334
410
  }
335
411
  function _get_minorRegex__20z96h_0($this) {
336
412
  var tmp = KProperty1;
337
- return $this.k23_1.a1e($this, getPropertyCallableRef('minorRegex', 1, tmp, CurrentContributionData$_get_minorRegex_$ref_nqh6xl_0(), null));
413
+ return $this.r2j_1.g1u($this, getPropertyCallableRef('minorRegex', 1, tmp, CurrentContributionData$_get_minorRegex_$ref_nqh6xl_0(), null));
338
414
  }
339
415
  function _get_patchRegex__mtlu2c_0($this) {
340
416
  var tmp = KProperty1;
341
- return $this.l23_1.a1e($this, getPropertyCallableRef('patchRegex', 1, tmp, CurrentContributionData$_get_patchRegex_$ref_ibb1lg_0(), null));
417
+ return $this.s2j_1.g1u($this, getPropertyCallableRef('patchRegex', 1, tmp, CurrentContributionData$_get_patchRegex_$ref_ibb1lg_0(), null));
342
418
  }
343
419
  function _get_noneRegex__1tdbgi_0($this) {
344
420
  var tmp = KProperty1;
345
- return $this.m23_1.a1e($this, getPropertyCallableRef('noneRegex', 1, tmp, CurrentContributionData$_get_noneRegex_$ref_4ehpk0_0(), null));
421
+ return $this.t2j_1.g1u($this, getPropertyCallableRef('noneRegex', 1, tmp, CurrentContributionData$_get_noneRegex_$ref_4ehpk0_0(), null));
346
422
  }
347
423
  function _get_storyIdRegex__auqux8_0($this) {
348
424
  var tmp = KProperty1;
349
- return $this.n23_1.a1e($this, getPropertyCallableRef('storyIdRegex', 1, tmp, CurrentContributionData$_get_storyIdRegex_$ref_3840gk_0(), null));
425
+ return $this.u2j_1.g1u($this, getPropertyCallableRef('storyIdRegex', 1, tmp, CurrentContributionData$_get_storyIdRegex_$ref_3840gk_0(), null));
350
426
  }
351
427
  function _get_easeRegex__pf594o_0($this) {
352
428
  var tmp = KProperty1;
353
- return $this.o23_1.a1e($this, getPropertyCallableRef('easeRegex', 1, tmp, CurrentContributionData$_get_easeRegex_$ref_7e3jiu_0(), null));
429
+ return $this.v2j_1.g1u($this, getPropertyCallableRef('easeRegex', 1, tmp, CurrentContributionData$_get_easeRegex_$ref_7e3jiu_0(), null));
354
430
  }
355
431
  function _get_tagRegex__ibn0wy_0($this) {
356
432
  var tmp = KProperty1;
357
- return $this.p23_1.a1e($this, getPropertyCallableRef('tagRegex', 1, tmp, CurrentContributionData$_get_tagRegex_$ref_bbekxq_0(), null));
433
+ return $this.w2j_1.g1u($this, getPropertyCallableRef('tagRegex', 1, tmp, CurrentContributionData$_get_tagRegex_$ref_bbekxq_0(), null));
434
+ }
435
+ function _get_format__qlarck_0($this) {
436
+ var tmp = KProperty1;
437
+ return $this.x2j_1.g1u($this, getPropertyCallableRef('format', 1, tmp, CurrentContributionData$_get_format_$ref_aid4c_0(), null));
358
438
  }
359
439
  function _get_core__d4zfrg_0($this) {
360
440
  // Inline function 'kotlin.text.ifBlank' call
@@ -376,7 +456,7 @@
376
456
  tmp_2 = Regex_init_$Create$(tmp0_safe_receiver);
377
457
  }
378
458
  var tmp1_elvis_lhs = tmp_2;
379
- var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance_0().vl_1 : tmp1_elvis_lhs;
459
+ var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance_0().zm_1 : tmp1_elvis_lhs;
380
460
  var tmp2_safe_receiver = _get_minorRegex__20z96h_0($this);
381
461
  var tmp_4;
382
462
  if (tmp2_safe_receiver == null) {
@@ -386,7 +466,7 @@
386
466
  tmp_4 = Regex_init_$Create$(tmp2_safe_receiver);
387
467
  }
388
468
  var tmp3_elvis_lhs = tmp_4;
389
- var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().wl_1 : tmp3_elvis_lhs;
469
+ var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().an_1 : tmp3_elvis_lhs;
390
470
  var tmp4_safe_receiver = _get_patchRegex__mtlu2c_0($this);
391
471
  var tmp_6;
392
472
  if (tmp4_safe_receiver == null) {
@@ -396,7 +476,7 @@
396
476
  tmp_6 = Regex_init_$Create$(tmp4_safe_receiver);
397
477
  }
398
478
  var tmp5_elvis_lhs = tmp_6;
399
- var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().xl_1 : tmp5_elvis_lhs;
479
+ var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().bn_1 : tmp5_elvis_lhs;
400
480
  var tmp6_safe_receiver = _get_noneRegex__1tdbgi_0($this);
401
481
  var tmp_8;
402
482
  if (tmp6_safe_receiver == null) {
@@ -406,7 +486,7 @@
406
486
  tmp_8 = Regex_init_$Create$(tmp6_safe_receiver);
407
487
  }
408
488
  var tmp7_elvis_lhs = tmp_8;
409
- var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().yl_1 : tmp7_elvis_lhs;
489
+ var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().cn_1 : tmp7_elvis_lhs;
410
490
  var tmp8_safe_receiver = _get_storyIdRegex__auqux8_0($this);
411
491
  var tmp_10;
412
492
  if (tmp8_safe_receiver == null) {
@@ -416,7 +496,7 @@
416
496
  tmp_10 = Regex_init_$Create$(tmp8_safe_receiver);
417
497
  }
418
498
  var tmp9_elvis_lhs = tmp_10;
419
- var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().zl_1 : tmp9_elvis_lhs;
499
+ var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().dn_1 : tmp9_elvis_lhs;
420
500
  var tmp10_safe_receiver = _get_easeRegex__pf594o_0($this);
421
501
  var tmp_12;
422
502
  if (tmp10_safe_receiver == null) {
@@ -426,7 +506,7 @@
426
506
  tmp_12 = Regex_init_$Create$(tmp10_safe_receiver);
427
507
  }
428
508
  var tmp11_elvis_lhs = tmp_12;
429
- var tmp_13 = new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance_0().am_1 : tmp11_elvis_lhs);
509
+ var tmp_13 = new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance_0().en_1 : tmp11_elvis_lhs);
430
510
  var tmp12_safe_receiver = _get_tagRegex__ibn0wy_0($this);
431
511
  var tmp_14;
432
512
  if (tmp12_safe_receiver == null) {
@@ -436,7 +516,7 @@
436
516
  tmp_14 = Regex_init_$Create$(tmp12_safe_receiver);
437
517
  }
438
518
  var tmp13_elvis_lhs = tmp_14;
439
- return new DiggerCore(tmp_0, tmp_1, tmp_13, tmp13_elvis_lhs == null ? Defaults_getInstance().sl_1 : tmp13_elvis_lhs);
519
+ return new DiggerCore(tmp_0, tmp_1, tmp_13, tmp13_elvis_lhs == null ? Defaults_getInstance().wm_1 : tmp13_elvis_lhs);
440
520
  }
441
521
  function CurrentContributionData$_get_dir_$ref_bhrf2a() {
442
522
  return function (p0) {
@@ -538,73 +618,231 @@
538
618
  return _get_tagRegex__ibn0wy_0(p0);
539
619
  };
540
620
  }
621
+ function CurrentContributionData$_get_format_$ref_aid4c() {
622
+ return function (p0) {
623
+ return _get_format__qlarck_0(p0);
624
+ };
625
+ }
626
+ function CurrentContributionData$_get_format_$ref_aid4c_0() {
627
+ return function (p0) {
628
+ return _get_format__qlarck_0(p0);
629
+ };
630
+ }
541
631
  function CurrentContributionData() {
542
632
  CliktCommand.call(this);
543
633
  var tmp = this;
544
634
  var tmp_0 = argument(this, 'git-repo');
545
635
  var tmp_1 = KProperty1;
546
- tmp.g23_1 = tmp_0.c1e(this, getPropertyCallableRef('dir', 1, tmp_1, CurrentContributionData$_get_dir_$ref_bhrf2a(), null));
636
+ tmp.n2j_1 = tmp_0.i1u(this, getPropertyCallableRef('dir', 1, tmp_1, CurrentContributionData$_get_dir_$ref_bhrf2a(), null));
547
637
  var tmp_2 = this;
548
638
  var tmp_3 = default_0(option(this, []), 'currentContributionData.json');
549
639
  var tmp_4 = KProperty1;
550
- tmp_2.h23_1 = tmp_3.n1e(this, getPropertyCallableRef('outputFile', 1, tmp_4, CurrentContributionData$_get_outputFile_$ref_rovsk2(), null));
640
+ tmp_2.o2j_1 = tmp_3.t1u(this, getPropertyCallableRef('outputFile', 1, tmp_4, CurrentContributionData$_get_outputFile_$ref_rovsk2(), null));
551
641
  var tmp_5 = this;
552
642
  var tmp_6 = default_0(option(this, []), '');
553
643
  var tmp_7 = KProperty1;
554
- tmp_5.i23_1 = tmp_6.n1e(this, getPropertyCallableRef('label', 1, tmp_7, CurrentContributionData$_get_label_$ref_x6bhqd(), null));
644
+ tmp_5.p2j_1 = tmp_6.t1u(this, getPropertyCallableRef('label', 1, tmp_7, CurrentContributionData$_get_label_$ref_x6bhqd(), null));
555
645
  var tmp_8 = this;
556
646
  var tmp_9 = option(this, []);
557
647
  var tmp_10 = KProperty1;
558
- tmp_8.j23_1 = tmp_9.n1e(this, getPropertyCallableRef('majorRegex', 1, tmp_10, CurrentContributionData$_get_majorRegex_$ref_w11bxf(), null));
648
+ tmp_8.q2j_1 = tmp_9.t1u(this, getPropertyCallableRef('majorRegex', 1, tmp_10, CurrentContributionData$_get_majorRegex_$ref_w11bxf(), null));
559
649
  var tmp_11 = this;
560
650
  var tmp_12 = option(this, []);
561
651
  var tmp_13 = KProperty1;
562
- tmp_11.k23_1 = tmp_12.n1e(this, getPropertyCallableRef('minorRegex', 1, tmp_13, CurrentContributionData$_get_minorRegex_$ref_nqh6xl(), null));
652
+ tmp_11.r2j_1 = tmp_12.t1u(this, getPropertyCallableRef('minorRegex', 1, tmp_13, CurrentContributionData$_get_minorRegex_$ref_nqh6xl(), null));
563
653
  var tmp_14 = this;
564
654
  var tmp_15 = option(this, []);
565
655
  var tmp_16 = KProperty1;
566
- tmp_14.l23_1 = tmp_15.n1e(this, getPropertyCallableRef('patchRegex', 1, tmp_16, CurrentContributionData$_get_patchRegex_$ref_ibb1lg(), null));
656
+ tmp_14.s2j_1 = tmp_15.t1u(this, getPropertyCallableRef('patchRegex', 1, tmp_16, CurrentContributionData$_get_patchRegex_$ref_ibb1lg(), null));
567
657
  var tmp_17 = this;
568
658
  var tmp_18 = option(this, []);
569
659
  var tmp_19 = KProperty1;
570
- tmp_17.m23_1 = tmp_18.n1e(this, getPropertyCallableRef('noneRegex', 1, tmp_19, CurrentContributionData$_get_noneRegex_$ref_4ehpk0(), null));
660
+ tmp_17.t2j_1 = tmp_18.t1u(this, getPropertyCallableRef('noneRegex', 1, tmp_19, CurrentContributionData$_get_noneRegex_$ref_4ehpk0(), null));
571
661
  var tmp_20 = this;
572
662
  var tmp_21 = option(this, []);
573
663
  var tmp_22 = KProperty1;
574
- tmp_20.n23_1 = tmp_21.n1e(this, getPropertyCallableRef('storyIdRegex', 1, tmp_22, CurrentContributionData$_get_storyIdRegex_$ref_3840gk(), null));
664
+ tmp_20.u2j_1 = tmp_21.t1u(this, getPropertyCallableRef('storyIdRegex', 1, tmp_22, CurrentContributionData$_get_storyIdRegex_$ref_3840gk(), null));
575
665
  var tmp_23 = this;
576
666
  var tmp_24 = option(this, []);
577
667
  var tmp_25 = KProperty1;
578
- tmp_23.o23_1 = tmp_24.n1e(this, getPropertyCallableRef('easeRegex', 1, tmp_25, CurrentContributionData$_get_easeRegex_$ref_7e3jiu(), null));
668
+ tmp_23.v2j_1 = tmp_24.t1u(this, getPropertyCallableRef('easeRegex', 1, tmp_25, CurrentContributionData$_get_easeRegex_$ref_7e3jiu(), null));
579
669
  var tmp_26 = this;
580
670
  var tmp_27 = option(this, []);
581
671
  var tmp_28 = KProperty1;
582
- tmp_26.p23_1 = tmp_27.n1e(this, getPropertyCallableRef('tagRegex', 1, tmp_28, CurrentContributionData$_get_tagRegex_$ref_bbekxq(), null));
583
- }
584
- protoOf(CurrentContributionData).m15 = function () {
585
- writeToFile(toJsonString_0(_get_core__d4zfrg_0(this).tl()), _get_outputFile__pta58u_0(this));
586
- // Inline function 'kotlin.also' call
587
- this.b14('Data written to ' + _get_outputFile__pta58u_0(this));
588
- return Unit_instance;
672
+ tmp_26.w2j_1 = tmp_27.t1u(this, getPropertyCallableRef('tagRegex', 1, tmp_28, CurrentContributionData$_get_tagRegex_$ref_bbekxq(), null));
673
+ var tmp_29 = this;
674
+ // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
675
+ var this_0 = option(this, ['--format'], 'Output format: text (writes to file, default) or json (stdout)');
676
+ // Inline function 'kotlin.enumValues' call
677
+ // Inline function 'kotlin.collections.associateBy' call
678
+ var this_1 = values();
679
+ var capacity = coerceAtLeast(mapCapacity(this_1.length), 16);
680
+ // Inline function 'kotlin.collections.associateByTo' call
681
+ var destination = LinkedHashMap_init_$Create$(capacity);
682
+ var inductionVariable = 0;
683
+ var last = this_1.length;
684
+ while (inductionVariable < last) {
685
+ var element = this_1[inductionVariable];
686
+ inductionVariable = inductionVariable + 1 | 0;
687
+ // Inline function 'kotlin.text.lowercase' call
688
+ // Inline function 'kotlin.js.asDynamic' call
689
+ var tmp$ret$4 = element.x2_1.toLowerCase();
690
+ destination.p2(tmp$ret$4, element);
691
+ }
692
+ var tmp$ret$0 = choice(this_0, destination, VOID, true);
693
+ var tmp_30 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
694
+ var tmp_31 = KProperty1;
695
+ tmp_29.x2j_1 = tmp_30.t1u(this, getPropertyCallableRef('format', 1, tmp_31, CurrentContributionData$_get_format_$ref_aid4c(), null));
696
+ }
697
+ protoOf(CurrentContributionData).r1l = function () {
698
+ var jsonString = toJsonString_0(_get_core__d4zfrg_0(this).xm());
699
+ switch (_get_format__qlarck_0(this).y2_1) {
700
+ case 1:
701
+ var dataElement = Default_getInstance().f16(jsonString);
702
+ this.g1k(successResponse(dataElement));
703
+ break;
704
+ case 0:
705
+ writeToFile(jsonString, _get_outputFile__pta58u_0(this));
706
+ // Inline function 'kotlin.also' call
707
+
708
+ this.g1k('Data written to ' + _get_outputFile__pta58u_0(this));
709
+ break;
710
+ default:
711
+ noWhenBranchMatchedException();
712
+ break;
713
+ }
589
714
  };
590
715
  function Digger$lambda($version, $this) {
591
716
  return function ($this$eagerOption) {
592
717
  var it = $version;
593
- var tmp$ret$0 = $this.u10_1 + ' version ' + it;
718
+ var tmp$ret$0 = $this.z1g_1 + ' version ' + it;
594
719
  throw new PrintMessage(tmp$ret$0);
595
720
  };
596
721
  }
597
722
  function Digger() {
598
723
  CliktCommand.call(this);
599
724
  // Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
600
- var version = Versions_instance.r21_1;
725
+ var version = Versions_instance.x2h_1;
601
726
  var help = 'Show the version and exit';
602
727
  var names = setOf('--version');
603
728
  eagerOption(this, names, help, VOID, VOID, VOID, Digger$lambda(version, this));
604
729
  }
605
- protoOf(Digger).m15 = function () {
606
- this.b14('Welcome to Digger CLI.');
730
+ protoOf(Digger).r1l = function () {
731
+ this.g1k('Welcome to Digger CLI.');
732
+ };
733
+ function Companion() {
734
+ }
735
+ protoOf(Companion).u17 = function () {
736
+ return $serializer_getInstance();
737
+ };
738
+ var Companion_instance;
739
+ function Companion_getInstance() {
740
+ return Companion_instance;
741
+ }
742
+ function $serializer() {
743
+ $serializer_instance = this;
744
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.digger.cli.SuccessResponse', this, 2);
745
+ tmp0_serialDesc.lx('status', false);
746
+ tmp0_serialDesc.lx('data', false);
747
+ this.n2k_1 = tmp0_serialDesc;
748
+ }
749
+ protoOf($serializer).o2k = function (encoder, value) {
750
+ var tmp0_desc = this.n2k_1;
751
+ var tmp1_output = encoder.cq(tmp0_desc);
752
+ tmp1_output.qr(tmp0_desc, 0, value.p2k_1);
753
+ tmp1_output.sr(tmp0_desc, 1, JsonElementSerializer_getInstance(), value.q2k_1);
754
+ tmp1_output.dq(tmp0_desc);
755
+ };
756
+ protoOf($serializer).gn = function (encoder, value) {
757
+ return this.o2k(encoder, value instanceof SuccessResponse ? value : THROW_CCE());
758
+ };
759
+ protoOf($serializer).hn = function (decoder) {
760
+ var tmp0_desc = this.n2k_1;
761
+ var tmp1_flag = true;
762
+ var tmp2_index = 0;
763
+ var tmp3_bitMask0 = 0;
764
+ var tmp4_local0 = null;
765
+ var tmp5_local1 = null;
766
+ var tmp6_input = decoder.cq(tmp0_desc);
767
+ if (tmp6_input.sq()) {
768
+ tmp4_local0 = tmp6_input.mq(tmp0_desc, 0);
769
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
770
+ tmp5_local1 = tmp6_input.oq(tmp0_desc, 1, JsonElementSerializer_getInstance(), tmp5_local1);
771
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
772
+ } else
773
+ while (tmp1_flag) {
774
+ tmp2_index = tmp6_input.tq(tmp0_desc);
775
+ switch (tmp2_index) {
776
+ case -1:
777
+ tmp1_flag = false;
778
+ break;
779
+ case 0:
780
+ tmp4_local0 = tmp6_input.mq(tmp0_desc, 0);
781
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
782
+ break;
783
+ case 1:
784
+ tmp5_local1 = tmp6_input.oq(tmp0_desc, 1, JsonElementSerializer_getInstance(), tmp5_local1);
785
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
786
+ break;
787
+ default:
788
+ throw UnknownFieldException_init_$Create$(tmp2_index);
789
+ }
790
+ }
791
+ tmp6_input.dq(tmp0_desc);
792
+ return SuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
793
+ };
794
+ protoOf($serializer).fn = function () {
795
+ return this.n2k_1;
796
+ };
797
+ protoOf($serializer).nx = function () {
798
+ // Inline function 'kotlin.arrayOf' call
799
+ // Inline function 'kotlin.js.unsafeCast' call
800
+ // Inline function 'kotlin.js.asDynamic' call
801
+ return [StringSerializer_getInstance(), JsonElementSerializer_getInstance()];
802
+ };
803
+ var $serializer_instance;
804
+ function $serializer_getInstance() {
805
+ if ($serializer_instance == null)
806
+ new $serializer();
807
+ return $serializer_instance;
808
+ }
809
+ function SuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
810
+ if (!(3 === (3 & seen0))) {
811
+ throwMissingFieldException(seen0, 3, $serializer_getInstance().n2k_1);
812
+ }
813
+ $this.p2k_1 = status;
814
+ $this.q2k_1 = data;
815
+ return $this;
816
+ }
817
+ function SuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
818
+ return SuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(SuccessResponse)));
819
+ }
820
+ function SuccessResponse(status, data) {
821
+ this.p2k_1 = status;
822
+ this.q2k_1 = data;
823
+ }
824
+ protoOf(SuccessResponse).toString = function () {
825
+ return 'SuccessResponse(status=' + this.p2k_1 + ', data=' + toString(this.q2k_1) + ')';
607
826
  };
827
+ protoOf(SuccessResponse).hashCode = function () {
828
+ var result = getStringHashCode(this.p2k_1);
829
+ result = imul(result, 31) + hashCode(this.q2k_1) | 0;
830
+ return result;
831
+ };
832
+ protoOf(SuccessResponse).equals = function (other) {
833
+ if (this === other)
834
+ return true;
835
+ if (!(other instanceof SuccessResponse))
836
+ return false;
837
+ if (!(this.p2k_1 === other.p2k_1))
838
+ return false;
839
+ if (!equals(this.q2k_1, other.q2k_1))
840
+ return false;
841
+ return true;
842
+ };
843
+ function successResponse(data) {
844
+ return Default_getInstance().d16(Companion_instance.u17(), new SuccessResponse('success', data));
845
+ }
608
846
  function main_0(args) {
609
847
  return main(cli(), platformArgCorrection(args));
610
848
  }
@@ -614,11 +852,39 @@
614
852
  function mainWrapper() {
615
853
  main_0([]);
616
854
  }
855
+ var OutputFormat_TEXT_instance;
856
+ var OutputFormat_JSON_instance;
857
+ function values() {
858
+ return [OutputFormat_TEXT_getInstance(), OutputFormat_JSON_getInstance()];
859
+ }
860
+ var OutputFormat_entriesInitialized;
861
+ function OutputFormat_initEntries() {
862
+ if (OutputFormat_entriesInitialized)
863
+ return Unit_instance;
864
+ OutputFormat_entriesInitialized = true;
865
+ OutputFormat_TEXT_instance = new OutputFormat('TEXT', 0);
866
+ OutputFormat_JSON_instance = new OutputFormat('JSON', 1);
867
+ }
868
+ function OutputFormat(name, ordinal) {
869
+ Enum.call(this, name, ordinal);
870
+ }
871
+ function OutputFormat_TEXT_getInstance() {
872
+ OutputFormat_initEntries();
873
+ return OutputFormat_TEXT_instance;
874
+ }
875
+ function OutputFormat_JSON_getInstance() {
876
+ OutputFormat_initEntries();
877
+ return OutputFormat_JSON_instance;
878
+ }
879
+ //region block: post-declaration
880
+ protoOf($serializer).ox = typeParametersSerializers;
881
+ //endregion
617
882
  //region block: init
618
883
  Versions_instance = new Versions();
884
+ Companion_instance = new Companion();
619
885
  //endregion
620
886
  mainWrapper();
621
887
  return _;
622
- }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./tools-digger-core.js'), require('./tools-git-adapter.js'), require('./clikt-clikt-mordant.js'), require('./clikt-clikt.js'), require('./tools-digger-json.js'), require('./tools-cli-tools.js')));
888
+ }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./tools-digger-core.js'), require('./tools-git-adapter.js'), require('./clikt-clikt-mordant.js'), require('./clikt-clikt.js'), require('./tools-digger-json.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./tools-cli-tools.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js')));
623
889
 
624
890
  //# sourceMappingURL=command-line-tools-digger-cli.js.map