@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,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";