dl-common-util 0.1.2 → 0.1.3
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-DateTime-library-kotlinx-datetime.js +1 -1
- package/dl-common-util.d.ts +20 -20
- package/dl-common-util.js +419 -415
- package/dl-common-util.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4486 -3871
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
- package/kotlinx-atomicfu.js +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1 -1
- package/package.json +1 -1
package/dl-common-util.js
CHANGED
|
@@ -12,105 +12,104 @@
|
|
|
12
12
|
}
|
|
13
13
|
root['com.github.D10NGYANG:DLCommonUtil'] = factory(typeof this['com.github.D10NGYANG:DLCommonUtil'] === 'undefined' ? {} : this['com.github.D10NGYANG:DLCommonUtil'], PinyinPro, this['kotlin-kotlin-stdlib']);
|
|
14
14
|
}
|
|
15
|
-
}(
|
|
15
|
+
}(globalThis, function (_, PinyinPro, kotlin_kotlin) {
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
20
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
21
21
|
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
22
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
23
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
24
|
-
var trim = kotlin_kotlin.$_$.
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.b3;
|
|
23
|
+
var isCharSequence = kotlin_kotlin.$_$.m1;
|
|
24
|
+
var trim = kotlin_kotlin.$_$.y2;
|
|
25
25
|
var toString = kotlin_kotlin.$_$.u1;
|
|
26
|
-
var Long = kotlin_kotlin.$_$.
|
|
26
|
+
var Long = kotlin_kotlin.$_$.a3;
|
|
27
27
|
var toLong = kotlin_kotlin.$_$.s1;
|
|
28
28
|
var indexOf = kotlin_kotlin.$_$.x;
|
|
29
29
|
var copyOfRange = kotlin_kotlin.$_$.v;
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var
|
|
32
|
-
var setMetadataFor = kotlin_kotlin.$_$.q1;
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.q1;
|
|
31
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.k1;
|
|
33
32
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
34
33
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
35
34
|
var arrayCopy = kotlin_kotlin.$_$.s;
|
|
36
|
-
var
|
|
37
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
38
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForClass = kotlin_kotlin.$_$.j1;
|
|
36
|
+
var defineProp = kotlin_kotlin.$_$.g1;
|
|
37
|
+
var numberToInt = kotlin_kotlin.$_$.o1;
|
|
39
38
|
var toByte = kotlin_kotlin.$_$.r1;
|
|
40
39
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.n;
|
|
41
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
40
|
+
var toString_0 = kotlin_kotlin.$_$.w2;
|
|
42
41
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k;
|
|
43
|
-
var padStart = kotlin_kotlin.$_$.
|
|
42
|
+
var padStart = kotlin_kotlin.$_$.j2;
|
|
44
43
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.o;
|
|
45
|
-
var indexOf_0 = kotlin_kotlin.$_$.
|
|
46
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_2 = kotlin_kotlin.$_$.
|
|
48
|
-
var toInt = kotlin_kotlin.$_$.
|
|
44
|
+
var indexOf_0 = kotlin_kotlin.$_$.g2;
|
|
45
|
+
var toString_1 = kotlin_kotlin.$_$.u2;
|
|
46
|
+
var toString_2 = kotlin_kotlin.$_$.v2;
|
|
47
|
+
var toInt = kotlin_kotlin.$_$.t2;
|
|
49
48
|
var charSequenceLength = kotlin_kotlin.$_$.e1;
|
|
50
|
-
var hexToByte = kotlin_kotlin.$_$.
|
|
51
|
-
var hexToByteArray = kotlin_kotlin.$_$.
|
|
52
|
-
var iterator = kotlin_kotlin.$_$.
|
|
49
|
+
var hexToByte = kotlin_kotlin.$_$.f2;
|
|
50
|
+
var hexToByteArray = kotlin_kotlin.$_$.e2;
|
|
51
|
+
var iterator = kotlin_kotlin.$_$.h2;
|
|
53
52
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l;
|
|
54
53
|
var charSequenceGet = kotlin_kotlin.$_$.d1;
|
|
55
54
|
var toString_3 = kotlin_kotlin.$_$.m;
|
|
56
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
57
|
-
var THROW_IAE = kotlin_kotlin.$_$.
|
|
58
|
-
var Enum = kotlin_kotlin.$_$.
|
|
59
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
55
|
+
var numberToChar = kotlin_kotlin.$_$.n1;
|
|
56
|
+
var THROW_IAE = kotlin_kotlin.$_$.c3;
|
|
57
|
+
var Enum = kotlin_kotlin.$_$.z2;
|
|
58
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.d3;
|
|
60
59
|
var primitiveArrayConcat = kotlin_kotlin.$_$.a;
|
|
61
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
60
|
+
var roundToInt = kotlin_kotlin.$_$.v1;
|
|
62
61
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
63
|
-
var until = kotlin_kotlin.$_$.
|
|
64
|
-
var step = kotlin_kotlin.$_$.
|
|
65
|
-
var slice = kotlin_kotlin.$_$.
|
|
66
|
-
var toUInt = kotlin_kotlin.$_$.
|
|
62
|
+
var until = kotlin_kotlin.$_$.x1;
|
|
63
|
+
var step = kotlin_kotlin.$_$.w1;
|
|
64
|
+
var slice = kotlin_kotlin.$_$.n2;
|
|
65
|
+
var toUInt = kotlin_kotlin.$_$.x2;
|
|
67
66
|
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.p;
|
|
68
67
|
var copyToArray = kotlin_kotlin.$_$.w;
|
|
69
68
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
70
|
-
var map = kotlin_kotlin.$_$.
|
|
71
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
72
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
73
|
-
var equals = kotlin_kotlin.$_$.
|
|
74
|
-
var
|
|
75
|
-
var toList = kotlin_kotlin.$_$.
|
|
76
|
-
var replaceRange = kotlin_kotlin.$_$.
|
|
77
|
-
var contains = kotlin_kotlin.$_$.
|
|
69
|
+
var map = kotlin_kotlin.$_$.z1;
|
|
70
|
+
var joinToString = kotlin_kotlin.$_$.y1;
|
|
71
|
+
var getNumberHashCode = kotlin_kotlin.$_$.i1;
|
|
72
|
+
var equals = kotlin_kotlin.$_$.h1;
|
|
73
|
+
var initMetadataForObject = kotlin_kotlin.$_$.l1;
|
|
74
|
+
var toList = kotlin_kotlin.$_$.a2;
|
|
75
|
+
var replaceRange = kotlin_kotlin.$_$.k2;
|
|
76
|
+
var contains = kotlin_kotlin.$_$.b2;
|
|
78
77
|
var println = kotlin_kotlin.$_$.c1;
|
|
79
|
-
var toCharArray = kotlin_kotlin.$_$.
|
|
80
|
-
var replaceRange_0 = kotlin_kotlin.$_$.
|
|
81
|
-
var substring = kotlin_kotlin.$_$.
|
|
82
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
83
|
-
var toInt_0 = kotlin_kotlin.$_$.
|
|
78
|
+
var toCharArray = kotlin_kotlin.$_$.p2;
|
|
79
|
+
var replaceRange_0 = kotlin_kotlin.$_$.l2;
|
|
80
|
+
var substring = kotlin_kotlin.$_$.o2;
|
|
81
|
+
var toDouble = kotlin_kotlin.$_$.q2;
|
|
82
|
+
var toInt_0 = kotlin_kotlin.$_$.s2;
|
|
84
83
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
85
84
|
var removeLast = kotlin_kotlin.$_$.z;
|
|
86
85
|
var Default_getInstance = kotlin_kotlin.$_$.q;
|
|
87
|
-
var to = kotlin_kotlin.$_$.
|
|
86
|
+
var to = kotlin_kotlin.$_$.e3;
|
|
88
87
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t;
|
|
89
88
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
|
|
90
89
|
var copyOfRange_0 = kotlin_kotlin.$_$.u;
|
|
91
90
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
92
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
93
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
94
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
95
|
-
var replace = kotlin_kotlin.$_$.
|
|
96
|
-
var padEnd = kotlin_kotlin.$_$.
|
|
91
|
+
var compareTo = kotlin_kotlin.$_$.f1;
|
|
92
|
+
var encodeToByteArray = kotlin_kotlin.$_$.d2;
|
|
93
|
+
var decodeToString = kotlin_kotlin.$_$.c2;
|
|
94
|
+
var replace = kotlin_kotlin.$_$.m2;
|
|
95
|
+
var padEnd = kotlin_kotlin.$_$.i2;
|
|
97
96
|
var getProgressionLastElement = kotlin_kotlin.$_$.b1;
|
|
98
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
99
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
97
|
+
var toIntOrNull = kotlin_kotlin.$_$.r2;
|
|
98
|
+
var numberToLong = kotlin_kotlin.$_$.p1;
|
|
100
99
|
var toShort = kotlin_kotlin.$_$.t1;
|
|
101
100
|
var toTypedArray = kotlin_kotlin.$_$.a1;
|
|
102
101
|
var joinToString_0 = kotlin_kotlin.$_$.y;
|
|
103
102
|
//endregion
|
|
104
103
|
//region block: pre-declaration
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
initMetadataForCompanion(Companion);
|
|
105
|
+
initMetadataForClass(ByteBuffer, 'ByteBuffer');
|
|
106
|
+
initMetadataForClass(ChecksumType, 'ChecksumType', VOID, Enum);
|
|
107
|
+
initMetadataForClass(Coordinate, 'Coordinate', Coordinate);
|
|
108
|
+
initMetadataForObject(CoordinateConvert, 'CoordinateConvert');
|
|
109
|
+
initMetadataForClass(CoordinateSystemType, 'CoordinateSystemType', VOID, Enum);
|
|
110
|
+
initMetadataForClass(DMS, 'DMS', DMS);
|
|
111
|
+
initMetadataForClass(DistanceAndBearing, 'DistanceAndBearing', DistanceAndBearing);
|
|
112
|
+
initMetadataForObject(GBKHelper, 'GBKHelper');
|
|
114
113
|
//endregion
|
|
115
114
|
function byteArrayToBinString(_this__u8e3s4, space) {
|
|
116
115
|
space = space === VOID ? false : space;
|
|
@@ -120,9 +119,9 @@
|
|
|
120
119
|
while (inductionVariable < last) {
|
|
121
120
|
var byte = _this__u8e3s4[inductionVariable];
|
|
122
121
|
inductionVariable = inductionVariable + 1 | 0;
|
|
123
|
-
builder.
|
|
122
|
+
builder.f5(byteToBinString(byte));
|
|
124
123
|
if (space) {
|
|
125
|
-
builder.
|
|
124
|
+
builder.f5(' ');
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
127
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -138,9 +137,9 @@
|
|
|
138
137
|
while (inductionVariable < last) {
|
|
139
138
|
var byte = _this__u8e3s4[inductionVariable];
|
|
140
139
|
inductionVariable = inductionVariable + 1 | 0;
|
|
141
|
-
builder.
|
|
140
|
+
builder.f5(byteToHexString(byte));
|
|
142
141
|
if (space) {
|
|
143
|
-
builder.
|
|
142
|
+
builder.f5(' ');
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
145
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -159,7 +158,7 @@
|
|
|
159
158
|
return tmp;
|
|
160
159
|
}
|
|
161
160
|
function byteArrayToUnsignedInt(_this__u8e3s4) {
|
|
162
|
-
return byteArrayToUnsignedLong(_this__u8e3s4).
|
|
161
|
+
return byteArrayToUnsignedLong(_this__u8e3s4).l2();
|
|
163
162
|
}
|
|
164
163
|
function byteArrayToUnsignedLong(_this__u8e3s4) {
|
|
165
164
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -173,7 +172,7 @@
|
|
|
173
172
|
do {
|
|
174
173
|
var i = inductionVariable;
|
|
175
174
|
inductionVariable = inductionVariable + 1 | 0;
|
|
176
|
-
temp = temp.
|
|
175
|
+
temp = temp.i2(8).k2(toLong(byteToUnsignedInt(buffer.get(i))));
|
|
177
176
|
}
|
|
178
177
|
while (inductionVariable < last);
|
|
179
178
|
return temp;
|
|
@@ -254,84 +253,84 @@
|
|
|
254
253
|
return Companion_instance;
|
|
255
254
|
}
|
|
256
255
|
function ByteBuffer(data) {
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
256
|
+
this.z9_1 = data;
|
|
257
|
+
this.aa_1 = 0;
|
|
258
|
+
this.ba_1 = this.z9_1.length;
|
|
259
|
+
this.ca_1 = this.z9_1.length;
|
|
261
260
|
}
|
|
262
261
|
protoOf(ByteBuffer).position = function () {
|
|
263
|
-
return this.
|
|
262
|
+
return this.aa_1;
|
|
264
263
|
};
|
|
265
264
|
protoOf(ByteBuffer).setPosition = function (newPosition) {
|
|
266
|
-
if (newPosition < 0
|
|
265
|
+
if (newPosition < 0 || newPosition > this.ba_1) {
|
|
267
266
|
throw IllegalArgumentException_init_$Create$('newPosition: ' + newPosition);
|
|
268
267
|
}
|
|
269
|
-
this.
|
|
268
|
+
this.aa_1 = newPosition;
|
|
270
269
|
};
|
|
271
270
|
protoOf(ByteBuffer).limit = function () {
|
|
272
|
-
return this.
|
|
271
|
+
return this.ba_1;
|
|
273
272
|
};
|
|
274
273
|
protoOf(ByteBuffer).setLimit = function (newLimit) {
|
|
275
|
-
if (newLimit < 0
|
|
274
|
+
if (newLimit < 0 || newLimit > this.ca_1) {
|
|
276
275
|
throw IllegalArgumentException_init_$Create$('newLimit: ' + newLimit);
|
|
277
276
|
}
|
|
278
|
-
this.
|
|
277
|
+
this.ba_1 = newLimit;
|
|
279
278
|
};
|
|
280
279
|
protoOf(ByteBuffer).capacity = function () {
|
|
281
|
-
return this.
|
|
280
|
+
return this.ca_1;
|
|
282
281
|
};
|
|
283
282
|
protoOf(ByteBuffer).remaining = function () {
|
|
284
|
-
return this.
|
|
283
|
+
return this.ba_1 - this.aa_1 | 0;
|
|
285
284
|
};
|
|
286
285
|
protoOf(ByteBuffer).hasRemaining = function () {
|
|
287
|
-
return this.
|
|
286
|
+
return this.aa_1 < this.ba_1;
|
|
288
287
|
};
|
|
289
288
|
protoOf(ByteBuffer).get = function (index) {
|
|
290
|
-
if (index < 0
|
|
291
|
-
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', limit: ' + this.
|
|
289
|
+
if (index < 0 || index >= this.ba_1) {
|
|
290
|
+
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', limit: ' + this.ba_1);
|
|
292
291
|
}
|
|
293
|
-
return this.
|
|
292
|
+
return this.z9_1[index];
|
|
294
293
|
};
|
|
295
294
|
protoOf(ByteBuffer).getByte = function () {
|
|
296
|
-
if (this.
|
|
297
|
-
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.
|
|
295
|
+
if (this.aa_1 >= this.ba_1) {
|
|
296
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.aa_1 + ', limit: ' + this.ba_1);
|
|
298
297
|
}
|
|
299
|
-
var
|
|
300
|
-
this.
|
|
301
|
-
return this.
|
|
298
|
+
var _unary__edvuaz = this.aa_1;
|
|
299
|
+
this.aa_1 = _unary__edvuaz + 1 | 0;
|
|
300
|
+
return this.z9_1[_unary__edvuaz];
|
|
302
301
|
};
|
|
303
302
|
protoOf(ByteBuffer).getBytes = function (size) {
|
|
304
|
-
if ((this.
|
|
305
|
-
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.
|
|
303
|
+
if ((this.aa_1 + size | 0) > this.ba_1) {
|
|
304
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.aa_1 + ', size: ' + size + ', limit: ' + this.ba_1);
|
|
306
305
|
}
|
|
307
|
-
var result = copyOfRange(this.
|
|
308
|
-
this.
|
|
306
|
+
var result = copyOfRange(this.z9_1, this.aa_1, this.aa_1 + size | 0);
|
|
307
|
+
this.aa_1 = this.aa_1 + size | 0;
|
|
309
308
|
return result;
|
|
310
309
|
};
|
|
311
310
|
protoOf(ByteBuffer).getRemainingBytes = function () {
|
|
312
311
|
return this.getBytes(this.remaining());
|
|
313
312
|
};
|
|
314
313
|
protoOf(ByteBuffer).set = function (index, value) {
|
|
315
|
-
if (index < 0
|
|
316
|
-
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', limit: ' + this.
|
|
314
|
+
if (index < 0 || index >= this.ba_1) {
|
|
315
|
+
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', limit: ' + this.ba_1);
|
|
317
316
|
}
|
|
318
|
-
this.
|
|
317
|
+
this.z9_1[index] = value;
|
|
319
318
|
};
|
|
320
319
|
protoOf(ByteBuffer).setByte = function (value) {
|
|
321
|
-
if (this.
|
|
322
|
-
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.
|
|
320
|
+
if (this.aa_1 >= this.ba_1) {
|
|
321
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.aa_1 + ', limit: ' + this.ba_1);
|
|
323
322
|
}
|
|
324
|
-
var
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
323
|
+
var _unary__edvuaz = this.aa_1;
|
|
324
|
+
this.aa_1 = _unary__edvuaz + 1 | 0;
|
|
325
|
+
this.z9_1[_unary__edvuaz] = value;
|
|
327
326
|
};
|
|
328
327
|
protoOf(ByteBuffer).setBytes = function (value) {
|
|
329
|
-
if ((this.
|
|
330
|
-
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.
|
|
328
|
+
if ((this.aa_1 + value.length | 0) > this.ba_1) {
|
|
329
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.aa_1 + ', size: ' + value.length + ', limit: ' + this.ba_1);
|
|
331
330
|
}
|
|
332
331
|
// Inline function 'kotlin.collections.copyInto' call
|
|
333
|
-
var destination = this.
|
|
334
|
-
var destinationOffset = this.
|
|
332
|
+
var destination = this.z9_1;
|
|
333
|
+
var destinationOffset = this.aa_1;
|
|
335
334
|
var endIndex = value.length;
|
|
336
335
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
337
336
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -339,10 +338,10 @@
|
|
|
339
338
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
340
339
|
// Inline function 'kotlin.js.asDynamic' call
|
|
341
340
|
arrayCopy(tmp, destination, destinationOffset, 0, endIndex);
|
|
342
|
-
this.
|
|
341
|
+
this.aa_1 = this.aa_1 + value.length | 0;
|
|
343
342
|
};
|
|
344
343
|
protoOf(ByteBuffer).reset = function () {
|
|
345
|
-
this.
|
|
344
|
+
this.aa_1 = 0;
|
|
346
345
|
};
|
|
347
346
|
function getBitRange(_this__u8e3s4, start, length) {
|
|
348
347
|
if (length <= 0) {
|
|
@@ -456,7 +455,7 @@
|
|
|
456
455
|
}
|
|
457
456
|
function toByteArray_0(_this__u8e3s4, size) {
|
|
458
457
|
size = size === VOID ? 0 : size;
|
|
459
|
-
if (_this__u8e3s4.
|
|
458
|
+
if (_this__u8e3s4.b2(new Long(0, 0)) < 0)
|
|
460
459
|
throw IllegalArgumentException_init_$Create$('Long must be unsigned');
|
|
461
460
|
var hex = toString_2(_this__u8e3s4, 16);
|
|
462
461
|
var tmp;
|
|
@@ -529,15 +528,16 @@
|
|
|
529
528
|
function getStringByteLength(_this__u8e3s4) {
|
|
530
529
|
var length = 0;
|
|
531
530
|
// Inline function 'kotlin.collections.iterator' call
|
|
532
|
-
var
|
|
533
|
-
while (
|
|
534
|
-
var i =
|
|
531
|
+
var _iterator__ex2g4s = iterator(_this__u8e3s4);
|
|
532
|
+
while (_iterator__ex2g4s.g()) {
|
|
533
|
+
var i = _iterator__ex2g4s.h().x_1;
|
|
535
534
|
// Inline function 'kotlin.code' call
|
|
536
535
|
var ascii = Char__toInt_impl_vasixd(i);
|
|
537
536
|
if (0 <= ascii ? ascii <= 255 : false) {
|
|
538
537
|
length = length + 1 | 0;
|
|
539
|
-
} else
|
|
538
|
+
} else {
|
|
540
539
|
length = length + 2 | 0;
|
|
540
|
+
}
|
|
541
541
|
}
|
|
542
542
|
return length;
|
|
543
543
|
}
|
|
@@ -563,16 +563,15 @@
|
|
|
563
563
|
var c = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
564
564
|
inductionVariable = inductionVariable + 1 | 0;
|
|
565
565
|
// Inline function 'kotlin.code' call
|
|
566
|
-
var
|
|
567
|
-
if (33 <=
|
|
566
|
+
var tmp0_subject = Char__toInt_impl_vasixd(c);
|
|
567
|
+
if (33 <= tmp0_subject ? tmp0_subject <= 126 : false) {
|
|
568
568
|
// Inline function 'kotlin.code' call
|
|
569
569
|
var tmp$ret$1 = Char__toInt_impl_vasixd(c);
|
|
570
|
-
sb.
|
|
571
|
-
} else if (
|
|
572
|
-
sb.
|
|
573
|
-
|
|
574
|
-
sb.
|
|
575
|
-
}
|
|
570
|
+
sb.g5(numberToChar(tmp$ret$1 + 65248 | 0));
|
|
571
|
+
} else if (tmp0_subject === 32)
|
|
572
|
+
sb.f5('\u3000');
|
|
573
|
+
else
|
|
574
|
+
sb.g5(c);
|
|
576
575
|
}
|
|
577
576
|
return sb.toString();
|
|
578
577
|
}
|
|
@@ -631,7 +630,7 @@
|
|
|
631
630
|
var i = inductionVariable;
|
|
632
631
|
inductionVariable = inductionVariable + 1 | 0;
|
|
633
632
|
var tmp;
|
|
634
|
-
switch (type.
|
|
633
|
+
switch (type.r1_1) {
|
|
635
634
|
case 0:
|
|
636
635
|
tmp = toByte(num + _this__u8e3s4[i]);
|
|
637
636
|
break;
|
|
@@ -684,7 +683,7 @@
|
|
|
684
683
|
return rgb[0] * 8.337E-4 + rgb[1] * 0.0028047 + rgb[2] * 2.831E-4 <= 0.5;
|
|
685
684
|
}
|
|
686
685
|
function getNextLevelColor(color, level) {
|
|
687
|
-
var target = level > 0
|
|
686
|
+
var target = level > 0 ? '#FFFFFF' : '#000000';
|
|
688
687
|
// Inline function 'kotlin.math.abs' call
|
|
689
688
|
var tmp$ret$0 = Math.abs(level);
|
|
690
689
|
return getMiddleColor(color, target, tmp$ret$0);
|
|
@@ -711,7 +710,7 @@
|
|
|
711
710
|
return getHexColorStringFromRgbValueArray(tmp$ret$5);
|
|
712
711
|
}
|
|
713
712
|
function getRgbValueArrayFromHexColorString(str) {
|
|
714
|
-
if (!get_colorRegex().
|
|
713
|
+
if (!get_colorRegex().l6(str)) {
|
|
715
714
|
// Inline function 'kotlin.arrayOf' call
|
|
716
715
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
717
716
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -736,10 +735,10 @@
|
|
|
736
735
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
737
736
|
var arr = ArrayList_init_$Create$();
|
|
738
737
|
var progression = step(until(1, hexColor.length), 2);
|
|
739
|
-
var inductionVariable_0 = progression.
|
|
740
|
-
var last_0 = progression.
|
|
741
|
-
var step_0 = progression.
|
|
742
|
-
if (
|
|
738
|
+
var inductionVariable_0 = progression.m_1;
|
|
739
|
+
var last_0 = progression.n_1;
|
|
740
|
+
var step_0 = progression.o_1;
|
|
741
|
+
if (step_0 > 0 && inductionVariable_0 <= last_0 || (step_0 < 0 && last_0 <= inductionVariable_0))
|
|
743
742
|
do {
|
|
744
743
|
var i_0 = inductionVariable_0;
|
|
745
744
|
inductionVariable_0 = inductionVariable_0 + step_0 | 0;
|
|
@@ -747,7 +746,7 @@
|
|
|
747
746
|
// Inline function 'kotlin.UInt.toInt' call
|
|
748
747
|
var this_0 = toUInt(s, 16);
|
|
749
748
|
var tmp$ret$6 = _UInt___get_data__impl__f0vqqw(this_0);
|
|
750
|
-
arr.
|
|
749
|
+
arr.d(tmp$ret$6);
|
|
751
750
|
}
|
|
752
751
|
while (!(i_0 === last_0));
|
|
753
752
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -831,60 +830,60 @@
|
|
|
831
830
|
}
|
|
832
831
|
function isIdCard(_this__u8e3s4) {
|
|
833
832
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
834
|
-
return get_idCardRegex().
|
|
833
|
+
return get_idCardRegex().l6(_this__u8e3s4);
|
|
835
834
|
}
|
|
836
835
|
function isMobileNumber(_this__u8e3s4) {
|
|
837
836
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
838
|
-
return get_mobileNumberRegex().
|
|
837
|
+
return get_mobileNumberRegex().l6(_this__u8e3s4);
|
|
839
838
|
}
|
|
840
839
|
function isEmail(_this__u8e3s4) {
|
|
841
840
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
842
|
-
return get_emailRegex().
|
|
841
|
+
return get_emailRegex().l6(_this__u8e3s4);
|
|
843
842
|
}
|
|
844
843
|
function isOnlyChEnNum(_this__u8e3s4) {
|
|
845
844
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
846
|
-
return get_chEnNumRegex().
|
|
845
|
+
return get_chEnNumRegex().l6(_this__u8e3s4);
|
|
847
846
|
}
|
|
848
847
|
function isOnlyEnNum(_this__u8e3s4) {
|
|
849
848
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
850
|
-
return get_numEnRegex().
|
|
849
|
+
return get_numEnRegex().l6(_this__u8e3s4);
|
|
851
850
|
}
|
|
852
851
|
function isOnlyChinese(_this__u8e3s4) {
|
|
853
852
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
854
|
-
return get_chineseRegex().
|
|
853
|
+
return get_chineseRegex().l6(_this__u8e3s4);
|
|
855
854
|
}
|
|
856
855
|
function isOnlyLetter(_this__u8e3s4) {
|
|
857
856
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
858
|
-
return get_letterRegex().
|
|
857
|
+
return get_letterRegex().l6(_this__u8e3s4);
|
|
859
858
|
}
|
|
860
859
|
function isOnlyNumber(_this__u8e3s4) {
|
|
861
860
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
862
|
-
return get_numberRegex().
|
|
861
|
+
return get_numberRegex().l6(_this__u8e3s4);
|
|
863
862
|
}
|
|
864
863
|
function isOnlyCode(_this__u8e3s4) {
|
|
865
864
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
866
|
-
return get_codeRegex().
|
|
865
|
+
return get_codeRegex().l6(_this__u8e3s4);
|
|
867
866
|
}
|
|
868
867
|
function isOnlyChSymbol(_this__u8e3s4) {
|
|
869
868
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
870
|
-
return get_chSymbolRegex().
|
|
869
|
+
return get_chSymbolRegex().l6(_this__u8e3s4);
|
|
871
870
|
}
|
|
872
871
|
function isColor(_this__u8e3s4) {
|
|
873
872
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
874
|
-
return get_colorRegex().
|
|
873
|
+
return get_colorRegex().l6(_this__u8e3s4);
|
|
875
874
|
}
|
|
876
875
|
function keep_0(_this__u8e3s4, reg) {
|
|
877
876
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
878
|
-
var tmp = reg.
|
|
877
|
+
var tmp = reg.o6(_this__u8e3s4);
|
|
879
878
|
return joinToString(map(tmp, keep$lambda), '');
|
|
880
879
|
}
|
|
881
880
|
function filter(_this__u8e3s4, reg) {
|
|
882
881
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
883
|
-
return reg.
|
|
882
|
+
return reg.p6(_this__u8e3s4, '');
|
|
884
883
|
}
|
|
885
884
|
function keep$lambda(it) {
|
|
886
885
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
887
|
-
return it.
|
|
886
|
+
return it.o1();
|
|
888
887
|
}
|
|
889
888
|
var properties_initialized_RegexUtils_kt_8e1sdo;
|
|
890
889
|
function _init_properties_RegexUtils_kt__b9v9ti() {
|
|
@@ -930,31 +929,31 @@
|
|
|
930
929
|
this.lat = lat;
|
|
931
930
|
this.lng = lng;
|
|
932
931
|
}
|
|
933
|
-
protoOf(Coordinate).
|
|
932
|
+
protoOf(Coordinate).fa = function (_set____db54di) {
|
|
934
933
|
this.lat = _set____db54di;
|
|
935
934
|
};
|
|
936
|
-
protoOf(Coordinate).
|
|
935
|
+
protoOf(Coordinate).ga = function () {
|
|
937
936
|
return this.lat;
|
|
938
937
|
};
|
|
939
|
-
protoOf(Coordinate).
|
|
938
|
+
protoOf(Coordinate).ha = function (_set____db54di) {
|
|
940
939
|
this.lng = _set____db54di;
|
|
941
940
|
};
|
|
942
|
-
protoOf(Coordinate).
|
|
941
|
+
protoOf(Coordinate).ia = function () {
|
|
943
942
|
return this.lng;
|
|
944
943
|
};
|
|
945
|
-
protoOf(Coordinate).
|
|
944
|
+
protoOf(Coordinate).ja = function () {
|
|
946
945
|
return this.lat;
|
|
947
946
|
};
|
|
948
|
-
protoOf(Coordinate).
|
|
947
|
+
protoOf(Coordinate).ka = function () {
|
|
949
948
|
return this.lng;
|
|
950
949
|
};
|
|
951
|
-
protoOf(Coordinate).
|
|
950
|
+
protoOf(Coordinate).la = function (lat, lng) {
|
|
952
951
|
return new Coordinate(lat, lng);
|
|
953
952
|
};
|
|
954
953
|
protoOf(Coordinate).copy = function (lat, lng, $super) {
|
|
955
954
|
lat = lat === VOID ? this.lat : lat;
|
|
956
955
|
lng = lng === VOID ? this.lng : lng;
|
|
957
|
-
return this.
|
|
956
|
+
return this.la(lat, lng);
|
|
958
957
|
};
|
|
959
958
|
protoOf(Coordinate).toString = function () {
|
|
960
959
|
return 'Coordinate(lat=' + this.lat + ', lng=' + this.lng + ')';
|
|
@@ -984,24 +983,24 @@
|
|
|
984
983
|
var ret = tmp + 0.2 * Math.sqrt(x);
|
|
985
984
|
var tmp_0 = ret;
|
|
986
985
|
// Inline function 'kotlin.math.sin' call
|
|
987
|
-
var x_0 = 6 * lng *
|
|
986
|
+
var x_0 = 6 * lng * 3.141592653589793;
|
|
988
987
|
var tmp_1 = 20 * Math.sin(x_0);
|
|
989
988
|
// Inline function 'kotlin.math.sin' call
|
|
990
|
-
var x_1 = 2 * lng *
|
|
989
|
+
var x_1 = 2 * lng * 3.141592653589793;
|
|
991
990
|
ret = tmp_0 + (tmp_1 + 20 * Math.sin(x_1)) * 2 / 3;
|
|
992
991
|
var tmp_2 = ret;
|
|
993
992
|
// Inline function 'kotlin.math.sin' call
|
|
994
|
-
var x_2 = lat *
|
|
993
|
+
var x_2 = lat * 3.141592653589793;
|
|
995
994
|
var tmp_3 = 20 * Math.sin(x_2);
|
|
996
995
|
// Inline function 'kotlin.math.sin' call
|
|
997
|
-
var x_3 = lat / 3.0 *
|
|
996
|
+
var x_3 = lat / 3.0 * 3.141592653589793;
|
|
998
997
|
ret = tmp_2 + (tmp_3 + 40 * Math.sin(x_3)) * 2 / 3;
|
|
999
998
|
var tmp_4 = ret;
|
|
1000
999
|
// Inline function 'kotlin.math.sin' call
|
|
1001
|
-
var x_4 = lat / 12 *
|
|
1000
|
+
var x_4 = lat / 12 * 3.141592653589793;
|
|
1002
1001
|
var tmp_5 = 160 * Math.sin(x_4);
|
|
1003
1002
|
// Inline function 'kotlin.math.sin' call
|
|
1004
|
-
var x_5 = lat *
|
|
1003
|
+
var x_5 = lat * 3.141592653589793 / 30;
|
|
1005
1004
|
ret = tmp_4 + (tmp_5 + 320 * Math.sin(x_5)) * 2 / 3;
|
|
1006
1005
|
return ret;
|
|
1007
1006
|
}
|
|
@@ -1013,36 +1012,36 @@
|
|
|
1013
1012
|
var ret = tmp + 0.1 * Math.sqrt(x);
|
|
1014
1013
|
var tmp_0 = ret;
|
|
1015
1014
|
// Inline function 'kotlin.math.sin' call
|
|
1016
|
-
var x_0 = 6 * lng *
|
|
1015
|
+
var x_0 = 6 * lng * 3.141592653589793;
|
|
1017
1016
|
var tmp_1 = 20 * Math.sin(x_0);
|
|
1018
1017
|
// Inline function 'kotlin.math.sin' call
|
|
1019
|
-
var x_1 = 2 * lng *
|
|
1018
|
+
var x_1 = 2 * lng * 3.141592653589793;
|
|
1020
1019
|
ret = tmp_0 + (tmp_1 + 20 * Math.sin(x_1)) * 2 / 3;
|
|
1021
1020
|
var tmp_2 = ret;
|
|
1022
1021
|
// Inline function 'kotlin.math.sin' call
|
|
1023
|
-
var x_2 = lng *
|
|
1022
|
+
var x_2 = lng * 3.141592653589793;
|
|
1024
1023
|
var tmp_3 = 20 * Math.sin(x_2);
|
|
1025
1024
|
// Inline function 'kotlin.math.sin' call
|
|
1026
|
-
var x_3 = lng / 3 *
|
|
1025
|
+
var x_3 = lng / 3 * 3.141592653589793;
|
|
1027
1026
|
ret = tmp_2 + (tmp_3 + 40 * Math.sin(x_3)) * 2 / 3;
|
|
1028
1027
|
var tmp_4 = ret;
|
|
1029
1028
|
// Inline function 'kotlin.math.sin' call
|
|
1030
|
-
var x_4 = lng / 12 *
|
|
1029
|
+
var x_4 = lng / 12 * 3.141592653589793;
|
|
1031
1030
|
var tmp_5 = 150 * Math.sin(x_4);
|
|
1032
1031
|
// Inline function 'kotlin.math.sin' call
|
|
1033
|
-
var x_5 = lng / 30 *
|
|
1032
|
+
var x_5 = lng / 30 * 3.141592653589793;
|
|
1034
1033
|
ret = tmp_4 + (tmp_5 + 300 * Math.sin(x_5)) * 2 / 3;
|
|
1035
1034
|
return ret;
|
|
1036
1035
|
}
|
|
1037
1036
|
function outOfChina($this, lng, lat) {
|
|
1038
|
-
return
|
|
1037
|
+
return lng < 72.004 || lng > 137.8347 || lat < 0.8293 || lat > 55.8271;
|
|
1039
1038
|
}
|
|
1040
1039
|
function CoordinateConvert() {
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1040
|
+
this.ma_1 = 52.35987755982988;
|
|
1041
|
+
this.na_1 = 6378245;
|
|
1042
|
+
this.oa_1 = 0.006693421622965943;
|
|
1044
1043
|
}
|
|
1045
|
-
protoOf(CoordinateConvert).
|
|
1044
|
+
protoOf(CoordinateConvert).pa = function (lng, lat) {
|
|
1046
1045
|
var x = lng - 0.0065;
|
|
1047
1046
|
var y = lat - 0.006;
|
|
1048
1047
|
// Inline function 'kotlin.math.sqrt' call
|
|
@@ -1063,7 +1062,7 @@
|
|
|
1063
1062
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
1064
1063
|
return new Float64Array([gcjLng, gcjLat]);
|
|
1065
1064
|
};
|
|
1066
|
-
protoOf(CoordinateConvert).
|
|
1065
|
+
protoOf(CoordinateConvert).qa = function (lng, lat) {
|
|
1067
1066
|
// Inline function 'kotlin.math.sqrt' call
|
|
1068
1067
|
var x = lng * lng + lat * lat;
|
|
1069
1068
|
var tmp = Math.sqrt(x);
|
|
@@ -1082,7 +1081,7 @@
|
|
|
1082
1081
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
1083
1082
|
return new Float64Array([bdLng, bdLat]);
|
|
1084
1083
|
};
|
|
1085
|
-
protoOf(CoordinateConvert).
|
|
1084
|
+
protoOf(CoordinateConvert).ra = function (lng, lat) {
|
|
1086
1085
|
var tmp;
|
|
1087
1086
|
if (outOfChina(this, lng, lat)) {
|
|
1088
1087
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
@@ -1090,18 +1089,18 @@
|
|
|
1090
1089
|
} else {
|
|
1091
1090
|
var dLat = transformLat(this, lng - 105, lat - 35);
|
|
1092
1091
|
var dLng = transformLng(this, lng - 105, lat - 35);
|
|
1093
|
-
var radLat = lat / 180 *
|
|
1092
|
+
var radLat = lat / 180 * 3.141592653589793;
|
|
1094
1093
|
// Inline function 'kotlin.math.sin' call
|
|
1095
1094
|
var magic = Math.sin(radLat);
|
|
1096
1095
|
magic = 1 - 0.006693421622965943 * magic * magic;
|
|
1097
1096
|
// Inline function 'kotlin.math.sqrt' call
|
|
1098
1097
|
var x = magic;
|
|
1099
1098
|
var sqrtMagic = Math.sqrt(x);
|
|
1100
|
-
dLat = dLat * 180 / (
|
|
1099
|
+
dLat = dLat * 180 / (6378245 * (1 - 0.006693421622965943) / (magic * sqrtMagic) * 3.141592653589793);
|
|
1101
1100
|
var tmp_0 = dLng * 180;
|
|
1102
1101
|
var tmp_1 = 6378245 / sqrtMagic;
|
|
1103
1102
|
// Inline function 'kotlin.math.cos' call
|
|
1104
|
-
dLng = tmp_0 / (tmp_1 * Math.cos(radLat) *
|
|
1103
|
+
dLng = tmp_0 / (tmp_1 * Math.cos(radLat) * 3.141592653589793);
|
|
1105
1104
|
var mgLat = lat + dLat;
|
|
1106
1105
|
var mgLng = lng + dLng;
|
|
1107
1106
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
@@ -1109,7 +1108,7 @@
|
|
|
1109
1108
|
}
|
|
1110
1109
|
return tmp;
|
|
1111
1110
|
};
|
|
1112
|
-
protoOf(CoordinateConvert).
|
|
1111
|
+
protoOf(CoordinateConvert).sa = function (lng, lat) {
|
|
1113
1112
|
var tmp;
|
|
1114
1113
|
if (outOfChina(this, lng, lat)) {
|
|
1115
1114
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
@@ -1117,18 +1116,18 @@
|
|
|
1117
1116
|
} else {
|
|
1118
1117
|
var dLat = transformLat(this, lng - 105, lat - 35);
|
|
1119
1118
|
var dLng = transformLng(this, lng - 105, lat - 35);
|
|
1120
|
-
var redLat = lat / 180 *
|
|
1119
|
+
var redLat = lat / 180 * 3.141592653589793;
|
|
1121
1120
|
// Inline function 'kotlin.math.sin' call
|
|
1122
1121
|
var magic = Math.sin(redLat);
|
|
1123
1122
|
magic = 1 - 0.006693421622965943 * magic * magic;
|
|
1124
1123
|
// Inline function 'kotlin.math.sqrt' call
|
|
1125
1124
|
var x = magic;
|
|
1126
1125
|
var sqrtMagic = Math.sqrt(x);
|
|
1127
|
-
dLat = dLat * 180 / (
|
|
1126
|
+
dLat = dLat * 180 / (6378245 * (1 - 0.006693421622965943) / (magic * sqrtMagic) * 3.141592653589793);
|
|
1128
1127
|
var tmp_0 = dLng * 180;
|
|
1129
1128
|
var tmp_1 = 6378245 / sqrtMagic;
|
|
1130
1129
|
// Inline function 'kotlin.math.cos' call
|
|
1131
|
-
dLng = tmp_0 / (tmp_1 * Math.cos(redLat) *
|
|
1130
|
+
dLng = tmp_0 / (tmp_1 * Math.cos(redLat) * 3.141592653589793);
|
|
1132
1131
|
var mgLat = lat + dLat;
|
|
1133
1132
|
var mgLng = lng + dLng;
|
|
1134
1133
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
@@ -1136,13 +1135,13 @@
|
|
|
1136
1135
|
}
|
|
1137
1136
|
return tmp;
|
|
1138
1137
|
};
|
|
1139
|
-
protoOf(CoordinateConvert).
|
|
1140
|
-
var lngLat = this.
|
|
1141
|
-
return this.
|
|
1138
|
+
protoOf(CoordinateConvert).ta = function (lng, lat) {
|
|
1139
|
+
var lngLat = this.pa(lng, lat);
|
|
1140
|
+
return this.ra(lngLat[0], lngLat[1]);
|
|
1142
1141
|
};
|
|
1143
|
-
protoOf(CoordinateConvert).
|
|
1144
|
-
var lngLat = this.
|
|
1145
|
-
return this.
|
|
1142
|
+
protoOf(CoordinateConvert).ua = function (lng, lat) {
|
|
1143
|
+
var lngLat = this.sa(lng, lat);
|
|
1144
|
+
return this.qa(lngLat[0], lngLat[1]);
|
|
1146
1145
|
};
|
|
1147
1146
|
var CoordinateConvert_instance;
|
|
1148
1147
|
function CoordinateConvert_getInstance() {
|
|
@@ -1194,10 +1193,10 @@
|
|
|
1194
1193
|
}
|
|
1195
1194
|
function convert(_this__u8e3s4, from, to) {
|
|
1196
1195
|
var tmp;
|
|
1197
|
-
switch (from.
|
|
1196
|
+
switch (from.r1_1) {
|
|
1198
1197
|
case 0:
|
|
1199
1198
|
var tmp_0;
|
|
1200
|
-
switch (to.
|
|
1199
|
+
switch (to.r1_1) {
|
|
1201
1200
|
case 1:
|
|
1202
1201
|
// Inline function 'kotlin.let' call
|
|
1203
1202
|
|
|
@@ -1205,7 +1204,7 @@
|
|
|
1205
1204
|
|
|
1206
1205
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1207
1206
|
|
|
1208
|
-
var it = CoordinateConvert_instance.
|
|
1207
|
+
var it = CoordinateConvert_instance.sa(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1209
1208
|
tmp_0 = new Coordinate(it[1], it[0]);
|
|
1210
1209
|
break;
|
|
1211
1210
|
case 2:
|
|
@@ -1215,7 +1214,7 @@
|
|
|
1215
1214
|
|
|
1216
1215
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1217
1216
|
|
|
1218
|
-
var it_0 = CoordinateConvert_instance.
|
|
1217
|
+
var it_0 = CoordinateConvert_instance.ua(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1219
1218
|
tmp_0 = new Coordinate(it_0[1], it_0[0]);
|
|
1220
1219
|
break;
|
|
1221
1220
|
default:
|
|
@@ -1227,7 +1226,7 @@
|
|
|
1227
1226
|
break;
|
|
1228
1227
|
case 1:
|
|
1229
1228
|
var tmp_1;
|
|
1230
|
-
switch (to.
|
|
1229
|
+
switch (to.r1_1) {
|
|
1231
1230
|
case 0:
|
|
1232
1231
|
// Inline function 'kotlin.let' call
|
|
1233
1232
|
|
|
@@ -1235,7 +1234,7 @@
|
|
|
1235
1234
|
|
|
1236
1235
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1237
1236
|
|
|
1238
|
-
var it_1 = CoordinateConvert_instance.
|
|
1237
|
+
var it_1 = CoordinateConvert_instance.ra(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1239
1238
|
tmp_1 = new Coordinate(it_1[1], it_1[0]);
|
|
1240
1239
|
break;
|
|
1241
1240
|
case 2:
|
|
@@ -1245,7 +1244,7 @@
|
|
|
1245
1244
|
|
|
1246
1245
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1247
1246
|
|
|
1248
|
-
var it_2 = CoordinateConvert_instance.
|
|
1247
|
+
var it_2 = CoordinateConvert_instance.qa(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1249
1248
|
tmp_1 = new Coordinate(it_2[1], it_2[0]);
|
|
1250
1249
|
break;
|
|
1251
1250
|
default:
|
|
@@ -1257,7 +1256,7 @@
|
|
|
1257
1256
|
break;
|
|
1258
1257
|
case 2:
|
|
1259
1258
|
var tmp_2;
|
|
1260
|
-
switch (to.
|
|
1259
|
+
switch (to.r1_1) {
|
|
1261
1260
|
case 0:
|
|
1262
1261
|
// Inline function 'kotlin.let' call
|
|
1263
1262
|
|
|
@@ -1265,7 +1264,7 @@
|
|
|
1265
1264
|
|
|
1266
1265
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1267
1266
|
|
|
1268
|
-
var it_3 = CoordinateConvert_instance.
|
|
1267
|
+
var it_3 = CoordinateConvert_instance.ta(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1269
1268
|
tmp_2 = new Coordinate(it_3[1], it_3[0]);
|
|
1270
1269
|
break;
|
|
1271
1270
|
case 1:
|
|
@@ -1275,7 +1274,7 @@
|
|
|
1275
1274
|
|
|
1276
1275
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1277
1276
|
|
|
1278
|
-
var it_4 = CoordinateConvert_instance.
|
|
1277
|
+
var it_4 = CoordinateConvert_instance.pa(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1279
1278
|
tmp_2 = new Coordinate(it_4[1], it_4[0]);
|
|
1280
1279
|
break;
|
|
1281
1280
|
default:
|
|
@@ -1299,9 +1298,9 @@
|
|
|
1299
1298
|
}
|
|
1300
1299
|
function toLongitudeNoPre(_this__u8e3s4) {
|
|
1301
1300
|
var tmp;
|
|
1302
|
-
if (_this__u8e3s4 > 180
|
|
1301
|
+
if (_this__u8e3s4 > 180) {
|
|
1303
1302
|
tmp = 360;
|
|
1304
|
-
} else if (_this__u8e3s4 < 0
|
|
1303
|
+
} else if (_this__u8e3s4 < 0) {
|
|
1305
1304
|
tmp = 0;
|
|
1306
1305
|
} else {
|
|
1307
1306
|
return _this__u8e3s4;
|
|
@@ -1311,9 +1310,9 @@
|
|
|
1311
1310
|
}
|
|
1312
1311
|
function toLatitudeNoPre(_this__u8e3s4) {
|
|
1313
1312
|
var tmp;
|
|
1314
|
-
if (_this__u8e3s4 > 90
|
|
1313
|
+
if (_this__u8e3s4 > 90) {
|
|
1315
1314
|
tmp = 180;
|
|
1316
|
-
} else if (_this__u8e3s4 < 0
|
|
1315
|
+
} else if (_this__u8e3s4 < 0) {
|
|
1317
1316
|
tmp = 0;
|
|
1318
1317
|
} else {
|
|
1319
1318
|
return _this__u8e3s4;
|
|
@@ -1326,7 +1325,7 @@
|
|
|
1326
1325
|
if (!isEastLongitude(_this__u8e3s4)) {
|
|
1327
1326
|
if (isPositive) {
|
|
1328
1327
|
var tmp;
|
|
1329
|
-
if (_this__u8e3s4 > 0
|
|
1328
|
+
if (_this__u8e3s4 > 0) {
|
|
1330
1329
|
tmp = _this__u8e3s4;
|
|
1331
1330
|
} else {
|
|
1332
1331
|
tmp = 360 + _this__u8e3s4;
|
|
@@ -1334,7 +1333,7 @@
|
|
|
1334
1333
|
return tmp;
|
|
1335
1334
|
} else {
|
|
1336
1335
|
var tmp_0;
|
|
1337
|
-
if (_this__u8e3s4 > 0
|
|
1336
|
+
if (_this__u8e3s4 > 0) {
|
|
1338
1337
|
tmp_0 = _this__u8e3s4 - 360;
|
|
1339
1338
|
} else {
|
|
1340
1339
|
tmp_0 = _this__u8e3s4;
|
|
@@ -1358,7 +1357,7 @@
|
|
|
1358
1357
|
if (!isNorthLatitude(_this__u8e3s4)) {
|
|
1359
1358
|
if (isPositive) {
|
|
1360
1359
|
var tmp;
|
|
1361
|
-
if (_this__u8e3s4 > 0
|
|
1360
|
+
if (_this__u8e3s4 > 0) {
|
|
1362
1361
|
tmp = _this__u8e3s4;
|
|
1363
1362
|
} else {
|
|
1364
1363
|
tmp = 90 + _this__u8e3s4;
|
|
@@ -1366,7 +1365,7 @@
|
|
|
1366
1365
|
return tmp;
|
|
1367
1366
|
} else {
|
|
1368
1367
|
var tmp_0;
|
|
1369
|
-
if (_this__u8e3s4 > 0
|
|
1368
|
+
if (_this__u8e3s4 > 0) {
|
|
1370
1369
|
tmp_0 = _this__u8e3s4 - 90;
|
|
1371
1370
|
} else {
|
|
1372
1371
|
tmp_0 = _this__u8e3s4;
|
|
@@ -1402,7 +1401,7 @@
|
|
|
1402
1401
|
var string = pattern;
|
|
1403
1402
|
// Inline function 'kotlin.text.toRegex' call
|
|
1404
1403
|
var tmp$ret$0 = Regex_init_$Create$('CH');
|
|
1405
|
-
var reg = toList(tmp$ret$0.
|
|
1404
|
+
var reg = toList(tmp$ret$0.o6(string));
|
|
1406
1405
|
var tmp;
|
|
1407
1406
|
if (isLongitude) {
|
|
1408
1407
|
tmp = isEastLongitude(_this__u8e3s4) ? '\u4E1C\u7ECF' : '\u897F\u7ECF';
|
|
@@ -1410,18 +1409,18 @@
|
|
|
1410
1409
|
tmp = isNorthLatitude(_this__u8e3s4) ? '\u5317\u7EAC' : '\u5357\u7EAC';
|
|
1411
1410
|
}
|
|
1412
1411
|
var faxiang = tmp;
|
|
1413
|
-
var
|
|
1414
|
-
while (
|
|
1415
|
-
var item =
|
|
1412
|
+
var _iterator__ex2g4s = reg.f();
|
|
1413
|
+
while (_iterator__ex2g4s.g()) {
|
|
1414
|
+
var item = _iterator__ex2g4s.h();
|
|
1416
1415
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1417
1416
|
var this_0 = string;
|
|
1418
|
-
var range = item.
|
|
1417
|
+
var range = item.r6();
|
|
1419
1418
|
var replacement = faxiang;
|
|
1420
1419
|
string = toString(replaceRange(isCharSequence(this_0) ? this_0 : THROW_CCE(), range, replacement));
|
|
1421
1420
|
}
|
|
1422
1421
|
// Inline function 'kotlin.text.toRegex' call
|
|
1423
1422
|
var tmp$ret$2 = Regex_init_$Create$('F');
|
|
1424
|
-
reg = toList(tmp$ret$2.
|
|
1423
|
+
reg = toList(tmp$ret$2.o6(string));
|
|
1425
1424
|
var tmp_0;
|
|
1426
1425
|
if (isLongitude) {
|
|
1427
1426
|
tmp_0 = isEastLongitude(_this__u8e3s4) ? 'E' : 'W';
|
|
@@ -1429,101 +1428,101 @@
|
|
|
1429
1428
|
tmp_0 = isNorthLatitude(_this__u8e3s4) ? 'N' : 'S';
|
|
1430
1429
|
}
|
|
1431
1430
|
faxiang = tmp_0;
|
|
1432
|
-
var
|
|
1433
|
-
while (
|
|
1434
|
-
var item_0 =
|
|
1431
|
+
var _iterator__ex2g4s_0 = reg.f();
|
|
1432
|
+
while (_iterator__ex2g4s_0.g()) {
|
|
1433
|
+
var item_0 = _iterator__ex2g4s_0.h();
|
|
1435
1434
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1436
1435
|
var this_1 = string;
|
|
1437
|
-
var range_0 = item_0.
|
|
1436
|
+
var range_0 = item_0.r6();
|
|
1438
1437
|
var replacement_0 = faxiang;
|
|
1439
1438
|
string = toString(replaceRange(isCharSequence(this_1) ? this_1 : THROW_CCE(), range_0, replacement_0));
|
|
1440
1439
|
}
|
|
1441
1440
|
// Inline function 'kotlin.text.toRegex' call
|
|
1442
1441
|
var tmp$ret$4 = Regex_init_$Create$('d+');
|
|
1443
|
-
reg = toList(tmp$ret$4.
|
|
1442
|
+
reg = toList(tmp$ret$4.o6(string));
|
|
1444
1443
|
var dValue = numberToInt(value);
|
|
1445
|
-
var
|
|
1446
|
-
while (
|
|
1447
|
-
var item_1 =
|
|
1444
|
+
var _iterator__ex2g4s_1 = reg.f();
|
|
1445
|
+
while (_iterator__ex2g4s_1.g()) {
|
|
1446
|
+
var item_1 = _iterator__ex2g4s_1.h();
|
|
1448
1447
|
var tmp_1;
|
|
1449
|
-
if (item_1.
|
|
1448
|
+
if (item_1.o1().length === 1) {
|
|
1450
1449
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1451
1450
|
var this_2 = string;
|
|
1452
|
-
var range_1 = item_1.
|
|
1451
|
+
var range_1 = item_1.r6();
|
|
1453
1452
|
var replacement_1 = dValue.toString();
|
|
1454
1453
|
tmp_1 = toString(replaceRange(isCharSequence(this_2) ? this_2 : THROW_CCE(), range_1, replacement_1));
|
|
1455
1454
|
} else {
|
|
1456
1455
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1457
1456
|
var this_3 = string;
|
|
1458
|
-
var range_2 = item_1.
|
|
1459
|
-
var replacement_2 = padStart(dValue.toString(), item_1.
|
|
1457
|
+
var range_2 = item_1.r6();
|
|
1458
|
+
var replacement_2 = padStart(dValue.toString(), item_1.o1().length, _Char___init__impl__6a9atx(48));
|
|
1460
1459
|
tmp_1 = toString(replaceRange(isCharSequence(this_3) ? this_3 : THROW_CCE(), range_2, replacement_2));
|
|
1461
1460
|
}
|
|
1462
1461
|
string = tmp_1;
|
|
1463
1462
|
}
|
|
1464
1463
|
// Inline function 'kotlin.text.toRegex' call
|
|
1465
1464
|
var tmp$ret$7 = Regex_init_$Create$('m+');
|
|
1466
|
-
reg = toList(tmp$ret$7.
|
|
1465
|
+
reg = toList(tmp$ret$7.o6(string));
|
|
1467
1466
|
var m = (value - dValue) * 60.0;
|
|
1468
1467
|
var mValue = numberToInt(m);
|
|
1469
|
-
var
|
|
1470
|
-
while (
|
|
1471
|
-
var item_2 =
|
|
1468
|
+
var _iterator__ex2g4s_2 = reg.f();
|
|
1469
|
+
while (_iterator__ex2g4s_2.g()) {
|
|
1470
|
+
var item_2 = _iterator__ex2g4s_2.h();
|
|
1472
1471
|
var tmp_2;
|
|
1473
|
-
if (item_2.
|
|
1472
|
+
if (item_2.o1().length === 1) {
|
|
1474
1473
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1475
1474
|
var this_4 = string;
|
|
1476
|
-
var range_3 = item_2.
|
|
1475
|
+
var range_3 = item_2.r6();
|
|
1477
1476
|
var replacement_3 = mValue.toString();
|
|
1478
1477
|
tmp_2 = toString(replaceRange(isCharSequence(this_4) ? this_4 : THROW_CCE(), range_3, replacement_3));
|
|
1479
1478
|
} else {
|
|
1480
1479
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1481
1480
|
var this_5 = string;
|
|
1482
|
-
var range_4 = item_2.
|
|
1483
|
-
var replacement_4 = padStart(mValue.toString(), item_2.
|
|
1481
|
+
var range_4 = item_2.r6();
|
|
1482
|
+
var replacement_4 = padStart(mValue.toString(), item_2.o1().length, _Char___init__impl__6a9atx(48));
|
|
1484
1483
|
tmp_2 = toString(replaceRange(isCharSequence(this_5) ? this_5 : THROW_CCE(), range_4, replacement_4));
|
|
1485
1484
|
}
|
|
1486
1485
|
string = tmp_2;
|
|
1487
1486
|
}
|
|
1488
1487
|
// Inline function 'kotlin.text.toRegex' call
|
|
1489
1488
|
var tmp$ret$10 = Regex_init_$Create$('S+');
|
|
1490
|
-
reg = toList(tmp$ret$10.
|
|
1489
|
+
reg = toList(tmp$ret$10.o6(string));
|
|
1491
1490
|
var S = (m - mValue) * 60.0;
|
|
1492
1491
|
var SValue = numberToInt(S);
|
|
1493
|
-
var
|
|
1494
|
-
while (
|
|
1495
|
-
var item_3 =
|
|
1492
|
+
var _iterator__ex2g4s_3 = reg.f();
|
|
1493
|
+
while (_iterator__ex2g4s_3.g()) {
|
|
1494
|
+
var item_3 = _iterator__ex2g4s_3.h();
|
|
1496
1495
|
var tmp_3;
|
|
1497
|
-
if (item_3.
|
|
1496
|
+
if (item_3.o1().length === 1) {
|
|
1498
1497
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1499
1498
|
var this_6 = string;
|
|
1500
|
-
var range_5 = item_3.
|
|
1499
|
+
var range_5 = item_3.r6();
|
|
1501
1500
|
var replacement_5 = SValue.toString();
|
|
1502
1501
|
tmp_3 = toString(replaceRange(isCharSequence(this_6) ? this_6 : THROW_CCE(), range_5, replacement_5));
|
|
1503
1502
|
} else {
|
|
1504
1503
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1505
1504
|
var this_7 = string;
|
|
1506
|
-
var range_6 = item_3.
|
|
1507
|
-
var replacement_6 = padStart(SValue.toString(), item_3.
|
|
1505
|
+
var range_6 = item_3.r6();
|
|
1506
|
+
var replacement_6 = padStart(SValue.toString(), item_3.o1().length, _Char___init__impl__6a9atx(48));
|
|
1508
1507
|
tmp_3 = toString(replaceRange(isCharSequence(this_7) ? this_7 : THROW_CCE(), range_6, replacement_6));
|
|
1509
1508
|
}
|
|
1510
1509
|
string = tmp_3;
|
|
1511
1510
|
}
|
|
1512
1511
|
// Inline function 'kotlin.text.toRegex' call
|
|
1513
1512
|
var tmp$ret$13 = Regex_init_$Create$('s+');
|
|
1514
|
-
reg = toList(tmp$ret$13.
|
|
1515
|
-
var
|
|
1516
|
-
while (
|
|
1517
|
-
var item_4 =
|
|
1513
|
+
reg = toList(tmp$ret$13.o6(string));
|
|
1514
|
+
var _iterator__ex2g4s_4 = reg.f();
|
|
1515
|
+
while (_iterator__ex2g4s_4.g()) {
|
|
1516
|
+
var item_4 = _iterator__ex2g4s_4.h();
|
|
1518
1517
|
var tmp_4 = S - SValue;
|
|
1519
1518
|
// Inline function 'kotlin.math.pow' call
|
|
1520
|
-
var n = item_4.
|
|
1519
|
+
var n = item_4.o1().length;
|
|
1521
1520
|
var tmp$ret$14 = Math.pow(10.0, n);
|
|
1522
1521
|
var sValue = roundToInt(tmp_4 * tmp$ret$14);
|
|
1523
1522
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1524
1523
|
var this_8 = string;
|
|
1525
|
-
var range_7 = item_4.
|
|
1526
|
-
var replacement_7 = padStart(sValue.toString(), item_4.
|
|
1524
|
+
var range_7 = item_4.r6();
|
|
1525
|
+
var replacement_7 = padStart(sValue.toString(), item_4.o1().length, _Char___init__impl__6a9atx(48));
|
|
1527
1526
|
string = toString(replaceRange(isCharSequence(this_8) ? this_8 : THROW_CCE(), range_7, replacement_7));
|
|
1528
1527
|
}
|
|
1529
1528
|
return string;
|
|
@@ -1544,60 +1543,60 @@
|
|
|
1544
1543
|
// Inline function 'kotlin.text.toRegex' call
|
|
1545
1544
|
var this_0 = '[^dmSs]+';
|
|
1546
1545
|
var tmp$ret$0 = Regex_init_$Create$(this_0);
|
|
1547
|
-
var list = toList(tmp$ret$0.
|
|
1548
|
-
var
|
|
1549
|
-
$l$loop_2: while (
|
|
1550
|
-
var item =
|
|
1551
|
-
if (item.
|
|
1546
|
+
var list = toList(tmp$ret$0.o6(tempPattern));
|
|
1547
|
+
var _iterator__ex2g4s = list.f();
|
|
1548
|
+
$l$loop_2: while (_iterator__ex2g4s.g()) {
|
|
1549
|
+
var item = _iterator__ex2g4s.h();
|
|
1550
|
+
if (item.r6().m_1 < index)
|
|
1552
1551
|
continue $l$loop_2;
|
|
1553
|
-
if (contains(item.
|
|
1554
|
-
index = item.
|
|
1552
|
+
if (contains(item.o1(), 'CH') || contains(item.o1(), 'F')) {
|
|
1553
|
+
index = item.r6().n_1;
|
|
1555
1554
|
continue $l$loop_2;
|
|
1556
1555
|
}
|
|
1557
|
-
var pos = indexOf_0(string, item.
|
|
1558
|
-
if (pos < item.
|
|
1559
|
-
println('ERROR, pos=' + pos + ', range.first=' + item.
|
|
1556
|
+
var pos = indexOf_0(string, item.o1());
|
|
1557
|
+
if (pos < item.r6().m_1) {
|
|
1558
|
+
println('ERROR, pos=' + pos + ', range.first=' + item.r6().m_1);
|
|
1560
1559
|
return 0.0;
|
|
1561
1560
|
}
|
|
1562
|
-
if (pos === item.
|
|
1563
|
-
index = item.
|
|
1561
|
+
if (pos === item.r6().m_1) {
|
|
1562
|
+
index = item.r6().n_1;
|
|
1564
1563
|
continue $l$loop_2;
|
|
1565
1564
|
} else {
|
|
1566
1565
|
// Inline function 'kotlin.text.substring' call
|
|
1567
1566
|
var this_1 = tempPattern;
|
|
1568
|
-
var startIndex = item.
|
|
1569
|
-
var endIndex = item.
|
|
1567
|
+
var startIndex = item.r6().m_1 - 1 | 0;
|
|
1568
|
+
var endIndex = item.r6().m_1;
|
|
1570
1569
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1571
1570
|
var lastStr = this_1.substring(startIndex, endIndex);
|
|
1572
1571
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1573
1572
|
var this_2 = tempPattern;
|
|
1574
|
-
var startIndex_0 = item.
|
|
1575
|
-
var endIndex_0 = item.
|
|
1576
|
-
var replacement = padStart(lastStr, (pos - item.
|
|
1573
|
+
var startIndex_0 = item.r6().m_1 - 1 | 0;
|
|
1574
|
+
var endIndex_0 = item.r6().m_1;
|
|
1575
|
+
var replacement = padStart(lastStr, (pos - item.r6().m_1 | 0) + 1 | 0, toCharArray(lastStr)[0]);
|
|
1577
1576
|
tempPattern = toString(replaceRange_0(isCharSequence(this_2) ? this_2 : THROW_CCE(), startIndex_0, endIndex_0, replacement));
|
|
1578
|
-
index = pos + item.
|
|
1577
|
+
index = pos + item.o1().length | 0;
|
|
1579
1578
|
break $l$loop_2;
|
|
1580
1579
|
}
|
|
1581
1580
|
}
|
|
1582
1581
|
}
|
|
1583
1582
|
// Inline function 'kotlin.text.toRegex' call
|
|
1584
1583
|
var tmp$ret$4 = Regex_init_$Create$('CH');
|
|
1585
|
-
var reg = toList(tmp$ret$4.
|
|
1584
|
+
var reg = toList(tmp$ret$4.o6(tempPattern));
|
|
1586
1585
|
var tmp;
|
|
1587
1586
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1588
|
-
if (!reg.
|
|
1589
|
-
tmp = substring(string, reg.
|
|
1587
|
+
if (!reg.w()) {
|
|
1588
|
+
tmp = substring(string, reg.j(0).r6());
|
|
1590
1589
|
} else {
|
|
1591
1590
|
tmp = null;
|
|
1592
1591
|
}
|
|
1593
1592
|
var faxiang = tmp;
|
|
1594
1593
|
// Inline function 'kotlin.text.toRegex' call
|
|
1595
1594
|
var tmp$ret$6 = Regex_init_$Create$('F');
|
|
1596
|
-
reg = toList(tmp$ret$6.
|
|
1595
|
+
reg = toList(tmp$ret$6.o6(tempPattern));
|
|
1597
1596
|
var tmp_0;
|
|
1598
1597
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1599
|
-
if (!reg.
|
|
1600
|
-
tmp_0 = substring(string, reg.
|
|
1598
|
+
if (!reg.w()) {
|
|
1599
|
+
tmp_0 = substring(string, reg.j(0).r6());
|
|
1601
1600
|
} else {
|
|
1602
1601
|
tmp_0 = faxiang;
|
|
1603
1602
|
}
|
|
@@ -1616,30 +1615,30 @@
|
|
|
1616
1615
|
}
|
|
1617
1616
|
// Inline function 'kotlin.text.toRegex' call
|
|
1618
1617
|
var tmp$ret$8 = Regex_init_$Create$('[d]+');
|
|
1619
|
-
reg = toList(tmp$ret$8.
|
|
1618
|
+
reg = toList(tmp$ret$8.o6(tempPattern));
|
|
1620
1619
|
var dStr = '';
|
|
1621
|
-
var
|
|
1622
|
-
while (
|
|
1623
|
-
var item_0 =
|
|
1624
|
-
dStr = dStr + substring(string, item_0.
|
|
1620
|
+
var _iterator__ex2g4s_0 = reg.f();
|
|
1621
|
+
while (_iterator__ex2g4s_0.g()) {
|
|
1622
|
+
var item_0 = _iterator__ex2g4s_0.h();
|
|
1623
|
+
dStr = dStr + substring(string, item_0.r6());
|
|
1625
1624
|
}
|
|
1626
1625
|
// Inline function 'kotlin.text.toRegex' call
|
|
1627
1626
|
var tmp$ret$9 = Regex_init_$Create$('[m]+');
|
|
1628
|
-
reg = toList(tmp$ret$9.
|
|
1627
|
+
reg = toList(tmp$ret$9.o6(tempPattern));
|
|
1629
1628
|
var mStr = '';
|
|
1630
|
-
var
|
|
1631
|
-
while (
|
|
1632
|
-
var item_1 =
|
|
1633
|
-
mStr = mStr + substring(string, item_1.
|
|
1629
|
+
var _iterator__ex2g4s_1 = reg.f();
|
|
1630
|
+
while (_iterator__ex2g4s_1.g()) {
|
|
1631
|
+
var item_1 = _iterator__ex2g4s_1.h();
|
|
1632
|
+
mStr = mStr + substring(string, item_1.r6());
|
|
1634
1633
|
}
|
|
1635
1634
|
// Inline function 'kotlin.text.toRegex' call
|
|
1636
1635
|
var tmp$ret$10 = Regex_init_$Create$('[S]+');
|
|
1637
|
-
reg = toList(tmp$ret$10.
|
|
1636
|
+
reg = toList(tmp$ret$10.o6(tempPattern));
|
|
1638
1637
|
var SStr = '';
|
|
1639
|
-
var
|
|
1640
|
-
while (
|
|
1641
|
-
var item_2 =
|
|
1642
|
-
SStr = SStr + substring(string, item_2.
|
|
1638
|
+
var _iterator__ex2g4s_2 = reg.f();
|
|
1639
|
+
while (_iterator__ex2g4s_2.g()) {
|
|
1640
|
+
var item_2 = _iterator__ex2g4s_2.h();
|
|
1641
|
+
SStr = SStr + substring(string, item_2.r6());
|
|
1643
1642
|
}
|
|
1644
1643
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1645
1644
|
var this_3 = SStr;
|
|
@@ -1647,12 +1646,12 @@
|
|
|
1647
1646
|
SStr = '0';
|
|
1648
1647
|
// Inline function 'kotlin.text.toRegex' call
|
|
1649
1648
|
var tmp$ret$12 = Regex_init_$Create$('[s]+');
|
|
1650
|
-
reg = toList(tmp$ret$12.
|
|
1649
|
+
reg = toList(tmp$ret$12.o6(tempPattern));
|
|
1651
1650
|
var sStr = '';
|
|
1652
|
-
var
|
|
1653
|
-
while (
|
|
1654
|
-
var item_3 =
|
|
1655
|
-
sStr = sStr + substring(string, item_3.
|
|
1651
|
+
var _iterator__ex2g4s_3 = reg.f();
|
|
1652
|
+
while (_iterator__ex2g4s_3.g()) {
|
|
1653
|
+
var item_3 = _iterator__ex2g4s_3.h();
|
|
1654
|
+
sStr = sStr + substring(string, item_3.r6());
|
|
1656
1655
|
}
|
|
1657
1656
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1658
1657
|
var this_4 = sStr;
|
|
@@ -1714,45 +1713,45 @@
|
|
|
1714
1713
|
this.minutes = minutes;
|
|
1715
1714
|
this.seconds = seconds;
|
|
1716
1715
|
}
|
|
1717
|
-
protoOf(DMS).
|
|
1716
|
+
protoOf(DMS).xa = function (_set____db54di) {
|
|
1718
1717
|
this.degrees = _set____db54di;
|
|
1719
1718
|
};
|
|
1720
|
-
protoOf(DMS).
|
|
1719
|
+
protoOf(DMS).ya = function () {
|
|
1721
1720
|
return this.degrees;
|
|
1722
1721
|
};
|
|
1723
|
-
protoOf(DMS).
|
|
1722
|
+
protoOf(DMS).za = function (_set____db54di) {
|
|
1724
1723
|
this.minutes = _set____db54di;
|
|
1725
1724
|
};
|
|
1726
|
-
protoOf(DMS).
|
|
1725
|
+
protoOf(DMS).ab = function () {
|
|
1727
1726
|
return this.minutes;
|
|
1728
1727
|
};
|
|
1729
|
-
protoOf(DMS).
|
|
1728
|
+
protoOf(DMS).bb = function (_set____db54di) {
|
|
1730
1729
|
this.seconds = _set____db54di;
|
|
1731
1730
|
};
|
|
1732
|
-
protoOf(DMS).
|
|
1731
|
+
protoOf(DMS).cb = function () {
|
|
1733
1732
|
return this.seconds;
|
|
1734
1733
|
};
|
|
1735
1734
|
protoOf(DMS).toString = function () {
|
|
1736
1735
|
var secondsStr = !contains(this.seconds.toString(), '.') ? '' + this.seconds + '.0' : this.seconds.toString();
|
|
1737
1736
|
return '' + this.degrees + '\xB0' + this.minutes + '\u2032' + secondsStr + '\u2033';
|
|
1738
1737
|
};
|
|
1739
|
-
protoOf(DMS).
|
|
1738
|
+
protoOf(DMS).ja = function () {
|
|
1740
1739
|
return this.degrees;
|
|
1741
1740
|
};
|
|
1742
|
-
protoOf(DMS).
|
|
1741
|
+
protoOf(DMS).ka = function () {
|
|
1743
1742
|
return this.minutes;
|
|
1744
1743
|
};
|
|
1745
|
-
protoOf(DMS).
|
|
1744
|
+
protoOf(DMS).db = function () {
|
|
1746
1745
|
return this.seconds;
|
|
1747
1746
|
};
|
|
1748
|
-
protoOf(DMS).
|
|
1747
|
+
protoOf(DMS).eb = function (degrees, minutes, seconds) {
|
|
1749
1748
|
return new DMS(degrees, minutes, seconds);
|
|
1750
1749
|
};
|
|
1751
1750
|
protoOf(DMS).copy = function (degrees, minutes, seconds, $super) {
|
|
1752
1751
|
degrees = degrees === VOID ? this.degrees : degrees;
|
|
1753
1752
|
minutes = minutes === VOID ? this.minutes : minutes;
|
|
1754
1753
|
seconds = seconds === VOID ? this.seconds : seconds;
|
|
1755
|
-
return this.
|
|
1754
|
+
return this.eb(degrees, minutes, seconds);
|
|
1756
1755
|
};
|
|
1757
1756
|
protoOf(DMS).hashCode = function () {
|
|
1758
1757
|
var result = this.degrees;
|
|
@@ -1782,41 +1781,41 @@
|
|
|
1782
1781
|
this.initialBearing = initialBearing;
|
|
1783
1782
|
this.finalBearing = finalBearing;
|
|
1784
1783
|
}
|
|
1785
|
-
protoOf(DistanceAndBearing).
|
|
1784
|
+
protoOf(DistanceAndBearing).fb = function (_set____db54di) {
|
|
1786
1785
|
this.distance = _set____db54di;
|
|
1787
1786
|
};
|
|
1788
|
-
protoOf(DistanceAndBearing).
|
|
1787
|
+
protoOf(DistanceAndBearing).gb = function () {
|
|
1789
1788
|
return this.distance;
|
|
1790
1789
|
};
|
|
1791
|
-
protoOf(DistanceAndBearing).
|
|
1790
|
+
protoOf(DistanceAndBearing).hb = function (_set____db54di) {
|
|
1792
1791
|
this.initialBearing = _set____db54di;
|
|
1793
1792
|
};
|
|
1794
|
-
protoOf(DistanceAndBearing).
|
|
1793
|
+
protoOf(DistanceAndBearing).ib = function () {
|
|
1795
1794
|
return this.initialBearing;
|
|
1796
1795
|
};
|
|
1797
|
-
protoOf(DistanceAndBearing).
|
|
1796
|
+
protoOf(DistanceAndBearing).jb = function (_set____db54di) {
|
|
1798
1797
|
this.finalBearing = _set____db54di;
|
|
1799
1798
|
};
|
|
1800
|
-
protoOf(DistanceAndBearing).
|
|
1799
|
+
protoOf(DistanceAndBearing).kb = function () {
|
|
1801
1800
|
return this.finalBearing;
|
|
1802
1801
|
};
|
|
1803
|
-
protoOf(DistanceAndBearing).
|
|
1802
|
+
protoOf(DistanceAndBearing).ja = function () {
|
|
1804
1803
|
return this.distance;
|
|
1805
1804
|
};
|
|
1806
|
-
protoOf(DistanceAndBearing).
|
|
1805
|
+
protoOf(DistanceAndBearing).ka = function () {
|
|
1807
1806
|
return this.initialBearing;
|
|
1808
1807
|
};
|
|
1809
|
-
protoOf(DistanceAndBearing).
|
|
1808
|
+
protoOf(DistanceAndBearing).db = function () {
|
|
1810
1809
|
return this.finalBearing;
|
|
1811
1810
|
};
|
|
1812
|
-
protoOf(DistanceAndBearing).
|
|
1811
|
+
protoOf(DistanceAndBearing).lb = function (distance, initialBearing, finalBearing) {
|
|
1813
1812
|
return new DistanceAndBearing(distance, initialBearing, finalBearing);
|
|
1814
1813
|
};
|
|
1815
1814
|
protoOf(DistanceAndBearing).copy = function (distance, initialBearing, finalBearing, $super) {
|
|
1816
1815
|
distance = distance === VOID ? this.distance : distance;
|
|
1817
1816
|
initialBearing = initialBearing === VOID ? this.initialBearing : initialBearing;
|
|
1818
1817
|
finalBearing = finalBearing === VOID ? this.finalBearing : finalBearing;
|
|
1819
|
-
return this.
|
|
1818
|
+
return this.lb(distance, initialBearing, finalBearing);
|
|
1820
1819
|
};
|
|
1821
1820
|
protoOf(DistanceAndBearing).toString = function () {
|
|
1822
1821
|
return 'DistanceAndBearing(distance=' + this.distance + ', initialBearing=' + this.initialBearing + ', finalBearing=' + this.finalBearing + ')';
|
|
@@ -1847,32 +1846,34 @@
|
|
|
1847
1846
|
var radLon2 = toRadians(point2.lng);
|
|
1848
1847
|
var radLat2 = toRadians(point2.lat);
|
|
1849
1848
|
var L = radLon2 - radLon1;
|
|
1849
|
+
var tmp = 1 - 0.003352810664747481;
|
|
1850
1850
|
// Inline function 'kotlin.math.tan' call
|
|
1851
|
-
var tanU1 =
|
|
1851
|
+
var tanU1 = tmp * Math.tan(radLat1);
|
|
1852
1852
|
// Inline function 'kotlin.math.sqrt' call
|
|
1853
1853
|
var x = 1 + tanU1 * tanU1;
|
|
1854
1854
|
var cosU1 = 1 / Math.sqrt(x);
|
|
1855
1855
|
var sinU1 = tanU1 * cosU1;
|
|
1856
|
+
var tmp_0 = 1 - 0.003352810664747481;
|
|
1856
1857
|
// Inline function 'kotlin.math.tan' call
|
|
1857
|
-
var tanU2 =
|
|
1858
|
+
var tanU2 = tmp_0 * Math.tan(radLat2);
|
|
1858
1859
|
// Inline function 'kotlin.math.sqrt' call
|
|
1859
1860
|
var x_0 = 1 + tanU2 * tanU2;
|
|
1860
1861
|
var cosU2 = 1 / Math.sqrt(x_0);
|
|
1861
1862
|
var sinU2 = tanU2 * cosU2;
|
|
1862
|
-
var
|
|
1863
|
+
var tmp_1;
|
|
1863
1864
|
// Inline function 'kotlin.math.abs' call
|
|
1864
|
-
if (Math.abs(L) >
|
|
1865
|
-
|
|
1865
|
+
if (Math.abs(L) > 3.141592653589793 / 2) {
|
|
1866
|
+
tmp_1 = true;
|
|
1866
1867
|
} else {
|
|
1867
1868
|
// Inline function 'kotlin.math.abs' call
|
|
1868
1869
|
var x_1 = radLat2 - radLat1;
|
|
1869
|
-
|
|
1870
|
+
tmp_1 = Math.abs(x_1) > 3.141592653589793 / 2;
|
|
1870
1871
|
}
|
|
1871
|
-
var antipodal =
|
|
1872
|
+
var antipodal = tmp_1;
|
|
1872
1873
|
var f9 = L;
|
|
1873
1874
|
var sinF9;
|
|
1874
1875
|
var cosF9;
|
|
1875
|
-
var fq = antipodal ?
|
|
1876
|
+
var fq = antipodal ? 3.141592653589793 : 0.0;
|
|
1876
1877
|
var sinFq = 0.0;
|
|
1877
1878
|
var cosFq = antipodal ? -1.0 : 1.0;
|
|
1878
1879
|
var sinSFqFa;
|
|
@@ -1904,64 +1905,64 @@
|
|
|
1904
1905
|
var sinFa = cosU1 * cosU2 * sinF9 / sinFq;
|
|
1905
1906
|
cosSFqFa = 1 - sinFa * sinFa;
|
|
1906
1907
|
cos2Fqm = !(cosSFqFa === 0.0) ? cosFq - 2 * sinU1 * sinU2 / cosSFqFa : 0.0;
|
|
1907
|
-
var C =
|
|
1908
|
+
var C = 0.003352810664747481 / 16 * cosSFqFa * (4 + 0.003352810664747481 * (4 - 3 * cosSFqFa));
|
|
1908
1909
|
f91 = f9;
|
|
1909
1910
|
f9 = L + (1 - C) * 0.003352810664747481 * sinFa * (fq + C * sinFq * (cos2Fqm + C * cosFq * (-1 + 2 * cos2Fqm * cos2Fqm)));
|
|
1910
|
-
var
|
|
1911
|
+
var tmp_2;
|
|
1911
1912
|
if (antipodal) {
|
|
1912
1913
|
// Inline function 'kotlin.math.abs' call
|
|
1913
1914
|
var x_7 = f9;
|
|
1914
|
-
|
|
1915
|
+
tmp_2 = Math.abs(x_7) - 3.141592653589793;
|
|
1915
1916
|
} else {
|
|
1916
1917
|
// Inline function 'kotlin.math.abs' call
|
|
1917
1918
|
var x_8 = f9;
|
|
1918
|
-
|
|
1919
|
+
tmp_2 = Math.abs(x_8);
|
|
1919
1920
|
}
|
|
1920
|
-
var iterationCheck =
|
|
1921
|
-
if (iterationCheck >
|
|
1921
|
+
var iterationCheck = tmp_2;
|
|
1922
|
+
if (iterationCheck > 3.141592653589793)
|
|
1922
1923
|
throw RuntimeException_init_$Create$('\u03BB > \u03C0');
|
|
1923
1924
|
}
|
|
1924
1925
|
while (false);
|
|
1925
|
-
var
|
|
1926
|
+
var tmp_3;
|
|
1926
1927
|
// Inline function 'kotlin.math.abs' call
|
|
1927
1928
|
var x_9 = f9 - f91;
|
|
1928
1929
|
if (Math.abs(x_9) > 1.0E-12) {
|
|
1929
1930
|
iterations = iterations + 1 | 0;
|
|
1930
|
-
|
|
1931
|
+
tmp_3 = iterations < 100;
|
|
1931
1932
|
} else {
|
|
1932
|
-
|
|
1933
|
+
tmp_3 = false;
|
|
1933
1934
|
}
|
|
1934
1935
|
}
|
|
1935
|
-
while (
|
|
1936
|
-
var uSq = cosSFqFa *
|
|
1936
|
+
while (tmp_3);
|
|
1937
|
+
var uSq = cosSFqFa * (6378137.0 * 6378137.0 - 6356752.314245 * 6356752.314245) / (6356752.314245 * 6356752.314245);
|
|
1937
1938
|
var A = 1 + uSq / 16384 * (4096 + uSq * (-768 + uSq * (320 - 175 * uSq)));
|
|
1938
1939
|
var B = uSq / 1024 * (256 + uSq * (-128 + uSq * (74 - 47 * uSq)));
|
|
1939
1940
|
var deltaFq = B * sinFq * (cos2Fqm + B / 4 * (cosFq * (-1 + 2 * cos2Fqm * cos2Fqm) - B / 6 * cos2Fqm * (-3 + 4 * sinFq * sinFq) * (-3 + 4 * cos2Fqm * cos2Fqm)));
|
|
1940
1941
|
var s = 6356752.314245 * A * (fq - deltaFq);
|
|
1941
|
-
var
|
|
1942
|
+
var tmp_4;
|
|
1942
1943
|
// Inline function 'kotlin.math.abs' call
|
|
1943
1944
|
var x_10 = sinSFqFa;
|
|
1944
1945
|
if (Math.abs(x_10) < 1.0E-12) {
|
|
1945
|
-
|
|
1946
|
+
tmp_4 = 0.0;
|
|
1946
1947
|
} else {
|
|
1947
1948
|
// Inline function 'kotlin.math.atan2' call
|
|
1948
1949
|
var y_0 = cosU2 * sinF9;
|
|
1949
1950
|
var x_11 = cosU1 * sinU2 - sinU1 * cosU2 * cosF9;
|
|
1950
|
-
|
|
1951
|
+
tmp_4 = Math.atan2(y_0, x_11);
|
|
1951
1952
|
}
|
|
1952
|
-
var alpha1 =
|
|
1953
|
-
var
|
|
1953
|
+
var alpha1 = tmp_4;
|
|
1954
|
+
var tmp_5;
|
|
1954
1955
|
// Inline function 'kotlin.math.abs' call
|
|
1955
1956
|
var x_12 = sinSFqFa;
|
|
1956
1957
|
if (Math.abs(x_12) < 1.0E-12) {
|
|
1957
|
-
|
|
1958
|
+
tmp_5 = 3.141592653589793;
|
|
1958
1959
|
} else {
|
|
1959
1960
|
// Inline function 'kotlin.math.atan2' call
|
|
1960
1961
|
var y_1 = cosU1 * sinF9;
|
|
1961
1962
|
var x_13 = -sinU1 * cosU2 + cosU1 * sinU2 * cosF9;
|
|
1962
|
-
|
|
1963
|
+
tmp_5 = Math.atan2(y_1, x_13);
|
|
1963
1964
|
}
|
|
1964
|
-
var alpha2 =
|
|
1965
|
+
var alpha2 = tmp_5;
|
|
1965
1966
|
return new DistanceAndBearing(s, toDegrees(alpha1), toDegrees(alpha2));
|
|
1966
1967
|
}
|
|
1967
1968
|
function getDistanceOn2Points(point1, point2, highPrecision) {
|
|
@@ -1978,21 +1979,22 @@
|
|
|
1978
1979
|
// Inline function 'kotlin.math.sin' call
|
|
1979
1980
|
var x_0 = b / 2;
|
|
1980
1981
|
var sb2 = Math.sin(x_0);
|
|
1982
|
+
var tmp = 2 * 6378137.0;
|
|
1981
1983
|
// Inline function 'kotlin.math.asin' call
|
|
1982
1984
|
// Inline function 'kotlin.math.sqrt' call
|
|
1983
|
-
var
|
|
1985
|
+
var tmp_0 = sa2 * sa2;
|
|
1984
1986
|
// Inline function 'kotlin.math.cos' call
|
|
1985
|
-
var
|
|
1987
|
+
var tmp_1 = Math.cos(lat1Rad);
|
|
1986
1988
|
// Inline function 'kotlin.math.cos' call
|
|
1987
|
-
var x_1 =
|
|
1989
|
+
var x_1 = tmp_0 + tmp_1 * Math.cos(lat2Rad) * sb2 * sb2;
|
|
1988
1990
|
var x_2 = Math.sqrt(x_1);
|
|
1989
|
-
return
|
|
1991
|
+
return tmp * Math.asin(x_2);
|
|
1990
1992
|
}
|
|
1991
1993
|
function toRadians(degree) {
|
|
1992
|
-
return degree *
|
|
1994
|
+
return degree * 3.141592653589793 / 180;
|
|
1993
1995
|
}
|
|
1994
1996
|
function toDegrees(radian) {
|
|
1995
|
-
return radian * 180 /
|
|
1997
|
+
return radian * 180 / 3.141592653589793;
|
|
1996
1998
|
}
|
|
1997
1999
|
function isPointInCircle(point, center, radius) {
|
|
1998
2000
|
return getDistanceOn2Points(point, center) <= radius;
|
|
@@ -2001,7 +2003,7 @@
|
|
|
2001
2003
|
highPrecision = highPrecision === VOID ? false : highPrecision;
|
|
2002
2004
|
if (highPrecision) {
|
|
2003
2005
|
var bearing = getDistanceAndBearing(point1, point2).finalBearing;
|
|
2004
|
-
return bearing < 0
|
|
2006
|
+
return bearing < 0 ? bearing + 360 : bearing === 180.0 ? 0.0 : bearing;
|
|
2005
2007
|
}
|
|
2006
2008
|
var lat1 = toRadians(point1.lat);
|
|
2007
2009
|
var lon1 = toRadians(point1.lng);
|
|
@@ -2029,9 +2031,9 @@
|
|
|
2029
2031
|
return angle;
|
|
2030
2032
|
}
|
|
2031
2033
|
function getPointOn2Points(point1, point2, present) {
|
|
2032
|
-
if (present <= 0
|
|
2034
|
+
if (present <= 0)
|
|
2033
2035
|
return point1.copy();
|
|
2034
|
-
if (present >= 1
|
|
2036
|
+
if (present >= 1)
|
|
2035
2037
|
return point2.copy();
|
|
2036
2038
|
var distanceAndBearing = getDistanceAndBearing(point1, point2);
|
|
2037
2039
|
var newDistance = distanceAndBearing.distance * present;
|
|
@@ -2075,8 +2077,8 @@
|
|
|
2075
2077
|
var x = newDistance / distance;
|
|
2076
2078
|
var tmp$ret$1 = Math.floor(x);
|
|
2077
2079
|
var totalCount = numberToInt(tmp$ret$1);
|
|
2078
|
-
if (totalCount > result.
|
|
2079
|
-
var count = totalCount - result.
|
|
2080
|
+
if (totalCount > result.i()) {
|
|
2081
|
+
var count = totalCount - result.i() | 0;
|
|
2080
2082
|
var hasHandleDistance = lastDistance;
|
|
2081
2083
|
var noHandleDistance = curDistance;
|
|
2082
2084
|
var p0 = lastPoint;
|
|
@@ -2088,7 +2090,7 @@
|
|
|
2088
2090
|
var lessDistance = distance - hasHandleDistance % distance;
|
|
2089
2091
|
var present = lessDistance / noHandleDistance;
|
|
2090
2092
|
p0 = getPointOn2Points(p0, item, present);
|
|
2091
|
-
result.
|
|
2093
|
+
result.d(p0);
|
|
2092
2094
|
hasHandleDistance = hasHandleDistance + lessDistance;
|
|
2093
2095
|
noHandleDistance = noHandleDistance - lessDistance;
|
|
2094
2096
|
}
|
|
@@ -2097,8 +2099,8 @@
|
|
|
2097
2099
|
totalDistance = newDistance;
|
|
2098
2100
|
}
|
|
2099
2101
|
}
|
|
2100
|
-
result.
|
|
2101
|
-
result.
|
|
2102
|
+
result.h3(0, points[0]);
|
|
2103
|
+
result.d(points[points.length - 1 | 0]);
|
|
2102
2104
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2103
2105
|
return copyToArray(result);
|
|
2104
2106
|
}
|
|
@@ -2119,15 +2121,15 @@
|
|
|
2119
2121
|
var i = inductionVariable;
|
|
2120
2122
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2121
2123
|
if (i < 2) {
|
|
2122
|
-
result.
|
|
2124
|
+
result.d(points[i]);
|
|
2123
2125
|
continue $l$loop;
|
|
2124
2126
|
}
|
|
2125
2127
|
var c = points[i];
|
|
2126
2128
|
var distance = getDistanceOn2Points(a, b) + getDistanceOn2Points(b, c);
|
|
2127
2129
|
var tmp;
|
|
2128
|
-
if (distance <= 10
|
|
2130
|
+
if (distance <= 10) {
|
|
2129
2131
|
tmp = 90;
|
|
2130
|
-
} else if (distance > 50
|
|
2132
|
+
} else if (distance > 50) {
|
|
2131
2133
|
tmp = 5;
|
|
2132
2134
|
} else {
|
|
2133
2135
|
// Inline function 'kotlin.math.max' call
|
|
@@ -2144,7 +2146,7 @@
|
|
|
2144
2146
|
} else {
|
|
2145
2147
|
a = b;
|
|
2146
2148
|
}
|
|
2147
|
-
result.
|
|
2149
|
+
result.d(c);
|
|
2148
2150
|
b = c;
|
|
2149
2151
|
}
|
|
2150
2152
|
while (inductionVariable <= last);
|
|
@@ -2161,8 +2163,9 @@
|
|
|
2161
2163
|
var sinRadAngle = Math.sin(radAngle);
|
|
2162
2164
|
// Inline function 'kotlin.math.cos' call
|
|
2163
2165
|
var cosRadAngle = Math.cos(radAngle);
|
|
2166
|
+
var tmp = 1 - 0.003352810664747481;
|
|
2164
2167
|
// Inline function 'kotlin.math.tan' call
|
|
2165
|
-
var tanU1 =
|
|
2168
|
+
var tanU1 = tmp * Math.tan(radLat);
|
|
2166
2169
|
// Inline function 'kotlin.math.sqrt' call
|
|
2167
2170
|
var x = 1 + tanU1 * tanU1;
|
|
2168
2171
|
var cosU1 = 1 / Math.sqrt(x);
|
|
@@ -2171,7 +2174,7 @@
|
|
|
2171
2174
|
var sigma1 = Math.atan2(tanU1, cosRadAngle);
|
|
2172
2175
|
var sinAlpha = cosU1 * sinRadAngle;
|
|
2173
2176
|
var cosSqAlpha = 1 - sinAlpha * sinAlpha;
|
|
2174
|
-
var uSq = cosSqAlpha *
|
|
2177
|
+
var uSq = cosSqAlpha * (6378137.0 * 6378137.0 - 6356752.314245 * 6356752.314245) / (6356752.314245 * 6356752.314245);
|
|
2175
2178
|
var A = 1 + uSq / 16384 * (4096 + uSq * (-768 + uSq * (320 - 175 * uSq)));
|
|
2176
2179
|
var B = uSq / 1024 * (256 + uSq * (-128 + uSq * (74 - 47 * uSq)));
|
|
2177
2180
|
var sigma = distance / (6356752.314245 * A);
|
|
@@ -2196,38 +2199,39 @@
|
|
|
2196
2199
|
sigma = distance / (6356752.314245 * A) + deltaSigma;
|
|
2197
2200
|
}
|
|
2198
2201
|
while (false);
|
|
2199
|
-
var
|
|
2202
|
+
var tmp_0;
|
|
2200
2203
|
// Inline function 'kotlin.math.abs' call
|
|
2201
2204
|
var x_3 = sigma - sigmaP;
|
|
2202
2205
|
if (Math.abs(x_3) > 1.0E-12) {
|
|
2203
2206
|
iterations = iterations + 1;
|
|
2204
|
-
|
|
2207
|
+
tmp_0 = iterations < 100;
|
|
2205
2208
|
} else {
|
|
2206
|
-
|
|
2209
|
+
tmp_0 = false;
|
|
2207
2210
|
}
|
|
2208
2211
|
}
|
|
2209
|
-
while (
|
|
2210
|
-
if (iterations >= 100
|
|
2212
|
+
while (tmp_0);
|
|
2213
|
+
if (iterations >= 100)
|
|
2211
2214
|
throw RuntimeException_init_$Create$('Vincenty formula failed to converge');
|
|
2212
2215
|
var x_4 = sinU1 * sinSigma - cosU1 * cosSigma * cosRadAngle;
|
|
2213
2216
|
// Inline function 'kotlin.math.atan2' call
|
|
2214
2217
|
var y = sinU1 * cosSigma + cosU1 * sinSigma * cosRadAngle;
|
|
2218
|
+
var tmp_1 = 1 - 0.003352810664747481;
|
|
2215
2219
|
// Inline function 'kotlin.math.sqrt' call
|
|
2216
2220
|
var x_5 = sinAlpha * sinAlpha + x_4 * x_4;
|
|
2217
|
-
var x_6 =
|
|
2221
|
+
var x_6 = tmp_1 * Math.sqrt(x_5);
|
|
2218
2222
|
var lat2 = Math.atan2(y, x_6);
|
|
2219
2223
|
// Inline function 'kotlin.math.atan2' call
|
|
2220
2224
|
var y_0 = sinSigma * sinRadAngle;
|
|
2221
2225
|
var x_7 = cosU1 * cosSigma - sinU1 * sinSigma * cosRadAngle;
|
|
2222
2226
|
var lambda = Math.atan2(y_0, x_7);
|
|
2223
|
-
var C =
|
|
2227
|
+
var C = 0.003352810664747481 / 16 * cosSqAlpha * (4 + 0.003352810664747481 * (4 - 3 * cosSqAlpha));
|
|
2224
2228
|
var L = lambda - (1 - C) * 0.003352810664747481 * sinAlpha * (sigma + C * sinSigma * (cos2SigmaM + C * cosSigma * (-1 + 2 * cos2SigmaM * cos2SigmaM)));
|
|
2225
2229
|
var lng2 = radLng + L;
|
|
2226
2230
|
return new Coordinate(toDegrees(lat2), toDegrees(lng2));
|
|
2227
2231
|
}
|
|
2228
2232
|
function getRandomPoint(point, radius) {
|
|
2229
|
-
var randomAngle = Default_getInstance().
|
|
2230
|
-
var randomDistance = Default_getInstance().
|
|
2233
|
+
var randomAngle = Default_getInstance().h8() * 3.141592653589793 * 2;
|
|
2234
|
+
var randomDistance = Default_getInstance().h8() * radius;
|
|
2231
2235
|
return getPointByBasePoint(point, randomDistance, randomAngle);
|
|
2232
2236
|
}
|
|
2233
2237
|
function getNearPartsOnLine(point, line, offset) {
|
|
@@ -2243,28 +2247,28 @@
|
|
|
2243
2247
|
var i = inductionVariable;
|
|
2244
2248
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2245
2249
|
var distance = getDistanceOn2Points(point, line[i]) + getDistanceOn2Points(point, line[i + 1 | 0]);
|
|
2246
|
-
if (ls.
|
|
2247
|
-
ls.
|
|
2248
|
-
|
|
2250
|
+
if (ls.w())
|
|
2251
|
+
ls.d(to(i, distance));
|
|
2252
|
+
else if (distance > ls.j(0).s9_1 + offset)
|
|
2249
2253
|
continue $l$loop;
|
|
2250
|
-
else if (distance < ls.
|
|
2251
|
-
ls.
|
|
2252
|
-
ls.
|
|
2254
|
+
else if (distance < ls.j(0).s9_1 - offset) {
|
|
2255
|
+
ls.i3();
|
|
2256
|
+
ls.d(to(i, distance));
|
|
2253
2257
|
} else {
|
|
2254
2258
|
var inductionVariable_0 = 0;
|
|
2255
|
-
var last_0 = ls.
|
|
2259
|
+
var last_0 = ls.i();
|
|
2256
2260
|
if (inductionVariable_0 < last_0)
|
|
2257
2261
|
$l$loop_0: do {
|
|
2258
2262
|
var j = inductionVariable_0;
|
|
2259
2263
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2260
|
-
if (distance < ls.
|
|
2261
|
-
ls.
|
|
2264
|
+
if (distance < ls.j(j).s9_1) {
|
|
2265
|
+
ls.h3(j, to(i, distance));
|
|
2262
2266
|
break $l$loop_0;
|
|
2263
2267
|
}
|
|
2264
2268
|
}
|
|
2265
2269
|
while (inductionVariable_0 < last_0);
|
|
2266
|
-
if (ls.
|
|
2267
|
-
ls.
|
|
2270
|
+
if (ls.i() > 3) {
|
|
2271
|
+
ls.b3(3);
|
|
2268
2272
|
}
|
|
2269
2273
|
}
|
|
2270
2274
|
}
|
|
@@ -2273,12 +2277,12 @@
|
|
|
2273
2277
|
// Inline function 'kotlin.collections.map' call
|
|
2274
2278
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2275
2279
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(ls, 10));
|
|
2276
|
-
var tmp0_iterator = ls.
|
|
2277
|
-
while (tmp0_iterator.
|
|
2278
|
-
var item = tmp0_iterator.
|
|
2280
|
+
var tmp0_iterator = ls.f();
|
|
2281
|
+
while (tmp0_iterator.g()) {
|
|
2282
|
+
var item = tmp0_iterator.h();
|
|
2279
2283
|
// Inline function 'com.d10ng.common.coordinate.getNearPartsOnLine.<anonymous>' call
|
|
2280
|
-
var tmp$ret$1 = item.
|
|
2281
|
-
destination.
|
|
2284
|
+
var tmp$ret$1 = item.r9_1;
|
|
2285
|
+
destination.d(tmp$ret$1);
|
|
2282
2286
|
}
|
|
2283
2287
|
return copyToArray(destination);
|
|
2284
2288
|
}
|
|
@@ -2332,7 +2336,7 @@
|
|
|
2332
2336
|
var newPoint = compressLine[compressLine.length - 1 | 0];
|
|
2333
2337
|
var nearParts = getNearPartsOnLine(newPoint, targetLine, offset);
|
|
2334
2338
|
var tmp;
|
|
2335
|
-
if (compressLine.length === 1
|
|
2339
|
+
if (compressLine.length === 1 || nearParts.length === 1) {
|
|
2336
2340
|
tmp = 0;
|
|
2337
2341
|
} else {
|
|
2338
2342
|
var lastPoint = compressLine[compressLine.length - 2 | 0];
|
|
@@ -2347,17 +2351,17 @@
|
|
|
2347
2351
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2348
2352
|
// Inline function 'com.d10ng.common.coordinate.getProjectionLineOnLineWithLine.<anonymous>' call
|
|
2349
2353
|
var tmp$ret$4 = getAngleOn2Points(targetLine[item], targetLine[item + 1 | 0]);
|
|
2350
|
-
destination.
|
|
2354
|
+
destination.d(tmp$ret$4);
|
|
2351
2355
|
}
|
|
2352
2356
|
var nearAngles = destination;
|
|
2353
2357
|
var tmp$ret$7;
|
|
2354
2358
|
$l$block: {
|
|
2355
2359
|
// Inline function 'kotlin.collections.minBy' call
|
|
2356
|
-
var iterator = nearAngles.
|
|
2357
|
-
if (!iterator.
|
|
2360
|
+
var iterator = nearAngles.f();
|
|
2361
|
+
if (!iterator.g())
|
|
2358
2362
|
throw NoSuchElementException_init_$Create$();
|
|
2359
|
-
var minElem = iterator.
|
|
2360
|
-
if (!iterator.
|
|
2363
|
+
var minElem = iterator.h();
|
|
2364
|
+
if (!iterator.g()) {
|
|
2361
2365
|
tmp$ret$7 = minElem;
|
|
2362
2366
|
break $l$block;
|
|
2363
2367
|
}
|
|
@@ -2366,7 +2370,7 @@
|
|
|
2366
2370
|
var x = minElem - newAngle;
|
|
2367
2371
|
var minValue = Math.abs(x);
|
|
2368
2372
|
do {
|
|
2369
|
-
var e = iterator.
|
|
2373
|
+
var e = iterator.h();
|
|
2370
2374
|
// Inline function 'com.d10ng.common.coordinate.getProjectionLineOnLineWithLine.<anonymous>' call
|
|
2371
2375
|
// Inline function 'kotlin.math.abs' call
|
|
2372
2376
|
var x_0 = e - newAngle;
|
|
@@ -2376,11 +2380,11 @@
|
|
|
2376
2380
|
minValue = v;
|
|
2377
2381
|
}
|
|
2378
2382
|
}
|
|
2379
|
-
while (iterator.
|
|
2383
|
+
while (iterator.g());
|
|
2380
2384
|
tmp$ret$7 = minElem;
|
|
2381
2385
|
}
|
|
2382
2386
|
var nearAngle = tmp$ret$7;
|
|
2383
|
-
tmp = nearAngles.
|
|
2387
|
+
tmp = nearAngles.m1(nearAngle);
|
|
2384
2388
|
}
|
|
2385
2389
|
var nearIndex = tmp;
|
|
2386
2390
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2417,16 +2421,16 @@
|
|
|
2417
2421
|
isNeedU = isNeedU === VOID ? true : isNeedU;
|
|
2418
2422
|
var builder = StringBuilder_init_$Create$();
|
|
2419
2423
|
// Inline function 'kotlin.collections.iterator' call
|
|
2420
|
-
var
|
|
2421
|
-
while (
|
|
2422
|
-
var c =
|
|
2424
|
+
var _iterator__ex2g4s = iterator(_this__u8e3s4);
|
|
2425
|
+
while (_iterator__ex2g4s.g()) {
|
|
2426
|
+
var c = _iterator__ex2g4s.h().x_1;
|
|
2423
2427
|
// Inline function 'kotlin.code' call
|
|
2424
2428
|
var tmp$ret$1 = Char__toInt_impl_vasixd(c);
|
|
2425
2429
|
var item = toString_1(tmp$ret$1, 16);
|
|
2426
2430
|
if (isNeedU) {
|
|
2427
|
-
builder.
|
|
2431
|
+
builder.f5('\\u');
|
|
2428
2432
|
}
|
|
2429
|
-
builder.
|
|
2433
|
+
builder.f5(padStart(item, 4, _Char___init__impl__6a9atx(48)));
|
|
2430
2434
|
}
|
|
2431
2435
|
return builder.toString();
|
|
2432
2436
|
}
|
|
@@ -2438,7 +2442,7 @@
|
|
|
2438
2442
|
// Inline function 'kotlin.text.toRegex' call
|
|
2439
2443
|
var this_0 = '[A-Fa-f0-9]+';
|
|
2440
2444
|
var regex = Regex_init_$Create$(this_0);
|
|
2441
|
-
var isMatch = regex.
|
|
2445
|
+
var isMatch = regex.l6(value);
|
|
2442
2446
|
if (!isMatch)
|
|
2443
2447
|
return '';
|
|
2444
2448
|
var builder = StringBuilder_init_$Create$();
|
|
@@ -2460,10 +2464,10 @@
|
|
|
2460
2464
|
var startIndex = i;
|
|
2461
2465
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2462
2466
|
var item = this_1.substring(startIndex, end);
|
|
2463
|
-
var
|
|
2464
|
-
var data =
|
|
2467
|
+
var tmp0_elvis_lhs = toIntOrNull(item, 16);
|
|
2468
|
+
var data = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
2465
2469
|
if (!(data === 0)) {
|
|
2466
|
-
builder.
|
|
2470
|
+
builder.g5(numberToChar(data));
|
|
2467
2471
|
}
|
|
2468
2472
|
}
|
|
2469
2473
|
}
|
|
@@ -2477,18 +2481,18 @@
|
|
|
2477
2481
|
// Inline function 'kotlin.text.toRegex' call
|
|
2478
2482
|
var this_0 = '[\\u0020-\\u007e]+';
|
|
2479
2483
|
var regex = Regex_init_$Create$(this_0);
|
|
2480
|
-
var isMatch = regex.
|
|
2484
|
+
var isMatch = regex.l6(_this__u8e3s4);
|
|
2481
2485
|
if (!isMatch)
|
|
2482
2486
|
return '';
|
|
2483
2487
|
var builder = StringBuilder_init_$Create$();
|
|
2484
2488
|
// Inline function 'kotlin.collections.iterator' call
|
|
2485
|
-
var
|
|
2486
|
-
while (
|
|
2487
|
-
var c =
|
|
2489
|
+
var _iterator__ex2g4s = iterator(_this__u8e3s4);
|
|
2490
|
+
while (_iterator__ex2g4s.g()) {
|
|
2491
|
+
var c = _iterator__ex2g4s.h().x_1;
|
|
2488
2492
|
// Inline function 'kotlin.code' call
|
|
2489
2493
|
var tmp$ret$2 = Char__toInt_impl_vasixd(c);
|
|
2490
2494
|
var item = toString_1(tmp$ret$2, 16);
|
|
2491
|
-
builder.
|
|
2495
|
+
builder.f5(padStart(item, 2, _Char___init__impl__6a9atx(48)));
|
|
2492
2496
|
}
|
|
2493
2497
|
return builder.toString();
|
|
2494
2498
|
}
|
|
@@ -2500,7 +2504,7 @@
|
|
|
2500
2504
|
// Inline function 'kotlin.text.toRegex' call
|
|
2501
2505
|
var this_0 = '[A-Fa-f0-9]+';
|
|
2502
2506
|
var regex = Regex_init_$Create$(this_0);
|
|
2503
|
-
var isMatch = regex.
|
|
2507
|
+
var isMatch = regex.l6(value);
|
|
2504
2508
|
if (!isMatch)
|
|
2505
2509
|
return '';
|
|
2506
2510
|
var builder = StringBuilder_init_$Create$();
|
|
@@ -2521,7 +2525,7 @@
|
|
|
2521
2525
|
var endIndex = i + 2 | 0;
|
|
2522
2526
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2523
2527
|
var temp = this_1.substring(startIndex, endIndex);
|
|
2524
|
-
builder.
|
|
2528
|
+
builder.g5(numberToChar(toInt(temp, 16)));
|
|
2525
2529
|
}
|
|
2526
2530
|
while (!(i === last));
|
|
2527
2531
|
return builder.toString();
|
|
@@ -2551,10 +2555,10 @@
|
|
|
2551
2555
|
return numberToLong(_this__u8e3s4);
|
|
2552
2556
|
}
|
|
2553
2557
|
function encodeGBKDo(_this__u8e3s4) {
|
|
2554
|
-
return GBKHelper_getInstance().
|
|
2558
|
+
return GBKHelper_getInstance().nb(_this__u8e3s4);
|
|
2555
2559
|
}
|
|
2556
2560
|
function decodeGBKDo(_this__u8e3s4) {
|
|
2557
|
-
return GBKHelper_getInstance().
|
|
2561
|
+
return GBKHelper_getInstance().ob(_this__u8e3s4);
|
|
2558
2562
|
}
|
|
2559
2563
|
function getCharGBKByteArray($this, char) {
|
|
2560
2564
|
// Inline function 'kotlin.code' call
|
|
@@ -2566,7 +2570,7 @@
|
|
|
2566
2570
|
} else {
|
|
2567
2571
|
// Inline function 'org.khronos.webgl.get' call
|
|
2568
2572
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2569
|
-
var gbk = $this.
|
|
2573
|
+
var gbk = $this.mb_1[code];
|
|
2570
2574
|
// Inline function 'kotlin.byteArrayOf' call
|
|
2571
2575
|
tmp = new Int8Array([toByte(gbk & 255), toByte(gbk >> 8)]);
|
|
2572
2576
|
}
|
|
@@ -2574,7 +2578,7 @@
|
|
|
2574
2578
|
}
|
|
2575
2579
|
function GBKHelper() {
|
|
2576
2580
|
GBKHelper_instance = this;
|
|
2577
|
-
this.
|
|
2581
|
+
this.mb_1 = new Uint16Array(65536);
|
|
2578
2582
|
// Inline function 'kotlin.arrayOf' call
|
|
2579
2583
|
// Inline function 'kotlin.arrayOf' call
|
|
2580
2584
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2631,10 +2635,10 @@
|
|
|
2631
2635
|
var b1 = inductionVariable_1;
|
|
2632
2636
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
2633
2637
|
// Inline function 'org.khronos.webgl.set' call
|
|
2634
|
-
var
|
|
2635
|
-
i =
|
|
2638
|
+
var _unary__edvuaz = i;
|
|
2639
|
+
i = _unary__edvuaz + 1 | 0;
|
|
2636
2640
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2637
|
-
codes[
|
|
2641
|
+
codes[_unary__edvuaz] = toShort(b2 << 8 | b1);
|
|
2638
2642
|
}
|
|
2639
2643
|
while (!(b1 === last_1));
|
|
2640
2644
|
}
|
|
@@ -2651,7 +2655,7 @@
|
|
|
2651
2655
|
var j = inductionVariable_2;
|
|
2652
2656
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
2653
2657
|
// Inline function 'org.khronos.webgl.set' call
|
|
2654
|
-
var this_0 = this.
|
|
2658
|
+
var this_0 = this.mb_1;
|
|
2655
2659
|
// Inline function 'kotlin.code' call
|
|
2656
2660
|
var this_1 = charSequenceGet(str, j);
|
|
2657
2661
|
// Inline function 'org.khronos.webgl.get' call
|
|
@@ -2661,7 +2665,7 @@
|
|
|
2661
2665
|
}
|
|
2662
2666
|
while (inductionVariable_2 <= last_2);
|
|
2663
2667
|
}
|
|
2664
|
-
protoOf(GBKHelper).
|
|
2668
|
+
protoOf(GBKHelper).nb = function (str) {
|
|
2665
2669
|
// Inline function 'kotlin.byteArrayOf' call
|
|
2666
2670
|
var bytes = new Int8Array([]);
|
|
2667
2671
|
var indexedObject = toCharArray(str);
|
|
@@ -2677,7 +2681,7 @@
|
|
|
2677
2681
|
}
|
|
2678
2682
|
return bytes;
|
|
2679
2683
|
};
|
|
2680
|
-
protoOf(GBKHelper).
|
|
2684
|
+
protoOf(GBKHelper).ob = function (byteArray) {
|
|
2681
2685
|
var decoder = new TextDecoder('gbk');
|
|
2682
2686
|
var tmp = decoder.decode(new Uint8Array(toTypedArray(byteArray)));
|
|
2683
2687
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
|
|
@@ -2694,10 +2698,10 @@
|
|
|
2694
2698
|
return joinToString_0(PinyinPro.pinyin(_this__u8e3s4, {type: 'array', toneType: 'none'}), separator).toUpperCase();
|
|
2695
2699
|
}
|
|
2696
2700
|
//region block: post-declaration
|
|
2697
|
-
defineProp(protoOf(ChecksumType), 'name', protoOf(ChecksumType).
|
|
2698
|
-
defineProp(protoOf(ChecksumType), 'ordinal', protoOf(ChecksumType).
|
|
2699
|
-
defineProp(protoOf(CoordinateSystemType), 'name', protoOf(CoordinateSystemType).
|
|
2700
|
-
defineProp(protoOf(CoordinateSystemType), 'ordinal', protoOf(CoordinateSystemType).
|
|
2701
|
+
defineProp(protoOf(ChecksumType), 'name', protoOf(ChecksumType).s1);
|
|
2702
|
+
defineProp(protoOf(ChecksumType), 'ordinal', protoOf(ChecksumType).t1);
|
|
2703
|
+
defineProp(protoOf(CoordinateSystemType), 'name', protoOf(CoordinateSystemType).s1);
|
|
2704
|
+
defineProp(protoOf(CoordinateSystemType), 'ordinal', protoOf(CoordinateSystemType).t1);
|
|
2701
2705
|
//endregion
|
|
2702
2706
|
//region block: init
|
|
2703
2707
|
Companion_instance = new Companion();
|