@oneclick.dev/cms-kit 0.0.1 → 0.0.3

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 (842) hide show
  1. package/dist/index-BqaBgX_I.cjs +1 -0
  2. package/dist/index-DJQgzywP.js +4319 -0
  3. package/dist/index.cjs.js +52 -0
  4. package/dist/index.css +1 -0
  5. package/dist/index.es.js +142280 -0
  6. package/dist/types/components/ui/apple-emoji/AppleEmoji.vue.d.ts +6 -0
  7. package/dist/types/components/ui/apple-emoji/index.d.ts +1 -0
  8. package/dist/types/components/ui/avatar/Avatar.vue.d.ts +21 -0
  9. package/dist/types/components/ui/avatar/AvatarFallback.vue.d.ts +22 -0
  10. package/dist/types/components/ui/avatar/AvatarImage.vue.d.ts +18 -0
  11. package/dist/types/components/ui/avatar/index.d.ts +3 -0
  12. package/dist/types/components/ui/badge/Badge.vue.d.ts +26 -0
  13. package/dist/types/components/ui/badge/index.d.ts +1 -0
  14. package/dist/types/components/ui/breadcrumb/Breadcrumb.vue.d.ts +21 -0
  15. package/dist/types/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +21 -0
  16. package/dist/types/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +21 -0
  17. package/dist/types/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +24 -0
  18. package/dist/types/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +21 -0
  19. package/dist/types/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +21 -0
  20. package/dist/types/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +21 -0
  21. package/dist/types/components/ui/breadcrumb/index.d.ts +7 -0
  22. package/dist/types/components/ui/button/Button.vue.d.ts +32 -0
  23. package/dist/types/components/ui/button/index.d.ts +7 -0
  24. package/dist/types/components/ui/calendar/Calendar.vue.d.ts +13 -0
  25. package/dist/types/components/ui/calendar/CalendarCell.vue.d.ts +22 -0
  26. package/dist/types/components/ui/calendar/CalendarCellTrigger.vue.d.ts +24 -0
  27. package/dist/types/components/ui/calendar/CalendarGrid.vue.d.ts +22 -0
  28. package/dist/types/components/ui/calendar/CalendarGridBody.vue.d.ts +18 -0
  29. package/dist/types/components/ui/calendar/CalendarGridHead.vue.d.ts +22 -0
  30. package/dist/types/components/ui/calendar/CalendarGridRow.vue.d.ts +22 -0
  31. package/dist/types/components/ui/calendar/CalendarHeadCell.vue.d.ts +22 -0
  32. package/dist/types/components/ui/calendar/CalendarHeader.vue.d.ts +22 -0
  33. package/dist/types/components/ui/calendar/CalendarHeading.vue.d.ts +28 -0
  34. package/dist/types/components/ui/calendar/CalendarNextButton.vue.d.ts +22 -0
  35. package/dist/types/components/ui/calendar/CalendarPrevButton.vue.d.ts +22 -0
  36. package/dist/types/components/ui/calendar/index.d.ts +12 -0
  37. package/dist/types/components/ui/card/Card.vue.d.ts +21 -0
  38. package/dist/types/components/ui/card/CardAction.vue.d.ts +21 -0
  39. package/dist/types/components/ui/card/CardContent.vue.d.ts +21 -0
  40. package/dist/types/components/ui/card/CardDescription.vue.d.ts +21 -0
  41. package/dist/types/components/ui/card/CardFooter.vue.d.ts +21 -0
  42. package/dist/types/components/ui/card/CardHeader.vue.d.ts +21 -0
  43. package/dist/types/components/ui/card/CardTitle.vue.d.ts +21 -0
  44. package/dist/types/components/ui/card/index.d.ts +7 -0
  45. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +26 -0
  46. package/dist/types/components/ui/checkbox/index.d.ts +1 -0
  47. package/dist/types/components/ui/code-editor/CodeEditor.vue.d.ts +51 -0
  48. package/dist/types/components/ui/code-editor/index.d.ts +1 -0
  49. package/dist/types/components/ui/code-editor/interpolationHighlight.d.ts +2 -0
  50. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +24 -0
  51. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +18 -0
  52. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
  53. package/dist/types/components/ui/collapsible/index.d.ts +3 -0
  54. package/dist/types/components/ui/combobox/Combobox.vue.d.ts +33 -0
  55. package/dist/types/components/ui/combobox/ComboboxAnchor.vue.d.ts +22 -0
  56. package/dist/types/components/ui/combobox/ComboboxEmpty.vue.d.ts +22 -0
  57. package/dist/types/components/ui/combobox/ComboboxGroup.vue.d.ts +23 -0
  58. package/dist/types/components/ui/combobox/ComboboxInput.vue.d.ts +27 -0
  59. package/dist/types/components/ui/combobox/ComboboxItem.vue.d.ts +26 -0
  60. package/dist/types/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +22 -0
  61. package/dist/types/components/ui/combobox/ComboboxList.vue.d.ts +37 -0
  62. package/dist/types/components/ui/combobox/ComboboxSeparator.vue.d.ts +22 -0
  63. package/dist/types/components/ui/combobox/ComboboxViewport.vue.d.ts +22 -0
  64. package/dist/types/components/ui/combobox/index.d.ts +11 -0
  65. package/dist/types/components/ui/command/Command.vue.d.ts +40 -0
  66. package/dist/types/components/ui/command/CommandDialog.vue.d.ts +29 -0
  67. package/dist/types/components/ui/command/CommandEmpty.vue.d.ts +22 -0
  68. package/dist/types/components/ui/command/CommandGroup.vue.d.ts +23 -0
  69. package/dist/types/components/ui/command/CommandInput.vue.d.ts +7 -0
  70. package/dist/types/components/ui/command/CommandItem.vue.d.ts +30 -0
  71. package/dist/types/components/ui/command/CommandList.vue.d.ts +22 -0
  72. package/dist/types/components/ui/command/CommandSeparator.vue.d.ts +22 -0
  73. package/dist/types/components/ui/command/CommandShortcut.vue.d.ts +21 -0
  74. package/dist/types/components/ui/command/index.d.ts +90 -0
  75. package/dist/types/components/ui/context-menu/ContextMenu.vue.d.ts +22 -0
  76. package/dist/types/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +28 -0
  77. package/dist/types/components/ui/context-menu/ContextMenuContent.vue.d.ts +34 -0
  78. package/dist/types/components/ui/context-menu/ContextMenuGroup.vue.d.ts +18 -0
  79. package/dist/types/components/ui/context-menu/ContextMenuItem.vue.d.ts +30 -0
  80. package/dist/types/components/ui/context-menu/ContextMenuLabel.vue.d.ts +23 -0
  81. package/dist/types/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +22 -0
  82. package/dist/types/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +26 -0
  83. package/dist/types/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +7 -0
  84. package/dist/types/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +21 -0
  85. package/dist/types/components/ui/context-menu/ContextMenuSub.vue.d.ts +22 -0
  86. package/dist/types/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +38 -0
  87. package/dist/types/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +23 -0
  88. package/dist/types/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +18 -0
  89. package/dist/types/components/ui/context-menu/index.d.ts +14 -0
  90. package/dist/types/components/ui/custom-dialog/CustomDialog.vue.d.ts +7 -0
  91. package/dist/types/components/ui/custom-dialog/index.d.ts +1 -0
  92. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +22 -0
  93. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +18 -0
  94. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +36 -0
  95. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
  96. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
  97. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
  98. package/dist/types/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
  99. package/dist/types/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
  100. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
  101. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
  102. package/dist/types/components/ui/dialog/index.d.ts +10 -0
  103. package/dist/types/components/ui/drawer/Drawer.vue.d.ts +34 -0
  104. package/dist/types/components/ui/drawer/DrawerClose.vue.d.ts +18 -0
  105. package/dist/types/components/ui/drawer/DrawerContent.vue.d.ts +36 -0
  106. package/dist/types/components/ui/drawer/DrawerDescription.vue.d.ts +22 -0
  107. package/dist/types/components/ui/drawer/DrawerFooter.vue.d.ts +21 -0
  108. package/dist/types/components/ui/drawer/DrawerHeader.vue.d.ts +21 -0
  109. package/dist/types/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
  110. package/dist/types/components/ui/drawer/DrawerTitle.vue.d.ts +22 -0
  111. package/dist/types/components/ui/drawer/DrawerTrigger.vue.d.ts +18 -0
  112. package/dist/types/components/ui/drawer/index.d.ts +9 -0
  113. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +22 -0
  114. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +28 -0
  115. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
  116. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
  117. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
  118. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
  119. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
  120. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +26 -0
  121. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  122. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
  123. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
  124. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
  125. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
  126. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
  127. package/dist/types/components/ui/dropdown-menu/index.d.ts +15 -0
  128. package/dist/types/components/ui/emoji-picker/EmojiPicker.vue.d.ts +9 -0
  129. package/dist/types/components/ui/emoji-picker/index.d.ts +1 -0
  130. package/dist/types/components/ui/flow-builder/FlowBuilder.vue.d.ts +52 -0
  131. package/dist/types/components/ui/flow-builder/FlowBuilderSelect.vue.d.ts +14 -0
  132. package/dist/types/components/ui/flow-builder/components/Builder.vue.d.ts +25 -0
  133. package/dist/types/components/ui/flow-builder/components/DropzoneBackground.vue.d.ts +17 -0
  134. package/dist/types/components/ui/flow-builder/components/EdgeEditor.vue.d.ts +18 -0
  135. package/dist/types/components/ui/flow-builder/components/Menu.vue.d.ts +2 -0
  136. package/dist/types/components/ui/flow-builder/components/NodeEditor.vue.d.ts +20 -0
  137. package/dist/types/components/ui/flow-builder/components/edge-editor/DataEdgeEditor.vue.d.ts +16 -0
  138. package/dist/types/components/ui/flow-builder/components/node-editor/ApiRequestEditor.vue.d.ts +16 -0
  139. package/dist/types/components/ui/flow-builder/components/node-editor/ConfirmEditor.vue.d.ts +16 -0
  140. package/dist/types/components/ui/flow-builder/components/node-editor/FinishFlowEditor.vue.d.ts +16 -0
  141. package/dist/types/components/ui/flow-builder/components/node-editor/IntegrationActionEditor.vue.d.ts +16 -0
  142. package/dist/types/components/ui/flow-builder/components/node-editor/SetVariableEditor.vue.d.ts +16 -0
  143. package/dist/types/components/ui/flow-builder/components/node-editor/ShowDialogEditor.vue.d.ts +16 -0
  144. package/dist/types/components/ui/flow-builder/components/node-editor/ShowModuleEditor.vue.d.ts +16 -0
  145. package/dist/types/components/ui/flow-builder/components/node-editor/ShowToastEditor.vue.d.ts +16 -0
  146. package/dist/types/components/ui/flow-builder/components/node-editor/TransformDataEditor.vue.d.ts +16 -0
  147. package/dist/types/components/ui/flow-builder/components/node-editor/VisitUrlEditor.vue.d.ts +16 -0
  148. package/dist/types/components/ui/flow-builder/components/variables/Widget.vue.d.ts +2 -0
  149. package/dist/types/components/ui/flow-builder/composables/outputRegistry.d.ts +23 -0
  150. package/dist/types/components/ui/flow-builder/index.d.ts +4 -0
  151. package/dist/types/components/ui/flow-builder/types.d.ts +7 -0
  152. package/dist/types/components/ui/form/FormControl.vue.d.ts +17 -0
  153. package/dist/types/components/ui/form/FormDescription.vue.d.ts +21 -0
  154. package/dist/types/components/ui/form/FormItem.vue.d.ts +21 -0
  155. package/dist/types/components/ui/form/FormLabel.vue.d.ts +22 -0
  156. package/dist/types/components/ui/form/FormMessage.vue.d.ts +6 -0
  157. package/dist/types/components/ui/form/index.d.ts +7 -0
  158. package/dist/types/components/ui/form/injectionKeys.d.ts +2 -0
  159. package/dist/types/components/ui/form/useFormField.d.ts +11 -0
  160. package/dist/types/components/ui/form-builder/FormBuilder.vue.d.ts +69 -0
  161. package/dist/types/components/ui/form-builder/FormBuilderSelect.vue.d.ts +35 -0
  162. package/dist/types/components/ui/form-builder/FormDisplayer.vue.d.ts +94 -0
  163. package/dist/types/components/ui/form-builder/components/AdminElementEditor.vue.d.ts +6 -0
  164. package/dist/types/components/ui/form-builder/components/AdminToolbar.vue.d.ts +16 -0
  165. package/dist/types/components/ui/form-builder/components/AdminToolbarView.vue.d.ts +10 -0
  166. package/dist/types/components/ui/form-builder/components/CustomDashboard.vue.d.ts +4 -0
  167. package/dist/types/components/ui/form-builder/components/FormBuilderWrapper.vue.d.ts +44 -0
  168. package/dist/types/components/ui/form-builder/components/admin/Transformer.vue.d.ts +16 -0
  169. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Button.vue.d.ts +2 -0
  170. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Checkbox.vue.d.ts +2 -0
  171. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Label.vue.d.ts +2 -0
  172. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Radios.vue.d.ts +2 -0
  173. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Scanner.vue.d.ts +2 -0
  174. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Select.vue.d.ts +2 -0
  175. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Text.vue.d.ts +2 -0
  176. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Textarea.vue.d.ts +2 -0
  177. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/Textfield.vue.d.ts +2 -0
  178. package/dist/types/components/ui/form-builder/components/admin/element-setting-views/index.d.ts +12 -0
  179. package/dist/types/components/ui/form-builder/components/admin/setting-views/ApiActionsView.vue.d.ts +2 -0
  180. package/dist/types/components/ui/form-builder/components/admin/setting-views/NewElementView.vue.d.ts +2 -0
  181. package/dist/types/components/ui/form-builder/components/admin/setting-views/VariablesView.vue.d.ts +2 -0
  182. package/dist/types/components/ui/form-builder/components/admin/setting-views/new-element-view/DraggableElement.vue.d.ts +29 -0
  183. package/dist/types/components/ui/form-builder/components/admin/setting-views/variables-view/ApiActionVariables.vue.d.ts +2 -0
  184. package/dist/types/components/ui/form-builder/components/admin/setting-views/variables-view/RouteQueryParams.vue.d.ts +2 -0
  185. package/dist/types/components/ui/form-builder/components/admin/setting-views/variables-view/Transformers.vue.d.ts +2 -0
  186. package/dist/types/components/ui/form-builder/components/admin/setting-views/variables-view/Variables.vue.d.ts +2 -0
  187. package/dist/types/components/ui/form-builder/components/elements/button/Button.vue.d.ts +50 -0
  188. package/dist/types/components/ui/form-builder/components/elements/button/index.d.ts +1 -0
  189. package/dist/types/components/ui/form-builder/components/elements/checkbox/Checkbox.vue.d.ts +28 -0
  190. package/dist/types/components/ui/form-builder/components/elements/checkbox/index.d.ts +1 -0
  191. package/dist/types/components/ui/form-builder/components/elements/file/File.vue.d.ts +2 -0
  192. package/dist/types/components/ui/form-builder/components/elements/file/index.d.ts +1 -0
  193. package/dist/types/components/ui/form-builder/components/elements/images/Images.vue.d.ts +31 -0
  194. package/dist/types/components/ui/form-builder/components/elements/images/index.d.ts +1 -0
  195. package/dist/types/components/ui/form-builder/components/elements/items/Items.vue.d.ts +2 -0
  196. package/dist/types/components/ui/form-builder/components/elements/items/index.d.ts +1 -0
  197. package/dist/types/components/ui/form-builder/components/elements/label/Label.vue.d.ts +14 -0
  198. package/dist/types/components/ui/form-builder/components/elements/label/index.d.ts +1 -0
  199. package/dist/types/components/ui/form-builder/components/elements/location/Location.vue.d.ts +2 -0
  200. package/dist/types/components/ui/form-builder/components/elements/location/index.d.ts +1 -0
  201. package/dist/types/components/ui/form-builder/components/elements/radios/Radios.vue.d.ts +43 -0
  202. package/dist/types/components/ui/form-builder/components/elements/radios/index.d.ts +1 -0
  203. package/dist/types/components/ui/form-builder/components/elements/richtext/RichText.vue.d.ts +2 -0
  204. package/dist/types/components/ui/form-builder/components/elements/richtext/index.d.ts +1 -0
  205. package/dist/types/components/ui/form-builder/components/elements/scanner/Scanner.vue.d.ts +47 -0
  206. package/dist/types/components/ui/form-builder/components/elements/scanner/index.d.ts +1 -0
  207. package/dist/types/components/ui/form-builder/components/elements/select/Select.vue.d.ts +43 -0
  208. package/dist/types/components/ui/form-builder/components/elements/select/index.d.ts +1 -0
  209. package/dist/types/components/ui/form-builder/components/elements/text/Text.vue.d.ts +14 -0
  210. package/dist/types/components/ui/form-builder/components/elements/text/index.d.ts +1 -0
  211. package/dist/types/components/ui/form-builder/components/elements/textarea/Textarea.vue.d.ts +31 -0
  212. package/dist/types/components/ui/form-builder/components/elements/textarea/index.d.ts +1 -0
  213. package/dist/types/components/ui/form-builder/components/elements/textfield/Textfield.vue.d.ts +31 -0
  214. package/dist/types/components/ui/form-builder/components/elements/textfield/index.d.ts +1 -0
  215. package/dist/types/components/ui/form-builder/index.d.ts +3 -0
  216. package/dist/types/components/ui/input/Input.vue.d.ts +12 -0
  217. package/dist/types/components/ui/input/index.d.ts +1 -0
  218. package/dist/types/components/ui/integration-action-builder/IntegrationActionBuilder.vue.d.ts +2 -0
  219. package/dist/types/components/ui/integration-action-builder/InterpolationField.vue.d.ts +26 -0
  220. package/dist/types/components/ui/integration-action-builder/index.d.ts +1 -0
  221. package/dist/types/components/ui/integration-action-builder/integrations/firebase/AddDocument.vue.d.ts +16 -0
  222. package/dist/types/components/ui/integration-action-builder/integrations/firebase/DeleteDocument.vue.d.ts +2 -0
  223. package/dist/types/components/ui/integration-action-builder/integrations/firebase/GetCollections.vue.d.ts +2 -0
  224. package/dist/types/components/ui/integration-action-builder/integrations/firebase/GetDocumentById.vue.d.ts +2 -0
  225. package/dist/types/components/ui/integration-action-builder/integrations/firebase/QueryCollectionGroup.vue.d.ts +2 -0
  226. package/dist/types/components/ui/integration-action-builder/integrations/firebase/QueryFirestore.vue.d.ts +16 -0
  227. package/dist/types/components/ui/integration-action-builder/integrations/firebase/UpdateDocument.vue.d.ts +2 -0
  228. package/dist/types/components/ui/integration-action-builder/integrations/firebase/index.d.ts +191 -0
  229. package/dist/types/components/ui/integration-action-builder/integrations/index.d.ts +391 -0
  230. package/dist/types/components/ui/integration-action-builder/integrations/openai/AddDocument.vue.d.ts +16 -0
  231. package/dist/types/components/ui/integration-action-builder/integrations/openai/GenerateText.vue.d.ts +16 -0
  232. package/dist/types/components/ui/integration-action-builder/integrations/openai/components/ModelSelector.vue.d.ts +16 -0
  233. package/dist/types/components/ui/integration-action-builder/integrations/openai/index.d.ts +154 -0
  234. package/dist/types/components/ui/integration-action-builder/integrations/twilio/MakeCall.vue.d.ts +16 -0
  235. package/dist/types/components/ui/integration-action-builder/integrations/twilio/SendSMS.vue.d.ts +16 -0
  236. package/dist/types/components/ui/integration-action-builder/integrations/twilio/components/ModelSelector.vue.d.ts +16 -0
  237. package/dist/types/components/ui/integration-action-builder/integrations/twilio/index.d.ts +46 -0
  238. package/dist/types/components/ui/integration-icon/IntegrationIcon.vue.d.ts +12 -0
  239. package/dist/types/components/ui/integration-icon/index.d.ts +1 -0
  240. package/dist/types/components/ui/label/Label.vue.d.ts +22 -0
  241. package/dist/types/components/ui/label/index.d.ts +1 -0
  242. package/dist/types/components/ui/lucide-icon-selector/LucideIconPicker.vue.d.ts +9 -0
  243. package/dist/types/components/ui/lucide-icon-selector/LucideIconSelector.vue.d.ts +9 -0
  244. package/dist/types/components/ui/lucide-icon-selector/index.d.ts +2 -0
  245. package/dist/types/components/ui/media-picker/MediaPicker.vue.d.ts +16 -0
  246. package/dist/types/components/ui/media-picker/MediaPickerDialog.vue.d.ts +37 -0
  247. package/dist/types/components/ui/media-picker/MediaPickerItems.vue.d.ts +4 -0
  248. package/dist/types/components/ui/media-picker/index.d.ts +2 -0
  249. package/dist/types/components/ui/media-picker/media-picker-dialog/Dropzone.vue.d.ts +24 -0
  250. package/dist/types/components/ui/media-picker/media-picker-dialog/FileItem.vue.d.ts +24 -0
  251. package/dist/types/components/ui/media-picker/media-picker-dialog/Filters.vue.d.ts +12 -0
  252. package/dist/types/components/ui/menubar/Menubar.vue.d.ts +26 -0
  253. package/dist/types/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +28 -0
  254. package/dist/types/components/ui/menubar/MenubarContent.vue.d.ts +26 -0
  255. package/dist/types/components/ui/menubar/MenubarGroup.vue.d.ts +18 -0
  256. package/dist/types/components/ui/menubar/MenubarItem.vue.d.ts +28 -0
  257. package/dist/types/components/ui/menubar/MenubarLabel.vue.d.ts +23 -0
  258. package/dist/types/components/ui/menubar/MenubarMenu.vue.d.ts +18 -0
  259. package/dist/types/components/ui/menubar/MenubarRadioGroup.vue.d.ts +22 -0
  260. package/dist/types/components/ui/menubar/MenubarRadioItem.vue.d.ts +26 -0
  261. package/dist/types/components/ui/menubar/MenubarSeparator.vue.d.ts +7 -0
  262. package/dist/types/components/ui/menubar/MenubarShortcut.vue.d.ts +21 -0
  263. package/dist/types/components/ui/menubar/MenubarSub.vue.d.ts +25 -0
  264. package/dist/types/components/ui/menubar/MenubarSubContent.vue.d.ts +38 -0
  265. package/dist/types/components/ui/menubar/MenubarSubTrigger.vue.d.ts +23 -0
  266. package/dist/types/components/ui/menubar/MenubarTrigger.vue.d.ts +22 -0
  267. package/dist/types/components/ui/menubar/index.d.ts +15 -0
  268. package/dist/types/components/ui/number-field/NumberField.vue.d.ts +26 -0
  269. package/dist/types/components/ui/number-field/NumberFieldContent.vue.d.ts +21 -0
  270. package/dist/types/components/ui/number-field/NumberFieldDecrement.vue.d.ts +22 -0
  271. package/dist/types/components/ui/number-field/NumberFieldIncrement.vue.d.ts +22 -0
  272. package/dist/types/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -0
  273. package/dist/types/components/ui/number-field/index.d.ts +5 -0
  274. package/dist/types/components/ui/pagination/PaginationEllipsis.vue.d.ts +22 -0
  275. package/dist/types/components/ui/pagination/PaginationFirst.vue.d.ts +24 -0
  276. package/dist/types/components/ui/pagination/PaginationLast.vue.d.ts +24 -0
  277. package/dist/types/components/ui/pagination/PaginationNext.vue.d.ts +24 -0
  278. package/dist/types/components/ui/pagination/PaginationPrev.vue.d.ts +24 -0
  279. package/dist/types/components/ui/pagination/index.d.ts +6 -0
  280. package/dist/types/components/ui/popover/Popover.vue.d.ts +22 -0
  281. package/dist/types/components/ui/popover/PopoverAnchor.vue.d.ts +18 -0
  282. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +39 -0
  283. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
  284. package/dist/types/components/ui/popover/index.d.ts +4 -0
  285. package/dist/types/components/ui/query-builder-dialog/QueryBuilderDialog.vue.d.ts +61 -0
  286. package/dist/types/components/ui/query-builder-dialog/index.d.ts +1 -0
  287. package/dist/types/components/ui/radio-group/RadioGroup.vue.d.ts +27 -0
  288. package/dist/types/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
  289. package/dist/types/components/ui/radio-group/index.d.ts +2 -0
  290. package/dist/types/components/ui/range-calendar/RangeCalendar.vue.d.ts +15 -0
  291. package/dist/types/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +22 -0
  292. package/dist/types/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +22 -0
  293. package/dist/types/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +22 -0
  294. package/dist/types/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +18 -0
  295. package/dist/types/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +18 -0
  296. package/dist/types/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +22 -0
  297. package/dist/types/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +22 -0
  298. package/dist/types/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +22 -0
  299. package/dist/types/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +28 -0
  300. package/dist/types/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +22 -0
  301. package/dist/types/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +22 -0
  302. package/dist/types/components/ui/range-calendar/index.d.ts +12 -0
  303. package/dist/types/components/ui/resizable/ResizableHandle.vue.d.ts +12 -0
  304. package/dist/types/components/ui/resizable/ResizablePanel.vue.d.ts +26 -0
  305. package/dist/types/components/ui/resizable/ResizablePanelGroup.vue.d.ts +26 -0
  306. package/dist/types/components/ui/resizable/index.d.ts +3 -0
  307. package/dist/types/components/ui/ripple-button/RippleButton.vue.d.ts +34 -0
  308. package/dist/types/components/ui/ripple-button/index.d.ts +1 -0
  309. package/dist/types/components/ui/sandbox/Sandbox.vue.d.ts +40 -0
  310. package/dist/types/components/ui/sandbox/index.d.ts +1 -0
  311. package/dist/types/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
  312. package/dist/types/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
  313. package/dist/types/components/ui/scroll-area/index.d.ts +2 -0
  314. package/dist/types/components/ui/segmented-control/SegmentedControl.vue.d.ts +74 -0
  315. package/dist/types/components/ui/segmented-control/SegmentedControlButton.vue.d.ts +26 -0
  316. package/dist/types/components/ui/segmented-control/index.d.ts +2 -0
  317. package/dist/types/components/ui/select/Select.vue.d.ts +25 -0
  318. package/dist/types/components/ui/select/SelectContent.vue.d.ts +32 -0
  319. package/dist/types/components/ui/select/SelectGroup.vue.d.ts +18 -0
  320. package/dist/types/components/ui/select/SelectItem.vue.d.ts +22 -0
  321. package/dist/types/components/ui/select/SelectItemText.vue.d.ts +18 -0
  322. package/dist/types/components/ui/select/SelectLabel.vue.d.ts +22 -0
  323. package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
  324. package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
  325. package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  326. package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +25 -0
  327. package/dist/types/components/ui/select/SelectValue.vue.d.ts +18 -0
  328. package/dist/types/components/ui/select/index.d.ts +11 -0
  329. package/dist/types/components/ui/separator/Separator.vue.d.ts +10 -0
  330. package/dist/types/components/ui/separator/index.d.ts +1 -0
  331. package/dist/types/components/ui/sheet/Sheet.vue.d.ts +22 -0
  332. package/dist/types/components/ui/sheet/SheetClose.vue.d.ts +18 -0
  333. package/dist/types/components/ui/sheet/SheetContent.vue.d.ts +40 -0
  334. package/dist/types/components/ui/sheet/SheetDescription.vue.d.ts +22 -0
  335. package/dist/types/components/ui/sheet/SheetFooter.vue.d.ts +21 -0
  336. package/dist/types/components/ui/sheet/SheetHeader.vue.d.ts +21 -0
  337. package/dist/types/components/ui/sheet/SheetOverlay.vue.d.ts +22 -0
  338. package/dist/types/components/ui/sheet/SheetTitle.vue.d.ts +22 -0
  339. package/dist/types/components/ui/sheet/SheetTrigger.vue.d.ts +18 -0
  340. package/dist/types/components/ui/sheet/index.d.ts +8 -0
  341. package/dist/types/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
  342. package/dist/types/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
  343. package/dist/types/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
  344. package/dist/types/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
  345. package/dist/types/components/ui/sidebar/SidebarGroupAction.vue.d.ts +22 -0
  346. package/dist/types/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
  347. package/dist/types/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +22 -0
  348. package/dist/types/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
  349. package/dist/types/components/ui/sidebar/SidebarInput.vue.d.ts +21 -0
  350. package/dist/types/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
  351. package/dist/types/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
  352. package/dist/types/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
  353. package/dist/types/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
  354. package/dist/types/components/ui/sidebar/SidebarMenuButton.vue.d.ts +27 -0
  355. package/dist/types/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
  356. package/dist/types/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
  357. package/dist/types/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +7 -0
  358. package/dist/types/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
  359. package/dist/types/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
  360. package/dist/types/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
  361. package/dist/types/components/ui/sidebar/SidebarProvider.vue.d.ts +30 -0
  362. package/dist/types/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
  363. package/dist/types/components/ui/sidebar/SidebarSeparator.vue.d.ts +21 -0
  364. package/dist/types/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
  365. package/dist/types/components/ui/sidebar/index.d.ts +37 -0
  366. package/dist/types/components/ui/sidebar/utils.d.ts +56 -0
  367. package/dist/types/components/ui/skeleton/Skeleton.vue.d.ts +6 -0
  368. package/dist/types/components/ui/skeleton/index.d.ts +1 -0
  369. package/dist/types/components/ui/sonner/Sonner.vue.d.ts +3 -0
  370. package/dist/types/components/ui/sonner/index.d.ts +1 -0
  371. package/dist/types/components/ui/spring-calendar/SpringCalendar.vue.d.ts +21 -0
  372. package/dist/types/components/ui/spring-calendar/TextMorph.vue.d.ts +14 -0
  373. package/dist/types/components/ui/spring-calendar/index.d.ts +2 -0
  374. package/dist/types/components/ui/switch/Switch.vue.d.ts +26 -0
  375. package/dist/types/components/ui/switch/index.d.ts +1 -0
  376. package/dist/types/components/ui/table/Table.vue.d.ts +21 -0
  377. package/dist/types/components/ui/table/TableBody.vue.d.ts +21 -0
  378. package/dist/types/components/ui/table/TableCaption.vue.d.ts +21 -0
  379. package/dist/types/components/ui/table/TableCell.vue.d.ts +21 -0
  380. package/dist/types/components/ui/table/TableEmpty.vue.d.ts +24 -0
  381. package/dist/types/components/ui/table/TableFooter.vue.d.ts +21 -0
  382. package/dist/types/components/ui/table/TableHead.vue.d.ts +21 -0
  383. package/dist/types/components/ui/table/TableHeader.vue.d.ts +21 -0
  384. package/dist/types/components/ui/table/TableRow.vue.d.ts +21 -0
  385. package/dist/types/components/ui/table/index.d.ts +9 -0
  386. package/dist/types/components/ui/table/utils.d.ts +3 -0
  387. package/dist/types/components/ui/tabs/Tabs.vue.d.ts +23 -0
  388. package/dist/types/components/ui/tabs/TabsContent.vue.d.ts +22 -0
  389. package/dist/types/components/ui/tabs/TabsList.vue.d.ts +22 -0
  390. package/dist/types/components/ui/tabs/TabsTrigger.vue.d.ts +22 -0
  391. package/dist/types/components/ui/tabs/index.d.ts +4 -0
  392. package/dist/types/components/ui/tailwind-color-picker/TailwindColorPicker.vue.d.ts +12 -0
  393. package/dist/types/components/ui/tailwind-color-picker/index.d.ts +1 -0
  394. package/dist/types/components/ui/textarea/Textarea.vue.d.ts +12 -0
  395. package/dist/types/components/ui/textarea/index.d.ts +1 -0
  396. package/dist/types/components/ui/toggle/Toggle.vue.d.ts +33 -0
  397. package/dist/types/components/ui/toggle/index.d.ts +7 -0
  398. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +22 -0
  399. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
  400. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
  401. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
  402. package/dist/types/components/ui/tooltip/index.d.ts +4 -0
  403. package/dist/types/composables/useCms.d.ts +4 -0
  404. package/dist/types/index.d.ts +3 -0
  405. package/dist/types/lib/interpolation.d.ts +8 -0
  406. package/dist/types/lib/utils.d.ts +6 -0
  407. package/dist/types/types/index.d.ts +36 -0
  408. package/dist/types/vite.config.d.ts +2 -0
  409. package/package.json +17 -1
  410. package/components/ui/apple-emoji/AppleEmoji.vue +0 -32
  411. package/components/ui/apple-emoji/index.ts +0 -1
  412. package/components/ui/avatar/Avatar.vue +0 -18
  413. package/components/ui/avatar/AvatarFallback.vue +0 -23
  414. package/components/ui/avatar/AvatarImage.vue +0 -16
  415. package/components/ui/avatar/index.ts +0 -3
  416. package/components/ui/badge/Badge.vue +0 -39
  417. package/components/ui/badge/index.ts +0 -1
  418. package/components/ui/breadcrumb/Breadcrumb.vue +0 -17
  419. package/components/ui/breadcrumb/BreadcrumbEllipsis.vue +0 -23
  420. package/components/ui/breadcrumb/BreadcrumbItem.vue +0 -17
  421. package/components/ui/breadcrumb/BreadcrumbLink.vue +0 -20
  422. package/components/ui/breadcrumb/BreadcrumbList.vue +0 -17
  423. package/components/ui/breadcrumb/BreadcrumbPage.vue +0 -20
  424. package/components/ui/breadcrumb/BreadcrumbSeparator.vue +0 -22
  425. package/components/ui/breadcrumb/index.ts +0 -7
  426. package/components/ui/button/Button.vue +0 -39
  427. package/components/ui/button/index.ts +0 -36
  428. package/components/ui/calendar/Calendar.vue +0 -63
  429. package/components/ui/calendar/CalendarCell.vue +0 -25
  430. package/components/ui/calendar/CalendarCellTrigger.vue +0 -41
  431. package/components/ui/calendar/CalendarGrid.vue +0 -25
  432. package/components/ui/calendar/CalendarGridBody.vue +0 -14
  433. package/components/ui/calendar/CalendarGridHead.vue +0 -15
  434. package/components/ui/calendar/CalendarGridRow.vue +0 -24
  435. package/components/ui/calendar/CalendarHeadCell.vue +0 -25
  436. package/components/ui/calendar/CalendarHeader.vue +0 -25
  437. package/components/ui/calendar/CalendarHeading.vue +0 -32
  438. package/components/ui/calendar/CalendarNextButton.vue +0 -34
  439. package/components/ui/calendar/CalendarPrevButton.vue +0 -34
  440. package/components/ui/calendar/index.ts +0 -12
  441. package/components/ui/card/Card.vue +0 -22
  442. package/components/ui/card/CardAction.vue +0 -17
  443. package/components/ui/card/CardContent.vue +0 -17
  444. package/components/ui/card/CardDescription.vue +0 -17
  445. package/components/ui/card/CardFooter.vue +0 -17
  446. package/components/ui/card/CardHeader.vue +0 -17
  447. package/components/ui/card/CardTitle.vue +0 -17
  448. package/components/ui/card/index.ts +0 -7
  449. package/components/ui/checkbox/Checkbox.vue +0 -37
  450. package/components/ui/checkbox/index.ts +0 -1
  451. package/components/ui/code-editor/CodeEditor.vue +0 -88
  452. package/components/ui/code-editor/index.ts +0 -1
  453. package/components/ui/code-editor/interpolationHighlight.ts +0 -39
  454. package/components/ui/collapsible/Collapsible.vue +0 -19
  455. package/components/ui/collapsible/CollapsibleContent.vue +0 -14
  456. package/components/ui/collapsible/CollapsibleTrigger.vue +0 -14
  457. package/components/ui/collapsible/index.ts +0 -3
  458. package/components/ui/combobox/Combobox.vue +0 -17
  459. package/components/ui/combobox/ComboboxAnchor.vue +0 -26
  460. package/components/ui/combobox/ComboboxEmpty.vue +0 -24
  461. package/components/ui/combobox/ComboboxGroup.vue +0 -30
  462. package/components/ui/combobox/ComboboxInput.vue +0 -47
  463. package/components/ui/combobox/ComboboxItem.vue +0 -27
  464. package/components/ui/combobox/ComboboxItemIndicator.vue +0 -26
  465. package/components/ui/combobox/ComboboxList.vue +0 -31
  466. package/components/ui/combobox/ComboboxSeparator.vue +0 -24
  467. package/components/ui/combobox/ComboboxTrigger.vue +0 -27
  468. package/components/ui/combobox/ComboboxViewport.vue +0 -26
  469. package/components/ui/combobox/index.ts +0 -12
  470. package/components/ui/command/Command.vue +0 -93
  471. package/components/ui/command/CommandDialog.vue +0 -31
  472. package/components/ui/command/CommandEmpty.vue +0 -29
  473. package/components/ui/command/CommandGroup.vue +0 -47
  474. package/components/ui/command/CommandInput.vue +0 -41
  475. package/components/ui/command/CommandItem.vue +0 -79
  476. package/components/ui/command/CommandList.vue +0 -28
  477. package/components/ui/command/CommandSeparator.vue +0 -24
  478. package/components/ui/command/CommandShortcut.vue +0 -17
  479. package/components/ui/command/index.ts +0 -25
  480. package/components/ui/context-menu/ContextMenu.vue +0 -18
  481. package/components/ui/context-menu/ContextMenuCheckboxItem.vue +0 -41
  482. package/components/ui/context-menu/ContextMenuContent.vue +0 -37
  483. package/components/ui/context-menu/ContextMenuGroup.vue +0 -14
  484. package/components/ui/context-menu/ContextMenuItem.vue +0 -42
  485. package/components/ui/context-menu/ContextMenuLabel.vue +0 -24
  486. package/components/ui/context-menu/ContextMenuPortal.vue +0 -14
  487. package/components/ui/context-menu/ContextMenuRadioGroup.vue +0 -22
  488. package/components/ui/context-menu/ContextMenuRadioItem.vue +0 -41
  489. package/components/ui/context-menu/ContextMenuSeparator.vue +0 -24
  490. package/components/ui/context-menu/ContextMenuShortcut.vue +0 -17
  491. package/components/ui/context-menu/ContextMenuSub.vue +0 -22
  492. package/components/ui/context-menu/ContextMenuSubContent.vue +0 -36
  493. package/components/ui/context-menu/ContextMenuSubTrigger.vue +0 -35
  494. package/components/ui/context-menu/ContextMenuTrigger.vue +0 -16
  495. package/components/ui/context-menu/index.ts +0 -14
  496. package/components/ui/custom-dialog/CustomDialog.vue +0 -31
  497. package/components/ui/custom-dialog/index.ts +0 -1
  498. package/components/ui/dialog/Dialog.vue +0 -17
  499. package/components/ui/dialog/DialogClose.vue +0 -14
  500. package/components/ui/dialog/DialogContent.vue +0 -49
  501. package/components/ui/dialog/DialogDescription.vue +0 -25
  502. package/components/ui/dialog/DialogFooter.vue +0 -15
  503. package/components/ui/dialog/DialogHeader.vue +0 -17
  504. package/components/ui/dialog/DialogOverlay.vue +0 -23
  505. package/components/ui/dialog/DialogScrollContent.vue +0 -59
  506. package/components/ui/dialog/DialogTitle.vue +0 -25
  507. package/components/ui/dialog/DialogTrigger.vue +0 -14
  508. package/components/ui/dialog/index.ts +0 -10
  509. package/components/ui/drawer/Drawer.vue +0 -22
  510. package/components/ui/drawer/DrawerClose.vue +0 -15
  511. package/components/ui/drawer/DrawerContent.vue +0 -34
  512. package/components/ui/drawer/DrawerDescription.vue +0 -24
  513. package/components/ui/drawer/DrawerFooter.vue +0 -17
  514. package/components/ui/drawer/DrawerHeader.vue +0 -17
  515. package/components/ui/drawer/DrawerOverlay.vue +0 -22
  516. package/components/ui/drawer/DrawerTitle.vue +0 -24
  517. package/components/ui/drawer/DrawerTrigger.vue +0 -15
  518. package/components/ui/drawer/index.ts +0 -9
  519. package/components/ui/dropdown-menu/DropdownMenu.vue +0 -17
  520. package/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -41
  521. package/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
  522. package/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -14
  523. package/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -30
  524. package/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -22
  525. package/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -22
  526. package/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -42
  527. package/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -26
  528. package/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
  529. package/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -19
  530. package/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -31
  531. package/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
  532. package/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -16
  533. package/components/ui/dropdown-menu/index.ts +0 -16
  534. package/components/ui/emoji-picker/EmojiPicker.vue +0 -71
  535. package/components/ui/emoji-picker/index.ts +0 -1
  536. package/components/ui/flow-builder/FlowBuilder.vue +0 -48
  537. package/components/ui/flow-builder/FlowBuilderSelect.vue +0 -33
  538. package/components/ui/flow-builder/components/Builder.vue +0 -287
  539. package/components/ui/flow-builder/components/DropzoneBackground.vue +0 -13
  540. package/components/ui/flow-builder/components/EdgeEditor.vue +0 -36
  541. package/components/ui/flow-builder/components/Menu.vue +0 -78
  542. package/components/ui/flow-builder/components/NodeEditor.vue +0 -181
  543. package/components/ui/flow-builder/components/edge-editor/DataEdgeEditor.vue +0 -64
  544. package/components/ui/flow-builder/components/edges/DataEdge.vue +0 -87
  545. package/components/ui/flow-builder/components/node-editor/ApiRequestEditor.vue +0 -150
  546. package/components/ui/flow-builder/components/node-editor/ConfettiEditor.vue +0 -23
  547. package/components/ui/flow-builder/components/node-editor/ConfirmEditor.vue +0 -30
  548. package/components/ui/flow-builder/components/node-editor/FinishFlowEditor.vue +0 -33
  549. package/components/ui/flow-builder/components/node-editor/IntegrationActionEditor.vue +0 -50
  550. package/components/ui/flow-builder/components/node-editor/SetVariableEditor.vue +0 -71
  551. package/components/ui/flow-builder/components/node-editor/ShowDialogEditor.vue +0 -26
  552. package/components/ui/flow-builder/components/node-editor/ShowModuleEditor.vue +0 -92
  553. package/components/ui/flow-builder/components/node-editor/ShowToastEditor.vue +0 -28
  554. package/components/ui/flow-builder/components/node-editor/TransformDataEditor.vue +0 -27
  555. package/components/ui/flow-builder/components/node-editor/VisitUrlEditor.vue +0 -31
  556. package/components/ui/flow-builder/components/nodes/ApiRequestNode.vue +0 -45
  557. package/components/ui/flow-builder/components/nodes/ConfettiNode.vue +0 -32
  558. package/components/ui/flow-builder/components/nodes/ConfirmNode.vue +0 -45
  559. package/components/ui/flow-builder/components/nodes/EmptyNode.vue +0 -26
  560. package/components/ui/flow-builder/components/nodes/FinishFlowNode.vue +0 -30
  561. package/components/ui/flow-builder/components/nodes/IntegrationActionNode.vue +0 -52
  562. package/components/ui/flow-builder/components/nodes/SetVariableNode.vue +0 -34
  563. package/components/ui/flow-builder/components/nodes/ShowDialogNode.vue +0 -34
  564. package/components/ui/flow-builder/components/nodes/ShowModuleNode.vue +0 -34
  565. package/components/ui/flow-builder/components/nodes/ShowToastNode.vue +0 -35
  566. package/components/ui/flow-builder/components/nodes/StartNode.vue +0 -27
  567. package/components/ui/flow-builder/components/nodes/TransformDataNode.vue +0 -34
  568. package/components/ui/flow-builder/components/nodes/VisitUrlNode.vue +0 -34
  569. package/components/ui/flow-builder/components/toolbars/ApiRequestToolbar.vue +0 -45
  570. package/components/ui/flow-builder/components/toolbars/ConfirmToolbar.vue +0 -45
  571. package/components/ui/flow-builder/components/toolbars/DefaultToolbar.vue +0 -42
  572. package/components/ui/flow-builder/components/toolbars/IntegrationActionToolbar.vue +0 -45
  573. package/components/ui/flow-builder/components/variables/Widget.vue +0 -137
  574. package/components/ui/flow-builder/composables/outputRegistry.ts +0 -33
  575. package/components/ui/flow-builder/composables/taskHandlers.js +0 -185
  576. package/components/ui/flow-builder/composables/useLayout.js +0 -60
  577. package/components/ui/flow-builder/composables/useProcessNodeLogic.js +0 -55
  578. package/components/ui/flow-builder/composables/useRunProcess.js +0 -267
  579. package/components/ui/flow-builder/index.ts +0 -5
  580. package/components/ui/flow-builder/types.ts +0 -7
  581. package/components/ui/form/FormControl.vue +0 -17
  582. package/components/ui/form/FormDescription.vue +0 -21
  583. package/components/ui/form/FormItem.vue +0 -22
  584. package/components/ui/form/FormLabel.vue +0 -25
  585. package/components/ui/form/FormMessage.vue +0 -22
  586. package/components/ui/form/index.ts +0 -7
  587. package/components/ui/form/injectionKeys.ts +0 -4
  588. package/components/ui/form/useFormField.ts +0 -30
  589. package/components/ui/form-builder/FormBuilder.vue +0 -45
  590. package/components/ui/form-builder/FormBuilderSelect.vue +0 -42
  591. package/components/ui/form-builder/FormDisplayer.vue +0 -39
  592. package/components/ui/form-builder/components/AdminElementEditor.vue +0 -48
  593. package/components/ui/form-builder/components/AdminToolbar.vue +0 -60
  594. package/components/ui/form-builder/components/AdminToolbarView.vue +0 -19
  595. package/components/ui/form-builder/components/CustomDashboard.vue +0 -312
  596. package/components/ui/form-builder/components/FormBuilderWrapper.vue +0 -333
  597. package/components/ui/form-builder/components/admin/Transformer.vue +0 -25
  598. package/components/ui/form-builder/components/admin/element-setting-views/Button.vue +0 -30
  599. package/components/ui/form-builder/components/admin/element-setting-views/Checkbox.vue +0 -23
  600. package/components/ui/form-builder/components/admin/element-setting-views/Label.vue +0 -13
  601. package/components/ui/form-builder/components/admin/element-setting-views/Radios.vue +0 -85
  602. package/components/ui/form-builder/components/admin/element-setting-views/Scanner.vue +0 -15
  603. package/components/ui/form-builder/components/admin/element-setting-views/Select.vue +0 -75
  604. package/components/ui/form-builder/components/admin/element-setting-views/Text.vue +0 -13
  605. package/components/ui/form-builder/components/admin/element-setting-views/Textarea.vue +0 -20
  606. package/components/ui/form-builder/components/admin/element-setting-views/Textfield.vue +0 -20
  607. package/components/ui/form-builder/components/admin/element-setting-views/index.ts +0 -21
  608. package/components/ui/form-builder/components/admin/setting-views/ApiActionsView.vue +0 -111
  609. package/components/ui/form-builder/components/admin/setting-views/NewElementView.vue +0 -200
  610. package/components/ui/form-builder/components/admin/setting-views/VariablesView.vue +0 -19
  611. package/components/ui/form-builder/components/admin/setting-views/new-element-view/DraggableElement.vue +0 -107
  612. package/components/ui/form-builder/components/admin/setting-views/variables-view/ApiActionVariables.vue +0 -27
  613. package/components/ui/form-builder/components/admin/setting-views/variables-view/RouteQueryParams.vue +0 -47
  614. package/components/ui/form-builder/components/admin/setting-views/variables-view/Transformers.vue +0 -61
  615. package/components/ui/form-builder/components/admin/setting-views/variables-view/Variables.vue +0 -74
  616. package/components/ui/form-builder/components/elements/button/Button.vue +0 -60
  617. package/components/ui/form-builder/components/elements/button/index.ts +0 -1
  618. package/components/ui/form-builder/components/elements/checkbox/Checkbox.vue +0 -40
  619. package/components/ui/form-builder/components/elements/checkbox/index.ts +0 -1
  620. package/components/ui/form-builder/components/elements/file/File.vue +0 -6
  621. package/components/ui/form-builder/components/elements/file/index.ts +0 -1
  622. package/components/ui/form-builder/components/elements/images/Images.vue +0 -28
  623. package/components/ui/form-builder/components/elements/images/index.ts +0 -1
  624. package/components/ui/form-builder/components/elements/index.ts +0 -31
  625. package/components/ui/form-builder/components/elements/items/Items.vue +0 -6
  626. package/components/ui/form-builder/components/elements/items/index.ts +0 -1
  627. package/components/ui/form-builder/components/elements/label/Label.vue +0 -20
  628. package/components/ui/form-builder/components/elements/label/index.ts +0 -1
  629. package/components/ui/form-builder/components/elements/location/Location.vue +0 -6
  630. package/components/ui/form-builder/components/elements/location/index.ts +0 -1
  631. package/components/ui/form-builder/components/elements/radios/Radios.vue +0 -42
  632. package/components/ui/form-builder/components/elements/radios/index.ts +0 -1
  633. package/components/ui/form-builder/components/elements/richtext/Richtext.vue +0 -6
  634. package/components/ui/form-builder/components/elements/richtext/index.ts +0 -1
  635. package/components/ui/form-builder/components/elements/scanner/Scanner.vue +0 -173
  636. package/components/ui/form-builder/components/elements/scanner/index.ts +0 -1
  637. package/components/ui/form-builder/components/elements/select/Select.vue +0 -49
  638. package/components/ui/form-builder/components/elements/select/index.ts +0 -1
  639. package/components/ui/form-builder/components/elements/text/Text.vue +0 -20
  640. package/components/ui/form-builder/components/elements/text/index.ts +0 -1
  641. package/components/ui/form-builder/components/elements/textarea/Textarea.vue +0 -30
  642. package/components/ui/form-builder/components/elements/textarea/index.ts +0 -1
  643. package/components/ui/form-builder/components/elements/textfield/Textfield.vue +0 -30
  644. package/components/ui/form-builder/components/elements/textfield/index.ts +0 -1
  645. package/components/ui/form-builder/index.ts +0 -3
  646. package/components/ui/input/Input.vue +0 -33
  647. package/components/ui/input/index.ts +0 -1
  648. package/components/ui/integration-action-builder/IntegrationActionBuilder.vue +0 -193
  649. package/components/ui/integration-action-builder/InterpolationField.vue +0 -29
  650. package/components/ui/integration-action-builder/index.ts +0 -1
  651. package/components/ui/integration-action-builder/integrations/firebase/AddDocument.vue +0 -43
  652. package/components/ui/integration-action-builder/integrations/firebase/DeleteDocument.vue +0 -6
  653. package/components/ui/integration-action-builder/integrations/firebase/GetCollections.vue +0 -6
  654. package/components/ui/integration-action-builder/integrations/firebase/GetDocumentById.vue +0 -6
  655. package/components/ui/integration-action-builder/integrations/firebase/QueryCollectionGroup.vue +0 -6
  656. package/components/ui/integration-action-builder/integrations/firebase/QueryFirestore.vue +0 -165
  657. package/components/ui/integration-action-builder/integrations/firebase/UpdateDocument.vue +0 -6
  658. package/components/ui/integration-action-builder/integrations/firebase/index.ts +0 -204
  659. package/components/ui/integration-action-builder/integrations/index.ts +0 -9
  660. package/components/ui/integration-action-builder/integrations/openai/AddDocument.vue +0 -43
  661. package/components/ui/integration-action-builder/integrations/openai/GenerateText.vue +0 -40
  662. package/components/ui/integration-action-builder/integrations/openai/components/ModelSelector.vue +0 -75
  663. package/components/ui/integration-action-builder/integrations/openai/index.ts +0 -116
  664. package/components/ui/integration-action-builder/integrations/twilio/MakeCall.vue +0 -40
  665. package/components/ui/integration-action-builder/integrations/twilio/SendSMS.vue +0 -39
  666. package/components/ui/integration-action-builder/integrations/twilio/components/ModelSelector.vue +0 -75
  667. package/components/ui/integration-action-builder/integrations/twilio/index.ts +0 -68
  668. package/components/ui/integration-icon/IntegrationIcon.vue +0 -18
  669. package/components/ui/integration-icon/index.ts +0 -1
  670. package/components/ui/label/Label.vue +0 -28
  671. package/components/ui/label/index.ts +0 -1
  672. package/components/ui/lucide-icon-selector/LucideIconPicker.vue +0 -34
  673. package/components/ui/lucide-icon-selector/LucideIconSelector.vue +0 -55
  674. package/components/ui/lucide-icon-selector/index.ts +0 -2
  675. package/components/ui/media-picker/MediaPicker.vue +0 -40
  676. package/components/ui/media-picker/MediaPickerDialog.vue +0 -306
  677. package/components/ui/media-picker/MediaPickerItems.vue +0 -342
  678. package/components/ui/media-picker/index.ts +0 -2
  679. package/components/ui/media-picker/media-picker-dialog/Dropzone.vue +0 -104
  680. package/components/ui/media-picker/media-picker-dialog/FileItem.vue +0 -108
  681. package/components/ui/media-picker/media-picker-dialog/Filters.vue +0 -78
  682. package/components/ui/menubar/Menubar.vue +0 -36
  683. package/components/ui/menubar/MenubarCheckboxItem.vue +0 -41
  684. package/components/ui/menubar/MenubarContent.vue +0 -44
  685. package/components/ui/menubar/MenubarGroup.vue +0 -14
  686. package/components/ui/menubar/MenubarItem.vue +0 -37
  687. package/components/ui/menubar/MenubarLabel.vue +0 -19
  688. package/components/ui/menubar/MenubarMenu.vue +0 -14
  689. package/components/ui/menubar/MenubarRadioGroup.vue +0 -22
  690. package/components/ui/menubar/MenubarRadioItem.vue +0 -41
  691. package/components/ui/menubar/MenubarSeparator.vue +0 -23
  692. package/components/ui/menubar/MenubarShortcut.vue +0 -17
  693. package/components/ui/menubar/MenubarSub.vue +0 -22
  694. package/components/ui/menubar/MenubarSubContent.vue +0 -39
  695. package/components/ui/menubar/MenubarSubTrigger.vue +0 -27
  696. package/components/ui/menubar/MenubarTrigger.vue +0 -30
  697. package/components/ui/menubar/index.ts +0 -15
  698. package/components/ui/number-field/NumberField.vue +0 -23
  699. package/components/ui/number-field/NumberFieldContent.vue +0 -14
  700. package/components/ui/number-field/NumberFieldDecrement.vue +0 -25
  701. package/components/ui/number-field/NumberFieldIncrement.vue +0 -25
  702. package/components/ui/number-field/NumberFieldInput.vue +0 -16
  703. package/components/ui/number-field/index.ts +0 -5
  704. package/components/ui/pagination/PaginationEllipsis.vue +0 -22
  705. package/components/ui/pagination/PaginationFirst.vue +0 -29
  706. package/components/ui/pagination/PaginationLast.vue +0 -29
  707. package/components/ui/pagination/PaginationNext.vue +0 -29
  708. package/components/ui/pagination/PaginationPrev.vue +0 -29
  709. package/components/ui/pagination/index.ts +0 -10
  710. package/components/ui/popover/Popover.vue +0 -18
  711. package/components/ui/popover/PopoverAnchor.vue +0 -15
  712. package/components/ui/popover/PopoverContent.vue +0 -49
  713. package/components/ui/popover/PopoverTrigger.vue +0 -14
  714. package/components/ui/popover/index.ts +0 -4
  715. package/components/ui/query-builder-dialog/QueryBuilderDialog.vue +0 -389
  716. package/components/ui/query-builder-dialog/index.ts +0 -1
  717. package/components/ui/radio-group/RadioGroup.vue +0 -30
  718. package/components/ui/radio-group/RadioGroupItem.vue +0 -43
  719. package/components/ui/radio-group/index.ts +0 -2
  720. package/components/ui/range-calendar/RangeCalendar.vue +0 -57
  721. package/components/ui/range-calendar/RangeCalendarCell.vue +0 -21
  722. package/components/ui/range-calendar/RangeCalendarCellTrigger.vue +0 -37
  723. package/components/ui/range-calendar/RangeCalendarGrid.vue +0 -21
  724. package/components/ui/range-calendar/RangeCalendarGridBody.vue +0 -11
  725. package/components/ui/range-calendar/RangeCalendarGridHead.vue +0 -11
  726. package/components/ui/range-calendar/RangeCalendarGridRow.vue +0 -18
  727. package/components/ui/range-calendar/RangeCalendarHeadCell.vue +0 -18
  728. package/components/ui/range-calendar/RangeCalendarHeader.vue +0 -18
  729. package/components/ui/range-calendar/RangeCalendarHeading.vue +0 -28
  730. package/components/ui/range-calendar/RangeCalendarNextButton.vue +0 -29
  731. package/components/ui/range-calendar/RangeCalendarPrevButton.vue +0 -29
  732. package/components/ui/range-calendar/index.ts +0 -12
  733. package/components/ui/resizable/ResizableHandle.vue +0 -27
  734. package/components/ui/resizable/ResizablePanel.vue +0 -18
  735. package/components/ui/resizable/ResizablePanelGroup.vue +0 -25
  736. package/components/ui/resizable/index.ts +0 -3
  737. package/components/ui/ripple-button/RippleButton.vue +0 -97
  738. package/components/ui/ripple-button/index.ts +0 -1
  739. package/components/ui/sandbox/Sandbox.vue +0 -35
  740. package/components/ui/sandbox/index.ts +0 -1
  741. package/components/ui/scroll-area/ScrollArea.vue +0 -36
  742. package/components/ui/scroll-area/ScrollBar.vue +0 -34
  743. package/components/ui/scroll-area/index.ts +0 -2
  744. package/components/ui/segmented-control/SegmentedControl.vue +0 -121
  745. package/components/ui/segmented-control/SegmentedControlButton.vue +0 -64
  746. package/components/ui/segmented-control/index.ts +0 -2
  747. package/components/ui/select/Select.vue +0 -18
  748. package/components/ui/select/SelectContent.vue +0 -55
  749. package/components/ui/select/SelectGroup.vue +0 -14
  750. package/components/ui/select/SelectItem.vue +0 -45
  751. package/components/ui/select/SelectItemText.vue +0 -14
  752. package/components/ui/select/SelectLabel.vue +0 -16
  753. package/components/ui/select/SelectScrollDownButton.vue +0 -28
  754. package/components/ui/select/SelectScrollUpButton.vue +0 -28
  755. package/components/ui/select/SelectSeparator.vue +0 -21
  756. package/components/ui/select/SelectTrigger.vue +0 -32
  757. package/components/ui/select/SelectValue.vue +0 -15
  758. package/components/ui/select/index.ts +0 -11
  759. package/components/ui/separator/Separator.vue +0 -28
  760. package/components/ui/separator/index.ts +0 -1
  761. package/components/ui/sheet/Sheet.vue +0 -17
  762. package/components/ui/sheet/SheetClose.vue +0 -14
  763. package/components/ui/sheet/SheetContent.vue +0 -65
  764. package/components/ui/sheet/SheetDescription.vue +0 -20
  765. package/components/ui/sheet/SheetFooter.vue +0 -16
  766. package/components/ui/sheet/SheetHeader.vue +0 -15
  767. package/components/ui/sheet/SheetOverlay.vue +0 -24
  768. package/components/ui/sheet/SheetTitle.vue +0 -20
  769. package/components/ui/sheet/SheetTrigger.vue +0 -14
  770. package/components/ui/sheet/index.ts +0 -8
  771. package/components/ui/sidebar/Sidebar.vue +0 -96
  772. package/components/ui/sidebar/SidebarContent.vue +0 -18
  773. package/components/ui/sidebar/SidebarFooter.vue +0 -18
  774. package/components/ui/sidebar/SidebarGroup.vue +0 -18
  775. package/components/ui/sidebar/SidebarGroupAction.vue +0 -27
  776. package/components/ui/sidebar/SidebarGroupContent.vue +0 -18
  777. package/components/ui/sidebar/SidebarGroupLabel.vue +0 -25
  778. package/components/ui/sidebar/SidebarHeader.vue +0 -18
  779. package/components/ui/sidebar/SidebarInput.vue +0 -22
  780. package/components/ui/sidebar/SidebarInset.vue +0 -21
  781. package/components/ui/sidebar/SidebarMenu.vue +0 -18
  782. package/components/ui/sidebar/SidebarMenuAction.vue +0 -34
  783. package/components/ui/sidebar/SidebarMenuBadge.vue +0 -26
  784. package/components/ui/sidebar/SidebarMenuButton.vue +0 -49
  785. package/components/ui/sidebar/SidebarMenuButtonChild.vue +0 -34
  786. package/components/ui/sidebar/SidebarMenuItem.vue +0 -18
  787. package/components/ui/sidebar/SidebarMenuSkeleton.vue +0 -34
  788. package/components/ui/sidebar/SidebarMenuSub.vue +0 -22
  789. package/components/ui/sidebar/SidebarMenuSubButton.vue +0 -36
  790. package/components/ui/sidebar/SidebarMenuSubItem.vue +0 -18
  791. package/components/ui/sidebar/SidebarProvider.vue +0 -81
  792. package/components/ui/sidebar/SidebarRail.vue +0 -33
  793. package/components/ui/sidebar/SidebarSeparator.vue +0 -19
  794. package/components/ui/sidebar/SidebarTrigger.vue +0 -27
  795. package/components/ui/sidebar/index.ts +0 -60
  796. package/components/ui/sidebar/utils.ts +0 -19
  797. package/components/ui/skeleton/Skeleton.vue +0 -17
  798. package/components/ui/skeleton/index.ts +0 -1
  799. package/components/ui/sonner/Sonner.vue +0 -18
  800. package/components/ui/sonner/index.ts +0 -1
  801. package/components/ui/spring-calendar/SpringCalendar.vue +0 -110
  802. package/components/ui/spring-calendar/TextMorph.vue +0 -160
  803. package/components/ui/spring-calendar/index.ts +0 -2
  804. package/components/ui/switch/Switch.vue +0 -41
  805. package/components/ui/switch/index.ts +0 -1
  806. package/components/ui/table/Table.vue +0 -16
  807. package/components/ui/table/TableBody.vue +0 -17
  808. package/components/ui/table/TableCaption.vue +0 -17
  809. package/components/ui/table/TableCell.vue +0 -22
  810. package/components/ui/table/TableEmpty.vue +0 -37
  811. package/components/ui/table/TableFooter.vue +0 -17
  812. package/components/ui/table/TableHead.vue +0 -17
  813. package/components/ui/table/TableHeader.vue +0 -17
  814. package/components/ui/table/TableRow.vue +0 -17
  815. package/components/ui/table/index.ts +0 -9
  816. package/components/ui/table/utils.ts +0 -9
  817. package/components/ui/tabs/Tabs.vue +0 -15
  818. package/components/ui/tabs/TabsContent.vue +0 -22
  819. package/components/ui/tabs/TabsList.vue +0 -25
  820. package/components/ui/tabs/TabsTrigger.vue +0 -29
  821. package/components/ui/tabs/index.ts +0 -4
  822. package/components/ui/tailwind-color-picker/TailwindColorPicker.vue +0 -58
  823. package/components/ui/tailwind-color-picker/index.ts +0 -1
  824. package/components/ui/textarea/Textarea.vue +0 -28
  825. package/components/ui/textarea/index.ts +0 -1
  826. package/components/ui/toggle/Toggle.vue +0 -32
  827. package/components/ui/toggle/index.ts +0 -27
  828. package/components/ui/tooltip/Tooltip.vue +0 -17
  829. package/components/ui/tooltip/TooltipContent.vue +0 -33
  830. package/components/ui/tooltip/TooltipProvider.vue +0 -13
  831. package/components/ui/tooltip/TooltipTrigger.vue +0 -14
  832. package/components/ui/tooltip/index.ts +0 -4
  833. package/composables/useCms.ts +0 -11
  834. package/index.ts +0 -10
  835. package/lib/interpolation.ts +0 -77
  836. package/lib/utils.ts +0 -24
  837. package/styles/components/code-editor.css +0 -52
  838. package/styles/components/flow-builder.css +0 -159
  839. package/styles/index.css +0 -2
  840. package/tsconfig.json +0 -19
  841. package/types/index.ts +0 -41
  842. package/vite.config.ts +0 -25
