raspberry_games_server_game_logic 1.8.248

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 (68) hide show
  1. package/Kosi-Kaverit-kaverit.js +339 -0
  2. package/Kosi-Kaverit-kaverit.js.map +1 -0
  3. package/Kosi-Kodein-kodein-di.js +2389 -0
  4. package/Kosi-Kodein-kodein-di.js.map +1 -0
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +6215 -0
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  7. package/Logic_Debertz-core.js +6885 -0
  8. package/Logic_Debertz-core.js.map +1 -0
  9. package/Logic_Debertz-engine.js +52055 -0
  10. package/Logic_Debertz-engine.js.map +1 -0
  11. package/Logic_Debertz-game_server.d.ts +1918 -0
  12. package/Logic_Debertz-game_server.js +5140 -0
  13. package/Logic_Debertz-game_server.js.map +1 -0
  14. package/kotlin-kotlin-stdlib.js +15597 -0
  15. package/kotlin-kotlin-stdlib.js.map +1 -0
  16. package/kotlin-kotlinx-atomicfu-runtime.js +15 -0
  17. package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
  18. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  19. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  20. package/kotlinx-atomicfu.js +276 -0
  21. package/kotlinx-atomicfu.js.map +1 -0
  22. package/kotlinx-coroutines-core.js +11628 -0
  23. package/kotlinx-coroutines-core.js.map +1 -0
  24. package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
  25. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  26. package/kotlinx-io-kotlinx-io-core.js +1557 -0
  27. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  28. package/kotlinx-serialization-kotlinx-serialization-core.js +6315 -0
  29. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  30. package/kotlinx-serialization-kotlinx-serialization-json.js +5092 -0
  31. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  32. package/ktor-ktor-client-content-negotiation.js +713 -0
  33. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  34. package/ktor-ktor-client-core.js +7235 -0
  35. package/ktor-ktor-client-core.js.map +1 -0
  36. package/ktor-ktor-client-js.js +15 -0
  37. package/ktor-ktor-client-js.js.map +1 -0
  38. package/ktor-ktor-client-logging.js +1530 -0
  39. package/ktor-ktor-client-logging.js.map +1 -0
  40. package/ktor-ktor-events.js +97 -0
  41. package/ktor-ktor-events.js.map +1 -0
  42. package/ktor-ktor-http.js +3285 -0
  43. package/ktor-ktor-http.js.map +1 -0
  44. package/ktor-ktor-io.js +6463 -0
  45. package/ktor-ktor-io.js.map +1 -0
  46. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  47. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  48. package/ktor-ktor-serialization-kotlinx.js +893 -0
  49. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  50. package/ktor-ktor-serialization.js +395 -0
  51. package/ktor-ktor-serialization.js.map +1 -0
  52. package/ktor-ktor-utils.js +2659 -0
  53. package/ktor-ktor-utils.js.map +1 -0
  54. package/ktor-ktor-websocket-serialization.js +15 -0
  55. package/ktor-ktor-websocket-serialization.js.map +1 -0
  56. package/ktor-ktor-websockets.js +466 -0
  57. package/ktor-ktor-websockets.js.map +1 -0
  58. package/package.json +13 -0
  59. package/raspberry-cardgame-lib-core.js +1429 -0
  60. package/raspberry-cardgame-lib-core.js.map +1 -0
  61. package/raspberry-cardgame-lib-logger.js +423 -0
  62. package/raspberry-cardgame-lib-logger.js.map +1 -0
  63. package/raspberry-cardgame-lib-random.js +3060 -0
  64. package/raspberry-cardgame-lib-random.js.map +1 -0
  65. package/secure-random-secure-random.js +173 -0
  66. package/secure-random-secure-random.js.map +1 -0
  67. package/uuid.js +163 -0
  68. package/uuid.js.map +1 -0
