git-digger 1.9.22 → 1.9.23

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