@sphereon/idk-lib-data-store-kv-impl 0.25.0-SNAPSHOT-build-8529934
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.
|
@@ -0,0 +1,4150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
THROW_IAE23kobfj9wdoxr as THROW_IAE,
|
|
3
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
4
|
+
Enum3alwj03lh1n41 as Enum,
|
|
5
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
6
|
+
defineProp3ur6h3slcvq4x as defineProp,
|
|
7
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
8
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
9
|
+
Companion_getInstanceymhgfdhph325 as Companion_getInstance,
|
|
10
|
+
hexToByteArrayj26yk4970vc7 as hexToByteArray,
|
|
11
|
+
toHexString5bhtjxqec7ow as toHexString,
|
|
12
|
+
StringBuilder_init_$Create$3ds9zx2kx9u4d as StringBuilder_init_$Create$,
|
|
13
|
+
toByte4i43936u611k as toByte,
|
|
14
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
15
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
16
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
17
|
+
indexOf1xbs558u7wr52 as indexOf,
|
|
18
|
+
toString22rbkbhdb5cl2 as toString,
|
|
19
|
+
toString1pkumu07cwy4m as toString_0,
|
|
20
|
+
IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
|
|
21
|
+
copyOfRange3alro60z4hhf8 as copyOfRange,
|
|
22
|
+
primitiveArrayConcatwxgknw08pmlb as primitiveArrayConcat,
|
|
23
|
+
encodeToByteArray1onwao0uakjfh as encodeToByteArray,
|
|
24
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
25
|
+
decodeToString1x4faah2liw2p as decodeToString,
|
|
26
|
+
replace3le3ie7l9k8aq as replace,
|
|
27
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
28
|
+
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
29
|
+
charArrayOf27f4r3dozbrk1 as charArrayOf,
|
|
30
|
+
trimEndvvzjdhan75g as trimEnd,
|
|
31
|
+
Char__toInt_impl_vasixdnyockrdnmht5 as Char__toInt_impl_vasixd,
|
|
32
|
+
copyOfwy6h3t5vzqpl as copyOf,
|
|
33
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
34
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
35
|
+
toString30pk9tzaqopn as toString_1,
|
|
36
|
+
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
37
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
38
|
+
equals2au1ep9vhcato as equals,
|
|
39
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
40
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
41
|
+
emptyMapr06gerzljqtm as emptyMap,
|
|
42
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
43
|
+
emptyList1g2z5xcrvp2zy as emptyList,
|
|
44
|
+
to2cs3ny02qtbcb as to,
|
|
45
|
+
mapOf2zpbbmyqk8xpf as mapOf,
|
|
46
|
+
mapOf1xd03cq9cnmy8 as mapOf_0,
|
|
47
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
48
|
+
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
49
|
+
joinToString1cxrrlmo0chqs as joinToString,
|
|
50
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
|
|
51
|
+
LinkedHashMap_init_$Create$2tibire69n089 as LinkedHashMap_init_$Create$,
|
|
52
|
+
KtMutableList1beimitadwkna as KtMutableList,
|
|
53
|
+
LazyThreadSafetyMode_PUBLICATION_getInstance3qslfm3vqg6y3 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
54
|
+
lazy1261dae0bgscp as lazy,
|
|
55
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
56
|
+
LinkedHashSet_init_$Create$t7gzf3ihb6pk as LinkedHashSet_init_$Create$,
|
|
57
|
+
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
58
|
+
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
59
|
+
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
60
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
61
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
62
|
+
toList383f556t1dixk as toList,
|
|
63
|
+
toSet1glep2u1u9tcb as toSet,
|
|
64
|
+
Companion_getInstancec1c8yhxwuclv as Companion_getInstance_0,
|
|
65
|
+
endsWith278181ii8uuo as endsWith,
|
|
66
|
+
split2bvyvnrlcifjv as split,
|
|
67
|
+
Comparable198qfk8pnblz0 as Comparable,
|
|
68
|
+
System_instance3k0g5wk7vsmvs as System_instance,
|
|
69
|
+
lazy2hsh8ze7j6ikd as lazy_0,
|
|
70
|
+
convertToInty04h231mmjoh as convertToInt,
|
|
71
|
+
fromInt2ii0rejb1w62w as fromInt,
|
|
72
|
+
Companion_getInstance1bxbth0yni76u as Companion_getInstance_1,
|
|
73
|
+
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
|
|
74
|
+
Duration5ynfiptaqcrg as Duration,
|
|
75
|
+
Duration__hashCode_impl_u4exz63qse1fi71v75y as Duration__hashCode_impl_u4exz6,
|
|
76
|
+
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
77
|
+
Comparator2b3maoeh98xtg as Comparator,
|
|
78
|
+
compareValues1n2ayl87ihzfk as compareValues,
|
|
79
|
+
sortedWith2csnbbb21k0lg as sortedWith,
|
|
80
|
+
enumEntries20mr21zbe3az4 as enumEntries,
|
|
81
|
+
numberToLong2pakxeg38estk as numberToLong,
|
|
82
|
+
} from '../kotlin-kotlin-stdlib.mjs';
|
|
83
|
+
import {
|
|
84
|
+
_Result___get_isOk__impl__qbhaup1tqxnca0qn7sa as _Result___get_isOk__impl__qbhaup,
|
|
85
|
+
_Result___get_isErr__impl__gwfsa61pgzxsa7sw7ep as _Result___get_isErr__impl__gwfsa6,
|
|
86
|
+
_Result___get_value__impl__bjfvqg3pdjhj1ntjbaj as _Result___get_value__impl__bjfvqg,
|
|
87
|
+
_Result___get_error__impl__ihqhun2yewd2st3zd9i as _Result___get_error__impl__ihqhun,
|
|
88
|
+
Result__toString_impl_yu5r8k3px8kujiiitct as Result__toString_impl_yu5r8k,
|
|
89
|
+
Result2tvnpjv968m0t as Result,
|
|
90
|
+
Okgbeuzrvz3pzw as Ok,
|
|
91
|
+
Err2it8fu7wxp6jc as Err,
|
|
92
|
+
getOr3nj1oitjkqqho as getOr,
|
|
93
|
+
get21btg1tawfpz8 as get,
|
|
94
|
+
getErrorh2t8yglt5pwl as getError,
|
|
95
|
+
} from '../kotlin-result-kotlin-result.mjs';
|
|
96
|
+
import {
|
|
97
|
+
createSimpleEnumSerializer2guioz11kk1m0 as createSimpleEnumSerializer,
|
|
98
|
+
SerializableWithd2dap36updxd as SerializableWith,
|
|
99
|
+
SerializersModuleBuilderfxsfdohcdipc as SerializersModuleBuilder,
|
|
100
|
+
STRING_getInstance3lkmlozu5h7cs as STRING_getInstance,
|
|
101
|
+
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
|
|
102
|
+
KSerializerzf77vz1967fq as KSerializer,
|
|
103
|
+
} from '../kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
104
|
+
import { Jsonsmkyu9xjl7fv as Json } from '../kotlinx-serialization-kotlinx-serialization-json.mjs';
|
|
105
|
+
import {
|
|
106
|
+
Companion_getInstance3esse2olsxwcn as Companion_getInstance_2,
|
|
107
|
+
Companion_getInstance3fr80ko02pro7 as Companion_getInstance_3,
|
|
108
|
+
toLocalDateTime2fafgh396r2y5 as toLocalDateTime,
|
|
109
|
+
LocalDateTime_init_$Create$xqcyq2elero8 as LocalDateTime_init_$Create$,
|
|
110
|
+
toInstant2ixtmlbww6j32 as toInstant,
|
|
111
|
+
Formats_getInstance2g1mkej1f99nd as Formats_getInstance,
|
|
112
|
+
format2n4cpzximuj7a as format,
|
|
113
|
+
} from '../Kotlin-DateTime-library-kotlinx-datetime.mjs';
|
|
114
|
+
//region block: imports
|
|
115
|
+
var imul = Math.imul;
|
|
116
|
+
//endregion
|
|
117
|
+
//region block: pre-declaration
|
|
118
|
+
initMetadataForClass(Encoding, 'Encoding', VOID, Enum);
|
|
119
|
+
initMetadataForCompanion(Companion);
|
|
120
|
+
initMetadataForClass(IdkResult, 'IdkResult');
|
|
121
|
+
initMetadataForClass(Ok_0, 'Ok', VOID, IdkResult);
|
|
122
|
+
initMetadataForClass(Err_0, 'Err', VOID, IdkResult);
|
|
123
|
+
function get_category() {
|
|
124
|
+
return ErrorCategory_INTERNAL_getInstance();
|
|
125
|
+
}
|
|
126
|
+
initMetadataForInterface(IdkErrorType, 'IdkErrorType');
|
|
127
|
+
initMetadataForClass(Severity, 'Severity', VOID, Enum);
|
|
128
|
+
initMetadataForClass(Message, 'Message');
|
|
129
|
+
initMetadataForCompanion(Companion_0);
|
|
130
|
+
initMetadataForClass(IdkError, 'IdkError', VOID, VOID, [IdkErrorType]);
|
|
131
|
+
function get_category_0() {
|
|
132
|
+
return ErrorCategory_INTERNAL_getInstance();
|
|
133
|
+
}
|
|
134
|
+
function asError(i18nParams, exception, causes, meta, severity, category) {
|
|
135
|
+
return Companion_instance_0.w15(this, i18nParams, causes, meta, severity, category, exception);
|
|
136
|
+
}
|
|
137
|
+
function asError_0(i18nParams, exception, causes, meta, severity, category, $super) {
|
|
138
|
+
i18nParams = i18nParams === VOID ? emptyMap() : i18nParams;
|
|
139
|
+
exception = exception === VOID ? null : exception;
|
|
140
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
141
|
+
meta = meta === VOID ? emptyMap() : meta;
|
|
142
|
+
severity = severity === VOID ? this.severity : severity;
|
|
143
|
+
category = category === VOID ? this.category : category;
|
|
144
|
+
return $super === VOID ? this.c17(i18nParams, exception, causes, meta, severity, category) : VOID.asError(i18nParams, exception, causes, meta, severity, category);
|
|
145
|
+
}
|
|
146
|
+
function asResult(i18nParams, exception, causes, meta, severity, category) {
|
|
147
|
+
return IdkErrorResult(this.asError(i18nParams, exception, causes, meta, severity, category));
|
|
148
|
+
}
|
|
149
|
+
function asResult_0(i18nParams, exception, causes, meta, severity, category, $super) {
|
|
150
|
+
i18nParams = i18nParams === VOID ? emptyMap() : i18nParams;
|
|
151
|
+
exception = exception === VOID ? null : exception;
|
|
152
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
153
|
+
meta = meta === VOID ? emptyMap() : meta;
|
|
154
|
+
severity = severity === VOID ? this.severity : severity;
|
|
155
|
+
category = category === VOID ? this.category : category;
|
|
156
|
+
return $super === VOID ? this.d17(i18nParams, exception, causes, meta, severity, category) : VOID.asResult(i18nParams, exception, causes, meta, severity, category);
|
|
157
|
+
}
|
|
158
|
+
initMetadataForInterface(ErrorDefinitionType, 'ErrorDefinitionType');
|
|
159
|
+
initMetadataForCompanion(Companion_1);
|
|
160
|
+
initMetadataForClass(ErrorCategory, 'ErrorCategory', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_6});
|
|
161
|
+
initMetadataForObject(EventSubsystems, 'EventSubsystems');
|
|
162
|
+
initMetadataForObject(JsonSupport, 'JsonSupport');
|
|
163
|
+
initMetadataForClass(LogOutputFormat, 'LogOutputFormat', VOID, Enum);
|
|
164
|
+
initMetadataForClass(LogMessage, 'LogMessage');
|
|
165
|
+
initMetadataForClass(LogLevel, 'LogLevel', VOID, Enum);
|
|
166
|
+
initMetadataForCompanion(Companion_2);
|
|
167
|
+
initMetadataForClass(LoggerConfig, 'LoggerConfig', LoggerConfig);
|
|
168
|
+
function get_minExecutions() {
|
|
169
|
+
return 1;
|
|
170
|
+
}
|
|
171
|
+
initMetadataForInterface(IChainCommandConfig, 'IChainCommandConfig');
|
|
172
|
+
initMetadataForClass(BaseChainCommand$config$1, VOID, VOID, VOID, [IChainCommandConfig]);
|
|
173
|
+
function supports(args, $completion) {
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
function getOrElse(_this__u8e3s4, default_0) {
|
|
177
|
+
return _this__u8e3s4.isOk ? _this__u8e3s4.value : default_0;
|
|
178
|
+
}
|
|
179
|
+
function andThenCommand(_this__u8e3s4, nextCommand, $completion) {
|
|
180
|
+
var tmp = new $andThenCommandCOROUTINE$(this, _this__u8e3s4, nextCommand, $completion);
|
|
181
|
+
tmp.z7_1 = Unit_instance;
|
|
182
|
+
tmp.a8_1 = null;
|
|
183
|
+
return tmp.y19();
|
|
184
|
+
}
|
|
185
|
+
function andThen(_this__u8e3s4, next, errorMapper) {
|
|
186
|
+
return new BaseCommand$andThen$1(_this__u8e3s4, next, errorMapper);
|
|
187
|
+
}
|
|
188
|
+
function andThen_0(_this__u8e3s4, next) {
|
|
189
|
+
return _this__u8e3s4.f19(_this__u8e3s4, next, IdkErrorCommandErrorMapper_instance);
|
|
190
|
+
}
|
|
191
|
+
initMetadataForInterface(BaseCommand, 'BaseCommand', VOID, VOID, VOID, [1, 2]);
|
|
192
|
+
function get_config() {
|
|
193
|
+
return new BaseChainCommand$config$1();
|
|
194
|
+
}
|
|
195
|
+
initMetadataForInterface(BaseChainCommand, 'BaseChainCommand', VOID, VOID, [BaseCommand], [1, 2]);
|
|
196
|
+
initMetadataForInterface(BasePipelineCommand, 'BasePipelineCommand', VOID, VOID, [BaseCommand], [1, 2]);
|
|
197
|
+
function get_subsystem() {
|
|
198
|
+
return EventSubsystems_getInstance().r17_1;
|
|
199
|
+
}
|
|
200
|
+
initMetadataForInterface(Command, 'Command', VOID, VOID, [BaseCommand], [1, 2]);
|
|
201
|
+
initMetadataForInterface(ChainCommand, 'ChainCommand', VOID, VOID, [Command, BaseChainCommand], [1, 2]);
|
|
202
|
+
initMetadataForInterface(PipelineCommand, 'PipelineCommand', VOID, VOID, [Command, BasePipelineCommand], [1, 2]);
|
|
203
|
+
function hasId(id) {
|
|
204
|
+
return !(this.getById(id) == null);
|
|
205
|
+
}
|
|
206
|
+
initMetadataForInterface(MultiService, 'MultiService', VOID, VOID, [PipelineCommand], [1, 2]);
|
|
207
|
+
function beforeInit(service) {
|
|
208
|
+
}
|
|
209
|
+
function afterInit(service) {
|
|
210
|
+
}
|
|
211
|
+
initMetadataForInterface(ICommandInitExtension, 'ICommandInitExtension');
|
|
212
|
+
initMetadataForClass(CommandExecutionPhase, 'CommandExecutionPhase', VOID, Enum);
|
|
213
|
+
function beforeExecute(service, args) {
|
|
214
|
+
}
|
|
215
|
+
function duringExecute(service, args) {
|
|
216
|
+
return args;
|
|
217
|
+
}
|
|
218
|
+
function afterExecute(service, args, result) {
|
|
219
|
+
}
|
|
220
|
+
initMetadataForInterface(ICommandExecutionExtension, 'ICommandExecutionExtension');
|
|
221
|
+
function onBeforeExecute(serviceId, args) {
|
|
222
|
+
}
|
|
223
|
+
function onDuringExecute(serviceId, args) {
|
|
224
|
+
return args;
|
|
225
|
+
}
|
|
226
|
+
function onAfterExecute(serviceId, args, result) {
|
|
227
|
+
}
|
|
228
|
+
initMetadataForInterface(ICommandExecutionListener, 'ICommandExecutionListener');
|
|
229
|
+
initMetadataForCoroutine($supportsCOROUTINE$, CoroutineImpl);
|
|
230
|
+
initMetadataForCoroutine($executeCOROUTINE$, CoroutineImpl);
|
|
231
|
+
initMetadataForClass(BaseCommand$andThen$1, VOID, VOID, VOID, [BaseCommand], [1, 2]);
|
|
232
|
+
initMetadataForCoroutine($andThenCommandCOROUTINE$, CoroutineImpl);
|
|
233
|
+
initMetadataForObject(IdkErrorCommandErrorMapper, 'IdkErrorCommandErrorMapper');
|
|
234
|
+
initMetadataForObject(CommandErrors, 'CommandErrors');
|
|
235
|
+
initMetadataForCoroutine($supportsOrErrorCOROUTINE$, CoroutineImpl);
|
|
236
|
+
initMetadataForCompanion(Companion_3);
|
|
237
|
+
initMetadataForClass(LocalDateTimeKMP, 'LocalDateTimeKMP', VOID, VOID, [Comparable], VOID, VOID, {0: LocalDateTimeIso8601SerializerKMP_getInstance});
|
|
238
|
+
initMetadataForObject(LocalDateTimeIso8601SerializerKMP, 'LocalDateTimeIso8601SerializerKMP', VOID, VOID, [KSerializer]);
|
|
239
|
+
initMetadataForCompanion(Companion_4);
|
|
240
|
+
initMetadataForClass(DateTimeUtils, 'DateTimeUtils', DateTimeUtils);
|
|
241
|
+
initMetadataForObject(DateTimeUtilsDefault, 'DateTimeUtilsDefault');
|
|
242
|
+
initMetadataForObject(Uuid, 'Uuid');
|
|
243
|
+
initMetadataForInterface(TenantContextData, 'TenantContextData');
|
|
244
|
+
initMetadataForClass(TenantContextDataImpl, 'TenantContextDataImpl', VOID, VOID, [TenantContextData]);
|
|
245
|
+
initMetadataForCompanion(Companion_5);
|
|
246
|
+
initMetadataForInterface(TenantAware, 'TenantAware');
|
|
247
|
+
initMetadataForInterface(PrincipalAware, 'PrincipalAware');
|
|
248
|
+
initMetadataForInterface(UserContext, 'UserContext', VOID, VOID, [TenantAware, PrincipalAware]);
|
|
249
|
+
initMetadataForInterface(SecuredTenantContextDetails, 'SecuredTenantContextDetails');
|
|
250
|
+
initMetadataForInterface(UserSecuredContext, 'UserSecuredContext', VOID, VOID, [UserContext]);
|
|
251
|
+
initMetadataForInterface(ContextAware, 'ContextAware');
|
|
252
|
+
initMetadataForClass(UserScope, 'UserScope');
|
|
253
|
+
initMetadataForInterface(ISessionContextAware, 'ISessionContextAware');
|
|
254
|
+
initMetadataForClass(SessionScope, 'SessionScope');
|
|
255
|
+
initMetadataForInterface(PromptRegistry, 'PromptRegistry');
|
|
256
|
+
initMetadataForClass(CancelReason, 'CancelReason', VOID, Enum);
|
|
257
|
+
initMetadataForCompanion(Companion_6);
|
|
258
|
+
initMetadataForClass(PromptId, 'PromptId');
|
|
259
|
+
initMetadataForCompanion(Companion_7);
|
|
260
|
+
initMetadataForClass(PromptPresentationHint, 'PromptPresentationHint', PromptPresentationHint);
|
|
261
|
+
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
262
|
+
initMetadataForCompanion(Companion_8);
|
|
263
|
+
initMetadataForClass(PromptPriority, 'PromptPriority', VOID, Enum);
|
|
264
|
+
initMetadataForInterface(PromptRequest, 'PromptRequest');
|
|
265
|
+
function get_show() {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
function get_subtitle() {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
initMetadataForInterface(SinglePromptRequest, 'SinglePromptRequest', VOID, VOID, [PromptRequest]);
|
|
272
|
+
initMetadataForClass(NfcPromptRequest, 'NfcPromptRequest', VOID, VOID, [SinglePromptRequest]);
|
|
273
|
+
initMetadataForClass(BiometricPromptRequest, 'BiometricPromptRequest', VOID, VOID, [SinglePromptRequest]);
|
|
274
|
+
initMetadataForClass(BiometricUnlockPromptRequest, 'BiometricUnlockPromptRequest', VOID, VOID, [SinglePromptRequest]);
|
|
275
|
+
initMetadataForClass(PassphrasePromptRequest, 'PassphrasePromptRequest', VOID, VOID, [SinglePromptRequest]);
|
|
276
|
+
initMetadataForClass(ConfirmationPromptRequest, 'ConfirmationPromptRequest', VOID, VOID, [SinglePromptRequest]);
|
|
277
|
+
initMetadataForInterface(PromptResponse, 'PromptResponse');
|
|
278
|
+
initMetadataForClass(PromptState, 'PromptState', VOID, Enum);
|
|
279
|
+
initMetadataForClass(ForegroundState, 'ForegroundState', VOID, Enum);
|
|
280
|
+
initMetadataForInterface(PromptPresenter, 'PromptPresenter');
|
|
281
|
+
function get_isFinal() {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
function get_data() {
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
287
|
+
initMetadataForInterface(WizardStep, 'WizardStep');
|
|
288
|
+
//endregion
|
|
289
|
+
var Encoding_BASE64_instance;
|
|
290
|
+
var Encoding_BASE64URL_instance;
|
|
291
|
+
var Encoding_BASE58BTC_instance;
|
|
292
|
+
var Encoding_HEX_instance;
|
|
293
|
+
var Encoding_UTF8_instance;
|
|
294
|
+
function values() {
|
|
295
|
+
return [Encoding_BASE64_getInstance(), Encoding_BASE64URL_getInstance(), Encoding_BASE58BTC_getInstance(), Encoding_HEX_getInstance(), Encoding_UTF8_getInstance()];
|
|
296
|
+
}
|
|
297
|
+
function valueOf(value) {
|
|
298
|
+
switch (value) {
|
|
299
|
+
case 'BASE64':
|
|
300
|
+
return Encoding_BASE64_getInstance();
|
|
301
|
+
case 'BASE64URL':
|
|
302
|
+
return Encoding_BASE64URL_getInstance();
|
|
303
|
+
case 'BASE58BTC':
|
|
304
|
+
return Encoding_BASE58BTC_getInstance();
|
|
305
|
+
case 'HEX':
|
|
306
|
+
return Encoding_HEX_getInstance();
|
|
307
|
+
case 'UTF8':
|
|
308
|
+
return Encoding_UTF8_getInstance();
|
|
309
|
+
default:
|
|
310
|
+
Encoding_initEntries();
|
|
311
|
+
THROW_IAE('No enum constant com.sphereon.core.api.Encoding.' + value);
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
var Encoding_entriesInitialized;
|
|
316
|
+
function Encoding_initEntries() {
|
|
317
|
+
if (Encoding_entriesInitialized)
|
|
318
|
+
return Unit_instance;
|
|
319
|
+
Encoding_entriesInitialized = true;
|
|
320
|
+
Encoding_BASE64_instance = new Encoding('BASE64', 0);
|
|
321
|
+
Encoding_BASE64URL_instance = new Encoding('BASE64URL', 1);
|
|
322
|
+
Encoding_BASE58BTC_instance = new Encoding('BASE58BTC', 2);
|
|
323
|
+
Encoding_HEX_instance = new Encoding('HEX', 3);
|
|
324
|
+
Encoding_UTF8_instance = new Encoding('UTF8', 4);
|
|
325
|
+
}
|
|
326
|
+
function Encoding(name, ordinal) {
|
|
327
|
+
Enum.call(this, name, ordinal);
|
|
328
|
+
}
|
|
329
|
+
function decodeFromHex(_this__u8e3s4) {
|
|
330
|
+
return hexToByteArray(_this__u8e3s4, Companion_getInstance().bc_1);
|
|
331
|
+
}
|
|
332
|
+
function encodeToHex(_this__u8e3s4) {
|
|
333
|
+
return toHexString(_this__u8e3s4, Companion_getInstance().bc_1);
|
|
334
|
+
}
|
|
335
|
+
function encodeToBase58Btc(_this__u8e3s4) {
|
|
336
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
337
|
+
if (_this__u8e3s4.length === 0)
|
|
338
|
+
return '';
|
|
339
|
+
var leadingZeros = 0;
|
|
340
|
+
var inductionVariable = 0;
|
|
341
|
+
var last = _this__u8e3s4.length;
|
|
342
|
+
$l$loop: while (inductionVariable < last) {
|
|
343
|
+
var byte = _this__u8e3s4[inductionVariable];
|
|
344
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
345
|
+
if (byte === 0) {
|
|
346
|
+
leadingZeros = leadingZeros + 1 | 0;
|
|
347
|
+
} else
|
|
348
|
+
break $l$loop;
|
|
349
|
+
}
|
|
350
|
+
// Inline function 'kotlin.collections.copyOf' call
|
|
351
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
352
|
+
var input = _this__u8e3s4.slice();
|
|
353
|
+
var result = StringBuilder_init_$Create$();
|
|
354
|
+
var inputStart = 0;
|
|
355
|
+
while (inputStart < input.length) {
|
|
356
|
+
var remainder = 0;
|
|
357
|
+
var allZero = true;
|
|
358
|
+
var inductionVariable_0 = inputStart;
|
|
359
|
+
var last_0 = input.length;
|
|
360
|
+
if (inductionVariable_0 < last_0)
|
|
361
|
+
do {
|
|
362
|
+
var i = inductionVariable_0;
|
|
363
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
364
|
+
var value = (input[i] & 255) + imul(remainder, 256) | 0;
|
|
365
|
+
input[i] = toByte(value / 58 | 0);
|
|
366
|
+
remainder = value % 58 | 0;
|
|
367
|
+
if (!(input[i] === 0))
|
|
368
|
+
allZero = false;
|
|
369
|
+
}
|
|
370
|
+
while (inductionVariable_0 < last_0);
|
|
371
|
+
result.q7(charCodeAt('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz', remainder));
|
|
372
|
+
if (allZero || input[inputStart] === 0) {
|
|
373
|
+
while (inputStart < input.length && input[inputStart] === 0) {
|
|
374
|
+
inputStart = inputStart + 1 | 0;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
// Inline function 'kotlin.repeat' call
|
|
379
|
+
var times = leadingZeros;
|
|
380
|
+
var inductionVariable_1 = 0;
|
|
381
|
+
if (inductionVariable_1 < times)
|
|
382
|
+
do {
|
|
383
|
+
var index = inductionVariable_1;
|
|
384
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
385
|
+
result.q7(_Char___init__impl__6a9atx(49));
|
|
386
|
+
}
|
|
387
|
+
while (inductionVariable_1 < times);
|
|
388
|
+
return result.j9().toString();
|
|
389
|
+
}
|
|
390
|
+
function decodeFromBase58Btc(_this__u8e3s4) {
|
|
391
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
392
|
+
if (charSequenceLength(_this__u8e3s4) === 0)
|
|
393
|
+
return new Int8Array(0);
|
|
394
|
+
var leadingOnes = 0;
|
|
395
|
+
var inductionVariable = 0;
|
|
396
|
+
var last = _this__u8e3s4.length;
|
|
397
|
+
$l$loop: while (inductionVariable < last) {
|
|
398
|
+
var char = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
399
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
400
|
+
if (char === _Char___init__impl__6a9atx(49)) {
|
|
401
|
+
leadingOnes = leadingOnes + 1 | 0;
|
|
402
|
+
} else
|
|
403
|
+
break $l$loop;
|
|
404
|
+
}
|
|
405
|
+
var size = (imul(_this__u8e3s4.length, 733) / 1000 | 0) + 1 | 0;
|
|
406
|
+
var output = new Int8Array(size);
|
|
407
|
+
var inductionVariable_0 = 0;
|
|
408
|
+
var last_0 = _this__u8e3s4.length;
|
|
409
|
+
while (inductionVariable_0 < last_0) {
|
|
410
|
+
var char_0 = charCodeAt(_this__u8e3s4, inductionVariable_0);
|
|
411
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
412
|
+
var index = indexOf('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz', char_0);
|
|
413
|
+
// Inline function 'kotlin.require' call
|
|
414
|
+
if (!(index >= 0)) {
|
|
415
|
+
var message = 'Invalid base58 character: ' + toString(char_0);
|
|
416
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
417
|
+
}
|
|
418
|
+
var carry = index;
|
|
419
|
+
var inductionVariable_1 = output.length - 1 | 0;
|
|
420
|
+
if (0 <= inductionVariable_1)
|
|
421
|
+
do {
|
|
422
|
+
var i = inductionVariable_1;
|
|
423
|
+
inductionVariable_1 = inductionVariable_1 + -1 | 0;
|
|
424
|
+
carry = carry + imul(58, output[i] & 255) | 0;
|
|
425
|
+
output[i] = toByte(carry & 255);
|
|
426
|
+
carry = carry >> 8;
|
|
427
|
+
}
|
|
428
|
+
while (0 <= inductionVariable_1);
|
|
429
|
+
}
|
|
430
|
+
var start = 0;
|
|
431
|
+
while (start < output.length && output[start] === 0) {
|
|
432
|
+
start = start + 1 | 0;
|
|
433
|
+
}
|
|
434
|
+
var tmp = 0;
|
|
435
|
+
var tmp_0 = leadingOnes;
|
|
436
|
+
var tmp_1 = new Int8Array(tmp_0);
|
|
437
|
+
while (tmp < tmp_0) {
|
|
438
|
+
tmp_1[tmp] = 0;
|
|
439
|
+
tmp = tmp + 1 | 0;
|
|
440
|
+
}
|
|
441
|
+
// Inline function 'kotlin.collections.plus' call
|
|
442
|
+
var elements = copyOfRange(output, start, output.length);
|
|
443
|
+
return primitiveArrayConcat([tmp_1, elements]);
|
|
444
|
+
}
|
|
445
|
+
function decodeFromBase64Url(_this__u8e3s4) {
|
|
446
|
+
return decodeFromBase64Internal(_this__u8e3s4, true);
|
|
447
|
+
}
|
|
448
|
+
function encodeToBase64Url(_this__u8e3s4) {
|
|
449
|
+
return encodeToBase64Internal(_this__u8e3s4, true, false);
|
|
450
|
+
}
|
|
451
|
+
function encodeToBase64(_this__u8e3s4, urlSafe) {
|
|
452
|
+
urlSafe = urlSafe === VOID ? false : urlSafe;
|
|
453
|
+
return encodeToBase64Internal(_this__u8e3s4, urlSafe, true);
|
|
454
|
+
}
|
|
455
|
+
function decodeFromBase64(_this__u8e3s4, urlSafe) {
|
|
456
|
+
urlSafe = urlSafe === VOID ? false : urlSafe;
|
|
457
|
+
return decodeFromBase64Internal(_this__u8e3s4, urlSafe);
|
|
458
|
+
}
|
|
459
|
+
function decodeFrom(_this__u8e3s4, encoding) {
|
|
460
|
+
var tmp;
|
|
461
|
+
switch (encoding.l2_1) {
|
|
462
|
+
case 1:
|
|
463
|
+
tmp = decodeFromBase64Url(_this__u8e3s4);
|
|
464
|
+
break;
|
|
465
|
+
case 0:
|
|
466
|
+
tmp = decodeFromBase64(_this__u8e3s4, false);
|
|
467
|
+
break;
|
|
468
|
+
case 2:
|
|
469
|
+
tmp = decodeFromBase58Btc(_this__u8e3s4);
|
|
470
|
+
break;
|
|
471
|
+
case 3:
|
|
472
|
+
tmp = decodeFromHex(_this__u8e3s4);
|
|
473
|
+
break;
|
|
474
|
+
case 4:
|
|
475
|
+
tmp = encodeToByteArray(_this__u8e3s4);
|
|
476
|
+
break;
|
|
477
|
+
default:
|
|
478
|
+
noWhenBranchMatchedException();
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
return tmp;
|
|
482
|
+
}
|
|
483
|
+
function encodeTo(_this__u8e3s4, encoding) {
|
|
484
|
+
var tmp;
|
|
485
|
+
switch (encoding.l2_1) {
|
|
486
|
+
case 1:
|
|
487
|
+
tmp = encodeToBase64Url(_this__u8e3s4);
|
|
488
|
+
break;
|
|
489
|
+
case 0:
|
|
490
|
+
tmp = encodeToBase64(_this__u8e3s4, false);
|
|
491
|
+
break;
|
|
492
|
+
case 2:
|
|
493
|
+
tmp = encodeToBase58Btc(_this__u8e3s4);
|
|
494
|
+
break;
|
|
495
|
+
case 3:
|
|
496
|
+
tmp = encodeToHex(_this__u8e3s4);
|
|
497
|
+
break;
|
|
498
|
+
case 4:
|
|
499
|
+
tmp = decodeToString(_this__u8e3s4);
|
|
500
|
+
break;
|
|
501
|
+
default:
|
|
502
|
+
noWhenBranchMatchedException();
|
|
503
|
+
break;
|
|
504
|
+
}
|
|
505
|
+
return tmp;
|
|
506
|
+
}
|
|
507
|
+
function decodeUrlGraph(_this__u8e3s4) {
|
|
508
|
+
return replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(_this__u8e3s4, '+', ' '), '%20', ' '), '%21', '!'), '%22', '"'), '%23', '#'), '%24', '$'), '%26', '&'), '%27', "'"), '%28', '('), '%29', ')'), '%2A', '*'), '%2B', '+'), '%2C', ','), '%2F', '/'), '%3A', ':'), '%3B', ';'), '%3D', '='), '%3F', '?'), '%40', '@'), '%5B', '['), '%5D', ']'), '%7B', '{'), '%7D', '}');
|
|
509
|
+
}
|
|
510
|
+
function encodeUrlGraph(_this__u8e3s4) {
|
|
511
|
+
return replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(_this__u8e3s4, '%', '%25'), ' ', '%20'), '!', '%21'), '"', '%22'), '#', '%23'), '$', '%24'), '&', '%26'), "'", '%27'), '(', '%28'), ')', '%29'), '*', '%2A'), '+', '%2B'), ',', '%2C'), '/', '%2F'), ':', '%3A'), ';', '%3B'), '=', '%3D'), '?', '%3F'), '@', '%40'), '[', '%5B'), ']', '%5D'), '{', '%7B'), '}', '%7D');
|
|
512
|
+
}
|
|
513
|
+
function decodeFromBase64Internal(_this__u8e3s4, urlSafe) {
|
|
514
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
515
|
+
if (charSequenceLength(_this__u8e3s4) === 0)
|
|
516
|
+
return new Int8Array(0);
|
|
517
|
+
// Inline function 'kotlin.text.filter' call
|
|
518
|
+
// Inline function 'kotlin.text.filterTo' call
|
|
519
|
+
var destination = StringBuilder_init_$Create$();
|
|
520
|
+
var inductionVariable = 0;
|
|
521
|
+
var last = charSequenceLength(_this__u8e3s4);
|
|
522
|
+
if (inductionVariable < last)
|
|
523
|
+
do {
|
|
524
|
+
var index = inductionVariable;
|
|
525
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
526
|
+
var element = charSequenceGet(_this__u8e3s4, index);
|
|
527
|
+
if (!isWhitespace(element)) {
|
|
528
|
+
destination.q7(element);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
while (inductionVariable < last);
|
|
532
|
+
var tmp$ret$1 = destination.toString();
|
|
533
|
+
var input = trimEnd(tmp$ret$1, charArrayOf([_Char___init__impl__6a9atx(61)]));
|
|
534
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
535
|
+
if (charSequenceLength(input) === 0)
|
|
536
|
+
return new Int8Array(0);
|
|
537
|
+
var alphabet = urlSafe ? 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_' : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
538
|
+
var tmp = 0;
|
|
539
|
+
var tmp_0 = new Int32Array(128);
|
|
540
|
+
while (tmp < 128) {
|
|
541
|
+
tmp_0[tmp] = -1;
|
|
542
|
+
tmp = tmp + 1 | 0;
|
|
543
|
+
}
|
|
544
|
+
var lookup = tmp_0;
|
|
545
|
+
// Inline function 'kotlin.text.forEachIndexed' call
|
|
546
|
+
var index_0 = 0;
|
|
547
|
+
var indexedObject = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
548
|
+
var inductionVariable_0 = 0;
|
|
549
|
+
while (inductionVariable_0 < charSequenceLength(indexedObject)) {
|
|
550
|
+
var item = charSequenceGet(indexedObject, inductionVariable_0);
|
|
551
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
552
|
+
var _unary__edvuaz = index_0;
|
|
553
|
+
index_0 = _unary__edvuaz + 1 | 0;
|
|
554
|
+
// Inline function 'kotlin.code' call
|
|
555
|
+
lookup[Char__toInt_impl_vasixd(item)] = _unary__edvuaz;
|
|
556
|
+
}
|
|
557
|
+
// Inline function 'kotlin.text.forEachIndexed' call
|
|
558
|
+
var index_1 = 0;
|
|
559
|
+
var indexedObject_0 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
|
|
560
|
+
var inductionVariable_1 = 0;
|
|
561
|
+
while (inductionVariable_1 < charSequenceLength(indexedObject_0)) {
|
|
562
|
+
var item_0 = charSequenceGet(indexedObject_0, inductionVariable_1);
|
|
563
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
564
|
+
var _unary__edvuaz_0 = index_1;
|
|
565
|
+
index_1 = _unary__edvuaz_0 + 1 | 0;
|
|
566
|
+
// Inline function 'kotlin.code' call
|
|
567
|
+
lookup[Char__toInt_impl_vasixd(item_0)] = _unary__edvuaz_0;
|
|
568
|
+
}
|
|
569
|
+
var outputSize = imul(input.length, 3) / 4 | 0;
|
|
570
|
+
var output = new Int8Array(outputSize);
|
|
571
|
+
var outputIndex = 0;
|
|
572
|
+
var i = 0;
|
|
573
|
+
while (i < input.length) {
|
|
574
|
+
var c0 = charCodeAt(input, i);
|
|
575
|
+
var c1 = (i + 1 | 0) < input.length ? charCodeAt(input, i + 1 | 0) : _Char___init__impl__6a9atx(65);
|
|
576
|
+
var c2 = (i + 2 | 0) < input.length ? charCodeAt(input, i + 2 | 0) : _Char___init__impl__6a9atx(65);
|
|
577
|
+
var c3 = (i + 3 | 0) < input.length ? charCodeAt(input, i + 3 | 0) : _Char___init__impl__6a9atx(65);
|
|
578
|
+
var tmp_1;
|
|
579
|
+
// Inline function 'kotlin.code' call
|
|
580
|
+
if (Char__toInt_impl_vasixd(c0) < 128) {
|
|
581
|
+
// Inline function 'kotlin.code' call
|
|
582
|
+
tmp_1 = lookup[Char__toInt_impl_vasixd(c0)] >= 0;
|
|
583
|
+
} else {
|
|
584
|
+
tmp_1 = false;
|
|
585
|
+
}
|
|
586
|
+
// Inline function 'kotlin.require' call
|
|
587
|
+
if (!tmp_1) {
|
|
588
|
+
var message = 'Invalid base64 character: ' + toString(c0);
|
|
589
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
590
|
+
}
|
|
591
|
+
var tmp_2;
|
|
592
|
+
if ((i + 1 | 0) >= input.length) {
|
|
593
|
+
tmp_2 = true;
|
|
594
|
+
} else {
|
|
595
|
+
var tmp_3;
|
|
596
|
+
// Inline function 'kotlin.code' call
|
|
597
|
+
if (Char__toInt_impl_vasixd(c1) < 128) {
|
|
598
|
+
// Inline function 'kotlin.code' call
|
|
599
|
+
tmp_3 = lookup[Char__toInt_impl_vasixd(c1)] >= 0;
|
|
600
|
+
} else {
|
|
601
|
+
tmp_3 = false;
|
|
602
|
+
}
|
|
603
|
+
tmp_2 = tmp_3;
|
|
604
|
+
}
|
|
605
|
+
// Inline function 'kotlin.require' call
|
|
606
|
+
if (!tmp_2) {
|
|
607
|
+
var message_0 = 'Invalid base64 character: ' + toString(c1);
|
|
608
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
609
|
+
}
|
|
610
|
+
// Inline function 'kotlin.code' call
|
|
611
|
+
var v0 = lookup[Char__toInt_impl_vasixd(c0)];
|
|
612
|
+
var tmp_4;
|
|
613
|
+
if ((i + 1 | 0) < input.length) {
|
|
614
|
+
// Inline function 'kotlin.code' call
|
|
615
|
+
tmp_4 = lookup[Char__toInt_impl_vasixd(c1)];
|
|
616
|
+
} else {
|
|
617
|
+
tmp_4 = 0;
|
|
618
|
+
}
|
|
619
|
+
var v1 = tmp_4;
|
|
620
|
+
var tmp_5;
|
|
621
|
+
if ((i + 2 | 0) < input.length) {
|
|
622
|
+
// Inline function 'kotlin.code' call
|
|
623
|
+
tmp_5 = lookup[Char__toInt_impl_vasixd(c2)];
|
|
624
|
+
} else {
|
|
625
|
+
tmp_5 = 0;
|
|
626
|
+
}
|
|
627
|
+
var v2 = tmp_5;
|
|
628
|
+
var tmp_6;
|
|
629
|
+
if ((i + 3 | 0) < input.length) {
|
|
630
|
+
// Inline function 'kotlin.code' call
|
|
631
|
+
tmp_6 = lookup[Char__toInt_impl_vasixd(c3)];
|
|
632
|
+
} else {
|
|
633
|
+
tmp_6 = 0;
|
|
634
|
+
}
|
|
635
|
+
var v3 = tmp_6;
|
|
636
|
+
if (outputIndex < output.length) {
|
|
637
|
+
var _unary__edvuaz_1 = outputIndex;
|
|
638
|
+
outputIndex = _unary__edvuaz_1 + 1 | 0;
|
|
639
|
+
output[_unary__edvuaz_1] = toByte(v0 << 2 | v1 >> 4);
|
|
640
|
+
}
|
|
641
|
+
if ((i + 2 | 0) < input.length && outputIndex < output.length) {
|
|
642
|
+
var _unary__edvuaz_2 = outputIndex;
|
|
643
|
+
outputIndex = _unary__edvuaz_2 + 1 | 0;
|
|
644
|
+
output[_unary__edvuaz_2] = toByte(v1 << 4 | v2 >> 2);
|
|
645
|
+
}
|
|
646
|
+
if ((i + 3 | 0) < input.length && outputIndex < output.length) {
|
|
647
|
+
var _unary__edvuaz_3 = outputIndex;
|
|
648
|
+
outputIndex = _unary__edvuaz_3 + 1 | 0;
|
|
649
|
+
output[_unary__edvuaz_3] = toByte(v2 << 6 | v3);
|
|
650
|
+
}
|
|
651
|
+
i = i + 4 | 0;
|
|
652
|
+
}
|
|
653
|
+
return outputIndex === output.length ? output : copyOf(output, outputIndex);
|
|
654
|
+
}
|
|
655
|
+
function encodeToBase64Internal(_this__u8e3s4, urlSafe, padding) {
|
|
656
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
657
|
+
if (_this__u8e3s4.length === 0)
|
|
658
|
+
return '';
|
|
659
|
+
var alphabet = urlSafe ? 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_' : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
660
|
+
var output = StringBuilder_init_$Create$();
|
|
661
|
+
var i = 0;
|
|
662
|
+
while (i < _this__u8e3s4.length) {
|
|
663
|
+
var b0 = _this__u8e3s4[i] & 255;
|
|
664
|
+
output.q7(charCodeAt(alphabet, b0 >> 2));
|
|
665
|
+
if ((i + 1 | 0) < _this__u8e3s4.length) {
|
|
666
|
+
var b1 = _this__u8e3s4[i + 1 | 0] & 255;
|
|
667
|
+
output.q7(charCodeAt(alphabet, (b0 & 3) << 4 | b1 >> 4));
|
|
668
|
+
if ((i + 2 | 0) < _this__u8e3s4.length) {
|
|
669
|
+
var b2 = _this__u8e3s4[i + 2 | 0] & 255;
|
|
670
|
+
output.q7(charCodeAt(alphabet, (b1 & 15) << 2 | b2 >> 6));
|
|
671
|
+
output.q7(charCodeAt(alphabet, b2 & 63));
|
|
672
|
+
} else {
|
|
673
|
+
output.q7(charCodeAt(alphabet, (b1 & 15) << 2));
|
|
674
|
+
if (padding) {
|
|
675
|
+
output.q7(_Char___init__impl__6a9atx(61));
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
} else {
|
|
679
|
+
output.q7(charCodeAt(alphabet, (b0 & 3) << 4));
|
|
680
|
+
if (padding) {
|
|
681
|
+
output.p7('==');
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
i = i + 3 | 0;
|
|
685
|
+
}
|
|
686
|
+
return output.toString();
|
|
687
|
+
}
|
|
688
|
+
function Encoding_BASE64_getInstance() {
|
|
689
|
+
Encoding_initEntries();
|
|
690
|
+
return Encoding_BASE64_instance;
|
|
691
|
+
}
|
|
692
|
+
function Encoding_BASE64URL_getInstance() {
|
|
693
|
+
Encoding_initEntries();
|
|
694
|
+
return Encoding_BASE64URL_instance;
|
|
695
|
+
}
|
|
696
|
+
function Encoding_BASE58BTC_getInstance() {
|
|
697
|
+
Encoding_initEntries();
|
|
698
|
+
return Encoding_BASE58BTC_instance;
|
|
699
|
+
}
|
|
700
|
+
function Encoding_HEX_getInstance() {
|
|
701
|
+
Encoding_initEntries();
|
|
702
|
+
return Encoding_HEX_instance;
|
|
703
|
+
}
|
|
704
|
+
function Encoding_UTF8_getInstance() {
|
|
705
|
+
Encoding_initEntries();
|
|
706
|
+
return Encoding_UTF8_instance;
|
|
707
|
+
}
|
|
708
|
+
function Companion() {
|
|
709
|
+
}
|
|
710
|
+
protoOf(Companion).ok = function (value) {
|
|
711
|
+
return (new Ok_0(value)).asResult();
|
|
712
|
+
};
|
|
713
|
+
protoOf(Companion).err = function (error) {
|
|
714
|
+
return (new Err_0(error)).asResult();
|
|
715
|
+
};
|
|
716
|
+
var Companion_instance;
|
|
717
|
+
function Companion_getInstance_4() {
|
|
718
|
+
return Companion_instance;
|
|
719
|
+
}
|
|
720
|
+
function IdkResult(result) {
|
|
721
|
+
this.w14_1 = result;
|
|
722
|
+
}
|
|
723
|
+
protoOf(IdkResult).x14 = function () {
|
|
724
|
+
return this.w14_1;
|
|
725
|
+
};
|
|
726
|
+
protoOf(IdkResult).y14 = function () {
|
|
727
|
+
return _Result___get_isOk__impl__qbhaup(this.w14_1);
|
|
728
|
+
};
|
|
729
|
+
protoOf(IdkResult).z14 = function () {
|
|
730
|
+
return _Result___get_isErr__impl__gwfsa6(this.w14_1);
|
|
731
|
+
};
|
|
732
|
+
protoOf(IdkResult).r1 = function () {
|
|
733
|
+
return _Result___get_value__impl__bjfvqg(this.w14_1);
|
|
734
|
+
};
|
|
735
|
+
protoOf(IdkResult).a15 = function () {
|
|
736
|
+
return _Result___get_error__impl__ihqhun(this.w14_1);
|
|
737
|
+
};
|
|
738
|
+
protoOf(IdkResult).component1 = function () {
|
|
739
|
+
return this.get();
|
|
740
|
+
};
|
|
741
|
+
protoOf(IdkResult).component2 = function () {
|
|
742
|
+
return this.getErrorOrNull();
|
|
743
|
+
};
|
|
744
|
+
protoOf(IdkResult).toString = function () {
|
|
745
|
+
return Result__toString_impl_yu5r8k(this.w14_1);
|
|
746
|
+
};
|
|
747
|
+
protoOf(IdkResult).onSuccess = function (action) {
|
|
748
|
+
// Inline function 'com.github.michaelbull.result.onSuccess' call
|
|
749
|
+
var this_0 = this.w14_1;
|
|
750
|
+
if (_Result___get_isOk__impl__qbhaup(this_0)) {
|
|
751
|
+
action(_Result___get_value__impl__bjfvqg(this_0));
|
|
752
|
+
}
|
|
753
|
+
return this;
|
|
754
|
+
};
|
|
755
|
+
protoOf(IdkResult).onFailure = function (action) {
|
|
756
|
+
// Inline function 'com.github.michaelbull.result.onFailure' call
|
|
757
|
+
var this_0 = this.w14_1;
|
|
758
|
+
if (_Result___get_isErr__impl__gwfsa6(this_0)) {
|
|
759
|
+
action(_Result___get_error__impl__ihqhun(this_0));
|
|
760
|
+
}
|
|
761
|
+
return this;
|
|
762
|
+
};
|
|
763
|
+
protoOf(IdkResult).map = function (transform) {
|
|
764
|
+
// Inline function 'com.github.michaelbull.result.map' call
|
|
765
|
+
var this_0 = this.w14_1;
|
|
766
|
+
var tmp;
|
|
767
|
+
if (_Result___get_isOk__impl__qbhaup(this_0)) {
|
|
768
|
+
tmp = Ok(transform(_Result___get_value__impl__bjfvqg(this_0)));
|
|
769
|
+
} else {
|
|
770
|
+
// Inline function 'com.github.michaelbull.result.asErr' call
|
|
771
|
+
tmp = new Result(this_0) instanceof Result ? this_0 : THROW_CCE();
|
|
772
|
+
}
|
|
773
|
+
var tmp$ret$0 = tmp;
|
|
774
|
+
return new IdkResult(tmp$ret$0);
|
|
775
|
+
};
|
|
776
|
+
protoOf(IdkResult).mapError = function (transform) {
|
|
777
|
+
// Inline function 'com.github.michaelbull.result.mapError' call
|
|
778
|
+
var this_0 = this.w14_1;
|
|
779
|
+
var tmp;
|
|
780
|
+
if (_Result___get_isErr__impl__gwfsa6(this_0)) {
|
|
781
|
+
tmp = Err(transform(_Result___get_error__impl__ihqhun(this_0)));
|
|
782
|
+
} else {
|
|
783
|
+
// Inline function 'com.github.michaelbull.result.asOk' call
|
|
784
|
+
tmp = new Result(this_0) instanceof Result ? this_0 : THROW_CCE();
|
|
785
|
+
}
|
|
786
|
+
var tmp$ret$0 = tmp;
|
|
787
|
+
return new IdkResult(tmp$ret$0);
|
|
788
|
+
};
|
|
789
|
+
protoOf(IdkResult).flatMap = function (transform) {
|
|
790
|
+
// Inline function 'com.github.michaelbull.result.flatMap' call
|
|
791
|
+
// Inline function 'com.github.michaelbull.result.andThen' call
|
|
792
|
+
var this_0 = this.w14_1;
|
|
793
|
+
var tmp;
|
|
794
|
+
if (_Result___get_isOk__impl__qbhaup(this_0)) {
|
|
795
|
+
tmp = transform(_Result___get_value__impl__bjfvqg(this_0)).w14_1;
|
|
796
|
+
} else {
|
|
797
|
+
// Inline function 'com.github.michaelbull.result.asErr' call
|
|
798
|
+
tmp = new Result(this_0) instanceof Result ? this_0 : THROW_CCE();
|
|
799
|
+
}
|
|
800
|
+
var tmp$ret$0 = tmp;
|
|
801
|
+
return new IdkResult(tmp$ret$0);
|
|
802
|
+
};
|
|
803
|
+
protoOf(IdkResult).andThen = function (transform) {
|
|
804
|
+
// Inline function 'com.github.michaelbull.result.andThen' call
|
|
805
|
+
var this_0 = this.w14_1;
|
|
806
|
+
var tmp;
|
|
807
|
+
if (_Result___get_isOk__impl__qbhaup(this_0)) {
|
|
808
|
+
tmp = transform(_Result___get_value__impl__bjfvqg(this_0)).w14_1;
|
|
809
|
+
} else {
|
|
810
|
+
// Inline function 'com.github.michaelbull.result.asErr' call
|
|
811
|
+
tmp = new Result(this_0) instanceof Result ? this_0 : THROW_CCE();
|
|
812
|
+
}
|
|
813
|
+
var tmp$ret$0 = tmp;
|
|
814
|
+
return new IdkResult(tmp$ret$0);
|
|
815
|
+
};
|
|
816
|
+
protoOf(IdkResult).recover = function (transform) {
|
|
817
|
+
// Inline function 'com.github.michaelbull.result.recover' call
|
|
818
|
+
var this_0 = this.w14_1;
|
|
819
|
+
var tmp;
|
|
820
|
+
if (_Result___get_isOk__impl__qbhaup(this_0)) {
|
|
821
|
+
// Inline function 'com.github.michaelbull.result.asOk' call
|
|
822
|
+
tmp = new Result(this_0) instanceof Result ? this_0 : THROW_CCE();
|
|
823
|
+
} else {
|
|
824
|
+
tmp = Ok(transform(_Result___get_error__impl__ihqhun(this_0)));
|
|
825
|
+
}
|
|
826
|
+
var tmp$ret$0 = tmp;
|
|
827
|
+
return new IdkResult(tmp$ret$0);
|
|
828
|
+
};
|
|
829
|
+
protoOf(IdkResult).getOr = function (defaultValue) {
|
|
830
|
+
return getOr(this.w14_1, defaultValue);
|
|
831
|
+
};
|
|
832
|
+
protoOf(IdkResult).getOrElse = function (transform) {
|
|
833
|
+
// Inline function 'com.github.michaelbull.result.getOrElse' call
|
|
834
|
+
var this_0 = this.w14_1;
|
|
835
|
+
return _Result___get_isOk__impl__qbhaup(this_0) ? _Result___get_value__impl__bjfvqg(this_0) : transform(_Result___get_error__impl__ihqhun(this_0));
|
|
836
|
+
};
|
|
837
|
+
protoOf(IdkResult).fold = function (success, failure) {
|
|
838
|
+
// Inline function 'com.github.michaelbull.result.fold' call
|
|
839
|
+
// Inline function 'com.github.michaelbull.result.mapBoth' call
|
|
840
|
+
var this_0 = this.w14_1;
|
|
841
|
+
return _Result___get_isOk__impl__qbhaup(this_0) ? success(_Result___get_value__impl__bjfvqg(this_0)) : failure(_Result___get_error__impl__ihqhun(this_0));
|
|
842
|
+
};
|
|
843
|
+
protoOf(IdkResult).mapBoth = function (success, failure) {
|
|
844
|
+
// Inline function 'com.github.michaelbull.result.mapBoth' call
|
|
845
|
+
var this_0 = this.w14_1;
|
|
846
|
+
return _Result___get_isOk__impl__qbhaup(this_0) ? success(_Result___get_value__impl__bjfvqg(this_0)) : failure(_Result___get_error__impl__ihqhun(this_0));
|
|
847
|
+
};
|
|
848
|
+
protoOf(IdkResult).get = function () {
|
|
849
|
+
return get(this.w14_1);
|
|
850
|
+
};
|
|
851
|
+
protoOf(IdkResult).getErrorOrNull = function () {
|
|
852
|
+
return getError(this.w14_1);
|
|
853
|
+
};
|
|
854
|
+
protoOf(IdkResult).getOrNull = function () {
|
|
855
|
+
return this.get();
|
|
856
|
+
};
|
|
857
|
+
protoOf(IdkResult).errorOrNull = function () {
|
|
858
|
+
return this.getErrorOrNull();
|
|
859
|
+
};
|
|
860
|
+
protoOf(IdkResult).getOrThrow = function () {
|
|
861
|
+
if (this.isOk)
|
|
862
|
+
return this.value;
|
|
863
|
+
var err = this.error;
|
|
864
|
+
var tmp;
|
|
865
|
+
if (err instanceof Error) {
|
|
866
|
+
tmp = err;
|
|
867
|
+
} else {
|
|
868
|
+
if (!(err == null) ? isInterface(err, IdkErrorType) : false) {
|
|
869
|
+
tmp = toException(err);
|
|
870
|
+
} else {
|
|
871
|
+
tmp = IllegalStateException_init_$Create$('Result contained error: ' + toString_1(err));
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
throw tmp;
|
|
875
|
+
};
|
|
876
|
+
function Ok_0(_value) {
|
|
877
|
+
IdkResult.call(this, Ok(_value));
|
|
878
|
+
this.c15_1 = _value;
|
|
879
|
+
}
|
|
880
|
+
protoOf(Ok_0).r1 = function () {
|
|
881
|
+
return this.c15_1;
|
|
882
|
+
};
|
|
883
|
+
protoOf(Ok_0).asResult = function () {
|
|
884
|
+
return this instanceof IdkResult ? this : THROW_CCE();
|
|
885
|
+
};
|
|
886
|
+
protoOf(Ok_0).toString = function () {
|
|
887
|
+
return 'Ok(' + toString_1(this.value) + ')';
|
|
888
|
+
};
|
|
889
|
+
protoOf(Ok_0).equals = function (other) {
|
|
890
|
+
var tmp;
|
|
891
|
+
if (other instanceof Ok_0) {
|
|
892
|
+
tmp = equals(this.value, other.value);
|
|
893
|
+
} else {
|
|
894
|
+
tmp = false;
|
|
895
|
+
}
|
|
896
|
+
return tmp;
|
|
897
|
+
};
|
|
898
|
+
protoOf(Ok_0).hashCode = function () {
|
|
899
|
+
// Inline function 'kotlin.hashCode' call
|
|
900
|
+
var tmp0_safe_receiver = this.value;
|
|
901
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
902
|
+
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
903
|
+
};
|
|
904
|
+
function Err_0(_error) {
|
|
905
|
+
IdkResult.call(this, Err(_error));
|
|
906
|
+
this.e15_1 = _error;
|
|
907
|
+
}
|
|
908
|
+
protoOf(Err_0).a15 = function () {
|
|
909
|
+
return this.e15_1;
|
|
910
|
+
};
|
|
911
|
+
protoOf(Err_0).asResult = function () {
|
|
912
|
+
return this instanceof IdkResult ? this : THROW_CCE();
|
|
913
|
+
};
|
|
914
|
+
protoOf(Err_0).toString = function () {
|
|
915
|
+
return 'Err(' + toString_1(this.error) + ')';
|
|
916
|
+
};
|
|
917
|
+
protoOf(Err_0).equals = function (other) {
|
|
918
|
+
var tmp;
|
|
919
|
+
if (other instanceof Err_0) {
|
|
920
|
+
tmp = equals(this.error, other.error);
|
|
921
|
+
} else {
|
|
922
|
+
tmp = false;
|
|
923
|
+
}
|
|
924
|
+
return tmp;
|
|
925
|
+
};
|
|
926
|
+
protoOf(Err_0).hashCode = function () {
|
|
927
|
+
// Inline function 'kotlin.hashCode' call
|
|
928
|
+
var tmp0_safe_receiver = this.error;
|
|
929
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
930
|
+
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
931
|
+
};
|
|
932
|
+
function IdkIsOk(result) {
|
|
933
|
+
return result.isOk;
|
|
934
|
+
}
|
|
935
|
+
function IdkIsErr(result) {
|
|
936
|
+
return result.isErr;
|
|
937
|
+
}
|
|
938
|
+
function IdkGetOrNull(result) {
|
|
939
|
+
return result.getOrNull();
|
|
940
|
+
}
|
|
941
|
+
function IdkErrorOrNull(result) {
|
|
942
|
+
return result.errorOrNull();
|
|
943
|
+
}
|
|
944
|
+
function IdkOkResult(value) {
|
|
945
|
+
return new Ok_0(value);
|
|
946
|
+
}
|
|
947
|
+
function IdkErrorResult(error) {
|
|
948
|
+
return new Err_0(error);
|
|
949
|
+
}
|
|
950
|
+
function toException(_this__u8e3s4) {
|
|
951
|
+
var tmp;
|
|
952
|
+
if (_this__u8e3s4 instanceof IdkError) {
|
|
953
|
+
var tmp1_elvis_lhs = _this__u8e3s4.exception;
|
|
954
|
+
tmp = tmp1_elvis_lhs == null ? IllegalStateException_init_$Create$(_this__u8e3s4.message.defaultMessage) : tmp1_elvis_lhs;
|
|
955
|
+
} else {
|
|
956
|
+
tmp = IllegalStateException_init_$Create$(toString_0(_this__u8e3s4));
|
|
957
|
+
}
|
|
958
|
+
return tmp;
|
|
959
|
+
}
|
|
960
|
+
function IdkErrorType() {
|
|
961
|
+
}
|
|
962
|
+
var Severity_INFO_instance;
|
|
963
|
+
var Severity_WARNING_instance;
|
|
964
|
+
var Severity_ERROR_instance;
|
|
965
|
+
var Severity_FATAL_instance;
|
|
966
|
+
function values_0() {
|
|
967
|
+
return [Severity_INFO_getInstance(), Severity_WARNING_getInstance(), Severity_ERROR_getInstance(), Severity_FATAL_getInstance()];
|
|
968
|
+
}
|
|
969
|
+
function valueOf_0(value) {
|
|
970
|
+
switch (value) {
|
|
971
|
+
case 'INFO':
|
|
972
|
+
return Severity_INFO_getInstance();
|
|
973
|
+
case 'WARNING':
|
|
974
|
+
return Severity_WARNING_getInstance();
|
|
975
|
+
case 'ERROR':
|
|
976
|
+
return Severity_ERROR_getInstance();
|
|
977
|
+
case 'FATAL':
|
|
978
|
+
return Severity_FATAL_getInstance();
|
|
979
|
+
default:
|
|
980
|
+
Severity_initEntries();
|
|
981
|
+
THROW_IAE('No enum constant com.sphereon.core.api.error.IdkError.Severity.' + value);
|
|
982
|
+
break;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
var Severity_entriesInitialized;
|
|
986
|
+
function Severity_initEntries() {
|
|
987
|
+
if (Severity_entriesInitialized)
|
|
988
|
+
return Unit_instance;
|
|
989
|
+
Severity_entriesInitialized = true;
|
|
990
|
+
Severity_INFO_instance = new Severity('INFO', 0, 10);
|
|
991
|
+
Severity_WARNING_instance = new Severity('WARNING', 1, 20);
|
|
992
|
+
Severity_ERROR_instance = new Severity('ERROR', 2, 30);
|
|
993
|
+
Severity_FATAL_instance = new Severity('FATAL', 3, 40);
|
|
994
|
+
}
|
|
995
|
+
function Severity(name, ordinal, value) {
|
|
996
|
+
Enum.call(this, name, ordinal);
|
|
997
|
+
this.value = value;
|
|
998
|
+
}
|
|
999
|
+
protoOf(Severity).r1 = function () {
|
|
1000
|
+
return this.value;
|
|
1001
|
+
};
|
|
1002
|
+
protoOf(Severity).isAtLeast = function (severity) {
|
|
1003
|
+
return this.value >= severity.value;
|
|
1004
|
+
};
|
|
1005
|
+
protoOf(Severity).isAtMost = function (severity) {
|
|
1006
|
+
return this.value <= severity.value;
|
|
1007
|
+
};
|
|
1008
|
+
function Message(i18nKey, i18nParams, defaultMessage) {
|
|
1009
|
+
i18nParams = i18nParams === VOID ? emptyMap() : i18nParams;
|
|
1010
|
+
this.i18nKey = i18nKey;
|
|
1011
|
+
this.i18nParams = i18nParams;
|
|
1012
|
+
this.defaultMessage = defaultMessage;
|
|
1013
|
+
}
|
|
1014
|
+
protoOf(Message).n15 = function () {
|
|
1015
|
+
return this.i18nKey;
|
|
1016
|
+
};
|
|
1017
|
+
protoOf(Message).o15 = function () {
|
|
1018
|
+
return this.i18nParams;
|
|
1019
|
+
};
|
|
1020
|
+
protoOf(Message).p15 = function () {
|
|
1021
|
+
return this.defaultMessage;
|
|
1022
|
+
};
|
|
1023
|
+
protoOf(Message).gb = function () {
|
|
1024
|
+
return this.i18nKey;
|
|
1025
|
+
};
|
|
1026
|
+
protoOf(Message).hb = function () {
|
|
1027
|
+
return this.i18nParams;
|
|
1028
|
+
};
|
|
1029
|
+
protoOf(Message).q15 = function () {
|
|
1030
|
+
return this.defaultMessage;
|
|
1031
|
+
};
|
|
1032
|
+
protoOf(Message).r15 = function (i18nKey, i18nParams, defaultMessage) {
|
|
1033
|
+
return new Message(i18nKey, i18nParams, defaultMessage);
|
|
1034
|
+
};
|
|
1035
|
+
protoOf(Message).copy = function (i18nKey, i18nParams, defaultMessage, $super) {
|
|
1036
|
+
i18nKey = i18nKey === VOID ? this.i18nKey : i18nKey;
|
|
1037
|
+
i18nParams = i18nParams === VOID ? this.i18nParams : i18nParams;
|
|
1038
|
+
defaultMessage = defaultMessage === VOID ? this.defaultMessage : defaultMessage;
|
|
1039
|
+
return $super === VOID ? this.r15(i18nKey, i18nParams, defaultMessage) : $super.r15.call(this, i18nKey, i18nParams, defaultMessage);
|
|
1040
|
+
};
|
|
1041
|
+
protoOf(Message).toString = function () {
|
|
1042
|
+
return 'Message(i18nKey=' + this.i18nKey + ', i18nParams=' + toString_0(this.i18nParams) + ', defaultMessage=' + this.defaultMessage + ')';
|
|
1043
|
+
};
|
|
1044
|
+
protoOf(Message).hashCode = function () {
|
|
1045
|
+
var result = getStringHashCode(this.i18nKey);
|
|
1046
|
+
result = imul(result, 31) + hashCode(this.i18nParams) | 0;
|
|
1047
|
+
result = imul(result, 31) + getStringHashCode(this.defaultMessage) | 0;
|
|
1048
|
+
return result;
|
|
1049
|
+
};
|
|
1050
|
+
protoOf(Message).equals = function (other) {
|
|
1051
|
+
if (this === other)
|
|
1052
|
+
return true;
|
|
1053
|
+
if (!(other instanceof Message))
|
|
1054
|
+
return false;
|
|
1055
|
+
if (!(this.i18nKey === other.i18nKey))
|
|
1056
|
+
return false;
|
|
1057
|
+
if (!equals(this.i18nParams, other.i18nParams))
|
|
1058
|
+
return false;
|
|
1059
|
+
if (!(this.defaultMessage === other.defaultMessage))
|
|
1060
|
+
return false;
|
|
1061
|
+
return true;
|
|
1062
|
+
};
|
|
1063
|
+
function Companion_0() {
|
|
1064
|
+
}
|
|
1065
|
+
protoOf(Companion_0).s15 = function (error) {
|
|
1066
|
+
var tmp0_code = error.code;
|
|
1067
|
+
var tmp1_message = error.message;
|
|
1068
|
+
var tmp2_severity = error.severity;
|
|
1069
|
+
var tmp3_category = error.category;
|
|
1070
|
+
var tmp4_exception = error.exception;
|
|
1071
|
+
var tmp5_causes = error.causes;
|
|
1072
|
+
var tmp6_meta = error.meta;
|
|
1073
|
+
return new IdkError(tmp0_code, tmp1_message, tmp2_severity, tmp3_category, tmp5_causes, tmp6_meta, tmp4_exception);
|
|
1074
|
+
};
|
|
1075
|
+
protoOf(Companion_0).t15 = function (message, code, exception, i18nKey, severity, category) {
|
|
1076
|
+
return new IdkError(code, new Message(i18nKey, VOID, message), severity, category, VOID, VOID, exception);
|
|
1077
|
+
};
|
|
1078
|
+
protoOf(Companion_0).u15 = function (message, code, exception, i18nKey, severity, category, $super) {
|
|
1079
|
+
code = code === VOID ? 'UNKNOWN_ERROR' : code;
|
|
1080
|
+
exception = exception === VOID ? null : exception;
|
|
1081
|
+
i18nKey = i18nKey === VOID ? message : i18nKey;
|
|
1082
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1083
|
+
category = category === VOID ? ErrorCategory_INTERNAL_getInstance() : category;
|
|
1084
|
+
return $super === VOID ? this.t15(message, code, exception, i18nKey, severity, category) : $super.t15.call(this, message, code, exception, i18nKey, severity, category);
|
|
1085
|
+
};
|
|
1086
|
+
protoOf(Companion_0).v15 = function (definition, i18nParams, causes, meta, severity, category, exception) {
|
|
1087
|
+
var tmp0_code = definition.code;
|
|
1088
|
+
var tmp1_message = new Message(definition.i18nKey, i18nParams, definition.defaultMessage);
|
|
1089
|
+
return new IdkError(tmp0_code, tmp1_message, severity, category, causes, meta, exception);
|
|
1090
|
+
};
|
|
1091
|
+
protoOf(Companion_0).w15 = function (definition, i18nParams, causes, meta, severity, category, exception, $super) {
|
|
1092
|
+
i18nParams = i18nParams === VOID ? emptyMap() : i18nParams;
|
|
1093
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1094
|
+
meta = meta === VOID ? emptyMap() : meta;
|
|
1095
|
+
severity = severity === VOID ? definition.severity : severity;
|
|
1096
|
+
category = category === VOID ? definition.category : category;
|
|
1097
|
+
exception = exception === VOID ? null : exception;
|
|
1098
|
+
return $super === VOID ? this.v15(definition, i18nParams, causes, meta, severity, category, exception) : $super.v15.call(this, definition, i18nParams, causes, meta, severity, category, exception);
|
|
1099
|
+
};
|
|
1100
|
+
protoOf(Companion_0).x15 = function (severity, causes, message, exception) {
|
|
1101
|
+
return new IdkError('UNKNOWN_ERROR', new Message('com.sphereon.core.error.unknown-error', VOID, message), severity, ErrorCategory_INTERNAL_getInstance(), causes, VOID, exception);
|
|
1102
|
+
};
|
|
1103
|
+
protoOf(Companion_0).y15 = function (severity, causes, message, exception, $super) {
|
|
1104
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1105
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1106
|
+
message = message === VOID ? 'An unknown error occurred' : message;
|
|
1107
|
+
exception = exception === VOID ? null : exception;
|
|
1108
|
+
return $super === VOID ? this.x15(severity, causes, message, exception) : $super.x15.call(this, severity, causes, message, exception);
|
|
1109
|
+
};
|
|
1110
|
+
protoOf(Companion_0).z15 = function (severity, causes, arg, message, throwable) {
|
|
1111
|
+
return new IdkError('ILLEGAL_ARGUMENT_ERROR', new Message('com.sphereon.core.error.illegal-argument-error', VOID, message), severity, ErrorCategory_VALIDATION_getInstance(), causes, VOID, throwable);
|
|
1112
|
+
};
|
|
1113
|
+
protoOf(Companion_0).a16 = function (severity, causes, arg, message, throwable, $super) {
|
|
1114
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1115
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1116
|
+
arg = arg === VOID ? null : arg;
|
|
1117
|
+
var tmp;
|
|
1118
|
+
if (message === VOID) {
|
|
1119
|
+
var tmp_0;
|
|
1120
|
+
if (arg == null) {
|
|
1121
|
+
tmp_0 = null;
|
|
1122
|
+
} else {
|
|
1123
|
+
// Inline function 'kotlin.let' call
|
|
1124
|
+
tmp_0 = ': ' + toString_0(arg);
|
|
1125
|
+
}
|
|
1126
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1127
|
+
tmp = 'An illegal argument was supplied' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
1128
|
+
} else {
|
|
1129
|
+
tmp = message;
|
|
1130
|
+
}
|
|
1131
|
+
message = tmp;
|
|
1132
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1133
|
+
return $super === VOID ? this.z15(severity, causes, arg, message, throwable) : $super.z15.call(this, severity, causes, arg, message, throwable);
|
|
1134
|
+
};
|
|
1135
|
+
protoOf(Companion_0).b16 = function (severity, causes, command, arg, message, throwable) {
|
|
1136
|
+
return new IdkError('COMMAND_ARG_NOT_SUPPORTED_ERROR', new Message('com.sphereon.core.error.command-argument-not-supported-error', VOID, message), severity, ErrorCategory_VALIDATION_getInstance(), causes, VOID, throwable);
|
|
1137
|
+
};
|
|
1138
|
+
protoOf(Companion_0).c16 = function (severity, causes, command, arg, message, throwable, $super) {
|
|
1139
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1140
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1141
|
+
command = command === VOID ? null : command;
|
|
1142
|
+
arg = arg === VOID ? null : arg;
|
|
1143
|
+
var tmp;
|
|
1144
|
+
if (message === VOID) {
|
|
1145
|
+
var tmp0_safe_receiver = (!(command == null) ? isInterface(command, Command) : false) ? command : null;
|
|
1146
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b12();
|
|
1147
|
+
var tmp_0 = tmp1_elvis_lhs == null ? '<unknown>' : tmp1_elvis_lhs;
|
|
1148
|
+
var tmp_1;
|
|
1149
|
+
if (arg == null) {
|
|
1150
|
+
tmp_1 = null;
|
|
1151
|
+
} else {
|
|
1152
|
+
// Inline function 'kotlin.let' call
|
|
1153
|
+
tmp_1 = ': ' + toString_0(arg);
|
|
1154
|
+
}
|
|
1155
|
+
var tmp3_elvis_lhs = tmp_1;
|
|
1156
|
+
tmp = 'The command ' + tmp_0 + ' does not support the argument' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs);
|
|
1157
|
+
} else {
|
|
1158
|
+
tmp = message;
|
|
1159
|
+
}
|
|
1160
|
+
message = tmp;
|
|
1161
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1162
|
+
return $super === VOID ? this.b16(severity, causes, command, arg, message, throwable) : $super.b16.call(this, severity, causes, command, arg, message, throwable);
|
|
1163
|
+
};
|
|
1164
|
+
protoOf(Companion_0).d16 = function (severity, causes, resource, message, throwable) {
|
|
1165
|
+
return new IdkError('NOT_FOUND_ERROR', new Message('com.sphereon.core.error.not-found-error', VOID, message), severity, ErrorCategory_NOT_FOUND_getInstance(), causes, VOID, throwable);
|
|
1166
|
+
};
|
|
1167
|
+
protoOf(Companion_0).e16 = function (severity, causes, resource, message, throwable, $super) {
|
|
1168
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1169
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1170
|
+
resource = resource === VOID ? null : resource;
|
|
1171
|
+
var tmp;
|
|
1172
|
+
if (message === VOID) {
|
|
1173
|
+
var tmp_0;
|
|
1174
|
+
if (resource == null) {
|
|
1175
|
+
tmp_0 = null;
|
|
1176
|
+
} else {
|
|
1177
|
+
// Inline function 'kotlin.let' call
|
|
1178
|
+
tmp_0 = ': ' + resource;
|
|
1179
|
+
}
|
|
1180
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1181
|
+
tmp = 'Not found' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
1182
|
+
} else {
|
|
1183
|
+
tmp = message;
|
|
1184
|
+
}
|
|
1185
|
+
message = tmp;
|
|
1186
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1187
|
+
return $super === VOID ? this.d16(severity, causes, resource, message, throwable) : $super.d16.call(this, severity, causes, resource, message, throwable);
|
|
1188
|
+
};
|
|
1189
|
+
protoOf(Companion_0).f16 = function (commandId, severity, causes, throwable) {
|
|
1190
|
+
var tmp0_message = new Message('com.sphereon.core.error.command-disabled', mapOf(to('commandId', commandId)), "Command '" + commandId + "' is disabled");
|
|
1191
|
+
var tmp1_category = ErrorCategory_UNAVAILABLE_getInstance();
|
|
1192
|
+
var tmp2_meta = mapOf(to('commandId', commandId));
|
|
1193
|
+
return new IdkError('COMMAND_DISABLED', tmp0_message, severity, tmp1_category, causes, tmp2_meta, throwable);
|
|
1194
|
+
};
|
|
1195
|
+
protoOf(Companion_0).g16 = function (commandId, severity, causes, throwable, $super) {
|
|
1196
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1197
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1198
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1199
|
+
return $super === VOID ? this.f16(commandId, severity, causes, throwable) : $super.f16.call(this, commandId, severity, causes, throwable);
|
|
1200
|
+
};
|
|
1201
|
+
protoOf(Companion_0).h16 = function (commandId, reason, severity, causes, throwable) {
|
|
1202
|
+
var tmp = to('commandId', commandId);
|
|
1203
|
+
var tmp_0 = mapOf_0([tmp, to('reason', reason == null ? 'skipped by extension' : reason)]);
|
|
1204
|
+
var tmp_1 = "Command '" + commandId + "' was skipped";
|
|
1205
|
+
var tmp_2;
|
|
1206
|
+
if (reason == null) {
|
|
1207
|
+
tmp_2 = null;
|
|
1208
|
+
} else {
|
|
1209
|
+
// Inline function 'kotlin.let' call
|
|
1210
|
+
tmp_2 = ': ' + reason;
|
|
1211
|
+
}
|
|
1212
|
+
var tmp2_elvis_lhs = tmp_2;
|
|
1213
|
+
var tmp3_message = new Message('com.sphereon.core.error.command-skipped', tmp_0, tmp_1 + (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs));
|
|
1214
|
+
var tmp4_category = ErrorCategory_INTERNAL_getInstance();
|
|
1215
|
+
var tmp5_meta = mapOf_0([to('commandId', commandId), to('reason', reason)]);
|
|
1216
|
+
return new IdkError('COMMAND_SKIPPED', tmp3_message, severity, tmp4_category, causes, tmp5_meta, throwable);
|
|
1217
|
+
};
|
|
1218
|
+
protoOf(Companion_0).i16 = function (commandId, reason, severity, causes, throwable, $super) {
|
|
1219
|
+
reason = reason === VOID ? null : reason;
|
|
1220
|
+
severity = severity === VOID ? Severity_INFO_getInstance() : severity;
|
|
1221
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1222
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1223
|
+
return $super === VOID ? this.h16(commandId, reason, severity, causes, throwable) : $super.h16.call(this, commandId, reason, severity, causes, throwable);
|
|
1224
|
+
};
|
|
1225
|
+
protoOf(Companion_0).j16 = function (commandId, reason, actor, severity, causes, throwable) {
|
|
1226
|
+
var tmp = to('commandId', commandId);
|
|
1227
|
+
var tmp_0 = to('reason', reason);
|
|
1228
|
+
var tmp1_message = new Message('com.sphereon.core.error.command-not-authorized', mapOf_0([tmp, tmp_0, to('actor', actor == null ? 'unknown' : actor)]), "Not authorized to execute '" + commandId + "': " + reason);
|
|
1229
|
+
var tmp2_category = ErrorCategory_FORBIDDEN_getInstance();
|
|
1230
|
+
var tmp3_meta = mapOf_0([to('commandId', commandId), to('reason', reason), to('actor', actor)]);
|
|
1231
|
+
return new IdkError('COMMAND_NOT_AUTHORIZED', tmp1_message, severity, tmp2_category, causes, tmp3_meta, throwable);
|
|
1232
|
+
};
|
|
1233
|
+
protoOf(Companion_0).k16 = function (commandId, reason, actor, severity, causes, throwable, $super) {
|
|
1234
|
+
actor = actor === VOID ? null : actor;
|
|
1235
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1236
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1237
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1238
|
+
return $super === VOID ? this.j16(commandId, reason, actor, severity, causes, throwable) : $super.j16.call(this, commandId, reason, actor, severity, causes, throwable);
|
|
1239
|
+
};
|
|
1240
|
+
protoOf(Companion_0).l16 = function (errors, severity, throwable) {
|
|
1241
|
+
// Inline function 'kotlin.collections.map' call
|
|
1242
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1243
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(errors, 10));
|
|
1244
|
+
var _iterator__ex2g4s = errors.g();
|
|
1245
|
+
while (_iterator__ex2g4s.h()) {
|
|
1246
|
+
var item = _iterator__ex2g4s.i();
|
|
1247
|
+
var tmp$ret$2 = item.message.defaultMessage;
|
|
1248
|
+
destination.e(tmp$ret$2);
|
|
1249
|
+
}
|
|
1250
|
+
var tmp0_message = new Message('com.sphereon.core.error.all-handlers-failed', VOID, 'All handlers failed: ' + joinToString(destination, '; '));
|
|
1251
|
+
var tmp1_category = ErrorCategory_INTERNAL_getInstance();
|
|
1252
|
+
var tmp2_meta = mapOf(to('errorCount', errors.l()));
|
|
1253
|
+
return new IdkError('ALL_HANDLERS_FAILED', tmp0_message, severity, tmp1_category, errors, tmp2_meta, throwable);
|
|
1254
|
+
};
|
|
1255
|
+
protoOf(Companion_0).m16 = function (errors, severity, throwable, $super) {
|
|
1256
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1257
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1258
|
+
return $super === VOID ? this.l16(errors, severity, throwable) : $super.l16.call(this, errors, severity, throwable);
|
|
1259
|
+
};
|
|
1260
|
+
protoOf(Companion_0).n16 = function (message, severity, causes, throwable) {
|
|
1261
|
+
return new IdkError('UNAUTHORIZED', new Message('com.sphereon.core.error.unauthorized', VOID, message), severity, ErrorCategory_UNAUTHORIZED_getInstance(), causes, VOID, throwable);
|
|
1262
|
+
};
|
|
1263
|
+
protoOf(Companion_0).o16 = function (message, severity, causes, throwable, $super) {
|
|
1264
|
+
message = message === VOID ? 'Unauthorized' : message;
|
|
1265
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1266
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1267
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1268
|
+
return $super === VOID ? this.n16(message, severity, causes, throwable) : $super.n16.call(this, message, severity, causes, throwable);
|
|
1269
|
+
};
|
|
1270
|
+
protoOf(Companion_0).p16 = function (message, severity, causes, throwable) {
|
|
1271
|
+
return new IdkError('FORBIDDEN', new Message('com.sphereon.core.error.forbidden', VOID, message), severity, ErrorCategory_FORBIDDEN_getInstance(), causes, VOID, throwable);
|
|
1272
|
+
};
|
|
1273
|
+
protoOf(Companion_0).q16 = function (message, severity, causes, throwable, $super) {
|
|
1274
|
+
message = message === VOID ? 'Access forbidden' : message;
|
|
1275
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1276
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1277
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1278
|
+
return $super === VOID ? this.p16(message, severity, causes, throwable) : $super.p16.call(this, message, severity, causes, throwable);
|
|
1279
|
+
};
|
|
1280
|
+
protoOf(Companion_0).r16 = function (severity, causes, resource, message, throwable) {
|
|
1281
|
+
return new IdkError('ALREADY_EXISTS_ERROR', new Message('com.sphereon.core.error.already-exists-error', VOID, message), severity, ErrorCategory_CONFLICT_getInstance(), causes, VOID, throwable);
|
|
1282
|
+
};
|
|
1283
|
+
protoOf(Companion_0).s16 = function (severity, causes, resource, message, throwable, $super) {
|
|
1284
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1285
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1286
|
+
resource = resource === VOID ? null : resource;
|
|
1287
|
+
var tmp;
|
|
1288
|
+
if (message === VOID) {
|
|
1289
|
+
var tmp_0;
|
|
1290
|
+
if (resource == null) {
|
|
1291
|
+
tmp_0 = null;
|
|
1292
|
+
} else {
|
|
1293
|
+
// Inline function 'kotlin.let' call
|
|
1294
|
+
tmp_0 = ': ' + resource;
|
|
1295
|
+
}
|
|
1296
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1297
|
+
tmp = 'Already exists' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
1298
|
+
} else {
|
|
1299
|
+
tmp = message;
|
|
1300
|
+
}
|
|
1301
|
+
message = tmp;
|
|
1302
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1303
|
+
return $super === VOID ? this.r16(severity, causes, resource, message, throwable) : $super.r16.call(this, severity, causes, resource, message, throwable);
|
|
1304
|
+
};
|
|
1305
|
+
protoOf(Companion_0).t16 = function (severity, causes, message, throwable) {
|
|
1306
|
+
return new IdkError('INVALID_STATE', new Message('com.sphereon.core.error.invalid-state', VOID, message), severity, ErrorCategory_CONFLICT_getInstance(), causes, VOID, throwable);
|
|
1307
|
+
};
|
|
1308
|
+
protoOf(Companion_0).u16 = function (severity, causes, message, throwable, $super) {
|
|
1309
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1310
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1311
|
+
message = message === VOID ? 'Invalid state' : message;
|
|
1312
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1313
|
+
return $super === VOID ? this.t16(severity, causes, message, throwable) : $super.t16.call(this, severity, causes, message, throwable);
|
|
1314
|
+
};
|
|
1315
|
+
var Companion_instance_0;
|
|
1316
|
+
function Companion_getInstance_5() {
|
|
1317
|
+
return Companion_instance_0;
|
|
1318
|
+
}
|
|
1319
|
+
function fromDTO(error) {
|
|
1320
|
+
return Companion_instance_0.s15(error);
|
|
1321
|
+
}
|
|
1322
|
+
function fromString(message_0, code, exception, i18nKey, severity, category) {
|
|
1323
|
+
code = code === VOID ? 'UNKNOWN_ERROR' : code;
|
|
1324
|
+
exception = exception === VOID ? null : exception;
|
|
1325
|
+
i18nKey = i18nKey === VOID ? message : i18nKey;
|
|
1326
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1327
|
+
category = category === VOID ? ErrorCategory_INTERNAL_getInstance() : category;
|
|
1328
|
+
return Companion_instance_0.u15(message_0, code, exception, i18nKey, severity, category);
|
|
1329
|
+
}
|
|
1330
|
+
function fromDefinition(definition_0, i18nParams, causes, meta, severity, category, exception) {
|
|
1331
|
+
i18nParams = i18nParams === VOID ? emptyMap() : i18nParams;
|
|
1332
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1333
|
+
meta = meta === VOID ? emptyMap() : meta;
|
|
1334
|
+
severity = severity === VOID ? definition.severity : severity;
|
|
1335
|
+
category = category === VOID ? definition.category : category;
|
|
1336
|
+
exception = exception === VOID ? null : exception;
|
|
1337
|
+
return Companion_instance_0.w15(definition_0, i18nParams, causes, meta, severity, category, exception);
|
|
1338
|
+
}
|
|
1339
|
+
function UNKNOWN_ERROR(severity, causes, message, exception) {
|
|
1340
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1341
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1342
|
+
message = message === VOID ? 'An unknown error occurred' : message;
|
|
1343
|
+
exception = exception === VOID ? null : exception;
|
|
1344
|
+
return Companion_instance_0.y15(severity, causes, message, exception);
|
|
1345
|
+
}
|
|
1346
|
+
function ILLEGAL_ARGUMENT_ERROR(severity, causes, arg_0, message, throwable) {
|
|
1347
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1348
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1349
|
+
arg_0 = arg_0 === VOID ? null : arg_0;
|
|
1350
|
+
var tmp;
|
|
1351
|
+
if (message === VOID) {
|
|
1352
|
+
var tmp0_safe_receiver = arg;
|
|
1353
|
+
var tmp_0;
|
|
1354
|
+
if (tmp0_safe_receiver == null) {
|
|
1355
|
+
tmp_0 = null;
|
|
1356
|
+
} else {
|
|
1357
|
+
// Inline function 'kotlin.let' call
|
|
1358
|
+
tmp_0 = ': ' + toString_0(tmp0_safe_receiver);
|
|
1359
|
+
}
|
|
1360
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1361
|
+
tmp = 'An illegal argument was supplied' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
1362
|
+
} else {
|
|
1363
|
+
tmp = message;
|
|
1364
|
+
}
|
|
1365
|
+
message = tmp;
|
|
1366
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1367
|
+
return Companion_instance_0.a16(severity, causes, arg_0, message, throwable);
|
|
1368
|
+
}
|
|
1369
|
+
function COMMAND_ARG_NOT_SUPPORTED_ERROR(severity, causes, command_0, arg_0, message, throwable) {
|
|
1370
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1371
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1372
|
+
command_0 = command_0 === VOID ? null : command_0;
|
|
1373
|
+
arg_0 = arg_0 === VOID ? null : arg_0;
|
|
1374
|
+
var tmp;
|
|
1375
|
+
if (message === VOID) {
|
|
1376
|
+
var tmp0_safe_receiver = (!(command == null) ? isInterface(command, Command) : false) ? command : null;
|
|
1377
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b12();
|
|
1378
|
+
var tmp_0 = tmp1_elvis_lhs == null ? '<unknown>' : tmp1_elvis_lhs;
|
|
1379
|
+
var tmp2_safe_receiver = arg;
|
|
1380
|
+
var tmp_1;
|
|
1381
|
+
if (tmp2_safe_receiver == null) {
|
|
1382
|
+
tmp_1 = null;
|
|
1383
|
+
} else {
|
|
1384
|
+
// Inline function 'kotlin.let' call
|
|
1385
|
+
tmp_1 = ': ' + toString_0(tmp2_safe_receiver);
|
|
1386
|
+
}
|
|
1387
|
+
var tmp3_elvis_lhs = tmp_1;
|
|
1388
|
+
tmp = 'The command ' + tmp_0 + ' does not support the argument' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs);
|
|
1389
|
+
} else {
|
|
1390
|
+
tmp = message;
|
|
1391
|
+
}
|
|
1392
|
+
message = tmp;
|
|
1393
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1394
|
+
return Companion_instance_0.c16(severity, causes, command_0, arg_0, message, throwable);
|
|
1395
|
+
}
|
|
1396
|
+
function NOT_FOUND_ERROR(severity, causes, resource_0, message, throwable) {
|
|
1397
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1398
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1399
|
+
resource_0 = resource_0 === VOID ? null : resource_0;
|
|
1400
|
+
var tmp;
|
|
1401
|
+
if (message === VOID) {
|
|
1402
|
+
var tmp0_safe_receiver = resource;
|
|
1403
|
+
var tmp_0;
|
|
1404
|
+
if (tmp0_safe_receiver == null) {
|
|
1405
|
+
tmp_0 = null;
|
|
1406
|
+
} else {
|
|
1407
|
+
// Inline function 'kotlin.let' call
|
|
1408
|
+
tmp_0 = ': ' + tmp0_safe_receiver;
|
|
1409
|
+
}
|
|
1410
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1411
|
+
tmp = 'Not found' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
1412
|
+
} else {
|
|
1413
|
+
tmp = message;
|
|
1414
|
+
}
|
|
1415
|
+
message = tmp;
|
|
1416
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1417
|
+
return Companion_instance_0.e16(severity, causes, resource_0, message, throwable);
|
|
1418
|
+
}
|
|
1419
|
+
function COMMAND_DISABLED_ERROR(commandId, severity, causes, throwable) {
|
|
1420
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1421
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1422
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1423
|
+
return Companion_instance_0.g16(commandId, severity, causes, throwable);
|
|
1424
|
+
}
|
|
1425
|
+
function COMMAND_SKIPPED_ERROR(commandId, reason, severity, causes, throwable) {
|
|
1426
|
+
reason = reason === VOID ? null : reason;
|
|
1427
|
+
severity = severity === VOID ? Severity_INFO_getInstance() : severity;
|
|
1428
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1429
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1430
|
+
return Companion_instance_0.i16(commandId, reason, severity, causes, throwable);
|
|
1431
|
+
}
|
|
1432
|
+
function COMMAND_NOT_AUTHORIZED_ERROR(commandId, reason, actor, severity, causes, throwable) {
|
|
1433
|
+
actor = actor === VOID ? null : actor;
|
|
1434
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1435
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1436
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1437
|
+
return Companion_instance_0.k16(commandId, reason, actor, severity, causes, throwable);
|
|
1438
|
+
}
|
|
1439
|
+
function ALL_HANDLERS_FAILED_ERROR(errors, severity, throwable) {
|
|
1440
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1441
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1442
|
+
return Companion_instance_0.m16(errors, severity, throwable);
|
|
1443
|
+
}
|
|
1444
|
+
function UNAUTHORIZED_ERROR(message, severity, causes, throwable) {
|
|
1445
|
+
message = message === VOID ? 'Unauthorized' : message;
|
|
1446
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1447
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1448
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1449
|
+
return Companion_instance_0.o16(message, severity, causes, throwable);
|
|
1450
|
+
}
|
|
1451
|
+
function FORBIDDEN_ERROR(message, severity, causes, throwable) {
|
|
1452
|
+
message = message === VOID ? 'Access forbidden' : message;
|
|
1453
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1454
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1455
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1456
|
+
return Companion_instance_0.q16(message, severity, causes, throwable);
|
|
1457
|
+
}
|
|
1458
|
+
function ALREADY_EXISTS_ERROR(severity, causes, resource_0, message, throwable) {
|
|
1459
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1460
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1461
|
+
resource_0 = resource_0 === VOID ? null : resource_0;
|
|
1462
|
+
var tmp;
|
|
1463
|
+
if (message === VOID) {
|
|
1464
|
+
var tmp0_safe_receiver = resource;
|
|
1465
|
+
var tmp_0;
|
|
1466
|
+
if (tmp0_safe_receiver == null) {
|
|
1467
|
+
tmp_0 = null;
|
|
1468
|
+
} else {
|
|
1469
|
+
// Inline function 'kotlin.let' call
|
|
1470
|
+
tmp_0 = ': ' + tmp0_safe_receiver;
|
|
1471
|
+
}
|
|
1472
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1473
|
+
tmp = 'Already exists' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
1474
|
+
} else {
|
|
1475
|
+
tmp = message;
|
|
1476
|
+
}
|
|
1477
|
+
message = tmp;
|
|
1478
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1479
|
+
return Companion_instance_0.s16(severity, causes, resource_0, message, throwable);
|
|
1480
|
+
}
|
|
1481
|
+
function INVALID_STATE(severity, causes, message, throwable) {
|
|
1482
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1483
|
+
causes = causes === VOID ? emptyList() : causes;
|
|
1484
|
+
message = message === VOID ? 'Invalid state' : message;
|
|
1485
|
+
throwable = throwable === VOID ? null : throwable;
|
|
1486
|
+
return Companion_instance_0.u16(severity, causes, message, throwable);
|
|
1487
|
+
}
|
|
1488
|
+
function Severity_INFO_getInstance() {
|
|
1489
|
+
Severity_initEntries();
|
|
1490
|
+
return Severity_INFO_instance;
|
|
1491
|
+
}
|
|
1492
|
+
function Severity_WARNING_getInstance() {
|
|
1493
|
+
Severity_initEntries();
|
|
1494
|
+
return Severity_WARNING_instance;
|
|
1495
|
+
}
|
|
1496
|
+
function Severity_ERROR_getInstance() {
|
|
1497
|
+
Severity_initEntries();
|
|
1498
|
+
return Severity_ERROR_instance;
|
|
1499
|
+
}
|
|
1500
|
+
function Severity_FATAL_getInstance() {
|
|
1501
|
+
Severity_initEntries();
|
|
1502
|
+
return Severity_FATAL_instance;
|
|
1503
|
+
}
|
|
1504
|
+
function IdkError(code, message, severity, category, causes, meta, exception) {
|
|
1505
|
+
severity = severity === VOID ? Severity_ERROR_getInstance() : severity;
|
|
1506
|
+
category = category === VOID ? ErrorCategory_INTERNAL_getInstance() : category;
|
|
1507
|
+
var tmp;
|
|
1508
|
+
if (causes === VOID) {
|
|
1509
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1510
|
+
tmp = ArrayList_init_$Create$_0();
|
|
1511
|
+
} else {
|
|
1512
|
+
tmp = causes;
|
|
1513
|
+
}
|
|
1514
|
+
causes = tmp;
|
|
1515
|
+
var tmp_0;
|
|
1516
|
+
if (meta === VOID) {
|
|
1517
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1518
|
+
tmp_0 = LinkedHashMap_init_$Create$();
|
|
1519
|
+
} else {
|
|
1520
|
+
tmp_0 = meta;
|
|
1521
|
+
}
|
|
1522
|
+
meta = tmp_0;
|
|
1523
|
+
exception = exception === VOID ? null : exception;
|
|
1524
|
+
this.v16_1 = code;
|
|
1525
|
+
this.w16_1 = message;
|
|
1526
|
+
this.x16_1 = severity;
|
|
1527
|
+
this.y16_1 = category;
|
|
1528
|
+
this.z16_1 = causes;
|
|
1529
|
+
this.a17_1 = meta;
|
|
1530
|
+
this.b17_1 = exception;
|
|
1531
|
+
}
|
|
1532
|
+
protoOf(IdkError).f15 = function () {
|
|
1533
|
+
return this.v16_1;
|
|
1534
|
+
};
|
|
1535
|
+
protoOf(IdkError).f8 = function () {
|
|
1536
|
+
return this.w16_1;
|
|
1537
|
+
};
|
|
1538
|
+
protoOf(IdkError).g15 = function () {
|
|
1539
|
+
return this.x16_1;
|
|
1540
|
+
};
|
|
1541
|
+
protoOf(IdkError).h15 = function () {
|
|
1542
|
+
return this.y16_1;
|
|
1543
|
+
};
|
|
1544
|
+
protoOf(IdkError).j15 = function () {
|
|
1545
|
+
return this.z16_1;
|
|
1546
|
+
};
|
|
1547
|
+
protoOf(IdkError).k15 = function () {
|
|
1548
|
+
return this.a17_1;
|
|
1549
|
+
};
|
|
1550
|
+
protoOf(IdkError).i15 = function () {
|
|
1551
|
+
return this.b17_1;
|
|
1552
|
+
};
|
|
1553
|
+
protoOf(IdkError).hasException = function () {
|
|
1554
|
+
return !(this.exception == null);
|
|
1555
|
+
};
|
|
1556
|
+
protoOf(IdkError).hasCauses = function () {
|
|
1557
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1558
|
+
return !this.causes.j();
|
|
1559
|
+
};
|
|
1560
|
+
protoOf(IdkError).hasMeta = function () {
|
|
1561
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1562
|
+
return !this.meta.j();
|
|
1563
|
+
};
|
|
1564
|
+
protoOf(IdkError).addCause = function (cause) {
|
|
1565
|
+
// Inline function 'kotlin.apply' call
|
|
1566
|
+
var tmp = this.causes;
|
|
1567
|
+
(isInterface(tmp, KtMutableList) ? tmp : THROW_CCE()).e(cause);
|
|
1568
|
+
return this;
|
|
1569
|
+
};
|
|
1570
|
+
protoOf(IdkError).toString = function () {
|
|
1571
|
+
return "IdkError(code='" + this.code + "', category=" + this.category.toString() + ', severity=' + this.severity.toString() + ', message=' + this.message.toString() + ', causes=' + toString_0(this.causes) + ', meta=' + toString_0(this.meta) + ', exception=' + toString_1(this.exception) + ')';
|
|
1572
|
+
};
|
|
1573
|
+
function ErrorDefinitionType() {
|
|
1574
|
+
}
|
|
1575
|
+
function ErrorCategory$Companion$_anonymous__624p1z() {
|
|
1576
|
+
return createSimpleEnumSerializer('com.sphereon.core.api.error.ErrorCategory', values_1());
|
|
1577
|
+
}
|
|
1578
|
+
var ErrorCategory_VALIDATION_instance;
|
|
1579
|
+
var ErrorCategory_UNAUTHORIZED_instance;
|
|
1580
|
+
var ErrorCategory_FORBIDDEN_instance;
|
|
1581
|
+
var ErrorCategory_NOT_FOUND_instance;
|
|
1582
|
+
var ErrorCategory_CONFLICT_instance;
|
|
1583
|
+
var ErrorCategory_PRECONDITION_FAILED_instance;
|
|
1584
|
+
var ErrorCategory_RATE_LIMITED_instance;
|
|
1585
|
+
var ErrorCategory_UNAVAILABLE_instance;
|
|
1586
|
+
var ErrorCategory_INTERNAL_instance;
|
|
1587
|
+
var ErrorCategory_PROTOCOL_instance;
|
|
1588
|
+
function values_1() {
|
|
1589
|
+
return [ErrorCategory_VALIDATION_getInstance(), ErrorCategory_UNAUTHORIZED_getInstance(), ErrorCategory_FORBIDDEN_getInstance(), ErrorCategory_NOT_FOUND_getInstance(), ErrorCategory_CONFLICT_getInstance(), ErrorCategory_PRECONDITION_FAILED_getInstance(), ErrorCategory_RATE_LIMITED_getInstance(), ErrorCategory_UNAVAILABLE_getInstance(), ErrorCategory_INTERNAL_getInstance(), ErrorCategory_PROTOCOL_getInstance()];
|
|
1590
|
+
}
|
|
1591
|
+
function valueOf_1(value) {
|
|
1592
|
+
switch (value) {
|
|
1593
|
+
case 'VALIDATION':
|
|
1594
|
+
return ErrorCategory_VALIDATION_getInstance();
|
|
1595
|
+
case 'UNAUTHORIZED':
|
|
1596
|
+
return ErrorCategory_UNAUTHORIZED_getInstance();
|
|
1597
|
+
case 'FORBIDDEN':
|
|
1598
|
+
return ErrorCategory_FORBIDDEN_getInstance();
|
|
1599
|
+
case 'NOT_FOUND':
|
|
1600
|
+
return ErrorCategory_NOT_FOUND_getInstance();
|
|
1601
|
+
case 'CONFLICT':
|
|
1602
|
+
return ErrorCategory_CONFLICT_getInstance();
|
|
1603
|
+
case 'PRECONDITION_FAILED':
|
|
1604
|
+
return ErrorCategory_PRECONDITION_FAILED_getInstance();
|
|
1605
|
+
case 'RATE_LIMITED':
|
|
1606
|
+
return ErrorCategory_RATE_LIMITED_getInstance();
|
|
1607
|
+
case 'UNAVAILABLE':
|
|
1608
|
+
return ErrorCategory_UNAVAILABLE_getInstance();
|
|
1609
|
+
case 'INTERNAL':
|
|
1610
|
+
return ErrorCategory_INTERNAL_getInstance();
|
|
1611
|
+
case 'PROTOCOL':
|
|
1612
|
+
return ErrorCategory_PROTOCOL_getInstance();
|
|
1613
|
+
default:
|
|
1614
|
+
ErrorCategory_initEntries();
|
|
1615
|
+
THROW_IAE('No enum constant com.sphereon.core.api.error.ErrorCategory.' + value);
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
function Companion_1() {
|
|
1620
|
+
Companion_instance_1 = this;
|
|
1621
|
+
var tmp = this;
|
|
1622
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1623
|
+
tmp.e17_1 = lazy(tmp_0, ErrorCategory$Companion$_anonymous__624p1z);
|
|
1624
|
+
}
|
|
1625
|
+
var Companion_instance_1;
|
|
1626
|
+
function Companion_getInstance_6() {
|
|
1627
|
+
ErrorCategory_initEntries();
|
|
1628
|
+
if (Companion_instance_1 == null)
|
|
1629
|
+
new Companion_1();
|
|
1630
|
+
return Companion_instance_1;
|
|
1631
|
+
}
|
|
1632
|
+
var ErrorCategory_entriesInitialized;
|
|
1633
|
+
function ErrorCategory_initEntries() {
|
|
1634
|
+
if (ErrorCategory_entriesInitialized)
|
|
1635
|
+
return Unit_instance;
|
|
1636
|
+
ErrorCategory_entriesInitialized = true;
|
|
1637
|
+
ErrorCategory_VALIDATION_instance = new ErrorCategory('VALIDATION', 0);
|
|
1638
|
+
ErrorCategory_UNAUTHORIZED_instance = new ErrorCategory('UNAUTHORIZED', 1);
|
|
1639
|
+
ErrorCategory_FORBIDDEN_instance = new ErrorCategory('FORBIDDEN', 2);
|
|
1640
|
+
ErrorCategory_NOT_FOUND_instance = new ErrorCategory('NOT_FOUND', 3);
|
|
1641
|
+
ErrorCategory_CONFLICT_instance = new ErrorCategory('CONFLICT', 4);
|
|
1642
|
+
ErrorCategory_PRECONDITION_FAILED_instance = new ErrorCategory('PRECONDITION_FAILED', 5);
|
|
1643
|
+
ErrorCategory_RATE_LIMITED_instance = new ErrorCategory('RATE_LIMITED', 6);
|
|
1644
|
+
ErrorCategory_UNAVAILABLE_instance = new ErrorCategory('UNAVAILABLE', 7);
|
|
1645
|
+
ErrorCategory_INTERNAL_instance = new ErrorCategory('INTERNAL', 8);
|
|
1646
|
+
ErrorCategory_PROTOCOL_instance = new ErrorCategory('PROTOCOL', 9);
|
|
1647
|
+
Companion_getInstance_6();
|
|
1648
|
+
}
|
|
1649
|
+
function ErrorCategory(name, ordinal) {
|
|
1650
|
+
Enum.call(this, name, ordinal);
|
|
1651
|
+
}
|
|
1652
|
+
function ErrorCategory_VALIDATION_getInstance() {
|
|
1653
|
+
ErrorCategory_initEntries();
|
|
1654
|
+
return ErrorCategory_VALIDATION_instance;
|
|
1655
|
+
}
|
|
1656
|
+
function ErrorCategory_UNAUTHORIZED_getInstance() {
|
|
1657
|
+
ErrorCategory_initEntries();
|
|
1658
|
+
return ErrorCategory_UNAUTHORIZED_instance;
|
|
1659
|
+
}
|
|
1660
|
+
function ErrorCategory_FORBIDDEN_getInstance() {
|
|
1661
|
+
ErrorCategory_initEntries();
|
|
1662
|
+
return ErrorCategory_FORBIDDEN_instance;
|
|
1663
|
+
}
|
|
1664
|
+
function ErrorCategory_NOT_FOUND_getInstance() {
|
|
1665
|
+
ErrorCategory_initEntries();
|
|
1666
|
+
return ErrorCategory_NOT_FOUND_instance;
|
|
1667
|
+
}
|
|
1668
|
+
function ErrorCategory_CONFLICT_getInstance() {
|
|
1669
|
+
ErrorCategory_initEntries();
|
|
1670
|
+
return ErrorCategory_CONFLICT_instance;
|
|
1671
|
+
}
|
|
1672
|
+
function ErrorCategory_PRECONDITION_FAILED_getInstance() {
|
|
1673
|
+
ErrorCategory_initEntries();
|
|
1674
|
+
return ErrorCategory_PRECONDITION_FAILED_instance;
|
|
1675
|
+
}
|
|
1676
|
+
function ErrorCategory_RATE_LIMITED_getInstance() {
|
|
1677
|
+
ErrorCategory_initEntries();
|
|
1678
|
+
return ErrorCategory_RATE_LIMITED_instance;
|
|
1679
|
+
}
|
|
1680
|
+
function ErrorCategory_UNAVAILABLE_getInstance() {
|
|
1681
|
+
ErrorCategory_initEntries();
|
|
1682
|
+
return ErrorCategory_UNAVAILABLE_instance;
|
|
1683
|
+
}
|
|
1684
|
+
function ErrorCategory_INTERNAL_getInstance() {
|
|
1685
|
+
ErrorCategory_initEntries();
|
|
1686
|
+
return ErrorCategory_INTERNAL_instance;
|
|
1687
|
+
}
|
|
1688
|
+
function ErrorCategory_PROTOCOL_getInstance() {
|
|
1689
|
+
ErrorCategory_initEntries();
|
|
1690
|
+
return ErrorCategory_PROTOCOL_instance;
|
|
1691
|
+
}
|
|
1692
|
+
function _EventSubsystem___init__impl__pcibv0(value) {
|
|
1693
|
+
return value;
|
|
1694
|
+
}
|
|
1695
|
+
function EventSubsystems() {
|
|
1696
|
+
EventSubsystems_instance = this;
|
|
1697
|
+
this.h17_1 = _EventSubsystem___init__impl__pcibv0('crypto');
|
|
1698
|
+
this.i17_1 = _EventSubsystem___init__impl__pcibv0('kms');
|
|
1699
|
+
this.j17_1 = _EventSubsystem___init__impl__pcibv0('mdoc');
|
|
1700
|
+
this.k17_1 = _EventSubsystem___init__impl__pcibv0('sdjwt');
|
|
1701
|
+
this.l17_1 = _EventSubsystem___init__impl__pcibv0('oauth');
|
|
1702
|
+
this.m17_1 = _EventSubsystem___init__impl__pcibv0('oid4vp');
|
|
1703
|
+
this.n17_1 = _EventSubsystem___init__impl__pcibv0('oid4vci');
|
|
1704
|
+
this.o17_1 = _EventSubsystem___init__impl__pcibv0('http');
|
|
1705
|
+
this.p17_1 = _EventSubsystem___init__impl__pcibv0('session');
|
|
1706
|
+
this.q17_1 = _EventSubsystem___init__impl__pcibv0('events');
|
|
1707
|
+
this.r17_1 = _EventSubsystem___init__impl__pcibv0('custom');
|
|
1708
|
+
}
|
|
1709
|
+
var EventSubsystems_instance;
|
|
1710
|
+
function EventSubsystems_getInstance() {
|
|
1711
|
+
if (EventSubsystems_instance == null)
|
|
1712
|
+
new EventSubsystems();
|
|
1713
|
+
return EventSubsystems_instance;
|
|
1714
|
+
}
|
|
1715
|
+
function get_jsonSerializer() {
|
|
1716
|
+
return JsonSupport_getInstance().serializer;
|
|
1717
|
+
}
|
|
1718
|
+
function JsonSupport$_get_serializer_$lambda_829ld7($this$Json) {
|
|
1719
|
+
$this$Json.ln_1 = JsonSupport_getInstance().module;
|
|
1720
|
+
return Unit_instance;
|
|
1721
|
+
}
|
|
1722
|
+
function JsonSupport() {
|
|
1723
|
+
JsonSupport_instance = this;
|
|
1724
|
+
var tmp = this;
|
|
1725
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1726
|
+
tmp.s17_1 = ArrayList_init_$Create$_0();
|
|
1727
|
+
var tmp_0 = this;
|
|
1728
|
+
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
1729
|
+
tmp_0.t17_1 = LinkedHashSet_init_$Create$();
|
|
1730
|
+
}
|
|
1731
|
+
protoOf(JsonSupport).u17 = function (registrationId, block) {
|
|
1732
|
+
if (!(registrationId == null)) {
|
|
1733
|
+
if (!this.t17_1.e(registrationId)) {
|
|
1734
|
+
return Unit_instance;
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1738
|
+
this.s17_1.e(block);
|
|
1739
|
+
};
|
|
1740
|
+
protoOf(JsonSupport).register = function (registrationId, block, $super) {
|
|
1741
|
+
registrationId = registrationId === VOID ? null : registrationId;
|
|
1742
|
+
var tmp;
|
|
1743
|
+
if ($super === VOID) {
|
|
1744
|
+
this.u17(registrationId, block);
|
|
1745
|
+
tmp = Unit_instance;
|
|
1746
|
+
} else {
|
|
1747
|
+
tmp = $super.u17.call(this, registrationId, block);
|
|
1748
|
+
}
|
|
1749
|
+
return tmp;
|
|
1750
|
+
};
|
|
1751
|
+
protoOf(JsonSupport).v17 = function () {
|
|
1752
|
+
// Inline function 'kotlinx.serialization.modules.SerializersModule' call
|
|
1753
|
+
var builder = new SerializersModuleBuilder();
|
|
1754
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1755
|
+
var _iterator__ex2g4s = JsonSupport_getInstance().s17_1.g();
|
|
1756
|
+
while (_iterator__ex2g4s.h()) {
|
|
1757
|
+
var element = _iterator__ex2g4s.i();
|
|
1758
|
+
element(builder);
|
|
1759
|
+
}
|
|
1760
|
+
return builder.nm();
|
|
1761
|
+
};
|
|
1762
|
+
protoOf(JsonSupport).w17 = function () {
|
|
1763
|
+
return Json(VOID, JsonSupport$_get_serializer_$lambda_829ld7);
|
|
1764
|
+
};
|
|
1765
|
+
var JsonSupport_instance;
|
|
1766
|
+
function JsonSupport_getInstance() {
|
|
1767
|
+
if (JsonSupport_instance == null)
|
|
1768
|
+
new JsonSupport();
|
|
1769
|
+
return JsonSupport_instance;
|
|
1770
|
+
}
|
|
1771
|
+
var LogOutputFormat_TEXT_instance;
|
|
1772
|
+
var LogOutputFormat_JSON_instance;
|
|
1773
|
+
function values_2() {
|
|
1774
|
+
return [LogOutputFormat_TEXT_getInstance(), LogOutputFormat_JSON_getInstance()];
|
|
1775
|
+
}
|
|
1776
|
+
function valueOf_2(value) {
|
|
1777
|
+
switch (value) {
|
|
1778
|
+
case 'TEXT':
|
|
1779
|
+
return LogOutputFormat_TEXT_getInstance();
|
|
1780
|
+
case 'JSON':
|
|
1781
|
+
return LogOutputFormat_JSON_getInstance();
|
|
1782
|
+
default:
|
|
1783
|
+
LogOutputFormat_initEntries();
|
|
1784
|
+
THROW_IAE('No enum constant com.sphereon.core.api.log.LogOutputFormat.' + value);
|
|
1785
|
+
break;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
var LogOutputFormat_entriesInitialized;
|
|
1789
|
+
function LogOutputFormat_initEntries() {
|
|
1790
|
+
if (LogOutputFormat_entriesInitialized)
|
|
1791
|
+
return Unit_instance;
|
|
1792
|
+
LogOutputFormat_entriesInitialized = true;
|
|
1793
|
+
LogOutputFormat_TEXT_instance = new LogOutputFormat('TEXT', 0);
|
|
1794
|
+
LogOutputFormat_JSON_instance = new LogOutputFormat('JSON', 1);
|
|
1795
|
+
}
|
|
1796
|
+
function LogOutputFormat(name, ordinal) {
|
|
1797
|
+
Enum.call(this, name, ordinal);
|
|
1798
|
+
}
|
|
1799
|
+
function LogMessage(level, message, tag, exception, errorResult, metadata, timestamp) {
|
|
1800
|
+
level = level === VOID ? LogLevel_DEBUG_getInstance() : level;
|
|
1801
|
+
tag = tag === VOID ? null : tag;
|
|
1802
|
+
exception = exception === VOID ? null : exception;
|
|
1803
|
+
errorResult = errorResult === VOID ? null : errorResult;
|
|
1804
|
+
metadata = metadata === VOID ? null : metadata;
|
|
1805
|
+
timestamp = timestamp === VOID ? currentTimeMillis() : timestamp;
|
|
1806
|
+
this.level = level;
|
|
1807
|
+
this.message = message;
|
|
1808
|
+
this.tag = tag;
|
|
1809
|
+
this.exception = exception;
|
|
1810
|
+
this.errorResult = errorResult;
|
|
1811
|
+
this.metadata = metadata;
|
|
1812
|
+
this.timestamp = timestamp;
|
|
1813
|
+
}
|
|
1814
|
+
protoOf(LogMessage).z17 = function () {
|
|
1815
|
+
return this.level;
|
|
1816
|
+
};
|
|
1817
|
+
protoOf(LogMessage).f8 = function () {
|
|
1818
|
+
return this.message;
|
|
1819
|
+
};
|
|
1820
|
+
protoOf(LogMessage).a18 = function () {
|
|
1821
|
+
return this.tag;
|
|
1822
|
+
};
|
|
1823
|
+
protoOf(LogMessage).i15 = function () {
|
|
1824
|
+
return this.exception;
|
|
1825
|
+
};
|
|
1826
|
+
protoOf(LogMessage).b18 = function () {
|
|
1827
|
+
return this.errorResult;
|
|
1828
|
+
};
|
|
1829
|
+
protoOf(LogMessage).c18 = function () {
|
|
1830
|
+
return this.metadata;
|
|
1831
|
+
};
|
|
1832
|
+
protoOf(LogMessage).d18 = function () {
|
|
1833
|
+
return this.timestamp;
|
|
1834
|
+
};
|
|
1835
|
+
protoOf(LogMessage).gb = function () {
|
|
1836
|
+
return this.level;
|
|
1837
|
+
};
|
|
1838
|
+
protoOf(LogMessage).hb = function () {
|
|
1839
|
+
return this.message;
|
|
1840
|
+
};
|
|
1841
|
+
protoOf(LogMessage).q15 = function () {
|
|
1842
|
+
return this.tag;
|
|
1843
|
+
};
|
|
1844
|
+
protoOf(LogMessage).e18 = function () {
|
|
1845
|
+
return this.exception;
|
|
1846
|
+
};
|
|
1847
|
+
protoOf(LogMessage).f18 = function () {
|
|
1848
|
+
return this.errorResult;
|
|
1849
|
+
};
|
|
1850
|
+
protoOf(LogMessage).g18 = function () {
|
|
1851
|
+
return this.metadata;
|
|
1852
|
+
};
|
|
1853
|
+
protoOf(LogMessage).h18 = function () {
|
|
1854
|
+
return this.timestamp;
|
|
1855
|
+
};
|
|
1856
|
+
protoOf(LogMessage).i18 = function (level, message, tag, exception, errorResult, metadata, timestamp) {
|
|
1857
|
+
return new LogMessage(level, message, tag, exception, errorResult, metadata, timestamp);
|
|
1858
|
+
};
|
|
1859
|
+
protoOf(LogMessage).copy = function (level, message, tag, exception, errorResult, metadata, timestamp, $super) {
|
|
1860
|
+
level = level === VOID ? this.level : level;
|
|
1861
|
+
message = message === VOID ? this.message : message;
|
|
1862
|
+
tag = tag === VOID ? this.tag : tag;
|
|
1863
|
+
exception = exception === VOID ? this.exception : exception;
|
|
1864
|
+
errorResult = errorResult === VOID ? this.errorResult : errorResult;
|
|
1865
|
+
metadata = metadata === VOID ? this.metadata : metadata;
|
|
1866
|
+
timestamp = timestamp === VOID ? this.timestamp : timestamp;
|
|
1867
|
+
return $super === VOID ? this.i18(level, message, tag, exception, errorResult, metadata, timestamp) : $super.i18.call(this, level, message, tag, exception, errorResult, metadata, timestamp);
|
|
1868
|
+
};
|
|
1869
|
+
protoOf(LogMessage).toString = function () {
|
|
1870
|
+
return 'LogMessage(level=' + this.level.toString() + ', message=' + this.message + ', tag=' + this.tag + ', exception=' + toString_1(this.exception) + ', errorResult=' + toString_1(this.errorResult) + ', metadata=' + toString_1(this.metadata) + ', timestamp=' + this.timestamp.toString() + ')';
|
|
1871
|
+
};
|
|
1872
|
+
protoOf(LogMessage).hashCode = function () {
|
|
1873
|
+
var result = this.level.hashCode();
|
|
1874
|
+
result = imul(result, 31) + getStringHashCode(this.message) | 0;
|
|
1875
|
+
result = imul(result, 31) + (this.tag == null ? 0 : getStringHashCode(this.tag)) | 0;
|
|
1876
|
+
result = imul(result, 31) + (this.exception == null ? 0 : hashCode(this.exception)) | 0;
|
|
1877
|
+
result = imul(result, 31) + (this.errorResult == null ? 0 : hashCode(this.errorResult)) | 0;
|
|
1878
|
+
result = imul(result, 31) + (this.metadata == null ? 0 : hashCode(this.metadata)) | 0;
|
|
1879
|
+
result = imul(result, 31) + getBigIntHashCode(this.timestamp) | 0;
|
|
1880
|
+
return result;
|
|
1881
|
+
};
|
|
1882
|
+
protoOf(LogMessage).equals = function (other) {
|
|
1883
|
+
if (this === other)
|
|
1884
|
+
return true;
|
|
1885
|
+
if (!(other instanceof LogMessage))
|
|
1886
|
+
return false;
|
|
1887
|
+
if (!this.level.equals(other.level))
|
|
1888
|
+
return false;
|
|
1889
|
+
if (!(this.message === other.message))
|
|
1890
|
+
return false;
|
|
1891
|
+
if (!(this.tag == other.tag))
|
|
1892
|
+
return false;
|
|
1893
|
+
if (!equals(this.exception, other.exception))
|
|
1894
|
+
return false;
|
|
1895
|
+
if (!equals(this.errorResult, other.errorResult))
|
|
1896
|
+
return false;
|
|
1897
|
+
if (!equals(this.metadata, other.metadata))
|
|
1898
|
+
return false;
|
|
1899
|
+
if (!(this.timestamp === other.timestamp))
|
|
1900
|
+
return false;
|
|
1901
|
+
return true;
|
|
1902
|
+
};
|
|
1903
|
+
var LogLevel_TRACE_instance;
|
|
1904
|
+
var LogLevel_DEBUG_instance;
|
|
1905
|
+
var LogLevel_INFO_instance;
|
|
1906
|
+
var LogLevel_WARN_instance;
|
|
1907
|
+
var LogLevel_ERROR_instance;
|
|
1908
|
+
var LogLevel_OFF_instance;
|
|
1909
|
+
function values_3() {
|
|
1910
|
+
return [LogLevel_TRACE_getInstance(), LogLevel_DEBUG_getInstance(), LogLevel_INFO_getInstance(), LogLevel_WARN_getInstance(), LogLevel_ERROR_getInstance(), LogLevel_OFF_getInstance()];
|
|
1911
|
+
}
|
|
1912
|
+
function valueOf_3(value) {
|
|
1913
|
+
switch (value) {
|
|
1914
|
+
case 'TRACE':
|
|
1915
|
+
return LogLevel_TRACE_getInstance();
|
|
1916
|
+
case 'DEBUG':
|
|
1917
|
+
return LogLevel_DEBUG_getInstance();
|
|
1918
|
+
case 'INFO':
|
|
1919
|
+
return LogLevel_INFO_getInstance();
|
|
1920
|
+
case 'WARN':
|
|
1921
|
+
return LogLevel_WARN_getInstance();
|
|
1922
|
+
case 'ERROR':
|
|
1923
|
+
return LogLevel_ERROR_getInstance();
|
|
1924
|
+
case 'OFF':
|
|
1925
|
+
return LogLevel_OFF_getInstance();
|
|
1926
|
+
default:
|
|
1927
|
+
LogLevel_initEntries();
|
|
1928
|
+
THROW_IAE('No enum constant com.sphereon.core.api.log.LogLevel.' + value);
|
|
1929
|
+
break;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
var LogLevel_entriesInitialized;
|
|
1933
|
+
function LogLevel_initEntries() {
|
|
1934
|
+
if (LogLevel_entriesInitialized)
|
|
1935
|
+
return Unit_instance;
|
|
1936
|
+
LogLevel_entriesInitialized = true;
|
|
1937
|
+
LogLevel_TRACE_instance = new LogLevel('TRACE', 0, 0);
|
|
1938
|
+
LogLevel_DEBUG_instance = new LogLevel('DEBUG', 1, 10);
|
|
1939
|
+
LogLevel_INFO_instance = new LogLevel('INFO', 2, 20);
|
|
1940
|
+
LogLevel_WARN_instance = new LogLevel('WARN', 3, 30);
|
|
1941
|
+
LogLevel_ERROR_instance = new LogLevel('ERROR', 4, 40);
|
|
1942
|
+
LogLevel_OFF_instance = new LogLevel('OFF', 5, 100);
|
|
1943
|
+
}
|
|
1944
|
+
function LogLevel(name, ordinal, value) {
|
|
1945
|
+
Enum.call(this, name, ordinal);
|
|
1946
|
+
this.value = value;
|
|
1947
|
+
}
|
|
1948
|
+
protoOf(LogLevel).r1 = function () {
|
|
1949
|
+
return this.value;
|
|
1950
|
+
};
|
|
1951
|
+
protoOf(LogLevel).toString = function () {
|
|
1952
|
+
return this.k2_1;
|
|
1953
|
+
};
|
|
1954
|
+
function Companion_2() {
|
|
1955
|
+
Companion_instance_2 = this;
|
|
1956
|
+
this.l18_1 = new LoggerConfig(LogLevel_OFF_getInstance());
|
|
1957
|
+
this.m18_1 = new LoggerConfig(LogLevel_DEBUG_getInstance());
|
|
1958
|
+
this.n18_1 = new LoggerConfig(LogLevel_DEBUG_getInstance());
|
|
1959
|
+
this.o18_1 = new LoggerConfig(LogLevel_DEBUG_getInstance(), VOID, LogOutputFormat_JSON_getInstance(), true);
|
|
1960
|
+
}
|
|
1961
|
+
protoOf(Companion_2).p18 = function () {
|
|
1962
|
+
return this.l18_1;
|
|
1963
|
+
};
|
|
1964
|
+
protoOf(Companion_2).q18 = function () {
|
|
1965
|
+
return this.m18_1;
|
|
1966
|
+
};
|
|
1967
|
+
protoOf(Companion_2).r18 = function () {
|
|
1968
|
+
return this.n18_1;
|
|
1969
|
+
};
|
|
1970
|
+
protoOf(Companion_2).s18 = function () {
|
|
1971
|
+
return this.o18_1;
|
|
1972
|
+
};
|
|
1973
|
+
var Companion_instance_2;
|
|
1974
|
+
function Companion_getInstance_7() {
|
|
1975
|
+
if (Companion_instance_2 == null)
|
|
1976
|
+
new Companion_2();
|
|
1977
|
+
return Companion_instance_2;
|
|
1978
|
+
}
|
|
1979
|
+
function get_Disabled() {
|
|
1980
|
+
return Companion_getInstance_7().l18_1;
|
|
1981
|
+
}
|
|
1982
|
+
function get_Debug() {
|
|
1983
|
+
return Companion_getInstance_7().m18_1;
|
|
1984
|
+
}
|
|
1985
|
+
function get_Default() {
|
|
1986
|
+
return Companion_getInstance_7().n18_1;
|
|
1987
|
+
}
|
|
1988
|
+
function get_JsonWithTimestamp() {
|
|
1989
|
+
return Companion_getInstance_7().o18_1;
|
|
1990
|
+
}
|
|
1991
|
+
function LoggerConfig(minLevel, tag, outputFormat, includeTimestamp) {
|
|
1992
|
+
Companion_getInstance_7();
|
|
1993
|
+
minLevel = minLevel === VOID ? LogLevel_DEBUG_getInstance() : minLevel;
|
|
1994
|
+
tag = tag === VOID ? 'sphereon' : tag;
|
|
1995
|
+
outputFormat = outputFormat === VOID ? LogOutputFormat_TEXT_getInstance() : outputFormat;
|
|
1996
|
+
includeTimestamp = includeTimestamp === VOID ? false : includeTimestamp;
|
|
1997
|
+
this.minLevel = minLevel;
|
|
1998
|
+
this.tag = tag;
|
|
1999
|
+
this.outputFormat = outputFormat;
|
|
2000
|
+
this.includeTimestamp = includeTimestamp;
|
|
2001
|
+
}
|
|
2002
|
+
protoOf(LoggerConfig).t18 = function () {
|
|
2003
|
+
return this.minLevel;
|
|
2004
|
+
};
|
|
2005
|
+
protoOf(LoggerConfig).a18 = function () {
|
|
2006
|
+
return this.tag;
|
|
2007
|
+
};
|
|
2008
|
+
protoOf(LoggerConfig).u18 = function () {
|
|
2009
|
+
return this.outputFormat;
|
|
2010
|
+
};
|
|
2011
|
+
protoOf(LoggerConfig).v18 = function () {
|
|
2012
|
+
return this.includeTimestamp;
|
|
2013
|
+
};
|
|
2014
|
+
protoOf(LoggerConfig).isEnabled = function (level) {
|
|
2015
|
+
return level.value >= this.minLevel.value;
|
|
2016
|
+
};
|
|
2017
|
+
protoOf(LoggerConfig).disable = function () {
|
|
2018
|
+
return this.copy(LogLevel_OFF_getInstance());
|
|
2019
|
+
};
|
|
2020
|
+
protoOf(LoggerConfig).gb = function () {
|
|
2021
|
+
return this.minLevel;
|
|
2022
|
+
};
|
|
2023
|
+
protoOf(LoggerConfig).hb = function () {
|
|
2024
|
+
return this.tag;
|
|
2025
|
+
};
|
|
2026
|
+
protoOf(LoggerConfig).q15 = function () {
|
|
2027
|
+
return this.outputFormat;
|
|
2028
|
+
};
|
|
2029
|
+
protoOf(LoggerConfig).e18 = function () {
|
|
2030
|
+
return this.includeTimestamp;
|
|
2031
|
+
};
|
|
2032
|
+
protoOf(LoggerConfig).w18 = function (minLevel, tag, outputFormat, includeTimestamp) {
|
|
2033
|
+
return new LoggerConfig(minLevel, tag, outputFormat, includeTimestamp);
|
|
2034
|
+
};
|
|
2035
|
+
protoOf(LoggerConfig).copy = function (minLevel, tag, outputFormat, includeTimestamp, $super) {
|
|
2036
|
+
minLevel = minLevel === VOID ? this.minLevel : minLevel;
|
|
2037
|
+
tag = tag === VOID ? this.tag : tag;
|
|
2038
|
+
outputFormat = outputFormat === VOID ? this.outputFormat : outputFormat;
|
|
2039
|
+
includeTimestamp = includeTimestamp === VOID ? this.includeTimestamp : includeTimestamp;
|
|
2040
|
+
return $super === VOID ? this.w18(minLevel, tag, outputFormat, includeTimestamp) : $super.w18.call(this, minLevel, tag, outputFormat, includeTimestamp);
|
|
2041
|
+
};
|
|
2042
|
+
protoOf(LoggerConfig).toString = function () {
|
|
2043
|
+
return 'LoggerConfig(minLevel=' + this.minLevel.toString() + ', tag=' + this.tag + ', outputFormat=' + this.outputFormat.toString() + ', includeTimestamp=' + this.includeTimestamp + ')';
|
|
2044
|
+
};
|
|
2045
|
+
protoOf(LoggerConfig).hashCode = function () {
|
|
2046
|
+
var result = this.minLevel.hashCode();
|
|
2047
|
+
result = imul(result, 31) + getStringHashCode(this.tag) | 0;
|
|
2048
|
+
result = imul(result, 31) + this.outputFormat.hashCode() | 0;
|
|
2049
|
+
result = imul(result, 31) + getBooleanHashCode(this.includeTimestamp) | 0;
|
|
2050
|
+
return result;
|
|
2051
|
+
};
|
|
2052
|
+
protoOf(LoggerConfig).equals = function (other) {
|
|
2053
|
+
if (this === other)
|
|
2054
|
+
return true;
|
|
2055
|
+
if (!(other instanceof LoggerConfig))
|
|
2056
|
+
return false;
|
|
2057
|
+
if (!this.minLevel.equals(other.minLevel))
|
|
2058
|
+
return false;
|
|
2059
|
+
if (!(this.tag === other.tag))
|
|
2060
|
+
return false;
|
|
2061
|
+
if (!this.outputFormat.equals(other.outputFormat))
|
|
2062
|
+
return false;
|
|
2063
|
+
if (!(this.includeTimestamp === other.includeTimestamp))
|
|
2064
|
+
return false;
|
|
2065
|
+
return true;
|
|
2066
|
+
};
|
|
2067
|
+
function LogOutputFormat_TEXT_getInstance() {
|
|
2068
|
+
LogOutputFormat_initEntries();
|
|
2069
|
+
return LogOutputFormat_TEXT_instance;
|
|
2070
|
+
}
|
|
2071
|
+
function LogOutputFormat_JSON_getInstance() {
|
|
2072
|
+
LogOutputFormat_initEntries();
|
|
2073
|
+
return LogOutputFormat_JSON_instance;
|
|
2074
|
+
}
|
|
2075
|
+
function LogLevel_TRACE_getInstance() {
|
|
2076
|
+
LogLevel_initEntries();
|
|
2077
|
+
return LogLevel_TRACE_instance;
|
|
2078
|
+
}
|
|
2079
|
+
function LogLevel_DEBUG_getInstance() {
|
|
2080
|
+
LogLevel_initEntries();
|
|
2081
|
+
return LogLevel_DEBUG_instance;
|
|
2082
|
+
}
|
|
2083
|
+
function LogLevel_INFO_getInstance() {
|
|
2084
|
+
LogLevel_initEntries();
|
|
2085
|
+
return LogLevel_INFO_instance;
|
|
2086
|
+
}
|
|
2087
|
+
function LogLevel_WARN_getInstance() {
|
|
2088
|
+
LogLevel_initEntries();
|
|
2089
|
+
return LogLevel_WARN_instance;
|
|
2090
|
+
}
|
|
2091
|
+
function LogLevel_ERROR_getInstance() {
|
|
2092
|
+
LogLevel_initEntries();
|
|
2093
|
+
return LogLevel_ERROR_instance;
|
|
2094
|
+
}
|
|
2095
|
+
function LogLevel_OFF_getInstance() {
|
|
2096
|
+
LogLevel_initEntries();
|
|
2097
|
+
return LogLevel_OFF_instance;
|
|
2098
|
+
}
|
|
2099
|
+
function BaseChainCommand$config$1() {
|
|
2100
|
+
}
|
|
2101
|
+
protoOf(BaseChainCommand$config$1).x18 = function () {
|
|
2102
|
+
return 1;
|
|
2103
|
+
};
|
|
2104
|
+
function BaseChainCommand() {
|
|
2105
|
+
}
|
|
2106
|
+
function IChainCommandConfig() {
|
|
2107
|
+
}
|
|
2108
|
+
function BasePipelineCommand() {
|
|
2109
|
+
}
|
|
2110
|
+
function Command() {
|
|
2111
|
+
}
|
|
2112
|
+
function ChainCommand() {
|
|
2113
|
+
}
|
|
2114
|
+
function PipelineCommand() {
|
|
2115
|
+
}
|
|
2116
|
+
function MultiService() {
|
|
2117
|
+
}
|
|
2118
|
+
function ICommandInitExtension() {
|
|
2119
|
+
}
|
|
2120
|
+
var CommandExecutionPhase_BEFORE_instance;
|
|
2121
|
+
var CommandExecutionPhase_DURING_instance;
|
|
2122
|
+
var CommandExecutionPhase_AFTER_instance;
|
|
2123
|
+
function values_4() {
|
|
2124
|
+
return [CommandExecutionPhase_BEFORE_getInstance(), CommandExecutionPhase_DURING_getInstance(), CommandExecutionPhase_AFTER_getInstance()];
|
|
2125
|
+
}
|
|
2126
|
+
function valueOf_4(value) {
|
|
2127
|
+
switch (value) {
|
|
2128
|
+
case 'BEFORE':
|
|
2129
|
+
return CommandExecutionPhase_BEFORE_getInstance();
|
|
2130
|
+
case 'DURING':
|
|
2131
|
+
return CommandExecutionPhase_DURING_getInstance();
|
|
2132
|
+
case 'AFTER':
|
|
2133
|
+
return CommandExecutionPhase_AFTER_getInstance();
|
|
2134
|
+
default:
|
|
2135
|
+
CommandExecutionPhase_initEntries();
|
|
2136
|
+
THROW_IAE('No enum constant com.sphereon.core.api.session.CommandExecutionPhase.' + value);
|
|
2137
|
+
break;
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
var CommandExecutionPhase_entriesInitialized;
|
|
2141
|
+
function CommandExecutionPhase_initEntries() {
|
|
2142
|
+
if (CommandExecutionPhase_entriesInitialized)
|
|
2143
|
+
return Unit_instance;
|
|
2144
|
+
CommandExecutionPhase_entriesInitialized = true;
|
|
2145
|
+
CommandExecutionPhase_BEFORE_instance = new CommandExecutionPhase('BEFORE', 0);
|
|
2146
|
+
CommandExecutionPhase_DURING_instance = new CommandExecutionPhase('DURING', 1);
|
|
2147
|
+
CommandExecutionPhase_AFTER_instance = new CommandExecutionPhase('AFTER', 2);
|
|
2148
|
+
}
|
|
2149
|
+
function CommandExecutionPhase(name, ordinal) {
|
|
2150
|
+
Enum.call(this, name, ordinal);
|
|
2151
|
+
}
|
|
2152
|
+
function ICommandExecutionExtension() {
|
|
2153
|
+
}
|
|
2154
|
+
function ICommandExecutionListener() {
|
|
2155
|
+
}
|
|
2156
|
+
function $supportsCOROUTINE$(_this__u8e3s4, args, resultContinuation) {
|
|
2157
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2158
|
+
this.u19_1 = _this__u8e3s4;
|
|
2159
|
+
this.v19_1 = args;
|
|
2160
|
+
}
|
|
2161
|
+
protoOf($supportsCOROUTINE$).y19 = function () {
|
|
2162
|
+
var suspendResult = this.z7_1;
|
|
2163
|
+
$sm: do
|
|
2164
|
+
try {
|
|
2165
|
+
var tmp = this.x7_1;
|
|
2166
|
+
switch (tmp) {
|
|
2167
|
+
case 0:
|
|
2168
|
+
this.y7_1 = 5;
|
|
2169
|
+
this.x7_1 = 1;
|
|
2170
|
+
suspendResult = this.u19_1.z19_1.b19(this.v19_1, this);
|
|
2171
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2172
|
+
return suspendResult;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
continue $sm;
|
|
2176
|
+
case 1:
|
|
2177
|
+
if (suspendResult) {
|
|
2178
|
+
var tmp_0 = this.v19_1;
|
|
2179
|
+
var tmp0_safe_receiver = !(tmp_0 == null) ? tmp_0 : null;
|
|
2180
|
+
if (tmp0_safe_receiver == null) {
|
|
2181
|
+
this.x19_1 = null;
|
|
2182
|
+
this.x7_1 = 3;
|
|
2183
|
+
continue $sm;
|
|
2184
|
+
} else {
|
|
2185
|
+
this.x7_1 = 2;
|
|
2186
|
+
suspendResult = this.u19_1.a1a_1.b19(tmp0_safe_receiver, this);
|
|
2187
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2188
|
+
return suspendResult;
|
|
2189
|
+
}
|
|
2190
|
+
continue $sm;
|
|
2191
|
+
}
|
|
2192
|
+
} else {
|
|
2193
|
+
this.w19_1 = false;
|
|
2194
|
+
this.x7_1 = 4;
|
|
2195
|
+
continue $sm;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
case 2:
|
|
2199
|
+
this.x19_1 = suspendResult;
|
|
2200
|
+
this.x7_1 = 3;
|
|
2201
|
+
continue $sm;
|
|
2202
|
+
case 3:
|
|
2203
|
+
var tmp1_elvis_lhs = this.x19_1;
|
|
2204
|
+
this.w19_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
2205
|
+
this.x7_1 = 4;
|
|
2206
|
+
continue $sm;
|
|
2207
|
+
case 4:
|
|
2208
|
+
return this.w19_1;
|
|
2209
|
+
case 5:
|
|
2210
|
+
throw this.a8_1;
|
|
2211
|
+
}
|
|
2212
|
+
} catch ($p) {
|
|
2213
|
+
var e = $p;
|
|
2214
|
+
if (this.y7_1 === 5) {
|
|
2215
|
+
throw e;
|
|
2216
|
+
} else {
|
|
2217
|
+
this.x7_1 = this.y7_1;
|
|
2218
|
+
this.a8_1 = e;
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
while (true);
|
|
2222
|
+
};
|
|
2223
|
+
function $executeCOROUTINE$(_this__u8e3s4, args, resultContinuation) {
|
|
2224
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2225
|
+
this.k1a_1 = _this__u8e3s4;
|
|
2226
|
+
this.l1a_1 = args;
|
|
2227
|
+
}
|
|
2228
|
+
protoOf($executeCOROUTINE$).y19 = function () {
|
|
2229
|
+
var suspendResult = this.z7_1;
|
|
2230
|
+
$sm: do
|
|
2231
|
+
try {
|
|
2232
|
+
var tmp = this.x7_1;
|
|
2233
|
+
switch (tmp) {
|
|
2234
|
+
case 0:
|
|
2235
|
+
this.y7_1 = 4;
|
|
2236
|
+
this.x7_1 = 1;
|
|
2237
|
+
suspendResult = this.k1a_1.z19_1.c19(this.l1a_1, this);
|
|
2238
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2239
|
+
return suspendResult;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
continue $sm;
|
|
2243
|
+
case 1:
|
|
2244
|
+
this.m1a_1 = suspendResult;
|
|
2245
|
+
if (!this.m1a_1.isOk) {
|
|
2246
|
+
return Companion_instance.err(this.m1a_1.error);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
this.x7_1 = 2;
|
|
2250
|
+
suspendResult = supportsOrError(this.k1a_1.a1a_1, this.m1a_1.value, this.k1a_1.b1a_1, this);
|
|
2251
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2252
|
+
return suspendResult;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
continue $sm;
|
|
2256
|
+
case 2:
|
|
2257
|
+
var supportResult = suspendResult;
|
|
2258
|
+
if (supportResult.isErr) {
|
|
2259
|
+
return Companion_instance.err(supportResult.error);
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
this.x7_1 = 3;
|
|
2263
|
+
suspendResult = this.k1a_1.a1a_1.c19(this.m1a_1.value, this);
|
|
2264
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2265
|
+
return suspendResult;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
continue $sm;
|
|
2269
|
+
case 3:
|
|
2270
|
+
return suspendResult;
|
|
2271
|
+
case 4:
|
|
2272
|
+
throw this.a8_1;
|
|
2273
|
+
}
|
|
2274
|
+
} catch ($p) {
|
|
2275
|
+
var e = $p;
|
|
2276
|
+
if (this.y7_1 === 4) {
|
|
2277
|
+
throw e;
|
|
2278
|
+
} else {
|
|
2279
|
+
this.x7_1 = this.y7_1;
|
|
2280
|
+
this.a8_1 = e;
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
while (true);
|
|
2284
|
+
};
|
|
2285
|
+
function BaseCommand$andThen$1($this_andThen, $next, $errorMapper) {
|
|
2286
|
+
this.z19_1 = $this_andThen;
|
|
2287
|
+
this.a1a_1 = $next;
|
|
2288
|
+
this.b1a_1 = $errorMapper;
|
|
2289
|
+
}
|
|
2290
|
+
protoOf(BaseCommand$andThen$1).b19 = function (args, $completion) {
|
|
2291
|
+
var tmp = new $supportsCOROUTINE$(this, args, $completion);
|
|
2292
|
+
tmp.z7_1 = Unit_instance;
|
|
2293
|
+
tmp.a8_1 = null;
|
|
2294
|
+
return tmp.y19();
|
|
2295
|
+
};
|
|
2296
|
+
protoOf(BaseCommand$andThen$1).n1a = function (args, $completion) {
|
|
2297
|
+
var tmp = new $executeCOROUTINE$(this, args, $completion);
|
|
2298
|
+
tmp.z7_1 = Unit_instance;
|
|
2299
|
+
tmp.a8_1 = null;
|
|
2300
|
+
return tmp.y19();
|
|
2301
|
+
};
|
|
2302
|
+
protoOf(BaseCommand$andThen$1).c19 = function (args, $completion) {
|
|
2303
|
+
return this.n1a(!(args == null) ? args : THROW_CCE(), $completion);
|
|
2304
|
+
};
|
|
2305
|
+
function $andThenCommandCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, nextCommand, resultContinuation) {
|
|
2306
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2307
|
+
this.w1a_1 = _this__u8e3s4;
|
|
2308
|
+
this.x1a_1 = _this__u8e3s4_0;
|
|
2309
|
+
this.y1a_1 = nextCommand;
|
|
2310
|
+
}
|
|
2311
|
+
protoOf($andThenCommandCOROUTINE$).y19 = function () {
|
|
2312
|
+
var suspendResult = this.z7_1;
|
|
2313
|
+
$sm: do
|
|
2314
|
+
try {
|
|
2315
|
+
var tmp = this.x7_1;
|
|
2316
|
+
switch (tmp) {
|
|
2317
|
+
case 0:
|
|
2318
|
+
this.y7_1 = 3;
|
|
2319
|
+
if (this.x1a_1.isOk) {
|
|
2320
|
+
this.x7_1 = 1;
|
|
2321
|
+
suspendResult = this.y1a_1.c19(this.x1a_1.value, this);
|
|
2322
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2323
|
+
return suspendResult;
|
|
2324
|
+
}
|
|
2325
|
+
continue $sm;
|
|
2326
|
+
} else {
|
|
2327
|
+
var tmp_0 = this;
|
|
2328
|
+
tmp_0.z1a_1 = Companion_instance.err(this.x1a_1.error);
|
|
2329
|
+
this.x7_1 = 2;
|
|
2330
|
+
continue $sm;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
case 1:
|
|
2334
|
+
this.z1a_1 = suspendResult;
|
|
2335
|
+
this.x7_1 = 2;
|
|
2336
|
+
continue $sm;
|
|
2337
|
+
case 2:
|
|
2338
|
+
return this.z1a_1;
|
|
2339
|
+
case 3:
|
|
2340
|
+
throw this.a8_1;
|
|
2341
|
+
}
|
|
2342
|
+
} catch ($p) {
|
|
2343
|
+
var e = $p;
|
|
2344
|
+
if (this.y7_1 === 3) {
|
|
2345
|
+
throw e;
|
|
2346
|
+
} else {
|
|
2347
|
+
this.x7_1 = this.y7_1;
|
|
2348
|
+
this.a8_1 = e;
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
while (true);
|
|
2352
|
+
};
|
|
2353
|
+
function BaseCommand() {
|
|
2354
|
+
}
|
|
2355
|
+
function CommandExecutionPhase_BEFORE_getInstance() {
|
|
2356
|
+
CommandExecutionPhase_initEntries();
|
|
2357
|
+
return CommandExecutionPhase_BEFORE_instance;
|
|
2358
|
+
}
|
|
2359
|
+
function CommandExecutionPhase_DURING_getInstance() {
|
|
2360
|
+
CommandExecutionPhase_initEntries();
|
|
2361
|
+
return CommandExecutionPhase_DURING_instance;
|
|
2362
|
+
}
|
|
2363
|
+
function CommandExecutionPhase_AFTER_getInstance() {
|
|
2364
|
+
CommandExecutionPhase_initEntries();
|
|
2365
|
+
return CommandExecutionPhase_AFTER_instance;
|
|
2366
|
+
}
|
|
2367
|
+
function IdkErrorCommandErrorMapper() {
|
|
2368
|
+
}
|
|
2369
|
+
protoOf(IdkErrorCommandErrorMapper).a1b = function (command, arg) {
|
|
2370
|
+
var tmp = CommandErrors_instance;
|
|
2371
|
+
return tmp.c1b(isInterface(command, BaseCommand) ? command : null, arg);
|
|
2372
|
+
};
|
|
2373
|
+
var IdkErrorCommandErrorMapper_instance;
|
|
2374
|
+
function IdkErrorCommandErrorMapper_getInstance() {
|
|
2375
|
+
return IdkErrorCommandErrorMapper_instance;
|
|
2376
|
+
}
|
|
2377
|
+
function CommandErrors() {
|
|
2378
|
+
this.b1b_1 = 'COMMAND_NOT_AUTHORIZED';
|
|
2379
|
+
}
|
|
2380
|
+
protoOf(CommandErrors).c1b = function (command, arg) {
|
|
2381
|
+
return Companion_instance_0.c16(VOID, VOID, command, arg);
|
|
2382
|
+
};
|
|
2383
|
+
var CommandErrors_instance;
|
|
2384
|
+
function CommandErrors_getInstance() {
|
|
2385
|
+
return CommandErrors_instance;
|
|
2386
|
+
}
|
|
2387
|
+
function supportsOrError(_this__u8e3s4, args, errorMapper, $completion) {
|
|
2388
|
+
var tmp = new $supportsOrErrorCOROUTINE$(_this__u8e3s4, args, errorMapper, $completion);
|
|
2389
|
+
tmp.z7_1 = Unit_instance;
|
|
2390
|
+
tmp.a8_1 = null;
|
|
2391
|
+
return tmp.y19();
|
|
2392
|
+
}
|
|
2393
|
+
function $supportsOrErrorCOROUTINE$(_this__u8e3s4, args, errorMapper, resultContinuation) {
|
|
2394
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2395
|
+
this.l1b_1 = _this__u8e3s4;
|
|
2396
|
+
this.m1b_1 = args;
|
|
2397
|
+
this.n1b_1 = errorMapper;
|
|
2398
|
+
}
|
|
2399
|
+
protoOf($supportsOrErrorCOROUTINE$).y19 = function () {
|
|
2400
|
+
var suspendResult = this.z7_1;
|
|
2401
|
+
$sm: do
|
|
2402
|
+
try {
|
|
2403
|
+
var tmp = this.x7_1;
|
|
2404
|
+
switch (tmp) {
|
|
2405
|
+
case 0:
|
|
2406
|
+
this.y7_1 = 3;
|
|
2407
|
+
this.x7_1 = 1;
|
|
2408
|
+
suspendResult = this.l1b_1.b19(this.m1b_1, this);
|
|
2409
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2410
|
+
return suspendResult;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
continue $sm;
|
|
2414
|
+
case 1:
|
|
2415
|
+
if (suspendResult) {
|
|
2416
|
+
var tmp_0 = this;
|
|
2417
|
+
tmp_0.o1b_1 = new Ok_0(Unit_instance);
|
|
2418
|
+
this.x7_1 = 2;
|
|
2419
|
+
continue $sm;
|
|
2420
|
+
} else {
|
|
2421
|
+
var tmp_1 = this;
|
|
2422
|
+
tmp_1.o1b_1 = new Err_0(this.n1b_1.a1b(this.l1b_1, this.m1b_1));
|
|
2423
|
+
this.x7_1 = 2;
|
|
2424
|
+
continue $sm;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
case 2:
|
|
2428
|
+
return this.o1b_1;
|
|
2429
|
+
case 3:
|
|
2430
|
+
throw this.a8_1;
|
|
2431
|
+
}
|
|
2432
|
+
} catch ($p) {
|
|
2433
|
+
var e = $p;
|
|
2434
|
+
if (this.y7_1 === 3) {
|
|
2435
|
+
throw e;
|
|
2436
|
+
} else {
|
|
2437
|
+
this.x7_1 = this.y7_1;
|
|
2438
|
+
this.a8_1 = e;
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
while (true);
|
|
2442
|
+
};
|
|
2443
|
+
function kmpListOf(elements) {
|
|
2444
|
+
return toList(elements);
|
|
2445
|
+
}
|
|
2446
|
+
function kmpSetOf(elements) {
|
|
2447
|
+
return toSet(elements);
|
|
2448
|
+
}
|
|
2449
|
+
function kmpMapOf() {
|
|
2450
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2451
|
+
return LinkedHashMap_init_$Create$();
|
|
2452
|
+
}
|
|
2453
|
+
function Companion_3() {
|
|
2454
|
+
}
|
|
2455
|
+
protoOf(Companion_3).sd = function () {
|
|
2456
|
+
return this.p1b();
|
|
2457
|
+
};
|
|
2458
|
+
protoOf(Companion_3).q1b = function (utils, timeZoneId) {
|
|
2459
|
+
return utils.dateTime(timeZoneId);
|
|
2460
|
+
};
|
|
2461
|
+
protoOf(Companion_3).p1b = function (utils, timeZoneId, $super) {
|
|
2462
|
+
utils = utils === VOID ? Companion_getInstance_9().r1b_1 : utils;
|
|
2463
|
+
timeZoneId = timeZoneId === VOID ? null : timeZoneId;
|
|
2464
|
+
return $super === VOID ? this.q1b(utils, timeZoneId) : $super.q1b.call(this, utils, timeZoneId);
|
|
2465
|
+
};
|
|
2466
|
+
protoOf(Companion_3).s1b = function (value) {
|
|
2467
|
+
var tmp;
|
|
2468
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2469
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2470
|
+
var tmp$ret$0 = value.toLowerCase();
|
|
2471
|
+
if (endsWith(tmp$ret$0, _Char___init__impl__6a9atx(122))) {
|
|
2472
|
+
var instant = Companion_getInstance_0().ee(value);
|
|
2473
|
+
tmp = toLocalDateTime(instant, Companion_getInstance_3().o13(Companion_getInstance_9().r1b_1.timeZoneId));
|
|
2474
|
+
} else {
|
|
2475
|
+
tmp = Companion_getInstance_2().a13(value);
|
|
2476
|
+
}
|
|
2477
|
+
var datetime = tmp;
|
|
2478
|
+
return new LocalDateTimeKMP(datetime.er(), datetime.jr(), datetime.c13(), datetime.lt(), datetime.ft(), datetime.ht(), datetime.jt());
|
|
2479
|
+
};
|
|
2480
|
+
protoOf(Companion_3).u1b = function () {
|
|
2481
|
+
return LocalDateTimeIso8601SerializerKMP_getInstance();
|
|
2482
|
+
};
|
|
2483
|
+
var Companion_instance_3;
|
|
2484
|
+
function Companion_getInstance_8() {
|
|
2485
|
+
return Companion_instance_3;
|
|
2486
|
+
}
|
|
2487
|
+
function now() {
|
|
2488
|
+
return Companion_instance_3.sd();
|
|
2489
|
+
}
|
|
2490
|
+
function nowWithTimezone(utils, timeZoneId) {
|
|
2491
|
+
utils = utils === VOID ? Companion_getInstance_9().r1b_1 : utils;
|
|
2492
|
+
timeZoneId = timeZoneId === VOID ? null : timeZoneId;
|
|
2493
|
+
return Companion_instance_3.p1b(utils, timeZoneId);
|
|
2494
|
+
}
|
|
2495
|
+
function fromString_0(value) {
|
|
2496
|
+
return Companion_instance_3.s1b(value);
|
|
2497
|
+
}
|
|
2498
|
+
function LocalDateTimeKMP(year, month, day, hour, minute, second, nanosecond) {
|
|
2499
|
+
second = second === VOID ? 0 : second;
|
|
2500
|
+
nanosecond = nanosecond === VOID ? 0 : nanosecond;
|
|
2501
|
+
this.year = year;
|
|
2502
|
+
this.month = month;
|
|
2503
|
+
this.day = day;
|
|
2504
|
+
this.hour = hour;
|
|
2505
|
+
this.minute = minute;
|
|
2506
|
+
this.second = second;
|
|
2507
|
+
this.nanosecond = nanosecond;
|
|
2508
|
+
this.v1b_1 = LocalDateTime_init_$Create$(this.year, this.month, this.day, this.hour, this.minute, this.second, this.nanosecond);
|
|
2509
|
+
}
|
|
2510
|
+
protoOf(LocalDateTimeKMP).er = function () {
|
|
2511
|
+
return this.year;
|
|
2512
|
+
};
|
|
2513
|
+
protoOf(LocalDateTimeKMP).ir = function () {
|
|
2514
|
+
return this.month;
|
|
2515
|
+
};
|
|
2516
|
+
protoOf(LocalDateTimeKMP).yq = function () {
|
|
2517
|
+
return this.day;
|
|
2518
|
+
};
|
|
2519
|
+
protoOf(LocalDateTimeKMP).lt = function () {
|
|
2520
|
+
return this.hour;
|
|
2521
|
+
};
|
|
2522
|
+
protoOf(LocalDateTimeKMP).ft = function () {
|
|
2523
|
+
return this.minute;
|
|
2524
|
+
};
|
|
2525
|
+
protoOf(LocalDateTimeKMP).ht = function () {
|
|
2526
|
+
return this.second;
|
|
2527
|
+
};
|
|
2528
|
+
protoOf(LocalDateTimeKMP).jt = function () {
|
|
2529
|
+
return this.nanosecond;
|
|
2530
|
+
};
|
|
2531
|
+
protoOf(LocalDateTimeKMP).w1b = function (other) {
|
|
2532
|
+
return Companion_instance_3.s1b(this.toString()).w1b(Companion_instance_3.s1b(other.toString()));
|
|
2533
|
+
};
|
|
2534
|
+
protoOf(LocalDateTimeKMP).d = function (other) {
|
|
2535
|
+
return this.w1b(other instanceof LocalDateTimeKMP ? other : THROW_CCE());
|
|
2536
|
+
};
|
|
2537
|
+
protoOf(LocalDateTimeKMP).toMdocTdateString = function () {
|
|
2538
|
+
return replace(split(this.toInstant().toString(), ['.']).k(0) + 'Z', 'ZZ', 'Z');
|
|
2539
|
+
};
|
|
2540
|
+
protoOf(LocalDateTimeKMP).toString = function () {
|
|
2541
|
+
return this.v1b_1.toString();
|
|
2542
|
+
};
|
|
2543
|
+
protoOf(LocalDateTimeKMP).x1b = function (timeZoneId) {
|
|
2544
|
+
return toInstant(this.v1b_1, Companion_getInstance_9().r1b_1.timeZone(timeZoneId)).ge_1;
|
|
2545
|
+
};
|
|
2546
|
+
protoOf(LocalDateTimeKMP).toEpochSeconds = function (timeZoneId, $super) {
|
|
2547
|
+
timeZoneId = timeZoneId === VOID ? Companion_getInstance_3().e12_1.l13_1 : timeZoneId;
|
|
2548
|
+
return $super === VOID ? this.x1b(timeZoneId) : $super.x1b.call(this, timeZoneId);
|
|
2549
|
+
};
|
|
2550
|
+
protoOf(LocalDateTimeKMP).y1b = function (utils, timeZoneId) {
|
|
2551
|
+
return toInstant(this.v1b_1, utils.timeZone(timeZoneId));
|
|
2552
|
+
};
|
|
2553
|
+
protoOf(LocalDateTimeKMP).toInstant = function (utils, timeZoneId, $super) {
|
|
2554
|
+
utils = utils === VOID ? Companion_getInstance_9().r1b_1 : utils;
|
|
2555
|
+
timeZoneId = timeZoneId === VOID ? null : timeZoneId;
|
|
2556
|
+
return $super === VOID ? this.y1b(utils, timeZoneId) : $super.y1b.call(this, utils, timeZoneId);
|
|
2557
|
+
};
|
|
2558
|
+
function LocalDateTimeIso8601SerializerKMP() {
|
|
2559
|
+
LocalDateTimeIso8601SerializerKMP_instance = this;
|
|
2560
|
+
this.z1b_1 = PrimitiveSerialDescriptor('com.sphereon.core.compat.datetime.LocalDateTime', STRING_getInstance());
|
|
2561
|
+
}
|
|
2562
|
+
protoOf(LocalDateTimeIso8601SerializerKMP).dh = function () {
|
|
2563
|
+
return this.z1b_1;
|
|
2564
|
+
};
|
|
2565
|
+
var LocalDateTimeIso8601SerializerKMP_instance;
|
|
2566
|
+
function LocalDateTimeIso8601SerializerKMP_getInstance() {
|
|
2567
|
+
if (LocalDateTimeIso8601SerializerKMP_instance == null)
|
|
2568
|
+
new LocalDateTimeIso8601SerializerKMP();
|
|
2569
|
+
return LocalDateTimeIso8601SerializerKMP_instance;
|
|
2570
|
+
}
|
|
2571
|
+
function Companion_4() {
|
|
2572
|
+
Companion_instance_4 = this;
|
|
2573
|
+
this.r1b_1 = new DateTimeUtils();
|
|
2574
|
+
}
|
|
2575
|
+
protoOf(Companion_4).a1c = function () {
|
|
2576
|
+
return this.r1b_1;
|
|
2577
|
+
};
|
|
2578
|
+
var Companion_instance_4;
|
|
2579
|
+
function Companion_getInstance_9() {
|
|
2580
|
+
if (Companion_instance_4 == null)
|
|
2581
|
+
new Companion_4();
|
|
2582
|
+
return Companion_instance_4;
|
|
2583
|
+
}
|
|
2584
|
+
function now_0($this) {
|
|
2585
|
+
return $this.clock.sd();
|
|
2586
|
+
}
|
|
2587
|
+
function get_DEFAULTS() {
|
|
2588
|
+
return Companion_getInstance_9().r1b_1;
|
|
2589
|
+
}
|
|
2590
|
+
function DateTimeUtils$defaultTimeZone$lambda(this$0) {
|
|
2591
|
+
return function () {
|
|
2592
|
+
return Companion_getInstance_3().o13(this$0.timeZoneId);
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
function DateTimeUtils(clock, timeZoneId) {
|
|
2596
|
+
Companion_getInstance_9();
|
|
2597
|
+
clock = clock === VOID ? System_instance : clock;
|
|
2598
|
+
timeZoneId = timeZoneId === VOID ? Companion_getInstance_3().n13().b12() : timeZoneId;
|
|
2599
|
+
this.clock = clock;
|
|
2600
|
+
this.timeZoneId = timeZoneId;
|
|
2601
|
+
var tmp = this;
|
|
2602
|
+
tmp.t1b_1 = lazy_0(DateTimeUtils$defaultTimeZone$lambda(this));
|
|
2603
|
+
}
|
|
2604
|
+
protoOf(DateTimeUtils).b1c = function (_set____db54di) {
|
|
2605
|
+
this.clock = _set____db54di;
|
|
2606
|
+
};
|
|
2607
|
+
protoOf(DateTimeUtils).c1c = function () {
|
|
2608
|
+
return this.clock;
|
|
2609
|
+
};
|
|
2610
|
+
protoOf(DateTimeUtils).d1c = function (_set____db54di) {
|
|
2611
|
+
this.timeZoneId = _set____db54di;
|
|
2612
|
+
};
|
|
2613
|
+
protoOf(DateTimeUtils).e1c = function () {
|
|
2614
|
+
return this.timeZoneId;
|
|
2615
|
+
};
|
|
2616
|
+
protoOf(DateTimeUtils).epochSeconds = function () {
|
|
2617
|
+
return convertToInt(now_0(this).ge_1);
|
|
2618
|
+
};
|
|
2619
|
+
protoOf(DateTimeUtils).f1c = function (epochSeconds) {
|
|
2620
|
+
return this.dateTime(Companion_getInstance_3().e12_1.l13_1, epochSeconds);
|
|
2621
|
+
};
|
|
2622
|
+
protoOf(DateTimeUtils).dateTimeUTC = function (epochSeconds, $super) {
|
|
2623
|
+
epochSeconds = epochSeconds === VOID ? this.epochSeconds() : epochSeconds;
|
|
2624
|
+
return $super === VOID ? this.f1c(epochSeconds) : $super.f1c.call(this, epochSeconds);
|
|
2625
|
+
};
|
|
2626
|
+
protoOf(DateTimeUtils).g1c = function (epochSeconds) {
|
|
2627
|
+
return this.dateTime(this.timeZoneId, epochSeconds);
|
|
2628
|
+
};
|
|
2629
|
+
protoOf(DateTimeUtils).dateTimeLocal = function (epochSeconds, $super) {
|
|
2630
|
+
epochSeconds = epochSeconds === VOID ? this.epochSeconds() : epochSeconds;
|
|
2631
|
+
return $super === VOID ? this.g1c(epochSeconds) : $super.g1c.call(this, epochSeconds);
|
|
2632
|
+
};
|
|
2633
|
+
protoOf(DateTimeUtils).h1c = function (timeZoneId, epochSeconds) {
|
|
2634
|
+
var tmp = Companion_getInstance_0();
|
|
2635
|
+
var tmp1_elvis_lhs = epochSeconds == null ? null : fromInt(epochSeconds);
|
|
2636
|
+
return toKMP(toLocalDateTime(tmp.de(tmp1_elvis_lhs == null ? fromInt(this.epochSeconds()) : tmp1_elvis_lhs), this.timeZone(timeZoneId)));
|
|
2637
|
+
};
|
|
2638
|
+
protoOf(DateTimeUtils).dateTime = function (timeZoneId, epochSeconds, $super) {
|
|
2639
|
+
timeZoneId = timeZoneId === VOID ? null : timeZoneId;
|
|
2640
|
+
epochSeconds = epochSeconds === VOID ? this.epochSeconds() : epochSeconds;
|
|
2641
|
+
return $super === VOID ? this.h1c(timeZoneId, epochSeconds) : $super.h1c.call(this, timeZoneId, epochSeconds);
|
|
2642
|
+
};
|
|
2643
|
+
protoOf(DateTimeUtils).i1c = function (epochSeconds) {
|
|
2644
|
+
return this.dateISO(this.timeZoneId, epochSeconds);
|
|
2645
|
+
};
|
|
2646
|
+
protoOf(DateTimeUtils).dateLocalISO = function (epochSeconds, $super) {
|
|
2647
|
+
epochSeconds = epochSeconds === VOID ? this.epochSeconds() : epochSeconds;
|
|
2648
|
+
return $super === VOID ? this.i1c(epochSeconds) : $super.i1c.call(this, epochSeconds);
|
|
2649
|
+
};
|
|
2650
|
+
protoOf(DateTimeUtils).j1c = function (timeZoneId, epochSeconds) {
|
|
2651
|
+
return format(toKotlin(this.dateTime(timeZoneId == null ? this.timeZoneId : timeZoneId, epochSeconds)).bt_1, Formats_getInstance().q12());
|
|
2652
|
+
};
|
|
2653
|
+
protoOf(DateTimeUtils).dateISO = function (timeZoneId, epochSeconds, $super) {
|
|
2654
|
+
epochSeconds = epochSeconds === VOID ? this.epochSeconds() : epochSeconds;
|
|
2655
|
+
return $super === VOID ? this.j1c(timeZoneId, epochSeconds) : $super.j1c.call(this, timeZoneId, epochSeconds);
|
|
2656
|
+
};
|
|
2657
|
+
protoOf(DateTimeUtils).timeZone = function (timeZoneId) {
|
|
2658
|
+
var tmp;
|
|
2659
|
+
if (timeZoneId == null) {
|
|
2660
|
+
tmp = null;
|
|
2661
|
+
} else {
|
|
2662
|
+
// Inline function 'kotlin.let' call
|
|
2663
|
+
tmp = Companion_getInstance_3().o13(timeZoneId);
|
|
2664
|
+
}
|
|
2665
|
+
var tmp1_elvis_lhs = tmp;
|
|
2666
|
+
return tmp1_elvis_lhs == null ? this.t1b_1.r1() : tmp1_elvis_lhs;
|
|
2667
|
+
};
|
|
2668
|
+
function DateTimeUtilsDefault() {
|
|
2669
|
+
DateTimeUtilsDefault_instance = this;
|
|
2670
|
+
this.INSTANCE = new DateTimeUtils();
|
|
2671
|
+
}
|
|
2672
|
+
protoOf(DateTimeUtilsDefault).k1c = function () {
|
|
2673
|
+
return this.INSTANCE;
|
|
2674
|
+
};
|
|
2675
|
+
var DateTimeUtilsDefault_instance;
|
|
2676
|
+
function DateTimeUtilsDefault_getInstance() {
|
|
2677
|
+
if (DateTimeUtilsDefault_instance == null)
|
|
2678
|
+
new DateTimeUtilsDefault();
|
|
2679
|
+
return DateTimeUtilsDefault_instance;
|
|
2680
|
+
}
|
|
2681
|
+
function toKMP(_this__u8e3s4) {
|
|
2682
|
+
return Companion_instance_3.s1b(_this__u8e3s4.toString());
|
|
2683
|
+
}
|
|
2684
|
+
function toKotlin(_this__u8e3s4) {
|
|
2685
|
+
return Companion_getInstance_2().a13(_this__u8e3s4.toString());
|
|
2686
|
+
}
|
|
2687
|
+
function Uuid() {
|
|
2688
|
+
}
|
|
2689
|
+
protoOf(Uuid).v4 = function () {
|
|
2690
|
+
return Companion_getInstance_1().ff();
|
|
2691
|
+
};
|
|
2692
|
+
protoOf(Uuid).v4String = function () {
|
|
2693
|
+
return this.v4().toString();
|
|
2694
|
+
};
|
|
2695
|
+
var Uuid_instance;
|
|
2696
|
+
function Uuid_getInstance() {
|
|
2697
|
+
return Uuid_instance;
|
|
2698
|
+
}
|
|
2699
|
+
function TenantContextDataImpl(tenantId) {
|
|
2700
|
+
this.l1c_1 = tenantId;
|
|
2701
|
+
}
|
|
2702
|
+
protoOf(TenantContextDataImpl).m1c = function () {
|
|
2703
|
+
return this.l1c_1;
|
|
2704
|
+
};
|
|
2705
|
+
protoOf(TenantContextDataImpl).toString = function () {
|
|
2706
|
+
return this.l1c_1;
|
|
2707
|
+
};
|
|
2708
|
+
protoOf(TenantContextDataImpl).equals = function (other) {
|
|
2709
|
+
if (this === other)
|
|
2710
|
+
return true;
|
|
2711
|
+
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
2712
|
+
return false;
|
|
2713
|
+
if (!(other instanceof TenantContextDataImpl))
|
|
2714
|
+
THROW_CCE();
|
|
2715
|
+
return this.l1c_1 === other.l1c_1;
|
|
2716
|
+
};
|
|
2717
|
+
protoOf(TenantContextDataImpl).hashCode = function () {
|
|
2718
|
+
return getStringHashCode(this.l1c_1);
|
|
2719
|
+
};
|
|
2720
|
+
function Companion_5() {
|
|
2721
|
+
this.BACKGROUND_SERVICE = '<anonymous>:<anonymous>:background-service';
|
|
2722
|
+
this.ANONYMOUS = '<anonymous>:<anonymous>:default';
|
|
2723
|
+
}
|
|
2724
|
+
protoOf(Companion_5).n1c = function () {
|
|
2725
|
+
return this.BACKGROUND_SERVICE;
|
|
2726
|
+
};
|
|
2727
|
+
protoOf(Companion_5).o1c = function () {
|
|
2728
|
+
return this.ANONYMOUS;
|
|
2729
|
+
};
|
|
2730
|
+
var Companion_instance_5;
|
|
2731
|
+
function Companion_getInstance_10() {
|
|
2732
|
+
return Companion_instance_5;
|
|
2733
|
+
}
|
|
2734
|
+
function UserContext() {
|
|
2735
|
+
}
|
|
2736
|
+
function SecuredTenantContextDetails() {
|
|
2737
|
+
}
|
|
2738
|
+
function UserSecuredContext() {
|
|
2739
|
+
}
|
|
2740
|
+
function ContextAware() {
|
|
2741
|
+
}
|
|
2742
|
+
function TenantAware() {
|
|
2743
|
+
}
|
|
2744
|
+
function PrincipalAware() {
|
|
2745
|
+
}
|
|
2746
|
+
function TenantContextData() {
|
|
2747
|
+
}
|
|
2748
|
+
function UserScope() {
|
|
2749
|
+
}
|
|
2750
|
+
function ISessionContextAware() {
|
|
2751
|
+
}
|
|
2752
|
+
function SessionScope() {
|
|
2753
|
+
}
|
|
2754
|
+
function PromptRegistry() {
|
|
2755
|
+
}
|
|
2756
|
+
var CancelReason_USER_instance;
|
|
2757
|
+
var CancelReason_SUPERSEDED_instance;
|
|
2758
|
+
var CancelReason_BACKGROUND_instance;
|
|
2759
|
+
var CancelReason_SYSTEM_instance;
|
|
2760
|
+
function values_5() {
|
|
2761
|
+
return [CancelReason_USER_getInstance(), CancelReason_SUPERSEDED_getInstance(), CancelReason_BACKGROUND_getInstance(), CancelReason_SYSTEM_getInstance()];
|
|
2762
|
+
}
|
|
2763
|
+
function valueOf_5(value) {
|
|
2764
|
+
switch (value) {
|
|
2765
|
+
case 'USER':
|
|
2766
|
+
return CancelReason_USER_getInstance();
|
|
2767
|
+
case 'SUPERSEDED':
|
|
2768
|
+
return CancelReason_SUPERSEDED_getInstance();
|
|
2769
|
+
case 'BACKGROUND':
|
|
2770
|
+
return CancelReason_BACKGROUND_getInstance();
|
|
2771
|
+
case 'SYSTEM':
|
|
2772
|
+
return CancelReason_SYSTEM_getInstance();
|
|
2773
|
+
default:
|
|
2774
|
+
CancelReason_initEntries();
|
|
2775
|
+
THROW_IAE('No enum constant com.sphereon.ui.prompt.core.CancelReason.' + value);
|
|
2776
|
+
break;
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
var CancelReason_entriesInitialized;
|
|
2780
|
+
function CancelReason_initEntries() {
|
|
2781
|
+
if (CancelReason_entriesInitialized)
|
|
2782
|
+
return Unit_instance;
|
|
2783
|
+
CancelReason_entriesInitialized = true;
|
|
2784
|
+
CancelReason_USER_instance = new CancelReason('USER', 0);
|
|
2785
|
+
CancelReason_SUPERSEDED_instance = new CancelReason('SUPERSEDED', 1);
|
|
2786
|
+
CancelReason_BACKGROUND_instance = new CancelReason('BACKGROUND', 2);
|
|
2787
|
+
CancelReason_SYSTEM_instance = new CancelReason('SYSTEM', 3);
|
|
2788
|
+
}
|
|
2789
|
+
function CancelReason(name, ordinal) {
|
|
2790
|
+
Enum.call(this, name, ordinal);
|
|
2791
|
+
}
|
|
2792
|
+
function CancelReason_USER_getInstance() {
|
|
2793
|
+
CancelReason_initEntries();
|
|
2794
|
+
return CancelReason_USER_instance;
|
|
2795
|
+
}
|
|
2796
|
+
function CancelReason_SUPERSEDED_getInstance() {
|
|
2797
|
+
CancelReason_initEntries();
|
|
2798
|
+
return CancelReason_SUPERSEDED_instance;
|
|
2799
|
+
}
|
|
2800
|
+
function CancelReason_BACKGROUND_getInstance() {
|
|
2801
|
+
CancelReason_initEntries();
|
|
2802
|
+
return CancelReason_BACKGROUND_instance;
|
|
2803
|
+
}
|
|
2804
|
+
function CancelReason_SYSTEM_getInstance() {
|
|
2805
|
+
CancelReason_initEntries();
|
|
2806
|
+
return CancelReason_SYSTEM_instance;
|
|
2807
|
+
}
|
|
2808
|
+
function _PromptId___init__impl__e4e3ku(value) {
|
|
2809
|
+
return value;
|
|
2810
|
+
}
|
|
2811
|
+
function _PromptId___get_value__impl__bnvqju($this) {
|
|
2812
|
+
return $this;
|
|
2813
|
+
}
|
|
2814
|
+
function PromptId__toString_impl_44yzz2($this) {
|
|
2815
|
+
return _PromptId___get_value__impl__bnvqju($this);
|
|
2816
|
+
}
|
|
2817
|
+
function Companion_6() {
|
|
2818
|
+
}
|
|
2819
|
+
protoOf(Companion_6).z1c = function () {
|
|
2820
|
+
return _PromptId___init__impl__e4e3ku(Companion_getInstance_1().ff().toString());
|
|
2821
|
+
};
|
|
2822
|
+
var Companion_instance_6;
|
|
2823
|
+
function Companion_getInstance_11() {
|
|
2824
|
+
return Companion_instance_6;
|
|
2825
|
+
}
|
|
2826
|
+
function PromptId__hashCode_impl_pw4wrx($this) {
|
|
2827
|
+
return getStringHashCode($this);
|
|
2828
|
+
}
|
|
2829
|
+
function PromptId__equals_impl_x3ochb($this, other) {
|
|
2830
|
+
if (!(other instanceof PromptId))
|
|
2831
|
+
return false;
|
|
2832
|
+
if (!($this === other.a1d_1))
|
|
2833
|
+
return false;
|
|
2834
|
+
return true;
|
|
2835
|
+
}
|
|
2836
|
+
function PromptId(value) {
|
|
2837
|
+
this.a1d_1 = value;
|
|
2838
|
+
}
|
|
2839
|
+
protoOf(PromptId).toString = function () {
|
|
2840
|
+
return PromptId__toString_impl_44yzz2(this.a1d_1);
|
|
2841
|
+
};
|
|
2842
|
+
protoOf(PromptId).hashCode = function () {
|
|
2843
|
+
return PromptId__hashCode_impl_pw4wrx(this.a1d_1);
|
|
2844
|
+
};
|
|
2845
|
+
protoOf(PromptId).equals = function (other) {
|
|
2846
|
+
return PromptId__equals_impl_x3ochb(this.a1d_1, other);
|
|
2847
|
+
};
|
|
2848
|
+
function Companion_7() {
|
|
2849
|
+
Companion_instance_7 = this;
|
|
2850
|
+
this.DEFAULT = new PromptPresentationHint();
|
|
2851
|
+
this.CRITICAL = new PromptPresentationHint(PromptPriority_CRITICAL_getInstance(), VOID, VOID, VOID, true);
|
|
2852
|
+
this.DEFERRED = new PromptPresentationHint(PromptPriority_LOW_getInstance(), true);
|
|
2853
|
+
}
|
|
2854
|
+
protoOf(Companion_7).b1d = function () {
|
|
2855
|
+
return this.DEFAULT;
|
|
2856
|
+
};
|
|
2857
|
+
protoOf(Companion_7).c1d = function () {
|
|
2858
|
+
return this.CRITICAL;
|
|
2859
|
+
};
|
|
2860
|
+
protoOf(Companion_7).d1d = function () {
|
|
2861
|
+
return this.DEFERRED;
|
|
2862
|
+
};
|
|
2863
|
+
var Companion_instance_7;
|
|
2864
|
+
function Companion_getInstance_12() {
|
|
2865
|
+
if (Companion_instance_7 == null)
|
|
2866
|
+
new Companion_7();
|
|
2867
|
+
return Companion_instance_7;
|
|
2868
|
+
}
|
|
2869
|
+
function PromptPresentationHint(priority, deferUntilForeground, timeout, dismissOnBackground, showOverLockScreen) {
|
|
2870
|
+
Companion_getInstance_12();
|
|
2871
|
+
priority = priority === VOID ? PromptPriority_NORMAL_getInstance() : priority;
|
|
2872
|
+
deferUntilForeground = deferUntilForeground === VOID ? false : deferUntilForeground;
|
|
2873
|
+
timeout = timeout === VOID ? null : timeout;
|
|
2874
|
+
dismissOnBackground = dismissOnBackground === VOID ? false : dismissOnBackground;
|
|
2875
|
+
showOverLockScreen = showOverLockScreen === VOID ? false : showOverLockScreen;
|
|
2876
|
+
this.priority = priority;
|
|
2877
|
+
this.deferUntilForeground = deferUntilForeground;
|
|
2878
|
+
this.timeout = timeout;
|
|
2879
|
+
this.dismissOnBackground = dismissOnBackground;
|
|
2880
|
+
this.showOverLockScreen = showOverLockScreen;
|
|
2881
|
+
}
|
|
2882
|
+
protoOf(PromptPresentationHint).e1d = function () {
|
|
2883
|
+
return this.priority;
|
|
2884
|
+
};
|
|
2885
|
+
protoOf(PromptPresentationHint).f1d = function () {
|
|
2886
|
+
return this.deferUntilForeground;
|
|
2887
|
+
};
|
|
2888
|
+
protoOf(PromptPresentationHint).g1d = function () {
|
|
2889
|
+
return this.timeout;
|
|
2890
|
+
};
|
|
2891
|
+
protoOf(PromptPresentationHint).h1d = function () {
|
|
2892
|
+
return this.dismissOnBackground;
|
|
2893
|
+
};
|
|
2894
|
+
protoOf(PromptPresentationHint).i1d = function () {
|
|
2895
|
+
return this.showOverLockScreen;
|
|
2896
|
+
};
|
|
2897
|
+
protoOf(PromptPresentationHint).gb = function () {
|
|
2898
|
+
return this.priority;
|
|
2899
|
+
};
|
|
2900
|
+
protoOf(PromptPresentationHint).hb = function () {
|
|
2901
|
+
return this.deferUntilForeground;
|
|
2902
|
+
};
|
|
2903
|
+
protoOf(PromptPresentationHint).j1d = function () {
|
|
2904
|
+
return this.timeout;
|
|
2905
|
+
};
|
|
2906
|
+
protoOf(PromptPresentationHint).e18 = function () {
|
|
2907
|
+
return this.dismissOnBackground;
|
|
2908
|
+
};
|
|
2909
|
+
protoOf(PromptPresentationHint).f18 = function () {
|
|
2910
|
+
return this.showOverLockScreen;
|
|
2911
|
+
};
|
|
2912
|
+
protoOf(PromptPresentationHint).k1d = function (priority, deferUntilForeground, timeout, dismissOnBackground, showOverLockScreen) {
|
|
2913
|
+
return new PromptPresentationHint(priority, deferUntilForeground, timeout, dismissOnBackground, showOverLockScreen);
|
|
2914
|
+
};
|
|
2915
|
+
protoOf(PromptPresentationHint).copy = function (priority, deferUntilForeground, timeout, dismissOnBackground, showOverLockScreen, $super) {
|
|
2916
|
+
priority = priority === VOID ? this.priority : priority;
|
|
2917
|
+
deferUntilForeground = deferUntilForeground === VOID ? this.deferUntilForeground : deferUntilForeground;
|
|
2918
|
+
timeout = timeout === VOID ? this.timeout : timeout;
|
|
2919
|
+
dismissOnBackground = dismissOnBackground === VOID ? this.dismissOnBackground : dismissOnBackground;
|
|
2920
|
+
showOverLockScreen = showOverLockScreen === VOID ? this.showOverLockScreen : showOverLockScreen;
|
|
2921
|
+
var tmp;
|
|
2922
|
+
if ($super === VOID) {
|
|
2923
|
+
tmp = this.k1d(priority, deferUntilForeground, timeout, dismissOnBackground, showOverLockScreen);
|
|
2924
|
+
} else {
|
|
2925
|
+
var tmp_0 = $super.k1d;
|
|
2926
|
+
var tmp_1 = timeout;
|
|
2927
|
+
tmp = tmp_0.call(this, priority, deferUntilForeground, tmp_1 == null ? null : new Duration(tmp_1), dismissOnBackground, showOverLockScreen);
|
|
2928
|
+
}
|
|
2929
|
+
return tmp;
|
|
2930
|
+
};
|
|
2931
|
+
protoOf(PromptPresentationHint).toString = function () {
|
|
2932
|
+
var tmp = this.priority.toString();
|
|
2933
|
+
var tmp_0 = this.timeout;
|
|
2934
|
+
return 'PromptPresentationHint(priority=' + tmp + ', deferUntilForeground=' + this.deferUntilForeground + ', timeout=' + toString_1(tmp_0 == null ? null : new Duration(tmp_0)) + ', dismissOnBackground=' + this.dismissOnBackground + ', showOverLockScreen=' + this.showOverLockScreen + ')';
|
|
2935
|
+
};
|
|
2936
|
+
protoOf(PromptPresentationHint).hashCode = function () {
|
|
2937
|
+
var result = this.priority.hashCode();
|
|
2938
|
+
result = imul(result, 31) + getBooleanHashCode(this.deferUntilForeground) | 0;
|
|
2939
|
+
var tmp = imul(result, 31);
|
|
2940
|
+
var tmp_0;
|
|
2941
|
+
var tmp_1 = this.timeout;
|
|
2942
|
+
if ((tmp_1 == null ? null : new Duration(tmp_1)) == null) {
|
|
2943
|
+
tmp_0 = 0;
|
|
2944
|
+
} else {
|
|
2945
|
+
tmp_0 = Duration__hashCode_impl_u4exz6(this.timeout);
|
|
2946
|
+
}
|
|
2947
|
+
result = tmp + tmp_0 | 0;
|
|
2948
|
+
result = imul(result, 31) + getBooleanHashCode(this.dismissOnBackground) | 0;
|
|
2949
|
+
result = imul(result, 31) + getBooleanHashCode(this.showOverLockScreen) | 0;
|
|
2950
|
+
return result;
|
|
2951
|
+
};
|
|
2952
|
+
protoOf(PromptPresentationHint).equals = function (other) {
|
|
2953
|
+
if (this === other)
|
|
2954
|
+
return true;
|
|
2955
|
+
if (!(other instanceof PromptPresentationHint))
|
|
2956
|
+
return false;
|
|
2957
|
+
if (!this.priority.equals(other.priority))
|
|
2958
|
+
return false;
|
|
2959
|
+
if (!(this.deferUntilForeground === other.deferUntilForeground))
|
|
2960
|
+
return false;
|
|
2961
|
+
var tmp = this.timeout;
|
|
2962
|
+
var tmp_0 = tmp == null ? null : new Duration(tmp);
|
|
2963
|
+
var tmp_1 = other.timeout;
|
|
2964
|
+
if (!equals(tmp_0, tmp_1 == null ? null : new Duration(tmp_1)))
|
|
2965
|
+
return false;
|
|
2966
|
+
if (!(this.dismissOnBackground === other.dismissOnBackground))
|
|
2967
|
+
return false;
|
|
2968
|
+
if (!(this.showOverLockScreen === other.showOverLockScreen))
|
|
2969
|
+
return false;
|
|
2970
|
+
return true;
|
|
2971
|
+
};
|
|
2972
|
+
function sam$kotlin_Comparator$0(function_0) {
|
|
2973
|
+
this.l1d_1 = function_0;
|
|
2974
|
+
}
|
|
2975
|
+
protoOf(sam$kotlin_Comparator$0).x9 = function (a, b) {
|
|
2976
|
+
return this.l1d_1(a, b);
|
|
2977
|
+
};
|
|
2978
|
+
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2979
|
+
return this.x9(a, b);
|
|
2980
|
+
};
|
|
2981
|
+
protoOf(sam$kotlin_Comparator$0).t2 = function () {
|
|
2982
|
+
return this.l1d_1;
|
|
2983
|
+
};
|
|
2984
|
+
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2985
|
+
var tmp;
|
|
2986
|
+
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
2987
|
+
var tmp_0;
|
|
2988
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
2989
|
+
tmp_0 = equals(this.t2(), other.t2());
|
|
2990
|
+
} else {
|
|
2991
|
+
tmp_0 = false;
|
|
2992
|
+
}
|
|
2993
|
+
tmp = tmp_0;
|
|
2994
|
+
} else {
|
|
2995
|
+
tmp = false;
|
|
2996
|
+
}
|
|
2997
|
+
return tmp;
|
|
2998
|
+
};
|
|
2999
|
+
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
3000
|
+
return hashCode(this.t2());
|
|
3001
|
+
};
|
|
3002
|
+
function PromptPriority$Companion$sortedByPriority$lambda(a, b) {
|
|
3003
|
+
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3004
|
+
var tmp = a.order;
|
|
3005
|
+
var tmp$ret$2 = b.order;
|
|
3006
|
+
return compareValues(tmp, tmp$ret$2);
|
|
3007
|
+
}
|
|
3008
|
+
var PromptPriority_CRITICAL_instance;
|
|
3009
|
+
var PromptPriority_HIGH_instance;
|
|
3010
|
+
var PromptPriority_NORMAL_instance;
|
|
3011
|
+
var PromptPriority_LOW_instance;
|
|
3012
|
+
var PromptPriority_BACKGROUND_instance;
|
|
3013
|
+
function Companion_8() {
|
|
3014
|
+
}
|
|
3015
|
+
protoOf(Companion_8).sortedByPriority = function () {
|
|
3016
|
+
// Inline function 'kotlin.collections.sortedBy' call
|
|
3017
|
+
var this_0 = get_entries();
|
|
3018
|
+
// Inline function 'kotlin.comparisons.compareBy' call
|
|
3019
|
+
var tmp = PromptPriority$Companion$sortedByPriority$lambda;
|
|
3020
|
+
var tmp$ret$1 = new sam$kotlin_Comparator$0(tmp);
|
|
3021
|
+
return sortedWith(this_0, tmp$ret$1);
|
|
3022
|
+
};
|
|
3023
|
+
var Companion_instance_8;
|
|
3024
|
+
function Companion_getInstance_13() {
|
|
3025
|
+
return Companion_instance_8;
|
|
3026
|
+
}
|
|
3027
|
+
function values_6() {
|
|
3028
|
+
return [PromptPriority_CRITICAL_getInstance(), PromptPriority_HIGH_getInstance(), PromptPriority_NORMAL_getInstance(), PromptPriority_LOW_getInstance(), PromptPriority_BACKGROUND_getInstance()];
|
|
3029
|
+
}
|
|
3030
|
+
function valueOf_6(value) {
|
|
3031
|
+
switch (value) {
|
|
3032
|
+
case 'CRITICAL':
|
|
3033
|
+
return PromptPriority_CRITICAL_getInstance();
|
|
3034
|
+
case 'HIGH':
|
|
3035
|
+
return PromptPriority_HIGH_getInstance();
|
|
3036
|
+
case 'NORMAL':
|
|
3037
|
+
return PromptPriority_NORMAL_getInstance();
|
|
3038
|
+
case 'LOW':
|
|
3039
|
+
return PromptPriority_LOW_getInstance();
|
|
3040
|
+
case 'BACKGROUND':
|
|
3041
|
+
return PromptPriority_BACKGROUND_getInstance();
|
|
3042
|
+
default:
|
|
3043
|
+
PromptPriority_initEntries();
|
|
3044
|
+
THROW_IAE('No enum constant com.sphereon.ui.prompt.core.PromptPriority.' + value);
|
|
3045
|
+
break;
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
function get_entries() {
|
|
3049
|
+
if ($ENTRIES == null)
|
|
3050
|
+
$ENTRIES = enumEntries(values_6());
|
|
3051
|
+
return $ENTRIES;
|
|
3052
|
+
}
|
|
3053
|
+
var PromptPriority_entriesInitialized;
|
|
3054
|
+
function PromptPriority_initEntries() {
|
|
3055
|
+
if (PromptPriority_entriesInitialized)
|
|
3056
|
+
return Unit_instance;
|
|
3057
|
+
PromptPriority_entriesInitialized = true;
|
|
3058
|
+
PromptPriority_CRITICAL_instance = new PromptPriority('CRITICAL', 0, 0);
|
|
3059
|
+
PromptPriority_HIGH_instance = new PromptPriority('HIGH', 1, 100);
|
|
3060
|
+
PromptPriority_NORMAL_instance = new PromptPriority('NORMAL', 2, 200);
|
|
3061
|
+
PromptPriority_LOW_instance = new PromptPriority('LOW', 3, 300);
|
|
3062
|
+
PromptPriority_BACKGROUND_instance = new PromptPriority('BACKGROUND', 4, 400);
|
|
3063
|
+
}
|
|
3064
|
+
var $ENTRIES;
|
|
3065
|
+
function PromptPriority(name, ordinal, order) {
|
|
3066
|
+
Enum.call(this, name, ordinal);
|
|
3067
|
+
this.order = order;
|
|
3068
|
+
}
|
|
3069
|
+
protoOf(PromptPriority).o1d = function () {
|
|
3070
|
+
return this.order;
|
|
3071
|
+
};
|
|
3072
|
+
protoOf(PromptPriority).isHigherThan = function (other) {
|
|
3073
|
+
return this.order < other.order;
|
|
3074
|
+
};
|
|
3075
|
+
protoOf(PromptPriority).isAtLeast = function (other) {
|
|
3076
|
+
return this.order <= other.order;
|
|
3077
|
+
};
|
|
3078
|
+
function PromptPriority_CRITICAL_getInstance() {
|
|
3079
|
+
PromptPriority_initEntries();
|
|
3080
|
+
return PromptPriority_CRITICAL_instance;
|
|
3081
|
+
}
|
|
3082
|
+
function PromptPriority_HIGH_getInstance() {
|
|
3083
|
+
PromptPriority_initEntries();
|
|
3084
|
+
return PromptPriority_HIGH_instance;
|
|
3085
|
+
}
|
|
3086
|
+
function PromptPriority_NORMAL_getInstance() {
|
|
3087
|
+
PromptPriority_initEntries();
|
|
3088
|
+
return PromptPriority_NORMAL_instance;
|
|
3089
|
+
}
|
|
3090
|
+
function PromptPriority_LOW_getInstance() {
|
|
3091
|
+
PromptPriority_initEntries();
|
|
3092
|
+
return PromptPriority_LOW_instance;
|
|
3093
|
+
}
|
|
3094
|
+
function PromptPriority_BACKGROUND_getInstance() {
|
|
3095
|
+
PromptPriority_initEntries();
|
|
3096
|
+
return PromptPriority_BACKGROUND_instance;
|
|
3097
|
+
}
|
|
3098
|
+
function PromptRequest() {
|
|
3099
|
+
}
|
|
3100
|
+
function SinglePromptRequest() {
|
|
3101
|
+
}
|
|
3102
|
+
function NfcPromptRequest(id, title, subtitle, show, presentationHint, initialMessage, successMessage, errorMessage) {
|
|
3103
|
+
id = id === VOID ? Companion_instance_6.z1c() : id;
|
|
3104
|
+
subtitle = subtitle === VOID ? null : subtitle;
|
|
3105
|
+
show = show === VOID ? true : show;
|
|
3106
|
+
presentationHint = presentationHint === VOID ? Companion_getInstance_12().DEFAULT : presentationHint;
|
|
3107
|
+
successMessage = successMessage === VOID ? null : successMessage;
|
|
3108
|
+
errorMessage = errorMessage === VOID ? null : errorMessage;
|
|
3109
|
+
this.u1d_1 = id;
|
|
3110
|
+
this.v1d_1 = title;
|
|
3111
|
+
this.w1d_1 = subtitle;
|
|
3112
|
+
this.x1d_1 = show;
|
|
3113
|
+
this.y1d_1 = presentationHint;
|
|
3114
|
+
this.initialMessage = initialMessage;
|
|
3115
|
+
this.successMessage = successMessage;
|
|
3116
|
+
this.errorMessage = errorMessage;
|
|
3117
|
+
}
|
|
3118
|
+
protoOf(NfcPromptRequest).p1d = function () {
|
|
3119
|
+
return this.u1d_1;
|
|
3120
|
+
};
|
|
3121
|
+
protoOf(NfcPromptRequest).s1d = function () {
|
|
3122
|
+
return this.v1d_1;
|
|
3123
|
+
};
|
|
3124
|
+
protoOf(NfcPromptRequest).t1d = function () {
|
|
3125
|
+
return this.w1d_1;
|
|
3126
|
+
};
|
|
3127
|
+
protoOf(NfcPromptRequest).r1d = function () {
|
|
3128
|
+
return this.x1d_1;
|
|
3129
|
+
};
|
|
3130
|
+
protoOf(NfcPromptRequest).q1d = function () {
|
|
3131
|
+
return this.y1d_1;
|
|
3132
|
+
};
|
|
3133
|
+
protoOf(NfcPromptRequest).z1d = function () {
|
|
3134
|
+
return this.initialMessage;
|
|
3135
|
+
};
|
|
3136
|
+
protoOf(NfcPromptRequest).a1e = function () {
|
|
3137
|
+
return this.successMessage;
|
|
3138
|
+
};
|
|
3139
|
+
protoOf(NfcPromptRequest).b1e = function () {
|
|
3140
|
+
return this.errorMessage;
|
|
3141
|
+
};
|
|
3142
|
+
protoOf(NfcPromptRequest).c1e = function () {
|
|
3143
|
+
return this.u1d_1;
|
|
3144
|
+
};
|
|
3145
|
+
protoOf(NfcPromptRequest).hb = function () {
|
|
3146
|
+
return this.v1d_1;
|
|
3147
|
+
};
|
|
3148
|
+
protoOf(NfcPromptRequest).q15 = function () {
|
|
3149
|
+
return this.w1d_1;
|
|
3150
|
+
};
|
|
3151
|
+
protoOf(NfcPromptRequest).e18 = function () {
|
|
3152
|
+
return this.x1d_1;
|
|
3153
|
+
};
|
|
3154
|
+
protoOf(NfcPromptRequest).f18 = function () {
|
|
3155
|
+
return this.y1d_1;
|
|
3156
|
+
};
|
|
3157
|
+
protoOf(NfcPromptRequest).g18 = function () {
|
|
3158
|
+
return this.initialMessage;
|
|
3159
|
+
};
|
|
3160
|
+
protoOf(NfcPromptRequest).h18 = function () {
|
|
3161
|
+
return this.successMessage;
|
|
3162
|
+
};
|
|
3163
|
+
protoOf(NfcPromptRequest).d1e = function () {
|
|
3164
|
+
return this.errorMessage;
|
|
3165
|
+
};
|
|
3166
|
+
protoOf(NfcPromptRequest).e1e = function (id, title, subtitle, show, presentationHint, initialMessage, successMessage, errorMessage) {
|
|
3167
|
+
return new NfcPromptRequest(id, title, subtitle, show, presentationHint, initialMessage, successMessage, errorMessage);
|
|
3168
|
+
};
|
|
3169
|
+
protoOf(NfcPromptRequest).copy = function (id, title, subtitle, show, presentationHint, initialMessage, successMessage, errorMessage, $super) {
|
|
3170
|
+
id = id === VOID ? this.u1d_1 : id;
|
|
3171
|
+
title = title === VOID ? this.v1d_1 : title;
|
|
3172
|
+
subtitle = subtitle === VOID ? this.w1d_1 : subtitle;
|
|
3173
|
+
show = show === VOID ? this.x1d_1 : show;
|
|
3174
|
+
presentationHint = presentationHint === VOID ? this.y1d_1 : presentationHint;
|
|
3175
|
+
initialMessage = initialMessage === VOID ? this.initialMessage : initialMessage;
|
|
3176
|
+
successMessage = successMessage === VOID ? this.successMessage : successMessage;
|
|
3177
|
+
errorMessage = errorMessage === VOID ? this.errorMessage : errorMessage;
|
|
3178
|
+
return $super === VOID ? this.e1e(id, title, subtitle, show, presentationHint, initialMessage, successMessage, errorMessage) : $super.e1e.call(this, new PromptId(id), title, subtitle, show, presentationHint, initialMessage, successMessage, errorMessage);
|
|
3179
|
+
};
|
|
3180
|
+
protoOf(NfcPromptRequest).toString = function () {
|
|
3181
|
+
return 'NfcPromptRequest(id=' + PromptId__toString_impl_44yzz2(this.u1d_1) + ', title=' + this.v1d_1 + ', subtitle=' + this.w1d_1 + ', show=' + this.x1d_1 + ', presentationHint=' + this.y1d_1.toString() + ', initialMessage=' + this.initialMessage + ', successMessage=' + this.successMessage + ', errorMessage=' + this.errorMessage + ')';
|
|
3182
|
+
};
|
|
3183
|
+
protoOf(NfcPromptRequest).hashCode = function () {
|
|
3184
|
+
var result = PromptId__hashCode_impl_pw4wrx(this.u1d_1);
|
|
3185
|
+
result = imul(result, 31) + getStringHashCode(this.v1d_1) | 0;
|
|
3186
|
+
result = imul(result, 31) + (this.w1d_1 == null ? 0 : getStringHashCode(this.w1d_1)) | 0;
|
|
3187
|
+
result = imul(result, 31) + getBooleanHashCode(this.x1d_1) | 0;
|
|
3188
|
+
result = imul(result, 31) + this.y1d_1.hashCode() | 0;
|
|
3189
|
+
result = imul(result, 31) + getStringHashCode(this.initialMessage) | 0;
|
|
3190
|
+
result = imul(result, 31) + (this.successMessage == null ? 0 : getStringHashCode(this.successMessage)) | 0;
|
|
3191
|
+
result = imul(result, 31) + (this.errorMessage == null ? 0 : getStringHashCode(this.errorMessage)) | 0;
|
|
3192
|
+
return result;
|
|
3193
|
+
};
|
|
3194
|
+
protoOf(NfcPromptRequest).equals = function (other) {
|
|
3195
|
+
if (this === other)
|
|
3196
|
+
return true;
|
|
3197
|
+
if (!(other instanceof NfcPromptRequest))
|
|
3198
|
+
return false;
|
|
3199
|
+
if (!(this.u1d_1 === other.u1d_1))
|
|
3200
|
+
return false;
|
|
3201
|
+
if (!(this.v1d_1 === other.v1d_1))
|
|
3202
|
+
return false;
|
|
3203
|
+
if (!(this.w1d_1 == other.w1d_1))
|
|
3204
|
+
return false;
|
|
3205
|
+
if (!(this.x1d_1 === other.x1d_1))
|
|
3206
|
+
return false;
|
|
3207
|
+
if (!this.y1d_1.equals(other.y1d_1))
|
|
3208
|
+
return false;
|
|
3209
|
+
if (!(this.initialMessage === other.initialMessage))
|
|
3210
|
+
return false;
|
|
3211
|
+
if (!(this.successMessage == other.successMessage))
|
|
3212
|
+
return false;
|
|
3213
|
+
if (!(this.errorMessage == other.errorMessage))
|
|
3214
|
+
return false;
|
|
3215
|
+
return true;
|
|
3216
|
+
};
|
|
3217
|
+
function BiometricPromptRequest(id, title, subtitle, show, presentationHint, reason, fallbackToPasscode) {
|
|
3218
|
+
id = id === VOID ? Companion_instance_6.z1c() : id;
|
|
3219
|
+
subtitle = subtitle === VOID ? null : subtitle;
|
|
3220
|
+
show = show === VOID ? true : show;
|
|
3221
|
+
presentationHint = presentationHint === VOID ? new PromptPresentationHint(PromptPriority_HIGH_getInstance()) : presentationHint;
|
|
3222
|
+
fallbackToPasscode = fallbackToPasscode === VOID ? true : fallbackToPasscode;
|
|
3223
|
+
this.f1e_1 = id;
|
|
3224
|
+
this.g1e_1 = title;
|
|
3225
|
+
this.h1e_1 = subtitle;
|
|
3226
|
+
this.i1e_1 = show;
|
|
3227
|
+
this.j1e_1 = presentationHint;
|
|
3228
|
+
this.reason = reason;
|
|
3229
|
+
this.fallbackToPasscode = fallbackToPasscode;
|
|
3230
|
+
}
|
|
3231
|
+
protoOf(BiometricPromptRequest).p1d = function () {
|
|
3232
|
+
return this.f1e_1;
|
|
3233
|
+
};
|
|
3234
|
+
protoOf(BiometricPromptRequest).s1d = function () {
|
|
3235
|
+
return this.g1e_1;
|
|
3236
|
+
};
|
|
3237
|
+
protoOf(BiometricPromptRequest).t1d = function () {
|
|
3238
|
+
return this.h1e_1;
|
|
3239
|
+
};
|
|
3240
|
+
protoOf(BiometricPromptRequest).r1d = function () {
|
|
3241
|
+
return this.i1e_1;
|
|
3242
|
+
};
|
|
3243
|
+
protoOf(BiometricPromptRequest).q1d = function () {
|
|
3244
|
+
return this.j1e_1;
|
|
3245
|
+
};
|
|
3246
|
+
protoOf(BiometricPromptRequest).k1e = function () {
|
|
3247
|
+
return this.reason;
|
|
3248
|
+
};
|
|
3249
|
+
protoOf(BiometricPromptRequest).l1e = function () {
|
|
3250
|
+
return this.fallbackToPasscode;
|
|
3251
|
+
};
|
|
3252
|
+
protoOf(BiometricPromptRequest).c1e = function () {
|
|
3253
|
+
return this.f1e_1;
|
|
3254
|
+
};
|
|
3255
|
+
protoOf(BiometricPromptRequest).hb = function () {
|
|
3256
|
+
return this.g1e_1;
|
|
3257
|
+
};
|
|
3258
|
+
protoOf(BiometricPromptRequest).q15 = function () {
|
|
3259
|
+
return this.h1e_1;
|
|
3260
|
+
};
|
|
3261
|
+
protoOf(BiometricPromptRequest).e18 = function () {
|
|
3262
|
+
return this.i1e_1;
|
|
3263
|
+
};
|
|
3264
|
+
protoOf(BiometricPromptRequest).f18 = function () {
|
|
3265
|
+
return this.j1e_1;
|
|
3266
|
+
};
|
|
3267
|
+
protoOf(BiometricPromptRequest).g18 = function () {
|
|
3268
|
+
return this.reason;
|
|
3269
|
+
};
|
|
3270
|
+
protoOf(BiometricPromptRequest).h18 = function () {
|
|
3271
|
+
return this.fallbackToPasscode;
|
|
3272
|
+
};
|
|
3273
|
+
protoOf(BiometricPromptRequest).m1e = function (id, title, subtitle, show, presentationHint, reason, fallbackToPasscode) {
|
|
3274
|
+
return new BiometricPromptRequest(id, title, subtitle, show, presentationHint, reason, fallbackToPasscode);
|
|
3275
|
+
};
|
|
3276
|
+
protoOf(BiometricPromptRequest).copy = function (id, title, subtitle, show, presentationHint, reason, fallbackToPasscode, $super) {
|
|
3277
|
+
id = id === VOID ? this.f1e_1 : id;
|
|
3278
|
+
title = title === VOID ? this.g1e_1 : title;
|
|
3279
|
+
subtitle = subtitle === VOID ? this.h1e_1 : subtitle;
|
|
3280
|
+
show = show === VOID ? this.i1e_1 : show;
|
|
3281
|
+
presentationHint = presentationHint === VOID ? this.j1e_1 : presentationHint;
|
|
3282
|
+
reason = reason === VOID ? this.reason : reason;
|
|
3283
|
+
fallbackToPasscode = fallbackToPasscode === VOID ? this.fallbackToPasscode : fallbackToPasscode;
|
|
3284
|
+
return $super === VOID ? this.m1e(id, title, subtitle, show, presentationHint, reason, fallbackToPasscode) : $super.m1e.call(this, new PromptId(id), title, subtitle, show, presentationHint, reason, fallbackToPasscode);
|
|
3285
|
+
};
|
|
3286
|
+
protoOf(BiometricPromptRequest).toString = function () {
|
|
3287
|
+
return 'BiometricPromptRequest(id=' + PromptId__toString_impl_44yzz2(this.f1e_1) + ', title=' + this.g1e_1 + ', subtitle=' + this.h1e_1 + ', show=' + this.i1e_1 + ', presentationHint=' + this.j1e_1.toString() + ', reason=' + this.reason + ', fallbackToPasscode=' + this.fallbackToPasscode + ')';
|
|
3288
|
+
};
|
|
3289
|
+
protoOf(BiometricPromptRequest).hashCode = function () {
|
|
3290
|
+
var result = PromptId__hashCode_impl_pw4wrx(this.f1e_1);
|
|
3291
|
+
result = imul(result, 31) + getStringHashCode(this.g1e_1) | 0;
|
|
3292
|
+
result = imul(result, 31) + (this.h1e_1 == null ? 0 : getStringHashCode(this.h1e_1)) | 0;
|
|
3293
|
+
result = imul(result, 31) + getBooleanHashCode(this.i1e_1) | 0;
|
|
3294
|
+
result = imul(result, 31) + this.j1e_1.hashCode() | 0;
|
|
3295
|
+
result = imul(result, 31) + getStringHashCode(this.reason) | 0;
|
|
3296
|
+
result = imul(result, 31) + getBooleanHashCode(this.fallbackToPasscode) | 0;
|
|
3297
|
+
return result;
|
|
3298
|
+
};
|
|
3299
|
+
protoOf(BiometricPromptRequest).equals = function (other) {
|
|
3300
|
+
if (this === other)
|
|
3301
|
+
return true;
|
|
3302
|
+
if (!(other instanceof BiometricPromptRequest))
|
|
3303
|
+
return false;
|
|
3304
|
+
if (!(this.f1e_1 === other.f1e_1))
|
|
3305
|
+
return false;
|
|
3306
|
+
if (!(this.g1e_1 === other.g1e_1))
|
|
3307
|
+
return false;
|
|
3308
|
+
if (!(this.h1e_1 == other.h1e_1))
|
|
3309
|
+
return false;
|
|
3310
|
+
if (!(this.i1e_1 === other.i1e_1))
|
|
3311
|
+
return false;
|
|
3312
|
+
if (!this.j1e_1.equals(other.j1e_1))
|
|
3313
|
+
return false;
|
|
3314
|
+
if (!(this.reason === other.reason))
|
|
3315
|
+
return false;
|
|
3316
|
+
if (!(this.fallbackToPasscode === other.fallbackToPasscode))
|
|
3317
|
+
return false;
|
|
3318
|
+
return true;
|
|
3319
|
+
};
|
|
3320
|
+
function BiometricUnlockPromptRequest(id, title, subtitle, show, presentationHint, keyId, reason, fallbackToPasscode) {
|
|
3321
|
+
id = id === VOID ? Companion_instance_6.z1c() : id;
|
|
3322
|
+
subtitle = subtitle === VOID ? null : subtitle;
|
|
3323
|
+
show = show === VOID ? true : show;
|
|
3324
|
+
presentationHint = presentationHint === VOID ? new PromptPresentationHint(PromptPriority_HIGH_getInstance()) : presentationHint;
|
|
3325
|
+
fallbackToPasscode = fallbackToPasscode === VOID ? true : fallbackToPasscode;
|
|
3326
|
+
this.n1e_1 = id;
|
|
3327
|
+
this.o1e_1 = title;
|
|
3328
|
+
this.p1e_1 = subtitle;
|
|
3329
|
+
this.q1e_1 = show;
|
|
3330
|
+
this.r1e_1 = presentationHint;
|
|
3331
|
+
this.keyId = keyId;
|
|
3332
|
+
this.reason = reason;
|
|
3333
|
+
this.fallbackToPasscode = fallbackToPasscode;
|
|
3334
|
+
}
|
|
3335
|
+
protoOf(BiometricUnlockPromptRequest).p1d = function () {
|
|
3336
|
+
return this.n1e_1;
|
|
3337
|
+
};
|
|
3338
|
+
protoOf(BiometricUnlockPromptRequest).s1d = function () {
|
|
3339
|
+
return this.o1e_1;
|
|
3340
|
+
};
|
|
3341
|
+
protoOf(BiometricUnlockPromptRequest).t1d = function () {
|
|
3342
|
+
return this.p1e_1;
|
|
3343
|
+
};
|
|
3344
|
+
protoOf(BiometricUnlockPromptRequest).r1d = function () {
|
|
3345
|
+
return this.q1e_1;
|
|
3346
|
+
};
|
|
3347
|
+
protoOf(BiometricUnlockPromptRequest).q1d = function () {
|
|
3348
|
+
return this.r1e_1;
|
|
3349
|
+
};
|
|
3350
|
+
protoOf(BiometricUnlockPromptRequest).s1e = function () {
|
|
3351
|
+
return this.keyId;
|
|
3352
|
+
};
|
|
3353
|
+
protoOf(BiometricUnlockPromptRequest).k1e = function () {
|
|
3354
|
+
return this.reason;
|
|
3355
|
+
};
|
|
3356
|
+
protoOf(BiometricUnlockPromptRequest).l1e = function () {
|
|
3357
|
+
return this.fallbackToPasscode;
|
|
3358
|
+
};
|
|
3359
|
+
protoOf(BiometricUnlockPromptRequest).c1e = function () {
|
|
3360
|
+
return this.n1e_1;
|
|
3361
|
+
};
|
|
3362
|
+
protoOf(BiometricUnlockPromptRequest).hb = function () {
|
|
3363
|
+
return this.o1e_1;
|
|
3364
|
+
};
|
|
3365
|
+
protoOf(BiometricUnlockPromptRequest).q15 = function () {
|
|
3366
|
+
return this.p1e_1;
|
|
3367
|
+
};
|
|
3368
|
+
protoOf(BiometricUnlockPromptRequest).e18 = function () {
|
|
3369
|
+
return this.q1e_1;
|
|
3370
|
+
};
|
|
3371
|
+
protoOf(BiometricUnlockPromptRequest).f18 = function () {
|
|
3372
|
+
return this.r1e_1;
|
|
3373
|
+
};
|
|
3374
|
+
protoOf(BiometricUnlockPromptRequest).g18 = function () {
|
|
3375
|
+
return this.keyId;
|
|
3376
|
+
};
|
|
3377
|
+
protoOf(BiometricUnlockPromptRequest).h18 = function () {
|
|
3378
|
+
return this.reason;
|
|
3379
|
+
};
|
|
3380
|
+
protoOf(BiometricUnlockPromptRequest).d1e = function () {
|
|
3381
|
+
return this.fallbackToPasscode;
|
|
3382
|
+
};
|
|
3383
|
+
protoOf(BiometricUnlockPromptRequest).t1e = function (id, title, subtitle, show, presentationHint, keyId, reason, fallbackToPasscode) {
|
|
3384
|
+
return new BiometricUnlockPromptRequest(id, title, subtitle, show, presentationHint, keyId, reason, fallbackToPasscode);
|
|
3385
|
+
};
|
|
3386
|
+
protoOf(BiometricUnlockPromptRequest).copy = function (id, title, subtitle, show, presentationHint, keyId, reason, fallbackToPasscode, $super) {
|
|
3387
|
+
id = id === VOID ? this.n1e_1 : id;
|
|
3388
|
+
title = title === VOID ? this.o1e_1 : title;
|
|
3389
|
+
subtitle = subtitle === VOID ? this.p1e_1 : subtitle;
|
|
3390
|
+
show = show === VOID ? this.q1e_1 : show;
|
|
3391
|
+
presentationHint = presentationHint === VOID ? this.r1e_1 : presentationHint;
|
|
3392
|
+
keyId = keyId === VOID ? this.keyId : keyId;
|
|
3393
|
+
reason = reason === VOID ? this.reason : reason;
|
|
3394
|
+
fallbackToPasscode = fallbackToPasscode === VOID ? this.fallbackToPasscode : fallbackToPasscode;
|
|
3395
|
+
return $super === VOID ? this.t1e(id, title, subtitle, show, presentationHint, keyId, reason, fallbackToPasscode) : $super.t1e.call(this, new PromptId(id), title, subtitle, show, presentationHint, keyId, reason, fallbackToPasscode);
|
|
3396
|
+
};
|
|
3397
|
+
protoOf(BiometricUnlockPromptRequest).toString = function () {
|
|
3398
|
+
return 'BiometricUnlockPromptRequest(id=' + PromptId__toString_impl_44yzz2(this.n1e_1) + ', title=' + this.o1e_1 + ', subtitle=' + this.p1e_1 + ', show=' + this.q1e_1 + ', presentationHint=' + this.r1e_1.toString() + ', keyId=' + this.keyId + ', reason=' + this.reason + ', fallbackToPasscode=' + this.fallbackToPasscode + ')';
|
|
3399
|
+
};
|
|
3400
|
+
protoOf(BiometricUnlockPromptRequest).hashCode = function () {
|
|
3401
|
+
var result = PromptId__hashCode_impl_pw4wrx(this.n1e_1);
|
|
3402
|
+
result = imul(result, 31) + getStringHashCode(this.o1e_1) | 0;
|
|
3403
|
+
result = imul(result, 31) + (this.p1e_1 == null ? 0 : getStringHashCode(this.p1e_1)) | 0;
|
|
3404
|
+
result = imul(result, 31) + getBooleanHashCode(this.q1e_1) | 0;
|
|
3405
|
+
result = imul(result, 31) + this.r1e_1.hashCode() | 0;
|
|
3406
|
+
result = imul(result, 31) + getStringHashCode(this.keyId) | 0;
|
|
3407
|
+
result = imul(result, 31) + getStringHashCode(this.reason) | 0;
|
|
3408
|
+
result = imul(result, 31) + getBooleanHashCode(this.fallbackToPasscode) | 0;
|
|
3409
|
+
return result;
|
|
3410
|
+
};
|
|
3411
|
+
protoOf(BiometricUnlockPromptRequest).equals = function (other) {
|
|
3412
|
+
if (this === other)
|
|
3413
|
+
return true;
|
|
3414
|
+
if (!(other instanceof BiometricUnlockPromptRequest))
|
|
3415
|
+
return false;
|
|
3416
|
+
if (!(this.n1e_1 === other.n1e_1))
|
|
3417
|
+
return false;
|
|
3418
|
+
if (!(this.o1e_1 === other.o1e_1))
|
|
3419
|
+
return false;
|
|
3420
|
+
if (!(this.p1e_1 == other.p1e_1))
|
|
3421
|
+
return false;
|
|
3422
|
+
if (!(this.q1e_1 === other.q1e_1))
|
|
3423
|
+
return false;
|
|
3424
|
+
if (!this.r1e_1.equals(other.r1e_1))
|
|
3425
|
+
return false;
|
|
3426
|
+
if (!(this.keyId === other.keyId))
|
|
3427
|
+
return false;
|
|
3428
|
+
if (!(this.reason === other.reason))
|
|
3429
|
+
return false;
|
|
3430
|
+
if (!(this.fallbackToPasscode === other.fallbackToPasscode))
|
|
3431
|
+
return false;
|
|
3432
|
+
return true;
|
|
3433
|
+
};
|
|
3434
|
+
function PassphrasePromptRequest(id, title, subtitle, show, presentationHint, purpose, minLength, maxLength, isNumericOnly) {
|
|
3435
|
+
id = id === VOID ? Companion_instance_6.z1c() : id;
|
|
3436
|
+
subtitle = subtitle === VOID ? null : subtitle;
|
|
3437
|
+
show = show === VOID ? true : show;
|
|
3438
|
+
presentationHint = presentationHint === VOID ? new PromptPresentationHint(PromptPriority_HIGH_getInstance()) : presentationHint;
|
|
3439
|
+
minLength = minLength === VOID ? 4 : minLength;
|
|
3440
|
+
maxLength = maxLength === VOID ? null : maxLength;
|
|
3441
|
+
isNumericOnly = isNumericOnly === VOID ? false : isNumericOnly;
|
|
3442
|
+
this.u1e_1 = id;
|
|
3443
|
+
this.v1e_1 = title;
|
|
3444
|
+
this.w1e_1 = subtitle;
|
|
3445
|
+
this.x1e_1 = show;
|
|
3446
|
+
this.y1e_1 = presentationHint;
|
|
3447
|
+
this.purpose = purpose;
|
|
3448
|
+
this.minLength = minLength;
|
|
3449
|
+
this.maxLength = maxLength;
|
|
3450
|
+
this.isNumericOnly = isNumericOnly;
|
|
3451
|
+
}
|
|
3452
|
+
protoOf(PassphrasePromptRequest).p1d = function () {
|
|
3453
|
+
return this.u1e_1;
|
|
3454
|
+
};
|
|
3455
|
+
protoOf(PassphrasePromptRequest).s1d = function () {
|
|
3456
|
+
return this.v1e_1;
|
|
3457
|
+
};
|
|
3458
|
+
protoOf(PassphrasePromptRequest).t1d = function () {
|
|
3459
|
+
return this.w1e_1;
|
|
3460
|
+
};
|
|
3461
|
+
protoOf(PassphrasePromptRequest).r1d = function () {
|
|
3462
|
+
return this.x1e_1;
|
|
3463
|
+
};
|
|
3464
|
+
protoOf(PassphrasePromptRequest).q1d = function () {
|
|
3465
|
+
return this.y1e_1;
|
|
3466
|
+
};
|
|
3467
|
+
protoOf(PassphrasePromptRequest).z1e = function () {
|
|
3468
|
+
return this.purpose;
|
|
3469
|
+
};
|
|
3470
|
+
protoOf(PassphrasePromptRequest).a1f = function () {
|
|
3471
|
+
return this.minLength;
|
|
3472
|
+
};
|
|
3473
|
+
protoOf(PassphrasePromptRequest).b1f = function () {
|
|
3474
|
+
return this.maxLength;
|
|
3475
|
+
};
|
|
3476
|
+
protoOf(PassphrasePromptRequest).c1f = function () {
|
|
3477
|
+
return this.isNumericOnly;
|
|
3478
|
+
};
|
|
3479
|
+
protoOf(PassphrasePromptRequest).c1e = function () {
|
|
3480
|
+
return this.u1e_1;
|
|
3481
|
+
};
|
|
3482
|
+
protoOf(PassphrasePromptRequest).hb = function () {
|
|
3483
|
+
return this.v1e_1;
|
|
3484
|
+
};
|
|
3485
|
+
protoOf(PassphrasePromptRequest).q15 = function () {
|
|
3486
|
+
return this.w1e_1;
|
|
3487
|
+
};
|
|
3488
|
+
protoOf(PassphrasePromptRequest).e18 = function () {
|
|
3489
|
+
return this.x1e_1;
|
|
3490
|
+
};
|
|
3491
|
+
protoOf(PassphrasePromptRequest).f18 = function () {
|
|
3492
|
+
return this.y1e_1;
|
|
3493
|
+
};
|
|
3494
|
+
protoOf(PassphrasePromptRequest).g18 = function () {
|
|
3495
|
+
return this.purpose;
|
|
3496
|
+
};
|
|
3497
|
+
protoOf(PassphrasePromptRequest).h18 = function () {
|
|
3498
|
+
return this.minLength;
|
|
3499
|
+
};
|
|
3500
|
+
protoOf(PassphrasePromptRequest).d1e = function () {
|
|
3501
|
+
return this.maxLength;
|
|
3502
|
+
};
|
|
3503
|
+
protoOf(PassphrasePromptRequest).d1f = function () {
|
|
3504
|
+
return this.isNumericOnly;
|
|
3505
|
+
};
|
|
3506
|
+
protoOf(PassphrasePromptRequest).e1f = function (id, title, subtitle, show, presentationHint, purpose, minLength, maxLength, isNumericOnly) {
|
|
3507
|
+
return new PassphrasePromptRequest(id, title, subtitle, show, presentationHint, purpose, minLength, maxLength, isNumericOnly);
|
|
3508
|
+
};
|
|
3509
|
+
protoOf(PassphrasePromptRequest).copy = function (id, title, subtitle, show, presentationHint, purpose, minLength, maxLength, isNumericOnly, $super) {
|
|
3510
|
+
id = id === VOID ? this.u1e_1 : id;
|
|
3511
|
+
title = title === VOID ? this.v1e_1 : title;
|
|
3512
|
+
subtitle = subtitle === VOID ? this.w1e_1 : subtitle;
|
|
3513
|
+
show = show === VOID ? this.x1e_1 : show;
|
|
3514
|
+
presentationHint = presentationHint === VOID ? this.y1e_1 : presentationHint;
|
|
3515
|
+
purpose = purpose === VOID ? this.purpose : purpose;
|
|
3516
|
+
minLength = minLength === VOID ? this.minLength : minLength;
|
|
3517
|
+
maxLength = maxLength === VOID ? this.maxLength : maxLength;
|
|
3518
|
+
isNumericOnly = isNumericOnly === VOID ? this.isNumericOnly : isNumericOnly;
|
|
3519
|
+
return $super === VOID ? this.e1f(id, title, subtitle, show, presentationHint, purpose, minLength, maxLength, isNumericOnly) : $super.e1f.call(this, new PromptId(id), title, subtitle, show, presentationHint, purpose, minLength, maxLength, isNumericOnly);
|
|
3520
|
+
};
|
|
3521
|
+
protoOf(PassphrasePromptRequest).toString = function () {
|
|
3522
|
+
return 'PassphrasePromptRequest(id=' + PromptId__toString_impl_44yzz2(this.u1e_1) + ', title=' + this.v1e_1 + ', subtitle=' + this.w1e_1 + ', show=' + this.x1e_1 + ', presentationHint=' + this.y1e_1.toString() + ', purpose=' + this.purpose + ', minLength=' + this.minLength + ', maxLength=' + this.maxLength + ', isNumericOnly=' + this.isNumericOnly + ')';
|
|
3523
|
+
};
|
|
3524
|
+
protoOf(PassphrasePromptRequest).hashCode = function () {
|
|
3525
|
+
var result = PromptId__hashCode_impl_pw4wrx(this.u1e_1);
|
|
3526
|
+
result = imul(result, 31) + getStringHashCode(this.v1e_1) | 0;
|
|
3527
|
+
result = imul(result, 31) + (this.w1e_1 == null ? 0 : getStringHashCode(this.w1e_1)) | 0;
|
|
3528
|
+
result = imul(result, 31) + getBooleanHashCode(this.x1e_1) | 0;
|
|
3529
|
+
result = imul(result, 31) + this.y1e_1.hashCode() | 0;
|
|
3530
|
+
result = imul(result, 31) + getStringHashCode(this.purpose) | 0;
|
|
3531
|
+
result = imul(result, 31) + this.minLength | 0;
|
|
3532
|
+
result = imul(result, 31) + (this.maxLength == null ? 0 : this.maxLength) | 0;
|
|
3533
|
+
result = imul(result, 31) + getBooleanHashCode(this.isNumericOnly) | 0;
|
|
3534
|
+
return result;
|
|
3535
|
+
};
|
|
3536
|
+
protoOf(PassphrasePromptRequest).equals = function (other) {
|
|
3537
|
+
if (this === other)
|
|
3538
|
+
return true;
|
|
3539
|
+
if (!(other instanceof PassphrasePromptRequest))
|
|
3540
|
+
return false;
|
|
3541
|
+
if (!(this.u1e_1 === other.u1e_1))
|
|
3542
|
+
return false;
|
|
3543
|
+
if (!(this.v1e_1 === other.v1e_1))
|
|
3544
|
+
return false;
|
|
3545
|
+
if (!(this.w1e_1 == other.w1e_1))
|
|
3546
|
+
return false;
|
|
3547
|
+
if (!(this.x1e_1 === other.x1e_1))
|
|
3548
|
+
return false;
|
|
3549
|
+
if (!this.y1e_1.equals(other.y1e_1))
|
|
3550
|
+
return false;
|
|
3551
|
+
if (!(this.purpose === other.purpose))
|
|
3552
|
+
return false;
|
|
3553
|
+
if (!(this.minLength === other.minLength))
|
|
3554
|
+
return false;
|
|
3555
|
+
if (!(this.maxLength == other.maxLength))
|
|
3556
|
+
return false;
|
|
3557
|
+
if (!(this.isNumericOnly === other.isNumericOnly))
|
|
3558
|
+
return false;
|
|
3559
|
+
return true;
|
|
3560
|
+
};
|
|
3561
|
+
function ConfirmationPromptRequest(id, title, subtitle, show, presentationHint, message, confirmText, cancelText, isDestructive) {
|
|
3562
|
+
id = id === VOID ? Companion_instance_6.z1c() : id;
|
|
3563
|
+
subtitle = subtitle === VOID ? null : subtitle;
|
|
3564
|
+
show = show === VOID ? true : show;
|
|
3565
|
+
presentationHint = presentationHint === VOID ? Companion_getInstance_12().DEFAULT : presentationHint;
|
|
3566
|
+
confirmText = confirmText === VOID ? 'Confirm' : confirmText;
|
|
3567
|
+
cancelText = cancelText === VOID ? 'Cancel' : cancelText;
|
|
3568
|
+
isDestructive = isDestructive === VOID ? false : isDestructive;
|
|
3569
|
+
this.f1f_1 = id;
|
|
3570
|
+
this.g1f_1 = title;
|
|
3571
|
+
this.h1f_1 = subtitle;
|
|
3572
|
+
this.i1f_1 = show;
|
|
3573
|
+
this.j1f_1 = presentationHint;
|
|
3574
|
+
this.message = message;
|
|
3575
|
+
this.confirmText = confirmText;
|
|
3576
|
+
this.cancelText = cancelText;
|
|
3577
|
+
this.isDestructive = isDestructive;
|
|
3578
|
+
}
|
|
3579
|
+
protoOf(ConfirmationPromptRequest).p1d = function () {
|
|
3580
|
+
return this.f1f_1;
|
|
3581
|
+
};
|
|
3582
|
+
protoOf(ConfirmationPromptRequest).s1d = function () {
|
|
3583
|
+
return this.g1f_1;
|
|
3584
|
+
};
|
|
3585
|
+
protoOf(ConfirmationPromptRequest).t1d = function () {
|
|
3586
|
+
return this.h1f_1;
|
|
3587
|
+
};
|
|
3588
|
+
protoOf(ConfirmationPromptRequest).r1d = function () {
|
|
3589
|
+
return this.i1f_1;
|
|
3590
|
+
};
|
|
3591
|
+
protoOf(ConfirmationPromptRequest).q1d = function () {
|
|
3592
|
+
return this.j1f_1;
|
|
3593
|
+
};
|
|
3594
|
+
protoOf(ConfirmationPromptRequest).f8 = function () {
|
|
3595
|
+
return this.message;
|
|
3596
|
+
};
|
|
3597
|
+
protoOf(ConfirmationPromptRequest).k1f = function () {
|
|
3598
|
+
return this.confirmText;
|
|
3599
|
+
};
|
|
3600
|
+
protoOf(ConfirmationPromptRequest).l1f = function () {
|
|
3601
|
+
return this.cancelText;
|
|
3602
|
+
};
|
|
3603
|
+
protoOf(ConfirmationPromptRequest).m1f = function () {
|
|
3604
|
+
return this.isDestructive;
|
|
3605
|
+
};
|
|
3606
|
+
protoOf(ConfirmationPromptRequest).c1e = function () {
|
|
3607
|
+
return this.f1f_1;
|
|
3608
|
+
};
|
|
3609
|
+
protoOf(ConfirmationPromptRequest).hb = function () {
|
|
3610
|
+
return this.g1f_1;
|
|
3611
|
+
};
|
|
3612
|
+
protoOf(ConfirmationPromptRequest).q15 = function () {
|
|
3613
|
+
return this.h1f_1;
|
|
3614
|
+
};
|
|
3615
|
+
protoOf(ConfirmationPromptRequest).e18 = function () {
|
|
3616
|
+
return this.i1f_1;
|
|
3617
|
+
};
|
|
3618
|
+
protoOf(ConfirmationPromptRequest).f18 = function () {
|
|
3619
|
+
return this.j1f_1;
|
|
3620
|
+
};
|
|
3621
|
+
protoOf(ConfirmationPromptRequest).g18 = function () {
|
|
3622
|
+
return this.message;
|
|
3623
|
+
};
|
|
3624
|
+
protoOf(ConfirmationPromptRequest).h18 = function () {
|
|
3625
|
+
return this.confirmText;
|
|
3626
|
+
};
|
|
3627
|
+
protoOf(ConfirmationPromptRequest).d1e = function () {
|
|
3628
|
+
return this.cancelText;
|
|
3629
|
+
};
|
|
3630
|
+
protoOf(ConfirmationPromptRequest).d1f = function () {
|
|
3631
|
+
return this.isDestructive;
|
|
3632
|
+
};
|
|
3633
|
+
protoOf(ConfirmationPromptRequest).n1f = function (id, title, subtitle, show, presentationHint, message, confirmText, cancelText, isDestructive) {
|
|
3634
|
+
return new ConfirmationPromptRequest(id, title, subtitle, show, presentationHint, message, confirmText, cancelText, isDestructive);
|
|
3635
|
+
};
|
|
3636
|
+
protoOf(ConfirmationPromptRequest).copy = function (id, title, subtitle, show, presentationHint, message, confirmText, cancelText, isDestructive, $super) {
|
|
3637
|
+
id = id === VOID ? this.f1f_1 : id;
|
|
3638
|
+
title = title === VOID ? this.g1f_1 : title;
|
|
3639
|
+
subtitle = subtitle === VOID ? this.h1f_1 : subtitle;
|
|
3640
|
+
show = show === VOID ? this.i1f_1 : show;
|
|
3641
|
+
presentationHint = presentationHint === VOID ? this.j1f_1 : presentationHint;
|
|
3642
|
+
message = message === VOID ? this.message : message;
|
|
3643
|
+
confirmText = confirmText === VOID ? this.confirmText : confirmText;
|
|
3644
|
+
cancelText = cancelText === VOID ? this.cancelText : cancelText;
|
|
3645
|
+
isDestructive = isDestructive === VOID ? this.isDestructive : isDestructive;
|
|
3646
|
+
return $super === VOID ? this.n1f(id, title, subtitle, show, presentationHint, message, confirmText, cancelText, isDestructive) : $super.n1f.call(this, new PromptId(id), title, subtitle, show, presentationHint, message, confirmText, cancelText, isDestructive);
|
|
3647
|
+
};
|
|
3648
|
+
protoOf(ConfirmationPromptRequest).toString = function () {
|
|
3649
|
+
return 'ConfirmationPromptRequest(id=' + PromptId__toString_impl_44yzz2(this.f1f_1) + ', title=' + this.g1f_1 + ', subtitle=' + this.h1f_1 + ', show=' + this.i1f_1 + ', presentationHint=' + this.j1f_1.toString() + ', message=' + this.message + ', confirmText=' + this.confirmText + ', cancelText=' + this.cancelText + ', isDestructive=' + this.isDestructive + ')';
|
|
3650
|
+
};
|
|
3651
|
+
protoOf(ConfirmationPromptRequest).hashCode = function () {
|
|
3652
|
+
var result = PromptId__hashCode_impl_pw4wrx(this.f1f_1);
|
|
3653
|
+
result = imul(result, 31) + getStringHashCode(this.g1f_1) | 0;
|
|
3654
|
+
result = imul(result, 31) + (this.h1f_1 == null ? 0 : getStringHashCode(this.h1f_1)) | 0;
|
|
3655
|
+
result = imul(result, 31) + getBooleanHashCode(this.i1f_1) | 0;
|
|
3656
|
+
result = imul(result, 31) + this.j1f_1.hashCode() | 0;
|
|
3657
|
+
result = imul(result, 31) + getStringHashCode(this.message) | 0;
|
|
3658
|
+
result = imul(result, 31) + getStringHashCode(this.confirmText) | 0;
|
|
3659
|
+
result = imul(result, 31) + getStringHashCode(this.cancelText) | 0;
|
|
3660
|
+
result = imul(result, 31) + getBooleanHashCode(this.isDestructive) | 0;
|
|
3661
|
+
return result;
|
|
3662
|
+
};
|
|
3663
|
+
protoOf(ConfirmationPromptRequest).equals = function (other) {
|
|
3664
|
+
if (this === other)
|
|
3665
|
+
return true;
|
|
3666
|
+
if (!(other instanceof ConfirmationPromptRequest))
|
|
3667
|
+
return false;
|
|
3668
|
+
if (!(this.f1f_1 === other.f1f_1))
|
|
3669
|
+
return false;
|
|
3670
|
+
if (!(this.g1f_1 === other.g1f_1))
|
|
3671
|
+
return false;
|
|
3672
|
+
if (!(this.h1f_1 == other.h1f_1))
|
|
3673
|
+
return false;
|
|
3674
|
+
if (!(this.i1f_1 === other.i1f_1))
|
|
3675
|
+
return false;
|
|
3676
|
+
if (!this.j1f_1.equals(other.j1f_1))
|
|
3677
|
+
return false;
|
|
3678
|
+
if (!(this.message === other.message))
|
|
3679
|
+
return false;
|
|
3680
|
+
if (!(this.confirmText === other.confirmText))
|
|
3681
|
+
return false;
|
|
3682
|
+
if (!(this.cancelText === other.cancelText))
|
|
3683
|
+
return false;
|
|
3684
|
+
if (!(this.isDestructive === other.isDestructive))
|
|
3685
|
+
return false;
|
|
3686
|
+
return true;
|
|
3687
|
+
};
|
|
3688
|
+
function PromptResponse() {
|
|
3689
|
+
}
|
|
3690
|
+
var PromptState_PENDING_instance;
|
|
3691
|
+
var PromptState_ACTIVE_instance;
|
|
3692
|
+
var PromptState_SUCCESS_instance;
|
|
3693
|
+
var PromptState_CANCELLED_instance;
|
|
3694
|
+
var PromptState_TIMED_OUT_instance;
|
|
3695
|
+
var PromptState_ERROR_instance;
|
|
3696
|
+
function values_7() {
|
|
3697
|
+
return [PromptState_PENDING_getInstance(), PromptState_ACTIVE_getInstance(), PromptState_SUCCESS_getInstance(), PromptState_CANCELLED_getInstance(), PromptState_TIMED_OUT_getInstance(), PromptState_ERROR_getInstance()];
|
|
3698
|
+
}
|
|
3699
|
+
function valueOf_7(value) {
|
|
3700
|
+
switch (value) {
|
|
3701
|
+
case 'PENDING':
|
|
3702
|
+
return PromptState_PENDING_getInstance();
|
|
3703
|
+
case 'ACTIVE':
|
|
3704
|
+
return PromptState_ACTIVE_getInstance();
|
|
3705
|
+
case 'SUCCESS':
|
|
3706
|
+
return PromptState_SUCCESS_getInstance();
|
|
3707
|
+
case 'CANCELLED':
|
|
3708
|
+
return PromptState_CANCELLED_getInstance();
|
|
3709
|
+
case 'TIMED_OUT':
|
|
3710
|
+
return PromptState_TIMED_OUT_getInstance();
|
|
3711
|
+
case 'ERROR':
|
|
3712
|
+
return PromptState_ERROR_getInstance();
|
|
3713
|
+
default:
|
|
3714
|
+
PromptState_initEntries();
|
|
3715
|
+
THROW_IAE('No enum constant com.sphereon.ui.prompt.core.PromptState.' + value);
|
|
3716
|
+
break;
|
|
3717
|
+
}
|
|
3718
|
+
}
|
|
3719
|
+
var PromptState_entriesInitialized;
|
|
3720
|
+
function PromptState_initEntries() {
|
|
3721
|
+
if (PromptState_entriesInitialized)
|
|
3722
|
+
return Unit_instance;
|
|
3723
|
+
PromptState_entriesInitialized = true;
|
|
3724
|
+
PromptState_PENDING_instance = new PromptState('PENDING', 0);
|
|
3725
|
+
PromptState_ACTIVE_instance = new PromptState('ACTIVE', 1);
|
|
3726
|
+
PromptState_SUCCESS_instance = new PromptState('SUCCESS', 2);
|
|
3727
|
+
PromptState_CANCELLED_instance = new PromptState('CANCELLED', 3);
|
|
3728
|
+
PromptState_TIMED_OUT_instance = new PromptState('TIMED_OUT', 4);
|
|
3729
|
+
PromptState_ERROR_instance = new PromptState('ERROR', 5);
|
|
3730
|
+
}
|
|
3731
|
+
function PromptState(name, ordinal) {
|
|
3732
|
+
Enum.call(this, name, ordinal);
|
|
3733
|
+
}
|
|
3734
|
+
protoOf(PromptState).s1f = function () {
|
|
3735
|
+
var tmp;
|
|
3736
|
+
switch (this.l2_1) {
|
|
3737
|
+
case 0:
|
|
3738
|
+
case 1:
|
|
3739
|
+
tmp = false;
|
|
3740
|
+
break;
|
|
3741
|
+
case 2:
|
|
3742
|
+
case 3:
|
|
3743
|
+
case 4:
|
|
3744
|
+
case 5:
|
|
3745
|
+
tmp = true;
|
|
3746
|
+
break;
|
|
3747
|
+
default:
|
|
3748
|
+
noWhenBranchMatchedException();
|
|
3749
|
+
break;
|
|
3750
|
+
}
|
|
3751
|
+
return tmp;
|
|
3752
|
+
};
|
|
3753
|
+
protoOf(PromptState).t1f = function () {
|
|
3754
|
+
return this.equals(PromptState_ACTIVE_getInstance());
|
|
3755
|
+
};
|
|
3756
|
+
protoOf(PromptState).u1f = function () {
|
|
3757
|
+
return this.equals(PromptState_PENDING_getInstance());
|
|
3758
|
+
};
|
|
3759
|
+
function PromptState_PENDING_getInstance() {
|
|
3760
|
+
PromptState_initEntries();
|
|
3761
|
+
return PromptState_PENDING_instance;
|
|
3762
|
+
}
|
|
3763
|
+
function PromptState_ACTIVE_getInstance() {
|
|
3764
|
+
PromptState_initEntries();
|
|
3765
|
+
return PromptState_ACTIVE_instance;
|
|
3766
|
+
}
|
|
3767
|
+
function PromptState_SUCCESS_getInstance() {
|
|
3768
|
+
PromptState_initEntries();
|
|
3769
|
+
return PromptState_SUCCESS_instance;
|
|
3770
|
+
}
|
|
3771
|
+
function PromptState_CANCELLED_getInstance() {
|
|
3772
|
+
PromptState_initEntries();
|
|
3773
|
+
return PromptState_CANCELLED_instance;
|
|
3774
|
+
}
|
|
3775
|
+
function PromptState_TIMED_OUT_getInstance() {
|
|
3776
|
+
PromptState_initEntries();
|
|
3777
|
+
return PromptState_TIMED_OUT_instance;
|
|
3778
|
+
}
|
|
3779
|
+
function PromptState_ERROR_getInstance() {
|
|
3780
|
+
PromptState_initEntries();
|
|
3781
|
+
return PromptState_ERROR_instance;
|
|
3782
|
+
}
|
|
3783
|
+
var ForegroundState_FOREGROUND_instance;
|
|
3784
|
+
var ForegroundState_BACKGROUND_instance;
|
|
3785
|
+
var ForegroundState_UNKNOWN_instance;
|
|
3786
|
+
function values_8() {
|
|
3787
|
+
return [ForegroundState_FOREGROUND_getInstance(), ForegroundState_BACKGROUND_getInstance(), ForegroundState_UNKNOWN_getInstance()];
|
|
3788
|
+
}
|
|
3789
|
+
function valueOf_8(value) {
|
|
3790
|
+
switch (value) {
|
|
3791
|
+
case 'FOREGROUND':
|
|
3792
|
+
return ForegroundState_FOREGROUND_getInstance();
|
|
3793
|
+
case 'BACKGROUND':
|
|
3794
|
+
return ForegroundState_BACKGROUND_getInstance();
|
|
3795
|
+
case 'UNKNOWN':
|
|
3796
|
+
return ForegroundState_UNKNOWN_getInstance();
|
|
3797
|
+
default:
|
|
3798
|
+
ForegroundState_initEntries();
|
|
3799
|
+
THROW_IAE('No enum constant com.sphereon.ui.prompt.presenter.ForegroundState.' + value);
|
|
3800
|
+
break;
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
var ForegroundState_entriesInitialized;
|
|
3804
|
+
function ForegroundState_initEntries() {
|
|
3805
|
+
if (ForegroundState_entriesInitialized)
|
|
3806
|
+
return Unit_instance;
|
|
3807
|
+
ForegroundState_entriesInitialized = true;
|
|
3808
|
+
ForegroundState_FOREGROUND_instance = new ForegroundState('FOREGROUND', 0);
|
|
3809
|
+
ForegroundState_BACKGROUND_instance = new ForegroundState('BACKGROUND', 1);
|
|
3810
|
+
ForegroundState_UNKNOWN_instance = new ForegroundState('UNKNOWN', 2);
|
|
3811
|
+
}
|
|
3812
|
+
function ForegroundState(name, ordinal) {
|
|
3813
|
+
Enum.call(this, name, ordinal);
|
|
3814
|
+
}
|
|
3815
|
+
function PromptPresenter() {
|
|
3816
|
+
}
|
|
3817
|
+
function ForegroundState_FOREGROUND_getInstance() {
|
|
3818
|
+
ForegroundState_initEntries();
|
|
3819
|
+
return ForegroundState_FOREGROUND_instance;
|
|
3820
|
+
}
|
|
3821
|
+
function ForegroundState_BACKGROUND_getInstance() {
|
|
3822
|
+
ForegroundState_initEntries();
|
|
3823
|
+
return ForegroundState_BACKGROUND_instance;
|
|
3824
|
+
}
|
|
3825
|
+
function ForegroundState_UNKNOWN_getInstance() {
|
|
3826
|
+
ForegroundState_initEntries();
|
|
3827
|
+
return ForegroundState_UNKNOWN_instance;
|
|
3828
|
+
}
|
|
3829
|
+
function WizardStep() {
|
|
3830
|
+
}
|
|
3831
|
+
function currentTimeMillis() {
|
|
3832
|
+
return numberToLong(Date.now());
|
|
3833
|
+
}
|
|
3834
|
+
//region block: post-declaration
|
|
3835
|
+
defineProp(protoOf(Encoding), 'name', protoOf(Encoding).m2);
|
|
3836
|
+
defineProp(protoOf(Encoding), 'ordinal', protoOf(Encoding).n2);
|
|
3837
|
+
defineProp(protoOf(IdkResult), 'isOk', protoOf(IdkResult).y14);
|
|
3838
|
+
defineProp(protoOf(IdkResult), 'isErr', protoOf(IdkResult).z14);
|
|
3839
|
+
defineProp(protoOf(IdkResult), 'value', function () {
|
|
3840
|
+
return this.r1();
|
|
3841
|
+
});
|
|
3842
|
+
defineProp(protoOf(IdkResult), 'error', function () {
|
|
3843
|
+
return this.a15();
|
|
3844
|
+
});
|
|
3845
|
+
defineProp(protoOf(Severity), 'name', protoOf(Severity).m2);
|
|
3846
|
+
defineProp(protoOf(Severity), 'ordinal', protoOf(Severity).n2);
|
|
3847
|
+
defineProp(protoOf(IdkError), 'code', function () {
|
|
3848
|
+
return this.f15();
|
|
3849
|
+
});
|
|
3850
|
+
defineProp(protoOf(IdkError), 'message', function () {
|
|
3851
|
+
return this.f8();
|
|
3852
|
+
});
|
|
3853
|
+
defineProp(protoOf(IdkError), 'severity', function () {
|
|
3854
|
+
return this.g15();
|
|
3855
|
+
});
|
|
3856
|
+
defineProp(protoOf(IdkError), 'category', function () {
|
|
3857
|
+
return this.h15();
|
|
3858
|
+
});
|
|
3859
|
+
defineProp(protoOf(IdkError), 'causes', function () {
|
|
3860
|
+
return this.j15();
|
|
3861
|
+
});
|
|
3862
|
+
defineProp(protoOf(IdkError), 'meta', function () {
|
|
3863
|
+
return this.k15();
|
|
3864
|
+
});
|
|
3865
|
+
defineProp(protoOf(IdkError), 'exception', function () {
|
|
3866
|
+
return this.i15();
|
|
3867
|
+
});
|
|
3868
|
+
defineProp(protoOf(ErrorCategory), 'name', protoOf(ErrorCategory).m2);
|
|
3869
|
+
defineProp(protoOf(ErrorCategory), 'ordinal', protoOf(ErrorCategory).n2);
|
|
3870
|
+
defineProp(protoOf(JsonSupport), 'module', protoOf(JsonSupport).v17);
|
|
3871
|
+
defineProp(protoOf(JsonSupport), 'serializer', protoOf(JsonSupport).w17);
|
|
3872
|
+
defineProp(protoOf(LogOutputFormat), 'name', protoOf(LogOutputFormat).m2);
|
|
3873
|
+
defineProp(protoOf(LogOutputFormat), 'ordinal', protoOf(LogOutputFormat).n2);
|
|
3874
|
+
defineProp(protoOf(LogLevel), 'name', protoOf(LogLevel).m2);
|
|
3875
|
+
defineProp(protoOf(LogLevel), 'ordinal', protoOf(LogLevel).n2);
|
|
3876
|
+
protoOf(BaseChainCommand$config$1).y18 = get_minExecutions;
|
|
3877
|
+
defineProp(protoOf(BaseChainCommand$config$1), 'maxExecutions', function () {
|
|
3878
|
+
return this.x18();
|
|
3879
|
+
});
|
|
3880
|
+
defineProp(protoOf(BaseChainCommand$config$1), 'minExecutions', function () {
|
|
3881
|
+
return this.y18();
|
|
3882
|
+
});
|
|
3883
|
+
defineProp(protoOf(CommandExecutionPhase), 'name', protoOf(CommandExecutionPhase).m2);
|
|
3884
|
+
defineProp(protoOf(CommandExecutionPhase), 'ordinal', protoOf(CommandExecutionPhase).n2);
|
|
3885
|
+
protoOf(BaseCommand$andThen$1).f19 = andThen;
|
|
3886
|
+
defineProp(protoOf(TenantContextDataImpl), 'tenantId', function () {
|
|
3887
|
+
return this.m1c();
|
|
3888
|
+
});
|
|
3889
|
+
defineProp(protoOf(CancelReason), 'name', protoOf(CancelReason).m2);
|
|
3890
|
+
defineProp(protoOf(CancelReason), 'ordinal', protoOf(CancelReason).n2);
|
|
3891
|
+
defineProp(protoOf(PromptPriority), 'name', protoOf(PromptPriority).m2);
|
|
3892
|
+
defineProp(protoOf(PromptPriority), 'ordinal', protoOf(PromptPriority).n2);
|
|
3893
|
+
defineProp(protoOf(NfcPromptRequest), 'id', function () {
|
|
3894
|
+
return this.p1d();
|
|
3895
|
+
});
|
|
3896
|
+
defineProp(protoOf(NfcPromptRequest), 'title', function () {
|
|
3897
|
+
return this.s1d();
|
|
3898
|
+
});
|
|
3899
|
+
defineProp(protoOf(NfcPromptRequest), 'subtitle', function () {
|
|
3900
|
+
return this.t1d();
|
|
3901
|
+
});
|
|
3902
|
+
defineProp(protoOf(NfcPromptRequest), 'show', function () {
|
|
3903
|
+
return this.r1d();
|
|
3904
|
+
});
|
|
3905
|
+
defineProp(protoOf(NfcPromptRequest), 'presentationHint', function () {
|
|
3906
|
+
return this.q1d();
|
|
3907
|
+
});
|
|
3908
|
+
defineProp(protoOf(BiometricPromptRequest), 'id', function () {
|
|
3909
|
+
return this.p1d();
|
|
3910
|
+
});
|
|
3911
|
+
defineProp(protoOf(BiometricPromptRequest), 'title', function () {
|
|
3912
|
+
return this.s1d();
|
|
3913
|
+
});
|
|
3914
|
+
defineProp(protoOf(BiometricPromptRequest), 'subtitle', function () {
|
|
3915
|
+
return this.t1d();
|
|
3916
|
+
});
|
|
3917
|
+
defineProp(protoOf(BiometricPromptRequest), 'show', function () {
|
|
3918
|
+
return this.r1d();
|
|
3919
|
+
});
|
|
3920
|
+
defineProp(protoOf(BiometricPromptRequest), 'presentationHint', function () {
|
|
3921
|
+
return this.q1d();
|
|
3922
|
+
});
|
|
3923
|
+
defineProp(protoOf(BiometricUnlockPromptRequest), 'id', function () {
|
|
3924
|
+
return this.p1d();
|
|
3925
|
+
});
|
|
3926
|
+
defineProp(protoOf(BiometricUnlockPromptRequest), 'title', function () {
|
|
3927
|
+
return this.s1d();
|
|
3928
|
+
});
|
|
3929
|
+
defineProp(protoOf(BiometricUnlockPromptRequest), 'subtitle', function () {
|
|
3930
|
+
return this.t1d();
|
|
3931
|
+
});
|
|
3932
|
+
defineProp(protoOf(BiometricUnlockPromptRequest), 'show', function () {
|
|
3933
|
+
return this.r1d();
|
|
3934
|
+
});
|
|
3935
|
+
defineProp(protoOf(BiometricUnlockPromptRequest), 'presentationHint', function () {
|
|
3936
|
+
return this.q1d();
|
|
3937
|
+
});
|
|
3938
|
+
defineProp(protoOf(PassphrasePromptRequest), 'id', function () {
|
|
3939
|
+
return this.p1d();
|
|
3940
|
+
});
|
|
3941
|
+
defineProp(protoOf(PassphrasePromptRequest), 'title', function () {
|
|
3942
|
+
return this.s1d();
|
|
3943
|
+
});
|
|
3944
|
+
defineProp(protoOf(PassphrasePromptRequest), 'subtitle', function () {
|
|
3945
|
+
return this.t1d();
|
|
3946
|
+
});
|
|
3947
|
+
defineProp(protoOf(PassphrasePromptRequest), 'show', function () {
|
|
3948
|
+
return this.r1d();
|
|
3949
|
+
});
|
|
3950
|
+
defineProp(protoOf(PassphrasePromptRequest), 'presentationHint', function () {
|
|
3951
|
+
return this.q1d();
|
|
3952
|
+
});
|
|
3953
|
+
defineProp(protoOf(ConfirmationPromptRequest), 'id', function () {
|
|
3954
|
+
return this.p1d();
|
|
3955
|
+
});
|
|
3956
|
+
defineProp(protoOf(ConfirmationPromptRequest), 'title', function () {
|
|
3957
|
+
return this.s1d();
|
|
3958
|
+
});
|
|
3959
|
+
defineProp(protoOf(ConfirmationPromptRequest), 'subtitle', function () {
|
|
3960
|
+
return this.t1d();
|
|
3961
|
+
});
|
|
3962
|
+
defineProp(protoOf(ConfirmationPromptRequest), 'show', function () {
|
|
3963
|
+
return this.r1d();
|
|
3964
|
+
});
|
|
3965
|
+
defineProp(protoOf(ConfirmationPromptRequest), 'presentationHint', function () {
|
|
3966
|
+
return this.q1d();
|
|
3967
|
+
});
|
|
3968
|
+
defineProp(protoOf(PromptState), 'isTerminal', protoOf(PromptState).s1f);
|
|
3969
|
+
defineProp(protoOf(PromptState), 'isActive', protoOf(PromptState).t1f);
|
|
3970
|
+
defineProp(protoOf(PromptState), 'isPending', protoOf(PromptState).u1f);
|
|
3971
|
+
defineProp(protoOf(PromptState), 'name', protoOf(PromptState).m2);
|
|
3972
|
+
defineProp(protoOf(PromptState), 'ordinal', protoOf(PromptState).n2);
|
|
3973
|
+
defineProp(protoOf(ForegroundState), 'name', protoOf(ForegroundState).m2);
|
|
3974
|
+
defineProp(protoOf(ForegroundState), 'ordinal', protoOf(ForegroundState).n2);
|
|
3975
|
+
//endregion
|
|
3976
|
+
//region block: init
|
|
3977
|
+
Companion_instance = new Companion();
|
|
3978
|
+
Companion_instance_0 = new Companion_0();
|
|
3979
|
+
IdkErrorCommandErrorMapper_instance = new IdkErrorCommandErrorMapper();
|
|
3980
|
+
CommandErrors_instance = new CommandErrors();
|
|
3981
|
+
Companion_instance_3 = new Companion_3();
|
|
3982
|
+
Uuid_instance = new Uuid();
|
|
3983
|
+
Companion_instance_5 = new Companion_5();
|
|
3984
|
+
Companion_instance_6 = new Companion_6();
|
|
3985
|
+
Companion_instance_8 = new Companion_8();
|
|
3986
|
+
//endregion
|
|
3987
|
+
//region block: exports
|
|
3988
|
+
Encoding.values = values;
|
|
3989
|
+
Encoding.valueOf = valueOf;
|
|
3990
|
+
defineProp(Encoding, 'BASE64', Encoding_BASE64_getInstance, VOID, true);
|
|
3991
|
+
defineProp(Encoding, 'BASE64URL', Encoding_BASE64URL_getInstance, VOID, true);
|
|
3992
|
+
defineProp(Encoding, 'BASE58BTC', Encoding_BASE58BTC_getInstance, VOID, true);
|
|
3993
|
+
defineProp(Encoding, 'HEX', Encoding_HEX_getInstance, VOID, true);
|
|
3994
|
+
defineProp(Encoding, 'UTF8', Encoding_UTF8_getInstance, VOID, true);
|
|
3995
|
+
defineProp(IdkResult, 'Companion', Companion_getInstance_4, VOID, true);
|
|
3996
|
+
IdkError.fromDTO = fromDTO;
|
|
3997
|
+
IdkError.fromString = fromString;
|
|
3998
|
+
IdkError.fromDefinition = fromDefinition;
|
|
3999
|
+
IdkError.UNKNOWN_ERROR = UNKNOWN_ERROR;
|
|
4000
|
+
IdkError.ILLEGAL_ARGUMENT_ERROR = ILLEGAL_ARGUMENT_ERROR;
|
|
4001
|
+
IdkError.COMMAND_ARG_NOT_SUPPORTED_ERROR = COMMAND_ARG_NOT_SUPPORTED_ERROR;
|
|
4002
|
+
IdkError.NOT_FOUND_ERROR = NOT_FOUND_ERROR;
|
|
4003
|
+
IdkError.COMMAND_DISABLED_ERROR = COMMAND_DISABLED_ERROR;
|
|
4004
|
+
IdkError.COMMAND_SKIPPED_ERROR = COMMAND_SKIPPED_ERROR;
|
|
4005
|
+
IdkError.COMMAND_NOT_AUTHORIZED_ERROR = COMMAND_NOT_AUTHORIZED_ERROR;
|
|
4006
|
+
IdkError.ALL_HANDLERS_FAILED_ERROR = ALL_HANDLERS_FAILED_ERROR;
|
|
4007
|
+
IdkError.UNAUTHORIZED_ERROR = UNAUTHORIZED_ERROR;
|
|
4008
|
+
IdkError.FORBIDDEN_ERROR = FORBIDDEN_ERROR;
|
|
4009
|
+
IdkError.ALREADY_EXISTS_ERROR = ALREADY_EXISTS_ERROR;
|
|
4010
|
+
IdkError.INVALID_STATE = INVALID_STATE;
|
|
4011
|
+
IdkError.Severity = Severity;
|
|
4012
|
+
IdkError.Severity.values = values_0;
|
|
4013
|
+
IdkError.Severity.valueOf = valueOf_0;
|
|
4014
|
+
defineProp(IdkError.Severity, 'INFO', Severity_INFO_getInstance, VOID, true);
|
|
4015
|
+
defineProp(IdkError.Severity, 'WARNING', Severity_WARNING_getInstance, VOID, true);
|
|
4016
|
+
defineProp(IdkError.Severity, 'ERROR', Severity_ERROR_getInstance, VOID, true);
|
|
4017
|
+
defineProp(IdkError.Severity, 'FATAL', Severity_FATAL_getInstance, VOID, true);
|
|
4018
|
+
IdkError.Message = Message;
|
|
4019
|
+
defineProp(IdkError, 'Companion', Companion_getInstance_5, VOID, true);
|
|
4020
|
+
ErrorCategory.values = values_1;
|
|
4021
|
+
ErrorCategory.valueOf = valueOf_1;
|
|
4022
|
+
defineProp(ErrorCategory, 'VALIDATION', ErrorCategory_VALIDATION_getInstance, VOID, true);
|
|
4023
|
+
defineProp(ErrorCategory, 'UNAUTHORIZED', ErrorCategory_UNAUTHORIZED_getInstance, VOID, true);
|
|
4024
|
+
defineProp(ErrorCategory, 'FORBIDDEN', ErrorCategory_FORBIDDEN_getInstance, VOID, true);
|
|
4025
|
+
defineProp(ErrorCategory, 'NOT_FOUND', ErrorCategory_NOT_FOUND_getInstance, VOID, true);
|
|
4026
|
+
defineProp(ErrorCategory, 'CONFLICT', ErrorCategory_CONFLICT_getInstance, VOID, true);
|
|
4027
|
+
defineProp(ErrorCategory, 'PRECONDITION_FAILED', ErrorCategory_PRECONDITION_FAILED_getInstance, VOID, true);
|
|
4028
|
+
defineProp(ErrorCategory, 'RATE_LIMITED', ErrorCategory_RATE_LIMITED_getInstance, VOID, true);
|
|
4029
|
+
defineProp(ErrorCategory, 'UNAVAILABLE', ErrorCategory_UNAVAILABLE_getInstance, VOID, true);
|
|
4030
|
+
defineProp(ErrorCategory, 'INTERNAL', ErrorCategory_INTERNAL_getInstance, VOID, true);
|
|
4031
|
+
defineProp(ErrorCategory, 'PROTOCOL', ErrorCategory_PROTOCOL_getInstance, VOID, true);
|
|
4032
|
+
var jsonSerializer = {get: get_jsonSerializer};
|
|
4033
|
+
var JsonSupport_0 = {getInstance: JsonSupport_getInstance};
|
|
4034
|
+
LogOutputFormat.values = values_2;
|
|
4035
|
+
LogOutputFormat.valueOf = valueOf_2;
|
|
4036
|
+
defineProp(LogOutputFormat, 'TEXT', LogOutputFormat_TEXT_getInstance, VOID, true);
|
|
4037
|
+
defineProp(LogOutputFormat, 'JSON', LogOutputFormat_JSON_getInstance, VOID, true);
|
|
4038
|
+
LogLevel.values = values_3;
|
|
4039
|
+
LogLevel.valueOf = valueOf_3;
|
|
4040
|
+
defineProp(LogLevel, 'TRACE', LogLevel_TRACE_getInstance, VOID, true);
|
|
4041
|
+
defineProp(LogLevel, 'DEBUG', LogLevel_DEBUG_getInstance, VOID, true);
|
|
4042
|
+
defineProp(LogLevel, 'INFO', LogLevel_INFO_getInstance, VOID, true);
|
|
4043
|
+
defineProp(LogLevel, 'WARN', LogLevel_WARN_getInstance, VOID, true);
|
|
4044
|
+
defineProp(LogLevel, 'ERROR', LogLevel_ERROR_getInstance, VOID, true);
|
|
4045
|
+
defineProp(LogLevel, 'OFF', LogLevel_OFF_getInstance, VOID, true);
|
|
4046
|
+
defineProp(LoggerConfig, 'Disabled', get_Disabled, VOID, true);
|
|
4047
|
+
defineProp(LoggerConfig, 'Debug', get_Debug, VOID, true);
|
|
4048
|
+
defineProp(LoggerConfig, 'Default', get_Default, VOID, true);
|
|
4049
|
+
defineProp(LoggerConfig, 'JsonWithTimestamp', get_JsonWithTimestamp, VOID, true);
|
|
4050
|
+
defineProp(LoggerConfig, 'Companion', Companion_getInstance_7, VOID, true);
|
|
4051
|
+
CommandExecutionPhase.values = values_4;
|
|
4052
|
+
CommandExecutionPhase.valueOf = valueOf_4;
|
|
4053
|
+
defineProp(CommandExecutionPhase, 'BEFORE', CommandExecutionPhase_BEFORE_getInstance, VOID, true);
|
|
4054
|
+
defineProp(CommandExecutionPhase, 'DURING', CommandExecutionPhase_DURING_getInstance, VOID, true);
|
|
4055
|
+
defineProp(CommandExecutionPhase, 'AFTER', CommandExecutionPhase_AFTER_getInstance, VOID, true);
|
|
4056
|
+
LocalDateTimeKMP.now = now;
|
|
4057
|
+
LocalDateTimeKMP.nowWithTimezone = nowWithTimezone;
|
|
4058
|
+
LocalDateTimeKMP.fromString = fromString_0;
|
|
4059
|
+
defineProp(LocalDateTimeKMP, 'Companion', Companion_getInstance_8, VOID, true);
|
|
4060
|
+
defineProp(DateTimeUtils, 'DEFAULTS', get_DEFAULTS, VOID, true);
|
|
4061
|
+
defineProp(DateTimeUtils, 'Companion', Companion_getInstance_9, VOID, true);
|
|
4062
|
+
var DateTimeUtilsDefault_0 = {getInstance: DateTimeUtilsDefault_getInstance};
|
|
4063
|
+
var Uuid_0 = {getInstance: Uuid_getInstance};
|
|
4064
|
+
var UserContext_0 = {};
|
|
4065
|
+
defineProp(UserContext_0, 'Companion', Companion_getInstance_10, VOID, true);
|
|
4066
|
+
CancelReason.values = values_5;
|
|
4067
|
+
CancelReason.valueOf = valueOf_5;
|
|
4068
|
+
defineProp(CancelReason, 'USER', CancelReason_USER_getInstance, VOID, true);
|
|
4069
|
+
defineProp(CancelReason, 'SUPERSEDED', CancelReason_SUPERSEDED_getInstance, VOID, true);
|
|
4070
|
+
defineProp(CancelReason, 'BACKGROUND', CancelReason_BACKGROUND_getInstance, VOID, true);
|
|
4071
|
+
defineProp(CancelReason, 'SYSTEM', CancelReason_SYSTEM_getInstance, VOID, true);
|
|
4072
|
+
defineProp(PromptPresentationHint, 'Companion', Companion_getInstance_12, VOID, true);
|
|
4073
|
+
PromptPriority.values = values_6;
|
|
4074
|
+
PromptPriority.valueOf = valueOf_6;
|
|
4075
|
+
defineProp(PromptPriority, 'CRITICAL', PromptPriority_CRITICAL_getInstance, VOID, true);
|
|
4076
|
+
defineProp(PromptPriority, 'HIGH', PromptPriority_HIGH_getInstance, VOID, true);
|
|
4077
|
+
defineProp(PromptPriority, 'NORMAL', PromptPriority_NORMAL_getInstance, VOID, true);
|
|
4078
|
+
defineProp(PromptPriority, 'LOW', PromptPriority_LOW_getInstance, VOID, true);
|
|
4079
|
+
defineProp(PromptPriority, 'BACKGROUND', PromptPriority_BACKGROUND_getInstance, VOID, true);
|
|
4080
|
+
defineProp(PromptPriority, 'Companion', Companion_getInstance_13, VOID, true);
|
|
4081
|
+
PromptState.values = values_7;
|
|
4082
|
+
PromptState.valueOf = valueOf_7;
|
|
4083
|
+
defineProp(PromptState, 'PENDING', PromptState_PENDING_getInstance, VOID, true);
|
|
4084
|
+
defineProp(PromptState, 'ACTIVE', PromptState_ACTIVE_getInstance, VOID, true);
|
|
4085
|
+
defineProp(PromptState, 'SUCCESS', PromptState_SUCCESS_getInstance, VOID, true);
|
|
4086
|
+
defineProp(PromptState, 'CANCELLED', PromptState_CANCELLED_getInstance, VOID, true);
|
|
4087
|
+
defineProp(PromptState, 'TIMED_OUT', PromptState_TIMED_OUT_getInstance, VOID, true);
|
|
4088
|
+
defineProp(PromptState, 'ERROR', PromptState_ERROR_getInstance, VOID, true);
|
|
4089
|
+
ForegroundState.values = values_8;
|
|
4090
|
+
ForegroundState.valueOf = valueOf_8;
|
|
4091
|
+
defineProp(ForegroundState, 'FOREGROUND', ForegroundState_FOREGROUND_getInstance, VOID, true);
|
|
4092
|
+
defineProp(ForegroundState, 'BACKGROUND', ForegroundState_BACKGROUND_getInstance, VOID, true);
|
|
4093
|
+
defineProp(ForegroundState, 'UNKNOWN', ForegroundState_UNKNOWN_getInstance, VOID, true);
|
|
4094
|
+
export {
|
|
4095
|
+
Encoding as Encoding,
|
|
4096
|
+
decodeFromHex as decodeFromHex,
|
|
4097
|
+
encodeToHex as encodeToHex,
|
|
4098
|
+
encodeToBase58Btc as encodeToBase58Btc,
|
|
4099
|
+
decodeFromBase58Btc as decodeFromBase58Btc,
|
|
4100
|
+
decodeFromBase64Url as decodeFromBase64Url,
|
|
4101
|
+
encodeToBase64Url as encodeToBase64Url,
|
|
4102
|
+
encodeToBase64 as encodeToBase64,
|
|
4103
|
+
decodeFromBase64 as decodeFromBase64,
|
|
4104
|
+
decodeFrom as decodeFrom,
|
|
4105
|
+
encodeTo as encodeTo,
|
|
4106
|
+
decodeUrlGraph as decodeUrlGraph,
|
|
4107
|
+
encodeUrlGraph as encodeUrlGraph,
|
|
4108
|
+
IdkResult as IdkResult,
|
|
4109
|
+
Ok_0 as Ok,
|
|
4110
|
+
Err_0 as Err,
|
|
4111
|
+
IdkIsOk as IdkIsOk,
|
|
4112
|
+
IdkIsErr as IdkIsErr,
|
|
4113
|
+
IdkGetOrNull as IdkGetOrNull,
|
|
4114
|
+
IdkErrorOrNull as IdkErrorOrNull,
|
|
4115
|
+
IdkOkResult as IdkOkResult,
|
|
4116
|
+
IdkErrorResult as IdkErrorResult,
|
|
4117
|
+
IdkError as IdkError,
|
|
4118
|
+
ErrorCategory as ErrorCategory,
|
|
4119
|
+
jsonSerializer as jsonSerializer,
|
|
4120
|
+
JsonSupport_0 as JsonSupport,
|
|
4121
|
+
LogOutputFormat as LogOutputFormat,
|
|
4122
|
+
LogMessage as LogMessage,
|
|
4123
|
+
LogLevel as LogLevel,
|
|
4124
|
+
LoggerConfig as LoggerConfig,
|
|
4125
|
+
CommandExecutionPhase as CommandExecutionPhase,
|
|
4126
|
+
kmpListOf as kmpListOf,
|
|
4127
|
+
kmpSetOf as kmpSetOf,
|
|
4128
|
+
kmpMapOf as kmpMapOf,
|
|
4129
|
+
LocalDateTimeKMP as LocalDateTimeKMP,
|
|
4130
|
+
DateTimeUtils as DateTimeUtils,
|
|
4131
|
+
DateTimeUtilsDefault_0 as DateTimeUtilsDefault,
|
|
4132
|
+
Uuid_0 as Uuid,
|
|
4133
|
+
TenantContextDataImpl as TenantContextDataImpl,
|
|
4134
|
+
UserContext_0 as UserContext,
|
|
4135
|
+
UserScope as UserScope,
|
|
4136
|
+
SessionScope as SessionScope,
|
|
4137
|
+
CancelReason as CancelReason,
|
|
4138
|
+
PromptPresentationHint as PromptPresentationHint,
|
|
4139
|
+
PromptPriority as PromptPriority,
|
|
4140
|
+
NfcPromptRequest as NfcPromptRequest,
|
|
4141
|
+
BiometricPromptRequest as BiometricPromptRequest,
|
|
4142
|
+
BiometricUnlockPromptRequest as BiometricUnlockPromptRequest,
|
|
4143
|
+
PassphrasePromptRequest as PassphrasePromptRequest,
|
|
4144
|
+
ConfirmationPromptRequest as ConfirmationPromptRequest,
|
|
4145
|
+
PromptState as PromptState,
|
|
4146
|
+
ForegroundState as ForegroundState,
|
|
4147
|
+
};
|
|
4148
|
+
//endregion
|
|
4149
|
+
|
|
4150
|
+
//# sourceMappingURL=idk-lib-core-api-public.mjs.map
|