briyah 1.5.0 → 2.0.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 (226) hide show
  1. package/README.md +1092 -994
  2. package/data/common/config/markup +1 -1
  3. package/data/common/prompts/character/progress_character.json +5 -5
  4. package/data/common/prompts/illustrator/describe_scene.json +11 -3
  5. package/data/common/prompts/perceive.json +2 -2
  6. package/data/common/prompts/room_moderator/moderate.json +34 -34
  7. package/data/common/prompts/story_moderator/moderate.json +62 -62
  8. package/data/packs/dnd5e/agents/battle-master.json +6 -0
  9. package/data/packs/dnd5e/agents/campaign-designer.json +6 -0
  10. package/data/packs/dnd5e/agents/character-creator.json +6 -0
  11. package/data/packs/dnd5e/agents/dungeon-master.json +6 -0
  12. package/data/packs/dnd5e/agents/player.json +13 -0
  13. package/data/packs/dnd5e/agents/table-moderator.json +6 -0
  14. package/data/{common/artifacts/dnd5e/dungeon_master-procedure.md → packs/dnd5e/artifacts/battle_master-combat.md} +31 -131
  15. package/data/packs/dnd5e/artifacts/dungeon_master-procedure.md +192 -0
  16. package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/manifest.json +8 -2
  17. package/data/packs/dnd5e/pack.json +6 -0
  18. package/data/packs/dnd5e/prompts/battle_master/defaults_config.json +23 -0
  19. package/data/packs/dnd5e/prompts/battle_master/perceive.json +33 -0
  20. package/data/packs/dnd5e/prompts/battle_master/perceive.prompt +378 -0
  21. package/data/{common → packs/dnd5e}/prompts/character_creator/defaults_config.json +1 -1
  22. package/data/{common → packs/dnd5e}/prompts/character_creator/perceive.prompt +29 -0
  23. package/data/{common → packs/dnd5e}/prompts/dnd_player/perceive.prompt +40 -22
  24. package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/moderate.json +34 -34
  25. package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/moderate.prompt +14 -3
  26. package/data/{common → packs/dnd5e}/prompts/dungeon_master/defaults_config.json +1 -0
  27. package/data/{common → packs/dnd5e}/prompts/dungeon_master/perceive.prompt +122 -115
  28. package/data/packs/dnd5e/prompts/dungeon_master/system_instruction.prompt +0 -0
  29. package/data/packs/dnd5e/rooms/table.json +16 -0
  30. package/dist-sdk/server/src/ai/LLM/base-ai.service.js +4 -13
  31. package/dist-sdk/server/src/ai/LLM/deepseek.service.d.ts +2 -1
  32. package/dist-sdk/server/src/ai/LLM/deepseek.service.js +65 -77
  33. package/dist-sdk/server/src/ai/agent-config.d.ts +2 -0
  34. package/dist-sdk/server/src/ai/agent-store.service.js +8 -0
  35. package/dist-sdk/server/src/ai/agent.d.ts +6 -0
  36. package/dist-sdk/server/src/ai/agent.js +25 -2
  37. package/dist-sdk/server/src/ai/artifact.service.d.ts +3 -1
  38. package/dist-sdk/server/src/ai/artifact.service.js +12 -5
  39. package/dist-sdk/server/src/ai/pack-artifacts.d.ts +3 -3
  40. package/dist-sdk/server/src/ai/pack-artifacts.js +21 -15
  41. package/dist-sdk/server/src/app/user-service-factory.js +9 -1
  42. package/dist-sdk/server/src/app.controller.d.ts +11 -11
  43. package/dist-sdk/server/src/app.controller.js +178 -88
  44. package/dist-sdk/server/src/app.service.d.ts +28 -7
  45. package/dist-sdk/server/src/app.service.js +121 -91
  46. package/dist-sdk/server/src/common/errors.d.ts +0 -3
  47. package/dist-sdk/server/src/common/errors.js +1 -11
  48. package/dist-sdk/server/src/config/prompt-resolver.d.ts +39 -0
  49. package/dist-sdk/server/src/config/prompt-resolver.js +189 -0
  50. package/dist-sdk/server/src/config/user-config.service.d.ts +17 -0
  51. package/dist-sdk/server/src/config/user-config.service.js +103 -0
  52. package/dist-sdk/server/src/config/user-paths.service.d.ts +4 -4
  53. package/dist-sdk/server/src/config/user-paths.service.js +12 -16
  54. package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +35 -0
  55. package/dist-sdk/server/src/packs/pack-instantiation.service.js +154 -0
  56. package/dist-sdk/server/src/packs/pack-manifest.d.ts +52 -0
  57. package/dist-sdk/server/src/packs/pack-manifest.js +256 -0
  58. package/dist-sdk/server/src/packs/pack.service.d.ts +24 -0
  59. package/dist-sdk/server/src/packs/pack.service.js +151 -0
  60. package/dist-sdk/server/src/room/room-config.d.ts +5 -0
  61. package/dist-sdk/server/src/room/room-store.service.d.ts +3 -0
  62. package/dist-sdk/server/src/room/room-store.service.js +41 -5
  63. package/dist-sdk/server/src/room/room.d.ts +7 -0
  64. package/dist-sdk/server/src/room/room.js +29 -1
  65. package/dist-sdk/server/src/sdk/briyah.d.ts +2 -0
  66. package/dist-sdk/server/src/sdk/briyah.js +45 -8
  67. package/dist-sdk/server/src/sdk/index.d.ts +6 -1
  68. package/dist-sdk/server/src/sdk/index.js +6 -2
  69. package/dist-sdk/server/src/shared/shared.module.js +0 -3
  70. package/dist-sdk/server/src/story/story.service.d.ts +2 -2
  71. package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.d.ts +17 -0
  72. package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.js +54 -0
  73. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.d.ts +3 -0
  74. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.js +6 -0
  75. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.d.ts +2 -0
  76. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.js +4 -0
  77. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +1 -1
  78. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +6 -3
  79. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +3 -0
  80. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +45 -5
  81. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +27 -0
  82. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +103 -0
  83. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.d.ts +7 -0
  84. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +83 -0
  85. package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.d.ts +19 -0
  86. package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.js +130 -0
  87. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.d.ts +2 -1
  88. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +13 -2
  89. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.d.ts +6 -0
  90. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.js +16 -0
  91. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +10 -0
  92. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +82 -1
  93. package/dist-sdk/server/src/tools/packs/dnd5e/index.js +2 -0
  94. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +51 -6
  95. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +19 -9
  96. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.d.ts +2 -0
  97. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +134 -0
  98. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +31 -13
  99. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +2 -0
  100. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +25 -8
  101. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +70 -4
  102. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +27 -0
  103. package/dist-sdk/server/src/tools/packs/index.d.ts +1 -2
  104. package/dist-sdk/server/src/tools/packs/index.js +5 -11
  105. package/dist-sdk/shared/types/app.types.d.ts +72 -13
  106. package/docs/assets/hierarchy.js +1 -1
  107. package/docs/assets/highlight.css +8 -1
  108. package/docs/assets/icons.js +1 -1
  109. package/docs/assets/icons.svg +1 -1
  110. package/docs/assets/main.js +4 -4
  111. package/docs/assets/navigation.js +1 -1
  112. package/docs/assets/search.js +1 -1
  113. package/docs/assets/style.css +18 -3
  114. package/docs/classes/Agent.html +702 -37
  115. package/docs/classes/Briyah.html +250 -33
  116. package/docs/classes/BriyahConfigService.html +117 -10
  117. package/docs/classes/NativeToolRegistry.html +156 -11
  118. package/docs/classes/PackInstantiationService.html +146 -0
  119. package/docs/classes/PackService.html +247 -0
  120. package/docs/classes/Room.html +1190 -77
  121. package/docs/classes/RoomMessage.html +260 -29
  122. package/docs/enums/MessageAction.html +123 -3
  123. package/docs/functions/availableToolPacks.html +41 -2
  124. package/docs/functions/dnd5eTools.html +42 -3
  125. package/docs/functions/installToolPacks.html +48 -0
  126. package/docs/functions/registerToolPacks.html +54 -6
  127. package/docs/hierarchy.html +42 -1
  128. package/docs/index.html +158 -25
  129. package/docs/interfaces/AgentCreationOptions.html +110 -11
  130. package/docs/interfaces/AgentInfo.html +188 -3
  131. package/docs/interfaces/AgentMessagesResponse.html +71 -2
  132. package/docs/interfaces/AppService.html +2775 -474
  133. package/docs/interfaces/Artifact.html +81 -4
  134. package/docs/interfaces/ArtifactMetadata.html +104 -3
  135. package/docs/interfaces/ArtifactWriteOptions.html +75 -6
  136. package/docs/interfaces/AttachDocumentResponse.html +61 -2
  137. package/docs/interfaces/BriyahConfigOptions.html +107 -10
  138. package/docs/interfaces/ChapterInfo.html +61 -2
  139. package/docs/interfaces/Character.html +81 -2
  140. package/docs/interfaces/CreateAgentResponse.html +56 -2
  141. package/docs/interfaces/CreateRoomResponse.html +61 -2
  142. package/docs/interfaces/CreateStoryResponse.html +56 -2
  143. package/docs/interfaces/FileList.html +56 -2
  144. package/docs/interfaces/FileMetadata.html +84 -3
  145. package/docs/interfaces/IConfigService.html +76 -3
  146. package/docs/interfaces/InstantiateModels.html +64 -0
  147. package/docs/interfaces/InstantiateRoomResult.html +70 -0
  148. package/docs/interfaces/LoadedPack.html +131 -0
  149. package/docs/interfaces/LoggingOptions.html +86 -7
  150. package/docs/interfaces/Message.html +80 -2
  151. package/docs/interfaces/ModelChoice.html +73 -0
  152. package/docs/interfaces/ModelInfo.html +71 -2
  153. package/docs/interfaces/NativeToolDefinition.html +96 -9
  154. package/docs/interfaces/PackAgentTemplate.html +101 -0
  155. package/docs/interfaces/PackRoomTemplate.html +108 -0
  156. package/docs/interfaces/PackView.html +172 -0
  157. package/docs/interfaces/PreparedPromptResponse.html +61 -2
  158. package/docs/interfaces/ProcessTextResponse.html +81 -2
  159. package/docs/interfaces/PromptFile.html +69 -2
  160. package/docs/interfaces/PromptFileContent.html +75 -2
  161. package/docs/interfaces/PromptFilesResponse.html +56 -2
  162. package/docs/interfaces/PromptFolder.html +79 -2
  163. package/docs/interfaces/PromptFolderDefaults.html +136 -5
  164. package/docs/interfaces/PromptFolderDefaultsResponse.html +65 -4
  165. package/docs/interfaces/PromptFoldersResponse.html +56 -2
  166. package/docs/interfaces/RoomDetails.html +133 -4
  167. package/docs/interfaces/RoomInfo.html +84 -2
  168. package/docs/interfaces/RoomMessageUpdate.html +91 -2
  169. package/docs/interfaces/RoomMessagesResponse.html +61 -2
  170. package/docs/interfaces/SendMessageResult.html +61 -2
  171. package/docs/interfaces/StoryErrorEvent.html +76 -4
  172. package/docs/interfaces/StoryIdea.html +71 -2
  173. package/docs/interfaces/StoryInfo.html +173 -3
  174. package/docs/interfaces/StoryIntroduceCharacterEvent.html +71 -4
  175. package/docs/interfaces/StoryProgressChapterEvent.html +64 -3
  176. package/docs/interfaces/StoryState.html +99 -6
  177. package/docs/interfaces/StoryStateEvent.html +69 -3
  178. package/docs/interfaces/ToolArtifact.html +81 -4
  179. package/docs/interfaces/ToolCaller.html +75 -6
  180. package/docs/interfaces/ToolDefinition.html +76 -2
  181. package/docs/interfaces/ToolHelpers.html +91 -6
  182. package/docs/interfaces/ToolParameter.html +71 -2
  183. package/docs/interfaces/ToolRoomAccess.html +200 -24
  184. package/docs/interfaces/ToolSummary.html +71 -2
  185. package/docs/interfaces/ToolsResponse.html +66 -2
  186. package/docs/interfaces/Transaction.html +96 -2
  187. package/docs/interfaces/TransactionHistoryResponse.html +61 -2
  188. package/docs/modules.html +53 -1
  189. package/docs/types/PackOrigin.html +34 -0
  190. package/docs/types/PromptScope.html +34 -1
  191. package/docs/types/RoomTurnMode.html +36 -2
  192. package/docs/types/ToolContext.html +36 -2
  193. package/docs/types/ToolRunResult.html +34 -1
  194. package/package.json +139 -139
  195. package/src/tools/packs/dnd5e/README.md +149 -26
  196. package/dist-sdk/server/src/library/library.service.d.ts +0 -14
  197. package/dist-sdk/server/src/library/library.service.js +0 -165
  198. package/docs/functions/enabledToolPacks.html +0 -2
  199. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/campaign_designer-setting.md +0 -0
  200. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/character_creator-basics.md +0 -0
  201. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-barbarian.md +0 -0
  202. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-bard.md +0 -0
  203. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-cleric.md +0 -0
  204. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-druid.md +0 -0
  205. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-fighter.md +0 -0
  206. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-monk.md +0 -0
  207. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-paladin.md +0 -0
  208. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-ranger.md +0 -0
  209. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-rogue.md +0 -0
  210. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-sorcerer.md +0 -0
  211. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-warlock.md +0 -0
  212. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-wizard.md +0 -0
  213. /package/data/{common/prompts/campaign_designer → packs/dnd5e/prompts/battle_master}/system_instruction.prompt +0 -0
  214. /package/data/{common → packs/dnd5e}/prompts/campaign_designer/defaults_config.json +0 -0
  215. /package/data/{common → packs/dnd5e}/prompts/campaign_designer/perceive.json +0 -0
  216. /package/data/{common → packs/dnd5e}/prompts/campaign_designer/perceive.prompt +0 -0
  217. /package/data/{common/prompts/character_creator → packs/dnd5e/prompts/campaign_designer}/system_instruction.prompt +0 -0
  218. /package/data/{common → packs/dnd5e}/prompts/character_creator/perceive.json +0 -0
  219. /package/data/{common/prompts/dnd_player → packs/dnd5e/prompts/character_creator}/system_instruction.prompt +0 -0
  220. /package/data/{common → packs/dnd5e}/prompts/dnd_player/defaults_config.json +0 -0
  221. /package/data/{common → packs/dnd5e}/prompts/dnd_player/perceive.json +0 -0
  222. /package/data/{common/prompts/dnd_room_moderator → packs/dnd5e/prompts/dnd_player}/system_instruction.prompt +0 -0
  223. /package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/defaults_config.json +0 -0
  224. /package/data/{common/prompts/dungeon_master → packs/dnd5e/prompts/dnd_room_moderator}/system_instruction.prompt +0 -0
  225. /package/data/{common → packs/dnd5e}/prompts/dungeon_master/compact_agent.prompt +0 -0
  226. /package/data/{common → packs/dnd5e}/prompts/dungeon_master/perceive.json +0 -0
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requireRoom = requireRoom;
4
4
  exports.listCharacterNames = listCharacterNames;
