@aardarch/aardink-web 0.5.0
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/JETBRAINS_MONO_OFL.txt +93 -0
- package/LICENSE +178 -0
- package/README.md +86 -0
- package/index.d.ts +75 -0
- package/index.js +92 -0
- package/kotlin/aardink-web.import-object.mjs +582 -0
- package/kotlin/aardink-web.js-builtins.mjs +52 -0
- package/kotlin/aardink-web.mjs +98 -0
- package/kotlin/aardink-web.wasm +0 -0
- package/kotlin/composeResources/com.aardarch.aardink.web.res/font/jetbrains_mono_regular.ttf +0 -0
- package/kotlin/js-reexport-symbols.mjs +999 -0
- package/kotlin/skiko.mjs +1118 -0
- package/kotlin/skiko.wasm +0 -0
- package/kotlin/skikod8.mjs +1118 -0
- package/package.json +27 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
|
|
2
|
+
import * as Li9za2lrby5tanM from './skiko.mjs';
|
|
3
|
+
import * as QGpzLWpvZGEvY29yZQ from '@js-joda/core';
|
|
4
|
+
import * as d2FzbTpqcy1zdHJpbmc from './aardink-web.js-builtins.mjs';
|
|
5
|
+
|
|
6
|
+
const wasmJsTag = WebAssembly.JSTag;
|
|
7
|
+
const wasmTag = wasmJsTag ?? new WebAssembly.Tag({ parameters: ['externref'] });
|
|
8
|
+
|
|
9
|
+
// Placed here to give access to it from externals (js_code)
|
|
10
|
+
let wasmExports;
|
|
11
|
+
|
|
12
|
+
if (typeof process !== 'undefined' && process.release.name === 'node') {
|
|
13
|
+
function doNotUseRequire() {
|
|
14
|
+
throw new Error("Do not use top-level require. Prefer to use JS import or define your own require instead. Read more: https://kotl.in/r9txlt")
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var require = new Proxy((function() {}), {
|
|
18
|
+
apply(target, thisArg, argumentsList) {
|
|
19
|
+
if (globalThis.require != null) {
|
|
20
|
+
return globalThis.require.apply(thisArg, argumentsList);
|
|
21
|
+
} else {
|
|
22
|
+
doNotUseRequire();
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
get(target, prop, receiver) {
|
|
26
|
+
if (globalThis.require != null) {
|
|
27
|
+
return Reflect.get(globalThis.require, prop);
|
|
28
|
+
} else {
|
|
29
|
+
doNotUseRequire();
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function setWasmExports(exports) {
|
|
36
|
+
wasmExports = exports;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const _ref_Li9za2lrby5tanM_ = Li9za2lrby5tanM;
|
|
40
|
+
const _ref_Li9za2lrby5tanM_c2tpa29BcGk = Li9za2lrby5tanM.skikoApi;
|
|
41
|
+
const _ref_QGpzLWpvZGEvY29yZQ_ = QGpzLWpvZGEvY29yZQ;
|
|
42
|
+
|
|
43
|
+
const cachedJsObjects = new WeakMap();
|
|
44
|
+
function getCachedJsObject(ref, ifNotCached) {
|
|
45
|
+
if (typeof ref !== 'object' && typeof ref !== 'function') return ifNotCached;
|
|
46
|
+
const cached = cachedJsObjects.get(ref);
|
|
47
|
+
if (cached !== void 0) return cached;
|
|
48
|
+
cachedJsObjects.set(ref, ifNotCached);
|
|
49
|
+
return ifNotCached;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const js_code = {
|
|
53
|
+
'kotlin.createJsError' : (message, cause) => new Error(message, { cause }),
|
|
54
|
+
'kotlin.wasm.internal.jsThrow' : wasmTag === wasmJsTag ? (e) => { throw e; } : () => {},
|
|
55
|
+
'kotlin.wasm.internal.getJsEmptyString' : () => '',
|
|
56
|
+
'kotlin.wasm.internal.externrefToDouble' : (ref) => Number(ref),
|
|
57
|
+
'kotlin.wasm.internal.externrefToInt' : (ref) => Number(ref),
|
|
58
|
+
'kotlin.wasm.internal.intToExternref' : (x) => x,
|
|
59
|
+
'kotlin.wasm.internal.externrefToString' : (ref) => String(ref),
|
|
60
|
+
'kotlin.wasm.internal.externrefEquals' : (lhs, rhs) => lhs === rhs,
|
|
61
|
+
'kotlin.wasm.internal.externrefHashCode' :
|
|
62
|
+
(() => {
|
|
63
|
+
const dataView = new DataView(new ArrayBuffer(8));
|
|
64
|
+
function numberHashCode(obj) {
|
|
65
|
+
if ((obj | 0) === obj) {
|
|
66
|
+
return obj | 0;
|
|
67
|
+
} else {
|
|
68
|
+
dataView.setFloat64(0, obj, true);
|
|
69
|
+
return (dataView.getInt32(0, true) * 31 | 0) + dataView.getInt32(4, true) | 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const hashCodes = new WeakMap();
|
|
74
|
+
function getObjectHashCode(obj) {
|
|
75
|
+
const res = hashCodes.get(obj);
|
|
76
|
+
if (res === undefined) {
|
|
77
|
+
const POW_2_32 = 4294967296;
|
|
78
|
+
const hash = (Math.random() * POW_2_32) | 0;
|
|
79
|
+
hashCodes.set(obj, hash);
|
|
80
|
+
return hash;
|
|
81
|
+
}
|
|
82
|
+
return res;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function getStringHashCode(str) {
|
|
86
|
+
var hash = 0;
|
|
87
|
+
for (var i = 0; i < str.length; i++) {
|
|
88
|
+
var code = str.charCodeAt(i);
|
|
89
|
+
hash = (hash * 31 + code) | 0;
|
|
90
|
+
}
|
|
91
|
+
return hash;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return (obj) => {
|
|
95
|
+
if (obj == null) {
|
|
96
|
+
return 0;
|
|
97
|
+
}
|
|
98
|
+
switch (typeof obj) {
|
|
99
|
+
case "object":
|
|
100
|
+
case "function":
|
|
101
|
+
return getObjectHashCode(obj);
|
|
102
|
+
case "number":
|
|
103
|
+
return numberHashCode(obj);
|
|
104
|
+
case "boolean":
|
|
105
|
+
return obj ? 1231 : 1237;
|
|
106
|
+
default:
|
|
107
|
+
return getStringHashCode(String(obj));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
})(),
|
|
111
|
+
'kotlin.wasm.internal.isNullish' : (ref) => ref == null,
|
|
112
|
+
'kotlin.wasm.internal.getJsTrue' : () => true,
|
|
113
|
+
'kotlin.wasm.internal.getJsFalse' : () => false,
|
|
114
|
+
'kotlin.wasm.internal.kotlinUIntToJsNumberUnsafe' : (x) => x >>> 0,
|
|
115
|
+
'kotlin.wasm.internal.kotlinULongToJsBigIntUnsafe' : (x) => x & 0xFFFFFFFFFFFFFFFFn,
|
|
116
|
+
'kotlin.wasm.internal.newJsArray' : () => [],
|
|
117
|
+
'kotlin.wasm.internal.jsArrayPush' : (array, element) => { array.push(element); },
|
|
118
|
+
'kotlin.wasm.internal.getCachedJsObject_$external_fun' : (p0, p1) => getCachedJsObject(p0, p1),
|
|
119
|
+
'kotlin.wasm.internal.utoa32_$external_fun' : (p0) => String(p0),
|
|
120
|
+
'kotlin.wasm.internal.utoa64_$external_fun' : (p0) => String(p0),
|
|
121
|
+
'kotlin.wasm.internal.itoa32_$external_fun' : (p0) => String(p0),
|
|
122
|
+
'kotlin.wasm.internal.itoa64_$external_fun' : (p0) => String(p0),
|
|
123
|
+
'kotlin.js.jsCatch' : (f) => {
|
|
124
|
+
let result = null;
|
|
125
|
+
try {
|
|
126
|
+
f();
|
|
127
|
+
} catch (e) {
|
|
128
|
+
result = e;
|
|
129
|
+
}
|
|
130
|
+
return result;
|
|
131
|
+
},
|
|
132
|
+
'kotlin.js.__convertKotlinClosureToJsClosure_0' : (f, trampoline) => getCachedJsObject(f, () => trampoline(f, )),
|
|
133
|
+
'kotlin.js.jsThrow' : (e) => { throw e; },
|
|
134
|
+
'kotlin.io.printlnImpl' : (message) => console.log(message),
|
|
135
|
+
'kotlin.js.jsArrayGet' : (array, index) => array[index],
|
|
136
|
+
'kotlin.js.jsArraySet' : (array, index, value) => { array[index] = value },
|
|
137
|
+
'kotlin.js.JsArray_$external_fun' : () => new Array(),
|
|
138
|
+
'kotlin.js.length_$external_prop_getter' : (_this) => _this.length,
|
|
139
|
+
'kotlin.js.stackPlaceHolder_js_code' : () => (''),
|
|
140
|
+
'kotlin.js.message_$external_prop_getter' : (_this) => _this.message,
|
|
141
|
+
'kotlin.js.name_$external_prop_setter' : (_this, v) => _this.name = v,
|
|
142
|
+
'kotlin.js.stack_$external_prop_getter' : (_this) => _this.stack,
|
|
143
|
+
'kotlin.js.kotlinException_$external_prop_getter' : (_this) => _this.kotlinException,
|
|
144
|
+
'kotlin.js.kotlinException_$external_prop_setter' : (_this, v) => _this.kotlinException = v,
|
|
145
|
+
'kotlin.js.JsError_$external_class_instanceof' : (x) => x instanceof Error,
|
|
146
|
+
'kotlin.js.JsString_$external_class_instanceof' : (x) => typeof x === 'string',
|
|
147
|
+
'kotlin.js.JsString_$external_class_get' : () => JsString,
|
|
148
|
+
'kotlin.js.then_$external_fun' : (_this, p0) => _this.then(p0),
|
|
149
|
+
'kotlin.js.__convertKotlinClosureToJsClosure_1' : (f, trampoline) => getCachedJsObject(f, (p0) => trampoline(f, p0)),
|
|
150
|
+
'kotlin.js.then_$external_fun_1' : (_this, p0, p1) => _this.then(p0, p1),
|
|
151
|
+
'kotlin.js.catch_$external_fun' : (_this, p0) => _this.catch(p0),
|
|
152
|
+
'kotlin.random.initialSeed' : () => ((Math.random() * Math.pow(2, 32)) | 0),
|
|
153
|
+
'kotlin.wasm.internal.getJsClassName' : (jsKlass) => jsKlass.name,
|
|
154
|
+
'kotlin.wasm.internal.instanceOf' : (ref, jsKlass) => ref instanceof jsKlass,
|
|
155
|
+
'kotlin.wasm.internal.getConstructor' : (obj) => obj.constructor,
|
|
156
|
+
'kotlin.time.tryGetPerformance' : () => typeof globalThis !== 'undefined' && typeof globalThis.performance !== 'undefined' ? globalThis.performance : null,
|
|
157
|
+
'kotlin.time.getPerformanceNow' : (performance) => performance.now(),
|
|
158
|
+
'kotlin.time.dateNow' : () => Date.now(),
|
|
159
|
+
'kotlinx.coroutines.tryGetProcess' : () => (typeof(process) !== 'undefined' && typeof(process.nextTick) === 'function') ? process : null,
|
|
160
|
+
'kotlinx.coroutines.tryGetWindow' : () => (typeof(window) !== 'undefined' && window != null && typeof(window.addEventListener) === 'function') ? window : null,
|
|
161
|
+
'kotlinx.coroutines.nextTick_$external_fun' : (_this, p0) => _this.nextTick(p0),
|
|
162
|
+
'kotlinx.coroutines.createScheduleMessagePoster' : (process) => () => Promise.resolve(0).then(process),
|
|
163
|
+
'kotlinx.coroutines.__callJsClosure_(()->Unit)' : (f, ) => f(),
|
|
164
|
+
'kotlinx.coroutines.createRescheduleMessagePoster' : (window) => () => window.postMessage('dispatchCoroutine', '*'),
|
|
165
|
+
'kotlinx.coroutines.subscribeToWindowMessages' : (window, process) => {
|
|
166
|
+
const handler = (event) => {
|
|
167
|
+
if (event.source == window && event.data == 'dispatchCoroutine') {
|
|
168
|
+
event.stopPropagation();
|
|
169
|
+
process();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
window.addEventListener('message', handler, true);
|
|
173
|
+
},
|
|
174
|
+
'kotlinx.coroutines.setTimeout' : (window, handler, timeout) => window.setTimeout(handler, timeout),
|
|
175
|
+
'kotlinx.coroutines.clearTimeout' : (handle) => { if (typeof clearTimeout !== 'undefined') clearTimeout(handle); },
|
|
176
|
+
'kotlinx.coroutines.clearTimeout_$external_fun' : (_this, p0) => _this.clearTimeout(p0),
|
|
177
|
+
'kotlinx.coroutines.setTimeout_$external_fun' : (p0, p1) => setTimeout(p0, p1),
|
|
178
|
+
'kotlinx.coroutines.internal.throwAsyncJsError' : (message, className, stack) => {
|
|
179
|
+
var error = new Error();
|
|
180
|
+
error.message = message;
|
|
181
|
+
error.name = className;
|
|
182
|
+
error.stack = stack;
|
|
183
|
+
if (typeof globalThis.reportError === 'function') {
|
|
184
|
+
// Up-to-date browsers and some non-browser JS runtimes (Deno, Bun)
|
|
185
|
+
globalThis.reportError(error);
|
|
186
|
+
} else {
|
|
187
|
+
// Fallback for old browsers (pre-2022), Node.js
|
|
188
|
+
setTimeout(function () { throw error }, 0);
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
'org.khronos.webgl.getMethodImplForInt8Array' : (obj, index) => obj[index],
|
|
192
|
+
'org.khronos.webgl.byteLength_$external_prop_getter' : (_this) => _this.byteLength,
|
|
193
|
+
'org.khronos.webgl.Int8Array_$external_fun' : (p0, p1, p2, isDefault0, isDefault1) => new Int8Array(p0, isDefault0 ? undefined : p1, isDefault1 ? undefined : p2, ),
|
|
194
|
+
'org.khronos.webgl.length_$external_prop_getter' : (_this) => _this.length,
|
|
195
|
+
'org.w3c.dom.clipboard.clipboardData_$external_prop_getter' : (_this) => _this.clipboardData,
|
|
196
|
+
'org.w3c.dom.clipboard.ClipboardEvent_$external_class_instanceof' : (x) => x instanceof ClipboardEvent,
|
|
197
|
+
'org.w3c.dom.css.cursor_$external_prop_setter' : (_this, v) => _this.cursor = v,
|
|
198
|
+
'org.w3c.dom.css.display_$external_prop_setter' : (_this, v) => _this.display = v,
|
|
199
|
+
'org.w3c.dom.css.fontSize_$external_prop_getter' : (_this) => _this.fontSize,
|
|
200
|
+
'org.w3c.dom.css.fontSize_$external_prop_setter' : (_this, v) => _this.fontSize = v,
|
|
201
|
+
'org.w3c.dom.css.height_$external_prop_setter' : (_this, v) => _this.height = v,
|
|
202
|
+
'org.w3c.dom.css.left_$external_prop_setter' : (_this, v) => _this.left = v,
|
|
203
|
+
'org.w3c.dom.css.opacity_$external_prop_setter' : (_this, v) => _this.opacity = v,
|
|
204
|
+
'org.w3c.dom.css.outline_$external_prop_setter' : (_this, v) => _this.outline = v,
|
|
205
|
+
'org.w3c.dom.css.position_$external_prop_setter' : (_this, v) => _this.position = v,
|
|
206
|
+
'org.w3c.dom.css.top_$external_prop_setter' : (_this, v) => _this.top = v,
|
|
207
|
+
'org.w3c.dom.css.whiteSpace_$external_prop_setter' : (_this, v) => _this.whiteSpace = v,
|
|
208
|
+
'org.w3c.dom.css.width_$external_prop_setter' : (_this, v) => _this.width = v,
|
|
209
|
+
'org.w3c.dom.css.setProperty_$external_fun' : (_this, p0, p1, p2, isDefault0) => _this.setProperty(p0, p1, isDefault0 ? undefined : p2, ),
|
|
210
|
+
'org.w3c.dom.css.style_$external_prop_getter' : (_this) => _this.style,
|
|
211
|
+
'org.w3c.dom.events.type_$external_prop_getter' : (_this) => _this.type,
|
|
212
|
+
'org.w3c.dom.events.target_$external_prop_getter' : (_this) => _this.target,
|
|
213
|
+
'org.w3c.dom.events.cancelable_$external_prop_getter' : (_this) => _this.cancelable,
|
|
214
|
+
'org.w3c.dom.events.timeStamp_$external_prop_getter' : (_this) => _this.timeStamp,
|
|
215
|
+
'org.w3c.dom.events.preventDefault_$external_fun' : (_this, ) => _this.preventDefault(),
|
|
216
|
+
'org.w3c.dom.events.Event_$external_class_instanceof' : (x) => x instanceof Event,
|
|
217
|
+
'org.w3c.dom.events.key_$external_prop_getter' : (_this) => _this.key,
|
|
218
|
+
'org.w3c.dom.events.code_$external_prop_getter' : (_this) => _this.code,
|
|
219
|
+
'org.w3c.dom.events.ctrlKey_$external_prop_getter' : (_this) => _this.ctrlKey,
|
|
220
|
+
'org.w3c.dom.events.shiftKey_$external_prop_getter' : (_this) => _this.shiftKey,
|
|
221
|
+
'org.w3c.dom.events.altKey_$external_prop_getter' : (_this) => _this.altKey,
|
|
222
|
+
'org.w3c.dom.events.metaKey_$external_prop_getter' : (_this) => _this.metaKey,
|
|
223
|
+
'org.w3c.dom.events.repeat_$external_prop_getter' : (_this) => _this.repeat,
|
|
224
|
+
'org.w3c.dom.events.isComposing_$external_prop_getter' : (_this) => _this.isComposing,
|
|
225
|
+
'org.w3c.dom.events.keyCode_$external_prop_getter' : (_this) => _this.keyCode,
|
|
226
|
+
'org.w3c.dom.events.KeyboardEvent_$external_class_instanceof' : (x) => x instanceof KeyboardEvent,
|
|
227
|
+
'org.w3c.dom.events.KeyboardEvent_$external_class_get' : () => KeyboardEvent,
|
|
228
|
+
'org.w3c.dom.events.deltaX_$external_prop_getter' : (_this) => _this.deltaX,
|
|
229
|
+
'org.w3c.dom.events.deltaY_$external_prop_getter' : (_this) => _this.deltaY,
|
|
230
|
+
'org.w3c.dom.events.deltaMode_$external_prop_getter' : (_this) => _this.deltaMode,
|
|
231
|
+
'org.w3c.dom.events.DOM_DELTA_PIXEL_$external_prop_getter' : (_this) => _this.DOM_DELTA_PIXEL,
|
|
232
|
+
'org.w3c.dom.events.DOM_DELTA_LINE_$external_prop_getter' : (_this) => _this.DOM_DELTA_LINE,
|
|
233
|
+
'org.w3c.dom.events.DOM_DELTA_PAGE_$external_prop_getter' : (_this) => _this.DOM_DELTA_PAGE,
|
|
234
|
+
'org.w3c.dom.events.Companion_$external_object_getInstance' : () => WheelEvent,
|
|
235
|
+
'org.w3c.dom.events.WheelEvent_$external_class_instanceof' : (x) => x instanceof WheelEvent,
|
|
236
|
+
'org.w3c.dom.events.addEventListener_$external_fun' : (_this, p0, p1, p2) => _this.addEventListener(p0, p1, p2),
|
|
237
|
+
'org.w3c.dom.events.addEventListener_$external_fun_1' : (_this, p0, p1) => _this.addEventListener(p0, p1),
|
|
238
|
+
'org.w3c.dom.events.addEventListener_$external_fun_2' : (_this, p0, p1) => _this.addEventListener(p0, p1),
|
|
239
|
+
'org.w3c.dom.events.removeEventListener_$external_fun' : (_this, p0, p1) => _this.removeEventListener(p0, p1),
|
|
240
|
+
'org.w3c.dom.events.removeEventListener_$external_fun_1' : (_this, p0, p1) => _this.removeEventListener(p0, p1),
|
|
241
|
+
'org.w3c.dom.events.clientX_$external_prop_getter' : (_this) => _this.clientX,
|
|
242
|
+
'org.w3c.dom.events.clientY_$external_prop_getter' : (_this) => _this.clientY,
|
|
243
|
+
'org.w3c.dom.events.ctrlKey_$external_prop_getter_1' : (_this) => _this.ctrlKey,
|
|
244
|
+
'org.w3c.dom.events.shiftKey_$external_prop_getter_1' : (_this) => _this.shiftKey,
|
|
245
|
+
'org.w3c.dom.events.altKey_$external_prop_getter_1' : (_this) => _this.altKey,
|
|
246
|
+
'org.w3c.dom.events.metaKey_$external_prop_getter_1' : (_this) => _this.metaKey,
|
|
247
|
+
'org.w3c.dom.events.button_$external_prop_getter' : (_this) => _this.button,
|
|
248
|
+
'org.w3c.dom.events.buttons_$external_prop_getter' : (_this) => _this.buttons,
|
|
249
|
+
'org.w3c.dom.events.offsetX_$external_prop_getter' : (_this) => _this.offsetX,
|
|
250
|
+
'org.w3c.dom.events.offsetY_$external_prop_getter' : (_this) => _this.offsetY,
|
|
251
|
+
'org.w3c.dom.events.isComposing_$external_prop_getter_1' : (_this) => _this.isComposing,
|
|
252
|
+
'org.w3c.dom.events.InputEvent_$external_class_instanceof' : (x) => x instanceof InputEvent,
|
|
253
|
+
'org.w3c.dom.events.InputEvent_$external_class_get' : () => InputEvent,
|
|
254
|
+
'org.w3c.dom.events.data_$external_prop_getter' : (_this) => _this.data,
|
|
255
|
+
'org.w3c.dom.events.CompositionEvent_$external_class_instanceof' : (x) => x instanceof CompositionEvent,
|
|
256
|
+
'org.w3c.dom.events.CompositionEvent_$external_class_get' : () => CompositionEvent,
|
|
257
|
+
'org.w3c.dom.ShadowRootInit' : (mode) => ({ mode: mode }),
|
|
258
|
+
'org.w3c.dom.AddEventListenerOptions_js_code' : (passive, once, capture) => ({ passive: passive, once: once, capture: capture }),
|
|
259
|
+
'org.w3c.dom.maxTouchPoints_$external_prop_getter' : (_this) => _this.maxTouchPoints,
|
|
260
|
+
'org.w3c.dom.location_$external_prop_getter' : (_this) => _this.location,
|
|
261
|
+
'org.w3c.dom.navigator_$external_prop_getter' : (_this) => _this.navigator,
|
|
262
|
+
'org.w3c.dom.devicePixelRatio_$external_prop_getter' : (_this) => _this.devicePixelRatio,
|
|
263
|
+
'org.w3c.dom.open_$external_fun' : (_this, p0, p1, p2, isDefault0, isDefault1, isDefault2) => _this.open(isDefault0 ? undefined : p0, isDefault1 ? undefined : p1, isDefault2 ? undefined : p2, ),
|
|
264
|
+
'org.w3c.dom.requestAnimationFrame_$external_fun' : (_this, p0) => _this.requestAnimationFrame(p0),
|
|
265
|
+
'org.w3c.dom.matchMedia_$external_fun' : (_this, p0) => _this.matchMedia(p0),
|
|
266
|
+
'org.w3c.dom.getComputedStyle_$external_fun' : (_this, p0, p1, isDefault0) => _this.getComputedStyle(p0, isDefault0 ? undefined : p1, ),
|
|
267
|
+
'org.w3c.dom.matches_$external_prop_getter' : (_this) => _this.matches,
|
|
268
|
+
'org.w3c.dom.addListener_$external_fun' : (_this, p0) => _this.addListener(p0),
|
|
269
|
+
'org.w3c.dom.MediaQueryList_$external_class_instanceof' : (x) => x instanceof MediaQueryList,
|
|
270
|
+
'org.w3c.dom.MediaQueryList_$external_class_get' : () => MediaQueryList,
|
|
271
|
+
'org.w3c.dom.protocol_$external_prop_getter' : (_this) => _this.protocol,
|
|
272
|
+
'org.w3c.dom.tabIndex_$external_prop_setter' : (_this, v) => _this.tabIndex = v,
|
|
273
|
+
'org.w3c.dom.innerText_$external_prop_setter' : (_this, v) => _this.innerText = v,
|
|
274
|
+
'org.w3c.dom.click_$external_fun' : (_this, ) => _this.click(),
|
|
275
|
+
'org.w3c.dom.focus_$external_fun' : (_this, ) => _this.focus(),
|
|
276
|
+
'org.w3c.dom.blur_$external_fun' : (_this, ) => _this.blur(),
|
|
277
|
+
'org.w3c.dom.HTMLElement_$external_class_instanceof' : (x) => x instanceof HTMLElement,
|
|
278
|
+
'org.w3c.dom.HTMLElement_$external_class_get' : () => HTMLElement,
|
|
279
|
+
'org.w3c.dom.dropEffect_$external_prop_setter' : (_this, v) => _this.dropEffect = v,
|
|
280
|
+
'org.w3c.dom.setDragImage_$external_fun' : (_this, p0, p1, p2) => _this.setDragImage(p0, p1, p2),
|
|
281
|
+
'org.w3c.dom.getData_$external_fun' : (_this, p0) => _this.getData(p0),
|
|
282
|
+
'org.w3c.dom.setData_$external_fun' : (_this, p0, p1) => _this.setData(p0, p1),
|
|
283
|
+
'org.w3c.dom.body_$external_prop_getter' : (_this) => _this.body,
|
|
284
|
+
'org.w3c.dom.activeElement_$external_prop_getter' : (_this) => _this.activeElement,
|
|
285
|
+
'org.w3c.dom.createElement_$external_fun' : (_this, p0, p1, isDefault0) => _this.createElement(p0, isDefault0 ? undefined : p1, ),
|
|
286
|
+
'org.w3c.dom.hasFocus_$external_fun' : (_this, ) => _this.hasFocus(),
|
|
287
|
+
'org.w3c.dom.getElementById_$external_fun' : (_this, p0) => _this.getElementById(p0),
|
|
288
|
+
'org.w3c.dom.id_$external_prop_getter' : (_this) => _this.id,
|
|
289
|
+
'org.w3c.dom.id_$external_prop_setter' : (_this, v) => _this.id = v,
|
|
290
|
+
'org.w3c.dom.classList_$external_prop_getter' : (_this) => _this.classList,
|
|
291
|
+
'org.w3c.dom.shadowRoot_$external_prop_getter' : (_this) => _this.shadowRoot,
|
|
292
|
+
'org.w3c.dom.clientWidth_$external_prop_getter' : (_this) => _this.clientWidth,
|
|
293
|
+
'org.w3c.dom.clientHeight_$external_prop_getter' : (_this) => _this.clientHeight,
|
|
294
|
+
'org.w3c.dom.setAttribute_$external_fun' : (_this, p0, p1) => _this.setAttribute(p0, p1),
|
|
295
|
+
'org.w3c.dom.attachShadow_$external_fun' : (_this, p0) => _this.attachShadow(p0),
|
|
296
|
+
'org.w3c.dom.getBoundingClientRect_$external_fun' : (_this, ) => _this.getBoundingClientRect(),
|
|
297
|
+
'org.w3c.dom.isConnected_$external_prop_getter' : (_this) => _this.isConnected,
|
|
298
|
+
'org.w3c.dom.firstChild_$external_prop_getter' : (_this) => _this.firstChild,
|
|
299
|
+
'org.w3c.dom.textContent_$external_prop_setter' : (_this, v) => _this.textContent = v,
|
|
300
|
+
'org.w3c.dom.hasChildNodes_$external_fun' : (_this, ) => _this.hasChildNodes(),
|
|
301
|
+
'org.w3c.dom.appendChild_$external_fun' : (_this, p0) => _this.appendChild(p0),
|
|
302
|
+
'org.w3c.dom.removeChild_$external_fun' : (_this, p0) => _this.removeChild(p0),
|
|
303
|
+
'org.w3c.dom.width_$external_prop_getter' : (_this) => _this.width,
|
|
304
|
+
'org.w3c.dom.width_$external_prop_setter' : (_this, v) => _this.width = v,
|
|
305
|
+
'org.w3c.dom.height_$external_prop_getter' : (_this) => _this.height,
|
|
306
|
+
'org.w3c.dom.height_$external_prop_setter' : (_this, v) => _this.height = v,
|
|
307
|
+
'org.w3c.dom.HTMLCanvasElement_$external_class_instanceof' : (x) => x instanceof HTMLCanvasElement,
|
|
308
|
+
'org.w3c.dom.HTMLCanvasElement_$external_class_get' : () => HTMLCanvasElement,
|
|
309
|
+
'org.w3c.dom.HTMLDivElement_$external_class_instanceof' : (x) => x instanceof HTMLDivElement,
|
|
310
|
+
'org.w3c.dom.HTMLDivElement_$external_class_get' : () => HTMLDivElement,
|
|
311
|
+
'org.w3c.dom.HTMLTextAreaElement_$external_class_instanceof' : (x) => x instanceof HTMLTextAreaElement,
|
|
312
|
+
'org.w3c.dom.HTMLTextAreaElement_$external_class_get' : () => HTMLTextAreaElement,
|
|
313
|
+
'org.w3c.dom.matches_$external_prop_getter_1' : (_this) => _this.matches,
|
|
314
|
+
'org.w3c.dom.MediaQueryListEvent_$external_class_instanceof' : (x) => x instanceof MediaQueryListEvent,
|
|
315
|
+
'org.w3c.dom.MediaQueryListEvent_$external_class_get' : () => MediaQueryListEvent,
|
|
316
|
+
'org.w3c.dom.dataTransfer_$external_prop_getter' : (_this) => _this.dataTransfer,
|
|
317
|
+
'org.w3c.dom.DragEvent_$external_class_instanceof' : (x) => x instanceof DragEvent,
|
|
318
|
+
'org.w3c.dom.DragEvent_$external_class_get' : () => DragEvent,
|
|
319
|
+
'org.w3c.dom.add_$external_fun' : (_this, p0) => _this.add(...p0),
|
|
320
|
+
'org.w3c.dom.platform_$external_prop_getter' : (_this) => _this.platform,
|
|
321
|
+
'org.w3c.dom.userAgent_$external_prop_getter' : (_this) => _this.userAgent,
|
|
322
|
+
'org.w3c.dom.language_$external_prop_getter' : (_this) => _this.language,
|
|
323
|
+
'org.w3c.dom.caches_$external_prop_getter' : (_this) => _this.caches,
|
|
324
|
+
'org.w3c.dom.fetch_$external_fun' : (_this, p0, p1, isDefault0) => _this.fetch(p0, isDefault0 ? undefined : p1, ),
|
|
325
|
+
'org.w3c.dom.top_$external_prop_getter' : (_this) => _this.top,
|
|
326
|
+
'org.w3c.dom.left_$external_prop_getter' : (_this) => _this.left,
|
|
327
|
+
'org.w3c.dom.remove_$external_fun' : (_this, ) => _this.remove(),
|
|
328
|
+
'org.w3c.dom.Companion_$external_object_getInstance' : () => ({}),
|
|
329
|
+
'org.w3c.dom.value_$external_prop_getter' : (_this) => _this.value,
|
|
330
|
+
'org.w3c.dom.value_$external_prop_setter' : (_this, v) => _this.value = v,
|
|
331
|
+
'org.w3c.dom.add_$external_fun_1' : (_this, p0) => _this.add(p0),
|
|
332
|
+
'org.w3c.dom.HTMLSelectElement_$external_class_instanceof' : (x) => x instanceof HTMLSelectElement,
|
|
333
|
+
'org.w3c.dom.HTMLSelectElement_$external_class_get' : () => HTMLSelectElement,
|
|
334
|
+
'org.w3c.dom.checked_$external_prop_getter' : (_this) => _this.checked,
|
|
335
|
+
'org.w3c.dom.HTMLInputElement_$external_class_instanceof' : (x) => x instanceof HTMLInputElement,
|
|
336
|
+
'org.w3c.dom.HTMLInputElement_$external_class_get' : () => HTMLInputElement,
|
|
337
|
+
'org.w3c.dom.value_$external_prop_setter_1' : (_this, v) => _this.value = v,
|
|
338
|
+
'org.w3c.dom.text_$external_prop_setter' : (_this, v) => _this.text = v,
|
|
339
|
+
'org.w3c.dom.HTMLOptionElement_$external_class_instanceof' : (x) => x instanceof HTMLOptionElement,
|
|
340
|
+
'org.w3c.dom.HTMLOptionElement_$external_class_get' : () => HTMLOptionElement,
|
|
341
|
+
'org.w3c.dom.HTMLButtonElement_$external_class_instanceof' : (x) => x instanceof HTMLButtonElement,
|
|
342
|
+
'org.w3c.dom.HTMLButtonElement_$external_class_get' : () => HTMLButtonElement,
|
|
343
|
+
'org.w3c.dom.pointerevents.pointerId_$external_prop_getter' : (_this) => _this.pointerId,
|
|
344
|
+
'org.w3c.dom.pointerevents.pressure_$external_prop_getter' : (_this) => _this.pressure,
|
|
345
|
+
'org.w3c.fetch.ok_$external_prop_getter' : (_this) => _this.ok,
|
|
346
|
+
'org.w3c.fetch.clone_$external_fun' : (_this, ) => _this.clone(),
|
|
347
|
+
'org.w3c.fetch.arrayBuffer_$external_fun' : (_this, ) => _this.arrayBuffer(),
|
|
348
|
+
'org.w3c.fetch.blob_$external_fun' : (_this, ) => _this.blob(),
|
|
349
|
+
'org.w3c.performance.now_$external_fun' : (_this, ) => _this.now(),
|
|
350
|
+
'org.w3c.performance.performance_$external_prop_getter' : (_this) => _this.performance,
|
|
351
|
+
'org.w3c.workers.CacheQueryOptions_js_code' : (ignoreSearch, ignoreMethod, ignoreVary, cacheName) => ({ ignoreSearch: ignoreSearch, ignoreMethod: ignoreMethod, ignoreVary: ignoreVary, cacheName: cacheName }),
|
|
352
|
+
'org.w3c.workers.match_$external_fun' : (_this, p0, p1, isDefault0) => _this.match(p0, isDefault0 ? undefined : p1, ),
|
|
353
|
+
'org.w3c.workers.put_$external_fun' : (_this, p0, p1) => _this.put(p0, p1),
|
|
354
|
+
'org.w3c.workers.open_$external_fun' : (_this, p0) => _this.open(p0),
|
|
355
|
+
'org.w3c.workers.delete_$external_fun' : (_this, p0) => _this.delete(p0),
|
|
356
|
+
'kotlinx.browser.window_$external_prop_getter' : () => window,
|
|
357
|
+
'kotlinx.browser.document_$external_prop_getter' : () => document,
|
|
358
|
+
'androidx.compose.runtime.internal.weakMap_js_code' : () => (new WeakMap()),
|
|
359
|
+
'androidx.compose.runtime.internal.set_$external_fun' : (_this, p0, p1) => _this.set(p0, p1),
|
|
360
|
+
'androidx.compose.runtime.internal.get_$external_fun' : (_this, p0) => _this.get(p0),
|
|
361
|
+
'androidx.compose.runtime.internal.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
|
|
362
|
+
'androidx.compose.runtime.internal.deref_$external_fun' : (_this, ) => _this.deref(),
|
|
363
|
+
'org.jetbrains.skiko.GL_$external_prop_getter' : () => _ref_Li9za2lrby5tanM_.GL,
|
|
364
|
+
'org.jetbrains.skia.impl.FinalizationRegistry_$external_fun' : (p0) => new FinalizationRegistry(p0),
|
|
365
|
+
'org.jetbrains.skia.impl.register_$external_fun' : (_this, p0, p1, p2) => _this.register(p0, p1, p2),
|
|
366
|
+
'org.jetbrains.skia.impl.unregister_$external_fun' : (_this, p0) => _this.unregister(p0),
|
|
367
|
+
'org.jetbrains.skia.impl._releaseLocalCallbackScope_$external_fun' : () => _ref_Li9za2lrby5tanM_c2tpa29BcGk._releaseLocalCallbackScope(),
|
|
368
|
+
'org.jetbrains.skiko.wasm.createDefaultContextAttributes' : () => {
|
|
369
|
+
return {
|
|
370
|
+
alpha: 1,
|
|
371
|
+
depth: 1,
|
|
372
|
+
stencil: 8,
|
|
373
|
+
antialias: 0,
|
|
374
|
+
premultipliedAlpha: 1,
|
|
375
|
+
preserveDrawingBuffer: 0,
|
|
376
|
+
preferLowPowerToHighPerformance: 0,
|
|
377
|
+
failIfMajorPerformanceCaveat: 0,
|
|
378
|
+
enableExtensionsByDefault: 1,
|
|
379
|
+
explicitSwapControl: 0,
|
|
380
|
+
renderViaOffscreenBackBuffer: 0,
|
|
381
|
+
majorVersion: 2,
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
,
|
|
385
|
+
'org.jetbrains.skiko.wasm.awaitSkiko_$external_prop_getter' : () => _ref_Li9za2lrby5tanM_.awaitSkiko,
|
|
386
|
+
'org.jetbrains.skiko.createContext_$external_fun' : (_this, p0, p1) => _this.createContext(p0, p1),
|
|
387
|
+
'org.jetbrains.skiko.makeContextCurrent_$external_fun' : (_this, p0) => _this.makeContextCurrent(p0),
|
|
388
|
+
'org.jetbrains.skiko.getNavigatorInfo' : () => navigator.userAgentData ? navigator.userAgentData.platform : navigator.platform,
|
|
389
|
+
'org.jetbrains.skiko.defaultFetchInit_js_code' : () => ({}),
|
|
390
|
+
'org.jetbrains.skiko.jsCatch' : function (f) { try { f(); } catch (e) { return e;}; return null; },
|
|
391
|
+
'org.jetbrains.skiko.jsThrow' : (e) => { throw e; },
|
|
392
|
+
'androidx.lifecycle.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
|
|
393
|
+
'androidx.lifecycle.deref_$external_fun' : (_this, ) => _this.deref(),
|
|
394
|
+
'androidx.compose.ui.text.intl.getUserPreferredLanguagesAsArray' : () => window.navigator.languages,
|
|
395
|
+
'androidx.compose.ui.text.FinalizationRegistry_$external_fun' : (p0) => new FinalizationRegistry(p0),
|
|
396
|
+
'androidx.compose.ui.text.register_$external_fun' : (_this, p0, p1) => _this.register(p0, p1),
|
|
397
|
+
'androidx.compose.ui.text.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
|
|
398
|
+
'androidx.compose.ui.text.deref_$external_fun' : (_this, ) => _this.deref(),
|
|
399
|
+
'androidx.compose.ui.text.intl.parseLanguageTagToIntlLocale' : (languageTag) => new Intl.Locale(languageTag),
|
|
400
|
+
'androidx.compose.ui.text.intl._language_$external_prop_getter' : (_this) => _this.language,
|
|
401
|
+
'androidx.compose.ui.text.intl._region_$external_prop_getter' : (_this) => _this.region,
|
|
402
|
+
'androidx.compose.ui.text.intl._baseName_$external_prop_getter' : (_this) => _this.baseName,
|
|
403
|
+
'androidx.compose.ui.internal.weakMap_js_code' : () => (new WeakMap()),
|
|
404
|
+
'androidx.compose.ui.internal.set_$external_fun' : (_this, p0, p1) => _this.set(p0, p1),
|
|
405
|
+
'androidx.compose.ui.internal.get_$external_fun' : (_this, p0) => _this.get(p0),
|
|
406
|
+
'androidx.compose.ui.platform.createClipboardItemWithPlainText' : (text) => [new ClipboardItem({'text/plain': new Blob([text], { type: 'text/plain' })})],
|
|
407
|
+
'androidx.compose.ui.platform.emptyClipboardItems' : () => [new ClipboardItem({'text/plain': new Blob([''], { type: 'text/plain' })})],
|
|
408
|
+
'androidx.compose.ui.platform.invalidClipboardItems' : () => [],
|
|
409
|
+
'androidx.compose.ui.platform.warn' : (text) => { console.warn(text) },
|
|
410
|
+
'androidx.compose.ui.events.withSignal' : (signal) => ({signal: signal}),
|
|
411
|
+
'androidx.compose.ui.events.withSignalAndPassive' : (signal, passive) => ({signal: signal, passive: passive}),
|
|
412
|
+
'androidx.compose.ui.events.AbortController_$external_fun' : () => new AbortController(),
|
|
413
|
+
'androidx.compose.ui.events.signal_$external_prop_getter' : (_this) => _this.signal,
|
|
414
|
+
'androidx.compose.ui.internal.focusExt' : (element, _preventScroll) => element.focus({ preventScroll: _preventScroll }),
|
|
415
|
+
'androidx.compose.ui.node.WeakRef_$external_fun' : (p0) => new WeakRef(p0),
|
|
416
|
+
'androidx.compose.ui.node.deref_$external_fun' : (_this, ) => _this.deref(),
|
|
417
|
+
'androidx.compose.ui.platform.setBackingInputBox' : (container, left, top, width, height) => {
|
|
418
|
+
container.style.setProperty("--compose-internal-web-backing-input-left", left);
|
|
419
|
+
container.style.setProperty("--compose-internal-web-backing-input-top", top);
|
|
420
|
+
container.style.setProperty("--compose-internal-web-backing-input-width", width);
|
|
421
|
+
container.style.setProperty("--compose-internal-web-backing-input-height", height)
|
|
422
|
+
},
|
|
423
|
+
'androidx.compose.ui.platform.isVibrationSupported' : () =>
|
|
424
|
+
typeof window !== 'undefined' &&
|
|
425
|
+
window.navigator != null &&
|
|
426
|
+
typeof window.navigator.vibrate === 'function'
|
|
427
|
+
,
|
|
428
|
+
'androidx.compose.ui.platform.vibrate' : (pattern) => { window.navigator.vibrate(pattern) },
|
|
429
|
+
'androidx.compose.ui.platform.isTypedEvent' : (evt) => !evt.metaKey && !evt.ctrlKey && evt.key.charAt(0) === evt.key,
|
|
430
|
+
'androidx.compose.ui.platform.value_$external_prop_setter' : (_this, v) => _this.value = v,
|
|
431
|
+
'androidx.compose.ui.platform.selectionStart_$external_prop_getter' : (_this) => _this.selectionStart,
|
|
432
|
+
'androidx.compose.ui.platform.selectionEnd_$external_prop_getter' : (_this) => _this.selectionEnd,
|
|
433
|
+
'androidx.compose.ui.platform.setSelectionRange_$external_fun' : (_this, p0, p1, p2, isDefault0) => _this.setSelectionRange(p0, p1, isDefault0 ? undefined : p2, ),
|
|
434
|
+
'androidx.compose.ui.platform.data_$external_prop_getter' : (_this) => _this.data,
|
|
435
|
+
'androidx.compose.ui.platform.inputType_$external_prop_getter' : (_this) => _this.inputType,
|
|
436
|
+
'androidx.compose.ui.platform.textRangeStart_$external_prop_getter' : (_this) => _this.textRangeStart,
|
|
437
|
+
'androidx.compose.ui.platform.textRangeStart_$external_prop_setter' : (_this, v) => _this.textRangeStart = v,
|
|
438
|
+
'androidx.compose.ui.platform.textRangeEnd_$external_prop_getter' : (_this) => _this.textRangeEnd,
|
|
439
|
+
'androidx.compose.ui.platform.textRangeEnd_$external_prop_setter' : (_this, v) => _this.textRangeEnd = v,
|
|
440
|
+
'androidx.compose.ui.platform.activeElement_$external_prop_getter' : (_this) => _this.activeElement,
|
|
441
|
+
'androidx.compose.ui.platform.getRootNode_$external_fun' : (_this, ) => _this.getRootNode(),
|
|
442
|
+
'androidx.compose.ui.platform.getW3CClipboard' : () => window.navigator.clipboard,
|
|
443
|
+
'androidx.compose.ui.platform.isSecureContext' : () => window.isSecureContext === true,
|
|
444
|
+
'androidx.compose.ui.platform.isFullClipboardApiSupported' : () => Boolean(
|
|
445
|
+
window.navigator.clipboard &&
|
|
446
|
+
window.navigator.clipboard.write &&
|
|
447
|
+
window.navigator.clipboard.read &&
|
|
448
|
+
typeof(ClipboardItem) !== 'undefined'
|
|
449
|
+
)
|
|
450
|
+
,
|
|
451
|
+
'androidx.compose.ui.platform.isFallbackWriteTextApiAvailable' : () => Boolean(window.navigator.clipboard && window.navigator.clipboard.writeText),
|
|
452
|
+
'androidx.compose.ui.platform.types_$external_prop_getter' : (_this) => _this.types,
|
|
453
|
+
'androidx.compose.ui.platform.getType_$external_fun' : (_this, p0) => _this.getType(p0),
|
|
454
|
+
'androidx.compose.ui.platform.read_$external_fun' : (_this, ) => _this.read(),
|
|
455
|
+
'androidx.compose.ui.platform.write_$external_fun' : (_this, p0) => _this.write(p0),
|
|
456
|
+
'androidx.compose.ui.platform.writeText_$external_fun' : (_this, p0) => _this.writeText(p0),
|
|
457
|
+
'androidx.compose.ui.platform.W3CTemporaryClipboard_$external_class_instanceof' : (x) => x instanceof Clipboard,
|
|
458
|
+
'androidx.compose.ui.platform.W3CTemporaryClipboard_$external_class_get' : () => Clipboard,
|
|
459
|
+
'androidx.compose.ui.platform.isFullWakeLockApiSupported' : () => Boolean(
|
|
460
|
+
window.navigator.wakeLock &&
|
|
461
|
+
typeof(WakeLockSentinel) !== 'undefined'
|
|
462
|
+
)
|
|
463
|
+
,
|
|
464
|
+
'androidx.compose.ui.platform.accessibility.removeAllChildrenOf' : (element) => { element.replaceChildren() },
|
|
465
|
+
'androidx.compose.ui.platform.accessibility.setA11YAriaRole' : (element, ariaRoleId) => {
|
|
466
|
+
var roleValue = "";
|
|
467
|
+
switch (ariaRoleId) {
|
|
468
|
+
case 0: // Role.Button
|
|
469
|
+
roleValue = "button";
|
|
470
|
+
break;
|
|
471
|
+
case 1: // Role.Checkbox
|
|
472
|
+
roleValue = "checkbox";
|
|
473
|
+
break;
|
|
474
|
+
case 2: // Role.Switch
|
|
475
|
+
roleValue = "switch";
|
|
476
|
+
break;
|
|
477
|
+
case 3: // Role.RadioButton
|
|
478
|
+
roleValue = "radio";
|
|
479
|
+
break;
|
|
480
|
+
case 4: // Role.Tab
|
|
481
|
+
roleValue = "tab";
|
|
482
|
+
break;
|
|
483
|
+
case 5: // Role.Image
|
|
484
|
+
roleValue = "img";
|
|
485
|
+
break;
|
|
486
|
+
case 6: // Role.DropdownList
|
|
487
|
+
roleValue = "menu";
|
|
488
|
+
break;
|
|
489
|
+
case 7: // heading https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/heading_role
|
|
490
|
+
roleValue = "heading";
|
|
491
|
+
break;
|
|
492
|
+
case 8: // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/textbox_role
|
|
493
|
+
roleValue = "textbox";
|
|
494
|
+
break;
|
|
495
|
+
case 9: // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/list_role
|
|
496
|
+
roleValue = "list";
|
|
497
|
+
break;
|
|
498
|
+
case 10: // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/grid_role
|
|
499
|
+
roleValue = "grid";
|
|
500
|
+
break;
|
|
501
|
+
default:
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
if (roleValue.length > 0) {
|
|
505
|
+
element.setAttribute("role", roleValue);
|
|
506
|
+
} else {
|
|
507
|
+
element.removeAttribute("role");
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
'androidx.compose.ui.platform.accessibility.setSizeAndPosition' : (element, left, top, width, height) => {
|
|
511
|
+
element.style.left = "" + left + "px";
|
|
512
|
+
element.style.top = "" + top + "px";
|
|
513
|
+
element.style.width = "" + width + "px";
|
|
514
|
+
element.style.height = "" + height + "px";
|
|
515
|
+
},
|
|
516
|
+
'androidx.compose.ui.window.documentIsVisible' : () => document.visibilityState === 'visible',
|
|
517
|
+
'androidx.compose.ui.window.isTouchEvent' : (event) => event.pointerType === 'touch',
|
|
518
|
+
'androidx.compose.ui.window.releasePointerCapture' : (target, pointerId) => { try { target.releasePointerCapture(pointerId) } catch (e) {} },
|
|
519
|
+
'androidx.compose.ui.window.isMouseEvent' : (event) => event.pointerType === 'mouse',
|
|
520
|
+
'androidx.compose.ui.window.setPointerCapture' : (target, pointerId) => { try { target.setPointerCapture(pointerId) } catch (e) {} },
|
|
521
|
+
'androidx.compose.ui.window.getCoalescedEvents' : (pointerEvent) => pointerEvent.getCoalescedEvents ? pointerEvent.getCoalescedEvents() : [],
|
|
522
|
+
'androidx.compose.ui.window.getPointerEventCode' : (event) => {
|
|
523
|
+
switch (event.type) {
|
|
524
|
+
case 'pointerdown':
|
|
525
|
+
return 1; // PointerEventType.Press
|
|
526
|
+
case 'pointerup':
|
|
527
|
+
return 2; // PointerEventType.Release
|
|
528
|
+
case 'pointermove':
|
|
529
|
+
return 3; // PointerEventType.Move
|
|
530
|
+
case 'pointerenter':
|
|
531
|
+
return 4; //PointerEventType.Enter
|
|
532
|
+
case 'pointerleave':
|
|
533
|
+
return 5; //PointerEventType.Exit
|
|
534
|
+
default:
|
|
535
|
+
return 0; // PointerEventType.Unknown
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
'androidx.compose.ui.window.activeElement_$external_prop_getter' : (_this) => _this.activeElement,
|
|
539
|
+
'androidx.compose.ui.window.isMatchMediaSupported' : () => window.matchMedia != undefined,
|
|
540
|
+
'androidx.compose.foundation.internal.isClipboardWriteSupported' : () => Boolean(window.navigator.clipboard && (window.navigator.clipboard.write || window.navigator.clipboard.writeText)),
|
|
541
|
+
'androidx.compose.foundation.internal.isClipboardReadSupported' : () => Boolean(window.navigator.clipboard && window.navigator.clipboard.read),
|
|
542
|
+
'androidx.compose.foundation.internal.getTextFromBlob' : (blob) => blob.text(),
|
|
543
|
+
'androidx.compose.foundation.internal.doesJsArrayContainValue' : (jsArray, value) => jsArray.includes(value),
|
|
544
|
+
'androidx.compose.foundation.text.EventListener' : (handler) => (event) => { handler(event) },
|
|
545
|
+
'androidx.compose.foundation.gestures.legacyWheelDeltaX' : (event) => (event.wheelDeltaX == null) ? NaN : event.wheelDeltaX,
|
|
546
|
+
'androidx.compose.foundation.gestures.legacyWheelDeltaY' : (event) => (event.wheelDeltaY == null) ? NaN : event.wheelDeltaY,
|
|
547
|
+
'org.jetbrains.compose.resources.jsExportBlobAsArrayBuffer' : (blob) => blob.arrayBuffer(),
|
|
548
|
+
'org.jetbrains.compose.resources.jsFetchWithSignal' : (url, signal) => window.fetch(url, { signal }),
|
|
549
|
+
'org.jetbrains.compose.resources.AbortController_$external_fun' : () => new AbortController(),
|
|
550
|
+
'org.jetbrains.compose.resources.signal_$external_prop_getter' : (_this) => _this.signal,
|
|
551
|
+
'org.jetbrains.compose.resources.abort_$external_fun' : (_this, ) => _this.abort(),
|
|
552
|
+
'org.jetbrains.compose.resources.isWasmExportsAvailable' : () => typeof wasmExports !== 'undefined',
|
|
553
|
+
'org.jetbrains.compose.resources.copyArrayBufferToWasmMemory' : (ab, ptr) => {
|
|
554
|
+
const data = new Uint8Array(ab);
|
|
555
|
+
new Uint8Array(wasmExports.memory.buffer).set(data, ptr);
|
|
556
|
+
},
|
|
557
|
+
'org.jetbrains.compose.resources.supportsCacheApi' : () => Boolean(window.caches),
|
|
558
|
+
'androidx.compose.material3.internal.weakMap_js_code' : () => (new WeakMap()),
|
|
559
|
+
'androidx.compose.material3.internal.set_$external_fun' : (_this, p0, p1) => _this.set(p0, p1),
|
|
560
|
+
'androidx.compose.material3.internal.get_$external_fun' : (_this, p0) => _this.get(p0),
|
|
561
|
+
'com.aardarch.aardink.sampleweb.__callJsClosure_((String)->Unit)' : (f, p0) => f(p0),
|
|
562
|
+
'com.aardarch.aardink.sampleweb.__callJsClosure_((Int,Int)->Unit)' : (f, p0, p1) => f(p0, p1),
|
|
563
|
+
'com.aardarch.aardink.sampleweb.usedJsHeapBytes' : () => (performance.memory ? performance.memory.usedJSHeapSize : -1)
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
const StringConstantsProxy = new Proxy({}, {
|
|
567
|
+
get(_, prop) { return prop; }
|
|
568
|
+
});
|
|
569
|
+
|
|
570
|
+
export { wasmTag as __TAG };
|
|
571
|
+
|
|
572
|
+
export const importObject = {
|
|
573
|
+
js_code,
|
|
574
|
+
intrinsics: {
|
|
575
|
+
memory: new WebAssembly.Memory({ initial: 0 }),
|
|
576
|
+
tag: wasmTag
|
|
577
|
+
},
|
|
578
|
+
"'": StringConstantsProxy,
|
|
579
|
+
'wasm:js-string': d2FzbTpqcy1zdHJpbmc,
|
|
580
|
+
'./skiko.mjs': Li9za2lrby5tanM,
|
|
581
|
+
};
|
|
582
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const length = (s) => s.length
|
|
2
|
+
export const concat = (a, b) => a + b
|
|
3
|
+
export const charCodeAt = (s, i) => s.charCodeAt(i >>> 0)
|
|
4
|
+
export const substring = (s, start, end) => {
|
|
5
|
+
start >>>= 0;
|
|
6
|
+
end >>>= 0;
|
|
7
|
+
return s.substring(start, end);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const compare = (a, b) => {
|
|
11
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const equals = (a, b) => a === b ? 1 : 0
|
|
15
|
+
const moduleFromCharCodeArray = new WebAssembly.Module(new Uint8Array([
|
|
16
|
+
0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x0b, 0x02, 0x5e,
|
|
17
|
+
0x77, 0x01, 0x60, 0x02, 0x64, 0x00, 0x7f, 0x01, 0x7f, 0x03, 0x02, 0x01,
|
|
18
|
+
0x01, 0x07, 0x0b, 0x01, 0x07, 0x61, 0x31, 0x36, 0x5f, 0x67, 0x65, 0x74,
|
|
19
|
+
0x00, 0x00, 0x0a, 0x0b, 0x01, 0x09, 0x00, 0x20, 0x00, 0x20, 0x01, 0xfb,
|
|
20
|
+
0x0d, 0x00, 0x0b, 0x00, 0x13, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x04, 0x0c,
|
|
21
|
+
0x01, 0x00, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x69, 0x31, 0x36
|
|
22
|
+
]));
|
|
23
|
+
const helpersFromCharCodeArray = new WebAssembly.Instance(moduleFromCharCodeArray).exports;
|
|
24
|
+
|
|
25
|
+
export const fromCharCodeArray = (array, start, end) => {
|
|
26
|
+
start >>>= 0;
|
|
27
|
+
end >>>= 0;
|
|
28
|
+
let result = [];
|
|
29
|
+
for (let i = start; i < end; i++) {
|
|
30
|
+
result.push(String.fromCharCode(helpersFromCharCodeArray.a16_get(array, i)));
|
|
31
|
+
}
|
|
32
|
+
return result.join("");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const moduleIntoCharCode = new WebAssembly.Module(new Uint8Array([
|
|
36
|
+
0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x0b, 0x02, 0x5e,
|
|
37
|
+
0x77, 0x01, 0x60, 0x03, 0x64, 0x00, 0x7f, 0x7f, 0x00, 0x03, 0x02, 0x01,
|
|
38
|
+
0x01, 0x07, 0x0b, 0x01, 0x07, 0x61, 0x31, 0x36, 0x5f, 0x73, 0x65, 0x74,
|
|
39
|
+
0x00, 0x00, 0x0a, 0x0d, 0x01, 0x0b, 0x00, 0x20, 0x00, 0x20, 0x01, 0x20,
|
|
40
|
+
0x02, 0xfb, 0x0e, 0x00, 0x0b, 0x00, 0x13, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
41
|
+
0x04, 0x0c, 0x01, 0x00, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x69,
|
|
42
|
+
0x31, 0x36
|
|
43
|
+
]));
|
|
44
|
+
const helpersIntoCharCode = new WebAssembly.Instance(moduleIntoCharCode).exports;
|
|
45
|
+
|
|
46
|
+
export const intoCharCodeArray = (s, array, start) => {
|
|
47
|
+
start >>>= 0;
|
|
48
|
+
for (let i = 0; i < s.length; i++) {
|
|
49
|
+
helpersIntoCharCode.a16_set(array, start + i, s.charCodeAt(i));
|
|
50
|
+
}
|
|
51
|
+
return s.length;
|
|
52
|
+
}
|