Add files from before the Git repository

This commit is contained in:
X3F200C committed 2023-08-24 18:36:44 -04:00
1 parent 81729a9c39
commit a0f9b644a4
39 files changed
+69596 -1

No files matched your search

+45 -1
View File
@@ -1,3 +1,47 @@
# XVoxel-ASync # XVoxel-ASync
A voxel game based on OpenVoxelProject A voxel game based on OpenVoxelProject, it is able to run fully in a web browser.
## Philosophy
My goal for this game is for it to be light, extendable, pluggable and easy to mod without too much nonsense.
- Light, unlike heavy as other games
- Extendable, even its core
- Pluggable, so you can add your own additions
- Easy to mod, with an upcoming modding interface made to be easy and efficient
## Roadmap
- [x] Basic menu
- [x] 3D rendering
- [ ] Resources
- [ ] Textures (partially done)
- [ ] Sounds
- [ ] Models (as JSON)
- [ ] Physics (have to decide which engine to use)
- [ ] Settings
- [ ] Video
- [x] Field of View
- [ ] Lighting
- [ ] Audio
- [ ] Sources
- [ ] Channels (Mono, Stereo or Surround if supported)
- [ ] Input (keyboard/mouse, touchscreen and gamepad)
- [ ] Sensitivity
- [ ] Keys
- [ ] Networking
- [x] Loading worlds
- [ ] Saving worlds (implemented but unavailable in the menu)
- [ ] Multiplayer
## Acknowledgements
The libraries cited below are included in the "lib" folder for convenience, if you want your library's files removed from my project's, please kindly tell me via [e-mail](mailto:x3f200c@protonmail.com) or using any other contact information that can be found on [my main website](https://x3f200c.net/).
- [Three.JS](https://github.com/mrdoob/three.js) under the MIT license, used for rendering worlds (and its GLTF loader for future work)
- [Cannon ES](https://github.com/pmndrs/cannon-es) also under the MIT license, not used yet, will consider switching to it in order to use less WebAssembly and more vanilla JavaScript
- [Ammo.JS](https://github.com/kripken/ammo.js) under the ZLib license, used to simulate physics in worlds
- [FFlate](https://github.com/101arrowz/fflate) under the MIT license too, used to compress and decompress ZIP files (saving and loading worlds)
- [Matrix JS SDK](https://github.com/matrix-org/matrix-js-sdk) under the Apache 2.0 license, used for networking (multiplayer, uploading, downloading worlds from the Matrix network)
- [PeerJS](https://github.com/peers/peerjs) under the MIT license, will be used for alternative networking
- [Olm](https://gitlab.matrix.org/matrix-org/olm) under the Apache 2.0 license too, used for encryption support in networking
- Improved Perlin noise (I forgot where I found it and what its license was)
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

+308
View File
@@ -0,0 +1,308 @@
/* Variables */
:root {
--background: rgba(255, 255, 255, 0);
--background-titlebar: rgba(0, 0, 0, 0.24);
--background-menu: rgba(168, 190, 210, 0.36);
--background-menu-interactable: rgba(125, 135, 150, 0.48);
--background-menu-interactable-hover: rgba(157, 172, 213, 0.48);
--background-menu-uninteractable: rgba(79, 87, 99, 0.48);
--text-color-default: rgba(235, 245, 245, 1);
--cursor-default: default;
--cursor-not-allowed: not-allowed;
}
/* Rules */
* {
background: var(--background);
cursor: var(--cursor-default);
color: var(--text-color-default);
margin: 0px;
image-rendering: pixelated;
}
html, body {
width: 100%;
height: 100%;
top: 0px;
left: 0px;
}
header {
z-index: 100;
background: var(--background-titlebar);
position: absolute;
display: flex;
flex-direction: row;
align-items: center;
top: 0px;
left: 0px;
width: 100%;
height: 3rem;
-webkit-app-region: drag;
}
#title {
margin: 0.4rem;
}
#actionbuttoncontainer {
position: absolute;
display: flex;
top: 0px;
right: 0px;
height: 100%;
-webkit-app-region: no-drag;
pointer-events: all;
}
.windowactionbutton {
top: 0px;
width: 6rem;
height: 100%;
background: rgba(255, 255, 255, 0.25);
}
.windowactionbutton:hover {
background: rgba(255, 255, 255, 0.5);
}
.windowactionbutton * {
position: absolute;
margin: auto;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
#minwin {
right: calc(6rem + 6rem);
}
#maxrestorewin {
right: 6rem;
}
#closewin {
right: 0px;
background: rgba(255, 0, 0, 0.25);
}
#closewin:hover {
background: rgba(255, 0, 0, 0.5);
}
.initially-hidden {
display: none;
}
.fullscreen {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.overlay {
z-index: 96;
}
#renderers {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
width: inherit;
height: inherit;
}
#renderers > div {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
}
span {
display: flex;
}
#gui {
z-index: 15;
}
#crosshair {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
mix-blend-mode: difference;
z-index: 15
}
#touchcontrols {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 30;
}
#dpad {
position: absolute;
bottom: 0px;
min-width: 16rem;
min-height: 16rem;
max-width: 48rem;
max-height: 48rem;
background: radial-gradient(rgba(180, 180, 180, 0.80) 0%, rgba(180, 180, 180, 0) 72%);
z-index: 32;
}
#secpad {
position: absolute;
bottom: 0px;
right: 0px;
min-width: calc(16rem / 3);
min-height: calc(16rem / 3);
max-width: calc(48rem / 3);
max-height: calc(48rem / 3);
margin: calc(16rem / 3);
background: radial-gradient(rgba(180, 180, 180, 0.80) 0%, rgba(180, 180, 180, 0) 72%);
z-index: 32;
}
#menus {
display: flex;
flex-wrap: wrap;
flex-flow: row;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 40;
}
.menu {
top: 0px;
display: flex;
flex-direction: column;
justify-content: flex-start;
/* position: absolute; */
background: var(--background-menu);
height: calc(100% - 3rem);
padding-top: 3rem;
z-index: 40;
}
.void {
height: inherit;
width: inherit;
}
.closebutton {
left: 0px;
width: calc(100% - 1rem);
bottom: 0px;
margin-top: auto;
}
#loadingscreen {
background: rgba(32, 48, 64, 1);
position: absolute;
width: 100%;
height: 100%;
left: 0px;
right: 0px;
z-index: 45;
}
#loadingbar {
position: absolute;
min-width: 12rem;
min-height: 3rem;
width: 64%;
height: 25%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(240, 24, 24, 1);
}
#loadingtext {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 45;
mix-blend-mode: difference;
}
#loadingbarprogress {
position: relative;
height: 100%;
background: rgba(24, 240, 48, 1);
}
button:disabled, button:disabled:hover, input:disabled, input:disabled:hover {
background: var(--background-menu-uninteractable);
cursor: var(--cursor-not-allowed);
}
button, input:not(input[type=checkbox]), select {
appearance: none;
background: var(--background-menu-interactable);
border: 0.125rem solid black;
padding: 0px;
margin: 0.5rem;
font-size: 1rem;
width: calc(100% - 1rem);
height: 4rem;
}
input:not(input[type=checkbox]) {
width: calc(100% - 1.25rem);
height: 4rem;
}
button:hover, input:hover, select:hover {
background: var(--background-menu-interactable-hover);
}
input[type=text]::placeholder {
color: rgba(235, 245, 245, 0.5);
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
background: rgba(125, 135, 150, 0.25);
border: 0.125rem solid black;
border-radius: 0px;
width: 1.5rem;
height: 4rem;
}
input[type=range]::-moz-range-thumb {
-moz-appearance: none;
background: rgba(125, 135, 150, 0.25);
border: 0.125rem solid black;
border-radius: 0px;
width: 1.5rem;
height: 4rem;
}
input[type=range]::-webkit-slider-thumb:hover {
background: var(--background-menu-interactable-hover);
}
input[type=range]::-moz-range-thumb:hover {
background: var(--background-menu-interactable-hover);
}
+79
View File
@@ -0,0 +1,79 @@
var modules = {
"render": {
"source": "./modules/render.js",
"dependsOn": []
},
"input": {
"source": "./modules/input.js",
"dependsOn": ["render"]
},
"resources": {
"source": "./modules/resources.js",
"dependsOn": []
},
"world": {
"source": "./modules/world.js",
"dependsOn": []
},
"network": {
"source": "./modules/network.js",
"dependsOn": []
}
};
var plugins = {
"splash": {
"type": "plugin",
"source": "./plugins/splash.js",
"loadAs": "splash",
"dependsOn": ["render"]
}
};
var loadings = {};
class GameCore extends global.utils.EventListener {
constructor () {
super();
this.modules = {};
this.plugins = {};
}
init (meta) {
return new Promise((function (resolve, reject) {
for (var data in meta) {
if (meta.hasOwnProperty(data)) {
var metadata = meta[data];
if (loadings[data]) continue;
loadings[data] = this.loadModule(data);
}
}
Promise.all(Object.values(loadings)).then((function () {
this.emit("pre-init", {});
resolve(this);
}).bind(this)).catch(reject);
}).bind(this));
}
loadModule (moduleName) {
return load("./modules/" + moduleName + ".js").then((function (mod) {
this.modules[moduleName] = mod;
}).bind(this)).catch(throwError);
}
loadPlugin (pluginName) {
return load("./plugins/" + pluginName + ".js").then((function (plugin) {
this.plugins[pluginName] = plugin;
}).bind(this)).catch(throwError);
}
}
module.exports = {
"GameCore": GameCore,
"loadData": {
"modules": modules,
"plugins": plugins
}
};
Binary file not shown.
+231
View File
@@ -0,0 +1,231 @@
{
"hitbox": [0.7, 1.8, 0.7],
"control": {
"camera": "head",
"rotationX": "head"
},
"parts": {
"root": {
"type": "group",
"position": [0, -0.25, 0],
"children": [
"body"
]
},
"body": {
"type": "geometry",
"geometry": [0.5, 0.75, 0.25],
"position": [0, 0.375, 0],
"uvMap": [
[[0.25, 0.5], [0.3125, 0.6875]],
[[0.4375, 0.5], [0.5, 0.6875]],
[[0.3125, 0.5], [0.4375, 0.6875]],
[[0.3125, 0.6875], [0.4375, 0.75]],
[[0.4375, 0.6875], [0.5625, 0.75]],
[[0.5, 0.6875], [0.625, 0.5]],
[[0.3125, 0.6875], [0.3125, 0.5]]
],
"children": [
"neck",
"jacket",
"left-shoulder",
"right-shoulder",
"left-pelvis",
"right-pelvis"
]
},
"neck": {
"type": "group",
"position": [0, 0.375, 0],
"children": [
"head"
]
},
"head": {
"type": "geometry",
"geometry": [0.5, 0.5, 0.5],
"position": [0, 0.25, 0],
"uvMap": [
[[0.0, 0.75], [0.125, 0.875]],
[[0.25, 0.75], [0.375, 0.875]],
[[0.125, 0.875], [0.25, 1.0]],
[[0.25, 0.875], [0.375, 1.0]],
[[0.375, 0.75], [0.5, 0.875]],
[[0.125, 0.75], [0.25, 0.875]]
],
"children": [
"hat"
]
},
"hat": {
"type": "geometry",
"geometry": [0.56, 0.56, 0.56],
"position": [0, 0, 0],
"uvMap": [
[[0.5, 0.75], [0.625, 0.875]],
[[0.75, 0.75], [0.875, 0.875]],
[[0.625, 0.875], [0.75, 1.0]],
[[0.75, 0.875], [0.875, 1.0]],
[[0.875, 0.75], [1.0, 0.875]],
[[0.625, 0.75], [0.75, 0.875]]
]
},
"jacket": {
"type": "geometry",
"geometry": [0.6, 0.85, 0.35],
"position": [0, 0, 0],
"uvMap": [
[[0.25, 0.0625], [0.5625, 0.1875]],
[[0.4375, 0.0625], [0.5625, 0.1875]],
[[0.3125, 0.125], [0.5, 0.0625]],
[[0.4375, 0.125], [0.5, 0.0625]],
[[0.5, 0.125], [0.5625, 0.1875]],
[[0.3125, 0.125], [0.5625, 0.1875]]
]
},
"left-shoulder": {
"type": "group",
"position": [-0.25, 0.25, 0],
"children": [
"left-arm"
]
},
"left-arm": {
"type": "geometry",
"geometry": [0.25, 0.75, 0.25],
"position": [-0.125, -0.25, 0],
"uvMap": [
[[0.5, 0.0625], [0.8125, 0.1875]],
[[0.625, 0.0625], [0.8125, 0.1875]],
[[0.5625, 0.0625], [0.75, 0.0625]],
[[0.625, 0.0625], [0.75, 0.0625]],
[[0.6875, 0.0625], [0.8125, 0.1875]],
[[0.5625, 0.0625], [0.8125, 0.1875]]
],
"children": [
"left-sleeve"
]
},
"left-sleeve": {
"type": "geometry",
"geometry": [0.35, 0.85, 0.35],
"position": [0, 0, 0],
"uvMap": [
[[0.75, 0.0625], [0.5625, 0.1875]],
[[0.875, 0.0625], [0.5625, 0.1875]],
[[0.8125, 0.0625], [0.5, 0.0625]],
[[0.875, 0.0625], [0.5, 0.0625]],
[[60, 0.0625], [0.5625, 0.1875]],
[[0.8125, 0.0625], [0.5625, 0.1875]]
]
},
"right-shoulder": {
"type": "group",
"position": [0.25, 0.25, 0],
"children": [
"right-arm"
]
},
"right-arm": {
"type": "geometry",
"geometry": [0.25, 0.75, 0.25],
"position": [0.125, -0.25, 0],
"uvMap": [
[[0.625, 0.0625], [0.3125, 0.1875]],
[[0.75, 0.0625], [0.3125, 0.1875]],
[[0.6875, 0.0625], [0.25, 0.0625]],
[[0.75, 0.0625], [0.25, 0.0625]],
[[0.8125, 0.0625], [0.3125, 0.1875]],
[[0.6875, 0.0625], [0.3125, 0.1875]]
],
"children": [
"right-sleeve"
]
},
"right-sleeve": {
"type": "geometry",
"geometry": [0.35, 0.85, 0.35],
"position": [0, 0, 0],
"uvMap": [
[[0.625, 0.0625], [0.5625, 0.1875]],
[[0.75, 0.0625], [0.5625, 0.1875]],
[[0.6875, 0.0625], [0.5, 0.0625]],
[[0.75, 0.0625], [0.5, 0.0625]],
[[0.8125, 0.0625], [0.5625, 0.1875]],
[[0.6875, 0.0625], [0.5625, 0.1875]]
]
},
"left-pelvis": {
"type": "group",
"position": [-0.125, -0.375, 0],
"children": [
"left-leg"
]
},
"left-leg": {
"type": "geometry",
"geometry": [0.25, 0.75, 0.25],
"position": [0, -0.375, 0],
"uvMap": [
[[0.25, 0.0625], [0.8125, 0.1875]],
[[0.375, 0.0625], [0.8125, 0.1875]],
[[0.3125, 0.0625], [0.75, 0.0625]],
[[0.375, 0.0625], [0.75, 0.0625]],
[[0.4375, 0.0625], [0.8125, 0.1875]],
[[0.3125, 0.0625], [0.8125, 0.1875]]
],
"children": [
"left-leg-sleeve"
]
},
"left-leg-sleeve": {
"type": "geometry",
"geometry": [0.35, 0.85, 0.35],
"position": [0, 0, 0],
"uvMap": [
[[0, 0.0625], [0.8125, 0.1875]],
[[0.125, 0.0625], [0.8125, 0.1875]],
[[0.0625, 0.0625], [0.75, 0.0625]],
[[0.125, 0.0625], [0.75, 0.0625]],
[[0.1875, 0.0625], [0.8125, 0.1875]],
[[0.0625, 0.0625], [0.8125, 0.1875]]
]
},
"right-pelvis": {
"type": "group",
"position": [0.125, -0.375, 0],
"children": [
"right-leg"
]
},
"right-leg": {
"type": "geometry",
"geometry": [0.25, 0.75, 0.25],
"position": [0, -0.375, 0],
"uvMap": [
[[0, 0.0625], [0.3125, 0.1875]],
[[0.125, 0.0625], [0.3125, 0.1875]],
[[0.0625, 0.0625], [0.25, 0.0625]],
[[0.125, 0.0625], [0.25, 0.0625]],
[[0.1875, 0.0625], [0.3125, 0.1875]],
[[0.0625, 0.0625], [0.3125, 0.1875]]
],
"children": [
"right-leg-sleeve"
]
},
"right-leg-sleeve": {
"type": "geometry",
"geometry": [0.35, 0.85, 0.35],
"position": [0, 0, 0],
"uvMap": [
[[0, 0.0625], [0.5625, 0.1875]],
[[0.125, 0.0625], [0.5625, 0.1875]],
[[0.0625, 0.0625], [0.5, 0.0625]],
[[0.125, 0.0625], [0.5, 0.0625]],
[[0.1875, 0.0625], [0.5625, 0.1875]],
[[0.0625, 0.0625], [0.5625, 0.1875]]
]
}
}
}
+54
View File
@@ -0,0 +1,54 @@
{
"name": "OpenVoxelProject",
"description": "OpenVoxelProject's base resources",
"textures": {
"block-atlas": {
"path": "textures/block-atlas.png",
"size": [64, 64],
"totalSize": [512, 512]
},
"grass": {
"texture": "block-atlas",
"sided": true,
"sideMaps": [
[3],
[0, 1, 4, 5],
[2]
],
"positions": [
[0, 0],
[64, 0],
[128, 0]
],
"sizes": [
[64, 64],
[64, 64],
[64, 64]
]
},
"dirt": {
"texture": "block-atlas",
"position": [128, 0],
"size": [64, 64]
},
"stone": {
"texture": "block-atlas",
"position": [192, 0],
"size": [64, 64]
},
"glitch": {
"texture": "block-atlas",
"position": [256, 0],
"size": [64, 64]
},
"character": {
"path": "textures/character.png",
"totalSize": [256, 256]
}
},
"models": {
"character": {
"path": "models/character.json"
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+32
View File
@@ -0,0 +1,32 @@
{
"menu.main.play.label": "Play",
"menu.main.settings.label": "Settings",
"menu.main.quit.label": "Quit",
"menu.play.singleplayer.label": "Singleplayer",
"menu.play.multiplayer.label": "Multiplayer",
"play.singleplayer.worldnameinput.label": "World name",
"play.singleplayer.worldnameinput.placeholder": "Enter a world name here. ",
"play.singleplayer.newgamebutton.label": "New game",
"play.singleplayer.loadgamebutton.label": "Load game",
"play.singleplayer.openworld.label": "Load world \"${WORLD_NAME}\"",
"play.multiplayer.serveraddressinput.label": "Server address",
"play.multiplayer.serveraddressinput.placeholder": "Enter a server address here. ",
"play.multiplayer.serverconnectbutton.label": "Connect",
"play.multiplayer.loadmatrixworldsbutton.label": "Load Matrix worlds",
"menu.settings.user.label": "User",
"menu.settings.video.label": "Video",
"menu.settings.audio.label": "Audio",
"menu.settings.input.label": "Input",
"settings.user.username.label": "Username",
"settings.user.username.placeholder": "Enter your username here. ",
"settings.user.login.label": "Log in",
"settings.login.homeserver-url.label": "Homeserver URL",
"settings.login.mxid.label": "MXID (Matrix ID)",
"settings.login.mxid.placeholder": "@user:domain.tld",
"settings.login.password.label": "Password",
"settings.login.password.placeholder": "T0p S3cr3t",
"settings.video.fieldofview.label": "Field of view",
"settings.video.fieldofview.text": "${ANGLE}${UNIT}",
"settings.audio.mastervolume.label": "Master volume",
"settings.audio.mastervolume.text": "${VOLUME}${UNIT}"
}
+32
View File
@@ -0,0 +1,32 @@
{
"menu.main.play.label": "Jouer",
"menu.main.settings.label": "Paramètres",
"menu.main.quit.label": "Quitter",
"menu.play.singleplayer.label": "Solo",
"menu.play.multiplayer.label": "Multijoueur",
"play.singleplayer.worldnameinput.label": "Nom du monde",
"play.singleplayer.worldnameinput.placeholder": "Entrez un nom de monde ici. ",
"play.singleplayer.newgamebutton.label": "Nouvelle partie",
"play.singleplayer.loadgamebutton.label": "Charger une partie",
"play.singleplayer.openworld.label": "Charger le monde \"${WORLD_NAME}\"",
"play.multiplayer.serveraddressinput.label": "Adresse du serveur",
"play.multiplayer.serveraddressinput.placeholder": "Entrez une adresse de serveur ici. ",
"play.multiplayer.serverconnectbutton.label": "Se connecter",
"play.multiplayer.loadmatrixworldsbutton.label": "Charger les mondes Matrix",
"menu.settings.user.label": "Utilisateur",
"menu.settings.video.label": "Vidéo",
"menu.settings.audio.label": "Audio",
"menu.settings.input.label": "Entrée",
"settings.user.username.label": "Nom d'utilisateur",
"settings.user.username.placeholder": "Entrez votre nom d'utilisateur ici. ",
"settings.user.login.label": "Se connecter",
"settings.login.homeserver-url.label": "URL de votre serveur",
"settings.login.mxid.label": "MXID (Identifiant Matrix)",
"settings.login.mxid.placeholder": "@utilisateur:domaine.tld",
"settings.login.password.label": "Mot de passe",
"settings.login.password.placeholder": "T0p S3cr3t",
"settings.video.fieldofview.label": "Champ de vision",
"settings.video.fieldofview.text": "${ANGLE}${UNIT}",
"settings.audio.mastervolume.label": "Volume global",
"settings.audio.mastervolume.text": "${VOLUME}${UNIT}"
}
+488
View File
@@ -0,0 +1,488 @@
const loaderData = {
"utils": {
"type": "global",
"source": "./lib/utils.js",
"loadAs": "utils",
"dependsOn": []
},
"three": {
"type": "global",
"source": "./lib/three.js",
"loadAs": "three",
"dependsOn": []
},
/*"cannon": {
"type": "global",
"source": "./lib/cannon-es.js",
"loadAs": "cannon",
"dependsOn": []
},*/
"fflate": {
"type": "global",
"source": "./lib/fflate.js",
"loadAs": "fflate",
"dependsOn": []
},
"olm": {
"type": "global",
"source": "./lib/olm.js",
"loadAs": "olm",
"dependsOn": []
},
"matrix": {
"type": "global",
"source": "./lib/browser-matrix.min.js",
"loadAs": "matrix",
"dependsOn": ["olm"]
},
"peer": {
"type": "global",
"source": "./lib/peer.js",
"loadAs": "peer",
"dependsOn": []
},
"gamecore": {
"type": "global",
"source": "./core.js",
"loadAs": "gamecore",
"dependsOn": ["utils"]
},
"locales": {
"type": "global",
"source": "./lib/locales.js",
"loadAs": "locales",
"dependsOn": []
},
"menu": {
"type": "global",
"source": "./menu.js",
"loadAs": "menu",
"dependsOn": ["locales"]
}
};
const throwError = window.throwError = function (err) {
alert(err + "\n" + err.stack);
throw err;
};
var onLoadingFinished = function (modules) {
var initPromises = {};
var promiseReturners = {};
initPromises["render"] = new Promise(function (resolve, reject) {
promiseReturners["render"] = {
resolve,
reject
};
});
initPromises["input"] = new Promise(function (resolve, reject) {
promiseReturners["input"] = {
resolve,
reject
};
});
core.on("render-init", function () {
promiseReturners["render"].resolve();
fetch("./data/resources/XVoxel.zip").then(function (response) {
if (response.status != 200) return throwError(new Error("ENOENT"));
response.arrayBuffer().then(function (arrayBuffer) {
core.modules["resources"].ResourcePack.loadFromZIP(arrayBuffer).then(function (pack) {
window.resourcePacks.push(pack);
}).catch(throwError);
}).catch(throwError);
}).catch(throwError);
});
core.on("input-init", function () {
promiseReturners["input"].resolve();
});
Promise.all(Object.values(initPromises)).then(function () {
addPlayer(0);
});
};
window.onload = function (event) {
renderersContainer = document.querySelector("#renderers");
var librariesToLoad = Object.keys(loaderData);
var libraryLoaders = [];
for (var l = 0; l < librariesToLoad.length; l++) {
libraryLoaders.push(
loadFromMeta(librariesToLoad[l], loaderData[librariesToLoad[l]])
);
}
Promise.all(libraryLoaders).then(function (libraries) {
core = window.core = new window.gamecore.GameCore();
fetch("./data/strings/" + window.currentLanguage + ".json").then(function (response) {
if (response.status != 200) return throwError(new Error("ENOENT"));
response.text().then(function (text) {
window.locales.loadFromJSON(window.currentLanguage, JSON.parse(text));
menu.makeMenu();
}).catch(throwError);
}).catch(throwError);
onLoadingFinished(core.modules);
core.init(gamecore.loadData.modules).then(function (gameCore) {
for (var moduleName in core.modules) {
if (core.modules.hasOwnProperty(moduleName)) {
var thisModule = core.modules[moduleName];
if ((typeof thisModule) != "object") continue;
if ("menus" in thisModule) {
for (var menuName in thisModule.menus) {
if (thisModule.menus.hasOwnProperty(menuName)) {
if (!(menuName in menu.menuData)) {
menu.menuData[menuName] = thisModule.menus[menuName];
} else {
var thisMenu = thisModule.menus[menuName];
if (!("elements" in thisMenu)) continue;
for (var e = 0; e < thisMenu.elements.length; e++) {
menu.menuData[menuName].elements.push(thisMenu.elements[e]);
}
}
menu.menus[menuName] = menu.constructMenu(menuName, menu.menuData[menuName]);
}
}
}
}
}
window.menu.showMenu("main", 0);
}).catch(throwError);
}).catch(throwError);
};
var loadFromMeta = function (name, metadata) {
return new Promise((function (resolve, reject) {
var dependencies = [];
if (metadata.dependsOn) {
for (var d = 0; d < metadata.dependsOn.length; d++) {
var dependencyName = metadata.dependsOn[d];
var dependency = loaderData[dependencyName];
if (!loadings[dependencyName]) {
loadings[dependencyName] = loadFromMeta(dependencyName, dependency);
}
dependencies.push(loadings[dependencyName]);
}
}
Promise.all(dependencies).then((function (deps) {
loadings[name] = load(metadata.source).then(function (mod) {
window[metadata.loadAs || name] = mod;
resolve(mod);
}).catch(throwError);
}).bind(name)).catch(throwError);
}).bind(name));
};
var render = window.render = function (instanceIndex) {
if (instanceWorlds[instanceIndex]) {
renderers[instanceIndex].render(worlds[instanceWorlds[instanceIndex]], cameras[instanceIndex]);
}
};
var createWorld = window.createWorld = function (name, generator = "flat", options, generateInitialChunks = true) {
return new Promise(function (resolve, reject) {
window.worlds[name] = new core.modules["world"].World({
"generator": generator
});
if (!generateInitialChunks) return resolve(window.worlds[name]);
var min = [-4, 0, -4];
var max = [4, 8, 4];
var positions = [];
for (var x = min[0]; x < max[0]; x++) {
for (var z = min[2]; z < max[2]; z++) {
for (var y = min[1]; y < max[1]; y++) {
positions.push([x, y, z]);
}
}
}
var chunkGenerators = [];
genNext = function (pos, p) {
chunkGenerators.push(
worlds[name].generateChunk(pos[p])
.then(function (chunk) {
if (pos[p + 1]) return genNext(pos, p + 1);
Promise.all(chunkGenerators).then(function (chunks) {
resolve(worlds[name]);
}).catch(throwError);
})
.catch(throwError)
);
};
genNext(positions, 0);
});
};
var startGame = window.startGame = function (instance, worldName) {
instanceWorlds[instance] = worldName;
renderers[instance].setAnimationLoop(render.bind(window, instance));
inputs[instance].grab();
var chunkSize = window.worlds[worldName].chunkSize;
var positions = [];
worlds[worldName].chunks.forEach(function (chunk, c) {
positions.push(
c.split(":")
.map(coord => parseInt(coord))
);
});
if (positions.length > 0) {
constructNext = function (pos, p) {
worlds[worldName].constructChunk(pos[p]).then(function (chunk) {
worlds[worldName].addChunk(chunk);
if (pos[p + 1]) return constructNext(pos, p + 1);
}).catch(throwError);
};
constructNext(positions, 0);
}
};
window.addEventListener("resize", function (event) {
reorganizeRenderers(false);
for (var r = 0; r < renderers.length; r++) {
var rdr = renderers[r];
var rdrDOM = rdr.domElement;
var cam = cameras[r];
rdr.setSize(rdrDOM.clientWidth, rdrDOM.clientHeight);
cam.aspect = rdrDOM.clientWidth / rdrDOM.clientHeight;
cam.updateProjectionMatrix();
}
});
var reorganizeRenderers = function (remakeLayout = true) {
var rows = [];
var rowAmount = Math.round(Math.sqrt(renderers.length));
if (remakeLayout) {
for (var r = renderersContainer.childElementCount - 1; r >= 0; r--) {
renderersContainer.children.item(r).remove();
}
for (var r = 0; r < rowAmount; r++) {
rows[r] = document.createElement("div");
rows[r].style.width = "100%";
rows[r].style.height = "calc(100% / " + rowAmount + ")";
renderersContainer.append(rows[r]);
}
for (var r = 0; r < renderers.length; r++) {
rows[Math.floor((r / renderers.length) * rowAmount)].append(renderers[r].domElement);
}
} else {
for (var r = renderersContainer.childElementCount - 1; r >= 0; r--) {
rows[r] = renderersContainer.children.item(r);
}
}
for (var r = 0; r < rowAmount; r++) {
var row = rows[r];
for (var rd = 0; rd < row.childElementCount; rd++) {
row.children[rd].style.width = "calc(100% / " + row.childElementCount + ")";
row.children[rd].style.height = "100%";
}
}
};
var addPlayer = function (instance, controller) {
renderers[instance] = new core.modules["render"].Renderer({
"preserveDrawingBuffer": true,
"autoResize": true
});
var instanceDOMElement = renderers[instance].domElement;
reorganizeRenderers();
for (var r = 0; r < renderers.length; r++) {
var rdr = renderers[r];
var rdrDOM = rdr.domElement;
rdr.setSize(rdrDOM.clientWidth, rdrDOM.clientHeight, false);
}
cameras[instance] = new core.modules["render"].PerspectiveCamera(130, instanceDOMElement.width / instanceDOMElement.height, 0.0005, 8192);
if (controller instanceof core.modules["input"].Controller) {
inputs[instance] = controller;
inputs[instance].domElement = instanceDOMElement;
} else {
inputs[instance] = new core.modules["input"].Controller("desktop", {
"domElement": instanceDOMElement
});
}
renderers[instance].setAnimationLoop(render.bind(window, instance));
};
var quitGame = window.quitGame = function (instance) {
};
var closeGame = window.closeGame = function () {
window.close();
};
var openSave = window.openSave = function (archive) {
return new Promise(function (resolve, reject) {
window.fflate.unzip(new Uint8Array(archive), {}, function (error, data) {
if (error) return reject(error);
var loadedWorlds = {};
for (var filePath in data) {
if (data.hasOwnProperty(filePath)) {
var matches = filePath.match(/([^\/]+)\/meta\.json/);
if (!matches) continue;
if (matches[0] !== filePath) continue;
if (!matches[1]) continue;
var worldFolderName = matches[1];
let worldMeta;
try {
worldMeta = JSON.parse(window.fflate.strFromU8(data["" + worldFolderName + "/meta.json"]));
} catch (err) {
console.error(err);
continue;
}
var worldName = worldMeta.name;
loadedWorlds[worldName] = new core.modules["world"].World({
"generator": worldMeta.generator
});
var chunkFileNameMatcher = new RegExp(worldFolderName + "\/chunks\/(-?[0-9]+:-?[0-9]+:-?[0-9]+)\.json");
for (var fileName in data) {
if (data.hasOwnProperty(fileName)) {
var nameMatches = fileName.match(chunkFileNameMatcher);
if (!nameMatches) continue;
if (nameMatches[0] !== fileName) continue;
if (!nameMatches[1]) continue;
var chunkFileName = nameMatches[1];
let chunkData;
try {
chunkData = JSON.parse(window.fflate.strFromU8(data[worldFolderName + "/chunks/" + chunkFileName + ".json"]));
} catch (err) {
console.error(err);
continue;
}
var thisChunk = new core.modules["world"].Chunk(chunkData.size, loadedWorlds[worldName]);
for (var b = 0; b < chunkData.blocks.length; b++) {
thisChunk.blocks[b] = chunkData.blocks[b];
}
var chunkPosition = chunkFileName.split(":").map(function (c) {
return parseInt(c);
});
loadedWorlds[worldName].setChunk(thisChunk, chunkPosition);
loadedWorlds[worldName].add(thisChunk);
}
}
}
}
resolve(loadedWorlds);
});
});
};
var makeSave = window.makeSave = function () {
return new Promise(function (resolve, reject) {
var files = {};
for (var world in worlds) {
if (worlds.hasOwnProperty(world)) {
var thisWorld = worlds[world].toJSON();
var worldMeta = {
"name": world,
"generator": thisWorld.generator
};
files[world + "/meta.json"] = fflate.strToU8(JSON.stringify(worldMeta, null, "\t"));
for (var chunk in thisWorld.chunks) {
if (thisWorld.chunks.hasOwnProperty(chunk)) {
var thisChunk = thisWorld.chunks[chunk];
files[world + "/chunks/" + chunk + ".json"] = fflate.strToU8(JSON.stringify(thisChunk, null, "\t"));
}
}
}
}
window.fflate.zip(files, function (error, archive) {
if (error) return reject(error);
resolve(archive);
});
});
};
let core;
var currentLanguage = window.currentLanguage = "en-US";
var instanceWorlds = window.instanceWorlds = [];
var renderers = window.renderers = [];
var cameras = window.cameras = [];
var inputs = window.inputs = [];
var loadings = {};
let resourcePacks = window.resourcePacks = [];
let worlds = window.worlds = {};
let renderersContainer;
+59
View File
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width">
<meta charset="utf-8">
<title>XVoxel</title>
<link rel="stylesheet" href="./assets/stylesheets/game.css">
<script src="./lib/loader.js" charset="utf-8"></script>
<script src="./game.js" charset="utf-8"></script>
<meta name="application-name" content="XVoxel">
<link rel="icon" type="image/png" href="./assets/images/xvoxel.png">
<meta name="theme-color" content="#FF1493">
<meta name="msapplication-TileColor" content="#FF1493">
<meta name="apple-mobile-web-app-title" content="XVoxel">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="An open-source JavaScript voxel game and engine. ">
<meta property="og:title" content="XVoxel">
<meta property="og:description" content="An open-source JavaScript voxel game and engine. ">
<meta property="og:image" content="./assets/images/xvoxel.png">
</head>
<body>
<header id="header">
<h1 id="title">XVoxel</h1>
<div id="actionbuttoncontainer">
</div>
</header>
<div id="gui">
<div id="debug" style="display: none;">
<span>Render :&nbsp;<p id="debugfps">NaN FPS</p>&nbsp;/&nbsp;<p id="debugms">NaN ms</p></span>
</div>
<div id="touchcontrols" style="display: none;">
<div id="dpad">
</div>
<div id="secpad">
</div>
</div>
<img id="crosshair" alt="crosshair" class="initially-hidden">
</div>
<div id="renderers" class="splitview">
</div>
<div id="menus">
</div>
<div id="loadingscreen" style="display: none;">
<div id="loadingbar" class="progressbar">
<p id="loadingtext">Loading...</p>
<div id="loadingbarprogress" class="progress" style="width: 0%;">
</div>
</div>
</div>
</body>
</html>
+953
View File
@@ -0,0 +1,953 @@
// This is ammo.js, a port of Bullet Physics to JavaScript. zlib licensed.
var Ammo = (() => {
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
return (
function(Ammo) {
Ammo = Ammo || {};
function aa(a,c){return Object.prototype.hasOwnProperty.call(a,c)}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,d){if(a==Array.prototype||a==Object.prototype)return a;a[c]=d.value;return a};function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var d=a[c];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");}var ea=da(this);
function fa(a,c){if(c)a:{var d=ea;a=a.split(".");for(var e=0;e<a.length-1;e++){var f=a[e];if(!(f in d))break a;d=d[f]}a=a[a.length-1];e=d[a];c=c(e);c!=e&&null!=c&&ba(d,a,{configurable:!0,writable:!0,value:c})}}var ha="function"==typeof Object.assign?Object.assign:function(a,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(e)for(var f in e)aa(e,f)&&(a[f]=e[f])}return a};fa("Object.assign",function(a){return a||ha});
function ia(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}}
fa("WeakMap",function(a){function c(E){this.zB=(W+=Math.random()+1).toString();if(E){var p="undefined"!=typeof Symbol&&Symbol.iterator&&E[Symbol.iterator];for(E=p?p.call(E):{next:ia(E)};!(p=E.next()).done;)p=p.value,this.set(p[0],p[1])}}function d(){}function e(E){var p=typeof E;return"object"===p&&null!==E||"function"===p}function f(E){if(!aa(E,y)){var p=new d;ba(E,y,{value:p})}}function m(E){var p=Object[E];p&&(Object[E]=function(G){if(G instanceof d)return G;Object.isExtensible(G)&&f(G);return p(G)})}
if(function(){if(!a||!Object.seal)return!1;try{var E=Object.seal({}),p=Object.seal({}),G=new a([[E,2],[p,3]]);if(2!=G.get(E)||3!=G.get(p))return!1;G.delete(E);G.set(p,4);return!G.has(E)&&4==G.get(p)}catch(ca){return!1}}())return a;var y="$jscomp_hidden_"+Math.random();m("freeze");m("preventExtensions");m("seal");var W=0;c.prototype.set=function(E,p){if(!e(E))throw Error("Invalid WeakMap key");f(E);if(!aa(E,y))throw Error("WeakMap key fail: "+E);E[y][this.zB]=p;return this};c.prototype.get=function(E){return e(E)&&
aa(E,y)?E[y][this.zB]:void 0};c.prototype.has=function(E){return e(E)&&aa(E,y)&&aa(E[y],this.zB)};c.prototype.delete=function(E){return e(E)&&aa(E,y)&&aa(E[y],this.zB)?delete E[y][this.zB]:!1};return c});
fa("String.prototype.startsWith",function(a){return a?a:function(c,d){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(c instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var e=this+"";c+="";var f=e.length,m=c.length;d=Math.max(0,Math.min(d|0,e.length));for(var y=0;y<m&&d<f;)if(e[d++]!=c[y++])return!1;return y>=m}});var b;b||(b=typeof Ammo !== 'undefined' ? Ammo : {});
var Promise=function(){function a(){}function c(p,G){return function(){p.apply(G,arguments)}}function d(p){if(!(this instanceof d))throw new TypeError("Promises must be constructed via new");if("function"!=typeof p)throw new TypeError("not a function");this.nB=0;this.bC=!1;this.oB=void 0;this.rB=[];E(p,this)}function e(p,G){for(;3===p.nB;)p=p.oB;0===p.nB?p.rB.push(G):(p.bC=!0,d.cC(function(){var ca=1===p.nB?G.WE:G.XE;if(null===ca)(1===p.nB?f:m)(G.promise,p.oB);else{try{var Ha=ca(p.oB)}catch(Eb){m(G.promise,
Eb);return}f(G.promise,Ha)}}))}function f(p,G){try{if(G===p)throw new TypeError("A promise cannot be resolved with itself.");if(G&&("object"==typeof G||"function"==typeof G)){var ca=G.then;if(G instanceof d){p.nB=3;p.oB=G;y(p);return}if("function"==typeof ca){E(c(ca,G),p);return}}p.nB=1;p.oB=G;y(p)}catch(Ha){m(p,Ha)}}function m(p,G){p.nB=2;p.oB=G;y(p)}function y(p){2===p.nB&&0===p.rB.length&&d.cC(function(){p.bC||d.dC(p.oB)});for(var G=0,ca=p.rB.length;G<ca;G++)e(p,p.rB[G]);p.rB=null}function W(p,
G,ca){this.WE="function"==typeof p?p:null;this.XE="function"==typeof G?G:null;this.promise=ca}function E(p,G){var ca=!1;try{p(function(Ha){ca||(ca=!0,f(G,Ha))},function(Ha){ca||(ca=!0,m(G,Ha))})}catch(Ha){ca||(ca=!0,m(G,Ha))}}d.prototype["catch"]=function(p){return this.then(null,p)};d.prototype.then=function(p,G){var ca=new this.constructor(a);e(this,new W(p,G,ca));return ca};d.all=function(p){return new d(function(G,ca){function Ha(Wc,fc){try{if(fc&&("object"==typeof fc||"function"==typeof fc)){var Xc=
fc.then;if("function"==typeof Xc){Xc.call(fc,function(Ec){Ha(Wc,Ec)},ca);return}}Eb[Wc]=fc;0===--TF&&G(Eb)}catch(Ec){ca(Ec)}}if(!Array.isArray(p))return ca(new TypeError("Promise.all accepts an array"));var Eb=Array.prototype.slice.call(p);if(0===Eb.length)return G([]);for(var TF=Eb.length,rc=0;rc<Eb.length;rc++)Ha(rc,Eb[rc])})};d.resolve=function(p){return p&&"object"==typeof p&&p.constructor==d?p:new d(function(G){G(p)})};d.reject=function(p){return new d(function(G,ca){ca(p)})};d.race=function(p){return new d(function(G,
ca){if(!Array.isArray(p))return ca(new TypeError("Promise.race accepts an array"));for(var Ha=0,Eb=p.length;Ha<Eb;Ha++)d.resolve(p[Ha]).then(G,ca)})};d.cC="function"==typeof setImmediate&&function(p){setImmediate(p)}||function(p){setTimeout(p,0)};d.dC=function(p){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",p)};return d}();
"undefined"==typeof Object.assign&&(Object.assign=function(a,c){for(var d=1;d<arguments.length;d++)if(c=arguments[d])for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e]);return a});var ja,ka;b.ready=new Promise(function(a,c){ja=a;ka=c});var la=Object.assign({},b),ma="object"==typeof window,na="function"==typeof importScripts,oa="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,pa="",qa,ra,sa,fs,ta,ua;
if(oa)pa=na?require("path").dirname(pa)+"/":__dirname+"/",ua=function(){ta||(fs=require("fs"),ta=require("path"))},qa=function(a,c){var d=va(a);if(d)return c?d:d.toString();ua();a=ta.normalize(a);return fs.readFileSync(a,c?void 0:"utf8")},sa=function(a){a=qa(a,!0);a.buffer||(a=new Uint8Array(a));return a},ra=function(a,c,d){var e=va(a);e&&c(e);ua();a=ta.normalize(a);fs.readFile(a,function(f,m){f?d(f):c(m.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",
function(a){throw a;}),process.on("unhandledRejection",function(a){throw a;}),b.inspect=function(){return"[Emscripten Module object]"};else if(ma||na)na?pa=self.location.href:"undefined"!=typeof document&&document.currentScript&&(pa=document.currentScript.src),_scriptDir&&(pa=_scriptDir),pa=0!==pa.indexOf("blob:")?pa.substr(0,pa.replace(/[?#].*/,"").lastIndexOf("/")+1):"",qa=function(a){try{var c=new XMLHttpRequest;c.open("GET",a,!1);c.send(null);return c.responseText}catch(f){if(a=va(a)){c=[];for(var d=
0;d<a.length;d++){var e=a[d];255<e&&(wa&&xa("Character code "+e+" ("+String.fromCharCode(e)+") at offset "+d+" not in 0x00-0xFF."),e&=255);c.push(String.fromCharCode(e))}return c.join("")}throw f;}},na&&(sa=function(a){try{var c=new XMLHttpRequest;c.open("GET",a,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)}catch(d){if(a=va(a))return a;throw d;}}),ra=function(a,c,d){var e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){if(200==
e.status||0==e.status&&e.response)c(e.response);else{var f=va(a);f?c(f.buffer):d()}};e.onerror=d;e.send(null)};b.print||console.log.bind(console);var ya=b.printErr||console.warn.bind(console);Object.assign(b,la);la=null;var za=[],Aa,Ba;b.wasmBinary&&(Ba=b.wasmBinary);var noExitRuntime=b.noExitRuntime||!0;function Ca(){this.buffer=new ArrayBuffer(Da/65536*65536)}function Ea(){this.exports=(
// EMSCRIPTEN_START_ASM
function instantiate(ma){function e(f){f.grow=function(b){var a=this.length;this.length=this.length+b;return a};f.set=function(c,d){this[c]=d};f.get=function(c){return this[c]};return f}var g;var h=new Uint8Array(123);for(var c=25;c>=0;--c){h[48+c]=52+c;h[65+c]=c;h[97+c]=26+c}h[43]=62;h[47]=63;function n(o,p,q){var i,j,c=0,k=p,l=q.length,m=p+(l*3>>2)-(q[l-2]=="=")-(q[l-1]=="=");for(;c<l;c+=4){i=h[q.charCodeAt(c+1)];j=h[q.charCodeAt(c+2)];o[k++]=h[q.charCodeAt(c)]<<2|i>>4;if(k<m)o[k++]=i<<4|j>>2;if(k<m)o[k++]=j<<6|h[q.charCodeAt(c+3)]}}function r(s){n(g,1028,"jAQAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAAAARAAAAEgAAABMAAAAUAAAAFQAAABYAAAAXAAAAMTFEZWJ1Z0RyYXdlcgAxMmJ0SURlYnVnRHJhdwAAAAD4aAAAcgQAACBpAABkBAAAhAQAAAAAAACEBAAAGAAAABkAAAAaAAAABAAAAAUAAAAGAAAABwAAAAgAAAAaAAAAGgAAABoAAAAaAAAAGgAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAABpaWlpAGlpaWRpaQBpaQBpaWkAaWkAaQAAAAAAXAUAABsAAAAcAAAAHQAAAB4AAAAyMGJ0RGVmYXVsdE1vdGlvblN0YXRlADEzYnRNb3Rpb25TdGF0ZQAA+GgAAEMFAAAgaQAALAUAAFQFAAAAAAAAVAUAAB8AAAAgAAAAGgAAABoAAAAAAAAA+AUAACEAAAAiAAAAIwAAACQAAABOMTZidENvbGxpc2lvbldvcmxkMjRDbG9zZXN0UmF5UmVzdWx0Q2FsbGJhY2tFAE4xNmJ0Q29sbGlzaW9uV29ybGQxN1JheVJlc3VsdENhbGxiYWNrRQAA+GgAAMcFAAAgaQAAmAUAAPAFAAAAAAAA8AUAACUAAAAmAAAAIwAAABoAAAAAAAAAZAYAACcAAAAoAAAAIwAAACkAAABOMTZidENvbGxpc2lvbldvcmxkMjRBbGxIaXRzUmF5UmVzdWx0Q2FsbGJhY2tFAAAgaQAANAYAAPAFAAAAAAAA3AYAACoAAAArAAAALAAAAC0AAAAyOUNvbmNyZXRlQ29udGFjdFJlc3VsdENhbGxiYWNrAE4xNmJ0Q29sbGlzaW9uV29ybGQyMUNvbnRhY3RSZXN1bHRDYWxsYmFja0UA+GgAAKgGAAAgaQAAiAYAANQGAAAAAAAA1AYAAC4AAAAvAAAALAAAABoAAABpaWlpaWlpaQAAAAAAAAAAjAcAADAAAAAxAAAAMgAAADMAAABOMTZidENvbGxpc2lvbldvcmxkMjdDbG9zZXN0Q29udmV4UmVzdWx0Q2FsbGJhY2tFAE4xNmJ0Q29sbGlzaW9uV29ybGQyMENvbnZleFJlc3VsdENhbGxiYWNrRQAAAAD4aAAAVgcAACBpAAAkBwAAhAcAAAAAAACEBwAANAAAADUAAAAyAAAAGgAAAAAAAABsCAAANgAAADcAAAA4AAAAOQAAADoAAAA7AAAAPAAAAD0AAAA+AAAAPwAAAEAAAABBAAAAQgAAAEMAAABEAAAARQAAAEYAAABHAAAASAAAAEkAAABKAAAASwAAAEwAAABNAAAATgAAAE8AAABQAAAAUQAAAFIAAABTAAAAVAAAAFUAAAAxN2J0VHJpYW5nbGVTaGFwZUV4ADE1YnRUcmlhbmdsZVNoYXBlAAAAIGkAAEwIAAC8PgAAIGkAADgIAABgCAAAAAAAAGAIAABWAAAAVwAAAFgAAAA5AAAAOgAAADsAAAA8AAAAPQAAAD4AAAA/AAAAQAAAAEEAAABCAAAAQwAAAEQAAABFAAAARgAAAEcAAABIAAAASQAAAEoAAABLAAAATAAAAE0AAABOAAAATwAAAFAAAABRAAAAUgAAAFMAAABUAAAAVQAAAEVtcHR5AHByZWRpY3RVbmNvbnN0cmFpbnRNb3Rpb25Tb2Z0Qm9keQBCb3gAQ29udmV4AHJheVRlc3QAcHJlZGljdGl2ZSBjb252ZXhTd2VlcFRlc3QAaXNsYW5kVW5pb25GaW5kQW5kUXVpY2tTb3J0AEdJbXBhY3RNZXNoU2hhcGVQYXJ0AFJvb3QAaW50AGZsb2F0AGJ0UG9zaXRpb25BbmRSYWRpdXMAc29sdmVTb2Z0Q29uc3RyYWludHMAc29sdmVDb25zdHJhaW50cwBjcmVhdGVQcmVkaWN0aXZlQ29udGFjdHMAZGlzcGF0Y2hBbGxDb2xsaXNpb25QYWlycwBjYWxjdWxhdGVPdmVybGFwcGluZ1BhaXJzAEFwcGx5Q2x1c3RlcnMAVXBkYXRlQ2x1c3RlcnMAdXBkYXRlQWN0aW9ucwBzb2x2ZUdyb3VwQ2FjaGVGcmllbmRseUl0ZXJhdGlvbnMAaW50ZWdyYXRlVHJhbnNmb3JtcwBzeW5jaHJvbml6ZU1vdGlvblN0YXRlcwBTb2Z0Qm9keSBhcHBseUZvcmNlcwBwcm9jZXNzSXNsYW5kcwBjYWxjdWxhdGVTaW11bGF0aW9uSXNsYW5kcwByZWxlYXNlIHByZWRpY3RpdmUgY29udGFjdCBtYW5pZm9sZHMAdXBkYXRlQWFiYnMAc29sdmVHcm91cENhY2hlRnJpZW5kbHlTZXR1cABzb2x2ZUdyb3VwAGFwcGx5IHNwZWN1bGF0aXZlIGNvbnRhY3QgcmVzdGl0dXRpb24AcHJlZGljdFVuY29uc3RyYWludE1vdGlvbgBwZXJmb3JtRGlzY3JldGVDb2xsaXNpb25EZXRlY3Rpb24AT3ZlcmZsb3cgaW4gQUFCQiwgb2JqZWN0IHJlbW92ZWQgZnJvbSBzaW11bGF0aW9uAHN0ZXBTaW11bGF0aW9uAGludGVybmFsU2luZ2xlU3RlcFNpbXVsYXRpb24AQ29udmV4VHJpbWVzaABHSW1wYWN0TWVzaABDQ0QgbW90aW9uIGNsYW1waW5nAHVwZGF0ZUFjdGl2YXRpb25TdGF0ZQBNdWx0aVNwaGVyZQBDYXBzdWxlU2hhcGUAQ29uZQBUcmlhbmdsZQBHSW1wYWN0Q29tcG91bmQAY29udmV4U3dlZXBDb21wb3VuZABkZWJ1Z0RyYXdXb3JsZABidEludEluZGV4RGF0YQBidE1lc2hQYXJ0RGF0YQBidFNvZnRCb2R5Sm9pbnREYXRhAGJ0Q29uZVR3aXN0Q29uc3RyYWludERhdGEAYnRTbGlkZXJDb25zdHJhaW50RGF0YQBidEdlbmVyaWM2RG9mU3ByaW5nQ29uc3RyYWludERhdGEAYnRHZW5lcmljNkRvZkNvbnN0cmFpbnREYXRhAGJ0U2hvcnRJbnRJbmRleFRyaXBsZXREYXRhAGJ0Q2hhckluZGV4VHJpcGxldERhdGEAYnRTb2Z0Qm9keUZsb2F0RGF0YQBidFJpZ2lkQm9keUZsb2F0RGF0YQBidFBvaW50MlBvaW50Q29uc3RyYWludEZsb2F0RGF0YQBidEhpbmdlQ29uc3RyYWludEZsb2F0RGF0YQBidFR5cGVkQ29uc3RyYWludEZsb2F0RGF0YQBidENvbGxpc2lvbk9iamVjdEZsb2F0RGF0YQBidFF1YW50aXplZEJ2aEZsb2F0RGF0YQBidER5bmFtaWNzV29ybGRGbG9hdERhdGEAYnRWZWN0b3IzRmxvYXREYXRhAFNvZnRSaWdpZEFuY2hvckRhdGEAU29mdEJvZHlDbHVzdGVyRGF0YQBidEJ2aFN1YnRyZWVJbmZvRGF0YQBTb2Z0Qm9keU1hdGVyaWFsRGF0YQBTb2Z0Qm9keUxpbmtEYXRhAFNvZnRCb2R5UG9zZURhdGEAYnRDeWxpbmRlclNoYXBlRGF0YQBidENvbGxpc2lvblNoYXBlRGF0YQBidENvbnZleEh1bGxTaGFwZURhdGEAYnRDb252ZXhJbnRlcm5hbFNoYXBlRGF0YQBidEdJbXBhY3RNZXNoU2hhcGVEYXRhAGJ0VHJpYW5nbGVNZXNoU2hhcGVEYXRhAGJ0TXVsdGlTcGhlcmVTaGFwZURhdGEAYnRDb25lU2hhcGVEYXRhAGJ0U3RhdGljUGxhbmVTaGFwZURhdGEAYnRDYXBzdWxlU2hhcGVEYXRhAGJ0Q29tcG91bmRTaGFwZURhdGEAYnRWZWN0b3IzRG91YmxlRGF0YQBTb2Z0Qm9keU5vZGVEYXRhAGJ0UXVhbnRpemVkQnZoTm9kZURhdGEAYnRPcHRpbWl6ZWRCdmhOb2RlRGF0YQBidFN0cmlkaW5nTWVzaEludGVyZmFjZURhdGEAU29mdEJvZHlGYWNlRGF0YQBidENvbXBvdW5kU2hhcGVDaGlsZERhdGEAU29mdEJvZHlUZXRyYURhdGEAQ3lsaW5kZXJaAENvbmVaAENhcHN1bGVaAEN5bGluZGVyWQBDeWxpbmRlclgAQ29uZVgAQ2Fwc3VsZVgAU09GVENMVVNURVIAQlZIVFJJQU5HTEVNRVNIAFNQSEVSRQBTVEFUSUNQTEFORQBIRUlHSFRGSUVMRABidEJVX1NpbXBsZXgxdG80AFB1cmUgdmlydHVhbCBmdW5jdGlvbiBjYWxsZWQhAElmIHlvdSBjYW4gcmVwcm9kdWLine truncated
// EMSCRIPTEN_START_FUNCS
function wD(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=Q(0),o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=Q(0),w=Q(0),x=0,y=0,z=Q(0),A=0,B=Q(0),C=Q(0),D=Q(0),E=Q(0),F=0,G=Q(0),I=Q(0),L=0,M=0,O=0,S=0,T=Q(0),U=Q(0),V=0,W=Q(0),X=Q(0),Z=Q(0),_=Q(0),$=0;d=ga-208|0;ga=d;c=J[a+52>>2];if(c){ia[J[J[c>>2]>>2]](c)|0;c=J[a+52>>2];if(c){J[8370]=J[8370]+1;ia[J[6783]](c)}}J[8369]=J[8369]+1;c=ia[J[6782]](132,16)|0;H[c+20|0]=1;J[c>>2]=15728;J[c+16>>2]=0;H[c+40|0]=1;J[c+8>>2]=0;J[c+12>>2]=0;J[c+36>>2]=0;H[c+60|0]=1;J[c+28>>2]=0;J[c+32>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[a+52>>2]=c;J[d+196>>2]=0;J[d+188>>2]=0;J[d+192>>2]=0;H[d+200|0]=1;if((ia[J[J[a>>2]+96>>2]](a)|0)>0){c=J[d+192>>2];F=K[d+200|0];while(1){a:{if((e|0)!=(j|0)){break a}m=e?e<<1:1;if((m|0)<=(e|0)){break a}if(m){J[8369]=J[8369]+1;l=ia[J[6782]](m<<4,16)|0}else{l=0}b:{if((e|0)<=0){break b}p=0;c=0;if(e-1>>>0>=3){x=e&-4;s=0;while(1){o=c<<4;u=o+l|0;i=g+o|0;f=J[i+4>>2];J[u>>2]=J[i>>2];J[u+4>>2]=f;f=J[i+12>>2];J[u+8>>2]=J[i+8>>2];J[u+12>>2]=f;f=o|16;u=f+l|0;i=f+g|0;f=J[i+12>>2];J[u+8>>2]=J[i+8>>2];J[u+12>>2]=f;f=J[i+4>>2];J[u>>2]=J[i>>2];J[u+4>>2]=f;f=o|32;u=f+l|0;i=f+g|0;f=J[i+12>>2];J[u+8>>2]=J[i+8>>2];J[u+12>>2]=f;f=J[i+4>>2];J[u>>2]=J[i>>2];J[u+4>>2]=f;f=o|48;u=f+l|0;i=f+g|0;f=J[i+12>>2];J[u+8>>2]=J[i+8>>2];J[u+12>>2]=f;f=J[i+4>>2];J[u>>2]=J[i>>2];J[u+4>>2]=f;c=c+4|0;s=s+4|0;if((x|0)!=(s|0)){continue}break}}u=e&3;if(!u){break b}while(1){e=c<<4;f=e+l|0;x=e+g|0;e=J[x+4>>2];J[f>>2]=J[x>>2];J[f+4>>2]=e;e=J[x+12>>2];J[f+8>>2]=J[x+8>>2];J[f+12>>2]=e;c=c+1|0;p=p+1|0;if((u|0)!=(p|0)){continue}break}}if(!(g?!g|!(F&255):1)){J[8370]=J[8370]+1;ia[J[6783]](g)}J[d+196>>2]=l;F=1;H[d+200|0]=1;J[d+192>>2]=m;c=m}g=J[d+196>>2];ia[J[J[a>>2]+108>>2]](a,h,g+(j<<4)|0);j=j+1|0;e=c;h=h+1|0;if((ia[J[J[a>>2]+96>>2]](a)|0)>(h|0)){continue}break}J[d+188>>2]=j}H[d+156|0]=1;J[d+152>>2]=0;H[d+176|0]=1;J[d+144>>2]=0;J[d+148>>2]=0;J[d+172>>2]=0;J[d+164>>2]=0;J[d+168>>2]=0;J[d+132>>2]=0;H[d+136|0]=1;J[d+124>>2]=0;J[d+128>>2]=0;c:{d:{if(b){J[d+28>>2]=0;H[d+32|0]=1;J[d+20>>2]=0;J[d+24>>2]=0;c=0;q=J[d+188>>2];if((q|0)>0){while(1){b=c;e:{c=c+1|0;if((q|0)<=(c|0)){break e}l=J[d+196>>2];t=l+(b<<4)|0;b=c;while(1){f:{g=b+1|0;if((g|0)>=(q|0)){break f}k=(b<<4)+l|0;m=g;while(1){v=N[t>>2];C=Q(N[k>>2]-v);b=(m<<4)+l|0;n=N[t+4>>2];B=Q(N[b+4>>2]-n);w=Q(N[b>>2]-v);z=Q(N[k+4>>2]-n);E=Q(Q(C*B)-Q(w*z));n=N[t+8>>2];v=Q(N[k+8>>2]-n);n=Q(N[b+8>>2]-n);w=Q(Q(v*w)-Q(n*C));v=Q(Q(z*n)-Q(B*v));D=Q(1);e=1;while(1){C=Q(E*D);B=Q(v*D);z=Q(w*D);n=Q(Q(C*C)+Q(Q(B*B)+Q(z*z)));g:{if(!(n>Q(9999999747378752e-20))){break g}n=Q(Q(1)/Q(Y(n)));I=Q(C*n);C=Q(z*n);z=Q(B*n);j=J[d+20>>2];if((j|0)>0){b=1;f=J[d+28>>2];if(Q(Q(I*N[f+8>>2])+Q(Q(z*N[f>>2])+Q(C*N[f+4>>2])))>Q(.9990000128746033)){break g}while(1){l=b;if((b|0)!=(j|0)){b=l+1|0;h=f+(l<<4)|0;if(!(Q(Q(I*N[h+8>>2])+Q(Q(z*N[h>>2])+Q(C*N[h+4>>2])))>Q(.9990000128746033))){continue}}break}if((j|0)>(l|0)){break g}}n=Q(Q(I*N[t+8>>2])+Q(Q(z*N[t>>2])+Q(C*N[t+4>>2])));f=J[d+188>>2];if((f|0)>0){b=1;u=J[d+196>>2];if(Q(Q(Q(Q(I*N[u+8>>2])+Q(Q(z*N[u>>2])+Q(C*N[u+4>>2])))-n)+Q(-.009999999776482582))>Q(0)){break g}while(1){l=b;if((b|0)!=(f|0)){b=l+1|0;h=u+(l<<4)|0;if(!(Q(Q(Q(Q(I*N[h+8>>2])+Q(Q(z*N[h>>2])+Q(C*N[h+4>>2])))-n)+Q(-.009999999776482582))>Q(0))){continue}}break}if((f|0)>(l|0)){break g}}n=Q(-n);h:{if(J[d+24>>2]!=(j|0)){break h}r=j?j<<1:1;if((r|0)<=(j|0)){break h}i:{if(!r){b=0;break i}J[8369]=J[8369]+1;b=ia[J[6782]](r<<4,16)|0;j=J[d+20>>2]}j:{if((j|0)<=0){break j}x=j&1;l=0;if((j|0)!=1){u=j&-2;j=0;while(1){i=l<<4;f=i+b|0;o=i+J[d+28>>2]|0;h=J[o+4>>2];J[f>>2]=J[o>>2];J[f+4>>2]=h;h=J[o+12>>2];J[f+8>>2]=J[o+8>>2];J[f+12>>2]=h;h=i|16;f=h+b|0;i=h+J[d+28>>2]|0;h=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=h;h=J[i+12>>2];J[f+8>>2]=J[i+8>>2];J[f+12>>2]=h;l=l+2|0;j=j+2|0;if((u|0)!=(j|0)){continue}break}}if(!x){break j}l=l<<4;h=l+b|0;f=l+J[d+28>>2]|0;l=J[f+4>>2];J[h>>2]=J[f>>2];J[h+4>>2]=l;l=J[f+12>>2];J[h+8>>2]=J[f+8>>2];J[h+12>>2]=l}l=J[d+28>>2];if(!(l?!l|!K[d+32|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](l)}J[d+28>>2]=b;H[d+32|0]=1;J[d+24>>2]=r;j=J[d+20>>2]}b=J[d+28>>2]+(j<<4)|0;N[b+12>>2]=n;N[b+8>>2]=I;N[b+4>>2]=C;N[b>>2]=z;J[d+20>>2]=J[d+20>>2]+1}b=e;D=Q(-1);e=0;if(b){continue}break}m=m+1|0;if((q|0)<=(m|0)){break f}l=J[d+196>>2];continue}}if((g|0)==(q|0)){break e}l=J[d+196>>2];b=g;continue}}if((c|0)!=(q|0)){continue}break}}J[d+108>>2]=0;H[d+112|0]=1;J[d+100>>2]=0;J[d+104>>2]=0;if(J[d+20>>2]<=0){break d}j=0;while(1){b=J[d+28>>2]+(j<<4)|0;J[d+80>>2]=J[b+8>>2];c=J[b+4>>2];J[d+72>>2]=J[b>>2];J[d+76>>2]=c;n=Q(N[b+12>>2]-Q(ia[J[J[a>>2]+48>>2]](a)));g=J[d+100>>2];k:{if((g|0)!=J[d+104>>2]){break k}u=g?g<<1:1;if((u|0)<=(g|0)){break k}l:{if(!u){A=0;break l}J[8369]=J[8369]+1;A=ia[J[6782]](u<<4,16)|0;g=J[d+100>>2]}m:{if((g|0)<=0){break m}c=0;if((g|0)!=1){l=g&-2;e=0;while(1){h=c<<4;m=h+A|0;f=h+J[d+108>>2]|0;b=J[f+4>>2];J[m>>2]=J[f>>2];J[m+4>>2]=b;b=J[f+12>>2];J[m+8>>2]=J[f+8>>2];J[m+12>>2]=b;b=h|16;m=b+A|0;h=b+J[d+108>>2]|0;b=J[h+4>>2];J[m>>2]=J[h>>2];J[m+4>>2]=b;b=J[h+12>>2];J[m+8>>2]=J[h+8>>2];J[m+12>>2]=b;c=c+2|0;e=eLine truncated
function OA(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=Q(0),p=0,q=Q(0),r=0,s=0,t=Q(0),u=Q(0),v=0,w=0,x=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),C=Q(0),D=Q(0),E=Q(0),F=Q(0),G=0,I=Q(0),L=Q(0),M=Q(0),O=Q(0),S=Q(0),T=Q(0),U=Q(0),V=Q(0),W=Q(0),X=Q(0),Z=Q(0),_=Q(0),$=Q(0),aa=Q(0),ba=0,ca=0,da=Q(0),ea=Q(0),fa=Q(0),ha=Q(0),ja=Q(0),ka=Q(0),la=Q(0),ma=0,na=Q(0),oa=Q(0),pa=Q(0),ra=Q(0);p=ga-256|0;ga=p;J[a+188>>2]=-1;ya(2822);J[a+184>>2]=0;a:{if((c|0)<=0){break a}if(c-1>>>0>=3){i=c&-4;while(1){l=k<<2;J[J[l+b>>2]+212>>2]=-1;J[J[(l|4)+b>>2]+212>>2]=-1;J[J[(l|8)+b>>2]+212>>2]=-1;J[J[(l|12)+b>>2]+212>>2]=-1;k=k+4|0;n=n+4|0;if((i|0)!=(n|0)){continue}break}}l=c&3;if(!l){break a}i=0;while(1){J[J[(k<<2)+b>>2]+212>>2]=-1;k=k+1|0;i=i+1|0;if((l|0)!=(i|0)){continue}break}}r=J[a+12>>2];if((r|0)<=(c|0)){r=c+1|0;if(r){J[8369]=J[8369]+1;i=ia[J[6782]](P(r,244),16)|0}else{i=0}j=J[a+8>>2];if((j|0)>0){n=0;while(1){l=P(n,244);m=l+i|0;s=l+J[a+16>>2]|0;l=J[s+4>>2];J[m>>2]=J[s>>2];J[m+4>>2]=l;l=J[s+12>>2];J[m+8>>2]=J[s+8>>2];J[m+12>>2]=l;l=J[s+28>>2];J[m+24>>2]=J[s+24>>2];J[m+28>>2]=l;l=J[s+20>>2];J[m+16>>2]=J[s+16>>2];J[m+20>>2]=l;l=J[s+44>>2];J[m+40>>2]=J[s+40>>2];J[m+44>>2]=l;l=J[s+36>>2];J[m+32>>2]=J[s+32>>2];J[m+36>>2]=l;l=J[s+52>>2];J[m+48>>2]=J[s+48>>2];J[m+52>>2]=l;l=J[s+60>>2];J[m+56>>2]=J[s+56>>2];J[m+60>>2]=l;sa(m- -64|0,s- -64|0,180);n=n+1|0;if((j|0)!=(n|0)){continue}break}}l=J[a+16>>2];if(!(l?!l|!K[a+20|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](l)}J[a+16>>2]=i;H[a+20|0]=1;J[a+12>>2]=r}qa(p+8|0,0,244);i=J[a+8>>2];if((i|0)<0){if((r|0)<0){l=J[a+16>>2];if(!(l?!l|!K[a+20|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](l)}H[a+20|0]=1;J[a+12>>2]=0;J[a+16>>2]=0}m=p+72|0;while(1){j=J[a+16>>2]+P(i,244)|0;J[j>>2]=0;J[j+4>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;l=J[p+36>>2];J[j+24>>2]=J[p+32>>2];J[j+28>>2]=l;l=J[p+28>>2];J[j+16>>2]=J[p+24>>2];J[j+20>>2]=l;l=J[p+44>>2];J[j+32>>2]=J[p+40>>2];J[j+36>>2]=l;l=J[p+52>>2];J[j+40>>2]=J[p+48>>2];J[j+44>>2]=l;l=J[p+60>>2];J[j+48>>2]=J[p+56>>2];J[j+52>>2]=l;l=J[p+68>>2];J[j+56>>2]=J[p+64>>2];J[j+60>>2]=l;sa(j- -64|0,m,180);l=i;i=l+1|0;if(l>>>0<=i>>>0){continue}break}}J[a+8>>2]=0;if((c|0)>0){i=0;while(1){l=(i<<2)+b|0;m=yb(a,J[l>>2],N[h+12>>2]);j=J[l>>2];if(!(!(K[j+236|0]&2)|!j|(!(K[j+504|0]&2)|N[j+344>>2]==Q(0)))){l=J[a+16>>2];z=N[h+76>>2];I=N[j+336>>2];W=N[j+44>>2];X=N[j+40>>2];Z=N[j+36>>2];L=N[j+332>>2];_=N[j+28>>2];$=N[j+12>>2];q=N[j+404>>2];aa=N[j+24>>2];D=N[j+8>>2];u=N[j+400>>2];E=N[j+20>>2];M=N[j+328>>2];x=N[j+4>>2];o=N[j+396>>2];J[p+20>>2]=0;A=Q(Q(1)/q);t=Q(_*A);B=Q(Q(1)/o);q=Q(E*B);C=Q(Q(1)/u);o=Q(aa*C);u=Q(Q(I*Q(Q(W*t)+Q(Q(Z*q)+Q(X*o))))+Q(Q(M*Q(Q($*t)+Q(Q(x*q)+Q(D*o))))+Q(L*Q(Q(_*t)+Q(Q(E*q)+Q(aa*o))))));t=Q(A*$);q=Q(B*x);o=Q(C*D);o=Q(Q(I*Q(Q(W*t)+Q(Q(Z*q)+Q(X*o))))+Q(Q(M*Q(Q($*t)+Q(Q(x*q)+Q(D*o))))+Q(L*Q(Q(_*t)+Q(Q(E*q)+Q(o*aa))))));y=Q(Q(M*u)-Q(L*o));N[p+16>>2]=y;F=Q(I*o);t=Q(A*W);q=Q(B*Z);o=Q(C*X);o=Q(Q(I*Q(Q(W*t)+Q(Q(Z*q)+Q(X*o))))+Q(Q(M*Q(Q($*t)+Q(Q(x*q)+Q(D*o))))+Q(L*Q(Q(_*t)+Q(Q(E*q)+Q(aa*o))))));q=Q(F-Q(M*o));N[p+12>>2]=q;u=Q(Q(L*o)-Q(u*I));N[p+8>>2]=u;o=Q(Q(y*y)+Q(Q(u*u)+Q(q*q)));if(o>Q(z*z)){o=Q(Q(Q(1)/Q(Y(o)))*z);N[p+16>>2]=y*o;N[p+12>>2]=q*o;N[p+8>>2]=u*o}B=N[j+304>>2];C=N[j+272>>2];t=N[j+288>>2];q=N[j+300>>2];u=N[j+268>>2];o=N[j+284>>2];l=l+P(m,244)|0;x=N[p+16>>2];z=N[p+8>>2];y=N[p+12>>2];A=N[h+12>>2];N[l+224>>2]=N[l+224>>2]-Q(Q(Q(N[j+296>>2]*x)+Q(Q(N[j+264>>2]*z)+Q(y*N[j+280>>2])))*A);N[l+228>>2]=N[l+228>>2]-Q(A*Q(Q(q*x)+Q(Q(u*z)+Q(y*o))));N[l+232>>2]=N[l+232>>2]-Q(A*Q(Q(B*x)+Q(Q(C*z)+Q(y*t))))}i=i+1|0;if((i|0)!=(c|0)){continue}break}}b:{if((g|0)<=0){break b}k=0;if((g|0)!=1){i=g&-2;b=0;while(1){c=k<<2;l=J[c+f>>2];ia[J[J[l>>2]+8>>2]](l);J[l+36>>2]=0;c=J[(c|4)+f>>2];ia[J[J[c>>2]+8>>2]](c);J[c+36>>2]=0;k=k+2|0;b=b+2|0;if((i|0)!=(b|0)){continue}break}}if(!(g&1)){break b}b=J[(k<<2)+f>>2];ia[J[J[b>>2]+8>>2]](b);J[b+36>>2]=0}b=J[a+168>>2];if(!((g|0)<=(b|0)|J[a+172>>2]>=(g|0))){c:{if(!g){i=0;break c}J[8369]=J[8369]+1;i=ia[J[6782]](g<<3,16)|0;b=J[a+168>>2]}d:{if((b|0)<=0){break d}n=0;k=0;if(b-1>>>0>=3){s=b&-4;c=0;while(1){G=k<<3;j=G+i|0;m=G+J[a+176>>2]|0;l=J[m+4>>2];J[j>>2]=J[m>>2];J[j+4>>2]=l;l=G|8;j=l+i|0;m=l+J[a+176>>2]|0;l=J[m+4>>2];J[j>>2]=J[m>>2];J[j+4>>2]=l;l=G|16;j=l+i|0;m=l+J[a+176>>2]|0;l=J[m+4>>2];J[j>>2]=J[m>>2];J[j+4>>2]=l;l=G|24;j=l+i|0;m=l+J[a+176>>2]|0;l=J[m+4>>2];J[j>>2]=J[m>>2];J[j+4>>2]=l;k=k+4|0;c=c+4|0;if((s|0)!=(c|0)){continue}break}}m=b&3;if(!m){break d}while(1){b=k<<3;l=b+i|0;c=b+J[a+176>>2]|0;b=J[c+4>>2];J[l>>2]=J[c>>2];J[l+4>>2]=b;k=k+1|0;n=n+1|0;if((m|0)!=(n|0)){continue}break}}b=J[a+176>>2];if(!(b?!b|!K[a+180|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}J[a+176>>2]=i;H[a+180|0]=1;J[a+172>>2]=g}J[a+168>>2]=g;n=0;if((g|0)>0){i=0;while(1){m=J[a+176>>2];l=(i<<2)+f|0;b=J[l>>2];c=J[b+44>>2];if(c){J[c>>2]=0;J[c+4>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[l>>2]}c=m+(i<<3)|0;e:{if(K[b+20|0]){ia[J[J[b>>2]+Line truncated
function sm(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;J[a+168>>2]=J[a+152>>2];H[b+80|0]=1;H[b+60|0]=0;J[b+52>>2]=282;J[b>>2]=12132;J[b+76>>2]=0;H[b+100|0]=1;J[b+68>>2]=0;J[b+72>>2]=0;J[b+96>>2]=0;H[b+120|0]=1;J[b+88>>2]=0;J[b+92>>2]=0;J[b+116>>2]=0;H[b+140|0]=1;J[b+108>>2]=0;J[b+112>>2]=0;J[b+136>>2]=0;H[b+164|0]=1;J[b+144>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+160>>2]=0;J[b+152>>2]=0;J[b+156>>2]=0;J[b+168>>2]=0;J[b+28>>2]=2139095039;J[b+32>>2]=0;J[b+20>>2]=2139095039;J[b+24>>2]=2139095039;J[b+12>>2]=-8388609;J[b+16>>2]=0;J[b+4>>2]=-8388609;J[b+8>>2]=-8388609;c=J[a+56>>2];a:{if(d){J[b+56>>2]=c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);H[b+4|0]=K[a+7|0];H[b+5|0]=K[a+6|0];H[b+6|0]=K[a+5|0];H[b+7|0]=K[a+4|0];H[b+8|0]=K[a+11|0];H[b+9|0]=K[a+10|0];H[b+10|0]=K[a+9|0];H[b+11|0]=K[a+8|0];H[b+12|0]=K[a+15|0];H[b+13|0]=K[a+14|0];H[b+14|0]=K[a+13|0];H[b+15|0]=K[a+12|0];H[b+16|0]=K[a+19|0];H[b+17|0]=K[a+18|0];H[b+18|0]=K[a+17|0];H[b+19|0]=K[a+16|0];H[b+20|0]=K[a+23|0];H[b+21|0]=K[a+22|0];H[b+22|0]=K[a+21|0];H[b+23|0]=K[a+20|0];H[b+24|0]=K[a+27|0];H[b+25|0]=K[a+26|0];H[b+26|0]=K[a+25|0];H[b+27|0]=K[a+24|0];H[b+28|0]=K[a+31|0];H[b+29|0]=K[a+30|0];H[b+30|0]=K[a+29|0];H[b+31|0]=K[a+28|0];H[b+32|0]=K[a+35|0];H[b+33|0]=K[a+34|0];H[b+34|0]=K[a+33|0];H[b+35|0]=K[a+32|0];H[b+36|0]=K[a+39|0];H[b+37|0]=K[a+38|0];H[b+38|0]=K[a+37|0];H[b+39|0]=K[a+36|0];H[b+40|0]=K[a+43|0];H[b+41|0]=K[a+42|0];H[b+42|0]=K[a+41|0];H[b+43|0]=K[a+40|0];H[b+44|0]=K[a+47|0];H[b+45|0]=K[a+46|0];H[b+46|0]=K[a+45|0];H[b+47|0]=K[a+44|0];H[b+48|0]=K[a+51|0];H[b+49|0]=K[a+50|0];H[b+50|0]=K[a+49|0];H[b+51|0]=K[a+48|0];c=J[a+144>>2];J[b+144>>2]=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=J[a+168>>2];c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);break a}J[b+56>>2]=c;c=J[a+16>>2];J[b+12>>2]=J[a+12>>2];J[b+16>>2]=c;c=J[a+8>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=c;c=J[a+32>>2];J[b+28>>2]=J[a+28>>2];J[b+32>>2]=c;c=J[a+24>>2];J[b+20>>2]=J[a+20>>2];J[b+24>>2]=c;c=J[a+48>>2];J[b+44>>2]=J[a+44>>2];J[b+48>>2]=c;c=J[a+40>>2];J[b+36>>2]=J[a+36>>2];J[b+40>>2]=c;J[b+144>>2]=J[a+144>>2];c=J[a+168>>2]}J[b+168>>2]=c;H[b+60|0]=K[a+60|0];i=b+172|0;j=J[a+56>>2];b:{if(K[a+60|0]){c=J[b+136>>2];if(!(c?!c|!K[b+140|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](c)}J[b+136>>2]=i;H[b+140|0]=0;c:{if(!d){if((j|0)<=0){break c}h=J[a+136>>2];while(1){f=e<<4;c=f+i|0;f=f+h|0;I[c>>1]=L[f>>1];I[c+2>>1]=L[f+2>>1];I[c+4>>1]=L[f+4>>1];I[c+6>>1]=L[f+6>>1];I[c+8>>1]=L[f+8>>1];I[c+10>>1]=L[f+10>>1];J[c+12>>2]=J[f+12>>2];e=e+1|0;if((j|0)!=(e|0)){continue}break}break c}if((j|0)<=0){break c}h=J[a+136>>2];while(1){f=e<<4;c=f+i|0;f=f+h|0;g=L[f>>1];I[c>>1]=g<<8|g>>>8;g=L[f+2>>1];I[c+2>>1]=g<<8|g>>>8;g=L[f+4>>1];I[c+4>>1]=g<<8|g>>>8;g=L[f+6>>1];I[c+6>>1]=g<<8|g>>>8;g=L[f+8>>1];I[c+8>>1]=g<<8|g>>>8;g=L[f+10>>1];I[c+10>>1]=g<<8|g>>>8;g=c;c=J[f+12>>2];J[g+12>>2]=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);e=e+1|0;if((j|0)!=(e|0)){continue}break}}f=b+128|0;e=j<<4;break b}c=J[b+96>>2];if(!(c?!c|!K[b+100|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](c)}J[b+96>>2]=i;H[b+100|0]=0;J[b+92>>2]=j;J[b+88>>2]=j;d:{e:{if(!d){if((j|0)>0){break e}c=i;break d}if((j|0)<=0){c=i;break d}g=J[a+96>>2];c=i;while(1){h=f<<6;c=h+c|0;e=g+h|0;H[c|0]=K[e+3|0];H[c+1|0]=K[e+2|0];H[c+2|0]=K[e+1|0];H[c+3|0]=K[e|0];H[c+4|0]=K[e+7|0];H[c+5|0]=K[e+6|0];H[c+6|0]=K[e+5|0];H[c+7|0]=K[e+4|0];H[c+8|0]=K[e+11|0];H[c+9|0]=K[e+10|0];H[c+10|0]=K[e+9|0];H[c+11|0]=K[e+8|0];H[c+12|0]=K[e+15|0];H[c+13|0]=K[e+14|0];H[c+14|0]=K[e+13|0];H[c+15|0]=K[e+12|0];c=h+J[b+96>>2]|0;e=h+J[a+96>>2]|0;H[c+16|0]=K[e+19|0];H[c+17|0]=K[e+18|0];H[c+18|0]=K[e+17|0];H[c+19|0]=K[e+16|0];H[c+20|0]=K[e+23|0];H[c+21|0]=K[e+22|0];H[c+22|0]=K[e+21|0];H[c+23|0]=K[e+20|0];H[c+24|0]=K[e+27|0];H[c+25|0]=K[e+26|0];H[c+26|0]=K[e+25|0];H[c+27|0]=K[e+24|0];H[c+28|0]=K[e+31|0];H[c+29|0]=K[e+30|0];H[c+30|0]=K[e+29|0];H[c+31|0]=K[e+28|0];c=J[b+96>>2];k=h+c|0;g=J[a+96>>2];h=h+g|0;e=J[h+32>>2];J[k+32>>2]=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e=J[h+36>>2];J[k+36>>2]=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e=J[h+40>>2];J[k+40>>2]=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);f=f+1|0;if((j|0)!=(f|0)){continue}break}break d}f=J[a+96>>2];c=i;while(1){h=e<<6;c=h+c|0;f=f+h|0;g=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=g;g=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=g;f=h+J[a+96>>2]|0;g=J[f+20>>2];c=h+J[b+96>>2]|0;J[c+16>>2]=J[f+16>>2];J[c+20>>2]=g;g=J[f+28>>2];J[c+24>>2]=J[f+24>>2];J[c+28>>2]=g;c=J[b+96>>2];g=h+c|0;f=J[a+96>>2];h=h+f|0;J[g+32>>2]=J[h+32>>2];J[g+36>>2]=J[h+36>>2];J[g+40>>2]=J[h+40>>2];e=e+1|0;if((j|0)!=(e|0)){continue}break}}f=b+88|0;e=j<<6;if(!K[b+100|0]){break b}if(c){J[8370]=J[8370]+1;ia[J[6783]](c)}}J[f>>2]=0;J[f+4>>2]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;i=e+i|0;c=J[a+168>>2];e=J[b+160>>2];if(!(e?!e|!K[b+164|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](e)}J[b+160>>2]=i;H[b+164|0]=0;J[b+156>>2]=c;J[b+152>>2]=c;f=J[a+168>>2];f:{if(!d){if((f|0)<=0){break f}f=J[a+160>>2];e=0;while(1){d=e<<5;c=d+i|0;d=d+f|0;I[c>>1]=L[d>>1];I[c+2>>1]=L[d+2>>1];I[c+4>>1]=L[d+4>>1]Line truncated
function VF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=Q(d);var e=0,f=0,g=Q(0),h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=0,o=Q(0),p=0,q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),C=Q(0),D=Q(0),E=Q(0),F=0;e=ga-192|0;ga=e;a:{if(N[J[a+4>>2]+752>>2]<d){break a}o=N[c+8>>2];k=Q(Q(N[b+8>>2]*d)+o);r=N[c+4>>2];m=Q(Q(N[b+4>>2]*d)+r);s=N[c>>2];l=Q(Q(N[b>>2]*d)+s);h=J[J[a+8>>2]+8>>2];n=J[a+4>>2];f=J[n+740>>2];p=(h|0)==(f|0);b:{if(!p){f=J[J[a+12>>2]+8>>2];g=Q(k-N[f+60>>2]);i=Q(l-N[f+52>>2]);j=Q(m-N[f+56>>2]);t=Q(Q(N[f+44>>2]*g)+Q(Q(N[f+12>>2]*i)+Q(j*N[f+28>>2])));u=Q(Q(N[f+40>>2]*g)+Q(Q(N[f+8>>2]*i)+Q(j*N[f+24>>2])));g=Q(Q(N[f+36>>2]*g)+Q(Q(N[f+4>>2]*i)+Q(j*N[f+20>>2])));break b}g=Q(k-N[f+60>>2]);i=Q(l-N[f+52>>2]);j=Q(m-N[f+56>>2]);t=Q(Q(N[f+44>>2]*g)+Q(Q(N[f+12>>2]*i)+Q(j*N[f+28>>2])));u=Q(Q(N[f+40>>2]*g)+Q(Q(N[f+8>>2]*i)+Q(j*N[f+24>>2])));h=J[J[a+12>>2]+8>>2];g=Q(Q(N[f+36>>2]*g)+Q(Q(N[f+4>>2]*i)+Q(j*N[f+20>>2])))}v=N[h+20>>2];w=N[h+36>>2];x=N[h+40>>2];y=N[h+8>>2];z=N[h+24>>2];i=N[h+44>>2];j=N[h+60>>2];A=N[h+12>>2];B=N[h+52>>2];C=N[h+28>>2];D=N[h+56>>2];E=N[h+4>>2];J[e+36>>2]=0;q=i;i=Q(o-j);j=Q(s-B);o=Q(r-D);N[e+32>>2]=Q(q*i)+Q(Q(A*j)+Q(C*o));N[e+28>>2]=Q(x*i)+Q(Q(y*j)+Q(o*z));J[e+20>>2]=0;N[e+16>>2]=t;N[e+12>>2]=u;N[e+8>>2]=g;N[e+24>>2]=Q(w*i)+Q(Q(E*j)+Q(o*v));h=J[b+12>>2];J[e+80>>2]=J[b+8>>2];J[e+84>>2]=h;h=J[b>>2];b=J[b+4>>2];J[e+136>>2]=0;J[e+140>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;J[e+152>>2]=0;J[e+156>>2]=0;N[e+60>>2]=m;N[e- -64>>2]=k;J[e+68>>2]=0;J[e+72>>2]=h;J[e+76>>2]=b;J[e+128>>2]=0;J[e+132>>2]=0;H[e+124|0]=0;J[e+120>>2]=0;J[e+100>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0;N[e+88>>2]=d;N[e+56>>2]=l;b=J[c+12>>2];J[e+48>>2]=J[c+8>>2];J[e+52>>2]=b;b=J[c+4>>2];J[e+40>>2]=J[c>>2];J[e+44>>2]=b;f=J[n+748>>2];c:{if((f|0)<=0){h=-1;break c}d=N[e+16>>2];m=N[e+12>>2];l=N[e+8>>2];k=N[n+752>>2];k=Q(k*k);b=0;h=-1;while(1){c=n+P(b,184)|0;g=Q(N[c+12>>2]-d);i=Q(g*g);g=Q(N[c+4>>2]-l);q=Q(g*g);g=Q(N[c+8>>2]-m);g=Q(i+Q(q+Q(g*g)));c=g<k;k=c?g:k;h=c?b:h;b=b+1|0;if((f|0)!=(b|0)){continue}break}}b=J[J[a+8>>2]+8>>2];c=J[J[a+12>>2]+8>>2];N[e+92>>2]=T(Q(U(Q(N[b+224>>2]*N[c+224>>2]),Q(-10))),Q(10));N[e+100>>2]=N[b+228>>2]*N[c+228>>2];N[e+96>>2]=T(Q(U(Q(N[b+232>>2]*N[c+232>>2]),Q(-10))),Q(10));d=N[e+80>>2];d:{if(Q(R(d))>Q(.7071067690849304)){l=N[e+76>>2];k=Q(Q(l*l)+Q(d*d));m=Q(Q(1)/Q(Y(k)));g=Q(k*m);i=Q(m*Q(-d));j=N[e+72>>2];k=Q(i*j);d=Q(l*m);l=Q(d*Q(-j));j=Q(0);break d}g=N[e+72>>2];l=N[e+76>>2];k=Q(Q(g*g)+Q(l*l));m=Q(Q(1)/Q(Y(k)));k=Q(k*m);j=Q(m*Q(-l));l=Q(d*j);i=Q(g*m);g=Q(i*Q(-d));d=Q(0)}N[e+184>>2]=k;N[e+180>>2]=l;N[e+168>>2]=d;N[e+164>>2]=i;N[e+176>>2]=g;N[e+160>>2]=j;e:{if(!p){c=a+16|0;f=a+20|0;n=a+28|0;b=a+24|0;break e}c=a+20|0;f=a+16|0;n=a+24|0;b=a+28|0}f=J[f>>2];c=J[c>>2];n=J[n>>2];J[e+116>>2]=J[b>>2];J[e+112>>2]=n;J[e+108>>2]=c;J[e+104>>2]=f;b=J[a+4>>2];f:{if((h|0)>=0){b=b+P(h,184)|0;c=J[b+116>>2];f=J[b+124>>2];n=J[b+128>>2];d=N[b+132>>2];F=J[b+152>>2];sa(b+4|0,e+8|0,184);J[b+152>>2]=F;N[b+132>>2]=d;J[b+124>>2]=f;J[b+128>>2]=n;J[b+116>>2]=c;break f}h=ul(b,e+8|0)}f=J[7403];if(!f){break a}c=J[a+8>>2];b=J[a+12>>2];if(!(K[J[b+8>>2]+204|0]&8?1:K[J[c+8>>2]+204|0]&8)){break a}ia[f|0]((J[a+4>>2]+P(h,184)|0)+4|0,p?c:b,J[e+104>>2],J[e+112>>2],p?b:c,J[e+108>>2],J[e+116>>2])|0}ga=e+192|0}function yz(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0,e=0,f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=0,m=0,n=0,o=Q(0),p=Q(0),q=0,r=Q(0),s=Q(0),t=Q(0);d=ga-80|0;ga=d;l=a+4|0;m=a+16|0;a:{b:{e=J[a+8>>2];if(!e){e=J[l>>2];if(e){break b}b=Q(0);break a}b=N[e+332>>2];h=N[a+172>>2];f=N[a+168>>2];g=N[e+336>>2];i=Q(Q(b*h)-Q(f*g));j=N[e+328>>2];k=N[a+164>>2];f=Q(Q(j*f)-Q(k*b));g=Q(Q(g*k)-Q(h*j));h=N[e+316>>2];j=N[e+312>>2];b=N[e+320>>2];break a}b=N[e+336>>2];h=N[a+172>>2];f=N[a+168>>2];g=N[e+340>>2];i=Q(Q(b*h)-Q(f*g));j=N[e+332>>2];k=N[a+164>>2];f=Q(Q(j*f)-Q(k*b));g=Q(Q(g*k)-Q(h*j));h=N[e+320>>2];j=N[e+316>>2];b=N[e+324>>2]}r=Q(b+f);s=Q(h+g);t=Q(j+i);c:{d:{e=J[a+20>>2];if(!e){e=J[m>>2];if(e){break d}h=Q(0);j=Q(0);i=Q(0);g=Q(0);f=Q(0);b=Q(0);break c}b=N[e+332>>2];h=N[a+188>>2];f=N[a+184>>2];g=N[e+336>>2];i=Q(Q(b*h)-Q(f*g));j=N[e+328>>2];k=N[a+180>>2];f=Q(Q(j*f)-Q(k*b));g=Q(Q(g*k)-Q(h*j));h=N[e+316>>2];j=N[e+312>>2];b=N[e+320>>2];break c}b=N[e+336>>2];h=N[a+188>>2];f=N[a+184>>2];g=N[e+340>>2];i=Q(Q(b*h)-Q(f*g));j=N[e+332>>2];k=N[a+180>>2];f=Q(Q(j*f)-Q(k*b));g=Q(Q(g*k)-Q(h*j));h=N[e+320>>2];j=N[e+316>>2];b=N[e+324>>2]}k=N[a+200>>2];o=N[a+204>>2];p=N[a+196>>2];e=d- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;H[d+72|0]=1;e=J[a+84>>2];J[d+48>>2]=J[a+80>>2];J[d+52>>2]=e;e=J[a+76>>2];J[d+40>>2]=J[a+72>>2];J[d+44>>2]=e;b=Q(r-Q(b+f));j=Q(t-Q(j+i));h=Q(s-Q(h+g));i=Q(Q(o*b)+Q(Q(p*j)+Q(k*h)));e:{if(!(i<Q(0))){b=N[d+48>>2];h=N[d+44>>2];i=N[d+40>>2];break e}f=Q(o*i);g=f;b=Q(b-f);f=N[a+212>>2];b=Q(Q(g+Q(b*f))+N[d+48>>2]);g=Q(k*i);h=Q(Q(g+Q(Q(h-g)*f))+N[d+44>>2]);i=Q(p*i);i=Q(N[d+40>>2]+Q(i+Q(Q(j-i)*f)))}e=a+164|0;q=a+180|0;j=N[a+112>>2];k=N[a+108>>2];g=N[a+128>>2];o=N[a+120>>2];p=N[a+124>>2];f=N[a+144>>2];r=N[a+136>>2];s=N[a+140>>2];t=N[a+104>>2];J[d+52>>2]=0;f=Q(Q(Q(fLine truncated
function lg(a){var b=0,c=0,d=0,e=0,f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=0,l=0,m=Q(0),n=Q(0),o=Q(0),p=Q(0);c=J[a+712>>2];a:{if((c|0)<=0){break a}if(c-1>>>0>=3){k=c&-4;while(1){b=J[a+720>>2]+P(d,104)|0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;b=J[a+720>>2]+P(d|1,104)|0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;b=J[a+720>>2]+P(d|2,104)|0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;b=J[a+720>>2]+P(d|3,104)|0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;d=d+4|0;l=l+4|0;if((k|0)!=(l|0)){continue}break}}b=c&3;if(!b){break a}while(1){c=J[a+720>>2]+P(d,104)|0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;d=d+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}}l=J[a+752>>2];if((l|0)>0){k=0;while(1){b=J[a+760>>2]+P(k,44)|0;d=J[b+12>>2];h=N[d+12>>2];e=J[b+8>>2];i=N[e+12>>2];c=J[b+16>>2];j=N[c+12>>2];p=N[d+16>>2];n=N[c+8>>2];f=N[e+16>>2];o=N[c+16>>2];g=N[e+8>>2];m=N[d+8>>2];J[b+32>>2]=0;m=Q(m-g);j=Q(j-i);g=Q(n-g);h=Q(h-i);i=Q(Q(m*j)-Q(g*h));n=h;h=Q(o-f);o=j;j=Q(p-f);f=Q(Q(n*h)-Q(o*j));g=Q(Q(j*g)-Q(h*m));h=Q(Q(1)/Q(Y(Q(Q(i*i)+Q(Q(f*f)+Q(g*g))))));N[b+28>>2]=i*h;N[b+24>>2]=g*h;N[b+20>>2]=f*h;N[e+80>>2]=i+N[e+80>>2];N[e+76>>2]=g+N[e+76>>2];N[e+72>>2]=f+N[e+72>>2];N[d+72>>2]=f+N[d+72>>2];N[d+76>>2]=g+N[d+76>>2];N[d+80>>2]=i+N[d+80>>2];N[c+72>>2]=f+N[c+72>>2];N[c+76>>2]=g+N[c+76>>2];N[c+80>>2]=i+N[c+80>>2];k=k+1|0;if((l|0)!=(k|0)){continue}break}}d=J[a+712>>2];if((d|0)>0){c=J[a+720>>2];e=0;while(1){a=c+P(e,104)|0;i=N[a+80>>2];f=N[a+72>>2];g=N[a+76>>2];h=Q(Y(Q(Q(i*i)+Q(Q(f*f)+Q(g*g)))));if(h>Q(1.1920928955078125e-7)){j=f;f=Q(Q(1)/h);N[a+72>>2]=j*f;N[a+76>>2]=g*f;N[a+80>>2]=i*f}e=e+1|0;if((d|0)!=(e|0)){continue}break}}}function Ks(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=Q(0),w=Q(0),x=Q(0),y=Q(0);g=ga-16|0;ga=g;J[g+12>>2]=a;N[g+8>>2]=b;N[g+4>>2]=c;a=J[g+12>>2];v=N[g+4>>2];h=ga-16|0;ga=h;N[h+12>>2]=N[g+8>>2];c=N[a+692>>2];a:{if(!(c>Q(0))){break a}d=N[a+688>>2];b=Pa(Q(N[h+12>>2]-d),Q(6.2831854820251465));b:{if(b<Q(-3.1415927410125732)){b=Q(b+Q(6.2831854820251465));break b}if(!(b>Q(3.1415927410125732))){break b}b=Q(b+Q(-6.2831854820251465))}if(Q(-c)>b?0:b<=c){break a}c:{if(b>Q(0)){b=Pa(Q(c+d),Q(6.2831854820251465));if(b<Q(-3.1415927410125732)){b=Q(b+Q(6.2831854820251465));break c}if(!(b>Q(3.1415927410125732))){break c}b=Q(b+Q(-6.2831854820251465));break c}b=Pa(Q(d-c),Q(6.2831854820251465));if(b<Q(-3.1415927410125732)){b=Q(b+Q(6.2831854820251465));break c}if(!(b>Q(3.1415927410125732))){break c}b=Q(b+Q(-6.2831854820251465))}N[h+12>>2]=b}e=J[a+32>>2];b=N[a+652>>2];c=N[a+620>>2];d=N[a+636>>2];m=Q(Q(N[e+44>>2]*b)+Q(Q(N[e+36>>2]*c)+Q(d*N[e+40>>2])));f=J[a+28>>2];n=N[f+44>>2];i=N[a+584>>2];o=N[f+36>>2];j=N[a+552>>2];k=N[a+568>>2];p=N[f+40>>2];w=Q(m*Q(Q(n*i)+Q(Q(o*j)+Q(k*p))));q=Q(Q(N[e+12>>2]*b)+Q(Q(N[e+4>>2]*c)+Q(d*N[e+8>>2])));r=N[f+12>>2];s=N[f+4>>2];t=N[f+8>>2];x=Q(q*Q(Q(r*i)+Q(Q(s*j)+Q(k*t))));u=N[f+28>>2];l=Q(u*i);i=N[f+20>>2];y=Q(i*j);j=N[f+24>>2];l=Q(l+Q(y+Q(k*j)));k=Q(Q(N[e+28>>2]*b)+Q(Q(N[e+20>>2]*c)+Q(d*N[e+24>>2])));b=N[a+588>>2];c=N[a+556>>2];d=N[a+572>>2];N[a+680>>2]=Q(N[h+12>>2]-Q($a(Q(w+Q(x+Q(l*k))),Q(Q(m*Q(Q(n*b)+Q(Q(o*c)+Q(p*d))))+Q(Q(q*Q(Q(r*b)+Q(Q(s*c)+Q(t*d))))+Q(Q(Q(u*b)+Q(Q(i*c)+Q(j*d)))*k))))*N[a+732>>2]))/v;ga=h+16|0;ga=g+16|0}function HA(a,b){a=a|0;b=b|0;var c=Q(0),d=Q(0),e=Q(0),f=Q(0),g=Q(0);if(K[a+48|0]){J[b>>2]=0;J[b+4>>2]=0;return}J[b>>2]=4;J[b+4>>2]=2;vg(a,J[a+28>>2]+4|0,J[a+32>>2]+4|0);H[a+297|0]=0;J[a+1088>>2]=0;e=N[a+192>>2];f=N[a+196>>2];a:{if(!(e<=f)){break a}c=N[a+924>>2];d=N[a+892>>2];g=N[a+908>>2];d=$a(Q(Q(c*N[a+864>>2])+Q(Q(d*N[a+832>>2])+Q(N[a+848>>2]*g))),Q(Q(c*N[a+860>>2])+Q(Q(d*N[a+828>>2])+Q(N[a+844>>2]*g))));b:{if(e>=f){break b}if(d<e){c=Pa(Q(e-d),Q(6.2831854820251465));c:{if(c<Q(-3.1415927410125732)){c=Q(c+Q(6.2831854820251465));break c}if(!(c>Q(3.1415927410125732))){break c}c=Q(c+Q(-6.2831854820251465))}g=Q(R(c));c=Pa(Q(f-d),Q(6.2831854820251465));d:{if(c<Q(-3.1415927410125732)){c=Q(c+Q(6.2831854820251465));break d}if(!(c>Q(3.1415927410125732))){break d}c=Q(c+Q(-6.2831854820251465))}d=g<Q(R(c))?d:Q(d+Q(6.2831854820251465));break b}if(!(d>f)){break b}c=Pa(Q(d-f),Q(6.2831854820251465));e:{if(c<Q(-3.1415927410125732)){c=Q(c+Q(6.2831854820251465));break e}if(!(c>Q(3.1415927410125732))){break e}c=Q(c+Q(-6.2831854820251465))}g=Q(R(c));c=Pa(Q(d-e),Q(6.2831854820251465));f:{if(c<Q(-3.1415927410125732)){c=Q(c+Q(6.2831854820251465));break f}if(!(c>Q(3.1415927410125732))){break f}c=Q(c+Q(-6.2831854820251465))}d=g>Q(R(c))?Q(d+Q(-6.2831854820251465)):d}N[a+1084>>2]=d;if(!(d<e)){e=f;if(!(e<d)){break a}}H[a+297|0]=1;N[a+1088>>2]=d-e}H[a+296|0]=0;c=N[a+1032>>2];N[a+1080>>2]=c;g:{h:{i:{e=N[a+188>>2];f=N[a+184>>2];if(e>=f){if(c>e){break i}e=f;if(c<e){break i}}J[a+1032>>2]=0;if(K[a+1096|0]){break h}break g}H[a+296|0]=1;N[a+1032>>2]=c-e}J[b>>2]=J[b>>2]+1;J[b+4>>2]=J[b+4>>2]-1}if(K[a+297|0]|K[a+1112|0]){J[b>>2]=J[b>>2]+1;J[b+4>>2]=J[b+4>>2]-1}}function AE(a,b,c,d){a=a|0;Line truncated
function PC(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=Q(0),f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),C=Q(0),D=Q(0),E=Q(0),F=Q(0);h=N[a+24>>2];f=N[a+40>>2];u=N[a+20>>2];v=N[a+36>>2];w=N[a+16>>2];x=N[a+32>>2];y=Q(ia[J[J[a>>2]+48>>2]](a));z=Q(ia[J[J[a>>2]+48>>2]](a));A=Q(ia[J[J[a>>2]+48>>2]](a));B=N[b+52>>2];i=N[b+24>>2];j=N[b+20>>2];k=N[b+56>>2];l=N[a+20>>2];o=N[a+36>>2];m=N[a+24>>2];C=N[a+40>>2];e=N[b+40>>2];n=N[b+36>>2];D=N[b+48>>2];q=N[b+8>>2];r=N[b>>2];s=N[b+4>>2];t=N[b+16>>2];E=N[a+16>>2];F=N[a+32>>2];g=N[b+32>>2];J[c+12>>2]=0;p=k;k=Q(Q(C+m)*Q(.5));m=Q(Q(F+E)*Q(.5));l=Q(Q(o+l)*Q(.5));o=Q(p+Q(Q(e*k)+Q(Q(g*m)+Q(n*l))));h=Q(A+Q(Q(f-h)*Q(.5)));p=Q(h*Q(R(e)));e=Q(y+Q(Q(x-w)*Q(.5)));f=Q(e*Q(R(g)));g=Q(z+Q(Q(v-u)*Q(.5)));n=Q(p+Q(f+Q(g*Q(R(n)))));N[c+8>>2]=o-n;f=Q(B+Q(Q(k*i)+Q(Q(m*t)+Q(l*j))));i=Q(Q(h*Q(R(i)))+Q(Q(e*Q(R(t)))+Q(g*Q(R(j)))));N[c+4>>2]=f-i;j=Q(D+Q(Q(k*q)+Q(Q(m*r)+Q(l*s))));e=Q(Q(h*Q(R(q)))+Q(Q(e*Q(R(r)))+Q(g*Q(R(s)))));N[c>>2]=j-e;J[d+12>>2]=0;N[d+8>>2]=n+o;N[d+4>>2]=i+f;N[d>>2]=e+j}function Ky(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;ia[J[J[b>>2]+32>>2]](b);d=ia[J[J[b>>2]+16>>2]](b,104,1)|0;c=qa(J[d+8>>2],0,104);N[c+88>>2]=N[a+248>>2];N[c+92>>2]=N[a+252>>2];N[c+96>>2]=N[a+256>>2];N[c+100>>2]=N[a+260>>2];N[c>>2]=N[a+92>>2];N[c+4>>2]=N[a+96>>2];N[c+8>>2]=N[a+100>>2];N[c+12>>2]=N[a+104>>2];N[c+16>>2]=N[a+108>>2];N[c+20>>2]=N[a+116>>2];N[c+24>>2]=N[a+120>>2];N[c+28>>2]=N[a+124>>2];N[c+32>>2]=N[a+128>>2];N[c+36>>2]=N[a+132>>2];N[c+40>>2]=N[a+140>>2];N[c+44>>2]=N[a+144>>2];N[c+48>>2]=N[a+148>>2];N[c+52>>2]=N[a+152>>2];N[c+56>>2]=N[a+168>>2];N[c+60>>2]=N[a+172>>2];J[c+64>>2]=J[a+112>>2];J[c+68>>2]=J[a+156>>2];J[c+72>>2]=J[a+160>>2];J[c+76>>2]=J[a+164>>2];J[c+80>>2]=J[a+136>>2];ia[J[J[b>>2]+20>>2]](b,d,3601,1145853764,c);d=J[a+8>>2];if((d|0)>0){while(1){c=J[J[a+16>>2]+(e<<2)>>2];if(K[c+236|0]&8){d=(g=b,h=ia[J[J[c>>2]+16>>2]](c)|0,i=1,f=J[J[b>>2]+16>>2],ia[f](g|0,h|0,i|0)|0);i=b,h=d,g=ia[J[J[c>>2]+20>>2]](c,J[d+8>>2],b)|0,j=1497645651,k=c,f=J[J[b>>2]+20>>2],ia[f](i|0,h|0,g|0,j|0,k|0);d=J[a+8>>2]}e=e+1|0;if((e|0)<(d|0)){continue}break}}Ak(a,b);gh(a,b);ia[J[J[b>>2]+36>>2]](b)}function lc(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;while(1){r=c;j=J[a+12>>2];g=j+((c+d|0)/2<<4)|0;s=J[g+8>>2];m=J[g+4>>2];k=J[g>>2];g=d;while(1){e=-1;h=-1;f=(c<<4)+j|0;n=J[f>>2];if(n){h=J[n+12>>2]}e=k?J[k+12>>2]:e;i=-1;l=-1;o=J[f+4>>2];if(o){l=J[o+12>>2]}i=m?J[m+12>>2]:i;a:{b:{if((e|0)<(h|0)){break b}e=(k|0)==(n|0)&(i|0)<(l|0);if(!(e|(k|0)!=(n|0))){if((m|0)!=(o|0)){break a}if(M[f+8>>2]>s>>>0){break b}break a}if(!e){break a}}c=c+1|0;continue}while(1){t=g<<4;e=t+j|0;h=-1;i=-1;i=k?J[k+12>>2]:i;l=J[e>>2];if(l){h=J[l+12>>2]}u=-1;p=-1;p=m?J[m+12>>2]:p;q=J[e+4>>2];if(q){u=J[q+12>>2]}c:{d:{if((h|0)<(i|0)){break d}h=(k|0)==(l|0)&(u|0)<(p|0);if(!(h|(k|0)!=(l|0))){if((m|0)!=(q|0)){break c}if(M[e+8>>2]<s>>>0){break d}break c}if(!h){break c}}g=g-1|0;continue}break}if((c|0)<=(g|0)){h=J[f+8>>2];i=J[f+12>>2];j=J[e+4>>2];J[f>>2]=J[e>>2];J[f+4>>2]=j;j=J[e+12>>2];J[f+8>>2]=J[e+8>>2];J[f+12>>2]=j;f=J[a+12>>2]+t|0;J[f+4>>2]=o;J[f+8>>2]=h;J[f+12>>2]=i;J[f>>2]=n;g=g-1|0;c=c+1|0}if((c|0)<=(g|0)){j=J[a+12>>2];continue}break}if((g|0)>(r|0)){lc(a,b,r,g)}if((c|0)<(d|0)){continue}break}}function XF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[7400]=J[7400]+1;k=J[a+40>>2];d=c<<16|b;d=(d<<15^-1)+d|0;d=P(d>>10^d,9);d=d>>6^d;d=(d<<11^-1)+d|0;i=k+((J[a+12>>2]-1&(d>>16^d))<<2)|0;d=J[i>>2];a:{if((d|0)==-1){break a}f=J[a+60>>2];g=J[a+16>>2];e=d;while(1){j=g+P(e,12)|0;if(!(J[j>>2]==(b|0)&J[j+4>>2]==(c|0))){e=J[(e<<2)+f>>2];if((e|0)!=-1){continue}break a}break}l=J[(g+P(e,12)|0)+8>>2];b:{c:{if((d|0)==(e|0)){break c}while(1){b=d;d=J[(b<<2)+f>>2];if((e|0)!=(d|0)){continue}break}if((b|0)==-1){break c}J[(b<<2)+f>>2]=J[(e<<2)+f>>2];break b}J[i>>2]=J[(e<<2)+f>>2]}h=J[a+8>>2]-1|0;if((h|0)!=(e|0)){d:{e:{g=g+P(h,12)|0;b=J[g+4>>2]<<16|J[g>>2];b=(b<<15^-1)+b|0;b=P(b>>10^b,9);b=b>>6^b;b=(b<<11^-1)+b|0;i=J[a+12>>2]-1&(b>>16^b);d=k+(i<<2)|0;b=J[d>>2];if((h|0)==(b|0)){break e}while(1){c=b;b=J[(b<<2)+f>>2];if((h|0)!=(b|0)){continue}break}if((c|0)==-1){break e}J[(c<<2)+f>>2]=J[(h<<2)+f>>2];break d}J[d>>2]=J[(h<<2)+f>>2]}b=J[g+4>>2];J[j>>2]=J[g>>2];J[j+4>>2]=b;J[j+8>>2]=J[g+8>>2];b=J[a+40>>2]+(i<<2)|0;J[J[a+60>>2]+(e<<2)>>2]=J[b>>2];J[b>>2]=e;e=J[a+8>>2]-1|0}J[a+8>>2]=e}return l|0}function Kl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=ga-48|0;ga=c;d=J[b+4>>2];e=J[a+48>>2];J[e+4>>2]=J[b>>2];J[e+8>>2]=d;d=J[b+12>>2];J[e+12>>2]=J[b+8>>2];J[e+16>>2]=d;J[c+44>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+32>>2]=1065353216;e=c+16|0;b=c+32|0;ia[J[J[a>>2]+68>>2]](e,a,b);N[a+32>>2]=N[c+16>>2]+N[a+12>>2];J[c+32>>2]=-1082130432;ia[J[J[a>>2]+68>>2]](c,a,b);d=J[c+12>>2];J[c+24>>2]=J[c+8>>2];J[c+28>>2]=d;d=J[c+4>>2];J[c+16>>2]=J[c>>2];J[c+20>>2]=d;N[a+16>>2]=N[c+16>>2]-N[a+12>>2];J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;Line truncated
function KB(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+12>>2];c=ga-16|0;d=c+8|0;J[d>>2]=J[b+8>>2];J[d+4>>2]=e;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;a=J[a+8>>2];J[a+4>>2]=1065353216;J[a+44>>2]=1065353216;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+24>>2]=1065353216;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+260>>2]=J[a+260>>2]+1;b=J[c+4>>2];J[a+52>>2]=J[c>>2];J[a+56>>2]=b;b=J[c+12>>2];J[a+60>>2]=J[c+8>>2];J[a+64>>2]=b}function xA(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=J[b+8>>2];if((h|0)>0){d=J[a+16>>2];j=J[b+16>>2];a=0;while(1){c=J[(e<<2)+j>>2];a:{if(!(K[c+204|0]&3)){b=a;i=b<<3;f=i+d|0;g=J[f>>2];if((b|0)!=(g|0)){while(1){b=(g<<3)+d|0;J[f>>2]=J[b>>2];b=J[b>>2];f=(b<<3)+d|0;g=J[f>>2];if((b|0)!=(g|0)){continue}break}}J[c+208>>2]=b;J[(d+i|0)+4>>2]=e;J[c+212>>2]=-1;a=a+1|0;break a}J[c+208>>2]=-1;J[c+212>>2]=-2}e=e+1|0;if((h|0)!=(e|0)){continue}break}}}function Cp(a){a=a|0;var b=Q(0),c=0,d=Q(0),e=0,f=0,g=0,h=0;e=ga-16|0;ga=e;J[e+12>>2]=a;c=J[e+12>>2];a=J[c+712>>2];if((a|0)>0){g=a&1;c=J[c+720>>2];a:{if((a|0)==1){a=0;break a}h=a&-2;a=0;while(1){d=b;b=N[(c+P(a,104)|0)+88>>2];d=Q(d+(b>Q(0)?Q(Q(1)/b):Q(0)));b=N[(c+P(a|1,104)|0)+88>>2];b=Q(d+(b>Q(0)?Q(Q(1)/b):Q(0)));a=a+2|0;f=f+2|0;if((h|0)!=(f|0)){continue}break}}if(g){d=b;b=N[(c+P(a,104)|0)+88>>2];b=Q(d+(b>Q(0)?Q(Q(1)/b):Q(0)))}}ga=e+16|0;return Q(b)}function $n(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=ga-48|0;ga=e;J[e+44>>2]=a;J[e+40>>2]=b;J[e+36>>2]=c;J[e+32>>2]=d;c=J[e+44>>2];J[e+28>>2]=0;while(1){if(J[e+28>>2]<J[e+32>>2]){J[e+24>>2]=J[e+40>>2]+(J[e+28>>2]<<4);b=e+8|0;a=c+56|0;Vd(b,J[e+24>>2],a,a+16|0,a+32|0);a=a+(Lh(b)<<4)|0;d=J[a+4>>2];b=J[e+36>>2]+(J[e+28>>2]<<4)|0;J[b>>2]=J[a>>2];J[b+4>>2]=d;d=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=d;J[e+28>>2]=J[e+28>>2]+1;continue}break}ga=e+48|0}function mm(a,b){J[a+4>>2]=31;J[a+8>>2]=0;J[a+72>>2]=0;J[a+76>>2]=1065353216;J[a+64>>2]=0;J[a+68>>2]=1;J[a+48>>2]=-581039253;J[a+52>>2]=-581039253;J[a+32>>2]=1566444395;J[a+36>>2]=1566444395;H[a+28|0]=1;J[a>>2]=13212;J[a+24>>2]=0;J[a+88>>2]=0;J[a+80>>2]=1065353216;J[a+84>>2]=1065353216;J[a+56>>2]=-581039253;J[a+60>>2]=0;J[a+40>>2]=1566444395;J[a+44>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;if(b){J[8369]=J[8369]+1;b=ia[J[6782]](60,16)|0;jc(b);J[a+64>>2]=b}}function JB(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;H[a+148|0]=0;a:{if(!qd(a,b)){break a}H[a+148|0]=1;if(!qd(a,b)){break a}H[a+148|0]=1;if(!qd(a,b)){break a}H[a+148|0]=1;if(!qd(a,b)){break a}H[a+148|0]=1;if(!qd(a,b)){break a}H[a+148|0]=1}b=J[a+8>>2];c=b+52|0;d=J[c+4>>2];J[a+92>>2]=J[c>>2];J[a+96>>2]=d;c=J[b+64>>2];J[a+100>>2]=J[b+60>>2];J[a+104>>2]=c;c=J[b+52>>2];d=J[b+56>>2];e=J[b+64>>2];J[a+120>>2]=J[b+60>>2];J[a+124>>2]=e;J[a+112>>2]=c;J[a+116>>2]=d}function uF(a,b){a=a|0;b=b|0;var c=Q(0),d=0,e=Q(0),f=Q(0);d=ia[J[J[a>>2]+28>>2]](a)|0;c=Q(N[d+8>>2]-N[b+8>>2]);e=Q(c*c);c=Q(N[d>>2]-N[b>>2]);f=Q(c*c);c=Q(N[d+4>>2]-N[b+4>>2]);if(Q(e+Q(f+Q(c*c)))>Q(1.1920928955078125e-7)){Kl(a,b);if(K[a+61|0]){b=J[a+52>>2];ia[J[J[b>>2]>>2]](b)|0;b=J[a+52>>2];if(b){J[8370]=J[8370]+1;ia[J[6783]](b)}}J[8369]=J[8369]+1;b=ia[J[6782]](172,16)|0;d=Yl(b);J[a+52>>2]=b;Xl(d,J[a+48>>2],K[a+60|0],a+16|0,a+32|0);H[a+61|0]=1}}function NB(a,b){a=a|0;b=b|0;var c=Q(0),d=Q(0),e=Q(0),f=Q(0),g=0;H[a+171|0]=1;g=J[b+4>>2];J[a+60>>2]=J[b>>2];J[a+64>>2]=g;g=J[b+12>>2];J[a+68>>2]=J[b+8>>2];J[a+72>>2]=g;c=N[a+68>>2];d=N[a+60>>2];f=N[a- -64>>2];e=Q(Q(1)/Q(Y(Q(Q(c*c)+Q(Q(d*d)+Q(f*f))))));c=Q(c*e);d=Q(d*e);e=Q(f*e);f=N[a+72>>2];a:{if(!(Q(Y(Q(Q(c*c)+Q(Q(d*d)+Q(e*e)))))<Q(1.1920928955078125e-7))){break a}d=Q(0);e=Q(0);c=Q(0);f=Q(0)}N[a+76>>2]=d;N[a+88>>2]=f;N[a+84>>2]=c;N[a+80>>2]=e}function MH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[7396]=J[7396]-1;ia[J[J[a>>2]+20>>2]](a,b);c=J[b+768>>2];e=c<<2;f=J[a+20>>2];d=e+f|0;h=J[d>>2];i=d;d=J[a+12>>2]-1|0;g=d<<2;J[i>>2]=J[f+g>>2];J[J[a+20>>2]+g>>2]=h;J[J[J[a+20>>2]+e>>2]+768>>2]=c;J[a+12>>2]=d;a=J[a+68>>2];c=J[a+16>>2];if(!(c>>>0>b>>>0|c+P(J[a>>2],J[a+4>>2])>>>0<=b>>>0)){J[b>>2]=J[a+12>>2];J[a+12>>2]=b;J[a+8>>2]=J[a+8>>2]+1;return}if(b){J[8370]=J[8370]+1;ia[J[6783]](b)}}function Lf(a,b,c,d,e){var f=0;f=ga-32|0;J[f+28>>2]=a;J[f+24>>2]=b;J[f+20>>2]=c;J[f+16>>2]=d;J[f+12>>2]=e;a=J[f+28>>2];a:{if(J[a+64>>2]==3){J[f+8>>2]=J[a+52>>2]+P(J[f+24>>2],J[a+56>>2]);J[J[f+20>>2]>>2]=L[J[f+8>>2]>>1];J[J[f+16>>2]>>2]=L[J[f+8>>2]+2>>1];J[J[f+12>>2]>>2]=L[J[f+8>>2]+4>>1];break a}J[f+4>>2]=J[a+52>>2]+P(J[f+24>>2],J[a+56>>2]);J[J[f+20>>2]>>2]=J[J[f+4>>2]>>2];J[J[f+16>>2]>>2]=J[J[f+4>>2]+4>>2];J[J[f+12>>2]>>2]=J[J[f+4>>2]+8>>2]}}function Gl(a){a=a|0;var b=0;J[a>>2]=17624;b=J[a+184>>2];if(!(b?!b|!K[a+188|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}J[a+184>>2]=0;H[a+188|0]=1;J[a+176>>2]=0;J[a+180>>2]=0;b=J[a+164>>2];if(!(b?!b|!K[a+168|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}J[a+164>>2]=0;H[a+168|0]=1;J[a+156>>2]=0;J[a+160>>2]=0;J[a>>2]=4660;b=J[a+84>>2];if(!(b?!b|!K[a+88|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}J[a+84>>2]=0;H[a+88|0]=1;J[a+76>>2]=0;J[a+80>>2]=0;return a|0}function Ad(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=Line truncated
function aF(a){a=a|0;var b=0;J[a>>2]=13212;b=J[a+64>>2];if(b){sb(b);b=J[a+64>>2];if(b){J[8370]=J[8370]+1;ia[J[6783]](b)}}b=J[a+24>>2];if(!(b?!b|!K[a+28|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}J[a+24>>2]=0;H[a+28|0]=1;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}function Ft(a,b){a=a|0;b=b|0;var c=0,d=0;c=ga-16|0;ga=c;J[c+12>>2]=a;J[c+8>>2]=b;b=J[c+8>>2];a=ga-16|0;ga=a;J[a+12>>2]=J[c+12>>2];J[a+8>>2]=b;b=J[a+12>>2];J[b+480>>2]=J[a+8>>2];if(J[b+480>>2]){d=J[a+8>>2];ia[J[J[d>>2]+8>>2]](d,b+4|0)}ga=a+16|0;ga=c+16|0}function js(a){a=a|0;var b=0,c=0,d=0,e=0;c=ga-16|0;ga=c;J[c+12>>2]=a;d=ua(8);b=J[c+12>>2];a=ga-16|0;ga=a;J[a+12>>2]=d;J[a+8>>2]=b;e=ga-16|0;b=J[a+12>>2];J[e+12>>2]=b;J[J[e+12>>2]>>2]=5116;J[b>>2]=20840;J[b+4>>2]=J[a+8>>2];ga=a+16|0;ga=c+16|0;return d|0}function Nh(a,b,c){var d=0;d=ga-32|0;J[d+28>>2]=a;J[d+24>>2]=0;J[d+20>>2]=b;J[d+16>>2]=c;a=J[d+28>>2];J[d+12>>2]=J[d+24>>2];while(1){if(J[d+12>>2]<J[d+20>>2]){b=J[d+12>>2]<<2;N[b+J[d+16>>2]>>2]=N[b+J[a+12>>2]>>2];J[d+12>>2]=J[d+12>>2]+1;continue}break}}function Ct(a,b){a=a|0;b=b|0;var c=0;c=ga-16|0;ga=c;J[c+12>>2]=a;J[c+8>>2]=b;a=ga-16|0;ga=a;J[a+8>>2]=J[c+8>>2];b=ga-16|0;J[b+12>>2]=J[a+8>>2];a:{if(J[J[b+12>>2]+236>>2]&2){J[a+12>>2]=J[a+8>>2];break a}J[a+12>>2]=0}ga=a+16|0;ga=c+16|0;return J[a+12>>2]}function zH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=(e=b,f=ia[J[J[a>>2]+16>>2]](a)|0,g=1,d=J[J[b>>2]+16>>2],ia[d](e|0,f|0,g|0)|0);g=b,f=c,e=ia[J[J[a>>2]+20>>2]](a,J[c+8>>2],b)|0,h=1245859651,i=a,d=J[J[b>>2]+20>>2],ia[d](g|0,f|0,e|0,h|0,i|0)}function bF(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=(e=b,f=ia[J[J[a>>2]+52>>2]](a)|0,g=1,d=J[J[b>>2]+16>>2],ia[d](e|0,f|0,g|0)|0);g=b,f=c,e=ia[J[J[a>>2]+56>>2]](a,J[c+8>>2],b)|0,h=1346455635,i=a,d=J[J[b>>2]+20>>2],ia[d](g|0,f|0,e|0,h|0,i|0)}function Pz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=(e=b,f=ia[J[J[a>>2]+16>>2]](a)|0,g=1,d=J[J[b>>2]+16>>2],ia[d](e|0,f|0,g|0)|0);g=b,f=c,e=ia[J[J[a>>2]+20>>2]](a,J[c+8>>2],b)|0,h=1497645650,i=a,d=J[J[b>>2]+20>>2],ia[d](g|0,f|0,e|0,h|0,i|0)}function Px(a){a=a|0;var b=Q(0),c=0,d=0;c=ga-16|0;ga=c;J[c+12>>2]=a;a=ga-16|0;ga=a;J[a+12>>2]=J[c+12>>2];d=J[a+12>>2];a:{if(ac(d,d)<Q(0)){b=wc(N[d+12>>2]);N[a+8>>2]=b+b;break a}b=wc(Q(-N[d+12>>2]));N[a+8>>2]=b+b}ga=a+16|0;ga=c+16|0;return Q(N[a+8>>2])}function ub(a,b,c){var d=0;d=ga-48|0;ga=d;J[d+44>>2]=a;J[d+40>>2]=b;J[d+36>>2]=c;a=J[d+44>>2];if(N[a+344>>2]!=Q(0)){Ni(a,J[d+40>>2]);b=ga-16|0;J[b+12>>2]=a+544;if(J[b+12>>2]){b=J[d+36>>2];Kb(d,J[d+40>>2],a+348|0);c=d+16|0;Ub(c,b,d);Oi(a,c)}}ga=d+48|0}function bo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=ga-16|0;ga=d;J[d+12>>2]=a;J[d+8>>2]=b;J[d+4>>2]=c;a=J[d+12>>2];J[d>>2]=J[d+8>>2];fb(a,J[d>>2],J[d+4>>2]);Mh(a+28|0,J[d>>2]+28|0);Mh(a+12|0,J[d>>2]+12|0);N[J[d>>2]+44>>2]=N[a+44>>2];ga=d+16|0;return 3824}function Si(a,b,c){var d=0;d=ga-16|0;ga=d;J[d+12>>2]=a;J[d+8>>2]=b;J[d+4>>2]=c;a=J[d+12>>2];Nf(a);J[a>>2]=17820;c=a+144|0;Xi(c);J[a+152>>2]=J[d+8>>2];J[a+172>>2]=J[d+4>>2];b=ga-16|0;J[b+12>>2]=a+68;J[b+8>>2]=c;J[J[b+12>>2]+72>>2]=J[b+8>>2];ga=d+16|0}function $t(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0,e=0;d=ga-16|0;ga=d;J[d+12>>2]=a;N[d+8>>2]=b;N[d+4>>2]=c;b=N[d+8>>2];c=N[d+4>>2];a=ga-16|0;J[a+12>>2]=J[d+12>>2];N[a+8>>2]=b;N[a+4>>2]=c;e=J[a+12>>2];N[e+472>>2]=N[a+8>>2];N[e+476>>2]=N[a+4>>2];ga=d+16|0}function $c(a){a=a|0;var b=0,c=0,d=0,e=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;ga=a;J[a+12>>2]=J[b+12>>2];d=ga-16|0;e=J[a+12>>2];J[d+12>>2]=e;if(J[J[d+12>>2]+216>>2]!=2){c=ga-16|0;J[c+12>>2]=e;c=J[J[c+12>>2]+216>>2]!=5}ga=a+16|0;ga=b+16|0;return c|0}function va(a,b,c){var d=0;d=ga-32|0;ga=d;J[d+28>>2]=b;J[d+24>>2]=c;N[d+20>>2]=N[J[d+28>>2]>>2]+N[J[d+24>>2]>>2];N[d+16>>2]=N[J[d+28>>2]+4>>2]+N[J[d+24>>2]+4>>2];N[d+12>>2]=N[J[d+28>>2]+8>>2]+N[J[d+24>>2]+8>>2];na(a,d+20|0,d+16|0,d+12|0);ga=d+32|0}function Ma(a,b,c){var d=0;d=ga-32|0;ga=d;J[d+28>>2]=b;J[d+24>>2]=c;N[d+20>>2]=N[J[d+28>>2]>>2]-N[J[d+24>>2]>>2];N[d+16>>2]=N[J[d+28>>2]+4>>2]-N[J[d+24>>2]+4>>2];N[d+12>>2]=N[J[d+28>>2]+8>>2]-N[J[d+24>>2]+8>>2];na(a,d+20|0,d+16|0,d+12|0);ga=d+32|0}function Kb(a,b,c){var d=0;d=ga-32|0;ga=d;J[d+28>>2]=b;J[d+24>>2]=c;N[d+20>>2]=N[J[d+28>>2]>>2]*N[J[d+24>>2]>>2];N[d+16>>2]=N[J[d+28>>2]+4>>2]*N[J[d+24>>2]+4>>2];N[d+12>>2]=N[J[d+28>>2]+8>>2]*N[J[d+24>>2]+8>>2];na(a,d+20|0,d+16|0,d+12|0);ga=d+32|0}function XH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[a+8>>2]>0){while(1){e=J[a+16>>2]+(d<<4)|0;a:{if(ia[J[J[b>>2]+8>>2]](b,e)|0){ia[J[J[a>>2]+12>>2]](a,J[e>>2],J[e+4>>2],c)|0;J[7392]=J[7392]-1;break a}d=d+1|0}if(J[a+8>>2]>(d|0)){continue}break}}}function uA(a){a=a|0;var b=0,c=0;if(J[a+232>>2]>0){while(1){b=J[J[a+240>>2]+(c<<2)>>2];J[b+412>>2]=0;J[b+416>>2]=0;J[b+436>>2]=0;J[b+440>>2]=0;J[b+428>>2]=0;J[b+432>>2]=0;J[b+420>>2]=0;J[b+424>>2]=0;c=c+1|0;if((c|0)<J[a+232>>2]){continue}break}}}function gn(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;c=ga-16|0;ga=c;J[c+8>>2]=5860;J[c+12>>2]=d;g=d+4|0;h=d+20|0;i=c+8|0;oh(a+4|0,J[a+4>>2],b,g,h,N[d+32>>2],e,f,i);a=a- -64|0;oh(a,J[a>>2],b,g,h,N[d+32>>2],e,f,i);Line truncated
function zt(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+380|0}function rt(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+300|0}function ra(a){var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];J[8369]=J[8369]+1;a=ia[J[6782]](a,16)|0;ga=b+16|0;return a}function qt(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+316|0}function Zo(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+352|0}function Yo(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+324|0}function Wt(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+348|0}function Kt(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+312|0}function Jt(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+328|0}function Et(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+544|0}function oe(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+48|0}function gx(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+32|0}function df(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+28|0}function Ym(a,b){a=a|0;b=Q(b);var c=0;c=ga-16|0;ga=c;J[c+12>>2]=a;N[c+8>>2]=b;a=ih(J[c+12>>2],c+8|0);ga=c+16|0;return a|0}function Uv(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+20|0}function Kx(a,b){a=a|0;b=Q(b);var c=0;c=ga-16|0;ga=c;J[c+12>>2]=a;N[c+8>>2]=b;a=tj(J[c+12>>2],c+8|0);ga=c+16|0;return a|0}function Ix(a,b){a=a|0;b=Q(b);var c=0;c=ga-16|0;ga=c;J[c+12>>2]=a;N[c+8>>2]=b;a=uj(J[c+12>>2],c+8|0);ga=c+16|0;return a|0}function Cf(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+92|0}function sc(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=ga-16|0;J[a+12>>2]=J[b+12>>2];ga=b+16|0;return J[a+12>>2]+4|0}function Tv(){var a=0;a=ra(32);J[a+4>>2]=35;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=13324;J[a+4>>2]=27;J[a>>2]=15040;return a|0}function Dw(a,b){a=a|0;b=b|0;var c=0;c=ga-16|0;J[c+12>>2]=a;J[c+8>>2]=b;return Q(N[(J[c+12>>2]+20|0)+(J[c+8>>2]<<2)>>2])}function CC(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];d=J[c>>2];ia[J[J[d>>2]+108>>2]](d,b,c+108|0);return J[a+4>>2]+108|0}function Fc(a,b){var c=0;Ed(a,b);c=J[a+4>>2];if(c){J[8370]=J[8370]+1;ia[J[6783]](c)}J[a+4>>2]=b;J[a+12>>2]=J[a+12>>2]-1}function Ey(a){a=a|0;var b=0;J[a>>2]=23088;b=J[a+32>>2];if(!(b?!b|!K[a+36|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}ta(a)}function Ee(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+100>>2]](a)&1;ga=b+16|0;return a|0}function sd(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+36>>2]](a)|0;ga=b+16|0;return a|0}function qw(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+96>>2]](a)|0;ga=b+16|0;return a|0}function ql(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+80>>2]](a)|0;ga=b+16|0;return a|0}function nn(a){a=a|0;var b=0;J[a>>2]=5524;b=J[a+16>>2];if(!(b?!b|!K[a+20|0]:1)){J[8370]=J[8370]+1;ia[J[6783]](b)}ta(a)}function jl(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+84>>2]](a)|0;ga=b+16|0;return a|0}function hl(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+88>>2]](a)|0;ga=b+16|0;return a|0}function ge(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+20>>2]](a)|0;ga=b+16|0;return a|0}function el(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+92>>2]](a)&1;ga=b+16|0;return a|0}function cr(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+40>>2]](a)&1;ga=b+16|0;return a|0}function Wq(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+48>>2]](a)&1;ga=b+16|0;return a|0}function Vu(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+52>>2]](a)|0;ga=b+16|0;return a|0}function Nd(a){var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];J[(ga-16|0)+12>>2]=a;J[(ga-16|0)+12>>2]=a+16;ga=b+16|0}function Le(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+76>>2]](a)|0;ga=b+16|0;return a|0}function Hl(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+12>>2]](a)|0;ga=b+16|0;return a|0}function Ge(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+96>>2]](a)&1;ga=b+16|0;return a|0}function Aa(a){a=a|0;var b=0;b=ga-16|0;ga=b;J[b+12>>2]=a;a=J[b+12>>2];a=ia[J[J[a>>2]+28>>2]](a)|0;ga=b+16|0;return a|0}function $h(a){a=a|0;var b=0;b=ga-16|0;ga=b;JLine truncated
function iB(a){a=a|0;return 252}function eB(a){a=a|0;return 348}function ZA(a){a=a|0;return 220}function Rz(a){a=a|0;return 488}function DA(a){a=a|0;return 204}function Ca(a){a=a|0;return a|0}function sE(a){a=a|0;return 68}function rm(a){a=a|0;return 84}function qG(a){a=a|0;ta(af(a))}function py(a){a=a|0;dg(33488)}function gz(a){a=a|0;return 32}function bz(a){a=a|0;ta(pe(a))}function Zl(a){a=a|0;return 64}function Ze(a){a=a|0;return 60}function ZG(a){a=a|0;ta(a-4|0)}function QE(a){a=a|0;return 24}function QC(a){a=a|0;return 28}function Pl(a){a=a|0;return 52}function Kz(a){a=a|0;ta(sk(a))}function HF(a){a=a|0;return 12}function BG(a){a=a|0;ta(Im(a))}function xm(a){a=a|0;return 6}function oH(a,b){a=a|0;b=Q(b)}function La(a){a=a|0;return 0}function Jy(a){a=a|0;return 4}function Ig(a){a=a|0;return 2}function Ic(a){a=a|0;return 1}function IF(a){a=a|0;return 8}function Wo(){return ua(1)|0}function Ka(a,b){a=a|0;b=b|0}function pa(a){a=a|0;ta(a)}function xk(a,b){wk(a,b)}function ib(a){a=a|0;Z()}function uf(){return 1}function tf(){return 2}function oy(){ca();Z()}function _h(){return 0}function Zh(){return 3}function Xh(){return 4}function Po(){return 5}function Wb(a){a=a|0}
// EMSCRIPTEN_END_FUNCS
g=K;r(la);var ia=e([null,Oa,Yb,Oo,No,Mo,Lo,Ko,Jo,Io,Ho,Go,Fo,Eo,Do,Co,Bo,Ao,zo,yo,xo,wo,vo,uo,Xa,tb,oy,Oa,to,so,ro,Xa,tb,Oa,Yb,qo,po,Xa,tb,Vh,oo,no,Oa,Yb,mo,lo,Xa,tb,Oa,Yb,ko,jo,Xa,tb,of,io,ho,eF,cF,dF,Ve,Gm,go,fo,eo,bi,ci,co,bo,bF,Vg,ao,oE,$n,rE,_n,Zn,wD,Kh,Kh,Yn,Xn,Jh,Wn,Vn,Un,nf,Tn,Sn,Ih,Rn,eD,sD,tD,Qn,vD,uD,Hh,lf,gf,dD,cD,bD,aD,Cb,Ug,vd,Pn,tb,On,Mn,Sf,Ln,qc,Kn,fb,kf,Jn,In,Hn,Fh,Fh,Gn,kf,kf,Oa,Yb,Hh,Fn,En,lf,Xa,tb,Oa,Yb,Jh,Ti,Dn,Cn,Xa,tb,Oa,Yb,Bn,An,lf,Xa,tb,hf,zn,xn,wn,vn,th,un,tn,sn,gf,gf,rn,qn,Wb,pn,on,nn,rh,mn,Da,kc,kc,qh,Da,La,Da,Ka,Da,rh,Ic,Ka,Ka,ln,kn,jn,hn,en,th,gn,fn,iI,cn,cn,hI,gI,Wb,Ca,pa,fI,eI,dI,nh,nh,pa,Da,bn,pa,bn,cI,bI,VH,YH,_H,kc,kc,qh,aI,lh,$H,UH,XH,ZH,La,$m,WH,Ca,pa,TH,pa,SH,RH,QH,PH,LH,OH,MH,NH,JH,KH,IH,FH,EH,DH,Zm,Zm,HH,GH,pa,CH,nh,BH,AH,yH,xH,kh,zH,Xm,wH,vH,uH,$m,pH,Um,rH,sH,jh,Ad,tH,qH,oH,Ka,Da,Ca,pa,Ca,pa,RB,Rm,pa,Rm,pa,nH,pa,mH,lH,pa,QB,kH,pa,jH,pa,iH,hH,Ca,pa,gH,pa,fH,pa,eH,Ca,pa,dH,cH,bH,Ca,pa,aH,$G,_G,ZG,YG,Ca,ib,Ca,ib,Ca,pa,TG,XG,WG,VG,UG,SG,pa,Da,Da,Om,pa,Da,Da,RG,pa,QG,PG,OG,JG,IG,NG,MG,LG,KG,pa,Mm,HG,GG,FG,EG,DG,pa,CG,Im,BG,zG,yG,AG,pa,xG,Ka,Ca,pa,Hm,wG,vG,uG,Tb,yd,tG,sG,rG,Tb,yd,af,qG,lh,kc,Em,Dm,Ca,pa,pG,pa,oG,pa,nG,pa,mG,pa,lG,pa,kG,pa,jG,pa,iG,pa,hG,pa,gG,pa,Cm,Tb,Ka,fG,eG,dG,cG,bG,aG,$F,_F,ZF,YF,XF,WF,kc,pa,VF,UF,TF,SF,Tb,yd,RF,QF,PF,Tb,yd,pa,zm,Qa,bh,ym,ah,OF,NF,_g,MF,LF,KF,xm,JF,IF,HF,GF,FF,xm,EF,DF,CF,_e,BF,sm,rm,yF,AF,zF,xF,wF,PC,uF,OC,Rg,qF,pF,Ze,tF,vF,MC,oF,sF,rF,Ca,pa,pm,pa,pm,pa,nF,Ca,Ra,jF,ah,kF,iF,om,_g,Ze,hF,mF,lF,Ra,gF,Ra,fF,aF,$E,YE,WE,UE,XE,TE,SE,RE,QE,VE,_E,ZE,Ca,ib,Ra,LE,ME,KE,JE,IE,Ze,HE,NE,PE,OE,Ra,GE,FE,Ra,EE,DE,vE,uE,Sl,CE,tE,sE,xE,Vg,BE,AE,im,im,zE,yE,La,Cb,Ug,wE,ib,ib,qE,pE,ib,bh,kE,jE,iE,Vg,mE,lE,La,La,Cb,Da,La,Cb,Ug,Ca,pa,hE,Ra,ym,ah,gE,$D,om,_g,Ze,_D,ZD,dE,cE,cm,Ra,YD,fE,aE,XD,Ra,WD,eE,bE,cm,Ca,Ra,am,VD,UD,Sg,TD,Cb,SD,RD,QD,ND,MD,Rg,LD,OD,PD,GD,FD,ID,ED,Zl,HD,KD,JD,DD,CD,BD,pa,AD,pa,zD,Wl,xD,ib,ib,Ra,am,nD,mD,Ql,lD,oD,qD,pD,Ca,Ra,kD,iD,hD,Rg,gD,Pl,fD,jD,bh,Ol,YC,$C,Nl,Nl,Ka,Ka,Dm,Ka,Ka,XC,WC,VC,QC,ZC,Ll,RC,TC,SC,Ca,Ra,Kl,LC,NC,pa,KC,pa,JC,IC,HC,GC,Tb,FC,EC,Ca,pa,DC,pa,CC,pa,pa,BC,pa,AC,Gl,rC,zC,qC,La,El,pC,oC,La,La,Da,Da,nC,Dl,Dl,mC,lC,kC,jC,iC,hC,yC,gC,fC,eC,vC,Ic,El,dC,La,Ic,La,cC,Da,bC,aC,vd,vd,Da,Da,wC,Bl,$B,_B,xC,ZB,YB,Zl,sC,uC,XB,WB,Ig,La,La,La,La,La,Da,Da,Wb,Wb,Cm,vd,vd,Da,Da,Cb,tC,Ca,pa,xl,pa,Da,Da,VB,pa,Hg,nE,Ue,Ca,pa,UB,pa,zb,pa,TB,pa,Da,Da,SB,ib,ib,pa,sl,PB,OB,DB,Ka,NB,MB,LB,KB,JB,IB,HB,GB,FB,EB,pa,CB,dl,gc,zB,uB,BB,AB,yB,xB,wB,tB,sB,vB,dl,gc,Wb,rB,qB,Om,pB,oB,Pl,fc,gc,nB,mB,al,kB,jB,iB,hB,lB,gc,gB,eB,dB,fB,gc,cB,bB,aB,$A,_A,ZA,YA,gc,XA,WA,VA,UA,TA,rm,SA,Uk,RA,Da,JA,Da,IA,Ic,QA,MA,KA,NA,OA,LA,gc,HA,GA,FA,EA,DA,CA,BA,ib,AA,zA,yA,xA,sg,wA,Kk,oA,Hk,_z,rA,jA,iA,gA,fA,qA,pA,sA,mA,lA,nA,bA,aA,$z,Bk,Bk,Ig,uA,Gk,Fk,Gk,Fk,Ck,cA,dA,eA,kA,Jk,vA,tA,Ka,Zz,Yz,Xz,Wz,pa,Uz,Tz,Sz,Oz,Nz,Rz,Qz,Pz,Mz,sk,Kz,Fz,Hz,Jz,Iz,Ez,pa,Gz,Bz,pk,Cz,Ka,sz,rz,qz,pa,Az,Ca,pa,zz,yz,xz,Ig,Ra,pz,Ka,oz,Sg,nz,Cb,pa,mz,pa,lz,Ra,Cb,Sg,kz,Ql,jz,iz,hz,Cb,gz,pa,fz,pa,ez,tz,wz,vz,uz,dz,cz,$y,_y,Ka,pe,bz,az,pa,Mm,Zy,Yy,Xy,pa,Wy,pa,Vy,pa,Uy,pa,Ty,Ca,pa,Sy,Tb,Ka,Zj,Ry,My,Ly,Ny,Ky,Jy,Py,Oy,pa,Iy,Ca,pa,Hy,Tb,yd,Fy,Ey,La,Ic,Dy,Ka,xy,By,Cy,yy,zy,wy,rD,vy,lh,Ay,ty,uy,sy,pa,qy,py,Ca,pa,Wb,Wb,ny,ey,hy,my,pa,fy,iy,ly,pa,gy,jy,ky]);function ja(){return G.byteLength/65536|0}return{"h":dn,"i":Ba,"j":Aa,"k":Ea,"l":Wa,"m":Va,"n":oa,"o":Zd,"p":Xd,"q":Qd,"r":df,"s":tm,"t":em,"u":Pe,"v":He,"w":ze,"x":se,"y":me,"z":je,"A":ie,"B":md,"C":ge,"D":fe,"E":ee,"F":oa,"G":kd,"H":jd,"I":vc,"J":id,"K":gd,"L":bd,"M":ad,"N":$c,"O":_c,"P":Zc,"Q":Yc,"R":Xc,"S":Wc,"T":Vc,"U":Uc,"V":Tc,"W":Sc,"X":sc,"Y":Rc,"Z":Qc,"_":Pc,"$":Zb,"aa":Oc,"ba":Lc,"ca":nb,"da":mb,"ea":nb,"fa":mb,"ga":rc,"ha":Kc,"ia":Ba,"ja":Aa,"ka":Ea,"la":oa,"ma":oa,"na":Jb,"oa":Ib,"pa":Hb,"qa":Gb,"ra":Fb,"sa":oa,"ta":_d,"ua":Df,"va":Cf,"wa":Bf,"xa":zf,"ya":yf,"za":Zd,"Aa":Xd,"Ba":Qd,"Ca":df,"Da":tm,"Ea":em,"Fa":Pe,"Ga":He,"Ha":ze,"Ia":se,"Ja":me,"Ka":je,"La":ie,"Ma":md,"Na":ge,"Oa":fe,"Pa":ee,"Qa":oa,"Ra":xf,"Sa":ki,"Ta":ii,"Ua":fi,"Va":ai,"Wa":$h,"Xa":oa,"Ya":zp,"Za":ep,"_a":Yh,"$a":Wd,"ab":Ud,"bb":Sd,"cb":Rd,"db":Pd,"eb":Od,"fb":Nn,"gb":Eh,"hb":yn,"ib":_m,"jb":Ym,"kb":Tm,"lb":Qm,"mb":zd,"nb":Wd,"ob":Ud,"pb":Sd,"qb":fh,"rb":Rd,"sb":Pd,"tb":Od,"ub":Fm,"vb":Fa,"wb":Bm,"xb":Zb,"yb":oa,"zb":ch,"Ab":$g,"Bb":Zg,"Cb":Xg,"Db":Wg,"Eb":hb,"Fb":gb,"Gb":xd,"Hb":wd,"Ib":Ye,"Jb":We,"Kb":oa,"Lb":hm,"Mb":oa,"Nb":fm,"Ob":dm,"Pb":bm,"Qb":$l,"Rb":_l,"Sb":hb,"Tb":gb,"Ub":oa,"Vb":Ba,"Wb":Aa,"Xb":Ea,"Yb":Wa,"Zb":Va,"_b":oa,"$b":yD,"ac":Wa,"bc":Va,"cc":Te,"dc":Pg,"ec":Og,"fc":Ba,"gc":Aa,"hc":Ea,"ic":oa,"jc":_C,"kc":Wa,"lc":Va,"mc":Ba,"nc":Aa,"oc":Ea,"pc":oa,"qc":UC,"rc":Ba,"sc":Aa,"tc":Ea,"uc":oa,"vc":Jl,"wc":oa,"xc":Ba,"yc":Aa,"zc":Ea,"Ac":oa,"Bc":Kg,"Cc":Hl,"Dc":Fl,"Ec":Cl,"Fc":oa,"Gc":Oe,"Hc":Ne,"Ic":Le,"Jc":sd,"Kc":ql,"Lc":jl,"Mc":hl,"Nc":el,"Oc":Ge,"Pc":Ee,"Qc":Ce,"Rc":Be,"Sc":Vk,"Tc":PA,"Uc":Ik,"Vc":Ba,"Wc":Aa,"Xc":Ea,"Yc":oa,"Zc":oa,"_c":hA,"$c":Vz,"ad":oa,"bd":sd,"cd":vk,"dd":oa,"ed":Lz,"fd":Dz,"gd":ok,"hd":gk,"id":ek,"jd":bk,"kd":oe,"ld":Jb,"md":Ib,"nd":Hb,"od":GLine truncated
// EMSCRIPTEN_END_ASM
)(Fa)}function Ga(){return{then:function(a){a({instance:new Ea})}}}
var Ia=Error,WebAssembly={};Ba=[];"object"!=typeof WebAssembly&&xa("no native wasm support detected");var Ja,Ka=!1,La="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
function Ma(a,c){if(a){var d=Na,e=a+c;for(c=a;d[c]&&!(c>=e);)++c;if(16<c-a&&d.subarray&&La)a=La.decode(d.subarray(a,c));else{for(e="";a<c;){var f=d[a++];if(f&128){var m=d[a++]&63;if(192==(f&224))e+=String.fromCharCode((f&31)<<6|m);else{var y=d[a++]&63;f=224==(f&240)?(f&15)<<12|m<<6|y:(f&7)<<18|m<<12|y<<6|d[a++]&63;65536>f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}a=e}}else a="";return a}
var Oa,Pa,Na,Qa,Ra,Sa,Da=b.INITIAL_MEMORY||67108864;if(Ja=b.wasmMemory?b.wasmMemory:new Ca)Oa=Ja.buffer;Da=Oa.byteLength;var Ta=Oa;Oa=Ta;b.HEAP8=Pa=new Int8Array(Ta);b.HEAP16=new Int16Array(Ta);b.HEAP32=Qa=new Int32Array(Ta);b.HEAPU8=Na=new Uint8Array(Ta);b.HEAPU16=new Uint16Array(Ta);b.HEAPU32=new Uint32Array(Ta);b.HEAPF32=Ra=new Float32Array(Ta);b.HEAPF64=Sa=new Float64Array(Ta);var Ua,Va=[],Wa=[],Xa=[],Ya=!1;function Za(){var a=b.preRun.shift();Va.unshift(a)}
Math.imul||(Math.imul=function(a,c){var d=a&65535,e=c&65535;return d*e+((a>>>16)*e+d*(c>>>16)<<16)|0});if(!Math.fround){var $a=new Float32Array(1);Math.fround=function(a){$a[0]=a;return $a[0]}}Math.clz32||(Math.clz32=function(a){var c=32,d=a>>16;d&&(c-=16,a=d);if(d=a>>8)c-=8,a=d;if(d=a>>4)c-=4,a=d;if(d=a>>2)c-=2,a=d;return a>>1?c-2:c-a});Math.trunc||(Math.trunc=function(a){return 0>a?Math.ceil(a):Math.floor(a)});var ab=0,bb=null,cb=null;b.preloadedImages={};b.preloadedAudios={};
function xa(a){if(b.onAbort)b.onAbort(a);a="Aborted("+a+")";ya(a);Ka=!0;a=new Ia(a+". Build with -s ASSERTIONS=1 for more info.");ka(a);throw a;}var db="data:application/octet-stream;base64,",eb;eb="<<< WASM_BINARY_FILE >>>";if(!eb.startsWith(db)){var fb=eb;eb=b.locateFile?b.locateFile(fb,pa):pa+fb}function gb(){var a=eb;try{if(a==eb&&Ba)return new Uint8Array(Ba);var c=va(a);if(c)return c;if(sa)return sa(a);throw"both async and sync fetching of the wasm failed";}catch(d){xa(d)}}
function hb(){if(!Ba&&(ma||na)){if("function"==typeof fetch&&!eb.startsWith("file://"))return fetch(eb,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+eb+"'";return a.arrayBuffer()}).catch(function(){return gb()});if(ra)return new Promise(function(a,c){ra(eb,function(d){a(new Uint8Array(d))},c)})}return Promise.resolve().then(function(){return gb()})}
var ib={27254:function(a,c,d,e){a=b.getCache(b.DebugDrawer)[a];if(!a.hasOwnProperty("drawLine"))throw"a JSImplementation must implement all functions, you forgot DebugDrawer::drawLine.";a.drawLine(c,d,e)},27474:function(a,c,d,e,f,m){a=b.getCache(b.DebugDrawer)[a];if(!a.hasOwnProperty("drawContactPoint"))throw"a JSImplementation must implement all functions, you forgot DebugDrawer::drawContactPoint.";a.drawContactPoint(c,d,e,f,m)},27724:function(a,c){a=b.getCache(b.DebugDrawer)[a];if(!a.hasOwnProperty("reportErrorWarning"))throw"a JSImplementation must implement all functions, you forgot DebugDrawer::reportErrorWarning.";
a.reportErrorWarning(c)},27968:function(a,c,d){a=b.getCache(b.DebugDrawer)[a];if(!a.hasOwnProperty("draw3dText"))throw"a JSImplementation must implement all functions, you forgot DebugDrawer::draw3dText.";a.draw3dText(c,d)},28191:function(a,c){a=b.getCache(b.DebugDrawer)[a];if(!a.hasOwnProperty("setDebugMode"))throw"a JSImplementation must implement all functions, you forgot DebugDrawer::setDebugMode.";a.setDebugMode(c)},28417:function(a){a=b.getCache(b.DebugDrawer)[a];if(!a.hasOwnProperty("getDebugMode"))throw"a JSImplementation must implement all functions, you forgot DebugDrawer::getDebugMode.";
return a.getDebugMode()},28648:function(a,c,d,e,f,m,y,W){a=b.getCache(b.ConcreteContactResultCallback)[a];if(!a.hasOwnProperty("addSingleResult"))throw"a JSImplementation must implement all functions, you forgot ConcreteContactResultCallback::addSingleResult.";return a.addSingleResult(c,d,e,f,m,y,W)}};function jb(a){for(;0<a.length;){var c=a.shift();if("function"==typeof c)c(b);else{var d=c.QH;"number"==typeof d?void 0===c.HB?kb(d)():kb(d)(c.HB):d(void 0===c.HB?null:c.HB)}}}var lb=[];
function kb(a){var c=lb[a];c||(a>=lb.length&&(lb.length=a+1),lb[a]=c=Ua.get(a));return c}var mb=[];function nb(a,c,d){mb.length=0;var e;for(d>>=2;e=Na[c++];)(e=105>e)&&d&1&&d++,mb.push(e?Sa[d++>>1]:Qa[d]),++d;return ib[a].apply(null,mb)}
var wa=!1,ob="function"==typeof atob?atob:function(a){var c="",d=0;a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));e=e<<2|
f>>4;f=(f&15)<<4|m>>2;var W=(m&3)<<6|y;c+=String.fromCharCode(e);64!==m&&(c+=String.fromCharCode(f));64!==y&&(c+=String.fromCharCode(W))}while(d<a.length);return c};
function va(a){if(a.startsWith(db)){a=a.slice(db.length);if("boolean"==typeof oa&&oa){var c=Buffer.from(a,"base64");c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)}else try{var d=ob(a),e=new Uint8Array(d.length);for(a=0;a<d.length;++a)e[a]=d.charCodeAt(a);c=e}catch(f){throw Error("Converting base64 string to bytes failed.");}return c}}
var Fa={d:function(){xa("")},g:function(a,c,d){return nb(a,c,d)},c:nb,f:Uint8Array.prototype.copyWithin?function(a,c,d){Na.copyWithin(a,c,c+d)}:function(a,c,d){Na.set(Na.subarray(c,c+d),a)},e:function(){xa("OOM")},b:function(a){var c=Date.now();Qa[a>>2]=c/1E3|0;Qa[a+4>>2]=c%1E3*1E3|0;return 0},a:Ja};
(function(){function a(f){b.asm=f.exports;Ua=b.asm.cB;Wa.unshift(b.asm.h);ab--;b.monitorRunDependencies&&b.monitorRunDependencies(ab);0==ab&&(null!==bb&&(clearInterval(bb),bb=null),cb&&(f=cb,cb=null,f()))}function c(f){a(f.instance)}function d(f){return hb().then(function(){return Ga()}).then(function(m){return m}).then(f,function(m){ya("failed to asynchronously prepare wasm: "+m);xa(m)})}var e={a:Fa};ab++;b.monitorRunDependencies&&b.monitorRunDependencies(ab);if(b.instantiateWasm)try{return b.instantiateWasm(e,
a)}catch(f){return ya("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return Ba||"function"!=typeof WebAssembly.instantiateStreaming||eb.startsWith(db)||eb.startsWith("file://")||"function"!=typeof fetch?d(c):fetch(eb,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(c,function(m){ya("wasm streaming compile failed: "+m);ya("falling back to ArrayBuffer instantiation");return d(c)})})})().catch(ka);return{}})();
b.___wasm_call_ctors=function(){return(b.___wasm_call_ctors=b.asm.h).apply(null,arguments)};
var pb=b._emscripten_bind_btCollisionShape_setLocalScaling_1=function(){return(pb=b._emscripten_bind_btCollisionShape_setLocalScaling_1=b.asm.i).apply(null,arguments)},qb=b._emscripten_bind_btCollisionShape_getLocalScaling_0=function(){return(qb=b._emscripten_bind_btCollisionShape_getLocalScaling_0=b.asm.j).apply(null,arguments)},rb=b._emscripten_bind_btCollisionShape_calculateLocalInertia_2=function(){return(rb=b._emscripten_bind_btCollisionShape_calculateLocalInertia_2=b.asm.k).apply(null,arguments)},
sb=b._emscripten_bind_btCollisionShape_setMargin_1=function(){return(sb=b._emscripten_bind_btCollisionShape_setMargin_1=b.asm.l).apply(null,arguments)},tb=b._emscripten_bind_btCollisionShape_getMargin_0=function(){return(tb=b._emscripten_bind_btCollisionShape_getMargin_0=b.asm.m).apply(null,arguments)},ub=b._emscripten_bind_btCollisionShape___destroy___0=function(){return(ub=b._emscripten_bind_btCollisionShape___destroy___0=b.asm.n).apply(null,arguments)},vb=b._emscripten_bind_btCollisionWorld_getDispatcher_0=
function(){return(vb=b._emscripten_bind_btCollisionWorld_getDispatcher_0=b.asm.o).apply(null,arguments)},wb=b._emscripten_bind_btCollisionWorld_rayTest_3=function(){return(wb=b._emscripten_bind_btCollisionWorld_rayTest_3=b.asm.p).apply(null,arguments)},xb=b._emscripten_bind_btCollisionWorld_getPairCache_0=function(){return(xb=b._emscripten_bind_btCollisionWorld_getPairCache_0=b.asm.q).apply(null,arguments)},yb=b._emscripten_bind_btCollisionWorld_getDispatchInfo_0=function(){return(yb=b._emscripten_bind_btCollisionWorld_getDispatchInfo_0=
b.asm.r).apply(null,arguments)},zb=b._emscripten_bind_btCollisionWorld_addCollisionObject_1=function(){return(zb=b._emscripten_bind_btCollisionWorld_addCollisionObject_1=b.asm.s).apply(null,arguments)},Ab=b._emscripten_bind_btCollisionWorld_addCollisionObject_2=function(){return(Ab=b._emscripten_bind_btCollisionWorld_addCollisionObject_2=b.asm.t).apply(null,arguments)},Bb=b._emscripten_bind_btCollisionWorld_addCollisionObject_3=function(){return(Bb=b._emscripten_bind_btCollisionWorld_addCollisionObject_3=
b.asm.u).apply(null,arguments)},Cb=b._emscripten_bind_btCollisionWorld_removeCollisionObject_1=function(){return(Cb=b._emscripten_bind_btCollisionWorld_removeCollisionObject_1=b.asm.v).apply(null,arguments)},Db=b._emscripten_bind_btCollisionWorld_getBroadphase_0=function(){return(Db=b._emscripten_bind_btCollisionWorld_getBroadphase_0=b.asm.w).apply(null,arguments)},Fb=b._emscripten_bind_btCollisionWorld_convexSweepTest_5=function(){return(Fb=b._emscripten_bind_btCollisionWorld_convexSweepTest_5=b.asm.x).apply(null,
arguments)},Gb=b._emscripten_bind_btCollisionWorld_contactPairTest_3=function(){return(Gb=b._emscripten_bind_btCollisionWorld_contactPairTest_3=b.asm.y).apply(null,arguments)},Hb=b._emscripten_bind_btCollisionWorld_contactTest_2=function(){return(Hb=b._emscripten_bind_btCollisionWorld_contactTest_2=b.asm.z).apply(null,arguments)},Ib=b._emscripten_bind_btCollisionWorld_updateSingleAabb_1=function(){return(Ib=b._emscripten_bind_btCollisionWorld_updateSingleAabb_1=b.asm.A).apply(null,arguments)},Jb=
b._emscripten_bind_btCollisionWorld_setDebugDrawer_1=function(){return(Jb=b._emscripten_bind_btCollisionWorld_setDebugDrawer_1=b.asm.B).apply(null,arguments)},Kb=b._emscripten_bind_btCollisionWorld_getDebugDrawer_0=function(){return(Kb=b._emscripten_bind_btCollisionWorld_getDebugDrawer_0=b.asm.C).apply(null,arguments)},Lb=b._emscripten_bind_btCollisionWorld_debugDrawWorld_0=function(){return(Lb=b._emscripten_bind_btCollisionWorld_debugDrawWorld_0=b.asm.D).apply(null,arguments)},Mb=b._emscripten_bind_btCollisionWorld_debugDrawObject_3=
function(){return(Mb=b._emscripten_bind_btCollisionWorld_debugDrawObject_3=b.asm.E).apply(null,arguments)},Nb=b._emscripten_bind_btCollisionWorld___destroy___0=function(){return(Nb=b._emscripten_bind_btCollisionWorld___destroy___0=b.asm.F).apply(null,arguments)},Ob=b._emscripten_bind_btCollisionObject_setAnisotropicFriction_2=function(){return(Ob=b._emscripten_bind_btCollisionObject_setAnisotropicFriction_2=b.asm.G).apply(null,arguments)},Pb=b._emscripten_bind_btCollisionObject_getCollisionShape_0=
function(){return(Pb=b._emscripten_bind_btCollisionObject_getCollisionShape_0=b.asm.H).apply(null,arguments)},Qb=b._emscripten_bind_btCollisionObject_setContactProcessingThreshold_1=function(){return(Qb=b._emscripten_bind_btCollisionObject_setContactProcessingThreshold_1=b.asm.I).apply(null,arguments)},Rb=b._emscripten_bind_btCollisionObject_setActivationState_1=function(){return(Rb=b._emscripten_bind_btCollisionObject_setActivationState_1=b.asm.J).apply(null,arguments)},Sb=b._emscripten_bind_btCollisionObject_forceActivationState_1=
function(){return(Sb=b._emscripten_bind_btCollisionObject_forceActivationState_1=b.asm.K).apply(null,arguments)},Tb=b._emscripten_bind_btCollisionObject_activate_0=function(){return(Tb=b._emscripten_bind_btCollisionObject_activate_0=b.asm.L).apply(null,arguments)},Ub=b._emscripten_bind_btCollisionObject_activate_1=function(){return(Ub=b._emscripten_bind_btCollisionObject_activate_1=b.asm.M).apply(null,arguments)},Vb=b._emscripten_bind_btCollisionObject_isActive_0=function(){return(Vb=b._emscripten_bind_btCollisionObject_isActive_0=
b.asm.N).apply(null,arguments)},Wb=b._emscripten_bind_btCollisionObject_isKinematicObject_0=function(){return(Wb=b._emscripten_bind_btCollisionObject_isKinematicObject_0=b.asm.O).apply(null,arguments)},Xb=b._emscripten_bind_btCollisionObject_isStaticObject_0=function(){return(Xb=b._emscripten_bind_btCollisionObject_isStaticObject_0=b.asm.P).apply(null,arguments)},Yb=b._emscripten_bind_btCollisionObject_isStaticOrKinematicObject_0=function(){return(Yb=b._emscripten_bind_btCollisionObject_isStaticOrKinematicObject_0=
b.asm.Q).apply(null,arguments)},Zb=b._emscripten_bind_btCollisionObject_getRestitution_0=function(){return(Zb=b._emscripten_bind_btCollisionObject_getRestitution_0=b.asm.R).apply(null,arguments)},$b=b._emscripten_bind_btCollisionObject_getFriction_0=function(){return($b=b._emscripten_bind_btCollisionObject_getFriction_0=b.asm.S).apply(null,arguments)},ac=b._emscripten_bind_btCollisionObject_getRollingFriction_0=function(){return(ac=b._emscripten_bind_btCollisionObject_getRollingFriction_0=b.asm.T).apply(null,
arguments)},bc=b._emscripten_bind_btCollisionObject_setRestitution_1=function(){return(bc=b._emscripten_bind_btCollisionObject_setRestitution_1=b.asm.U).apply(null,arguments)},cc=b._emscripten_bind_btCollisionObject_setFriction_1=function(){return(cc=b._emscripten_bind_btCollisionObject_setFriction_1=b.asm.V).apply(null,arguments)},dc=b._emscripten_bind_btCollisionObject_setRollingFriction_1=function(){return(dc=b._emscripten_bind_btCollisionObject_setRollingFriction_1=b.asm.W).apply(null,arguments)},
ec=b._emscripten_bind_btCollisionObject_getWorldTransform_0=function(){return(ec=b._emscripten_bind_btCollisionObject_getWorldTransform_0=b.asm.X).apply(null,arguments)},gc=b._emscripten_bind_btCollisionObject_getCollisionFlags_0=function(){return(gc=b._emscripten_bind_btCollisionObject_getCollisionFlags_0=b.asm.Y).apply(null,arguments)},hc=b._emscripten_bind_btCollisionObject_setCollisionFlags_1=function(){return(hc=b._emscripten_bind_btCollisionObject_setCollisionFlags_1=b.asm.Z).apply(null,arguments)},
ic=b._emscripten_bind_btCollisionObject_setWorldTransform_1=function(){return(ic=b._emscripten_bind_btCollisionObject_setWorldTransform_1=b.asm._).apply(null,arguments)},jc=b._emscripten_bind_btCollisionObject_setCollisionShape_1=function(){return(jc=b._emscripten_bind_btCollisionObject_setCollisionShape_1=b.asm.$).apply(null,arguments)},kc=b._emscripten_bind_btCollisionObject_setCcdMotionThreshold_1=function(){return(kc=b._emscripten_bind_btCollisionObject_setCcdMotionThreshold_1=b.asm.aa).apply(null,
arguments)},lc=b._emscripten_bind_btCollisionObject_setCcdSweptSphereRadius_1=function(){return(lc=b._emscripten_bind_btCollisionObject_setCcdSweptSphereRadius_1=b.asm.ba).apply(null,arguments)},mc=b._emscripten_bind_btCollisionObject_getUserIndex_0=function(){return(mc=b._emscripten_bind_btCollisionObject_getUserIndex_0=b.asm.ca).apply(null,arguments)},nc=b._emscripten_bind_btCollisionObject_setUserIndex_1=function(){return(nc=b._emscripten_bind_btCollisionObject_setUserIndex_1=b.asm.da).apply(null,
arguments)},oc=b._emscripten_bind_btCollisionObject_getUserPointer_0=function(){return(oc=b._emscripten_bind_btCollisionObject_getUserPointer_0=b.asm.ea).apply(null,arguments)},pc=b._emscripten_bind_btCollisionObject_setUserPointer_1=function(){return(pc=b._emscripten_bind_btCollisionObject_setUserPointer_1=b.asm.fa).apply(null,arguments)},qc=b._emscripten_bind_btCollisionObject_getBroadphaseHandle_0=function(){return(qc=b._emscripten_bind_btCollisionObject_getBroadphaseHandle_0=b.asm.ga).apply(null,
arguments)},sc=b._emscripten_bind_btCollisionObject___destroy___0=function(){return(sc=b._emscripten_bind_btCollisionObject___destroy___0=b.asm.ha).apply(null,arguments)},tc=b._emscripten_bind_btConcaveShape_setLocalScaling_1=function(){return(tc=b._emscripten_bind_btConcaveShape_setLocalScaling_1=b.asm.ia).apply(null,arguments)},uc=b._emscripten_bind_btConcaveShape_getLocalScaling_0=function(){return(uc=b._emscripten_bind_btConcaveShape_getLocalScaling_0=b.asm.ja).apply(null,arguments)},vc=b._emscripten_bind_btConcaveShape_calculateLocalInertia_2=
function(){return(vc=b._emscripten_bind_btConcaveShape_calculateLocalInertia_2=b.asm.ka).apply(null,arguments)},wc=b._emscripten_bind_btConcaveShape___destroy___0=function(){return(wc=b._emscripten_bind_btConcaveShape___destroy___0=b.asm.la).apply(null,arguments)},xc=b._emscripten_bind_btCollisionAlgorithm___destroy___0=function(){return(xc=b._emscripten_bind_btCollisionAlgorithm___destroy___0=b.asm.ma).apply(null,arguments)},yc=b._emscripten_bind_btTypedConstraint_enableFeedback_1=function(){return(yc=
b._emscripten_bind_btTypedConstraint_enableFeedback_1=b.asm.na).apply(null,arguments)},zc=b._emscripten_bind_btTypedConstraint_getBreakingImpulseThreshold_0=function(){return(zc=b._emscripten_bind_btTypedConstraint_getBreakingImpulseThreshold_0=b.asm.oa).apply(null,arguments)},Ac=b._emscripten_bind_btTypedConstraint_setBreakingImpulseThreshold_1=function(){return(Ac=b._emscripten_bind_btTypedConstraint_setBreakingImpulseThreshold_1=b.asm.pa).apply(null,arguments)},Bc=b._emscripten_bind_btTypedConstraint_getParam_2=
function(){return(Bc=b._emscripten_bind_btTypedConstraint_getParam_2=b.asm.qa).apply(null,arguments)},Cc=b._emscripten_bind_btTypedConstraint_setParam_3=function(){return(Cc=b._emscripten_bind_btTypedConstraint_setParam_3=b.asm.ra).apply(null,arguments)},Dc=b._emscripten_bind_btTypedConstraint___destroy___0=function(){return(Dc=b._emscripten_bind_btTypedConstraint___destroy___0=b.asm.sa).apply(null,arguments)},Fc=b._emscripten_bind_btDynamicsWorld_addAction_1=function(){return(Fc=b._emscripten_bind_btDynamicsWorld_addAction_1=
b.asm.ta).apply(null,arguments)},Gc=b._emscripten_bind_btDynamicsWorld_removeAction_1=function(){return(Gc=b._emscripten_bind_btDynamicsWorld_removeAction_1=b.asm.ua).apply(null,arguments)},Hc=b._emscripten_bind_btDynamicsWorld_getSolverInfo_0=function(){return(Hc=b._emscripten_bind_btDynamicsWorld_getSolverInfo_0=b.asm.va).apply(null,arguments)},Ic=b._emscripten_bind_btDynamicsWorld_setInternalTickCallback_1=function(){return(Ic=b._emscripten_bind_btDynamicsWorld_setInternalTickCallback_1=b.asm.wa).apply(null,
arguments)},Jc=b._emscripten_bind_btDynamicsWorld_setInternalTickCallback_2=function(){return(Jc=b._emscripten_bind_btDynamicsWorld_setInternalTickCallback_2=b.asm.xa).apply(null,arguments)},Kc=b._emscripten_bind_btDynamicsWorld_setInternalTickCallback_3=function(){return(Kc=b._emscripten_bind_btDynamicsWorld_setInternalTickCallback_3=b.asm.ya).apply(null,arguments)},Lc=b._emscripten_bind_btDynamicsWorld_getDispatcher_0=function(){return(Lc=b._emscripten_bind_btDynamicsWorld_getDispatcher_0=b.asm.za).apply(null,
arguments)},Mc=b._emscripten_bind_btDynamicsWorld_rayTest_3=function(){return(Mc=b._emscripten_bind_btDynamicsWorld_rayTest_3=b.asm.Aa).apply(null,arguments)},Nc=b._emscripten_bind_btDynamicsWorld_getPairCache_0=function(){return(Nc=b._emscripten_bind_btDynamicsWorld_getPairCache_0=b.asm.Ba).apply(null,arguments)},Oc=b._emscripten_bind_btDynamicsWorld_getDispatchInfo_0=function(){return(Oc=b._emscripten_bind_btDynamicsWorld_getDispatchInfo_0=b.asm.Ca).apply(null,arguments)},Pc=b._emscripten_bind_btDynamicsWorld_addCollisionObject_1=
function(){return(Pc=b._emscripten_bind_btDynamicsWorld_addCollisionObject_1=b.asm.Da).apply(null,arguments)},Qc=b._emscripten_bind_btDynamicsWorld_addCollisionObject_2=function(){return(Qc=b._emscripten_bind_btDynamicsWorld_addCollisionObject_2=b.asm.Ea).apply(null,arguments)},Rc=b._emscripten_bind_btDynamicsWorld_addCollisionObject_3=function(){return(Rc=b._emscripten_bind_btDynamicsWorld_addCollisionObject_3=b.asm.Fa).apply(null,arguments)},Sc=b._emscripten_bind_btDynamicsWorld_removeCollisionObject_1=
function(){return(Sc=b._emscripten_bind_btDynamicsWorld_removeCollisionObject_1=b.asm.Ga).apply(null,arguments)},Tc=b._emscripten_bind_btDynamicsWorld_getBroadphase_0=function(){return(Tc=b._emscripten_bind_btDynamicsWorld_getBroadphase_0=b.asm.Ha).apply(null,arguments)},Uc=b._emscripten_bind_btDynamicsWorld_convexSweepTest_5=function(){return(Uc=b._emscripten_bind_btDynamicsWorld_convexSweepTest_5=b.asm.Ia).apply(null,arguments)},Vc=b._emscripten_bind_btDynamicsWorld_contactPairTest_3=function(){return(Vc=
b._emscripten_bind_btDynamicsWorld_contactPairTest_3=b.asm.Ja).apply(null,arguments)},Yc=b._emscripten_bind_btDynamicsWorld_contactTest_2=function(){return(Yc=b._emscripten_bind_btDynamicsWorld_contactTest_2=b.asm.Ka).apply(null,arguments)},Zc=b._emscripten_bind_btDynamicsWorld_updateSingleAabb_1=function(){return(Zc=b._emscripten_bind_btDynamicsWorld_updateSingleAabb_1=b.asm.La).apply(null,arguments)},$c=b._emscripten_bind_btDynamicsWorld_setDebugDrawer_1=function(){return($c=b._emscripten_bind_btDynamicsWorld_setDebugDrawer_1=
b.asm.Ma).apply(null,arguments)},ad=b._emscripten_bind_btDynamicsWorld_getDebugDrawer_0=function(){return(ad=b._emscripten_bind_btDynamicsWorld_getDebugDrawer_0=b.asm.Na).apply(null,arguments)},bd=b._emscripten_bind_btDynamicsWorld_debugDrawWorld_0=function(){return(bd=b._emscripten_bind_btDynamicsWorld_debugDrawWorld_0=b.asm.Oa).apply(null,arguments)},cd=b._emscripten_bind_btDynamicsWorld_debugDrawObject_3=function(){return(cd=b._emscripten_bind_btDynamicsWorld_debugDrawObject_3=b.asm.Pa).apply(null,
arguments)},dd=b._emscripten_bind_btDynamicsWorld___destroy___0=function(){return(dd=b._emscripten_bind_btDynamicsWorld___destroy___0=b.asm.Qa).apply(null,arguments)},ed=b._emscripten_bind_btIDebugDraw_drawLine_3=function(){return(ed=b._emscripten_bind_btIDebugDraw_drawLine_3=b.asm.Ra).apply(null,arguments)},fd=b._emscripten_bind_btIDebugDraw_drawContactPoint_5=function(){return(fd=b._emscripten_bind_btIDebugDraw_drawContactPoint_5=b.asm.Sa).apply(null,arguments)},gd=b._emscripten_bind_btIDebugDraw_reportErrorWarning_1=
function(){return(gd=b._emscripten_bind_btIDebugDraw_reportErrorWarning_1=b.asm.Ta).apply(null,arguments)},hd=b._emscripten_bind_btIDebugDraw_draw3dText_2=function(){return(hd=b._emscripten_bind_btIDebugDraw_draw3dText_2=b.asm.Ua).apply(null,arguments)},jd=b._emscripten_bind_btIDebugDraw_setDebugMode_1=function(){return(jd=b._emscripten_bind_btIDebugDraw_setDebugMode_1=b.asm.Va).apply(null,arguments)},kd=b._emscripten_bind_btIDebugDraw_getDebugMode_0=function(){return(kd=b._emscripten_bind_btIDebugDraw_getDebugMode_0=
b.asm.Wa).apply(null,arguments)},ld=b._emscripten_bind_btIDebugDraw___destroy___0=function(){return(ld=b._emscripten_bind_btIDebugDraw___destroy___0=b.asm.Xa).apply(null,arguments)},md=b._emscripten_bind_btVector3_btVector3_0=function(){return(md=b._emscripten_bind_btVector3_btVector3_0=b.asm.Ya).apply(null,arguments)},nd=b._emscripten_bind_btVector3_btVector3_3=function(){return(nd=b._emscripten_bind_btVector3_btVector3_3=b.asm.Za).apply(null,arguments)},od=b._emscripten_bind_btVector3_length_0=
function(){return(od=b._emscripten_bind_btVector3_length_0=b.asm._a).apply(null,arguments)},pd=b._emscripten_bind_btVector3_x_0=function(){return(pd=b._emscripten_bind_btVector3_x_0=b.asm.$a).apply(null,arguments)},qd=b._emscripten_bind_btVector3_y_0=function(){return(qd=b._emscripten_bind_btVector3_y_0=b.asm.ab).apply(null,arguments)},rd=b._emscripten_bind_btVector3_z_0=function(){return(rd=b._emscripten_bind_btVector3_z_0=b.asm.bb).apply(null,arguments)},sd=b._emscripten_bind_btVector3_setX_1=function(){return(sd=
b._emscripten_bind_btVector3_setX_1=b.asm.cb).apply(null,arguments)},td=b._emscripten_bind_btVector3_setY_1=function(){return(td=b._emscripten_bind_btVector3_setY_1=b.asm.db).apply(null,arguments)},ud=b._emscripten_bind_btVector3_setZ_1=function(){return(ud=b._emscripten_bind_btVector3_setZ_1=b.asm.eb).apply(null,arguments)},vd=b._emscripten_bind_btVector3_setValue_3=function(){return(vd=b._emscripten_bind_btVector3_setValue_3=b.asm.fb).apply(null,arguments)},wd=b._emscripten_bind_btVector3_normalize_0=
function(){return(wd=b._emscripten_bind_btVector3_normalize_0=b.asm.gb).apply(null,arguments)},xd=b._emscripten_bind_btVector3_rotate_2=function(){return(xd=b._emscripten_bind_btVector3_rotate_2=b.asm.hb).apply(null,arguments)},yd=b._emscripten_bind_btVector3_dot_1=function(){return(yd=b._emscripten_bind_btVector3_dot_1=b.asm.ib).apply(null,arguments)},zd=b._emscripten_bind_btVector3_op_mul_1=function(){return(zd=b._emscripten_bind_btVector3_op_mul_1=b.asm.jb).apply(null,arguments)},Ad=b._emscripten_bind_btVector3_op_add_1=
function(){return(Ad=b._emscripten_bind_btVector3_op_add_1=b.asm.kb).apply(null,arguments)},Bd=b._emscripten_bind_btVector3_op_sub_1=function(){return(Bd=b._emscripten_bind_btVector3_op_sub_1=b.asm.lb).apply(null,arguments)},Cd=b._emscripten_bind_btVector3___destroy___0=function(){return(Cd=b._emscripten_bind_btVector3___destroy___0=b.asm.mb).apply(null,arguments)},Dd=b._emscripten_bind_btQuadWord_x_0=function(){return(Dd=b._emscripten_bind_btQuadWord_x_0=b.asm.nb).apply(null,arguments)},Ed=b._emscripten_bind_btQuadWord_y_0=
function(){return(Ed=b._emscripten_bind_btQuadWord_y_0=b.asm.ob).apply(null,arguments)},Fd=b._emscripten_bind_btQuadWord_z_0=function(){return(Fd=b._emscripten_bind_btQuadWord_z_0=b.asm.pb).apply(null,arguments)},Gd=b._emscripten_bind_btQuadWord_w_0=function(){return(Gd=b._emscripten_bind_btQuadWord_w_0=b.asm.qb).apply(null,arguments)},Hd=b._emscripten_bind_btQuadWord_setX_1=function(){return(Hd=b._emscripten_bind_btQuadWord_setX_1=b.asm.rb).apply(null,arguments)},Id=b._emscripten_bind_btQuadWord_setY_1=
function(){return(Id=b._emscripten_bind_btQuadWord_setY_1=b.asm.sb).apply(null,arguments)},Jd=b._emscripten_bind_btQuadWord_setZ_1=function(){return(Jd=b._emscripten_bind_btQuadWord_setZ_1=b.asm.tb).apply(null,arguments)},Kd=b._emscripten_bind_btQuadWord_setW_1=function(){return(Kd=b._emscripten_bind_btQuadWord_setW_1=b.asm.ub).apply(null,arguments)},Ld=b._emscripten_bind_btQuadWord___destroy___0=function(){return(Ld=b._emscripten_bind_btQuadWord___destroy___0=b.asm.vb).apply(null,arguments)},Md=
b._emscripten_bind_btMotionState_getWorldTransform_1=function(){return(Md=b._emscripten_bind_btMotionState_getWorldTransform_1=b.asm.wb).apply(null,arguments)},Nd=b._emscripten_bind_btMotionState_setWorldTransform_1=function(){return(Nd=b._emscripten_bind_btMotionState_setWorldTransform_1=b.asm.xb).apply(null,arguments)},Od=b._emscripten_bind_btMotionState___destroy___0=function(){return(Od=b._emscripten_bind_btMotionState___destroy___0=b.asm.yb).apply(null,arguments)},Pd=b._emscripten_bind_RayResultCallback_hasHit_0=
function(){return(Pd=b._emscripten_bind_RayResultCallback_hasHit_0=b.asm.zb).apply(null,arguments)},Qd=b._emscripten_bind_RayResultCallback_get_m_collisionFilterGroup_0=function(){return(Qd=b._emscripten_bind_RayResultCallback_get_m_collisionFilterGroup_0=b.asm.Ab).apply(null,arguments)},Rd=b._emscripten_bind_RayResultCallback_set_m_collisionFilterGroup_1=function(){return(Rd=b._emscripten_bind_RayResultCallback_set_m_collisionFilterGroup_1=b.asm.Bb).apply(null,arguments)},Sd=b._emscripten_bind_RayResultCallback_get_m_collisionFilterMask_0=
function(){return(Sd=b._emscripten_bind_RayResultCallback_get_m_collisionFilterMask_0=b.asm.Cb).apply(null,arguments)},Td=b._emscripten_bind_RayResultCallback_set_m_collisionFilterMask_1=function(){return(Td=b._emscripten_bind_RayResultCallback_set_m_collisionFilterMask_1=b.asm.Db).apply(null,arguments)},Ud=b._emscripten_bind_RayResultCallback_get_m_closestHitFraction_0=function(){return(Ud=b._emscripten_bind_RayResultCallback_get_m_closestHitFraction_0=b.asm.Eb).apply(null,arguments)},Vd=b._emscripten_bind_RayResultCallback_set_m_closestHitFraction_1=
function(){return(Vd=b._emscripten_bind_RayResultCallback_set_m_closestHitFraction_1=b.asm.Fb).apply(null,arguments)},Wd=b._emscripten_bind_RayResultCallback_get_m_collisionObject_0=function(){return(Wd=b._emscripten_bind_RayResultCallback_get_m_collisionObject_0=b.asm.Gb).apply(null,arguments)},Xd=b._emscripten_bind_RayResultCallback_set_m_collisionObject_1=function(){return(Xd=b._emscripten_bind_RayResultCallback_set_m_collisionObject_1=b.asm.Hb).apply(null,arguments)},Yd=b._emscripten_bind_RayResultCallback_get_m_flags_0=
function(){return(Yd=b._emscripten_bind_RayResultCallback_get_m_flags_0=b.asm.Ib).apply(null,arguments)},Zd=b._emscripten_bind_RayResultCallback_set_m_flags_1=function(){return(Zd=b._emscripten_bind_RayResultCallback_set_m_flags_1=b.asm.Jb).apply(null,arguments)},$d=b._emscripten_bind_RayResultCallback___destroy___0=function(){return($d=b._emscripten_bind_RayResultCallback___destroy___0=b.asm.Kb).apply(null,arguments)},ae=b._emscripten_bind_ContactResultCallback_addSingleResult_7=function(){return(ae=
b._emscripten_bind_ContactResultCallback_addSingleResult_7=b.asm.Lb).apply(null,arguments)},be=b._emscripten_bind_ContactResultCallback___destroy___0=function(){return(be=b._emscripten_bind_ContactResultCallback___destroy___0=b.asm.Mb).apply(null,arguments)},ce=b._emscripten_bind_ConvexResultCallback_hasHit_0=function(){return(ce=b._emscripten_bind_ConvexResultCallback_hasHit_0=b.asm.Nb).apply(null,arguments)},de=b._emscripten_bind_ConvexResultCallback_get_m_collisionFilterGroup_0=function(){return(de=
b._emscripten_bind_ConvexResultCallback_get_m_collisionFilterGroup_0=b.asm.Ob).apply(null,arguments)},ee=b._emscripten_bind_ConvexResultCallback_set_m_collisionFilterGroup_1=function(){return(ee=b._emscripten_bind_ConvexResultCallback_set_m_collisionFilterGroup_1=b.asm.Pb).apply(null,arguments)},fe=b._emscripten_bind_ConvexResultCallback_get_m_collisionFilterMask_0=function(){return(fe=b._emscripten_bind_ConvexResultCallback_get_m_collisionFilterMask_0=b.asm.Qb).apply(null,arguments)},ge=b._emscripten_bind_ConvexResultCallback_set_m_collisionFilterMask_1=
function(){return(ge=b._emscripten_bind_ConvexResultCallback_set_m_collisionFilterMask_1=b.asm.Rb).apply(null,arguments)},he=b._emscripten_bind_ConvexResultCallback_get_m_closestHitFraction_0=function(){return(he=b._emscripten_bind_ConvexResultCallback_get_m_closestHitFraction_0=b.asm.Sb).apply(null,arguments)},ie=b._emscripten_bind_ConvexResultCallback_set_m_closestHitFraction_1=function(){return(ie=b._emscripten_bind_ConvexResultCallback_set_m_closestHitFraction_1=b.asm.Tb).apply(null,arguments)},
je=b._emscripten_bind_ConvexResultCallback___destroy___0=function(){return(je=b._emscripten_bind_ConvexResultCallback___destroy___0=b.asm.Ub).apply(null,arguments)},ke=b._emscripten_bind_btConvexShape_setLocalScaling_1=function(){return(ke=b._emscripten_bind_btConvexShape_setLocalScaling_1=b.asm.Vb).apply(null,arguments)},le=b._emscripten_bind_btConvexShape_getLocalScaling_0=function(){return(le=b._emscripten_bind_btConvexShape_getLocalScaling_0=b.asm.Wb).apply(null,arguments)},me=b._emscripten_bind_btConvexShape_calculateLocalInertia_2=
function(){return(me=b._emscripten_bind_btConvexShape_calculateLocalInertia_2=b.asm.Xb).apply(null,arguments)},ne=b._emscripten_bind_btConvexShape_setMargin_1=function(){return(ne=b._emscripten_bind_btConvexShape_setMargin_1=b.asm.Yb).apply(null,arguments)},oe=b._emscripten_bind_btConvexShape_getMargin_0=function(){return(oe=b._emscripten_bind_btConvexShape_getMargin_0=b.asm.Zb).apply(null,arguments)},pe=b._emscripten_bind_btConvexShape___destroy___0=function(){return(pe=b._emscripten_bind_btConvexShape___destroy___0=
b.asm._b).apply(null,arguments)},qe=b._emscripten_bind_btCapsuleShape_btCapsuleShape_2=function(){return(qe=b._emscripten_bind_btCapsuleShape_btCapsuleShape_2=b.asm.$b).apply(null,arguments)},re=b._emscripten_bind_btCapsuleShape_setMargin_1=function(){return(re=b._emscripten_bind_btCapsuleShape_setMargin_1=b.asm.ac).apply(null,arguments)},se=b._emscripten_bind_btCapsuleShape_getMargin_0=function(){return(se=b._emscripten_bind_btCapsuleShape_getMargin_0=b.asm.bc).apply(null,arguments)},te=b._emscripten_bind_btCapsuleShape_getUpAxis_0=
function(){return(te=b._emscripten_bind_btCapsuleShape_getUpAxis_0=b.asm.cc).apply(null,arguments)},ue=b._emscripten_bind_btCapsuleShape_getRadius_0=function(){return(ue=b._emscripten_bind_btCapsuleShape_getRadius_0=b.asm.dc).apply(null,arguments)},ve=b._emscripten_bind_btCapsuleShape_getHalfHeight_0=function(){return(ve=b._emscripten_bind_btCapsuleShape_getHalfHeight_0=b.asm.ec).apply(null,arguments)},we=b._emscripten_bind_btCapsuleShape_setLocalScaling_1=function(){return(we=b._emscripten_bind_btCapsuleShape_setLocalScaling_1=
b.asm.fc).apply(null,arguments)},xe=b._emscripten_bind_btCapsuleShape_getLocalScaling_0=function(){return(xe=b._emscripten_bind_btCapsuleShape_getLocalScaling_0=b.asm.gc).apply(null,arguments)},ye=b._emscripten_bind_btCapsuleShape_calculateLocalInertia_2=function(){return(ye=b._emscripten_bind_btCapsuleShape_calculateLocalInertia_2=b.asm.hc).apply(null,arguments)},ze=b._emscripten_bind_btCapsuleShape___destroy___0=function(){return(ze=b._emscripten_bind_btCapsuleShape___destroy___0=b.asm.ic).apply(null,
arguments)},Ae=b._emscripten_bind_btCylinderShape_btCylinderShape_1=function(){return(Ae=b._emscripten_bind_btCylinderShape_btCylinderShape_1=b.asm.jc).apply(null,arguments)},Be=b._emscripten_bind_btCylinderShape_setMargin_1=function(){return(Be=b._emscripten_bind_btCylinderShape_setMargin_1=b.asm.kc).apply(null,arguments)},Ce=b._emscripten_bind_btCylinderShape_getMargin_0=function(){return(Ce=b._emscripten_bind_btCylinderShape_getMargin_0=b.asm.lc).apply(null,arguments)},De=b._emscripten_bind_btCylinderShape_setLocalScaling_1=
function(){return(De=b._emscripten_bind_btCylinderShape_setLocalScaling_1=b.asm.mc).apply(null,arguments)},Ee=b._emscripten_bind_btCylinderShape_getLocalScaling_0=function(){return(Ee=b._emscripten_bind_btCylinderShape_getLocalScaling_0=b.asm.nc).apply(null,arguments)},Fe=b._emscripten_bind_btCylinderShape_calculateLocalInertia_2=function(){return(Fe=b._emscripten_bind_btCylinderShape_calculateLocalInertia_2=b.asm.oc).apply(null,arguments)},Ge=b._emscripten_bind_btCylinderShape___destroy___0=function(){return(Ge=
b._emscripten_bind_btCylinderShape___destroy___0=b.asm.pc).apply(null,arguments)},He=b._emscripten_bind_btConeShape_btConeShape_2=function(){return(He=b._emscripten_bind_btConeShape_btConeShape_2=b.asm.qc).apply(null,arguments)},Ie=b._emscripten_bind_btConeShape_setLocalScaling_1=function(){return(Ie=b._emscripten_bind_btConeShape_setLocalScaling_1=b.asm.rc).apply(null,arguments)},Je=b._emscripten_bind_btConeShape_getLocalScaling_0=function(){return(Je=b._emscripten_bind_btConeShape_getLocalScaling_0=
b.asm.sc).apply(null,arguments)},Ke=b._emscripten_bind_btConeShape_calculateLocalInertia_2=function(){return(Ke=b._emscripten_bind_btConeShape_calculateLocalInertia_2=b.asm.tc).apply(null,arguments)},Le=b._emscripten_bind_btConeShape___destroy___0=function(){return(Le=b._emscripten_bind_btConeShape___destroy___0=b.asm.uc).apply(null,arguments)},Me=b._emscripten_bind_btStridingMeshInterface_setScaling_1=function(){return(Me=b._emscripten_bind_btStridingMeshInterface_setScaling_1=b.asm.vc).apply(null,
arguments)},Ne=b._emscripten_bind_btStridingMeshInterface___destroy___0=function(){return(Ne=b._emscripten_bind_btStridingMeshInterface___destroy___0=b.asm.wc).apply(null,arguments)},Oe=b._emscripten_bind_btTriangleMeshShape_setLocalScaling_1=function(){return(Oe=b._emscripten_bind_btTriangleMeshShape_setLocalScaling_1=b.asm.xc).apply(null,arguments)},Pe=b._emscripten_bind_btTriangleMeshShape_getLocalScaling_0=function(){return(Pe=b._emscripten_bind_btTriangleMeshShape_getLocalScaling_0=b.asm.yc).apply(null,
arguments)},Qe=b._emscripten_bind_btTriangleMeshShape_calculateLocalInertia_2=function(){return(Qe=b._emscripten_bind_btTriangleMeshShape_calculateLocalInertia_2=b.asm.zc).apply(null,arguments)},Re=b._emscripten_bind_btTriangleMeshShape___destroy___0=function(){return(Re=b._emscripten_bind_btTriangleMeshShape___destroy___0=b.asm.Ac).apply(null,arguments)},Se=b._emscripten_bind_btPrimitiveManagerBase_is_trimesh_0=function(){return(Se=b._emscripten_bind_btPrimitiveManagerBase_is_trimesh_0=b.asm.Bc).apply(null,
arguments)},Te=b._emscripten_bind_btPrimitiveManagerBase_get_primitive_count_0=function(){return(Te=b._emscripten_bind_btPrimitiveManagerBase_get_primitive_count_0=b.asm.Cc).apply(null,arguments)},Ue=b._emscripten_bind_btPrimitiveManagerBase_get_primitive_box_2=function(){return(Ue=b._emscripten_bind_btPrimitiveManagerBase_get_primitive_box_2=b.asm.Dc).apply(null,arguments)},Ve=b._emscripten_bind_btPrimitiveManagerBase_get_primitive_triangle_2=function(){return(Ve=b._emscripten_bind_btPrimitiveManagerBase_get_primitive_triangle_2=
b.asm.Ec).apply(null,arguments)},We=b._emscripten_bind_btPrimitiveManagerBase___destroy___0=function(){return(We=b._emscripten_bind_btPrimitiveManagerBase___destroy___0=b.asm.Fc).apply(null,arguments)},Xe=b._emscripten_bind_btGImpactShapeInterface_updateBound_0=function(){return(Xe=b._emscripten_bind_btGImpactShapeInterface_updateBound_0=b.asm.Gc).apply(null,arguments)},Ye=b._emscripten_bind_btGImpactShapeInterface_postUpdate_0=function(){return(Ye=b._emscripten_bind_btGImpactShapeInterface_postUpdate_0=
b.asm.Hc).apply(null,arguments)},Ze=b._emscripten_bind_btGImpactShapeInterface_getShapeType_0=function(){return(Ze=b._emscripten_bind_btGImpactShapeInterface_getShapeType_0=b.asm.Ic).apply(null,arguments)},$e=b._emscripten_bind_btGImpactShapeInterface_getName_0=function(){return($e=b._emscripten_bind_btGImpactShapeInterface_getName_0=b.asm.Jc).apply(null,arguments)},af=b._emscripten_bind_btGImpactShapeInterface_getGImpactShapeType_0=function(){return(af=b._emscripten_bind_btGImpactShapeInterface_getGImpactShapeType_0=
b.asm.Kc).apply(null,arguments)},bf=b._emscripten_bind_btGImpactShapeInterface_getPrimitiveManager_0=function(){return(bf=b._emscripten_bind_btGImpactShapeInterface_getPrimitiveManager_0=b.asm.Lc).apply(null,arguments)},cf=b._emscripten_bind_btGImpactShapeInterface_getNumChildShapes_0=function(){return(cf=b._emscripten_bind_btGImpactShapeInterface_getNumChildShapes_0=b.asm.Mc).apply(null,arguments)},df=b._emscripten_bind_btGImpactShapeInterface_childrenHasTransform_0=function(){return(df=b._emscripten_bind_btGImpactShapeInterface_childrenHasTransform_0=
b.asm.Nc).apply(null,arguments)},ef=b._emscripten_bind_btGImpactShapeInterface_needsRetrieveTriangles_0=function(){return(ef=b._emscripten_bind_btGImpactShapeInterface_needsRetrieveTriangles_0=b.asm.Oc).apply(null,arguments)},ff=b._emscripten_bind_btGImpactShapeInterface_needsRetrieveTetrahedrons_0=function(){return(ff=b._emscripten_bind_btGImpactShapeInterface_needsRetrieveTetrahedrons_0=b.asm.Pc).apply(null,arguments)},gf=b._emscripten_bind_btGImpactShapeInterface_getBulletTriangle_2=function(){return(gf=
b._emscripten_bind_btGImpactShapeInterface_getBulletTriangle_2=b.asm.Qc).apply(null,arguments)},hf=b._emscripten_bind_btGImpactShapeInterface_getBulletTetrahedron_2=function(){return(hf=b._emscripten_bind_btGImpactShapeInterface_getBulletTetrahedron_2=b.asm.Rc).apply(null,arguments)},jf=b._emscripten_bind_btGImpactShapeInterface_getChildShape_1=function(){return(jf=b._emscripten_bind_btGImpactShapeInterface_getChildShape_1=b.asm.Sc).apply(null,arguments)},kf=b._emscripten_bind_btGImpactShapeInterface_getChildTransform_1=
function(){return(kf=b._emscripten_bind_btGImpactShapeInterface_getChildTransform_1=b.asm.Tc).apply(null,arguments)},lf=b._emscripten_bind_btGImpactShapeInterface_setChildTransform_2=function(){return(lf=b._emscripten_bind_btGImpactShapeInterface_setChildTransform_2=b.asm.Uc).apply(null,arguments)},mf=b._emscripten_bind_btGImpactShapeInterface_setLocalScaling_1=function(){return(mf=b._emscripten_bind_btGImpactShapeInterface_setLocalScaling_1=b.asm.Vc).apply(null,arguments)},nf=b._emscripten_bind_btGImpactShapeInterface_getLocalScaling_0=
function(){return(nf=b._emscripten_bind_btGImpactShapeInterface_getLocalScaling_0=b.asm.Wc).apply(null,arguments)},of=b._emscripten_bind_btGImpactShapeInterface_calculateLocalInertia_2=function(){return(of=b._emscripten_bind_btGImpactShapeInterface_calculateLocalInertia_2=b.asm.Xc).apply(null,arguments)},pf=b._emscripten_bind_btGImpactShapeInterface___destroy___0=function(){return(pf=b._emscripten_bind_btGImpactShapeInterface___destroy___0=b.asm.Yc).apply(null,arguments)},qf=b._emscripten_bind_btActivatingCollisionAlgorithm___destroy___0=
function(){return(qf=b._emscripten_bind_btActivatingCollisionAlgorithm___destroy___0=b.asm.Zc).apply(null,arguments)},rf=b._emscripten_bind_btDefaultCollisionConfiguration_btDefaultCollisionConfiguration_0=function(){return(rf=b._emscripten_bind_btDefaultCollisionConfiguration_btDefaultCollisionConfiguration_0=b.asm._c).apply(null,arguments)},sf=b._emscripten_bind_btDefaultCollisionConfiguration_btDefaultCollisionConfiguration_1=function(){return(sf=b._emscripten_bind_btDefaultCollisionConfiguration_btDefaultCollisionConfiguration_1=
b.asm.$c).apply(null,arguments)},tf=b._emscripten_bind_btDefaultCollisionConfiguration___destroy___0=function(){return(tf=b._emscripten_bind_btDefaultCollisionConfiguration___destroy___0=b.asm.ad).apply(null,arguments)},uf=b._emscripten_bind_btDispatcher_getNumManifolds_0=function(){return(uf=b._emscripten_bind_btDispatcher_getNumManifolds_0=b.asm.bd).apply(null,arguments)},vf=b._emscripten_bind_btDispatcher_getManifoldByIndexInternal_1=function(){return(vf=b._emscripten_bind_btDispatcher_getManifoldByIndexInternal_1=
b.asm.cd).apply(null,arguments)},wf=b._emscripten_bind_btDispatcher___destroy___0=function(){return(wf=b._emscripten_bind_btDispatcher___destroy___0=b.asm.dd).apply(null,arguments)},xf=b._emscripten_bind_btGeneric6DofConstraint_btGeneric6DofConstraint_3=function(){return(xf=b._emscripten_bind_btGeneric6DofConstraint_btGeneric6DofConstraint_3=b.asm.ed).apply(null,arguments)},yf=b._emscripten_bind_btGeneric6DofConstraint_btGeneric6DofConstraint_5=function(){return(yf=b._emscripten_bind_btGeneric6DofConstraint_btGeneric6DofConstraint_5=
b.asm.fd).apply(null,arguments)},zf=b._emscripten_bind_btGeneric6DofConstraint_setLinearLowerLimit_1=function(){return(zf=b._emscripten_bind_btGeneric6DofConstraint_setLinearLowerLimit_1=b.asm.gd).apply(null,arguments)},Af=b._emscripten_bind_btGeneric6DofConstraint_setLinearUpperLimit_1=function(){return(Af=b._emscripten_bind_btGeneric6DofConstraint_setLinearUpperLimit_1=b.asm.hd).apply(null,arguments)},Bf=b._emscripten_bind_btGeneric6DofConstraint_setAngularLowerLimit_1=function(){return(Bf=b._emscripten_bind_btGeneric6DofConstraint_setAngularLowerLimit_1=
b.asm.id).apply(null,arguments)},Cf=b._emscripten_bind_btGeneric6DofConstraint_setAngularUpperLimit_1=function(){return(Cf=b._emscripten_bind_btGeneric6DofConstraint_setAngularUpperLimit_1=b.asm.jd).apply(null,arguments)},Df=b._emscripten_bind_btGeneric6DofConstraint_getFrameOffsetA_0=function(){return(Df=b._emscripten_bind_btGeneric6DofConstraint_getFrameOffsetA_0=b.asm.kd).apply(null,arguments)},Ef=b._emscripten_bind_btGeneric6DofConstraint_enableFeedback_1=function(){return(Ef=b._emscripten_bind_btGeneric6DofConstraint_enableFeedback_1=
b.asm.ld).apply(null,arguments)},Ff=b._emscripten_bind_btGeneric6DofConstraint_getBreakingImpulseThreshold_0=function(){return(Ff=b._emscripten_bind_btGeneric6DofConstraint_getBreakingImpulseThreshold_0=b.asm.md).apply(null,arguments)},Gf=b._emscripten_bind_btGeneric6DofConstraint_setBreakingImpulseThreshold_1=function(){return(Gf=b._emscripten_bind_btGeneric6DofConstraint_setBreakingImpulseThreshold_1=b.asm.nd).apply(null,arguments)},Hf=b._emscripten_bind_btGeneric6DofConstraint_getParam_2=function(){return(Hf=
b._emscripten_bind_btGeneric6DofConstraint_getParam_2=b.asm.od).apply(null,arguments)},If=b._emscripten_bind_btGeneric6DofConstraint_setParam_3=function(){return(If=b._emscripten_bind_btGeneric6DofConstraint_setParam_3=b.asm.pd).apply(null,arguments)},Jf=b._emscripten_bind_btGeneric6DofConstraint___destroy___0=function(){return(Jf=b._emscripten_bind_btGeneric6DofConstraint___destroy___0=b.asm.qd).apply(null,arguments)},Kf=b._emscripten_bind_btDiscreteDynamicsWorld_btDiscreteDynamicsWorld_4=function(){return(Kf=
b._emscripten_bind_btDiscreteDynamicsWorld_btDiscreteDynamicsWorld_4=b.asm.rd).apply(null,arguments)},Lf=b._emscripten_bind_btDiscreteDynamicsWorld_setGravity_1=function(){return(Lf=b._emscripten_bind_btDiscreteDynamicsWorld_setGravity_1=b.asm.sd).apply(null,arguments)},Mf=b._emscripten_bind_btDiscreteDynamicsWorld_getGravity_0=function(){return(Mf=b._emscripten_bind_btDiscreteDynamicsWorld_getGravity_0=b.asm.td).apply(null,arguments)},Nf=b._emscripten_bind_btDiscreteDynamicsWorld_addRigidBody_1=
function(){return(Nf=b._emscripten_bind_btDiscreteDynamicsWorld_addRigidBody_1=b.asm.ud).apply(null,arguments)},Of=b._emscripten_bind_btDiscreteDynamicsWorld_addRigidBody_3=function(){return(Of=b._emscripten_bind_btDiscreteDynamicsWorld_addRigidBody_3=b.asm.vd).apply(null,arguments)},Pf=b._emscripten_bind_btDiscreteDynamicsWorld_removeRigidBody_1=function(){return(Pf=b._emscripten_bind_btDiscreteDynamicsWorld_removeRigidBody_1=b.asm.wd).apply(null,arguments)},Qf=b._emscripten_bind_btDiscreteDynamicsWorld_addConstraint_1=
function(){return(Qf=b._emscripten_bind_btDiscreteDynamicsWorld_addConstraint_1=b.asm.xd).apply(null,arguments)},Rf=b._emscripten_bind_btDiscreteDynamicsWorld_addConstraint_2=function(){return(Rf=b._emscripten_bind_btDiscreteDynamicsWorld_addConstraint_2=b.asm.yd).apply(null,arguments)},Sf=b._emscripten_bind_btDiscreteDynamicsWorld_removeConstraint_1=function(){return(Sf=b._emscripten_bind_btDiscreteDynamicsWorld_removeConstraint_1=b.asm.zd).apply(null,arguments)},Tf=b._emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_1=
function(){return(Tf=b._emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_1=b.asm.Ad).apply(null,arguments)},Uf=b._emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_2=function(){return(Uf=b._emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_2=b.asm.Bd).apply(null,arguments)},Vf=b._emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_3=function(){return(Vf=b._emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_3=b.asm.Cd).apply(null,arguments)},Wf=b._emscripten_bind_btDiscreteDynamicsWorld_setContactAddedCallback_1=
function(){return(Wf=b._emscripten_bind_btDiscreteDynamicsWorld_setContactAddedCallback_1=b.asm.Dd).apply(null,arguments)},Xf=b._emscripten_bind_btDiscreteDynamicsWorld_setContactProcessedCallback_1=function(){return(Xf=b._emscripten_bind_btDiscreteDynamicsWorld_setContactProcessedCallback_1=b.asm.Ed).apply(null,arguments)},Yf=b._emscripten_bind_btDiscreteDynamicsWorld_setContactDestroyedCallback_1=function(){return(Yf=b._emscripten_bind_btDiscreteDynamicsWorld_setContactDestroyedCallback_1=b.asm.Fd).apply(null,
arguments)},Zf=b._emscripten_bind_btDiscreteDynamicsWorld_getDispatcher_0=function(){return(Zf=b._emscripten_bind_btDiscreteDynamicsWorld_getDispatcher_0=b.asm.Gd).apply(null,arguments)},$f=b._emscripten_bind_btDiscreteDynamicsWorld_rayTest_3=function(){return($f=b._emscripten_bind_btDiscreteDynamicsWorld_rayTest_3=b.asm.Hd).apply(null,arguments)},ag=b._emscripten_bind_btDiscreteDynamicsWorld_getPairCache_0=function(){return(ag=b._emscripten_bind_btDiscreteDynamicsWorld_getPairCache_0=b.asm.Id).apply(null,
arguments)},bg=b._emscripten_bind_btDiscreteDynamicsWorld_getDispatchInfo_0=function(){return(bg=b._emscripten_bind_btDiscreteDynamicsWorld_getDispatchInfo_0=b.asm.Jd).apply(null,arguments)},cg=b._emscripten_bind_btDiscreteDynamicsWorld_addCollisionObject_1=function(){return(cg=b._emscripten_bind_btDiscreteDynamicsWorld_addCollisionObject_1=b.asm.Kd).apply(null,arguments)},dg=b._emscripten_bind_btDiscreteDynamicsWorld_addCollisionObject_2=function(){return(dg=b._emscripten_bind_btDiscreteDynamicsWorld_addCollisionObject_2=
b.asm.Ld).apply(null,arguments)},eg=b._emscripten_bind_btDiscreteDynamicsWorld_addCollisionObject_3=function(){return(eg=b._emscripten_bind_btDiscreteDynamicsWorld_addCollisionObject_3=b.asm.Md).apply(null,arguments)},fg=b._emscripten_bind_btDiscreteDynamicsWorld_removeCollisionObject_1=function(){return(fg=b._emscripten_bind_btDiscreteDynamicsWorld_removeCollisionObject_1=b.asm.Nd).apply(null,arguments)},gg=b._emscripten_bind_btDiscreteDynamicsWorld_getBroadphase_0=function(){return(gg=b._emscripten_bind_btDiscreteDynamicsWorld_getBroadphase_0=
b.asm.Od).apply(null,arguments)},hg=b._emscripten_bind_btDiscreteDynamicsWorld_convexSweepTest_5=function(){return(hg=b._emscripten_bind_btDiscreteDynamicsWorld_convexSweepTest_5=b.asm.Pd).apply(null,arguments)},ig=b._emscripten_bind_btDiscreteDynamicsWorld_contactPairTest_3=function(){return(ig=b._emscripten_bind_btDiscreteDynamicsWorld_contactPairTest_3=b.asm.Qd).apply(null,arguments)},jg=b._emscripten_bind_btDiscreteDynamicsWorld_contactTest_2=function(){return(jg=b._emscripten_bind_btDiscreteDynamicsWorld_contactTest_2=
b.asm.Rd).apply(null,arguments)},kg=b._emscripten_bind_btDiscreteDynamicsWorld_updateSingleAabb_1=function(){return(kg=b._emscripten_bind_btDiscreteDynamicsWorld_updateSingleAabb_1=b.asm.Sd).apply(null,arguments)},lg=b._emscripten_bind_btDiscreteDynamicsWorld_setDebugDrawer_1=function(){return(lg=b._emscripten_bind_btDiscreteDynamicsWorld_setDebugDrawer_1=b.asm.Td).apply(null,arguments)},mg=b._emscripten_bind_btDiscreteDynamicsWorld_getDebugDrawer_0=function(){return(mg=b._emscripten_bind_btDiscreteDynamicsWorld_getDebugDrawer_0=
b.asm.Ud).apply(null,arguments)},ng=b._emscripten_bind_btDiscreteDynamicsWorld_debugDrawWorld_0=function(){return(ng=b._emscripten_bind_btDiscreteDynamicsWorld_debugDrawWorld_0=b.asm.Vd).apply(null,arguments)},og=b._emscripten_bind_btDiscreteDynamicsWorld_debugDrawObject_3=function(){return(og=b._emscripten_bind_btDiscreteDynamicsWorld_debugDrawObject_3=b.asm.Wd).apply(null,arguments)},pg=b._emscripten_bind_btDiscreteDynamicsWorld_addAction_1=function(){return(pg=b._emscripten_bind_btDiscreteDynamicsWorld_addAction_1=
b.asm.Xd).apply(null,arguments)},qg=b._emscripten_bind_btDiscreteDynamicsWorld_removeAction_1=function(){return(qg=b._emscripten_bind_btDiscreteDynamicsWorld_removeAction_1=b.asm.Yd).apply(null,arguments)},rg=b._emscripten_bind_btDiscreteDynamicsWorld_getSolverInfo_0=function(){return(rg=b._emscripten_bind_btDiscreteDynamicsWorld_getSolverInfo_0=b.asm.Zd).apply(null,arguments)},sg=b._emscripten_bind_btDiscreteDynamicsWorld_setInternalTickCallback_1=function(){return(sg=b._emscripten_bind_btDiscreteDynamicsWorld_setInternalTickCallback_1=
b.asm._d).apply(null,arguments)},tg=b._emscripten_bind_btDiscreteDynamicsWorld_setInternalTickCallback_2=function(){return(tg=b._emscripten_bind_btDiscreteDynamicsWorld_setInternalTickCallback_2=b.asm.$d).apply(null,arguments)},ug=b._emscripten_bind_btDiscreteDynamicsWorld_setInternalTickCallback_3=function(){return(ug=b._emscripten_bind_btDiscreteDynamicsWorld_setInternalTickCallback_3=b.asm.ae).apply(null,arguments)},vg=b._emscripten_bind_btDiscreteDynamicsWorld___destroy___0=function(){return(vg=
b._emscripten_bind_btDiscreteDynamicsWorld___destroy___0=b.asm.be).apply(null,arguments)},wg=b._emscripten_bind_btVehicleRaycaster_castRay_3=function(){return(wg=b._emscripten_bind_btVehicleRaycaster_castRay_3=b.asm.ce).apply(null,arguments)},xg=b._emscripten_bind_btVehicleRaycaster___destroy___0=function(){return(xg=b._emscripten_bind_btVehicleRaycaster___destroy___0=b.asm.de).apply(null,arguments)},yg=b._emscripten_bind_btActionInterface_updateAction_2=function(){return(yg=b._emscripten_bind_btActionInterface_updateAction_2=
b.asm.ee).apply(null,arguments)},zg=b._emscripten_bind_btActionInterface___destroy___0=function(){return(zg=b._emscripten_bind_btActionInterface___destroy___0=b.asm.fe).apply(null,arguments)},Ag=b._emscripten_bind_btGhostObject_btGhostObject_0=function(){return(Ag=b._emscripten_bind_btGhostObject_btGhostObject_0=b.asm.ge).apply(null,arguments)},Bg=b._emscripten_bind_btGhostObject_getNumOverlappingObjects_0=function(){return(Bg=b._emscripten_bind_btGhostObject_getNumOverlappingObjects_0=b.asm.he).apply(null,
arguments)},Cg=b._emscripten_bind_btGhostObject_getOverlappingObject_1=function(){return(Cg=b._emscripten_bind_btGhostObject_getOverlappingObject_1=b.asm.ie).apply(null,arguments)},Dg=b._emscripten_bind_btGhostObject_setAnisotropicFriction_2=function(){return(Dg=b._emscripten_bind_btGhostObject_setAnisotropicFriction_2=b.asm.je).apply(null,arguments)},Eg=b._emscripten_bind_btGhostObject_getCollisionShape_0=function(){return(Eg=b._emscripten_bind_btGhostObject_getCollisionShape_0=b.asm.ke).apply(null,
arguments)},Fg=b._emscripten_bind_btGhostObject_setContactProcessingThreshold_1=function(){return(Fg=b._emscripten_bind_btGhostObject_setContactProcessingThreshold_1=b.asm.le).apply(null,arguments)},Gg=b._emscripten_bind_btGhostObject_setActivationState_1=function(){return(Gg=b._emscripten_bind_btGhostObject_setActivationState_1=b.asm.me).apply(null,arguments)},Hg=b._emscripten_bind_btGhostObject_forceActivationState_1=function(){return(Hg=b._emscripten_bind_btGhostObject_forceActivationState_1=b.asm.ne).apply(null,
arguments)},Ig=b._emscripten_bind_btGhostObject_activate_0=function(){return(Ig=b._emscripten_bind_btGhostObject_activate_0=b.asm.oe).apply(null,arguments)},Jg=b._emscripten_bind_btGhostObject_activate_1=function(){return(Jg=b._emscripten_bind_btGhostObject_activate_1=b.asm.pe).apply(null,arguments)},Kg=b._emscripten_bind_btGhostObject_isActive_0=function(){return(Kg=b._emscripten_bind_btGhostObject_isActive_0=b.asm.qe).apply(null,arguments)},Lg=b._emscripten_bind_btGhostObject_isKinematicObject_0=
function(){return(Lg=b._emscripten_bind_btGhostObject_isKinematicObject_0=b.asm.re).apply(null,arguments)},Mg=b._emscripten_bind_btGhostObject_isStaticObject_0=function(){return(Mg=b._emscripten_bind_btGhostObject_isStaticObject_0=b.asm.se).apply(null,arguments)},Ng=b._emscripten_bind_btGhostObject_isStaticOrKinematicObject_0=function(){return(Ng=b._emscripten_bind_btGhostObject_isStaticOrKinematicObject_0=b.asm.te).apply(null,arguments)},Og=b._emscripten_bind_btGhostObject_getRestitution_0=function(){return(Og=
b._emscripten_bind_btGhostObject_getRestitution_0=b.asm.ue).apply(null,arguments)},Pg=b._emscripten_bind_btGhostObject_getFriction_0=function(){return(Pg=b._emscripten_bind_btGhostObject_getFriction_0=b.asm.ve).apply(null,arguments)},Qg=b._emscripten_bind_btGhostObject_getRollingFriction_0=function(){return(Qg=b._emscripten_bind_btGhostObject_getRollingFriction_0=b.asm.we).apply(null,arguments)},Rg=b._emscripten_bind_btGhostObject_setRestitution_1=function(){return(Rg=b._emscripten_bind_btGhostObject_setRestitution_1=
b.asm.xe).apply(null,arguments)},Sg=b._emscripten_bind_btGhostObject_setFriction_1=function(){return(Sg=b._emscripten_bind_btGhostObject_setFriction_1=b.asm.ye).apply(null,arguments)},Tg=b._emscripten_bind_btGhostObject_setRollingFriction_1=function(){return(Tg=b._emscripten_bind_btGhostObject_setRollingFriction_1=b.asm.ze).apply(null,arguments)},Ug=b._emscripten_bind_btGhostObject_getWorldTransform_0=function(){return(Ug=b._emscripten_bind_btGhostObject_getWorldTransform_0=b.asm.Ae).apply(null,arguments)},
Vg=b._emscripten_bind_btGhostObject_getCollisionFlags_0=function(){return(Vg=b._emscripten_bind_btGhostObject_getCollisionFlags_0=b.asm.Be).apply(null,arguments)},Wg=b._emscripten_bind_btGhostObject_setCollisionFlags_1=function(){return(Wg=b._emscripten_bind_btGhostObject_setCollisionFlags_1=b.asm.Ce).apply(null,arguments)},Xg=b._emscripten_bind_btGhostObject_setWorldTransform_1=function(){return(Xg=b._emscripten_bind_btGhostObject_setWorldTransform_1=b.asm.De).apply(null,arguments)},Yg=b._emscripten_bind_btGhostObject_setCollisionShape_1=
function(){return(Yg=b._emscripten_bind_btGhostObject_setCollisionShape_1=b.asm.Ee).apply(null,arguments)},Zg=b._emscripten_bind_btGhostObject_setCcdMotionThreshold_1=function(){return(Zg=b._emscripten_bind_btGhostObject_setCcdMotionThreshold_1=b.asm.Fe).apply(null,arguments)},$g=b._emscripten_bind_btGhostObject_setCcdSweptSphereRadius_1=function(){return($g=b._emscripten_bind_btGhostObject_setCcdSweptSphereRadius_1=b.asm.Ge).apply(null,arguments)},ah=b._emscripten_bind_btGhostObject_getUserIndex_0=
function(){return(ah=b._emscripten_bind_btGhostObject_getUserIndex_0=b.asm.He).apply(null,arguments)},bh=b._emscripten_bind_btGhostObject_setUserIndex_1=function(){return(bh=b._emscripten_bind_btGhostObject_setUserIndex_1=b.asm.Ie).apply(null,arguments)},ch=b._emscripten_bind_btGhostObject_getUserPointer_0=function(){return(ch=b._emscripten_bind_btGhostObject_getUserPointer_0=b.asm.Je).apply(null,arguments)},dh=b._emscripten_bind_btGhostObject_setUserPointer_1=function(){return(dh=b._emscripten_bind_btGhostObject_setUserPointer_1=
b.asm.Ke).apply(null,arguments)},eh=b._emscripten_bind_btGhostObject_getBroadphaseHandle_0=function(){return(eh=b._emscripten_bind_btGhostObject_getBroadphaseHandle_0=b.asm.Le).apply(null,arguments)},fh=b._emscripten_bind_btGhostObject___destroy___0=function(){return(fh=b._emscripten_bind_btGhostObject___destroy___0=b.asm.Me).apply(null,arguments)},gh=b._emscripten_bind_btSoftBodySolver___destroy___0=function(){return(gh=b._emscripten_bind_btSoftBodySolver___destroy___0=b.asm.Ne).apply(null,arguments)},
hh=b._emscripten_bind_VoidPtr___destroy___0=function(){return(hh=b._emscripten_bind_VoidPtr___destroy___0=b.asm.Oe).apply(null,arguments)},ih=b._emscripten_bind_DebugDrawer_DebugDrawer_0=function(){return(ih=b._emscripten_bind_DebugDrawer_DebugDrawer_0=b.asm.Pe).apply(null,arguments)},jh=b._emscripten_bind_DebugDrawer_drawLine_3=function(){return(jh=b._emscripten_bind_DebugDrawer_drawLine_3=b.asm.Qe).apply(null,arguments)},kh=b._emscripten_bind_DebugDrawer_drawContactPoint_5=function(){return(kh=
b._emscripten_bind_DebugDrawer_drawContactPoint_5=b.asm.Re).apply(null,arguments)},lh=b._emscripten_bind_DebugDrawer_reportErrorWarning_1=function(){return(lh=b._emscripten_bind_DebugDrawer_reportErrorWarning_1=b.asm.Se).apply(null,arguments)},mh=b._emscripten_bind_DebugDrawer_draw3dText_2=function(){return(mh=b._emscripten_bind_DebugDrawer_draw3dText_2=b.asm.Te).apply(null,arguments)},nh=b._emscripten_bind_DebugDrawer_setDebugMode_1=function(){return(nh=b._emscripten_bind_DebugDrawer_setDebugMode_1=
b.asm.Ue).apply(null,arguments)},oh=b._emscripten_bind_DebugDrawer_getDebugMode_0=function(){return(oh=b._emscripten_bind_DebugDrawer_getDebugMode_0=b.asm.Ve).apply(null,arguments)},ph=b._emscripten_bind_DebugDrawer___destroy___0=function(){return(ph=b._emscripten_bind_DebugDrawer___destroy___0=b.asm.We).apply(null,arguments)},qh=b._emscripten_bind_btVector4_btVector4_0=function(){return(qh=b._emscripten_bind_btVector4_btVector4_0=b.asm.Xe).apply(null,arguments)},rh=b._emscripten_bind_btVector4_btVector4_4=
function(){return(rh=b._emscripten_bind_btVector4_btVector4_4=b.asm.Ye).apply(null,arguments)},sh=b._emscripten_bind_btVector4_w_0=function(){return(sh=b._emscripten_bind_btVector4_w_0=b.asm.Ze).apply(null,arguments)},th=b._emscripten_bind_btVector4_setValue_4=function(){return(th=b._emscripten_bind_btVector4_setValue_4=b.asm._e).apply(null,arguments)},uh=b._emscripten_bind_btVector4_length_0=function(){return(uh=b._emscripten_bind_btVector4_length_0=b.asm.$e).apply(null,arguments)},vh=b._emscripten_bind_btVector4_x_0=
function(){return(vh=b._emscripten_bind_btVector4_x_0=b.asm.af).apply(null,arguments)},wh=b._emscripten_bind_btVector4_y_0=function(){return(wh=b._emscripten_bind_btVector4_y_0=b.asm.bf).apply(null,arguments)},xh=b._emscripten_bind_btVector4_z_0=function(){return(xh=b._emscripten_bind_btVector4_z_0=b.asm.cf).apply(null,arguments)},yh=b._emscripten_bind_btVector4_setX_1=function(){return(yh=b._emscripten_bind_btVector4_setX_1=b.asm.df).apply(null,arguments)},zh=b._emscripten_bind_btVector4_setY_1=
function(){return(zh=b._emscripten_bind_btVector4_setY_1=b.asm.ef).apply(null,arguments)},Ah=b._emscripten_bind_btVector4_setZ_1=function(){return(Ah=b._emscripten_bind_btVector4_setZ_1=b.asm.ff).apply(null,arguments)},Bh=b._emscripten_bind_btVector4_normalize_0=function(){return(Bh=b._emscripten_bind_btVector4_normalize_0=b.asm.gf).apply(null,arguments)},Ch=b._emscripten_bind_btVector4_rotate_2=function(){return(Ch=b._emscripten_bind_btVector4_rotate_2=b.asm.hf).apply(null,arguments)},Dh=b._emscripten_bind_btVector4_dot_1=
function(){return(Dh=b._emscripten_bind_btVector4_dot_1=b.asm.jf).apply(null,arguments)},Eh=b._emscripten_bind_btVector4_op_mul_1=function(){return(Eh=b._emscripten_bind_btVector4_op_mul_1=b.asm.kf).apply(null,arguments)},Fh=b._emscripten_bind_btVector4_op_add_1=function(){return(Fh=b._emscripten_bind_btVector4_op_add_1=b.asm.lf).apply(null,arguments)},Gh=b._emscripten_bind_btVector4_op_sub_1=function(){return(Gh=b._emscripten_bind_btVector4_op_sub_1=b.asm.mf).apply(null,arguments)},Hh=b._emscripten_bind_btVector4___destroy___0=
function(){return(Hh=b._emscripten_bind_btVector4___destroy___0=b.asm.nf).apply(null,arguments)},Ih=b._emscripten_bind_btQuaternion_btQuaternion_4=function(){return(Ih=b._emscripten_bind_btQuaternion_btQuaternion_4=b.asm.of).apply(null,arguments)},Jh=b._emscripten_bind_btQuaternion_setValue_4=function(){return(Jh=b._emscripten_bind_btQuaternion_setValue_4=b.asm.pf).apply(null,arguments)},Kh=b._emscripten_bind_btQuaternion_setEulerZYX_3=function(){return(Kh=b._emscripten_bind_btQuaternion_setEulerZYX_3=
b.asm.qf).apply(null,arguments)},Lh=b._emscripten_bind_btQuaternion_setRotation_2=function(){return(Lh=b._emscripten_bind_btQuaternion_setRotation_2=b.asm.rf).apply(null,arguments)},Mh=b._emscripten_bind_btQuaternion_normalize_0=function(){return(Mh=b._emscripten_bind_btQuaternion_normalize_0=b.asm.sf).apply(null,arguments)},Nh=b._emscripten_bind_btQuaternion_length2_0=function(){return(Nh=b._emscripten_bind_btQuaternion_length2_0=b.asm.tf).apply(null,arguments)},Oh=b._emscripten_bind_btQuaternion_length_0=
function(){return(Oh=b._emscripten_bind_btQuaternion_length_0=b.asm.uf).apply(null,arguments)},Ph=b._emscripten_bind_btQuaternion_dot_1=function(){return(Ph=b._emscripten_bind_btQuaternion_dot_1=b.asm.vf).apply(null,arguments)},Qh=b._emscripten_bind_btQuaternion_normalized_0=function(){return(Qh=b._emscripten_bind_btQuaternion_normalized_0=b.asm.wf).apply(null,arguments)},Rh=b._emscripten_bind_btQuaternion_getAxis_0=function(){return(Rh=b._emscripten_bind_btQuaternion_getAxis_0=b.asm.xf).apply(null,
arguments)},Sh=b._emscripten_bind_btQuaternion_inverse_0=function(){return(Sh=b._emscripten_bind_btQuaternion_inverse_0=b.asm.yf).apply(null,arguments)},Th=b._emscripten_bind_btQuaternion_getAngle_0=function(){return(Th=b._emscripten_bind_btQuaternion_getAngle_0=b.asm.zf).apply(null,arguments)},Uh=b._emscripten_bind_btQuaternion_getAngleShortestPath_0=function(){return(Uh=b._emscripten_bind_btQuaternion_getAngleShortestPath_0=b.asm.Af).apply(null,arguments)},Vh=b._emscripten_bind_btQuaternion_angle_1=
function(){return(Vh=b._emscripten_bind_btQuaternion_angle_1=b.asm.Bf).apply(null,arguments)},Wh=b._emscripten_bind_btQuaternion_angleShortestPath_1=function(){return(Wh=b._emscripten_bind_btQuaternion_angleShortestPath_1=b.asm.Cf).apply(null,arguments)},Xh=b._emscripten_bind_btQuaternion_op_add_1=function(){return(Xh=b._emscripten_bind_btQuaternion_op_add_1=b.asm.Df).apply(null,arguments)},Yh=b._emscripten_bind_btQuaternion_op_sub_1=function(){return(Yh=b._emscripten_bind_btQuaternion_op_sub_1=b.asm.Ef).apply(null,
arguments)},Zh=b._emscripten_bind_btQuaternion_op_mul_1=function(){return(Zh=b._emscripten_bind_btQuaternion_op_mul_1=b.asm.Ff).apply(null,arguments)},$h=b._emscripten_bind_btQuaternion_op_mulq_1=function(){return($h=b._emscripten_bind_btQuaternion_op_mulq_1=b.asm.Gf).apply(null,arguments)},ai=b._emscripten_bind_btQuaternion_op_div_1=function(){return(ai=b._emscripten_bind_btQuaternion_op_div_1=b.asm.Hf).apply(null,arguments)},bi=b._emscripten_bind_btQuaternion_x_0=function(){return(bi=b._emscripten_bind_btQuaternion_x_0=
b.asm.If).apply(null,arguments)},ci=b._emscripten_bind_btQuaternion_y_0=function(){return(ci=b._emscripten_bind_btQuaternion_y_0=b.asm.Jf).apply(null,arguments)},di=b._emscripten_bind_btQuaternion_z_0=function(){return(di=b._emscripten_bind_btQuaternion_z_0=b.asm.Kf).apply(null,arguments)},ei=b._emscripten_bind_btQuaternion_w_0=function(){return(ei=b._emscripten_bind_btQuaternion_w_0=b.asm.Lf).apply(null,arguments)},fi=b._emscripten_bind_btQuaternion_setX_1=function(){return(fi=b._emscripten_bind_btQuaternion_setX_1=
b.asm.Mf).apply(null,arguments)},gi=b._emscripten_bind_btQuaternion_setY_1=function(){return(gi=b._emscripten_bind_btQuaternion_setY_1=b.asm.Nf).apply(null,arguments)},hi=b._emscripten_bind_btQuaternion_setZ_1=function(){return(hi=b._emscripten_bind_btQuaternion_setZ_1=b.asm.Of).apply(null,arguments)},ii=b._emscripten_bind_btQuaternion_setW_1=function(){return(ii=b._emscripten_bind_btQuaternion_setW_1=b.asm.Pf).apply(null,arguments)},ji=b._emscripten_bind_btQuaternion___destroy___0=function(){return(ji=
b._emscripten_bind_btQuaternion___destroy___0=b.asm.Qf).apply(null,arguments)},ki=b._emscripten_bind_btMatrix3x3_setEulerZYX_3=function(){return(ki=b._emscripten_bind_btMatrix3x3_setEulerZYX_3=b.asm.Rf).apply(null,arguments)},li=b._emscripten_bind_btMatrix3x3_getRotation_1=function(){return(li=b._emscripten_bind_btMatrix3x3_getRotation_1=b.asm.Sf).apply(null,arguments)},mi=b._emscripten_bind_btMatrix3x3_getRow_1=function(){return(mi=b._emscripten_bind_btMatrix3x3_getRow_1=b.asm.Tf).apply(null,arguments)},
ni=b._emscripten_bind_btMatrix3x3___destroy___0=function(){return(ni=b._emscripten_bind_btMatrix3x3___destroy___0=b.asm.Uf).apply(null,arguments)},oi=b._emscripten_bind_btTransform_btTransform_0=function(){return(oi=b._emscripten_bind_btTransform_btTransform_0=b.asm.Vf).apply(null,arguments)},pi=b._emscripten_bind_btTransform_btTransform_2=function(){return(pi=b._emscripten_bind_btTransform_btTransform_2=b.asm.Wf).apply(null,arguments)},qi=b._emscripten_bind_btTransform_setIdentity_0=function(){return(qi=
b._emscripten_bind_btTransform_setIdentity_0=b.asm.Xf).apply(null,arguments)},ri=b._emscripten_bind_btTransform_setOrigin_1=function(){return(ri=b._emscripten_bind_btTransform_setOrigin_1=b.asm.Yf).apply(null,arguments)},si=b._emscripten_bind_btTransform_setRotation_1=function(){return(si=b._emscripten_bind_btTransform_setRotation_1=b.asm.Zf).apply(null,arguments)},ti=b._emscripten_bind_btTransform_getOrigin_0=function(){return(ti=b._emscripten_bind_btTransform_getOrigin_0=b.asm._f).apply(null,arguments)},
ui=b._emscripten_bind_btTransform_getRotation_0=function(){return(ui=b._emscripten_bind_btTransform_getRotation_0=b.asm.$f).apply(null,arguments)},vi=b._emscripten_bind_btTransform_getBasis_0=function(){return(vi=b._emscripten_bind_btTransform_getBasis_0=b.asm.ag).apply(null,arguments)},wi=b._emscripten_bind_btTransform_setFromOpenGLMatrix_1=function(){return(wi=b._emscripten_bind_btTransform_setFromOpenGLMatrix_1=b.asm.bg).apply(null,arguments)},xi=b._emscripten_bind_btTransform_inverse_0=function(){return(xi=
b._emscripten_bind_btTransform_inverse_0=b.asm.cg).apply(null,arguments)},yi=b._emscripten_bind_btTransform_op_mul_1=function(){return(yi=b._emscripten_bind_btTransform_op_mul_1=b.asm.dg).apply(null,arguments)},zi=b._emscripten_bind_btTransform___destroy___0=function(){return(zi=b._emscripten_bind_btTransform___destroy___0=b.asm.eg).apply(null,arguments)},Ai=b._emscripten_bind_btDefaultMotionState_btDefaultMotionState_0=function(){return(Ai=b._emscripten_bind_btDefaultMotionState_btDefaultMotionState_0=
b.asm.fg).apply(null,arguments)},Bi=b._emscripten_bind_btDefaultMotionState_btDefaultMotionState_1=function(){return(Bi=b._emscripten_bind_btDefaultMotionState_btDefaultMotionState_1=b.asm.gg).apply(null,arguments)},Ci=b._emscripten_bind_btDefaultMotionState_btDefaultMotionState_2=function(){return(Ci=b._emscripten_bind_btDefaultMotionState_btDefaultMotionState_2=b.asm.hg).apply(null,arguments)},Di=b._emscripten_bind_btDefaultMotionState_getWorldTransform_1=function(){return(Di=b._emscripten_bind_btDefaultMotionState_getWorldTransform_1=
b.asm.ig).apply(null,arguments)},Ei=b._emscripten_bind_btDefaultMotionState_setWorldTransform_1=function(){return(Ei=b._emscripten_bind_btDefaultMotionState_setWorldTransform_1=b.asm.jg).apply(null,arguments)},Fi=b._emscripten_bind_btDefaultMotionState_get_m_graphicsWorldTrans_0=function(){return(Fi=b._emscripten_bind_btDefaultMotionState_get_m_graphicsWorldTrans_0=b.asm.kg).apply(null,arguments)},Gi=b._emscripten_bind_btDefaultMotionState_set_m_graphicsWorldTrans_1=function(){return(Gi=b._emscripten_bind_btDefaultMotionState_set_m_graphicsWorldTrans_1=
b.asm.lg).apply(null,arguments)},Hi=b._emscripten_bind_btDefaultMotionState___destroy___0=function(){return(Hi=b._emscripten_bind_btDefaultMotionState___destroy___0=b.asm.mg).apply(null,arguments)},Ii=b._emscripten_bind_btCollisionObjectWrapper_getWorldTransform_0=function(){return(Ii=b._emscripten_bind_btCollisionObjectWrapper_getWorldTransform_0=b.asm.ng).apply(null,arguments)},Ji=b._emscripten_bind_btCollisionObjectWrapper_getCollisionObject_0=function(){return(Ji=b._emscripten_bind_btCollisionObjectWrapper_getCollisionObject_0=
b.asm.og).apply(null,arguments)},Ki=b._emscripten_bind_btCollisionObjectWrapper_getCollisionShape_0=function(){return(Ki=b._emscripten_bind_btCollisionObjectWrapper_getCollisionShape_0=b.asm.pg).apply(null,arguments)},Li=b._emscripten_bind_ClosestRayResultCallback_ClosestRayResultCallback_2=function(){return(Li=b._emscripten_bind_ClosestRayResultCallback_ClosestRayResultCallback_2=b.asm.qg).apply(null,arguments)},Mi=b._emscripten_bind_ClosestRayResultCallback_hasHit_0=function(){return(Mi=b._emscripten_bind_ClosestRayResultCallback_hasHit_0=
b.asm.rg).apply(null,arguments)},Ni=b._emscripten_bind_ClosestRayResultCallback_get_m_rayFromWorld_0=function(){return(Ni=b._emscripten_bind_ClosestRayResultCallback_get_m_rayFromWorld_0=b.asm.sg).apply(null,arguments)},Oi=b._emscripten_bind_ClosestRayResultCallback_set_m_rayFromWorld_1=function(){return(Oi=b._emscripten_bind_ClosestRayResultCallback_set_m_rayFromWorld_1=b.asm.tg).apply(null,arguments)},Pi=b._emscripten_bind_ClosestRayResultCallback_get_m_rayToWorld_0=function(){return(Pi=b._emscripten_bind_ClosestRayResultCallback_get_m_rayToWorld_0=
b.asm.ug).apply(null,arguments)},Qi=b._emscripten_bind_ClosestRayResultCallback_set_m_rayToWorld_1=function(){return(Qi=b._emscripten_bind_ClosestRayResultCallback_set_m_rayToWorld_1=b.asm.vg).apply(null,arguments)},Ri=b._emscripten_bind_ClosestRayResultCallback_get_m_hitNormalWorld_0=function(){return(Ri=b._emscripten_bind_ClosestRayResultCallback_get_m_hitNormalWorld_0=b.asm.wg).apply(null,arguments)},Si=b._emscripten_bind_ClosestRayResultCallback_set_m_hitNormalWorld_1=function(){return(Si=b._emscripten_bind_ClosestRayResultCallback_set_m_hitNormalWorld_1=
b.asm.xg).apply(null,arguments)},Ti=b._emscripten_bind_ClosestRayResultCallback_get_m_hitPointWorld_0=function(){return(Ti=b._emscripten_bind_ClosestRayResultCallback_get_m_hitPointWorld_0=b.asm.yg).apply(null,arguments)},Ui=b._emscripten_bind_ClosestRayResultCallback_set_m_hitPointWorld_1=function(){return(Ui=b._emscripten_bind_ClosestRayResultCallback_set_m_hitPointWorld_1=b.asm.zg).apply(null,arguments)},Vi=b._emscripten_bind_ClosestRayResultCallback_get_m_collisionFilterGroup_0=function(){return(Vi=
b._emscripten_bind_ClosestRayResultCallback_get_m_collisionFilterGroup_0=b.asm.Ag).apply(null,arguments)},Wi=b._emscripten_bind_ClosestRayResultCallback_set_m_collisionFilterGroup_1=function(){return(Wi=b._emscripten_bind_ClosestRayResultCallback_set_m_collisionFilterGroup_1=b.asm.Bg).apply(null,arguments)},Xi=b._emscripten_bind_ClosestRayResultCallback_get_m_collisionFilterMask_0=function(){return(Xi=b._emscripten_bind_ClosestRayResultCallback_get_m_collisionFilterMask_0=b.asm.Cg).apply(null,arguments)},
Yi=b._emscripten_bind_ClosestRayResultCallback_set_m_collisionFilterMask_1=function(){return(Yi=b._emscripten_bind_ClosestRayResultCallback_set_m_collisionFilterMask_1=b.asm.Dg).apply(null,arguments)},Zi=b._emscripten_bind_ClosestRayResultCallback_get_m_closestHitFraction_0=function(){return(Zi=b._emscripten_bind_ClosestRayResultCallback_get_m_closestHitFraction_0=b.asm.Eg).apply(null,arguments)},$i=b._emscripten_bind_ClosestRayResultCallback_set_m_closestHitFraction_1=function(){return($i=b._emscripten_bind_ClosestRayResultCallback_set_m_closestHitFraction_1=
b.asm.Fg).apply(null,arguments)},aj=b._emscripten_bind_ClosestRayResultCallback_get_m_collisionObject_0=function(){return(aj=b._emscripten_bind_ClosestRayResultCallback_get_m_collisionObject_0=b.asm.Gg).apply(null,arguments)},bj=b._emscripten_bind_ClosestRayResultCallback_set_m_collisionObject_1=function(){return(bj=b._emscripten_bind_ClosestRayResultCallback_set_m_collisionObject_1=b.asm.Hg).apply(null,arguments)},cj=b._emscripten_bind_ClosestRayResultCallback_get_m_flags_0=function(){return(cj=
b._emscripten_bind_ClosestRayResultCallback_get_m_flags_0=b.asm.Ig).apply(null,arguments)},dj=b._emscripten_bind_ClosestRayResultCallback_set_m_flags_1=function(){return(dj=b._emscripten_bind_ClosestRayResultCallback_set_m_flags_1=b.asm.Jg).apply(null,arguments)},ej=b._emscripten_bind_ClosestRayResultCallback___destroy___0=function(){return(ej=b._emscripten_bind_ClosestRayResultCallback___destroy___0=b.asm.Kg).apply(null,arguments)},fj=b._emscripten_bind_btConstCollisionObjectArray_size_0=function(){return(fj=
b._emscripten_bind_btConstCollisionObjectArray_size_0=b.asm.Lg).apply(null,arguments)},gj=b._emscripten_bind_btConstCollisionObjectArray_at_1=function(){return(gj=b._emscripten_bind_btConstCollisionObjectArray_at_1=b.asm.Mg).apply(null,arguments)},hj=b._emscripten_bind_btConstCollisionObjectArray___destroy___0=function(){return(hj=b._emscripten_bind_btConstCollisionObjectArray___destroy___0=b.asm.Ng).apply(null,arguments)},ij=b._emscripten_bind_btScalarArray_size_0=function(){return(ij=b._emscripten_bind_btScalarArray_size_0=
b.asm.Og).apply(null,arguments)},jj=b._emscripten_bind_btScalarArray_at_1=function(){return(jj=b._emscripten_bind_btScalarArray_at_1=b.asm.Pg).apply(null,arguments)},kj=b._emscripten_bind_btScalarArray___destroy___0=function(){return(kj=b._emscripten_bind_btScalarArray___destroy___0=b.asm.Qg).apply(null,arguments)},lj=b._emscripten_bind_AllHitsRayResultCallback_AllHitsRayResultCallback_2=function(){return(lj=b._emscripten_bind_AllHitsRayResultCallback_AllHitsRayResultCallback_2=b.asm.Rg).apply(null,
arguments)},mj=b._emscripten_bind_AllHitsRayResultCallback_hasHit_0=function(){return(mj=b._emscripten_bind_AllHitsRayResultCallback_hasHit_0=b.asm.Sg).apply(null,arguments)},nj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionObjects_0=function(){return(nj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionObjects_0=b.asm.Tg).apply(null,arguments)},oj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionObjects_1=function(){return(oj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionObjects_1=
b.asm.Ug).apply(null,arguments)},pj=b._emscripten_bind_AllHitsRayResultCallback_get_m_rayFromWorld_0=function(){return(pj=b._emscripten_bind_AllHitsRayResultCallback_get_m_rayFromWorld_0=b.asm.Vg).apply(null,arguments)},qj=b._emscripten_bind_AllHitsRayResultCallback_set_m_rayFromWorld_1=function(){return(qj=b._emscripten_bind_AllHitsRayResultCallback_set_m_rayFromWorld_1=b.asm.Wg).apply(null,arguments)},rj=b._emscripten_bind_AllHitsRayResultCallback_get_m_rayToWorld_0=function(){return(rj=b._emscripten_bind_AllHitsRayResultCallback_get_m_rayToWorld_0=
b.asm.Xg).apply(null,arguments)},sj=b._emscripten_bind_AllHitsRayResultCallback_set_m_rayToWorld_1=function(){return(sj=b._emscripten_bind_AllHitsRayResultCallback_set_m_rayToWorld_1=b.asm.Yg).apply(null,arguments)},tj=b._emscripten_bind_AllHitsRayResultCallback_get_m_hitNormalWorld_0=function(){return(tj=b._emscripten_bind_AllHitsRayResultCallback_get_m_hitNormalWorld_0=b.asm.Zg).apply(null,arguments)},uj=b._emscripten_bind_AllHitsRayResultCallback_set_m_hitNormalWorld_1=function(){return(uj=b._emscripten_bind_AllHitsRayResultCallback_set_m_hitNormalWorld_1=
b.asm._g).apply(null,arguments)},vj=b._emscripten_bind_AllHitsRayResultCallback_get_m_hitPointWorld_0=function(){return(vj=b._emscripten_bind_AllHitsRayResultCallback_get_m_hitPointWorld_0=b.asm.$g).apply(null,arguments)},wj=b._emscripten_bind_AllHitsRayResultCallback_set_m_hitPointWorld_1=function(){return(wj=b._emscripten_bind_AllHitsRayResultCallback_set_m_hitPointWorld_1=b.asm.ah).apply(null,arguments)},xj=b._emscripten_bind_AllHitsRayResultCallback_get_m_hitFractions_0=function(){return(xj=b._emscripten_bind_AllHitsRayResultCallback_get_m_hitFractions_0=
b.asm.bh).apply(null,arguments)},yj=b._emscripten_bind_AllHitsRayResultCallback_set_m_hitFractions_1=function(){return(yj=b._emscripten_bind_AllHitsRayResultCallback_set_m_hitFractions_1=b.asm.ch).apply(null,arguments)},zj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionFilterGroup_0=function(){return(zj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionFilterGroup_0=b.asm.dh).apply(null,arguments)},Aj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionFilterGroup_1=function(){return(Aj=
b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionFilterGroup_1=b.asm.eh).apply(null,arguments)},Bj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionFilterMask_0=function(){return(Bj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionFilterMask_0=b.asm.fh).apply(null,arguments)},Cj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionFilterMask_1=function(){return(Cj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionFilterMask_1=b.asm.gh).apply(null,arguments)},
Dj=b._emscripten_bind_AllHitsRayResultCallback_get_m_closestHitFraction_0=function(){return(Dj=b._emscripten_bind_AllHitsRayResultCallback_get_m_closestHitFraction_0=b.asm.hh).apply(null,arguments)},Ej=b._emscripten_bind_AllHitsRayResultCallback_set_m_closestHitFraction_1=function(){return(Ej=b._emscripten_bind_AllHitsRayResultCallback_set_m_closestHitFraction_1=b.asm.ih).apply(null,arguments)},Fj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionObject_0=function(){return(Fj=b._emscripten_bind_AllHitsRayResultCallback_get_m_collisionObject_0=
b.asm.jh).apply(null,arguments)},Gj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionObject_1=function(){return(Gj=b._emscripten_bind_AllHitsRayResultCallback_set_m_collisionObject_1=b.asm.kh).apply(null,arguments)},Hj=b._emscripten_bind_AllHitsRayResultCallback_get_m_flags_0=function(){return(Hj=b._emscripten_bind_AllHitsRayResultCallback_get_m_flags_0=b.asm.lh).apply(null,arguments)},Ij=b._emscripten_bind_AllHitsRayResultCallback_set_m_flags_1=function(){return(Ij=b._emscripten_bind_AllHitsRayResultCallback_set_m_flags_1=
b.asm.mh).apply(null,arguments)},Jj=b._emscripten_bind_AllHitsRayResultCallback___destroy___0=function(){return(Jj=b._emscripten_bind_AllHitsRayResultCallback___destroy___0=b.asm.nh).apply(null,arguments)},Kj=b._emscripten_bind_btManifoldPoint_getPositionWorldOnA_0=function(){return(Kj=b._emscripten_bind_btManifoldPoint_getPositionWorldOnA_0=b.asm.oh).apply(null,arguments)},Lj=b._emscripten_bind_btManifoldPoint_getPositionWorldOnB_0=function(){return(Lj=b._emscripten_bind_btManifoldPoint_getPositionWorldOnB_0=
b.asm.ph).apply(null,arguments)},Mj=b._emscripten_bind_btManifoldPoint_getAppliedImpulse_0=function(){return(Mj=b._emscripten_bind_btManifoldPoint_getAppliedImpulse_0=b.asm.qh).apply(null,arguments)},Nj=b._emscripten_bind_btManifoldPoint_getDistance_0=function(){return(Nj=b._emscripten_bind_btManifoldPoint_getDistance_0=b.asm.rh).apply(null,arguments)},Oj=b._emscripten_bind_btManifoldPoint_get_m_localPointA_0=function(){return(Oj=b._emscripten_bind_btManifoldPoint_get_m_localPointA_0=b.asm.sh).apply(null,
arguments)},Pj=b._emscripten_bind_btManifoldPoint_set_m_localPointA_1=function(){return(Pj=b._emscripten_bind_btManifoldPoint_set_m_localPointA_1=b.asm.th).apply(null,arguments)},Qj=b._emscripten_bind_btManifoldPoint_get_m_localPointB_0=function(){return(Qj=b._emscripten_bind_btManifoldPoint_get_m_localPointB_0=b.asm.uh).apply(null,arguments)},Rj=b._emscripten_bind_btManifoldPoint_set_m_localPointB_1=function(){return(Rj=b._emscripten_bind_btManifoldPoint_set_m_localPointB_1=b.asm.vh).apply(null,
arguments)},Sj=b._emscripten_bind_btManifoldPoint_get_m_positionWorldOnB_0=function(){return(Sj=b._emscripten_bind_btManifoldPoint_get_m_positionWorldOnB_0=b.asm.wh).apply(null,arguments)},Tj=b._emscripten_bind_btManifoldPoint_set_m_positionWorldOnB_1=function(){return(Tj=b._emscripten_bind_btManifoldPoint_set_m_positionWorldOnB_1=b.asm.xh).apply(null,arguments)},Uj=b._emscripten_bind_btManifoldPoint_get_m_positionWorldOnA_0=function(){return(Uj=b._emscripten_bind_btManifoldPoint_get_m_positionWorldOnA_0=
b.asm.yh).apply(null,arguments)},Vj=b._emscripten_bind_btManifoldPoint_set_m_positionWorldOnA_1=function(){return(Vj=b._emscripten_bind_btManifoldPoint_set_m_positionWorldOnA_1=b.asm.zh).apply(null,arguments)},Wj=b._emscripten_bind_btManifoldPoint_get_m_normalWorldOnB_0=function(){return(Wj=b._emscripten_bind_btManifoldPoint_get_m_normalWorldOnB_0=b.asm.Ah).apply(null,arguments)},Xj=b._emscripten_bind_btManifoldPoint_set_m_normalWorldOnB_1=function(){return(Xj=b._emscripten_bind_btManifoldPoint_set_m_normalWorldOnB_1=
b.asm.Bh).apply(null,arguments)},Yj=b._emscripten_bind_btManifoldPoint_get_m_userPersistentData_0=function(){return(Yj=b._emscripten_bind_btManifoldPoint_get_m_userPersistentData_0=b.asm.Ch).apply(null,arguments)},Zj=b._emscripten_bind_btManifoldPoint_set_m_userPersistentData_1=function(){return(Zj=b._emscripten_bind_btManifoldPoint_set_m_userPersistentData_1=b.asm.Dh).apply(null,arguments)},ak=b._emscripten_bind_btManifoldPoint___destroy___0=function(){return(ak=b._emscripten_bind_btManifoldPoint___destroy___0=
b.asm.Eh).apply(null,arguments)},bk=b._emscripten_bind_ConcreteContactResultCallback_ConcreteContactResultCallback_0=function(){return(bk=b._emscripten_bind_ConcreteContactResultCallback_ConcreteContactResultCallback_0=b.asm.Fh).apply(null,arguments)},ck=b._emscripten_bind_ConcreteContactResultCallback_addSingleResult_7=function(){return(ck=b._emscripten_bind_ConcreteContactResultCallback_addSingleResult_7=b.asm.Gh).apply(null,arguments)},dk=b._emscripten_bind_ConcreteContactResultCallback___destroy___0=
function(){return(dk=b._emscripten_bind_ConcreteContactResultCallback___destroy___0=b.asm.Hh).apply(null,arguments)},ek=b._emscripten_bind_LocalShapeInfo_get_m_shapePart_0=function(){return(ek=b._emscripten_bind_LocalShapeInfo_get_m_shapePart_0=b.asm.Ih).apply(null,arguments)},fk=b._emscripten_bind_LocalShapeInfo_set_m_shapePart_1=function(){return(fk=b._emscripten_bind_LocalShapeInfo_set_m_shapePart_1=b.asm.Jh).apply(null,arguments)},gk=b._emscripten_bind_LocalShapeInfo_get_m_triangleIndex_0=function(){return(gk=
b._emscripten_bind_LocalShapeInfo_get_m_triangleIndex_0=b.asm.Kh).apply(null,arguments)},hk=b._emscripten_bind_LocalShapeInfo_set_m_triangleIndex_1=function(){return(hk=b._emscripten_bind_LocalShapeInfo_set_m_triangleIndex_1=b.asm.Lh).apply(null,arguments)},ik=b._emscripten_bind_LocalShapeInfo___destroy___0=function(){return(ik=b._emscripten_bind_LocalShapeInfo___destroy___0=b.asm.Mh).apply(null,arguments)},jk=b._emscripten_bind_LocalConvexResult_LocalConvexResult_5=function(){return(jk=b._emscripten_bind_LocalConvexResult_LocalConvexResult_5=
b.asm.Nh).apply(null,arguments)},kk=b._emscripten_bind_LocalConvexResult_get_m_hitCollisionObject_0=function(){return(kk=b._emscripten_bind_LocalConvexResult_get_m_hitCollisionObject_0=b.asm.Oh).apply(null,arguments)},lk=b._emscripten_bind_LocalConvexResult_set_m_hitCollisionObject_1=function(){return(lk=b._emscripten_bind_LocalConvexResult_set_m_hitCollisionObject_1=b.asm.Ph).apply(null,arguments)},mk=b._emscripten_bind_LocalConvexResult_get_m_localShapeInfo_0=function(){return(mk=b._emscripten_bind_LocalConvexResult_get_m_localShapeInfo_0=
b.asm.Qh).apply(null,arguments)},nk=b._emscripten_bind_LocalConvexResult_set_m_localShapeInfo_1=function(){return(nk=b._emscripten_bind_LocalConvexResult_set_m_localShapeInfo_1=b.asm.Rh).apply(null,arguments)},ok=b._emscripten_bind_LocalConvexResult_get_m_hitNormalLocal_0=function(){return(ok=b._emscripten_bind_LocalConvexResult_get_m_hitNormalLocal_0=b.asm.Sh).apply(null,arguments)},pk=b._emscripten_bind_LocalConvexResult_set_m_hitNormalLocal_1=function(){return(pk=b._emscripten_bind_LocalConvexResult_set_m_hitNormalLocal_1=
b.asm.Th).apply(null,arguments)},qk=b._emscripten_bind_LocalConvexResult_get_m_hitPointLocal_0=function(){return(qk=b._emscripten_bind_LocalConvexResult_get_m_hitPointLocal_0=b.asm.Uh).apply(null,arguments)},rk=b._emscripten_bind_LocalConvexResult_set_m_hitPointLocal_1=function(){return(rk=b._emscripten_bind_LocalConvexResult_set_m_hitPointLocal_1=b.asm.Vh).apply(null,arguments)},sk=b._emscripten_bind_LocalConvexResult_get_m_hitFraction_0=function(){return(sk=b._emscripten_bind_LocalConvexResult_get_m_hitFraction_0=
b.asm.Wh).apply(null,arguments)},tk=b._emscripten_bind_LocalConvexResult_set_m_hitFraction_1=function(){return(tk=b._emscripten_bind_LocalConvexResult_set_m_hitFraction_1=b.asm.Xh).apply(null,arguments)},uk=b._emscripten_bind_LocalConvexResult___destroy___0=function(){return(uk=b._emscripten_bind_LocalConvexResult___destroy___0=b.asm.Yh).apply(null,arguments)},vk=b._emscripten_bind_ClosestConvexResultCallback_ClosestConvexResultCallback_2=function(){return(vk=b._emscripten_bind_ClosestConvexResultCallback_ClosestConvexResultCallback_2=
b.asm.Zh).apply(null,arguments)},wk=b._emscripten_bind_ClosestConvexResultCallback_hasHit_0=function(){return(wk=b._emscripten_bind_ClosestConvexResultCallback_hasHit_0=b.asm._h).apply(null,arguments)},xk=b._emscripten_bind_ClosestConvexResultCallback_get_m_hitCollisionObject_0=function(){return(xk=b._emscripten_bind_ClosestConvexResultCallback_get_m_hitCollisionObject_0=b.asm.$h).apply(null,arguments)},yk=b._emscripten_bind_ClosestConvexResultCallback_set_m_hitCollisionObject_1=function(){return(yk=
b._emscripten_bind_ClosestConvexResultCallback_set_m_hitCollisionObject_1=b.asm.ai).apply(null,arguments)},zk=b._emscripten_bind_ClosestConvexResultCallback_get_m_convexFromWorld_0=function(){return(zk=b._emscripten_bind_ClosestConvexResultCallback_get_m_convexFromWorld_0=b.asm.bi).apply(null,arguments)},Ak=b._emscripten_bind_ClosestConvexResultCallback_set_m_convexFromWorld_1=function(){return(Ak=b._emscripten_bind_ClosestConvexResultCallback_set_m_convexFromWorld_1=b.asm.ci).apply(null,arguments)},
Bk=b._emscripten_bind_ClosestConvexResultCallback_get_m_convexToWorld_0=function(){return(Bk=b._emscripten_bind_ClosestConvexResultCallback_get_m_convexToWorld_0=b.asm.di).apply(null,arguments)},Ck=b._emscripten_bind_ClosestConvexResultCallback_set_m_convexToWorld_1=function(){return(Ck=b._emscripten_bind_ClosestConvexResultCallback_set_m_convexToWorld_1=b.asm.ei).apply(null,arguments)},Dk=b._emscripten_bind_ClosestConvexResultCallback_get_m_hitNormalWorld_0=function(){return(Dk=b._emscripten_bind_ClosestConvexResultCallback_get_m_hitNormalWorld_0=
b.asm.fi).apply(null,arguments)},Ek=b._emscripten_bind_ClosestConvexResultCallback_set_m_hitNormalWorld_1=function(){return(Ek=b._emscripten_bind_ClosestConvexResultCallback_set_m_hitNormalWorld_1=b.asm.gi).apply(null,arguments)},Fk=b._emscripten_bind_ClosestConvexResultCallback_get_m_hitPointWorld_0=function(){return(Fk=b._emscripten_bind_ClosestConvexResultCallback_get_m_hitPointWorld_0=b.asm.hi).apply(null,arguments)},Gk=b._emscripten_bind_ClosestConvexResultCallback_set_m_hitPointWorld_1=function(){return(Gk=
b._emscripten_bind_ClosestConvexResultCallback_set_m_hitPointWorld_1=b.asm.ii).apply(null,arguments)},Hk=b._emscripten_bind_ClosestConvexResultCallback_get_m_collisionFilterGroup_0=function(){return(Hk=b._emscripten_bind_ClosestConvexResultCallback_get_m_collisionFilterGroup_0=b.asm.ji).apply(null,arguments)},Ik=b._emscripten_bind_ClosestConvexResultCallback_set_m_collisionFilterGroup_1=function(){return(Ik=b._emscripten_bind_ClosestConvexResultCallback_set_m_collisionFilterGroup_1=b.asm.ki).apply(null,
arguments)},Jk=b._emscripten_bind_ClosestConvexResultCallback_get_m_collisionFilterMask_0=function(){return(Jk=b._emscripten_bind_ClosestConvexResultCallback_get_m_collisionFilterMask_0=b.asm.li).apply(null,arguments)},Kk=b._emscripten_bind_ClosestConvexResultCallback_set_m_collisionFilterMask_1=function(){return(Kk=b._emscripten_bind_ClosestConvexResultCallback_set_m_collisionFilterMask_1=b.asm.mi).apply(null,arguments)},Lk=b._emscripten_bind_ClosestConvexResultCallback_get_m_closestHitFraction_0=
function(){return(Lk=b._emscripten_bind_ClosestConvexResultCallback_get_m_closestHitFraction_0=b.asm.ni).apply(null,arguments)},Mk=b._emscripten_bind_ClosestConvexResultCallback_set_m_closestHitFraction_1=function(){return(Mk=b._emscripten_bind_ClosestConvexResultCallback_set_m_closestHitFraction_1=b.asm.oi).apply(null,arguments)},Nk=b._emscripten_bind_ClosestConvexResultCallback___destroy___0=function(){return(Nk=b._emscripten_bind_ClosestConvexResultCallback___destroy___0=b.asm.pi).apply(null,arguments)},
Ok=b._emscripten_bind_btConvexTriangleMeshShape_btConvexTriangleMeshShape_1=function(){return(Ok=b._emscripten_bind_btConvexTriangleMeshShape_btConvexTriangleMeshShape_1=b.asm.qi).apply(null,arguments)},Pk=b._emscripten_bind_btConvexTriangleMeshShape_btConvexTriangleMeshShape_2=function(){return(Pk=b._emscripten_bind_btConvexTriangleMeshShape_btConvexTriangleMeshShape_2=b.asm.ri).apply(null,arguments)},Qk=b._emscripten_bind_btConvexTriangleMeshShape_setLocalScaling_1=function(){return(Qk=b._emscripten_bind_btConvexTriangleMeshShape_setLocalScaling_1=
b.asm.si).apply(null,arguments)},Rk=b._emscripten_bind_btConvexTriangleMeshShape_getLocalScaling_0=function(){return(Rk=b._emscripten_bind_btConvexTriangleMeshShape_getLocalScaling_0=b.asm.ti).apply(null,arguments)},Sk=b._emscripten_bind_btConvexTriangleMeshShape_calculateLocalInertia_2=function(){return(Sk=b._emscripten_bind_btConvexTriangleMeshShape_calculateLocalInertia_2=b.asm.ui).apply(null,arguments)},Tk=b._emscripten_bind_btConvexTriangleMeshShape_setMargin_1=function(){return(Tk=b._emscripten_bind_btConvexTriangleMeshShape_setMargin_1=
b.asm.vi).apply(null,arguments)},Uk=b._emscripten_bind_btConvexTriangleMeshShape_getMargin_0=function(){return(Uk=b._emscripten_bind_btConvexTriangleMeshShape_getMargin_0=b.asm.wi).apply(null,arguments)},Vk=b._emscripten_bind_btConvexTriangleMeshShape___destroy___0=function(){return(Vk=b._emscripten_bind_btConvexTriangleMeshShape___destroy___0=b.asm.xi).apply(null,arguments)},Wk=b._emscripten_bind_btBoxShape_btBoxShape_1=function(){return(Wk=b._emscripten_bind_btBoxShape_btBoxShape_1=b.asm.yi).apply(null,
arguments)},Xk=b._emscripten_bind_btBoxShape_setMargin_1=function(){return(Xk=b._emscripten_bind_btBoxShape_setMargin_1=b.asm.zi).apply(null,arguments)},Yk=b._emscripten_bind_btBoxShape_getMargin_0=function(){return(Yk=b._emscripten_bind_btBoxShape_getMargin_0=b.asm.Ai).apply(null,arguments)},Zk=b._emscripten_bind_btBoxShape_setLocalScaling_1=function(){return(Zk=b._emscripten_bind_btBoxShape_setLocalScaling_1=b.asm.Bi).apply(null,arguments)},$k=b._emscripten_bind_btBoxShape_getLocalScaling_0=function(){return($k=
b._emscripten_bind_btBoxShape_getLocalScaling_0=b.asm.Ci).apply(null,arguments)},al=b._emscripten_bind_btBoxShape_calculateLocalInertia_2=function(){return(al=b._emscripten_bind_btBoxShape_calculateLocalInertia_2=b.asm.Di).apply(null,arguments)},bl=b._emscripten_bind_btBoxShape___destroy___0=function(){return(bl=b._emscripten_bind_btBoxShape___destroy___0=b.asm.Ei).apply(null,arguments)},cl=b._emscripten_bind_btCapsuleShapeX_btCapsuleShapeX_2=function(){return(cl=b._emscripten_bind_btCapsuleShapeX_btCapsuleShapeX_2=
b.asm.Fi).apply(null,arguments)},dl=b._emscripten_bind_btCapsuleShapeX_setMargin_1=function(){return(dl=b._emscripten_bind_btCapsuleShapeX_setMargin_1=b.asm.Gi).apply(null,arguments)},el=b._emscripten_bind_btCapsuleShapeX_getMargin_0=function(){return(el=b._emscripten_bind_btCapsuleShapeX_getMargin_0=b.asm.Hi).apply(null,arguments)},fl=b._emscripten_bind_btCapsuleShapeX_getUpAxis_0=function(){return(fl=b._emscripten_bind_btCapsuleShapeX_getUpAxis_0=b.asm.Ii).apply(null,arguments)},gl=b._emscripten_bind_btCapsuleShapeX_getRadius_0=
function(){return(gl=b._emscripten_bind_btCapsuleShapeX_getRadius_0=b.asm.Ji).apply(null,arguments)},hl=b._emscripten_bind_btCapsuleShapeX_getHalfHeight_0=function(){return(hl=b._emscripten_bind_btCapsuleShapeX_getHalfHeight_0=b.asm.Ki).apply(null,arguments)},il=b._emscripten_bind_btCapsuleShapeX_setLocalScaling_1=function(){return(il=b._emscripten_bind_btCapsuleShapeX_setLocalScaling_1=b.asm.Li).apply(null,arguments)},jl=b._emscripten_bind_btCapsuleShapeX_getLocalScaling_0=function(){return(jl=b._emscripten_bind_btCapsuleShapeX_getLocalScaling_0=
b.asm.Mi).apply(null,arguments)},kl=b._emscripten_bind_btCapsuleShapeX_calculateLocalInertia_2=function(){return(kl=b._emscripten_bind_btCapsuleShapeX_calculateLocalInertia_2=b.asm.Ni).apply(null,arguments)},ll=b._emscripten_bind_btCapsuleShapeX___destroy___0=function(){return(ll=b._emscripten_bind_btCapsuleShapeX___destroy___0=b.asm.Oi).apply(null,arguments)},ml=b._emscripten_bind_btCapsuleShapeZ_btCapsuleShapeZ_2=function(){return(ml=b._emscripten_bind_btCapsuleShapeZ_btCapsuleShapeZ_2=b.asm.Pi).apply(null,
arguments)},nl=b._emscripten_bind_btCapsuleShapeZ_setMargin_1=function(){return(nl=b._emscripten_bind_btCapsuleShapeZ_setMargin_1=b.asm.Qi).apply(null,arguments)},ol=b._emscripten_bind_btCapsuleShapeZ_getMargin_0=function(){return(ol=b._emscripten_bind_btCapsuleShapeZ_getMargin_0=b.asm.Ri).apply(null,arguments)},pl=b._emscripten_bind_btCapsuleShapeZ_getUpAxis_0=function(){return(pl=b._emscripten_bind_btCapsuleShapeZ_getUpAxis_0=b.asm.Si).apply(null,arguments)},ql=b._emscripten_bind_btCapsuleShapeZ_getRadius_0=
function(){return(ql=b._emscripten_bind_btCapsuleShapeZ_getRadius_0=b.asm.Ti).apply(null,arguments)},rl=b._emscripten_bind_btCapsuleShapeZ_getHalfHeight_0=function(){return(rl=b._emscripten_bind_btCapsuleShapeZ_getHalfHeight_0=b.asm.Ui).apply(null,arguments)},sl=b._emscripten_bind_btCapsuleShapeZ_setLocalScaling_1=function(){return(sl=b._emscripten_bind_btCapsuleShapeZ_setLocalScaling_1=b.asm.Vi).apply(null,arguments)},tl=b._emscripten_bind_btCapsuleShapeZ_getLocalScaling_0=function(){return(tl=b._emscripten_bind_btCapsuleShapeZ_getLocalScaling_0=
b.asm.Wi).apply(null,arguments)},ul=b._emscripten_bind_btCapsuleShapeZ_calculateLocalInertia_2=function(){return(ul=b._emscripten_bind_btCapsuleShapeZ_calculateLocalInertia_2=b.asm.Xi).apply(null,arguments)},vl=b._emscripten_bind_btCapsuleShapeZ___destroy___0=function(){return(vl=b._emscripten_bind_btCapsuleShapeZ___destroy___0=b.asm.Yi).apply(null,arguments)},wl=b._emscripten_bind_btCylinderShapeX_btCylinderShapeX_1=function(){return(wl=b._emscripten_bind_btCylinderShapeX_btCylinderShapeX_1=b.asm.Zi).apply(null,
arguments)},xl=b._emscripten_bind_btCylinderShapeX_setMargin_1=function(){return(xl=b._emscripten_bind_btCylinderShapeX_setMargin_1=b.asm._i).apply(null,arguments)},yl=b._emscripten_bind_btCylinderShapeX_getMargin_0=function(){return(yl=b._emscripten_bind_btCylinderShapeX_getMargin_0=b.asm.$i).apply(null,arguments)},zl=b._emscripten_bind_btCylinderShapeX_setLocalScaling_1=function(){return(zl=b._emscripten_bind_btCylinderShapeX_setLocalScaling_1=b.asm.aj).apply(null,arguments)},Al=b._emscripten_bind_btCylinderShapeX_getLocalScaling_0=
function(){return(Al=b._emscripten_bind_btCylinderShapeX_getLocalScaling_0=b.asm.bj).apply(null,arguments)},Bl=b._emscripten_bind_btCylinderShapeX_calculateLocalInertia_2=function(){return(Bl=b._emscripten_bind_btCylinderShapeX_calculateLocalInertia_2=b.asm.cj).apply(null,arguments)},Cl=b._emscripten_bind_btCylinderShapeX___destroy___0=function(){return(Cl=b._emscripten_bind_btCylinderShapeX___destroy___0=b.asm.dj).apply(null,arguments)},Dl=b._emscripten_bind_btCylinderShapeZ_btCylinderShapeZ_1=function(){return(Dl=
b._emscripten_bind_btCylinderShapeZ_btCylinderShapeZ_1=b.asm.ej).apply(null,arguments)},El=b._emscripten_bind_btCylinderShapeZ_setMargin_1=function(){return(El=b._emscripten_bind_btCylinderShapeZ_setMargin_1=b.asm.fj).apply(null,arguments)},Fl=b._emscripten_bind_btCylinderShapeZ_getMargin_0=function(){return(Fl=b._emscripten_bind_btCylinderShapeZ_getMargin_0=b.asm.gj).apply(null,arguments)},Gl=b._emscripten_bind_btCylinderShapeZ_setLocalScaling_1=function(){return(Gl=b._emscripten_bind_btCylinderShapeZ_setLocalScaling_1=
b.asm.hj).apply(null,arguments)},Hl=b._emscripten_bind_btCylinderShapeZ_getLocalScaling_0=function(){return(Hl=b._emscripten_bind_btCylinderShapeZ_getLocalScaling_0=b.asm.ij).apply(null,arguments)},Il=b._emscripten_bind_btCylinderShapeZ_calculateLocalInertia_2=function(){return(Il=b._emscripten_bind_btCylinderShapeZ_calculateLocalInertia_2=b.asm.jj).apply(null,arguments)},Jl=b._emscripten_bind_btCylinderShapeZ___destroy___0=function(){return(Jl=b._emscripten_bind_btCylinderShapeZ___destroy___0=b.asm.kj).apply(null,
arguments)},Kl=b._emscripten_bind_btSphereShape_btSphereShape_1=function(){return(Kl=b._emscripten_bind_btSphereShape_btSphereShape_1=b.asm.lj).apply(null,arguments)},Ll=b._emscripten_bind_btSphereShape_setMargin_1=function(){return(Ll=b._emscripten_bind_btSphereShape_setMargin_1=b.asm.mj).apply(null,arguments)},Ml=b._emscripten_bind_btSphereShape_getMargin_0=function(){return(Ml=b._emscripten_bind_btSphereShape_getMargin_0=b.asm.nj).apply(null,arguments)},Nl=b._emscripten_bind_btSphereShape_setLocalScaling_1=
function(){return(Nl=b._emscripten_bind_btSphereShape_setLocalScaling_1=b.asm.oj).apply(null,arguments)},Ol=b._emscripten_bind_btSphereShape_getLocalScaling_0=function(){return(Ol=b._emscripten_bind_btSphereShape_getLocalScaling_0=b.asm.pj).apply(null,arguments)},Pl=b._emscripten_bind_btSphereShape_calculateLocalInertia_2=function(){return(Pl=b._emscripten_bind_btSphereShape_calculateLocalInertia_2=b.asm.qj).apply(null,arguments)},Ql=b._emscripten_bind_btSphereShape___destroy___0=function(){return(Ql=
b._emscripten_bind_btSphereShape___destroy___0=b.asm.rj).apply(null,arguments)},Rl=b._emscripten_bind_btMultiSphereShape_btMultiSphereShape_3=function(){return(Rl=b._emscripten_bind_btMultiSphereShape_btMultiSphereShape_3=b.asm.sj).apply(null,arguments)},Sl=b._emscripten_bind_btMultiSphereShape_setLocalScaling_1=function(){return(Sl=b._emscripten_bind_btMultiSphereShape_setLocalScaling_1=b.asm.tj).apply(null,arguments)},Tl=b._emscripten_bind_btMultiSphereShape_getLocalScaling_0=function(){return(Tl=
b._emscripten_bind_btMultiSphereShape_getLocalScaling_0=b.asm.uj).apply(null,arguments)},Ul=b._emscripten_bind_btMultiSphereShape_calculateLocalInertia_2=function(){return(Ul=b._emscripten_bind_btMultiSphereShape_calculateLocalInertia_2=b.asm.vj).apply(null,arguments)},Vl=b._emscripten_bind_btMultiSphereShape___destroy___0=function(){return(Vl=b._emscripten_bind_btMultiSphereShape___destroy___0=b.asm.wj).apply(null,arguments)},Wl=b._emscripten_bind_btConeShapeX_btConeShapeX_2=function(){return(Wl=
b._emscripten_bind_btConeShapeX_btConeShapeX_2=b.asm.xj).apply(null,arguments)},Xl=b._emscripten_bind_btConeShapeX_setLocalScaling_1=function(){return(Xl=b._emscripten_bind_btConeShapeX_setLocalScaling_1=b.asm.yj).apply(null,arguments)},Yl=b._emscripten_bind_btConeShapeX_getLocalScaling_0=function(){return(Yl=b._emscripten_bind_btConeShapeX_getLocalScaling_0=b.asm.zj).apply(null,arguments)},Zl=b._emscripten_bind_btConeShapeX_calculateLocalInertia_2=function(){return(Zl=b._emscripten_bind_btConeShapeX_calculateLocalInertia_2=
b.asm.Aj).apply(null,arguments)},$l=b._emscripten_bind_btConeShapeX___destroy___0=function(){return($l=b._emscripten_bind_btConeShapeX___destroy___0=b.asm.Bj).apply(null,arguments)},am=b._emscripten_bind_btConeShapeZ_btConeShapeZ_2=function(){return(am=b._emscripten_bind_btConeShapeZ_btConeShapeZ_2=b.asm.Cj).apply(null,arguments)},bm=b._emscripten_bind_btConeShapeZ_setLocalScaling_1=function(){return(bm=b._emscripten_bind_btConeShapeZ_setLocalScaling_1=b.asm.Dj).apply(null,arguments)},cm=b._emscripten_bind_btConeShapeZ_getLocalScaling_0=
function(){return(cm=b._emscripten_bind_btConeShapeZ_getLocalScaling_0=b.asm.Ej).apply(null,arguments)},dm=b._emscripten_bind_btConeShapeZ_calculateLocalInertia_2=function(){return(dm=b._emscripten_bind_btConeShapeZ_calculateLocalInertia_2=b.asm.Fj).apply(null,arguments)},em=b._emscripten_bind_btConeShapeZ___destroy___0=function(){return(em=b._emscripten_bind_btConeShapeZ___destroy___0=b.asm.Gj).apply(null,arguments)},fm=b._emscripten_bind_btIntArray_size_0=function(){return(fm=b._emscripten_bind_btIntArray_size_0=
b.asm.Hj).apply(null,arguments)},gm=b._emscripten_bind_btIntArray_at_1=function(){return(gm=b._emscripten_bind_btIntArray_at_1=b.asm.Ij).apply(null,arguments)},hm=b._emscripten_bind_btIntArray___destroy___0=function(){return(hm=b._emscripten_bind_btIntArray___destroy___0=b.asm.Jj).apply(null,arguments)},im=b._emscripten_bind_btFace_get_m_indices_0=function(){return(im=b._emscripten_bind_btFace_get_m_indices_0=b.asm.Kj).apply(null,arguments)},jm=b._emscripten_bind_btFace_set_m_indices_1=function(){return(jm=
b._emscripten_bind_btFace_set_m_indices_1=b.asm.Lj).apply(null,arguments)},km=b._emscripten_bind_btFace_get_m_plane_1=function(){return(km=b._emscripten_bind_btFace_get_m_plane_1=b.asm.Mj).apply(null,arguments)},lm=b._emscripten_bind_btFace_set_m_plane_2=function(){return(lm=b._emscripten_bind_btFace_set_m_plane_2=b.asm.Nj).apply(null,arguments)},mm=b._emscripten_bind_btFace___destroy___0=function(){return(mm=b._emscripten_bind_btFace___destroy___0=b.asm.Oj).apply(null,arguments)},nm=b._emscripten_bind_btVector3Array_size_0=
function(){return(nm=b._emscripten_bind_btVector3Array_size_0=b.asm.Pj).apply(null,arguments)},om=b._emscripten_bind_btVector3Array_at_1=function(){return(om=b._emscripten_bind_btVector3Array_at_1=b.asm.Qj).apply(null,arguments)},pm=b._emscripten_bind_btVector3Array___destroy___0=function(){return(pm=b._emscripten_bind_btVector3Array___destroy___0=b.asm.Rj).apply(null,arguments)},qm=b._emscripten_bind_btFaceArray_size_0=function(){return(qm=b._emscripten_bind_btFaceArray_size_0=b.asm.Sj).apply(null,
arguments)},rm=b._emscripten_bind_btFaceArray_at_1=function(){return(rm=b._emscripten_bind_btFaceArray_at_1=b.asm.Tj).apply(null,arguments)},sm=b._emscripten_bind_btFaceArray___destroy___0=function(){return(sm=b._emscripten_bind_btFaceArray___destroy___0=b.asm.Uj).apply(null,arguments)},tm=b._emscripten_bind_btConvexPolyhedron_get_m_vertices_0=function(){return(tm=b._emscripten_bind_btConvexPolyhedron_get_m_vertices_0=b.asm.Vj).apply(null,arguments)},um=b._emscripten_bind_btConvexPolyhedron_set_m_vertices_1=
function(){return(um=b._emscripten_bind_btConvexPolyhedron_set_m_vertices_1=b.asm.Wj).apply(null,arguments)},wm=b._emscripten_bind_btConvexPolyhedron_get_m_faces_0=function(){return(wm=b._emscripten_bind_btConvexPolyhedron_get_m_faces_0=b.asm.Xj).apply(null,arguments)},xm=b._emscripten_bind_btConvexPolyhedron_set_m_faces_1=function(){return(xm=b._emscripten_bind_btConvexPolyhedron_set_m_faces_1=b.asm.Yj).apply(null,arguments)},ym=b._emscripten_bind_btConvexPolyhedron___destroy___0=function(){return(ym=
b._emscripten_bind_btConvexPolyhedron___destroy___0=b.asm.Zj).apply(null,arguments)},zm=b._emscripten_bind_btConvexHullShape_btConvexHullShape_0=function(){return(zm=b._emscripten_bind_btConvexHullShape_btConvexHullShape_0=b.asm._j).apply(null,arguments)},Am=b._emscripten_bind_btConvexHullShape_btConvexHullShape_1=function(){return(Am=b._emscripten_bind_btConvexHullShape_btConvexHullShape_1=b.asm.$j).apply(null,arguments)},Bm=b._emscripten_bind_btConvexHullShape_btConvexHullShape_2=function(){return(Bm=
b._emscripten_bind_btConvexHullShape_btConvexHullShape_2=b.asm.ak).apply(null,arguments)},Cm=b._emscripten_bind_btConvexHullShape_addPoint_1=function(){return(Cm=b._emscripten_bind_btConvexHullShape_addPoint_1=b.asm.bk).apply(null,arguments)},Dm=b._emscripten_bind_btConvexHullShape_addPoint_2=function(){return(Dm=b._emscripten_bind_btConvexHullShape_addPoint_2=b.asm.ck).apply(null,arguments)},Em=b._emscripten_bind_btConvexHullShape_setMargin_1=function(){return(Em=b._emscripten_bind_btConvexHullShape_setMargin_1=
b.asm.dk).apply(null,arguments)},Fm=b._emscripten_bind_btConvexHullShape_getMargin_0=function(){return(Fm=b._emscripten_bind_btConvexHullShape_getMargin_0=b.asm.ek).apply(null,arguments)},Gm=b._emscripten_bind_btConvexHullShape_getNumVertices_0=function(){return(Gm=b._emscripten_bind_btConvexHullShape_getNumVertices_0=b.asm.fk).apply(null,arguments)},Hm=b._emscripten_bind_btConvexHullShape_initializePolyhedralFeatures_1=function(){return(Hm=b._emscripten_bind_btConvexHullShape_initializePolyhedralFeatures_1=
b.asm.gk).apply(null,arguments)},Im=b._emscripten_bind_btConvexHullShape_recalcLocalAabb_0=function(){return(Im=b._emscripten_bind_btConvexHullShape_recalcLocalAabb_0=b.asm.hk).apply(null,arguments)},Jm=b._emscripten_bind_btConvexHullShape_getConvexPolyhedron_0=function(){return(Jm=b._emscripten_bind_btConvexHullShape_getConvexPolyhedron_0=b.asm.ik).apply(null,arguments)},Km=b._emscripten_bind_btConvexHullShape_setLocalScaling_1=function(){return(Km=b._emscripten_bind_btConvexHullShape_setLocalScaling_1=
b.asm.jk).apply(null,arguments)},Lm=b._emscripten_bind_btConvexHullShape_getLocalScaling_0=function(){return(Lm=b._emscripten_bind_btConvexHullShape_getLocalScaling_0=b.asm.kk).apply(null,arguments)},Mm=b._emscripten_bind_btConvexHullShape_calculateLocalInertia_2=function(){return(Mm=b._emscripten_bind_btConvexHullShape_calculateLocalInertia_2=b.asm.lk).apply(null,arguments)},Nm=b._emscripten_bind_btConvexHullShape___destroy___0=function(){return(Nm=b._emscripten_bind_btConvexHullShape___destroy___0=
b.asm.mk).apply(null,arguments)},Om=b._emscripten_bind_btShapeHull_btShapeHull_1=function(){return(Om=b._emscripten_bind_btShapeHull_btShapeHull_1=b.asm.nk).apply(null,arguments)},Pm=b._emscripten_bind_btShapeHull_buildHull_1=function(){return(Pm=b._emscripten_bind_btShapeHull_buildHull_1=b.asm.ok).apply(null,arguments)},Qm=b._emscripten_bind_btShapeHull_numVertices_0=function(){return(Qm=b._emscripten_bind_btShapeHull_numVertices_0=b.asm.pk).apply(null,arguments)},Rm=b._emscripten_bind_btShapeHull_getVertexPointer_0=
function(){return(Rm=b._emscripten_bind_btShapeHull_getVertexPointer_0=b.asm.qk).apply(null,arguments)},Sm=b._emscripten_bind_btShapeHull___destroy___0=function(){return(Sm=b._emscripten_bind_btShapeHull___destroy___0=b.asm.rk).apply(null,arguments)},Tm=b._emscripten_bind_btCompoundShape_btCompoundShape_0=function(){return(Tm=b._emscripten_bind_btCompoundShape_btCompoundShape_0=b.asm.sk).apply(null,arguments)},Um=b._emscripten_bind_btCompoundShape_btCompoundShape_1=function(){return(Um=b._emscripten_bind_btCompoundShape_btCompoundShape_1=
b.asm.tk).apply(null,arguments)},Vm=b._emscripten_bind_btCompoundShape_addChildShape_2=function(){return(Vm=b._emscripten_bind_btCompoundShape_addChildShape_2=b.asm.uk).apply(null,arguments)},Wm=b._emscripten_bind_btCompoundShape_removeChildShape_1=function(){return(Wm=b._emscripten_bind_btCompoundShape_removeChildShape_1=b.asm.vk).apply(null,arguments)},Xm=b._emscripten_bind_btCompoundShape_removeChildShapeByIndex_1=function(){return(Xm=b._emscripten_bind_btCompoundShape_removeChildShapeByIndex_1=
b.asm.wk).apply(null,arguments)},Ym=b._emscripten_bind_btCompoundShape_getNumChildShapes_0=function(){return(Ym=b._emscripten_bind_btCompoundShape_getNumChildShapes_0=b.asm.xk).apply(null,arguments)},Zm=b._emscripten_bind_btCompoundShape_getChildShape_1=function(){return(Zm=b._emscripten_bind_btCompoundShape_getChildShape_1=b.asm.yk).apply(null,arguments)},$m=b._emscripten_bind_btCompoundShape_updateChildTransform_2=function(){return($m=b._emscripten_bind_btCompoundShape_updateChildTransform_2=b.asm.zk).apply(null,
arguments)},an=b._emscripten_bind_btCompoundShape_updateChildTransform_3=function(){return(an=b._emscripten_bind_btCompoundShape_updateChildTransform_3=b.asm.Ak).apply(null,arguments)},bn=b._emscripten_bind_btCompoundShape_setMargin_1=function(){return(bn=b._emscripten_bind_btCompoundShape_setMargin_1=b.asm.Bk).apply(null,arguments)},cn=b._emscripten_bind_btCompoundShape_getMargin_0=function(){return(cn=b._emscripten_bind_btCompoundShape_getMargin_0=b.asm.Ck).apply(null,arguments)},dn=b._emscripten_bind_btCompoundShape_setLocalScaling_1=
function(){return(dn=b._emscripten_bind_btCompoundShape_setLocalScaling_1=b.asm.Dk).apply(null,arguments)},en=b._emscripten_bind_btCompoundShape_getLocalScaling_0=function(){return(en=b._emscripten_bind_btCompoundShape_getLocalScaling_0=b.asm.Ek).apply(null,arguments)},fn=b._emscripten_bind_btCompoundShape_calculateLocalInertia_2=function(){return(fn=b._emscripten_bind_btCompoundShape_calculateLocalInertia_2=b.asm.Fk).apply(null,arguments)},gn=b._emscripten_bind_btCompoundShape___destroy___0=function(){return(gn=
b._emscripten_bind_btCompoundShape___destroy___0=b.asm.Gk).apply(null,arguments)},hn=b._emscripten_bind_btIndexedMesh_get_m_numTriangles_0=function(){return(hn=b._emscripten_bind_btIndexedMesh_get_m_numTriangles_0=b.asm.Hk).apply(null,arguments)},jn=b._emscripten_bind_btIndexedMesh_set_m_numTriangles_1=function(){return(jn=b._emscripten_bind_btIndexedMesh_set_m_numTriangles_1=b.asm.Ik).apply(null,arguments)},kn=b._emscripten_bind_btIndexedMesh___destroy___0=function(){return(kn=b._emscripten_bind_btIndexedMesh___destroy___0=
b.asm.Jk).apply(null,arguments)},ln=b._emscripten_bind_btIndexedMeshArray_size_0=function(){return(ln=b._emscripten_bind_btIndexedMeshArray_size_0=b.asm.Kk).apply(null,arguments)},mn=b._emscripten_bind_btIndexedMeshArray_at_1=function(){return(mn=b._emscripten_bind_btIndexedMeshArray_at_1=b.asm.Lk).apply(null,arguments)},nn=b._emscripten_bind_btIndexedMeshArray___destroy___0=function(){return(nn=b._emscripten_bind_btIndexedMeshArray___destroy___0=b.asm.Mk).apply(null,arguments)},on=b._emscripten_bind_btTriangleMesh_btTriangleMesh_0=
function(){return(on=b._emscripten_bind_btTriangleMesh_btTriangleMesh_0=b.asm.Nk).apply(null,arguments)},pn=b._emscripten_bind_btTriangleMesh_btTriangleMesh_1=function(){return(pn=b._emscripten_bind_btTriangleMesh_btTriangleMesh_1=b.asm.Ok).apply(null,arguments)},qn=b._emscripten_bind_btTriangleMesh_btTriangleMesh_2=function(){return(qn=b._emscripten_bind_btTriangleMesh_btTriangleMesh_2=b.asm.Pk).apply(null,arguments)},rn=b._emscripten_bind_btTriangleMesh_addTriangle_3=function(){return(rn=b._emscripten_bind_btTriangleMesh_addTriangle_3=
b.asm.Qk).apply(null,arguments)},sn=b._emscripten_bind_btTriangleMesh_addTriangle_4=function(){return(sn=b._emscripten_bind_btTriangleMesh_addTriangle_4=b.asm.Rk).apply(null,arguments)},tn=b._emscripten_bind_btTriangleMesh_findOrAddVertex_2=function(){return(tn=b._emscripten_bind_btTriangleMesh_findOrAddVertex_2=b.asm.Sk).apply(null,arguments)},un=b._emscripten_bind_btTriangleMesh_addIndex_1=function(){return(un=b._emscripten_bind_btTriangleMesh_addIndex_1=b.asm.Tk).apply(null,arguments)},vn=b._emscripten_bind_btTriangleMesh_getIndexedMeshArray_0=
function(){return(vn=b._emscripten_bind_btTriangleMesh_getIndexedMeshArray_0=b.asm.Uk).apply(null,arguments)},wn=b._emscripten_bind_btTriangleMesh_setScaling_1=function(){return(wn=b._emscripten_bind_btTriangleMesh_setScaling_1=b.asm.Vk).apply(null,arguments)},xn=b._emscripten_bind_btTriangleMesh___destroy___0=function(){return(xn=b._emscripten_bind_btTriangleMesh___destroy___0=b.asm.Wk).apply(null,arguments)},yn=b._emscripten_bind_btEmptyShape_btEmptyShape_0=function(){return(yn=b._emscripten_bind_btEmptyShape_btEmptyShape_0=
b.asm.Xk).apply(null,arguments)},zn=b._emscripten_bind_btEmptyShape_setLocalScaling_1=function(){return(zn=b._emscripten_bind_btEmptyShape_setLocalScaling_1=b.asm.Yk).apply(null,arguments)},An=b._emscripten_bind_btEmptyShape_getLocalScaling_0=function(){return(An=b._emscripten_bind_btEmptyShape_getLocalScaling_0=b.asm.Zk).apply(null,arguments)},Bn=b._emscripten_bind_btEmptyShape_calculateLocalInertia_2=function(){return(Bn=b._emscripten_bind_btEmptyShape_calculateLocalInertia_2=b.asm._k).apply(null,
arguments)},Cn=b._emscripten_bind_btEmptyShape___destroy___0=function(){return(Cn=b._emscripten_bind_btEmptyShape___destroy___0=b.asm.$k).apply(null,arguments)},Dn=b._emscripten_bind_btStaticPlaneShape_btStaticPlaneShape_2=function(){return(Dn=b._emscripten_bind_btStaticPlaneShape_btStaticPlaneShape_2=b.asm.al).apply(null,arguments)},En=b._emscripten_bind_btStaticPlaneShape_setLocalScaling_1=function(){return(En=b._emscripten_bind_btStaticPlaneShape_setLocalScaling_1=b.asm.bl).apply(null,arguments)},
Fn=b._emscripten_bind_btStaticPlaneShape_getLocalScaling_0=function(){return(Fn=b._emscripten_bind_btStaticPlaneShape_getLocalScaling_0=b.asm.cl).apply(null,arguments)},Gn=b._emscripten_bind_btStaticPlaneShape_calculateLocalInertia_2=function(){return(Gn=b._emscripten_bind_btStaticPlaneShape_calculateLocalInertia_2=b.asm.dl).apply(null,arguments)},Hn=b._emscripten_bind_btStaticPlaneShape___destroy___0=function(){return(Hn=b._emscripten_bind_btStaticPlaneShape___destroy___0=b.asm.el).apply(null,arguments)},
In=b._emscripten_bind_btBvhTriangleMeshShape_btBvhTriangleMeshShape_2=function(){return(In=b._emscripten_bind_btBvhTriangleMeshShape_btBvhTriangleMeshShape_2=b.asm.fl).apply(null,arguments)},Jn=b._emscripten_bind_btBvhTriangleMeshShape_btBvhTriangleMeshShape_3=function(){return(Jn=b._emscripten_bind_btBvhTriangleMeshShape_btBvhTriangleMeshShape_3=b.asm.gl).apply(null,arguments)},Kn=b._emscripten_bind_btBvhTriangleMeshShape_setLocalScaling_1=function(){return(Kn=b._emscripten_bind_btBvhTriangleMeshShape_setLocalScaling_1=
b.asm.hl).apply(null,arguments)},Ln=b._emscripten_bind_btBvhTriangleMeshShape_getLocalScaling_0=function(){return(Ln=b._emscripten_bind_btBvhTriangleMeshShape_getLocalScaling_0=b.asm.il).apply(null,arguments)},Mn=b._emscripten_bind_btBvhTriangleMeshShape_calculateLocalInertia_2=function(){return(Mn=b._emscripten_bind_btBvhTriangleMeshShape_calculateLocalInertia_2=b.asm.jl).apply(null,arguments)},Nn=b._emscripten_bind_btBvhTriangleMeshShape___destroy___0=function(){return(Nn=b._emscripten_bind_btBvhTriangleMeshShape___destroy___0=
b.asm.kl).apply(null,arguments)},On=b._emscripten_bind_btHeightfieldTerrainShape_btHeightfieldTerrainShape_9=function(){return(On=b._emscripten_bind_btHeightfieldTerrainShape_btHeightfieldTerrainShape_9=b.asm.ll).apply(null,arguments)},Pn=b._emscripten_bind_btHeightfieldTerrainShape_setMargin_1=function(){return(Pn=b._emscripten_bind_btHeightfieldTerrainShape_setMargin_1=b.asm.ml).apply(null,arguments)},Qn=b._emscripten_bind_btHeightfieldTerrainShape_getMargin_0=function(){return(Qn=b._emscripten_bind_btHeightfieldTerrainShape_getMargin_0=
b.asm.nl).apply(null,arguments)},Rn=b._emscripten_bind_btHeightfieldTerrainShape_setLocalScaling_1=function(){return(Rn=b._emscripten_bind_btHeightfieldTerrainShape_setLocalScaling_1=b.asm.ol).apply(null,arguments)},Sn=b._emscripten_bind_btHeightfieldTerrainShape_getLocalScaling_0=function(){return(Sn=b._emscripten_bind_btHeightfieldTerrainShape_getLocalScaling_0=b.asm.pl).apply(null,arguments)},Tn=b._emscripten_bind_btHeightfieldTerrainShape_calculateLocalInertia_2=function(){return(Tn=b._emscripten_bind_btHeightfieldTerrainShape_calculateLocalInertia_2=
b.asm.ql).apply(null,arguments)},Un=b._emscripten_bind_btHeightfieldTerrainShape___destroy___0=function(){return(Un=b._emscripten_bind_btHeightfieldTerrainShape___destroy___0=b.asm.rl).apply(null,arguments)},Vn=b._emscripten_bind_btAABB_btAABB_4=function(){return(Vn=b._emscripten_bind_btAABB_btAABB_4=b.asm.sl).apply(null,arguments)},Wn=b._emscripten_bind_btAABB_invalidate_0=function(){return(Wn=b._emscripten_bind_btAABB_invalidate_0=b.asm.tl).apply(null,arguments)},Xn=b._emscripten_bind_btAABB_increment_margin_1=
function(){return(Xn=b._emscripten_bind_btAABB_increment_margin_1=b.asm.ul).apply(null,arguments)},Yn=b._emscripten_bind_btAABB_copy_with_margin_2=function(){return(Yn=b._emscripten_bind_btAABB_copy_with_margin_2=b.asm.vl).apply(null,arguments)},Zn=b._emscripten_bind_btAABB___destroy___0=function(){return(Zn=b._emscripten_bind_btAABB___destroy___0=b.asm.wl).apply(null,arguments)},$n=b._emscripten_bind_btPrimitiveTriangle_btPrimitiveTriangle_0=function(){return($n=b._emscripten_bind_btPrimitiveTriangle_btPrimitiveTriangle_0=
b.asm.xl).apply(null,arguments)},ao=b._emscripten_bind_btPrimitiveTriangle___destroy___0=function(){return(ao=b._emscripten_bind_btPrimitiveTriangle___destroy___0=b.asm.yl).apply(null,arguments)},bo=b._emscripten_bind_btTriangleShapeEx_btTriangleShapeEx_3=function(){return(bo=b._emscripten_bind_btTriangleShapeEx_btTriangleShapeEx_3=b.asm.zl).apply(null,arguments)},co=b._emscripten_bind_btTriangleShapeEx_getAabb_3=function(){return(co=b._emscripten_bind_btTriangleShapeEx_getAabb_3=b.asm.Al).apply(null,
arguments)},eo=b._emscripten_bind_btTriangleShapeEx_applyTransform_1=function(){return(eo=b._emscripten_bind_btTriangleShapeEx_applyTransform_1=b.asm.Bl).apply(null,arguments)},fo=b._emscripten_bind_btTriangleShapeEx_buildTriPlane_1=function(){return(fo=b._emscripten_bind_btTriangleShapeEx_buildTriPlane_1=b.asm.Cl).apply(null,arguments)},go=b._emscripten_bind_btTriangleShapeEx___destroy___0=function(){return(go=b._emscripten_bind_btTriangleShapeEx___destroy___0=b.asm.Dl).apply(null,arguments)},ho=
b._emscripten_bind_btTetrahedronShapeEx_btTetrahedronShapeEx_0=function(){return(ho=b._emscripten_bind_btTetrahedronShapeEx_btTetrahedronShapeEx_0=b.asm.El).apply(null,arguments)},io=b._emscripten_bind_btTetrahedronShapeEx_setVertices_4=function(){return(io=b._emscripten_bind_btTetrahedronShapeEx_setVertices_4=b.asm.Fl).apply(null,arguments)},jo=b._emscripten_bind_btTetrahedronShapeEx___destroy___0=function(){return(jo=b._emscripten_bind_btTetrahedronShapeEx___destroy___0=b.asm.Gl).apply(null,arguments)},
ko=b._emscripten_bind_CompoundPrimitiveManager_get_primitive_count_0=function(){return(ko=b._emscripten_bind_CompoundPrimitiveManager_get_primitive_count_0=b.asm.Hl).apply(null,arguments)},lo=b._emscripten_bind_CompoundPrimitiveManager_get_primitive_box_2=function(){return(lo=b._emscripten_bind_CompoundPrimitiveManager_get_primitive_box_2=b.asm.Il).apply(null,arguments)},mo=b._emscripten_bind_CompoundPrimitiveManager_get_primitive_triangle_2=function(){return(mo=b._emscripten_bind_CompoundPrimitiveManager_get_primitive_triangle_2=
b.asm.Jl).apply(null,arguments)},no=b._emscripten_bind_CompoundPrimitiveManager_is_trimesh_0=function(){return(no=b._emscripten_bind_CompoundPrimitiveManager_is_trimesh_0=b.asm.Kl).apply(null,arguments)},oo=b._emscripten_bind_CompoundPrimitiveManager_get_m_compoundShape_0=function(){return(oo=b._emscripten_bind_CompoundPrimitiveManager_get_m_compoundShape_0=b.asm.Ll).apply(null,arguments)},po=b._emscripten_bind_CompoundPrimitiveManager_set_m_compoundShape_1=function(){return(po=b._emscripten_bind_CompoundPrimitiveManager_set_m_compoundShape_1=
b.asm.Ml).apply(null,arguments)},qo=b._emscripten_bind_CompoundPrimitiveManager___destroy___0=function(){return(qo=b._emscripten_bind_CompoundPrimitiveManager___destroy___0=b.asm.Nl).apply(null,arguments)},ro=b._emscripten_bind_btGImpactCompoundShape_btGImpactCompoundShape_0=function(){return(ro=b._emscripten_bind_btGImpactCompoundShape_btGImpactCompoundShape_0=b.asm.Ol).apply(null,arguments)},so=b._emscripten_bind_btGImpactCompoundShape_btGImpactCompoundShape_1=function(){return(so=b._emscripten_bind_btGImpactCompoundShape_btGImpactCompoundShape_1=
b.asm.Pl).apply(null,arguments)},to=b._emscripten_bind_btGImpactCompoundShape_childrenHasTransform_0=function(){return(to=b._emscripten_bind_btGImpactCompoundShape_childrenHasTransform_0=b.asm.Ql).apply(null,arguments)},uo=b._emscripten_bind_btGImpactCompoundShape_getPrimitiveManager_0=function(){return(uo=b._emscripten_bind_btGImpactCompoundShape_getPrimitiveManager_0=b.asm.Rl).apply(null,arguments)},vo=b._emscripten_bind_btGImpactCompoundShape_getCompoundPrimitiveManager_0=function(){return(vo=
b._emscripten_bind_btGImpactCompoundShape_getCompoundPrimitiveManager_0=b.asm.Sl).apply(null,arguments)},wo=b._emscripten_bind_btGImpactCompoundShape_getNumChildShapes_0=function(){return(wo=b._emscripten_bind_btGImpactCompoundShape_getNumChildShapes_0=b.asm.Tl).apply(null,arguments)},xo=b._emscripten_bind_btGImpactCompoundShape_addChildShape_2=function(){return(xo=b._emscripten_bind_btGImpactCompoundShape_addChildShape_2=b.asm.Ul).apply(null,arguments)},yo=b._emscripten_bind_btGImpactCompoundShape_getChildShape_1=
function(){return(yo=b._emscripten_bind_btGImpactCompoundShape_getChildShape_1=b.asm.Vl).apply(null,arguments)},zo=b._emscripten_bind_btGImpactCompoundShape_getChildAabb_4=function(){return(zo=b._emscripten_bind_btGImpactCompoundShape_getChildAabb_4=b.asm.Wl).apply(null,arguments)},Ao=b._emscripten_bind_btGImpactCompoundShape_getChildTransform_1=function(){return(Ao=b._emscripten_bind_btGImpactCompoundShape_getChildTransform_1=b.asm.Xl).apply(null,arguments)},Bo=b._emscripten_bind_btGImpactCompoundShape_setChildTransform_2=
function(){return(Bo=b._emscripten_bind_btGImpactCompoundShape_setChildTransform_2=b.asm.Yl).apply(null,arguments)},Co=b._emscripten_bind_btGImpactCompoundShape_calculateLocalInertia_2=function(){return(Co=b._emscripten_bind_btGImpactCompoundShape_calculateLocalInertia_2=b.asm.Zl).apply(null,arguments)},Do=b._emscripten_bind_btGImpactCompoundShape_getName_0=function(){return(Do=b._emscripten_bind_btGImpactCompoundShape_getName_0=b.asm._l).apply(null,arguments)},Eo=b._emscripten_bind_btGImpactCompoundShape_getGImpactShapeType_0=
function(){return(Eo=b._emscripten_bind_btGImpactCompoundShape_getGImpactShapeType_0=b.asm.$l).apply(null,arguments)},Fo=b._emscripten_bind_btGImpactCompoundShape_setLocalScaling_1=function(){return(Fo=b._emscripten_bind_btGImpactCompoundShape_setLocalScaling_1=b.asm.am).apply(null,arguments)},Go=b._emscripten_bind_btGImpactCompoundShape_getLocalScaling_0=function(){return(Go=b._emscripten_bind_btGImpactCompoundShape_getLocalScaling_0=b.asm.bm).apply(null,arguments)},Ho=b._emscripten_bind_btGImpactCompoundShape_updateBound_0=
function(){return(Ho=b._emscripten_bind_btGImpactCompoundShape_updateBound_0=b.asm.cm).apply(null,arguments)},Io=b._emscripten_bind_btGImpactCompoundShape_postUpdate_0=function(){return(Io=b._emscripten_bind_btGImpactCompoundShape_postUpdate_0=b.asm.dm).apply(null,arguments)},Jo=b._emscripten_bind_btGImpactCompoundShape_getShapeType_0=function(){return(Jo=b._emscripten_bind_btGImpactCompoundShape_getShapeType_0=b.asm.em).apply(null,arguments)},Ko=b._emscripten_bind_btGImpactCompoundShape_needsRetrieveTriangles_0=
function(){return(Ko=b._emscripten_bind_btGImpactCompoundShape_needsRetrieveTriangles_0=b.asm.fm).apply(null,arguments)},Lo=b._emscripten_bind_btGImpactCompoundShape_needsRetrieveTetrahedrons_0=function(){return(Lo=b._emscripten_bind_btGImpactCompoundShape_needsRetrieveTetrahedrons_0=b.asm.gm).apply(null,arguments)},Mo=b._emscripten_bind_btGImpactCompoundShape_getBulletTriangle_2=function(){return(Mo=b._emscripten_bind_btGImpactCompoundShape_getBulletTriangle_2=b.asm.hm).apply(null,arguments)},No=
b._emscripten_bind_btGImpactCompoundShape_getBulletTetrahedron_2=function(){return(No=b._emscripten_bind_btGImpactCompoundShape_getBulletTetrahedron_2=b.asm.im).apply(null,arguments)},Oo=b._emscripten_bind_btGImpactCompoundShape___destroy___0=function(){return(Oo=b._emscripten_bind_btGImpactCompoundShape___destroy___0=b.asm.jm).apply(null,arguments)},Po=b._emscripten_bind_TrimeshPrimitiveManager_TrimeshPrimitiveManager_0=function(){return(Po=b._emscripten_bind_TrimeshPrimitiveManager_TrimeshPrimitiveManager_0=
b.asm.km).apply(null,arguments)},Qo=b._emscripten_bind_TrimeshPrimitiveManager_TrimeshPrimitiveManager_1=function(){return(Qo=b._emscripten_bind_TrimeshPrimitiveManager_TrimeshPrimitiveManager_1=b.asm.lm).apply(null,arguments)},Ro=b._emscripten_bind_TrimeshPrimitiveManager_lock_0=function(){return(Ro=b._emscripten_bind_TrimeshPrimitiveManager_lock_0=b.asm.mm).apply(null,arguments)},So=b._emscripten_bind_TrimeshPrimitiveManager_unlock_0=function(){return(So=b._emscripten_bind_TrimeshPrimitiveManager_unlock_0=
b.asm.nm).apply(null,arguments)},To=b._emscripten_bind_TrimeshPrimitiveManager_is_trimesh_0=function(){return(To=b._emscripten_bind_TrimeshPrimitiveManager_is_trimesh_0=b.asm.om).apply(null,arguments)},Uo=b._emscripten_bind_TrimeshPrimitiveManager_get_vertex_count_0=function(){return(Uo=b._emscripten_bind_TrimeshPrimitiveManager_get_vertex_count_0=b.asm.pm).apply(null,arguments)},Vo=b._emscripten_bind_TrimeshPrimitiveManager_get_indices_4=function(){return(Vo=b._emscripten_bind_TrimeshPrimitiveManager_get_indices_4=
b.asm.qm).apply(null,arguments)},Wo=b._emscripten_bind_TrimeshPrimitiveManager_get_vertex_2=function(){return(Wo=b._emscripten_bind_TrimeshPrimitiveManager_get_vertex_2=b.asm.rm).apply(null,arguments)},Xo=b._emscripten_bind_TrimeshPrimitiveManager_get_bullet_triangle_2=function(){return(Xo=b._emscripten_bind_TrimeshPrimitiveManager_get_bullet_triangle_2=b.asm.sm).apply(null,arguments)},Yo=b._emscripten_bind_TrimeshPrimitiveManager_get_m_margin_0=function(){return(Yo=b._emscripten_bind_TrimeshPrimitiveManager_get_m_margin_0=
b.asm.tm).apply(null,arguments)},Zo=b._emscripten_bind_TrimeshPrimitiveManager_set_m_margin_1=function(){return(Zo=b._emscripten_bind_TrimeshPrimitiveManager_set_m_margin_1=b.asm.um).apply(null,arguments)},$o=b._emscripten_bind_TrimeshPrimitiveManager_get_m_meshInterface_0=function(){return($o=b._emscripten_bind_TrimeshPrimitiveManager_get_m_meshInterface_0=b.asm.vm).apply(null,arguments)},ap=b._emscripten_bind_TrimeshPrimitiveManager_set_m_meshInterface_1=function(){return(ap=b._emscripten_bind_TrimeshPrimitiveManager_set_m_meshInterface_1=
b.asm.wm).apply(null,arguments)},bp=b._emscripten_bind_TrimeshPrimitiveManager_get_m_part_0=function(){return(bp=b._emscripten_bind_TrimeshPrimitiveManager_get_m_part_0=b.asm.xm).apply(null,arguments)},cp=b._emscripten_bind_TrimeshPrimitiveManager_set_m_part_1=function(){return(cp=b._emscripten_bind_TrimeshPrimitiveManager_set_m_part_1=b.asm.ym).apply(null,arguments)},dp=b._emscripten_bind_TrimeshPrimitiveManager_get_m_lock_count_0=function(){return(dp=b._emscripten_bind_TrimeshPrimitiveManager_get_m_lock_count_0=
b.asm.zm).apply(null,arguments)},ep=b._emscripten_bind_TrimeshPrimitiveManager_set_m_lock_count_1=function(){return(ep=b._emscripten_bind_TrimeshPrimitiveManager_set_m_lock_count_1=b.asm.Am).apply(null,arguments)},fp=b._emscripten_bind_TrimeshPrimitiveManager_get_numverts_0=function(){return(fp=b._emscripten_bind_TrimeshPrimitiveManager_get_numverts_0=b.asm.Bm).apply(null,arguments)},gp=b._emscripten_bind_TrimeshPrimitiveManager_set_numverts_1=function(){return(gp=b._emscripten_bind_TrimeshPrimitiveManager_set_numverts_1=
b.asm.Cm).apply(null,arguments)},hp=b._emscripten_bind_TrimeshPrimitiveManager_get_type_0=function(){return(hp=b._emscripten_bind_TrimeshPrimitiveManager_get_type_0=b.asm.Dm).apply(null,arguments)},ip=b._emscripten_bind_TrimeshPrimitiveManager_set_type_1=function(){return(ip=b._emscripten_bind_TrimeshPrimitiveManager_set_type_1=b.asm.Em).apply(null,arguments)},jp=b._emscripten_bind_TrimeshPrimitiveManager_get_stride_0=function(){return(jp=b._emscripten_bind_TrimeshPrimitiveManager_get_stride_0=b.asm.Fm).apply(null,
arguments)},kp=b._emscripten_bind_TrimeshPrimitiveManager_set_stride_1=function(){return(kp=b._emscripten_bind_TrimeshPrimitiveManager_set_stride_1=b.asm.Gm).apply(null,arguments)},lp=b._emscripten_bind_TrimeshPrimitiveManager_get_indexstride_0=function(){return(lp=b._emscripten_bind_TrimeshPrimitiveManager_get_indexstride_0=b.asm.Hm).apply(null,arguments)},mp=b._emscripten_bind_TrimeshPrimitiveManager_set_indexstride_1=function(){return(mp=b._emscripten_bind_TrimeshPrimitiveManager_set_indexstride_1=
b.asm.Im).apply(null,arguments)},np=b._emscripten_bind_TrimeshPrimitiveManager_get_numfaces_0=function(){return(np=b._emscripten_bind_TrimeshPrimitiveManager_get_numfaces_0=b.asm.Jm).apply(null,arguments)},op=b._emscripten_bind_TrimeshPrimitiveManager_set_numfaces_1=function(){return(op=b._emscripten_bind_TrimeshPrimitiveManager_set_numfaces_1=b.asm.Km).apply(null,arguments)},pp=b._emscripten_bind_TrimeshPrimitiveManager_get_indicestype_0=function(){return(pp=b._emscripten_bind_TrimeshPrimitiveManager_get_indicestype_0=
b.asm.Lm).apply(null,arguments)},qp=b._emscripten_bind_TrimeshPrimitiveManager_set_indicestype_1=function(){return(qp=b._emscripten_bind_TrimeshPrimitiveManager_set_indicestype_1=b.asm.Mm).apply(null,arguments)},rp=b._emscripten_bind_TrimeshPrimitiveManager___destroy___0=function(){return(rp=b._emscripten_bind_TrimeshPrimitiveManager___destroy___0=b.asm.Nm).apply(null,arguments)},sp=b._emscripten_bind_btGImpactMeshShapePart_btGImpactMeshShapePart_2=function(){return(sp=b._emscripten_bind_btGImpactMeshShapePart_btGImpactMeshShapePart_2=
b.asm.Om).apply(null,arguments)},tp=b._emscripten_bind_btGImpactMeshShapePart_getTrimeshPrimitiveManager_0=function(){return(tp=b._emscripten_bind_btGImpactMeshShapePart_getTrimeshPrimitiveManager_0=b.asm.Pm).apply(null,arguments)},up=b._emscripten_bind_btGImpactMeshShapePart_getVertexCount_0=function(){return(up=b._emscripten_bind_btGImpactMeshShapePart_getVertexCount_0=b.asm.Qm).apply(null,arguments)},vp=b._emscripten_bind_btGImpactMeshShapePart_getVertex_2=function(){return(vp=b._emscripten_bind_btGImpactMeshShapePart_getVertex_2=
b.asm.Rm).apply(null,arguments)},wp=b._emscripten_bind_btGImpactMeshShapePart_getPart_0=function(){return(wp=b._emscripten_bind_btGImpactMeshShapePart_getPart_0=b.asm.Sm).apply(null,arguments)},xp=b._emscripten_bind_btGImpactMeshShapePart_setLocalScaling_1=function(){return(xp=b._emscripten_bind_btGImpactMeshShapePart_setLocalScaling_1=b.asm.Tm).apply(null,arguments)},yp=b._emscripten_bind_btGImpactMeshShapePart_getLocalScaling_0=function(){return(yp=b._emscripten_bind_btGImpactMeshShapePart_getLocalScaling_0=
b.asm.Um).apply(null,arguments)},zp=b._emscripten_bind_btGImpactMeshShapePart_updateBound_0=function(){return(zp=b._emscripten_bind_btGImpactMeshShapePart_updateBound_0=b.asm.Vm).apply(null,arguments)},Ap=b._emscripten_bind_btGImpactMeshShapePart_postUpdate_0=function(){return(Ap=b._emscripten_bind_btGImpactMeshShapePart_postUpdate_0=b.asm.Wm).apply(null,arguments)},Bp=b._emscripten_bind_btGImpactMeshShapePart_getShapeType_0=function(){return(Bp=b._emscripten_bind_btGImpactMeshShapePart_getShapeType_0=
b.asm.Xm).apply(null,arguments)},Cp=b._emscripten_bind_btGImpactMeshShapePart_needsRetrieveTriangles_0=function(){return(Cp=b._emscripten_bind_btGImpactMeshShapePart_needsRetrieveTriangles_0=b.asm.Ym).apply(null,arguments)},Dp=b._emscripten_bind_btGImpactMeshShapePart_needsRetrieveTetrahedrons_0=function(){return(Dp=b._emscripten_bind_btGImpactMeshShapePart_needsRetrieveTetrahedrons_0=b.asm.Zm).apply(null,arguments)},Ep=b._emscripten_bind_btGImpactMeshShapePart_getBulletTriangle_2=function(){return(Ep=
b._emscripten_bind_btGImpactMeshShapePart_getBulletTriangle_2=b.asm._m).apply(null,arguments)},Fp=b._emscripten_bind_btGImpactMeshShapePart_getBulletTetrahedron_2=function(){return(Fp=b._emscripten_bind_btGImpactMeshShapePart_getBulletTetrahedron_2=b.asm.$m).apply(null,arguments)},Gp=b._emscripten_bind_btGImpactMeshShapePart___destroy___0=function(){return(Gp=b._emscripten_bind_btGImpactMeshShapePart___destroy___0=b.asm.an).apply(null,arguments)},Hp=b._emscripten_bind_btGImpactMeshShape_btGImpactMeshShape_1=
function(){return(Hp=b._emscripten_bind_btGImpactMeshShape_btGImpactMeshShape_1=b.asm.bn).apply(null,arguments)},Ip=b._emscripten_bind_btGImpactMeshShape_getMeshInterface_0=function(){return(Ip=b._emscripten_bind_btGImpactMeshShape_getMeshInterface_0=b.asm.cn).apply(null,arguments)},Jp=b._emscripten_bind_btGImpactMeshShape_getMeshPartCount_0=function(){return(Jp=b._emscripten_bind_btGImpactMeshShape_getMeshPartCount_0=b.asm.dn).apply(null,arguments)},Kp=b._emscripten_bind_btGImpactMeshShape_getMeshPart_1=
function(){return(Kp=b._emscripten_bind_btGImpactMeshShape_getMeshPart_1=b.asm.en).apply(null,arguments)},Lp=b._emscripten_bind_btGImpactMeshShape_calculateSerializeBufferSize_0=function(){return(Lp=b._emscripten_bind_btGImpactMeshShape_calculateSerializeBufferSize_0=b.asm.fn).apply(null,arguments)},Mp=b._emscripten_bind_btGImpactMeshShape_setLocalScaling_1=function(){return(Mp=b._emscripten_bind_btGImpactMeshShape_setLocalScaling_1=b.asm.gn).apply(null,arguments)},Np=b._emscripten_bind_btGImpactMeshShape_getLocalScaling_0=
function(){return(Np=b._emscripten_bind_btGImpactMeshShape_getLocalScaling_0=b.asm.hn).apply(null,arguments)},Op=b._emscripten_bind_btGImpactMeshShape_updateBound_0=function(){return(Op=b._emscripten_bind_btGImpactMeshShape_updateBound_0=b.asm.jn).apply(null,arguments)},Pp=b._emscripten_bind_btGImpactMeshShape_postUpdate_0=function(){return(Pp=b._emscripten_bind_btGImpactMeshShape_postUpdate_0=b.asm.kn).apply(null,arguments)},Qp=b._emscripten_bind_btGImpactMeshShape_getShapeType_0=function(){return(Qp=
b._emscripten_bind_btGImpactMeshShape_getShapeType_0=b.asm.ln).apply(null,arguments)},Rp=b._emscripten_bind_btGImpactMeshShape_needsRetrieveTriangles_0=function(){return(Rp=b._emscripten_bind_btGImpactMeshShape_needsRetrieveTriangles_0=b.asm.mn).apply(null,arguments)},Sp=b._emscripten_bind_btGImpactMeshShape_needsRetrieveTetrahedrons_0=function(){return(Sp=b._emscripten_bind_btGImpactMeshShape_needsRetrieveTetrahedrons_0=b.asm.nn).apply(null,arguments)},Tp=b._emscripten_bind_btGImpactMeshShape_getBulletTriangle_2=
function(){return(Tp=b._emscripten_bind_btGImpactMeshShape_getBulletTriangle_2=b.asm.on).apply(null,arguments)},Up=b._emscripten_bind_btGImpactMeshShape_getBulletTetrahedron_2=function(){return(Up=b._emscripten_bind_btGImpactMeshShape_getBulletTetrahedron_2=b.asm.pn).apply(null,arguments)},Vp=b._emscripten_bind_btGImpactMeshShape___destroy___0=function(){return(Vp=b._emscripten_bind_btGImpactMeshShape___destroy___0=b.asm.qn).apply(null,arguments)},Wp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_btCollisionAlgorithmConstructionInfo_0=
function(){return(Wp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_btCollisionAlgorithmConstructionInfo_0=b.asm.rn).apply(null,arguments)},Xp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_btCollisionAlgorithmConstructionInfo_2=function(){return(Xp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_btCollisionAlgorithmConstructionInfo_2=b.asm.sn).apply(null,arguments)},Yp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_get_m_dispatcher1_0=function(){return(Yp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_get_m_dispatcher1_0=
b.asm.tn).apply(null,arguments)},Zp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_set_m_dispatcher1_1=function(){return(Zp=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_set_m_dispatcher1_1=b.asm.un).apply(null,arguments)},$p=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_get_m_manifold_0=function(){return($p=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_get_m_manifold_0=b.asm.vn).apply(null,arguments)},aq=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_set_m_manifold_1=
function(){return(aq=b._emscripten_bind_btCollisionAlgorithmConstructionInfo_set_m_manifold_1=b.asm.wn).apply(null,arguments)},bq=b._emscripten_bind_btCollisionAlgorithmConstructionInfo___destroy___0=function(){return(bq=b._emscripten_bind_btCollisionAlgorithmConstructionInfo___destroy___0=b.asm.xn).apply(null,arguments)},cq=b._emscripten_bind_btGImpactCollisionAlgorithm_btGImpactCollisionAlgorithm_3=function(){return(cq=b._emscripten_bind_btGImpactCollisionAlgorithm_btGImpactCollisionAlgorithm_3=
b.asm.yn).apply(null,arguments)},dq=b._emscripten_bind_btGImpactCollisionAlgorithm_registerAlgorithm_1=function(){return(dq=b._emscripten_bind_btGImpactCollisionAlgorithm_registerAlgorithm_1=b.asm.zn).apply(null,arguments)},eq=b._emscripten_bind_btGImpactCollisionAlgorithm___destroy___0=function(){return(eq=b._emscripten_bind_btGImpactCollisionAlgorithm___destroy___0=b.asm.An).apply(null,arguments)},fq=b._emscripten_bind_btDefaultCollisionConstructionInfo_btDefaultCollisionConstructionInfo_0=function(){return(fq=
b._emscripten_bind_btDefaultCollisionConstructionInfo_btDefaultCollisionConstructionInfo_0=b.asm.Bn).apply(null,arguments)},gq=b._emscripten_bind_btDefaultCollisionConstructionInfo___destroy___0=function(){return(gq=b._emscripten_bind_btDefaultCollisionConstructionInfo___destroy___0=b.asm.Cn).apply(null,arguments)},hq=b._emscripten_bind_btPersistentManifold_btPersistentManifold_0=function(){return(hq=b._emscripten_bind_btPersistentManifold_btPersistentManifold_0=b.asm.Dn).apply(null,arguments)},iq=
b._emscripten_bind_btPersistentManifold_getBody0_0=function(){return(iq=b._emscripten_bind_btPersistentManifold_getBody0_0=b.asm.En).apply(null,arguments)},jq=b._emscripten_bind_btPersistentManifold_getBody1_0=function(){return(jq=b._emscripten_bind_btPersistentManifold_getBody1_0=b.asm.Fn).apply(null,arguments)},kq=b._emscripten_bind_btPersistentManifold_getNumContacts_0=function(){return(kq=b._emscripten_bind_btPersistentManifold_getNumContacts_0=b.asm.Gn).apply(null,arguments)},lq=b._emscripten_bind_btPersistentManifold_getContactPoint_1=
function(){return(lq=b._emscripten_bind_btPersistentManifold_getContactPoint_1=b.asm.Hn).apply(null,arguments)},mq=b._emscripten_bind_btPersistentManifold___destroy___0=function(){return(mq=b._emscripten_bind_btPersistentManifold___destroy___0=b.asm.In).apply(null,arguments)},nq=b._emscripten_bind_btCollisionDispatcher_btCollisionDispatcher_1=function(){return(nq=b._emscripten_bind_btCollisionDispatcher_btCollisionDispatcher_1=b.asm.Jn).apply(null,arguments)},oq=b._emscripten_bind_btCollisionDispatcher_getNumManifolds_0=
function(){return(oq=b._emscripten_bind_btCollisionDispatcher_getNumManifolds_0=b.asm.Kn).apply(null,arguments)},pq=b._emscripten_bind_btCollisionDispatcher_getManifoldByIndexInternal_1=function(){return(pq=b._emscripten_bind_btCollisionDispatcher_getManifoldByIndexInternal_1=b.asm.Ln).apply(null,arguments)},qq=b._emscripten_bind_btCollisionDispatcher___destroy___0=function(){return(qq=b._emscripten_bind_btCollisionDispatcher___destroy___0=b.asm.Mn).apply(null,arguments)},rq=b._emscripten_bind_btOverlappingPairCallback___destroy___0=
function(){return(rq=b._emscripten_bind_btOverlappingPairCallback___destroy___0=b.asm.Nn).apply(null,arguments)},sq=b._emscripten_bind_btOverlappingPairCache_setInternalGhostPairCallback_1=function(){return(sq=b._emscripten_bind_btOverlappingPairCache_setInternalGhostPairCallback_1=b.asm.On).apply(null,arguments)},tq=b._emscripten_bind_btOverlappingPairCache_getNumOverlappingPairs_0=function(){return(tq=b._emscripten_bind_btOverlappingPairCache_getNumOverlappingPairs_0=b.asm.Pn).apply(null,arguments)},
uq=b._emscripten_bind_btOverlappingPairCache___destroy___0=function(){return(uq=b._emscripten_bind_btOverlappingPairCache___destroy___0=b.asm.Qn).apply(null,arguments)},vq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_2=function(){return(vq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_2=b.asm.Rn).apply(null,arguments)},wq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_3=function(){return(wq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_3=b.asm.Sn).apply(null,arguments)},xq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_4=
function(){return(xq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_4=b.asm.Tn).apply(null,arguments)},yq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_5=function(){return(yq=b._emscripten_bind_btAxisSweep3_btAxisSweep3_5=b.asm.Un).apply(null,arguments)},zq=b._emscripten_bind_btAxisSweep3___destroy___0=function(){return(zq=b._emscripten_bind_btAxisSweep3___destroy___0=b.asm.Vn).apply(null,arguments)},Aq=b._emscripten_bind_btBroadphaseInterface_getOverlappingPairCache_0=function(){return(Aq=b._emscripten_bind_btBroadphaseInterface_getOverlappingPairCache_0=
b.asm.Wn).apply(null,arguments)},Bq=b._emscripten_bind_btBroadphaseInterface___destroy___0=function(){return(Bq=b._emscripten_bind_btBroadphaseInterface___destroy___0=b.asm.Xn).apply(null,arguments)},Cq=b._emscripten_bind_btCollisionConfiguration___destroy___0=function(){return(Cq=b._emscripten_bind_btCollisionConfiguration___destroy___0=b.asm.Yn).apply(null,arguments)},Dq=b._emscripten_bind_btDbvtBroadphase_btDbvtBroadphase_0=function(){return(Dq=b._emscripten_bind_btDbvtBroadphase_btDbvtBroadphase_0=
b.asm.Zn).apply(null,arguments)},Eq=b._emscripten_bind_btDbvtBroadphase___destroy___0=function(){return(Eq=b._emscripten_bind_btDbvtBroadphase___destroy___0=b.asm._n).apply(null,arguments)},Fq=b._emscripten_bind_btBroadphaseProxy_get_m_collisionFilterGroup_0=function(){return(Fq=b._emscripten_bind_btBroadphaseProxy_get_m_collisionFilterGroup_0=b.asm.$n).apply(null,arguments)},Gq=b._emscripten_bind_btBroadphaseProxy_set_m_collisionFilterGroup_1=function(){return(Gq=b._emscripten_bind_btBroadphaseProxy_set_m_collisionFilterGroup_1=
b.asm.ao).apply(null,arguments)},Hq=b._emscripten_bind_btBroadphaseProxy_get_m_collisionFilterMask_0=function(){return(Hq=b._emscripten_bind_btBroadphaseProxy_get_m_collisionFilterMask_0=b.asm.bo).apply(null,arguments)},Iq=b._emscripten_bind_btBroadphaseProxy_set_m_collisionFilterMask_1=function(){return(Iq=b._emscripten_bind_btBroadphaseProxy_set_m_collisionFilterMask_1=b.asm.co).apply(null,arguments)},Jq=b._emscripten_bind_btBroadphaseProxy___destroy___0=function(){return(Jq=b._emscripten_bind_btBroadphaseProxy___destroy___0=
b.asm.eo).apply(null,arguments)},Kq=b._emscripten_bind_btRigidBodyConstructionInfo_btRigidBodyConstructionInfo_3=function(){return(Kq=b._emscripten_bind_btRigidBodyConstructionInfo_btRigidBodyConstructionInfo_3=b.asm.fo).apply(null,arguments)},Lq=b._emscripten_bind_btRigidBodyConstructionInfo_btRigidBodyConstructionInfo_4=function(){return(Lq=b._emscripten_bind_btRigidBodyConstructionInfo_btRigidBodyConstructionInfo_4=b.asm.go).apply(null,arguments)},Mq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_linearDamping_0=
function(){return(Mq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_linearDamping_0=b.asm.ho).apply(null,arguments)},Nq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_linearDamping_1=function(){return(Nq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_linearDamping_1=b.asm.io).apply(null,arguments)},Oq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_angularDamping_0=function(){return(Oq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_angularDamping_0=b.asm.jo).apply(null,
arguments)},Pq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_angularDamping_1=function(){return(Pq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_angularDamping_1=b.asm.ko).apply(null,arguments)},Qq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_friction_0=function(){return(Qq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_friction_0=b.asm.lo).apply(null,arguments)},Rq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_friction_1=function(){return(Rq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_friction_1=
b.asm.mo).apply(null,arguments)},Sq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_rollingFriction_0=function(){return(Sq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_rollingFriction_0=b.asm.no).apply(null,arguments)},Tq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_rollingFriction_1=function(){return(Tq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_rollingFriction_1=b.asm.oo).apply(null,arguments)},Uq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_restitution_0=
function(){return(Uq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_restitution_0=b.asm.po).apply(null,arguments)},Vq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_restitution_1=function(){return(Vq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_restitution_1=b.asm.qo).apply(null,arguments)},Wq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_linearSleepingThreshold_0=function(){return(Wq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_linearSleepingThreshold_0=b.asm.ro).apply(null,
arguments)},Xq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_linearSleepingThreshold_1=function(){return(Xq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_linearSleepingThreshold_1=b.asm.so).apply(null,arguments)},Yq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_angularSleepingThreshold_0=function(){return(Yq=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_angularSleepingThreshold_0=b.asm.to).apply(null,arguments)},Zq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_angularSleepingThreshold_1=
function(){return(Zq=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_angularSleepingThreshold_1=b.asm.uo).apply(null,arguments)},$q=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalDamping_0=function(){return($q=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalDamping_0=b.asm.vo).apply(null,arguments)},ar=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalDamping_1=function(){return(ar=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalDamping_1=
b.asm.wo).apply(null,arguments)},br=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalDampingFactor_0=function(){return(br=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalDampingFactor_0=b.asm.xo).apply(null,arguments)},cr=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalDampingFactor_1=function(){return(cr=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalDampingFactor_1=b.asm.yo).apply(null,arguments)},dr=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalLinearDampingThresholdSqr_0=
function(){return(dr=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalLinearDampingThresholdSqr_0=b.asm.zo).apply(null,arguments)},er=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalLinearDampingThresholdSqr_1=function(){return(er=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalLinearDampingThresholdSqr_1=b.asm.Ao).apply(null,arguments)},fr=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalAngularDampingThresholdSqr_0=function(){return(fr=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalAngularDampingThresholdSqr_0=
b.asm.Bo).apply(null,arguments)},gr=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalAngularDampingThresholdSqr_1=function(){return(gr=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalAngularDampingThresholdSqr_1=b.asm.Co).apply(null,arguments)},hr=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalAngularDampingFactor_0=function(){return(hr=b._emscripten_bind_btRigidBodyConstructionInfo_get_m_additionalAngularDampingFactor_0=b.asm.Do).apply(null,arguments)},
ir=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalAngularDampingFactor_1=function(){return(ir=b._emscripten_bind_btRigidBodyConstructionInfo_set_m_additionalAngularDampingFactor_1=b.asm.Eo).apply(null,arguments)},jr=b._emscripten_bind_btRigidBodyConstructionInfo___destroy___0=function(){return(jr=b._emscripten_bind_btRigidBodyConstructionInfo___destroy___0=b.asm.Fo).apply(null,arguments)},kr=b._emscripten_bind_btRigidBody_btRigidBody_1=function(){return(kr=b._emscripten_bind_btRigidBody_btRigidBody_1=
b.asm.Go).apply(null,arguments)},lr=b._emscripten_bind_btRigidBody_getCenterOfMassTransform_0=function(){return(lr=b._emscripten_bind_btRigidBody_getCenterOfMassTransform_0=b.asm.Ho).apply(null,arguments)},mr=b._emscripten_bind_btRigidBody_setCenterOfMassTransform_1=function(){return(mr=b._emscripten_bind_btRigidBody_setCenterOfMassTransform_1=b.asm.Io).apply(null,arguments)},nr=b._emscripten_bind_btRigidBody_setSleepingThresholds_2=function(){return(nr=b._emscripten_bind_btRigidBody_setSleepingThresholds_2=
b.asm.Jo).apply(null,arguments)},or=b._emscripten_bind_btRigidBody_getLinearDamping_0=function(){return(or=b._emscripten_bind_btRigidBody_getLinearDamping_0=b.asm.Ko).apply(null,arguments)},pr=b._emscripten_bind_btRigidBody_getAngularDamping_0=function(){return(pr=b._emscripten_bind_btRigidBody_getAngularDamping_0=b.asm.Lo).apply(null,arguments)},qr=b._emscripten_bind_btRigidBody_setDamping_2=function(){return(qr=b._emscripten_bind_btRigidBody_setDamping_2=b.asm.Mo).apply(null,arguments)},rr=b._emscripten_bind_btRigidBody_setMassProps_2=
function(){return(rr=b._emscripten_bind_btRigidBody_setMassProps_2=b.asm.No).apply(null,arguments)},sr=b._emscripten_bind_btRigidBody_getLinearFactor_0=function(){return(sr=b._emscripten_bind_btRigidBody_getLinearFactor_0=b.asm.Oo).apply(null,arguments)},tr=b._emscripten_bind_btRigidBody_setLinearFactor_1=function(){return(tr=b._emscripten_bind_btRigidBody_setLinearFactor_1=b.asm.Po).apply(null,arguments)},ur=b._emscripten_bind_btRigidBody_applyTorque_1=function(){return(ur=b._emscripten_bind_btRigidBody_applyTorque_1=
b.asm.Qo).apply(null,arguments)},vr=b._emscripten_bind_btRigidBody_applyLocalTorque_1=function(){return(vr=b._emscripten_bind_btRigidBody_applyLocalTorque_1=b.asm.Ro).apply(null,arguments)},wr=b._emscripten_bind_btRigidBody_applyForce_2=function(){return(wr=b._emscripten_bind_btRigidBody_applyForce_2=b.asm.So).apply(null,arguments)},xr=b._emscripten_bind_btRigidBody_applyCentralForce_1=function(){return(xr=b._emscripten_bind_btRigidBody_applyCentralForce_1=b.asm.To).apply(null,arguments)},yr=b._emscripten_bind_btRigidBody_applyCentralLocalForce_1=
function(){return(yr=b._emscripten_bind_btRigidBody_applyCentralLocalForce_1=b.asm.Uo).apply(null,arguments)},zr=b._emscripten_bind_btRigidBody_applyTorqueImpulse_1=function(){return(zr=b._emscripten_bind_btRigidBody_applyTorqueImpulse_1=b.asm.Vo).apply(null,arguments)},Ar=b._emscripten_bind_btRigidBody_applyImpulse_2=function(){return(Ar=b._emscripten_bind_btRigidBody_applyImpulse_2=b.asm.Wo).apply(null,arguments)},Br=b._emscripten_bind_btRigidBody_applyCentralImpulse_1=function(){return(Br=b._emscripten_bind_btRigidBody_applyCentralImpulse_1=
b.asm.Xo).apply(null,arguments)},Cr=b._emscripten_bind_btRigidBody_updateInertiaTensor_0=function(){return(Cr=b._emscripten_bind_btRigidBody_updateInertiaTensor_0=b.asm.Yo).apply(null,arguments)},Dr=b._emscripten_bind_btRigidBody_getLinearVelocity_0=function(){return(Dr=b._emscripten_bind_btRigidBody_getLinearVelocity_0=b.asm.Zo).apply(null,arguments)},Er=b._emscripten_bind_btRigidBody_getAngularVelocity_0=function(){return(Er=b._emscripten_bind_btRigidBody_getAngularVelocity_0=b.asm._o).apply(null,
arguments)},Fr=b._emscripten_bind_btRigidBody_setLinearVelocity_1=function(){return(Fr=b._emscripten_bind_btRigidBody_setLinearVelocity_1=b.asm.$o).apply(null,arguments)},Gr=b._emscripten_bind_btRigidBody_setAngularVelocity_1=function(){return(Gr=b._emscripten_bind_btRigidBody_setAngularVelocity_1=b.asm.ap).apply(null,arguments)},Hr=b._emscripten_bind_btRigidBody_getMotionState_0=function(){return(Hr=b._emscripten_bind_btRigidBody_getMotionState_0=b.asm.bp).apply(null,arguments)},Ir=b._emscripten_bind_btRigidBody_setMotionState_1=
function(){return(Ir=b._emscripten_bind_btRigidBody_setMotionState_1=b.asm.cp).apply(null,arguments)},Jr=b._emscripten_bind_btRigidBody_getAngularFactor_0=function(){return(Jr=b._emscripten_bind_btRigidBody_getAngularFactor_0=b.asm.dp).apply(null,arguments)},Kr=b._emscripten_bind_btRigidBody_setAngularFactor_1=function(){return(Kr=b._emscripten_bind_btRigidBody_setAngularFactor_1=b.asm.ep).apply(null,arguments)},Lr=b._emscripten_bind_btRigidBody_upcast_1=function(){return(Lr=b._emscripten_bind_btRigidBody_upcast_1=
b.asm.fp).apply(null,arguments)},Mr=b._emscripten_bind_btRigidBody_getAabb_2=function(){return(Mr=b._emscripten_bind_btRigidBody_getAabb_2=b.asm.gp).apply(null,arguments)},Nr=b._emscripten_bind_btRigidBody_applyGravity_0=function(){return(Nr=b._emscripten_bind_btRigidBody_applyGravity_0=b.asm.hp).apply(null,arguments)},Or=b._emscripten_bind_btRigidBody_getGravity_0=function(){return(Or=b._emscripten_bind_btRigidBody_getGravity_0=b.asm.ip).apply(null,arguments)},Pr=b._emscripten_bind_btRigidBody_setGravity_1=
function(){return(Pr=b._emscripten_bind_btRigidBody_setGravity_1=b.asm.jp).apply(null,arguments)},Qr=b._emscripten_bind_btRigidBody_getBroadphaseProxy_0=function(){return(Qr=b._emscripten_bind_btRigidBody_getBroadphaseProxy_0=b.asm.kp).apply(null,arguments)},Rr=b._emscripten_bind_btRigidBody_clearForces_0=function(){return(Rr=b._emscripten_bind_btRigidBody_clearForces_0=b.asm.lp).apply(null,arguments)},Sr=b._emscripten_bind_btRigidBody_setAnisotropicFriction_2=function(){return(Sr=b._emscripten_bind_btRigidBody_setAnisotropicFriction_2=
b.asm.mp).apply(null,arguments)},Tr=b._emscripten_bind_btRigidBody_getCollisionShape_0=function(){return(Tr=b._emscripten_bind_btRigidBody_getCollisionShape_0=b.asm.np).apply(null,arguments)},Ur=b._emscripten_bind_btRigidBody_setContactProcessingThreshold_1=function(){return(Ur=b._emscripten_bind_btRigidBody_setContactProcessingThreshold_1=b.asm.op).apply(null,arguments)},Vr=b._emscripten_bind_btRigidBody_setActivationState_1=function(){return(Vr=b._emscripten_bind_btRigidBody_setActivationState_1=
b.asm.pp).apply(null,arguments)},Wr=b._emscripten_bind_btRigidBody_forceActivationState_1=function(){return(Wr=b._emscripten_bind_btRigidBody_forceActivationState_1=b.asm.qp).apply(null,arguments)},Xr=b._emscripten_bind_btRigidBody_activate_0=function(){return(Xr=b._emscripten_bind_btRigidBody_activate_0=b.asm.rp).apply(null,arguments)},Yr=b._emscripten_bind_btRigidBody_activate_1=function(){return(Yr=b._emscripten_bind_btRigidBody_activate_1=b.asm.sp).apply(null,arguments)},Zr=b._emscripten_bind_btRigidBody_isActive_0=
function(){return(Zr=b._emscripten_bind_btRigidBody_isActive_0=b.asm.tp).apply(null,arguments)},$r=b._emscripten_bind_btRigidBody_isKinematicObject_0=function(){return($r=b._emscripten_bind_btRigidBody_isKinematicObject_0=b.asm.up).apply(null,arguments)},as=b._emscripten_bind_btRigidBody_isStaticObject_0=function(){return(as=b._emscripten_bind_btRigidBody_isStaticObject_0=b.asm.vp).apply(null,arguments)},bs=b._emscripten_bind_btRigidBody_isStaticOrKinematicObject_0=function(){return(bs=b._emscripten_bind_btRigidBody_isStaticOrKinematicObject_0=
b.asm.wp).apply(null,arguments)},cs=b._emscripten_bind_btRigidBody_getRestitution_0=function(){return(cs=b._emscripten_bind_btRigidBody_getRestitution_0=b.asm.xp).apply(null,arguments)},ds=b._emscripten_bind_btRigidBody_getFriction_0=function(){return(ds=b._emscripten_bind_btRigidBody_getFriction_0=b.asm.yp).apply(null,arguments)},es=b._emscripten_bind_btRigidBody_getRollingFriction_0=function(){return(es=b._emscripten_bind_btRigidBody_getRollingFriction_0=b.asm.zp).apply(null,arguments)},gs=b._emscripten_bind_btRigidBody_setRestitution_1=
function(){return(gs=b._emscripten_bind_btRigidBody_setRestitution_1=b.asm.Ap).apply(null,arguments)},hs=b._emscripten_bind_btRigidBody_setFriction_1=function(){return(hs=b._emscripten_bind_btRigidBody_setFriction_1=b.asm.Bp).apply(null,arguments)},is=b._emscripten_bind_btRigidBody_setRollingFriction_1=function(){return(is=b._emscripten_bind_btRigidBody_setRollingFriction_1=b.asm.Cp).apply(null,arguments)},js=b._emscripten_bind_btRigidBody_getWorldTransform_0=function(){return(js=b._emscripten_bind_btRigidBody_getWorldTransform_0=
b.asm.Dp).apply(null,arguments)},ks=b._emscripten_bind_btRigidBody_getCollisionFlags_0=function(){return(ks=b._emscripten_bind_btRigidBody_getCollisionFlags_0=b.asm.Ep).apply(null,arguments)},ls=b._emscripten_bind_btRigidBody_setCollisionFlags_1=function(){return(ls=b._emscripten_bind_btRigidBody_setCollisionFlags_1=b.asm.Fp).apply(null,arguments)},ms=b._emscripten_bind_btRigidBody_setWorldTransform_1=function(){return(ms=b._emscripten_bind_btRigidBody_setWorldTransform_1=b.asm.Gp).apply(null,arguments)},
ns=b._emscripten_bind_btRigidBody_setCollisionShape_1=function(){return(ns=b._emscripten_bind_btRigidBody_setCollisionShape_1=b.asm.Hp).apply(null,arguments)},ps=b._emscripten_bind_btRigidBody_setCcdMotionThreshold_1=function(){return(ps=b._emscripten_bind_btRigidBody_setCcdMotionThreshold_1=b.asm.Ip).apply(null,arguments)},qs=b._emscripten_bind_btRigidBody_setCcdSweptSphereRadius_1=function(){return(qs=b._emscripten_bind_btRigidBody_setCcdSweptSphereRadius_1=b.asm.Jp).apply(null,arguments)},rs=b._emscripten_bind_btRigidBody_getUserIndex_0=
function(){return(rs=b._emscripten_bind_btRigidBody_getUserIndex_0=b.asm.Kp).apply(null,arguments)},ss=b._emscripten_bind_btRigidBody_setUserIndex_1=function(){return(ss=b._emscripten_bind_btRigidBody_setUserIndex_1=b.asm.Lp).apply(null,arguments)},ts=b._emscripten_bind_btRigidBody_getUserPointer_0=function(){return(ts=b._emscripten_bind_btRigidBody_getUserPointer_0=b.asm.Mp).apply(null,arguments)},us=b._emscripten_bind_btRigidBody_setUserPointer_1=function(){return(us=b._emscripten_bind_btRigidBody_setUserPointer_1=
b.asm.Np).apply(null,arguments)},vs=b._emscripten_bind_btRigidBody_getBroadphaseHandle_0=function(){return(vs=b._emscripten_bind_btRigidBody_getBroadphaseHandle_0=b.asm.Op).apply(null,arguments)},xs=b._emscripten_bind_btRigidBody___destroy___0=function(){return(xs=b._emscripten_bind_btRigidBody___destroy___0=b.asm.Pp).apply(null,arguments)},ys=b._emscripten_bind_btConstraintSetting_btConstraintSetting_0=function(){return(ys=b._emscripten_bind_btConstraintSetting_btConstraintSetting_0=b.asm.Qp).apply(null,
arguments)},zs=b._emscripten_bind_btConstraintSetting_get_m_tau_0=function(){return(zs=b._emscripten_bind_btConstraintSetting_get_m_tau_0=b.asm.Rp).apply(null,arguments)},As=b._emscripten_bind_btConstraintSetting_set_m_tau_1=function(){return(As=b._emscripten_bind_btConstraintSetting_set_m_tau_1=b.asm.Sp).apply(null,arguments)},Bs=b._emscripten_bind_btConstraintSetting_get_m_damping_0=function(){return(Bs=b._emscripten_bind_btConstraintSetting_get_m_damping_0=b.asm.Tp).apply(null,arguments)},Cs=b._emscripten_bind_btConstraintSetting_set_m_damping_1=
function(){return(Cs=b._emscripten_bind_btConstraintSetting_set_m_damping_1=b.asm.Up).apply(null,arguments)},Ds=b._emscripten_bind_btConstraintSetting_get_m_impulseClamp_0=function(){return(Ds=b._emscripten_bind_btConstraintSetting_get_m_impulseClamp_0=b.asm.Vp).apply(null,arguments)},Es=b._emscripten_bind_btConstraintSetting_set_m_impulseClamp_1=function(){return(Es=b._emscripten_bind_btConstraintSetting_set_m_impulseClamp_1=b.asm.Wp).apply(null,arguments)},Fs=b._emscripten_bind_btConstraintSetting___destroy___0=
function(){return(Fs=b._emscripten_bind_btConstraintSetting___destroy___0=b.asm.Xp).apply(null,arguments)},Gs=b._emscripten_bind_btPoint2PointConstraint_btPoint2PointConstraint_2=function(){return(Gs=b._emscripten_bind_btPoint2PointConstraint_btPoint2PointConstraint_2=b.asm.Yp).apply(null,arguments)},Hs=b._emscripten_bind_btPoint2PointConstraint_btPoint2PointConstraint_4=function(){return(Hs=b._emscripten_bind_btPoint2PointConstraint_btPoint2PointConstraint_4=b.asm.Zp).apply(null,arguments)},Is=b._emscripten_bind_btPoint2PointConstraint_setPivotA_1=
function(){return(Is=b._emscripten_bind_btPoint2PointConstraint_setPivotA_1=b.asm._p).apply(null,arguments)},Js=b._emscripten_bind_btPoint2PointConstraint_setPivotB_1=function(){return(Js=b._emscripten_bind_btPoint2PointConstraint_setPivotB_1=b.asm.$p).apply(null,arguments)},Ks=b._emscripten_bind_btPoint2PointConstraint_getPivotInA_0=function(){return(Ks=b._emscripten_bind_btPoint2PointConstraint_getPivotInA_0=b.asm.aq).apply(null,arguments)},Ls=b._emscripten_bind_btPoint2PointConstraint_getPivotInB_0=
function(){return(Ls=b._emscripten_bind_btPoint2PointConstraint_getPivotInB_0=b.asm.bq).apply(null,arguments)},Ms=b._emscripten_bind_btPoint2PointConstraint_enableFeedback_1=function(){return(Ms=b._emscripten_bind_btPoint2PointConstraint_enableFeedback_1=b.asm.cq).apply(null,arguments)},Ns=b._emscripten_bind_btPoint2PointConstraint_getBreakingImpulseThreshold_0=function(){return(Ns=b._emscripten_bind_btPoint2PointConstraint_getBreakingImpulseThreshold_0=b.asm.dq).apply(null,arguments)},Os=b._emscripten_bind_btPoint2PointConstraint_setBreakingImpulseThreshold_1=
function(){return(Os=b._emscripten_bind_btPoint2PointConstraint_setBreakingImpulseThreshold_1=b.asm.eq).apply(null,arguments)},Ps=b._emscripten_bind_btPoint2PointConstraint_getParam_2=function(){return(Ps=b._emscripten_bind_btPoint2PointConstraint_getParam_2=b.asm.fq).apply(null,arguments)},Qs=b._emscripten_bind_btPoint2PointConstraint_setParam_3=function(){return(Qs=b._emscripten_bind_btPoint2PointConstraint_setParam_3=b.asm.gq).apply(null,arguments)},Rs=b._emscripten_bind_btPoint2PointConstraint_get_m_setting_0=
function(){return(Rs=b._emscripten_bind_btPoint2PointConstraint_get_m_setting_0=b.asm.hq).apply(null,arguments)},Ss=b._emscripten_bind_btPoint2PointConstraint_set_m_setting_1=function(){return(Ss=b._emscripten_bind_btPoint2PointConstraint_set_m_setting_1=b.asm.iq).apply(null,arguments)},Ts=b._emscripten_bind_btPoint2PointConstraint___destroy___0=function(){return(Ts=b._emscripten_bind_btPoint2PointConstraint___destroy___0=b.asm.jq).apply(null,arguments)},Us=b._emscripten_bind_btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_3=
function(){return(Us=b._emscripten_bind_btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_3=b.asm.kq).apply(null,arguments)},Vs=b._emscripten_bind_btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_5=function(){return(Vs=b._emscripten_bind_btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_5=b.asm.lq).apply(null,arguments)},Ws=b._emscripten_bind_btGeneric6DofSpringConstraint_enableSpring_2=function(){return(Ws=b._emscripten_bind_btGeneric6DofSpringConstraint_enableSpring_2=
b.asm.mq).apply(null,arguments)},Xs=b._emscripten_bind_btGeneric6DofSpringConstraint_setStiffness_2=function(){return(Xs=b._emscripten_bind_btGeneric6DofSpringConstraint_setStiffness_2=b.asm.nq).apply(null,arguments)},Ys=b._emscripten_bind_btGeneric6DofSpringConstraint_setDamping_2=function(){return(Ys=b._emscripten_bind_btGeneric6DofSpringConstraint_setDamping_2=b.asm.oq).apply(null,arguments)},Zs=b._emscripten_bind_btGeneric6DofSpringConstraint_setEquilibriumPoint_0=function(){return(Zs=b._emscripten_bind_btGeneric6DofSpringConstraint_setEquilibriumPoint_0=
b.asm.pq).apply(null,arguments)},$s=b._emscripten_bind_btGeneric6DofSpringConstraint_setEquilibriumPoint_1=function(){return($s=b._emscripten_bind_btGeneric6DofSpringConstraint_setEquilibriumPoint_1=b.asm.qq).apply(null,arguments)},at=b._emscripten_bind_btGeneric6DofSpringConstraint_setEquilibriumPoint_2=function(){return(at=b._emscripten_bind_btGeneric6DofSpringConstraint_setEquilibriumPoint_2=b.asm.rq).apply(null,arguments)},bt=b._emscripten_bind_btGeneric6DofSpringConstraint_setLinearLowerLimit_1=
function(){return(bt=b._emscripten_bind_btGeneric6DofSpringConstraint_setLinearLowerLimit_1=b.asm.sq).apply(null,arguments)},ct=b._emscripten_bind_btGeneric6DofSpringConstraint_setLinearUpperLimit_1=function(){return(ct=b._emscripten_bind_btGeneric6DofSpringConstraint_setLinearUpperLimit_1=b.asm.tq).apply(null,arguments)},dt=b._emscripten_bind_btGeneric6DofSpringConstraint_setAngularLowerLimit_1=function(){return(dt=b._emscripten_bind_btGeneric6DofSpringConstraint_setAngularLowerLimit_1=b.asm.uq).apply(null,
arguments)},et=b._emscripten_bind_btGeneric6DofSpringConstraint_setAngularUpperLimit_1=function(){return(et=b._emscripten_bind_btGeneric6DofSpringConstraint_setAngularUpperLimit_1=b.asm.vq).apply(null,arguments)},ft=b._emscripten_bind_btGeneric6DofSpringConstraint_getFrameOffsetA_0=function(){return(ft=b._emscripten_bind_btGeneric6DofSpringConstraint_getFrameOffsetA_0=b.asm.wq).apply(null,arguments)},gt=b._emscripten_bind_btGeneric6DofSpringConstraint_enableFeedback_1=function(){return(gt=b._emscripten_bind_btGeneric6DofSpringConstraint_enableFeedback_1=
b.asm.xq).apply(null,arguments)},ht=b._emscripten_bind_btGeneric6DofSpringConstraint_getBreakingImpulseThreshold_0=function(){return(ht=b._emscripten_bind_btGeneric6DofSpringConstraint_getBreakingImpulseThreshold_0=b.asm.yq).apply(null,arguments)},it=b._emscripten_bind_btGeneric6DofSpringConstraint_setBreakingImpulseThreshold_1=function(){return(it=b._emscripten_bind_btGeneric6DofSpringConstraint_setBreakingImpulseThreshold_1=b.asm.zq).apply(null,arguments)},jt=b._emscripten_bind_btGeneric6DofSpringConstraint_getParam_2=
function(){return(jt=b._emscripten_bind_btGeneric6DofSpringConstraint_getParam_2=b.asm.Aq).apply(null,arguments)},kt=b._emscripten_bind_btGeneric6DofSpringConstraint_setParam_3=function(){return(kt=b._emscripten_bind_btGeneric6DofSpringConstraint_setParam_3=b.asm.Bq).apply(null,arguments)},lt=b._emscripten_bind_btGeneric6DofSpringConstraint___destroy___0=function(){return(lt=b._emscripten_bind_btGeneric6DofSpringConstraint___destroy___0=b.asm.Cq).apply(null,arguments)},mt=b._emscripten_bind_btSequentialImpulseConstraintSolver_btSequentialImpulseConstraintSolver_0=
function(){return(mt=b._emscripten_bind_btSequentialImpulseConstraintSolver_btSequentialImpulseConstraintSolver_0=b.asm.Dq).apply(null,arguments)},nt=b._emscripten_bind_btSequentialImpulseConstraintSolver___destroy___0=function(){return(nt=b._emscripten_bind_btSequentialImpulseConstraintSolver___destroy___0=b.asm.Eq).apply(null,arguments)},ot=b._emscripten_bind_btConeTwistConstraint_btConeTwistConstraint_2=function(){return(ot=b._emscripten_bind_btConeTwistConstraint_btConeTwistConstraint_2=b.asm.Fq).apply(null,
arguments)},pt=b._emscripten_bind_btConeTwistConstraint_btConeTwistConstraint_4=function(){return(pt=b._emscripten_bind_btConeTwistConstraint_btConeTwistConstraint_4=b.asm.Gq).apply(null,arguments)},qt=b._emscripten_bind_btConeTwistConstraint_setLimit_2=function(){return(qt=b._emscripten_bind_btConeTwistConstraint_setLimit_2=b.asm.Hq).apply(null,arguments)},rt=b._emscripten_bind_btConeTwistConstraint_setAngularOnly_1=function(){return(rt=b._emscripten_bind_btConeTwistConstraint_setAngularOnly_1=b.asm.Iq).apply(null,
arguments)},st=b._emscripten_bind_btConeTwistConstraint_setDamping_1=function(){return(st=b._emscripten_bind_btConeTwistConstraint_setDamping_1=b.asm.Jq).apply(null,arguments)},tt=b._emscripten_bind_btConeTwistConstraint_enableMotor_1=function(){return(tt=b._emscripten_bind_btConeTwistConstraint_enableMotor_1=b.asm.Kq).apply(null,arguments)},ut=b._emscripten_bind_btConeTwistConstraint_setMaxMotorImpulse_1=function(){return(ut=b._emscripten_bind_btConeTwistConstraint_setMaxMotorImpulse_1=b.asm.Lq).apply(null,
arguments)},vt=b._emscripten_bind_btConeTwistConstraint_setMaxMotorImpulseNormalized_1=function(){return(vt=b._emscripten_bind_btConeTwistConstraint_setMaxMotorImpulseNormalized_1=b.asm.Mq).apply(null,arguments)},wt=b._emscripten_bind_btConeTwistConstraint_setMotorTarget_1=function(){return(wt=b._emscripten_bind_btConeTwistConstraint_setMotorTarget_1=b.asm.Nq).apply(null,arguments)},xt=b._emscripten_bind_btConeTwistConstraint_setMotorTargetInConstraintSpace_1=function(){return(xt=b._emscripten_bind_btConeTwistConstraint_setMotorTargetInConstraintSpace_1=
b.asm.Oq).apply(null,arguments)},yt=b._emscripten_bind_btConeTwistConstraint_enableFeedback_1=function(){return(yt=b._emscripten_bind_btConeTwistConstraint_enableFeedback_1=b.asm.Pq).apply(null,arguments)},zt=b._emscripten_bind_btConeTwistConstraint_getBreakingImpulseThreshold_0=function(){return(zt=b._emscripten_bind_btConeTwistConstraint_getBreakingImpulseThreshold_0=b.asm.Qq).apply(null,arguments)},At=b._emscripten_bind_btConeTwistConstraint_setBreakingImpulseThreshold_1=function(){return(At=b._emscripten_bind_btConeTwistConstraint_setBreakingImpulseThreshold_1=
b.asm.Rq).apply(null,arguments)},Bt=b._emscripten_bind_btConeTwistConstraint_getParam_2=function(){return(Bt=b._emscripten_bind_btConeTwistConstraint_getParam_2=b.asm.Sq).apply(null,arguments)},Ct=b._emscripten_bind_btConeTwistConstraint_setParam_3=function(){return(Ct=b._emscripten_bind_btConeTwistConstraint_setParam_3=b.asm.Tq).apply(null,arguments)},Dt=b._emscripten_bind_btConeTwistConstraint___destroy___0=function(){return(Dt=b._emscripten_bind_btConeTwistConstraint___destroy___0=b.asm.Uq).apply(null,
arguments)},Et=b._emscripten_bind_btHingeConstraint_btHingeConstraint_2=function(){return(Et=b._emscripten_bind_btHingeConstraint_btHingeConstraint_2=b.asm.Vq).apply(null,arguments)},Ft=b._emscripten_bind_btHingeConstraint_btHingeConstraint_3=function(){return(Ft=b._emscripten_bind_btHingeConstraint_btHingeConstraint_3=b.asm.Wq).apply(null,arguments)},Gt=b._emscripten_bind_btHingeConstraint_btHingeConstraint_4=function(){return(Gt=b._emscripten_bind_btHingeConstraint_btHingeConstraint_4=b.asm.Xq).apply(null,
arguments)},Ht=b._emscripten_bind_btHingeConstraint_btHingeConstraint_5=function(){return(Ht=b._emscripten_bind_btHingeConstraint_btHingeConstraint_5=b.asm.Yq).apply(null,arguments)},It=b._emscripten_bind_btHingeConstraint_btHingeConstraint_6=function(){return(It=b._emscripten_bind_btHingeConstraint_btHingeConstraint_6=b.asm.Zq).apply(null,arguments)},Jt=b._emscripten_bind_btHingeConstraint_btHingeConstraint_7=function(){return(Jt=b._emscripten_bind_btHingeConstraint_btHingeConstraint_7=b.asm._q).apply(null,
arguments)},Kt=b._emscripten_bind_btHingeConstraint_getHingeAngle_0=function(){return(Kt=b._emscripten_bind_btHingeConstraint_getHingeAngle_0=b.asm.$q).apply(null,arguments)},Lt=b._emscripten_bind_btHingeConstraint_setLimit_4=function(){return(Lt=b._emscripten_bind_btHingeConstraint_setLimit_4=b.asm.ar).apply(null,arguments)},Mt=b._emscripten_bind_btHingeConstraint_setLimit_5=function(){return(Mt=b._emscripten_bind_btHingeConstraint_setLimit_5=b.asm.br).apply(null,arguments)},Nt=b._emscripten_bind_btHingeConstraint_enableAngularMotor_3=
function(){return(Nt=b._emscripten_bind_btHingeConstraint_enableAngularMotor_3=b.asm.cr).apply(null,arguments)},Ot=b._emscripten_bind_btHingeConstraint_setAngularOnly_1=function(){return(Ot=b._emscripten_bind_btHingeConstraint_setAngularOnly_1=b.asm.dr).apply(null,arguments)},Pt=b._emscripten_bind_btHingeConstraint_enableMotor_1=function(){return(Pt=b._emscripten_bind_btHingeConstraint_enableMotor_1=b.asm.er).apply(null,arguments)},Qt=b._emscripten_bind_btHingeConstraint_setMaxMotorImpulse_1=function(){return(Qt=
b._emscripten_bind_btHingeConstraint_setMaxMotorImpulse_1=b.asm.fr).apply(null,arguments)},Rt=b._emscripten_bind_btHingeConstraint_setMotorTarget_2=function(){return(Rt=b._emscripten_bind_btHingeConstraint_setMotorTarget_2=b.asm.gr).apply(null,arguments)},St=b._emscripten_bind_btHingeConstraint_enableFeedback_1=function(){return(St=b._emscripten_bind_btHingeConstraint_enableFeedback_1=b.asm.hr).apply(null,arguments)},Tt=b._emscripten_bind_btHingeConstraint_getBreakingImpulseThreshold_0=function(){return(Tt=
b._emscripten_bind_btHingeConstraint_getBreakingImpulseThreshold_0=b.asm.ir).apply(null,arguments)},Ut=b._emscripten_bind_btHingeConstraint_setBreakingImpulseThreshold_1=function(){return(Ut=b._emscripten_bind_btHingeConstraint_setBreakingImpulseThreshold_1=b.asm.jr).apply(null,arguments)},Vt=b._emscripten_bind_btHingeConstraint_getParam_2=function(){return(Vt=b._emscripten_bind_btHingeConstraint_getParam_2=b.asm.kr).apply(null,arguments)},Wt=b._emscripten_bind_btHingeConstraint_setParam_3=function(){return(Wt=
b._emscripten_bind_btHingeConstraint_setParam_3=b.asm.lr).apply(null,arguments)},Xt=b._emscripten_bind_btHingeConstraint___destroy___0=function(){return(Xt=b._emscripten_bind_btHingeConstraint___destroy___0=b.asm.mr).apply(null,arguments)},Yt=b._emscripten_bind_btSliderConstraint_btSliderConstraint_3=function(){return(Yt=b._emscripten_bind_btSliderConstraint_btSliderConstraint_3=b.asm.nr).apply(null,arguments)},Zt=b._emscripten_bind_btSliderConstraint_btSliderConstraint_5=function(){return(Zt=b._emscripten_bind_btSliderConstraint_btSliderConstraint_5=
b.asm.or).apply(null,arguments)},$t=b._emscripten_bind_btSliderConstraint_getLinearPos_0=function(){return($t=b._emscripten_bind_btSliderConstraint_getLinearPos_0=b.asm.pr).apply(null,arguments)},au=b._emscripten_bind_btSliderConstraint_getAngularPos_0=function(){return(au=b._emscripten_bind_btSliderConstraint_getAngularPos_0=b.asm.qr).apply(null,arguments)},bu=b._emscripten_bind_btSliderConstraint_setLowerLinLimit_1=function(){return(bu=b._emscripten_bind_btSliderConstraint_setLowerLinLimit_1=b.asm.rr).apply(null,
arguments)},cu=b._emscripten_bind_btSliderConstraint_setUpperLinLimit_1=function(){return(cu=b._emscripten_bind_btSliderConstraint_setUpperLinLimit_1=b.asm.sr).apply(null,arguments)},du=b._emscripten_bind_btSliderConstraint_setLowerAngLimit_1=function(){return(du=b._emscripten_bind_btSliderConstraint_setLowerAngLimit_1=b.asm.tr).apply(null,arguments)},eu=b._emscripten_bind_btSliderConstraint_setUpperAngLimit_1=function(){return(eu=b._emscripten_bind_btSliderConstraint_setUpperAngLimit_1=b.asm.ur).apply(null,
arguments)},fu=b._emscripten_bind_btSliderConstraint_setPoweredLinMotor_1=function(){return(fu=b._emscripten_bind_btSliderConstraint_setPoweredLinMotor_1=b.asm.vr).apply(null,arguments)},gu=b._emscripten_bind_btSliderConstraint_setMaxLinMotorForce_1=function(){return(gu=b._emscripten_bind_btSliderConstraint_setMaxLinMotorForce_1=b.asm.wr).apply(null,arguments)},hu=b._emscripten_bind_btSliderConstraint_setTargetLinMotorVelocity_1=function(){return(hu=b._emscripten_bind_btSliderConstraint_setTargetLinMotorVelocity_1=
b.asm.xr).apply(null,arguments)},iu=b._emscripten_bind_btSliderConstraint_enableFeedback_1=function(){return(iu=b._emscripten_bind_btSliderConstraint_enableFeedback_1=b.asm.yr).apply(null,arguments)},ju=b._emscripten_bind_btSliderConstraint_getBreakingImpulseThreshold_0=function(){return(ju=b._emscripten_bind_btSliderConstraint_getBreakingImpulseThreshold_0=b.asm.zr).apply(null,arguments)},ku=b._emscripten_bind_btSliderConstraint_setBreakingImpulseThreshold_1=function(){return(ku=b._emscripten_bind_btSliderConstraint_setBreakingImpulseThreshold_1=
b.asm.Ar).apply(null,arguments)},lu=b._emscripten_bind_btSliderConstraint_getParam_2=function(){return(lu=b._emscripten_bind_btSliderConstraint_getParam_2=b.asm.Br).apply(null,arguments)},mu=b._emscripten_bind_btSliderConstraint_setParam_3=function(){return(mu=b._emscripten_bind_btSliderConstraint_setParam_3=b.asm.Cr).apply(null,arguments)},nu=b._emscripten_bind_btSliderConstraint___destroy___0=function(){return(nu=b._emscripten_bind_btSliderConstraint___destroy___0=b.asm.Dr).apply(null,arguments)},
ou=b._emscripten_bind_btFixedConstraint_btFixedConstraint_4=function(){return(ou=b._emscripten_bind_btFixedConstraint_btFixedConstraint_4=b.asm.Er).apply(null,arguments)},pu=b._emscripten_bind_btFixedConstraint_enableFeedback_1=function(){return(pu=b._emscripten_bind_btFixedConstraint_enableFeedback_1=b.asm.Fr).apply(null,arguments)},qu=b._emscripten_bind_btFixedConstraint_getBreakingImpulseThreshold_0=function(){return(qu=b._emscripten_bind_btFixedConstraint_getBreakingImpulseThreshold_0=b.asm.Gr).apply(null,
arguments)},ru=b._emscripten_bind_btFixedConstraint_setBreakingImpulseThreshold_1=function(){return(ru=b._emscripten_bind_btFixedConstraint_setBreakingImpulseThreshold_1=b.asm.Hr).apply(null,arguments)},su=b._emscripten_bind_btFixedConstraint_getParam_2=function(){return(su=b._emscripten_bind_btFixedConstraint_getParam_2=b.asm.Ir).apply(null,arguments)},tu=b._emscripten_bind_btFixedConstraint_setParam_3=function(){return(tu=b._emscripten_bind_btFixedConstraint_setParam_3=b.asm.Jr).apply(null,arguments)},
uu=b._emscripten_bind_btFixedConstraint___destroy___0=function(){return(uu=b._emscripten_bind_btFixedConstraint___destroy___0=b.asm.Kr).apply(null,arguments)},vu=b._emscripten_bind_btConstraintSolver___destroy___0=function(){return(vu=b._emscripten_bind_btConstraintSolver___destroy___0=b.asm.Lr).apply(null,arguments)},wu=b._emscripten_bind_btDispatcherInfo_get_m_timeStep_0=function(){return(wu=b._emscripten_bind_btDispatcherInfo_get_m_timeStep_0=b.asm.Mr).apply(null,arguments)},xu=b._emscripten_bind_btDispatcherInfo_set_m_timeStep_1=
function(){return(xu=b._emscripten_bind_btDispatcherInfo_set_m_timeStep_1=b.asm.Nr).apply(null,arguments)},yu=b._emscripten_bind_btDispatcherInfo_get_m_stepCount_0=function(){return(yu=b._emscripten_bind_btDispatcherInfo_get_m_stepCount_0=b.asm.Or).apply(null,arguments)},zu=b._emscripten_bind_btDispatcherInfo_set_m_stepCount_1=function(){return(zu=b._emscripten_bind_btDispatcherInfo_set_m_stepCount_1=b.asm.Pr).apply(null,arguments)},Au=b._emscripten_bind_btDispatcherInfo_get_m_dispatchFunc_0=function(){return(Au=
b._emscripten_bind_btDispatcherInfo_get_m_dispatchFunc_0=b.asm.Qr).apply(null,arguments)},Bu=b._emscripten_bind_btDispatcherInfo_set_m_dispatchFunc_1=function(){return(Bu=b._emscripten_bind_btDispatcherInfo_set_m_dispatchFunc_1=b.asm.Rr).apply(null,arguments)},Cu=b._emscripten_bind_btDispatcherInfo_get_m_timeOfImpact_0=function(){return(Cu=b._emscripten_bind_btDispatcherInfo_get_m_timeOfImpact_0=b.asm.Sr).apply(null,arguments)},Du=b._emscripten_bind_btDispatcherInfo_set_m_timeOfImpact_1=function(){return(Du=
b._emscripten_bind_btDispatcherInfo_set_m_timeOfImpact_1=b.asm.Tr).apply(null,arguments)},Eu=b._emscripten_bind_btDispatcherInfo_get_m_useContinuous_0=function(){return(Eu=b._emscripten_bind_btDispatcherInfo_get_m_useContinuous_0=b.asm.Ur).apply(null,arguments)},Fu=b._emscripten_bind_btDispatcherInfo_set_m_useContinuous_1=function(){return(Fu=b._emscripten_bind_btDispatcherInfo_set_m_useContinuous_1=b.asm.Vr).apply(null,arguments)},Gu=b._emscripten_bind_btDispatcherInfo_get_m_enableSatConvex_0=function(){return(Gu=
b._emscripten_bind_btDispatcherInfo_get_m_enableSatConvex_0=b.asm.Wr).apply(null,arguments)},Hu=b._emscripten_bind_btDispatcherInfo_set_m_enableSatConvex_1=function(){return(Hu=b._emscripten_bind_btDispatcherInfo_set_m_enableSatConvex_1=b.asm.Xr).apply(null,arguments)},Iu=b._emscripten_bind_btDispatcherInfo_get_m_enableSPU_0=function(){return(Iu=b._emscripten_bind_btDispatcherInfo_get_m_enableSPU_0=b.asm.Yr).apply(null,arguments)},Ju=b._emscripten_bind_btDispatcherInfo_set_m_enableSPU_1=function(){return(Ju=
b._emscripten_bind_btDispatcherInfo_set_m_enableSPU_1=b.asm.Zr).apply(null,arguments)},Ku=b._emscripten_bind_btDispatcherInfo_get_m_useEpa_0=function(){return(Ku=b._emscripten_bind_btDispatcherInfo_get_m_useEpa_0=b.asm._r).apply(null,arguments)},Lu=b._emscripten_bind_btDispatcherInfo_set_m_useEpa_1=function(){return(Lu=b._emscripten_bind_btDispatcherInfo_set_m_useEpa_1=b.asm.$r).apply(null,arguments)},Mu=b._emscripten_bind_btDispatcherInfo_get_m_allowedCcdPenetration_0=function(){return(Mu=b._emscripten_bind_btDispatcherInfo_get_m_allowedCcdPenetration_0=
b.asm.as).apply(null,arguments)},Nu=b._emscripten_bind_btDispatcherInfo_set_m_allowedCcdPenetration_1=function(){return(Nu=b._emscripten_bind_btDispatcherInfo_set_m_allowedCcdPenetration_1=b.asm.bs).apply(null,arguments)},Ou=b._emscripten_bind_btDispatcherInfo_get_m_useConvexConservativeDistanceUtil_0=function(){return(Ou=b._emscripten_bind_btDispatcherInfo_get_m_useConvexConservativeDistanceUtil_0=b.asm.cs).apply(null,arguments)},Pu=b._emscripten_bind_btDispatcherInfo_set_m_useConvexConservativeDistanceUtil_1=
function(){return(Pu=b._emscripten_bind_btDispatcherInfo_set_m_useConvexConservativeDistanceUtil_1=b.asm.ds).apply(null,arguments)},Qu=b._emscripten_bind_btDispatcherInfo_get_m_convexConservativeDistanceThreshold_0=function(){return(Qu=b._emscripten_bind_btDispatcherInfo_get_m_convexConservativeDistanceThreshold_0=b.asm.es).apply(null,arguments)},Ru=b._emscripten_bind_btDispatcherInfo_set_m_convexConservativeDistanceThreshold_1=function(){return(Ru=b._emscripten_bind_btDispatcherInfo_set_m_convexConservativeDistanceThreshold_1=
b.asm.fs).apply(null,arguments)},Su=b._emscripten_bind_btDispatcherInfo___destroy___0=function(){return(Su=b._emscripten_bind_btDispatcherInfo___destroy___0=b.asm.gs).apply(null,arguments)},Tu=b._emscripten_bind_btContactSolverInfo_get_m_splitImpulse_0=function(){return(Tu=b._emscripten_bind_btContactSolverInfo_get_m_splitImpulse_0=b.asm.hs).apply(null,arguments)},Uu=b._emscripten_bind_btContactSolverInfo_set_m_splitImpulse_1=function(){return(Uu=b._emscripten_bind_btContactSolverInfo_set_m_splitImpulse_1=
b.asm.is).apply(null,arguments)},Vu=b._emscripten_bind_btContactSolverInfo_get_m_splitImpulsePenetrationThreshold_0=function(){return(Vu=b._emscripten_bind_btContactSolverInfo_get_m_splitImpulsePenetrationThreshold_0=b.asm.js).apply(null,arguments)},Wu=b._emscripten_bind_btContactSolverInfo_set_m_splitImpulsePenetrationThreshold_1=function(){return(Wu=b._emscripten_bind_btContactSolverInfo_set_m_splitImpulsePenetrationThreshold_1=b.asm.ks).apply(null,arguments)},Xu=b._emscripten_bind_btContactSolverInfo_get_m_numIterations_0=
function(){return(Xu=b._emscripten_bind_btContactSolverInfo_get_m_numIterations_0=b.asm.ls).apply(null,arguments)},Yu=b._emscripten_bind_btContactSolverInfo_set_m_numIterations_1=function(){return(Yu=b._emscripten_bind_btContactSolverInfo_set_m_numIterations_1=b.asm.ms).apply(null,arguments)},Zu=b._emscripten_bind_btContactSolverInfo___destroy___0=function(){return(Zu=b._emscripten_bind_btContactSolverInfo___destroy___0=b.asm.ns).apply(null,arguments)},$u=b._emscripten_bind_btVehicleTuning_btVehicleTuning_0=
function(){return($u=b._emscripten_bind_btVehicleTuning_btVehicleTuning_0=b.asm.os).apply(null,arguments)},av=b._emscripten_bind_btVehicleTuning_get_m_suspensionStiffness_0=function(){return(av=b._emscripten_bind_btVehicleTuning_get_m_suspensionStiffness_0=b.asm.ps).apply(null,arguments)},bv=b._emscripten_bind_btVehicleTuning_set_m_suspensionStiffness_1=function(){return(bv=b._emscripten_bind_btVehicleTuning_set_m_suspensionStiffness_1=b.asm.qs).apply(null,arguments)},cv=b._emscripten_bind_btVehicleTuning_get_m_suspensionCompression_0=
function(){return(cv=b._emscripten_bind_btVehicleTuning_get_m_suspensionCompression_0=b.asm.rs).apply(null,arguments)},dv=b._emscripten_bind_btVehicleTuning_set_m_suspensionCompression_1=function(){return(dv=b._emscripten_bind_btVehicleTuning_set_m_suspensionCompression_1=b.asm.ss).apply(null,arguments)},ev=b._emscripten_bind_btVehicleTuning_get_m_suspensionDamping_0=function(){return(ev=b._emscripten_bind_btVehicleTuning_get_m_suspensionDamping_0=b.asm.ts).apply(null,arguments)},fv=b._emscripten_bind_btVehicleTuning_set_m_suspensionDamping_1=
function(){return(fv=b._emscripten_bind_btVehicleTuning_set_m_suspensionDamping_1=b.asm.us).apply(null,arguments)},gv=b._emscripten_bind_btVehicleTuning_get_m_maxSuspensionTravelCm_0=function(){return(gv=b._emscripten_bind_btVehicleTuning_get_m_maxSuspensionTravelCm_0=b.asm.vs).apply(null,arguments)},hv=b._emscripten_bind_btVehicleTuning_set_m_maxSuspensionTravelCm_1=function(){return(hv=b._emscripten_bind_btVehicleTuning_set_m_maxSuspensionTravelCm_1=b.asm.ws).apply(null,arguments)},iv=b._emscripten_bind_btVehicleTuning_get_m_frictionSlip_0=
function(){return(iv=b._emscripten_bind_btVehicleTuning_get_m_frictionSlip_0=b.asm.xs).apply(null,arguments)},jv=b._emscripten_bind_btVehicleTuning_set_m_frictionSlip_1=function(){return(jv=b._emscripten_bind_btVehicleTuning_set_m_frictionSlip_1=b.asm.ys).apply(null,arguments)},kv=b._emscripten_bind_btVehicleTuning_get_m_maxSuspensionForce_0=function(){return(kv=b._emscripten_bind_btVehicleTuning_get_m_maxSuspensionForce_0=b.asm.zs).apply(null,arguments)},lv=b._emscripten_bind_btVehicleTuning_set_m_maxSuspensionForce_1=
function(){return(lv=b._emscripten_bind_btVehicleTuning_set_m_maxSuspensionForce_1=b.asm.As).apply(null,arguments)},mv=b._emscripten_bind_btVehicleRaycasterResult_get_m_hitPointInWorld_0=function(){return(mv=b._emscripten_bind_btVehicleRaycasterResult_get_m_hitPointInWorld_0=b.asm.Bs).apply(null,arguments)},nv=b._emscripten_bind_btVehicleRaycasterResult_set_m_hitPointInWorld_1=function(){return(nv=b._emscripten_bind_btVehicleRaycasterResult_set_m_hitPointInWorld_1=b.asm.Cs).apply(null,arguments)},
ov=b._emscripten_bind_btVehicleRaycasterResult_get_m_hitNormalInWorld_0=function(){return(ov=b._emscripten_bind_btVehicleRaycasterResult_get_m_hitNormalInWorld_0=b.asm.Ds).apply(null,arguments)},pv=b._emscripten_bind_btVehicleRaycasterResult_set_m_hitNormalInWorld_1=function(){return(pv=b._emscripten_bind_btVehicleRaycasterResult_set_m_hitNormalInWorld_1=b.asm.Es).apply(null,arguments)},qv=b._emscripten_bind_btVehicleRaycasterResult_get_m_distFraction_0=function(){return(qv=b._emscripten_bind_btVehicleRaycasterResult_get_m_distFraction_0=
b.asm.Fs).apply(null,arguments)},rv=b._emscripten_bind_btVehicleRaycasterResult_set_m_distFraction_1=function(){return(rv=b._emscripten_bind_btVehicleRaycasterResult_set_m_distFraction_1=b.asm.Gs).apply(null,arguments)},sv=b._emscripten_bind_btVehicleRaycasterResult___destroy___0=function(){return(sv=b._emscripten_bind_btVehicleRaycasterResult___destroy___0=b.asm.Hs).apply(null,arguments)},tv=b._emscripten_bind_btDefaultVehicleRaycaster_btDefaultVehicleRaycaster_1=function(){return(tv=b._emscripten_bind_btDefaultVehicleRaycaster_btDefaultVehicleRaycaster_1=
b.asm.Is).apply(null,arguments)},uv=b._emscripten_bind_btDefaultVehicleRaycaster_castRay_3=function(){return(uv=b._emscripten_bind_btDefaultVehicleRaycaster_castRay_3=b.asm.Js).apply(null,arguments)},vv=b._emscripten_bind_btDefaultVehicleRaycaster___destroy___0=function(){return(vv=b._emscripten_bind_btDefaultVehicleRaycaster___destroy___0=b.asm.Ks).apply(null,arguments)},wv=b._emscripten_bind_RaycastInfo_get_m_contactNormalWS_0=function(){return(wv=b._emscripten_bind_RaycastInfo_get_m_contactNormalWS_0=
b.asm.Ls).apply(null,arguments)},xv=b._emscripten_bind_RaycastInfo_set_m_contactNormalWS_1=function(){return(xv=b._emscripten_bind_RaycastInfo_set_m_contactNormalWS_1=b.asm.Ms).apply(null,arguments)},yv=b._emscripten_bind_RaycastInfo_get_m_contactPointWS_0=function(){return(yv=b._emscripten_bind_RaycastInfo_get_m_contactPointWS_0=b.asm.Ns).apply(null,arguments)},zv=b._emscripten_bind_RaycastInfo_set_m_contactPointWS_1=function(){return(zv=b._emscripten_bind_RaycastInfo_set_m_contactPointWS_1=b.asm.Os).apply(null,
arguments)},Av=b._emscripten_bind_RaycastInfo_get_m_suspensionLength_0=function(){return(Av=b._emscripten_bind_RaycastInfo_get_m_suspensionLength_0=b.asm.Ps).apply(null,arguments)},Bv=b._emscripten_bind_RaycastInfo_set_m_suspensionLength_1=function(){return(Bv=b._emscripten_bind_RaycastInfo_set_m_suspensionLength_1=b.asm.Qs).apply(null,arguments)},Cv=b._emscripten_bind_RaycastInfo_get_m_hardPointWS_0=function(){return(Cv=b._emscripten_bind_RaycastInfo_get_m_hardPointWS_0=b.asm.Rs).apply(null,arguments)},
Dv=b._emscripten_bind_RaycastInfo_set_m_hardPointWS_1=function(){return(Dv=b._emscripten_bind_RaycastInfo_set_m_hardPointWS_1=b.asm.Ss).apply(null,arguments)},Ev=b._emscripten_bind_RaycastInfo_get_m_wheelDirectionWS_0=function(){return(Ev=b._emscripten_bind_RaycastInfo_get_m_wheelDirectionWS_0=b.asm.Ts).apply(null,arguments)},Fv=b._emscripten_bind_RaycastInfo_set_m_wheelDirectionWS_1=function(){return(Fv=b._emscripten_bind_RaycastInfo_set_m_wheelDirectionWS_1=b.asm.Us).apply(null,arguments)},Gv=b._emscripten_bind_RaycastInfo_get_m_wheelAxleWS_0=
function(){return(Gv=b._emscripten_bind_RaycastInfo_get_m_wheelAxleWS_0=b.asm.Vs).apply(null,arguments)},Hv=b._emscripten_bind_RaycastInfo_set_m_wheelAxleWS_1=function(){return(Hv=b._emscripten_bind_RaycastInfo_set_m_wheelAxleWS_1=b.asm.Ws).apply(null,arguments)},Iv=b._emscripten_bind_RaycastInfo_get_m_isInContact_0=function(){return(Iv=b._emscripten_bind_RaycastInfo_get_m_isInContact_0=b.asm.Xs).apply(null,arguments)},Jv=b._emscripten_bind_RaycastInfo_set_m_isInContact_1=function(){return(Jv=b._emscripten_bind_RaycastInfo_set_m_isInContact_1=
b.asm.Ys).apply(null,arguments)},Kv=b._emscripten_bind_RaycastInfo_get_m_groundObject_0=function(){return(Kv=b._emscripten_bind_RaycastInfo_get_m_groundObject_0=b.asm.Zs).apply(null,arguments)},Lv=b._emscripten_bind_RaycastInfo_set_m_groundObject_1=function(){return(Lv=b._emscripten_bind_RaycastInfo_set_m_groundObject_1=b.asm._s).apply(null,arguments)},Mv=b._emscripten_bind_RaycastInfo___destroy___0=function(){return(Mv=b._emscripten_bind_RaycastInfo___destroy___0=b.asm.$s).apply(null,arguments)},
Nv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_chassisConnectionCS_0=function(){return(Nv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_chassisConnectionCS_0=b.asm.at).apply(null,arguments)},Ov=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_chassisConnectionCS_1=function(){return(Ov=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_chassisConnectionCS_1=b.asm.bt).apply(null,arguments)},Pv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelDirectionCS_0=function(){return(Pv=
b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelDirectionCS_0=b.asm.ct).apply(null,arguments)},Qv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelDirectionCS_1=function(){return(Qv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelDirectionCS_1=b.asm.dt).apply(null,arguments)},Rv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelAxleCS_0=function(){return(Rv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelAxleCS_0=b.asm.et).apply(null,arguments)},Sv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelAxleCS_1=
function(){return(Sv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelAxleCS_1=b.asm.ft).apply(null,arguments)},Tv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_suspensionRestLength_0=function(){return(Tv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_suspensionRestLength_0=b.asm.gt).apply(null,arguments)},Uv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_suspensionRestLength_1=function(){return(Uv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_suspensionRestLength_1=
b.asm.ht).apply(null,arguments)},Vv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_maxSuspensionTravelCm_0=function(){return(Vv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_maxSuspensionTravelCm_0=b.asm.it).apply(null,arguments)},Wv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_maxSuspensionTravelCm_1=function(){return(Wv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_maxSuspensionTravelCm_1=b.asm.jt).apply(null,arguments)},Xv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelRadius_0=
function(){return(Xv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelRadius_0=b.asm.kt).apply(null,arguments)},Yv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelRadius_1=function(){return(Yv=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelRadius_1=b.asm.lt).apply(null,arguments)},Zv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_suspensionStiffness_0=function(){return(Zv=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_suspensionStiffness_0=b.asm.mt).apply(null,
arguments)},$v=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_suspensionStiffness_1=function(){return($v=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_suspensionStiffness_1=b.asm.nt).apply(null,arguments)},aw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelsDampingCompression_0=function(){return(aw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelsDampingCompression_0=b.asm.ot).apply(null,arguments)},bw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelsDampingCompression_1=
function(){return(bw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelsDampingCompression_1=b.asm.pt).apply(null,arguments)},cw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelsDampingRelaxation_0=function(){return(cw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_wheelsDampingRelaxation_0=b.asm.qt).apply(null,arguments)},dw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelsDampingRelaxation_1=function(){return(dw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_wheelsDampingRelaxation_1=
b.asm.rt).apply(null,arguments)},ew=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_frictionSlip_0=function(){return(ew=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_frictionSlip_0=b.asm.st).apply(null,arguments)},fw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_frictionSlip_1=function(){return(fw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_frictionSlip_1=b.asm.tt).apply(null,arguments)},gw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_maxSuspensionForce_0=function(){return(gw=
b._emscripten_bind_btWheelInfoConstructionInfo_get_m_maxSuspensionForce_0=b.asm.ut).apply(null,arguments)},hw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_maxSuspensionForce_1=function(){return(hw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_maxSuspensionForce_1=b.asm.vt).apply(null,arguments)},iw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_bIsFrontWheel_0=function(){return(iw=b._emscripten_bind_btWheelInfoConstructionInfo_get_m_bIsFrontWheel_0=b.asm.wt).apply(null,arguments)},
jw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_bIsFrontWheel_1=function(){return(jw=b._emscripten_bind_btWheelInfoConstructionInfo_set_m_bIsFrontWheel_1=b.asm.xt).apply(null,arguments)},kw=b._emscripten_bind_btWheelInfoConstructionInfo___destroy___0=function(){return(kw=b._emscripten_bind_btWheelInfoConstructionInfo___destroy___0=b.asm.yt).apply(null,arguments)},lw=b._emscripten_bind_btWheelInfo_btWheelInfo_1=function(){return(lw=b._emscripten_bind_btWheelInfo_btWheelInfo_1=b.asm.zt).apply(null,
arguments)},mw=b._emscripten_bind_btWheelInfo_getSuspensionRestLength_0=function(){return(mw=b._emscripten_bind_btWheelInfo_getSuspensionRestLength_0=b.asm.At).apply(null,arguments)},nw=b._emscripten_bind_btWheelInfo_updateWheel_2=function(){return(nw=b._emscripten_bind_btWheelInfo_updateWheel_2=b.asm.Bt).apply(null,arguments)},ow=b._emscripten_bind_btWheelInfo_get_m_suspensionStiffness_0=function(){return(ow=b._emscripten_bind_btWheelInfo_get_m_suspensionStiffness_0=b.asm.Ct).apply(null,arguments)},
pw=b._emscripten_bind_btWheelInfo_set_m_suspensionStiffness_1=function(){return(pw=b._emscripten_bind_btWheelInfo_set_m_suspensionStiffness_1=b.asm.Dt).apply(null,arguments)},qw=b._emscripten_bind_btWheelInfo_get_m_frictionSlip_0=function(){return(qw=b._emscripten_bind_btWheelInfo_get_m_frictionSlip_0=b.asm.Et).apply(null,arguments)},rw=b._emscripten_bind_btWheelInfo_set_m_frictionSlip_1=function(){return(rw=b._emscripten_bind_btWheelInfo_set_m_frictionSlip_1=b.asm.Ft).apply(null,arguments)},sw=b._emscripten_bind_btWheelInfo_get_m_engineForce_0=
function(){return(sw=b._emscripten_bind_btWheelInfo_get_m_engineForce_0=b.asm.Gt).apply(null,arguments)},tw=b._emscripten_bind_btWheelInfo_set_m_engineForce_1=function(){return(tw=b._emscripten_bind_btWheelInfo_set_m_engineForce_1=b.asm.Ht).apply(null,arguments)},uw=b._emscripten_bind_btWheelInfo_get_m_rollInfluence_0=function(){return(uw=b._emscripten_bind_btWheelInfo_get_m_rollInfluence_0=b.asm.It).apply(null,arguments)},vw=b._emscripten_bind_btWheelInfo_set_m_rollInfluence_1=function(){return(vw=
b._emscripten_bind_btWheelInfo_set_m_rollInfluence_1=b.asm.Jt).apply(null,arguments)},ww=b._emscripten_bind_btWheelInfo_get_m_suspensionRestLength1_0=function(){return(ww=b._emscripten_bind_btWheelInfo_get_m_suspensionRestLength1_0=b.asm.Kt).apply(null,arguments)},xw=b._emscripten_bind_btWheelInfo_set_m_suspensionRestLength1_1=function(){return(xw=b._emscripten_bind_btWheelInfo_set_m_suspensionRestLength1_1=b.asm.Lt).apply(null,arguments)},yw=b._emscripten_bind_btWheelInfo_get_m_wheelsRadius_0=function(){return(yw=
b._emscripten_bind_btWheelInfo_get_m_wheelsRadius_0=b.asm.Mt).apply(null,arguments)},zw=b._emscripten_bind_btWheelInfo_set_m_wheelsRadius_1=function(){return(zw=b._emscripten_bind_btWheelInfo_set_m_wheelsRadius_1=b.asm.Nt).apply(null,arguments)},Aw=b._emscripten_bind_btWheelInfo_get_m_wheelsDampingCompression_0=function(){return(Aw=b._emscripten_bind_btWheelInfo_get_m_wheelsDampingCompression_0=b.asm.Ot).apply(null,arguments)},Bw=b._emscripten_bind_btWheelInfo_set_m_wheelsDampingCompression_1=function(){return(Bw=
b._emscripten_bind_btWheelInfo_set_m_wheelsDampingCompression_1=b.asm.Pt).apply(null,arguments)},Cw=b._emscripten_bind_btWheelInfo_get_m_wheelsDampingRelaxation_0=function(){return(Cw=b._emscripten_bind_btWheelInfo_get_m_wheelsDampingRelaxation_0=b.asm.Qt).apply(null,arguments)},Dw=b._emscripten_bind_btWheelInfo_set_m_wheelsDampingRelaxation_1=function(){return(Dw=b._emscripten_bind_btWheelInfo_set_m_wheelsDampingRelaxation_1=b.asm.Rt).apply(null,arguments)},Ew=b._emscripten_bind_btWheelInfo_get_m_steering_0=
function(){return(Ew=b._emscripten_bind_btWheelInfo_get_m_steering_0=b.asm.St).apply(null,arguments)},Fw=b._emscripten_bind_btWheelInfo_set_m_steering_1=function(){return(Fw=b._emscripten_bind_btWheelInfo_set_m_steering_1=b.asm.Tt).apply(null,arguments)},Gw=b._emscripten_bind_btWheelInfo_get_m_maxSuspensionForce_0=function(){return(Gw=b._emscripten_bind_btWheelInfo_get_m_maxSuspensionForce_0=b.asm.Ut).apply(null,arguments)},Hw=b._emscripten_bind_btWheelInfo_set_m_maxSuspensionForce_1=function(){return(Hw=
b._emscripten_bind_btWheelInfo_set_m_maxSuspensionForce_1=b.asm.Vt).apply(null,arguments)},Iw=b._emscripten_bind_btWheelInfo_get_m_maxSuspensionTravelCm_0=function(){return(Iw=b._emscripten_bind_btWheelInfo_get_m_maxSuspensionTravelCm_0=b.asm.Wt).apply(null,arguments)},Jw=b._emscripten_bind_btWheelInfo_set_m_maxSuspensionTravelCm_1=function(){return(Jw=b._emscripten_bind_btWheelInfo_set_m_maxSuspensionTravelCm_1=b.asm.Xt).apply(null,arguments)},Kw=b._emscripten_bind_btWheelInfo_get_m_wheelsSuspensionForce_0=
function(){return(Kw=b._emscripten_bind_btWheelInfo_get_m_wheelsSuspensionForce_0=b.asm.Yt).apply(null,arguments)},Lw=b._emscripten_bind_btWheelInfo_set_m_wheelsSuspensionForce_1=function(){return(Lw=b._emscripten_bind_btWheelInfo_set_m_wheelsSuspensionForce_1=b.asm.Zt).apply(null,arguments)},Mw=b._emscripten_bind_btWheelInfo_get_m_bIsFrontWheel_0=function(){return(Mw=b._emscripten_bind_btWheelInfo_get_m_bIsFrontWheel_0=b.asm._t).apply(null,arguments)},Nw=b._emscripten_bind_btWheelInfo_set_m_bIsFrontWheel_1=
function(){return(Nw=b._emscripten_bind_btWheelInfo_set_m_bIsFrontWheel_1=b.asm.$t).apply(null,arguments)},Ow=b._emscripten_bind_btWheelInfo_get_m_raycastInfo_0=function(){return(Ow=b._emscripten_bind_btWheelInfo_get_m_raycastInfo_0=b.asm.au).apply(null,arguments)},Pw=b._emscripten_bind_btWheelInfo_set_m_raycastInfo_1=function(){return(Pw=b._emscripten_bind_btWheelInfo_set_m_raycastInfo_1=b.asm.bu).apply(null,arguments)},Qw=b._emscripten_bind_btWheelInfo_get_m_chassisConnectionPointCS_0=function(){return(Qw=
b._emscripten_bind_btWheelInfo_get_m_chassisConnectionPointCS_0=b.asm.cu).apply(null,arguments)},Rw=b._emscripten_bind_btWheelInfo_set_m_chassisConnectionPointCS_1=function(){return(Rw=b._emscripten_bind_btWheelInfo_set_m_chassisConnectionPointCS_1=b.asm.du).apply(null,arguments)},Sw=b._emscripten_bind_btWheelInfo_get_m_worldTransform_0=function(){return(Sw=b._emscripten_bind_btWheelInfo_get_m_worldTransform_0=b.asm.eu).apply(null,arguments)},Tw=b._emscripten_bind_btWheelInfo_set_m_worldTransform_1=
function(){return(Tw=b._emscripten_bind_btWheelInfo_set_m_worldTransform_1=b.asm.fu).apply(null,arguments)},Uw=b._emscripten_bind_btWheelInfo_get_m_wheelDirectionCS_0=function(){return(Uw=b._emscripten_bind_btWheelInfo_get_m_wheelDirectionCS_0=b.asm.gu).apply(null,arguments)},Vw=b._emscripten_bind_btWheelInfo_set_m_wheelDirectionCS_1=function(){return(Vw=b._emscripten_bind_btWheelInfo_set_m_wheelDirectionCS_1=b.asm.hu).apply(null,arguments)},Ww=b._emscripten_bind_btWheelInfo_get_m_wheelAxleCS_0=function(){return(Ww=
b._emscripten_bind_btWheelInfo_get_m_wheelAxleCS_0=b.asm.iu).apply(null,arguments)},Xw=b._emscripten_bind_btWheelInfo_set_m_wheelAxleCS_1=function(){return(Xw=b._emscripten_bind_btWheelInfo_set_m_wheelAxleCS_1=b.asm.ju).apply(null,arguments)},Yw=b._emscripten_bind_btWheelInfo_get_m_rotation_0=function(){return(Yw=b._emscripten_bind_btWheelInfo_get_m_rotation_0=b.asm.ku).apply(null,arguments)},Zw=b._emscripten_bind_btWheelInfo_set_m_rotation_1=function(){return(Zw=b._emscripten_bind_btWheelInfo_set_m_rotation_1=
b.asm.lu).apply(null,arguments)},$w=b._emscripten_bind_btWheelInfo_get_m_deltaRotation_0=function(){return($w=b._emscripten_bind_btWheelInfo_get_m_deltaRotation_0=b.asm.mu).apply(null,arguments)},ax=b._emscripten_bind_btWheelInfo_set_m_deltaRotation_1=function(){return(ax=b._emscripten_bind_btWheelInfo_set_m_deltaRotation_1=b.asm.nu).apply(null,arguments)},bx=b._emscripten_bind_btWheelInfo_get_m_brake_0=function(){return(bx=b._emscripten_bind_btWheelInfo_get_m_brake_0=b.asm.ou).apply(null,arguments)},
cx=b._emscripten_bind_btWheelInfo_set_m_brake_1=function(){return(cx=b._emscripten_bind_btWheelInfo_set_m_brake_1=b.asm.pu).apply(null,arguments)},dx=b._emscripten_bind_btWheelInfo_get_m_clippedInvContactDotSuspension_0=function(){return(dx=b._emscripten_bind_btWheelInfo_get_m_clippedInvContactDotSuspension_0=b.asm.qu).apply(null,arguments)},ex=b._emscripten_bind_btWheelInfo_set_m_clippedInvContactDotSuspension_1=function(){return(ex=b._emscripten_bind_btWheelInfo_set_m_clippedInvContactDotSuspension_1=
b.asm.ru).apply(null,arguments)},fx=b._emscripten_bind_btWheelInfo_get_m_suspensionRelativeVelocity_0=function(){return(fx=b._emscripten_bind_btWheelInfo_get_m_suspensionRelativeVelocity_0=b.asm.su).apply(null,arguments)},gx=b._emscripten_bind_btWheelInfo_set_m_suspensionRelativeVelocity_1=function(){return(gx=b._emscripten_bind_btWheelInfo_set_m_suspensionRelativeVelocity_1=b.asm.tu).apply(null,arguments)},hx=b._emscripten_bind_btWheelInfo_get_m_skidInfo_0=function(){return(hx=b._emscripten_bind_btWheelInfo_get_m_skidInfo_0=
b.asm.uu).apply(null,arguments)},ix=b._emscripten_bind_btWheelInfo_set_m_skidInfo_1=function(){return(ix=b._emscripten_bind_btWheelInfo_set_m_skidInfo_1=b.asm.vu).apply(null,arguments)},jx=b._emscripten_bind_btWheelInfo___destroy___0=function(){return(jx=b._emscripten_bind_btWheelInfo___destroy___0=b.asm.wu).apply(null,arguments)},kx=b._emscripten_bind_btKinematicCharacterController_btKinematicCharacterController_3=function(){return(kx=b._emscripten_bind_btKinematicCharacterController_btKinematicCharacterController_3=
b.asm.xu).apply(null,arguments)},lx=b._emscripten_bind_btKinematicCharacterController_btKinematicCharacterController_4=function(){return(lx=b._emscripten_bind_btKinematicCharacterController_btKinematicCharacterController_4=b.asm.yu).apply(null,arguments)},mx=b._emscripten_bind_btKinematicCharacterController_setUpAxis_1=function(){return(mx=b._emscripten_bind_btKinematicCharacterController_setUpAxis_1=b.asm.zu).apply(null,arguments)},nx=b._emscripten_bind_btKinematicCharacterController_setWalkDirection_1=
function(){return(nx=b._emscripten_bind_btKinematicCharacterController_setWalkDirection_1=b.asm.Au).apply(null,arguments)},ox=b._emscripten_bind_btKinematicCharacterController_setVelocityForTimeInterval_2=function(){return(ox=b._emscripten_bind_btKinematicCharacterController_setVelocityForTimeInterval_2=b.asm.Bu).apply(null,arguments)},px=b._emscripten_bind_btKinematicCharacterController_warp_1=function(){return(px=b._emscripten_bind_btKinematicCharacterController_warp_1=b.asm.Cu).apply(null,arguments)},
qx=b._emscripten_bind_btKinematicCharacterController_preStep_1=function(){return(qx=b._emscripten_bind_btKinematicCharacterController_preStep_1=b.asm.Du).apply(null,arguments)},rx=b._emscripten_bind_btKinematicCharacterController_playerStep_2=function(){return(rx=b._emscripten_bind_btKinematicCharacterController_playerStep_2=b.asm.Eu).apply(null,arguments)},sx=b._emscripten_bind_btKinematicCharacterController_setFallSpeed_1=function(){return(sx=b._emscripten_bind_btKinematicCharacterController_setFallSpeed_1=
b.asm.Fu).apply(null,arguments)},tx=b._emscripten_bind_btKinematicCharacterController_setJumpSpeed_1=function(){return(tx=b._emscripten_bind_btKinematicCharacterController_setJumpSpeed_1=b.asm.Gu).apply(null,arguments)},ux=b._emscripten_bind_btKinematicCharacterController_setMaxJumpHeight_1=function(){return(ux=b._emscripten_bind_btKinematicCharacterController_setMaxJumpHeight_1=b.asm.Hu).apply(null,arguments)},vx=b._emscripten_bind_btKinematicCharacterController_canJump_0=function(){return(vx=b._emscripten_bind_btKinematicCharacterController_canJump_0=
b.asm.Iu).apply(null,arguments)},wx=b._emscripten_bind_btKinematicCharacterController_jump_0=function(){return(wx=b._emscripten_bind_btKinematicCharacterController_jump_0=b.asm.Ju).apply(null,arguments)},xx=b._emscripten_bind_btKinematicCharacterController_setGravity_1=function(){return(xx=b._emscripten_bind_btKinematicCharacterController_setGravity_1=b.asm.Ku).apply(null,arguments)},yx=b._emscripten_bind_btKinematicCharacterController_getGravity_0=function(){return(yx=b._emscripten_bind_btKinematicCharacterController_getGravity_0=
b.asm.Lu).apply(null,arguments)},zx=b._emscripten_bind_btKinematicCharacterController_setMaxSlope_1=function(){return(zx=b._emscripten_bind_btKinematicCharacterController_setMaxSlope_1=b.asm.Mu).apply(null,arguments)},Ax=b._emscripten_bind_btKinematicCharacterController_getMaxSlope_0=function(){return(Ax=b._emscripten_bind_btKinematicCharacterController_getMaxSlope_0=b.asm.Nu).apply(null,arguments)},Bx=b._emscripten_bind_btKinematicCharacterController_getGhostObject_0=function(){return(Bx=b._emscripten_bind_btKinematicCharacterController_getGhostObject_0=
b.asm.Ou).apply(null,arguments)},Cx=b._emscripten_bind_btKinematicCharacterController_setUseGhostSweepTest_1=function(){return(Cx=b._emscripten_bind_btKinematicCharacterController_setUseGhostSweepTest_1=b.asm.Pu).apply(null,arguments)},Dx=b._emscripten_bind_btKinematicCharacterController_onGround_0=function(){return(Dx=b._emscripten_bind_btKinematicCharacterController_onGround_0=b.asm.Qu).apply(null,arguments)},Ex=b._emscripten_bind_btKinematicCharacterController_setUpInterpolate_1=function(){return(Ex=
b._emscripten_bind_btKinematicCharacterController_setUpInterpolate_1=b.asm.Ru).apply(null,arguments)},Fx=b._emscripten_bind_btKinematicCharacterController_updateAction_2=function(){return(Fx=b._emscripten_bind_btKinematicCharacterController_updateAction_2=b.asm.Su).apply(null,arguments)},Gx=b._emscripten_bind_btKinematicCharacterController___destroy___0=function(){return(Gx=b._emscripten_bind_btKinematicCharacterController___destroy___0=b.asm.Tu).apply(null,arguments)},Hx=b._emscripten_bind_btRaycastVehicle_btRaycastVehicle_3=
function(){return(Hx=b._emscripten_bind_btRaycastVehicle_btRaycastVehicle_3=b.asm.Uu).apply(null,arguments)},Ix=b._emscripten_bind_btRaycastVehicle_applyEngineForce_2=function(){return(Ix=b._emscripten_bind_btRaycastVehicle_applyEngineForce_2=b.asm.Vu).apply(null,arguments)},Jx=b._emscripten_bind_btRaycastVehicle_setSteeringValue_2=function(){return(Jx=b._emscripten_bind_btRaycastVehicle_setSteeringValue_2=b.asm.Wu).apply(null,arguments)},Kx=b._emscripten_bind_btRaycastVehicle_getWheelTransformWS_1=
function(){return(Kx=b._emscripten_bind_btRaycastVehicle_getWheelTransformWS_1=b.asm.Xu).apply(null,arguments)},Lx=b._emscripten_bind_btRaycastVehicle_updateWheelTransform_2=function(){return(Lx=b._emscripten_bind_btRaycastVehicle_updateWheelTransform_2=b.asm.Yu).apply(null,arguments)},Mx=b._emscripten_bind_btRaycastVehicle_addWheel_7=function(){return(Mx=b._emscripten_bind_btRaycastVehicle_addWheel_7=b.asm.Zu).apply(null,arguments)},Nx=b._emscripten_bind_btRaycastVehicle_getNumWheels_0=function(){return(Nx=
b._emscripten_bind_btRaycastVehicle_getNumWheels_0=b.asm._u).apply(null,arguments)},Ox=b._emscripten_bind_btRaycastVehicle_getRigidBody_0=function(){return(Ox=b._emscripten_bind_btRaycastVehicle_getRigidBody_0=b.asm.$u).apply(null,arguments)},Px=b._emscripten_bind_btRaycastVehicle_getWheelInfo_1=function(){return(Px=b._emscripten_bind_btRaycastVehicle_getWheelInfo_1=b.asm.av).apply(null,arguments)},Qx=b._emscripten_bind_btRaycastVehicle_setBrake_2=function(){return(Qx=b._emscripten_bind_btRaycastVehicle_setBrake_2=
b.asm.bv).apply(null,arguments)},Rx=b._emscripten_bind_btRaycastVehicle_setCoordinateSystem_3=function(){return(Rx=b._emscripten_bind_btRaycastVehicle_setCoordinateSystem_3=b.asm.cv).apply(null,arguments)},Sx=b._emscripten_bind_btRaycastVehicle_getCurrentSpeedKmHour_0=function(){return(Sx=b._emscripten_bind_btRaycastVehicle_getCurrentSpeedKmHour_0=b.asm.dv).apply(null,arguments)},Tx=b._emscripten_bind_btRaycastVehicle_getChassisWorldTransform_0=function(){return(Tx=b._emscripten_bind_btRaycastVehicle_getChassisWorldTransform_0=
b.asm.ev).apply(null,arguments)},Ux=b._emscripten_bind_btRaycastVehicle_rayCast_1=function(){return(Ux=b._emscripten_bind_btRaycastVehicle_rayCast_1=b.asm.fv).apply(null,arguments)},Vx=b._emscripten_bind_btRaycastVehicle_updateVehicle_1=function(){return(Vx=b._emscripten_bind_btRaycastVehicle_updateVehicle_1=b.asm.gv).apply(null,arguments)},Wx=b._emscripten_bind_btRaycastVehicle_resetSuspension_0=function(){return(Wx=b._emscripten_bind_btRaycastVehicle_resetSuspension_0=b.asm.hv).apply(null,arguments)},
Xx=b._emscripten_bind_btRaycastVehicle_getSteeringValue_1=function(){return(Xx=b._emscripten_bind_btRaycastVehicle_getSteeringValue_1=b.asm.iv).apply(null,arguments)},Yx=b._emscripten_bind_btRaycastVehicle_updateWheelTransformsWS_1=function(){return(Yx=b._emscripten_bind_btRaycastVehicle_updateWheelTransformsWS_1=b.asm.jv).apply(null,arguments)},Zx=b._emscripten_bind_btRaycastVehicle_updateWheelTransformsWS_2=function(){return(Zx=b._emscripten_bind_btRaycastVehicle_updateWheelTransformsWS_2=b.asm.kv).apply(null,
arguments)},$x=b._emscripten_bind_btRaycastVehicle_setPitchControl_1=function(){return($x=b._emscripten_bind_btRaycastVehicle_setPitchControl_1=b.asm.lv).apply(null,arguments)},ay=b._emscripten_bind_btRaycastVehicle_updateSuspension_1=function(){return(ay=b._emscripten_bind_btRaycastVehicle_updateSuspension_1=b.asm.mv).apply(null,arguments)},by=b._emscripten_bind_btRaycastVehicle_updateFriction_1=function(){return(by=b._emscripten_bind_btRaycastVehicle_updateFriction_1=b.asm.nv).apply(null,arguments)},
cy=b._emscripten_bind_btRaycastVehicle_getRightAxis_0=function(){return(cy=b._emscripten_bind_btRaycastVehicle_getRightAxis_0=b.asm.ov).apply(null,arguments)},dy=b._emscripten_bind_btRaycastVehicle_getUpAxis_0=function(){return(dy=b._emscripten_bind_btRaycastVehicle_getUpAxis_0=b.asm.pv).apply(null,arguments)},ey=b._emscripten_bind_btRaycastVehicle_getForwardAxis_0=function(){return(ey=b._emscripten_bind_btRaycastVehicle_getForwardAxis_0=b.asm.qv).apply(null,arguments)},fy=b._emscripten_bind_btRaycastVehicle_getForwardVector_0=
function(){return(fy=b._emscripten_bind_btRaycastVehicle_getForwardVector_0=b.asm.rv).apply(null,arguments)},gy=b._emscripten_bind_btRaycastVehicle_getUserConstraintType_0=function(){return(gy=b._emscripten_bind_btRaycastVehicle_getUserConstraintType_0=b.asm.sv).apply(null,arguments)},hy=b._emscripten_bind_btRaycastVehicle_setUserConstraintType_1=function(){return(hy=b._emscripten_bind_btRaycastVehicle_setUserConstraintType_1=b.asm.tv).apply(null,arguments)},iy=b._emscripten_bind_btRaycastVehicle_setUserConstraintId_1=
function(){return(iy=b._emscripten_bind_btRaycastVehicle_setUserConstraintId_1=b.asm.uv).apply(null,arguments)},jy=b._emscripten_bind_btRaycastVehicle_getUserConstraintId_0=function(){return(jy=b._emscripten_bind_btRaycastVehicle_getUserConstraintId_0=b.asm.vv).apply(null,arguments)},ky=b._emscripten_bind_btRaycastVehicle_updateAction_2=function(){return(ky=b._emscripten_bind_btRaycastVehicle_updateAction_2=b.asm.wv).apply(null,arguments)},ly=b._emscripten_bind_btRaycastVehicle___destroy___0=function(){return(ly=
b._emscripten_bind_btRaycastVehicle___destroy___0=b.asm.xv).apply(null,arguments)},my=b._emscripten_bind_btPairCachingGhostObject_btPairCachingGhostObject_0=function(){return(my=b._emscripten_bind_btPairCachingGhostObject_btPairCachingGhostObject_0=b.asm.yv).apply(null,arguments)},ny=b._emscripten_bind_btPairCachingGhostObject_setAnisotropicFriction_2=function(){return(ny=b._emscripten_bind_btPairCachingGhostObject_setAnisotropicFriction_2=b.asm.zv).apply(null,arguments)},oy=b._emscripten_bind_btPairCachingGhostObject_getCollisionShape_0=
function(){return(oy=b._emscripten_bind_btPairCachingGhostObject_getCollisionShape_0=b.asm.Av).apply(null,arguments)},py=b._emscripten_bind_btPairCachingGhostObject_setContactProcessingThreshold_1=function(){return(py=b._emscripten_bind_btPairCachingGhostObject_setContactProcessingThreshold_1=b.asm.Bv).apply(null,arguments)},qy=b._emscripten_bind_btPairCachingGhostObject_setActivationState_1=function(){return(qy=b._emscripten_bind_btPairCachingGhostObject_setActivationState_1=b.asm.Cv).apply(null,
arguments)},ry=b._emscripten_bind_btPairCachingGhostObject_forceActivationState_1=function(){return(ry=b._emscripten_bind_btPairCachingGhostObject_forceActivationState_1=b.asm.Dv).apply(null,arguments)},sy=b._emscripten_bind_btPairCachingGhostObject_activate_0=function(){return(sy=b._emscripten_bind_btPairCachingGhostObject_activate_0=b.asm.Ev).apply(null,arguments)},ty=b._emscripten_bind_btPairCachingGhostObject_activate_1=function(){return(ty=b._emscripten_bind_btPairCachingGhostObject_activate_1=
b.asm.Fv).apply(null,arguments)},uy=b._emscripten_bind_btPairCachingGhostObject_isActive_0=function(){return(uy=b._emscripten_bind_btPairCachingGhostObject_isActive_0=b.asm.Gv).apply(null,arguments)},vy=b._emscripten_bind_btPairCachingGhostObject_isKinematicObject_0=function(){return(vy=b._emscripten_bind_btPairCachingGhostObject_isKinematicObject_0=b.asm.Hv).apply(null,arguments)},wy=b._emscripten_bind_btPairCachingGhostObject_isStaticObject_0=function(){return(wy=b._emscripten_bind_btPairCachingGhostObject_isStaticObject_0=
b.asm.Iv).apply(null,arguments)},xy=b._emscripten_bind_btPairCachingGhostObject_isStaticOrKinematicObject_0=function(){return(xy=b._emscripten_bind_btPairCachingGhostObject_isStaticOrKinematicObject_0=b.asm.Jv).apply(null,arguments)},yy=b._emscripten_bind_btPairCachingGhostObject_getRestitution_0=function(){return(yy=b._emscripten_bind_btPairCachingGhostObject_getRestitution_0=b.asm.Kv).apply(null,arguments)},zy=b._emscripten_bind_btPairCachingGhostObject_getFriction_0=function(){return(zy=b._emscripten_bind_btPairCachingGhostObject_getFriction_0=
b.asm.Lv).apply(null,arguments)},Ay=b._emscripten_bind_btPairCachingGhostObject_getRollingFriction_0=function(){return(Ay=b._emscripten_bind_btPairCachingGhostObject_getRollingFriction_0=b.asm.Mv).apply(null,arguments)},By=b._emscripten_bind_btPairCachingGhostObject_setRestitution_1=function(){return(By=b._emscripten_bind_btPairCachingGhostObject_setRestitution_1=b.asm.Nv).apply(null,arguments)},Cy=b._emscripten_bind_btPairCachingGhostObject_setFriction_1=function(){return(Cy=b._emscripten_bind_btPairCachingGhostObject_setFriction_1=
b.asm.Ov).apply(null,arguments)},Dy=b._emscripten_bind_btPairCachingGhostObject_setRollingFriction_1=function(){return(Dy=b._emscripten_bind_btPairCachingGhostObject_setRollingFriction_1=b.asm.Pv).apply(null,arguments)},Ey=b._emscripten_bind_btPairCachingGhostObject_getWorldTransform_0=function(){return(Ey=b._emscripten_bind_btPairCachingGhostObject_getWorldTransform_0=b.asm.Qv).apply(null,arguments)},Fy=b._emscripten_bind_btPairCachingGhostObject_getCollisionFlags_0=function(){return(Fy=b._emscripten_bind_btPairCachingGhostObject_getCollisionFlags_0=
b.asm.Rv).apply(null,arguments)},Gy=b._emscripten_bind_btPairCachingGhostObject_setCollisionFlags_1=function(){return(Gy=b._emscripten_bind_btPairCachingGhostObject_setCollisionFlags_1=b.asm.Sv).apply(null,arguments)},Hy=b._emscripten_bind_btPairCachingGhostObject_setWorldTransform_1=function(){return(Hy=b._emscripten_bind_btPairCachingGhostObject_setWorldTransform_1=b.asm.Tv).apply(null,arguments)},Iy=b._emscripten_bind_btPairCachingGhostObject_setCollisionShape_1=function(){return(Iy=b._emscripten_bind_btPairCachingGhostObject_setCollisionShape_1=
b.asm.Uv).apply(null,arguments)},Jy=b._emscripten_bind_btPairCachingGhostObject_setCcdMotionThreshold_1=function(){return(Jy=b._emscripten_bind_btPairCachingGhostObject_setCcdMotionThreshold_1=b.asm.Vv).apply(null,arguments)},Ky=b._emscripten_bind_btPairCachingGhostObject_setCcdSweptSphereRadius_1=function(){return(Ky=b._emscripten_bind_btPairCachingGhostObject_setCcdSweptSphereRadius_1=b.asm.Wv).apply(null,arguments)},Ly=b._emscripten_bind_btPairCachingGhostObject_getUserIndex_0=function(){return(Ly=
b._emscripten_bind_btPairCachingGhostObject_getUserIndex_0=b.asm.Xv).apply(null,arguments)},My=b._emscripten_bind_btPairCachingGhostObject_setUserIndex_1=function(){return(My=b._emscripten_bind_btPairCachingGhostObject_setUserIndex_1=b.asm.Yv).apply(null,arguments)},Ny=b._emscripten_bind_btPairCachingGhostObject_getUserPointer_0=function(){return(Ny=b._emscripten_bind_btPairCachingGhostObject_getUserPointer_0=b.asm.Zv).apply(null,arguments)},Oy=b._emscripten_bind_btPairCachingGhostObject_setUserPointer_1=
function(){return(Oy=b._emscripten_bind_btPairCachingGhostObject_setUserPointer_1=b.asm._v).apply(null,arguments)},Py=b._emscripten_bind_btPairCachingGhostObject_getBroadphaseHandle_0=function(){return(Py=b._emscripten_bind_btPairCachingGhostObject_getBroadphaseHandle_0=b.asm.$v).apply(null,arguments)},Qy=b._emscripten_bind_btPairCachingGhostObject_getNumOverlappingObjects_0=function(){return(Qy=b._emscripten_bind_btPairCachingGhostObject_getNumOverlappingObjects_0=b.asm.aw).apply(null,arguments)},
Ry=b._emscripten_bind_btPairCachingGhostObject_getOverlappingObject_1=function(){return(Ry=b._emscripten_bind_btPairCachingGhostObject_getOverlappingObject_1=b.asm.bw).apply(null,arguments)},Sy=b._emscripten_bind_btPairCachingGhostObject___destroy___0=function(){return(Sy=b._emscripten_bind_btPairCachingGhostObject___destroy___0=b.asm.cw).apply(null,arguments)},Ty=b._emscripten_bind_btGhostPairCallback_btGhostPairCallback_0=function(){return(Ty=b._emscripten_bind_btGhostPairCallback_btGhostPairCallback_0=
b.asm.dw).apply(null,arguments)},Uy=b._emscripten_bind_btGhostPairCallback___destroy___0=function(){return(Uy=b._emscripten_bind_btGhostPairCallback___destroy___0=b.asm.ew).apply(null,arguments)},Vy=b._emscripten_bind_btSoftBodyWorldInfo_btSoftBodyWorldInfo_0=function(){return(Vy=b._emscripten_bind_btSoftBodyWorldInfo_btSoftBodyWorldInfo_0=b.asm.fw).apply(null,arguments)},Wy=b._emscripten_bind_btSoftBodyWorldInfo_get_air_density_0=function(){return(Wy=b._emscripten_bind_btSoftBodyWorldInfo_get_air_density_0=
b.asm.gw).apply(null,arguments)},Xy=b._emscripten_bind_btSoftBodyWorldInfo_set_air_density_1=function(){return(Xy=b._emscripten_bind_btSoftBodyWorldInfo_set_air_density_1=b.asm.hw).apply(null,arguments)},Yy=b._emscripten_bind_btSoftBodyWorldInfo_get_water_density_0=function(){return(Yy=b._emscripten_bind_btSoftBodyWorldInfo_get_water_density_0=b.asm.iw).apply(null,arguments)},Zy=b._emscripten_bind_btSoftBodyWorldInfo_set_water_density_1=function(){return(Zy=b._emscripten_bind_btSoftBodyWorldInfo_set_water_density_1=
b.asm.jw).apply(null,arguments)},$y=b._emscripten_bind_btSoftBodyWorldInfo_get_water_offset_0=function(){return($y=b._emscripten_bind_btSoftBodyWorldInfo_get_water_offset_0=b.asm.kw).apply(null,arguments)},az=b._emscripten_bind_btSoftBodyWorldInfo_set_water_offset_1=function(){return(az=b._emscripten_bind_btSoftBodyWorldInfo_set_water_offset_1=b.asm.lw).apply(null,arguments)},bz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_maxDisplacement_0=function(){return(bz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_maxDisplacement_0=
b.asm.mw).apply(null,arguments)},cz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_maxDisplacement_1=function(){return(cz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_maxDisplacement_1=b.asm.nw).apply(null,arguments)},dz=b._emscripten_bind_btSoftBodyWorldInfo_get_water_normal_0=function(){return(dz=b._emscripten_bind_btSoftBodyWorldInfo_get_water_normal_0=b.asm.ow).apply(null,arguments)},ez=b._emscripten_bind_btSoftBodyWorldInfo_set_water_normal_1=function(){return(ez=b._emscripten_bind_btSoftBodyWorldInfo_set_water_normal_1=
b.asm.pw).apply(null,arguments)},fz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_broadphase_0=function(){return(fz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_broadphase_0=b.asm.qw).apply(null,arguments)},gz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_broadphase_1=function(){return(gz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_broadphase_1=b.asm.rw).apply(null,arguments)},hz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_dispatcher_0=function(){return(hz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_dispatcher_0=
b.asm.sw).apply(null,arguments)},iz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_dispatcher_1=function(){return(iz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_dispatcher_1=b.asm.tw).apply(null,arguments)},jz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_gravity_0=function(){return(jz=b._emscripten_bind_btSoftBodyWorldInfo_get_m_gravity_0=b.asm.uw).apply(null,arguments)},kz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_gravity_1=function(){return(kz=b._emscripten_bind_btSoftBodyWorldInfo_set_m_gravity_1=
b.asm.vw).apply(null,arguments)},lz=b._emscripten_bind_btSoftBodyWorldInfo___destroy___0=function(){return(lz=b._emscripten_bind_btSoftBodyWorldInfo___destroy___0=b.asm.ww).apply(null,arguments)},mz=b._emscripten_bind_Face_get_m_n_1=function(){return(mz=b._emscripten_bind_Face_get_m_n_1=b.asm.xw).apply(null,arguments)},nz=b._emscripten_bind_Face_set_m_n_2=function(){return(nz=b._emscripten_bind_Face_set_m_n_2=b.asm.yw).apply(null,arguments)},oz=b._emscripten_bind_Face_get_m_normal_0=function(){return(oz=
b._emscripten_bind_Face_get_m_normal_0=b.asm.zw).apply(null,arguments)},pz=b._emscripten_bind_Face_set_m_normal_1=function(){return(pz=b._emscripten_bind_Face_set_m_normal_1=b.asm.Aw).apply(null,arguments)},qz=b._emscripten_bind_Face_get_m_ra_0=function(){return(qz=b._emscripten_bind_Face_get_m_ra_0=b.asm.Bw).apply(null,arguments)},rz=b._emscripten_bind_Face_set_m_ra_1=function(){return(rz=b._emscripten_bind_Face_set_m_ra_1=b.asm.Cw).apply(null,arguments)},sz=b._emscripten_bind_Face___destroy___0=
function(){return(sz=b._emscripten_bind_Face___destroy___0=b.asm.Dw).apply(null,arguments)},tz=b._emscripten_bind_tFaceArray_size_0=function(){return(tz=b._emscripten_bind_tFaceArray_size_0=b.asm.Ew).apply(null,arguments)},uz=b._emscripten_bind_tFaceArray_at_1=function(){return(uz=b._emscripten_bind_tFaceArray_at_1=b.asm.Fw).apply(null,arguments)},vz=b._emscripten_bind_tFaceArray___destroy___0=function(){return(vz=b._emscripten_bind_tFaceArray___destroy___0=b.asm.Gw).apply(null,arguments)},wz=b._emscripten_bind_Node_get_m_x_0=
function(){return(wz=b._emscripten_bind_Node_get_m_x_0=b.asm.Hw).apply(null,arguments)},xz=b._emscripten_bind_Node_set_m_x_1=function(){return(xz=b._emscripten_bind_Node_set_m_x_1=b.asm.Iw).apply(null,arguments)},yz=b._emscripten_bind_Node_get_m_q_0=function(){return(yz=b._emscripten_bind_Node_get_m_q_0=b.asm.Jw).apply(null,arguments)},zz=b._emscripten_bind_Node_set_m_q_1=function(){return(zz=b._emscripten_bind_Node_set_m_q_1=b.asm.Kw).apply(null,arguments)},Az=b._emscripten_bind_Node_get_m_v_0=function(){return(Az=
b._emscripten_bind_Node_get_m_v_0=b.asm.Lw).apply(null,arguments)},Bz=b._emscripten_bind_Node_set_m_v_1=function(){return(Bz=b._emscripten_bind_Node_set_m_v_1=b.asm.Mw).apply(null,arguments)},Cz=b._emscripten_bind_Node_get_m_f_0=function(){return(Cz=b._emscripten_bind_Node_get_m_f_0=b.asm.Nw).apply(null,arguments)},Dz=b._emscripten_bind_Node_set_m_f_1=function(){return(Dz=b._emscripten_bind_Node_set_m_f_1=b.asm.Ow).apply(null,arguments)},Ez=b._emscripten_bind_Node_get_m_n_0=function(){return(Ez=b._emscripten_bind_Node_get_m_n_0=
b.asm.Pw).apply(null,arguments)},Fz=b._emscripten_bind_Node_set_m_n_1=function(){return(Fz=b._emscripten_bind_Node_set_m_n_1=b.asm.Qw).apply(null,arguments)},Gz=b._emscripten_bind_Node_get_m_im_0=function(){return(Gz=b._emscripten_bind_Node_get_m_im_0=b.asm.Rw).apply(null,arguments)},Hz=b._emscripten_bind_Node_set_m_im_1=function(){return(Hz=b._emscripten_bind_Node_set_m_im_1=b.asm.Sw).apply(null,arguments)},Iz=b._emscripten_bind_Node_get_m_area_0=function(){return(Iz=b._emscripten_bind_Node_get_m_area_0=
b.asm.Tw).apply(null,arguments)},Jz=b._emscripten_bind_Node_set_m_area_1=function(){return(Jz=b._emscripten_bind_Node_set_m_area_1=b.asm.Uw).apply(null,arguments)},Kz=b._emscripten_bind_Node___destroy___0=function(){return(Kz=b._emscripten_bind_Node___destroy___0=b.asm.Vw).apply(null,arguments)},Lz=b._emscripten_bind_tNodeArray_size_0=function(){return(Lz=b._emscripten_bind_tNodeArray_size_0=b.asm.Ww).apply(null,arguments)},Mz=b._emscripten_bind_tNodeArray_at_1=function(){return(Mz=b._emscripten_bind_tNodeArray_at_1=
b.asm.Xw).apply(null,arguments)},Nz=b._emscripten_bind_tNodeArray___destroy___0=function(){return(Nz=b._emscripten_bind_tNodeArray___destroy___0=b.asm.Yw).apply(null,arguments)},Oz=b._emscripten_bind_Material_get_m_kLST_0=function(){return(Oz=b._emscripten_bind_Material_get_m_kLST_0=b.asm.Zw).apply(null,arguments)},Pz=b._emscripten_bind_Material_set_m_kLST_1=function(){return(Pz=b._emscripten_bind_Material_set_m_kLST_1=b.asm._w).apply(null,arguments)},Qz=b._emscripten_bind_Material_get_m_kAST_0=function(){return(Qz=
b._emscripten_bind_Material_get_m_kAST_0=b.asm.$w).apply(null,arguments)},Rz=b._emscripten_bind_Material_set_m_kAST_1=function(){return(Rz=b._emscripten_bind_Material_set_m_kAST_1=b.asm.ax).apply(null,arguments)},Sz=b._emscripten_bind_Material_get_m_kVST_0=function(){return(Sz=b._emscripten_bind_Material_get_m_kVST_0=b.asm.bx).apply(null,arguments)},Tz=b._emscripten_bind_Material_set_m_kVST_1=function(){return(Tz=b._emscripten_bind_Material_set_m_kVST_1=b.asm.cx).apply(null,arguments)},Uz=b._emscripten_bind_Material_get_m_flags_0=
function(){return(Uz=b._emscripten_bind_Material_get_m_flags_0=b.asm.dx).apply(null,arguments)},Vz=b._emscripten_bind_Material_set_m_flags_1=function(){return(Vz=b._emscripten_bind_Material_set_m_flags_1=b.asm.ex).apply(null,arguments)},Wz=b._emscripten_bind_Material___destroy___0=function(){return(Wz=b._emscripten_bind_Material___destroy___0=b.asm.fx).apply(null,arguments)},Xz=b._emscripten_bind_tMaterialArray_size_0=function(){return(Xz=b._emscripten_bind_tMaterialArray_size_0=b.asm.gx).apply(null,
arguments)},Yz=b._emscripten_bind_tMaterialArray_at_1=function(){return(Yz=b._emscripten_bind_tMaterialArray_at_1=b.asm.hx).apply(null,arguments)},Zz=b._emscripten_bind_tMaterialArray___destroy___0=function(){return(Zz=b._emscripten_bind_tMaterialArray___destroy___0=b.asm.ix).apply(null,arguments)},$z=b._emscripten_bind_Anchor_get_m_node_0=function(){return($z=b._emscripten_bind_Anchor_get_m_node_0=b.asm.jx).apply(null,arguments)},aA=b._emscripten_bind_Anchor_set_m_node_1=function(){return(aA=b._emscripten_bind_Anchor_set_m_node_1=
b.asm.kx).apply(null,arguments)},bA=b._emscripten_bind_Anchor_get_m_local_0=function(){return(bA=b._emscripten_bind_Anchor_get_m_local_0=b.asm.lx).apply(null,arguments)},cA=b._emscripten_bind_Anchor_set_m_local_1=function(){return(cA=b._emscripten_bind_Anchor_set_m_local_1=b.asm.mx).apply(null,arguments)},dA=b._emscripten_bind_Anchor_get_m_body_0=function(){return(dA=b._emscripten_bind_Anchor_get_m_body_0=b.asm.nx).apply(null,arguments)},eA=b._emscripten_bind_Anchor_set_m_body_1=function(){return(eA=
b._emscripten_bind_Anchor_set_m_body_1=b.asm.ox).apply(null,arguments)},fA=b._emscripten_bind_Anchor_get_m_influence_0=function(){return(fA=b._emscripten_bind_Anchor_get_m_influence_0=b.asm.px).apply(null,arguments)},gA=b._emscripten_bind_Anchor_set_m_influence_1=function(){return(gA=b._emscripten_bind_Anchor_set_m_influence_1=b.asm.qx).apply(null,arguments)},hA=b._emscripten_bind_Anchor_get_m_c0_0=function(){return(hA=b._emscripten_bind_Anchor_get_m_c0_0=b.asm.rx).apply(null,arguments)},iA=b._emscripten_bind_Anchor_set_m_c0_1=
function(){return(iA=b._emscripten_bind_Anchor_set_m_c0_1=b.asm.sx).apply(null,arguments)},jA=b._emscripten_bind_Anchor_get_m_c1_0=function(){return(jA=b._emscripten_bind_Anchor_get_m_c1_0=b.asm.tx).apply(null,arguments)},kA=b._emscripten_bind_Anchor_set_m_c1_1=function(){return(kA=b._emscripten_bind_Anchor_set_m_c1_1=b.asm.ux).apply(null,arguments)},lA=b._emscripten_bind_Anchor_get_m_c2_0=function(){return(lA=b._emscripten_bind_Anchor_get_m_c2_0=b.asm.vx).apply(null,arguments)},mA=b._emscripten_bind_Anchor_set_m_c2_1=
function(){return(mA=b._emscripten_bind_Anchor_set_m_c2_1=b.asm.wx).apply(null,arguments)},nA=b._emscripten_bind_Anchor___destroy___0=function(){return(nA=b._emscripten_bind_Anchor___destroy___0=b.asm.xx).apply(null,arguments)},oA=b._emscripten_bind_tAnchorArray_size_0=function(){return(oA=b._emscripten_bind_tAnchorArray_size_0=b.asm.yx).apply(null,arguments)},pA=b._emscripten_bind_tAnchorArray_at_1=function(){return(pA=b._emscripten_bind_tAnchorArray_at_1=b.asm.zx).apply(null,arguments)},qA=b._emscripten_bind_tAnchorArray_clear_0=
function(){return(qA=b._emscripten_bind_tAnchorArray_clear_0=b.asm.Ax).apply(null,arguments)},rA=b._emscripten_bind_tAnchorArray_push_back_1=function(){return(rA=b._emscripten_bind_tAnchorArray_push_back_1=b.asm.Bx).apply(null,arguments)},sA=b._emscripten_bind_tAnchorArray_pop_back_0=function(){return(sA=b._emscripten_bind_tAnchorArray_pop_back_0=b.asm.Cx).apply(null,arguments)},tA=b._emscripten_bind_tAnchorArray___destroy___0=function(){return(tA=b._emscripten_bind_tAnchorArray___destroy___0=b.asm.Dx).apply(null,
arguments)},uA=b._emscripten_bind_Config_get_kVCF_0=function(){return(uA=b._emscripten_bind_Config_get_kVCF_0=b.asm.Ex).apply(null,arguments)},vA=b._emscripten_bind_Config_set_kVCF_1=function(){return(vA=b._emscripten_bind_Config_set_kVCF_1=b.asm.Fx).apply(null,arguments)},wA=b._emscripten_bind_Config_get_kDP_0=function(){return(wA=b._emscripten_bind_Config_get_kDP_0=b.asm.Gx).apply(null,arguments)},xA=b._emscripten_bind_Config_set_kDP_1=function(){return(xA=b._emscripten_bind_Config_set_kDP_1=b.asm.Hx).apply(null,
arguments)},yA=b._emscripten_bind_Config_get_kDG_0=function(){return(yA=b._emscripten_bind_Config_get_kDG_0=b.asm.Ix).apply(null,arguments)},zA=b._emscripten_bind_Config_set_kDG_1=function(){return(zA=b._emscripten_bind_Config_set_kDG_1=b.asm.Jx).apply(null,arguments)},AA=b._emscripten_bind_Config_get_kLF_0=function(){return(AA=b._emscripten_bind_Config_get_kLF_0=b.asm.Kx).apply(null,arguments)},BA=b._emscripten_bind_Config_set_kLF_1=function(){return(BA=b._emscripten_bind_Config_set_kLF_1=b.asm.Lx).apply(null,
arguments)},CA=b._emscripten_bind_Config_get_kPR_0=function(){return(CA=b._emscripten_bind_Config_get_kPR_0=b.asm.Mx).apply(null,arguments)},DA=b._emscripten_bind_Config_set_kPR_1=function(){return(DA=b._emscripten_bind_Config_set_kPR_1=b.asm.Nx).apply(null,arguments)},EA=b._emscripten_bind_Config_get_kVC_0=function(){return(EA=b._emscripten_bind_Config_get_kVC_0=b.asm.Ox).apply(null,arguments)},FA=b._emscripten_bind_Config_set_kVC_1=function(){return(FA=b._emscripten_bind_Config_set_kVC_1=b.asm.Px).apply(null,
arguments)},GA=b._emscripten_bind_Config_get_kDF_0=function(){return(GA=b._emscripten_bind_Config_get_kDF_0=b.asm.Qx).apply(null,arguments)},HA=b._emscripten_bind_Config_set_kDF_1=function(){return(HA=b._emscripten_bind_Config_set_kDF_1=b.asm.Rx).apply(null,arguments)},IA=b._emscripten_bind_Config_get_kMT_0=function(){return(IA=b._emscripten_bind_Config_get_kMT_0=b.asm.Sx).apply(null,arguments)},JA=b._emscripten_bind_Config_set_kMT_1=function(){return(JA=b._emscripten_bind_Config_set_kMT_1=b.asm.Tx).apply(null,
arguments)},KA=b._emscripten_bind_Config_get_kCHR_0=function(){return(KA=b._emscripten_bind_Config_get_kCHR_0=b.asm.Ux).apply(null,arguments)},LA=b._emscripten_bind_Config_set_kCHR_1=function(){return(LA=b._emscripten_bind_Config_set_kCHR_1=b.asm.Vx).apply(null,arguments)},MA=b._emscripten_bind_Config_get_kKHR_0=function(){return(MA=b._emscripten_bind_Config_get_kKHR_0=b.asm.Wx).apply(null,arguments)},NA=b._emscripten_bind_Config_set_kKHR_1=function(){return(NA=b._emscripten_bind_Config_set_kKHR_1=
b.asm.Xx).apply(null,arguments)},OA=b._emscripten_bind_Config_get_kSHR_0=function(){return(OA=b._emscripten_bind_Config_get_kSHR_0=b.asm.Yx).apply(null,arguments)},PA=b._emscripten_bind_Config_set_kSHR_1=function(){return(PA=b._emscripten_bind_Config_set_kSHR_1=b.asm.Zx).apply(null,arguments)},QA=b._emscripten_bind_Config_get_kAHR_0=function(){return(QA=b._emscripten_bind_Config_get_kAHR_0=b.asm._x).apply(null,arguments)},RA=b._emscripten_bind_Config_set_kAHR_1=function(){return(RA=b._emscripten_bind_Config_set_kAHR_1=
b.asm.$x).apply(null,arguments)},SA=b._emscripten_bind_Config_get_kSRHR_CL_0=function(){return(SA=b._emscripten_bind_Config_get_kSRHR_CL_0=b.asm.ay).apply(null,arguments)},TA=b._emscripten_bind_Config_set_kSRHR_CL_1=function(){return(TA=b._emscripten_bind_Config_set_kSRHR_CL_1=b.asm.by).apply(null,arguments)},UA=b._emscripten_bind_Config_get_kSKHR_CL_0=function(){return(UA=b._emscripten_bind_Config_get_kSKHR_CL_0=b.asm.cy).apply(null,arguments)},VA=b._emscripten_bind_Config_set_kSKHR_CL_1=function(){return(VA=
b._emscripten_bind_Config_set_kSKHR_CL_1=b.asm.dy).apply(null,arguments)},WA=b._emscripten_bind_Config_get_kSSHR_CL_0=function(){return(WA=b._emscripten_bind_Config_get_kSSHR_CL_0=b.asm.ey).apply(null,arguments)},XA=b._emscripten_bind_Config_set_kSSHR_CL_1=function(){return(XA=b._emscripten_bind_Config_set_kSSHR_CL_1=b.asm.fy).apply(null,arguments)},YA=b._emscripten_bind_Config_get_kSR_SPLT_CL_0=function(){return(YA=b._emscripten_bind_Config_get_kSR_SPLT_CL_0=b.asm.gy).apply(null,arguments)},ZA=b._emscripten_bind_Config_set_kSR_SPLT_CL_1=
function(){return(ZA=b._emscripten_bind_Config_set_kSR_SPLT_CL_1=b.asm.hy).apply(null,arguments)},$A=b._emscripten_bind_Config_get_kSK_SPLT_CL_0=function(){return($A=b._emscripten_bind_Config_get_kSK_SPLT_CL_0=b.asm.iy).apply(null,arguments)},aB=b._emscripten_bind_Config_set_kSK_SPLT_CL_1=function(){return(aB=b._emscripten_bind_Config_set_kSK_SPLT_CL_1=b.asm.jy).apply(null,arguments)},bB=b._emscripten_bind_Config_get_kSS_SPLT_CL_0=function(){return(bB=b._emscripten_bind_Config_get_kSS_SPLT_CL_0=b.asm.ky).apply(null,
arguments)},cB=b._emscripten_bind_Config_set_kSS_SPLT_CL_1=function(){return(cB=b._emscripten_bind_Config_set_kSS_SPLT_CL_1=b.asm.ly).apply(null,arguments)},dB=b._emscripten_bind_Config_get_maxvolume_0=function(){return(dB=b._emscripten_bind_Config_get_maxvolume_0=b.asm.my).apply(null,arguments)},eB=b._emscripten_bind_Config_set_maxvolume_1=function(){return(eB=b._emscripten_bind_Config_set_maxvolume_1=b.asm.ny).apply(null,arguments)},fB=b._emscripten_bind_Config_get_timescale_0=function(){return(fB=
b._emscripten_bind_Config_get_timescale_0=b.asm.oy).apply(null,arguments)},gB=b._emscripten_bind_Config_set_timescale_1=function(){return(gB=b._emscripten_bind_Config_set_timescale_1=b.asm.py).apply(null,arguments)},hB=b._emscripten_bind_Config_get_viterations_0=function(){return(hB=b._emscripten_bind_Config_get_viterations_0=b.asm.qy).apply(null,arguments)},iB=b._emscripten_bind_Config_set_viterations_1=function(){return(iB=b._emscripten_bind_Config_set_viterations_1=b.asm.ry).apply(null,arguments)},
jB=b._emscripten_bind_Config_get_piterations_0=function(){return(jB=b._emscripten_bind_Config_get_piterations_0=b.asm.sy).apply(null,arguments)},kB=b._emscripten_bind_Config_set_piterations_1=function(){return(kB=b._emscripten_bind_Config_set_piterations_1=b.asm.ty).apply(null,arguments)},lB=b._emscripten_bind_Config_get_diterations_0=function(){return(lB=b._emscripten_bind_Config_get_diterations_0=b.asm.uy).apply(null,arguments)},mB=b._emscripten_bind_Config_set_diterations_1=function(){return(mB=
b._emscripten_bind_Config_set_diterations_1=b.asm.vy).apply(null,arguments)},nB=b._emscripten_bind_Config_get_citerations_0=function(){return(nB=b._emscripten_bind_Config_get_citerations_0=b.asm.wy).apply(null,arguments)},oB=b._emscripten_bind_Config_set_citerations_1=function(){return(oB=b._emscripten_bind_Config_set_citerations_1=b.asm.xy).apply(null,arguments)},pB=b._emscripten_bind_Config_get_collisions_0=function(){return(pB=b._emscripten_bind_Config_get_collisions_0=b.asm.yy).apply(null,arguments)},
qB=b._emscripten_bind_Config_set_collisions_1=function(){return(qB=b._emscripten_bind_Config_set_collisions_1=b.asm.zy).apply(null,arguments)},rB=b._emscripten_bind_Config___destroy___0=function(){return(rB=b._emscripten_bind_Config___destroy___0=b.asm.Ay).apply(null,arguments)},sB=b._emscripten_bind_btSoftBody_btSoftBody_4=function(){return(sB=b._emscripten_bind_btSoftBody_btSoftBody_4=b.asm.By).apply(null,arguments)},tB=b._emscripten_bind_btSoftBody_checkLink_2=function(){return(tB=b._emscripten_bind_btSoftBody_checkLink_2=
b.asm.Cy).apply(null,arguments)},uB=b._emscripten_bind_btSoftBody_checkFace_3=function(){return(uB=b._emscripten_bind_btSoftBody_checkFace_3=b.asm.Dy).apply(null,arguments)},vB=b._emscripten_bind_btSoftBody_appendMaterial_0=function(){return(vB=b._emscripten_bind_btSoftBody_appendMaterial_0=b.asm.Ey).apply(null,arguments)},wB=b._emscripten_bind_btSoftBody_appendNode_2=function(){return(wB=b._emscripten_bind_btSoftBody_appendNode_2=b.asm.Fy).apply(null,arguments)},xB=b._emscripten_bind_btSoftBody_appendLink_4=
function(){return(xB=b._emscripten_bind_btSoftBody_appendLink_4=b.asm.Gy).apply(null,arguments)},yB=b._emscripten_bind_btSoftBody_appendFace_4=function(){return(yB=b._emscripten_bind_btSoftBody_appendFace_4=b.asm.Hy).apply(null,arguments)},zB=b._emscripten_bind_btSoftBody_appendTetra_5=function(){return(zB=b._emscripten_bind_btSoftBody_appendTetra_5=b.asm.Iy).apply(null,arguments)},AB=b._emscripten_bind_btSoftBody_appendAnchor_4=function(){return(AB=b._emscripten_bind_btSoftBody_appendAnchor_4=b.asm.Jy).apply(null,
arguments)},BB=b._emscripten_bind_btSoftBody_addForce_1=function(){return(BB=b._emscripten_bind_btSoftBody_addForce_1=b.asm.Ky).apply(null,arguments)},CB=b._emscripten_bind_btSoftBody_addForce_2=function(){return(CB=b._emscripten_bind_btSoftBody_addForce_2=b.asm.Ly).apply(null,arguments)},DB=b._emscripten_bind_btSoftBody_addAeroForceToNode_2=function(){return(DB=b._emscripten_bind_btSoftBody_addAeroForceToNode_2=b.asm.My).apply(null,arguments)},EB=b._emscripten_bind_btSoftBody_getTotalMass_0=function(){return(EB=
b._emscripten_bind_btSoftBody_getTotalMass_0=b.asm.Ny).apply(null,arguments)},FB=b._emscripten_bind_btSoftBody_setTotalMass_2=function(){return(FB=b._emscripten_bind_btSoftBody_setTotalMass_2=b.asm.Oy).apply(null,arguments)},GB=b._emscripten_bind_btSoftBody_setMass_2=function(){return(GB=b._emscripten_bind_btSoftBody_setMass_2=b.asm.Py).apply(null,arguments)},HB=b._emscripten_bind_btSoftBody_transform_1=function(){return(HB=b._emscripten_bind_btSoftBody_transform_1=b.asm.Qy).apply(null,arguments)},
IB=b._emscripten_bind_btSoftBody_translate_1=function(){return(IB=b._emscripten_bind_btSoftBody_translate_1=b.asm.Ry).apply(null,arguments)},JB=b._emscripten_bind_btSoftBody_rotate_1=function(){return(JB=b._emscripten_bind_btSoftBody_rotate_1=b.asm.Sy).apply(null,arguments)},KB=b._emscripten_bind_btSoftBody_scale_1=function(){return(KB=b._emscripten_bind_btSoftBody_scale_1=b.asm.Ty).apply(null,arguments)},LB=b._emscripten_bind_btSoftBody_generateClusters_1=function(){return(LB=b._emscripten_bind_btSoftBody_generateClusters_1=
b.asm.Uy).apply(null,arguments)},MB=b._emscripten_bind_btSoftBody_generateClusters_2=function(){return(MB=b._emscripten_bind_btSoftBody_generateClusters_2=b.asm.Vy).apply(null,arguments)},NB=b._emscripten_bind_btSoftBody_generateBendingConstraints_2=function(){return(NB=b._emscripten_bind_btSoftBody_generateBendingConstraints_2=b.asm.Wy).apply(null,arguments)},OB=b._emscripten_bind_btSoftBody_upcast_1=function(){return(OB=b._emscripten_bind_btSoftBody_upcast_1=b.asm.Xy).apply(null,arguments)},PB=
b._emscripten_bind_btSoftBody_getRestLengthScale_0=function(){return(PB=b._emscripten_bind_btSoftBody_getRestLengthScale_0=b.asm.Yy).apply(null,arguments)},QB=b._emscripten_bind_btSoftBody_setRestLengthScale_1=function(){return(QB=b._emscripten_bind_btSoftBody_setRestLengthScale_1=b.asm.Zy).apply(null,arguments)},RB=b._emscripten_bind_btSoftBody_setAnisotropicFriction_2=function(){return(RB=b._emscripten_bind_btSoftBody_setAnisotropicFriction_2=b.asm._y).apply(null,arguments)},SB=b._emscripten_bind_btSoftBody_getCollisionShape_0=
function(){return(SB=b._emscripten_bind_btSoftBody_getCollisionShape_0=b.asm.$y).apply(null,arguments)},TB=b._emscripten_bind_btSoftBody_setContactProcessingThreshold_1=function(){return(TB=b._emscripten_bind_btSoftBody_setContactProcessingThreshold_1=b.asm.az).apply(null,arguments)},UB=b._emscripten_bind_btSoftBody_setActivationState_1=function(){return(UB=b._emscripten_bind_btSoftBody_setActivationState_1=b.asm.bz).apply(null,arguments)},VB=b._emscripten_bind_btSoftBody_forceActivationState_1=function(){return(VB=
b._emscripten_bind_btSoftBody_forceActivationState_1=b.asm.cz).apply(null,arguments)},WB=b._emscripten_bind_btSoftBody_activate_0=function(){return(WB=b._emscripten_bind_btSoftBody_activate_0=b.asm.dz).apply(null,arguments)},XB=b._emscripten_bind_btSoftBody_activate_1=function(){return(XB=b._emscripten_bind_btSoftBody_activate_1=b.asm.ez).apply(null,arguments)},YB=b._emscripten_bind_btSoftBody_isActive_0=function(){return(YB=b._emscripten_bind_btSoftBody_isActive_0=b.asm.fz).apply(null,arguments)},
ZB=b._emscripten_bind_btSoftBody_isKinematicObject_0=function(){return(ZB=b._emscripten_bind_btSoftBody_isKinematicObject_0=b.asm.gz).apply(null,arguments)},$B=b._emscripten_bind_btSoftBody_isStaticObject_0=function(){return($B=b._emscripten_bind_btSoftBody_isStaticObject_0=b.asm.hz).apply(null,arguments)},aC=b._emscripten_bind_btSoftBody_isStaticOrKinematicObject_0=function(){return(aC=b._emscripten_bind_btSoftBody_isStaticOrKinematicObject_0=b.asm.iz).apply(null,arguments)},bC=b._emscripten_bind_btSoftBody_getRestitution_0=
function(){return(bC=b._emscripten_bind_btSoftBody_getRestitution_0=b.asm.jz).apply(null,arguments)},cC=b._emscripten_bind_btSoftBody_getFriction_0=function(){return(cC=b._emscripten_bind_btSoftBody_getFriction_0=b.asm.kz).apply(null,arguments)},dC=b._emscripten_bind_btSoftBody_getRollingFriction_0=function(){return(dC=b._emscripten_bind_btSoftBody_getRollingFriction_0=b.asm.lz).apply(null,arguments)},eC=b._emscripten_bind_btSoftBody_setRestitution_1=function(){return(eC=b._emscripten_bind_btSoftBody_setRestitution_1=
b.asm.mz).apply(null,arguments)},fC=b._emscripten_bind_btSoftBody_setFriction_1=function(){return(fC=b._emscripten_bind_btSoftBody_setFriction_1=b.asm.nz).apply(null,arguments)},gC=b._emscripten_bind_btSoftBody_setRollingFriction_1=function(){return(gC=b._emscripten_bind_btSoftBody_setRollingFriction_1=b.asm.oz).apply(null,arguments)},hC=b._emscripten_bind_btSoftBody_getWorldTransform_0=function(){return(hC=b._emscripten_bind_btSoftBody_getWorldTransform_0=b.asm.pz).apply(null,arguments)},iC=b._emscripten_bind_btSoftBody_getCollisionFlags_0=
function(){return(iC=b._emscripten_bind_btSoftBody_getCollisionFlags_0=b.asm.qz).apply(null,arguments)},jC=b._emscripten_bind_btSoftBody_setCollisionFlags_1=function(){return(jC=b._emscripten_bind_btSoftBody_setCollisionFlags_1=b.asm.rz).apply(null,arguments)},kC=b._emscripten_bind_btSoftBody_setWorldTransform_1=function(){return(kC=b._emscripten_bind_btSoftBody_setWorldTransform_1=b.asm.sz).apply(null,arguments)},lC=b._emscripten_bind_btSoftBody_setCollisionShape_1=function(){return(lC=b._emscripten_bind_btSoftBody_setCollisionShape_1=
b.asm.tz).apply(null,arguments)},mC=b._emscripten_bind_btSoftBody_setCcdMotionThreshold_1=function(){return(mC=b._emscripten_bind_btSoftBody_setCcdMotionThreshold_1=b.asm.uz).apply(null,arguments)},nC=b._emscripten_bind_btSoftBody_setCcdSweptSphereRadius_1=function(){return(nC=b._emscripten_bind_btSoftBody_setCcdSweptSphereRadius_1=b.asm.vz).apply(null,arguments)},oC=b._emscripten_bind_btSoftBody_getUserIndex_0=function(){return(oC=b._emscripten_bind_btSoftBody_getUserIndex_0=b.asm.wz).apply(null,
arguments)},pC=b._emscripten_bind_btSoftBody_setUserIndex_1=function(){return(pC=b._emscripten_bind_btSoftBody_setUserIndex_1=b.asm.xz).apply(null,arguments)},qC=b._emscripten_bind_btSoftBody_getUserPointer_0=function(){return(qC=b._emscripten_bind_btSoftBody_getUserPointer_0=b.asm.yz).apply(null,arguments)},rC=b._emscripten_bind_btSoftBody_setUserPointer_1=function(){return(rC=b._emscripten_bind_btSoftBody_setUserPointer_1=b.asm.zz).apply(null,arguments)},sC=b._emscripten_bind_btSoftBody_getBroadphaseHandle_0=
function(){return(sC=b._emscripten_bind_btSoftBody_getBroadphaseHandle_0=b.asm.Az).apply(null,arguments)},tC=b._emscripten_bind_btSoftBody_get_m_cfg_0=function(){return(tC=b._emscripten_bind_btSoftBody_get_m_cfg_0=b.asm.Bz).apply(null,arguments)},uC=b._emscripten_bind_btSoftBody_set_m_cfg_1=function(){return(uC=b._emscripten_bind_btSoftBody_set_m_cfg_1=b.asm.Cz).apply(null,arguments)},vC=b._emscripten_bind_btSoftBody_get_m_nodes_0=function(){return(vC=b._emscripten_bind_btSoftBody_get_m_nodes_0=b.asm.Dz).apply(null,
arguments)},wC=b._emscripten_bind_btSoftBody_set_m_nodes_1=function(){return(wC=b._emscripten_bind_btSoftBody_set_m_nodes_1=b.asm.Ez).apply(null,arguments)},xC=b._emscripten_bind_btSoftBody_get_m_faces_0=function(){return(xC=b._emscripten_bind_btSoftBody_get_m_faces_0=b.asm.Fz).apply(null,arguments)},yC=b._emscripten_bind_btSoftBody_set_m_faces_1=function(){return(yC=b._emscripten_bind_btSoftBody_set_m_faces_1=b.asm.Gz).apply(null,arguments)},zC=b._emscripten_bind_btSoftBody_get_m_materials_0=function(){return(zC=
b._emscripten_bind_btSoftBody_get_m_materials_0=b.asm.Hz).apply(null,arguments)},AC=b._emscripten_bind_btSoftBody_set_m_materials_1=function(){return(AC=b._emscripten_bind_btSoftBody_set_m_materials_1=b.asm.Iz).apply(null,arguments)},BC=b._emscripten_bind_btSoftBody_get_m_anchors_0=function(){return(BC=b._emscripten_bind_btSoftBody_get_m_anchors_0=b.asm.Jz).apply(null,arguments)},CC=b._emscripten_bind_btSoftBody_set_m_anchors_1=function(){return(CC=b._emscripten_bind_btSoftBody_set_m_anchors_1=b.asm.Kz).apply(null,
arguments)},DC=b._emscripten_bind_btSoftBody___destroy___0=function(){return(DC=b._emscripten_bind_btSoftBody___destroy___0=b.asm.Lz).apply(null,arguments)},EC=b._emscripten_bind_btSoftBodyRigidBodyCollisionConfiguration_btSoftBodyRigidBodyCollisionConfiguration_0=function(){return(EC=b._emscripten_bind_btSoftBodyRigidBodyCollisionConfiguration_btSoftBodyRigidBodyCollisionConfiguration_0=b.asm.Mz).apply(null,arguments)},FC=b._emscripten_bind_btSoftBodyRigidBodyCollisionConfiguration_btSoftBodyRigidBodyCollisionConfiguration_1=
function(){return(FC=b._emscripten_bind_btSoftBodyRigidBodyCollisionConfiguration_btSoftBodyRigidBodyCollisionConfiguration_1=b.asm.Nz).apply(null,arguments)},GC=b._emscripten_bind_btSoftBodyRigidBodyCollisionConfiguration___destroy___0=function(){return(GC=b._emscripten_bind_btSoftBodyRigidBodyCollisionConfiguration___destroy___0=b.asm.Oz).apply(null,arguments)},HC=b._emscripten_bind_btDefaultSoftBodySolver_btDefaultSoftBodySolver_0=function(){return(HC=b._emscripten_bind_btDefaultSoftBodySolver_btDefaultSoftBodySolver_0=
b.asm.Pz).apply(null,arguments)},IC=b._emscripten_bind_btDefaultSoftBodySolver___destroy___0=function(){return(IC=b._emscripten_bind_btDefaultSoftBodySolver___destroy___0=b.asm.Qz).apply(null,arguments)},JC=b._emscripten_bind_btSoftBodyArray_size_0=function(){return(JC=b._emscripten_bind_btSoftBodyArray_size_0=b.asm.Rz).apply(null,arguments)},KC=b._emscripten_bind_btSoftBodyArray_at_1=function(){return(KC=b._emscripten_bind_btSoftBodyArray_at_1=b.asm.Sz).apply(null,arguments)},LC=b._emscripten_bind_btSoftBodyArray___destroy___0=
function(){return(LC=b._emscripten_bind_btSoftBodyArray___destroy___0=b.asm.Tz).apply(null,arguments)},MC=b._emscripten_bind_btSoftRigidDynamicsWorld_btSoftRigidDynamicsWorld_5=function(){return(MC=b._emscripten_bind_btSoftRigidDynamicsWorld_btSoftRigidDynamicsWorld_5=b.asm.Uz).apply(null,arguments)},NC=b._emscripten_bind_btSoftRigidDynamicsWorld_addSoftBody_3=function(){return(NC=b._emscripten_bind_btSoftRigidDynamicsWorld_addSoftBody_3=b.asm.Vz).apply(null,arguments)},OC=b._emscripten_bind_btSoftRigidDynamicsWorld_removeSoftBody_1=
function(){return(OC=b._emscripten_bind_btSoftRigidDynamicsWorld_removeSoftBody_1=b.asm.Wz).apply(null,arguments)},PC=b._emscripten_bind_btSoftRigidDynamicsWorld_removeCollisionObject_1=function(){return(PC=b._emscripten_bind_btSoftRigidDynamicsWorld_removeCollisionObject_1=b.asm.Xz).apply(null,arguments)},QC=b._emscripten_bind_btSoftRigidDynamicsWorld_getWorldInfo_0=function(){return(QC=b._emscripten_bind_btSoftRigidDynamicsWorld_getWorldInfo_0=b.asm.Yz).apply(null,arguments)},RC=b._emscripten_bind_btSoftRigidDynamicsWorld_getSoftBodyArray_0=
function(){return(RC=b._emscripten_bind_btSoftRigidDynamicsWorld_getSoftBodyArray_0=b.asm.Zz).apply(null,arguments)},SC=b._emscripten_bind_btSoftRigidDynamicsWorld_getDispatcher_0=function(){return(SC=b._emscripten_bind_btSoftRigidDynamicsWorld_getDispatcher_0=b.asm._z).apply(null,arguments)},TC=b._emscripten_bind_btSoftRigidDynamicsWorld_rayTest_3=function(){return(TC=b._emscripten_bind_btSoftRigidDynamicsWorld_rayTest_3=b.asm.$z).apply(null,arguments)},UC=b._emscripten_bind_btSoftRigidDynamicsWorld_getPairCache_0=
function(){return(UC=b._emscripten_bind_btSoftRigidDynamicsWorld_getPairCache_0=b.asm.aA).apply(null,arguments)},VC=b._emscripten_bind_btSoftRigidDynamicsWorld_getDispatchInfo_0=function(){return(VC=b._emscripten_bind_btSoftRigidDynamicsWorld_getDispatchInfo_0=b.asm.bA).apply(null,arguments)},WC=b._emscripten_bind_btSoftRigidDynamicsWorld_addCollisionObject_1=function(){return(WC=b._emscripten_bind_btSoftRigidDynamicsWorld_addCollisionObject_1=b.asm.cA).apply(null,arguments)},XC=b._emscripten_bind_btSoftRigidDynamicsWorld_addCollisionObject_2=
function(){return(XC=b._emscripten_bind_btSoftRigidDynamicsWorld_addCollisionObject_2=b.asm.dA).apply(null,arguments)},YC=b._emscripten_bind_btSoftRigidDynamicsWorld_addCollisionObject_3=function(){return(YC=b._emscripten_bind_btSoftRigidDynamicsWorld_addCollisionObject_3=b.asm.eA).apply(null,arguments)},ZC=b._emscripten_bind_btSoftRigidDynamicsWorld_getBroadphase_0=function(){return(ZC=b._emscripten_bind_btSoftRigidDynamicsWorld_getBroadphase_0=b.asm.fA).apply(null,arguments)},$C=b._emscripten_bind_btSoftRigidDynamicsWorld_convexSweepTest_5=
function(){return($C=b._emscripten_bind_btSoftRigidDynamicsWorld_convexSweepTest_5=b.asm.gA).apply(null,arguments)},aD=b._emscripten_bind_btSoftRigidDynamicsWorld_contactPairTest_3=function(){return(aD=b._emscripten_bind_btSoftRigidDynamicsWorld_contactPairTest_3=b.asm.hA).apply(null,arguments)},bD=b._emscripten_bind_btSoftRigidDynamicsWorld_contactTest_2=function(){return(bD=b._emscripten_bind_btSoftRigidDynamicsWorld_contactTest_2=b.asm.iA).apply(null,arguments)},cD=b._emscripten_bind_btSoftRigidDynamicsWorld_updateSingleAabb_1=
function(){return(cD=b._emscripten_bind_btSoftRigidDynamicsWorld_updateSingleAabb_1=b.asm.jA).apply(null,arguments)},dD=b._emscripten_bind_btSoftRigidDynamicsWorld_setDebugDrawer_1=function(){return(dD=b._emscripten_bind_btSoftRigidDynamicsWorld_setDebugDrawer_1=b.asm.kA).apply(null,arguments)},eD=b._emscripten_bind_btSoftRigidDynamicsWorld_getDebugDrawer_0=function(){return(eD=b._emscripten_bind_btSoftRigidDynamicsWorld_getDebugDrawer_0=b.asm.lA).apply(null,arguments)},fD=b._emscripten_bind_btSoftRigidDynamicsWorld_debugDrawWorld_0=
function(){return(fD=b._emscripten_bind_btSoftRigidDynamicsWorld_debugDrawWorld_0=b.asm.mA).apply(null,arguments)},gD=b._emscripten_bind_btSoftRigidDynamicsWorld_debugDrawObject_3=function(){return(gD=b._emscripten_bind_btSoftRigidDynamicsWorld_debugDrawObject_3=b.asm.nA).apply(null,arguments)},hD=b._emscripten_bind_btSoftRigidDynamicsWorld_setGravity_1=function(){return(hD=b._emscripten_bind_btSoftRigidDynamicsWorld_setGravity_1=b.asm.oA).apply(null,arguments)},iD=b._emscripten_bind_btSoftRigidDynamicsWorld_getGravity_0=
function(){return(iD=b._emscripten_bind_btSoftRigidDynamicsWorld_getGravity_0=b.asm.pA).apply(null,arguments)},jD=b._emscripten_bind_btSoftRigidDynamicsWorld_addRigidBody_1=function(){return(jD=b._emscripten_bind_btSoftRigidDynamicsWorld_addRigidBody_1=b.asm.qA).apply(null,arguments)},kD=b._emscripten_bind_btSoftRigidDynamicsWorld_addRigidBody_3=function(){return(kD=b._emscripten_bind_btSoftRigidDynamicsWorld_addRigidBody_3=b.asm.rA).apply(null,arguments)},lD=b._emscripten_bind_btSoftRigidDynamicsWorld_removeRigidBody_1=
function(){return(lD=b._emscripten_bind_btSoftRigidDynamicsWorld_removeRigidBody_1=b.asm.sA).apply(null,arguments)},mD=b._emscripten_bind_btSoftRigidDynamicsWorld_addConstraint_1=function(){return(mD=b._emscripten_bind_btSoftRigidDynamicsWorld_addConstraint_1=b.asm.tA).apply(null,arguments)},nD=b._emscripten_bind_btSoftRigidDynamicsWorld_addConstraint_2=function(){return(nD=b._emscripten_bind_btSoftRigidDynamicsWorld_addConstraint_2=b.asm.uA).apply(null,arguments)},oD=b._emscripten_bind_btSoftRigidDynamicsWorld_removeConstraint_1=
function(){return(oD=b._emscripten_bind_btSoftRigidDynamicsWorld_removeConstraint_1=b.asm.vA).apply(null,arguments)},pD=b._emscripten_bind_btSoftRigidDynamicsWorld_stepSimulation_1=function(){return(pD=b._emscripten_bind_btSoftRigidDynamicsWorld_stepSimulation_1=b.asm.wA).apply(null,arguments)},qD=b._emscripten_bind_btSoftRigidDynamicsWorld_stepSimulation_2=function(){return(qD=b._emscripten_bind_btSoftRigidDynamicsWorld_stepSimulation_2=b.asm.xA).apply(null,arguments)},rD=b._emscripten_bind_btSoftRigidDynamicsWorld_stepSimulation_3=
function(){return(rD=b._emscripten_bind_btSoftRigidDynamicsWorld_stepSimulation_3=b.asm.yA).apply(null,arguments)},sD=b._emscripten_bind_btSoftRigidDynamicsWorld_setContactAddedCallback_1=function(){return(sD=b._emscripten_bind_btSoftRigidDynamicsWorld_setContactAddedCallback_1=b.asm.zA).apply(null,arguments)},tD=b._emscripten_bind_btSoftRigidDynamicsWorld_setContactProcessedCallback_1=function(){return(tD=b._emscripten_bind_btSoftRigidDynamicsWorld_setContactProcessedCallback_1=b.asm.AA).apply(null,
arguments)},uD=b._emscripten_bind_btSoftRigidDynamicsWorld_setContactDestroyedCallback_1=function(){return(uD=b._emscripten_bind_btSoftRigidDynamicsWorld_setContactDestroyedCallback_1=b.asm.BA).apply(null,arguments)},vD=b._emscripten_bind_btSoftRigidDynamicsWorld_addAction_1=function(){return(vD=b._emscripten_bind_btSoftRigidDynamicsWorld_addAction_1=b.asm.CA).apply(null,arguments)},wD=b._emscripten_bind_btSoftRigidDynamicsWorld_removeAction_1=function(){return(wD=b._emscripten_bind_btSoftRigidDynamicsWorld_removeAction_1=
b.asm.DA).apply(null,arguments)},xD=b._emscripten_bind_btSoftRigidDynamicsWorld_getSolverInfo_0=function(){return(xD=b._emscripten_bind_btSoftRigidDynamicsWorld_getSolverInfo_0=b.asm.EA).apply(null,arguments)},yD=b._emscripten_bind_btSoftRigidDynamicsWorld_setInternalTickCallback_1=function(){return(yD=b._emscripten_bind_btSoftRigidDynamicsWorld_setInternalTickCallback_1=b.asm.FA).apply(null,arguments)},zD=b._emscripten_bind_btSoftRigidDynamicsWorld_setInternalTickCallback_2=function(){return(zD=
b._emscripten_bind_btSoftRigidDynamicsWorld_setInternalTickCallback_2=b.asm.GA).apply(null,arguments)},AD=b._emscripten_bind_btSoftRigidDynamicsWorld_setInternalTickCallback_3=function(){return(AD=b._emscripten_bind_btSoftRigidDynamicsWorld_setInternalTickCallback_3=b.asm.HA).apply(null,arguments)},BD=b._emscripten_bind_btSoftRigidDynamicsWorld___destroy___0=function(){return(BD=b._emscripten_bind_btSoftRigidDynamicsWorld___destroy___0=b.asm.IA).apply(null,arguments)},CD=b._emscripten_bind_btSoftBodyHelpers_btSoftBodyHelpers_0=
function(){return(CD=b._emscripten_bind_btSoftBodyHelpers_btSoftBodyHelpers_0=b.asm.JA).apply(null,arguments)},DD=b._emscripten_bind_btSoftBodyHelpers_CreateRope_5=function(){return(DD=b._emscripten_bind_btSoftBodyHelpers_CreateRope_5=b.asm.KA).apply(null,arguments)},ED=b._emscripten_bind_btSoftBodyHelpers_CreatePatch_9=function(){return(ED=b._emscripten_bind_btSoftBodyHelpers_CreatePatch_9=b.asm.LA).apply(null,arguments)},FD=b._emscripten_bind_btSoftBodyHelpers_CreatePatchUV_10=function(){return(FD=
b._emscripten_bind_btSoftBodyHelpers_CreatePatchUV_10=b.asm.MA).apply(null,arguments)},GD=b._emscripten_bind_btSoftBodyHelpers_CreateEllipsoid_4=function(){return(GD=b._emscripten_bind_btSoftBodyHelpers_CreateEllipsoid_4=b.asm.NA).apply(null,arguments)},HD=b._emscripten_bind_btSoftBodyHelpers_CreateFromTriMesh_5=function(){return(HD=b._emscripten_bind_btSoftBodyHelpers_CreateFromTriMesh_5=b.asm.OA).apply(null,arguments)},ID=b._emscripten_bind_btSoftBodyHelpers_CreateFromConvexHull_4=function(){return(ID=
b._emscripten_bind_btSoftBodyHelpers_CreateFromConvexHull_4=b.asm.PA).apply(null,arguments)},JD=b._emscripten_bind_btSoftBodyHelpers___destroy___0=function(){return(JD=b._emscripten_bind_btSoftBodyHelpers___destroy___0=b.asm.QA).apply(null,arguments)},KD=b._emscripten_enum_PHY_ScalarType_PHY_FLOAT=function(){return(KD=b._emscripten_enum_PHY_ScalarType_PHY_FLOAT=b.asm.RA).apply(null,arguments)},LD=b._emscripten_enum_PHY_ScalarType_PHY_DOUBLE=function(){return(LD=b._emscripten_enum_PHY_ScalarType_PHY_DOUBLE=
b.asm.SA).apply(null,arguments)},MD=b._emscripten_enum_PHY_ScalarType_PHY_INTEGER=function(){return(MD=b._emscripten_enum_PHY_ScalarType_PHY_INTEGER=b.asm.TA).apply(null,arguments)},ND=b._emscripten_enum_PHY_ScalarType_PHY_SHORT=function(){return(ND=b._emscripten_enum_PHY_ScalarType_PHY_SHORT=b.asm.UA).apply(null,arguments)},OD=b._emscripten_enum_PHY_ScalarType_PHY_FIXEDPOINT88=function(){return(OD=b._emscripten_enum_PHY_ScalarType_PHY_FIXEDPOINT88=b.asm.VA).apply(null,arguments)},PD=b._emscripten_enum_PHY_ScalarType_PHY_UCHAR=
function(){return(PD=b._emscripten_enum_PHY_ScalarType_PHY_UCHAR=b.asm.WA).apply(null,arguments)},QD=b._emscripten_enum_eGIMPACT_SHAPE_TYPE_CONST_GIMPACT_COMPOUND_SHAPE=function(){return(QD=b._emscripten_enum_eGIMPACT_SHAPE_TYPE_CONST_GIMPACT_COMPOUND_SHAPE=b.asm.XA).apply(null,arguments)},RD=b._emscripten_enum_eGIMPACT_SHAPE_TYPE_CONST_GIMPACT_TRIMESH_SHAPE_PART=function(){return(RD=b._emscripten_enum_eGIMPACT_SHAPE_TYPE_CONST_GIMPACT_TRIMESH_SHAPE_PART=b.asm.YA).apply(null,arguments)},SD=b._emscripten_enum_eGIMPACT_SHAPE_TYPE_CONST_GIMPACT_TRIMESH_SHAPE=
function(){return(SD=b._emscripten_enum_eGIMPACT_SHAPE_TYPE_CONST_GIMPACT_TRIMESH_SHAPE=b.asm.ZA).apply(null,arguments)},TD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_ERP=function(){return(TD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_ERP=b.asm._A).apply(null,arguments)},UD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_STOP_ERP=function(){return(UD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_STOP_ERP=b.asm.$A).apply(null,arguments)},VD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_CFM=
function(){return(VD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_CFM=b.asm.aB).apply(null,arguments)},WD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_STOP_CFM=function(){return(WD=b._emscripten_enum_btConstraintParams_BT_CONSTRAINT_STOP_CFM=b.asm.bB).apply(null,arguments)};b._malloc=function(){return(b._malloc=b.asm.dB).apply(null,arguments)};b.UTF8ToString=Ma;
b.addFunction=function(a){if(!Aa){Aa=new WeakMap;for(var c=Ua.length,d=0;d<0+c;d++){var e=kb(d);e&&Aa.set(e,d)}}if(Aa.has(a))return Aa.get(a);if(za.length)c=za.pop();else{try{Ua.grow(1)}catch(f){if(!(f instanceof RangeError))throw f;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=Ua.length-1}try{d=c,Ua.set(d,a),lb[d]=a}catch(f){if(!(f instanceof TypeError))throw f;d=c;Ua.set(d,a);lb[d]=a}Aa.set(a,c);return c};var XD;cb=function YD(){XD||ZD();XD||(cb=YD)};
function ZD(){function a(){if(!XD&&(XD=!0,b.calledRun=!0,!Ka)){Ya=!0;jb(Wa);ja(b);if(b.onRuntimeInitialized)b.onRuntimeInitialized();if(b.postRun)for("function"==typeof b.postRun&&(b.postRun=[b.postRun]);b.postRun.length;){var c=b.postRun.shift();Xa.unshift(c)}jb(Xa)}}if(!(0<ab)){if(b.preRun)for("function"==typeof b.preRun&&(b.preRun=[b.preRun]);b.preRun.length;)Za();jb(Va);0<ab||(b.setStatus?(b.setStatus("Running..."),setTimeout(function(){setTimeout(function(){b.setStatus("")},1);a()},1)):a())}}
b.run=ZD;if(b.preInit)for("function"==typeof b.preInit&&(b.preInit=[b.preInit]);0<b.preInit.length;)b.preInit.pop()();ZD();function g(){}g.prototype=Object.create(g.prototype);g.prototype.constructor=g;g.prototype.fB=g;g.gB={};b.WrapperObject=g;function h(a){return(a||g).gB}b.getCache=h;function k(a,c){var d=h(c),e=d[a];if(e)return e;e=Object.create((c||g).prototype);e.eB=a;return d[a]=e}b.wrapPointer=k;b.castObject=function(a,c){return k(a.eB,c)};b.NULL=k(0);
b.destroy=function(a){if(!a.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";a.__destroy__();delete h(a.fB)[a.eB]};b.compare=function(a,c){return a.eB===c.eB};b.getPointer=function(a){return a.eB};b.getClass=function(a){return a.fB};var $D=0,aE=0,bE=0,cE=[],dE=0;function eE(){if(dE){for(var a=0;a<cE.length;a++)b._free(cE[a]);cE.length=0;b._free($D);$D=0;aE+=dE;dE=0}$D||(aE+=128,($D=b._malloc(aE))||xa(void 0));bE=0}
function fE(a,c){$D||xa(void 0);a=a.length*c.BYTES_PER_ELEMENT;a=a+7&-8;bE+a>=aE?(0<a||xa(void 0),dE+=a,c=b._malloc(a),cE.push(c)):(c=$D+bE,bE+=a);return c}function gE(a,c,d){d>>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var e=0;e<a.length;e++)c[d+e]=a[e]}
function hE(a){if("string"===typeof a){for(var c=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++d)&1023);127>=e?++c:c=2047>=e?c+2:65535>=e?c+3:c+4}c=Array(c+1);e=c.length;d=0;if(0<e){e=d+e-1;for(var f=0;f<a.length;++f){var m=a.charCodeAt(f);if(55296<=m&&57343>=m){var y=a.charCodeAt(++f);m=65536+((m&1023)<<10)|y&1023}if(127>=m){if(d>=e)break;c[d++]=m}else{if(2047>=m){if(d+1>=e)break;c[d++]=192|m>>6}else{if(65535>=m){if(d+2>=e)break;c[d++]=224|
m>>12}else{if(d+3>=e)break;c[d++]=240|m>>18;c[d++]=128|m>>12&63}c[d++]=128|m>>6&63}c[d++]=128|m&63}}c[d]=0}a=fE(c,Pa);gE(c,Pa,a);return a}return a}function iE(a){if("object"===typeof a){var c=fE(a,Ra);gE(a,Ra,c);return c}return a}function l(){throw"cannot construct a btCollisionShape, no constructor in IDL";}l.prototype=Object.create(g.prototype);l.prototype.constructor=l;l.prototype.fB=l;l.gB={};b.btCollisionShape=l;
l.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pb(c,a)};l.prototype.getLocalScaling=function(){return k(qb(this.eB),n)};l.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);rb(d,a,c)};l.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sb(c,a)};l.prototype.getMargin=function(){return tb(this.eB)};l.prototype.__destroy__=function(){ub(this.eB)};
function jE(){throw"cannot construct a btCollisionWorld, no constructor in IDL";}jE.prototype=Object.create(g.prototype);jE.prototype.constructor=jE;jE.prototype.fB=jE;jE.gB={};b.btCollisionWorld=jE;jE.prototype.getDispatcher=function(){return k(vb(this.eB),kE)};jE.prototype.rayTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);wb(e,a,c,d)};jE.prototype.getPairCache=function(){return k(xb(this.eB),lE)};
jE.prototype.getDispatchInfo=function(){return k(yb(this.eB),q)};jE.prototype.addCollisionObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?zb(e,a):void 0===d?Ab(e,a,c):Bb(e,a,c,d)};jE.prototype.removeCollisionObject=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Cb(c,a)};jE.prototype.getBroadphase=function(){return k(Db(this.eB),mE)};
jE.prototype.convexSweepTest=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);Fb(m,a,c,d,e,f)};jE.prototype.contactPairTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Gb(e,a,c,d)};
jE.prototype.contactTest=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Hb(d,a,c)};jE.prototype.updateSingleAabb=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ib(c,a)};jE.prototype.setDebugDrawer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Jb(c,a)};jE.prototype.getDebugDrawer=function(){return k(Kb(this.eB),nE)};jE.prototype.debugDrawWorld=function(){Lb(this.eB)};
jE.prototype.debugDrawObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Mb(e,a,c,d)};jE.prototype.__destroy__=function(){Nb(this.eB)};function r(){throw"cannot construct a btCollisionObject, no constructor in IDL";}r.prototype=Object.create(g.prototype);r.prototype.constructor=r;r.prototype.fB=r;r.gB={};b.btCollisionObject=r;
r.prototype.setAnisotropicFriction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ob(d,a,c)};r.prototype.getCollisionShape=function(){return k(Pb(this.eB),l)};r.prototype.setContactProcessingThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Qb(c,a)};r.prototype.setActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rb(c,a)};
r.prototype.forceActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Sb(c,a)};r.prototype.activate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);void 0===a?Tb(c):Ub(c,a)};r.prototype.isActive=function(){return!!Vb(this.eB)};r.prototype.isKinematicObject=function(){return!!Wb(this.eB)};r.prototype.isStaticObject=function(){return!!Xb(this.eB)};r.prototype.isStaticOrKinematicObject=function(){return!!Yb(this.eB)};r.prototype.getRestitution=function(){return Zb(this.eB)};
r.prototype.getFriction=function(){return $b(this.eB)};r.prototype.getRollingFriction=function(){return ac(this.eB)};r.prototype.setRestitution=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bc(c,a)};r.prototype.setFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cc(c,a)};r.prototype.setRollingFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dc(c,a)};r.prototype.getWorldTransform=function(){return k(ec(this.eB),t)};r.prototype.getCollisionFlags=function(){return gc(this.eB)};
r.prototype.setCollisionFlags=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hc(c,a)};r.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ic(c,a)};r.prototype.setCollisionShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jc(c,a)};r.prototype.setCcdMotionThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kc(c,a)};r.prototype.setCcdSweptSphereRadius=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);lc(c,a)};
r.prototype.getUserIndex=function(){return mc(this.eB)};r.prototype.setUserIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nc(c,a)};r.prototype.getUserPointer=function(){return k(oc(this.eB),oE)};r.prototype.setUserPointer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pc(c,a)};r.prototype.getBroadphaseHandle=function(){return k(qc(this.eB),pE)};r.prototype.__destroy__=function(){sc(this.eB)};
function qE(){throw"cannot construct a btConcaveShape, no constructor in IDL";}qE.prototype=Object.create(l.prototype);qE.prototype.constructor=qE;qE.prototype.fB=qE;qE.gB={};b.btConcaveShape=qE;qE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tc(c,a)};qE.prototype.getLocalScaling=function(){return k(uc(this.eB),n)};qE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);vc(d,a,c)};
qE.prototype.__destroy__=function(){wc(this.eB)};function rE(){throw"cannot construct a btCollisionAlgorithm, no constructor in IDL";}rE.prototype=Object.create(g.prototype);rE.prototype.constructor=rE;rE.prototype.fB=rE;rE.gB={};b.btCollisionAlgorithm=rE;rE.prototype.__destroy__=function(){xc(this.eB)};function sE(){throw"cannot construct a btTypedConstraint, no constructor in IDL";}sE.prototype=Object.create(g.prototype);sE.prototype.constructor=sE;sE.prototype.fB=sE;sE.gB={};
b.btTypedConstraint=sE;sE.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yc(c,a)};sE.prototype.getBreakingImpulseThreshold=function(){return zc(this.eB)};sE.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ac(c,a)};sE.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return Bc(d,a,c)};
sE.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Cc(e,a,c,d)};sE.prototype.__destroy__=function(){Dc(this.eB)};function tE(){throw"cannot construct a btDynamicsWorld, no constructor in IDL";}tE.prototype=Object.create(jE.prototype);tE.prototype.constructor=tE;tE.prototype.fB=tE;tE.gB={};b.btDynamicsWorld=tE;tE.prototype.addAction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fc(c,a)};
tE.prototype.removeAction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gc(c,a)};tE.prototype.getSolverInfo=function(){return k(Hc(this.eB),u)};tE.prototype.setInternalTickCallback=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?Ic(e,a):void 0===d?Jc(e,a,c):Kc(e,a,c,d)};tE.prototype.getDispatcher=function(){return k(Lc(this.eB),kE)};
tE.prototype.rayTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Mc(e,a,c,d)};tE.prototype.getPairCache=function(){return k(Nc(this.eB),lE)};tE.prototype.getDispatchInfo=function(){return k(Oc(this.eB),q)};
tE.prototype.addCollisionObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?Pc(e,a):void 0===d?Qc(e,a,c):Rc(e,a,c,d)};tE.prototype.removeCollisionObject=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Sc(c,a)};tE.prototype.getBroadphase=function(){return k(Tc(this.eB),mE)};
tE.prototype.convexSweepTest=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);Uc(m,a,c,d,e,f)};tE.prototype.contactPairTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Vc(e,a,c,d)};
tE.prototype.contactTest=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Yc(d,a,c)};tE.prototype.updateSingleAabb=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zc(c,a)};tE.prototype.setDebugDrawer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);$c(c,a)};tE.prototype.getDebugDrawer=function(){return k(ad(this.eB),nE)};tE.prototype.debugDrawWorld=function(){bd(this.eB)};
tE.prototype.debugDrawObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);cd(e,a,c,d)};tE.prototype.__destroy__=function(){dd(this.eB)};function nE(){throw"cannot construct a btIDebugDraw, no constructor in IDL";}nE.prototype=Object.create(g.prototype);nE.prototype.constructor=nE;nE.prototype.fB=nE;nE.gB={};b.btIDebugDraw=nE;
nE.prototype.drawLine=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);ed(e,a,c,d)};nE.prototype.drawContactPoint=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);fd(m,a,c,d,e,f)};
nE.prototype.reportErrorWarning=function(a){var c=this.eB;eE();a=a&&"object"===typeof a?a.eB:hE(a);gd(c,a)};nE.prototype.draw3dText=function(a,c){var d=this.eB;eE();a&&"object"===typeof a&&(a=a.eB);c=c&&"object"===typeof c?c.eB:hE(c);hd(d,a,c)};nE.prototype.setDebugMode=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jd(c,a)};nE.prototype.getDebugMode=function(){return kd(this.eB)};nE.prototype.__destroy__=function(){ld(this.eB)};
function n(a,c,d){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);this.eB=void 0===a?md():void 0===c?_emscripten_bind_btVector3_btVector3_1(a):void 0===d?_emscripten_bind_btVector3_btVector3_2(a,c):nd(a,c,d);h(n)[this.eB]=this}n.prototype=Object.create(g.prototype);n.prototype.constructor=n;n.prototype.fB=n;n.gB={};b.btVector3=n;n.prototype.length=n.prototype.length=function(){return od(this.eB)};n.prototype.x=n.prototype.x=function(){return pd(this.eB)};
n.prototype.y=n.prototype.y=function(){return qd(this.eB)};n.prototype.z=n.prototype.z=function(){return rd(this.eB)};n.prototype.setX=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sd(c,a)};n.prototype.setY=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);td(c,a)};n.prototype.setZ=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ud(c,a)};
n.prototype.setValue=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);vd(e,a,c,d)};n.prototype.normalize=n.prototype.normalize=function(){wd(this.eB)};n.prototype.rotate=n.prototype.rotate=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return k(xd(d,a,c),n)};n.prototype.dot=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return yd(c,a)};
n.prototype.op_mul=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(zd(c,a),n)};n.prototype.op_add=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Ad(c,a),n)};n.prototype.op_sub=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Bd(c,a),n)};n.prototype.__destroy__=function(){Cd(this.eB)};function uE(){throw"cannot construct a btQuadWord, no constructor in IDL";}uE.prototype=Object.create(g.prototype);uE.prototype.constructor=uE;
uE.prototype.fB=uE;uE.gB={};b.btQuadWord=uE;uE.prototype.x=uE.prototype.x=function(){return Dd(this.eB)};uE.prototype.y=uE.prototype.y=function(){return Ed(this.eB)};uE.prototype.z=uE.prototype.z=function(){return Fd(this.eB)};uE.prototype.w=uE.prototype.w=function(){return Gd(this.eB)};uE.prototype.setX=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hd(c,a)};uE.prototype.setY=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Id(c,a)};
uE.prototype.setZ=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Jd(c,a)};uE.prototype.setW=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Kd(c,a)};uE.prototype.__destroy__=function(){Ld(this.eB)};function vE(){throw"cannot construct a btMotionState, no constructor in IDL";}vE.prototype=Object.create(g.prototype);vE.prototype.constructor=vE;vE.prototype.fB=vE;vE.gB={};b.btMotionState=vE;
vE.prototype.getWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Md(c,a)};vE.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Nd(c,a)};vE.prototype.__destroy__=function(){Od(this.eB)};function v(){throw"cannot construct a RayResultCallback, no constructor in IDL";}v.prototype=Object.create(g.prototype);v.prototype.constructor=v;v.prototype.fB=v;v.gB={};b.RayResultCallback=v;v.prototype.hasHit=function(){return!!Pd(this.eB)};
v.prototype.get_m_collisionFilterGroup=v.prototype.hB=function(){return Qd(this.eB)};v.prototype.set_m_collisionFilterGroup=v.prototype.jB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rd(c,a)};Object.defineProperty(v.prototype,"m_collisionFilterGroup",{get:v.prototype.hB,set:v.prototype.jB});v.prototype.get_m_collisionFilterMask=v.prototype.iB=function(){return Sd(this.eB)};
v.prototype.set_m_collisionFilterMask=v.prototype.kB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Td(c,a)};Object.defineProperty(v.prototype,"m_collisionFilterMask",{get:v.prototype.iB,set:v.prototype.kB});v.prototype.get_m_closestHitFraction=v.prototype.lB=function(){return Ud(this.eB)};v.prototype.set_m_closestHitFraction=v.prototype.mB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vd(c,a)};Object.defineProperty(v.prototype,"m_closestHitFraction",{get:v.prototype.lB,set:v.prototype.mB});
v.prototype.get_m_collisionObject=v.prototype.sB=function(){return k(Wd(this.eB),r)};v.prototype.set_m_collisionObject=v.prototype.AB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xd(c,a)};Object.defineProperty(v.prototype,"m_collisionObject",{get:v.prototype.sB,set:v.prototype.AB});v.prototype.get_m_flags=v.prototype.pB=function(){return Yd(this.eB)};v.prototype.set_m_flags=v.prototype.qB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zd(c,a)};
Object.defineProperty(v.prototype,"m_flags",{get:v.prototype.pB,set:v.prototype.qB});v.prototype.__destroy__=function(){$d(this.eB)};function wE(){throw"cannot construct a ContactResultCallback, no constructor in IDL";}wE.prototype=Object.create(g.prototype);wE.prototype.constructor=wE;wE.prototype.fB=wE;wE.gB={};b.ContactResultCallback=wE;
wE.prototype.addSingleResult=function(a,c,d,e,f,m,y){var W=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);return ae(W,a,c,d,e,f,m,y)};wE.prototype.__destroy__=function(){be(this.eB)};function w(){throw"cannot construct a ConvexResultCallback, no constructor in IDL";}w.prototype=Object.create(g.prototype);
w.prototype.constructor=w;w.prototype.fB=w;w.gB={};b.ConvexResultCallback=w;w.prototype.hasHit=function(){return!!ce(this.eB)};w.prototype.get_m_collisionFilterGroup=w.prototype.hB=function(){return de(this.eB)};w.prototype.set_m_collisionFilterGroup=w.prototype.jB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ee(c,a)};Object.defineProperty(w.prototype,"m_collisionFilterGroup",{get:w.prototype.hB,set:w.prototype.jB});w.prototype.get_m_collisionFilterMask=w.prototype.iB=function(){return fe(this.eB)};
w.prototype.set_m_collisionFilterMask=w.prototype.kB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ge(c,a)};Object.defineProperty(w.prototype,"m_collisionFilterMask",{get:w.prototype.iB,set:w.prototype.kB});w.prototype.get_m_closestHitFraction=w.prototype.lB=function(){return he(this.eB)};w.prototype.set_m_closestHitFraction=w.prototype.mB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ie(c,a)};Object.defineProperty(w.prototype,"m_closestHitFraction",{get:w.prototype.lB,set:w.prototype.mB});
w.prototype.__destroy__=function(){je(this.eB)};function xE(){throw"cannot construct a btConvexShape, no constructor in IDL";}xE.prototype=Object.create(l.prototype);xE.prototype.constructor=xE;xE.prototype.fB=xE;xE.gB={};b.btConvexShape=xE;xE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ke(c,a)};xE.prototype.getLocalScaling=function(){return k(le(this.eB),n)};
xE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);me(d,a,c)};xE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ne(c,a)};xE.prototype.getMargin=function(){return oe(this.eB)};xE.prototype.__destroy__=function(){pe(this.eB)};function yE(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=qe(a,c);h(yE)[this.eB]=this}yE.prototype=Object.create(l.prototype);
yE.prototype.constructor=yE;yE.prototype.fB=yE;yE.gB={};b.btCapsuleShape=yE;yE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);re(c,a)};yE.prototype.getMargin=function(){return se(this.eB)};yE.prototype.getUpAxis=function(){return te(this.eB)};yE.prototype.getRadius=function(){return ue(this.eB)};yE.prototype.getHalfHeight=function(){return ve(this.eB)};yE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);we(c,a)};
yE.prototype.getLocalScaling=function(){return k(xe(this.eB),n)};yE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);ye(d,a,c)};yE.prototype.__destroy__=function(){ze(this.eB)};function zE(a){a&&"object"===typeof a&&(a=a.eB);this.eB=Ae(a);h(zE)[this.eB]=this}zE.prototype=Object.create(l.prototype);zE.prototype.constructor=zE;zE.prototype.fB=zE;zE.gB={};b.btCylinderShape=zE;
zE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Be(c,a)};zE.prototype.getMargin=function(){return Ce(this.eB)};zE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);De(c,a)};zE.prototype.getLocalScaling=function(){return k(Ee(this.eB),n)};zE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Fe(d,a,c)};zE.prototype.__destroy__=function(){Ge(this.eB)};
function AE(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=He(a,c);h(AE)[this.eB]=this}AE.prototype=Object.create(l.prototype);AE.prototype.constructor=AE;AE.prototype.fB=AE;AE.gB={};b.btConeShape=AE;AE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ie(c,a)};AE.prototype.getLocalScaling=function(){return k(Je(this.eB),n)};
AE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ke(d,a,c)};AE.prototype.__destroy__=function(){Le(this.eB)};function BE(){throw"cannot construct a btStridingMeshInterface, no constructor in IDL";}BE.prototype=Object.create(g.prototype);BE.prototype.constructor=BE;BE.prototype.fB=BE;BE.gB={};b.btStridingMeshInterface=BE;BE.prototype.setScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Me(c,a)};
BE.prototype.__destroy__=function(){Ne(this.eB)};function CE(){throw"cannot construct a btTriangleMeshShape, no constructor in IDL";}CE.prototype=Object.create(qE.prototype);CE.prototype.constructor=CE;CE.prototype.fB=CE;CE.gB={};b.btTriangleMeshShape=CE;CE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Oe(c,a)};CE.prototype.getLocalScaling=function(){return k(Pe(this.eB),n)};
CE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Qe(d,a,c)};CE.prototype.__destroy__=function(){Re(this.eB)};function DE(){throw"cannot construct a btPrimitiveManagerBase, no constructor in IDL";}DE.prototype=Object.create(g.prototype);DE.prototype.constructor=DE;DE.prototype.fB=DE;DE.gB={};b.btPrimitiveManagerBase=DE;DE.prototype.is_trimesh=function(){return!!Se(this.eB)};DE.prototype.get_primitive_count=function(){return Te(this.eB)};
DE.prototype.get_primitive_box=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ue(d,a,c)};DE.prototype.get_primitive_triangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ve(d,a,c)};DE.prototype.__destroy__=function(){We(this.eB)};function EE(){throw"cannot construct a btGImpactShapeInterface, no constructor in IDL";}EE.prototype=Object.create(qE.prototype);EE.prototype.constructor=EE;EE.prototype.fB=EE;
EE.gB={};b.btGImpactShapeInterface=EE;EE.prototype.updateBound=function(){Xe(this.eB)};EE.prototype.postUpdate=function(){Ye(this.eB)};EE.prototype.getShapeType=function(){return Ze(this.eB)};EE.prototype.getName=function(){return Ma($e(this.eB))};EE.prototype.getGImpactShapeType=function(){return af(this.eB)};EE.prototype.getPrimitiveManager=function(){return k(bf(this.eB),DE)};EE.prototype.getNumChildShapes=function(){return cf(this.eB)};EE.prototype.childrenHasTransform=function(){return!!df(this.eB)};
EE.prototype.needsRetrieveTriangles=function(){return!!ef(this.eB)};EE.prototype.needsRetrieveTetrahedrons=function(){return!!ff(this.eB)};EE.prototype.getBulletTriangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);gf(d,a,c)};EE.prototype.getBulletTetrahedron=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);hf(d,a,c)};
EE.prototype.getChildShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(jf(c,a),l)};EE.prototype.getChildTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(kf(c,a),t)};EE.prototype.setChildTransform=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);lf(d,a,c)};EE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mf(c,a)};
EE.prototype.getLocalScaling=function(){return k(nf(this.eB),n)};EE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);of(d,a,c)};EE.prototype.__destroy__=function(){pf(this.eB)};function FE(){throw"cannot construct a btActivatingCollisionAlgorithm, no constructor in IDL";}FE.prototype=Object.create(rE.prototype);FE.prototype.constructor=FE;FE.prototype.fB=FE;FE.gB={};b.btActivatingCollisionAlgorithm=FE;
FE.prototype.__destroy__=function(){qf(this.eB)};function GE(a){a&&"object"===typeof a&&(a=a.eB);this.eB=void 0===a?rf():sf(a);h(GE)[this.eB]=this}GE.prototype=Object.create(g.prototype);GE.prototype.constructor=GE;GE.prototype.fB=GE;GE.gB={};b.btDefaultCollisionConfiguration=GE;GE.prototype.__destroy__=function(){tf(this.eB)};function kE(){throw"cannot construct a btDispatcher, no constructor in IDL";}kE.prototype=Object.create(g.prototype);kE.prototype.constructor=kE;kE.prototype.fB=kE;kE.gB={};
b.btDispatcher=kE;kE.prototype.getNumManifolds=function(){return uf(this.eB)};kE.prototype.getManifoldByIndexInternal=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(vf(c,a),HE)};kE.prototype.__destroy__=function(){wf(this.eB)};
function IE(a,c,d,e,f){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);this.eB=void 0===e?xf(a,c,d):void 0===f?_emscripten_bind_btGeneric6DofConstraint_btGeneric6DofConstraint_4(a,c,d,e):yf(a,c,d,e,f);h(IE)[this.eB]=this}IE.prototype=Object.create(sE.prototype);IE.prototype.constructor=IE;IE.prototype.fB=IE;IE.gB={};b.btGeneric6DofConstraint=IE;
IE.prototype.setLinearLowerLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zf(c,a)};IE.prototype.setLinearUpperLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Af(c,a)};IE.prototype.setAngularLowerLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Bf(c,a)};IE.prototype.setAngularUpperLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Cf(c,a)};IE.prototype.getFrameOffsetA=function(){return k(Df(this.eB),t)};
IE.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ef(c,a)};IE.prototype.getBreakingImpulseThreshold=function(){return Ff(this.eB)};IE.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gf(c,a)};IE.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return Hf(d,a,c)};
IE.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);If(e,a,c,d)};IE.prototype.__destroy__=function(){Jf(this.eB)};function x(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=Kf(a,c,d,e);h(x)[this.eB]=this}x.prototype=Object.create(tE.prototype);x.prototype.constructor=x;x.prototype.fB=x;x.gB={};
b.btDiscreteDynamicsWorld=x;x.prototype.setGravity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Lf(c,a)};x.prototype.getGravity=function(){return k(Mf(this.eB),n)};x.prototype.addRigidBody=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?Nf(e,a):void 0===d?_emscripten_bind_btDiscreteDynamicsWorld_addRigidBody_2(e,a,c):Of(e,a,c,d)};
x.prototype.removeRigidBody=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pf(c,a)};x.prototype.addConstraint=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);void 0===c?Qf(d,a):Rf(d,a,c)};x.prototype.removeConstraint=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Sf(c,a)};
x.prototype.stepSimulation=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);return void 0===c?Tf(e,a):void 0===d?Uf(e,a,c):Vf(e,a,c,d)};x.prototype.setContactAddedCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wf(c,a)};x.prototype.setContactProcessedCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xf(c,a)};
x.prototype.setContactDestroyedCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Yf(c,a)};x.prototype.getDispatcher=function(){return k(Zf(this.eB),kE)};x.prototype.rayTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);$f(e,a,c,d)};x.prototype.getPairCache=function(){return k(ag(this.eB),lE)};x.prototype.getDispatchInfo=function(){return k(bg(this.eB),q)};
x.prototype.addCollisionObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?cg(e,a):void 0===d?dg(e,a,c):eg(e,a,c,d)};x.prototype.removeCollisionObject=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fg(c,a)};x.prototype.getBroadphase=function(){return k(gg(this.eB),mE)};
x.prototype.convexSweepTest=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);hg(m,a,c,d,e,f)};x.prototype.contactPairTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);ig(e,a,c,d)};
x.prototype.contactTest=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);jg(d,a,c)};x.prototype.updateSingleAabb=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kg(c,a)};x.prototype.setDebugDrawer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);lg(c,a)};x.prototype.getDebugDrawer=function(){return k(mg(this.eB),nE)};x.prototype.debugDrawWorld=function(){ng(this.eB)};
x.prototype.debugDrawObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);og(e,a,c,d)};x.prototype.addAction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pg(c,a)};x.prototype.removeAction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qg(c,a)};x.prototype.getSolverInfo=function(){return k(rg(this.eB),u)};
x.prototype.setInternalTickCallback=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?sg(e,a):void 0===d?tg(e,a,c):ug(e,a,c,d)};x.prototype.__destroy__=function(){vg(this.eB)};function JE(){throw"cannot construct a btVehicleRaycaster, no constructor in IDL";}JE.prototype=Object.create(g.prototype);JE.prototype.constructor=JE;JE.prototype.fB=JE;JE.gB={};b.btVehicleRaycaster=JE;
JE.prototype.castRay=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);wg(e,a,c,d)};JE.prototype.__destroy__=function(){xg(this.eB)};function KE(){throw"cannot construct a btActionInterface, no constructor in IDL";}KE.prototype=Object.create(g.prototype);KE.prototype.constructor=KE;KE.prototype.fB=KE;KE.gB={};b.btActionInterface=KE;
KE.prototype.updateAction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);yg(d,a,c)};KE.prototype.__destroy__=function(){zg(this.eB)};function z(){this.eB=Ag();h(z)[this.eB]=this}z.prototype=Object.create(r.prototype);z.prototype.constructor=z;z.prototype.fB=z;z.gB={};b.btGhostObject=z;z.prototype.getNumOverlappingObjects=function(){return Bg(this.eB)};
z.prototype.getOverlappingObject=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Cg(c,a),r)};z.prototype.setAnisotropicFriction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Dg(d,a,c)};z.prototype.getCollisionShape=function(){return k(Eg(this.eB),l)};z.prototype.setContactProcessingThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fg(c,a)};
z.prototype.setActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gg(c,a)};z.prototype.forceActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hg(c,a)};z.prototype.activate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);void 0===a?Ig(c):Jg(c,a)};z.prototype.isActive=function(){return!!Kg(this.eB)};z.prototype.isKinematicObject=function(){return!!Lg(this.eB)};z.prototype.isStaticObject=function(){return!!Mg(this.eB)};
z.prototype.isStaticOrKinematicObject=function(){return!!Ng(this.eB)};z.prototype.getRestitution=function(){return Og(this.eB)};z.prototype.getFriction=function(){return Pg(this.eB)};z.prototype.getRollingFriction=function(){return Qg(this.eB)};z.prototype.setRestitution=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rg(c,a)};z.prototype.setFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Sg(c,a)};
z.prototype.setRollingFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Tg(c,a)};z.prototype.getWorldTransform=function(){return k(Ug(this.eB),t)};z.prototype.getCollisionFlags=function(){return Vg(this.eB)};z.prototype.setCollisionFlags=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wg(c,a)};z.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xg(c,a)};
z.prototype.setCollisionShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Yg(c,a)};z.prototype.setCcdMotionThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zg(c,a)};z.prototype.setCcdSweptSphereRadius=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);$g(c,a)};z.prototype.getUserIndex=function(){return ah(this.eB)};z.prototype.setUserIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bh(c,a)};
z.prototype.getUserPointer=function(){return k(ch(this.eB),oE)};z.prototype.setUserPointer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dh(c,a)};z.prototype.getBroadphaseHandle=function(){return k(eh(this.eB),pE)};z.prototype.__destroy__=function(){fh(this.eB)};function LE(){throw"cannot construct a btSoftBodySolver, no constructor in IDL";}LE.prototype=Object.create(g.prototype);LE.prototype.constructor=LE;LE.prototype.fB=LE;LE.gB={};b.btSoftBodySolver=LE;LE.prototype.__destroy__=function(){gh(this.eB)};
function oE(){throw"cannot construct a VoidPtr, no constructor in IDL";}oE.prototype=Object.create(g.prototype);oE.prototype.constructor=oE;oE.prototype.fB=oE;oE.gB={};b.VoidPtr=oE;oE.prototype.__destroy__=function(){hh(this.eB)};function ME(){this.eB=ih();h(ME)[this.eB]=this}ME.prototype=Object.create(nE.prototype);ME.prototype.constructor=ME;ME.prototype.fB=ME;ME.gB={};b.DebugDrawer=ME;
ME.prototype.drawLine=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);jh(e,a,c,d)};ME.prototype.drawContactPoint=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);kh(m,a,c,d,e,f)};
ME.prototype.reportErrorWarning=function(a){var c=this.eB;eE();a=a&&"object"===typeof a?a.eB:hE(a);lh(c,a)};ME.prototype.draw3dText=function(a,c){var d=this.eB;eE();a&&"object"===typeof a&&(a=a.eB);c=c&&"object"===typeof c?c.eB:hE(c);mh(d,a,c)};ME.prototype.setDebugMode=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nh(c,a)};ME.prototype.getDebugMode=function(){return oh(this.eB)};ME.prototype.__destroy__=function(){ph(this.eB)};
function A(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=void 0===a?qh():void 0===c?_emscripten_bind_btVector4_btVector4_1(a):void 0===d?_emscripten_bind_btVector4_btVector4_2(a,c):void 0===e?_emscripten_bind_btVector4_btVector4_3(a,c,d):rh(a,c,d,e);h(A)[this.eB]=this}A.prototype=Object.create(n.prototype);A.prototype.constructor=A;A.prototype.fB=A;A.gB={};b.btVector4=A;
A.prototype.w=A.prototype.w=function(){return sh(this.eB)};A.prototype.setValue=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);th(f,a,c,d,e)};A.prototype.length=A.prototype.length=function(){return uh(this.eB)};A.prototype.x=A.prototype.x=function(){return vh(this.eB)};A.prototype.y=A.prototype.y=function(){return wh(this.eB)};A.prototype.z=A.prototype.z=function(){return xh(this.eB)};
A.prototype.setX=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yh(c,a)};A.prototype.setY=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zh(c,a)};A.prototype.setZ=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ah(c,a)};A.prototype.normalize=A.prototype.normalize=function(){Bh(this.eB)};A.prototype.rotate=A.prototype.rotate=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return k(Ch(d,a,c),n)};
A.prototype.dot=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return Dh(c,a)};A.prototype.op_mul=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Eh(c,a),n)};A.prototype.op_add=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Fh(c,a),n)};A.prototype.op_sub=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Gh(c,a),n)};A.prototype.__destroy__=function(){Hh(this.eB)};
function B(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=Ih(a,c,d,e);h(B)[this.eB]=this}B.prototype=Object.create(uE.prototype);B.prototype.constructor=B;B.prototype.fB=B;B.gB={};b.btQuaternion=B;B.prototype.setValue=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);Jh(f,a,c,d,e)};
B.prototype.setEulerZYX=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Kh(e,a,c,d)};B.prototype.setRotation=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Lh(d,a,c)};B.prototype.normalize=B.prototype.normalize=function(){Mh(this.eB)};B.prototype.length2=function(){return Nh(this.eB)};B.prototype.length=B.prototype.length=function(){return Oh(this.eB)};
B.prototype.dot=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return Ph(c,a)};B.prototype.normalized=function(){return k(Qh(this.eB),B)};B.prototype.getAxis=function(){return k(Rh(this.eB),n)};B.prototype.inverse=B.prototype.inverse=function(){return k(Sh(this.eB),B)};B.prototype.getAngle=function(){return Th(this.eB)};B.prototype.getAngleShortestPath=function(){return Uh(this.eB)};
B.prototype.angle=B.prototype.angle=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return Vh(c,a)};B.prototype.angleShortestPath=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return Wh(c,a)};B.prototype.op_add=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Xh(c,a),B)};B.prototype.op_sub=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Yh(c,a),B)};
B.prototype.op_mul=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Zh(c,a),B)};B.prototype.op_mulq=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k($h(c,a),B)};B.prototype.op_div=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(ai(c,a),B)};B.prototype.x=B.prototype.x=function(){return bi(this.eB)};B.prototype.y=B.prototype.y=function(){return ci(this.eB)};B.prototype.z=B.prototype.z=function(){return di(this.eB)};
B.prototype.w=B.prototype.w=function(){return ei(this.eB)};B.prototype.setX=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fi(c,a)};B.prototype.setY=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gi(c,a)};B.prototype.setZ=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hi(c,a)};B.prototype.setW=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ii(c,a)};B.prototype.__destroy__=function(){ji(this.eB)};
function NE(){throw"cannot construct a btMatrix3x3, no constructor in IDL";}NE.prototype=Object.create(g.prototype);NE.prototype.constructor=NE;NE.prototype.fB=NE;NE.gB={};b.btMatrix3x3=NE;NE.prototype.setEulerZYX=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);ki(e,a,c,d)};NE.prototype.getRotation=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);li(c,a)};
NE.prototype.getRow=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(mi(c,a),n)};NE.prototype.__destroy__=function(){ni(this.eB)};function t(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=void 0===a?oi():void 0===c?_emscripten_bind_btTransform_btTransform_1(a):pi(a,c);h(t)[this.eB]=this}t.prototype=Object.create(g.prototype);t.prototype.constructor=t;t.prototype.fB=t;t.gB={};b.btTransform=t;t.prototype.setIdentity=function(){qi(this.eB)};
t.prototype.setOrigin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ri(c,a)};t.prototype.setRotation=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);si(c,a)};t.prototype.getOrigin=function(){return k(ti(this.eB),n)};t.prototype.getRotation=function(){return k(ui(this.eB),B)};t.prototype.getBasis=function(){return k(vi(this.eB),NE)};t.prototype.setFromOpenGLMatrix=function(a){var c=this.eB;eE();"object"==typeof a&&(a=iE(a));wi(c,a)};
t.prototype.inverse=t.prototype.inverse=function(){return k(xi(this.eB),t)};t.prototype.op_mul=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(yi(c,a),t)};t.prototype.__destroy__=function(){zi(this.eB)};function OE(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=void 0===a?Ai():void 0===c?Bi(a):Ci(a,c);h(OE)[this.eB]=this}OE.prototype=Object.create(vE.prototype);OE.prototype.constructor=OE;OE.prototype.fB=OE;OE.gB={};b.btDefaultMotionState=OE;
OE.prototype.getWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Di(c,a)};OE.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ei(c,a)};OE.prototype.get_m_graphicsWorldTrans=OE.prototype.nD=function(){return k(Fi(this.eB),t)};OE.prototype.set_m_graphicsWorldTrans=OE.prototype.gG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gi(c,a)};Object.defineProperty(OE.prototype,"m_graphicsWorldTrans",{get:OE.prototype.nD,set:OE.prototype.gG});
OE.prototype.__destroy__=function(){Hi(this.eB)};function PE(){throw"cannot construct a btCollisionObjectWrapper, no constructor in IDL";}PE.prototype=Object.create(g.prototype);PE.prototype.constructor=PE;PE.prototype.fB=PE;PE.gB={};b.btCollisionObjectWrapper=PE;PE.prototype.getWorldTransform=function(){return k(Ii(this.eB),t)};PE.prototype.getCollisionObject=function(){return k(Ji(this.eB),r)};PE.prototype.getCollisionShape=function(){return k(Ki(this.eB),l)};
function C(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=Li(a,c);h(C)[this.eB]=this}C.prototype=Object.create(v.prototype);C.prototype.constructor=C;C.prototype.fB=C;C.gB={};b.ClosestRayResultCallback=C;C.prototype.hasHit=function(){return!!Mi(this.eB)};C.prototype.get_m_rayFromWorld=C.prototype.MB=function(){return k(Ni(this.eB),n)};C.prototype.set_m_rayFromWorld=C.prototype.WB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Oi(c,a)};
Object.defineProperty(C.prototype,"m_rayFromWorld",{get:C.prototype.MB,set:C.prototype.WB});C.prototype.get_m_rayToWorld=C.prototype.NB=function(){return k(Pi(this.eB),n)};C.prototype.set_m_rayToWorld=C.prototype.XB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Qi(c,a)};Object.defineProperty(C.prototype,"m_rayToWorld",{get:C.prototype.NB,set:C.prototype.XB});C.prototype.get_m_hitNormalWorld=C.prototype.uB=function(){return k(Ri(this.eB),n)};
C.prototype.set_m_hitNormalWorld=C.prototype.CB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Si(c,a)};Object.defineProperty(C.prototype,"m_hitNormalWorld",{get:C.prototype.uB,set:C.prototype.CB});C.prototype.get_m_hitPointWorld=C.prototype.vB=function(){return k(Ti(this.eB),n)};C.prototype.set_m_hitPointWorld=C.prototype.DB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ui(c,a)};Object.defineProperty(C.prototype,"m_hitPointWorld",{get:C.prototype.vB,set:C.prototype.DB});
C.prototype.get_m_collisionFilterGroup=C.prototype.hB=function(){return Vi(this.eB)};C.prototype.set_m_collisionFilterGroup=C.prototype.jB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wi(c,a)};Object.defineProperty(C.prototype,"m_collisionFilterGroup",{get:C.prototype.hB,set:C.prototype.jB});C.prototype.get_m_collisionFilterMask=C.prototype.iB=function(){return Xi(this.eB)};
C.prototype.set_m_collisionFilterMask=C.prototype.kB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Yi(c,a)};Object.defineProperty(C.prototype,"m_collisionFilterMask",{get:C.prototype.iB,set:C.prototype.kB});C.prototype.get_m_closestHitFraction=C.prototype.lB=function(){return Zi(this.eB)};C.prototype.set_m_closestHitFraction=C.prototype.mB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);$i(c,a)};Object.defineProperty(C.prototype,"m_closestHitFraction",{get:C.prototype.lB,set:C.prototype.mB});
C.prototype.get_m_collisionObject=C.prototype.sB=function(){return k(aj(this.eB),r)};C.prototype.set_m_collisionObject=C.prototype.AB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bj(c,a)};Object.defineProperty(C.prototype,"m_collisionObject",{get:C.prototype.sB,set:C.prototype.AB});C.prototype.get_m_flags=C.prototype.pB=function(){return cj(this.eB)};C.prototype.set_m_flags=C.prototype.qB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dj(c,a)};
Object.defineProperty(C.prototype,"m_flags",{get:C.prototype.pB,set:C.prototype.qB});C.prototype.__destroy__=function(){ej(this.eB)};function QE(){throw"cannot construct a btConstCollisionObjectArray, no constructor in IDL";}QE.prototype=Object.create(g.prototype);QE.prototype.constructor=QE;QE.prototype.fB=QE;QE.gB={};b.btConstCollisionObjectArray=QE;QE.prototype.size=QE.prototype.size=function(){return fj(this.eB)};
QE.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(gj(c,a),r)};QE.prototype.__destroy__=function(){hj(this.eB)};function RE(){throw"cannot construct a btScalarArray, no constructor in IDL";}RE.prototype=Object.create(g.prototype);RE.prototype.constructor=RE;RE.prototype.fB=RE;RE.gB={};b.btScalarArray=RE;RE.prototype.size=RE.prototype.size=function(){return ij(this.eB)};RE.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return jj(c,a)};
RE.prototype.__destroy__=function(){kj(this.eB)};function D(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=lj(a,c);h(D)[this.eB]=this}D.prototype=Object.create(v.prototype);D.prototype.constructor=D;D.prototype.fB=D;D.gB={};b.AllHitsRayResultCallback=D;D.prototype.hasHit=function(){return!!mj(this.eB)};D.prototype.get_m_collisionObjects=D.prototype.WC=function(){return k(nj(this.eB),QE)};
D.prototype.set_m_collisionObjects=D.prototype.PF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);oj(c,a)};Object.defineProperty(D.prototype,"m_collisionObjects",{get:D.prototype.WC,set:D.prototype.PF});D.prototype.get_m_rayFromWorld=D.prototype.MB=function(){return k(pj(this.eB),n)};D.prototype.set_m_rayFromWorld=D.prototype.WB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qj(c,a)};Object.defineProperty(D.prototype,"m_rayFromWorld",{get:D.prototype.MB,set:D.prototype.WB});
D.prototype.get_m_rayToWorld=D.prototype.NB=function(){return k(rj(this.eB),n)};D.prototype.set_m_rayToWorld=D.prototype.XB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sj(c,a)};Object.defineProperty(D.prototype,"m_rayToWorld",{get:D.prototype.NB,set:D.prototype.XB});D.prototype.get_m_hitNormalWorld=D.prototype.uB=function(){return k(tj(this.eB),SE)};D.prototype.set_m_hitNormalWorld=D.prototype.CB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);uj(c,a)};
Object.defineProperty(D.prototype,"m_hitNormalWorld",{get:D.prototype.uB,set:D.prototype.CB});D.prototype.get_m_hitPointWorld=D.prototype.vB=function(){return k(vj(this.eB),SE)};D.prototype.set_m_hitPointWorld=D.prototype.DB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);wj(c,a)};Object.defineProperty(D.prototype,"m_hitPointWorld",{get:D.prototype.vB,set:D.prototype.DB});D.prototype.get_m_hitFractions=D.prototype.sD=function(){return k(xj(this.eB),RE)};
D.prototype.set_m_hitFractions=D.prototype.lG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yj(c,a)};Object.defineProperty(D.prototype,"m_hitFractions",{get:D.prototype.sD,set:D.prototype.lG});D.prototype.get_m_collisionFilterGroup=D.prototype.hB=function(){return zj(this.eB)};D.prototype.set_m_collisionFilterGroup=D.prototype.jB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Aj(c,a)};Object.defineProperty(D.prototype,"m_collisionFilterGroup",{get:D.prototype.hB,set:D.prototype.jB});
D.prototype.get_m_collisionFilterMask=D.prototype.iB=function(){return Bj(this.eB)};D.prototype.set_m_collisionFilterMask=D.prototype.kB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Cj(c,a)};Object.defineProperty(D.prototype,"m_collisionFilterMask",{get:D.prototype.iB,set:D.prototype.kB});D.prototype.get_m_closestHitFraction=D.prototype.lB=function(){return Dj(this.eB)};
D.prototype.set_m_closestHitFraction=D.prototype.mB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ej(c,a)};Object.defineProperty(D.prototype,"m_closestHitFraction",{get:D.prototype.lB,set:D.prototype.mB});D.prototype.get_m_collisionObject=D.prototype.sB=function(){return k(Fj(this.eB),r)};D.prototype.set_m_collisionObject=D.prototype.AB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gj(c,a)};Object.defineProperty(D.prototype,"m_collisionObject",{get:D.prototype.sB,set:D.prototype.AB});
D.prototype.get_m_flags=D.prototype.pB=function(){return Hj(this.eB)};D.prototype.set_m_flags=D.prototype.qB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ij(c,a)};Object.defineProperty(D.prototype,"m_flags",{get:D.prototype.pB,set:D.prototype.qB});D.prototype.__destroy__=function(){Jj(this.eB)};function F(){throw"cannot construct a btManifoldPoint, no constructor in IDL";}F.prototype=Object.create(g.prototype);F.prototype.constructor=F;F.prototype.fB=F;F.gB={};b.btManifoldPoint=F;
F.prototype.getPositionWorldOnA=function(){return k(Kj(this.eB),n)};F.prototype.getPositionWorldOnB=function(){return k(Lj(this.eB),n)};F.prototype.getAppliedImpulse=function(){return Mj(this.eB)};F.prototype.getDistance=function(){return Nj(this.eB)};F.prototype.get_m_localPointA=F.prototype.ID=function(){return k(Oj(this.eB),n)};F.prototype.set_m_localPointA=F.prototype.BG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pj(c,a)};
Object.defineProperty(F.prototype,"m_localPointA",{get:F.prototype.ID,set:F.prototype.BG});F.prototype.get_m_localPointB=F.prototype.JD=function(){return k(Qj(this.eB),n)};F.prototype.set_m_localPointB=F.prototype.CG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rj(c,a)};Object.defineProperty(F.prototype,"m_localPointB",{get:F.prototype.JD,set:F.prototype.CG});F.prototype.get_m_positionWorldOnB=F.prototype.$D=function(){return k(Sj(this.eB),n)};
F.prototype.set_m_positionWorldOnB=F.prototype.UG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Tj(c,a)};Object.defineProperty(F.prototype,"m_positionWorldOnB",{get:F.prototype.$D,set:F.prototype.UG});F.prototype.get_m_positionWorldOnA=F.prototype.ZD=function(){return k(Uj(this.eB),n)};F.prototype.set_m_positionWorldOnA=F.prototype.TG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vj(c,a)};Object.defineProperty(F.prototype,"m_positionWorldOnA",{get:F.prototype.ZD,set:F.prototype.TG});
F.prototype.get_m_normalWorldOnB=F.prototype.UD=function(){return k(Wj(this.eB),n)};F.prototype.set_m_normalWorldOnB=F.prototype.NG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xj(c,a)};Object.defineProperty(F.prototype,"m_normalWorldOnB",{get:F.prototype.UD,set:F.prototype.NG});F.prototype.get_m_userPersistentData=F.prototype.BE=function(){return Yj(this.eB)};F.prototype.set_m_userPersistentData=F.prototype.vH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zj(c,a)};
Object.defineProperty(F.prototype,"m_userPersistentData",{get:F.prototype.BE,set:F.prototype.vH});F.prototype.__destroy__=function(){ak(this.eB)};function TE(){this.eB=bk();h(TE)[this.eB]=this}TE.prototype=Object.create(wE.prototype);TE.prototype.constructor=TE;TE.prototype.fB=TE;TE.gB={};b.ConcreteContactResultCallback=TE;
TE.prototype.addSingleResult=function(a,c,d,e,f,m,y){var W=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);return ck(W,a,c,d,e,f,m,y)};TE.prototype.__destroy__=function(){dk(this.eB)};function UE(){throw"cannot construct a LocalShapeInfo, no constructor in IDL";}UE.prototype=Object.create(g.prototype);
UE.prototype.constructor=UE;UE.prototype.fB=UE;UE.gB={};b.LocalShapeInfo=UE;UE.prototype.get_m_shapePart=UE.prototype.iE=function(){return ek(this.eB)};UE.prototype.set_m_shapePart=UE.prototype.cH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fk(c,a)};Object.defineProperty(UE.prototype,"m_shapePart",{get:UE.prototype.iE,set:UE.prototype.cH});UE.prototype.get_m_triangleIndex=UE.prototype.xE=function(){return gk(this.eB)};
UE.prototype.set_m_triangleIndex=UE.prototype.rH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hk(c,a)};Object.defineProperty(UE.prototype,"m_triangleIndex",{get:UE.prototype.xE,set:UE.prototype.rH});UE.prototype.__destroy__=function(){ik(this.eB)};function H(a,c,d,e,f){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);this.eB=jk(a,c,d,e,f);h(H)[this.eB]=this}
H.prototype=Object.create(g.prototype);H.prototype.constructor=H;H.prototype.fB=H;H.gB={};b.LocalConvexResult=H;H.prototype.get_m_hitCollisionObject=H.prototype.KB=function(){return k(kk(this.eB),r)};H.prototype.set_m_hitCollisionObject=H.prototype.UB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);lk(c,a)};Object.defineProperty(H.prototype,"m_hitCollisionObject",{get:H.prototype.KB,set:H.prototype.UB});H.prototype.get_m_localShapeInfo=H.prototype.KD=function(){return k(mk(this.eB),UE)};
H.prototype.set_m_localShapeInfo=H.prototype.DG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nk(c,a)};Object.defineProperty(H.prototype,"m_localShapeInfo",{get:H.prototype.KD,set:H.prototype.DG});H.prototype.get_m_hitNormalLocal=H.prototype.uD=function(){return k(ok(this.eB),n)};H.prototype.set_m_hitNormalLocal=H.prototype.nG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pk(c,a)};Object.defineProperty(H.prototype,"m_hitNormalLocal",{get:H.prototype.uD,set:H.prototype.nG});
H.prototype.get_m_hitPointLocal=H.prototype.wD=function(){return k(qk(this.eB),n)};H.prototype.set_m_hitPointLocal=H.prototype.pG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rk(c,a)};Object.defineProperty(H.prototype,"m_hitPointLocal",{get:H.prototype.wD,set:H.prototype.pG});H.prototype.get_m_hitFraction=H.prototype.rD=function(){return sk(this.eB)};H.prototype.set_m_hitFraction=H.prototype.kG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tk(c,a)};
Object.defineProperty(H.prototype,"m_hitFraction",{get:H.prototype.rD,set:H.prototype.kG});H.prototype.__destroy__=function(){uk(this.eB)};function I(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=vk(a,c);h(I)[this.eB]=this}I.prototype=Object.create(w.prototype);I.prototype.constructor=I;I.prototype.fB=I;I.gB={};b.ClosestConvexResultCallback=I;I.prototype.hasHit=function(){return!!wk(this.eB)};
I.prototype.get_m_hitCollisionObject=I.prototype.KB=function(){return k(xk(this.eB),r)};I.prototype.set_m_hitCollisionObject=I.prototype.UB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yk(c,a)};Object.defineProperty(I.prototype,"m_hitCollisionObject",{get:I.prototype.KB,set:I.prototype.UB});I.prototype.get_m_convexFromWorld=I.prototype.aD=function(){return k(zk(this.eB),n)};
I.prototype.set_m_convexFromWorld=I.prototype.UF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ak(c,a)};Object.defineProperty(I.prototype,"m_convexFromWorld",{get:I.prototype.aD,set:I.prototype.UF});I.prototype.get_m_convexToWorld=I.prototype.bD=function(){return k(Bk(this.eB),n)};I.prototype.set_m_convexToWorld=I.prototype.VF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ck(c,a)};Object.defineProperty(I.prototype,"m_convexToWorld",{get:I.prototype.bD,set:I.prototype.VF});
I.prototype.get_m_hitNormalWorld=I.prototype.uB=function(){return k(Dk(this.eB),n)};I.prototype.set_m_hitNormalWorld=I.prototype.CB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ek(c,a)};Object.defineProperty(I.prototype,"m_hitNormalWorld",{get:I.prototype.uB,set:I.prototype.CB});I.prototype.get_m_hitPointWorld=I.prototype.vB=function(){return k(Fk(this.eB),n)};I.prototype.set_m_hitPointWorld=I.prototype.DB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gk(c,a)};
Object.defineProperty(I.prototype,"m_hitPointWorld",{get:I.prototype.vB,set:I.prototype.DB});I.prototype.get_m_collisionFilterGroup=I.prototype.hB=function(){return Hk(this.eB)};I.prototype.set_m_collisionFilterGroup=I.prototype.jB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ik(c,a)};Object.defineProperty(I.prototype,"m_collisionFilterGroup",{get:I.prototype.hB,set:I.prototype.jB});I.prototype.get_m_collisionFilterMask=I.prototype.iB=function(){return Jk(this.eB)};
I.prototype.set_m_collisionFilterMask=I.prototype.kB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Kk(c,a)};Object.defineProperty(I.prototype,"m_collisionFilterMask",{get:I.prototype.iB,set:I.prototype.kB});I.prototype.get_m_closestHitFraction=I.prototype.lB=function(){return Lk(this.eB)};I.prototype.set_m_closestHitFraction=I.prototype.mB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Mk(c,a)};Object.defineProperty(I.prototype,"m_closestHitFraction",{get:I.prototype.lB,set:I.prototype.mB});
I.prototype.__destroy__=function(){Nk(this.eB)};function VE(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=void 0===c?Ok(a):Pk(a,c);h(VE)[this.eB]=this}VE.prototype=Object.create(xE.prototype);VE.prototype.constructor=VE;VE.prototype.fB=VE;VE.gB={};b.btConvexTriangleMeshShape=VE;VE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Qk(c,a)};VE.prototype.getLocalScaling=function(){return k(Rk(this.eB),n)};
VE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Sk(d,a,c)};VE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Tk(c,a)};VE.prototype.getMargin=function(){return Uk(this.eB)};VE.prototype.__destroy__=function(){Vk(this.eB)};function WE(a){a&&"object"===typeof a&&(a=a.eB);this.eB=Wk(a);h(WE)[this.eB]=this}WE.prototype=Object.create(l.prototype);WE.prototype.constructor=WE;WE.prototype.fB=WE;
WE.gB={};b.btBoxShape=WE;WE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xk(c,a)};WE.prototype.getMargin=function(){return Yk(this.eB)};WE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zk(c,a)};WE.prototype.getLocalScaling=function(){return k($k(this.eB),n)};WE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);al(d,a,c)};WE.prototype.__destroy__=function(){bl(this.eB)};
function XE(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=cl(a,c);h(XE)[this.eB]=this}XE.prototype=Object.create(yE.prototype);XE.prototype.constructor=XE;XE.prototype.fB=XE;XE.gB={};b.btCapsuleShapeX=XE;XE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dl(c,a)};XE.prototype.getMargin=function(){return el(this.eB)};XE.prototype.getUpAxis=function(){return fl(this.eB)};XE.prototype.getRadius=function(){return gl(this.eB)};
XE.prototype.getHalfHeight=function(){return hl(this.eB)};XE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);il(c,a)};XE.prototype.getLocalScaling=function(){return k(jl(this.eB),n)};XE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);kl(d,a,c)};XE.prototype.__destroy__=function(){ll(this.eB)};
function YE(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=ml(a,c);h(YE)[this.eB]=this}YE.prototype=Object.create(yE.prototype);YE.prototype.constructor=YE;YE.prototype.fB=YE;YE.gB={};b.btCapsuleShapeZ=YE;YE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nl(c,a)};YE.prototype.getMargin=function(){return ol(this.eB)};YE.prototype.getUpAxis=function(){return pl(this.eB)};YE.prototype.getRadius=function(){return ql(this.eB)};
YE.prototype.getHalfHeight=function(){return rl(this.eB)};YE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sl(c,a)};YE.prototype.getLocalScaling=function(){return k(tl(this.eB),n)};YE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);ul(d,a,c)};YE.prototype.__destroy__=function(){vl(this.eB)};function ZE(a){a&&"object"===typeof a&&(a=a.eB);this.eB=wl(a);h(ZE)[this.eB]=this}
ZE.prototype=Object.create(zE.prototype);ZE.prototype.constructor=ZE;ZE.prototype.fB=ZE;ZE.gB={};b.btCylinderShapeX=ZE;ZE.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xl(c,a)};ZE.prototype.getMargin=function(){return yl(this.eB)};ZE.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zl(c,a)};ZE.prototype.getLocalScaling=function(){return k(Al(this.eB),n)};
ZE.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Bl(d,a,c)};ZE.prototype.__destroy__=function(){Cl(this.eB)};function $E(a){a&&"object"===typeof a&&(a=a.eB);this.eB=Dl(a);h($E)[this.eB]=this}$E.prototype=Object.create(zE.prototype);$E.prototype.constructor=$E;$E.prototype.fB=$E;$E.gB={};b.btCylinderShapeZ=$E;$E.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);El(c,a)};
$E.prototype.getMargin=function(){return Fl(this.eB)};$E.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gl(c,a)};$E.prototype.getLocalScaling=function(){return k(Hl(this.eB),n)};$E.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Il(d,a,c)};$E.prototype.__destroy__=function(){Jl(this.eB)};function aF(a){a&&"object"===typeof a&&(a=a.eB);this.eB=Kl(a);h(aF)[this.eB]=this}aF.prototype=Object.create(l.prototype);
aF.prototype.constructor=aF;aF.prototype.fB=aF;aF.gB={};b.btSphereShape=aF;aF.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ll(c,a)};aF.prototype.getMargin=function(){return Ml(this.eB)};aF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Nl(c,a)};aF.prototype.getLocalScaling=function(){return k(Ol(this.eB),n)};
aF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Pl(d,a,c)};aF.prototype.__destroy__=function(){Ql(this.eB)};function bF(a,c,d){eE();a&&"object"===typeof a&&(a=a.eB);"object"==typeof c&&(c=iE(c));d&&"object"===typeof d&&(d=d.eB);this.eB=Rl(a,c,d);h(bF)[this.eB]=this}bF.prototype=Object.create(l.prototype);bF.prototype.constructor=bF;bF.prototype.fB=bF;bF.gB={};b.btMultiSphereShape=bF;
bF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Sl(c,a)};bF.prototype.getLocalScaling=function(){return k(Tl(this.eB),n)};bF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ul(d,a,c)};bF.prototype.__destroy__=function(){Vl(this.eB)};function cF(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=Wl(a,c);h(cF)[this.eB]=this}cF.prototype=Object.create(AE.prototype);
cF.prototype.constructor=cF;cF.prototype.fB=cF;cF.gB={};b.btConeShapeX=cF;cF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xl(c,a)};cF.prototype.getLocalScaling=function(){return k(Yl(this.eB),n)};cF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Zl(d,a,c)};cF.prototype.__destroy__=function(){$l(this.eB)};
function dF(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=am(a,c);h(dF)[this.eB]=this}dF.prototype=Object.create(AE.prototype);dF.prototype.constructor=dF;dF.prototype.fB=dF;dF.gB={};b.btConeShapeZ=dF;dF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bm(c,a)};dF.prototype.getLocalScaling=function(){return k(cm(this.eB),n)};
dF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);dm(d,a,c)};dF.prototype.__destroy__=function(){em(this.eB)};function eF(){throw"cannot construct a btIntArray, no constructor in IDL";}eF.prototype=Object.create(g.prototype);eF.prototype.constructor=eF;eF.prototype.fB=eF;eF.gB={};b.btIntArray=eF;eF.prototype.size=eF.prototype.size=function(){return fm(this.eB)};
eF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return gm(c,a)};eF.prototype.__destroy__=function(){hm(this.eB)};function fF(){throw"cannot construct a btFace, no constructor in IDL";}fF.prototype=Object.create(g.prototype);fF.prototype.constructor=fF;fF.prototype.fB=fF;fF.gB={};b.btFace=fF;fF.prototype.get_m_indices=fF.prototype.zD=function(){return k(im(this.eB),eF)};
fF.prototype.set_m_indices=fF.prototype.sG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jm(c,a)};Object.defineProperty(fF.prototype,"m_indices",{get:fF.prototype.zD,set:fF.prototype.sG});fF.prototype.get_m_plane=fF.prototype.YD=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return km(c,a)};fF.prototype.set_m_plane=fF.prototype.SG=function(a,c){var d=this.eB;eE();a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);lm(d,a,c)};
Object.defineProperty(fF.prototype,"m_plane",{get:fF.prototype.YD,set:fF.prototype.SG});fF.prototype.__destroy__=function(){mm(this.eB)};function SE(){throw"cannot construct a btVector3Array, no constructor in IDL";}SE.prototype=Object.create(g.prototype);SE.prototype.constructor=SE;SE.prototype.fB=SE;SE.gB={};b.btVector3Array=SE;SE.prototype.size=SE.prototype.size=function(){return nm(this.eB)};SE.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(om(c,a),n)};
SE.prototype.__destroy__=function(){pm(this.eB)};function gF(){throw"cannot construct a btFaceArray, no constructor in IDL";}gF.prototype=Object.create(g.prototype);gF.prototype.constructor=gF;gF.prototype.fB=gF;gF.gB={};b.btFaceArray=gF;gF.prototype.size=gF.prototype.size=function(){return qm(this.eB)};gF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(rm(c,a),fF)};gF.prototype.__destroy__=function(){sm(this.eB)};
function hF(){throw"cannot construct a btConvexPolyhedron, no constructor in IDL";}hF.prototype=Object.create(g.prototype);hF.prototype.constructor=hF;hF.prototype.fB=hF;hF.gB={};b.btConvexPolyhedron=hF;hF.prototype.get_m_vertices=hF.prototype.DE=function(){return k(tm(this.eB),SE)};hF.prototype.set_m_vertices=hF.prototype.xH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);um(c,a)};Object.defineProperty(hF.prototype,"m_vertices",{get:hF.prototype.DE,set:hF.prototype.xH});
hF.prototype.get_m_faces=hF.prototype.JB=function(){return k(wm(this.eB),gF)};hF.prototype.set_m_faces=hF.prototype.TB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xm(c,a)};Object.defineProperty(hF.prototype,"m_faces",{get:hF.prototype.JB,set:hF.prototype.TB});hF.prototype.__destroy__=function(){ym(this.eB)};function iF(a,c){eE();"object"==typeof a&&(a=iE(a));c&&"object"===typeof c&&(c=c.eB);this.eB=void 0===a?zm():void 0===c?Am(a):Bm(a,c);h(iF)[this.eB]=this}iF.prototype=Object.create(l.prototype);
iF.prototype.constructor=iF;iF.prototype.fB=iF;iF.gB={};b.btConvexHullShape=iF;iF.prototype.addPoint=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);void 0===c?Cm(d,a):Dm(d,a,c)};iF.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Em(c,a)};iF.prototype.getMargin=function(){return Fm(this.eB)};iF.prototype.getNumVertices=function(){return Gm(this.eB)};
iF.prototype.initializePolyhedralFeatures=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return!!Hm(c,a)};iF.prototype.recalcLocalAabb=function(){Im(this.eB)};iF.prototype.getConvexPolyhedron=function(){return k(Jm(this.eB),hF)};iF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Km(c,a)};iF.prototype.getLocalScaling=function(){return k(Lm(this.eB),n)};
iF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Mm(d,a,c)};iF.prototype.__destroy__=function(){Nm(this.eB)};function jF(a){a&&"object"===typeof a&&(a=a.eB);this.eB=Om(a);h(jF)[this.eB]=this}jF.prototype=Object.create(g.prototype);jF.prototype.constructor=jF;jF.prototype.fB=jF;jF.gB={};b.btShapeHull=jF;jF.prototype.buildHull=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return!!Pm(c,a)};
jF.prototype.numVertices=function(){return Qm(this.eB)};jF.prototype.getVertexPointer=function(){return k(Rm(this.eB),n)};jF.prototype.__destroy__=function(){Sm(this.eB)};function kF(a){a&&"object"===typeof a&&(a=a.eB);this.eB=void 0===a?Tm():Um(a);h(kF)[this.eB]=this}kF.prototype=Object.create(l.prototype);kF.prototype.constructor=kF;kF.prototype.fB=kF;kF.gB={};b.btCompoundShape=kF;
kF.prototype.addChildShape=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Vm(d,a,c)};kF.prototype.removeChildShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wm(c,a)};kF.prototype.removeChildShapeByIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xm(c,a)};kF.prototype.getNumChildShapes=function(){return Ym(this.eB)};kF.prototype.getChildShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Zm(c,a),l)};
kF.prototype.updateChildTransform=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===d?$m(e,a,c):an(e,a,c,d)};kF.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bn(c,a)};kF.prototype.getMargin=function(){return cn(this.eB)};kF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dn(c,a)};kF.prototype.getLocalScaling=function(){return k(en(this.eB),n)};
kF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);fn(d,a,c)};kF.prototype.__destroy__=function(){gn(this.eB)};function lF(){throw"cannot construct a btIndexedMesh, no constructor in IDL";}lF.prototype=Object.create(g.prototype);lF.prototype.constructor=lF;lF.prototype.fB=lF;lF.gB={};b.btIndexedMesh=lF;lF.prototype.get_m_numTriangles=lF.prototype.WD=function(){return hn(this.eB)};
lF.prototype.set_m_numTriangles=lF.prototype.PG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jn(c,a)};Object.defineProperty(lF.prototype,"m_numTriangles",{get:lF.prototype.WD,set:lF.prototype.PG});lF.prototype.__destroy__=function(){kn(this.eB)};function mF(){throw"cannot construct a btIndexedMeshArray, no constructor in IDL";}mF.prototype=Object.create(g.prototype);mF.prototype.constructor=mF;mF.prototype.fB=mF;mF.gB={};b.btIndexedMeshArray=mF;mF.prototype.size=mF.prototype.size=function(){return ln(this.eB)};
mF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(mn(c,a),lF)};mF.prototype.__destroy__=function(){nn(this.eB)};function nF(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=void 0===a?on():void 0===c?pn(a):qn(a,c);h(nF)[this.eB]=this}nF.prototype=Object.create(BE.prototype);nF.prototype.constructor=nF;nF.prototype.fB=nF;nF.gB={};b.btTriangleMesh=nF;
nF.prototype.addTriangle=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);void 0===e?rn(f,a,c,d):sn(f,a,c,d,e)};nF.prototype.findOrAddVertex=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return tn(d,a,c)};nF.prototype.addIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);un(c,a)};
nF.prototype.getIndexedMeshArray=function(){return k(vn(this.eB),mF)};nF.prototype.setScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);wn(c,a)};nF.prototype.__destroy__=function(){xn(this.eB)};function oF(){this.eB=yn();h(oF)[this.eB]=this}oF.prototype=Object.create(qE.prototype);oF.prototype.constructor=oF;oF.prototype.fB=oF;oF.gB={};b.btEmptyShape=oF;oF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zn(c,a)};
oF.prototype.getLocalScaling=function(){return k(An(this.eB),n)};oF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Bn(d,a,c)};oF.prototype.__destroy__=function(){Cn(this.eB)};function pF(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=Dn(a,c);h(pF)[this.eB]=this}pF.prototype=Object.create(qE.prototype);pF.prototype.constructor=pF;pF.prototype.fB=pF;pF.gB={};b.btStaticPlaneShape=pF;
pF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);En(c,a)};pF.prototype.getLocalScaling=function(){return k(Fn(this.eB),n)};pF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Gn(d,a,c)};pF.prototype.__destroy__=function(){Hn(this.eB)};
function qF(a,c,d){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);this.eB=void 0===d?In(a,c):Jn(a,c,d);h(qF)[this.eB]=this}qF.prototype=Object.create(CE.prototype);qF.prototype.constructor=qF;qF.prototype.fB=qF;qF.gB={};b.btBvhTriangleMeshShape=qF;qF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Kn(c,a)};qF.prototype.getLocalScaling=function(){return k(Ln(this.eB),n)};
qF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Mn(d,a,c)};qF.prototype.__destroy__=function(){Nn(this.eB)};
function rF(a,c,d,e,f,m,y,W,E){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);W&&"object"===typeof W&&(W=W.eB);E&&"object"===typeof E&&(E=E.eB);this.eB=On(a,c,d,e,f,m,y,W,E);h(rF)[this.eB]=this}rF.prototype=Object.create(qE.prototype);rF.prototype.constructor=rF;rF.prototype.fB=rF;rF.gB={};
b.btHeightfieldTerrainShape=rF;rF.prototype.setMargin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pn(c,a)};rF.prototype.getMargin=function(){return Qn(this.eB)};rF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rn(c,a)};rF.prototype.getLocalScaling=function(){return k(Sn(this.eB),n)};rF.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Tn(d,a,c)};
rF.prototype.__destroy__=function(){Un(this.eB)};function sF(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=Vn(a,c,d,e);h(sF)[this.eB]=this}sF.prototype=Object.create(g.prototype);sF.prototype.constructor=sF;sF.prototype.fB=sF;sF.gB={};b.btAABB=sF;sF.prototype.invalidate=function(){Wn(this.eB)};sF.prototype.increment_margin=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xn(c,a)};
sF.prototype.copy_with_margin=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Yn(d,a,c)};sF.prototype.__destroy__=function(){Zn(this.eB)};function tF(){this.eB=$n();h(tF)[this.eB]=this}tF.prototype=Object.create(g.prototype);tF.prototype.constructor=tF;tF.prototype.fB=tF;tF.gB={};b.btPrimitiveTriangle=tF;tF.prototype.__destroy__=function(){ao(this.eB)};
function uF(a,c,d){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);this.eB=bo(a,c,d);h(uF)[this.eB]=this}uF.prototype=Object.create(g.prototype);uF.prototype.constructor=uF;uF.prototype.fB=uF;uF.gB={};b.btTriangleShapeEx=uF;uF.prototype.getAabb=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);co(e,a,c,d)};
uF.prototype.applyTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);eo(c,a)};uF.prototype.buildTriPlane=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fo(c,a)};uF.prototype.__destroy__=function(){go(this.eB)};function vF(){this.eB=ho();h(vF)[this.eB]=this}vF.prototype=Object.create(g.prototype);vF.prototype.constructor=vF;vF.prototype.fB=vF;vF.gB={};b.btTetrahedronShapeEx=vF;
vF.prototype.setVertices=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);io(f,a,c,d,e)};vF.prototype.__destroy__=function(){jo(this.eB)};function wF(){throw"cannot construct a CompoundPrimitiveManager, no constructor in IDL";}wF.prototype=Object.create(DE.prototype);wF.prototype.constructor=wF;wF.prototype.fB=wF;wF.gB={};b.CompoundPrimitiveManager=wF;
wF.prototype.get_primitive_count=function(){return ko(this.eB)};wF.prototype.get_primitive_box=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);lo(d,a,c)};wF.prototype.get_primitive_triangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);mo(d,a,c)};wF.prototype.is_trimesh=function(){return!!no(this.eB)};wF.prototype.get_m_compoundShape=wF.prototype.XC=function(){return k(oo(this.eB),J)};
wF.prototype.set_m_compoundShape=wF.prototype.QF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);po(c,a)};Object.defineProperty(wF.prototype,"m_compoundShape",{get:wF.prototype.XC,set:wF.prototype.QF});wF.prototype.__destroy__=function(){qo(this.eB)};function J(a){a&&"object"===typeof a&&(a=a.eB);this.eB=void 0===a?ro():so(a);h(J)[this.eB]=this}J.prototype=Object.create(EE.prototype);J.prototype.constructor=J;J.prototype.fB=J;J.gB={};b.btGImpactCompoundShape=J;
J.prototype.childrenHasTransform=function(){return!!to(this.eB)};J.prototype.getPrimitiveManager=function(){return k(uo(this.eB),DE)};J.prototype.getCompoundPrimitiveManager=function(){return k(vo(this.eB),wF)};J.prototype.getNumChildShapes=function(){return wo(this.eB)};J.prototype.addChildShape=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);xo(d,a,c)};
J.prototype.getChildShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(yo(c,a),l)};J.prototype.getChildAabb=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);zo(f,a,c,d,e)};J.prototype.getChildTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Ao(c,a),t)};
J.prototype.setChildTransform=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Bo(d,a,c)};J.prototype.calculateLocalInertia=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Co(d,a,c)};J.prototype.getName=function(){return Ma(Do(this.eB))};J.prototype.getGImpactShapeType=function(){return Eo(this.eB)};J.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fo(c,a)};
J.prototype.getLocalScaling=function(){return k(Go(this.eB),n)};J.prototype.updateBound=function(){Ho(this.eB)};J.prototype.postUpdate=function(){Io(this.eB)};J.prototype.getShapeType=function(){return Jo(this.eB)};J.prototype.needsRetrieveTriangles=function(){return!!Ko(this.eB)};J.prototype.needsRetrieveTetrahedrons=function(){return!!Lo(this.eB)};J.prototype.getBulletTriangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Mo(d,a,c)};
J.prototype.getBulletTetrahedron=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);No(d,a,c)};J.prototype.__destroy__=function(){Oo(this.eB)};function K(a){a&&"object"===typeof a&&(a=a.eB);this.eB=void 0===a?Po():Qo(a);h(K)[this.eB]=this}K.prototype=Object.create(DE.prototype);K.prototype.constructor=K;K.prototype.fB=K;K.gB={};b.TrimeshPrimitiveManager=K;K.prototype.lock=K.prototype.lock=function(){Ro(this.eB)};K.prototype.unlock=K.prototype.unlock=function(){So(this.eB)};
K.prototype.is_trimesh=function(){return!!To(this.eB)};K.prototype.get_vertex_count=function(){return Uo(this.eB)};K.prototype.get_indices=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);Vo(f,a,c,d,e)};K.prototype.get_vertex=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Wo(d,a,c)};
K.prototype.get_bullet_triangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Xo(d,a,c)};K.prototype.get_m_margin=K.prototype.ND=function(){return Yo(this.eB)};K.prototype.set_m_margin=K.prototype.GG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zo(c,a)};Object.defineProperty(K.prototype,"m_margin",{get:K.prototype.ND,set:K.prototype.GG});K.prototype.get_m_meshInterface=K.prototype.QD=function(){return k($o(this.eB),BE)};
K.prototype.set_m_meshInterface=K.prototype.JG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ap(c,a)};Object.defineProperty(K.prototype,"m_meshInterface",{get:K.prototype.QD,set:K.prototype.JG});K.prototype.get_m_part=K.prototype.XD=function(){return bp(this.eB)};K.prototype.set_m_part=K.prototype.QG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cp(c,a)};Object.defineProperty(K.prototype,"m_part",{get:K.prototype.XD,set:K.prototype.QG});
K.prototype.get_m_lock_count=K.prototype.LD=function(){return dp(this.eB)};K.prototype.set_m_lock_count=K.prototype.EG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ep(c,a)};Object.defineProperty(K.prototype,"m_lock_count",{get:K.prototype.LD,set:K.prototype.EG});K.prototype.get_numverts=K.prototype.NE=function(){return fp(this.eB)};K.prototype.set_numverts=K.prototype.HH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gp(c,a)};
Object.defineProperty(K.prototype,"numverts",{get:K.prototype.NE,set:K.prototype.HH});K.prototype.get_type=K.prototype.RE=function(){return hp(this.eB)};K.prototype.set_type=K.prototype.LH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ip(c,a)};Object.defineProperty(K.prototype,"type",{get:K.prototype.RE,set:K.prototype.LH});K.prototype.get_stride=K.prototype.PE=function(){return jp(this.eB)};
K.prototype.set_stride=K.prototype.JH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kp(c,a)};Object.defineProperty(K.prototype,"stride",{get:K.prototype.PE,set:K.prototype.JH});K.prototype.get_indexstride=K.prototype.iC=function(){return lp(this.eB)};K.prototype.set_indexstride=K.prototype.bF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mp(c,a)};Object.defineProperty(K.prototype,"indexstride",{get:K.prototype.iC,set:K.prototype.bF});
K.prototype.get_numfaces=K.prototype.ME=function(){return np(this.eB)};K.prototype.set_numfaces=K.prototype.GH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);op(c,a)};Object.defineProperty(K.prototype,"numfaces",{get:K.prototype.ME,set:K.prototype.GH});K.prototype.get_indicestype=K.prototype.jC=function(){return pp(this.eB)};K.prototype.set_indicestype=K.prototype.cF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qp(c,a)};
Object.defineProperty(K.prototype,"indicestype",{get:K.prototype.jC,set:K.prototype.cF});K.prototype.__destroy__=function(){rp(this.eB)};function xF(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=sp(a,c);h(xF)[this.eB]=this}xF.prototype=Object.create(EE.prototype);xF.prototype.constructor=xF;xF.prototype.fB=xF;xF.gB={};b.btGImpactMeshShapePart=xF;xF.prototype.getTrimeshPrimitiveManager=function(){return k(tp(this.eB),K)};xF.prototype.getVertexCount=function(){return up(this.eB)};
xF.prototype.getVertex=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);vp(d,a,c)};xF.prototype.getPart=function(){return wp(this.eB)};xF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xp(c,a)};xF.prototype.getLocalScaling=function(){return k(yp(this.eB),n)};xF.prototype.updateBound=function(){zp(this.eB)};xF.prototype.postUpdate=function(){Ap(this.eB)};xF.prototype.getShapeType=function(){return Bp(this.eB)};
xF.prototype.needsRetrieveTriangles=function(){return!!Cp(this.eB)};xF.prototype.needsRetrieveTetrahedrons=function(){return!!Dp(this.eB)};xF.prototype.getBulletTriangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ep(d,a,c)};xF.prototype.getBulletTetrahedron=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Fp(d,a,c)};xF.prototype.__destroy__=function(){Gp(this.eB)};
function yF(a){a&&"object"===typeof a&&(a=a.eB);this.eB=Hp(a);h(yF)[this.eB]=this}yF.prototype=Object.create(EE.prototype);yF.prototype.constructor=yF;yF.prototype.fB=yF;yF.gB={};b.btGImpactMeshShape=yF;yF.prototype.getMeshInterface=function(){return k(Ip(this.eB),BE)};yF.prototype.getMeshPartCount=function(){return Jp(this.eB)};yF.prototype.getMeshPart=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Kp(c,a),xF)};yF.prototype.calculateSerializeBufferSize=function(){return Lp(this.eB)};
yF.prototype.setLocalScaling=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Mp(c,a)};yF.prototype.getLocalScaling=function(){return k(Np(this.eB),n)};yF.prototype.updateBound=function(){Op(this.eB)};yF.prototype.postUpdate=function(){Pp(this.eB)};yF.prototype.getShapeType=function(){return Qp(this.eB)};yF.prototype.needsRetrieveTriangles=function(){return!!Rp(this.eB)};yF.prototype.needsRetrieveTetrahedrons=function(){return!!Sp(this.eB)};
yF.prototype.getBulletTriangle=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Tp(d,a,c)};yF.prototype.getBulletTetrahedron=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Up(d,a,c)};yF.prototype.__destroy__=function(){Vp(this.eB)};
function zF(a,c){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);this.eB=void 0===a?Wp():void 0===c?_emscripten_bind_btCollisionAlgorithmConstructionInfo_btCollisionAlgorithmConstructionInfo_1(a):Xp(a,c);h(zF)[this.eB]=this}zF.prototype=Object.create(g.prototype);zF.prototype.constructor=zF;zF.prototype.fB=zF;zF.gB={};b.btCollisionAlgorithmConstructionInfo=zF;zF.prototype.get_m_dispatcher1=zF.prototype.gD=function(){return k(Yp(this.eB),kE)};
zF.prototype.set_m_dispatcher1=zF.prototype.$F=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zp(c,a)};Object.defineProperty(zF.prototype,"m_dispatcher1",{get:zF.prototype.gD,set:zF.prototype.$F});zF.prototype.get_m_manifold=zF.prototype.MD=function(){return k($p(this.eB),HE)};zF.prototype.set_m_manifold=zF.prototype.FG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);aq(c,a)};Object.defineProperty(zF.prototype,"m_manifold",{get:zF.prototype.MD,set:zF.prototype.FG});
zF.prototype.__destroy__=function(){bq(this.eB)};function AF(a,c,d){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);this.eB=cq(a,c,d);h(AF)[this.eB]=this}AF.prototype=Object.create(FE.prototype);AF.prototype.constructor=AF;AF.prototype.fB=AF;AF.gB={};b.btGImpactCollisionAlgorithm=AF;AF.prototype.registerAlgorithm=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dq(c,a)};AF.prototype.__destroy__=function(){eq(this.eB)};
function BF(){this.eB=fq();h(BF)[this.eB]=this}BF.prototype=Object.create(g.prototype);BF.prototype.constructor=BF;BF.prototype.fB=BF;BF.gB={};b.btDefaultCollisionConstructionInfo=BF;BF.prototype.__destroy__=function(){gq(this.eB)};function HE(){this.eB=hq();h(HE)[this.eB]=this}HE.prototype=Object.create(g.prototype);HE.prototype.constructor=HE;HE.prototype.fB=HE;HE.gB={};b.btPersistentManifold=HE;HE.prototype.getBody0=function(){return k(iq(this.eB),r)};
HE.prototype.getBody1=function(){return k(jq(this.eB),r)};HE.prototype.getNumContacts=function(){return kq(this.eB)};HE.prototype.getContactPoint=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(lq(c,a),F)};HE.prototype.__destroy__=function(){mq(this.eB)};function CF(a){a&&"object"===typeof a&&(a=a.eB);this.eB=nq(a);h(CF)[this.eB]=this}CF.prototype=Object.create(kE.prototype);CF.prototype.constructor=CF;CF.prototype.fB=CF;CF.gB={};b.btCollisionDispatcher=CF;
CF.prototype.getNumManifolds=function(){return oq(this.eB)};CF.prototype.getManifoldByIndexInternal=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(pq(c,a),HE)};CF.prototype.__destroy__=function(){qq(this.eB)};function DF(){throw"cannot construct a btOverlappingPairCallback, no constructor in IDL";}DF.prototype=Object.create(g.prototype);DF.prototype.constructor=DF;DF.prototype.fB=DF;DF.gB={};b.btOverlappingPairCallback=DF;DF.prototype.__destroy__=function(){rq(this.eB)};
function lE(){throw"cannot construct a btOverlappingPairCache, no constructor in IDL";}lE.prototype=Object.create(g.prototype);lE.prototype.constructor=lE;lE.prototype.fB=lE;lE.gB={};b.btOverlappingPairCache=lE;lE.prototype.setInternalGhostPairCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sq(c,a)};lE.prototype.getNumOverlappingPairs=function(){return tq(this.eB)};lE.prototype.__destroy__=function(){uq(this.eB)};
function EF(a,c,d,e,f){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);this.eB=void 0===d?vq(a,c):void 0===e?wq(a,c,d):void 0===f?xq(a,c,d,e):yq(a,c,d,e,f);h(EF)[this.eB]=this}EF.prototype=Object.create(g.prototype);EF.prototype.constructor=EF;EF.prototype.fB=EF;EF.gB={};b.btAxisSweep3=EF;EF.prototype.__destroy__=function(){zq(this.eB)};
function mE(){throw"cannot construct a btBroadphaseInterface, no constructor in IDL";}mE.prototype=Object.create(g.prototype);mE.prototype.constructor=mE;mE.prototype.fB=mE;mE.gB={};b.btBroadphaseInterface=mE;mE.prototype.getOverlappingPairCache=function(){return k(Aq(this.eB),lE)};mE.prototype.__destroy__=function(){Bq(this.eB)};function FF(){throw"cannot construct a btCollisionConfiguration, no constructor in IDL";}FF.prototype=Object.create(g.prototype);FF.prototype.constructor=FF;
FF.prototype.fB=FF;FF.gB={};b.btCollisionConfiguration=FF;FF.prototype.__destroy__=function(){Cq(this.eB)};function GF(){this.eB=Dq();h(GF)[this.eB]=this}GF.prototype=Object.create(g.prototype);GF.prototype.constructor=GF;GF.prototype.fB=GF;GF.gB={};b.btDbvtBroadphase=GF;GF.prototype.__destroy__=function(){Eq(this.eB)};function pE(){throw"cannot construct a btBroadphaseProxy, no constructor in IDL";}pE.prototype=Object.create(g.prototype);pE.prototype.constructor=pE;pE.prototype.fB=pE;pE.gB={};
b.btBroadphaseProxy=pE;pE.prototype.get_m_collisionFilterGroup=pE.prototype.hB=function(){return Fq(this.eB)};pE.prototype.set_m_collisionFilterGroup=pE.prototype.jB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gq(c,a)};Object.defineProperty(pE.prototype,"m_collisionFilterGroup",{get:pE.prototype.hB,set:pE.prototype.jB});pE.prototype.get_m_collisionFilterMask=pE.prototype.iB=function(){return Hq(this.eB)};
pE.prototype.set_m_collisionFilterMask=pE.prototype.kB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Iq(c,a)};Object.defineProperty(pE.prototype,"m_collisionFilterMask",{get:pE.prototype.iB,set:pE.prototype.kB});pE.prototype.__destroy__=function(){Jq(this.eB)};function L(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=void 0===e?Kq(a,c,d):Lq(a,c,d,e);h(L)[this.eB]=this}L.prototype=Object.create(g.prototype);
L.prototype.constructor=L;L.prototype.fB=L;L.gB={};b.btRigidBodyConstructionInfo=L;L.prototype.get_m_linearDamping=L.prototype.FD=function(){return Mq(this.eB)};L.prototype.set_m_linearDamping=L.prototype.yG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Nq(c,a)};Object.defineProperty(L.prototype,"m_linearDamping",{get:L.prototype.FD,set:L.prototype.yG});L.prototype.get_m_angularDamping=L.prototype.JC=function(){return Oq(this.eB)};
L.prototype.set_m_angularDamping=L.prototype.CF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pq(c,a)};Object.defineProperty(L.prototype,"m_angularDamping",{get:L.prototype.JC,set:L.prototype.CF});L.prototype.get_m_friction=L.prototype.mD=function(){return Qq(this.eB)};L.prototype.set_m_friction=L.prototype.fG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rq(c,a)};Object.defineProperty(L.prototype,"m_friction",{get:L.prototype.mD,set:L.prototype.fG});
L.prototype.get_m_rollingFriction=L.prototype.fE=function(){return Sq(this.eB)};L.prototype.set_m_rollingFriction=L.prototype.$G=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Tq(c,a)};Object.defineProperty(L.prototype,"m_rollingFriction",{get:L.prototype.fE,set:L.prototype.$G});L.prototype.get_m_restitution=L.prototype.dE=function(){return Uq(this.eB)};L.prototype.set_m_restitution=L.prototype.YG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vq(c,a)};
Object.defineProperty(L.prototype,"m_restitution",{get:L.prototype.dE,set:L.prototype.YG});L.prototype.get_m_linearSleepingThreshold=L.prototype.GD=function(){return Wq(this.eB)};L.prototype.set_m_linearSleepingThreshold=L.prototype.zG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xq(c,a)};Object.defineProperty(L.prototype,"m_linearSleepingThreshold",{get:L.prototype.GD,set:L.prototype.zG});L.prototype.get_m_angularSleepingThreshold=L.prototype.KC=function(){return Yq(this.eB)};
L.prototype.set_m_angularSleepingThreshold=L.prototype.DF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zq(c,a)};Object.defineProperty(L.prototype,"m_angularSleepingThreshold",{get:L.prototype.KC,set:L.prototype.DF});L.prototype.get_m_additionalDamping=L.prototype.EC=function(){return!!$q(this.eB)};L.prototype.set_m_additionalDamping=L.prototype.xF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ar(c,a)};
Object.defineProperty(L.prototype,"m_additionalDamping",{get:L.prototype.EC,set:L.prototype.xF});L.prototype.get_m_additionalDampingFactor=L.prototype.FC=function(){return br(this.eB)};L.prototype.set_m_additionalDampingFactor=L.prototype.yF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cr(c,a)};Object.defineProperty(L.prototype,"m_additionalDampingFactor",{get:L.prototype.FC,set:L.prototype.yF});L.prototype.get_m_additionalLinearDampingThresholdSqr=L.prototype.GC=function(){return dr(this.eB)};
L.prototype.set_m_additionalLinearDampingThresholdSqr=L.prototype.zF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);er(c,a)};Object.defineProperty(L.prototype,"m_additionalLinearDampingThresholdSqr",{get:L.prototype.GC,set:L.prototype.zF});L.prototype.get_m_additionalAngularDampingThresholdSqr=L.prototype.DC=function(){return fr(this.eB)};L.prototype.set_m_additionalAngularDampingThresholdSqr=L.prototype.wF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gr(c,a)};
Object.defineProperty(L.prototype,"m_additionalAngularDampingThresholdSqr",{get:L.prototype.DC,set:L.prototype.wF});L.prototype.get_m_additionalAngularDampingFactor=L.prototype.CC=function(){return hr(this.eB)};L.prototype.set_m_additionalAngularDampingFactor=L.prototype.vF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ir(c,a)};Object.defineProperty(L.prototype,"m_additionalAngularDampingFactor",{get:L.prototype.CC,set:L.prototype.vF});L.prototype.__destroy__=function(){jr(this.eB)};
function M(a){a&&"object"===typeof a&&(a=a.eB);this.eB=kr(a);h(M)[this.eB]=this}M.prototype=Object.create(r.prototype);M.prototype.constructor=M;M.prototype.fB=M;M.gB={};b.btRigidBody=M;M.prototype.getCenterOfMassTransform=function(){return k(lr(this.eB),t)};M.prototype.setCenterOfMassTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mr(c,a)};M.prototype.setSleepingThresholds=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);nr(d,a,c)};
M.prototype.getLinearDamping=function(){return or(this.eB)};M.prototype.getAngularDamping=function(){return pr(this.eB)};M.prototype.setDamping=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);qr(d,a,c)};M.prototype.setMassProps=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);rr(d,a,c)};M.prototype.getLinearFactor=function(){return k(sr(this.eB),n)};
M.prototype.setLinearFactor=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tr(c,a)};M.prototype.applyTorque=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ur(c,a)};M.prototype.applyLocalTorque=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);vr(c,a)};M.prototype.applyForce=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);wr(d,a,c)};
M.prototype.applyCentralForce=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xr(c,a)};M.prototype.applyCentralLocalForce=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yr(c,a)};M.prototype.applyTorqueImpulse=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zr(c,a)};M.prototype.applyImpulse=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ar(d,a,c)};
M.prototype.applyCentralImpulse=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Br(c,a)};M.prototype.updateInertiaTensor=function(){Cr(this.eB)};M.prototype.getLinearVelocity=function(){return k(Dr(this.eB),n)};M.prototype.getAngularVelocity=function(){return k(Er(this.eB),n)};M.prototype.setLinearVelocity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fr(c,a)};M.prototype.setAngularVelocity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gr(c,a)};
M.prototype.getMotionState=function(){return k(Hr(this.eB),vE)};M.prototype.setMotionState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ir(c,a)};M.prototype.getAngularFactor=function(){return k(Jr(this.eB),n)};M.prototype.setAngularFactor=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Kr(c,a)};M.prototype.upcast=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Lr(c,a),M)};
M.prototype.getAabb=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Mr(d,a,c)};M.prototype.applyGravity=function(){Nr(this.eB)};M.prototype.getGravity=function(){return k(Or(this.eB),n)};M.prototype.setGravity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pr(c,a)};M.prototype.getBroadphaseProxy=function(){return k(Qr(this.eB),pE)};M.prototype.clearForces=function(){Rr(this.eB)};
M.prototype.setAnisotropicFriction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Sr(d,a,c)};M.prototype.getCollisionShape=function(){return k(Tr(this.eB),l)};M.prototype.setContactProcessingThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ur(c,a)};M.prototype.setActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vr(c,a)};
M.prototype.forceActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wr(c,a)};M.prototype.activate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);void 0===a?Xr(c):Yr(c,a)};M.prototype.isActive=function(){return!!Zr(this.eB)};M.prototype.isKinematicObject=function(){return!!$r(this.eB)};M.prototype.isStaticObject=function(){return!!as(this.eB)};M.prototype.isStaticOrKinematicObject=function(){return!!bs(this.eB)};M.prototype.getRestitution=function(){return cs(this.eB)};
M.prototype.getFriction=function(){return ds(this.eB)};M.prototype.getRollingFriction=function(){return es(this.eB)};M.prototype.setRestitution=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gs(c,a)};M.prototype.setFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hs(c,a)};M.prototype.setRollingFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);is(c,a)};M.prototype.getWorldTransform=function(){return k(js(this.eB),t)};M.prototype.getCollisionFlags=function(){return ks(this.eB)};
M.prototype.setCollisionFlags=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ls(c,a)};M.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ms(c,a)};M.prototype.setCollisionShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ns(c,a)};M.prototype.setCcdMotionThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ps(c,a)};M.prototype.setCcdSweptSphereRadius=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qs(c,a)};
M.prototype.getUserIndex=function(){return rs(this.eB)};M.prototype.setUserIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ss(c,a)};M.prototype.getUserPointer=function(){return k(ts(this.eB),oE)};M.prototype.setUserPointer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);us(c,a)};M.prototype.getBroadphaseHandle=function(){return k(vs(this.eB),pE)};M.prototype.__destroy__=function(){xs(this.eB)};function HF(){this.eB=ys();h(HF)[this.eB]=this}HF.prototype=Object.create(g.prototype);
HF.prototype.constructor=HF;HF.prototype.fB=HF;HF.gB={};b.btConstraintSetting=HF;HF.prototype.get_m_tau=HF.prototype.uE=function(){return zs(this.eB)};HF.prototype.set_m_tau=HF.prototype.oH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);As(c,a)};Object.defineProperty(HF.prototype,"m_tau",{get:HF.prototype.uE,set:HF.prototype.oH});HF.prototype.get_m_damping=HF.prototype.cD=function(){return Bs(this.eB)};
HF.prototype.set_m_damping=HF.prototype.WF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Cs(c,a)};Object.defineProperty(HF.prototype,"m_damping",{get:HF.prototype.cD,set:HF.prototype.WF});HF.prototype.get_m_impulseClamp=HF.prototype.yD=function(){return Ds(this.eB)};HF.prototype.set_m_impulseClamp=HF.prototype.rG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Es(c,a)};Object.defineProperty(HF.prototype,"m_impulseClamp",{get:HF.prototype.yD,set:HF.prototype.rG});
HF.prototype.__destroy__=function(){Fs(this.eB)};function IF(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=void 0===d?Gs(a,c):void 0===e?_emscripten_bind_btPoint2PointConstraint_btPoint2PointConstraint_3(a,c,d):Hs(a,c,d,e);h(IF)[this.eB]=this}IF.prototype=Object.create(sE.prototype);IF.prototype.constructor=IF;IF.prototype.fB=IF;IF.gB={};b.btPoint2PointConstraint=IF;
IF.prototype.setPivotA=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Is(c,a)};IF.prototype.setPivotB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Js(c,a)};IF.prototype.getPivotInA=function(){return k(Ks(this.eB),n)};IF.prototype.getPivotInB=function(){return k(Ls(this.eB),n)};IF.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ms(c,a)};IF.prototype.getBreakingImpulseThreshold=function(){return Ns(this.eB)};
IF.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Os(c,a)};IF.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return Ps(d,a,c)};IF.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Qs(e,a,c,d)};IF.prototype.get_m_setting=IF.prototype.hE=function(){return k(Rs(this.eB),HF)};
IF.prototype.set_m_setting=IF.prototype.bH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ss(c,a)};Object.defineProperty(IF.prototype,"m_setting",{get:IF.prototype.hE,set:IF.prototype.bH});IF.prototype.__destroy__=function(){Ts(this.eB)};
function JF(a,c,d,e,f){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);this.eB=void 0===e?Us(a,c,d):void 0===f?_emscripten_bind_btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_4(a,c,d,e):Vs(a,c,d,e,f);h(JF)[this.eB]=this}JF.prototype=Object.create(IE.prototype);JF.prototype.constructor=JF;JF.prototype.fB=JF;JF.gB={};b.btGeneric6DofSpringConstraint=JF;
JF.prototype.enableSpring=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ws(d,a,c)};JF.prototype.setStiffness=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Xs(d,a,c)};JF.prototype.setDamping=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ys(d,a,c)};
JF.prototype.setEquilibriumPoint=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);void 0===a?Zs(d):void 0===c?$s(d,a):at(d,a,c)};JF.prototype.setLinearLowerLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bt(c,a)};JF.prototype.setLinearUpperLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ct(c,a)};JF.prototype.setAngularLowerLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dt(c,a)};
JF.prototype.setAngularUpperLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);et(c,a)};JF.prototype.getFrameOffsetA=function(){return k(ft(this.eB),t)};JF.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gt(c,a)};JF.prototype.getBreakingImpulseThreshold=function(){return ht(this.eB)};JF.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);it(c,a)};
JF.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return jt(d,a,c)};JF.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);kt(e,a,c,d)};JF.prototype.__destroy__=function(){lt(this.eB)};function KF(){this.eB=mt();h(KF)[this.eB]=this}KF.prototype=Object.create(g.prototype);KF.prototype.constructor=KF;KF.prototype.fB=KF;KF.gB={};
b.btSequentialImpulseConstraintSolver=KF;KF.prototype.__destroy__=function(){nt(this.eB)};function LF(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=void 0===d?ot(a,c):void 0===e?_emscripten_bind_btConeTwistConstraint_btConeTwistConstraint_3(a,c,d):pt(a,c,d,e);h(LF)[this.eB]=this}LF.prototype=Object.create(sE.prototype);LF.prototype.constructor=LF;LF.prototype.fB=LF;LF.gB={};
b.btConeTwistConstraint=LF;LF.prototype.setLimit=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);qt(d,a,c)};LF.prototype.setAngularOnly=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rt(c,a)};LF.prototype.setDamping=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);st(c,a)};LF.prototype.enableMotor=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tt(c,a)};
LF.prototype.setMaxMotorImpulse=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ut(c,a)};LF.prototype.setMaxMotorImpulseNormalized=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);vt(c,a)};LF.prototype.setMotorTarget=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);wt(c,a)};LF.prototype.setMotorTargetInConstraintSpace=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xt(c,a)};
LF.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yt(c,a)};LF.prototype.getBreakingImpulseThreshold=function(){return zt(this.eB)};LF.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);At(c,a)};LF.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return Bt(d,a,c)};
LF.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Ct(e,a,c,d)};LF.prototype.__destroy__=function(){Dt(this.eB)};
function MF(a,c,d,e,f,m,y){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);this.eB=void 0===d?Et(a,c):void 0===e?Ft(a,c,d):void 0===f?Gt(a,c,d,e):void 0===m?Ht(a,c,d,e,f):void 0===y?It(a,c,d,e,f,m):Jt(a,c,d,e,f,m,y);h(MF)[this.eB]=this}MF.prototype=Object.create(sE.prototype);MF.prototype.constructor=MF;
MF.prototype.fB=MF;MF.gB={};b.btHingeConstraint=MF;MF.prototype.getHingeAngle=function(){return Kt(this.eB)};MF.prototype.setLimit=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);void 0===f?Lt(m,a,c,d,e):Mt(m,a,c,d,e,f)};
MF.prototype.enableAngularMotor=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Nt(e,a,c,d)};MF.prototype.setAngularOnly=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ot(c,a)};MF.prototype.enableMotor=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pt(c,a)};MF.prototype.setMaxMotorImpulse=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Qt(c,a)};
MF.prototype.setMotorTarget=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Rt(d,a,c)};MF.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);St(c,a)};MF.prototype.getBreakingImpulseThreshold=function(){return Tt(this.eB)};MF.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ut(c,a)};
MF.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return Vt(d,a,c)};MF.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Wt(e,a,c,d)};MF.prototype.__destroy__=function(){Xt(this.eB)};
function NF(a,c,d,e,f){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);this.eB=void 0===e?Yt(a,c,d):void 0===f?_emscripten_bind_btSliderConstraint_btSliderConstraint_4(a,c,d,e):Zt(a,c,d,e,f);h(NF)[this.eB]=this}NF.prototype=Object.create(sE.prototype);NF.prototype.constructor=NF;NF.prototype.fB=NF;NF.gB={};b.btSliderConstraint=NF;NF.prototype.getLinearPos=function(){return $t(this.eB)};
NF.prototype.getAngularPos=function(){return au(this.eB)};NF.prototype.setLowerLinLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bu(c,a)};NF.prototype.setUpperLinLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cu(c,a)};NF.prototype.setLowerAngLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);du(c,a)};NF.prototype.setUpperAngLimit=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);eu(c,a)};
NF.prototype.setPoweredLinMotor=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fu(c,a)};NF.prototype.setMaxLinMotorForce=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gu(c,a)};NF.prototype.setTargetLinMotorVelocity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hu(c,a)};NF.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);iu(c,a)};NF.prototype.getBreakingImpulseThreshold=function(){return ju(this.eB)};
NF.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ku(c,a)};NF.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return lu(d,a,c)};NF.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);mu(e,a,c,d)};NF.prototype.__destroy__=function(){nu(this.eB)};
function OF(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=ou(a,c,d,e);h(OF)[this.eB]=this}OF.prototype=Object.create(sE.prototype);OF.prototype.constructor=OF;OF.prototype.fB=OF;OF.gB={};b.btFixedConstraint=OF;OF.prototype.enableFeedback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pu(c,a)};OF.prototype.getBreakingImpulseThreshold=function(){return qu(this.eB)};
OF.prototype.setBreakingImpulseThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ru(c,a)};OF.prototype.getParam=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return su(d,a,c)};OF.prototype.setParam=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);tu(e,a,c,d)};OF.prototype.__destroy__=function(){uu(this.eB)};
function PF(){throw"cannot construct a btConstraintSolver, no constructor in IDL";}PF.prototype=Object.create(g.prototype);PF.prototype.constructor=PF;PF.prototype.fB=PF;PF.gB={};b.btConstraintSolver=PF;PF.prototype.__destroy__=function(){vu(this.eB)};function q(){throw"cannot construct a btDispatcherInfo, no constructor in IDL";}q.prototype=Object.create(g.prototype);q.prototype.constructor=q;q.prototype.fB=q;q.gB={};b.btDispatcherInfo=q;q.prototype.get_m_timeStep=q.prototype.wE=function(){return wu(this.eB)};
q.prototype.set_m_timeStep=q.prototype.qH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xu(c,a)};Object.defineProperty(q.prototype,"m_timeStep",{get:q.prototype.wE,set:q.prototype.qH});q.prototype.get_m_stepCount=q.prototype.nE=function(){return yu(this.eB)};q.prototype.set_m_stepCount=q.prototype.hH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zu(c,a)};Object.defineProperty(q.prototype,"m_stepCount",{get:q.prototype.nE,set:q.prototype.hH});
q.prototype.get_m_dispatchFunc=q.prototype.eD=function(){return Au(this.eB)};q.prototype.set_m_dispatchFunc=q.prototype.YF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Bu(c,a)};Object.defineProperty(q.prototype,"m_dispatchFunc",{get:q.prototype.eD,set:q.prototype.YF});q.prototype.get_m_timeOfImpact=q.prototype.vE=function(){return Cu(this.eB)};q.prototype.set_m_timeOfImpact=q.prototype.pH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Du(c,a)};
Object.defineProperty(q.prototype,"m_timeOfImpact",{get:q.prototype.vE,set:q.prototype.pH});q.prototype.get_m_useContinuous=q.prototype.yE=function(){return!!Eu(this.eB)};q.prototype.set_m_useContinuous=q.prototype.sH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fu(c,a)};Object.defineProperty(q.prototype,"m_useContinuous",{get:q.prototype.yE,set:q.prototype.sH});q.prototype.get_m_enableSatConvex=q.prototype.jD=function(){return!!Gu(this.eB)};
q.prototype.set_m_enableSatConvex=q.prototype.cG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hu(c,a)};Object.defineProperty(q.prototype,"m_enableSatConvex",{get:q.prototype.jD,set:q.prototype.cG});q.prototype.get_m_enableSPU=q.prototype.iD=function(){return!!Iu(this.eB)};q.prototype.set_m_enableSPU=q.prototype.bG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ju(c,a)};Object.defineProperty(q.prototype,"m_enableSPU",{get:q.prototype.iD,set:q.prototype.bG});
q.prototype.get_m_useEpa=q.prototype.AE=function(){return!!Ku(this.eB)};q.prototype.set_m_useEpa=q.prototype.uH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Lu(c,a)};Object.defineProperty(q.prototype,"m_useEpa",{get:q.prototype.AE,set:q.prototype.uH});q.prototype.get_m_allowedCcdPenetration=q.prototype.HC=function(){return Mu(this.eB)};q.prototype.set_m_allowedCcdPenetration=q.prototype.AF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Nu(c,a)};
Object.defineProperty(q.prototype,"m_allowedCcdPenetration",{get:q.prototype.HC,set:q.prototype.AF});q.prototype.get_m_useConvexConservativeDistanceUtil=q.prototype.zE=function(){return!!Ou(this.eB)};q.prototype.set_m_useConvexConservativeDistanceUtil=q.prototype.tH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pu(c,a)};Object.defineProperty(q.prototype,"m_useConvexConservativeDistanceUtil",{get:q.prototype.zE,set:q.prototype.tH});
q.prototype.get_m_convexConservativeDistanceThreshold=q.prototype.$C=function(){return Qu(this.eB)};q.prototype.set_m_convexConservativeDistanceThreshold=q.prototype.TF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ru(c,a)};Object.defineProperty(q.prototype,"m_convexConservativeDistanceThreshold",{get:q.prototype.$C,set:q.prototype.TF});q.prototype.__destroy__=function(){Su(this.eB)};function u(){throw"cannot construct a btContactSolverInfo, no constructor in IDL";}u.prototype=Object.create(g.prototype);
u.prototype.constructor=u;u.prototype.fB=u;u.gB={};b.btContactSolverInfo=u;u.prototype.get_m_splitImpulse=u.prototype.kE=function(){return!!Tu(this.eB)};u.prototype.set_m_splitImpulse=u.prototype.eH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Uu(c,a)};Object.defineProperty(u.prototype,"m_splitImpulse",{get:u.prototype.kE,set:u.prototype.eH});u.prototype.get_m_splitImpulsePenetrationThreshold=u.prototype.lE=function(){return Vu(this.eB)};
u.prototype.set_m_splitImpulsePenetrationThreshold=u.prototype.fH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wu(c,a)};Object.defineProperty(u.prototype,"m_splitImpulsePenetrationThreshold",{get:u.prototype.lE,set:u.prototype.fH});u.prototype.get_m_numIterations=u.prototype.VD=function(){return Xu(this.eB)};u.prototype.set_m_numIterations=u.prototype.OG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Yu(c,a)};
Object.defineProperty(u.prototype,"m_numIterations",{get:u.prototype.VD,set:u.prototype.OG});u.prototype.__destroy__=function(){Zu(this.eB)};function N(){this.eB=$u();h(N)[this.eB]=this}N.prototype=Object.create(g.prototype);N.prototype.constructor=N;N.prototype.fB=N;N.gB={};b.btVehicleTuning=N;N.prototype.get_m_suspensionStiffness=N.prototype.yB=function(){return av(this.eB)};N.prototype.set_m_suspensionStiffness=N.prototype.GB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bv(c,a)};
Object.defineProperty(N.prototype,"m_suspensionStiffness",{get:N.prototype.yB,set:N.prototype.GB});N.prototype.get_m_suspensionCompression=N.prototype.oE=function(){return cv(this.eB)};N.prototype.set_m_suspensionCompression=N.prototype.iH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dv(c,a)};Object.defineProperty(N.prototype,"m_suspensionCompression",{get:N.prototype.oE,set:N.prototype.iH});N.prototype.get_m_suspensionDamping=N.prototype.pE=function(){return ev(this.eB)};
N.prototype.set_m_suspensionDamping=N.prototype.jH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fv(c,a)};Object.defineProperty(N.prototype,"m_suspensionDamping",{get:N.prototype.pE,set:N.prototype.jH});N.prototype.get_m_maxSuspensionTravelCm=N.prototype.xB=function(){return gv(this.eB)};N.prototype.set_m_maxSuspensionTravelCm=N.prototype.FB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hv(c,a)};
Object.defineProperty(N.prototype,"m_maxSuspensionTravelCm",{get:N.prototype.xB,set:N.prototype.FB});N.prototype.get_m_frictionSlip=N.prototype.tB=function(){return iv(this.eB)};N.prototype.set_m_frictionSlip=N.prototype.BB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jv(c,a)};Object.defineProperty(N.prototype,"m_frictionSlip",{get:N.prototype.tB,set:N.prototype.BB});N.prototype.get_m_maxSuspensionForce=N.prototype.wB=function(){return kv(this.eB)};
N.prototype.set_m_maxSuspensionForce=N.prototype.EB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);lv(c,a)};Object.defineProperty(N.prototype,"m_maxSuspensionForce",{get:N.prototype.wB,set:N.prototype.EB});function QF(){throw"cannot construct a btVehicleRaycasterResult, no constructor in IDL";}QF.prototype=Object.create(g.prototype);QF.prototype.constructor=QF;QF.prototype.fB=QF;QF.gB={};b.btVehicleRaycasterResult=QF;
QF.prototype.get_m_hitPointInWorld=QF.prototype.vD=function(){return k(mv(this.eB),n)};QF.prototype.set_m_hitPointInWorld=QF.prototype.oG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nv(c,a)};Object.defineProperty(QF.prototype,"m_hitPointInWorld",{get:QF.prototype.vD,set:QF.prototype.oG});QF.prototype.get_m_hitNormalInWorld=QF.prototype.tD=function(){return k(ov(this.eB),n)};
QF.prototype.set_m_hitNormalInWorld=QF.prototype.mG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pv(c,a)};Object.defineProperty(QF.prototype,"m_hitNormalInWorld",{get:QF.prototype.tD,set:QF.prototype.mG});QF.prototype.get_m_distFraction=QF.prototype.hD=function(){return qv(this.eB)};QF.prototype.set_m_distFraction=QF.prototype.aG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rv(c,a)};Object.defineProperty(QF.prototype,"m_distFraction",{get:QF.prototype.hD,set:QF.prototype.aG});
QF.prototype.__destroy__=function(){sv(this.eB)};function RF(a){a&&"object"===typeof a&&(a=a.eB);this.eB=tv(a);h(RF)[this.eB]=this}RF.prototype=Object.create(JE.prototype);RF.prototype.constructor=RF;RF.prototype.fB=RF;RF.gB={};b.btDefaultVehicleRaycaster=RF;RF.prototype.castRay=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);uv(e,a,c,d)};RF.prototype.__destroy__=function(){vv(this.eB)};
function O(){throw"cannot construct a RaycastInfo, no constructor in IDL";}O.prototype=Object.create(g.prototype);O.prototype.constructor=O;O.prototype.fB=O;O.gB={};b.RaycastInfo=O;O.prototype.get_m_contactNormalWS=O.prototype.YC=function(){return k(wv(this.eB),n)};O.prototype.set_m_contactNormalWS=O.prototype.RF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xv(c,a)};Object.defineProperty(O.prototype,"m_contactNormalWS",{get:O.prototype.YC,set:O.prototype.RF});
O.prototype.get_m_contactPointWS=O.prototype.ZC=function(){return k(yv(this.eB),n)};O.prototype.set_m_contactPointWS=O.prototype.SF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zv(c,a)};Object.defineProperty(O.prototype,"m_contactPointWS",{get:O.prototype.ZC,set:O.prototype.SF});O.prototype.get_m_suspensionLength=O.prototype.qE=function(){return Av(this.eB)};O.prototype.set_m_suspensionLength=O.prototype.kH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Bv(c,a)};
Object.defineProperty(O.prototype,"m_suspensionLength",{get:O.prototype.qE,set:O.prototype.kH});O.prototype.get_m_hardPointWS=O.prototype.qD=function(){return k(Cv(this.eB),n)};O.prototype.set_m_hardPointWS=O.prototype.jG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Dv(c,a)};Object.defineProperty(O.prototype,"m_hardPointWS",{get:O.prototype.qD,set:O.prototype.jG});O.prototype.get_m_wheelDirectionWS=O.prototype.FE=function(){return k(Ev(this.eB),n)};
O.prototype.set_m_wheelDirectionWS=O.prototype.zH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fv(c,a)};Object.defineProperty(O.prototype,"m_wheelDirectionWS",{get:O.prototype.FE,set:O.prototype.zH});O.prototype.get_m_wheelAxleWS=O.prototype.EE=function(){return k(Gv(this.eB),n)};O.prototype.set_m_wheelAxleWS=O.prototype.yH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hv(c,a)};Object.defineProperty(O.prototype,"m_wheelAxleWS",{get:O.prototype.EE,set:O.prototype.yH});
O.prototype.get_m_isInContact=O.prototype.BD=function(){return!!Iv(this.eB)};O.prototype.set_m_isInContact=O.prototype.uG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Jv(c,a)};Object.defineProperty(O.prototype,"m_isInContact",{get:O.prototype.BD,set:O.prototype.uG});O.prototype.get_m_groundObject=O.prototype.pD=function(){return Kv(this.eB)};O.prototype.set_m_groundObject=O.prototype.iG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Lv(c,a)};
Object.defineProperty(O.prototype,"m_groundObject",{get:O.prototype.pD,set:O.prototype.iG});O.prototype.__destroy__=function(){Mv(this.eB)};function P(){throw"cannot construct a btWheelInfoConstructionInfo, no constructor in IDL";}P.prototype=Object.create(g.prototype);P.prototype.constructor=P;P.prototype.fB=P;P.gB={};b.btWheelInfoConstructionInfo=P;P.prototype.get_m_chassisConnectionCS=P.prototype.TC=function(){return k(Nv(this.eB),n)};
P.prototype.set_m_chassisConnectionCS=P.prototype.MF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ov(c,a)};Object.defineProperty(P.prototype,"m_chassisConnectionCS",{get:P.prototype.TC,set:P.prototype.MF});P.prototype.get_m_wheelDirectionCS=P.prototype.PB=function(){return k(Pv(this.eB),n)};P.prototype.set_m_wheelDirectionCS=P.prototype.ZB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Qv(c,a)};Object.defineProperty(P.prototype,"m_wheelDirectionCS",{get:P.prototype.PB,set:P.prototype.ZB});
P.prototype.get_m_wheelAxleCS=P.prototype.OB=function(){return k(Rv(this.eB),n)};P.prototype.set_m_wheelAxleCS=P.prototype.YB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Sv(c,a)};Object.defineProperty(P.prototype,"m_wheelAxleCS",{get:P.prototype.OB,set:P.prototype.YB});P.prototype.get_m_suspensionRestLength=P.prototype.sE=function(){return Tv(this.eB)};P.prototype.set_m_suspensionRestLength=P.prototype.mH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Uv(c,a)};
Object.defineProperty(P.prototype,"m_suspensionRestLength",{get:P.prototype.sE,set:P.prototype.mH});P.prototype.get_m_maxSuspensionTravelCm=P.prototype.xB=function(){return Vv(this.eB)};P.prototype.set_m_maxSuspensionTravelCm=P.prototype.FB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Wv(c,a)};Object.defineProperty(P.prototype,"m_maxSuspensionTravelCm",{get:P.prototype.xB,set:P.prototype.FB});P.prototype.get_m_wheelRadius=P.prototype.GE=function(){return Xv(this.eB)};
P.prototype.set_m_wheelRadius=P.prototype.AH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Yv(c,a)};Object.defineProperty(P.prototype,"m_wheelRadius",{get:P.prototype.GE,set:P.prototype.AH});P.prototype.get_m_suspensionStiffness=P.prototype.yB=function(){return Zv(this.eB)};P.prototype.set_m_suspensionStiffness=P.prototype.GB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);$v(c,a)};Object.defineProperty(P.prototype,"m_suspensionStiffness",{get:P.prototype.yB,set:P.prototype.GB});
P.prototype.get_m_wheelsDampingCompression=P.prototype.QB=function(){return aw(this.eB)};P.prototype.set_m_wheelsDampingCompression=P.prototype.$B=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);bw(c,a)};Object.defineProperty(P.prototype,"m_wheelsDampingCompression",{get:P.prototype.QB,set:P.prototype.$B});P.prototype.get_m_wheelsDampingRelaxation=P.prototype.RB=function(){return cw(this.eB)};
P.prototype.set_m_wheelsDampingRelaxation=P.prototype.aC=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dw(c,a)};Object.defineProperty(P.prototype,"m_wheelsDampingRelaxation",{get:P.prototype.RB,set:P.prototype.aC});P.prototype.get_m_frictionSlip=P.prototype.tB=function(){return ew(this.eB)};P.prototype.set_m_frictionSlip=P.prototype.BB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fw(c,a)};Object.defineProperty(P.prototype,"m_frictionSlip",{get:P.prototype.tB,set:P.prototype.BB});
P.prototype.get_m_maxSuspensionForce=P.prototype.wB=function(){return gw(this.eB)};P.prototype.set_m_maxSuspensionForce=P.prototype.EB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hw(c,a)};Object.defineProperty(P.prototype,"m_maxSuspensionForce",{get:P.prototype.wB,set:P.prototype.EB});P.prototype.get_m_bIsFrontWheel=P.prototype.IB=function(){return!!iw(this.eB)};P.prototype.set_m_bIsFrontWheel=P.prototype.SB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jw(c,a)};
Object.defineProperty(P.prototype,"m_bIsFrontWheel",{get:P.prototype.IB,set:P.prototype.SB});P.prototype.__destroy__=function(){kw(this.eB)};function Q(a){a&&"object"===typeof a&&(a=a.eB);this.eB=lw(a);h(Q)[this.eB]=this}Q.prototype=Object.create(g.prototype);Q.prototype.constructor=Q;Q.prototype.fB=Q;Q.gB={};b.btWheelInfo=Q;Q.prototype.getSuspensionRestLength=function(){return mw(this.eB)};
Q.prototype.updateWheel=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);nw(d,a,c)};Q.prototype.get_m_suspensionStiffness=Q.prototype.yB=function(){return ow(this.eB)};Q.prototype.set_m_suspensionStiffness=Q.prototype.GB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pw(c,a)};Object.defineProperty(Q.prototype,"m_suspensionStiffness",{get:Q.prototype.yB,set:Q.prototype.GB});Q.prototype.get_m_frictionSlip=Q.prototype.tB=function(){return qw(this.eB)};
Q.prototype.set_m_frictionSlip=Q.prototype.BB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rw(c,a)};Object.defineProperty(Q.prototype,"m_frictionSlip",{get:Q.prototype.tB,set:Q.prototype.BB});Q.prototype.get_m_engineForce=Q.prototype.kD=function(){return sw(this.eB)};Q.prototype.set_m_engineForce=Q.prototype.dG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tw(c,a)};Object.defineProperty(Q.prototype,"m_engineForce",{get:Q.prototype.kD,set:Q.prototype.dG});
Q.prototype.get_m_rollInfluence=Q.prototype.eE=function(){return uw(this.eB)};Q.prototype.set_m_rollInfluence=Q.prototype.ZG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);vw(c,a)};Object.defineProperty(Q.prototype,"m_rollInfluence",{get:Q.prototype.eE,set:Q.prototype.ZG});Q.prototype.get_m_suspensionRestLength1=Q.prototype.tE=function(){return ww(this.eB)};Q.prototype.set_m_suspensionRestLength1=Q.prototype.nH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xw(c,a)};
Object.defineProperty(Q.prototype,"m_suspensionRestLength1",{get:Q.prototype.tE,set:Q.prototype.nH});Q.prototype.get_m_wheelsRadius=Q.prototype.HE=function(){return yw(this.eB)};Q.prototype.set_m_wheelsRadius=Q.prototype.BH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zw(c,a)};Object.defineProperty(Q.prototype,"m_wheelsRadius",{get:Q.prototype.HE,set:Q.prototype.BH});Q.prototype.get_m_wheelsDampingCompression=Q.prototype.QB=function(){return Aw(this.eB)};
Q.prototype.set_m_wheelsDampingCompression=Q.prototype.$B=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Bw(c,a)};Object.defineProperty(Q.prototype,"m_wheelsDampingCompression",{get:Q.prototype.QB,set:Q.prototype.$B});Q.prototype.get_m_wheelsDampingRelaxation=Q.prototype.RB=function(){return Cw(this.eB)};Q.prototype.set_m_wheelsDampingRelaxation=Q.prototype.aC=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Dw(c,a)};
Object.defineProperty(Q.prototype,"m_wheelsDampingRelaxation",{get:Q.prototype.RB,set:Q.prototype.aC});Q.prototype.get_m_steering=Q.prototype.mE=function(){return Ew(this.eB)};Q.prototype.set_m_steering=Q.prototype.gH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fw(c,a)};Object.defineProperty(Q.prototype,"m_steering",{get:Q.prototype.mE,set:Q.prototype.gH});Q.prototype.get_m_maxSuspensionForce=Q.prototype.wB=function(){return Gw(this.eB)};
Q.prototype.set_m_maxSuspensionForce=Q.prototype.EB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hw(c,a)};Object.defineProperty(Q.prototype,"m_maxSuspensionForce",{get:Q.prototype.wB,set:Q.prototype.EB});Q.prototype.get_m_maxSuspensionTravelCm=Q.prototype.xB=function(){return Iw(this.eB)};Q.prototype.set_m_maxSuspensionTravelCm=Q.prototype.FB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Jw(c,a)};
Object.defineProperty(Q.prototype,"m_maxSuspensionTravelCm",{get:Q.prototype.xB,set:Q.prototype.FB});Q.prototype.get_m_wheelsSuspensionForce=Q.prototype.IE=function(){return Kw(this.eB)};Q.prototype.set_m_wheelsSuspensionForce=Q.prototype.CH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Lw(c,a)};Object.defineProperty(Q.prototype,"m_wheelsSuspensionForce",{get:Q.prototype.IE,set:Q.prototype.CH});Q.prototype.get_m_bIsFrontWheel=Q.prototype.IB=function(){return!!Mw(this.eB)};
Q.prototype.set_m_bIsFrontWheel=Q.prototype.SB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Nw(c,a)};Object.defineProperty(Q.prototype,"m_bIsFrontWheel",{get:Q.prototype.IB,set:Q.prototype.SB});Q.prototype.get_m_raycastInfo=Q.prototype.cE=function(){return k(Ow(this.eB),O)};Q.prototype.set_m_raycastInfo=Q.prototype.XG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pw(c,a)};Object.defineProperty(Q.prototype,"m_raycastInfo",{get:Q.prototype.cE,set:Q.prototype.XG});
Q.prototype.get_m_chassisConnectionPointCS=Q.prototype.UC=function(){return k(Qw(this.eB),n)};Q.prototype.set_m_chassisConnectionPointCS=Q.prototype.NF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rw(c,a)};Object.defineProperty(Q.prototype,"m_chassisConnectionPointCS",{get:Q.prototype.UC,set:Q.prototype.NF});Q.prototype.get_m_worldTransform=Q.prototype.JE=function(){return k(Sw(this.eB),t)};
Q.prototype.set_m_worldTransform=Q.prototype.DH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Tw(c,a)};Object.defineProperty(Q.prototype,"m_worldTransform",{get:Q.prototype.JE,set:Q.prototype.DH});Q.prototype.get_m_wheelDirectionCS=Q.prototype.PB=function(){return k(Uw(this.eB),n)};Q.prototype.set_m_wheelDirectionCS=Q.prototype.ZB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vw(c,a)};Object.defineProperty(Q.prototype,"m_wheelDirectionCS",{get:Q.prototype.PB,set:Q.prototype.ZB});
Q.prototype.get_m_wheelAxleCS=Q.prototype.OB=function(){return k(Ww(this.eB),n)};Q.prototype.set_m_wheelAxleCS=Q.prototype.YB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xw(c,a)};Object.defineProperty(Q.prototype,"m_wheelAxleCS",{get:Q.prototype.OB,set:Q.prototype.YB});Q.prototype.get_m_rotation=Q.prototype.gE=function(){return Yw(this.eB)};Q.prototype.set_m_rotation=Q.prototype.aH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zw(c,a)};
Object.defineProperty(Q.prototype,"m_rotation",{get:Q.prototype.gE,set:Q.prototype.aH});Q.prototype.get_m_deltaRotation=Q.prototype.dD=function(){return $w(this.eB)};Q.prototype.set_m_deltaRotation=Q.prototype.XF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ax(c,a)};Object.defineProperty(Q.prototype,"m_deltaRotation",{get:Q.prototype.dD,set:Q.prototype.XF});Q.prototype.get_m_brake=Q.prototype.NC=function(){return bx(this.eB)};
Q.prototype.set_m_brake=Q.prototype.GF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cx(c,a)};Object.defineProperty(Q.prototype,"m_brake",{get:Q.prototype.NC,set:Q.prototype.GF});Q.prototype.get_m_clippedInvContactDotSuspension=Q.prototype.VC=function(){return dx(this.eB)};Q.prototype.set_m_clippedInvContactDotSuspension=Q.prototype.OF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ex(c,a)};
Object.defineProperty(Q.prototype,"m_clippedInvContactDotSuspension",{get:Q.prototype.VC,set:Q.prototype.OF});Q.prototype.get_m_suspensionRelativeVelocity=Q.prototype.rE=function(){return fx(this.eB)};Q.prototype.set_m_suspensionRelativeVelocity=Q.prototype.lH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gx(c,a)};Object.defineProperty(Q.prototype,"m_suspensionRelativeVelocity",{get:Q.prototype.rE,set:Q.prototype.lH});Q.prototype.get_m_skidInfo=Q.prototype.jE=function(){return hx(this.eB)};
Q.prototype.set_m_skidInfo=Q.prototype.dH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ix(c,a)};Object.defineProperty(Q.prototype,"m_skidInfo",{get:Q.prototype.jE,set:Q.prototype.dH});Q.prototype.__destroy__=function(){jx(this.eB)};function SF(a,c,d,e){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);this.eB=void 0===e?kx(a,c,d):lx(a,c,d,e);h(SF)[this.eB]=this}SF.prototype=Object.create(KE.prototype);
SF.prototype.constructor=SF;SF.prototype.fB=SF;SF.gB={};b.btKinematicCharacterController=SF;SF.prototype.setUpAxis=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mx(c,a)};SF.prototype.setWalkDirection=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nx(c,a)};SF.prototype.setVelocityForTimeInterval=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);ox(d,a,c)};
SF.prototype.warp=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);px(c,a)};SF.prototype.preStep=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qx(c,a)};SF.prototype.playerStep=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);rx(d,a,c)};SF.prototype.setFallSpeed=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sx(c,a)};SF.prototype.setJumpSpeed=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tx(c,a)};
SF.prototype.setMaxJumpHeight=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ux(c,a)};SF.prototype.canJump=function(){return!!vx(this.eB)};SF.prototype.jump=function(){wx(this.eB)};SF.prototype.setGravity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xx(c,a)};SF.prototype.getGravity=function(){return yx(this.eB)};SF.prototype.setMaxSlope=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zx(c,a)};SF.prototype.getMaxSlope=function(){return Ax(this.eB)};
SF.prototype.getGhostObject=function(){return k(Bx(this.eB),R)};SF.prototype.setUseGhostSweepTest=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Cx(c,a)};SF.prototype.onGround=function(){return!!Dx(this.eB)};SF.prototype.setUpInterpolate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ex(c,a)};SF.prototype.updateAction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Fx(d,a,c)};SF.prototype.__destroy__=function(){Gx(this.eB)};
function S(a,c,d){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);this.eB=Hx(a,c,d);h(S)[this.eB]=this}S.prototype=Object.create(KE.prototype);S.prototype.constructor=S;S.prototype.fB=S;S.gB={};b.btRaycastVehicle=S;S.prototype.applyEngineForce=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Ix(d,a,c)};
S.prototype.setSteeringValue=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Jx(d,a,c)};S.prototype.getWheelTransformWS=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Kx(c,a),t)};S.prototype.updateWheelTransform=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Lx(d,a,c)};
S.prototype.addWheel=function(a,c,d,e,f,m,y){var W=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);return k(Mx(W,a,c,d,e,f,m,y),Q)};S.prototype.getNumWheels=function(){return Nx(this.eB)};S.prototype.getRigidBody=function(){return k(Ox(this.eB),M)};
S.prototype.getWheelInfo=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Px(c,a),Q)};S.prototype.setBrake=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);Qx(d,a,c)};S.prototype.setCoordinateSystem=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);Rx(e,a,c,d)};S.prototype.getCurrentSpeedKmHour=function(){return Sx(this.eB)};
S.prototype.getChassisWorldTransform=function(){return k(Tx(this.eB),t)};S.prototype.rayCast=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return Ux(c,a)};S.prototype.updateVehicle=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vx(c,a)};S.prototype.resetSuspension=function(){Wx(this.eB)};S.prototype.getSteeringValue=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return Xx(c,a)};
S.prototype.updateWheelTransformsWS=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);void 0===c?Yx(d,a):Zx(d,a,c)};S.prototype.setPitchControl=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);$x(c,a)};S.prototype.updateSuspension=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ay(c,a)};S.prototype.updateFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);by(c,a)};S.prototype.getRightAxis=function(){return cy(this.eB)};
S.prototype.getUpAxis=function(){return dy(this.eB)};S.prototype.getForwardAxis=function(){return ey(this.eB)};S.prototype.getForwardVector=function(){return k(fy(this.eB),n)};S.prototype.getUserConstraintType=function(){return gy(this.eB)};S.prototype.setUserConstraintType=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hy(c,a)};S.prototype.setUserConstraintId=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);iy(c,a)};S.prototype.getUserConstraintId=function(){return jy(this.eB)};
S.prototype.updateAction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);ky(d,a,c)};S.prototype.__destroy__=function(){ly(this.eB)};function R(){this.eB=my();h(R)[this.eB]=this}R.prototype=Object.create(z.prototype);R.prototype.constructor=R;R.prototype.fB=R;R.gB={};b.btPairCachingGhostObject=R;R.prototype.setAnisotropicFriction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);ny(d,a,c)};
R.prototype.getCollisionShape=function(){return k(oy(this.eB),l)};R.prototype.setContactProcessingThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);py(c,a)};R.prototype.setActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qy(c,a)};R.prototype.forceActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ry(c,a)};R.prototype.activate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);void 0===a?sy(c):ty(c,a)};
R.prototype.isActive=function(){return!!uy(this.eB)};R.prototype.isKinematicObject=function(){return!!vy(this.eB)};R.prototype.isStaticObject=function(){return!!wy(this.eB)};R.prototype.isStaticOrKinematicObject=function(){return!!xy(this.eB)};R.prototype.getRestitution=function(){return yy(this.eB)};R.prototype.getFriction=function(){return zy(this.eB)};R.prototype.getRollingFriction=function(){return Ay(this.eB)};
R.prototype.setRestitution=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);By(c,a)};R.prototype.setFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Cy(c,a)};R.prototype.setRollingFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Dy(c,a)};R.prototype.getWorldTransform=function(){return k(Ey(this.eB),t)};R.prototype.getCollisionFlags=function(){return Fy(this.eB)};
R.prototype.setCollisionFlags=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Gy(c,a)};R.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hy(c,a)};R.prototype.setCollisionShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Iy(c,a)};R.prototype.setCcdMotionThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Jy(c,a)};R.prototype.setCcdSweptSphereRadius=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Ky(c,a)};
R.prototype.getUserIndex=function(){return Ly(this.eB)};R.prototype.setUserIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);My(c,a)};R.prototype.getUserPointer=function(){return k(Ny(this.eB),oE)};R.prototype.setUserPointer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Oy(c,a)};R.prototype.getBroadphaseHandle=function(){return k(Py(this.eB),pE)};R.prototype.getNumOverlappingObjects=function(){return Qy(this.eB)};
R.prototype.getOverlappingObject=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Ry(c,a),r)};R.prototype.__destroy__=function(){Sy(this.eB)};function UF(){this.eB=Ty();h(UF)[this.eB]=this}UF.prototype=Object.create(g.prototype);UF.prototype.constructor=UF;UF.prototype.fB=UF;UF.gB={};b.btGhostPairCallback=UF;UF.prototype.__destroy__=function(){Uy(this.eB)};function T(){this.eB=Vy();h(T)[this.eB]=this}T.prototype=Object.create(g.prototype);T.prototype.constructor=T;
T.prototype.fB=T;T.gB={};b.btSoftBodyWorldInfo=T;T.prototype.get_air_density=T.prototype.eC=function(){return Wy(this.eB)};T.prototype.set_air_density=T.prototype.YE=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Xy(c,a)};Object.defineProperty(T.prototype,"air_density",{get:T.prototype.eC,set:T.prototype.YE});T.prototype.get_water_density=T.prototype.TE=function(){return Yy(this.eB)};
T.prototype.set_water_density=T.prototype.NH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Zy(c,a)};Object.defineProperty(T.prototype,"water_density",{get:T.prototype.TE,set:T.prototype.NH});T.prototype.get_water_offset=T.prototype.VE=function(){return $y(this.eB)};T.prototype.set_water_offset=T.prototype.PH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);az(c,a)};Object.defineProperty(T.prototype,"water_offset",{get:T.prototype.VE,set:T.prototype.PH});
T.prototype.get_m_maxDisplacement=T.prototype.PD=function(){return bz(this.eB)};T.prototype.set_m_maxDisplacement=T.prototype.IG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cz(c,a)};Object.defineProperty(T.prototype,"m_maxDisplacement",{get:T.prototype.PD,set:T.prototype.IG});T.prototype.get_water_normal=T.prototype.UE=function(){return k(dz(this.eB),n)};T.prototype.set_water_normal=T.prototype.OH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ez(c,a)};
Object.defineProperty(T.prototype,"water_normal",{get:T.prototype.UE,set:T.prototype.OH});T.prototype.get_m_broadphase=T.prototype.OC=function(){return k(fz(this.eB),mE)};T.prototype.set_m_broadphase=T.prototype.HF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gz(c,a)};Object.defineProperty(T.prototype,"m_broadphase",{get:T.prototype.OC,set:T.prototype.HF});T.prototype.get_m_dispatcher=T.prototype.fD=function(){return k(hz(this.eB),kE)};
T.prototype.set_m_dispatcher=T.prototype.ZF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);iz(c,a)};Object.defineProperty(T.prototype,"m_dispatcher",{get:T.prototype.fD,set:T.prototype.ZF});T.prototype.get_m_gravity=T.prototype.oD=function(){return k(jz(this.eB),n)};T.prototype.set_m_gravity=T.prototype.hG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kz(c,a)};Object.defineProperty(T.prototype,"m_gravity",{get:T.prototype.oD,set:T.prototype.hG});T.prototype.__destroy__=function(){lz(this.eB)};
function VF(){throw"cannot construct a Face, no constructor in IDL";}VF.prototype=Object.create(g.prototype);VF.prototype.constructor=VF;VF.prototype.fB=VF;VF.gB={};b.Face=VF;VF.prototype.get_m_n=VF.prototype.LB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(mz(c,a),Node)};VF.prototype.set_m_n=VF.prototype.VB=function(a,c){var d=this.eB;eE();a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);nz(d,a,c)};
Object.defineProperty(VF.prototype,"m_n",{get:VF.prototype.LB,set:VF.prototype.VB});VF.prototype.get_m_normal=VF.prototype.TD=function(){return k(oz(this.eB),n)};VF.prototype.set_m_normal=VF.prototype.MG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pz(c,a)};Object.defineProperty(VF.prototype,"m_normal",{get:VF.prototype.TD,set:VF.prototype.MG});VF.prototype.get_m_ra=VF.prototype.bE=function(){return qz(this.eB)};
VF.prototype.set_m_ra=VF.prototype.WG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rz(c,a)};Object.defineProperty(VF.prototype,"m_ra",{get:VF.prototype.bE,set:VF.prototype.WG});VF.prototype.__destroy__=function(){sz(this.eB)};function WF(){throw"cannot construct a tFaceArray, no constructor in IDL";}WF.prototype=Object.create(g.prototype);WF.prototype.constructor=WF;WF.prototype.fB=WF;WF.gB={};b.tFaceArray=WF;WF.prototype.size=WF.prototype.size=function(){return tz(this.eB)};
WF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(uz(c,a),VF)};WF.prototype.__destroy__=function(){vz(this.eB)};function Node(){throw"cannot construct a Node, no constructor in IDL";}Node.prototype=Object.create(g.prototype);Node.prototype.constructor=Node;Node.prototype.fB=Node;Node.gB={};b.Node=Node;Node.prototype.get_m_x=Node.prototype.KE=function(){return k(wz(this.eB),n)};
Node.prototype.set_m_x=Node.prototype.EH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xz(c,a)};Object.defineProperty(Node.prototype,"m_x",{get:Node.prototype.KE,set:Node.prototype.EH});Node.prototype.get_m_q=Node.prototype.aE=function(){return k(yz(this.eB),n)};Node.prototype.set_m_q=Node.prototype.VG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zz(c,a)};Object.defineProperty(Node.prototype,"m_q",{get:Node.prototype.aE,set:Node.prototype.VG});
Node.prototype.get_m_v=Node.prototype.CE=function(){return k(Az(this.eB),n)};Node.prototype.set_m_v=Node.prototype.wH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Bz(c,a)};Object.defineProperty(Node.prototype,"m_v",{get:Node.prototype.CE,set:Node.prototype.wH});Node.prototype.get_m_f=Node.prototype.lD=function(){return k(Cz(this.eB),n)};Node.prototype.set_m_f=Node.prototype.eG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Dz(c,a)};
Object.defineProperty(Node.prototype,"m_f",{get:Node.prototype.lD,set:Node.prototype.eG});Node.prototype.get_m_n=Node.prototype.LB=function(){return k(Ez(this.eB),n)};Node.prototype.set_m_n=Node.prototype.VB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Fz(c,a)};Object.defineProperty(Node.prototype,"m_n",{get:Node.prototype.LB,set:Node.prototype.VB});Node.prototype.get_m_im=Node.prototype.xD=function(){return Gz(this.eB)};
Node.prototype.set_m_im=Node.prototype.qG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Hz(c,a)};Object.defineProperty(Node.prototype,"m_im",{get:Node.prototype.xD,set:Node.prototype.qG});Node.prototype.get_m_area=Node.prototype.LC=function(){return Iz(this.eB)};Node.prototype.set_m_area=Node.prototype.EF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Jz(c,a)};Object.defineProperty(Node.prototype,"m_area",{get:Node.prototype.LC,set:Node.prototype.EF});
Node.prototype.__destroy__=function(){Kz(this.eB)};function XF(){throw"cannot construct a tNodeArray, no constructor in IDL";}XF.prototype=Object.create(g.prototype);XF.prototype.constructor=XF;XF.prototype.fB=XF;XF.gB={};b.tNodeArray=XF;XF.prototype.size=XF.prototype.size=function(){return Lz(this.eB)};XF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Mz(c,a),Node)};XF.prototype.__destroy__=function(){Nz(this.eB)};
function U(){throw"cannot construct a Material, no constructor in IDL";}U.prototype=Object.create(g.prototype);U.prototype.constructor=U;U.prototype.fB=U;U.gB={};b.Material=U;U.prototype.get_m_kLST=U.prototype.DD=function(){return Oz(this.eB)};U.prototype.set_m_kLST=U.prototype.wG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Pz(c,a)};Object.defineProperty(U.prototype,"m_kLST",{get:U.prototype.DD,set:U.prototype.wG});U.prototype.get_m_kAST=U.prototype.CD=function(){return Qz(this.eB)};
U.prototype.set_m_kAST=U.prototype.vG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Rz(c,a)};Object.defineProperty(U.prototype,"m_kAST",{get:U.prototype.CD,set:U.prototype.vG});U.prototype.get_m_kVST=U.prototype.ED=function(){return Sz(this.eB)};U.prototype.set_m_kVST=U.prototype.xG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Tz(c,a)};Object.defineProperty(U.prototype,"m_kVST",{get:U.prototype.ED,set:U.prototype.xG});U.prototype.get_m_flags=U.prototype.pB=function(){return Uz(this.eB)};
U.prototype.set_m_flags=U.prototype.qB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);Vz(c,a)};Object.defineProperty(U.prototype,"m_flags",{get:U.prototype.pB,set:U.prototype.qB});U.prototype.__destroy__=function(){Wz(this.eB)};function YF(){throw"cannot construct a tMaterialArray, no constructor in IDL";}YF.prototype=Object.create(g.prototype);YF.prototype.constructor=YF;YF.prototype.fB=YF;YF.gB={};b.tMaterialArray=YF;YF.prototype.size=YF.prototype.size=function(){return Xz(this.eB)};
YF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(Yz(c,a),U)};YF.prototype.__destroy__=function(){Zz(this.eB)};function V(){throw"cannot construct a Anchor, no constructor in IDL";}V.prototype=Object.create(g.prototype);V.prototype.constructor=V;V.prototype.fB=V;V.gB={};b.Anchor=V;V.prototype.get_m_node=V.prototype.RD=function(){return k($z(this.eB),Node)};V.prototype.set_m_node=V.prototype.KG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);aA(c,a)};
Object.defineProperty(V.prototype,"m_node",{get:V.prototype.RD,set:V.prototype.KG});V.prototype.get_m_local=V.prototype.HD=function(){return k(bA(this.eB),n)};V.prototype.set_m_local=V.prototype.AG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cA(c,a)};Object.defineProperty(V.prototype,"m_local",{get:V.prototype.HD,set:V.prototype.AG});V.prototype.get_m_body=V.prototype.MC=function(){return k(dA(this.eB),M)};
V.prototype.set_m_body=V.prototype.FF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);eA(c,a)};Object.defineProperty(V.prototype,"m_body",{get:V.prototype.MC,set:V.prototype.FF});V.prototype.get_m_influence=V.prototype.AD=function(){return fA(this.eB)};V.prototype.set_m_influence=V.prototype.tG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gA(c,a)};Object.defineProperty(V.prototype,"m_influence",{get:V.prototype.AD,set:V.prototype.tG});
V.prototype.get_m_c0=V.prototype.PC=function(){return k(hA(this.eB),NE)};V.prototype.set_m_c0=V.prototype.IF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);iA(c,a)};Object.defineProperty(V.prototype,"m_c0",{get:V.prototype.PC,set:V.prototype.IF});V.prototype.get_m_c1=V.prototype.QC=function(){return k(jA(this.eB),n)};V.prototype.set_m_c1=V.prototype.JF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kA(c,a)};Object.defineProperty(V.prototype,"m_c1",{get:V.prototype.QC,set:V.prototype.JF});
V.prototype.get_m_c2=V.prototype.RC=function(){return lA(this.eB)};V.prototype.set_m_c2=V.prototype.KF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mA(c,a)};Object.defineProperty(V.prototype,"m_c2",{get:V.prototype.RC,set:V.prototype.KF});V.prototype.__destroy__=function(){nA(this.eB)};function ZF(){throw"cannot construct a tAnchorArray, no constructor in IDL";}ZF.prototype=Object.create(g.prototype);ZF.prototype.constructor=ZF;ZF.prototype.fB=ZF;ZF.gB={};b.tAnchorArray=ZF;
ZF.prototype.size=ZF.prototype.size=function(){return oA(this.eB)};ZF.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(pA(c,a),V)};ZF.prototype.clear=ZF.prototype.clear=function(){qA(this.eB)};ZF.prototype.push_back=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rA(c,a)};ZF.prototype.pop_back=function(){sA(this.eB)};ZF.prototype.__destroy__=function(){tA(this.eB)};function X(){throw"cannot construct a Config, no constructor in IDL";}X.prototype=Object.create(g.prototype);
X.prototype.constructor=X;X.prototype.fB=X;X.gB={};b.Config=X;X.prototype.get_kVCF=X.prototype.BC=function(){return uA(this.eB)};X.prototype.set_kVCF=X.prototype.uF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);vA(c,a)};Object.defineProperty(X.prototype,"kVCF",{get:X.prototype.BC,set:X.prototype.uF});X.prototype.get_kDP=X.prototype.oC=function(){return wA(this.eB)};X.prototype.set_kDP=X.prototype.hF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);xA(c,a)};
Object.defineProperty(X.prototype,"kDP",{get:X.prototype.oC,set:X.prototype.hF});X.prototype.get_kDG=X.prototype.nC=function(){return yA(this.eB)};X.prototype.set_kDG=X.prototype.gF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);zA(c,a)};Object.defineProperty(X.prototype,"kDG",{get:X.prototype.nC,set:X.prototype.gF});X.prototype.get_kLF=X.prototype.qC=function(){return AA(this.eB)};X.prototype.set_kLF=X.prototype.jF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);BA(c,a)};
Object.defineProperty(X.prototype,"kLF",{get:X.prototype.qC,set:X.prototype.jF});X.prototype.get_kPR=X.prototype.sC=function(){return CA(this.eB)};X.prototype.set_kPR=X.prototype.lF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);DA(c,a)};Object.defineProperty(X.prototype,"kPR",{get:X.prototype.sC,set:X.prototype.lF});X.prototype.get_kVC=X.prototype.AC=function(){return EA(this.eB)};X.prototype.set_kVC=X.prototype.tF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);FA(c,a)};
Object.defineProperty(X.prototype,"kVC",{get:X.prototype.AC,set:X.prototype.tF});X.prototype.get_kDF=X.prototype.mC=function(){return GA(this.eB)};X.prototype.set_kDF=X.prototype.fF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);HA(c,a)};Object.defineProperty(X.prototype,"kDF",{get:X.prototype.mC,set:X.prototype.fF});X.prototype.get_kMT=X.prototype.rC=function(){return IA(this.eB)};X.prototype.set_kMT=X.prototype.kF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);JA(c,a)};
Object.defineProperty(X.prototype,"kMT",{get:X.prototype.rC,set:X.prototype.kF});X.prototype.get_kCHR=X.prototype.lC=function(){return KA(this.eB)};X.prototype.set_kCHR=X.prototype.eF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);LA(c,a)};Object.defineProperty(X.prototype,"kCHR",{get:X.prototype.lC,set:X.prototype.eF});X.prototype.get_kKHR=X.prototype.pC=function(){return MA(this.eB)};
X.prototype.set_kKHR=X.prototype.iF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);NA(c,a)};Object.defineProperty(X.prototype,"kKHR",{get:X.prototype.pC,set:X.prototype.iF});X.prototype.get_kSHR=X.prototype.tC=function(){return OA(this.eB)};X.prototype.set_kSHR=X.prototype.mF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);PA(c,a)};Object.defineProperty(X.prototype,"kSHR",{get:X.prototype.tC,set:X.prototype.mF});X.prototype.get_kAHR=X.prototype.kC=function(){return QA(this.eB)};
X.prototype.set_kAHR=X.prototype.dF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);RA(c,a)};Object.defineProperty(X.prototype,"kAHR",{get:X.prototype.kC,set:X.prototype.dF});X.prototype.get_kSRHR_CL=X.prototype.wC=function(){return SA(this.eB)};X.prototype.set_kSRHR_CL=X.prototype.pF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);TA(c,a)};Object.defineProperty(X.prototype,"kSRHR_CL",{get:X.prototype.wC,set:X.prototype.pF});X.prototype.get_kSKHR_CL=X.prototype.uC=function(){return UA(this.eB)};
X.prototype.set_kSKHR_CL=X.prototype.nF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);VA(c,a)};Object.defineProperty(X.prototype,"kSKHR_CL",{get:X.prototype.uC,set:X.prototype.nF});X.prototype.get_kSSHR_CL=X.prototype.yC=function(){return WA(this.eB)};X.prototype.set_kSSHR_CL=X.prototype.rF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);XA(c,a)};Object.defineProperty(X.prototype,"kSSHR_CL",{get:X.prototype.yC,set:X.prototype.rF});
X.prototype.get_kSR_SPLT_CL=X.prototype.xC=function(){return YA(this.eB)};X.prototype.set_kSR_SPLT_CL=X.prototype.qF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);ZA(c,a)};Object.defineProperty(X.prototype,"kSR_SPLT_CL",{get:X.prototype.xC,set:X.prototype.qF});X.prototype.get_kSK_SPLT_CL=X.prototype.vC=function(){return $A(this.eB)};X.prototype.set_kSK_SPLT_CL=X.prototype.oF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);aB(c,a)};
Object.defineProperty(X.prototype,"kSK_SPLT_CL",{get:X.prototype.vC,set:X.prototype.oF});X.prototype.get_kSS_SPLT_CL=X.prototype.zC=function(){return bB(this.eB)};X.prototype.set_kSS_SPLT_CL=X.prototype.sF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cB(c,a)};Object.defineProperty(X.prototype,"kSS_SPLT_CL",{get:X.prototype.zC,set:X.prototype.sF});X.prototype.get_maxvolume=X.prototype.LE=function(){return dB(this.eB)};
X.prototype.set_maxvolume=X.prototype.FH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);eB(c,a)};Object.defineProperty(X.prototype,"maxvolume",{get:X.prototype.LE,set:X.prototype.FH});X.prototype.get_timescale=X.prototype.QE=function(){return fB(this.eB)};X.prototype.set_timescale=X.prototype.KH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gB(c,a)};Object.defineProperty(X.prototype,"timescale",{get:X.prototype.QE,set:X.prototype.KH});
X.prototype.get_viterations=X.prototype.SE=function(){return hB(this.eB)};X.prototype.set_viterations=X.prototype.MH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);iB(c,a)};Object.defineProperty(X.prototype,"viterations",{get:X.prototype.SE,set:X.prototype.MH});X.prototype.get_piterations=X.prototype.OE=function(){return jB(this.eB)};X.prototype.set_piterations=X.prototype.IH=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kB(c,a)};
Object.defineProperty(X.prototype,"piterations",{get:X.prototype.OE,set:X.prototype.IH});X.prototype.get_diterations=X.prototype.hC=function(){return lB(this.eB)};X.prototype.set_diterations=X.prototype.aF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mB(c,a)};Object.defineProperty(X.prototype,"diterations",{get:X.prototype.hC,set:X.prototype.aF});X.prototype.get_citerations=X.prototype.fC=function(){return nB(this.eB)};
X.prototype.set_citerations=X.prototype.ZE=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);oB(c,a)};Object.defineProperty(X.prototype,"citerations",{get:X.prototype.fC,set:X.prototype.ZE});X.prototype.get_collisions=X.prototype.gC=function(){return pB(this.eB)};X.prototype.set_collisions=X.prototype.$E=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);qB(c,a)};Object.defineProperty(X.prototype,"collisions",{get:X.prototype.gC,set:X.prototype.$E});X.prototype.__destroy__=function(){rB(this.eB)};
function Y(a,c,d,e){eE();a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);"object"==typeof e&&(e=iE(e));this.eB=sB(a,c,d,e);h(Y)[this.eB]=this}Y.prototype=Object.create(r.prototype);Y.prototype.constructor=Y;Y.prototype.fB=Y;Y.gB={};b.btSoftBody=Y;Y.prototype.checkLink=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return!!tB(d,a,c)};
Y.prototype.checkFace=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);return!!uB(e,a,c,d)};Y.prototype.appendMaterial=function(){return k(vB(this.eB),U)};Y.prototype.appendNode=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);wB(d,a,c)};
Y.prototype.appendLink=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);xB(f,a,c,d,e)};Y.prototype.appendFace=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);yB(f,a,c,d,e)};
Y.prototype.appendTetra=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);zB(m,a,c,d,e,f)};Y.prototype.appendAnchor=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);AB(f,a,c,d,e)};
Y.prototype.addForce=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);void 0===c?BB(d,a):CB(d,a,c)};Y.prototype.addAeroForceToNode=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);DB(d,a,c)};Y.prototype.getTotalMass=function(){return EB(this.eB)};Y.prototype.setTotalMass=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);FB(d,a,c)};
Y.prototype.setMass=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);GB(d,a,c)};Y.prototype.transform=Y.prototype.transform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);HB(c,a)};Y.prototype.translate=Y.prototype.translate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);IB(c,a)};Y.prototype.rotate=Y.prototype.rotate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);JB(c,a)};
Y.prototype.scale=Y.prototype.scale=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);KB(c,a)};Y.prototype.generateClusters=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return void 0===c?LB(d,a):MB(d,a,c)};Y.prototype.generateBendingConstraints=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);return NB(d,a,c)};
Y.prototype.upcast=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(OB(c,a),Y)};Y.prototype.getRestLengthScale=function(){return PB(this.eB)};Y.prototype.setRestLengthScale=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);QB(c,a)};Y.prototype.setAnisotropicFriction=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);RB(d,a,c)};Y.prototype.getCollisionShape=function(){return k(SB(this.eB),l)};
Y.prototype.setContactProcessingThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);TB(c,a)};Y.prototype.setActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);UB(c,a)};Y.prototype.forceActivationState=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);VB(c,a)};Y.prototype.activate=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);void 0===a?WB(c):XB(c,a)};Y.prototype.isActive=function(){return!!YB(this.eB)};Y.prototype.isKinematicObject=function(){return!!ZB(this.eB)};
Y.prototype.isStaticObject=function(){return!!$B(this.eB)};Y.prototype.isStaticOrKinematicObject=function(){return!!aC(this.eB)};Y.prototype.getRestitution=function(){return bC(this.eB)};Y.prototype.getFriction=function(){return cC(this.eB)};Y.prototype.getRollingFriction=function(){return dC(this.eB)};Y.prototype.setRestitution=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);eC(c,a)};Y.prototype.setFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);fC(c,a)};
Y.prototype.setRollingFriction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);gC(c,a)};Y.prototype.getWorldTransform=function(){return k(hC(this.eB),t)};Y.prototype.getCollisionFlags=function(){return iC(this.eB)};Y.prototype.setCollisionFlags=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);jC(c,a)};Y.prototype.setWorldTransform=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);kC(c,a)};
Y.prototype.setCollisionShape=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);lC(c,a)};Y.prototype.setCcdMotionThreshold=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);mC(c,a)};Y.prototype.setCcdSweptSphereRadius=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);nC(c,a)};Y.prototype.getUserIndex=function(){return oC(this.eB)};Y.prototype.setUserIndex=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);pC(c,a)};
Y.prototype.getUserPointer=function(){return k(qC(this.eB),oE)};Y.prototype.setUserPointer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);rC(c,a)};Y.prototype.getBroadphaseHandle=function(){return k(sC(this.eB),pE)};Y.prototype.get_m_cfg=Y.prototype.SC=function(){return k(tC(this.eB),X)};Y.prototype.set_m_cfg=Y.prototype.LF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);uC(c,a)};Object.defineProperty(Y.prototype,"m_cfg",{get:Y.prototype.SC,set:Y.prototype.LF});
Y.prototype.get_m_nodes=Y.prototype.SD=function(){return k(vC(this.eB),XF)};Y.prototype.set_m_nodes=Y.prototype.LG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);wC(c,a)};Object.defineProperty(Y.prototype,"m_nodes",{get:Y.prototype.SD,set:Y.prototype.LG});Y.prototype.get_m_faces=Y.prototype.JB=function(){return k(xC(this.eB),WF)};Y.prototype.set_m_faces=Y.prototype.TB=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);yC(c,a)};
Object.defineProperty(Y.prototype,"m_faces",{get:Y.prototype.JB,set:Y.prototype.TB});Y.prototype.get_m_materials=Y.prototype.OD=function(){return k(zC(this.eB),YF)};Y.prototype.set_m_materials=Y.prototype.HG=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);AC(c,a)};Object.defineProperty(Y.prototype,"m_materials",{get:Y.prototype.OD,set:Y.prototype.HG});Y.prototype.get_m_anchors=Y.prototype.IC=function(){return k(BC(this.eB),ZF)};
Y.prototype.set_m_anchors=Y.prototype.BF=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);CC(c,a)};Object.defineProperty(Y.prototype,"m_anchors",{get:Y.prototype.IC,set:Y.prototype.BF});Y.prototype.__destroy__=function(){DC(this.eB)};function $F(a){a&&"object"===typeof a&&(a=a.eB);this.eB=void 0===a?EC():FC(a);h($F)[this.eB]=this}$F.prototype=Object.create(GE.prototype);$F.prototype.constructor=$F;$F.prototype.fB=$F;$F.gB={};b.btSoftBodyRigidBodyCollisionConfiguration=$F;
$F.prototype.__destroy__=function(){GC(this.eB)};function aG(){this.eB=HC();h(aG)[this.eB]=this}aG.prototype=Object.create(LE.prototype);aG.prototype.constructor=aG;aG.prototype.fB=aG;aG.gB={};b.btDefaultSoftBodySolver=aG;aG.prototype.__destroy__=function(){IC(this.eB)};function bG(){throw"cannot construct a btSoftBodyArray, no constructor in IDL";}bG.prototype=Object.create(g.prototype);bG.prototype.constructor=bG;bG.prototype.fB=bG;bG.gB={};b.btSoftBodyArray=bG;
bG.prototype.size=bG.prototype.size=function(){return JC(this.eB)};bG.prototype.at=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);return k(KC(c,a),Y)};bG.prototype.__destroy__=function(){LC(this.eB)};function Z(a,c,d,e,f){a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);this.eB=MC(a,c,d,e,f);h(Z)[this.eB]=this}Z.prototype=Object.create(x.prototype);
Z.prototype.constructor=Z;Z.prototype.fB=Z;Z.gB={};b.btSoftRigidDynamicsWorld=Z;Z.prototype.addSoftBody=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);NC(e,a,c,d)};Z.prototype.removeSoftBody=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);OC(c,a)};Z.prototype.removeCollisionObject=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);PC(c,a)};Z.prototype.getWorldInfo=function(){return k(QC(this.eB),T)};
Z.prototype.getSoftBodyArray=function(){return k(RC(this.eB),bG)};Z.prototype.getDispatcher=function(){return k(SC(this.eB),kE)};Z.prototype.rayTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);TC(e,a,c,d)};Z.prototype.getPairCache=function(){return k(UC(this.eB),lE)};Z.prototype.getDispatchInfo=function(){return k(VC(this.eB),q)};
Z.prototype.addCollisionObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?WC(e,a):void 0===d?XC(e,a,c):YC(e,a,c,d)};Z.prototype.getBroadphase=function(){return k(ZC(this.eB),mE)};
Z.prototype.convexSweepTest=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);$C(m,a,c,d,e,f)};Z.prototype.contactPairTest=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);aD(e,a,c,d)};
Z.prototype.contactTest=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);bD(d,a,c)};Z.prototype.updateSingleAabb=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);cD(c,a)};Z.prototype.setDebugDrawer=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);dD(c,a)};Z.prototype.getDebugDrawer=function(){return k(eD(this.eB),nE)};Z.prototype.debugDrawWorld=function(){fD(this.eB)};
Z.prototype.debugDrawObject=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);gD(e,a,c,d)};Z.prototype.setGravity=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);hD(c,a)};Z.prototype.getGravity=function(){return k(iD(this.eB),n)};
Z.prototype.addRigidBody=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?jD(e,a):void 0===d?_emscripten_bind_btSoftRigidDynamicsWorld_addRigidBody_2(e,a,c):kD(e,a,c,d)};Z.prototype.removeRigidBody=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);lD(c,a)};
Z.prototype.addConstraint=function(a,c){var d=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);void 0===c?mD(d,a):nD(d,a,c)};Z.prototype.removeConstraint=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);oD(c,a)};Z.prototype.stepSimulation=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);return void 0===c?pD(e,a):void 0===d?qD(e,a,c):rD(e,a,c,d)};
Z.prototype.setContactAddedCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);sD(c,a)};Z.prototype.setContactProcessedCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);tD(c,a)};Z.prototype.setContactDestroyedCallback=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);uD(c,a)};Z.prototype.addAction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);vD(c,a)};Z.prototype.removeAction=function(a){var c=this.eB;a&&"object"===typeof a&&(a=a.eB);wD(c,a)};
Z.prototype.getSolverInfo=function(){return k(xD(this.eB),u)};Z.prototype.setInternalTickCallback=function(a,c,d){var e=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);void 0===c?yD(e,a):void 0===d?zD(e,a,c):AD(e,a,c,d)};Z.prototype.__destroy__=function(){BD(this.eB)};function cG(){this.eB=CD();h(cG)[this.eB]=this}cG.prototype=Object.create(g.prototype);cG.prototype.constructor=cG;cG.prototype.fB=cG;cG.gB={};b.btSoftBodyHelpers=cG;
cG.prototype.CreateRope=function(a,c,d,e,f){var m=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);return k(DD(m,a,c,d,e,f),Y)};
cG.prototype.CreatePatch=function(a,c,d,e,f,m,y,W,E){var p=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);W&&"object"===typeof W&&(W=W.eB);E&&"object"===typeof E&&(E=E.eB);return k(ED(p,a,c,d,e,f,m,y,W,E),Y)};
cG.prototype.CreatePatchUV=function(a,c,d,e,f,m,y,W,E,p){var G=this.eB;eE();a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);m&&"object"===typeof m&&(m=m.eB);y&&"object"===typeof y&&(y=y.eB);W&&"object"===typeof W&&(W=W.eB);E&&"object"===typeof E&&(E=E.eB);"object"==typeof p&&(p=iE(p));return k(FD(G,a,c,d,e,f,m,y,W,E,p),Y)};
cG.prototype.CreateEllipsoid=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);return k(GD(f,a,c,d,e),Y)};
cG.prototype.CreateFromTriMesh=function(a,c,d,e,f){var m=this.eB;eE();a&&"object"===typeof a&&(a=a.eB);"object"==typeof c&&(c=iE(c));if("object"==typeof d&&"object"===typeof d){var y=fE(d,Qa);gE(d,Qa,y);d=y}e&&"object"===typeof e&&(e=e.eB);f&&"object"===typeof f&&(f=f.eB);return k(HD(m,a,c,d,e,f),Y)};
cG.prototype.CreateFromConvexHull=function(a,c,d,e){var f=this.eB;a&&"object"===typeof a&&(a=a.eB);c&&"object"===typeof c&&(c=c.eB);d&&"object"===typeof d&&(d=d.eB);e&&"object"===typeof e&&(e=e.eB);return k(ID(f,a,c,d,e),Y)};cG.prototype.__destroy__=function(){JD(this.eB)};
(function(){function a(){b.PHY_FLOAT=KD();b.PHY_DOUBLE=LD();b.PHY_INTEGER=MD();b.PHY_SHORT=ND();b.PHY_FIXEDPOINT88=OD();b.PHY_UCHAR=PD();b.CONST_GIMPACT_COMPOUND_SHAPE=QD();b.CONST_GIMPACT_TRIMESH_SHAPE_PART=RD();b.CONST_GIMPACT_TRIMESH_SHAPE=SD();b.BT_CONSTRAINT_ERP=TD();b.BT_CONSTRAINT_STOP_ERP=UD();b.BT_CONSTRAINT_CFM=VD();b.BT_CONSTRAINT_STOP_CFM=WD()}Ya?a():Wa.unshift(a)})();b.CONTACT_ADDED_CALLBACK_SIGNATURE="iiiiiiii";b.CONTACT_DESTROYED_CALLBACK_SIGNATURE="ii";
b.CONTACT_PROCESSED_CALLBACK_SIGNATURE="iiii";b.INTERNAL_TICK_CALLBACK_SIGNATURE="vif";this.Ammo=b;
return Ammo.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
module.exports = Ammo;
else if (typeof define === 'function' && define['amd'])
define([], function() { return Ammo; });
else if (typeof exports === 'object')
exports["Ammo"] = Ammo;
+18
View File
@@ -0,0 +1,18 @@
!function A(g,I,Q){function C(E,i){if(!I[E]){if(!g[E]){var o="function"==typeof require&&require;if(!i&&o)return o(E,!0);if(B)return B(E,!0);var n=new Error("Cannot find module '"+E+"'");throw n.code="MODULE_NOT_FOUND",n}var e=I[E]={exports:{}};g[E][0].call(e.exports,(function(A){return C(g[E][1][A]||A)}),e,e.exports,A,g,I,Q)}return I[E].exports}for(var B="function"==typeof require&&require,E=0;E<Q.length;E++)C(Q[E]);return C}({1:[function(A,g,I){(function(I){(function(){let Q,C={};C.__wbindgen_placeholder__=g.exports;let B=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});B.decode();let E=new Uint8Array;function i(){return 0===E.byteLength&&(E=new Uint8Array(Q.memory.buffer)),E}function o(A,g){return B.decode(i().subarray(A,A+g))}const n=new Array(32).fill(void 0);n.push(void 0,null,!0,!1);let e=n.length;function D(A){e===n.length&&n.push(n.length+1);const g=e;return e=n[g],n[g]=A,g}function t(A){return n[A]}let a=0,s=new TextEncoder("utf-8");const w="function"==typeof s.encodeInto?function(A,g){return s.encodeInto(A,g)}:function(A,g){const I=s.encode(A);return g.set(I),{read:A.length,written:I.length}};function h(A,g,I){if(void 0===I){const I=s.encode(A),Q=g(I.length);return i().subarray(Q,Q+I.length).set(I),a=I.length,Q}let Q=A.length,C=g(Q);const B=i();let E=0;for(;E<Q;E++){const g=A.charCodeAt(E);if(g>127)break;B[C+E]=g}if(E!==Q){0!==E&&(A=A.slice(E)),C=I(C,Q,Q=E+3*A.length);const g=i().subarray(C+E,C+Q);E+=w(A,g).written}return a=E,C}function r(A){return null==A}let c=new Int32Array;function k(){return 0===c.byteLength&&(c=new Int32Array(Q.memory.buffer)),c}function G(A){const g=t(A);return function(A){A<36||(n[A]=e,e=A)}(A),g}let y=new Float64Array;function N(A){const g=typeof A;if("number"==g||"boolean"==g||null==A)return`${A}`;if("string"==g)return`"${A}"`;if("symbol"==g){const g=A.description;return null==g?"Symbol":`Symbol(${g})`}if("function"==g){const g=A.name;return"string"==typeof g&&g.length>0?`Function(${g})`:"Function"}if(Array.isArray(A)){const g=A.length;let I="[";g>0&&(I+=N(A[0]));for(let Q=1;Q<g;Q++)I+=", "+N(A[Q]);return I+="]",I}const I=/\[object ([^\]]+)\]/.exec(toString.call(A));let Q;if(!(I.length>1))return toString.call(A);if(Q=I[1],"Object"==Q)try{return"Object("+JSON.stringify(A)+")"}catch(A){return"Object"}return A instanceof Error?`${A.name}: ${A.message}\n${A.stack}`:Q}const M=new FinalizationRegistry((A=>{Q.__wbindgen_export_2.get(A.dtor)(A.a,A.b)}));function F(A,g,I,C){const B={a:A,b:g,cnt:1,dtor:I},E=(...A)=>{B.cnt++;const g=B.a;B.a=0;try{return C(g,B.b,...A)}finally{0==--B.cnt?(Q.__wbindgen_export_2.get(B.dtor)(g,B.b),M.unregister(B)):B.a=g}};return E.original=B,M.register(E,B,B),E}function J(A,g,I){try{const B=Q.__wbindgen_add_to_stack_pointer(-16);Q._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf88258825831c9b5(B,A,g,D(I));var C=k()[B/4+0];if(k()[B/4+1])throw G(C)}finally{Q.__wbindgen_add_to_stack_pointer(16)}}function d(A,g,I,C){const B={a:A,b:g,cnt:1,dtor:I},E=(...A)=>{B.cnt++;try{return C(B.a,B.b,...A)}finally{0==--B.cnt&&(Q.__wbindgen_export_2.get(B.dtor)(B.a,B.b),B.a=0,M.unregister(B))}};return E.original=B,M.register(E,B,B),E}function K(A,g){Q._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h73444376b37bd135(A,g)}function Y(A,g,I){Q._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha6fa2feeb011ec6d(A,g,D(I))}function R(A,g,I){Q._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52d048fdd0b9b260(A,g,D(I))}function L(A,g){Q._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h41835ad58ad2f116(A,g)}function q(A,g){if(!(A instanceof g))throw new Error(`expected instance of ${g.name}`);return A.ptr}let S=32;function l(A){if(1==S)throw new Error("out of js stack");return n[--S]=A,S}function U(A,g){try{return A.apply(this,g)}catch(A){Q.__wbindgen_exn_store(D(A))}}function u(A,g){return i().subarray(A/1,A/1+g)}function p(A,g){const I=g(1*A.length);return i().set(A,I/1),a=A.length,I}g.exports.start=function(){Q.start()},g.exports.LoggerLevel=Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"}),g.exports.RequestType=Object.freeze({KeysUpload:0,0:"KeysUpload",KeysQuery:1,1:"KeysQuery",KeysClaim:2,2:"KeysClaim",ToDevice:3,3:"ToDevice",SignatureUpload:4,4:"SignatureUpload",RoomMessage:5,5:"RoomMessage",KeysBackup:6,6:"KeysBackup"}),g.exports.LocalTrust=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"}),g.exports.VerificationMethod=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"}),g.exports.CancelCode=Object.freeze({Other:0,0:"Other",User:1,1:"User",Timeout:2,2:"Timeout",UnknownTransaction:3,3:"UnknownTransactioLine truncated
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
"use strict";var g=A("base64-js"),Q=A("ieee754");I.Buffer=E,I.SlowBuffer=function(A){+A!=A&&(A=0);return E.alloc(+A)},I.INSPECT_MAX_BYTES=50;var C=2147483647;function B(A){if(A>C)throw new RangeError('The value "'+A+'" is invalid for option "size"');var g=new Uint8Array(A);return g.__proto__=E.prototype,g}function E(A,g,I){if("number"==typeof A){if("string"==typeof g)throw new TypeError('The "string" argument must be of type string. Received type number');return n(A)}return i(A,g,I)}function i(A,g,I){if("string"==typeof A)return function(A,g){"string"==typeof g&&""!==g||(g="utf8");if(!E.isEncoding(g))throw new TypeError("Unknown encoding: "+g);var I=0|t(A,g),Q=B(I),C=Q.write(A,g);C!==I&&(Q=Q.slice(0,C));return Q}(A,g);if(ArrayBuffer.isView(A))return e(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(b(A,ArrayBuffer)||A&&b(A.buffer,ArrayBuffer))return function(A,g,I){if(g<0||A.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<g+(I||0))throw new RangeError('"length" is outside of buffer bounds');var Q;Q=void 0===g&&void 0===I?new Uint8Array(A):void 0===I?new Uint8Array(A,g):new Uint8Array(A,g,I);return Q.__proto__=E.prototype,Q}(A,g,I);if("number"==typeof A)throw new TypeError('The "value" argument must not be of type number. Received type number');var Q=A.valueOf&&A.valueOf();if(null!=Q&&Q!==A)return E.from(Q,g,I);var C=function(A){if(E.isBuffer(A)){var g=0|D(A.length),I=B(g);return 0===I.length||A.copy(I,0,0,g),I}if(void 0!==A.length)return"number"!=typeof A.length||v(A.length)?B(0):e(A);if("Buffer"===A.type&&Array.isArray(A.data))return e(A.data)}(A);if(C)return C;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return E.from(A[Symbol.toPrimitive]("string"),g,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function o(A){if("number"!=typeof A)throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function n(A){return o(A),B(A<0?0:0|D(A))}function e(A){for(var g=A.length<0?0:0|D(A.length),I=B(g),Q=0;Q<g;Q+=1)I[Q]=255&A[Q];return I}function D(A){if(A>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|A}function t(A,g){if(E.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||b(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);var I=A.length,Q=arguments.length>2&&!0===arguments[2];if(!Q&&0===I)return 0;for(var C=!1;;)switch(g){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return H(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return f(A).length;default:if(C)return Q?-1:H(A).length;g=(""+g).toLowerCase(),C=!0}}function a(A,g,I){var Q=!1;if((void 0===g||g<0)&&(g=0),g>this.length)return"";if((void 0===I||I>this.length)&&(I=this.length),I<=0)return"";if((I>>>=0)<=(g>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return Y(this,g,I);case"utf8":case"utf-8":return F(this,g,I);case"ascii":return d(this,g,I);case"latin1":case"binary":return K(this,g,I);case"base64":return M(this,g,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,g,I);default:if(Q)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),Q=!0}}function s(A,g,I){var Q=A[g];A[g]=A[I],A[I]=Q}function w(A,g,I,Q,C){if(0===A.length)return-1;if("string"==typeof I?(Q=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),v(I=+I)&&(I=C?0:A.length-1),I<0&&(I=A.length+I),I>=A.length){if(C)return-1;I=A.length-1}else if(I<0){if(!C)return-1;I=0}if("string"==typeof g&&(g=E.from(g,Q)),E.isBuffer(g))return 0===g.length?-1:h(A,g,I,Q,C);if("number"==typeof g)return g&=255,"function"==typeof Uint8Array.prototype.indexOf?C?Uint8Array.prototype.indexOf.call(A,g,I):Uint8Array.prototype.lastIndexOf.call(A,g,I):h(A,[g],I,Q,C);throw new TypeError("val must be string, number or Buffer")}function h(A,g,I,Q,C){var B,E=1,i=A.length,o=g.length;if(void 0!==Q&&("ucs2"===(Q=String(Q).toLowerCase())||"ucs-2"===Q||"utf16le"===Q||"utf-16le"===Q)){if(A.length<2||g.length<2)return-1;E=2,i/=2,o/=2,I/=2}function n(A,g){return 1===E?A[g]:A.readUInt16BE(g*E)}if(C){var e=-1;for(B=I;B<i;B++)if(n(A,B)===n(g,-1===e?0:B-e)){if(-1===e&&(e=B),B-e+1===o)return e*E}else-1!==e&&(B-=B-e),e=-1}else for(I+o>i&&(I=i-o),B=I;B>=0;B--){for(var D=!0,t=0;t<o;t++)if(n(A,B+t)!==n(g,t)){D=!1;break}if(D)return B}return-1}function r(A,g,I,Q){I=Number(I)||0;var C=A.length-I;Q?(Q=Number(Q))>C&&(Q=C):Q=C;var B=g.length;Q>B/2&&(Q=B/2);for(var E=0;E<Q;++E){var i=parseInt(g.substr(2*E,2),16);if(v(i))return E;A[I+E]=i}return E}funcLine truncated
/*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
"use strict";var Q=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,C=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,B=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,E=/\\([\u000b\u0020-\u00ff])/g,i=/([\\"])/g,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function n(A){var g=String(A);if(B.test(g))return g;if(g.length>0&&!C.test(g))throw new TypeError("invalid parameter value");return'"'+g.replace(i,"\\$1")+'"'}function e(A){this.parameters=Object.create(null),this.type=A}I.format=function(A){if(!A||"object"!=typeof A)throw new TypeError("argument obj is required");var g=A.parameters,I=A.type;if(!I||!o.test(I))throw new TypeError("invalid type");var Q=I;if(g&&"object"==typeof g)for(var C,E=Object.keys(g).sort(),i=0;i<E.length;i++){if(C=E[i],!B.test(C))throw new TypeError("invalid parameter name");Q+="; "+C+"="+n(g[C])}return Q},I.parse=function(A){if(!A)throw new TypeError("argument string is required");var g="object"==typeof A?function(A){var g;"function"==typeof A.getHeader?g=A.getHeader("content-type"):"object"==typeof A.headers&&(g=A.headers&&A.headers["content-type"]);if("string"!=typeof g)throw new TypeError("content-type header is missing from object");return g}(A):A;if("string"!=typeof g)throw new TypeError("argument string is required to be a string");var I=g.indexOf(";"),C=-1!==I?g.slice(0,I).trim():g.trim();if(!o.test(C))throw new TypeError("invalid media type");var B=new e(C.toLowerCase());if(-1!==I){var i,n,D;for(Q.lastIndex=I;n=Q.exec(g);){if(n.index!==I)throw new TypeError("invalid parameter format");I+=n[0].length,i=n[1].toLowerCase(),34===(D=n[2]).charCodeAt(0)&&-1!==(D=D.slice(1,-1)).indexOf("\\")&&(D=D.replace(E,"$1")),B.parameters[i]=D}if(I!==g.length)throw new TypeError("invalid parameter format")}return B}},{}],75:[function(A,g,I){(function(I){(function(){var Q=A("elliptic"),C=A("bn.js");g.exports=function(A){return new E(A)};var B={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function E(A){this.curveType=B[A],this.curveType||(this.curveType={name:A}),this.curve=new Q.ec(this.curveType.name),this.keys=void 0}function i(A,g,Q){Array.isArray(A)||(A=A.toArray());var C=new I(A);if(Q&&C.length<Q){var B=new I(Q-C.length);B.fill(0),C=I.concat([B,C])}return g?C.toString(g):C}B.p224=B.secp224r1,B.p256=B.secp256r1=B.prime256v1,B.p192=B.secp192r1=B.prime192v1,B.p384=B.secp384r1,B.p521=B.secp521r1,E.prototype.generateKeys=function(A,g){return this.keys=this.curve.genKeyPair(),this.getPublicKey(A,g)},E.prototype.computeSecret=function(A,g,Q){return g=g||"utf8",I.isBuffer(A)||(A=new I(A,g)),i(this.curve.keyFromPublic(A).getPublic().mul(this.keys.getPrivate()).getX(),Q,this.curveType.byteLength)},E.prototype.getPublicKey=function(A,g){var I=this.keys.getPublic("compressed"===g,!0);return"hybrid"===g&&(I[I.length-1]%2?I[0]=7:I[0]=6),i(I,A)},E.prototype.getPrivateKey=function(A){return i(this.keys.getPrivate(),A)},E.prototype.setPublicKey=function(A,g){return g=g||"utf8",I.isBuffer(A)||(A=new I(A,g)),this.keys._importPublic(A),this},E.prototype.setPrivateKey=function(A,g){g=g||"utf8",I.isBuffer(A)||(A=new I(A,g));var Q=new C(A);return Q=Q.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(Q),this}}).call(this)}).call(this,A("buffer").Buffer)},{"bn.js":20,buffer:70,elliptic:91}],76:[function(A,g,I){"use strict";var Q=A("inherits"),C=A("md5.js"),B=A("ripemd160"),E=A("sha.js"),i=A("cipher-base");function o(A){i.call(this,"digest"),this._hash=A}Q(o,i),o.prototype._update=function(A){this._hash.update(A)},o.prototype._final=function(){return this._hash.digest()},g.exports=function(A){return"md5"===(A=A.toLowerCase())?new C:"rmd160"===A||"ripemd160"===A?new B:new o(E(A))}},{"cipher-base":73,inherits:148,"md5.js":223,ripemd160:251,"sha.js":259}],77:[function(A,g,I){var Q=A("md5.js");g.exports=function(A){return(new Q).update(A).digest()}},{"md5.js":223}],78:[function(A,g,I){"use strict";var Q=A("inherits"),C=A("./legacy"),B=A("cipher-base"),E=A("safe-buffer").Buffer,i=A("create-hash/md5"),o=A("ripemd160"),n=A("sha.js"),e=E.alloc(128);function D(A,g){B.call(this,"digest"),"string"==typeof g&&(g=E.from(g));var I="sha512"===A||"sha384"===A?128:64;(this._alg=A,this._key=g,g.length>I)?g=("rmd160"===A?new o:n(A)).update(g).digest():g.length<I&&(g=E.concat([g,e],I));for(var Q=this._ipad=E.allocUnsafe(I),C=this._opad=E.allocUnsafe(I),i=0;i<I;i++)Q[i]=54^g[i],C[i]=92^g[i];this._hash="rmd160"===A?new o:n(A),this._hash.update(Q)}Q(D,B),D.prototype._update=function(A){this._hash.update(A)},D.prototype._final=function(){var A=this._hash.digest();return("rmd160"===this._alg?new o:n(this._alg)).update(this._opad).update(A).digest()},g.exports=function(A,g){return"rmd160Line truncated
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
I.read=function(A,g,I,Q,C){var B,E,i=8*C-Q-1,o=(1<<i)-1,n=o>>1,e=-7,D=I?C-1:0,t=I?-1:1,a=A[g+D];for(D+=t,B=a&(1<<-e)-1,a>>=-e,e+=i;e>0;B=256*B+A[g+D],D+=t,e-=8);for(E=B&(1<<-e)-1,B>>=-e,e+=Q;e>0;E=256*E+A[g+D],D+=t,e-=8);if(0===B)B=1-n;else{if(B===o)return E?NaN:1/0*(a?-1:1);E+=Math.pow(2,Q),B-=n}return(a?-1:1)*E*Math.pow(2,B-Q)},I.write=function(A,g,I,Q,C,B){var E,i,o,n=8*B-C-1,e=(1<<n)-1,D=e>>1,t=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,a=Q?0:B-1,s=Q?1:-1,w=g<0||0===g&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(i=isNaN(g)?1:0,E=e):(E=Math.floor(Math.log(g)/Math.LN2),g*(o=Math.pow(2,-E))<1&&(E--,o*=2),(g+=E+D>=1?t/o:t*Math.pow(2,1-D))*o>=2&&(E++,o/=2),E+D>=e?(i=0,E=e):E+D>=1?(i=(g*o-1)*Math.pow(2,C),E+=D):(i=g*Math.pow(2,D-1)*Math.pow(2,C),E=0));C>=8;A[I+a]=255&i,a+=s,i/=256,C-=8);for(E=E<<C|i,n+=C;n>0;A[I+a]=255&E,a+=s,E/=256,n-=8);A[I+a-s]|=128*w}},{}],148:[function(A,g,I){"function"==typeof Object.create?g.exports=function(A,g){g&&(A.super_=g,A.prototype=Object.create(g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}))}:g.exports=function(A,g){if(g){A.super_=g;var I=function(){};I.prototype=g.prototype,A.prototype=new I,A.prototype.constructor=A}}},{}],149:[function(A,g,I){"use strict";var Q=A("has-tostringtag/shams")(),C=A("call-bind/callBound")("Object.prototype.toString"),B=function(A){return!(Q&&A&&"object"==typeof A&&Symbol.toStringTag in A)&&"[object Arguments]"===C(A)},E=function(A){return!!B(A)||null!==A&&"object"==typeof A&&"number"==typeof A.length&&A.length>=0&&"[object Array]"!==C(A)&&"[object Function]"===C(A.callee)},i=function(){return B(arguments)}();B.isLegacyArguments=E,g.exports=i?B:E},{"call-bind/callBound":71,"has-tostringtag/shams":116}],150:[function(A,g,I){"use strict";var Q,C,B=Function.prototype.toString,E="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof E&&"function"==typeof Object.defineProperty)try{Q=Object.defineProperty({},"length",{get:function(){throw C}}),C={},E((function(){throw 42}),null,Q)}catch(A){A!==C&&(E=null)}else E=null;var i=/^\s*class\b/,o=function(A){try{var g=B.call(A);return i.test(g)}catch(A){return!1}},n=function(A){try{return!o(A)&&(B.call(A),!0)}catch(A){return!1}},e=Object.prototype.toString,D="function"==typeof Symbol&&!!Symbol.toStringTag,t=!(0 in[,]),a=function(){return!1};if("object"==typeof document){var s=document.all;e.call(s)===e.call(document.all)&&(a=function(A){if((t||!A)&&(void 0===A||"object"==typeof A))try{var g=e.call(A);return("[object HTMLAllCollection]"===g||"[object HTML document.all class]"===g||"[object HTMLCollection]"===g||"[object Object]"===g)&&null==A("")}catch(A){}return!1})}g.exports=E?function(A){if(a(A))return!0;if(!A)return!1;if("function"!=typeof A&&"object"!=typeof A)return!1;try{E(A,null,Q)}catch(A){if(A!==C)return!1}return!o(A)&&n(A)}:function(A){if(a(A))return!0;if(!A)return!1;if("function"!=typeof A&&"object"!=typeof A)return!1;if(D)return n(A);if(o(A))return!1;var g=e.call(A);return!("[object Function]"!==g&&"[object GeneratorFunction]"!==g&&!/^\[object HTML/.test(g))&&n(A)}},{}],151:[function(A,g,I){"use strict";var Q,C=Object.prototype.toString,B=Function.prototype.toString,E=/^\s*(?:function)?\*/,i=A("has-tostringtag/shams")(),o=Object.getPrototypeOf;g.exports=function(A){if("function"!=typeof A)return!1;if(E.test(B.call(A)))return!0;if(!i)return"[object GeneratorFunction]"===C.call(A);if(!o)return!1;if(void 0===Q){var g=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(A){}}();Q=!!g&&o(g)}return o(A)===Q}},{"has-tostringtag/shams":116}],152:[function(A,g,I){(function(I){(function(){"use strict";var Q=A("for-each"),C=A("available-typed-arrays"),B=A("call-bind/callBound"),E=B("Object.prototype.toString"),i=A("has-tostringtag/shams")(),o=A("gopd"),n="undefined"==typeof globalThis?I:globalThis,e=C(),D=B("Array.prototype.indexOf",!0)||function(A,g){for(var I=0;I<A.length;I+=1)if(A[I]===g)return I;return-1},t=B("String.prototype.slice"),a={},s=Object.getPrototypeOf;i&&o&&s&&Q(e,(function(A){var g=new n[A];if(Symbol.toStringTag in g){var I=s(g),Q=o(I,Symbol.toStringTag);if(!Q){var C=s(I);Q=o(C,Symbol.toStringTag)}a[A]=Q.get}}));g.exports=function(A){if(!A||"object"!=typeof A)return!1;if(!i||!(Symbol.toStringTag in A)){var g=t(E(A),8,-1);return D(e,g)>-1}return!!o&&function(A){var g=!1;return Q(a,(function(I,Q){if(!g)try{g=I.call(A)===Q}catch(A){}})),g}(A)}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":18,"call-bind/callBound":71,"for-each":109,gopd:113,"has-tostringtag/shams":116}],153:[function(A,g,I){!function(A,I){"use strict";"function"==typeof define&&define.amd?define(I):"object"==typeof g&&g.exports?g.exports=I():A.log=I()}(this,(function(){"use strict";var A=function(){},g="undefined",I=typeof window!==g&&typeof window.navigator!==g&&/Trident\/|MSIE /.test(window.navigator.userAgent),Q=["trace","debug","info","warLine truncated
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var Q=A("buffer"),C=Q.Buffer;function B(A,g){for(var I in A)g[I]=A[I]}function E(A,g,I){return C(A,g,I)}C.from&&C.alloc&&C.allocUnsafe&&C.allocUnsafeSlow?g.exports=Q:(B(Q,I),I.Buffer=E),E.prototype=Object.create(C.prototype),B(C,E),E.from=function(A,g,I){if("number"==typeof A)throw new TypeError("Argument must not be a number");return C(A,g,I)},E.alloc=function(A,g,I){if("number"!=typeof A)throw new TypeError("Argument must be a number");var Q=C(A);return void 0!==g?"string"==typeof I?Q.fill(g,I):Q.fill(g):Q.fill(0),Q},E.allocUnsafe=function(A){if("number"!=typeof A)throw new TypeError("Argument must be a number");return C(A)},E.allocUnsafeSlow=function(A){if("number"!=typeof A)throw new TypeError("Argument must be a number");return Q.SlowBuffer(A)}},{buffer:70}],253:[function(A,g,I){(function(I){(function(){"use strict";var Q,C=A("buffer"),B=C.Buffer,E={};for(Q in C)C.hasOwnProperty(Q)&&"SlowBuffer"!==Q&&"Buffer"!==Q&&(E[Q]=C[Q]);var i=E.Buffer={};for(Q in B)B.hasOwnProperty(Q)&&"allocUnsafe"!==Q&&"allocUnsafeSlow"!==Q&&(i[Q]=B[Q]);if(E.Buffer.prototype=B.prototype,i.from&&i.from!==Uint8Array.from||(i.from=function(A,g,I){if("number"==typeof A)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof A);if(A&&void 0===A.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);return B(A,g,I)}),i.alloc||(i.alloc=function(A,g,I){if("number"!=typeof A)throw new TypeError('The "size" argument must be of type number. Received type '+typeof A);if(A<0||A>=2*(1<<30))throw new RangeError('The value "'+A+'" is invalid for option "size"');var Q=B(A);return g&&0!==g.length?"string"==typeof I?Q.fill(g,I):Q.fill(g):Q.fill(0),Q}),!E.kStringMaxLength)try{E.kStringMaxLength=I.binding("buffer").kStringMaxLength}catch(A){}E.constants||(E.constants={MAX_LENGTH:E.kMaxLength},E.kStringMaxLength&&(E.constants.MAX_STRING_LENGTH=E.kStringMaxLength)),g.exports=E}).call(this)}).call(this,A("_process"))},{_process:239,buffer:70}],254:[function(A,g,I){var Q=g.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(A){return A.encoding?"rtpmap:%d %s/%s/%s":A.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(A){return null!=A.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(A){return null!=A.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(A){return"extmap:%d"+(A.direction?"/%s":"%v")+(A["encrypt-uri"]?" %s":"%v")+" %s"+(A.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(A){return null!=A.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: geLine truncated
+13009
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(f):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e,t=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{e=require("worker_threads").Worker}catch(e){}exports.default=e?function(r,n,o,a,s){var u=!1,i=new e(r+t,{eval:!0}).on("error",(function(e){return s(e,null)})).on("message",(function(e){return s(null,e)})).on("exit",(function(e){e&&!u&&s(Error("exited with code "+e),null)}));return i.postMessage(o,a),i.terminate=function(){return u=!0,e.prototype.terminate.call(i)},i}:function(e,t,r,n,o){setImmediate((function(){return o(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)}));var a=function(){};return{terminate:a,postMessage:a}};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,s,a,n){var o=new Worker(e[t]||(e[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var s=Error(t[0]);s.code=t[1],s.stack=t[2],n(s,null)}else n(null,r)},o.postMessage(s,a),o};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var a=new e(i[30]);for(o=1;o<30;++o)for(var s=i[o];s<i[o+1];++s)a[s]=s-i[o]<<5|o;return[i,a]},u=s(i,2),f=u[0],h=u[1];f[28]=258,h[258]=28;for(var c=s(o,0),l=c[0],p=c[1],v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var y=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)t[o]&&++a[t[o]-1];var s,u=new r(n);for(o=0;o<n;++o)u[o]=u[o-1]+a[o-1]<<1;if(e){s=new r(1<<n);var f=15-n;for(o=0;o<i;++o)if(t[o])for(var h=o<<4|t[o],c=n-t[o],l=u[t[o]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)s[v[l]>>>f]=h}else for(s=new r(i),o=0;o<i;++o)t[o]&&(s[o]=v[u[t[o]-1]++]>>>15-t[o]);return s},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var w=new n(32);for(d=0;d<32;++d)w[d]=5;var x=y(m,9,0),b=y(m,9,1),z=y(w,5,0),k=y(w,5,1),M=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},T=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},A=function(t){return(t+7)/8|0},E=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var a=new(2==t.BYTES_PER_ELEMENT?r:4==t.BYTES_PER_ELEMENT?e:n)(o-i);return a.set(t.subarray(i,o)),a};_e.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var D=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],C=function(t,n,r){var e=Error(n||D[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,C),!r)throw e;return e},U=function(t,r,e){var s=t.length;if(!s||e&&e.f&&!e.l)return r||new n(0);var u=!r||e,h=!e||e.i;e||(e={}),r||(r=new n(3*s));var c=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},p=e.f||0,v=e.p||0,d=e.b||0,g=e.l,m=e.d,w=e.m,x=e.n,z=8*s;do{if(!g){p=S(t,v,1);var D=S(t,v+1,3);if(v+=3,!D){var U=t[(B=A(v)+4)-4]|t[B-3]<<8,I=B+U;if(I>s){h&&C(0);break}u&&c(d+U),r.set(t.subarray(B,I),d),e.b=d+=U,e.p=v=8*I,e.f=p;continue}if(1==D)g=b,m=k,w=9,x=5;else if(2==D){var F=S(t,v,31)+257,Z=S(t,v+10,15)+4,O=F+S(t,v+5,31)+1;v+=14;for(var G=new n(O),L=new n(19),N=0;N<Z;++N)L[a[N]]=S(t,v+3*N,7);v+=3*Z;var P=M(L),_=(1<<P)-1,q=y(L,P,1);for(N=0;N<O;){var B,H=q[S(t,v,_)];if(v+=15&H,(B=H>>>4)<16)G[N++]=B;else{var Y=0,j=0;for(16==B?(j=3+S(t,v,3),v+=2,Y=G[N-1]):17==B?(j=3+S(t,v,7),v+=3):18==B&&(j=11+S(t,v,127),v+=7);j--;)G[N++]=Y}}var R=G.subarray(0,F),J=G.subarray(F);w=M(R),x=M(J),g=y(R,w,1),m=y(J,x,1)}else C(1);if(v>z){h&&C(0);break}}u&&c(d+131072);for(var K=(1<<w)-1,Q=(1<<x)-1,V=v;;V=v){var W=(Y=g[T(t,v)&K])>>>4;if((v+=15&Y)>z){h&&C(0);break}if(Y||C(2),W<256)r[d++]=W;else{if(256==W){V=v,g=null;break}var X=W-254;W>264&&(X=S(Line truncated
+4398
View File
File diff suppressed because it is too large. Load diff
+74
View File
@@ -0,0 +1,74 @@
// http://mrl.nyu.edu/~perlin/noise/
var ImprovedNoise = function () {
var p = [ 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10,
23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87,
174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211,
133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208,
89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5,
202, 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119,
248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232,
178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249,
14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205,
93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180 ];
for ( var i = 0; i < 256; i ++ ) {
p[ 256 + i ] = p[ i ];
}
function fade( t ) {
return t * t * t * ( t * ( t * 6 - 15 ) + 10 );
}
function lerp( t, a, b ) {
return a + t * ( b - a );
}
function grad( hash, x, y, z ) {
var h = hash & 15;
var u = h < 8 ? x : y, v = h < 4 ? y : h == 12 || h == 14 ? x : z;
return ( ( h & 1 ) == 0 ? u : - u ) + ( ( h & 2 ) == 0 ? v : - v );
}
return {
noise: function ( x, y, z ) {
var floorX = Math.floor( x ), floorY = Math.floor( y ), floorZ = Math.floor( z );
var X = floorX & 255, Y = floorY & 255, Z = floorZ & 255;
x -= floorX;
y -= floorY;
z -= floorZ;
var xMinus1 = x - 1, yMinus1 = y - 1, zMinus1 = z - 1;
var u = fade( x ), v = fade( y ), w = fade( z );
var A = p[ X ] + Y, AA = p[ A ] + Z, AB = p[ A + 1 ] + Z, B = p[ X + 1 ] + Y, BA = p[ B ] + Z, BB = p[ B + 1 ] + Z;
return lerp( w, lerp( v, lerp( u, grad( p[ AA ], x, y, z ),
grad( p[ BA ], xMinus1, y, z ) ),
lerp( u, grad( p[ AB ], x, yMinus1, z ),
grad( p[ BB ], xMinus1, yMinus1, z ) ) ),
lerp( v, lerp( u, grad( p[ AA + 1 ], x, y, zMinus1 ),
grad( p[ BA + 1 ], xMinus1, y, zMinus1 ) ),
lerp( u, grad( p[ AB + 1 ], x, yMinus1, zMinus1 ),
grad( p[ BB + 1 ], xMinus1, yMinus1, zMinus1 ) ) ) );
}
};
};
// export { ImprovedNoise };
+32
View File
@@ -0,0 +1,32 @@
if (!window.load) window.load = function (moduleName) {
return new Promise(function(resolve, reject) {
fetch(moduleName).then(function (response) {
if (response.status !== 200) return reject(new Error("Status code is not 200. "));
response.text().then(function (moduleContents) {
try {
var moduleObject = {
"exports": {}
};
var BoundFunction = Function.prototype.bind.apply(Function, [moduleObject]);
var moduleFunction = new BoundFunction("global", "window", "module", "exports",
"return eval(" + JSON.stringify(
moduleContents
+ "\n//# sourceURL=" + (new URL(moduleName, document.baseURI).href) + "\n"
) + ");"
).bind(moduleObject.exports);
var result = moduleFunction.apply(window, [window, window, moduleObject, moduleObject.exports]);
resolve(moduleObject.exports);
} catch (e) {
reject(e);
}
}).catch(function (err) {
reject(err);
});
}).catch(function (err) {
reject(err);
});
});
};
+32
View File
@@ -0,0 +1,32 @@
module.exports = {
"languages": {},
"loadFromJSON": function (language, data) {
if (!(language in module.exports.languages)) module.exports.languages[language] = {};
for (var dat in data) {
if (data.hasOwnProperty(dat)) {
module.exports.languages[language][dat] = data[dat];
}
}
},
"getRawString": function (language, stringName) {
if (!(language in module.exports.languages)) return;
if (!(stringName in module.exports.languages[language])) return;
return module.exports.languages[language][stringName];
},
"getFormattedString": function (language, stringName, variables) {
if (!(language in module.exports.languages)) return;
if (!(stringName in module.exports.languages[language])) return;
var formattedString = module.exports.languages[language][stringName];
for (var variable in variables) {
if (variables.hasOwnProperty(variable)) {
formattedString = formattedString.replaceAll("${" + variable + "}", variables[variable]);
}
}
return formattedString;
}
};
+153
View File
@@ -0,0 +1,153 @@
var Olm = (function() {
var olm_exports = {};
var onInitSuccess;
var onInitFail;
var Module = (function() {
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
return (
function(Module) {
Module = Module || {};
var a;a||(a=typeof Module !== 'undefined' ? Module : {});var aa;a.ready=new Promise(function(b){aa=b});var g;if("undefined"!==typeof window)g=function(b){window.crypto.getRandomValues(b)};else if(module.exports){var ba=require("crypto");g=function(b){var c=ba.randomBytes(b.length);b.set(c)};process=global.process}else throw Error("Cannot find global to attach library to");if("undefined"!==typeof OLM_OPTIONS)for(var ca in OLM_OPTIONS)OLM_OPTIONS.hasOwnProperty(ca)&&(a[ca]=OLM_OPTIONS[ca]);
a.onRuntimeInitialized=function(){h=a._olm_error();olm_exports.PRIVATE_KEY_LENGTH=a._olm_pk_private_key_length();onInitSuccess&&onInitSuccess()};a.onAbort=function(b){onInitFail&&onInitFail(b)};var da={},l;for(l in a)a.hasOwnProperty(l)&&(da[l]=a[l]);var ea=!1,m=!1,fa=!1,ia=!1;ea="object"===typeof window;m="function"===typeof importScripts;fa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;ia=!ea&&!fa&&!m;var n="",ja,ka,la,ma;
if(fa)n=m?require("path").dirname(n)+"/":__dirname+"/",ja=function(b,c){la||(la=require("fs"));ma||(ma=require("path"));b=ma.normalize(b);return la.readFileSync(b,c?null:"utf8")},ka=function(b){b=ja(b,!0);b.buffer||(b=new Uint8Array(b));b.buffer||q("Assertion failed: undefined");return b},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(b){throw b;}),process.on("unhandledRejection",q),a.inspect=function(){return"[Emscripten Module object]"};
else if(ia)"undefined"!=typeof read&&(ja=function(b){return read(b)}),ka=function(b){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(b));b=read(b,"binary");"object"===typeof b||q("Assertion failed: undefined");return b},"undefined"!==typeof print&&("undefined"===typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==typeof printErr?printErr:print);else if(ea||m)m?n=self.location.href:document.currentScript&&(n=document.currentScript.src),_scriptDir&&
(n=_scriptDir),0!==n.indexOf("blob:")?n=n.substr(0,n.lastIndexOf("/")+1):n="",ja=function(b){var c=new XMLHttpRequest;c.open("GET",b,!1);c.send(null);return c.responseText},m&&(ka=function(b){var c=new XMLHttpRequest;c.open("GET",b,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)});var na=a.print||console.log.bind(console),oa=a.printErr||console.warn.bind(console);for(l in da)da.hasOwnProperty(l)&&(a[l]=da[l]);da=null;var pa;a.wasmBinary&&(pa=a.wasmBinary);var noExitRuntime;
a.noExitRuntime&&(noExitRuntime=a.noExitRuntime);"object"!==typeof WebAssembly&&q("no native wasm support detected");
function r(b){var c="i8";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":t[b>>0]=0;break;case "i8":t[b>>0]=0;break;case "i16":qa[b>>1]=0;break;case "i32":u[b>>2]=0;break;case "i64":ra=[0,(w=0,1<=+sa(w)?0<w?(ta(+ua(w/4294967296),4294967295)|0)>>>0:~~+va((w-+(~~w>>>0))/4294967296)>>>0:0)];u[b>>2]=ra[0];u[b+4>>2]=ra[1];break;case "float":wa[b>>2]=0;break;case "double":xa[b>>3]=0;break;default:q("invalid type for setValue: "+c)}}
function ya(b,c){c=c||"i8";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":return t[b>>0];case "i8":return t[b>>0];case "i16":return qa[b>>1];case "i32":return u[b>>2];case "i64":return u[b>>2];case "float":return wa[b>>2];case "double":return xa[b>>3];default:q("invalid type for getValue: "+c)}return null}var za,Aa=new WebAssembly.Table({initial:9,maximum:9,element:"anyfunc"}),Ba=!1,Ca="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
function x(b,c){if(b){var d=y,e=b+c;for(c=b;d[c]&&!(c>=e);)++c;if(16<c-b&&d.subarray&&Ca)b=Ca.decode(d.subarray(b,c));else{for(e="";b<c;){var f=d[b++];if(f&128){var k=d[b++]&63;if(192==(f&224))e+=String.fromCharCode((f&31)<<6|k);else{var p=d[b++]&63;f=224==(f&240)?(f&15)<<12|k<<6|p:(f&7)<<18|k<<12|p<<6|d[b++]&63;65536>f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}b=e}}else b="";return b}
function z(b,c,d,e){if(!(0<e))return 0;var f=d;e=d+e-1;for(var k=0;k<b.length;++k){var p=b.charCodeAt(k);if(55296<=p&&57343>=p){var v=b.charCodeAt(++k);p=65536+((p&1023)<<10)|v&1023}if(127>=p){if(d>=e)break;c[d++]=p}else{if(2047>=p){if(d+1>=e)break;c[d++]=192|p>>6}else{if(65535>=p){if(d+2>=e)break;c[d++]=224|p>>12}else{if(d+3>=e)break;c[d++]=240|p>>18;c[d++]=128|p>>12&63}c[d++]=128|p>>6&63}c[d++]=128|p&63}}c[d]=0;return d-f}
function A(b){for(var c=0,d=0;d<b.length;++d){var e=b.charCodeAt(d);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|b.charCodeAt(++d)&1023);127>=e?++c:c=2047>=e?c+2:65535>=e?c+3:c+4}return c}function Da(b,c){for(var d=0;d<b.length;++d)t[c++>>0]=b.charCodeAt(d)}var Ea,t,y,qa,u,wa,xa,Ga=a.INITIAL_MEMORY||262144;a.wasmMemory?za=a.wasmMemory:za=new WebAssembly.Memory({initial:Ga/65536,maximum:Ga/65536});za&&(Ea=za.buffer);Ga=Ea.byteLength;var B=Ea;Ea=B;a.HEAP8=t=new Int8Array(B);a.HEAP16=qa=new Int16Array(B);
a.HEAP32=u=new Int32Array(B);a.HEAPU8=y=new Uint8Array(B);a.HEAPU16=new Uint16Array(B);a.HEAPU32=new Uint32Array(B);a.HEAPF32=wa=new Float32Array(B);a.HEAPF64=xa=new Float64Array(B);u[9584]=104032;function Ha(b){for(;0<b.length;){var c=b.shift();if("function"==typeof c)c(a);else{var d=c.Nb;"number"===typeof d?void 0===c.Mb?a.dynCall_v(d):a.dynCall_vi(d,c.Mb):d(void 0===c.Mb?null:c.Mb)}}}var Ia=[],Ja=[],Ka=[],La=[];function Ma(){var b=a.preRun.shift();Ia.unshift(b)}
var sa=Math.abs,va=Math.ceil,ua=Math.floor,ta=Math.min,C=0,Na=null,Oa=null;a.preloadedImages={};a.preloadedAudios={};function q(b){if(a.onAbort)a.onAbort(b);na(b);oa(b);Ba=!0;throw new WebAssembly.RuntimeError("abort("+b+"). Build with -s ASSERTIONS=1 for more info.");}function Pa(b){var c=D;return String.prototype.startsWith?c.startsWith(b):0===c.indexOf(b)}function Qa(){return Pa("data:application/octet-stream;base64,")}var D="olm.wasm";if(!Qa()){var Ra=D;D=a.locateFile?a.locateFile(Ra,n):n+Ra}
function Sa(){try{if(pa)return new Uint8Array(pa);if(ka)return ka(D);throw"both async and sync fetching of the wasm failed";}catch(b){q(b)}}function Ta(){return pa||!ea&&!m||"function"!==typeof fetch||Pa("file://")?new Promise(function(b){b(Sa())}):fetch(D,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+D+"'";return b.arrayBuffer()}).catch(function(){return Sa()})}var w,ra;Ja.push({Nb:function(){Ua()}});
var Va={a:function(b,c,d){y.copyWithin(b,c,c+d)},b:function(){q("OOM")},memory:za,table:Aa};
(function(){function b(f){a.asm=f.exports;C--;a.monitorRunDependencies&&a.monitorRunDependencies(C);0==C&&(null!==Na&&(clearInterval(Na),Na=null),Oa&&(f=Oa,Oa=null,f()))}function c(f){b(f.instance)}function d(f){return Ta().then(function(k){return WebAssembly.instantiate(k,e)}).then(f,function(k){oa("failed to asynchronously prepare wasm: "+k);q(k)})}var e={a:Va};C++;a.monitorRunDependencies&&a.monitorRunDependencies(C);if(a.instantiateWasm)try{return a.instantiateWasm(e,b)}catch(f){return oa("Module.instantiateWasm callback failed with error: "+
f),!1}(function(){if(pa||"function"!==typeof WebAssembly.instantiateStreaming||Qa()||Pa("file://")||"function"!==typeof fetch)return d(c);fetch(D,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(c,function(k){oa("wasm streaming compile failed: "+k);oa("falling back to ArrayBuffer instantiation");return d(c)})})})();return{}})();var Ua=a.___wasm_call_ctors=function(){return(Ua=a.___wasm_call_ctors=a.asm.c).apply(null,arguments)};
a._olm_pk_encryption_last_error=function(){return(a._olm_pk_encryption_last_error=a.asm.d).apply(null,arguments)};a._olm_pk_encryption_size=function(){return(a._olm_pk_encryption_size=a.asm.e).apply(null,arguments)};a._olm_pk_encryption=function(){return(a._olm_pk_encryption=a.asm.f).apply(null,arguments)};a._olm_clear_pk_encryption=function(){return(a._olm_clear_pk_encryption=a.asm.g).apply(null,arguments)};
a._olm_pk_encryption_set_recipient_key=function(){return(a._olm_pk_encryption_set_recipient_key=a.asm.h).apply(null,arguments)};a._olm_pk_key_length=function(){return(a._olm_pk_key_length=a.asm.i).apply(null,arguments)};a._olm_pk_ciphertext_length=function(){return(a._olm_pk_ciphertext_length=a.asm.j).apply(null,arguments)};a._olm_pk_mac_length=function(){return(a._olm_pk_mac_length=a.asm.k).apply(null,arguments)};
a._olm_pk_encrypt_random_length=function(){return(a._olm_pk_encrypt_random_length=a.asm.l).apply(null,arguments)};a._olm_pk_encrypt=function(){return(a._olm_pk_encrypt=a.asm.m).apply(null,arguments)};a._olm_pk_decryption_last_error=function(){return(a._olm_pk_decryption_last_error=a.asm.n).apply(null,arguments)};a._olm_pk_decryption_size=function(){return(a._olm_pk_decryption_size=a.asm.o).apply(null,arguments)};a._olm_pk_decryption=function(){return(a._olm_pk_decryption=a.asm.p).apply(null,arguments)};
a._olm_clear_pk_decryption=function(){return(a._olm_clear_pk_decryption=a.asm.q).apply(null,arguments)};a._olm_pk_private_key_length=function(){return(a._olm_pk_private_key_length=a.asm.r).apply(null,arguments)};a._olm_pk_generate_key_random_length=function(){return(a._olm_pk_generate_key_random_length=a.asm.s).apply(null,arguments)};a._olm_pk_key_from_private=function(){return(a._olm_pk_key_from_private=a.asm.t).apply(null,arguments)};
a._olm_pk_generate_key=function(){return(a._olm_pk_generate_key=a.asm.u).apply(null,arguments)};a._olm_pickle_pk_decryption_length=function(){return(a._olm_pickle_pk_decryption_length=a.asm.v).apply(null,arguments)};a._olm_pickle_pk_decryption=function(){return(a._olm_pickle_pk_decryption=a.asm.w).apply(null,arguments)};a._olm_unpickle_pk_decryption=function(){return(a._olm_unpickle_pk_decryption=a.asm.x).apply(null,arguments)};
a._olm_pk_max_plaintext_length=function(){return(a._olm_pk_max_plaintext_length=a.asm.y).apply(null,arguments)};a._olm_pk_decrypt=function(){return(a._olm_pk_decrypt=a.asm.z).apply(null,arguments)};a._olm_pk_get_private_key=function(){return(a._olm_pk_get_private_key=a.asm.A).apply(null,arguments)};a._olm_pk_signing_size=function(){return(a._olm_pk_signing_size=a.asm.B).apply(null,arguments)};a._olm_pk_signing=function(){return(a._olm_pk_signing=a.asm.C).apply(null,arguments)};
a._olm_pk_signing_last_error=function(){return(a._olm_pk_signing_last_error=a.asm.D).apply(null,arguments)};a._olm_clear_pk_signing=function(){return(a._olm_clear_pk_signing=a.asm.E).apply(null,arguments)};a._olm_pk_signing_seed_length=function(){return(a._olm_pk_signing_seed_length=a.asm.F).apply(null,arguments)};a._olm_pk_signing_public_key_length=function(){return(a._olm_pk_signing_public_key_length=a.asm.G).apply(null,arguments)};
a._olm_pk_signing_key_from_seed=function(){return(a._olm_pk_signing_key_from_seed=a.asm.H).apply(null,arguments)};a._olm_pk_signature_length=function(){return(a._olm_pk_signature_length=a.asm.I).apply(null,arguments)};a._olm_pk_sign=function(){return(a._olm_pk_sign=a.asm.J).apply(null,arguments)};a._olm_get_library_version=function(){return(a._olm_get_library_version=a.asm.K).apply(null,arguments)};a._olm_error=function(){return(a._olm_error=a.asm.L).apply(null,arguments)};
a._olm_account_last_error=function(){return(a._olm_account_last_error=a.asm.M).apply(null,arguments)};a._olm_session_last_error=function(){return(a._olm_session_last_error=a.asm.N).apply(null,arguments)};a._olm_utility_last_error=function(){return(a._olm_utility_last_error=a.asm.O).apply(null,arguments)};a._olm_account_size=function(){return(a._olm_account_size=a.asm.P).apply(null,arguments)};a._olm_session_size=function(){return(a._olm_session_size=a.asm.Q).apply(null,arguments)};
a._olm_utility_size=function(){return(a._olm_utility_size=a.asm.R).apply(null,arguments)};a._olm_account=function(){return(a._olm_account=a.asm.S).apply(null,arguments)};a._olm_session=function(){return(a._olm_session=a.asm.T).apply(null,arguments)};a._olm_utility=function(){return(a._olm_utility=a.asm.U).apply(null,arguments)};a._olm_clear_account=function(){return(a._olm_clear_account=a.asm.V).apply(null,arguments)};
a._olm_clear_session=function(){return(a._olm_clear_session=a.asm.W).apply(null,arguments)};a._olm_clear_utility=function(){return(a._olm_clear_utility=a.asm.X).apply(null,arguments)};a._olm_pickle_account_length=function(){return(a._olm_pickle_account_length=a.asm.Y).apply(null,arguments)};a._olm_pickle_session_length=function(){return(a._olm_pickle_session_length=a.asm.Z).apply(null,arguments)};a._olm_pickle_account=function(){return(a._olm_pickle_account=a.asm._).apply(null,arguments)};
a._olm_pickle_session=function(){return(a._olm_pickle_session=a.asm.$).apply(null,arguments)};a._olm_unpickle_account=function(){return(a._olm_unpickle_account=a.asm.aa).apply(null,arguments)};a._olm_unpickle_session=function(){return(a._olm_unpickle_session=a.asm.ba).apply(null,arguments)};a._olm_create_account_random_length=function(){return(a._olm_create_account_random_length=a.asm.ca).apply(null,arguments)};a._olm_create_account=function(){return(a._olm_create_account=a.asm.da).apply(null,arguments)};
a._olm_account_identity_keys_length=function(){return(a._olm_account_identity_keys_length=a.asm.ea).apply(null,arguments)};a._olm_account_identity_keys=function(){return(a._olm_account_identity_keys=a.asm.fa).apply(null,arguments)};a._olm_account_signature_length=function(){return(a._olm_account_signature_length=a.asm.ga).apply(null,arguments)};a._olm_account_sign=function(){return(a._olm_account_sign=a.asm.ha).apply(null,arguments)};
a._olm_account_one_time_keys_length=function(){return(a._olm_account_one_time_keys_length=a.asm.ia).apply(null,arguments)};a._olm_account_one_time_keys=function(){return(a._olm_account_one_time_keys=a.asm.ja).apply(null,arguments)};a._olm_account_mark_keys_as_published=function(){return(a._olm_account_mark_keys_as_published=a.asm.ka).apply(null,arguments)};a._olm_account_max_number_of_one_time_keys=function(){return(a._olm_account_max_number_of_one_time_keys=a.asm.la).apply(null,arguments)};
a._olm_account_generate_one_time_keys_random_length=function(){return(a._olm_account_generate_one_time_keys_random_length=a.asm.ma).apply(null,arguments)};a._olm_account_generate_one_time_keys=function(){return(a._olm_account_generate_one_time_keys=a.asm.na).apply(null,arguments)};a._olm_account_generate_fallback_key_random_length=function(){return(a._olm_account_generate_fallback_key_random_length=a.asm.oa).apply(null,arguments)};
a._olm_account_generate_fallback_key=function(){return(a._olm_account_generate_fallback_key=a.asm.pa).apply(null,arguments)};a._olm_account_fallback_key_length=function(){return(a._olm_account_fallback_key_length=a.asm.qa).apply(null,arguments)};a._olm_account_fallback_key=function(){return(a._olm_account_fallback_key=a.asm.ra).apply(null,arguments)};a._olm_create_outbound_session_random_length=function(){return(a._olm_create_outbound_session_random_length=a.asm.sa).apply(null,arguments)};
a._olm_create_outbound_session=function(){return(a._olm_create_outbound_session=a.asm.ta).apply(null,arguments)};a._olm_create_inbound_session=function(){return(a._olm_create_inbound_session=a.asm.ua).apply(null,arguments)};a._olm_create_inbound_session_from=function(){return(a._olm_create_inbound_session_from=a.asm.va).apply(null,arguments)};a._olm_session_id_length=function(){return(a._olm_session_id_length=a.asm.wa).apply(null,arguments)};
a._olm_session_id=function(){return(a._olm_session_id=a.asm.xa).apply(null,arguments)};a._olm_session_has_received_message=function(){return(a._olm_session_has_received_message=a.asm.ya).apply(null,arguments)};a._olm_session_describe=function(){return(a._olm_session_describe=a.asm.za).apply(null,arguments)};a._olm_matches_inbound_session=function(){return(a._olm_matches_inbound_session=a.asm.Aa).apply(null,arguments)};
a._olm_matches_inbound_session_from=function(){return(a._olm_matches_inbound_session_from=a.asm.Ba).apply(null,arguments)};a._olm_remove_one_time_keys=function(){return(a._olm_remove_one_time_keys=a.asm.Ca).apply(null,arguments)};a._olm_encrypt_message_type=function(){return(a._olm_encrypt_message_type=a.asm.Da).apply(null,arguments)};a._olm_encrypt_random_length=function(){return(a._olm_encrypt_random_length=a.asm.Ea).apply(null,arguments)};
a._olm_encrypt_message_length=function(){return(a._olm_encrypt_message_length=a.asm.Fa).apply(null,arguments)};a._olm_encrypt=function(){return(a._olm_encrypt=a.asm.Ga).apply(null,arguments)};a._olm_decrypt_max_plaintext_length=function(){return(a._olm_decrypt_max_plaintext_length=a.asm.Ha).apply(null,arguments)};a._olm_decrypt=function(){return(a._olm_decrypt=a.asm.Ia).apply(null,arguments)};a._olm_sha256_length=function(){return(a._olm_sha256_length=a.asm.Ja).apply(null,arguments)};
a._olm_sha256=function(){return(a._olm_sha256=a.asm.Ka).apply(null,arguments)};a._olm_ed25519_verify=function(){return(a._olm_ed25519_verify=a.asm.La).apply(null,arguments)};a._olm_inbound_group_session_size=function(){return(a._olm_inbound_group_session_size=a.asm.Ma).apply(null,arguments)};a._olm_inbound_group_session=function(){return(a._olm_inbound_group_session=a.asm.Na).apply(null,arguments)};
a._olm_clear_inbound_group_session=function(){return(a._olm_clear_inbound_group_session=a.asm.Oa).apply(null,arguments)};a._olm_inbound_group_session_last_error=function(){return(a._olm_inbound_group_session_last_error=a.asm.Pa).apply(null,arguments)};a._olm_init_inbound_group_session=function(){return(a._olm_init_inbound_group_session=a.asm.Qa).apply(null,arguments)};a._olm_import_inbound_group_session=function(){return(a._olm_import_inbound_group_session=a.asm.Ra).apply(null,arguments)};
a._olm_pickle_inbound_group_session_length=function(){return(a._olm_pickle_inbound_group_session_length=a.asm.Sa).apply(null,arguments)};a._olm_pickle_inbound_group_session=function(){return(a._olm_pickle_inbound_group_session=a.asm.Ta).apply(null,arguments)};a._olm_unpickle_inbound_group_session=function(){return(a._olm_unpickle_inbound_group_session=a.asm.Ua).apply(null,arguments)};
a._olm_group_decrypt_max_plaintext_length=function(){return(a._olm_group_decrypt_max_plaintext_length=a.asm.Va).apply(null,arguments)};a._olm_group_decrypt=function(){return(a._olm_group_decrypt=a.asm.Wa).apply(null,arguments)};a._olm_inbound_group_session_id_length=function(){return(a._olm_inbound_group_session_id_length=a.asm.Xa).apply(null,arguments)};a._olm_inbound_group_session_id=function(){return(a._olm_inbound_group_session_id=a.asm.Ya).apply(null,arguments)};
a._olm_inbound_group_session_first_known_index=function(){return(a._olm_inbound_group_session_first_known_index=a.asm.Za).apply(null,arguments)};a._olm_inbound_group_session_is_verified=function(){return(a._olm_inbound_group_session_is_verified=a.asm._a).apply(null,arguments)};a._olm_export_inbound_group_session_length=function(){return(a._olm_export_inbound_group_session_length=a.asm.$a).apply(null,arguments)};
a._olm_export_inbound_group_session=function(){return(a._olm_export_inbound_group_session=a.asm.ab).apply(null,arguments)};a._olm_sas_last_error=function(){return(a._olm_sas_last_error=a.asm.bb).apply(null,arguments)};a._olm_sas_size=function(){return(a._olm_sas_size=a.asm.cb).apply(null,arguments)};a._olm_sas=function(){return(a._olm_sas=a.asm.db).apply(null,arguments)};a._olm_clear_sas=function(){return(a._olm_clear_sas=a.asm.eb).apply(null,arguments)};
a._olm_create_sas_random_length=function(){return(a._olm_create_sas_random_length=a.asm.fb).apply(null,arguments)};a._olm_create_sas=function(){return(a._olm_create_sas=a.asm.gb).apply(null,arguments)};a._olm_sas_pubkey_length=function(){return(a._olm_sas_pubkey_length=a.asm.hb).apply(null,arguments)};a._olm_sas_get_pubkey=function(){return(a._olm_sas_get_pubkey=a.asm.ib).apply(null,arguments)};a._olm_sas_set_their_key=function(){return(a._olm_sas_set_their_key=a.asm.jb).apply(null,arguments)};
a._olm_sas_is_their_key_set=function(){return(a._olm_sas_is_their_key_set=a.asm.kb).apply(null,arguments)};a._olm_sas_generate_bytes=function(){return(a._olm_sas_generate_bytes=a.asm.lb).apply(null,arguments)};a._olm_sas_mac_length=function(){return(a._olm_sas_mac_length=a.asm.mb).apply(null,arguments)};a._olm_sas_calculate_mac=function(){return(a._olm_sas_calculate_mac=a.asm.nb).apply(null,arguments)};
a._olm_sas_calculate_mac_long_kdf=function(){return(a._olm_sas_calculate_mac_long_kdf=a.asm.ob).apply(null,arguments)};a._olm_outbound_group_session_size=function(){return(a._olm_outbound_group_session_size=a.asm.pb).apply(null,arguments)};a._olm_outbound_group_session=function(){return(a._olm_outbound_group_session=a.asm.qb).apply(null,arguments)};a._olm_clear_outbound_group_session=function(){return(a._olm_clear_outbound_group_session=a.asm.rb).apply(null,arguments)};
a._olm_outbound_group_session_last_error=function(){return(a._olm_outbound_group_session_last_error=a.asm.sb).apply(null,arguments)};a._olm_pickle_outbound_group_session_length=function(){return(a._olm_pickle_outbound_group_session_length=a.asm.tb).apply(null,arguments)};a._olm_pickle_outbound_group_session=function(){return(a._olm_pickle_outbound_group_session=a.asm.ub).apply(null,arguments)};
a._olm_unpickle_outbound_group_session=function(){return(a._olm_unpickle_outbound_group_session=a.asm.vb).apply(null,arguments)};a._olm_init_outbound_group_session_random_length=function(){return(a._olm_init_outbound_group_session_random_length=a.asm.wb).apply(null,arguments)};a._olm_init_outbound_group_session=function(){return(a._olm_init_outbound_group_session=a.asm.xb).apply(null,arguments)};
a._olm_group_encrypt_message_length=function(){return(a._olm_group_encrypt_message_length=a.asm.yb).apply(null,arguments)};a._olm_group_encrypt=function(){return(a._olm_group_encrypt=a.asm.zb).apply(null,arguments)};a._olm_outbound_group_session_id_length=function(){return(a._olm_outbound_group_session_id_length=a.asm.Ab).apply(null,arguments)};a._olm_outbound_group_session_id=function(){return(a._olm_outbound_group_session_id=a.asm.Bb).apply(null,arguments)};
a._olm_outbound_group_session_message_index=function(){return(a._olm_outbound_group_session_message_index=a.asm.Cb).apply(null,arguments)};a._olm_outbound_group_session_key_length=function(){return(a._olm_outbound_group_session_key_length=a.asm.Db).apply(null,arguments)};a._olm_outbound_group_session_key=function(){return(a._olm_outbound_group_session_key=a.asm.Eb).apply(null,arguments)};a._malloc=function(){return(a._malloc=a.asm.Fb).apply(null,arguments)};
a._free=function(){return(a._free=a.asm.Gb).apply(null,arguments)};var Wa=a.stackSave=function(){return(Wa=a.stackSave=a.asm.Hb).apply(null,arguments)},Xa=a.stackRestore=function(){return(Xa=a.stackRestore=a.asm.Ib).apply(null,arguments)},Ya=a.stackAlloc=function(){return(Ya=a.stackAlloc=a.asm.Jb).apply(null,arguments)};a.ALLOC_STACK=1;var Za;Oa=function $a(){Za||ab();Za||(Oa=$a)};
function ab(){function b(){if(!Za&&(Za=!0,a.calledRun=!0,!Ba)){Ha(Ja);Ha(Ka);aa(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;){var c=a.postRun.shift();La.unshift(c)}Ha(La)}}if(!(0<C)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Ma();Ha(Ia);0<C||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}
a.run=ab;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();noExitRuntime=!0;ab();function E(){var b=a._olm_outbound_group_session_size();this.Lb=F(b);this.Kb=a._olm_outbound_group_session(this.Lb)}function H(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_outbound_group_session_last_error(arguments[0])),Error("OLM."+c);return c}}E.prototype.free=function(){a._olm_clear_outbound_group_session(this.Kb);I(this.Kb)};
E.prototype.pickle=J(function(b){b=K(b);var c=H(a._olm_pickle_outbound_group_session_length)(this.Kb),d=L(b),e=L(c+1);try{H(a._olm_pickle_outbound_group_session)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});E.prototype.unpickle=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c);try{H(a._olm_unpickle_outbound_group_session)(this.Kb,d,b.length,e,c.length)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}});
E.prototype.create=J(function(){var b=H(a._olm_init_outbound_group_session_random_length)(this.Kb),c=N(b,g);H(a._olm_init_outbound_group_session)(this.Kb,c,b)});E.prototype.encrypt=function(b){try{var c=A(b);var d=H(a._olm_group_encrypt_message_length)(this.Kb,c);var e=F(c+1);z(b,y,e,c+1);var f=F(d+1);H(a._olm_group_encrypt)(this.Kb,e,c,f,d);r(f+d);return x(f,d)}finally{void 0!==e&&(M(e,c+1),I(e)),void 0!==f&&I(f)}};
E.prototype.session_id=J(function(){var b=H(a._olm_outbound_group_session_id_length)(this.Kb),c=L(b+1);H(a._olm_outbound_group_session_id)(this.Kb,c,b);return x(c,b)});E.prototype.session_key=J(function(){var b=H(a._olm_outbound_group_session_key_length)(this.Kb),c=L(b+1);H(a._olm_outbound_group_session_key)(this.Kb,c,b);var d=x(c,b);M(c,b);return d});E.prototype.message_index=function(){return H(a._olm_outbound_group_session_message_index)(this.Kb)};olm_exports.OutboundGroupSession=E;
function O(){var b=a._olm_inbound_group_session_size();this.Lb=F(b);this.Kb=a._olm_inbound_group_session(this.Lb)}function P(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_inbound_group_session_last_error(arguments[0])),Error("OLM."+c);return c}}O.prototype.free=function(){a._olm_clear_inbound_group_session(this.Kb);I(this.Kb)};
O.prototype.pickle=J(function(b){b=K(b);var c=P(a._olm_pickle_inbound_group_session_length)(this.Kb),d=L(b),e=L(c+1);try{P(a._olm_pickle_inbound_group_session)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});O.prototype.unpickle=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c);try{P(a._olm_unpickle_inbound_group_session)(this.Kb,d,b.length,e,c.length)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}});
O.prototype.create=J(function(b){b=K(b);var c=L(b);try{P(a._olm_init_inbound_group_session)(this.Kb,c,b.length)}finally{for(M(c,b.length),c=0;c<b.length;c++)b[c]=0}});O.prototype.import_session=J(function(b){b=K(b);var c=L(b);try{P(a._olm_import_inbound_group_session)(this.Kb,c,b.length)}finally{for(M(c,b.length),c=0;c<b.length;c++)b[c]=0}});
O.prototype.decrypt=J(function(b){try{var c=F(b.length);Da(b,c);var d=P(a._olm_group_decrypt_max_plaintext_length)(this.Kb,c,b.length);Da(b,c);var e=F(d+1);var f=L(4);var k=P(a._olm_group_decrypt)(this.Kb,c,b.length,e,d,f);r(e+k);return{plaintext:x(e,k),message_index:ya(f,"i32")}}finally{void 0!==c&&I(c),void 0!==e&&(M(e,k),I(e))}});O.prototype.session_id=J(function(){var b=P(a._olm_inbound_group_session_id_length)(this.Kb),c=L(b+1);P(a._olm_inbound_group_session_id)(this.Kb,c,b);return x(c,b)});
O.prototype.first_known_index=J(function(){return P(a._olm_inbound_group_session_first_known_index)(this.Kb)});O.prototype.export_session=J(function(b){var c=P(a._olm_export_inbound_group_session_length)(this.Kb),d=L(c+1);H(a._olm_export_inbound_group_session)(this.Kb,d,c,b);b=x(d,c);M(d,c);return b});olm_exports.InboundGroupSession=O;function bb(){var b=a._olm_pk_encryption_size();this.Lb=F(b);this.Kb=a._olm_pk_encryption(this.Lb)}
function Q(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_pk_encryption_last_error(arguments[0])),Error("OLM."+c);return c}}bb.prototype.free=function(){a._olm_clear_pk_encryption(this.Kb);I(this.Kb)};bb.prototype.set_recipient_key=J(function(b){b=K(b);var c=L(b);Q(a._olm_pk_encryption_set_recipient_key)(this.Kb,c,b.length)});
bb.prototype.encrypt=J(function(b){try{var c=A(b);var d=F(c+1);z(b,y,d,c+1);var e=Q(a._olm_pk_encrypt_random_length)();var f=N(e,g);var k=Q(a._olm_pk_ciphertext_length)(this.Kb,c);var p=F(k+1);var v=Q(a._olm_pk_mac_length)(this.Kb),ha=L(v+1);r(ha+v);var V=Q(a._olm_pk_key_length)(),G=L(V+1);r(G+V);Q(a._olm_pk_encrypt)(this.Kb,d,c,p,k,ha,v,G,V,f,e);r(p+k);return{ciphertext:x(p,k),mac:x(ha,v),ephemeral:x(G,V)}}finally{void 0!==f&&M(f,e),void 0!==d&&(M(d,c+1),I(d)),void 0!==p&&I(p)}});
function R(){var b=a._olm_pk_decryption_size();this.Lb=F(b);this.Kb=a._olm_pk_decryption(this.Lb)}function S(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_pk_decryption_last_error(arguments[0])),Error("OLM."+c);return c}}R.prototype.free=function(){a._olm_clear_pk_decryption(this.Kb);I(this.Kb)};
R.prototype.init_with_private_key=J(function(b){var c=L(b.length);a.HEAPU8.set(b,c);var d=S(a._olm_pk_key_length)(),e=L(d+1);try{S(a._olm_pk_key_from_private)(this.Kb,e,d,c,b.length)}finally{M(c,b.length)}return x(e,d)});R.prototype.generate_key=J(function(){var b=S(a._olm_pk_private_key_length)(),c=N(b,g),d=S(a._olm_pk_key_length)(),e=L(d+1);try{S(a._olm_pk_key_from_private)(this.Kb,e,d,c,b)}finally{M(c,b)}return x(e,d)});
R.prototype.get_private_key=J(function(){var b=Q(a._olm_pk_private_key_length)(),c=L(b);S(a._olm_pk_get_private_key)(this.Kb,c,b);var d=new Uint8Array(new Uint8Array(a.HEAPU8.buffer,c,b));M(c,b);return d});R.prototype.pickle=J(function(b){b=K(b);var c=S(a._olm_pickle_pk_decryption_length)(this.Kb),d=L(b),e=L(c+1);try{S(a._olm_pickle_pk_decryption)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});
R.prototype.unpickle=J(function(b,c){b=K(b);var d=L(b),e=K(c),f=L(e);c=S(a._olm_pk_key_length)();var k=L(c+1);try{S(a._olm_unpickle_pk_decryption)(this.Kb,d,b.length,f,e.length,k,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(k,c)});
R.prototype.decrypt=J(function(b,c,d){try{var e=A(d);var f=F(e+1);z(d,y,f,e+1);var k=K(b),p=L(k),v=K(c),ha=L(v);var V=S(a._olm_pk_max_plaintext_length)(this.Kb,e);var G=F(V+1);var Fa=S(a._olm_pk_decrypt)(this.Kb,p,k.length,ha,v.length,f,e,G,V);r(G+Fa);return x(G,Fa)}finally{void 0!==G&&(M(G,Fa+1),I(G)),void 0!==f&&I(f)}});function cb(){var b=a._olm_pk_signing_size();this.Lb=F(b);this.Kb=a._olm_pk_signing(this.Lb)}
function db(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_pk_signing_last_error(arguments[0])),Error("OLM."+c);return c}}cb.prototype.free=function(){a._olm_clear_pk_signing(this.Kb);I(this.Kb)};cb.prototype.init_with_seed=J(function(b){var c=L(b.length);a.HEAPU8.set(b,c);var d=db(a._olm_pk_signing_public_key_length)(),e=L(d+1);try{db(a._olm_pk_signing_key_from_seed)(this.Kb,e,d,c,b.length)}finally{M(c,b.length)}return x(e,d)});
cb.prototype.generate_seed=J(function(){var b=db(a._olm_pk_signing_seed_length)(),c=N(b,g),d=new Uint8Array(new Uint8Array(a.HEAPU8.buffer,c,b));M(c,b);return d});cb.prototype.sign=J(function(b){try{var c=A(b);var d=F(c+1);z(b,y,d,c+1);var e=db(a._olm_pk_signature_length)(),f=L(e+1);db(a._olm_pk_sign)(this.Kb,d,c,f,e);return x(f,e)}finally{void 0!==d&&(M(d,c+1),I(d))}});
function T(){var b=a._olm_sas_size(),c=a._olm_create_sas_random_length(),d=N(c,g);this.Lb=F(b);this.Kb=a._olm_sas(this.Lb);a._olm_create_sas(this.Kb,d,c);M(d,c)}function U(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_sas_last_error(arguments[0])),Error("OLM."+c);return c}}T.prototype.free=function(){a._olm_clear_sas(this.Kb);I(this.Kb)};
T.prototype.get_pubkey=J(function(){var b=U(a._olm_sas_pubkey_length)(this.Kb),c=L(b+1);U(a._olm_sas_get_pubkey)(this.Kb,c,b);return x(c,b)});T.prototype.set_their_key=J(function(b){b=K(b);var c=L(b);U(a._olm_sas_set_their_key)(this.Kb,c,b.length)});T.prototype.is_their_key_set=J(function(){return U(a._olm_sas_is_their_key_set)(this.Kb)?!0:!1});
T.prototype.generate_bytes=J(function(b,c){b=K(b);var d=L(b),e=L(c);U(a._olm_sas_generate_bytes)(this.Kb,d,b.length,e,c);return new Uint8Array(new Uint8Array(a.HEAPU8.buffer,e,c))});T.prototype.calculate_mac=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c),f=U(a._olm_sas_mac_length)(this.Kb),k=L(f+1);U(a._olm_sas_calculate_mac)(this.Kb,d,b.length,e,c.length,k,f);return x(k,f)});
T.prototype.calculate_mac_long_kdf=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c),f=U(a._olm_sas_mac_length)(this.Kb),k=L(f+1);U(a._olm_sas_calculate_mac_long_kdf)(this.Kb,d,b.length,e,c.length,k,f);return x(k,f)});var F=a._malloc,I=a._free,h;function N(b,c){var d=Ya(b);c(new Uint8Array(a.HEAPU8.buffer,d,b));return d}function L(b){return"number"==typeof b?N(b,function(c){c.fill(0)}):N(b.length,function(c){c.set(b)})}
function K(b){if(b instanceof Uint8Array)var c=b;else c=Array(A(b)+1),b=z(b,c,0,c.length),c.length=b;return c}function J(b){return function(){var c=Wa();try{return b.apply(this,arguments)}finally{Xa(c)}}}function M(b,c){for(;0<c--;)a.HEAP8[b++]=0}function W(){var b=a._olm_account_size();this.Lb=F(b);this.Kb=a._olm_account(this.Lb)}function X(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_account_last_error(arguments[0])),Error("OLM."+c);return c}}
W.prototype.free=function(){a._olm_clear_account(this.Kb);I(this.Kb)};W.prototype.create=J(function(){var b=X(a._olm_create_account_random_length)(this.Kb),c=N(b,g);X(a._olm_create_account)(this.Kb,c,b)});W.prototype.identity_keys=J(function(){var b=X(a._olm_account_identity_keys_length)(this.Kb),c=L(b+1);X(a._olm_account_identity_keys)(this.Kb,c,b);return x(c,b)});
W.prototype.sign=J(function(b){var c=X(a._olm_account_signature_length)(this.Kb);b=K(b);var d=L(b),e=L(c+1);try{X(a._olm_account_sign)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});W.prototype.one_time_keys=J(function(){var b=X(a._olm_account_one_time_keys_length)(this.Kb),c=L(b+1);X(a._olm_account_one_time_keys)(this.Kb,c,b);return x(c,b)});W.prototype.mark_keys_as_published=J(function(){X(a._olm_account_mark_keys_as_published)(this.Kb)});
W.prototype.max_number_of_one_time_keys=J(function(){return X(a._olm_account_max_number_of_one_time_keys)(this.Kb)});W.prototype.generate_one_time_keys=J(function(b){var c=X(a._olm_account_generate_one_time_keys_random_length)(this.Kb,b),d=N(c,g);X(a._olm_account_generate_one_time_keys)(this.Kb,b,d,c)});W.prototype.remove_one_time_keys=J(function(b){X(a._olm_remove_one_time_keys)(this.Kb,b.Kb)});
W.prototype.generate_fallback_key=J(function(){var b=X(a._olm_account_generate_fallback_key_random_length)(this.Kb),c=N(b,g);X(a._olm_account_generate_fallback_key)(this.Kb,c,b)});W.prototype.fallback_key=J(function(){var b=X(a._olm_account_fallback_key_length)(this.Kb),c=L(b+1);X(a._olm_account_fallback_key)(this.Kb,c,b);return x(c,b)});
W.prototype.pickle=J(function(b){b=K(b);var c=X(a._olm_pickle_account_length)(this.Kb),d=L(b),e=L(c+1);try{X(a._olm_pickle_account)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});W.prototype.unpickle=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c);try{X(a._olm_unpickle_account)(this.Kb,d,b.length,e,c.length)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}});function Y(){var b=a._olm_session_size();this.Lb=F(b);this.Kb=a._olm_session(this.Lb)}
function Z(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_session_last_error(arguments[0])),Error("OLM."+c);return c}}Y.prototype.free=function(){a._olm_clear_session(this.Kb);I(this.Kb)};Y.prototype.pickle=J(function(b){b=K(b);var c=Z(a._olm_pickle_session_length)(this.Kb),d=L(b),e=L(c+1);try{Z(a._olm_pickle_session)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});
Y.prototype.unpickle=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c);try{Z(a._olm_unpickle_session)(this.Kb,d,b.length,e,c.length)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}});Y.prototype.create_outbound=J(function(b,c,d){var e=Z(a._olm_create_outbound_session_random_length)(this.Kb),f=N(e,g);c=K(c);d=K(d);var k=L(c),p=L(d);try{Z(a._olm_create_outbound_session)(this.Kb,b.Kb,k,c.length,p,d.length,f,e)}finally{M(f,e)}});
Y.prototype.create_inbound=J(function(b,c){c=K(c);var d=L(c);try{Z(a._olm_create_inbound_session)(this.Kb,b.Kb,d,c.length)}finally{for(M(d,c.length),b=0;b<c.length;b++)c[b]=0}});Y.prototype.create_inbound_from=J(function(b,c,d){c=K(c);var e=L(c);d=K(d);var f=L(d);try{Z(a._olm_create_inbound_session_from)(this.Kb,b.Kb,e,c.length,f,d.length)}finally{for(M(f,d.length),b=0;b<d.length;b++)d[b]=0}});
Y.prototype.session_id=J(function(){var b=Z(a._olm_session_id_length)(this.Kb),c=L(b+1);Z(a._olm_session_id)(this.Kb,c,b);return x(c,b)});Y.prototype.has_received_message=function(){return Z(a._olm_session_has_received_message)(this.Kb)?!0:!1};Y.prototype.matches_inbound=J(function(b){b=K(b);var c=L(b);return Z(a._olm_matches_inbound_session)(this.Kb,c,b.length)?!0:!1});
Y.prototype.matches_inbound_from=J(function(b,c){b=K(b);var d=L(b);c=K(c);var e=L(c);return Z(a._olm_matches_inbound_session_from)(this.Kb,d,b.length,e,c.length)?!0:!1});
Y.prototype.encrypt=J(function(b){try{var c=Z(a._olm_encrypt_random_length)(this.Kb);var d=Z(a._olm_encrypt_message_type)(this.Kb);var e=A(b);var f=Z(a._olm_encrypt_message_length)(this.Kb,e);var k=N(c,g);var p=F(e+1);z(b,y,p,e+1);var v=F(f+1);Z(a._olm_encrypt)(this.Kb,p,e,k,c,v,f);r(v+f);return{type:d,body:x(v,f)}}finally{void 0!==k&&M(k,c),void 0!==p&&(M(p,e+1),I(p)),void 0!==v&&I(v)}});
Y.prototype.decrypt=J(function(b,c){try{var d=F(c.length);Da(c,d);var e=Z(a._olm_decrypt_max_plaintext_length)(this.Kb,b,d,c.length);Da(c,d);var f=F(e+1);var k=Z(a._olm_decrypt)(this.Kb,b,d,c.length,f,e);r(f+k);return x(f,k)}finally{void 0!==d&&I(d),void 0!==f&&(M(f,e),I(f))}});Y.prototype.describe=J(function(){try{var b=F(256);Z(a._olm_session_describe)(this.Kb,b,256);return x(b)}finally{void 0!==b&&I(b)}});function eb(){var b=a._olm_utility_size();this.Lb=F(b);this.Kb=a._olm_utility(this.Lb)}
function fb(b){return function(){var c=b.apply(this,arguments);if(c===h)throw c=x(a._olm_utility_last_error(arguments[0])),Error("OLM."+c);return c}}eb.prototype.free=function(){a._olm_clear_utility(this.Kb);I(this.Kb)};eb.prototype.sha256=J(function(b){var c=fb(a._olm_sha256_length)(this.Kb);b=K(b);var d=L(b),e=L(c+1);try{fb(a._olm_sha256)(this.Kb,d,b.length,e,c)}finally{for(M(d,b.length),d=0;d<b.length;d++)b[d]=0}return x(e,c)});
eb.prototype.ed25519_verify=J(function(b,c,d){b=K(b);var e=L(b);c=K(c);var f=L(c);d=K(d);var k=L(d);try{fb(a._olm_ed25519_verify)(this.Kb,e,b.length,f,c.length,k,d.length)}finally{for(M(f,c.length),b=0;b<c.length;b++)c[b]=0}});olm_exports.Account=W;olm_exports.Session=Y;olm_exports.Utility=eb;olm_exports.PkEncryption=bb;olm_exports.PkDecryption=R;olm_exports.PkSigning=cb;olm_exports.SAS=T;
olm_exports.get_library_version=J(function(){var b=L(3);a._olm_get_library_version(b,b+1,b+2);return[ya(b,"i8"),ya(b+1,"i8"),ya(b+2,"i8")]});
return Module.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
module.exports = Module;
else if (typeof define === 'function' && define['amd'])
define([], function() { return Module; });
else if (typeof exports === 'object')
exports["Module"] = Module;
var olmInitPromise;
olm_exports['init'] = function(opts) {
if (olmInitPromise) return olmInitPromise;
if (opts) OLM_OPTIONS = opts;
olmInitPromise = new Promise(function(resolve, reject) {
onInitSuccess = function() {
resolve();
};
onInitFail = function(err) {
reject(err);
};
Module();
});
return olmInitPromise;
};
return olm_exports;
})();
if (typeof(window) !== 'undefined') {
// We've been imported directly into a browser. Define the global 'Olm' object.
// (we do this even if module.exports was defined, because it's useful to have
// Olm in the global scope for browserified and webpacked apps.)
window["Olm"] = Olm;
}
if (typeof module === 'object') {
// Emscripten sets the module exports to be its module
// with wrapped c functions. Clobber it with our higher
// level wrapper class.
module.exports = Olm;
}
+10318
View File
File diff suppressed because it is too large. Load diff
+36301
View File
File diff suppressed because it is too large. Load diff
+20
View File
@@ -0,0 +1,20 @@
class EventListener {
constructor () {
this._listeners = {};
}
emit (eventName, ...data) {
if (!this._listeners[eventName] || this._listeners[eventName].length == 0) return;
for (var e = 0; e < this._listeners[eventName].length; e++) {
this._listeners[eventName][e](...data);
}
}
on (eventName, callback) {
if (!this._listeners[eventName]) this._listeners[eventName] = [];
this._listeners[eventName].push(callback);
}
}
module.exports = {
"EventListener": EventListener
};
+34
View File
@@ -0,0 +1,34 @@
/* Functions */
get = function (url, mode) {
return fetch(url).then(function (response) {
if (response.status == 200) {
switch (mode) {
case "text":
return response.text();
break;
case "arraybuffer":
return response.arrayBuffer();
break;
default:
}
} else {
reject(new Error("Status code is not 200. "));
}
}).catch(function (err) {
return err;
});
};
module.exports = {
"get": function (path, mode, cb) {
var href = window.location.href;
var address = path.startsWith("./") ? href.substring(0, href.lastIndexOf("/")) + path.substring(1) : path;
get(address, mode).then(function (data) {
cb(null, data);
}).catch(function (err) {
cb(err);
});
}
};
+49
View File
@@ -0,0 +1,49 @@
/* Dependencies */
const electron = require("electron");
const path = require("node:path");
/* Initialization */
let gameWindow;
/* Functions */
function createWindow() {
if (gameWindow) return;
gameWindow = new electron.BrowserWindow({
"width": 800,
"height": 450,
"frame": false,
"transparent": true,
"backgroundColor": "#FFFFFFFF",
"webPreferences": {
"preload": path.join(__dirname, "preload.js"),
"webgl": true
},
"title": "XVoxel",
"icon": path.join("assets", "images", "xvoxel.png"),
"show": false
});
gameWindow.loadFile(path.join(__dirname, "index.html"));
gameWindow.once("ready-to-show", function () {
gameWindow.show();
});
}
/* Events */
electron.app.on("ready", function (event) {
createWindow();
electron.app.on("activate", function () {
if (electron.BrowserWindow.getAllWindows().length === 0) createWindow();
});
});
electron.app.on("window-all-closed", function () {
if (process.platform !== "darwin") electron.app.quit();
});
+492
View File
@@ -0,0 +1,492 @@
let menusContainer = document.getElementById("menus");
var menus = {};
var shownMenus = [];
var makeMenu = function () {
module.exports.menuData = {
"main": {
"elements": [
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.main.play.label"),
"action": "open-menu",
"action-args": ["play", 1]
},
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.main.settings.label"),
"action": "open-menu",
"action-args": ["settings", 1]
},
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.main.quit.label"),
"action": "exit"
}
]
},
"play": {
"elements": [
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.play.singleplayer.label"),
"action": "open-menu",
"action-args": ["gamesel", 2]
}
]
},
"ingame": {
"elements": [
{
"type": "button",
"label": "Resume",
"action": "run",
"runnable": function () {
global.inputs[0].grab();
hideMenus(0);
}
},
{
"type": "button",
"label": "Quit",
"action": "run",
"runnable": global.quitGame
}
]
},
"gamesel": {
"elements": [
{
"type": "text",
"id": "worldnameinput",
"placeholder": "New World",
"value": "New World",
"action": "run",
"runnable": function (event) {
var newGameButton = global.document.getElementById("newgamebutton");
if (event.target.value.length < 1) {
newGameButton.disabled = true;
} else {
newGameButton.disabled = false;
}
}
},
{
"type": "button",
"id": "newgamebutton",
"label": global.locales.getRawString(global.currentLanguage, "play.singleplayer.newgamebutton.label"),
"action": "run",
"runnable": function () {
var worldNameInputBox = global.document.getElementById("worldnameinput");
var worldName = worldNameInputBox.value;
if (worldName.length < 1) worldName = worldNameInputBox.placeholder;
global.createWorld(worldName).then(function (world) {
global.startGame(0, worldName);
hideMenus(0);
});
}
},
{
"type": "button",
"id": "loadgamebutton",
"label": global.locales.getRawString(global.currentLanguage, "play.singleplayer.loadgamebutton.label"),
"action": "run",
"runnable": function () {
var fileSelector = document.createElement("input");
fileSelector.type = "file";
fileSelector.accept = "application/zip";
fileSelector.click();
fileSelector.onchange = function (event) {
if (!this.files || !this.files[0]) return;
this.files[0].arrayBuffer().then(function (buffer) {
var fileU8 = new Uint8Array(buffer);
global.openSave(fileU8).then(function (worldList) {
for (var worldName in worldList) {
if (worldList.hasOwnProperty(worldName)) {
var world = worldList[worldName];
global.worlds[worldName] = world;
var menuEntry = {
"type": "button",
"label": global.locales.getFormattedString(
global.currentLanguage,
"play.singleplayer.openworld.label",
{
"WORLD_NAME": worldName
}),
"action": "run",
"runnable": (function (event) {
hideMenus(0);
global.startGame(0, this);
}).bind(worldName)
};
module.exports.menuData["gamesel"].elements.push(menuEntry);
}
}
hideMenus(2);
menus["gamesel"] = constructMenu("gamesel", module.exports.menuData["gamesel"]);
showMenu("gamesel", 2);
}).catch(function (error) {
console.error(error);
});
}).catch(function (error) {
console.error(error);
});
delete fileSelector;
};
}
}
]
},
"settings": {
"elements": [
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.settings.user.label"),
"action": "open-menu",
"action-args": ["user-settings", 2]
},
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.settings.video.label"),
"action": "open-menu",
"action-args": ["video-settings", 2]
},
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.settings.audio.label"),
"action": "open-menu",
"action-args": ["audio-settings", 2]
},
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "menu.settings.input.label"),
"action": "open-menu",
"action-args": ["input-settings", 2]
}
]
},
"user-settings": {
"elements": [
// {
// "type": "text",
// "name": "username",
// "label": "Username",
// "placeholder": "Username"
// },
{
"type": "button",
"label": global.locales.getRawString(global.currentLanguage, "settings.user.login.label"),
"action": "open-menu",
"action-args": ["matrix-login", 3]
}
]
},
"matrix-login": {
"expand": true,
"elements": [
{
"type": "text",
"name": "homeserver-url",
"id": "homeserverinput",
"label": global.locales.getRawString(global.currentLanguage, "settings.login.homeserver-url.label"),
"placeholder": "https://matrix.org/",
"action": "run",
"runnable": function (event) {
var isValidURL = (/http.?:\/\/.+/g).test(event.target.value);
var isValidMXID = (/@.+:.+/g).test(global.document.getElementById("mxidinput").value);
var isValidPass = global.document.getElementById("mxpassinput").value.length > 0;
var loginButton = global.document.getElementById("mxloginbutton");
if (isValidURL && isValidMXID && isValidPass) {
loginButton.disabled = false;
} else {
loginButton.disabled = true;
}
}
},
{
"type": "text",
"name": "mxid",
"id": "mxidinput",
"label": global.locales.getRawString(global.currentLanguage, "settings.login.mxid.label"),
"placeholder": global.locales.getRawString(global.currentLanguage, "settings.login.mxid.placeholder"),
"action": "run",
"runnable": function (event) {
var isValidURL = (/http.?:\/\/.+/g).test(global.document.getElementById("homeserverinput").value);
var isValidMXID = (/@.+:.+/g).test(event.target.value);
var isValidPass = global.document.getElementById("mxpassinput").value.length > 0;
var loginButton = global.document.getElementById("mxloginbutton");
if (isValidURL && isValidMXID && isValidPass) {
loginButton.disabled = false;
} else {
loginButton.disabled = true;
}
}
},
{
"type": "password",
"name": "password",
"id": "mxpassinput",
"label": global.locales.getRawString(global.currentLanguage, "settings.login.password.label"),
"placeholder": global.locales.getRawString(global.currentLanguage, "settings.login.password.placeholder"),
"action": "run",
"runnable": function (event) {
var isValidURL = (/http.?:\/\/.+/g).test(global.document.getElementById("homeserverinput").value);
var isValidMXID = (/@.+:.+/g).test(global.document.getElementById("mxidinput").value);
var isValidPass = event.target.value.length > 0;
var loginButton = global.document.getElementById("mxloginbutton");
if (isValidURL && isValidMXID && isValidPass) {
loginButton.disabled = false;
} else {
loginButton.disabled = true;
}
}
},
{
"type": "button",
"id": "mxloginbutton",
"label": global.locales.getRawString(global.currentLanguage, "settings.user.login.label"),
"disabled": true,
"action": "run",
"runnable": async function (event) {
event.target.disabled = true;
var username = global.document.getElementById("mxidinput").value
.substring(1)
.split(":")[0];
if (!("matrixClient" in global.core.modules["network"])) {
var matrixClient = await global.core.modules["network"].initMatrixClient(
global.document.getElementById("homeserverinput").value,
global.document.getElementById("mxidinput").value
);
}
global.core.modules["network"].loginToMatrix(
username,
global.document.getElementById("mxpassinput").value
).then(function () {
localStorage.setItem("matrix_baseurl", global.document.getElementById("homeserverinput").value);
localStorage.setItem("matrix_mxid", global.document.getElementById("mxidinput").value);
localStorage.setItem("matrix_is_connected", true);
hideMenus(3);
event.target.disabled = false;
}).catch(function (error) {
event.target.disabled = false;
});
}
}
]
},
"video-settings": {
"expand": true,
"elements": [
{
"type": "slider",
"name": "fieldofview",
"label": "Field of view",
"value": 70,
"minimum": 30,
"maximum": 150,
"step": 1,
"change": function (event) {
}
}
]
},
"audio-settings": {
"expand": true,
"elements": [
{
"type": "slider",
"name": "mastervolume",
"label": "Master volume",
"value": 100,
"minimum": 0,
"maximum": 100,
"step": 1,
"change": function (event) {
}
}
]
}
};
for (var name in module.exports.menuData) {
if (module.exports.menuData.hasOwnProperty(name)) {
var menu = module.exports.menuData[name];
menus[name] = constructMenu(name, menu);
}
}
};
var constructMenu = function (name, data) {
var menuElement = document.createElement("div");
menuElement.classList.add("menu");
for (var e = 0; e < data.elements.length; e++) {
var element = data.elements[e];
let dom;
switch (element.type) {
case "button":
dom = document.createElement("button");
dom.innerText = element.label;
if ("disabled" in element) dom.disabled = element.disabled;
switch (element.action) {
case "open-menu":
dom.onclick = (function (event) {
showMenu(...this["action-args"]);
}).bind(element);
break;
case "run":
dom.onclick = element.runnable;
break;
case "exit":
dom.classList.add("closebutton");
dom.onclick = closeGame;
break;
default:
}
break;
case "text":
dom = document.createElement("input");
dom.type = "text";
if (element.placeholder) dom.placeholder = element.placeholder;
if ("action" in element) {
switch (element.action) {
case "run":
dom.oninput = element.runnable;
break;
default:
}
}
break;
case "password":
dom = document.createElement("input");
dom.type = "password";
if ("disabled" in element) dom.disabled = element.disabled;
if (element.placeholder) dom.placeholder = element.placeholder;
if ("action" in element) {
switch (element.action) {
case "run":
dom.oninput = element.runnable;
break;
default:
}
}
break;
case "slider":
dom = document.createElement("input");
dom.type = "range";
dom.name = element.name;
if ("disabled" in element) dom.disabled = element.disabled;
if (element.value) dom.value = element.value;
if (element.minimum) dom.min = element.minimum;
if (element.maximum) dom.max = element.maximum;
if (element.step) dom.step = element.step;
break;
case "void":
dom = document.createElement("div");
dom.classList.add("void");
break;
default:
}
if (element.id) dom.id = element.id;
if ((element.type != "button") && element.label) {
domLabel = document.createElement("label");
domLabel.htmlFor = element.name;
domLabel.innerText = element.label;
menuElement.appendChild(domLabel);
dom.name = element.name;
dom.label = domLabel;
}
menuElement.appendChild(dom);
}
return menuElement;
};
var showMenu = function (name, offset) {
if (shownMenus.length > 0 && (!shownMenus[offset - 1])) return;
if (shownMenus[offset] == menus[name]) {
return hideMenus(offset);
} else {
hideMenus(offset);
var displayOffset = 0;
for (var m = 0; m < shownMenus.length; m++) {
displayOffset += shownMenus[m].clientWidth;
}
menus[name].style.left = displayOffset + "px";
if (module.exports.menuData[name].expand) {
menus[name].style.width = "calc(" + menusContainer.clientWidth + "px - " + (menusContainer.clientWidth - displayOffset) + "px)";
} else {
menus[name].style.width = "" + 16 + "rem";
}
menusContainer.appendChild(menus[name]);
shownMenus.push(menus[name]);
}
};
var hideMenus = function (offset) {
for (var m = shownMenus.length; m >= offset; --m) {
if (shownMenus[m]) menusContainer.removeChild(shownMenus[m]);
}
shownMenus.splice(offset, shownMenus.length - offset);
};
module.exports = {
"menus": menus,
"makeMenu": makeMenu,
"constructMenu": constructMenu,
"showMenu": showMenu,
"hideMenus": hideMenus
};
+141
View File
@@ -0,0 +1,141 @@
var controllerTypes = [
"desktop",
"mobile",
"console"
];
class Controller {
constructor (type, options = {}) {
if (controllerTypes.indexOf(type) < 0) return new Error(
"Controller type must be \"desktop\", \"mobile\" or \"console\". "
);
this.type = type;
this.mappings = {};
this.actions = {};
switch (this.type) {
case "desktop":
if (options.domElement) {
this.domElement = options.domElement;
} else {
this.domElement = document.querySelector(":root");
}
break;
case "mobile":
if (options.domElements) {
this.domElements = options.domElements;
} else {
this.domElements = {
"main": document.querySelector(":root")
};
}
break;
case "console":
if (!options.gamepad) return new Error("A gamepad object must be passed. ");
this.gamepad = options.gamepad;
break;
default:
return null;
}
}
registerMapping (mapping, action) {
this.mappings[mapping] = action;
}
registerAction (action, callback) {
this.actions[action] = callback;
}
unregisterMapping (mapping) {
delete this.mappings[mapping];
}
unregisterAction (action) {
delete this.actions[action];
}
grab () {
switch (this.type) {
case "desktop":
this.domElement.requestPointerLock();
this.domElement.onkeyup = this.domElement.onkeydown = processKeyEvent.bind(this);
this.domElement.onmousemove = this.domElement.onmousedown = this.domElement.onmouseup = processMouseEvent.bind(this);
break;
default:
}
}
release () {
switch (this.type) {
case "desktop":
document.exitPointerLock();
this.domElement.onkeyup = this.domElement.onkeydown = null;
this.domElement.onmousemove = null;
this.domElement.onmousedown = this.domElement.onmouseup = null;
break;
default:
}
}
}
var processKeyEvent = function (event) {
var mapping = this.mappings[event.code];
if (!mapping) return;
let eventType;
switch (event.type) {
case "keydown":
eventType = "down";
break;
case "keyup":
eventType = "up";
break;
default:
}
var action = this.actions[mapping];
if (typeof action == "function") action(eventType);
};
var processMouseEvent = function (event) {
let eventType;
let mappingName;
let movement;
switch (eventType) {
case "mousedown":
eventType = "down";
mappingName = "MouseDown" + event.which;
break;
case "mousemove":
eventType = "move";
mappingName = "MouseMove";
movement = [event.movementX, event.movementY];
break;
case "mouseup":
eventType = "up";
mappingName = "MouseUp" + event.which;
break;
default:
}
var mapping = this.mappings[mappingName];
if (!mapping) return;
var action = this.actions[mapping];
if (typeof action == "function") action(((eventType == "move") ? movement : eventType));
};
module.exports = {
"Controller": Controller
};
global.core.on("pre-init", function () {
global.core.emit("input-init");
});
+358
View File
@@ -0,0 +1,358 @@
const networkClock = 1000 / 16;
var allowedIDCharacters = "0123456789ABCDEF";
var tokenCharacters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._-";
var generateAccessToken = function () {
var token = "";
for (var c = 0; c < 64; c++) {
token += tokenCharacters[
Math.floor(
Math.random() * tokenCharacters.length
)
];
}
return token;
};
var initMatrixClient = function (baseURL, mxID, withCrypto = false) {
return new Promise(function (resolve, reject) {
var matrixAccessToken = localStorage.getItem("matrix_access_token");
if (!matrixAccessToken) {
matrixAccessToken = generateAccessToken();
localStorage.setItem("matrix_access_token", matrixAccessToken);
}
var matrixClient = global.matrixcs.createClient({
"baseUrl": baseURL,
"accessToken": matrixAccessToken,
"userId": mxID,
"deviceId": "XVoxel"
});
module.exports.matrixClient = matrixClient;
resolve(matrixClient);
if (withCrypto) {
matrixClient.initCrypto().then(function () {
}).catch(console.error);
}
});
};
var loginToMatrix = function (username, password) {
return new Promise(function (resolve, reject) {
if (!("matrixClient" in module.exports)) return reject(new Error("Matrix client hasn't been initialized yet"));
module.exports.matrixClient.loginWithPassword(username, password).then(function (result) {
var matrixAccessToken = module.exports.matrixClient.getAccessToken();
localStorage.setItem("matrix_access_token", matrixAccessToken);
resolve(result);
}).catch(reject);
});
};
var startMatrixClient = function () {
module.exports.matrixClient.startClient();
module.exports.matrixClient.on("sync", function (state, previousState, response) {
if (state === "PREPARED") {
var buttonReadyInterval = setInterval(function () {
var mxWJBtn = document.querySelector("#matrixworldjoin");
if (!mxWJBtn) return;
mxWJBtn.disabled = false;
clearInterval(buttonReadyInterval);
}, 256);
}
});
};
var createWorldRoom = function (name) {
return new Promise(function (resolve, reject) {
module.exports.matrixClient.createRoom({
"name": name,
"visibility": "private",
"topic": "A Voxel world",
"creation_content": {
"type": "m.world.voxel"
}
}).then(resolve).catch(reject);
});
};
var getWorldRooms = function () {
var rooms = module.exports.matrixClient.getRooms();
if (!rooms) return [];
return rooms.filter(room => room.getType() == "m.world.voxel");
};
var syncWorldFromMatrixRoom = function (room) {
return new Promise(function (resolve, reject) {
module.exports.matrixClient.getStateEvent(room.roomId, "m.world.voxel", "save").then(function (event) {
fetch(module.exports.matrixClient.mxcUrlToHttp(event["save_uri"])).then(function (response) {
response.arrayBuffer().then(function (arrayBuffer) {
global.openSave(arrayBuffer).then(function (loadedWorlds) {
for (var worldName in loadedWorlds) {
if (loadedWorlds.hasOwnProperty(worldName)) {
global.worlds[worldName] = loadedWorlds[worldName];
}
}
resolve(global.worlds[room.name]);
}).catch(reject);
}).catch(reject);
}).catch(reject);
}).catch(reject);
});
};
var syncWorldToMatrixRoom = function (room) {
return new Promise(function(resolve, reject) {
global.makeSave().then(function (archive) {
module.exports.matrixClient.uploadContent(archive, {
"name": room.name + ".zip",
"type": "application/zip"
}).then(function (response) {
module.exports.matrixClient.sendStateEvent(room.roomId, "m.world.voxel", {
"save_uri": response.content_uri
}, "save").then(resolve).catch(reject);
}).catch(reject);
}).catch(reject);
});
};
var connectMatrix = function (room) {
return new Promise(function (resolve, reject) {
var groupCall = module.exports.matrixClient.getGroupCallForRoom(room.roomId);
if (!groupCall) {
return module.exports.matrixClient.createGroupCall(
room.roomId, global.matrixcs.GroupCallType["Voice"],
false, global.matrixcs.GroupCallIntent["Room"], true
).then(function (call) {
call.initWithAudioMuted = true;
call.initWithVideoMuted = true;
call.setMicrophoneMuted(true);
call.enter();
resolve(call);
}).catch(console.error);
}
groupCall.initWithAudioMuted = true;
groupCall.initWithVideoMuted = true;
groupCall.setMicrophoneMuted(true);
groupCall.enter();
resolve(groupCall);
});
};
if (localStorage.getItem("matrix_is_connected")) {
initMatrixClient(
localStorage.getItem("matrix_baseurl"),
localStorage.getItem("matrix_mxid")
).then(function (matrixClient) {
module.exports.matrixClient = matrixClient;
startMatrixClient();
}).catch(function (error) {
console.error(error);
localStorage.removeItem("matrix_is_connected");
});
}
var connectRTC = function (options) {
var randomID = (options.username || "Guest") + "-";
for (var c = 0; c < 16; c++) {
randomID += allowedIDCharacters[
Math.floor(
Math.random() * allowedIDCharacters.length
)
];
}
var peerNetwork = new global.peer.default(randomID, {
"host": options.host,
"port": options.port,
"path": options.path
});
return peerNetwork;
};
var connect = function (url) {
try {
var connectionURL = new URL(url);
} catch (error) {
global.throwError(error);
}
var splitPathName = connectionURL.pathname.split(/[\/]/);
var pathNameParts = splitPathName[2].split("@");
if (pathNameParts.length > 1) {
var pathNameCredentials = pathNameParts.split(":");
var pathNameUsername = pathNameCredentials[0];
if (pathNameCredentials.length > 1) {
var pathNamePassword = pathNameCredentials[1];
}
var pathNameConnectionDataIndex = 1;
} else {
var pathNameConnectionDataIndex = 0;
}
var pathNameConnectionData = pathNameParts[pathNameConnectionDataIndex].split(":");
var pathNameAddress = pathNameConnectionData[0];
if (pathNameConnectionData.length > 1) {
var pathNamePort = pathNameConnectionData[1];
}
var pathNamePath = "/" + splitPathName.slice(3).join("/");
switch (connectionURL.protocol) {
case "rtc:":
return connectRTC({
"host": pathNameAddress,
"port": pathNamePort || 443,
"path": pathNamePath || "/",
"username": pathNameUsername || "Guest",
"password": pathNamePassword || null
});
break;
case "ws:":
break;
case "wss:":
break;
case "http:":
break;
case "https:":
break;
default:
}
};
module.exports = {
"initMatrixClient": initMatrixClient,
"loginToMatrix": loginToMatrix,
"startMatrixClient": startMatrixClient,
"createWorldRoom": createWorldRoom,
"getWorldRooms": getWorldRooms,
"connectMatrix": connectMatrix,
"connect": connect,
"menus": {
"play": {
"elements": [
{
"type": "button",
"label": "Multiplayer",
"action": "open-menu",
"action-args": ["serversel", 2]
}
]
},
"serversel": {
"elements": [
{
"type": "text",
"id": "serveraddressinput",
"label": global.locales.getRawString(global.currentLanguage, "play.multiplayer.serveraddressinput.label"),
"placeholder": global.locales.getRawString(global.currentLanguage, "play.multiplayer.serveraddressinput.placeholder"),
"value": "",
"action": "run",
"runnable": function (event) {
var serverConnectButton = global.document.getElementById("serverconnectbutton");
if (event.path[0].value.length < 1) {
serverConnectButton.disabled = true;
} else {
try {
new URL(event.path[0].value);
serverConnectButton.disabled = false;
} catch (e) {
serverConnectButton.disabled = true;
}
}
}
},
{
"type": "button",
"id": "serverconnectbutton",
"label": global.locales.getRawString(global.currentLanguage, "play.multiplayer.serverconnectbutton.label"),
"disabled": true,
"action": "run",
"runnable": function (event) {
var serverAddressInputBox = global.document.getElementById("serveraddressinput");
connect(serverAddressInputBox.value);
}
},
{
"type": "button",
"id": "matrixworldjoin",
"label": global.locales.getRawString(global.currentLanguage, "play.multiplayer.loadmatrixworldsbutton.label"),
"disabled": true,
"action": "run",
"runnable": function (event) {
for (var e = module.exports.menus["serversel"].elements.length - 1; e >= 0; e--) {
var menuElement = module.exports.menus["serversel"].elements[e];
if (("classes" in menuElement) && menuElement.classes.indexOf("mxworldjoinbtn") > -1) module.exports.menus["serversel"].elements.splice(e, 1);
}
var matrixWorldRooms = getWorldRooms();
for (var r = 0; r < matrixWorldRooms.length; r++) {
var matrixWorldRoom = matrixWorldRooms[r];
var menuEntry = {
"type": "button",
"label": global.locales.getFormattedString(
global.currentLanguage,
"play.singleplayer.openworld.label",
{
"WORLD_NAME": matrixWorldRoom.name
}
),
"action": "run",
"runnable": (function (event) {
syncWorldFromMatrixRoom(this).then((function (world) {
global.worlds[this.name] = world;
global.startGame(0, this.name);
}).bind(this)).catch(global.throwError);
global.menu.hideMenus(0);
}).bind(matrixWorldRoom),
"classes": [
"mxworldjoinbtn"
]
};
module.exports.menus["serversel"].elements.push(menuEntry);
}
global.menu.hideMenus(2);
global.menu.menus["serversel"] = global.menu.constructMenu("serversel", module.exports.menus["serversel"]);
global.menu.showMenu("serversel", 2);
}
}
]
}
}
};
+37
View File
@@ -0,0 +1,37 @@
class Renderer extends global.three.WebGLRenderer {
constructor (options = {}) {
super(options);
// if (options.autoResize) this.autoResize = options.autoResize;
// if (options.noAutoResize) this.autoResize = false;
//
// if (this.domElement && this.domElement.parentElement) {
// this.domElement.parentElement.addEventListener("resize", function (event) {
// if (this.autoResize) this.setSize(this.domElement.clientWidth, this.domElement.clientHeight);
// });
// }
}
}
class PerspectiveCamera extends global.three.PerspectiveCamera {
constructor (...options) {
super(...options);
}
get fieldOfView () {
return this.fov;
}
set fieldOfView (value) {
this.fov = value;
this.updateProjectionMatrix();
}
}
module.exports = {
"Renderer": Renderer,
"PerspectiveCamera": PerspectiveCamera
};
global.core.on("pre-init", function () {
global.core.emit("render-init");
});
+169
View File
@@ -0,0 +1,169 @@
class ResourcePack {
constructor (data) {
this.name = data.name;
this.description = data.description;
this.meta = data.meta;
this.models = data.models || new global.Map();
this.textures = data.textures || new global.Map();
this.sounds = new global.Map();
}
static loadFromZIP (zipBuffer) {
if (!zipBuffer) return Promise.reject(new Error("Missing argument zipBuffer. "));
return new Promise(function (resolve, reject) {
global.fflate.unzip(new Uint8Array(zipBuffer), {}, function (error, data) {
if (error) return reject(error);
if (!data["pack.json"]) return reject(new Error("pack.json not found in zip file. "));
let packMeta;
try {
packMeta = JSON.parse(global.fflate.strFromU8(data["pack.json"]));
} catch (err) {
return reject(err);
}
var packData = readPackMeta(packMeta, data);
packData.meta = packMeta;
var resourceLoadings = [];
resourceLoadings.push(loadU8Textures(packMeta, data).then(function (textureMap) {
packData.textures = textureMap;
}).catch(reject));
resourceLoadings.push(loadU8Models(packMeta, data).then(function (modelMap) {
packData.models = modelMap;
}).catch(reject));
Promise.all(resourceLoadings).then(function () {
var resourcePack = new ResourcePack(packData);
global.core.emit("resourcepack-load", resourcePack);
resolve(resourcePack);
}).catch(reject);
});
});
}
}
var readPackMeta = function (packMeta, packArchive) {
var pack = {
"name": packMeta.name,
"description": packMeta.description
};
return pack;
};
var loadU8Textures = function (packMeta, packData) {
return new Promise(function (resolve, reject) {
var textureMap = new global.Map();
var textureLoadings = [];
var textureMeta = packMeta.textures;
for (var textureName in textureMeta) {
if (textureMeta.hasOwnProperty(textureName)) {
var textureData = textureMeta[textureName];
if (textureData.path) {
var splitPath = textureData.path.split(/[\/\.]+/g);
var extension = splitPath[splitPath.length - 1].toLowerCase();
if (extension == "jpg") extension = "jpeg";
if ((["png", "jpeg", "webp", "gif", "apng", "avif"]).indexOf(extension) > -1) {
var type = "image";
} else if ((["mp4", "mkv", "ogg", "webm"]).indexOf(extension) > -1) {
var type = "video";
}
var mimeType = type + "/" + extension;
if (!packData[textureData.path]) reject(new Error("Texture doesn't exist at " + textureData.path + ". "));
var textureBind = {
"name": textureName
};
textureLoadings.push(new Promise((function(res, rej) {
var imageData = packData[textureData.path];
var imageBlob = new Blob([imageData.buffer], {"type": mimeType});
var imageObjectURL = URL.createObjectURL(imageBlob);
var texture = new global.three.Texture();
var image = new global.Image();
texture.minFilter = global.three.NearestFilter;
texture.magFilter = global.three.NearestFilter;
image.onload = (function () {
texture.image = image;
texture.needsUpdate = true;
var data = {
"map": texture
};
textureMap.set(this.name, data);
res(data);
}).bind(textureBind);
image.src = imageObjectURL;
}).bind(textureBind)));
} else if (textureData.texture) {
var data = {
};
textureMap.set(textureName, data);
textureLoadings.push(Promise.resolve(data));
}
}
}
Promise.all(textureLoadings).then(function (textures) {
resolve(textureMap);
}).catch(reject);
});
};
var loadU8Models = function (packMeta, packData) {
return new Promise(function (resolve, reject) {
var modelMap = new global.Map();
var modelLoadings = [];
var modelMeta = packMeta.models;
for (var modelName in modelMeta) {
if (modelMeta.hasOwnProperty(modelName)) {
var modelData = modelMeta[modelName];
var modelString = global.fflate.strFromU8(packData[modelData.path]);
var modelJSON = JSON.parse(modelString);
modelMap.set(modelName, modelJSON);
modelLoadings.push(Promise.resolve(modelJSON));
}
}
Promise.all(modelLoadings).then(function (models) {
resolve(modelMap);
}).catch(reject);
});
};
module.exports = {
"ResourcePack": ResourcePack
};
+832
View File
@@ -0,0 +1,832 @@
var neighborData = [
{
"position": [-1, 0, 0],
"corners": [
[0, 0, 0, 0, 0],
[0, 0, 1, 1, 0],
[0, 1, 0, 0, 1],
[0, 1, 1, 1, 1]
]
},
{
"position": [1, 0, 0],
"corners": [
[1, 0, 1, 0, 0],
[1, 0, 0, 1, 0],
[1, 1, 1, 0, 1],
[1, 1, 0, 1, 1]
]
},
{
"position": [0, -1, 0],
"corners": [
[0, 0, 0, 0, 1],
[1, 0, 0, 1, 1],
[0, 0, 1, 0, 0],
[1, 0, 1, 1, 0]
]
},
{
"position": [0, 1, 0],
"corners": [
[0, 1, 1, 0, 0],
[1, 1, 1, 1, 0],
[0, 1, 0, 0, 1],
[1, 1, 0, 1, 1]
]
},
{
"position": [0, 0, -1],
"corners": [
[1, 0, 0, 0, 0],
[0, 0, 0, 1, 0],
[1, 1, 0, 0, 1],
[0, 1, 0, 1, 1]
]
},
{
"position": [0, 0, 1],
"corners": [
[0, 0, 1, 0, 0],
[1, 0, 1, 1, 0],
[0, 1, 1, 0, 1],
[1, 1, 1, 1, 1]
]
}
];
var timePalette = {
"21600": 0x081632, // Marine Blue (#081632)
"25200": 0xFF7656,
"28800": 0xBDE4F5,
"61200": 0xBDE4F5,
"64800": 0xFA88AF,
"68400": 0x081632
};
var textureData = {
"resolution": [16, 16],
"size": [256, 256],
"textures": {
}
};
class World extends global.three.Scene {
constructor (parameters) {
super();
this.generator = parameters.generator || "flat";
this.chunks = new global.Map();
this.chunkSize = parameters.chunkSize || [16, 16, 16];
this.background = new global.three.Color(0xBDE4F5);
this.ambientLight = new global.three.AmbientLight(0xFFFFFF, 1);
this.directionalLight = new global.three.DirectionalLight(0xFFFFFF, 1);
this.directionalLight.position.set(1, 1, 1);
this.add(this.ambientLight);
this.add(this.directionalLight);
this.worker = new global.Worker("./modules/world_worker.js");
this.callbackObjects = {};
global.core.on("resourcepack-load", (function (pack) {
var textureData = {
"resolution": pack.meta.textures["block-atlas"].size,
"size": pack.meta.textures["block-atlas"].totalSize,
"textures": pack.meta.textures
};
this.worker.postMessage({
"command": "config",
"arguments": {
"textureData": textureData
}
});
this.chunks.forEach((chunk, chunkID) => {
chunk.material.map = pack.textures.get("block-atlas").map;
});
}).bind(this));
var resourcePackNames = Object.keys(global.resourcePacks);
if (resourcePackNames.length > 0) {
var pack = global.resourcePacks[resourcePackNames[0]];
var textureData = {
"resolution": pack.meta.textures["block-atlas"].size,
"size": pack.meta.textures["block-atlas"].totalSize,
"textures": pack.meta.textures
};
this.worker.postMessage({
"command": "config",
"arguments": {
"world": {
"chunkSize": this.chunkSize
},
"textureData": textureData
}
});
}
this.worker.postMessage({
"command": "create-world",
"arguments": {
"uuid": this.uuid
}
});
this.worker.onmessage = (function (message) {
var event = message.data["event"];
var data = message.data["data"];
var callbackID = data["callbackID"];
var callbackObject = this.callbackObjects[callbackID];
switch (event) {
case "generated":
var newChunk = new Chunk(this.chunkSize, this);
for (var b = 0; b < data.blocks.length; b++) {
var block = data.blocks[b];
if (!block) continue;
newChunk.blocks[b] = block;
}
this.setChunk(newChunk, callbackObject.position);
callbackObject.resolve(newChunk);
break;
case "constructed":
var properties = data.properties;
var chunk = callbackObject.chunk;
chunk.geometry.setAttribute("position", new global.three.Float32BufferAttribute(properties["positions"], 3));
chunk.geometry.setAttribute("normal", new global.three.Float32BufferAttribute(properties["normals"], 3));
chunk.geometry.setAttribute("uv", new global.three.Float32BufferAttribute(properties["uvs"], 2));
chunk.geometry.setIndex(properties["indexes"]);
chunk.geometry.computeBoundingSphere();
var resourcePackNames = Object.keys(global.resourcePacks);
if (resourcePackNames.length > 0) {
var pack = global.resourcePacks[resourcePackNames[0]];
chunk.material.map = pack.textures.get("block-atlas").map;
}
// this.worker.postMessage({
// "command": "set-body",
// "arguments": {
// "uuid": chunk.uuid,
// "position": [
// chunk.position.x,
// chunk.position.y,
// chunk.position.z
// ],
// "shape": {
// "vertices": chunk.geometry.attributes["position"].array,
// "indices": chunk.geometry.index.array
// },
// "type": "static"
// }
// });
callbackObject.resolve(chunk);
break;
case "simulation-stepped":
for (var uuid in data.updates) {
if (data.updates.hasOwnProperty(uuid)) {
var meshUpdate = data.updates[uuid];
var mesh = this.children.find(function (m) {
return m.uuid === uuid;
});
if (!mesh) continue;
mesh.position.set(
meshUpdate.position[0],
meshUpdate.position[1],
meshUpdate.position[2]
);
mesh.quaternion.set(
meshUpdate.quaternion[0],
meshUpdate.quaternion[1],
meshUpdate.quaternion[2],
meshUpdate.quaternion[3]
);
}
}
callbackObject.resolve(data.updates);
break;
default:
}
}).bind(this);
}
addChunk (chunk) {
if (!chunk) return new Error("First argument is not a chunk. ");
if (!(chunk instanceof Chunk)) return new Error("First argument is not an instance of Chunk. ");
this.add(chunk);
var blockIndices = [];
for (var b = 0; b < chunk.blocks.length; b++) {
if (chunk.blocks[b]) blockIndices.push(b);
}
// this.worker.postMessage({
// "command": "put-voxels",
// "arguments": {
// "worldUUID": this.uuid,
// "chunkUUID": chunk.uuid,
// "chunkPosition": chunk.position,
// "indices": blockIndices
// }
// });
return chunk;
}
setChunk (chunk, position) {
if (!chunk) return new Error("First argument is not a chunk. ");
if (!(chunk instanceof Chunk)) return new Error("First argument is not an instance of Chunk. ");
if (!position) return new Error("Second argument is not a position. ");
var worldPosition = [
this.chunkSize[0] * position[0],
this.chunkSize[1] * position[1],
this.chunkSize[2] * position[2]
];
if (this.chunks.has(position.join(":"))) {
var oldChunk = this.chunks.get(position.join(":"));
var voxelIndices = [];
for (var b = 0; b < oldChunk.blocks.length; b++) {
if (oldChunk.blocks[b]) voxelIndices.push(b);
}
// this.worker.postMessage({
// "command": "remove-voxels",
// "arguments": {
// "worldUUID": this.uuid,
// "chunkUUID": oldChunk.uuid
// }
// });
}
var blockIndices = [];
for (var b = 0; b < chunk.blocks.length; b++) {
if (chunk.blocks[b]) blockIndices.push(b);
}
// this.worker.postMessage({
// "command": "put-voxels",
// "arguments": {
// "worldUUID": this.uuid,
// "chunkUUID": chunk.uuid,
// "chunkPosition": position,
// "indices": blockIndices
// }
// });
chunk.position.set(
worldPosition[0],
worldPosition[1],
worldPosition[2]
);
// this.worker.postMessage({
// "command": "set-body",
// "arguments": {
// "uuid": chunk.uuid,
// "position": worldPosition
// }
// });
return this.chunks.set(position.join(":"), chunk);
}
addEntity (entity) {
if (!entity) return new Error("First argument is not an entity. ");
if (!(entity instanceof Entity)) return new Error("First argument is not an instance of Entity. ");
this.add(entity);
this.worker.postMessage({
"command": "add-body",
"arguments": {
"worldUUID": this.uuid,
"bodyUUID": entity.uuid,
"type": "dynamic"
}
});
return entity;
}
removeChunk (position) {
if (!position) return new Error("First argument is not a position. ");
if (this.chunks.has(position.join(":"))) return this.chunks.delete(position.join(":"));
return false;
}
generateChunk (position, data) {
return new Promise((function (resolve, reject) {
var callbackID = "G" + Math.round(Math.random() * 65536);
this.callbackObjects[callbackID] = {
"position": position,
"resolve": resolve,
"reject": reject
};
this.worker.postMessage({
"command": "generate",
"arguments": {
"callbackID": callbackID,
"position": position,
"generator": this.generator
}
});
}).bind(this));
}
constructChunk (position) {
return new Promise((function (resolve, reject) {
var callbackID = "C" + Math.round(Math.random() * 65536);
this.callbackObjects[callbackID] = {
"chunk": this.chunks.get(position.join(":")),
"position": position,
"resolve": resolve,
"reject": reject
};
var neighbors = [];
for (var n = 0; n < neighborData.length; n++) {
var neighborPosition = addPositions(position, neighborData[n].position);
var neighborKey = neighborPosition.join(":");
if (this.chunks.has(neighborKey)) {
neighbors.push(this.chunks.get(neighborKey).toJSON());
} else {
neighbors.push(null);
}
}
this.worker.postMessage({
"command": "construct",
"arguments": {
"callbackID": callbackID,
"position": position,
"chunk": this.chunks.get(position.join(":")).toJSON(),
"neighbors": neighbors
}
});
}).bind(this));
}
stepSimulation (delta) {
return new Promise((function (resolve, reject) {
var callbackID = "C" + Math.round(Math.random() * 65536);
this.callbackObjects[callbackID] = {
"resolve": resolve,
"reject": reject
};
this.worker.postMessage({
"command": "step-simulation",
"arguments": {
"callbackID": callbackID,
"uuid": this.uuid,
"delta": delta
}
});
}).bind(this));
}
toJSON () {
var chunksObject = {};
this.chunks.forEach(function (value, key) {
chunksObject[key] = value;
});
return {
"generator": this.generator,
"chunks": chunksObject
};
}
}
class Chunk extends global.three.Mesh {
constructor (size = [16, 16, 16], world) {
super(
new global.three.BufferGeometry(),
new global.three.MeshStandardMaterial({
"side": global.three.DoubleSide,
"transparent": true,
"alphaTest": 0.5
})
);
this._size = size;
this.blocks = new global.Array(size[0] * size[1] * size[2]);
if (world instanceof World) {
this.world = world;
// world.worker.postMessage({
// "command": "create-body",
// "arguments": {
// "uuid": this.uuid,
// "type": "static"
// }
// });
}
}
get size () {
return this._size;
}
setBlock (position, block) {
if (!position) return new Error("First argument is not a position. ");
if (!block) return new Error("Second argument is not a block. ");
if (!(block instanceof Block)) return new Error("Second argument is not an instance of Block. ");
var blockIndex = computeBlockIndex(this.size, position);
if (this.world) {
// this.world.worker.postMessage({
// "command": "remove-body",
// "arguments": {
// "uuid": this.uuid + ";" + position.join(":")
// }
// });
if (!this.blocks[blockIndex]) {
this.world.worker.postMessage({
"command": "create-body",
"arguments": {
"uuid": this.uuid + ";" + blockIndex,
"type": "static",
"position": [
this.position.x + position[0],
this.position.y + position[1],
this.position.z + position[2],
]
}
});
}
}
this.blocks[blockIndex] = block;
}
removeBlock (position) {
if (!position) return new Error("First argument is not a position. ");
var blockIndex = computeBlockIndex(this.size, position);
delete this.blocks[blockIndex];
if (this.world) {
this.world.worker.postMessage({
"command": "remove-body",
"arguments": {
"worldUUID": this.world.uuid,
"bodyUUID": this.uuid + ";" + blockIndex
}
});
this.world.worker.postMessage({
"command": "destroy-body",
"arguments": {
"uuid": this.uuid + ";" + blockIndex
}
});
}
}
toJSON () {
return {
"size": this.size,
"blocks": this.blocks
};
}
}
class Block extends global.Array {
constructor (type, data = {}) {
super();
if (!type) return new Error("Block type must be non-null. ");
this[0] = type;
this[1] = new global.Map();
for (var key in data) {
if (data.hasOwnProperty(key)) {
var value = data[key];
this[1].set(key, value);
}
}
}
get type () {
return this[0];
}
get tags () {
return this[1];
}
setTagValue (tag, value) {
return this[1].set(tag, value);
}
removeTagValue (tag) {
if (this[1].has(tag)) return this[1].delete(tag);
return false;
}
toJSON () {
var tagsObject = {};
this[1].forEach(function (value, key) {
tagsObject[key] = value;
});
return {
"type": this[0],
"tags": tagsObject
};
}
}
class Entity extends global.three.Mesh {
constructor (type, world) {
super(
new global.three.BoxBufferGeometry(0.8, 0.8, 0.8),
new global.three.MeshStandardMaterial({
"side": global.three.DoubleSide,
"transparent": true,
"alphaTest": 0.5,
"opacity": 0.0,
"wireframe": true
})
);
this.type = type;
this.parts = {};
this._texture = null;
for (var p = 0; p < global.resourcePacks.length; p++) {
var pack = global.resourcePacks[p];
if (pack.models.has(this.type) && Object.keys(this.parts).length < 1) {
this.model = pack.models.get(this.type);
}
if (pack.textures.has(this.type) && !this.material.map) {
this.texture = pack.textures.get(this.type).map;
}
}
if (world instanceof World) {
world.worker.postMessage({
"command": "create-body",
"arguments": {
"uuid": this.uuid,
"mass": 16,
"shape": {
"vertices": this.geometry.attributes["position"].array,
"indices": this.geometry.index.array
}
}
});
}
}
get texture () {
if (this._texture) return this._texture;
for (var partName in this.parts) {
if (this.parts.hasOwnProperty(partName)) {
var part = this.parts[partName];
if (!part.material || !part.material.map) continue;
return part.material.map;
}
}
return null;
}
set texture (texture) {
this._texture = texture;
for (var partName in this.parts) {
if (this.parts.hasOwnProperty(partName)) {
var part = this.parts[partName];
if (part.isGroup) continue;
part.material.map = texture;
}
}
}
set model (model) {
this.geometry = new global.three.BoxBufferGeometry(
model.hitbox[0],
model.hitbox[1],
model.hitbox[2]
);
for (var partName in model.parts) {
if (model.parts.hasOwnProperty(partName)) {
var part = model.parts[partName];
let partObject;
switch (part.type) {
case "group":
partObject = new global.three.Group();
break;
case "geometry":
partObject = new global.three.Mesh(
new global.three.BoxBufferGeometry(
part.geometry[0],
part.geometry[1],
part.geometry[2]
),
new global.three.MeshStandardMaterial({
"side": global.three.FrontSide,
"transparent": true,
"alphaTest": 0.5,
"map": this.texture
})
);
if ("uvMap" in part) {
var uvArray = partObject.geometry.attributes["uv"].array;
for (var f = 0; f < part.uvMap.length; f++) {
var faceMap = part.uvMap[f];
var firstUVIndex = f * 8;
uvArray[firstUVIndex + 0] = faceMap[0][0];
uvArray[firstUVIndex + 1] = faceMap[1][1];
uvArray[firstUVIndex + 2] = faceMap[1][0];
uvArray[firstUVIndex + 3] = faceMap[1][1];
uvArray[firstUVIndex + 4] = faceMap[0][0];
uvArray[firstUVIndex + 5] = faceMap[0][1];
uvArray[firstUVIndex + 6] = faceMap[1][0];
uvArray[firstUVIndex + 7] = faceMap[0][1];
}
}
break;
default:
}
if (part.position) partObject.position.set(
part.position[0],
part.position[1],
part.position[2]
);
var modelPart = this.parts[partName] = partObject;
}
}
for (var partName in model.parts) {
if (model.parts.hasOwnProperty(partName)) {
var part = model.parts[partName];
if (part.children) {
for (var c = 0; c < part.children.length; c++) {
this.parts[partName].add(this.parts[part.children[c]]);
}
}
}
}
if ("root" in this.parts) this.add(this.parts["root"]);
}
setPosition (position) {
this.position.set(
position[0],
position[1],
position[2]
);
if (this.parent instanceof World) {
this.parent.worker.postMessage({
"command": "set-body",
"arguments": {
"uuid": this.uuid,
"position": position
}
});
}
}
}
var computeBlockIndex = function (chunkSize, blockPosition) {
var x = blockPosition[0] % chunkSize[0];
var z = blockPosition[2] % chunkSize[2];
var y = blockPosition[1] % chunkSize[1];
return (x * (chunkSize[1] * chunkSize[2])) + y + (z * chunkSize[1]);
};
var computeBlockPosition = function (chunkSize, blockIndex) {
var blockPosition = [0, 0, 0];
var subtractedIndex = 0 + blockIndex;
blockPosition[1] = subtractedIndex % chunkSize[1];
subtractedIndex -= blockPosition[1];
blockPosition[2] = (subtractedIndex / chunkSize[1]) % chunkSize[2];
subtractedIndex -= blockPosition[2] * chunkSize[1];
blockPosition[0] = (subtractedIndex / (chunkSize[1] * chunkSize[2])) % chunkSize[0];
subtractedIndex -= blockPosition[0] * chunkSize[0];
return blockPosition;
};
var splitRGBComponents = function (hex) {
var subtracted = hex;
var blue = hex % 0x100;
subtracted -= blue;
var green = (subtracted / 0x100) % 0x100;
subtracted -= subtracted * 0x100;
var red = (subtracted / 0x10000) % 0x100;
subtracted -= subtracted * 0x10000;
return [red, green, blue];
};
var computeTimeColor = function (palette, time) {
var times = Object.keys(palette);
if (times.length == 1) return palette[times[0]];
var seconds = ((time[0] * 3600) + (time[1] * 60) + time[2]);
var timesBefore = times.filter(function (timeFloat) {
return parseFloat(timeFloat) <= seconds;
});
var timesAfter = times.filter(function (timeFloat) {
return parseFloat(timeFloat) > seconds;
});
let startTime, startTimeFloat;
let endTime, endTimeFloat;
if (timesBefore.length < 1) {
startTime = times[times.length - 1];
startTimeFloat = parseFloat(times[times.length - 1]) - (24 * 3600);
}
if (timesAfter.length < 1) {
endTime = times[0];
endTimeFloat = (24 * 3600) + parseFloat(times[0]);
}
var startComponents = splitRGBComponents(palette[startTime]);
var endComponents = splitRGBComponents(palette[endTime]);
var redDiff = endComponents[0] - startComponents[0];
var greenDiff = endComponents[1] - startComponents[1];
var blueDiff = endComponents[2] - startComponents[2];
progress = (seconds - startTimeFloat) / (endTimeFloat - startTimeFloat);
return (Math.round(startComponents[0] + (progress * redDiff)) * 65536)
+ (Math.round((startComponents[1] + (progress * greenDiff))) * 256)
+ Math.round(startComponents[2] + (progress * blueDiff));
};
var addPositions = function (positionA, positionB) {
var position = new Array(positionA.length);
for (var p = 0; p < position.length; p++) {
position[p] = positionA[p] + positionB[p];
}
return position;
};
module.exports = {
"World": World,
"Chunk": Chunk,
"Block": Block,
"Entity": Entity,
"utils": {
"computeBlockIndex": computeBlockIndex,
"computeBlockPosition": computeBlockPosition,
"splitRGBComponents": splitRGBComponents,
"computeTimeColor": computeTimeColor,
"addPositions": addPositions
}
};
+772
View File
@@ -0,0 +1,772 @@
importScripts("../lib/improved-noise.js");
importScripts("../lib/cannon-es.js");
importScripts("../lib/ammo.js");
var neighborData = [
{
"position": [-1, 0, 0],
"corners": [
[0, 0, 0, 0, 0],
[0, 0, 1, 1, 0],
[0, 1, 0, 0, 1],
[0, 1, 1, 1, 1]
]
},
{
"position": [1, 0, 0],
"corners": [
[1, 0, 1, 0, 0],
[1, 0, 0, 1, 0],
[1, 1, 1, 0, 1],
[1, 1, 0, 1, 1]
]
},
{
"position": [0, -1, 0],
"corners": [
[0, 0, 0, 0, 1],
[1, 0, 0, 1, 1],
[0, 0, 1, 0, 0],
[1, 0, 1, 1, 0]
]
},
{
"position": [0, 1, 0],
"corners": [
[0, 1, 1, 0, 0],
[1, 1, 1, 1, 0],
[0, 1, 0, 0, 1],
[1, 1, 0, 1, 1]
]
},
{
"position": [0, 0, -1],
"corners": [
[1, 0, 0, 0, 0],
[0, 0, 0, 1, 0],
[1, 1, 0, 0, 1],
[0, 1, 0, 1, 1]
]
},
{
"position": [0, 0, 1],
"corners": [
[0, 0, 1, 0, 0],
[1, 0, 1, 1, 0],
[0, 1, 1, 0, 1],
[1, 1, 1, 1, 1]
]
}
];
let worldConfig = {
"chunkSize": [16, 16, 16]
};
let textureData = {
"resolution": [16, 16],
"size": [256, 256],
"blocks": {
}
};
var tasks = {
"physics": {
"running": false,
"interval": setInterval(async function () {
if (!tasks["physics"].running && (tasks["physics"].queue.length > 0)) {
tasks["physics"].running = true;
while (tasks["physics"].queue.length > 0) {
tasks["physics"].queue[0].run(...tasks["physics"].queue[0].arguments);
tasks["physics"].queue.splice(0, 1);
}
tasks["physics"].running = false;
}
}, 256),
"queue": []
}
};
var ammoIsReady = false;
let world;
var worlds = {};
var bodies = {};
var onmessage = function (event) {
var command = event.data["command"];
var arguments = event.data["arguments"];
var callbackID = arguments["callbackID"];
switch (command) {
case "config":
if (arguments["world"]) worldConfig = arguments["world"];
textureData = arguments["textureData"];
break;
case "generate":
var generator = self.generators[arguments["generator"]];
var data = arguments["data"];
if (!generator) return postMessage({
"event": "generated",
"data": {
"callbackID": callbackID,
"blocks": []
}
});
var position = arguments["position"];
var blocks = [];
var chunkWidth = worldConfig.chunkSize[0];
var chunkHeight = worldConfig.chunkSize[1];
var chunkDepth = worldConfig.chunkSize[2];
switch (generator.type) {
case "stepped":
for (var x = 0; x < chunkWidth; x++) {
for (var z = 0; z < chunkDepth; z++) {
for (var y = 0; y < chunkHeight; y++) {
var block = generator.run([
(position[0] * chunkWidth) + x,
(position[1] * chunkHeight) + y,
(position[2] * chunkDepth) + z
], data, worldConfig.chunkSize);
var blockIndex = computeBlockIndex(
worldConfig.chunkSize,
[
x,
y,
z
]
);
if (block) blocks[blockIndex] = block;
}
}
}
break;
case "full":
var blocks = generator.run(position, data, worldConfig.chunkSize);
break;
default:
}
postMessage({
"event": "generated",
"data": {
"callbackID": callbackID,
"blocks": blocks
}
});
break;
case "construct":
var chunk = arguments["chunk"];
var neighbors = arguments["neighbors"];
postMessage({
"event": "constructed",
"data": {
"callbackID": callbackID,
"properties": construct(chunk, neighbors)
}
});
break;
case "create-world":
// worlds[arguments["uuid"]] = new CANNON.World({
// "allowSleep": arguments["allowSleep"] || true,
// "gravity": ("gravity" in arguments) ? new CANNON.Vec3(
// arguments["gravity"][0],
// arguments["gravity"][1],
// arguments["gravity"][2]
// ) : new CANNON.Vec3(0, -9.82, 0),
// "solver": new CANNON.GSSolver()
// });
var collisionConfiguration = new Ammo.btDefaultCollisionConfiguration();
var dispatcher = new Ammo.btCollisionDispatcher(collisionConfiguration);
var overlappingPairCache = new Ammo.btDbvtBroadphase();
var solver = new Ammo.btSequentialImpulseConstraintSolver();
world = new Ammo.btDiscreteDynamicsWorld(dispatcher, overlappingPairCache, solver, collisionConfiguration);
world.setGravity(new Ammo.btVector3(0, -9.82, 0));
postMessage({
"event": "world-created",
"data": {
"callbackID": callbackID
}
});
break;
case "create-body":
let bodyType;
switch (arguments["type"]) {
case "dynamic":
bodyType = CANNON.Body.DYNAMIC;
break;
case "static":
bodyType = CANNON.Body.STATIC;
break;
case "kinematic":
bodyType = CANNON.Body.KINEMATIC;
break;
default:
bodyType = CANNON.Body.DYNAMIC;
}
var bodyOptions = {
"allowSleep": arguments["allowSleep"] || true,
"fixedRotation": arguments["fixedRotation"] || false,
"mass": arguments["mass"] || 0,
"position": ("position" in arguments) ? new CANNON.Vec3(
arguments["position"][0],
arguments["position"][1],
arguments["position"][2]
) : new CANNON.Vec3(0, 0, 0),
"quaternion": ("quaternion" in arguments) ? new CANNON.Quaternion(
arguments["quaternion"][0],
arguments["quaternion"][1],
arguments["quaternion"][2],
arguments["quaternion"][3]
) : new CANNON.Quaternion(0, 0, 0, 1),
"type": bodyType,
"material": new CANNON.Material()
/*"shape": ("shape" in arguments) ? new CANNON.ConvexPolyhedron({
"vertices": (function (positions) {
var vertices = [];
for (var v = 0; v < (positions.length / 3); v++) {
var vertexOffset = v * 3;
vertices[v] = new CANNON.Vec3(
positions[vertexOffset + 0],
positions[vertexOffset + 1],
positions[vertexOffset + 2]
);
}
return vertices;
})(arguments["shape"].vertices),
"faces": (function (indices) {
var faces = [];
for (var f = 0; f < (indices.length / 3); f++) {
var faceOffset = f * 3;
faces[f] = indices.slice(faceOffset, faceOffset + 3);
}
return faces;
})(arguments["shape"].indices)
}) : new CANNON.Box(new CANNON.Vec3(1, 1, 1))*/
};
var shape = ("shape" in arguments) ? new CANNON.Trimesh(
arguments["shape"].vertices,
arguments["shape"].indices
) : new CANNON.Box(new CANNON.Vec3(1, 1, 1));
postMessage({
"event": "body-created",
"data": {
"callbackID": callbackID
}
});
bodies[arguments["uuid"]] = (shape instanceof CANNON.Trimesh) ? trimeshToPolyhedron(bodyOptions, shape) : new CANNON.Body(bodyOptions);
if (shape instanceof CANNON.Box) bodies[arguments["uuid"]].addShape(shape);
bodies[arguments["uuid"]].uuid = arguments["uuid"];
break;
case "set-body":
if ("shape" in arguments) {
var convexPolyhedronBody = trimeshToPolyhedron({}, new CANNON.Trimesh(
arguments["shape"].vertices,
arguments["shape"].indices
));
for (var s = bodies[arguments["uuid"]].shapes.length - 1; s >= 0; s--) {
bodies[arguments["uuid"]].removeShape(bodies[arguments["uuid"]].shapes[s]);
}
for (var s = 0; s < convexPolyhedronBody.shapes.length; s++) {
bodies[arguments["uuid"]].addShape(convexPolyhedronBody.shapes[s]);
}
bodies[arguments["uuid"]].updateBoundingRadius();
bodies[arguments["uuid"]].updateAABB();
/*bodies[arguments["uuid"]].shapes[0] = new CANNON.ConvexPolyhedron({
"vertices": (function (positions) {
var vertices = [];
for (var v = 0; v < (positions.length / 3); v++) {
var vertexOffset = v * 3;
vertices[v] = new CANNON.Vec3(
positions[vertexOffset + 0],
positions[vertexOffset + 1],
positions[vertexOffset + 2]
);
}
return vertices;
})(arguments["shape"].vertices),
"faces": (function (indices) {
var faces = [];
for (var f = 0; f < (indices.length / 3); f++) {
var faceOffset = f * 3;
faces[f] = indices.slice(faceOffset, faceOffset + 3);
}
return faces;
})(arguments["shape"].indices)
});*/
}
if ("position" in arguments) {
bodies[arguments["uuid"]].position.set(
arguments["position"][0],
arguments["position"][1],
arguments["position"][2]
);
bodies[arguments["uuid"]].aabbNeedsUpdate = true;
}
if ("quaternion" in arguments) {
bodies[arguments["uuid"]].quaternion.set(
arguments["quaternion"][0],
arguments["quaternion"][1],
arguments["quaternion"][2],
arguments["quaternion"][3]
);
}
break;
case "add-body":
worlds[arguments["worldUUID"]].addBody(bodies[arguments["bodyUUID"]]);
postMessage({
"event": "body-added",
"data": {
"callbackID": callbackID
}
});
break;
case "step-simulation":
worlds[arguments["uuid"]].step(arguments["delta"]);
var updates = {};
for (var b = 0; b < worlds[arguments["uuid"]].bodies.length; b++) {
var body = worlds[arguments["uuid"]].bodies[b];
updates[body.uuid] = {
"position": body.position.toArray(),
"quaternion": body.quaternion.toArray()
}
}
postMessage({
"event": "simulation-stepped",
"data": {
"callbackID": callbackID,
"updates": updates
}
});
break;
case "remove-body":
worlds[arguments["worldUUID"]].removeBody(bodies[arguments["bodyUUID"]]);
postMessage({
"event": "body-removed",
"data": {
"callbackID": callbackID
}
});
break;
case "destroy-body":
delete bodies[arguments["uuid"]];
postMessage({
"event": "body-destroyed",
"data": {
"callbackID": callbackID
}
});
break;
case "put-voxels":
tasks["physics"].queue.push({
"run": function (args) {
var worldUUID = args["worldUUID"];
var chunkUUID = args["chunkUUID"];
var chunkPosition = args["chunkPosition"];
var voxelIndices = args["indices"];
var bodyOptions = {
"mass": 0,
"type": CANNON.Body.STATIC,
"material": new CANNON.Material(),
"position": new CANNON.Vec3(
chunkPosition[0] * worldConfig.chunkSize[0],
chunkPosition[1] * worldConfig.chunkSize[1],
chunkPosition[2] * worldConfig.chunkSize[2]
)
};
var chunk = bodies[chunkUUID] = new CANNON.Body(bodyOptions);
var shapes = [];
for (var i = 0; i < voxelIndices.length; i++) {
var shape = shapes[i] = new CANNON.Box(new CANNON.Vec3(0.5, 0.5, 0.5));
var shapePosition = computeBlockPosition(worldConfig.chunkSize, voxelIndices[i]);
chunk.addShape(shape, new CANNON.Vec3(
shapePosition[0],
shapePosition[1],
shapePosition[2]
));
}
worlds[worldUUID].addBody(chunk);
},
"arguments": [arguments]
});
break;
case "remove-voxels":
tasks["physics"].queue.push({
"run": function (args) {
var worldUUID = args["worldUUID"];
var chunkUUID = args["chunkUUID"];
worlds[worldUUID].removeBody(bodies[chunkUUID]);
delete bodies[chunkUUID];
},
"arguments": [arguments]
});
break;
case "destroy-world":
delete worlds[arguments["uuid"]];
postMessage({
"event": "world-destroyed",
"data": {
"callbackID": callbackID
}
});
break;
default:
}
};
self.generators = {
"flat": {
"type": "stepped",
"run": function (position, data = {}) {
if (position[1] >= 0 && position[1] <= 5) return ["glitch", {}];
if (position[1] >= 6 && position[1] <= 57) return ["stone", {}];
if (position[1] >= 58 && position[1] <= 62) return ["dirt", {}];
if (position[1] == 63) return ["grass", {}];
}
},
"sphere": {
"type": "stepped",
"run": function (position, data = {}) {
var mustGenerate = ((position[0] ** 2) + (position[1] ** 2) + (position[2] ** 2)) <= 16 * 16;
if (mustGenerate) return ["stone", {}];
}
},
"xr-flat": {
"type": "stepped",
"run": function (position, data = {}) {
if (position[1] >= 0 && position[1] <= 1) return ["glitch", {}];
if (position[1] >= 2 && position[1] <= 4) return ["stone", {}];
if (position[1] >= 5 && position[1] <= 6) return ["dirt", {}];
if (position[1] == 7) return ["grass", {}];
}
},
"terrain": {
"type": "full",
"run": function (position, data = {}, chunkSize) {
var chunkWidth = chunkSize[0];
var chunkHeight = chunkSize[1];
var chunkDepth = chunkSize[2];
var blocks = new Array(chunkSize[0] * chunkSize[1] * chunkSize[2]),
perlin = new ImprovedNoise(),
averageY = data["averageY"] || 64;
let quality = 25;
for (var x = 0; x < chunkWidth; x++) {
for (var z = 0; z < chunkDepth; z++) {
var absoluteCoords = [
(position[0] * chunkWidth) + x,
(position[2] * chunkDepth) + z
];
var maxY = Math.round(
perlin.noise(
absoluteCoords[0] / quality,
averageY / quality,
absoluteCoords[1] / quality
) * quality
) + averageY;
for (var y = 0; y < chunkHeight; y++) {
var absoluteY = (position[1] * chunkHeight) + y;
if (absoluteY >= (position[1] * chunkHeight)
&& absoluteY <= ((position[1] * chunkHeight) + chunkHeight)) {
if (absoluteY >= 0 && absoluteY <= 3) {
blocks[computeBlockIndex(worldConfig.chunkSize, [
x, y, z
])] = ["glitch", {}];
} else if (absoluteY >= 4 && absoluteY <= (maxY - 4)) {
blocks[computeBlockIndex(worldConfig.chunkSize, [
x, y, z
])] = ["stone", {}];
} else if (absoluteY >= (maxY - 3) && absoluteY <= (maxY - 1)) {
blocks[computeBlockIndex(worldConfig.chunkSize, [
x, y, z
])] = ["dirt", {}];
} else if (absoluteY == maxY) {
blocks[computeBlockIndex(worldConfig.chunkSize, [
x, y, z
])] = ["grass", {}];
}
}
}
}
}
return blocks;
}
}
};
var construct = function (chunk, neighbors, chunkSize) {
var positions = [];
var normals = [];
var uvs = [];
var indexes = [];
let texUV = [];
for (var b = 0; b < chunk.blocks.length; b++) {
var blockPosition = computeBlockPosition(worldConfig.chunkSize, b);
if (chunk.blocks[b]) {
var type = chunk.blocks[b][0];
var blockTexData = textureData.textures[type];
for (var n = 0; n < neighborData.length; n++) {
var neighbor = neighborData[n];
var adjacentPosition = addPositions(blockPosition, neighbor.position);
let adjacentInNeighbor = false;
if (
adjacentPosition[0] < 0 || adjacentPosition[0] >= worldConfig.chunkSize[0] ||
adjacentPosition[1] < 0 || adjacentPosition[1] >= worldConfig.chunkSize[1] ||
adjacentPosition[2] < 0 || adjacentPosition[2] >= worldConfig.chunkSize[2]
) adjacentInNeighbor = true;
let hasAdjacent = true;
if (adjacentInNeighbor) {
if (!neighbors[n]) hasAdjacent = false;
var positionInNeighbor = neighborPosition(adjacentPosition, worldConfig.chunkSize);
var indexInNeighbor = computeBlockIndex(worldConfig.chunkSize, positionInNeighbor);
if (!neighbors[n] || !neighbors[n].blocks[indexInNeighbor]) hasAdjacent = false;
} else {
var blockIndex = computeBlockIndex(worldConfig.chunkSize, adjacentPosition);
if (!chunk.blocks[blockIndex]) hasAdjacent = false;
}
if (!hasAdjacent) {
var index = positions.length / 3;
if (blockTexData.sided) {
let sideMap;
for (var sm = 0; sm < blockTexData.sideMaps.length; sm++) {
if (blockTexData.sideMaps[sm].includes(n)) sideMap = sm;
}
texUV[0] = blockTexData.positions[sideMap][0] / blockTexData.sizes[sideMap][0];
texUV[1] = blockTexData.positions[sideMap][1] / blockTexData.sizes[sideMap][1];
} else {
texUV[0] = blockTexData.position[0] / blockTexData.size[0];
texUV[1] = blockTexData.position[1] / blockTexData.size[1];
}
var sideTexData = blockTexData[n];
// texUV[0] = sideTexData.end[0] - sideTexData.start[0];
// texUV[1] = sideTexData.end[1] - sideTexData.start[1];
for (var c = 0; c < neighbor.corners.length; c++) {
var corner = neighbor.corners[c];
var position = addPositions(blockPosition, corner);
positions.push(
position[0],
position[1],
position[2]
);
normals.push(
neighbor.position[0],
neighbor.position[1],
neighbor.position[2]
);
var uv = corner.slice(3, 5);
uvs.push(
(texUV[0] + uv[0]) *
textureData.resolution[0] /
textureData.size[0],
1 - (texUV[1] + 1 - uv[1]) *
textureData.resolution[1] /
textureData.size[1]
);
}
indexes.push(
index + 0, index + 1, index + 2,
index + 2, index + 1, index + 3
);
}
}
}
}
return {positions, normals, uvs, indexes};
};
var computeBlockIndex = function (chunkSize, blockPosition) {
var x = blockPosition[0] % chunkSize[0];
var z = blockPosition[2] % chunkSize[2];
var y = blockPosition[1] % chunkSize[1];
return (x * (chunkSize[1] * chunkSize[2])) + y + (z * chunkSize[1]);
};
var computeBlockPosition = function (chunkSize, blockIndex) {
var blockPosition = [0, 0, 0];
var subtractedIndex = 0 + blockIndex;
blockPosition[1] = subtractedIndex % chunkSize[1];
subtractedIndex -= blockPosition[1];
blockPosition[2] = (subtractedIndex / chunkSize[1]) % chunkSize[2];
subtractedIndex -= blockPosition[2] * chunkSize[1];
blockPosition[0] = (subtractedIndex / (chunkSize[1] * chunkSize[2])) % chunkSize[0];
subtractedIndex -= blockPosition[0] * chunkSize[0];
return blockPosition;
};
var neighborPosition = function (position, chunkSize) {
var chunkPosition = position.slice(0, 3);
if (position[0] < 0) chunkPosition[0] = chunkSize[0] + position[0];
if (position[0] >= chunkSize[0]) chunkPosition[0] = position[0] - chunkSize[0];
if (position[1] < 0) chunkPosition[1] = chunkSize[1] + position[1];
if (position[1] >= chunkSize[1]) chunkPosition[1] = position[1] - chunkSize[1];
if (position[2] < 0) chunkPosition[2] = chunkSize[2] + position[2];
if (position[2] >= chunkSize[2]) chunkPosition[2] = position[2] - chunkSize[2];
return chunkPosition;
};
var addPositions = function (positionA, positionB) {
var position = new Array(positionA.length);
for (var p = 0; p < position.length; p++) {
position[p] = positionA[p] + positionB[p];
}
return position;
};
// Thanks to https://github.com/pmndrs/cannon-es/issues/21 (I slightly modified it)
var trimeshToPolyhedron = function (bodyOptions, trimesh, upvector) {
let p1 = new CANNON.Vec3(),
p2 = new CANNON.Vec3(),
p3 = new CANNON.Vec3(),
p4 = new CANNON.Vec3(),
mp = new CANNON.Vec3(),
tmp = new CANNON.Vec3(),
e1 = new CANNON.Vec3(),
e2 = new CANNON.Vec3();
const body = new CANNON.Body(bodyOptions);
for (let i = 0; i < trimesh.indices.length / 3; i++) {
mp.set(0, 0, 0);
trimesh.getTriangleVertices(i, p1, p2, p3);
trimesh.getNormal(i, p4);
// if (upvector && p4.dot(upvector) < 0) p4.scale(-1, p4);
p4.normalize();
mp = mp.vadd(p1).vadd(p2).vadd(p3).scale(1/3);
const vertices = [
new CANNON.Vec3().copy(p1),
new CANNON.Vec3().copy(p2),
new CANNON.Vec3().copy(p3),
mp.vadd(p4.scale(-1 / 2))
];
const faces = [
[0, 1, 2],
[0, 3, 1],
[1, 3, 2],
[2, 3, 0]
];
const normals = [
new CANNON.Vec3().copy(p4)
];
for (let j = 0; j < 3; j++) {
vertices[j].vsub(vertices[(j + 1) % 3], e1);
vertices[(j + 1) % 3].vsub(p4, e2);
tmp.set(0, 0, 0);
const points = faces[j + 1];
for (let p = 0; p < points.length; p++) {
tmp.vadd(vertices[points[p]], tmp);
}
tmp.scale(1 / points.length, tmp);
const normal = e1.cross(e2);
normal.normalize();
normal.scale(-1, normal);
const angle = normal.dot(tmp);
if(angle < 0) normal.scale(-1, normal);
normals.push(normal);
}
const polyhedron = new CANNON.ConvexPolyhedron({vertices, faces, normals});
body.addShape(polyhedron);
}
return body;
};
Ammo().then(function () {
ammoIsReady = true;
}).catch(function (error) {
});
BIN
View File
Binary file not shown.
+11
View File
@@ -0,0 +1,11 @@
{
"name": "xvoxel-async",
"version": "1.0.0",
"description": "Asynchronous fork of OpenVoxelProject",
"main": "main.js",
"scripts": {
"test": "electron ."
},
"author": "X3F200C",
"license": "ISC"
}
+9
View File
@@ -0,0 +1,9 @@
global.core.on("post-init", function () {
});
var loadingScreen = global.document.createElement("div");
loadingScreen.classList.add("fullscreen overlay");
loadingScreen.id = "loading-screen";
global.document.body.appendChild(loadingScreen);
+55
View File
@@ -0,0 +1,55 @@
window.electron = require("electron");
/* electron.contextBridge.exposeInMainWorld("load", function (moduleName) {
try {
return Promise.resolve(require(moduleName));
} catch (e) {
return Promise.reject(e);
}
}); */
var windowActionButtons = [
{
"divID": "minwin",
"imgID": "mwi",
"title": "Minimize",
"click": function (event) {
electron.ipcRenderer.send("ev", "minimize");
}
},
{
"divID": "maxrestorewin",
"imgID": "mrwi",
"title": "Maximize/Restore",
"click": function (event) {
electron.ipcRenderer.send("ev", "maximizerestore");
}
},
{
"divID": "closewin",
"imgID": "cwi",
"title": "Close",
"click": function (event) {
window.close();
}
}
];
window.addEventListener("DOMContentLoaded", function () {
var actionButtonContainer = document.getElementById("actionbuttoncontainer");
for (var b = 0; b < windowActionButtons.length; b++) {
var buttonData = windowActionButtons[b];
var button = document.createElement("div");
button.id = buttonData.divID;
button.title = buttonData.title;
button.classList.add("windowactionbutton");
button.onclick = buttonData.click;
var buttonImage = document.createElement("img");
buttonImage.id = buttonData.imgID;
button.appendChild(buttonImage);
actionButtonContainer.appendChild(button);
}
});