@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.
Files changed (754) hide show
  1. package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
  2. package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
  3. package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +183 -0
  4. package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
  5. package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +26 -0
  7. package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
  8. package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +152 -0
  10. package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
  11. package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js +69 -0
  13. package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
  14. package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js +131 -0
  16. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
  17. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js +163 -0
  19. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
  20. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js +81 -0
  22. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
  23. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js +109 -0
  25. package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
  26. package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js +22 -0
  28. package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
  29. package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js +207 -0
  31. package/esm/gen/types/AhkVar.d.ts +6 -0
  32. package/esm/gen/types/AhkVar.d.ts.map +1 -0
  33. package/esm/gen/types/AhkVar.js +2 -0
  34. package/esm/gen/types/AhkVarList.d.ts +54 -0
  35. package/esm/gen/types/AhkVarList.d.ts.map +1 -0
  36. package/esm/gen/types/AppConfig.d.ts +33 -0
  37. package/esm/gen/types/AppConfig.d.ts.map +1 -0
  38. package/esm/gen/types/AppConfig.js +1 -0
  39. package/esm/gen/types/AppExtraFlag.d.ts +2 -0
  40. package/esm/gen/types/AppExtraFlag.d.ts.map +1 -0
  41. package/esm/gen/types/AppExtraFlag.js +2 -0
  42. package/esm/gen/types/AppIdentifier.d.ts +11 -0
  43. package/esm/gen/types/AppIdentifier.d.ts.map +1 -0
  44. package/esm/gen/types/AppIdentifier.js +1 -0
  45. package/esm/gen/types/AppIdentifierType.d.ts +2 -0
  46. package/esm/gen/types/AppIdentifierType.d.ts.map +1 -0
  47. package/esm/gen/types/AppIdentifierType.js +2 -0
  48. package/esm/gen/types/Border.d.ts +6 -0
  49. package/esm/gen/types/Border.d.ts.map +1 -0
  50. package/esm/gen/types/Border.js +2 -0
  51. package/esm/gen/types/DateToolbarItem.d.ts +71 -0
  52. package/esm/gen/types/DateToolbarItem.d.ts.map +1 -0
  53. package/esm/gen/types/DateToolbarItem.js +1 -0
  54. package/esm/gen/types/DateUpdateInterval.d.ts +2 -0
  55. package/esm/gen/types/DateUpdateInterval.d.ts.map +1 -0
  56. package/esm/gen/types/DateUpdateInterval.js +2 -0
  57. package/esm/gen/types/DeviceToolbarItem.d.ts +54 -0
  58. package/esm/gen/types/DeviceToolbarItem.d.ts.map +1 -0
  59. package/esm/gen/types/DeviceToolbarItem.js +1 -0
  60. package/esm/gen/types/FancyToolbarSettings.d.ts +32 -0
  61. package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -0
  62. package/esm/gen/types/FancyToolbarSettings.js +1 -0
  63. package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
  64. package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
  65. package/esm/gen/types/FancyToolbarSettingsByMonitor.js +2 -0
  66. package/esm/gen/types/FloatingWindowSettings.d.ts +5 -0
  67. package/esm/gen/types/FloatingWindowSettings.d.ts.map +1 -0
  68. package/esm/gen/types/FloatingWindowSettings.js +2 -0
  69. package/esm/gen/types/GenericToolbarItem.d.ts +82 -0
  70. package/esm/gen/types/GenericToolbarItem.d.ts.map +1 -0
  71. package/esm/gen/types/GenericToolbarItem.js +1 -0
  72. package/esm/gen/types/HideMode.d.ts +2 -0
  73. package/esm/gen/types/HideMode.d.ts.map +1 -0
  74. package/esm/gen/types/HideMode.js +2 -0
  75. package/esm/gen/types/IconPack.d.ts +13 -0
  76. package/esm/gen/types/IconPack.d.ts.map +1 -0
  77. package/esm/gen/types/IconPack.js +1 -0
  78. package/esm/gen/types/MatchingStrategy.d.ts +2 -0
  79. package/esm/gen/types/MatchingStrategy.d.ts.map +1 -0
  80. package/esm/gen/types/MatchingStrategy.js +2 -0
  81. package/esm/gen/types/MediaToolbarItem.d.ts +138 -0
  82. package/esm/gen/types/MediaToolbarItem.d.ts.map +1 -0
  83. package/esm/gen/types/MediaToolbarItem.js +1 -0
  84. package/esm/gen/types/MonitorConfiguration.d.ts +16 -0
  85. package/esm/gen/types/MonitorConfiguration.d.ts.map +1 -0
  86. package/esm/gen/types/MonitorConfiguration.js +1 -0
  87. package/esm/gen/types/NetworkToolbarItem.d.ts +118 -0
  88. package/esm/gen/types/NetworkToolbarItem.d.ts.map +1 -0
  89. package/esm/gen/types/NetworkToolbarItem.js +1 -0
  90. package/esm/gen/types/NoFallbackBehavior.d.ts +2 -0
  91. package/esm/gen/types/NoFallbackBehavior.d.ts.map +1 -0
  92. package/esm/gen/types/NoFallbackBehavior.js +2 -0
  93. package/esm/gen/types/NodeSubtype.d.ts +2 -0
  94. package/esm/gen/types/NodeSubtype.d.ts.map +1 -0
  95. package/esm/gen/types/NodeSubtype.js +2 -0
  96. package/esm/gen/types/NotificationsToolbarItem.d.ts +62 -0
  97. package/esm/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
  98. package/esm/gen/types/NotificationsToolbarItem.js +1 -0
  99. package/esm/gen/types/PinnedWegItemData.d.ts +29 -0
  100. package/esm/gen/types/PinnedWegItemData.d.ts.map +1 -0
  101. package/esm/gen/types/PinnedWegItemData.js +2 -0
  102. package/esm/gen/types/Placeholder.d.ts +21 -0
  103. package/esm/gen/types/Placeholder.d.ts.map +1 -0
  104. package/esm/gen/types/Placeholder.js +1 -0
  105. package/esm/gen/types/PlaceholderInfo.d.ts +19 -0
  106. package/esm/gen/types/PlaceholderInfo.d.ts.map +1 -0
  107. package/esm/gen/types/PlaceholderInfo.js +2 -0
  108. package/esm/gen/types/Plugin.d.ts +11 -0
  109. package/esm/gen/types/Plugin.d.ts.map +1 -0
  110. package/esm/gen/types/Plugin.js +1 -0
  111. package/esm/gen/types/PluginId.d.ts +3 -0
  112. package/esm/gen/types/PluginId.d.ts.map +1 -0
  113. package/esm/gen/types/PluginId.js +1 -0
  114. package/esm/gen/types/PowerToolbarItem.d.ts +214 -0
  115. package/esm/gen/types/PowerToolbarItem.d.ts.map +1 -0
  116. package/esm/gen/types/PowerToolbarItem.js +1 -0
  117. package/esm/gen/types/Profile.d.ts +8 -0
  118. package/esm/gen/types/Profile.d.ts.map +1 -0
  119. package/esm/gen/types/Profile.js +1 -0
  120. package/esm/gen/types/ProfileSettings.d.ts +4 -0
  121. package/esm/gen/types/ProfileSettings.d.ts.map +1 -0
  122. package/esm/gen/types/ProfileSettings.js +2 -0
  123. package/esm/gen/types/Rect.d.ts +7 -0
  124. package/esm/gen/types/Rect.d.ts.map +1 -0
  125. package/esm/gen/types/Rect.js +2 -0
  126. package/esm/gen/types/ResourceId.d.ts +2 -0
  127. package/esm/gen/types/ResourceId.d.ts.map +1 -0
  128. package/esm/gen/types/ResourceId.js +2 -0
  129. package/esm/gen/types/ResourceMetadata.d.ts +8 -0
  130. package/esm/gen/types/ResourceMetadata.d.ts.map +1 -0
  131. package/esm/gen/types/ResourceMetadata.js +2 -0
  132. package/esm/gen/types/SeelenLauncherMonitor.d.ts +2 -0
  133. package/esm/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
  134. package/esm/gen/types/SeelenLauncherMonitor.js +2 -0
  135. package/esm/gen/types/SeelenLauncherRunner.d.ts +7 -0
  136. package/esm/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
  137. package/esm/gen/types/SeelenLauncherRunner.js +2 -0
  138. package/esm/gen/types/SeelenLauncherSettings.d.ts +8 -0
  139. package/esm/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
  140. package/esm/gen/types/SeelenLauncherSettings.js +1 -0
  141. package/esm/gen/types/SeelenWallSettings.d.ts +11 -0
  142. package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -0
  143. package/esm/gen/types/SeelenWallSettings.js +1 -0
  144. package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
  145. package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
  146. package/esm/gen/types/SeelenWallSettingsByMonitor.js +1 -0
  147. package/esm/gen/types/SeelenWallWallpaper.d.ts +5 -0
  148. package/esm/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
  149. package/esm/gen/types/SeelenWallWallpaper.js +2 -0
  150. package/esm/gen/types/SeelenWegMode.d.ts +2 -0
  151. package/esm/gen/types/SeelenWegMode.d.ts.map +1 -0
  152. package/esm/gen/types/SeelenWegMode.js +2 -0
  153. package/esm/gen/types/SeelenWegSettings.d.ts +58 -0
  154. package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -0
  155. package/esm/gen/types/SeelenWegSettings.js +1 -0
  156. package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
  157. package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
  158. package/esm/gen/types/SeelenWegSettingsByMonitor.js +2 -0
  159. package/esm/gen/types/SeelenWegSide.d.ts +2 -0
  160. package/esm/gen/types/SeelenWegSide.d.ts.map +1 -0
  161. package/esm/gen/types/SeelenWegSide.js +2 -0
  162. package/esm/gen/types/Settings.d.ts +84 -0
  163. package/esm/gen/types/Settings.d.ts.map +1 -0
  164. package/esm/gen/types/Settings.js +1 -0
  165. package/esm/gen/types/SettingsToolbarItem.d.ts +54 -0
  166. package/esm/gen/types/SettingsToolbarItem.d.ts.map +1 -0
  167. package/esm/gen/types/SettingsToolbarItem.js +1 -0
  168. package/esm/gen/types/StyleValue.d.ts +2 -0
  169. package/esm/gen/types/StyleValue.d.ts.map +1 -0
  170. package/esm/gen/types/StyleValue.js +2 -0
  171. package/esm/gen/types/TextToolbarItem.d.ts +114 -0
  172. package/esm/gen/types/TextToolbarItem.d.ts.map +1 -0
  173. package/esm/gen/types/TextToolbarItem.js +1 -0
  174. package/esm/gen/types/Theme.d.ts +15 -0
  175. package/esm/gen/types/Theme.d.ts.map +1 -0
  176. package/esm/gen/types/Theme.js +1 -0
  177. package/esm/gen/types/ThemeInfo.d.ts +23 -0
  178. package/esm/gen/types/ThemeInfo.d.ts.map +1 -0
  179. package/esm/gen/types/ThemeInfo.js +2 -0
  180. package/esm/gen/types/ToolbarItem.d.ts +35 -0
  181. package/esm/gen/types/ToolbarItem.d.ts.map +1 -0
  182. package/esm/gen/types/ToolbarItem.js +1 -0
  183. package/esm/gen/types/ToolbarItem2.d.ts +3 -0
  184. package/esm/gen/types/ToolbarItem2.d.ts.map +1 -0
  185. package/esm/gen/types/ToolbarItem2.js +1 -0
  186. package/esm/gen/types/TrayToolbarItem.d.ts +54 -0
  187. package/esm/gen/types/TrayToolbarItem.d.ts.map +1 -0
  188. package/esm/gen/types/TrayToolbarItem.js +1 -0
  189. package/esm/gen/types/UpdateChannel.d.ts +2 -0
  190. package/esm/gen/types/UpdateChannel.d.ts.map +1 -0
  191. package/esm/gen/types/UpdateChannel.js +2 -0
  192. package/esm/gen/types/UpdaterSettings.d.ts +5 -0
  193. package/esm/gen/types/UpdaterSettings.d.ts.map +1 -0
  194. package/esm/gen/types/UpdaterSettings.js +1 -0
  195. package/esm/gen/types/VirtualDesktopStrategy.d.ts +2 -0
  196. package/esm/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
  197. package/esm/gen/types/VirtualDesktopStrategy.js +2 -0
  198. package/esm/gen/types/WManagerLayoutInfo.d.ts +19 -0
  199. package/esm/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
  200. package/esm/gen/types/WManagerLayoutInfo.js +2 -0
  201. package/esm/gen/types/WegItem.d.ts +14 -0
  202. package/esm/gen/types/WegItem.d.ts.map +1 -0
  203. package/esm/gen/types/WegItem.js +1 -0
  204. package/esm/gen/types/WegItems.d.ts +7 -0
  205. package/esm/gen/types/WegItems.d.ts.map +1 -0
  206. package/esm/gen/types/WegItems.js +1 -0
  207. package/esm/gen/types/Widget.d.ts +8 -0
  208. package/esm/gen/types/Widget.d.ts.map +1 -0
  209. package/esm/gen/types/Widget.js +1 -0
  210. package/esm/gen/types/WidgetId.d.ts +3 -0
  211. package/esm/gen/types/WidgetId.d.ts.map +1 -0
  212. package/esm/gen/types/WidgetId.js +1 -0
  213. package/esm/gen/types/WindowManagerLayout.d.ts +9 -0
  214. package/esm/gen/types/WindowManagerLayout.d.ts.map +1 -0
  215. package/esm/gen/types/WindowManagerLayout.js +1 -0
  216. package/esm/gen/types/WindowManagerSettings.d.ts +42 -0
  217. package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -0
  218. package/esm/gen/types/WindowManagerSettings.js +1 -0
  219. package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
  220. package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
  221. package/esm/gen/types/WindowManagerSettingsByMonitor.js +1 -0
  222. package/esm/gen/types/WmFallbackNode.d.ts +25 -0
  223. package/esm/gen/types/WmFallbackNode.d.ts.map +1 -0
  224. package/esm/gen/types/WmFallbackNode.js +1 -0
  225. package/esm/gen/types/WmHorizontalNode.d.ts +19 -0
  226. package/esm/gen/types/WmHorizontalNode.d.ts.map +1 -0
  227. package/esm/gen/types/WmHorizontalNode.js +1 -0
  228. package/esm/gen/types/WmLeafNode.d.ts +21 -0
  229. package/esm/gen/types/WmLeafNode.d.ts.map +1 -0
  230. package/esm/gen/types/WmLeafNode.js +1 -0
  231. package/esm/gen/types/WmNode.d.ts +17 -0
  232. package/esm/gen/types/WmNode.d.ts.map +1 -0
  233. package/esm/gen/types/WmNode.js +1 -0
  234. package/esm/gen/types/WmStackNode.d.ts +25 -0
  235. package/esm/gen/types/WmStackNode.d.ts.map +1 -0
  236. package/esm/gen/types/WmStackNode.js +1 -0
  237. package/esm/gen/types/WmVerticalNode.d.ts +19 -0
  238. package/esm/gen/types/WmVerticalNode.d.ts.map +1 -0
  239. package/esm/gen/types/WmVerticalNode.js +1 -0
  240. package/esm/gen/types/WorkspaceConfiguration.d.ts +8 -0
  241. package/esm/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
  242. package/esm/gen/types/WorkspaceConfiguration.js +1 -0
  243. package/esm/gen/types/WorkspaceIdentifier.d.ts +6 -0
  244. package/esm/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
  245. package/esm/gen/types/WorkspaceIdentifier.js +1 -0
  246. package/esm/gen/types/WorkspaceIdentifierType.d.ts +2 -0
  247. package/esm/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
  248. package/esm/gen/types/WorkspaceIdentifierType.js +2 -0
  249. package/esm/gen/types/WorkspaceToolbarItem.d.ts +56 -0
  250. package/esm/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
  251. package/esm/gen/types/WorkspaceToolbarItem.js +1 -0
  252. package/esm/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
  253. package/esm/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
  254. package/esm/gen/types/WorkspaceToolbarItemMode.js +2 -0
  255. package/esm/gen/types/mod.d.ts +76 -0
  256. package/esm/gen/types/mod.d.ts.map +1 -0
  257. package/esm/gen/types/mod.js +75 -0
  258. package/esm/gen/types/serde_json/JsonValue.d.ts +4 -0
  259. package/esm/gen/types/serde_json/JsonValue.d.ts.map +1 -0
  260. package/esm/gen/types/serde_json/JsonValue.js +2 -0
  261. package/esm/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
  262. package/esm/src/handlers/commands.d.ts.map +1 -0
  263. package/esm/{handlers/invokers.js → src/handlers/commands.js} +6 -6
  264. package/{script → esm/src}/handlers/events.d.ts +2 -1
  265. package/esm/src/handlers/events.d.ts.map +1 -0
  266. package/esm/{handlers → src/handlers}/events.js +2 -1
  267. package/esm/src/handlers/invokers.d.ts +26 -0
  268. package/esm/src/handlers/invokers.d.ts.map +1 -0
  269. package/esm/src/handlers/invokers.js +13 -0
  270. package/esm/src/handlers/mod.d.ts +4 -0
  271. package/esm/src/handlers/mod.d.ts.map +1 -0
  272. package/esm/src/handlers/mod.js +3 -0
  273. package/esm/src/lib.d.ts +5 -0
  274. package/esm/src/lib.d.ts.map +1 -0
  275. package/esm/src/lib.js +4 -0
  276. package/esm/{state → src/state}/icon_pack.d.ts +1 -1
  277. package/esm/src/state/icon_pack.d.ts.map +1 -0
  278. package/esm/{state → src/state}/icon_pack.js +1 -1
  279. package/esm/src/state/mod.d.ts +40 -0
  280. package/esm/src/state/mod.d.ts.map +1 -0
  281. package/esm/{state/index.js → src/state/mod.js} +7 -7
  282. package/esm/src/state/placeholder.d.ts.map +1 -0
  283. package/esm/src/state/plugin.d.ts +26 -0
  284. package/esm/src/state/plugin.d.ts.map +1 -0
  285. package/esm/src/state/plugin.js +12 -0
  286. package/esm/src/state/profile.d.ts +23 -0
  287. package/esm/src/state/profile.d.ts.map +1 -0
  288. package/esm/src/state/profile.js +6 -0
  289. package/esm/src/state/settings.d.ts +51 -0
  290. package/esm/src/state/settings.d.ts.map +1 -0
  291. package/esm/src/state/settings.js +42 -0
  292. package/esm/src/state/settings_by_app.d.ts.map +1 -0
  293. package/esm/src/state/settings_by_monitor.d.ts +20 -0
  294. package/esm/src/state/settings_by_monitor.d.ts.map +1 -0
  295. package/esm/src/state/settings_by_monitor.js +16 -0
  296. package/esm/src/state/theme.d.ts +37 -0
  297. package/esm/src/state/theme.d.ts.map +1 -0
  298. package/esm/src/state/theme.js +7 -0
  299. package/esm/src/state/weg_items.d.ts +27 -0
  300. package/esm/src/state/weg_items.d.ts.map +1 -0
  301. package/esm/src/state/weg_items.js +17 -0
  302. package/esm/src/state/widget.d.ts +27 -0
  303. package/esm/src/state/widget.d.ts.map +1 -0
  304. package/esm/src/state/widget.js +7 -0
  305. package/esm/src/state/wm_layout.d.ts.map +1 -0
  306. package/esm/src/system_state/mod.d.ts +3 -0
  307. package/esm/src/system_state/mod.d.ts.map +1 -0
  308. package/esm/src/system_state/mod.js +2 -0
  309. package/esm/src/system_state/monitors.d.ts +25 -0
  310. package/esm/src/system_state/monitors.d.ts.map +1 -0
  311. package/esm/src/system_state/monitors.js +7 -0
  312. package/esm/src/system_state/uiColors.d.ts +33 -0
  313. package/esm/src/system_state/uiColors.d.ts.map +1 -0
  314. package/esm/{system_state/index.js → src/system_state/uiColors.js} +12 -12
  315. package/esm/src/utils/List.d.ts +25 -0
  316. package/esm/src/utils/List.d.ts.map +1 -0
  317. package/esm/src/utils/List.js +36 -0
  318. package/esm/src/utils/State.d.ts +11 -0
  319. package/esm/src/utils/State.d.ts.map +1 -0
  320. package/esm/src/utils/State.js +13 -0
  321. package/esm/src/utils/layered_hitbox.d.ts.map +1 -0
  322. package/esm/{utils → src/utils}/layered_hitbox.js +1 -1
  323. package/{script/utils/index.d.ts → esm/src/utils/mod.d.ts} +8 -5
  324. package/esm/src/utils/mod.d.ts.map +1 -0
  325. package/esm/{utils/index.js → src/utils/mod.js} +8 -7
  326. package/package.json +9 -7
  327. package/readme.md +1 -1
  328. package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
  329. package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +187 -0
  331. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
  332. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +29 -0
  334. package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
  335. package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +156 -0
  337. package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
  338. package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
  339. package/script/deps/jsr.io/@std/encoding/1.0.6/base32.js +73 -0
  340. package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
  341. package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
  342. package/script/deps/jsr.io/@std/encoding/1.0.6/base58.js +135 -0
  343. package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
  344. package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
  345. package/script/deps/jsr.io/@std/encoding/1.0.6/base64.js +167 -0
  346. package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
  347. package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
  348. package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.js +108 -0
  349. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
  350. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
  351. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +113 -0
  352. package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
  353. package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
  354. package/script/deps/jsr.io/@std/encoding/1.0.6/mod.js +38 -0
  355. package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
  356. package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
  357. package/script/deps/jsr.io/@std/encoding/1.0.6/varint.js +213 -0
  358. package/script/gen/types/AhkVar.d.ts +6 -0
  359. package/script/gen/types/AhkVar.d.ts.map +1 -0
  360. package/script/gen/types/AhkVar.js +3 -0
  361. package/script/gen/types/AhkVarList.d.ts +54 -0
  362. package/script/gen/types/AhkVarList.d.ts.map +1 -0
  363. package/script/gen/types/AppConfig.d.ts +33 -0
  364. package/script/gen/types/AppConfig.d.ts.map +1 -0
  365. package/script/gen/types/AppConfig.js +2 -0
  366. package/script/gen/types/AppExtraFlag.d.ts +2 -0
  367. package/script/gen/types/AppExtraFlag.d.ts.map +1 -0
  368. package/script/gen/types/AppExtraFlag.js +3 -0
  369. package/script/gen/types/AppIdentifier.d.ts +11 -0
  370. package/script/gen/types/AppIdentifier.d.ts.map +1 -0
  371. package/script/gen/types/AppIdentifier.js +2 -0
  372. package/script/gen/types/AppIdentifierType.d.ts +2 -0
  373. package/script/gen/types/AppIdentifierType.d.ts.map +1 -0
  374. package/script/gen/types/AppIdentifierType.js +3 -0
  375. package/script/gen/types/Border.d.ts +6 -0
  376. package/script/gen/types/Border.d.ts.map +1 -0
  377. package/script/gen/types/Border.js +3 -0
  378. package/script/gen/types/DateToolbarItem.d.ts +71 -0
  379. package/script/gen/types/DateToolbarItem.d.ts.map +1 -0
  380. package/script/gen/types/DateToolbarItem.js +2 -0
  381. package/script/gen/types/DateUpdateInterval.d.ts +2 -0
  382. package/script/gen/types/DateUpdateInterval.d.ts.map +1 -0
  383. package/script/gen/types/DateUpdateInterval.js +3 -0
  384. package/script/gen/types/DeviceToolbarItem.d.ts +54 -0
  385. package/script/gen/types/DeviceToolbarItem.d.ts.map +1 -0
  386. package/script/gen/types/DeviceToolbarItem.js +2 -0
  387. package/script/gen/types/FancyToolbarSettings.d.ts +32 -0
  388. package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -0
  389. package/script/gen/types/FancyToolbarSettings.js +2 -0
  390. package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
  391. package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
  392. package/script/gen/types/FancyToolbarSettingsByMonitor.js +3 -0
  393. package/script/gen/types/FloatingWindowSettings.d.ts +5 -0
  394. package/script/gen/types/FloatingWindowSettings.d.ts.map +1 -0
  395. package/script/gen/types/FloatingWindowSettings.js +3 -0
  396. package/script/gen/types/GenericToolbarItem.d.ts +82 -0
  397. package/script/gen/types/GenericToolbarItem.d.ts.map +1 -0
  398. package/script/gen/types/GenericToolbarItem.js +2 -0
  399. package/script/gen/types/HideMode.d.ts +2 -0
  400. package/script/gen/types/HideMode.d.ts.map +1 -0
  401. package/script/gen/types/HideMode.js +3 -0
  402. package/script/gen/types/IconPack.d.ts +13 -0
  403. package/script/gen/types/IconPack.d.ts.map +1 -0
  404. package/script/gen/types/IconPack.js +2 -0
  405. package/script/gen/types/MatchingStrategy.d.ts +2 -0
  406. package/script/gen/types/MatchingStrategy.d.ts.map +1 -0
  407. package/script/gen/types/MatchingStrategy.js +3 -0
  408. package/script/gen/types/MediaToolbarItem.d.ts +138 -0
  409. package/script/gen/types/MediaToolbarItem.d.ts.map +1 -0
  410. package/script/gen/types/MediaToolbarItem.js +2 -0
  411. package/script/gen/types/MonitorConfiguration.d.ts +16 -0
  412. package/script/gen/types/MonitorConfiguration.d.ts.map +1 -0
  413. package/script/gen/types/MonitorConfiguration.js +2 -0
  414. package/script/gen/types/NetworkToolbarItem.d.ts +118 -0
  415. package/script/gen/types/NetworkToolbarItem.d.ts.map +1 -0
  416. package/script/gen/types/NetworkToolbarItem.js +2 -0
  417. package/script/gen/types/NoFallbackBehavior.d.ts +2 -0
  418. package/script/gen/types/NoFallbackBehavior.d.ts.map +1 -0
  419. package/script/gen/types/NoFallbackBehavior.js +3 -0
  420. package/script/gen/types/NodeSubtype.d.ts +2 -0
  421. package/script/gen/types/NodeSubtype.d.ts.map +1 -0
  422. package/script/gen/types/NodeSubtype.js +3 -0
  423. package/script/gen/types/NotificationsToolbarItem.d.ts +62 -0
  424. package/script/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
  425. package/script/gen/types/NotificationsToolbarItem.js +2 -0
  426. package/script/gen/types/PinnedWegItemData.d.ts +29 -0
  427. package/script/gen/types/PinnedWegItemData.d.ts.map +1 -0
  428. package/script/gen/types/PinnedWegItemData.js +3 -0
  429. package/script/gen/types/Placeholder.d.ts +21 -0
  430. package/script/gen/types/Placeholder.d.ts.map +1 -0
  431. package/script/gen/types/Placeholder.js +2 -0
  432. package/script/gen/types/PlaceholderInfo.d.ts +19 -0
  433. package/script/gen/types/PlaceholderInfo.d.ts.map +1 -0
  434. package/script/gen/types/PlaceholderInfo.js +3 -0
  435. package/script/gen/types/Plugin.d.ts +11 -0
  436. package/script/gen/types/Plugin.d.ts.map +1 -0
  437. package/script/gen/types/Plugin.js +2 -0
  438. package/script/gen/types/PluginId.d.ts +3 -0
  439. package/script/gen/types/PluginId.d.ts.map +1 -0
  440. package/script/gen/types/PluginId.js +2 -0
  441. package/script/gen/types/PowerToolbarItem.d.ts +214 -0
  442. package/script/gen/types/PowerToolbarItem.d.ts.map +1 -0
  443. package/script/gen/types/PowerToolbarItem.js +2 -0
  444. package/script/gen/types/Profile.d.ts +8 -0
  445. package/script/gen/types/Profile.d.ts.map +1 -0
  446. package/script/gen/types/Profile.js +2 -0
  447. package/script/gen/types/ProfileSettings.d.ts +4 -0
  448. package/script/gen/types/ProfileSettings.d.ts.map +1 -0
  449. package/script/gen/types/ProfileSettings.js +3 -0
  450. package/script/gen/types/Rect.d.ts +7 -0
  451. package/script/gen/types/Rect.d.ts.map +1 -0
  452. package/script/gen/types/Rect.js +3 -0
  453. package/script/gen/types/ResourceId.d.ts +2 -0
  454. package/script/gen/types/ResourceId.d.ts.map +1 -0
  455. package/script/gen/types/ResourceId.js +3 -0
  456. package/script/gen/types/ResourceMetadata.d.ts +8 -0
  457. package/script/gen/types/ResourceMetadata.d.ts.map +1 -0
  458. package/script/gen/types/ResourceMetadata.js +3 -0
  459. package/script/gen/types/SeelenLauncherMonitor.d.ts +2 -0
  460. package/script/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
  461. package/script/gen/types/SeelenLauncherMonitor.js +3 -0
  462. package/script/gen/types/SeelenLauncherRunner.d.ts +7 -0
  463. package/script/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
  464. package/script/gen/types/SeelenLauncherRunner.js +3 -0
  465. package/script/gen/types/SeelenLauncherSettings.d.ts +8 -0
  466. package/script/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
  467. package/script/gen/types/SeelenLauncherSettings.js +2 -0
  468. package/script/gen/types/SeelenWallSettings.d.ts +11 -0
  469. package/script/gen/types/SeelenWallSettings.d.ts.map +1 -0
  470. package/script/gen/types/SeelenWallSettings.js +2 -0
  471. package/script/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
  472. package/script/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
  473. package/script/gen/types/SeelenWallSettingsByMonitor.js +2 -0
  474. package/script/gen/types/SeelenWallWallpaper.d.ts +5 -0
  475. package/script/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
  476. package/script/gen/types/SeelenWallWallpaper.js +3 -0
  477. package/script/gen/types/SeelenWegMode.d.ts +2 -0
  478. package/script/gen/types/SeelenWegMode.d.ts.map +1 -0
  479. package/script/gen/types/SeelenWegMode.js +3 -0
  480. package/script/gen/types/SeelenWegSettings.d.ts +58 -0
  481. package/script/gen/types/SeelenWegSettings.d.ts.map +1 -0
  482. package/script/gen/types/SeelenWegSettings.js +2 -0
  483. package/script/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
  484. package/script/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
  485. package/script/gen/types/SeelenWegSettingsByMonitor.js +3 -0
  486. package/script/gen/types/SeelenWegSide.d.ts +2 -0
  487. package/script/gen/types/SeelenWegSide.d.ts.map +1 -0
  488. package/script/gen/types/SeelenWegSide.js +3 -0
  489. package/script/gen/types/Settings.d.ts +84 -0
  490. package/script/gen/types/Settings.d.ts.map +1 -0
  491. package/script/gen/types/Settings.js +2 -0
  492. package/script/gen/types/SettingsToolbarItem.d.ts +54 -0
  493. package/script/gen/types/SettingsToolbarItem.d.ts.map +1 -0
  494. package/script/gen/types/SettingsToolbarItem.js +2 -0
  495. package/script/gen/types/StyleValue.d.ts +2 -0
  496. package/script/gen/types/StyleValue.d.ts.map +1 -0
  497. package/script/gen/types/StyleValue.js +3 -0
  498. package/script/gen/types/TextToolbarItem.d.ts +114 -0
  499. package/script/gen/types/TextToolbarItem.d.ts.map +1 -0
  500. package/script/gen/types/TextToolbarItem.js +2 -0
  501. package/script/gen/types/Theme.d.ts +15 -0
  502. package/script/gen/types/Theme.d.ts.map +1 -0
  503. package/script/gen/types/Theme.js +2 -0
  504. package/script/gen/types/ThemeInfo.d.ts +23 -0
  505. package/script/gen/types/ThemeInfo.d.ts.map +1 -0
  506. package/script/gen/types/ThemeInfo.js +3 -0
  507. package/script/gen/types/ToolbarItem.d.ts +35 -0
  508. package/script/gen/types/ToolbarItem.d.ts.map +1 -0
  509. package/script/gen/types/ToolbarItem.js +2 -0
  510. package/script/gen/types/ToolbarItem2.d.ts +3 -0
  511. package/script/gen/types/ToolbarItem2.d.ts.map +1 -0
  512. package/script/gen/types/ToolbarItem2.js +2 -0
  513. package/script/gen/types/TrayToolbarItem.d.ts +54 -0
  514. package/script/gen/types/TrayToolbarItem.d.ts.map +1 -0
  515. package/script/gen/types/TrayToolbarItem.js +2 -0
  516. package/script/gen/types/UpdateChannel.d.ts +2 -0
  517. package/script/gen/types/UpdateChannel.d.ts.map +1 -0
  518. package/script/gen/types/UpdateChannel.js +3 -0
  519. package/script/gen/types/UpdaterSettings.d.ts +5 -0
  520. package/script/gen/types/UpdaterSettings.d.ts.map +1 -0
  521. package/script/gen/types/UpdaterSettings.js +2 -0
  522. package/script/gen/types/VirtualDesktopStrategy.d.ts +2 -0
  523. package/script/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
  524. package/script/gen/types/VirtualDesktopStrategy.js +3 -0
  525. package/script/gen/types/WManagerLayoutInfo.d.ts +19 -0
  526. package/script/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
  527. package/script/gen/types/WManagerLayoutInfo.js +3 -0
  528. package/script/gen/types/WegItem.d.ts +14 -0
  529. package/script/gen/types/WegItem.d.ts.map +1 -0
  530. package/script/gen/types/WegItem.js +2 -0
  531. package/script/gen/types/WegItems.d.ts +7 -0
  532. package/script/gen/types/WegItems.d.ts.map +1 -0
  533. package/script/gen/types/WegItems.js +2 -0
  534. package/script/gen/types/Widget.d.ts +8 -0
  535. package/script/gen/types/Widget.d.ts.map +1 -0
  536. package/script/gen/types/Widget.js +2 -0
  537. package/script/gen/types/WidgetId.d.ts +3 -0
  538. package/script/gen/types/WidgetId.d.ts.map +1 -0
  539. package/script/gen/types/WidgetId.js +2 -0
  540. package/script/gen/types/WindowManagerLayout.d.ts +9 -0
  541. package/script/gen/types/WindowManagerLayout.d.ts.map +1 -0
  542. package/script/gen/types/WindowManagerLayout.js +2 -0
  543. package/script/gen/types/WindowManagerSettings.d.ts +42 -0
  544. package/script/gen/types/WindowManagerSettings.d.ts.map +1 -0
  545. package/script/gen/types/WindowManagerSettings.js +2 -0
  546. package/script/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
  547. package/script/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
  548. package/script/gen/types/WindowManagerSettingsByMonitor.js +2 -0
  549. package/script/gen/types/WmFallbackNode.d.ts +25 -0
  550. package/script/gen/types/WmFallbackNode.d.ts.map +1 -0
  551. package/script/gen/types/WmFallbackNode.js +2 -0
  552. package/script/gen/types/WmHorizontalNode.d.ts +19 -0
  553. package/script/gen/types/WmHorizontalNode.d.ts.map +1 -0
  554. package/script/gen/types/WmHorizontalNode.js +2 -0
  555. package/script/gen/types/WmLeafNode.d.ts +21 -0
  556. package/script/gen/types/WmLeafNode.d.ts.map +1 -0
  557. package/script/gen/types/WmLeafNode.js +2 -0
  558. package/script/gen/types/WmNode.d.ts +17 -0
  559. package/script/gen/types/WmNode.d.ts.map +1 -0
  560. package/script/gen/types/WmNode.js +2 -0
  561. package/script/gen/types/WmStackNode.d.ts +25 -0
  562. package/script/gen/types/WmStackNode.d.ts.map +1 -0
  563. package/script/gen/types/WmStackNode.js +2 -0
  564. package/script/gen/types/WmVerticalNode.d.ts +19 -0
  565. package/script/gen/types/WmVerticalNode.d.ts.map +1 -0
  566. package/script/gen/types/WmVerticalNode.js +2 -0
  567. package/script/gen/types/WorkspaceConfiguration.d.ts +8 -0
  568. package/script/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
  569. package/script/gen/types/WorkspaceConfiguration.js +2 -0
  570. package/script/gen/types/WorkspaceIdentifier.d.ts +6 -0
  571. package/script/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
  572. package/script/gen/types/WorkspaceIdentifier.js +2 -0
  573. package/script/gen/types/WorkspaceIdentifierType.d.ts +2 -0
  574. package/script/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
  575. package/script/gen/types/WorkspaceIdentifierType.js +3 -0
  576. package/script/gen/types/WorkspaceToolbarItem.d.ts +56 -0
  577. package/script/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
  578. package/script/gen/types/WorkspaceToolbarItem.js +2 -0
  579. package/script/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
  580. package/script/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
  581. package/script/gen/types/WorkspaceToolbarItemMode.js +3 -0
  582. package/script/gen/types/mod.d.ts +76 -0
  583. package/script/gen/types/mod.d.ts.map +1 -0
  584. package/script/gen/types/mod.js +91 -0
  585. package/script/gen/types/serde_json/JsonValue.d.ts +4 -0
  586. package/script/gen/types/serde_json/JsonValue.d.ts.map +1 -0
  587. package/script/gen/types/serde_json/JsonValue.js +3 -0
  588. package/script/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
  589. package/script/src/handlers/commands.d.ts.map +1 -0
  590. package/script/{handlers/invokers.js → src/handlers/commands.js} +6 -7
  591. package/{esm → script/src}/handlers/events.d.ts +2 -1
  592. package/script/src/handlers/events.d.ts.map +1 -0
  593. package/script/{handlers → src/handlers}/events.js +2 -1
  594. package/script/src/handlers/invokers.d.ts +26 -0
  595. package/script/src/handlers/invokers.d.ts.map +1 -0
  596. package/script/{handlers/index.js → src/handlers/invokers.js} +12 -14
  597. package/script/src/handlers/mod.d.ts +4 -0
  598. package/script/src/handlers/mod.d.ts.map +1 -0
  599. package/script/src/handlers/mod.js +19 -0
  600. package/script/src/lib.d.ts +5 -0
  601. package/script/src/lib.d.ts.map +1 -0
  602. package/script/{lib.js → src/lib.js} +4 -4
  603. package/script/{state → src/state}/icon_pack.d.ts +1 -1
  604. package/script/src/state/icon_pack.d.ts.map +1 -0
  605. package/script/{state → src/state}/icon_pack.js +2 -2
  606. package/script/src/state/mod.d.ts +40 -0
  607. package/script/src/state/mod.d.ts.map +1 -0
  608. package/script/{state/index.js → src/state/mod.js} +7 -7
  609. package/script/src/state/placeholder.d.ts.map +1 -0
  610. package/script/src/state/plugin.d.ts +26 -0
  611. package/script/src/state/plugin.d.ts.map +1 -0
  612. package/script/src/state/plugin.js +16 -0
  613. package/script/src/state/profile.d.ts +23 -0
  614. package/script/src/state/profile.d.ts.map +1 -0
  615. package/script/src/state/profile.js +10 -0
  616. package/script/src/state/settings.d.ts +51 -0
  617. package/script/src/state/settings.d.ts.map +1 -0
  618. package/script/src/state/settings.js +46 -0
  619. package/script/src/state/settings_by_app.d.ts.map +1 -0
  620. package/script/src/state/settings_by_monitor.d.ts +20 -0
  621. package/script/src/state/settings_by_monitor.d.ts.map +1 -0
  622. package/script/src/state/settings_by_monitor.js +20 -0
  623. package/script/src/state/theme.d.ts +37 -0
  624. package/script/src/state/theme.d.ts.map +1 -0
  625. package/script/src/state/theme.js +11 -0
  626. package/script/src/state/weg_items.d.ts +27 -0
  627. package/script/src/state/weg_items.d.ts.map +1 -0
  628. package/script/src/state/weg_items.js +21 -0
  629. package/script/src/state/widget.d.ts +27 -0
  630. package/script/src/state/widget.d.ts.map +1 -0
  631. package/script/src/state/widget.js +11 -0
  632. package/script/src/state/wm_layout.d.ts.map +1 -0
  633. package/script/src/system_state/mod.d.ts +3 -0
  634. package/script/src/system_state/mod.d.ts.map +1 -0
  635. package/script/src/system_state/mod.js +18 -0
  636. package/script/src/system_state/monitors.d.ts +25 -0
  637. package/script/src/system_state/monitors.d.ts.map +1 -0
  638. package/script/src/system_state/monitors.js +11 -0
  639. package/script/src/system_state/uiColors.d.ts +33 -0
  640. package/script/src/system_state/uiColors.d.ts.map +1 -0
  641. package/script/{system_state/index.js → src/system_state/uiColors.js} +12 -12
  642. package/script/src/utils/List.d.ts +25 -0
  643. package/script/src/utils/List.d.ts.map +1 -0
  644. package/script/src/utils/List.js +40 -0
  645. package/script/src/utils/State.d.ts +11 -0
  646. package/script/src/utils/State.d.ts.map +1 -0
  647. package/script/src/utils/State.js +17 -0
  648. package/script/src/utils/layered_hitbox.d.ts.map +1 -0
  649. package/script/{utils → src/utils}/layered_hitbox.js +3 -3
  650. package/{esm/utils/index.d.ts → script/src/utils/mod.d.ts} +8 -5
  651. package/script/src/utils/mod.d.ts.map +1 -0
  652. package/script/{utils/index.js → src/utils/mod.js} +8 -7
  653. package/esm/_dnt.shims.d.ts +0 -5
  654. package/esm/_dnt.shims.d.ts.map +0 -1
  655. package/esm/_dnt.shims.js +0 -61
  656. package/esm/handlers/events.d.ts.map +0 -1
  657. package/esm/handlers/index.d.ts +0 -11
  658. package/esm/handlers/index.d.ts.map +0 -1
  659. package/esm/handlers/index.js +0 -16
  660. package/esm/handlers/invokers.d.ts.map +0 -1
  661. package/esm/lib.d.ts +0 -5
  662. package/esm/lib.d.ts.map +0 -1
  663. package/esm/lib.js +0 -4
  664. package/esm/state/icon_pack.d.ts.map +0 -1
  665. package/esm/state/index.d.ts +0 -24
  666. package/esm/state/index.d.ts.map +0 -1
  667. package/esm/state/placeholder.d.ts.map +0 -1
  668. package/esm/state/plugin.d.ts +0 -17
  669. package/esm/state/plugin.d.ts.map +0 -1
  670. package/esm/state/plugin.js +0 -31
  671. package/esm/state/profile.d.ts +0 -16
  672. package/esm/state/profile.d.ts.map +0 -1
  673. package/esm/state/profile.js +0 -13
  674. package/esm/state/settings.d.ts +0 -175
  675. package/esm/state/settings.d.ts.map +0 -1
  676. package/esm/state/settings.js +0 -195
  677. package/esm/state/settings_by_app.d.ts.map +0 -1
  678. package/esm/state/settings_by_monitor.d.ts +0 -43
  679. package/esm/state/settings_by_monitor.d.ts.map +0 -1
  680. package/esm/state/settings_by_monitor.js +0 -46
  681. package/esm/state/theme.d.ts +0 -31
  682. package/esm/state/theme.d.ts.map +0 -1
  683. package/esm/state/weg_items.d.ts +0 -36
  684. package/esm/state/weg_items.d.ts.map +0 -1
  685. package/esm/state/weg_items.js +0 -8
  686. package/esm/state/widget.d.ts +0 -4
  687. package/esm/state/widget.d.ts.map +0 -1
  688. package/esm/state/widget.js +0 -3
  689. package/esm/state/wm_layout.d.ts.map +0 -1
  690. package/esm/system_state/index.d.ts +0 -19
  691. package/esm/system_state/index.d.ts.map +0 -1
  692. package/esm/utils/hooks.d.ts +0 -2
  693. package/esm/utils/hooks.d.ts.map +0 -1
  694. package/esm/utils/hooks.js +0 -43
  695. package/esm/utils/index.d.ts.map +0 -1
  696. package/esm/utils/layered_hitbox.d.ts.map +0 -1
  697. package/script/_dnt.shims.d.ts +0 -5
  698. package/script/_dnt.shims.d.ts.map +0 -1
  699. package/script/_dnt.shims.js +0 -65
  700. package/script/handlers/events.d.ts.map +0 -1
  701. package/script/handlers/index.d.ts +0 -11
  702. package/script/handlers/index.d.ts.map +0 -1
  703. package/script/handlers/invokers.d.ts.map +0 -1
  704. package/script/lib.d.ts +0 -5
  705. package/script/lib.d.ts.map +0 -1
  706. package/script/state/icon_pack.d.ts.map +0 -1
  707. package/script/state/index.d.ts +0 -24
  708. package/script/state/index.d.ts.map +0 -1
  709. package/script/state/placeholder.d.ts.map +0 -1
  710. package/script/state/plugin.d.ts +0 -17
  711. package/script/state/plugin.d.ts.map +0 -1
  712. package/script/state/plugin.js +0 -36
  713. package/script/state/profile.d.ts +0 -16
  714. package/script/state/profile.d.ts.map +0 -1
  715. package/script/state/profile.js +0 -17
  716. package/script/state/settings.d.ts +0 -175
  717. package/script/state/settings.d.ts.map +0 -1
  718. package/script/state/settings.js +0 -234
  719. package/script/state/settings_by_app.d.ts.map +0 -1
  720. package/script/state/settings_by_monitor.d.ts +0 -43
  721. package/script/state/settings_by_monitor.d.ts.map +0 -1
  722. package/script/state/settings_by_monitor.js +0 -56
  723. package/script/state/theme.d.ts +0 -31
  724. package/script/state/theme.d.ts.map +0 -1
  725. package/script/state/weg_items.d.ts +0 -36
  726. package/script/state/weg_items.d.ts.map +0 -1
  727. package/script/state/weg_items.js +0 -11
  728. package/script/state/widget.d.ts +0 -4
  729. package/script/state/widget.d.ts.map +0 -1
  730. package/script/state/widget.js +0 -7
  731. package/script/state/wm_layout.d.ts.map +0 -1
  732. package/script/system_state/index.d.ts +0 -19
  733. package/script/system_state/index.d.ts.map +0 -1
  734. package/script/utils/hooks.d.ts +0 -2
  735. package/script/utils/hooks.d.ts.map +0 -1
  736. package/script/utils/hooks.js +0 -44
  737. package/script/utils/index.d.ts.map +0 -1
  738. package/script/utils/layered_hitbox.d.ts.map +0 -1
  739. /package/esm/{state/theme.js → gen/types/AhkVarList.js} +0 -0
  740. /package/esm/{state → src/state}/placeholder.d.ts +0 -0
  741. /package/esm/{state → src/state}/placeholder.js +0 -0
  742. /package/esm/{state → src/state}/settings_by_app.d.ts +0 -0
  743. /package/esm/{state → src/state}/settings_by_app.js +0 -0
  744. /package/esm/{state → src/state}/wm_layout.d.ts +0 -0
  745. /package/esm/{state → src/state}/wm_layout.js +0 -0
  746. /package/esm/{utils → src/utils}/layered_hitbox.d.ts +0 -0
  747. /package/script/{state/theme.js → gen/types/AhkVarList.js} +0 -0
  748. /package/script/{state → src/state}/placeholder.d.ts +0 -0
  749. /package/script/{state → src/state}/placeholder.js +0 -0
  750. /package/script/{state → src/state}/settings_by_app.d.ts +0 -0
  751. /package/script/{state → src/state}/settings_by_app.js +0 -0
  752. /package/script/{state → src/state}/wm_layout.d.ts +0 -0
  753. /package/script/{state → src/state}/wm_layout.js +0 -0
  754. /package/script/{utils → src/utils}/layered_hitbox.d.ts +0 -0
