@solibo/solibo-sdk 1.0.23 → 1.0.24-SNAPSHOT

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/KmLogging-logging.js +228 -5
  2. package/KmLogging-logging.js.map +1 -1
  3. package/Stately-stately-concurrency.js +27 -5
  4. package/Stately-stately-concurrency.js.map +1 -1
  5. package/cryptography-kotlin-cryptography-core.js +58 -58
  6. package/cryptography-kotlin-cryptography-core.js.map +1 -1
  7. package/cryptography-kotlin-cryptography-provider-webcrypto.js +7 -7
  8. package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +1 -1
  9. package/cryptography-kotlin-cryptography-random.js +74 -8
  10. package/cryptography-kotlin-cryptography-random.js.map +1 -1
  11. package/kotlin-kotlin-stdlib.js +14076 -1100
  12. package/kotlin-kotlin-stdlib.js.map +1 -1
  13. package/kotlinx-atomicfu.js +187 -8
  14. package/kotlinx-atomicfu.js.map +1 -1
  15. package/kotlinx-browser.js +19 -0
  16. package/kotlinx-browser.js.map +1 -0
  17. package/kotlinx-coroutines-core.js +9817 -5
  18. package/kotlinx-coroutines-core.js.map +1 -1
  19. package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
  20. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
  21. package/kotlinx-io-kotlinx-io-core.js +2025 -5
  22. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  23. package/kotlinx-serialization-kotlinx-serialization-core.js +5906 -5
  24. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  25. package/kotlinx-serialization-kotlinx-serialization-json.js +5073 -5
  26. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  27. package/ktor-ktor-client-auth.js +1500 -5
  28. package/ktor-ktor-client-auth.js.map +1 -1
  29. package/ktor-ktor-client-content-negotiation.js +757 -5
  30. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  31. package/ktor-ktor-client-core.js +13613 -36
  32. package/ktor-ktor-client-core.js.map +1 -1
  33. package/ktor-ktor-client-logging.js +3276 -5
  34. package/ktor-ktor-client-logging.js.map +1 -1
  35. package/ktor-ktor-events.js +84 -5
  36. package/ktor-ktor-events.js.map +1 -1
  37. package/ktor-ktor-http-cio.js +2261 -5
  38. package/ktor-ktor-http-cio.js.map +1 -1
  39. package/ktor-ktor-http.js +5127 -5
  40. package/ktor-ktor-http.js.map +1 -1
  41. package/ktor-ktor-io.js +3510 -5
  42. package/ktor-ktor-io.js.map +1 -1
  43. package/ktor-ktor-serialization-kotlinx-json.js +57 -5
  44. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  45. package/ktor-ktor-serialization-kotlinx.js +855 -5
  46. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  47. package/ktor-ktor-serialization.js +369 -5
  48. package/ktor-ktor-serialization.js.map +1 -1
  49. package/ktor-ktor-utils.js +3610 -5
  50. package/ktor-ktor-utils.js.map +1 -1
  51. package/ktor-ktor-websockets.js +2542 -5
  52. package/ktor-ktor-websockets.js.map +1 -1
  53. package/package.json +1 -1
  54. package/solibo-sdk-sdk-home-api.js +2040 -5
  55. package/solibo-sdk-sdk-home-api.js.map +1 -1
  56. package/solibo-sdk-sdk.d.ts +12 -0
  57. package/solibo-sdk-sdk.js +2543 -4
  58. package/solibo-sdk-sdk.js.map +1 -1
