raspberry_games_engine_helpers 1.8.431 → 1.8.433
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +58 -58
- package/Kosi-Kodein-kodein-di.js +499 -499
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1499 -1499
- package/Logic_Debertz-core.js +997 -997
- package/Logic_Debertz-engine.d.ts +16 -0
- package/Logic_Debertz-engine.js +10220 -10158
- package/Logic_Debertz-engine.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +443 -437
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +4 -4
- package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +41 -41
- package/raspberry-cardgame-lib-logger.js +81 -81
- package/raspberry-cardgame-lib-random.js +43 -43
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
function CoreConfig() {
|
|
47
47
|
this.version = '0.0.53';
|
|
48
48
|
}
|
|
49
|
-
protoOf(CoreConfig).
|
|
49
|
+
protoOf(CoreConfig).l17 = function () {
|
|
50
50
|
return this.version;
|
|
51
51
|
};
|
|
52
52
|
var CoreConfig_instance;
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
}
|
|
56
56
|
function CardIndexComparator() {
|
|
57
57
|
}
|
|
58
|
-
protoOf(CardIndexComparator).
|
|
59
|
-
return a.
|
|
58
|
+
protoOf(CardIndexComparator).m17 = function (a, b) {
|
|
59
|
+
return a.n17_1 - b.n17_1 | 0;
|
|
60
60
|
};
|
|
61
61
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
62
62
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
63
|
-
return this.
|
|
63
|
+
return this.m17(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
64
64
|
};
|
|
65
65
|
var CardIndexComparator_instance;
|
|
66
66
|
function CardIndexComparator_getInstance() {
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
}
|
|
154
154
|
function Companion() {
|
|
155
155
|
}
|
|
156
|
-
protoOf(Companion).
|
|
156
|
+
protoOf(Companion).o17 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
157
157
|
var tmp;
|
|
158
158
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
159
159
|
tmp = null;
|
|
160
160
|
} else {
|
|
161
161
|
// Inline function 'kotlin.takeIf' call
|
|
162
162
|
var tmp_0;
|
|
163
|
-
if (previousHiddenCardWithMaxIndex.
|
|
163
|
+
if (previousHiddenCardWithMaxIndex.p17()) {
|
|
164
164
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
165
165
|
} else {
|
|
166
166
|
tmp_0 = null;
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
tmp = tmp_0;
|
|
169
169
|
}
|
|
170
170
|
var tmp1_safe_receiver = tmp;
|
|
171
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
172
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
171
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n17_1;
|
|
172
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.v17(tmp2_safe_receiver, playerIndex, reverse);
|
|
173
173
|
var tmp_1;
|
|
174
174
|
if (tmp3_safe_receiver == null) {
|
|
175
175
|
tmp_1 = null;
|
|
@@ -188,10 +188,10 @@
|
|
|
188
188
|
var index = tmp_2;
|
|
189
189
|
return new GameCard(index);
|
|
190
190
|
};
|
|
191
|
-
protoOf(Companion).
|
|
191
|
+
protoOf(Companion).w17 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
192
192
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
193
193
|
reverse = reverse === VOID ? false : reverse;
|
|
194
|
-
return $super === VOID ? this.
|
|
194
|
+
return $super === VOID ? this.o17(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.o17.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
195
195
|
};
|
|
196
196
|
var Companion_instance;
|
|
197
197
|
function Companion_getInstance() {
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
return tmp;
|
|
246
246
|
}
|
|
247
247
|
function _get_isShirt__vd98rp($this) {
|
|
248
|
-
return $this.
|
|
248
|
+
return $this.n17_1 >= 150 && $this.n17_1 <= 202;
|
|
249
249
|
}
|
|
250
250
|
function CardName(name, ordinal) {
|
|
251
251
|
Enum.call(this, name, ordinal);
|
|
@@ -254,13 +254,13 @@
|
|
|
254
254
|
return getShortName(this);
|
|
255
255
|
};
|
|
256
256
|
function Companion_0() {
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
257
|
+
this.q17_1 = -1;
|
|
258
|
+
this.r17_1 = 13;
|
|
259
|
+
this.s17_1 = 52;
|
|
260
|
+
this.t17_1 = 150;
|
|
261
|
+
this.u17_1 = 53;
|
|
262
262
|
}
|
|
263
|
-
protoOf(Companion_0).
|
|
263
|
+
protoOf(Companion_0).v17 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
264
264
|
var tmp;
|
|
265
265
|
if (reverse) {
|
|
266
266
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -330,56 +330,56 @@
|
|
|
330
330
|
return CardName_HIDDEN_instance;
|
|
331
331
|
}
|
|
332
332
|
function GameCard(index) {
|
|
333
|
-
this.
|
|
333
|
+
this.n17_1 = index;
|
|
334
334
|
}
|
|
335
|
-
protoOf(GameCard).
|
|
335
|
+
protoOf(GameCard).x17 = function () {
|
|
336
336
|
var tmp;
|
|
337
|
-
var containsArg = this.
|
|
337
|
+
var containsArg = this.n17_1;
|
|
338
338
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
339
339
|
tmp = Suit_DIAMOND_getInstance();
|
|
340
340
|
} else {
|
|
341
|
-
if (this.
|
|
341
|
+
if (this.n17_1 <= 26) {
|
|
342
342
|
tmp = Suit_SPADE_getInstance();
|
|
343
343
|
} else {
|
|
344
|
-
if (this.
|
|
344
|
+
if (this.n17_1 <= 39) {
|
|
345
345
|
tmp = Suit_HEART_getInstance();
|
|
346
346
|
} else {
|
|
347
|
-
if (this.
|
|
347
|
+
if (this.n17_1 <= 52) {
|
|
348
348
|
tmp = Suit_CLUB_getInstance();
|
|
349
349
|
} else {
|
|
350
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
350
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.n17_1);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
|
-
protoOf(GameCard).
|
|
357
|
+
protoOf(GameCard).y17 = function () {
|
|
358
358
|
var tmp;
|
|
359
|
-
if (this.
|
|
359
|
+
if (this.p17()) {
|
|
360
360
|
tmp = -1;
|
|
361
361
|
} else {
|
|
362
|
-
tmp = this.
|
|
362
|
+
tmp = this.n17_1 - imul(13, getIndex(this.x17())) | 0;
|
|
363
363
|
}
|
|
364
364
|
return tmp;
|
|
365
365
|
};
|
|
366
366
|
protoOf(GameCard).i2 = function () {
|
|
367
|
-
return this.
|
|
367
|
+
return this.p17() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.y17());
|
|
368
368
|
};
|
|
369
|
-
protoOf(GameCard).
|
|
370
|
-
return this.
|
|
369
|
+
protoOf(GameCard).p17 = function () {
|
|
370
|
+
return this.n17_1 >= 53 && this.n17_1 <= 105;
|
|
371
371
|
};
|
|
372
372
|
protoOf(GameCard).toString = function () {
|
|
373
373
|
if (_get_isShirt__vd98rp(this)) {
|
|
374
|
-
return 'GameCard(SHIRT, ' + this.
|
|
374
|
+
return 'GameCard(SHIRT, ' + this.n17_1 + ')';
|
|
375
375
|
}
|
|
376
|
-
if (this.
|
|
377
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
376
|
+
if (this.p17()) {
|
|
377
|
+
return 'GameCard(HIDDEN, ' + this.n17_1 + ')';
|
|
378
378
|
}
|
|
379
|
-
return 'GameCard(' + this.
|
|
379
|
+
return 'GameCard(' + this.x17().toString() + this.i2().toString() + ', ' + this.n17_1 + ')';
|
|
380
380
|
};
|
|
381
381
|
protoOf(GameCard).hashCode = function () {
|
|
382
|
-
return this.
|
|
382
|
+
return this.n17_1;
|
|
383
383
|
};
|
|
384
384
|
protoOf(GameCard).equals = function (other) {
|
|
385
385
|
if (this === other)
|
|
@@ -387,12 +387,12 @@
|
|
|
387
387
|
if (!(other instanceof GameCard))
|
|
388
388
|
return false;
|
|
389
389
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
390
|
-
if (!(this.
|
|
390
|
+
if (!(this.n17_1 === tmp0_other_with_cast.n17_1))
|
|
391
391
|
return false;
|
|
392
392
|
return true;
|
|
393
393
|
};
|
|
394
394
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
395
|
-
return $this.
|
|
395
|
+
return $this.z17_1.v1();
|
|
396
396
|
}
|
|
397
397
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
398
398
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -429,13 +429,13 @@
|
|
|
429
429
|
Companion_instance_1 = this;
|
|
430
430
|
var tmp = this;
|
|
431
431
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
432
|
-
tmp.
|
|
432
|
+
tmp.z17_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
433
433
|
}
|
|
434
|
-
protoOf(Companion_1).
|
|
434
|
+
protoOf(Companion_1).a18 = function () {
|
|
435
435
|
return _get_$cachedSerializer__te6jhj(this);
|
|
436
436
|
};
|
|
437
|
-
protoOf(Companion_1).
|
|
438
|
-
return this.
|
|
437
|
+
protoOf(Companion_1).dw = function (typeParamsSerializers) {
|
|
438
|
+
return this.a18();
|
|
439
439
|
};
|
|
440
440
|
var Companion_instance_1;
|
|
441
441
|
function Companion_getInstance_1() {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
payload = payload === VOID ? null : payload;
|
|
35
35
|
var tmp;
|
|
36
36
|
if ($super === VOID) {
|
|
37
|
-
this.
|
|
37
|
+
this.j15(tag, message, payload);
|
|
38
38
|
tmp = Unit_instance;
|
|
39
39
|
} else {
|
|
40
|
-
tmp = $super.
|
|
40
|
+
tmp = $super.j15.call(this, tag, message, payload);
|
|
41
41
|
}
|
|
42
42
|
return tmp;
|
|
43
43
|
}
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
payload = payload === VOID ? null : payload;
|
|
49
49
|
var tmp;
|
|
50
50
|
if ($super === VOID) {
|
|
51
|
-
this.
|
|
51
|
+
this.k15(tag, message, exception, payload);
|
|
52
52
|
tmp = Unit_instance;
|
|
53
53
|
} else {
|
|
54
|
-
tmp = $super.
|
|
54
|
+
tmp = $super.k15.call(this, tag, message, exception, payload);
|
|
55
55
|
}
|
|
56
56
|
return tmp;
|
|
57
57
|
}
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
payload = payload === VOID ? null : payload;
|
|
63
63
|
var tmp;
|
|
64
64
|
if ($super === VOID) {
|
|
65
|
-
this.
|
|
65
|
+
this.l15(tag, message, exception, payload);
|
|
66
66
|
tmp = Unit_instance;
|
|
67
67
|
} else {
|
|
68
|
-
tmp = $super.
|
|
68
|
+
tmp = $super.l15.call(this, tag, message, exception, payload);
|
|
69
69
|
}
|
|
70
70
|
return tmp;
|
|
71
71
|
}
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
payload = payload === VOID ? null : payload;
|
|
77
77
|
var tmp;
|
|
78
78
|
if ($super === VOID) {
|
|
79
|
-
this.
|
|
79
|
+
this.m15(tag, message, exception, payload);
|
|
80
80
|
tmp = Unit_instance;
|
|
81
81
|
} else {
|
|
82
|
-
tmp = $super.
|
|
82
|
+
tmp = $super.m15.call(this, tag, message, exception, payload);
|
|
83
83
|
}
|
|
84
84
|
return tmp;
|
|
85
85
|
}
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
payload = payload === VOID ? null : payload;
|
|
89
89
|
var tmp;
|
|
90
90
|
if ($super === VOID) {
|
|
91
|
-
this.
|
|
91
|
+
this.n15(tag, message, payload);
|
|
92
92
|
tmp = Unit_instance;
|
|
93
93
|
} else {
|
|
94
|
-
tmp = $super.
|
|
94
|
+
tmp = $super.n15.call(this, tag, message, payload);
|
|
95
95
|
}
|
|
96
96
|
return tmp;
|
|
97
97
|
}
|
|
@@ -113,43 +113,43 @@
|
|
|
113
113
|
return Companion_instance;
|
|
114
114
|
}
|
|
115
115
|
function CombinedRaspberryLogger(logOutputs) {
|
|
116
|
-
this.
|
|
116
|
+
this.i15_1 = logOutputs;
|
|
117
117
|
}
|
|
118
|
-
protoOf(CombinedRaspberryLogger).
|
|
118
|
+
protoOf(CombinedRaspberryLogger).j15 = function (tag, message, payload) {
|
|
119
119
|
// Inline function 'kotlin.collections.forEach' call
|
|
120
|
-
var _iterator__ex2g4s = this.
|
|
120
|
+
var _iterator__ex2g4s = this.i15_1.l();
|
|
121
121
|
while (_iterator__ex2g4s.m()) {
|
|
122
122
|
var element = _iterator__ex2g4s.n();
|
|
123
123
|
element.d(tag, message, payload);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
protoOf(CombinedRaspberryLogger).
|
|
126
|
+
protoOf(CombinedRaspberryLogger).k15 = function (tag, message, exception, payload) {
|
|
127
127
|
// Inline function 'kotlin.collections.forEach' call
|
|
128
|
-
var _iterator__ex2g4s = this.
|
|
128
|
+
var _iterator__ex2g4s = this.i15_1.l();
|
|
129
129
|
while (_iterator__ex2g4s.m()) {
|
|
130
130
|
var element = _iterator__ex2g4s.n();
|
|
131
131
|
element.e(tag, message, exception, payload);
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
protoOf(CombinedRaspberryLogger).
|
|
134
|
+
protoOf(CombinedRaspberryLogger).l15 = function (tag, message, exception, payload) {
|
|
135
135
|
// Inline function 'kotlin.collections.forEach' call
|
|
136
|
-
var _iterator__ex2g4s = this.
|
|
136
|
+
var _iterator__ex2g4s = this.i15_1.l();
|
|
137
137
|
while (_iterator__ex2g4s.m()) {
|
|
138
138
|
var element = _iterator__ex2g4s.n();
|
|
139
139
|
element.w(tag, message, exception, payload);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
protoOf(CombinedRaspberryLogger).
|
|
142
|
+
protoOf(CombinedRaspberryLogger).m15 = function (tag, message, exception, payload) {
|
|
143
143
|
// Inline function 'kotlin.collections.forEach' call
|
|
144
|
-
var _iterator__ex2g4s = this.
|
|
144
|
+
var _iterator__ex2g4s = this.i15_1.l();
|
|
145
145
|
while (_iterator__ex2g4s.m()) {
|
|
146
146
|
var element = _iterator__ex2g4s.n();
|
|
147
147
|
element.v(tag, message, exception, payload);
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
protoOf(CombinedRaspberryLogger).
|
|
150
|
+
protoOf(CombinedRaspberryLogger).n15 = function (tag, message, payload) {
|
|
151
151
|
// Inline function 'kotlin.collections.forEach' call
|
|
152
|
-
var _iterator__ex2g4s = this.
|
|
152
|
+
var _iterator__ex2g4s = this.i15_1.l();
|
|
153
153
|
while (_iterator__ex2g4s.m()) {
|
|
154
154
|
var element = _iterator__ex2g4s.n();
|
|
155
155
|
element.i(tag, message, payload);
|
|
@@ -161,38 +161,38 @@
|
|
|
161
161
|
}
|
|
162
162
|
function PlatformRaspberryLogger(enabled) {
|
|
163
163
|
enabled = enabled === VOID ? true : enabled;
|
|
164
|
-
this.
|
|
164
|
+
this.q15_1 = enabled;
|
|
165
165
|
}
|
|
166
|
-
protoOf(PlatformRaspberryLogger).
|
|
167
|
-
this.
|
|
166
|
+
protoOf(PlatformRaspberryLogger).o15 = function (_set____db54di) {
|
|
167
|
+
this.q15_1 = _set____db54di;
|
|
168
168
|
};
|
|
169
|
-
protoOf(PlatformRaspberryLogger).
|
|
170
|
-
return this.
|
|
169
|
+
protoOf(PlatformRaspberryLogger).p15 = function () {
|
|
170
|
+
return this.q15_1;
|
|
171
171
|
};
|
|
172
|
-
protoOf(PlatformRaspberryLogger).
|
|
173
|
-
if (!this.
|
|
172
|
+
protoOf(PlatformRaspberryLogger).j15 = function (tag, message, payload) {
|
|
173
|
+
if (!this.q15_1)
|
|
174
174
|
return Unit_instance;
|
|
175
|
-
Logger_getInstance().
|
|
176
|
-
};
|
|
177
|
-
protoOf(PlatformRaspberryLogger).j15 = function (tag, message, exception, payload) {
|
|
178
|
-
if (!this.p15_1)
|
|
179
|
-
return Unit_instance;
|
|
180
|
-
Logger_getInstance().u15(tag, message, exception);
|
|
175
|
+
Logger_getInstance().u15(tag, message);
|
|
181
176
|
};
|
|
182
177
|
protoOf(PlatformRaspberryLogger).k15 = function (tag, message, exception, payload) {
|
|
183
|
-
if (!this.
|
|
178
|
+
if (!this.q15_1)
|
|
184
179
|
return Unit_instance;
|
|
185
180
|
Logger_getInstance().v15(tag, message, exception);
|
|
186
181
|
};
|
|
187
182
|
protoOf(PlatformRaspberryLogger).l15 = function (tag, message, exception, payload) {
|
|
188
|
-
if (!this.
|
|
183
|
+
if (!this.q15_1)
|
|
189
184
|
return Unit_instance;
|
|
190
185
|
Logger_getInstance().w15(tag, message, exception);
|
|
191
186
|
};
|
|
192
|
-
protoOf(PlatformRaspberryLogger).m15 = function (tag, message, payload) {
|
|
193
|
-
if (!this.
|
|
187
|
+
protoOf(PlatformRaspberryLogger).m15 = function (tag, message, exception, payload) {
|
|
188
|
+
if (!this.q15_1)
|
|
194
189
|
return Unit_instance;
|
|
195
|
-
Logger_getInstance().
|
|
190
|
+
Logger_getInstance().x15(tag, message, exception);
|
|
191
|
+
};
|
|
192
|
+
protoOf(PlatformRaspberryLogger).n15 = function (tag, message, payload) {
|
|
193
|
+
if (!this.q15_1)
|
|
194
|
+
return Unit_instance;
|
|
195
|
+
Logger_getInstance().x15(tag, message);
|
|
196
196
|
};
|
|
197
197
|
function RaspberryLogger() {
|
|
198
198
|
}
|
|
@@ -209,26 +209,26 @@
|
|
|
209
209
|
Category_NONE_instance = new Category('NONE', 1, true);
|
|
210
210
|
}
|
|
211
211
|
function generateTag($this, tag) {
|
|
212
|
-
return !($this.
|
|
212
|
+
return !($this.t15_1 == null) && !(tag == null) ? '' + $this.t15_1 + ':' + tag : tag;
|
|
213
213
|
}
|
|
214
214
|
function Category(name, ordinal, isEnabled) {
|
|
215
215
|
Enum.call(this, name, ordinal);
|
|
216
|
-
this.
|
|
216
|
+
this.a16_1 = isEnabled;
|
|
217
217
|
}
|
|
218
218
|
function Logger$loggerSource$1() {
|
|
219
|
-
this.
|
|
219
|
+
this.b16_1 = new PlatformLogger();
|
|
220
220
|
}
|
|
221
|
-
protoOf(Logger$loggerSource$1).
|
|
222
|
-
this.
|
|
223
|
-
};
|
|
224
|
-
protoOf(Logger$loggerSource$1).c16 = function (tag, msg, exception) {
|
|
225
|
-
this.a16_1.c16(tag, msg, exception);
|
|
221
|
+
protoOf(Logger$loggerSource$1).c16 = function (tag, msg) {
|
|
222
|
+
this.b16_1.c16(tag, msg);
|
|
226
223
|
};
|
|
227
224
|
protoOf(Logger$loggerSource$1).d16 = function (tag, msg, exception) {
|
|
228
|
-
this.
|
|
225
|
+
this.b16_1.d16(tag, msg, exception);
|
|
229
226
|
};
|
|
230
227
|
protoOf(Logger$loggerSource$1).e16 = function (tag, msg, exception) {
|
|
231
|
-
this.
|
|
228
|
+
this.b16_1.e16(tag, msg, exception);
|
|
229
|
+
};
|
|
230
|
+
protoOf(Logger$loggerSource$1).f16 = function (tag, msg, exception) {
|
|
231
|
+
this.b16_1.f16(tag, msg, exception);
|
|
232
232
|
};
|
|
233
233
|
function Category_NONE_getInstance() {
|
|
234
234
|
Category_initEntries();
|
|
@@ -237,82 +237,82 @@
|
|
|
237
237
|
function Logger() {
|
|
238
238
|
Logger_instance = this;
|
|
239
239
|
var tmp = this;
|
|
240
|
-
tmp.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
240
|
+
tmp.r15_1 = new Logger$loggerSource$1();
|
|
241
|
+
this.s15_1 = true;
|
|
242
|
+
this.t15_1 = null;
|
|
243
243
|
}
|
|
244
|
-
protoOf(Logger).
|
|
245
|
-
this.
|
|
244
|
+
protoOf(Logger).u15 = function (tag, message) {
|
|
245
|
+
this.g16(tag, message, Category_NONE_getInstance());
|
|
246
246
|
};
|
|
247
|
-
protoOf(Logger).
|
|
248
|
-
if (this.
|
|
247
|
+
protoOf(Logger).h16 = function (tag, message, exception, category) {
|
|
248
|
+
if (this.s15_1 && category.a16_1) {
|
|
249
249
|
if (exception == null)
|
|
250
250
|
null;
|
|
251
251
|
else {
|
|
252
252
|
printStackTrace(exception);
|
|
253
253
|
}
|
|
254
|
-
this.
|
|
254
|
+
this.r15_1.e16(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
protoOf(Logger).
|
|
257
|
+
protoOf(Logger).w15 = function (tag, message, exception, category, $super) {
|
|
258
258
|
tag = tag === VOID ? null : tag;
|
|
259
259
|
message = message === VOID ? null : message;
|
|
260
260
|
exception = exception === VOID ? null : exception;
|
|
261
261
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
262
262
|
var tmp;
|
|
263
263
|
if ($super === VOID) {
|
|
264
|
-
this.
|
|
264
|
+
this.h16(tag, message, exception, category);
|
|
265
265
|
tmp = Unit_instance;
|
|
266
266
|
} else {
|
|
267
|
-
tmp = $super.
|
|
267
|
+
tmp = $super.h16.call(this, tag, message, exception, category);
|
|
268
268
|
}
|
|
269
269
|
return tmp;
|
|
270
270
|
};
|
|
271
|
-
protoOf(Logger).
|
|
272
|
-
if (this.
|
|
273
|
-
this.
|
|
271
|
+
protoOf(Logger).g16 = function (tag, message, category) {
|
|
272
|
+
if (this.s15_1 && category.a16_1) {
|
|
273
|
+
this.r15_1.c16(generateTag(this, tag), message);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
protoOf(Logger).
|
|
277
|
-
if (this.
|
|
278
|
-
this.
|
|
276
|
+
protoOf(Logger).i16 = function (tag, message, exception, category) {
|
|
277
|
+
if (this.s15_1 && category.a16_1) {
|
|
278
|
+
this.r15_1.f16(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
protoOf(Logger).
|
|
281
|
+
protoOf(Logger).x15 = function (tag, message, exception, category, $super) {
|
|
282
282
|
tag = tag === VOID ? null : tag;
|
|
283
283
|
message = message === VOID ? null : message;
|
|
284
284
|
exception = exception === VOID ? null : exception;
|
|
285
285
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
286
286
|
var tmp;
|
|
287
287
|
if ($super === VOID) {
|
|
288
|
-
this.
|
|
288
|
+
this.i16(tag, message, exception, category);
|
|
289
289
|
tmp = Unit_instance;
|
|
290
290
|
} else {
|
|
291
|
-
tmp = $super.
|
|
291
|
+
tmp = $super.i16.call(this, tag, message, exception, category);
|
|
292
292
|
}
|
|
293
293
|
return tmp;
|
|
294
294
|
};
|
|
295
|
-
protoOf(Logger).
|
|
296
|
-
if (this.
|
|
295
|
+
protoOf(Logger).j16 = function (tag, message, exception, category) {
|
|
296
|
+
if (this.s15_1 && category.a16_1) {
|
|
297
297
|
if (exception == null)
|
|
298
298
|
null;
|
|
299
299
|
else {
|
|
300
300
|
printStackTrace(exception);
|
|
301
301
|
}
|
|
302
|
-
this.
|
|
302
|
+
this.r15_1.d16(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
|
-
protoOf(Logger).
|
|
305
|
+
protoOf(Logger).v15 = function (tag, message, exception, category, $super) {
|
|
306
306
|
tag = tag === VOID ? null : tag;
|
|
307
307
|
message = message === VOID ? null : message;
|
|
308
308
|
exception = exception === VOID ? null : exception;
|
|
309
309
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
310
310
|
var tmp;
|
|
311
311
|
if ($super === VOID) {
|
|
312
|
-
this.
|
|
312
|
+
this.j16(tag, message, exception, category);
|
|
313
313
|
tmp = Unit_instance;
|
|
314
314
|
} else {
|
|
315
|
-
tmp = $super.
|
|
315
|
+
tmp = $super.j16.call(this, tag, message, exception, category);
|
|
316
316
|
}
|
|
317
317
|
return tmp;
|
|
318
318
|
};
|
|
@@ -344,22 +344,22 @@
|
|
|
344
344
|
}
|
|
345
345
|
function PlatformLogger() {
|
|
346
346
|
}
|
|
347
|
-
protoOf(PlatformLogger).
|
|
347
|
+
protoOf(PlatformLogger).c16 = function (tag, msg) {
|
|
348
348
|
console.log('D:' + getLogTag(tag) + ': ' + msg);
|
|
349
349
|
};
|
|
350
|
-
protoOf(PlatformLogger).
|
|
350
|
+
protoOf(PlatformLogger).d16 = function (tag, msg, exception) {
|
|
351
351
|
if (!(exception == null)) {
|
|
352
352
|
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
|
|
353
353
|
} else {
|
|
354
354
|
console.error(getLogTag(tag) + ': ' + msg);
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
protoOf(PlatformLogger).
|
|
357
|
+
protoOf(PlatformLogger).e16 = function (tag, msg, exception) {
|
|
358
358
|
var tmp = console;
|
|
359
359
|
var tmp_0 = getLogTag(tag);
|
|
360
360
|
tmp.warn(tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
|
|
361
361
|
};
|
|
362
|
-
protoOf(PlatformLogger).
|
|
362
|
+
protoOf(PlatformLogger).f16 = function (tag, msg, exception) {
|
|
363
363
|
var tmp = console;
|
|
364
364
|
var tmp_0 = getLogTag(tag);
|
|
365
365
|
tmp.log('V:' + tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
|
|
@@ -376,9 +376,9 @@
|
|
|
376
376
|
protoOf(PlatformRaspberryLogger).v = v;
|
|
377
377
|
protoOf(PlatformRaspberryLogger).i = i;
|
|
378
378
|
defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
|
|
379
|
-
return this.
|
|
379
|
+
return this.p15();
|
|
380
380
|
}, function (value) {
|
|
381
|
-
this.
|
|
381
|
+
this.o15(value);
|
|
382
382
|
});
|
|
383
383
|
//endregion
|
|
384
384
|
//region block: init
|