client_plugin_logic_deb 1.8.496 → 1.8.498
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 +79 -79
- package/Kosi-Kodein-kodein-di.js +635 -635
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1665 -1665
- package/Logic_Debertz-ai_module.js +564 -560
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-bot_engine.js +899 -899
- package/Logic_Debertz-client_plugin.d.ts +3 -1
- package/Logic_Debertz-client_plugin.js +3551 -3662
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2191 -2192
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18830 -18599
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +11295 -11153
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1861 -1856
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +1860 -1731
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2641 -2641
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +52 -52
- package/kotlinx-io-kotlinx-io-core.js +595 -595
- package/kotlinx-serialization-kotlinx-serialization-core.js +2020 -2020
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1467 -1467
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +162 -162
- package/ktor-ktor-client-core.js +2007 -2007
- package/ktor-ktor-client-logging.js +666 -666
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http-cio.js +390 -390
- package/ktor-ktor-http.js +769 -769
- package/ktor-ktor-io.js +664 -664
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +158 -158
- package/ktor-ktor-serialization.js +74 -74
- package/ktor-ktor-utils.js +722 -722
- package/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +10 -10
- package/raspberry-cardgame-lib-core.js +236 -236
- package/raspberry-cardgame-lib-logger.js +107 -107
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +893 -893
- package/uuid.js +32 -32
|
@@ -43,85 +43,85 @@
|
|
|
43
43
|
'use strict';
|
|
44
44
|
//region block: imports
|
|
45
45
|
var imul = Math.imul;
|
|
46
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
46
|
+
var protoOf = kotlin_kotlin.$_$.se;
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.vd;
|
|
48
48
|
var VOID = kotlin_kotlin.$_$.b;
|
|
49
49
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
50
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
51
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
50
|
+
var Unit_instance = kotlin_kotlin.$_$.o5;
|
|
51
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tb;
|
|
52
52
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
53
53
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
54
54
|
var url = kotlin_io_ktor_ktor_client_core.$_$.u;
|
|
55
55
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
56
56
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
57
57
|
var contentType = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
58
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
59
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
60
|
-
var createKType = kotlin_kotlin.$_$.
|
|
58
|
+
var getKClass = kotlin_kotlin.$_$.pf;
|
|
59
|
+
var arrayOf = kotlin_kotlin.$_$.vj;
|
|
60
|
+
var createKType = kotlin_kotlin.$_$.nf;
|
|
61
61
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
62
62
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
63
63
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
64
64
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.x;
|
|
65
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
66
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
67
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
68
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
69
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
70
|
-
var Exception = kotlin_kotlin.$_$.
|
|
71
|
-
var Result = kotlin_kotlin.$_$.
|
|
72
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
73
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
74
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
75
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
76
|
-
var System_instance = kotlin_kotlin.$_$.
|
|
77
|
-
var removeAll = kotlin_kotlin.$_$.
|
|
78
|
-
var subtract = kotlin_kotlin.$_$.
|
|
79
|
-
var compare = kotlin_kotlin.$_$.
|
|
80
|
-
var Long = kotlin_kotlin.$_$.
|
|
81
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
82
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
83
|
-
var to = kotlin_kotlin.$_$.
|
|
84
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
85
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
65
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.db;
|
|
66
|
+
var Companion_instance = kotlin_kotlin.$_$.j5;
|
|
67
|
+
var THROW_CCE = kotlin_kotlin.$_$.hj;
|
|
68
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a3;
|
|
69
|
+
var createFailure = kotlin_kotlin.$_$.yj;
|
|
70
|
+
var Exception = kotlin_kotlin.$_$.yi;
|
|
71
|
+
var Result = kotlin_kotlin.$_$.fj;
|
|
72
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.td;
|
|
73
|
+
var initMetadataForClass = kotlin_kotlin.$_$.rd;
|
|
74
|
+
var getStringHashCode = kotlin_kotlin.$_$.pd;
|
|
75
|
+
var equalsLong = kotlin_kotlin.$_$.ic;
|
|
76
|
+
var System_instance = kotlin_kotlin.$_$.d5;
|
|
77
|
+
var removeAll = kotlin_kotlin.$_$.q9;
|
|
78
|
+
var subtract = kotlin_kotlin.$_$.uc;
|
|
79
|
+
var compare = kotlin_kotlin.$_$.dc;
|
|
80
|
+
var Long = kotlin_kotlin.$_$.bj;
|
|
81
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
82
|
+
var compareTo = kotlin_kotlin.$_$.hd;
|
|
83
|
+
var to = kotlin_kotlin.$_$.mk;
|
|
84
|
+
var mapOf = kotlin_kotlin.$_$.c9;
|
|
85
|
+
var initMetadataForObject = kotlin_kotlin.$_$.xd;
|
|
86
86
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
87
87
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
88
|
-
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.
|
|
89
|
-
var lazy = kotlin_kotlin.$_$.
|
|
90
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
88
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.g;
|
|
89
|
+
var lazy = kotlin_kotlin.$_$.ek;
|
|
90
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.sd;
|
|
91
91
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
92
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
93
|
-
var equals = kotlin_kotlin.$_$.
|
|
92
|
+
var emptyList = kotlin_kotlin.$_$.s7;
|
|
93
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
94
94
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
95
95
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
|
|
96
96
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
97
97
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
98
98
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m2;
|
|
99
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
100
|
-
var toString = kotlin_kotlin.$_$.
|
|
101
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
99
|
+
var objectCreate = kotlin_kotlin.$_$.re;
|
|
100
|
+
var toString = kotlin_kotlin.$_$.ve;
|
|
101
|
+
var hashCode = kotlin_kotlin.$_$.qd;
|
|
102
102
|
var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
103
103
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
104
|
-
var Enum = kotlin_kotlin.$_$.
|
|
105
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
106
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
104
|
+
var Enum = kotlin_kotlin.$_$.wi;
|
|
105
|
+
var getNumberHashCode = kotlin_kotlin.$_$.nd;
|
|
106
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.md;
|
|
107
107
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
108
108
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
109
109
|
var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
110
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
111
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
112
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
113
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
114
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
115
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
116
|
-
var take = kotlin_kotlin.$_$.
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var listOf = kotlin_kotlin.$_$.
|
|
110
|
+
var toString_0 = kotlin_kotlin.$_$.lk;
|
|
111
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.e3;
|
|
112
|
+
var firstOrNull = kotlin_kotlin.$_$.y7;
|
|
113
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
114
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.d3;
|
|
115
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
116
|
+
var take = kotlin_kotlin.$_$.qh;
|
|
117
|
+
var takeLast = kotlin_kotlin.$_$.fa;
|
|
118
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
119
|
+
var listOf = kotlin_kotlin.$_$.z8;
|
|
120
120
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
121
121
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
122
122
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
123
123
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
124
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
124
|
+
var isInterface = kotlin_kotlin.$_$.ge;
|
|
125
125
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
126
126
|
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
127
127
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -172,14 +172,14 @@
|
|
|
172
172
|
}
|
|
173
173
|
function OpenAIApiImpl$chatCompletion$lambda(this$0) {
|
|
174
174
|
return function ($this$headers) {
|
|
175
|
-
$this$headers.
|
|
175
|
+
$this$headers.p3d(HttpHeaders_getInstance().b3l_1, 'Bearer ' + this$0.g7r_1.z7q_1);
|
|
176
176
|
return Unit_instance;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
function $chatCompletionCOROUTINE$(_this__u8e3s4, messages, resultContinuation) {
|
|
180
180
|
CoroutineImpl.call(this, resultContinuation);
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
181
|
+
this.q7r_1 = _this__u8e3s4;
|
|
182
|
+
this.r7r_1 = messages;
|
|
183
183
|
}
|
|
184
184
|
protoOf($chatCompletionCOROUTINE$).q9 = function () {
|
|
185
185
|
var suspendResult = this.k9_1;
|
|
@@ -190,16 +190,16 @@
|
|
|
190
190
|
case 0:
|
|
191
191
|
this.j9_1 = 4;
|
|
192
192
|
this.j9_1 = 3;
|
|
193
|
-
var request = new OpenAIRequest(this.
|
|
194
|
-
var tmp0 = this.
|
|
195
|
-
var urlString = this.
|
|
193
|
+
var request = new OpenAIRequest(this.q7r_1.g7r_1.a7r_1, this.r7r_1, this.q7r_1.g7r_1.c7r_1, this.q7r_1.g7r_1.d7r_1);
|
|
194
|
+
var tmp0 = this.q7r_1.h7r_1;
|
|
195
|
+
var urlString = this.q7r_1.g7r_1.b7r_1 + '/chat/completions';
|
|
196
196
|
var builder = new HttpRequestBuilder();
|
|
197
|
-
builder.
|
|
197
|
+
builder.i46_1 = Companion_getInstance().z3o_1;
|
|
198
198
|
url(builder, urlString);
|
|
199
|
-
headers(builder, OpenAIApiImpl$chatCompletion$lambda(this.
|
|
200
|
-
contentType(builder, Application_getInstance().
|
|
199
|
+
headers(builder, OpenAIApiImpl$chatCompletion$lambda(this.q7r_1));
|
|
200
|
+
contentType(builder, Application_getInstance().t3i_1);
|
|
201
201
|
if (request == null) {
|
|
202
|
-
builder.
|
|
202
|
+
builder.k46_1 = NullBody_instance;
|
|
203
203
|
var tmp_0 = getKClass(OpenAIRequest);
|
|
204
204
|
var tmp_1;
|
|
205
205
|
try {
|
|
@@ -214,13 +214,13 @@
|
|
|
214
214
|
}
|
|
215
215
|
tmp_1 = tmp_2;
|
|
216
216
|
}
|
|
217
|
-
builder.
|
|
217
|
+
builder.a4c(new TypeInfo(tmp_0, tmp_1));
|
|
218
218
|
} else {
|
|
219
219
|
if (request instanceof OutgoingContent) {
|
|
220
|
-
builder.
|
|
221
|
-
builder.
|
|
220
|
+
builder.k46_1 = request;
|
|
221
|
+
builder.a4c(null);
|
|
222
222
|
} else {
|
|
223
|
-
builder.
|
|
223
|
+
builder.k46_1 = request;
|
|
224
224
|
var tmp_3 = getKClass(OpenAIRequest);
|
|
225
225
|
var tmp_4;
|
|
226
226
|
try {
|
|
@@ -235,13 +235,13 @@
|
|
|
235
235
|
}
|
|
236
236
|
tmp_4 = tmp_5;
|
|
237
237
|
}
|
|
238
|
-
builder.
|
|
238
|
+
builder.a4c(new TypeInfo(tmp_3, tmp_4));
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
builder.
|
|
242
|
+
builder.i46_1 = Companion_getInstance().z3o_1;
|
|
243
243
|
this.i9_1 = 1;
|
|
244
|
-
suspendResult = (new HttpStatement(builder, tmp0)).
|
|
244
|
+
suspendResult = (new HttpStatement(builder, tmp0)).t57(this);
|
|
245
245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
246
246
|
return suspendResult;
|
|
247
247
|
}
|
|
@@ -249,9 +249,9 @@
|
|
|
249
249
|
continue $sm;
|
|
250
250
|
case 1:
|
|
251
251
|
var response = suspendResult;
|
|
252
|
-
this.
|
|
252
|
+
this.t7r_1 = Companion_instance;
|
|
253
253
|
this.i9_1 = 2;
|
|
254
|
-
var tmp_6 = response.
|
|
254
|
+
var tmp_6 = response.w47();
|
|
255
255
|
var tmp_7 = getKClass(OpenAIResponse);
|
|
256
256
|
var tmp_8;
|
|
257
257
|
try {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
tmp_8 = tmp_9;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
suspendResult = tmp_6.
|
|
270
|
+
suspendResult = tmp_6.t47(new TypeInfo(tmp_7, tmp_8), this);
|
|
271
271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
272
272
|
return suspendResult;
|
|
273
273
|
}
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
case 2:
|
|
277
277
|
var tmp2 = suspendResult instanceof OpenAIResponse ? suspendResult : THROW_CCE();
|
|
278
278
|
var tmp_10 = this;
|
|
279
|
-
this.
|
|
280
|
-
tmp_10.
|
|
279
|
+
this.t7r_1;
|
|
280
|
+
tmp_10.s7r_1 = _Result___init__impl__xyqfz8(tmp2);
|
|
281
281
|
this.j9_1 = 4;
|
|
282
282
|
this.i9_1 = 5;
|
|
283
283
|
continue $sm;
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
if (tmp_11 instanceof Exception) {
|
|
288
288
|
var e = this.l9_1;
|
|
289
289
|
var tmp_12 = this;
|
|
290
|
-
tmp_12.
|
|
290
|
+
tmp_12.s7r_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
291
291
|
this.i9_1 = 5;
|
|
292
292
|
continue $sm;
|
|
293
293
|
} else {
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
throw this.l9_1;
|
|
299
299
|
case 5:
|
|
300
300
|
this.j9_1 = 4;
|
|
301
|
-
return new Result(this.
|
|
301
|
+
return new Result(this.s7r_1);
|
|
302
302
|
}
|
|
303
303
|
} catch ($p) {
|
|
304
304
|
var e_0 = $p;
|
|
@@ -312,10 +312,10 @@
|
|
|
312
312
|
while (true);
|
|
313
313
|
};
|
|
314
314
|
function OpenAIApiImpl(config, httpClient) {
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
315
|
+
this.g7r_1 = config;
|
|
316
|
+
this.h7r_1 = httpClient;
|
|
317
317
|
}
|
|
318
|
-
protoOf(OpenAIApiImpl).
|
|
318
|
+
protoOf(OpenAIApiImpl).y7q = function (messages, $completion) {
|
|
319
319
|
var tmp = new $chatCompletionCOROUTINE$(this, messages, $completion);
|
|
320
320
|
tmp.k9_1 = Unit_instance;
|
|
321
321
|
tmp.l9_1 = null;
|
|
@@ -327,15 +327,15 @@
|
|
|
327
327
|
function BotChatCache() {
|
|
328
328
|
}
|
|
329
329
|
function CacheEntry(value, timestamp) {
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
330
|
+
this.v7r_1 = value;
|
|
331
|
+
this.w7r_1 = timestamp;
|
|
332
332
|
}
|
|
333
333
|
protoOf(CacheEntry).toString = function () {
|
|
334
|
-
return 'CacheEntry(value=' + this.
|
|
334
|
+
return 'CacheEntry(value=' + this.v7r_1 + ', timestamp=' + this.w7r_1.toString() + ')';
|
|
335
335
|
};
|
|
336
336
|
protoOf(CacheEntry).hashCode = function () {
|
|
337
|
-
var result = getStringHashCode(this.
|
|
338
|
-
result = imul(result, 31) + this.
|
|
337
|
+
var result = getStringHashCode(this.v7r_1);
|
|
338
|
+
result = imul(result, 31) + this.w7r_1.hashCode() | 0;
|
|
339
339
|
return result;
|
|
340
340
|
};
|
|
341
341
|
protoOf(CacheEntry).equals = function (other) {
|
|
@@ -343,36 +343,36 @@
|
|
|
343
343
|
return true;
|
|
344
344
|
if (!(other instanceof CacheEntry))
|
|
345
345
|
return false;
|
|
346
|
-
if (!(this.
|
|
346
|
+
if (!(this.v7r_1 === other.v7r_1))
|
|
347
347
|
return false;
|
|
348
|
-
if (!equalsLong(this.
|
|
348
|
+
if (!equalsLong(this.w7r_1, other.w7r_1))
|
|
349
349
|
return false;
|
|
350
350
|
return true;
|
|
351
351
|
};
|
|
352
352
|
function cleanExpired($this) {
|
|
353
|
-
var now = System_instance.
|
|
354
|
-
var tmp = $this.
|
|
353
|
+
var now = System_instance.lm().in();
|
|
354
|
+
var tmp = $this.z7r_1.m1();
|
|
355
355
|
removeAll(tmp, InMemoryBotChatCache$cleanExpired$lambda(now, $this));
|
|
356
356
|
}
|
|
357
357
|
function InMemoryBotChatCache$cleanExpired$lambda($now, this$0) {
|
|
358
358
|
return function (_destruct__k2r9zo) {
|
|
359
359
|
// Inline function 'kotlin.collections.component2' call
|
|
360
360
|
var entry = _destruct__k2r9zo.o1();
|
|
361
|
-
return compare(subtract($now, entry.
|
|
361
|
+
return compare(subtract($now, entry.w7r_1), this$0.x7r_1) > 0;
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
function InMemoryBotChatCache(ttlMillis, maxSize) {
|
|
365
365
|
ttlMillis = ttlMillis === VOID ? new Long(300000, 0) : ttlMillis;
|
|
366
366
|
maxSize = maxSize === VOID ? 100 : maxSize;
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
367
|
+
this.x7r_1 = ttlMillis;
|
|
368
|
+
this.y7r_1 = maxSize;
|
|
369
369
|
var tmp = this;
|
|
370
370
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
371
|
-
tmp.
|
|
371
|
+
tmp.z7r_1 = LinkedHashMap_init_$Create$();
|
|
372
372
|
}
|
|
373
|
-
protoOf(InMemoryBotChatCache).
|
|
373
|
+
protoOf(InMemoryBotChatCache).h3c = function (key) {
|
|
374
374
|
cleanExpired(this);
|
|
375
|
-
var tmp0_elvis_lhs = this.
|
|
375
|
+
var tmp0_elvis_lhs = this.z7r_1.v2(key);
|
|
376
376
|
var tmp;
|
|
377
377
|
if (tmp0_elvis_lhs == null) {
|
|
378
378
|
return null;
|
|
@@ -380,17 +380,17 @@
|
|
|
380
380
|
tmp = tmp0_elvis_lhs;
|
|
381
381
|
}
|
|
382
382
|
var entry = tmp;
|
|
383
|
-
if (compare(subtract(System_instance.
|
|
384
|
-
this.
|
|
383
|
+
if (compare(subtract(System_instance.lm().in(), entry.w7r_1), this.x7r_1) > 0) {
|
|
384
|
+
this.z7r_1.h3(key);
|
|
385
385
|
return null;
|
|
386
386
|
}
|
|
387
|
-
return entry.
|
|
387
|
+
return entry.v7r_1;
|
|
388
388
|
};
|
|
389
|
-
protoOf(InMemoryBotChatCache).
|
|
389
|
+
protoOf(InMemoryBotChatCache).u7r = function (key, value) {
|
|
390
390
|
cleanExpired(this);
|
|
391
|
-
if (this.
|
|
391
|
+
if (this.z7r_1.g1() >= this.y7r_1) {
|
|
392
392
|
// Inline function 'kotlin.collections.minByOrNull' call
|
|
393
|
-
var tmp0 = this.
|
|
393
|
+
var tmp0 = this.z7r_1.m1();
|
|
394
394
|
var tmp$ret$0;
|
|
395
395
|
$l$block_0: {
|
|
396
396
|
// Inline function 'kotlin.collections.minByOrNull' call
|
|
@@ -404,10 +404,10 @@
|
|
|
404
404
|
tmp$ret$0 = minElem;
|
|
405
405
|
break $l$block_0;
|
|
406
406
|
}
|
|
407
|
-
var minValue = minElem.o1().
|
|
407
|
+
var minValue = minElem.o1().w7r_1;
|
|
408
408
|
do {
|
|
409
409
|
var e = iterator.v();
|
|
410
|
-
var v = e.o1().
|
|
410
|
+
var v = e.o1().w7r_1;
|
|
411
411
|
if (compareTo(minValue, v) > 0) {
|
|
412
412
|
minElem = e;
|
|
413
413
|
minValue = v;
|
|
@@ -422,24 +422,24 @@
|
|
|
422
422
|
null;
|
|
423
423
|
else {
|
|
424
424
|
// Inline function 'kotlin.let' call
|
|
425
|
-
this.
|
|
425
|
+
this.z7r_1.h3(oldestKey);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var tmp0_0 = this.
|
|
428
|
+
var tmp0_0 = this.z7r_1;
|
|
429
429
|
// Inline function 'kotlin.collections.set' call
|
|
430
|
-
var value_0 = new CacheEntry(value, System_instance.
|
|
430
|
+
var value_0 = new CacheEntry(value, System_instance.lm().in());
|
|
431
431
|
tmp0_0.g3(key, value_0);
|
|
432
432
|
};
|
|
433
433
|
function BotChatConfig() {
|
|
434
434
|
BotChatConfig_instance = this;
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
}
|
|
441
|
-
protoOf(BotChatConfig).
|
|
442
|
-
var tmp0_elvis_lhs = this.
|
|
435
|
+
this.a7s_1 = mapOf([to(0, '\u0412\u0435\u0441\u0435\u043B\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C. \u041B\u044E\u0431\u0438\u0442\u044C \u043F\u043E\u0436\u0430\u0440\u0442\u0443\u0432\u0430\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0443\u0442\u0438\u0441\u044F. \u041F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456.\n \u0412\u0431\u043E\u043B\u0456\u0432\u0430\u0454 \u0437\u0430 \u043A\u0430\u0440\u0442\u0438 \u044F\u043A \u0437\u0430 \u0444\u0443\u0442\u0431\u043E\u043B. \u041C\u043E\u0436\u0435 \u0441\u043A\u0430\u0437\u0430\u0442\u0438 "\u043E\u0442 \u0445\u0430\u043B\u0435\u043F\u0430", "\u0431\u043B\u044F\u0445\u0430-\u043C\u0443\u0445\u0430", "\u043D\u0456\u0447\u043E \u0441\u043E\u0431\u0456".'), to(1, '\u0421\u043F\u043E\u043A\u0456\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C \u0437\u0456 \u041B\u044C\u0432\u043E\u0432\u0430. \u0413\u043E\u0432\u043E\u0440\u0438\u0442\u044C \u0442\u0440\u043E\u0445\u0438 \u043F\u043E-\u0437\u0430\u0445\u0456\u0434\u043D\u043E\u043C\u0443 ("\u0444\u0430\u0439\u043D\u043E", "\u0430\u044F\u043A\u0436\u0435").\n \u0406\u043D\u043E\u0434\u0456 \u0432\u0441\u044F\u043A\u043D\u0435 \u0449\u043E\u0441\u044C \u0442\u0438\u043F\u0443 "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C" \u0430\u0431\u043E "\u0442\u0430 \u0448\u043E \u0442\u0438 \u043A\u0430\u0436\u0435\u0448". \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0441\u0435\u0440\u0439\u043E\u0437\u043D\u0438\u0439.'), to(2, '\u0417\u0430\u043F\u0430\u043B\u044C\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C. \u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u0438\u0439, \u043B\u044E\u0431\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0430\u0433\u0430\u0442\u0438. \u041C\u043E\u0436\u0435 \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u0441\u043B\u0430\u0442\u0438 "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438"\n \u0430\u0431\u043E "\u0430\u043D\u0443 \u043D\u043E\u0440\u043C\u0430\u043B\u044C\u043D\u043E \u0433\u0440\u0430\u0439". \u0422\u0440\u043E\u0445\u0438 \u0431\u0430\u0437\u0456\u043A\u0430, \u0430\u043B\u0435 \u043F\u043E-\u0434\u043E\u0431\u0440\u043E\u043C\u0443. \u0420\u0435\u0430\u0433\u0443\u0454 \u0435\u043C\u043E\u0446\u0456\u0439\u043D\u043E \u043D\u0430 \u0433\u0440\u0443.'), to(3, '\u0414\u043E\u0441\u0432\u0456\u0434\u0447\u0435\u043D\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C, \u043C\u043E\u0436\u0435 \u0442\u0440\u043E\u0445\u0438 \u0441\u0442\u0430\u0440\u0448\u0438\u0439. \u0406\u043D\u043E\u0434\u0456 \u0434\u0430\u0441\u0442\u044C \u043F\u043E\u0440\u0430\u0434\u0443. \u041C\u043E\u0436\u0435 \u0431\u0443\u0440\u043A\u043D\u0443\u0442\u0438 "\u0442\u0430 \u0449\u043E \u0436 \u0442\u0438 \u0440\u043E\u0431\u0438\u0448"\n \u0430\u0431\u043E "\u043E\u0445 \u0439\u043E\u0431\u0430\u043D\u0430". \u041C\u0443\u0434\u0440\u0456\u0448\u0438\u0439 \u0437\u0430 \u0456\u043D\u0448\u0438\u0445, \u0430\u043B\u0435 \u0442\u0435\u0436 \u043D\u0435 \u0441\u0432\u044F\u0442\u0438\u0439 \u0443 \u0432\u0438\u0440\u0430\u0437\u0430\u0445.'), to(4, '\u0421\u043E\u043B\u0434\u0430\u0442 \u0417\u0421\u0423, \u0433\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438 \u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0447\u0438\u043D\u043A\u0443. \u0416\u043E\u0440\u0441\u0442\u043A\u0438\u0439 \u0433\u0443\u043C\u043E\u0440, \u043F\u0440\u044F\u043C\u0438\u0439. \u041C\u043E\u0436\u0435 \u0441\u043A\u0430\u0437\u0430\u0442\u0438 "\u0442\u0440\u0438\u043C\u0430\u0439 \u043F\u043E\u0437\u0438\u0446\u0456\u044E",\n "\u0432\u0456\u0434\u0431\u0456\u0439", "\u0439\u043E\u0431\u0430\u043D\u0430 \u0440\u043E\u0442\u0430". \u0421\u0442\u0440\u0438\u043C\u0430\u043D\u0438\u0439 \u0430\u043B\u0435 \u0440\u0456\u0437\u043A\u0438\u0439. \u0412\u0456\u0439\u0441\u044C\u043A\u043E\u0432\u0438\u0439 \u0441\u043B\u0435\u043D\u0433.')]);
|
|
436
|
+
this.b7s_1 = '\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C. \u0413\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0435\u0442\u044C\u0441\u044F,\n \u043F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456. \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u0439, \u0430\u043B\u0435 \u0439 \u043D\u0435 \u0437\u043B\u0438\u0439.';
|
|
437
|
+
this.c7s_1 = '\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438\n- \u0423\u041D\u0418\u041A\u0410\u0419 \u0448\u0430\u0431\u043B\u043E\u043D\u043D\u0438\u0445/\u0431\u043E\u0442\u0456\u0432\u0441\u044C\u043A\u0438\u0445 \u0444\u0440\u0430\u0437: "\u0433\u0440\u0430\u0454\u043C\u043E \u0434\u0430\u043B\u0456", "\u0433\u0440\u0430\u0439 \u0434\u0430\u043B\u0456", "\u0434\u0430\u0432\u0430\u0439 \u0434\u0430\u043B\u0456", "\u043F\u043E\u0433\u043D\u0430\u043B\u0438 \u0434\u0430\u043B\u0456", "\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439", "\u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439", "\u0433\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435" \u2014 \u0437\u0432\u0443\u0447\u0438\u0442\u044C \u044F\u043A \u0431\u043E\u0442\n- \u041A\u043E\u0436\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u041E\u0420\u0418\u0413\u0406\u041D\u0410\u041B\u042C\u041D\u041E\u042E; \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044E\u0439 \u0444\u0440\u0430\u0437\u0438, \u044F\u043A\u0456 \u0432\u0436\u0435 \u0437\u0432\u0443\u0447\u0430\u043B\u0438 \u0443 \u0447\u0430\u0442\u0456\n- \u042F\u043A\u0449\u043E \u0443 \u0447\u0430\u0442\u0456 \u0437\u0432\u0435\u0440\u0442\u0430\u044E\u0442\u044C\u0441\u044F \u043D\u0435 \u0434\u043E \u0442\u0435\u0431\u0435 \u2014 \u043C\u043E\u0432\u0447\u0438 (\u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0442\u0456\u043B\u044C\u043A\u0438 \u043A\u043E\u043B\u0438 \u0441\u043F\u0438\u0442\u0430\u043B\u0438 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u043E, \u0430\u0431\u043E \u044F\u043A\u0449\u043E \u0442\u0435\u0431\u0435 \u0442\u0440\u0438\u0433\u0435\u0440\u043D\u0443\u0432 \u043F\u043E\u0434\u0456\u0457 \u0433\u0440\u0438)';
|
|
438
|
+
this.d7s_1 = "\u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E \u043D\u0430 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0433\u0440\u0430\u0432\u0446\u044F \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E \u043C\u043E\u0432\u043E\u044E.\n\u041F\u0430\u043C'\u044F\u0442\u0430\u0439: \u0442\u0438 \u0436\u0438\u0432\u0430 \u043B\u044E\u0434\u0438\u043D\u0430 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI. \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043C\u043E\u0436\u0435\u0448 \u0442\u0440\u043E\u0445\u0438 \u043F\u043E\u043C\u0430\u0442\u044E\u043A\u0430\u0442\u0438\u0441\u044F.\n\u0412\u0410\u0416\u041B\u0418\u0412\u041E: \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C 1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!";
|
|
439
|
+
this.e7s_1 = '\u0417\u0433\u0435\u043D\u0435\u0440\u0443\u0439 \u0441\u043F\u043E\u043D\u0442\u0430\u043D\u043D\u0438\u0439 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!).\n\u0420\u0435\u0430\u0433\u0443\u0439 \u043D\u0430 \u0441\u0442\u0430\u043D \u0433\u0440\u0438 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E. \u0411\u0443\u0434\u044C \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0447\u043D\u0438\u043C. \u041C\u043E\u0436\u0435\u0448 \u0432\u0436\u0438\u0442\u0438 \u043B\u0435\u0433\u043A\u0438\u0439 \u043C\u0430\u0442\u044E\u043A \u044F\u043A\u0449\u043E \u043F\u0456\u0434\u0445\u043E\u0434\u0438\u0442\u044C.';
|
|
440
|
+
}
|
|
441
|
+
protoOf(BotChatConfig).f7s = function (playerNumber) {
|
|
442
|
+
var tmp0_elvis_lhs = this.a7s_1.v2(playerNumber % this.a7s_1.g1() | 0);
|
|
443
443
|
return tmp0_elvis_lhs == null ? '\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C. \u0413\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0435\u0442\u044C\u0441\u044F,\n \u043F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456. \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u0439, \u0430\u043B\u0435 \u0439 \u043D\u0435 \u0437\u043B\u0438\u0439.' : tmp0_elvis_lhs;
|
|
444
444
|
};
|
|
445
445
|
var BotChatConfig_instance;
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
// Inline function 'kotlin.arrayOf' call
|
|
459
459
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
460
460
|
// Inline function 'kotlin.js.asDynamic' call
|
|
461
|
-
tmp.
|
|
461
|
+
tmp.g7s_1 = [null, null, lazy(tmp_0, BotChatContext$Companion$$childSerializers$_anonymous__c0jn7e), null];
|
|
462
462
|
}
|
|
463
463
|
var Companion_instance_1;
|
|
464
464
|
function Companion_getInstance_0() {
|
|
@@ -469,31 +469,31 @@
|
|
|
469
469
|
function $serializer() {
|
|
470
470
|
$serializer_instance = this;
|
|
471
471
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.BotChatContext', this, 4);
|
|
472
|
-
tmp0_serialDesc.
|
|
473
|
-
tmp0_serialDesc.
|
|
474
|
-
tmp0_serialDesc.
|
|
475
|
-
tmp0_serialDesc.
|
|
476
|
-
this.
|
|
477
|
-
}
|
|
478
|
-
protoOf($serializer).
|
|
479
|
-
var tmp0_desc = this.
|
|
480
|
-
var tmp1_output = encoder.
|
|
481
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
482
|
-
tmp1_output.
|
|
483
|
-
tmp1_output.
|
|
484
|
-
if (tmp1_output.
|
|
485
|
-
tmp1_output.
|
|
472
|
+
tmp0_serialDesc.w11('botPersonality', false);
|
|
473
|
+
tmp0_serialDesc.w11('gameState', false);
|
|
474
|
+
tmp0_serialDesc.w11('conversationHistory', true);
|
|
475
|
+
tmp0_serialDesc.w11('playerName', true);
|
|
476
|
+
this.h7s_1 = tmp0_serialDesc;
|
|
477
|
+
}
|
|
478
|
+
protoOf($serializer).i7s = function (encoder, value) {
|
|
479
|
+
var tmp0_desc = this.h7s_1;
|
|
480
|
+
var tmp1_output = encoder.eu(tmp0_desc);
|
|
481
|
+
var tmp2_cached = Companion_getInstance_0().g7s_1;
|
|
482
|
+
tmp1_output.tv(tmp0_desc, 0, value.j7s_1);
|
|
483
|
+
tmp1_output.tv(tmp0_desc, 1, value.k7s_1);
|
|
484
|
+
if (tmp1_output.bw(tmp0_desc, 2) ? true : !equals(value.l7s_1, emptyList())) {
|
|
485
|
+
tmp1_output.vv(tmp0_desc, 2, tmp2_cached[2].o1(), value.l7s_1);
|
|
486
486
|
}
|
|
487
|
-
if (tmp1_output.
|
|
488
|
-
tmp1_output.
|
|
487
|
+
if (tmp1_output.bw(tmp0_desc, 3) ? true : !(value.m7s_1 == null)) {
|
|
488
|
+
tmp1_output.xv(tmp0_desc, 3, StringSerializer_getInstance(), value.m7s_1);
|
|
489
489
|
}
|
|
490
|
-
tmp1_output.
|
|
490
|
+
tmp1_output.fu(tmp0_desc);
|
|
491
491
|
};
|
|
492
|
-
protoOf($serializer).
|
|
493
|
-
return this.
|
|
492
|
+
protoOf($serializer).sq = function (encoder, value) {
|
|
493
|
+
return this.i7s(encoder, value instanceof BotChatContext ? value : THROW_CCE());
|
|
494
494
|
};
|
|
495
|
-
protoOf($serializer).
|
|
496
|
-
var tmp0_desc = this.
|
|
495
|
+
protoOf($serializer).tq = function (decoder) {
|
|
496
|
+
var tmp0_desc = this.h7s_1;
|
|
497
497
|
var tmp1_flag = true;
|
|
498
498
|
var tmp2_index = 0;
|
|
499
499
|
var tmp3_bitMask0 = 0;
|
|
@@ -501,52 +501,52 @@
|
|
|
501
501
|
var tmp5_local1 = null;
|
|
502
502
|
var tmp6_local2 = null;
|
|
503
503
|
var tmp7_local3 = null;
|
|
504
|
-
var tmp8_input = decoder.
|
|
505
|
-
var tmp9_cached = Companion_getInstance_0().
|
|
506
|
-
if (tmp8_input.
|
|
507
|
-
tmp4_local0 = tmp8_input.
|
|
504
|
+
var tmp8_input = decoder.eu(tmp0_desc);
|
|
505
|
+
var tmp9_cached = Companion_getInstance_0().g7s_1;
|
|
506
|
+
if (tmp8_input.uu()) {
|
|
507
|
+
tmp4_local0 = tmp8_input.ou(tmp0_desc, 0);
|
|
508
508
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
509
|
-
tmp5_local1 = tmp8_input.
|
|
509
|
+
tmp5_local1 = tmp8_input.ou(tmp0_desc, 1);
|
|
510
510
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
511
|
-
tmp6_local2 = tmp8_input.
|
|
511
|
+
tmp6_local2 = tmp8_input.qu(tmp0_desc, 2, tmp9_cached[2].o1(), tmp6_local2);
|
|
512
512
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
513
|
-
tmp7_local3 = tmp8_input.
|
|
513
|
+
tmp7_local3 = tmp8_input.su(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
514
514
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
515
515
|
} else
|
|
516
516
|
while (tmp1_flag) {
|
|
517
|
-
tmp2_index = tmp8_input.
|
|
517
|
+
tmp2_index = tmp8_input.vu(tmp0_desc);
|
|
518
518
|
switch (tmp2_index) {
|
|
519
519
|
case -1:
|
|
520
520
|
tmp1_flag = false;
|
|
521
521
|
break;
|
|
522
522
|
case 0:
|
|
523
|
-
tmp4_local0 = tmp8_input.
|
|
523
|
+
tmp4_local0 = tmp8_input.ou(tmp0_desc, 0);
|
|
524
524
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
525
525
|
break;
|
|
526
526
|
case 1:
|
|
527
|
-
tmp5_local1 = tmp8_input.
|
|
527
|
+
tmp5_local1 = tmp8_input.ou(tmp0_desc, 1);
|
|
528
528
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
529
529
|
break;
|
|
530
530
|
case 2:
|
|
531
|
-
tmp6_local2 = tmp8_input.
|
|
531
|
+
tmp6_local2 = tmp8_input.qu(tmp0_desc, 2, tmp9_cached[2].o1(), tmp6_local2);
|
|
532
532
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
533
533
|
break;
|
|
534
534
|
case 3:
|
|
535
|
-
tmp7_local3 = tmp8_input.
|
|
535
|
+
tmp7_local3 = tmp8_input.su(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
536
536
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
537
537
|
break;
|
|
538
538
|
default:
|
|
539
539
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
tmp8_input.
|
|
542
|
+
tmp8_input.fu(tmp0_desc);
|
|
543
543
|
return BotChatContext_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
544
544
|
};
|
|
545
|
-
protoOf($serializer).
|
|
546
|
-
return this.
|
|
545
|
+
protoOf($serializer).rq = function () {
|
|
546
|
+
return this.h7s_1;
|
|
547
547
|
};
|
|
548
|
-
protoOf($serializer).
|
|
549
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
548
|
+
protoOf($serializer).l12 = function () {
|
|
549
|
+
var tmp0_cached = Companion_getInstance_0().g7s_1;
|
|
550
550
|
// Inline function 'kotlin.arrayOf' call
|
|
551
551
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
552
552
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -560,18 +560,18 @@
|
|
|
560
560
|
}
|
|
561
561
|
function BotChatContext_init_$Init$(seen0, botPersonality, gameState, conversationHistory, playerName, serializationConstructorMarker, $this) {
|
|
562
562
|
if (!(3 === (3 & seen0))) {
|
|
563
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
563
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().h7s_1);
|
|
564
564
|
}
|
|
565
|
-
$this.
|
|
566
|
-
$this.
|
|
565
|
+
$this.j7s_1 = botPersonality;
|
|
566
|
+
$this.k7s_1 = gameState;
|
|
567
567
|
if (0 === (seen0 & 4))
|
|
568
|
-
$this.
|
|
568
|
+
$this.l7s_1 = emptyList();
|
|
569
569
|
else
|
|
570
|
-
$this.
|
|
570
|
+
$this.l7s_1 = conversationHistory;
|
|
571
571
|
if (0 === (seen0 & 8))
|
|
572
|
-
$this.
|
|
572
|
+
$this.m7s_1 = null;
|
|
573
573
|
else
|
|
574
|
-
$this.
|
|
574
|
+
$this.m7s_1 = playerName;
|
|
575
575
|
return $this;
|
|
576
576
|
}
|
|
577
577
|
function BotChatContext_init_$Create$(seen0, botPersonality, gameState, conversationHistory, playerName, serializationConstructorMarker) {
|
|
@@ -581,19 +581,19 @@
|
|
|
581
581
|
Companion_getInstance_0();
|
|
582
582
|
conversationHistory = conversationHistory === VOID ? emptyList() : conversationHistory;
|
|
583
583
|
playerName = playerName === VOID ? null : playerName;
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
584
|
+
this.j7s_1 = botPersonality;
|
|
585
|
+
this.k7s_1 = gameState;
|
|
586
|
+
this.l7s_1 = conversationHistory;
|
|
587
|
+
this.m7s_1 = playerName;
|
|
588
588
|
}
|
|
589
589
|
protoOf(BotChatContext).toString = function () {
|
|
590
|
-
return 'BotChatContext(botPersonality=' + this.
|
|
590
|
+
return 'BotChatContext(botPersonality=' + this.j7s_1 + ', gameState=' + this.k7s_1 + ', conversationHistory=' + toString(this.l7s_1) + ', playerName=' + this.m7s_1 + ')';
|
|
591
591
|
};
|
|
592
592
|
protoOf(BotChatContext).hashCode = function () {
|
|
593
|
-
var result = getStringHashCode(this.
|
|
594
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
595
|
-
result = imul(result, 31) + hashCode(this.
|
|
596
|
-
result = imul(result, 31) + (this.
|
|
593
|
+
var result = getStringHashCode(this.j7s_1);
|
|
594
|
+
result = imul(result, 31) + getStringHashCode(this.k7s_1) | 0;
|
|
595
|
+
result = imul(result, 31) + hashCode(this.l7s_1) | 0;
|
|
596
|
+
result = imul(result, 31) + (this.m7s_1 == null ? 0 : getStringHashCode(this.m7s_1)) | 0;
|
|
597
597
|
return result;
|
|
598
598
|
};
|
|
599
599
|
protoOf(BotChatContext).equals = function (other) {
|
|
@@ -601,18 +601,18 @@
|
|
|
601
601
|
return true;
|
|
602
602
|
if (!(other instanceof BotChatContext))
|
|
603
603
|
return false;
|
|
604
|
-
if (!(this.
|
|
604
|
+
if (!(this.j7s_1 === other.j7s_1))
|
|
605
605
|
return false;
|
|
606
|
-
if (!(this.
|
|
606
|
+
if (!(this.k7s_1 === other.k7s_1))
|
|
607
607
|
return false;
|
|
608
|
-
if (!equals(this.
|
|
608
|
+
if (!equals(this.l7s_1, other.l7s_1))
|
|
609
609
|
return false;
|
|
610
|
-
if (!(this.
|
|
610
|
+
if (!(this.m7s_1 == other.m7s_1))
|
|
611
611
|
return false;
|
|
612
612
|
return true;
|
|
613
613
|
};
|
|
614
614
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
615
|
-
return $this.
|
|
615
|
+
return $this.n7s_1.o1();
|
|
616
616
|
}
|
|
617
617
|
function ChatMessage$Role$Companion$_anonymous__13jozo() {
|
|
618
618
|
var tmp = values();
|
|
@@ -636,13 +636,13 @@
|
|
|
636
636
|
Companion_instance_2 = this;
|
|
637
637
|
var tmp = this;
|
|
638
638
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
639
|
-
tmp.
|
|
639
|
+
tmp.n7s_1 = lazy(tmp_0, ChatMessage$Role$Companion$_anonymous__13jozo);
|
|
640
640
|
}
|
|
641
|
-
protoOf(Companion_0).
|
|
641
|
+
protoOf(Companion_0).d5g = function () {
|
|
642
642
|
return _get_$cachedSerializer__te6jhj(this);
|
|
643
643
|
};
|
|
644
|
-
protoOf(Companion_0).
|
|
645
|
-
return this.
|
|
644
|
+
protoOf(Companion_0).w12 = function (typeParamsSerializers) {
|
|
645
|
+
return this.d5g();
|
|
646
646
|
};
|
|
647
647
|
var Companion_instance_2;
|
|
648
648
|
function Companion_getInstance_1() {
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
Companion_getInstance_1();
|
|
663
663
|
}
|
|
664
664
|
function ChatMessage$Companion$$childSerializers$_anonymous__qywqat() {
|
|
665
|
-
return Companion_getInstance_1().
|
|
665
|
+
return Companion_getInstance_1().d5g();
|
|
666
666
|
}
|
|
667
667
|
function Role(name, ordinal) {
|
|
668
668
|
Enum.call(this, name, ordinal);
|
|
@@ -674,17 +674,14 @@
|
|
|
674
674
|
// Inline function 'kotlin.arrayOf' call
|
|
675
675
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
676
676
|
// Inline function 'kotlin.js.asDynamic' call
|
|
677
|
-
tmp.
|
|
677
|
+
tmp.o7s_1 = [lazy(tmp_0, ChatMessage$Companion$$childSerializers$_anonymous__qywqat), null];
|
|
678
678
|
}
|
|
679
|
-
protoOf(Companion_1).
|
|
679
|
+
protoOf(Companion_1).p7s = function (content) {
|
|
680
680
|
return new ChatMessage(Role_SYSTEM_getInstance(), content);
|
|
681
681
|
};
|
|
682
|
-
protoOf(Companion_1).
|
|
682
|
+
protoOf(Companion_1).q7s = function (content) {
|
|
683
683
|
return new ChatMessage(Role_USER_getInstance(), content);
|
|
684
684
|
};
|
|
685
|
-
protoOf(Companion_1).w7r = function (content) {
|
|
686
|
-
return new ChatMessage(Role_ASSISTANT_getInstance(), content);
|
|
687
|
-
};
|
|
688
685
|
var Companion_instance_3;
|
|
689
686
|
function Companion_getInstance_2() {
|
|
690
687
|
if (Companion_instance_3 == null)
|
|
@@ -694,65 +691,65 @@
|
|
|
694
691
|
function $serializer_0() {
|
|
695
692
|
$serializer_instance_0 = this;
|
|
696
693
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.ChatMessage', this, 2);
|
|
697
|
-
tmp0_serialDesc.
|
|
698
|
-
tmp0_serialDesc.
|
|
699
|
-
this.
|
|
700
|
-
}
|
|
701
|
-
protoOf($serializer_0).
|
|
702
|
-
var tmp0_desc = this.
|
|
703
|
-
var tmp1_output = encoder.
|
|
704
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
705
|
-
tmp1_output.
|
|
706
|
-
tmp1_output.
|
|
707
|
-
tmp1_output.
|
|
708
|
-
};
|
|
709
|
-
protoOf($serializer_0).
|
|
710
|
-
return this.
|
|
711
|
-
};
|
|
712
|
-
protoOf($serializer_0).
|
|
713
|
-
var tmp0_desc = this.
|
|
694
|
+
tmp0_serialDesc.w11('role', false);
|
|
695
|
+
tmp0_serialDesc.w11('content', false);
|
|
696
|
+
this.r7s_1 = tmp0_serialDesc;
|
|
697
|
+
}
|
|
698
|
+
protoOf($serializer_0).s7s = function (encoder, value) {
|
|
699
|
+
var tmp0_desc = this.r7s_1;
|
|
700
|
+
var tmp1_output = encoder.eu(tmp0_desc);
|
|
701
|
+
var tmp2_cached = Companion_getInstance_2().o7s_1;
|
|
702
|
+
tmp1_output.vv(tmp0_desc, 0, tmp2_cached[0].o1(), value.t7s_1);
|
|
703
|
+
tmp1_output.tv(tmp0_desc, 1, value.u7s_1);
|
|
704
|
+
tmp1_output.fu(tmp0_desc);
|
|
705
|
+
};
|
|
706
|
+
protoOf($serializer_0).sq = function (encoder, value) {
|
|
707
|
+
return this.s7s(encoder, value instanceof ChatMessage ? value : THROW_CCE());
|
|
708
|
+
};
|
|
709
|
+
protoOf($serializer_0).tq = function (decoder) {
|
|
710
|
+
var tmp0_desc = this.r7s_1;
|
|
714
711
|
var tmp1_flag = true;
|
|
715
712
|
var tmp2_index = 0;
|
|
716
713
|
var tmp3_bitMask0 = 0;
|
|
717
714
|
var tmp4_local0 = null;
|
|
718
715
|
var tmp5_local1 = null;
|
|
719
|
-
var tmp6_input = decoder.
|
|
720
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
721
|
-
if (tmp6_input.
|
|
722
|
-
tmp4_local0 = tmp6_input.
|
|
716
|
+
var tmp6_input = decoder.eu(tmp0_desc);
|
|
717
|
+
var tmp7_cached = Companion_getInstance_2().o7s_1;
|
|
718
|
+
if (tmp6_input.uu()) {
|
|
719
|
+
tmp4_local0 = tmp6_input.qu(tmp0_desc, 0, tmp7_cached[0].o1(), tmp4_local0);
|
|
723
720
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
724
|
-
tmp5_local1 = tmp6_input.
|
|
721
|
+
tmp5_local1 = tmp6_input.ou(tmp0_desc, 1);
|
|
725
722
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
726
723
|
} else
|
|
727
724
|
while (tmp1_flag) {
|
|
728
|
-
tmp2_index = tmp6_input.
|
|
725
|
+
tmp2_index = tmp6_input.vu(tmp0_desc);
|
|
729
726
|
switch (tmp2_index) {
|
|
730
727
|
case -1:
|
|
731
728
|
tmp1_flag = false;
|
|
732
729
|
break;
|
|
733
730
|
case 0:
|
|
734
|
-
tmp4_local0 = tmp6_input.
|
|
731
|
+
tmp4_local0 = tmp6_input.qu(tmp0_desc, 0, tmp7_cached[0].o1(), tmp4_local0);
|
|
735
732
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
736
733
|
break;
|
|
737
734
|
case 1:
|
|
738
|
-
tmp5_local1 = tmp6_input.
|
|
735
|
+
tmp5_local1 = tmp6_input.ou(tmp0_desc, 1);
|
|
739
736
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
740
737
|
break;
|
|
741
738
|
default:
|
|
742
739
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
743
740
|
}
|
|
744
741
|
}
|
|
745
|
-
tmp6_input.
|
|
742
|
+
tmp6_input.fu(tmp0_desc);
|
|
746
743
|
return ChatMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
747
744
|
};
|
|
748
|
-
protoOf($serializer_0).
|
|
749
|
-
return this.
|
|
745
|
+
protoOf($serializer_0).rq = function () {
|
|
746
|
+
return this.r7s_1;
|
|
750
747
|
};
|
|
751
|
-
protoOf($serializer_0).
|
|
748
|
+
protoOf($serializer_0).l12 = function () {
|
|
752
749
|
// Inline function 'kotlin.arrayOf' call
|
|
753
750
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
754
751
|
// Inline function 'kotlin.js.asDynamic' call
|
|
755
|
-
return [Companion_getInstance_2().
|
|
752
|
+
return [Companion_getInstance_2().o7s_1[0].o1(), StringSerializer_getInstance()];
|
|
756
753
|
};
|
|
757
754
|
var $serializer_instance_0;
|
|
758
755
|
function $serializer_getInstance_0() {
|
|
@@ -762,10 +759,10 @@
|
|
|
762
759
|
}
|
|
763
760
|
function ChatMessage_init_$Init$(seen0, role, content, serializationConstructorMarker, $this) {
|
|
764
761
|
if (!(3 === (3 & seen0))) {
|
|
765
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
762
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().r7s_1);
|
|
766
763
|
}
|
|
767
|
-
$this.
|
|
768
|
-
$this.
|
|
764
|
+
$this.t7s_1 = role;
|
|
765
|
+
$this.u7s_1 = content;
|
|
769
766
|
return $this;
|
|
770
767
|
}
|
|
771
768
|
function ChatMessage_init_$Create$(seen0, role, content, serializationConstructorMarker) {
|
|
@@ -785,15 +782,15 @@
|
|
|
785
782
|
}
|
|
786
783
|
function ChatMessage(role, content) {
|
|
787
784
|
Companion_getInstance_2();
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
785
|
+
this.t7s_1 = role;
|
|
786
|
+
this.u7s_1 = content;
|
|
790
787
|
}
|
|
791
788
|
protoOf(ChatMessage).toString = function () {
|
|
792
|
-
return 'ChatMessage(role=' + this.
|
|
789
|
+
return 'ChatMessage(role=' + this.t7s_1.toString() + ', content=' + this.u7s_1 + ')';
|
|
793
790
|
};
|
|
794
791
|
protoOf(ChatMessage).hashCode = function () {
|
|
795
|
-
var result = this.
|
|
796
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
792
|
+
var result = this.t7s_1.hashCode();
|
|
793
|
+
result = imul(result, 31) + getStringHashCode(this.u7s_1) | 0;
|
|
797
794
|
return result;
|
|
798
795
|
};
|
|
799
796
|
protoOf(ChatMessage).equals = function (other) {
|
|
@@ -801,9 +798,9 @@
|
|
|
801
798
|
return true;
|
|
802
799
|
if (!(other instanceof ChatMessage))
|
|
803
800
|
return false;
|
|
804
|
-
if (!this.
|
|
801
|
+
if (!this.t7s_1.equals(other.t7s_1))
|
|
805
802
|
return false;
|
|
806
|
-
if (!(this.
|
|
803
|
+
if (!(this.u7s_1 === other.u7s_1))
|
|
807
804
|
return false;
|
|
808
805
|
return true;
|
|
809
806
|
};
|
|
@@ -814,25 +811,25 @@
|
|
|
814
811
|
maxTokens = maxTokens === VOID ? 150 : maxTokens;
|
|
815
812
|
timeout = timeout === VOID ? 30000 : timeout;
|
|
816
813
|
enableDebugLogging = enableDebugLogging === VOID ? false : enableDebugLogging;
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
814
|
+
this.z7q_1 = apiKey;
|
|
815
|
+
this.a7r_1 = model;
|
|
816
|
+
this.b7r_1 = baseUrl;
|
|
817
|
+
this.c7r_1 = temperature;
|
|
818
|
+
this.d7r_1 = maxTokens;
|
|
819
|
+
this.e7r_1 = timeout;
|
|
820
|
+
this.f7r_1 = enableDebugLogging;
|
|
824
821
|
}
|
|
825
822
|
protoOf(OpenAIConfig).toString = function () {
|
|
826
|
-
return 'OpenAIConfig(apiKey=' + this.
|
|
823
|
+
return 'OpenAIConfig(apiKey=' + this.z7q_1 + ', model=' + this.a7r_1 + ', baseUrl=' + this.b7r_1 + ', temperature=' + this.c7r_1 + ', maxTokens=' + this.d7r_1 + ', timeout=' + this.e7r_1 + ', enableDebugLogging=' + this.f7r_1 + ')';
|
|
827
824
|
};
|
|
828
825
|
protoOf(OpenAIConfig).hashCode = function () {
|
|
829
|
-
var result = getStringHashCode(this.
|
|
830
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
831
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
832
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
833
|
-
result = imul(result, 31) + this.
|
|
834
|
-
result = imul(result, 31) + this.
|
|
835
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
826
|
+
var result = getStringHashCode(this.z7q_1);
|
|
827
|
+
result = imul(result, 31) + getStringHashCode(this.a7r_1) | 0;
|
|
828
|
+
result = imul(result, 31) + getStringHashCode(this.b7r_1) | 0;
|
|
829
|
+
result = imul(result, 31) + getNumberHashCode(this.c7r_1) | 0;
|
|
830
|
+
result = imul(result, 31) + this.d7r_1 | 0;
|
|
831
|
+
result = imul(result, 31) + this.e7r_1 | 0;
|
|
832
|
+
result = imul(result, 31) + getBooleanHashCode(this.f7r_1) | 0;
|
|
836
833
|
return result;
|
|
837
834
|
};
|
|
838
835
|
protoOf(OpenAIConfig).equals = function (other) {
|
|
@@ -840,19 +837,19 @@
|
|
|
840
837
|
return true;
|
|
841
838
|
if (!(other instanceof OpenAIConfig))
|
|
842
839
|
return false;
|
|
843
|
-
if (!(this.
|
|
840
|
+
if (!(this.z7q_1 === other.z7q_1))
|
|
844
841
|
return false;
|
|
845
|
-
if (!(this.
|
|
842
|
+
if (!(this.a7r_1 === other.a7r_1))
|
|
846
843
|
return false;
|
|
847
|
-
if (!(this.
|
|
844
|
+
if (!(this.b7r_1 === other.b7r_1))
|
|
848
845
|
return false;
|
|
849
|
-
if (!equals(this.
|
|
846
|
+
if (!equals(this.c7r_1, other.c7r_1))
|
|
850
847
|
return false;
|
|
851
|
-
if (!(this.
|
|
848
|
+
if (!(this.d7r_1 === other.d7r_1))
|
|
852
849
|
return false;
|
|
853
|
-
if (!(this.
|
|
850
|
+
if (!(this.e7r_1 === other.e7r_1))
|
|
854
851
|
return false;
|
|
855
|
-
if (!(this.
|
|
852
|
+
if (!(this.f7r_1 === other.f7r_1))
|
|
856
853
|
return false;
|
|
857
854
|
return true;
|
|
858
855
|
};
|
|
@@ -866,7 +863,7 @@
|
|
|
866
863
|
// Inline function 'kotlin.arrayOf' call
|
|
867
864
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
868
865
|
// Inline function 'kotlin.js.asDynamic' call
|
|
869
|
-
tmp.
|
|
866
|
+
tmp.v7s_1 = [null, lazy(tmp_0, OpenAIRequest$Companion$$childSerializers$_anonymous__ff5rn1), null, null];
|
|
870
867
|
}
|
|
871
868
|
var Companion_instance_4;
|
|
872
869
|
function Companion_getInstance_3() {
|
|
@@ -877,27 +874,27 @@
|
|
|
877
874
|
function $serializer_1() {
|
|
878
875
|
$serializer_instance_1 = this;
|
|
879
876
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIRequest', this, 4);
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
tmp0_serialDesc.
|
|
883
|
-
tmp0_serialDesc.
|
|
884
|
-
this.
|
|
885
|
-
}
|
|
886
|
-
protoOf($serializer_1).
|
|
887
|
-
var tmp0_desc = this.
|
|
888
|
-
var tmp1_output = encoder.
|
|
889
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
890
|
-
tmp1_output.
|
|
891
|
-
tmp1_output.
|
|
892
|
-
tmp1_output.
|
|
893
|
-
tmp1_output.
|
|
894
|
-
tmp1_output.
|
|
895
|
-
};
|
|
896
|
-
protoOf($serializer_1).
|
|
897
|
-
return this.
|
|
898
|
-
};
|
|
899
|
-
protoOf($serializer_1).
|
|
900
|
-
var tmp0_desc = this.
|
|
877
|
+
tmp0_serialDesc.w11('model', false);
|
|
878
|
+
tmp0_serialDesc.w11('messages', false);
|
|
879
|
+
tmp0_serialDesc.w11('temperature', false);
|
|
880
|
+
tmp0_serialDesc.w11('max_tokens', false);
|
|
881
|
+
this.w7s_1 = tmp0_serialDesc;
|
|
882
|
+
}
|
|
883
|
+
protoOf($serializer_1).x7s = function (encoder, value) {
|
|
884
|
+
var tmp0_desc = this.w7s_1;
|
|
885
|
+
var tmp1_output = encoder.eu(tmp0_desc);
|
|
886
|
+
var tmp2_cached = Companion_getInstance_3().v7s_1;
|
|
887
|
+
tmp1_output.tv(tmp0_desc, 0, value.y7s_1);
|
|
888
|
+
tmp1_output.vv(tmp0_desc, 1, tmp2_cached[1].o1(), value.z7s_1);
|
|
889
|
+
tmp1_output.rv(tmp0_desc, 2, value.a7t_1);
|
|
890
|
+
tmp1_output.ov(tmp0_desc, 3, value.b7t_1);
|
|
891
|
+
tmp1_output.fu(tmp0_desc);
|
|
892
|
+
};
|
|
893
|
+
protoOf($serializer_1).sq = function (encoder, value) {
|
|
894
|
+
return this.x7s(encoder, value instanceof OpenAIRequest ? value : THROW_CCE());
|
|
895
|
+
};
|
|
896
|
+
protoOf($serializer_1).tq = function (decoder) {
|
|
897
|
+
var tmp0_desc = this.w7s_1;
|
|
901
898
|
var tmp1_flag = true;
|
|
902
899
|
var tmp2_index = 0;
|
|
903
900
|
var tmp3_bitMask0 = 0;
|
|
@@ -905,52 +902,52 @@
|
|
|
905
902
|
var tmp5_local1 = null;
|
|
906
903
|
var tmp6_local2 = 0.0;
|
|
907
904
|
var tmp7_local3 = 0;
|
|
908
|
-
var tmp8_input = decoder.
|
|
909
|
-
var tmp9_cached = Companion_getInstance_3().
|
|
910
|
-
if (tmp8_input.
|
|
911
|
-
tmp4_local0 = tmp8_input.
|
|
905
|
+
var tmp8_input = decoder.eu(tmp0_desc);
|
|
906
|
+
var tmp9_cached = Companion_getInstance_3().v7s_1;
|
|
907
|
+
if (tmp8_input.uu()) {
|
|
908
|
+
tmp4_local0 = tmp8_input.ou(tmp0_desc, 0);
|
|
912
909
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
913
|
-
tmp5_local1 = tmp8_input.
|
|
910
|
+
tmp5_local1 = tmp8_input.qu(tmp0_desc, 1, tmp9_cached[1].o1(), tmp5_local1);
|
|
914
911
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
915
|
-
tmp6_local2 = tmp8_input.
|
|
912
|
+
tmp6_local2 = tmp8_input.mu(tmp0_desc, 2);
|
|
916
913
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
917
|
-
tmp7_local3 = tmp8_input.
|
|
914
|
+
tmp7_local3 = tmp8_input.ju(tmp0_desc, 3);
|
|
918
915
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
919
916
|
} else
|
|
920
917
|
while (tmp1_flag) {
|
|
921
|
-
tmp2_index = tmp8_input.
|
|
918
|
+
tmp2_index = tmp8_input.vu(tmp0_desc);
|
|
922
919
|
switch (tmp2_index) {
|
|
923
920
|
case -1:
|
|
924
921
|
tmp1_flag = false;
|
|
925
922
|
break;
|
|
926
923
|
case 0:
|
|
927
|
-
tmp4_local0 = tmp8_input.
|
|
924
|
+
tmp4_local0 = tmp8_input.ou(tmp0_desc, 0);
|
|
928
925
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
929
926
|
break;
|
|
930
927
|
case 1:
|
|
931
|
-
tmp5_local1 = tmp8_input.
|
|
928
|
+
tmp5_local1 = tmp8_input.qu(tmp0_desc, 1, tmp9_cached[1].o1(), tmp5_local1);
|
|
932
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
933
930
|
break;
|
|
934
931
|
case 2:
|
|
935
|
-
tmp6_local2 = tmp8_input.
|
|
932
|
+
tmp6_local2 = tmp8_input.mu(tmp0_desc, 2);
|
|
936
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
937
934
|
break;
|
|
938
935
|
case 3:
|
|
939
|
-
tmp7_local3 = tmp8_input.
|
|
936
|
+
tmp7_local3 = tmp8_input.ju(tmp0_desc, 3);
|
|
940
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
941
938
|
break;
|
|
942
939
|
default:
|
|
943
940
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
944
941
|
}
|
|
945
942
|
}
|
|
946
|
-
tmp8_input.
|
|
943
|
+
tmp8_input.fu(tmp0_desc);
|
|
947
944
|
return OpenAIRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
948
945
|
};
|
|
949
|
-
protoOf($serializer_1).
|
|
950
|
-
return this.
|
|
946
|
+
protoOf($serializer_1).rq = function () {
|
|
947
|
+
return this.w7s_1;
|
|
951
948
|
};
|
|
952
|
-
protoOf($serializer_1).
|
|
953
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
949
|
+
protoOf($serializer_1).l12 = function () {
|
|
950
|
+
var tmp0_cached = Companion_getInstance_3().v7s_1;
|
|
954
951
|
// Inline function 'kotlin.arrayOf' call
|
|
955
952
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
956
953
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -964,12 +961,12 @@
|
|
|
964
961
|
}
|
|
965
962
|
function OpenAIRequest_init_$Init$(seen0, model, messages, temperature, maxTokens, serializationConstructorMarker, $this) {
|
|
966
963
|
if (!(15 === (15 & seen0))) {
|
|
967
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_1().
|
|
964
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_1().w7s_1);
|
|
968
965
|
}
|
|
969
|
-
$this.
|
|
970
|
-
$this.
|
|
971
|
-
$this.
|
|
972
|
-
$this.
|
|
966
|
+
$this.y7s_1 = model;
|
|
967
|
+
$this.z7s_1 = messages;
|
|
968
|
+
$this.a7t_1 = temperature;
|
|
969
|
+
$this.b7t_1 = maxTokens;
|
|
973
970
|
return $this;
|
|
974
971
|
}
|
|
975
972
|
function OpenAIRequest_init_$Create$(seen0, model, messages, temperature, maxTokens, serializationConstructorMarker) {
|
|
@@ -977,19 +974,19 @@
|
|
|
977
974
|
}
|
|
978
975
|
function OpenAIRequest(model, messages, temperature, maxTokens) {
|
|
979
976
|
Companion_getInstance_3();
|
|
980
|
-
this.
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
983
|
-
this.
|
|
977
|
+
this.y7s_1 = model;
|
|
978
|
+
this.z7s_1 = messages;
|
|
979
|
+
this.a7t_1 = temperature;
|
|
980
|
+
this.b7t_1 = maxTokens;
|
|
984
981
|
}
|
|
985
982
|
protoOf(OpenAIRequest).toString = function () {
|
|
986
|
-
return 'OpenAIRequest(model=' + this.
|
|
983
|
+
return 'OpenAIRequest(model=' + this.y7s_1 + ', messages=' + toString(this.z7s_1) + ', temperature=' + this.a7t_1 + ', maxTokens=' + this.b7t_1 + ')';
|
|
987
984
|
};
|
|
988
985
|
protoOf(OpenAIRequest).hashCode = function () {
|
|
989
|
-
var result = getStringHashCode(this.
|
|
990
|
-
result = imul(result, 31) + hashCode(this.
|
|
991
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
992
|
-
result = imul(result, 31) + this.
|
|
986
|
+
var result = getStringHashCode(this.y7s_1);
|
|
987
|
+
result = imul(result, 31) + hashCode(this.z7s_1) | 0;
|
|
988
|
+
result = imul(result, 31) + getNumberHashCode(this.a7t_1) | 0;
|
|
989
|
+
result = imul(result, 31) + this.b7t_1 | 0;
|
|
993
990
|
return result;
|
|
994
991
|
};
|
|
995
992
|
protoOf(OpenAIRequest).equals = function (other) {
|
|
@@ -997,83 +994,83 @@
|
|
|
997
994
|
return true;
|
|
998
995
|
if (!(other instanceof OpenAIRequest))
|
|
999
996
|
return false;
|
|
1000
|
-
if (!(this.
|
|
997
|
+
if (!(this.y7s_1 === other.y7s_1))
|
|
1001
998
|
return false;
|
|
1002
|
-
if (!equals(this.
|
|
999
|
+
if (!equals(this.z7s_1, other.z7s_1))
|
|
1003
1000
|
return false;
|
|
1004
|
-
if (!equals(this.
|
|
1001
|
+
if (!equals(this.a7t_1, other.a7t_1))
|
|
1005
1002
|
return false;
|
|
1006
|
-
if (!(this.
|
|
1003
|
+
if (!(this.b7t_1 === other.b7t_1))
|
|
1007
1004
|
return false;
|
|
1008
1005
|
return true;
|
|
1009
1006
|
};
|
|
1010
1007
|
function $serializer_2() {
|
|
1011
1008
|
$serializer_instance_2 = this;
|
|
1012
1009
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse.Choice', this, 3);
|
|
1013
|
-
tmp0_serialDesc.
|
|
1014
|
-
tmp0_serialDesc.
|
|
1015
|
-
tmp0_serialDesc.
|
|
1016
|
-
this.
|
|
1017
|
-
}
|
|
1018
|
-
protoOf($serializer_2).
|
|
1019
|
-
var tmp0_desc = this.
|
|
1020
|
-
var tmp1_output = encoder.
|
|
1021
|
-
tmp1_output.
|
|
1022
|
-
tmp1_output.
|
|
1023
|
-
if (tmp1_output.
|
|
1024
|
-
tmp1_output.
|
|
1010
|
+
tmp0_serialDesc.w11('index', false);
|
|
1011
|
+
tmp0_serialDesc.w11('message', false);
|
|
1012
|
+
tmp0_serialDesc.w11('finish_reason', true);
|
|
1013
|
+
this.c7t_1 = tmp0_serialDesc;
|
|
1014
|
+
}
|
|
1015
|
+
protoOf($serializer_2).d7t = function (encoder, value) {
|
|
1016
|
+
var tmp0_desc = this.c7t_1;
|
|
1017
|
+
var tmp1_output = encoder.eu(tmp0_desc);
|
|
1018
|
+
tmp1_output.ov(tmp0_desc, 0, value.e7t_1);
|
|
1019
|
+
tmp1_output.vv(tmp0_desc, 1, $serializer_getInstance_0(), value.f7t_1);
|
|
1020
|
+
if (tmp1_output.bw(tmp0_desc, 2) ? true : !(value.g7t_1 == null)) {
|
|
1021
|
+
tmp1_output.xv(tmp0_desc, 2, StringSerializer_getInstance(), value.g7t_1);
|
|
1025
1022
|
}
|
|
1026
|
-
tmp1_output.
|
|
1023
|
+
tmp1_output.fu(tmp0_desc);
|
|
1027
1024
|
};
|
|
1028
|
-
protoOf($serializer_2).
|
|
1029
|
-
return this.
|
|
1025
|
+
protoOf($serializer_2).sq = function (encoder, value) {
|
|
1026
|
+
return this.d7t(encoder, value instanceof Choice ? value : THROW_CCE());
|
|
1030
1027
|
};
|
|
1031
|
-
protoOf($serializer_2).
|
|
1032
|
-
var tmp0_desc = this.
|
|
1028
|
+
protoOf($serializer_2).tq = function (decoder) {
|
|
1029
|
+
var tmp0_desc = this.c7t_1;
|
|
1033
1030
|
var tmp1_flag = true;
|
|
1034
1031
|
var tmp2_index = 0;
|
|
1035
1032
|
var tmp3_bitMask0 = 0;
|
|
1036
1033
|
var tmp4_local0 = 0;
|
|
1037
1034
|
var tmp5_local1 = null;
|
|
1038
1035
|
var tmp6_local2 = null;
|
|
1039
|
-
var tmp7_input = decoder.
|
|
1040
|
-
if (tmp7_input.
|
|
1041
|
-
tmp4_local0 = tmp7_input.
|
|
1036
|
+
var tmp7_input = decoder.eu(tmp0_desc);
|
|
1037
|
+
if (tmp7_input.uu()) {
|
|
1038
|
+
tmp4_local0 = tmp7_input.ju(tmp0_desc, 0);
|
|
1042
1039
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1043
|
-
tmp5_local1 = tmp7_input.
|
|
1040
|
+
tmp5_local1 = tmp7_input.qu(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
1044
1041
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1045
|
-
tmp6_local2 = tmp7_input.
|
|
1042
|
+
tmp6_local2 = tmp7_input.su(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1046
1043
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1047
1044
|
} else
|
|
1048
1045
|
while (tmp1_flag) {
|
|
1049
|
-
tmp2_index = tmp7_input.
|
|
1046
|
+
tmp2_index = tmp7_input.vu(tmp0_desc);
|
|
1050
1047
|
switch (tmp2_index) {
|
|
1051
1048
|
case -1:
|
|
1052
1049
|
tmp1_flag = false;
|
|
1053
1050
|
break;
|
|
1054
1051
|
case 0:
|
|
1055
|
-
tmp4_local0 = tmp7_input.
|
|
1052
|
+
tmp4_local0 = tmp7_input.ju(tmp0_desc, 0);
|
|
1056
1053
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1057
1054
|
break;
|
|
1058
1055
|
case 1:
|
|
1059
|
-
tmp5_local1 = tmp7_input.
|
|
1056
|
+
tmp5_local1 = tmp7_input.qu(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
1060
1057
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1061
1058
|
break;
|
|
1062
1059
|
case 2:
|
|
1063
|
-
tmp6_local2 = tmp7_input.
|
|
1060
|
+
tmp6_local2 = tmp7_input.su(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1064
1061
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1065
1062
|
break;
|
|
1066
1063
|
default:
|
|
1067
1064
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1068
1065
|
}
|
|
1069
1066
|
}
|
|
1070
|
-
tmp7_input.
|
|
1067
|
+
tmp7_input.fu(tmp0_desc);
|
|
1071
1068
|
return Choice_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1072
1069
|
};
|
|
1073
|
-
protoOf($serializer_2).
|
|
1074
|
-
return this.
|
|
1070
|
+
protoOf($serializer_2).rq = function () {
|
|
1071
|
+
return this.c7t_1;
|
|
1075
1072
|
};
|
|
1076
|
-
protoOf($serializer_2).
|
|
1073
|
+
protoOf($serializer_2).l12 = function () {
|
|
1077
1074
|
// Inline function 'kotlin.arrayOf' call
|
|
1078
1075
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1079
1076
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1087,14 +1084,14 @@
|
|
|
1087
1084
|
}
|
|
1088
1085
|
function Choice_init_$Init$(seen0, index, message, finishReason, serializationConstructorMarker, $this) {
|
|
1089
1086
|
if (!(3 === (3 & seen0))) {
|
|
1090
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1087
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().c7t_1);
|
|
1091
1088
|
}
|
|
1092
|
-
$this.
|
|
1093
|
-
$this.
|
|
1089
|
+
$this.e7t_1 = index;
|
|
1090
|
+
$this.f7t_1 = message;
|
|
1094
1091
|
if (0 === (seen0 & 4))
|
|
1095
|
-
$this.
|
|
1092
|
+
$this.g7t_1 = null;
|
|
1096
1093
|
else
|
|
1097
|
-
$this.
|
|
1094
|
+
$this.g7t_1 = finishReason;
|
|
1098
1095
|
return $this;
|
|
1099
1096
|
}
|
|
1100
1097
|
function Choice_init_$Create$(seen0, index, message, finishReason, serializationConstructorMarker) {
|
|
@@ -1103,68 +1100,68 @@
|
|
|
1103
1100
|
function $serializer_3() {
|
|
1104
1101
|
$serializer_instance_3 = this;
|
|
1105
1102
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse.Usage', this, 3);
|
|
1106
|
-
tmp0_serialDesc.
|
|
1107
|
-
tmp0_serialDesc.
|
|
1108
|
-
tmp0_serialDesc.
|
|
1109
|
-
this.
|
|
1110
|
-
}
|
|
1111
|
-
protoOf($serializer_3).
|
|
1112
|
-
var tmp0_desc = this.
|
|
1113
|
-
var tmp1_output = encoder.
|
|
1114
|
-
tmp1_output.
|
|
1115
|
-
tmp1_output.
|
|
1116
|
-
tmp1_output.
|
|
1117
|
-
tmp1_output.
|
|
1118
|
-
};
|
|
1119
|
-
protoOf($serializer_3).
|
|
1120
|
-
return this.
|
|
1121
|
-
};
|
|
1122
|
-
protoOf($serializer_3).
|
|
1123
|
-
var tmp0_desc = this.
|
|
1103
|
+
tmp0_serialDesc.w11('prompt_tokens', false);
|
|
1104
|
+
tmp0_serialDesc.w11('completion_tokens', false);
|
|
1105
|
+
tmp0_serialDesc.w11('total_tokens', false);
|
|
1106
|
+
this.h7t_1 = tmp0_serialDesc;
|
|
1107
|
+
}
|
|
1108
|
+
protoOf($serializer_3).i7t = function (encoder, value) {
|
|
1109
|
+
var tmp0_desc = this.h7t_1;
|
|
1110
|
+
var tmp1_output = encoder.eu(tmp0_desc);
|
|
1111
|
+
tmp1_output.ov(tmp0_desc, 0, value.j7t_1);
|
|
1112
|
+
tmp1_output.ov(tmp0_desc, 1, value.k7t_1);
|
|
1113
|
+
tmp1_output.ov(tmp0_desc, 2, value.l7t_1);
|
|
1114
|
+
tmp1_output.fu(tmp0_desc);
|
|
1115
|
+
};
|
|
1116
|
+
protoOf($serializer_3).sq = function (encoder, value) {
|
|
1117
|
+
return this.i7t(encoder, value instanceof Usage ? value : THROW_CCE());
|
|
1118
|
+
};
|
|
1119
|
+
protoOf($serializer_3).tq = function (decoder) {
|
|
1120
|
+
var tmp0_desc = this.h7t_1;
|
|
1124
1121
|
var tmp1_flag = true;
|
|
1125
1122
|
var tmp2_index = 0;
|
|
1126
1123
|
var tmp3_bitMask0 = 0;
|
|
1127
1124
|
var tmp4_local0 = 0;
|
|
1128
1125
|
var tmp5_local1 = 0;
|
|
1129
1126
|
var tmp6_local2 = 0;
|
|
1130
|
-
var tmp7_input = decoder.
|
|
1131
|
-
if (tmp7_input.
|
|
1132
|
-
tmp4_local0 = tmp7_input.
|
|
1127
|
+
var tmp7_input = decoder.eu(tmp0_desc);
|
|
1128
|
+
if (tmp7_input.uu()) {
|
|
1129
|
+
tmp4_local0 = tmp7_input.ju(tmp0_desc, 0);
|
|
1133
1130
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1134
|
-
tmp5_local1 = tmp7_input.
|
|
1131
|
+
tmp5_local1 = tmp7_input.ju(tmp0_desc, 1);
|
|
1135
1132
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1136
|
-
tmp6_local2 = tmp7_input.
|
|
1133
|
+
tmp6_local2 = tmp7_input.ju(tmp0_desc, 2);
|
|
1137
1134
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1138
1135
|
} else
|
|
1139
1136
|
while (tmp1_flag) {
|
|
1140
|
-
tmp2_index = tmp7_input.
|
|
1137
|
+
tmp2_index = tmp7_input.vu(tmp0_desc);
|
|
1141
1138
|
switch (tmp2_index) {
|
|
1142
1139
|
case -1:
|
|
1143
1140
|
tmp1_flag = false;
|
|
1144
1141
|
break;
|
|
1145
1142
|
case 0:
|
|
1146
|
-
tmp4_local0 = tmp7_input.
|
|
1143
|
+
tmp4_local0 = tmp7_input.ju(tmp0_desc, 0);
|
|
1147
1144
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1148
1145
|
break;
|
|
1149
1146
|
case 1:
|
|
1150
|
-
tmp5_local1 = tmp7_input.
|
|
1147
|
+
tmp5_local1 = tmp7_input.ju(tmp0_desc, 1);
|
|
1151
1148
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1152
1149
|
break;
|
|
1153
1150
|
case 2:
|
|
1154
|
-
tmp6_local2 = tmp7_input.
|
|
1151
|
+
tmp6_local2 = tmp7_input.ju(tmp0_desc, 2);
|
|
1155
1152
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1156
1153
|
break;
|
|
1157
1154
|
default:
|
|
1158
1155
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1159
1156
|
}
|
|
1160
1157
|
}
|
|
1161
|
-
tmp7_input.
|
|
1158
|
+
tmp7_input.fu(tmp0_desc);
|
|
1162
1159
|
return Usage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1163
1160
|
};
|
|
1164
|
-
protoOf($serializer_3).
|
|
1165
|
-
return this.
|
|
1161
|
+
protoOf($serializer_3).rq = function () {
|
|
1162
|
+
return this.h7t_1;
|
|
1166
1163
|
};
|
|
1167
|
-
protoOf($serializer_3).
|
|
1164
|
+
protoOf($serializer_3).l12 = function () {
|
|
1168
1165
|
// Inline function 'kotlin.arrayOf' call
|
|
1169
1166
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1170
1167
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1178,11 +1175,11 @@
|
|
|
1178
1175
|
}
|
|
1179
1176
|
function Usage_init_$Init$(seen0, promptTokens, completionTokens, totalTokens, serializationConstructorMarker, $this) {
|
|
1180
1177
|
if (!(7 === (7 & seen0))) {
|
|
1181
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().
|
|
1178
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().h7t_1);
|
|
1182
1179
|
}
|
|
1183
|
-
$this.
|
|
1184
|
-
$this.
|
|
1185
|
-
$this.
|
|
1180
|
+
$this.j7t_1 = promptTokens;
|
|
1181
|
+
$this.k7t_1 = completionTokens;
|
|
1182
|
+
$this.l7t_1 = totalTokens;
|
|
1186
1183
|
return $this;
|
|
1187
1184
|
}
|
|
1188
1185
|
function Usage_init_$Create$(seen0, promptTokens, completionTokens, totalTokens, serializationConstructorMarker) {
|
|
@@ -1194,12 +1191,12 @@
|
|
|
1194
1191
|
function Choice() {
|
|
1195
1192
|
}
|
|
1196
1193
|
protoOf(Choice).toString = function () {
|
|
1197
|
-
return 'Choice(index=' + this.
|
|
1194
|
+
return 'Choice(index=' + this.e7t_1 + ', message=' + this.f7t_1.toString() + ', finishReason=' + this.g7t_1 + ')';
|
|
1198
1195
|
};
|
|
1199
1196
|
protoOf(Choice).hashCode = function () {
|
|
1200
|
-
var result = this.
|
|
1201
|
-
result = imul(result, 31) + this.
|
|
1202
|
-
result = imul(result, 31) + (this.
|
|
1197
|
+
var result = this.e7t_1;
|
|
1198
|
+
result = imul(result, 31) + this.f7t_1.hashCode() | 0;
|
|
1199
|
+
result = imul(result, 31) + (this.g7t_1 == null ? 0 : getStringHashCode(this.g7t_1)) | 0;
|
|
1203
1200
|
return result;
|
|
1204
1201
|
};
|
|
1205
1202
|
protoOf(Choice).equals = function (other) {
|
|
@@ -1207,23 +1204,23 @@
|
|
|
1207
1204
|
return true;
|
|
1208
1205
|
if (!(other instanceof Choice))
|
|
1209
1206
|
return false;
|
|
1210
|
-
if (!(this.
|
|
1207
|
+
if (!(this.e7t_1 === other.e7t_1))
|
|
1211
1208
|
return false;
|
|
1212
|
-
if (!this.
|
|
1209
|
+
if (!this.f7t_1.equals(other.f7t_1))
|
|
1213
1210
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1211
|
+
if (!(this.g7t_1 == other.g7t_1))
|
|
1215
1212
|
return false;
|
|
1216
1213
|
return true;
|
|
1217
1214
|
};
|
|
1218
1215
|
function Usage() {
|
|
1219
1216
|
}
|
|
1220
1217
|
protoOf(Usage).toString = function () {
|
|
1221
|
-
return 'Usage(promptTokens=' + this.
|
|
1218
|
+
return 'Usage(promptTokens=' + this.j7t_1 + ', completionTokens=' + this.k7t_1 + ', totalTokens=' + this.l7t_1 + ')';
|
|
1222
1219
|
};
|
|
1223
1220
|
protoOf(Usage).hashCode = function () {
|
|
1224
|
-
var result = this.
|
|
1225
|
-
result = imul(result, 31) + this.
|
|
1226
|
-
result = imul(result, 31) + this.
|
|
1221
|
+
var result = this.j7t_1;
|
|
1222
|
+
result = imul(result, 31) + this.k7t_1 | 0;
|
|
1223
|
+
result = imul(result, 31) + this.l7t_1 | 0;
|
|
1227
1224
|
return result;
|
|
1228
1225
|
};
|
|
1229
1226
|
protoOf(Usage).equals = function (other) {
|
|
@@ -1231,11 +1228,11 @@
|
|
|
1231
1228
|
return true;
|
|
1232
1229
|
if (!(other instanceof Usage))
|
|
1233
1230
|
return false;
|
|
1234
|
-
if (!(this.
|
|
1231
|
+
if (!(this.j7t_1 === other.j7t_1))
|
|
1235
1232
|
return false;
|
|
1236
|
-
if (!(this.
|
|
1233
|
+
if (!(this.k7t_1 === other.k7t_1))
|
|
1237
1234
|
return false;
|
|
1238
|
-
if (!(this.
|
|
1235
|
+
if (!(this.l7t_1 === other.l7t_1))
|
|
1239
1236
|
return false;
|
|
1240
1237
|
return true;
|
|
1241
1238
|
};
|
|
@@ -1246,7 +1243,7 @@
|
|
|
1246
1243
|
// Inline function 'kotlin.arrayOf' call
|
|
1247
1244
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1248
1245
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1249
|
-
tmp.
|
|
1246
|
+
tmp.m7t_1 = [null, null, null, null, lazy(tmp_0, OpenAIResponse$Companion$$childSerializers$_anonymous__z8nlex), null];
|
|
1250
1247
|
}
|
|
1251
1248
|
var Companion_instance_5;
|
|
1252
1249
|
function Companion_getInstance_4() {
|
|
@@ -1257,33 +1254,33 @@
|
|
|
1257
1254
|
function $serializer_4() {
|
|
1258
1255
|
$serializer_instance_4 = this;
|
|
1259
1256
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse', this, 6);
|
|
1260
|
-
tmp0_serialDesc.
|
|
1261
|
-
tmp0_serialDesc.
|
|
1262
|
-
tmp0_serialDesc.
|
|
1263
|
-
tmp0_serialDesc.
|
|
1264
|
-
tmp0_serialDesc.
|
|
1265
|
-
tmp0_serialDesc.
|
|
1266
|
-
this.
|
|
1267
|
-
}
|
|
1268
|
-
protoOf($serializer_4).
|
|
1269
|
-
var tmp0_desc = this.
|
|
1270
|
-
var tmp1_output = encoder.
|
|
1271
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
1272
|
-
tmp1_output.
|
|
1273
|
-
tmp1_output.
|
|
1274
|
-
tmp1_output.
|
|
1275
|
-
tmp1_output.
|
|
1276
|
-
tmp1_output.
|
|
1277
|
-
if (tmp1_output.
|
|
1278
|
-
tmp1_output.
|
|
1257
|
+
tmp0_serialDesc.w11('id', false);
|
|
1258
|
+
tmp0_serialDesc.w11('object', false);
|
|
1259
|
+
tmp0_serialDesc.w11('created', false);
|
|
1260
|
+
tmp0_serialDesc.w11('model', false);
|
|
1261
|
+
tmp0_serialDesc.w11('choices', false);
|
|
1262
|
+
tmp0_serialDesc.w11('usage', true);
|
|
1263
|
+
this.n7t_1 = tmp0_serialDesc;
|
|
1264
|
+
}
|
|
1265
|
+
protoOf($serializer_4).o7t = function (encoder, value) {
|
|
1266
|
+
var tmp0_desc = this.n7t_1;
|
|
1267
|
+
var tmp1_output = encoder.eu(tmp0_desc);
|
|
1268
|
+
var tmp2_cached = Companion_getInstance_4().m7t_1;
|
|
1269
|
+
tmp1_output.tv(tmp0_desc, 0, value.p7t_1);
|
|
1270
|
+
tmp1_output.tv(tmp0_desc, 1, value.q7t_1);
|
|
1271
|
+
tmp1_output.pv(tmp0_desc, 2, value.r7t_1);
|
|
1272
|
+
tmp1_output.tv(tmp0_desc, 3, value.s7t_1);
|
|
1273
|
+
tmp1_output.vv(tmp0_desc, 4, tmp2_cached[4].o1(), value.t7t_1);
|
|
1274
|
+
if (tmp1_output.bw(tmp0_desc, 5) ? true : !(value.u7t_1 == null)) {
|
|
1275
|
+
tmp1_output.xv(tmp0_desc, 5, $serializer_getInstance_3(), value.u7t_1);
|
|
1279
1276
|
}
|
|
1280
|
-
tmp1_output.
|
|
1277
|
+
tmp1_output.fu(tmp0_desc);
|
|
1281
1278
|
};
|
|
1282
|
-
protoOf($serializer_4).
|
|
1283
|
-
return this.
|
|
1279
|
+
protoOf($serializer_4).sq = function (encoder, value) {
|
|
1280
|
+
return this.o7t(encoder, value instanceof OpenAIResponse ? value : THROW_CCE());
|
|
1284
1281
|
};
|
|
1285
|
-
protoOf($serializer_4).
|
|
1286
|
-
var tmp0_desc = this.
|
|
1282
|
+
protoOf($serializer_4).tq = function (decoder) {
|
|
1283
|
+
var tmp0_desc = this.n7t_1;
|
|
1287
1284
|
var tmp1_flag = true;
|
|
1288
1285
|
var tmp2_index = 0;
|
|
1289
1286
|
var tmp3_bitMask0 = 0;
|
|
@@ -1293,64 +1290,64 @@
|
|
|
1293
1290
|
var tmp7_local3 = null;
|
|
1294
1291
|
var tmp8_local4 = null;
|
|
1295
1292
|
var tmp9_local5 = null;
|
|
1296
|
-
var tmp10_input = decoder.
|
|
1297
|
-
var tmp11_cached = Companion_getInstance_4().
|
|
1298
|
-
if (tmp10_input.
|
|
1299
|
-
tmp4_local0 = tmp10_input.
|
|
1293
|
+
var tmp10_input = decoder.eu(tmp0_desc);
|
|
1294
|
+
var tmp11_cached = Companion_getInstance_4().m7t_1;
|
|
1295
|
+
if (tmp10_input.uu()) {
|
|
1296
|
+
tmp4_local0 = tmp10_input.ou(tmp0_desc, 0);
|
|
1300
1297
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1301
|
-
tmp5_local1 = tmp10_input.
|
|
1298
|
+
tmp5_local1 = tmp10_input.ou(tmp0_desc, 1);
|
|
1302
1299
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1303
|
-
tmp6_local2 = tmp10_input.
|
|
1300
|
+
tmp6_local2 = tmp10_input.ku(tmp0_desc, 2);
|
|
1304
1301
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1305
|
-
tmp7_local3 = tmp10_input.
|
|
1302
|
+
tmp7_local3 = tmp10_input.ou(tmp0_desc, 3);
|
|
1306
1303
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1307
|
-
tmp8_local4 = tmp10_input.
|
|
1304
|
+
tmp8_local4 = tmp10_input.qu(tmp0_desc, 4, tmp11_cached[4].o1(), tmp8_local4);
|
|
1308
1305
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1309
|
-
tmp9_local5 = tmp10_input.
|
|
1306
|
+
tmp9_local5 = tmp10_input.su(tmp0_desc, 5, $serializer_getInstance_3(), tmp9_local5);
|
|
1310
1307
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1311
1308
|
} else
|
|
1312
1309
|
while (tmp1_flag) {
|
|
1313
|
-
tmp2_index = tmp10_input.
|
|
1310
|
+
tmp2_index = tmp10_input.vu(tmp0_desc);
|
|
1314
1311
|
switch (tmp2_index) {
|
|
1315
1312
|
case -1:
|
|
1316
1313
|
tmp1_flag = false;
|
|
1317
1314
|
break;
|
|
1318
1315
|
case 0:
|
|
1319
|
-
tmp4_local0 = tmp10_input.
|
|
1316
|
+
tmp4_local0 = tmp10_input.ou(tmp0_desc, 0);
|
|
1320
1317
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1321
1318
|
break;
|
|
1322
1319
|
case 1:
|
|
1323
|
-
tmp5_local1 = tmp10_input.
|
|
1320
|
+
tmp5_local1 = tmp10_input.ou(tmp0_desc, 1);
|
|
1324
1321
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1325
1322
|
break;
|
|
1326
1323
|
case 2:
|
|
1327
|
-
tmp6_local2 = tmp10_input.
|
|
1324
|
+
tmp6_local2 = tmp10_input.ku(tmp0_desc, 2);
|
|
1328
1325
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1329
1326
|
break;
|
|
1330
1327
|
case 3:
|
|
1331
|
-
tmp7_local3 = tmp10_input.
|
|
1328
|
+
tmp7_local3 = tmp10_input.ou(tmp0_desc, 3);
|
|
1332
1329
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1333
1330
|
break;
|
|
1334
1331
|
case 4:
|
|
1335
|
-
tmp8_local4 = tmp10_input.
|
|
1332
|
+
tmp8_local4 = tmp10_input.qu(tmp0_desc, 4, tmp11_cached[4].o1(), tmp8_local4);
|
|
1336
1333
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1337
1334
|
break;
|
|
1338
1335
|
case 5:
|
|
1339
|
-
tmp9_local5 = tmp10_input.
|
|
1336
|
+
tmp9_local5 = tmp10_input.su(tmp0_desc, 5, $serializer_getInstance_3(), tmp9_local5);
|
|
1340
1337
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1341
1338
|
break;
|
|
1342
1339
|
default:
|
|
1343
1340
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1344
1341
|
}
|
|
1345
1342
|
}
|
|
1346
|
-
tmp10_input.
|
|
1343
|
+
tmp10_input.fu(tmp0_desc);
|
|
1347
1344
|
return OpenAIResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1348
1345
|
};
|
|
1349
|
-
protoOf($serializer_4).
|
|
1350
|
-
return this.
|
|
1346
|
+
protoOf($serializer_4).rq = function () {
|
|
1347
|
+
return this.n7t_1;
|
|
1351
1348
|
};
|
|
1352
|
-
protoOf($serializer_4).
|
|
1353
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
1349
|
+
protoOf($serializer_4).l12 = function () {
|
|
1350
|
+
var tmp0_cached = Companion_getInstance_4().m7t_1;
|
|
1354
1351
|
// Inline function 'kotlin.arrayOf' call
|
|
1355
1352
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1356
1353
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1364,17 +1361,17 @@
|
|
|
1364
1361
|
}
|
|
1365
1362
|
function OpenAIResponse_init_$Init$(seen0, id, objectType, created, model, choices, usage, serializationConstructorMarker, $this) {
|
|
1366
1363
|
if (!(31 === (31 & seen0))) {
|
|
1367
|
-
throwMissingFieldException(seen0, 31, $serializer_getInstance_4().
|
|
1364
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_4().n7t_1);
|
|
1368
1365
|
}
|
|
1369
|
-
$this.
|
|
1370
|
-
$this.
|
|
1371
|
-
$this.
|
|
1372
|
-
$this.
|
|
1373
|
-
$this.
|
|
1366
|
+
$this.p7t_1 = id;
|
|
1367
|
+
$this.q7t_1 = objectType;
|
|
1368
|
+
$this.r7t_1 = created;
|
|
1369
|
+
$this.s7t_1 = model;
|
|
1370
|
+
$this.t7t_1 = choices;
|
|
1374
1371
|
if (0 === (seen0 & 32))
|
|
1375
|
-
$this.
|
|
1372
|
+
$this.u7t_1 = null;
|
|
1376
1373
|
else
|
|
1377
|
-
$this.
|
|
1374
|
+
$this.u7t_1 = usage;
|
|
1378
1375
|
return $this;
|
|
1379
1376
|
}
|
|
1380
1377
|
function OpenAIResponse_init_$Create$(seen0, id, objectType, created, model, choices, usage, serializationConstructorMarker) {
|
|
@@ -1383,23 +1380,23 @@
|
|
|
1383
1380
|
function OpenAIResponse(id, objectType, created, model, choices, usage) {
|
|
1384
1381
|
Companion_getInstance_4();
|
|
1385
1382
|
usage = usage === VOID ? null : usage;
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1383
|
+
this.p7t_1 = id;
|
|
1384
|
+
this.q7t_1 = objectType;
|
|
1385
|
+
this.r7t_1 = created;
|
|
1386
|
+
this.s7t_1 = model;
|
|
1387
|
+
this.t7t_1 = choices;
|
|
1388
|
+
this.u7t_1 = usage;
|
|
1392
1389
|
}
|
|
1393
1390
|
protoOf(OpenAIResponse).toString = function () {
|
|
1394
|
-
return 'OpenAIResponse(id=' + this.
|
|
1391
|
+
return 'OpenAIResponse(id=' + this.p7t_1 + ', objectType=' + this.q7t_1 + ', created=' + this.r7t_1.toString() + ', model=' + this.s7t_1 + ', choices=' + toString(this.t7t_1) + ', usage=' + toString_0(this.u7t_1) + ')';
|
|
1395
1392
|
};
|
|
1396
1393
|
protoOf(OpenAIResponse).hashCode = function () {
|
|
1397
|
-
var result = getStringHashCode(this.
|
|
1398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1399
|
-
result = imul(result, 31) + this.
|
|
1400
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1401
|
-
result = imul(result, 31) + hashCode(this.
|
|
1402
|
-
result = imul(result, 31) + (this.
|
|
1394
|
+
var result = getStringHashCode(this.p7t_1);
|
|
1395
|
+
result = imul(result, 31) + getStringHashCode(this.q7t_1) | 0;
|
|
1396
|
+
result = imul(result, 31) + this.r7t_1.hashCode() | 0;
|
|
1397
|
+
result = imul(result, 31) + getStringHashCode(this.s7t_1) | 0;
|
|
1398
|
+
result = imul(result, 31) + hashCode(this.t7t_1) | 0;
|
|
1399
|
+
result = imul(result, 31) + (this.u7t_1 == null ? 0 : this.u7t_1.hashCode()) | 0;
|
|
1403
1400
|
return result;
|
|
1404
1401
|
};
|
|
1405
1402
|
protoOf(OpenAIResponse).equals = function (other) {
|
|
@@ -1407,24 +1404,24 @@
|
|
|
1407
1404
|
return true;
|
|
1408
1405
|
if (!(other instanceof OpenAIResponse))
|
|
1409
1406
|
return false;
|
|
1410
|
-
if (!(this.
|
|
1407
|
+
if (!(this.p7t_1 === other.p7t_1))
|
|
1411
1408
|
return false;
|
|
1412
|
-
if (!(this.
|
|
1409
|
+
if (!(this.q7t_1 === other.q7t_1))
|
|
1413
1410
|
return false;
|
|
1414
|
-
if (!equalsLong(this.
|
|
1411
|
+
if (!equalsLong(this.r7t_1, other.r7t_1))
|
|
1415
1412
|
return false;
|
|
1416
|
-
if (!(this.
|
|
1413
|
+
if (!(this.s7t_1 === other.s7t_1))
|
|
1417
1414
|
return false;
|
|
1418
|
-
if (!equals(this.
|
|
1415
|
+
if (!equals(this.t7t_1, other.t7t_1))
|
|
1419
1416
|
return false;
|
|
1420
|
-
if (!equals(this.
|
|
1417
|
+
if (!equals(this.u7t_1, other.u7t_1))
|
|
1421
1418
|
return false;
|
|
1422
1419
|
return true;
|
|
1423
1420
|
};
|
|
1424
1421
|
function $executeRequestCOROUTINE$(_this__u8e3s4, messages, resultContinuation) {
|
|
1425
1422
|
CoroutineImpl.call(this, resultContinuation);
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1423
|
+
this.d7u_1 = _this__u8e3s4;
|
|
1424
|
+
this.e7u_1 = messages;
|
|
1428
1425
|
}
|
|
1429
1426
|
protoOf($executeRequestCOROUTINE$).q9 = function () {
|
|
1430
1427
|
var suspendResult = this.k9_1;
|
|
@@ -1435,7 +1432,7 @@
|
|
|
1435
1432
|
case 0:
|
|
1436
1433
|
this.j9_1 = 3;
|
|
1437
1434
|
this.i9_1 = 1;
|
|
1438
|
-
suspendResult = this.
|
|
1435
|
+
suspendResult = this.d7u_1.f7u_1.y7q(this.e7u_1, this);
|
|
1439
1436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1440
1437
|
return suspendResult;
|
|
1441
1438
|
}
|
|
@@ -1443,23 +1440,23 @@
|
|
|
1443
1440
|
this.i9_1 = 2;
|
|
1444
1441
|
continue $sm;
|
|
1445
1442
|
case 1:
|
|
1446
|
-
var unboxed = suspendResult.
|
|
1443
|
+
var unboxed = suspendResult.ko_1;
|
|
1447
1444
|
suspendResult = new Result(unboxed);
|
|
1448
1445
|
this.i9_1 = 2;
|
|
1449
1446
|
continue $sm;
|
|
1450
1447
|
case 2:
|
|
1451
|
-
var this_0 = suspendResult.
|
|
1448
|
+
var this_0 = suspendResult.ko_1;
|
|
1452
1449
|
var tmp_0;
|
|
1453
1450
|
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
1454
1451
|
var this_1 = new Result(this_0);
|
|
1455
1452
|
var tmp_1;
|
|
1456
1453
|
try {
|
|
1457
|
-
var $this$runCatching = this_1.
|
|
1454
|
+
var $this$runCatching = this_1.ko_1;
|
|
1458
1455
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1459
1456
|
var response = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1460
|
-
var tmp0_safe_receiver = firstOrNull(response.
|
|
1461
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1462
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1457
|
+
var tmp0_safe_receiver = firstOrNull(response.t7t_1);
|
|
1458
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f7t_1;
|
|
1459
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7s_1;
|
|
1463
1460
|
var tmp_3;
|
|
1464
1461
|
if (tmp2_elvis_lhs == null) {
|
|
1465
1462
|
throw IllegalStateException_init_$Create$('No response from OpenAI');
|
|
@@ -1499,9 +1496,9 @@
|
|
|
1499
1496
|
while (true);
|
|
1500
1497
|
};
|
|
1501
1498
|
function BaseOpenAIRepository(openAIApi) {
|
|
1502
|
-
this.
|
|
1499
|
+
this.f7u_1 = openAIApi;
|
|
1503
1500
|
}
|
|
1504
|
-
protoOf(BaseOpenAIRepository).
|
|
1501
|
+
protoOf(BaseOpenAIRepository).g7u = function (messages, $completion) {
|
|
1505
1502
|
var tmp = new $executeRequestCOROUTINE$(this, messages, $completion);
|
|
1506
1503
|
tmp.k9_1 = Unit_instance;
|
|
1507
1504
|
tmp.l9_1 = null;
|
|
@@ -1533,9 +1530,11 @@
|
|
|
1533
1530
|
// Inline function 'kotlin.let' call
|
|
1534
1531
|
this_0.uc(getStringHashCode(take(message, 50))).q(':');
|
|
1535
1532
|
}
|
|
1536
|
-
this_0.uc(getStringHashCode(context.
|
|
1533
|
+
this_0.uc(getStringHashCode(context.j7s_1));
|
|
1534
|
+
this_0.q(':');
|
|
1535
|
+
this_0.uc(getStringHashCode(context.k7s_1));
|
|
1537
1536
|
this_0.q(':');
|
|
1538
|
-
this_0.uc(
|
|
1537
|
+
this_0.uc(hashCode(takeLast(context.l7s_1, 5)));
|
|
1539
1538
|
var key = this_0.toString();
|
|
1540
1539
|
return key;
|
|
1541
1540
|
}
|
|
@@ -1546,25 +1545,30 @@
|
|
|
1546
1545
|
// Inline function 'kotlin.text.buildString' call
|
|
1547
1546
|
// Inline function 'kotlin.apply' call
|
|
1548
1547
|
var this_0 = StringBuilder_init_$Create$();
|
|
1549
|
-
this_0.q('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438');
|
|
1548
|
+
this_0.q('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438\n- \u0423\u041D\u0418\u041A\u0410\u0419 \u0448\u0430\u0431\u043B\u043E\u043D\u043D\u0438\u0445/\u0431\u043E\u0442\u0456\u0432\u0441\u044C\u043A\u0438\u0445 \u0444\u0440\u0430\u0437: "\u0433\u0440\u0430\u0454\u043C\u043E \u0434\u0430\u043B\u0456", "\u0433\u0440\u0430\u0439 \u0434\u0430\u043B\u0456", "\u0434\u0430\u0432\u0430\u0439 \u0434\u0430\u043B\u0456", "\u043F\u043E\u0433\u043D\u0430\u043B\u0438 \u0434\u0430\u043B\u0456", "\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439", "\u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439", "\u0433\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435" \u2014 \u0437\u0432\u0443\u0447\u0438\u0442\u044C \u044F\u043A \u0431\u043E\u0442\n- \u041A\u043E\u0436\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u041E\u0420\u0418\u0413\u0406\u041D\u0410\u041B\u042C\u041D\u041E\u042E; \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044E\u0439 \u0444\u0440\u0430\u0437\u0438, \u044F\u043A\u0456 \u0432\u0436\u0435 \u0437\u0432\u0443\u0447\u0430\u043B\u0438 \u0443 \u0447\u0430\u0442\u0456\n- \u042F\u043A\u0449\u043E \u0443 \u0447\u0430\u0442\u0456 \u0437\u0432\u0435\u0440\u0442\u0430\u044E\u0442\u044C\u0441\u044F \u043D\u0435 \u0434\u043E \u0442\u0435\u0431\u0435 \u2014 \u043C\u043E\u0432\u0447\u0438 (\u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0442\u0456\u043B\u044C\u043A\u0438 \u043A\u043E\u043B\u0438 \u0441\u043F\u0438\u0442\u0430\u043B\u0438 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u043E, \u0430\u0431\u043E \u044F\u043A\u0449\u043E \u0442\u0435\u0431\u0435 \u0442\u0440\u0438\u0433\u0435\u0440\u043D\u0443\u0432 \u043F\u043E\u0434\u0456\u0457 \u0433\u0440\u0438)');
|
|
1550
1549
|
this_0.q('\n\n');
|
|
1551
|
-
this_0.q('Your personality: ' + context.
|
|
1550
|
+
this_0.q('Your personality: ' + context.j7s_1);
|
|
1552
1551
|
this_0.q('\n');
|
|
1553
|
-
this_0.q('Current game state: ' + context.
|
|
1552
|
+
this_0.q('Current game state: ' + context.k7s_1);
|
|
1554
1553
|
this_0.q('\n\n');
|
|
1555
1554
|
this_0.q("\u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E \u043D\u0430 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0433\u0440\u0430\u0432\u0446\u044F \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E \u043C\u043E\u0432\u043E\u044E.\n\u041F\u0430\u043C'\u044F\u0442\u0430\u0439: \u0442\u0438 \u0436\u0438\u0432\u0430 \u043B\u044E\u0434\u0438\u043D\u0430 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI. \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043C\u043E\u0436\u0435\u0448 \u0442\u0440\u043E\u0445\u0438 \u043F\u043E\u043C\u0430\u0442\u044E\u043A\u0430\u0442\u0438\u0441\u044F.\n\u0412\u0410\u0416\u041B\u0418\u0412\u041E: \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C 1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!");
|
|
1556
|
-
if (!(context.
|
|
1557
|
-
this_0.q('\nYou are chatting with ' + context.
|
|
1555
|
+
if (!(context.m7s_1 == null)) {
|
|
1556
|
+
this_0.q('\nYou are chatting with ' + context.m7s_1 + '.');
|
|
1558
1557
|
}
|
|
1559
|
-
var
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
var
|
|
1565
|
-
|
|
1558
|
+
var recent = takeLast(context.l7s_1, 5);
|
|
1559
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1560
|
+
if (!recent.r()) {
|
|
1561
|
+
this_0.q('\n\n\u041E\u0441\u0442\u0430\u043D\u043D\u0456 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0432 \u0447\u0430\u0442\u0456 (\u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442, \u043A\u043E\u0436\u0435\u043D \u0440\u044F\u0434\u043E\u043A = \u0430\u0432\u0442\u043E\u0440: \u0442\u0435\u043A\u0441\u0442):\n');
|
|
1562
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1563
|
+
var _iterator__ex2g4s = recent.t();
|
|
1564
|
+
while (_iterator__ex2g4s.u()) {
|
|
1565
|
+
var element = _iterator__ex2g4s.v();
|
|
1566
|
+
this_0.q(element).q('\n');
|
|
1567
|
+
}
|
|
1566
1568
|
}
|
|
1567
|
-
|
|
1569
|
+
var tmp$ret$6 = this_0.toString();
|
|
1570
|
+
messages.e1(tmp.p7s(tmp$ret$6));
|
|
1571
|
+
messages.e1(Companion_getInstance_2().q7s(playerMessage));
|
|
1568
1572
|
return messages;
|
|
1569
1573
|
}
|
|
1570
1574
|
function buildRandomMessagePrompt($this, context) {
|
|
@@ -1572,21 +1576,21 @@
|
|
|
1572
1576
|
// Inline function 'kotlin.text.buildString' call
|
|
1573
1577
|
// Inline function 'kotlin.apply' call
|
|
1574
1578
|
var this_0 = StringBuilder_init_$Create$();
|
|
1575
|
-
this_0.q('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438');
|
|
1579
|
+
this_0.q('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438\n- \u0423\u041D\u0418\u041A\u0410\u0419 \u0448\u0430\u0431\u043B\u043E\u043D\u043D\u0438\u0445/\u0431\u043E\u0442\u0456\u0432\u0441\u044C\u043A\u0438\u0445 \u0444\u0440\u0430\u0437: "\u0433\u0440\u0430\u0454\u043C\u043E \u0434\u0430\u043B\u0456", "\u0433\u0440\u0430\u0439 \u0434\u0430\u043B\u0456", "\u0434\u0430\u0432\u0430\u0439 \u0434\u0430\u043B\u0456", "\u043F\u043E\u0433\u043D\u0430\u043B\u0438 \u0434\u0430\u043B\u0456", "\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439", "\u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439", "\u0433\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435" \u2014 \u0437\u0432\u0443\u0447\u0438\u0442\u044C \u044F\u043A \u0431\u043E\u0442\n- \u041A\u043E\u0436\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u041E\u0420\u0418\u0413\u0406\u041D\u0410\u041B\u042C\u041D\u041E\u042E; \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044E\u0439 \u0444\u0440\u0430\u0437\u0438, \u044F\u043A\u0456 \u0432\u0436\u0435 \u0437\u0432\u0443\u0447\u0430\u043B\u0438 \u0443 \u0447\u0430\u0442\u0456\n- \u042F\u043A\u0449\u043E \u0443 \u0447\u0430\u0442\u0456 \u0437\u0432\u0435\u0440\u0442\u0430\u044E\u0442\u044C\u0441\u044F \u043D\u0435 \u0434\u043E \u0442\u0435\u0431\u0435 \u2014 \u043C\u043E\u0432\u0447\u0438 (\u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0442\u0456\u043B\u044C\u043A\u0438 \u043A\u043E\u043B\u0438 \u0441\u043F\u0438\u0442\u0430\u043B\u0438 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u043E, \u0430\u0431\u043E \u044F\u043A\u0449\u043E \u0442\u0435\u0431\u0435 \u0442\u0440\u0438\u0433\u0435\u0440\u043D\u0443\u0432 \u043F\u043E\u0434\u0456\u0457 \u0433\u0440\u0438)');
|
|
1576
1580
|
this_0.q('\n\n');
|
|
1577
|
-
this_0.q('Your personality: ' + context.
|
|
1581
|
+
this_0.q('Your personality: ' + context.j7s_1);
|
|
1578
1582
|
this_0.q('\n');
|
|
1579
|
-
this_0.q('Current game state: ' + context.
|
|
1583
|
+
this_0.q('Current game state: ' + context.k7s_1);
|
|
1580
1584
|
this_0.q('\n\n');
|
|
1581
1585
|
this_0.q('\u0417\u0433\u0435\u043D\u0435\u0440\u0443\u0439 \u0441\u043F\u043E\u043D\u0442\u0430\u043D\u043D\u0438\u0439 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!).\n\u0420\u0435\u0430\u0433\u0443\u0439 \u043D\u0430 \u0441\u0442\u0430\u043D \u0433\u0440\u0438 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E. \u0411\u0443\u0434\u044C \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0447\u043D\u0438\u043C. \u041C\u043E\u0436\u0435\u0448 \u0432\u0436\u0438\u0442\u0438 \u043B\u0435\u0433\u043A\u0438\u0439 \u043C\u0430\u0442\u044E\u043A \u044F\u043A\u0449\u043E \u043F\u0456\u0434\u0445\u043E\u0434\u0438\u0442\u044C.');
|
|
1582
1586
|
var tmp$ret$2 = this_0.toString();
|
|
1583
|
-
return listOf([tmp.
|
|
1587
|
+
return listOf([tmp.p7s(tmp$ret$2), Companion_getInstance_2().q7s('Generate a spontaneous comment about the current game situation.')]);
|
|
1584
1588
|
}
|
|
1585
1589
|
function $executeRequestCOROUTINE$_0(_this__u8e3s4, messages, cacheKey, resultContinuation) {
|
|
1586
1590
|
CoroutineImpl.call(this, resultContinuation);
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1591
|
+
this.r7u_1 = _this__u8e3s4;
|
|
1592
|
+
this.s7u_1 = messages;
|
|
1593
|
+
this.t7u_1 = cacheKey;
|
|
1590
1594
|
}
|
|
1591
1595
|
protoOf($executeRequestCOROUTINE$_0).q9 = function () {
|
|
1592
1596
|
var suspendResult = this.k9_1;
|
|
@@ -1597,7 +1601,7 @@
|
|
|
1597
1601
|
case 0:
|
|
1598
1602
|
this.j9_1 = 3;
|
|
1599
1603
|
this.i9_1 = 1;
|
|
1600
|
-
suspendResult = this.
|
|
1604
|
+
suspendResult = this.r7u_1.v7u_1.g7u(this.s7u_1, this);
|
|
1601
1605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1602
1606
|
return suspendResult;
|
|
1603
1607
|
}
|
|
@@ -1605,21 +1609,21 @@
|
|
|
1605
1609
|
this.i9_1 = 2;
|
|
1606
1610
|
continue $sm;
|
|
1607
1611
|
case 1:
|
|
1608
|
-
var unboxed = suspendResult.
|
|
1612
|
+
var unboxed = suspendResult.ko_1;
|
|
1609
1613
|
suspendResult = new Result(unboxed);
|
|
1610
1614
|
this.i9_1 = 2;
|
|
1611
1615
|
continue $sm;
|
|
1612
1616
|
case 2:
|
|
1613
|
-
var this_0 = suspendResult.
|
|
1617
|
+
var this_0 = suspendResult.ko_1;
|
|
1614
1618
|
var tmp_0;
|
|
1615
1619
|
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
1616
1620
|
var this_1 = new Result(this_0);
|
|
1617
1621
|
var tmp_1;
|
|
1618
1622
|
try {
|
|
1619
|
-
var $this$runCatching = this_1.
|
|
1623
|
+
var $this$runCatching = this_1.ko_1;
|
|
1620
1624
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1621
1625
|
var content = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1622
|
-
this.
|
|
1626
|
+
this.r7u_1.u7u_1.u7r(this.t7u_1, content);
|
|
1623
1627
|
tmp_1 = _Result___init__impl__xyqfz8(content);
|
|
1624
1628
|
} catch ($p) {
|
|
1625
1629
|
var tmp_3;
|
|
@@ -1652,12 +1656,12 @@
|
|
|
1652
1656
|
while (true);
|
|
1653
1657
|
};
|
|
1654
1658
|
function BotChatRepositoryImpl(openAIApi, cache) {
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1659
|
+
this.u7u_1 = cache;
|
|
1660
|
+
this.v7u_1 = new BaseOpenAIRepository(openAIApi);
|
|
1657
1661
|
}
|
|
1658
|
-
protoOf(BotChatRepositoryImpl).
|
|
1662
|
+
protoOf(BotChatRepositoryImpl).h7u = function (playerMessage, context, $completion) {
|
|
1659
1663
|
var cacheKey = buildCacheKey(this, 'answer', playerMessage, context);
|
|
1660
|
-
var tmp0_safe_receiver = this.
|
|
1664
|
+
var tmp0_safe_receiver = this.u7u_1.h3c(cacheKey);
|
|
1661
1665
|
if (tmp0_safe_receiver == null)
|
|
1662
1666
|
null;
|
|
1663
1667
|
else {
|
|
@@ -1672,9 +1676,9 @@
|
|
|
1672
1676
|
return tmp;
|
|
1673
1677
|
return tmp;
|
|
1674
1678
|
};
|
|
1675
|
-
protoOf(BotChatRepositoryImpl).
|
|
1679
|
+
protoOf(BotChatRepositoryImpl).i7u = function (context, $completion) {
|
|
1676
1680
|
var cacheKey = buildCacheKey(this, 'random', null, context);
|
|
1677
|
-
var tmp0_safe_receiver = this.
|
|
1681
|
+
var tmp0_safe_receiver = this.u7u_1.h3c(cacheKey);
|
|
1678
1682
|
if (tmp0_safe_receiver == null)
|
|
1679
1683
|
null;
|
|
1680
1684
|
else {
|
|
@@ -1692,7 +1696,7 @@
|
|
|
1692
1696
|
function UserReportsResolverRepository() {
|
|
1693
1697
|
}
|
|
1694
1698
|
function UserReportsResolverRepositoryImpl$_init_$lambda_sckkav($this$Json) {
|
|
1695
|
-
$this$Json.
|
|
1699
|
+
$this$Json.k5e_1 = true;
|
|
1696
1700
|
return Unit_instance;
|
|
1697
1701
|
}
|
|
1698
1702
|
function UserReportsResolverRepositoryImpl(openAIApi, json) {
|
|
@@ -1703,8 +1707,8 @@
|
|
|
1703
1707
|
tmp = json;
|
|
1704
1708
|
}
|
|
1705
1709
|
json = tmp;
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1710
|
+
this.w7u_1 = json;
|
|
1711
|
+
this.x7u_1 = new BaseOpenAIRepository(openAIApi);
|
|
1708
1712
|
}
|
|
1709
1713
|
function aiModule(config) {
|
|
1710
1714
|
return Module_init_$Create$('AIModule', VOID, VOID, aiModule$lambda(config));
|
|
@@ -1719,18 +1723,18 @@
|
|
|
1719
1723
|
}
|
|
1720
1724
|
function aiModule$lambda$lambda_1($this$singleton) {
|
|
1721
1725
|
// Inline function 'org.kodein.di.instance' call
|
|
1722
|
-
var tmp = $this$singleton.
|
|
1726
|
+
var tmp = $this$singleton.l1f();
|
|
1723
1727
|
// Inline function 'org.kodein.type.generic' call
|
|
1724
1728
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1725
1729
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1726
|
-
var openAIConfig = tmp.
|
|
1730
|
+
var openAIConfig = tmp.k1f(tmp$ret$0, null);
|
|
1727
1731
|
return HttpClient(aiModule$lambda$lambda$lambda(openAIConfig));
|
|
1728
1732
|
}
|
|
1729
1733
|
function aiModule$lambda$lambda$lambda$lambda$lambda($openAIConfig) {
|
|
1730
1734
|
return function ($this$Json) {
|
|
1731
|
-
$this$Json.
|
|
1732
|
-
$this$Json.
|
|
1733
|
-
$this$Json.
|
|
1735
|
+
$this$Json.k5e_1 = true;
|
|
1736
|
+
$this$Json.l5e_1 = true;
|
|
1737
|
+
$this$Json.m5e_1 = $openAIConfig.f7r_1;
|
|
1734
1738
|
return Unit_instance;
|
|
1735
1739
|
};
|
|
1736
1740
|
}
|
|
@@ -1742,57 +1746,57 @@
|
|
|
1742
1746
|
}
|
|
1743
1747
|
function aiModule$lambda$lambda$lambda$lambda_0($openAIConfig) {
|
|
1744
1748
|
return function ($this$install) {
|
|
1745
|
-
$this$install.
|
|
1746
|
-
$this$install.
|
|
1749
|
+
$this$install.n5s(get_DEFAULT(Companion_instance_0));
|
|
1750
|
+
$this$install.m5s_1 = $openAIConfig.f7r_1 ? LogLevel_INFO_getInstance() : LogLevel_NONE_getInstance();
|
|
1747
1751
|
return Unit_instance;
|
|
1748
1752
|
};
|
|
1749
1753
|
}
|
|
1750
1754
|
function aiModule$lambda$lambda$lambda($openAIConfig) {
|
|
1751
1755
|
return function ($this$HttpClient) {
|
|
1752
1756
|
var tmp = get_ContentNegotiation();
|
|
1753
|
-
$this$HttpClient.
|
|
1757
|
+
$this$HttpClient.o47(tmp, aiModule$lambda$lambda$lambda$lambda($openAIConfig));
|
|
1754
1758
|
var tmp_0 = get_Logging();
|
|
1755
|
-
$this$HttpClient.
|
|
1759
|
+
$this$HttpClient.o47(tmp_0, aiModule$lambda$lambda$lambda$lambda_0($openAIConfig));
|
|
1756
1760
|
return Unit_instance;
|
|
1757
1761
|
};
|
|
1758
1762
|
}
|
|
1759
1763
|
function aiModule$lambda$lambda_2($this$singleton) {
|
|
1760
1764
|
// Inline function 'org.kodein.di.instance' call
|
|
1761
|
-
var tmp = $this$singleton.
|
|
1765
|
+
var tmp = $this$singleton.l1f();
|
|
1762
1766
|
// Inline function 'org.kodein.type.generic' call
|
|
1763
1767
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1764
1768
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1765
|
-
var tmp_1 = tmp.
|
|
1769
|
+
var tmp_1 = tmp.k1f(tmp$ret$0, null);
|
|
1766
1770
|
// Inline function 'org.kodein.di.instance' call
|
|
1767
|
-
var tmp_2 = $this$singleton.
|
|
1771
|
+
var tmp_2 = $this$singleton.l1f();
|
|
1768
1772
|
// Inline function 'org.kodein.type.generic' call
|
|
1769
1773
|
var tmp_3 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1770
1774
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1771
|
-
var tmp$ret$3 = tmp_2.
|
|
1775
|
+
var tmp$ret$3 = tmp_2.k1f(tmp$ret$2, null);
|
|
1772
1776
|
return new OpenAIApiImpl(tmp_1, tmp$ret$3);
|
|
1773
1777
|
}
|
|
1774
1778
|
function aiModule$lambda$lambda_3($this$singleton) {
|
|
1775
1779
|
// Inline function 'org.kodein.di.instance' call
|
|
1776
|
-
var tmp = $this$singleton.
|
|
1780
|
+
var tmp = $this$singleton.l1f();
|
|
1777
1781
|
// Inline function 'org.kodein.type.generic' call
|
|
1778
1782
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1779
1783
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1780
|
-
var tmp_1 = tmp.
|
|
1784
|
+
var tmp_1 = tmp.k1f(tmp$ret$0, null);
|
|
1781
1785
|
// Inline function 'org.kodein.di.instance' call
|
|
1782
|
-
var tmp_2 = $this$singleton.
|
|
1786
|
+
var tmp_2 = $this$singleton.l1f();
|
|
1783
1787
|
// Inline function 'org.kodein.type.generic' call
|
|
1784
1788
|
var tmp_3 = typeToken(createKType(getKClass(BotChatCache), arrayOf([]), false));
|
|
1785
1789
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1786
|
-
var tmp$ret$3 = tmp_2.
|
|
1790
|
+
var tmp$ret$3 = tmp_2.k1f(tmp$ret$2, null);
|
|
1787
1791
|
return new BotChatRepositoryImpl(tmp_1, tmp$ret$3);
|
|
1788
1792
|
}
|
|
1789
1793
|
function aiModule$lambda$lambda_4($this$singleton) {
|
|
1790
1794
|
// Inline function 'org.kodein.di.instance' call
|
|
1791
|
-
var tmp = $this$singleton.
|
|
1795
|
+
var tmp = $this$singleton.l1f();
|
|
1792
1796
|
// Inline function 'org.kodein.type.generic' call
|
|
1793
1797
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1794
1798
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1795
|
-
var tmp$ret$1 = tmp.
|
|
1799
|
+
var tmp$ret$1 = tmp.k1f(tmp$ret$0, null);
|
|
1796
1800
|
return new UserReportsResolverRepositoryImpl(tmp$ret$1);
|
|
1797
1801
|
}
|
|
1798
1802
|
function aiModule$lambda($config) {
|
|
@@ -1801,102 +1805,102 @@
|
|
|
1801
1805
|
// Inline function 'org.kodein.type.generic' call
|
|
1802
1806
|
var tmp = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1803
1807
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1804
|
-
var tmp_0 = $this$Module.
|
|
1808
|
+
var tmp_0 = $this$Module.x1d(tmp$ret$0, null, null);
|
|
1805
1809
|
// Inline function 'org.kodein.di.singleton' call
|
|
1806
1810
|
var creator = aiModule$lambda$lambda($config);
|
|
1807
|
-
var tmp_1 = $this$Module.
|
|
1808
|
-
var tmp_2 = $this$Module.
|
|
1809
|
-
var tmp_3 = $this$Module.
|
|
1811
|
+
var tmp_1 = $this$Module.c1e();
|
|
1812
|
+
var tmp_2 = $this$Module.a1e();
|
|
1813
|
+
var tmp_3 = $this$Module.b1e();
|
|
1810
1814
|
// Inline function 'org.kodein.type.generic' call
|
|
1811
1815
|
var tmp_4 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1812
1816
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1813
1817
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
1814
|
-
tmp_0.
|
|
1818
|
+
tmp_0.a1i(tmp$ret$3);
|
|
1815
1819
|
// Inline function 'org.kodein.di.bind' call
|
|
1816
1820
|
// Inline function 'org.kodein.type.generic' call
|
|
1817
1821
|
var tmp_5 = typeToken(createKType(getKClass(BotChatCache), arrayOf([]), false));
|
|
1818
1822
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
1819
|
-
var tmp_6 = $this$Module.
|
|
1823
|
+
var tmp_6 = $this$Module.x1d(tmp$ret$4, null, null);
|
|
1820
1824
|
// Inline function 'org.kodein.di.singleton' call
|
|
1821
1825
|
var creator_0 = aiModule$lambda$lambda_0;
|
|
1822
|
-
var tmp_7 = $this$Module.
|
|
1823
|
-
var tmp_8 = $this$Module.
|
|
1824
|
-
var tmp_9 = $this$Module.
|
|
1826
|
+
var tmp_7 = $this$Module.c1e();
|
|
1827
|
+
var tmp_8 = $this$Module.a1e();
|
|
1828
|
+
var tmp_9 = $this$Module.b1e();
|
|
1825
1829
|
// Inline function 'org.kodein.type.generic' call
|
|
1826
1830
|
var tmp_10 = typeToken(createKType(getKClass(InMemoryBotChatCache), arrayOf([]), false));
|
|
1827
1831
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1828
1832
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
1829
|
-
tmp_6.
|
|
1833
|
+
tmp_6.a1i(tmp$ret$7);
|
|
1830
1834
|
// Inline function 'org.kodein.di.bind' call
|
|
1831
1835
|
// Inline function 'org.kodein.type.generic' call
|
|
1832
1836
|
var tmp_11 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1833
1837
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
1834
|
-
var tmp_12 = $this$Module.
|
|
1838
|
+
var tmp_12 = $this$Module.x1d(tmp$ret$8, null, null);
|
|
1835
1839
|
// Inline function 'org.kodein.di.singleton' call
|
|
1836
1840
|
var creator_1 = aiModule$lambda$lambda_1;
|
|
1837
|
-
var tmp_13 = $this$Module.
|
|
1838
|
-
var tmp_14 = $this$Module.
|
|
1839
|
-
var tmp_15 = $this$Module.
|
|
1841
|
+
var tmp_13 = $this$Module.c1e();
|
|
1842
|
+
var tmp_14 = $this$Module.a1e();
|
|
1843
|
+
var tmp_15 = $this$Module.b1e();
|
|
1840
1844
|
// Inline function 'org.kodein.type.generic' call
|
|
1841
1845
|
var tmp_16 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1842
1846
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
1843
1847
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
1844
|
-
tmp_12.
|
|
1848
|
+
tmp_12.a1i(tmp$ret$11);
|
|
1845
1849
|
// Inline function 'org.kodein.di.bind' call
|
|
1846
1850
|
// Inline function 'org.kodein.type.generic' call
|
|
1847
1851
|
var tmp_17 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1848
1852
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
1849
|
-
var tmp_18 = $this$Module.
|
|
1853
|
+
var tmp_18 = $this$Module.x1d(tmp$ret$12, null, null);
|
|
1850
1854
|
// Inline function 'org.kodein.di.singleton' call
|
|
1851
1855
|
var creator_2 = aiModule$lambda$lambda_2;
|
|
1852
|
-
var tmp_19 = $this$Module.
|
|
1853
|
-
var tmp_20 = $this$Module.
|
|
1854
|
-
var tmp_21 = $this$Module.
|
|
1856
|
+
var tmp_19 = $this$Module.c1e();
|
|
1857
|
+
var tmp_20 = $this$Module.a1e();
|
|
1858
|
+
var tmp_21 = $this$Module.b1e();
|
|
1855
1859
|
// Inline function 'org.kodein.type.generic' call
|
|
1856
1860
|
var tmp_22 = typeToken(createKType(getKClass(OpenAIApiImpl), arrayOf([]), false));
|
|
1857
1861
|
var tmp$ret$14 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
1858
1862
|
var tmp$ret$15 = new Singleton(tmp_19, tmp_20, tmp_21, tmp$ret$14, null, true, creator_2);
|
|
1859
|
-
tmp_18.
|
|
1863
|
+
tmp_18.a1i(tmp$ret$15);
|
|
1860
1864
|
// Inline function 'org.kodein.di.bind' call
|
|
1861
1865
|
// Inline function 'org.kodein.type.generic' call
|
|
1862
1866
|
var tmp_23 = typeToken(createKType(getKClass(BotChatRepository), arrayOf([]), false));
|
|
1863
1867
|
var tmp$ret$16 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
1864
|
-
var tmp_24 = $this$Module.
|
|
1868
|
+
var tmp_24 = $this$Module.x1d(tmp$ret$16, null, null);
|
|
1865
1869
|
// Inline function 'org.kodein.di.singleton' call
|
|
1866
1870
|
var creator_3 = aiModule$lambda$lambda_3;
|
|
1867
|
-
var tmp_25 = $this$Module.
|
|
1868
|
-
var tmp_26 = $this$Module.
|
|
1869
|
-
var tmp_27 = $this$Module.
|
|
1871
|
+
var tmp_25 = $this$Module.c1e();
|
|
1872
|
+
var tmp_26 = $this$Module.a1e();
|
|
1873
|
+
var tmp_27 = $this$Module.b1e();
|
|
1870
1874
|
// Inline function 'org.kodein.type.generic' call
|
|
1871
1875
|
var tmp_28 = typeToken(createKType(getKClass(BotChatRepositoryImpl), arrayOf([]), false));
|
|
1872
1876
|
var tmp$ret$18 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
1873
1877
|
var tmp$ret$19 = new Singleton(tmp_25, tmp_26, tmp_27, tmp$ret$18, null, true, creator_3);
|
|
1874
|
-
tmp_24.
|
|
1878
|
+
tmp_24.a1i(tmp$ret$19);
|
|
1875
1879
|
// Inline function 'org.kodein.di.bind' call
|
|
1876
1880
|
// Inline function 'org.kodein.type.generic' call
|
|
1877
1881
|
var tmp_29 = typeToken(createKType(getKClass(UserReportsResolverRepository), arrayOf([]), false));
|
|
1878
1882
|
var tmp$ret$20 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
1879
|
-
var tmp_30 = $this$Module.
|
|
1883
|
+
var tmp_30 = $this$Module.x1d(tmp$ret$20, null, null);
|
|
1880
1884
|
// Inline function 'org.kodein.di.singleton' call
|
|
1881
1885
|
var creator_4 = aiModule$lambda$lambda_4;
|
|
1882
|
-
var tmp_31 = $this$Module.
|
|
1883
|
-
var tmp_32 = $this$Module.
|
|
1884
|
-
var tmp_33 = $this$Module.
|
|
1886
|
+
var tmp_31 = $this$Module.c1e();
|
|
1887
|
+
var tmp_32 = $this$Module.a1e();
|
|
1888
|
+
var tmp_33 = $this$Module.b1e();
|
|
1885
1889
|
// Inline function 'org.kodein.type.generic' call
|
|
1886
1890
|
var tmp_34 = typeToken(createKType(getKClass(UserReportsResolverRepositoryImpl), arrayOf([]), false));
|
|
1887
1891
|
var tmp$ret$22 = isInterface(tmp_34, TypeToken) ? tmp_34 : THROW_CCE();
|
|
1888
1892
|
var tmp$ret$23 = new Singleton(tmp_31, tmp_32, tmp_33, tmp$ret$22, null, true, creator_4);
|
|
1889
|
-
tmp_30.
|
|
1893
|
+
tmp_30.a1i(tmp$ret$23);
|
|
1890
1894
|
return Unit_instance;
|
|
1891
1895
|
};
|
|
1892
1896
|
}
|
|
1893
1897
|
//region block: post-declaration
|
|
1894
|
-
protoOf($serializer).
|
|
1895
|
-
protoOf($serializer_0).
|
|
1896
|
-
protoOf($serializer_1).
|
|
1897
|
-
protoOf($serializer_2).
|
|
1898
|
-
protoOf($serializer_3).
|
|
1899
|
-
protoOf($serializer_4).
|
|
1898
|
+
protoOf($serializer).m12 = typeParametersSerializers;
|
|
1899
|
+
protoOf($serializer_0).m12 = typeParametersSerializers;
|
|
1900
|
+
protoOf($serializer_1).m12 = typeParametersSerializers;
|
|
1901
|
+
protoOf($serializer_2).m12 = typeParametersSerializers;
|
|
1902
|
+
protoOf($serializer_3).m12 = typeParametersSerializers;
|
|
1903
|
+
protoOf($serializer_4).m12 = typeParametersSerializers;
|
|
1900
1904
|
//endregion
|
|
1901
1905
|
//region block: exports
|
|
1902
1906
|
_.$_$ = _.$_$ || {};
|