@@ -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,108 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.encodeBase64Url = encodeBase64Url;
29
+ exports.decodeBase64Url = decodeBase64Url;
30
+ /**
31
+ * Utilities for
32
+ * {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5 | base64url}
33
+ * encoding and decoding.
34
+ *
35
+ * @module
36
+ */
37
+ const base64 = __importStar(require("./base64.js"));
38
+ /**
39
+ * Some variants allow or require omitting the padding '=' signs:
40
+ * https://en.wikipedia.org/wiki/Base64#The_URL_applications
41
+ *
42
+ * @param base64url
43
+ */
44
+ function addPaddingToBase64url(base64url) {
45
+ if (base64url.length % 4 === 2)
46
+ return base64url + "==";
47
+ if (base64url.length % 4 === 3)
48
+ return base64url + "=";
49
+ if (base64url.length % 4 === 1) {
50
+ throw new TypeError("Illegal base64url string");
51
+ }
52
+ return base64url;
53
+ }
54
+ function convertBase64urlToBase64(b64url) {
55
+ if (!/^[-_A-Z0-9]*?={0,2}$/i.test(b64url)) {
56
+ // Contains characters not part of base64url spec.
57
+ throw new TypeError("Failed to decode base64url: invalid character");
58
+ }
59
+ return addPaddingToBase64url(b64url).replace(/\-/g, "+").replace(/_/g, "/");
60
+ }
61
+ function convertBase64ToBase64url(b64) {
62
+ return b64.endsWith("=")
63
+ ? b64.endsWith("==")
64
+ ? b64.replace(/\+/g, "-").replace(/\//g, "_").slice(0, -2)
65
+ : b64.replace(/\+/g, "-").replace(/\//g, "_").slice(0, -1)
66
+ : b64.replace(/\+/g, "-").replace(/\//g, "_");
67
+ }
68
+ /**
69
+ * Convert data into a base64url-encoded string.
70
+ *
71
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
72
+ *
73
+ * @param data The data to encode.
74
+ * @returns The base64url-encoded string.
75
+ *
76
+ * @example Usage
77
+ * ```ts
78
+ * import { encodeBase64Url } from "@std/encoding/base64url";
79
+ * import { assertEquals } from "@std/assert";
80
+ *
81
+ * assertEquals(encodeBase64Url("foobar"), "Zm9vYmFy");
82
+ * ```
83
+ */
84
+ function encodeBase64Url(data) {
85
+ return convertBase64ToBase64url(base64.encodeBase64(data));
86
+ }
87
+ /**
88
+ * Decodes a given base64url-encoded string.
89
+ *
90
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
91
+ *
92
+ * @param b64url The base64url-encoded string to decode.
93
+ * @returns The decoded data.
94
+ *
95
+ * @example Usage
96
+ * ```ts
97
+ * import { decodeBase64Url } from "@std/encoding/base64url";
98
+ * import { assertEquals } from "@std/assert";
99
+ *
100
+ * assertEquals(
101
+ * decodeBase64Url("Zm9vYmFy"),
102
+ * new TextEncoder().encode("foobar")
103
+ * );
104
+ * ```
105
+ */
106
+ function decodeBase64Url(b64url) {
107
+ return base64.decodeBase64(convertBase64urlToBase64(b64url));
108
+ }
@@ -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,113 @@
1
+ "use strict";
2
+ // Copyright 2009 The Go Authors. All rights reserved.
3
+ // https://github.com/golang/go/blob/master/LICENSE
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ // This module is browser compatible.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.encodeHex = encodeHex;
8
+ exports.decodeHex = decodeHex;
9
+ /**
10
+ * Port of the Go
11
+ * {@link https://github.com/golang/go/blob/go1.12.5/src/encoding/hex/hex.go | encoding/hex}
12
+ * library.
13
+ *
14
+ * ```ts
15
+ * import {
16
+ * decodeHex,
17
+ * encodeHex,
18
+ * } from "@std/encoding/hex";
19
+ * import { assertEquals } from "@std/assert";
20
+ *
21
+ * assertEquals(encodeHex("abc"), "616263");
22
+ *
23
+ * assertEquals(
24
+ * decodeHex("616263"),
25
+ * new TextEncoder().encode("abc"),
26
+ * );
27
+ * ```
28
+ *
29
+ * @module
30
+ */
31
+ const _validate_binary_like_js_1 = require("./_validate_binary_like.js");
32
+ const hexTable = new TextEncoder().encode("0123456789abcdef");
33
+ const textEncoder = new TextEncoder();
34
+ const textDecoder = new TextDecoder();
35
+ function errInvalidByte(byte) {
36
+ return new TypeError(`Invalid byte '${String.fromCharCode(byte)}'`);
37
+ }
38
+ function errLength(len) {
39
+ return new RangeError(`Cannot decode the hex string as the input length should be even: length is ${len}`);
40
+ }
41
+ /** Converts a hex character into its value. */
42
+ function fromHexChar(byte) {
43
+ // '0' <= byte && byte <= '9'
44
+ if (48 <= byte && byte <= 57)
45
+ return byte - 48;
46
+ // 'a' <= byte && byte <= 'f'
47
+ if (97 <= byte && byte <= 102)
48
+ return byte - 97 + 10;
49
+ // 'A' <= byte && byte <= 'F'
50
+ if (65 <= byte && byte <= 70)
51
+ return byte - 65 + 10;
52
+ throw errInvalidByte(byte);
53
+ }
54
+ /**
55
+ * Converts data into a hex-encoded string.
56
+ *
57
+ * @param src The data to encode.
58
+ *
59
+ * @returns The hex-encoded string.
60
+ *
61
+ * @example Usage
62
+ * ```ts
63
+ * import { encodeHex } from "@std/encoding/hex";
64
+ * import { assertEquals } from "@std/assert";
65
+ *
66
+ * assertEquals(encodeHex("abc"), "616263");
67
+ * ```
68
+ */
69
+ function encodeHex(src) {
70
+ const u8 = (0, _validate_binary_like_js_1.validateBinaryLike)(src);
71
+ const dst = new Uint8Array(u8.length * 2);
72
+ for (let i = 0; i < u8.length; i++) {
73
+ const v = u8[i];
74
+ dst[i * 2] = hexTable[v >> 4];
75
+ dst[i * 2 + 1] = hexTable[v & 0x0f];
76
+ }
77
+ return textDecoder.decode(dst);
78
+ }
79
+ /**
80
+ * Decodes the given hex-encoded string. If the input is malformed, an error is
81
+ * thrown.
82
+ *
83
+ * @param src The hex-encoded string to decode.
84
+ *
85
+ * @returns The decoded data.
86
+ *
87
+ * @example Usage
88
+ * ```ts
89
+ * import { decodeHex } from "@std/encoding/hex";
90
+ * import { assertEquals } from "@std/assert";
91
+ *
92
+ * assertEquals(
93
+ * decodeHex("616263"),
94
+ * new TextEncoder().encode("abc"),
95
+ * );
96
+ * ```
97
+ */
98
+ function decodeHex(src) {
99
+ const u8 = textEncoder.encode(src);
100
+ const dst = new Uint8Array(u8.length / 2);
101
+ for (let i = 0; i < dst.length; i++) {
102
+ const a = fromHexChar(u8[i * 2]);
103
+ const b = fromHexChar(u8[i * 2 + 1]);
104
+ dst[i] = (a << 4) | b;
105
+ }
106
+ if (u8.length % 2 === 1) {
107
+ // Check for invalid char before reporting bad length,
108
+ // since the invalid char (if present) is an earlier problem.
109
+ fromHexChar(u8[dst.length * 2]);
110
+ throw errLength(u8.length);
111
+ }
112
+ return dst;
113
+ }
@@ -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,38 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ /**
19
+ * Utilities for encoding and decoding common formats like hex, base64, and varint.
20
+ *
21
+ * ```ts
22
+ * import { encodeBase64, decodeBase64 } from "@std/encoding";
23
+ * import { assertEquals } from "@std/assert";
24
+ *
25
+ * const foobar = new TextEncoder().encode("foobar");
26
+ * assertEquals(encodeBase64(foobar), "Zm9vYmFy");
27
+ * assertEquals(decodeBase64("Zm9vYmFy"), foobar);
28
+ * ```
29
+ *
30
+ * @module
31
+ */
32
+ __exportStar(require("./ascii85.js"), exports);
33
+ __exportStar(require("./base32.js"), exports);
34
+ __exportStar(require("./base58.js"), exports);
35
+ __exportStar(require("./base64.js"), exports);
36
+ __exportStar(require("./base64url.js"), exports);
37
+ __exportStar(require("./hex.js"), exports);
38
+ __exportStar(require("./varint.js"), exports);
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Utilities for {@link https://protobuf.dev/programming-guides/encoding/#varints Varint} encoding
3
+ * of typed integers. Varint encoding represents integers using a variable number of bytes, with
4
+ * smaller values requiring fewer bytes.
5
+ *
6
+ * ```ts
7
+ * import { encodeVarint, decodeVarint } from "@std/encoding/varint";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * const buf = new Uint8Array(10);
11
+ * assertEquals(
12
+ * encodeVarint(42n, buf),
13
+ * [new Uint8Array([42]), 1]
14
+ * );
15
+ *
16
+ * assertEquals(
17
+ * decodeVarint(new Uint8Array([42])),
18
+ * [ 42n, 1 ]
19
+ * );
20
+ * ```
21
+ *
22
+ * @module
23
+ */
24
+ /**
25
+ * The maximum value of an unsigned 64-bit integer.
26
+ * Equivalent to `2n**64n - 1n`
27
+ */
28
+ export declare const MaxUint64 = 18446744073709551615n;
29
+ /**
30
+ * The maximum length, in bytes, of a Varint encoded 64-bit integer.
31
+ */
32
+ export declare const MaxVarintLen64 = 10;
33
+ /**
34
+ * The maximum length, in bytes, of a Varint encoded 32-bit integer.
35
+ */
36
+ export declare const MaxVarintLen32 = 5;
37
+ /**
38
+ * Given a non empty `buf`, starting at `offset` (default: 0), begin decoding bytes as
39
+ * Varint encoded bytes, for a maximum of 10 bytes (offset + 10). The returned
40
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
41
+ * to continue decoding other data.
42
+ *
43
+ * If a `bigint` in return is undesired, the `decode32` function will return a
44
+ * `number`, but this should only be used in cases where the varint is
45
+ * _assured_ to be 32-bits. If in doubt, use `decode()`.
46
+ *
47
+ * To know how many bytes the Varint took to encode, simply negate `offset`
48
+ * from the returned new `offset`.
49
+ *
50
+ * @param buf The buffer to decode from.
51
+ * @param offset The offset to start decoding from.
52
+ * @returns A tuple of the decoded varint 64-bit number, and the new offset.
53
+ *
54
+ * @example Usage
55
+ * ```ts
56
+ * import { decodeVarint } from "@std/encoding/varint";
57
+ * import { assertEquals } from "@std/assert";
58
+ *
59
+ * const buf = new Uint8Array([0x8E, 0x02]);
60
+ * assertEquals(decodeVarint(buf), [270n, 2]);
61
+ * ```
62
+ */
63
+ export declare function decodeVarint(buf: Uint8Array, offset?: number): [bigint, number];
64
+ /**
65
+ * Given a `buf`, starting at `offset` (default: 0), begin decoding bytes as
66
+ * Varint encoded bytes, for a maximum of 5 bytes (offset + 5). The returned
67
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
68
+ * to continue decoding other data.
69
+ *
70
+ * Varints are _not 32-bit by default_ so this should only be used in cases
71
+ * where the varint is _assured_ to be 32-bits. If in doubt, use `decode()`.
72
+ *
73
+ * To know how many bytes the Varint took to encode, simply negate `offset`
74
+ * from the returned new `offset`.
75
+ *
76
+ * @param buf The buffer to decode from.
77
+ * @param offset The offset to start decoding from.
78
+ * @returns A tuple of the decoded varint 32-bit number, and the new offset.
79
+ *
80
+ * @example Usage
81
+ * ```ts
82
+ * import { decodeVarint32 } from "@std/encoding/varint";
83
+ * import { assertEquals } from "@std/assert";
84
+ *
85
+ * const buf = new Uint8Array([0x8E, 0x02]);
86
+ * assertEquals(decodeVarint32(buf), [270, 2]);
87
+ * ```
88
+ */
89
+ export declare function decodeVarint32(buf: Uint8Array, offset?: number): [number, number];
90
+ /**
91
+ * Takes unsigned number `num` and converts it into a Varint encoded
92
+ * `Uint8Array`, returning a tuple consisting of a `Uint8Array` slice of the
93
+ * encoded Varint, and an offset where the Varint encoded bytes end within the
94
+ * `Uint8Array`.
95
+ *
96
+ * If `buf` is not given then a Uint8Array will be created.
97
+ * `offset` defaults to `0`.
98
+ *
99
+ * If passed `buf` then that will be written into, starting at `offset`. The
100
+ * resulting returned `Uint8Array` will be a slice of `buf`. The resulting
101
+ * returned number is effectively `offset + bytesWritten`.
102
+ *
103
+ * @param num The number to encode.
104
+ * @param buf The buffer to write into.
105
+ * @param offset The offset to start writing at.
106
+ * @returns A tuple of the encoded Varint `Uint8Array` and the new offset.
107
+ *
108
+ * @example Usage
109
+ * ```ts
110
+ * import { encodeVarint } from "@std/encoding/varint";
111
+ * import { assertEquals } from "@std/assert";
112
+ *
113
+ * const buf = new Uint8Array(10);
114
+ * assertEquals(encodeVarint(42n, buf), [new Uint8Array([42]), 1]);
115
+ * ```
116
+ */
117
+ export declare function encodeVarint(num: bigint | number, buf?: Uint8Array, offset?: number): [Uint8Array, number];
118
+ //# sourceMappingURL=varint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"varint.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/varint.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH;;;GAGG;AACH,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC;;GAEG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC;AAahC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6D1E;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAe5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,GAAG,GAAE,UAA2C,EAChD,MAAM,SAAI,GACT,CAAC,UAAU,EAAE,MAAM,CAAC,CAuBtB"}
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // Copyright 2020 Keith Cirkel. All rights reserved. MIT license.
4
+ // Copyright 2023 Skye "MierenManz". All rights reserved. MIT license.
5
+ /**
6
+ * Utilities for {@link https://protobuf.dev/programming-guides/encoding/#varints Varint} encoding
7
+ * of typed integers. Varint encoding represents integers using a variable number of bytes, with
8
+ * smaller values requiring fewer bytes.
9
+ *
10
+ * ```ts
11
+ * import { encodeVarint, decodeVarint } from "@std/encoding/varint";
12
+ * import { assertEquals } from "@std/assert";
13
+ *
14
+ * const buf = new Uint8Array(10);
15
+ * assertEquals(
16
+ * encodeVarint(42n, buf),
17
+ * [new Uint8Array([42]), 1]
18
+ * );
19
+ *
20
+ * assertEquals(
21
+ * decodeVarint(new Uint8Array([42])),
22
+ * [ 42n, 1 ]
23
+ * );
24
+ * ```
25
+ *
26
+ * @module
27
+ */
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MaxVarintLen32 = exports.MaxVarintLen64 = exports.MaxUint64 = void 0;
30
+ exports.decodeVarint = decodeVarint;
31
+ exports.decodeVarint32 = decodeVarint32;
32
+ exports.encodeVarint = encodeVarint;
33
+ // This implementation is a port of https://deno.land/x/varint@v2.0.0 by @keithamus
34
+ // This module is browser compatible.
35
+ /**
36
+ * The maximum value of an unsigned 64-bit integer.
37
+ * Equivalent to `2n**64n - 1n`
38
+ */
39
+ exports.MaxUint64 = 18446744073709551615n;
40
+ /**
41
+ * The maximum length, in bytes, of a Varint encoded 64-bit integer.
42
+ */
43
+ exports.MaxVarintLen64 = 10;
44
+ /**
45
+ * The maximum length, in bytes, of a Varint encoded 32-bit integer.
46
+ */
47
+ exports.MaxVarintLen32 = 5;
48
+ const MSB = 0x80;
49
+ const REST = 0x7f;
50
+ const SHIFT = 7;
51
+ const MSBN = 0x80n;
52
+ const SHIFTN = 7n;
53
+ // ArrayBuffer and TypedArray's for "pointer casting"
54
+ const AB = new ArrayBuffer(8);
55
+ const U32_VIEW = new Uint32Array(AB);
56
+ const U64_VIEW = new BigUint64Array(AB);
57
+ /**
58
+ * Given a non empty `buf`, starting at `offset` (default: 0), begin decoding bytes as
59
+ * Varint encoded bytes, for a maximum of 10 bytes (offset + 10). The returned
60
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
61
+ * to continue decoding other data.
62
+ *
63
+ * If a `bigint` in return is undesired, the `decode32` function will return a
64
+ * `number`, but this should only be used in cases where the varint is
65
+ * _assured_ to be 32-bits. If in doubt, use `decode()`.
66
+ *
67
+ * To know how many bytes the Varint took to encode, simply negate `offset`
68
+ * from the returned new `offset`.
69
+ *
70
+ * @param buf The buffer to decode from.
71
+ * @param offset The offset to start decoding from.
72
+ * @returns A tuple of the decoded varint 64-bit number, and the new offset.
73
+ *
74
+ * @example Usage
75
+ * ```ts
76
+ * import { decodeVarint } from "@std/encoding/varint";
77
+ * import { assertEquals } from "@std/assert";
78
+ *
79
+ * const buf = new Uint8Array([0x8E, 0x02]);
80
+ * assertEquals(decodeVarint(buf), [270n, 2]);
81
+ * ```
82
+ */
83
+ function decodeVarint(buf, offset = 0) {
84
+ // Clear the last result from the Two's complement view
85
+ U64_VIEW[0] = 0n;
86
+ // Setup the initiat state of the function
87
+ let intermediate = 0;
88
+ let position = 0;
89
+ let i = offset;
90
+ // If the buffer is empty Throw
91
+ if (buf.length === 0)
92
+ throw new RangeError("Cannot read empty buffer");
93
+ let byte;
94
+ do {
95
+ // Get a single byte from the buffer
96
+ byte = buf[i];
97
+ // 1. Take the lower 7 bits of the byte.
98
+ // 2. Shift the bits into the correct position.
99
+ // 3. Bitwise OR it with the intermediate value
100
+ // QUIRK: in the 5th (and 10th) iteration of this loop it will overflow on the shift.
101
+ // This causes only the lower 4 bits to be shifted into place and removing the upper 3 bits
102
+ intermediate |= (byte & 0b01111111) << position;
103
+ // If position is 28
104
+ // it means that this iteration needs to be written the the two's complement view
105
+ // This only happens once due to the `-4` in this branch
106
+ if (position === 28) {
107
+ // Write to the view
108
+ U32_VIEW[0] = intermediate;
109
+ // set `intermediate` to the remaining 3 bits
110
+ // We only want the remaining three bits because the other 4 have been "consumed" on line 21
111
+ intermediate = (byte & 0b01110000) >>> 4;
112
+ // set `position` to -4 because later 7 will be added, making it 3
113
+ position = -4;
114
+ }
115
+ // Increment the shift position by 7
116
+ position += 7;
117
+ // Increment the iterator by 1
118
+ i++;
119
+ // Keep going while there is a continuation bit
120
+ } while ((byte & 0b10000000) === 0b10000000);
121
+ // subtract the initial offset from `i` to get the bytes read
122
+ const nRead = i - offset;
123
+ // If 10 bytes have been read and intermediate has overflown
124
+ // it means that the varint is malformed
125
+ // If 11 bytes have been read it means that the varint is malformed
126
+ // If `i` is bigger than the buffer it means we overread the buffer and the varint is malformed
127
+ if ((nRead === 10 && intermediate > -1) || nRead === 11 || i > buf.length) {
128
+ throw new RangeError("Cannot decode the varint input: Malformed or overflow varint");
129
+ }
130
+ // Write the intermediate value to the "empty" slot
131
+ // if the first slot is taken. Take the second slot
132
+ U32_VIEW[Number(nRead > 4)] = intermediate;
133
+ return [U64_VIEW[0], i];
134
+ }
135
+ /**
136
+ * Given a `buf`, starting at `offset` (default: 0), begin decoding bytes as
137
+ * Varint encoded bytes, for a maximum of 5 bytes (offset + 5). The returned
138
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
139
+ * to continue decoding other data.
140
+ *
141
+ * Varints are _not 32-bit by default_ so this should only be used in cases
142
+ * where the varint is _assured_ to be 32-bits. If in doubt, use `decode()`.
143
+ *
144
+ * To know how many bytes the Varint took to encode, simply negate `offset`
145
+ * from the returned new `offset`.
146
+ *
147
+ * @param buf The buffer to decode from.
148
+ * @param offset The offset to start decoding from.
149
+ * @returns A tuple of the decoded varint 32-bit number, and the new offset.
150
+ *
151
+ * @example Usage
152
+ * ```ts
153
+ * import { decodeVarint32 } from "@std/encoding/varint";
154
+ * import { assertEquals } from "@std/assert";
155
+ *
156
+ * const buf = new Uint8Array([0x8E, 0x02]);
157
+ * assertEquals(decodeVarint32(buf), [270, 2]);
158
+ * ```
159
+ */
160
+ function decodeVarint32(buf, offset = 0) {
161
+ let shift = 0;
162
+ let decoded = 0;
163
+ for (let i = offset; i <= Math.min(buf.length, offset + exports.MaxVarintLen32); i += 1, shift += SHIFT) {
164
+ const byte = buf[i];
165
+ decoded += (byte & REST) * Math.pow(2, shift);
166
+ if (!(byte & MSB))
167
+ return [decoded, i + 1];
168
+ }
169
+ throw new RangeError("Cannot decode the varint input: Malformed or overflow varint");
170
+ }
171
+ /**
172
+ * Takes unsigned number `num` and converts it into a Varint encoded
173
+ * `Uint8Array`, returning a tuple consisting of a `Uint8Array` slice of the
174
+ * encoded Varint, and an offset where the Varint encoded bytes end within the
175
+ * `Uint8Array`.
176
+ *
177
+ * If `buf` is not given then a Uint8Array will be created.
178
+ * `offset` defaults to `0`.
179
+ *
180
+ * If passed `buf` then that will be written into, starting at `offset`. The
181
+ * resulting returned `Uint8Array` will be a slice of `buf`. The resulting
182
+ * returned number is effectively `offset + bytesWritten`.
183
+ *
184
+ * @param num The number to encode.
185
+ * @param buf The buffer to write into.
186
+ * @param offset The offset to start writing at.
187
+ * @returns A tuple of the encoded Varint `Uint8Array` and the new offset.
188
+ *
189
+ * @example Usage
190
+ * ```ts
191
+ * import { encodeVarint } from "@std/encoding/varint";
192
+ * import { assertEquals } from "@std/assert";
193
+ *
194
+ * const buf = new Uint8Array(10);
195
+ * assertEquals(encodeVarint(42n, buf), [new Uint8Array([42]), 1]);
196
+ * ```
197
+ */
198
+ function encodeVarint(num, buf = new Uint8Array(exports.MaxVarintLen64), offset = 0) {
199
+ num = BigInt(num);
200
+ if (num < 0n) {
201
+ throw new RangeError(`Cannot encode the input into varint as it should be non-negative integer: received ${num}`);
202
+ }
203
+ for (let i = offset; i <= Math.min(buf.length, exports.MaxVarintLen64); i += 1) {
204
+ if (num < MSBN) {
205
+ buf[i] = Number(num);
206
+ i += 1;
207
+ return [buf.slice(offset, i), i];
208
+ }
209
+ buf[i] = Number((num & 0xffn) | MSBN);
210
+ num >>= SHIFTN;
211
+ }
212
+ throw new RangeError(`Cannot encode the input ${num} into varint as it overflows uint64`);
213
+ }
@@ -0,0 +1,6 @@
1
+ export type AhkVar = {
2
+ fancy: string;
3
+ ahk: string;
4
+ readonly: boolean;
5
+ };
6
+ //# sourceMappingURL=AhkVar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AhkVar.d.ts","sourceRoot":"","sources":["../../../src/gen/types/AhkVar.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });