client_plugin_logic_deb 1.4.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/88b0986a7186d029-atomicfu-js-ir.js +279 -0
  2. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -0
  3. package/Kodein-kodein-di.js +2572 -0
  4. package/Kodein-kodein-di.js.map +1 -0
  5. package/KosiTypeSystem-kaverit.js +374 -0
  6. package/KosiTypeSystem-kaverit.js.map +1 -0
  7. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +404 -0
  8. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -0
  9. package/Logic_Debertz-client_plugin.d.ts +901 -0
  10. package/Logic_Debertz-client_plugin.js +142 -0
  11. package/Logic_Debertz-client_plugin.js.map +1 -0
  12. package/Logic_Debertz-core.js +5874 -0
  13. package/Logic_Debertz-core.js.map +1 -0
  14. package/Logic_Debertz-engine.js +41313 -0
  15. package/Logic_Debertz-engine.js.map +1 -0
  16. package/Logic_Debertz-game_client.js +14761 -0
  17. package/Logic_Debertz-game_client.js.map +1 -0
  18. package/Logic_Debertz-game_server.js +5322 -0
  19. package/Logic_Debertz-game_server.js.map +1 -0
  20. package/kotlin-kotlin-stdlib-js-ir.js +14202 -0
  21. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
  22. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +15 -0
  23. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -0
  24. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +6581 -0
  25. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -0
  26. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +5070 -0
  27. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -0
  28. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +12066 -0
  29. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -0
  30. package/package.json +9 -0
  31. package/uuid-js-ir.js +192 -0
  32. package/uuid-js-ir.js.map +1 -0