@@ -1,13 +1,2048 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-utils.js', './ktor-ktor-client-core.js', './ktor-ktor-http.js', './ktor-ktor-client-content-negotiation.js', './kotlinx-serialization-kotlinx-serialization-core.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports);
6
- else
7
- globalThis['solibo-sdk-sdk-home-api'] = factory(typeof globalThis['solibo-sdk-sdk-home-api'] === 'undefined' ? {} : globalThis['solibo-sdk-sdk-home-api']);
8
- }(function (_) {
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'solibo-sdk-sdk-home-api'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'solibo-sdk-sdk-home-api'.");
9
+ }
10
+ if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
11
+ throw new Error("Error loading module 'solibo-sdk-sdk-home-api'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'solibo-sdk-sdk-home-api'.");
12
+ }
13
+ if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
14
+ throw new Error("Error loading module 'solibo-sdk-sdk-home-api'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'solibo-sdk-sdk-home-api'.");
15
+ }
16
+ if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
17
+ throw new Error("Error loading module 'solibo-sdk-sdk-home-api'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'solibo-sdk-sdk-home-api'.");
18
+ }
19
+ if (typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined') {
20
+ throw new Error("Error loading module 'solibo-sdk-sdk-home-api'. Its dependency 'ktor-ktor-client-content-negotiation' was not found. Please, check whether 'ktor-ktor-client-content-negotiation' is loaded prior to 'solibo-sdk-sdk-home-api'.");
21
+ }
22
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
23
+ throw new Error("Error loading module 'solibo-sdk-sdk-home-api'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'solibo-sdk-sdk-home-api'.");
24
+ }
25
+ globalThis['solibo-sdk-sdk-home-api'] = factory(typeof globalThis['solibo-sdk-sdk-home-api'] === 'undefined' ? {} : globalThis['solibo-sdk-sdk-home-api'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['kotlinx-serialization-kotlinx-serialization-core']);
26
+ }
27
+ }(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
9
28
  'use strict';
29
+ //region block: imports
30
+ var imul = Math.imul;
31
+ var CoroutineImpl = kotlin_kotlin.$_$.d9;
32
+ var listOf = kotlin_kotlin.$_$.h7;
33
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
34
+ var VOID = kotlin_kotlin.$_$.b;
35
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n8;
36
+ var getKClass = kotlin_kotlin.$_$.jc;
37
+ var arrayOf = kotlin_kotlin.$_$.lg;
38
+ var createKType = kotlin_kotlin.$_$.hc;
39
+ var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.w;
40
+ var protoOf = kotlin_kotlin.$_$.qb;
41
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
42
+ var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.h;
43
+ var listOf_0 = kotlin_kotlin.$_$.g7;
44
+ var Unit_instance = kotlin_kotlin.$_$.y4;
45
+ var Unit = kotlin_kotlin.$_$.ig;
46
+ var initMetadataForClass = kotlin_kotlin.$_$.ta;
47
+ var equals = kotlin_kotlin.$_$.fd;
48
+ var ensureNotNull = kotlin_kotlin.$_$.pg;
49
+ var KProperty1 = kotlin_kotlin.$_$.oc;
50
+ var getPropertyCallableRef = kotlin_kotlin.$_$.qa;
51
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
52
+ var Exception_init_$Create$ = kotlin_kotlin.$_$.h1;
53
+ var get_encodedPath = kotlin_io_ktor_ktor_http.$_$.w1;
54
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.e2;
55
+ var charArrayOf = kotlin_kotlin.$_$.ea;
56
+ var trimEnd = kotlin_kotlin.$_$.xe;
57
+ var joinToString = kotlin_kotlin.$_$.a7;
58
+ var set_encodedPath = kotlin_io_ktor_ktor_http.$_$.x1;
59
+ var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
60
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.wg;
61
+ var get_ContentNegotiation = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
62
+ var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.o1;
63
+ var HttpClient_0 = kotlin_io_ktor_ktor_client_core.$_$.p1;
64
+ var to = kotlin_kotlin.$_$.bh;
65
+ var mapOf = kotlin_kotlin.$_$.j7;
66
+ var URLBuilder = kotlin_io_ktor_ktor_http.$_$.g1;
67
+ var takeFrom = kotlin_io_ktor_ktor_http.$_$.l2;
68
+ var trimStart = kotlin_kotlin.$_$.bf;
69
+ var split = kotlin_kotlin.$_$.vd;
70
+ var parameter = kotlin_io_ktor_ktor_client_core.$_$.i1;
71
+ var encodeURLQueryComponent = kotlin_io_ktor_ktor_http.$_$.v1;
72
+ var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.e1;
73
+ var header = kotlin_io_ktor_ktor_client_core.$_$.h1;
74
+ var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.d;
75
+ var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
76
+ var contentType = kotlin_io_ktor_ktor_http.$_$.t1;
77
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.m4;
78
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.w;
79
+ var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
80
+ var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.l1;
81
+ var lazy = kotlin_kotlin.$_$.vg;
82
+ var isSuccess = kotlin_io_ktor_ktor_http.$_$.c2;
83
+ var THROW_CCE = kotlin_kotlin.$_$.xf;
84
+ var toString = kotlin_kotlin.$_$.tb;
85
+ var toString_0 = kotlin_kotlin.$_$.ah;
86
+ var getStringHashCode = kotlin_kotlin.$_$.ra;
87
+ var hashCode = kotlin_kotlin.$_$.sa;
88
+ var getBooleanHashCode = kotlin_kotlin.$_$.pa;
89
+ var equals_0 = kotlin_kotlin.$_$.ma;
90
+ var Enum = kotlin_kotlin.$_$.of;
91
+ var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
92
+ var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
93
+ var ContextualSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
94
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
95
+ var lazy_0 = kotlin_kotlin.$_$.ug;
96
+ var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
97
+ var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
98
+ var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
99
+ var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
100
+ var initMetadataForObject = kotlin_kotlin.$_$.za;
101
+ var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
102
+ var objectCreate = kotlin_kotlin.$_$.pb;
103
+ var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
104
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
105
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
106
+ var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
107
+ var getBigIntHashCode = kotlin_kotlin.$_$.oa;
108
+ //endregion
10
109
  //region block: pre-declaration
110
+ initMetadataForCoroutine($refreshTokensCOROUTINE$, CoroutineImpl);
111
+ initMetadataForCoroutine($revokeTokensCOROUTINE$, CoroutineImpl);
112
+ initMetadataForClass(ApiClient, 'ApiClient', VOID, VOID, VOID, [3]);
113
+ initMetadataForClass(AuthApi, 'AuthApi', AuthApi, ApiClient, VOID, [1, 2, 0, 5, 3]);
114
+ initMetadataForClass(BoardApi, 'BoardApi', BoardApi, ApiClient, VOID, [2, 1, 3]);
115
+ initMetadataForClass(CommunicationApi, 'CommunicationApi', CommunicationApi, ApiClient, VOID, [2, 1, 3]);
116
+ initMetadataForClass(CompanyApi, 'CompanyApi', CompanyApi, ApiClient, VOID, [1, 0, 2, 3]);
117
+ initMetadataForClass(ConversationApi, 'ConversationApi', ConversationApi, ApiClient, VOID, [2, 3, 8, 4, 1, 7, 0]);
118
+ initMetadataForClass(DocumentApi, 'DocumentApi', DocumentApi, ApiClient, VOID, [4, 3, 1, 2]);
119
+ initMetadataForClass(EconomyApi, 'EconomyApi', EconomyApi, ApiClient, VOID, [0, 1, 2, 4, 3]);
120
+ initMetadataForClass(ExpenseApi, 'ExpenseApi', ExpenseApi, ApiClient, VOID, [2, 1, 3]);
121
+ initMetadataForClass(HMSApi, 'HMSApi', HMSApi, ApiClient, VOID, [2, 1, 3]);
122
+ initMetadataForClass(HomepageApi, 'HomepageApi', HomepageApi, ApiClient, VOID, [3, 4, 1, 5, 2]);
123
+ initMetadataForClass(InsuranceApi, 'InsuranceApi', InsuranceApi, ApiClient, VOID, [3, 2, 1]);
124
+ initMetadataForClass(InvoiceApi, 'InvoiceApi', InvoiceApi, ApiClient, VOID, [3, 2, 1]);
125
+ initMetadataForClass(InvoicingApi, 'InvoicingApi', InvoicingApi, ApiClient, VOID, [3, 2, 4, 5, 1, 0, 6]);
126
+ initMetadataForClass(IssueApi, 'IssueApi', IssueApi, ApiClient, VOID, [2, 3, 1, 4]);
127
+ initMetadataForClass(LanguageApi, 'LanguageApi', LanguageApi, ApiClient, VOID, [0, 2, 3]);
128
+ initMetadataForClass(LoanApi, 'LoanApi', LoanApi, ApiClient, VOID, [3, 2, 1]);
129
+ initMetadataForClass(MarketingApi, 'MarketingApi', MarketingApi, ApiClient, VOID, [1, 3]);
130
+ initMetadataForClass(MeetingApi, 'MeetingApi', MeetingApi, ApiClient, VOID, [3, 2, 4, 1, 0]);
131
+ initMetadataForClass(OrganizationApi, 'OrganizationApi', OrganizationApi, ApiClient, VOID, [2, 3, 4, 0, 1]);
132
+ initMetadataForClass(ParkingApi, 'ParkingApi', ParkingApi, ApiClient, VOID, [3, 2, 1]);
133
+ initMetadataForClass(PersonApi, 'PersonApi', PersonApi, ApiClient, VOID, [5, 2, 1, 4, 3]);
134
+ initMetadataForClass(ResidentApi, 'ResidentApi', ResidentApi, ApiClient, VOID, [4, 3, 5, 2, 1, 6]);
135
+ initMetadataForClass(RoutinesApi, 'RoutinesApi', RoutinesApi, ApiClient, VOID, [4, 2, 3, 1]);
136
+ initMetadataForClass(SectionApi, 'SectionApi', SectionApi, ApiClient, VOID, [6, 4, 3, 2, 5, 1]);
137
+ initMetadataForClass(StorageApi, 'StorageApi', StorageApi, ApiClient, VOID, [3, 2, 1]);
138
+ initMetadataForClass(SupplierApi, 'SupplierApi', SupplierApi, ApiClient, VOID, [2, 3, 1, 0, 5, 4]);
139
+ initMetadataForClass(TaskApi, 'TaskApi', TaskApi, ApiClient, VOID, [3, 2, 1]);
140
+ initMetadataForClass(ThirdPartyInformationApi, 'ThirdPartyInformationApi', ThirdPartyInformationApi, ApiClient, VOID, [2, 3, 4, 5]);
141
+ initMetadataForClass(UserApi, 'UserApi', UserApi, ApiClient, VOID, [0, 1, 3]);
142
+ initMetadataForClass(HttpBearerAuth, 'HttpBearerAuth');
143
+ initMetadataForClass(OAuth, 'OAuth', OAuth);
144
+ initMetadataForCompanion(Companion);
145
+ initMetadataForCoroutine($requestCOROUTINE$, CoroutineImpl);
146
+ initMetadataForCompanion(Companion_0);
147
+ initMetadataForClass(HttpResponse, 'HttpResponse', VOID, VOID, VOID, [0, 1]);
148
+ initMetadataForCoroutine($bodyCOROUTINE$, CoroutineImpl);
149
+ initMetadataForClass(TypedBodyProvider, 'TypedBodyProvider', VOID, VOID, VOID, [1, 2]);
150
+ initMetadataForClass(RequestConfig, 'RequestConfig');
151
+ initMetadataForClass(RequestMethod, 'RequestMethod', VOID, Enum);
152
+ initMetadataForCompanion(Companion_1);
153
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
154
+ initMetadataForClass(AuthChallenge, 'AuthChallenge', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
155
+ initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
156
+ initMetadataForClass(AuthChallengeType, 'AuthChallengeType', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_4});
157
+ initMetadataForCompanion(Companion_3);
158
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
159
+ initMetadataForClass(RefreshTokensCommand, 'RefreshTokensCommand', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
160
+ initMetadataForCompanion(Companion_4);
161
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
162
+ initMetadataForClass(SoliboAuthentication, 'SoliboAuthentication', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
163
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
164
+ initMetadataForClass(SoliboTokens, 'SoliboTokens', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
165
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
166
+ initMetadataForClass(SrpVerification, 'SrpVerification', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
167
+ //endregion
168
+ function $refreshTokensCOROUTINE$(_this__u8e3s4, refreshTokensCommand, resultContinuation) {
169
+ CoroutineImpl.call(this, resultContinuation);
170
+ this.s5f_1 = _this__u8e3s4;
171
+ this.t5f_1 = refreshTokensCommand;
172
+ }
173
+ protoOf($refreshTokensCOROUTINE$).q8 = function () {
174
+ var suspendResult = this.k8_1;
175
+ $sm: do
176
+ try {
177
+ var tmp = this.i8_1;
178
+ switch (tmp) {
179
+ case 0:
180
+ this.j8_1 = 2;
181
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
182
+ var localVariableBody = this.t5f_1;
183
+ var localVariableQuery = LinkedHashMap_init_$Create$();
184
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
185
+ var tmp0_method = RequestMethod_PUT_getInstance();
186
+ var localVariableConfig = new RequestConfig(tmp0_method, '/auth/implicit/refresh', localVariableHeaders, VOID, localVariableQuery, true);
187
+ this.i8_1 = 1;
188
+ suspendResult = this.s5f_1.y5f(localVariableConfig, localVariableBody, localVariableAuthNames, this);
189
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
190
+ return suspendResult;
191
+ }
192
+
193
+ continue $sm;
194
+ case 1:
195
+ var this_0 = suspendResult;
196
+ var tmp_0 = getKClass(SoliboAuthentication);
197
+ var tmp_1;
198
+ try {
199
+ tmp_1 = createKType(getKClass(SoliboAuthentication), arrayOf([]), false);
200
+ } catch ($p) {
201
+ var tmp_2;
202
+ if ($p instanceof Error) {
203
+ var _unused_var__etf5q3 = $p;
204
+ tmp_2 = null;
205
+ } else {
206
+ throw $p;
207
+ }
208
+ tmp_1 = tmp_2;
209
+ }
210
+
211
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1)));
212
+ case 2:
213
+ throw this.l8_1;
214
+ }
215
+ } catch ($p) {
216
+ var e = $p;
217
+ if (this.j8_1 === 2) {
218
+ throw e;
219
+ } else {
220
+ this.i8_1 = this.j8_1;
221
+ this.l8_1 = e;
222
+ }
223
+ }
224
+ while (true);
225
+ };
226
+ function $revokeTokensCOROUTINE$(_this__u8e3s4, clientId, deviceKey, deviceKeyGroup, userId, refreshToken, resultContinuation) {
227
+ CoroutineImpl.call(this, resultContinuation);
228
+ this.h5g_1 = _this__u8e3s4;
229
+ this.i5g_1 = clientId;
230
+ this.j5g_1 = deviceKey;
231
+ this.k5g_1 = deviceKeyGroup;
232
+ this.l5g_1 = userId;
233
+ this.m5g_1 = refreshToken;
234
+ }
235
+ protoOf($revokeTokensCOROUTINE$).q8 = function () {
236
+ var suspendResult = this.k8_1;
237
+ $sm: do
238
+ try {
239
+ var tmp = this.i8_1;
240
+ switch (tmp) {
241
+ case 0:
242
+ this.j8_1 = 2;
243
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
244
+ var localVariableBody = EmptyContent_getInstance();
245
+ var localVariableQuery = LinkedHashMap_init_$Create$();
246
+ if (this.i5g_1 == null)
247
+ null;
248
+ else {
249
+ var tmp2 = 'clientId';
250
+ var value = listOf_0(this.i5g_1);
251
+ localVariableQuery.o2(tmp2, value);
252
+ }
253
+
254
+ if (this.j5g_1 == null)
255
+ null;
256
+ else {
257
+ var tmp2_0 = 'deviceKey';
258
+ var value_0 = listOf_0(this.j5g_1);
259
+ localVariableQuery.o2(tmp2_0, value_0);
260
+ }
261
+
262
+ if (this.k5g_1 == null)
263
+ null;
264
+ else {
265
+ var tmp2_1 = 'deviceKeyGroup';
266
+ var value_1 = listOf_0(this.k5g_1);
267
+ localVariableQuery.o2(tmp2_1, value_1);
268
+ }
269
+
270
+ if (this.l5g_1 == null)
271
+ null;
272
+ else {
273
+ var value_2 = listOf_0(this.l5g_1);
274
+ localVariableQuery.o2('userId', value_2);
275
+ }
276
+
277
+ if (this.m5g_1 == null)
278
+ null;
279
+ else {
280
+ var tmp2_2 = 'refreshToken';
281
+ var value_3 = listOf_0(this.m5g_1);
282
+ localVariableQuery.o2(tmp2_2, value_3);
283
+ }
284
+
285
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
286
+ var tmp5_method = RequestMethod_DELETE_getInstance();
287
+ var localVariableConfig = new RequestConfig(tmp5_method, '/auth/implicit/refresh/revoke', localVariableHeaders, VOID, localVariableQuery, true);
288
+ this.i8_1 = 1;
289
+ suspendResult = this.h5g_1.n5g(localVariableConfig, localVariableBody, localVariableAuthNames, this);
290
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
291
+ return suspendResult;
292
+ }
293
+
294
+ continue $sm;
295
+ case 1:
296
+ var this_0 = suspendResult;
297
+ var tmp_0 = getKClass(Unit);
298
+ var tmp_1;
299
+ try {
300
+ tmp_1 = createKType(getKClass(Unit), arrayOf([]), false);
301
+ } catch ($p) {
302
+ var tmp_2;
303
+ if ($p instanceof Error) {
304
+ var _unused_var__etf5q3 = $p;
305
+ tmp_2 = null;
306
+ } else {
307
+ throw $p;
308
+ }
309
+ tmp_1 = tmp_2;
310
+ }
311
+
312
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1)));
313
+ case 2:
314
+ throw this.l8_1;
315
+ }
316
+ } catch ($p) {
317
+ var e = $p;
318
+ if (this.j8_1 === 2) {
319
+ throw e;
320
+ } else {
321
+ this.i8_1 = this.j8_1;
322
+ this.l8_1 = e;
323
+ }
324
+ }
325
+ while (true);
326
+ };
327
+ function AuthApi(baseUrl, httpClientEngine, httpClientConfig) {
328
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
329
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
330
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
331
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
332
+ }
333
+ protoOf(AuthApi).s5g = function (refreshTokensCommand, $completion) {
334
+ var tmp = new $refreshTokensCOROUTINE$(this, refreshTokensCommand, $completion);
335
+ tmp.k8_1 = Unit_instance;
336
+ tmp.l8_1 = null;
337
+ return tmp.q8();
338
+ };
339
+ protoOf(AuthApi).t5g = function (clientId, deviceKey, deviceKeyGroup, userId, refreshToken, $completion) {
340
+ var tmp = new $revokeTokensCOROUTINE$(this, clientId, deviceKey, deviceKeyGroup, userId, refreshToken, $completion);
341
+ tmp.k8_1 = Unit_instance;
342
+ tmp.l8_1 = null;
343
+ return tmp.q8();
344
+ };
345
+ function BoardApi(baseUrl, httpClientEngine, httpClientConfig) {
346
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
347
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
348
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
349
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
350
+ }
351
+ function CommunicationApi(baseUrl, httpClientEngine, httpClientConfig) {
352
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
353
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
354
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
355
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
356
+ }
357
+ function CompanyApi(baseUrl, httpClientEngine, httpClientConfig) {
358
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
359
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
360
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
361
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
362
+ }
363
+ function ConversationApi(baseUrl, httpClientEngine, httpClientConfig) {
364
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
365
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
366
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
367
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
368
+ }
369
+ function DocumentApi(baseUrl, httpClientEngine, httpClientConfig) {
370
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
371
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
372
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
373
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
374
+ }
375
+ function EconomyApi(baseUrl, httpClientEngine, httpClientConfig) {
376
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
377
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
378
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
379
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
380
+ }
381
+ function ExpenseApi(baseUrl, httpClientEngine, httpClientConfig) {
382
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
383
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
384
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
385
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
386
+ }
387
+ function HMSApi(baseUrl, httpClientEngine, httpClientConfig) {
388
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
389
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
390
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
391
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
392
+ }
393
+ function HomepageApi(baseUrl, httpClientEngine, httpClientConfig) {
394
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
395
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
396
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
397
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
398
+ }
399
+ function InsuranceApi(baseUrl, httpClientEngine, httpClientConfig) {
400
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
401
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
402
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
403
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
404
+ }
405
+ function InvoiceApi(baseUrl, httpClientEngine, httpClientConfig) {
406
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
407
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
408
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
409
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
410
+ }
411
+ function InvoicingApi(baseUrl, httpClientEngine, httpClientConfig) {
412
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
413
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
414
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
415
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
416
+ }
417
+ function IssueApi(baseUrl, httpClientEngine, httpClientConfig) {
418
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
419
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
420
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
421
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
422
+ }
423
+ function LanguageApi(baseUrl, httpClientEngine, httpClientConfig) {
424
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
425
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
426
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
427
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
428
+ }
429
+ function LoanApi(baseUrl, httpClientEngine, httpClientConfig) {
430
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
431
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
432
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
433
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
434
+ }
435
+ function MarketingApi(baseUrl, httpClientEngine, httpClientConfig) {
436
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
437
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
438
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
439
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
440
+ }
441
+ function MeetingApi(baseUrl, httpClientEngine, httpClientConfig) {
442
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
443
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
444
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
445
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
446
+ }
447
+ function OrganizationApi(baseUrl, httpClientEngine, httpClientConfig) {
448
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
449
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
450
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
451
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
452
+ }
453
+ function ParkingApi(baseUrl, httpClientEngine, httpClientConfig) {
454
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
455
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
456
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
457
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
458
+ }
459
+ function PersonApi(baseUrl, httpClientEngine, httpClientConfig) {
460
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
461
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
462
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
463
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
464
+ }
465
+ function ResidentApi(baseUrl, httpClientEngine, httpClientConfig) {
466
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
467
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
468
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
469
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
470
+ }
471
+ function RoutinesApi(baseUrl, httpClientEngine, httpClientConfig) {
472
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
473
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
474
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
475
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
476
+ }
477
+ function SectionApi(baseUrl, httpClientEngine, httpClientConfig) {
478
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
479
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
480
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
481
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
482
+ }
483
+ function StorageApi(baseUrl, httpClientEngine, httpClientConfig) {
484
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
485
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
486
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
487
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
488
+ }
489
+ function SupplierApi(baseUrl, httpClientEngine, httpClientConfig) {
490
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
491
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
492
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
493
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
494
+ }
495
+ function TaskApi(baseUrl, httpClientEngine, httpClientConfig) {
496
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
497
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
498
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
499
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
500
+ }
501
+ function ThirdPartyInformationApi(baseUrl, httpClientEngine, httpClientConfig) {
502
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
503
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
504
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
505
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
506
+ }
507
+ function UserApi(baseUrl, httpClientEngine, httpClientConfig) {
508
+ baseUrl = baseUrl === VOID ? 'https://rearden.dev.solibo.io/api' : baseUrl;
509
+ httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
510
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
511
+ ApiClient.call(this, baseUrl, httpClientEngine, httpClientConfig);
512
+ }
513
+ function upperCaseBearer($this, scheme) {
514
+ return equals('bearer', scheme, true) ? 'Bearer' : scheme;
515
+ }
516
+ function HttpBearerAuth(scheme) {
517
+ this.v5g_1 = scheme;
518
+ this.w5g_1 = null;
519
+ }
520
+ protoOf(HttpBearerAuth).x5g = function (query, headers) {
521
+ var tmp0_elvis_lhs = this.w5g_1;
522
+ var tmp;
523
+ if (tmp0_elvis_lhs == null) {
524
+ return Unit_instance;
525
+ } else {
526
+ tmp = tmp0_elvis_lhs;
527
+ }
528
+ var token = tmp;
529
+ var tmp2 = 'Authorization';
530
+ // Inline function 'kotlin.collections.set' call
531
+ var value = (!(this.v5g_1 == null) ? ensureNotNull(upperCaseBearer(this, this.v5g_1)) + ' ' : '') + token;
532
+ headers.o2(tmp2, value);
533
+ };
534
+ function OAuth() {
535
+ this.y5g_1 = null;
536
+ }
537
+ protoOf(OAuth).x5g = function (query, headers) {
538
+ var tmp0_elvis_lhs = this.y5g_1;
539
+ var tmp;
540
+ if (tmp0_elvis_lhs == null) {
541
+ return Unit_instance;
542
+ } else {
543
+ tmp = tmp0_elvis_lhs;
544
+ }
545
+ var token = tmp;
546
+ var tmp2 = 'Authorization';
547
+ // Inline function 'kotlin.collections.set' call
548
+ var value = 'Bearer ' + token;
549
+ headers.o2(tmp2, value);
550
+ };
551
+ function _get_clientConfig__idlqta($this) {
552
+ var tmp0 = $this.v5f_1;
553
+ var tmp = KProperty1;
554
+ // Inline function 'kotlin.getValue' call
555
+ getPropertyCallableRef('clientConfig', 1, tmp, ApiClient$_get_clientConfig_$ref_y4z2mk(), null);
556
+ return tmp0.n1();
557
+ }
558
+ function _get_authentications__apunwq($this) {
559
+ var tmp0 = $this.x5f_1;
560
+ var tmp = KProperty1;
561
+ // Inline function 'kotlin.getValue' call
562
+ getPropertyCallableRef('authentications', 1, tmp, ApiClient$_get_authentications_$ref_9p12je(), null);
563
+ return tmp0.n1();
564
+ }
565
+ function Companion() {
566
+ Companion_instance = this;
567
+ this.z5g_1 = 'https://rearden.dev.solibo.io/api';
568
+ this.a5h_1 = listOf_0('Content-Type');
569
+ }
570
+ var Companion_instance;
571
+ function Companion_getInstance_1() {
572
+ if (Companion_instance == null)
573
+ new Companion();
574
+ return Companion_instance;
575
+ }
576
+ function updateForAuth($this, _this__u8e3s4, authNames) {
577
+ var _iterator__ex2g4s = authNames.t();
578
+ while (_iterator__ex2g4s.u()) {
579
+ var authName = _iterator__ex2g4s.v();
580
+ var tmp0_safe_receiver = _get_authentications__apunwq($this);
581
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v2(authName);
582
+ var tmp;
583
+ if (tmp1_elvis_lhs == null) {
584
+ throw Exception_init_$Create$('Authentication undefined: ' + authName);
585
+ } else {
586
+ tmp = tmp1_elvis_lhs;
587
+ }
588
+ var auth = tmp;
589
+ auth.x5g(_this__u8e3s4.f5h_1, _this__u8e3s4.d5h_1);
590
+ }
591
+ }
592
+ function appendPath($this, _this__u8e3s4, components) {
593
+ // Inline function 'kotlin.apply' call
594
+ var tmp = trimEnd(get_encodedPath(_this__u8e3s4), charArrayOf([_Char___init__impl__6a9atx(47)]));
595
+ set_encodedPath(_this__u8e3s4, tmp + joinToString(components, '/', '/', VOID, VOID, VOID, ApiClient$appendPath$lambda));
596
+ return _this__u8e3s4;
597
+ }
598
+ function _get_httpMethod__19f0m6($this, _this__u8e3s4) {
599
+ var tmp;
600
+ switch (_this__u8e3s4.a1_1) {
601
+ case 1:
602
+ tmp = Companion_getInstance().p2x_1;
603
+ break;
604
+ case 0:
605
+ tmp = Companion_getInstance().l2x_1;
606
+ break;
607
+ case 2:
608
+ tmp = Companion_getInstance().q2x_1;
609
+ break;
610
+ case 4:
611
+ tmp = Companion_getInstance().o2x_1;
612
+ break;
613
+ case 6:
614
+ tmp = Companion_getInstance().n2x_1;
615
+ break;
616
+ case 5:
617
+ tmp = Companion_getInstance().m2x_1;
618
+ break;
619
+ case 3:
620
+ tmp = Companion_getInstance().r2x_1;
621
+ break;
622
+ default:
623
+ noWhenBranchMatchedException();
624
+ break;
625
+ }
626
+ return tmp;
627
+ }
628
+ function ApiClient$clientConfig$delegate$lambda$lambda$lambda($this$install) {
629
+ return Unit_instance;
630
+ }
631
+ function ApiClient$clientConfig$delegate$lambda$lambda($httpClientConfig) {
632
+ return function (it) {
633
+ var tmp = get_ContentNegotiation();
634
+ it.c3p(tmp, ApiClient$clientConfig$delegate$lambda$lambda$lambda);
635
+ var tmp0_safe_receiver = $httpClientConfig;
636
+ if (tmp0_safe_receiver == null)
637
+ null;
638
+ else
639
+ tmp0_safe_receiver(it);
640
+ return Unit_instance;
641
+ };
642
+ }
643
+ function ApiClient$clientConfig$delegate$lambda($httpClientConfig) {
644
+ return function () {
645
+ return ApiClient$clientConfig$delegate$lambda$lambda($httpClientConfig);
646
+ };
647
+ }
648
+ function ApiClient$_get_clientConfig_$ref_y4z2mk() {
649
+ return function (p0) {
650
+ return _get_clientConfig__idlqta(p0);
651
+ };
652
+ }
653
+ function ApiClient$client$delegate$lambda($httpClientEngine, this$0) {
654
+ return function () {
655
+ var tmp0_safe_receiver = $httpClientEngine;
656
+ var tmp;
657
+ if (tmp0_safe_receiver == null) {
658
+ tmp = null;
659
+ } else {
660
+ // Inline function 'kotlin.let' call
661
+ tmp = HttpClient(tmp0_safe_receiver, _get_clientConfig__idlqta(this$0));
662
+ }
663
+ var tmp1_elvis_lhs = tmp;
664
+ return tmp1_elvis_lhs == null ? HttpClient_0(_get_clientConfig__idlqta(this$0)) : tmp1_elvis_lhs;
665
+ };
666
+ }
667
+ function ApiClient$_get_client_$ref_md59n6() {
668
+ return function (p0) {
669
+ return p0.u5g();
670
+ };
671
+ }
672
+ function ApiClient$authentications$delegate$lambda() {
673
+ return mapOf([to('cognito', new OAuth()), to('cognito-direct', new HttpBearerAuth('bearer'))]);
674
+ }
675
+ function ApiClient$_get_authentications_$ref_9p12je() {
676
+ return function (p0) {
677
+ return _get_authentications__apunwq(p0);
678
+ };
679
+ }
680
+ function ApiClient$request$lambda(this$0, $requestConfig, $$this$request) {
681
+ return function ($this$url, it) {
682
+ takeFrom($this$url, URLBuilder(this$0.u5f_1));
683
+ appendPath(this$0, $this$url, split(trimStart($requestConfig.c5h_1, charArrayOf([_Char___init__impl__6a9atx(47)])), charArrayOf([_Char___init__impl__6a9atx(47)])));
684
+ // Inline function 'kotlin.collections.forEach' call
685
+ // Inline function 'kotlin.collections.iterator' call
686
+ var _iterator__ex2g4s = $requestConfig.f5h_1.l1().t();
687
+ while (_iterator__ex2g4s.u()) {
688
+ var element = _iterator__ex2g4s.v();
689
+ // Inline function 'kotlin.collections.forEach' call
690
+ var _iterator__ex2g4s_0 = element.n1().t();
691
+ while (_iterator__ex2g4s_0.u()) {
692
+ var element_0 = _iterator__ex2g4s_0.v();
693
+ parameter($$this$request, element.m1(), element_0);
694
+ }
695
+ }
696
+ return Unit_instance;
697
+ };
698
+ }
699
+ function ApiClient$appendPath$lambda(it) {
700
+ return encodeURLQueryComponent(it);
701
+ }
702
+ function $requestCOROUTINE$(_this__u8e3s4, requestConfig, body, authNames, resultContinuation) {
703
+ CoroutineImpl.call(this, resultContinuation);
704
+ this.q5h_1 = _this__u8e3s4;
705
+ this.r5h_1 = requestConfig;
706
+ this.s5h_1 = body;
707
+ this.t5h_1 = authNames;
708
+ }
709
+ protoOf($requestCOROUTINE$).q8 = function () {
710
+ var suspendResult = this.k8_1;
711
+ $sm: do
712
+ try {
713
+ var tmp = this.i8_1;
714
+ switch (tmp) {
715
+ case 0:
716
+ this.j8_1 = 2;
717
+ updateForAuth(this.q5h_1, this.r5h_1, this.t5h_1);
718
+ var headers = this.r5h_1.d5h_1;
719
+ var tmp0 = this.q5h_1.u5g();
720
+ var this_0 = new HttpRequestBuilder();
721
+ this_0.l53(ApiClient$request$lambda(this.q5h_1, this.r5h_1, this_0));
722
+ this_0.v3n_1 = _get_httpMethod__19f0m6(this.q5h_1, this.r5h_1.b5h_1);
723
+ var destination = LinkedHashMap_init_$Create$();
724
+ var _iterator__ex2g4s = headers.l1().t();
725
+ while (_iterator__ex2g4s.u()) {
726
+ var element = _iterator__ex2g4s.v();
727
+ if (!Companion_getInstance_1().a5h_1.h2(element.m1())) {
728
+ destination.o2(element.m1(), element.n1());
729
+ }
730
+ }
731
+
732
+ var _iterator__ex2g4s_0 = destination.l1().t();
733
+ while (_iterator__ex2g4s_0.u()) {
734
+ var element_0 = _iterator__ex2g4s_0.v();
735
+ header(this_0, element_0.m1(), element_0.n1());
736
+ }
737
+
738
+ if (listOf([RequestMethod_PUT_getInstance(), RequestMethod_POST_getInstance(), RequestMethod_PATCH_getInstance()]).h2(this.r5h_1.b5h_1)) {
739
+ var tmp0_safe_receiver = this.r5h_1.d5h_1.v2('Content-Type');
740
+ var tmp_0;
741
+ if (tmp0_safe_receiver == null) {
742
+ tmp_0 = null;
743
+ } else {
744
+ tmp_0 = Companion_getInstance_0().rm(tmp0_safe_receiver);
745
+ }
746
+ var tmp1_elvis_lhs = tmp_0;
747
+ var contentType_0 = tmp1_elvis_lhs == null ? Application_getInstance().g2q_1 : tmp1_elvis_lhs;
748
+ contentType(this_0, contentType_0);
749
+ var body = this.s5h_1;
750
+ if (body == null) {
751
+ this_0.x3n_1 = NullBody_instance;
752
+ var tmp_1 = PrimitiveClasses_getInstance().ya();
753
+ var tmp_2;
754
+ try {
755
+ tmp_2 = createKType(PrimitiveClasses_getInstance().ya(), arrayOf([]), true);
756
+ } catch ($p) {
757
+ var tmp_3;
758
+ if ($p instanceof Error) {
759
+ var _unused_var__etf5q3 = $p;
760
+ tmp_3 = null;
761
+ } else {
762
+ throw $p;
763
+ }
764
+ tmp_2 = tmp_3;
765
+ }
766
+ this_0.a3u(new TypeInfo(tmp_1, tmp_2));
767
+ } else {
768
+ if (body instanceof OutgoingContent) {
769
+ this_0.x3n_1 = body;
770
+ this_0.a3u(null);
771
+ } else {
772
+ this_0.x3n_1 = body;
773
+ var tmp_4 = PrimitiveClasses_getInstance().ya();
774
+ var tmp_5;
775
+ try {
776
+ tmp_5 = createKType(PrimitiveClasses_getInstance().ya(), arrayOf([]), true);
777
+ } catch ($p) {
778
+ var tmp_6;
779
+ if ($p instanceof Error) {
780
+ var _unused_var__etf5q3_0 = $p;
781
+ tmp_6 = null;
782
+ } else {
783
+ throw $p;
784
+ }
785
+ tmp_5 = tmp_6;
786
+ }
787
+ this_0.a3u(new TypeInfo(tmp_4, tmp_5));
788
+ }
789
+ }
790
+ }
791
+
792
+ this.i8_1 = 1;
793
+ suspendResult = (new HttpStatement(this_0, tmp0)).m56(this);
794
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
795
+ return suspendResult;
796
+ }
797
+
798
+ continue $sm;
799
+ case 1:
800
+ return suspendResult;
801
+ case 2:
802
+ throw this.l8_1;
803
+ }
804
+ } catch ($p) {
805
+ var e = $p;
806
+ if (this.j8_1 === 2) {
807
+ throw e;
808
+ } else {
809
+ this.i8_1 = this.j8_1;
810
+ this.l8_1 = e;
811
+ }
812
+ }
813
+ while (true);
814
+ };
815
+ function ApiClient(baseUrl, httpClientEngine, httpClientConfig) {
816
+ Companion_getInstance_1();
817
+ httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
818
+ this.u5f_1 = baseUrl;
819
+ var tmp = this;
820
+ tmp.v5f_1 = lazy(ApiClient$clientConfig$delegate$lambda(httpClientConfig));
821
+ var tmp_0 = this;
822
+ tmp_0.w5f_1 = lazy(ApiClient$client$delegate$lambda(httpClientEngine, this));
823
+ var tmp_1 = this;
824
+ tmp_1.x5f_1 = lazy(ApiClient$authentications$delegate$lambda);
825
+ }
826
+ protoOf(ApiClient).u5g = function () {
827
+ var tmp0 = this.w5f_1;
828
+ var tmp = KProperty1;
829
+ // Inline function 'kotlin.getValue' call
830
+ getPropertyCallableRef('client', 1, tmp, ApiClient$_get_client_$ref_md59n6(), null);
831
+ return tmp0.n1();
832
+ };
833
+ protoOf(ApiClient).y5f = function (requestConfig, body, authNames, $completion) {
834
+ return this.n5g(requestConfig, body, authNames, $completion);
835
+ };
836
+ protoOf(ApiClient).n5g = function (requestConfig, body, authNames, $completion) {
837
+ var tmp = new $requestCOROUTINE$(this, requestConfig, body, authNames, $completion);
838
+ tmp.k8_1 = Unit_instance;
839
+ tmp.l8_1 = null;
840
+ return tmp.q8();
841
+ };
842
+ function mapEntries($this, _this__u8e3s4) {
843
+ // Inline function 'kotlin.collections.mutableMapOf' call
844
+ var result = LinkedHashMap_init_$Create$();
845
+ // Inline function 'kotlin.collections.forEach' call
846
+ var _iterator__ex2g4s = _this__u8e3s4.y2j().t();
847
+ while (_iterator__ex2g4s.u()) {
848
+ var element = _iterator__ex2g4s.v();
849
+ var tmp2 = element.m1();
850
+ // Inline function 'kotlin.collections.set' call
851
+ var value = element.n1();
852
+ result.o2(tmp2, value);
853
+ }
854
+ return result;
855
+ }
856
+ function Companion_0() {
857
+ }
858
+ var Companion_instance_0;
859
+ function Companion_getInstance_2() {
860
+ return Companion_instance_0;
861
+ }
862
+ function HttpResponse(response, provider) {
863
+ this.u5h_1 = response;
864
+ this.v5h_1 = provider;
865
+ this.w5h_1 = this.u5h_1.k33().i30_1;
866
+ this.x5h_1 = isSuccess(this.u5h_1.k33());
867
+ this.y5h_1 = mapEntries(Companion_instance_0, this.u5h_1.k2x());
868
+ }
869
+ protoOf(HttpResponse).z5h = function ($completion) {
870
+ return this.v5h_1.a5i(this.u5h_1, $completion);
871
+ };
872
+ function $bodyCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
873
+ CoroutineImpl.call(this, resultContinuation);
874
+ this.j5i_1 = _this__u8e3s4;
875
+ this.k5i_1 = response;
876
+ }
877
+ protoOf($bodyCOROUTINE$).q8 = function () {
878
+ var suspendResult = this.k8_1;
879
+ $sm: do
880
+ try {
881
+ var tmp = this.i8_1;
882
+ switch (tmp) {
883
+ case 0:
884
+ this.j8_1 = 2;
885
+ this.i8_1 = 1;
886
+ suspendResult = this.k5i_1.l3p().i3p(this.j5i_1.l5i_1, this);
887
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
888
+ return suspendResult;
889
+ }
890
+
891
+ continue $sm;
892
+ case 1:
893
+ return !(suspendResult == null) ? suspendResult : THROW_CCE();
894
+ case 2:
895
+ throw this.l8_1;
896
+ }
897
+ } catch ($p) {
898
+ var e = $p;
899
+ if (this.j8_1 === 2) {
900
+ throw e;
901
+ } else {
902
+ this.i8_1 = this.j8_1;
903
+ this.l8_1 = e;
904
+ }
905
+ }
906
+ while (true);
907
+ };
908
+ function TypedBodyProvider(type) {
909
+ this.l5i_1 = type;
910
+ }
911
+ protoOf(TypedBodyProvider).a5i = function (response, $completion) {
912
+ var tmp = new $bodyCOROUTINE$(this, response, $completion);
913
+ tmp.k8_1 = Unit_instance;
914
+ tmp.l8_1 = null;
915
+ return tmp.q8();
916
+ };
917
+ function RequestConfig(method, path, headers, params, query, requiresAuthentication, body) {
918
+ var tmp;
919
+ if (headers === VOID) {
920
+ // Inline function 'kotlin.collections.mutableMapOf' call
921
+ tmp = LinkedHashMap_init_$Create$();
922
+ } else {
923
+ tmp = headers;
924
+ }
925
+ headers = tmp;
926
+ var tmp_0;
927
+ if (params === VOID) {
928
+ // Inline function 'kotlin.collections.mutableMapOf' call
929
+ tmp_0 = LinkedHashMap_init_$Create$();
930
+ } else {
931
+ tmp_0 = params;
932
+ }
933
+ params = tmp_0;
934
+ var tmp_1;
935
+ if (query === VOID) {
936
+ // Inline function 'kotlin.collections.mutableMapOf' call
937
+ tmp_1 = LinkedHashMap_init_$Create$();
938
+ } else {
939
+ tmp_1 = query;
940
+ }
941
+ query = tmp_1;
942
+ body = body === VOID ? null : body;
943
+ this.b5h_1 = method;
944
+ this.c5h_1 = path;
945
+ this.d5h_1 = headers;
946
+ this.e5h_1 = params;
947
+ this.f5h_1 = query;
948
+ this.g5h_1 = requiresAuthentication;
949
+ this.h5h_1 = body;
950
+ }
951
+ protoOf(RequestConfig).toString = function () {
952
+ return 'RequestConfig(method=' + this.b5h_1.toString() + ', path=' + this.c5h_1 + ', headers=' + toString(this.d5h_1) + ', params=' + toString(this.e5h_1) + ', query=' + toString(this.f5h_1) + ', requiresAuthentication=' + this.g5h_1 + ', body=' + toString_0(this.h5h_1) + ')';
953
+ };
954
+ protoOf(RequestConfig).hashCode = function () {
955
+ var result = this.b5h_1.hashCode();
956
+ result = imul(result, 31) + getStringHashCode(this.c5h_1) | 0;
957
+ result = imul(result, 31) + hashCode(this.d5h_1) | 0;
958
+ result = imul(result, 31) + hashCode(this.e5h_1) | 0;
959
+ result = imul(result, 31) + hashCode(this.f5h_1) | 0;
960
+ result = imul(result, 31) + getBooleanHashCode(this.g5h_1) | 0;
961
+ result = imul(result, 31) + (this.h5h_1 == null ? 0 : hashCode(this.h5h_1)) | 0;
962
+ return result;
963
+ };
964
+ protoOf(RequestConfig).equals = function (other) {
965
+ if (this === other)
966
+ return true;
967
+ if (!(other instanceof RequestConfig))
968
+ return false;
969
+ if (!this.b5h_1.equals(other.b5h_1))
970
+ return false;
971
+ if (!(this.c5h_1 === other.c5h_1))
972
+ return false;
973
+ if (!equals_0(this.d5h_1, other.d5h_1))
974
+ return false;
975
+ if (!equals_0(this.e5h_1, other.e5h_1))
976
+ return false;
977
+ if (!equals_0(this.f5h_1, other.f5h_1))
978
+ return false;
979
+ if (!(this.g5h_1 === other.g5h_1))
980
+ return false;
981
+ if (!equals_0(this.h5h_1, other.h5h_1))
982
+ return false;
983
+ return true;
984
+ };
985
+ var RequestMethod_GET_instance;
986
+ var RequestMethod_DELETE_instance;
987
+ var RequestMethod_HEAD_instance;
988
+ var RequestMethod_OPTIONS_instance;
989
+ var RequestMethod_PATCH_instance;
990
+ var RequestMethod_POST_instance;
991
+ var RequestMethod_PUT_instance;
992
+ var RequestMethod_entriesInitialized;
993
+ function RequestMethod_initEntries() {
994
+ if (RequestMethod_entriesInitialized)
995
+ return Unit_instance;
996
+ RequestMethod_entriesInitialized = true;
997
+ RequestMethod_GET_instance = new RequestMethod('GET', 0);
998
+ RequestMethod_DELETE_instance = new RequestMethod('DELETE', 1);
999
+ RequestMethod_HEAD_instance = new RequestMethod('HEAD', 2);
1000
+ RequestMethod_OPTIONS_instance = new RequestMethod('OPTIONS', 3);
1001
+ RequestMethod_PATCH_instance = new RequestMethod('PATCH', 4);
1002
+ RequestMethod_POST_instance = new RequestMethod('POST', 5);
1003
+ RequestMethod_PUT_instance = new RequestMethod('PUT', 6);
1004
+ }
1005
+ function RequestMethod(name, ordinal) {
1006
+ Enum.call(this, name, ordinal);
1007
+ }
1008
+ function RequestMethod_DELETE_getInstance() {
1009
+ RequestMethod_initEntries();
1010
+ return RequestMethod_DELETE_instance;
1011
+ }
1012
+ function RequestMethod_PATCH_getInstance() {
1013
+ RequestMethod_initEntries();
1014
+ return RequestMethod_PATCH_instance;
1015
+ }
1016
+ function RequestMethod_POST_getInstance() {
1017
+ RequestMethod_initEntries();
1018
+ return RequestMethod_POST_instance;
1019
+ }
1020
+ function RequestMethod_PUT_getInstance() {
1021
+ RequestMethod_initEntries();
1022
+ return RequestMethod_PUT_instance;
1023
+ }
1024
+ function AuthChallenge$Companion$$childSerializers$_anonymous__x9rkfl() {
1025
+ return new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance());
1026
+ }
1027
+ function AuthChallenge$Companion$$childSerializers$_anonymous__x9rkfl_0() {
1028
+ var tmp = getKClass(AuthChallengeType);
1029
+ var tmp_0 = Companion_getInstance_4().n5i();
1030
+ // Inline function 'kotlin.arrayOf' call
1031
+ // Inline function 'kotlin.js.unsafeCast' call
1032
+ // Inline function 'kotlin.js.asDynamic' call
1033
+ var tmp$ret$2 = [];
1034
+ return new ContextualSerializer(tmp, tmp_0, tmp$ret$2);
1035
+ }
1036
+ function Companion_1() {
1037
+ Companion_instance_1 = this;
1038
+ var tmp = this;
1039
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1040
+ var tmp_1 = lazy_0(tmp_0, AuthChallenge$Companion$$childSerializers$_anonymous__x9rkfl);
1041
+ var tmp_2 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1042
+ // Inline function 'kotlin.arrayOf' call
1043
+ // Inline function 'kotlin.js.unsafeCast' call
1044
+ // Inline function 'kotlin.js.asDynamic' call
1045
+ tmp.o5i_1 = [tmp_1, lazy_0(tmp_2, AuthChallenge$Companion$$childSerializers$_anonymous__x9rkfl_0)];
1046
+ }
1047
+ var Companion_instance_1;
1048
+ function Companion_getInstance_3() {
1049
+ if (Companion_instance_1 == null)
1050
+ new Companion_1();
1051
+ return Companion_instance_1;
1052
+ }
1053
+ function $serializer() {
1054
+ $serializer_instance = this;
1055
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.model.AuthChallenge', this, 2);
1056
+ tmp0_serialDesc.i26('params', false);
1057
+ tmp0_serialDesc.i26('type', false);
1058
+ this.p5i_1 = tmp0_serialDesc;
1059
+ }
1060
+ protoOf($serializer).q5i = function (encoder, value) {
1061
+ var tmp0_desc = this.p5i_1;
1062
+ var tmp1_output = encoder.u1y(tmp0_desc);
1063
+ var tmp2_cached = Companion_getInstance_3().o5i_1;
1064
+ tmp1_output.k20(tmp0_desc, 0, tmp2_cached[0].n1(), value.r5i_1);
1065
+ tmp1_output.k20(tmp0_desc, 1, tmp2_cached[1].n1(), value.s5i_1);
1066
+ tmp1_output.v1y(tmp0_desc);
1067
+ };
1068
+ protoOf($serializer).b1w = function (encoder, value) {
1069
+ return this.q5i(encoder, value instanceof AuthChallenge ? value : THROW_CCE());
1070
+ };
1071
+ protoOf($serializer).c1w = function (decoder) {
1072
+ var tmp0_desc = this.p5i_1;
1073
+ var tmp1_flag = true;
1074
+ var tmp2_index = 0;
1075
+ var tmp3_bitMask0 = 0;
1076
+ var tmp4_local0 = null;
1077
+ var tmp5_local1 = null;
1078
+ var tmp6_input = decoder.u1y(tmp0_desc);
1079
+ var tmp7_cached = Companion_getInstance_3().o5i_1;
1080
+ if (tmp6_input.j1z()) {
1081
+ tmp4_local0 = tmp6_input.g1z(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
1082
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1083
+ tmp5_local1 = tmp6_input.g1z(tmp0_desc, 1, tmp7_cached[1].n1(), tmp5_local1);
1084
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1085
+ } else
1086
+ while (tmp1_flag) {
1087
+ tmp2_index = tmp6_input.k1z(tmp0_desc);
1088
+ switch (tmp2_index) {
1089
+ case -1:
1090
+ tmp1_flag = false;
1091
+ break;
1092
+ case 0:
1093
+ tmp4_local0 = tmp6_input.g1z(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
1094
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1095
+ break;
1096
+ case 1:
1097
+ tmp5_local1 = tmp6_input.g1z(tmp0_desc, 1, tmp7_cached[1].n1(), tmp5_local1);
1098
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1099
+ break;
1100
+ default:
1101
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1102
+ }
1103
+ }
1104
+ tmp6_input.v1y(tmp0_desc);
1105
+ return AuthChallenge_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1106
+ };
1107
+ protoOf($serializer).o1v = function () {
1108
+ return this.p5i_1;
1109
+ };
1110
+ protoOf($serializer).z26 = function () {
1111
+ var tmp0_cached = Companion_getInstance_3().o5i_1;
1112
+ // Inline function 'kotlin.arrayOf' call
1113
+ // Inline function 'kotlin.js.unsafeCast' call
1114
+ // Inline function 'kotlin.js.asDynamic' call
1115
+ return [tmp0_cached[0].n1(), tmp0_cached[1].n1()];
1116
+ };
1117
+ var $serializer_instance;
1118
+ function $serializer_getInstance() {
1119
+ if ($serializer_instance == null)
1120
+ new $serializer();
1121
+ return $serializer_instance;
1122
+ }
1123
+ function AuthChallenge_init_$Init$(seen0, params, type, serializationConstructorMarker, $this) {
1124
+ if (!(3 === (3 & seen0))) {
1125
+ throwMissingFieldException(seen0, 3, $serializer_getInstance().p5i_1);
1126
+ }
1127
+ $this.r5i_1 = params;
1128
+ $this.s5i_1 = type;
1129
+ return $this;
1130
+ }
1131
+ function AuthChallenge_init_$Create$(seen0, params, type, serializationConstructorMarker) {
1132
+ return AuthChallenge_init_$Init$(seen0, params, type, serializationConstructorMarker, objectCreate(protoOf(AuthChallenge)));
1133
+ }
1134
+ function AuthChallenge() {
1135
+ }
1136
+ protoOf(AuthChallenge).toString = function () {
1137
+ return 'AuthChallenge(params=' + toString(this.r5i_1) + ', type=' + this.s5i_1.toString() + ')';
1138
+ };
1139
+ protoOf(AuthChallenge).hashCode = function () {
1140
+ var result = hashCode(this.r5i_1);
1141
+ result = imul(result, 31) + this.s5i_1.hashCode() | 0;
1142
+ return result;
1143
+ };
1144
+ protoOf(AuthChallenge).equals = function (other) {
1145
+ if (this === other)
1146
+ return true;
1147
+ if (!(other instanceof AuthChallenge))
1148
+ return false;
1149
+ if (!equals_0(this.r5i_1, other.r5i_1))
1150
+ return false;
1151
+ if (!this.s5i_1.equals(other.s5i_1))
1152
+ return false;
1153
+ return true;
1154
+ };
1155
+ function _get_$cachedSerializer__te6jhj($this) {
1156
+ return $this.m5i_1.n1();
1157
+ }
1158
+ function AuthChallengeType$Companion$_anonymous__mmegva() {
1159
+ var tmp = values();
1160
+ // Inline function 'kotlin.arrayOf' call
1161
+ // Inline function 'kotlin.js.unsafeCast' call
1162
+ // Inline function 'kotlin.js.asDynamic' call
1163
+ var tmp_0 = ['SMS_MFA', 'EMAIL_TOTF_MFA', 'TOTF_MFA', 'SELECT_MFA', 'SETUP_MFA', 'DEVICE_SRP', 'DEVICE_VERIFIER', 'NEW_PASSWORD', 'ADMIN_NO_SRP', 'PASSWORD_VERIFIER', 'CUSTOM_CHALLENGE'];
1164
+ // Inline function 'kotlin.arrayOf' call
1165
+ // Inline function 'kotlin.js.unsafeCast' call
1166
+ // Inline function 'kotlin.js.asDynamic' call
1167
+ var tmp$ret$5 = [null, null, null, null, null, null, null, null, null, null, null];
1168
+ return createAnnotatedEnumSerializer('no.solibo.oss.sdk.api.gen.model.AuthChallengeType', tmp, tmp_0, tmp$ret$5, null);
1169
+ }
1170
+ var AuthChallengeType_SMS_MFA_instance;
1171
+ var AuthChallengeType_EMAIL_TOTF_MFA_instance;
1172
+ var AuthChallengeType_TOTF_MFA_instance;
1173
+ var AuthChallengeType_SELECT_MFA_instance;
1174
+ var AuthChallengeType_SETUP_MFA_instance;
1175
+ var AuthChallengeType_DEVICE_SRP_instance;
1176
+ var AuthChallengeType_DEVICE_VERIFIER_instance;
1177
+ var AuthChallengeType_NEW_PASSWORD_instance;
1178
+ var AuthChallengeType_ADMIN_NO_SRP_instance;
1179
+ var AuthChallengeType_PASSWORD_VERIFIER_instance;
1180
+ var AuthChallengeType_CUSTOM_CHALLENGE_instance;
1181
+ function Companion_2() {
1182
+ Companion_instance_2 = this;
1183
+ var tmp = this;
1184
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1185
+ tmp.m5i_1 = lazy_0(tmp_0, AuthChallengeType$Companion$_anonymous__mmegva);
1186
+ }
1187
+ protoOf(Companion_2).n5i = function () {
1188
+ return _get_$cachedSerializer__te6jhj(this);
1189
+ };
1190
+ protoOf(Companion_2).k27 = function (typeParamsSerializers) {
1191
+ return this.n5i();
1192
+ };
1193
+ var Companion_instance_2;
1194
+ function Companion_getInstance_4() {
1195
+ AuthChallengeType_initEntries();
1196
+ if (Companion_instance_2 == null)
1197
+ new Companion_2();
1198
+ return Companion_instance_2;
1199
+ }
1200
+ function values() {
1201
+ return [AuthChallengeType_SMS_MFA_getInstance(), AuthChallengeType_EMAIL_TOTF_MFA_getInstance(), AuthChallengeType_TOTF_MFA_getInstance(), AuthChallengeType_SELECT_MFA_getInstance(), AuthChallengeType_SETUP_MFA_getInstance(), AuthChallengeType_DEVICE_SRP_getInstance(), AuthChallengeType_DEVICE_VERIFIER_getInstance(), AuthChallengeType_NEW_PASSWORD_getInstance(), AuthChallengeType_ADMIN_NO_SRP_getInstance(), AuthChallengeType_PASSWORD_VERIFIER_getInstance(), AuthChallengeType_CUSTOM_CHALLENGE_getInstance()];
1202
+ }
1203
+ var AuthChallengeType_entriesInitialized;
1204
+ function AuthChallengeType_initEntries() {
1205
+ if (AuthChallengeType_entriesInitialized)
1206
+ return Unit_instance;
1207
+ AuthChallengeType_entriesInitialized = true;
1208
+ AuthChallengeType_SMS_MFA_instance = new AuthChallengeType('SMS_MFA', 0, 'SMS_MFA');
1209
+ AuthChallengeType_EMAIL_TOTF_MFA_instance = new AuthChallengeType('EMAIL_TOTF_MFA', 1, 'EMAIL_TOTF_MFA');
1210
+ AuthChallengeType_TOTF_MFA_instance = new AuthChallengeType('TOTF_MFA', 2, 'TOTF_MFA');
1211
+ AuthChallengeType_SELECT_MFA_instance = new AuthChallengeType('SELECT_MFA', 3, 'SELECT_MFA');
1212
+ AuthChallengeType_SETUP_MFA_instance = new AuthChallengeType('SETUP_MFA', 4, 'SETUP_MFA');
1213
+ AuthChallengeType_DEVICE_SRP_instance = new AuthChallengeType('DEVICE_SRP', 5, 'DEVICE_SRP');
1214
+ AuthChallengeType_DEVICE_VERIFIER_instance = new AuthChallengeType('DEVICE_VERIFIER', 6, 'DEVICE_VERIFIER');
1215
+ AuthChallengeType_NEW_PASSWORD_instance = new AuthChallengeType('NEW_PASSWORD', 7, 'NEW_PASSWORD');
1216
+ AuthChallengeType_ADMIN_NO_SRP_instance = new AuthChallengeType('ADMIN_NO_SRP', 8, 'ADMIN_NO_SRP');
1217
+ AuthChallengeType_PASSWORD_VERIFIER_instance = new AuthChallengeType('PASSWORD_VERIFIER', 9, 'PASSWORD_VERIFIER');
1218
+ AuthChallengeType_CUSTOM_CHALLENGE_instance = new AuthChallengeType('CUSTOM_CHALLENGE', 10, 'CUSTOM_CHALLENGE');
1219
+ Companion_getInstance_4();
1220
+ }
1221
+ function AuthChallengeType(name, ordinal, value) {
1222
+ Enum.call(this, name, ordinal);
1223
+ this.v5i_1 = value;
1224
+ }
1225
+ protoOf(AuthChallengeType).toString = function () {
1226
+ return this.v5i_1;
1227
+ };
1228
+ function AuthChallengeType_SMS_MFA_getInstance() {
1229
+ AuthChallengeType_initEntries();
1230
+ return AuthChallengeType_SMS_MFA_instance;
1231
+ }
1232
+ function AuthChallengeType_EMAIL_TOTF_MFA_getInstance() {
1233
+ AuthChallengeType_initEntries();
1234
+ return AuthChallengeType_EMAIL_TOTF_MFA_instance;
1235
+ }
1236
+ function AuthChallengeType_TOTF_MFA_getInstance() {
1237
+ AuthChallengeType_initEntries();
1238
+ return AuthChallengeType_TOTF_MFA_instance;
1239
+ }
1240
+ function AuthChallengeType_SELECT_MFA_getInstance() {
1241
+ AuthChallengeType_initEntries();
1242
+ return AuthChallengeType_SELECT_MFA_instance;
1243
+ }
1244
+ function AuthChallengeType_SETUP_MFA_getInstance() {
1245
+ AuthChallengeType_initEntries();
1246
+ return AuthChallengeType_SETUP_MFA_instance;
1247
+ }
1248
+ function AuthChallengeType_DEVICE_SRP_getInstance() {
1249
+ AuthChallengeType_initEntries();
1250
+ return AuthChallengeType_DEVICE_SRP_instance;
1251
+ }
1252
+ function AuthChallengeType_DEVICE_VERIFIER_getInstance() {
1253
+ AuthChallengeType_initEntries();
1254
+ return AuthChallengeType_DEVICE_VERIFIER_instance;
1255
+ }
1256
+ function AuthChallengeType_NEW_PASSWORD_getInstance() {
1257
+ AuthChallengeType_initEntries();
1258
+ return AuthChallengeType_NEW_PASSWORD_instance;
1259
+ }
1260
+ function AuthChallengeType_ADMIN_NO_SRP_getInstance() {
1261
+ AuthChallengeType_initEntries();
1262
+ return AuthChallengeType_ADMIN_NO_SRP_instance;
1263
+ }
1264
+ function AuthChallengeType_PASSWORD_VERIFIER_getInstance() {
1265
+ AuthChallengeType_initEntries();
1266
+ return AuthChallengeType_PASSWORD_VERIFIER_instance;
1267
+ }
1268
+ function AuthChallengeType_CUSTOM_CHALLENGE_getInstance() {
1269
+ AuthChallengeType_initEntries();
1270
+ return AuthChallengeType_CUSTOM_CHALLENGE_instance;
1271
+ }
1272
+ function Companion_3() {
1273
+ }
1274
+ var Companion_instance_3;
1275
+ function Companion_getInstance_5() {
1276
+ return Companion_instance_3;
1277
+ }
1278
+ function $serializer_0() {
1279
+ $serializer_instance_0 = this;
1280
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.model.RefreshTokensCommand', this, 5);
1281
+ tmp0_serialDesc.i26('clientId', false);
1282
+ tmp0_serialDesc.i26('deviceKey', true);
1283
+ tmp0_serialDesc.i26('fingerprint', true);
1284
+ tmp0_serialDesc.i26('refreshToken', true);
1285
+ tmp0_serialDesc.i26('userId', true);
1286
+ this.w5i_1 = tmp0_serialDesc;
1287
+ }
1288
+ protoOf($serializer_0).x5i = function (encoder, value) {
1289
+ var tmp0_desc = this.w5i_1;
1290
+ var tmp1_output = encoder.u1y(tmp0_desc);
1291
+ tmp1_output.i20(tmp0_desc, 0, value.y5i_1);
1292
+ if (tmp1_output.p20(tmp0_desc, 1) ? true : !(value.z5i_1 == null)) {
1293
+ tmp1_output.l20(tmp0_desc, 1, StringSerializer_getInstance(), value.z5i_1);
1294
+ }
1295
+ if (tmp1_output.p20(tmp0_desc, 2) ? true : !(value.a5j_1 == null)) {
1296
+ tmp1_output.l20(tmp0_desc, 2, StringSerializer_getInstance(), value.a5j_1);
1297
+ }
1298
+ if (tmp1_output.p20(tmp0_desc, 3) ? true : !(value.b5j_1 == null)) {
1299
+ tmp1_output.l20(tmp0_desc, 3, StringSerializer_getInstance(), value.b5j_1);
1300
+ }
1301
+ if (tmp1_output.p20(tmp0_desc, 4) ? true : !(value.c5j_1 == null)) {
1302
+ tmp1_output.l20(tmp0_desc, 4, StringSerializer_getInstance(), value.c5j_1);
1303
+ }
1304
+ tmp1_output.v1y(tmp0_desc);
1305
+ };
1306
+ protoOf($serializer_0).b1w = function (encoder, value) {
1307
+ return this.x5i(encoder, value instanceof RefreshTokensCommand ? value : THROW_CCE());
1308
+ };
1309
+ protoOf($serializer_0).c1w = function (decoder) {
1310
+ var tmp0_desc = this.w5i_1;
1311
+ var tmp1_flag = true;
1312
+ var tmp2_index = 0;
1313
+ var tmp3_bitMask0 = 0;
1314
+ var tmp4_local0 = null;
1315
+ var tmp5_local1 = null;
1316
+ var tmp6_local2 = null;
1317
+ var tmp7_local3 = null;
1318
+ var tmp8_local4 = null;
1319
+ var tmp9_input = decoder.u1y(tmp0_desc);
1320
+ if (tmp9_input.j1z()) {
1321
+ tmp4_local0 = tmp9_input.e1z(tmp0_desc, 0);
1322
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1323
+ tmp5_local1 = tmp9_input.i1z(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
1324
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1325
+ tmp6_local2 = tmp9_input.i1z(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1326
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1327
+ tmp7_local3 = tmp9_input.i1z(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
1328
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1329
+ tmp8_local4 = tmp9_input.i1z(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1330
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1331
+ } else
1332
+ while (tmp1_flag) {
1333
+ tmp2_index = tmp9_input.k1z(tmp0_desc);
1334
+ switch (tmp2_index) {
1335
+ case -1:
1336
+ tmp1_flag = false;
1337
+ break;
1338
+ case 0:
1339
+ tmp4_local0 = tmp9_input.e1z(tmp0_desc, 0);
1340
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1341
+ break;
1342
+ case 1:
1343
+ tmp5_local1 = tmp9_input.i1z(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
1344
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1345
+ break;
1346
+ case 2:
1347
+ tmp6_local2 = tmp9_input.i1z(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1348
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1349
+ break;
1350
+ case 3:
1351
+ tmp7_local3 = tmp9_input.i1z(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
1352
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1353
+ break;
1354
+ case 4:
1355
+ tmp8_local4 = tmp9_input.i1z(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1356
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1357
+ break;
1358
+ default:
1359
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1360
+ }
1361
+ }
1362
+ tmp9_input.v1y(tmp0_desc);
1363
+ return RefreshTokensCommand_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
1364
+ };
1365
+ protoOf($serializer_0).o1v = function () {
1366
+ return this.w5i_1;
1367
+ };
1368
+ protoOf($serializer_0).z26 = function () {
1369
+ // Inline function 'kotlin.arrayOf' call
1370
+ // Inline function 'kotlin.js.unsafeCast' call
1371
+ // Inline function 'kotlin.js.asDynamic' call
1372
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
1373
+ };
1374
+ var $serializer_instance_0;
1375
+ function $serializer_getInstance_0() {
1376
+ if ($serializer_instance_0 == null)
1377
+ new $serializer_0();
1378
+ return $serializer_instance_0;
1379
+ }
1380
+ function RefreshTokensCommand_init_$Init$(seen0, clientId, deviceKey, fingerprint, refreshToken, userId, serializationConstructorMarker, $this) {
1381
+ if (!(1 === (1 & seen0))) {
1382
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_0().w5i_1);
1383
+ }
1384
+ $this.y5i_1 = clientId;
1385
+ if (0 === (seen0 & 2))
1386
+ $this.z5i_1 = null;
1387
+ else
1388
+ $this.z5i_1 = deviceKey;
1389
+ if (0 === (seen0 & 4))
1390
+ $this.a5j_1 = null;
1391
+ else
1392
+ $this.a5j_1 = fingerprint;
1393
+ if (0 === (seen0 & 8))
1394
+ $this.b5j_1 = null;
1395
+ else
1396
+ $this.b5j_1 = refreshToken;
1397
+ if (0 === (seen0 & 16))
1398
+ $this.c5j_1 = null;
1399
+ else
1400
+ $this.c5j_1 = userId;
1401
+ return $this;
1402
+ }
1403
+ function RefreshTokensCommand_init_$Create$(seen0, clientId, deviceKey, fingerprint, refreshToken, userId, serializationConstructorMarker) {
1404
+ return RefreshTokensCommand_init_$Init$(seen0, clientId, deviceKey, fingerprint, refreshToken, userId, serializationConstructorMarker, objectCreate(protoOf(RefreshTokensCommand)));
1405
+ }
1406
+ function RefreshTokensCommand(clientId, deviceKey, fingerprint, refreshToken, userId) {
1407
+ deviceKey = deviceKey === VOID ? null : deviceKey;
1408
+ fingerprint = fingerprint === VOID ? null : fingerprint;
1409
+ refreshToken = refreshToken === VOID ? null : refreshToken;
1410
+ userId = userId === VOID ? null : userId;
1411
+ this.y5i_1 = clientId;
1412
+ this.z5i_1 = deviceKey;
1413
+ this.a5j_1 = fingerprint;
1414
+ this.b5j_1 = refreshToken;
1415
+ this.c5j_1 = userId;
1416
+ }
1417
+ protoOf(RefreshTokensCommand).toString = function () {
1418
+ return 'RefreshTokensCommand(clientId=' + this.y5i_1 + ', deviceKey=' + this.z5i_1 + ', fingerprint=' + this.a5j_1 + ', refreshToken=' + this.b5j_1 + ', userId=' + this.c5j_1 + ')';
1419
+ };
1420
+ protoOf(RefreshTokensCommand).hashCode = function () {
1421
+ var result = getStringHashCode(this.y5i_1);
1422
+ result = imul(result, 31) + (this.z5i_1 == null ? 0 : getStringHashCode(this.z5i_1)) | 0;
1423
+ result = imul(result, 31) + (this.a5j_1 == null ? 0 : getStringHashCode(this.a5j_1)) | 0;
1424
+ result = imul(result, 31) + (this.b5j_1 == null ? 0 : getStringHashCode(this.b5j_1)) | 0;
1425
+ result = imul(result, 31) + (this.c5j_1 == null ? 0 : getStringHashCode(this.c5j_1)) | 0;
1426
+ return result;
1427
+ };
1428
+ protoOf(RefreshTokensCommand).equals = function (other) {
1429
+ if (this === other)
1430
+ return true;
1431
+ if (!(other instanceof RefreshTokensCommand))
1432
+ return false;
1433
+ if (!(this.y5i_1 === other.y5i_1))
1434
+ return false;
1435
+ if (!(this.z5i_1 == other.z5i_1))
1436
+ return false;
1437
+ if (!(this.a5j_1 == other.a5j_1))
1438
+ return false;
1439
+ if (!(this.b5j_1 == other.b5j_1))
1440
+ return false;
1441
+ if (!(this.c5j_1 == other.c5j_1))
1442
+ return false;
1443
+ return true;
1444
+ };
1445
+ function Companion_4() {
1446
+ }
1447
+ var Companion_instance_4;
1448
+ function Companion_getInstance_6() {
1449
+ return Companion_instance_4;
1450
+ }
1451
+ function $serializer_1() {
1452
+ $serializer_instance_1 = this;
1453
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.model.SoliboAuthentication', this, 9);
1454
+ tmp0_serialDesc.i26('userId', false);
1455
+ tmp0_serialDesc.i26('challenge', true);
1456
+ tmp0_serialDesc.i26('deviceKey', true);
1457
+ tmp0_serialDesc.i26('deviceKeyGroup', true);
1458
+ tmp0_serialDesc.i26('login', true);
1459
+ tmp0_serialDesc.i26('refreshToken', true);
1460
+ tmp0_serialDesc.i26('session', true);
1461
+ tmp0_serialDesc.i26('srpVerification', true);
1462
+ tmp0_serialDesc.i26('tokens', true);
1463
+ this.d5j_1 = tmp0_serialDesc;
1464
+ }
1465
+ protoOf($serializer_1).e5j = function (encoder, value) {
1466
+ var tmp0_desc = this.d5j_1;
1467
+ var tmp1_output = encoder.u1y(tmp0_desc);
1468
+ tmp1_output.i20(tmp0_desc, 0, value.f5j_1);
1469
+ if (tmp1_output.p20(tmp0_desc, 1) ? true : !(value.g5j_1 == null)) {
1470
+ tmp1_output.l20(tmp0_desc, 1, $serializer_getInstance(), value.g5j_1);
1471
+ }
1472
+ if (tmp1_output.p20(tmp0_desc, 2) ? true : !(value.h5j_1 == null)) {
1473
+ tmp1_output.l20(tmp0_desc, 2, StringSerializer_getInstance(), value.h5j_1);
1474
+ }
1475
+ if (tmp1_output.p20(tmp0_desc, 3) ? true : !(value.i5j_1 == null)) {
1476
+ tmp1_output.l20(tmp0_desc, 3, StringSerializer_getInstance(), value.i5j_1);
1477
+ }
1478
+ if (tmp1_output.p20(tmp0_desc, 4) ? true : !(value.j5j_1 == null)) {
1479
+ tmp1_output.l20(tmp0_desc, 4, StringSerializer_getInstance(), value.j5j_1);
1480
+ }
1481
+ if (tmp1_output.p20(tmp0_desc, 5) ? true : !(value.k5j_1 == null)) {
1482
+ tmp1_output.l20(tmp0_desc, 5, StringSerializer_getInstance(), value.k5j_1);
1483
+ }
1484
+ if (tmp1_output.p20(tmp0_desc, 6) ? true : !(value.l5j_1 == null)) {
1485
+ tmp1_output.l20(tmp0_desc, 6, StringSerializer_getInstance(), value.l5j_1);
1486
+ }
1487
+ if (tmp1_output.p20(tmp0_desc, 7) ? true : !(value.m5j_1 == null)) {
1488
+ tmp1_output.l20(tmp0_desc, 7, $serializer_getInstance_3(), value.m5j_1);
1489
+ }
1490
+ if (tmp1_output.p20(tmp0_desc, 8) ? true : !(value.n5j_1 == null)) {
1491
+ tmp1_output.l20(tmp0_desc, 8, $serializer_getInstance_2(), value.n5j_1);
1492
+ }
1493
+ tmp1_output.v1y(tmp0_desc);
1494
+ };
1495
+ protoOf($serializer_1).b1w = function (encoder, value) {
1496
+ return this.e5j(encoder, value instanceof SoliboAuthentication ? value : THROW_CCE());
1497
+ };
1498
+ protoOf($serializer_1).c1w = function (decoder) {
1499
+ var tmp0_desc = this.d5j_1;
1500
+ var tmp1_flag = true;
1501
+ var tmp2_index = 0;
1502
+ var tmp3_bitMask0 = 0;
1503
+ var tmp4_local0 = null;
1504
+ var tmp5_local1 = null;
1505
+ var tmp6_local2 = null;
1506
+ var tmp7_local3 = null;
1507
+ var tmp8_local4 = null;
1508
+ var tmp9_local5 = null;
1509
+ var tmp10_local6 = null;
1510
+ var tmp11_local7 = null;
1511
+ var tmp12_local8 = null;
1512
+ var tmp13_input = decoder.u1y(tmp0_desc);
1513
+ if (tmp13_input.j1z()) {
1514
+ tmp4_local0 = tmp13_input.e1z(tmp0_desc, 0);
1515
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1516
+ tmp5_local1 = tmp13_input.i1z(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1);
1517
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1518
+ tmp6_local2 = tmp13_input.i1z(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1519
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1520
+ tmp7_local3 = tmp13_input.i1z(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
1521
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1522
+ tmp8_local4 = tmp13_input.i1z(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1523
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1524
+ tmp9_local5 = tmp13_input.i1z(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
1525
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1526
+ tmp10_local6 = tmp13_input.i1z(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
1527
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
1528
+ tmp11_local7 = tmp13_input.i1z(tmp0_desc, 7, $serializer_getInstance_3(), tmp11_local7);
1529
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
1530
+ tmp12_local8 = tmp13_input.i1z(tmp0_desc, 8, $serializer_getInstance_2(), tmp12_local8);
1531
+ tmp3_bitMask0 = tmp3_bitMask0 | 256;
1532
+ } else
1533
+ while (tmp1_flag) {
1534
+ tmp2_index = tmp13_input.k1z(tmp0_desc);
1535
+ switch (tmp2_index) {
1536
+ case -1:
1537
+ tmp1_flag = false;
1538
+ break;
1539
+ case 0:
1540
+ tmp4_local0 = tmp13_input.e1z(tmp0_desc, 0);
1541
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1542
+ break;
1543
+ case 1:
1544
+ tmp5_local1 = tmp13_input.i1z(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1);
1545
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1546
+ break;
1547
+ case 2:
1548
+ tmp6_local2 = tmp13_input.i1z(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1549
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1550
+ break;
1551
+ case 3:
1552
+ tmp7_local3 = tmp13_input.i1z(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
1553
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1554
+ break;
1555
+ case 4:
1556
+ tmp8_local4 = tmp13_input.i1z(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1557
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1558
+ break;
1559
+ case 5:
1560
+ tmp9_local5 = tmp13_input.i1z(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
1561
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1562
+ break;
1563
+ case 6:
1564
+ tmp10_local6 = tmp13_input.i1z(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
1565
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
1566
+ break;
1567
+ case 7:
1568
+ tmp11_local7 = tmp13_input.i1z(tmp0_desc, 7, $serializer_getInstance_3(), tmp11_local7);
1569
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
1570
+ break;
1571
+ case 8:
1572
+ tmp12_local8 = tmp13_input.i1z(tmp0_desc, 8, $serializer_getInstance_2(), tmp12_local8);
1573
+ tmp3_bitMask0 = tmp3_bitMask0 | 256;
1574
+ break;
1575
+ default:
1576
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1577
+ }
1578
+ }
1579
+ tmp13_input.v1y(tmp0_desc);
1580
+ return SoliboAuthentication_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
1581
+ };
1582
+ protoOf($serializer_1).o1v = function () {
1583
+ return this.d5j_1;
1584
+ };
1585
+ protoOf($serializer_1).z26 = function () {
1586
+ // Inline function 'kotlin.arrayOf' call
1587
+ // Inline function 'kotlin.js.unsafeCast' call
1588
+ // Inline function 'kotlin.js.asDynamic' call
1589
+ return [StringSerializer_getInstance(), get_nullable($serializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_3()), get_nullable($serializer_getInstance_2())];
1590
+ };
1591
+ var $serializer_instance_1;
1592
+ function $serializer_getInstance_1() {
1593
+ if ($serializer_instance_1 == null)
1594
+ new $serializer_1();
1595
+ return $serializer_instance_1;
1596
+ }
1597
+ function SoliboAuthentication_init_$Init$(seen0, userId, challenge, deviceKey, deviceKeyGroup, login, refreshToken, session, srpVerification, tokens, serializationConstructorMarker, $this) {
1598
+ if (!(1 === (1 & seen0))) {
1599
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_1().d5j_1);
1600
+ }
1601
+ $this.f5j_1 = userId;
1602
+ if (0 === (seen0 & 2))
1603
+ $this.g5j_1 = null;
1604
+ else
1605
+ $this.g5j_1 = challenge;
1606
+ if (0 === (seen0 & 4))
1607
+ $this.h5j_1 = null;
1608
+ else
1609
+ $this.h5j_1 = deviceKey;
1610
+ if (0 === (seen0 & 8))
1611
+ $this.i5j_1 = null;
1612
+ else
1613
+ $this.i5j_1 = deviceKeyGroup;
1614
+ if (0 === (seen0 & 16))
1615
+ $this.j5j_1 = null;
1616
+ else
1617
+ $this.j5j_1 = login;
1618
+ if (0 === (seen0 & 32))
1619
+ $this.k5j_1 = null;
1620
+ else
1621
+ $this.k5j_1 = refreshToken;
1622
+ if (0 === (seen0 & 64))
1623
+ $this.l5j_1 = null;
1624
+ else
1625
+ $this.l5j_1 = session;
1626
+ if (0 === (seen0 & 128))
1627
+ $this.m5j_1 = null;
1628
+ else
1629
+ $this.m5j_1 = srpVerification;
1630
+ if (0 === (seen0 & 256))
1631
+ $this.n5j_1 = null;
1632
+ else
1633
+ $this.n5j_1 = tokens;
1634
+ return $this;
1635
+ }
1636
+ function SoliboAuthentication_init_$Create$(seen0, userId, challenge, deviceKey, deviceKeyGroup, login, refreshToken, session, srpVerification, tokens, serializationConstructorMarker) {
1637
+ return SoliboAuthentication_init_$Init$(seen0, userId, challenge, deviceKey, deviceKeyGroup, login, refreshToken, session, srpVerification, tokens, serializationConstructorMarker, objectCreate(protoOf(SoliboAuthentication)));
1638
+ }
1639
+ function SoliboAuthentication(userId, challenge, deviceKey, deviceKeyGroup, login, refreshToken, session, srpVerification, tokens) {
1640
+ challenge = challenge === VOID ? null : challenge;
1641
+ deviceKey = deviceKey === VOID ? null : deviceKey;
1642
+ deviceKeyGroup = deviceKeyGroup === VOID ? null : deviceKeyGroup;
1643
+ login = login === VOID ? null : login;
1644
+ refreshToken = refreshToken === VOID ? null : refreshToken;
1645
+ session = session === VOID ? null : session;
1646
+ srpVerification = srpVerification === VOID ? null : srpVerification;
1647
+ tokens = tokens === VOID ? null : tokens;
1648
+ this.f5j_1 = userId;
1649
+ this.g5j_1 = challenge;
1650
+ this.h5j_1 = deviceKey;
1651
+ this.i5j_1 = deviceKeyGroup;
1652
+ this.j5j_1 = login;
1653
+ this.k5j_1 = refreshToken;
1654
+ this.l5j_1 = session;
1655
+ this.m5j_1 = srpVerification;
1656
+ this.n5j_1 = tokens;
1657
+ }
1658
+ protoOf(SoliboAuthentication).toString = function () {
1659
+ return 'SoliboAuthentication(userId=' + this.f5j_1 + ', challenge=' + toString_0(this.g5j_1) + ', deviceKey=' + this.h5j_1 + ', deviceKeyGroup=' + this.i5j_1 + ', login=' + this.j5j_1 + ', refreshToken=' + this.k5j_1 + ', session=' + this.l5j_1 + ', srpVerification=' + toString_0(this.m5j_1) + ', tokens=' + toString_0(this.n5j_1) + ')';
1660
+ };
1661
+ protoOf(SoliboAuthentication).hashCode = function () {
1662
+ var result = getStringHashCode(this.f5j_1);
1663
+ result = imul(result, 31) + (this.g5j_1 == null ? 0 : this.g5j_1.hashCode()) | 0;
1664
+ result = imul(result, 31) + (this.h5j_1 == null ? 0 : getStringHashCode(this.h5j_1)) | 0;
1665
+ result = imul(result, 31) + (this.i5j_1 == null ? 0 : getStringHashCode(this.i5j_1)) | 0;
1666
+ result = imul(result, 31) + (this.j5j_1 == null ? 0 : getStringHashCode(this.j5j_1)) | 0;
1667
+ result = imul(result, 31) + (this.k5j_1 == null ? 0 : getStringHashCode(this.k5j_1)) | 0;
1668
+ result = imul(result, 31) + (this.l5j_1 == null ? 0 : getStringHashCode(this.l5j_1)) | 0;
1669
+ result = imul(result, 31) + (this.m5j_1 == null ? 0 : this.m5j_1.hashCode()) | 0;
1670
+ result = imul(result, 31) + (this.n5j_1 == null ? 0 : this.n5j_1.hashCode()) | 0;
1671
+ return result;
1672
+ };
1673
+ protoOf(SoliboAuthentication).equals = function (other) {
1674
+ if (this === other)
1675
+ return true;
1676
+ if (!(other instanceof SoliboAuthentication))
1677
+ return false;
1678
+ if (!(this.f5j_1 === other.f5j_1))
1679
+ return false;
1680
+ if (!equals_0(this.g5j_1, other.g5j_1))
1681
+ return false;
1682
+ if (!(this.h5j_1 == other.h5j_1))
1683
+ return false;
1684
+ if (!(this.i5j_1 == other.i5j_1))
1685
+ return false;
1686
+ if (!(this.j5j_1 == other.j5j_1))
1687
+ return false;
1688
+ if (!(this.k5j_1 == other.k5j_1))
1689
+ return false;
1690
+ if (!(this.l5j_1 == other.l5j_1))
1691
+ return false;
1692
+ if (!equals_0(this.m5j_1, other.m5j_1))
1693
+ return false;
1694
+ if (!equals_0(this.n5j_1, other.n5j_1))
1695
+ return false;
1696
+ return true;
1697
+ };
1698
+ function $serializer_2() {
1699
+ $serializer_instance_2 = this;
1700
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.model.SoliboTokens', this, 7);
1701
+ tmp0_serialDesc.i26('accessToken', false);
1702
+ tmp0_serialDesc.i26('clientId', false);
1703
+ tmp0_serialDesc.i26('data', false);
1704
+ tmp0_serialDesc.i26('expires', false);
1705
+ tmp0_serialDesc.i26('expiresAt', false);
1706
+ tmp0_serialDesc.i26('identity', false);
1707
+ tmp0_serialDesc.i26('refreshToken', true);
1708
+ this.o5j_1 = tmp0_serialDesc;
1709
+ }
1710
+ protoOf($serializer_2).p5j = function (encoder, value) {
1711
+ var tmp0_desc = this.o5j_1;
1712
+ var tmp1_output = encoder.u1y(tmp0_desc);
1713
+ tmp1_output.i20(tmp0_desc, 0, value.q5j_1);
1714
+ tmp1_output.i20(tmp0_desc, 1, value.r5j_1);
1715
+ tmp1_output.i20(tmp0_desc, 2, value.s5j_1);
1716
+ tmp1_output.e20(tmp0_desc, 3, value.t5j_1);
1717
+ tmp1_output.e20(tmp0_desc, 4, value.u5j_1);
1718
+ tmp1_output.i20(tmp0_desc, 5, value.v5j_1);
1719
+ if (tmp1_output.p20(tmp0_desc, 6) ? true : !(value.w5j_1 == null)) {
1720
+ tmp1_output.l20(tmp0_desc, 6, StringSerializer_getInstance(), value.w5j_1);
1721
+ }
1722
+ tmp1_output.v1y(tmp0_desc);
1723
+ };
1724
+ protoOf($serializer_2).b1w = function (encoder, value) {
1725
+ return this.p5j(encoder, value instanceof SoliboTokens ? value : THROW_CCE());
1726
+ };
1727
+ protoOf($serializer_2).c1w = function (decoder) {
1728
+ var tmp0_desc = this.o5j_1;
1729
+ var tmp1_flag = true;
1730
+ var tmp2_index = 0;
1731
+ var tmp3_bitMask0 = 0;
1732
+ var tmp4_local0 = null;
1733
+ var tmp5_local1 = null;
1734
+ var tmp6_local2 = null;
1735
+ var tmp7_local3 = 0n;
1736
+ var tmp8_local4 = 0n;
1737
+ var tmp9_local5 = null;
1738
+ var tmp10_local6 = null;
1739
+ var tmp11_input = decoder.u1y(tmp0_desc);
1740
+ if (tmp11_input.j1z()) {
1741
+ tmp4_local0 = tmp11_input.e1z(tmp0_desc, 0);
1742
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1743
+ tmp5_local1 = tmp11_input.e1z(tmp0_desc, 1);
1744
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1745
+ tmp6_local2 = tmp11_input.e1z(tmp0_desc, 2);
1746
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1747
+ tmp7_local3 = tmp11_input.a1z(tmp0_desc, 3);
1748
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1749
+ tmp8_local4 = tmp11_input.a1z(tmp0_desc, 4);
1750
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1751
+ tmp9_local5 = tmp11_input.e1z(tmp0_desc, 5);
1752
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1753
+ tmp10_local6 = tmp11_input.i1z(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
1754
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
1755
+ } else
1756
+ while (tmp1_flag) {
1757
+ tmp2_index = tmp11_input.k1z(tmp0_desc);
1758
+ switch (tmp2_index) {
1759
+ case -1:
1760
+ tmp1_flag = false;
1761
+ break;
1762
+ case 0:
1763
+ tmp4_local0 = tmp11_input.e1z(tmp0_desc, 0);
1764
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1765
+ break;
1766
+ case 1:
1767
+ tmp5_local1 = tmp11_input.e1z(tmp0_desc, 1);
1768
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1769
+ break;
1770
+ case 2:
1771
+ tmp6_local2 = tmp11_input.e1z(tmp0_desc, 2);
1772
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1773
+ break;
1774
+ case 3:
1775
+ tmp7_local3 = tmp11_input.a1z(tmp0_desc, 3);
1776
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1777
+ break;
1778
+ case 4:
1779
+ tmp8_local4 = tmp11_input.a1z(tmp0_desc, 4);
1780
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1781
+ break;
1782
+ case 5:
1783
+ tmp9_local5 = tmp11_input.e1z(tmp0_desc, 5);
1784
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1785
+ break;
1786
+ case 6:
1787
+ tmp10_local6 = tmp11_input.i1z(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
1788
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
1789
+ break;
1790
+ default:
1791
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1792
+ }
1793
+ }
1794
+ tmp11_input.v1y(tmp0_desc);
1795
+ return SoliboTokens_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
1796
+ };
1797
+ protoOf($serializer_2).o1v = function () {
1798
+ return this.o5j_1;
1799
+ };
1800
+ protoOf($serializer_2).z26 = function () {
1801
+ // Inline function 'kotlin.arrayOf' call
1802
+ // Inline function 'kotlin.js.unsafeCast' call
1803
+ // Inline function 'kotlin.js.asDynamic' call
1804
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
1805
+ };
1806
+ var $serializer_instance_2;
1807
+ function $serializer_getInstance_2() {
1808
+ if ($serializer_instance_2 == null)
1809
+ new $serializer_2();
1810
+ return $serializer_instance_2;
1811
+ }
1812
+ function SoliboTokens_init_$Init$(seen0, accessToken, clientId, data, expires, expiresAt, identity, refreshToken, serializationConstructorMarker, $this) {
1813
+ if (!(63 === (63 & seen0))) {
1814
+ throwMissingFieldException(seen0, 63, $serializer_getInstance_2().o5j_1);
1815
+ }
1816
+ $this.q5j_1 = accessToken;
1817
+ $this.r5j_1 = clientId;
1818
+ $this.s5j_1 = data;
1819
+ $this.t5j_1 = expires;
1820
+ $this.u5j_1 = expiresAt;
1821
+ $this.v5j_1 = identity;
1822
+ if (0 === (seen0 & 64))
1823
+ $this.w5j_1 = null;
1824
+ else
1825
+ $this.w5j_1 = refreshToken;
1826
+ return $this;
1827
+ }
1828
+ function SoliboTokens_init_$Create$(seen0, accessToken, clientId, data, expires, expiresAt, identity, refreshToken, serializationConstructorMarker) {
1829
+ return SoliboTokens_init_$Init$(seen0, accessToken, clientId, data, expires, expiresAt, identity, refreshToken, serializationConstructorMarker, objectCreate(protoOf(SoliboTokens)));
1830
+ }
1831
+ function SoliboTokens() {
1832
+ }
1833
+ protoOf(SoliboTokens).toString = function () {
1834
+ return 'SoliboTokens(accessToken=' + this.q5j_1 + ', clientId=' + this.r5j_1 + ', data=' + this.s5j_1 + ', expires=' + this.t5j_1.toString() + ', expiresAt=' + this.u5j_1.toString() + ', identity=' + this.v5j_1 + ', refreshToken=' + this.w5j_1 + ')';
1835
+ };
1836
+ protoOf(SoliboTokens).hashCode = function () {
1837
+ var result = getStringHashCode(this.q5j_1);
1838
+ result = imul(result, 31) + getStringHashCode(this.r5j_1) | 0;
1839
+ result = imul(result, 31) + getStringHashCode(this.s5j_1) | 0;
1840
+ result = imul(result, 31) + getBigIntHashCode(this.t5j_1) | 0;
1841
+ result = imul(result, 31) + getBigIntHashCode(this.u5j_1) | 0;
1842
+ result = imul(result, 31) + getStringHashCode(this.v5j_1) | 0;
1843
+ result = imul(result, 31) + (this.w5j_1 == null ? 0 : getStringHashCode(this.w5j_1)) | 0;
1844
+ return result;
1845
+ };
1846
+ protoOf(SoliboTokens).equals = function (other) {
1847
+ if (this === other)
1848
+ return true;
1849
+ if (!(other instanceof SoliboTokens))
1850
+ return false;
1851
+ if (!(this.q5j_1 === other.q5j_1))
1852
+ return false;
1853
+ if (!(this.r5j_1 === other.r5j_1))
1854
+ return false;
1855
+ if (!(this.s5j_1 === other.s5j_1))
1856
+ return false;
1857
+ if (!(this.t5j_1 === other.t5j_1))
1858
+ return false;
1859
+ if (!(this.u5j_1 === other.u5j_1))
1860
+ return false;
1861
+ if (!(this.v5j_1 === other.v5j_1))
1862
+ return false;
1863
+ if (!(this.w5j_1 == other.w5j_1))
1864
+ return false;
1865
+ return true;
1866
+ };
1867
+ function $serializer_3() {
1868
+ $serializer_instance_3 = this;
1869
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.model.SrpVerification', this, 4);
1870
+ tmp0_serialDesc.i26('secretBlock', false);
1871
+ tmp0_serialDesc.i26('srpB', false);
1872
+ tmp0_serialDesc.i26('salt', true);
1873
+ tmp0_serialDesc.i26('userIdForSrp', true);
1874
+ this.x5j_1 = tmp0_serialDesc;
1875
+ }
1876
+ protoOf($serializer_3).y5j = function (encoder, value) {
1877
+ var tmp0_desc = this.x5j_1;
1878
+ var tmp1_output = encoder.u1y(tmp0_desc);
1879
+ tmp1_output.i20(tmp0_desc, 0, value.z5j_1);
1880
+ tmp1_output.i20(tmp0_desc, 1, value.a5k_1);
1881
+ if (tmp1_output.p20(tmp0_desc, 2) ? true : !(value.b5k_1 == null)) {
1882
+ tmp1_output.l20(tmp0_desc, 2, StringSerializer_getInstance(), value.b5k_1);
1883
+ }
1884
+ if (tmp1_output.p20(tmp0_desc, 3) ? true : !(value.c5k_1 == null)) {
1885
+ tmp1_output.l20(tmp0_desc, 3, StringSerializer_getInstance(), value.c5k_1);
1886
+ }
1887
+ tmp1_output.v1y(tmp0_desc);
1888
+ };
1889
+ protoOf($serializer_3).b1w = function (encoder, value) {
1890
+ return this.y5j(encoder, value instanceof SrpVerification ? value : THROW_CCE());
1891
+ };
1892
+ protoOf($serializer_3).c1w = function (decoder) {
1893
+ var tmp0_desc = this.x5j_1;
1894
+ var tmp1_flag = true;
1895
+ var tmp2_index = 0;
1896
+ var tmp3_bitMask0 = 0;
1897
+ var tmp4_local0 = null;
1898
+ var tmp5_local1 = null;
1899
+ var tmp6_local2 = null;
1900
+ var tmp7_local3 = null;
1901
+ var tmp8_input = decoder.u1y(tmp0_desc);
1902
+ if (tmp8_input.j1z()) {
1903
+ tmp4_local0 = tmp8_input.e1z(tmp0_desc, 0);
1904
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1905
+ tmp5_local1 = tmp8_input.e1z(tmp0_desc, 1);
1906
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1907
+ tmp6_local2 = tmp8_input.i1z(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1908
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1909
+ tmp7_local3 = tmp8_input.i1z(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
1910
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1911
+ } else
1912
+ while (tmp1_flag) {
1913
+ tmp2_index = tmp8_input.k1z(tmp0_desc);
1914
+ switch (tmp2_index) {
1915
+ case -1:
1916
+ tmp1_flag = false;
1917
+ break;
1918
+ case 0:
1919
+ tmp4_local0 = tmp8_input.e1z(tmp0_desc, 0);
1920
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1921
+ break;
1922
+ case 1:
1923
+ tmp5_local1 = tmp8_input.e1z(tmp0_desc, 1);
1924
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1925
+ break;
1926
+ case 2:
1927
+ tmp6_local2 = tmp8_input.i1z(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1928
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1929
+ break;
1930
+ case 3:
1931
+ tmp7_local3 = tmp8_input.i1z(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
1932
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1933
+ break;
1934
+ default:
1935
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1936
+ }
1937
+ }
1938
+ tmp8_input.v1y(tmp0_desc);
1939
+ return SrpVerification_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
1940
+ };
1941
+ protoOf($serializer_3).o1v = function () {
1942
+ return this.x5j_1;
1943
+ };
1944
+ protoOf($serializer_3).z26 = function () {
1945
+ // Inline function 'kotlin.arrayOf' call
1946
+ // Inline function 'kotlin.js.unsafeCast' call
1947
+ // Inline function 'kotlin.js.asDynamic' call
1948
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
1949
+ };
1950
+ var $serializer_instance_3;
1951
+ function $serializer_getInstance_3() {
1952
+ if ($serializer_instance_3 == null)
1953
+ new $serializer_3();
1954
+ return $serializer_instance_3;
1955
+ }
1956
+ function SrpVerification_init_$Init$(seen0, secretBlock, srpB, salt, userIdForSrp, serializationConstructorMarker, $this) {
1957
+ if (!(3 === (3 & seen0))) {
1958
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_3().x5j_1);
1959
+ }
1960
+ $this.z5j_1 = secretBlock;
1961
+ $this.a5k_1 = srpB;
1962
+ if (0 === (seen0 & 4))
1963
+ $this.b5k_1 = null;
1964
+ else
1965
+ $this.b5k_1 = salt;
1966
+ if (0 === (seen0 & 8))
1967
+ $this.c5k_1 = null;
1968
+ else
1969
+ $this.c5k_1 = userIdForSrp;
1970
+ return $this;
1971
+ }
1972
+ function SrpVerification_init_$Create$(seen0, secretBlock, srpB, salt, userIdForSrp, serializationConstructorMarker) {
1973
+ return SrpVerification_init_$Init$(seen0, secretBlock, srpB, salt, userIdForSrp, serializationConstructorMarker, objectCreate(protoOf(SrpVerification)));
1974
+ }
1975
+ function SrpVerification() {
1976
+ }
1977
+ protoOf(SrpVerification).toString = function () {
1978
+ return 'SrpVerification(secretBlock=' + this.z5j_1 + ', srpB=' + this.a5k_1 + ', salt=' + this.b5k_1 + ', userIdForSrp=' + this.c5k_1 + ')';
1979
+ };
1980
+ protoOf(SrpVerification).hashCode = function () {
1981
+ var result = getStringHashCode(this.z5j_1);
1982
+ result = imul(result, 31) + getStringHashCode(this.a5k_1) | 0;
1983
+ result = imul(result, 31) + (this.b5k_1 == null ? 0 : getStringHashCode(this.b5k_1)) | 0;
1984
+ result = imul(result, 31) + (this.c5k_1 == null ? 0 : getStringHashCode(this.c5k_1)) | 0;
1985
+ return result;
1986
+ };
1987
+ protoOf(SrpVerification).equals = function (other) {
1988
+ if (this === other)
1989
+ return true;
1990
+ if (!(other instanceof SrpVerification))
1991
+ return false;
1992
+ if (!(this.z5j_1 === other.z5j_1))
1993
+ return false;
1994
+ if (!(this.a5k_1 === other.a5k_1))
1995
+ return false;
1996
+ if (!(this.b5k_1 == other.b5k_1))
1997
+ return false;
1998
+ if (!(this.c5k_1 == other.c5k_1))
1999
+ return false;
2000
+ return true;
2001
+ };
2002
+ //region block: post-declaration
2003
+ protoOf($serializer).a27 = typeParametersSerializers;
2004
+ protoOf($serializer_0).a27 = typeParametersSerializers;
2005
+ protoOf($serializer_1).a27 = typeParametersSerializers;
2006
+ protoOf($serializer_2).a27 = typeParametersSerializers;
2007
+ protoOf($serializer_3).a27 = typeParametersSerializers;
2008
+ //endregion
2009
+ //region block: init
2010
+ Companion_instance_0 = new Companion_0();
2011
+ Companion_instance_3 = new Companion_3();
2012
+ Companion_instance_4 = new Companion_4();
2013
+ //endregion
2014
+ //region block: exports
2015
+ _.$_$ = _.$_$ || {};
2016
+ _.$_$.a = AuthApi;
2017
+ _.$_$.b = BoardApi;
2018
+ _.$_$.c = CommunicationApi;
2019
+ _.$_$.d = CompanyApi;
2020
+ _.$_$.e = ConversationApi;
2021
+ _.$_$.f = DocumentApi;
2022
+ _.$_$.g = EconomyApi;
2023
+ _.$_$.h = ExpenseApi;
2024
+ _.$_$.i = HMSApi;
2025
+ _.$_$.j = HomepageApi;
2026
+ _.$_$.k = InsuranceApi;
2027
+ _.$_$.l = InvoiceApi;
2028
+ _.$_$.m = InvoicingApi;
2029
+ _.$_$.n = IssueApi;
2030
+ _.$_$.o = LanguageApi;
2031
+ _.$_$.p = LoanApi;
2032
+ _.$_$.q = MarketingApi;
2033
+ _.$_$.r = MeetingApi;
2034
+ _.$_$.s = OrganizationApi;
2035
+ _.$_$.t = ParkingApi;
2036
+ _.$_$.u = PersonApi;
2037
+ _.$_$.v = ResidentApi;
2038
+ _.$_$.w = RoutinesApi;
2039
+ _.$_$.x = SectionApi;
2040
+ _.$_$.y = StorageApi;
2041
+ _.$_$.z = SupplierApi;
2042
+ _.$_$.a1 = TaskApi;
2043
+ _.$_$.b1 = ThirdPartyInformationApi;
2044
+ _.$_$.c1 = UserApi;
2045
+ _.$_$.d1 = RefreshTokensCommand;
11
2046
  //endregion
12
2047
  return _;
13
2048
  }));