raspberry_games_server_game_logic 1.8.431 → 1.8.432
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 +2 -2
- package/Kosi-Kodein-kodein-di.js +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime.js +152 -152
- package/Logic_Debertz-ai_module.js +193 -193
- package/Logic_Debertz-core.js +536 -536
- package/Logic_Debertz-engine.js +3667 -3649
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +1 -0
- package/Logic_Debertz-game_server.js +187 -187
- package/kotlin-kotlin-stdlib.js +546 -540
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2160 -2160
- package/kotlinx-io-kotlinx-io-core.js +314 -314
- 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/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1442 -1442
- package/ktor-ktor-client-logging.js +265 -265
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +590 -590
- package/ktor-ktor-io.js +1241 -1241
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +61 -61
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/random-library-crypto-rand.js +1 -1
- package/random-library-secure-random.js +2 -2
- package/raspberry-cardgame-lib-core.js +7 -7
- package/raspberry-cardgame-lib-logger.js +90 -90
- package/raspberry-cardgame-lib-random.js +794 -794
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +12 -12
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
payload = payload === VOID ? null : payload;
|
|
37
37
|
var tmp;
|
|
38
38
|
if ($super === VOID) {
|
|
39
|
-
this.
|
|
39
|
+
this.y1k(tag, message, payload);
|
|
40
40
|
tmp = Unit_instance;
|
|
41
41
|
} else {
|
|
42
|
-
tmp = $super.
|
|
42
|
+
tmp = $super.y1k.call(this, tag, message, payload);
|
|
43
43
|
}
|
|
44
44
|
return tmp;
|
|
45
45
|
}
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
payload = payload === VOID ? null : payload;
|
|
51
51
|
var tmp;
|
|
52
52
|
if ($super === VOID) {
|
|
53
|
-
this.
|
|
53
|
+
this.z1k(tag, message, exception, payload);
|
|
54
54
|
tmp = Unit_instance;
|
|
55
55
|
} else {
|
|
56
|
-
tmp = $super.
|
|
56
|
+
tmp = $super.z1k.call(this, tag, message, exception, payload);
|
|
57
57
|
}
|
|
58
58
|
return tmp;
|
|
59
59
|
}
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
payload = payload === VOID ? null : payload;
|
|
65
65
|
var tmp;
|
|
66
66
|
if ($super === VOID) {
|
|
67
|
-
this.
|
|
67
|
+
this.a1l(tag, message, exception, payload);
|
|
68
68
|
tmp = Unit_instance;
|
|
69
69
|
} else {
|
|
70
|
-
tmp = $super.
|
|
70
|
+
tmp = $super.a1l.call(this, tag, message, exception, payload);
|
|
71
71
|
}
|
|
72
72
|
return tmp;
|
|
73
73
|
}
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
payload = payload === VOID ? null : payload;
|
|
79
79
|
var tmp;
|
|
80
80
|
if ($super === VOID) {
|
|
81
|
-
this.
|
|
81
|
+
this.b1l(tag, message, exception, payload);
|
|
82
82
|
tmp = Unit_instance;
|
|
83
83
|
} else {
|
|
84
|
-
tmp = $super.
|
|
84
|
+
tmp = $super.b1l.call(this, tag, message, exception, payload);
|
|
85
85
|
}
|
|
86
86
|
return tmp;
|
|
87
87
|
}
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
payload = payload === VOID ? null : payload;
|
|
91
91
|
var tmp;
|
|
92
92
|
if ($super === VOID) {
|
|
93
|
-
this.
|
|
93
|
+
this.c1l(tag, message, payload);
|
|
94
94
|
tmp = Unit_instance;
|
|
95
95
|
} else {
|
|
96
|
-
tmp = $super.
|
|
96
|
+
tmp = $super.c1l.call(this, tag, message, payload);
|
|
97
97
|
}
|
|
98
98
|
return tmp;
|
|
99
99
|
}
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
//endregion
|
|
111
111
|
function Companion() {
|
|
112
112
|
}
|
|
113
|
-
protoOf(Companion).
|
|
113
|
+
protoOf(Companion).v1k = function () {
|
|
114
114
|
return new CombinedRaspberryLogger(mutableListOf([new PlatformRaspberryLogger()]));
|
|
115
115
|
};
|
|
116
|
-
protoOf(Companion).
|
|
116
|
+
protoOf(Companion).nx = function () {
|
|
117
117
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
118
118
|
var tmp$ret$0 = ArrayList_init_$Create$();
|
|
119
119
|
return new CombinedRaspberryLogger(tmp$ret$0);
|
|
@@ -123,46 +123,46 @@
|
|
|
123
123
|
return Companion_instance;
|
|
124
124
|
}
|
|
125
125
|
function CombinedRaspberryLogger(logOutputs) {
|
|
126
|
-
this.
|
|
126
|
+
this.w1k_1 = logOutputs;
|
|
127
127
|
}
|
|
128
|
-
protoOf(CombinedRaspberryLogger).
|
|
129
|
-
this.
|
|
128
|
+
protoOf(CombinedRaspberryLogger).x1k = function (output) {
|
|
129
|
+
this.w1k_1.j(output);
|
|
130
130
|
};
|
|
131
|
-
protoOf(CombinedRaspberryLogger).
|
|
131
|
+
protoOf(CombinedRaspberryLogger).y1k = function (tag, message, payload) {
|
|
132
132
|
// Inline function 'kotlin.collections.forEach' call
|
|
133
|
-
var _iterator__ex2g4s = this.
|
|
133
|
+
var _iterator__ex2g4s = this.w1k_1.l();
|
|
134
134
|
while (_iterator__ex2g4s.m()) {
|
|
135
135
|
var element = _iterator__ex2g4s.n();
|
|
136
136
|
element.d(tag, message, payload);
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
protoOf(CombinedRaspberryLogger).
|
|
139
|
+
protoOf(CombinedRaspberryLogger).z1k = function (tag, message, exception, payload) {
|
|
140
140
|
// Inline function 'kotlin.collections.forEach' call
|
|
141
|
-
var _iterator__ex2g4s = this.
|
|
141
|
+
var _iterator__ex2g4s = this.w1k_1.l();
|
|
142
142
|
while (_iterator__ex2g4s.m()) {
|
|
143
143
|
var element = _iterator__ex2g4s.n();
|
|
144
144
|
element.e(tag, message, exception, payload);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
protoOf(CombinedRaspberryLogger).
|
|
147
|
+
protoOf(CombinedRaspberryLogger).a1l = function (tag, message, exception, payload) {
|
|
148
148
|
// Inline function 'kotlin.collections.forEach' call
|
|
149
|
-
var _iterator__ex2g4s = this.
|
|
149
|
+
var _iterator__ex2g4s = this.w1k_1.l();
|
|
150
150
|
while (_iterator__ex2g4s.m()) {
|
|
151
151
|
var element = _iterator__ex2g4s.n();
|
|
152
152
|
element.w(tag, message, exception, payload);
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
|
-
protoOf(CombinedRaspberryLogger).
|
|
155
|
+
protoOf(CombinedRaspberryLogger).b1l = function (tag, message, exception, payload) {
|
|
156
156
|
// Inline function 'kotlin.collections.forEach' call
|
|
157
|
-
var _iterator__ex2g4s = this.
|
|
157
|
+
var _iterator__ex2g4s = this.w1k_1.l();
|
|
158
158
|
while (_iterator__ex2g4s.m()) {
|
|
159
159
|
var element = _iterator__ex2g4s.n();
|
|
160
160
|
element.v(tag, message, exception, payload);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
protoOf(CombinedRaspberryLogger).
|
|
163
|
+
protoOf(CombinedRaspberryLogger).c1l = function (tag, message, payload) {
|
|
164
164
|
// Inline function 'kotlin.collections.forEach' call
|
|
165
|
-
var _iterator__ex2g4s = this.
|
|
165
|
+
var _iterator__ex2g4s = this.w1k_1.l();
|
|
166
166
|
while (_iterator__ex2g4s.m()) {
|
|
167
167
|
var element = _iterator__ex2g4s.n();
|
|
168
168
|
element.i(tag, message, payload);
|
|
@@ -174,38 +174,38 @@
|
|
|
174
174
|
}
|
|
175
175
|
function PlatformRaspberryLogger(enabled) {
|
|
176
176
|
enabled = enabled === VOID ? true : enabled;
|
|
177
|
-
this.
|
|
177
|
+
this.f1l_1 = enabled;
|
|
178
178
|
}
|
|
179
|
-
protoOf(PlatformRaspberryLogger).
|
|
180
|
-
this.
|
|
179
|
+
protoOf(PlatformRaspberryLogger).d1l = function (_set____db54di) {
|
|
180
|
+
this.f1l_1 = _set____db54di;
|
|
181
181
|
};
|
|
182
|
-
protoOf(PlatformRaspberryLogger).
|
|
183
|
-
return this.
|
|
182
|
+
protoOf(PlatformRaspberryLogger).e1l = function () {
|
|
183
|
+
return this.f1l_1;
|
|
184
184
|
};
|
|
185
|
-
protoOf(PlatformRaspberryLogger).
|
|
186
|
-
if (!this.
|
|
185
|
+
protoOf(PlatformRaspberryLogger).y1k = function (tag, message, payload) {
|
|
186
|
+
if (!this.f1l_1)
|
|
187
187
|
return Unit_instance;
|
|
188
|
-
Logger_getInstance().
|
|
189
|
-
};
|
|
190
|
-
protoOf(PlatformRaspberryLogger).y1k = function (tag, message, exception, payload) {
|
|
191
|
-
if (!this.e1l_1)
|
|
192
|
-
return Unit_instance;
|
|
193
|
-
Logger_getInstance().j1l(tag, message, exception);
|
|
188
|
+
Logger_getInstance().j1l(tag, message);
|
|
194
189
|
};
|
|
195
190
|
protoOf(PlatformRaspberryLogger).z1k = function (tag, message, exception, payload) {
|
|
196
|
-
if (!this.
|
|
191
|
+
if (!this.f1l_1)
|
|
197
192
|
return Unit_instance;
|
|
198
193
|
Logger_getInstance().k1l(tag, message, exception);
|
|
199
194
|
};
|
|
200
195
|
protoOf(PlatformRaspberryLogger).a1l = function (tag, message, exception, payload) {
|
|
201
|
-
if (!this.
|
|
196
|
+
if (!this.f1l_1)
|
|
202
197
|
return Unit_instance;
|
|
203
198
|
Logger_getInstance().l1l(tag, message, exception);
|
|
204
199
|
};
|
|
205
|
-
protoOf(PlatformRaspberryLogger).b1l = function (tag, message, payload) {
|
|
206
|
-
if (!this.
|
|
200
|
+
protoOf(PlatformRaspberryLogger).b1l = function (tag, message, exception, payload) {
|
|
201
|
+
if (!this.f1l_1)
|
|
207
202
|
return Unit_instance;
|
|
208
|
-
Logger_getInstance().
|
|
203
|
+
Logger_getInstance().m1l(tag, message, exception);
|
|
204
|
+
};
|
|
205
|
+
protoOf(PlatformRaspberryLogger).c1l = function (tag, message, payload) {
|
|
206
|
+
if (!this.f1l_1)
|
|
207
|
+
return Unit_instance;
|
|
208
|
+
Logger_getInstance().m1l(tag, message);
|
|
209
209
|
};
|
|
210
210
|
function RaspberryLogger() {
|
|
211
211
|
}
|
|
@@ -222,26 +222,26 @@
|
|
|
222
222
|
Category_NONE_instance = new Category('NONE', 1, true);
|
|
223
223
|
}
|
|
224
224
|
function generateTag($this, tag) {
|
|
225
|
-
return !($this.
|
|
225
|
+
return !($this.i1l_1 == null) && !(tag == null) ? '' + $this.i1l_1 + ':' + tag : tag;
|
|
226
226
|
}
|
|
227
227
|
function Category(name, ordinal, isEnabled) {
|
|
228
228
|
Enum.call(this, name, ordinal);
|
|
229
|
-
this.
|
|
229
|
+
this.p1l_1 = isEnabled;
|
|
230
230
|
}
|
|
231
231
|
function Logger$loggerSource$1() {
|
|
232
|
-
this.
|
|
232
|
+
this.q1l_1 = new PlatformLogger();
|
|
233
233
|
}
|
|
234
|
-
protoOf(Logger$loggerSource$1).
|
|
235
|
-
this.
|
|
236
|
-
};
|
|
237
|
-
protoOf(Logger$loggerSource$1).r1l = function (tag, msg, exception) {
|
|
238
|
-
this.p1l_1.r1l(tag, msg, exception);
|
|
234
|
+
protoOf(Logger$loggerSource$1).r1l = function (tag, msg) {
|
|
235
|
+
this.q1l_1.r1l(tag, msg);
|
|
239
236
|
};
|
|
240
237
|
protoOf(Logger$loggerSource$1).s1l = function (tag, msg, exception) {
|
|
241
|
-
this.
|
|
238
|
+
this.q1l_1.s1l(tag, msg, exception);
|
|
242
239
|
};
|
|
243
240
|
protoOf(Logger$loggerSource$1).t1l = function (tag, msg, exception) {
|
|
244
|
-
this.
|
|
241
|
+
this.q1l_1.t1l(tag, msg, exception);
|
|
242
|
+
};
|
|
243
|
+
protoOf(Logger$loggerSource$1).u1l = function (tag, msg, exception) {
|
|
244
|
+
this.q1l_1.u1l(tag, msg, exception);
|
|
245
245
|
};
|
|
246
246
|
function Category_NONE_getInstance() {
|
|
247
247
|
Category_initEntries();
|
|
@@ -250,97 +250,97 @@
|
|
|
250
250
|
function Logger() {
|
|
251
251
|
Logger_instance = this;
|
|
252
252
|
var tmp = this;
|
|
253
|
-
tmp.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
253
|
+
tmp.g1l_1 = new Logger$loggerSource$1();
|
|
254
|
+
this.h1l_1 = true;
|
|
255
|
+
this.i1l_1 = null;
|
|
256
256
|
}
|
|
257
|
-
protoOf(Logger).
|
|
258
|
-
this.
|
|
257
|
+
protoOf(Logger).j1l = function (tag, message) {
|
|
258
|
+
this.v1l(tag, message, Category_NONE_getInstance());
|
|
259
259
|
};
|
|
260
|
-
protoOf(Logger).
|
|
261
|
-
if (this.
|
|
260
|
+
protoOf(Logger).w1l = function (tag, message, exception, category) {
|
|
261
|
+
if (this.h1l_1 && category.p1l_1) {
|
|
262
262
|
if (exception == null)
|
|
263
263
|
null;
|
|
264
264
|
else {
|
|
265
265
|
printStackTrace(exception);
|
|
266
266
|
}
|
|
267
|
-
this.
|
|
267
|
+
this.g1l_1.t1l(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
|
-
protoOf(Logger).
|
|
270
|
+
protoOf(Logger).l1l = function (tag, message, exception, category, $super) {
|
|
271
271
|
tag = tag === VOID ? null : tag;
|
|
272
272
|
message = message === VOID ? null : message;
|
|
273
273
|
exception = exception === VOID ? null : exception;
|
|
274
274
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
275
275
|
var tmp;
|
|
276
276
|
if ($super === VOID) {
|
|
277
|
-
this.
|
|
277
|
+
this.w1l(tag, message, exception, category);
|
|
278
278
|
tmp = Unit_instance;
|
|
279
279
|
} else {
|
|
280
|
-
tmp = $super.
|
|
280
|
+
tmp = $super.w1l.call(this, tag, message, exception, category);
|
|
281
281
|
}
|
|
282
282
|
return tmp;
|
|
283
283
|
};
|
|
284
|
-
protoOf(Logger).
|
|
285
|
-
if (this.
|
|
286
|
-
this.
|
|
284
|
+
protoOf(Logger).v1l = function (tag, message, category) {
|
|
285
|
+
if (this.h1l_1 && category.p1l_1) {
|
|
286
|
+
this.g1l_1.r1l(generateTag(this, tag), message);
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
|
-
protoOf(Logger).
|
|
290
|
-
if (this.
|
|
291
|
-
this.
|
|
289
|
+
protoOf(Logger).x1l = function (tag, message, exception, category) {
|
|
290
|
+
if (this.h1l_1 && category.p1l_1) {
|
|
291
|
+
this.g1l_1.u1l(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
protoOf(Logger).
|
|
294
|
+
protoOf(Logger).m1l = function (tag, message, exception, category, $super) {
|
|
295
295
|
tag = tag === VOID ? null : tag;
|
|
296
296
|
message = message === VOID ? null : message;
|
|
297
297
|
exception = exception === VOID ? null : exception;
|
|
298
298
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
299
299
|
var tmp;
|
|
300
300
|
if ($super === VOID) {
|
|
301
|
-
this.
|
|
301
|
+
this.x1l(tag, message, exception, category);
|
|
302
302
|
tmp = Unit_instance;
|
|
303
303
|
} else {
|
|
304
|
-
tmp = $super.
|
|
304
|
+
tmp = $super.x1l.call(this, tag, message, exception, category);
|
|
305
305
|
}
|
|
306
306
|
return tmp;
|
|
307
307
|
};
|
|
308
|
-
protoOf(Logger).
|
|
309
|
-
if (this.
|
|
308
|
+
protoOf(Logger).y1l = function (tag, message, exception, category) {
|
|
309
|
+
if (this.h1l_1 && category.p1l_1) {
|
|
310
310
|
if (exception == null)
|
|
311
311
|
null;
|
|
312
312
|
else {
|
|
313
313
|
printStackTrace(exception);
|
|
314
314
|
}
|
|
315
|
-
this.
|
|
315
|
+
this.g1l_1.s1l(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
protoOf(Logger).
|
|
318
|
+
protoOf(Logger).k1l = function (tag, message, exception, category, $super) {
|
|
319
319
|
tag = tag === VOID ? null : tag;
|
|
320
320
|
message = message === VOID ? null : message;
|
|
321
321
|
exception = exception === VOID ? null : exception;
|
|
322
322
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
323
323
|
var tmp;
|
|
324
324
|
if ($super === VOID) {
|
|
325
|
-
this.
|
|
325
|
+
this.y1l(tag, message, exception, category);
|
|
326
326
|
tmp = Unit_instance;
|
|
327
327
|
} else {
|
|
328
|
-
tmp = $super.
|
|
328
|
+
tmp = $super.y1l.call(this, tag, message, exception, category);
|
|
329
329
|
}
|
|
330
330
|
return tmp;
|
|
331
331
|
};
|
|
332
|
-
protoOf(Logger).
|
|
333
|
-
this.
|
|
332
|
+
protoOf(Logger).z1l = function (tag, exception) {
|
|
333
|
+
this.k1l(tag, null, exception);
|
|
334
334
|
};
|
|
335
|
-
protoOf(Logger).
|
|
335
|
+
protoOf(Logger).a1m = function (tag, exception, $super) {
|
|
336
336
|
tag = tag === VOID ? null : tag;
|
|
337
337
|
exception = exception === VOID ? null : exception;
|
|
338
338
|
var tmp;
|
|
339
339
|
if ($super === VOID) {
|
|
340
|
-
this.
|
|
340
|
+
this.z1l(tag, exception);
|
|
341
341
|
tmp = Unit_instance;
|
|
342
342
|
} else {
|
|
343
|
-
tmp = $super.
|
|
343
|
+
tmp = $super.z1l.call(this, tag, exception);
|
|
344
344
|
}
|
|
345
345
|
return tmp;
|
|
346
346
|
};
|
|
@@ -372,22 +372,22 @@
|
|
|
372
372
|
}
|
|
373
373
|
function PlatformLogger() {
|
|
374
374
|
}
|
|
375
|
-
protoOf(PlatformLogger).
|
|
375
|
+
protoOf(PlatformLogger).r1l = function (tag, msg) {
|
|
376
376
|
console.log('D:' + getLogTag(tag) + ': ' + msg);
|
|
377
377
|
};
|
|
378
|
-
protoOf(PlatformLogger).
|
|
378
|
+
protoOf(PlatformLogger).s1l = function (tag, msg, exception) {
|
|
379
379
|
if (!(exception == null)) {
|
|
380
380
|
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
|
|
381
381
|
} else {
|
|
382
382
|
console.error(getLogTag(tag) + ': ' + msg);
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
|
-
protoOf(PlatformLogger).
|
|
385
|
+
protoOf(PlatformLogger).t1l = function (tag, msg, exception) {
|
|
386
386
|
var tmp = console;
|
|
387
387
|
var tmp_0 = getLogTag(tag);
|
|
388
388
|
tmp.warn(tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
|
|
389
389
|
};
|
|
390
|
-
protoOf(PlatformLogger).
|
|
390
|
+
protoOf(PlatformLogger).u1l = function (tag, msg, exception) {
|
|
391
391
|
var tmp = console;
|
|
392
392
|
var tmp_0 = getLogTag(tag);
|
|
393
393
|
tmp.log('V:' + tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
|
|
@@ -404,9 +404,9 @@
|
|
|
404
404
|
protoOf(PlatformRaspberryLogger).v = v;
|
|
405
405
|
protoOf(PlatformRaspberryLogger).i = i;
|
|
406
406
|
defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
|
|
407
|
-
return this.
|
|
407
|
+
return this.e1l();
|
|
408
408
|
}, function (value) {
|
|
409
|
-
this.
|
|
409
|
+
this.d1l(value);
|
|
410
410
|
});
|
|
411
411
|
//endregion
|
|
412
412
|
//region block: init
|