raspberry_games_engine_helpers 1.8.436 → 1.8.437
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 +514 -514
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1497 -1497
- package/Logic_Debertz-core.js +1027 -1024
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.d.ts +3 -2
- package/Logic_Debertz-engine.js +8974 -8836
- package/Logic_Debertz-engine.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +283 -307
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core.js +1785 -1785
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1349 -1349
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +53 -53
- package/raspberry-cardgame-lib-logger.js +88 -88
- package/raspberry-cardgame-lib-random.js +45 -45
package/package.json
CHANGED
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
var initMetadataForObject = kotlin_kotlin.$_$.m9;
|
|
21
21
|
var defineProp = kotlin_kotlin.$_$.a9;
|
|
22
22
|
var VOID = kotlin_kotlin.$_$.b;
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
25
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.bd;
|
|
24
|
+
var Comparator = kotlin_kotlin.$_$.rc;
|
|
25
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wd;
|
|
26
26
|
var Unit_instance = kotlin_kotlin.$_$.a4;
|
|
27
27
|
var initMetadataForCompanion = kotlin_kotlin.$_$.i9;
|
|
28
28
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
29
|
-
var Enum = kotlin_kotlin.$_$.
|
|
29
|
+
var Enum = kotlin_kotlin.$_$.uc;
|
|
30
30
|
var initMetadataForClass = kotlin_kotlin.$_$.h9;
|
|
31
31
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
32
32
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.d;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.ud;
|
|
34
34
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
35
35
|
//endregion
|
|
36
36
|
//region block: pre-declaration
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
function CoreConfig() {
|
|
47
47
|
this.version = '0.0.54';
|
|
48
48
|
}
|
|
49
|
-
protoOf(CoreConfig).
|
|
49
|
+
protoOf(CoreConfig).j17 = 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).k17 = function (a, b) {
|
|
59
|
+
return a.l17_1 - b.l17_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.k17(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).m17 = 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.n17()) {
|
|
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.l17_1;
|
|
172
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.u17(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).v17 = 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.m17(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.m17.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.l17_1 >= 150 && $this.l17_1 <= 202;
|
|
249
249
|
}
|
|
250
250
|
function CardName(name, ordinal) {
|
|
251
251
|
Enum.call(this, name, ordinal);
|
|
@@ -254,14 +254,14 @@
|
|
|
254
254
|
return getShortName(this);
|
|
255
255
|
};
|
|
256
256
|
function Companion_0() {
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
263
|
-
}
|
|
264
|
-
protoOf(Companion_0).
|
|
257
|
+
this.o17_1 = -1;
|
|
258
|
+
this.p17_1 = 13;
|
|
259
|
+
this.q17_1 = 52;
|
|
260
|
+
this.r17_1 = 150;
|
|
261
|
+
this.s17_1 = 53;
|
|
262
|
+
this.t17_1 = 999;
|
|
263
|
+
}
|
|
264
|
+
protoOf(Companion_0).u17 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
265
265
|
var tmp;
|
|
266
266
|
if (reverse) {
|
|
267
267
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -331,68 +331,68 @@
|
|
|
331
331
|
return CardName_HIDDEN_instance;
|
|
332
332
|
}
|
|
333
333
|
function GameCard(index) {
|
|
334
|
-
this.
|
|
334
|
+
this.l17_1 = index;
|
|
335
335
|
}
|
|
336
|
-
protoOf(GameCard).
|
|
336
|
+
protoOf(GameCard).w17 = function () {
|
|
337
337
|
var tmp;
|
|
338
|
-
var containsArg = this.
|
|
338
|
+
var containsArg = this.l17_1;
|
|
339
339
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
340
340
|
tmp = Suit_DIAMOND_getInstance();
|
|
341
341
|
} else {
|
|
342
|
-
if (this.
|
|
342
|
+
if (this.l17_1 <= 26) {
|
|
343
343
|
tmp = Suit_SPADE_getInstance();
|
|
344
344
|
} else {
|
|
345
|
-
if (this.
|
|
345
|
+
if (this.l17_1 <= 39) {
|
|
346
346
|
tmp = Suit_HEART_getInstance();
|
|
347
347
|
} else {
|
|
348
|
-
if (this.
|
|
348
|
+
if (this.l17_1 <= 52) {
|
|
349
349
|
tmp = Suit_CLUB_getInstance();
|
|
350
350
|
} else {
|
|
351
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
351
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.l17_1);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
return tmp;
|
|
357
357
|
};
|
|
358
|
-
protoOf(GameCard).
|
|
358
|
+
protoOf(GameCard).x17 = function () {
|
|
359
359
|
var tmp;
|
|
360
|
-
if (this.
|
|
360
|
+
if (this.n17()) {
|
|
361
361
|
tmp = -1;
|
|
362
362
|
} else {
|
|
363
|
-
tmp = this.
|
|
363
|
+
tmp = this.l17_1 - imul(13, getIndex(this.w17())) | 0;
|
|
364
364
|
}
|
|
365
365
|
return tmp;
|
|
366
366
|
};
|
|
367
367
|
protoOf(GameCard).i2 = function () {
|
|
368
|
-
return this.
|
|
368
|
+
return this.n17() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.x17());
|
|
369
369
|
};
|
|
370
|
-
protoOf(GameCard).
|
|
371
|
-
return this.
|
|
370
|
+
protoOf(GameCard).y17 = function () {
|
|
371
|
+
return this.l17_1 === 999;
|
|
372
372
|
};
|
|
373
|
-
protoOf(GameCard).
|
|
374
|
-
return this.
|
|
373
|
+
protoOf(GameCard).n17 = function () {
|
|
374
|
+
return this.l17_1 >= 53 && this.l17_1 <= 105;
|
|
375
375
|
};
|
|
376
376
|
protoOf(GameCard).toString = function () {
|
|
377
|
-
return 'GameCard' + this.
|
|
377
|
+
return 'GameCard' + this.z17();
|
|
378
378
|
};
|
|
379
|
-
protoOf(GameCard).
|
|
380
|
-
return '{' + this.
|
|
379
|
+
protoOf(GameCard).z17 = function () {
|
|
380
|
+
return '{' + this.a18() + ', ' + this.l17_1 + '}';
|
|
381
381
|
};
|
|
382
|
-
protoOf(GameCard).
|
|
383
|
-
if (this.
|
|
382
|
+
protoOf(GameCard).a18 = function () {
|
|
383
|
+
if (this.y17()) {
|
|
384
384
|
return 'stub';
|
|
385
385
|
}
|
|
386
|
-
if (this.
|
|
386
|
+
if (this.n17()) {
|
|
387
387
|
return 'hidden';
|
|
388
388
|
}
|
|
389
389
|
if (_get_isShirt__vd98rp(this)) {
|
|
390
390
|
return 'shirt';
|
|
391
391
|
}
|
|
392
|
-
return this.
|
|
392
|
+
return this.w17().toString() + this.i2().toString();
|
|
393
393
|
};
|
|
394
394
|
protoOf(GameCard).hashCode = function () {
|
|
395
|
-
return this.
|
|
395
|
+
return this.l17_1;
|
|
396
396
|
};
|
|
397
397
|
protoOf(GameCard).equals = function (other) {
|
|
398
398
|
if (this === other)
|
|
@@ -400,12 +400,12 @@
|
|
|
400
400
|
if (!(other instanceof GameCard))
|
|
401
401
|
return false;
|
|
402
402
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
403
|
-
if (!(this.
|
|
403
|
+
if (!(this.l17_1 === tmp0_other_with_cast.l17_1))
|
|
404
404
|
return false;
|
|
405
405
|
return true;
|
|
406
406
|
};
|
|
407
407
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
408
|
-
return $this.
|
|
408
|
+
return $this.b18_1.v1();
|
|
409
409
|
}
|
|
410
410
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
411
411
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -442,13 +442,13 @@
|
|
|
442
442
|
Companion_instance_1 = this;
|
|
443
443
|
var tmp = this;
|
|
444
444
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
445
|
-
tmp.
|
|
445
|
+
tmp.b18_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
446
446
|
}
|
|
447
|
-
protoOf(Companion_1).
|
|
447
|
+
protoOf(Companion_1).c18 = function () {
|
|
448
448
|
return _get_$cachedSerializer__te6jhj(this);
|
|
449
449
|
};
|
|
450
|
-
protoOf(Companion_1).
|
|
451
|
-
return this.
|
|
450
|
+
protoOf(Companion_1).bw = function (typeParamsSerializers) {
|
|
451
|
+
return this.c18();
|
|
452
452
|
};
|
|
453
453
|
var Companion_instance_1;
|
|
454
454
|
function Companion_getInstance_1() {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
20
|
var initMetadataForInterface = kotlin_kotlin.$_$.k9;
|
|
21
21
|
var defineProp = kotlin_kotlin.$_$.a9;
|
|
22
|
-
var Enum = kotlin_kotlin.$_$.
|
|
23
|
-
var printStackTrace = kotlin_kotlin.$_$.
|
|
22
|
+
var Enum = kotlin_kotlin.$_$.uc;
|
|
23
|
+
var printStackTrace = kotlin_kotlin.$_$.yd;
|
|
24
24
|
var initMetadataForObject = kotlin_kotlin.$_$.m9;
|
|
25
25
|
var isBlank = kotlin_kotlin.$_$.hb;
|
|
26
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
27
|
-
var toString = kotlin_kotlin.$_$.
|
|
26
|
+
var stackTraceToString = kotlin_kotlin.$_$.zd;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.be;
|
|
28
28
|
var toString_0 = kotlin_kotlin.$_$.fa;
|
|
29
29
|
//endregion
|
|
30
30
|
//region block: pre-declaration
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
payload = payload === VOID ? null : payload;
|
|
35
35
|
var tmp;
|
|
36
36
|
if ($super === VOID) {
|
|
37
|
-
this.
|
|
37
|
+
this.h15(tag, message, payload);
|
|
38
38
|
tmp = Unit_instance;
|
|
39
39
|
} else {
|
|
40
|
-
tmp = $super.
|
|
40
|
+
tmp = $super.h15.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.i15(tag, message, exception, payload);
|
|
52
52
|
tmp = Unit_instance;
|
|
53
53
|
} else {
|
|
54
|
-
tmp = $super.
|
|
54
|
+
tmp = $super.i15.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.j15(tag, message, exception, payload);
|
|
66
66
|
tmp = Unit_instance;
|
|
67
67
|
} else {
|
|
68
|
-
tmp = $super.
|
|
68
|
+
tmp = $super.j15.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.k15(tag, message, exception, payload);
|
|
80
80
|
tmp = Unit_instance;
|
|
81
81
|
} else {
|
|
82
|
-
tmp = $super.
|
|
82
|
+
tmp = $super.k15.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.l15(tag, message, payload);
|
|
92
92
|
tmp = Unit_instance;
|
|
93
93
|
} else {
|
|
94
|
-
tmp = $super.
|
|
94
|
+
tmp = $super.l15.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.g15_1 = logOutputs;
|
|
117
117
|
}
|
|
118
|
-
protoOf(CombinedRaspberryLogger).
|
|
118
|
+
protoOf(CombinedRaspberryLogger).h15 = function (tag, message, payload) {
|
|
119
119
|
// Inline function 'kotlin.collections.forEach' call
|
|
120
|
-
var _iterator__ex2g4s = this.
|
|
120
|
+
var _iterator__ex2g4s = this.g15_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).i15 = function (tag, message, exception, payload) {
|
|
127
127
|
// Inline function 'kotlin.collections.forEach' call
|
|
128
|
-
var _iterator__ex2g4s = this.
|
|
128
|
+
var _iterator__ex2g4s = this.g15_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).j15 = function (tag, message, exception, payload) {
|
|
135
135
|
// Inline function 'kotlin.collections.forEach' call
|
|
136
|
-
var _iterator__ex2g4s = this.
|
|
136
|
+
var _iterator__ex2g4s = this.g15_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).k15 = function (tag, message, exception, payload) {
|
|
143
143
|
// Inline function 'kotlin.collections.forEach' call
|
|
144
|
-
var _iterator__ex2g4s = this.
|
|
144
|
+
var _iterator__ex2g4s = this.g15_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).l15 = function (tag, message, payload) {
|
|
151
151
|
// Inline function 'kotlin.collections.forEach' call
|
|
152
|
-
var _iterator__ex2g4s = this.
|
|
152
|
+
var _iterator__ex2g4s = this.g15_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.o15_1 = enabled;
|
|
165
165
|
}
|
|
166
|
-
protoOf(PlatformRaspberryLogger).
|
|
167
|
-
this.
|
|
166
|
+
protoOf(PlatformRaspberryLogger).m15 = function (_set____db54di) {
|
|
167
|
+
this.o15_1 = _set____db54di;
|
|
168
168
|
};
|
|
169
|
-
protoOf(PlatformRaspberryLogger).
|
|
170
|
-
return this.
|
|
169
|
+
protoOf(PlatformRaspberryLogger).n15 = function () {
|
|
170
|
+
return this.o15_1;
|
|
171
171
|
};
|
|
172
|
-
protoOf(PlatformRaspberryLogger).
|
|
173
|
-
if (!this.
|
|
172
|
+
protoOf(PlatformRaspberryLogger).h15 = function (tag, message, payload) {
|
|
173
|
+
if (!this.o15_1)
|
|
174
174
|
return Unit_instance;
|
|
175
|
-
Logger_getInstance().
|
|
175
|
+
Logger_getInstance().s15(tag, message);
|
|
176
176
|
};
|
|
177
|
-
protoOf(PlatformRaspberryLogger).
|
|
178
|
-
if (!this.
|
|
177
|
+
protoOf(PlatformRaspberryLogger).i15 = function (tag, message, exception, payload) {
|
|
178
|
+
if (!this.o15_1)
|
|
179
179
|
return Unit_instance;
|
|
180
|
-
Logger_getInstance().
|
|
180
|
+
Logger_getInstance().t15(tag, message, exception);
|
|
181
181
|
};
|
|
182
|
-
protoOf(PlatformRaspberryLogger).
|
|
183
|
-
if (!this.
|
|
182
|
+
protoOf(PlatformRaspberryLogger).j15 = function (tag, message, exception, payload) {
|
|
183
|
+
if (!this.o15_1)
|
|
184
184
|
return Unit_instance;
|
|
185
|
-
Logger_getInstance().
|
|
185
|
+
Logger_getInstance().u15(tag, message, exception);
|
|
186
186
|
};
|
|
187
|
-
protoOf(PlatformRaspberryLogger).
|
|
188
|
-
if (!this.
|
|
187
|
+
protoOf(PlatformRaspberryLogger).k15 = function (tag, message, exception, payload) {
|
|
188
|
+
if (!this.o15_1)
|
|
189
189
|
return Unit_instance;
|
|
190
|
-
Logger_getInstance().
|
|
190
|
+
Logger_getInstance().v15(tag, message, exception);
|
|
191
191
|
};
|
|
192
|
-
protoOf(PlatformRaspberryLogger).
|
|
193
|
-
if (!this.
|
|
192
|
+
protoOf(PlatformRaspberryLogger).l15 = function (tag, message, payload) {
|
|
193
|
+
if (!this.o15_1)
|
|
194
194
|
return Unit_instance;
|
|
195
|
-
Logger_getInstance().
|
|
195
|
+
Logger_getInstance().v15(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.r15_1 == null) && !(tag == null) ? '' + $this.r15_1 + ':' + tag : tag;
|
|
213
213
|
}
|
|
214
214
|
function Category(name, ordinal, isEnabled) {
|
|
215
215
|
Enum.call(this, name, ordinal);
|
|
216
|
-
this.
|
|
216
|
+
this.y15_1 = isEnabled;
|
|
217
217
|
}
|
|
218
218
|
function Logger$loggerSource$1() {
|
|
219
|
-
this.
|
|
219
|
+
this.z15_1 = new PlatformLogger();
|
|
220
220
|
}
|
|
221
|
-
protoOf(Logger$loggerSource$1).
|
|
222
|
-
this.
|
|
221
|
+
protoOf(Logger$loggerSource$1).a16 = function (tag, msg) {
|
|
222
|
+
this.z15_1.a16(tag, msg);
|
|
223
223
|
};
|
|
224
|
-
protoOf(Logger$loggerSource$1).
|
|
225
|
-
this.
|
|
224
|
+
protoOf(Logger$loggerSource$1).b16 = function (tag, msg, exception) {
|
|
225
|
+
this.z15_1.b16(tag, msg, exception);
|
|
226
226
|
};
|
|
227
|
-
protoOf(Logger$loggerSource$1).
|
|
228
|
-
this.
|
|
227
|
+
protoOf(Logger$loggerSource$1).c16 = function (tag, msg, exception) {
|
|
228
|
+
this.z15_1.c16(tag, msg, exception);
|
|
229
229
|
};
|
|
230
|
-
protoOf(Logger$loggerSource$1).
|
|
231
|
-
this.
|
|
230
|
+
protoOf(Logger$loggerSource$1).d16 = function (tag, msg, exception) {
|
|
231
|
+
this.z15_1.d16(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.p15_1 = new Logger$loggerSource$1();
|
|
241
|
+
this.q15_1 = true;
|
|
242
|
+
this.r15_1 = null;
|
|
243
243
|
}
|
|
244
|
-
protoOf(Logger).
|
|
245
|
-
this.
|
|
244
|
+
protoOf(Logger).s15 = function (tag, message) {
|
|
245
|
+
this.e16(tag, message, Category_NONE_getInstance());
|
|
246
246
|
};
|
|
247
|
-
protoOf(Logger).
|
|
248
|
-
if (this.
|
|
247
|
+
protoOf(Logger).f16 = function (tag, message, exception, category) {
|
|
248
|
+
if (this.q15_1 && category.y15_1) {
|
|
249
249
|
if (exception == null)
|
|
250
250
|
null;
|
|
251
251
|
else {
|
|
252
252
|
printStackTrace(exception);
|
|
253
253
|
}
|
|
254
|
-
this.
|
|
254
|
+
this.p15_1.c16(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
protoOf(Logger).
|
|
257
|
+
protoOf(Logger).u15 = 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.f16(tag, message, exception, category);
|
|
265
265
|
tmp = Unit_instance;
|
|
266
266
|
} else {
|
|
267
|
-
tmp = $super.
|
|
267
|
+
tmp = $super.f16.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).e16 = function (tag, message, category) {
|
|
272
|
+
if (this.q15_1 && category.y15_1) {
|
|
273
|
+
this.p15_1.a16(generateTag(this, tag), message);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
protoOf(Logger).
|
|
277
|
-
if (this.
|
|
278
|
-
this.
|
|
276
|
+
protoOf(Logger).g16 = function (tag, message, exception, category) {
|
|
277
|
+
if (this.q15_1 && category.y15_1) {
|
|
278
|
+
this.p15_1.d16(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
protoOf(Logger).
|
|
281
|
+
protoOf(Logger).v15 = 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.g16(tag, message, exception, category);
|
|
289
289
|
tmp = Unit_instance;
|
|
290
290
|
} else {
|
|
291
|
-
tmp = $super.
|
|
291
|
+
tmp = $super.g16.call(this, tag, message, exception, category);
|
|
292
292
|
}
|
|
293
293
|
return tmp;
|
|
294
294
|
};
|
|
295
|
-
protoOf(Logger).
|
|
296
|
-
if (this.
|
|
295
|
+
protoOf(Logger).h16 = function (tag, message, exception, category) {
|
|
296
|
+
if (this.q15_1 && category.y15_1) {
|
|
297
297
|
if (exception == null)
|
|
298
298
|
null;
|
|
299
299
|
else {
|
|
300
300
|
printStackTrace(exception);
|
|
301
301
|
}
|
|
302
|
-
this.
|
|
302
|
+
this.p15_1.b16(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
|
-
protoOf(Logger).
|
|
305
|
+
protoOf(Logger).t15 = 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.h16(tag, message, exception, category);
|
|
313
313
|
tmp = Unit_instance;
|
|
314
314
|
} else {
|
|
315
|
-
tmp = $super.
|
|
315
|
+
tmp = $super.h16.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).a16 = function (tag, msg) {
|
|
348
348
|
console.log('D:' + getLogTag(tag) + ': ' + msg);
|
|
349
349
|
};
|
|
350
|
-
protoOf(PlatformLogger).
|
|
350
|
+
protoOf(PlatformLogger).b16 = 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).c16 = 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).d16 = 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.n15();
|
|
380
380
|
}, function (value) {
|
|
381
|
-
this.
|
|
381
|
+
this.m15(value);
|
|
382
382
|
});
|
|
383
383
|
//endregion
|
|
384
384
|
//region block: init
|