@kuncat/avoidant 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -18
- package/dist/components/AvoidantGame.svelte +743 -458
- package/dist/components/AvoidantGame.svelte.d.ts +2 -1
- package/dist/components/GameHistory.svelte +103 -0
- package/dist/components/GameHistory.svelte.d.ts +8 -0
- package/dist/components/MapControls.svelte +1 -1
- package/dist/components/MapIcon.svelte +40 -0
- package/dist/components/MapIcon.svelte.d.ts +7 -0
- package/dist/components/MatchResults.svelte +29 -0
- package/dist/components/MatchResults.svelte.d.ts +8 -0
- package/dist/components/MultiplayerGame.svelte +504 -0
- package/dist/components/MultiplayerGame.svelte.d.ts +11 -0
- package/dist/components/OptionHelp.svelte +96 -0
- package/dist/components/OptionHelp.svelte.d.ts +7 -0
- package/dist/components/ScoreSummary.svelte +43 -0
- package/dist/components/ScoreSummary.svelte.d.ts +8 -0
- package/dist/components/board.svelte +61 -39
- package/dist/components/board.svelte.d.ts +4 -2
- package/dist/components/fragment.glsl +34 -0
- package/dist/components/label-connectors.d.ts +5 -2
- package/dist/components/label-connectors.js +47 -37
- package/dist/components/map-camera.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/multiplayer/client.d.ts +21 -0
- package/dist/multiplayer/client.js +111 -0
- package/dist/multiplayer/duration.d.ts +1 -0
- package/dist/multiplayer/duration.js +6 -0
- package/dist/multiplayer/local-identity.d.ts +1 -0
- package/dist/multiplayer/local-identity.js +13 -0
- package/dist/multiplayer/maps.json +275 -0
- package/dist/multiplayer/reveal.d.ts +11 -0
- package/dist/multiplayer/reveal.js +16 -0
- package/dist/multiplayer/types.d.ts +80 -0
- package/dist/multiplayer/types.js +10 -0
- package/dist/paraglide/messages/_index.d.ts +111 -8
- package/dist/paraglide/messages/_index.js +111 -8
- package/dist/paraglide/messages/action_back.js +2 -2
- package/dist/paraglide/messages/action_copied.d.ts +16 -0
- package/dist/paraglide/messages/action_copied.js +29 -0
- package/dist/paraglide/messages/action_copy.js +2 -2
- package/dist/paraglide/messages/action_copy_invitation.d.ts +16 -0
- package/dist/paraglide/messages/action_copy_invitation.js +29 -0
- package/dist/paraglide/messages/action_download_replay.d.ts +16 -0
- package/dist/paraglide/messages/action_download_replay.js +29 -0
- package/dist/paraglide/messages/action_exit.js +2 -2
- package/dist/paraglide/messages/action_game_history.d.ts +16 -0
- package/dist/paraglide/messages/action_game_history.js +29 -0
- package/dist/paraglide/messages/action_invite.js +2 -2
- package/dist/paraglide/messages/action_join.js +2 -2
- package/dist/paraglide/messages/action_join_game.js +2 -2
- package/dist/paraglide/messages/action_load_more.d.ts +16 -0
- package/dist/paraglide/messages/action_load_more.js +29 -0
- package/dist/paraglide/messages/action_login.d.ts +16 -0
- package/dist/paraglide/messages/action_login.js +29 -0
- package/dist/paraglide/messages/action_login_again.d.ts +16 -0
- package/dist/paraglide/messages/action_login_again.js +29 -0
- package/dist/paraglide/messages/action_logout.d.ts +16 -0
- package/dist/paraglide/messages/action_logout.js +29 -0
- package/dist/paraglide/messages/action_new_game.js +2 -2
- package/dist/paraglide/messages/action_pass.d.ts +16 -0
- package/dist/paraglide/messages/action_pass.js +29 -0
- package/dist/paraglide/messages/action_random.js +2 -2
- package/dist/paraglide/messages/action_reconnect.d.ts +16 -0
- package/dist/paraglide/messages/action_reconnect.js +29 -0
- package/dist/paraglide/messages/action_register.d.ts +16 -0
- package/dist/paraglide/messages/action_register.js +29 -0
- package/dist/paraglide/messages/action_save_name.d.ts +16 -0
- package/dist/paraglide/messages/action_save_name.js +29 -0
- package/dist/paraglide/messages/action_start.js +2 -2
- package/dist/paraglide/messages/action_start_match.d.ts +16 -0
- package/dist/paraglide/messages/action_start_match.js +29 -0
- package/dist/paraglide/messages/aria_close_invitation.js +2 -2
- package/dist/paraglide/messages/aria_score_summary.js +2 -2
- package/dist/paraglide/messages/cells_count.js +2 -2
- package/dist/paraglide/messages/cells_per_face.js +2 -2
- package/dist/paraglide/messages/default_player_name.js +2 -2
- package/dist/paraglide/messages/error_connection_failed.d.ts +16 -0
- package/dist/paraglide/messages/error_connection_failed.js +29 -0
- package/dist/paraglide/messages/error_connection_interrupted.d.ts +16 -0
- package/dist/paraglide/messages/error_connection_interrupted.js +29 -0
- package/dist/paraglide/messages/error_history.d.ts +16 -0
- package/dist/paraglide/messages/error_history.js +29 -0
- package/dist/paraglide/messages/error_invitation_invalid.d.ts +16 -0
- package/dist/paraglide/messages/error_invitation_invalid.js +29 -0
- package/dist/paraglide/messages/error_join_connect_failed.js +2 -2
- package/dist/paraglide/messages/error_join_failed.js +2 -2
- package/dist/paraglide/messages/error_join_ticket_invalid.js +2 -2
- package/dist/paraglide/messages/error_join_ticket_required.js +2 -2
- package/dist/paraglide/messages/error_login_to_join.d.ts +16 -0
- package/dist/paraglide/messages/error_login_to_join.js +29 -0
- package/dist/paraglide/messages/error_map_version.d.ts +16 -0
- package/dist/paraglide/messages/error_map_version.js +29 -0
- package/dist/paraglide/messages/error_match_join.d.ts +16 -0
- package/dist/paraglide/messages/error_match_join.js +29 -0
- package/dist/paraglide/messages/error_match_version.d.ts +16 -0
- package/dist/paraglide/messages/error_match_version.js +29 -0
- package/dist/paraglide/messages/error_name_not_saved.d.ts +16 -0
- package/dist/paraglide/messages/error_name_not_saved.js +29 -0
- package/dist/paraglide/messages/error_name_server_update.d.ts +16 -0
- package/dist/paraglide/messages/error_name_server_update.js +29 -0
- package/dist/paraglide/messages/error_player_name.d.ts +16 -0
- package/dist/paraglide/messages/error_player_name.js +29 -0
- package/dist/paraglide/messages/error_reconnect_to_play.d.ts +16 -0
- package/dist/paraglide/messages/error_reconnect_to_play.js +29 -0
- package/dist/paraglide/messages/error_replay.d.ts +16 -0
- package/dist/paraglide/messages/error_replay.js +29 -0
- package/dist/paraglide/messages/error_unsupported_map.d.ts +16 -0
- package/dist/paraglide/messages/error_unsupported_map.js +29 -0
- package/dist/paraglide/messages/faces_count.js +2 -2
- package/dist/paraglide/messages/field_bordering.d.ts +16 -0
- package/dist/paraglide/messages/field_bordering.js +29 -0
- package/dist/paraglide/messages/field_cell_density.js +2 -2
- package/dist/paraglide/messages/field_duration_unit.d.ts +16 -0
- package/dist/paraglide/messages/field_duration_unit.js +29 -0
- package/dist/paraglide/messages/field_finite_flood.d.ts +16 -0
- package/dist/paraglide/messages/field_finite_flood.js +29 -0
- package/dist/paraglide/messages/field_flood_cells.d.ts +16 -0
- package/dist/paraglide/messages/field_flood_cells.js +29 -0
- package/dist/paraglide/messages/field_flood_limit.d.ts +16 -0
- package/dist/paraglide/messages/field_flood_limit.js +29 -0
- package/dist/paraglide/messages/field_infinite_flood.d.ts +16 -0
- package/dist/paraglide/messages/field_infinite_flood.js +29 -0
- package/dist/paraglide/messages/field_invitation_link.d.ts +16 -0
- package/dist/paraglide/messages/field_invitation_link.js +29 -0
- package/dist/paraglide/messages/field_invitation_url.js +2 -2
- package/dist/paraglide/messages/field_language.d.ts +16 -0
- package/dist/paraglide/messages/field_language.js +29 -0
- package/dist/paraglide/messages/field_map.d.ts +16 -0
- package/dist/paraglide/messages/field_map.js +29 -0
- package/dist/paraglide/messages/field_map_shape.js +2 -2
- package/dist/paraglide/messages/field_map_size.d.ts +1 -1
- package/dist/paraglide/messages/field_map_size.js +5 -5
- package/dist/paraglide/messages/field_match_duration.d.ts +16 -0
- package/dist/paraglide/messages/field_match_duration.js +29 -0
- package/dist/paraglide/messages/field_match_minutes.d.ts +16 -0
- package/dist/paraglide/messages/field_match_minutes.js +29 -0
- package/dist/paraglide/messages/field_play_mode.d.ts +16 -0
- package/dist/paraglide/messages/field_play_mode.js +29 -0
- package/dist/paraglide/messages/field_player_name.js +2 -2
- package/dist/paraglide/messages/field_radius.js +2 -2
- package/dist/paraglide/messages/field_radius_x.js +2 -2
- package/dist/paraglide/messages/field_radius_y.js +2 -2
- package/dist/paraglide/messages/field_radius_z.js +2 -2
- package/dist/paraglide/messages/field_relay_servers.js +2 -2
- package/dist/paraglide/messages/field_seed.js +2 -2
- package/dist/paraglide/messages/field_size.d.ts +1 -1
- package/dist/paraglide/messages/field_size.js +5 -5
- package/dist/paraglide/messages/field_spikiness.js +2 -2
- package/dist/paraglide/messages/field_subdivisions.js +2 -2
- package/dist/paraglide/messages/field_surface_detail.js +2 -2
- package/dist/paraglide/messages/field_ticket_or_invitation_url.js +2 -2
- package/dist/paraglide/messages/field_turn_based.d.ts +16 -0
- package/dist/paraglide/messages/field_turn_based.js +29 -0
- package/dist/paraglide/messages/field_turn_duration.d.ts +16 -0
- package/dist/paraglide/messages/field_turn_duration.js +29 -0
- package/dist/paraglide/messages/field_turn_duration_unit.d.ts +16 -0
- package/dist/paraglide/messages/field_turn_duration_unit.js +29 -0
- package/dist/paraglide/messages/field_turn_timer.d.ts +16 -0
- package/dist/paraglide/messages/field_turn_timer.js +29 -0
- package/dist/paraglide/messages/field_tutorial_mode.js +2 -2
- package/dist/paraglide/messages/field_void_fraction.js +2 -2
- package/dist/paraglide/messages/help_bordering.d.ts +16 -0
- package/dist/paraglide/messages/help_bordering.js +29 -0
- package/dist/paraglide/messages/help_flood_limit.d.ts +16 -0
- package/dist/paraglide/messages/help_flood_limit.js +29 -0
- package/dist/paraglide/messages/help_map.d.ts +16 -0
- package/dist/paraglide/messages/help_map.js +29 -0
- package/dist/paraglide/messages/help_map_size.d.ts +16 -0
- package/dist/paraglide/messages/help_map_size.js +29 -0
- package/dist/paraglide/messages/help_match_duration.d.ts +16 -0
- package/dist/paraglide/messages/help_match_duration.js +29 -0
- package/dist/paraglide/messages/help_participation_time.d.ts +16 -0
- package/dist/paraglide/messages/help_participation_time.js +29 -0
- package/dist/paraglide/messages/help_play_mode.d.ts +16 -0
- package/dist/paraglide/messages/help_play_mode.js +29 -0
- package/dist/paraglide/messages/help_player_name.d.ts +16 -0
- package/dist/paraglide/messages/help_player_name.js +29 -0
- package/dist/paraglide/messages/help_seed.d.ts +16 -0
- package/dist/paraglide/messages/help_seed.js +29 -0
- package/dist/paraglide/messages/help_size.d.ts +16 -0
- package/dist/paraglide/messages/help_size.js +29 -0
- package/dist/paraglide/messages/help_spikiness.d.ts +16 -0
- package/dist/paraglide/messages/help_spikiness.js +29 -0
- package/dist/paraglide/messages/help_turn_based.d.ts +16 -0
- package/dist/paraglide/messages/help_turn_based.js +29 -0
- package/dist/paraglide/messages/help_turn_duration.d.ts +16 -0
- package/dist/paraglide/messages/help_turn_duration.js +29 -0
- package/dist/paraglide/messages/help_turn_time.d.ts +16 -0
- package/dist/paraglide/messages/help_turn_time.js +29 -0
- package/dist/paraglide/messages/help_turn_timer.d.ts +16 -0
- package/dist/paraglide/messages/help_turn_timer.js +29 -0
- package/dist/paraglide/messages/help_tutorial_mode.d.ts +16 -0
- package/dist/paraglide/messages/help_tutorial_mode.js +29 -0
- package/dist/paraglide/messages/help_void_fraction.d.ts +16 -0
- package/dist/paraglide/messages/help_void_fraction.js +29 -0
- package/dist/paraglide/messages/history_empty.d.ts +16 -0
- package/dist/paraglide/messages/history_empty.js +29 -0
- package/dist/paraglide/messages/label_advanced_settings.js +2 -2
- package/dist/paraglide/messages/label_claims.d.ts +18 -0
- package/dist/paraglide/messages/label_claims.js +29 -0
- package/dist/paraglide/messages/label_cumulative_time.d.ts +16 -0
- package/dist/paraglide/messages/label_cumulative_time.js +29 -0
- package/dist/paraglide/messages/label_custom_map_options.d.ts +16 -0
- package/dist/paraglide/messages/label_custom_map_options.js +29 -0
- package/dist/paraglide/messages/label_gameplay_options.d.ts +16 -0
- package/dist/paraglide/messages/label_gameplay_options.js +29 -0
- package/dist/paraglide/messages/label_map_options.d.ts +16 -0
- package/dist/paraglide/messages/label_map_options.js +29 -0
- package/dist/paraglide/messages/label_match_ends.d.ts +18 -0
- package/dist/paraglide/messages/label_match_ends.js +29 -0
- package/dist/paraglide/messages/label_match_id.d.ts +18 -0
- package/dist/paraglide/messages/label_match_id.js +29 -0
- package/dist/paraglide/messages/label_player_number.d.ts +18 -0
- package/dist/paraglide/messages/label_player_number.js +29 -0
- package/dist/paraglide/messages/label_players.js +2 -2
- package/dist/paraglide/messages/label_points.d.ts +18 -0
- package/dist/paraglide/messages/label_points.js +29 -0
- package/dist/paraglide/messages/label_revealed_count.d.ts +18 -0
- package/dist/paraglide/messages/label_revealed_count.js +29 -0
- package/dist/paraglide/messages/label_safe_cells_explored.js +2 -2
- package/dist/paraglide/messages/label_safe_cells_remaining.js +2 -2
- package/dist/paraglide/messages/label_score.js +2 -2
- package/dist/paraglide/messages/label_streak.js +2 -2
- package/dist/paraglide/messages/label_team_score.d.ts +18 -0
- package/dist/paraglide/messages/label_team_score.js +29 -0
- package/dist/paraglide/messages/label_turn_remaining.d.ts +18 -0
- package/dist/paraglide/messages/label_turn_remaining.js +29 -0
- package/dist/paraglide/messages/label_voids_discovered.js +2 -2
- package/dist/paraglide/messages/label_you.d.ts +16 -0
- package/dist/paraglide/messages/label_you.js +29 -0
- package/dist/paraglide/messages/mode_collaborative.d.ts +16 -0
- package/dist/paraglide/messages/mode_collaborative.js +29 -0
- package/dist/paraglide/messages/mode_collaborative_hint.d.ts +16 -0
- package/dist/paraglide/messages/mode_collaborative_hint.js +29 -0
- package/dist/paraglide/messages/mode_solo.d.ts +16 -0
- package/dist/paraglide/messages/mode_solo.js +29 -0
- package/dist/paraglide/messages/mode_solo_hint.d.ts +16 -0
- package/dist/paraglide/messages/mode_solo_hint.js +29 -0
- package/dist/paraglide/messages/mode_territory.d.ts +16 -0
- package/dist/paraglide/messages/mode_territory.js +29 -0
- package/dist/paraglide/messages/mode_territory_hint.d.ts +16 -0
- package/dist/paraglide/messages/mode_territory_hint.js +29 -0
- package/dist/paraglide/messages/multiplayer_title.d.ts +16 -0
- package/dist/paraglide/messages/multiplayer_title.js +29 -0
- package/dist/paraglide/messages/option_help.d.ts +18 -0
- package/dist/paraglide/messages/option_help.js +29 -0
- package/dist/paraglide/messages/package.json +4 -0
- package/dist/paraglide/messages/preset_custom.js +2 -2
- package/dist/paraglide/messages/preset_large.js +2 -2
- package/dist/paraglide/messages/preset_medium.js +2 -2
- package/dist/paraglide/messages/preset_small.js +2 -2
- package/dist/paraglide/messages/shape_label.d.ts +5 -5
- package/dist/paraglide/messages/shape_label.js +17 -17
- package/dist/paraglide/messages/status_connecting.d.ts +16 -0
- package/dist/paraglide/messages/status_connecting.js +29 -0
- package/dist/paraglide/messages/status_draw.d.ts +16 -0
- package/dist/paraglide/messages/status_draw.js +29 -0
- package/dist/paraglide/messages/status_generating_map.js +2 -2
- package/dist/paraglide/messages/status_initialization_failed.js +2 -2
- package/dist/paraglide/messages/status_joining_game.js +2 -2
- package/dist/paraglide/messages/status_loading.js +2 -2
- package/dist/paraglide/messages/status_match_complete.d.ts +16 -0
- package/dist/paraglide/messages/status_match_complete.js +29 -0
- package/dist/paraglide/messages/status_match_expired.d.ts +16 -0
- package/dist/paraglide/messages/status_match_expired.js +29 -0
- package/dist/paraglide/messages/status_name_saved.d.ts +16 -0
- package/dist/paraglide/messages/status_name_saved.js +29 -0
- package/dist/paraglide/messages/status_named_turn.d.ts +18 -0
- package/dist/paraglide/messages/status_named_turn.js +29 -0
- package/dist/paraglide/messages/status_named_winner.d.ts +18 -0
- package/dist/paraglide/messages/status_named_winner.js +29 -0
- package/dist/paraglide/messages/status_player_turn.d.ts +18 -0
- package/dist/paraglide/messages/status_player_turn.js +29 -0
- package/dist/paraglide/messages/status_preparing.js +2 -2
- package/dist/paraglide/messages/status_realtime_claims.d.ts +16 -0
- package/dist/paraglide/messages/status_realtime_claims.js +29 -0
- package/dist/paraglide/messages/status_reconnecting.d.ts +16 -0
- package/dist/paraglide/messages/status_reconnecting.js +29 -0
- package/dist/paraglide/messages/status_session_complete.d.ts +16 -0
- package/dist/paraglide/messages/status_session_complete.js +29 -0
- package/dist/paraglide/messages/status_winner.d.ts +18 -0
- package/dist/paraglide/messages/status_winner.js +29 -0
- package/dist/paraglide/messages/text_account_multiplayer.d.ts +16 -0
- package/dist/paraglide/messages/text_account_multiplayer.js +29 -0
- package/dist/paraglide/messages/text_avoided.js +2 -2
- package/dist/paraglide/messages/text_density_summary.js +2 -2
- package/dist/paraglide/messages/text_invite_after_opening.js +2 -2
- package/dist/paraglide/messages/text_multiplayer_login.d.ts +16 -0
- package/dist/paraglide/messages/text_multiplayer_login.js +29 -0
- package/dist/paraglide/messages/text_relay_servers_hint.js +2 -2
- package/dist/paraglide/messages/text_waiting_lobby.d.ts +16 -0
- package/dist/paraglide/messages/text_waiting_lobby.js +29 -0
- package/dist/paraglide/messages/tutorial_action_dismiss.js +2 -2
- package/dist/paraglide/messages/tutorial_action_next.js +2 -2
- package/dist/paraglide/messages/tutorial_after_safe_deducible.js +2 -2
- package/dist/paraglide/messages/tutorial_after_safe_guess.js +2 -2
- package/dist/paraglide/messages/tutorial_after_void.js +2 -2
- package/dist/paraglide/messages/tutorial_awaiting_first_click.js +2 -2
- package/dist/paraglide/messages/tutorial_intro.d.ts +1 -1
- package/dist/paraglide/messages/tutorial_intro.js +5 -5
- package/dist/paraglide/messages/tutorial_won.js +2 -2
- package/dist/paraglide/messages/unit_hours.d.ts +16 -0
- package/dist/paraglide/messages/unit_hours.js +29 -0
- package/dist/paraglide/messages/unit_hours_selected.d.ts +19 -0
- package/dist/paraglide/messages/unit_hours_selected.js +35 -0
- package/dist/paraglide/messages/unit_minutes.d.ts +16 -0
- package/dist/paraglide/messages/unit_minutes.js +29 -0
- package/dist/paraglide/messages/unit_minutes_selected.d.ts +19 -0
- package/dist/paraglide/messages/unit_minutes_selected.js +35 -0
- package/dist/paraglide/messages/unit_seconds.d.ts +16 -0
- package/dist/paraglide/messages/unit_seconds.js +29 -0
- package/dist/paraglide/messages/unit_seconds_selected.d.ts +19 -0
- package/dist/paraglide/messages/unit_seconds_selected.js +35 -0
- package/dist/paraglide/registry.d.ts +13 -0
- package/dist/paraglide/registry.js +15 -0
- package/dist/paraglide/runtime.d.ts +90 -26
- package/dist/paraglide/runtime.js +597 -109
- package/dist/paraglide/server.d.ts +1 -1
- package/dist/paraglide/server.js +27 -10
- package/dist/styles/global.css +12 -51
- package/dist/wasm/avoidant_wasm.d.ts +56 -11
- package/dist/wasm/avoidant_wasm.js +188 -52
- package/dist/wasm/avoidant_wasm_bg.wasm +0 -0
- package/dist/wasm/avoidant_wasm_bg.wasm.d.ts +25 -11
- package/package.json +34 -32
|
@@ -259,6 +259,9 @@ export class GameState {
|
|
|
259
259
|
*/
|
|
260
260
|
get networkPeers() {
|
|
261
261
|
const ret = wasm.gamestate_networkPeers(this.__wbg_ptr);
|
|
262
|
+
if (ret[3]) {
|
|
263
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
264
|
+
}
|
|
262
265
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
263
266
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
264
267
|
return v1;
|
|
@@ -383,6 +386,52 @@ export class IntoUnderlyingByteSource {
|
|
|
383
386
|
}
|
|
384
387
|
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
385
388
|
|
|
389
|
+
class IntoUnderlyingByteSource2 {
|
|
390
|
+
__destroy_into_raw() {
|
|
391
|
+
const ptr = this.__wbg_ptr;
|
|
392
|
+
this.__wbg_ptr = 0;
|
|
393
|
+
IntoUnderlyingByteSource2Finalization.unregister(this);
|
|
394
|
+
return ptr;
|
|
395
|
+
}
|
|
396
|
+
free() {
|
|
397
|
+
const ptr = this.__destroy_into_raw();
|
|
398
|
+
wasm.__wbg_intounderlyingbytesource2_free(ptr, 0);
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @returns {number}
|
|
402
|
+
*/
|
|
403
|
+
get autoAllocateChunkSize() {
|
|
404
|
+
const ret = wasm.intounderlyingbytesource2_autoAllocateChunkSize(this.__wbg_ptr);
|
|
405
|
+
return ret >>> 0;
|
|
406
|
+
}
|
|
407
|
+
cancel() {
|
|
408
|
+
const ptr = this.__destroy_into_raw();
|
|
409
|
+
wasm.intounderlyingbytesource2_cancel(ptr);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @param {ReadableByteStreamController} controller
|
|
413
|
+
* @returns {Promise<any>}
|
|
414
|
+
*/
|
|
415
|
+
pull(controller) {
|
|
416
|
+
const ret = wasm.intounderlyingbytesource2_pull(this.__wbg_ptr, controller);
|
|
417
|
+
return ret;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @param {ReadableByteStreamController} controller
|
|
421
|
+
*/
|
|
422
|
+
start(controller) {
|
|
423
|
+
wasm.intounderlyingbytesource2_start(this.__wbg_ptr, controller);
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* @returns {ReadableStreamType}
|
|
427
|
+
*/
|
|
428
|
+
get type() {
|
|
429
|
+
const ret = wasm.intounderlyingbytesource2_type(this.__wbg_ptr);
|
|
430
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
if (Symbol.dispose) IntoUnderlyingByteSource2.prototype[Symbol.dispose] = IntoUnderlyingByteSource2.prototype.free;
|
|
434
|
+
|
|
386
435
|
export class IntoUnderlyingSink {
|
|
387
436
|
__destroy_into_raw() {
|
|
388
437
|
const ptr = this.__wbg_ptr;
|
|
@@ -422,13 +471,46 @@ export class IntoUnderlyingSink {
|
|
|
422
471
|
}
|
|
423
472
|
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
424
473
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return
|
|
474
|
+
class IntoUnderlyingSink2 {
|
|
475
|
+
__destroy_into_raw() {
|
|
476
|
+
const ptr = this.__wbg_ptr;
|
|
477
|
+
this.__wbg_ptr = 0;
|
|
478
|
+
IntoUnderlyingSink2Finalization.unregister(this);
|
|
479
|
+
return ptr;
|
|
480
|
+
}
|
|
481
|
+
free() {
|
|
482
|
+
const ptr = this.__destroy_into_raw();
|
|
483
|
+
wasm.__wbg_intounderlyingsink2_free(ptr, 0);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @param {any} reason
|
|
487
|
+
* @returns {Promise<any>}
|
|
488
|
+
*/
|
|
489
|
+
abort(reason) {
|
|
490
|
+
const ptr = this.__destroy_into_raw();
|
|
491
|
+
const ret = wasm.intounderlyingsink2_abort(ptr, reason);
|
|
492
|
+
return ret;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @returns {Promise<any>}
|
|
496
|
+
*/
|
|
497
|
+
close() {
|
|
498
|
+
const ptr = this.__destroy_into_raw();
|
|
499
|
+
const ret = wasm.intounderlyingsink2_close(ptr);
|
|
500
|
+
return ret;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @param {any} chunk
|
|
504
|
+
* @returns {Promise<any>}
|
|
505
|
+
*/
|
|
506
|
+
write(chunk) {
|
|
507
|
+
const ret = wasm.intounderlyingsink2_write(this.__wbg_ptr, chunk);
|
|
508
|
+
return ret;
|
|
431
509
|
}
|
|
510
|
+
}
|
|
511
|
+
if (Symbol.dispose) IntoUnderlyingSink2.prototype[Symbol.dispose] = IntoUnderlyingSink2.prototype.free;
|
|
512
|
+
|
|
513
|
+
export class IntoUnderlyingSource {
|
|
432
514
|
__destroy_into_raw() {
|
|
433
515
|
const ptr = this.__wbg_ptr;
|
|
434
516
|
this.__wbg_ptr = 0;
|
|
@@ -454,6 +536,38 @@ export class IntoUnderlyingSource {
|
|
|
454
536
|
}
|
|
455
537
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
456
538
|
|
|
539
|
+
class IntoUnderlyingSource2 {
|
|
540
|
+
static __wrap(ptr) {
|
|
541
|
+
const obj = Object.create(IntoUnderlyingSource2.prototype);
|
|
542
|
+
obj.__wbg_ptr = ptr;
|
|
543
|
+
IntoUnderlyingSource2Finalization.register(obj, obj.__wbg_ptr, obj);
|
|
544
|
+
return obj;
|
|
545
|
+
}
|
|
546
|
+
__destroy_into_raw() {
|
|
547
|
+
const ptr = this.__wbg_ptr;
|
|
548
|
+
this.__wbg_ptr = 0;
|
|
549
|
+
IntoUnderlyingSource2Finalization.unregister(this);
|
|
550
|
+
return ptr;
|
|
551
|
+
}
|
|
552
|
+
free() {
|
|
553
|
+
const ptr = this.__destroy_into_raw();
|
|
554
|
+
wasm.__wbg_intounderlyingsource2_free(ptr, 0);
|
|
555
|
+
}
|
|
556
|
+
cancel() {
|
|
557
|
+
const ptr = this.__destroy_into_raw();
|
|
558
|
+
wasm.intounderlyingsource2_cancel(ptr);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @param {ReadableStreamDefaultController} controller
|
|
562
|
+
* @returns {Promise<any>}
|
|
563
|
+
*/
|
|
564
|
+
pull(controller) {
|
|
565
|
+
const ret = wasm.intounderlyingsource2_pull(this.__wbg_ptr, controller);
|
|
566
|
+
return ret;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
if (Symbol.dispose) IntoUnderlyingSource2.prototype[Symbol.dispose] = IntoUnderlyingSource2.prototype.free;
|
|
570
|
+
|
|
457
571
|
export class NetworkNode {
|
|
458
572
|
static __wrap(ptr) {
|
|
459
573
|
const obj = Object.create(NetworkNode.prototype);
|
|
@@ -877,6 +991,10 @@ function __wbg_get_imports() {
|
|
|
877
991
|
const ret = arg0.getReader();
|
|
878
992
|
return ret;
|
|
879
993
|
}, arguments); },
|
|
994
|
+
__wbg_getReader_bf34f92ee19c42b4: function() { return handleError(function (arg0) {
|
|
995
|
+
const ret = arg0.getReader();
|
|
996
|
+
return ret;
|
|
997
|
+
}, arguments); },
|
|
880
998
|
__wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
|
|
881
999
|
const ret = Reflect.get(arg0, arg1);
|
|
882
1000
|
return ret;
|
|
@@ -1046,7 +1164,7 @@ function __wbg_get_imports() {
|
|
|
1046
1164
|
const a = state0.a;
|
|
1047
1165
|
state0.a = 0;
|
|
1048
1166
|
try {
|
|
1049
|
-
return
|
|
1167
|
+
return wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1050
1168
|
} finally {
|
|
1051
1169
|
state0.a = a;
|
|
1052
1170
|
}
|
|
@@ -1061,8 +1179,8 @@ function __wbg_get_imports() {
|
|
|
1061
1179
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1062
1180
|
return ret;
|
|
1063
1181
|
},
|
|
1064
|
-
|
|
1065
|
-
const ret = new ReadableStream(
|
|
1182
|
+
__wbg_new_with_into_underlying_source_a57cfcc7c705351c: function(arg0, arg1) {
|
|
1183
|
+
const ret = new ReadableStream(IntoUnderlyingSource2.__wrap(arg0), arg1);
|
|
1066
1184
|
return ret;
|
|
1067
1185
|
},
|
|
1068
1186
|
__wbg_new_with_length_3da0ad195f6f63ba: function(arg0) {
|
|
@@ -1326,71 +1444,76 @@ function __wbg_get_imports() {
|
|
|
1326
1444
|
return ret;
|
|
1327
1445
|
},
|
|
1328
1446
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1329
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1330
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1447
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1448
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_);
|
|
1331
1449
|
return ret;
|
|
1332
1450
|
},
|
|
1333
1451
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1334
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1335
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1452
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4005, ret: Externref, inner_ret: Some(Externref) }, mutable: true }) -> Externref`.
|
|
1453
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__wasm_bindgen_9272b6ef9ea7104a___JsValue__true_);
|
|
1336
1454
|
return ret;
|
|
1337
1455
|
},
|
|
1338
1456
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1339
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1340
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1457
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4019, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1458
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_9272b6ef9ea7104a___JsError___true_);
|
|
1341
1459
|
return ret;
|
|
1342
1460
|
},
|
|
1343
1461
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1344
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [
|
|
1345
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1462
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 469, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1463
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_);
|
|
1346
1464
|
return ret;
|
|
1347
1465
|
},
|
|
1348
1466
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1349
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
1350
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1467
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1139, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1468
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_);
|
|
1351
1469
|
return ret;
|
|
1352
1470
|
},
|
|
1353
1471
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1354
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1355
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1472
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2767, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1473
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_);
|
|
1356
1474
|
return ret;
|
|
1357
1475
|
},
|
|
1358
1476
|
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1359
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1360
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1477
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2318, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1478
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true_);
|
|
1361
1479
|
return ret;
|
|
1362
1480
|
},
|
|
1363
1481
|
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1364
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1365
|
-
const ret =
|
|
1482
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2501, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1483
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_);
|
|
1366
1484
|
return ret;
|
|
1367
1485
|
},
|
|
1368
1486
|
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1369
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1370
|
-
const ret =
|
|
1487
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2503, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1488
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_);
|
|
1371
1489
|
return ret;
|
|
1372
1490
|
},
|
|
1373
|
-
__wbindgen_generic_000000000000000a: function(arg0) {
|
|
1491
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
1492
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3877, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1493
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_);
|
|
1494
|
+
return ret;
|
|
1495
|
+
},
|
|
1496
|
+
__wbindgen_generic_000000000000000b: function(arg0) {
|
|
1374
1497
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1375
1498
|
const ret = arg0;
|
|
1376
1499
|
return ret;
|
|
1377
1500
|
},
|
|
1378
|
-
|
|
1501
|
+
__wbindgen_generic_000000000000000c: function(arg0) {
|
|
1379
1502
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1380
1503
|
const ret = arg0;
|
|
1381
1504
|
return ret;
|
|
1382
1505
|
},
|
|
1383
|
-
|
|
1506
|
+
__wbindgen_generic_000000000000000d: function(arg0, arg1) {
|
|
1384
1507
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1385
1508
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1386
1509
|
return ret;
|
|
1387
1510
|
},
|
|
1388
|
-
|
|
1511
|
+
__wbindgen_generic_000000000000000e: function(arg0, arg1) {
|
|
1389
1512
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1390
1513
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1391
1514
|
return ret;
|
|
1392
1515
|
},
|
|
1393
|
-
|
|
1516
|
+
__wbindgen_generic_000000000000000f: function(arg0) {
|
|
1394
1517
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1395
1518
|
const ret = BigInt.asUintN(64, arg0);
|
|
1396
1519
|
return ret;
|
|
@@ -1413,48 +1536,52 @@ function __wbg_get_imports() {
|
|
|
1413
1536
|
};
|
|
1414
1537
|
}
|
|
1415
1538
|
|
|
1416
|
-
function
|
|
1417
|
-
wasm.
|
|
1539
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1540
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
1544
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
1418
1545
|
}
|
|
1419
1546
|
|
|
1420
|
-
function
|
|
1421
|
-
wasm.
|
|
1547
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_(arg0, arg1) {
|
|
1548
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_(arg0, arg1);
|
|
1422
1549
|
}
|
|
1423
1550
|
|
|
1424
|
-
function
|
|
1425
|
-
wasm.
|
|
1551
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_(arg0, arg1) {
|
|
1552
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_(arg0, arg1);
|
|
1426
1553
|
}
|
|
1427
1554
|
|
|
1428
|
-
function
|
|
1429
|
-
wasm.
|
|
1555
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_(arg0, arg1, arg2) {
|
|
1556
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_(arg0, arg1, arg2);
|
|
1430
1557
|
}
|
|
1431
1558
|
|
|
1432
|
-
function
|
|
1433
|
-
wasm.
|
|
1559
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_(arg0, arg1, arg2) {
|
|
1560
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_(arg0, arg1, arg2);
|
|
1434
1561
|
}
|
|
1435
1562
|
|
|
1436
|
-
function
|
|
1437
|
-
wasm.
|
|
1563
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
1564
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
1438
1565
|
}
|
|
1439
1566
|
|
|
1440
|
-
function
|
|
1441
|
-
wasm.
|
|
1567
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2) {
|
|
1568
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2);
|
|
1442
1569
|
}
|
|
1443
1570
|
|
|
1444
|
-
function
|
|
1445
|
-
const ret = wasm.
|
|
1571
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__wasm_bindgen_9272b6ef9ea7104a___JsValue__true_(arg0, arg1, arg2) {
|
|
1572
|
+
const ret = wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__wasm_bindgen_9272b6ef9ea7104a___JsValue__true_(arg0, arg1, arg2);
|
|
1446
1573
|
return ret;
|
|
1447
1574
|
}
|
|
1448
1575
|
|
|
1449
|
-
function
|
|
1450
|
-
const ret = wasm.
|
|
1576
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_9272b6ef9ea7104a___JsError___true_(arg0, arg1, arg2) {
|
|
1577
|
+
const ret = wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_9272b6ef9ea7104a___JsError___true_(arg0, arg1, arg2);
|
|
1451
1578
|
if (ret[1]) {
|
|
1452
1579
|
throw takeFromExternrefTable0(ret[0]);
|
|
1453
1580
|
}
|
|
1454
1581
|
}
|
|
1455
1582
|
|
|
1456
|
-
function
|
|
1457
|
-
wasm.
|
|
1583
|
+
function wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1584
|
+
wasm.wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1458
1585
|
}
|
|
1459
1586
|
|
|
1460
1587
|
|
|
@@ -1486,12 +1613,21 @@ const GameStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1486
1613
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1487
1614
|
? { register: () => {}, unregister: () => {} }
|
|
1488
1615
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
1616
|
+
const IntoUnderlyingByteSource2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
1617
|
+
? { register: () => {}, unregister: () => {} }
|
|
1618
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource2_free(ptr, 1));
|
|
1489
1619
|
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1490
1620
|
? { register: () => {}, unregister: () => {} }
|
|
1491
1621
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
1622
|
+
const IntoUnderlyingSink2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
1623
|
+
? { register: () => {}, unregister: () => {} }
|
|
1624
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink2_free(ptr, 1));
|
|
1492
1625
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1493
1626
|
? { register: () => {}, unregister: () => {} }
|
|
1494
1627
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
1628
|
+
const IntoUnderlyingSource2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
1629
|
+
? { register: () => {}, unregister: () => {} }
|
|
1630
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource2_free(ptr, 1));
|
|
1495
1631
|
const NetworkNodeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1496
1632
|
? { register: () => {}, unregister: () => {} }
|
|
1497
1633
|
: new FinalizationRegistry(ptr => wasm.__wbg_networknode_free(ptr, 1));
|
|
Binary file
|
|
@@ -4,8 +4,11 @@ export const memory: WebAssembly.Memory;
|
|
|
4
4
|
export const __wbg_channel_free: (a: number, b: number) => void;
|
|
5
5
|
export const __wbg_channelsender_free: (a: number, b: number) => void;
|
|
6
6
|
export const __wbg_gamestate_free: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_intounderlyingbytesource2_free: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
9
|
+
export const __wbg_intounderlyingsink2_free: (a: number, b: number) => void;
|
|
8
10
|
export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
11
|
+
export const __wbg_intounderlyingsource2_free: (a: number, b: number) => void;
|
|
9
12
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
10
13
|
export const __wbg_networknode_free: (a: number, b: number) => void;
|
|
11
14
|
export const __wbg_pulse_free: (a: number, b: number) => void;
|
|
@@ -30,7 +33,7 @@ export const gamestate_joinAsPeer: (a: number, b: number, c: number, d: number,
|
|
|
30
33
|
export const gamestate_lastInboundMutationMs: (a: number) => [number, number];
|
|
31
34
|
export const gamestate_lastOutboundMutationMs: (a: number) => [number, number];
|
|
32
35
|
export const gamestate_networkListenerStarted: (a: number) => number;
|
|
33
|
-
export const gamestate_networkPeers: (a: number) => [number, number];
|
|
36
|
+
export const gamestate_networkPeers: (a: number) => [number, number, number, number];
|
|
34
37
|
export const gamestate_networkSnapshot: (a: number) => any;
|
|
35
38
|
export const gamestate_new: (a: any) => [number, number, number];
|
|
36
39
|
export const gamestate_optionsFromTicket: (a: number, b: number) => [number, number, number];
|
|
@@ -39,14 +42,24 @@ export const gamestate_score: (a: number) => any;
|
|
|
39
42
|
export const gamestate_topicId: (a: number) => [number, number];
|
|
40
43
|
export const gamestate_uiState: (a: number) => number;
|
|
41
44
|
export const generateMapData: (a: any) => [number, number, number];
|
|
45
|
+
export const intounderlyingbytesource2_autoAllocateChunkSize: (a: number) => number;
|
|
46
|
+
export const intounderlyingbytesource2_cancel: (a: number) => void;
|
|
47
|
+
export const intounderlyingbytesource2_pull: (a: number, b: any) => any;
|
|
48
|
+
export const intounderlyingbytesource2_start: (a: number, b: any) => void;
|
|
49
|
+
export const intounderlyingbytesource2_type: (a: number) => number;
|
|
42
50
|
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
43
51
|
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
44
52
|
export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
45
53
|
export const intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
46
54
|
export const intounderlyingbytesource_type: (a: number) => number;
|
|
55
|
+
export const intounderlyingsink2_abort: (a: number, b: any) => any;
|
|
56
|
+
export const intounderlyingsink2_close: (a: number) => any;
|
|
57
|
+
export const intounderlyingsink2_write: (a: number, b: any) => any;
|
|
47
58
|
export const intounderlyingsink_abort: (a: number, b: any) => any;
|
|
48
59
|
export const intounderlyingsink_close: (a: number) => any;
|
|
49
60
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
61
|
+
export const intounderlyingsource2_cancel: (a: number) => void;
|
|
62
|
+
export const intounderlyingsource2_pull: (a: number, b: any) => any;
|
|
50
63
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
51
64
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
52
65
|
export const networknode_create: (a: number, b: number, c: number) => any;
|
|
@@ -64,16 +77,17 @@ export const pulse_position: (a: number) => [number, number];
|
|
|
64
77
|
export const start: () => void;
|
|
65
78
|
export const uistate_pulses: (a: number) => any;
|
|
66
79
|
export const ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
67
|
-
export const
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
80
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined___js_sys_6ba22b8ede95807b___Function_fn_wasm_bindgen_9272b6ef9ea7104a___JsValue_____wasm_bindgen_9272b6ef9ea7104a___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
81
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_9272b6ef9ea7104a___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
82
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue__wasm_bindgen_9272b6ef9ea7104a___JsValue__true_: (a: number, b: number, c: any) => any;
|
|
83
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
84
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___wasm_bindgen_9272b6ef9ea7104a___JsValue______true__1_: (a: number, b: number, c: any) => void;
|
|
85
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
|
|
86
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke___web_sys_31ae0d517edde2d8___features__gen_MessageEvent__MessageEvent______true_: (a: number, b: number, c: any) => void;
|
|
87
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
88
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__1_: (a: number, b: number) => void;
|
|
89
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__2_: (a: number, b: number) => void;
|
|
90
|
+
export const wasm_bindgen_9272b6ef9ea7104a___convert__closures_____invoke_______true__3_: (a: number, b: number) => void;
|
|
77
91
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
78
92
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
79
93
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devDependencies": {
|
|
3
|
-
"@eslint/compat": "^2.
|
|
3
|
+
"@eslint/compat": "^2.1.1",
|
|
4
4
|
"@eslint/js": "^10.0.1",
|
|
5
|
-
"@inlang/paraglide-js": "^2.
|
|
5
|
+
"@inlang/paraglide-js": "^2.25.4",
|
|
6
6
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
7
|
-
"@sveltejs/kit": "^2.
|
|
8
|
-
"@sveltejs/package": "^2.5.
|
|
9
|
-
"@sveltejs/vite-plugin-svelte": "^7.
|
|
10
|
-
"@tailwindcss/
|
|
11
|
-
"@tailwindcss/
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"
|
|
15
|
-
"eslint": "^10.
|
|
7
|
+
"@sveltejs/kit": "^2.70.3",
|
|
8
|
+
"@sveltejs/package": "^2.5.8",
|
|
9
|
+
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
10
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
11
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
12
|
+
"@types/node": "^26",
|
|
13
|
+
"@vitest/browser-playwright": "^5.0.2",
|
|
14
|
+
"daisyui": "^5.7.47",
|
|
15
|
+
"eslint": "^10.11.0",
|
|
16
16
|
"eslint-config-prettier": "^10.1.8",
|
|
17
|
-
"eslint-plugin-svelte": "^3.
|
|
18
|
-
"globals": "^17.
|
|
19
|
-
"playwright": "^1.
|
|
20
|
-
"prettier": "^3.
|
|
21
|
-
"prettier-plugin-glsl": "^0.3.
|
|
22
|
-
"prettier-plugin-svelte": "^
|
|
23
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
24
|
-
"publint": "^0.3.
|
|
25
|
-
"svelte": "^5.
|
|
26
|
-
"svelte-check": "^4.
|
|
27
|
-
"tailwindcss": "^4.
|
|
28
|
-
"typescript": "^6.0.
|
|
29
|
-
"typescript-eslint": "^8.
|
|
30
|
-
"vite": "^8.
|
|
17
|
+
"eslint-plugin-svelte": "^3.23.0",
|
|
18
|
+
"globals": "^17.12.0",
|
|
19
|
+
"playwright": "^1.63.0",
|
|
20
|
+
"prettier": "^3.9.9",
|
|
21
|
+
"prettier-plugin-glsl": "^0.3.1",
|
|
22
|
+
"prettier-plugin-svelte": "^4.1.1",
|
|
23
|
+
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
24
|
+
"publint": "^0.3.24",
|
|
25
|
+
"svelte": "^5.57.1",
|
|
26
|
+
"svelte-check": "^4.7.6",
|
|
27
|
+
"tailwindcss": "^4.3.3",
|
|
28
|
+
"typescript": "^6.0.3",
|
|
29
|
+
"typescript-eslint": "^8.70.1",
|
|
30
|
+
"vite": "^8.3.1",
|
|
31
31
|
"vite-plugin-wasm": "^3.6.0",
|
|
32
|
-
"vitest": "^
|
|
33
|
-
"vitest-browser-svelte": "^
|
|
32
|
+
"vitest": "^5.0.2",
|
|
33
|
+
"vitest-browser-svelte": "^3.1.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@threlte/core": "^8.
|
|
37
|
-
"@threlte/extras": "^9.
|
|
36
|
+
"@threlte/core": "^8.6.1",
|
|
37
|
+
"@threlte/extras": "^9.22.0"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
"name": "@kuncat/avoidant",
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"svelte": "^5.0.0",
|
|
56
|
-
"tailwindcss": "^4.0.0"
|
|
56
|
+
"tailwindcss": "^4.0.0",
|
|
57
|
+
"daisyui": "^5.7.47"
|
|
57
58
|
},
|
|
58
59
|
"peerDependenciesMeta": {
|
|
59
60
|
"tailwindcss": {
|
|
@@ -78,11 +79,12 @@
|
|
|
78
79
|
"prepare": "svelte-kit sync || echo ''",
|
|
79
80
|
"preview": "vite preview",
|
|
80
81
|
"test:unit": "vitest",
|
|
81
|
-
"test": "npm run test:unit -- --run"
|
|
82
|
+
"test": "npm run test:unit -- --run",
|
|
83
|
+
"dev:multiplayer": "npm run build:wasm && npm --prefix server run build:rules && npm --prefix server run build && node server/tests/dev-local.mjs"
|
|
82
84
|
},
|
|
83
85
|
"sideEffects": [
|
|
84
86
|
"**/*.css"
|
|
85
87
|
],
|
|
86
88
|
"type": "module",
|
|
87
|
-
"version": "0.
|
|
89
|
+
"version": "0.3.0"
|
|
88
90
|
}
|