@doordeck/doordeck-headless-sdk 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +5545 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +255 -0
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -0
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +41 -0
- package/kotlin/MultiplatformSettings-multiplatform-settings.js.map +1 -0
- package/kotlin/Stately-stately-concurrency.js +32 -0
- package/kotlin/Stately-stately-concurrency.js.map +1 -0
- package/kotlin/Stately-stately-concurrent-collections.js +304 -0
- package/kotlin/Stately-stately-concurrent-collections.js.map +1 -0
- package/kotlin/Stately-stately-strict.js +12 -0
- package/kotlin/Stately-stately-strict.js.map +1 -0
- package/kotlin/doordeck-sdk.d.ts +1325 -0
- package/kotlin/doordeck-sdk.js +33503 -0
- package/kotlin/doordeck-sdk.js.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib.js +14474 -0
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +8 -0
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlin/kotlinx-atomicfu.js +249 -0
- package/kotlin/kotlinx-atomicfu.js.map +1 -0
- package/kotlin/kotlinx-coroutines-core.js +8784 -0
- package/kotlin/kotlinx-coroutines-core.js.map +1 -0
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +8 -0
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlin/kotlinx-io-kotlinx-io-core.js +1333 -0
- package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +5908 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +4740 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/kotlin/ktor-ktor-client-ktor-client-core.js +8407 -0
- package/kotlin/ktor-ktor-client-ktor-client-core.js.map +1 -0
- package/kotlin/ktor-ktor-client-ktor-client-js.js +8 -0
- package/kotlin/ktor-ktor-client-ktor-client-js.js.map +1 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +1146 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +1 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +647 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +1 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js +8 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js.map +1 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +8 -0
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js.map +1 -0
- package/kotlin/ktor-ktor-http.js +3638 -0
- package/kotlin/ktor-ktor-http.js.map +1 -0
- package/kotlin/ktor-ktor-io.js +2249 -0
- package/kotlin/ktor-ktor-io.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-events.js +84 -0
- package/kotlin/ktor-ktor-shared-ktor-events.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +47 -0
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +857 -0
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +365 -0
- package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-sse.js +8 -0
- package/kotlin/ktor-ktor-shared-ktor-sse.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js +8 -0
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js.map +1 -0
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +424 -0
- package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +1 -0
- package/kotlin/ktor-ktor-utils.js +2393 -0
- package/kotlin/ktor-ktor-utils.js.map +1 -0
- package/kotlin/projects-core-koin-core.js +1134 -0
- package/kotlin/projects-core-koin-core.js.map +1 -0
- package/kotlin/uuid.js +152 -0
- package/kotlin/uuid.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,1134 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_co_touchlab_stately_concurrency, kotlin_com_benasher44_uuid, kotlin_co_touchlab_stately_concurrent_collections) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.rb;
|
|
7
|
+
var Pair = kotlin_kotlin.$_$.bf;
|
|
8
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ra;
|
|
9
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
|
|
10
|
+
var VOID = kotlin_kotlin.$_$.f;
|
|
11
|
+
var emptyList = kotlin_kotlin.$_$.b7;
|
|
12
|
+
var toString = kotlin_kotlin.$_$.fg;
|
|
13
|
+
var toString_0 = kotlin_kotlin.$_$.vb;
|
|
14
|
+
var equals = kotlin_kotlin.$_$.ka;
|
|
15
|
+
var joinToString = kotlin_kotlin.$_$.q7;
|
|
16
|
+
var THROW_CCE = kotlin_kotlin.$_$.ef;
|
|
17
|
+
var hashCode = kotlin_kotlin.$_$.qa;
|
|
18
|
+
var Enum = kotlin_kotlin.$_$.ue;
|
|
19
|
+
var Exception = kotlin_kotlin.$_$.we;
|
|
20
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.n1;
|
|
21
|
+
var captureStack = kotlin_kotlin.$_$.ca;
|
|
22
|
+
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.o1;
|
|
23
|
+
var HashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
24
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
25
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
26
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
27
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
28
|
+
var getStringHashCode = kotlin_kotlin.$_$.pa;
|
|
29
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
30
|
+
var asReversed = kotlin_kotlin.$_$.e6;
|
|
31
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
32
|
+
var get_lastIndex = kotlin_kotlin.$_$.t7;
|
|
33
|
+
var toList = kotlin_kotlin.$_$.t8;
|
|
34
|
+
var copyToArray = kotlin_kotlin.$_$.x6;
|
|
35
|
+
var arrayListOf = kotlin_kotlin.$_$.c6;
|
|
36
|
+
var ArrayDeque_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
37
|
+
var ThreadLocalRef = kotlin_co_touchlab_stately_concurrency.$_$.a;
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.xa;
|
|
39
|
+
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
40
|
+
var Monotonic_instance = kotlin_kotlin.$_$.b5;
|
|
41
|
+
var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.q2;
|
|
42
|
+
var _Duration___get_inWholeNanoseconds__impl__r5x4mr = kotlin_kotlin.$_$.l2;
|
|
43
|
+
var Exception_init_$Create$ = kotlin_kotlin.$_$.m1;
|
|
44
|
+
var split = kotlin_kotlin.$_$.md;
|
|
45
|
+
var ConcurrentMutableMap_init_$Create$ = kotlin_co_touchlab_stately_concurrent_collections.$_$.a;
|
|
46
|
+
//endregion
|
|
47
|
+
//region block: pre-declaration
|
|
48
|
+
initMetadataForClass(Koin, 'Koin', Koin);
|
|
49
|
+
initMetadataForCompanion(Companion);
|
|
50
|
+
initMetadataForClass(KoinApplication, 'KoinApplication');
|
|
51
|
+
initMetadataForClass(BeanDefinition, 'BeanDefinition');
|
|
52
|
+
initMetadataForClass(Kind, 'Kind', VOID, Enum);
|
|
53
|
+
initMetadataForClass(Callbacks, 'Callbacks', Callbacks);
|
|
54
|
+
initMetadataForClass(KoinDefinition, 'KoinDefinition');
|
|
55
|
+
initMetadataForClass(ClosedScopeException, 'ClosedScopeException', VOID, Exception);
|
|
56
|
+
initMetadataForClass(DefinitionOverrideException, 'DefinitionOverrideException', VOID, Exception);
|
|
57
|
+
initMetadataForClass(InstanceCreationException, 'InstanceCreationException', VOID, Exception);
|
|
58
|
+
initMetadataForClass(KoinApplicationAlreadyStartedException, 'KoinApplicationAlreadyStartedException', VOID, Exception);
|
|
59
|
+
initMetadataForClass(NoDefinitionFoundException, 'NoDefinitionFoundException', VOID, Exception);
|
|
60
|
+
initMetadataForClass(ExtensionManager, 'ExtensionManager');
|
|
61
|
+
initMetadataForClass(InstanceContext, 'InstanceContext');
|
|
62
|
+
initMetadataForCompanion(Companion_0);
|
|
63
|
+
initMetadataForClass(InstanceFactory, 'InstanceFactory');
|
|
64
|
+
initMetadataForClass(SingleInstanceFactory, 'SingleInstanceFactory', VOID, InstanceFactory);
|
|
65
|
+
initMetadataForClass(Logger, 'Logger');
|
|
66
|
+
initMetadataForClass(EmptyLogger, 'EmptyLogger', EmptyLogger, Logger);
|
|
67
|
+
initMetadataForClass(Level, 'Level', VOID, Enum);
|
|
68
|
+
initMetadataForClass(Module, 'Module', Module);
|
|
69
|
+
initMetadataForClass(ParametersHolder, 'ParametersHolder', ParametersHolder);
|
|
70
|
+
initMetadataForClass(StringQualifier, 'StringQualifier');
|
|
71
|
+
initMetadataForClass(InstanceRegistry, 'InstanceRegistry');
|
|
72
|
+
initMetadataForClass(PropertyRegistry, 'PropertyRegistry');
|
|
73
|
+
initMetadataForCompanion(Companion_1);
|
|
74
|
+
initMetadataForClass(ScopeRegistry, 'ScopeRegistry');
|
|
75
|
+
initMetadataForClass(Scope, 'Scope');
|
|
76
|
+
initMetadataForObject(KoinPlatform, 'KoinPlatform');
|
|
77
|
+
initMetadataForObject(GlobalContext, 'GlobalContext');
|
|
78
|
+
initMetadataForObject(KoinPlatformTimeTools, 'KoinPlatformTimeTools');
|
|
79
|
+
initMetadataForObject(KoinPlatformTools, 'KoinPlatformTools');
|
|
80
|
+
//endregion
|
|
81
|
+
function Koin() {
|
|
82
|
+
this.c52_1 = new ScopeRegistry(this);
|
|
83
|
+
this.d52_1 = new InstanceRegistry(this);
|
|
84
|
+
this.e52_1 = new PropertyRegistry(this);
|
|
85
|
+
this.f52_1 = new ExtensionManager(this);
|
|
86
|
+
this.g52_1 = new EmptyLogger();
|
|
87
|
+
}
|
|
88
|
+
protoOf(Koin).h52 = function (modules, allowOverride, createEagerInstances) {
|
|
89
|
+
var flattedModules = flatten(modules);
|
|
90
|
+
this.d52_1.l52(flattedModules, allowOverride);
|
|
91
|
+
this.c52_1.q52(flattedModules);
|
|
92
|
+
if (createEagerInstances) {
|
|
93
|
+
this.r52();
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
protoOf(Koin).r52 = function () {
|
|
97
|
+
this.g52_1.t52('Create eager instances ...');
|
|
98
|
+
// Inline function 'org.koin.core.time.measureDuration' call
|
|
99
|
+
// Inline function 'org.koin.core.time.measureTimedValue' call
|
|
100
|
+
var start = KoinPlatformTimeTools_instance.u52();
|
|
101
|
+
this.d52_1.v52();
|
|
102
|
+
var value = Unit_instance;
|
|
103
|
+
var stop = KoinPlatformTimeTools_instance.u52();
|
|
104
|
+
// Inline function 'kotlin.Long.div' call
|
|
105
|
+
var tmp$ret$0 = stop.v2(start).l3() / 1000000.0;
|
|
106
|
+
var duration = (new Pair(value, tmp$ret$0)).dg_1;
|
|
107
|
+
this.g52_1.t52('Created eager instances in ' + duration + ' ms');
|
|
108
|
+
};
|
|
109
|
+
function loadModules($this, modules) {
|
|
110
|
+
$this.w52_1.h52(modules, $this.x52_1, false);
|
|
111
|
+
}
|
|
112
|
+
function Companion() {
|
|
113
|
+
}
|
|
114
|
+
protoOf(Companion).y52 = function () {
|
|
115
|
+
var app = new KoinApplication();
|
|
116
|
+
return app;
|
|
117
|
+
};
|
|
118
|
+
var Companion_instance;
|
|
119
|
+
function Companion_getInstance() {
|
|
120
|
+
return Companion_instance;
|
|
121
|
+
}
|
|
122
|
+
function KoinApplication() {
|
|
123
|
+
this.w52_1 = new Koin();
|
|
124
|
+
this.x52_1 = true;
|
|
125
|
+
}
|
|
126
|
+
protoOf(KoinApplication).z52 = function (modules) {
|
|
127
|
+
if (this.w52_1.g52_1.c53(Level_INFO_getInstance())) {
|
|
128
|
+
// Inline function 'org.koin.core.time.measureDuration' call
|
|
129
|
+
// Inline function 'org.koin.core.time.measureTimedValue' call
|
|
130
|
+
var start = KoinPlatformTimeTools_instance.u52();
|
|
131
|
+
loadModules(this, modules);
|
|
132
|
+
var value = Unit_instance;
|
|
133
|
+
var stop = KoinPlatformTimeTools_instance.u52();
|
|
134
|
+
// Inline function 'kotlin.Long.div' call
|
|
135
|
+
var tmp$ret$0 = stop.v2(start).l3() / 1000000.0;
|
|
136
|
+
var duration = (new Pair(value, tmp$ret$0)).dg_1;
|
|
137
|
+
var count = this.w52_1.d52_1.a53();
|
|
138
|
+
this.w52_1.g52_1.b53(Level_INFO_getInstance(), 'Started ' + count + ' definitions in ' + duration + ' ms');
|
|
139
|
+
} else {
|
|
140
|
+
loadModules(this, modules);
|
|
141
|
+
}
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
function startKoin(appDeclaration) {
|
|
145
|
+
return KoinPlatformTools_instance.d53().e53(appDeclaration);
|
|
146
|
+
}
|
|
147
|
+
function BeanDefinition$toString$lambda(it) {
|
|
148
|
+
return getFullName(it);
|
|
149
|
+
}
|
|
150
|
+
function BeanDefinition(scopeQualifier, primaryType, qualifier, definition, kind, secondaryTypes) {
|
|
151
|
+
qualifier = qualifier === VOID ? null : qualifier;
|
|
152
|
+
var tmp;
|
|
153
|
+
if (secondaryTypes === VOID) {
|
|
154
|
+
// Inline function 'kotlin.collections.listOf' call
|
|
155
|
+
tmp = emptyList();
|
|
156
|
+
} else {
|
|
157
|
+
tmp = secondaryTypes;
|
|
158
|
+
}
|
|
159
|
+
secondaryTypes = tmp;
|
|
160
|
+
this.f53_1 = scopeQualifier;
|
|
161
|
+
this.g53_1 = primaryType;
|
|
162
|
+
this.h53_1 = qualifier;
|
|
163
|
+
this.i53_1 = definition;
|
|
164
|
+
this.j53_1 = kind;
|
|
165
|
+
this.k53_1 = secondaryTypes;
|
|
166
|
+
this.l53_1 = new Callbacks();
|
|
167
|
+
this.m53_1 = false;
|
|
168
|
+
}
|
|
169
|
+
protoOf(BeanDefinition).toString = function () {
|
|
170
|
+
var defKind = this.j53_1.toString();
|
|
171
|
+
var defType = "'" + getFullName(this.g53_1) + "'";
|
|
172
|
+
var tmp;
|
|
173
|
+
if (this.h53_1 == null) {
|
|
174
|
+
tmp = null;
|
|
175
|
+
} else {
|
|
176
|
+
// Inline function 'kotlin.let' call
|
|
177
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
178
|
+
// Inline function 'org.koin.core.definition.BeanDefinition.toString.<anonymous>' call
|
|
179
|
+
tmp = ',qualifier:' + toString(this.h53_1);
|
|
180
|
+
}
|
|
181
|
+
var tmp0_elvis_lhs = tmp;
|
|
182
|
+
var defName = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
183
|
+
// Inline function 'kotlin.let' call
|
|
184
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
185
|
+
// Inline function 'org.koin.core.definition.BeanDefinition.toString.<anonymous>' call
|
|
186
|
+
var it = this.f53_1;
|
|
187
|
+
var defScope = equals(it, Companion_getInstance_1().o53_1) ? '' : ',scope:' + toString_0(this.f53_1);
|
|
188
|
+
var tmp_0;
|
|
189
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
190
|
+
if (!this.k53_1.p()) {
|
|
191
|
+
var tmp_1 = this.k53_1;
|
|
192
|
+
var typesAsString = joinToString(tmp_1, ',', VOID, VOID, VOID, VOID, BeanDefinition$toString$lambda);
|
|
193
|
+
tmp_0 = ',binds:' + typesAsString;
|
|
194
|
+
} else {
|
|
195
|
+
tmp_0 = '';
|
|
196
|
+
}
|
|
197
|
+
var defOtherTypes = tmp_0;
|
|
198
|
+
return '[' + defKind + ':' + defType + defName + defScope + defOtherTypes + ']';
|
|
199
|
+
};
|
|
200
|
+
protoOf(BeanDefinition).equals = function (other) {
|
|
201
|
+
if (this === other)
|
|
202
|
+
return true;
|
|
203
|
+
if (!(other instanceof BeanDefinition))
|
|
204
|
+
THROW_CCE();
|
|
205
|
+
if (!this.g53_1.equals(other.g53_1))
|
|
206
|
+
return false;
|
|
207
|
+
if (!equals(this.h53_1, other.h53_1))
|
|
208
|
+
return false;
|
|
209
|
+
if (!equals(this.f53_1, other.f53_1))
|
|
210
|
+
return false;
|
|
211
|
+
return true;
|
|
212
|
+
};
|
|
213
|
+
protoOf(BeanDefinition).hashCode = function () {
|
|
214
|
+
var tmp1_safe_receiver = this.h53_1;
|
|
215
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : hashCode(tmp1_safe_receiver);
|
|
216
|
+
var result = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
217
|
+
result = imul(31, result) + this.g53_1.hashCode() | 0;
|
|
218
|
+
result = imul(31, result) + hashCode(this.f53_1) | 0;
|
|
219
|
+
return result;
|
|
220
|
+
};
|
|
221
|
+
function indexKey(clazz, typeQualifier, scopeQualifier) {
|
|
222
|
+
var tmp0_elvis_lhs = typeQualifier == null ? null : typeQualifier.u();
|
|
223
|
+
var tq = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
224
|
+
return getFullName(clazz) + ':' + tq + ':' + toString_0(scopeQualifier);
|
|
225
|
+
}
|
|
226
|
+
var Kind_Singleton_instance;
|
|
227
|
+
var Kind_Factory_instance;
|
|
228
|
+
var Kind_Scoped_instance;
|
|
229
|
+
var Kind_entriesInitialized;
|
|
230
|
+
function Kind_initEntries() {
|
|
231
|
+
if (Kind_entriesInitialized)
|
|
232
|
+
return Unit_instance;
|
|
233
|
+
Kind_entriesInitialized = true;
|
|
234
|
+
Kind_Singleton_instance = new Kind('Singleton', 0);
|
|
235
|
+
Kind_Factory_instance = new Kind('Factory', 1);
|
|
236
|
+
Kind_Scoped_instance = new Kind('Scoped', 2);
|
|
237
|
+
}
|
|
238
|
+
function Kind(name, ordinal) {
|
|
239
|
+
Enum.call(this, name, ordinal);
|
|
240
|
+
}
|
|
241
|
+
function Kind_Singleton_getInstance() {
|
|
242
|
+
Kind_initEntries();
|
|
243
|
+
return Kind_Singleton_instance;
|
|
244
|
+
}
|
|
245
|
+
function Callbacks(onClose) {
|
|
246
|
+
onClose = onClose === VOID ? null : onClose;
|
|
247
|
+
this.p53_1 = onClose;
|
|
248
|
+
}
|
|
249
|
+
protoOf(Callbacks).toString = function () {
|
|
250
|
+
return 'Callbacks(onClose=' + toString(this.p53_1) + ')';
|
|
251
|
+
};
|
|
252
|
+
protoOf(Callbacks).hashCode = function () {
|
|
253
|
+
return this.p53_1 == null ? 0 : hashCode(this.p53_1);
|
|
254
|
+
};
|
|
255
|
+
protoOf(Callbacks).equals = function (other) {
|
|
256
|
+
if (this === other)
|
|
257
|
+
return true;
|
|
258
|
+
if (!(other instanceof Callbacks))
|
|
259
|
+
return false;
|
|
260
|
+
var tmp0_other_with_cast = other instanceof Callbacks ? other : THROW_CCE();
|
|
261
|
+
if (!equals(this.p53_1, tmp0_other_with_cast.p53_1))
|
|
262
|
+
return false;
|
|
263
|
+
return true;
|
|
264
|
+
};
|
|
265
|
+
function KoinDefinition(module_0, factory) {
|
|
266
|
+
this.q53_1 = module_0;
|
|
267
|
+
this.r53_1 = factory;
|
|
268
|
+
}
|
|
269
|
+
protoOf(KoinDefinition).toString = function () {
|
|
270
|
+
return 'KoinDefinition(module=' + toString_0(this.q53_1) + ', factory=' + toString_0(this.r53_1) + ')';
|
|
271
|
+
};
|
|
272
|
+
protoOf(KoinDefinition).hashCode = function () {
|
|
273
|
+
var result = this.q53_1.hashCode();
|
|
274
|
+
result = imul(result, 31) + hashCode(this.r53_1) | 0;
|
|
275
|
+
return result;
|
|
276
|
+
};
|
|
277
|
+
protoOf(KoinDefinition).equals = function (other) {
|
|
278
|
+
if (this === other)
|
|
279
|
+
return true;
|
|
280
|
+
if (!(other instanceof KoinDefinition))
|
|
281
|
+
return false;
|
|
282
|
+
var tmp0_other_with_cast = other instanceof KoinDefinition ? other : THROW_CCE();
|
|
283
|
+
if (!this.q53_1.equals(tmp0_other_with_cast.q53_1))
|
|
284
|
+
return false;
|
|
285
|
+
if (!equals(this.r53_1, tmp0_other_with_cast.r53_1))
|
|
286
|
+
return false;
|
|
287
|
+
return true;
|
|
288
|
+
};
|
|
289
|
+
function ClosedScopeException(msg) {
|
|
290
|
+
Exception_init_$Init$(msg, this);
|
|
291
|
+
captureStack(this, ClosedScopeException);
|
|
292
|
+
}
|
|
293
|
+
function DefinitionOverrideException(msg) {
|
|
294
|
+
Exception_init_$Init$(msg, this);
|
|
295
|
+
captureStack(this, DefinitionOverrideException);
|
|
296
|
+
}
|
|
297
|
+
function InstanceCreationException(msg, parent) {
|
|
298
|
+
Exception_init_$Init$_0(msg, parent, this);
|
|
299
|
+
captureStack(this, InstanceCreationException);
|
|
300
|
+
}
|
|
301
|
+
function KoinApplicationAlreadyStartedException(msg) {
|
|
302
|
+
Exception_init_$Init$(msg, this);
|
|
303
|
+
captureStack(this, KoinApplicationAlreadyStartedException);
|
|
304
|
+
}
|
|
305
|
+
function NoDefinitionFoundException(msg) {
|
|
306
|
+
Exception_init_$Init$(msg, this);
|
|
307
|
+
captureStack(this, NoDefinitionFoundException);
|
|
308
|
+
}
|
|
309
|
+
function ExtensionManager(_koin) {
|
|
310
|
+
this.s53_1 = _koin;
|
|
311
|
+
var tmp = this;
|
|
312
|
+
// Inline function 'kotlin.collections.hashMapOf' call
|
|
313
|
+
tmp.t53_1 = HashMap_init_$Create$();
|
|
314
|
+
}
|
|
315
|
+
function InstanceContext(logger, scope, parameters) {
|
|
316
|
+
parameters = parameters === VOID ? null : parameters;
|
|
317
|
+
this.u53_1 = logger;
|
|
318
|
+
this.v53_1 = scope;
|
|
319
|
+
this.w53_1 = parameters;
|
|
320
|
+
}
|
|
321
|
+
function Companion_0() {
|
|
322
|
+
this.x53_1 = '\n\t';
|
|
323
|
+
}
|
|
324
|
+
var Companion_instance_0;
|
|
325
|
+
function Companion_getInstance_0() {
|
|
326
|
+
return Companion_instance_0;
|
|
327
|
+
}
|
|
328
|
+
function InstanceFactory(beanDefinition) {
|
|
329
|
+
this.y53_1 = beanDefinition;
|
|
330
|
+
}
|
|
331
|
+
protoOf(InstanceFactory).a54 = function (context) {
|
|
332
|
+
context.u53_1.t52("| (+) '" + this.y53_1.toString() + "'");
|
|
333
|
+
try {
|
|
334
|
+
var tmp0_elvis_lhs = context.w53_1;
|
|
335
|
+
var parameters = tmp0_elvis_lhs == null ? emptyParametersHolder() : tmp0_elvis_lhs;
|
|
336
|
+
return this.y53_1.i53_1(context.v53_1, parameters);
|
|
337
|
+
} catch ($p) {
|
|
338
|
+
if ($p instanceof Exception) {
|
|
339
|
+
var e = $p;
|
|
340
|
+
var stack = KoinPlatformTools_instance.b54(e);
|
|
341
|
+
context.u53_1.c54("* Instance creation error : could not create instance for '" + this.y53_1.toString() + "': " + stack);
|
|
342
|
+
throw new InstanceCreationException("Could not create instance for '" + this.y53_1.toString() + "'", e);
|
|
343
|
+
} else {
|
|
344
|
+
throw $p;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
function getValue($this) {
|
|
349
|
+
var tmp0_elvis_lhs = $this.e54_1;
|
|
350
|
+
var tmp;
|
|
351
|
+
if (tmp0_elvis_lhs == null) {
|
|
352
|
+
var message = "Single instance created couldn't return value";
|
|
353
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
354
|
+
} else {
|
|
355
|
+
tmp = tmp0_elvis_lhs;
|
|
356
|
+
}
|
|
357
|
+
return tmp;
|
|
358
|
+
}
|
|
359
|
+
function SingleInstanceFactory$get$lambda(this$0, $context) {
|
|
360
|
+
return function () {
|
|
361
|
+
var tmp;
|
|
362
|
+
if (!this$0.f54($context)) {
|
|
363
|
+
this$0.e54_1 = this$0.a54($context);
|
|
364
|
+
tmp = Unit_instance;
|
|
365
|
+
}
|
|
366
|
+
return Unit_instance;
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function SingleInstanceFactory(beanDefinition) {
|
|
370
|
+
InstanceFactory.call(this, beanDefinition);
|
|
371
|
+
this.e54_1 = null;
|
|
372
|
+
}
|
|
373
|
+
protoOf(SingleInstanceFactory).f54 = function (context) {
|
|
374
|
+
return !(this.e54_1 == null);
|
|
375
|
+
};
|
|
376
|
+
protoOf(SingleInstanceFactory).a54 = function (context) {
|
|
377
|
+
var tmp;
|
|
378
|
+
if (this.e54_1 == null) {
|
|
379
|
+
tmp = protoOf(InstanceFactory).a54.call(this, context);
|
|
380
|
+
} else {
|
|
381
|
+
tmp = getValue(this);
|
|
382
|
+
}
|
|
383
|
+
return tmp;
|
|
384
|
+
};
|
|
385
|
+
protoOf(SingleInstanceFactory).z53 = function (context) {
|
|
386
|
+
var tmp = KoinPlatformTools_instance;
|
|
387
|
+
tmp.g54(this, SingleInstanceFactory$get$lambda(this, context));
|
|
388
|
+
return getValue(this);
|
|
389
|
+
};
|
|
390
|
+
function EmptyLogger() {
|
|
391
|
+
Logger.call(this, Level_NONE_getInstance());
|
|
392
|
+
}
|
|
393
|
+
protoOf(EmptyLogger).b53 = function (level, msg) {
|
|
394
|
+
};
|
|
395
|
+
function Logger(level) {
|
|
396
|
+
level = level === VOID ? Level_INFO_getInstance() : level;
|
|
397
|
+
this.s52_1 = level;
|
|
398
|
+
}
|
|
399
|
+
protoOf(Logger).t52 = function (msg) {
|
|
400
|
+
this.j54(Level_DEBUG_getInstance(), msg);
|
|
401
|
+
};
|
|
402
|
+
protoOf(Logger).i54 = function (msg) {
|
|
403
|
+
this.j54(Level_WARNING_getInstance(), msg);
|
|
404
|
+
};
|
|
405
|
+
protoOf(Logger).c54 = function (msg) {
|
|
406
|
+
this.j54(Level_ERROR_getInstance(), msg);
|
|
407
|
+
};
|
|
408
|
+
protoOf(Logger).c53 = function (lvl) {
|
|
409
|
+
return this.s52_1.p2(lvl) <= 0;
|
|
410
|
+
};
|
|
411
|
+
protoOf(Logger).j54 = function (lvl, msg) {
|
|
412
|
+
if (this.c53(lvl)) {
|
|
413
|
+
this.b53(lvl, msg);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
protoOf(Logger).k54 = function (lvl, msg) {
|
|
417
|
+
if (this.c53(lvl)) {
|
|
418
|
+
this.b53(lvl, msg());
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
var Level_DEBUG_instance;
|
|
422
|
+
var Level_INFO_instance;
|
|
423
|
+
var Level_WARNING_instance;
|
|
424
|
+
var Level_ERROR_instance;
|
|
425
|
+
var Level_NONE_instance;
|
|
426
|
+
var Level_entriesInitialized;
|
|
427
|
+
function Level_initEntries() {
|
|
428
|
+
if (Level_entriesInitialized)
|
|
429
|
+
return Unit_instance;
|
|
430
|
+
Level_entriesInitialized = true;
|
|
431
|
+
Level_DEBUG_instance = new Level('DEBUG', 0);
|
|
432
|
+
Level_INFO_instance = new Level('INFO', 1);
|
|
433
|
+
Level_WARNING_instance = new Level('WARNING', 2);
|
|
434
|
+
Level_ERROR_instance = new Level('ERROR', 3);
|
|
435
|
+
Level_NONE_instance = new Level('NONE', 4);
|
|
436
|
+
}
|
|
437
|
+
function Level(name, ordinal) {
|
|
438
|
+
Enum.call(this, name, ordinal);
|
|
439
|
+
}
|
|
440
|
+
function Level_DEBUG_getInstance() {
|
|
441
|
+
Level_initEntries();
|
|
442
|
+
return Level_DEBUG_instance;
|
|
443
|
+
}
|
|
444
|
+
function Level_INFO_getInstance() {
|
|
445
|
+
Level_initEntries();
|
|
446
|
+
return Level_INFO_instance;
|
|
447
|
+
}
|
|
448
|
+
function Level_WARNING_getInstance() {
|
|
449
|
+
Level_initEntries();
|
|
450
|
+
return Level_WARNING_instance;
|
|
451
|
+
}
|
|
452
|
+
function Level_ERROR_getInstance() {
|
|
453
|
+
Level_initEntries();
|
|
454
|
+
return Level_ERROR_instance;
|
|
455
|
+
}
|
|
456
|
+
function Level_NONE_getInstance() {
|
|
457
|
+
Level_initEntries();
|
|
458
|
+
return Level_NONE_instance;
|
|
459
|
+
}
|
|
460
|
+
function Module(_createdAtStart) {
|
|
461
|
+
_createdAtStart = _createdAtStart === VOID ? false : _createdAtStart;
|
|
462
|
+
this.l54_1 = _createdAtStart;
|
|
463
|
+
this.m54_1 = generateId(KoinPlatformTools_instance);
|
|
464
|
+
var tmp = this;
|
|
465
|
+
// Inline function 'kotlin.collections.hashSetOf' call
|
|
466
|
+
tmp.n54_1 = HashSet_init_$Create$();
|
|
467
|
+
var tmp_0 = this;
|
|
468
|
+
// Inline function 'kotlin.collections.hashMapOf' call
|
|
469
|
+
tmp_0.o54_1 = HashMap_init_$Create$();
|
|
470
|
+
var tmp_1 = this;
|
|
471
|
+
// Inline function 'kotlin.collections.hashSetOf' call
|
|
472
|
+
tmp_1.p54_1 = HashSet_init_$Create$();
|
|
473
|
+
var tmp_2 = this;
|
|
474
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
475
|
+
tmp_2.q54_1 = ArrayList_init_$Create$();
|
|
476
|
+
}
|
|
477
|
+
protoOf(Module).r54 = function (instanceFactory) {
|
|
478
|
+
var def = instanceFactory.y53_1;
|
|
479
|
+
var mapping = indexKey(def.g53_1, def.h53_1, def.f53_1);
|
|
480
|
+
this.s54(mapping, instanceFactory);
|
|
481
|
+
};
|
|
482
|
+
protoOf(Module).t54 = function (instanceFactory) {
|
|
483
|
+
this.n54_1.e(instanceFactory);
|
|
484
|
+
};
|
|
485
|
+
protoOf(Module).s54 = function (mapping, factory) {
|
|
486
|
+
// Inline function 'kotlin.collections.set' call
|
|
487
|
+
this.o54_1.i2(mapping, factory);
|
|
488
|
+
};
|
|
489
|
+
protoOf(Module).equals = function (other) {
|
|
490
|
+
if (this === other)
|
|
491
|
+
return true;
|
|
492
|
+
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
493
|
+
return false;
|
|
494
|
+
if (!(other instanceof Module))
|
|
495
|
+
THROW_CCE();
|
|
496
|
+
if (!(this.m54_1 === other.m54_1))
|
|
497
|
+
return false;
|
|
498
|
+
return true;
|
|
499
|
+
};
|
|
500
|
+
protoOf(Module).hashCode = function () {
|
|
501
|
+
return getStringHashCode(this.m54_1);
|
|
502
|
+
};
|
|
503
|
+
function flatten(modules) {
|
|
504
|
+
// Inline function 'kotlin.collections.linkedSetOf' call
|
|
505
|
+
var flatten = LinkedHashSet_init_$Create$();
|
|
506
|
+
var stack = ArrayDeque_init_$Create$(asReversed(modules));
|
|
507
|
+
$l$loop_0: while (true) {
|
|
508
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
509
|
+
if (!!stack.p()) {
|
|
510
|
+
break $l$loop_0;
|
|
511
|
+
}
|
|
512
|
+
var current = stack.hf();
|
|
513
|
+
if (!flatten.e(current)) {
|
|
514
|
+
continue $l$loop_0;
|
|
515
|
+
}
|
|
516
|
+
var _iterator__ex2g4s = current.q54_1.j();
|
|
517
|
+
while (_iterator__ex2g4s.k()) {
|
|
518
|
+
var module_0 = _iterator__ex2g4s.l();
|
|
519
|
+
if (!flatten.s1(module_0)) {
|
|
520
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
521
|
+
stack.e(module_0);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return flatten;
|
|
526
|
+
}
|
|
527
|
+
function overrideError(factory, mapping) {
|
|
528
|
+
throw new DefinitionOverrideException('Already existing definition for ' + factory.y53_1.toString() + ' at ' + mapping);
|
|
529
|
+
}
|
|
530
|
+
function getFirstValue($this, clazz) {
|
|
531
|
+
var tmp$ret$1;
|
|
532
|
+
$l$block: {
|
|
533
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
534
|
+
var tmp0_iterator = $this.u54_1.j();
|
|
535
|
+
while (tmp0_iterator.k()) {
|
|
536
|
+
var element = tmp0_iterator.l();
|
|
537
|
+
// Inline function 'org.koin.core.parameter.ParametersHolder.getFirstValue.<anonymous>' call
|
|
538
|
+
if (clazz.ta(element)) {
|
|
539
|
+
tmp$ret$1 = element;
|
|
540
|
+
break $l$block;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
tmp$ret$1 = null;
|
|
544
|
+
}
|
|
545
|
+
var tmp10_safe_receiver = tmp$ret$1;
|
|
546
|
+
var tmp;
|
|
547
|
+
if (tmp10_safe_receiver == null) {
|
|
548
|
+
tmp = null;
|
|
549
|
+
} else {
|
|
550
|
+
// Inline function 'kotlin.let' call
|
|
551
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
552
|
+
// Inline function 'org.koin.core.parameter.ParametersHolder.getFirstValue.<anonymous>' call
|
|
553
|
+
tmp = !(tmp10_safe_receiver == null) ? tmp10_safe_receiver : THROW_CCE();
|
|
554
|
+
}
|
|
555
|
+
return tmp;
|
|
556
|
+
}
|
|
557
|
+
function getIndexedValue($this, clazz) {
|
|
558
|
+
// Inline function 'kotlin.takeIf' call
|
|
559
|
+
var this_0 = $this.u54_1.o($this.w54_1);
|
|
560
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
561
|
+
var tmp;
|
|
562
|
+
// Inline function 'org.koin.core.parameter.ParametersHolder.getIndexedValue.<anonymous>' call
|
|
563
|
+
if (clazz.ta(this_0)) {
|
|
564
|
+
tmp = this_0;
|
|
565
|
+
} else {
|
|
566
|
+
tmp = null;
|
|
567
|
+
}
|
|
568
|
+
var tmp11_safe_receiver = tmp;
|
|
569
|
+
var tmp_0;
|
|
570
|
+
if (tmp11_safe_receiver == null) {
|
|
571
|
+
tmp_0 = null;
|
|
572
|
+
} else {
|
|
573
|
+
// Inline function 'kotlin.let' call
|
|
574
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
575
|
+
// Inline function 'org.koin.core.parameter.ParametersHolder.getIndexedValue.<anonymous>' call
|
|
576
|
+
tmp_0 = !(tmp11_safe_receiver == null) ? tmp11_safe_receiver : THROW_CCE();
|
|
577
|
+
}
|
|
578
|
+
var currentValue = tmp_0;
|
|
579
|
+
if (!(currentValue == null)) {
|
|
580
|
+
$this.x54();
|
|
581
|
+
}
|
|
582
|
+
return currentValue;
|
|
583
|
+
}
|
|
584
|
+
function ParametersHolder(_values, useIndexedValues) {
|
|
585
|
+
var tmp;
|
|
586
|
+
if (_values === VOID) {
|
|
587
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
588
|
+
tmp = ArrayList_init_$Create$();
|
|
589
|
+
} else {
|
|
590
|
+
tmp = _values;
|
|
591
|
+
}
|
|
592
|
+
_values = tmp;
|
|
593
|
+
useIndexedValues = useIndexedValues === VOID ? null : useIndexedValues;
|
|
594
|
+
this.u54_1 = _values;
|
|
595
|
+
this.v54_1 = useIndexedValues;
|
|
596
|
+
this.w54_1 = 0;
|
|
597
|
+
}
|
|
598
|
+
protoOf(ParametersHolder).y54 = function (clazz) {
|
|
599
|
+
var tmp;
|
|
600
|
+
if (this.u54_1.p()) {
|
|
601
|
+
tmp = null;
|
|
602
|
+
} else {
|
|
603
|
+
var tmp_0;
|
|
604
|
+
switch (this.v54_1) {
|
|
605
|
+
case null:
|
|
606
|
+
var tmp0_elvis_lhs = getIndexedValue(this, clazz);
|
|
607
|
+
tmp_0 = tmp0_elvis_lhs == null ? getFirstValue(this, clazz) : tmp0_elvis_lhs;
|
|
608
|
+
break;
|
|
609
|
+
case true:
|
|
610
|
+
tmp_0 = getIndexedValue(this, clazz);
|
|
611
|
+
break;
|
|
612
|
+
default:
|
|
613
|
+
tmp_0 = getFirstValue(this, clazz);
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
tmp = tmp_0;
|
|
617
|
+
}
|
|
618
|
+
return tmp;
|
|
619
|
+
};
|
|
620
|
+
protoOf(ParametersHolder).x54 = function () {
|
|
621
|
+
if (this.w54_1 < get_lastIndex(this.u54_1)) {
|
|
622
|
+
this.w54_1 = this.w54_1 + 1 | 0;
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
protoOf(ParametersHolder).toString = function () {
|
|
626
|
+
return 'DefinitionParameters' + toString_0(toList(this.u54_1));
|
|
627
|
+
};
|
|
628
|
+
function emptyParametersHolder() {
|
|
629
|
+
return new ParametersHolder();
|
|
630
|
+
}
|
|
631
|
+
function _q(name) {
|
|
632
|
+
return new StringQualifier(name);
|
|
633
|
+
}
|
|
634
|
+
function named(name) {
|
|
635
|
+
return new StringQualifier(name);
|
|
636
|
+
}
|
|
637
|
+
function StringQualifier(value) {
|
|
638
|
+
this.z54_1 = value;
|
|
639
|
+
}
|
|
640
|
+
protoOf(StringQualifier).u = function () {
|
|
641
|
+
return this.z54_1;
|
|
642
|
+
};
|
|
643
|
+
protoOf(StringQualifier).toString = function () {
|
|
644
|
+
return this.z54_1;
|
|
645
|
+
};
|
|
646
|
+
protoOf(StringQualifier).hashCode = function () {
|
|
647
|
+
return getStringHashCode(this.z54_1);
|
|
648
|
+
};
|
|
649
|
+
protoOf(StringQualifier).equals = function (other) {
|
|
650
|
+
if (this === other)
|
|
651
|
+
return true;
|
|
652
|
+
if (!(other instanceof StringQualifier))
|
|
653
|
+
return false;
|
|
654
|
+
var tmp0_other_with_cast = other instanceof StringQualifier ? other : THROW_CCE();
|
|
655
|
+
if (!(this.z54_1 === tmp0_other_with_cast.z54_1))
|
|
656
|
+
return false;
|
|
657
|
+
return true;
|
|
658
|
+
};
|
|
659
|
+
function addAllEagerInstances($this, module_0) {
|
|
660
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
661
|
+
var tmp0_iterator = module_0.n54_1.j();
|
|
662
|
+
while (tmp0_iterator.k()) {
|
|
663
|
+
var element = tmp0_iterator.l();
|
|
664
|
+
// Inline function 'org.koin.core.registry.InstanceRegistry.addAllEagerInstances.<anonymous>' call
|
|
665
|
+
// Inline function 'kotlin.collections.set' call
|
|
666
|
+
var this_0 = $this.k52_1;
|
|
667
|
+
var key = element.y53_1.hashCode();
|
|
668
|
+
this_0.i2(key, element);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function loadModule($this, module_0, allowOverride) {
|
|
672
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
673
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
674
|
+
var tmp0_iterator = module_0.o54_1.s().j();
|
|
675
|
+
while (tmp0_iterator.k()) {
|
|
676
|
+
var element = tmp0_iterator.l();
|
|
677
|
+
// Inline function 'org.koin.core.registry.InstanceRegistry.loadModule.<anonymous>' call
|
|
678
|
+
// Inline function 'kotlin.collections.component1' call
|
|
679
|
+
var mapping = element.t();
|
|
680
|
+
// Inline function 'kotlin.collections.component2' call
|
|
681
|
+
var factory = element.u();
|
|
682
|
+
$this.a55(allowOverride, mapping, factory);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
function createEagerInstances($this, instances) {
|
|
686
|
+
var defaultContext = new InstanceContext($this.i52_1.g52_1, $this.i52_1.c52_1.p52_1);
|
|
687
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
688
|
+
var tmp0_iterator = instances.j();
|
|
689
|
+
while (tmp0_iterator.k()) {
|
|
690
|
+
var element = tmp0_iterator.l();
|
|
691
|
+
// Inline function 'org.koin.core.registry.InstanceRegistry.createEagerInstances.<anonymous>' call
|
|
692
|
+
element.z53(defaultContext);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
function InstanceRegistry(_koin) {
|
|
696
|
+
this.i52_1 = _koin;
|
|
697
|
+
this.j52_1 = KoinPlatformTools_instance.b55();
|
|
698
|
+
var tmp = this;
|
|
699
|
+
// Inline function 'kotlin.collections.hashMapOf' call
|
|
700
|
+
tmp.k52_1 = HashMap_init_$Create$();
|
|
701
|
+
}
|
|
702
|
+
protoOf(InstanceRegistry).l52 = function (modules, allowOverride) {
|
|
703
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
704
|
+
var tmp0_iterator = modules.j();
|
|
705
|
+
while (tmp0_iterator.k()) {
|
|
706
|
+
var element = tmp0_iterator.l();
|
|
707
|
+
// Inline function 'org.koin.core.registry.InstanceRegistry.loadModules.<anonymous>' call
|
|
708
|
+
loadModule(this, element, allowOverride);
|
|
709
|
+
addAllEagerInstances(this, element);
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
protoOf(InstanceRegistry).v52 = function () {
|
|
713
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
714
|
+
var this_0 = this.k52_1.h2();
|
|
715
|
+
var tmp$ret$0 = copyToArray(this_0);
|
|
716
|
+
var instances = arrayListOf(tmp$ret$0.slice());
|
|
717
|
+
this.k52_1.z1();
|
|
718
|
+
createEagerInstances(this, instances);
|
|
719
|
+
};
|
|
720
|
+
protoOf(InstanceRegistry).c55 = function (allowOverride, mapping, factory, logWarning) {
|
|
721
|
+
if (this.j52_1.d2(mapping)) {
|
|
722
|
+
if (!allowOverride) {
|
|
723
|
+
overrideError(factory, mapping);
|
|
724
|
+
} else {
|
|
725
|
+
if (logWarning) {
|
|
726
|
+
this.i52_1.g52_1.i54("(+) override index '" + mapping + "' -> '" + factory.y53_1.toString() + "'");
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
this.i52_1.g52_1.t52("(+) index '" + mapping + "' -> '" + factory.y53_1.toString() + "'");
|
|
731
|
+
// Inline function 'kotlin.collections.set' call
|
|
732
|
+
this.j52_1.i2(mapping, factory);
|
|
733
|
+
};
|
|
734
|
+
protoOf(InstanceRegistry).a55 = function (allowOverride, mapping, factory, logWarning, $super) {
|
|
735
|
+
logWarning = logWarning === VOID ? true : logWarning;
|
|
736
|
+
var tmp;
|
|
737
|
+
if ($super === VOID) {
|
|
738
|
+
this.c55(allowOverride, mapping, factory, logWarning);
|
|
739
|
+
tmp = Unit_instance;
|
|
740
|
+
} else {
|
|
741
|
+
tmp = $super.c55.call(this, allowOverride, mapping, factory, logWarning);
|
|
742
|
+
}
|
|
743
|
+
return tmp;
|
|
744
|
+
};
|
|
745
|
+
protoOf(InstanceRegistry).d55 = function (clazz, qualifier, scopeQualifier) {
|
|
746
|
+
var indexKey_0 = indexKey(clazz, qualifier, scopeQualifier);
|
|
747
|
+
return this.j52_1.f2(indexKey_0);
|
|
748
|
+
};
|
|
749
|
+
protoOf(InstanceRegistry).e55 = function (qualifier, clazz, scopeQualifier, instanceContext) {
|
|
750
|
+
var tmp12_safe_receiver = this.d55(clazz, qualifier, scopeQualifier);
|
|
751
|
+
var tmp = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.z53(instanceContext);
|
|
752
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : null;
|
|
753
|
+
};
|
|
754
|
+
protoOf(InstanceRegistry).a53 = function () {
|
|
755
|
+
return this.j52_1.m();
|
|
756
|
+
};
|
|
757
|
+
function PropertyRegistry(_koin) {
|
|
758
|
+
this.f55_1 = _koin;
|
|
759
|
+
this.g55_1 = KoinPlatformTools_instance.b55();
|
|
760
|
+
}
|
|
761
|
+
function loadModule_0($this, module_0) {
|
|
762
|
+
$this.n52_1.n(module_0.p54_1);
|
|
763
|
+
}
|
|
764
|
+
function Companion_1() {
|
|
765
|
+
Companion_instance_1 = this;
|
|
766
|
+
this.n53_1 = '_root_';
|
|
767
|
+
this.o53_1 = _q('_root_');
|
|
768
|
+
}
|
|
769
|
+
var Companion_instance_1;
|
|
770
|
+
function Companion_getInstance_1() {
|
|
771
|
+
if (Companion_instance_1 == null)
|
|
772
|
+
new Companion_1();
|
|
773
|
+
return Companion_instance_1;
|
|
774
|
+
}
|
|
775
|
+
function ScopeRegistry(_koin) {
|
|
776
|
+
Companion_getInstance_1();
|
|
777
|
+
this.m52_1 = _koin;
|
|
778
|
+
this.n52_1 = HashSet_init_$Create$();
|
|
779
|
+
this.o52_1 = KoinPlatformTools_instance.b55();
|
|
780
|
+
this.p52_1 = new Scope(Companion_getInstance_1().o53_1, '_root_', true, this.m52_1);
|
|
781
|
+
this.n52_1.e(this.p52_1.h55_1);
|
|
782
|
+
// Inline function 'kotlin.collections.set' call
|
|
783
|
+
var this_0 = this.o52_1;
|
|
784
|
+
var key = this.p52_1.i55_1;
|
|
785
|
+
var value = this.p52_1;
|
|
786
|
+
this_0.i2(key, value);
|
|
787
|
+
}
|
|
788
|
+
protoOf(ScopeRegistry).q52 = function (modules) {
|
|
789
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
790
|
+
var tmp0_iterator = modules.j();
|
|
791
|
+
while (tmp0_iterator.k()) {
|
|
792
|
+
var element = tmp0_iterator.l();
|
|
793
|
+
// Inline function 'org.koin.core.registry.ScopeRegistry.loadScopes.<anonymous>' call
|
|
794
|
+
loadModule_0(this, element);
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
function resolveInstance($this, qualifier, clazz, parameterDef) {
|
|
798
|
+
if ($this.p55_1) {
|
|
799
|
+
throw new ClosedScopeException("Scope '" + $this.i55_1 + "' is closed");
|
|
800
|
+
}
|
|
801
|
+
var parameters = parameterDef == null ? null : parameterDef();
|
|
802
|
+
var localDeque = null;
|
|
803
|
+
if (!(parameters == null)) {
|
|
804
|
+
var tmp = $this.k55_1.g52_1;
|
|
805
|
+
var tmp_0 = Level_DEBUG_getInstance();
|
|
806
|
+
tmp.k54(tmp_0, Scope$resolveInstance$lambda(parameters));
|
|
807
|
+
var tmp0_elvis_lhs = $this.o55_1.ht();
|
|
808
|
+
var tmp_1;
|
|
809
|
+
if (tmp0_elvis_lhs == null) {
|
|
810
|
+
// Inline function 'kotlin.also' call
|
|
811
|
+
var this_0 = ArrayDeque_init_$Create$_0();
|
|
812
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
813
|
+
$this.o55_1.p51(this_0);
|
|
814
|
+
tmp_1 = this_0;
|
|
815
|
+
} else {
|
|
816
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
817
|
+
}
|
|
818
|
+
localDeque = tmp_1;
|
|
819
|
+
localDeque.df(parameters);
|
|
820
|
+
}
|
|
821
|
+
var instanceContext = new InstanceContext($this.k55_1.g52_1, $this, parameters);
|
|
822
|
+
var value = resolveValue($this, qualifier, clazz, instanceContext, parameterDef);
|
|
823
|
+
if (!(localDeque == null)) {
|
|
824
|
+
$this.k55_1.g52_1.t52('| << parameters');
|
|
825
|
+
localDeque.gf();
|
|
826
|
+
}
|
|
827
|
+
return value;
|
|
828
|
+
}
|
|
829
|
+
function resolveValue($this, qualifier, clazz, instanceContext, parameterDef) {
|
|
830
|
+
var tmp0_elvis_lhs = $this.k55_1.d52_1.e55(qualifier, clazz, $this.h55_1, instanceContext);
|
|
831
|
+
var tmp;
|
|
832
|
+
if (tmp0_elvis_lhs == null) {
|
|
833
|
+
// Inline function 'kotlin.run' call
|
|
834
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
835
|
+
// Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>' call
|
|
836
|
+
$this.k55_1.g52_1.t52("|- ? t:'" + getFullName(clazz) + "' - q:'" + toString(qualifier) + "' look in injected parameters");
|
|
837
|
+
var tmp18_safe_receiver = $this.o55_1.ht();
|
|
838
|
+
var tmp19_safe_receiver = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.cf();
|
|
839
|
+
tmp = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.y54(clazz);
|
|
840
|
+
} else {
|
|
841
|
+
tmp = tmp0_elvis_lhs;
|
|
842
|
+
}
|
|
843
|
+
var tmp1_elvis_lhs = tmp;
|
|
844
|
+
var tmp_0;
|
|
845
|
+
if (tmp1_elvis_lhs == null) {
|
|
846
|
+
// Inline function 'kotlin.run' call
|
|
847
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
848
|
+
// Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>' call
|
|
849
|
+
var tmp_1;
|
|
850
|
+
if (!$this.j55_1) {
|
|
851
|
+
$this.k55_1.g52_1.t52("|- ? t:'" + getFullName(clazz) + "' - q:'" + toString(qualifier) + "' look at scope source");
|
|
852
|
+
var tmp20_safe_receiver = $this.m55_1;
|
|
853
|
+
var tmp_2;
|
|
854
|
+
if (tmp20_safe_receiver == null) {
|
|
855
|
+
tmp_2 = null;
|
|
856
|
+
} else {
|
|
857
|
+
// Inline function 'kotlin.let' call
|
|
858
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
859
|
+
// Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>.<anonymous>' call
|
|
860
|
+
var tmp_3;
|
|
861
|
+
if (clazz.ta(tmp20_safe_receiver) && qualifier == null) {
|
|
862
|
+
var tmp_4 = $this.m55_1;
|
|
863
|
+
tmp_3 = (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null;
|
|
864
|
+
} else {
|
|
865
|
+
tmp_3 = null;
|
|
866
|
+
}
|
|
867
|
+
tmp_2 = tmp_3;
|
|
868
|
+
}
|
|
869
|
+
tmp_1 = tmp_2;
|
|
870
|
+
} else {
|
|
871
|
+
tmp_1 = null;
|
|
872
|
+
}
|
|
873
|
+
tmp_0 = tmp_1;
|
|
874
|
+
} else {
|
|
875
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
876
|
+
}
|
|
877
|
+
var tmp2_elvis_lhs = tmp_0;
|
|
878
|
+
var tmp_5;
|
|
879
|
+
if (tmp2_elvis_lhs == null) {
|
|
880
|
+
// Inline function 'kotlin.run' call
|
|
881
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
882
|
+
// Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>' call
|
|
883
|
+
$this.k55_1.g52_1.t52("|- ? t:'" + getFullName(clazz) + "' - q:'" + toString(qualifier) + "' look in other scopes");
|
|
884
|
+
tmp_5 = findInOtherScope($this, clazz, qualifier, parameterDef);
|
|
885
|
+
} else {
|
|
886
|
+
tmp_5 = tmp2_elvis_lhs;
|
|
887
|
+
}
|
|
888
|
+
var tmp3_elvis_lhs = tmp_5;
|
|
889
|
+
var tmp_6;
|
|
890
|
+
if (tmp3_elvis_lhs == null) {
|
|
891
|
+
var tmp$ret$8;
|
|
892
|
+
// Inline function 'kotlin.run' call
|
|
893
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
894
|
+
if (!(parameterDef == null)) {
|
|
895
|
+
$this.o55_1.m4();
|
|
896
|
+
$this.k55_1.g52_1.t52('|- << parameters');
|
|
897
|
+
}
|
|
898
|
+
throwDefinitionNotFound($this, qualifier, clazz);
|
|
899
|
+
tmp_6 = tmp$ret$8;
|
|
900
|
+
} else {
|
|
901
|
+
tmp_6 = tmp3_elvis_lhs;
|
|
902
|
+
}
|
|
903
|
+
return tmp_6;
|
|
904
|
+
}
|
|
905
|
+
function findInOtherScope($this, clazz, qualifier, parameters) {
|
|
906
|
+
var instance = null;
|
|
907
|
+
var _iterator__ex2g4s = $this.l55_1.j();
|
|
908
|
+
$l$loop: while (_iterator__ex2g4s.k()) {
|
|
909
|
+
var scope = _iterator__ex2g4s.l();
|
|
910
|
+
instance = scope.q55(clazz, qualifier, parameters);
|
|
911
|
+
if (!(instance == null))
|
|
912
|
+
break $l$loop;
|
|
913
|
+
}
|
|
914
|
+
return instance;
|
|
915
|
+
}
|
|
916
|
+
function throwDefinitionNotFound($this, qualifier, clazz) {
|
|
917
|
+
var tmp;
|
|
918
|
+
if (qualifier == null) {
|
|
919
|
+
tmp = null;
|
|
920
|
+
} else {
|
|
921
|
+
// Inline function 'kotlin.let' call
|
|
922
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
923
|
+
// Inline function 'org.koin.core.scope.Scope.throwDefinitionNotFound.<anonymous>' call
|
|
924
|
+
tmp = " and qualifier '" + toString(qualifier) + "'";
|
|
925
|
+
}
|
|
926
|
+
var tmp0_elvis_lhs = tmp;
|
|
927
|
+
var qualifierString = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
928
|
+
throw new NoDefinitionFoundException("No definition found for type '" + getFullName(clazz) + "'" + qualifierString + '. Check your Modules configuration and add missing type and/or qualifier!');
|
|
929
|
+
}
|
|
930
|
+
function Scope$resolveInstance$lambda($parameters) {
|
|
931
|
+
return function () {
|
|
932
|
+
return '| >> parameters ' + toString($parameters) + ' ';
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
function Scope(scopeQualifier, id, isRoot, _koin) {
|
|
936
|
+
isRoot = isRoot === VOID ? false : isRoot;
|
|
937
|
+
this.h55_1 = scopeQualifier;
|
|
938
|
+
this.i55_1 = id;
|
|
939
|
+
this.j55_1 = isRoot;
|
|
940
|
+
this.k55_1 = _koin;
|
|
941
|
+
var tmp = this;
|
|
942
|
+
// Inline function 'kotlin.collections.arrayListOf' call
|
|
943
|
+
tmp.l55_1 = ArrayList_init_$Create$();
|
|
944
|
+
this.m55_1 = null;
|
|
945
|
+
var tmp_0 = this;
|
|
946
|
+
// Inline function 'kotlin.collections.arrayListOf' call
|
|
947
|
+
tmp_0.n55_1 = ArrayList_init_$Create$();
|
|
948
|
+
this.o55_1 = new ThreadLocalRef();
|
|
949
|
+
this.p55_1 = false;
|
|
950
|
+
}
|
|
951
|
+
protoOf(Scope).q55 = function (clazz, qualifier, parameters) {
|
|
952
|
+
var tmp;
|
|
953
|
+
try {
|
|
954
|
+
tmp = this.r55(clazz, qualifier, parameters);
|
|
955
|
+
} catch ($p) {
|
|
956
|
+
var tmp_0;
|
|
957
|
+
if ($p instanceof ClosedScopeException) {
|
|
958
|
+
var e = $p;
|
|
959
|
+
this.k55_1.g52_1.t52('* Scope closed - no instance found for ' + getFullName(clazz) + ' on scope ' + this.toString());
|
|
960
|
+
tmp_0 = null;
|
|
961
|
+
} else {
|
|
962
|
+
if ($p instanceof NoDefinitionFoundException) {
|
|
963
|
+
var e_0 = $p;
|
|
964
|
+
this.k55_1.g52_1.t52("* No instance found for type '" + getFullName(clazz) + "' on scope '" + this.toString() + "'");
|
|
965
|
+
tmp_0 = null;
|
|
966
|
+
} else {
|
|
967
|
+
throw $p;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
tmp = tmp_0;
|
|
971
|
+
}
|
|
972
|
+
return tmp;
|
|
973
|
+
};
|
|
974
|
+
protoOf(Scope).r55 = function (clazz, qualifier, parameters) {
|
|
975
|
+
var tmp;
|
|
976
|
+
if (this.k55_1.g52_1.c53(Level_DEBUG_getInstance())) {
|
|
977
|
+
var tmp_0;
|
|
978
|
+
if (qualifier == null) {
|
|
979
|
+
tmp_0 = null;
|
|
980
|
+
} else {
|
|
981
|
+
// Inline function 'kotlin.let' call
|
|
982
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
983
|
+
// Inline function 'org.koin.core.scope.Scope.get.<anonymous>' call
|
|
984
|
+
tmp_0 = " with qualifier '" + toString(qualifier) + "'";
|
|
985
|
+
}
|
|
986
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
987
|
+
var qualifierString = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
988
|
+
var scopeId = this.j55_1 ? '' : "- scope:'" + this.i55_1;
|
|
989
|
+
this.k55_1.g52_1.b53(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "'" + qualifierString + ' ' + scopeId + '...');
|
|
990
|
+
var start = KoinPlatformTimeTools_instance.u52();
|
|
991
|
+
var instance = resolveInstance(this, qualifier, clazz, parameters);
|
|
992
|
+
var stop = KoinPlatformTimeTools_instance.u52();
|
|
993
|
+
// Inline function 'kotlin.Long.div' call
|
|
994
|
+
var duration = stop.v2(start).l3() / 1000000.0;
|
|
995
|
+
this.k55_1.g52_1.b53(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "' in " + duration + ' ms');
|
|
996
|
+
tmp = instance;
|
|
997
|
+
} else {
|
|
998
|
+
tmp = resolveInstance(this, qualifier, clazz, parameters);
|
|
999
|
+
}
|
|
1000
|
+
return tmp;
|
|
1001
|
+
};
|
|
1002
|
+
protoOf(Scope).toString = function () {
|
|
1003
|
+
return "['" + this.i55_1 + "']";
|
|
1004
|
+
};
|
|
1005
|
+
function module_0(createdAtStart, moduleDeclaration) {
|
|
1006
|
+
createdAtStart = createdAtStart === VOID ? false : createdAtStart;
|
|
1007
|
+
var module_0 = new Module(createdAtStart);
|
|
1008
|
+
moduleDeclaration(module_0);
|
|
1009
|
+
return module_0;
|
|
1010
|
+
}
|
|
1011
|
+
function get_classNames() {
|
|
1012
|
+
_init_properties_KClassExt_kt__5ro5b2();
|
|
1013
|
+
return classNames;
|
|
1014
|
+
}
|
|
1015
|
+
var classNames;
|
|
1016
|
+
function getFullName(_this__u8e3s4) {
|
|
1017
|
+
_init_properties_KClassExt_kt__5ro5b2();
|
|
1018
|
+
var tmp0_elvis_lhs = get_classNames().f2(_this__u8e3s4);
|
|
1019
|
+
return tmp0_elvis_lhs == null ? saveCache(_this__u8e3s4) : tmp0_elvis_lhs;
|
|
1020
|
+
}
|
|
1021
|
+
function saveCache(_this__u8e3s4) {
|
|
1022
|
+
_init_properties_KClassExt_kt__5ro5b2();
|
|
1023
|
+
var name = KoinPlatformTools_instance.s55(_this__u8e3s4);
|
|
1024
|
+
// Inline function 'kotlin.collections.set' call
|
|
1025
|
+
get_classNames().i2(_this__u8e3s4, name);
|
|
1026
|
+
return name;
|
|
1027
|
+
}
|
|
1028
|
+
var properties_initialized_KClassExt_kt_dizwhw;
|
|
1029
|
+
function _init_properties_KClassExt_kt__5ro5b2() {
|
|
1030
|
+
if (!properties_initialized_KClassExt_kt_dizwhw) {
|
|
1031
|
+
properties_initialized_KClassExt_kt_dizwhw = true;
|
|
1032
|
+
classNames = KoinPlatformTools_instance.b55();
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
function KoinPlatform() {
|
|
1036
|
+
}
|
|
1037
|
+
protoOf(KoinPlatform).t55 = function () {
|
|
1038
|
+
return KoinPlatformTools_instance.d53().ht();
|
|
1039
|
+
};
|
|
1040
|
+
var KoinPlatform_instance;
|
|
1041
|
+
function KoinPlatform_getInstance() {
|
|
1042
|
+
return KoinPlatform_instance;
|
|
1043
|
+
}
|
|
1044
|
+
function getKClassDefaultName(_this__u8e3s4, kClass) {
|
|
1045
|
+
return 'KClass@' + kClass.hashCode();
|
|
1046
|
+
}
|
|
1047
|
+
function generateId(_this__u8e3s4) {
|
|
1048
|
+
return uuid4().toString();
|
|
1049
|
+
}
|
|
1050
|
+
function register($this, koinApplication) {
|
|
1051
|
+
if (!($this.u55_1 == null)) {
|
|
1052
|
+
throw new KoinApplicationAlreadyStartedException('A Koin Application has already been started');
|
|
1053
|
+
}
|
|
1054
|
+
$this.u55_1 = koinApplication.w52_1;
|
|
1055
|
+
}
|
|
1056
|
+
function GlobalContext() {
|
|
1057
|
+
this.u55_1 = null;
|
|
1058
|
+
}
|
|
1059
|
+
protoOf(GlobalContext).ht = function () {
|
|
1060
|
+
var tmp0_elvis_lhs = this.u55_1;
|
|
1061
|
+
var tmp;
|
|
1062
|
+
if (tmp0_elvis_lhs == null) {
|
|
1063
|
+
var message = 'KoinApplication has not been started';
|
|
1064
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1065
|
+
} else {
|
|
1066
|
+
tmp = tmp0_elvis_lhs;
|
|
1067
|
+
}
|
|
1068
|
+
return tmp;
|
|
1069
|
+
};
|
|
1070
|
+
protoOf(GlobalContext).e53 = function (appDeclaration) {
|
|
1071
|
+
var koinApplication = Companion_instance.y52();
|
|
1072
|
+
register(this, koinApplication);
|
|
1073
|
+
appDeclaration(koinApplication);
|
|
1074
|
+
return koinApplication;
|
|
1075
|
+
};
|
|
1076
|
+
var GlobalContext_instance;
|
|
1077
|
+
function GlobalContext_getInstance() {
|
|
1078
|
+
return GlobalContext_instance;
|
|
1079
|
+
}
|
|
1080
|
+
function KoinPlatformTimeTools() {
|
|
1081
|
+
}
|
|
1082
|
+
protoOf(KoinPlatformTimeTools).u52 = function () {
|
|
1083
|
+
return _Duration___get_inWholeNanoseconds__impl__r5x4mr(ValueTimeMark__elapsedNow_impl_eonqvs(Monotonic_instance.yd()));
|
|
1084
|
+
};
|
|
1085
|
+
var KoinPlatformTimeTools_instance;
|
|
1086
|
+
function KoinPlatformTimeTools_getInstance() {
|
|
1087
|
+
return KoinPlatformTimeTools_instance;
|
|
1088
|
+
}
|
|
1089
|
+
function KoinPlatformTools() {
|
|
1090
|
+
}
|
|
1091
|
+
protoOf(KoinPlatformTools).b54 = function (e) {
|
|
1092
|
+
return e.toString() + toString_0(split(Exception_init_$Create$().toString(), ['\n']));
|
|
1093
|
+
};
|
|
1094
|
+
protoOf(KoinPlatformTools).s55 = function (kClass) {
|
|
1095
|
+
var tmp0_elvis_lhs = kClass.sa();
|
|
1096
|
+
return tmp0_elvis_lhs == null ? getKClassDefaultName(this, kClass) : tmp0_elvis_lhs;
|
|
1097
|
+
};
|
|
1098
|
+
protoOf(KoinPlatformTools).d53 = function () {
|
|
1099
|
+
return GlobalContext_instance;
|
|
1100
|
+
};
|
|
1101
|
+
protoOf(KoinPlatformTools).g54 = function (lock, block) {
|
|
1102
|
+
return block();
|
|
1103
|
+
};
|
|
1104
|
+
protoOf(KoinPlatformTools).b55 = function () {
|
|
1105
|
+
return ConcurrentMutableMap_init_$Create$();
|
|
1106
|
+
};
|
|
1107
|
+
var KoinPlatformTools_instance;
|
|
1108
|
+
function KoinPlatformTools_getInstance() {
|
|
1109
|
+
return KoinPlatformTools_instance;
|
|
1110
|
+
}
|
|
1111
|
+
//region block: init
|
|
1112
|
+
Companion_instance = new Companion();
|
|
1113
|
+
Companion_instance_0 = new Companion_0();
|
|
1114
|
+
KoinPlatform_instance = new KoinPlatform();
|
|
1115
|
+
GlobalContext_instance = new GlobalContext();
|
|
1116
|
+
KoinPlatformTimeTools_instance = new KoinPlatformTimeTools();
|
|
1117
|
+
KoinPlatformTools_instance = new KoinPlatformTools();
|
|
1118
|
+
//endregion
|
|
1119
|
+
//region block: exports
|
|
1120
|
+
_.$_$ = _.$_$ || {};
|
|
1121
|
+
_.$_$.a = Kind_Singleton_getInstance;
|
|
1122
|
+
_.$_$.b = Companion_getInstance_1;
|
|
1123
|
+
_.$_$.c = KoinPlatform_instance;
|
|
1124
|
+
_.$_$.d = startKoin;
|
|
1125
|
+
_.$_$.e = BeanDefinition;
|
|
1126
|
+
_.$_$.f = KoinDefinition;
|
|
1127
|
+
_.$_$.g = SingleInstanceFactory;
|
|
1128
|
+
_.$_$.h = named;
|
|
1129
|
+
_.$_$.i = module_0;
|
|
1130
|
+
//endregion
|
|
1131
|
+
return _;
|
|
1132
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Stately-stately-concurrency.js'), require('./uuid.js'), require('./Stately-stately-concurrent-collections.js')));
|
|
1133
|
+
|
|
1134
|
+
//# sourceMappingURL=projects-core-koin-core.js.map
|