@cruglobal/godtools-shared 1.0.2-SNAPSHOT.1545 → 1.0.2-SNAPSHOT.1548

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-js.js CHANGED
@@ -1,13 +1,146 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports);
6
- else
7
- root['kotlin-js'] = factory(typeof this['kotlin-js'] === 'undefined' ? {} : this['kotlin-js']);
8
- }(this, function (_) {
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
+ else {
7
+ if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'kotlin-js'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlin-js'.");
9
+ }
10
+ root['kotlin-js'] = factory(typeof this['kotlin-js'] === 'undefined' ? {} : this['kotlin-js'], this['kotlin-kotlin-stdlib']);
11
+ }
12
+ }(this, function (_, kotlin_kotlin) {
9
13
  'use strict';
14
+ //region block: imports
15
+ var constructor = (class IteratorYieldResult {
16
+ static [Symbol.hasInstance](instance) {
17
+ return instance && (typeof instance === 'object') && (instance.done === false)
18
+ }
19
+ }.prototype).constructor;
20
+ var iterator = kotlin_kotlin.$_$.m7;
21
+ var CoroutineImpl = kotlin_kotlin.$_$.o5;
22
+ var Unit_instance = kotlin_kotlin.$_$.o2;
23
+ var protoOf = kotlin_kotlin.$_$.t6;
24
+ var THROW_CCE = kotlin_kotlin.$_$.i9;
25
+ var SequenceScope = kotlin_kotlin.$_$.l7;
26
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a5;
27
+ var classMeta = kotlin_kotlin.$_$.y5;
28
+ var setMetadataFor = kotlin_kotlin.$_$.u6;
29
+ var VOID = kotlin_kotlin.$_$.d;
30
+ //endregion
10
31
  //region block: pre-declaration
32
+ setMetadataFor(iteratorFor$slambda, 'iteratorFor$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
33
+ //endregion
34
+ function get_POW() {
35
+ _init_properties_BigInt_kt__agomkx();
36
+ return POW;
37
+ }
38
+ var POW;
39
+ function get_n(_this__u8e3s4) {
40
+ _init_properties_BigInt_kt__agomkx();
41
+ return BigInt(_this__u8e3s4);
42
+ }
43
+ var properties_initialized_BigInt_kt_nhzooh;
44
+ function _init_properties_BigInt_kt__agomkx() {
45
+ if (!properties_initialized_BigInt_kt_nhzooh) {
46
+ properties_initialized_BigInt_kt_nhzooh = true;
47
+ POW = Function('base', 'exponent', 'return base ** exponent');
48
+ }
49
+ }
50
+ function invoke(_this__u8e3s4, p1, p2) {
51
+ // Inline function 'kotlin.js.asDynamic' call
52
+ return _this__u8e3s4(p1, p2);
53
+ }
54
+ function iteratorFor(source) {
55
+ // Inline function 'js.iterable.JsIteratorLike.iterator' call
56
+ var this_0 = source[Symbol.iterator]();
57
+ return iteratorFor_0(this_0);
58
+ }
59
+ function iteratorFor_0(source) {
60
+ return iterator(iteratorFor$slambda_0(source, null));
61
+ }
62
+ function iteratorFor$slambda($source, resultContinuation) {
63
+ this.n1s_1 = $source;
64
+ CoroutineImpl.call(this, resultContinuation);
65
+ }
66
+ protoOf(iteratorFor$slambda).s1s = function ($this$iterator, $completion) {
67
+ var tmp = this.t1s($this$iterator, $completion);
68
+ tmp.vb_1 = Unit_instance;
69
+ tmp.wb_1 = null;
70
+ return tmp.qc();
71
+ };
72
+ protoOf(iteratorFor$slambda).fd = function (p1, $completion) {
73
+ return this.s1s(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
74
+ };
75
+ protoOf(iteratorFor$slambda).qc = function () {
76
+ var suspendResult = this.vb_1;
77
+ $sm: do
78
+ try {
79
+ var tmp = this.tb_1;
80
+ switch (tmp) {
81
+ case 0:
82
+ this.ub_1 = 5;
83
+ this.tb_1 = 1;
84
+ continue $sm;
85
+ case 1:
86
+ var tmp_0 = this;
87
+ var tmp_1 = this.n1s_1.next();
88
+ tmp_0.p1s_1 = tmp_1 instanceof constructor ? tmp_1 : null;
89
+ if (this.p1s_1 == null) {
90
+ this.tb_1 = 4;
91
+ var tmp_2 = this;
92
+ continue $sm;
93
+ } else {
94
+ this.q1s_1 = this.p1s_1;
95
+ this.tb_1 = 2;
96
+ continue $sm;
97
+ }
98
+
99
+ case 2:
100
+ this.r1s_1 = this.q1s_1;
101
+ this.tb_1 = 3;
102
+ suspendResult = this.o1s_1.ye(this.r1s_1.value, this);
103
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
104
+ return suspendResult;
105
+ }
106
+
107
+ continue $sm;
108
+ case 3:
109
+ this.tb_1 = 1;
110
+ continue $sm;
111
+ case 4:
112
+ return Unit_instance;
113
+ case 5:
114
+ throw this.wb_1;
115
+ }
116
+ } catch ($p) {
117
+ var e = $p;
118
+ if (this.ub_1 === 5) {
119
+ throw e;
120
+ } else {
121
+ this.tb_1 = this.ub_1;
122
+ this.wb_1 = e;
123
+ }
124
+ }
125
+ while (true);
126
+ };
127
+ protoOf(iteratorFor$slambda).t1s = function ($this$iterator, completion) {
128
+ var i = new iteratorFor$slambda(this.n1s_1, completion);
129
+ i.o1s_1 = $this$iterator;
130
+ return i;
131
+ };
132
+ function iteratorFor$slambda_0($source, resultContinuation) {
133
+ var i = new iteratorFor$slambda($source, resultContinuation);
134
+ var l = function ($this$iterator, $completion) {
135
+ return i.s1s($this$iterator, $completion);
136
+ };
137
+ l.$arity = 1;
138
+ return l;
139
+ }
140
+ //region block: exports
141
+ _.$_$ = _.$_$ || {};
142
+ _.$_$.a = iteratorFor_0;
143
+ _.$_$.b = iteratorFor;
11
144
  //endregion
12
145
  return _;
13
146
  }));
