poe-svelte-ui-lib 2.3.8 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/README.md +79 -16
  2. package/dist/Button/ButtonProps.svelte +3 -3
  3. package/dist/Button/README.md +1 -1
  4. package/dist/FieldLabel.svelte +4 -2
  5. package/dist/GUIRenderer/GUIRenderer.svelte +25 -10
  6. package/dist/Graph/Graph.svelte +3 -3
  7. package/dist/Graph/README.md +10 -8
  8. package/dist/Input/Input.svelte +9 -4
  9. package/dist/Input/InputProps.svelte +3 -1
  10. package/dist/Input/README.md +1 -1
  11. package/dist/Joystick/Joystick.svelte +3 -3
  12. package/dist/Joystick/README.md +13 -11
  13. package/dist/PeriodChart/PeriodChart.svelte +3 -3
  14. package/dist/PeriodChart/README.md +2 -0
  15. package/dist/ProgressBar/ProgressBar.svelte +4 -0
  16. package/dist/ProgressBar/README.md +14 -10
  17. package/dist/Select/README.md +1 -1
  18. package/dist/Select/SelectProps.svelte +3 -3
  19. package/dist/Slider/README.md +15 -13
  20. package/dist/Slider/Slider.svelte +2 -1
  21. package/dist/Table/README.md +22 -20
  22. package/dist/Table/Table.svelte +3 -3
  23. package/dist/Table/TableProps.svelte +3 -1
  24. package/dist/Tabs/README.md +7 -5
  25. package/dist/Tabs/Tabs.svelte +7 -1
  26. package/dist/TextsEditor.svelte +8 -4
  27. package/dist/VideoViewer/README.md +15 -13
  28. package/dist/VideoViewer/VideoViewer.svelte +21 -11
  29. package/dist/WidgetDeviceInfo/README.md +20 -18
  30. package/dist/WidgetDeviceInfo/WidgetDeviceInfo.svelte +33 -13
  31. package/dist/WidgetDeviceInfo/WidgetDeviceInfoProps.svelte +3 -1
  32. package/dist/WidgetFileSystem/README.md +20 -20
  33. package/dist/WidgetFileSystem/WidgetFileSystem.svelte +8 -9
  34. package/dist/WidgetMap/README.md +7 -0
  35. package/dist/WidgetMap/mapWrapper/utils.js +2 -2
  36. package/dist/WidgetStackInfo/README.md +1 -1
  37. package/dist/WidgetStackInfo/WidgetStackInfo.svelte +24 -9
  38. package/dist/WidgetWiFi/README.md +18 -16
  39. package/dist/WidgetWiFi/WidgetWiFi.svelte +37 -19
  40. package/dist/defaults.js +8 -5
  41. package/dist/fsTransfer.d.ts +11 -0
  42. package/dist/fsTransfer.js +33 -8
  43. package/dist/gui.d.ts +3 -1
  44. package/dist/gui.js +4 -2
  45. package/dist/html.js +34 -9
  46. package/dist/icons.js +2 -2
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js +1 -1
  49. package/dist/locales/constructor.js +6 -6
  50. package/dist/locales/localize.js +9 -6
  51. package/dist/locales/translations.d.ts +51 -1
  52. package/dist/locales/translations.js +29 -7
  53. package/dist/options.d.ts +2 -0
  54. package/dist/options.js +4 -0
  55. package/dist/protocols/PROTOCOL.md +67 -9
  56. package/dist/protocols/can.js +7 -3
  57. package/dist/protocols/cbor/decoder.d.ts +0 -4
  58. package/dist/protocols/cbor/decoder.js +4 -23
  59. package/dist/protocols/cbor/encoder.d.ts +1 -1
  60. package/dist/protocols/cbor/encoder.js +3 -6
  61. package/dist/protocols/cbor/types.d.ts +0 -8
  62. package/dist/protocols/cbor/value.js +3 -3
  63. package/dist/protocols/index.d.ts +2 -1
  64. package/dist/protocols/index.js +3 -1
  65. package/dist/protocols/packet.d.ts +1 -0
  66. package/dist/protocols/packet.js +21 -22
  67. package/dist/protocols/wsEnvelope.d.ts +16 -0
  68. package/dist/protocols/wsEnvelope.js +24 -0
  69. package/dist/protocols/xPoeDebug.js +12 -14
  70. package/dist/types.d.ts +26 -0
  71. package/package.json +2 -2
  72. package/dist/IconsCatalog/battery/battery1.svg +0 -1
  73. package/dist/IconsCatalog/battery/battery2.svg +0 -1
  74. package/dist/IconsCatalog/battery/battery3.svg +0 -1
  75. package/dist/IconsCatalog/battery/battery4.svg +0 -1
  76. package/dist/IconsCatalog/battery/battery5.svg +0 -1
  77. package/dist/IconsCatalog/bulb/bulb1.svg +0 -1
  78. package/dist/IconsCatalog/bulb/bulb2.svg +0 -1
  79. package/dist/IconsCatalog/bulb/bulb3.svg +0 -1
  80. package/dist/IconsCatalog/bulb/bulb4.svg +0 -1
  81. package/dist/IconsCatalog/bulb/bulb5.svg +0 -1
  82. package/dist/IconsCatalog/climate.air-conditioning.svg +0 -1
  83. package/dist/IconsCatalog/climate.car-fan.svg +0 -1
  84. package/dist/IconsCatalog/climate.cloud-rain.svg +0 -1
  85. package/dist/IconsCatalog/climate.droplet.svg +0 -1
  86. package/dist/IconsCatalog/climate.droplets.svg +0 -1
  87. package/dist/IconsCatalog/climate.flame.svg +0 -1
  88. package/dist/IconsCatalog/climate.leaf.svg +0 -1
  89. package/dist/IconsCatalog/climate.mist.svg +0 -1
  90. package/dist/IconsCatalog/climate.moon.svg +0 -1
  91. package/dist/IconsCatalog/climate.plant.svg +0 -1
  92. package/dist/IconsCatalog/climate.seedling.svg +0 -1
  93. package/dist/IconsCatalog/climate.snowflake.svg +0 -1
  94. package/dist/IconsCatalog/climate.sun.svg +0 -1
  95. package/dist/IconsCatalog/climate.temperature-sun.svg +0 -1
  96. package/dist/IconsCatalog/climate.trees.svg +0 -1
  97. package/dist/IconsCatalog/climate.wind.svg +0 -1
  98. package/dist/IconsCatalog/electronics.cpu-2.svg +0 -1
  99. package/dist/IconsCatalog/electronics.cpu.svg +0 -1
  100. package/dist/IconsCatalog/electronics.database.svg +0 -1
  101. package/dist/IconsCatalog/electronics.device-desktop.svg +0 -1
  102. package/dist/IconsCatalog/electronics.device-gamepad.svg +0 -1
  103. package/dist/IconsCatalog/electronics.device-laptop.svg +0 -1
  104. package/dist/IconsCatalog/electronics.device-mobile.svg +0 -1
  105. package/dist/IconsCatalog/electronics.device-sd-card.svg +0 -1
  106. package/dist/IconsCatalog/electronics.device-tablet.svg +0 -1
  107. package/dist/IconsCatalog/electronics.device-tv.svg +0 -1
  108. package/dist/IconsCatalog/electronics.device-watch.svg +0 -1
  109. package/dist/IconsCatalog/electronics.keyboard.svg +0 -1
  110. package/dist/IconsCatalog/electronics.printer.svg +0 -1
  111. package/dist/IconsCatalog/electronics.server.svg +0 -1
  112. package/dist/IconsCatalog/electronics.terminal-2.svg +0 -1
  113. package/dist/IconsCatalog/electronics.usb.svg +0 -1
  114. package/dist/IconsCatalog/home.bed.svg +0 -1
  115. package/dist/IconsCatalog/home.building.svg +0 -1
  116. package/dist/IconsCatalog/home.car-garage.svg +0 -1
  117. package/dist/IconsCatalog/home.door.svg +0 -1
  118. package/dist/IconsCatalog/home.elevator.svg +0 -1
  119. package/dist/IconsCatalog/home.fence.svg +0 -1
  120. package/dist/IconsCatalog/home.fingerprint.svg +0 -1
  121. package/dist/IconsCatalog/home.fridge.svg +0 -1
  122. package/dist/IconsCatalog/home.home.svg +0 -1
  123. package/dist/IconsCatalog/home.id-badge-2.svg +0 -1
  124. package/dist/IconsCatalog/home.key.svg +0 -1
  125. package/dist/IconsCatalog/home.lock.svg +0 -1
  126. package/dist/IconsCatalog/home.shield.svg +0 -1
  127. package/dist/IconsCatalog/home.sofa.svg +0 -1
  128. package/dist/IconsCatalog/home.users.svg +0 -1
  129. package/dist/IconsCatalog/home.window.svg +0 -1
  130. package/dist/IconsCatalog/iconsLib.d.ts +0 -1
  131. package/dist/IconsCatalog/iconsLib.js +0 -43
  132. package/dist/IconsCatalog/industry.assembly.svg +0 -1
  133. package/dist/IconsCatalog/industry.barrel.svg +0 -1
  134. package/dist/IconsCatalog/industry.box.svg +0 -1
  135. package/dist/IconsCatalog/industry.building-factory.svg +0 -1
  136. package/dist/IconsCatalog/industry.crane.svg +0 -1
  137. package/dist/IconsCatalog/industry.engine.svg +0 -1
  138. package/dist/IconsCatalog/industry.fire-extinguisher.svg +0 -1
  139. package/dist/IconsCatalog/industry.forklift.svg +0 -1
  140. package/dist/IconsCatalog/industry.gas-station.svg +0 -1
  141. package/dist/IconsCatalog/industry.hammer.svg +0 -1
  142. package/dist/IconsCatalog/industry.package.svg +0 -1
  143. package/dist/IconsCatalog/industry.recycle.svg +0 -1
  144. package/dist/IconsCatalog/industry.robot.svg +0 -1
  145. package/dist/IconsCatalog/industry.tool.svg +0 -1
  146. package/dist/IconsCatalog/industry.tools.svg +0 -1
  147. package/dist/IconsCatalog/industry.wheel.svg +0 -1
  148. package/dist/IconsCatalog/light.brightness.svg +0 -1
  149. package/dist/IconsCatalog/light.building-lighthouse.svg +0 -1
  150. package/dist/IconsCatalog/light.bulb-off.svg +0 -1
  151. package/dist/IconsCatalog/light.bulb.svg +0 -1
  152. package/dist/IconsCatalog/light.candle.svg +0 -1
  153. package/dist/IconsCatalog/light.color-picker.svg +0 -1
  154. package/dist/IconsCatalog/light.color-swatch.svg +0 -1
  155. package/dist/IconsCatalog/light.contrast.svg +0 -1
  156. package/dist/IconsCatalog/light.highlight.svg +0 -1
  157. package/dist/IconsCatalog/light.lamp-2.svg +0 -1
  158. package/dist/IconsCatalog/light.lamp.svg +0 -1
  159. package/dist/IconsCatalog/light.palette.svg +0 -1
  160. package/dist/IconsCatalog/light.prism-light.svg +0 -1
  161. package/dist/IconsCatalog/light.sparkles.svg +0 -1
  162. package/dist/IconsCatalog/light.sun-high.svg +0 -1
  163. package/dist/IconsCatalog/light.traffic-lights.svg +0 -1
  164. package/dist/IconsCatalog/media.camera.svg +0 -1
  165. package/dist/IconsCatalog/media.device-audio-tape.svg +0 -1
  166. package/dist/IconsCatalog/media.device-cctv.svg +0 -1
  167. package/dist/IconsCatalog/media.device-speaker.svg +0 -1
  168. package/dist/IconsCatalog/media.headphones.svg +0 -1
  169. package/dist/IconsCatalog/media.microphone.svg +0 -1
  170. package/dist/IconsCatalog/media.movie.svg +0 -1
  171. package/dist/IconsCatalog/media.music.svg +0 -1
  172. package/dist/IconsCatalog/media.photo.svg +0 -1
  173. package/dist/IconsCatalog/media.player-play.svg +0 -1
  174. package/dist/IconsCatalog/media.player-record.svg +0 -1
  175. package/dist/IconsCatalog/media.playlist.svg +0 -1
  176. package/dist/IconsCatalog/media.radio.svg +0 -1
  177. package/dist/IconsCatalog/media.speakerphone.svg +0 -1
  178. package/dist/IconsCatalog/media.video.svg +0 -1
  179. package/dist/IconsCatalog/media.volume.svg +0 -1
  180. package/dist/IconsCatalog/network.access-point.svg +0 -1
  181. package/dist/IconsCatalog/network.antenna-bars-5.svg +0 -1
  182. package/dist/IconsCatalog/network.antenna.svg +0 -1
  183. package/dist/IconsCatalog/network.bluetooth.svg +0 -1
  184. package/dist/IconsCatalog/network.broadcast.svg +0 -1
  185. package/dist/IconsCatalog/network.cell-signal-5.svg +0 -1
  186. package/dist/IconsCatalog/network.cloud.svg +0 -1
  187. package/dist/IconsCatalog/network.link.svg +0 -1
  188. package/dist/IconsCatalog/network.mail.svg +0 -1
  189. package/dist/IconsCatalog/network.message.svg +0 -1
  190. package/dist/IconsCatalog/network.network.svg +0 -1
  191. package/dist/IconsCatalog/network.nfc.svg +0 -1
  192. package/dist/IconsCatalog/network.router.svg +0 -1
  193. package/dist/IconsCatalog/network.wifi.svg +0 -1
  194. package/dist/IconsCatalog/network.world-www.svg +0 -1
  195. package/dist/IconsCatalog/network.world.svg +0 -1
  196. package/dist/IconsCatalog/power.battery-automotive.svg +0 -1
  197. package/dist/IconsCatalog/power.battery-charging.svg +0 -1
  198. package/dist/IconsCatalog/power.battery-eco.svg +0 -1
  199. package/dist/IconsCatalog/power.battery.svg +0 -1
  200. package/dist/IconsCatalog/power.bolt.svg +0 -1
  201. package/dist/IconsCatalog/power.charging-pile.svg +0 -1
  202. package/dist/IconsCatalog/power.circuit-ground.svg +0 -1
  203. package/dist/IconsCatalog/power.circuit-motor.svg +0 -1
  204. package/dist/IconsCatalog/power.circuit-resistor.svg +0 -1
  205. package/dist/IconsCatalog/power.circuit-switch-open.svg +0 -1
  206. package/dist/IconsCatalog/power.plug-connected.svg +0 -1
  207. package/dist/IconsCatalog/power.plug.svg +0 -1
  208. package/dist/IconsCatalog/power.power.svg +0 -1
  209. package/dist/IconsCatalog/power.solar-panel.svg +0 -1
  210. package/dist/IconsCatalog/power.toggle-left.svg +0 -1
  211. package/dist/IconsCatalog/power.windmill.svg +0 -1
  212. package/dist/IconsCatalog/propeller/propeller1.svg +0 -1
  213. package/dist/IconsCatalog/propeller/propeller2.svg +0 -1
  214. package/dist/IconsCatalog/propeller/propeller3.svg +0 -1
  215. package/dist/IconsCatalog/propeller/propeller4.svg +0 -1
  216. package/dist/IconsCatalog/propeller/propeller5.svg +0 -1
  217. package/dist/IconsCatalog/sensors.activity.svg +0 -1
  218. package/dist/IconsCatalog/sensors.atom.svg +0 -1
  219. package/dist/IconsCatalog/sensors.compass.svg +0 -1
  220. package/dist/IconsCatalog/sensors.dashboard.svg +0 -1
  221. package/dist/IconsCatalog/sensors.device-mobile-vibration.svg +0 -1
  222. package/dist/IconsCatalog/sensors.droplet-half-2.svg +0 -1
  223. package/dist/IconsCatalog/sensors.eye.svg +0 -1
  224. package/dist/IconsCatalog/sensors.flask.svg +0 -1
  225. package/dist/IconsCatalog/sensors.gauge.svg +0 -1
  226. package/dist/IconsCatalog/sensors.heartbeat.svg +0 -1
  227. package/dist/IconsCatalog/sensors.magnet.svg +0 -1
  228. package/dist/IconsCatalog/sensors.radioactive.svg +0 -1
  229. package/dist/IconsCatalog/sensors.ruler-measure.svg +0 -1
  230. package/dist/IconsCatalog/sensors.scale.svg +0 -1
  231. package/dist/IconsCatalog/sensors.temperature.svg +0 -1
  232. package/dist/IconsCatalog/sensors.thermometer.svg +0 -1
  233. package/dist/IconsCatalog/settings.adjustments.svg +0 -1
  234. package/dist/IconsCatalog/settings.alert-triangle.svg +0 -1
  235. package/dist/IconsCatalog/settings.bell.svg +0 -1
  236. package/dist/IconsCatalog/settings.calendar.svg +0 -1
  237. package/dist/IconsCatalog/settings.chart-bar.svg +0 -1
  238. package/dist/IconsCatalog/settings.chart-line.svg +0 -1
  239. package/dist/IconsCatalog/settings.chart-pie.svg +0 -1
  240. package/dist/IconsCatalog/settings.clock.svg +0 -1
  241. package/dist/IconsCatalog/settings.file-text.svg +0 -1
  242. package/dist/IconsCatalog/settings.folder.svg +0 -1
  243. package/dist/IconsCatalog/settings.history.svg +0 -1
  244. package/dist/IconsCatalog/settings.info-circle.svg +0 -1
  245. package/dist/IconsCatalog/settings.list.svg +0 -1
  246. package/dist/IconsCatalog/settings.report.svg +0 -1
  247. package/dist/IconsCatalog/settings.settings.svg +0 -1
  248. package/dist/IconsCatalog/settings.table.svg +0 -1
  249. package/dist/IconsCatalog/space.comet.svg +0 -1
  250. package/dist/IconsCatalog/space.meteor.svg +0 -1
  251. package/dist/IconsCatalog/space.moon-stars.svg +0 -1
  252. package/dist/IconsCatalog/space.orbit.svg +0 -1
  253. package/dist/IconsCatalog/space.parachute.svg +0 -1
  254. package/dist/IconsCatalog/space.plane-departure.svg +0 -1
  255. package/dist/IconsCatalog/space.planet.svg +0 -1
  256. package/dist/IconsCatalog/space.radar-2.svg +0 -1
  257. package/dist/IconsCatalog/space.radar.svg +0 -1
  258. package/dist/IconsCatalog/space.rocket.svg +0 -1
  259. package/dist/IconsCatalog/space.satellite.svg +0 -1
  260. package/dist/IconsCatalog/space.stars.svg +0 -1
  261. package/dist/IconsCatalog/space.target-arrow.svg +0 -1
  262. package/dist/IconsCatalog/space.telescope.svg +0 -1
  263. package/dist/IconsCatalog/space.ufo.svg +0 -1
  264. package/dist/IconsCatalog/space.world-longitude.svg +0 -1
  265. package/dist/IconsCatalog/transport.bike.svg +0 -1
  266. package/dist/IconsCatalog/transport.bus.svg +0 -1
  267. package/dist/IconsCatalog/transport.car.svg +0 -1
  268. package/dist/IconsCatalog/transport.drone.svg +0 -1
  269. package/dist/IconsCatalog/transport.gps.svg +0 -1
  270. package/dist/IconsCatalog/transport.helicopter.svg +0 -1
  271. package/dist/IconsCatalog/transport.map-pin.svg +0 -1
  272. package/dist/IconsCatalog/transport.map.svg +0 -1
  273. package/dist/IconsCatalog/transport.navigation.svg +0 -1
  274. package/dist/IconsCatalog/transport.plane.svg +0 -1
  275. package/dist/IconsCatalog/transport.route.svg +0 -1
  276. package/dist/IconsCatalog/transport.ship.svg +0 -1
  277. package/dist/IconsCatalog/transport.steering-wheel.svg +0 -1
  278. package/dist/IconsCatalog/transport.tractor.svg +0 -1
  279. package/dist/IconsCatalog/transport.train.svg +0 -1
  280. package/dist/IconsCatalog/transport.truck.svg +0 -1
