@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +969 -2
  3. package/bin/dsbuilder.js +2 -0
  4. package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
  5. package/dist/kotlin/Stately-stately-concurrency.js +32 -0
  6. package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
  7. package/dist/kotlin/Stately-stately-strict.js +12 -0
  8. package/dist/kotlin/clikt-clikt-mordant.js +304 -0
  9. package/dist/kotlin/clikt-clikt.js +6960 -0
  10. package/dist/kotlin/colormath-root-colormath.js +1653 -0
  11. package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
  12. package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
  13. package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
  14. package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
  15. package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
  16. package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
  17. package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
  18. package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
  19. package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
  20. package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
  21. package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
  22. package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
  23. package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
  24. package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
  25. package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
  26. package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
  27. package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
  28. package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
  29. package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
  30. package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
  31. package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
  32. package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
  33. package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
  34. package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
  35. package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
  36. package/dist/kotlin/kotlin-logging.js +440 -0
  37. package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
  38. package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
  39. package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
  40. package/dist/kotlin/kotlinx-atomicfu.js +252 -0
  41. package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
  42. package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
  43. package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
  44. package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
  45. package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
  46. package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
  47. package/dist/kotlin/ktor-ktor-events.js +80 -0
  48. package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
  49. package/dist/kotlin/ktor-ktor-http.js +3320 -0
  50. package/dist/kotlin/ktor-ktor-io.js +3328 -0
  51. package/dist/kotlin/ktor-ktor-serialization.js +8 -0
  52. package/dist/kotlin/ktor-ktor-server-core.js +12 -0
  53. package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
  54. package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
  55. package/dist/kotlin/ktor-ktor-sse.js +8 -0
  56. package/dist/kotlin/ktor-ktor-utils.js +2524 -0
  57. package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
  58. package/dist/kotlin/ktor-ktor-websockets.js +433 -0
  59. package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
  60. package/dist/kotlin/mordant-mordant.js +12111 -0
  61. package/dist/kotlin/okio-parent-okio.js +2335 -0
  62. package/dist/kotlin/projects-core-koin-core.js +1285 -0
  63. package/package.json +26 -5
