@seelen-ui/lib 0.1.2 → 0.1.3-next.20241218174913
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/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +183 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +26 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +152 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js +69 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js +131 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js +163 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js +81 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js +109 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js +207 -0
- package/esm/gen/types/AhkVar.d.ts +6 -0
- package/esm/gen/types/AhkVar.d.ts.map +1 -0
- package/esm/gen/types/AhkVar.js +2 -0
- package/esm/gen/types/AhkVarList.d.ts +54 -0
- package/esm/gen/types/AhkVarList.d.ts.map +1 -0
- package/esm/gen/types/AppConfig.d.ts +33 -0
- package/esm/gen/types/AppConfig.d.ts.map +1 -0
- package/esm/gen/types/AppConfig.js +1 -0
- package/esm/gen/types/AppExtraFlag.d.ts +2 -0
- package/esm/gen/types/AppExtraFlag.d.ts.map +1 -0
- package/esm/gen/types/AppExtraFlag.js +2 -0
- package/esm/gen/types/AppIdentifier.d.ts +11 -0
- package/esm/gen/types/AppIdentifier.d.ts.map +1 -0
- package/esm/gen/types/AppIdentifier.js +1 -0
- package/esm/gen/types/AppIdentifierType.d.ts +2 -0
- package/esm/gen/types/AppIdentifierType.d.ts.map +1 -0
- package/esm/gen/types/AppIdentifierType.js +2 -0
- package/esm/gen/types/Border.d.ts +6 -0
- package/esm/gen/types/Border.d.ts.map +1 -0
- package/esm/gen/types/Border.js +2 -0
- package/esm/gen/types/DateToolbarItem.d.ts +71 -0
- package/esm/gen/types/DateToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/DateToolbarItem.js +1 -0
- package/esm/gen/types/DateUpdateInterval.d.ts +2 -0
- package/esm/gen/types/DateUpdateInterval.d.ts.map +1 -0
- package/esm/gen/types/DateUpdateInterval.js +2 -0
- package/esm/gen/types/DeviceToolbarItem.d.ts +54 -0
- package/esm/gen/types/DeviceToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/DeviceToolbarItem.js +1 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts +32 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettings.js +1 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.js +2 -0
- package/esm/gen/types/FloatingWindowSettings.d.ts +5 -0
- package/esm/gen/types/FloatingWindowSettings.d.ts.map +1 -0
- package/esm/gen/types/FloatingWindowSettings.js +2 -0
- package/esm/gen/types/GenericToolbarItem.d.ts +82 -0
- package/esm/gen/types/GenericToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/GenericToolbarItem.js +1 -0
- package/esm/gen/types/HideMode.d.ts +2 -0
- package/esm/gen/types/HideMode.d.ts.map +1 -0
- package/esm/gen/types/HideMode.js +2 -0
- package/esm/gen/types/IconPack.d.ts +13 -0
- package/esm/gen/types/IconPack.d.ts.map +1 -0
- package/esm/gen/types/IconPack.js +1 -0
- package/esm/gen/types/MatchingStrategy.d.ts +2 -0
- package/esm/gen/types/MatchingStrategy.d.ts.map +1 -0
- package/esm/gen/types/MatchingStrategy.js +2 -0
- package/esm/gen/types/MediaToolbarItem.d.ts +138 -0
- package/esm/gen/types/MediaToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/MediaToolbarItem.js +1 -0
- package/esm/gen/types/MonitorConfiguration.d.ts +16 -0
- package/esm/gen/types/MonitorConfiguration.d.ts.map +1 -0
- package/esm/gen/types/MonitorConfiguration.js +1 -0
- package/esm/gen/types/NetworkToolbarItem.d.ts +118 -0
- package/esm/gen/types/NetworkToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/NetworkToolbarItem.js +1 -0
- package/esm/gen/types/NoFallbackBehavior.d.ts +2 -0
- package/esm/gen/types/NoFallbackBehavior.d.ts.map +1 -0
- package/esm/gen/types/NoFallbackBehavior.js +2 -0
- package/esm/gen/types/NodeSubtype.d.ts +2 -0
- package/esm/gen/types/NodeSubtype.d.ts.map +1 -0
- package/esm/gen/types/NodeSubtype.js +2 -0
- package/esm/gen/types/NotificationsToolbarItem.d.ts +62 -0
- package/esm/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/NotificationsToolbarItem.js +1 -0
- package/esm/gen/types/PinnedWegItemData.d.ts +29 -0
- package/esm/gen/types/PinnedWegItemData.d.ts.map +1 -0
- package/esm/gen/types/PinnedWegItemData.js +2 -0
- package/esm/gen/types/Placeholder.d.ts +21 -0
- package/esm/gen/types/Placeholder.d.ts.map +1 -0
- package/esm/gen/types/Placeholder.js +1 -0
- package/esm/gen/types/PlaceholderInfo.d.ts +19 -0
- package/esm/gen/types/PlaceholderInfo.d.ts.map +1 -0
- package/esm/gen/types/PlaceholderInfo.js +2 -0
- package/esm/gen/types/Plugin.d.ts +11 -0
- package/esm/gen/types/Plugin.d.ts.map +1 -0
- package/esm/gen/types/Plugin.js +1 -0
- package/esm/gen/types/PluginId.d.ts +3 -0
- package/esm/gen/types/PluginId.d.ts.map +1 -0
- package/esm/gen/types/PluginId.js +1 -0
- package/esm/gen/types/PowerToolbarItem.d.ts +214 -0
- package/esm/gen/types/PowerToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/PowerToolbarItem.js +1 -0
- package/esm/gen/types/Profile.d.ts +8 -0
- package/esm/gen/types/Profile.d.ts.map +1 -0
- package/esm/gen/types/Profile.js +1 -0
- package/esm/gen/types/ProfileSettings.d.ts +4 -0
- package/esm/gen/types/ProfileSettings.d.ts.map +1 -0
- package/esm/gen/types/ProfileSettings.js +2 -0
- package/esm/gen/types/Rect.d.ts +7 -0
- package/esm/gen/types/Rect.d.ts.map +1 -0
- package/esm/gen/types/Rect.js +2 -0
- package/esm/gen/types/ResourceId.d.ts +2 -0
- package/esm/gen/types/ResourceId.d.ts.map +1 -0
- package/esm/gen/types/ResourceId.js +2 -0
- package/esm/gen/types/ResourceMetadata.d.ts +8 -0
- package/esm/gen/types/ResourceMetadata.d.ts.map +1 -0
- package/esm/gen/types/ResourceMetadata.js +2 -0
- package/esm/gen/types/SeelenLauncherMonitor.d.ts +2 -0
- package/esm/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherMonitor.js +2 -0
- package/esm/gen/types/SeelenLauncherRunner.d.ts +7 -0
- package/esm/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherRunner.js +2 -0
- package/esm/gen/types/SeelenLauncherSettings.d.ts +8 -0
- package/esm/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherSettings.js +1 -0
- package/esm/gen/types/SeelenWallSettings.d.ts +11 -0
- package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallSettings.js +1 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.js +1 -0
- package/esm/gen/types/SeelenWallWallpaper.d.ts +5 -0
- package/esm/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallWallpaper.js +2 -0
- package/esm/gen/types/SeelenWegMode.d.ts +2 -0
- package/esm/gen/types/SeelenWegMode.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegMode.js +2 -0
- package/esm/gen/types/SeelenWegSettings.d.ts +58 -0
- package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSettings.js +1 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.js +2 -0
- package/esm/gen/types/SeelenWegSide.d.ts +2 -0
- package/esm/gen/types/SeelenWegSide.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSide.js +2 -0
- package/esm/gen/types/Settings.d.ts +84 -0
- package/esm/gen/types/Settings.d.ts.map +1 -0
- package/esm/gen/types/Settings.js +1 -0
- package/esm/gen/types/SettingsToolbarItem.d.ts +54 -0
- package/esm/gen/types/SettingsToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/SettingsToolbarItem.js +1 -0
- package/esm/gen/types/StyleValue.d.ts +2 -0
- package/esm/gen/types/StyleValue.d.ts.map +1 -0
- package/esm/gen/types/StyleValue.js +2 -0
- package/esm/gen/types/TextToolbarItem.d.ts +114 -0
- package/esm/gen/types/TextToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/TextToolbarItem.js +1 -0
- package/esm/gen/types/Theme.d.ts +15 -0
- package/esm/gen/types/Theme.d.ts.map +1 -0
- package/esm/gen/types/Theme.js +1 -0
- package/esm/gen/types/ThemeInfo.d.ts +23 -0
- package/esm/gen/types/ThemeInfo.d.ts.map +1 -0
- package/esm/gen/types/ThemeInfo.js +2 -0
- package/esm/gen/types/ToolbarItem.d.ts +35 -0
- package/esm/gen/types/ToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/ToolbarItem.js +1 -0
- package/esm/gen/types/ToolbarItem2.d.ts +3 -0
- package/esm/gen/types/ToolbarItem2.d.ts.map +1 -0
- package/esm/gen/types/ToolbarItem2.js +1 -0
- package/esm/gen/types/TrayToolbarItem.d.ts +54 -0
- package/esm/gen/types/TrayToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/TrayToolbarItem.js +1 -0
- package/esm/gen/types/UpdateChannel.d.ts +2 -0
- package/esm/gen/types/UpdateChannel.d.ts.map +1 -0
- package/esm/gen/types/UpdateChannel.js +2 -0
- package/esm/gen/types/UpdaterSettings.d.ts +5 -0
- package/esm/gen/types/UpdaterSettings.d.ts.map +1 -0
- package/esm/gen/types/UpdaterSettings.js +1 -0
- package/esm/gen/types/VirtualDesktopStrategy.d.ts +2 -0
- package/esm/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
- package/esm/gen/types/VirtualDesktopStrategy.js +2 -0
- package/esm/gen/types/WManagerLayoutInfo.d.ts +19 -0
- package/esm/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
- package/esm/gen/types/WManagerLayoutInfo.js +2 -0
- package/esm/gen/types/WegItem.d.ts +14 -0
- package/esm/gen/types/WegItem.d.ts.map +1 -0
- package/esm/gen/types/WegItem.js +1 -0
- package/esm/gen/types/WegItems.d.ts +7 -0
- package/esm/gen/types/WegItems.d.ts.map +1 -0
- package/esm/gen/types/WegItems.js +1 -0
- package/esm/gen/types/Widget.d.ts +8 -0
- package/esm/gen/types/Widget.d.ts.map +1 -0
- package/esm/gen/types/Widget.js +1 -0
- package/esm/gen/types/WidgetId.d.ts +3 -0
- package/esm/gen/types/WidgetId.d.ts.map +1 -0
- package/esm/gen/types/WidgetId.js +1 -0
- package/esm/gen/types/WindowManagerLayout.d.ts +9 -0
- package/esm/gen/types/WindowManagerLayout.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerLayout.js +1 -0
- package/esm/gen/types/WindowManagerSettings.d.ts +42 -0
- package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerSettings.js +1 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.js +1 -0
- package/esm/gen/types/WmFallbackNode.d.ts +25 -0
- package/esm/gen/types/WmFallbackNode.d.ts.map +1 -0
- package/esm/gen/types/WmFallbackNode.js +1 -0
- package/esm/gen/types/WmHorizontalNode.d.ts +19 -0
- package/esm/gen/types/WmHorizontalNode.d.ts.map +1 -0
- package/esm/gen/types/WmHorizontalNode.js +1 -0
- package/esm/gen/types/WmLeafNode.d.ts +21 -0
- package/esm/gen/types/WmLeafNode.d.ts.map +1 -0
- package/esm/gen/types/WmLeafNode.js +1 -0
- package/esm/gen/types/WmNode.d.ts +17 -0
- package/esm/gen/types/WmNode.d.ts.map +1 -0
- package/esm/gen/types/WmNode.js +1 -0
- package/esm/gen/types/WmStackNode.d.ts +25 -0
- package/esm/gen/types/WmStackNode.d.ts.map +1 -0
- package/esm/gen/types/WmStackNode.js +1 -0
- package/esm/gen/types/WmVerticalNode.d.ts +19 -0
- package/esm/gen/types/WmVerticalNode.d.ts.map +1 -0
- package/esm/gen/types/WmVerticalNode.js +1 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceConfiguration.js +1 -0
- package/esm/gen/types/WorkspaceIdentifier.d.ts +6 -0
- package/esm/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceIdentifier.js +1 -0
- package/esm/gen/types/WorkspaceIdentifierType.d.ts +2 -0
- package/esm/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceIdentifierType.js +2 -0
- package/esm/gen/types/WorkspaceToolbarItem.d.ts +56 -0
- package/esm/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceToolbarItem.js +1 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.js +2 -0
- package/esm/gen/types/mod.d.ts +76 -0
- package/esm/gen/types/mod.d.ts.map +1 -0
- package/esm/gen/types/mod.js +75 -0
- package/esm/gen/types/serde_json/JsonValue.d.ts +4 -0
- package/esm/gen/types/serde_json/JsonValue.d.ts.map +1 -0
- package/esm/gen/types/serde_json/JsonValue.js +2 -0
- package/esm/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
- package/esm/src/handlers/commands.d.ts.map +1 -0
- package/esm/{handlers/invokers.js → src/handlers/commands.js} +6 -6
- package/{script → esm/src}/handlers/events.d.ts +2 -1
- package/esm/src/handlers/events.d.ts.map +1 -0
- package/esm/{handlers → src/handlers}/events.js +2 -1
- package/esm/src/handlers/invokers.d.ts +26 -0
- package/esm/src/handlers/invokers.d.ts.map +1 -0
- package/esm/src/handlers/invokers.js +13 -0
- package/esm/src/handlers/mod.d.ts +4 -0
- package/esm/src/handlers/mod.d.ts.map +1 -0
- package/esm/src/handlers/mod.js +3 -0
- package/esm/src/lib.d.ts +5 -0
- package/esm/src/lib.d.ts.map +1 -0
- package/esm/src/lib.js +4 -0
- package/esm/{state → src/state}/icon_pack.d.ts +1 -1
- package/esm/src/state/icon_pack.d.ts.map +1 -0
- package/esm/{state → src/state}/icon_pack.js +1 -1
- package/esm/src/state/mod.d.ts +40 -0
- package/esm/src/state/mod.d.ts.map +1 -0
- package/esm/{state/index.js → src/state/mod.js} +7 -7
- package/esm/src/state/placeholder.d.ts.map +1 -0
- package/esm/src/state/plugin.d.ts +26 -0
- package/esm/src/state/plugin.d.ts.map +1 -0
- package/esm/src/state/plugin.js +12 -0
- package/esm/src/state/profile.d.ts +23 -0
- package/esm/src/state/profile.d.ts.map +1 -0
- package/esm/src/state/profile.js +6 -0
- package/esm/src/state/settings.d.ts +51 -0
- package/esm/src/state/settings.d.ts.map +1 -0
- package/esm/src/state/settings.js +42 -0
- package/esm/src/state/settings_by_app.d.ts.map +1 -0
- package/esm/src/state/settings_by_monitor.d.ts +20 -0
- package/esm/src/state/settings_by_monitor.d.ts.map +1 -0
- package/esm/src/state/settings_by_monitor.js +16 -0
- package/esm/src/state/theme.d.ts +37 -0
- package/esm/src/state/theme.d.ts.map +1 -0
- package/esm/src/state/theme.js +7 -0
- package/esm/src/state/weg_items.d.ts +27 -0
- package/esm/src/state/weg_items.d.ts.map +1 -0
- package/esm/src/state/weg_items.js +17 -0
- package/esm/src/state/widget.d.ts +27 -0
- package/esm/src/state/widget.d.ts.map +1 -0
- package/esm/src/state/widget.js +7 -0
- package/esm/src/state/wm_layout.d.ts.map +1 -0
- package/esm/src/system_state/mod.d.ts +3 -0
- package/esm/src/system_state/mod.d.ts.map +1 -0
- package/esm/src/system_state/mod.js +2 -0
- package/esm/src/system_state/monitors.d.ts +25 -0
- package/esm/src/system_state/monitors.d.ts.map +1 -0
- package/esm/src/system_state/monitors.js +7 -0
- package/esm/src/system_state/uiColors.d.ts +33 -0
- package/esm/src/system_state/uiColors.d.ts.map +1 -0
- package/esm/{system_state/index.js → src/system_state/uiColors.js} +12 -12
- package/esm/src/utils/List.d.ts +25 -0
- package/esm/src/utils/List.d.ts.map +1 -0
- package/esm/src/utils/List.js +36 -0
- package/esm/src/utils/State.d.ts +11 -0
- package/esm/src/utils/State.d.ts.map +1 -0
- package/esm/src/utils/State.js +13 -0
- package/esm/src/utils/layered_hitbox.d.ts.map +1 -0
- package/esm/{utils → src/utils}/layered_hitbox.js +1 -1
- package/{script/utils/index.d.ts → esm/src/utils/mod.d.ts} +8 -5
- package/esm/src/utils/mod.d.ts.map +1 -0
- package/esm/{utils/index.js → src/utils/mod.js} +8 -7
- package/package.json +9 -7
- package/readme.md +1 -1
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +187 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +29 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +156 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.js +73 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.js +135 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.js +167 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.js +108 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +113 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.js +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.js +213 -0
- package/script/gen/types/AhkVar.d.ts +6 -0
- package/script/gen/types/AhkVar.d.ts.map +1 -0
- package/script/gen/types/AhkVar.js +3 -0
- package/script/gen/types/AhkVarList.d.ts +54 -0
- package/script/gen/types/AhkVarList.d.ts.map +1 -0
- package/script/gen/types/AppConfig.d.ts +33 -0
- package/script/gen/types/AppConfig.d.ts.map +1 -0
- package/script/gen/types/AppConfig.js +2 -0
- package/script/gen/types/AppExtraFlag.d.ts +2 -0
- package/script/gen/types/AppExtraFlag.d.ts.map +1 -0
- package/script/gen/types/AppExtraFlag.js +3 -0
- package/script/gen/types/AppIdentifier.d.ts +11 -0
- package/script/gen/types/AppIdentifier.d.ts.map +1 -0
- package/script/gen/types/AppIdentifier.js +2 -0
- package/script/gen/types/AppIdentifierType.d.ts +2 -0
- package/script/gen/types/AppIdentifierType.d.ts.map +1 -0
- package/script/gen/types/AppIdentifierType.js +3 -0
- package/script/gen/types/Border.d.ts +6 -0
- package/script/gen/types/Border.d.ts.map +1 -0
- package/script/gen/types/Border.js +3 -0
- package/script/gen/types/DateToolbarItem.d.ts +71 -0
- package/script/gen/types/DateToolbarItem.d.ts.map +1 -0
- package/script/gen/types/DateToolbarItem.js +2 -0
- package/script/gen/types/DateUpdateInterval.d.ts +2 -0
- package/script/gen/types/DateUpdateInterval.d.ts.map +1 -0
- package/script/gen/types/DateUpdateInterval.js +3 -0
- package/script/gen/types/DeviceToolbarItem.d.ts +54 -0
- package/script/gen/types/DeviceToolbarItem.d.ts.map +1 -0
- package/script/gen/types/DeviceToolbarItem.js +2 -0
- package/script/gen/types/FancyToolbarSettings.d.ts +32 -0
- package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettings.js +2 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.js +3 -0
- package/script/gen/types/FloatingWindowSettings.d.ts +5 -0
- package/script/gen/types/FloatingWindowSettings.d.ts.map +1 -0
- package/script/gen/types/FloatingWindowSettings.js +3 -0
- package/script/gen/types/GenericToolbarItem.d.ts +82 -0
- package/script/gen/types/GenericToolbarItem.d.ts.map +1 -0
- package/script/gen/types/GenericToolbarItem.js +2 -0
- package/script/gen/types/HideMode.d.ts +2 -0
- package/script/gen/types/HideMode.d.ts.map +1 -0
- package/script/gen/types/HideMode.js +3 -0
- package/script/gen/types/IconPack.d.ts +13 -0
- package/script/gen/types/IconPack.d.ts.map +1 -0
- package/script/gen/types/IconPack.js +2 -0
- package/script/gen/types/MatchingStrategy.d.ts +2 -0
- package/script/gen/types/MatchingStrategy.d.ts.map +1 -0
- package/script/gen/types/MatchingStrategy.js +3 -0
- package/script/gen/types/MediaToolbarItem.d.ts +138 -0
- package/script/gen/types/MediaToolbarItem.d.ts.map +1 -0
- package/script/gen/types/MediaToolbarItem.js +2 -0
- package/script/gen/types/MonitorConfiguration.d.ts +16 -0
- package/script/gen/types/MonitorConfiguration.d.ts.map +1 -0
- package/script/gen/types/MonitorConfiguration.js +2 -0
- package/script/gen/types/NetworkToolbarItem.d.ts +118 -0
- package/script/gen/types/NetworkToolbarItem.d.ts.map +1 -0
- package/script/gen/types/NetworkToolbarItem.js +2 -0
- package/script/gen/types/NoFallbackBehavior.d.ts +2 -0
- package/script/gen/types/NoFallbackBehavior.d.ts.map +1 -0
- package/script/gen/types/NoFallbackBehavior.js +3 -0
- package/script/gen/types/NodeSubtype.d.ts +2 -0
- package/script/gen/types/NodeSubtype.d.ts.map +1 -0
- package/script/gen/types/NodeSubtype.js +3 -0
- package/script/gen/types/NotificationsToolbarItem.d.ts +62 -0
- package/script/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
- package/script/gen/types/NotificationsToolbarItem.js +2 -0
- package/script/gen/types/PinnedWegItemData.d.ts +29 -0
- package/script/gen/types/PinnedWegItemData.d.ts.map +1 -0
- package/script/gen/types/PinnedWegItemData.js +3 -0
- package/script/gen/types/Placeholder.d.ts +21 -0
- package/script/gen/types/Placeholder.d.ts.map +1 -0
- package/script/gen/types/Placeholder.js +2 -0
- package/script/gen/types/PlaceholderInfo.d.ts +19 -0
- package/script/gen/types/PlaceholderInfo.d.ts.map +1 -0
- package/script/gen/types/PlaceholderInfo.js +3 -0
- package/script/gen/types/Plugin.d.ts +11 -0
- package/script/gen/types/Plugin.d.ts.map +1 -0
- package/script/gen/types/Plugin.js +2 -0
- package/script/gen/types/PluginId.d.ts +3 -0
- package/script/gen/types/PluginId.d.ts.map +1 -0
- package/script/gen/types/PluginId.js +2 -0
- package/script/gen/types/PowerToolbarItem.d.ts +214 -0
- package/script/gen/types/PowerToolbarItem.d.ts.map +1 -0
- package/script/gen/types/PowerToolbarItem.js +2 -0
- package/script/gen/types/Profile.d.ts +8 -0
- package/script/gen/types/Profile.d.ts.map +1 -0
- package/script/gen/types/Profile.js +2 -0
- package/script/gen/types/ProfileSettings.d.ts +4 -0
- package/script/gen/types/ProfileSettings.d.ts.map +1 -0
- package/script/gen/types/ProfileSettings.js +3 -0
- package/script/gen/types/Rect.d.ts +7 -0
- package/script/gen/types/Rect.d.ts.map +1 -0
- package/script/gen/types/Rect.js +3 -0
- package/script/gen/types/ResourceId.d.ts +2 -0
- package/script/gen/types/ResourceId.d.ts.map +1 -0
- package/script/gen/types/ResourceId.js +3 -0
- package/script/gen/types/ResourceMetadata.d.ts +8 -0
- package/script/gen/types/ResourceMetadata.d.ts.map +1 -0
- package/script/gen/types/ResourceMetadata.js +3 -0
- package/script/gen/types/SeelenLauncherMonitor.d.ts +2 -0
- package/script/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherMonitor.js +3 -0
- package/script/gen/types/SeelenLauncherRunner.d.ts +7 -0
- package/script/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherRunner.js +3 -0
- package/script/gen/types/SeelenLauncherSettings.d.ts +8 -0
- package/script/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherSettings.js +2 -0
- package/script/gen/types/SeelenWallSettings.d.ts +11 -0
- package/script/gen/types/SeelenWallSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenWallSettings.js +2 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.js +2 -0
- package/script/gen/types/SeelenWallWallpaper.d.ts +5 -0
- package/script/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
- package/script/gen/types/SeelenWallWallpaper.js +3 -0
- package/script/gen/types/SeelenWegMode.d.ts +2 -0
- package/script/gen/types/SeelenWegMode.d.ts.map +1 -0
- package/script/gen/types/SeelenWegMode.js +3 -0
- package/script/gen/types/SeelenWegSettings.d.ts +58 -0
- package/script/gen/types/SeelenWegSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSettings.js +2 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.js +3 -0
- package/script/gen/types/SeelenWegSide.d.ts +2 -0
- package/script/gen/types/SeelenWegSide.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSide.js +3 -0
- package/script/gen/types/Settings.d.ts +84 -0
- package/script/gen/types/Settings.d.ts.map +1 -0
- package/script/gen/types/Settings.js +2 -0
- package/script/gen/types/SettingsToolbarItem.d.ts +54 -0
- package/script/gen/types/SettingsToolbarItem.d.ts.map +1 -0
- package/script/gen/types/SettingsToolbarItem.js +2 -0
- package/script/gen/types/StyleValue.d.ts +2 -0
- package/script/gen/types/StyleValue.d.ts.map +1 -0
- package/script/gen/types/StyleValue.js +3 -0
- package/script/gen/types/TextToolbarItem.d.ts +114 -0
- package/script/gen/types/TextToolbarItem.d.ts.map +1 -0
- package/script/gen/types/TextToolbarItem.js +2 -0
- package/script/gen/types/Theme.d.ts +15 -0
- package/script/gen/types/Theme.d.ts.map +1 -0
- package/script/gen/types/Theme.js +2 -0
- package/script/gen/types/ThemeInfo.d.ts +23 -0
- package/script/gen/types/ThemeInfo.d.ts.map +1 -0
- package/script/gen/types/ThemeInfo.js +3 -0
- package/script/gen/types/ToolbarItem.d.ts +35 -0
- package/script/gen/types/ToolbarItem.d.ts.map +1 -0
- package/script/gen/types/ToolbarItem.js +2 -0
- package/script/gen/types/ToolbarItem2.d.ts +3 -0
- package/script/gen/types/ToolbarItem2.d.ts.map +1 -0
- package/script/gen/types/ToolbarItem2.js +2 -0
- package/script/gen/types/TrayToolbarItem.d.ts +54 -0
- package/script/gen/types/TrayToolbarItem.d.ts.map +1 -0
- package/script/gen/types/TrayToolbarItem.js +2 -0
- package/script/gen/types/UpdateChannel.d.ts +2 -0
- package/script/gen/types/UpdateChannel.d.ts.map +1 -0
- package/script/gen/types/UpdateChannel.js +3 -0
- package/script/gen/types/UpdaterSettings.d.ts +5 -0
- package/script/gen/types/UpdaterSettings.d.ts.map +1 -0
- package/script/gen/types/UpdaterSettings.js +2 -0
- package/script/gen/types/VirtualDesktopStrategy.d.ts +2 -0
- package/script/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
- package/script/gen/types/VirtualDesktopStrategy.js +3 -0
- package/script/gen/types/WManagerLayoutInfo.d.ts +19 -0
- package/script/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
- package/script/gen/types/WManagerLayoutInfo.js +3 -0
- package/script/gen/types/WegItem.d.ts +14 -0
- package/script/gen/types/WegItem.d.ts.map +1 -0
- package/script/gen/types/WegItem.js +2 -0
- package/script/gen/types/WegItems.d.ts +7 -0
- package/script/gen/types/WegItems.d.ts.map +1 -0
- package/script/gen/types/WegItems.js +2 -0
- package/script/gen/types/Widget.d.ts +8 -0
- package/script/gen/types/Widget.d.ts.map +1 -0
- package/script/gen/types/Widget.js +2 -0
- package/script/gen/types/WidgetId.d.ts +3 -0
- package/script/gen/types/WidgetId.d.ts.map +1 -0
- package/script/gen/types/WidgetId.js +2 -0
- package/script/gen/types/WindowManagerLayout.d.ts +9 -0
- package/script/gen/types/WindowManagerLayout.d.ts.map +1 -0
- package/script/gen/types/WindowManagerLayout.js +2 -0
- package/script/gen/types/WindowManagerSettings.d.ts +42 -0
- package/script/gen/types/WindowManagerSettings.d.ts.map +1 -0
- package/script/gen/types/WindowManagerSettings.js +2 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.js +2 -0
- package/script/gen/types/WmFallbackNode.d.ts +25 -0
- package/script/gen/types/WmFallbackNode.d.ts.map +1 -0
- package/script/gen/types/WmFallbackNode.js +2 -0
- package/script/gen/types/WmHorizontalNode.d.ts +19 -0
- package/script/gen/types/WmHorizontalNode.d.ts.map +1 -0
- package/script/gen/types/WmHorizontalNode.js +2 -0
- package/script/gen/types/WmLeafNode.d.ts +21 -0
- package/script/gen/types/WmLeafNode.d.ts.map +1 -0
- package/script/gen/types/WmLeafNode.js +2 -0
- package/script/gen/types/WmNode.d.ts +17 -0
- package/script/gen/types/WmNode.d.ts.map +1 -0
- package/script/gen/types/WmNode.js +2 -0
- package/script/gen/types/WmStackNode.d.ts +25 -0
- package/script/gen/types/WmStackNode.d.ts.map +1 -0
- package/script/gen/types/WmStackNode.js +2 -0
- package/script/gen/types/WmVerticalNode.d.ts +19 -0
- package/script/gen/types/WmVerticalNode.d.ts.map +1 -0
- package/script/gen/types/WmVerticalNode.js +2 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/script/gen/types/WorkspaceConfiguration.js +2 -0
- package/script/gen/types/WorkspaceIdentifier.d.ts +6 -0
- package/script/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
- package/script/gen/types/WorkspaceIdentifier.js +2 -0
- package/script/gen/types/WorkspaceIdentifierType.d.ts +2 -0
- package/script/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
- package/script/gen/types/WorkspaceIdentifierType.js +3 -0
- package/script/gen/types/WorkspaceToolbarItem.d.ts +56 -0
- package/script/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
- package/script/gen/types/WorkspaceToolbarItem.js +2 -0
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
- package/script/gen/types/WorkspaceToolbarItemMode.js +3 -0
- package/script/gen/types/mod.d.ts +76 -0
- package/script/gen/types/mod.d.ts.map +1 -0
- package/script/gen/types/mod.js +91 -0
- package/script/gen/types/serde_json/JsonValue.d.ts +4 -0
- package/script/gen/types/serde_json/JsonValue.d.ts.map +1 -0
- package/script/gen/types/serde_json/JsonValue.js +3 -0
- package/script/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
- package/script/src/handlers/commands.d.ts.map +1 -0
- package/script/{handlers/invokers.js → src/handlers/commands.js} +6 -7
- package/{esm → script/src}/handlers/events.d.ts +2 -1
- package/script/src/handlers/events.d.ts.map +1 -0
- package/script/{handlers → src/handlers}/events.js +2 -1
- package/script/src/handlers/invokers.d.ts +26 -0
- package/script/src/handlers/invokers.d.ts.map +1 -0
- package/script/{handlers/index.js → src/handlers/invokers.js} +12 -14
- package/script/src/handlers/mod.d.ts +4 -0
- package/script/src/handlers/mod.d.ts.map +1 -0
- package/script/src/handlers/mod.js +19 -0
- package/script/src/lib.d.ts +5 -0
- package/script/src/lib.d.ts.map +1 -0
- package/script/{lib.js → src/lib.js} +4 -4
- package/script/{state → src/state}/icon_pack.d.ts +1 -1
- package/script/src/state/icon_pack.d.ts.map +1 -0
- package/script/{state → src/state}/icon_pack.js +2 -2
- package/script/src/state/mod.d.ts +40 -0
- package/script/src/state/mod.d.ts.map +1 -0
- package/script/{state/index.js → src/state/mod.js} +7 -7
- package/script/src/state/placeholder.d.ts.map +1 -0
- package/script/src/state/plugin.d.ts +26 -0
- package/script/src/state/plugin.d.ts.map +1 -0
- package/script/src/state/plugin.js +16 -0
- package/script/src/state/profile.d.ts +23 -0
- package/script/src/state/profile.d.ts.map +1 -0
- package/script/src/state/profile.js +10 -0
- package/script/src/state/settings.d.ts +51 -0
- package/script/src/state/settings.d.ts.map +1 -0
- package/script/src/state/settings.js +46 -0
- package/script/src/state/settings_by_app.d.ts.map +1 -0
- package/script/src/state/settings_by_monitor.d.ts +20 -0
- package/script/src/state/settings_by_monitor.d.ts.map +1 -0
- package/script/src/state/settings_by_monitor.js +20 -0
- package/script/src/state/theme.d.ts +37 -0
- package/script/src/state/theme.d.ts.map +1 -0
- package/script/src/state/theme.js +11 -0
- package/script/src/state/weg_items.d.ts +27 -0
- package/script/src/state/weg_items.d.ts.map +1 -0
- package/script/src/state/weg_items.js +21 -0
- package/script/src/state/widget.d.ts +27 -0
- package/script/src/state/widget.d.ts.map +1 -0
- package/script/src/state/widget.js +11 -0
- package/script/src/state/wm_layout.d.ts.map +1 -0
- package/script/src/system_state/mod.d.ts +3 -0
- package/script/src/system_state/mod.d.ts.map +1 -0
- package/script/src/system_state/mod.js +18 -0
- package/script/src/system_state/monitors.d.ts +25 -0
- package/script/src/system_state/monitors.d.ts.map +1 -0
- package/script/src/system_state/monitors.js +11 -0
- package/script/src/system_state/uiColors.d.ts +33 -0
- package/script/src/system_state/uiColors.d.ts.map +1 -0
- package/script/{system_state/index.js → src/system_state/uiColors.js} +12 -12
- package/script/src/utils/List.d.ts +25 -0
- package/script/src/utils/List.d.ts.map +1 -0
- package/script/src/utils/List.js +40 -0
- package/script/src/utils/State.d.ts +11 -0
- package/script/src/utils/State.d.ts.map +1 -0
- package/script/src/utils/State.js +17 -0
- package/script/src/utils/layered_hitbox.d.ts.map +1 -0
- package/script/{utils → src/utils}/layered_hitbox.js +3 -3
- package/{esm/utils/index.d.ts → script/src/utils/mod.d.ts} +8 -5
- package/script/src/utils/mod.d.ts.map +1 -0
- package/script/{utils/index.js → src/utils/mod.js} +8 -7
- package/esm/_dnt.shims.d.ts +0 -5
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -61
- package/esm/handlers/events.d.ts.map +0 -1
- package/esm/handlers/index.d.ts +0 -11
- package/esm/handlers/index.d.ts.map +0 -1
- package/esm/handlers/index.js +0 -16
- package/esm/handlers/invokers.d.ts.map +0 -1
- package/esm/lib.d.ts +0 -5
- package/esm/lib.d.ts.map +0 -1
- package/esm/lib.js +0 -4
- package/esm/state/icon_pack.d.ts.map +0 -1
- package/esm/state/index.d.ts +0 -24
- package/esm/state/index.d.ts.map +0 -1
- package/esm/state/placeholder.d.ts.map +0 -1
- package/esm/state/plugin.d.ts +0 -17
- package/esm/state/plugin.d.ts.map +0 -1
- package/esm/state/plugin.js +0 -31
- package/esm/state/profile.d.ts +0 -16
- package/esm/state/profile.d.ts.map +0 -1
- package/esm/state/profile.js +0 -13
- package/esm/state/settings.d.ts +0 -175
- package/esm/state/settings.d.ts.map +0 -1
- package/esm/state/settings.js +0 -195
- package/esm/state/settings_by_app.d.ts.map +0 -1
- package/esm/state/settings_by_monitor.d.ts +0 -43
- package/esm/state/settings_by_monitor.d.ts.map +0 -1
- package/esm/state/settings_by_monitor.js +0 -46
- package/esm/state/theme.d.ts +0 -31
- package/esm/state/theme.d.ts.map +0 -1
- package/esm/state/weg_items.d.ts +0 -36
- package/esm/state/weg_items.d.ts.map +0 -1
- package/esm/state/weg_items.js +0 -8
- package/esm/state/widget.d.ts +0 -4
- package/esm/state/widget.d.ts.map +0 -1
- package/esm/state/widget.js +0 -3
- package/esm/state/wm_layout.d.ts.map +0 -1
- package/esm/system_state/index.d.ts +0 -19
- package/esm/system_state/index.d.ts.map +0 -1
- package/esm/utils/hooks.d.ts +0 -2
- package/esm/utils/hooks.d.ts.map +0 -1
- package/esm/utils/hooks.js +0 -43
- package/esm/utils/index.d.ts.map +0 -1
- package/esm/utils/layered_hitbox.d.ts.map +0 -1
- package/script/_dnt.shims.d.ts +0 -5
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -65
- package/script/handlers/events.d.ts.map +0 -1
- package/script/handlers/index.d.ts +0 -11
- package/script/handlers/index.d.ts.map +0 -1
- package/script/handlers/invokers.d.ts.map +0 -1
- package/script/lib.d.ts +0 -5
- package/script/lib.d.ts.map +0 -1
- package/script/state/icon_pack.d.ts.map +0 -1
- package/script/state/index.d.ts +0 -24
- package/script/state/index.d.ts.map +0 -1
- package/script/state/placeholder.d.ts.map +0 -1
- package/script/state/plugin.d.ts +0 -17
- package/script/state/plugin.d.ts.map +0 -1
- package/script/state/plugin.js +0 -36
- package/script/state/profile.d.ts +0 -16
- package/script/state/profile.d.ts.map +0 -1
- package/script/state/profile.js +0 -17
- package/script/state/settings.d.ts +0 -175
- package/script/state/settings.d.ts.map +0 -1
- package/script/state/settings.js +0 -234
- package/script/state/settings_by_app.d.ts.map +0 -1
- package/script/state/settings_by_monitor.d.ts +0 -43
- package/script/state/settings_by_monitor.d.ts.map +0 -1
- package/script/state/settings_by_monitor.js +0 -56
- package/script/state/theme.d.ts +0 -31
- package/script/state/theme.d.ts.map +0 -1
- package/script/state/weg_items.d.ts +0 -36
- package/script/state/weg_items.d.ts.map +0 -1
- package/script/state/weg_items.js +0 -11
- package/script/state/widget.d.ts +0 -4
- package/script/state/widget.d.ts.map +0 -1
- package/script/state/widget.js +0 -7
- package/script/state/wm_layout.d.ts.map +0 -1
- package/script/system_state/index.d.ts +0 -19
- package/script/system_state/index.d.ts.map +0 -1
- package/script/utils/hooks.d.ts +0 -2
- package/script/utils/hooks.d.ts.map +0 -1
- package/script/utils/hooks.js +0 -44
- package/script/utils/index.d.ts.map +0 -1
- package/script/utils/layered_hitbox.d.ts.map +0 -1
- /package/esm/{state/theme.js → gen/types/AhkVarList.js} +0 -0
- /package/esm/{state → src/state}/placeholder.d.ts +0 -0
- /package/esm/{state → src/state}/placeholder.js +0 -0
- /package/esm/{state → src/state}/settings_by_app.d.ts +0 -0
- /package/esm/{state → src/state}/settings_by_app.js +0 -0
- /package/esm/{state → src/state}/wm_layout.d.ts +0 -0
- /package/esm/{state → src/state}/wm_layout.js +0 -0
- /package/esm/{utils → src/utils}/layered_hitbox.d.ts +0 -0
- /package/script/{state/theme.js → gen/types/AhkVarList.js} +0 -0
- /package/script/{state → src/state}/placeholder.d.ts +0 -0
- /package/script/{state → src/state}/placeholder.js +0 -0
- /package/script/{state → src/state}/settings_by_app.d.ts +0 -0
- /package/script/{state → src/state}/settings_by_app.js +0 -0
- /package/script/{state → src/state}/wm_layout.d.ts +0 -0
- /package/script/{state → src/state}/wm_layout.js +0 -0
- /package/script/{utils → src/utils}/layered_hitbox.d.ts +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* Utilities for
|
|
5
|
+
* {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03 | base58}
|
|
6
|
+
* encoding and decoding.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { encodeBase58, decodeBase58 } from "@std/encoding/base58";
|
|
10
|
+
* import { assertEquals } from "@std/assert";
|
|
11
|
+
*
|
|
12
|
+
* const hello = new TextEncoder().encode("Hello World!");
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(encodeBase58(hello), "2NEpo7TZRRrLZSi2U");
|
|
15
|
+
*
|
|
16
|
+
* assertEquals(decodeBase58("2NEpo7TZRRrLZSi2U"), hello);
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @module
|
|
20
|
+
*/
|
|
21
|
+
import { validateBinaryLike } from "./_validate_binary_like.js";
|
|
22
|
+
// deno-fmt-ignore
|
|
23
|
+
const mapBase58 = {
|
|
24
|
+
"1": 0, "2": 1, "3": 2, "4": 3, "5": 4, "6": 5, "7": 6, "8": 7, "9": 8, A: 9,
|
|
25
|
+
B: 10, C: 11, D: 12, E: 13, F: 14, G: 15, H: 16, J: 17, K: 18, L: 19, M: 20,
|
|
26
|
+
N: 21, P: 22, Q: 23, R: 24, S: 25, T: 26, U: 27, V: 28, W: 29, X: 30, Y: 31,
|
|
27
|
+
Z: 32, a: 33, b: 34, c: 35, d: 36, e: 37, f: 38, g: 39, h: 40, i: 41, j: 42,
|
|
28
|
+
k: 43, m: 44, n: 45, o: 46, p: 47, q: 48, r: 49, s: 50, t: 51, u: 52, v: 53,
|
|
29
|
+
w: 54, x: 55, y: 56, z: 57
|
|
30
|
+
};
|
|
31
|
+
const base58alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split("");
|
|
32
|
+
/**
|
|
33
|
+
* Converts data into a base58-encoded string.
|
|
34
|
+
*
|
|
35
|
+
* @see {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03#section-3}
|
|
36
|
+
*
|
|
37
|
+
* @param data The data to encode.
|
|
38
|
+
* @returns The base58-encoded string.
|
|
39
|
+
*
|
|
40
|
+
* @example Usage
|
|
41
|
+
* ```ts
|
|
42
|
+
* import { encodeBase58 } from "@std/encoding/base58";
|
|
43
|
+
* import { assertEquals } from "@std/assert";
|
|
44
|
+
*
|
|
45
|
+
* assertEquals(encodeBase58("Hello World!"), "2NEpo7TZRRrLZSi2U");
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export function encodeBase58(data) {
|
|
49
|
+
const uint8tData = validateBinaryLike(data);
|
|
50
|
+
let length = 0;
|
|
51
|
+
let zeroes = 0;
|
|
52
|
+
// Counting leading zeroes
|
|
53
|
+
let index = 0;
|
|
54
|
+
while (uint8tData[index] === 0) {
|
|
55
|
+
zeroes++;
|
|
56
|
+
index++;
|
|
57
|
+
}
|
|
58
|
+
const notZeroUint8Data = uint8tData.slice(index);
|
|
59
|
+
const size = Math.round((uint8tData.length * 138) / 100 + 1);
|
|
60
|
+
const b58Encoding = [];
|
|
61
|
+
notZeroUint8Data.forEach((byte) => {
|
|
62
|
+
let i = 0;
|
|
63
|
+
let carry = byte;
|
|
64
|
+
for (let reverseIterator = size - 1; (carry > 0 || i < length) && reverseIterator !== -1; reverseIterator--, i++) {
|
|
65
|
+
carry += (b58Encoding[reverseIterator] ?? 0) * 256;
|
|
66
|
+
b58Encoding[reverseIterator] = Math.round(carry % 58);
|
|
67
|
+
carry = Math.floor(carry / 58);
|
|
68
|
+
}
|
|
69
|
+
length = i;
|
|
70
|
+
});
|
|
71
|
+
const strResult = Array.from({
|
|
72
|
+
length: b58Encoding.length + zeroes,
|
|
73
|
+
});
|
|
74
|
+
if (zeroes > 0) {
|
|
75
|
+
strResult.fill("1", 0, zeroes);
|
|
76
|
+
}
|
|
77
|
+
b58Encoding.forEach((byteValue) => strResult.push(base58alphabet[byteValue]));
|
|
78
|
+
return strResult.join("");
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Decodes a base58-encoded string.
|
|
82
|
+
*
|
|
83
|
+
* @see {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03#section-4}
|
|
84
|
+
*
|
|
85
|
+
* @param b58 The base58-encoded string to decode.
|
|
86
|
+
* @returns The decoded data.
|
|
87
|
+
*
|
|
88
|
+
* @example Usage
|
|
89
|
+
* ```ts
|
|
90
|
+
* import { decodeBase58 } from "@std/encoding/base58";
|
|
91
|
+
* import { assertEquals } from "@std/assert";
|
|
92
|
+
*
|
|
93
|
+
* assertEquals(
|
|
94
|
+
* decodeBase58("2NEpo7TZRRrLZSi2U"),
|
|
95
|
+
* new TextEncoder().encode("Hello World!")
|
|
96
|
+
* );
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export function decodeBase58(b58) {
|
|
100
|
+
const splitInput = b58.trim().split("");
|
|
101
|
+
let length = 0;
|
|
102
|
+
let ones = 0;
|
|
103
|
+
// Counting leading ones
|
|
104
|
+
let index = 0;
|
|
105
|
+
while (splitInput[index] === "1") {
|
|
106
|
+
ones++;
|
|
107
|
+
index++;
|
|
108
|
+
}
|
|
109
|
+
const notZeroData = splitInput.slice(index);
|
|
110
|
+
const size = Math.round((b58.length * 733) / 1000 + 1);
|
|
111
|
+
const output = [];
|
|
112
|
+
notZeroData.forEach((char, idx) => {
|
|
113
|
+
let carry = mapBase58[char];
|
|
114
|
+
let i = 0;
|
|
115
|
+
if (carry === undefined) {
|
|
116
|
+
throw new TypeError(`Invalid base58 char at index ${idx} with value ${char}`);
|
|
117
|
+
}
|
|
118
|
+
for (let reverseIterator = size - 1; (carry > 0 || i < length) && reverseIterator !== -1; reverseIterator--, i++) {
|
|
119
|
+
carry += 58 * (output[reverseIterator] ?? 0);
|
|
120
|
+
output[reverseIterator] = Math.round(carry % 256);
|
|
121
|
+
carry = Math.floor(carry / 256);
|
|
122
|
+
}
|
|
123
|
+
length = i;
|
|
124
|
+
});
|
|
125
|
+
const validOutput = output.filter((item) => item !== undefined);
|
|
126
|
+
if (ones > 0) {
|
|
127
|
+
const onesResult = Array.from({ length: ones }).fill(0, 0, ones);
|
|
128
|
+
return new Uint8Array([...onesResult, ...validOutput]);
|
|
129
|
+
}
|
|
130
|
+
return new Uint8Array(validOutput);
|
|
131
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts data into a base64-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
5
|
+
*
|
|
6
|
+
* @param data The data to encode.
|
|
7
|
+
* @returns The base64-encoded string.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { encodeBase64 } from "@std/encoding/base64";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(encodeBase64("foobar"), "Zm9vYmFy");
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function encodeBase64(data: ArrayBuffer | Uint8Array | string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Decodes a base64-encoded string.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
22
|
+
*
|
|
23
|
+
* @param b64 The base64-encoded string to decode.
|
|
24
|
+
* @returns The decoded data.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { decodeBase64 } from "@std/encoding/base64";
|
|
29
|
+
* import { assertEquals } from "@std/assert";
|
|
30
|
+
*
|
|
31
|
+
* assertEquals(
|
|
32
|
+
* decodeBase64("Zm9vYmFy"),
|
|
33
|
+
* new TextEncoder().encode("foobar")
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function decodeBase64(b64: string): Uint8Array;
|
|
38
|
+
//# sourceMappingURL=base64.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/base64.ts"],"names":[],"mappings":"AA6FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* Utilities for
|
|
5
|
+
* {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4 | base64}
|
|
6
|
+
* encoding and decoding.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import {
|
|
10
|
+
* encodeBase64,
|
|
11
|
+
* decodeBase64,
|
|
12
|
+
* } from "@std/encoding/base64";
|
|
13
|
+
* import { assertEquals } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* const foobar = new TextEncoder().encode("foobar");
|
|
16
|
+
*
|
|
17
|
+
* assertEquals(encodeBase64(foobar), "Zm9vYmFy");
|
|
18
|
+
* assertEquals(decodeBase64("Zm9vYmFy"), foobar);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
import { validateBinaryLike } from "./_validate_binary_like.js";
|
|
24
|
+
const base64abc = [
|
|
25
|
+
"A",
|
|
26
|
+
"B",
|
|
27
|
+
"C",
|
|
28
|
+
"D",
|
|
29
|
+
"E",
|
|
30
|
+
"F",
|
|
31
|
+
"G",
|
|
32
|
+
"H",
|
|
33
|
+
"I",
|
|
34
|
+
"J",
|
|
35
|
+
"K",
|
|
36
|
+
"L",
|
|
37
|
+
"M",
|
|
38
|
+
"N",
|
|
39
|
+
"O",
|
|
40
|
+
"P",
|
|
41
|
+
"Q",
|
|
42
|
+
"R",
|
|
43
|
+
"S",
|
|
44
|
+
"T",
|
|
45
|
+
"U",
|
|
46
|
+
"V",
|
|
47
|
+
"W",
|
|
48
|
+
"X",
|
|
49
|
+
"Y",
|
|
50
|
+
"Z",
|
|
51
|
+
"a",
|
|
52
|
+
"b",
|
|
53
|
+
"c",
|
|
54
|
+
"d",
|
|
55
|
+
"e",
|
|
56
|
+
"f",
|
|
57
|
+
"g",
|
|
58
|
+
"h",
|
|
59
|
+
"i",
|
|
60
|
+
"j",
|
|
61
|
+
"k",
|
|
62
|
+
"l",
|
|
63
|
+
"m",
|
|
64
|
+
"n",
|
|
65
|
+
"o",
|
|
66
|
+
"p",
|
|
67
|
+
"q",
|
|
68
|
+
"r",
|
|
69
|
+
"s",
|
|
70
|
+
"t",
|
|
71
|
+
"u",
|
|
72
|
+
"v",
|
|
73
|
+
"w",
|
|
74
|
+
"x",
|
|
75
|
+
"y",
|
|
76
|
+
"z",
|
|
77
|
+
"0",
|
|
78
|
+
"1",
|
|
79
|
+
"2",
|
|
80
|
+
"3",
|
|
81
|
+
"4",
|
|
82
|
+
"5",
|
|
83
|
+
"6",
|
|
84
|
+
"7",
|
|
85
|
+
"8",
|
|
86
|
+
"9",
|
|
87
|
+
"+",
|
|
88
|
+
"/",
|
|
89
|
+
];
|
|
90
|
+
/**
|
|
91
|
+
* Converts data into a base64-encoded string.
|
|
92
|
+
*
|
|
93
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
94
|
+
*
|
|
95
|
+
* @param data The data to encode.
|
|
96
|
+
* @returns The base64-encoded string.
|
|
97
|
+
*
|
|
98
|
+
* @example Usage
|
|
99
|
+
* ```ts
|
|
100
|
+
* import { encodeBase64 } from "@std/encoding/base64";
|
|
101
|
+
* import { assertEquals } from "@std/assert";
|
|
102
|
+
*
|
|
103
|
+
* assertEquals(encodeBase64("foobar"), "Zm9vYmFy");
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export function encodeBase64(data) {
|
|
107
|
+
// CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
108
|
+
const uint8 = validateBinaryLike(data);
|
|
109
|
+
let result = "";
|
|
110
|
+
let i;
|
|
111
|
+
const l = uint8.length;
|
|
112
|
+
for (i = 2; i < l; i += 3) {
|
|
113
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
114
|
+
result += base64abc[(((uint8[i - 2]) & 0x03) << 4) |
|
|
115
|
+
((uint8[i - 1]) >> 4)];
|
|
116
|
+
result += base64abc[(((uint8[i - 1]) & 0x0f) << 2) |
|
|
117
|
+
((uint8[i]) >> 6)];
|
|
118
|
+
result += base64abc[(uint8[i]) & 0x3f];
|
|
119
|
+
}
|
|
120
|
+
if (i === l + 1) {
|
|
121
|
+
// 1 octet yet to write
|
|
122
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
123
|
+
result += base64abc[((uint8[i - 2]) & 0x03) << 4];
|
|
124
|
+
result += "==";
|
|
125
|
+
}
|
|
126
|
+
if (i === l) {
|
|
127
|
+
// 2 octets yet to write
|
|
128
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
129
|
+
result += base64abc[(((uint8[i - 2]) & 0x03) << 4) |
|
|
130
|
+
((uint8[i - 1]) >> 4)];
|
|
131
|
+
result += base64abc[((uint8[i - 1]) & 0x0f) << 2];
|
|
132
|
+
result += "=";
|
|
133
|
+
}
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Decodes a base64-encoded string.
|
|
138
|
+
*
|
|
139
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
140
|
+
*
|
|
141
|
+
* @param b64 The base64-encoded string to decode.
|
|
142
|
+
* @returns The decoded data.
|
|
143
|
+
*
|
|
144
|
+
* @example Usage
|
|
145
|
+
* ```ts
|
|
146
|
+
* import { decodeBase64 } from "@std/encoding/base64";
|
|
147
|
+
* import { assertEquals } from "@std/assert";
|
|
148
|
+
*
|
|
149
|
+
* assertEquals(
|
|
150
|
+
* decodeBase64("Zm9vYmFy"),
|
|
151
|
+
* new TextEncoder().encode("foobar")
|
|
152
|
+
* );
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
export function decodeBase64(b64) {
|
|
156
|
+
const binString = atob(b64);
|
|
157
|
+
const size = binString.length;
|
|
158
|
+
const bytes = new Uint8Array(size);
|
|
159
|
+
for (let i = 0; i < size; i++) {
|
|
160
|
+
bytes[i] = binString.charCodeAt(i);
|
|
161
|
+
}
|
|
162
|
+
return bytes;
|
|
163
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert data into a base64url-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
|
|
5
|
+
*
|
|
6
|
+
* @param data The data to encode.
|
|
7
|
+
* @returns The base64url-encoded string.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { encodeBase64Url } from "@std/encoding/base64url";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(encodeBase64Url("foobar"), "Zm9vYmFy");
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function encodeBase64Url(data: ArrayBuffer | Uint8Array | string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Decodes a given base64url-encoded string.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
|
|
22
|
+
*
|
|
23
|
+
* @param b64url The base64url-encoded string to decode.
|
|
24
|
+
* @returns The decoded data.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { decodeBase64Url } from "@std/encoding/base64url";
|
|
29
|
+
* import { assertEquals } from "@std/assert";
|
|
30
|
+
*
|
|
31
|
+
* assertEquals(
|
|
32
|
+
* decodeBase64Url("Zm9vYmFy"),
|
|
33
|
+
* new TextEncoder().encode("foobar")
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function decodeBase64Url(b64url: string): Uint8Array;
|
|
38
|
+
//# sourceMappingURL=base64url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/base64url.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GACtC,MAAM,CAER;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE1D"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* Utilities for
|
|
5
|
+
* {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5 | base64url}
|
|
6
|
+
* encoding and decoding.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import * as base64 from "./base64.js";
|
|
11
|
+
/**
|
|
12
|
+
* Some variants allow or require omitting the padding '=' signs:
|
|
13
|
+
* https://en.wikipedia.org/wiki/Base64#The_URL_applications
|
|
14
|
+
*
|
|
15
|
+
* @param base64url
|
|
16
|
+
*/
|
|
17
|
+
function addPaddingToBase64url(base64url) {
|
|
18
|
+
if (base64url.length % 4 === 2)
|
|
19
|
+
return base64url + "==";
|
|
20
|
+
if (base64url.length % 4 === 3)
|
|
21
|
+
return base64url + "=";
|
|
22
|
+
if (base64url.length % 4 === 1) {
|
|
23
|
+
throw new TypeError("Illegal base64url string");
|
|
24
|
+
}
|
|
25
|
+
return base64url;
|
|
26
|
+
}
|
|
27
|
+
function convertBase64urlToBase64(b64url) {
|
|
28
|
+
if (!/^[-_A-Z0-9]*?={0,2}$/i.test(b64url)) {
|
|
29
|
+
// Contains characters not part of base64url spec.
|
|
30
|
+
throw new TypeError("Failed to decode base64url: invalid character");
|
|
31
|
+
}
|
|
32
|
+
return addPaddingToBase64url(b64url).replace(/\-/g, "+").replace(/_/g, "/");
|
|
33
|
+
}
|
|
34
|
+
function convertBase64ToBase64url(b64) {
|
|
35
|
+
return b64.endsWith("=")
|
|
36
|
+
? b64.endsWith("==")
|
|
37
|
+
? b64.replace(/\+/g, "-").replace(/\//g, "_").slice(0, -2)
|
|
38
|
+
: b64.replace(/\+/g, "-").replace(/\//g, "_").slice(0, -1)
|
|
39
|
+
: b64.replace(/\+/g, "-").replace(/\//g, "_");
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Convert data into a base64url-encoded string.
|
|
43
|
+
*
|
|
44
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
|
|
45
|
+
*
|
|
46
|
+
* @param data The data to encode.
|
|
47
|
+
* @returns The base64url-encoded string.
|
|
48
|
+
*
|
|
49
|
+
* @example Usage
|
|
50
|
+
* ```ts
|
|
51
|
+
* import { encodeBase64Url } from "@std/encoding/base64url";
|
|
52
|
+
* import { assertEquals } from "@std/assert";
|
|
53
|
+
*
|
|
54
|
+
* assertEquals(encodeBase64Url("foobar"), "Zm9vYmFy");
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export function encodeBase64Url(data) {
|
|
58
|
+
return convertBase64ToBase64url(base64.encodeBase64(data));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Decodes a given base64url-encoded string.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
|
|
64
|
+
*
|
|
65
|
+
* @param b64url The base64url-encoded string to decode.
|
|
66
|
+
* @returns The decoded data.
|
|
67
|
+
*
|
|
68
|
+
* @example Usage
|
|
69
|
+
* ```ts
|
|
70
|
+
* import { decodeBase64Url } from "@std/encoding/base64url";
|
|
71
|
+
* import { assertEquals } from "@std/assert";
|
|
72
|
+
*
|
|
73
|
+
* assertEquals(
|
|
74
|
+
* decodeBase64Url("Zm9vYmFy"),
|
|
75
|
+
* new TextEncoder().encode("foobar")
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export function decodeBase64Url(b64url) {
|
|
80
|
+
return base64.decodeBase64(convertBase64urlToBase64(b64url));
|
|
81
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts data into a hex-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @param src The data to encode.
|
|
5
|
+
*
|
|
6
|
+
* @returns The hex-encoded string.
|
|
7
|
+
*
|
|
8
|
+
* @example Usage
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { encodeHex } from "@std/encoding/hex";
|
|
11
|
+
* import { assertEquals } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* assertEquals(encodeHex("abc"), "616263");
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): string;
|
|
17
|
+
/**
|
|
18
|
+
* Decodes the given hex-encoded string. If the input is malformed, an error is
|
|
19
|
+
* thrown.
|
|
20
|
+
*
|
|
21
|
+
* @param src The hex-encoded string to decode.
|
|
22
|
+
*
|
|
23
|
+
* @returns The decoded data.
|
|
24
|
+
*
|
|
25
|
+
* @example Usage
|
|
26
|
+
* ```ts
|
|
27
|
+
* import { decodeHex } from "@std/encoding/hex";
|
|
28
|
+
* import { assertEquals } from "@std/assert";
|
|
29
|
+
*
|
|
30
|
+
* assertEquals(
|
|
31
|
+
* decodeHex("616263"),
|
|
32
|
+
* new TextEncoder().encode("abc"),
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare function decodeHex(src: string): Uint8Array;
|
|
37
|
+
//# sourceMappingURL=hex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/hex.ts"],"names":[],"mappings":"AAwDA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAUxE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAiBjD"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Copyright 2009 The Go Authors. All rights reserved.
|
|
2
|
+
// https://github.com/golang/go/blob/master/LICENSE
|
|
3
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
4
|
+
// This module is browser compatible.
|
|
5
|
+
/**
|
|
6
|
+
* Port of the Go
|
|
7
|
+
* {@link https://github.com/golang/go/blob/go1.12.5/src/encoding/hex/hex.go | encoding/hex}
|
|
8
|
+
* library.
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* import {
|
|
12
|
+
* decodeHex,
|
|
13
|
+
* encodeHex,
|
|
14
|
+
* } from "@std/encoding/hex";
|
|
15
|
+
* import { assertEquals } from "@std/assert";
|
|
16
|
+
*
|
|
17
|
+
* assertEquals(encodeHex("abc"), "616263");
|
|
18
|
+
*
|
|
19
|
+
* assertEquals(
|
|
20
|
+
* decodeHex("616263"),
|
|
21
|
+
* new TextEncoder().encode("abc"),
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { validateBinaryLike } from "./_validate_binary_like.js";
|
|
28
|
+
const hexTable = new TextEncoder().encode("0123456789abcdef");
|
|
29
|
+
const textEncoder = new TextEncoder();
|
|
30
|
+
const textDecoder = new TextDecoder();
|
|
31
|
+
function errInvalidByte(byte) {
|
|
32
|
+
return new TypeError(`Invalid byte '${String.fromCharCode(byte)}'`);
|
|
33
|
+
}
|
|
34
|
+
function errLength(len) {
|
|
35
|
+
return new RangeError(`Cannot decode the hex string as the input length should be even: length is ${len}`);
|
|
36
|
+
}
|
|
37
|
+
/** Converts a hex character into its value. */
|
|
38
|
+
function fromHexChar(byte) {
|
|
39
|
+
// '0' <= byte && byte <= '9'
|
|
40
|
+
if (48 <= byte && byte <= 57)
|
|
41
|
+
return byte - 48;
|
|
42
|
+
// 'a' <= byte && byte <= 'f'
|
|
43
|
+
if (97 <= byte && byte <= 102)
|
|
44
|
+
return byte - 97 + 10;
|
|
45
|
+
// 'A' <= byte && byte <= 'F'
|
|
46
|
+
if (65 <= byte && byte <= 70)
|
|
47
|
+
return byte - 65 + 10;
|
|
48
|
+
throw errInvalidByte(byte);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Converts data into a hex-encoded string.
|
|
52
|
+
*
|
|
53
|
+
* @param src The data to encode.
|
|
54
|
+
*
|
|
55
|
+
* @returns The hex-encoded string.
|
|
56
|
+
*
|
|
57
|
+
* @example Usage
|
|
58
|
+
* ```ts
|
|
59
|
+
* import { encodeHex } from "@std/encoding/hex";
|
|
60
|
+
* import { assertEquals } from "@std/assert";
|
|
61
|
+
*
|
|
62
|
+
* assertEquals(encodeHex("abc"), "616263");
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export function encodeHex(src) {
|
|
66
|
+
const u8 = validateBinaryLike(src);
|
|
67
|
+
const dst = new Uint8Array(u8.length * 2);
|
|
68
|
+
for (let i = 0; i < u8.length; i++) {
|
|
69
|
+
const v = u8[i];
|
|
70
|
+
dst[i * 2] = hexTable[v >> 4];
|
|
71
|
+
dst[i * 2 + 1] = hexTable[v & 0x0f];
|
|
72
|
+
}
|
|
73
|
+
return textDecoder.decode(dst);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Decodes the given hex-encoded string. If the input is malformed, an error is
|
|
77
|
+
* thrown.
|
|
78
|
+
*
|
|
79
|
+
* @param src The hex-encoded string to decode.
|
|
80
|
+
*
|
|
81
|
+
* @returns The decoded data.
|
|
82
|
+
*
|
|
83
|
+
* @example Usage
|
|
84
|
+
* ```ts
|
|
85
|
+
* import { decodeHex } from "@std/encoding/hex";
|
|
86
|
+
* import { assertEquals } from "@std/assert";
|
|
87
|
+
*
|
|
88
|
+
* assertEquals(
|
|
89
|
+
* decodeHex("616263"),
|
|
90
|
+
* new TextEncoder().encode("abc"),
|
|
91
|
+
* );
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export function decodeHex(src) {
|
|
95
|
+
const u8 = textEncoder.encode(src);
|
|
96
|
+
const dst = new Uint8Array(u8.length / 2);
|
|
97
|
+
for (let i = 0; i < dst.length; i++) {
|
|
98
|
+
const a = fromHexChar(u8[i * 2]);
|
|
99
|
+
const b = fromHexChar(u8[i * 2 + 1]);
|
|
100
|
+
dst[i] = (a << 4) | b;
|
|
101
|
+
}
|
|
102
|
+
if (u8.length % 2 === 1) {
|
|
103
|
+
// Check for invalid char before reporting bad length,
|
|
104
|
+
// since the invalid char (if present) is an earlier problem.
|
|
105
|
+
fromHexChar(u8[dst.length * 2]);
|
|
106
|
+
throw errLength(u8.length);
|
|
107
|
+
}
|
|
108
|
+
return dst;
|
|
109
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities for encoding and decoding common formats like hex, base64, and varint.
|
|
3
|
+
*
|
|
4
|
+
* ```ts
|
|
5
|
+
* import { encodeBase64, decodeBase64 } from "@std/encoding";
|
|
6
|
+
* import { assertEquals } from "@std/assert";
|
|
7
|
+
*
|
|
8
|
+
* const foobar = new TextEncoder().encode("foobar");
|
|
9
|
+
* assertEquals(encodeBase64(foobar), "Zm9vYmFy");
|
|
10
|
+
* assertEquals(decodeBase64("Zm9vYmFy"), foobar);
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
export * from "./ascii85.js";
|
|
16
|
+
export * from "./base32.js";
|
|
17
|
+
export * from "./base58.js";
|
|
18
|
+
export * from "./base64.js";
|
|
19
|
+
export * from "./base64url.js";
|
|
20
|
+
export * from "./hex.js";
|
|
21
|
+
export * from "./varint.js";
|
|
22
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/mod.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
/**
|
|
3
|
+
* Utilities for encoding and decoding common formats like hex, base64, and varint.
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { encodeBase64, decodeBase64 } from "@std/encoding";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* const foobar = new TextEncoder().encode("foobar");
|
|
10
|
+
* assertEquals(encodeBase64(foobar), "Zm9vYmFy");
|
|
11
|
+
* assertEquals(decodeBase64("Zm9vYmFy"), foobar);
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
export * from "./ascii85.js";
|
|
17
|
+
export * from "./base32.js";
|
|
18
|
+
export * from "./base58.js";
|
|
19
|
+
export * from "./base64.js";
|
|
20
|
+
export * from "./base64url.js";
|
|
21
|
+
export * from "./hex.js";
|
|
22
|
+
export * from "./varint.js";
|