@guardian/feast-multiplatform-library 5.0.1 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.js +990 -712
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +747 -729
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +181 -181
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +132 -132
- package/package.json +5 -2
|
@@ -2,67 +2,76 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var protoOf = kotlin_kotlin.$_$.n7;
|
|
6
|
-
var initMetadataForObject = kotlin_kotlin.$_$.w6;
|
|
7
|
-
var numberToInt = kotlin_kotlin.$_$.l7;
|
|
8
|
-
var Unit_instance = kotlin_kotlin.$_$.j3;
|
|
9
|
-
var round = kotlin_kotlin.$_$.q7;
|
|
10
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ia;
|
|
11
|
-
var listOfNotNull = kotlin_kotlin.$_$.x4;
|
|
12
|
-
var joinToString = kotlin_kotlin.$_$.s4;
|
|
13
|
-
var Pair = kotlin_kotlin.$_$.m9;
|
|
14
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.z3;
|
|
15
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
16
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.s7;
|
|
7
|
+
var toString = kotlin_kotlin.$_$.qa;
|
|
8
|
+
var getNumberHashCode = kotlin_kotlin.$_$.s6;
|
|
9
|
+
var equals = kotlin_kotlin.$_$.q6;
|
|
10
|
+
var initMetadataForClass = kotlin_kotlin.$_$.w6;
|
|
11
|
+
var numberToInt = kotlin_kotlin.$_$.q7;
|
|
12
|
+
var Unit_instance = kotlin_kotlin.$_$.k3;
|
|
13
|
+
var round = kotlin_kotlin.$_$.v7;
|
|
14
|
+
var initMetadataForObject = kotlin_kotlin.$_$.b7;
|
|
15
|
+
var listOfNotNull = kotlin_kotlin.$_$.y4;
|
|
16
|
+
var joinToString = kotlin_kotlin.$_$.t4;
|
|
17
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.oa;
|
|
18
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.a4;
|
|
19
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
20
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.b1;
|
|
21
|
+
var charArrayOf = kotlin_kotlin.$_$.j6;
|
|
22
|
+
var indexOfAny = kotlin_kotlin.$_$.k8;
|
|
23
|
+
var substring = kotlin_kotlin.$_$.v8;
|
|
24
|
+
var substring_0 = kotlin_kotlin.$_$.u8;
|
|
17
25
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
18
26
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
19
27
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
20
28
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
21
|
-
var lazy = kotlin_kotlin.$_$.
|
|
22
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
29
|
+
var lazy = kotlin_kotlin.$_$.ma;
|
|
30
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.x6;
|
|
23
31
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
24
32
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
33
|
+
var THROW_CCE = kotlin_kotlin.$_$.u9;
|
|
26
34
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
27
35
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
28
36
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
29
37
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
30
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.m6;
|
|
35
|
-
var equals = kotlin_kotlin.$_$.l6;
|
|
36
|
-
var initMetadataForClass = kotlin_kotlin.$_$.r6;
|
|
38
|
+
var objectCreate = kotlin_kotlin.$_$.r7;
|
|
39
|
+
var getStringHashCode = kotlin_kotlin.$_$.u6;
|
|
40
|
+
var hashCode = kotlin_kotlin.$_$.v6;
|
|
41
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.r6;
|
|
37
42
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
38
|
-
var
|
|
39
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
43
|
+
var toString_0 = kotlin_kotlin.$_$.u7;
|
|
44
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
40
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
41
|
-
var
|
|
42
|
-
var charSequenceLength = kotlin_kotlin.$_$.i6;
|
|
46
|
+
var charSequenceLength = kotlin_kotlin.$_$.n6;
|
|
43
47
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
44
48
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
45
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
46
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
47
|
-
var createKType = kotlin_kotlin.$_$.
|
|
49
|
+
var getKClass = kotlin_kotlin.$_$.e8;
|
|
50
|
+
var arrayOf = kotlin_kotlin.$_$.fa;
|
|
51
|
+
var createKType = kotlin_kotlin.$_$.c8;
|
|
48
52
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
49
53
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
50
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
51
|
-
var print = kotlin_kotlin.$_$.
|
|
52
|
-
var Exception = kotlin_kotlin.$_$.
|
|
53
|
-
var
|
|
54
|
-
var isBlank = kotlin_kotlin.$_$.h8;
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.j7;
|
|
55
|
+
var print = kotlin_kotlin.$_$.q5;
|
|
56
|
+
var Exception = kotlin_kotlin.$_$.p9;
|
|
57
|
+
var isBlank = kotlin_kotlin.$_$.n8;
|
|
55
58
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
56
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
59
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.z6;
|
|
57
60
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
58
61
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
59
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
+
var defineProp = kotlin_kotlin.$_$.p6;
|
|
63
|
+
var Enum = kotlin_kotlin.$_$.o9;
|
|
64
|
+
var listOf = kotlin_kotlin.$_$.z4;
|
|
65
|
+
var mapCapacity = kotlin_kotlin.$_$.a5;
|
|
66
|
+
var coerceAtLeast = kotlin_kotlin.$_$.x7;
|
|
67
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
68
|
+
var plus = kotlin_kotlin.$_$.c5;
|
|
69
|
+
var Pair = kotlin_kotlin.$_$.s9;
|
|
70
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
62
71
|
//endregion
|
|
63
72
|
//region block: pre-declaration
|
|
64
|
-
|
|
65
|
-
initMetadataForObject(
|
|
73
|
+
initMetadataForClass(Amount, 'Amount');
|
|
74
|
+
initMetadataForObject(FormatUtils, 'FormatUtils');
|
|
66
75
|
initMetadataForCompanion(Companion);
|
|
67
76
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
68
77
|
initMetadataForClass(RecipeV3, 'RecipeV3', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -87,6 +96,7 @@
|
|
|
87
96
|
initMetadataForCompanion(Companion_4);
|
|
88
97
|
initMetadataForObject($serializer_7, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
89
98
|
initMetadataForClass(Timing, 'Timing', Timing, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_7});
|
|
99
|
+
initMetadataForClass(ParsedTemplate, 'ParsedTemplate');
|
|
90
100
|
initMetadataForInterface(TemplateElement, 'TemplateElement');
|
|
91
101
|
initMetadataForClass(TemplateConst, 'TemplateConst', VOID, VOID, [TemplateElement]);
|
|
92
102
|
initMetadataForCompanion(Companion_5);
|
|
@@ -95,21 +105,54 @@
|
|
|
95
105
|
initMetadataForCompanion(Companion_6);
|
|
96
106
|
initMetadataForObject($serializer_9, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
97
107
|
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', OvenTemperaturePlaceholder, VOID, [TemplateElement], VOID, VOID, {0: $serializer_getInstance_9});
|
|
98
|
-
|
|
108
|
+
initMetadataForObject(Imperial, 'Imperial');
|
|
109
|
+
initMetadataForObject(Metric, 'Metric');
|
|
110
|
+
initMetadataForClass(UnitType, 'UnitType', VOID, Enum);
|
|
111
|
+
initMetadataForClass(Unit, 'Unit');
|
|
112
|
+
initMetadataForObject(Units, 'Units');
|
|
113
|
+
initMetadataForObject(UnitConversion, 'UnitConversion');
|
|
99
114
|
//endregion
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
function Amount(min, max, unit) {
|
|
116
|
+
max = max === VOID ? null : max;
|
|
117
|
+
unit = unit === VOID ? null : unit;
|
|
118
|
+
this.g1d_1 = min;
|
|
119
|
+
this.h1d_1 = max;
|
|
120
|
+
this.i1d_1 = unit;
|
|
121
|
+
}
|
|
122
|
+
protoOf(Amount).j1d = function (min, max, unit) {
|
|
123
|
+
return new Amount(min, max, unit);
|
|
124
|
+
};
|
|
125
|
+
protoOf(Amount).k1d = function (min, max, unit, $super) {
|
|
126
|
+
min = min === VOID ? this.g1d_1 : min;
|
|
127
|
+
max = max === VOID ? this.h1d_1 : max;
|
|
128
|
+
unit = unit === VOID ? this.i1d_1 : unit;
|
|
129
|
+
return $super === VOID ? this.j1d(min, max, unit) : $super.j1d.call(this, min, max, unit);
|
|
130
|
+
};
|
|
131
|
+
protoOf(Amount).toString = function () {
|
|
132
|
+
return 'Amount(min=' + this.g1d_1 + ', max=' + this.h1d_1 + ', unit=' + toString(this.i1d_1) + ')';
|
|
133
|
+
};
|
|
134
|
+
protoOf(Amount).hashCode = function () {
|
|
135
|
+
var result = getNumberHashCode(this.g1d_1);
|
|
136
|
+
result = imul(result, 31) + (this.h1d_1 == null ? 0 : getNumberHashCode(this.h1d_1)) | 0;
|
|
137
|
+
result = imul(result, 31) + (this.i1d_1 == null ? 0 : this.i1d_1.hashCode()) | 0;
|
|
138
|
+
return result;
|
|
139
|
+
};
|
|
140
|
+
protoOf(Amount).equals = function (other) {
|
|
141
|
+
if (this === other)
|
|
142
|
+
return true;
|
|
143
|
+
if (!(other instanceof Amount))
|
|
144
|
+
return false;
|
|
145
|
+
if (!equals(this.g1d_1, other.g1d_1))
|
|
146
|
+
return false;
|
|
147
|
+
if (!equals(this.h1d_1, other.h1d_1))
|
|
148
|
+
return false;
|
|
149
|
+
if (!equals(this.i1d_1, other.i1d_1))
|
|
150
|
+
return false;
|
|
151
|
+
return true;
|
|
152
|
+
};
|
|
153
|
+
function FormatUtils() {
|
|
111
154
|
}
|
|
112
|
-
function
|
|
155
|
+
protoOf(FormatUtils).l1d = function (number) {
|
|
113
156
|
var integerPart = numberToInt(number);
|
|
114
157
|
var fractionalPart = number - integerPart;
|
|
115
158
|
var fractionString = (0.12 <= fractionalPart ? fractionalPart <= 0.13 : false) ? '\u215B' : (0.33 <= fractionalPart ? fractionalPart <= 0.34 : false) ? '\u2153' : (0.66 <= fractionalPart ? fractionalPart <= 0.67 : false) ? '\u2154' : fractionalPart === 0.25 ? '\xBC' : fractionalPart === 0.5 ? '\xBD' : fractionalPart === 0.75 ? '\xBE' : null;
|
|
@@ -126,8 +169,8 @@
|
|
|
126
169
|
tmp = number.toString();
|
|
127
170
|
}
|
|
128
171
|
return tmp;
|
|
129
|
-
}
|
|
130
|
-
function
|
|
172
|
+
};
|
|
173
|
+
protoOf(FormatUtils).m1d = function (number, decimals, fraction) {
|
|
131
174
|
var multiplier = 1.0;
|
|
132
175
|
// Inline function 'kotlin.repeat' call
|
|
133
176
|
var inductionVariable = 0;
|
|
@@ -143,110 +186,126 @@
|
|
|
143
186
|
return numberToInt(roundedNumber).toString();
|
|
144
187
|
}
|
|
145
188
|
if (fraction) {
|
|
146
|
-
return
|
|
189
|
+
return this.l1d(roundedNumber);
|
|
147
190
|
}
|
|
148
191
|
return roundedNumber.toString();
|
|
192
|
+
};
|
|
193
|
+
var FormatUtils_instance;
|
|
194
|
+
function FormatUtils_getInstance() {
|
|
195
|
+
return FormatUtils_instance;
|
|
149
196
|
}
|
|
150
|
-
function
|
|
197
|
+
function renderOvenTemperature(element) {
|
|
198
|
+
var tmp;
|
|
199
|
+
if (element.temperatureFanC == null) {
|
|
200
|
+
tmp = null;
|
|
201
|
+
} else {
|
|
202
|
+
// Inline function 'kotlin.let' call
|
|
203
|
+
var tmp_0;
|
|
204
|
+
if (element.temperatureC == null) {
|
|
205
|
+
tmp_0 = '' + element.temperatureFanC + 'C fan';
|
|
206
|
+
} else {
|
|
207
|
+
tmp_0 = ' (' + element.temperatureFanC + 'C fan)';
|
|
208
|
+
}
|
|
209
|
+
tmp = tmp_0;
|
|
210
|
+
}
|
|
211
|
+
var fanTempC = tmp;
|
|
212
|
+
var tmp_1;
|
|
213
|
+
if (element.temperatureC == null) {
|
|
214
|
+
tmp_1 = null;
|
|
215
|
+
} else {
|
|
216
|
+
// Inline function 'kotlin.let' call
|
|
217
|
+
tmp_1 = '' + element.temperatureC + 'C';
|
|
218
|
+
}
|
|
219
|
+
var tmp_2 = tmp_1;
|
|
220
|
+
var tmp2_safe_receiver = element.temperatureF;
|
|
221
|
+
var tmp_3;
|
|
222
|
+
if (tmp2_safe_receiver == null) {
|
|
223
|
+
tmp_3 = null;
|
|
224
|
+
} else {
|
|
225
|
+
// Inline function 'kotlin.let' call
|
|
226
|
+
tmp_3 = '/' + tmp2_safe_receiver + 'F';
|
|
227
|
+
}
|
|
228
|
+
var tmp_4 = tmp_3;
|
|
229
|
+
var tmp3_safe_receiver = element.gasMark;
|
|
230
|
+
var tmp_5;
|
|
231
|
+
if (tmp3_safe_receiver == null) {
|
|
232
|
+
tmp_5 = null;
|
|
233
|
+
} else {
|
|
234
|
+
// Inline function 'kotlin.let' call
|
|
235
|
+
tmp_5 = '/gas mark ' + FormatUtils_instance.l1d(tmp3_safe_receiver);
|
|
236
|
+
}
|
|
237
|
+
return joinToString(listOfNotNull([tmp_2, fanTempC, tmp_4, tmp_5]), '');
|
|
238
|
+
}
|
|
239
|
+
function scaleAmount(amount, factor, shouldScale) {
|
|
240
|
+
if (!shouldScale) {
|
|
241
|
+
return amount;
|
|
242
|
+
}
|
|
243
|
+
var tmp = amount.g1d_1 * factor;
|
|
244
|
+
var tmp0_safe_receiver = amount.h1d_1;
|
|
245
|
+
var tmp_0;
|
|
246
|
+
if (tmp0_safe_receiver == null) {
|
|
247
|
+
tmp_0 = null;
|
|
248
|
+
} else {
|
|
249
|
+
// Inline function 'kotlin.let' call
|
|
250
|
+
tmp_0 = tmp0_safe_receiver * factor;
|
|
251
|
+
}
|
|
252
|
+
return amount.k1d(tmp, tmp_0);
|
|
253
|
+
}
|
|
254
|
+
function renderQuantity(element, factor, measuringSystem) {
|
|
255
|
+
var tmp = !(element.min === element.max) ? element.max : null;
|
|
256
|
+
var tmp0_safe_receiver = element.unit;
|
|
257
|
+
var tmp_0;
|
|
258
|
+
if (tmp0_safe_receiver == null) {
|
|
259
|
+
tmp_0 = null;
|
|
260
|
+
} else {
|
|
261
|
+
// Inline function 'kotlin.let' call
|
|
262
|
+
tmp_0 = Units_getInstance().d1e(tmp0_safe_receiver);
|
|
263
|
+
}
|
|
264
|
+
var amount = new Amount(element.min, tmp, tmp_0);
|
|
265
|
+
amount = scaleAmount(amount, factor, element.scale);
|
|
266
|
+
amount = UnitConversion_instance.g1e(amount, measuringSystem);
|
|
267
|
+
var tmp1_subject = amount.i1d_1;
|
|
268
|
+
var decimals = equals(tmp1_subject, Units_getInstance().n1d_1) || (equals(tmp1_subject, Units_getInstance().r1d_1) || equals(tmp1_subject, Units_getInstance().x1d_1)) ? 0 : equals(tmp1_subject, Units_getInstance().y1d_1) || equals(tmp1_subject, Units_getInstance().z1d_1) ? 1 : 2;
|
|
269
|
+
var tmp2_subject = amount.i1d_1;
|
|
270
|
+
var fraction = equals(tmp2_subject, Units_getInstance().v1d_1) || (equals(tmp2_subject, Units_getInstance().w1d_1) || equals(tmp2_subject, Units_getInstance().u1d_1)) ? true : tmp2_subject == null ? true : false;
|
|
271
|
+
var tmp_1;
|
|
272
|
+
if (!(amount.i1d_1 == null)) {
|
|
273
|
+
var tmp_2;
|
|
274
|
+
var tmp0 = amount.g1d_1;
|
|
275
|
+
var tmp3_elvis_lhs = amount.h1d_1;
|
|
276
|
+
// Inline function 'kotlin.math.max' call
|
|
277
|
+
var b = tmp3_elvis_lhs == null ? amount.g1d_1 : tmp3_elvis_lhs;
|
|
278
|
+
if (Math.max(tmp0, b) > 1) {
|
|
279
|
+
tmp_2 = ' ' + amount.i1d_1.k1e_1;
|
|
280
|
+
} else {
|
|
281
|
+
tmp_2 = ' ' + amount.i1d_1.j1e_1;
|
|
282
|
+
}
|
|
283
|
+
tmp_1 = tmp_2;
|
|
284
|
+
} else {
|
|
285
|
+
tmp_1 = '';
|
|
286
|
+
}
|
|
287
|
+
var unitString = tmp_1;
|
|
288
|
+
var tmp_3 = FormatUtils_instance.m1d(amount.g1d_1, decimals, fraction);
|
|
289
|
+
var tmp4_safe_receiver = amount.h1d_1;
|
|
290
|
+
var tmp_4;
|
|
291
|
+
if (tmp4_safe_receiver == null) {
|
|
292
|
+
tmp_4 = null;
|
|
293
|
+
} else {
|
|
294
|
+
// Inline function 'kotlin.let' call
|
|
295
|
+
tmp_4 = '-' + FormatUtils_instance.m1d(tmp4_safe_receiver, decimals, fraction);
|
|
296
|
+
}
|
|
297
|
+
return joinToString(listOfNotNull([tmp_3, tmp_4, unitString]), '');
|
|
298
|
+
}
|
|
299
|
+
function renderTemplateElement(element, factor, measuringSystem) {
|
|
151
300
|
var tmp;
|
|
152
301
|
if (element instanceof TemplateConst) {
|
|
153
302
|
tmp = element.value;
|
|
154
303
|
} else {
|
|
155
304
|
if (element instanceof QuantityPlaceholder) {
|
|
156
|
-
|
|
157
|
-
var tmp_0;
|
|
158
|
-
if (element.scale) {
|
|
159
|
-
var scaledMin = element.min * factor;
|
|
160
|
-
var tmp_1;
|
|
161
|
-
if (max == null) {
|
|
162
|
-
tmp_1 = null;
|
|
163
|
-
} else {
|
|
164
|
-
// Inline function 'kotlin.let' call
|
|
165
|
-
tmp_1 = max * factor;
|
|
166
|
-
}
|
|
167
|
-
var scaledMax = tmp_1;
|
|
168
|
-
tmp_0 = new Pair(scaledMin, scaledMax);
|
|
169
|
-
} else {
|
|
170
|
-
tmp_0 = new Pair(element.min, max);
|
|
171
|
-
}
|
|
172
|
-
var _destruct__k2r9zo = tmp_0;
|
|
173
|
-
var scaledMin_0 = _destruct__k2r9zo.cd();
|
|
174
|
-
var scaledMax_0 = _destruct__k2r9zo.dd();
|
|
175
|
-
var unit = !(element.unit == null) ? ' ' + element.unit : '';
|
|
176
|
-
var decimals;
|
|
177
|
-
switch (unit) {
|
|
178
|
-
case 'g':
|
|
179
|
-
case 'ml':
|
|
180
|
-
decimals = 0;
|
|
181
|
-
break;
|
|
182
|
-
default:
|
|
183
|
-
decimals = 2;
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
var fraction;
|
|
187
|
-
switch (element.unit) {
|
|
188
|
-
case 'tsp':
|
|
189
|
-
case 'tbsp':
|
|
190
|
-
case 'cup':
|
|
191
|
-
case 'cups':
|
|
192
|
-
fraction = true;
|
|
193
|
-
break;
|
|
194
|
-
case null:
|
|
195
|
-
fraction = true;
|
|
196
|
-
break;
|
|
197
|
-
default:
|
|
198
|
-
fraction = false;
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
var tmp_2;
|
|
202
|
-
if (!(scaledMax_0 == null)) {
|
|
203
|
-
tmp_2 = formatAmount(scaledMin_0, decimals, fraction) + '-' + formatAmount(scaledMax_0, decimals, fraction) + unit;
|
|
204
|
-
} else {
|
|
205
|
-
tmp_2 = formatAmount(scaledMin_0, decimals, fraction) + unit;
|
|
206
|
-
}
|
|
207
|
-
tmp = tmp_2;
|
|
305
|
+
tmp = renderQuantity(element, factor, measuringSystem);
|
|
208
306
|
} else {
|
|
209
307
|
if (element instanceof OvenTemperaturePlaceholder) {
|
|
210
|
-
|
|
211
|
-
if (element.temperatureFanC == null) {
|
|
212
|
-
tmp_3 = null;
|
|
213
|
-
} else {
|
|
214
|
-
// Inline function 'kotlin.let' call
|
|
215
|
-
var tmp_4;
|
|
216
|
-
if (element.temperatureC == null) {
|
|
217
|
-
tmp_4 = '' + element.temperatureFanC + 'C fan';
|
|
218
|
-
} else {
|
|
219
|
-
tmp_4 = ' (' + element.temperatureFanC + 'C fan)';
|
|
220
|
-
}
|
|
221
|
-
tmp_3 = tmp_4;
|
|
222
|
-
}
|
|
223
|
-
var fanTempC = tmp_3;
|
|
224
|
-
var tmp_5;
|
|
225
|
-
if (element.temperatureC == null) {
|
|
226
|
-
tmp_5 = null;
|
|
227
|
-
} else {
|
|
228
|
-
// Inline function 'kotlin.let' call
|
|
229
|
-
tmp_5 = '' + element.temperatureC + 'C';
|
|
230
|
-
}
|
|
231
|
-
var tmp_6 = tmp_5;
|
|
232
|
-
var tmp6_safe_receiver = element.temperatureF;
|
|
233
|
-
var tmp_7;
|
|
234
|
-
if (tmp6_safe_receiver == null) {
|
|
235
|
-
tmp_7 = null;
|
|
236
|
-
} else {
|
|
237
|
-
// Inline function 'kotlin.let' call
|
|
238
|
-
tmp_7 = '/' + tmp6_safe_receiver + 'F';
|
|
239
|
-
}
|
|
240
|
-
var tmp_8 = tmp_7;
|
|
241
|
-
var tmp7_safe_receiver = element.gasMark;
|
|
242
|
-
var tmp_9;
|
|
243
|
-
if (tmp7_safe_receiver == null) {
|
|
244
|
-
tmp_9 = null;
|
|
245
|
-
} else {
|
|
246
|
-
// Inline function 'kotlin.let' call
|
|
247
|
-
tmp_9 = '/gas mark ' + formatFraction(tmp7_safe_receiver);
|
|
248
|
-
}
|
|
249
|
-
tmp = joinToString(listOfNotNull([tmp_6, fanTempC, tmp_8, tmp_9]), '');
|
|
308
|
+
tmp = renderOvenTemperature(element);
|
|
250
309
|
} else {
|
|
251
310
|
noWhenBranchMatchedException();
|
|
252
311
|
}
|
|
@@ -254,22 +313,34 @@
|
|
|
254
313
|
}
|
|
255
314
|
return tmp;
|
|
256
315
|
}
|
|
257
|
-
function renderTemplate(template, factor) {
|
|
316
|
+
function renderTemplate(template, factor, measuringSystem) {
|
|
258
317
|
// Inline function 'kotlin.collections.map' call
|
|
259
|
-
var this_0 = template.
|
|
318
|
+
var this_0 = template.n1e_1;
|
|
260
319
|
// Inline function 'kotlin.collections.mapTo' call
|
|
261
320
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
262
321
|
var _iterator__ex2g4s = this_0.h();
|
|
263
322
|
while (_iterator__ex2g4s.i()) {
|
|
264
323
|
var item = _iterator__ex2g4s.j();
|
|
265
|
-
var tmp$ret$0 = renderTemplateElement(item, factor);
|
|
324
|
+
var tmp$ret$0 = renderTemplateElement(item, factor, measuringSystem);
|
|
266
325
|
destination.f(tmp$ret$0);
|
|
267
326
|
}
|
|
268
|
-
var
|
|
269
|
-
return joinToString(
|
|
327
|
+
var renderedParts = destination;
|
|
328
|
+
return joinToString(renderedParts, '');
|
|
329
|
+
}
|
|
330
|
+
function wrapWithStrongTag(value) {
|
|
331
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
332
|
+
var separators = charArrayOf([_Char___init__impl__6a9atx(44), _Char___init__impl__6a9atx(59), _Char___init__impl__6a9atx(40)]);
|
|
333
|
+
var index = indexOfAny(value, separators);
|
|
334
|
+
if (!(index === -1)) {
|
|
335
|
+
var before = substring(value, 0, index);
|
|
336
|
+
var after = substring_0(value, index);
|
|
337
|
+
return '<strong>' + before + '<\/strong>' + after;
|
|
338
|
+
} else {
|
|
339
|
+
return '<strong>' + value + '<\/strong>';
|
|
340
|
+
}
|
|
270
341
|
}
|
|
271
|
-
function scaleAndConvertUnitRecipe(recipe, factor,
|
|
272
|
-
var tmp0_safe_receiver = recipe.
|
|
342
|
+
function scaleAndConvertUnitRecipe(recipe, factor, measuringSystem) {
|
|
343
|
+
var tmp0_safe_receiver = recipe.a1f_1;
|
|
273
344
|
var tmp;
|
|
274
345
|
if (tmp0_safe_receiver == null) {
|
|
275
346
|
tmp = null;
|
|
@@ -280,7 +351,7 @@
|
|
|
280
351
|
var _iterator__ex2g4s = tmp0_safe_receiver.h();
|
|
281
352
|
while (_iterator__ex2g4s.i()) {
|
|
282
353
|
var item = _iterator__ex2g4s.j();
|
|
283
|
-
var tmp0_safe_receiver_0 = item.
|
|
354
|
+
var tmp0_safe_receiver_0 = item.l1f_1;
|
|
284
355
|
var tmp_0;
|
|
285
356
|
if (tmp0_safe_receiver_0 == null) {
|
|
286
357
|
tmp_0 = null;
|
|
@@ -291,28 +362,28 @@
|
|
|
291
362
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.h();
|
|
292
363
|
while (_iterator__ex2g4s_0.i()) {
|
|
293
364
|
var item_0 = _iterator__ex2g4s_0.j();
|
|
294
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
365
|
+
var tmp0_safe_receiver_1 = item_0.t1f_1;
|
|
295
366
|
var tmp_1;
|
|
296
367
|
if (tmp0_safe_receiver_1 == null) {
|
|
297
368
|
tmp_1 = null;
|
|
298
369
|
} else {
|
|
299
370
|
// Inline function 'kotlin.let' call
|
|
300
|
-
tmp_1 = renderTemplate(parseTemplate(tmp0_safe_receiver_1), factor);
|
|
371
|
+
tmp_1 = wrapWithStrongTag(renderTemplate(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
301
372
|
}
|
|
302
373
|
var tmp1_elvis_lhs = tmp_1;
|
|
303
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
304
|
-
var tmp$ret$2 = item_0.
|
|
374
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.u1f_1 : tmp1_elvis_lhs;
|
|
375
|
+
var tmp$ret$2 = item_0.w1f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
305
376
|
destination_0.f(tmp$ret$2);
|
|
306
377
|
}
|
|
307
378
|
tmp_0 = destination_0;
|
|
308
379
|
}
|
|
309
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
380
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.m1f_1);
|
|
310
381
|
destination.f(tmp$ret$5);
|
|
311
382
|
}
|
|
312
383
|
tmp = destination;
|
|
313
384
|
}
|
|
314
385
|
var scaledIngredients = tmp;
|
|
315
|
-
var tmp1_safe_receiver = recipe.
|
|
386
|
+
var tmp1_safe_receiver = recipe.b1f_1;
|
|
316
387
|
var tmp_2;
|
|
317
388
|
if (tmp1_safe_receiver == null) {
|
|
318
389
|
tmp_2 = null;
|
|
@@ -323,22 +394,22 @@
|
|
|
323
394
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.h();
|
|
324
395
|
while (_iterator__ex2g4s_1.i()) {
|
|
325
396
|
var item_1 = _iterator__ex2g4s_1.j();
|
|
326
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
397
|
+
var tmp0_safe_receiver_2 = item_1.y1f_1;
|
|
327
398
|
var tmp_3;
|
|
328
399
|
if (tmp0_safe_receiver_2 == null) {
|
|
329
400
|
tmp_3 = null;
|
|
330
401
|
} else {
|
|
331
402
|
// Inline function 'kotlin.let' call
|
|
332
|
-
tmp_3 = renderTemplate(parseTemplate(tmp0_safe_receiver_2), factor);
|
|
403
|
+
tmp_3 = renderTemplate(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
333
404
|
}
|
|
334
405
|
var description = tmp_3;
|
|
335
|
-
var tmp$ret$10 = item_1.
|
|
406
|
+
var tmp$ret$10 = item_1.b1g(description == null ? item_1.x1f_1 : description);
|
|
336
407
|
destination_1.f(tmp$ret$10);
|
|
337
408
|
}
|
|
338
409
|
tmp_2 = destination_1;
|
|
339
410
|
}
|
|
340
411
|
var scaledInstructions = tmp_2;
|
|
341
|
-
return recipe.
|
|
412
|
+
return recipe.c1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
342
413
|
}
|
|
343
414
|
function RecipeV3$Companion$$childSerializers$_anonymous__7om4qn() {
|
|
344
415
|
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
@@ -410,7 +481,7 @@
|
|
|
410
481
|
// Inline function 'kotlin.arrayOf' call
|
|
411
482
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
412
483
|
// Inline function 'kotlin.js.asDynamic' call
|
|
413
|
-
tmp.
|
|
484
|
+
tmp.d1g_1 = [null, tmp_1, null, tmp_3, tmp_5, null, tmp_7, tmp_9, null, null, null, null, tmp_11, tmp_13, null, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, null, lazy(tmp_24, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_11), null];
|
|
414
485
|
}
|
|
415
486
|
var Companion_instance;
|
|
416
487
|
function Companion_getInstance() {
|
|
@@ -444,86 +515,86 @@
|
|
|
444
515
|
tmp0_serialDesc.ws('title', true);
|
|
445
516
|
tmp0_serialDesc.ws('utensilsAndApplianceIds', true);
|
|
446
517
|
tmp0_serialDesc.ws('webPublicationDate', true);
|
|
447
|
-
this.
|
|
518
|
+
this.e1g_1 = tmp0_serialDesc;
|
|
448
519
|
}
|
|
449
|
-
protoOf($serializer).
|
|
450
|
-
var tmp0_desc = this.
|
|
520
|
+
protoOf($serializer).f1g = function (encoder, value) {
|
|
521
|
+
var tmp0_desc = this.e1g_1;
|
|
451
522
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
452
|
-
var tmp2_cached = Companion_getInstance().
|
|
453
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
454
|
-
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
523
|
+
var tmp2_cached = Companion_getInstance().d1g_1;
|
|
524
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.o1e_1 == null)) {
|
|
525
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.o1e_1);
|
|
455
526
|
}
|
|
456
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
457
|
-
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.
|
|
527
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.p1e_1 == null)) {
|
|
528
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.p1e_1);
|
|
458
529
|
}
|
|
459
|
-
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.
|
|
460
|
-
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
530
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.q1e_1 == null)) {
|
|
531
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.q1e_1);
|
|
461
532
|
}
|
|
462
|
-
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.
|
|
463
|
-
tmp1_output.fn(tmp0_desc, 3, tmp2_cached[3].t1(), value.
|
|
533
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.r1e_1 == null)) {
|
|
534
|
+
tmp1_output.fn(tmp0_desc, 3, tmp2_cached[3].t1(), value.r1e_1);
|
|
464
535
|
}
|
|
465
|
-
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.
|
|
466
|
-
tmp1_output.fn(tmp0_desc, 4, tmp2_cached[4].t1(), value.
|
|
536
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.s1e_1 == null)) {
|
|
537
|
+
tmp1_output.fn(tmp0_desc, 4, tmp2_cached[4].t1(), value.s1e_1);
|
|
467
538
|
}
|
|
468
|
-
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.
|
|
469
|
-
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
539
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.t1e_1 == null)) {
|
|
540
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.t1e_1);
|
|
470
541
|
}
|
|
471
|
-
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.
|
|
472
|
-
tmp1_output.fn(tmp0_desc, 6, tmp2_cached[6].t1(), value.
|
|
542
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.u1e_1 == null)) {
|
|
543
|
+
tmp1_output.fn(tmp0_desc, 6, tmp2_cached[6].t1(), value.u1e_1);
|
|
473
544
|
}
|
|
474
|
-
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.
|
|
475
|
-
tmp1_output.fn(tmp0_desc, 7, tmp2_cached[7].t1(), value.
|
|
545
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.v1e_1 == null)) {
|
|
546
|
+
tmp1_output.fn(tmp0_desc, 7, tmp2_cached[7].t1(), value.v1e_1);
|
|
476
547
|
}
|
|
477
|
-
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.
|
|
478
|
-
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
548
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.w1e_1 == null)) {
|
|
549
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.w1e_1);
|
|
479
550
|
}
|
|
480
|
-
if (tmp1_output.jn(tmp0_desc, 9) ? true : !(value.
|
|
481
|
-
tmp1_output.fn(tmp0_desc, 9, StringSerializer_getInstance(), value.
|
|
551
|
+
if (tmp1_output.jn(tmp0_desc, 9) ? true : !(value.x1e_1 == null)) {
|
|
552
|
+
tmp1_output.fn(tmp0_desc, 9, StringSerializer_getInstance(), value.x1e_1);
|
|
482
553
|
}
|
|
483
|
-
if (tmp1_output.jn(tmp0_desc, 10) ? true : !(value.
|
|
484
|
-
tmp1_output.fn(tmp0_desc, 10, $serializer_getInstance_1(), value.
|
|
554
|
+
if (tmp1_output.jn(tmp0_desc, 10) ? true : !(value.y1e_1 == null)) {
|
|
555
|
+
tmp1_output.fn(tmp0_desc, 10, $serializer_getInstance_1(), value.y1e_1);
|
|
485
556
|
}
|
|
486
|
-
tmp1_output.bn(tmp0_desc, 11, value.
|
|
487
|
-
if (tmp1_output.jn(tmp0_desc, 12) ? true : !(value.
|
|
488
|
-
tmp1_output.fn(tmp0_desc, 12, tmp2_cached[12].t1(), value.
|
|
557
|
+
tmp1_output.bn(tmp0_desc, 11, value.z1e_1);
|
|
558
|
+
if (tmp1_output.jn(tmp0_desc, 12) ? true : !(value.a1f_1 == null)) {
|
|
559
|
+
tmp1_output.fn(tmp0_desc, 12, tmp2_cached[12].t1(), value.a1f_1);
|
|
489
560
|
}
|
|
490
|
-
if (tmp1_output.jn(tmp0_desc, 13) ? true : !(value.
|
|
491
|
-
tmp1_output.fn(tmp0_desc, 13, tmp2_cached[13].t1(), value.
|
|
561
|
+
if (tmp1_output.jn(tmp0_desc, 13) ? true : !(value.b1f_1 == null)) {
|
|
562
|
+
tmp1_output.fn(tmp0_desc, 13, tmp2_cached[13].t1(), value.b1f_1);
|
|
492
563
|
}
|
|
493
|
-
if (tmp1_output.jn(tmp0_desc, 14) ? true : !(value.
|
|
494
|
-
tmp1_output.fn(tmp0_desc, 14, BooleanSerializer_getInstance(), value.
|
|
564
|
+
if (tmp1_output.jn(tmp0_desc, 14) ? true : !(value.c1f_1 == null)) {
|
|
565
|
+
tmp1_output.fn(tmp0_desc, 14, BooleanSerializer_getInstance(), value.c1f_1);
|
|
495
566
|
}
|
|
496
|
-
if (tmp1_output.jn(tmp0_desc, 15) ? true : !(value.
|
|
497
|
-
tmp1_output.fn(tmp0_desc, 15, tmp2_cached[15].t1(), value.
|
|
567
|
+
if (tmp1_output.jn(tmp0_desc, 15) ? true : !(value.d1f_1 == null)) {
|
|
568
|
+
tmp1_output.fn(tmp0_desc, 15, tmp2_cached[15].t1(), value.d1f_1);
|
|
498
569
|
}
|
|
499
|
-
if (tmp1_output.jn(tmp0_desc, 16) ? true : !(value.
|
|
500
|
-
tmp1_output.fn(tmp0_desc, 16, tmp2_cached[16].t1(), value.
|
|
570
|
+
if (tmp1_output.jn(tmp0_desc, 16) ? true : !(value.e1f_1 == null)) {
|
|
571
|
+
tmp1_output.fn(tmp0_desc, 16, tmp2_cached[16].t1(), value.e1f_1);
|
|
501
572
|
}
|
|
502
|
-
if (tmp1_output.jn(tmp0_desc, 17) ? true : !(value.
|
|
503
|
-
tmp1_output.fn(tmp0_desc, 17, tmp2_cached[17].t1(), value.
|
|
573
|
+
if (tmp1_output.jn(tmp0_desc, 17) ? true : !(value.f1f_1 == null)) {
|
|
574
|
+
tmp1_output.fn(tmp0_desc, 17, tmp2_cached[17].t1(), value.f1f_1);
|
|
504
575
|
}
|
|
505
|
-
if (tmp1_output.jn(tmp0_desc, 18) ? true : !(value.
|
|
506
|
-
tmp1_output.fn(tmp0_desc, 18, tmp2_cached[18].t1(), value.
|
|
576
|
+
if (tmp1_output.jn(tmp0_desc, 18) ? true : !(value.g1f_1 == null)) {
|
|
577
|
+
tmp1_output.fn(tmp0_desc, 18, tmp2_cached[18].t1(), value.g1f_1);
|
|
507
578
|
}
|
|
508
|
-
if (tmp1_output.jn(tmp0_desc, 19) ? true : !(value.
|
|
509
|
-
tmp1_output.fn(tmp0_desc, 19, tmp2_cached[19].t1(), value.
|
|
579
|
+
if (tmp1_output.jn(tmp0_desc, 19) ? true : !(value.h1f_1 == null)) {
|
|
580
|
+
tmp1_output.fn(tmp0_desc, 19, tmp2_cached[19].t1(), value.h1f_1);
|
|
510
581
|
}
|
|
511
|
-
if (tmp1_output.jn(tmp0_desc, 20) ? true : !(value.
|
|
512
|
-
tmp1_output.fn(tmp0_desc, 20, StringSerializer_getInstance(), value.
|
|
582
|
+
if (tmp1_output.jn(tmp0_desc, 20) ? true : !(value.i1f_1 == null)) {
|
|
583
|
+
tmp1_output.fn(tmp0_desc, 20, StringSerializer_getInstance(), value.i1f_1);
|
|
513
584
|
}
|
|
514
|
-
if (tmp1_output.jn(tmp0_desc, 21) ? true : !(value.
|
|
515
|
-
tmp1_output.fn(tmp0_desc, 21, tmp2_cached[21].t1(), value.
|
|
585
|
+
if (tmp1_output.jn(tmp0_desc, 21) ? true : !(value.j1f_1 == null)) {
|
|
586
|
+
tmp1_output.fn(tmp0_desc, 21, tmp2_cached[21].t1(), value.j1f_1);
|
|
516
587
|
}
|
|
517
|
-
if (tmp1_output.jn(tmp0_desc, 22) ? true : !(value.
|
|
518
|
-
tmp1_output.fn(tmp0_desc, 22, StringSerializer_getInstance(), value.
|
|
588
|
+
if (tmp1_output.jn(tmp0_desc, 22) ? true : !(value.k1f_1 == null)) {
|
|
589
|
+
tmp1_output.fn(tmp0_desc, 22, StringSerializer_getInstance(), value.k1f_1);
|
|
519
590
|
}
|
|
520
591
|
tmp1_output.ol(tmp0_desc);
|
|
521
592
|
};
|
|
522
593
|
protoOf($serializer).ri = function (encoder, value) {
|
|
523
|
-
return this.
|
|
594
|
+
return this.f1g(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
524
595
|
};
|
|
525
596
|
protoOf($serializer).si = function (decoder) {
|
|
526
|
-
var tmp0_desc = this.
|
|
597
|
+
var tmp0_desc = this.e1g_1;
|
|
527
598
|
var tmp1_flag = true;
|
|
528
599
|
var tmp2_index = 0;
|
|
529
600
|
var tmp3_bitMask0 = 0;
|
|
@@ -551,7 +622,7 @@
|
|
|
551
622
|
var tmp25_local21 = null;
|
|
552
623
|
var tmp26_local22 = null;
|
|
553
624
|
var tmp27_input = decoder.nl(tmp0_desc);
|
|
554
|
-
var tmp28_cached = Companion_getInstance().
|
|
625
|
+
var tmp28_cached = Companion_getInstance().d1g_1;
|
|
555
626
|
if (tmp27_input.dm()) {
|
|
556
627
|
tmp4_local0 = tmp27_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
557
628
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -706,10 +777,10 @@
|
|
|
706
777
|
return RecipeV3_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null);
|
|
707
778
|
};
|
|
708
779
|
protoOf($serializer).qi = function () {
|
|
709
|
-
return this.
|
|
780
|
+
return this.e1g_1;
|
|
710
781
|
};
|
|
711
782
|
protoOf($serializer).ys = function () {
|
|
712
|
-
var tmp0_cached = Companion_getInstance().
|
|
783
|
+
var tmp0_cached = Companion_getInstance().d1g_1;
|
|
713
784
|
// Inline function 'kotlin.arrayOf' call
|
|
714
785
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
715
786
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -723,97 +794,97 @@
|
|
|
723
794
|
}
|
|
724
795
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker, $this) {
|
|
725
796
|
if (!(2048 === (2048 & seen0))) {
|
|
726
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance().
|
|
797
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance().e1g_1);
|
|
727
798
|
}
|
|
728
799
|
if (0 === (seen0 & 1))
|
|
729
|
-
$this.
|
|
800
|
+
$this.o1e_1 = null;
|
|
730
801
|
else
|
|
731
|
-
$this.
|
|
802
|
+
$this.o1e_1 = bookCredit;
|
|
732
803
|
if (0 === (seen0 & 2))
|
|
733
|
-
$this.
|
|
804
|
+
$this.p1e_1 = null;
|
|
734
805
|
else
|
|
735
|
-
$this.
|
|
806
|
+
$this.p1e_1 = byline;
|
|
736
807
|
if (0 === (seen0 & 4))
|
|
737
|
-
$this.
|
|
808
|
+
$this.q1e_1 = null;
|
|
738
809
|
else
|
|
739
|
-
$this.
|
|
810
|
+
$this.q1e_1 = canonicalArticle;
|
|
740
811
|
if (0 === (seen0 & 8))
|
|
741
|
-
$this.
|
|
812
|
+
$this.r1e_1 = null;
|
|
742
813
|
else
|
|
743
|
-
$this.
|
|
814
|
+
$this.r1e_1 = celebrationIds;
|
|
744
815
|
if (0 === (seen0 & 16))
|
|
745
|
-
$this.
|
|
816
|
+
$this.s1e_1 = null;
|
|
746
817
|
else
|
|
747
|
-
$this.
|
|
818
|
+
$this.s1e_1 = commerceCtas;
|
|
748
819
|
if (0 === (seen0 & 32))
|
|
749
|
-
$this.
|
|
820
|
+
$this.t1e_1 = null;
|
|
750
821
|
else
|
|
751
|
-
$this.
|
|
822
|
+
$this.t1e_1 = composerId;
|
|
752
823
|
if (0 === (seen0 & 64))
|
|
753
|
-
$this.
|
|
824
|
+
$this.u1e_1 = null;
|
|
754
825
|
else
|
|
755
|
-
$this.
|
|
826
|
+
$this.u1e_1 = contributors;
|
|
756
827
|
if (0 === (seen0 & 128))
|
|
757
|
-
$this.
|
|
828
|
+
$this.v1e_1 = null;
|
|
758
829
|
else
|
|
759
|
-
$this.
|
|
830
|
+
$this.v1e_1 = cuisineIds;
|
|
760
831
|
if (0 === (seen0 & 256))
|
|
761
|
-
$this.
|
|
832
|
+
$this.w1e_1 = null;
|
|
762
833
|
else
|
|
763
|
-
$this.
|
|
834
|
+
$this.w1e_1 = description;
|
|
764
835
|
if (0 === (seen0 & 512))
|
|
765
|
-
$this.
|
|
836
|
+
$this.x1e_1 = null;
|
|
766
837
|
else
|
|
767
|
-
$this.
|
|
838
|
+
$this.x1e_1 = difficultyLevel;
|
|
768
839
|
if (0 === (seen0 & 1024))
|
|
769
|
-
$this.
|
|
840
|
+
$this.y1e_1 = null;
|
|
770
841
|
else
|
|
771
|
-
$this.
|
|
772
|
-
$this.
|
|
842
|
+
$this.y1e_1 = featuredImage;
|
|
843
|
+
$this.z1e_1 = id;
|
|
773
844
|
if (0 === (seen0 & 4096))
|
|
774
|
-
$this.
|
|
845
|
+
$this.a1f_1 = null;
|
|
775
846
|
else
|
|
776
|
-
$this.
|
|
847
|
+
$this.a1f_1 = ingredients;
|
|
777
848
|
if (0 === (seen0 & 8192))
|
|
778
|
-
$this.
|
|
849
|
+
$this.b1f_1 = null;
|
|
779
850
|
else
|
|
780
|
-
$this.
|
|
851
|
+
$this.b1f_1 = instructions;
|
|
781
852
|
if (0 === (seen0 & 16384))
|
|
782
|
-
$this.
|
|
853
|
+
$this.c1f_1 = null;
|
|
783
854
|
else
|
|
784
|
-
$this.
|
|
855
|
+
$this.c1f_1 = isAppReady;
|
|
785
856
|
if (0 === (seen0 & 32768))
|
|
786
|
-
$this.
|
|
857
|
+
$this.d1f_1 = null;
|
|
787
858
|
else
|
|
788
|
-
$this.
|
|
859
|
+
$this.d1f_1 = mealTypeIds;
|
|
789
860
|
if (0 === (seen0 & 65536))
|
|
790
|
-
$this.
|
|
861
|
+
$this.e1f_1 = null;
|
|
791
862
|
else
|
|
792
|
-
$this.
|
|
863
|
+
$this.e1f_1 = serves;
|
|
793
864
|
if (0 === (seen0 & 131072))
|
|
794
|
-
$this.
|
|
865
|
+
$this.f1f_1 = null;
|
|
795
866
|
else
|
|
796
|
-
$this.
|
|
867
|
+
$this.f1f_1 = suitableForDietIds;
|
|
797
868
|
if (0 === (seen0 & 262144))
|
|
798
|
-
$this.
|
|
869
|
+
$this.g1f_1 = null;
|
|
799
870
|
else
|
|
800
|
-
$this.
|
|
871
|
+
$this.g1f_1 = techniquesUsedIds;
|
|
801
872
|
if (0 === (seen0 & 524288))
|
|
802
|
-
$this.
|
|
873
|
+
$this.h1f_1 = null;
|
|
803
874
|
else
|
|
804
|
-
$this.
|
|
875
|
+
$this.h1f_1 = timings;
|
|
805
876
|
if (0 === (seen0 & 1048576))
|
|
806
|
-
$this.
|
|
877
|
+
$this.i1f_1 = null;
|
|
807
878
|
else
|
|
808
|
-
$this.
|
|
879
|
+
$this.i1f_1 = title;
|
|
809
880
|
if (0 === (seen0 & 2097152))
|
|
810
|
-
$this.
|
|
881
|
+
$this.j1f_1 = null;
|
|
811
882
|
else
|
|
812
|
-
$this.
|
|
883
|
+
$this.j1f_1 = utensilsAndApplianceIds;
|
|
813
884
|
if (0 === (seen0 & 4194304))
|
|
814
|
-
$this.
|
|
885
|
+
$this.k1f_1 = null;
|
|
815
886
|
else
|
|
816
|
-
$this.
|
|
887
|
+
$this.k1f_1 = webPublicationDate;
|
|
817
888
|
return $this;
|
|
818
889
|
}
|
|
819
890
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -843,86 +914,86 @@
|
|
|
843
914
|
title = title === VOID ? null : title;
|
|
844
915
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
845
916
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
853
|
-
this.
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
865
|
-
this.
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
868
|
-
this.
|
|
869
|
-
}
|
|
870
|
-
protoOf(RecipeV3).
|
|
917
|
+
this.o1e_1 = bookCredit;
|
|
918
|
+
this.p1e_1 = byline;
|
|
919
|
+
this.q1e_1 = canonicalArticle;
|
|
920
|
+
this.r1e_1 = celebrationIds;
|
|
921
|
+
this.s1e_1 = commerceCtas;
|
|
922
|
+
this.t1e_1 = composerId;
|
|
923
|
+
this.u1e_1 = contributors;
|
|
924
|
+
this.v1e_1 = cuisineIds;
|
|
925
|
+
this.w1e_1 = description;
|
|
926
|
+
this.x1e_1 = difficultyLevel;
|
|
927
|
+
this.y1e_1 = featuredImage;
|
|
928
|
+
this.z1e_1 = id;
|
|
929
|
+
this.a1f_1 = ingredients;
|
|
930
|
+
this.b1f_1 = instructions;
|
|
931
|
+
this.c1f_1 = isAppReady;
|
|
932
|
+
this.d1f_1 = mealTypeIds;
|
|
933
|
+
this.e1f_1 = serves;
|
|
934
|
+
this.f1f_1 = suitableForDietIds;
|
|
935
|
+
this.g1f_1 = techniquesUsedIds;
|
|
936
|
+
this.h1f_1 = timings;
|
|
937
|
+
this.i1f_1 = title;
|
|
938
|
+
this.j1f_1 = utensilsAndApplianceIds;
|
|
939
|
+
this.k1f_1 = webPublicationDate;
|
|
940
|
+
}
|
|
941
|
+
protoOf(RecipeV3).g1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
871
942
|
return new RecipeV3(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
872
943
|
};
|
|
873
|
-
protoOf(RecipeV3).
|
|
874
|
-
bookCredit = bookCredit === VOID ? this.
|
|
875
|
-
byline = byline === VOID ? this.
|
|
876
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
877
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
878
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
879
|
-
composerId = composerId === VOID ? this.
|
|
880
|
-
contributors = contributors === VOID ? this.
|
|
881
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
882
|
-
description = description === VOID ? this.
|
|
883
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
884
|
-
featuredImage = featuredImage === VOID ? this.
|
|
885
|
-
id = id === VOID ? this.
|
|
886
|
-
ingredients = ingredients === VOID ? this.
|
|
887
|
-
instructions = instructions === VOID ? this.
|
|
888
|
-
isAppReady = isAppReady === VOID ? this.
|
|
889
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
890
|
-
serves = serves === VOID ? this.
|
|
891
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
892
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
893
|
-
timings = timings === VOID ? this.
|
|
894
|
-
title = title === VOID ? this.
|
|
895
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
896
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
897
|
-
return $super === VOID ? this.
|
|
944
|
+
protoOf(RecipeV3).c1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, $super) {
|
|
945
|
+
bookCredit = bookCredit === VOID ? this.o1e_1 : bookCredit;
|
|
946
|
+
byline = byline === VOID ? this.p1e_1 : byline;
|
|
947
|
+
canonicalArticle = canonicalArticle === VOID ? this.q1e_1 : canonicalArticle;
|
|
948
|
+
celebrationIds = celebrationIds === VOID ? this.r1e_1 : celebrationIds;
|
|
949
|
+
commerceCtas = commerceCtas === VOID ? this.s1e_1 : commerceCtas;
|
|
950
|
+
composerId = composerId === VOID ? this.t1e_1 : composerId;
|
|
951
|
+
contributors = contributors === VOID ? this.u1e_1 : contributors;
|
|
952
|
+
cuisineIds = cuisineIds === VOID ? this.v1e_1 : cuisineIds;
|
|
953
|
+
description = description === VOID ? this.w1e_1 : description;
|
|
954
|
+
difficultyLevel = difficultyLevel === VOID ? this.x1e_1 : difficultyLevel;
|
|
955
|
+
featuredImage = featuredImage === VOID ? this.y1e_1 : featuredImage;
|
|
956
|
+
id = id === VOID ? this.z1e_1 : id;
|
|
957
|
+
ingredients = ingredients === VOID ? this.a1f_1 : ingredients;
|
|
958
|
+
instructions = instructions === VOID ? this.b1f_1 : instructions;
|
|
959
|
+
isAppReady = isAppReady === VOID ? this.c1f_1 : isAppReady;
|
|
960
|
+
mealTypeIds = mealTypeIds === VOID ? this.d1f_1 : mealTypeIds;
|
|
961
|
+
serves = serves === VOID ? this.e1f_1 : serves;
|
|
962
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.f1f_1 : suitableForDietIds;
|
|
963
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.g1f_1 : techniquesUsedIds;
|
|
964
|
+
timings = timings === VOID ? this.h1f_1 : timings;
|
|
965
|
+
title = title === VOID ? this.i1f_1 : title;
|
|
966
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.j1f_1 : utensilsAndApplianceIds;
|
|
967
|
+
webPublicationDate = webPublicationDate === VOID ? this.k1f_1 : webPublicationDate;
|
|
968
|
+
return $super === VOID ? this.g1g(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.g1g.call(this, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
898
969
|
};
|
|
899
970
|
protoOf(RecipeV3).toString = function () {
|
|
900
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
971
|
+
return 'RecipeV3(bookCredit=' + this.o1e_1 + ', byline=' + toString(this.p1e_1) + ', canonicalArticle=' + this.q1e_1 + ', celebrationIds=' + toString(this.r1e_1) + ', commerceCtas=' + toString(this.s1e_1) + ', composerId=' + this.t1e_1 + ', contributors=' + toString(this.u1e_1) + ', cuisineIds=' + toString(this.v1e_1) + ', description=' + this.w1e_1 + ', difficultyLevel=' + this.x1e_1 + ', featuredImage=' + toString(this.y1e_1) + ', id=' + this.z1e_1 + ', ingredients=' + toString(this.a1f_1) + ', instructions=' + toString(this.b1f_1) + ', isAppReady=' + this.c1f_1 + ', mealTypeIds=' + toString(this.d1f_1) + ', serves=' + toString(this.e1f_1) + ', suitableForDietIds=' + toString(this.f1f_1) + ', techniquesUsedIds=' + toString(this.g1f_1) + ', timings=' + toString(this.h1f_1) + ', title=' + this.i1f_1 + ', utensilsAndApplianceIds=' + toString(this.j1f_1) + ', webPublicationDate=' + this.k1f_1 + ')';
|
|
901
972
|
};
|
|
902
973
|
protoOf(RecipeV3).hashCode = function () {
|
|
903
|
-
var result = this.
|
|
904
|
-
result = imul(result, 31) + (this.
|
|
905
|
-
result = imul(result, 31) + (this.
|
|
906
|
-
result = imul(result, 31) + (this.
|
|
907
|
-
result = imul(result, 31) + (this.
|
|
908
|
-
result = imul(result, 31) + (this.
|
|
909
|
-
result = imul(result, 31) + (this.
|
|
910
|
-
result = imul(result, 31) + (this.
|
|
911
|
-
result = imul(result, 31) + (this.
|
|
912
|
-
result = imul(result, 31) + (this.
|
|
913
|
-
result = imul(result, 31) + (this.
|
|
914
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
915
|
-
result = imul(result, 31) + (this.
|
|
916
|
-
result = imul(result, 31) + (this.
|
|
917
|
-
result = imul(result, 31) + (this.
|
|
918
|
-
result = imul(result, 31) + (this.
|
|
919
|
-
result = imul(result, 31) + (this.
|
|
920
|
-
result = imul(result, 31) + (this.
|
|
921
|
-
result = imul(result, 31) + (this.
|
|
922
|
-
result = imul(result, 31) + (this.
|
|
923
|
-
result = imul(result, 31) + (this.
|
|
924
|
-
result = imul(result, 31) + (this.
|
|
925
|
-
result = imul(result, 31) + (this.
|
|
974
|
+
var result = this.o1e_1 == null ? 0 : getStringHashCode(this.o1e_1);
|
|
975
|
+
result = imul(result, 31) + (this.p1e_1 == null ? 0 : hashCode(this.p1e_1)) | 0;
|
|
976
|
+
result = imul(result, 31) + (this.q1e_1 == null ? 0 : getStringHashCode(this.q1e_1)) | 0;
|
|
977
|
+
result = imul(result, 31) + (this.r1e_1 == null ? 0 : hashCode(this.r1e_1)) | 0;
|
|
978
|
+
result = imul(result, 31) + (this.s1e_1 == null ? 0 : hashCode(this.s1e_1)) | 0;
|
|
979
|
+
result = imul(result, 31) + (this.t1e_1 == null ? 0 : getStringHashCode(this.t1e_1)) | 0;
|
|
980
|
+
result = imul(result, 31) + (this.u1e_1 == null ? 0 : hashCode(this.u1e_1)) | 0;
|
|
981
|
+
result = imul(result, 31) + (this.v1e_1 == null ? 0 : hashCode(this.v1e_1)) | 0;
|
|
982
|
+
result = imul(result, 31) + (this.w1e_1 == null ? 0 : getStringHashCode(this.w1e_1)) | 0;
|
|
983
|
+
result = imul(result, 31) + (this.x1e_1 == null ? 0 : getStringHashCode(this.x1e_1)) | 0;
|
|
984
|
+
result = imul(result, 31) + (this.y1e_1 == null ? 0 : this.y1e_1.hashCode()) | 0;
|
|
985
|
+
result = imul(result, 31) + getStringHashCode(this.z1e_1) | 0;
|
|
986
|
+
result = imul(result, 31) + (this.a1f_1 == null ? 0 : hashCode(this.a1f_1)) | 0;
|
|
987
|
+
result = imul(result, 31) + (this.b1f_1 == null ? 0 : hashCode(this.b1f_1)) | 0;
|
|
988
|
+
result = imul(result, 31) + (this.c1f_1 == null ? 0 : getBooleanHashCode(this.c1f_1)) | 0;
|
|
989
|
+
result = imul(result, 31) + (this.d1f_1 == null ? 0 : hashCode(this.d1f_1)) | 0;
|
|
990
|
+
result = imul(result, 31) + (this.e1f_1 == null ? 0 : hashCode(this.e1f_1)) | 0;
|
|
991
|
+
result = imul(result, 31) + (this.f1f_1 == null ? 0 : hashCode(this.f1f_1)) | 0;
|
|
992
|
+
result = imul(result, 31) + (this.g1f_1 == null ? 0 : hashCode(this.g1f_1)) | 0;
|
|
993
|
+
result = imul(result, 31) + (this.h1f_1 == null ? 0 : hashCode(this.h1f_1)) | 0;
|
|
994
|
+
result = imul(result, 31) + (this.i1f_1 == null ? 0 : getStringHashCode(this.i1f_1)) | 0;
|
|
995
|
+
result = imul(result, 31) + (this.j1f_1 == null ? 0 : hashCode(this.j1f_1)) | 0;
|
|
996
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : getStringHashCode(this.k1f_1)) | 0;
|
|
926
997
|
return result;
|
|
927
998
|
};
|
|
928
999
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -930,51 +1001,51 @@
|
|
|
930
1001
|
return true;
|
|
931
1002
|
if (!(other instanceof RecipeV3))
|
|
932
1003
|
return false;
|
|
933
|
-
if (!(this.
|
|
1004
|
+
if (!(this.o1e_1 == other.o1e_1))
|
|
934
1005
|
return false;
|
|
935
|
-
if (!equals(this.
|
|
1006
|
+
if (!equals(this.p1e_1, other.p1e_1))
|
|
936
1007
|
return false;
|
|
937
|
-
if (!(this.
|
|
1008
|
+
if (!(this.q1e_1 == other.q1e_1))
|
|
938
1009
|
return false;
|
|
939
|
-
if (!equals(this.
|
|
1010
|
+
if (!equals(this.r1e_1, other.r1e_1))
|
|
940
1011
|
return false;
|
|
941
|
-
if (!equals(this.
|
|
1012
|
+
if (!equals(this.s1e_1, other.s1e_1))
|
|
942
1013
|
return false;
|
|
943
|
-
if (!(this.
|
|
1014
|
+
if (!(this.t1e_1 == other.t1e_1))
|
|
944
1015
|
return false;
|
|
945
|
-
if (!equals(this.
|
|
1016
|
+
if (!equals(this.u1e_1, other.u1e_1))
|
|
946
1017
|
return false;
|
|
947
|
-
if (!equals(this.
|
|
1018
|
+
if (!equals(this.v1e_1, other.v1e_1))
|
|
948
1019
|
return false;
|
|
949
|
-
if (!(this.
|
|
1020
|
+
if (!(this.w1e_1 == other.w1e_1))
|
|
950
1021
|
return false;
|
|
951
|
-
if (!(this.
|
|
1022
|
+
if (!(this.x1e_1 == other.x1e_1))
|
|
952
1023
|
return false;
|
|
953
|
-
if (!equals(this.
|
|
1024
|
+
if (!equals(this.y1e_1, other.y1e_1))
|
|
954
1025
|
return false;
|
|
955
|
-
if (!(this.
|
|
1026
|
+
if (!(this.z1e_1 === other.z1e_1))
|
|
956
1027
|
return false;
|
|
957
|
-
if (!equals(this.
|
|
1028
|
+
if (!equals(this.a1f_1, other.a1f_1))
|
|
958
1029
|
return false;
|
|
959
|
-
if (!equals(this.
|
|
1030
|
+
if (!equals(this.b1f_1, other.b1f_1))
|
|
960
1031
|
return false;
|
|
961
|
-
if (!(this.
|
|
1032
|
+
if (!(this.c1f_1 == other.c1f_1))
|
|
962
1033
|
return false;
|
|
963
|
-
if (!equals(this.
|
|
1034
|
+
if (!equals(this.d1f_1, other.d1f_1))
|
|
964
1035
|
return false;
|
|
965
|
-
if (!equals(this.
|
|
1036
|
+
if (!equals(this.e1f_1, other.e1f_1))
|
|
966
1037
|
return false;
|
|
967
|
-
if (!equals(this.
|
|
1038
|
+
if (!equals(this.f1f_1, other.f1f_1))
|
|
968
1039
|
return false;
|
|
969
|
-
if (!equals(this.
|
|
1040
|
+
if (!equals(this.g1f_1, other.g1f_1))
|
|
970
1041
|
return false;
|
|
971
|
-
if (!equals(this.
|
|
1042
|
+
if (!equals(this.h1f_1, other.h1f_1))
|
|
972
1043
|
return false;
|
|
973
|
-
if (!(this.
|
|
1044
|
+
if (!(this.i1f_1 == other.i1f_1))
|
|
974
1045
|
return false;
|
|
975
|
-
if (!equals(this.
|
|
1046
|
+
if (!equals(this.j1f_1, other.j1f_1))
|
|
976
1047
|
return false;
|
|
977
|
-
if (!(this.
|
|
1048
|
+
if (!(this.k1f_1 == other.k1f_1))
|
|
978
1049
|
return false;
|
|
979
1050
|
return true;
|
|
980
1051
|
};
|
|
@@ -984,21 +1055,21 @@
|
|
|
984
1055
|
tmp0_serialDesc.ws('sponsorName', false);
|
|
985
1056
|
tmp0_serialDesc.ws('territory', false);
|
|
986
1057
|
tmp0_serialDesc.ws('url', false);
|
|
987
|
-
this.
|
|
1058
|
+
this.h1g_1 = tmp0_serialDesc;
|
|
988
1059
|
}
|
|
989
|
-
protoOf($serializer_0).
|
|
990
|
-
var tmp0_desc = this.
|
|
1060
|
+
protoOf($serializer_0).i1g = function (encoder, value) {
|
|
1061
|
+
var tmp0_desc = this.h1g_1;
|
|
991
1062
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
992
|
-
tmp1_output.bn(tmp0_desc, 0, value.
|
|
993
|
-
tmp1_output.bn(tmp0_desc, 1, value.
|
|
994
|
-
tmp1_output.bn(tmp0_desc, 2, value.
|
|
1063
|
+
tmp1_output.bn(tmp0_desc, 0, value.j1g_1);
|
|
1064
|
+
tmp1_output.bn(tmp0_desc, 1, value.k1g_1);
|
|
1065
|
+
tmp1_output.bn(tmp0_desc, 2, value.l1g_1);
|
|
995
1066
|
tmp1_output.ol(tmp0_desc);
|
|
996
1067
|
};
|
|
997
1068
|
protoOf($serializer_0).ri = function (encoder, value) {
|
|
998
|
-
return this.
|
|
1069
|
+
return this.i1g(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
999
1070
|
};
|
|
1000
1071
|
protoOf($serializer_0).si = function (decoder) {
|
|
1001
|
-
var tmp0_desc = this.
|
|
1072
|
+
var tmp0_desc = this.h1g_1;
|
|
1002
1073
|
var tmp1_flag = true;
|
|
1003
1074
|
var tmp2_index = 0;
|
|
1004
1075
|
var tmp3_bitMask0 = 0;
|
|
@@ -1040,7 +1111,7 @@
|
|
|
1040
1111
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1041
1112
|
};
|
|
1042
1113
|
protoOf($serializer_0).qi = function () {
|
|
1043
|
-
return this.
|
|
1114
|
+
return this.h1g_1;
|
|
1044
1115
|
};
|
|
1045
1116
|
protoOf($serializer_0).ys = function () {
|
|
1046
1117
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1056,11 +1127,11 @@
|
|
|
1056
1127
|
}
|
|
1057
1128
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1058
1129
|
if (!(7 === (7 & seen0))) {
|
|
1059
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().
|
|
1130
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().h1g_1);
|
|
1060
1131
|
}
|
|
1061
|
-
$this.
|
|
1062
|
-
$this.
|
|
1063
|
-
$this.
|
|
1132
|
+
$this.j1g_1 = sponsorName;
|
|
1133
|
+
$this.k1g_1 = territory;
|
|
1134
|
+
$this.l1g_1 = url;
|
|
1064
1135
|
return $this;
|
|
1065
1136
|
}
|
|
1066
1137
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1069,12 +1140,12 @@
|
|
|
1069
1140
|
function CommerceCta() {
|
|
1070
1141
|
}
|
|
1071
1142
|
protoOf(CommerceCta).toString = function () {
|
|
1072
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1143
|
+
return 'CommerceCta(sponsorName=' + this.j1g_1 + ', territory=' + this.k1g_1 + ', url=' + this.l1g_1 + ')';
|
|
1073
1144
|
};
|
|
1074
1145
|
protoOf(CommerceCta).hashCode = function () {
|
|
1075
|
-
var result = getStringHashCode(this.
|
|
1076
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1077
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1146
|
+
var result = getStringHashCode(this.j1g_1);
|
|
1147
|
+
result = imul(result, 31) + getStringHashCode(this.k1g_1) | 0;
|
|
1148
|
+
result = imul(result, 31) + getStringHashCode(this.l1g_1) | 0;
|
|
1078
1149
|
return result;
|
|
1079
1150
|
};
|
|
1080
1151
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1082,11 +1153,11 @@
|
|
|
1082
1153
|
return true;
|
|
1083
1154
|
if (!(other instanceof CommerceCta))
|
|
1084
1155
|
return false;
|
|
1085
|
-
if (!(this.
|
|
1156
|
+
if (!(this.j1g_1 === other.j1g_1))
|
|
1086
1157
|
return false;
|
|
1087
|
-
if (!(this.
|
|
1158
|
+
if (!(this.k1g_1 === other.k1g_1))
|
|
1088
1159
|
return false;
|
|
1089
|
-
if (!(this.
|
|
1160
|
+
if (!(this.l1g_1 === other.l1g_1))
|
|
1090
1161
|
return false;
|
|
1091
1162
|
return true;
|
|
1092
1163
|
};
|
|
@@ -1101,36 +1172,36 @@
|
|
|
1101
1172
|
tmp0_serialDesc.ws('photographer', true);
|
|
1102
1173
|
tmp0_serialDesc.ws('source', true);
|
|
1103
1174
|
tmp0_serialDesc.ws('url', false);
|
|
1104
|
-
this.
|
|
1175
|
+
this.m1g_1 = tmp0_serialDesc;
|
|
1105
1176
|
}
|
|
1106
|
-
protoOf($serializer_1).
|
|
1107
|
-
var tmp0_desc = this.
|
|
1177
|
+
protoOf($serializer_1).n1g = function (encoder, value) {
|
|
1178
|
+
var tmp0_desc = this.m1g_1;
|
|
1108
1179
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1109
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
1110
|
-
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1180
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.o1g_1 == null)) {
|
|
1181
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.o1g_1);
|
|
1111
1182
|
}
|
|
1112
|
-
tmp1_output.bn(tmp0_desc, 1, value.
|
|
1113
|
-
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.
|
|
1114
|
-
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1183
|
+
tmp1_output.bn(tmp0_desc, 1, value.p1g_1);
|
|
1184
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.q1g_1 == null)) {
|
|
1185
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.q1g_1);
|
|
1115
1186
|
}
|
|
1116
|
-
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.
|
|
1117
|
-
tmp1_output.fn(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
1187
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.r1g_1 == null)) {
|
|
1188
|
+
tmp1_output.fn(tmp0_desc, 3, StringSerializer_getInstance(), value.r1g_1);
|
|
1118
1189
|
}
|
|
1119
|
-
tmp1_output.bn(tmp0_desc, 4, value.
|
|
1120
|
-
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.
|
|
1121
|
-
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1190
|
+
tmp1_output.bn(tmp0_desc, 4, value.s1g_1);
|
|
1191
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.t1g_1 == null)) {
|
|
1192
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.t1g_1);
|
|
1122
1193
|
}
|
|
1123
|
-
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.
|
|
1124
|
-
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1194
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.u1g_1 == null)) {
|
|
1195
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.u1g_1);
|
|
1125
1196
|
}
|
|
1126
|
-
tmp1_output.bn(tmp0_desc, 7, value.
|
|
1197
|
+
tmp1_output.bn(tmp0_desc, 7, value.v1g_1);
|
|
1127
1198
|
tmp1_output.ol(tmp0_desc);
|
|
1128
1199
|
};
|
|
1129
1200
|
protoOf($serializer_1).ri = function (encoder, value) {
|
|
1130
|
-
return this.
|
|
1201
|
+
return this.n1g(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1131
1202
|
};
|
|
1132
1203
|
protoOf($serializer_1).si = function (decoder) {
|
|
1133
|
-
var tmp0_desc = this.
|
|
1204
|
+
var tmp0_desc = this.m1g_1;
|
|
1134
1205
|
var tmp1_flag = true;
|
|
1135
1206
|
var tmp2_index = 0;
|
|
1136
1207
|
var tmp3_bitMask0 = 0;
|
|
@@ -1207,7 +1278,7 @@
|
|
|
1207
1278
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1208
1279
|
};
|
|
1209
1280
|
protoOf($serializer_1).qi = function () {
|
|
1210
|
-
return this.
|
|
1281
|
+
return this.m1g_1;
|
|
1211
1282
|
};
|
|
1212
1283
|
protoOf($serializer_1).ys = function () {
|
|
1213
1284
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1223,31 +1294,31 @@
|
|
|
1223
1294
|
}
|
|
1224
1295
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1225
1296
|
if (!(146 === (146 & seen0))) {
|
|
1226
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_1().
|
|
1297
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_1().m1g_1);
|
|
1227
1298
|
}
|
|
1228
1299
|
if (0 === (seen0 & 1))
|
|
1229
|
-
$this.
|
|
1300
|
+
$this.o1g_1 = null;
|
|
1230
1301
|
else
|
|
1231
|
-
$this.
|
|
1232
|
-
$this.
|
|
1302
|
+
$this.o1g_1 = caption;
|
|
1303
|
+
$this.p1g_1 = cropId;
|
|
1233
1304
|
if (0 === (seen0 & 4))
|
|
1234
|
-
$this.
|
|
1305
|
+
$this.q1g_1 = null;
|
|
1235
1306
|
else
|
|
1236
|
-
$this.
|
|
1307
|
+
$this.q1g_1 = imageType;
|
|
1237
1308
|
if (0 === (seen0 & 8))
|
|
1238
|
-
$this.
|
|
1309
|
+
$this.r1g_1 = null;
|
|
1239
1310
|
else
|
|
1240
|
-
$this.
|
|
1241
|
-
$this.
|
|
1311
|
+
$this.r1g_1 = mediaApiUrl;
|
|
1312
|
+
$this.s1g_1 = mediaId;
|
|
1242
1313
|
if (0 === (seen0 & 32))
|
|
1243
|
-
$this.
|
|
1314
|
+
$this.t1g_1 = null;
|
|
1244
1315
|
else
|
|
1245
|
-
$this.
|
|
1316
|
+
$this.t1g_1 = photographer;
|
|
1246
1317
|
if (0 === (seen0 & 64))
|
|
1247
|
-
$this.
|
|
1318
|
+
$this.u1g_1 = null;
|
|
1248
1319
|
else
|
|
1249
|
-
$this.
|
|
1250
|
-
$this.
|
|
1320
|
+
$this.u1g_1 = source;
|
|
1321
|
+
$this.v1g_1 = url;
|
|
1251
1322
|
return $this;
|
|
1252
1323
|
}
|
|
1253
1324
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1256,17 +1327,17 @@
|
|
|
1256
1327
|
function Image() {
|
|
1257
1328
|
}
|
|
1258
1329
|
protoOf(Image).toString = function () {
|
|
1259
|
-
return 'Image(caption=' + this.
|
|
1330
|
+
return 'Image(caption=' + this.o1g_1 + ', cropId=' + this.p1g_1 + ', imageType=' + this.q1g_1 + ', mediaApiUrl=' + this.r1g_1 + ', mediaId=' + this.s1g_1 + ', photographer=' + this.t1g_1 + ', source=' + this.u1g_1 + ', url=' + this.v1g_1 + ')';
|
|
1260
1331
|
};
|
|
1261
1332
|
protoOf(Image).hashCode = function () {
|
|
1262
|
-
var result = this.
|
|
1263
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1264
|
-
result = imul(result, 31) + (this.
|
|
1265
|
-
result = imul(result, 31) + (this.
|
|
1266
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1267
|
-
result = imul(result, 31) + (this.
|
|
1268
|
-
result = imul(result, 31) + (this.
|
|
1269
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1333
|
+
var result = this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1);
|
|
1334
|
+
result = imul(result, 31) + getStringHashCode(this.p1g_1) | 0;
|
|
1335
|
+
result = imul(result, 31) + (this.q1g_1 == null ? 0 : getStringHashCode(this.q1g_1)) | 0;
|
|
1336
|
+
result = imul(result, 31) + (this.r1g_1 == null ? 0 : getStringHashCode(this.r1g_1)) | 0;
|
|
1337
|
+
result = imul(result, 31) + getStringHashCode(this.s1g_1) | 0;
|
|
1338
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : getStringHashCode(this.t1g_1)) | 0;
|
|
1339
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : getStringHashCode(this.u1g_1)) | 0;
|
|
1340
|
+
result = imul(result, 31) + getStringHashCode(this.v1g_1) | 0;
|
|
1270
1341
|
return result;
|
|
1271
1342
|
};
|
|
1272
1343
|
protoOf(Image).equals = function (other) {
|
|
@@ -1274,21 +1345,21 @@
|
|
|
1274
1345
|
return true;
|
|
1275
1346
|
if (!(other instanceof Image))
|
|
1276
1347
|
return false;
|
|
1277
|
-
if (!(this.
|
|
1348
|
+
if (!(this.o1g_1 == other.o1g_1))
|
|
1278
1349
|
return false;
|
|
1279
|
-
if (!(this.
|
|
1350
|
+
if (!(this.p1g_1 === other.p1g_1))
|
|
1280
1351
|
return false;
|
|
1281
|
-
if (!(this.
|
|
1352
|
+
if (!(this.q1g_1 == other.q1g_1))
|
|
1282
1353
|
return false;
|
|
1283
|
-
if (!(this.
|
|
1354
|
+
if (!(this.r1g_1 == other.r1g_1))
|
|
1284
1355
|
return false;
|
|
1285
|
-
if (!(this.
|
|
1356
|
+
if (!(this.s1g_1 === other.s1g_1))
|
|
1286
1357
|
return false;
|
|
1287
|
-
if (!(this.
|
|
1358
|
+
if (!(this.t1g_1 == other.t1g_1))
|
|
1288
1359
|
return false;
|
|
1289
|
-
if (!(this.
|
|
1360
|
+
if (!(this.u1g_1 == other.u1g_1))
|
|
1290
1361
|
return false;
|
|
1291
|
-
if (!(this.
|
|
1362
|
+
if (!(this.v1g_1 === other.v1g_1))
|
|
1292
1363
|
return false;
|
|
1293
1364
|
return true;
|
|
1294
1365
|
};
|
|
@@ -1302,7 +1373,7 @@
|
|
|
1302
1373
|
// Inline function 'kotlin.arrayOf' call
|
|
1303
1374
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1304
1375
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1305
|
-
tmp.
|
|
1376
|
+
tmp.w1g_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1306
1377
|
}
|
|
1307
1378
|
var Companion_instance_0;
|
|
1308
1379
|
function Companion_getInstance_0() {
|
|
@@ -1315,32 +1386,32 @@
|
|
|
1315
1386
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1316
1387
|
tmp0_serialDesc.ws('ingredientsList', true);
|
|
1317
1388
|
tmp0_serialDesc.ws('recipeSection', true);
|
|
1318
|
-
this.
|
|
1389
|
+
this.x1g_1 = tmp0_serialDesc;
|
|
1319
1390
|
}
|
|
1320
|
-
protoOf($serializer_2).
|
|
1321
|
-
var tmp0_desc = this.
|
|
1391
|
+
protoOf($serializer_2).y1g = function (encoder, value) {
|
|
1392
|
+
var tmp0_desc = this.x1g_1;
|
|
1322
1393
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1323
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
1324
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
1325
|
-
tmp1_output.fn(tmp0_desc, 0, tmp2_cached[0].t1(), value.
|
|
1394
|
+
var tmp2_cached = Companion_getInstance_0().w1g_1;
|
|
1395
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.l1f_1 == null)) {
|
|
1396
|
+
tmp1_output.fn(tmp0_desc, 0, tmp2_cached[0].t1(), value.l1f_1);
|
|
1326
1397
|
}
|
|
1327
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
1328
|
-
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1398
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.m1f_1 == null)) {
|
|
1399
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.m1f_1);
|
|
1329
1400
|
}
|
|
1330
1401
|
tmp1_output.ol(tmp0_desc);
|
|
1331
1402
|
};
|
|
1332
1403
|
protoOf($serializer_2).ri = function (encoder, value) {
|
|
1333
|
-
return this.
|
|
1404
|
+
return this.y1g(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1334
1405
|
};
|
|
1335
1406
|
protoOf($serializer_2).si = function (decoder) {
|
|
1336
|
-
var tmp0_desc = this.
|
|
1407
|
+
var tmp0_desc = this.x1g_1;
|
|
1337
1408
|
var tmp1_flag = true;
|
|
1338
1409
|
var tmp2_index = 0;
|
|
1339
1410
|
var tmp3_bitMask0 = 0;
|
|
1340
1411
|
var tmp4_local0 = null;
|
|
1341
1412
|
var tmp5_local1 = null;
|
|
1342
1413
|
var tmp6_input = decoder.nl(tmp0_desc);
|
|
1343
|
-
var tmp7_cached = Companion_getInstance_0().
|
|
1414
|
+
var tmp7_cached = Companion_getInstance_0().w1g_1;
|
|
1344
1415
|
if (tmp6_input.dm()) {
|
|
1345
1416
|
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1346
1417
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1369,10 +1440,10 @@
|
|
|
1369
1440
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1370
1441
|
};
|
|
1371
1442
|
protoOf($serializer_2).qi = function () {
|
|
1372
|
-
return this.
|
|
1443
|
+
return this.x1g_1;
|
|
1373
1444
|
};
|
|
1374
1445
|
protoOf($serializer_2).ys = function () {
|
|
1375
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
1446
|
+
var tmp0_cached = Companion_getInstance_0().w1g_1;
|
|
1376
1447
|
// Inline function 'kotlin.arrayOf' call
|
|
1377
1448
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1378
1449
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1386,16 +1457,16 @@
|
|
|
1386
1457
|
}
|
|
1387
1458
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1388
1459
|
if (!(0 === (0 & seen0))) {
|
|
1389
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().
|
|
1460
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().x1g_1);
|
|
1390
1461
|
}
|
|
1391
1462
|
if (0 === (seen0 & 1))
|
|
1392
|
-
$this.
|
|
1463
|
+
$this.l1f_1 = null;
|
|
1393
1464
|
else
|
|
1394
|
-
$this.
|
|
1465
|
+
$this.l1f_1 = ingredientsList;
|
|
1395
1466
|
if (0 === (seen0 & 2))
|
|
1396
|
-
$this.
|
|
1467
|
+
$this.m1f_1 = null;
|
|
1397
1468
|
else
|
|
1398
|
-
$this.
|
|
1469
|
+
$this.m1f_1 = recipeSection;
|
|
1399
1470
|
return $this;
|
|
1400
1471
|
}
|
|
1401
1472
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1405,15 +1476,15 @@
|
|
|
1405
1476
|
Companion_getInstance_0();
|
|
1406
1477
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1407
1478
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1479
|
+
this.l1f_1 = ingredientsList;
|
|
1480
|
+
this.m1f_1 = recipeSection;
|
|
1410
1481
|
}
|
|
1411
1482
|
protoOf(IngredientsList).toString = function () {
|
|
1412
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
1483
|
+
return 'IngredientsList(ingredientsList=' + toString(this.l1f_1) + ', recipeSection=' + this.m1f_1 + ')';
|
|
1413
1484
|
};
|
|
1414
1485
|
protoOf(IngredientsList).hashCode = function () {
|
|
1415
|
-
var result = this.
|
|
1416
|
-
result = imul(result, 31) + (this.
|
|
1486
|
+
var result = this.l1f_1 == null ? 0 : hashCode(this.l1f_1);
|
|
1487
|
+
result = imul(result, 31) + (this.m1f_1 == null ? 0 : getStringHashCode(this.m1f_1)) | 0;
|
|
1417
1488
|
return result;
|
|
1418
1489
|
};
|
|
1419
1490
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -1421,9 +1492,9 @@
|
|
|
1421
1492
|
return true;
|
|
1422
1493
|
if (!(other instanceof IngredientsList))
|
|
1423
1494
|
return false;
|
|
1424
|
-
if (!equals(this.
|
|
1495
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
1425
1496
|
return false;
|
|
1426
|
-
if (!(this.
|
|
1497
|
+
if (!(this.m1f_1 == other.m1f_1))
|
|
1427
1498
|
return false;
|
|
1428
1499
|
return true;
|
|
1429
1500
|
};
|
|
@@ -1445,45 +1516,45 @@
|
|
|
1445
1516
|
tmp0_serialDesc.ws('template', true);
|
|
1446
1517
|
tmp0_serialDesc.ws('text', true);
|
|
1447
1518
|
tmp0_serialDesc.ws('unit', true);
|
|
1448
|
-
this.
|
|
1519
|
+
this.z1g_1 = tmp0_serialDesc;
|
|
1449
1520
|
}
|
|
1450
|
-
protoOf($serializer_3).
|
|
1451
|
-
var tmp0_desc = this.
|
|
1521
|
+
protoOf($serializer_3).a1h = function (encoder, value) {
|
|
1522
|
+
var tmp0_desc = this.z1g_1;
|
|
1452
1523
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1453
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
1454
|
-
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance_4(), value.
|
|
1524
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.n1f_1 == null)) {
|
|
1525
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance_4(), value.n1f_1);
|
|
1455
1526
|
}
|
|
1456
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
1457
|
-
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1527
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.o1f_1 == null)) {
|
|
1528
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.o1f_1);
|
|
1458
1529
|
}
|
|
1459
|
-
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.
|
|
1460
|
-
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1530
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.p1f_1 == null)) {
|
|
1531
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.p1f_1);
|
|
1461
1532
|
}
|
|
1462
|
-
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.
|
|
1463
|
-
tmp1_output.fn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
1533
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.q1f_1 == null)) {
|
|
1534
|
+
tmp1_output.fn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.q1f_1);
|
|
1464
1535
|
}
|
|
1465
|
-
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.
|
|
1466
|
-
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
1536
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.r1f_1 == null)) {
|
|
1537
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.r1f_1);
|
|
1467
1538
|
}
|
|
1468
|
-
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.
|
|
1469
|
-
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1539
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.s1f_1 == null)) {
|
|
1540
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.s1f_1);
|
|
1470
1541
|
}
|
|
1471
|
-
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.
|
|
1472
|
-
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1542
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.t1f_1 == null)) {
|
|
1543
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.t1f_1);
|
|
1473
1544
|
}
|
|
1474
|
-
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.
|
|
1475
|
-
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.
|
|
1545
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.u1f_1 == null)) {
|
|
1546
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.u1f_1);
|
|
1476
1547
|
}
|
|
1477
|
-
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.
|
|
1478
|
-
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
1548
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.v1f_1 == null)) {
|
|
1549
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.v1f_1);
|
|
1479
1550
|
}
|
|
1480
1551
|
tmp1_output.ol(tmp0_desc);
|
|
1481
1552
|
};
|
|
1482
1553
|
protoOf($serializer_3).ri = function (encoder, value) {
|
|
1483
|
-
return this.
|
|
1554
|
+
return this.a1h(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
1484
1555
|
};
|
|
1485
1556
|
protoOf($serializer_3).si = function (decoder) {
|
|
1486
|
-
var tmp0_desc = this.
|
|
1557
|
+
var tmp0_desc = this.z1g_1;
|
|
1487
1558
|
var tmp1_flag = true;
|
|
1488
1559
|
var tmp2_index = 0;
|
|
1489
1560
|
var tmp3_bitMask0 = 0;
|
|
@@ -1567,7 +1638,7 @@
|
|
|
1567
1638
|
return IngredientItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
1568
1639
|
};
|
|
1569
1640
|
protoOf($serializer_3).qi = function () {
|
|
1570
|
-
return this.
|
|
1641
|
+
return this.z1g_1;
|
|
1571
1642
|
};
|
|
1572
1643
|
protoOf($serializer_3).ys = function () {
|
|
1573
1644
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1583,44 +1654,44 @@
|
|
|
1583
1654
|
}
|
|
1584
1655
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
1585
1656
|
if (!(0 === (0 & seen0))) {
|
|
1586
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().
|
|
1657
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().z1g_1);
|
|
1587
1658
|
}
|
|
1588
1659
|
if (0 === (seen0 & 1))
|
|
1589
|
-
$this.
|
|
1660
|
+
$this.n1f_1 = null;
|
|
1590
1661
|
else
|
|
1591
|
-
$this.
|
|
1662
|
+
$this.n1f_1 = amount;
|
|
1592
1663
|
if (0 === (seen0 & 2))
|
|
1593
|
-
$this.
|
|
1664
|
+
$this.o1f_1 = null;
|
|
1594
1665
|
else
|
|
1595
|
-
$this.
|
|
1666
|
+
$this.o1f_1 = ingredientId;
|
|
1596
1667
|
if (0 === (seen0 & 4))
|
|
1597
|
-
$this.
|
|
1668
|
+
$this.p1f_1 = null;
|
|
1598
1669
|
else
|
|
1599
|
-
$this.
|
|
1670
|
+
$this.p1f_1 = name;
|
|
1600
1671
|
if (0 === (seen0 & 8))
|
|
1601
|
-
$this.
|
|
1672
|
+
$this.q1f_1 = null;
|
|
1602
1673
|
else
|
|
1603
|
-
$this.
|
|
1674
|
+
$this.q1f_1 = optional;
|
|
1604
1675
|
if (0 === (seen0 & 16))
|
|
1605
|
-
$this.
|
|
1676
|
+
$this.r1f_1 = null;
|
|
1606
1677
|
else
|
|
1607
|
-
$this.
|
|
1678
|
+
$this.r1f_1 = prefix;
|
|
1608
1679
|
if (0 === (seen0 & 32))
|
|
1609
|
-
$this.
|
|
1680
|
+
$this.s1f_1 = null;
|
|
1610
1681
|
else
|
|
1611
|
-
$this.
|
|
1682
|
+
$this.s1f_1 = suffix;
|
|
1612
1683
|
if (0 === (seen0 & 64))
|
|
1613
|
-
$this.
|
|
1684
|
+
$this.t1f_1 = null;
|
|
1614
1685
|
else
|
|
1615
|
-
$this.
|
|
1686
|
+
$this.t1f_1 = template;
|
|
1616
1687
|
if (0 === (seen0 & 128))
|
|
1617
|
-
$this.
|
|
1688
|
+
$this.u1f_1 = null;
|
|
1618
1689
|
else
|
|
1619
|
-
$this.
|
|
1690
|
+
$this.u1f_1 = text;
|
|
1620
1691
|
if (0 === (seen0 & 256))
|
|
1621
|
-
$this.
|
|
1692
|
+
$this.v1f_1 = null;
|
|
1622
1693
|
else
|
|
1623
|
-
$this.
|
|
1694
|
+
$this.v1f_1 = unit;
|
|
1624
1695
|
return $this;
|
|
1625
1696
|
}
|
|
1626
1697
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -1636,44 +1707,44 @@
|
|
|
1636
1707
|
template = template === VOID ? null : template;
|
|
1637
1708
|
text = text === VOID ? null : text;
|
|
1638
1709
|
unit = unit === VOID ? null : unit;
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
}
|
|
1649
|
-
protoOf(IngredientItem).
|
|
1710
|
+
this.n1f_1 = amount;
|
|
1711
|
+
this.o1f_1 = ingredientId;
|
|
1712
|
+
this.p1f_1 = name;
|
|
1713
|
+
this.q1f_1 = optional;
|
|
1714
|
+
this.r1f_1 = prefix;
|
|
1715
|
+
this.s1f_1 = suffix;
|
|
1716
|
+
this.t1f_1 = template;
|
|
1717
|
+
this.u1f_1 = text;
|
|
1718
|
+
this.v1f_1 = unit;
|
|
1719
|
+
}
|
|
1720
|
+
protoOf(IngredientItem).b1h = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
1650
1721
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
1651
1722
|
};
|
|
1652
|
-
protoOf(IngredientItem).
|
|
1653
|
-
amount = amount === VOID ? this.
|
|
1654
|
-
ingredientId = ingredientId === VOID ? this.
|
|
1655
|
-
name = name === VOID ? this.
|
|
1656
|
-
optional = optional === VOID ? this.
|
|
1657
|
-
prefix = prefix === VOID ? this.
|
|
1658
|
-
suffix = suffix === VOID ? this.
|
|
1659
|
-
template = template === VOID ? this.
|
|
1660
|
-
text = text === VOID ? this.
|
|
1661
|
-
unit = unit === VOID ? this.
|
|
1662
|
-
return $super === VOID ? this.
|
|
1723
|
+
protoOf(IngredientItem).w1f = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
1724
|
+
amount = amount === VOID ? this.n1f_1 : amount;
|
|
1725
|
+
ingredientId = ingredientId === VOID ? this.o1f_1 : ingredientId;
|
|
1726
|
+
name = name === VOID ? this.p1f_1 : name;
|
|
1727
|
+
optional = optional === VOID ? this.q1f_1 : optional;
|
|
1728
|
+
prefix = prefix === VOID ? this.r1f_1 : prefix;
|
|
1729
|
+
suffix = suffix === VOID ? this.s1f_1 : suffix;
|
|
1730
|
+
template = template === VOID ? this.t1f_1 : template;
|
|
1731
|
+
text = text === VOID ? this.u1f_1 : text;
|
|
1732
|
+
unit = unit === VOID ? this.v1f_1 : unit;
|
|
1733
|
+
return $super === VOID ? this.b1h(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.b1h.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
1663
1734
|
};
|
|
1664
1735
|
protoOf(IngredientItem).toString = function () {
|
|
1665
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
1736
|
+
return 'IngredientItem(amount=' + toString(this.n1f_1) + ', ingredientId=' + this.o1f_1 + ', name=' + this.p1f_1 + ', optional=' + this.q1f_1 + ', prefix=' + this.r1f_1 + ', suffix=' + this.s1f_1 + ', template=' + this.t1f_1 + ', text=' + this.u1f_1 + ', unit=' + this.v1f_1 + ')';
|
|
1666
1737
|
};
|
|
1667
1738
|
protoOf(IngredientItem).hashCode = function () {
|
|
1668
|
-
var result = this.
|
|
1669
|
-
result = imul(result, 31) + (this.
|
|
1670
|
-
result = imul(result, 31) + (this.
|
|
1671
|
-
result = imul(result, 31) + (this.
|
|
1672
|
-
result = imul(result, 31) + (this.
|
|
1673
|
-
result = imul(result, 31) + (this.
|
|
1674
|
-
result = imul(result, 31) + (this.
|
|
1675
|
-
result = imul(result, 31) + (this.
|
|
1676
|
-
result = imul(result, 31) + (this.
|
|
1739
|
+
var result = this.n1f_1 == null ? 0 : this.n1f_1.hashCode();
|
|
1740
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : getStringHashCode(this.o1f_1)) | 0;
|
|
1741
|
+
result = imul(result, 31) + (this.p1f_1 == null ? 0 : getStringHashCode(this.p1f_1)) | 0;
|
|
1742
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : getBooleanHashCode(this.q1f_1)) | 0;
|
|
1743
|
+
result = imul(result, 31) + (this.r1f_1 == null ? 0 : getStringHashCode(this.r1f_1)) | 0;
|
|
1744
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : getStringHashCode(this.s1f_1)) | 0;
|
|
1745
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : getStringHashCode(this.t1f_1)) | 0;
|
|
1746
|
+
result = imul(result, 31) + (this.u1f_1 == null ? 0 : getStringHashCode(this.u1f_1)) | 0;
|
|
1747
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : getStringHashCode(this.v1f_1)) | 0;
|
|
1677
1748
|
return result;
|
|
1678
1749
|
};
|
|
1679
1750
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -1681,23 +1752,23 @@
|
|
|
1681
1752
|
return true;
|
|
1682
1753
|
if (!(other instanceof IngredientItem))
|
|
1683
1754
|
return false;
|
|
1684
|
-
if (!equals(this.
|
|
1755
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
1685
1756
|
return false;
|
|
1686
|
-
if (!(this.
|
|
1757
|
+
if (!(this.o1f_1 == other.o1f_1))
|
|
1687
1758
|
return false;
|
|
1688
|
-
if (!(this.
|
|
1759
|
+
if (!(this.p1f_1 == other.p1f_1))
|
|
1689
1760
|
return false;
|
|
1690
|
-
if (!(this.
|
|
1761
|
+
if (!(this.q1f_1 == other.q1f_1))
|
|
1691
1762
|
return false;
|
|
1692
|
-
if (!(this.
|
|
1763
|
+
if (!(this.r1f_1 == other.r1f_1))
|
|
1693
1764
|
return false;
|
|
1694
|
-
if (!(this.
|
|
1765
|
+
if (!(this.s1f_1 == other.s1f_1))
|
|
1695
1766
|
return false;
|
|
1696
|
-
if (!(this.
|
|
1767
|
+
if (!(this.t1f_1 == other.t1f_1))
|
|
1697
1768
|
return false;
|
|
1698
|
-
if (!(this.
|
|
1769
|
+
if (!(this.u1f_1 == other.u1f_1))
|
|
1699
1770
|
return false;
|
|
1700
|
-
if (!(this.
|
|
1771
|
+
if (!(this.v1f_1 == other.v1f_1))
|
|
1701
1772
|
return false;
|
|
1702
1773
|
return true;
|
|
1703
1774
|
};
|
|
@@ -1712,24 +1783,24 @@
|
|
|
1712
1783
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
1713
1784
|
tmp0_serialDesc.ws('max', true);
|
|
1714
1785
|
tmp0_serialDesc.ws('min', true);
|
|
1715
|
-
this.
|
|
1786
|
+
this.c1h_1 = tmp0_serialDesc;
|
|
1716
1787
|
}
|
|
1717
|
-
protoOf($serializer_4).
|
|
1718
|
-
var tmp0_desc = this.
|
|
1788
|
+
protoOf($serializer_4).d1h = function (encoder, value) {
|
|
1789
|
+
var tmp0_desc = this.c1h_1;
|
|
1719
1790
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1720
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
1721
|
-
tmp1_output.fn(tmp0_desc, 0, DoubleSerializer_getInstance(), value.
|
|
1791
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.e1h_1 == null)) {
|
|
1792
|
+
tmp1_output.fn(tmp0_desc, 0, DoubleSerializer_getInstance(), value.e1h_1);
|
|
1722
1793
|
}
|
|
1723
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
1724
|
-
tmp1_output.fn(tmp0_desc, 1, DoubleSerializer_getInstance(), value.
|
|
1794
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.f1h_1 == null)) {
|
|
1795
|
+
tmp1_output.fn(tmp0_desc, 1, DoubleSerializer_getInstance(), value.f1h_1);
|
|
1725
1796
|
}
|
|
1726
1797
|
tmp1_output.ol(tmp0_desc);
|
|
1727
1798
|
};
|
|
1728
1799
|
protoOf($serializer_4).ri = function (encoder, value) {
|
|
1729
|
-
return this.
|
|
1800
|
+
return this.d1h(encoder, value instanceof Range ? value : THROW_CCE());
|
|
1730
1801
|
};
|
|
1731
1802
|
protoOf($serializer_4).si = function (decoder) {
|
|
1732
|
-
var tmp0_desc = this.
|
|
1803
|
+
var tmp0_desc = this.c1h_1;
|
|
1733
1804
|
var tmp1_flag = true;
|
|
1734
1805
|
var tmp2_index = 0;
|
|
1735
1806
|
var tmp3_bitMask0 = 0;
|
|
@@ -1764,7 +1835,7 @@
|
|
|
1764
1835
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1765
1836
|
};
|
|
1766
1837
|
protoOf($serializer_4).qi = function () {
|
|
1767
|
-
return this.
|
|
1838
|
+
return this.c1h_1;
|
|
1768
1839
|
};
|
|
1769
1840
|
protoOf($serializer_4).ys = function () {
|
|
1770
1841
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1780,16 +1851,16 @@
|
|
|
1780
1851
|
}
|
|
1781
1852
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
1782
1853
|
if (!(0 === (0 & seen0))) {
|
|
1783
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1854
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().c1h_1);
|
|
1784
1855
|
}
|
|
1785
1856
|
if (0 === (seen0 & 1))
|
|
1786
|
-
$this.
|
|
1857
|
+
$this.e1h_1 = null;
|
|
1787
1858
|
else
|
|
1788
|
-
$this.
|
|
1859
|
+
$this.e1h_1 = max;
|
|
1789
1860
|
if (0 === (seen0 & 2))
|
|
1790
|
-
$this.
|
|
1861
|
+
$this.f1h_1 = null;
|
|
1791
1862
|
else
|
|
1792
|
-
$this.
|
|
1863
|
+
$this.f1h_1 = min;
|
|
1793
1864
|
return $this;
|
|
1794
1865
|
}
|
|
1795
1866
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -1798,15 +1869,15 @@
|
|
|
1798
1869
|
function Range(max, min) {
|
|
1799
1870
|
max = max === VOID ? null : max;
|
|
1800
1871
|
min = min === VOID ? null : min;
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1872
|
+
this.e1h_1 = max;
|
|
1873
|
+
this.f1h_1 = min;
|
|
1803
1874
|
}
|
|
1804
1875
|
protoOf(Range).toString = function () {
|
|
1805
|
-
return 'Range(max=' + this.
|
|
1876
|
+
return 'Range(max=' + this.e1h_1 + ', min=' + this.f1h_1 + ')';
|
|
1806
1877
|
};
|
|
1807
1878
|
protoOf(Range).hashCode = function () {
|
|
1808
|
-
var result = this.
|
|
1809
|
-
result = imul(result, 31) + (this.
|
|
1879
|
+
var result = this.e1h_1 == null ? 0 : getNumberHashCode(this.e1h_1);
|
|
1880
|
+
result = imul(result, 31) + (this.f1h_1 == null ? 0 : getNumberHashCode(this.f1h_1)) | 0;
|
|
1810
1881
|
return result;
|
|
1811
1882
|
};
|
|
1812
1883
|
protoOf(Range).equals = function (other) {
|
|
@@ -1814,9 +1885,9 @@
|
|
|
1814
1885
|
return true;
|
|
1815
1886
|
if (!(other instanceof Range))
|
|
1816
1887
|
return false;
|
|
1817
|
-
if (!equals(this.
|
|
1888
|
+
if (!equals(this.e1h_1, other.e1h_1))
|
|
1818
1889
|
return false;
|
|
1819
|
-
if (!equals(this.
|
|
1890
|
+
if (!equals(this.f1h_1, other.f1h_1))
|
|
1820
1891
|
return false;
|
|
1821
1892
|
return true;
|
|
1822
1893
|
};
|
|
@@ -1830,7 +1901,7 @@
|
|
|
1830
1901
|
// Inline function 'kotlin.arrayOf' call
|
|
1831
1902
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1832
1903
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1833
|
-
tmp.
|
|
1904
|
+
tmp.g1h_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
1834
1905
|
}
|
|
1835
1906
|
var Companion_instance_3;
|
|
1836
1907
|
function Companion_getInstance_3() {
|
|
@@ -1845,29 +1916,29 @@
|
|
|
1845
1916
|
tmp0_serialDesc.ws('descriptionTemplate', true);
|
|
1846
1917
|
tmp0_serialDesc.ws('images', true);
|
|
1847
1918
|
tmp0_serialDesc.ws('stepNumber', true);
|
|
1848
|
-
this.
|
|
1919
|
+
this.h1h_1 = tmp0_serialDesc;
|
|
1849
1920
|
}
|
|
1850
|
-
protoOf($serializer_5).
|
|
1851
|
-
var tmp0_desc = this.
|
|
1921
|
+
protoOf($serializer_5).i1h = function (encoder, value) {
|
|
1922
|
+
var tmp0_desc = this.h1h_1;
|
|
1852
1923
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1853
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1854
|
-
tmp1_output.bn(tmp0_desc, 0, value.
|
|
1855
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
1856
|
-
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1924
|
+
var tmp2_cached = Companion_getInstance_3().g1h_1;
|
|
1925
|
+
tmp1_output.bn(tmp0_desc, 0, value.x1f_1);
|
|
1926
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.y1f_1 == null)) {
|
|
1927
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.y1f_1);
|
|
1857
1928
|
}
|
|
1858
|
-
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.
|
|
1859
|
-
tmp1_output.fn(tmp0_desc, 2, tmp2_cached[2].t1(), value.
|
|
1929
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.z1f_1 == null)) {
|
|
1930
|
+
tmp1_output.fn(tmp0_desc, 2, tmp2_cached[2].t1(), value.z1f_1);
|
|
1860
1931
|
}
|
|
1861
|
-
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.
|
|
1862
|
-
tmp1_output.fn(tmp0_desc, 3, DoubleSerializer_getInstance(), value.
|
|
1932
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.a1g_1 == null)) {
|
|
1933
|
+
tmp1_output.fn(tmp0_desc, 3, DoubleSerializer_getInstance(), value.a1g_1);
|
|
1863
1934
|
}
|
|
1864
1935
|
tmp1_output.ol(tmp0_desc);
|
|
1865
1936
|
};
|
|
1866
1937
|
protoOf($serializer_5).ri = function (encoder, value) {
|
|
1867
|
-
return this.
|
|
1938
|
+
return this.i1h(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
1868
1939
|
};
|
|
1869
1940
|
protoOf($serializer_5).si = function (decoder) {
|
|
1870
|
-
var tmp0_desc = this.
|
|
1941
|
+
var tmp0_desc = this.h1h_1;
|
|
1871
1942
|
var tmp1_flag = true;
|
|
1872
1943
|
var tmp2_index = 0;
|
|
1873
1944
|
var tmp3_bitMask0 = 0;
|
|
@@ -1876,7 +1947,7 @@
|
|
|
1876
1947
|
var tmp6_local2 = null;
|
|
1877
1948
|
var tmp7_local3 = null;
|
|
1878
1949
|
var tmp8_input = decoder.nl(tmp0_desc);
|
|
1879
|
-
var tmp9_cached = Companion_getInstance_3().
|
|
1950
|
+
var tmp9_cached = Companion_getInstance_3().g1h_1;
|
|
1880
1951
|
if (tmp8_input.dm()) {
|
|
1881
1952
|
tmp4_local0 = tmp8_input.xl(tmp0_desc, 0);
|
|
1882
1953
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1917,10 +1988,10 @@
|
|
|
1917
1988
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1918
1989
|
};
|
|
1919
1990
|
protoOf($serializer_5).qi = function () {
|
|
1920
|
-
return this.
|
|
1991
|
+
return this.h1h_1;
|
|
1921
1992
|
};
|
|
1922
1993
|
protoOf($serializer_5).ys = function () {
|
|
1923
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1994
|
+
var tmp0_cached = Companion_getInstance_3().g1h_1;
|
|
1924
1995
|
// Inline function 'kotlin.arrayOf' call
|
|
1925
1996
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1926
1997
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1934,21 +2005,21 @@
|
|
|
1934
2005
|
}
|
|
1935
2006
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
1936
2007
|
if (!(1 === (1 & seen0))) {
|
|
1937
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().
|
|
2008
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().h1h_1);
|
|
1938
2009
|
}
|
|
1939
|
-
$this.
|
|
2010
|
+
$this.x1f_1 = description;
|
|
1940
2011
|
if (0 === (seen0 & 2))
|
|
1941
|
-
$this.
|
|
2012
|
+
$this.y1f_1 = null;
|
|
1942
2013
|
else
|
|
1943
|
-
$this.
|
|
2014
|
+
$this.y1f_1 = descriptionTemplate;
|
|
1944
2015
|
if (0 === (seen0 & 4))
|
|
1945
|
-
$this.
|
|
2016
|
+
$this.z1f_1 = null;
|
|
1946
2017
|
else
|
|
1947
|
-
$this.
|
|
2018
|
+
$this.z1f_1 = images;
|
|
1948
2019
|
if (0 === (seen0 & 8))
|
|
1949
|
-
$this.
|
|
2020
|
+
$this.a1g_1 = null;
|
|
1950
2021
|
else
|
|
1951
|
-
$this.
|
|
2022
|
+
$this.a1g_1 = stepNumber;
|
|
1952
2023
|
return $this;
|
|
1953
2024
|
}
|
|
1954
2025
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -1959,29 +2030,29 @@
|
|
|
1959
2030
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
1960
2031
|
images = images === VOID ? null : images;
|
|
1961
2032
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
2033
|
+
this.x1f_1 = description;
|
|
2034
|
+
this.y1f_1 = descriptionTemplate;
|
|
2035
|
+
this.z1f_1 = images;
|
|
2036
|
+
this.a1g_1 = stepNumber;
|
|
1966
2037
|
}
|
|
1967
|
-
protoOf(Instruction).
|
|
2038
|
+
protoOf(Instruction).j1h = function (description, descriptionTemplate, images, stepNumber) {
|
|
1968
2039
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
1969
2040
|
};
|
|
1970
|
-
protoOf(Instruction).
|
|
1971
|
-
description = description === VOID ? this.
|
|
1972
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
1973
|
-
images = images === VOID ? this.
|
|
1974
|
-
stepNumber = stepNumber === VOID ? this.
|
|
1975
|
-
return $super === VOID ? this.
|
|
2041
|
+
protoOf(Instruction).b1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2042
|
+
description = description === VOID ? this.x1f_1 : description;
|
|
2043
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.y1f_1 : descriptionTemplate;
|
|
2044
|
+
images = images === VOID ? this.z1f_1 : images;
|
|
2045
|
+
stepNumber = stepNumber === VOID ? this.a1g_1 : stepNumber;
|
|
2046
|
+
return $super === VOID ? this.j1h(description, descriptionTemplate, images, stepNumber) : $super.j1h.call(this, description, descriptionTemplate, images, stepNumber);
|
|
1976
2047
|
};
|
|
1977
2048
|
protoOf(Instruction).toString = function () {
|
|
1978
|
-
return 'Instruction(description=' + this.
|
|
2049
|
+
return 'Instruction(description=' + this.x1f_1 + ', descriptionTemplate=' + this.y1f_1 + ', images=' + toString(this.z1f_1) + ', stepNumber=' + this.a1g_1 + ')';
|
|
1979
2050
|
};
|
|
1980
2051
|
protoOf(Instruction).hashCode = function () {
|
|
1981
|
-
var result = getStringHashCode(this.
|
|
1982
|
-
result = imul(result, 31) + (this.
|
|
1983
|
-
result = imul(result, 31) + (this.
|
|
1984
|
-
result = imul(result, 31) + (this.
|
|
2052
|
+
var result = getStringHashCode(this.x1f_1);
|
|
2053
|
+
result = imul(result, 31) + (this.y1f_1 == null ? 0 : getStringHashCode(this.y1f_1)) | 0;
|
|
2054
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
2055
|
+
result = imul(result, 31) + (this.a1g_1 == null ? 0 : getNumberHashCode(this.a1g_1)) | 0;
|
|
1985
2056
|
return result;
|
|
1986
2057
|
};
|
|
1987
2058
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -1989,13 +2060,13 @@
|
|
|
1989
2060
|
return true;
|
|
1990
2061
|
if (!(other instanceof Instruction))
|
|
1991
2062
|
return false;
|
|
1992
|
-
if (!(this.
|
|
2063
|
+
if (!(this.x1f_1 === other.x1f_1))
|
|
1993
2064
|
return false;
|
|
1994
|
-
if (!(this.
|
|
2065
|
+
if (!(this.y1f_1 == other.y1f_1))
|
|
1995
2066
|
return false;
|
|
1996
|
-
if (!equals(this.
|
|
2067
|
+
if (!equals(this.z1f_1, other.z1f_1))
|
|
1997
2068
|
return false;
|
|
1998
|
-
if (!equals(this.
|
|
2069
|
+
if (!equals(this.a1g_1, other.a1g_1))
|
|
1999
2070
|
return false;
|
|
2000
2071
|
return true;
|
|
2001
2072
|
};
|
|
@@ -2005,25 +2076,25 @@
|
|
|
2005
2076
|
tmp0_serialDesc.ws('amount', true);
|
|
2006
2077
|
tmp0_serialDesc.ws('text', true);
|
|
2007
2078
|
tmp0_serialDesc.ws('unit', false);
|
|
2008
|
-
this.
|
|
2079
|
+
this.k1h_1 = tmp0_serialDesc;
|
|
2009
2080
|
}
|
|
2010
|
-
protoOf($serializer_6).
|
|
2011
|
-
var tmp0_desc = this.
|
|
2081
|
+
protoOf($serializer_6).l1h = function (encoder, value) {
|
|
2082
|
+
var tmp0_desc = this.k1h_1;
|
|
2012
2083
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2013
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
2014
|
-
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance_4(), value.
|
|
2084
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.m1h_1 == null)) {
|
|
2085
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance_4(), value.m1h_1);
|
|
2015
2086
|
}
|
|
2016
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
2017
|
-
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2087
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.n1h_1 == null)) {
|
|
2088
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.n1h_1);
|
|
2018
2089
|
}
|
|
2019
|
-
tmp1_output.bn(tmp0_desc, 2, value.
|
|
2090
|
+
tmp1_output.bn(tmp0_desc, 2, value.o1h_1);
|
|
2020
2091
|
tmp1_output.ol(tmp0_desc);
|
|
2021
2092
|
};
|
|
2022
2093
|
protoOf($serializer_6).ri = function (encoder, value) {
|
|
2023
|
-
return this.
|
|
2094
|
+
return this.l1h(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2024
2095
|
};
|
|
2025
2096
|
protoOf($serializer_6).si = function (decoder) {
|
|
2026
|
-
var tmp0_desc = this.
|
|
2097
|
+
var tmp0_desc = this.k1h_1;
|
|
2027
2098
|
var tmp1_flag = true;
|
|
2028
2099
|
var tmp2_index = 0;
|
|
2029
2100
|
var tmp3_bitMask0 = 0;
|
|
@@ -2065,7 +2136,7 @@
|
|
|
2065
2136
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2066
2137
|
};
|
|
2067
2138
|
protoOf($serializer_6).qi = function () {
|
|
2068
|
-
return this.
|
|
2139
|
+
return this.k1h_1;
|
|
2069
2140
|
};
|
|
2070
2141
|
protoOf($serializer_6).ys = function () {
|
|
2071
2142
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2081,17 +2152,17 @@
|
|
|
2081
2152
|
}
|
|
2082
2153
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2083
2154
|
if (!(4 === (4 & seen0))) {
|
|
2084
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_6().
|
|
2155
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_6().k1h_1);
|
|
2085
2156
|
}
|
|
2086
2157
|
if (0 === (seen0 & 1))
|
|
2087
|
-
$this.
|
|
2158
|
+
$this.m1h_1 = null;
|
|
2088
2159
|
else
|
|
2089
|
-
$this.
|
|
2160
|
+
$this.m1h_1 = amount;
|
|
2090
2161
|
if (0 === (seen0 & 2))
|
|
2091
|
-
$this.
|
|
2162
|
+
$this.n1h_1 = null;
|
|
2092
2163
|
else
|
|
2093
|
-
$this.
|
|
2094
|
-
$this.
|
|
2164
|
+
$this.n1h_1 = text;
|
|
2165
|
+
$this.o1h_1 = unit;
|
|
2095
2166
|
return $this;
|
|
2096
2167
|
}
|
|
2097
2168
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2100,12 +2171,12 @@
|
|
|
2100
2171
|
function Serves() {
|
|
2101
2172
|
}
|
|
2102
2173
|
protoOf(Serves).toString = function () {
|
|
2103
|
-
return 'Serves(amount=' + toString(this.
|
|
2174
|
+
return 'Serves(amount=' + toString(this.m1h_1) + ', text=' + this.n1h_1 + ', unit=' + this.o1h_1 + ')';
|
|
2104
2175
|
};
|
|
2105
2176
|
protoOf(Serves).hashCode = function () {
|
|
2106
|
-
var result = this.
|
|
2107
|
-
result = imul(result, 31) + (this.
|
|
2108
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2177
|
+
var result = this.m1h_1 == null ? 0 : this.m1h_1.hashCode();
|
|
2178
|
+
result = imul(result, 31) + (this.n1h_1 == null ? 0 : getStringHashCode(this.n1h_1)) | 0;
|
|
2179
|
+
result = imul(result, 31) + getStringHashCode(this.o1h_1) | 0;
|
|
2109
2180
|
return result;
|
|
2110
2181
|
};
|
|
2111
2182
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2113,11 +2184,11 @@
|
|
|
2113
2184
|
return true;
|
|
2114
2185
|
if (!(other instanceof Serves))
|
|
2115
2186
|
return false;
|
|
2116
|
-
if (!equals(this.
|
|
2187
|
+
if (!equals(this.m1h_1, other.m1h_1))
|
|
2117
2188
|
return false;
|
|
2118
|
-
if (!(this.
|
|
2189
|
+
if (!(this.n1h_1 == other.n1h_1))
|
|
2119
2190
|
return false;
|
|
2120
|
-
if (!(this.
|
|
2191
|
+
if (!(this.o1h_1 === other.o1h_1))
|
|
2121
2192
|
return false;
|
|
2122
2193
|
return true;
|
|
2123
2194
|
};
|
|
@@ -2133,27 +2204,27 @@
|
|
|
2133
2204
|
tmp0_serialDesc.ws('durationInMins', true);
|
|
2134
2205
|
tmp0_serialDesc.ws('qualifier', true);
|
|
2135
2206
|
tmp0_serialDesc.ws('text', true);
|
|
2136
|
-
this.
|
|
2207
|
+
this.p1h_1 = tmp0_serialDesc;
|
|
2137
2208
|
}
|
|
2138
|
-
protoOf($serializer_7).
|
|
2139
|
-
var tmp0_desc = this.
|
|
2209
|
+
protoOf($serializer_7).q1h = function (encoder, value) {
|
|
2210
|
+
var tmp0_desc = this.p1h_1;
|
|
2140
2211
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2141
|
-
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.
|
|
2142
|
-
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance_4(), value.
|
|
2212
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.r1h_1 == null)) {
|
|
2213
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance_4(), value.r1h_1);
|
|
2143
2214
|
}
|
|
2144
|
-
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.
|
|
2145
|
-
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2215
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.s1h_1 == null)) {
|
|
2216
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.s1h_1);
|
|
2146
2217
|
}
|
|
2147
|
-
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.
|
|
2148
|
-
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2218
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.t1h_1 == null)) {
|
|
2219
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.t1h_1);
|
|
2149
2220
|
}
|
|
2150
2221
|
tmp1_output.ol(tmp0_desc);
|
|
2151
2222
|
};
|
|
2152
2223
|
protoOf($serializer_7).ri = function (encoder, value) {
|
|
2153
|
-
return this.
|
|
2224
|
+
return this.q1h(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2154
2225
|
};
|
|
2155
2226
|
protoOf($serializer_7).si = function (decoder) {
|
|
2156
|
-
var tmp0_desc = this.
|
|
2227
|
+
var tmp0_desc = this.p1h_1;
|
|
2157
2228
|
var tmp1_flag = true;
|
|
2158
2229
|
var tmp2_index = 0;
|
|
2159
2230
|
var tmp3_bitMask0 = 0;
|
|
@@ -2195,7 +2266,7 @@
|
|
|
2195
2266
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2196
2267
|
};
|
|
2197
2268
|
protoOf($serializer_7).qi = function () {
|
|
2198
|
-
return this.
|
|
2269
|
+
return this.p1h_1;
|
|
2199
2270
|
};
|
|
2200
2271
|
protoOf($serializer_7).ys = function () {
|
|
2201
2272
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2211,20 +2282,20 @@
|
|
|
2211
2282
|
}
|
|
2212
2283
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2213
2284
|
if (!(0 === (0 & seen0))) {
|
|
2214
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().
|
|
2285
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().p1h_1);
|
|
2215
2286
|
}
|
|
2216
2287
|
if (0 === (seen0 & 1))
|
|
2217
|
-
$this.
|
|
2288
|
+
$this.r1h_1 = null;
|
|
2218
2289
|
else
|
|
2219
|
-
$this.
|
|
2290
|
+
$this.r1h_1 = durationInMins;
|
|
2220
2291
|
if (0 === (seen0 & 2))
|
|
2221
|
-
$this.
|
|
2292
|
+
$this.s1h_1 = null;
|
|
2222
2293
|
else
|
|
2223
|
-
$this.
|
|
2294
|
+
$this.s1h_1 = qualifier;
|
|
2224
2295
|
if (0 === (seen0 & 4))
|
|
2225
|
-
$this.
|
|
2296
|
+
$this.t1h_1 = null;
|
|
2226
2297
|
else
|
|
2227
|
-
$this.
|
|
2298
|
+
$this.t1h_1 = text;
|
|
2228
2299
|
return $this;
|
|
2229
2300
|
}
|
|
2230
2301
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2234,17 +2305,17 @@
|
|
|
2234
2305
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2235
2306
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2236
2307
|
text = text === VOID ? null : text;
|
|
2237
|
-
this.
|
|
2238
|
-
this.
|
|
2239
|
-
this.
|
|
2308
|
+
this.r1h_1 = durationInMins;
|
|
2309
|
+
this.s1h_1 = qualifier;
|
|
2310
|
+
this.t1h_1 = text;
|
|
2240
2311
|
}
|
|
2241
2312
|
protoOf(Timing).toString = function () {
|
|
2242
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2313
|
+
return 'Timing(durationInMins=' + toString(this.r1h_1) + ', qualifier=' + this.s1h_1 + ', text=' + this.t1h_1 + ')';
|
|
2243
2314
|
};
|
|
2244
2315
|
protoOf(Timing).hashCode = function () {
|
|
2245
|
-
var result = this.
|
|
2246
|
-
result = imul(result, 31) + (this.
|
|
2247
|
-
result = imul(result, 31) + (this.
|
|
2316
|
+
var result = this.r1h_1 == null ? 0 : this.r1h_1.hashCode();
|
|
2317
|
+
result = imul(result, 31) + (this.s1h_1 == null ? 0 : getStringHashCode(this.s1h_1)) | 0;
|
|
2318
|
+
result = imul(result, 31) + (this.t1h_1 == null ? 0 : getStringHashCode(this.t1h_1)) | 0;
|
|
2248
2319
|
return result;
|
|
2249
2320
|
};
|
|
2250
2321
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2252,11 +2323,29 @@
|
|
|
2252
2323
|
return true;
|
|
2253
2324
|
if (!(other instanceof Timing))
|
|
2254
2325
|
return false;
|
|
2255
|
-
if (!equals(this.
|
|
2326
|
+
if (!equals(this.r1h_1, other.r1h_1))
|
|
2327
|
+
return false;
|
|
2328
|
+
if (!(this.s1h_1 == other.s1h_1))
|
|
2256
2329
|
return false;
|
|
2257
|
-
if (!(this.
|
|
2330
|
+
if (!(this.t1h_1 == other.t1h_1))
|
|
2331
|
+
return false;
|
|
2332
|
+
return true;
|
|
2333
|
+
};
|
|
2334
|
+
function ParsedTemplate(elements) {
|
|
2335
|
+
this.n1e_1 = elements;
|
|
2336
|
+
}
|
|
2337
|
+
protoOf(ParsedTemplate).toString = function () {
|
|
2338
|
+
return 'ParsedTemplate(elements=' + toString_0(this.n1e_1) + ')';
|
|
2339
|
+
};
|
|
2340
|
+
protoOf(ParsedTemplate).hashCode = function () {
|
|
2341
|
+
return hashCode(this.n1e_1);
|
|
2342
|
+
};
|
|
2343
|
+
protoOf(ParsedTemplate).equals = function (other) {
|
|
2344
|
+
if (this === other)
|
|
2345
|
+
return true;
|
|
2346
|
+
if (!(other instanceof ParsedTemplate))
|
|
2258
2347
|
return false;
|
|
2259
|
-
if (!(this.
|
|
2348
|
+
if (!equals(this.n1e_1, other.n1e_1))
|
|
2260
2349
|
return false;
|
|
2261
2350
|
return true;
|
|
2262
2351
|
};
|
|
@@ -2350,12 +2439,12 @@
|
|
|
2350
2439
|
protoOf(TemplateConst).cd = function () {
|
|
2351
2440
|
return this.value;
|
|
2352
2441
|
};
|
|
2353
|
-
protoOf(TemplateConst).
|
|
2442
|
+
protoOf(TemplateConst).u1h = function (value) {
|
|
2354
2443
|
return new TemplateConst(value);
|
|
2355
2444
|
};
|
|
2356
2445
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2357
2446
|
value = value === VOID ? this.value : value;
|
|
2358
|
-
return $super === VOID ? this.
|
|
2447
|
+
return $super === VOID ? this.u1h(value) : $super.u1h.call(this, value);
|
|
2359
2448
|
};
|
|
2360
2449
|
protoOf(TemplateConst).toString = function () {
|
|
2361
2450
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -2388,10 +2477,10 @@
|
|
|
2388
2477
|
tmp0_serialDesc.ws('max', true);
|
|
2389
2478
|
tmp0_serialDesc.ws('unit', true);
|
|
2390
2479
|
tmp0_serialDesc.ws('scale', true);
|
|
2391
|
-
this.
|
|
2480
|
+
this.v1h_1 = tmp0_serialDesc;
|
|
2392
2481
|
}
|
|
2393
|
-
protoOf($serializer_8).
|
|
2394
|
-
var tmp0_desc = this.
|
|
2482
|
+
protoOf($serializer_8).w1h = function (encoder, value) {
|
|
2483
|
+
var tmp0_desc = this.v1h_1;
|
|
2395
2484
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2396
2485
|
tmp1_output.ym(tmp0_desc, 0, value.min);
|
|
2397
2486
|
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
@@ -2406,10 +2495,10 @@
|
|
|
2406
2495
|
tmp1_output.ol(tmp0_desc);
|
|
2407
2496
|
};
|
|
2408
2497
|
protoOf($serializer_8).ri = function (encoder, value) {
|
|
2409
|
-
return this.
|
|
2498
|
+
return this.w1h(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
2410
2499
|
};
|
|
2411
2500
|
protoOf($serializer_8).si = function (decoder) {
|
|
2412
|
-
var tmp0_desc = this.
|
|
2501
|
+
var tmp0_desc = this.v1h_1;
|
|
2413
2502
|
var tmp1_flag = true;
|
|
2414
2503
|
var tmp2_index = 0;
|
|
2415
2504
|
var tmp3_bitMask0 = 0;
|
|
@@ -2458,7 +2547,7 @@
|
|
|
2458
2547
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2459
2548
|
};
|
|
2460
2549
|
protoOf($serializer_8).qi = function () {
|
|
2461
|
-
return this.
|
|
2550
|
+
return this.v1h_1;
|
|
2462
2551
|
};
|
|
2463
2552
|
protoOf($serializer_8).ys = function () {
|
|
2464
2553
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2474,7 +2563,7 @@
|
|
|
2474
2563
|
}
|
|
2475
2564
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, $this) {
|
|
2476
2565
|
if (!(1 === (1 & seen0))) {
|
|
2477
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().
|
|
2566
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().v1h_1);
|
|
2478
2567
|
}
|
|
2479
2568
|
$this.min = min;
|
|
2480
2569
|
if (0 === (seen0 & 2))
|
|
@@ -2503,16 +2592,16 @@
|
|
|
2503
2592
|
this.unit = unit;
|
|
2504
2593
|
this.scale = scale;
|
|
2505
2594
|
}
|
|
2506
|
-
protoOf(QuantityPlaceholder).
|
|
2595
|
+
protoOf(QuantityPlaceholder).x1h = function () {
|
|
2507
2596
|
return this.min;
|
|
2508
2597
|
};
|
|
2509
|
-
protoOf(QuantityPlaceholder).
|
|
2598
|
+
protoOf(QuantityPlaceholder).y1h = function () {
|
|
2510
2599
|
return this.max;
|
|
2511
2600
|
};
|
|
2512
|
-
protoOf(QuantityPlaceholder).
|
|
2601
|
+
protoOf(QuantityPlaceholder).z1h = function () {
|
|
2513
2602
|
return this.unit;
|
|
2514
2603
|
};
|
|
2515
|
-
protoOf(QuantityPlaceholder).
|
|
2604
|
+
protoOf(QuantityPlaceholder).a1i = function () {
|
|
2516
2605
|
return this.scale;
|
|
2517
2606
|
};
|
|
2518
2607
|
protoOf(QuantityPlaceholder).cd = function () {
|
|
@@ -2521,13 +2610,13 @@
|
|
|
2521
2610
|
protoOf(QuantityPlaceholder).dd = function () {
|
|
2522
2611
|
return this.max;
|
|
2523
2612
|
};
|
|
2524
|
-
protoOf(QuantityPlaceholder).
|
|
2613
|
+
protoOf(QuantityPlaceholder).b1i = function () {
|
|
2525
2614
|
return this.unit;
|
|
2526
2615
|
};
|
|
2527
|
-
protoOf(QuantityPlaceholder).
|
|
2616
|
+
protoOf(QuantityPlaceholder).c1i = function () {
|
|
2528
2617
|
return this.scale;
|
|
2529
2618
|
};
|
|
2530
|
-
protoOf(QuantityPlaceholder).
|
|
2619
|
+
protoOf(QuantityPlaceholder).d1i = function (min, max, unit, scale) {
|
|
2531
2620
|
return new QuantityPlaceholder(min, max, unit, scale);
|
|
2532
2621
|
};
|
|
2533
2622
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, $super) {
|
|
@@ -2535,7 +2624,7 @@
|
|
|
2535
2624
|
max = max === VOID ? this.max : max;
|
|
2536
2625
|
unit = unit === VOID ? this.unit : unit;
|
|
2537
2626
|
scale = scale === VOID ? this.scale : scale;
|
|
2538
|
-
return $super === VOID ? this.
|
|
2627
|
+
return $super === VOID ? this.d1i(min, max, unit, scale) : $super.d1i.call(this, min, max, unit, scale);
|
|
2539
2628
|
};
|
|
2540
2629
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
2541
2630
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ')';
|
|
@@ -2578,10 +2667,10 @@
|
|
|
2578
2667
|
tmp0_serialDesc.ws('temperatureFanC', true);
|
|
2579
2668
|
tmp0_serialDesc.ws('temperatureF', true);
|
|
2580
2669
|
tmp0_serialDesc.ws('gasMark', true);
|
|
2581
|
-
this.
|
|
2670
|
+
this.e1i_1 = tmp0_serialDesc;
|
|
2582
2671
|
}
|
|
2583
|
-
protoOf($serializer_9).
|
|
2584
|
-
var tmp0_desc = this.
|
|
2672
|
+
protoOf($serializer_9).f1i = function (encoder, value) {
|
|
2673
|
+
var tmp0_desc = this.e1i_1;
|
|
2585
2674
|
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2586
2675
|
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
2587
2676
|
tmp1_output.fn(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
@@ -2598,10 +2687,10 @@
|
|
|
2598
2687
|
tmp1_output.ol(tmp0_desc);
|
|
2599
2688
|
};
|
|
2600
2689
|
protoOf($serializer_9).ri = function (encoder, value) {
|
|
2601
|
-
return this.
|
|
2690
|
+
return this.f1i(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
2602
2691
|
};
|
|
2603
2692
|
protoOf($serializer_9).si = function (decoder) {
|
|
2604
|
-
var tmp0_desc = this.
|
|
2693
|
+
var tmp0_desc = this.e1i_1;
|
|
2605
2694
|
var tmp1_flag = true;
|
|
2606
2695
|
var tmp2_index = 0;
|
|
2607
2696
|
var tmp3_bitMask0 = 0;
|
|
@@ -2650,7 +2739,7 @@
|
|
|
2650
2739
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2651
2740
|
};
|
|
2652
2741
|
protoOf($serializer_9).qi = function () {
|
|
2653
|
-
return this.
|
|
2742
|
+
return this.e1i_1;
|
|
2654
2743
|
};
|
|
2655
2744
|
protoOf($serializer_9).ys = function () {
|
|
2656
2745
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2666,7 +2755,7 @@
|
|
|
2666
2755
|
}
|
|
2667
2756
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
2668
2757
|
if (!(0 === (0 & seen0))) {
|
|
2669
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2758
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().e1i_1);
|
|
2670
2759
|
}
|
|
2671
2760
|
if (0 === (seen0 & 1))
|
|
2672
2761
|
$this.temperatureC = null;
|
|
@@ -2699,16 +2788,16 @@
|
|
|
2699
2788
|
this.temperatureF = temperatureF;
|
|
2700
2789
|
this.gasMark = gasMark;
|
|
2701
2790
|
}
|
|
2702
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2791
|
+
protoOf(OvenTemperaturePlaceholder).g1i = function () {
|
|
2703
2792
|
return this.temperatureC;
|
|
2704
2793
|
};
|
|
2705
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2794
|
+
protoOf(OvenTemperaturePlaceholder).h1i = function () {
|
|
2706
2795
|
return this.temperatureFanC;
|
|
2707
2796
|
};
|
|
2708
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2797
|
+
protoOf(OvenTemperaturePlaceholder).i1i = function () {
|
|
2709
2798
|
return this.temperatureF;
|
|
2710
2799
|
};
|
|
2711
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2800
|
+
protoOf(OvenTemperaturePlaceholder).j1i = function () {
|
|
2712
2801
|
return this.gasMark;
|
|
2713
2802
|
};
|
|
2714
2803
|
protoOf(OvenTemperaturePlaceholder).cd = function () {
|
|
@@ -2717,13 +2806,13 @@
|
|
|
2717
2806
|
protoOf(OvenTemperaturePlaceholder).dd = function () {
|
|
2718
2807
|
return this.temperatureFanC;
|
|
2719
2808
|
};
|
|
2720
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2809
|
+
protoOf(OvenTemperaturePlaceholder).b1i = function () {
|
|
2721
2810
|
return this.temperatureF;
|
|
2722
2811
|
};
|
|
2723
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2812
|
+
protoOf(OvenTemperaturePlaceholder).c1i = function () {
|
|
2724
2813
|
return this.gasMark;
|
|
2725
2814
|
};
|
|
2726
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2815
|
+
protoOf(OvenTemperaturePlaceholder).k1i = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
2727
2816
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
2728
2817
|
};
|
|
2729
2818
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -2731,7 +2820,7 @@
|
|
|
2731
2820
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
2732
2821
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
2733
2822
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
2734
|
-
return $super === VOID ? this.
|
|
2823
|
+
return $super === VOID ? this.k1i(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.k1i.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
2735
2824
|
};
|
|
2736
2825
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
2737
2826
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -2758,24 +2847,211 @@
|
|
|
2758
2847
|
return false;
|
|
2759
2848
|
return true;
|
|
2760
2849
|
};
|
|
2761
|
-
function
|
|
2762
|
-
this.g1d_1 = elements;
|
|
2850
|
+
function Imperial() {
|
|
2763
2851
|
}
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2852
|
+
var Imperial_instance;
|
|
2853
|
+
function Imperial_getInstance() {
|
|
2854
|
+
return Imperial_instance;
|
|
2855
|
+
}
|
|
2856
|
+
function Metric() {
|
|
2857
|
+
}
|
|
2858
|
+
var Metric_instance;
|
|
2859
|
+
function Metric_getInstance() {
|
|
2860
|
+
return Metric_instance;
|
|
2861
|
+
}
|
|
2862
|
+
var UnitType_WEIGHT_instance;
|
|
2863
|
+
var UnitType_VOLUME_instance;
|
|
2864
|
+
var UnitType_LENGTH_instance;
|
|
2865
|
+
var UnitType_entriesInitialized;
|
|
2866
|
+
function UnitType_initEntries() {
|
|
2867
|
+
if (UnitType_entriesInitialized)
|
|
2868
|
+
return Unit_instance;
|
|
2869
|
+
UnitType_entriesInitialized = true;
|
|
2870
|
+
UnitType_WEIGHT_instance = new UnitType('WEIGHT', 0);
|
|
2871
|
+
UnitType_VOLUME_instance = new UnitType('VOLUME', 1);
|
|
2872
|
+
UnitType_LENGTH_instance = new UnitType('LENGTH', 2);
|
|
2873
|
+
}
|
|
2874
|
+
function UnitType(name, ordinal) {
|
|
2875
|
+
Enum.call(this, name, ordinal);
|
|
2876
|
+
}
|
|
2877
|
+
function Unit(singular, plural, symbol, symbolPlural, unitType, measuringSystem) {
|
|
2878
|
+
this.h1e_1 = singular;
|
|
2879
|
+
this.i1e_1 = plural;
|
|
2880
|
+
this.j1e_1 = symbol;
|
|
2881
|
+
this.k1e_1 = symbolPlural;
|
|
2882
|
+
this.l1e_1 = unitType;
|
|
2883
|
+
this.m1e_1 = measuringSystem;
|
|
2884
|
+
}
|
|
2885
|
+
protoOf(Unit).toString = function () {
|
|
2886
|
+
return 'Unit(singular=' + this.h1e_1 + ', plural=' + this.i1e_1 + ', symbol=' + this.j1e_1 + ', symbolPlural=' + this.k1e_1 + ', unitType=' + toString(this.l1e_1) + ', measuringSystem=' + toString(this.m1e_1) + ')';
|
|
2887
|
+
};
|
|
2888
|
+
protoOf(Unit).hashCode = function () {
|
|
2889
|
+
var result = getStringHashCode(this.h1e_1);
|
|
2890
|
+
result = imul(result, 31) + getStringHashCode(this.i1e_1) | 0;
|
|
2891
|
+
result = imul(result, 31) + getStringHashCode(this.j1e_1) | 0;
|
|
2892
|
+
result = imul(result, 31) + getStringHashCode(this.k1e_1) | 0;
|
|
2893
|
+
result = imul(result, 31) + (this.l1e_1 == null ? 0 : this.l1e_1.hashCode()) | 0;
|
|
2894
|
+
result = imul(result, 31) + (this.m1e_1 == null ? 0 : hashCode(this.m1e_1)) | 0;
|
|
2895
|
+
return result;
|
|
2769
2896
|
};
|
|
2770
|
-
protoOf(
|
|
2897
|
+
protoOf(Unit).equals = function (other) {
|
|
2771
2898
|
if (this === other)
|
|
2772
2899
|
return true;
|
|
2773
|
-
if (!(other instanceof
|
|
2900
|
+
if (!(other instanceof Unit))
|
|
2774
2901
|
return false;
|
|
2775
|
-
if (!
|
|
2902
|
+
if (!(this.h1e_1 === other.h1e_1))
|
|
2903
|
+
return false;
|
|
2904
|
+
if (!(this.i1e_1 === other.i1e_1))
|
|
2905
|
+
return false;
|
|
2906
|
+
if (!(this.j1e_1 === other.j1e_1))
|
|
2907
|
+
return false;
|
|
2908
|
+
if (!(this.k1e_1 === other.k1e_1))
|
|
2909
|
+
return false;
|
|
2910
|
+
if (!equals(this.l1e_1, other.l1e_1))
|
|
2911
|
+
return false;
|
|
2912
|
+
if (!equals(this.m1e_1, other.m1e_1))
|
|
2776
2913
|
return false;
|
|
2777
2914
|
return true;
|
|
2778
2915
|
};
|
|
2916
|
+
function Units() {
|
|
2917
|
+
Units_instance = this;
|
|
2918
|
+
this.n1d_1 = new Unit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), Metric_instance);
|
|
2919
|
+
this.o1d_1 = new Unit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), Metric_instance);
|
|
2920
|
+
this.p1d_1 = new Unit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), Imperial_instance);
|
|
2921
|
+
this.q1d_1 = new Unit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), Imperial_instance);
|
|
2922
|
+
this.r1d_1 = new Unit('milliliter', 'milliliters', 'ml', 'ml', UnitType_VOLUME_getInstance(), Metric_instance);
|
|
2923
|
+
this.s1d_1 = new Unit('liter', 'liters', 'l', 'l', UnitType_VOLUME_getInstance(), Metric_instance);
|
|
2924
|
+
this.t1d_1 = new Unit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2925
|
+
this.u1d_1 = new Unit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2926
|
+
this.v1d_1 = new Unit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2927
|
+
this.w1d_1 = new Unit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2928
|
+
this.x1d_1 = new Unit('millimeter', 'millimeters', 'mm', 'mm', UnitType_LENGTH_getInstance(), Metric_instance);
|
|
2929
|
+
this.y1d_1 = new Unit('centimeter', 'centimeters', 'cm', 'cm', UnitType_LENGTH_getInstance(), Metric_instance);
|
|
2930
|
+
this.z1d_1 = new Unit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), Imperial_instance);
|
|
2931
|
+
this.a1e_1 = new Unit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2932
|
+
this.b1e_1 = listOf([this.n1d_1, this.o1d_1, this.p1d_1, this.q1d_1, this.r1d_1, this.s1d_1, this.t1d_1, this.u1d_1, this.v1d_1, this.w1d_1, this.x1d_1, this.y1d_1, this.z1d_1, this.a1e_1]);
|
|
2933
|
+
var tmp = this;
|
|
2934
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
2935
|
+
var this_0 = this.b1e_1;
|
|
2936
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2937
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
2938
|
+
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2939
|
+
var _iterator__ex2g4s = this_0.h();
|
|
2940
|
+
while (_iterator__ex2g4s.i()) {
|
|
2941
|
+
var element = _iterator__ex2g4s.j();
|
|
2942
|
+
var tmp$ret$0 = element.j1e_1;
|
|
2943
|
+
destination.a2(tmp$ret$0, element);
|
|
2944
|
+
}
|
|
2945
|
+
var tmp_0 = destination;
|
|
2946
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
2947
|
+
var this_1 = this.b1e_1;
|
|
2948
|
+
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
2949
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
2950
|
+
var destination_0 = LinkedHashMap_init_$Create$(capacity_0);
|
|
2951
|
+
var _iterator__ex2g4s_0 = this_1.h();
|
|
2952
|
+
while (_iterator__ex2g4s_0.i()) {
|
|
2953
|
+
var element_0 = _iterator__ex2g4s_0.j();
|
|
2954
|
+
var tmp$ret$3 = element_0.k1e_1;
|
|
2955
|
+
destination_0.a2(tmp$ret$3, element_0);
|
|
2956
|
+
}
|
|
2957
|
+
var tmp_1 = plus(tmp_0, destination_0);
|
|
2958
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
2959
|
+
var this_2 = this.b1e_1;
|
|
2960
|
+
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
2961
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
2962
|
+
var destination_1 = LinkedHashMap_init_$Create$(capacity_1);
|
|
2963
|
+
var _iterator__ex2g4s_1 = this_2.h();
|
|
2964
|
+
while (_iterator__ex2g4s_1.i()) {
|
|
2965
|
+
var element_1 = _iterator__ex2g4s_1.j();
|
|
2966
|
+
var tmp$ret$6 = element_1.h1e_1;
|
|
2967
|
+
destination_1.a2(tmp$ret$6, element_1);
|
|
2968
|
+
}
|
|
2969
|
+
var tmp_2 = plus(tmp_1, destination_1);
|
|
2970
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
2971
|
+
var this_3 = this.b1e_1;
|
|
2972
|
+
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_3, 10)), 16);
|
|
2973
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
2974
|
+
var destination_2 = LinkedHashMap_init_$Create$(capacity_2);
|
|
2975
|
+
var _iterator__ex2g4s_2 = this_3.h();
|
|
2976
|
+
while (_iterator__ex2g4s_2.i()) {
|
|
2977
|
+
var element_2 = _iterator__ex2g4s_2.j();
|
|
2978
|
+
var tmp$ret$9 = element_2.i1e_1;
|
|
2979
|
+
destination_2.a2(tmp$ret$9, element_2);
|
|
2980
|
+
}
|
|
2981
|
+
tmp.c1e_1 = plus(tmp_2, destination_2);
|
|
2982
|
+
}
|
|
2983
|
+
protoOf(Units).d1e = function (name) {
|
|
2984
|
+
var unit = this.c1e_1.w1(name);
|
|
2985
|
+
if (!(unit == null)) {
|
|
2986
|
+
return unit;
|
|
2987
|
+
} else {
|
|
2988
|
+
return new Unit(name, name, name, name, null, null);
|
|
2989
|
+
}
|
|
2990
|
+
};
|
|
2991
|
+
var Units_instance;
|
|
2992
|
+
function Units_getInstance() {
|
|
2993
|
+
if (Units_instance == null)
|
|
2994
|
+
new Units();
|
|
2995
|
+
return Units_instance;
|
|
2996
|
+
}
|
|
2997
|
+
function UnitType_WEIGHT_getInstance() {
|
|
2998
|
+
UnitType_initEntries();
|
|
2999
|
+
return UnitType_WEIGHT_instance;
|
|
3000
|
+
}
|
|
3001
|
+
function UnitType_VOLUME_getInstance() {
|
|
3002
|
+
UnitType_initEntries();
|
|
3003
|
+
return UnitType_VOLUME_instance;
|
|
3004
|
+
}
|
|
3005
|
+
function UnitType_LENGTH_getInstance() {
|
|
3006
|
+
UnitType_initEntries();
|
|
3007
|
+
return UnitType_LENGTH_instance;
|
|
3008
|
+
}
|
|
3009
|
+
function UnitConversion() {
|
|
3010
|
+
this.e1e_1 = 28.3495;
|
|
3011
|
+
this.f1e_1 = 2.20462;
|
|
3012
|
+
}
|
|
3013
|
+
protoOf(UnitConversion).g1e = function (amount, target) {
|
|
3014
|
+
if (amount.i1d_1 == null) {
|
|
3015
|
+
return amount;
|
|
3016
|
+
}
|
|
3017
|
+
if (equals(amount.i1d_1.m1e_1, target)) {
|
|
3018
|
+
return amount;
|
|
3019
|
+
}
|
|
3020
|
+
var tmp0_subject = new Pair(amount.i1d_1, target);
|
|
3021
|
+
var tmp;
|
|
3022
|
+
if (tmp0_subject.equals(new Pair(Units_getInstance().n1d_1, Imperial_instance))) {
|
|
3023
|
+
var minOunces = amount.g1d_1 / this.e1e_1;
|
|
3024
|
+
var tmp1_safe_receiver = amount.h1d_1;
|
|
3025
|
+
var tmp_0;
|
|
3026
|
+
if (tmp1_safe_receiver == null) {
|
|
3027
|
+
tmp_0 = null;
|
|
3028
|
+
} else {
|
|
3029
|
+
// Inline function 'kotlin.let' call
|
|
3030
|
+
tmp_0 = tmp1_safe_receiver / UnitConversion_instance.e1e_1;
|
|
3031
|
+
}
|
|
3032
|
+
var maxOunces = tmp_0;
|
|
3033
|
+
tmp = new Amount(minOunces, maxOunces, Units_getInstance().p1d_1);
|
|
3034
|
+
} else if (tmp0_subject.equals(new Pair(Units_getInstance().o1d_1, Imperial_instance))) {
|
|
3035
|
+
var minPounds = amount.g1d_1 * this.f1e_1;
|
|
3036
|
+
var tmp2_safe_receiver = amount.h1d_1;
|
|
3037
|
+
var tmp_1;
|
|
3038
|
+
if (tmp2_safe_receiver == null) {
|
|
3039
|
+
tmp_1 = null;
|
|
3040
|
+
} else {
|
|
3041
|
+
// Inline function 'kotlin.let' call
|
|
3042
|
+
tmp_1 = tmp2_safe_receiver * UnitConversion_instance.f1e_1;
|
|
3043
|
+
}
|
|
3044
|
+
var maxPounds = tmp_1;
|
|
3045
|
+
tmp = new Amount(minPounds, maxPounds, Units_getInstance().q1d_1);
|
|
3046
|
+
} else {
|
|
3047
|
+
tmp = amount;
|
|
3048
|
+
}
|
|
3049
|
+
return tmp;
|
|
3050
|
+
};
|
|
3051
|
+
var UnitConversion_instance;
|
|
3052
|
+
function UnitConversion_getInstance() {
|
|
3053
|
+
return UnitConversion_instance;
|
|
3054
|
+
}
|
|
2779
3055
|
function get_tolerantJson_0() {
|
|
2780
3056
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
2781
3057
|
return tolerantJson_0;
|
|
@@ -2802,8 +3078,8 @@
|
|
|
2802
3078
|
default:
|
|
2803
3079
|
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
2804
3080
|
}
|
|
2805
|
-
var
|
|
2806
|
-
var scaledRecipe = scaleAndConvertUnitRecipe(parsedRecipe, factor,
|
|
3081
|
+
var measuringSystem = tmp;
|
|
3082
|
+
var scaledRecipe = scaleAndConvertUnitRecipe(parsedRecipe, factor, measuringSystem);
|
|
2807
3083
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
2808
3084
|
var this_3 = Default_getInstance();
|
|
2809
3085
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -2816,12 +3092,12 @@
|
|
|
2816
3092
|
function parseTemplate_0(templateString) {
|
|
2817
3093
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
2818
3094
|
var parsedTemplate = parseTemplate(templateString);
|
|
2819
|
-
return parsedTemplate.
|
|
3095
|
+
return parsedTemplate.n1e_1;
|
|
2820
3096
|
}
|
|
2821
3097
|
function renderTemplate_0(templateElements) {
|
|
2822
3098
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
2823
3099
|
var template = new ParsedTemplate(templateElements);
|
|
2824
|
-
return renderTemplate(template, 1.0);
|
|
3100
|
+
return renderTemplate(template, 1.0, Metric_instance);
|
|
2825
3101
|
}
|
|
2826
3102
|
function tolerantJson$lambda_0($this$Json) {
|
|
2827
3103
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -2849,13 +3125,15 @@
|
|
|
2849
3125
|
protoOf($serializer_9).zs = typeParametersSerializers;
|
|
2850
3126
|
//endregion
|
|
2851
3127
|
//region block: init
|
|
2852
|
-
|
|
2853
|
-
Metric_instance = new Metric();
|
|
3128
|
+
FormatUtils_instance = new FormatUtils();
|
|
2854
3129
|
Companion_instance_1 = new Companion_1();
|
|
2855
3130
|
Companion_instance_2 = new Companion_2();
|
|
2856
3131
|
Companion_instance_4 = new Companion_4();
|
|
2857
3132
|
Companion_instance_5 = new Companion_5();
|
|
2858
3133
|
Companion_instance_6 = new Companion_6();
|
|
3134
|
+
Imperial_instance = new Imperial();
|
|
3135
|
+
Metric_instance = new Metric();
|
|
3136
|
+
UnitConversion_instance = new UnitConversion();
|
|
2859
3137
|
//endregion
|
|
2860
3138
|
//region block: exports
|
|
2861
3139
|
function $jsExportAll$(_) {
|