@@ -0,0 +1,32 @@
1
+ (function (_, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var protoOf = kotlin_kotlin.$_$.te;
5
+ var initMetadataForClass = kotlin_kotlin.$_$.qd;
6
+ //endregion
7
+ //region block: pre-declaration
8
+ initMetadataForClass(ThreadLocalRef, 'ThreadLocalRef', ThreadLocalRef);
9
+ //endregion
10
+ function set_value(_this__u8e3s4, value) {
11
+ _this__u8e3s4.z54(value);
12
+ }
13
+ function ThreadLocalRef() {
14
+ this.y54_1 = null;
15
+ }
16
+ protoOf(ThreadLocalRef).t3 = function () {
17
+ set_value(this, null);
18
+ };
19
+ protoOf(ThreadLocalRef).p14 = function () {
20
+ return this.y54_1;
21
+ };
22
+ protoOf(ThreadLocalRef).z54 = function (value) {
23
+ this.y54_1 = value;
24
+ };
25
+ //region block: exports
26
+ _.$_$ = _.$_$ || {};
27
+ _.$_$.a = ThreadLocalRef;
28
+ //endregion
29
+ return _;
30
+ }(module.exports, require('./kotlin-kotlin-stdlib.js')));
31
+
32
+ //# sourceMappingURL=Stately-stately-concurrency.js.map
@@ -0,0 +1,302 @@
1
+ (function (_, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var Unit_instance = kotlin_kotlin.$_$.r5;
5
+ var VOID = kotlin_kotlin.$_$.c;
6
+ var protoOf = kotlin_kotlin.$_$.te;
7
+ var Collection = kotlin_kotlin.$_$.a6;
8
+ var MutableIterable = kotlin_kotlin.$_$.i6;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.qd;
10
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
11
+ var objectCreate = kotlin_kotlin.$_$.se;
12
+ var KtMutableMap = kotlin_kotlin.$_$.l6;
13
+ var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
14
+ var KtMutableSet = kotlin_kotlin.$_$.m6;
15
+ //endregion
16
+ //region block: pre-declaration
17
+ initMetadataForClass(ConcurrentMutableCollection, 'ConcurrentMutableCollection', VOID, VOID, [Collection, MutableIterable]);
18
+ initMetadataForClass(ConcurrentMutableIterator, 'ConcurrentMutableIterator');
19
+ initMetadataForClass(ConcurrentMutableMap, 'ConcurrentMutableMap', ConcurrentMutableMap_init_$Create$, VOID, [KtMutableMap]);
20
+ initMetadataForClass(ConcurrentMutableSet, 'ConcurrentMutableSet', ConcurrentMutableSet_init_$Create$, ConcurrentMutableCollection, [ConcurrentMutableCollection, KtMutableSet]);
21
+ //endregion
22
+ function ConcurrentMutableCollection$_get_size_$lambda_dssf9y(this$0) {
23
+ return function () {
24
+ return this$0.a55_1.o();
25
+ };
26
+ }
27
+ function ConcurrentMutableCollection$contains$lambda(this$0, $element) {
28
+ return function () {
29
+ return this$0.a55_1.t($element);
30
+ };
31
+ }
32
+ function ConcurrentMutableCollection$containsAll$lambda(this$0, $elements) {
33
+ return function () {
34
+ return this$0.a55_1.x1($elements);
35
+ };
36
+ }
37
+ function ConcurrentMutableCollection$isEmpty$lambda(this$0) {
38
+ return function () {
39
+ return this$0.a55_1.r();
40
+ };
41
+ }
42
+ function ConcurrentMutableCollection$add$lambda(this$0, $element) {
43
+ return function () {
44
+ return this$0.a55_1.j($element);
45
+ };
46
+ }
47
+ function ConcurrentMutableCollection$addAll$lambda(this$0, $elements) {
48
+ return function () {
49
+ return this$0.a55_1.q($elements);
50
+ };
51
+ }
52
+ function ConcurrentMutableCollection$clear$lambda(this$0) {
53
+ return function () {
54
+ this$0.a55_1.i2();
55
+ return Unit_instance;
56
+ };
57
+ }
58
+ function ConcurrentMutableCollection$iterator$lambda(this$0) {
59
+ return function () {
60
+ return new ConcurrentMutableIterator(this$0.b55_1, this$0.a55_1.l());
61
+ };
62
+ }
63
+ function ConcurrentMutableCollection$remove$lambda(this$0, $element) {
64
+ return function () {
65
+ return this$0.a55_1.j2($element);
66
+ };
67
+ }
68
+ function ConcurrentMutableCollection(rootArg, del) {
69
+ rootArg = rootArg === VOID ? null : rootArg;
70
+ this.a55_1 = del;
71
+ var tmp = this;
72
+ tmp.b55_1 = rootArg == null ? this : rootArg;
73
+ }
74
+ protoOf(ConcurrentMutableCollection).o = function () {
75
+ this.b55_1;
76
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
77
+ return ConcurrentMutableCollection$_get_size_$lambda_dssf9y(this)();
78
+ };
79
+ protoOf(ConcurrentMutableCollection).t = function (element) {
80
+ this.b55_1;
81
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
82
+ return ConcurrentMutableCollection$contains$lambda(this, element)();
83
+ };
84
+ protoOf(ConcurrentMutableCollection).x1 = function (elements) {
85
+ this.b55_1;
86
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
87
+ return ConcurrentMutableCollection$containsAll$lambda(this, elements)();
88
+ };
89
+ protoOf(ConcurrentMutableCollection).r = function () {
90
+ this.b55_1;
91
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
92
+ return ConcurrentMutableCollection$isEmpty$lambda(this)();
93
+ };
94
+ protoOf(ConcurrentMutableCollection).j = function (element) {
95
+ this.b55_1;
96
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
97
+ return ConcurrentMutableCollection$add$lambda(this, element)();
98
+ };
99
+ protoOf(ConcurrentMutableCollection).q = function (elements) {
100
+ this.b55_1;
101
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
102
+ return ConcurrentMutableCollection$addAll$lambda(this, elements)();
103
+ };
104
+ protoOf(ConcurrentMutableCollection).i2 = function () {
105
+ this.b55_1;
106
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
107
+ ConcurrentMutableCollection$clear$lambda(this)();
108
+ };
109
+ protoOf(ConcurrentMutableCollection).l = function () {
110
+ this.b55_1;
111
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
112
+ return ConcurrentMutableCollection$iterator$lambda(this)();
113
+ };
114
+ protoOf(ConcurrentMutableCollection).j2 = function (element) {
115
+ this.b55_1;
116
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
117
+ return ConcurrentMutableCollection$remove$lambda(this, element)();
118
+ };
119
+ function ConcurrentMutableIterator$hasNext$lambda(this$0) {
120
+ return function () {
121
+ return this$0.d55_1.m();
122
+ };
123
+ }
124
+ function ConcurrentMutableIterator$next$lambda(this$0) {
125
+ return function () {
126
+ return this$0.d55_1.n();
127
+ };
128
+ }
129
+ function ConcurrentMutableIterator$remove$lambda(this$0) {
130
+ return function () {
131
+ this$0.d55_1.t3();
132
+ return Unit_instance;
133
+ };
134
+ }
135
+ function ConcurrentMutableIterator(root, del) {
136
+ this.c55_1 = root;
137
+ this.d55_1 = del;
138
+ }
139
+ protoOf(ConcurrentMutableIterator).m = function () {
140
+ this.c55_1;
141
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
142
+ return ConcurrentMutableIterator$hasNext$lambda(this)();
143
+ };
144
+ protoOf(ConcurrentMutableIterator).n = function () {
145
+ this.c55_1;
146
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
147
+ return ConcurrentMutableIterator$next$lambda(this)();
148
+ };
149
+ protoOf(ConcurrentMutableIterator).t3 = function () {
150
+ this.c55_1;
151
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
152
+ ConcurrentMutableIterator$remove$lambda(this)();
153
+ };
154
+ function ConcurrentMutableMap_init_$Init$($this) {
155
+ // Inline function 'kotlin.collections.mutableMapOf' call
156
+ var tmp$ret$0 = LinkedHashMap_init_$Create$();
157
+ ConcurrentMutableMap.call($this, null, tmp$ret$0);
158
+ return $this;
159
+ }
160
+ function ConcurrentMutableMap_init_$Create$() {
161
+ return ConcurrentMutableMap_init_$Init$(objectCreate(protoOf(ConcurrentMutableMap)));
162
+ }
163
+ function ConcurrentMutableMap$_get_size_$lambda_nuyc4q(this$0) {
164
+ return function () {
165
+ return this$0.e55_1.o();
166
+ };
167
+ }
168
+ function ConcurrentMutableMap$_get_entries_$lambda_dp7xtt(this$0) {
169
+ return function () {
170
+ return new ConcurrentMutableSet(this$0, this$0.e55_1.w());
171
+ };
172
+ }
173
+ function ConcurrentMutableMap$_get_keys_$lambda_5gjoyr(this$0) {
174
+ return function () {
175
+ return new ConcurrentMutableSet(this$0, this$0.e55_1.d2());
176
+ };
177
+ }
178
+ function ConcurrentMutableMap$_get_values_$lambda_tyvlyt(this$0) {
179
+ return function () {
180
+ return new ConcurrentMutableCollection(this$0, this$0.e55_1.e2());
181
+ };
182
+ }
183
+ function ConcurrentMutableMap$containsKey$lambda(this$0, $key) {
184
+ return function () {
185
+ return this$0.e55_1.a2($key);
186
+ };
187
+ }
188
+ function ConcurrentMutableMap$get$lambda(this$0, $key) {
189
+ return function () {
190
+ return this$0.e55_1.c2($key);
191
+ };
192
+ }
193
+ function ConcurrentMutableMap$isEmpty$lambda(this$0) {
194
+ return function () {
195
+ return this$0.e55_1.r();
196
+ };
197
+ }
198
+ function ConcurrentMutableMap$clear$lambda(this$0) {
199
+ return function () {
200
+ this$0.e55_1.i2();
201
+ return Unit_instance;
202
+ };
203
+ }
204
+ function ConcurrentMutableMap$put$lambda(this$0, $key, $value) {
205
+ return function () {
206
+ return this$0.e55_1.f2($key, $value);
207
+ };
208
+ }
209
+ function ConcurrentMutableMap$putAll$lambda(this$0, $from) {
210
+ return function () {
211
+ this$0.e55_1.h2($from);
212
+ return Unit_instance;
213
+ };
214
+ }
215
+ function ConcurrentMutableMap$remove$lambda(this$0, $key) {
216
+ return function () {
217
+ return this$0.e55_1.g2($key);
218
+ };
219
+ }
220
+ function ConcurrentMutableMap(rootArg, del) {
221
+ rootArg = rootArg === VOID ? null : rootArg;
222
+ this.e55_1 = del;
223
+ var tmp = this;
224
+ tmp.f55_1 = rootArg == null ? this : rootArg;
225
+ }
226
+ protoOf(ConcurrentMutableMap).o = function () {
227
+ this.f55_1;
228
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
229
+ return ConcurrentMutableMap$_get_size_$lambda_nuyc4q(this)();
230
+ };
231
+ protoOf(ConcurrentMutableMap).w = function () {
232
+ this.f55_1;
233
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
234
+ return ConcurrentMutableMap$_get_entries_$lambda_dp7xtt(this)();
235
+ };
236
+ protoOf(ConcurrentMutableMap).d2 = function () {
237
+ this.f55_1;
238
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
239
+ return ConcurrentMutableMap$_get_keys_$lambda_5gjoyr(this)();
240
+ };
241
+ protoOf(ConcurrentMutableMap).e2 = function () {
242
+ this.f55_1;
243
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
244
+ return ConcurrentMutableMap$_get_values_$lambda_tyvlyt(this)();
245
+ };
246
+ protoOf(ConcurrentMutableMap).a2 = function (key) {
247
+ this.f55_1;
248
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
249
+ return ConcurrentMutableMap$containsKey$lambda(this, key)();
250
+ };
251
+ protoOf(ConcurrentMutableMap).c2 = function (key) {
252
+ this.f55_1;
253
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
254
+ return ConcurrentMutableMap$get$lambda(this, key)();
255
+ };
256
+ protoOf(ConcurrentMutableMap).r = function () {
257
+ this.f55_1;
258
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
259
+ return ConcurrentMutableMap$isEmpty$lambda(this)();
260
+ };
261
+ protoOf(ConcurrentMutableMap).i2 = function () {
262
+ this.f55_1;
263
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
264
+ ConcurrentMutableMap$clear$lambda(this)();
265
+ };
266
+ protoOf(ConcurrentMutableMap).f2 = function (key, value) {
267
+ this.f55_1;
268
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
269
+ return ConcurrentMutableMap$put$lambda(this, key, value)();
270
+ };
271
+ protoOf(ConcurrentMutableMap).h2 = function (from) {
272
+ this.f55_1;
273
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
274
+ ConcurrentMutableMap$putAll$lambda(this, from)();
275
+ };
276
+ protoOf(ConcurrentMutableMap).g2 = function (key) {
277
+ this.f55_1;
278
+ // Inline function 'co.touchlab.stately.concurrency.synchronize' call
279
+ return ConcurrentMutableMap$remove$lambda(this, key)();
280
+ };
281
+ function ConcurrentMutableSet_init_$Init$($this) {
282
+ // Inline function 'kotlin.collections.mutableSetOf' call
283
+ var tmp$ret$0 = LinkedHashSet_init_$Create$();
284
+ ConcurrentMutableSet.call($this, null, tmp$ret$0);
285
+ return $this;
286
+ }
287
+ function ConcurrentMutableSet_init_$Create$() {
288
+ return ConcurrentMutableSet_init_$Init$(objectCreate(protoOf(ConcurrentMutableSet)));
289
+ }
290
+ function ConcurrentMutableSet(rootArg, del) {
291
+ ConcurrentMutableCollection.call(this, rootArg, del);
292
+ this.i55_1 = del;
293
+ }
294
+ //region block: exports
295
+ _.$_$ = _.$_$ || {};
296
+ _.$_$.a = ConcurrentMutableMap_init_$Create$;
297
+ _.$_$.b = ConcurrentMutableSet_init_$Create$;
298
+ //endregion
299
+ return _;
300
+ }(module.exports, require('./kotlin-kotlin-stdlib.js')));
301
+
302
+ //# sourceMappingURL=Stately-stately-concurrent-collections.js.map
@@ -0,0 +1,12 @@
1
+ (function (_) {
2
+ 'use strict';
3
+ //region block: pre-declaration
4
+ //endregion
5
+ var strictMemoryModel;
6
+ //region block: init
7
+ strictMemoryModel = false;
8
+ //endregion
9
+ return _;
10
+ }(module.exports));
11
+
12
+ //# sourceMappingURL=Stately-stately-strict.js.map
@@ -0,0 +1,304 @@
1
+ (function (_, kotlin_clikt_clikt, kotlin_kotlin, kotlin_mordant_mordant) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var CoreSuspendingCliktCommand = kotlin_clikt_clikt.$_$.a;
5
+ var VOID = kotlin_kotlin.$_$.c;
6
+ var Unit_instance = kotlin_kotlin.$_$.r5;
7
+ var protoOf = kotlin_kotlin.$_$.te;
8
+ var initMetadataForClass = kotlin_kotlin.$_$.qd;
9
+ var selfAndAncestors = kotlin_clikt_clikt.$_$.i;
10
+ var mapNotNull = kotlin_kotlin.$_$.gg;
11
+ var firstOrNull = kotlin_kotlin.$_$.ag;
12
+ var Terminal_init_$Create$ = kotlin_mordant_mordant.$_$.k;
13
+ var last = kotlin_kotlin.$_$.fg;
14
+ var Terminal = kotlin_mordant_mordant.$_$.e;
15
+ var MultiplatformSystem_instance = kotlin_mordant_mordant.$_$.o;
16
+ var FileNotFound = kotlin_clikt_clikt.$_$.d;
17
+ var Whitespace_NORMAL_getInstance = kotlin_mordant_mordant.$_$.i;
18
+ var Text_init_$Create$ = kotlin_mordant_mordant.$_$.n;
19
+ var AbstractHelpFormatter = kotlin_clikt_clikt.$_$.l;
20
+ var verticalLayout = kotlin_mordant_mordant.$_$.d;
21
+ var charSequenceLength = kotlin_kotlin.$_$.fd;
22
+ var definitionList = kotlin_mordant_mordant.$_$.g;
23
+ var withPadding = kotlin_mordant_mordant.$_$.h;
24
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.y6;
25
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
26
+ var ensureNotNull = kotlin_kotlin.$_$.ol;
27
+ var drop = kotlin_kotlin.$_$.vg;
28
+ var plus = kotlin_kotlin.$_$.wl;
29
+ var Whitespace_PRE_WRAP_getInstance = kotlin_mordant_mordant.$_$.j;
30
+ var isBlank = kotlin_kotlin.$_$.gh;
31
+ var replace = kotlin_kotlin.$_$.ai;
32
+ //endregion
33
+ //region block: pre-declaration
34
+ initMetadataForClass(SuspendingCliktCommand, 'SuspendingCliktCommand', VOID, CoreSuspendingCliktCommand, VOID, [0]);
35
+ initMetadataForClass(MordantHelpFormatter, 'MordantHelpFormatter', VOID, AbstractHelpFormatter);
36
+ //endregion
37
+ function SuspendingCliktCommand(name) {
38
+ name = name === VOID ? null : name;
39
+ CoreSuspendingCliktCommand.call(this, name);
40
+ installMordant(this);
41
+ }
42
+ function get_terminal(_this__u8e3s4) {
43
+ return get_terminal_0(_this__u8e3s4.sco());
44
+ }
45
+ function get_terminal_0(_this__u8e3s4) {
46
+ // Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
47
+ var key = 'mordant_terminal';
48
+ var tmp = selfAndAncestors(_this__u8e3s4);
49
+ var tmp0_elvis_lhs = firstOrNull(mapNotNull(tmp, _get_terminal_$lambda_5keric(key)));
50
+ var tmp_0;
51
+ if (tmp0_elvis_lhs == null) {
52
+ // Inline function 'kotlin.also' call
53
+ var this_0 = Terminal_init_$Create$();
54
+ var tmp0 = last(selfAndAncestors(_this__u8e3s4)).ycq_1;
55
+ // Inline function 'kotlin.collections.set' call
56
+ var key_0 = 'mordant_terminal';
57
+ tmp0.f2(key_0, this_0);
58
+ tmp_0 = this_0;
59
+ } else {
60
+ tmp_0 = tmp0_elvis_lhs;
61
+ }
62
+ return tmp_0;
63
+ }
64
+ function installMordant(_this__u8e3s4, force) {
65
+ force = force === VOID ? false : force;
66
+ _this__u8e3s4.fcp(installMordant$lambda(force));
67
+ }
68
+ function _get_terminal_$lambda_5keric($key) {
69
+ return function (it) {
70
+ var tmp = it.ycq_1.c2($key);
71
+ return tmp instanceof Terminal ? tmp : null;
72
+ };
73
+ }
74
+ function installMordant$lambda$lambda(it) {
75
+ return new MordantHelpFormatter(it);
76
+ }
77
+ function installMordant$lambda$lambda_0(it) {
78
+ return MultiplatformSystem_instance.uc9(it);
79
+ }
80
+ function installMordant$lambda$lambda_1(it) {
81
+ var tmp0_elvis_lhs = MultiplatformSystem_instance.wc9(it);
82
+ var tmp;
83
+ if (tmp0_elvis_lhs == null) {
84
+ throw new FileNotFound(it);
85
+ } else {
86
+ tmp = tmp0_elvis_lhs;
87
+ }
88
+ return tmp;
89
+ }
90
+ function installMordant$lambda$lambda_2(it) {
91
+ MultiplatformSystem_instance.vc9(it);
92
+ return Unit_instance;
93
+ }
94
+ function installMordant$lambda$lambda_3(context, message, trailingNewline, err) {
95
+ if (trailingNewline) {
96
+ get_terminal_0(context).lck(message, VOID, VOID, VOID, VOID, err);
97
+ } else {
98
+ get_terminal_0(context).jck(message, VOID, VOID, VOID, VOID, err);
99
+ }
100
+ return Unit_instance;
101
+ }
102
+ function installMordant$lambda($force) {
103
+ return function ($this$configureContext) {
104
+ var tmp;
105
+ if (!$force && !($this$configureContext.ccs_1 == null)) {
106
+ return Unit_instance;
107
+ }
108
+ var tmp_0 = $this$configureContext;
109
+ tmp_0.hcs_1 = installMordant$lambda$lambda;
110
+ var tmp_1 = $this$configureContext;
111
+ tmp_1.pcs_1 = installMordant$lambda$lambda_0;
112
+ var tmp_2 = $this$configureContext;
113
+ tmp_2.kcs_1 = installMordant$lambda$lambda_1;
114
+ var tmp_3 = $this$configureContext;
115
+ tmp_3.scs_1 = installMordant$lambda$lambda_2;
116
+ var tmp_4 = $this$configureContext;
117
+ tmp_4.rcs_1 = installMordant$lambda$lambda_3;
118
+ return Unit_instance;
119
+ };
120
+ }
121
+ function MordantHelpFormatter$formatHelp$lambda(this$0, $error, $prolog, $epilog, $parameters, $programName) {
122
+ return function ($this$verticalLayout) {
123
+ $this$verticalLayout.ycg(1);
124
+ $this$verticalLayout.vcg(this$0.ncx($error, $prolog, $epilog, $parameters, $programName));
125
+ return Unit_instance;
126
+ };
127
+ }
128
+ function MordantHelpFormatter$renderUsage$lambda($prog, $usageParts) {
129
+ return function ($this$definitionList) {
130
+ $this$definitionList.gcl($prog, Text_init_$Create$($usageParts, Whitespace_NORMAL_getInstance()));
131
+ $this$definitionList.acl_1 = true;
132
+ $this$definitionList.dcl(1);
133
+ return Unit_instance;
134
+ };
135
+ }
136
+ function MordantHelpFormatter$renderProlog$lambda($this$withPadding) {
137
+ $this$withPadding.fci_1 = 2;
138
+ return Unit_instance;
139
+ }
140
+ function MordantHelpFormatter$renderParameters$lambda(this$0, $parameters) {
141
+ return function ($this$definitionList) {
142
+ var _iterator__ex2g4s = this$0.acz($parameters).l();
143
+ while (_iterator__ex2g4s.m()) {
144
+ var section = _iterator__ex2g4s.n();
145
+ $this$definitionList.gcl(section.ucw_1, section.vcw_1);
146
+ }
147
+ return Unit_instance;
148
+ };
149
+ }
150
+ function MordantHelpFormatter$renderOptionGroup$lambda($this$withPadding) {
151
+ $this$withPadding.cci_1 = 1;
152
+ $this$withPadding.fci_1 = 2;
153
+ $this$withPadding.eci_1 = 1;
154
+ return Unit_instance;
155
+ }
156
+ function MordantHelpFormatter$renderOptionGroup$lambda_0($markdown, this$0, $options) {
157
+ return function ($this$verticalLayout) {
158
+ $this$verticalLayout.xcg($markdown);
159
+ $this$verticalLayout.xcg(this$0.kcz($options));
160
+ return Unit_instance;
161
+ };
162
+ }
163
+ function MordantHelpFormatter$buildParameterList$lambda($rows, this$0) {
164
+ return function ($this$definitionList) {
165
+ $this$definitionList.acl_1 = true;
166
+ var _iterator__ex2g4s = $rows.l();
167
+ while (_iterator__ex2g4s.m()) {
168
+ var row = _iterator__ex2g4s.n();
169
+ $this$definitionList.hcl(this$0.gd0(row), this$0.hd0(row));
170
+ }
171
+ return Unit_instance;
172
+ };
173
+ }
174
+ function MordantHelpFormatter(context, requiredOptionMarker, showDefaultValues, showRequiredTag) {
175
+ requiredOptionMarker = requiredOptionMarker === VOID ? null : requiredOptionMarker;
176
+ showDefaultValues = showDefaultValues === VOID ? false : showDefaultValues;
177
+ showRequiredTag = showRequiredTag === VOID ? false : showRequiredTag;
178
+ AbstractHelpFormatter.call(this, context, requiredOptionMarker, showDefaultValues, showRequiredTag);
179
+ }
180
+ protoOf(MordantHelpFormatter).md6 = function () {
181
+ return get_terminal_0(this.bcx_1).qc4_1;
182
+ };
183
+ protoOf(MordantHelpFormatter).zcr = function (error, prolog, epilog, parameters, programName) {
184
+ var widget = verticalLayout(MordantHelpFormatter$formatHelp$lambda(this, error, prolog, epilog, parameters, programName));
185
+ return get_terminal_0(this.bcx_1).nck(widget);
186
+ };
187
+ protoOf(MordantHelpFormatter).pcx = function (parameters, error) {
188
+ return Text_init_$Create$(this.tcx(parameters, error));
189
+ };
190
+ protoOf(MordantHelpFormatter).ocx = function (parameters, programName) {
191
+ var title = this.nd6(this.mcx().bd0());
192
+ var prog = title + ' ' + programName;
193
+ var usageParts = this.xcx(parameters);
194
+ var tmp;
195
+ // Inline function 'kotlin.text.isEmpty' call
196
+ if (charSequenceLength(usageParts) === 0) {
197
+ tmp = Text_init_$Create$(prog, Whitespace_NORMAL_getInstance());
198
+ } else {
199
+ tmp = definitionList(MordantHelpFormatter$renderUsage$lambda(prog, usageParts));
200
+ }
201
+ return tmp;
202
+ };
203
+ protoOf(MordantHelpFormatter).qcx = function (prolog) {
204
+ var tmp = this.od6(prolog);
205
+ return withPadding(tmp, false, MordantHelpFormatter$renderProlog$lambda);
206
+ };
207
+ protoOf(MordantHelpFormatter).scx = function (epilog) {
208
+ return this.od6(epilog);
209
+ };
210
+ protoOf(MordantHelpFormatter).rcx = function (parameters) {
211
+ return definitionList(MordantHelpFormatter$renderParameters$lambda(this, parameters));
212
+ };
213
+ protoOf(MordantHelpFormatter).ycy = function (help, parameters) {
214
+ // Inline function 'kotlin.collections.map' call
215
+ // Inline function 'kotlin.collections.mapTo' call
216
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(parameters, 10));
217
+ var _iterator__ex2g4s = parameters.l();
218
+ while (_iterator__ex2g4s.m()) {
219
+ var item = _iterator__ex2g4s.n();
220
+ var tmp$ret$0 = this.dcz(item);
221
+ destination.j(tmp$ret$0);
222
+ }
223
+ var options = destination;
224
+ if (help == null)
225
+ return this.kcz(options);
226
+ var tmp = this.od6(help);
227
+ var markdown = withPadding(tmp, false, MordantHelpFormatter$renderOptionGroup$lambda);
228
+ return verticalLayout(MordantHelpFormatter$renderOptionGroup$lambda_0(markdown, this, options));
229
+ };
230
+ protoOf(MordantHelpFormatter).jcx = function (name) {
231
+ // Inline function 'kotlin.text.lowercase' call
232
+ // Inline function 'kotlin.js.asDynamic' call
233
+ return '<' + name.toLowerCase() + '>';
234
+ };
235
+ protoOf(MordantHelpFormatter).icz = function (name) {
236
+ return this.md6().pcc('danger').cc2(name);
237
+ };
238
+ protoOf(MordantHelpFormatter).rcz = function (name) {
239
+ return this.md6().pcc('muted').cc2(name);
240
+ };
241
+ protoOf(MordantHelpFormatter).hcx = function (name) {
242
+ return this.md6().pcc('info').cc2(name);
243
+ };
244
+ protoOf(MordantHelpFormatter).kcx = function (name) {
245
+ return this.md6().pcc('info').cc2(name);
246
+ };
247
+ protoOf(MordantHelpFormatter).lcx = function (name) {
248
+ return this.md6().pcc('info').cc2(name);
249
+ };
250
+ protoOf(MordantHelpFormatter).zcy = function (title) {
251
+ return this.md6().pcc('warning').cc2(title);
252
+ };
253
+ protoOf(MordantHelpFormatter).nd6 = function (title) {
254
+ return this.md6().pcc('warning').cc2(title);
255
+ };
256
+ protoOf(MordantHelpFormatter).vcx = function (title) {
257
+ return this.md6().pcc('danger').cc2(title);
258
+ };
259
+ protoOf(MordantHelpFormatter).acy = function (parameter) {
260
+ return this.md6().pcc('muted').cc2(parameter);
261
+ };
262
+ protoOf(MordantHelpFormatter).tcz = function (metavar) {
263
+ return this.md6().pcc('warning').qc8(this.md6().pcc('muted')).cc2(metavar);
264
+ };
265
+ protoOf(MordantHelpFormatter).gd0 = function (row) {
266
+ var tmp;
267
+ // Inline function 'kotlin.text.isNullOrEmpty' call
268
+ var this_0 = row.ycw_1;
269
+ if (this_0 == null || charSequenceLength(this_0) === 0) {
270
+ tmp = ' ';
271
+ } else {
272
+ // Inline function 'kotlin.text.ifEmpty' call
273
+ var this_1 = drop(' ', ensureNotNull(row.ycw_1).length);
274
+ var tmp_0;
275
+ // Inline function 'kotlin.text.isEmpty' call
276
+ if (charSequenceLength(this_1) === 0) {
277
+ tmp_0 = ' ';
278
+ } else {
279
+ tmp_0 = this_1;
280
+ }
281
+ var tmp$ret$3 = tmp_0;
282
+ tmp = plus(row.ycw_1, tmp$ret$3);
283
+ }
284
+ var termPrefix = tmp;
285
+ return Text_init_$Create$(termPrefix + row.wcw_1, Whitespace_PRE_WRAP_getInstance());
286
+ };
287
+ protoOf(MordantHelpFormatter).hd0 = function (row) {
288
+ return isBlank(row.xcw_1) ? Text_init_$Create$('') : this.od6(row.xcw_1);
289
+ };
290
+ protoOf(MordantHelpFormatter).kcz = function (rows) {
291
+ return definitionList(MordantHelpFormatter$buildParameterList$lambda(rows, this));
292
+ };
293
+ protoOf(MordantHelpFormatter).od6 = function (text) {
294
+ return Text_init_$Create$(replace(text, '\n\n', '\x85\x85'), Whitespace_NORMAL_getInstance());
295
+ };
296
+ //region block: exports
297
+ _.$_$ = _.$_$ || {};
298
+ _.$_$.a = SuspendingCliktCommand;
299
+ _.$_$.b = get_terminal;
300
+ //endregion
301
+ return _;
302
+ }(module.exports, require('./clikt-clikt.js'), require('./kotlin-kotlin-stdlib.js'), require('./mordant-mordant.js')));
303
+
304
+ //# sourceMappingURL=clikt-clikt-mordant.js.map