@@ -0,0 +1,2389 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './Kosi-Kaverit-kaverit.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Kosi-Kaverit-kaverit.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'Kosi-Kodein-kodein-di'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Kosi-Kodein-kodein-di'.");
9
+ }
10
+ if (typeof globalThis['Kosi-Kaverit-kaverit'] === 'undefined') {
11
+ throw new Error("Error loading module 'Kosi-Kodein-kodein-di'. Its dependency 'Kosi-Kaverit-kaverit' was not found. Please, check whether 'Kosi-Kaverit-kaverit' is loaded prior to 'Kosi-Kodein-kodein-di'.");
12
+ }
13
+ globalThis['Kosi-Kodein-kodein-di'] = factory(typeof globalThis['Kosi-Kodein-kodein-di'] === 'undefined' ? {} : globalThis['Kosi-Kodein-kodein-di'], globalThis['kotlin-kotlin-stdlib'], globalThis['Kosi-Kaverit-kaverit']);
14
+ }
15
+ }(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.$_$.uc;
20
+ var initMetadataForClass = kotlin_kotlin.$_$.tb;
21
+ var VOID = kotlin_kotlin.$_$.f;
22
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
23
+ var first = kotlin_kotlin.$_$.u7;
24
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
25
+ var Unit_instance = kotlin_kotlin.$_$.p5;
26
+ var filterNotNull = kotlin_kotlin.$_$.q7;
27
+ var sorted = kotlin_kotlin.$_$.l9;
28
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
29
+ var repeat = kotlin_kotlin.$_$.ue;
30
+ var ensureNotNull = kotlin_kotlin.$_$.ih;
31
+ var KProperty1 = kotlin_kotlin.$_$.pd;
32
+ var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
33
+ var toString = kotlin_kotlin.$_$.vh;
34
+ var Companion_getInstance = kotlin_org_kodein_type_kaverit.$_$.a;
35
+ var equals = kotlin_kotlin.$_$.lb;
36
+ var objectCreate = kotlin_kotlin.$_$.tc;
37
+ var RuntimeException = kotlin_kotlin.$_$.qg;
38
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.h2;
39
+ var captureStack = kotlin_kotlin.$_$.db;
40
+ var hashCode = kotlin_kotlin.$_$.sb;
41
+ var THROW_CCE = kotlin_kotlin.$_$.rg;
42
+ var initMetadataForInterface = kotlin_kotlin.$_$.wb;
43
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
44
+ var toString_0 = kotlin_kotlin.$_$.yc;
45
+ var getBooleanHashCode = kotlin_kotlin.$_$.ob;
46
+ var getStringHashCode = kotlin_kotlin.$_$.rb;
47
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
48
+ var initMetadataForObject = kotlin_kotlin.$_$.yb;
49
+ var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
50
+ var isInterface = kotlin_kotlin.$_$.hc;
51
+ var joinToString = kotlin_kotlin.$_$.f8;
52
+ var erasedOf = kotlin_org_kodein_type_kaverit.$_$.c;
53
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
54
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.t;
55
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.q;
56
+ var charSequenceLength = kotlin_kotlin.$_$.hb;
57
+ var Enum = kotlin_kotlin.$_$.hg;
58
+ var KtMap = kotlin_kotlin.$_$.a6;
59
+ var listOf = kotlin_kotlin.$_$.p8;
60
+ var plus = kotlin_kotlin.$_$.z8;
61
+ var emptyList = kotlin_kotlin.$_$.n7;
62
+ var plus_0 = kotlin_kotlin.$_$.a9;
63
+ var checkIndexOverflow = kotlin_kotlin.$_$.r6;
64
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.x2;
65
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
66
+ var mapCapacity = kotlin_kotlin.$_$.r8;
67
+ var coerceAtLeast = kotlin_kotlin.$_$.dd;
68
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.v;
69
+ var to = kotlin_kotlin.$_$.wh;
70
+ var KProperty0 = kotlin_kotlin.$_$.od;
71
+ var lazy = kotlin_kotlin.$_$.oh;
72
+ var asSequence = kotlin_kotlin.$_$.l6;
73
+ var filter = kotlin_kotlin.$_$.rd;
74
+ var flatMap = kotlin_kotlin.$_$.td;
75
+ var mapNotNull = kotlin_kotlin.$_$.ud;
76
+ var map = kotlin_kotlin.$_$.vd;
77
+ var toList = kotlin_kotlin.$_$.wd;
78
+ var Triple = kotlin_kotlin.$_$.tg;
79
+ var ArrayList_init_$Create$_1 = kotlin_kotlin.$_$.o;
80
+ var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.r;
81
+ var Collection = kotlin_kotlin.$_$.r5;
82
+ var addAll = kotlin_kotlin.$_$.g6;
83
+ var getOrNull = kotlin_kotlin.$_$.z7;
84
+ //endregion
85
+ //region block: pre-declaration
86
+ initMetadataForClass(DIDefining, 'DIDefining');
87
+ initMetadataForClass(DIDefinition, 'DIDefinition', VOID, DIDefining);
88
+ initMetadataForClass(DependencyLoopException, 'DependencyLoopException', VOID, RuntimeException);
89
+ initMetadataForClass(NotFoundException, 'NotFoundException', VOID, RuntimeException);
90
+ initMetadataForClass(OverridingException, 'OverridingException', VOID, RuntimeException);
91
+ initMetadataForClass(Key, 'Key');
92
+ function import$default(module_0, allowOverride, $super) {
93
+ allowOverride = allowOverride === VOID ? false : allowOverride;
94
+ var tmp;
95
+ if ($super === VOID) {
96
+ this.k5u(module_0, allowOverride);
97
+ tmp = Unit_instance;
98
+ } else {
99
+ tmp = $super.k5u.call(this, module_0, allowOverride);
100
+ }
101
+ return tmp;
102
+ }
103
+ initMetadataForInterface(Builder, 'Builder');
104
+ initMetadataForClass(Module, 'Module');
105
+ initMetadataForCompanion(Companion);
106
+ function get_diContext() {
107
+ return get_AnyDIContext();
108
+ }
109
+ function get_diTrigger() {
110
+ return null;
111
+ }
112
+ initMetadataForInterface(DIAware, 'DIAware');
113
+ function get_di() {
114
+ return this;
115
+ }
116
+ initMetadataForInterface(DI, 'DI', VOID, VOID, [DIAware]);
117
+ initMetadataForInterface(DIContext, 'DIContext');
118
+ initMetadataForClass(Value, 'Value', VOID, VOID, [DIContext]);
119
+ initMetadataForCompanion(Companion_0);
120
+ initMetadataForObject(Contexes, 'Contexes');
121
+ initMetadataForClass(DIWrapper, 'DIWrapper', VOID, VOID, [DI]);
122
+ function factory$default(key, context, overrideLevel, $super) {
123
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
124
+ return $super === VOID ? this.h5v(key, context, overrideLevel) : $super.h5v.call(this, key, context, overrideLevel);
125
+ }
126
+ function factoryOrNull$default(key, context, overrideLevel, $super) {
127
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
128
+ return $super === VOID ? this.j5v(key, context, overrideLevel) : $super.j5v.call(this, key, context, overrideLevel);
129
+ }
130
+ function provider(key, context, overrideLevel) {
131
+ // Inline function 'org.kodein.di.toProvider' call
132
+ var this_0 = this.i5v(key, context);
133
+ return DIContainer$provider$lambda(this_0);
134
+ }
135
+ function provider$default(key, context, overrideLevel, $super) {
136
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
137
+ return $super === VOID ? this.l5v(key, context, overrideLevel) : provider(key, context, overrideLevel);
138
+ }
139
+ function providerOrNull(key, context, overrideLevel) {
140
+ var tmp5_safe_receiver = this.k5v(key, context);
141
+ var tmp;
142
+ if (tmp5_safe_receiver == null) {
143
+ tmp = null;
144
+ } else {
145
+ // Inline function 'org.kodein.di.toProvider' call
146
+ tmp = DIContainer$providerOrNull$lambda(tmp5_safe_receiver);
147
+ }
148
+ return tmp;
149
+ }
150
+ function providerOrNull$default(key, context, overrideLevel, $super) {
151
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
152
+ return $super === VOID ? this.m5v(key, context, overrideLevel) : providerOrNull(key, context, overrideLevel);
153
+ }
154
+ initMetadataForInterface(DIContainer, 'DIContainer');
155
+ function find$default(key, overrideLevel, all, $super) {
156
+ overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
157
+ all = all === VOID ? false : all;
158
+ return $super === VOID ? this.p5v(key, overrideLevel, all) : $super.p5v.call(this, key, overrideLevel, all);
159
+ }
160
+ initMetadataForInterface(DITree, 'DITree');
161
+ function get_di_0() {
162
+ return this.t5v();
163
+ }
164
+ initMetadataForInterface(DirectDIBase, 'DirectDIBase');
165
+ initMetadataForObject(NoDefinedTag, 'NoDefinedTag');
166
+ initMetadataForClass(SearchSpecs, 'SearchSpecs', SearchSpecs);
167
+ initMetadataForClass(NoArgBindingDIWrap, 'NoArgBindingDIWrap', VOID, VOID, [DirectDIBase]);
168
+ initMetadataForObject(ErasedContext, 'ErasedContext', VOID, VOID, [DIContext]);
169
+ initMetadataForClass(DIBinding$Copier$Companion$invoke$1);
170
+ initMetadataForCompanion(Companion_1);
171
+ function factoryFullName() {
172
+ return this.e5w();
173
+ }
174
+ function get_scope() {
175
+ return null;
176
+ }
177
+ function get_description() {
178
+ var arg = !equals(this.g5w(), Companion_getInstance().u5s_1) ? this.g5w().w5s() + ' -> ' : '';
179
+ var tmp;
180
+ var tmp_0 = this.o5u();
181
+ if (tmp_0 instanceof NoScope) {
182
+ tmp = null;
183
+ } else {
184
+ tmp = this.o5u();
185
+ }
186
+ var scope = tmp;
187
+ var tmp_1;
188
+ if (scope == null) {
189
+ tmp_1 = null;
190
+ } else {
191
+ // Inline function 'kotlin.let' call
192
+ // Inline function 'kotlin.contracts.contract' call
193
+ // Inline function 'org.kodein.di.bindings.DIBinding.<get-description>.<anonymous>' call
194
+ tmp_1 = 'scoped(' + erasedOf(scope).w5s() + ').';
195
+ }
196
+ var tmp0_elvis_lhs = tmp_1;
197
+ var context = tmp0_elvis_lhs == null ? !equals(this.m5u(), Companion_getInstance().v5s_1) ? 'contexted<' + this.m5u().w5s() + '>().' : '' : tmp0_elvis_lhs;
198
+ return context + this.e5w() + ' { ' + arg + this.h5w().w5s() + ' }';
199
+ }
200
+ function get_fullDescription() {
201
+ var arg = !equals(this.g5w(), Companion_getInstance().u5s_1) ? this.g5w().y5s() + ' -> ' : '';
202
+ var tmp;
203
+ var tmp_0 = this.o5u();
204
+ if (tmp_0 instanceof NoScope) {
205
+ tmp = null;
206
+ } else {
207
+ tmp = this.o5u();
208
+ }
209
+ var scope = tmp;
210
+ var tmp_1;
211
+ if (scope == null) {
212
+ tmp_1 = null;
213
+ } else {
214
+ // Inline function 'kotlin.let' call
215
+ // Inline function 'kotlin.contracts.contract' call
216
+ // Inline function 'org.kodein.di.bindings.DIBinding.<get-fullDescription>.<anonymous>' call
217
+ tmp_1 = 'scoped(' + erasedOf(scope).y5s() + ').';
218
+ }
219
+ var tmp0_elvis_lhs = tmp_1;
220
+ var context = tmp0_elvis_lhs == null ? !equals(this.m5u(), Companion_getInstance().v5s_1) ? 'contexted<' + this.m5u().y5s() + '>().' : '' : tmp0_elvis_lhs;
221
+ return context + this.f5w() + ' { ' + arg + this.h5w().y5s() + ' }';
222
+ }
223
+ function get_supportSubTypes() {
224
+ return false;
225
+ }
226
+ initMetadataForInterface(DIBinding, 'DIBinding');
227
+ function get_argType() {
228
+ return Companion_getInstance().u5s_1;
229
+ }
230
+ initMetadataForInterface(NoArgDIBinding, 'NoArgDIBinding', VOID, VOID, [DIBinding]);
231
+ initMetadataForObject(SingletonReference, 'SingletonReference');
232
+ initMetadataForClass(Reference, 'Reference');
233
+ initMetadataForInterface(ContextTranslator, 'ContextTranslator');
234
+ initMetadataForClass(ScopeRegistry, 'ScopeRegistry');
235
+ initMetadataForClass(NoScope, 'NoScope', NoScope);
236
+ initMetadataForClass(StandardScopeRegistry, 'StandardScopeRegistry', StandardScopeRegistry, ScopeRegistry);
237
+ initMetadataForClass(CompositeContextTranslator, 'CompositeContextTranslator', VOID, VOID, [ContextTranslator]);
238
+ initMetadataForClass(Singleton, 'Singleton', VOID, VOID, [NoArgDIBinding]);
239
+ initMetadataForClass(Provider, 'Provider', VOID, VOID, [NoArgDIBinding]);
240
+ initMetadataForClass(ScopeKey, 'ScopeKey');
241
+ initMetadataForClass(DIBuilderImpl, 'DIBuilderImpl', VOID, VOID, [Builder]);
242
+ initMetadataForClass(DIMainBuilderImpl, 'DIMainBuilderImpl', VOID, DIBuilderImpl, [DIBuilderImpl, Builder]);
243
+ initMetadataForClass(TypeBinder, 'TypeBinder');
244
+ initMetadataForClass(OverrideMode, 'OverrideMode', VOID, Enum);
245
+ initMetadataForClass(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT, 'ALLOW_SILENT', VOID, OverrideMode);
246
+ initMetadataForClass(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT, 'ALLOW_EXPLICIT', VOID, OverrideMode);
247
+ initMetadataForClass(DIContainerBuilderImpl$OverrideMode$FORBID, 'FORBID', VOID, OverrideMode);
248
+ initMetadataForCompanion(Companion_2);
249
+ initMetadataForClass(DIContainerBuilderImpl, 'DIContainerBuilderImpl');
250
+ initMetadataForClass(Node, 'Node');
251
+ initMetadataForClass(DIContainerImpl, 'DIContainerImpl', VOID, VOID, [DIContainer]);
252
+ initMetadataForCompanion(Companion_3);
253
+ initMetadataForClass(DIImpl, 'DIImpl', VOID, VOID, [DI]);
254
+ initMetadataForClass(BindingDIImpl, 'BindingDIImpl', VOID, VOID, [DirectDIBase]);
255
+ initMetadataForClass(DITreeImpl, 'DITreeImpl', VOID, VOID, [DITree]);
256
+ initMetadataForClass(TypeChecker, 'TypeChecker');
257
+ initMetadataForClass(Down, 'Down', VOID, TypeChecker);
258
+ initMetadataForClass(Up, 'Up', VOID, TypeChecker);
259
+ initMetadataForClass(DirectDIBaseImpl, 'DirectDIBaseImpl', VOID, VOID, [DirectDIBase]);
260
+ initMetadataForClass(DIProperty, 'DIProperty');
261
+ initMetadataForClass(DirectDIImpl, 'DirectDIImpl', VOID, DirectDIBaseImpl, [DirectDIBaseImpl, DirectDIBase]);
262
+ //endregion
263
+ function DIDefinition(binding, fromModule, tree) {
264
+ DIDefining.call(this, binding, fromModule);
265
+ this.o5t_1 = tree;
266
+ }
267
+ function description(_this__u8e3s4, withOverrides, ident) {
268
+ withOverrides = withOverrides === VOID ? false : withOverrides;
269
+ ident = ident === VOID ? 8 : ident;
270
+ return descriptionImpl(_this__u8e3s4, withOverrides, ident, bindDescription$factory(), description$factory());
271
+ }
272
+ function DIDefining(binding, fromModule) {
273
+ this.p5t_1 = binding;
274
+ this.q5t_1 = fromModule;
275
+ }
276
+ function descriptionImpl(_this__u8e3s4, withOverrides, ident, keyBindDisp, bindingDisp) {
277
+ // Inline function 'kotlin.collections.groupBy' call
278
+ // Inline function 'kotlin.collections.groupByTo' call
279
+ var this_0 = _this__u8e3s4.s();
280
+ var destination = LinkedHashMap_init_$Create$();
281
+ var tmp0_iterator = this_0.j();
282
+ while (tmp0_iterator.k()) {
283
+ var element = tmp0_iterator.l();
284
+ // Inline function 'org.kodein.di.descriptionImpl.<anonymous>' call
285
+ var key = first(element.u()).q5t_1;
286
+ // Inline function 'kotlin.collections.getOrPut' call
287
+ var value = destination.g2(key);
288
+ var tmp;
289
+ if (value == null) {
290
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
291
+ var answer = ArrayList_init_$Create$();
292
+ destination.j2(key, answer);
293
+ tmp = answer;
294
+ } else {
295
+ tmp = value;
296
+ }
297
+ var list = tmp;
298
+ list.e(element);
299
+ }
300
+ var byModule = destination;
301
+ var modules = sorted(filterNotNull(byModule.h2()));
302
+ // Inline function 'kotlin.text.buildString' call
303
+ // Inline function 'kotlin.contracts.contract' call
304
+ // Inline function 'kotlin.apply' call
305
+ var this_1 = StringBuilder_init_$Create$();
306
+ // Inline function 'kotlin.contracts.contract' call
307
+ // Inline function 'org.kodein.di.descriptionImpl.<anonymous>' call
308
+ var tmp0_safe_receiver = byModule.g2(null);
309
+ if (tmp0_safe_receiver == null)
310
+ null;
311
+ else {
312
+ // Inline function 'kotlin.let' call
313
+ // Inline function 'kotlin.contracts.contract' call
314
+ descriptionImpl$appendBindings(this_1, keyBindDisp, bindingDisp, withOverrides, ident, tmp0_safe_receiver);
315
+ }
316
+ // Inline function 'kotlin.collections.forEach' call
317
+ var tmp0_iterator_0 = modules.j();
318
+ while (tmp0_iterator_0.k()) {
319
+ var element_0 = tmp0_iterator_0.l();
320
+ // Inline function 'org.kodein.di.descriptionImpl.<anonymous>.<anonymous>' call
321
+ this_1.n8(repeat(' ', ident) + 'module ' + element_0 + ' {\n');
322
+ descriptionImpl$appendBindings(this_1, keyBindDisp, bindingDisp, withOverrides, ident + 4 | 0, ensureNotNull(byModule.g2(element_0)));
323
+ this_1.n8(repeat(' ', ident) + '}\n');
324
+ }
325
+ return this_1.toString();
326
+ }
327
+ function fullDescription(_this__u8e3s4, withOverrides, ident) {
328
+ withOverrides = withOverrides === VOID ? false : withOverrides;
329
+ ident = ident === VOID ? 8 : ident;
330
+ return descriptionImpl(_this__u8e3s4, withOverrides, ident, bindFullDescription$factory(), fullDescription$factory());
331
+ }
332
+ function descriptionImpl$appendBindings(_this__u8e3s4, $keyBindDisp, $bindingDisp, $withOverrides, ident, entries) {
333
+ var tmp0_iterator = entries.j();
334
+ while (tmp0_iterator.k()) {
335
+ var element = tmp0_iterator.l();
336
+ // Inline function 'org.kodein.di.descriptionImpl.appendBindings.<anonymous>' call
337
+ var keyDescription = $keyBindDisp(element.t());
338
+ _this__u8e3s4.n8(repeat(' ', ident) + keyDescription + ' { ' + $bindingDisp(first(element.u()).p5t_1) + ' }');
339
+ if ($withOverrides) {
340
+ var subIdent = keyDescription.length - 4 | 0;
341
+ // Inline function 'kotlin.collections.forEach' call
342
+ var tmp0_iterator_0 = element.u().x1(1, element.u().m()).j();
343
+ while (tmp0_iterator_0.k()) {
344
+ var element_0 = tmp0_iterator_0.l();
345
+ // Inline function 'org.kodein.di.descriptionImpl.appendBindings.<anonymous>.<anonymous>' call
346
+ _this__u8e3s4.n8(repeat(' ', subIdent) + 'overrides ' + $bindingDisp(element_0.p5t_1));
347
+ }
348
+ }
349
+ _this__u8e3s4.n8('\n');
350
+ }
351
+ return Unit_instance;
352
+ }
353
+ function bindDescription$factory() {
354
+ return getPropertyCallableRef('bindDescription', 1, KProperty1, function (receiver) {
355
+ return receiver.w5t();
356
+ }, null);
357
+ }
358
+ function description$factory() {
359
+ return getPropertyCallableRef('description', 1, KProperty1, function (receiver) {
360
+ return receiver.x5t();
361
+ }, null);
362
+ }
363
+ function bindFullDescription$factory() {
364
+ return getPropertyCallableRef('bindFullDescription', 1, KProperty1, function (receiver) {
365
+ return receiver.y5t();
366
+ }, null);
367
+ }
368
+ function fullDescription$factory() {
369
+ return getPropertyCallableRef('fullDescription', 1, KProperty1, function (receiver) {
370
+ return receiver.z5t();
371
+ }, null);
372
+ }
373
+ function appendDescription(_this__u8e3s4, $this, displayString) {
374
+ if (!($this.u5t_1 == null)) {
375
+ _this__u8e3s4.n8(' tagged "' + toString($this.u5t_1) + '"');
376
+ }
377
+ if (!equals($this.r5t_1, Companion_getInstance().v5s_1)) {
378
+ _this__u8e3s4.n8(' on context ' + displayString($this.r5t_1));
379
+ }
380
+ if (!equals($this.s5t_1, Companion_getInstance().u5s_1)) {
381
+ _this__u8e3s4.n8(', with argument ' + displayString($this.s5t_1));
382
+ }
383
+ }
384
+ function TypeToken$simpleDispString$ref() {
385
+ var l = function (p0) {
386
+ return p0.w5s();
387
+ };
388
+ l.callableName = 'simpleDispString';
389
+ return l;
390
+ }
391
+ function TypeToken$qualifiedDispString$ref() {
392
+ var l = function (p0) {
393
+ return p0.y5s();
394
+ };
395
+ l.callableName = 'qualifiedDispString';
396
+ return l;
397
+ }
398
+ function Module_init_$Init$(name, allowSilentOverride, prefix, init, $this) {
399
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
400
+ prefix = prefix === VOID ? '' : prefix;
401
+ Module.call($this, allowSilentOverride, prefix, init);
402
+ $this.d5u_1 = name;
403
+ return $this;
404
+ }
405
+ function Module_init_$Create$(name, allowSilentOverride, prefix, init) {
406
+ return Module_init_$Init$(name, allowSilentOverride, prefix, init, objectCreate(protoOf(Module)));
407
+ }
408
+ function DependencyLoopException(message) {
409
+ RuntimeException_init_$Init$(message, this);
410
+ captureStack(this, DependencyLoopException);
411
+ }
412
+ function NotFoundException(key, message) {
413
+ RuntimeException_init_$Init$(message, this);
414
+ captureStack(this, NotFoundException);
415
+ this.e5u_1 = key;
416
+ }
417
+ function OverridingException(message) {
418
+ RuntimeException_init_$Init$(message, this);
419
+ captureStack(this, OverridingException);
420
+ }
421
+ function Key(contextType, argType, type, tag) {
422
+ this.r5t_1 = contextType;
423
+ this.s5t_1 = argType;
424
+ this.t5t_1 = type;
425
+ this.u5t_1 = tag;
426
+ this.v5t_1 = 0;
427
+ }
428
+ protoOf(Key).hashCode = function () {
429
+ if (this.v5t_1 === 0) {
430
+ this.v5t_1 = hashCode(this.r5t_1);
431
+ this.v5t_1 = imul(31, this.v5t_1) + hashCode(this.s5t_1) | 0;
432
+ this.v5t_1 = imul(29, hashCode(this.t5t_1));
433
+ var tmp = this;
434
+ var tmp_0 = imul(23, this.v5t_1);
435
+ var tmp1_safe_receiver = this.u5t_1;
436
+ var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : hashCode(tmp1_safe_receiver);
437
+ tmp.v5t_1 = tmp_0 + (tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs) | 0;
438
+ }
439
+ return this.v5t_1;
440
+ };
441
+ protoOf(Key).toString = function () {
442
+ return this.x5t();
443
+ };
444
+ protoOf(Key).w5t = function () {
445
+ // Inline function 'kotlin.text.buildString' call
446
+ // Inline function 'kotlin.contracts.contract' call
447
+ // Inline function 'kotlin.apply' call
448
+ var this_0 = StringBuilder_init_$Create$();
449
+ // Inline function 'kotlin.contracts.contract' call
450
+ // Inline function 'org.kodein.di.Key.<get-bindDescription>.<anonymous>' call
451
+ this_0.n8('bind<' + this.t5t_1.w5s() + '>');
452
+ if (!(this.u5t_1 == null)) {
453
+ this_0.n8('(tag = "' + toString(this.u5t_1) + '")');
454
+ }
455
+ return this_0.toString();
456
+ };
457
+ protoOf(Key).y5t = function () {
458
+ // Inline function 'kotlin.text.buildString' call
459
+ // Inline function 'kotlin.contracts.contract' call
460
+ // Inline function 'kotlin.apply' call
461
+ var this_0 = StringBuilder_init_$Create$();
462
+ // Inline function 'kotlin.contracts.contract' call
463
+ // Inline function 'org.kodein.di.Key.<get-bindFullDescription>.<anonymous>' call
464
+ this_0.n8('bind<' + this.t5t_1.y5s() + '>');
465
+ if (!(this.u5t_1 == null)) {
466
+ this_0.n8('(tag = "' + toString(this.u5t_1) + '")');
467
+ }
468
+ return this_0.toString();
469
+ };
470
+ protoOf(Key).x5t = function () {
471
+ // Inline function 'kotlin.text.buildString' call
472
+ // Inline function 'kotlin.contracts.contract' call
473
+ // Inline function 'kotlin.apply' call
474
+ var this_0 = StringBuilder_init_$Create$();
475
+ // Inline function 'kotlin.contracts.contract' call
476
+ // Inline function 'org.kodein.di.Key.<get-description>.<anonymous>' call
477
+ this_0.n8(this.t5t_1.w5s());
478
+ appendDescription(this_0, this, TypeToken$simpleDispString$ref());
479
+ return this_0.toString();
480
+ };
481
+ protoOf(Key).f5u = function () {
482
+ return '(context: ' + this.r5t_1.w5s() + ', arg: ' + this.s5t_1.w5s() + ', type: ' + this.t5t_1.w5s() + ', tag: ' + toString(this.u5t_1) + ')';
483
+ };
484
+ protoOf(Key).z5t = function () {
485
+ // Inline function 'kotlin.text.buildString' call
486
+ // Inline function 'kotlin.contracts.contract' call
487
+ // Inline function 'kotlin.apply' call
488
+ var this_0 = StringBuilder_init_$Create$();
489
+ // Inline function 'kotlin.contracts.contract' call
490
+ // Inline function 'org.kodein.di.Key.<get-fullDescription>.<anonymous>' call
491
+ this_0.n8(this.t5t_1.y5s());
492
+ appendDescription(this_0, this, TypeToken$qualifiedDispString$ref());
493
+ return this_0.toString();
494
+ };
495
+ protoOf(Key).g5u = function (contextType, argType, type, tag) {
496
+ return new Key(contextType, argType, type, tag);
497
+ };
498
+ protoOf(Key).h5u = function (contextType, argType, type, tag, $super) {
499
+ contextType = contextType === VOID ? this.r5t_1 : contextType;
500
+ argType = argType === VOID ? this.s5t_1 : argType;
501
+ type = type === VOID ? this.t5t_1 : type;
502
+ tag = tag === VOID ? this.u5t_1 : tag;
503
+ return $super === VOID ? this.g5u(contextType, argType, type, tag) : $super.g5u.call(this, contextType, argType, type, tag);
504
+ };
505
+ protoOf(Key).equals = function (other) {
506
+ if (this === other)
507
+ return true;
508
+ if (!(other instanceof Key))
509
+ return false;
510
+ var tmp0_other_with_cast = other instanceof Key ? other : THROW_CCE();
511
+ if (!equals(this.r5t_1, tmp0_other_with_cast.r5t_1))
512
+ return false;
513
+ if (!equals(this.s5t_1, tmp0_other_with_cast.s5t_1))
514
+ return false;
515
+ if (!equals(this.t5t_1, tmp0_other_with_cast.t5t_1))
516
+ return false;
517
+ if (!equals(this.u5t_1, tmp0_other_with_cast.u5t_1))
518
+ return false;
519
+ return true;
520
+ };
521
+ function Builder() {
522
+ }
523
+ function Module(allowSilentOverride, prefix, init) {
524
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
525
+ prefix = prefix === VOID ? '' : prefix;
526
+ this.a5u_1 = allowSilentOverride;
527
+ this.b5u_1 = prefix;
528
+ this.c5u_1 = init;
529
+ this.d5u_1 = null;
530
+ }
531
+ protoOf(Module).o2 = function () {
532
+ var tmp0_elvis_lhs = this.d5u_1;
533
+ var tmp;
534
+ if (tmp0_elvis_lhs == null) {
535
+ throw IllegalStateException_init_$Create$('module must have a name.');
536
+ } else {
537
+ tmp = tmp0_elvis_lhs;
538
+ }
539
+ return tmp;
540
+ };
541
+ protoOf(Module).toString = function () {
542
+ return 'Module(allowSilentOverride=' + this.a5u_1 + ', prefix=' + this.b5u_1 + ', init=' + toString_0(this.c5u_1) + ')';
543
+ };
544
+ protoOf(Module).hashCode = function () {
545
+ var result = getBooleanHashCode(this.a5u_1);
546
+ result = imul(result, 31) + getStringHashCode(this.b5u_1) | 0;
547
+ result = imul(result, 31) + hashCode(this.c5u_1) | 0;
548
+ return result;
549
+ };
550
+ protoOf(Module).equals = function (other) {
551
+ if (this === other)
552
+ return true;
553
+ if (!(other instanceof Module))
554
+ return false;
555
+ var tmp0_other_with_cast = other instanceof Module ? other : THROW_CCE();
556
+ if (!(this.a5u_1 === tmp0_other_with_cast.a5u_1))
557
+ return false;
558
+ if (!(this.b5u_1 === tmp0_other_with_cast.b5u_1))
559
+ return false;
560
+ if (!equals(this.c5u_1, tmp0_other_with_cast.c5u_1))
561
+ return false;
562
+ return true;
563
+ };
564
+ function Companion() {
565
+ this.p5u_1 = false;
566
+ this.q5u_1 = false;
567
+ }
568
+ protoOf(Companion).r5u = function (allowSilentOverride, init) {
569
+ return DIImpl_init_$Create$(allowSilentOverride, init);
570
+ };
571
+ protoOf(Companion).s5u = function (allowSilentOverride, init, $super) {
572
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
573
+ return $super === VOID ? this.r5u(allowSilentOverride, init) : $super.r5u.call(this, allowSilentOverride, init);
574
+ };
575
+ var Companion_instance;
576
+ function Companion_getInstance_0() {
577
+ return Companion_instance;
578
+ }
579
+ function DI() {
580
+ }
581
+ function get_direct(_this__u8e3s4) {
582
+ return createDirectDI(_this__u8e3s4.t5u().u5u(), _this__u8e3s4.v5u());
583
+ }
584
+ function DIAware() {
585
+ }
586
+ function Instance(_this__u8e3s4, type, tag) {
587
+ tag = tag === VOID ? null : tag;
588
+ var tmp = _this__u8e3s4.w5u();
589
+ var tmp_0 = _this__u8e3s4.v5u();
590
+ return new DIProperty(tmp, tmp_0, Instance$lambda(_this__u8e3s4, type, tag));
591
+ }
592
+ function InstanceOrNull(_this__u8e3s4, type, tag) {
593
+ tag = tag === VOID ? null : tag;
594
+ var tmp = _this__u8e3s4.w5u();
595
+ var tmp_0 = _this__u8e3s4.v5u();
596
+ return new DIProperty(tmp, tmp_0, InstanceOrNull$lambda(_this__u8e3s4, type, tag));
597
+ }
598
+ function Value(type, value) {
599
+ this.x5u_1 = type;
600
+ this.y5u_1 = value;
601
+ }
602
+ protoOf(Value).z5u = function () {
603
+ return this.x5u_1;
604
+ };
605
+ protoOf(Value).u = function () {
606
+ return this.y5u_1;
607
+ };
608
+ protoOf(Value).toString = function () {
609
+ return 'Value(type=' + toString_0(this.x5u_1) + ', value=' + toString_0(this.y5u_1) + ')';
610
+ };
611
+ protoOf(Value).hashCode = function () {
612
+ var result = hashCode(this.x5u_1);
613
+ result = imul(result, 31) + hashCode(this.y5u_1) | 0;
614
+ return result;
615
+ };
616
+ protoOf(Value).equals = function (other) {
617
+ if (this === other)
618
+ return true;
619
+ if (!(other instanceof Value))
620
+ return false;
621
+ var tmp0_other_with_cast = other instanceof Value ? other : THROW_CCE();
622
+ if (!equals(this.x5u_1, tmp0_other_with_cast.x5u_1))
623
+ return false;
624
+ if (!equals(this.y5u_1, tmp0_other_with_cast.y5u_1))
625
+ return false;
626
+ return true;
627
+ };
628
+ function Companion_0() {
629
+ }
630
+ protoOf(Companion_0).a5v = function (type, value) {
631
+ return new Value(type, value);
632
+ };
633
+ var Companion_instance_0;
634
+ function Companion_getInstance_1() {
635
+ return Companion_instance_0;
636
+ }
637
+ function DIContext() {
638
+ }
639
+ function get_AnyDIContext() {
640
+ return Contexes_getInstance().b5v_1;
641
+ }
642
+ function Contexes() {
643
+ Contexes_instance = this;
644
+ this.b5v_1 = Companion_instance_0.a5v(Companion_getInstance().v5s_1, new Object());
645
+ }
646
+ var Contexes_instance;
647
+ function Contexes_getInstance() {
648
+ if (Contexes_instance == null)
649
+ new Contexes();
650
+ return Contexes_instance;
651
+ }
652
+ function On(_this__u8e3s4, context, trigger) {
653
+ context = context === VOID ? _this__u8e3s4.v5u() : context;
654
+ trigger = trigger === VOID ? _this__u8e3s4.w5u() : trigger;
655
+ return DIWrapper_init_$Create$(_this__u8e3s4, context, trigger);
656
+ }
657
+ function DIWrapper_init_$Init$(base, diContext, trigger, $this) {
658
+ diContext = diContext === VOID ? base.v5u() : diContext;
659
+ trigger = trigger === VOID ? base.w5u() : trigger;
660
+ DIWrapper.call($this, base.t5u(), diContext, trigger);
661
+ return $this;
662
+ }
663
+ function DIWrapper_init_$Create$(base, diContext, trigger) {
664
+ return DIWrapper_init_$Init$(base, diContext, trigger, objectCreate(protoOf(DIWrapper)));
665
+ }
666
+ function DIWrapper(_base, diContext, diTrigger) {
667
+ diTrigger = diTrigger === VOID ? null : diTrigger;
668
+ this.c5v_1 = _base;
669
+ this.d5v_1 = diContext;
670
+ this.e5v_1 = diTrigger;
671
+ }
672
+ protoOf(DIWrapper).v5u = function () {
673
+ return this.d5v_1;
674
+ };
675
+ protoOf(DIWrapper).w5u = function () {
676
+ return this.e5v_1;
677
+ };
678
+ protoOf(DIWrapper).t5u = function () {
679
+ return this;
680
+ };
681
+ protoOf(DIWrapper).u5u = function () {
682
+ return this.c5v_1.u5u();
683
+ };
684
+ function Instance$lambda($this_Instance, $type, $tag) {
685
+ return function (ctx, _unused_var__etf5q3) {
686
+ var tmp = $this_Instance.t5u().u5u();
687
+ // Inline function 'org.kodein.di.anyType' call
688
+ var tmp_0 = ctx.z5u();
689
+ var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
690
+ return tmp.f5v(new Key(tmp$ret$0, Companion_getInstance().u5s_1, $type, $tag), ctx.u())();
691
+ };
692
+ }
693
+ function InstanceOrNull$lambda($this_InstanceOrNull, $type, $tag) {
694
+ return function (ctx, _unused_var__etf5q3) {
695
+ var tmp = $this_InstanceOrNull.t5u().u5u();
696
+ // Inline function 'org.kodein.di.anyType' call
697
+ var tmp_0 = ctx.z5u();
698
+ var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
699
+ var tmp3_safe_receiver = tmp.g5v(new Key(tmp$ret$0, Companion_getInstance().u5s_1, $type, $tag), ctx.u());
700
+ return tmp3_safe_receiver == null ? null : tmp3_safe_receiver();
701
+ };
702
+ }
703
+ function DIContainer$provider$lambda($this) {
704
+ return function () {
705
+ // Inline function 'org.kodein.di.DIContainer.provider.<anonymous>' call
706
+ return $this(Unit_instance);
707
+ };
708
+ }
709
+ function DIContainer$providerOrNull$lambda($this) {
710
+ return function () {
711
+ // Inline function 'org.kodein.di.DIContainer.providerOrNull.<anonymous>' call
712
+ return $this(Unit_instance);
713
+ };
714
+ }
715
+ function DIContainer() {
716
+ }
717
+ function DITree() {
718
+ }
719
+ function DirectDIBase() {
720
+ }
721
+ function NoDefinedTag() {
722
+ }
723
+ var NoDefinedTag_instance;
724
+ function NoDefinedTag_getInstance() {
725
+ return NoDefinedTag_instance;
726
+ }
727
+ function SearchSpecs(contextType, argType, type, tag) {
728
+ contextType = contextType === VOID ? null : contextType;
729
+ argType = argType === VOID ? null : argType;
730
+ type = type === VOID ? null : type;
731
+ tag = tag === VOID ? NoDefinedTag_instance : tag;
732
+ this.x5v_1 = contextType;
733
+ this.y5v_1 = argType;
734
+ this.z5v_1 = type;
735
+ this.a5w_1 = tag;
736
+ }
737
+ protoOf(SearchSpecs).toString = function () {
738
+ var args = ArrayList_init_$Create$();
739
+ if (!(this.x5v_1 == null)) {
740
+ // Inline function 'kotlin.collections.plusAssign' call
741
+ var tmp9_safe_receiver = this.x5v_1;
742
+ var element = 'contextType=' + (tmp9_safe_receiver == null ? null : tmp9_safe_receiver.w5s());
743
+ args.e(element);
744
+ }
745
+ if (!(this.y5v_1 == null)) {
746
+ // Inline function 'kotlin.collections.plusAssign' call
747
+ var tmp10_safe_receiver = this.y5v_1;
748
+ var element_0 = 'argType=' + (tmp10_safe_receiver == null ? null : tmp10_safe_receiver.w5s());
749
+ args.e(element_0);
750
+ }
751
+ if (!(this.z5v_1 == null)) {
752
+ // Inline function 'kotlin.collections.plusAssign' call
753
+ var tmp11_safe_receiver = this.z5v_1;
754
+ var element_1 = 'type=' + (tmp11_safe_receiver == null ? null : tmp11_safe_receiver.w5s());
755
+ args.e(element_1);
756
+ }
757
+ if (!equals(this.a5w_1, NoDefinedTag_instance)) {
758
+ // Inline function 'kotlin.collections.plusAssign' call
759
+ var element_2 = 'tag=' + toString(this.a5w_1);
760
+ args.e(element_2);
761
+ }
762
+ return '[' + joinToString(args, ', ') + ']';
763
+ };
764
+ function NoArgBindingDIWrap(_di) {
765
+ this.b5w_1 = _di;
766
+ }
767
+ protoOf(NoArgBindingDIWrap).u5v = function (context) {
768
+ return this.b5w_1.u5v(context);
769
+ };
770
+ protoOf(NoArgBindingDIWrap).v5v = function (type, tag) {
771
+ return this.b5w_1.v5v(type, tag);
772
+ };
773
+ protoOf(NoArgBindingDIWrap).t5v = function () {
774
+ return this.b5w_1.t5v();
775
+ };
776
+ protoOf(NoArgBindingDIWrap).t5u = function () {
777
+ return this.b5w_1.t5u();
778
+ };
779
+ protoOf(NoArgBindingDIWrap).w5v = function () {
780
+ return this.b5w_1.w5v();
781
+ };
782
+ function ErasedContext() {
783
+ }
784
+ protoOf(ErasedContext).z5u = function () {
785
+ return Companion_getInstance().v5s_1;
786
+ };
787
+ protoOf(ErasedContext).u = function () {
788
+ return ErasedContext_instance;
789
+ };
790
+ var ErasedContext_instance;
791
+ function ErasedContext_getInstance() {
792
+ return ErasedContext_instance;
793
+ }
794
+ function DIBinding$Copier$Companion$invoke$1($f) {
795
+ this.c5w_1 = $f;
796
+ }
797
+ function Companion_1() {
798
+ }
799
+ protoOf(Companion_1).d5w = function (f) {
800
+ return new DIBinding$Copier$Companion$invoke$1(f);
801
+ };
802
+ var Companion_instance_1;
803
+ function Companion_getInstance_2() {
804
+ return Companion_instance_1;
805
+ }
806
+ function DIBinding() {
807
+ }
808
+ function NoArgDIBinding() {
809
+ }
810
+ function SingletonReference$make$lambda($value) {
811
+ return function () {
812
+ return $value;
813
+ };
814
+ }
815
+ function SingletonReference() {
816
+ }
817
+ protoOf(SingletonReference).k5w = function (creator) {
818
+ var value = creator();
819
+ return new Reference(value, SingletonReference$make$lambda(value));
820
+ };
821
+ var SingletonReference_instance;
822
+ function SingletonReference_getInstance() {
823
+ return SingletonReference_instance;
824
+ }
825
+ function Reference(current, next) {
826
+ this.l5w_1 = current;
827
+ this.m5w_1 = next;
828
+ }
829
+ protoOf(Reference).pe = function () {
830
+ return this.l5w_1;
831
+ };
832
+ protoOf(Reference).qe = function () {
833
+ return this.m5w_1;
834
+ };
835
+ protoOf(Reference).toString = function () {
836
+ return 'Reference(current=' + toString_0(this.l5w_1) + ', next=' + toString_0(this.m5w_1) + ')';
837
+ };
838
+ protoOf(Reference).hashCode = function () {
839
+ var result = hashCode(this.l5w_1);
840
+ result = imul(result, 31) + hashCode(this.m5w_1) | 0;
841
+ return result;
842
+ };
843
+ protoOf(Reference).equals = function (other) {
844
+ if (this === other)
845
+ return true;
846
+ if (!(other instanceof Reference))
847
+ return false;
848
+ var tmp0_other_with_cast = other instanceof Reference ? other : THROW_CCE();
849
+ if (!equals(this.l5w_1, tmp0_other_with_cast.l5w_1))
850
+ return false;
851
+ if (!equals(this.m5w_1, tmp0_other_with_cast.m5w_1))
852
+ return false;
853
+ return true;
854
+ };
855
+ function ContextTranslator() {
856
+ }
857
+ function ScopeRegistry() {
858
+ }
859
+ function NoScope() {
860
+ this.q5w_1 = new StandardScopeRegistry();
861
+ }
862
+ protoOf(NoScope).r5w = function (context) {
863
+ return this.q5w_1;
864
+ };
865
+ protoOf(NoScope).s5w = function (context) {
866
+ return this.r5w((context == null ? true : !(context == null)) ? context : THROW_CCE());
867
+ };
868
+ function StandardScopeRegistry() {
869
+ ScopeRegistry.call(this);
870
+ this.t5w_1 = newConcurrentMap();
871
+ this.u5w_1 = new Object();
872
+ }
873
+ protoOf(StandardScopeRegistry).p5w = function (key, sync, creator) {
874
+ var tmp$ret$2;
875
+ $l$block_1: {
876
+ // Inline function 'org.kodein.di.internal.synchronizedIfNull' call
877
+ sync && this.u5w_1;
878
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
879
+ var tmp16_safe_receiver = this.t5w_1.g2(key);
880
+ var tmp60_safe_receiver = tmp16_safe_receiver == null ? null : tmp16_safe_receiver();
881
+ if (tmp60_safe_receiver == null)
882
+ null;
883
+ else {
884
+ // Inline function 'kotlin.let' call
885
+ // Inline function 'kotlin.contracts.contract' call
886
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
887
+ tmp$ret$2 = tmp60_safe_receiver;
888
+ break $l$block_1;
889
+ }
890
+ // Inline function 'org.kodein.di.internal.maySynchronized' call
891
+ var tmp$ret$5;
892
+ $l$block_0: {
893
+ // Inline function 'org.kodein.di.internal.synchronizedIfNull.<anonymous>' call
894
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
895
+ var tmp16_safe_receiver_0 = this.t5w_1.g2(key);
896
+ var tmp61_safe_receiver = tmp16_safe_receiver_0 == null ? null : tmp16_safe_receiver_0();
897
+ if (tmp61_safe_receiver == null)
898
+ null;
899
+ else {
900
+ // Inline function 'kotlin.let' call
901
+ // Inline function 'kotlin.contracts.contract' call
902
+ tmp$ret$5 = tmp61_safe_receiver;
903
+ break $l$block_0;
904
+ }
905
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
906
+ var _destruct__k2r9zo = creator();
907
+ var current = _destruct__k2r9zo.pe();
908
+ var next = _destruct__k2r9zo.qe();
909
+ // Inline function 'kotlin.collections.set' call
910
+ this.t5w_1.j2(key, next);
911
+ tmp$ret$2 = current;
912
+ break $l$block_1;
913
+ }
914
+ var value = tmp$ret$5;
915
+ // Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
916
+ tmp$ret$2 = value;
917
+ }
918
+ return tmp$ret$2;
919
+ };
920
+ function toKContext(_this__u8e3s4, di, ctx) {
921
+ var tmp30_safe_receiver = _this__u8e3s4.o5w(di, ctx);
922
+ var tmp;
923
+ if (tmp30_safe_receiver == null) {
924
+ tmp = null;
925
+ } else {
926
+ // Inline function 'kotlin.let' call
927
+ // Inline function 'kotlin.contracts.contract' call
928
+ // Inline function 'org.kodein.di.bindings.toKContext.<anonymous>' call
929
+ tmp = Companion_instance_0.a5v(_this__u8e3s4.n5w(), tmp30_safe_receiver);
930
+ }
931
+ return tmp;
932
+ }
933
+ function CompositeContextTranslator(src, dst) {
934
+ this.v5w_1 = src;
935
+ this.w5w_1 = dst;
936
+ }
937
+ protoOf(CompositeContextTranslator).m5u = function () {
938
+ return this.v5w_1.m5u();
939
+ };
940
+ protoOf(CompositeContextTranslator).n5w = function () {
941
+ return this.w5w_1.n5w();
942
+ };
943
+ protoOf(CompositeContextTranslator).o5w = function (di, ctx) {
944
+ var tmp31_safe_receiver = this.v5w_1.o5w(di, ctx);
945
+ var tmp;
946
+ if (tmp31_safe_receiver == null) {
947
+ tmp = null;
948
+ } else {
949
+ // Inline function 'kotlin.let' call
950
+ // Inline function 'kotlin.contracts.contract' call
951
+ // Inline function 'org.kodein.di.bindings.CompositeContextTranslator.translate.<anonymous>' call
952
+ tmp = this.w5w_1.o5w(di, tmp31_safe_receiver);
953
+ }
954
+ return tmp;
955
+ };
956
+ protoOf(CompositeContextTranslator).toString = function () {
957
+ return '(' + toString_0(this.v5w_1) + ' -> ' + toString_0(this.w5w_1) + ')';
958
+ };
959
+ function factoryName($this, params) {
960
+ // Inline function 'kotlin.text.buildString' call
961
+ // Inline function 'kotlin.contracts.contract' call
962
+ // Inline function 'kotlin.apply' call
963
+ var this_0 = StringBuilder_init_$Create$();
964
+ // Inline function 'kotlin.contracts.contract' call
965
+ // Inline function 'org.kodein.di.bindings.Singleton.factoryName.<anonymous>' call
966
+ this_0.n8('singleton');
967
+ // Inline function 'kotlin.collections.isNotEmpty' call
968
+ if (!params.p()) {
969
+ this_0.n8(joinToString(params, ', ', '(', ')'));
970
+ }
971
+ return this_0.toString();
972
+ }
973
+ function Singleton$getFactory$lambda$lambda$lambda(this$0, $bindingDi) {
974
+ return function () {
975
+ return this$0.c5x_1(new NoArgBindingDIWrap($bindingDi));
976
+ };
977
+ }
978
+ function Singleton$getFactory$lambda$lambda(this$0, $bindingDi) {
979
+ return function () {
980
+ return this$0.d5x_1.k5w(Singleton$getFactory$lambda$lambda$lambda(this$0, $bindingDi));
981
+ };
982
+ }
983
+ function Singleton$getFactory$lambda($lateInitRegistry, this$0, $bindingDi) {
984
+ return function (_unused_var__etf5q3) {
985
+ var tmp0_elvis_lhs = $lateInitRegistry._v;
986
+ var tmp;
987
+ if (tmp0_elvis_lhs == null) {
988
+ // Inline function 'kotlin.also' call
989
+ var this_0 = this$0.x5w_1.s5w($bindingDi.k9());
990
+ // Inline function 'kotlin.contracts.contract' call
991
+ // Inline function 'org.kodein.di.bindings.Singleton.getFactory.<anonymous>.<anonymous>' call
992
+ $lateInitRegistry._v = this_0;
993
+ tmp = this_0;
994
+ } else {
995
+ tmp = tmp0_elvis_lhs;
996
+ }
997
+ var registry = tmp;
998
+ var tmp_0 = registry.p5w(this$0.e5x_1, this$0.b5x_1, Singleton$getFactory$lambda$lambda(this$0, $bindingDi));
999
+ return !(tmp_0 == null) ? tmp_0 : THROW_CCE();
1000
+ };
1001
+ }
1002
+ function Singleton$copier$lambda(this$0) {
1003
+ return function (it) {
1004
+ return new Singleton(this$0.x5w_1, this$0.y5w_1, this$0.z5w_1, this$0.a5x_1, this$0.d5x_1, this$0.b5x_1, this$0.c5x_1);
1005
+ };
1006
+ }
1007
+ function Singleton(scope, contextType, explicitContext, createdType, refMaker, sync, creator) {
1008
+ refMaker = refMaker === VOID ? null : refMaker;
1009
+ sync = sync === VOID ? true : sync;
1010
+ this.x5w_1 = scope;
1011
+ this.y5w_1 = contextType;
1012
+ this.z5w_1 = explicitContext;
1013
+ this.a5x_1 = createdType;
1014
+ this.b5x_1 = sync;
1015
+ this.c5x_1 = creator;
1016
+ var tmp = this;
1017
+ tmp.d5x_1 = refMaker == null ? SingletonReference_instance : refMaker;
1018
+ this.e5x_1 = new ScopeKey(new Object(), Unit_instance);
1019
+ var tmp_0 = this;
1020
+ var tmp_1 = Companion_instance_1;
1021
+ tmp_0.f5x_1 = tmp_1.d5w(Singleton$copier$lambda(this));
1022
+ }
1023
+ protoOf(Singleton).o5u = function () {
1024
+ return this.x5w_1;
1025
+ };
1026
+ protoOf(Singleton).m5u = function () {
1027
+ return this.y5w_1;
1028
+ };
1029
+ protoOf(Singleton).h5w = function () {
1030
+ return this.a5x_1;
1031
+ };
1032
+ protoOf(Singleton).e5w = function () {
1033
+ var params = ArrayList_init_$Create$_0(2);
1034
+ if (!equals(this.d5x_1, SingletonReference_instance)) {
1035
+ params.e('ref = ' + erasedOf(this.d5x_1).w5s());
1036
+ }
1037
+ return factoryName(this, params);
1038
+ };
1039
+ protoOf(Singleton).f5w = function () {
1040
+ var params = ArrayList_init_$Create$_0(2);
1041
+ if (!equals(this.d5x_1, SingletonReference_instance)) {
1042
+ params.e('ref = ' + erasedOf(this.d5x_1).y5s());
1043
+ }
1044
+ return factoryName(this, params);
1045
+ };
1046
+ protoOf(Singleton).g5x = function (key, di) {
1047
+ var lateInitRegistry = {_v: null};
1048
+ var bindingDi = this.z5w_1 ? di : di.h5x();
1049
+ return Singleton$getFactory$lambda(lateInitRegistry, this, bindingDi);
1050
+ };
1051
+ protoOf(Singleton).j5w = function (key, di) {
1052
+ return this.g5x(key, di);
1053
+ };
1054
+ function Provider$getFactory$lambda(this$0, $di) {
1055
+ return function (_unused_var__etf5q3) {
1056
+ return this$0.k5x_1(new NoArgBindingDIWrap($di));
1057
+ };
1058
+ }
1059
+ function Provider(contextType, createdType, creator) {
1060
+ this.i5x_1 = contextType;
1061
+ this.j5x_1 = createdType;
1062
+ this.k5x_1 = creator;
1063
+ }
1064
+ protoOf(Provider).m5u = function () {
1065
+ return this.i5x_1;
1066
+ };
1067
+ protoOf(Provider).h5w = function () {
1068
+ return this.j5x_1;
1069
+ };
1070
+ protoOf(Provider).e5w = function () {
1071
+ return 'provider';
1072
+ };
1073
+ protoOf(Provider).g5x = function (key, di) {
1074
+ return Provider$getFactory$lambda(this, di);
1075
+ };
1076
+ protoOf(Provider).j5w = function (key, di) {
1077
+ return this.g5x(key, di);
1078
+ };
1079
+ function ScopeKey(scopeId, arg) {
1080
+ this.l5x_1 = scopeId;
1081
+ this.m5x_1 = arg;
1082
+ }
1083
+ protoOf(ScopeKey).toString = function () {
1084
+ return 'ScopeKey(scopeId=' + toString_0(this.l5x_1) + ', arg=' + toString(this.m5x_1) + ')';
1085
+ };
1086
+ protoOf(ScopeKey).hashCode = function () {
1087
+ var result = hashCode(this.l5x_1);
1088
+ result = imul(result, 31) + (this.m5x_1 == null ? 0 : hashCode(this.m5x_1)) | 0;
1089
+ return result;
1090
+ };
1091
+ protoOf(ScopeKey).equals = function (other) {
1092
+ if (this === other)
1093
+ return true;
1094
+ if (!(other instanceof ScopeKey))
1095
+ return false;
1096
+ var tmp0_other_with_cast = other instanceof ScopeKey ? other : THROW_CCE();
1097
+ if (!equals(this.l5x_1, tmp0_other_with_cast.l5x_1))
1098
+ return false;
1099
+ if (!equals(this.m5x_1, tmp0_other_with_cast.m5x_1))
1100
+ return false;
1101
+ return true;
1102
+ };
1103
+ function DIMainBuilderImpl(allowSilentOverride) {
1104
+ DIBuilderImpl.call(this, null, '', HashSet_init_$Create$(), new DIContainerBuilderImpl(true, allowSilentOverride, HashMap_init_$Create$(), ArrayList_init_$Create$(), ArrayList_init_$Create$()));
1105
+ this.s5x_1 = ArrayList_init_$Create$();
1106
+ this.t5x_1 = Companion_instance.p5u_1;
1107
+ this.u5x_1 = Companion_instance.q5u_1;
1108
+ }
1109
+ protoOf(DIMainBuilderImpl).o5v = function () {
1110
+ return this.s5x_1;
1111
+ };
1112
+ protoOf(DIMainBuilderImpl).v5x = function () {
1113
+ return this.t5x_1;
1114
+ };
1115
+ protoOf(DIMainBuilderImpl).w5x = function () {
1116
+ return this.u5x_1;
1117
+ };
1118
+ function TypeBinder($outer, type, tag, overrides) {
1119
+ this.f5y_1 = $outer;
1120
+ this.c5y_1 = type;
1121
+ this.d5y_1 = tag;
1122
+ this.e5y_1 = overrides;
1123
+ }
1124
+ protoOf(TypeBinder).g5y = function () {
1125
+ return this.f5y_1.i5u();
1126
+ };
1127
+ protoOf(TypeBinder).h5y = function (binding) {
1128
+ return this.g5y().m5y(new Key(binding.m5u(), binding.g5w(), this.c5y_1, this.d5y_1), binding, this.f5y_1.x5x_1, this.e5y_1);
1129
+ };
1130
+ function DIBuilderImpl(moduleName, prefix, importedModules, containerBuilder) {
1131
+ this.x5x_1 = moduleName;
1132
+ this.y5x_1 = prefix;
1133
+ this.z5x_1 = importedModules;
1134
+ this.a5y_1 = containerBuilder;
1135
+ this.b5y_1 = Companion_getInstance().v5s_1;
1136
+ }
1137
+ protoOf(DIBuilderImpl).i5u = function () {
1138
+ return this.a5y_1;
1139
+ };
1140
+ protoOf(DIBuilderImpl).m5u = function () {
1141
+ return this.b5y_1;
1142
+ };
1143
+ protoOf(DIBuilderImpl).o5u = function () {
1144
+ return new NoScope();
1145
+ };
1146
+ protoOf(DIBuilderImpl).n5u = function () {
1147
+ return false;
1148
+ };
1149
+ protoOf(DIBuilderImpl).j5u = function (type, tag, overrides) {
1150
+ return new TypeBinder(this, type, tag, overrides);
1151
+ };
1152
+ protoOf(DIBuilderImpl).k5u = function (module_0, allowOverride) {
1153
+ var moduleName = this.y5x_1 + module_0.o2();
1154
+ var tmp;
1155
+ // Inline function 'kotlin.text.isNotEmpty' call
1156
+ if (charSequenceLength(moduleName) > 0) {
1157
+ tmp = this.z5x_1.s1(moduleName);
1158
+ } else {
1159
+ tmp = false;
1160
+ }
1161
+ if (tmp) {
1162
+ throw IllegalStateException_init_$Create$('Module "' + moduleName + '" has already been imported!');
1163
+ }
1164
+ // Inline function 'kotlin.collections.plusAssign' call
1165
+ this.z5x_1.e(moduleName);
1166
+ // Inline function 'kotlin.apply' call
1167
+ var this_0 = new DIBuilderImpl(moduleName, this.y5x_1 + module_0.b5u_1, this.z5x_1, this.i5u().n5y(allowOverride, module_0.a5u_1));
1168
+ // Inline function 'kotlin.contracts.contract' call
1169
+ module_0.c5u_1(this_0);
1170
+ };
1171
+ function DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT() {
1172
+ OverrideMode.call(this, 'ALLOW_SILENT', 0);
1173
+ OverrideMode_ALLOW_SILENT_instance = this;
1174
+ }
1175
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT).q5y = function () {
1176
+ return true;
1177
+ };
1178
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT).r5y = function (overrides) {
1179
+ return overrides;
1180
+ };
1181
+ var OverrideMode_ALLOW_SILENT_instance;
1182
+ function DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT() {
1183
+ OverrideMode.call(this, 'ALLOW_EXPLICIT', 1);
1184
+ OverrideMode_ALLOW_EXPLICIT_instance = this;
1185
+ }
1186
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT).q5y = function () {
1187
+ return true;
1188
+ };
1189
+ protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT).r5y = function (overrides) {
1190
+ return overrides == null ? false : overrides;
1191
+ };
1192
+ var OverrideMode_ALLOW_EXPLICIT_instance;
1193
+ function DIContainerBuilderImpl$OverrideMode$FORBID() {
1194
+ OverrideMode.call(this, 'FORBID', 2);
1195
+ OverrideMode_FORBID_instance = this;
1196
+ }
1197
+ protoOf(DIContainerBuilderImpl$OverrideMode$FORBID).q5y = function () {
1198
+ return false;
1199
+ };
1200
+ protoOf(DIContainerBuilderImpl$OverrideMode$FORBID).r5y = function (overrides) {
1201
+ var tmp;
1202
+ if (!(overrides == null) && overrides) {
1203
+ throw new OverridingException('Overriding has been forbidden');
1204
+ } else {
1205
+ tmp = false;
1206
+ }
1207
+ return tmp;
1208
+ };
1209
+ var OverrideMode_FORBID_instance;
1210
+ function Companion_2() {
1211
+ }
1212
+ protoOf(Companion_2).w5y = function (allow, silent) {
1213
+ if (!allow)
1214
+ return OverrideMode_FORBID_getInstance();
1215
+ if (silent)
1216
+ return OverrideMode_ALLOW_SILENT_getInstance();
1217
+ return OverrideMode_ALLOW_EXPLICIT_getInstance();
1218
+ };
1219
+ var Companion_instance_2;
1220
+ function Companion_getInstance_3() {
1221
+ return Companion_instance_2;
1222
+ }
1223
+ var OverrideMode_entriesInitialized;
1224
+ function OverrideMode_initEntries() {
1225
+ if (OverrideMode_entriesInitialized)
1226
+ return Unit_instance;
1227
+ OverrideMode_entriesInitialized = true;
1228
+ OverrideMode_ALLOW_SILENT_instance = new DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT();
1229
+ OverrideMode_ALLOW_EXPLICIT_instance = new DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT();
1230
+ OverrideMode_FORBID_instance = new DIContainerBuilderImpl$OverrideMode$FORBID();
1231
+ }
1232
+ function OverrideMode(name, ordinal) {
1233
+ Enum.call(this, name, ordinal);
1234
+ }
1235
+ function checkOverrides($this, key, overrides) {
1236
+ var mustOverride = $this.l5y_1.r5y(overrides);
1237
+ if (!(mustOverride == null)) {
1238
+ var tmp;
1239
+ if (mustOverride) {
1240
+ // Inline function 'kotlin.collections.contains' call
1241
+ // Inline function 'kotlin.collections.containsKey' call
1242
+ var this_0 = $this.i5y_1;
1243
+ tmp = !(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).e2(key);
1244
+ } else {
1245
+ tmp = false;
1246
+ }
1247
+ if (tmp)
1248
+ throw new OverridingException('Binding ' + key.toString() + ' must override an existing binding.');
1249
+ var tmp_0;
1250
+ if (!mustOverride) {
1251
+ // Inline function 'kotlin.collections.contains' call
1252
+ // Inline function 'kotlin.collections.containsKey' call
1253
+ var this_1 = $this.i5y_1;
1254
+ tmp_0 = (isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).e2(key);
1255
+ } else {
1256
+ tmp_0 = false;
1257
+ }
1258
+ if (tmp_0)
1259
+ throw new OverridingException('Binding ' + key.toString() + ' must not override an existing binding.');
1260
+ }
1261
+ }
1262
+ function checkMatch($this, allowOverride) {
1263
+ if (!$this.l5y_1.q5y() && allowOverride)
1264
+ throw new OverridingException('Overriding has been forbidden');
1265
+ }
1266
+ function OverrideMode_ALLOW_SILENT_getInstance() {
1267
+ OverrideMode_initEntries();
1268
+ return OverrideMode_ALLOW_SILENT_instance;
1269
+ }
1270
+ function OverrideMode_ALLOW_EXPLICIT_getInstance() {
1271
+ OverrideMode_initEntries();
1272
+ return OverrideMode_ALLOW_EXPLICIT_instance;
1273
+ }
1274
+ function OverrideMode_FORBID_getInstance() {
1275
+ OverrideMode_initEntries();
1276
+ return OverrideMode_FORBID_instance;
1277
+ }
1278
+ function DIContainerBuilderImpl(allowOverride, silentOverride, bindingsMap, callbacks, translators) {
1279
+ this.i5y_1 = bindingsMap;
1280
+ this.j5y_1 = callbacks;
1281
+ this.k5y_1 = translators;
1282
+ this.l5y_1 = Companion_instance_2.w5y(allowOverride, silentOverride);
1283
+ }
1284
+ protoOf(DIContainerBuilderImpl).m5y = function (key, binding, fromModule, overrides) {
1285
+ checkOverrides(this, key, overrides);
1286
+ // Inline function 'kotlin.collections.getOrPut' call
1287
+ var this_0 = this.i5y_1;
1288
+ var value = this_0.g2(key);
1289
+ var tmp;
1290
+ if (value == null) {
1291
+ // Inline function 'org.kodein.di.internal.DIContainerBuilderImpl.bind.<anonymous>' call
1292
+ var answer = newLinkedList();
1293
+ this_0.j2(key, answer);
1294
+ tmp = answer;
1295
+ } else {
1296
+ tmp = value;
1297
+ }
1298
+ var bindings = tmp;
1299
+ bindings.c2(0, new DIDefining(isInterface(binding, DIBinding) ? binding : THROW_CCE(), fromModule));
1300
+ };
1301
+ protoOf(DIContainerBuilderImpl).n5y = function (allowOverride, silentOverride) {
1302
+ checkMatch(this, allowOverride);
1303
+ return new DIContainerBuilderImpl(allowOverride, silentOverride, this.i5y_1, this.j5y_1, this.k5y_1);
1304
+ };
1305
+ function displayString($this, key, overrideLevel) {
1306
+ var descProp = $this.c5z_1 ? bindFullDescription$factory_0(key) : bindDescription$factory_0(key);
1307
+ return !(overrideLevel === 0) ? 'overridden ' + descProp.get() : descProp.get();
1308
+ }
1309
+ function recursiveLoop($this, node, firstKey, firstOverrideLevel, tail) {
1310
+ var $this_0 = $this;
1311
+ var node_0 = node;
1312
+ var firstKey_0 = firstKey;
1313
+ var firstOverrideLevel_0 = firstOverrideLevel;
1314
+ var tail_0 = tail;
1315
+ $l$1: do {
1316
+ $l$0: do {
1317
+ var tmp;
1318
+ if (node_0.b5z_1 == null || (firstKey_0.equals(node_0.z5y_1) && firstOverrideLevel_0 === node_0.a5z_1)) {
1319
+ tmp = plus(listOf(displayString($this_0, node_0.z5y_1, node_0.a5z_1)), tail_0);
1320
+ } else {
1321
+ var tmp0 = $this_0;
1322
+ var tmp4 = plus(listOf(displayString($this_0, node_0.z5y_1, node_0.a5z_1)), tail_0);
1323
+ $this_0 = tmp0;
1324
+ node_0 = node_0.b5z_1;
1325
+ firstKey_0 = firstKey_0;
1326
+ firstOverrideLevel_0 = firstOverrideLevel_0;
1327
+ tail_0 = tmp4;
1328
+ continue $l$0;
1329
+ }
1330
+ return tmp;
1331
+ }
1332
+ while (false);
1333
+ }
1334
+ while (true);
1335
+ }
1336
+ function recursiveCheck($this, node, searchedKey, searchedOverrideLevel) {
1337
+ var $this_0 = $this;
1338
+ var node_0 = node;
1339
+ var searchedKey_0 = searchedKey;
1340
+ var searchedOverrideLevel_0 = searchedOverrideLevel;
1341
+ $l$1: do {
1342
+ $l$0: do {
1343
+ var tmp;
1344
+ if (node_0.z5y_1.equals(searchedKey_0) && node_0.a5z_1 === searchedOverrideLevel_0) {
1345
+ tmp = false;
1346
+ } else if (node_0.b5z_1 == null) {
1347
+ tmp = true;
1348
+ } else {
1349
+ $this_0 = $this_0;
1350
+ node_0 = node_0.b5z_1;
1351
+ searchedKey_0 = searchedKey_0;
1352
+ searchedOverrideLevel_0 = searchedOverrideLevel_0;
1353
+ continue $l$0;
1354
+ }
1355
+ return tmp;
1356
+ }
1357
+ while (false);
1358
+ }
1359
+ while (true);
1360
+ }
1361
+ function DIContainerImpl_init_$Init$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks, $this) {
1362
+ DIContainerImpl.call($this, new DITreeImpl(builder.i5y_1, externalSources, builder.k5y_1), null, fullDescriptionOnError, fullContainerTreeOnError);
1363
+ var init = DIContainerImpl$_init_$lambda_r6ib3j($this, builder);
1364
+ if (runCallbacks)
1365
+ init();
1366
+ else {
1367
+ var lock = new Object();
1368
+ var tmp = $this;
1369
+ tmp.h5z_1 = DIContainerImpl$_init_$lambda_r6ib3j_0(lock, $this, init);
1370
+ }
1371
+ return $this;
1372
+ }
1373
+ function DIContainerImpl_init_$Create$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks) {
1374
+ return DIContainerImpl_init_$Init$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks, objectCreate(protoOf(DIContainerImpl)));
1375
+ }
1376
+ function Node(key, overrideLevel, parent, fullDescriptionOnError) {
1377
+ this.z5y_1 = key;
1378
+ this.a5z_1 = overrideLevel;
1379
+ this.b5z_1 = parent;
1380
+ this.c5z_1 = fullDescriptionOnError;
1381
+ }
1382
+ protoOf(Node).i5z = function (searchedKey, searchedOverrideLevel) {
1383
+ if (!recursiveCheck(this, this, searchedKey, searchedOverrideLevel)) {
1384
+ var list = plus_0(recursiveLoop(this, this, searchedKey, searchedOverrideLevel, emptyList()), displayString(this, searchedKey, this.a5z_1));
1385
+ var sb = StringBuilder_init_$Create$();
1386
+ // Inline function 'kotlin.collections.forEachIndexed' call
1387
+ var index = 0;
1388
+ var tmp0_iterator = list.j();
1389
+ while (tmp0_iterator.k()) {
1390
+ var item = tmp0_iterator.l();
1391
+ // Inline function 'org.kodein.di.internal.Node.check.<anonymous>' call
1392
+ var tmp1 = index;
1393
+ index = tmp1 + 1 | 0;
1394
+ var index_0 = checkIndexOverflow(tmp1);
1395
+ sb.n8(' ');
1396
+ switch (index_0) {
1397
+ case 0:
1398
+ sb.n8(' ');
1399
+ break;
1400
+ case 1:
1401
+ sb.n8(' \u2554\u2569>');
1402
+ break;
1403
+ default:
1404
+ sb.n8(' \u2551');
1405
+ sb.n8(repeat(' ', index_0 - 1 | 0));
1406
+ sb.n8('\u255A>');
1407
+ break;
1408
+ }
1409
+ sb.n8(item);
1410
+ sb.n8('\n');
1411
+ }
1412
+ sb.n8(' \u255A');
1413
+ sb.n8(repeat('\u2550\u2550', list.m() - 1 | 0));
1414
+ sb.n8('\u255D');
1415
+ throw new DependencyLoopException('Dependency recursion:\n' + sb.toString());
1416
+ }
1417
+ };
1418
+ function bindingDI($this, key, context, tree, overrideLevel) {
1419
+ var container = new DIContainerImpl(tree, new Node(key, overrideLevel, $this.e5z_1, $this.f5z_1), $this.f5z_1, $this.g5z_1);
1420
+ return new BindingDIImpl(createDirectDI(container, context), key, overrideLevel);
1421
+ }
1422
+ function DIContainerImpl$_init_$lambda_r6ib3j(this$0, $builder) {
1423
+ return function () {
1424
+ var direct = createDirectDI(this$0, get_AnyDIContext());
1425
+ var tmp0_iterator = $builder.j5y_1.j();
1426
+ while (tmp0_iterator.k()) {
1427
+ var element = tmp0_iterator.l();
1428
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
1429
+ element(direct);
1430
+ }
1431
+ return Unit_instance;
1432
+ };
1433
+ }
1434
+ function DIContainerImpl$_init_$lambda_r6ib3j_0($lock, this$0, $init) {
1435
+ return function () {
1436
+ $l$block_1: {
1437
+ // Inline function 'org.kodein.di.internal.synchronizedIfNotNull' call
1438
+ if (this$0.h5z_1 == null) {
1439
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
1440
+ break $l$block_1;
1441
+ }
1442
+ // Inline function 'org.kodein.di.internal.maySynchronized' call
1443
+ $l$block_0: {
1444
+ // Inline function 'org.kodein.di.internal.synchronizedIfNotNull.<anonymous>' call
1445
+ var tmp0_elvis_lhs = this$0.h5z_1;
1446
+ var tmp;
1447
+ if (tmp0_elvis_lhs == null) {
1448
+ break $l$block_0;
1449
+ } else {
1450
+ tmp = tmp0_elvis_lhs;
1451
+ }
1452
+ var value = tmp;
1453
+ this$0.h5z_1 = null;
1454
+ $init();
1455
+ break $l$block_1;
1456
+ }
1457
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
1458
+ }
1459
+ return Unit_instance;
1460
+ };
1461
+ }
1462
+ function DIContainerImpl$factory$lambda(_this__u8e3s4, it) {
1463
+ return fullDescription(_this__u8e3s4, it);
1464
+ }
1465
+ function DIContainerImpl$factory$lambda_0(_this__u8e3s4, it) {
1466
+ return description(_this__u8e3s4, it);
1467
+ }
1468
+ function DIContainerImpl(tree, node, fullDescriptionOnError, fullContainerTreeOnError) {
1469
+ this.d5z_1 = tree;
1470
+ this.e5z_1 = node;
1471
+ this.f5z_1 = fullDescriptionOnError;
1472
+ this.g5z_1 = fullContainerTreeOnError;
1473
+ this.h5z_1 = null;
1474
+ }
1475
+ protoOf(DIContainerImpl).j5v = function (key, context, overrideLevel) {
1476
+ // Inline function 'kotlin.let' call
1477
+ // Inline function 'kotlin.contracts.contract' call
1478
+ var it = this.d5z_1.q5v(key, 0);
1479
+ if (it.m() === 1) {
1480
+ var _destruct__k2r9zo = it.o(0);
1481
+ var definition = _destruct__k2r9zo.qe();
1482
+ var translator = _destruct__k2r9zo.hk();
1483
+ var tmp40_safe_receiver = this.e5z_1;
1484
+ if (tmp40_safe_receiver == null)
1485
+ null;
1486
+ else {
1487
+ tmp40_safe_receiver.i5z(key, 0);
1488
+ }
1489
+ var tmp = Companion_instance_0.a5v(key.r5t_1, context);
1490
+ var originalContext = isInterface(tmp, DIContext) ? tmp : THROW_CCE();
1491
+ var tmp0_elvis_lhs = translator == null ? null : toKContext(translator, createDirectDI(this, originalContext), context);
1492
+ var kContext = tmp0_elvis_lhs == null ? originalContext : tmp0_elvis_lhs;
1493
+ if (!(key instanceof Key))
1494
+ THROW_CCE();
1495
+ var bindingDI_0 = bindingDI(this, key, kContext, definition.o5t_1, overrideLevel);
1496
+ return definition.p5t_1.j5w(key, bindingDI_0);
1497
+ }
1498
+ var bindingDI_1 = bindingDI(this, key, Companion_instance_0.a5v(key.r5t_1, context), this.d5z_1, overrideLevel);
1499
+ // Inline function 'kotlin.collections.forEach' call
1500
+ var tmp0_iterator = this.d5z_1.o5v().j();
1501
+ while (tmp0_iterator.k()) {
1502
+ var element = tmp0_iterator.l();
1503
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factoryOrNull.<anonymous>' call
1504
+ var tmp42_safe_receiver = element.j5z(bindingDI_1, key);
1505
+ if (tmp42_safe_receiver == null)
1506
+ null;
1507
+ else {
1508
+ // Inline function 'kotlin.let' call
1509
+ // Inline function 'kotlin.contracts.contract' call
1510
+ var tmp43_safe_receiver = this.e5z_1;
1511
+ if (tmp43_safe_receiver == null)
1512
+ null;
1513
+ else {
1514
+ tmp43_safe_receiver.i5z(key, 0);
1515
+ }
1516
+ return (!(tmp42_safe_receiver == null) ? typeof tmp42_safe_receiver === 'function' : false) ? tmp42_safe_receiver : THROW_CCE();
1517
+ }
1518
+ }
1519
+ return null;
1520
+ };
1521
+ protoOf(DIContainerImpl).h5v = function (key, context, overrideLevel) {
1522
+ var result = this.d5z_1.q5v(key, overrideLevel);
1523
+ if (result.m() === 1) {
1524
+ var _destruct__k2r9zo = result.o(0);
1525
+ var definition = _destruct__k2r9zo.qe();
1526
+ var translator = _destruct__k2r9zo.hk();
1527
+ var tmp44_safe_receiver = this.e5z_1;
1528
+ if (tmp44_safe_receiver == null)
1529
+ null;
1530
+ else {
1531
+ tmp44_safe_receiver.i5z(key, overrideLevel);
1532
+ }
1533
+ var tmp = Companion_instance_0.a5v(key.r5t_1, context);
1534
+ var originalContext = isInterface(tmp, DIContext) ? tmp : THROW_CCE();
1535
+ var tmp0_elvis_lhs = translator == null ? null : toKContext(translator, createDirectDI(this, originalContext), context);
1536
+ var kContext = tmp0_elvis_lhs == null ? originalContext : tmp0_elvis_lhs;
1537
+ if (!(key instanceof Key))
1538
+ THROW_CCE();
1539
+ var bindingDI_0 = bindingDI(this, key, kContext, definition.o5t_1, overrideLevel);
1540
+ return definition.p5t_1.j5w(key, bindingDI_0);
1541
+ }
1542
+ var bindingDI_1 = bindingDI(this, key, Companion_instance_0.a5v(key.r5t_1, context), this.d5z_1, overrideLevel);
1543
+ // Inline function 'kotlin.collections.forEach' call
1544
+ var tmp0_iterator = this.d5z_1.o5v().j();
1545
+ while (tmp0_iterator.k()) {
1546
+ var element = tmp0_iterator.l();
1547
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1548
+ var tmp46_safe_receiver = element.j5z(bindingDI_1, key);
1549
+ if (tmp46_safe_receiver == null)
1550
+ null;
1551
+ else {
1552
+ // Inline function 'kotlin.let' call
1553
+ // Inline function 'kotlin.contracts.contract' call
1554
+ var tmp47_safe_receiver = this.e5z_1;
1555
+ if (tmp47_safe_receiver == null)
1556
+ null;
1557
+ else {
1558
+ tmp47_safe_receiver.i5z(key, overrideLevel);
1559
+ }
1560
+ return (!(tmp46_safe_receiver == null) ? typeof tmp46_safe_receiver === 'function' : false) ? tmp46_safe_receiver : THROW_CCE();
1561
+ }
1562
+ }
1563
+ var withOverrides = !(overrideLevel === 0);
1564
+ var descProp = this.f5z_1 ? fullDescription$factory_0(key) : description$factory_0(key);
1565
+ var tmp_0;
1566
+ if (this.f5z_1) {
1567
+ tmp_0 = DIContainerImpl$factory$lambda;
1568
+ } else {
1569
+ tmp_0 = DIContainerImpl$factory$lambda_0;
1570
+ }
1571
+ var descFun = tmp_0;
1572
+ if (result.p()) {
1573
+ // Inline function 'kotlin.text.buildString' call
1574
+ // Inline function 'kotlin.contracts.contract' call
1575
+ // Inline function 'kotlin.apply' call
1576
+ var this_0 = StringBuilder_init_$Create$();
1577
+ // Inline function 'kotlin.contracts.contract' call
1578
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1579
+ this_0.n8('No binding found for ' + descProp.get());
1580
+ if (this.g5z_1) {
1581
+ // Inline function 'kotlin.text.appendLine' call
1582
+ this_0.o8(_Char___init__impl__6a9atx(10));
1583
+ var forType = this.d5z_1.r5v(new SearchSpecs(VOID, VOID, key.t5t_1));
1584
+ // Inline function 'kotlin.collections.isNotEmpty' call
1585
+ if (!forType.p()) {
1586
+ // Inline function 'kotlin.collections.associate' call
1587
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(forType, 10)), 16);
1588
+ // Inline function 'kotlin.collections.associateTo' call
1589
+ var destination = LinkedHashMap_init_$Create$_0(capacity);
1590
+ var tmp0_iterator_0 = forType.j();
1591
+ while (tmp0_iterator_0.k()) {
1592
+ var element_0 = tmp0_iterator_0.l();
1593
+ // Inline function 'kotlin.collections.plusAssign' call
1594
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>.<anonymous>' call
1595
+ var pair = to(element_0.ek_1, element_0.fk_1);
1596
+ destination.j2(pair.ne_1, pair.oe_1);
1597
+ }
1598
+ this_0.n8('Available bindings for this type:\n' + descFun(destination, withOverrides));
1599
+ }
1600
+ this_0.n8('Registered in this DI container:\n' + descFun(this.d5z_1.n5v(), withOverrides));
1601
+ }
1602
+ var description = this_0.toString();
1603
+ throw new NotFoundException(key, description);
1604
+ }
1605
+ // Inline function 'kotlin.collections.associate' call
1606
+ var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(result, 10)), 16);
1607
+ // Inline function 'kotlin.collections.associateTo' call
1608
+ var destination_0 = LinkedHashMap_init_$Create$_0(capacity_0);
1609
+ var tmp0_iterator_1 = result.j();
1610
+ while (tmp0_iterator_1.k()) {
1611
+ var element_1 = tmp0_iterator_1.l();
1612
+ // Inline function 'kotlin.collections.plusAssign' call
1613
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1614
+ var pair_0 = to(element_1.ek_1, ensureNotNull(this.d5z_1.s5v(element_1.ek_1)).fk_1);
1615
+ destination_0.j2(pair_0.ne_1, pair_0.oe_1);
1616
+ }
1617
+ var potentials = destination_0;
1618
+ // Inline function 'kotlin.collections.filter' call
1619
+ // Inline function 'kotlin.collections.filterTo' call
1620
+ var this_1 = this.d5z_1.n5v();
1621
+ var destination_1 = LinkedHashMap_init_$Create$();
1622
+ // Inline function 'kotlin.collections.iterator' call
1623
+ var tmp0_iterator_2 = this_1.s().j();
1624
+ while (tmp0_iterator_2.k()) {
1625
+ var element_2 = tmp0_iterator_2.l();
1626
+ // Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
1627
+ // Inline function 'kotlin.collections.component1' call
1628
+ var key_0 = element_2.t();
1629
+ if (!potentials.h2().s1(key_0)) {
1630
+ destination_1.j2(element_2.t(), element_2.u());
1631
+ }
1632
+ }
1633
+ var others = destination_1;
1634
+ throw new NotFoundException(key, '' + potentials.m() + ' bindings found that match ' + key.toString() + ':\n' + descFun(potentials, withOverrides) + 'Other bindings registered in DI:\n' + descFun(others, withOverrides));
1635
+ };
1636
+ function bindFullDescription$factory_0($b0) {
1637
+ return getPropertyCallableRef('bindFullDescription', 0, KProperty0, function () {
1638
+ return $b0.y5t();
1639
+ }, null);
1640
+ }
1641
+ function bindDescription$factory_0($b0) {
1642
+ return getPropertyCallableRef('bindDescription', 0, KProperty0, function () {
1643
+ return $b0.w5t();
1644
+ }, null);
1645
+ }
1646
+ function fullDescription$factory_0($b0) {
1647
+ return getPropertyCallableRef('fullDescription', 0, KProperty0, function () {
1648
+ return $b0.z5t();
1649
+ }, null);
1650
+ }
1651
+ function description$factory_0($b0) {
1652
+ return getPropertyCallableRef('description', 0, KProperty0, function () {
1653
+ return $b0.x5t();
1654
+ }, null);
1655
+ }
1656
+ function newBuilder($this, allowSilentOverride, init) {
1657
+ // Inline function 'kotlin.apply' call
1658
+ var this_0 = new DIMainBuilderImpl(allowSilentOverride);
1659
+ // Inline function 'kotlin.contracts.contract' call
1660
+ init(this_0);
1661
+ return this_0;
1662
+ }
1663
+ function DIImpl_init_$Init$(builder, runCallbacks, $this) {
1664
+ DIImpl.call($this, DIContainerImpl_init_$Create$(builder.i5u(), builder.o5v(), builder.v5x(), builder.w5x(), runCallbacks));
1665
+ return $this;
1666
+ }
1667
+ function DIImpl_init_$Init$_0(allowSilentOverride, init, $this) {
1668
+ allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
1669
+ DIImpl_init_$Init$(newBuilder(Companion_instance_3, allowSilentOverride, init), true, $this);
1670
+ return $this;
1671
+ }
1672
+ function DIImpl_init_$Create$(allowSilentOverride, init) {
1673
+ return DIImpl_init_$Init$_0(allowSilentOverride, init, objectCreate(protoOf(DIImpl)));
1674
+ }
1675
+ function Companion_3() {
1676
+ }
1677
+ var Companion_instance_3;
1678
+ function Companion_getInstance_4() {
1679
+ return Companion_instance_3;
1680
+ }
1681
+ function DIImpl$container$delegate$lambda(this$0) {
1682
+ return function () {
1683
+ var tmp;
1684
+ if (!(this$0.k5z_1.h5z_1 == null)) {
1685
+ throw IllegalStateException_init_$Create$('DI has not been initialized');
1686
+ }
1687
+ return this$0.k5z_1;
1688
+ };
1689
+ }
1690
+ function DIImpl(_container) {
1691
+ this.k5z_1 = _container;
1692
+ var tmp = this;
1693
+ tmp.l5z_1 = lazy(DIImpl$container$delegate$lambda(this));
1694
+ }
1695
+ protoOf(DIImpl).u5u = function () {
1696
+ // Inline function 'kotlin.getValue' call
1697
+ var this_0 = this.l5z_1;
1698
+ container$factory();
1699
+ return this_0.u();
1700
+ };
1701
+ function BindingDIImpl(directDI, key, overrideLevel) {
1702
+ this.m5z_1 = directDI;
1703
+ this.n5z_1 = key;
1704
+ this.o5z_1 = overrideLevel;
1705
+ }
1706
+ protoOf(BindingDIImpl).w5v = function () {
1707
+ return this.m5z_1;
1708
+ };
1709
+ protoOf(BindingDIImpl).u5v = function (context) {
1710
+ return this.m5z_1.u5v(context);
1711
+ };
1712
+ protoOf(BindingDIImpl).v5v = function (type, tag) {
1713
+ return this.m5z_1.v5v(type, tag);
1714
+ };
1715
+ protoOf(BindingDIImpl).t5v = function () {
1716
+ return this.m5z_1.t5v();
1717
+ };
1718
+ protoOf(BindingDIImpl).t5u = function () {
1719
+ return this.m5z_1.t5u();
1720
+ };
1721
+ protoOf(BindingDIImpl).k9 = function () {
1722
+ var tmp = this.w5v().t5u().v5u().u();
1723
+ return !(tmp == null) ? tmp : THROW_CCE();
1724
+ };
1725
+ protoOf(BindingDIImpl).h5x = function () {
1726
+ return new BindingDIImpl(this.w5v().u5v(ErasedContext_instance), this.n5z_1, this.o5z_1);
1727
+ };
1728
+ function container$factory() {
1729
+ return getPropertyCallableRef('container', 1, KProperty1, function (receiver) {
1730
+ return receiver.u5u();
1731
+ }, null);
1732
+ }
1733
+ function findBySpecs($this, specs) {
1734
+ var bindSeq = asSequence($this.s5z_1);
1735
+ var specsBindType = specs.z5v_1;
1736
+ if (!(specsBindType == null) && !equals(specsBindType, Companion_getInstance().v5s_1)) {
1737
+ var tmp = bindSeq;
1738
+ bindSeq = filter(tmp, DITreeImpl$findBySpecs$lambda(specsBindType));
1739
+ }
1740
+ var tmp_0 = bindSeq;
1741
+ var contextSeq = flatMap(tmp_0, DITreeImpl$findBySpecs$lambda_0);
1742
+ var specsContextType = specs.x5v_1;
1743
+ if (!(specsContextType == null)) {
1744
+ var tmp_1 = contextSeq;
1745
+ contextSeq = mapNotNull(tmp_1, DITreeImpl$findBySpecs$lambda_1(specsContextType, $this));
1746
+ }
1747
+ var tmp_2 = contextSeq;
1748
+ var argSeq = flatMap(tmp_2, DITreeImpl$findBySpecs$lambda_2);
1749
+ var specsArgType = specs.y5v_1;
1750
+ if (!(specsArgType == null)) {
1751
+ var tmp_3 = argSeq;
1752
+ argSeq = filter(tmp_3, DITreeImpl$findBySpecs$lambda_3(specsArgType));
1753
+ }
1754
+ var tmp_4 = argSeq;
1755
+ var tagSeq = flatMap(tmp_4, DITreeImpl$findBySpecs$lambda_4);
1756
+ var specsTag = specs.a5w_1;
1757
+ if (!equals(specsTag, NoDefinedTag_instance)) {
1758
+ var tmp_5 = tagSeq;
1759
+ tagSeq = filter(tmp_5, DITreeImpl$findBySpecs$lambda_5(specsTag));
1760
+ }
1761
+ var tmp_6 = tagSeq;
1762
+ var resultSeq = map(tmp_6, DITreeImpl$findBySpecs$lambda_6);
1763
+ return toList(resultSeq);
1764
+ }
1765
+ function notInMap($this, result, request) {
1766
+ var tmp = result.f5u();
1767
+ var tmp_0 = request.f5u();
1768
+ var tmp_1 = $this.r5z_1.h2();
1769
+ 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));
1770
+ }
1771
+ function DITreeImpl$findBySpecs$lambda($specsBindType) {
1772
+ return function (_destruct__k2r9zo) {
1773
+ // Inline function 'kotlin.collections.component1' call
1774
+ var bindType = _destruct__k2r9zo.t();
1775
+ return bindType.v5z($specsBindType);
1776
+ };
1777
+ }
1778
+ function DITreeImpl$findBySpecs$lambda_0(_destruct__k2r9zo) {
1779
+ // Inline function 'kotlin.collections.component2' call
1780
+ var contextTree = _destruct__k2r9zo.u();
1781
+ var tmp = asSequence(contextTree);
1782
+ return map(tmp, DITreeImpl$findBySpecs$lambda$lambda);
1783
+ }
1784
+ function DITreeImpl$findBySpecs$lambda$lambda(it) {
1785
+ return new Triple(it.t(), it.u(), null);
1786
+ }
1787
+ function DITreeImpl$findBySpecs$lambda_1($specsContextType, this$0) {
1788
+ return function (triple) {
1789
+ var contextType = triple.pe();
1790
+ var tmp;
1791
+ if (contextType.v5z($specsContextType)) {
1792
+ tmp = triple;
1793
+ } else {
1794
+ var tmp$ret$1;
1795
+ $l$block: {
1796
+ // Inline function 'kotlin.collections.firstOrNull' call
1797
+ var tmp0_iterator = this$0.u5z_1.j();
1798
+ while (tmp0_iterator.k()) {
1799
+ var element = tmp0_iterator.l();
1800
+ // Inline function 'org.kodein.di.internal.DITreeImpl.findBySpecs.<anonymous>.<anonymous>' call
1801
+ if (element.m5u().e5t($specsContextType) && contextType.v5z(element.n5w())) {
1802
+ tmp$ret$1 = element;
1803
+ break $l$block;
1804
+ }
1805
+ }
1806
+ tmp$ret$1 = null;
1807
+ }
1808
+ var translator = tmp$ret$1;
1809
+ tmp = !(translator == null) ? triple.jk(VOID, VOID, translator) : null;
1810
+ }
1811
+ return tmp;
1812
+ };
1813
+ }
1814
+ function DITreeImpl$findBySpecs$lambda_2(_destruct__k2r9zo) {
1815
+ var argumentTree = _destruct__k2r9zo.qe();
1816
+ var translator = _destruct__k2r9zo.hk();
1817
+ var tmp = asSequence(argumentTree);
1818
+ return map(tmp, DITreeImpl$findBySpecs$lambda$lambda_0(translator));
1819
+ }
1820
+ function DITreeImpl$findBySpecs$lambda$lambda_0($translator) {
1821
+ return function (it) {
1822
+ return new Triple(it.t(), it.u(), $translator);
1823
+ };
1824
+ }
1825
+ function DITreeImpl$findBySpecs$lambda_3($specsArgType) {
1826
+ return function (_destruct__k2r9zo) {
1827
+ var argType = _destruct__k2r9zo.pe();
1828
+ return argType.v5z($specsArgType);
1829
+ };
1830
+ }
1831
+ function DITreeImpl$findBySpecs$lambda_4(_destruct__k2r9zo) {
1832
+ var tagTree = _destruct__k2r9zo.qe();
1833
+ var translator = _destruct__k2r9zo.hk();
1834
+ var tmp = asSequence(tagTree);
1835
+ return map(tmp, DITreeImpl$findBySpecs$lambda$lambda_1(translator));
1836
+ }
1837
+ function DITreeImpl$findBySpecs$lambda$lambda_1($translator) {
1838
+ return function (it) {
1839
+ return new Triple(it.t(), it.u(), $translator);
1840
+ };
1841
+ }
1842
+ function DITreeImpl$findBySpecs$lambda_5($specsTag) {
1843
+ return function (_destruct__k2r9zo) {
1844
+ var tag = _destruct__k2r9zo.pe();
1845
+ return equals(tag, $specsTag);
1846
+ };
1847
+ }
1848
+ function DITreeImpl$findBySpecs$lambda_6(_destruct__k2r9zo) {
1849
+ var key = _destruct__k2r9zo.qe();
1850
+ var translator = _destruct__k2r9zo.hk();
1851
+ return to(key, translator);
1852
+ }
1853
+ function DITreeImpl$notInMap$lambda(it) {
1854
+ return it.f5u();
1855
+ }
1856
+ function DITreeImpl(map, externalSources, registeredTranslators) {
1857
+ this.p5z_1 = externalSources;
1858
+ this.q5z_1 = registeredTranslators;
1859
+ this.r5z_1 = newConcurrentMap();
1860
+ this.s5z_1 = HashMap_init_$Create$();
1861
+ this.u5z_1 = ArrayList_init_$Create$_1(this.q5z_1);
1862
+ // Inline function 'kotlin.collections.forEach' call
1863
+ // Inline function 'kotlin.collections.iterator' call
1864
+ var tmp0_iterator = map.s().j();
1865
+ while (tmp0_iterator.k()) {
1866
+ var element = tmp0_iterator.l();
1867
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
1868
+ // Inline function 'kotlin.collections.component1' call
1869
+ var key = element.t();
1870
+ // Inline function 'kotlin.collections.component2' call
1871
+ var bindings = element.u();
1872
+ // Inline function 'kotlin.collections.map' call
1873
+ // Inline function 'kotlin.collections.mapTo' call
1874
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(bindings, 10));
1875
+ var tmp0_iterator_0 = bindings.j();
1876
+ while (tmp0_iterator_0.k()) {
1877
+ var item = tmp0_iterator_0.l();
1878
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
1879
+ var tmp;
1880
+ if (item instanceof DIDefinition) {
1881
+ tmp = item;
1882
+ } else {
1883
+ tmp = new DIDefinition(item.p5t_1, item.q5t_1, this);
1884
+ }
1885
+ var tmp$ret$3 = tmp;
1886
+ destination.e(tmp$ret$3);
1887
+ }
1888
+ var definitions = destination;
1889
+ // Inline function 'kotlin.collections.set' call
1890
+ var this_0 = this.r5z_1;
1891
+ var value = new Triple(key, definitions, null);
1892
+ this_0.j2(key, value);
1893
+ var typeChecker = first(bindings).p5t_1.i5w() ? new Down(key.t5t_1) : new Up(key.t5t_1);
1894
+ // Inline function 'kotlin.collections.getOrPut' call
1895
+ var this_1 = this.s5z_1;
1896
+ var value_0 = this_1.g2(typeChecker);
1897
+ var tmp_0;
1898
+ if (value_0 == null) {
1899
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
1900
+ var answer = HashMap_init_$Create$();
1901
+ this_1.j2(typeChecker, answer);
1902
+ tmp_0 = answer;
1903
+ } else {
1904
+ tmp_0 = value_0;
1905
+ }
1906
+ var contextTree = tmp_0;
1907
+ // Inline function 'kotlin.collections.getOrPut' call
1908
+ var key_0 = new Down(key.r5t_1);
1909
+ var value_1 = contextTree.g2(key_0);
1910
+ var tmp_1;
1911
+ if (value_1 == null) {
1912
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
1913
+ var answer_0 = HashMap_init_$Create$();
1914
+ contextTree.j2(key_0, answer_0);
1915
+ tmp_1 = answer_0;
1916
+ } else {
1917
+ tmp_1 = value_1;
1918
+ }
1919
+ var argumentTree = tmp_1;
1920
+ // Inline function 'kotlin.collections.getOrPut' call
1921
+ var key_1 = new Down(key.s5t_1);
1922
+ var value_2 = argumentTree.g2(key_1);
1923
+ var tmp_2;
1924
+ if (value_2 == null) {
1925
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
1926
+ var answer_1 = HashMap_init_$Create$();
1927
+ argumentTree.j2(key_1, answer_1);
1928
+ tmp_2 = answer_1;
1929
+ } else {
1930
+ tmp_2 = value_2;
1931
+ }
1932
+ var tagTree = tmp_2;
1933
+ // Inline function 'kotlin.collections.set' call
1934
+ var key_2 = key.u5t_1;
1935
+ tagTree.j2(key_2, key);
1936
+ }
1937
+ var tmp_3 = this;
1938
+ // Inline function 'kotlin.collections.mapValues' call
1939
+ var this_2 = this.r5z_1;
1940
+ // Inline function 'kotlin.collections.mapValuesTo' call
1941
+ var destination_0 = LinkedHashMap_init_$Create$_0(mapCapacity(this_2.m()));
1942
+ // Inline function 'kotlin.collections.associateByTo' call
1943
+ var tmp0_iterator_1 = this_2.s().j();
1944
+ while (tmp0_iterator_1.k()) {
1945
+ var element_0 = tmp0_iterator_1.l();
1946
+ // Inline function 'kotlin.collections.mapValuesTo.<anonymous>' call
1947
+ var tmp_4 = element_0.t();
1948
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
1949
+ var tmp$ret$13 = element_0.u().fk_1;
1950
+ destination_0.j2(tmp_4, tmp$ret$13);
1951
+ }
1952
+ tmp_3.t5z_1 = HashMap_init_$Create$_0(destination_0);
1953
+ $l$loop: while (true) {
1954
+ var added = ArrayList_init_$Create$();
1955
+ var _iterator__ex2g4s = this.u5z_1.j();
1956
+ while (_iterator__ex2g4s.k()) {
1957
+ var src = _iterator__ex2g4s.l();
1958
+ var _iterator__ex2g4s_0 = this.u5z_1.j();
1959
+ while (_iterator__ex2g4s_0.k()) {
1960
+ var dst = _iterator__ex2g4s_0.l();
1961
+ if (dst.m5u().e5t(src.n5w()) && !equals(src.m5u(), dst.n5w())) {
1962
+ var tmp$ret$17;
1963
+ $l$block_0: {
1964
+ // Inline function 'kotlin.collections.none' call
1965
+ var this_3 = this.u5z_1;
1966
+ var tmp_5;
1967
+ if (isInterface(this_3, Collection)) {
1968
+ tmp_5 = this_3.p();
1969
+ } else {
1970
+ tmp_5 = false;
1971
+ }
1972
+ if (tmp_5) {
1973
+ tmp$ret$17 = true;
1974
+ break $l$block_0;
1975
+ }
1976
+ var tmp0_iterator_2 = this_3.j();
1977
+ while (tmp0_iterator_2.k()) {
1978
+ var element_1 = tmp0_iterator_2.l();
1979
+ // Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
1980
+ if (equals(element_1.m5u(), src.m5u()) && equals(element_1.n5w(), dst.n5w())) {
1981
+ tmp$ret$17 = false;
1982
+ break $l$block_0;
1983
+ }
1984
+ }
1985
+ tmp$ret$17 = true;
1986
+ }
1987
+ if (tmp$ret$17) {
1988
+ // Inline function 'kotlin.collections.plusAssign' call
1989
+ var tmp_6 = isInterface(src, ContextTranslator) ? src : THROW_CCE();
1990
+ var element_2 = new CompositeContextTranslator(tmp_6, isInterface(dst, ContextTranslator) ? dst : THROW_CCE());
1991
+ added.e(element_2);
1992
+ }
1993
+ }
1994
+ }
1995
+ }
1996
+ // Inline function 'kotlin.collections.plusAssign' call
1997
+ var this_4 = this.u5z_1;
1998
+ addAll(this_4, added);
1999
+ if (added.p())
2000
+ break $l$loop;
2001
+ }
2002
+ }
2003
+ protoOf(DITreeImpl).o5v = function () {
2004
+ return this.p5z_1;
2005
+ };
2006
+ protoOf(DITreeImpl).n5v = function () {
2007
+ return this.t5z_1;
2008
+ };
2009
+ protoOf(DITreeImpl).p5v = function (key, overrideLevel, all) {
2010
+ if (!all) {
2011
+ var tmp52_safe_receiver = this.r5z_1.g2(key);
2012
+ if (tmp52_safe_receiver == null)
2013
+ null;
2014
+ else {
2015
+ // Inline function 'kotlin.let' call
2016
+ // Inline function 'kotlin.contracts.contract' call
2017
+ var realKey = tmp52_safe_receiver.pe();
2018
+ var list = tmp52_safe_receiver.qe();
2019
+ var translator = tmp52_safe_receiver.hk();
2020
+ var tmp0_elvis_lhs = getOrNull(list, overrideLevel);
2021
+ var tmp;
2022
+ if (tmp0_elvis_lhs == null) {
2023
+ return emptyList();
2024
+ } else {
2025
+ tmp = tmp0_elvis_lhs;
2026
+ }
2027
+ var definition = tmp;
2028
+ var tmp_0 = realKey instanceof Key ? realKey : THROW_CCE();
2029
+ var tmp_1 = definition instanceof DIDefinition ? definition : THROW_CCE();
2030
+ return listOf(new Triple(tmp_0, tmp_1, (translator == null ? true : isInterface(translator, ContextTranslator)) ? translator : THROW_CCE()));
2031
+ }
2032
+ if (!equals(key.r5t_1, Companion_getInstance().v5s_1)) {
2033
+ var anyContextKey = key.h5u(Companion_getInstance().v5s_1);
2034
+ var tmp53_safe_receiver = this.r5z_1.g2(anyContextKey);
2035
+ if (tmp53_safe_receiver == null)
2036
+ null;
2037
+ else {
2038
+ // Inline function 'kotlin.let' call
2039
+ // Inline function 'kotlin.contracts.contract' call
2040
+ $l$block: {
2041
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2042
+ var realKey_0 = tmp53_safe_receiver.pe();
2043
+ var list_0 = tmp53_safe_receiver.qe();
2044
+ var translator_0 = tmp53_safe_receiver.hk();
2045
+ if (!(translator_0 == null) && !equals(translator_0.m5u(), key.r5t_1)) {
2046
+ break $l$block;
2047
+ }
2048
+ // Inline function 'kotlin.collections.set' call
2049
+ this.r5z_1.j2(key, tmp53_safe_receiver);
2050
+ var tmp0_elvis_lhs_0 = getOrNull(list_0, overrideLevel);
2051
+ var tmp_2;
2052
+ if (tmp0_elvis_lhs_0 == null) {
2053
+ return emptyList();
2054
+ } else {
2055
+ tmp_2 = tmp0_elvis_lhs_0;
2056
+ }
2057
+ var definition_0 = tmp_2;
2058
+ var tmp_3 = realKey_0 instanceof Key ? realKey_0 : THROW_CCE();
2059
+ var tmp_4 = definition_0 instanceof DIDefinition ? definition_0 : THROW_CCE();
2060
+ return listOf(new Triple(tmp_3, tmp_4, (translator_0 == null ? true : isInterface(translator_0, ContextTranslator)) ? translator_0 : THROW_CCE()));
2061
+ }
2062
+ }
2063
+ }
2064
+ // Inline function 'kotlin.collections.filter' call
2065
+ // Inline function 'kotlin.collections.filterTo' call
2066
+ var this_0 = this.u5z_1;
2067
+ var destination = ArrayList_init_$Create$();
2068
+ var tmp0_iterator = this_0.j();
2069
+ while (tmp0_iterator.k()) {
2070
+ var element = tmp0_iterator.l();
2071
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2072
+ if (equals(element.m5u(), key.r5t_1)) {
2073
+ destination.e(element);
2074
+ }
2075
+ }
2076
+ var tmp_5 = destination;
2077
+ // Inline function 'kotlin.collections.filter' call
2078
+ // Inline function 'kotlin.collections.filterTo' call
2079
+ var this_1 = this.u5z_1;
2080
+ var destination_0 = ArrayList_init_$Create$();
2081
+ var tmp0_iterator_0 = this_1.j();
2082
+ while (tmp0_iterator_0.k()) {
2083
+ var element_0 = tmp0_iterator_0.l();
2084
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2085
+ if (equals(element_0.m5u(), Companion_getInstance().v5s_1)) {
2086
+ destination_0.e(element_0);
2087
+ }
2088
+ }
2089
+ var applicableTranslators = plus(tmp_5, destination_0);
2090
+ var _iterator__ex2g4s = applicableTranslators.j();
2091
+ while (_iterator__ex2g4s.k()) {
2092
+ var translator_1 = _iterator__ex2g4s.l();
2093
+ var translatedKey = new Key(translator_1.n5w(), key.s5t_1, key.t5t_1, key.u5t_1);
2094
+ var tmp54_safe_receiver = this.r5z_1.g2(translatedKey);
2095
+ var tmp_6;
2096
+ if (tmp54_safe_receiver == null) {
2097
+ tmp_6 = null;
2098
+ } else {
2099
+ // Inline function 'kotlin.takeIf' call
2100
+ // Inline function 'kotlin.contracts.contract' call
2101
+ var tmp_7;
2102
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2103
+ if (tmp54_safe_receiver.gk_1 == null) {
2104
+ tmp_7 = tmp54_safe_receiver;
2105
+ } else {
2106
+ tmp_7 = null;
2107
+ }
2108
+ tmp_6 = tmp_7;
2109
+ }
2110
+ var tmp55_safe_receiver = tmp_6;
2111
+ if (tmp55_safe_receiver == null)
2112
+ null;
2113
+ else {
2114
+ // Inline function 'kotlin.let' call
2115
+ // Inline function 'kotlin.contracts.contract' call
2116
+ $l$block_0: {
2117
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2118
+ if (!(tmp55_safe_receiver.gk_1 == null)) {
2119
+ break $l$block_0;
2120
+ }
2121
+ // Inline function 'kotlin.collections.set' call
2122
+ var this_2 = this.r5z_1;
2123
+ var value = tmp55_safe_receiver.jk(VOID, VOID, translator_1);
2124
+ this_2.j2(key, value);
2125
+ var realKey_1 = tmp55_safe_receiver.pe();
2126
+ var list_1 = tmp55_safe_receiver.qe();
2127
+ var tmp0_elvis_lhs_1 = getOrNull(list_1, overrideLevel);
2128
+ var tmp_8;
2129
+ if (tmp0_elvis_lhs_1 == null) {
2130
+ return emptyList();
2131
+ } else {
2132
+ tmp_8 = tmp0_elvis_lhs_1;
2133
+ }
2134
+ var definition_1 = tmp_8;
2135
+ var tmp_9 = realKey_1 instanceof Key ? realKey_1 : THROW_CCE();
2136
+ var tmp_10 = definition_1 instanceof DIDefinition ? definition_1 : THROW_CCE();
2137
+ return listOf(new Triple(tmp_9, tmp_10, isInterface(translator_1, ContextTranslator) ? translator_1 : THROW_CCE()));
2138
+ }
2139
+ }
2140
+ }
2141
+ }
2142
+ var result = findBySpecs(this, new SearchSpecs(key.r5t_1, key.s5t_1, key.t5t_1, key.u5t_1));
2143
+ if (result.m() === 1) {
2144
+ var _destruct__k2r9zo = first(result);
2145
+ var realKey_2 = _destruct__k2r9zo.pe();
2146
+ var translator_2 = _destruct__k2r9zo.qe();
2147
+ // Inline function 'kotlin.collections.set' call
2148
+ var this_3 = this.r5z_1;
2149
+ var tmp56_safe_receiver = this.r5z_1.g2(realKey_2);
2150
+ var tmp0_elvis_lhs_2 = tmp56_safe_receiver == null ? null : tmp56_safe_receiver.jk(VOID, VOID, translator_2);
2151
+ var tmp_11;
2152
+ if (tmp0_elvis_lhs_2 == null) {
2153
+ throw notInMap(this, realKey_2, key);
2154
+ } else {
2155
+ tmp_11 = tmp0_elvis_lhs_2;
2156
+ }
2157
+ var value_0 = tmp_11;
2158
+ this_3.j2(key, value_0);
2159
+ }
2160
+ // Inline function 'kotlin.collections.mapNotNull' call
2161
+ // Inline function 'kotlin.collections.mapNotNullTo' call
2162
+ var destination_1 = ArrayList_init_$Create$();
2163
+ // Inline function 'kotlin.collections.forEach' call
2164
+ var tmp0_iterator_1 = result.j();
2165
+ while (tmp0_iterator_1.k()) {
2166
+ var element_1 = tmp0_iterator_1.l();
2167
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2168
+ var tmp$ret$13;
2169
+ $l$block_1: {
2170
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2171
+ var realKey_3 = element_1.pe();
2172
+ var translator_3 = element_1.qe();
2173
+ var tmp0_elvis_lhs_3 = this.r5z_1.g2(realKey_3);
2174
+ var tmp_12;
2175
+ if (tmp0_elvis_lhs_3 == null) {
2176
+ throw notInMap(this, realKey_3, key);
2177
+ } else {
2178
+ tmp_12 = tmp0_elvis_lhs_3;
2179
+ }
2180
+ var definitions = tmp_12.qe();
2181
+ var tmp1_elvis_lhs = getOrNull(definitions, overrideLevel);
2182
+ var tmp_13;
2183
+ if (tmp1_elvis_lhs == null) {
2184
+ tmp$ret$13 = null;
2185
+ break $l$block_1;
2186
+ } else {
2187
+ tmp_13 = tmp1_elvis_lhs;
2188
+ }
2189
+ var definition_2 = tmp_13;
2190
+ var tmp_14 = realKey_3 instanceof Key ? realKey_3 : THROW_CCE();
2191
+ var tmp_15 = definition_2 instanceof DIDefinition ? definition_2 : THROW_CCE();
2192
+ tmp$ret$13 = new Triple(tmp_14, tmp_15, (translator_3 == null ? true : isInterface(translator_3, ContextTranslator)) ? translator_3 : THROW_CCE());
2193
+ }
2194
+ var tmp0_safe_receiver = tmp$ret$13;
2195
+ if (tmp0_safe_receiver == null)
2196
+ null;
2197
+ else {
2198
+ // Inline function 'kotlin.let' call
2199
+ // Inline function 'kotlin.contracts.contract' call
2200
+ destination_1.e(tmp0_safe_receiver);
2201
+ }
2202
+ }
2203
+ return destination_1;
2204
+ };
2205
+ protoOf(DITreeImpl).r5v = function (search) {
2206
+ var result = findBySpecs(this, search);
2207
+ // Inline function 'kotlin.collections.map' call
2208
+ // Inline function 'kotlin.collections.mapTo' call
2209
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(result, 10));
2210
+ var tmp0_iterator = result.j();
2211
+ while (tmp0_iterator.k()) {
2212
+ var item = tmp0_iterator.l();
2213
+ // Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
2214
+ var key = item.pe();
2215
+ var translator = item.qe();
2216
+ var tmp$ret$0 = new Triple(key, ensureNotNull(this.r5z_1.g2(key)).fk_1, translator);
2217
+ destination.e(tmp$ret$0);
2218
+ }
2219
+ return destination;
2220
+ };
2221
+ protoOf(DITreeImpl).s5v = function (key) {
2222
+ var tmp = this.r5z_1.g2(key);
2223
+ return (tmp == null ? true : tmp instanceof Triple) ? tmp : THROW_CCE();
2224
+ };
2225
+ function Down(type) {
2226
+ TypeChecker.call(this);
2227
+ this.w5z_1 = type;
2228
+ this.x5z_1 = equals(this.w5z_1, Companion_getInstance().v5s_1);
2229
+ }
2230
+ protoOf(Down).v5z = function (other) {
2231
+ return this.x5z_1 || this.w5z_1.e5t(other);
2232
+ };
2233
+ protoOf(Down).toString = function () {
2234
+ return 'Down(type=' + toString_0(this.w5z_1) + ')';
2235
+ };
2236
+ protoOf(Down).hashCode = function () {
2237
+ return hashCode(this.w5z_1);
2238
+ };
2239
+ protoOf(Down).equals = function (other) {
2240
+ if (this === other)
2241
+ return true;
2242
+ if (!(other instanceof Down))
2243
+ return false;
2244
+ var tmp0_other_with_cast = other instanceof Down ? other : THROW_CCE();
2245
+ if (!equals(this.w5z_1, tmp0_other_with_cast.w5z_1))
2246
+ return false;
2247
+ return true;
2248
+ };
2249
+ function Up(type) {
2250
+ TypeChecker.call(this);
2251
+ this.y5z_1 = type;
2252
+ }
2253
+ protoOf(Up).v5z = function (other) {
2254
+ return equals(other, Companion_getInstance().v5s_1) || other.e5t(this.y5z_1);
2255
+ };
2256
+ protoOf(Up).toString = function () {
2257
+ return 'Up(type=' + toString_0(this.y5z_1) + ')';
2258
+ };
2259
+ protoOf(Up).hashCode = function () {
2260
+ return hashCode(this.y5z_1);
2261
+ };
2262
+ protoOf(Up).equals = function (other) {
2263
+ if (this === other)
2264
+ return true;
2265
+ if (!(other instanceof Up))
2266
+ return false;
2267
+ var tmp0_other_with_cast = other instanceof Up ? other : THROW_CCE();
2268
+ if (!equals(this.y5z_1, tmp0_other_with_cast.y5z_1))
2269
+ return false;
2270
+ return true;
2271
+ };
2272
+ function TypeChecker() {
2273
+ }
2274
+ function DirectDIBaseImpl(container, context) {
2275
+ this.z5z_1 = container;
2276
+ this.a60_1 = context;
2277
+ }
2278
+ protoOf(DirectDIBaseImpl).u5u = function () {
2279
+ return this.z5z_1;
2280
+ };
2281
+ protoOf(DirectDIBaseImpl).w5v = function () {
2282
+ return this;
2283
+ };
2284
+ protoOf(DirectDIBaseImpl).t5v = function () {
2285
+ var tmp = this.u5u();
2286
+ return On(new DIImpl(tmp instanceof DIContainerImpl ? tmp : THROW_CCE()), this.a60_1);
2287
+ };
2288
+ protoOf(DirectDIBaseImpl).u5v = function (context) {
2289
+ return createDirectDI(this.u5u(), context);
2290
+ };
2291
+ protoOf(DirectDIBaseImpl).v5v = function (type, tag) {
2292
+ var tmp = this.u5u();
2293
+ // Inline function 'org.kodein.di.internal.anyType' call
2294
+ var tmp_0 = this.a60_1.z5u();
2295
+ var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
2296
+ return tmp.f5v(new Key(tmp$ret$0, Companion_getInstance().u5s_1, type, tag), this.a60_1.u())();
2297
+ };
2298
+ function DIProperty$provideDelegate$lambda($receiver, this$0, $prop) {
2299
+ return function () {
2300
+ var tmp;
2301
+ if (!($receiver == null) && this$0.c60_1 === get_AnyDIContext()) {
2302
+ var tmp_0 = Companion_instance_0;
2303
+ var tmp_1 = erasedOf($receiver);
2304
+ tmp = tmp_0.a5v(isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(), $receiver);
2305
+ } else {
2306
+ tmp = this$0.c60_1;
2307
+ }
2308
+ var context = tmp;
2309
+ return this$0.d60_1(context, $prop.callableName);
2310
+ };
2311
+ }
2312
+ function DIProperty(trigger, originalContext, get) {
2313
+ this.b60_1 = trigger;
2314
+ this.c60_1 = originalContext;
2315
+ this.d60_1 = get;
2316
+ }
2317
+ protoOf(DIProperty).e60 = function (receiver, prop) {
2318
+ // Inline function 'kotlin.also' call
2319
+ var this_0 = lazy(DIProperty$provideDelegate$lambda(receiver, this, prop));
2320
+ // Inline function 'kotlin.contracts.contract' call
2321
+ // Inline function 'org.kodein.di.DIProperty.provideDelegate.<anonymous>' call
2322
+ var tmp62_safe_receiver = this.b60_1;
2323
+ var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.f60_1;
2324
+ if (tmp63_safe_receiver == null)
2325
+ null;
2326
+ else
2327
+ tmp63_safe_receiver.e(this_0);
2328
+ return this_0;
2329
+ };
2330
+ function createDirectDI(container, context) {
2331
+ return new DirectDIImpl(container, context);
2332
+ }
2333
+ function DirectDIImpl(container, context) {
2334
+ DirectDIBaseImpl.call(this, container, context);
2335
+ }
2336
+ function newConcurrentMap() {
2337
+ return HashMap_init_$Create$();
2338
+ }
2339
+ function newLinkedList() {
2340
+ return ArrayList_init_$Create$();
2341
+ }
2342
+ //region block: post-declaration
2343
+ protoOf(Singleton).g5w = get_argType;
2344
+ protoOf(Singleton).x5t = get_description;
2345
+ protoOf(Singleton).z5t = get_fullDescription;
2346
+ protoOf(Singleton).i5w = get_supportSubTypes;
2347
+ protoOf(Provider).g5w = get_argType;
2348
+ protoOf(Provider).f5w = factoryFullName;
2349
+ protoOf(Provider).o5u = get_scope;
2350
+ protoOf(Provider).x5t = get_description;
2351
+ protoOf(Provider).z5t = get_fullDescription;
2352
+ protoOf(Provider).i5w = get_supportSubTypes;
2353
+ protoOf(DIBuilderImpl).l5u = import$default;
2354
+ protoOf(DIContainerImpl).k5v = factoryOrNull$default;
2355
+ protoOf(DIContainerImpl).i5v = factory$default;
2356
+ protoOf(DIContainerImpl).l5v = provider;
2357
+ protoOf(DIContainerImpl).f5v = provider$default;
2358
+ protoOf(DIContainerImpl).m5v = providerOrNull;
2359
+ protoOf(DIContainerImpl).g5v = providerOrNull$default;
2360
+ protoOf(DIImpl).t5u = get_di;
2361
+ protoOf(DIImpl).v5u = get_diContext;
2362
+ protoOf(DIImpl).w5u = get_diTrigger;
2363
+ protoOf(DITreeImpl).q5v = find$default;
2364
+ protoOf(DirectDIBaseImpl).t5u = get_di_0;
2365
+ //endregion
2366
+ //region block: init
2367
+ Companion_instance = new Companion();
2368
+ Companion_instance_0 = new Companion_0();
2369
+ NoDefinedTag_instance = new NoDefinedTag();
2370
+ ErasedContext_instance = new ErasedContext();
2371
+ Companion_instance_1 = new Companion_1();
2372
+ SingletonReference_instance = new SingletonReference();
2373
+ Companion_instance_2 = new Companion_2();
2374
+ Companion_instance_3 = new Companion_3();
2375
+ //endregion
2376
+ //region block: exports
2377
+ _.$_$ = _.$_$ || {};
2378
+ _.$_$.a = Module_init_$Create$;
2379
+ _.$_$.b = Companion_instance;
2380
+ _.$_$.c = Provider;
2381
+ _.$_$.d = Singleton;
2382
+ _.$_$.e = InstanceOrNull;
2383
+ _.$_$.f = Instance;
2384
+ _.$_$.g = get_direct;
2385
+ //endregion
2386
+ return _;
2387
+ }));
2388
+
2389
+ //# sourceMappingURL=Kosi-Kodein-kodein-di.js.map