@@ -0,0 +1,2572 @@
1
+ (function (root, factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './KosiTypeSystem-kaverit.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./KosiTypeSystem-kaverit.js'));
6
+ else {
7
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
+ throw new Error("Error loading module 'Kodein-kodein-di'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'Kodein-kodein-di'.");
9
+ }
10
+ if (typeof this['KosiTypeSystem-kaverit'] === 'undefined') {
11
+ throw new Error("Error loading module 'Kodein-kodein-di'. Its dependency 'KosiTypeSystem-kaverit' was not found. Please, check whether 'KosiTypeSystem-kaverit' is loaded prior to 'Kodein-kodein-di'.");
12
+ }
13
+ root['Kodein-kodein-di'] = factory(typeof this['Kodein-kodein-di'] === 'undefined' ? {} : this['Kodein-kodein-di'], this['kotlin-kotlin-stdlib-js-ir'], this['KosiTypeSystem-kaverit']);
14
+ }
15
+ }(this, function (_, kotlin_kotlin, kotlin_org_kodein_type_kaverit) {
16
+ 'use strict';
17
+ //region block: imports
18
+ var imul = Math.imul;
19
+ var protoOf = kotlin_kotlin.$_$.ga;
20
+ var classMeta = kotlin_kotlin.$_$.d9;
21
+ var VOID = kotlin_kotlin.$_$.ae;
22
+ var setMetadataFor = kotlin_kotlin.$_$.ha;
23
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
24
+ var first = kotlin_kotlin.$_$.g6;
25
+ var Unit_getInstance = kotlin_kotlin.$_$.q4;
26
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
27
+ var filterNotNull = kotlin_kotlin.$_$.e6;
28
+ var sorted = kotlin_kotlin.$_$.p7;
29
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
30
+ var repeat = kotlin_kotlin.$_$.lb;
31
+ var ensureNotNull = kotlin_kotlin.$_$.nd;
32
+ var KProperty1 = kotlin_kotlin.$_$.va;
33
+ var getPropertyCallableRef = kotlin_kotlin.$_$.j9;
34
+ var toString = kotlin_kotlin.$_$.yd;
35
+ var Companion_getInstance = kotlin_org_kodein_type_kaverit.$_$.a;
36
+ var equals = kotlin_kotlin.$_$.g9;
37
+ var objectCreate = kotlin_kotlin.$_$.ea;
38
+ var RuntimeException = kotlin_kotlin.$_$.vc;
39
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.t1;
40
+ var captureStack = kotlin_kotlin.$_$.y8;
41
+ var hashCode = kotlin_kotlin.$_$.l9;
42
+ var THROW_CCE = kotlin_kotlin.$_$.wc;
43
+ var interfaceMeta = kotlin_kotlin.$_$.m9;
44
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n1;
45
+ var getStringHashCode = kotlin_kotlin.$_$.k9;
46
+ var objectMeta = kotlin_kotlin.$_$.fa;
47
+ var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
48
+ var isInterface = kotlin_kotlin.$_$.u9;
49
+ var joinToString = kotlin_kotlin.$_$.p6;
50
+ var erasedOf = kotlin_org_kodein_type_kaverit.$_$.c;
51
+ var isObject = kotlin_kotlin.$_$.w9;
52
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
53
+ var toString_0 = kotlin_kotlin.$_$.la;
54
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
55
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.o;
56
+ var charSequenceLength = kotlin_kotlin.$_$.b9;
57
+ var Enum = kotlin_kotlin.$_$.lc;
58
+ var Map = kotlin_kotlin.$_$.z4;
59
+ var listOf = kotlin_kotlin.$_$.w6;
60
+ var plus = kotlin_kotlin.$_$.g7;
61
+ var emptyList = kotlin_kotlin.$_$.b6;
62
+ var plus_0 = kotlin_kotlin.$_$.h7;
63
+ var checkIndexOverflow = kotlin_kotlin.$_$.i5;
64
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d2;
65
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.j5;
66
+ var mapCapacity = kotlin_kotlin.$_$.y6;
67
+ var coerceAtLeast = kotlin_kotlin.$_$.na;
68
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.t;
69
+ var to = kotlin_kotlin.$_$.zd;
70
+ var KProperty0 = kotlin_kotlin.$_$.ua;
71
+ var KMutableProperty0 = kotlin_kotlin.$_$.ta;
72
+ var lazy = kotlin_kotlin.$_$.sd;
73
+ var asSequence = kotlin_kotlin.$_$.g5;
74
+ var filter = kotlin_kotlin.$_$.xa;
75
+ var flatMap = kotlin_kotlin.$_$.za;
76
+ var mapNotNull = kotlin_kotlin.$_$.ab;
77
+ var map = kotlin_kotlin.$_$.bb;
78
+ var toList = kotlin_kotlin.$_$.cb;
79
+ var Triple = kotlin_kotlin.$_$.yc;
80
+ var ArrayList_init_$Create$_1 = kotlin_kotlin.$_$.m;
81
+ var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.p;
82
+ var Collection = kotlin_kotlin.$_$.s4;
83
+ var addAll = kotlin_kotlin.$_$.e5;
84
+ var getOrNull = kotlin_kotlin.$_$.j6;
85
+ //endregion
86
+ //region block: pre-declaration
87
+ setMetadataFor(DIDefining, 'DIDefining', classMeta);
88
+ setMetadataFor(DIDefinition, 'DIDefinition', classMeta, DIDefining);
89
+ setMetadataFor(DependencyLoopException, 'DependencyLoopException', classMeta, RuntimeException);
90
+ setMetadataFor(NotFoundException, 'NotFoundException', classMeta, RuntimeException);
91
+ setMetadataFor(OverridingException, 'OverridingException', classMeta, RuntimeException);
92
+ setMetadataFor(Key, 'Key', classMeta);
93
+ function import$default(module_0, allowOverride, $super) {
94
+ allowOverride = allowOverride === VOID ? false : allowOverride;
95
+ var tmp;
96
+ if ($super === VOID) {
97
+ this.q28(module_0, allowOverride);
98
+ tmp = Unit_getInstance();
99
+ } else {
100
+ tmp = $super.q28.call(this, module_0, allowOverride);
101
+ }
102
+ return tmp;
103
+ }
104
+ setMetadataFor(Builder, 'Builder', interfaceMeta);
105
+ setMetadataFor(Module, 'Module', classMeta);
106
+ setMetadataFor(Companion, 'Companion', objectMeta);
107
+ function get_diContext() {
108
+ return get_AnyDIContext();
109
+ }
110
+ function get_diTrigger() {
111
+ return null;
112
+ }
113
+ setMetadataFor(DIAware, 'DIAware', interfaceMeta);
114
+ function get_di() {
115
+ return this;
116
+ }
117
+ setMetadataFor(DI, 'DI', interfaceMeta, VOID, [DIAware]);
118
+ setMetadataFor(DIContext, 'DIContext', interfaceMeta);
119
+ setMetadataFor(Value, 'Value', classMeta, VOID, [DIContext]);
120
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
121
+ setMetadataFor(Contexes, 'Contexes', objectMeta);
122
+ setMetadataFor(DIWrapper, 'DIWrapper', classMeta, VOID, [DI]);
123
+ function factory$default(key, context, overrideLevel, $super) {
124
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
125
+ return $super === VOID ? this.j29(key, context, overrideLevel) : $super.j29.call(this, key, context, overrideLevel);
126
+ }
127
+ function provider(key, context, overrideLevel) {
128
+ var tmp$ret$0;
129
+ // Inline function 'org.kodein.di.toProvider' call
130
+ var tmp0_toProvider = this.k29(key, context);
131
+ tmp$ret$0 = DIContainer$provider$lambda(tmp0_toProvider);
132
+ return tmp$ret$0;
133
+ }
134
+ function provider$default(key, context, overrideLevel, $super) {
135
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
136
+ return $super === VOID ? this.l29(key, context, overrideLevel) : provider(key, context, overrideLevel);
137
+ }
138
+ setMetadataFor(DIContainer, 'DIContainer', interfaceMeta);
139
+ function find$default(key, overrideLevel, all, $super) {
140
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
141
+ all = all === VOID ? false : all;
142
+ return $super === VOID ? this.o29(key, overrideLevel, all) : $super.o29.call(this, key, overrideLevel, all);
143
+ }
144
+ setMetadataFor(DITree, 'DITree', interfaceMeta);
145
+ function get_di_0() {
146
+ return this.s29();
147
+ }
148
+ setMetadataFor(DirectDIBase, 'DirectDIBase', interfaceMeta);
149
+ setMetadataFor(NoDefinedTag, 'NoDefinedTag', objectMeta);
150
+ setMetadataFor(SearchSpecs, 'SearchSpecs', classMeta);
151
+ setMetadataFor(NoArgBindingDIWrap, 'NoArgBindingDIWrap', classMeta, VOID, [DirectDIBase]);
152
+ setMetadataFor(ErasedContext, 'ErasedContext', objectMeta, VOID, [DIContext]);
153
+ setMetadataFor(DIBinding$Copier$Companion$invoke$1, VOID, classMeta);
154
+ setMetadataFor(Companion_1, 'Companion', objectMeta);
155
+ function factoryFullName() {
156
+ return this.d2a();
157
+ }
158
+ function get_scope() {
159
+ return null;
160
+ }
161
+ function get_description() {
162
+ var arg = !equals(this.h2a(), Companion_getInstance().n27_1) ? this.h2a().c27() + ' -> ' : '';
163
+ var tmp;
164
+ var tmp_0 = this.f2a();
165
+ if (tmp_0 instanceof NoScope) {
166
+ tmp = null;
167
+ } else {
168
+ tmp = this.f2a();
169
+ }
170
+ var scope = tmp;
171
+ var tmp0_safe_receiver = scope;
172
+ var tmp_1;
173
+ if (tmp0_safe_receiver == null) {
174
+ tmp_1 = null;
175
+ } else {
176
+ var tmp$ret$1;
177
+ // Inline function 'kotlin.let' call
178
+ // Inline function 'kotlin.contracts.contract' call
179
+ var tmp$ret$0;
180
+ // Inline function 'org.kodein.di.bindings.DIBinding.<get-description>.<anonymous>' call
181
+ tmp$ret$0 = 'scoped(' + erasedOf(tmp0_safe_receiver).c27() + ').';
182
+ tmp$ret$1 = tmp$ret$0;
183
+ tmp_1 = tmp$ret$1;
184
+ }
185
+ var tmp1_elvis_lhs = tmp_1;
186
+ var context = tmp1_elvis_lhs == null ? !equals(this.g2a(), Companion_getInstance().o27_1) ? 'contexted<' + this.g2a().c27() + '>().' : '' : tmp1_elvis_lhs;
187
+ return context + this.d2a() + ' { ' + arg + this.i2a().c27() + ' }';
188
+ }
189
+ function get_fullDescription() {
190
+ var arg = !equals(this.h2a(), Companion_getInstance().n27_1) ? this.h2a().e27() + ' -> ' : '';
191
+ var tmp;
192
+ var tmp_0 = this.f2a();
193
+ if (tmp_0 instanceof NoScope) {
194
+ tmp = null;
195
+ } else {
196
+ tmp = this.f2a();
197
+ }
198
+ var scope = tmp;
199
+ var tmp0_safe_receiver = scope;
200
+ var tmp_1;
201
+ if (tmp0_safe_receiver == null) {
202
+ tmp_1 = null;
203
+ } else {
204
+ var tmp$ret$1;
205
+ // Inline function 'kotlin.let' call
206
+ // Inline function 'kotlin.contracts.contract' call
207
+ var tmp$ret$0;
208
+ // Inline function 'org.kodein.di.bindings.DIBinding.<get-fullDescription>.<anonymous>' call
209
+ tmp$ret$0 = 'scoped(' + erasedOf(tmp0_safe_receiver).e27() + ').';
210
+ tmp$ret$1 = tmp$ret$0;
211
+ tmp_1 = tmp$ret$1;
212
+ }
213
+ var tmp1_elvis_lhs = tmp_1;
214
+ var context = tmp1_elvis_lhs == null ? !equals(this.g2a(), Companion_getInstance().o27_1) ? 'contexted<' + this.g2a().e27() + '>().' : '' : tmp1_elvis_lhs;
215
+ return context + this.e2a() + ' { ' + arg + this.i2a().e27() + ' }';
216
+ }
217
+ function get_supportSubTypes() {
218
+ return false;
219
+ }
220
+ setMetadataFor(DIBinding, 'DIBinding', interfaceMeta);
221
+ function get_argType() {
222
+ return Companion_getInstance().n27_1;
223
+ }
224
+ setMetadataFor(NoArgDIBinding, 'NoArgDIBinding', interfaceMeta, VOID, [DIBinding]);
225
+ setMetadataFor(SingletonReference, 'SingletonReference', objectMeta);
226
+ setMetadataFor(Reference, 'Reference', classMeta);
227
+ setMetadataFor(ContextTranslator, 'ContextTranslator', interfaceMeta);
228
+ setMetadataFor(ScopeRegistry, 'ScopeRegistry', classMeta);
229
+ setMetadataFor(StandardScopeRegistry, 'StandardScopeRegistry', classMeta, ScopeRegistry);
230
+ setMetadataFor(NoScope, 'NoScope', classMeta);
231
+ setMetadataFor(CompositeContextTranslator, 'CompositeContextTranslator', classMeta, VOID, [ContextTranslator]);
232
+ setMetadataFor(Singleton, 'Singleton', classMeta, VOID, [NoArgDIBinding]);
233
+ setMetadataFor(Provider, 'Provider', classMeta, VOID, [NoArgDIBinding]);
234
+ setMetadataFor(ScopeKey, 'ScopeKey', classMeta);
235
+ setMetadataFor(DIBuilderImpl, 'DIBuilderImpl', classMeta, VOID, [Builder]);
236
+ setMetadataFor(DIMainBuilderImpl, 'DIMainBuilderImpl', classMeta, DIBuilderImpl, [DIBuilderImpl, Builder]);
237
+ setMetadataFor(TypeBinder, 'TypeBinder', classMeta);
238
+ setMetadataFor(OverrideMode, 'OverrideMode', classMeta, Enum);
239
+ setMetadataFor(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT, 'ALLOW_SILENT', classMeta, OverrideMode);
240
+ setMetadataFor(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT, 'ALLOW_EXPLICIT', classMeta, OverrideMode);
241
+ setMetadataFor(DIContainerBuilderImpl$OverrideMode$FORBID, 'FORBID', classMeta, OverrideMode);
242
+ setMetadataFor(Companion_2, 'Companion', objectMeta);
243
+ setMetadataFor(DIContainerBuilderImpl, 'DIContainerBuilderImpl', classMeta);
244
+ setMetadataFor(Node, 'Node', classMeta);
245
+ setMetadataFor(DIContainerImpl, 'DIContainerImpl', classMeta, VOID, [DIContainer]);
246
+ setMetadataFor(Companion_3, 'Companion', objectMeta);
247
+ setMetadataFor(DIImpl, 'DIImpl', classMeta, VOID, [DI]);
248
+ setMetadataFor(BindingDIImpl, 'BindingDIImpl', classMeta, VOID, [DirectDIBase]);
249
+ setMetadataFor(DITreeImpl, 'DITreeImpl', classMeta, VOID, [DITree]);
250
+ setMetadataFor(TypeChecker, 'TypeChecker', classMeta);
251
+ setMetadataFor(Down, 'Down', classMeta, TypeChecker);
252
+ setMetadataFor(Up, 'Up', classMeta, TypeChecker);
253
+ setMetadataFor(DirectDIBaseImpl, 'DirectDIBaseImpl', classMeta, VOID, [DirectDIBase]);
254
+ setMetadataFor(DIProperty, 'DIProperty', classMeta);
255
+ setMetadataFor(DirectDIImpl, 'DirectDIImpl', classMeta, DirectDIBaseImpl, [DirectDIBaseImpl, DirectDIBase]);
256
+ //endregion
257
+ function DIDefinition(binding, fromModule, tree) {
258
+ DIDefining.call(this, binding, fromModule);
259
+ this.v27_1 = tree;
260
+ }
261
+ function description(_this__u8e3s4, withOverrides, ident) {
262
+ withOverrides = withOverrides === VOID ? false : withOverrides;
263
+ ident = ident === VOID ? 8 : ident;
264
+ return descriptionImpl(_this__u8e3s4, withOverrides, ident, bindDescription$factory(), description$factory());
265
+ }
266
+ function DIDefining(binding, fromModule) {
267
+ this.w27_1 = binding;
268
+ this.x27_1 = fromModule;
269
+ }
270
+ function descriptionImpl(_this__u8e3s4, withOverrides, ident, keyBindDisp, bindingDisp) {
271
+ var tmp$ret$4;
272
+ // Inline function 'kotlin.collections.groupBy' call
273
+ var tmp1_groupBy = _this__u8e3s4.q();
274
+ var tmp$ret$3;
275
+ // Inline function 'kotlin.collections.groupByTo' call
276
+ var tmp0_groupByTo = LinkedHashMap_init_$Create$();
277
+ var tmp0_iterator = tmp1_groupBy.f();
278
+ while (tmp0_iterator.g()) {
279
+ var element = tmp0_iterator.h();
280
+ var tmp$ret$0;
281
+ // Inline function 'org.kodein.di.descriptionImpl.<anonymous>' call
282
+ tmp$ret$0 = first(element.l1()).x27_1;
283
+ var key = tmp$ret$0;
284
+ var tmp$ret$2;
285
+ // Inline function 'kotlin.collections.getOrPut' call
286
+ var value = tmp0_groupByTo.z1(key);
287
+ var tmp;
288
+ if (value == null) {
289
+ var tmp$ret$1;
290
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
291
+ tmp$ret$1 = ArrayList_init_$Create$();
292
+ var answer = tmp$ret$1;
293
+ tmp0_groupByTo.b4(key, answer);
294
+ tmp = answer;
295
+ } else {
296
+ tmp = value;
297
+ }
298
+ tmp$ret$2 = tmp;
299
+ var list = tmp$ret$2;
300
+ list.a(element);
301
+ }
302
+ tmp$ret$3 = tmp0_groupByTo;
303
+ tmp$ret$4 = tmp$ret$3;
304
+ var byModule = tmp$ret$4;
305
+ var modules = sorted(filterNotNull(byModule.a2()));
306
+ var tmp$ret$7;
307
+ // Inline function 'kotlin.text.buildString' call
308
+ // Inline function 'kotlin.contracts.contract' call
309
+ var tmp$ret$6;
310
+ // Inline function 'kotlin.apply' call
311
+ var tmp2_apply = StringBuilder_init_$Create$();
312
+ // Inline function 'kotlin.contracts.contract' call
313
+ // Inline function 'org.kodein.di.descriptionImpl.<anonymous>' call
314
+ var tmp0_safe_receiver = byModule.z1(null);
315
+ if (tmp0_safe_receiver == null)
316
+ null;
317
+ else {
318
+ var tmp$ret$5;
319
+ // Inline function 'kotlin.let' call
320
+ // Inline function 'kotlin.contracts.contract' call
321
+ descriptionImpl$appendBindings(tmp2_apply, keyBindDisp, bindingDisp, withOverrides, ident, tmp0_safe_receiver);
322
+ tmp$ret$5 = Unit_getInstance();
323
+ }
324
+ // Inline function 'kotlin.collections.forEach' call
325
+ var tmp0_iterator_0 = modules.f();
326
+ while (tmp0_iterator_0.g()) {
327
+ var element_0 = tmp0_iterator_0.h();
328
+ // Inline function 'org.kodein.di.descriptionImpl.<anonymous>.<anonymous>' call
329
+ tmp2_apply.m8(repeat(' ', ident) + 'module ' + element_0 + ' {\n');
330
+ descriptionImpl$appendBindings(tmp2_apply, keyBindDisp, bindingDisp, withOverrides, ident + 4 | 0, ensureNotNull(byModule.z1(element_0)));
331
+ tmp2_apply.m8(repeat(' ', ident) + '}\n');
332
+ }
333
+ tmp$ret$6 = tmp2_apply;
334
+ tmp$ret$7 = tmp$ret$6.toString();
335
+ return tmp$ret$7;
336
+ }
337
+ function fullDescription(_this__u8e3s4, withOverrides, ident) {
338
+ withOverrides = withOverrides === VOID ? false : withOverrides;
339
+ ident = ident === VOID ? 8 : ident;
340
+ return descriptionImpl(_this__u8e3s4, withOverrides, ident, bindFullDescription$factory(), fullDescription$factory());
341
+ }
342
+ function descriptionImpl$appendBindings(_this__u8e3s4, $keyBindDisp, $bindingDisp, $withOverrides, ident, entries) {
343
+ var tmp0_iterator = entries.f();
344
+ while (tmp0_iterator.g()) {
345
+ var element = tmp0_iterator.h();
346
+ // Inline function 'org.kodein.di.descriptionImpl.appendBindings.<anonymous>' call
347
+ var keyDescription = $keyBindDisp(element.j1());
348
+ _this__u8e3s4.m8(repeat(' ', ident) + keyDescription + ' { ' + $bindingDisp(first(element.l1()).w27_1) + ' }');
349
+ if ($withOverrides) {
350
+ var subIdent = keyDescription.length - 4 | 0;
351
+ // Inline function 'kotlin.collections.forEach' call
352
+ var tmp0_forEach = element.l1().b3(1, element.l1().i());
353
+ var tmp0_iterator_0 = tmp0_forEach.f();
354
+ while (tmp0_iterator_0.g()) {
355
+ var element_0 = tmp0_iterator_0.h();
356
+ // Inline function 'org.kodein.di.descriptionImpl.appendBindings.<anonymous>.<anonymous>' call
357
+ _this__u8e3s4.m8(repeat(' ', subIdent) + 'overrides ' + $bindingDisp(element_0.w27_1));
358
+ }
359
+ }
360
+ _this__u8e3s4.m8('\n');
361
+ }
362
+ return Unit_getInstance();
363
+ }
364
+ function bindDescription$factory() {
365
+ return getPropertyCallableRef('bindDescription', 1, KProperty1, function (receiver) {
366
+ return receiver.d28();
367
+ }, null);
368
+ }
369
+ function description$factory() {
370
+ return getPropertyCallableRef('description', 1, KProperty1, function (receiver) {
371
+ return receiver.e28();
372
+ }, null);
373
+ }
374
+ function bindFullDescription$factory() {
375
+ return getPropertyCallableRef('bindFullDescription', 1, KProperty1, function (receiver) {
376
+ return receiver.f28();
377
+ }, null);
378
+ }
379
+ function fullDescription$factory() {
380
+ return getPropertyCallableRef('fullDescription', 1, KProperty1, function (receiver) {
381
+ return receiver.g28();
382
+ }, null);
383
+ }
384
+ function appendDescription(_this__u8e3s4, $this, displayString) {
385
+ if (!($this.b28_1 == null)) {
386
+ _this__u8e3s4.m8(' tagged "' + toString($this.b28_1) + '"');
387
+ }
388
+ if (!equals($this.y27_1, Companion_getInstance().o27_1)) {
389
+ _this__u8e3s4.m8(' on context ' + displayString($this.y27_1));
390
+ }
391
+ if (!equals($this.z27_1, Companion_getInstance().n27_1)) {
392
+ _this__u8e3s4.m8(', with argument ' + displayString($this.z27_1));
393
+ }
394
+ }
395
+ function TypeToken$simpleDispString$ref() {
396
+ var l = function (p0) {
397
+ return p0.c27();
398
+ };
399
+ l.callableName = 'simpleDispString';
400
+ return l;
401
+ }
402
+ function TypeToken$qualifiedDispString$ref() {
403
+ var l = function (p0) {
404
+ return p0.e27();
405
+ };
406
+ l.callableName = 'qualifiedDispString';
407
+ return l;
408
+ }
409
+ function Module_init_$Init$(name, allowSilentOverride, prefix, init, $this) {
410
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
411
+ prefix = prefix === VOID ? '' : prefix;
412
+ Module.call($this, allowSilentOverride, prefix, init);
413
+ $this.k28_1 = name;
414
+ return $this;
415
+ }
416
+ function Module_init_$Create$(name, allowSilentOverride, prefix, init) {
417
+ return Module_init_$Init$(name, allowSilentOverride, prefix, init, objectCreate(protoOf(Module)));
418
+ }
419
+ function DependencyLoopException(message) {
420
+ RuntimeException_init_$Init$(message, this);
421
+ captureStack(this, DependencyLoopException);
422
+ }
423
+ function NotFoundException(key, message) {
424
+ RuntimeException_init_$Init$(message, this);
425
+ captureStack(this, NotFoundException);
426
+ this.l28_1 = key;
427
+ }
428
+ function OverridingException(message) {
429
+ RuntimeException_init_$Init$(message, this);
430
+ captureStack(this, OverridingException);
431
+ }
432
+ function Key(contextType, argType, type, tag) {
433
+ this.y27_1 = contextType;
434
+ this.z27_1 = argType;
435
+ this.a28_1 = type;
436
+ this.b28_1 = tag;
437
+ this.c28_1 = 0;
438
+ }
439
+ protoOf(Key).hashCode = function () {
440
+ if (this.c28_1 === 0) {
441
+ this.c28_1 = hashCode(this.y27_1);
442
+ this.c28_1 = imul(31, this.c28_1) + hashCode(this.z27_1) | 0;
443
+ this.c28_1 = imul(29, hashCode(this.a28_1));
444
+ var tmp = this;
445
+ var tmp_0 = imul(23, this.c28_1);
446
+ var tmp0_safe_receiver = this.b28_1;
447
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
448
+ tmp.c28_1 = tmp_0 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
449
+ }
450
+ return this.c28_1;
451
+ };
452
+ protoOf(Key).toString = function () {
453
+ return this.e28();
454
+ };
455
+ protoOf(Key).d28 = function () {
456
+ var tmp$ret$1;
457
+ // Inline function 'kotlin.text.buildString' call
458
+ // Inline function 'kotlin.contracts.contract' call
459
+ var tmp$ret$0;
460
+ // Inline function 'kotlin.apply' call
461
+ var tmp0_apply = StringBuilder_init_$Create$();
462
+ // Inline function 'kotlin.contracts.contract' call
463
+ // Inline function 'org.kodein.di.Key.<get-bindDescription>.<anonymous>' call
464
+ tmp0_apply.m8('bind<' + this.a28_1.c27() + '>');
465
+ if (!(this.b28_1 == null)) {
466
+ tmp0_apply.m8('(tag = "' + toString(this.b28_1) + '")');
467
+ }
468
+ tmp$ret$0 = tmp0_apply;
469
+ tmp$ret$1 = tmp$ret$0.toString();
470
+ return tmp$ret$1;
471
+ };
472
+ protoOf(Key).f28 = function () {
473
+ var tmp$ret$1;
474
+ // Inline function 'kotlin.text.buildString' call
475
+ // Inline function 'kotlin.contracts.contract' call
476
+ var tmp$ret$0;
477
+ // Inline function 'kotlin.apply' call
478
+ var tmp0_apply = StringBuilder_init_$Create$();
479
+ // Inline function 'kotlin.contracts.contract' call
480
+ // Inline function 'org.kodein.di.Key.<get-bindFullDescription>.<anonymous>' call
481
+ tmp0_apply.m8('bind<' + this.a28_1.e27() + '>');
482
+ if (!(this.b28_1 == null)) {
483
+ tmp0_apply.m8('(tag = "' + toString(this.b28_1) + '")');
484
+ }
485
+ tmp$ret$0 = tmp0_apply;
486
+ tmp$ret$1 = tmp$ret$0.toString();
487
+ return tmp$ret$1;
488
+ };
489
+ protoOf(Key).e28 = function () {
490
+ var tmp$ret$1;
491
+ // Inline function 'kotlin.text.buildString' call
492
+ // Inline function 'kotlin.contracts.contract' call
493
+ var tmp$ret$0;
494
+ // Inline function 'kotlin.apply' call
495
+ var tmp0_apply = StringBuilder_init_$Create$();
496
+ // Inline function 'kotlin.contracts.contract' call
497
+ // Inline function 'org.kodein.di.Key.<get-description>.<anonymous>' call
498
+ tmp0_apply.m8(this.a28_1.c27());
499
+ appendDescription(tmp0_apply, this, TypeToken$simpleDispString$ref());
500
+ tmp$ret$0 = tmp0_apply;
501
+ tmp$ret$1 = tmp$ret$0.toString();
502
+ return tmp$ret$1;
503
+ };
504
+ protoOf(Key).m28 = function () {
505
+ return '(context: ' + this.y27_1.c27() + ', arg: ' + this.z27_1.c27() + ', type: ' + this.a28_1.c27() + ', tag: ' + toString(this.b28_1) + ')';
506
+ };
507
+ protoOf(Key).g28 = function () {
508
+ var tmp$ret$1;
509
+ // Inline function 'kotlin.text.buildString' call
510
+ // Inline function 'kotlin.contracts.contract' call
511
+ var tmp$ret$0;
512
+ // Inline function 'kotlin.apply' call
513
+ var tmp0_apply = StringBuilder_init_$Create$();
514
+ // Inline function 'kotlin.contracts.contract' call
515
+ // Inline function 'org.kodein.di.Key.<get-fullDescription>.<anonymous>' call
516
+ tmp0_apply.m8(this.a28_1.e27());
517
+ appendDescription(tmp0_apply, this, TypeToken$qualifiedDispString$ref());
518
+ tmp$ret$0 = tmp0_apply;
519
+ tmp$ret$1 = tmp$ret$0.toString();
520
+ return tmp$ret$1;
521
+ };
522
+ protoOf(Key).n28 = function (contextType, argType, type, tag) {
523
+ return new Key(contextType, argType, type, tag);
524
+ };
525
+ protoOf(Key).o28 = function (contextType, argType, type, tag, $super) {
526
+ contextType = contextType === VOID ? this.y27_1 : contextType;
527
+ argType = argType === VOID ? this.z27_1 : argType;
528
+ type = type === VOID ? this.a28_1 : type;
529
+ tag = tag === VOID ? this.b28_1 : tag;
530
+ return $super === VOID ? this.n28(contextType, argType, type, tag) : $super.n28.call(this, contextType, argType, type, tag);
531
+ };
532
+ protoOf(Key).equals = function (other) {
533
+ if (this === other)
534
+ return true;
535
+ if (!(other instanceof Key))
536
+ return false;
537
+ var tmp0_other_with_cast = other instanceof Key ? other : THROW_CCE();
538
+ if (!equals(this.y27_1, tmp0_other_with_cast.y27_1))
539
+ return false;
540
+ if (!equals(this.z27_1, tmp0_other_with_cast.z27_1))
541
+ return false;
542
+ if (!equals(this.a28_1, tmp0_other_with_cast.a28_1))
543
+ return false;
544
+ if (!equals(this.b28_1, tmp0_other_with_cast.b28_1))
545
+ return false;
546
+ return true;
547
+ };
548
+ function Builder() {
549
+ }
550
+ function Module(allowSilentOverride, prefix, init) {
551
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
552
+ prefix = prefix === VOID ? '' : prefix;
553
+ this.h28_1 = allowSilentOverride;
554
+ this.i28_1 = prefix;
555
+ this.j28_1 = init;
556
+ this.k28_1 = null;
557
+ }
558
+ protoOf(Module).ah = function () {
559
+ var tmp0_elvis_lhs = this.k28_1;
560
+ var tmp;
561
+ if (tmp0_elvis_lhs == null) {
562
+ throw IllegalStateException_init_$Create$('module must have a name.');
563
+ } else {
564
+ tmp = tmp0_elvis_lhs;
565
+ }
566
+ return tmp;
567
+ };
568
+ protoOf(Module).toString = function () {
569
+ return 'Module(allowSilentOverride=' + this.h28_1 + ', prefix=' + this.i28_1 + ', init=' + this.j28_1 + ')';
570
+ };
571
+ protoOf(Module).hashCode = function () {
572
+ var result = this.h28_1 | 0;
573
+ result = imul(result, 31) + getStringHashCode(this.i28_1) | 0;
574
+ result = imul(result, 31) + hashCode(this.j28_1) | 0;
575
+ return result;
576
+ };
577
+ protoOf(Module).equals = function (other) {
578
+ if (this === other)
579
+ return true;
580
+ if (!(other instanceof Module))
581
+ return false;
582
+ var tmp0_other_with_cast = other instanceof Module ? other : THROW_CCE();
583
+ if (!(this.h28_1 === tmp0_other_with_cast.h28_1))
584
+ return false;
585
+ if (!(this.i28_1 === tmp0_other_with_cast.i28_1))
586
+ return false;
587
+ if (!equals(this.j28_1, tmp0_other_with_cast.j28_1))
588
+ return false;
589
+ return true;
590
+ };
591
+ function Companion() {
592
+ Companion_instance = this;
593
+ this.s28_1 = false;
594
+ this.t28_1 = false;
595
+ }
596
+ protoOf(Companion).u28 = function (allowSilentOverride, init) {
597
+ return DIImpl_init_$Create$(allowSilentOverride, init);
598
+ };
599
+ protoOf(Companion).v28 = function (allowSilentOverride, init, $super) {
600
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
601
+ return $super === VOID ? this.u28(allowSilentOverride, init) : $super.u28.call(this, allowSilentOverride, init);
602
+ };
603
+ var Companion_instance;
604
+ function Companion_getInstance_0() {
605
+ if (Companion_instance == null)
606
+ new Companion();
607
+ return Companion_instance;
608
+ }
609
+ function DI() {
610
+ }
611
+ function get_direct(_this__u8e3s4) {
612
+ return new DirectDIImpl(_this__u8e3s4.w28().x28(), _this__u8e3s4.y28());
613
+ }
614
+ function DIAware() {
615
+ }
616
+ function Value(type, value) {
617
+ this.a29_1 = type;
618
+ this.b29_1 = value;
619
+ }
620
+ protoOf(Value).c29 = function () {
621
+ return this.a29_1;
622
+ };
623
+ protoOf(Value).l1 = function () {
624
+ return this.b29_1;
625
+ };
626
+ protoOf(Value).toString = function () {
627
+ return 'Value(type=' + this.a29_1 + ', value=' + this.b29_1 + ')';
628
+ };
629
+ protoOf(Value).hashCode = function () {
630
+ var result = hashCode(this.a29_1);
631
+ result = imul(result, 31) + hashCode(this.b29_1) | 0;
632
+ return result;
633
+ };
634
+ protoOf(Value).equals = function (other) {
635
+ if (this === other)
636
+ return true;
637
+ if (!(other instanceof Value))
638
+ return false;
639
+ var tmp0_other_with_cast = other instanceof Value ? other : THROW_CCE();
640
+ if (!equals(this.a29_1, tmp0_other_with_cast.a29_1))
641
+ return false;
642
+ if (!equals(this.b29_1, tmp0_other_with_cast.b29_1))
643
+ return false;
644
+ return true;
645
+ };
646
+ function Companion_0() {
647
+ Companion_instance_0 = this;
648
+ }
649
+ protoOf(Companion_0).d29 = function (type, value) {
650
+ return new Value(type, value);
651
+ };
652
+ var Companion_instance_0;
653
+ function Companion_getInstance_1() {
654
+ if (Companion_instance_0 == null)
655
+ new Companion_0();
656
+ return Companion_instance_0;
657
+ }
658
+ function DIContext() {
659
+ }
660
+ function Instance(_this__u8e3s4, type, tag) {
661
+ tag = tag === VOID ? null : tag;
662
+ var tmp = _this__u8e3s4.z28();
663
+ var tmp_0 = _this__u8e3s4.y28();
664
+ return new DIProperty(tmp, tmp_0, Instance$lambda(_this__u8e3s4, type, tag));
665
+ }
666
+ function get_AnyDIContext() {
667
+ return Contexes_getInstance().e29_1;
668
+ }
669
+ function Contexes() {
670
+ Contexes_instance = this;
671
+ this.e29_1 = Companion_getInstance_1().d29(Companion_getInstance().o27_1, new Object());
672
+ }
673
+ var Contexes_instance;
674
+ function Contexes_getInstance() {
675
+ if (Contexes_instance == null)
676
+ new Contexes();
677
+ return Contexes_instance;
678
+ }
679
+ function On(_this__u8e3s4, context, trigger) {
680
+ context = context === VOID ? _this__u8e3s4.y28() : context;
681
+ trigger = trigger === VOID ? _this__u8e3s4.z28() : trigger;
682
+ return DIWrapper_init_$Create$(_this__u8e3s4, context, trigger);
683
+ }
684
+ function DIWrapper_init_$Init$(base, diContext, trigger, $this) {
685
+ diContext = diContext === VOID ? base.y28() : diContext;
686
+ trigger = trigger === VOID ? base.z28() : trigger;
687
+ DIWrapper.call($this, base.w28(), diContext, trigger);
688
+ return $this;
689
+ }
690
+ function DIWrapper_init_$Create$(base, diContext, trigger) {
691
+ return DIWrapper_init_$Init$(base, diContext, trigger, objectCreate(protoOf(DIWrapper)));
692
+ }
693
+ function DIWrapper(_base, diContext, diTrigger) {
694
+ diTrigger = diTrigger === VOID ? null : diTrigger;
695
+ this.f29_1 = _base;
696
+ this.g29_1 = diContext;
697
+ this.h29_1 = diTrigger;
698
+ }
699
+ protoOf(DIWrapper).y28 = function () {
700
+ return this.g29_1;
701
+ };
702
+ protoOf(DIWrapper).z28 = function () {
703
+ return this.h29_1;
704
+ };
705
+ protoOf(DIWrapper).w28 = function () {
706
+ return this;
707
+ };
708
+ protoOf(DIWrapper).x28 = function () {
709
+ return this.f29_1.x28();
710
+ };
711
+ function Instance$lambda($this_Instance, $type, $tag) {
712
+ return function (ctx, _anonymous_parameter_1__qggqgd) {
713
+ var tmp = $this_Instance.w28().x28();
714
+ var tmp$ret$0;
715
+ // Inline function 'org.kodein.di.anyType' call
716
+ var tmp_0 = ctx.c29();
717
+ tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
718
+ return tmp.i29(new Key(tmp$ret$0, Companion_getInstance().n27_1, $type, $tag), ctx.l1())();
719
+ };
720
+ }
721
+ function DIContainer$provider$lambda($tmp0_toProvider) {
722
+ return function () {
723
+ return $tmp0_toProvider(Unit_getInstance());
724
+ };
725
+ }
726
+ function DIContainer() {
727
+ }
728
+ function DITree() {
729
+ }
730
+ function DirectDIBase() {
731
+ }
732
+ function NoDefinedTag() {
733
+ NoDefinedTag_instance = this;
734
+ }
735
+ var NoDefinedTag_instance;
736
+ function NoDefinedTag_getInstance() {
737
+ if (NoDefinedTag_instance == null)
738
+ new NoDefinedTag();
739
+ return NoDefinedTag_instance;
740
+ }
741
+ function SearchSpecs(contextType, argType, type, tag) {
742
+ contextType = contextType === VOID ? null : contextType;
743
+ argType = argType === VOID ? null : argType;
744
+ type = type === VOID ? null : type;
745
+ tag = tag === VOID ? NoDefinedTag_getInstance() : tag;
746
+ this.t29_1 = contextType;
747
+ this.u29_1 = argType;
748
+ this.v29_1 = type;
749
+ this.w29_1 = tag;
750
+ }
751
+ protoOf(SearchSpecs).toString = function () {
752
+ var args = ArrayList_init_$Create$();
753
+ if (!(this.t29_1 == null)) {
754
+ // Inline function 'kotlin.collections.plusAssign' call
755
+ var tmp0_safe_receiver = this.t29_1;
756
+ var tmp0_plusAssign = 'contextType=' + (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c27());
757
+ args.a(tmp0_plusAssign);
758
+ }
759
+ if (!(this.u29_1 == null)) {
760
+ // Inline function 'kotlin.collections.plusAssign' call
761
+ var tmp1_safe_receiver = this.u29_1;
762
+ var tmp1_plusAssign = 'argType=' + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c27());
763
+ args.a(tmp1_plusAssign);
764
+ }
765
+ if (!(this.v29_1 == null)) {
766
+ // Inline function 'kotlin.collections.plusAssign' call
767
+ var tmp2_safe_receiver = this.v29_1;
768
+ var tmp2_plusAssign = 'type=' + (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c27());
769
+ args.a(tmp2_plusAssign);
770
+ }
771
+ if (!equals(this.w29_1, NoDefinedTag_getInstance())) {
772
+ // Inline function 'kotlin.collections.plusAssign' call
773
+ var tmp3_plusAssign = 'tag=' + toString(this.w29_1);
774
+ args.a(tmp3_plusAssign);
775
+ }
776
+ return '[' + joinToString(args, ', ') + ']';
777
+ };
778
+ function NoArgBindingDIWrap(_di) {
779
+ this.x29_1 = _di;
780
+ }
781
+ protoOf(NoArgBindingDIWrap).w28 = function () {
782
+ return this.x29_1.w28();
783
+ };
784
+ protoOf(NoArgBindingDIWrap).y29 = function () {
785
+ return this.x29_1.y29();
786
+ };
787
+ protoOf(NoArgBindingDIWrap).s29 = function () {
788
+ return this.x29_1.s29();
789
+ };
790
+ protoOf(NoArgBindingDIWrap).z29 = function (type, tag) {
791
+ return this.x29_1.z29(type, tag);
792
+ };
793
+ protoOf(NoArgBindingDIWrap).a2a = function (context) {
794
+ return this.x29_1.a2a(context);
795
+ };
796
+ function ErasedContext() {
797
+ ErasedContext_instance = this;
798
+ }
799
+ protoOf(ErasedContext).c29 = function () {
800
+ return Companion_getInstance().o27_1;
801
+ };
802
+ protoOf(ErasedContext).l1 = function () {
803
+ return ErasedContext_getInstance();
804
+ };
805
+ var ErasedContext_instance;
806
+ function ErasedContext_getInstance() {
807
+ if (ErasedContext_instance == null)
808
+ new ErasedContext();
809
+ return ErasedContext_instance;
810
+ }
811
+ function DIBinding$Copier$Companion$invoke$1($f) {
812
+ this.b2a_1 = $f;
813
+ }
814
+ function Companion_1() {
815
+ Companion_instance_1 = this;
816
+ }
817
+ protoOf(Companion_1).c2a = function (f) {
818
+ return new DIBinding$Copier$Companion$invoke$1(f);
819
+ };
820
+ var Companion_instance_1;
821
+ function Companion_getInstance_2() {
822
+ if (Companion_instance_1 == null)
823
+ new Companion_1();
824
+ return Companion_instance_1;
825
+ }
826
+ function DIBinding() {
827
+ }
828
+ function NoArgDIBinding() {
829
+ }
830
+ function SingletonReference$make$lambda($value) {
831
+ return function () {
832
+ return $value;
833
+ };
834
+ }
835
+ function SingletonReference() {
836
+ SingletonReference_instance = this;
837
+ }
838
+ protoOf(SingletonReference).l2a = function (creator) {
839
+ var value = creator();
840
+ return new Reference(value, SingletonReference$make$lambda(value));
841
+ };
842
+ var SingletonReference_instance;
843
+ function SingletonReference_getInstance() {
844
+ if (SingletonReference_instance == null)
845
+ new SingletonReference();
846
+ return SingletonReference_instance;
847
+ }
848
+ function Reference(current, next) {
849
+ this.m2a_1 = current;
850
+ this.n2a_1 = next;
851
+ }
852
+ protoOf(Reference).z3 = function () {
853
+ return this.m2a_1;
854
+ };
855
+ protoOf(Reference).a4 = function () {
856
+ return this.n2a_1;
857
+ };
858
+ protoOf(Reference).toString = function () {
859
+ return 'Reference(current=' + this.m2a_1 + ', next=' + this.n2a_1 + ')';
860
+ };
861
+ protoOf(Reference).hashCode = function () {
862
+ var result = hashCode(this.m2a_1);
863
+ result = imul(result, 31) + hashCode(this.n2a_1) | 0;
864
+ return result;
865
+ };
866
+ protoOf(Reference).equals = function (other) {
867
+ if (this === other)
868
+ return true;
869
+ if (!(other instanceof Reference))
870
+ return false;
871
+ var tmp0_other_with_cast = other instanceof Reference ? other : THROW_CCE();
872
+ if (!equals(this.m2a_1, tmp0_other_with_cast.m2a_1))
873
+ return false;
874
+ if (!equals(this.n2a_1, tmp0_other_with_cast.n2a_1))
875
+ return false;
876
+ return true;
877
+ };
878
+ function ContextTranslator() {
879
+ }
880
+ function ScopeRegistry() {
881
+ }
882
+ function StandardScopeRegistry() {
883
+ ScopeRegistry.call(this);
884
+ this.r2a_1 = newConcurrentMap();
885
+ this.s2a_1 = new Object();
886
+ }
887
+ protoOf(StandardScopeRegistry).q2a = function (key, sync, creator) {
888
+ var tmp$ret$2;
889
+ $l$block_1: {
890
+ // Inline function 'org.kodein.di.internal.synchronizedIfNull' call
891
+ var tmp0_synchronizedIfNull = sync ? this.s2a_1 : null;
892
+ var tmp$ret$0;
893
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
894
+ var tmp0_safe_receiver = this.r2a_1.z1(key);
895
+ tmp$ret$0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver();
896
+ var tmp0_safe_receiver_0 = tmp$ret$0;
897
+ if (tmp0_safe_receiver_0 == null)
898
+ null;
899
+ else {
900
+ var tmp$ret$3;
901
+ // Inline function 'kotlin.let' call
902
+ // Inline function 'kotlin.contracts.contract' call
903
+ var tmp$ret$1;
904
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
905
+ tmp$ret$1 = tmp0_safe_receiver_0;
906
+ tmp$ret$2 = tmp$ret$1;
907
+ break $l$block_1;
908
+ }
909
+ var tmp$ret$8;
910
+ // Inline function 'org.kodein.di.internal.maySynchronized' call
911
+ var tmp$ret$5;
912
+ $l$block_0: {
913
+ // Inline function 'org.kodein.di.internal.synchronizedIfNull.<anonymous>' call
914
+ var tmp$ret$4;
915
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
916
+ var tmp0_safe_receiver_1 = this.r2a_1.z1(key);
917
+ tmp$ret$4 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1();
918
+ var tmp0_safe_receiver_2 = tmp$ret$4;
919
+ if (tmp0_safe_receiver_2 == null)
920
+ null;
921
+ else {
922
+ var tmp$ret$6;
923
+ // Inline function 'kotlin.let' call
924
+ // Inline function 'kotlin.contracts.contract' call
925
+ tmp$ret$5 = tmp0_safe_receiver_2;
926
+ break $l$block_0;
927
+ }
928
+ var tmp$ret$7;
929
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
930
+ var tmp0_container = creator();
931
+ var current = tmp0_container.z3();
932
+ var next = tmp0_container.a4();
933
+ // Inline function 'kotlin.collections.set' call
934
+ var tmp0_set = this.r2a_1;
935
+ tmp0_set.b4(key, next);
936
+ tmp$ret$7 = current;
937
+ tmp$ret$2 = tmp$ret$7;
938
+ break $l$block_1;
939
+ }
940
+ tmp$ret$8 = tmp$ret$5;
941
+ var value = tmp$ret$8;
942
+ var tmp$ret$9;
943
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
944
+ tmp$ret$9 = value;
945
+ tmp$ret$2 = tmp$ret$9;
946
+ }
947
+ return tmp$ret$2;
948
+ };
949
+ function NoScope() {
950
+ this.t2a_1 = new StandardScopeRegistry();
951
+ }
952
+ protoOf(NoScope).u2a = function (context) {
953
+ return this.t2a_1;
954
+ };
955
+ protoOf(NoScope).v2a = function (context) {
956
+ return this.u2a((context == null ? true : isObject(context)) ? context : THROW_CCE());
957
+ };
958
+ function toKContext(_this__u8e3s4, di, ctx) {
959
+ var tmp0_safe_receiver = _this__u8e3s4.p2a(di, ctx);
960
+ var tmp;
961
+ if (tmp0_safe_receiver == null) {
962
+ tmp = null;
963
+ } else {
964
+ var tmp$ret$1;
965
+ // Inline function 'kotlin.let' call
966
+ // Inline function 'kotlin.contracts.contract' call
967
+ var tmp$ret$0;
968
+ // Inline function 'org.kodein.di.bindings.toKContext.<anonymous>' call
969
+ tmp$ret$0 = Companion_getInstance_1().d29(_this__u8e3s4.o2a(), tmp0_safe_receiver);
970
+ tmp$ret$1 = tmp$ret$0;
971
+ tmp = tmp$ret$1;
972
+ }
973
+ return tmp;
974
+ }
975
+ function CompositeContextTranslator(src, dst) {
976
+ this.w2a_1 = src;
977
+ this.x2a_1 = dst;
978
+ }
979
+ protoOf(CompositeContextTranslator).g2a = function () {
980
+ return this.w2a_1.g2a();
981
+ };
982
+ protoOf(CompositeContextTranslator).o2a = function () {
983
+ return this.x2a_1.o2a();
984
+ };
985
+ protoOf(CompositeContextTranslator).p2a = function (di, ctx) {
986
+ var tmp0_safe_receiver = this.w2a_1.p2a(di, ctx);
987
+ var tmp;
988
+ if (tmp0_safe_receiver == null) {
989
+ tmp = null;
990
+ } else {
991
+ var tmp$ret$1;
992
+ // Inline function 'kotlin.let' call
993
+ // Inline function 'kotlin.contracts.contract' call
994
+ var tmp$ret$0;
995
+ // Inline function 'org.kodein.di.bindings.CompositeContextTranslator.translate.<anonymous>' call
996
+ tmp$ret$0 = this.x2a_1.p2a(di, tmp0_safe_receiver);
997
+ tmp$ret$1 = tmp$ret$0;
998
+ tmp = tmp$ret$1;
999
+ }
1000
+ return tmp;
1001
+ };
1002
+ protoOf(CompositeContextTranslator).toString = function () {
1003
+ return '(' + this.w2a_1 + ' -> ' + this.x2a_1 + ')';
1004
+ };
1005
+ function factoryName($this, params) {
1006
+ var tmp$ret$2;
1007
+ // Inline function 'kotlin.text.buildString' call
1008
+ // Inline function 'kotlin.contracts.contract' call
1009
+ var tmp$ret$1;
1010
+ // Inline function 'kotlin.apply' call
1011
+ var tmp0_apply = StringBuilder_init_$Create$();
1012
+ // Inline function 'kotlin.contracts.contract' call
1013
+ // Inline function 'org.kodein.di.bindings.Singleton.factoryName.<anonymous>' call
1014
+ tmp0_apply.m8('singleton');
1015
+ var tmp$ret$0;
1016
+ // Inline function 'kotlin.collections.isNotEmpty' call
1017
+ tmp$ret$0 = !params.l();
1018
+ if (tmp$ret$0) {
1019
+ tmp0_apply.m8(joinToString(params, ', ', '(', ')'));
1020
+ }
1021
+ tmp$ret$1 = tmp0_apply;
1022
+ tmp$ret$2 = tmp$ret$1.toString();
1023
+ return tmp$ret$2;
1024
+ }
1025
+ function Singleton$getFactory$lambda$lambda$lambda(this$0, $bindingDi) {
1026
+ return function () {
1027
+ return this$0.d2b_1(new NoArgBindingDIWrap($bindingDi));
1028
+ };
1029
+ }
1030
+ function Singleton$getFactory$lambda$lambda(this$0, $bindingDi) {
1031
+ return function () {
1032
+ return this$0.e2b_1.l2a(Singleton$getFactory$lambda$lambda$lambda(this$0, $bindingDi));
1033
+ };
1034
+ }
1035
+ function Singleton$getFactory$lambda($lateInitRegistry, this$0, $bindingDi) {
1036
+ return function (_anonymous_parameter_0__qggqh8) {
1037
+ var tmp0_elvis_lhs = $lateInitRegistry._v;
1038
+ var tmp;
1039
+ if (tmp0_elvis_lhs == null) {
1040
+ var tmp$ret$0;
1041
+ // Inline function 'kotlin.also' call
1042
+ var tmp0_also = this$0.y2a_1.v2a($bindingDi.z4());
1043
+ // Inline function 'kotlin.contracts.contract' call
1044
+ // Inline function 'org.kodein.di.bindings.Singleton.getFactory.<anonymous>.<anonymous>' call
1045
+ $lateInitRegistry._v = tmp0_also;
1046
+ tmp$ret$0 = tmp0_also;
1047
+ tmp = tmp$ret$0;
1048
+ } else {
1049
+ tmp = tmp0_elvis_lhs;
1050
+ }
1051
+ var registry = tmp;
1052
+ var tmp_0 = registry.q2a(this$0.f2b_1, this$0.c2b_1, Singleton$getFactory$lambda$lambda(this$0, $bindingDi));
1053
+ return isObject(tmp_0) ? tmp_0 : THROW_CCE();
1054
+ };
1055
+ }
1056
+ function Singleton$copier$lambda(this$0) {
1057
+ return function (it) {
1058
+ return new Singleton(this$0.y2a_1, this$0.z2a_1, this$0.a2b_1, this$0.b2b_1, this$0.e2b_1, this$0.c2b_1, this$0.d2b_1);
1059
+ };
1060
+ }
1061
+ function Singleton(scope, contextType, explicitContext, createdType, refMaker, sync, creator) {
1062
+ refMaker = refMaker === VOID ? null : refMaker;
1063
+ sync = sync === VOID ? true : sync;
1064
+ this.y2a_1 = scope;
1065
+ this.z2a_1 = contextType;
1066
+ this.a2b_1 = explicitContext;
1067
+ this.b2b_1 = createdType;
1068
+ this.c2b_1 = sync;
1069
+ this.d2b_1 = creator;
1070
+ var tmp = this;
1071
+ var tmp0_elvis_lhs = refMaker;
1072
+ tmp.e2b_1 = tmp0_elvis_lhs == null ? SingletonReference_getInstance() : tmp0_elvis_lhs;
1073
+ this.f2b_1 = new ScopeKey(new Object(), Unit_getInstance());
1074
+ var tmp_0 = this;
1075
+ var tmp_1 = Companion_getInstance_2();
1076
+ tmp_0.g2b_1 = tmp_1.c2a(Singleton$copier$lambda(this));
1077
+ }
1078
+ protoOf(Singleton).f2a = function () {
1079
+ return this.y2a_1;
1080
+ };
1081
+ protoOf(Singleton).g2a = function () {
1082
+ return this.z2a_1;
1083
+ };
1084
+ protoOf(Singleton).i2a = function () {
1085
+ return this.b2b_1;
1086
+ };
1087
+ protoOf(Singleton).d2a = function () {
1088
+ var params = ArrayList_init_$Create$_0(2);
1089
+ if (!equals(this.e2b_1, SingletonReference_getInstance())) {
1090
+ params.a('ref = ' + erasedOf(this.e2b_1).c27());
1091
+ }
1092
+ return factoryName(this, params);
1093
+ };
1094
+ protoOf(Singleton).e2a = function () {
1095
+ var params = ArrayList_init_$Create$_0(2);
1096
+ if (!equals(this.e2b_1, SingletonReference_getInstance())) {
1097
+ params.a('ref = ' + erasedOf(this.e2b_1).e27());
1098
+ }
1099
+ return factoryName(this, params);
1100
+ };
1101
+ protoOf(Singleton).h2b = function (key, di) {
1102
+ var lateInitRegistry = {_v: null};
1103
+ var bindingDi = this.a2b_1 ? di : di.i2b();
1104
+ return Singleton$getFactory$lambda(lateInitRegistry, this, bindingDi);
1105
+ };
1106
+ protoOf(Singleton).k2a = function (key, di) {
1107
+ return this.h2b(key, di);
1108
+ };
1109
+ function Provider$getFactory$lambda(this$0, $di) {
1110
+ return function (_anonymous_parameter_0__qggqh8) {
1111
+ return this$0.l2b_1(new NoArgBindingDIWrap($di));
1112
+ };
1113
+ }
1114
+ function Provider(contextType, createdType, creator) {
1115
+ this.j2b_1 = contextType;
1116
+ this.k2b_1 = createdType;
1117
+ this.l2b_1 = creator;
1118
+ }
1119
+ protoOf(Provider).g2a = function () {
1120
+ return this.j2b_1;
1121
+ };
1122
+ protoOf(Provider).i2a = function () {
1123
+ return this.k2b_1;
1124
+ };
1125
+ protoOf(Provider).d2a = function () {
1126
+ return 'provider';
1127
+ };
1128
+ protoOf(Provider).h2b = function (key, di) {
1129
+ return Provider$getFactory$lambda(this, di);
1130
+ };
1131
+ protoOf(Provider).k2a = function (key, di) {
1132
+ return this.h2b(key, di);
1133
+ };
1134
+ function ScopeKey(scopeId, arg) {
1135
+ this.m2b_1 = scopeId;
1136
+ this.n2b_1 = arg;
1137
+ }
1138
+ protoOf(ScopeKey).toString = function () {
1139
+ return 'ScopeKey(scopeId=' + toString_0(this.m2b_1) + ', arg=' + this.n2b_1 + ')';
1140
+ };
1141
+ protoOf(ScopeKey).hashCode = function () {
1142
+ var result = hashCode(this.m2b_1);
1143
+ result = imul(result, 31) + (this.n2b_1 == null ? 0 : hashCode(this.n2b_1)) | 0;
1144
+ return result;
1145
+ };
1146
+ protoOf(ScopeKey).equals = function (other) {
1147
+ if (this === other)
1148
+ return true;
1149
+ if (!(other instanceof ScopeKey))
1150
+ return false;
1151
+ var tmp0_other_with_cast = other instanceof ScopeKey ? other : THROW_CCE();
1152
+ if (!equals(this.m2b_1, tmp0_other_with_cast.m2b_1))
1153
+ return false;
1154
+ if (!equals(this.n2b_1, tmp0_other_with_cast.n2b_1))
1155
+ return false;
1156
+ return true;
1157
+ };
1158
+ function DIMainBuilderImpl(allowSilentOverride) {
1159
+ DIBuilderImpl.call(this, null, '', HashSet_init_$Create$(), new DIContainerBuilderImpl(true, allowSilentOverride, HashMap_init_$Create$(), ArrayList_init_$Create$(), ArrayList_init_$Create$()));
1160
+ this.t2b_1 = ArrayList_init_$Create$();
1161
+ this.u2b_1 = Companion_getInstance_0().s28_1;
1162
+ this.v2b_1 = Companion_getInstance_0().t28_1;
1163
+ }
1164
+ protoOf(DIMainBuilderImpl).n29 = function () {
1165
+ return this.t2b_1;
1166
+ };
1167
+ protoOf(DIMainBuilderImpl).w2b = function () {
1168
+ return this.u2b_1;
1169
+ };
1170
+ protoOf(DIMainBuilderImpl).x2b = function () {
1171
+ return this.v2b_1;
1172
+ };
1173
+ function TypeBinder($outer, type, tag, overrides) {
1174
+ this.i2c_1 = $outer;
1175
+ this.f2c_1 = type;
1176
+ this.g2c_1 = tag;
1177
+ this.h2c_1 = overrides;
1178
+ }
1179
+ protoOf(TypeBinder).d2c = function () {
1180
+ return this.i2c_1.d2c();
1181
+ };
1182
+ protoOf(TypeBinder).j2c = function (binding) {
1183
+ return this.d2c().o2c(new Key(binding.g2a(), binding.h2a(), this.f2c_1, this.g2c_1), binding, this.i2c_1.y2b_1, this.h2c_1);
1184
+ };
1185
+ function DIBuilderImpl(moduleName, prefix, importedModules, containerBuilder) {
1186
+ this.y2b_1 = moduleName;
1187
+ this.z2b_1 = prefix;
1188
+ this.a2c_1 = importedModules;
1189
+ this.b2c_1 = containerBuilder;
1190
+ this.c2c_1 = Companion_getInstance().o27_1;
1191
+ }
1192
+ protoOf(DIBuilderImpl).d2c = function () {
1193
+ return this.b2c_1;
1194
+ };
1195
+ protoOf(DIBuilderImpl).g2a = function () {
1196
+ return this.c2c_1;
1197
+ };
1198
+ protoOf(DIBuilderImpl).f2a = function () {
1199
+ return new NoScope();
1200
+ };
1201
+ protoOf(DIBuilderImpl).e2c = function () {
1202
+ return false;
1203
+ };
1204
+ protoOf(DIBuilderImpl).p28 = function (type, tag, overrides) {
1205
+ return new TypeBinder(this, type, tag, overrides);
1206
+ };
1207
+ protoOf(DIBuilderImpl).q28 = function (module_0, allowOverride) {
1208
+ var moduleName = this.z2b_1 + module_0.ah();
1209
+ var tmp;
1210
+ var tmp$ret$0;
1211
+ // Inline function 'kotlin.text.isNotEmpty' call
1212
+ tmp$ret$0 = charSequenceLength(moduleName) > 0;
1213
+ if (tmp$ret$0) {
1214
+ tmp = this.a2c_1.a1(moduleName);
1215
+ } else {
1216
+ tmp = false;
1217
+ }
1218
+ if (tmp) {
1219
+ throw IllegalStateException_init_$Create$('Module "' + moduleName + '" has already been imported!');
1220
+ }
1221
+ var tmp0_this = this;
1222
+ // Inline function 'kotlin.collections.plusAssign' call
1223
+ var tmp0_plusAssign = tmp0_this.a2c_1;
1224
+ tmp0_plusAssign.a(moduleName);
1225
+ var tmp$ret$1;
1226
+ // Inline function 'kotlin.apply' call
1227
+ var tmp1_apply = new DIBuilderImpl(moduleName, this.z2b_1 + module_0.i28_1, this.a2c_1, this.d2c().p2c(allowOverride, module_0.h28_1));
1228
+ var tmp2_apply = module_0.j28_1;
1229
+ // Inline function 'kotlin.contracts.contract' call
1230
+ tmp2_apply(tmp1_apply);
1231
+ tmp$ret$1 = tmp1_apply;
1232
+ };
1233
+ function DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT() {
1234
+ OverrideMode.call(this, 'ALLOW_SILENT', 0);
1235
+ OverrideMode_ALLOW_SILENT_instance = this;
1236
+ }
1237
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT).s2c = function () {
1238
+ return true;
1239
+ };
1240
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT).t2c = function (overrides) {
1241
+ return overrides;
1242
+ };
1243
+ var OverrideMode_ALLOW_SILENT_instance;
1244
+ function DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT() {
1245
+ OverrideMode.call(this, 'ALLOW_EXPLICIT', 1);
1246
+ OverrideMode_ALLOW_EXPLICIT_instance = this;
1247
+ }
1248
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT).s2c = function () {
1249
+ return true;
1250
+ };
1251
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT).t2c = function (overrides) {
1252
+ var tmp0_elvis_lhs = overrides;
1253
+ return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
1254
+ };
1255
+ var OverrideMode_ALLOW_EXPLICIT_instance;
1256
+ function DIContainerBuilderImpl$OverrideMode$FORBID() {
1257
+ OverrideMode.call(this, 'FORBID', 2);
1258
+ OverrideMode_FORBID_instance = this;
1259
+ }
1260
+ protoOf(DIContainerBuilderImpl$OverrideMode$FORBID).s2c = function () {
1261
+ return false;
1262
+ };
1263
+ protoOf(DIContainerBuilderImpl$OverrideMode$FORBID).t2c = function (overrides) {
1264
+ var tmp;
1265
+ if (!(overrides == null) ? overrides : false) {
1266
+ throw new OverridingException('Overriding has been forbidden');
1267
+ } else {
1268
+ tmp = false;
1269
+ }
1270
+ return tmp;
1271
+ };
1272
+ var OverrideMode_FORBID_instance;
1273
+ function Companion_2() {
1274
+ Companion_instance_2 = this;
1275
+ }
1276
+ protoOf(Companion_2).y2c = function (allow, silent) {
1277
+ if (!allow)
1278
+ return OverrideMode_FORBID_getInstance();
1279
+ if (silent)
1280
+ return OverrideMode_ALLOW_SILENT_getInstance();
1281
+ return OverrideMode_ALLOW_EXPLICIT_getInstance();
1282
+ };
1283
+ var Companion_instance_2;
1284
+ function Companion_getInstance_3() {
1285
+ OverrideMode_initEntries();
1286
+ if (Companion_instance_2 == null)
1287
+ new Companion_2();
1288
+ return Companion_instance_2;
1289
+ }
1290
+ var OverrideMode_entriesInitialized;
1291
+ function OverrideMode_initEntries() {
1292
+ if (OverrideMode_entriesInitialized)
1293
+ return Unit_getInstance();
1294
+ OverrideMode_entriesInitialized = true;
1295
+ OverrideMode_ALLOW_SILENT_instance = new DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT();
1296
+ OverrideMode_ALLOW_EXPLICIT_instance = new DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT();
1297
+ OverrideMode_FORBID_instance = new DIContainerBuilderImpl$OverrideMode$FORBID();
1298
+ Companion_getInstance_3();
1299
+ }
1300
+ function OverrideMode(name, ordinal) {
1301
+ Enum.call(this, name, ordinal);
1302
+ }
1303
+ function checkOverrides($this, key, overrides) {
1304
+ var mustOverride = $this.n2c_1.t2c(overrides);
1305
+ if (!(mustOverride == null)) {
1306
+ var tmp;
1307
+ if (mustOverride) {
1308
+ var tmp$ret$1;
1309
+ // Inline function 'kotlin.collections.contains' call
1310
+ var tmp0_contains = $this.k2c_1;
1311
+ var tmp$ret$0;
1312
+ // Inline function 'kotlin.collections.containsKey' call
1313
+ tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).t1(key);
1314
+ tmp$ret$1 = tmp$ret$0;
1315
+ tmp = !tmp$ret$1;
1316
+ } else {
1317
+ tmp = false;
1318
+ }
1319
+ if (tmp)
1320
+ throw new OverridingException('Binding ' + key + ' must override an existing binding.');
1321
+ var tmp_0;
1322
+ if (!mustOverride) {
1323
+ var tmp$ret$3;
1324
+ // Inline function 'kotlin.collections.contains' call
1325
+ var tmp1_contains = $this.k2c_1;
1326
+ var tmp$ret$2;
1327
+ // Inline function 'kotlin.collections.containsKey' call
1328
+ tmp$ret$2 = (isInterface(tmp1_contains, Map) ? tmp1_contains : THROW_CCE()).t1(key);
1329
+ tmp$ret$3 = tmp$ret$2;
1330
+ tmp_0 = tmp$ret$3;
1331
+ } else {
1332
+ tmp_0 = false;
1333
+ }
1334
+ if (tmp_0)
1335
+ throw new OverridingException('Binding ' + key + ' must not override an existing binding.');
1336
+ }
1337
+ }
1338
+ function checkMatch($this, allowOverride) {
1339
+ if (!$this.n2c_1.s2c() ? allowOverride : false)
1340
+ throw new OverridingException('Overriding has been forbidden');
1341
+ }
1342
+ function OverrideMode_ALLOW_SILENT_getInstance() {
1343
+ OverrideMode_initEntries();
1344
+ return OverrideMode_ALLOW_SILENT_instance;
1345
+ }
1346
+ function OverrideMode_ALLOW_EXPLICIT_getInstance() {
1347
+ OverrideMode_initEntries();
1348
+ return OverrideMode_ALLOW_EXPLICIT_instance;
1349
+ }
1350
+ function OverrideMode_FORBID_getInstance() {
1351
+ OverrideMode_initEntries();
1352
+ return OverrideMode_FORBID_instance;
1353
+ }
1354
+ function DIContainerBuilderImpl(allowOverride, silentOverride, bindingsMap, callbacks, translators) {
1355
+ this.k2c_1 = bindingsMap;
1356
+ this.l2c_1 = callbacks;
1357
+ this.m2c_1 = translators;
1358
+ this.n2c_1 = Companion_getInstance_3().y2c(allowOverride, silentOverride);
1359
+ }
1360
+ protoOf(DIContainerBuilderImpl).o2c = function (key, binding, fromModule, overrides) {
1361
+ checkOverrides(this, key, overrides);
1362
+ var tmp$ret$1;
1363
+ // Inline function 'kotlin.collections.getOrPut' call
1364
+ var tmp0_getOrPut = this.k2c_1;
1365
+ var value = tmp0_getOrPut.z1(key);
1366
+ var tmp;
1367
+ if (value == null) {
1368
+ var tmp$ret$0;
1369
+ // Inline function 'org.kodein.di.internal.DIContainerBuilderImpl.bind.<anonymous>' call
1370
+ tmp$ret$0 = newLinkedList();
1371
+ var answer = tmp$ret$0;
1372
+ tmp0_getOrPut.b4(key, answer);
1373
+ tmp = answer;
1374
+ } else {
1375
+ tmp = value;
1376
+ }
1377
+ tmp$ret$1 = tmp;
1378
+ var bindings = tmp$ret$1;
1379
+ bindings.r2(0, new DIDefining(isInterface(binding, DIBinding) ? binding : THROW_CCE(), fromModule));
1380
+ };
1381
+ protoOf(DIContainerBuilderImpl).p2c = function (allowOverride, silentOverride) {
1382
+ checkMatch(this, allowOverride);
1383
+ return new DIContainerBuilderImpl(allowOverride, silentOverride, this.k2c_1, this.l2c_1, this.m2c_1);
1384
+ };
1385
+ function displayString($this, key, overrideLevel) {
1386
+ var descProp = $this.e2d_1 ? bindFullDescription$factory_0(key) : bindDescription$factory_0(key);
1387
+ return !(overrideLevel === 0) ? 'overridden ' + descProp.get() : descProp.get();
1388
+ }
1389
+ function recursiveLoop($this, node, firstKey, firstOverrideLevel, tail) {
1390
+ var $this_0 = $this;
1391
+ var node_0 = node;
1392
+ var firstKey_0 = firstKey;
1393
+ var firstOverrideLevel_0 = firstOverrideLevel;
1394
+ var tail_0 = tail;
1395
+ $l$1: do {
1396
+ $l$0: do {
1397
+ var tmp;
1398
+ if (node_0.d2d_1 == null ? true : firstKey_0.equals(node_0.b2d_1) ? firstOverrideLevel_0 === node_0.c2d_1 : false) {
1399
+ tmp = plus(listOf(displayString($this_0, node_0.b2d_1, node_0.c2d_1)), tail_0);
1400
+ } else {
1401
+ var tmp0 = $this_0;
1402
+ var tmp1 = node_0.d2d_1;
1403
+ var tmp2 = firstKey_0;
1404
+ var tmp3 = firstOverrideLevel_0;
1405
+ var tmp4 = plus(listOf(displayString($this_0, node_0.b2d_1, node_0.c2d_1)), tail_0);
1406
+ $this_0 = tmp0;
1407
+ node_0 = tmp1;
1408
+ firstKey_0 = tmp2;
1409
+ firstOverrideLevel_0 = tmp3;
1410
+ tail_0 = tmp4;
1411
+ continue $l$0;
1412
+ }
1413
+ return tmp;
1414
+ }
1415
+ while (false);
1416
+ }
1417
+ while (true);
1418
+ }
1419
+ function recursiveCheck($this, node, searchedKey, searchedOverrideLevel) {
1420
+ var $this_0 = $this;
1421
+ var node_0 = node;
1422
+ var searchedKey_0 = searchedKey;
1423
+ var searchedOverrideLevel_0 = searchedOverrideLevel;
1424
+ $l$1: do {
1425
+ $l$0: do {
1426
+ var tmp;
1427
+ if (node_0.b2d_1.equals(searchedKey_0) ? node_0.c2d_1 === searchedOverrideLevel_0 : false) {
1428
+ tmp = false;
1429
+ } else if (node_0.d2d_1 == null) {
1430
+ tmp = true;
1431
+ } else {
1432
+ var tmp0 = $this_0;
1433
+ var tmp1 = node_0.d2d_1;
1434
+ var tmp2 = searchedKey_0;
1435
+ var tmp3 = searchedOverrideLevel_0;
1436
+ $this_0 = tmp0;
1437
+ node_0 = tmp1;
1438
+ searchedKey_0 = tmp2;
1439
+ searchedOverrideLevel_0 = tmp3;
1440
+ continue $l$0;
1441
+ }
1442
+ return tmp;
1443
+ }
1444
+ while (false);
1445
+ }
1446
+ while (true);
1447
+ }
1448
+ function DIContainerImpl_init_$Init$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks, $this) {
1449
+ DIContainerImpl.call($this, new DITreeImpl(builder.k2c_1, externalSources, builder.m2c_1), null, fullDescriptionOnError, fullContainerTreeOnError);
1450
+ var init = DIContainerImpl$_init_$lambda_r6ib3j($this, builder);
1451
+ if (runCallbacks)
1452
+ init();
1453
+ else {
1454
+ var lock = new Object();
1455
+ var tmp = $this;
1456
+ tmp.j2d_1 = DIContainerImpl$_init_$lambda_r6ib3j_0($this, init);
1457
+ }
1458
+ return $this;
1459
+ }
1460
+ function DIContainerImpl_init_$Create$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks) {
1461
+ return DIContainerImpl_init_$Init$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks, objectCreate(protoOf(DIContainerImpl)));
1462
+ }
1463
+ function Node(key, overrideLevel, parent, fullDescriptionOnError) {
1464
+ this.b2d_1 = key;
1465
+ this.c2d_1 = overrideLevel;
1466
+ this.d2d_1 = parent;
1467
+ this.e2d_1 = fullDescriptionOnError;
1468
+ }
1469
+ protoOf(Node).k2d = function (searchedKey, searchedOverrideLevel) {
1470
+ if (!recursiveCheck(this, this, searchedKey, searchedOverrideLevel)) {
1471
+ var list = plus_0(recursiveLoop(this, this, searchedKey, searchedOverrideLevel, emptyList()), displayString(this, searchedKey, this.c2d_1));
1472
+ var sb = StringBuilder_init_$Create$();
1473
+ // Inline function 'kotlin.collections.forEachIndexed' call
1474
+ var index = 0;
1475
+ var tmp0_iterator = list.f();
1476
+ while (tmp0_iterator.g()) {
1477
+ var item = tmp0_iterator.h();
1478
+ // Inline function 'org.kodein.di.internal.Node.check.<anonymous>' call
1479
+ var tmp1 = index;
1480
+ index = tmp1 + 1 | 0;
1481
+ var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1);
1482
+ sb.m8(' ');
1483
+ var tmp0_subject = tmp0__anonymous__q1qw7t;
1484
+ switch (tmp0_subject) {
1485
+ case 0:
1486
+ sb.m8(' ');
1487
+ ;
1488
+ break;
1489
+ case 1:
1490
+ sb.m8(' \u2554\u2569>');
1491
+ ;
1492
+ break;
1493
+ default:
1494
+ sb.m8(' \u2551');
1495
+ ;
1496
+ sb.m8(repeat(' ', tmp0__anonymous__q1qw7t - 1 | 0));
1497
+ ;
1498
+ sb.m8('\u255A>');
1499
+ ;
1500
+ break;
1501
+ }
1502
+ sb.m8(item);
1503
+ sb.m8('\n');
1504
+ }
1505
+ sb.m8(' \u255A');
1506
+ sb.m8(repeat('\u2550\u2550', list.i() - 1 | 0));
1507
+ sb.m8('\u255D');
1508
+ throw new DependencyLoopException('Dependency recursion:\n' + sb);
1509
+ }
1510
+ };
1511
+ function bindingDI($this, key, context, tree, overrideLevel) {
1512
+ var container = new DIContainerImpl(tree, new Node(key, overrideLevel, $this.g2d_1, $this.h2d_1), $this.h2d_1, $this.i2d_1);
1513
+ return new BindingDIImpl(new DirectDIImpl(container, context), key, overrideLevel);
1514
+ }
1515
+ function DIContainerImpl$_init_$lambda_r6ib3j(this$0, $builder) {
1516
+ return function () {
1517
+ var direct = new DirectDIImpl(this$0, get_AnyDIContext());
1518
+ var tmp0_forEach = $builder.l2c_1;
1519
+ var tmp0_iterator = tmp0_forEach.f();
1520
+ while (tmp0_iterator.g()) {
1521
+ var element = tmp0_iterator.h();
1522
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
1523
+ element(direct);
1524
+ }
1525
+ return Unit_getInstance();
1526
+ };
1527
+ }
1528
+ function DIContainerImpl$_init_$lambda_r6ib3j_0(this$0, $init) {
1529
+ return function () {
1530
+ var tmp$ret$1;
1531
+ $l$block_1: {
1532
+ // Inline function 'org.kodein.di.internal.synchronizedIfNotNull' call
1533
+ var tmp0_synchronizedIfNotNull = initCallbacks$factory(this$0);
1534
+ if (tmp0_synchronizedIfNotNull() == null) {
1535
+ var tmp$ret$0;
1536
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
1537
+ tmp$ret$0 = Unit_getInstance();
1538
+ tmp$ret$1 = tmp$ret$0;
1539
+ break $l$block_1;
1540
+ }
1541
+ var tmp$ret$3;
1542
+ // Inline function 'org.kodein.di.internal.maySynchronized' call
1543
+ var tmp$ret$2;
1544
+ $l$block_0: {
1545
+ // Inline function 'org.kodein.di.internal.synchronizedIfNotNull.<anonymous>' call
1546
+ var tmp0_elvis_lhs = tmp0_synchronizedIfNotNull();
1547
+ var tmp;
1548
+ if (tmp0_elvis_lhs == null) {
1549
+ tmp$ret$2 = Unit_getInstance();
1550
+ break $l$block_0;
1551
+ } else {
1552
+ tmp = tmp0_elvis_lhs;
1553
+ }
1554
+ var value = tmp;
1555
+ this$0.j2d_1 = null;
1556
+ tmp$ret$1 = $init();
1557
+ break $l$block_1;
1558
+ }
1559
+ tmp$ret$3 = tmp$ret$2;
1560
+ var tmp$ret$4;
1561
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
1562
+ tmp$ret$4 = Unit_getInstance();
1563
+ tmp$ret$1 = tmp$ret$4;
1564
+ }
1565
+ return Unit_getInstance();
1566
+ };
1567
+ }
1568
+ function DIContainerImpl$factory$lambda($this$null, it) {
1569
+ return fullDescription($this$null, it);
1570
+ }
1571
+ function DIContainerImpl$factory$lambda_0($this$null, it) {
1572
+ return description($this$null, it);
1573
+ }
1574
+ function DIContainerImpl(tree, node, fullDescriptionOnError, fullContainerTreeOnError) {
1575
+ this.f2d_1 = tree;
1576
+ this.g2d_1 = node;
1577
+ this.h2d_1 = fullDescriptionOnError;
1578
+ this.i2d_1 = fullContainerTreeOnError;
1579
+ this.j2d_1 = null;
1580
+ }
1581
+ protoOf(DIContainerImpl).j29 = function (key, context, overrideLevel) {
1582
+ var result = this.f2d_1.p29(key, overrideLevel);
1583
+ if (result.i() === 1) {
1584
+ var tmp0_container = result.k(0);
1585
+ var definition = tmp0_container.a4();
1586
+ var translator = tmp0_container.k9();
1587
+ var tmp1_safe_receiver = this.g2d_1;
1588
+ if (tmp1_safe_receiver == null)
1589
+ null;
1590
+ else {
1591
+ tmp1_safe_receiver.k2d(key, overrideLevel);
1592
+ }
1593
+ var tmp = Companion_getInstance_1().d29(key.y27_1, context);
1594
+ var originalContext = isInterface(tmp, DIContext) ? tmp : THROW_CCE();
1595
+ var tmp2_safe_receiver = translator;
1596
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toKContext(tmp2_safe_receiver, new DirectDIImpl(this, originalContext), context);
1597
+ var kContext = tmp3_elvis_lhs == null ? originalContext : tmp3_elvis_lhs;
1598
+ if (key instanceof Key)
1599
+ key;
1600
+ else
1601
+ THROW_CCE();
1602
+ var bindingDI_0 = bindingDI(this, key, kContext, definition.v27_1, overrideLevel);
1603
+ return definition.w27_1.k2a(key, bindingDI_0);
1604
+ }
1605
+ var bindingDI_1 = bindingDI(this, key, Companion_getInstance_1().d29(key.y27_1, context), this.f2d_1, overrideLevel);
1606
+ // Inline function 'kotlin.collections.forEach' call
1607
+ var tmp0_forEach = this.f2d_1.n29();
1608
+ var tmp0_iterator = tmp0_forEach.f();
1609
+ while (tmp0_iterator.g()) {
1610
+ var element = tmp0_iterator.h();
1611
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1612
+ var tmp0_safe_receiver = element.l2d(bindingDI_1, key);
1613
+ if (tmp0_safe_receiver == null)
1614
+ null;
1615
+ else {
1616
+ var tmp$ret$0;
1617
+ // Inline function 'kotlin.let' call
1618
+ // Inline function 'kotlin.contracts.contract' call
1619
+ var tmp0_safe_receiver_0 = this.g2d_1;
1620
+ if (tmp0_safe_receiver_0 == null)
1621
+ null;
1622
+ else {
1623
+ tmp0_safe_receiver_0.k2d(key, overrideLevel);
1624
+ }
1625
+ return (!(tmp0_safe_receiver == null) ? typeof tmp0_safe_receiver === 'function' : false) ? tmp0_safe_receiver : THROW_CCE();
1626
+ }
1627
+ }
1628
+ var withOverrides = !(overrideLevel === 0);
1629
+ var descProp = this.h2d_1 ? fullDescription$factory_0(key) : description$factory_0(key);
1630
+ var tmp_0;
1631
+ if (this.h2d_1) {
1632
+ tmp_0 = DIContainerImpl$factory$lambda;
1633
+ } else {
1634
+ tmp_0 = DIContainerImpl$factory$lambda_0;
1635
+ }
1636
+ var descFun = tmp_0;
1637
+ if (result.l()) {
1638
+ var tmp$ret$7;
1639
+ // Inline function 'kotlin.text.buildString' call
1640
+ // Inline function 'kotlin.contracts.contract' call
1641
+ var tmp$ret$6;
1642
+ // Inline function 'kotlin.apply' call
1643
+ var tmp1_apply = StringBuilder_init_$Create$();
1644
+ // Inline function 'kotlin.contracts.contract' call
1645
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1646
+ tmp1_apply.m8('No binding found for ' + descProp.get());
1647
+ if (this.i2d_1) {
1648
+ var tmp$ret$1;
1649
+ // Inline function 'kotlin.text.appendLine' call
1650
+ tmp$ret$1 = tmp1_apply.q7(_Char___init__impl__6a9atx(10));
1651
+ var forType = this.f2d_1.q29(new SearchSpecs(VOID, VOID, key.a28_1));
1652
+ var tmp$ret$2;
1653
+ // Inline function 'kotlin.collections.isNotEmpty' call
1654
+ tmp$ret$2 = !forType.l();
1655
+ if (tmp$ret$2) {
1656
+ var tmp$ret$5;
1657
+ // Inline function 'kotlin.collections.associate' call
1658
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(forType, 10)), 16);
1659
+ var tmp$ret$4;
1660
+ // Inline function 'kotlin.collections.associateTo' call
1661
+ var tmp1_associateTo = LinkedHashMap_init_$Create$_0(capacity);
1662
+ var tmp0_iterator_0 = forType.f();
1663
+ while (tmp0_iterator_0.g()) {
1664
+ var element_0 = tmp0_iterator_0.h();
1665
+ // Inline function 'kotlin.collections.plusAssign' call
1666
+ var tmp$ret$3;
1667
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>.<anonymous>' call
1668
+ tmp$ret$3 = to(element_0.h9_1, element_0.i9_1);
1669
+ var tmp0_plusAssign = tmp$ret$3;
1670
+ tmp1_associateTo.b4(tmp0_plusAssign.x3_1, tmp0_plusAssign.y3_1);
1671
+ }
1672
+ tmp$ret$4 = tmp1_associateTo;
1673
+ tmp$ret$5 = tmp$ret$4;
1674
+ tmp1_apply.m8('Available bindings for this type:\n' + descFun(tmp$ret$5, withOverrides));
1675
+ }
1676
+ tmp1_apply.m8('Registered in this DI container:\n' + descFun(this.f2d_1.m29(), withOverrides));
1677
+ }
1678
+ tmp$ret$6 = tmp1_apply;
1679
+ tmp$ret$7 = tmp$ret$6.toString();
1680
+ var description = tmp$ret$7;
1681
+ throw new NotFoundException(key, description);
1682
+ }
1683
+ var tmp$ret$10;
1684
+ // Inline function 'kotlin.collections.associate' call
1685
+ var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(result, 10)), 16);
1686
+ var tmp$ret$9;
1687
+ // Inline function 'kotlin.collections.associateTo' call
1688
+ var tmp3_associateTo = LinkedHashMap_init_$Create$_0(capacity_0);
1689
+ var tmp0_iterator_1 = result.f();
1690
+ while (tmp0_iterator_1.g()) {
1691
+ var element_1 = tmp0_iterator_1.h();
1692
+ // Inline function 'kotlin.collections.plusAssign' call
1693
+ var tmp$ret$8;
1694
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1695
+ tmp$ret$8 = to(element_1.h9_1, ensureNotNull(this.f2d_1.r29(element_1.h9_1)).i9_1);
1696
+ var tmp2_plusAssign = tmp$ret$8;
1697
+ tmp3_associateTo.b4(tmp2_plusAssign.x3_1, tmp2_plusAssign.y3_1);
1698
+ }
1699
+ tmp$ret$9 = tmp3_associateTo;
1700
+ tmp$ret$10 = tmp$ret$9;
1701
+ var potentials = tmp$ret$10;
1702
+ var tmp$ret$15;
1703
+ // Inline function 'kotlin.collections.filter' call
1704
+ var tmp5_filter = this.f2d_1.m29();
1705
+ var tmp$ret$14;
1706
+ // Inline function 'kotlin.collections.filterTo' call
1707
+ var tmp4_filterTo = LinkedHashMap_init_$Create$();
1708
+ var tmp$ret$11;
1709
+ // Inline function 'kotlin.collections.iterator' call
1710
+ tmp$ret$11 = tmp5_filter.q().f();
1711
+ var tmp0_iterator_2 = tmp$ret$11;
1712
+ while (tmp0_iterator_2.g()) {
1713
+ var element_2 = tmp0_iterator_2.h();
1714
+ var tmp$ret$13;
1715
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1716
+ var tmp$ret$12;
1717
+ // Inline function 'kotlin.collections.component1' call
1718
+ tmp$ret$12 = element_2.j1();
1719
+ var key_0 = tmp$ret$12;
1720
+ tmp$ret$13 = !potentials.a2().a1(key_0);
1721
+ if (tmp$ret$13) {
1722
+ tmp4_filterTo.b4(element_2.j1(), element_2.l1());
1723
+ }
1724
+ }
1725
+ tmp$ret$14 = tmp4_filterTo;
1726
+ tmp$ret$15 = tmp$ret$14;
1727
+ var others = tmp$ret$15;
1728
+ throw new NotFoundException(key, '' + potentials.i() + ' bindings found that match ' + key + ':\n' + descFun(potentials, withOverrides) + 'Other bindings registered in DI:\n' + descFun(others, withOverrides));
1729
+ };
1730
+ function bindFullDescription$factory_0($b0) {
1731
+ return getPropertyCallableRef('bindFullDescription', 0, KProperty0, function () {
1732
+ return $b0.f28();
1733
+ }, null);
1734
+ }
1735
+ function bindDescription$factory_0($b0) {
1736
+ return getPropertyCallableRef('bindDescription', 0, KProperty0, function () {
1737
+ return $b0.d28();
1738
+ }, null);
1739
+ }
1740
+ function fullDescription$factory_0($b0) {
1741
+ return getPropertyCallableRef('fullDescription', 0, KProperty0, function () {
1742
+ return $b0.g28();
1743
+ }, null);
1744
+ }
1745
+ function description$factory_0($b0) {
1746
+ return getPropertyCallableRef('description', 0, KProperty0, function () {
1747
+ return $b0.e28();
1748
+ }, null);
1749
+ }
1750
+ function initCallbacks$factory($b0) {
1751
+ return getPropertyCallableRef('initCallbacks', 0, KMutableProperty0, function () {
1752
+ return $b0.j2d_1;
1753
+ }, function (value) {
1754
+ $b0.j2d_1 = value;
1755
+ return Unit_getInstance();
1756
+ });
1757
+ }
1758
+ function newBuilder($this, allowSilentOverride, init) {
1759
+ var tmp$ret$0;
1760
+ // Inline function 'kotlin.apply' call
1761
+ var tmp0_apply = new DIMainBuilderImpl(allowSilentOverride);
1762
+ // Inline function 'kotlin.contracts.contract' call
1763
+ init(tmp0_apply);
1764
+ tmp$ret$0 = tmp0_apply;
1765
+ return tmp$ret$0;
1766
+ }
1767
+ function DIImpl_init_$Init$(builder, runCallbacks, $this) {
1768
+ DIImpl.call($this, DIContainerImpl_init_$Create$(builder.d2c(), builder.n29(), builder.w2b(), builder.x2b(), runCallbacks));
1769
+ return $this;
1770
+ }
1771
+ function DIImpl_init_$Init$_0(allowSilentOverride, init, $this) {
1772
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
1773
+ DIImpl_init_$Init$(newBuilder(Companion_getInstance_4(), allowSilentOverride, init), true, $this);
1774
+ return $this;
1775
+ }
1776
+ function DIImpl_init_$Create$(allowSilentOverride, init) {
1777
+ return DIImpl_init_$Init$_0(allowSilentOverride, init, objectCreate(protoOf(DIImpl)));
1778
+ }
1779
+ function Companion_3() {
1780
+ Companion_instance_3 = this;
1781
+ }
1782
+ var Companion_instance_3;
1783
+ function Companion_getInstance_4() {
1784
+ if (Companion_instance_3 == null)
1785
+ new Companion_3();
1786
+ return Companion_instance_3;
1787
+ }
1788
+ function DIImpl$container$delegate$lambda(this$0) {
1789
+ return function () {
1790
+ var tmp;
1791
+ if (!(this$0.m2d_1.j2d_1 == null)) {
1792
+ throw IllegalStateException_init_$Create$('DI has not been initialized');
1793
+ }
1794
+ return this$0.m2d_1;
1795
+ };
1796
+ }
1797
+ function DIImpl(_container) {
1798
+ Companion_getInstance_4();
1799
+ this.m2d_1 = _container;
1800
+ var tmp = this;
1801
+ tmp.n2d_1 = lazy(DIImpl$container$delegate$lambda(this));
1802
+ }
1803
+ protoOf(DIImpl).x28 = function () {
1804
+ var tmp$ret$0;
1805
+ // Inline function 'kotlin.getValue' call
1806
+ var tmp0_getValue = container$factory();
1807
+ tmp$ret$0 = this.n2d_1.l1();
1808
+ return tmp$ret$0;
1809
+ };
1810
+ function BindingDIImpl(directDI, key, overrideLevel) {
1811
+ this.o2d_1 = directDI;
1812
+ this.p2d_1 = key;
1813
+ this.q2d_1 = overrideLevel;
1814
+ }
1815
+ protoOf(BindingDIImpl).y29 = function () {
1816
+ return this.o2d_1;
1817
+ };
1818
+ protoOf(BindingDIImpl).w28 = function () {
1819
+ return this.o2d_1.w28();
1820
+ };
1821
+ protoOf(BindingDIImpl).s29 = function () {
1822
+ return this.o2d_1.s29();
1823
+ };
1824
+ protoOf(BindingDIImpl).z29 = function (type, tag) {
1825
+ return this.o2d_1.z29(type, tag);
1826
+ };
1827
+ protoOf(BindingDIImpl).a2a = function (context) {
1828
+ return this.o2d_1.a2a(context);
1829
+ };
1830
+ protoOf(BindingDIImpl).z4 = function () {
1831
+ var tmp = this.y29().w28().y28().l1();
1832
+ return isObject(tmp) ? tmp : THROW_CCE();
1833
+ };
1834
+ protoOf(BindingDIImpl).i2b = function () {
1835
+ return new BindingDIImpl(this.y29().a2a(ErasedContext_getInstance()), this.p2d_1, this.q2d_1);
1836
+ };
1837
+ function container$factory() {
1838
+ return getPropertyCallableRef('container', 1, KProperty1, function (receiver) {
1839
+ return receiver.x28();
1840
+ }, null);
1841
+ }
1842
+ function findBySpecs($this, specs) {
1843
+ var bindSeq = asSequence($this.u2d_1);
1844
+ var specsBindType = specs.v29_1;
1845
+ if (!(specsBindType == null) ? !equals(specsBindType, Companion_getInstance().o27_1) : false) {
1846
+ var tmp = bindSeq;
1847
+ bindSeq = filter(tmp, DITreeImpl$findBySpecs$lambda(specsBindType));
1848
+ }
1849
+ var tmp_0 = bindSeq;
1850
+ var contextSeq = flatMap(tmp_0, DITreeImpl$findBySpecs$lambda_0);
1851
+ var specsContextType = specs.t29_1;
1852
+ if (!(specsContextType == null)) {
1853
+ var tmp_1 = contextSeq;
1854
+ contextSeq = mapNotNull(tmp_1, DITreeImpl$findBySpecs$lambda_1(specsContextType, $this));
1855
+ }
1856
+ var tmp_2 = contextSeq;
1857
+ var argSeq = flatMap(tmp_2, DITreeImpl$findBySpecs$lambda_2);
1858
+ var specsArgType = specs.u29_1;
1859
+ if (!(specsArgType == null)) {
1860
+ var tmp_3 = argSeq;
1861
+ argSeq = filter(tmp_3, DITreeImpl$findBySpecs$lambda_3(specsArgType));
1862
+ }
1863
+ var tmp_4 = argSeq;
1864
+ var tagSeq = flatMap(tmp_4, DITreeImpl$findBySpecs$lambda_4);
1865
+ var specsTag = specs.w29_1;
1866
+ if (!equals(specsTag, NoDefinedTag_getInstance())) {
1867
+ var tmp_5 = tagSeq;
1868
+ tagSeq = filter(tmp_5, DITreeImpl$findBySpecs$lambda_5(specsTag));
1869
+ }
1870
+ var tmp_6 = tagSeq;
1871
+ var resultSeq = map(tmp_6, DITreeImpl$findBySpecs$lambda_6);
1872
+ return toList(resultSeq);
1873
+ }
1874
+ function notInMap($this, result, request) {
1875
+ var tmp = result.m28();
1876
+ var tmp_0 = request.m28();
1877
+ var tmp_1 = $this.t2d_1.a2();
1878
+ return IllegalStateException_init_$Create$('Tree returned key ' + tmp + ' that is not in cache when searching for ' + tmp_0 + '.\nKeys in cache:\n' + joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, DITreeImpl$notInMap$lambda));
1879
+ }
1880
+ function DITreeImpl$findBySpecs$lambda($specsBindType) {
1881
+ return function (_name_for_destructuring_parameter_0__wldtmu) {
1882
+ var tmp$ret$0;
1883
+ // Inline function 'kotlin.collections.component1' call
1884
+ tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.j1();
1885
+ var bindType = tmp$ret$0;
1886
+ return bindType.x2d($specsBindType);
1887
+ };
1888
+ }
1889
+ function DITreeImpl$findBySpecs$lambda_0(_name_for_destructuring_parameter_0__wldtmu) {
1890
+ var tmp$ret$0;
1891
+ // Inline function 'kotlin.collections.component2' call
1892
+ tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.l1();
1893
+ var contextTree = tmp$ret$0;
1894
+ var tmp = asSequence(contextTree);
1895
+ return map(tmp, DITreeImpl$findBySpecs$lambda$lambda);
1896
+ }
1897
+ function DITreeImpl$findBySpecs$lambda$lambda(it) {
1898
+ return new Triple(it.j1(), it.l1(), null);
1899
+ }
1900
+ function DITreeImpl$findBySpecs$lambda_1($specsContextType, this$0) {
1901
+ return function (triple) {
1902
+ var tmp0_container = triple;
1903
+ var contextType = tmp0_container.z3();
1904
+ var tmp;
1905
+ if (contextType.x2d($specsContextType)) {
1906
+ tmp = triple;
1907
+ } else {
1908
+ var tmp$ret$1;
1909
+ $l$block: {
1910
+ // Inline function 'kotlin.collections.firstOrNull' call
1911
+ var tmp0_firstOrNull = this$0.w2d_1;
1912
+ var tmp0_iterator = tmp0_firstOrNull.f();
1913
+ while (tmp0_iterator.g()) {
1914
+ var element = tmp0_iterator.h();
1915
+ var tmp$ret$0;
1916
+ // Inline function 'org.kodein.di.internal.DITreeImpl.findBySpecs.<anonymous>.<anonymous>' call
1917
+ tmp$ret$0 = element.g2a().k27($specsContextType) ? contextType.x2d(element.o2a()) : false;
1918
+ if (tmp$ret$0) {
1919
+ tmp$ret$1 = element;
1920
+ break $l$block;
1921
+ }
1922
+ }
1923
+ tmp$ret$1 = null;
1924
+ }
1925
+ var translator = tmp$ret$1;
1926
+ tmp = !(translator == null) ? triple.m9(VOID, VOID, translator) : null;
1927
+ }
1928
+ return tmp;
1929
+ };
1930
+ }
1931
+ function DITreeImpl$findBySpecs$lambda_2(_name_for_destructuring_parameter_0__wldtmu) {
1932
+ var argumentTree = _name_for_destructuring_parameter_0__wldtmu.a4();
1933
+ var translator = _name_for_destructuring_parameter_0__wldtmu.k9();
1934
+ var tmp = asSequence(argumentTree);
1935
+ return map(tmp, DITreeImpl$findBySpecs$lambda$lambda_0(translator));
1936
+ }
1937
+ function DITreeImpl$findBySpecs$lambda$lambda_0($translator) {
1938
+ return function (it) {
1939
+ return new Triple(it.j1(), it.l1(), $translator);
1940
+ };
1941
+ }
1942
+ function DITreeImpl$findBySpecs$lambda_3($specsArgType) {
1943
+ return function (_name_for_destructuring_parameter_0__wldtmu) {
1944
+ var argType = _name_for_destructuring_parameter_0__wldtmu.z3();
1945
+ return argType.x2d($specsArgType);
1946
+ };
1947
+ }
1948
+ function DITreeImpl$findBySpecs$lambda_4(_name_for_destructuring_parameter_0__wldtmu) {
1949
+ var tagTree = _name_for_destructuring_parameter_0__wldtmu.a4();
1950
+ var translator = _name_for_destructuring_parameter_0__wldtmu.k9();
1951
+ var tmp = asSequence(tagTree);
1952
+ return map(tmp, DITreeImpl$findBySpecs$lambda$lambda_1(translator));
1953
+ }
1954
+ function DITreeImpl$findBySpecs$lambda$lambda_1($translator) {
1955
+ return function (it) {
1956
+ return new Triple(it.j1(), it.l1(), $translator);
1957
+ };
1958
+ }
1959
+ function DITreeImpl$findBySpecs$lambda_5($specsTag) {
1960
+ return function (_name_for_destructuring_parameter_0__wldtmu) {
1961
+ var tag = _name_for_destructuring_parameter_0__wldtmu.z3();
1962
+ return equals(tag, $specsTag);
1963
+ };
1964
+ }
1965
+ function DITreeImpl$findBySpecs$lambda_6(_name_for_destructuring_parameter_0__wldtmu) {
1966
+ var key = _name_for_destructuring_parameter_0__wldtmu.a4();
1967
+ var translator = _name_for_destructuring_parameter_0__wldtmu.k9();
1968
+ return to(key, translator);
1969
+ }
1970
+ function DITreeImpl$notInMap$lambda(it) {
1971
+ return it.m28();
1972
+ }
1973
+ function DITreeImpl(map, externalSources, registeredTranslators) {
1974
+ this.r2d_1 = externalSources;
1975
+ this.s2d_1 = registeredTranslators;
1976
+ this.t2d_1 = newConcurrentMap();
1977
+ this.u2d_1 = HashMap_init_$Create$();
1978
+ this.w2d_1 = ArrayList_init_$Create$_1(this.s2d_1);
1979
+ // Inline function 'kotlin.collections.forEach' call
1980
+ var tmp$ret$0;
1981
+ // Inline function 'kotlin.collections.iterator' call
1982
+ tmp$ret$0 = map.q().f();
1983
+ var tmp0_iterator = tmp$ret$0;
1984
+ while (tmp0_iterator.g()) {
1985
+ var element = tmp0_iterator.h();
1986
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
1987
+ var tmp$ret$1;
1988
+ // Inline function 'kotlin.collections.component1' call
1989
+ tmp$ret$1 = element.j1();
1990
+ var key = tmp$ret$1;
1991
+ var tmp$ret$2;
1992
+ // Inline function 'kotlin.collections.component2' call
1993
+ tmp$ret$2 = element.l1();
1994
+ var bindings = tmp$ret$2;
1995
+ var tmp$ret$5;
1996
+ // Inline function 'kotlin.collections.map' call
1997
+ var tmp$ret$4;
1998
+ // Inline function 'kotlin.collections.mapTo' call
1999
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(bindings, 10));
2000
+ var tmp0_iterator_0 = bindings.f();
2001
+ while (tmp0_iterator_0.g()) {
2002
+ var item = tmp0_iterator_0.h();
2003
+ var tmp$ret$3;
2004
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
2005
+ var tmp0_subject = item;
2006
+ var tmp;
2007
+ if (tmp0_subject instanceof DIDefinition) {
2008
+ tmp = item;
2009
+ } else {
2010
+ tmp = new DIDefinition(item.w27_1, item.x27_1, this);
2011
+ }
2012
+ tmp$ret$3 = tmp;
2013
+ tmp0_mapTo.a(tmp$ret$3);
2014
+ }
2015
+ tmp$ret$4 = tmp0_mapTo;
2016
+ tmp$ret$5 = tmp$ret$4;
2017
+ var definitions = tmp$ret$5;
2018
+ // Inline function 'kotlin.collections.set' call
2019
+ var tmp1_set = this.t2d_1;
2020
+ var tmp2_set = new Triple(key, definitions, null);
2021
+ tmp1_set.b4(key, tmp2_set);
2022
+ var typeChecker = first(bindings).w27_1.j2a() ? new Down(key.a28_1) : new Up(key.a28_1);
2023
+ var tmp$ret$7;
2024
+ // Inline function 'kotlin.collections.getOrPut' call
2025
+ var tmp3_getOrPut = this.u2d_1;
2026
+ var value = tmp3_getOrPut.z1(typeChecker);
2027
+ var tmp_0;
2028
+ if (value == null) {
2029
+ var tmp$ret$6;
2030
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
2031
+ tmp$ret$6 = HashMap_init_$Create$();
2032
+ var answer = tmp$ret$6;
2033
+ tmp3_getOrPut.b4(typeChecker, answer);
2034
+ tmp_0 = answer;
2035
+ } else {
2036
+ tmp_0 = value;
2037
+ }
2038
+ tmp$ret$7 = tmp_0;
2039
+ var contextTree = tmp$ret$7;
2040
+ var tmp$ret$9;
2041
+ // Inline function 'kotlin.collections.getOrPut' call
2042
+ var tmp4_getOrPut = new Down(key.y27_1);
2043
+ var value_0 = contextTree.z1(tmp4_getOrPut);
2044
+ var tmp_1;
2045
+ if (value_0 == null) {
2046
+ var tmp$ret$8;
2047
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
2048
+ tmp$ret$8 = HashMap_init_$Create$();
2049
+ var answer_0 = tmp$ret$8;
2050
+ contextTree.b4(tmp4_getOrPut, answer_0);
2051
+ tmp_1 = answer_0;
2052
+ } else {
2053
+ tmp_1 = value_0;
2054
+ }
2055
+ tmp$ret$9 = tmp_1;
2056
+ var argumentTree = tmp$ret$9;
2057
+ var tmp$ret$11;
2058
+ // Inline function 'kotlin.collections.getOrPut' call
2059
+ var tmp5_getOrPut = new Down(key.z27_1);
2060
+ var value_1 = argumentTree.z1(tmp5_getOrPut);
2061
+ var tmp_2;
2062
+ if (value_1 == null) {
2063
+ var tmp$ret$10;
2064
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
2065
+ tmp$ret$10 = HashMap_init_$Create$();
2066
+ var answer_1 = tmp$ret$10;
2067
+ argumentTree.b4(tmp5_getOrPut, answer_1);
2068
+ tmp_2 = answer_1;
2069
+ } else {
2070
+ tmp_2 = value_1;
2071
+ }
2072
+ tmp$ret$11 = tmp_2;
2073
+ var tagTree = tmp$ret$11;
2074
+ // Inline function 'kotlin.collections.set' call
2075
+ var tmp6_set = key.b28_1;
2076
+ tagTree.b4(tmp6_set, key);
2077
+ }
2078
+ var tmp_3 = this;
2079
+ var tmp$ret$16;
2080
+ // Inline function 'kotlin.collections.mapValues' call
2081
+ var tmp2_mapValues = this.t2d_1;
2082
+ var tmp$ret$15;
2083
+ // Inline function 'kotlin.collections.mapValuesTo' call
2084
+ var tmp1_mapValuesTo = LinkedHashMap_init_$Create$_0(mapCapacity(tmp2_mapValues.i()));
2085
+ var tmp$ret$14;
2086
+ // Inline function 'kotlin.collections.associateByTo' call
2087
+ var tmp0_associateByTo = tmp2_mapValues.q();
2088
+ var tmp0_iterator_1 = tmp0_associateByTo.f();
2089
+ while (tmp0_iterator_1.g()) {
2090
+ var element_0 = tmp0_iterator_1.h();
2091
+ var tmp$ret$12;
2092
+ // Inline function 'kotlin.collections.mapValuesTo.<anonymous>' call
2093
+ tmp$ret$12 = element_0.j1();
2094
+ var tmp_4 = tmp$ret$12;
2095
+ var tmp$ret$13;
2096
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
2097
+ tmp$ret$13 = element_0.l1().i9_1;
2098
+ tmp1_mapValuesTo.b4(tmp_4, tmp$ret$13);
2099
+ }
2100
+ tmp$ret$14 = tmp1_mapValuesTo;
2101
+ tmp$ret$15 = tmp$ret$14;
2102
+ tmp$ret$16 = tmp$ret$15;
2103
+ tmp_3.v2d_1 = HashMap_init_$Create$_0(tmp$ret$16);
2104
+ $l$loop: while (true) {
2105
+ var added = ArrayList_init_$Create$();
2106
+ var tmp0_iterator_2 = this.w2d_1.f();
2107
+ while (tmp0_iterator_2.g()) {
2108
+ var src = tmp0_iterator_2.h();
2109
+ var tmp1_iterator = this.w2d_1.f();
2110
+ while (tmp1_iterator.g()) {
2111
+ var dst = tmp1_iterator.h();
2112
+ if (dst.g2a().k27(src.o2a()) ? !equals(src.g2a(), dst.o2a()) : false) {
2113
+ var tmp$ret$17;
2114
+ $l$block_0: {
2115
+ // Inline function 'kotlin.collections.none' call
2116
+ var tmp3_none = this.w2d_1;
2117
+ var tmp_5;
2118
+ if (isInterface(tmp3_none, Collection)) {
2119
+ tmp_5 = tmp3_none.l();
2120
+ } else {
2121
+ tmp_5 = false;
2122
+ }
2123
+ if (tmp_5) {
2124
+ tmp$ret$17 = true;
2125
+ break $l$block_0;
2126
+ }
2127
+ var tmp0_iterator_3 = tmp3_none.f();
2128
+ while (tmp0_iterator_3.g()) {
2129
+ var element_1 = tmp0_iterator_3.h();
2130
+ var tmp$ret$18;
2131
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
2132
+ tmp$ret$18 = equals(element_1.g2a(), src.g2a()) ? equals(element_1.o2a(), dst.o2a()) : false;
2133
+ if (tmp$ret$18) {
2134
+ tmp$ret$17 = false;
2135
+ break $l$block_0;
2136
+ }
2137
+ }
2138
+ tmp$ret$17 = true;
2139
+ }
2140
+ if (tmp$ret$17) {
2141
+ // Inline function 'kotlin.collections.plusAssign' call
2142
+ var tmp_6 = isInterface(src, ContextTranslator) ? src : THROW_CCE();
2143
+ var tmp4_plusAssign = new CompositeContextTranslator(tmp_6, isInterface(dst, ContextTranslator) ? dst : THROW_CCE());
2144
+ added.a(tmp4_plusAssign);
2145
+ }
2146
+ }
2147
+ }
2148
+ }
2149
+ var tmp2_this = this;
2150
+ // Inline function 'kotlin.collections.plusAssign' call
2151
+ var tmp5_plusAssign = tmp2_this.w2d_1;
2152
+ addAll(tmp5_plusAssign, added);
2153
+ if (added.l())
2154
+ break $l$loop;
2155
+ }
2156
+ }
2157
+ protoOf(DITreeImpl).n29 = function () {
2158
+ return this.r2d_1;
2159
+ };
2160
+ protoOf(DITreeImpl).m29 = function () {
2161
+ return this.v2d_1;
2162
+ };
2163
+ protoOf(DITreeImpl).o29 = function (key, overrideLevel, all) {
2164
+ if (!all) {
2165
+ var tmp0_safe_receiver = this.t2d_1.z1(key);
2166
+ if (tmp0_safe_receiver == null)
2167
+ null;
2168
+ else {
2169
+ var tmp$ret$0;
2170
+ // Inline function 'kotlin.let' call
2171
+ // Inline function 'kotlin.contracts.contract' call
2172
+ var realKey = tmp0_safe_receiver.z3();
2173
+ var list = tmp0_safe_receiver.a4();
2174
+ var translator = tmp0_safe_receiver.k9();
2175
+ var tmp0_elvis_lhs = getOrNull(list, overrideLevel);
2176
+ var tmp;
2177
+ if (tmp0_elvis_lhs == null) {
2178
+ return emptyList();
2179
+ } else {
2180
+ tmp = tmp0_elvis_lhs;
2181
+ }
2182
+ var definition = tmp;
2183
+ var tmp_0 = realKey instanceof Key ? realKey : THROW_CCE();
2184
+ var tmp_1 = definition instanceof DIDefinition ? definition : THROW_CCE();
2185
+ return listOf(new Triple(tmp_0, tmp_1, (translator == null ? true : isInterface(translator, ContextTranslator)) ? translator : THROW_CCE()));
2186
+ }
2187
+ if (!equals(key.y27_1, Companion_getInstance().o27_1)) {
2188
+ var anyContextKey = key.o28(Companion_getInstance().o27_1);
2189
+ var tmp1_safe_receiver = this.t2d_1.z1(anyContextKey);
2190
+ if (tmp1_safe_receiver == null)
2191
+ null;
2192
+ else {
2193
+ var tmp$ret$2;
2194
+ // Inline function 'kotlin.let' call
2195
+ // Inline function 'kotlin.contracts.contract' call
2196
+ var tmp$ret$1;
2197
+ $l$block: {
2198
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2199
+ var tmp0_container = tmp1_safe_receiver;
2200
+ var realKey_0 = tmp0_container.z3();
2201
+ var list_0 = tmp0_container.a4();
2202
+ var translator_0 = tmp0_container.k9();
2203
+ if (!(translator_0 == null) ? !equals(translator_0.g2a(), key.y27_1) : false) {
2204
+ tmp$ret$1 = Unit_getInstance();
2205
+ break $l$block;
2206
+ }
2207
+ // Inline function 'kotlin.collections.set' call
2208
+ var tmp0_set = this.t2d_1;
2209
+ tmp0_set.b4(key, tmp1_safe_receiver);
2210
+ var tmp1_elvis_lhs = getOrNull(list_0, overrideLevel);
2211
+ var tmp_2;
2212
+ if (tmp1_elvis_lhs == null) {
2213
+ return emptyList();
2214
+ } else {
2215
+ tmp_2 = tmp1_elvis_lhs;
2216
+ }
2217
+ var definition_0 = tmp_2;
2218
+ var tmp_3 = realKey_0 instanceof Key ? realKey_0 : THROW_CCE();
2219
+ var tmp_4 = definition_0 instanceof DIDefinition ? definition_0 : THROW_CCE();
2220
+ return listOf(new Triple(tmp_3, tmp_4, (translator_0 == null ? true : isInterface(translator_0, ContextTranslator)) ? translator_0 : THROW_CCE()));
2221
+ }
2222
+ tmp$ret$2 = tmp$ret$1;
2223
+ }
2224
+ }
2225
+ var tmp$ret$5;
2226
+ // Inline function 'kotlin.collections.filter' call
2227
+ var tmp1_filter = this.w2d_1;
2228
+ var tmp$ret$4;
2229
+ // Inline function 'kotlin.collections.filterTo' call
2230
+ var tmp0_filterTo = ArrayList_init_$Create$();
2231
+ var tmp0_iterator = tmp1_filter.f();
2232
+ while (tmp0_iterator.g()) {
2233
+ var element = tmp0_iterator.h();
2234
+ var tmp$ret$3;
2235
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2236
+ tmp$ret$3 = equals(element.g2a(), key.y27_1);
2237
+ if (tmp$ret$3) {
2238
+ tmp0_filterTo.a(element);
2239
+ }
2240
+ }
2241
+ tmp$ret$4 = tmp0_filterTo;
2242
+ tmp$ret$5 = tmp$ret$4;
2243
+ var tmp_5 = tmp$ret$5;
2244
+ var tmp$ret$8;
2245
+ // Inline function 'kotlin.collections.filter' call
2246
+ var tmp3_filter = this.w2d_1;
2247
+ var tmp$ret$7;
2248
+ // Inline function 'kotlin.collections.filterTo' call
2249
+ var tmp2_filterTo = ArrayList_init_$Create$();
2250
+ var tmp0_iterator_0 = tmp3_filter.f();
2251
+ while (tmp0_iterator_0.g()) {
2252
+ var element_0 = tmp0_iterator_0.h();
2253
+ var tmp$ret$6;
2254
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2255
+ tmp$ret$6 = equals(element_0.g2a(), Companion_getInstance().o27_1);
2256
+ if (tmp$ret$6) {
2257
+ tmp2_filterTo.a(element_0);
2258
+ }
2259
+ }
2260
+ tmp$ret$7 = tmp2_filterTo;
2261
+ tmp$ret$8 = tmp$ret$7;
2262
+ var applicableTranslators = plus(tmp_5, tmp$ret$8);
2263
+ var tmp2_iterator = applicableTranslators.f();
2264
+ while (tmp2_iterator.g()) {
2265
+ var translator_1 = tmp2_iterator.h();
2266
+ var translatedKey = new Key(translator_1.o2a(), key.z27_1, key.a28_1, key.b28_1);
2267
+ var tmp3_safe_receiver = this.t2d_1.z1(translatedKey);
2268
+ var tmp_6;
2269
+ if (tmp3_safe_receiver == null) {
2270
+ tmp_6 = null;
2271
+ } else {
2272
+ var tmp$ret$10;
2273
+ // Inline function 'kotlin.takeIf' call
2274
+ // Inline function 'kotlin.contracts.contract' call
2275
+ var tmp_7;
2276
+ var tmp$ret$9;
2277
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2278
+ tmp$ret$9 = tmp3_safe_receiver.j9_1 == null;
2279
+ if (tmp$ret$9) {
2280
+ tmp_7 = tmp3_safe_receiver;
2281
+ } else {
2282
+ tmp_7 = null;
2283
+ }
2284
+ tmp$ret$10 = tmp_7;
2285
+ tmp_6 = tmp$ret$10;
2286
+ }
2287
+ var tmp4_safe_receiver = tmp_6;
2288
+ if (tmp4_safe_receiver == null)
2289
+ null;
2290
+ else {
2291
+ var tmp$ret$12;
2292
+ // Inline function 'kotlin.let' call
2293
+ // Inline function 'kotlin.contracts.contract' call
2294
+ var tmp$ret$11;
2295
+ $l$block_0: {
2296
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2297
+ if (!(tmp4_safe_receiver.j9_1 == null)) {
2298
+ tmp$ret$11 = Unit_getInstance();
2299
+ break $l$block_0;
2300
+ }
2301
+ // Inline function 'kotlin.collections.set' call
2302
+ var tmp0_set_0 = this.t2d_1;
2303
+ var tmp1_set = tmp4_safe_receiver.m9(VOID, VOID, translator_1);
2304
+ tmp0_set_0.b4(key, tmp1_set);
2305
+ var tmp0_container_0 = tmp4_safe_receiver;
2306
+ var realKey_1 = tmp0_container_0.z3();
2307
+ var list_1 = tmp0_container_0.a4();
2308
+ var tmp1_elvis_lhs_0 = getOrNull(list_1, overrideLevel);
2309
+ var tmp_8;
2310
+ if (tmp1_elvis_lhs_0 == null) {
2311
+ return emptyList();
2312
+ } else {
2313
+ tmp_8 = tmp1_elvis_lhs_0;
2314
+ }
2315
+ var definition_1 = tmp_8;
2316
+ var tmp_9 = realKey_1 instanceof Key ? realKey_1 : THROW_CCE();
2317
+ var tmp_10 = definition_1 instanceof DIDefinition ? definition_1 : THROW_CCE();
2318
+ return listOf(new Triple(tmp_9, tmp_10, isInterface(translator_1, ContextTranslator) ? translator_1 : THROW_CCE()));
2319
+ }
2320
+ tmp$ret$12 = tmp$ret$11;
2321
+ }
2322
+ }
2323
+ }
2324
+ var result = findBySpecs(this, new SearchSpecs(key.y27_1, key.z27_1, key.a28_1, key.b28_1));
2325
+ if (result.i() === 1) {
2326
+ var tmp5_container = first(result);
2327
+ var realKey_2 = tmp5_container.z3();
2328
+ var translator_2 = tmp5_container.a4();
2329
+ // Inline function 'kotlin.collections.set' call
2330
+ var tmp4_set = this.t2d_1;
2331
+ var tmp6_safe_receiver = this.t2d_1.z1(realKey_2);
2332
+ var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.m9(VOID, VOID, translator_2);
2333
+ var tmp_11;
2334
+ if (tmp7_elvis_lhs == null) {
2335
+ throw notInMap(this, realKey_2, key);
2336
+ } else {
2337
+ tmp_11 = tmp7_elvis_lhs;
2338
+ }
2339
+ var tmp5_set = tmp_11;
2340
+ tmp4_set.b4(key, tmp5_set);
2341
+ }
2342
+ var tmp$ret$16;
2343
+ // Inline function 'kotlin.collections.mapNotNull' call
2344
+ var tmp$ret$15;
2345
+ // Inline function 'kotlin.collections.mapNotNullTo' call
2346
+ var tmp6_mapNotNullTo = ArrayList_init_$Create$();
2347
+ // Inline function 'kotlin.collections.forEach' call
2348
+ var tmp0_iterator_1 = result.f();
2349
+ while (tmp0_iterator_1.g()) {
2350
+ var element_1 = tmp0_iterator_1.h();
2351
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2352
+ var tmp$ret$13;
2353
+ $l$block_1: {
2354
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2355
+ var realKey_3 = element_1.z3();
2356
+ var translator_3 = element_1.a4();
2357
+ var tmp0_elvis_lhs_0 = this.t2d_1.z1(realKey_3);
2358
+ var tmp_12;
2359
+ if (tmp0_elvis_lhs_0 == null) {
2360
+ throw notInMap(this, realKey_3, key);
2361
+ } else {
2362
+ tmp_12 = tmp0_elvis_lhs_0;
2363
+ }
2364
+ var tmp1_container = tmp_12;
2365
+ var definitions = tmp1_container.a4();
2366
+ var tmp2_elvis_lhs = getOrNull(definitions, overrideLevel);
2367
+ var tmp_13;
2368
+ if (tmp2_elvis_lhs == null) {
2369
+ tmp$ret$13 = null;
2370
+ break $l$block_1;
2371
+ } else {
2372
+ tmp_13 = tmp2_elvis_lhs;
2373
+ }
2374
+ var definition_2 = tmp_13;
2375
+ var tmp_14 = realKey_3 instanceof Key ? realKey_3 : THROW_CCE();
2376
+ var tmp_15 = definition_2 instanceof DIDefinition ? definition_2 : THROW_CCE();
2377
+ tmp$ret$13 = new Triple(tmp_14, tmp_15, (translator_3 == null ? true : isInterface(translator_3, ContextTranslator)) ? translator_3 : THROW_CCE());
2378
+ }
2379
+ var tmp0_safe_receiver_0 = tmp$ret$13;
2380
+ if (tmp0_safe_receiver_0 == null)
2381
+ null;
2382
+ else {
2383
+ var tmp$ret$14;
2384
+ // Inline function 'kotlin.let' call
2385
+ // Inline function 'kotlin.contracts.contract' call
2386
+ tmp6_mapNotNullTo.a(tmp0_safe_receiver_0);
2387
+ tmp$ret$14 = Unit_getInstance();
2388
+ }
2389
+ }
2390
+ tmp$ret$15 = tmp6_mapNotNullTo;
2391
+ tmp$ret$16 = tmp$ret$15;
2392
+ return tmp$ret$16;
2393
+ };
2394
+ protoOf(DITreeImpl).q29 = function (search) {
2395
+ var result = findBySpecs(this, search);
2396
+ var tmp$ret$2;
2397
+ // Inline function 'kotlin.collections.map' call
2398
+ var tmp$ret$1;
2399
+ // Inline function 'kotlin.collections.mapTo' call
2400
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(result, 10));
2401
+ var tmp0_iterator = result.f();
2402
+ while (tmp0_iterator.g()) {
2403
+ var item = tmp0_iterator.h();
2404
+ var tmp$ret$0;
2405
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2406
+ var key = item.z3();
2407
+ var translator = item.a4();
2408
+ tmp$ret$0 = new Triple(key, ensureNotNull(this.t2d_1.z1(key)).i9_1, translator);
2409
+ tmp0_mapTo.a(tmp$ret$0);
2410
+ }
2411
+ tmp$ret$1 = tmp0_mapTo;
2412
+ tmp$ret$2 = tmp$ret$1;
2413
+ return tmp$ret$2;
2414
+ };
2415
+ protoOf(DITreeImpl).r29 = function (key) {
2416
+ var tmp = this.t2d_1.z1(key);
2417
+ return (tmp == null ? true : tmp instanceof Triple) ? tmp : THROW_CCE();
2418
+ };
2419
+ function Down(type) {
2420
+ TypeChecker.call(this);
2421
+ this.y2d_1 = type;
2422
+ this.z2d_1 = equals(this.y2d_1, Companion_getInstance().o27_1);
2423
+ }
2424
+ protoOf(Down).x2d = function (other) {
2425
+ return this.z2d_1 ? true : this.y2d_1.k27(other);
2426
+ };
2427
+ protoOf(Down).toString = function () {
2428
+ return 'Down(type=' + this.y2d_1 + ')';
2429
+ };
2430
+ protoOf(Down).hashCode = function () {
2431
+ return hashCode(this.y2d_1);
2432
+ };
2433
+ protoOf(Down).equals = function (other) {
2434
+ if (this === other)
2435
+ return true;
2436
+ if (!(other instanceof Down))
2437
+ return false;
2438
+ var tmp0_other_with_cast = other instanceof Down ? other : THROW_CCE();
2439
+ if (!equals(this.y2d_1, tmp0_other_with_cast.y2d_1))
2440
+ return false;
2441
+ return true;
2442
+ };
2443
+ function Up(type) {
2444
+ TypeChecker.call(this);
2445
+ this.a2e_1 = type;
2446
+ }
2447
+ protoOf(Up).x2d = function (other) {
2448
+ return equals(other, Companion_getInstance().o27_1) ? true : other.k27(this.a2e_1);
2449
+ };
2450
+ protoOf(Up).toString = function () {
2451
+ return 'Up(type=' + this.a2e_1 + ')';
2452
+ };
2453
+ protoOf(Up).hashCode = function () {
2454
+ return hashCode(this.a2e_1);
2455
+ };
2456
+ protoOf(Up).equals = function (other) {
2457
+ if (this === other)
2458
+ return true;
2459
+ if (!(other instanceof Up))
2460
+ return false;
2461
+ var tmp0_other_with_cast = other instanceof Up ? other : THROW_CCE();
2462
+ if (!equals(this.a2e_1, tmp0_other_with_cast.a2e_1))
2463
+ return false;
2464
+ return true;
2465
+ };
2466
+ function TypeChecker() {
2467
+ }
2468
+ function DirectDIBaseImpl(container, context) {
2469
+ this.b2e_1 = container;
2470
+ this.c2e_1 = context;
2471
+ }
2472
+ protoOf(DirectDIBaseImpl).x28 = function () {
2473
+ return this.b2e_1;
2474
+ };
2475
+ protoOf(DirectDIBaseImpl).y29 = function () {
2476
+ return this;
2477
+ };
2478
+ protoOf(DirectDIBaseImpl).s29 = function () {
2479
+ var tmp = this.x28();
2480
+ return On(new DIImpl(tmp instanceof DIContainerImpl ? tmp : THROW_CCE()), this.c2e_1);
2481
+ };
2482
+ protoOf(DirectDIBaseImpl).a2a = function (context) {
2483
+ return new DirectDIImpl(this.x28(), context);
2484
+ };
2485
+ protoOf(DirectDIBaseImpl).z29 = function (type, tag) {
2486
+ var tmp = this.x28();
2487
+ var tmp$ret$0;
2488
+ // Inline function 'org.kodein.di.internal.anyType' call
2489
+ var tmp0__get_anyType__cravgl = this.c2e_1;
2490
+ var tmp_0 = tmp0__get_anyType__cravgl.c29();
2491
+ tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
2492
+ return tmp.i29(new Key(tmp$ret$0, Companion_getInstance().n27_1, type, tag), this.c2e_1.l1())();
2493
+ };
2494
+ function DIProperty$provideDelegate$lambda($receiver, this$0, $prop) {
2495
+ return function () {
2496
+ var tmp;
2497
+ if (!($receiver == null) ? this$0.e2e_1 === get_AnyDIContext() : false) {
2498
+ var tmp_0 = Companion_getInstance_1();
2499
+ var tmp_1 = erasedOf($receiver);
2500
+ tmp = tmp_0.d29(isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(), $receiver);
2501
+ } else {
2502
+ tmp = this$0.e2e_1;
2503
+ }
2504
+ var context = tmp;
2505
+ return this$0.f2e_1(context, $prop.callableName);
2506
+ };
2507
+ }
2508
+ function DIProperty(trigger, originalContext, get) {
2509
+ this.d2e_1 = trigger;
2510
+ this.e2e_1 = originalContext;
2511
+ this.f2e_1 = get;
2512
+ }
2513
+ protoOf(DIProperty).g2e = function (receiver, prop) {
2514
+ var tmp$ret$0;
2515
+ // Inline function 'kotlin.also' call
2516
+ var tmp0_also = lazy(DIProperty$provideDelegate$lambda(receiver, this, prop));
2517
+ // Inline function 'kotlin.contracts.contract' call
2518
+ // Inline function 'org.kodein.di.DIProperty.provideDelegate.<anonymous>' call
2519
+ var tmp0_safe_receiver = this.d2e_1;
2520
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h2e_1;
2521
+ if (tmp1_safe_receiver == null)
2522
+ null;
2523
+ else
2524
+ tmp1_safe_receiver.a(tmp0_also);
2525
+ tmp$ret$0 = tmp0_also;
2526
+ return tmp$ret$0;
2527
+ };
2528
+ function DirectDIImpl(container, context) {
2529
+ DirectDIBaseImpl.call(this, container, context);
2530
+ }
2531
+ function newConcurrentMap() {
2532
+ return HashMap_init_$Create$();
2533
+ }
2534
+ function newLinkedList() {
2535
+ return ArrayList_init_$Create$();
2536
+ }
2537
+ //region block: post-declaration
2538
+ protoOf(Singleton).h2a = get_argType;
2539
+ protoOf(Singleton).e28 = get_description;
2540
+ protoOf(Singleton).g28 = get_fullDescription;
2541
+ protoOf(Singleton).j2a = get_supportSubTypes;
2542
+ protoOf(Provider).h2a = get_argType;
2543
+ protoOf(Provider).e2a = factoryFullName;
2544
+ protoOf(Provider).f2a = get_scope;
2545
+ protoOf(Provider).e28 = get_description;
2546
+ protoOf(Provider).g28 = get_fullDescription;
2547
+ protoOf(Provider).j2a = get_supportSubTypes;
2548
+ protoOf(DIBuilderImpl).r28 = import$default;
2549
+ protoOf(DIMainBuilderImpl).r28 = import$default;
2550
+ protoOf(DIContainerImpl).k29 = factory$default;
2551
+ protoOf(DIContainerImpl).l29 = provider;
2552
+ protoOf(DIContainerImpl).i29 = provider$default;
2553
+ protoOf(DIImpl).w28 = get_di;
2554
+ protoOf(DIImpl).y28 = get_diContext;
2555
+ protoOf(DIImpl).z28 = get_diTrigger;
2556
+ protoOf(DITreeImpl).p29 = find$default;
2557
+ protoOf(DirectDIBaseImpl).w28 = get_di_0;
2558
+ protoOf(DirectDIImpl).w28 = get_di_0;
2559
+ //endregion
2560
+ //region block: exports
2561
+ _.$_$ = _.$_$ || {};
2562
+ _.$_$.a = Module_init_$Create$;
2563
+ _.$_$.b = Companion_getInstance_0;
2564
+ _.$_$.c = Provider;
2565
+ _.$_$.d = Singleton;
2566
+ _.$_$.e = Instance;
2567
+ _.$_$.f = get_direct;
2568
+ //endregion
2569
+ return _;
2570
+ }));
2571
+
2572
+ //# sourceMappingURL=Kodein-kodein-di.js.map