package/kotlin-js.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../../../../../../../../../Users/leonid.khachaturov/code/kotlin-wrappers-new/kotlin-js/src/jsMain/kotlin/js/core/BigInt.kt","../../../../../../../../../../../../../Users/leonid.khachaturov/code/kotlin-wrappers-new/kotlin-js/src/jsMain/kotlin/js/function/JsFunction.invoke.kt","src/jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt","../../../../../../../../../../../../../Users/leonid.khachaturov/code/kotlin-wrappers-new/kotlin-js/src/jsMain/kotlin/js/iterable/JsIterable.iterator.kt","../../../../../../../../../../../../../Users/leonid.khachaturov/code/kotlin-wrappers-new/kotlin-js/src/jsMain/kotlin/js/iterable/JsIteratorLike.kt","../../../../../../../../../../../../../Users/leonid.khachaturov/code/kotlin-wrappers-new/kotlin-js/src/jsMain/kotlin/js/iterable/JsIteratorLike.iterator.kt"],"sourcesContent":[null,null,null,null,null,null],"names":["<get-POW>","<get-n>","<this>","<init properties BigInt.kt>","invoke","p1","p2","iteratorFor","source","$source","$this$iterator","$completion","doResume","iteratorFor$slambda","iteratorFor$slambda$lambda"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAeSA,CAAAA,EAAA;A;IAAA,U;EAIT,C;;gBAyEIC,CADOC,aACPD,EAAQ;A;IAAY,OAAZ,OAAO,aAAP,C;EAAW,C;;6CA5FvBE,CAAAA,E;;;YAemB,SACd,MADc,EAEd,UAFc,EAGd,yBAHc,C;;G;iBCDHC,CAAgBF,a,EAC5BG,E,EACAC,EAFYF,EAIZ;A;IAAmB,OCPhB,aDOH,CAAY,EAAZ,EAAgB,EAAhB,C;EAAkB,C;sBEbbG,CACLC,MADKD,EAGL;A;iBCLyC,cACnC,QADmC,G;IDKL,OCMhC,cAAY,MAAZ,C;EDN+B,C;wBEL9BA,CACLC,MADKD,EAGL;A,IAOC,OAPD,SAAS,mCAAT,C;EAOA,C;+BATAE,O;;;;8CAESL,CAAAM,c,EAAAC,WAAAP,EACL;A;;;;EAKa,C;8CAZrB,E,EAAAO,W;;;6CAMaC,CAAAA,EAAA;A;;MAAA,I;;;;;;;;;wBAEmB,KAAP,KAAO,O;YAAP,yD;YAAA,uB;;;;;gCAAA,K;;;;;;YAAb,uB;;4BAGA,mBAAM,KAAN,CAAa,KAAb,O;;;;;;;;;;YAER,oB;;;;;;;;;;;;;;EAAA,C;+CAPS,c,EAQ43F,U;;;;;gCAR53FC,CAFTJ,O,oBAESI,E;;qBAAAC,CAAAJ,c,EAAAC,WAAAG,E;;K;;;G;;;;;;;;"}