@@ -60,14 +60,14 @@ const joinBytes = (parts, size) => {
60
60
  return out;
61
61
  };
62
62
  const decoder = new TextDecoder();
63
- /* Потоковый разбор ответа slcan-адаптера: push(байты порта, время) → собранные пакеты; незавершённые сессии и обрывок строки живут sessionTimeoutMs, сессия длиннее maxPacketBytes сбрасывается */
63
+ /* Потоковый разбор ответа slcan-адаптера: push(байты порта, время) → собранные пакеты; незавершённая сессия живёт sessionTimeoutMs от последнего фрагмента, обрывок строки - столько же, сессия длиннее maxPacketBytes сбрасывается. Собранное выдаётся, только если это целый пакет 0x9F ... 0xFF: при потерянном или истёкшем начале обрывок отбрасывается */
64
64
  export const createCanParser = ({ sessionTimeoutMs = 2000, maxPacketBytes = 8192 } = {}) => {
65
65
  const framer = createFramer({ gapMs: sessionTimeoutMs });
66
66
  const sessions = new Map();
67
67
  return {
68
68
  push(chunk, now = Date.now()) {
69
69
  for (const [id, session] of sessions)
70
- if (now - session.timestamp > sessionTimeoutMs)
70
+ if (now - session.last > sessionTimeoutMs)
71
71
  sessions.delete(id);
72
72
  const messages = [];
73
73
  framer.push(chunk, now, (bytes) => {
@@ -92,17 +92,21 @@ export const createCanParser = ({ sessionTimeoutMs = 2000, maxPacketBytes = 8192
92
92
  if (!(canId & CAN_FINAL_BIT)) {
93
93
  /* Промежуточный фрагмент: копим; потерян последний и пакет разросся - сбрасываем */
94
94
  if (!session)
95
- sessions.set(packetId, { parts: [data], size: data.length, timestamp: now });
95
+ sessions.set(packetId, { parts: [data], size: data.length, timestamp: now, last: now });
96
96
  else if (session.size + data.length > maxPacketBytes)
97
97
  sessions.delete(packetId);
98
98
  else {
99
99
  session.parts.push(data);
100
100
  session.size += data.length;
101
+ session.last = now;
101
102
  }
102
103
  return end + 1;
103
104
  }
104
105
  sessions.delete(packetId);
105
106
  const whole = session ? joinBytes([...session.parts, data], session.size + data.length) : data;
107
+ /* Начало потеряно или истекло - обрывок пакетом не выдаётся */
108
+ if (decodePacket(whole).status !== "complete")
109
+ return end + 1;
106
110
  messages.push({ canId, packetId, data: lower === "t" ? whole : trimFdPadding(whole), remote: false, timestamp: session?.timestamp ?? now });
107
111
  return end + 1;
108
112
  });
@@ -6,10 +6,6 @@ export declare class CborDecoder {
6
6
  get offset(): number;
7
7
  decode(): CborValue;
8
8
  skipValue(): boolean;
9
- decodeBytes(): {
10
- value: Uint8Array;
11
- length: number;
12
- } | null;
13
9
  private readIndefiniteBytes;
14
10
  private readIndefiniteString;
15
11
  private decodeStringWithLength;
@@ -1,5 +1,6 @@
1
1
  /* CBOR декодер - реализует декодирование бинарного формата CBOR (RFC 8949) */
2
2
  import { CborMajorType, CborAdditionalInfo, CborSimpleValue, CborTag, CBOR_BREAK, CBOR_MAX_DEPTH, CborError, CborEndOfDataError, CborDepthLimitError, } from "./types.js";
3
+ const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
3
4
  /* Класс декодера CBOR */
4
5
  export class CborDecoder {
5
6
  state;
@@ -55,27 +56,6 @@ export class CborDecoder {
55
56
  return false;
56
57
  }
57
58
  }
58
- /* Декодировать байтовую строку (в т.ч. indefinite-length, через чанки) */
59
- decodeBytes() {
60
- const savedOffset = this.state.offset;
61
- try {
62
- const header = this.readHeader();
63
- if (header.majorType !== CborMajorType.ByteString) {
64
- this.state.offset = savedOffset;
65
- return null;
66
- }
67
- const result = header.value === BigInt(-1) ? this.readIndefiniteBytes() : this.decodeBytesWithLength(Number(header.value));
68
- if (!result) {
69
- this.state.offset = savedOffset;
70
- return null;
71
- }
72
- return result;
73
- }
74
- catch {
75
- this.state.offset = savedOffset;
76
- return null;
77
- }
78
- }
79
59
  /* Читает чанки indefinite-length байтовой строки до BREAK и склеивает их (заголовок уже прочитан вызывающим) */
80
60
  readIndefiniteBytes() {
81
61
  const chunks = [];
@@ -195,10 +175,11 @@ export class CborDecoder {
195
175
  /* Декодировать значение по типу заголовка */
196
176
  decodeByType(header) {
197
177
  switch (header.majorType) {
178
+ /* Целое вне safe integer - bigint, чтобы не терять точность (CborToValue отдаст его строкой) */
198
179
  case CborMajorType.UnsignedInteger:
199
- return Number(header.value);
180
+ return header.value <= MAX_SAFE ? Number(header.value) : header.value;
200
181
  case CborMajorType.NegativeInteger:
201
- return -1 - Number(header.value);
182
+ return header.value < MAX_SAFE ? -1 - Number(header.value) : -BigInt(1) - header.value;
202
183
  case CborMajorType.ByteString: {
203
184
  const bytesValue = header.value === BigInt(-1) ? this.readIndefiniteBytes() : this.decodeBytesWithLength(Number(header.value));
204
185
  /* Не хватило байт - конец данных (в потоке это «ждать ещё»), а не испорченный CBOR */
@@ -1,7 +1,7 @@
1
1
  import { type CborValue } from "./types.js";
2
2
  export declare class CborEncoder {
3
3
  private buffer;
4
- constructor(initialCapacity?: number);
4
+ constructor();
5
5
  getResult(): Uint8Array;
6
6
  encodeNull(): this;
7
7
  encodeBoolean(value: boolean): this;
@@ -3,11 +3,8 @@ import { CborMajorType, CborAdditionalInfo, CborSimpleValue, CborTag, CBOR_BREAK
3
3
  /* Класс энкодера CBOR */
4
4
  export class CborEncoder {
5
5
  buffer;
6
- constructor(initialCapacity = 256) {
6
+ constructor() {
7
7
  this.buffer = [];
8
- /* Pre-allocate buffer */
9
- this.buffer.length = initialCapacity;
10
- this.buffer.length = 0;
11
8
  }
12
9
  /* Получить закодированные данные как Uint8Array */
13
10
  getResult() {
@@ -91,8 +88,8 @@ export class CborEncoder {
91
88
  }
92
89
  return value > 0 ? this.encodeFloat64(Infinity) : this.encodeFloat64(-Infinity);
93
90
  }
94
- /* Проверяем можно ли сохранить как integer */
95
- if (Number.isInteger(value)) {
91
+ /* Целым кодируется только точное целое (safe integer): 1e20 и подобные идут как float64, иначе writeHeader вышел бы за uint64 */
92
+ if (Number.isSafeInteger(value)) {
96
93
  return this.encodeInt(value);
97
94
  }
98
95
  /* Проверяем, можем ли мы представить значение точно как float16 (диапазон ≈ ±65504) */
@@ -49,11 +49,3 @@ export declare class CborEndOfDataError extends CborError {
49
49
  export declare class CborDepthLimitError extends CborError {
50
50
  constructor();
51
51
  }
52
- export interface JsonPrimitive {
53
- type: "null" | "boolean" | "number" | "string";
54
- value: unknown;
55
- }
56
- export interface JsonObject {
57
- [key: string]: JsonValue;
58
- }
59
- export type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
@@ -27,13 +27,13 @@ class CborToValue {
27
27
  /* Array */
28
28
  if (Array.isArray(value))
29
29
  return value.map((item) => this.convert(item));
30
- /* bigint */
30
+ /* bigint: декодер отдаёт его для целых вне safe integer (uint64 устройства) */
31
31
  if (typeof value === "bigint") {
32
- /* Если в пределах safe integer - возвращаем как число */
32
+ /* В пределах safe integer - число */
33
33
  if (value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER)) {
34
34
  return Number(value);
35
35
  }
36
- /* Иначе возвращаем как строку */
36
+ /* Иначе строка: число потеряло бы точность */
37
37
  return value.toString();
38
38
  }
39
39
  /* Map -> Object (check native Map) */
@@ -8,4 +8,5 @@ export { createPlotGroups, debugPlotValues, DEBUG_PLOT_ARGUMENT, type PlotPoint
8
8
  export { encodeXPoeDebugFrame, createXPoeDebugParser, xPoeDebugHar, xPoeDebugValueFromText, xPoeDebugRow, DEBUG_LOG_ARGUMENT, type XPoeDebugItem, type XPoeDebugRow, } from "./xPoeDebug.js";
9
9
  export { formatXPoeDebugValue, formatXPoeDebugPretty } from "./xPoeDebugView.js";
10
10
  export { CAN_FINAL_BIT, CAN_PACKET_ID_MASK, canFragments, encodeSlcanFrame, encodeCanPacket, createCanParser, slcanOpenCommands, type CanFrame, type CanMessage, } from "./can.js";
11
- export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, parseArgumentDictionary, createDictionary, type Dictionary } from "./dictionary.js";
11
+ export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, DEFAULT_DICTIONARY, parseArgumentDictionary, createDictionary, type Dictionary } from "./dictionary.js";
12
+ export { isModuleTarget, wsArgumentCode, wsArgumentName, wsEnvelope, readWsEnvelope, type WsArgument, type WsEnvelope } from "./wsEnvelope.js";
@@ -17,4 +17,6 @@ export { formatXPoeDebugValue, formatXPoeDebugPretty } from "./xPoeDebugView.js"
17
17
  /* CAN/CAN FD через slcan-адаптер: нарезка пакета на кадры как в can_service прошивки, кадры slcan, потоковый разбор со сборкой фрагментов */
18
18
  export { CAN_FINAL_BIT, CAN_PACKET_ID_MASK, canFragments, encodeSlcanFrame, encodeCanPacket, createCanParser, slcanOpenCommands, } from "./can.js";
19
19
  /* Словарь заголовков и аргументов HAR - по умолчанию из мастер-словаря dictionary.yaml библиотеки, разбор файла словаря, словарь устройства с обратным поиском для xPOE-Debug */
20
- export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, parseArgumentDictionary, createDictionary } from "./dictionary.js";
20
+ export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, DEFAULT_DICTIONARY, parseArgumentDictionary, createDictionary } from "./dictionary.js";
21
+ /* Конверт WebSocket {HDR, ARG, VAL}: ARG - имя или код аргумента; модулю за хабом - код, входящий код переводится в имя */
22
+ export { isModuleTarget, wsArgumentCode, wsArgumentName, wsEnvelope, readWsEnvelope } from "./wsEnvelope.js";
@@ -33,6 +33,7 @@ export type PacketParse = {
33
33
  } | {
34
34
  status: "garbage";
35
35
  };
36
+ export declare const packetStart: (bytes: Uint8Array) => number;
36
37
  export declare const decodePacket: (bytes: Uint8Array, maxItemBytes?: number) => PacketParse;
37
38
  export declare const createPacketStreamParser: (options?: FramerOptions) => {
38
39
  push(chunk: Uint8Array, now?: number): {
@@ -91,34 +91,29 @@ const toObject = (value, rawRecord) => {
91
91
  const payload = item.length === 1 && item[0] === 0xf6 ? new Uint8Array() : item;
92
92
  return { trgBusID, srcBusID, har, payload, crc, crcOk: packetObjectCrc(prefix) === crc, ...splitHar(har) };
93
93
  };
94
- /* Разбор пакета с начала буфера - и для целого кадра (CAN), и для потока (RS485: «incomplete» - ждать ещё байт, «garbage» - сдвинуться на байт); заявленная длина больше maxItemBytes - мусор, а не ожидание */
94
+ /* Начало пакета - indefinite-массив 0x9F, за ним запись-массив из 5 полей 0x85 (как CBOR_PktStreamPush прошивки) */
95
+ const PACKET_START = 0x9f;
96
+ const PACKET_RECORD = 0x85;
97
+ /* Позиция начала пакета 0x9F 0x85 в буфере; 0x9F последним байтом - возможное начало; -1 - начала нет */
98
+ export const packetStart = (bytes) => {
99
+ for (let i = bytes.indexOf(PACKET_START); i >= 0; i = bytes.indexOf(PACKET_START, i + 1))
100
+ if (i + 1 >= bytes.length || bytes[i + 1] === PACKET_RECORD)
101
+ return i;
102
+ return -1;
103
+ };
104
+ /* Разбор пакета с начала буфера - и для целого кадра (CAN), и для потока (RS485: «incomplete» - ждать ещё байт, «garbage» - сдвинуться на байт); заявленная длина больше maxItemBytes - мусор, а не ожидание. Пакет - только indefinite-массив 0x9F ... 0xFF: definite-массивы прошивка (CBOR_PktDecInit) отвергает */
95
105
  export const decodePacket = (bytes, maxItemBytes = Infinity) => {
96
106
  if (bytes.length === 0)
97
107
  return { status: "incomplete" };
98
- const first = bytes[0];
99
- if (first >> 5 !== 4)
108
+ if (bytes[0] !== PACKET_START)
100
109
  return { status: "garbage" };
101
- /* Число объектов: indefinite (0x9F, до BREAK) или definite - прямо в байте либо в следующих 1/2 байтах */
102
110
  let offset = 1;
103
- let count = null;
104
- const info = first & 0x1f;
105
- if (info < 24)
106
- count = info;
107
- else if (info === 24 || info === 25) {
108
- const size = info === 24 ? 1 : 2;
109
- if (bytes.length < 1 + size)
110
- return { status: "incomplete" };
111
- count = size === 1 ? bytes[1] : (bytes[1] << 8) | bytes[2];
112
- offset += size;
113
- }
114
- else if (info !== 31)
115
- return { status: "garbage" };
116
111
  const objects = [];
117
112
  try {
118
- for (let index = 0; count === null || index < count; index++) {
113
+ for (;;) {
119
114
  if (offset >= bytes.length)
120
115
  return { status: "incomplete" };
121
- if (count === null && bytes[offset] === 0xff)
116
+ if (bytes[offset] === 0xff)
122
117
  return { status: "complete", length: offset + 1, objects };
123
118
  const value = readValue(bytes, offset, maxItemBytes);
124
119
  if (!value)
@@ -132,19 +127,23 @@ export const decodePacket = (bytes, maxItemBytes = Infinity) => {
132
127
  catch {
133
128
  return { status: "garbage" };
134
129
  }
135
- return { status: "complete", length: offset, objects };
136
130
  };
137
- /* Потоковый разбор пакетов из сырого потока (RS485): пауза дольше gapMs обрывает недособранный пакет, мусор сдвигается по байту */
131
+ /* Потоковый разбор пакетов из сырого потока (RS485): пакет ищется по метке 0x9F 0x85, байты до неё - мусор; пакет без записей - тоже мусор (сдвиг на байт); пауза дольше gapMs обрывает недособранный пакет */
138
132
  export const createPacketStreamParser = (options = {}) => {
139
133
  const framer = createFramer(options);
140
134
  return {
141
135
  push(chunk, now = Date.now()) {
142
136
  const packets = [];
143
137
  framer.push(chunk, now, (bytes) => {
138
+ const start = packetStart(bytes);
139
+ if (start < 0)
140
+ return bytes.length;
141
+ if (start > 0)
142
+ return start;
144
143
  const parsed = decodePacket(bytes, framer.maxBytes);
145
144
  if (parsed.status === "incomplete")
146
145
  return 0;
147
- if (parsed.status === "garbage")
146
+ if (parsed.status === "garbage" || !parsed.objects.length)
148
147
  return 1;
149
148
  packets.push({ bytes: bytes.slice(0, parsed.length), objects: parsed.objects });
150
149
  return parsed.length;
@@ -0,0 +1,16 @@
1
+ import { type Dictionary } from "./dictionary.js";
2
+ export type WsArgument = string | number;
3
+ export interface WsEnvelope<V = Record<string, unknown>> {
4
+ HDR: string;
5
+ ARG: WsArgument;
6
+ VAL: V;
7
+ }
8
+ export declare const isModuleTarget: (val: unknown) => boolean;
9
+ export declare const wsArgumentCode: (argument: WsArgument, dictionary?: Dictionary) => WsArgument;
10
+ export declare const wsArgumentName: (argument: WsArgument, dictionary?: Dictionary) => string;
11
+ export declare const wsEnvelope: <V extends object>(header: string, argument: string, val: V, dictionary?: Dictionary) => WsEnvelope<V>;
12
+ export declare const readWsEnvelope: <P extends {
13
+ ARG: WsArgument;
14
+ }>(packet: P, dictionary?: Dictionary) => P & {
15
+ ARG: string;
16
+ };
@@ -0,0 +1,24 @@
1
+ /* Конверт WebSocket {HDR, ARG, VAL}: HDR - имя заголовка, ARG - имя аргумента или его код из словаря (число 0..8191, те же биты 13-1 HAR без заголовка и флага ответа). Команда модулю за хабом (ModSN не равен DevSN) уходит с кодом - хаб пересылает его модулю без перевода; входящий числовой ARG переводится в имя до разбора */
2
+ import { DEFAULT_DICTIONARY } from "./dictionary.js";
3
+ /* Адресат - модуль за хабом: ModSN задан и не равен DevSN */
4
+ export const isModuleTarget = (val) => {
5
+ if (!val || typeof val !== "object")
6
+ return false;
7
+ const { DevSN, ModSN } = val;
8
+ return typeof ModSN === "string" && ModSN !== "" && ModSN !== DevSN;
9
+ };
10
+ /* Имя → код по словарю; неизвестное имя остаётся строкой */
11
+ export const wsArgumentCode = (argument, dictionary = DEFAULT_DICTIONARY) => typeof argument === "number" ? argument : (dictionary.code(argument) ?? argument);
12
+ /* Код → имя по словарю; неизвестный код - строкой из числа ("4097"), имя - как есть */
13
+ export const wsArgumentName = (argument, dictionary = DEFAULT_DICTIONARY) => typeof argument === "number" ? dictionary.name(argument) : argument;
14
+ /* Исходящий конверт: модулю за хабом ARG - код из словаря, хабу и облаку - имя */
15
+ export const wsEnvelope = (header, argument, val, dictionary = DEFAULT_DICTIONARY) => ({
16
+ HDR: header,
17
+ ARG: isModuleTarget(val) ? wsArgumentCode(argument, dictionary) : argument,
18
+ VAL: val,
19
+ });
20
+ /* Входящий конверт с ARG-именем: числовой ARG переводится по словарю, остальное как есть */
21
+ export const readWsEnvelope = (packet, dictionary = DEFAULT_DICTIONARY) => ({
22
+ ...packet,
23
+ ARG: wsArgumentName(packet.ARG, dictionary),
24
+ });
@@ -5,11 +5,9 @@ import { DEFAULT_DICTIONARY } from "./dictionary.js";
5
5
  import { createFramer } from "./framer.js";
6
6
  import { hexToBytes } from "./hex.js";
7
7
  import { formatXPoeDebugValue } from "./xPoeDebugView.js";
8
- import { decodePacket, encodePacket, formatBusId } from "./packet.js";
8
+ import { decodePacket, encodePacket, formatBusId, packetStart } from "./packet.js";
9
9
  export const DEBUG_LOG_ARGUMENT = "DebugLog";
10
10
  const MAX_TEXT_TAIL = 4096;
11
- const PACKET_START = 0x9f;
12
- const RECORD = 0x85;
13
11
  const decoder = new TextDecoder();
14
12
  /* HAR по строкам словаря (по умолчанию встроенного); неизвестные заголовок или аргумент - ошибка */
15
13
  export const xPoeDebugHar = (header, argument, reply = true, dictionary = DEFAULT_DICTIONARY) => dictionary.har(header, argument, reply);
@@ -64,13 +62,6 @@ export const xPoeDebugRow = (item) => item.type === "raw"
64
62
  crc: item.crc,
65
63
  freeHeap: item.freeHeap,
66
64
  };
67
- /* Начало пакета - 0x9F 0x85, 0x9F последним байтом - возможное начало */
68
- const packetStart = (bytes) => {
69
- for (let i = bytes.indexOf(PACKET_START); i >= 0; i = bytes.indexOf(PACKET_START, i + 1))
70
- if (i + 1 >= bytes.length || bytes[i + 1] === RECORD)
71
- return i;
72
- return -1;
73
- };
74
65
  /* Потоковый разбор: пакеты в любом месте разреза, текст - построчно, мусор сдвигается по байту; пауза дольше gapMs обрывает недособранный пакет, а недописанную строку текста выдаёт как есть. Имена аргументов - из dictionary (по умолчанию встроенного) */
75
66
  export const createXPoeDebugParser = ({ dictionary = DEFAULT_DICTIONARY, ...options } = {}) => {
76
67
  const framer = createFramer(options);
@@ -103,19 +94,26 @@ export const createXPoeDebugParser = ({ dictionary = DEFAULT_DICTIONARY, ...opti
103
94
  reset: framer.reset,
104
95
  };
105
96
  };
106
- /* Поле Value: готовый HEX CBOR проходит как есть, JSON кодируется в CBOR, пусто - пустой Payload */
97
+ /* Готовые байты Payload только явным синтаксисом: h'0A 1B' (как показывает formatXPoeDebugValue) или 0x0A1B */
98
+ const HEX_VALUE = /^(?:h'([0-9A-Fa-f\s]*)'|0[xX]([0-9A-Fa-f]+))$/;
99
+ /* Поле Value: h'..' или 0x.. - готовые байты Payload (CBOR) как есть, всё остальное - JSON в CBOR («12» - число 12), пусто - пустой Payload */
107
100
  export const xPoeDebugValueFromText = (text) => {
108
101
  const trimmed = (text ?? "").trim();
109
102
  if (!trimmed)
110
103
  return new Uint8Array();
111
- if (/^([0-9A-Fa-f]{2}\s?)+$/.test(trimmed))
112
- return hexToBytes(trimmed);
104
+ const hex = HEX_VALUE.exec(trimmed);
105
+ if (hex) {
106
+ const bytes = hexToBytes(hex[1] ?? hex[2]);
107
+ if (!bytes)
108
+ throw new Error(`Value: нечётное число HEX-цифр: ${trimmed}`);
109
+ return bytes;
110
+ }
113
111
  let parsed;
114
112
  try {
115
113
  parsed = JSON.parse(trimmed);
116
114
  }
117
115
  catch {
118
- throw new Error(`Value не является ни hex, ни JSON: ${trimmed}`);
116
+ throw new Error(`Value не является ни HEX (h'..' или 0x..), ни JSON: ${trimmed}`);
119
117
  }
120
118
  return jsonToCbor(parsed);
121
119
  };
package/dist/types.d.ts CHANGED
@@ -170,6 +170,9 @@ export interface IGraphProps {
170
170
  name?: string;
171
171
  class?: string;
172
172
  };
173
+ help?: {
174
+ info?: string;
175
+ };
173
176
  streamingData?: {
174
177
  data: IGraphDataObject[] | null;
175
178
  };
@@ -191,6 +194,9 @@ export interface IPeriodChartProps {
191
194
  name?: string;
192
195
  class?: string;
193
196
  };
197
+ help?: {
198
+ info?: string;
199
+ };
194
200
  levels?: IPeriodChartLevel[];
195
201
  unit?: string;
196
202
  onLevelChange?: (index: number, level: IPeriodChartLevel) => void;
@@ -237,6 +243,9 @@ export interface IJoystickProps {
237
243
  name?: string;
238
244
  class?: string;
239
245
  };
246
+ help?: {
247
+ info?: string;
248
+ };
240
249
  value?: number[];
241
250
  readonly?: boolean;
242
251
  axes?: {
@@ -250,6 +259,13 @@ export interface IJoystickProps {
250
259
  export interface IProgressBarProps {
251
260
  id?: string;
252
261
  accent?: AccentColor;
262
+ label?: {
263
+ name?: string;
264
+ class?: string;
265
+ };
266
+ help?: {
267
+ info?: string;
268
+ };
253
269
  items?: {
254
270
  name?: string;
255
271
  accent?: AccentColor;
@@ -306,6 +322,9 @@ export interface ISliderProps {
306
322
  name?: string;
307
323
  class?: string;
308
324
  };
325
+ help?: {
326
+ info?: string;
327
+ };
309
328
  value?: number | [number, number];
310
329
  type?: "single" | "range";
311
330
  number?: {
@@ -415,6 +434,9 @@ export interface ITableProps<T extends object> {
415
434
  name?: string;
416
435
  class?: string;
417
436
  };
437
+ help?: {
438
+ info?: string;
439
+ };
418
440
  header?: ITableHeader<T>[];
419
441
  body?: T[];
420
442
  footer?: string;
@@ -454,6 +476,7 @@ export interface ITabsProps {
454
476
  children?: Snippet<[any]>;
455
477
  apiArray?: UIComponent[];
456
478
  Components?: Snippet<[component: UIComponent, fixedHeight: boolean]>;
479
+ Content?: Snippet<[components: UIComponent[]]>;
457
480
  }
458
481
  export interface ITextFieldProps {
459
482
  id?: string;
@@ -474,6 +497,9 @@ export interface IVideoViewerProps {
474
497
  name?: string;
475
498
  class?: string;
476
499
  };
500
+ help?: {
501
+ info?: string;
502
+ };
477
503
  showSelect?: boolean;
478
504
  source?: "camera" | "remote";
479
505
  streamKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "2.3.8",
3
+ "version": "2.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Oleg-Perevyshin/ElementsUI.git"
@@ -18,7 +18,7 @@
18
18
  "prepack": "node scripts/GenerateDictionary.mjs && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && svelte-package && tsc -p tests/dist-types.tsconfig.json && node --test tests/*.test.mjs && publint",
19
19
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
20
20
  "CheckUpdate": "npx npm-check-updates -u && npm install",
21
- "UpdateIconsLib": "tsx src/lib/IconsCatalog/iconsLib.ts",
21
+ "UpdateIconsLib": "tsx scripts/UpdateIconsLib.ts",
22
22
  "Formatting": "prettier --write .",
23
23
  "Dictionary": "node scripts/GenerateDictionary.mjs",
24
24
  "TestProtocols": "node scripts/GenerateDictionary.mjs && svelte-package && node --test tests/*.test.mjs",
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM3 16V8z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM5 15q-.425 0-.712-.288T4 14v-4q0-.425.288-.712T5 9t.713.288T6 10v4q0 .425-.288.713T5 15"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM4 14v-4q0-.425.288-.712T5 9h4q.425 0 .713.288T10 10v4q0 .425-.288.713T9 15H5q-.425 0-.712-.288T4 14"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM4 14v-4q0-.425.288-.712T5 9h8q.425 0 .713.288T14 10v4q0 .425-.288.713T13 15H5q-.425 0-.712-.288T4 14"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM4 14v-4q0-.425.288-.712T5 9h11.5q.425 0 .713.288T17.5 10v4q0 .425-.288.713T16.5 15H5q-.425 0-.712-.288T4 14"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M20 11h3v2h-3zM1 11h3v2H1zM13 1v3h-2V1zM4.92 3.5l2.13 2.14l-1.42 1.41L3.5 4.93zm12.03 2.13l2.12-2.13l1.43 1.43l-2.13 2.12zM12 6a6 6 0 0 1 6 6c0 2.22-1.21 4.16-3 5.2V19a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-1.8c-1.79-1.04-3-2.98-3-5.2a6 6 0 0 1 6-6m2 15v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1zm-3-3h2v-2.13c1.73-.44 3-2.01 3-3.87a4 4 0 0 0-4-4a4 4 0 0 0-4 4c0 1.86 1.27 3.43 3 3.87z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M7 5.6L5.6 7L3.5 4.9l1.4-1.4zM1 13h3v-2H1zM13 1h-2v3h2zm5 11c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6m-2 0c0-2.21-1.79-4-4-4s-4 1.79-4 4c0 1.2.54 2.27 1.38 3h5.24c.84-.73 1.38-1.8 1.38-3m-6 10c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-1h-4zm10-11v2h3v-2zm-.9-7.5L17 5.6L18.4 7l2.1-2.1z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M10 21h4v1c0 .6-.4 1-1 1h-2c-.6 0-1-.4-1-1zm-9-8h3v-2H1zm3.9-9.5L3.5 4.9L5.6 7L7 5.6zM13 1h-2v3h2zm7 10v2h3v-2zm-2 1c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6M8 12h8c0-2.21-1.79-4-4-4s-4 1.79-4 4m11.1-8.5L17 5.6L18.4 7l2.1-2.1z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M7 5.6L5.6 7L3.5 4.9l1.4-1.4zM1 13h3v-2H1zM13 1h-2v3h2zm-3 21c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-1h-4zm10-11v2h3v-2zm-.9-7.5L17 5.6L18.4 7l2.1-2.1zM18 12c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6m-9.44-2h6.88C14.75 8.81 13.5 8 12 8s-2.75.81-3.44 2"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6a6 6 0 0 1 6 6c0 2.22-1.21 4.16-3 5.2V19a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-1.8c-1.79-1.04-3-2.98-3-5.2a6 6 0 0 1 6-6m2 15v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1zm6-10h3v2h-3zM1 11h3v2H1zM13 1v3h-2V1zM4.92 3.5l2.13 2.14l-1.42 1.41L3.5 4.93zm12.03 2.13l2.12-2.13l1.43 1.43l-2.13 2.12z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 16a3 3 0 0 1 -3 3"/><path d="M16 16a3 3 0 0 0 3 3"/><path d="M12 16v4"/><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -4"/><path d="M7 13v-3a1 1 0 0 1 1 -1h8a1 1 0 0 1 1 1v3"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 12v-9l4.912 1.914a1.7 1.7 0 0 1 .428 2.925l-5.34 4.161"/><path d="M12 12h9l-1.914 4.912a1.7 1.7 0 0 1 -2.925 .428l-4.161 -5.34"/><path d="M12 12h-9l1.914 -4.912a1.7 1.7 0 0 1 2.925 -.428l4.161 5.34"/><path d="M12 12v9l-4.912 -1.914a1.7 1.7 0 0 1 -.428 -2.925l5.34 -4.161"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7"/><path d="M11 13v2m0 3v2m4 -5v2m0 3v2"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7.502 19.423c2.602 2.105 6.395 2.105 8.996 0c2.602 -2.105 3.262 -5.708 1.566 -8.546l-4.89 -7.26c-.42 -.625 -1.287 -.803 -1.936 -.397a1.376 1.376 0 0 0 -.41 .397l-4.893 7.26c-1.695 2.838 -1.035 6.441 1.567 8.546"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4.072 20.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798"/><path d="M16.072 20.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798"/><path d="M10.072 10.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798l.001 0"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 10.941c2.333 -3.308 .167 -7.823 -1 -8.941c0 3.395 -2.235 5.299 -3.667 6.706c-1.43 1.408 -2.333 3.294 -2.333 5.588c0 3.704 3.134 6.706 7 6.706c3.866 0 7 -3.002 7 -6.706c0 -1.712 -1.232 -4.403 -2.333 -5.588c-2.084 3.353 -3.257 3.353 -4.667 2.235"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 21c.5 -4.5 2.5 -8 7 -10"/><path d="M9 18c6.218 0 10.5 -3.288 11 -12v-2h-4.014c-9 0 -11.986 4 -12 9c0 1 0 3 2 5h3l.014 0"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5h3m4 0h9"/><path d="M3 10h11m4 0h1"/><path d="M5 15h5m4 0h7"/><path d="M3 20h9m4 0h3"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 15h10v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-4"/><path d="M12 9a6 6 0 0 0 -6 -6h-3v2a6 6 0 0 0 6 6h3"/><path d="M12 11a6 6 0 0 1 6 -6h3v1a6 6 0 0 1 -6 6h-3"/><path d="M12 15l0 -6"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 10a6 6 0 0 0 -6 -6h-3v2a6 6 0 0 0 6 6h3"/><path d="M12 14a6 6 0 0 1 6 -6h3v1a6 6 0 0 1 -6 6h-3"/><path d="M12 20l0 -10"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4l2 1l2 -1"/><path d="M12 2v6.5l3 1.72"/><path d="M17.928 6.268l.134 2.232l1.866 1.232"/><path d="M20.66 7l-5.629 3.25l.01 3.458"/><path d="M19.928 14.268l-1.866 1.232l-.134 2.232"/><path d="M20.66 17l-5.629 -3.25l-2.99 1.738"/><path d="M14 20l-2 -1l-2 1"/><path d="M12 22v-6.5l-3 -1.72"/><path d="M6.072 17.732l-.134 -2.232l-1.866 -1.232"/><path d="M3.34 17l5.629 -3.25l-.01 -3.458"/><path d="M4.072 9.732l1.866 -1.232l.134 -2.232"/><path d="M3.34 7l5.629 3.25l2.99 -1.738"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 13.5a4 4 0 1 0 4 0v-8.5a2 2 0 1 0 -4 0v8.5"/><path d="M4 9h4"/><path d="M13 16a4 4 0 1 0 0 -8a4.07 4.07 0 0 0 -1 .124"/><path d="M13 3v1"/><path d="M21 12h1"/><path d="M13 20v1"/><path d="M19.4 5.6l-.7 .7"/><path d="M18.7 17.7l.7 .7"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M16 5l3 3l-2 1l4 4l-3 1l4 4h-9"/><path d="M15 21l0 -3"/><path d="M8 13l-2 -2"/><path d="M8 12l2 -2"/><path d="M8 21v-13"/><path d="M5.824 16a3 3 0 0 1 -2.743 -3.69a3 3 0 0 1 .304 -4.833a3 3 0 0 1 4.615 -3.707a3 3 0 0 1 4.614 3.707a3 3 0 0 1 .305 4.833a3 3 0 0 1 -2.919 3.695h-4l-.176 -.005"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 8h8.5a2.5 2.5 0 1 0 -2.34 -3.24"/><path d="M3 12h15.5a2.5 2.5 0 1 1 -2.34 3.24"/><path d="M4 16h5.5a2.5 2.5 0 1 1 -2.34 3.24"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12"/><path d="M8 10v-2h2m6 6v2h-2m-4 0h-2v-2m8 -4v-2h-2"/><path d="M3 10h2"/><path d="M3 14h2"/><path d="M10 3v2"/><path d="M14 3v2"/><path d="M21 10h-2"/><path d="M21 14h-2"/><path d="M14 21v-2"/><path d="M10 21v-2"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12"/><path d="M9 9h6v6h-6l0 -6"/><path d="M3 10h2"/><path d="M3 14h2"/><path d="M10 3v2"/><path d="M14 3v2"/><path d="M21 10h-2"/><path d="M21 14h-2"/><path d="M14 21v-2"/><path d="M10 21v-2"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0"/><path d="M4 6v6a8 3 0 0 0 16 0v-6"/><path d="M4 12v6a8 3 0 0 0 16 0v-6"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10"/><path d="M7 20h10"/><path d="M9 16v4"/><path d="M15 16v4"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8"/><path d="M6 12h4m-2 -2v4"/><path d="M15 11l0 .01"/><path d="M18 13l0 .01"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 19l18 0"/><path d="M5 7a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -8"/></svg>