5
+ exports.listFoeNames = listFoeNames;
6
+ exports.clearFoes = clearFoes;
5
7
  exports.loadSheet = loadSheet;
6
8
  exports.mutateSheet = mutateSheet;
7
9
  exports.writeNewSheet = writeNewSheet;
@@ -27,16 +29,31 @@ function listCharacterNames(room) {
27
29
  .filter(sheet_1.isSheetArtifact)
28
30
  .map(sheet_1.characterNameFromArtifact);
29
31
  }
32
+ function listFoeNames(room) {
33
+ return room.list().filter(sheet_1.isFoeArtifact).map(sheet_1.foeNameFromArtifact);
34
+ }
35
+ function clearFoes(room, keep = []) {
36
+ const kept = new Set(keep.map((name) => (0, coerce_1.nameKey)(name)));
37
+ const removed = listFoeNames(room).filter((name) => !kept.has((0, coerce_1.nameKey)(name)));
38
+ for (const name of removed)
39
+ room.remove((0, sheet_1.foeArtifactName)(name));
40
+ return removed;
41
+ }
30
42
  function loadSheet(room, name) {
31
- const known = listCharacterNames(room);
32
- if (known.length === 0) {
43
+ const characters = listCharacterNames(room);
44
+ const foes = listFoeNames(room);
45
+ if (characters.length === 0 && foes.length === 0) {
33
46
  throw new Error('No character sheets exist in this room yet. Create one with create_sheet first.');
34
47
  }
35
- const matched = (0, coerce_1.matchName)(name, known);
36
- if (!matched) {
37
- throw new Error(`No sheet named "${name}". Known sheets: ${known.join(', ')}.`);
48
+ const matched = (0, coerce_1.matchName)(name, characters);
49
+ const matchedFoe = matched ? undefined : (0, coerce_1.matchName)(name, foes);
50
+ if (!matched && !matchedFoe) {
51
+ throw new Error(`No combatant named "${name}". Characters: ${characters.join(', ') || 'none'}.` +
52
+ ` Monsters in this fight: ${foes.join(', ') || 'none'}.`);
38
53
  }
39
- const artifactName = (0, sheet_1.sheetArtifactName)(matched);
54
+ const artifactName = matched
55
+ ? (0, sheet_1.sheetArtifactName)(matched)
56
+ : (0, sheet_1.foeArtifactName)(matchedFoe);
40
57
  const artifact = room.get(artifactName);
41
58
  if (!artifact) {
42
59
  throw new Error(`The sheet artifact "${artifactName}" disappeared while being read.`);
@@ -51,7 +68,7 @@ function loadSheet(room, name) {
51
68
  const state = (0, sheet_1.parseSheet)(artifact.body);
52
69
  return {
53
70
  artifactName,
54
- characterName: matched,
71
+ characterName: matched || matchedFoe,
55
72
  state,
56
73
  notes: (0, sheet_1.extractNotes)(artifact.body),
57
74
  warnings: (0, sheet_1.collectWarnings)(raw, state),
@@ -85,7 +102,7 @@ function mutateSheet(room, name, mutate) {
85
102
  return { result, sheet };
86
103
  }
87
104
  function writeNewSheet(room, state, notes, replace) {
88
- const artifactName = (0, sheet_1.sheetArtifactName)(state.name);
105
+ const artifactName = (0, sheet_1.combatantArtifactName)(state);
89
106
  const existing = room.get(artifactName);
90
107
  if (existing && !replace) {
91
108
  throw new Error(`A sheet for "${state.name}" already exists. Pass replace=true to overwrite it, or use patch_sheet to change specific fields.`);
@@ -49,7 +49,7 @@ const SPEC_EXAMPLE = '{"class":"Ranger","subclass":"Hunter","level":3,"race":"Wo
49
49
  const SET_EXAMPLE = '{"ac":18,"hp.max":32,"speed":25,"resist":["fire"],"uses.channel_divinity.cur":0}';
50
50
  exports.createSheetTool = {
51
51
  name: 'create_sheet',
52
- description: 'Create a character sheet. "character" is the character\'s name. "spec" is a JSON object describing them; only the class is genuinely required and everything else is derived or defaulted. Hit points, armour class, proficiency bonus, saving throws, skill modifiers, spell slots and hit dice are all computed from the 5e rules, so do not work them out yourself. Include a "backstory" string to seed the sheet\'s notes section, which later tool calls never overwrite. "owner" is the nickname of the agent who plays this character — set it, because the sheet is made readable to that agent alone, and because it is how the rest of the table is told who they are: the owning agent\'s public description becomes the character\'s name, race and class, replacing whatever placeholder they were created with. Set "replace" to true to overwrite an existing sheet. Example spec: ' +
52
+ description: 'Create a character sheet. "character" is the character\'s name. "spec" is a JSON object describing them; only the class is genuinely required and everything else is derived or defaulted. Hit points, armour class, proficiency bonus, saving throws, skill modifiers, spell slots and hit dice are all computed from the 5e rules, so do not work them out yourself. Put tool proficiencies the player *chose* in "tools", e.g. "tools":["Lute","Drum","Flute"] for a bard — the ones their class, race and background grant outright are added for you, and the result says which choices are still owed. Include a "backstory" string to seed the sheet\'s notes section, which later tool calls never overwrite. "owner" is the nickname of the agent who plays this character — set it, because the sheet is made readable to that agent alone, and because it is how the rest of the table is told who they are: the owning agent\'s public description becomes the character\'s name, race and class, replacing whatever placeholder they were created with. Set "replace" to true to overwrite an existing sheet. Example spec: ' +
53
53
  SPEC_EXAMPLE,
54
54
  parameters: [
55
55
  { name: 'character', type: 'string', description: "The character's name", required: true },
@@ -82,6 +82,7 @@ exports.createSheetTool = {
82
82
  const state = (0, character_1.buildCharacter)(name, spec, owner);
83
83
  const raceResult = (0, character_1.lastRaceResult)();
84
84
  const backgroundResult = (0, character_1.lastBackgroundResult)();
85
+ const classToolResult = (0, character_1.lastClassToolResult)();
85
86
  for (const item of state.inv) {
86
87
  if (isWorn(item.n))
87
88
  item.eq = true;
@@ -128,6 +129,15 @@ exports.createSheetTool = {
128
129
  }
129
130
  : undefined,
130
131
  raceProblems: raceResult.problems.length > 0 ? raceResult.problems : undefined,
132
+ tools: state.toolProf.length > 0 || classToolResult.outstanding.length > 0
133
+ ? {
134
+ proficient: state.toolProf.length > 0 ? state.toolProf : undefined,
135
+ fromClass: classToolResult.added.length > 0 ? classToolResult.added : undefined,
136
+ stillToChoose: classToolResult.outstanding.length > 0
137
+ ? classToolResult.outstanding
138
+ : undefined,
139
+ }
140
+ : undefined,
131
141
  derived: {
132
142
  hitPoints: `${state.hp.cur}/${state.hp.max}`,
133
143
  armorClass: `${state.ac} (${rules.computeArmorClass(state).explanation})`,
@@ -269,6 +279,8 @@ exports.readSheetTool = {
269
279
  .skillNames()
270
280
  .map((skill) => [(0, sheet_1.titleCase)(skill), (0, sheet_1.signed)(rules.skillModifier(state, skill))]));
271
281
  result.passivePerception = rules.passivePerception(state);
282
+ if (state.toolProf.length > 0)
283
+ result.toolProficiencies = state.toolProf;
272
284
  }
273
285
  if (wants('spells')) {
274
286
  result.spells = {
@@ -318,7 +330,7 @@ exports.patchSheetTool = {
318
330
  name: 'patch_sheet',
319
331
  description: 'Set fields on a character sheet directly, for anything the other tools do not cover. "set" is a JSON object of dotted paths to values applied to the sheet\'s underlying state, for example ' +
320
332
  SET_EXAMPLE +
321
- '. "append" adds entries to a list field, e.g. {"attacks":[{"n":"Dagger","atk":5,"dmg":"1d4+3","type":"piercing"}]}. "note" appends a line to the character\'s notes, which no other tool overwrites. Set "recompute" to true to recalculate hit points, armour class, initiative and spell slots after the change — do that after altering abilities, level, or equipment. A change that would leave the sheet inconsistent is refused with an explanation. Prefer a specific tool when one exists: this one does no rules reasoning for you.',
333
+ '. "append" adds entries to a list field, e.g. {"attacks":[{"n":"Dagger","atk":5,"dmg":"1d4+3","type":"piercing"}]}. "note" appends a line to the character\'s notes, which no other tool overwrites. Set "recompute" to true to recalculate hit points, armour class, initiative and spell slots after the change — do that after altering abilities, level, or equipment. **A sheet has a fixed set of fields and you cannot invent one** — a path whose first segment is not a real field is refused and the refusal lists them, so check the name rather than guessing (ability scores live under "abil", not "abilities"). Anything the sheet does not model — a racial trait from outside the SRD, a feature with no pool — goes in "note". A change that would leave the sheet inconsistent is refused with an explanation. Prefer a specific tool when one exists: this one does no rules reasoning for you.',
322
334
  parameters: [
323
335
  { name: 'character', type: 'string', description: 'Whose sheet to change', required: true },
324
336
  {
@@ -359,6 +371,23 @@ exports.patchSheetTool = {
359
371
  const sheet = (0, shared_1.loadSheet)(room, character);
360
372
  const candidate = (0, character_1.cloneState)(sheet.state);
361
373
  const applied = [];
374
+ const rejected = [...Object.keys(set), ...Object.keys(append)]
375
+ .map((path) => ({ path, problem: pathProblem(candidate, path) }))
376
+ .filter((entry) => entry.problem);
377
+ if (rejected.length > 0) {
378
+ return {
379
+ applied: false,
380
+ violation: 'unknown_field',
381
+ message: rejected.map((entry) => entry.problem).join(' '),
382
+ rule: 'A sheet has a fixed set of fields. Anything else belongs in the notes.',
383
+ options: [
384
+ `Fields on a sheet: ${(0, sheet_1.sheetFieldNames)().join(', ')}`,
385
+ 'For something the sheet does not model — a racial trait from outside the SRD, a class feature with no pool — use the "note" parameter instead, which appends to the character\'s notes and is never overwritten',
386
+ 'Read the sheet back with read_sheet if you are unsure what a field is called',
387
+ ],
388
+ state: (0, shared_1.liveState)(sheet.state),
389
+ };
390
+ }
362
391
  for (const [path, value] of Object.entries(set)) {
363
392
  setPath(candidate, path, value);
364
393
  applied.push(`${path} = ${JSON.stringify(value)}`);
@@ -366,7 +395,19 @@ exports.patchSheetTool = {
366
395
  for (const [path, value] of Object.entries(append)) {
367
396
  const target = getPath(candidate, path);
368
397
  if (!Array.isArray(target)) {
369
- throw new Error(`"${path}" is not a list on this sheet, so nothing can be appended to it.`);
398
+ return {
399
+ applied: false,
400
+ violation: 'not_a_list',
401
+ message: `"${path}" is not a list on this sheet, so nothing can be appended to it.`,
402
+ options: [
403
+ `Lists you can append to: ${(0, sheet_1.sheetFieldNames)()
404
+ .filter((field) => Array.isArray(candidate[field]))
405
+ .join(', ')}`,
406
+ 'Use "set" to replace the value outright',
407
+ 'Use the "note" parameter for prose the sheet does not model',
408
+ ],
409
+ state: (0, shared_1.liveState)(sheet.state),
410
+ };
370
411
  }
371
412
  const additions = Array.isArray(value) ? value : [value];
372
413
  target.push(...additions);
@@ -408,13 +449,38 @@ exports.patchSheetTool = {
408
449
  function getPath(state, path) {
409
450
  return path.split('.').reduce((node, key) => (node === undefined ? undefined : node[key]), state);
410
451
  }
452
+ function pathProblem(state, path) {
453
+ const keys = String(path).split('.');
454
+ const root = keys[0];
455
+ if (!root)
456
+ return `"${path}" is not a field name.`;
457
+ if (!(0, sheet_1.sheetFieldNames)().includes(root)) {
458
+ return `"${root}" is not a field on a character sheet, so "${path}" would have created a new one that nothing reads.`;
459
+ }
460
+ let node = state;
461
+ for (let i = 0; i < keys.length - 1; i++) {
462
+ const value = node[keys[i]];
463
+ if (value === undefined || value === null) {
464
+ return '';
465
+ }
466
+ if (typeof value !== 'object' || Array.isArray(value)) {
467
+ const shape = Array.isArray(value) ? 'a list' : `a ${typeof value}`;
468
+ return `"${keys.slice(0, i + 1).join('.')}" is ${shape}, not an object, so "${path}" cannot be written inside it.`;
469
+ }
470
+ node = value;
471
+ }
472
+ return '';
473
+ }
411
474
  function setPath(state, path, value) {
412
475
  const keys = path.split('.');
413
476
  let node = state;
414
477
  for (const key of keys.slice(0, -1)) {
415
- if (node[key] === undefined || node[key] === null || typeof node[key] !== 'object') {
478
+ if (node[key] === undefined || node[key] === null) {
416
479
  node[key] = {};
417
480
  }
481
+ else if (typeof node[key] !== 'object' || Array.isArray(node[key])) {
482
+ throw new Error(`"${key}" already holds ${Array.isArray(node[key]) ? 'a list' : `a ${typeof node[key]}`}, so "${path}" cannot be written inside it.`);
483
+ }
418
484
  node = node[key];
419
485
  }
420
486
  node[keys[keys.length - 1]] = value;
@@ -42,6 +42,8 @@ const items_1 = require("../engine/items");
42
42
  const races_1 = require("../engine/races");
43
43
  const feats_1 = require("../engine/feats");
44
44
  const backgrounds_1 = require("../engine/backgrounds");
45
+ const kits_1 = require("../engine/kits");
46
+ const kits_2 = require("../data/kits");
45
47
  const gear_1 = require("../data/gear");
46
48
  const backgrounds_2 = require("../data/backgrounds");
47
49
  const feats_2 = require("../data/feats");
@@ -487,6 +489,29 @@ exports.rulesLookupTool = {
487
489
  attribution: srd_1.SRD_ATTRIBUTION,
488
490
  };
489
491
  }
492
+ if (/^(tool|tools|tool proficienc|artisans? tools|gaming set|musical instrument)/.test(topic)) {
493
+ return {
494
+ topic,
495
+ kind: 'rule',
496
+ text: kits_2.TOOLS_RULE,
497
+ tools: Object.fromEntries(Object.keys(kits_2.TOOL_CATEGORY_LABEL).map((category) => [
498
+ category,
499
+ (0, kits_1.toolsInCategory)(category),
500
+ ])),
501
+ attribution: srd_1.SRD_ATTRIBUTION,
502
+ };
503
+ }
504
+ const tool = (0, kits_1.resolveTool)(topic);
505
+ if (tool.tool) {
506
+ return {
507
+ topic,
508
+ kind: 'tool',
509
+ text: `**${tool.tool.name}** — ${kits_2.TOOL_CATEGORY_LABEL[tool.tool.category]}. ` +
510
+ 'Proficiency adds your proficiency bonus to an ability check made with it; the DM chooses which ability the check uses.',
511
+ tool: tool.tool,
512
+ attribution: srd_1.SRD_ATTRIBUTION,
513
+ };
514
+ }
490
515
  if (topic === 'feat' || topic === 'feats') {
491
516
  return { topic, kind: 'rule', text: feats_2.FEATS_RULE, attribution: srd_1.SRD_ATTRIBUTION };
492
517
  }
@@ -539,8 +564,10 @@ exports.rulesLookupTool = {
539
564
  ...(0, races_1.raceNames)().map((name) => name.toLowerCase()),
540
565
  ...(0, feats_1.featNames)().map((name) => name.toLowerCase()),
541
566
  ...(0, backgrounds_1.backgroundNames)().map((name) => name.toLowerCase()),
567
+ ...(0, kits_1.toolNames)().map((name) => name.toLowerCase()),
542
568
  'feats',
543
569
  'backgrounds',
570
+ 'tools',
544
571
  'carrying capacity',
545
572
  'encumbrance',
546
573
  ].filter((known) => known.includes(topic.split(' ')[0]) || topic.includes(known.split(' ')[0]));
@@ -1,7 +1,6 @@
1
1
  import { NativeToolRegistry } from '../native-tool-registry.service';
2
2
  import { dnd5eTools } from './dnd5e';
3
+ export declare function installToolPacks(registry: NativeToolRegistry): string[];
3
4
  export declare function registerToolPacks(registry: NativeToolRegistry, packList: string | undefined): string[];
4
5
  export declare function availableToolPacks(): string[];
5
- export declare function enabledToolPacks(): string[];
6
- export declare function resetEnabledToolPacks(): void;
7
6
  export { dnd5eTools };
@@ -1,17 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dnd5eTools = void 0;
4
+ exports.installToolPacks = installToolPacks;
4
5
  exports.registerToolPacks = registerToolPacks;
5
6
  exports.availableToolPacks = availableToolPacks;
6
- exports.enabledToolPacks = enabledToolPacks;
7
- exports.resetEnabledToolPacks = resetEnabledToolPacks;
8
7
  const dnd5e_1 = require("./dnd5e");
9
8
  Object.defineProperty(exports, "dnd5eTools", { enumerable: true, get: function () { return dnd5e_1.dnd5eTools; } });
10
9
  const logger_1 = require("../../common/logger");
11
10
  const PACKS = {
12
11
  dnd5e: dnd5e_1.dnd5eTools,
13
12
  };
14
- const enabled = new Set();
13
+ function installToolPacks(registry) {
14
+ return registerToolPacks(registry, Object.keys(PACKS).join(','));
15
+ }
15
16
  function registerToolPacks(registry, packList) {
16
17
  const names = (packList || '')
17
18
  .split(',')
@@ -23,12 +24,11 @@ function registerToolPacks(registry, packList) {
23
24
  for (const name of names) {
24
25
  const pack = PACKS[name];
25
26
  if (!pack) {
26
- logger_1.logger.warn(`Unknown tool pack "${name}" in BRIYAH_TOOL_PACKS; available packs: ${Object.keys(PACKS).join(', ')}`);
27
+ logger_1.logger.warn(`Unknown tool pack "${name}"; available packs: ${Object.keys(PACKS).join(', ')}`);
27
28
  continue;
28
29
  }
29
30
  const tools = pack().map((tool) => ({ ...tool, group: name }));
30
31
  registry.registerTools(tools);
31
- enabled.add(name);
32
32
  registered.push(...tools.map((tool) => tool.name));
33
33
  logger_1.logger.log(`Registered tool pack "${name}" with ${tools.length} tools`);
34
34
  }
@@ -37,9 +37,3 @@ function registerToolPacks(registry, packList) {
37
37
  function availableToolPacks() {
38
38
  return Object.keys(PACKS);
39
39
  }
40
- function enabledToolPacks() {
41
- return [...enabled];
42
- }
43
- function resetEnabledToolPacks() {
44
- enabled.clear();
45
- }
@@ -24,6 +24,7 @@ export interface AgentInfo {
24
24
  smallModelName?: string;
25
25
  ownerRoomId?: string;
26
26
  attachedArtifactIds?: string[];
27
+ pack?: string;
27
28
  }
28
29
  export interface CreateAgentResponse {
29
30
  agentId: string;
@@ -63,6 +64,7 @@ export interface UpdateAgentRequest {
63
64
  promptCacheTTL?: number;
64
65
  maxHistoryMessages?: number;
65
66
  smallModelName?: string;
67
+ pack?: string;
66
68
  }
67
69
  export interface ToolParameter {
68
70
  name: string;
@@ -103,6 +105,7 @@ export interface RoomInfo {
103
105
  name: string;
104
106
  goal: string;
105
107
  agentCount: number;
108
+ pack?: string;
106
109
  totalCost?: number;
107
110
  }
108
111
  export type RoomTurnMode = 'broadcast' | 'directed';
@@ -113,6 +116,7 @@ export interface RoomDetails {
113
116
  baseRoomDir?: string;
114
117
  agentIds: string[];
115
118
  agents?: AgentInfo[];
119
+ pack?: string;
116
120
  roomLeader?: string;
117
121
  turnMode?: RoomTurnMode;
118
122
  moderator?: string;
@@ -217,6 +221,8 @@ export type PromptScope = 'common' | 'user';
217
221
  export interface PromptFolder {
218
222
  name: string;
219
223
  scope: PromptScope;
224
+ pack?: string;
225
+ folder?: string;
220
226
  }
221
227
  export interface PromptFoldersResponse {
222
228
  folders: PromptFolder[];
@@ -224,6 +230,7 @@ export interface PromptFoldersResponse {
224
230
  export interface PromptFile {
225
231
  name: string;
226
232
  scope: PromptScope;
233
+ pack?: string;
227
234
  }
228
235
  export interface PromptFilesResponse {
229
236
  files: PromptFile[];
@@ -231,9 +238,12 @@ export interface PromptFilesResponse {
231
238
  export interface FileList {
232
239
  files: string[];
233
240
  }
241
+ export type PromptTier = 'common' | 'user' | 'pack' | 'pack-overlay';
234
242
  export interface PromptFileContent {
235
243
  content: string;
236
244
  scope?: PromptScope;
245
+ pack?: string;
246
+ tier?: PromptTier;
237
247
  }
238
248
  export interface PromptFolderDefaults {
239
249
  agentName?: string;
@@ -242,6 +252,7 @@ export interface PromptFolderDefaults {
242
252
  toolNames?: string[];
243
253
  documentIds?: string[];
244
254
  reasoningEffort?: 'low' | 'medium' | 'high' | null;
255
+ maxOutputTokens?: number;
245
256
  beginInstruction?: string;
246
257
  allowSearch?: boolean;
247
258
  controlledByHuman?: boolean;
@@ -267,27 +278,74 @@ export interface UpdatePromptFileRequest {
267
278
  content: string;
268
279
  fileType: 'prompt' | 'json';
269
280
  }
270
- export interface LibraryPrompt {
281
+ export type PackOrigin = 'host' | 'user';
282
+ export interface PackSummary {
283
+ pack: string;
284
+ title: string;
285
+ description?: string;
286
+ version?: string;
287
+ origin: PackOrigin;
288
+ enabled: boolean;
289
+ counts: {
290
+ prompts: number;
291
+ documents: number;
292
+ agents: number;
293
+ rooms: number;
294
+ };
295
+ missingTools: string[];
296
+ missingPacks: string[];
297
+ }
298
+ export interface PacksResponse {
299
+ packs: PackSummary[];
300
+ }
301
+ export interface PackAgentTemplateSummary {
302
+ key: string;
303
+ label: string;
304
+ promptFolder: string;
305
+ modelRole?: 'primary' | 'economy';
306
+ }
307
+ export interface PackRoomTemplateSummary {
308
+ key: string;
271
309
  name: string;
310
+ goal: string;
311
+ turnMode?: RoomTurnMode;
312
+ agentCount: number;
313
+ }
314
+ export interface PackDetails extends PackSummary {
315
+ promptFolders: string[];
316
+ agents: PackAgentTemplateSummary[];
317
+ rooms: PackRoomTemplateSummary[];
318
+ requiresTools: string[];
272
319
  }
273
- export interface LibraryPromptsResponse {
274
- prompts: LibraryPrompt[];
320
+ export interface SetPackEnabledRequest {
321
+ enabled: boolean;
275
322
  }
276
- export interface LibraryFile {
323
+ export interface CreatePackRequest {
277
324
  name: string;
325
+ title?: string;
326
+ }
327
+ export interface InstantiateModelsRequest {
328
+ aiServiceName: string;
329
+ aiModel: string;
330
+ smallModelName?: string;
331
+ economyServiceName?: string;
332
+ economyModel?: string;
278
333
  }
279
- export interface LibraryFilesResponse {
280
- files: LibraryFile[];
334
+ export interface InstantiatePackRoomRequest extends InstantiateModelsRequest {
335
+ name?: string;
281
336
  }
282
- export interface LibraryFileContent {
283
- content: string;
337
+ export interface InstantiatePackRoomResponse {
338
+ roomId: string;
339
+ agentIds: string[];
340
+ warnings: string[];
284
341
  }
285
- export interface LibraryDefaultUrlResponse {
286
- url: string;
342
+ export interface InstantiatePackAgentRequest extends InstantiateModelsRequest {
343
+ agentName?: string;
344
+ agentNickname?: string;
287
345
  }
288
- export interface CopyFromLibraryRequest {
289
- url: string;
290
- folder: string;
346
+ export interface InstantiatePackAgentResponse {
347
+ agentId: string;
348
+ warnings: string[];
291
349
  }
292
350
  export interface ProcessTextResponse {
293
351
  result: string;
@@ -314,6 +372,7 @@ export interface ArtifactMetadata {
314
372
  mimeType?: string;
315
373
  description?: string;
316
374
  scope?: PromptScope;
375
+ pack?: string;
317
376
  }
318
377
  export interface Artifact {
319
378
  name: string;
@@ -1 +1 @@
1
- window.hierarchyData = "eJyNkE2LwjAURf/LXcdxrBolS125mI0upYvQvtpgmkBeZkAk/13ix0wZKrpJILnvHc49I3gfGWo/kctPsZCzUiBQY6mKxjuGOkNO8+l0R1BYBXPS7dq7xhx2FH5MRRA4GldDTYqlwHewUKisZiYeD8Q/2thZiFsECpHrUZ4f3R6SwELOesQvYtaHP0oxlw+KcZFCoyvi8T31dPlvNH+2xtaB3NW6mJdJIN895tb77j93wK4Xe22VC+4hNsMdDttt3mvwiaSclimlC/ouoYI="
1
+ window.hierarchyData = "eJyVksFqAyEQht9lzqbRBLuux/QUaKG00EvZg+hsVrKroLalhH33YtM0UjZsevGgn/Pxz8wBgvcpgnxlNRWEMcGIoFVDIGDbo07WuwjyABXLp1MDgoRNsJ+qu/OutbtnDO9WIxDYW2dAspUg8BZ6kKB7FSPG5QR+06WhB3JEQEKKZpH/L44XIwFBq8L4gDGq3dmy4rcni3UJQ6s0xuUPdbH4L5ofO9ubgC5HF3zdjAQYrXnhfFR6/2LxY0Z6wq6wZgcTZSfvvTJocokZyxn8dzpa8+90gq8L85P3w9+uTsyuwOZnlneoUGynN2Q64Pa6/bgQsmLNOI5fJxTqKQ=="
@@ -21,6 +21,8 @@
21
21
  --dark-hl-9: #4EC9B0;
22
22
  --light-hl-10: #000000FF;
23
23
  --dark-hl-10: #D4D4D4;
24
+ --light-hl-11: #000000;
25
+ --dark-hl-11: #C8C8C8;
24
26
  --light-code-background: #FFFFFF;
25
27
  --dark-code-background: #1E1E1E;
26
28
  }
@@ -37,6 +39,7 @@
37
39
  --hl-8: var(--light-hl-8);
38
40
  --hl-9: var(--light-hl-9);
39
41
  --hl-10: var(--light-hl-10);
42
+ --hl-11: var(--light-hl-11);
40
43
  --code-background: var(--light-code-background);
41
44
  } }
42
45
 
@@ -52,6 +55,7 @@
52
55
  --hl-8: var(--dark-hl-8);
53
56
  --hl-9: var(--dark-hl-9);
54
57
  --hl-10: var(--dark-hl-10);
58
+ --hl-11: var(--dark-hl-11);
55
59
  --code-background: var(--dark-code-background);
56
60
  } }
57
61
 
@@ -67,6 +71,7 @@
67
71
  --hl-8: var(--light-hl-8);
68
72
  --hl-9: var(--light-hl-9);
69
73
  --hl-10: var(--light-hl-10);
74
+ --hl-11: var(--light-hl-11);
70
75
  --code-background: var(--light-code-background);
71
76
  }
72
77
 
@@ -82,6 +87,7 @@
82
87
  --hl-8: var(--dark-hl-8);
83
88
  --hl-9: var(--dark-hl-9);
84
89
  --hl-10: var(--dark-hl-10);
90
+ --hl-11: var(--dark-hl-11);
85
91
  --code-background: var(--dark-code-background);
86
92
  }
87
93
 
@@ -96,4 +102,5 @@
96
102
  .hl-8 { color: var(--hl-8); }
97
103
  .hl-9 { color: var(--hl-9); }
98
104
  .hl-10 { color: var(--hl-10); }
99
- pre, code { background: var(--code-background); }
105
+ .hl-11 { color: var(--hl-11); }
106
+ pre, code, math[display='block'] { background: var(--code-background); }
@@ -3,7 +3,7 @@
3
3
  function addIcons() {
4
4
  if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
5
5
  const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
6
- svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g>`;
6
+ svg.innerHTML = `<symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Module" id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Module" id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Namespace" id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">N</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Enumeration" id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">E</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Enumeration Member" id="icon-16"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Variable" id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">V</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Function" id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">F</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Class" id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Interface" id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">I</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Constructor" id="icon-512"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Property" id="icon-1024"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Method" id="icon-2048"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Function" id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">F</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Index Signature" id="icon-8192"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Constructor" id="icon-16384"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Property" id="icon-32768"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Type Alias" id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Type Alias" id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Accessor" id="icon-262144"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Accessor" id="icon-524288"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Accessor" id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Type Alias" id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Reference" id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">R</text></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Document" id="icon-8388608"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></symbol><symbol class="tsd-kind-icon tsd-no-select" viewBox="0 0 24 24" aria-label="Folder" id="icon-folder"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></symbol><symbol width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true" id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></symbol><symbol width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></symbol><symbol width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></symbol><symbol width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></symbol><symbol width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></symbol><symbol viewBox="0 0 24 24" aria-hidden="true" id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></symbol><symbol xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></symbol><symbol width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></symbol><symbol width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></symbol><symbol width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></symbol><symbol width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></symbol>`;
7
7
  svg.style.display = "none";
8
8
  if (location.protocol === "file:") updateUseElements();
9
9
  }