@@ -0,0 +1,4319 @@
1
+ var __create$1 = Object.create;
2
+ var __defProp$1 = Object.defineProperty;
3
+ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames$1 = Object.getOwnPropertyNames;
5
+ var __getProtoOf$1 = Object.getPrototypeOf;
6
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
7
+ var __esm$1 = (fn, res) => function __init() {
8
+ return fn && (res = (0, fn[__getOwnPropNames$1(fn)[0]])(fn = 0)), res;
9
+ };
10
+ var __commonJS$1 = (cb, mod) => function __require() {
11
+ return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+ var __copyProps$1 = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames$1(from))
16
+ if (!__hasOwnProp$1.call(to, key) && key !== except)
17
+ __defProp$1(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$1(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM$1 = (mod, isNodeMode, target2) => (target2 = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ __defProp$1(target2, "default", { value: mod, enumerable: true }),
27
+ mod
28
+ ));
29
+ var init_esm_shims$1 = __esm$1({
30
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
31
+ }
32
+ });
33
+ var require_rfdc = __commonJS$1({
34
+ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
35
+ init_esm_shims$1();
36
+ module.exports = rfdc2;
37
+ function copyBuffer(cur) {
38
+ if (cur instanceof Buffer) {
39
+ return Buffer.from(cur);
40
+ }
41
+ return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
42
+ }
43
+ function rfdc2(opts) {
44
+ opts = opts || {};
45
+ if (opts.circles) return rfdcCircles(opts);
46
+ const constructorHandlers = /* @__PURE__ */ new Map();
47
+ constructorHandlers.set(Date, (o) => new Date(o));
48
+ constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
49
+ constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
50
+ if (opts.constructorHandlers) {
51
+ for (const handler2 of opts.constructorHandlers) {
52
+ constructorHandlers.set(handler2[0], handler2[1]);
53
+ }
54
+ }
55
+ let handler = null;
56
+ return opts.proto ? cloneProto : clone;
57
+ function cloneArray(a, fn) {
58
+ const keys = Object.keys(a);
59
+ const a2 = new Array(keys.length);
60
+ for (let i = 0; i < keys.length; i++) {
61
+ const k = keys[i];
62
+ const cur = a[k];
63
+ if (typeof cur !== "object" || cur === null) {
64
+ a2[k] = cur;
65
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
66
+ a2[k] = handler(cur, fn);
67
+ } else if (ArrayBuffer.isView(cur)) {
68
+ a2[k] = copyBuffer(cur);
69
+ } else {
70
+ a2[k] = fn(cur);
71
+ }
72
+ }
73
+ return a2;
74
+ }
75
+ function clone(o) {
76
+ if (typeof o !== "object" || o === null) return o;
77
+ if (Array.isArray(o)) return cloneArray(o, clone);
78
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
79
+ return handler(o, clone);
80
+ }
81
+ const o2 = {};
82
+ for (const k in o) {
83
+ if (Object.hasOwnProperty.call(o, k) === false) continue;
84
+ const cur = o[k];
85
+ if (typeof cur !== "object" || cur === null) {
86
+ o2[k] = cur;
87
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
88
+ o2[k] = handler(cur, clone);
89
+ } else if (ArrayBuffer.isView(cur)) {
90
+ o2[k] = copyBuffer(cur);
91
+ } else {
92
+ o2[k] = clone(cur);
93
+ }
94
+ }
95
+ return o2;
96
+ }
97
+ function cloneProto(o) {
98
+ if (typeof o !== "object" || o === null) return o;
99
+ if (Array.isArray(o)) return cloneArray(o, cloneProto);
100
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
101
+ return handler(o, cloneProto);
102
+ }
103
+ const o2 = {};
104
+ for (const k in o) {
105
+ const cur = o[k];
106
+ if (typeof cur !== "object" || cur === null) {
107
+ o2[k] = cur;
108
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
109
+ o2[k] = handler(cur, cloneProto);
110
+ } else if (ArrayBuffer.isView(cur)) {
111
+ o2[k] = copyBuffer(cur);
112
+ } else {
113
+ o2[k] = cloneProto(cur);
114
+ }
115
+ }
116
+ return o2;
117
+ }
118
+ }
119
+ function rfdcCircles(opts) {
120
+ const refs = [];
121
+ const refsNew = [];
122
+ const constructorHandlers = /* @__PURE__ */ new Map();
123
+ constructorHandlers.set(Date, (o) => new Date(o));
124
+ constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
125
+ constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
126
+ if (opts.constructorHandlers) {
127
+ for (const handler2 of opts.constructorHandlers) {
128
+ constructorHandlers.set(handler2[0], handler2[1]);
129
+ }
130
+ }
131
+ let handler = null;
132
+ return opts.proto ? cloneProto : clone;
133
+ function cloneArray(a, fn) {
134
+ const keys = Object.keys(a);
135
+ const a2 = new Array(keys.length);
136
+ for (let i = 0; i < keys.length; i++) {
137
+ const k = keys[i];
138
+ const cur = a[k];
139
+ if (typeof cur !== "object" || cur === null) {
140
+ a2[k] = cur;
141
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
142
+ a2[k] = handler(cur, fn);
143
+ } else if (ArrayBuffer.isView(cur)) {
144
+ a2[k] = copyBuffer(cur);
145
+ } else {
146
+ const index = refs.indexOf(cur);
147
+ if (index !== -1) {
148
+ a2[k] = refsNew[index];
149
+ } else {
150
+ a2[k] = fn(cur);
151
+ }
152
+ }
153
+ }
154
+ return a2;
155
+ }
156
+ function clone(o) {
157
+ if (typeof o !== "object" || o === null) return o;
158
+ if (Array.isArray(o)) return cloneArray(o, clone);
159
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
160
+ return handler(o, clone);
161
+ }
162
+ const o2 = {};
163
+ refs.push(o);
164
+ refsNew.push(o2);
165
+ for (const k in o) {
166
+ if (Object.hasOwnProperty.call(o, k) === false) continue;
167
+ const cur = o[k];
168
+ if (typeof cur !== "object" || cur === null) {
169
+ o2[k] = cur;
170
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
171
+ o2[k] = handler(cur, clone);
172
+ } else if (ArrayBuffer.isView(cur)) {
173
+ o2[k] = copyBuffer(cur);
174
+ } else {
175
+ const i = refs.indexOf(cur);
176
+ if (i !== -1) {
177
+ o2[k] = refsNew[i];
178
+ } else {
179
+ o2[k] = clone(cur);
180
+ }
181
+ }
182
+ }
183
+ refs.pop();
184
+ refsNew.pop();
185
+ return o2;
186
+ }
187
+ function cloneProto(o) {
188
+ if (typeof o !== "object" || o === null) return o;
189
+ if (Array.isArray(o)) return cloneArray(o, cloneProto);
190
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
191
+ return handler(o, cloneProto);
192
+ }
193
+ const o2 = {};
194
+ refs.push(o);
195
+ refsNew.push(o2);
196
+ for (const k in o) {
197
+ const cur = o[k];
198
+ if (typeof cur !== "object" || cur === null) {
199
+ o2[k] = cur;
200
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
201
+ o2[k] = handler(cur, cloneProto);
202
+ } else if (ArrayBuffer.isView(cur)) {
203
+ o2[k] = copyBuffer(cur);
204
+ } else {
205
+ const i = refs.indexOf(cur);
206
+ if (i !== -1) {
207
+ o2[k] = refsNew[i];
208
+ } else {
209
+ o2[k] = cloneProto(cur);
210
+ }
211
+ }
212
+ }
213
+ refs.pop();
214
+ refsNew.pop();
215
+ return o2;
216
+ }
217
+ }
218
+ }
219
+ });
220
+ init_esm_shims$1();
221
+ init_esm_shims$1();
222
+ init_esm_shims$1();
223
+ var isBrowser = typeof navigator !== "undefined";
224
+ var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
225
+ typeof target.chrome !== "undefined" && !!target.chrome.devtools;
226
+ isBrowser && target.self !== target.top;
227
+ var _a$1;
228
+ typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
229
+ init_esm_shims$1();
230
+ var import_rfdc = __toESM$1(require_rfdc());
231
+ var classifyRE = /(?:^|[-_/])(\w)/g;
232
+ function toUpper(_, c) {
233
+ return c ? c.toUpperCase() : "";
234
+ }
235
+ function classify(str) {
236
+ return str && `${str}`.replace(classifyRE, toUpper);
237
+ }
238
+ function basename(filename, ext) {
239
+ let normalizedFilename = filename.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
240
+ if (normalizedFilename.endsWith(`index${ext}`)) {
241
+ normalizedFilename = normalizedFilename.replace(`/index${ext}`, ext);
242
+ }
243
+ const lastSlashIndex = normalizedFilename.lastIndexOf("/");
244
+ const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
245
+ {
246
+ const extIndex = baseNameWithExt.lastIndexOf(ext);
247
+ return baseNameWithExt.substring(0, extIndex);
248
+ }
249
+ }
250
+ var deepClone = (0, import_rfdc.default)({ circles: true });
251
+ const DEBOUNCE_DEFAULTS = {
252
+ trailing: true
253
+ };
254
+ function debounce(fn, wait = 25, options = {}) {
255
+ options = { ...DEBOUNCE_DEFAULTS, ...options };
256
+ if (!Number.isFinite(wait)) {
257
+ throw new TypeError("Expected `wait` to be a finite number");
258
+ }
259
+ let leadingValue;
260
+ let timeout;
261
+ let resolveList = [];
262
+ let currentPromise;
263
+ let trailingArgs;
264
+ const applyFn = (_this, args) => {
265
+ currentPromise = _applyPromised(fn, _this, args);
266
+ currentPromise.finally(() => {
267
+ currentPromise = null;
268
+ if (options.trailing && trailingArgs && !timeout) {
269
+ const promise = applyFn(_this, trailingArgs);
270
+ trailingArgs = null;
271
+ return promise;
272
+ }
273
+ });
274
+ return currentPromise;
275
+ };
276
+ return function(...args) {
277
+ if (currentPromise) {
278
+ if (options.trailing) {
279
+ trailingArgs = args;
280
+ }
281
+ return currentPromise;
282
+ }
283
+ return new Promise((resolve) => {
284
+ const shouldCallNow = !timeout && options.leading;
285
+ clearTimeout(timeout);
286
+ timeout = setTimeout(() => {
287
+ timeout = null;
288
+ const promise = options.leading ? leadingValue : applyFn(this, args);
289
+ for (const _resolve of resolveList) {
290
+ _resolve(promise);
291
+ }
292
+ resolveList = [];
293
+ }, wait);
294
+ if (shouldCallNow) {
295
+ leadingValue = applyFn(this, args);
296
+ resolve(leadingValue);
297
+ } else {
298
+ resolveList.push(resolve);
299
+ }
300
+ });
301
+ };
302
+ }
303
+ async function _applyPromised(fn, _this, args) {
304
+ return await fn.apply(_this, args);
305
+ }
306
+ function flatHooks(configHooks, hooks2 = {}, parentName) {
307
+ for (const key in configHooks) {
308
+ const subHook = configHooks[key];
309
+ const name = parentName ? `${parentName}:${key}` : key;
310
+ if (typeof subHook === "object" && subHook !== null) {
311
+ flatHooks(subHook, hooks2, name);
312
+ } else if (typeof subHook === "function") {
313
+ hooks2[name] = subHook;
314
+ }
315
+ }
316
+ return hooks2;
317
+ }
318
+ const defaultTask = { run: (function_) => function_() };
319
+ const _createTask = () => defaultTask;
320
+ const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
321
+ function serialTaskCaller(hooks2, args) {
322
+ const name = args.shift();
323
+ const task = createTask(name);
324
+ return hooks2.reduce(
325
+ (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
326
+ Promise.resolve()
327
+ );
328
+ }
329
+ function parallelTaskCaller(hooks2, args) {
330
+ const name = args.shift();
331
+ const task = createTask(name);
332
+ return Promise.all(hooks2.map((hook2) => task.run(() => hook2(...args))));
333
+ }
334
+ function callEachWith(callbacks, arg0) {
335
+ for (const callback of [...callbacks]) {
336
+ callback(arg0);
337
+ }
338
+ }
339
+ class Hookable {
340
+ constructor() {
341
+ this._hooks = {};
342
+ this._before = void 0;
343
+ this._after = void 0;
344
+ this._deprecatedMessages = void 0;
345
+ this._deprecatedHooks = {};
346
+ this.hook = this.hook.bind(this);
347
+ this.callHook = this.callHook.bind(this);
348
+ this.callHookWith = this.callHookWith.bind(this);
349
+ }
350
+ hook(name, function_, options = {}) {
351
+ if (!name || typeof function_ !== "function") {
352
+ return () => {
353
+ };
354
+ }
355
+ const originalName = name;
356
+ let dep;
357
+ while (this._deprecatedHooks[name]) {
358
+ dep = this._deprecatedHooks[name];
359
+ name = dep.to;
360
+ }
361
+ if (dep && !options.allowDeprecated) {
362
+ let message = dep.message;
363
+ if (!message) {
364
+ message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
365
+ }
366
+ if (!this._deprecatedMessages) {
367
+ this._deprecatedMessages = /* @__PURE__ */ new Set();
368
+ }
369
+ if (!this._deprecatedMessages.has(message)) {
370
+ console.warn(message);
371
+ this._deprecatedMessages.add(message);
372
+ }
373
+ }
374
+ if (!function_.name) {
375
+ try {
376
+ Object.defineProperty(function_, "name", {
377
+ get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
378
+ configurable: true
379
+ });
380
+ } catch {
381
+ }
382
+ }
383
+ this._hooks[name] = this._hooks[name] || [];
384
+ this._hooks[name].push(function_);
385
+ return () => {
386
+ if (function_) {
387
+ this.removeHook(name, function_);
388
+ function_ = void 0;
389
+ }
390
+ };
391
+ }
392
+ hookOnce(name, function_) {
393
+ let _unreg;
394
+ let _function = (...arguments_) => {
395
+ if (typeof _unreg === "function") {
396
+ _unreg();
397
+ }
398
+ _unreg = void 0;
399
+ _function = void 0;
400
+ return function_(...arguments_);
401
+ };
402
+ _unreg = this.hook(name, _function);
403
+ return _unreg;
404
+ }
405
+ removeHook(name, function_) {
406
+ if (this._hooks[name]) {
407
+ const index = this._hooks[name].indexOf(function_);
408
+ if (index !== -1) {
409
+ this._hooks[name].splice(index, 1);
410
+ }
411
+ if (this._hooks[name].length === 0) {
412
+ delete this._hooks[name];
413
+ }
414
+ }
415
+ }
416
+ deprecateHook(name, deprecated) {
417
+ this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
418
+ const _hooks = this._hooks[name] || [];
419
+ delete this._hooks[name];
420
+ for (const hook2 of _hooks) {
421
+ this.hook(name, hook2);
422
+ }
423
+ }
424
+ deprecateHooks(deprecatedHooks) {
425
+ Object.assign(this._deprecatedHooks, deprecatedHooks);
426
+ for (const name in deprecatedHooks) {
427
+ this.deprecateHook(name, deprecatedHooks[name]);
428
+ }
429
+ }
430
+ addHooks(configHooks) {
431
+ const hooks2 = flatHooks(configHooks);
432
+ const removeFns = Object.keys(hooks2).map(
433
+ (key) => this.hook(key, hooks2[key])
434
+ );
435
+ return () => {
436
+ for (const unreg of removeFns.splice(0, removeFns.length)) {
437
+ unreg();
438
+ }
439
+ };
440
+ }
441
+ removeHooks(configHooks) {
442
+ const hooks2 = flatHooks(configHooks);
443
+ for (const key in hooks2) {
444
+ this.removeHook(key, hooks2[key]);
445
+ }
446
+ }
447
+ removeAllHooks() {
448
+ for (const key in this._hooks) {
449
+ delete this._hooks[key];
450
+ }
451
+ }
452
+ callHook(name, ...arguments_) {
453
+ arguments_.unshift(name);
454
+ return this.callHookWith(serialTaskCaller, name, ...arguments_);
455
+ }
456
+ callHookParallel(name, ...arguments_) {
457
+ arguments_.unshift(name);
458
+ return this.callHookWith(parallelTaskCaller, name, ...arguments_);
459
+ }
460
+ callHookWith(caller, name, ...arguments_) {
461
+ const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
462
+ if (this._before) {
463
+ callEachWith(this._before, event);
464
+ }
465
+ const result = caller(
466
+ name in this._hooks ? [...this._hooks[name]] : [],
467
+ arguments_
468
+ );
469
+ if (result instanceof Promise) {
470
+ return result.finally(() => {
471
+ if (this._after && event) {
472
+ callEachWith(this._after, event);
473
+ }
474
+ });
475
+ }
476
+ if (this._after && event) {
477
+ callEachWith(this._after, event);
478
+ }
479
+ return result;
480
+ }
481
+ beforeEach(function_) {
482
+ this._before = this._before || [];
483
+ this._before.push(function_);
484
+ return () => {
485
+ if (this._before !== void 0) {
486
+ const index = this._before.indexOf(function_);
487
+ if (index !== -1) {
488
+ this._before.splice(index, 1);
489
+ }
490
+ }
491
+ };
492
+ }
493
+ afterEach(function_) {
494
+ this._after = this._after || [];
495
+ this._after.push(function_);
496
+ return () => {
497
+ if (this._after !== void 0) {
498
+ const index = this._after.indexOf(function_);
499
+ if (index !== -1) {
500
+ this._after.splice(index, 1);
501
+ }
502
+ }
503
+ };
504
+ }
505
+ }
506
+ function createHooks() {
507
+ return new Hookable();
508
+ }
509
+ var __create = Object.create;
510
+ var __defProp = Object.defineProperty;
511
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
512
+ var __getOwnPropNames = Object.getOwnPropertyNames;
513
+ var __getProtoOf = Object.getPrototypeOf;
514
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
515
+ var __esm = (fn, res) => function __init() {
516
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
517
+ };
518
+ var __commonJS = (cb, mod) => function __require() {
519
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
520
+ };
521
+ var __copyProps = (to, from, except, desc) => {
522
+ if (from && typeof from === "object" || typeof from === "function") {
523
+ for (let key of __getOwnPropNames(from))
524
+ if (!__hasOwnProp.call(to, key) && key !== except)
525
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
526
+ }
527
+ return to;
528
+ };
529
+ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
530
+ // If the importer is in node compatibility mode or this is not an ESM
531
+ // file that has been converted to a CommonJS file using a Babel-
532
+ // compatible transform (i.e. "__esModule" has not been set), then set
533
+ // "default" to the CommonJS "module.exports" for node compatibility.
534
+ __defProp(target22, "default", { value: mod, enumerable: true }),
535
+ mod
536
+ ));
537
+ var init_esm_shims = __esm({
538
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
539
+ }
540
+ });
541
+ var require_speakingurl = __commonJS({
542
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(exports, module) {
543
+ init_esm_shims();
544
+ (function(root) {
545
+ var charMap = {
546
+ // latin
547
+ "À": "A",
548
+ "Á": "A",
549
+ "Â": "A",
550
+ "Ã": "A",
551
+ "Ä": "Ae",
552
+ "Å": "A",
553
+ "Æ": "AE",
554
+ "Ç": "C",
555
+ "È": "E",
556
+ "É": "E",
557
+ "Ê": "E",
558
+ "Ë": "E",
559
+ "Ì": "I",
560
+ "Í": "I",
561
+ "Î": "I",
562
+ "Ï": "I",
563
+ "Ð": "D",
564
+ "Ñ": "N",
565
+ "Ò": "O",
566
+ "Ó": "O",
567
+ "Ô": "O",
568
+ "Õ": "O",
569
+ "Ö": "Oe",
570
+ "Ő": "O",
571
+ "Ø": "O",
572
+ "Ù": "U",
573
+ "Ú": "U",
574
+ "Û": "U",
575
+ "Ü": "Ue",
576
+ "Ű": "U",
577
+ "Ý": "Y",
578
+ "Þ": "TH",
579
+ "ß": "ss",
580
+ "à": "a",
581
+ "á": "a",
582
+ "â": "a",
583
+ "ã": "a",
584
+ "ä": "ae",
585
+ "å": "a",
586
+ "æ": "ae",
587
+ "ç": "c",
588
+ "è": "e",
589
+ "é": "e",
590
+ "ê": "e",
591
+ "ë": "e",
592
+ "ì": "i",
593
+ "í": "i",
594
+ "î": "i",
595
+ "ï": "i",
596
+ "ð": "d",
597
+ "ñ": "n",
598
+ "ò": "o",
599
+ "ó": "o",
600
+ "ô": "o",
601
+ "õ": "o",
602
+ "ö": "oe",
603
+ "ő": "o",
604
+ "ø": "o",
605
+ "ù": "u",
606
+ "ú": "u",
607
+ "û": "u",
608
+ "ü": "ue",
609
+ "ű": "u",
610
+ "ý": "y",
611
+ "þ": "th",
612
+ "ÿ": "y",
613
+ "ẞ": "SS",
614
+ // language specific
615
+ // Arabic
616
+ "ا": "a",
617
+ "أ": "a",
618
+ "إ": "i",
619
+ "آ": "aa",
620
+ "ؤ": "u",
621
+ "ئ": "e",
622
+ "ء": "a",
623
+ "ب": "b",
624
+ "ت": "t",
625
+ "ث": "th",
626
+ "ج": "j",
627
+ "ح": "h",
628
+ "خ": "kh",
629
+ "د": "d",
630
+ "ذ": "th",
631
+ "ر": "r",
632
+ "ز": "z",
633
+ "س": "s",
634
+ "ش": "sh",
635
+ "ص": "s",
636
+ "ض": "dh",
637
+ "ط": "t",
638
+ "ظ": "z",
639
+ "ع": "a",
640
+ "غ": "gh",
641
+ "ف": "f",
642
+ "ق": "q",
643
+ "ك": "k",
644
+ "ل": "l",
645
+ "م": "m",
646
+ "ن": "n",
647
+ "ه": "h",
648
+ "و": "w",
649
+ "ي": "y",
650
+ "ى": "a",
651
+ "ة": "h",
652
+ "ﻻ": "la",
653
+ "ﻷ": "laa",
654
+ "ﻹ": "lai",
655
+ "ﻵ": "laa",
656
+ // Persian additional characters than Arabic
657
+ "گ": "g",
658
+ "چ": "ch",
659
+ "پ": "p",
660
+ "ژ": "zh",
661
+ "ک": "k",
662
+ "ی": "y",
663
+ // Arabic diactrics
664
+ "َ": "a",
665
+ "ً": "an",
666
+ "ِ": "e",
667
+ "ٍ": "en",
668
+ "ُ": "u",
669
+ "ٌ": "on",
670
+ "ْ": "",
671
+ // Arabic numbers
672
+ "٠": "0",
673
+ "١": "1",
674
+ "٢": "2",
675
+ "٣": "3",
676
+ "٤": "4",
677
+ "٥": "5",
678
+ "٦": "6",
679
+ "٧": "7",
680
+ "٨": "8",
681
+ "٩": "9",
682
+ // Persian numbers
683
+ "۰": "0",
684
+ "۱": "1",
685
+ "۲": "2",
686
+ "۳": "3",
687
+ "۴": "4",
688
+ "۵": "5",
689
+ "۶": "6",
690
+ "۷": "7",
691
+ "۸": "8",
692
+ "۹": "9",
693
+ // Burmese consonants
694
+ "က": "k",
695
+ "ခ": "kh",
696
+ "ဂ": "g",
697
+ "ဃ": "ga",
698
+ "င": "ng",
699
+ "စ": "s",
700
+ "ဆ": "sa",
701
+ "ဇ": "z",
702
+ "စျ": "za",
703
+ "ည": "ny",
704
+ "ဋ": "t",
705
+ "ဌ": "ta",
706
+ "ဍ": "d",
707
+ "ဎ": "da",
708
+ "ဏ": "na",
709
+ "တ": "t",
710
+ "ထ": "ta",
711
+ "ဒ": "d",
712
+ "ဓ": "da",
713
+ "န": "n",
714
+ "ပ": "p",
715
+ "ဖ": "pa",
716
+ "ဗ": "b",
717
+ "ဘ": "ba",
718
+ "မ": "m",
719
+ "ယ": "y",
720
+ "ရ": "ya",
721
+ "လ": "l",
722
+ "ဝ": "w",
723
+ "သ": "th",
724
+ "ဟ": "h",
725
+ "ဠ": "la",
726
+ "အ": "a",
727
+ // consonant character combos
728
+ "ြ": "y",
729
+ "ျ": "ya",
730
+ "ွ": "w",
731
+ "ြွ": "yw",
732
+ "ျွ": "ywa",
733
+ "ှ": "h",
734
+ // independent vowels
735
+ "ဧ": "e",
736
+ "၏": "-e",
737
+ "ဣ": "i",
738
+ "ဤ": "-i",
739
+ "ဉ": "u",
740
+ "ဦ": "-u",
741
+ "ဩ": "aw",
742
+ "သြော": "aw",
743
+ "ဪ": "aw",
744
+ // numbers
745
+ "၀": "0",
746
+ "၁": "1",
747
+ "၂": "2",
748
+ "၃": "3",
749
+ "၄": "4",
750
+ "၅": "5",
751
+ "၆": "6",
752
+ "၇": "7",
753
+ "၈": "8",
754
+ "၉": "9",
755
+ // virama and tone marks which are silent in transliteration
756
+ "္": "",
757
+ "့": "",
758
+ "း": "",
759
+ // Czech
760
+ "č": "c",
761
+ "ď": "d",
762
+ "ě": "e",
763
+ "ň": "n",
764
+ "ř": "r",
765
+ "š": "s",
766
+ "ť": "t",
767
+ "ů": "u",
768
+ "ž": "z",
769
+ "Č": "C",
770
+ "Ď": "D",
771
+ "Ě": "E",
772
+ "Ň": "N",
773
+ "Ř": "R",
774
+ "Š": "S",
775
+ "Ť": "T",
776
+ "Ů": "U",
777
+ "Ž": "Z",
778
+ // Dhivehi
779
+ "ހ": "h",
780
+ "ށ": "sh",
781
+ "ނ": "n",
782
+ "ރ": "r",
783
+ "ބ": "b",
784
+ "ޅ": "lh",
785
+ "ކ": "k",
786
+ "އ": "a",
787
+ "ވ": "v",
788
+ "މ": "m",
789
+ "ފ": "f",
790
+ "ދ": "dh",
791
+ "ތ": "th",
792
+ "ލ": "l",
793
+ "ގ": "g",
794
+ "ޏ": "gn",
795
+ "ސ": "s",
796
+ "ޑ": "d",
797
+ "ޒ": "z",
798
+ "ޓ": "t",
799
+ "ޔ": "y",
800
+ "ޕ": "p",
801
+ "ޖ": "j",
802
+ "ޗ": "ch",
803
+ "ޘ": "tt",
804
+ "ޙ": "hh",
805
+ "ޚ": "kh",
806
+ "ޛ": "th",
807
+ "ޜ": "z",
808
+ "ޝ": "sh",
809
+ "ޞ": "s",
810
+ "ޟ": "d",
811
+ "ޠ": "t",
812
+ "ޡ": "z",
813
+ "ޢ": "a",
814
+ "ޣ": "gh",
815
+ "ޤ": "q",
816
+ "ޥ": "w",
817
+ "ަ": "a",
818
+ "ާ": "aa",
819
+ "ި": "i",
820
+ "ީ": "ee",
821
+ "ު": "u",
822
+ "ޫ": "oo",
823
+ "ެ": "e",
824
+ "ޭ": "ey",
825
+ "ޮ": "o",
826
+ "ޯ": "oa",
827
+ "ް": "",
828
+ // Georgian https://en.wikipedia.org/wiki/Romanization_of_Georgian
829
+ // National system (2002)
830
+ "ა": "a",
831
+ "ბ": "b",
832
+ "გ": "g",
833
+ "დ": "d",
834
+ "ე": "e",
835
+ "ვ": "v",
836
+ "ზ": "z",
837
+ "თ": "t",
838
+ "ი": "i",
839
+ "კ": "k",
840
+ "ლ": "l",
841
+ "მ": "m",
842
+ "ნ": "n",
843
+ "ო": "o",
844
+ "პ": "p",
845
+ "ჟ": "zh",
846
+ "რ": "r",
847
+ "ს": "s",
848
+ "ტ": "t",
849
+ "უ": "u",
850
+ "ფ": "p",
851
+ "ქ": "k",
852
+ "ღ": "gh",
853
+ "ყ": "q",
854
+ "შ": "sh",
855
+ "ჩ": "ch",
856
+ "ც": "ts",
857
+ "ძ": "dz",
858
+ "წ": "ts",
859
+ "ჭ": "ch",
860
+ "ხ": "kh",
861
+ "ჯ": "j",
862
+ "ჰ": "h",
863
+ // Greek
864
+ "α": "a",
865
+ "β": "v",
866
+ "γ": "g",
867
+ "δ": "d",
868
+ "ε": "e",
869
+ "ζ": "z",
870
+ "η": "i",
871
+ "θ": "th",
872
+ "ι": "i",
873
+ "κ": "k",
874
+ "λ": "l",
875
+ "μ": "m",
876
+ "ν": "n",
877
+ "ξ": "ks",
878
+ "ο": "o",
879
+ "π": "p",
880
+ "ρ": "r",
881
+ "σ": "s",
882
+ "τ": "t",
883
+ "υ": "y",
884
+ "φ": "f",
885
+ "χ": "x",
886
+ "ψ": "ps",
887
+ "ω": "o",
888
+ "ά": "a",
889
+ "έ": "e",
890
+ "ί": "i",
891
+ "ό": "o",
892
+ "ύ": "y",
893
+ "ή": "i",
894
+ "ώ": "o",
895
+ "ς": "s",
896
+ "ϊ": "i",
897
+ "ΰ": "y",
898
+ "ϋ": "y",
899
+ "ΐ": "i",
900
+ "Α": "A",
901
+ "Β": "B",
902
+ "Γ": "G",
903
+ "Δ": "D",
904
+ "Ε": "E",
905
+ "Ζ": "Z",
906
+ "Η": "I",
907
+ "Θ": "TH",
908
+ "Ι": "I",
909
+ "Κ": "K",
910
+ "Λ": "L",
911
+ "Μ": "M",
912
+ "Ν": "N",
913
+ "Ξ": "KS",
914
+ "Ο": "O",
915
+ "Π": "P",
916
+ "Ρ": "R",
917
+ "Σ": "S",
918
+ "Τ": "T",
919
+ "Υ": "Y",
920
+ "Φ": "F",
921
+ "Χ": "X",
922
+ "Ψ": "PS",
923
+ "Ω": "O",
924
+ "Ά": "A",
925
+ "Έ": "E",
926
+ "Ί": "I",
927
+ "Ό": "O",
928
+ "Ύ": "Y",
929
+ "Ή": "I",
930
+ "Ώ": "O",
931
+ "Ϊ": "I",
932
+ "Ϋ": "Y",
933
+ // Latvian
934
+ "ā": "a",
935
+ // 'č': 'c', // duplicate
936
+ "ē": "e",
937
+ "ģ": "g",
938
+ "ī": "i",
939
+ "ķ": "k",
940
+ "ļ": "l",
941
+ "ņ": "n",
942
+ // 'š': 's', // duplicate
943
+ "ū": "u",
944
+ // 'ž': 'z', // duplicate
945
+ "Ā": "A",
946
+ // 'Č': 'C', // duplicate
947
+ "Ē": "E",
948
+ "Ģ": "G",
949
+ "Ī": "I",
950
+ "Ķ": "k",
951
+ "Ļ": "L",
952
+ "Ņ": "N",
953
+ // 'Š': 'S', // duplicate
954
+ "Ū": "U",
955
+ // 'Ž': 'Z', // duplicate
956
+ // Macedonian
957
+ "Ќ": "Kj",
958
+ "ќ": "kj",
959
+ "Љ": "Lj",
960
+ "љ": "lj",
961
+ "Њ": "Nj",
962
+ "њ": "nj",
963
+ "Тс": "Ts",
964
+ "тс": "ts",
965
+ // Polish
966
+ "ą": "a",
967
+ "ć": "c",
968
+ "ę": "e",
969
+ "ł": "l",
970
+ "ń": "n",
971
+ // 'ó': 'o', // duplicate
972
+ "ś": "s",
973
+ "ź": "z",
974
+ "ż": "z",
975
+ "Ą": "A",
976
+ "Ć": "C",
977
+ "Ę": "E",
978
+ "Ł": "L",
979
+ "Ń": "N",
980
+ "Ś": "S",
981
+ "Ź": "Z",
982
+ "Ż": "Z",
983
+ // Ukranian
984
+ "Є": "Ye",
985
+ "І": "I",
986
+ "Ї": "Yi",
987
+ "Ґ": "G",
988
+ "є": "ye",
989
+ "і": "i",
990
+ "ї": "yi",
991
+ "ґ": "g",
992
+ // Romanian
993
+ "ă": "a",
994
+ "Ă": "A",
995
+ "ș": "s",
996
+ "Ș": "S",
997
+ // 'ş': 's', // duplicate
998
+ // 'Ş': 'S', // duplicate
999
+ "ț": "t",
1000
+ "Ț": "T",
1001
+ "ţ": "t",
1002
+ "Ţ": "T",
1003
+ // Russian https://en.wikipedia.org/wiki/Romanization_of_Russian
1004
+ // ICAO
1005
+ "а": "a",
1006
+ "б": "b",
1007
+ "в": "v",
1008
+ "г": "g",
1009
+ "д": "d",
1010
+ "е": "e",
1011
+ "ё": "yo",
1012
+ "ж": "zh",
1013
+ "з": "z",
1014
+ "и": "i",
1015
+ "й": "i",
1016
+ "к": "k",
1017
+ "л": "l",
1018
+ "м": "m",
1019
+ "н": "n",
1020
+ "о": "o",
1021
+ "п": "p",
1022
+ "р": "r",
1023
+ "с": "s",
1024
+ "т": "t",
1025
+ "у": "u",
1026
+ "ф": "f",
1027
+ "х": "kh",
1028
+ "ц": "c",
1029
+ "ч": "ch",
1030
+ "ш": "sh",
1031
+ "щ": "sh",
1032
+ "ъ": "",
1033
+ "ы": "y",
1034
+ "ь": "",
1035
+ "э": "e",
1036
+ "ю": "yu",
1037
+ "я": "ya",
1038
+ "А": "A",
1039
+ "Б": "B",
1040
+ "В": "V",
1041
+ "Г": "G",
1042
+ "Д": "D",
1043
+ "Е": "E",
1044
+ "Ё": "Yo",
1045
+ "Ж": "Zh",
1046
+ "З": "Z",
1047
+ "И": "I",
1048
+ "Й": "I",
1049
+ "К": "K",
1050
+ "Л": "L",
1051
+ "М": "M",
1052
+ "Н": "N",
1053
+ "О": "O",
1054
+ "П": "P",
1055
+ "Р": "R",
1056
+ "С": "S",
1057
+ "Т": "T",
1058
+ "У": "U",
1059
+ "Ф": "F",
1060
+ "Х": "Kh",
1061
+ "Ц": "C",
1062
+ "Ч": "Ch",
1063
+ "Ш": "Sh",
1064
+ "Щ": "Sh",
1065
+ "Ъ": "",
1066
+ "Ы": "Y",
1067
+ "Ь": "",
1068
+ "Э": "E",
1069
+ "Ю": "Yu",
1070
+ "Я": "Ya",
1071
+ // Serbian
1072
+ "ђ": "dj",
1073
+ "ј": "j",
1074
+ // 'љ': 'lj', // duplicate
1075
+ // 'њ': 'nj', // duplicate
1076
+ "ћ": "c",
1077
+ "џ": "dz",
1078
+ "Ђ": "Dj",
1079
+ "Ј": "j",
1080
+ // 'Љ': 'Lj', // duplicate
1081
+ // 'Њ': 'Nj', // duplicate
1082
+ "Ћ": "C",
1083
+ "Џ": "Dz",
1084
+ // Slovak
1085
+ "ľ": "l",
1086
+ "ĺ": "l",
1087
+ "ŕ": "r",
1088
+ "Ľ": "L",
1089
+ "Ĺ": "L",
1090
+ "Ŕ": "R",
1091
+ // Turkish
1092
+ "ş": "s",
1093
+ "Ş": "S",
1094
+ "ı": "i",
1095
+ "İ": "I",
1096
+ // 'ç': 'c', // duplicate
1097
+ // 'Ç': 'C', // duplicate
1098
+ // 'ü': 'u', // duplicate, see langCharMap
1099
+ // 'Ü': 'U', // duplicate, see langCharMap
1100
+ // 'ö': 'o', // duplicate, see langCharMap
1101
+ // 'Ö': 'O', // duplicate, see langCharMap
1102
+ "ğ": "g",
1103
+ "Ğ": "G",
1104
+ // Vietnamese
1105
+ "ả": "a",
1106
+ "Ả": "A",
1107
+ "ẳ": "a",
1108
+ "Ẳ": "A",
1109
+ "ẩ": "a",
1110
+ "Ẩ": "A",
1111
+ "đ": "d",
1112
+ "Đ": "D",
1113
+ "ẹ": "e",
1114
+ "Ẹ": "E",
1115
+ "ẽ": "e",
1116
+ "Ẽ": "E",
1117
+ "ẻ": "e",
1118
+ "Ẻ": "E",
1119
+ "ế": "e",
1120
+ "Ế": "E",
1121
+ "ề": "e",
1122
+ "Ề": "E",
1123
+ "ệ": "e",
1124
+ "Ệ": "E",
1125
+ "ễ": "e",
1126
+ "Ễ": "E",
1127
+ "ể": "e",
1128
+ "Ể": "E",
1129
+ "ỏ": "o",
1130
+ "ọ": "o",
1131
+ "Ọ": "o",
1132
+ "ố": "o",
1133
+ "Ố": "O",
1134
+ "ồ": "o",
1135
+ "Ồ": "O",
1136
+ "ổ": "o",
1137
+ "Ổ": "O",
1138
+ "ộ": "o",
1139
+ "Ộ": "O",
1140
+ "ỗ": "o",
1141
+ "Ỗ": "O",
1142
+ "ơ": "o",
1143
+ "Ơ": "O",
1144
+ "ớ": "o",
1145
+ "Ớ": "O",
1146
+ "ờ": "o",
1147
+ "Ờ": "O",
1148
+ "ợ": "o",
1149
+ "Ợ": "O",
1150
+ "ỡ": "o",
1151
+ "Ỡ": "O",
1152
+ "Ở": "o",
1153
+ "ở": "o",
1154
+ "ị": "i",
1155
+ "Ị": "I",
1156
+ "ĩ": "i",
1157
+ "Ĩ": "I",
1158
+ "ỉ": "i",
1159
+ "Ỉ": "i",
1160
+ "ủ": "u",
1161
+ "Ủ": "U",
1162
+ "ụ": "u",
1163
+ "Ụ": "U",
1164
+ "ũ": "u",
1165
+ "Ũ": "U",
1166
+ "ư": "u",
1167
+ "Ư": "U",
1168
+ "ứ": "u",
1169
+ "Ứ": "U",
1170
+ "ừ": "u",
1171
+ "Ừ": "U",
1172
+ "ự": "u",
1173
+ "Ự": "U",
1174
+ "ữ": "u",
1175
+ "Ữ": "U",
1176
+ "ử": "u",
1177
+ "Ử": "ư",
1178
+ "ỷ": "y",
1179
+ "Ỷ": "y",
1180
+ "ỳ": "y",
1181
+ "Ỳ": "Y",
1182
+ "ỵ": "y",
1183
+ "Ỵ": "Y",
1184
+ "ỹ": "y",
1185
+ "Ỹ": "Y",
1186
+ "ạ": "a",
1187
+ "Ạ": "A",
1188
+ "ấ": "a",
1189
+ "Ấ": "A",
1190
+ "ầ": "a",
1191
+ "Ầ": "A",
1192
+ "ậ": "a",
1193
+ "Ậ": "A",
1194
+ "ẫ": "a",
1195
+ "Ẫ": "A",
1196
+ // 'ă': 'a', // duplicate
1197
+ // 'Ă': 'A', // duplicate
1198
+ "ắ": "a",
1199
+ "Ắ": "A",
1200
+ "ằ": "a",
1201
+ "Ằ": "A",
1202
+ "ặ": "a",
1203
+ "Ặ": "A",
1204
+ "ẵ": "a",
1205
+ "Ẵ": "A",
1206
+ "⓪": "0",
1207
+ "①": "1",
1208
+ "②": "2",
1209
+ "③": "3",
1210
+ "④": "4",
1211
+ "⑤": "5",
1212
+ "⑥": "6",
1213
+ "⑦": "7",
1214
+ "⑧": "8",
1215
+ "⑨": "9",
1216
+ "⑩": "10",
1217
+ "⑪": "11",
1218
+ "⑫": "12",
1219
+ "⑬": "13",
1220
+ "⑭": "14",
1221
+ "⑮": "15",
1222
+ "⑯": "16",
1223
+ "⑰": "17",
1224
+ "⑱": "18",
1225
+ "⑲": "18",
1226
+ "⑳": "18",
1227
+ "⓵": "1",
1228
+ "⓶": "2",
1229
+ "⓷": "3",
1230
+ "⓸": "4",
1231
+ "⓹": "5",
1232
+ "⓺": "6",
1233
+ "⓻": "7",
1234
+ "⓼": "8",
1235
+ "⓽": "9",
1236
+ "⓾": "10",
1237
+ "⓿": "0",
1238
+ "⓫": "11",
1239
+ "⓬": "12",
1240
+ "⓭": "13",
1241
+ "⓮": "14",
1242
+ "⓯": "15",
1243
+ "⓰": "16",
1244
+ "⓱": "17",
1245
+ "⓲": "18",
1246
+ "⓳": "19",
1247
+ "⓴": "20",
1248
+ "Ⓐ": "A",
1249
+ "Ⓑ": "B",
1250
+ "Ⓒ": "C",
1251
+ "Ⓓ": "D",
1252
+ "Ⓔ": "E",
1253
+ "Ⓕ": "F",
1254
+ "Ⓖ": "G",
1255
+ "Ⓗ": "H",
1256
+ "Ⓘ": "I",
1257
+ "Ⓙ": "J",
1258
+ "Ⓚ": "K",
1259
+ "Ⓛ": "L",
1260
+ "Ⓜ": "M",
1261
+ "Ⓝ": "N",
1262
+ "Ⓞ": "O",
1263
+ "Ⓟ": "P",
1264
+ "Ⓠ": "Q",
1265
+ "Ⓡ": "R",
1266
+ "Ⓢ": "S",
1267
+ "Ⓣ": "T",
1268
+ "Ⓤ": "U",
1269
+ "Ⓥ": "V",
1270
+ "Ⓦ": "W",
1271
+ "Ⓧ": "X",
1272
+ "Ⓨ": "Y",
1273
+ "Ⓩ": "Z",
1274
+ "ⓐ": "a",
1275
+ "ⓑ": "b",
1276
+ "ⓒ": "c",
1277
+ "ⓓ": "d",
1278
+ "ⓔ": "e",
1279
+ "ⓕ": "f",
1280
+ "ⓖ": "g",
1281
+ "ⓗ": "h",
1282
+ "ⓘ": "i",
1283
+ "ⓙ": "j",
1284
+ "ⓚ": "k",
1285
+ "ⓛ": "l",
1286
+ "ⓜ": "m",
1287
+ "ⓝ": "n",
1288
+ "ⓞ": "o",
1289
+ "ⓟ": "p",
1290
+ "ⓠ": "q",
1291
+ "ⓡ": "r",
1292
+ "ⓢ": "s",
1293
+ "ⓣ": "t",
1294
+ "ⓤ": "u",
1295
+ "ⓦ": "v",
1296
+ "ⓥ": "w",
1297
+ "ⓧ": "x",
1298
+ "ⓨ": "y",
1299
+ "ⓩ": "z",
1300
+ // symbols
1301
+ "“": '"',
1302
+ "”": '"',
1303
+ "‘": "'",
1304
+ "’": "'",
1305
+ "∂": "d",
1306
+ "ƒ": "f",
1307
+ "™": "(TM)",
1308
+ "©": "(C)",
1309
+ "œ": "oe",
1310
+ "Œ": "OE",
1311
+ "®": "(R)",
1312
+ "†": "+",
1313
+ "℠": "(SM)",
1314
+ "…": "...",
1315
+ "˚": "o",
1316
+ "º": "o",
1317
+ "ª": "a",
1318
+ "•": "*",
1319
+ "၊": ",",
1320
+ "။": ".",
1321
+ // currency
1322
+ "$": "USD",
1323
+ "€": "EUR",
1324
+ "₢": "BRN",
1325
+ "₣": "FRF",
1326
+ "£": "GBP",
1327
+ "₤": "ITL",
1328
+ "₦": "NGN",
1329
+ "₧": "ESP",
1330
+ "₩": "KRW",
1331
+ "₪": "ILS",
1332
+ "₫": "VND",
1333
+ "₭": "LAK",
1334
+ "₮": "MNT",
1335
+ "₯": "GRD",
1336
+ "₱": "ARS",
1337
+ "₲": "PYG",
1338
+ "₳": "ARA",
1339
+ "₴": "UAH",
1340
+ "₵": "GHS",
1341
+ "¢": "cent",
1342
+ "¥": "CNY",
1343
+ "元": "CNY",
1344
+ "円": "YEN",
1345
+ "﷼": "IRR",
1346
+ "₠": "EWE",
1347
+ "฿": "THB",
1348
+ "₨": "INR",
1349
+ "₹": "INR",
1350
+ "₰": "PF",
1351
+ "₺": "TRY",
1352
+ "؋": "AFN",
1353
+ "₼": "AZN",
1354
+ "лв": "BGN",
1355
+ "៛": "KHR",
1356
+ "₡": "CRC",
1357
+ "₸": "KZT",
1358
+ "ден": "MKD",
1359
+ "zł": "PLN",
1360
+ "₽": "RUB",
1361
+ "₾": "GEL"
1362
+ };
1363
+ var lookAheadCharArray = [
1364
+ // burmese
1365
+ "်",
1366
+ // Dhivehi
1367
+ "ް"
1368
+ ];
1369
+ var diatricMap = {
1370
+ // Burmese
1371
+ // dependent vowels
1372
+ "ာ": "a",
1373
+ "ါ": "a",
1374
+ "ေ": "e",
1375
+ "ဲ": "e",
1376
+ "ိ": "i",
1377
+ "ီ": "i",
1378
+ "ို": "o",
1379
+ "ု": "u",
1380
+ "ူ": "u",
1381
+ "ေါင်": "aung",
1382
+ "ော": "aw",
1383
+ "ော်": "aw",
1384
+ "ေါ": "aw",
1385
+ "ေါ်": "aw",
1386
+ "်": "်",
1387
+ // this is special case but the character will be converted to latin in the code
1388
+ "က်": "et",
1389
+ "ိုက်": "aik",
1390
+ "ောက်": "auk",
1391
+ "င်": "in",
1392
+ "ိုင်": "aing",
1393
+ "ောင်": "aung",
1394
+ "စ်": "it",
1395
+ "ည်": "i",
1396
+ "တ်": "at",
1397
+ "ိတ်": "eik",
1398
+ "ုတ်": "ok",
1399
+ "ွတ်": "ut",
1400
+ "ေတ်": "it",
1401
+ "ဒ်": "d",
1402
+ "ိုဒ်": "ok",
1403
+ "ုဒ်": "ait",
1404
+ "န်": "an",
1405
+ "ာန်": "an",
1406
+ "ိန်": "ein",
1407
+ "ုန်": "on",
1408
+ "ွန်": "un",
1409
+ "ပ်": "at",
1410
+ "ိပ်": "eik",
1411
+ "ုပ်": "ok",
1412
+ "ွပ်": "ut",
1413
+ "န်ုပ်": "nub",
1414
+ "မ်": "an",
1415
+ "ိမ်": "ein",
1416
+ "ုမ်": "on",
1417
+ "ွမ်": "un",
1418
+ "ယ်": "e",
1419
+ "ိုလ်": "ol",
1420
+ "ဉ်": "in",
1421
+ "ံ": "an",
1422
+ "ိံ": "ein",
1423
+ "ုံ": "on",
1424
+ // Dhivehi
1425
+ "ައް": "ah",
1426
+ "ަށް": "ah"
1427
+ };
1428
+ var langCharMap = {
1429
+ "en": {},
1430
+ // default language
1431
+ "az": {
1432
+ // Azerbaijani
1433
+ "ç": "c",
1434
+ "ə": "e",
1435
+ "ğ": "g",
1436
+ "ı": "i",
1437
+ "ö": "o",
1438
+ "ş": "s",
1439
+ "ü": "u",
1440
+ "Ç": "C",
1441
+ "Ə": "E",
1442
+ "Ğ": "G",
1443
+ "İ": "I",
1444
+ "Ö": "O",
1445
+ "Ş": "S",
1446
+ "Ü": "U"
1447
+ },
1448
+ "cs": {
1449
+ // Czech
1450
+ "č": "c",
1451
+ "ď": "d",
1452
+ "ě": "e",
1453
+ "ň": "n",
1454
+ "ř": "r",
1455
+ "š": "s",
1456
+ "ť": "t",
1457
+ "ů": "u",
1458
+ "ž": "z",
1459
+ "Č": "C",
1460
+ "Ď": "D",
1461
+ "Ě": "E",
1462
+ "Ň": "N",
1463
+ "Ř": "R",
1464
+ "Š": "S",
1465
+ "Ť": "T",
1466
+ "Ů": "U",
1467
+ "Ž": "Z"
1468
+ },
1469
+ "fi": {
1470
+ // Finnish
1471
+ // 'å': 'a', duplicate see charMap/latin
1472
+ // 'Å': 'A', duplicate see charMap/latin
1473
+ "ä": "a",
1474
+ // ok
1475
+ "Ä": "A",
1476
+ // ok
1477
+ "ö": "o",
1478
+ // ok
1479
+ "Ö": "O"
1480
+ // ok
1481
+ },
1482
+ "hu": {
1483
+ // Hungarian
1484
+ "ä": "a",
1485
+ // ok
1486
+ "Ä": "A",
1487
+ // ok
1488
+ // 'á': 'a', duplicate see charMap/latin
1489
+ // 'Á': 'A', duplicate see charMap/latin
1490
+ "ö": "o",
1491
+ // ok
1492
+ "Ö": "O",
1493
+ // ok
1494
+ // 'ő': 'o', duplicate see charMap/latin
1495
+ // 'Ő': 'O', duplicate see charMap/latin
1496
+ "ü": "u",
1497
+ "Ü": "U",
1498
+ "ű": "u",
1499
+ "Ű": "U"
1500
+ },
1501
+ "lt": {
1502
+ // Lithuanian
1503
+ "ą": "a",
1504
+ "č": "c",
1505
+ "ę": "e",
1506
+ "ė": "e",
1507
+ "į": "i",
1508
+ "š": "s",
1509
+ "ų": "u",
1510
+ "ū": "u",
1511
+ "ž": "z",
1512
+ "Ą": "A",
1513
+ "Č": "C",
1514
+ "Ę": "E",
1515
+ "Ė": "E",
1516
+ "Į": "I",
1517
+ "Š": "S",
1518
+ "Ų": "U",
1519
+ "Ū": "U"
1520
+ },
1521
+ "lv": {
1522
+ // Latvian
1523
+ "ā": "a",
1524
+ "č": "c",
1525
+ "ē": "e",
1526
+ "ģ": "g",
1527
+ "ī": "i",
1528
+ "ķ": "k",
1529
+ "ļ": "l",
1530
+ "ņ": "n",
1531
+ "š": "s",
1532
+ "ū": "u",
1533
+ "ž": "z",
1534
+ "Ā": "A",
1535
+ "Č": "C",
1536
+ "Ē": "E",
1537
+ "Ģ": "G",
1538
+ "Ī": "i",
1539
+ "Ķ": "k",
1540
+ "Ļ": "L",
1541
+ "Ņ": "N",
1542
+ "Š": "S",
1543
+ "Ū": "u",
1544
+ "Ž": "Z"
1545
+ },
1546
+ "pl": {
1547
+ // Polish
1548
+ "ą": "a",
1549
+ "ć": "c",
1550
+ "ę": "e",
1551
+ "ł": "l",
1552
+ "ń": "n",
1553
+ "ó": "o",
1554
+ "ś": "s",
1555
+ "ź": "z",
1556
+ "ż": "z",
1557
+ "Ą": "A",
1558
+ "Ć": "C",
1559
+ "Ę": "e",
1560
+ "Ł": "L",
1561
+ "Ń": "N",
1562
+ "Ó": "O",
1563
+ "Ś": "S",
1564
+ "Ź": "Z",
1565
+ "Ż": "Z"
1566
+ },
1567
+ "sv": {
1568
+ // Swedish
1569
+ // 'å': 'a', duplicate see charMap/latin
1570
+ // 'Å': 'A', duplicate see charMap/latin
1571
+ "ä": "a",
1572
+ // ok
1573
+ "Ä": "A",
1574
+ // ok
1575
+ "ö": "o",
1576
+ // ok
1577
+ "Ö": "O"
1578
+ // ok
1579
+ },
1580
+ "sk": {
1581
+ // Slovak
1582
+ "ä": "a",
1583
+ "Ä": "A"
1584
+ },
1585
+ "sr": {
1586
+ // Serbian
1587
+ "љ": "lj",
1588
+ "њ": "nj",
1589
+ "Љ": "Lj",
1590
+ "Њ": "Nj",
1591
+ "đ": "dj",
1592
+ "Đ": "Dj"
1593
+ },
1594
+ "tr": {
1595
+ // Turkish
1596
+ "Ü": "U",
1597
+ "Ö": "O",
1598
+ "ü": "u",
1599
+ "ö": "o"
1600
+ }
1601
+ };
1602
+ var symbolMap = {
1603
+ "ar": {
1604
+ "∆": "delta",
1605
+ "∞": "la-nihaya",
1606
+ "♥": "hob",
1607
+ "&": "wa",
1608
+ "|": "aw",
1609
+ "<": "aqal-men",
1610
+ ">": "akbar-men",
1611
+ "∑": "majmou",
1612
+ "¤": "omla"
1613
+ },
1614
+ "az": {},
1615
+ "ca": {
1616
+ "∆": "delta",
1617
+ "∞": "infinit",
1618
+ "♥": "amor",
1619
+ "&": "i",
1620
+ "|": "o",
1621
+ "<": "menys que",
1622
+ ">": "mes que",
1623
+ "∑": "suma dels",
1624
+ "¤": "moneda"
1625
+ },
1626
+ "cs": {
1627
+ "∆": "delta",
1628
+ "∞": "nekonecno",
1629
+ "♥": "laska",
1630
+ "&": "a",
1631
+ "|": "nebo",
1632
+ "<": "mensi nez",
1633
+ ">": "vetsi nez",
1634
+ "∑": "soucet",
1635
+ "¤": "mena"
1636
+ },
1637
+ "de": {
1638
+ "∆": "delta",
1639
+ "∞": "unendlich",
1640
+ "♥": "Liebe",
1641
+ "&": "und",
1642
+ "|": "oder",
1643
+ "<": "kleiner als",
1644
+ ">": "groesser als",
1645
+ "∑": "Summe von",
1646
+ "¤": "Waehrung"
1647
+ },
1648
+ "dv": {
1649
+ "∆": "delta",
1650
+ "∞": "kolunulaa",
1651
+ "♥": "loabi",
1652
+ "&": "aai",
1653
+ "|": "noonee",
1654
+ "<": "ah vure kuda",
1655
+ ">": "ah vure bodu",
1656
+ "∑": "jumula",
1657
+ "¤": "faisaa"
1658
+ },
1659
+ "en": {
1660
+ "∆": "delta",
1661
+ "∞": "infinity",
1662
+ "♥": "love",
1663
+ "&": "and",
1664
+ "|": "or",
1665
+ "<": "less than",
1666
+ ">": "greater than",
1667
+ "∑": "sum",
1668
+ "¤": "currency"
1669
+ },
1670
+ "es": {
1671
+ "∆": "delta",
1672
+ "∞": "infinito",
1673
+ "♥": "amor",
1674
+ "&": "y",
1675
+ "|": "u",
1676
+ "<": "menos que",
1677
+ ">": "mas que",
1678
+ "∑": "suma de los",
1679
+ "¤": "moneda"
1680
+ },
1681
+ "fa": {
1682
+ "∆": "delta",
1683
+ "∞": "bi-nahayat",
1684
+ "♥": "eshgh",
1685
+ "&": "va",
1686
+ "|": "ya",
1687
+ "<": "kamtar-az",
1688
+ ">": "bishtar-az",
1689
+ "∑": "majmooe",
1690
+ "¤": "vahed"
1691
+ },
1692
+ "fi": {
1693
+ "∆": "delta",
1694
+ "∞": "aarettomyys",
1695
+ "♥": "rakkaus",
1696
+ "&": "ja",
1697
+ "|": "tai",
1698
+ "<": "pienempi kuin",
1699
+ ">": "suurempi kuin",
1700
+ "∑": "summa",
1701
+ "¤": "valuutta"
1702
+ },
1703
+ "fr": {
1704
+ "∆": "delta",
1705
+ "∞": "infiniment",
1706
+ "♥": "Amour",
1707
+ "&": "et",
1708
+ "|": "ou",
1709
+ "<": "moins que",
1710
+ ">": "superieure a",
1711
+ "∑": "somme des",
1712
+ "¤": "monnaie"
1713
+ },
1714
+ "ge": {
1715
+ "∆": "delta",
1716
+ "∞": "usasruloba",
1717
+ "♥": "siqvaruli",
1718
+ "&": "da",
1719
+ "|": "an",
1720
+ "<": "naklebi",
1721
+ ">": "meti",
1722
+ "∑": "jami",
1723
+ "¤": "valuta"
1724
+ },
1725
+ "gr": {},
1726
+ "hu": {
1727
+ "∆": "delta",
1728
+ "∞": "vegtelen",
1729
+ "♥": "szerelem",
1730
+ "&": "es",
1731
+ "|": "vagy",
1732
+ "<": "kisebb mint",
1733
+ ">": "nagyobb mint",
1734
+ "∑": "szumma",
1735
+ "¤": "penznem"
1736
+ },
1737
+ "it": {
1738
+ "∆": "delta",
1739
+ "∞": "infinito",
1740
+ "♥": "amore",
1741
+ "&": "e",
1742
+ "|": "o",
1743
+ "<": "minore di",
1744
+ ">": "maggiore di",
1745
+ "∑": "somma",
1746
+ "¤": "moneta"
1747
+ },
1748
+ "lt": {
1749
+ "∆": "delta",
1750
+ "∞": "begalybe",
1751
+ "♥": "meile",
1752
+ "&": "ir",
1753
+ "|": "ar",
1754
+ "<": "maziau nei",
1755
+ ">": "daugiau nei",
1756
+ "∑": "suma",
1757
+ "¤": "valiuta"
1758
+ },
1759
+ "lv": {
1760
+ "∆": "delta",
1761
+ "∞": "bezgaliba",
1762
+ "♥": "milestiba",
1763
+ "&": "un",
1764
+ "|": "vai",
1765
+ "<": "mazak neka",
1766
+ ">": "lielaks neka",
1767
+ "∑": "summa",
1768
+ "¤": "valuta"
1769
+ },
1770
+ "my": {
1771
+ "∆": "kwahkhyaet",
1772
+ "∞": "asaonasme",
1773
+ "♥": "akhyait",
1774
+ "&": "nhin",
1775
+ "|": "tho",
1776
+ "<": "ngethaw",
1777
+ ">": "kyithaw",
1778
+ "∑": "paungld",
1779
+ "¤": "ngwekye"
1780
+ },
1781
+ "mk": {},
1782
+ "nl": {
1783
+ "∆": "delta",
1784
+ "∞": "oneindig",
1785
+ "♥": "liefde",
1786
+ "&": "en",
1787
+ "|": "of",
1788
+ "<": "kleiner dan",
1789
+ ">": "groter dan",
1790
+ "∑": "som",
1791
+ "¤": "valuta"
1792
+ },
1793
+ "pl": {
1794
+ "∆": "delta",
1795
+ "∞": "nieskonczonosc",
1796
+ "♥": "milosc",
1797
+ "&": "i",
1798
+ "|": "lub",
1799
+ "<": "mniejsze niz",
1800
+ ">": "wieksze niz",
1801
+ "∑": "suma",
1802
+ "¤": "waluta"
1803
+ },
1804
+ "pt": {
1805
+ "∆": "delta",
1806
+ "∞": "infinito",
1807
+ "♥": "amor",
1808
+ "&": "e",
1809
+ "|": "ou",
1810
+ "<": "menor que",
1811
+ ">": "maior que",
1812
+ "∑": "soma",
1813
+ "¤": "moeda"
1814
+ },
1815
+ "ro": {
1816
+ "∆": "delta",
1817
+ "∞": "infinit",
1818
+ "♥": "dragoste",
1819
+ "&": "si",
1820
+ "|": "sau",
1821
+ "<": "mai mic ca",
1822
+ ">": "mai mare ca",
1823
+ "∑": "suma",
1824
+ "¤": "valuta"
1825
+ },
1826
+ "ru": {
1827
+ "∆": "delta",
1828
+ "∞": "beskonechno",
1829
+ "♥": "lubov",
1830
+ "&": "i",
1831
+ "|": "ili",
1832
+ "<": "menshe",
1833
+ ">": "bolshe",
1834
+ "∑": "summa",
1835
+ "¤": "valjuta"
1836
+ },
1837
+ "sk": {
1838
+ "∆": "delta",
1839
+ "∞": "nekonecno",
1840
+ "♥": "laska",
1841
+ "&": "a",
1842
+ "|": "alebo",
1843
+ "<": "menej ako",
1844
+ ">": "viac ako",
1845
+ "∑": "sucet",
1846
+ "¤": "mena"
1847
+ },
1848
+ "sr": {},
1849
+ "tr": {
1850
+ "∆": "delta",
1851
+ "∞": "sonsuzluk",
1852
+ "♥": "ask",
1853
+ "&": "ve",
1854
+ "|": "veya",
1855
+ "<": "kucuktur",
1856
+ ">": "buyuktur",
1857
+ "∑": "toplam",
1858
+ "¤": "para birimi"
1859
+ },
1860
+ "uk": {
1861
+ "∆": "delta",
1862
+ "∞": "bezkinechnist",
1863
+ "♥": "lubov",
1864
+ "&": "i",
1865
+ "|": "abo",
1866
+ "<": "menshe",
1867
+ ">": "bilshe",
1868
+ "∑": "suma",
1869
+ "¤": "valjuta"
1870
+ },
1871
+ "vn": {
1872
+ "∆": "delta",
1873
+ "∞": "vo cuc",
1874
+ "♥": "yeu",
1875
+ "&": "va",
1876
+ "|": "hoac",
1877
+ "<": "nho hon",
1878
+ ">": "lon hon",
1879
+ "∑": "tong",
1880
+ "¤": "tien te"
1881
+ }
1882
+ };
1883
+ var uricChars = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join("");
1884
+ var uricNoSlashChars = [";", "?", ":", "@", "&", "=", "+", "$", ","].join("");
1885
+ var markChars = [".", "!", "~", "*", "'", "(", ")"].join("");
1886
+ var getSlug = function getSlug2(input, opts) {
1887
+ var separator = "-";
1888
+ var result = "";
1889
+ var diatricString = "";
1890
+ var convertSymbols = true;
1891
+ var customReplacements = {};
1892
+ var maintainCase;
1893
+ var titleCase;
1894
+ var truncate;
1895
+ var uricFlag;
1896
+ var uricNoSlashFlag;
1897
+ var markFlag;
1898
+ var symbol;
1899
+ var langChar;
1900
+ var lucky;
1901
+ var i;
1902
+ var ch;
1903
+ var l;
1904
+ var lastCharWasSymbol;
1905
+ var lastCharWasDiatric;
1906
+ var allowedChars = "";
1907
+ if (typeof input !== "string") {
1908
+ return "";
1909
+ }
1910
+ if (typeof opts === "string") {
1911
+ separator = opts;
1912
+ }
1913
+ symbol = symbolMap.en;
1914
+ langChar = langCharMap.en;
1915
+ if (typeof opts === "object") {
1916
+ maintainCase = opts.maintainCase || false;
1917
+ customReplacements = opts.custom && typeof opts.custom === "object" ? opts.custom : customReplacements;
1918
+ truncate = +opts.truncate > 1 && opts.truncate || false;
1919
+ uricFlag = opts.uric || false;
1920
+ uricNoSlashFlag = opts.uricNoSlash || false;
1921
+ markFlag = opts.mark || false;
1922
+ convertSymbols = opts.symbols === false || opts.lang === false ? false : true;
1923
+ separator = opts.separator || separator;
1924
+ if (uricFlag) {
1925
+ allowedChars += uricChars;
1926
+ }
1927
+ if (uricNoSlashFlag) {
1928
+ allowedChars += uricNoSlashChars;
1929
+ }
1930
+ if (markFlag) {
1931
+ allowedChars += markChars;
1932
+ }
1933
+ symbol = opts.lang && symbolMap[opts.lang] && convertSymbols ? symbolMap[opts.lang] : convertSymbols ? symbolMap.en : {};
1934
+ langChar = opts.lang && langCharMap[opts.lang] ? langCharMap[opts.lang] : opts.lang === false || opts.lang === true ? {} : langCharMap.en;
1935
+ if (opts.titleCase && typeof opts.titleCase.length === "number" && Array.prototype.toString.call(opts.titleCase)) {
1936
+ opts.titleCase.forEach(function(v) {
1937
+ customReplacements[v + ""] = v + "";
1938
+ });
1939
+ titleCase = true;
1940
+ } else {
1941
+ titleCase = !!opts.titleCase;
1942
+ }
1943
+ if (opts.custom && typeof opts.custom.length === "number" && Array.prototype.toString.call(opts.custom)) {
1944
+ opts.custom.forEach(function(v) {
1945
+ customReplacements[v + ""] = v + "";
1946
+ });
1947
+ }
1948
+ Object.keys(customReplacements).forEach(function(v) {
1949
+ var r;
1950
+ if (v.length > 1) {
1951
+ r = new RegExp("\\b" + escapeChars(v) + "\\b", "gi");
1952
+ } else {
1953
+ r = new RegExp(escapeChars(v), "gi");
1954
+ }
1955
+ input = input.replace(r, customReplacements[v]);
1956
+ });
1957
+ for (ch in customReplacements) {
1958
+ allowedChars += ch;
1959
+ }
1960
+ }
1961
+ allowedChars += separator;
1962
+ allowedChars = escapeChars(allowedChars);
1963
+ input = input.replace(/(^\s+|\s+$)/g, "");
1964
+ lastCharWasSymbol = false;
1965
+ lastCharWasDiatric = false;
1966
+ for (i = 0, l = input.length; i < l; i++) {
1967
+ ch = input[i];
1968
+ if (isReplacedCustomChar(ch, customReplacements)) {
1969
+ lastCharWasSymbol = false;
1970
+ } else if (langChar[ch]) {
1971
+ ch = lastCharWasSymbol && langChar[ch].match(/[A-Za-z0-9]/) ? " " + langChar[ch] : langChar[ch];
1972
+ lastCharWasSymbol = false;
1973
+ } else if (ch in charMap) {
1974
+ if (i + 1 < l && lookAheadCharArray.indexOf(input[i + 1]) >= 0) {
1975
+ diatricString += ch;
1976
+ ch = "";
1977
+ } else if (lastCharWasDiatric === true) {
1978
+ ch = diatricMap[diatricString] + charMap[ch];
1979
+ diatricString = "";
1980
+ } else {
1981
+ ch = lastCharWasSymbol && charMap[ch].match(/[A-Za-z0-9]/) ? " " + charMap[ch] : charMap[ch];
1982
+ }
1983
+ lastCharWasSymbol = false;
1984
+ lastCharWasDiatric = false;
1985
+ } else if (ch in diatricMap) {
1986
+ diatricString += ch;
1987
+ ch = "";
1988
+ if (i === l - 1) {
1989
+ ch = diatricMap[diatricString];
1990
+ }
1991
+ lastCharWasDiatric = true;
1992
+ } else if (
1993
+ // process symbol chars
1994
+ symbol[ch] && !(uricFlag && uricChars.indexOf(ch) !== -1) && !(uricNoSlashFlag && uricNoSlashChars.indexOf(ch) !== -1)
1995
+ ) {
1996
+ ch = lastCharWasSymbol || result.substr(-1).match(/[A-Za-z0-9]/) ? separator + symbol[ch] : symbol[ch];
1997
+ ch += input[i + 1] !== void 0 && input[i + 1].match(/[A-Za-z0-9]/) ? separator : "";
1998
+ lastCharWasSymbol = true;
1999
+ } else {
2000
+ if (lastCharWasDiatric === true) {
2001
+ ch = diatricMap[diatricString] + ch;
2002
+ diatricString = "";
2003
+ lastCharWasDiatric = false;
2004
+ } else if (lastCharWasSymbol && (/[A-Za-z0-9]/.test(ch) || result.substr(-1).match(/A-Za-z0-9]/))) {
2005
+ ch = " " + ch;
2006
+ }
2007
+ lastCharWasSymbol = false;
2008
+ }
2009
+ result += ch.replace(new RegExp("[^\\w\\s" + allowedChars + "_-]", "g"), separator);
2010
+ }
2011
+ if (titleCase) {
2012
+ result = result.replace(/(\w)(\S*)/g, function(_, i2, r) {
2013
+ var j = i2.toUpperCase() + (r !== null ? r : "");
2014
+ return Object.keys(customReplacements).indexOf(j.toLowerCase()) < 0 ? j : j.toLowerCase();
2015
+ });
2016
+ }
2017
+ result = result.replace(/\s+/g, separator).replace(new RegExp("\\" + separator + "+", "g"), separator).replace(new RegExp("(^\\" + separator + "+|\\" + separator + "+$)", "g"), "");
2018
+ if (truncate && result.length > truncate) {
2019
+ lucky = result.charAt(truncate) === separator;
2020
+ result = result.slice(0, truncate);
2021
+ if (!lucky) {
2022
+ result = result.slice(0, result.lastIndexOf(separator));
2023
+ }
2024
+ }
2025
+ if (!maintainCase && !titleCase) {
2026
+ result = result.toLowerCase();
2027
+ }
2028
+ return result;
2029
+ };
2030
+ var createSlug = function createSlug2(opts) {
2031
+ return function getSlugWithConfig(input) {
2032
+ return getSlug(input, opts);
2033
+ };
2034
+ };
2035
+ var escapeChars = function escapeChars2(input) {
2036
+ return input.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
2037
+ };
2038
+ var isReplacedCustomChar = function(ch, customReplacements) {
2039
+ for (var c in customReplacements) {
2040
+ if (customReplacements[c] === ch) {
2041
+ return true;
2042
+ }
2043
+ }
2044
+ };
2045
+ if (typeof module !== "undefined" && module.exports) {
2046
+ module.exports = getSlug;
2047
+ module.exports.createSlug = createSlug;
2048
+ } else if (typeof define !== "undefined" && define.amd) {
2049
+ define([], function() {
2050
+ return getSlug;
2051
+ });
2052
+ } else {
2053
+ try {
2054
+ if (root.getSlug || root.createSlug) {
2055
+ throw "speakingurl: globals exists /(getSlug|createSlug)/";
2056
+ } else {
2057
+ root.getSlug = getSlug;
2058
+ root.createSlug = createSlug;
2059
+ }
2060
+ } catch (e) {
2061
+ }
2062
+ }
2063
+ })(exports);
2064
+ }
2065
+ });
2066
+ var require_speakingurl2 = __commonJS({
2067
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(exports, module) {
2068
+ init_esm_shims();
2069
+ module.exports = require_speakingurl();
2070
+ }
2071
+ });
2072
+ init_esm_shims();
2073
+ init_esm_shims();
2074
+ init_esm_shims();
2075
+ init_esm_shims();
2076
+ init_esm_shims();
2077
+ init_esm_shims();
2078
+ init_esm_shims();
2079
+ init_esm_shims();
2080
+ function getComponentTypeName(options) {
2081
+ var _a25;
2082
+ const name = options.name || options._componentTag || options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || options.__name;
2083
+ if (name === "index" && ((_a25 = options.__file) == null ? void 0 : _a25.endsWith("index.vue"))) {
2084
+ return "";
2085
+ }
2086
+ return name;
2087
+ }
2088
+ function getComponentFileName(options) {
2089
+ const file = options.__file;
2090
+ if (file)
2091
+ return classify(basename(file, ".vue"));
2092
+ }
2093
+ function saveComponentGussedName(instance, name) {
2094
+ instance.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = name;
2095
+ return name;
2096
+ }
2097
+ function getAppRecord(instance) {
2098
+ if (instance.__VUE_DEVTOOLS_NEXT_APP_RECORD__)
2099
+ return instance.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2100
+ else if (instance.root)
2101
+ return instance.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2102
+ }
2103
+ function isFragment(instance) {
2104
+ var _a25, _b25;
2105
+ const subTreeType = (_a25 = instance.subTree) == null ? void 0 : _a25.type;
2106
+ const appRecord = getAppRecord(instance);
2107
+ if (appRecord) {
2108
+ return ((_b25 = appRecord == null ? void 0 : appRecord.types) == null ? void 0 : _b25.Fragment) === subTreeType;
2109
+ }
2110
+ return false;
2111
+ }
2112
+ function getInstanceName(instance) {
2113
+ var _a25, _b25, _c;
2114
+ const name = getComponentTypeName((instance == null ? void 0 : instance.type) || {});
2115
+ if (name)
2116
+ return name;
2117
+ if ((instance == null ? void 0 : instance.root) === instance)
2118
+ return "Root";
2119
+ for (const key in (_b25 = (_a25 = instance.parent) == null ? void 0 : _a25.type) == null ? void 0 : _b25.components) {
2120
+ if (instance.parent.type.components[key] === (instance == null ? void 0 : instance.type))
2121
+ return saveComponentGussedName(instance, key);
2122
+ }
2123
+ for (const key in (_c = instance.appContext) == null ? void 0 : _c.components) {
2124
+ if (instance.appContext.components[key] === (instance == null ? void 0 : instance.type))
2125
+ return saveComponentGussedName(instance, key);
2126
+ }
2127
+ const fileName = getComponentFileName((instance == null ? void 0 : instance.type) || {});
2128
+ if (fileName)
2129
+ return fileName;
2130
+ return "Anonymous Component";
2131
+ }
2132
+ function getUniqueComponentId(instance) {
2133
+ var _a25, _b25, _c;
2134
+ const appId = (_c = (_b25 = (_a25 = instance == null ? void 0 : instance.appContext) == null ? void 0 : _a25.app) == null ? void 0 : _b25.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? _c : 0;
2135
+ const instanceId = instance === (instance == null ? void 0 : instance.root) ? "root" : instance.uid;
2136
+ return `${appId}:${instanceId}`;
2137
+ }
2138
+ function getComponentInstance(appRecord, instanceId) {
2139
+ instanceId = instanceId || `${appRecord.id}:root`;
2140
+ const instance = appRecord.instanceMap.get(instanceId);
2141
+ return instance || appRecord.instanceMap.get(":root");
2142
+ }
2143
+ function createRect() {
2144
+ const rect = {
2145
+ top: 0,
2146
+ bottom: 0,
2147
+ left: 0,
2148
+ right: 0,
2149
+ get width() {
2150
+ return rect.right - rect.left;
2151
+ },
2152
+ get height() {
2153
+ return rect.bottom - rect.top;
2154
+ }
2155
+ };
2156
+ return rect;
2157
+ }
2158
+ var range;
2159
+ function getTextRect(node) {
2160
+ if (!range)
2161
+ range = document.createRange();
2162
+ range.selectNode(node);
2163
+ return range.getBoundingClientRect();
2164
+ }
2165
+ function getFragmentRect(vnode) {
2166
+ const rect = createRect();
2167
+ if (!vnode.children)
2168
+ return rect;
2169
+ for (let i = 0, l = vnode.children.length; i < l; i++) {
2170
+ const childVnode = vnode.children[i];
2171
+ let childRect;
2172
+ if (childVnode.component) {
2173
+ childRect = getComponentBoundingRect(childVnode.component);
2174
+ } else if (childVnode.el) {
2175
+ const el = childVnode.el;
2176
+ if (el.nodeType === 1 || el.getBoundingClientRect)
2177
+ childRect = el.getBoundingClientRect();
2178
+ else if (el.nodeType === 3 && el.data.trim())
2179
+ childRect = getTextRect(el);
2180
+ }
2181
+ if (childRect)
2182
+ mergeRects(rect, childRect);
2183
+ }
2184
+ return rect;
2185
+ }
2186
+ function mergeRects(a, b) {
2187
+ if (!a.top || b.top < a.top)
2188
+ a.top = b.top;
2189
+ if (!a.bottom || b.bottom > a.bottom)
2190
+ a.bottom = b.bottom;
2191
+ if (!a.left || b.left < a.left)
2192
+ a.left = b.left;
2193
+ if (!a.right || b.right > a.right)
2194
+ a.right = b.right;
2195
+ return a;
2196
+ }
2197
+ var DEFAULT_RECT = {
2198
+ top: 0,
2199
+ left: 0,
2200
+ right: 0,
2201
+ bottom: 0,
2202
+ width: 0,
2203
+ height: 0
2204
+ };
2205
+ function getComponentBoundingRect(instance) {
2206
+ const el = instance.subTree.el;
2207
+ if (typeof window === "undefined") {
2208
+ return DEFAULT_RECT;
2209
+ }
2210
+ if (isFragment(instance))
2211
+ return getFragmentRect(instance.subTree);
2212
+ else if ((el == null ? void 0 : el.nodeType) === 1)
2213
+ return el == null ? void 0 : el.getBoundingClientRect();
2214
+ else if (instance.subTree.component)
2215
+ return getComponentBoundingRect(instance.subTree.component);
2216
+ else
2217
+ return DEFAULT_RECT;
2218
+ }
2219
+ init_esm_shims();
2220
+ function getRootElementsFromComponentInstance(instance) {
2221
+ if (isFragment(instance))
2222
+ return getFragmentRootElements(instance.subTree);
2223
+ if (!instance.subTree)
2224
+ return [];
2225
+ return [instance.subTree.el];
2226
+ }
2227
+ function getFragmentRootElements(vnode) {
2228
+ if (!vnode.children)
2229
+ return [];
2230
+ const list = [];
2231
+ vnode.children.forEach((childVnode) => {
2232
+ if (childVnode.component)
2233
+ list.push(...getRootElementsFromComponentInstance(childVnode.component));
2234
+ else if (childVnode == null ? void 0 : childVnode.el)
2235
+ list.push(childVnode.el);
2236
+ });
2237
+ return list;
2238
+ }
2239
+ var CONTAINER_ELEMENT_ID = "__vue-devtools-component-inspector__";
2240
+ var CARD_ELEMENT_ID = "__vue-devtools-component-inspector__card__";
2241
+ var COMPONENT_NAME_ELEMENT_ID = "__vue-devtools-component-inspector__name__";
2242
+ var INDICATOR_ELEMENT_ID = "__vue-devtools-component-inspector__indicator__";
2243
+ var containerStyles = {
2244
+ display: "block",
2245
+ zIndex: 2147483640,
2246
+ position: "fixed",
2247
+ backgroundColor: "#42b88325",
2248
+ border: "1px solid #42b88350",
2249
+ borderRadius: "5px",
2250
+ transition: "all 0.1s ease-in",
2251
+ pointerEvents: "none"
2252
+ };
2253
+ var cardStyles = {
2254
+ fontFamily: "Arial, Helvetica, sans-serif",
2255
+ padding: "5px 8px",
2256
+ borderRadius: "4px",
2257
+ textAlign: "left",
2258
+ position: "absolute",
2259
+ left: 0,
2260
+ color: "#e9e9e9",
2261
+ fontSize: "14px",
2262
+ fontWeight: 600,
2263
+ lineHeight: "24px",
2264
+ backgroundColor: "#42b883",
2265
+ boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
2266
+ };
2267
+ var indicatorStyles = {
2268
+ display: "inline-block",
2269
+ fontWeight: 400,
2270
+ fontStyle: "normal",
2271
+ fontSize: "12px",
2272
+ opacity: 0.7
2273
+ };
2274
+ function getContainerElement() {
2275
+ return document.getElementById(CONTAINER_ELEMENT_ID);
2276
+ }
2277
+ function getCardElement() {
2278
+ return document.getElementById(CARD_ELEMENT_ID);
2279
+ }
2280
+ function getIndicatorElement() {
2281
+ return document.getElementById(INDICATOR_ELEMENT_ID);
2282
+ }
2283
+ function getNameElement() {
2284
+ return document.getElementById(COMPONENT_NAME_ELEMENT_ID);
2285
+ }
2286
+ function getStyles(bounds) {
2287
+ return {
2288
+ left: `${Math.round(bounds.left * 100) / 100}px`,
2289
+ top: `${Math.round(bounds.top * 100) / 100}px`,
2290
+ width: `${Math.round(bounds.width * 100) / 100}px`,
2291
+ height: `${Math.round(bounds.height * 100) / 100}px`
2292
+ };
2293
+ }
2294
+ function create(options) {
2295
+ var _a25;
2296
+ const containerEl = document.createElement("div");
2297
+ containerEl.id = (_a25 = options.elementId) != null ? _a25 : CONTAINER_ELEMENT_ID;
2298
+ Object.assign(containerEl.style, {
2299
+ ...containerStyles,
2300
+ ...getStyles(options.bounds),
2301
+ ...options.style
2302
+ });
2303
+ const cardEl = document.createElement("span");
2304
+ cardEl.id = CARD_ELEMENT_ID;
2305
+ Object.assign(cardEl.style, {
2306
+ ...cardStyles,
2307
+ top: options.bounds.top < 35 ? 0 : "-35px"
2308
+ });
2309
+ const nameEl = document.createElement("span");
2310
+ nameEl.id = COMPONENT_NAME_ELEMENT_ID;
2311
+ nameEl.innerHTML = `&lt;${options.name}&gt;&nbsp;&nbsp;`;
2312
+ const indicatorEl = document.createElement("i");
2313
+ indicatorEl.id = INDICATOR_ELEMENT_ID;
2314
+ indicatorEl.innerHTML = `${Math.round(options.bounds.width * 100) / 100} x ${Math.round(options.bounds.height * 100) / 100}`;
2315
+ Object.assign(indicatorEl.style, indicatorStyles);
2316
+ cardEl.appendChild(nameEl);
2317
+ cardEl.appendChild(indicatorEl);
2318
+ containerEl.appendChild(cardEl);
2319
+ document.body.appendChild(containerEl);
2320
+ return containerEl;
2321
+ }
2322
+ function update(options) {
2323
+ const containerEl = getContainerElement();
2324
+ const cardEl = getCardElement();
2325
+ const nameEl = getNameElement();
2326
+ const indicatorEl = getIndicatorElement();
2327
+ if (containerEl) {
2328
+ Object.assign(containerEl.style, {
2329
+ ...containerStyles,
2330
+ ...getStyles(options.bounds)
2331
+ });
2332
+ Object.assign(cardEl.style, {
2333
+ top: options.bounds.top < 35 ? 0 : "-35px"
2334
+ });
2335
+ nameEl.innerHTML = `&lt;${options.name}&gt;&nbsp;&nbsp;`;
2336
+ indicatorEl.innerHTML = `${Math.round(options.bounds.width * 100) / 100} x ${Math.round(options.bounds.height * 100) / 100}`;
2337
+ }
2338
+ }
2339
+ function highlight(instance) {
2340
+ const bounds = getComponentBoundingRect(instance);
2341
+ if (!bounds.width && !bounds.height)
2342
+ return;
2343
+ const name = getInstanceName(instance);
2344
+ const container = getContainerElement();
2345
+ container ? update({ bounds, name }) : create({ bounds, name });
2346
+ }
2347
+ function unhighlight() {
2348
+ const el = getContainerElement();
2349
+ if (el)
2350
+ el.style.display = "none";
2351
+ }
2352
+ var inspectInstance = null;
2353
+ function inspectFn(e) {
2354
+ const target22 = e.target;
2355
+ if (target22) {
2356
+ const instance = target22.__vueParentComponent;
2357
+ if (instance) {
2358
+ inspectInstance = instance;
2359
+ const el = instance.vnode.el;
2360
+ if (el) {
2361
+ const bounds = getComponentBoundingRect(instance);
2362
+ const name = getInstanceName(instance);
2363
+ const container = getContainerElement();
2364
+ container ? update({ bounds, name }) : create({ bounds, name });
2365
+ }
2366
+ }
2367
+ }
2368
+ }
2369
+ function selectComponentFn(e, cb) {
2370
+ e.preventDefault();
2371
+ e.stopPropagation();
2372
+ if (inspectInstance) {
2373
+ const uniqueComponentId = getUniqueComponentId(inspectInstance);
2374
+ cb(uniqueComponentId);
2375
+ }
2376
+ }
2377
+ var inspectComponentHighLighterSelectFn = null;
2378
+ function cancelInspectComponentHighLighter() {
2379
+ unhighlight();
2380
+ window.removeEventListener("mouseover", inspectFn);
2381
+ window.removeEventListener("click", inspectComponentHighLighterSelectFn, true);
2382
+ inspectComponentHighLighterSelectFn = null;
2383
+ }
2384
+ function inspectComponentHighLighter() {
2385
+ window.addEventListener("mouseover", inspectFn);
2386
+ return new Promise((resolve) => {
2387
+ function onSelect(e) {
2388
+ e.preventDefault();
2389
+ e.stopPropagation();
2390
+ selectComponentFn(e, (id) => {
2391
+ window.removeEventListener("click", onSelect, true);
2392
+ inspectComponentHighLighterSelectFn = null;
2393
+ window.removeEventListener("mouseover", inspectFn);
2394
+ const el = getContainerElement();
2395
+ if (el)
2396
+ el.style.display = "none";
2397
+ resolve(JSON.stringify({ id }));
2398
+ });
2399
+ }
2400
+ inspectComponentHighLighterSelectFn = onSelect;
2401
+ window.addEventListener("click", onSelect, true);
2402
+ });
2403
+ }
2404
+ function scrollToComponent(options) {
2405
+ const instance = getComponentInstance(activeAppRecord.value, options.id);
2406
+ if (instance) {
2407
+ const [el] = getRootElementsFromComponentInstance(instance);
2408
+ if (typeof el.scrollIntoView === "function") {
2409
+ el.scrollIntoView({
2410
+ behavior: "smooth"
2411
+ });
2412
+ } else {
2413
+ const bounds = getComponentBoundingRect(instance);
2414
+ const scrollTarget = document.createElement("div");
2415
+ const styles = {
2416
+ ...getStyles(bounds),
2417
+ position: "absolute"
2418
+ };
2419
+ Object.assign(scrollTarget.style, styles);
2420
+ document.body.appendChild(scrollTarget);
2421
+ scrollTarget.scrollIntoView({
2422
+ behavior: "smooth"
2423
+ });
2424
+ setTimeout(() => {
2425
+ document.body.removeChild(scrollTarget);
2426
+ }, 2e3);
2427
+ }
2428
+ setTimeout(() => {
2429
+ const bounds = getComponentBoundingRect(instance);
2430
+ if (bounds.width || bounds.height) {
2431
+ const name = getInstanceName(instance);
2432
+ const el2 = getContainerElement();
2433
+ el2 ? update({ ...options, name, bounds }) : create({ ...options, name, bounds });
2434
+ setTimeout(() => {
2435
+ if (el2)
2436
+ el2.style.display = "none";
2437
+ }, 1500);
2438
+ }
2439
+ }, 1200);
2440
+ }
2441
+ }
2442
+ init_esm_shims();
2443
+ var _a, _b;
2444
+ (_b = (_a = target).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null ? _b : _a.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = true;
2445
+ function waitForInspectorInit(cb) {
2446
+ let total = 0;
2447
+ const timer = setInterval(() => {
2448
+ if (target.__VUE_INSPECTOR__) {
2449
+ clearInterval(timer);
2450
+ total += 30;
2451
+ cb();
2452
+ }
2453
+ if (total >= /* 5s */
2454
+ 5e3)
2455
+ clearInterval(timer);
2456
+ }, 30);
2457
+ }
2458
+ function setupInspector() {
2459
+ const inspector = target.__VUE_INSPECTOR__;
2460
+ const _openInEditor = inspector.openInEditor;
2461
+ inspector.openInEditor = async (...params) => {
2462
+ inspector.disable();
2463
+ _openInEditor(...params);
2464
+ };
2465
+ }
2466
+ function getComponentInspector() {
2467
+ return new Promise((resolve) => {
2468
+ function setup() {
2469
+ setupInspector();
2470
+ resolve(target.__VUE_INSPECTOR__);
2471
+ }
2472
+ if (!target.__VUE_INSPECTOR__) {
2473
+ waitForInspectorInit(() => {
2474
+ setup();
2475
+ });
2476
+ } else {
2477
+ setup();
2478
+ }
2479
+ });
2480
+ }
2481
+ init_esm_shims();
2482
+ init_esm_shims();
2483
+ function isReadonly(value) {
2484
+ return !!(value && value[
2485
+ "__v_isReadonly"
2486
+ /* IS_READONLY */
2487
+ ]);
2488
+ }
2489
+ function isReactive(value) {
2490
+ if (isReadonly(value)) {
2491
+ return isReactive(value[
2492
+ "__v_raw"
2493
+ /* RAW */
2494
+ ]);
2495
+ }
2496
+ return !!(value && value[
2497
+ "__v_isReactive"
2498
+ /* IS_REACTIVE */
2499
+ ]);
2500
+ }
2501
+ function isRef(r) {
2502
+ return !!(r && r.__v_isRef === true);
2503
+ }
2504
+ function toRaw(observed) {
2505
+ const raw = observed && observed[
2506
+ "__v_raw"
2507
+ /* RAW */
2508
+ ];
2509
+ return raw ? toRaw(raw) : observed;
2510
+ }
2511
+ var StateEditor = class {
2512
+ constructor() {
2513
+ this.refEditor = new RefStateEditor();
2514
+ }
2515
+ set(object, path, value, cb) {
2516
+ const sections = Array.isArray(path) ? path : path.split(".");
2517
+ while (sections.length > 1) {
2518
+ const section = sections.shift();
2519
+ if (object instanceof Map)
2520
+ object = object.get(section);
2521
+ else if (object instanceof Set)
2522
+ object = Array.from(object.values())[section];
2523
+ else object = object[section];
2524
+ if (this.refEditor.isRef(object))
2525
+ object = this.refEditor.get(object);
2526
+ }
2527
+ const field = sections[0];
2528
+ const item = this.refEditor.get(object)[field];
2529
+ if (cb) {
2530
+ cb(object, field, value);
2531
+ } else {
2532
+ if (this.refEditor.isRef(item))
2533
+ this.refEditor.set(item, value);
2534
+ else object[field] = value;
2535
+ }
2536
+ }
2537
+ get(object, path) {
2538
+ const sections = Array.isArray(path) ? path : path.split(".");
2539
+ for (let i = 0; i < sections.length; i++) {
2540
+ if (object instanceof Map)
2541
+ object = object.get(sections[i]);
2542
+ else
2543
+ object = object[sections[i]];
2544
+ if (this.refEditor.isRef(object))
2545
+ object = this.refEditor.get(object);
2546
+ if (!object)
2547
+ return void 0;
2548
+ }
2549
+ return object;
2550
+ }
2551
+ has(object, path, parent = false) {
2552
+ if (typeof object === "undefined")
2553
+ return false;
2554
+ const sections = Array.isArray(path) ? path.slice() : path.split(".");
2555
+ const size = !parent ? 1 : 2;
2556
+ while (object && sections.length > size) {
2557
+ const section = sections.shift();
2558
+ object = object[section];
2559
+ if (this.refEditor.isRef(object))
2560
+ object = this.refEditor.get(object);
2561
+ }
2562
+ return object != null && Object.prototype.hasOwnProperty.call(object, sections[0]);
2563
+ }
2564
+ createDefaultSetCallback(state) {
2565
+ return (object, field, value) => {
2566
+ if (state.remove || state.newKey) {
2567
+ if (Array.isArray(object))
2568
+ object.splice(field, 1);
2569
+ else if (toRaw(object) instanceof Map)
2570
+ object.delete(field);
2571
+ else if (toRaw(object) instanceof Set)
2572
+ object.delete(Array.from(object.values())[field]);
2573
+ else Reflect.deleteProperty(object, field);
2574
+ }
2575
+ if (!state.remove) {
2576
+ const target22 = object[state.newKey || field];
2577
+ if (this.refEditor.isRef(target22))
2578
+ this.refEditor.set(target22, value);
2579
+ else if (toRaw(object) instanceof Map)
2580
+ object.set(state.newKey || field, value);
2581
+ else if (toRaw(object) instanceof Set)
2582
+ object.add(value);
2583
+ else
2584
+ object[state.newKey || field] = value;
2585
+ }
2586
+ };
2587
+ }
2588
+ };
2589
+ var RefStateEditor = class {
2590
+ set(ref, value) {
2591
+ if (isRef(ref)) {
2592
+ ref.value = value;
2593
+ } else {
2594
+ if (ref instanceof Set && Array.isArray(value)) {
2595
+ ref.clear();
2596
+ value.forEach((v) => ref.add(v));
2597
+ return;
2598
+ }
2599
+ const currentKeys = Object.keys(value);
2600
+ if (ref instanceof Map) {
2601
+ const previousKeysSet2 = new Set(ref.keys());
2602
+ currentKeys.forEach((key) => {
2603
+ ref.set(key, Reflect.get(value, key));
2604
+ previousKeysSet2.delete(key);
2605
+ });
2606
+ previousKeysSet2.forEach((key) => ref.delete(key));
2607
+ return;
2608
+ }
2609
+ const previousKeysSet = new Set(Object.keys(ref));
2610
+ currentKeys.forEach((key) => {
2611
+ Reflect.set(ref, key, Reflect.get(value, key));
2612
+ previousKeysSet.delete(key);
2613
+ });
2614
+ previousKeysSet.forEach((key) => Reflect.deleteProperty(ref, key));
2615
+ }
2616
+ }
2617
+ get(ref) {
2618
+ return isRef(ref) ? ref.value : ref;
2619
+ }
2620
+ isRef(ref) {
2621
+ return isRef(ref) || isReactive(ref);
2622
+ }
2623
+ };
2624
+ init_esm_shims();
2625
+ init_esm_shims();
2626
+ init_esm_shims();
2627
+ var TIMELINE_LAYERS_STATE_STORAGE_ID = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
2628
+ function getTimelineLayersStateFromStorage() {
2629
+ if (!isBrowser || typeof localStorage === "undefined" || localStorage === null) {
2630
+ return {
2631
+ recordingState: false,
2632
+ mouseEventEnabled: false,
2633
+ keyboardEventEnabled: false,
2634
+ componentEventEnabled: false,
2635
+ performanceEventEnabled: false,
2636
+ selected: ""
2637
+ };
2638
+ }
2639
+ const state = localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID);
2640
+ return state ? JSON.parse(state) : {
2641
+ recordingState: false,
2642
+ mouseEventEnabled: false,
2643
+ keyboardEventEnabled: false,
2644
+ componentEventEnabled: false,
2645
+ performanceEventEnabled: false,
2646
+ selected: ""
2647
+ };
2648
+ }
2649
+ init_esm_shims();
2650
+ init_esm_shims();
2651
+ init_esm_shims();
2652
+ var _a2, _b2;
2653
+ (_b2 = (_a2 = target).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null ? _b2 : _a2.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = [];
2654
+ var devtoolsTimelineLayers = new Proxy(target.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
2655
+ get(target22, prop, receiver) {
2656
+ return Reflect.get(target22, prop, receiver);
2657
+ }
2658
+ });
2659
+ function addTimelineLayer(options, descriptor) {
2660
+ devtoolsState.timelineLayersState[descriptor.id] = false;
2661
+ devtoolsTimelineLayers.push({
2662
+ ...options,
2663
+ descriptorId: descriptor.id,
2664
+ appRecord: getAppRecord(descriptor.app)
2665
+ });
2666
+ }
2667
+ var _a3, _b3;
2668
+ (_b3 = (_a3 = target).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null ? _b3 : _a3.__VUE_DEVTOOLS_KIT_INSPECTOR__ = [];
2669
+ var devtoolsInspector = new Proxy(target.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
2670
+ get(target22, prop, receiver) {
2671
+ return Reflect.get(target22, prop, receiver);
2672
+ }
2673
+ });
2674
+ var callInspectorUpdatedHook = debounce(() => {
2675
+ devtoolsContext.hooks.callHook("sendInspectorToClient", getActiveInspectors());
2676
+ });
2677
+ function addInspector(inspector, descriptor) {
2678
+ var _a25, _b25;
2679
+ devtoolsInspector.push({
2680
+ options: inspector,
2681
+ descriptor,
2682
+ treeFilterPlaceholder: (_a25 = inspector.treeFilterPlaceholder) != null ? _a25 : "Search tree...",
2683
+ stateFilterPlaceholder: (_b25 = inspector.stateFilterPlaceholder) != null ? _b25 : "Search state...",
2684
+ treeFilter: "",
2685
+ selectedNodeId: "",
2686
+ appRecord: getAppRecord(descriptor.app)
2687
+ });
2688
+ callInspectorUpdatedHook();
2689
+ }
2690
+ function getActiveInspectors() {
2691
+ return devtoolsInspector.filter((inspector) => inspector.descriptor.app === activeAppRecord.value.app).filter((inspector) => inspector.descriptor.id !== "components").map((inspector) => {
2692
+ var _a25;
2693
+ const descriptor = inspector.descriptor;
2694
+ const options = inspector.options;
2695
+ return {
2696
+ id: options.id,
2697
+ label: options.label,
2698
+ logo: descriptor.logo,
2699
+ icon: `custom-ic-baseline-${(_a25 = options == null ? void 0 : options.icon) == null ? void 0 : _a25.replace(/_/g, "-")}`,
2700
+ packageName: descriptor.packageName,
2701
+ homepage: descriptor.homepage,
2702
+ pluginId: descriptor.id
2703
+ };
2704
+ });
2705
+ }
2706
+ function getInspector(id, app) {
2707
+ return devtoolsInspector.find((inspector) => inspector.options.id === id && (app ? inspector.descriptor.app === app : true));
2708
+ }
2709
+ function createDevToolsCtxHooks() {
2710
+ const hooks2 = createHooks();
2711
+ hooks2.hook("addInspector", ({ inspector, plugin }) => {
2712
+ addInspector(inspector, plugin.descriptor);
2713
+ });
2714
+ const debounceSendInspectorTree = debounce(async ({ inspectorId, plugin }) => {
2715
+ var _a25;
2716
+ if (!inspectorId || !((_a25 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a25.app) || devtoolsState.highPerfModeEnabled)
2717
+ return;
2718
+ const inspector = getInspector(inspectorId, plugin.descriptor.app);
2719
+ const _payload = {
2720
+ app: plugin.descriptor.app,
2721
+ inspectorId,
2722
+ filter: (inspector == null ? void 0 : inspector.treeFilter) || "",
2723
+ rootNodes: []
2724
+ };
2725
+ await new Promise((resolve) => {
2726
+ hooks2.callHookWith(
2727
+ async (callbacks) => {
2728
+ await Promise.all(callbacks.map((cb) => cb(_payload)));
2729
+ resolve();
2730
+ },
2731
+ "getInspectorTree"
2732
+ /* GET_INSPECTOR_TREE */
2733
+ );
2734
+ });
2735
+ hooks2.callHookWith(
2736
+ async (callbacks) => {
2737
+ await Promise.all(callbacks.map((cb) => cb({
2738
+ inspectorId,
2739
+ rootNodes: _payload.rootNodes
2740
+ })));
2741
+ },
2742
+ "sendInspectorTreeToClient"
2743
+ /* SEND_INSPECTOR_TREE_TO_CLIENT */
2744
+ );
2745
+ }, 120);
2746
+ hooks2.hook("sendInspectorTree", debounceSendInspectorTree);
2747
+ const debounceSendInspectorState = debounce(async ({ inspectorId, plugin }) => {
2748
+ var _a25;
2749
+ if (!inspectorId || !((_a25 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a25.app) || devtoolsState.highPerfModeEnabled)
2750
+ return;
2751
+ const inspector = getInspector(inspectorId, plugin.descriptor.app);
2752
+ const _payload = {
2753
+ app: plugin.descriptor.app,
2754
+ inspectorId,
2755
+ nodeId: (inspector == null ? void 0 : inspector.selectedNodeId) || "",
2756
+ state: null
2757
+ };
2758
+ const ctx = {
2759
+ currentTab: `custom-inspector:${inspectorId}`
2760
+ };
2761
+ if (_payload.nodeId) {
2762
+ await new Promise((resolve) => {
2763
+ hooks2.callHookWith(
2764
+ async (callbacks) => {
2765
+ await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
2766
+ resolve();
2767
+ },
2768
+ "getInspectorState"
2769
+ /* GET_INSPECTOR_STATE */
2770
+ );
2771
+ });
2772
+ }
2773
+ hooks2.callHookWith(
2774
+ async (callbacks) => {
2775
+ await Promise.all(callbacks.map((cb) => cb({
2776
+ inspectorId,
2777
+ nodeId: _payload.nodeId,
2778
+ state: _payload.state
2779
+ })));
2780
+ },
2781
+ "sendInspectorStateToClient"
2782
+ /* SEND_INSPECTOR_STATE_TO_CLIENT */
2783
+ );
2784
+ }, 120);
2785
+ hooks2.hook("sendInspectorState", debounceSendInspectorState);
2786
+ hooks2.hook("customInspectorSelectNode", ({ inspectorId, nodeId, plugin }) => {
2787
+ const inspector = getInspector(inspectorId, plugin.descriptor.app);
2788
+ if (!inspector)
2789
+ return;
2790
+ inspector.selectedNodeId = nodeId;
2791
+ });
2792
+ hooks2.hook("timelineLayerAdded", ({ options, plugin }) => {
2793
+ addTimelineLayer(options, plugin.descriptor);
2794
+ });
2795
+ hooks2.hook("timelineEventAdded", ({ options, plugin }) => {
2796
+ var _a25;
2797
+ const internalLayerIds = ["performance", "component-event", "keyboard", "mouse"];
2798
+ if (devtoolsState.highPerfModeEnabled || !((_a25 = devtoolsState.timelineLayersState) == null ? void 0 : _a25[plugin.descriptor.id]) && !internalLayerIds.includes(options.layerId))
2799
+ return;
2800
+ hooks2.callHookWith(
2801
+ async (callbacks) => {
2802
+ await Promise.all(callbacks.map((cb) => cb(options)));
2803
+ },
2804
+ "sendTimelineEventToClient"
2805
+ /* SEND_TIMELINE_EVENT_TO_CLIENT */
2806
+ );
2807
+ });
2808
+ hooks2.hook("getComponentInstances", async ({ app }) => {
2809
+ const appRecord = app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2810
+ if (!appRecord)
2811
+ return null;
2812
+ const appId = appRecord.id.toString();
2813
+ const instances = [...appRecord.instanceMap].filter(([key]) => key.split(":")[0] === appId).map(([, instance]) => instance);
2814
+ return instances;
2815
+ });
2816
+ hooks2.hook("getComponentBounds", async ({ instance }) => {
2817
+ const bounds = getComponentBoundingRect(instance);
2818
+ return bounds;
2819
+ });
2820
+ hooks2.hook("getComponentName", ({ instance }) => {
2821
+ const name = getInstanceName(instance);
2822
+ return name;
2823
+ });
2824
+ hooks2.hook("componentHighlight", ({ uid }) => {
2825
+ const instance = activeAppRecord.value.instanceMap.get(uid);
2826
+ if (instance) {
2827
+ highlight(instance);
2828
+ }
2829
+ });
2830
+ hooks2.hook("componentUnhighlight", () => {
2831
+ unhighlight();
2832
+ });
2833
+ return hooks2;
2834
+ }
2835
+ var _a4, _b4;
2836
+ (_b4 = (_a4 = target).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null ? _b4 : _a4.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = [];
2837
+ var _a5, _b5;
2838
+ (_b5 = (_a5 = target).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null ? _b5 : _a5.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {};
2839
+ var _a6, _b6;
2840
+ (_b6 = (_a6 = target).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null ? _b6 : _a6.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "";
2841
+ var _a7, _b7;
2842
+ (_b7 = (_a7 = target).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null ? _b7 : _a7.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = [];
2843
+ var _a8, _b8;
2844
+ (_b8 = (_a8 = target).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null ? _b8 : _a8.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = [];
2845
+ var STATE_KEY = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
2846
+ function initStateFactory() {
2847
+ return {
2848
+ connected: false,
2849
+ clientConnected: false,
2850
+ vitePluginDetected: true,
2851
+ appRecords: [],
2852
+ activeAppRecordId: "",
2853
+ tabs: [],
2854
+ commands: [],
2855
+ highPerfModeEnabled: true,
2856
+ devtoolsClientDetected: {},
2857
+ perfUniqueGroupId: 0,
2858
+ timelineLayersState: getTimelineLayersStateFromStorage()
2859
+ };
2860
+ }
2861
+ var _a9, _b9;
2862
+ (_b9 = (_a9 = target)[STATE_KEY]) != null ? _b9 : _a9[STATE_KEY] = initStateFactory();
2863
+ var callStateUpdatedHook = debounce((state) => {
2864
+ devtoolsContext.hooks.callHook("devtoolsStateUpdated", { state });
2865
+ });
2866
+ debounce((state, oldState) => {
2867
+ devtoolsContext.hooks.callHook("devtoolsConnectedUpdated", { state, oldState });
2868
+ });
2869
+ var devtoolsAppRecords = new Proxy(target.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
2870
+ get(_target, prop, receiver) {
2871
+ if (prop === "value")
2872
+ return target.__VUE_DEVTOOLS_KIT_APP_RECORDS__;
2873
+ return target.__VUE_DEVTOOLS_KIT_APP_RECORDS__[prop];
2874
+ }
2875
+ });
2876
+ var activeAppRecord = new Proxy(target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
2877
+ get(_target, prop, receiver) {
2878
+ if (prop === "value")
2879
+ return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__;
2880
+ else if (prop === "id")
2881
+ return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__;
2882
+ return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[prop];
2883
+ }
2884
+ });
2885
+ function updateAllStates() {
2886
+ callStateUpdatedHook({
2887
+ ...target[STATE_KEY],
2888
+ appRecords: devtoolsAppRecords.value,
2889
+ activeAppRecordId: activeAppRecord.id,
2890
+ tabs: target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
2891
+ commands: target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
2892
+ });
2893
+ }
2894
+ function setActiveAppRecord(app) {
2895
+ target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = app;
2896
+ updateAllStates();
2897
+ }
2898
+ function setActiveAppRecordId(id) {
2899
+ target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = id;
2900
+ updateAllStates();
2901
+ }
2902
+ var devtoolsState = new Proxy(target[STATE_KEY], {
2903
+ get(target22, property) {
2904
+ if (property === "appRecords") {
2905
+ return devtoolsAppRecords;
2906
+ } else if (property === "activeAppRecordId") {
2907
+ return activeAppRecord.id;
2908
+ } else if (property === "tabs") {
2909
+ return target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;
2910
+ } else if (property === "commands") {
2911
+ return target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
2912
+ }
2913
+ return target[STATE_KEY][property];
2914
+ },
2915
+ deleteProperty(target22, property) {
2916
+ delete target22[property];
2917
+ return true;
2918
+ },
2919
+ set(target22, property, value) {
2920
+ ({ ...target[STATE_KEY] });
2921
+ target22[property] = value;
2922
+ target[STATE_KEY][property] = value;
2923
+ return true;
2924
+ }
2925
+ });
2926
+ function openInEditor(options = {}) {
2927
+ var _a25, _b25, _c;
2928
+ const { file, host, baseUrl = window.location.origin, line = 0, column = 0 } = options;
2929
+ if (file) {
2930
+ if (host === "chrome-extension") {
2931
+ const fileName = file.replace(/\\/g, "\\\\");
2932
+ const _baseUrl = (_b25 = (_a25 = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : _a25.openInEditorHost) != null ? _b25 : "/";
2933
+ fetch(`${_baseUrl}__open-in-editor?file=${encodeURI(file)}`).then((response) => {
2934
+ if (!response.ok) {
2935
+ const msg = `Opening component ${fileName} failed`;
2936
+ console.log(`%c${msg}`, "color:red");
2937
+ }
2938
+ });
2939
+ } else if (devtoolsState.vitePluginDetected) {
2940
+ const _baseUrl = (_c = target.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? _c : baseUrl;
2941
+ target.__VUE_INSPECTOR__.openInEditor(_baseUrl, file, line, column);
2942
+ }
2943
+ }
2944
+ }
2945
+ init_esm_shims();
2946
+ init_esm_shims();
2947
+ init_esm_shims();
2948
+ init_esm_shims();
2949
+ init_esm_shims();
2950
+ var _a10, _b10;
2951
+ (_b10 = (_a10 = target).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null ? _b10 : _a10.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = [];
2952
+ var devtoolsPluginBuffer = new Proxy(target.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
2953
+ get(target22, prop, receiver) {
2954
+ return Reflect.get(target22, prop, receiver);
2955
+ }
2956
+ });
2957
+ function _getSettings(settings) {
2958
+ const _settings = {};
2959
+ Object.keys(settings).forEach((key) => {
2960
+ _settings[key] = settings[key].defaultValue;
2961
+ });
2962
+ return _settings;
2963
+ }
2964
+ function getPluginLocalKey(pluginId) {
2965
+ return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${pluginId}__`;
2966
+ }
2967
+ function getPluginSettingsOptions(pluginId) {
2968
+ var _a25, _b25, _c;
2969
+ const item = (_b25 = (_a25 = devtoolsPluginBuffer.find((item2) => {
2970
+ var _a26;
2971
+ return item2[0].id === pluginId && !!((_a26 = item2[0]) == null ? void 0 : _a26.settings);
2972
+ })) == null ? void 0 : _a25[0]) != null ? _b25 : null;
2973
+ return (_c = item == null ? void 0 : item.settings) != null ? _c : null;
2974
+ }
2975
+ function getPluginSettings(pluginId, fallbackValue) {
2976
+ var _a25, _b25, _c;
2977
+ const localKey = getPluginLocalKey(pluginId);
2978
+ if (localKey) {
2979
+ const localSettings = localStorage.getItem(localKey);
2980
+ if (localSettings) {
2981
+ return JSON.parse(localSettings);
2982
+ }
2983
+ }
2984
+ if (pluginId) {
2985
+ const item = (_b25 = (_a25 = devtoolsPluginBuffer.find((item2) => item2[0].id === pluginId)) == null ? void 0 : _a25[0]) != null ? _b25 : null;
2986
+ return _getSettings((_c = item == null ? void 0 : item.settings) != null ? _c : {});
2987
+ }
2988
+ return _getSettings(fallbackValue);
2989
+ }
2990
+ function initPluginSettings(pluginId, settings) {
2991
+ const localKey = getPluginLocalKey(pluginId);
2992
+ const localSettings = localStorage.getItem(localKey);
2993
+ if (!localSettings) {
2994
+ localStorage.setItem(localKey, JSON.stringify(_getSettings(settings)));
2995
+ }
2996
+ }
2997
+ function setPluginSettings(pluginId, key, value) {
2998
+ const localKey = getPluginLocalKey(pluginId);
2999
+ const localSettings = localStorage.getItem(localKey);
3000
+ const parsedLocalSettings = JSON.parse(localSettings || "{}");
3001
+ const updated = {
3002
+ ...parsedLocalSettings,
3003
+ [key]: value
3004
+ };
3005
+ localStorage.setItem(localKey, JSON.stringify(updated));
3006
+ devtoolsContext.hooks.callHookWith(
3007
+ (callbacks) => {
3008
+ callbacks.forEach((cb) => cb({
3009
+ pluginId,
3010
+ key,
3011
+ oldValue: parsedLocalSettings[key],
3012
+ newValue: value,
3013
+ settings: updated
3014
+ }));
3015
+ },
3016
+ "setPluginSettings"
3017
+ /* SET_PLUGIN_SETTINGS */
3018
+ );
3019
+ }
3020
+ init_esm_shims();
3021
+ init_esm_shims();
3022
+ init_esm_shims();
3023
+ init_esm_shims();
3024
+ init_esm_shims();
3025
+ init_esm_shims();
3026
+ init_esm_shims();
3027
+ init_esm_shims();
3028
+ init_esm_shims();
3029
+ init_esm_shims();
3030
+ init_esm_shims();
3031
+ var _a11, _b11;
3032
+ var devtoolsHooks = (_b11 = (_a11 = target).__VUE_DEVTOOLS_HOOK) != null ? _b11 : _a11.__VUE_DEVTOOLS_HOOK = createHooks();
3033
+ var on = {
3034
+ vueAppInit(fn) {
3035
+ devtoolsHooks.hook("app:init", fn);
3036
+ },
3037
+ vueAppUnmount(fn) {
3038
+ devtoolsHooks.hook("app:unmount", fn);
3039
+ },
3040
+ vueAppConnected(fn) {
3041
+ devtoolsHooks.hook("app:connected", fn);
3042
+ },
3043
+ componentAdded(fn) {
3044
+ return devtoolsHooks.hook("component:added", fn);
3045
+ },
3046
+ componentEmit(fn) {
3047
+ return devtoolsHooks.hook("component:emit", fn);
3048
+ },
3049
+ componentUpdated(fn) {
3050
+ return devtoolsHooks.hook("component:updated", fn);
3051
+ },
3052
+ componentRemoved(fn) {
3053
+ return devtoolsHooks.hook("component:removed", fn);
3054
+ },
3055
+ setupDevtoolsPlugin(fn) {
3056
+ devtoolsHooks.hook("devtools-plugin:setup", fn);
3057
+ },
3058
+ perfStart(fn) {
3059
+ return devtoolsHooks.hook("perf:start", fn);
3060
+ },
3061
+ perfEnd(fn) {
3062
+ return devtoolsHooks.hook("perf:end", fn);
3063
+ }
3064
+ };
3065
+ var hook = {
3066
+ on,
3067
+ setupDevToolsPlugin(pluginDescriptor, setupFn) {
3068
+ return devtoolsHooks.callHook("devtools-plugin:setup", pluginDescriptor, setupFn);
3069
+ }
3070
+ };
3071
+ var DevToolsV6PluginAPI = class {
3072
+ constructor({ plugin, ctx }) {
3073
+ this.hooks = ctx.hooks;
3074
+ this.plugin = plugin;
3075
+ }
3076
+ get on() {
3077
+ return {
3078
+ // component inspector
3079
+ visitComponentTree: (handler) => {
3080
+ this.hooks.hook("visitComponentTree", handler);
3081
+ },
3082
+ inspectComponent: (handler) => {
3083
+ this.hooks.hook("inspectComponent", handler);
3084
+ },
3085
+ editComponentState: (handler) => {
3086
+ this.hooks.hook("editComponentState", handler);
3087
+ },
3088
+ // custom inspector
3089
+ getInspectorTree: (handler) => {
3090
+ this.hooks.hook("getInspectorTree", handler);
3091
+ },
3092
+ getInspectorState: (handler) => {
3093
+ this.hooks.hook("getInspectorState", handler);
3094
+ },
3095
+ editInspectorState: (handler) => {
3096
+ this.hooks.hook("editInspectorState", handler);
3097
+ },
3098
+ // timeline
3099
+ inspectTimelineEvent: (handler) => {
3100
+ this.hooks.hook("inspectTimelineEvent", handler);
3101
+ },
3102
+ timelineCleared: (handler) => {
3103
+ this.hooks.hook("timelineCleared", handler);
3104
+ },
3105
+ // settings
3106
+ setPluginSettings: (handler) => {
3107
+ this.hooks.hook("setPluginSettings", handler);
3108
+ }
3109
+ };
3110
+ }
3111
+ // component inspector
3112
+ notifyComponentUpdate(instance) {
3113
+ var _a25;
3114
+ if (devtoolsState.highPerfModeEnabled) {
3115
+ return;
3116
+ }
3117
+ const inspector = getActiveInspectors().find((i) => i.packageName === this.plugin.descriptor.packageName);
3118
+ if (inspector == null ? void 0 : inspector.id) {
3119
+ if (instance) {
3120
+ const args = [
3121
+ instance.appContext.app,
3122
+ instance.uid,
3123
+ (_a25 = instance.parent) == null ? void 0 : _a25.uid,
3124
+ instance
3125
+ ];
3126
+ devtoolsHooks.callHook("component:updated", ...args);
3127
+ } else {
3128
+ devtoolsHooks.callHook(
3129
+ "component:updated"
3130
+ /* COMPONENT_UPDATED */
3131
+ );
3132
+ }
3133
+ this.hooks.callHook("sendInspectorState", { inspectorId: inspector.id, plugin: this.plugin });
3134
+ }
3135
+ }
3136
+ // custom inspector
3137
+ addInspector(options) {
3138
+ this.hooks.callHook("addInspector", { inspector: options, plugin: this.plugin });
3139
+ if (this.plugin.descriptor.settings) {
3140
+ initPluginSettings(options.id, this.plugin.descriptor.settings);
3141
+ }
3142
+ }
3143
+ sendInspectorTree(inspectorId) {
3144
+ if (devtoolsState.highPerfModeEnabled) {
3145
+ return;
3146
+ }
3147
+ this.hooks.callHook("sendInspectorTree", { inspectorId, plugin: this.plugin });
3148
+ }
3149
+ sendInspectorState(inspectorId) {
3150
+ if (devtoolsState.highPerfModeEnabled) {
3151
+ return;
3152
+ }
3153
+ this.hooks.callHook("sendInspectorState", { inspectorId, plugin: this.plugin });
3154
+ }
3155
+ selectInspectorNode(inspectorId, nodeId) {
3156
+ this.hooks.callHook("customInspectorSelectNode", { inspectorId, nodeId, plugin: this.plugin });
3157
+ }
3158
+ visitComponentTree(payload) {
3159
+ return this.hooks.callHook("visitComponentTree", payload);
3160
+ }
3161
+ // timeline
3162
+ now() {
3163
+ if (devtoolsState.highPerfModeEnabled) {
3164
+ return 0;
3165
+ }
3166
+ return Date.now();
3167
+ }
3168
+ addTimelineLayer(options) {
3169
+ this.hooks.callHook("timelineLayerAdded", { options, plugin: this.plugin });
3170
+ }
3171
+ addTimelineEvent(options) {
3172
+ if (devtoolsState.highPerfModeEnabled) {
3173
+ return;
3174
+ }
3175
+ this.hooks.callHook("timelineEventAdded", { options, plugin: this.plugin });
3176
+ }
3177
+ // settings
3178
+ getSettings(pluginId) {
3179
+ return getPluginSettings(pluginId != null ? pluginId : this.plugin.descriptor.id, this.plugin.descriptor.settings);
3180
+ }
3181
+ // utilities
3182
+ getComponentInstances(app) {
3183
+ return this.hooks.callHook("getComponentInstances", { app });
3184
+ }
3185
+ getComponentBounds(instance) {
3186
+ return this.hooks.callHook("getComponentBounds", { instance });
3187
+ }
3188
+ getComponentName(instance) {
3189
+ return this.hooks.callHook("getComponentName", { instance });
3190
+ }
3191
+ highlightElement(instance) {
3192
+ const uid = instance.__VUE_DEVTOOLS_NEXT_UID__;
3193
+ return this.hooks.callHook("componentHighlight", { uid });
3194
+ }
3195
+ unhighlightElement() {
3196
+ return this.hooks.callHook(
3197
+ "componentUnhighlight"
3198
+ /* COMPONENT_UNHIGHLIGHT */
3199
+ );
3200
+ }
3201
+ };
3202
+ var DevToolsPluginAPI = DevToolsV6PluginAPI;
3203
+ init_esm_shims();
3204
+ init_esm_shims();
3205
+ init_esm_shims();
3206
+ init_esm_shims();
3207
+ var UNDEFINED = "__vue_devtool_undefined__";
3208
+ var INFINITY = "__vue_devtool_infinity__";
3209
+ var NEGATIVE_INFINITY = "__vue_devtool_negative_infinity__";
3210
+ var NAN = "__vue_devtool_nan__";
3211
+ init_esm_shims();
3212
+ init_esm_shims();
3213
+ var tokenMap = {
3214
+ [UNDEFINED]: "undefined",
3215
+ [NAN]: "NaN",
3216
+ [INFINITY]: "Infinity",
3217
+ [NEGATIVE_INFINITY]: "-Infinity"
3218
+ };
3219
+ Object.entries(tokenMap).reduce((acc, [key, value]) => {
3220
+ acc[value] = key;
3221
+ return acc;
3222
+ }, {});
3223
+ init_esm_shims();
3224
+ init_esm_shims();
3225
+ init_esm_shims();
3226
+ init_esm_shims();
3227
+ init_esm_shims();
3228
+ var _a12, _b12;
3229
+ (_b12 = (_a12 = target).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null ? _b12 : _a12.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set();
3230
+ function setupDevToolsPlugin(pluginDescriptor, setupFn) {
3231
+ return hook.setupDevToolsPlugin(pluginDescriptor, setupFn);
3232
+ }
3233
+ function callDevToolsPluginSetupFn(plugin, app) {
3234
+ const [pluginDescriptor, setupFn] = plugin;
3235
+ if (pluginDescriptor.app !== app)
3236
+ return;
3237
+ const api = new DevToolsPluginAPI({
3238
+ plugin: {
3239
+ setupFn,
3240
+ descriptor: pluginDescriptor
3241
+ },
3242
+ ctx: devtoolsContext
3243
+ });
3244
+ if (pluginDescriptor.packageName === "vuex") {
3245
+ api.on.editInspectorState((payload) => {
3246
+ api.sendInspectorState(payload.inspectorId);
3247
+ });
3248
+ }
3249
+ setupFn(api);
3250
+ }
3251
+ function registerDevToolsPlugin(app, options) {
3252
+ if (target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app)) {
3253
+ return;
3254
+ }
3255
+ if (devtoolsState.highPerfModeEnabled && !(options == null ? void 0 : options.inspectingComponent)) {
3256
+ return;
3257
+ }
3258
+ target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(app);
3259
+ devtoolsPluginBuffer.forEach((plugin) => {
3260
+ callDevToolsPluginSetupFn(plugin, app);
3261
+ });
3262
+ }
3263
+ init_esm_shims();
3264
+ init_esm_shims();
3265
+ var ROUTER_KEY = "__VUE_DEVTOOLS_ROUTER__";
3266
+ var ROUTER_INFO_KEY = "__VUE_DEVTOOLS_ROUTER_INFO__";
3267
+ var _a13, _b13;
3268
+ (_b13 = (_a13 = target)[ROUTER_INFO_KEY]) != null ? _b13 : _a13[ROUTER_INFO_KEY] = {
3269
+ currentRoute: null,
3270
+ routes: []
3271
+ };
3272
+ var _a14, _b14;
3273
+ (_b14 = (_a14 = target)[ROUTER_KEY]) != null ? _b14 : _a14[ROUTER_KEY] = {};
3274
+ new Proxy(target[ROUTER_INFO_KEY], {
3275
+ get(target22, property) {
3276
+ return target[ROUTER_INFO_KEY][property];
3277
+ }
3278
+ });
3279
+ new Proxy(target[ROUTER_KEY], {
3280
+ get(target22, property) {
3281
+ if (property === "value") {
3282
+ return target[ROUTER_KEY];
3283
+ }
3284
+ }
3285
+ });
3286
+ function getRoutes(router) {
3287
+ const routesMap = /* @__PURE__ */ new Map();
3288
+ return ((router == null ? void 0 : router.getRoutes()) || []).filter((i) => !routesMap.has(i.path) && routesMap.set(i.path, 1));
3289
+ }
3290
+ function filterRoutes(routes) {
3291
+ return routes.map((item) => {
3292
+ let { path, name, children, meta } = item;
3293
+ if (children == null ? void 0 : children.length)
3294
+ children = filterRoutes(children);
3295
+ return {
3296
+ path,
3297
+ name,
3298
+ children,
3299
+ meta
3300
+ };
3301
+ });
3302
+ }
3303
+ function filterCurrentRoute(route) {
3304
+ if (route) {
3305
+ const { fullPath, hash, href, path, name, matched, params, query } = route;
3306
+ return {
3307
+ fullPath,
3308
+ hash,
3309
+ href,
3310
+ path,
3311
+ name,
3312
+ params,
3313
+ query,
3314
+ matched: filterRoutes(matched)
3315
+ };
3316
+ }
3317
+ return route;
3318
+ }
3319
+ function normalizeRouterInfo(appRecord, activeAppRecord2) {
3320
+ function init() {
3321
+ var _a25;
3322
+ const router = (_a25 = appRecord.app) == null ? void 0 : _a25.config.globalProperties.$router;
3323
+ const currentRoute = filterCurrentRoute(router == null ? void 0 : router.currentRoute.value);
3324
+ const routes = filterRoutes(getRoutes(router));
3325
+ const c = console.warn;
3326
+ console.warn = () => {
3327
+ };
3328
+ target[ROUTER_INFO_KEY] = {
3329
+ currentRoute: currentRoute ? deepClone(currentRoute) : {},
3330
+ routes: deepClone(routes)
3331
+ };
3332
+ target[ROUTER_KEY] = router;
3333
+ console.warn = c;
3334
+ }
3335
+ init();
3336
+ hook.on.componentUpdated(debounce(() => {
3337
+ var _a25;
3338
+ if (((_a25 = activeAppRecord2.value) == null ? void 0 : _a25.app) !== appRecord.app)
3339
+ return;
3340
+ init();
3341
+ if (devtoolsState.highPerfModeEnabled)
3342
+ return;
3343
+ devtoolsContext.hooks.callHook("routerInfoUpdated", { state: target[ROUTER_INFO_KEY] });
3344
+ }, 200));
3345
+ }
3346
+ function createDevToolsApi(hooks2) {
3347
+ return {
3348
+ // get inspector tree
3349
+ async getInspectorTree(payload) {
3350
+ const _payload = {
3351
+ ...payload,
3352
+ app: activeAppRecord.value.app,
3353
+ rootNodes: []
3354
+ };
3355
+ await new Promise((resolve) => {
3356
+ hooks2.callHookWith(
3357
+ async (callbacks) => {
3358
+ await Promise.all(callbacks.map((cb) => cb(_payload)));
3359
+ resolve();
3360
+ },
3361
+ "getInspectorTree"
3362
+ /* GET_INSPECTOR_TREE */
3363
+ );
3364
+ });
3365
+ return _payload.rootNodes;
3366
+ },
3367
+ // get inspector state
3368
+ async getInspectorState(payload) {
3369
+ const _payload = {
3370
+ ...payload,
3371
+ app: activeAppRecord.value.app,
3372
+ state: null
3373
+ };
3374
+ const ctx = {
3375
+ currentTab: `custom-inspector:${payload.inspectorId}`
3376
+ };
3377
+ await new Promise((resolve) => {
3378
+ hooks2.callHookWith(
3379
+ async (callbacks) => {
3380
+ await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
3381
+ resolve();
3382
+ },
3383
+ "getInspectorState"
3384
+ /* GET_INSPECTOR_STATE */
3385
+ );
3386
+ });
3387
+ return _payload.state;
3388
+ },
3389
+ // edit inspector state
3390
+ editInspectorState(payload) {
3391
+ const stateEditor2 = new StateEditor();
3392
+ const _payload = {
3393
+ ...payload,
3394
+ app: activeAppRecord.value.app,
3395
+ set: (obj, path = payload.path, value = payload.state.value, cb) => {
3396
+ stateEditor2.set(obj, path, value, cb || stateEditor2.createDefaultSetCallback(payload.state));
3397
+ }
3398
+ };
3399
+ hooks2.callHookWith(
3400
+ (callbacks) => {
3401
+ callbacks.forEach((cb) => cb(_payload));
3402
+ },
3403
+ "editInspectorState"
3404
+ /* EDIT_INSPECTOR_STATE */
3405
+ );
3406
+ },
3407
+ // send inspector state
3408
+ sendInspectorState(inspectorId) {
3409
+ const inspector = getInspector(inspectorId);
3410
+ hooks2.callHook("sendInspectorState", { inspectorId, plugin: {
3411
+ descriptor: inspector.descriptor,
3412
+ setupFn: () => ({})
3413
+ } });
3414
+ },
3415
+ // inspect component inspector
3416
+ inspectComponentInspector() {
3417
+ return inspectComponentHighLighter();
3418
+ },
3419
+ // cancel inspect component inspector
3420
+ cancelInspectComponentInspector() {
3421
+ return cancelInspectComponentHighLighter();
3422
+ },
3423
+ // get component render code
3424
+ getComponentRenderCode(id) {
3425
+ const instance = getComponentInstance(activeAppRecord.value, id);
3426
+ if (instance)
3427
+ return !(typeof (instance == null ? void 0 : instance.type) === "function") ? instance.render.toString() : instance.type.toString();
3428
+ },
3429
+ // scroll to component
3430
+ scrollToComponent(id) {
3431
+ return scrollToComponent({ id });
3432
+ },
3433
+ // open in editor
3434
+ openInEditor,
3435
+ // get vue inspector
3436
+ getVueInspector: getComponentInspector,
3437
+ // toggle app
3438
+ toggleApp(id, options) {
3439
+ const appRecord = devtoolsAppRecords.value.find((record) => record.id === id);
3440
+ if (appRecord) {
3441
+ setActiveAppRecordId(id);
3442
+ setActiveAppRecord(appRecord);
3443
+ normalizeRouterInfo(appRecord, activeAppRecord);
3444
+ callInspectorUpdatedHook();
3445
+ registerDevToolsPlugin(appRecord.app, options);
3446
+ }
3447
+ },
3448
+ // inspect dom
3449
+ inspectDOM(instanceId) {
3450
+ const instance = getComponentInstance(activeAppRecord.value, instanceId);
3451
+ if (instance) {
3452
+ const [el] = getRootElementsFromComponentInstance(instance);
3453
+ if (el) {
3454
+ target.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = el;
3455
+ }
3456
+ }
3457
+ },
3458
+ updatePluginSettings(pluginId, key, value) {
3459
+ setPluginSettings(pluginId, key, value);
3460
+ },
3461
+ getPluginSettings(pluginId) {
3462
+ return {
3463
+ options: getPluginSettingsOptions(pluginId),
3464
+ values: getPluginSettings(pluginId)
3465
+ };
3466
+ }
3467
+ };
3468
+ }
3469
+ init_esm_shims();
3470
+ var _a15, _b15;
3471
+ (_b15 = (_a15 = target).__VUE_DEVTOOLS_ENV__) != null ? _b15 : _a15.__VUE_DEVTOOLS_ENV__ = {
3472
+ vitePluginDetected: false
3473
+ };
3474
+ var hooks = createDevToolsCtxHooks();
3475
+ var _a16, _b16;
3476
+ (_b16 = (_a16 = target).__VUE_DEVTOOLS_KIT_CONTEXT__) != null ? _b16 : _a16.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
3477
+ hooks,
3478
+ get state() {
3479
+ return {
3480
+ ...devtoolsState,
3481
+ activeAppRecordId: activeAppRecord.id,
3482
+ activeAppRecord: activeAppRecord.value,
3483
+ appRecords: devtoolsAppRecords.value
3484
+ };
3485
+ },
3486
+ api: createDevToolsApi(hooks)
3487
+ };
3488
+ var devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
3489
+ init_esm_shims();
3490
+ __toESM(require_speakingurl2());
3491
+ var _a17, _b17;
3492
+ (_b17 = (_a17 = target).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null ? _b17 : _a17.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
3493
+ id: 0,
3494
+ appIds: /* @__PURE__ */ new Set()
3495
+ };
3496
+ init_esm_shims();
3497
+ init_esm_shims();
3498
+ function toggleHighPerfMode(state) {
3499
+ devtoolsState.highPerfModeEnabled = state != null ? state : !devtoolsState.highPerfModeEnabled;
3500
+ if (!state && activeAppRecord.value) {
3501
+ registerDevToolsPlugin(activeAppRecord.value.app);
3502
+ }
3503
+ }
3504
+ init_esm_shims();
3505
+ init_esm_shims();
3506
+ init_esm_shims();
3507
+ function updateDevToolsClientDetected(params) {
3508
+ devtoolsState.devtoolsClientDetected = {
3509
+ ...devtoolsState.devtoolsClientDetected,
3510
+ ...params
3511
+ };
3512
+ const devtoolsClientVisible = Object.values(devtoolsState.devtoolsClientDetected).some(Boolean);
3513
+ toggleHighPerfMode(!devtoolsClientVisible);
3514
+ }
3515
+ var _a18, _b18;
3516
+ (_b18 = (_a18 = target).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null ? _b18 : _a18.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = updateDevToolsClientDetected;
3517
+ init_esm_shims();
3518
+ init_esm_shims();
3519
+ init_esm_shims();
3520
+ init_esm_shims();
3521
+ init_esm_shims();
3522
+ init_esm_shims();
3523
+ init_esm_shims();
3524
+ var DoubleIndexedKV = class {
3525
+ constructor() {
3526
+ this.keyToValue = /* @__PURE__ */ new Map();
3527
+ this.valueToKey = /* @__PURE__ */ new Map();
3528
+ }
3529
+ set(key, value) {
3530
+ this.keyToValue.set(key, value);
3531
+ this.valueToKey.set(value, key);
3532
+ }
3533
+ getByKey(key) {
3534
+ return this.keyToValue.get(key);
3535
+ }
3536
+ getByValue(value) {
3537
+ return this.valueToKey.get(value);
3538
+ }
3539
+ clear() {
3540
+ this.keyToValue.clear();
3541
+ this.valueToKey.clear();
3542
+ }
3543
+ };
3544
+ var Registry = class {
3545
+ constructor(generateIdentifier) {
3546
+ this.generateIdentifier = generateIdentifier;
3547
+ this.kv = new DoubleIndexedKV();
3548
+ }
3549
+ register(value, identifier) {
3550
+ if (this.kv.getByValue(value)) {
3551
+ return;
3552
+ }
3553
+ if (!identifier) {
3554
+ identifier = this.generateIdentifier(value);
3555
+ }
3556
+ this.kv.set(identifier, value);
3557
+ }
3558
+ clear() {
3559
+ this.kv.clear();
3560
+ }
3561
+ getIdentifier(value) {
3562
+ return this.kv.getByValue(value);
3563
+ }
3564
+ getValue(identifier) {
3565
+ return this.kv.getByKey(identifier);
3566
+ }
3567
+ };
3568
+ var ClassRegistry = class extends Registry {
3569
+ constructor() {
3570
+ super((c) => c.name);
3571
+ this.classToAllowedProps = /* @__PURE__ */ new Map();
3572
+ }
3573
+ register(value, options) {
3574
+ if (typeof options === "object") {
3575
+ if (options.allowProps) {
3576
+ this.classToAllowedProps.set(value, options.allowProps);
3577
+ }
3578
+ super.register(value, options.identifier);
3579
+ } else {
3580
+ super.register(value, options);
3581
+ }
3582
+ }
3583
+ getAllowedProps(value) {
3584
+ return this.classToAllowedProps.get(value);
3585
+ }
3586
+ };
3587
+ init_esm_shims();
3588
+ init_esm_shims();
3589
+ function valuesOfObj(record) {
3590
+ if ("values" in Object) {
3591
+ return Object.values(record);
3592
+ }
3593
+ const values = [];
3594
+ for (const key in record) {
3595
+ if (record.hasOwnProperty(key)) {
3596
+ values.push(record[key]);
3597
+ }
3598
+ }
3599
+ return values;
3600
+ }
3601
+ function find(record, predicate) {
3602
+ const values = valuesOfObj(record);
3603
+ if ("find" in values) {
3604
+ return values.find(predicate);
3605
+ }
3606
+ const valuesNotNever = values;
3607
+ for (let i = 0; i < valuesNotNever.length; i++) {
3608
+ const value = valuesNotNever[i];
3609
+ if (predicate(value)) {
3610
+ return value;
3611
+ }
3612
+ }
3613
+ return void 0;
3614
+ }
3615
+ function forEach(record, run) {
3616
+ Object.entries(record).forEach(([key, value]) => run(value, key));
3617
+ }
3618
+ function includes(arr, value) {
3619
+ return arr.indexOf(value) !== -1;
3620
+ }
3621
+ function findArr(record, predicate) {
3622
+ for (let i = 0; i < record.length; i++) {
3623
+ const value = record[i];
3624
+ if (predicate(value)) {
3625
+ return value;
3626
+ }
3627
+ }
3628
+ return void 0;
3629
+ }
3630
+ var CustomTransformerRegistry = class {
3631
+ constructor() {
3632
+ this.transfomers = {};
3633
+ }
3634
+ register(transformer) {
3635
+ this.transfomers[transformer.name] = transformer;
3636
+ }
3637
+ findApplicable(v) {
3638
+ return find(this.transfomers, (transformer) => transformer.isApplicable(v));
3639
+ }
3640
+ findByName(name) {
3641
+ return this.transfomers[name];
3642
+ }
3643
+ };
3644
+ init_esm_shims();
3645
+ init_esm_shims();
3646
+ var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
3647
+ var isUndefined = (payload) => typeof payload === "undefined";
3648
+ var isNull = (payload) => payload === null;
3649
+ var isPlainObject2 = (payload) => {
3650
+ if (typeof payload !== "object" || payload === null)
3651
+ return false;
3652
+ if (payload === Object.prototype)
3653
+ return false;
3654
+ if (Object.getPrototypeOf(payload) === null)
3655
+ return true;
3656
+ return Object.getPrototypeOf(payload) === Object.prototype;
3657
+ };
3658
+ var isEmptyObject = (payload) => isPlainObject2(payload) && Object.keys(payload).length === 0;
3659
+ var isArray = (payload) => Array.isArray(payload);
3660
+ var isString = (payload) => typeof payload === "string";
3661
+ var isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
3662
+ var isBoolean = (payload) => typeof payload === "boolean";
3663
+ var isRegExp = (payload) => payload instanceof RegExp;
3664
+ var isMap = (payload) => payload instanceof Map;
3665
+ var isSet = (payload) => payload instanceof Set;
3666
+ var isSymbol = (payload) => getType(payload) === "Symbol";
3667
+ var isDate = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
3668
+ var isError = (payload) => payload instanceof Error;
3669
+ var isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
3670
+ var isPrimitive2 = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
3671
+ var isBigint = (payload) => typeof payload === "bigint";
3672
+ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
3673
+ var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
3674
+ var isURL = (payload) => payload instanceof URL;
3675
+ init_esm_shims();
3676
+ var escapeKey = (key) => key.replace(/\./g, "\\.");
3677
+ var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
3678
+ var parsePath = (string) => {
3679
+ const result = [];
3680
+ let segment = "";
3681
+ for (let i = 0; i < string.length; i++) {
3682
+ let char = string.charAt(i);
3683
+ const isEscapedDot = char === "\\" && string.charAt(i + 1) === ".";
3684
+ if (isEscapedDot) {
3685
+ segment += ".";
3686
+ i++;
3687
+ continue;
3688
+ }
3689
+ const isEndOfSegment = char === ".";
3690
+ if (isEndOfSegment) {
3691
+ result.push(segment);
3692
+ segment = "";
3693
+ continue;
3694
+ }
3695
+ segment += char;
3696
+ }
3697
+ const lastSegment = segment;
3698
+ result.push(lastSegment);
3699
+ return result;
3700
+ };
3701
+ init_esm_shims();
3702
+ function simpleTransformation(isApplicable, annotation, transform, untransform) {
3703
+ return {
3704
+ isApplicable,
3705
+ annotation,
3706
+ transform,
3707
+ untransform
3708
+ };
3709
+ }
3710
+ var simpleRules = [
3711
+ simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
3712
+ simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
3713
+ if (typeof BigInt !== "undefined") {
3714
+ return BigInt(v);
3715
+ }
3716
+ console.error("Please add a BigInt polyfill.");
3717
+ return v;
3718
+ }),
3719
+ simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),
3720
+ simpleTransformation(isError, "Error", (v, superJson) => {
3721
+ const baseError = {
3722
+ name: v.name,
3723
+ message: v.message
3724
+ };
3725
+ superJson.allowedErrorProps.forEach((prop) => {
3726
+ baseError[prop] = v[prop];
3727
+ });
3728
+ return baseError;
3729
+ }, (v, superJson) => {
3730
+ const e = new Error(v.message);
3731
+ e.name = v.name;
3732
+ e.stack = v.stack;
3733
+ superJson.allowedErrorProps.forEach((prop) => {
3734
+ e[prop] = v[prop];
3735
+ });
3736
+ return e;
3737
+ }),
3738
+ simpleTransformation(isRegExp, "regexp", (v) => "" + v, (regex) => {
3739
+ const body = regex.slice(1, regex.lastIndexOf("/"));
3740
+ const flags = regex.slice(regex.lastIndexOf("/") + 1);
3741
+ return new RegExp(body, flags);
3742
+ }),
3743
+ simpleTransformation(
3744
+ isSet,
3745
+ "set",
3746
+ // (sets only exist in es6+)
3747
+ // eslint-disable-next-line es5/no-es6-methods
3748
+ (v) => [...v.values()],
3749
+ (v) => new Set(v)
3750
+ ),
3751
+ simpleTransformation(isMap, "map", (v) => [...v.entries()], (v) => new Map(v)),
3752
+ simpleTransformation((v) => isNaNValue(v) || isInfinite(v), "number", (v) => {
3753
+ if (isNaNValue(v)) {
3754
+ return "NaN";
3755
+ }
3756
+ if (v > 0) {
3757
+ return "Infinity";
3758
+ } else {
3759
+ return "-Infinity";
3760
+ }
3761
+ }, Number),
3762
+ simpleTransformation((v) => v === 0 && 1 / v === -Infinity, "number", () => {
3763
+ return "-0";
3764
+ }, Number),
3765
+ simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
3766
+ ];
3767
+ function compositeTransformation(isApplicable, annotation, transform, untransform) {
3768
+ return {
3769
+ isApplicable,
3770
+ annotation,
3771
+ transform,
3772
+ untransform
3773
+ };
3774
+ }
3775
+ var symbolRule = compositeTransformation((s, superJson) => {
3776
+ if (isSymbol(s)) {
3777
+ const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
3778
+ return isRegistered;
3779
+ }
3780
+ return false;
3781
+ }, (s, superJson) => {
3782
+ const identifier = superJson.symbolRegistry.getIdentifier(s);
3783
+ return ["symbol", identifier];
3784
+ }, (v) => v.description, (_, a, superJson) => {
3785
+ const value = superJson.symbolRegistry.getValue(a[1]);
3786
+ if (!value) {
3787
+ throw new Error("Trying to deserialize unknown symbol");
3788
+ }
3789
+ return value;
3790
+ });
3791
+ var constructorToName = [
3792
+ Int8Array,
3793
+ Uint8Array,
3794
+ Int16Array,
3795
+ Uint16Array,
3796
+ Int32Array,
3797
+ Uint32Array,
3798
+ Float32Array,
3799
+ Float64Array,
3800
+ Uint8ClampedArray
3801
+ ].reduce((obj, ctor) => {
3802
+ obj[ctor.name] = ctor;
3803
+ return obj;
3804
+ }, {});
3805
+ var typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
3806
+ const ctor = constructorToName[a[1]];
3807
+ if (!ctor) {
3808
+ throw new Error("Trying to deserialize unknown typed array");
3809
+ }
3810
+ return new ctor(v);
3811
+ });
3812
+ function isInstanceOfRegisteredClass(potentialClass, superJson) {
3813
+ if (potentialClass == null ? void 0 : potentialClass.constructor) {
3814
+ const isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
3815
+ return isRegistered;
3816
+ }
3817
+ return false;
3818
+ }
3819
+ var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
3820
+ const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
3821
+ return ["class", identifier];
3822
+ }, (clazz, superJson) => {
3823
+ const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3824
+ if (!allowedProps) {
3825
+ return { ...clazz };
3826
+ }
3827
+ const result = {};
3828
+ allowedProps.forEach((prop) => {
3829
+ result[prop] = clazz[prop];
3830
+ });
3831
+ return result;
3832
+ }, (v, a, superJson) => {
3833
+ const clazz = superJson.classRegistry.getValue(a[1]);
3834
+ if (!clazz) {
3835
+ throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3836
+ }
3837
+ return Object.assign(Object.create(clazz.prototype), v);
3838
+ });
3839
+ var customRule = compositeTransformation((value, superJson) => {
3840
+ return !!superJson.customTransformerRegistry.findApplicable(value);
3841
+ }, (value, superJson) => {
3842
+ const transformer = superJson.customTransformerRegistry.findApplicable(value);
3843
+ return ["custom", transformer.name];
3844
+ }, (value, superJson) => {
3845
+ const transformer = superJson.customTransformerRegistry.findApplicable(value);
3846
+ return transformer.serialize(value);
3847
+ }, (v, a, superJson) => {
3848
+ const transformer = superJson.customTransformerRegistry.findByName(a[1]);
3849
+ if (!transformer) {
3850
+ throw new Error("Trying to deserialize unknown custom value");
3851
+ }
3852
+ return transformer.deserialize(v);
3853
+ });
3854
+ var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
3855
+ var transformValue = (value, superJson) => {
3856
+ const applicableCompositeRule = findArr(compositeRules, (rule) => rule.isApplicable(value, superJson));
3857
+ if (applicableCompositeRule) {
3858
+ return {
3859
+ value: applicableCompositeRule.transform(value, superJson),
3860
+ type: applicableCompositeRule.annotation(value, superJson)
3861
+ };
3862
+ }
3863
+ const applicableSimpleRule = findArr(simpleRules, (rule) => rule.isApplicable(value, superJson));
3864
+ if (applicableSimpleRule) {
3865
+ return {
3866
+ value: applicableSimpleRule.transform(value, superJson),
3867
+ type: applicableSimpleRule.annotation
3868
+ };
3869
+ }
3870
+ return void 0;
3871
+ };
3872
+ var simpleRulesByAnnotation = {};
3873
+ simpleRules.forEach((rule) => {
3874
+ simpleRulesByAnnotation[rule.annotation] = rule;
3875
+ });
3876
+ var untransformValue = (json, type, superJson) => {
3877
+ if (isArray(type)) {
3878
+ switch (type[0]) {
3879
+ case "symbol":
3880
+ return symbolRule.untransform(json, type, superJson);
3881
+ case "class":
3882
+ return classRule.untransform(json, type, superJson);
3883
+ case "custom":
3884
+ return customRule.untransform(json, type, superJson);
3885
+ case "typed-array":
3886
+ return typedArrayRule.untransform(json, type, superJson);
3887
+ default:
3888
+ throw new Error("Unknown transformation: " + type);
3889
+ }
3890
+ } else {
3891
+ const transformation = simpleRulesByAnnotation[type];
3892
+ if (!transformation) {
3893
+ throw new Error("Unknown transformation: " + type);
3894
+ }
3895
+ return transformation.untransform(json, superJson);
3896
+ }
3897
+ };
3898
+ init_esm_shims();
3899
+ var getNthKey = (value, n) => {
3900
+ if (n > value.size)
3901
+ throw new Error("index out of bounds");
3902
+ const keys = value.keys();
3903
+ while (n > 0) {
3904
+ keys.next();
3905
+ n--;
3906
+ }
3907
+ return keys.next().value;
3908
+ };
3909
+ function validatePath(path) {
3910
+ if (includes(path, "__proto__")) {
3911
+ throw new Error("__proto__ is not allowed as a property");
3912
+ }
3913
+ if (includes(path, "prototype")) {
3914
+ throw new Error("prototype is not allowed as a property");
3915
+ }
3916
+ if (includes(path, "constructor")) {
3917
+ throw new Error("constructor is not allowed as a property");
3918
+ }
3919
+ }
3920
+ var getDeep = (object, path) => {
3921
+ validatePath(path);
3922
+ for (let i = 0; i < path.length; i++) {
3923
+ const key = path[i];
3924
+ if (isSet(object)) {
3925
+ object = getNthKey(object, +key);
3926
+ } else if (isMap(object)) {
3927
+ const row = +key;
3928
+ const type = +path[++i] === 0 ? "key" : "value";
3929
+ const keyOfRow = getNthKey(object, row);
3930
+ switch (type) {
3931
+ case "key":
3932
+ object = keyOfRow;
3933
+ break;
3934
+ case "value":
3935
+ object = object.get(keyOfRow);
3936
+ break;
3937
+ }
3938
+ } else {
3939
+ object = object[key];
3940
+ }
3941
+ }
3942
+ return object;
3943
+ };
3944
+ var setDeep = (object, path, mapper) => {
3945
+ validatePath(path);
3946
+ if (path.length === 0) {
3947
+ return mapper(object);
3948
+ }
3949
+ let parent = object;
3950
+ for (let i = 0; i < path.length - 1; i++) {
3951
+ const key = path[i];
3952
+ if (isArray(parent)) {
3953
+ const index = +key;
3954
+ parent = parent[index];
3955
+ } else if (isPlainObject2(parent)) {
3956
+ parent = parent[key];
3957
+ } else if (isSet(parent)) {
3958
+ const row = +key;
3959
+ parent = getNthKey(parent, row);
3960
+ } else if (isMap(parent)) {
3961
+ const isEnd = i === path.length - 2;
3962
+ if (isEnd) {
3963
+ break;
3964
+ }
3965
+ const row = +key;
3966
+ const type = +path[++i] === 0 ? "key" : "value";
3967
+ const keyOfRow = getNthKey(parent, row);
3968
+ switch (type) {
3969
+ case "key":
3970
+ parent = keyOfRow;
3971
+ break;
3972
+ case "value":
3973
+ parent = parent.get(keyOfRow);
3974
+ break;
3975
+ }
3976
+ }
3977
+ }
3978
+ const lastKey = path[path.length - 1];
3979
+ if (isArray(parent)) {
3980
+ parent[+lastKey] = mapper(parent[+lastKey]);
3981
+ } else if (isPlainObject2(parent)) {
3982
+ parent[lastKey] = mapper(parent[lastKey]);
3983
+ }
3984
+ if (isSet(parent)) {
3985
+ const oldValue = getNthKey(parent, +lastKey);
3986
+ const newValue = mapper(oldValue);
3987
+ if (oldValue !== newValue) {
3988
+ parent.delete(oldValue);
3989
+ parent.add(newValue);
3990
+ }
3991
+ }
3992
+ if (isMap(parent)) {
3993
+ const row = +path[path.length - 2];
3994
+ const keyToRow = getNthKey(parent, row);
3995
+ const type = +lastKey === 0 ? "key" : "value";
3996
+ switch (type) {
3997
+ case "key": {
3998
+ const newKey = mapper(keyToRow);
3999
+ parent.set(newKey, parent.get(keyToRow));
4000
+ if (newKey !== keyToRow) {
4001
+ parent.delete(keyToRow);
4002
+ }
4003
+ break;
4004
+ }
4005
+ case "value": {
4006
+ parent.set(keyToRow, mapper(parent.get(keyToRow)));
4007
+ break;
4008
+ }
4009
+ }
4010
+ }
4011
+ return object;
4012
+ };
4013
+ function traverse(tree, walker2, origin = []) {
4014
+ if (!tree) {
4015
+ return;
4016
+ }
4017
+ if (!isArray(tree)) {
4018
+ forEach(tree, (subtree, key) => traverse(subtree, walker2, [...origin, ...parsePath(key)]));
4019
+ return;
4020
+ }
4021
+ const [nodeValue, children] = tree;
4022
+ if (children) {
4023
+ forEach(children, (child, key) => {
4024
+ traverse(child, walker2, [...origin, ...parsePath(key)]);
4025
+ });
4026
+ }
4027
+ walker2(nodeValue, origin);
4028
+ }
4029
+ function applyValueAnnotations(plain, annotations, superJson) {
4030
+ traverse(annotations, (type, path) => {
4031
+ plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
4032
+ });
4033
+ return plain;
4034
+ }
4035
+ function applyReferentialEqualityAnnotations(plain, annotations) {
4036
+ function apply(identicalPaths, path) {
4037
+ const object = getDeep(plain, parsePath(path));
4038
+ identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
4039
+ plain = setDeep(plain, identicalObjectPath, () => object);
4040
+ });
4041
+ }
4042
+ if (isArray(annotations)) {
4043
+ const [root, other] = annotations;
4044
+ root.forEach((identicalPath) => {
4045
+ plain = setDeep(plain, parsePath(identicalPath), () => plain);
4046
+ });
4047
+ if (other) {
4048
+ forEach(other, apply);
4049
+ }
4050
+ } else {
4051
+ forEach(annotations, apply);
4052
+ }
4053
+ return plain;
4054
+ }
4055
+ var isDeep = (object, superJson) => isPlainObject2(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
4056
+ function addIdentity(object, path, identities) {
4057
+ const existingSet = identities.get(object);
4058
+ if (existingSet) {
4059
+ existingSet.push(path);
4060
+ } else {
4061
+ identities.set(object, [path]);
4062
+ }
4063
+ }
4064
+ function generateReferentialEqualityAnnotations(identitites, dedupe) {
4065
+ const result = {};
4066
+ let rootEqualityPaths = void 0;
4067
+ identitites.forEach((paths) => {
4068
+ if (paths.length <= 1) {
4069
+ return;
4070
+ }
4071
+ if (!dedupe) {
4072
+ paths = paths.map((path) => path.map(String)).sort((a, b) => a.length - b.length);
4073
+ }
4074
+ const [representativePath, ...identicalPaths] = paths;
4075
+ if (representativePath.length === 0) {
4076
+ rootEqualityPaths = identicalPaths.map(stringifyPath);
4077
+ } else {
4078
+ result[stringifyPath(representativePath)] = identicalPaths.map(stringifyPath);
4079
+ }
4080
+ });
4081
+ if (rootEqualityPaths) {
4082
+ if (isEmptyObject(result)) {
4083
+ return [rootEqualityPaths];
4084
+ } else {
4085
+ return [rootEqualityPaths, result];
4086
+ }
4087
+ } else {
4088
+ return isEmptyObject(result) ? void 0 : result;
4089
+ }
4090
+ }
4091
+ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
4092
+ var _a25;
4093
+ const primitive = isPrimitive2(object);
4094
+ if (!primitive) {
4095
+ addIdentity(object, path, identities);
4096
+ const seen = seenObjects.get(object);
4097
+ if (seen) {
4098
+ return dedupe ? {
4099
+ transformedValue: null
4100
+ } : seen;
4101
+ }
4102
+ }
4103
+ if (!isDeep(object, superJson)) {
4104
+ const transformed2 = transformValue(object, superJson);
4105
+ const result2 = transformed2 ? {
4106
+ transformedValue: transformed2.value,
4107
+ annotations: [transformed2.type]
4108
+ } : {
4109
+ transformedValue: object
4110
+ };
4111
+ if (!primitive) {
4112
+ seenObjects.set(object, result2);
4113
+ }
4114
+ return result2;
4115
+ }
4116
+ if (includes(objectsInThisPath, object)) {
4117
+ return {
4118
+ transformedValue: null
4119
+ };
4120
+ }
4121
+ const transformationResult = transformValue(object, superJson);
4122
+ const transformed = (_a25 = transformationResult == null ? void 0 : transformationResult.value) != null ? _a25 : object;
4123
+ const transformedValue = isArray(transformed) ? [] : {};
4124
+ const innerAnnotations = {};
4125
+ forEach(transformed, (value, index) => {
4126
+ if (index === "__proto__" || index === "constructor" || index === "prototype") {
4127
+ throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
4128
+ }
4129
+ const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
4130
+ transformedValue[index] = recursiveResult.transformedValue;
4131
+ if (isArray(recursiveResult.annotations)) {
4132
+ innerAnnotations[index] = recursiveResult.annotations;
4133
+ } else if (isPlainObject2(recursiveResult.annotations)) {
4134
+ forEach(recursiveResult.annotations, (tree, key) => {
4135
+ innerAnnotations[escapeKey(index) + "." + key] = tree;
4136
+ });
4137
+ }
4138
+ });
4139
+ const result = isEmptyObject(innerAnnotations) ? {
4140
+ transformedValue,
4141
+ annotations: !!transformationResult ? [transformationResult.type] : void 0
4142
+ } : {
4143
+ transformedValue,
4144
+ annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
4145
+ };
4146
+ if (!primitive) {
4147
+ seenObjects.set(object, result);
4148
+ }
4149
+ return result;
4150
+ };
4151
+ init_esm_shims();
4152
+ init_esm_shims();
4153
+ function getType2(payload) {
4154
+ return Object.prototype.toString.call(payload).slice(8, -1);
4155
+ }
4156
+ function isArray2(payload) {
4157
+ return getType2(payload) === "Array";
4158
+ }
4159
+ function isPlainObject3(payload) {
4160
+ if (getType2(payload) !== "Object")
4161
+ return false;
4162
+ const prototype = Object.getPrototypeOf(payload);
4163
+ return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
4164
+ }
4165
+ function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
4166
+ const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
4167
+ if (propType === "enumerable")
4168
+ carry[key] = newVal;
4169
+ if (includeNonenumerable && propType === "nonenumerable") {
4170
+ Object.defineProperty(carry, key, {
4171
+ value: newVal,
4172
+ enumerable: false,
4173
+ writable: true,
4174
+ configurable: true
4175
+ });
4176
+ }
4177
+ }
4178
+ function copy(target22, options = {}) {
4179
+ if (isArray2(target22)) {
4180
+ return target22.map((item) => copy(item, options));
4181
+ }
4182
+ if (!isPlainObject3(target22)) {
4183
+ return target22;
4184
+ }
4185
+ const props = Object.getOwnPropertyNames(target22);
4186
+ const symbols = Object.getOwnPropertySymbols(target22);
4187
+ return [...props, ...symbols].reduce((carry, key) => {
4188
+ if (isArray2(options.props) && !options.props.includes(key)) {
4189
+ return carry;
4190
+ }
4191
+ const val = target22[key];
4192
+ const newVal = copy(val, options);
4193
+ assignProp(carry, key, newVal, target22, options.nonenumerable);
4194
+ return carry;
4195
+ }, {});
4196
+ }
4197
+ var SuperJSON = class {
4198
+ /**
4199
+ * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
4200
+ */
4201
+ constructor({ dedupe = false } = {}) {
4202
+ this.classRegistry = new ClassRegistry();
4203
+ this.symbolRegistry = new Registry((s) => {
4204
+ var _a25;
4205
+ return (_a25 = s.description) != null ? _a25 : "";
4206
+ });
4207
+ this.customTransformerRegistry = new CustomTransformerRegistry();
4208
+ this.allowedErrorProps = [];
4209
+ this.dedupe = dedupe;
4210
+ }
4211
+ serialize(object) {
4212
+ const identities = /* @__PURE__ */ new Map();
4213
+ const output = walker(object, identities, this, this.dedupe);
4214
+ const res = {
4215
+ json: output.transformedValue
4216
+ };
4217
+ if (output.annotations) {
4218
+ res.meta = {
4219
+ ...res.meta,
4220
+ values: output.annotations
4221
+ };
4222
+ }
4223
+ const equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
4224
+ if (equalityAnnotations) {
4225
+ res.meta = {
4226
+ ...res.meta,
4227
+ referentialEqualities: equalityAnnotations
4228
+ };
4229
+ }
4230
+ return res;
4231
+ }
4232
+ deserialize(payload) {
4233
+ const { json, meta } = payload;
4234
+ let result = copy(json);
4235
+ if (meta == null ? void 0 : meta.values) {
4236
+ result = applyValueAnnotations(result, meta.values, this);
4237
+ }
4238
+ if (meta == null ? void 0 : meta.referentialEqualities) {
4239
+ result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
4240
+ }
4241
+ return result;
4242
+ }
4243
+ stringify(object) {
4244
+ return JSON.stringify(this.serialize(object));
4245
+ }
4246
+ parse(string) {
4247
+ return this.deserialize(JSON.parse(string));
4248
+ }
4249
+ registerClass(v, options) {
4250
+ this.classRegistry.register(v, options);
4251
+ }
4252
+ registerSymbol(v, identifier) {
4253
+ this.symbolRegistry.register(v, identifier);
4254
+ }
4255
+ registerCustom(transformer, name) {
4256
+ this.customTransformerRegistry.register({
4257
+ name,
4258
+ ...transformer
4259
+ });
4260
+ }
4261
+ allowErrorProps(...props) {
4262
+ this.allowedErrorProps.push(...props);
4263
+ }
4264
+ };
4265
+ SuperJSON.defaultInstance = new SuperJSON();
4266
+ SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
4267
+ SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
4268
+ SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
4269
+ SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
4270
+ SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
4271
+ SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
4272
+ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
4273
+ SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
4274
+ init_esm_shims();
4275
+ init_esm_shims();
4276
+ init_esm_shims();
4277
+ init_esm_shims();
4278
+ init_esm_shims();
4279
+ init_esm_shims();
4280
+ init_esm_shims();
4281
+ init_esm_shims();
4282
+ init_esm_shims();
4283
+ init_esm_shims();
4284
+ init_esm_shims();
4285
+ init_esm_shims();
4286
+ init_esm_shims();
4287
+ init_esm_shims();
4288
+ init_esm_shims();
4289
+ init_esm_shims();
4290
+ init_esm_shims();
4291
+ init_esm_shims();
4292
+ init_esm_shims();
4293
+ init_esm_shims();
4294
+ init_esm_shims();
4295
+ init_esm_shims();
4296
+ init_esm_shims();
4297
+ var _a19, _b19;
4298
+ (_b19 = (_a19 = target).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null ? _b19 : _a19.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = [];
4299
+ var _a20, _b20;
4300
+ (_b20 = (_a20 = target).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null ? _b20 : _a20.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null;
4301
+ var _a21, _b21;
4302
+ (_b21 = (_a21 = target).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null ? _b21 : _a21.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null;
4303
+ var _a22, _b22;
4304
+ (_b22 = (_a22 = target).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null ? _b22 : _a22.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null;
4305
+ var _a23, _b23;
4306
+ (_b23 = (_a23 = target).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null ? _b23 : _a23.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null;
4307
+ var _a24, _b24;
4308
+ (_b24 = (_a24 = target).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null ? _b24 : _a24.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null;
4309
+ init_esm_shims();
4310
+ init_esm_shims();
4311
+ init_esm_shims();
4312
+ init_esm_shims();
4313
+ init_esm_shims();
4314
+ init_esm_shims();
4315
+ init_esm_shims();
4316
+ export {
4317
+ setupDevToolsPlugin,
4318
+ setupDevToolsPlugin as setupDevtoolsPlugin
4319
+ };