decocms 4.373.2 → 4.373.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 (360) hide show
  1. package/dist/client/assets/{AlertCircle-D0XfIdP3.js → AlertCircle-NKpIdBKl.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BahcMnDC.js → AreaChart-Bm-WOd7b.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-COesgQ7q.js → ArrowLeft-BKx_QTJr.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CnMpegh6.js → ArrowRight-8mLQGGMI.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-17ZWJBkC.js → ArrowUp-BgjnqmUz.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-DqSaDs52.js → CartesianChart-CyfhriNO.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-GwUJIVVh.js → CheckCircle-DBlA9wkb.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-CodzCI7T.js → ChevronUp-BAQXOf5D.js} +1 -1
  9. package/dist/client/assets/{Copy01-CrFZhFXo.js → Copy01-wurPIobv.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-DDojC3kk.js → CreditCard01-DjPXzBq6.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-DMzYFBsd.js → DotsVertical-Bx5qjzcz.js} +1 -1
  12. package/dist/client/assets/{Download01-B93GUT2-.js → Download01-BWFtS53v.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-BUk8y7Bj.js → ErrorBarContext-DQtaxwUD.js} +1 -1
  14. package/dist/client/assets/{Eye-Bxxku7SE.js → Eye-BD0ZbSdl.js} +1 -1
  15. package/dist/client/assets/{Globe01-DjdW3vEO.js → Globe01-0DpEacUx.js} +1 -1
  16. package/dist/client/assets/{Globe04-1G-_QSZW.js → Globe04-D59f7pGB.js} +1 -1
  17. package/dist/client/assets/{Image01-DPvj49a-.js → Image01-BUYhMNkS.js} +1 -1
  18. package/dist/client/assets/{Key01-O_Ykzy8v.js → Key01-BvLdmCTc.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-Cr5_A1QG.js → LayoutLeft-CyJFqp-6.js} +1 -1
  20. package/dist/client/assets/{Line-aFR7lShe.js → Line-BeN-bY3Y.js} +1 -1
  21. package/dist/client/assets/{Link01-D8T6mRIR.js → Link01-qIayyFAq.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-CWPNoGQ_.js → LinkExternal01-hkxOMKQE.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CQaKbr3c.js → Monitor01-DyfIXCt5.js} +1 -1
  24. package/dist/client/assets/{Package-Cd3aVeK8.js → Package-EQg-wMAD.js} +1 -1
  25. package/dist/client/assets/{Palette-HRmzWYeK.js → Palette-DI15yG1R.js} +1 -1
  26. package/dist/client/assets/{Play-CaxaoMwA.js → Play-Cg9yqLoQ.js} +1 -1
  27. package/dist/client/assets/{Plus-BjOenFFb.js → Plus-BKjrQCsd.js} +1 -1
  28. package/dist/client/assets/{SearchLg-CT-Vntfj.js → SearchLg-RqwylEUM.js} +1 -1
  29. package/dist/client/assets/{SearchMd-C6gkQ2l2.js → SearchMd-I-u-Ppkp.js} +1 -1
  30. package/dist/client/assets/{Sector-B-fHBulW.js → Sector-C46Vk0wT.js} +1 -1
  31. package/dist/client/assets/{Settings02-DH86cX_B.js → Settings02-DJVGKnwW.js} +1 -1
  32. package/dist/client/assets/{Share07-Bw4Wicv2.js → Share07-adzWfg3s.js} +1 -1
  33. package/dist/client/assets/{Stars01-B1kYoDFp.js → Stars01-BEbgNJbY.js} +1 -1
  34. package/dist/client/assets/{Sun-kycCorOO.js → Sun-YVYc7YRc.js} +1 -1
  35. package/dist/client/assets/{Tool01-iak9ZtFE.js → Tool01-DDTjazFm.js} +1 -1
  36. package/dist/client/assets/{Tool02-CFu103hl.js → Tool02-BLokvBBs.js} +1 -1
  37. package/dist/client/assets/{Trash01-CpN6r-a0.js → Trash01-VGFb49EH.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-DlYmFZ7k.js → TrendUp01-BPu5TWOk.js} +1 -1
  39. package/dist/client/assets/{Upload01-DkDsqCWe.js → Upload01-Cv7tN2NN.js} +1 -1
  40. package/dist/client/assets/{User01-CmNzW4kH.js → User01-BI5R-4Xj.js} +1 -1
  41. package/dist/client/assets/{UserSquare-1_FC93GE.js → UserSquare-C_kKkH0n.js} +1 -1
  42. package/dist/client/assets/{Users01-CVhfgklM.js → Users01-DVg45Kv0.js} +1 -1
  43. package/dist/client/assets/{X-DTaqHNcB.js → X-CvjnZl5e.js} +1 -1
  44. package/dist/client/assets/{XCircle-BR8ZZHlj.js → XCircle-CB3Q-O1t.js} +1 -1
  45. package/dist/client/assets/{XClose-VLid_ZSM.js → XClose-l9OyLGUl.js} +1 -1
  46. package/dist/client/assets/{Zap-D3d1wpzw.js → Zap-UqD0_RZa.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-B3S7N50e.js → ZoomOut-Cq1zMqoM.js} +1 -1
  48. package/dist/client/assets/{access-gate-DAO7tJ5A.js → access-gate-eZrCTx42.js} +1 -1
  49. package/dist/client/assets/{add-connection-dialog-CaHZ3eeK.js → add-connection-dialog-CCnr4x54.js} +1 -1
  50. package/dist/client/assets/{agent-analytics-CzbWclRj.js → agent-analytics-BHAmS_Vv.js} +1 -1
  51. package/dist/client/assets/agent-app-0Lj8xuLI.js +1 -0
  52. package/dist/client/assets/{agent-assets-Dfpjbzyj.js → agent-assets-Dl566Cx2.js} +1 -1
  53. package/dist/client/assets/{agent-automation-C8r5_lAR.js → agent-automation-ZRwCzRyz.js} +1 -1
  54. package/dist/client/assets/{agent-automations-BSaV8k3Y.js → agent-automations-CcGv--oW.js} +1 -1
  55. package/dist/client/assets/{agent-connect-sources-AkHuiIU0.js → agent-connect-sources-DOCL0L4U.js} +1 -1
  56. package/dist/client/assets/agent-deck-EC_2q0-4.js +1 -0
  57. package/dist/client/assets/{agent-e2e-CjCqLXH1.js → agent-e2e-BheTu3sG.js} +1 -1
  58. package/dist/client/assets/{agent-experiments-4inK9Pvj.js → agent-experiments-DySEMnSa.js} +1 -1
  59. package/dist/client/assets/agent-file-CDMSSq77.js +1 -0
  60. package/dist/client/assets/{agent-git-BZmL1C91.js → agent-git-CGVI6Aq_.js} +1 -1
  61. package/dist/client/assets/{agent-hosting-CP9gImki.js → agent-hosting-CuK5vWln.js} +1 -1
  62. package/dist/client/assets/{agent-icon-D5Ih-I28.js → agent-icon-Du4foZ5w.js} +1 -1
  63. package/dist/client/assets/agent-library-file-CVu7KBHy.js +1 -0
  64. package/dist/client/assets/{agent-monitor-D7bE1AUL.js → agent-monitor-GtldlQaQ.js} +1 -1
  65. package/dist/client/assets/{agent-overview-C5zU0xJO.js → agent-overview-CV_KF9Yq.js} +1 -1
  66. package/dist/client/assets/agent-settings-S0BObv95.js +1 -0
  67. package/dist/client/assets/{agent-site-editor-BRzwUORk.js → agent-site-editor-DwI3mXwZ.js} +1 -1
  68. package/dist/client/assets/agent-site-editor-code-DHn9ldlr.js +2 -0
  69. package/dist/client/assets/{agent-site-editor-content-Da0JfE-w.js → agent-site-editor-content-B-s4vnUX.js} +2 -2
  70. package/dist/client/assets/{agent-site-editor-preview-DqMQfEJz.js → agent-site-editor-preview-BUdForMN.js} +3 -3
  71. package/dist/client/assets/agent-view-CMVA1gTC.js +1 -0
  72. package/dist/client/assets/{agent-view-guard-CmXIeKCe.js → agent-view-guard-O3WyIY56.js} +1 -1
  73. package/dist/client/assets/{agents-list-wHHXJTl8.js → agents-list-Bb_RX3Ji.js} +1 -1
  74. package/dist/client/assets/{ai-providers-COexxMGY.js → ai-providers-DDzOPCjm.js} +1 -1
  75. package/dist/client/assets/{alert-C_EPjsLF.js → alert-CXDlDd5b.js} +1 -1
  76. package/dist/client/assets/{alert-dialog-D6rlFoy0.js → alert-dialog-D2J-kRAV.js} +1 -1
  77. package/dist/client/assets/api-keys-CKnoL6XY.js +1 -0
  78. package/dist/client/assets/{api-keys-o45lgGkw.js → api-keys-DOy--osE.js} +1 -1
  79. package/dist/client/assets/app-editor-BHGu8CuE.js +1 -0
  80. package/dist/client/assets/{asset-utils-BG24FUsq.js → asset-utils-Bl8mgxfa.js} +1 -1
  81. package/dist/client/assets/{auth-B_QE3yd2.js → auth-DoQ4Nalq.js} +1 -1
  82. package/dist/client/assets/{auth-catchall-BM8U6OhG.js → auth-catchall-D5w-ZyXF.js} +1 -1
  83. package/dist/client/assets/{auth-entry-CdieewWf.js → auth-entry-DBl5DaPH.js} +1 -1
  84. package/dist/client/assets/{auth-split-layout-rKTEf0Lh.js → auth-split-layout-BgPxcBcB.js} +1 -1
  85. package/dist/client/assets/{authenticate-and-persist-oauth-Cm242zr2.js → authenticate-and-persist-oauth-CMWIzBXQ.js} +1 -1
  86. package/dist/client/assets/{automation-list-row-DDeJYMHS.js → automation-list-row-CdHBSjU2.js} +1 -1
  87. package/dist/client/assets/{automation-runs-BGXJk3-4.js → automation-runs-DkQGSYfz.js} +1 -1
  88. package/dist/client/assets/{automations-BhhOtnrs.js → automations-rIGMTqYL.js} +1 -1
  89. package/dist/client/assets/{autosend-DtYV6o0l.js → autosend-Bln98kNi.js} +1 -1
  90. package/dist/client/assets/{avatar-Dwn9Bjsb.js → avatar-1Yn634Bu.js} +1 -1
  91. package/dist/client/assets/{badge-BSirYRuD.js → badge-BMrNoDQF.js} +1 -1
  92. package/dist/client/assets/{block-document-DjxI0Nln.js → block-document-B0bO5MdC.js} +1 -1
  93. package/dist/client/assets/{blocks-preview-workspace-context-BwjlsTrq.js → blocks-preview-workspace-context-okcOywiO.js} +1 -1
  94. package/dist/client/assets/{breadcrumb-BpbnoaV3.js → breadcrumb-CzmrQK1U.js} +1 -1
  95. package/dist/client/assets/{buckets-DdptE4Pj.js → buckets-D85bhcTG.js} +1 -1
  96. package/dist/client/assets/{build-improve-prompt-doc-CIkgt5Ml.js → build-improve-prompt-doc-Jx4Nw8lc.js} +1 -1
  97. package/dist/client/assets/{bulk-category-panel-BUvAK76e.js → bulk-category-panel-Cpa3qfBq.js} +1 -1
  98. package/dist/client/assets/{calendar-Bhg3W8Dv.js → calendar-CDf47KON.js} +1 -1
  99. package/dist/client/assets/{capability-load-error-l-yxDu1W.js → capability-load-error-CG1OQua7.js} +1 -1
  100. package/dist/client/assets/category-editor-BzcQSv3B.js +1 -0
  101. package/dist/client/assets/{chart-B7hxFGKr.js → chart-Bcix-phJ.js} +1 -1
  102. package/dist/client/assets/{chat-context-CVZ1rNGo.js → chat-context-WkB72QDr.js} +1 -1
  103. package/dist/client/assets/{chat-draft-UIE-uNFd.js → chat-draft-anvjkrXf.js} +1 -1
  104. package/dist/client/assets/{checkbox-VSstjUSb.js → checkbox-Yo-_CoUr.js} +1 -1
  105. package/dist/client/assets/{choose-editor-DD3-fBUp.js → choose-editor-j32E7S6T.js} +1 -1
  106. package/dist/client/assets/{cli-auth-success-LIJhoLzG.js → cli-auth-success-Bz3RxiUp.js} +1 -1
  107. package/dist/client/assets/{client-icons-D8SzN11F.js → client-icons-BL2yc5kE.js} +1 -1
  108. package/dist/client/assets/{collapsible-BX137q_-.js → collapsible-Cz7g8j4s.js} +1 -1
  109. package/dist/client/assets/{collection-detail-Brbyx-hM.js → collection-detail-ChcpgbQd.js} +1 -1
  110. package/dist/client/assets/{collection-display-button-LAyYKy93.js → collection-display-button-Cqq95Rk5.js} +1 -1
  111. package/dist/client/assets/{collection-search-Dvf73igt.js → collection-search-DFM5AYUG.js} +1 -1
  112. package/dist/client/assets/{collection-table-wrapper-_ZnQA9Nx.js → collection-table-wrapper-DxZT2IDQ.js} +1 -1
  113. package/dist/client/assets/{collection-tabs-BW0egx-_.js → collection-tabs-CU5BwvHd.js} +1 -1
  114. package/dist/client/assets/{combobox-D6GclaQ-.js → combobox-5QbF4j2b.js} +1 -1
  115. package/dist/client/assets/{command-Dsz0XoYc.js → command-CY_32gBM.js} +1 -1
  116. package/dist/client/assets/{companion-mcps-section-D7ntAaGF.js → companion-mcps-section-C5Ce-Ae8.js} +1 -1
  117. package/dist/client/assets/{connect-ChX83wmI.js → connect-VHpAEDVp.js} +1 -1
  118. package/dist/client/assets/{connect-layout-SP9zSVi3.js → connect-layout-DosY7Ren.js} +1 -1
  119. package/dist/client/assets/{connection-2MR1zroe.js → connection-BtAmcsWV.js} +1 -1
  120. package/dist/client/assets/{connection-card-B5yTdNvS.js → connection-card-DNLyrdBM.js} +1 -1
  121. package/dist/client/assets/{connection-detail-DKOxQWbq.js → connection-detail-ByWc2VaQ.js} +1 -1
  122. package/dist/client/assets/{connection-form-helpers-PrMbwr2L.js → connection-form-helpers-pqXyLS21.js} +1 -1
  123. package/dist/client/assets/{connections-lQVX-uGO.js → connections-BLrf_knq.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-Ccojws8S.js → create-organization-dialog-DqGp97lF.js} +1 -1
  125. package/dist/client/assets/{decofile-api-DygXY02K.js → decofile-api-C6MVAHgF.js} +1 -1
  126. package/dist/client/assets/{decopilot-rj_BJ_Z1.js → decopilot-C2LtkKnC.js} +1 -1
  127. package/dist/client/assets/{dialog-BKhaq-Xf.js → dialog-uPTcsM6n.js} +1 -1
  128. package/dist/client/assets/{discover-C_imFiZx.js → discover-D15TnXT7.js} +1 -1
  129. package/dist/client/assets/{domain-settings-CUKpZjNV.js → domain-settings-C4iSYJi_.js} +1 -1
  130. package/dist/client/assets/{download-app-dialog-wNu8nmu1.js → download-app-dialog-CSAHR0v5.js} +1 -1
  131. package/dist/client/assets/{drawer-CCmZWflK.js → drawer-CJhbJSjB.js} +1 -1
  132. package/dist/client/assets/{editor-DMij_Pa1.js → editor-DhWDdB15.js} +1 -1
  133. package/dist/client/assets/{empty-state-BDpfsfUL.js → empty-state-CvynDoal.js} +1 -1
  134. package/dist/client/assets/{empty-state-DiRnF-wA.js → empty-state-DATmbbqz.js} +1 -1
  135. package/dist/client/assets/{extract-connection-data-Bdk8iF2q.js → extract-connection-data-C-_k_HrX.js} +1 -1
  136. package/dist/client/assets/{feature-gate-KPNWzkBp.js → feature-gate-NGY-PlEE.js} +1 -1
  137. package/dist/client/assets/{feature-paywall-B3_no1lb.js → feature-paywall-C-R3YJVm.js} +1 -1
  138. package/dist/client/assets/{file-explorer-oIhs2jyB.js → file-explorer-CBVvygyV.js} +1 -1
  139. package/dist/client/assets/{file-preview-BFDgPeRr.js → file-preview-BQWchARE.js} +1 -1
  140. package/dist/client/assets/{file-share-button-7xy_ju8b.js → file-share-button-D6ndnz7e.js} +1 -1
  141. package/dist/client/assets/{file-type-icon-Co9lETmZ.js → file-type-icon-x1wD28_F.js} +1 -1
  142. package/dist/client/assets/{folder-icon-CPH1Bszw.js → folder-icon-BsGi9z8O.js} +1 -1
  143. package/dist/client/assets/{form-CxKBX2E3.js → form-CzXfgfFr.js} +1 -1
  144. package/dist/client/assets/{gateway-client-B8HHtBA6.js → gateway-client-_lcPratN.js} +1 -1
  145. package/dist/client/assets/{general-BXQ_6idC.js → general-CLxa6dw_.js} +1 -1
  146. package/dist/client/assets/{github-icon-DSeg1rga.js → github-icon-DD7YJLb0.js} +1 -1
  147. package/dist/client/assets/{home-FAOklPf6.js → home-Cc_gG_k0.js} +1 -1
  148. package/dist/client/assets/{hooks-CFjlhRX0.js → hooks-BDNT0Adb.js} +1 -1
  149. package/dist/client/assets/{hooks-BFlZlUD7.js → hooks-DdW3hvoh.js} +1 -1
  150. package/dist/client/assets/{icon-button-_3vMPXZp.js → icon-button-B9TVjSua.js} +1 -1
  151. package/dist/client/assets/{index-B3clFfYi.js → index--5W-89Xn.js} +1 -1
  152. package/dist/client/assets/{index-Coo4IGyG.js → index-Bb2NSQTG.js} +1 -1
  153. package/dist/client/assets/{index-BwwpOrcS.js → index-C5oMfVw1.js} +1 -1
  154. package/dist/client/assets/{index-CV2G6XgT.js → index-CQcZAkPo.js} +1 -1
  155. package/dist/client/assets/{index-DZmKVVGY.js → index-CdCeTCag.js} +1 -1
  156. package/dist/client/assets/{index-CC7J7MsT.js → index-DXBmCj7V.js} +2 -2
  157. package/dist/client/assets/{index-BrLZxE6-.js → index-DlTwltzZ.js} +1 -1
  158. package/dist/client/assets/{index-DoCuIH7r.js → index-DuEn4YkZ.js} +1 -1
  159. package/dist/client/assets/{index-Ci8CqfCi.js → index-Dud89Ecl.js} +1 -1
  160. package/dist/client/assets/{index-zFkCX32V.js → index-Oih4fNwt.js} +1 -1
  161. package/dist/client/assets/{index-D2HOssRq.js → index-U6uQHeCm.js} +1 -1
  162. package/dist/client/assets/{index-BcfYNZk_.js → index-VAuix8Ds.js} +1 -1
  163. package/dist/client/assets/{index-WfTG300W.js → index-VD5I0PAu.js} +1 -1
  164. package/dist/client/assets/{index-CxsDd08k.js → index-_1eIUhNB.js} +1 -1
  165. package/dist/client/assets/{index-redirect-BV59ZcWQ.js → index-redirect-BhYkN3DP.js} +1 -1
  166. package/dist/client/assets/{infiniteQueryObserver-CKT-6XMq.js → infiniteQueryObserver-DhQG5Ba-.js} +1 -1
  167. package/dist/client/assets/{infra-billing-RcXbwjta.js → infra-billing-CIY_y-NM.js} +1 -1
  168. package/dist/client/assets/{input-DSV_9cOM.js → input-CA3NO5_t.js} +1 -1
  169. package/dist/client/assets/{input-QKe7l082.js → input-Cl33QWb6.js} +1 -1
  170. package/dist/client/assets/{input-X38P96BY.js → input-DJ90IYpm.js} +1 -1
  171. package/dist/client/assets/{integration-icon-BARnXRTY.js → integration-icon-CAyUCGPQ.js} +1 -1
  172. package/dist/client/assets/{label-YKssz_GS.js → label-C_cX51We.js} +1 -1
  173. package/dist/client/assets/{last-preview-page-D5EFEwR4.js → last-preview-page-DolafzDL.js} +1 -1
  174. package/dist/client/assets/{layout-UcqeKFE9.js → layout-BDvTf5Y1.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-BYo-BuCs.js → legacy-agents-deep-CovYAG5o.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-NyVTUirL.js → legacy-main-redirect-DakI8WgO.js} +1 -1
  177. package/dist/client/assets/{library-FX2TKWir.js → library-CQOC6rOe.js} +1 -1
  178. package/dist/client/assets/{login-gigmbDXu.js → login-CzeMsg8T.js} +1 -1
  179. package/dist/client/assets/{markdown-tOSThun8.js → markdown-CqOP0_5N.js} +1 -1
  180. package/dist/client/assets/{mcp-app-renderer-c3JU3ROq.js → mcp-app-renderer-BrIoKm0G.js} +1 -1
  181. package/dist/client/assets/{mcp-oauth-Cr_ZflCp.js → mcp-oauth-ZZeDQKuh.js} +1 -1
  182. package/dist/client/assets/{members-Cd4baVfz.js → members-8jDg9Gt8.js} +1 -1
  183. package/dist/client/assets/{message-templates-Pr7m4Pgn.js → message-templates-D5TTMXdz.js} +1 -1
  184. package/dist/client/assets/{mini-report-page-0G8UQBMn.js → mini-report-page-VIPIzU0p.js} +1 -1
  185. package/dist/client/assets/{mock-board-Dw3AKqte.js → mock-board-DNOBo32D.js} +3 -3
  186. package/dist/client/assets/{monaco-editor-BhkNNN8A.js → monaco-editor-D3gyKeW5.js} +1 -1
  187. package/dist/client/assets/{monitoring-stats-row-D3wuHD5K.js → monitoring-stats-row-B2mHnjHP.js} +1 -1
  188. package/dist/client/assets/{multi-select-Bw9uE0vh.js → multi-select-DWjNtzij.js} +1 -1
  189. package/dist/client/assets/{mustache-BMe4E-3i.js → mustache-ChbLhy-e.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-Ckn9o5ws.js → oauth-callback-PixJQkgi.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-ai-provider-B7dYzzRe.js → oauth-callback-ai-provider-Bo-B7c2F.js} +1 -1
  192. package/dist/client/assets/{onboarding-BtLLloCy.js → onboarding-Ci-02n6u.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-8yO8-q3h.js → optimistic-project-sidebar-views-DXHATWeY.js} +1 -1
  194. package/dist/client/assets/{org-file-open-context-k2zY7W2A.js → org-file-open-context-B3uxBbrN.js} +1 -1
  195. package/dist/client/assets/{organization-choice-oi5kPDHh.js → organization-choice-DTNV4OA3.js} +1 -1
  196. package/dist/client/assets/{orgs-C8VfgzyW.js → orgs-T1j1ZJVH.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-D-yemID7.js → page-seo-form-CEP8eX1I.js} +1 -1
  198. package/dist/client/assets/{pair-CbUh0olY.js → pair-BFIjmC4W.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-DR8Snnfh.js → plan-ladder-BGfca4Fl.js} +1 -1
  200. package/dist/client/assets/{popover-tYq49O5I.js → popover-B1-bCr3Y.js} +1 -1
  201. package/dist/client/assets/{post-calendar-n3g3NXQN.js → post-calendar-BJNEmWBL.js} +1 -1
  202. package/dist/client/assets/{post-editor-BCki1XwL.js → post-editor-CXDWBybn.js} +1 -1
  203. package/dist/client/assets/{preview-content-BEe_g5h_.js → preview-content-BJxZz0wL.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-B88KWjD7.js → preview-dialog-tXexYYvy.js} +1 -1
  205. package/dist/client/assets/{primitives-DvNXO9ko.js → primitives-CVINQDcd.js} +1 -1
  206. package/dist/client/assets/{profile-Dn8W-1_J.js → profile-BDVO0CZL.js} +1 -1
  207. package/dist/client/assets/{project-app-view-CHIgEuQJ.js → project-app-view-D5WewSj0.js} +1 -1
  208. package/dist/client/assets/{project-feed-BeVLcst-.js → project-feed-BJK1cP5l.js} +1 -1
  209. package/dist/client/assets/{project-icon-BuTPt9Ec.js → project-icon-I77gr-pK.js} +1 -1
  210. package/dist/client/assets/project-reports-C-M11Ewx.js +1 -0
  211. package/dist/client/assets/project-tasks-DTM5l8Na.js +1 -0
  212. package/dist/client/assets/{prompts-BrLG0HnD.js → prompts-CMF-VFXI.js} +1 -1
  213. package/dist/client/assets/record-editor-D668-cnv.js +1 -0
  214. package/dist/client/assets/{redirect-editor-DQh1NXo4.js → redirect-editor-DIpeG6wi.js} +1 -1
  215. package/dist/client/assets/registry-BL1mut8w.js +2 -0
  216. package/dist/client/assets/{registry-layout-tLc7-FpU.js → registry-layout-BmUtYGzz.js} +1 -1
  217. package/dist/client/assets/{reports-Bgxd82xF.js → reports-B5M0xDyn.js} +1 -1
  218. package/dist/client/assets/reports-DZF0Eu6T.js +1 -0
  219. package/dist/client/assets/{reports-onboarding-BORIliYh.js → reports-onboarding-pRaIN0gW.js} +1 -1
  220. package/dist/client/assets/{reports-tab-3yvhtU-e.js → reports-tab-b87PNkNv.js} +2 -2
  221. package/dist/client/assets/{repositories-DnQQ93Vy.js → repositories-J4P1iWK3.js} +1 -1
  222. package/dist/client/assets/{repository-import-picker-B1zE1wEx.js → repository-import-picker-CxfUH2IT.js} +1 -1
  223. package/dist/client/assets/{repository-picker-DMUsWfjy.js → repository-picker-C84r9pEi.js} +1 -1
  224. package/dist/client/assets/{require-capability-B9l2cjC7.js → require-capability-nXjtpUGm.js} +1 -1
  225. package/dist/client/assets/{required-auth-layout-qQ6V67AS.js → required-auth-layout-D6L2B3lC.js} +1 -1
  226. package/dist/client/assets/{reset-password-CzGwWM54.js → reset-password-CnmRONVL.js} +1 -1
  227. package/dist/client/assets/{resizable-c-JEmBrU.js → resizable-DGvuTNz4.js} +1 -1
  228. package/dist/client/assets/{review-settings-CBDmCs9f.js → review-settings-0gzJBFQk.js} +1 -1
  229. package/dist/client/assets/{rich-text-link-control-B4QybUls.js → rich-text-link-control-D1jkHV9n.js} +1 -1
  230. package/dist/client/assets/{roles-9Q5Zr1_l.js → roles-D0xiAKmZ.js} +1 -1
  231. package/dist/client/assets/{route-D9feMXoH.js → route-BXepAEc1.js} +1 -1
  232. package/dist/client/assets/{route-Cyp-PzpR.js → route-CRwg4ev7.js} +1 -1
  233. package/dist/client/assets/{route-DrZOVBG5.js → route-D4AIZCoB.js} +1 -1
  234. package/dist/client/assets/{route-page-header-BzWw0nja.js → route-page-header-DPnz1U8f.js} +1 -1
  235. package/dist/client/assets/{runnable-block-editor-nQ69L6jb.js → runnable-block-editor-DPGvOiWb.js} +1 -1
  236. package/dist/client/assets/{sandbox-lifecycle-context-DLKr6QBG.js → sandbox-lifecycle-context-BrifGyM7.js} +1 -1
  237. package/dist/client/assets/{schema-CStbpjQf.js → schema-CQ48zDTU.js} +1 -1
  238. package/dist/client/assets/{scroll-area-BLDUQh9N.js → scroll-area-SUblEurA.js} +1 -1
  239. package/dist/client/assets/{search-input-MlNEh696.js → search-input-DN1HxMQM.js} +1 -1
  240. package/dist/client/assets/{search-toggle-SUy-5Oe0.js → search-toggle-0BP5lkY1.js} +1 -1
  241. package/dist/client/assets/{secrets-CEw0kB_t.js → secrets-BaKuwycc.js} +1 -1
  242. package/dist/client/assets/{sections-editor-l8Cc724N.js → sections-editor-AVazcTA0.js} +1 -1
  243. package/dist/client/assets/{select-C_C7jdl-.js → select-DOrOm388.js} +1 -1
  244. package/dist/client/assets/{select-model-FW_XGeEU.js → select-model-BYr7h8L7.js} +1 -1
  245. package/dist/client/assets/{seo-editor-BhZJvD6-.js → seo-editor-Byp247PA.js} +1 -1
  246. package/dist/client/assets/{separator-D-DaNCb-.js → separator-CId9iV2J.js} +1 -1
  247. package/dist/client/assets/{settings-tab-DhuuexRq.js → settings-tab-BG8Rq5w6.js} +1 -1
  248. package/dist/client/assets/{sheet-B5ncClVO.js → sheet-DlPfrw9X.js} +1 -1
  249. package/dist/client/assets/{shell-layout-p-WJ7uxl.js → shell-layout-BDka9RLc.js} +1 -1
  250. package/dist/client/assets/{sidebar-BlfpAzXY.js → sidebar-6rO43IUN.js} +1 -1
  251. package/dist/client/assets/{skill-preview-CeIBKDR2.js → skill-preview-Co5VzFcl.js} +1 -1
  252. package/dist/client/assets/{skills-Cpf0zAbB.js → skills-BjII2RGG.js} +1 -1
  253. package/dist/client/assets/{sso-CYe8kGWS.js → sso-DisHvnNZ.js} +1 -1
  254. package/dist/client/assets/{store-DDl3lPqK.js → store-CFvcGu_A.js} +1 -1
  255. package/dist/client/assets/store-registry-ap1IeTES.js +2 -0
  256. package/dist/client/assets/{switch-C_FmZ5Us.js → switch-BV-MyRQN.js} +1 -1
  257. package/dist/client/assets/{synced-repos-DHbM7OOb.js → synced-repos-DQ8WQsrQ.js} +1 -1
  258. package/dist/client/assets/{table-mH2G1tkg.js → table-zCmjz1mf.js} +1 -1
  259. package/dist/client/assets/{tabs-jjUOgDeE.js → tabs-tFCunu6d.js} +1 -1
  260. package/dist/client/assets/{task-board-BtEMyO1f.js → task-board-D3lC_1Th.js} +1 -1
  261. package/dist/client/assets/{task-route-BaALoopn.js → task-route-Bcy3o1uq.js} +1 -1
  262. package/dist/client/assets/{task-status-CCMsckzm.js → task-status-DZ2zcnv8.js} +1 -1
  263. package/dist/client/assets/{taskboard-analytics-CzQSxt8I.js → taskboard-analytics-DN3ZXOV0.js} +1 -1
  264. package/dist/client/assets/tasks-C6FPIHKX.js +1 -0
  265. package/dist/client/assets/{tasks-K4e2STZ0.js → tasks-fYEHHw5V.js} +1 -1
  266. package/dist/client/assets/{textarea-B7wqTmSc.js → textarea-D-6K9r19.js} +1 -1
  267. package/dist/client/assets/{thread-button-B9U3gqvP.js → thread-button-DD23ms1j.js} +1 -1
  268. package/dist/client/assets/{thread-intent-DZx7N_NL.js → thread-intent-vrMbWjYP.js} +1 -1
  269. package/dist/client/assets/{thread-route-B3hhxYHj.js → thread-route-BSTJ2qPY.js} +1 -1
  270. package/dist/client/assets/{thread-route-DnE31jZ2.js → thread-route-QtII8A2p.js} +1 -1
  271. package/dist/client/assets/{thread-sheet-body-D_py0jIP.js → thread-sheet-body-KQlmfRxf.js} +1 -1
  272. package/dist/client/assets/{toggle-group-C-J6fFSZ.js → toggle-group-XcXQjaHX.js} +1 -1
  273. package/dist/client/assets/{toolbar-icon-button-DQAUOhdv.js → toolbar-icon-button-BIBFTsar.js} +1 -1
  274. package/dist/client/assets/{tooltip-DSCGYdw1.js → tooltip-rAdo_tRS.js} +1 -1
  275. package/dist/client/assets/{track-BWEjISsx.js → track-DmnUsSfo.js} +1 -1
  276. package/dist/client/assets/{types-BQYrCHfb.js → types-CzTQ99AX.js} +1 -1
  277. package/dist/client/assets/{usage-stats-CH100JwP.js → usage-stats-CYrj10jy.js} +1 -1
  278. package/dist/client/assets/{use-ai-providers-DPIPADTm.js → use-ai-providers-BwceVIHL.js} +1 -1
  279. package/dist/client/assets/{use-automations-Cm_whz3Q.js → use-automations-LlaDJlNA.js} +1 -1
  280. package/dist/client/assets/{use-autosave-C09DCahC.js → use-autosave-DVR2xqFT.js} +1 -1
  281. package/dist/client/assets/{use-connect-companion-D45RJA2C.js → use-connect-companion-C-xpH0dL.js} +1 -1
  282. package/dist/client/assets/{use-connection-DAR6kA6F.js → use-connection-BN3cT5kd.js} +1 -1
  283. package/dist/client/assets/{use-copy-CLZ5Gmjm.js → use-copy-Dcx9tDN2.js} +1 -1
  284. package/dist/client/assets/{use-create-virtual-mcp-DlDbTDWh.js → use-create-virtual-mcp-9-NMNx3_.js} +1 -1
  285. package/dist/client/assets/{use-date-fns-locale-4a1GuGUG.js → use-date-fns-locale-CDbheytD.js} +1 -1
  286. package/dist/client/assets/{use-debounced-autosave-s6ooboiq.js → use-debounced-autosave-DvQCb6wJ.js} +1 -1
  287. package/dist/client/assets/{use-debounced-value-C7PP6GCc.js → use-debounced-value-CfEN0fzg.js} +1 -1
  288. package/dist/client/assets/{use-deco-credits-C78gqYYg.js → use-deco-credits-6yJRZ2JQ.js} +1 -1
  289. package/dist/client/assets/{use-decopilot-events-DDN9tgML.js → use-decopilot-events-R9ZDtZrh.js} +1 -1
  290. package/dist/client/assets/{use-delete-connection-DT4K_5dd.js → use-delete-connection-BodmL1FQ.js} +1 -1
  291. package/dist/client/assets/{use-deployment-admin-mukdSbJI.js → use-deployment-admin-C884vS-k.js} +1 -1
  292. package/dist/client/assets/{use-entitlements-CsT7-WMV.js → use-entitlements-Dx7XqEcC.js} +1 -1
  293. package/dist/client/assets/{use-fast-preview-draft-url-BofBOVEy.js → use-fast-preview-draft-url-CAOVYx78.js} +1 -1
  294. package/dist/client/assets/{use-file-configs-DT6Slpub.js → use-file-configs-BJjPt2Ut.js} +1 -1
  295. package/dist/client/assets/{use-in-settings-BuwNY17C.js → use-in-settings-Bx-OzfKC.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-BEJH1fno.js → use-infinite-scroll-CWWIqkZ2.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-CRlXrVsN.js → use-join-requests-gm28lnmh.js} +1 -1
  298. package/dist/client/assets/{use-main-panel-tabs-CHXW72tt.js → use-main-panel-tabs-Dcfn9hBK.js} +1 -1
  299. package/dist/client/assets/{use-mcp-auth-status-BUHt6LYh.js → use-mcp-auth-status-CwUBv4Hm.js} +1 -1
  300. package/dist/client/assets/{use-mcp-client-jmamuSRM.js → use-mcp-client-BtmoWWkf.js} +1 -1
  301. package/dist/client/assets/{use-mcp-prompts-Cb12ACl6.js → use-mcp-prompts-BkeLGKHx.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-U5kwqIN7.js → use-mcp-tools-B84418Zt.js} +1 -1
  303. package/dist/client/assets/{use-members-CZk_logh.js → use-members-DOLKWeYn.js} +1 -1
  304. package/dist/client/assets/{use-mobile-X_9uHXB5.js → use-mobile-CRuuooNM.js} +1 -1
  305. package/dist/client/assets/{use-navigate-to-agent-XZHI0vTx.js → use-navigate-to-agent-DIpRW39A.js} +1 -1
  306. package/dist/client/assets/{use-open-billing-url-BygdFnSn.js → use-open-billing-url-C5SPvsb8.js} +1 -1
  307. package/dist/client/assets/{use-org-auth-client-6spdYft8.js → use-org-auth-client-TdQ8MWNM.js} +1 -1
  308. package/dist/client/assets/{use-org-fs-C4AEj3YR.js → use-org-fs-DnKhdb5t.js} +1 -1
  309. package/dist/client/assets/{use-org-repo-syncs-D5-YS2q1.js → use-org-repo-syncs-DJd41R4N.js} +1 -1
  310. package/dist/client/assets/{use-org-sso-CbtWg6df.js → use-org-sso-D6hDWGLC.js} +1 -1
  311. package/dist/client/assets/{use-organization-roles-B2NYy6qP.js → use-organization-roles-BXwewduE.js} +1 -1
  312. package/dist/client/assets/{use-organization-settings-DiOLzOn-.js → use-organization-settings-yjdHHrMs.js} +1 -1
  313. package/dist/client/assets/{use-panel-navigate-YnjVvVnu.js → use-panel-navigate-DEBeb2CL.js} +1 -1
  314. package/dist/client/assets/{use-project-native-view-presence-S2GuqygD.js → use-project-native-view-presence-CHdUtv7D.js} +1 -1
  315. package/dist/client/assets/{use-project-scope-azWGklpf.js → use-project-scope-DHl6lLqa.js} +1 -1
  316. package/dist/client/assets/{use-registry-connections-Dr6Tl0jy.js → use-registry-connections-B13lXSQz.js} +1 -1
  317. package/dist/client/assets/{use-releases-sRilJRv7.js → use-releases-CASa78Vi.js} +1 -1
  318. package/dist/client/assets/{use-reports-diagnostic-b56ze7yP.js → use-reports-diagnostic-jdgV6F3e.js} +1 -1
  319. package/dist/client/assets/{use-route-default-main-DAXdKSA3.js → use-route-default-main-DSxGO_aw.js} +1 -1
  320. package/dist/client/assets/{use-secrets-BD25jCAi.js → use-secrets-B-9J9EkQ.js} +1 -1
  321. package/dist/client/assets/{use-section-preview-base-CfKeOl7s.js → use-section-preview-base-Di3xgtD1.js} +1 -1
  322. package/dist/client/assets/{use-session-runtime-D8PgcjtK.js → use-session-runtime-Dc42TY0X.js} +1 -1
  323. package/dist/client/assets/{use-tags-DMzy8m-k.js → use-tags-CCJJRf2p.js} +1 -1
  324. package/dist/client/assets/{use-task-board-analytics-BXM0SDto.js → use-task-board-analytics-CK3_uAaU.js} +1 -1
  325. package/dist/client/assets/{use-task-metadata-IzJB5PVG.js → use-task-metadata-jNANkRmK.js} +1 -1
  326. package/dist/client/assets/{use-thread-outputs-BhhE_Gkc.js → use-thread-outputs-BoiojEnU.js} +1 -1
  327. package/dist/client/assets/{use-view-mode-CUHkIbeG.js → use-view-mode-D8IEchi6.js} +1 -1
  328. package/dist/client/assets/{use-virtual-mcp-Bt7oX0ej.js → use-virtual-mcp-2UFz9K4W.js} +1 -1
  329. package/dist/client/assets/useInfiniteQuery-Bvk6obSJ.js +1 -0
  330. package/dist/client/assets/{useQueries-D7ondynP.js → useQueries-thkmee8L.js} +1 -1
  331. package/dist/client/assets/useSuspenseInfiniteQuery-7JvmV8My.js +1 -0
  332. package/dist/client/assets/{users-CP4Dfulp.js → users-BGtd_KGY.js} +1 -1
  333. package/dist/client/assets/{utils-CcX7wgow.js → utils-1s66UjII.js} +1 -1
  334. package/dist/client/assets/{variant-calendar-BYxVe-PM.js → variant-calendar-Dg9C2UkW.js} +1 -1
  335. package/dist/client/assets/{variant-matcher-override-CgX58Kkx.js → variant-matcher-override-DquKUvoE.js} +1 -1
  336. package/dist/client/assets/{view-mode-toggle-CRnJAx40.js → view-mode-toggle-CJQ43vUA.js} +1 -1
  337. package/dist/client/assets/{virtual-mcp-BWl8nlWy.js → virtual-mcp-Be7V69gW.js} +1 -1
  338. package/dist/client/index.html +1 -1
  339. package/dist/server/cli.js +597 -597
  340. package/dist/server/server.js +392 -392
  341. package/package.json +1 -1
  342. package/dist/client/assets/agent-app-DqzssWfL.js +0 -1
  343. package/dist/client/assets/agent-deck-BQOqb5JA.js +0 -1
  344. package/dist/client/assets/agent-file-CN4CJx4b.js +0 -1
  345. package/dist/client/assets/agent-library-file-CMtJlgeS.js +0 -1
  346. package/dist/client/assets/agent-settings-G7qQl7Yj.js +0 -1
  347. package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +0 -2
  348. package/dist/client/assets/agent-view-BinIwia6.js +0 -1
  349. package/dist/client/assets/api-keys-CN-jy2XH.js +0 -1
  350. package/dist/client/assets/app-editor-BPKOcfIg.js +0 -1
  351. package/dist/client/assets/category-editor-Crlp5xLx.js +0 -1
  352. package/dist/client/assets/project-reports-EFWj1j4Z.js +0 -1
  353. package/dist/client/assets/project-tasks-DGYfz1Ev.js +0 -1
  354. package/dist/client/assets/record-editor-AST5wQoO.js +0 -1
  355. package/dist/client/assets/registry-FGkay0Wa.js +0 -2
  356. package/dist/client/assets/reports-CqtPOzss.js +0 -1
  357. package/dist/client/assets/store-registry-DUH5xq3l.js +0 -2
  358. package/dist/client/assets/tasks-CI20rxb_.js +0 -1
  359. package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +0 -1
  360. package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.js +0 -1
@@ -1,4 +1,4 @@
1
- import{ff as Re,eu as Ks,ap as k,aI as _e,bK as Bt,cT as Qi,bL as Se,cP as Er,cU as Ve,bN as iu,fg as gn,ao as Q,fh as es,fi as Gs,fj as su,cR as ou,fk as Ba,fl as au,fm as lu,fn as cu,cM as qa,cq as uu,cE as du,bO as Va,bM as er,fo as fu,c as je,Z as hu,j as h,P as st,n as Ys,l as Dr,a0 as ts,a as mu,t as gr,co as ns,r as P,fp as za,cp as pu,fq as gu,f7 as yu,bd as Wa,aF as rs,eT as bu,eG as xu,eH as vu,be as Su,b as ct,p as wu,c_ as ju,a9 as Ou,B as kr,h as is,d as Au,E as Eu,f5 as Cu}from"./index-CC7J7MsT.js";import{i as _u}from"./sidebar-BlfpAzXY.js";import{E as Ha}from"./empty-state-DiRnF-wA.js";import{d as Iu,e as Tu,n as Nu,A as Ka,S as Fu,C as Pu,u as $u}from"./use-mcp-client-jmamuSRM.js";import{b as Du}from"./use-mcp-tools-U5kwqIN7.js";import{A as Ga,i as ku}from"./agent-icon-D5Ih-I28.js";import{i as Ru}from"./Key01-O_Ykzy8v.js";import{b as Mu,u as Uu,a as Lu}from"./use-connection-DAR6kA6F.js";import{U as An,b as Qr,c as Js}from"./auth-B_QE3yd2.js";import{i as Bu,c as qu,b as Vu,e as zu}from"./extract-connection-data-Bdk8iF2q.js";import{u as Wu}from"./use-registry-connections-Dr6Tl0jy.js";import{e as Hu}from"./use-organization-settings-DiOLzOn-.js";import{s as Ku}from"./Plus-BjOenFFb.js";import{S as Gu,b as Yu,a as Ju,d as Zu,c as Xu}from"./select-C_C7jdl-.js";import{R as Zs}from"./index-BwwpOrcS.js";import{R as Qu,I as ed,a as td}from"./index-WfTG300W.js";import{R as nd,T as rd,a as id,b as sd}from"./index-Ci8CqfCi.js";import{_ as qt}from"./index-BrLZxE6-.js";import{I as od}from"./input-DSV_9cOM.js";import{a as ad,b as ld,P as cd}from"./popover-tYq49O5I.js";import{a as ud,T as dd,b as fd,c as hd}from"./tooltip-DSCGYdw1.js";import{b as md}from"./use-virtual-mcp-Bt7oX0ej.js";import{i as pd}from"./SearchMd-C6gkQ2l2.js";import{u as gd}from"./use-mobile-X_9uHXB5.js";import{u as yd}from"./use-create-virtual-mcp-DlDbTDWh.js";var bd=class{apply(t,e){if(!e.type)return;const n=Array.isArray(e.type)?e.type:[e.type],r=new Set(n);if(r.has("string")||(t.string=!1),!r.has("number")&&!r.has("integer")&&(t.number=!1),r.has("boolean")||(t.boolean=!1),r.has("null")||(t.null=!1),r.has("array")||(t.array=!1),r.has("object")||(t.object=!1),r.has("integer")&&t.number!==!1){const i=t.number||_e();i instanceof gn&&(t.number=i.int())}}},xd=class{apply(t,e){if(e.const===void 0)return;const n=e.const;t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1,typeof n=="string"?t.string=Ve(n):typeof n=="number"?t.number=Ve(n):typeof n=="boolean"?t.boolean=Ve(n):n===null?t.null=Qi():Array.isArray(n)?t.array=void 0:typeof n=="object"&&(t.object=void 0)}},vd=class{apply(t,e){if(!e.enum)return;if(e.enum.length===0){e.type||(t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1);return}const n={string:e.enum.filter(r=>typeof r=="string"),number:e.enum.filter(r=>typeof r=="number"),boolean:e.enum.filter(r=>typeof r=="boolean"),null:e.enum.filter(r=>r===null),array:e.enum.filter(r=>Array.isArray(r)),object:e.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};t.string=this.createTypeSchema(n.string,"string"),t.number=this.createTypeSchema(n.number,"number"),t.boolean=this.createTypeSchema(n.boolean,"boolean"),t.null=n.null.length>0?Qi():!1,t.array=n.array.length>0?void 0:!1,t.object=n.object.length>0?void 0:!1}createTypeSchema(t,e){if(t.length===0)return!1;if(t.length===1)return Ve(t[0]);if(e==="string")return iu(t);if(e==="number"){const[n,r,...i]=t;return Er([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return e==="boolean"?Er([Ve(!0),Ve(!1)]):!1}},Sd=class{apply(t,e){const n=e;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=cu();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),t.file=r,t.string=!1}}},wd=class{apply(t,e){const n=e;e.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&t.string===void 0&&(t.string=k())}},jd=class{apply(t,e){const n=e;if(n.minLength!==void 0&&t.string!==!1){const r=t.string||k();r instanceof es&&(t.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Od=class{apply(t,e){const n=e;if(n.maxLength!==void 0&&t.string!==!1){const r=t.string||k();r instanceof es&&(t.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Ad=class{apply(t,e){const n=e;if(n.pattern&&t.string!==!1){const r=t.string||k();if(r instanceof es){const i=new RegExp(n.pattern);t.string=r.regex(i)}}}},Ed=class{apply(t,e){const n=e;if(n.minimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(t.number=r.min(n.minimum))}}},Cd=class{apply(t,e){const n=e;if(n.maximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(t.number=r.max(n.maximum))}}},_d=class{apply(t,e){const n=e;if(n.exclusiveMinimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(typeof n.exclusiveMinimum=="number"?t.number=r.gt(n.exclusiveMinimum):t.number=!1)}}},Id=class{apply(t,e){const n=e;if(n.exclusiveMaximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(typeof n.exclusiveMaximum=="number"?t.number=r.lt(n.exclusiveMaximum):t.number=!1)}}},Td=class{apply(t,e){const n=e;if(n.multipleOf!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(t.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Nd=class{apply(t,e){const n=e;e.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&t.array===void 0&&(t.array=Se(Re()))}},Fd=class{apply(t,e){const n=e;n.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(Re())).min(n.minItems))}},Pd=class{apply(t,e){const n=e;n.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(Re())).max(n.maxItems))}},$d=class{apply(t,e){const n=e;if(t.array!==!1)if(Array.isArray(n.items))t.array=t.array||Se(Re());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ie(n.items);let i=Se(r);if(t.array&&t.array instanceof su){const s=t.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}t.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?t.array=t.array||Se(Re()):t.array=Se(Re()).max(0):typeof n.items=="boolean"&&n.items===!0?t.array=t.array||Se(Re()):n.prefixItems&&(t.array=t.array||Se(Re()))}},Dd=class{apply(t,e){if(e.type!=="array")return;const n=e;if(!Array.isArray(n.items)||t.array===!1)return;const r=n.items.map(s=>Ie(s));let i;r.length===0?i=Gs([]):i=Gs(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),t.tuple=i,t.array=!1}},kd=class{apply(t,e){const n=e;t.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(t.object=t.object||Q({}).passthrough())}},Rd=class{apply(t,e){const n=e;e.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&t.object===void 0&&(t.object=Q({}).passthrough())}},Md=class{apply(t,e){const n=e;if(n.maxProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Ud=class{apply(t,e){const n=e;if(n.minProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Hn(t,e){if(t===e)return!0;if(t==null||e==null)return t===e;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((n,r)=>Hn(n,e[r]));if(typeof t=="object"&&typeof e=="object"){const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Hn(t[i],e[i]))}return!1}function Ld(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(n=>e.some(i=>Hn(n,i))?!1:(e.push(n),!0))}}function Cr(t,e){return t.safeParse(e).success}var Bd=class{apply(t,e){if(!e.not)return t;const n=Ie(e.not);return t.refine(r=>!Cr(n,r),{message:"Value must not match the 'not' schema"})}},qd=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(Ld(),{message:"Array items must be unique"})}},Vd=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(r=>Ie(r)).reduce((r,i)=>Ba(r,i),t)}},zd=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const n=e.anyOf.length===1?Ie(e.anyOf[0]):Er([Ie(e.anyOf[0]),Ie(e.anyOf[1]),...e.anyOf.slice(2).map(r=>Ie(r))]);return Ba(t,n)}},Wd=class{apply(t,e){if(!e.oneOf||e.oneOf.length===0)return t;const n=e.oneOf.map(r=>Ie(r));return t.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},Hd=class{apply(t,e){const n=e;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ie(s));return t.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!Cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ie(n.items);for(let a=i.length;a<s.length;a++)if(!Cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},Kd=class{apply(t,e){const n=e;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return t;if(t instanceof au||t instanceof lu){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ie(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?Q(r):Q(r).passthrough()}return t.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ie(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Gd=class{apply(t,e){if(!e.enum||e.enum.length===0)return t;const n=e.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?t:t.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Hn(r,i)),{message:"Value must match one of the enum values"})}},Yd=class{apply(t,e){if(e.const===void 0)return t;const n=e.const;return typeof n!="object"||n===null?t:t.refine(r=>Hn(r,n),{message:"Value must equal the const value"})}},Jd=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Zd=class{apply(t,e){var n;const r=e;return!((n=r.required)!=null&&n.includes("__proto__"))||e.type!==void 0?t:Re().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(t,e){return typeof t!="object"||t===null||Array.isArray(t)?!0:e.every(n=>Object.prototype.hasOwnProperty.call(t,n))}},Xd=class{apply(t,e){var n;const r=e;if(r.contains===void 0)return t;const i=Ie(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return t.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)Cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Qd=class{apply(t,e){const{default:n}=e;return n===void 0||!t.safeParse(n).success?t:t.default(n)}},ef=[new xd,new vd,new bd,new Sd,new wd,new Nd,new Rd,new jd,new Od,new Ad,new Ed,new Cd,new _d,new Id,new Td,new Dd,new Fd,new Pd,new $d,new Md,new Ud,new kd],tf=[new Zd,new Gd,new Yd,new Vd,new zd,new Wd,new Hd,new Kd,new Xd,new Bd,new qd,new Qd,new Jd];function Ie(t){if(typeof t=="boolean")return t?Re():Ks();const e={};for(const i of ef)i.apply(e,t);const n=[];if(e.string!==!1&&n.push(e.string||k()),e.number!==!1&&n.push(e.number||_e()),e.boolean!==!1&&n.push(e.boolean||Bt()),e.null!==!1&&n.push(e.null||Qi()),e.array!==!1&&n.push(e.array||Se(Re())),e.tuple!==!1&&e.tuple!==void 0&&n.push(e.tuple),e.object!==!1)if(e.object)n.push(e.object);else{const i=ou(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}e.file!==!1&&e.file!==void 0&&n.push(e.file);let r;n.length===0?r=Ks():n.length===1?r=n[0]:Object.keys(t).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=Er(n):r=Re();for(const i of tf)r=i.apply(r,t);return r}class Xs extends Event{constructor(e,n){var r,i;super(e),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,n,r){return r(Qs(this),n)}[Symbol.for("Deno.customInspect")](e,n){return e(Qs(this),n)}}function nf(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Ii(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Ii).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Ii(t.cause)}`:t.message:`${t}`}function Qs(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var Ya=t=>{throw TypeError(t)},ss=(t,e,n)=>e.has(t)||Ya("Cannot "+n),Z=(t,e,n)=>(ss(t,e,"read from private field"),n?n.call(t):e.get(t)),ve=(t,e,n)=>e.has(t)?Ya("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pe=(t,e,n,r)=>(ss(t,e,"write to private field"),e.set(t,n),n),ot=(t,e,n)=>(ss(t,e,"access private method"),n),Fe,Pt,Zt,yr,_r,Rn,tn,Mn,xt,Xt,on,Qt,Nn,qe,Ti,Ni,Fi,eo,Pi,$i,Fn,Di,ki;class br extends EventTarget{constructor(e,n){var r,i;super(),ve(this,qe),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ve(this,Fe),ve(this,Pt),ve(this,Zt),ve(this,yr),ve(this,_r),ve(this,Rn),ve(this,tn),ve(this,Mn,null),ve(this,xt),ve(this,Xt),ve(this,on,null),ve(this,Qt,null),ve(this,Nn,null),ve(this,Ni,async s=>{var o;Z(this,Xt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){ot(this,qe,Fn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?pe(this,Zt,new URL(s.url)):pe(this,Zt,void 0),c!==200){ot(this,qe,Fn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){ot(this,qe,Fn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.OPEN);const d=new Event("open");if((o=Z(this,Nn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){ot(this,qe,Fn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const m=new TextDecoder,g=a.getReader();let f=!0;do{const{done:p,value:b}=await g.read();b&&Z(this,Xt).feed(m.decode(b,{stream:!p})),p&&(f=!1,Z(this,Xt).reset(),ot(this,qe,Di).call(this))}while(f)}),ve(this,Fi,s=>{pe(this,xt,void 0),!(s.name==="AbortError"||s.type==="aborted")&&ot(this,qe,Di).call(this,Ii(s))}),ve(this,Pi,s=>{typeof s.id=="string"&&pe(this,Mn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:Z(this,Zt)?Z(this,Zt).origin:Z(this,Pt).origin,lastEventId:s.id||""});Z(this,Qt)&&(!s.event||s.event==="message")&&Z(this,Qt).call(this,o),this.dispatchEvent(o)}),ve(this,$i,s=>{pe(this,Rn,s)}),ve(this,ki,()=>{pe(this,tn,void 0),Z(this,Fe)===this.CONNECTING&&ot(this,qe,Ti).call(this)});try{if(e instanceof URL)pe(this,Pt,e);else if(typeof e=="string")pe(this,Pt,new URL(e,rf()));else throw new Error("Invalid URL")}catch{throw nf("An invalid or illegal string was specified")}pe(this,Xt,Iu({onEvent:Z(this,Pi),onRetry:Z(this,$i)})),pe(this,Fe,this.CONNECTING),pe(this,Rn,3e3),pe(this,_r,(r=n?.fetch)!=null?r:globalThis.fetch),pe(this,yr,(i=n?.withCredentials)!=null?i:!1),ot(this,qe,Ti).call(this)}get readyState(){return Z(this,Fe)}get url(){return Z(this,Pt).href}get withCredentials(){return Z(this,yr)}get onerror(){return Z(this,on)}set onerror(e){pe(this,on,e)}get onmessage(){return Z(this,Qt)}set onmessage(e){pe(this,Qt,e)}get onopen(){return Z(this,Nn)}set onopen(e){pe(this,Nn,e)}addEventListener(e,n,r){const i=n;super.addEventListener(e,i,r)}removeEventListener(e,n,r){const i=n;super.removeEventListener(e,i,r)}close(){Z(this,tn)&&clearTimeout(Z(this,tn)),Z(this,Fe)!==this.CLOSED&&(Z(this,xt)&&Z(this,xt).abort(),pe(this,Fe,this.CLOSED),pe(this,xt,void 0))}}Fe=new WeakMap,Pt=new WeakMap,Zt=new WeakMap,yr=new WeakMap,_r=new WeakMap,Rn=new WeakMap,tn=new WeakMap,Mn=new WeakMap,xt=new WeakMap,Xt=new WeakMap,on=new WeakMap,Qt=new WeakMap,Nn=new WeakMap,qe=new WeakSet,Ti=function(){pe(this,Fe,this.CONNECTING),pe(this,xt,new AbortController),Z(this,_r)(Z(this,Pt),ot(this,qe,eo).call(this)).then(Z(this,Ni)).catch(Z(this,Fi))},Ni=new WeakMap,Fi=new WeakMap,eo=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Z(this,Mn)?{"Last-Event-ID":Z(this,Mn)}:void 0},cache:"no-store",signal:(t=Z(this,xt))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},Pi=new WeakMap,$i=new WeakMap,Fn=function(t,e){var n;Z(this,Fe)!==this.CLOSED&&pe(this,Fe,this.CLOSED);const r=new Xs("error",{code:e,message:t});(n=Z(this,on))==null||n.call(this,r),this.dispatchEvent(r)},Di=function(t,e){var n;if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.CONNECTING);const r=new Xs("error",{code:e,message:t});(n=Z(this,on))==null||n.call(this,r),this.dispatchEvent(r),pe(this,tn,setTimeout(Z(this,ki),Z(this,Rn)))},ki=new WeakMap,br.CONNECTING=0,br.OPEN=1,br.CLOSED=2;function rf(){const t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}class sf extends Error{constructor(e,n,r){super(`SSE error: ${n}`),this.code=e,this.event=r}}class of{constructor(e,n){this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=Tu(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new An("No auth provider");let e;try{e=await Qr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(e!=="AUTHORIZED")throw new An;return await this._startOrAuth()}async _commonHeaders(){const e={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(e.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const n=Nu(this._requestInit?.headers);return new Headers({...e,...n})}_startOrAuth(){const e=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new br(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await e(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=Js(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new sf(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=qa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new An("No auth provider");if(await Qr(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new An("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(e){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(e),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=Js(i);if(this._resourceMetadataUrl=o,this._scope=a,await Qr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new An;return this.send(e)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(e){this._protocolVersion=e}}const af="mcp";class lf{constructor(e){this._url=e}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,n)=>{this._socket=new WebSocket(this._url,af),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{e()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=qa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(e){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(e)),n()})}}function cf(){const t=new Ka({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return uu(t),t}class uf{#e=cf();#t=new Map;#n=new WeakMap;getValidator(e){const n=this.#n.get(e);if(n)return n;let r;const i=s=>{if(!r){const o=df(e);let a=this.#t.get(o);a||(a=this.#e.compile(e),this.#t.set(o,a)),r=a}return r(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(r.errors)}};return this.#n.set(e,i),i}}function df(t){return JSON.stringify(t,(e,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const ff=new uf;var to;(function(t){t.Completable="McpCompletable"})(to||(to={}));class hf extends Fu{constructor(e,n){super(e,n)}send(e,n){const r=mf(e);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(e,n)}}function mf(t){const e=t;if(!e||typeof e!="object"||!("method"in e))return null;switch(e.method){case"initialize":{const n=e?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:e.jsonrpc??"2.0",id:e.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class pf extends Pu{constructor(e,n){super(e,{jsonSchemaValidator:ff,...n})}async listTools(e,n){return await this.request({method:"tools/list",params:e},du,n)}}const gf=async(t,e,n)=>{const r=yf(t.connection,e,n);if(!r)throw new Error("Unknown MCP connection type");const i=new pf({name:t?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},yf=(t,e,n)=>{if(t.type==="Websocket")return new lf(new URL(t.url));if(t.type!=="SSE"&&t.type!=="HTTP")return null;const i={...t.token?{authorization:`Bearer ${t.token}`}:{},...n??{},..."headers"in t?t.headers||{}:{}};if(t.type==="SSE"){const s={requestInit:{headers:i,signal:e}};return t.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:e})}),new of(new URL(t.url),s)}return new hf(new URL(t.url),{requestInit:{headers:i,signal:e,credentials:"include"}})},no=t=>{try{return JSON.parse(t)}catch{return t}},bf=500,$t=new Map;function xf(t,e){if($t.set(t,e),$t.size>bf){const n=$t.keys().next().value;n!==void 0&&$t.delete(n)}}const ro=(t,e)=>({...t,id:t.name,inputSchema:t.inputSchema?Ie(t.inputSchema):void 0,outputSchema:t.outputSchema?Ie(t.outputSchema):void 0,execute:n=>e(n.context,t.name)});function vf(t){const e=n=>"connection"in t?gf({connection:t.connection},void 0,n):t.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=t?.debugId?.(),d=u?{"x-trace-debug-id":u}:void 0,{client:m}=await e(d),{structuredContent:g,isError:f,content:p}=await m.callTool({name:String(c),arguments:l});if(f){const v=p?.[0]?.text,w=typeof v=="string"?no(v):null,A=w?.code&&typeof t?.getErrorByStatusCode=="function"?t.getErrorByStatusCode(w.code,w.message,w.traceId):null;throw A||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(g??p)}`)}if(g!==void 0)return g;const b=p?.[0]?.text;return typeof b=="string"?no(b):void 0}async function s(){const{client:l}=await e(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in t))return s();const l=t.connection,c=JSON.stringify(l);try{return $t.has(c)||xf(c,s()),await $t.get(c)}catch(u){console.error("Failed to list tools",u),$t.delete(c);return}}async function a(){return(await o()??[]).map(c=>ro(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return ro(c,i)},i}})}new Proxy({},{get(t,e){return e==="toJSON"?null:e==="forConnection"?n=>io({connection:n}):e==="forClient"?n=>io({client:n}):globalThis[e]}});function io(t){return vf(t)}function Sf(t){return{isImplementedBy:e=>{for(const n of t){const r=typeof n.name=="string"?new RegExp(`^${n.name}$`):n.name,i=e.find(s=>r.test(s.name));if(!(!i&&n.opt)&&!i)return!1}return!0}}}const wf=Q({specversion:Ve("1.0").describe("CloudEvents specification version"),id:k().describe("Unique identifier for this event (UUID recommended)"),source:k().describe("Connection ID of the event publisher"),type:k().describe("Event type (e.g., 'order.created', 'user.signup')"),time:k().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:k().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:k().optional().default("application/json").describe("Content type of the data attribute"),dataschema:k().url().optional().describe("URI to the schema for the data attribute"),data:Va().optional().describe("Event payload (any JSON value)")});Q({events:Se(wf).min(1).describe("Batch of CloudEvents to process")});const jf=Q({success:Bt().optional().describe("Whether this event was processed successfully"),error:k().optional().describe("Error message for this event"),retryAfter:_e().int().positive().optional().describe("Re-deliver this event after this many ms")});Q({success:Bt().optional().describe("Batch success - applies to events not in results"),error:k().optional().describe("Batch error message - applies to events not in results"),processedCount:_e().int().min(0).optional().describe("Number of events successfully processed"),retryAfter:_e().int().positive().optional().describe("Batch retryAfter - applies to events not in results"),results:er(k(),jf).optional().describe("Per-event results keyed by event ID")});const Of=Q({type:Ve("string"),enum:Se(k()).optional(),description:k().optional()}),Af=Q({type:k(),description:k(),paramsSchema:er(k(),Of)});Q({});Q({triggers:Se(Af)});Q({type:k(),params:er(k(),k()),enabled:Bt(),callbackUrl:fu().optional(),callbackToken:k().min(1).optional()});Q({success:Bt()});Q({prefix:k().optional().describe("Filter objects by prefix (e.g., 'folder/' for folder contents)"),maxKeys:_e().optional().default(1e3).describe("Maximum number of keys to return (default: 1000)"),continuationToken:k().optional().describe("Token for pagination from previous response"),delimiter:k().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});Q({objects:Se(Q({key:k().describe("Object key/path"),size:_e().describe("Object size in bytes"),lastModified:k().describe("Last modified timestamp"),etag:k().describe("Entity tag for the object")})),nextContinuationToken:k().optional().describe("Token for fetching next page of results"),isTruncated:Bt().describe("Whether there are more results available"),commonPrefixes:Se(k()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});Q({key:k().describe("Object key/path to get metadata for")});Q({contentType:k().optional().describe("MIME type of the object"),contentLength:_e().describe("Size of the object in bytes"),lastModified:k().describe("Last modified timestamp"),etag:k().describe("Entity tag for the object"),metadata:er(k(),k()).optional().describe("Custom metadata key-value pairs")});Q({key:k().describe("Object key/path to generate URL for"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});Q({url:k().describe("Presigned URL for downloading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:k().describe("Object key/path for the upload"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:k().optional().describe("MIME type for the object being uploaded")});Q({url:k().describe("Presigned URL for uploading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:k().describe("Object key/path to delete")});Q({success:Bt().describe("Whether the deletion was successful"),key:k().describe("The key that was deleted")});Q({keys:Se(k()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});Q({deleted:Se(k()).describe("Array of successfully deleted keys"),errors:Se(Q({key:k(),message:k()})).describe("Array of errors for failed deletions")});const Ef=Q({primary:k().optional().describe("Primary brand color (hex)"),secondary:k().optional().describe("Secondary brand color (hex)"),accent:k().optional().describe("Accent / highlight color (hex)"),background:k().optional().describe("Background color (hex)"),foreground:k().optional().describe("Foreground / text color (hex)")}),Cf=Q({heading:k().optional().describe("Font family for headings"),body:k().optional().describe("Font family for body text"),code:k().optional().describe("Font family for code / monospace")}),_f=Q({logo:k().optional().describe("Logo URL"),favicon:k().optional().describe("Favicon URL"),ogImage:k().optional().describe("Open Graph image URL")}),If=Q({id:k(),name:k().describe("Brand / company name"),domain:k().optional().describe("Company domain (e.g. example.com)"),colors:Ef.optional().describe("Semantic color palette"),fonts:Cf.optional().describe("Font families by role"),assets:_f.optional().describe("Visual identity assets"),overview:k().optional().describe("Company overview / description"),tagline:k().optional().describe("Brand tagline"),tone:k().optional().describe("Tone of voice description"),metadata:er(k(),Va()).optional().describe("Extra design tokens and metadata")});Q({id:k().optional().describe("Brand ID. Omit to get the default brand.")});Q({});Q({items:Se(If)});const Tf={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function Nf(t){if(t)return Tf[t]}function Xj(t,e){const n=t.tools;if(!n||n.length===0)return!1;const r=n.map(o=>({name:o.name,inputSchema:o.inputSchema})),i=e.map(o=>({name:o.name,inputSchema:o.inputSchema,opt:o.opt}));return Sf(i).isImplementedBy(r)}function Ff(t){const e=je.c(7),{children:n,leading:r}=t;let i;e[0]!==r?(i=r&&h.jsx(st.Toolbar.Left.Portal,{fallback:r,children:r}),e[0]=r,e[1]=i):i=e[1];let s;e[2]!==n?(s=h.jsx(Ys.Content,{children:n}),e[2]=n,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o=h.jsxs(Ys,{children:[i,s]}),e[4]=i,e[5]=s,e[6]=o):o=e[6],o}function Pf(t){const e=je.c(15),{children:n,leading:r,hideTopbar:i}=t,o=(i===void 0?!1:i)&&"hidden";let a;e[0]!==o?(a=Dr("h-11 border-b border-border/50",o),e[0]=o,e[1]=a):a=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=h.jsx(_u,{className:"md:hidden shrink-0"}),e[2]=l):l=e[2];let c;e[3]!==r?(c=h.jsxs(st.Topbar.Left,{children:[l,r]}),e[3]=r,e[4]=c):c=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(st.Topbar.Center,{children:h.jsx(st.Topbar.Center.Target,{})}),e[5]=u):u=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(st.Topbar.Right,{children:h.jsx(st.Topbar.Right.Target,{})}),e[6]=d):d=e[6];let m;e[7]!==a||e[8]!==c?(m=h.jsxs(st.Topbar,{className:a,children:[c,u,d]}),e[7]=a,e[8]=c,e[9]=m):m=e[9];let g;e[10]!==n?(g=h.jsx(st.Content,{mode:"scroll",children:n}),e[10]=n,e[11]=g):g=e[11];let f;return e[12]!==m||e[13]!==g?(f=h.jsxs(st,{variant:"plain",children:[m,g]}),e[12]=m,e[13]=g,e[14]=f):f=e[14],f}function Qj(t){const e=je.c(3),n=hu();let r;return e[0]!==n||e[1]!==t?(r=n?h.jsx(Ff,{...t}):h.jsx(Pf,{...t}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function $f(t){return t.startsWith("@")?t:`@${t}`}function Df(){const{org:t}=ts(),{data:e}=mu.useSession(),n=Mu(),r=Wu(),i=Hu(),s=r.filter(a=>i(a.id));return{installByBinding:async a=>{if(!t||!e?.user?.id){gr.error("Not authenticated");return}const l=$f(a),u=(await Promise.all(s.map(async p=>{const b=Bu(p.id,t.id);try{const v=await qu(p.id,t.id,t.slug,b,{where:{appName:l}});return Vu(v??[])[0]??null}catch{return null}}))).find(p=>p!==null);if(!u){gr.error(`MCP Server not found in registry: ${a}`);return}const d=zu(u,t.id,e.user.id),m=d.connection_type==="STDIO",g=!!d.connection_url,f=m&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!g&&!f){gr.error("This MCP Server cannot be connected: no connection method available");return}return await n.create.mutateAsync(d),{id:d.id,connection:d}},isInstalling:n.create.isPending}}function V(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function kf(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),V(t.additionalItems)}function so(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const at="__additional_property",nn="additionalProperties",At="allOf",ee="anyOf",Ne="const",kt="default",os="dependencies",Rf="enum",Ee="__errors",de="$id",as="if",ln="items",Mf="_$junk_option_schema_id$_",xr="$name",W="oneOf",Ri="patternProperties",oe="properties",ei="readonly",Ja="required",Ir="submitButtonOptions",ue="$ref",Un="__rjsf_ref",Pn="$schema",Za="root",Xa="_",Uf=["discriminator","propertyName"],oo="formContext",Lf="layoutGridLookupMap",ls="__rjsf_additionalProperties",Qa="__rjsf_rootSchema",Bf="ui:field",cs="ui:widget",St="ui:options",Mi="ui:globalOptions",qf="ui:definitions",Vf="https://json-schema.org/draft/2019-09/schema",vr="https://json-schema.org/draft/2020-12/schema";function U(t={},e={}){return t?Object.keys(t).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=t[r];return r===cs&&V(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===St&&V(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...e}):{...e}}function el(t,e={},n){if(!(t.additionalProperties||t.patternProperties))return!1;const{expandable:r=!0}=U(e);return r===!1?r:t.maxProperties!==void 0&&n?Object.keys(n).length<t.maxProperties:!0}var tl=typeof global=="object"&&global&&global.Object===Object&&global,zf=typeof self=="object"&&self&&self.Object===Object&&self,nt=tl||zf||Function("return this")(),Me=nt.Symbol,nl=Object.prototype,Wf=nl.hasOwnProperty,Hf=nl.toString,En=Me?Me.toStringTag:void 0;function Kf(t){var e=Wf.call(t,En),n=t[En];try{t[En]=void 0;var r=!0}catch{}var i=Hf.call(t);return r&&(e?t[En]=n:delete t[En]),i}var Gf=Object.prototype,Yf=Gf.toString;function Jf(t){return Yf.call(t)}var Zf="[object Null]",Xf="[object Undefined]",ao=Me?Me.toStringTag:void 0;function ut(t){return t==null?t===void 0?Xf:Zf:ao&&ao in Object(t)?Kf(t):Jf(t)}function rl(t,e){return function(n){return t(e(n))}}var Rr=rl(Object.getPrototypeOf,Object);function Ue(t){return t!=null&&typeof t=="object"}var Qf="[object Object]",eh=Function.prototype,th=Object.prototype,il=eh.toString,nh=th.hasOwnProperty,rh=il.call(Object);function Et(t){if(!Ue(t)||ut(t)!=Qf)return!1;var e=Rr(t);if(e===null)return!0;var n=nh.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&il.call(n)==rh}function Ui(t){const e={[Ee]:[],addError(n){this[Ee].push(n)}};if(Array.isArray(t))return t.reduce((n,r,i)=>({...n,[i]:Ui(r)}),e);if(Et(t)){const n=t;return Object.keys(n).reduce((r,i)=>({...r,[i]:Ui(n[i])}),e)}return e}var we=Array.isArray,ih="[object Symbol]";function tr(t){return typeof t=="symbol"||Ue(t)&&ut(t)==ih}var sh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oh=/^\w*$/;function us(t,e){if(we(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||tr(t)?!0:oh.test(t)||!sh.test(t)||e!=null&&t in Object(e)}function ne(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ah="[object AsyncFunction]",lh="[object Function]",ch="[object GeneratorFunction]",uh="[object Proxy]";function nr(t){if(!ne(t))return!1;var e=ut(t);return e==lh||e==ch||e==ah||e==uh}var ti=nt["__core-js_shared__"],lo=(function(){var t=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function dh(t){return!!lo&&lo in t}var fh=Function.prototype,hh=fh.toString;function Vt(t){if(t!=null){try{return hh.call(t)}catch{}try{return t+""}catch{}}return""}var mh=/[\\^$.*+?()[\]{}|]/g,ph=/^\[object .+?Constructor\]$/,gh=Function.prototype,yh=Object.prototype,bh=gh.toString,xh=yh.hasOwnProperty,vh=RegExp("^"+bh.call(xh).replace(mh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sh(t){if(!ne(t)||dh(t))return!1;var e=nr(t)?vh:ph;return e.test(Vt(t))}function wh(t,e){return t?.[e]}function zt(t,e){var n=wh(t,e);return Sh(n)?n:void 0}var Kn=zt(Object,"create");function jh(){this.__data__=Kn?Kn(null):{},this.size=0}function Oh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ah="__lodash_hash_undefined__",Eh=Object.prototype,Ch=Eh.hasOwnProperty;function _h(t){var e=this.__data__;if(Kn){var n=e[t];return n===Ah?void 0:n}return Ch.call(e,t)?e[t]:void 0}var Ih=Object.prototype,Th=Ih.hasOwnProperty;function Nh(t){var e=this.__data__;return Kn?e[t]!==void 0:Th.call(e,t)}var Fh="__lodash_hash_undefined__";function Ph(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Kn&&e===void 0?Fh:e,this}function Rt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Rt.prototype.clear=jh;Rt.prototype.delete=Oh;Rt.prototype.get=_h;Rt.prototype.has=Nh;Rt.prototype.set=Ph;function $h(){this.__data__=[],this.size=0}function rr(t,e){return t===e||t!==t&&e!==e}function Mr(t,e){for(var n=t.length;n--;)if(rr(t[n][0],e))return n;return-1}var Dh=Array.prototype,kh=Dh.splice;function Rh(t){var e=this.__data__,n=Mr(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():kh.call(e,n,1),--this.size,!0}function Mh(t){var e=this.__data__,n=Mr(e,t);return n<0?void 0:e[n][1]}function Uh(t){return Mr(this.__data__,t)>-1}function Lh(t,e){var n=this.__data__,r=Mr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function dt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=$h;dt.prototype.delete=Rh;dt.prototype.get=Mh;dt.prototype.has=Uh;dt.prototype.set=Lh;var Gn=zt(nt,"Map");function Bh(){this.size=0,this.__data__={hash:new Rt,map:new(Gn||dt),string:new Rt}}function qh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ur(t,e){var n=t.__data__;return qh(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Vh(t){var e=Ur(this,t).delete(t);return this.size-=e?1:0,e}function zh(t){return Ur(this,t).get(t)}function Wh(t){return Ur(this,t).has(t)}function Hh(t,e){var n=Ur(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function ft(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ft.prototype.clear=Bh;ft.prototype.delete=Vh;ft.prototype.get=zh;ft.prototype.has=Wh;ft.prototype.set=Hh;var Kh="Expected a function";function ds(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Kh);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(ds.Cache||ft),n}ds.Cache=ft;var Gh=500;function Yh(t){var e=ds(t,function(r){return n.size===Gh&&n.clear(),r}),n=e.cache;return e}var Jh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zh=/\\(\\)?/g,sl=Yh(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Jh,function(n,r,i,s){e.push(i?s.replace(Zh,"$1"):r||n)}),e});function yn(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var co=Me?Me.prototype:void 0,uo=co?co.toString:void 0;function ol(t){if(typeof t=="string")return t;if(we(t))return yn(t,ol)+"";if(tr(t))return uo?uo.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function fs(t){return t==null?"":ol(t)}function bn(t,e){return we(t)?t:us(t,e)?[t]:sl(fs(t))}function Ct(t){if(typeof t=="string"||tr(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Lr(t,e){e=bn(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Ct(e[n++])];return n&&n==r?t:void 0}function D(t,e,n){var r=t==null?void 0:Lr(t,e);return r===void 0?n:r}const{getOwnPropertyNames:Xh,getOwnPropertySymbols:Qh}=Object,{hasOwnProperty:em}=Object.prototype;function ni(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function dr(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);const{cache:s}=i,o=s.get(n),a=s.get(r);if(o&&a)return o===r&&a===n;s.set(n,r),s.set(r,n);const l=t(n,r,i);return s.delete(n),s.delete(r),l}}function fo(t){return Xh(t).concat(Qh(t))}const tm=Object.hasOwn||((t,e)=>em.call(t,e)),nm="__v",rm="__o",im="_owner",{getOwnPropertyDescriptor:ho,keys:mo}=Object,Wt=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n};function sm(t,e){return t===e}function om(t,e){return t.byteLength===e.byteLength&&Tr(new Uint8Array(t),new Uint8Array(e))}function am(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function lm(t,e){return t.byteLength===e.byteLength&&Tr(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function cm(t,e){return Wt(t.getTime(),e.getTime())}function um(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function po(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.entries();let o,a,l=0;for(;(o=s.next())&&!o.done;){const c=e.entries();let u=!1,d=0;for(;(a=c.next())&&!a.done;){if(i[d]){d++;continue}const m=o.value,g=a.value;if(n.equals(m[0],g[0],l,d,t,e,n)&&n.equals(m[1],g[1],m[0],g[0],t,e,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}function dm(t,e,n){const r=mo(t);let i=r.length;if(mo(e).length!==i)return!1;for(;i-- >0;)if(!al(t,e,n,r[i]))return!1;return!0}function Cn(t,e,n){const r=fo(t);let i=r.length;if(fo(e).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!al(t,e,n,s)||(o=ho(t,s),a=ho(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function fm(t,e){return Wt(t.valueOf(),e.valueOf())}function hm(t,e){return t.source===e.source&&t.flags===e.flags}function go(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.values();let o,a;for(;(o=s.next())&&!o.done;){const l=e.values();let c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(o.value,a.value,o.value,a.value,t,e,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function Tr(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function mm(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function al(t,e,n,r){return(r===im||r===rm||r===nm)&&(t.$$typeof||e.$$typeof)?!0:tm(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const pm=Object.prototype.toString;function gm(t){const e=vm(t),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:c,getUnsupportedCustomComparator:u}=t;return function(m,g,f){if(m===g)return!0;if(m==null||g==null)return!1;const p=typeof m;if(p!==typeof g)return!1;if(p!=="object")return p==="number"||p==="bigint"?o(m,g,f):p==="function"?i(m,g,f):!1;const b=m.constructor;if(b!==g.constructor)return!1;if(b===Object)return a(m,g,f);if(b===Array)return n(m,g,f);if(b===Date)return r(m,g,f);if(b===RegExp)return l(m,g,f);if(b===Map)return s(m,g,f);if(b===Set)return c(m,g,f);if(b===Promise)return!1;if(Array.isArray(m))return n(m,g,f);const v=pm.call(m),w=e[v];if(w)return w(m,g,f);const A=u&&u(m,g,f,v);return A?A(m,g,f):!1}}function ym({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:om,areArraysEqual:n?Cn:am,areDataViewsEqual:lm,areDatesEqual:cm,areErrorsEqual:um,areFunctionsEqual:sm,areMapsEqual:n?ni(po,Cn):po,areNumbersEqual:Wt,areObjectsEqual:n?Cn:dm,arePrimitiveWrappersEqual:fm,areRegExpsEqual:hm,areSetsEqual:n?ni(go,Cn):go,areTypedArraysEqual:n?ni(Tr,Cn):Tr,areUrlsEqual:mm,getUnsupportedCustomComparator:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=dr(r.areArraysEqual),s=dr(r.areMapsEqual),o=dr(r.areObjectsEqual),a=dr(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function bm(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function xm({circular:t,comparator:e,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:c=t?new WeakMap:void 0,meta:u}=n();return e(a,l,{cache:c,equals:r,meta:u,strict:i})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const s={cache:void 0,equals:r,meta:void 0,strict:i};return function(a,l){return e(a,l,s)}}function vm({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:m,areUrlsEqual:g}){return{"[object Arguments]":l,"[object Array]":e,"[object ArrayBuffer]":t,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":c,"[object DataView]":n,"[object Date]":r,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":s,"[object GeneratorFunction]":s,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":o,"[object Number]":c,"[object Object]":(f,p,b)=>typeof f.then!="function"&&typeof p.then!="function"&&l(f,p,b),"[object RegExp]":u,"[object Set]":d,"[object String]":c,"[object URL]":g,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}ht();ht({strict:!0});ht({circular:!0});ht({circular:!0,strict:!0});ht({createInternalComparator:()=>Wt});ht({strict:!0,createInternalComparator:()=>Wt});ht({circular:!0,createInternalComparator:()=>Wt});ht({circular:!0,createInternalComparator:()=>Wt,strict:!0});function ht(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,s=ym(t),o=gm(s),a=n?n(o):bm(o);return xm({circular:e,comparator:o,createState:r,equals:a,strict:i})}const se=ht({circular:!0,createCustomConfig:()=>({areFunctionsEqual(t,e){return typeof e=="function"}})});var _n={exports:{}},ri,yo;function ll(){if(yo)return ri;yo=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),r=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(y){let x="",S=0,j=0;for(j=0;j<y.length;j++)if(S=y[j].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=y[j];break}for(j+=1;j<y.length;j++){if(S=y[j].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=y[j]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(y){return y.length=0,!0}function l(y,x,S){if(y.length){const j=s(y);if(j!=="")x.push(j);else return S.error=!0,!1;y.length=0}return!0}function c(y){let x=0;const S={error:!1,address:"",zone:""},j=[],E=[];let C=!1,_=!1,I=l;for(let T=0;T<y.length;T++){const N=y[T];if(!(N==="["||N==="]"))if(N===":"){if(C===!0&&(_=!0),!I(E,j,S))break;if(++x>7){S.error=!0;break}T>0&&y[T-1]===":"&&(C=!0),j.push(":");continue}else if(N==="%"){if(!I(E,j,S))break;I=a}else{E.push(N);continue}}return E.length&&(I===a?S.zone=E.join(""):_?j.push(E.join("")):j.push(s(E))),S.address=j.join(""),S}function u(y){if(d(y,":")<2)return{host:y,isIPV6:!1};const x=c(y);if(x.error)return{host:y,isIPV6:!1};{let S=x.address,j=x.address;return x.zone&&(S+="%"+x.zone,j+="%25"+x.zone),{host:S,isIPV6:!0,escapedHost:j}}}function d(y,x){let S=0;for(let j=0;j<y.length;j++)y[j]===x&&S++;return S}function m(y){let x=y;const S=[];let j=-1,E=0;for(;E=x.length;){if(E===1){if(x===".")break;if(x==="/"){S.push("/");break}else{S.push(x);break}}else if(E===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&(x[1]==="."||x[1]==="/")){S.push("/");break}}else if(E===3&&x==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),S.length!==0&&S.pop();continue}}if((j=x.indexOf("/",1))===-1){S.push(x);break}else S.push(x.slice(0,j)),x=x.slice(j)}return S.join("")}const g={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(y,x){const S=x?p:f;return S.lastIndex=0,y.replace(S,j=>g[j])}function v(y,x=!1){if(y.indexOf("%")===-1)return y;let S="";for(let j=0;j<y.length;j++){if(y[j]==="%"&&j+2<y.length){const E=y.slice(j+1,j+3);if(n(E)){const C=E.toUpperCase(),_=String.fromCharCode(parseInt(C,16));x&&r(_)?S+=_:S+="%"+C,j+=2;continue}}S+=y[j]}return S}function w(y){let x="";for(let S=0;S<y.length;S++){if(y[S]==="%"&&S+2<y.length){const j=y.slice(S+1,S+3);if(n(j)){const E=j.toUpperCase(),C=String.fromCharCode(parseInt(E,16));C!=="."&&r(C)?x+=C:x+="%"+E,S+=2;continue}}i(y[S])?x+=y[S]:x+=escape(y[S])}return x}function A(y){let x="";for(let S=0;S<y.length;S++){if(y[S]==="%"&&S+2<y.length){const j=y.slice(S+1,S+3);if(n(j)){x+="%"+j.toUpperCase(),S+=2;continue}}x+=escape(y[S])}return x}function O(y){const x=[];if(y.userinfo!==void 0&&(x.push(y.userinfo),x.push("@")),y.host!==void 0){let S=unescape(y.host);if(!e(S)){const j=u(S);j.isIPV6===!0?S=`[${j.escapedHost}]`:S=b(S,!1)}x.push(S)}return(typeof y.port=="number"||typeof y.port=="string")&&(x.push(":"),x.push(String(y.port))),x.length?x.join(""):void 0}return ri={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:b,normalizePercentEncoding:v,normalizePathEncoding:w,escapePreservingEscapes:A,removeDotSegments:m,isIPv4:e,isUUID:t,normalizeIPv6:u,stringArrayToHexStripped:s},ri}var ii,bo;function Sm(){if(bo)return ii;bo=1;const{isUUID:t}=ll(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(y){return n.indexOf(y)!==-1}function i(y){return y.secure===!0?!0:y.secure===!1?!1:y.scheme?y.scheme.length===3&&(y.scheme[0]==="w"||y.scheme[0]==="W")&&(y.scheme[1]==="s"||y.scheme[1]==="S")&&(y.scheme[2]==="s"||y.scheme[2]==="S"):!1}function s(y){return y.host||(y.error=y.error||"HTTP URIs must have a host."),y}function o(y){const x=String(y.scheme).toLowerCase()==="https";return(y.port===(x?443:80)||y.port==="")&&(y.port=void 0),y.path||(y.path="/"),y}function a(y){return y.secure=i(y),y.resourceName=(y.path||"/")+(y.query?"?"+y.query:""),y.path=void 0,y.query=void 0,y}function l(y){if((y.port===(i(y)?443:80)||y.port==="")&&(y.port=void 0),typeof y.secure=="boolean"&&(y.scheme=y.secure?"wss":"ws",y.secure=void 0),y.resourceName){const[x,S]=y.resourceName.split("?");y.path=x&&x!=="/"?x:void 0,y.query=S,y.resourceName=void 0}return y.fragment=void 0,y}function c(y,x){if(!y.path)return y.error="URN can not be parsed",y;const S=y.path.match(e);if(S){const j=x.scheme||y.scheme||"urn";y.nid=S[1].toLowerCase(),y.nss=S[2];const E=`${j}:${x.nid||y.nid}`,C=O(E);y.path=void 0,C&&(y=C.parse(y,x))}else y.error=y.error||"URN can not be parsed.";return y}function u(y,x){if(y.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=x.scheme||y.scheme||"urn",j=y.nid.toLowerCase(),E=`${S}:${x.nid||j}`,C=O(E);C&&(y=C.serialize(y,x));const _=y,I=y.nss;return _.path=`${j||x.nid}:${I}`,x.skipEscape=!0,_}function d(y,x){const S=y;return S.uuid=S.nss,S.nss=void 0,!x.tolerant&&(!S.uuid||!t(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(y){const x=y;return x.nss=(y.uuid||"").toLowerCase(),x}const g={scheme:"http",domainHost:!0,parse:s,serialize:o},f={scheme:"https",domainHost:g.domainHost,parse:s,serialize:o},p={scheme:"ws",domainHost:!0,parse:a,serialize:l},b={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize},A={http:g,https:f,ws:p,wss:b,urn:{scheme:"urn",parse:c,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(A,null);function O(y){return y&&(A[y]||A[y.toLowerCase()])||void 0}return ii={wsIsSecure:i,SCHEMES:A,isValidSchemeName:r,getSchemeHandler:O},ii}var xo;function wm(){if(xo)return _n.exports;xo=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=ll(),{SCHEMES:c,getSchemeHandler:u}=Sm();function d(j,E){return typeof j=="string"?j=O(j,E):typeof j=="object"&&(j=A(p(j,E),E)),j}function m(j,E,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=g(A(j,_),A(E,_),_,!0);return _.skipEscape=!0,p(I,_)}function g(j,E,C,_){const I={};return _||(j=A(p(j,C),C),E=A(p(E,C),C)),C=C||{},!C.tolerant&&E.scheme?(I.scheme=E.scheme,I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.userinfo!==void 0||E.host!==void 0||E.port!==void 0?(I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.path?(E.path[0]==="/"?I.path=e(E.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?I.path="/"+E.path:j.path?I.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+E.path:I.path=E.path,I.path=e(I.path)),I.query=E.query):(I.path=j.path,E.query!==void 0?I.query=E.query:I.query=j.query),I.userinfo=j.userinfo,I.host=j.host,I.port=j.port),I.scheme=j.scheme),I.fragment=E.fragment,I}function f(j,E,C){const _=x(j,C),I=x(E,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(j,E){const C={host:j.host,scheme:j.scheme,userinfo:j.userinfo,port:j.port,path:j.path,query:j.query,nid:j.nid,nss:j.nss,uuid:j.uuid,fragment:j.fragment,reference:j.reference,resourceName:j.resourceName,secure:j.secure,error:""},_=Object.assign({},E),I=[],T=u(_.scheme||C.scheme);T&&T.serialize&&T.serialize(C,_),C.path!==void 0&&(_.skipEscape?C.path=r(C.path):(C.path=s(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),_.reference!=="suffix"&&C.scheme&&I.push(C.scheme,":");const N=n(C);if(N!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(N),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let F=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(F=e(F)),N===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),I.push(F)}return C.query!==void 0&&I.push("?",C.query),C.fragment!==void 0&&I.push("#",C.fragment),I.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(j,E){if(E[2]!==void 0&&j.path&&j.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof j.port=="number"&&(j.port<0||j.port>65535))return"URI port is malformed."}function w(j,E){const C=Object.assign({},E),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let I=!1,T=!1;C.reference==="suffix"&&(C.scheme?j=C.scheme+":"+j:j="//"+j);const N=j.match(b);if(N){_.scheme=N[1],_.userinfo=N[3],_.host=N[4],_.port=parseInt(N[5],10),_.path=N[6]||"",_.query=N[7],_.fragment=N[8],isNaN(_.port)&&(_.port=N[5]);const F=v(_,N);if(F!==void 0&&(_.error=_.error||F,I=!0),_.host)if(a(_.host)===!1){const B=t(_.host);_.host=B.host.toLowerCase(),T=B.isIPV6}else T=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==_.reference&&(_.error=_.error||"URI is not a "+C.reference+" reference.");const $=u(C.scheme||_.scheme);if(!C.unicodeSupport&&(!$||!$.unicodeSupport)&&_.host&&(C.domainHost||$&&$.domainHost)&&T===!1&&l(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(R){_.error=_.error||"Host's domain name can not be converted to ASCII: "+R}if((!$||$&&!$.skipNormalize)&&(j.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=o(unescape(_.host),T))),_.path&&(_.path=i(_.path)),_.fragment))try{_.fragment=encodeURI(decodeURIComponent(_.fragment))}catch{_.error=_.error||"URI malformed"}$&&$.parse&&$.parse(_,C)}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:I}}function A(j,E){return w(j,E).parsed}function O(j,E){return y(j,E).normalized}function y(j,E){const{parsed:C,malformedAuthorityOrPort:_}=w(j,E);return{normalized:_?j:p(C,E),malformedAuthorityOrPort:_}}function x(j,E){if(typeof j=="string"){const{normalized:C,malformedAuthorityOrPort:_}=y(j,E);return _?void 0:C}if(typeof j=="object")return p(j,E)}const S={SCHEMES:c,normalize:d,resolve:m,resolveComponent:g,equal:f,serialize:p,parse:A};return _n.exports=S,_n.exports.default=S,_n.exports.fastUri=S,_n.exports}var jm=wm();const hs=ns(jm);var In={},vo;function Om(){if(vo)return In;vo=1;var t=/~/,e=/~[01]/g;function n(c){switch(c){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+c)}function r(c){return t.test(c)?c.replace(e,n):c}function i(c,u,d){for(var m,g,f=1,p=u.length;f<p;){if(u[f]==="constructor"||u[f]==="prototype"||u[f]==="__proto__")return c;if(m=r(u[f++]),g=p>f,typeof c[m]>"u"&&(Array.isArray(c)&&m==="-"&&(m=c.length),g&&(u[f]!==""&&u[f]<1/0||u[f]==="-"?c[m]=[]:c[m]={})),!g)break;c=c[m]}var b=c[m];return d===void 0?delete c[m]:c[m]=d,b}function s(c){if(typeof c=="string"){if(c=c.split("/"),c[0]==="")return c;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(c)){for(const u of c)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return c}throw new Error("Invalid JSON pointer.")}function o(c,u){if(typeof c!="object")throw new Error("Invalid input object.");u=s(u);var d=u.length;if(d===1)return c;for(var m=1;m<d;){if(c=c[r(u[m++])],d===m)return c;if(typeof c!="object"||c===null)return}}function a(c,u,d){if(typeof c!="object")throw new Error("Invalid input object.");if(u=s(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(c,u,d)}function l(c){var u=s(c);return{get:function(d){return o(d,u)},set:function(d,m){return a(d,u,m)}}}return In.get=o,In.set=a,In.compile=l,In}var Am=Om();const si=ns(Am);var Em=Object.prototype;function Br(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Em;return t===n}var Cm=rl(Object.keys,Object),_m=Object.prototype,Im=_m.hasOwnProperty;function cl(t){if(!Br(t))return Cm(t);var e=[];for(var n in Object(t))Im.call(t,n)&&n!="constructor"&&e.push(n);return e}var Li=zt(nt,"DataView"),Bi=zt(nt,"Promise"),an=zt(nt,"Set"),qi=zt(nt,"WeakMap"),So="[object Map]",Tm="[object Object]",wo="[object Promise]",jo="[object Set]",Oo="[object WeakMap]",Ao="[object DataView]",Nm=Vt(Li),Fm=Vt(Gn),Pm=Vt(Bi),$m=Vt(an),Dm=Vt(qi),ke=ut;(Li&&ke(new Li(new ArrayBuffer(1)))!=Ao||Gn&&ke(new Gn)!=So||Bi&&ke(Bi.resolve())!=wo||an&&ke(new an)!=jo||qi&&ke(new qi)!=Oo)&&(ke=function(t){var e=ut(t),n=e==Tm?t.constructor:void 0,r=n?Vt(n):"";if(r)switch(r){case Nm:return Ao;case Fm:return So;case Pm:return wo;case $m:return jo;case Dm:return Oo}return e});var km="[object Arguments]";function Eo(t){return Ue(t)&&ut(t)==km}var ul=Object.prototype,Rm=ul.hasOwnProperty,Mm=ul.propertyIsEnumerable,cn=Eo((function(){return arguments})())?Eo:function(t){return Ue(t)&&Rm.call(t,"callee")&&!Mm.call(t,"callee")},Um=9007199254740991;function ms(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Um}function Ht(t){return t!=null&&ms(t.length)&&!nr(t)}function Lm(){return!1}var dl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Co=dl&&typeof module=="object"&&module&&!module.nodeType&&module,Bm=Co&&Co.exports===dl,_o=Bm?nt.Buffer:void 0,qm=_o?_o.isBuffer:void 0,Mt=qm||Lm,Vm="[object Arguments]",zm="[object Array]",Wm="[object Boolean]",Hm="[object Date]",Km="[object Error]",Gm="[object Function]",Ym="[object Map]",Jm="[object Number]",Zm="[object Object]",Xm="[object RegExp]",Qm="[object Set]",ep="[object String]",tp="[object WeakMap]",np="[object ArrayBuffer]",rp="[object DataView]",ip="[object Float32Array]",sp="[object Float64Array]",op="[object Int8Array]",ap="[object Int16Array]",lp="[object Int32Array]",cp="[object Uint8Array]",up="[object Uint8ClampedArray]",dp="[object Uint16Array]",fp="[object Uint32Array]",me={};me[ip]=me[sp]=me[op]=me[ap]=me[lp]=me[cp]=me[up]=me[dp]=me[fp]=!0;me[Vm]=me[zm]=me[np]=me[Wm]=me[rp]=me[Hm]=me[Km]=me[Gm]=me[Ym]=me[Jm]=me[Zm]=me[Xm]=me[Qm]=me[ep]=me[tp]=!1;function hp(t){return Ue(t)&&ms(t.length)&&!!me[ut(t)]}function ps(t){return function(e){return t(e)}}var fl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ln=fl&&typeof module=="object"&&module&&!module.nodeType&&module,mp=Ln&&Ln.exports===fl,oi=mp&&tl.process,un=(function(){try{var t=Ln&&Ln.require&&Ln.require("util").types;return t||oi&&oi.binding&&oi.binding("util")}catch{}})(),Io=un&&un.isTypedArray,ir=Io?ps(Io):hp,pp="[object Map]",gp="[object Set]",yp=Object.prototype,bp=yp.hasOwnProperty;function ge(t){if(t==null)return!0;if(Ht(t)&&(we(t)||typeof t=="string"||typeof t.splice=="function"||Mt(t)||ir(t)||cn(t)))return!t.length;var e=ke(t);if(e==pp||e==gp)return!t.size;if(Br(t))return!cl(t).length;for(var n in t)if(bp.call(t,n))return!1;return!0}function xp(){this.__data__=new dt,this.size=0}function vp(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Sp(t){return this.__data__.get(t)}function wp(t){return this.__data__.has(t)}var jp=200;function Op(t,e){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!Gn||r.length<jp-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ft(r)}return n.set(t,e),this.size=n.size,this}function We(t){var e=this.__data__=new dt(t);this.size=e.size}We.prototype.clear=xp;We.prototype.delete=vp;We.prototype.get=Sp;We.prototype.has=wp;We.prototype.set=Op;function gs(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Nr=(function(){try{var t=zt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function ys(t,e,n){e=="__proto__"&&Nr?Nr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Ap=Object.prototype,Ep=Ap.hasOwnProperty;function bs(t,e,n){var r=t[e];(!(Ep.call(t,e)&&rr(r,n))||n===void 0&&!(e in t))&&ys(t,e,n)}function xn(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),i?ys(n,a,l):bs(n,a,l)}return n}function hl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Cp=9007199254740991,_p=/^(?:0|[1-9]\d*)$/;function qr(t,e){var n=typeof t;return e=e??Cp,!!e&&(n=="number"||n!="symbol"&&_p.test(t))&&t>-1&&t%1==0&&t<e}var Ip=Object.prototype,Tp=Ip.hasOwnProperty;function ml(t,e){var n=we(t),r=!n&&cn(t),i=!n&&!r&&Mt(t),s=!n&&!r&&!i&&ir(t),o=n||r||i||s,a=o?hl(t.length,String):[],l=a.length;for(var c in t)(e||Tp.call(t,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qr(c,l)))&&a.push(c);return a}function ze(t){return Ht(t)?ml(t):cl(t)}function Np(t,e){return t&&xn(e,ze(e),t)}function Fp(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Pp=Object.prototype,$p=Pp.hasOwnProperty;function Dp(t){if(!ne(t))return Fp(t);var e=Br(t),n=[];for(var r in t)r=="constructor"&&(e||!$p.call(t,r))||n.push(r);return n}function sr(t){return Ht(t)?ml(t,!0):Dp(t)}function kp(t,e){return t&&xn(e,sr(e),t)}var pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,To=pl&&typeof module=="object"&&module&&!module.nodeType&&module,Rp=To&&To.exports===pl,No=Rp?nt.Buffer:void 0,Fo=No?No.allocUnsafe:void 0;function gl(t,e){if(e)return t.slice();var n=t.length,r=Fo?Fo(n):new t.constructor(n);return t.copy(r),r}function xs(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Mp(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function yl(){return[]}var Up=Object.prototype,Lp=Up.propertyIsEnumerable,Po=Object.getOwnPropertySymbols,vs=Po?function(t){return t==null?[]:(t=Object(t),Mp(Po(t),function(e){return Lp.call(t,e)}))}:yl;function Bp(t,e){return xn(t,vs(t),e)}function Ss(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var qp=Object.getOwnPropertySymbols,bl=qp?function(t){for(var e=[];t;)Ss(e,vs(t)),t=Rr(t);return e}:yl;function Vp(t,e){return xn(t,bl(t),e)}function xl(t,e,n){var r=e(t);return we(t)?r:Ss(r,n(t))}function Vi(t){return xl(t,ze,vs)}function ws(t){return xl(t,sr,bl)}var zp=Object.prototype,Wp=zp.hasOwnProperty;function Hp(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Wp.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Fr=nt.Uint8Array;function js(t){var e=new t.constructor(t.byteLength);return new Fr(e).set(new Fr(t)),e}function Kp(t,e){var n=e?js(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Gp=/\w*$/;function Yp(t){var e=new t.constructor(t.source,Gp.exec(t));return e.lastIndex=t.lastIndex,e}var $o=Me?Me.prototype:void 0,Do=$o?$o.valueOf:void 0;function Jp(t){return Do?Object(Do.call(t)):{}}function vl(t,e){var n=e?js(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Zp="[object Boolean]",Xp="[object Date]",Qp="[object Map]",eg="[object Number]",tg="[object RegExp]",ng="[object Set]",rg="[object String]",ig="[object Symbol]",sg="[object ArrayBuffer]",og="[object DataView]",ag="[object Float32Array]",lg="[object Float64Array]",cg="[object Int8Array]",ug="[object Int16Array]",dg="[object Int32Array]",fg="[object Uint8Array]",hg="[object Uint8ClampedArray]",mg="[object Uint16Array]",pg="[object Uint32Array]";function gg(t,e,n){var r=t.constructor;switch(e){case sg:return js(t);case Zp:case Xp:return new r(+t);case og:return Kp(t,n);case ag:case lg:case cg:case ug:case dg:case fg:case hg:case mg:case pg:return vl(t,n);case Qp:return new r;case eg:case rg:return new r(t);case tg:return Yp(t);case ng:return new r;case ig:return Jp(t)}}var ko=Object.create,Sl=(function(){function t(){}return function(e){if(!ne(e))return{};if(ko)return ko(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function wl(t){return typeof t.constructor=="function"&&!Br(t)?Sl(Rr(t)):{}}var yg="[object Map]";function bg(t){return Ue(t)&&ke(t)==yg}var Ro=un&&un.isMap,xg=Ro?ps(Ro):bg,vg="[object Set]";function Sg(t){return Ue(t)&&ke(t)==vg}var Mo=un&&un.isSet,wg=Mo?ps(Mo):Sg,jg=1,Og=2,Ag=4,jl="[object Arguments]",Eg="[object Array]",Cg="[object Boolean]",_g="[object Date]",Ig="[object Error]",Ol="[object Function]",Tg="[object GeneratorFunction]",Ng="[object Map]",Fg="[object Number]",Al="[object Object]",Pg="[object RegExp]",$g="[object Set]",Dg="[object String]",kg="[object Symbol]",Rg="[object WeakMap]",Mg="[object ArrayBuffer]",Ug="[object DataView]",Lg="[object Float32Array]",Bg="[object Float64Array]",qg="[object Int8Array]",Vg="[object Int16Array]",zg="[object Int32Array]",Wg="[object Uint8Array]",Hg="[object Uint8ClampedArray]",Kg="[object Uint16Array]",Gg="[object Uint32Array]",he={};he[jl]=he[Eg]=he[Mg]=he[Ug]=he[Cg]=he[_g]=he[Lg]=he[Bg]=he[qg]=he[Vg]=he[zg]=he[Ng]=he[Fg]=he[Al]=he[Pg]=he[$g]=he[Dg]=he[kg]=he[Wg]=he[Hg]=he[Kg]=he[Gg]=!0;he[Ig]=he[Ol]=he[Rg]=!1;function Bn(t,e,n,r,i,s){var o,a=e&jg,l=e&Og,c=e&Ag;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!ne(t))return t;var u=we(t);if(u){if(o=Hp(t),!a)return xs(t,o)}else{var d=ke(t),m=d==Ol||d==Tg;if(Mt(t))return gl(t,a);if(d==Al||d==jl||m&&!i){if(o=l||m?{}:wl(t),!a)return l?Vp(t,kp(o,t)):Bp(t,Np(o,t))}else{if(!he[d])return i?t:{};o=gg(t,d,a)}}s||(s=new We);var g=s.get(t);if(g)return g;s.set(t,o),wg(t)?t.forEach(function(b){o.add(Bn(b,e,n,b,t,s))}):xg(t)&&t.forEach(function(b,v){o.set(v,Bn(b,e,n,v,t,s))});var f=c?l?ws:Vi:l?sr:ze,p=u?void 0:f(t);return gs(p||t,function(b,v){p&&(v=b,b=t[v]),bs(o,v,Bn(b,e,n,v,t,s))}),o}function El(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Yg(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function Jg(t,e){return e.length<2?t:Lr(t,Yg(e,0,-1))}var Zg=Object.prototype,Xg=Zg.hasOwnProperty;function Cl(t,e){e=bn(e,t);var n=-1,r=e.length;if(!r)return!0;for(;++n<r;){var i=Ct(e[n]);if(i==="__proto__"&&!Xg.call(t,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=Jg(t,e);return s==null||delete s[Ct(El(e))]}function Qg(t){return Et(t)?void 0:t}var Uo=Me?Me.isConcatSpreadable:void 0;function ey(t){return we(t)||cn(t)||!!(Uo&&t&&t[Uo])}function or(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ey),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?or(a,e-1,n,r,i):Ss(i,a):r||(i[i.length]=a)}return i}function zi(t){var e=t==null?0:t.length;return e?or(t,1):[]}function ty(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Lo=Math.max;function _l(t,e,n){return e=Lo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Lo(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),ty(t,this,a)}}function ny(t){return function(){return t}}function Vr(t){return t}var ry=Nr?function(t,e){return Nr(t,"toString",{configurable:!0,enumerable:!1,value:ny(e),writable:!0})}:Vr,iy=800,sy=16,oy=Date.now;function ay(t){var e=0,n=0;return function(){var r=oy(),i=sy-(r-n);if(n=r,i>0){if(++e>=iy)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Il=ay(ry);function Tl(t){return Il(_l(t,void 0,zi),t+"")}var ly=1,cy=2,uy=4,dn=Tl(function(t,e){var n={};if(t==null)return n;var r=!1;e=yn(e,function(s){return s=bn(s,t),r||(r=s.length>1),s}),xn(t,ws(t),n),r&&(n=Bn(n,ly|cy|uy,Qg));for(var i=e.length;i--;)Cl(n,e[i]);return n});function Pr(t,e){if(de in t&&hs.equal(t[de],e))return t;for(const n of Object.values(t))if(Array.isArray(n)){for(const r of n)if(ne(r)){const i=Pr(r,e);if(i!==void 0)return i}}else if(ne(n)){const r=Pr(n,e);if(r!==void 0)return r}}function Wi(t,e){const n=D(t,de,e);let r=t;ue in r&&(r={...r,[ue]:hs.resolve(n,r[ue])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>ne(o)?Wi(o,n):o)}:ne(s)&&(r={...r,[i]:Wi(s,n)});return r}function Os(t,e){const n=e[t];return[dn(e,[t]),n]}function Nl(t,e={},n=[],r=D(e,[de])){const i=t||"";let s,o=r;if(i.startsWith("#")){const l=decodeURIComponent(i.substring(1));o===void 0||de in e&&e[de]===o?s=si.get(e,l):e[Pn]===vr&&(s=Pr(e,o.replace(/\/$/,"")),s!==void 0&&(s=si.get(s,l)))}else if(e[Pn]===vr){const l=o?hs.resolve(o,i):i,[c,...u]=l.replace(/#\/?$/,"").split("#");s=Pr(e,c.replace(/\/$/,"")),s!==void 0&&(o=s[de],ge(u)||(s=si.get(s,decodeURIComponent(u.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${t}.`);const a=s[ue];if(a){if(n.includes(a)){if(n.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[d,...m]=n,g=[...m,i,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${g}`)}const[l,c]=Os(ue,s),u=Nl(c,e,[...n,i],o);return Object.keys(l).length>0?e[Pn]===Vf||e[Pn]===vr?{[At]:[l,u]}:{...l,...u}:u}return s}function Yn(t,e={},n=D(e,[de])){return Nl(t,e,[],n)}var dy=Object.prototype,fy=dy.hasOwnProperty;function hy(t,e){return t!=null&&fy.call(t,e)}function Fl(t,e,n){e=bn(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var o=Ct(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&ms(i)&&qr(o,i)&&(we(t)||cn(t)))}function X(t,e){return t!=null&&Fl(t,e,hy)}var my="[object String]";function _t(t){return typeof t=="string"||!we(t)&&Ue(t)&&ut(t)==my}function He(t){let e;const n=D(t,Uf);return _t(n)?e=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),e}var py=1/0;function gy(t){var e=t==null?0:t.length;return e?or(t,py):[]}function Hi(t,e,n){(n!==void 0&&!rr(t[e],n)||n===void 0&&!(e in t))&&ys(t,e,n)}function yy(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return e}}var Pl=yy();function Jn(t){return Ue(t)&&Ht(t)}function Ki(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function by(t){return xn(t,sr(t))}function xy(t,e,n,r,i,s,o){var a=Ki(t,n),l=Ki(e,n),c=o.get(l);if(c){Hi(t,n,c);return}var u=s?s(a,l,n+"",t,e,o):void 0,d=u===void 0;if(d){var m=we(l),g=!m&&Mt(l),f=!m&&!g&&ir(l);u=l,m||g||f?we(a)?u=a:Jn(a)?u=xs(a):g?(d=!1,u=gl(l,!0)):f?(d=!1,u=vl(l,!0)):u=[]:Et(l)||cn(l)?(u=a,cn(a)?u=by(a):(!ne(a)||nr(a))&&(u=wl(l))):d=!1}d&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),Hi(t,n,u)}function $l(t,e,n,r,i){t!==e&&Pl(e,function(s,o){if(i||(i=new We),ne(s))xy(t,e,o,n,$l,r,i);else{var a=r?r(Ki(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),Hi(t,o,a)}},sr)}function zr(t,e){return Il(_l(t,e,Vr),t+"")}function vy(t,e,n){if(!ne(n))return!1;var r=typeof e;return(r=="number"?Ht(n)&&qr(e,n.length):r=="string"&&e in n)?rr(n[e],t):!1}function Sy(t){return zr(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&vy(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,s)}return e})}var wy=Sy(function(t,e,n){$l(t,e,n)});function As(t,e,n,r){if(!ne(t))return t;e=bn(e,t);for(var i=-1,s=e.length,o=s-1,a=t;a!=null&&++i<s;){var l=Ct(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=o){var u=a[l];c=r?r(u,l,a):void 0,c===void 0&&(c=ne(u)?u:qr(e[i+1])?[]:{})}bs(a,l,c),a=a[l]}return t}function ce(t,e,n){return t==null?t:As(t,e,n)}function Dl(t){return typeof t=="function"?t:Vr}var jy=/\s/;function Oy(t){for(var e=t.length;e--&&jy.test(t.charAt(e)););return e}var Ay=/^\s+/;function Ey(t){return t&&t.slice(0,Oy(t)+1).replace(Ay,"")}var Bo=NaN,Cy=/^[-+]0x[0-9a-f]+$/i,_y=/^0b[01]+$/i,Iy=/^0o[0-7]+$/i,Ty=parseInt;function Ny(t){if(typeof t=="number")return t;if(tr(t))return Bo;if(ne(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ne(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ey(t);var n=_y.test(t);return n||Iy.test(t)?Ty(t.slice(2),n?2:8):Cy.test(t)?Bo:+t}var qo=1/0,Fy=17976931348623157e292;function Py(t){if(!t)return t===0?t:0;if(t=Ny(t),t===qo||t===-qo){var e=t<0?-1:1;return e*Fy}return t===t?t:0}function kl(t){var e=Py(t),n=e%1;return e===e?n?e-n:e:0}var $y=9007199254740991,ai=4294967295,Dy=Math.min;function Rl(t,e){if(t=kl(t),t<1||t>$y)return[];var n=ai,r=Dy(t,ai);e=Dl(e),t-=ai;for(var i=hl(r,e);++n<t;)e(n);return i}function Ml(t,e){return t&&Pl(t,e,ze)}var ky="__lodash_hash_undefined__";function Ry(t){return this.__data__.set(t,ky),this}function My(t){return this.__data__.has(t)}function Ut(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new ft;++e<n;)this.add(t[e])}Ut.prototype.add=Ut.prototype.push=Ry;Ut.prototype.has=My;function Uy(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Zn(t,e){return t.has(e)}var Ly=1,By=2;function Ul(t,e,n,r,i,s){var o=n&Ly,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(t),u=s.get(e);if(c&&u)return c==e&&u==t;var d=-1,m=!0,g=n&By?new Ut:void 0;for(s.set(t,e),s.set(e,t);++d<a;){var f=t[d],p=e[d];if(r)var b=o?r(p,f,d,e,t,s):r(f,p,d,t,e,s);if(b!==void 0){if(b)continue;m=!1;break}if(g){if(!Uy(e,function(v,w){if(!Zn(g,w)&&(f===v||i(f,v,n,r,s)))return g.push(w)})){m=!1;break}}else if(!(f===p||i(f,p,n,r,s))){m=!1;break}}return s.delete(t),s.delete(e),m}function qy(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Es(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Vy=1,zy=2,Wy="[object Boolean]",Hy="[object Date]",Ky="[object Error]",Gy="[object Map]",Yy="[object Number]",Jy="[object RegExp]",Zy="[object Set]",Xy="[object String]",Qy="[object Symbol]",eb="[object ArrayBuffer]",tb="[object DataView]",Vo=Me?Me.prototype:void 0,li=Vo?Vo.valueOf:void 0;function nb(t,e,n,r,i,s,o){switch(n){case tb:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case eb:return!(t.byteLength!=e.byteLength||!s(new Fr(t),new Fr(e)));case Wy:case Hy:case Yy:return rr(+t,+e);case Ky:return t.name==e.name&&t.message==e.message;case Jy:case Xy:return t==e+"";case Gy:var a=qy;case Zy:var l=r&Vy;if(a||(a=Es),t.size!=e.size&&!l)return!1;var c=o.get(t);if(c)return c==e;r|=zy,o.set(t,e);var u=Ul(a(t),a(e),r,i,s,o);return o.delete(t),u;case Qy:if(li)return li.call(t)==li.call(e)}return!1}var rb=1,ib=Object.prototype,sb=ib.hasOwnProperty;function ob(t,e,n,r,i,s){var o=n&rb,a=Vi(t),l=a.length,c=Vi(e),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var m=a[d];if(!(o?m in e:sb.call(e,m)))return!1}var g=s.get(t),f=s.get(e);if(g&&f)return g==e&&f==t;var p=!0;s.set(t,e),s.set(e,t);for(var b=o;++d<l;){m=a[d];var v=t[m],w=e[m];if(r)var A=o?r(w,v,m,e,t,s):r(v,w,m,t,e,s);if(!(A===void 0?v===w||i(v,w,n,r,s):A)){p=!1;break}b||(b=m=="constructor")}if(p&&!b){var O=t.constructor,y=e.constructor;O!=y&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof y=="function"&&y instanceof y)&&(p=!1)}return s.delete(t),s.delete(e),p}var ab=1,zo="[object Arguments]",Wo="[object Array]",fr="[object Object]",lb=Object.prototype,Ho=lb.hasOwnProperty;function cb(t,e,n,r,i,s){var o=we(t),a=we(e),l=o?Wo:ke(t),c=a?Wo:ke(e);l=l==zo?fr:l,c=c==zo?fr:c;var u=l==fr,d=c==fr,m=l==c;if(m&&Mt(t)){if(!Mt(e))return!1;o=!0,u=!1}if(m&&!u)return s||(s=new We),o||ir(t)?Ul(t,e,n,r,i,s):nb(t,e,l,n,r,i,s);if(!(n&ab)){var g=u&&Ho.call(t,"__wrapped__"),f=d&&Ho.call(e,"__wrapped__");if(g||f){var p=g?t.value():t,b=f?e.value():e;return s||(s=new We),i(p,b,n,r,s)}}return m?(s||(s=new We),ob(t,e,n,r,i,s)):!1}function Wr(t,e,n,r,i){return t===e?!0:t==null||e==null||!Ue(t)&&!Ue(e)?t!==t&&e!==e:cb(t,e,n,r,Wr,i)}var ub=1,db=2;function fb(t,e,n,r){var i=n.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<s;){o=n[i];var a=o[0],l=t[a],c=o[1];if(o[2]){if(l===void 0&&!(a in t))return!1}else{var u=new We,d;if(!(d===void 0?Wr(c,l,ub|db,r,u):d))return!1}}return!0}function Ll(t){return t===t&&!ne(t)}function hb(t){for(var e=ze(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ll(i)]}return e}function Bl(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function mb(t){var e=hb(t);return e.length==1&&e[0][2]?Bl(e[0][0],e[0][1]):function(n){return n===t||fb(n,t,e)}}function pb(t,e){return t!=null&&e in Object(t)}function ql(t,e){return t!=null&&Fl(t,e,pb)}var gb=1,yb=2;function bb(t,e){return us(t)&&Ll(e)?Bl(Ct(t),e):function(n){var r=D(n,t);return r===void 0&&r===e?ql(n,t):Wr(e,r,gb|yb)}}function xb(t){return function(e){return e?.[t]}}function vb(t){return function(e){return Lr(e,t)}}function Sb(t){return us(t)?xb(Ct(t)):vb(t)}function Cs(t){return typeof t=="function"?t:t==null?Vr:typeof t=="object"?we(t)?bb(t[0],t[1]):mb(t):Sb(t)}function wb(t,e,n){var r=we(t),i=r||Mt(t)||ir(t);if(e=Cs(e),n==null){var s=t&&t.constructor;i?n=r?new s:[]:ne(t)?n=nr(s)?Sl(Rr(t)):{}:n={}}return(i?gs:Ml)(t,function(o,a,l){return e(n,o,a,l)}),n}function jb(t,e,n,r){for(var i=t.length,s=n+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function Ob(t){return t!==t}function Ab(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Vl(t,e,n){return e===e?Ab(t,e,n):jb(t,Ob,n)}function _s(t,e){var n=t==null?0:t.length;return!!n&&Vl(t,e,0)>-1}function Sr(){}var Eb=1/0,Cb=an&&1/Es(new an([,-0]))[1]==Eb?function(t){return new an(t)}:Sr,_b=200;function zl(t,e,n){var r=-1,i=_s,s=t.length,o=!0,a=[],l=a;if(s>=_b){var c=Cb(t);if(c)return Es(c);o=!1,i=Zn,l=new Ut}else l=a;e:for(;++r<s;){var u=t[r],d=u;if(u=u!==0?u:0,o&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function Wl(t){return t&&t.length?zl(t):[]}function Xn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":t==null?"null":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?"number":typeof t=="object"?"object":"string"}var Ib=zr(function(t){return zl(or(t,1,Jn,!0))});function Le(t){let{type:e}=t;return!e&&t.const?Xn(t.const):!e&&t.enum?"string":!e&&(t.properties||t.additionalProperties||t.patternProperties)?"object":(Array.isArray(e)&&(e.length===2&&e.includes("null")?e=e.find(n=>n!=="null"):e=e[0]),e)}function lt(t,e){const n={...t};return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];return t&&i in t&&V(o)?r[i]=lt(s,o):t&&e&&(Le(t)==="object"||Le(e)==="object")&&i===Ja&&Array.isArray(s)&&Array.isArray(o)?r[i]=Ib(s,o):r[i]=o,r},n)}var Tb="[object Number]";function Hl(t){return typeof t=="number"||Ue(t)&&ut(t)==Tb}function Kl(t,e,n){var r;if(t&&n){const i=D(t,n);if(i===void 0)return;for(let s=0;s<e.length;s+=1){const o=e[s],a=D(o,[oe,n],{});if(a.type!=="object"&&a.type!=="array"&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function $r(t,e,n,r,i){if(e===void 0)return 0;const s=Kl(e,n,i);if(Hl(s))return s;for(let o=0;o<n.length;o+=1){const a=n[o];if(i&&X(a,[oe,i])){const l=D(e,i),c=D(a,[oe,i],{});if(t.isValid(c,l,r))return o}else if(a[oe]){const l={anyOf:Object.keys(a[oe]).map(u=>({required:[u]}))};let c;if(a.anyOf){const{...u}=a;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),c=u}else c={...a,...l};if(delete c.required,t.isValid(c,e,r))return o}else if(t.isValid(a,e,r))return o}return 0}const Nb=Object.prototype;function $n(t){for(const e in t)if(Nb.hasOwnProperty.call(t,e))return!1;return!0}const Fb=["array","boolean","integer","null","number","object","string"];new Set(Fb);const Pb=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Pb);const $b=["items","allOf","oneOf","anyOf"];new Set($b);const Db=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Db);function wr(t){return typeof t=="object"}function Ye(t){return wr(t)?$n(t):t===!0}function rn(t,e){return t<e?-1:t>e?1:0}function ci(t,e){const n=t.length;if(n===0)return e;let r=e.length;if(r===0)return t;if(n<r){const s=t;t=e,e=s,r=n}const i=new Set(t);for(let s=0;s<r;s++)i.add(e[s]);return Array.from(i)}function kb(t,e){const n=[];if(t.length===0||e.length===0)return n;if(t.length>e.length){const i=t;t=e,e=i}const r=new Set(e);for(let i=0;i<t.length&&r.size>0;i++){const s=t[i];r.delete(s)&&n.push(s)}return n}function Ko(t){return t.length===0}function ui(t){return(e,n)=>{const r=e.length-n.length;if(r!==0)return r;for(let i=0;i<e.length;i++)if(e[i]!==n[i]){const s=t(e[i],n[i]);if(s!==0)return s}return 0}}function Gl(t,{threshold:e=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=e){const o=[];let a=0;e:for(let l=0;l<r;l++){const c=n[l];for(let u=0;u<a;u++)if(t(c,o[u])===0)continue e;a=o.push(c)}return o}const i=n.slice().sort(t);let s=0;for(let o=1;o<r;o++)t(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function Rb(t){return(e,n)=>{const r=[];let i=e.length,s=n.length;if(i===0||s===0)return r;if(i>s){const u=e;e=n,n=u;const d=i;i=s,s=d}const o=[...e].sort(t),a=[...n].sort(t);let l=0,c=0;for(;l<i&&c<s;){const u=t(o[l],a[c]);u===0?((r.length===0||t(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,c++):u<0?l++:c++}return r}}function Mb(t,e){return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}const Go=Mb,Yl=()=>0,Ub=t=>t===void 0,Lb=t=>typeof t!="object",Yo={boolean:0,number:1,string:2};function Bb(t,e){const n=typeof t,r=typeof e;return n===r?rn(t,e):Yo[n]-Yo[r]}function qb(t,e){const n=t.length;if(n===0)return e;const r=e.length;if(r===0)return t;if(r>n){const o=t;t=e,e=o}const i=new Set(t),s=e.length;for(let o=0;o<s;o++){const a=e[o];i.has(a)||t.push(a)}return t}function Hr(t,e,n=Yl){return(r,i)=>t(r)?t(i)?n(r,i):-1:t(i)?1:e(r,i)}function en(t){return Hr(Ub,t)}function gt(t,e){return Hr(n=>n===void 0||t(n),e)}function di(t,e){return Hr(Array.isArray,t,e)}const be=en(rn),fi=gt(t=>t===0,(t,e)=>t-e);function Vb({deduplicationCache:t=new WeakMap,sortedKeysCache:e=new WeakMap}={}){const n=Go(e,p=>Object.keys(p).sort());function r(p){return(b,v)=>{const w=n(b),A=n(v),O=Math.min(w.length,A.length);for(let y=0;y<O;y++){const x=rn(w[y],A[y]);if(x!==0)return x}if(w.length!==A.length)return w.length-A.length;for(let y=0;y<O;y++){const x=w[y],S=p(b[x],v[x]);if(S!==0)return S}return 0}}function i(p){const b=ui(p),v=Go(t,Gl(p,{threshold:0}));return(w,A)=>b(v(w),v(A))}const s=i(rn);function o(p,b){if(wr(p)){if(wr(b)){const v=Object.keys(p),w=Object.keys(b),A=qb(v,w),O=A.length;for(let y=0;y<O;y++){const x=A[y];if(p[x]===b[x])continue;const j=(f[x]??a)(p[x],b[x]);if(j!==0)return j}return 0}return b===!0&&$n(p)?0:1}return wr(b)?p===!0&&$n(b)?0:-1:rn(p,b)}const a=en(c),l=Hr(Lb,di(r(a),ui(c)),Bb);function c(p,b){return p===null?-1:b===null?1:l(p,b)}const u=en(o),d=gt($n,r(u)),m=en(i(o)),g=gt(Ye,o),f={$id:be,$comment:be,$defs:d,$ref:be,$schema:be,const:a,contains:u,contentEncoding:be,contentMediaType:be,default:a,definitions:d,description:be,else:u,examples:a,exclusiveMaximum:be,exclusiveMinimum:be,format:be,if:u,maximum:be,maxItems:be,maxLength:be,maxProperties:be,minimum:be,multipleOf:be,not:u,pattern:be,propertyNames:u,readOnly:be,then:u,title:be,writeOnly:be,uniqueItems:gt(p=>p===!1,Yl),minLength:fi,minItems:fi,minProperties:fi,required:gt(Ko,s),enum:gt(Ko,i(c)),type:en((p,b)=>{const v=Array.isArray(p),w=Array.isArray(b);return!v&&!w?rn(p,b):s(v?p:[p],w?b:[b])}),items:gt(p=>!Array.isArray(p)&&Ye(p),di(o,ui(o))),anyOf:m,allOf:m,oneOf:m,properties:d,patternProperties:d,additionalProperties:g,additionalItems:g,dependencies:gt($n,r(en(di(o,s))))};return{compareSchemaValues:c,compareSchemaDefinitions:o}}function Jo(t){return t}const Jl=(t,e)=>t?Jl(e%t,t):e,zb=(t,e)=>Math.abs(t*e)/Jl(t,e);function Wb(t,e){return t===e?t:`^(?=.*(?:${t}))(?=.*(?:${e})).*$`}function hi(t,e,n){const r=t.length,i=e.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=t[s];for(let a=0;a<i;a++)n(o,e[a])}}function mi(t,e){return t||e}function Zo(t){return(e,n)=>{const r={...e},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=e[a]===void 0?n[a]:t(e[a],n[a])}return r}}function Hb(t){const e=new Map;for(const n of t)for(const r of n[0])e.set(r,n[1]);return e}function Nt(t,e,n){n===void 0||Ye(n)?delete t[e]:t[e]=n}const Kb=["properties","patternProperties","additionalProperties"];function Xo(t){const e=Object.keys(t),n=e.length,r=[];for(let i=0;i<n;i++){const s=e[i];r.push({regExp:new RegExp(s),schema:t[s]})}return[r,e]}const Qo=[[],[]];function ea(t,e,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(e))continue;const o=s.schema;if(o===!1)return!0;t.push(o)}return!1}const Gb=["items","additionalItems"],Yb=["if","then","else"];function ta(t,e){return e.if!==void 0&&(t.if=e.if),e.then!==void 0&&(t.then=e.then),e.else!==void 0&&(t.else=e.else),t}function pi(t,e){if(t===e)return t;switch(t){case"number":if(e==="integer")return"integer";case"integer":if(e==="number")return"integer";default:return}}function Ft(t,e,n){return[t,e,n]}function Jb(t){const e=new Map;for(const[n,r,i]of t){const s=o=>{if(!i(o))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(o[n])}, ${r}: ${JSON.stringify(o[r])})`)};for(const o of[[n,r],[r,n]]){let a=e.get(o[0]);a===void 0&&(a=[],e.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return e}const Zb=[Ft("minimum","maximum",t=>t.maximum>=t.minimum),Ft("exclusiveMinimum","maximum",t=>t.maximum>t.exclusiveMinimum),Ft("minimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.minimum),Ft("exclusiveMinimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.exclusiveMinimum),Ft("minLength","maxLength",t=>t.maxLength>=t.minLength),Ft("minItems","maxItems",t=>t.maxItems>=t.minItems),Ft("minProperties","maxProperties",t=>t.maxProperties>=t.minProperties)];function Xb({mergePatterns:t=Wb,isSubRegExp:e=Object.is,intersectJson:n=kb,deduplicateJsonSchemaDef:r=Jo,defaultMerger:i=Jo,assigners:s=[],checks:o=Zb,mergers:a}={}){function l(O){const y=O.length;let x=O[0];for(let S=1;S<y;S++){const j=v(x,O[S]);if(j===!1)return!1;Ye(j)||(x=j)}return x}function c(O,y,x,S,j,E,C){if(O.length=0,x===!1)return!1;if(O.push(x),j!==void 0){if(j===!1)return!1;O.push(j)}if(ea(O,y,E))return!1;const I=O.length<2;if(C===!1){if(I)return;if(ea(O,y,S))return!1}else I&&C!==void 0&&O.push(C);return O.length===1?O[0]:l(O)}function u(O,y,x,S,j,E){const C=x.length;if(C>0&&j!==!1)if(E)Object.assign(O,y);else for(let _=0;_<C;_++){const I=x[_];S.has(I)||(O[I]=v(y[I],j))}return O}const d=(O,{properties:y={},patternProperties:x,additionalProperties:S=!0},{properties:j={},patternProperties:E,additionalProperties:C=!0})=>{const _=Ye(S),I=Ye(C);if(_&&I)return Nt(O,"properties",w(y,j)),Nt(O,"patternProperties",x&&E?w(x,E):x??E),delete O.additionalProperties,O;const T=v(S,C);Nt(O,"additionalProperties",T);const N={},F=Object.keys(y),$=F.length,[R,B]=x?Xo(x):Qo,[L,Y]=E?Xo(E):Qo,re=[],fe=new Set,ye=I?void 0:C;for(let z=0;z<$;z++){const ie=F[z];fe.add(ie);const ae=c(re,ie,y[ie],R,j[ie],L,ye);ae!==void 0&&(N[ie]=ae)}const M=Object.keys(j),le=M.length,te=_?void 0:S;for(let z=0;z<le;z++){const ie=M[z];if(fe.has(ie))continue;const ae=c(re,ie,j[ie],L,void 0,R,te);ae!==void 0&&(N[ie]=ae)}Nt(O,"properties",N);let H={};const K=new Set;return B.length>0&&Y.length>0&&hi(B,Y,(z,ie)=>{e(z,ie)&&K.add(z),e(ie,z)&&K.add(ie),H[t(z,ie)]=v(x[z],E[ie])}),H=u(H,x,B,K,C,I),H=u(H,E,Y,K,S,_),Nt(O,"patternProperties",H),O},m=(O,{items:y=[],additionalItems:x},{items:S=[],additionalItems:j})=>{const E=Array.isArray(y),C=Array.isArray(S),_=[];if(O.items=_,E&&C){const[I,T,N]=y.length<S.length?[y.length,x,S]:[S.length,j,y];let F=0;for(;F<I;F++)_.push(v(y[F],S[F]));if(T===!1)O.additionalItems=!1;else{const $=T===void 0||Ye(T);for(;F<N.length;F++)_.push($?N[F]:v(N[F],T));Nt(O,"additionalItems",x!==void 0&&j!==void 0?v(x,j):x??j)}}else if(E||C){const[I,T,N]=E?[y,S,x]:[S,y,j];Nt(O,"additionalItems",N&&v(N,T));for(let F=0;F<I.length;F++)_.push(v(I[F],T))}else delete O.additionalItems,O.items=v(y,S);return O},g=(O,y,x)=>{ta(O,y);const S=ta({},x);return O.allOf===void 0?O.allOf=[S]:O.allOf=O.allOf.concat(S),O};function f(O,y){const x=[];if(hi(O,y,(S,j)=>{try{x.push(v(S,j))}catch{}}),x.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(O)}" and "${JSON.stringify(y)}"; the merged result is empty`);return r(x)}const p=Hb([[Kb,d],[Gb,m],[Yb,g],...s]),b=Jb(o);function v(O,y){if(O===!1||y===!1)return!1;if(Ye(O))return Ye(y)?!0:y;if(Ye(y))return O;let x={...O};const S=new Set,j=new Set,E=Object.keys(y),C=E.length;for(let _=0;_<C;_++){const I=E[_],T=y[I];if(T===void 0)continue;const N=b.get(I);if(N!==void 0){const B=N.length;for(let L=0;L<B;L++){const Y=N[L];O[Y.oppositeKey]!==void 0&&j.add(Y.check)}}const F=O[I];if(F===void 0){x[I]=T;continue}const $=p.get(I);if($){S.add($);continue}const R=A[I]??i;x[I]=R(F,T)}for(const _ of S)x=_(x,O,y);for(const _ of j)_(x);return x}const w=Zo(v),A={$id:i,$ref:i,$schema:i,$comment:i,$defs:w,definitions:w,type:(O,y)=>{if(O===y)return O;const x=Array.isArray(O),S=Array.isArray(y);if(!x&&!S){const j=pi(O,y);if(j!==void 0)return j}else if(x||S){const j=new Set;if(x&&S)hi(O,y,(C,_)=>{const I=pi(C,_);I!==void 0&&j.add(I)});else{const C=x?O:y,_=x?y:O,I=C.length;for(let T=0;T<I;T++){const N=pi(_,C[T]);N!==void 0&&j.add(N)}}const E=j.size;if(E===1)return j.values().next().value;if(E>1)return Array.from(j)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${O.toString()}, ${y.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(O,y)=>{const x=r([O,y]);return x.length===1?x[0]:{anyOf:x}},pattern:t,readOnly:mi,writeOnly:mi,enum:(O,y)=>{const x=n(O,y);if(x.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(O)}", "${JSON.stringify(y)}"`);return x},anyOf:f,oneOf:f,allOf:(O,y)=>r(O.concat(y)),propertyNames:v,contains:v,dependencies:Zo((O,y)=>Array.isArray(O)?Array.isArray(y)?ci(O,y):v(y,{required:O}):Array.isArray(y)?v(O,{required:y}):v(O,y)),examples:(O,y)=>{if(!Array.isArray(O)||!Array.isArray(y))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(O)}" and "${JSON.stringify(y)}"`);return ci(O,y)},multipleOf:(O,y)=>{let x=1;for(;!Number.isInteger(O)||!Number.isInteger(y);)x*=10,O*=10,y*=10;return zb(O,y)/x},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:mi,required:ci,...a};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:l}}function Qb(t){const e=[],n=[t];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){e.push(r);continue}const{allOf:i,...s}=r;e.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return e}function e0(t){return e=>t(Qb(e))}const{compareSchemaDefinitions:t0,compareSchemaValues:n0}=Vb(),{mergeArrayOfSchemaDefinitions:r0}=Xb({intersectJson:Rb(n0),deduplicateJsonSchemaDef:Gl(t0)}),Zl=e0(r0);function Ce(t,e,n={},r,i,s=!1){return Ze(t,e,n,r,void 0,void 0,i,s)[0]}function i0(t,e,n,r,i,s,o){const{if:a,then:l,else:c,...u}=e,d=t.isValid(a,s||{},n);let m=[u],g=[];if(r)l&&typeof l!="boolean"&&(g=g.concat(Ze(t,l,n,s,r,i,o))),c&&typeof c!="boolean"&&(g=g.concat(Ze(t,c,n,s,r,i,o)));else{const f=d?l:c;f&&typeof f!="boolean"&&(g=g.concat(Ze(t,f,n,s,r,i,o)))}return g.length&&(m=g.map(f=>lt(u,f))),m.flatMap(f=>Ze(t,f,n,s,r,i,o))}function Xl(t){return t.reduce((n,r)=>r.length>1?r.flatMap(i=>Rl(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function Ql(t,e){return Object.keys(t.patternProperties).filter(n=>RegExp(n).test(e)).reduce((n,r)=>(ce(n,[r],t.patternProperties[r]),n),{})}function s0(t,e,n,r,i,s,o,a){const l=ec(t,e,n,r,i,s,o,a);if(l.length>1||l[0]!==e)return l;if(os in e)return nc(t,e,n,r,i,s,o).flatMap(u=>Ze(t,u,n,s,r,i,o));if(At in e&&Array.isArray(e[At])){const c=e.allOf.map(d=>Ze(t,d,n,s,r,i,o));return Xl(c).map(d=>({...e,allOf:d}))}return[e]}function ec(t,e,n,r,i,s,o,a){const l=wt(e,n,i,void 0,a);return l!==e?Ze(t,l,n,s,r,i,o,a):[e]}function wt(t,e,n,r,i){if(!V(t))return t;let s=t,o=r;if(ue in s){const{$ref:a,...l}=s;if(n.includes(a))return s;n.push(a),s={...Yn(a,e,o),...l,[Un]:a},de in s&&(o=s[de])}if(oe in s){const a=[],l=wb(s[oe],(c,u,d)=>{const m=[...n];c[d]=wt(u,e,m,o,i),a.push(m)},{});wy(n,Wl(gy(a))),s={...s,[oe]:l}}if(ln in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:wt(s.items,e,n,o,i)}),i){let a,l;ee in t&&Array.isArray(t[ee])?(a=ee,l=s[ee]):W in t&&Array.isArray(t[W])&&(a=W,l=s[W]),a&&l&&(s={...s,[a]:l.map(c=>wt(c,e,n,o,i))})}return se(t,s)?t:s}function o0(t,e,n,r,i){const s={...e,properties:{...e.properties}},o=r&&V(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Ri in s){const l=Ql(s,a);if(!ge(l)){s.properties[a]=Ce(t,{[At]:Object.values(l)},n,D(o,[a]),i),ce(s.properties,[a,at],!0);return}}if(nn in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?ue in s.additionalProperties?l=Ce(t,{[ue]:D(s.additionalProperties,[ue])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:ee in s.additionalProperties||W in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:Xn(D(o,[a]))}:l={type:Xn(D(o,[a]))},s.properties[a]=l,ce(s.properties,[a,at],!0)}else s.properties[a]={type:"null"},ce(s.properties,[a,at],!0)}}),s}function a0(t){return Zl(t)}function Ze(t,e,n,r,i=!1,s=[],o,a){return V(e)?s0(t,e,n,i,s,r,o,a).flatMap(c=>{var u;let d=c;if(as in d)return i0(t,d,n,i,s,r,o);if(At in d){if(i){const{allOf:g,...f}=d;return[...g,f]}try{const g=[],f=[];(u=d.allOf)===null||u===void 0||u.forEach(p=>{typeof p=="object"&&p.contains?g.push(p):f.push(p)}),g.length&&(d={...d,allOf:f}),d=o?o(d):a0(d),g.length&&(d.allOf=g)}catch(g){console.warn(`could not merge subschemas in allOf:
1
+ import{ff as Re,eu as Ks,ap as k,aI as _e,bK as Bt,cT as Qi,bL as Se,cP as Er,cU as Ve,bN as iu,fg as gn,ao as Q,fh as es,fi as Gs,fj as su,cR as ou,fk as Ba,fl as au,fm as lu,fn as cu,cM as qa,cq as uu,cE as du,bO as Va,bM as er,fo as fu,c as je,Z as hu,j as h,P as st,n as Ys,l as Dr,a0 as ts,a as mu,t as gr,co as ns,r as P,fp as za,cp as pu,fq as gu,f7 as yu,bd as Wa,aF as rs,eT as bu,eG as xu,eH as vu,be as Su,b as ct,p as wu,c_ as ju,a9 as Ou,B as kr,h as is,d as Au,E as Eu,f5 as Cu}from"./index-DXBmCj7V.js";import{i as _u}from"./sidebar-6rO43IUN.js";import{E as Ha}from"./empty-state-DATmbbqz.js";import{d as Iu,e as Tu,n as Nu,A as Ka,S as Fu,C as Pu,u as $u}from"./use-mcp-client-BtmoWWkf.js";import{b as Du}from"./use-mcp-tools-B84418Zt.js";import{A as Ga,i as ku}from"./agent-icon-Du4foZ5w.js";import{i as Ru}from"./Key01-BvLdmCTc.js";import{b as Mu,u as Uu,a as Lu}from"./use-connection-BN3cT5kd.js";import{U as An,b as Qr,c as Js}from"./auth-DoQ4Nalq.js";import{i as Bu,c as qu,b as Vu,e as zu}from"./extract-connection-data-C-_k_HrX.js";import{u as Wu}from"./use-registry-connections-B13lXSQz.js";import{e as Hu}from"./use-organization-settings-yjdHHrMs.js";import{s as Ku}from"./Plus-BKjrQCsd.js";import{S as Gu,b as Yu,a as Ju,d as Zu,c as Xu}from"./select-DOrOm388.js";import{R as Zs}from"./index-C5oMfVw1.js";import{R as Qu,I as ed,a as td}from"./index-VD5I0PAu.js";import{R as nd,T as rd,a as id,b as sd}from"./index-Dud89Ecl.js";import{_ as qt}from"./index-DlTwltzZ.js";import{I as od}from"./input-CA3NO5_t.js";import{a as ad,b as ld,P as cd}from"./popover-B1-bCr3Y.js";import{a as ud,T as dd,b as fd,c as hd}from"./tooltip-rAdo_tRS.js";import{b as md}from"./use-virtual-mcp-2UFz9K4W.js";import{i as pd}from"./SearchMd-I-u-Ppkp.js";import{u as gd}from"./use-mobile-CRuuooNM.js";import{u as yd}from"./use-create-virtual-mcp-9-NMNx3_.js";var bd=class{apply(t,e){if(!e.type)return;const n=Array.isArray(e.type)?e.type:[e.type],r=new Set(n);if(r.has("string")||(t.string=!1),!r.has("number")&&!r.has("integer")&&(t.number=!1),r.has("boolean")||(t.boolean=!1),r.has("null")||(t.null=!1),r.has("array")||(t.array=!1),r.has("object")||(t.object=!1),r.has("integer")&&t.number!==!1){const i=t.number||_e();i instanceof gn&&(t.number=i.int())}}},xd=class{apply(t,e){if(e.const===void 0)return;const n=e.const;t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1,typeof n=="string"?t.string=Ve(n):typeof n=="number"?t.number=Ve(n):typeof n=="boolean"?t.boolean=Ve(n):n===null?t.null=Qi():Array.isArray(n)?t.array=void 0:typeof n=="object"&&(t.object=void 0)}},vd=class{apply(t,e){if(!e.enum)return;if(e.enum.length===0){e.type||(t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1);return}const n={string:e.enum.filter(r=>typeof r=="string"),number:e.enum.filter(r=>typeof r=="number"),boolean:e.enum.filter(r=>typeof r=="boolean"),null:e.enum.filter(r=>r===null),array:e.enum.filter(r=>Array.isArray(r)),object:e.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};t.string=this.createTypeSchema(n.string,"string"),t.number=this.createTypeSchema(n.number,"number"),t.boolean=this.createTypeSchema(n.boolean,"boolean"),t.null=n.null.length>0?Qi():!1,t.array=n.array.length>0?void 0:!1,t.object=n.object.length>0?void 0:!1}createTypeSchema(t,e){if(t.length===0)return!1;if(t.length===1)return Ve(t[0]);if(e==="string")return iu(t);if(e==="number"){const[n,r,...i]=t;return Er([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return e==="boolean"?Er([Ve(!0),Ve(!1)]):!1}},Sd=class{apply(t,e){const n=e;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=cu();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),t.file=r,t.string=!1}}},wd=class{apply(t,e){const n=e;e.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&t.string===void 0&&(t.string=k())}},jd=class{apply(t,e){const n=e;if(n.minLength!==void 0&&t.string!==!1){const r=t.string||k();r instanceof es&&(t.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Od=class{apply(t,e){const n=e;if(n.maxLength!==void 0&&t.string!==!1){const r=t.string||k();r instanceof es&&(t.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Ad=class{apply(t,e){const n=e;if(n.pattern&&t.string!==!1){const r=t.string||k();if(r instanceof es){const i=new RegExp(n.pattern);t.string=r.regex(i)}}}},Ed=class{apply(t,e){const n=e;if(n.minimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(t.number=r.min(n.minimum))}}},Cd=class{apply(t,e){const n=e;if(n.maximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(t.number=r.max(n.maximum))}}},_d=class{apply(t,e){const n=e;if(n.exclusiveMinimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(typeof n.exclusiveMinimum=="number"?t.number=r.gt(n.exclusiveMinimum):t.number=!1)}}},Id=class{apply(t,e){const n=e;if(n.exclusiveMaximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(typeof n.exclusiveMaximum=="number"?t.number=r.lt(n.exclusiveMaximum):t.number=!1)}}},Td=class{apply(t,e){const n=e;if(n.multipleOf!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof gn&&(t.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Nd=class{apply(t,e){const n=e;e.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&t.array===void 0&&(t.array=Se(Re()))}},Fd=class{apply(t,e){const n=e;n.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(Re())).min(n.minItems))}},Pd=class{apply(t,e){const n=e;n.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(Re())).max(n.maxItems))}},$d=class{apply(t,e){const n=e;if(t.array!==!1)if(Array.isArray(n.items))t.array=t.array||Se(Re());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ie(n.items);let i=Se(r);if(t.array&&t.array instanceof su){const s=t.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}t.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?t.array=t.array||Se(Re()):t.array=Se(Re()).max(0):typeof n.items=="boolean"&&n.items===!0?t.array=t.array||Se(Re()):n.prefixItems&&(t.array=t.array||Se(Re()))}},Dd=class{apply(t,e){if(e.type!=="array")return;const n=e;if(!Array.isArray(n.items)||t.array===!1)return;const r=n.items.map(s=>Ie(s));let i;r.length===0?i=Gs([]):i=Gs(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),t.tuple=i,t.array=!1}},kd=class{apply(t,e){const n=e;t.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(t.object=t.object||Q({}).passthrough())}},Rd=class{apply(t,e){const n=e;e.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&t.object===void 0&&(t.object=Q({}).passthrough())}},Md=class{apply(t,e){const n=e;if(n.maxProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Ud=class{apply(t,e){const n=e;if(n.minProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Hn(t,e){if(t===e)return!0;if(t==null||e==null)return t===e;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((n,r)=>Hn(n,e[r]));if(typeof t=="object"&&typeof e=="object"){const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Hn(t[i],e[i]))}return!1}function Ld(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(n=>e.some(i=>Hn(n,i))?!1:(e.push(n),!0))}}function Cr(t,e){return t.safeParse(e).success}var Bd=class{apply(t,e){if(!e.not)return t;const n=Ie(e.not);return t.refine(r=>!Cr(n,r),{message:"Value must not match the 'not' schema"})}},qd=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(Ld(),{message:"Array items must be unique"})}},Vd=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(r=>Ie(r)).reduce((r,i)=>Ba(r,i),t)}},zd=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const n=e.anyOf.length===1?Ie(e.anyOf[0]):Er([Ie(e.anyOf[0]),Ie(e.anyOf[1]),...e.anyOf.slice(2).map(r=>Ie(r))]);return Ba(t,n)}},Wd=class{apply(t,e){if(!e.oneOf||e.oneOf.length===0)return t;const n=e.oneOf.map(r=>Ie(r));return t.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},Hd=class{apply(t,e){const n=e;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ie(s));return t.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!Cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ie(n.items);for(let a=i.length;a<s.length;a++)if(!Cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},Kd=class{apply(t,e){const n=e;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return t;if(t instanceof au||t instanceof lu){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ie(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?Q(r):Q(r).passthrough()}return t.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ie(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Gd=class{apply(t,e){if(!e.enum||e.enum.length===0)return t;const n=e.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?t:t.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Hn(r,i)),{message:"Value must match one of the enum values"})}},Yd=class{apply(t,e){if(e.const===void 0)return t;const n=e.const;return typeof n!="object"||n===null?t:t.refine(r=>Hn(r,n),{message:"Value must equal the const value"})}},Jd=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Zd=class{apply(t,e){var n;const r=e;return!((n=r.required)!=null&&n.includes("__proto__"))||e.type!==void 0?t:Re().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(t,e){return typeof t!="object"||t===null||Array.isArray(t)?!0:e.every(n=>Object.prototype.hasOwnProperty.call(t,n))}},Xd=class{apply(t,e){var n;const r=e;if(r.contains===void 0)return t;const i=Ie(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return t.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)Cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Qd=class{apply(t,e){const{default:n}=e;return n===void 0||!t.safeParse(n).success?t:t.default(n)}},ef=[new xd,new vd,new bd,new Sd,new wd,new Nd,new Rd,new jd,new Od,new Ad,new Ed,new Cd,new _d,new Id,new Td,new Dd,new Fd,new Pd,new $d,new Md,new Ud,new kd],tf=[new Zd,new Gd,new Yd,new Vd,new zd,new Wd,new Hd,new Kd,new Xd,new Bd,new qd,new Qd,new Jd];function Ie(t){if(typeof t=="boolean")return t?Re():Ks();const e={};for(const i of ef)i.apply(e,t);const n=[];if(e.string!==!1&&n.push(e.string||k()),e.number!==!1&&n.push(e.number||_e()),e.boolean!==!1&&n.push(e.boolean||Bt()),e.null!==!1&&n.push(e.null||Qi()),e.array!==!1&&n.push(e.array||Se(Re())),e.tuple!==!1&&e.tuple!==void 0&&n.push(e.tuple),e.object!==!1)if(e.object)n.push(e.object);else{const i=ou(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}e.file!==!1&&e.file!==void 0&&n.push(e.file);let r;n.length===0?r=Ks():n.length===1?r=n[0]:Object.keys(t).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=Er(n):r=Re();for(const i of tf)r=i.apply(r,t);return r}class Xs extends Event{constructor(e,n){var r,i;super(e),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,n,r){return r(Qs(this),n)}[Symbol.for("Deno.customInspect")](e,n){return e(Qs(this),n)}}function nf(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Ii(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Ii).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Ii(t.cause)}`:t.message:`${t}`}function Qs(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var Ya=t=>{throw TypeError(t)},ss=(t,e,n)=>e.has(t)||Ya("Cannot "+n),Z=(t,e,n)=>(ss(t,e,"read from private field"),n?n.call(t):e.get(t)),ve=(t,e,n)=>e.has(t)?Ya("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pe=(t,e,n,r)=>(ss(t,e,"write to private field"),e.set(t,n),n),ot=(t,e,n)=>(ss(t,e,"access private method"),n),Fe,Pt,Zt,yr,_r,Rn,tn,Mn,xt,Xt,on,Qt,Nn,qe,Ti,Ni,Fi,eo,Pi,$i,Fn,Di,ki;class br extends EventTarget{constructor(e,n){var r,i;super(),ve(this,qe),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ve(this,Fe),ve(this,Pt),ve(this,Zt),ve(this,yr),ve(this,_r),ve(this,Rn),ve(this,tn),ve(this,Mn,null),ve(this,xt),ve(this,Xt),ve(this,on,null),ve(this,Qt,null),ve(this,Nn,null),ve(this,Ni,async s=>{var o;Z(this,Xt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){ot(this,qe,Fn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?pe(this,Zt,new URL(s.url)):pe(this,Zt,void 0),c!==200){ot(this,qe,Fn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){ot(this,qe,Fn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.OPEN);const d=new Event("open");if((o=Z(this,Nn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){ot(this,qe,Fn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const m=new TextDecoder,g=a.getReader();let f=!0;do{const{done:p,value:b}=await g.read();b&&Z(this,Xt).feed(m.decode(b,{stream:!p})),p&&(f=!1,Z(this,Xt).reset(),ot(this,qe,Di).call(this))}while(f)}),ve(this,Fi,s=>{pe(this,xt,void 0),!(s.name==="AbortError"||s.type==="aborted")&&ot(this,qe,Di).call(this,Ii(s))}),ve(this,Pi,s=>{typeof s.id=="string"&&pe(this,Mn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:Z(this,Zt)?Z(this,Zt).origin:Z(this,Pt).origin,lastEventId:s.id||""});Z(this,Qt)&&(!s.event||s.event==="message")&&Z(this,Qt).call(this,o),this.dispatchEvent(o)}),ve(this,$i,s=>{pe(this,Rn,s)}),ve(this,ki,()=>{pe(this,tn,void 0),Z(this,Fe)===this.CONNECTING&&ot(this,qe,Ti).call(this)});try{if(e instanceof URL)pe(this,Pt,e);else if(typeof e=="string")pe(this,Pt,new URL(e,rf()));else throw new Error("Invalid URL")}catch{throw nf("An invalid or illegal string was specified")}pe(this,Xt,Iu({onEvent:Z(this,Pi),onRetry:Z(this,$i)})),pe(this,Fe,this.CONNECTING),pe(this,Rn,3e3),pe(this,_r,(r=n?.fetch)!=null?r:globalThis.fetch),pe(this,yr,(i=n?.withCredentials)!=null?i:!1),ot(this,qe,Ti).call(this)}get readyState(){return Z(this,Fe)}get url(){return Z(this,Pt).href}get withCredentials(){return Z(this,yr)}get onerror(){return Z(this,on)}set onerror(e){pe(this,on,e)}get onmessage(){return Z(this,Qt)}set onmessage(e){pe(this,Qt,e)}get onopen(){return Z(this,Nn)}set onopen(e){pe(this,Nn,e)}addEventListener(e,n,r){const i=n;super.addEventListener(e,i,r)}removeEventListener(e,n,r){const i=n;super.removeEventListener(e,i,r)}close(){Z(this,tn)&&clearTimeout(Z(this,tn)),Z(this,Fe)!==this.CLOSED&&(Z(this,xt)&&Z(this,xt).abort(),pe(this,Fe,this.CLOSED),pe(this,xt,void 0))}}Fe=new WeakMap,Pt=new WeakMap,Zt=new WeakMap,yr=new WeakMap,_r=new WeakMap,Rn=new WeakMap,tn=new WeakMap,Mn=new WeakMap,xt=new WeakMap,Xt=new WeakMap,on=new WeakMap,Qt=new WeakMap,Nn=new WeakMap,qe=new WeakSet,Ti=function(){pe(this,Fe,this.CONNECTING),pe(this,xt,new AbortController),Z(this,_r)(Z(this,Pt),ot(this,qe,eo).call(this)).then(Z(this,Ni)).catch(Z(this,Fi))},Ni=new WeakMap,Fi=new WeakMap,eo=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Z(this,Mn)?{"Last-Event-ID":Z(this,Mn)}:void 0},cache:"no-store",signal:(t=Z(this,xt))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},Pi=new WeakMap,$i=new WeakMap,Fn=function(t,e){var n;Z(this,Fe)!==this.CLOSED&&pe(this,Fe,this.CLOSED);const r=new Xs("error",{code:e,message:t});(n=Z(this,on))==null||n.call(this,r),this.dispatchEvent(r)},Di=function(t,e){var n;if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.CONNECTING);const r=new Xs("error",{code:e,message:t});(n=Z(this,on))==null||n.call(this,r),this.dispatchEvent(r),pe(this,tn,setTimeout(Z(this,ki),Z(this,Rn)))},ki=new WeakMap,br.CONNECTING=0,br.OPEN=1,br.CLOSED=2;function rf(){const t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}class sf extends Error{constructor(e,n,r){super(`SSE error: ${n}`),this.code=e,this.event=r}}class of{constructor(e,n){this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=Tu(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new An("No auth provider");let e;try{e=await Qr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(e!=="AUTHORIZED")throw new An;return await this._startOrAuth()}async _commonHeaders(){const e={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(e.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const n=Nu(this._requestInit?.headers);return new Headers({...e,...n})}_startOrAuth(){const e=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new br(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await e(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=Js(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new sf(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=qa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new An("No auth provider");if(await Qr(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new An("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(e){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(e),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=Js(i);if(this._resourceMetadataUrl=o,this._scope=a,await Qr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new An;return this.send(e)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(e){this._protocolVersion=e}}const af="mcp";class lf{constructor(e){this._url=e}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,n)=>{this._socket=new WebSocket(this._url,af),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{e()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=qa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(e){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(e)),n()})}}function cf(){const t=new Ka({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return uu(t),t}class uf{#e=cf();#t=new Map;#n=new WeakMap;getValidator(e){const n=this.#n.get(e);if(n)return n;let r;const i=s=>{if(!r){const o=df(e);let a=this.#t.get(o);a||(a=this.#e.compile(e),this.#t.set(o,a)),r=a}return r(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(r.errors)}};return this.#n.set(e,i),i}}function df(t){return JSON.stringify(t,(e,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const ff=new uf;var to;(function(t){t.Completable="McpCompletable"})(to||(to={}));class hf extends Fu{constructor(e,n){super(e,n)}send(e,n){const r=mf(e);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(e,n)}}function mf(t){const e=t;if(!e||typeof e!="object"||!("method"in e))return null;switch(e.method){case"initialize":{const n=e?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:e.jsonrpc??"2.0",id:e.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class pf extends Pu{constructor(e,n){super(e,{jsonSchemaValidator:ff,...n})}async listTools(e,n){return await this.request({method:"tools/list",params:e},du,n)}}const gf=async(t,e,n)=>{const r=yf(t.connection,e,n);if(!r)throw new Error("Unknown MCP connection type");const i=new pf({name:t?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},yf=(t,e,n)=>{if(t.type==="Websocket")return new lf(new URL(t.url));if(t.type!=="SSE"&&t.type!=="HTTP")return null;const i={...t.token?{authorization:`Bearer ${t.token}`}:{},...n??{},..."headers"in t?t.headers||{}:{}};if(t.type==="SSE"){const s={requestInit:{headers:i,signal:e}};return t.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:e})}),new of(new URL(t.url),s)}return new hf(new URL(t.url),{requestInit:{headers:i,signal:e,credentials:"include"}})},no=t=>{try{return JSON.parse(t)}catch{return t}},bf=500,$t=new Map;function xf(t,e){if($t.set(t,e),$t.size>bf){const n=$t.keys().next().value;n!==void 0&&$t.delete(n)}}const ro=(t,e)=>({...t,id:t.name,inputSchema:t.inputSchema?Ie(t.inputSchema):void 0,outputSchema:t.outputSchema?Ie(t.outputSchema):void 0,execute:n=>e(n.context,t.name)});function vf(t){const e=n=>"connection"in t?gf({connection:t.connection},void 0,n):t.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=t?.debugId?.(),d=u?{"x-trace-debug-id":u}:void 0,{client:m}=await e(d),{structuredContent:g,isError:f,content:p}=await m.callTool({name:String(c),arguments:l});if(f){const v=p?.[0]?.text,w=typeof v=="string"?no(v):null,A=w?.code&&typeof t?.getErrorByStatusCode=="function"?t.getErrorByStatusCode(w.code,w.message,w.traceId):null;throw A||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(g??p)}`)}if(g!==void 0)return g;const b=p?.[0]?.text;return typeof b=="string"?no(b):void 0}async function s(){const{client:l}=await e(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in t))return s();const l=t.connection,c=JSON.stringify(l);try{return $t.has(c)||xf(c,s()),await $t.get(c)}catch(u){console.error("Failed to list tools",u),$t.delete(c);return}}async function a(){return(await o()??[]).map(c=>ro(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return ro(c,i)},i}})}new Proxy({},{get(t,e){return e==="toJSON"?null:e==="forConnection"?n=>io({connection:n}):e==="forClient"?n=>io({client:n}):globalThis[e]}});function io(t){return vf(t)}function Sf(t){return{isImplementedBy:e=>{for(const n of t){const r=typeof n.name=="string"?new RegExp(`^${n.name}$`):n.name,i=e.find(s=>r.test(s.name));if(!(!i&&n.opt)&&!i)return!1}return!0}}}const wf=Q({specversion:Ve("1.0").describe("CloudEvents specification version"),id:k().describe("Unique identifier for this event (UUID recommended)"),source:k().describe("Connection ID of the event publisher"),type:k().describe("Event type (e.g., 'order.created', 'user.signup')"),time:k().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:k().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:k().optional().default("application/json").describe("Content type of the data attribute"),dataschema:k().url().optional().describe("URI to the schema for the data attribute"),data:Va().optional().describe("Event payload (any JSON value)")});Q({events:Se(wf).min(1).describe("Batch of CloudEvents to process")});const jf=Q({success:Bt().optional().describe("Whether this event was processed successfully"),error:k().optional().describe("Error message for this event"),retryAfter:_e().int().positive().optional().describe("Re-deliver this event after this many ms")});Q({success:Bt().optional().describe("Batch success - applies to events not in results"),error:k().optional().describe("Batch error message - applies to events not in results"),processedCount:_e().int().min(0).optional().describe("Number of events successfully processed"),retryAfter:_e().int().positive().optional().describe("Batch retryAfter - applies to events not in results"),results:er(k(),jf).optional().describe("Per-event results keyed by event ID")});const Of=Q({type:Ve("string"),enum:Se(k()).optional(),description:k().optional()}),Af=Q({type:k(),description:k(),paramsSchema:er(k(),Of)});Q({});Q({triggers:Se(Af)});Q({type:k(),params:er(k(),k()),enabled:Bt(),callbackUrl:fu().optional(),callbackToken:k().min(1).optional()});Q({success:Bt()});Q({prefix:k().optional().describe("Filter objects by prefix (e.g., 'folder/' for folder contents)"),maxKeys:_e().optional().default(1e3).describe("Maximum number of keys to return (default: 1000)"),continuationToken:k().optional().describe("Token for pagination from previous response"),delimiter:k().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});Q({objects:Se(Q({key:k().describe("Object key/path"),size:_e().describe("Object size in bytes"),lastModified:k().describe("Last modified timestamp"),etag:k().describe("Entity tag for the object")})),nextContinuationToken:k().optional().describe("Token for fetching next page of results"),isTruncated:Bt().describe("Whether there are more results available"),commonPrefixes:Se(k()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});Q({key:k().describe("Object key/path to get metadata for")});Q({contentType:k().optional().describe("MIME type of the object"),contentLength:_e().describe("Size of the object in bytes"),lastModified:k().describe("Last modified timestamp"),etag:k().describe("Entity tag for the object"),metadata:er(k(),k()).optional().describe("Custom metadata key-value pairs")});Q({key:k().describe("Object key/path to generate URL for"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});Q({url:k().describe("Presigned URL for downloading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:k().describe("Object key/path for the upload"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:k().optional().describe("MIME type for the object being uploaded")});Q({url:k().describe("Presigned URL for uploading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:k().describe("Object key/path to delete")});Q({success:Bt().describe("Whether the deletion was successful"),key:k().describe("The key that was deleted")});Q({keys:Se(k()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});Q({deleted:Se(k()).describe("Array of successfully deleted keys"),errors:Se(Q({key:k(),message:k()})).describe("Array of errors for failed deletions")});const Ef=Q({primary:k().optional().describe("Primary brand color (hex)"),secondary:k().optional().describe("Secondary brand color (hex)"),accent:k().optional().describe("Accent / highlight color (hex)"),background:k().optional().describe("Background color (hex)"),foreground:k().optional().describe("Foreground / text color (hex)")}),Cf=Q({heading:k().optional().describe("Font family for headings"),body:k().optional().describe("Font family for body text"),code:k().optional().describe("Font family for code / monospace")}),_f=Q({logo:k().optional().describe("Logo URL"),favicon:k().optional().describe("Favicon URL"),ogImage:k().optional().describe("Open Graph image URL")}),If=Q({id:k(),name:k().describe("Brand / company name"),domain:k().optional().describe("Company domain (e.g. example.com)"),colors:Ef.optional().describe("Semantic color palette"),fonts:Cf.optional().describe("Font families by role"),assets:_f.optional().describe("Visual identity assets"),overview:k().optional().describe("Company overview / description"),tagline:k().optional().describe("Brand tagline"),tone:k().optional().describe("Tone of voice description"),metadata:er(k(),Va()).optional().describe("Extra design tokens and metadata")});Q({id:k().optional().describe("Brand ID. Omit to get the default brand.")});Q({});Q({items:Se(If)});const Tf={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function Nf(t){if(t)return Tf[t]}function Xj(t,e){const n=t.tools;if(!n||n.length===0)return!1;const r=n.map(o=>({name:o.name,inputSchema:o.inputSchema})),i=e.map(o=>({name:o.name,inputSchema:o.inputSchema,opt:o.opt}));return Sf(i).isImplementedBy(r)}function Ff(t){const e=je.c(7),{children:n,leading:r}=t;let i;e[0]!==r?(i=r&&h.jsx(st.Toolbar.Left.Portal,{fallback:r,children:r}),e[0]=r,e[1]=i):i=e[1];let s;e[2]!==n?(s=h.jsx(Ys.Content,{children:n}),e[2]=n,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o=h.jsxs(Ys,{children:[i,s]}),e[4]=i,e[5]=s,e[6]=o):o=e[6],o}function Pf(t){const e=je.c(15),{children:n,leading:r,hideTopbar:i}=t,o=(i===void 0?!1:i)&&"hidden";let a;e[0]!==o?(a=Dr("h-11 border-b border-border/50",o),e[0]=o,e[1]=a):a=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=h.jsx(_u,{className:"md:hidden shrink-0"}),e[2]=l):l=e[2];let c;e[3]!==r?(c=h.jsxs(st.Topbar.Left,{children:[l,r]}),e[3]=r,e[4]=c):c=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(st.Topbar.Center,{children:h.jsx(st.Topbar.Center.Target,{})}),e[5]=u):u=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(st.Topbar.Right,{children:h.jsx(st.Topbar.Right.Target,{})}),e[6]=d):d=e[6];let m;e[7]!==a||e[8]!==c?(m=h.jsxs(st.Topbar,{className:a,children:[c,u,d]}),e[7]=a,e[8]=c,e[9]=m):m=e[9];let g;e[10]!==n?(g=h.jsx(st.Content,{mode:"scroll",children:n}),e[10]=n,e[11]=g):g=e[11];let f;return e[12]!==m||e[13]!==g?(f=h.jsxs(st,{variant:"plain",children:[m,g]}),e[12]=m,e[13]=g,e[14]=f):f=e[14],f}function Qj(t){const e=je.c(3),n=hu();let r;return e[0]!==n||e[1]!==t?(r=n?h.jsx(Ff,{...t}):h.jsx(Pf,{...t}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function $f(t){return t.startsWith("@")?t:`@${t}`}function Df(){const{org:t}=ts(),{data:e}=mu.useSession(),n=Mu(),r=Wu(),i=Hu(),s=r.filter(a=>i(a.id));return{installByBinding:async a=>{if(!t||!e?.user?.id){gr.error("Not authenticated");return}const l=$f(a),u=(await Promise.all(s.map(async p=>{const b=Bu(p.id,t.id);try{const v=await qu(p.id,t.id,t.slug,b,{where:{appName:l}});return Vu(v??[])[0]??null}catch{return null}}))).find(p=>p!==null);if(!u){gr.error(`MCP Server not found in registry: ${a}`);return}const d=zu(u,t.id,e.user.id),m=d.connection_type==="STDIO",g=!!d.connection_url,f=m&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!g&&!f){gr.error("This MCP Server cannot be connected: no connection method available");return}return await n.create.mutateAsync(d),{id:d.id,connection:d}},isInstalling:n.create.isPending}}function V(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function kf(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),V(t.additionalItems)}function so(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const at="__additional_property",nn="additionalProperties",At="allOf",ee="anyOf",Ne="const",kt="default",os="dependencies",Rf="enum",Ee="__errors",de="$id",as="if",ln="items",Mf="_$junk_option_schema_id$_",xr="$name",W="oneOf",Ri="patternProperties",oe="properties",ei="readonly",Ja="required",Ir="submitButtonOptions",ue="$ref",Un="__rjsf_ref",Pn="$schema",Za="root",Xa="_",Uf=["discriminator","propertyName"],oo="formContext",Lf="layoutGridLookupMap",ls="__rjsf_additionalProperties",Qa="__rjsf_rootSchema",Bf="ui:field",cs="ui:widget",St="ui:options",Mi="ui:globalOptions",qf="ui:definitions",Vf="https://json-schema.org/draft/2019-09/schema",vr="https://json-schema.org/draft/2020-12/schema";function U(t={},e={}){return t?Object.keys(t).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=t[r];return r===cs&&V(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===St&&V(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...e}):{...e}}function el(t,e={},n){if(!(t.additionalProperties||t.patternProperties))return!1;const{expandable:r=!0}=U(e);return r===!1?r:t.maxProperties!==void 0&&n?Object.keys(n).length<t.maxProperties:!0}var tl=typeof global=="object"&&global&&global.Object===Object&&global,zf=typeof self=="object"&&self&&self.Object===Object&&self,nt=tl||zf||Function("return this")(),Me=nt.Symbol,nl=Object.prototype,Wf=nl.hasOwnProperty,Hf=nl.toString,En=Me?Me.toStringTag:void 0;function Kf(t){var e=Wf.call(t,En),n=t[En];try{t[En]=void 0;var r=!0}catch{}var i=Hf.call(t);return r&&(e?t[En]=n:delete t[En]),i}var Gf=Object.prototype,Yf=Gf.toString;function Jf(t){return Yf.call(t)}var Zf="[object Null]",Xf="[object Undefined]",ao=Me?Me.toStringTag:void 0;function ut(t){return t==null?t===void 0?Xf:Zf:ao&&ao in Object(t)?Kf(t):Jf(t)}function rl(t,e){return function(n){return t(e(n))}}var Rr=rl(Object.getPrototypeOf,Object);function Ue(t){return t!=null&&typeof t=="object"}var Qf="[object Object]",eh=Function.prototype,th=Object.prototype,il=eh.toString,nh=th.hasOwnProperty,rh=il.call(Object);function Et(t){if(!Ue(t)||ut(t)!=Qf)return!1;var e=Rr(t);if(e===null)return!0;var n=nh.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&il.call(n)==rh}function Ui(t){const e={[Ee]:[],addError(n){this[Ee].push(n)}};if(Array.isArray(t))return t.reduce((n,r,i)=>({...n,[i]:Ui(r)}),e);if(Et(t)){const n=t;return Object.keys(n).reduce((r,i)=>({...r,[i]:Ui(n[i])}),e)}return e}var we=Array.isArray,ih="[object Symbol]";function tr(t){return typeof t=="symbol"||Ue(t)&&ut(t)==ih}var sh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oh=/^\w*$/;function us(t,e){if(we(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||tr(t)?!0:oh.test(t)||!sh.test(t)||e!=null&&t in Object(e)}function ne(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ah="[object AsyncFunction]",lh="[object Function]",ch="[object GeneratorFunction]",uh="[object Proxy]";function nr(t){if(!ne(t))return!1;var e=ut(t);return e==lh||e==ch||e==ah||e==uh}var ti=nt["__core-js_shared__"],lo=(function(){var t=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function dh(t){return!!lo&&lo in t}var fh=Function.prototype,hh=fh.toString;function Vt(t){if(t!=null){try{return hh.call(t)}catch{}try{return t+""}catch{}}return""}var mh=/[\\^$.*+?()[\]{}|]/g,ph=/^\[object .+?Constructor\]$/,gh=Function.prototype,yh=Object.prototype,bh=gh.toString,xh=yh.hasOwnProperty,vh=RegExp("^"+bh.call(xh).replace(mh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sh(t){if(!ne(t)||dh(t))return!1;var e=nr(t)?vh:ph;return e.test(Vt(t))}function wh(t,e){return t?.[e]}function zt(t,e){var n=wh(t,e);return Sh(n)?n:void 0}var Kn=zt(Object,"create");function jh(){this.__data__=Kn?Kn(null):{},this.size=0}function Oh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ah="__lodash_hash_undefined__",Eh=Object.prototype,Ch=Eh.hasOwnProperty;function _h(t){var e=this.__data__;if(Kn){var n=e[t];return n===Ah?void 0:n}return Ch.call(e,t)?e[t]:void 0}var Ih=Object.prototype,Th=Ih.hasOwnProperty;function Nh(t){var e=this.__data__;return Kn?e[t]!==void 0:Th.call(e,t)}var Fh="__lodash_hash_undefined__";function Ph(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Kn&&e===void 0?Fh:e,this}function Rt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Rt.prototype.clear=jh;Rt.prototype.delete=Oh;Rt.prototype.get=_h;Rt.prototype.has=Nh;Rt.prototype.set=Ph;function $h(){this.__data__=[],this.size=0}function rr(t,e){return t===e||t!==t&&e!==e}function Mr(t,e){for(var n=t.length;n--;)if(rr(t[n][0],e))return n;return-1}var Dh=Array.prototype,kh=Dh.splice;function Rh(t){var e=this.__data__,n=Mr(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():kh.call(e,n,1),--this.size,!0}function Mh(t){var e=this.__data__,n=Mr(e,t);return n<0?void 0:e[n][1]}function Uh(t){return Mr(this.__data__,t)>-1}function Lh(t,e){var n=this.__data__,r=Mr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function dt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=$h;dt.prototype.delete=Rh;dt.prototype.get=Mh;dt.prototype.has=Uh;dt.prototype.set=Lh;var Gn=zt(nt,"Map");function Bh(){this.size=0,this.__data__={hash:new Rt,map:new(Gn||dt),string:new Rt}}function qh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ur(t,e){var n=t.__data__;return qh(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Vh(t){var e=Ur(this,t).delete(t);return this.size-=e?1:0,e}function zh(t){return Ur(this,t).get(t)}function Wh(t){return Ur(this,t).has(t)}function Hh(t,e){var n=Ur(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function ft(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ft.prototype.clear=Bh;ft.prototype.delete=Vh;ft.prototype.get=zh;ft.prototype.has=Wh;ft.prototype.set=Hh;var Kh="Expected a function";function ds(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Kh);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(ds.Cache||ft),n}ds.Cache=ft;var Gh=500;function Yh(t){var e=ds(t,function(r){return n.size===Gh&&n.clear(),r}),n=e.cache;return e}var Jh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zh=/\\(\\)?/g,sl=Yh(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Jh,function(n,r,i,s){e.push(i?s.replace(Zh,"$1"):r||n)}),e});function yn(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var co=Me?Me.prototype:void 0,uo=co?co.toString:void 0;function ol(t){if(typeof t=="string")return t;if(we(t))return yn(t,ol)+"";if(tr(t))return uo?uo.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function fs(t){return t==null?"":ol(t)}function bn(t,e){return we(t)?t:us(t,e)?[t]:sl(fs(t))}function Ct(t){if(typeof t=="string"||tr(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Lr(t,e){e=bn(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Ct(e[n++])];return n&&n==r?t:void 0}function D(t,e,n){var r=t==null?void 0:Lr(t,e);return r===void 0?n:r}const{getOwnPropertyNames:Xh,getOwnPropertySymbols:Qh}=Object,{hasOwnProperty:em}=Object.prototype;function ni(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function dr(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);const{cache:s}=i,o=s.get(n),a=s.get(r);if(o&&a)return o===r&&a===n;s.set(n,r),s.set(r,n);const l=t(n,r,i);return s.delete(n),s.delete(r),l}}function fo(t){return Xh(t).concat(Qh(t))}const tm=Object.hasOwn||((t,e)=>em.call(t,e)),nm="__v",rm="__o",im="_owner",{getOwnPropertyDescriptor:ho,keys:mo}=Object,Wt=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n};function sm(t,e){return t===e}function om(t,e){return t.byteLength===e.byteLength&&Tr(new Uint8Array(t),new Uint8Array(e))}function am(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function lm(t,e){return t.byteLength===e.byteLength&&Tr(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function cm(t,e){return Wt(t.getTime(),e.getTime())}function um(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function po(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.entries();let o,a,l=0;for(;(o=s.next())&&!o.done;){const c=e.entries();let u=!1,d=0;for(;(a=c.next())&&!a.done;){if(i[d]){d++;continue}const m=o.value,g=a.value;if(n.equals(m[0],g[0],l,d,t,e,n)&&n.equals(m[1],g[1],m[0],g[0],t,e,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}function dm(t,e,n){const r=mo(t);let i=r.length;if(mo(e).length!==i)return!1;for(;i-- >0;)if(!al(t,e,n,r[i]))return!1;return!0}function Cn(t,e,n){const r=fo(t);let i=r.length;if(fo(e).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!al(t,e,n,s)||(o=ho(t,s),a=ho(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function fm(t,e){return Wt(t.valueOf(),e.valueOf())}function hm(t,e){return t.source===e.source&&t.flags===e.flags}function go(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.values();let o,a;for(;(o=s.next())&&!o.done;){const l=e.values();let c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(o.value,a.value,o.value,a.value,t,e,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function Tr(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function mm(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function al(t,e,n,r){return(r===im||r===rm||r===nm)&&(t.$$typeof||e.$$typeof)?!0:tm(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const pm=Object.prototype.toString;function gm(t){const e=vm(t),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:c,getUnsupportedCustomComparator:u}=t;return function(m,g,f){if(m===g)return!0;if(m==null||g==null)return!1;const p=typeof m;if(p!==typeof g)return!1;if(p!=="object")return p==="number"||p==="bigint"?o(m,g,f):p==="function"?i(m,g,f):!1;const b=m.constructor;if(b!==g.constructor)return!1;if(b===Object)return a(m,g,f);if(b===Array)return n(m,g,f);if(b===Date)return r(m,g,f);if(b===RegExp)return l(m,g,f);if(b===Map)return s(m,g,f);if(b===Set)return c(m,g,f);if(b===Promise)return!1;if(Array.isArray(m))return n(m,g,f);const v=pm.call(m),w=e[v];if(w)return w(m,g,f);const A=u&&u(m,g,f,v);return A?A(m,g,f):!1}}function ym({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:om,areArraysEqual:n?Cn:am,areDataViewsEqual:lm,areDatesEqual:cm,areErrorsEqual:um,areFunctionsEqual:sm,areMapsEqual:n?ni(po,Cn):po,areNumbersEqual:Wt,areObjectsEqual:n?Cn:dm,arePrimitiveWrappersEqual:fm,areRegExpsEqual:hm,areSetsEqual:n?ni(go,Cn):go,areTypedArraysEqual:n?ni(Tr,Cn):Tr,areUrlsEqual:mm,getUnsupportedCustomComparator:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=dr(r.areArraysEqual),s=dr(r.areMapsEqual),o=dr(r.areObjectsEqual),a=dr(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function bm(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function xm({circular:t,comparator:e,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:c=t?new WeakMap:void 0,meta:u}=n();return e(a,l,{cache:c,equals:r,meta:u,strict:i})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const s={cache:void 0,equals:r,meta:void 0,strict:i};return function(a,l){return e(a,l,s)}}function vm({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:m,areUrlsEqual:g}){return{"[object Arguments]":l,"[object Array]":e,"[object ArrayBuffer]":t,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":c,"[object DataView]":n,"[object Date]":r,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":s,"[object GeneratorFunction]":s,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":o,"[object Number]":c,"[object Object]":(f,p,b)=>typeof f.then!="function"&&typeof p.then!="function"&&l(f,p,b),"[object RegExp]":u,"[object Set]":d,"[object String]":c,"[object URL]":g,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}ht();ht({strict:!0});ht({circular:!0});ht({circular:!0,strict:!0});ht({createInternalComparator:()=>Wt});ht({strict:!0,createInternalComparator:()=>Wt});ht({circular:!0,createInternalComparator:()=>Wt});ht({circular:!0,createInternalComparator:()=>Wt,strict:!0});function ht(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,s=ym(t),o=gm(s),a=n?n(o):bm(o);return xm({circular:e,comparator:o,createState:r,equals:a,strict:i})}const se=ht({circular:!0,createCustomConfig:()=>({areFunctionsEqual(t,e){return typeof e=="function"}})});var _n={exports:{}},ri,yo;function ll(){if(yo)return ri;yo=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),r=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(y){let x="",S=0,j=0;for(j=0;j<y.length;j++)if(S=y[j].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=y[j];break}for(j+=1;j<y.length;j++){if(S=y[j].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=y[j]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(y){return y.length=0,!0}function l(y,x,S){if(y.length){const j=s(y);if(j!=="")x.push(j);else return S.error=!0,!1;y.length=0}return!0}function c(y){let x=0;const S={error:!1,address:"",zone:""},j=[],E=[];let C=!1,_=!1,I=l;for(let T=0;T<y.length;T++){const N=y[T];if(!(N==="["||N==="]"))if(N===":"){if(C===!0&&(_=!0),!I(E,j,S))break;if(++x>7){S.error=!0;break}T>0&&y[T-1]===":"&&(C=!0),j.push(":");continue}else if(N==="%"){if(!I(E,j,S))break;I=a}else{E.push(N);continue}}return E.length&&(I===a?S.zone=E.join(""):_?j.push(E.join("")):j.push(s(E))),S.address=j.join(""),S}function u(y){if(d(y,":")<2)return{host:y,isIPV6:!1};const x=c(y);if(x.error)return{host:y,isIPV6:!1};{let S=x.address,j=x.address;return x.zone&&(S+="%"+x.zone,j+="%25"+x.zone),{host:S,isIPV6:!0,escapedHost:j}}}function d(y,x){let S=0;for(let j=0;j<y.length;j++)y[j]===x&&S++;return S}function m(y){let x=y;const S=[];let j=-1,E=0;for(;E=x.length;){if(E===1){if(x===".")break;if(x==="/"){S.push("/");break}else{S.push(x);break}}else if(E===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&(x[1]==="."||x[1]==="/")){S.push("/");break}}else if(E===3&&x==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),S.length!==0&&S.pop();continue}}if((j=x.indexOf("/",1))===-1){S.push(x);break}else S.push(x.slice(0,j)),x=x.slice(j)}return S.join("")}const g={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(y,x){const S=x?p:f;return S.lastIndex=0,y.replace(S,j=>g[j])}function v(y,x=!1){if(y.indexOf("%")===-1)return y;let S="";for(let j=0;j<y.length;j++){if(y[j]==="%"&&j+2<y.length){const E=y.slice(j+1,j+3);if(n(E)){const C=E.toUpperCase(),_=String.fromCharCode(parseInt(C,16));x&&r(_)?S+=_:S+="%"+C,j+=2;continue}}S+=y[j]}return S}function w(y){let x="";for(let S=0;S<y.length;S++){if(y[S]==="%"&&S+2<y.length){const j=y.slice(S+1,S+3);if(n(j)){const E=j.toUpperCase(),C=String.fromCharCode(parseInt(E,16));C!=="."&&r(C)?x+=C:x+="%"+E,S+=2;continue}}i(y[S])?x+=y[S]:x+=escape(y[S])}return x}function A(y){let x="";for(let S=0;S<y.length;S++){if(y[S]==="%"&&S+2<y.length){const j=y.slice(S+1,S+3);if(n(j)){x+="%"+j.toUpperCase(),S+=2;continue}}x+=escape(y[S])}return x}function O(y){const x=[];if(y.userinfo!==void 0&&(x.push(y.userinfo),x.push("@")),y.host!==void 0){let S=unescape(y.host);if(!e(S)){const j=u(S);j.isIPV6===!0?S=`[${j.escapedHost}]`:S=b(S,!1)}x.push(S)}return(typeof y.port=="number"||typeof y.port=="string")&&(x.push(":"),x.push(String(y.port))),x.length?x.join(""):void 0}return ri={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:b,normalizePercentEncoding:v,normalizePathEncoding:w,escapePreservingEscapes:A,removeDotSegments:m,isIPv4:e,isUUID:t,normalizeIPv6:u,stringArrayToHexStripped:s},ri}var ii,bo;function Sm(){if(bo)return ii;bo=1;const{isUUID:t}=ll(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(y){return n.indexOf(y)!==-1}function i(y){return y.secure===!0?!0:y.secure===!1?!1:y.scheme?y.scheme.length===3&&(y.scheme[0]==="w"||y.scheme[0]==="W")&&(y.scheme[1]==="s"||y.scheme[1]==="S")&&(y.scheme[2]==="s"||y.scheme[2]==="S"):!1}function s(y){return y.host||(y.error=y.error||"HTTP URIs must have a host."),y}function o(y){const x=String(y.scheme).toLowerCase()==="https";return(y.port===(x?443:80)||y.port==="")&&(y.port=void 0),y.path||(y.path="/"),y}function a(y){return y.secure=i(y),y.resourceName=(y.path||"/")+(y.query?"?"+y.query:""),y.path=void 0,y.query=void 0,y}function l(y){if((y.port===(i(y)?443:80)||y.port==="")&&(y.port=void 0),typeof y.secure=="boolean"&&(y.scheme=y.secure?"wss":"ws",y.secure=void 0),y.resourceName){const[x,S]=y.resourceName.split("?");y.path=x&&x!=="/"?x:void 0,y.query=S,y.resourceName=void 0}return y.fragment=void 0,y}function c(y,x){if(!y.path)return y.error="URN can not be parsed",y;const S=y.path.match(e);if(S){const j=x.scheme||y.scheme||"urn";y.nid=S[1].toLowerCase(),y.nss=S[2];const E=`${j}:${x.nid||y.nid}`,C=O(E);y.path=void 0,C&&(y=C.parse(y,x))}else y.error=y.error||"URN can not be parsed.";return y}function u(y,x){if(y.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=x.scheme||y.scheme||"urn",j=y.nid.toLowerCase(),E=`${S}:${x.nid||j}`,C=O(E);C&&(y=C.serialize(y,x));const _=y,I=y.nss;return _.path=`${j||x.nid}:${I}`,x.skipEscape=!0,_}function d(y,x){const S=y;return S.uuid=S.nss,S.nss=void 0,!x.tolerant&&(!S.uuid||!t(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(y){const x=y;return x.nss=(y.uuid||"").toLowerCase(),x}const g={scheme:"http",domainHost:!0,parse:s,serialize:o},f={scheme:"https",domainHost:g.domainHost,parse:s,serialize:o},p={scheme:"ws",domainHost:!0,parse:a,serialize:l},b={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize},A={http:g,https:f,ws:p,wss:b,urn:{scheme:"urn",parse:c,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(A,null);function O(y){return y&&(A[y]||A[y.toLowerCase()])||void 0}return ii={wsIsSecure:i,SCHEMES:A,isValidSchemeName:r,getSchemeHandler:O},ii}var xo;function wm(){if(xo)return _n.exports;xo=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=ll(),{SCHEMES:c,getSchemeHandler:u}=Sm();function d(j,E){return typeof j=="string"?j=O(j,E):typeof j=="object"&&(j=A(p(j,E),E)),j}function m(j,E,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=g(A(j,_),A(E,_),_,!0);return _.skipEscape=!0,p(I,_)}function g(j,E,C,_){const I={};return _||(j=A(p(j,C),C),E=A(p(E,C),C)),C=C||{},!C.tolerant&&E.scheme?(I.scheme=E.scheme,I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.userinfo!==void 0||E.host!==void 0||E.port!==void 0?(I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.path?(E.path[0]==="/"?I.path=e(E.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?I.path="/"+E.path:j.path?I.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+E.path:I.path=E.path,I.path=e(I.path)),I.query=E.query):(I.path=j.path,E.query!==void 0?I.query=E.query:I.query=j.query),I.userinfo=j.userinfo,I.host=j.host,I.port=j.port),I.scheme=j.scheme),I.fragment=E.fragment,I}function f(j,E,C){const _=x(j,C),I=x(E,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(j,E){const C={host:j.host,scheme:j.scheme,userinfo:j.userinfo,port:j.port,path:j.path,query:j.query,nid:j.nid,nss:j.nss,uuid:j.uuid,fragment:j.fragment,reference:j.reference,resourceName:j.resourceName,secure:j.secure,error:""},_=Object.assign({},E),I=[],T=u(_.scheme||C.scheme);T&&T.serialize&&T.serialize(C,_),C.path!==void 0&&(_.skipEscape?C.path=r(C.path):(C.path=s(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),_.reference!=="suffix"&&C.scheme&&I.push(C.scheme,":");const N=n(C);if(N!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(N),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let F=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(F=e(F)),N===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),I.push(F)}return C.query!==void 0&&I.push("?",C.query),C.fragment!==void 0&&I.push("#",C.fragment),I.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(j,E){if(E[2]!==void 0&&j.path&&j.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof j.port=="number"&&(j.port<0||j.port>65535))return"URI port is malformed."}function w(j,E){const C=Object.assign({},E),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let I=!1,T=!1;C.reference==="suffix"&&(C.scheme?j=C.scheme+":"+j:j="//"+j);const N=j.match(b);if(N){_.scheme=N[1],_.userinfo=N[3],_.host=N[4],_.port=parseInt(N[5],10),_.path=N[6]||"",_.query=N[7],_.fragment=N[8],isNaN(_.port)&&(_.port=N[5]);const F=v(_,N);if(F!==void 0&&(_.error=_.error||F,I=!0),_.host)if(a(_.host)===!1){const B=t(_.host);_.host=B.host.toLowerCase(),T=B.isIPV6}else T=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==_.reference&&(_.error=_.error||"URI is not a "+C.reference+" reference.");const $=u(C.scheme||_.scheme);if(!C.unicodeSupport&&(!$||!$.unicodeSupport)&&_.host&&(C.domainHost||$&&$.domainHost)&&T===!1&&l(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(R){_.error=_.error||"Host's domain name can not be converted to ASCII: "+R}if((!$||$&&!$.skipNormalize)&&(j.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=o(unescape(_.host),T))),_.path&&(_.path=i(_.path)),_.fragment))try{_.fragment=encodeURI(decodeURIComponent(_.fragment))}catch{_.error=_.error||"URI malformed"}$&&$.parse&&$.parse(_,C)}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:I}}function A(j,E){return w(j,E).parsed}function O(j,E){return y(j,E).normalized}function y(j,E){const{parsed:C,malformedAuthorityOrPort:_}=w(j,E);return{normalized:_?j:p(C,E),malformedAuthorityOrPort:_}}function x(j,E){if(typeof j=="string"){const{normalized:C,malformedAuthorityOrPort:_}=y(j,E);return _?void 0:C}if(typeof j=="object")return p(j,E)}const S={SCHEMES:c,normalize:d,resolve:m,resolveComponent:g,equal:f,serialize:p,parse:A};return _n.exports=S,_n.exports.default=S,_n.exports.fastUri=S,_n.exports}var jm=wm();const hs=ns(jm);var In={},vo;function Om(){if(vo)return In;vo=1;var t=/~/,e=/~[01]/g;function n(c){switch(c){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+c)}function r(c){return t.test(c)?c.replace(e,n):c}function i(c,u,d){for(var m,g,f=1,p=u.length;f<p;){if(u[f]==="constructor"||u[f]==="prototype"||u[f]==="__proto__")return c;if(m=r(u[f++]),g=p>f,typeof c[m]>"u"&&(Array.isArray(c)&&m==="-"&&(m=c.length),g&&(u[f]!==""&&u[f]<1/0||u[f]==="-"?c[m]=[]:c[m]={})),!g)break;c=c[m]}var b=c[m];return d===void 0?delete c[m]:c[m]=d,b}function s(c){if(typeof c=="string"){if(c=c.split("/"),c[0]==="")return c;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(c)){for(const u of c)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return c}throw new Error("Invalid JSON pointer.")}function o(c,u){if(typeof c!="object")throw new Error("Invalid input object.");u=s(u);var d=u.length;if(d===1)return c;for(var m=1;m<d;){if(c=c[r(u[m++])],d===m)return c;if(typeof c!="object"||c===null)return}}function a(c,u,d){if(typeof c!="object")throw new Error("Invalid input object.");if(u=s(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(c,u,d)}function l(c){var u=s(c);return{get:function(d){return o(d,u)},set:function(d,m){return a(d,u,m)}}}return In.get=o,In.set=a,In.compile=l,In}var Am=Om();const si=ns(Am);var Em=Object.prototype;function Br(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Em;return t===n}var Cm=rl(Object.keys,Object),_m=Object.prototype,Im=_m.hasOwnProperty;function cl(t){if(!Br(t))return Cm(t);var e=[];for(var n in Object(t))Im.call(t,n)&&n!="constructor"&&e.push(n);return e}var Li=zt(nt,"DataView"),Bi=zt(nt,"Promise"),an=zt(nt,"Set"),qi=zt(nt,"WeakMap"),So="[object Map]",Tm="[object Object]",wo="[object Promise]",jo="[object Set]",Oo="[object WeakMap]",Ao="[object DataView]",Nm=Vt(Li),Fm=Vt(Gn),Pm=Vt(Bi),$m=Vt(an),Dm=Vt(qi),ke=ut;(Li&&ke(new Li(new ArrayBuffer(1)))!=Ao||Gn&&ke(new Gn)!=So||Bi&&ke(Bi.resolve())!=wo||an&&ke(new an)!=jo||qi&&ke(new qi)!=Oo)&&(ke=function(t){var e=ut(t),n=e==Tm?t.constructor:void 0,r=n?Vt(n):"";if(r)switch(r){case Nm:return Ao;case Fm:return So;case Pm:return wo;case $m:return jo;case Dm:return Oo}return e});var km="[object Arguments]";function Eo(t){return Ue(t)&&ut(t)==km}var ul=Object.prototype,Rm=ul.hasOwnProperty,Mm=ul.propertyIsEnumerable,cn=Eo((function(){return arguments})())?Eo:function(t){return Ue(t)&&Rm.call(t,"callee")&&!Mm.call(t,"callee")},Um=9007199254740991;function ms(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Um}function Ht(t){return t!=null&&ms(t.length)&&!nr(t)}function Lm(){return!1}var dl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Co=dl&&typeof module=="object"&&module&&!module.nodeType&&module,Bm=Co&&Co.exports===dl,_o=Bm?nt.Buffer:void 0,qm=_o?_o.isBuffer:void 0,Mt=qm||Lm,Vm="[object Arguments]",zm="[object Array]",Wm="[object Boolean]",Hm="[object Date]",Km="[object Error]",Gm="[object Function]",Ym="[object Map]",Jm="[object Number]",Zm="[object Object]",Xm="[object RegExp]",Qm="[object Set]",ep="[object String]",tp="[object WeakMap]",np="[object ArrayBuffer]",rp="[object DataView]",ip="[object Float32Array]",sp="[object Float64Array]",op="[object Int8Array]",ap="[object Int16Array]",lp="[object Int32Array]",cp="[object Uint8Array]",up="[object Uint8ClampedArray]",dp="[object Uint16Array]",fp="[object Uint32Array]",me={};me[ip]=me[sp]=me[op]=me[ap]=me[lp]=me[cp]=me[up]=me[dp]=me[fp]=!0;me[Vm]=me[zm]=me[np]=me[Wm]=me[rp]=me[Hm]=me[Km]=me[Gm]=me[Ym]=me[Jm]=me[Zm]=me[Xm]=me[Qm]=me[ep]=me[tp]=!1;function hp(t){return Ue(t)&&ms(t.length)&&!!me[ut(t)]}function ps(t){return function(e){return t(e)}}var fl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ln=fl&&typeof module=="object"&&module&&!module.nodeType&&module,mp=Ln&&Ln.exports===fl,oi=mp&&tl.process,un=(function(){try{var t=Ln&&Ln.require&&Ln.require("util").types;return t||oi&&oi.binding&&oi.binding("util")}catch{}})(),Io=un&&un.isTypedArray,ir=Io?ps(Io):hp,pp="[object Map]",gp="[object Set]",yp=Object.prototype,bp=yp.hasOwnProperty;function ge(t){if(t==null)return!0;if(Ht(t)&&(we(t)||typeof t=="string"||typeof t.splice=="function"||Mt(t)||ir(t)||cn(t)))return!t.length;var e=ke(t);if(e==pp||e==gp)return!t.size;if(Br(t))return!cl(t).length;for(var n in t)if(bp.call(t,n))return!1;return!0}function xp(){this.__data__=new dt,this.size=0}function vp(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Sp(t){return this.__data__.get(t)}function wp(t){return this.__data__.has(t)}var jp=200;function Op(t,e){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!Gn||r.length<jp-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ft(r)}return n.set(t,e),this.size=n.size,this}function We(t){var e=this.__data__=new dt(t);this.size=e.size}We.prototype.clear=xp;We.prototype.delete=vp;We.prototype.get=Sp;We.prototype.has=wp;We.prototype.set=Op;function gs(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Nr=(function(){try{var t=zt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function ys(t,e,n){e=="__proto__"&&Nr?Nr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Ap=Object.prototype,Ep=Ap.hasOwnProperty;function bs(t,e,n){var r=t[e];(!(Ep.call(t,e)&&rr(r,n))||n===void 0&&!(e in t))&&ys(t,e,n)}function xn(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),i?ys(n,a,l):bs(n,a,l)}return n}function hl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Cp=9007199254740991,_p=/^(?:0|[1-9]\d*)$/;function qr(t,e){var n=typeof t;return e=e??Cp,!!e&&(n=="number"||n!="symbol"&&_p.test(t))&&t>-1&&t%1==0&&t<e}var Ip=Object.prototype,Tp=Ip.hasOwnProperty;function ml(t,e){var n=we(t),r=!n&&cn(t),i=!n&&!r&&Mt(t),s=!n&&!r&&!i&&ir(t),o=n||r||i||s,a=o?hl(t.length,String):[],l=a.length;for(var c in t)(e||Tp.call(t,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qr(c,l)))&&a.push(c);return a}function ze(t){return Ht(t)?ml(t):cl(t)}function Np(t,e){return t&&xn(e,ze(e),t)}function Fp(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Pp=Object.prototype,$p=Pp.hasOwnProperty;function Dp(t){if(!ne(t))return Fp(t);var e=Br(t),n=[];for(var r in t)r=="constructor"&&(e||!$p.call(t,r))||n.push(r);return n}function sr(t){return Ht(t)?ml(t,!0):Dp(t)}function kp(t,e){return t&&xn(e,sr(e),t)}var pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,To=pl&&typeof module=="object"&&module&&!module.nodeType&&module,Rp=To&&To.exports===pl,No=Rp?nt.Buffer:void 0,Fo=No?No.allocUnsafe:void 0;function gl(t,e){if(e)return t.slice();var n=t.length,r=Fo?Fo(n):new t.constructor(n);return t.copy(r),r}function xs(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Mp(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function yl(){return[]}var Up=Object.prototype,Lp=Up.propertyIsEnumerable,Po=Object.getOwnPropertySymbols,vs=Po?function(t){return t==null?[]:(t=Object(t),Mp(Po(t),function(e){return Lp.call(t,e)}))}:yl;function Bp(t,e){return xn(t,vs(t),e)}function Ss(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var qp=Object.getOwnPropertySymbols,bl=qp?function(t){for(var e=[];t;)Ss(e,vs(t)),t=Rr(t);return e}:yl;function Vp(t,e){return xn(t,bl(t),e)}function xl(t,e,n){var r=e(t);return we(t)?r:Ss(r,n(t))}function Vi(t){return xl(t,ze,vs)}function ws(t){return xl(t,sr,bl)}var zp=Object.prototype,Wp=zp.hasOwnProperty;function Hp(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Wp.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Fr=nt.Uint8Array;function js(t){var e=new t.constructor(t.byteLength);return new Fr(e).set(new Fr(t)),e}function Kp(t,e){var n=e?js(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Gp=/\w*$/;function Yp(t){var e=new t.constructor(t.source,Gp.exec(t));return e.lastIndex=t.lastIndex,e}var $o=Me?Me.prototype:void 0,Do=$o?$o.valueOf:void 0;function Jp(t){return Do?Object(Do.call(t)):{}}function vl(t,e){var n=e?js(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Zp="[object Boolean]",Xp="[object Date]",Qp="[object Map]",eg="[object Number]",tg="[object RegExp]",ng="[object Set]",rg="[object String]",ig="[object Symbol]",sg="[object ArrayBuffer]",og="[object DataView]",ag="[object Float32Array]",lg="[object Float64Array]",cg="[object Int8Array]",ug="[object Int16Array]",dg="[object Int32Array]",fg="[object Uint8Array]",hg="[object Uint8ClampedArray]",mg="[object Uint16Array]",pg="[object Uint32Array]";function gg(t,e,n){var r=t.constructor;switch(e){case sg:return js(t);case Zp:case Xp:return new r(+t);case og:return Kp(t,n);case ag:case lg:case cg:case ug:case dg:case fg:case hg:case mg:case pg:return vl(t,n);case Qp:return new r;case eg:case rg:return new r(t);case tg:return Yp(t);case ng:return new r;case ig:return Jp(t)}}var ko=Object.create,Sl=(function(){function t(){}return function(e){if(!ne(e))return{};if(ko)return ko(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function wl(t){return typeof t.constructor=="function"&&!Br(t)?Sl(Rr(t)):{}}var yg="[object Map]";function bg(t){return Ue(t)&&ke(t)==yg}var Ro=un&&un.isMap,xg=Ro?ps(Ro):bg,vg="[object Set]";function Sg(t){return Ue(t)&&ke(t)==vg}var Mo=un&&un.isSet,wg=Mo?ps(Mo):Sg,jg=1,Og=2,Ag=4,jl="[object Arguments]",Eg="[object Array]",Cg="[object Boolean]",_g="[object Date]",Ig="[object Error]",Ol="[object Function]",Tg="[object GeneratorFunction]",Ng="[object Map]",Fg="[object Number]",Al="[object Object]",Pg="[object RegExp]",$g="[object Set]",Dg="[object String]",kg="[object Symbol]",Rg="[object WeakMap]",Mg="[object ArrayBuffer]",Ug="[object DataView]",Lg="[object Float32Array]",Bg="[object Float64Array]",qg="[object Int8Array]",Vg="[object Int16Array]",zg="[object Int32Array]",Wg="[object Uint8Array]",Hg="[object Uint8ClampedArray]",Kg="[object Uint16Array]",Gg="[object Uint32Array]",he={};he[jl]=he[Eg]=he[Mg]=he[Ug]=he[Cg]=he[_g]=he[Lg]=he[Bg]=he[qg]=he[Vg]=he[zg]=he[Ng]=he[Fg]=he[Al]=he[Pg]=he[$g]=he[Dg]=he[kg]=he[Wg]=he[Hg]=he[Kg]=he[Gg]=!0;he[Ig]=he[Ol]=he[Rg]=!1;function Bn(t,e,n,r,i,s){var o,a=e&jg,l=e&Og,c=e&Ag;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!ne(t))return t;var u=we(t);if(u){if(o=Hp(t),!a)return xs(t,o)}else{var d=ke(t),m=d==Ol||d==Tg;if(Mt(t))return gl(t,a);if(d==Al||d==jl||m&&!i){if(o=l||m?{}:wl(t),!a)return l?Vp(t,kp(o,t)):Bp(t,Np(o,t))}else{if(!he[d])return i?t:{};o=gg(t,d,a)}}s||(s=new We);var g=s.get(t);if(g)return g;s.set(t,o),wg(t)?t.forEach(function(b){o.add(Bn(b,e,n,b,t,s))}):xg(t)&&t.forEach(function(b,v){o.set(v,Bn(b,e,n,v,t,s))});var f=c?l?ws:Vi:l?sr:ze,p=u?void 0:f(t);return gs(p||t,function(b,v){p&&(v=b,b=t[v]),bs(o,v,Bn(b,e,n,v,t,s))}),o}function El(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Yg(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function Jg(t,e){return e.length<2?t:Lr(t,Yg(e,0,-1))}var Zg=Object.prototype,Xg=Zg.hasOwnProperty;function Cl(t,e){e=bn(e,t);var n=-1,r=e.length;if(!r)return!0;for(;++n<r;){var i=Ct(e[n]);if(i==="__proto__"&&!Xg.call(t,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=Jg(t,e);return s==null||delete s[Ct(El(e))]}function Qg(t){return Et(t)?void 0:t}var Uo=Me?Me.isConcatSpreadable:void 0;function ey(t){return we(t)||cn(t)||!!(Uo&&t&&t[Uo])}function or(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ey),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?or(a,e-1,n,r,i):Ss(i,a):r||(i[i.length]=a)}return i}function zi(t){var e=t==null?0:t.length;return e?or(t,1):[]}function ty(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Lo=Math.max;function _l(t,e,n){return e=Lo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Lo(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),ty(t,this,a)}}function ny(t){return function(){return t}}function Vr(t){return t}var ry=Nr?function(t,e){return Nr(t,"toString",{configurable:!0,enumerable:!1,value:ny(e),writable:!0})}:Vr,iy=800,sy=16,oy=Date.now;function ay(t){var e=0,n=0;return function(){var r=oy(),i=sy-(r-n);if(n=r,i>0){if(++e>=iy)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Il=ay(ry);function Tl(t){return Il(_l(t,void 0,zi),t+"")}var ly=1,cy=2,uy=4,dn=Tl(function(t,e){var n={};if(t==null)return n;var r=!1;e=yn(e,function(s){return s=bn(s,t),r||(r=s.length>1),s}),xn(t,ws(t),n),r&&(n=Bn(n,ly|cy|uy,Qg));for(var i=e.length;i--;)Cl(n,e[i]);return n});function Pr(t,e){if(de in t&&hs.equal(t[de],e))return t;for(const n of Object.values(t))if(Array.isArray(n)){for(const r of n)if(ne(r)){const i=Pr(r,e);if(i!==void 0)return i}}else if(ne(n)){const r=Pr(n,e);if(r!==void 0)return r}}function Wi(t,e){const n=D(t,de,e);let r=t;ue in r&&(r={...r,[ue]:hs.resolve(n,r[ue])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>ne(o)?Wi(o,n):o)}:ne(s)&&(r={...r,[i]:Wi(s,n)});return r}function Os(t,e){const n=e[t];return[dn(e,[t]),n]}function Nl(t,e={},n=[],r=D(e,[de])){const i=t||"";let s,o=r;if(i.startsWith("#")){const l=decodeURIComponent(i.substring(1));o===void 0||de in e&&e[de]===o?s=si.get(e,l):e[Pn]===vr&&(s=Pr(e,o.replace(/\/$/,"")),s!==void 0&&(s=si.get(s,l)))}else if(e[Pn]===vr){const l=o?hs.resolve(o,i):i,[c,...u]=l.replace(/#\/?$/,"").split("#");s=Pr(e,c.replace(/\/$/,"")),s!==void 0&&(o=s[de],ge(u)||(s=si.get(s,decodeURIComponent(u.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${t}.`);const a=s[ue];if(a){if(n.includes(a)){if(n.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[d,...m]=n,g=[...m,i,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${g}`)}const[l,c]=Os(ue,s),u=Nl(c,e,[...n,i],o);return Object.keys(l).length>0?e[Pn]===Vf||e[Pn]===vr?{[At]:[l,u]}:{...l,...u}:u}return s}function Yn(t,e={},n=D(e,[de])){return Nl(t,e,[],n)}var dy=Object.prototype,fy=dy.hasOwnProperty;function hy(t,e){return t!=null&&fy.call(t,e)}function Fl(t,e,n){e=bn(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var o=Ct(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&ms(i)&&qr(o,i)&&(we(t)||cn(t)))}function X(t,e){return t!=null&&Fl(t,e,hy)}var my="[object String]";function _t(t){return typeof t=="string"||!we(t)&&Ue(t)&&ut(t)==my}function He(t){let e;const n=D(t,Uf);return _t(n)?e=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),e}var py=1/0;function gy(t){var e=t==null?0:t.length;return e?or(t,py):[]}function Hi(t,e,n){(n!==void 0&&!rr(t[e],n)||n===void 0&&!(e in t))&&ys(t,e,n)}function yy(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return e}}var Pl=yy();function Jn(t){return Ue(t)&&Ht(t)}function Ki(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function by(t){return xn(t,sr(t))}function xy(t,e,n,r,i,s,o){var a=Ki(t,n),l=Ki(e,n),c=o.get(l);if(c){Hi(t,n,c);return}var u=s?s(a,l,n+"",t,e,o):void 0,d=u===void 0;if(d){var m=we(l),g=!m&&Mt(l),f=!m&&!g&&ir(l);u=l,m||g||f?we(a)?u=a:Jn(a)?u=xs(a):g?(d=!1,u=gl(l,!0)):f?(d=!1,u=vl(l,!0)):u=[]:Et(l)||cn(l)?(u=a,cn(a)?u=by(a):(!ne(a)||nr(a))&&(u=wl(l))):d=!1}d&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),Hi(t,n,u)}function $l(t,e,n,r,i){t!==e&&Pl(e,function(s,o){if(i||(i=new We),ne(s))xy(t,e,o,n,$l,r,i);else{var a=r?r(Ki(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),Hi(t,o,a)}},sr)}function zr(t,e){return Il(_l(t,e,Vr),t+"")}function vy(t,e,n){if(!ne(n))return!1;var r=typeof e;return(r=="number"?Ht(n)&&qr(e,n.length):r=="string"&&e in n)?rr(n[e],t):!1}function Sy(t){return zr(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&vy(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,s)}return e})}var wy=Sy(function(t,e,n){$l(t,e,n)});function As(t,e,n,r){if(!ne(t))return t;e=bn(e,t);for(var i=-1,s=e.length,o=s-1,a=t;a!=null&&++i<s;){var l=Ct(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=o){var u=a[l];c=r?r(u,l,a):void 0,c===void 0&&(c=ne(u)?u:qr(e[i+1])?[]:{})}bs(a,l,c),a=a[l]}return t}function ce(t,e,n){return t==null?t:As(t,e,n)}function Dl(t){return typeof t=="function"?t:Vr}var jy=/\s/;function Oy(t){for(var e=t.length;e--&&jy.test(t.charAt(e)););return e}var Ay=/^\s+/;function Ey(t){return t&&t.slice(0,Oy(t)+1).replace(Ay,"")}var Bo=NaN,Cy=/^[-+]0x[0-9a-f]+$/i,_y=/^0b[01]+$/i,Iy=/^0o[0-7]+$/i,Ty=parseInt;function Ny(t){if(typeof t=="number")return t;if(tr(t))return Bo;if(ne(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ne(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ey(t);var n=_y.test(t);return n||Iy.test(t)?Ty(t.slice(2),n?2:8):Cy.test(t)?Bo:+t}var qo=1/0,Fy=17976931348623157e292;function Py(t){if(!t)return t===0?t:0;if(t=Ny(t),t===qo||t===-qo){var e=t<0?-1:1;return e*Fy}return t===t?t:0}function kl(t){var e=Py(t),n=e%1;return e===e?n?e-n:e:0}var $y=9007199254740991,ai=4294967295,Dy=Math.min;function Rl(t,e){if(t=kl(t),t<1||t>$y)return[];var n=ai,r=Dy(t,ai);e=Dl(e),t-=ai;for(var i=hl(r,e);++n<t;)e(n);return i}function Ml(t,e){return t&&Pl(t,e,ze)}var ky="__lodash_hash_undefined__";function Ry(t){return this.__data__.set(t,ky),this}function My(t){return this.__data__.has(t)}function Ut(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new ft;++e<n;)this.add(t[e])}Ut.prototype.add=Ut.prototype.push=Ry;Ut.prototype.has=My;function Uy(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Zn(t,e){return t.has(e)}var Ly=1,By=2;function Ul(t,e,n,r,i,s){var o=n&Ly,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(t),u=s.get(e);if(c&&u)return c==e&&u==t;var d=-1,m=!0,g=n&By?new Ut:void 0;for(s.set(t,e),s.set(e,t);++d<a;){var f=t[d],p=e[d];if(r)var b=o?r(p,f,d,e,t,s):r(f,p,d,t,e,s);if(b!==void 0){if(b)continue;m=!1;break}if(g){if(!Uy(e,function(v,w){if(!Zn(g,w)&&(f===v||i(f,v,n,r,s)))return g.push(w)})){m=!1;break}}else if(!(f===p||i(f,p,n,r,s))){m=!1;break}}return s.delete(t),s.delete(e),m}function qy(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Es(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Vy=1,zy=2,Wy="[object Boolean]",Hy="[object Date]",Ky="[object Error]",Gy="[object Map]",Yy="[object Number]",Jy="[object RegExp]",Zy="[object Set]",Xy="[object String]",Qy="[object Symbol]",eb="[object ArrayBuffer]",tb="[object DataView]",Vo=Me?Me.prototype:void 0,li=Vo?Vo.valueOf:void 0;function nb(t,e,n,r,i,s,o){switch(n){case tb:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case eb:return!(t.byteLength!=e.byteLength||!s(new Fr(t),new Fr(e)));case Wy:case Hy:case Yy:return rr(+t,+e);case Ky:return t.name==e.name&&t.message==e.message;case Jy:case Xy:return t==e+"";case Gy:var a=qy;case Zy:var l=r&Vy;if(a||(a=Es),t.size!=e.size&&!l)return!1;var c=o.get(t);if(c)return c==e;r|=zy,o.set(t,e);var u=Ul(a(t),a(e),r,i,s,o);return o.delete(t),u;case Qy:if(li)return li.call(t)==li.call(e)}return!1}var rb=1,ib=Object.prototype,sb=ib.hasOwnProperty;function ob(t,e,n,r,i,s){var o=n&rb,a=Vi(t),l=a.length,c=Vi(e),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var m=a[d];if(!(o?m in e:sb.call(e,m)))return!1}var g=s.get(t),f=s.get(e);if(g&&f)return g==e&&f==t;var p=!0;s.set(t,e),s.set(e,t);for(var b=o;++d<l;){m=a[d];var v=t[m],w=e[m];if(r)var A=o?r(w,v,m,e,t,s):r(v,w,m,t,e,s);if(!(A===void 0?v===w||i(v,w,n,r,s):A)){p=!1;break}b||(b=m=="constructor")}if(p&&!b){var O=t.constructor,y=e.constructor;O!=y&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof y=="function"&&y instanceof y)&&(p=!1)}return s.delete(t),s.delete(e),p}var ab=1,zo="[object Arguments]",Wo="[object Array]",fr="[object Object]",lb=Object.prototype,Ho=lb.hasOwnProperty;function cb(t,e,n,r,i,s){var o=we(t),a=we(e),l=o?Wo:ke(t),c=a?Wo:ke(e);l=l==zo?fr:l,c=c==zo?fr:c;var u=l==fr,d=c==fr,m=l==c;if(m&&Mt(t)){if(!Mt(e))return!1;o=!0,u=!1}if(m&&!u)return s||(s=new We),o||ir(t)?Ul(t,e,n,r,i,s):nb(t,e,l,n,r,i,s);if(!(n&ab)){var g=u&&Ho.call(t,"__wrapped__"),f=d&&Ho.call(e,"__wrapped__");if(g||f){var p=g?t.value():t,b=f?e.value():e;return s||(s=new We),i(p,b,n,r,s)}}return m?(s||(s=new We),ob(t,e,n,r,i,s)):!1}function Wr(t,e,n,r,i){return t===e?!0:t==null||e==null||!Ue(t)&&!Ue(e)?t!==t&&e!==e:cb(t,e,n,r,Wr,i)}var ub=1,db=2;function fb(t,e,n,r){var i=n.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<s;){o=n[i];var a=o[0],l=t[a],c=o[1];if(o[2]){if(l===void 0&&!(a in t))return!1}else{var u=new We,d;if(!(d===void 0?Wr(c,l,ub|db,r,u):d))return!1}}return!0}function Ll(t){return t===t&&!ne(t)}function hb(t){for(var e=ze(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ll(i)]}return e}function Bl(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function mb(t){var e=hb(t);return e.length==1&&e[0][2]?Bl(e[0][0],e[0][1]):function(n){return n===t||fb(n,t,e)}}function pb(t,e){return t!=null&&e in Object(t)}function ql(t,e){return t!=null&&Fl(t,e,pb)}var gb=1,yb=2;function bb(t,e){return us(t)&&Ll(e)?Bl(Ct(t),e):function(n){var r=D(n,t);return r===void 0&&r===e?ql(n,t):Wr(e,r,gb|yb)}}function xb(t){return function(e){return e?.[t]}}function vb(t){return function(e){return Lr(e,t)}}function Sb(t){return us(t)?xb(Ct(t)):vb(t)}function Cs(t){return typeof t=="function"?t:t==null?Vr:typeof t=="object"?we(t)?bb(t[0],t[1]):mb(t):Sb(t)}function wb(t,e,n){var r=we(t),i=r||Mt(t)||ir(t);if(e=Cs(e),n==null){var s=t&&t.constructor;i?n=r?new s:[]:ne(t)?n=nr(s)?Sl(Rr(t)):{}:n={}}return(i?gs:Ml)(t,function(o,a,l){return e(n,o,a,l)}),n}function jb(t,e,n,r){for(var i=t.length,s=n+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function Ob(t){return t!==t}function Ab(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Vl(t,e,n){return e===e?Ab(t,e,n):jb(t,Ob,n)}function _s(t,e){var n=t==null?0:t.length;return!!n&&Vl(t,e,0)>-1}function Sr(){}var Eb=1/0,Cb=an&&1/Es(new an([,-0]))[1]==Eb?function(t){return new an(t)}:Sr,_b=200;function zl(t,e,n){var r=-1,i=_s,s=t.length,o=!0,a=[],l=a;if(s>=_b){var c=Cb(t);if(c)return Es(c);o=!1,i=Zn,l=new Ut}else l=a;e:for(;++r<s;){var u=t[r],d=u;if(u=u!==0?u:0,o&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function Wl(t){return t&&t.length?zl(t):[]}function Xn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":t==null?"null":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?"number":typeof t=="object"?"object":"string"}var Ib=zr(function(t){return zl(or(t,1,Jn,!0))});function Le(t){let{type:e}=t;return!e&&t.const?Xn(t.const):!e&&t.enum?"string":!e&&(t.properties||t.additionalProperties||t.patternProperties)?"object":(Array.isArray(e)&&(e.length===2&&e.includes("null")?e=e.find(n=>n!=="null"):e=e[0]),e)}function lt(t,e){const n={...t};return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];return t&&i in t&&V(o)?r[i]=lt(s,o):t&&e&&(Le(t)==="object"||Le(e)==="object")&&i===Ja&&Array.isArray(s)&&Array.isArray(o)?r[i]=Ib(s,o):r[i]=o,r},n)}var Tb="[object Number]";function Hl(t){return typeof t=="number"||Ue(t)&&ut(t)==Tb}function Kl(t,e,n){var r;if(t&&n){const i=D(t,n);if(i===void 0)return;for(let s=0;s<e.length;s+=1){const o=e[s],a=D(o,[oe,n],{});if(a.type!=="object"&&a.type!=="array"&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function $r(t,e,n,r,i){if(e===void 0)return 0;const s=Kl(e,n,i);if(Hl(s))return s;for(let o=0;o<n.length;o+=1){const a=n[o];if(i&&X(a,[oe,i])){const l=D(e,i),c=D(a,[oe,i],{});if(t.isValid(c,l,r))return o}else if(a[oe]){const l={anyOf:Object.keys(a[oe]).map(u=>({required:[u]}))};let c;if(a.anyOf){const{...u}=a;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),c=u}else c={...a,...l};if(delete c.required,t.isValid(c,e,r))return o}else if(t.isValid(a,e,r))return o}return 0}const Nb=Object.prototype;function $n(t){for(const e in t)if(Nb.hasOwnProperty.call(t,e))return!1;return!0}const Fb=["array","boolean","integer","null","number","object","string"];new Set(Fb);const Pb=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Pb);const $b=["items","allOf","oneOf","anyOf"];new Set($b);const Db=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Db);function wr(t){return typeof t=="object"}function Ye(t){return wr(t)?$n(t):t===!0}function rn(t,e){return t<e?-1:t>e?1:0}function ci(t,e){const n=t.length;if(n===0)return e;let r=e.length;if(r===0)return t;if(n<r){const s=t;t=e,e=s,r=n}const i=new Set(t);for(let s=0;s<r;s++)i.add(e[s]);return Array.from(i)}function kb(t,e){const n=[];if(t.length===0||e.length===0)return n;if(t.length>e.length){const i=t;t=e,e=i}const r=new Set(e);for(let i=0;i<t.length&&r.size>0;i++){const s=t[i];r.delete(s)&&n.push(s)}return n}function Ko(t){return t.length===0}function ui(t){return(e,n)=>{const r=e.length-n.length;if(r!==0)return r;for(let i=0;i<e.length;i++)if(e[i]!==n[i]){const s=t(e[i],n[i]);if(s!==0)return s}return 0}}function Gl(t,{threshold:e=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=e){const o=[];let a=0;e:for(let l=0;l<r;l++){const c=n[l];for(let u=0;u<a;u++)if(t(c,o[u])===0)continue e;a=o.push(c)}return o}const i=n.slice().sort(t);let s=0;for(let o=1;o<r;o++)t(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function Rb(t){return(e,n)=>{const r=[];let i=e.length,s=n.length;if(i===0||s===0)return r;if(i>s){const u=e;e=n,n=u;const d=i;i=s,s=d}const o=[...e].sort(t),a=[...n].sort(t);let l=0,c=0;for(;l<i&&c<s;){const u=t(o[l],a[c]);u===0?((r.length===0||t(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,c++):u<0?l++:c++}return r}}function Mb(t,e){return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}const Go=Mb,Yl=()=>0,Ub=t=>t===void 0,Lb=t=>typeof t!="object",Yo={boolean:0,number:1,string:2};function Bb(t,e){const n=typeof t,r=typeof e;return n===r?rn(t,e):Yo[n]-Yo[r]}function qb(t,e){const n=t.length;if(n===0)return e;const r=e.length;if(r===0)return t;if(r>n){const o=t;t=e,e=o}const i=new Set(t),s=e.length;for(let o=0;o<s;o++){const a=e[o];i.has(a)||t.push(a)}return t}function Hr(t,e,n=Yl){return(r,i)=>t(r)?t(i)?n(r,i):-1:t(i)?1:e(r,i)}function en(t){return Hr(Ub,t)}function gt(t,e){return Hr(n=>n===void 0||t(n),e)}function di(t,e){return Hr(Array.isArray,t,e)}const be=en(rn),fi=gt(t=>t===0,(t,e)=>t-e);function Vb({deduplicationCache:t=new WeakMap,sortedKeysCache:e=new WeakMap}={}){const n=Go(e,p=>Object.keys(p).sort());function r(p){return(b,v)=>{const w=n(b),A=n(v),O=Math.min(w.length,A.length);for(let y=0;y<O;y++){const x=rn(w[y],A[y]);if(x!==0)return x}if(w.length!==A.length)return w.length-A.length;for(let y=0;y<O;y++){const x=w[y],S=p(b[x],v[x]);if(S!==0)return S}return 0}}function i(p){const b=ui(p),v=Go(t,Gl(p,{threshold:0}));return(w,A)=>b(v(w),v(A))}const s=i(rn);function o(p,b){if(wr(p)){if(wr(b)){const v=Object.keys(p),w=Object.keys(b),A=qb(v,w),O=A.length;for(let y=0;y<O;y++){const x=A[y];if(p[x]===b[x])continue;const j=(f[x]??a)(p[x],b[x]);if(j!==0)return j}return 0}return b===!0&&$n(p)?0:1}return wr(b)?p===!0&&$n(b)?0:-1:rn(p,b)}const a=en(c),l=Hr(Lb,di(r(a),ui(c)),Bb);function c(p,b){return p===null?-1:b===null?1:l(p,b)}const u=en(o),d=gt($n,r(u)),m=en(i(o)),g=gt(Ye,o),f={$id:be,$comment:be,$defs:d,$ref:be,$schema:be,const:a,contains:u,contentEncoding:be,contentMediaType:be,default:a,definitions:d,description:be,else:u,examples:a,exclusiveMaximum:be,exclusiveMinimum:be,format:be,if:u,maximum:be,maxItems:be,maxLength:be,maxProperties:be,minimum:be,multipleOf:be,not:u,pattern:be,propertyNames:u,readOnly:be,then:u,title:be,writeOnly:be,uniqueItems:gt(p=>p===!1,Yl),minLength:fi,minItems:fi,minProperties:fi,required:gt(Ko,s),enum:gt(Ko,i(c)),type:en((p,b)=>{const v=Array.isArray(p),w=Array.isArray(b);return!v&&!w?rn(p,b):s(v?p:[p],w?b:[b])}),items:gt(p=>!Array.isArray(p)&&Ye(p),di(o,ui(o))),anyOf:m,allOf:m,oneOf:m,properties:d,patternProperties:d,additionalProperties:g,additionalItems:g,dependencies:gt($n,r(en(di(o,s))))};return{compareSchemaValues:c,compareSchemaDefinitions:o}}function Jo(t){return t}const Jl=(t,e)=>t?Jl(e%t,t):e,zb=(t,e)=>Math.abs(t*e)/Jl(t,e);function Wb(t,e){return t===e?t:`^(?=.*(?:${t}))(?=.*(?:${e})).*$`}function hi(t,e,n){const r=t.length,i=e.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=t[s];for(let a=0;a<i;a++)n(o,e[a])}}function mi(t,e){return t||e}function Zo(t){return(e,n)=>{const r={...e},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=e[a]===void 0?n[a]:t(e[a],n[a])}return r}}function Hb(t){const e=new Map;for(const n of t)for(const r of n[0])e.set(r,n[1]);return e}function Nt(t,e,n){n===void 0||Ye(n)?delete t[e]:t[e]=n}const Kb=["properties","patternProperties","additionalProperties"];function Xo(t){const e=Object.keys(t),n=e.length,r=[];for(let i=0;i<n;i++){const s=e[i];r.push({regExp:new RegExp(s),schema:t[s]})}return[r,e]}const Qo=[[],[]];function ea(t,e,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(e))continue;const o=s.schema;if(o===!1)return!0;t.push(o)}return!1}const Gb=["items","additionalItems"],Yb=["if","then","else"];function ta(t,e){return e.if!==void 0&&(t.if=e.if),e.then!==void 0&&(t.then=e.then),e.else!==void 0&&(t.else=e.else),t}function pi(t,e){if(t===e)return t;switch(t){case"number":if(e==="integer")return"integer";case"integer":if(e==="number")return"integer";default:return}}function Ft(t,e,n){return[t,e,n]}function Jb(t){const e=new Map;for(const[n,r,i]of t){const s=o=>{if(!i(o))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(o[n])}, ${r}: ${JSON.stringify(o[r])})`)};for(const o of[[n,r],[r,n]]){let a=e.get(o[0]);a===void 0&&(a=[],e.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return e}const Zb=[Ft("minimum","maximum",t=>t.maximum>=t.minimum),Ft("exclusiveMinimum","maximum",t=>t.maximum>t.exclusiveMinimum),Ft("minimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.minimum),Ft("exclusiveMinimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.exclusiveMinimum),Ft("minLength","maxLength",t=>t.maxLength>=t.minLength),Ft("minItems","maxItems",t=>t.maxItems>=t.minItems),Ft("minProperties","maxProperties",t=>t.maxProperties>=t.minProperties)];function Xb({mergePatterns:t=Wb,isSubRegExp:e=Object.is,intersectJson:n=kb,deduplicateJsonSchemaDef:r=Jo,defaultMerger:i=Jo,assigners:s=[],checks:o=Zb,mergers:a}={}){function l(O){const y=O.length;let x=O[0];for(let S=1;S<y;S++){const j=v(x,O[S]);if(j===!1)return!1;Ye(j)||(x=j)}return x}function c(O,y,x,S,j,E,C){if(O.length=0,x===!1)return!1;if(O.push(x),j!==void 0){if(j===!1)return!1;O.push(j)}if(ea(O,y,E))return!1;const I=O.length<2;if(C===!1){if(I)return;if(ea(O,y,S))return!1}else I&&C!==void 0&&O.push(C);return O.length===1?O[0]:l(O)}function u(O,y,x,S,j,E){const C=x.length;if(C>0&&j!==!1)if(E)Object.assign(O,y);else for(let _=0;_<C;_++){const I=x[_];S.has(I)||(O[I]=v(y[I],j))}return O}const d=(O,{properties:y={},patternProperties:x,additionalProperties:S=!0},{properties:j={},patternProperties:E,additionalProperties:C=!0})=>{const _=Ye(S),I=Ye(C);if(_&&I)return Nt(O,"properties",w(y,j)),Nt(O,"patternProperties",x&&E?w(x,E):x??E),delete O.additionalProperties,O;const T=v(S,C);Nt(O,"additionalProperties",T);const N={},F=Object.keys(y),$=F.length,[R,B]=x?Xo(x):Qo,[L,Y]=E?Xo(E):Qo,re=[],fe=new Set,ye=I?void 0:C;for(let z=0;z<$;z++){const ie=F[z];fe.add(ie);const ae=c(re,ie,y[ie],R,j[ie],L,ye);ae!==void 0&&(N[ie]=ae)}const M=Object.keys(j),le=M.length,te=_?void 0:S;for(let z=0;z<le;z++){const ie=M[z];if(fe.has(ie))continue;const ae=c(re,ie,j[ie],L,void 0,R,te);ae!==void 0&&(N[ie]=ae)}Nt(O,"properties",N);let H={};const K=new Set;return B.length>0&&Y.length>0&&hi(B,Y,(z,ie)=>{e(z,ie)&&K.add(z),e(ie,z)&&K.add(ie),H[t(z,ie)]=v(x[z],E[ie])}),H=u(H,x,B,K,C,I),H=u(H,E,Y,K,S,_),Nt(O,"patternProperties",H),O},m=(O,{items:y=[],additionalItems:x},{items:S=[],additionalItems:j})=>{const E=Array.isArray(y),C=Array.isArray(S),_=[];if(O.items=_,E&&C){const[I,T,N]=y.length<S.length?[y.length,x,S]:[S.length,j,y];let F=0;for(;F<I;F++)_.push(v(y[F],S[F]));if(T===!1)O.additionalItems=!1;else{const $=T===void 0||Ye(T);for(;F<N.length;F++)_.push($?N[F]:v(N[F],T));Nt(O,"additionalItems",x!==void 0&&j!==void 0?v(x,j):x??j)}}else if(E||C){const[I,T,N]=E?[y,S,x]:[S,y,j];Nt(O,"additionalItems",N&&v(N,T));for(let F=0;F<I.length;F++)_.push(v(I[F],T))}else delete O.additionalItems,O.items=v(y,S);return O},g=(O,y,x)=>{ta(O,y);const S=ta({},x);return O.allOf===void 0?O.allOf=[S]:O.allOf=O.allOf.concat(S),O};function f(O,y){const x=[];if(hi(O,y,(S,j)=>{try{x.push(v(S,j))}catch{}}),x.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(O)}" and "${JSON.stringify(y)}"; the merged result is empty`);return r(x)}const p=Hb([[Kb,d],[Gb,m],[Yb,g],...s]),b=Jb(o);function v(O,y){if(O===!1||y===!1)return!1;if(Ye(O))return Ye(y)?!0:y;if(Ye(y))return O;let x={...O};const S=new Set,j=new Set,E=Object.keys(y),C=E.length;for(let _=0;_<C;_++){const I=E[_],T=y[I];if(T===void 0)continue;const N=b.get(I);if(N!==void 0){const B=N.length;for(let L=0;L<B;L++){const Y=N[L];O[Y.oppositeKey]!==void 0&&j.add(Y.check)}}const F=O[I];if(F===void 0){x[I]=T;continue}const $=p.get(I);if($){S.add($);continue}const R=A[I]??i;x[I]=R(F,T)}for(const _ of S)x=_(x,O,y);for(const _ of j)_(x);return x}const w=Zo(v),A={$id:i,$ref:i,$schema:i,$comment:i,$defs:w,definitions:w,type:(O,y)=>{if(O===y)return O;const x=Array.isArray(O),S=Array.isArray(y);if(!x&&!S){const j=pi(O,y);if(j!==void 0)return j}else if(x||S){const j=new Set;if(x&&S)hi(O,y,(C,_)=>{const I=pi(C,_);I!==void 0&&j.add(I)});else{const C=x?O:y,_=x?y:O,I=C.length;for(let T=0;T<I;T++){const N=pi(_,C[T]);N!==void 0&&j.add(N)}}const E=j.size;if(E===1)return j.values().next().value;if(E>1)return Array.from(j)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${O.toString()}, ${y.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(O,y)=>{const x=r([O,y]);return x.length===1?x[0]:{anyOf:x}},pattern:t,readOnly:mi,writeOnly:mi,enum:(O,y)=>{const x=n(O,y);if(x.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(O)}", "${JSON.stringify(y)}"`);return x},anyOf:f,oneOf:f,allOf:(O,y)=>r(O.concat(y)),propertyNames:v,contains:v,dependencies:Zo((O,y)=>Array.isArray(O)?Array.isArray(y)?ci(O,y):v(y,{required:O}):Array.isArray(y)?v(O,{required:y}):v(O,y)),examples:(O,y)=>{if(!Array.isArray(O)||!Array.isArray(y))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(O)}" and "${JSON.stringify(y)}"`);return ci(O,y)},multipleOf:(O,y)=>{let x=1;for(;!Number.isInteger(O)||!Number.isInteger(y);)x*=10,O*=10,y*=10;return zb(O,y)/x},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:mi,required:ci,...a};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:l}}function Qb(t){const e=[],n=[t];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){e.push(r);continue}const{allOf:i,...s}=r;e.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return e}function e0(t){return e=>t(Qb(e))}const{compareSchemaDefinitions:t0,compareSchemaValues:n0}=Vb(),{mergeArrayOfSchemaDefinitions:r0}=Xb({intersectJson:Rb(n0),deduplicateJsonSchemaDef:Gl(t0)}),Zl=e0(r0);function Ce(t,e,n={},r,i,s=!1){return Ze(t,e,n,r,void 0,void 0,i,s)[0]}function i0(t,e,n,r,i,s,o){const{if:a,then:l,else:c,...u}=e,d=t.isValid(a,s||{},n);let m=[u],g=[];if(r)l&&typeof l!="boolean"&&(g=g.concat(Ze(t,l,n,s,r,i,o))),c&&typeof c!="boolean"&&(g=g.concat(Ze(t,c,n,s,r,i,o)));else{const f=d?l:c;f&&typeof f!="boolean"&&(g=g.concat(Ze(t,f,n,s,r,i,o)))}return g.length&&(m=g.map(f=>lt(u,f))),m.flatMap(f=>Ze(t,f,n,s,r,i,o))}function Xl(t){return t.reduce((n,r)=>r.length>1?r.flatMap(i=>Rl(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function Ql(t,e){return Object.keys(t.patternProperties).filter(n=>RegExp(n).test(e)).reduce((n,r)=>(ce(n,[r],t.patternProperties[r]),n),{})}function s0(t,e,n,r,i,s,o,a){const l=ec(t,e,n,r,i,s,o,a);if(l.length>1||l[0]!==e)return l;if(os in e)return nc(t,e,n,r,i,s,o).flatMap(u=>Ze(t,u,n,s,r,i,o));if(At in e&&Array.isArray(e[At])){const c=e.allOf.map(d=>Ze(t,d,n,s,r,i,o));return Xl(c).map(d=>({...e,allOf:d}))}return[e]}function ec(t,e,n,r,i,s,o,a){const l=wt(e,n,i,void 0,a);return l!==e?Ze(t,l,n,s,r,i,o,a):[e]}function wt(t,e,n,r,i){if(!V(t))return t;let s=t,o=r;if(ue in s){const{$ref:a,...l}=s;if(n.includes(a))return s;n.push(a),s={...Yn(a,e,o),...l,[Un]:a},de in s&&(o=s[de])}if(oe in s){const a=[],l=wb(s[oe],(c,u,d)=>{const m=[...n];c[d]=wt(u,e,m,o,i),a.push(m)},{});wy(n,Wl(gy(a))),s={...s,[oe]:l}}if(ln in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:wt(s.items,e,n,o,i)}),i){let a,l;ee in t&&Array.isArray(t[ee])?(a=ee,l=s[ee]):W in t&&Array.isArray(t[W])&&(a=W,l=s[W]),a&&l&&(s={...s,[a]:l.map(c=>wt(c,e,n,o,i))})}return se(t,s)?t:s}function o0(t,e,n,r,i){const s={...e,properties:{...e.properties}},o=r&&V(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Ri in s){const l=Ql(s,a);if(!ge(l)){s.properties[a]=Ce(t,{[At]:Object.values(l)},n,D(o,[a]),i),ce(s.properties,[a,at],!0);return}}if(nn in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?ue in s.additionalProperties?l=Ce(t,{[ue]:D(s.additionalProperties,[ue])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:ee in s.additionalProperties||W in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:Xn(D(o,[a]))}:l={type:Xn(D(o,[a]))},s.properties[a]=l,ce(s.properties,[a,at],!0)}else s.properties[a]={type:"null"},ce(s.properties,[a,at],!0)}}),s}function a0(t){return Zl(t)}function Ze(t,e,n,r,i=!1,s=[],o,a){return V(e)?s0(t,e,n,i,s,r,o,a).flatMap(c=>{var u;let d=c;if(as in d)return i0(t,d,n,i,s,r,o);if(At in d){if(i){const{allOf:g,...f}=d;return[...g,f]}try{const g=[],f=[];(u=d.allOf)===null||u===void 0||u.forEach(p=>{typeof p=="object"&&p.contains?g.push(p):f.push(p)}),g.length&&(d={...d,allOf:f}),d=o?o(d):a0(d),g.length&&(d.allOf=g)}catch(g){console.warn(`could not merge subschemas in allOf:
2
2
  `,g);const{allOf:f,...p}=d;return p}}return oe in d&&Ri in d&&(d=Object.keys(d.properties).reduce((g,f)=>{const p=Ql(g,f);return ge(p)||(g.properties[f]=Ce(t,{allOf:[g.properties[f],...Object.values(p)]},n,D(r,[f]),o)),g},{...d,properties:{...d.properties}})),Ri in d||nn in d&&d.additionalProperties!==!1?o0(t,d,n,r,o):d}):[{}]}function l0(t,e,n,r,i){let s;const{oneOf:o,anyOf:a,...l}=e;if(Array.isArray(o)?s=o:Array.isArray(a)&&(s=a),s){const c=i===void 0&&r?{}:i,u=He(e);s=s.map(m=>wt(m,n,[]));const d=$r(t,c,s,n,u);if(r){const m=tc(s,!1,n);return $r(t,c,m,n,u),s.map(g=>lt(l,g))}return[lt(l,s[d])]}return[e]}function tc(t,e=!1,n){return t.map(r=>{if(!V(r))return r?{}:{not:{}};const i=e&&n?wt(r,n,[]):r;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function nc(t,e,n,r,i,s,o){const{dependencies:a,...l}=e;return l0(t,l,n,r,s).flatMap(u=>rc(t,a,u,n,r,i,s,o))}function rc(t,e,n,r,i,s,o,a){let l=[n];for(const c in e)if((i||D(o,[c])!==void 0)&&(!n.properties||c in n.properties)){const[u,d]=Os(c,e);return Array.isArray(d)?l[0]=c0(n,d):V(d)&&(l=u0(t,n,r,c,d,i,s,o,a)),l.flatMap(m=>rc(t,u,m,r,i,s,o,a))}return l}function c0(t,e){if(!e)return t;const n=Array.isArray(t.required)?Array.from(new Set([...t.required,...e])):e;return{...t,required:n}}function u0(t,e,n,r,i,s,o,a,l){return Ze(t,i,n,a,s,o,l).flatMap(u=>{const{oneOf:d,...m}=u,g=lt(e,m);if(d===void 0)return g;const f=d.map(b=>typeof b=="boolean"||!(ue in b)?[b]:ec(t,b,n,s,o,a));return Xl(f).flatMap(b=>d0(t,g,n,r,b,s,o,a,l))})}function d0(t,e,n,r,i,s,o,a,l){const c=i.filter(u=>{if(typeof u=="boolean"||!u||!u.properties)return!1;const{[r]:d}=u.properties;if(d){const m={type:"object",properties:{[r]:d}};return t.isValid(m,a,n)||s}return!1});return!s&&c.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[e]):c.flatMap(u=>{const d=u,[m]=Os(r,d.properties),g={...d,properties:m};return Ze(t,g,n,a,s,o,l).map(p=>lt(e,p))})}function Dn(t,e,n,r,i,s={},o){if(Array.isArray(n[i])){const l=He(n)||r,c=n[i].map(d=>Ce(t,d,e,s,o)),u=D(s,l);if(u!==void 0)return c.find(d=>se(D(d,[oe,l,kt],D(d,[oe,l,Ne])),u))}}function ic(t,e,n,r,i){let s=n;if(X(n,ue)&&(s=Ce(t,n,e,void 0,i)),ge(r))return s;const o=Array.isArray(r)?[...r]:r.split("."),[a,...l]=o;if(a!==void 0&&a!==""&&X(s,a))return s=D(s,a),ic(t,e,s,l,i)}function jr(t,e,n,r,i,s){const o=ic(t,e,n,r,s);return o===void 0?i:o}const na={title:"!@#$_UNKNOWN_$#@!"};function f0(t,e,n,r,i={},s){const o=Array.isArray(r)?[...r]:r.split(".");let a=n;const l=o.pop(),c=String(l);o.length&&o.forEach(g=>{a=jr(t,e,a,[oe,g],{},s),X(a,W)?a=Dn(t,e,a,c,W,D(i,g),s):X(a,ee)&&(a=Dn(t,e,a,c,ee,D(i,g),s))}),X(a,W)?a=Dn(t,e,a,c,W,i,s):X(a,ee)&&(a=Dn(t,e,a,c,ee,i,s));let u=jr(t,e,a,[oe,l],na,s);u===na&&(u=void 0);const d=jr(t,e,a,Ja,[],s);let m;return u&&Array.isArray(d)&&(m=d.includes(c)),{field:u,isRequired:m}}function h0(t,e,n,r){var i=-1,s=t==null?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function m0(t,e){return function(n,r){if(n==null)return n;if(!Ht(n))return t(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var sc=m0(Ml);function p0(t,e,n,r,i){return i(t,function(s,o,a){n=r?(r=!1,s):e(n,s,o,a)}),n}function g0(t,e,n){var r=we(t)?h0:p0,i=arguments.length<3;return r(t,Cs(e),n,i,sc)}const y0={type:"object",$id:Mf,properties:{__not_really_there__:{type:"number"}}};function Gi(t,e,n,r,i){let s=0;return n&&(ne(n.properties)?s+=g0(n.properties,(o,a,l)=>{const c=D(r,l);if(typeof a=="boolean")return o;if(X(a,ue)){const u=Ce(t,a,e,c,i);return o+Gi(t,e,u,c||{},i)}if((X(a,W)||X(a,ee))&&c){const u=X(a,W)?W:ee,d=He(a);return o+fn(t,e,c,D(a,u),-1,d,i)}if(a.type==="object"){const u=ne(c)?1:0;return o+u+Gi(t,e,a,c,i)}if(a.type===Xn(c)){let u=o+1;return a.default?u+=c===a.default?1:-1:a.const&&(u+=c===a.const?1:-1),u}return o},0):_t(n.type)&&n.type===Xn(r)&&(s+=1)),s}function fn(t,e,n,r,i=-1,s,o){const a=r.map(m=>wt(m,e,[])),l=Kl(n,r,s);if(Hl(l))return l;const c=a.reduce((m,g,f)=>($r(t,n,[y0,g],e,s)===1&&m.push(f),m),[]);if(c.length===1)return c[0];c.length||Rl(a.length,m=>c.push(m));const u=new Set,{bestIndex:d}=c.reduce((m,g)=>{const{bestScore:f}=m,p=a[g],b=Gi(t,e,p,n,o);return u.add(b),b>f?{bestIndex:g,bestScore:b}:m},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:d}function oc(t){const e=t[Ne],n=Le(t);return V(e)&&_t(e?.$data)&&n!=="object"&&n!=="array"}function ac(t){return Array.isArray(t.enum)&&t.enum.length===1||Ne in t}function Is(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(e=>V(e))}function hn(t){return t==null}function Qn(t,e,n=!1,r=!1,i=!1){if(Array.isArray(e)){const s=Array.isArray(t)?t:[],o=i?s:e,a=i?e:s,l=o.map((c,u)=>a[u]!==void 0?Qn(s[u],e[u],n,r,i):c);return(n||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(V(e)){const s=Object.assign({},t);return Object.keys(e).reduce((o,a)=>{var l;const c=D(e,a),u=V(t)&&a in t,d=a in e,m=(l=D(t,a))!==null&&l!==void 0?l:{},g=u&&V(m)&&Object.values(m).some(b=>V(b)),f=u&&V(D(t,a)),p=d&&V(c);return f&&p&&!g?(o[a]={...D(t,a),...c},o):(o[a]=Qn(D(t,a),c,n,r,i&&(u||!d)),s)},s)}return r&&(t!==void 0&&hn(e)||typeof e=="number"&&Number.isNaN(e))||i&&!hn(e)?t:e}function Lt(t,e,n=!1){return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];if(t&&i in t&&V(o))r[i]=Lt(s,o,n);else if(n&&Array.isArray(s)&&Array.isArray(o)){let a=o;n==="preventDuplicates"&&(a=o.reduce((l,c)=>(s.includes(c)||l.push(c),l),[])),r[i]=s.concat(a)}else r[i]=o;return r},{...t})}function b0(t){if(Rf in t&&Array.isArray(t.enum)&&t.enum.length===1)return t.enum[0];if(Ne in t)return t.const;throw new Error("schema cannot be inferred as a constant")}function x0(t,e){const n=new Map(t.map(s=>[String(s.value),s])),r=new Set(e.filter(s=>s!=="*").map(String)),i=t.filter(s=>!r.has(String(s.value)));return e.flatMap(s=>{if(s==="*")return i;const o=n.get(String(s));return o?[o]:[]})}function mn(t,e){if(t.enum){let s,o;if(e){const{enumNames:l,enumOrder:c}=U(e);s=l,o=c}let a=t.enum.map((l,c)=>({label:Array.isArray(s)?s[c]||String(l):s?.[String(l)]||String(l),value:l}));return o&&(a=x0(a,o)),a}let n,r;t.anyOf?(n=t.anyOf,r=e?.anyOf):t.oneOf&&(n=t.oneOf,r=e?.oneOf);let i=He(t);if(e){const{optionsSchemaSelector:s=i}=U(e);i=s}return n&&n.map((s,o)=>{const{title:a}=U(r?.[o]),l=s;let c,u=a;if(i){const d=D(l,[oe,i],{});c=D(d,kt,D(d,Ne)),u=u||d?.title||l.title||String(c)}else c=b0(l),u=u||l.title||String(c);return{schema:l,label:u,value:c}})}function Kr(t,e,n={},r){const i=Ce(t,e,n,void 0,r),s=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(s)?s.every(o=>typeof o!="boolean"&&ac(o)):!1}function Ts(t,e,n,r){return!e.uniqueItems||!e.items||typeof e.items=="boolean"?!1:Kr(t,e.items,n,r)}const v0=["string","number","integer","boolean","null"];var pn;(function(t){t[t.Ignore=0]="Ignore",t[t.Invert=1]="Invert",t[t.Fallback=2]="Fallback"})(pn||(pn={}));function gi(t,e=pn.Ignore,n=-1){if(n>=0){if(Array.isArray(t.items)&&n<t.items.length){const r=t.items[n];if(typeof r!="boolean")return r}}else if(t.items&&!Array.isArray(t.items)&&typeof t.items!="boolean")return t.items;return e!==pn.Ignore&&V(t.additionalItems)?t.additionalItems:{}}function lc(t,e){const{default:n,type:r}=t;return Array.isArray(r)&&r.includes("null")&&ge(e)&&n===null?null:e}function ra(t,e,n,r,i,s=[],o={},a=!1,l=!1){const{emptyObjectFields:c="populateAllDefaults"}=o;if(r===!0||a)t[e]=n;else if(r==="excludeObjectChildren")(l&&n!==void 0||!V(n)||!ge(n))&&(t[e]=n);else if(c!=="skipDefaults"){const u=i===void 0?s.includes(e):i;V(n)?c==="skipEmptyDefaults"?ge(n)||(t[e]=n):(!ge(n)||s.includes(e))&&(u||c!=="populateRequiredDefaults")&&(t[e]=n):n!==void 0&&(c==="populateAllDefaults"||c==="skipEmptyDefaults"||u&&s.includes(e))&&(t[e]=n)}}function jt(t,e,n={}){const{parentDefaults:r,rawFormData:i,rootSchema:s={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:l=void 0,experimental_customMergeAllOf:c=void 0,required:u,shouldMergeDefaultsIntoFormData:d=!1,initialDefaultsGenerated:m}=n;let g=V(i)?i:{};const f=V(e)?e:{};let p=r,b=null,v=l,w=a;if(f[Ne]!==void 0&&l?.constAsDefaults!=="never"&&!oc(f))p=f[Ne];else if(V(p)&&V(f.default)&&!f[ee]&&!f[W]&&!f[ue])p=Lt(p,f.default);else if(kt in f&&!f[ee]&&!f[W]&&!f[ue])p=f.default;else if(ue in f){const y=f[ue];a.includes(y)||(w=a.concat(y),b=Yn(y,s));const x=i===void 0||V(i)&&ge(i);b&&!p&&x&&(p=f.default),d&&b&&!V(i)&&(g=i)}else if(os in f){const y={...ia(t,f,n,p),...g};[b]=nc(t,f,s,!1,[],y,c)}else if(Is(f))p=f.items.map((y,x)=>jt(t,y,{rootSchema:s,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(r)?r[x]:void 0,rawFormData:g,required:u,shouldMergeDefaultsIntoFormData:d}));else if(W in f){const{oneOf:y,...x}=f;if(y.length===0)return;const S=He(f),{type:j="null"}=x;!Array.isArray(j)&&v0.includes(j)&&v?.constAsDefaults==="skipOneOf"&&(v={...v,constAsDefaults:"never"}),b=y[fn(t,s,i??f.default,y,0,S,c)],b=lt(x,b)}else if(ee in f){const{anyOf:y,...x}=f;if(y.length===0)return;const S=He(f);b=y[fn(t,s,i??f.default,y,0,S,c)],b=lt(x,b)}if(b)return jt(t,b,{rootSchema:s,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:c,parentDefaults:p,rawFormData:i??g,required:u,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:m});p===void 0&&(p=f.default);const A=ia(t,f,n,p);let O=A??p;if(d){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:x}=y,S=S0(t,f,s,i,l,c);(!V(i)||At in f)&&(O=Qn(O,S,x,!0))}return O}function S0(t,e,n,r,i,s){const o=!ac(e)&&Kr(t,e,n,s);let a=r;if(o){const c=mn(e);a=c?.some(d=>se(d.value,r))?r:void 0}return e[Ne]&&i?.constAsDefaults==="always"&&(a=e.const),a}function w0(t,e,{rawFormData:n,rootSchema:r={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:l,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},d){{const m=V(n)?n:{},g=e,p=o?.allOf==="populateDefaults"&&At in g||o?.emptyObjectFields!=="skipEmptyDefaults"&&as in g?Ce(t,g,r,m,a):g,b=p[Ne],v=Object.keys(p.properties||{}).reduce((w,A)=>{var O;const y=D(p,[oe,A],{}),x=V(b)&&b[A]!==void 0,S=(V(y)&&Ne in y||x)&&o?.constAsDefaults!=="never"&&!oc(y),j=jt(t,y,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[A]),rawFormData:D(m,[A]),required:(O=p.required)===null||O===void 0?void 0:O.includes(A),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});return ra(w,A,j,i,l,p.required,o,S,y?.type==="null"),w},{});if(p.additionalProperties&&!u){const w=V(p.additionalProperties)?p.additionalProperties:{},A=new Set,O=[];Object.keys(m).filter(y=>!p.properties||!p.properties[y]).forEach(y=>{A.add(y),O.push(y)}),V(d)&&O.length===0&&Object.keys(d).filter(y=>!p.properties||!p.properties[y]).forEach(y=>A.add(y)),A.forEach(y=>{var x;const S=jt(t,w,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[y]),rawFormData:D(m,[y]),required:(x=p.required)===null||x===void 0?void 0:x.includes(y),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});ra(v,y,S,i,l,O)})}return lc(e,v)}}function j0(t,e,{rawFormData:n,rootSchema:r={},_recurseList:i=[],experimental_defaultFormStateBehavior:s=void 0,experimental_customMergeAllOf:o=void 0,required:a,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},d){var m,g;let f=d;const p=e,b=(m=s?.arrayMinItems)!==null&&m!==void 0?m:{},{populate:v,mergeExtraDefaults:w}=b,A=v==="never",O=v==="requiredOnly",y=v==="all"||!A&&!O,x=(g=b?.computeSkipPopulate)!==null&&g!==void 0?g:(()=>!1),j=s?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(f)&&(f=f.map((_,I)=>{const T=gi(p,pn.Fallback,I),N=Array.isArray(n)?n[I]:void 0;return jt(t,T,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,parentDefaults:_,rawFormData:N,required:a,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u})})),Array.isArray(n)){const _=gi(p);if(A)f=n;else{const I=n.map((N,F)=>jt(t,_,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:N,parentDefaults:D(f,[F]),required:a,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}));f=Qn(f,I,(O&&a||y)&&w)}}if(A)return f??j;if(O&&!a)return f||void 0;let E;const C=Array.isArray(f)?f.length:0;if(!p.minItems||Ts(t,p,r,o)||x(t,p,r)||p.minItems<=C)E=f||!a&&!l?f:j;else{const _=f||[],I=gi(p,pn.Invert),T=I.default,N=Array.from({length:p.minItems-C},()=>jt(t,I,{parentDefaults:T,rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:c}));E=_.concat(N)}return lc(e,E)}function ia(t,e,n={},r){switch(Le(e)){case"object":return w0(t,e,n,r);case"array":return j0(t,e,n,r);default:return}}function cc(t,e,n,r,i=!1,s,o,a){if(!V(e))throw new Error(`Invalid schema: ${e}`);const l=Ce(t,e,r,n,o),c=jt(t,l,{rootSchema:r,includeUndefinedValues:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:a,requiredAsRoot:!0});if(l.type!=="object"&&V(l.default))return{...c,...n};if(V(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:u}=s||{};return Qn(c,n,!0,u==="useDefaultIfFormDataUndefined",!0)}return c}function uc(t={}){return"widget"in U(t)&&U(t).widget!=="hidden"}function dc(t,e,n={},r,i){if(n[cs]==="files")return!0;if(e.items){const s=Ce(t,e.items,r,void 0,i);return s.type==="string"&&s.format==="data-url"}return!1}function O0(t,e,n={},r,i,s){const o=U(n,i),{label:a=!0}=o;let l=!!a;if(l){const c=Le(e),u=D(e,at,!1);c==="array"&&(l=u||Ts(t,e,r,s)||dc(t,e,n,r,s)||uc(n)),c==="object"&&(l=u),c==="boolean"&&n&&!n[cs]&&(l=!1),n&&n[Bf]&&(l=!1)}return l}function fc(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=Lr(t,o);n(a,o)&&As(s,bn(o,t),a)}return s}function A0(t,e){return fc(t,e,function(n,r){return ql(t,r)})}var Ns=Tl(function(t,e){return t==null?{}:A0(t,e)});function E0(t,e){if(e.length===0&&typeof t!="object")return t;const n=Ns(t,e);return Array.isArray(t)?Object.keys(n).map(r=>n[r]):n}function C0(t,e){const n=(i,s)=>typeof i!="object"||ge(i)||s&&!ge(i),r=(i,s=[],o=[[]])=>{const a=Object.keys(i);return a.forEach(l=>{const c=i[l];if(typeof c=="object"){const u=o.map(d=>[...d,l]);c[ls]&&c[xr]!==""?s.push(c[xr]):r(c,s,u)}else l===xr&&c!==""&&o.forEach(u=>{const d=D(e,u),m=a.length===1;(n(d,m)||Array.isArray(d)&&d.every(g=>n(g,m)))&&s.push(u)})}),s};return r(t)}function qn(t){return hn(t)||t===""?!0:Array.isArray(t)?t.length===0:V(t)?Object.values(t).every(qn):!1}function _0(t,e){return e?e(t):Zl(t)}function I0(t,e,n={},r,i){function s(f){return V(f)}function o(f){return V(f)}function a(f,p,b){var v;const{properties:w,additionalProperties:A,patternProperties:O,propertyNames:y}=f,x=new Set((v=f.required)!==null&&v!==void 0?v:[]);function S(E,C,_,I=!1){var T;const N=g(C,_,b[E]);if(!I&&V(N)){let F=o(C)?C:{};F.$ref!==void 0&&(F=Yn(F.$ref,n));const $=new Set((T=F.required)!==null&&T!==void 0?T:[]);if(Object.entries(N).every(([B,L])=>!$.has(B)&&qn(L)))return}N!==void 0&&(b[E]=N)}if(w!==void 0)for(const[E,C]of Object.entries(w))S(E,C,p[E],x.has(E));let j;if(O!==void 0){j=[];const E=Object.entries(O).map(([_,I])=>[new RegExp(_),I]),C=new Set(Object.keys(w??{}));for(const[_,I]of Object.entries(p))if(!C.has(_)){const T=E.find(([N])=>N.test(_));T===void 0?j.push(_):S(_,T[1],I)}}if(A!==void 0&&A!==!1){const E=A;if(j!==void 0)for(const C of j)S(C,E,p[C]);else{const C=new Set(Object.keys(w??{}));for(const[_,I]of Object.entries(p))C.has(_)||S(_,E,I)}}if(y!==void 0)for(const[E,C]of Object.entries(p))b[E]=C;return b}function l(f,p,b){const{items:v,additionalItems:w}=f;if(v!==void 0)if(Array.isArray(v))for(let A=0;A<v.length;A+=1)b.push(g(v[A],p[A]));else for(let A=0;A<p.length;A+=1)b.push(g(v,p[A]));if(w)for(let A=b.length;A<p.length;A+=1)b.push(g(w,p[A]));return b}function c(f,p,b){const{if:v,then:w,else:A}=f;if(v===void 0)return b;const y=(o(v)?t.isValid(v,p,n):v)?w:A;return y===void 0?b:g(y,p,b)}function u(f,p,b,v){if(!Array.isArray(f)||Kr(t,p,n,i))return v;const w=tc(f,!0,n),A=fn(t,n,b,w,0,He(p),i),O=f[A],y=V(O)?wt(O,n,[]):w[A];return g(y,b,v)}function d(f,p,b){const{anyOf:v}=f;if(!Array.isArray(v))return b;if(p===void 0||Array.isArray(p)&&p.length===0||V(p)&&Object.keys(p).length===0){let w=b;for(const A of v)w=g(A,p,w);return w}return u(v,f,p,b)}function m(f,p,b){const{dependencies:v}=f;if(v===void 0||!s(p))return b;let w=b;for(const[A,O]of Object.entries(v))A in p&&!Array.isArray(O)&&(w=g(O,p,w));return w}function g(f,p,b){if(p===void 0||f===!1)return;if(f===!0||ge(f))return p;let v=f;const{$ref:w,allOf:A}=v;if(w!==void 0)return g(Yn(w,n),p,b);A&&(v=_0(v,i));let O=d(v,p,u(v.oneOf,v,p,b));const y=Le(v);if(y==="object"){if(!s(p))return;O=a(v,p,s(O)?O:{})}else if(y==="array"){if(!Array.isArray(p))return;O=l(v,p,Array.isArray(O)?O:[])}else O===void 0&&(O=p);return m(v,p,c(v,p,O))}return g(e,r)}const De=Symbol("no Value");function hc(t){if(Array.isArray(t.enum))return t.enum;const e=t.oneOf||t.anyOf;if(!Array.isArray(e))return;const n=e.map(r=>Ne in r?r[Ne]:Array.isArray(r.enum)&&r.enum.length===1?r.enum[0]:De).filter(r=>r!==De);return n.length>0?n:void 0}function T0(t,e){const n=hc(t);if(!n||n.some(i=>se(i,e)))return De;const r=D(t,kt,De);return r!==De&&n.some(i=>se(i,r))?r:n.length===1?n[0]:void 0}function Yi(t,e,n,r,i={},s){let o;if(X(n,oe)){const a={};if(X(r,oe)){const u=D(r,oe,{});Object.keys(u).forEach(d=>{X(i,d)&&(a[d]=void 0)})}const l=Object.keys(D(n,oe,{})),c={};l.forEach(u=>{const d=D(i,u);let m=D(r,[oe,u],{}),g=D(n,[oe,u],{});X(m,ue)&&(m=Ce(t,m,e,d,s)),X(g,ue)&&(g=Ce(t,g,e,d,s));const f=D(m,"type"),p=D(g,"type");if(!f||f===p)if(X(a,u)&&delete a[u],p==="object"||p==="array"&&Array.isArray(d)){const b=Yi(t,e,g,m,d,s);(b!==void 0||p==="array")&&(c[u]=b)}else{const b=D(g,kt,De),v=D(m,kt,De);b!==De&&b!==d&&(v===d?a[u]=b:D(g,"readOnly")===!0&&(a[u]=void 0));const w=D(g,Ne,De),A=D(m,Ne,De);if(w!==De&&w!==d&&(a[u]=A===d?w:void 0),X(i,u)){const O=T0(g,d);O!==De&&(a[u]=O)}}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...a,...c}}else if(D(r,"type")==="array"&&D(n,"type")==="array"&&Array.isArray(i)){let a=D(r,"items"),l=D(n,"items");if(typeof a=="object"&&typeof l=="object"&&!Array.isArray(a)&&!Array.isArray(l)){X(a,ue)&&(a=Ce(t,a,e,i,s)),X(l,ue)&&(l=Ce(t,l,e,i,s));const c=D(a,"type"),u=D(l,"type");if(!c||c===u){const d=D(n,"maxItems",-1);if(u==="object")o=i.reduce((m,g)=>{const f=Yi(t,e,l,a,g,s);return f!==void 0&&(d<0||m.length<d)&&m.push(f),m},[]);else{const m=hc(l),g=m?i.filter(f=>m.some(p=>se(p,f))):i;o=d>0&&g.length>d?g.slice(0,d):g}}}else typeof a=="boolean"&&typeof l=="boolean"&&a===l&&(o=i)}return o}function yt(t,e,n,r,i,s=[],o){if(ue in e||os in e||At in e||as in e){const l=Ce(t,e,r,i,o);if(s.findIndex(u=>se(u,l))===-1)return yt(t,l,n,r,i,s.concat(l),o)}let a={[xr]:n.replace(/^\./,"")};if(W in e||ee in e){const l=W in e?e.oneOf:e.anyOf,c=He(e),u=fn(t,r,i,l,0,c,o),d=l[u];a={...a,...yt(t,d,n,r,i,s,o)}}if(nn in e&&e[nn]!==!1){ce(a,ls,!0);const l=ne(e[nn])?e[nn]:{},c=D(e,oe,{});for(const u of Object.keys(i??{}))u in c||(a[u]=yt(t,l,`${n}.${u}`,r,D(i,[u]),s,o))}if(ln in e&&Array.isArray(i)){const{items:l,additionalItems:c}=e;Array.isArray(l)?i.forEach((u,d)=>{l[d]?a[d]=yt(t,l[d],`${n}.${d}`,r,u,s,o):c?a[d]=yt(t,c,`${n}.${d}`,r,u,s,o):console.warn(`Unable to generate path schema for "${n}.${d}". No schema defined for it`)}):i.forEach((u,d)=>{a[d]=yt(t,l,`${n}.${d}`,r,u,s,o)})}else if(oe in e)for(const l in e.properties){const c=D(e,[oe,l],{});a[l]=yt(t,c,`${n}.${l}`,r,D(i,[l]),s,o)}return a}function N0(t,e,n="",r,i,s){return yt(t,e,n,r,i,void 0,s)}class F0{constructor(e,n,r,i){n&&n[Pn]===vr?this.rootSchema=Wi(n,D(n,de,"#")):this.rootSchema=n,this.validator=e,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,n,r={},i){return!e||!n?!1:this.validator!==e||!se(this.rootSchema,n)||!se(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==i}findFieldInSchema(e,n,r){return f0(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,n,r,i){return Dn(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getDefaultFormState(e,n,r=!1,i){return cc(this.validator,e,n,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(e,n,r){return O0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,n,r,i){return fn(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,n,r){return $r(this.validator,e,n,this.rootSchema,r)}getFromSchema(e,n,r){return jr(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}isFilesArray(e,n){return dc(this.validator,e,n,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Ts(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Kr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,n){return I0(this.validator,e,this.rootSchema,n)}retrieveSchema(e,n,r){return Ce(this.validator,e,this.rootSchema,n,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(e,n,r){return Yi(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}toPathSchema(e,n,r){return N0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}}function P0(t,e,n={},r){return new F0(t,e,n,r)}function $0(t){var e;if(!t.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=t.slice(5).split(";base64,");if(r.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,s]=r,[o,...a]=i.split(";"),l=o||"",c=decodeURI(((e=a.map(u=>u.split("=")).find(([u])=>u==="name"))===null||e===void 0?void 0:e[1])||"unknown");try{const u=atob(s),d=new Array(u.length);for(let g=0;g<u.length;g+=1)d[g]=u.charCodeAt(g);return{blob:new window.Blob([new Uint8Array(d)],{type:l}),name:c}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function bt(t,e){let n=String(t);for(;n.length<e;)n=`0${n}`;return n}function mc(t,e){const n=t<=0&&e<=0,r=t<0||e<0;if(!n&&r)throw new Error(`Both start (${t}) and stop (${e}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),s=n?i+t:t,o=n?i+e:e;if(s>o)return mc(e,t).reverse();const a=[];for(let l=s;l<=o;l+=1)a.push({value:l,label:bt(l,2)});return a}function D0(t,e){let n=t;if(Array.isArray(e)){const r=n.split(/(%\d)/);e.forEach((i,s)=>{const o=r.findIndex(a=>a===`%${s+1}`);o>=0&&(r[o]=i)}),n=r.join("")}return n}function k0(t,e){return D0(t,e)}function Gr(t,e=[],n){if(Array.isArray(t))return t.map(s=>Gr(s,e)).filter(s=>s!==void 0);const r=t===""||t===null?-1:Number(t),i=e[r];return i?i.value:n}function pc(t,e,n=[]){const r=Gr(t,n);return Array.isArray(e)?e.filter(i=>!se(i,r)):se(r,e)?void 0:e}function ar(t,e){return Array.isArray(e)?e.some(n=>se(n,t)):se(e,t)}function R0(t,e=[],n=!1){const r=e.map((i,s)=>ar(i.value,t)?String(s):void 0).filter(i=>typeof i<"u");return n?r:r[0]}function gc(t,e,n,r="indexed",i){if(typeof t>"u"||n&&Array.isArray(t)&&t.length<1||!n&&t===i)return i;if(r==="realValue")return n?t.map(String):String(t);const o=R0(t,e,n);return typeof o>"u"?i:o}function yc(t,e,n=[]){const r=Gr(t,n);if(!hn(r)){const i=n.findIndex(a=>r===a.value),s=n.map(({value:a})=>a);return e.slice(0,i).concat(r,e.slice(i)).sort((a,l)=>+(s.indexOf(a)>s.indexOf(l)))}return e}function sa(t,e,n){if(t===""||!Array.isArray(e))return n;const r=e.find(s=>String(s.value)===t);if(r)return r.value;const i=Number(t);return!Number.isNaN(i)&&i>=0&&i<e.length?e[i].value:n}function Te(t,e,n="indexed",r){return n!=="realValue"?Gr(t,e,r):Array.isArray(t)?t.map(i=>sa(i,e,r)):sa(t,e,r)}function lr(t,e,n="indexed"){return n!=="realValue"?String(e):hn(t)?"":String(typeof t=="object"?e:t)}var M0=1,U0=4;function Fs(t){return Bn(t,M0|U0)}function L0(t,e,n,r){return r=typeof r=="function"?r:void 0,t==null?t:As(t,e,n,r)}class bc{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let r=Array.isArray(e)&&e.length>0||typeof e=="string"?D(this.errorSchema,e):this.errorSchema;return!r&&e&&(r={},L0(this.errorSchema,e,r,Object)),r}resetAllErrors(e){return this.errorSchema=e?Fs(e):{},this}addErrors(e,n){const r=this.getOrCreateErrorBlock(n);let i=D(r,Ee);return Array.isArray(i)||(i=[],r[Ee]=i),Array.isArray(e)?ce(r,Ee,[...new Set([...i,...e])]):ce(r,Ee,[...new Set([...i,e])]),this}setErrors(e,n){const r=this.getOrCreateErrorBlock(n),i=Array.isArray(e)?[...new Set([...e])]:[e];return ce(r,Ee,i),this}clearErrors(e){const n=this.getOrCreateErrorBlock(e);return ce(n,Ee,[]),this}}var B0=200;function q0(t,e,n,r){var i=-1,s=_s,o=!0,a=t.length,l=[],c=e.length;if(!a)return l;e.length>=B0&&(s=Zn,o=!1,e=new Ut(e));e:for(;++i<a;){var u=t[i],d=u;if(u=u!==0?u:0,o&&d===d){for(var m=c;m--;)if(e[m]===d)continue e;l.push(u)}else s(e,d,r)||l.push(u)}return l}var V0=zr(function(t,e){return Jn(t)?q0(t,or(e,1,Jn,!0)):[]});function z0(t,e){if(t==null)return{};var n=yn(ws(t),function(r){return[r]});return e=Cs(e),fc(t,n,function(r,i){return e(r,i[0])})}function oa(t,e){const n=Et(t),r=Et(e);if(t===e||!n&&!r)return[];if(n&&!r)return ze(t);if(!n&&r)return ze(e);const i=ze(z0(t,(o,a)=>!se(o,D(e,a)))),s=V0(ze(e),ze(t));return[...i,...s]}function W0(t,e,n=[1900,new Date().getFullYear()+2],r="YMD"){const{day:i,month:s,year:o,hour:a,minute:l,second:c}=t,u={type:"day",range:[1,31],value:i},d={type:"month",range:[1,12],value:s},m={type:"year",range:n,value:o},g=[];switch(r){case"MDY":g.push(d,u,m);break;case"DMY":g.push(u,d,m);break;default:g.push(m,d,u)}return e&&g.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),g}function xc(t){const e={};return t.multipleOf&&(e.step=t.multipleOf),(t.minimum||t.minimum===0)&&(e.min=t.minimum),(t.maximum||t.maximum===0)&&(e.max=t.maximum),e}function vc(t,e,n={},r=!0){const i={type:e||"text",...xc(t)};return n.inputType?i.type=n.inputType:e||(t.type==="number"?(i.type="number",r&&i.step===void 0&&(i.step="any")):t.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(t.formatMinimum!==void 0&&(i.min=t.formatMinimum),t.formatMaximum!==void 0&&(i.max=t.formatMaximum)),n.autocomplete&&(i.autoComplete=n.autocomplete),n.accept&&(i.accept=n.accept),i}function vn(t){var e;return(e=t?.optionValueFormat)!==null&&e!==void 0?e:"indexed"}const aa={props:{disabled:!1},submitText:"Submit",norender:!1};function Sc(t={}){const e=U(t);if(e&&e[Ir]){const n=e[Ir];return{...aa,...n}}return aa}function q(t,e,n={}){const{templates:r}=e;if(t==="ButtonTemplates")return r[t];if(Object.hasOwn(n,t)&&typeof n[t]=="string"&&Object.hasOwn(r,n[t])){const i=n[t];return r[i]}return n[t]||r[t]}var H0=0;function wc(t){var e=++H0;return fs(t)+e}function Ps(){if(D(globalThis,"process.env.NODE_ENV")!=="test")return{};const t=new Map;return new Proxy({},{get(e,n){return t.has(n)||t.set(n,wc("test-id-")),t.get(n)}})}const yi={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function K0(t){let e=D(t,"MergedWidget");if(!e){const n=t.defaultProps&&t.defaultProps.options||{};e=({options:r,...i})=>h.jsx(t,{options:{...n,...r},...i}),ce(t,"MergedWidget",e)}return e}function tt(t,e,n={}){const r=Le(t);if(typeof e=="function"||e&&Zs.isForwardRef(P.createElement(e))||Zs.isMemo(e))return K0(e);if(typeof e!="string")throw new Error(`Unsupported widget definition: ${typeof e} in schema: ${JSON.stringify(t)}`);if(e in n){const i=n[e];return tt(t,i,n)}if(typeof r=="string"){if(!(r in yi))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(t)}`);if(e in yi[r]){const i=n[yi[r][e]];return tt(t,i,n)}}throw new Error(`No widget '${e}' for type '${r}' in schema: ${JSON.stringify(t)}`)}function G0(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e&=e}return e.toString(16)}function Y0(t){const e=new Set;return JSON.stringify(t,(n,r)=>(e.add(n),r)),JSON.stringify(t,Array.from(e).sort())}function Xe(t){return G0(Y0(t))}function J0(t){return Xe(t)}function Z0(t,e,n={}){try{return tt(t,e,n),!0}catch(r){const i=r;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw r}}function Kt(t,e){return`${_t(t)?t:t[de]}__${e}`}function Gt(t){return Kt(t,"description")}function $s(t){return Kt(t,"error")}function Yr(t){return Kt(t,"examples")}function Ds(t){return Kt(t,"help")}function Jr(t){return Kt(t,"title")}function Pe(t,e=!1){const n=e?` ${Yr(t)}`:"";return`${$s(t)} ${Gt(t)} ${Ds(t)}${n}`}function Dt(t,e){return`${t}-${e}`}function Qe(t,e){return Kt(t,e)}function bi(t,e){return Kt(t,`optional${e}`)}function Sn(t){return!hn(t)&&(!ne(t)||Array.isArray(t)||!ge(t))}function X0(t,e){const{rootSchema:n,schemaUtils:r}=t;if(se(e,n))return!0;if(ue in n){const i=r.retrieveSchema(n);return se(e,dn(i,Un))}return!1}function jc(t,e,n){return e?n:t}function Q0(t){return t?new Date(t).toJSON():void 0}function ks(t,e,n){const r=[Lf];return X(t,oo)&&r.unshift(oo),D(t,[...r,e],n)}function ex(t,e){if(!Array.isArray(e))return t;const n=u=>u.reduce((d,m)=>(d[m]=!0,d),{}),r=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,i=n(t),s=e.filter(u=>u==="*"||i[u]),o=n(s),a=t.filter(u=>!o[u]),l=s.indexOf("*");if(l===-1){if(a.length)throw new Error(`uiSchema order list does not contain ${r(a)}`);return s}if(l!==s.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...s];return c.splice(l,1,...a),c}function xi(t,e=!0){if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};const n=new Date(t);if(Number.isNaN(n.getTime()))throw new Error(`Unable to parse date ${t}`);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:e?n.getUTCHours():0,minute:e?n.getUTCMinutes():0,second:e?n.getUTCSeconds():0}}function sn(t,e,n,r){if(!V(e))return r;const i=Ce(t,e,n,r);if(Array.isArray(r)){const u=i.items;if(!u)return r;let d=!1;const m=r.map((g,f)=>{let p=u;Array.isArray(u)&&(p=u[f]||i.additionalItems||{});const b=sn(t,p,n,g);return b!==g&&(d=!0),b===void 0?{}:b});return d?m:r}const{properties:s,required:o=[]}=i;if(!V(r)||!s)return r;const a={},l=r;let c=!1;for(const u of Object.keys(l)){const d=l[u],m=s[u]||{},g=o.includes(u),f=V(d),p=Array.isArray(d);if((f||p)&&s[u]){const b=sn(t,m,n,d);(g||!qn(b))&&(a[u]=b,c=!0)}else(g||!qn(d)||!s[u])&&(a[u]=d,qn(d)||(c=!0))}if(!(!c&&Object.keys(a).length===0))return a}function tx(t,e,n){var r,i;const s=(r=t[Un])!==null&&r!==void 0?r:t[ue],o=n.uiSchemaDefinitions,a=s&&o?o[s]:void 0;let l;if(a?!e||ge(e)?l={...a}:l=Lt(a,e):l=e||{},o){let c=t;if(s&&t[ue]&&!t[Un])try{c=Yn(s,n.rootSchema)}catch(u){return console.warn(`could not resolve $ref in resolveUiSchema:
3
3
  `,u),l}for(const u of[W,ee]){const d=c[u];if(Array.isArray(d)&&d.length>0){const m=l[u],g=Array.isArray(m)?[...m]:[];let f=!1;for(let p=0;p<d.length;p++){const b=d[p],v=(i=b?.[Un])!==null&&i!==void 0?i:b?.[ue];if(v&&v in o){const w=g[p]||{};g[p]=Lt(o[v],w),f=!0}}f&&(l[u]=g)}}}return l}function Vn(t){if(t.const||t.enum&&t.enum.length===1&&t.enum[0]===!0)return!0;if(t.anyOf&&t.anyOf.length===1)return Vn(t.anyOf[0]);if(t.oneOf&&t.oneOf.length===1)return Vn(t.oneOf[0]);if(t.allOf){const e=n=>Vn(n);return t.allOf.some(e)}return!1}function la(t,e){if(Object.is(t,e))return!0;if(t==null||e==null||typeof t!="object"||typeof e!="object")return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i+=1){const s=n[i];if(!Object.hasOwn(e,s)||!Object.is(t[s],e[s]))return!1}return!0}function Oc(t,e,n,r="customDeep"){if(r==="always")return!0;if(r==="shallow"){const{props:o,state:a}=t;return!la(o,e)||!la(a,n)}const{props:i,state:s}=t;return!se(i,e)||!se(s,n)}function ca(t){const e=Wl(t.map(n=>ne(n)?Le(n):void 0).flat().filter(n=>n!==void 0));return e.length===1?e[0]:e}function cr(t,e,n,r){const{enableOptionalDataFieldForType:i=[]}=U(r,t.globalUiOptions);let s;return ee in e&&Array.isArray(e[ee])?s=ca(e[ee]):W in e&&Array.isArray(e[W])?s=ca(e[W]):s=Le(e),!X0(t,e)&&!n&&!!s&&!Array.isArray(s)&&!!i.find(o=>o===s)}function ua(t,e=!0){const{year:n,month:r,day:i,hour:s=0,minute:o=0,second:a=0}=t,l=Date.UTC(n,r-1,i,s,o,a),c=new Date(l).toJSON();return e?c:c.slice(0,10)}function Rs(t,e=[]){if(!t)return[];let n=[];return Ee in t&&(n=n.concat(t[Ee].map(r=>{const i=`.${e.join(".")}`;return{property:i,message:r,stack:`${i} ${r}`}}))),Object.keys(t).reduce((r,i)=>{if(i!==Ee){const s=t[i];if(Et(s))return r.concat(Rs(s,[...e,i]))}return r},n)}function Ac(t){return we(t)?yn(t,Ct):tr(t)?[t]:xs(sl(fs(t)))}function nx(t){const e=new bc;return t.length&&t.forEach(n=>{const{property:r,message:i}=n,s=r==="."?[]:Ac(r);s.length>0&&s[0]===""&&s.splice(0,1),i&&e.addErrors(i,s)}),e.ErrorSchema}function Be(t,e,n,r){const i=Array.isArray(n)?n:n?.path,s=t===""?[]:[t],o=i?i.concat(...s):s,a=[e.idPrefix,...o].join(e.idSeparator);let l;return e.nameGenerator&&o.length>0&&(l=e.nameGenerator(o,e.idPrefix,r)),{path:o,[de]:a,...l!==void 0&&{name:l}}}function Ec(t){return Object.keys(t).reduce((e,n)=>{if(n==="addError")return e;const r=t[n];return Et(r)?{...e,[n]:Ec(r)}:{...e,[n]:r}},{})}function rx(t){return Object.values(t).every(e=>e!==-1)}function ix(t){const{className:e="form-control",type:n,range:r,value:i,select:s,rootId:o,name:a,disabled:l,readonly:c,autofocus:u,registry:d,onBlur:m,onFocus:g}=t,f=`${o}_${n}`,{SelectWidget:p}=d.widgets,b=P.useCallback(v=>s(n,v),[s,n]);return h.jsx(p,{schema:{type:"integer"},id:f,name:a,className:e,options:{enumOptions:mc(r[0],r[1])},placeholder:n,value:i,disabled:l,readonly:c,autofocus:u,onChange:b,onBlur:m,onFocus:g,registry:d,label:"","aria-describedby":Pe(o)})}function sx(t){const{time:e=!1,disabled:n=!1,readonly:r=!1,options:i,onChange:s,value:o}=t,[a,l]=P.useState(xi(o,e));P.useEffect(()=>{l(xi(o,e))},[e,o]);const c=P.useCallback((g,f)=>{const p={...a,[g]:typeof f>"u"?-1:f};rx(p)?s(ua(p,e)):l(p)},[a,s,e]),u=P.useCallback(g=>{g.preventDefault(),!(n||r)&&s(void 0)},[n,r,s]),d=P.useCallback(g=>{if(g.preventDefault(),n||r)return;const f=xi(new Date().toJSON(),e);s(ua(f,e))},[n,r,e,s]);return{elements:P.useMemo(()=>W0(a,e,i.yearsRange,i.format),[a,e,i.yearsRange,i.format]),handleChange:c,handleClear:u,handleSetNow:d}}function Yt(t){const e=P.useRef(t);return se(t,e.current)||(e.current=t),e.current}function ox(t,e){return t.replace(";base64",`;name=${encodeURIComponent(e)};base64`)}function ax(t){const{name:e,size:n,type:r}=t;return new Promise((i,s)=>{const o=new window.FileReader;o.onerror=s,o.onload=a=>{var l;typeof((l=a.target)===null||l===void 0?void 0:l.result)=="string"?i({dataURL:ox(a.target.result,e),name:e,size:n,type:r}):i({dataURL:null,name:e,size:n,type:r})},o.readAsDataURL(t)})}function lx(t){return Promise.all(Array.from(t).map(ax))}function da(t){return t.reduce((e,n)=>{if(!n)return e;try{const{blob:r,name:i}=$0(n);return[...e,{dataURL:n,name:i,size:r.size,type:r.type}]}catch{return e}},[])}function cx(t,e,n=!1){const r=P.useMemo(()=>n&&t?Array.isArray(t)?t:[t]:[],[t,n]),i=P.useMemo(()=>Array.isArray(t)?da(t):da([t||""]),[t]),s=P.useCallback(async a=>{const c=(await lx(a)).map(u=>u.dataURL||null);e(n?r.concat(...c):c[0])},[r,n,e]),o=P.useCallback(a=>{if(n){const l=r.filter((c,u)=>u!==a);e(l)}else e(void 0)},[r,n,e]);return{filesInfo:i,handleChange:s,handleRemove:o}}function ux(t){if(!t)return"";const e=new Date(t),n=bt(e.getFullYear(),4),r=bt(e.getMonth()+1,2),i=bt(e.getDate(),2),s=bt(e.getHours(),2),o=bt(e.getMinutes(),2),a=bt(e.getSeconds(),2),l=bt(e.getMilliseconds(),3);return`${n}-${r}-${i}T${s}:${o}:${a}.${l}`}function kn(t,e,n=!1){if(!e)return t;const{errors:r,errorSchema:i}=t;let s=Rs(e),o=e;return ge(i)||(o=Lt(i,e,n?"preventDuplicates":!0),s=[...r].concat(s)),{errorSchema:o,errors:s}}function dx(t){const e=t;for(const n in e)if(Object.hasOwn(e,n)){const r=e[n];n===ue&&typeof r=="string"&&r.startsWith("#")?e[n]=Qa+r:e[n]=Ms(r)}return t}function fx(t){return t.map(e=>Ms(e))}function Ms(t){return Array.isArray(t)?fx([...t]):ne(t)?dx({...t}):t}var G;(function(t){t.ArrayItemTitle="Item",t.MissingItems="Missing items definition",t.EmptyArray="No items yet. Use the button below to add some.",t.YesLabel="Yes",t.NoLabel="No",t.CloseLabel="Close",t.ErrorsLabel="Errors",t.NewStringDefault="New Value",t.AddButton="Add",t.AddItemButton="Add Item",t.CopyButton="Copy",t.MoveDownButton="Move down",t.MoveUpButton="Move up",t.RemoveButton="Remove",t.NowLabel="Now",t.ClearLabel="Clear",t.AriaDateLabel="Select a date",t.PreviewLabel="Preview",t.DecrementAriaLabel="Decrease value by 1",t.IncrementAriaLabel="Increase value by 1",t.OptionalObjectAdd="Add data for optional field",t.OptionalObjectRemove="Remove data for optional field",t.OptionalObjectEmptyMsg="No data for optional field",t.Type="Type",t.Value="Value",t.ClearButton="clear input",t.UnknownFieldType="Unknown field type %1",t.OptionPrefix="Option %1",t.TitleOptionPrefix="%1 option %2",t.KeyLabel="%1 Key",t.DeprecatedLabel="%1 (deprecated)",t.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',t.UnsupportedField="Unsupported field schema.",t.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",t.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",t.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",t.FilesInfo="**%1** (%2, %3 bytes)"})(G||(G={}));function hx(t,e){var n=we(t)?gs:sc;return n(t,Dl(e))}function mx(t,e){return t==null?!0:Cl(t,e)}function Ji(){return wc("rjsf-array-item-")}function fa(t){return Array.isArray(t)?t.map(e=>({key:Ji(),item:e})):[]}function Cc(t){return Array.isArray(t)?t.map(e=>e.item):[]}function px(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}function _c(t,e,n,r){let{addable:i}=U(r,t.globalUiOptions);return i!==!1&&(e.maxItems!==void 0?i=n.length<e.maxItems:i=!0),i}function Ic(t,e,n,r){if(typeof t.items=="function")try{return t.items(e,n,r)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${n}:`,i);return}else return t.items}function gx(t,e){const{schemaUtils:n,globalFormOptions:r}=t;let i=e.items;return r.useFallbackUiForUnsupportedType&&!i?i={}:Is(e)&&kf(e)&&(i=e.additionalItems),n.getDefaultFormState(i)}function yx(t){const{schema:e,fieldPathId:n,uiSchema:r,formData:i=[],disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,placeholder:c,onBlur:u,onFocus:d,registry:m,rawErrors:g,name:f,onSelectChange:p}=t,{widgets:b,schemaUtils:v,globalFormOptions:w,globalUiOptions:A}=m,O=v.retrieveSchema(e.items,i),y=r?.items??r,x=mn(O,y),{widget:S="select",title:j,...E}=U(r,A),C=tt(e,S,b),_=j??e.title??f,I=v.getDisplayLabel(e,r,A),T=Yt(Be("",w,n,!0));return h.jsx(C,{id:T[de],name:f,multiple:!0,onChange:p,onBlur:u,onFocus:d,options:{...E,enumOptions:x},schema:e,uiSchema:r,registry:m,value:i,disabled:s,readonly:o,required:l,label:_,hideLabel:!I,placeholder:c,autofocus:a,rawErrors:g,htmlName:T.name})}function bx(t){const{schema:e,fieldPathId:n,uiSchema:r,disabled:i=!1,readonly:s=!1,autofocus:o=!1,required:a=!1,hideError:l,placeholder:c,onBlur:u,onFocus:d,formData:m=[],registry:g,rawErrors:f,name:p,onSelectChange:b}=t,{widgets:v,schemaUtils:w,globalFormOptions:A,globalUiOptions:O}=g,{widget:y,title:x,...S}=U(r,O),j=tt(e,y,v),E=x??e.title??p,C=w.getDisplayLabel(e,r,O),_=Yt(Be("",A,n,!0));return h.jsx(j,{id:_[de],name:p,multiple:!0,onChange:b,onBlur:u,onFocus:d,options:S,schema:e,uiSchema:r,registry:g,value:m,disabled:i,readonly:s,hideError:l,required:a,label:E,hideLabel:!C,placeholder:c,autofocus:o,rawErrors:f,htmlName:_.name})}function xx(t){const{schema:e,uiSchema:n,fieldPathId:r,name:i,disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,onBlur:c,onFocus:u,registry:d,formData:m=[],rawErrors:g,onSelectChange:f}=t,{widgets:p,schemaUtils:b,globalFormOptions:v,globalUiOptions:w}=d,{widget:A="files",title:O,...y}=U(n,w),x=tt(e,A,p),S=O??e.title??i,j=b.getDisplayLabel(e,n,w),E=Yt(Be("",v,r,!0));return h.jsx(x,{options:y,id:E[de],name:i,multiple:!0,onChange:f,onBlur:c,onFocus:u,schema:e,uiSchema:n,value:m,disabled:s,readonly:o,required:l,registry:d,autofocus:a,rawErrors:g,label:S,hideLabel:!j,htmlName:E.name})}function Tc(t){const{itemKey:e,index:n,name:r,disabled:i,hideError:s,readonly:o,registry:a,uiOptions:l,parentUiSchema:c,canAdd:u,canRemove:d=!0,canMoveUp:m,canMoveDown:g,itemSchema:f,itemData:p,itemUiSchema:b,itemFieldPathId:v,itemErrorSchema:w,autofocus:A,onBlur:O,onFocus:y,onChange:x,rawErrors:S,totalItems:j,title:E,handleAddItem:C,handleCopyItem:_,handleRemoveItem:I,handleReorderItems:T}=t,{schemaUtils:N,fields:{ArraySchemaField:F,SchemaField:$},globalUiOptions:R}=a,B=Yt(v),L=F||$,Y=q("ArrayFieldItemTemplate",a,l),re=N.getDisplayLabel(f,b,R),{description:fe}=U(b),ye=!!fe||!!f.description,{orderable:M=!0,removable:le=!0,copyable:te=!1}=l,H={moveUp:M&&m,moveDown:M&&g,copy:te&&u,remove:le&&d,toolbar:!1};H.toolbar=Object.keys(H).some(xe=>H[xe]);const K=P.useCallback(xe=>{C(xe,n+1)},[C,n]),z=P.useCallback(xe=>{_(xe,n)},[_,n]),ie=P.useCallback(xe=>{I(xe,n)},[I,n]),ae=P.useCallback(xe=>{T(xe,n,n-1)},[T,n]),Oe=P.useCallback(xe=>{T(xe,n,n+1)},[T,n]),Ae={children:h.jsx(L,{name:r,title:E,index:n,schema:f,uiSchema:b,formData:p,errorSchema:w,fieldPathId:B,required:px(f),onChange:x,onBlur:O,onFocus:y,registry:a,disabled:i,readonly:o,hideError:s,autofocus:A,rawErrors:S}),buttonsProps:{fieldPathId:B,disabled:i,readonly:o,canAdd:u,hasCopy:H.copy,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:n,totalItems:j,onAddItem:K,onCopyItem:z,onRemoveItem:ie,onMoveUpItem:ae,onMoveDownItem:Oe,registry:a,schema:f,uiSchema:b},itemKey:e,className:"rjsf-array-item",disabled:i,hasToolbar:H.toolbar,index:n,totalItems:j,readonly:o,registry:a,schema:f,uiSchema:b,parentUiSchema:c,displayLabel:re,hasDescription:ye};return h.jsx(Y,{...Ae})}function vx(t){const{schema:e,uiSchema:n={},errorSchema:r,fieldPathId:i,formData:s,name:o,title:a,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:d=!1,hideError:m=!1,registry:g,onBlur:f,onFocus:p,rawErrors:b,onChange:v,keyedFormData:w,handleAddItem:A,handleCopyItem:O,handleRemoveItem:y,handleReorderItems:x}=t,S=e.title||a||o,{schemaUtils:j,fields:E,formContext:C,globalFormOptions:_,globalUiOptions:I}=g,{OptionalDataControlsField:T}=E,N=U(n,I),F=ne(e.items)?e.items:{},$=j.retrieveSchema(F),R=Cc(w),B=cr(g,e,d,n),L=Sn(s),Y=_c(g,e,R,n)&&(!B||L),re=L?w:[],fe=B?" rjsf-optional-array-field":"",ye=t.childFieldPathId??i,M=B?h.jsx(T,{...t,fieldPathId:ye}):void 0,le={canAdd:Y,items:re.map((H,K)=>{const{key:z,item:ie}=H,ae=ie,Oe=j.retrieveSchema(F,ae),Ae=r?r[K]:void 0,xe=Be(K,_,ye),$e=Ic(n,ie,K,C),mt={itemKey:z,index:K,name:o&&`${o}-${K}`,registry:g,uiOptions:N,parentUiSchema:n,hideError:m,readonly:c,disabled:l,required:d,title:S?`${S}-${K+1}`:void 0,canAdd:Y,canMoveUp:K>0,canMoveDown:K<R.length-1,itemSchema:Oe,itemFieldPathId:xe,itemErrorSchema:Ae,itemData:ae,itemUiSchema:$e,autofocus:u&&K===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:w.length,handleAddItem:A,handleCopyItem:O,handleRemoveItem:y,handleReorderItems:x,onChange:v};return h.jsx(Tc,{...mt},z)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${$.type}${fe}`,disabled:l,fieldPathId:i,uiSchema:n,onAddClick:A,readonly:c,required:d,schema:e,title:S,formData:R,rawErrors:b,registry:g,optionalDataControl:M},te=q("ArrayFieldTemplate",g,N);return h.jsx(te,{...le})}function Sx(t){const{schema:e,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,title:a,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:d=!1,hideError:m=!1,registry:g,onBlur:f,onFocus:p,rawErrors:b,keyedFormData:v,onChange:w,handleAddItem:A,handleCopyItem:O,handleRemoveItem:y,handleReorderItems:x}=t;let{formData:S=[]}=t;const j=e.title||a||o,{schemaUtils:E,fields:C,formContext:_,globalFormOptions:I,globalUiOptions:T}=g,N=U(n,T),{OptionalDataControlsField:F}=C,$=cr(g,e,d,n),R=Sn(r),L=(ne(e.items)?e.items:[]).map((K,z)=>E.retrieveSchema(K,S[z])),Y=ne(e.additionalItems)?E.retrieveSchema(e.additionalItems,r):null,re=t.childFieldPathId??s;S.length<L.length&&(S=S.concat(new Array(L.length-S.length)));const fe=R?v:[],ye=$?" rjsf-optional-array-field":"",M=$?h.jsx(F,{...t,fieldPathId:re}):void 0,le=_c(g,e,S,n)&&!!Y&&(!$||R),te={canAdd:le,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${ye}`,disabled:l,fieldPathId:s,formData:r,items:fe.map((K,z)=>{const{key:ie,item:ae}=K,Oe=ae,Ae=z>=L.length,xe=(Ae&&ne(e.additionalItems)?E.retrieveSchema(e.additionalItems,Oe):L[z])||{},$e=Be(z,I,re);let mt;Ae?mt=n.additionalItems:Array.isArray(n.items)?mt=n.items[z]:mt=Ic(n,ae,z,_);const jn=i?i[z]:void 0,On={index:z,itemKey:ie,name:o&&`${o}-${z}`,registry:g,uiOptions:N,parentUiSchema:n,hideError:m,readonly:c,disabled:l,required:d,title:j?`${j}-${z+1}`:void 0,canAdd:le,canRemove:Ae,canMoveUp:z>=L.length+1,canMoveDown:Ae&&z<S.length-1,itemSchema:xe,itemData:Oe,itemUiSchema:mt,itemFieldPathId:$e,itemErrorSchema:jn,autofocus:u&&z===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:v.length,onChange:w,handleAddItem:A,handleCopyItem:O,handleRemoveItem:y,handleReorderItems:x};return h.jsx(Tc,{...On},ie)}),onAddClick:A,readonly:c,required:d,registry:g,schema:e,uiSchema:n,title:j,errorSchema:i,rawErrors:b,optionalDataControl:M},H=q("ArrayFieldTemplate",g,N);return h.jsx(H,{...te})}function wx(t=[]){const e=P.useMemo(()=>Xe(t),[t]),[n,r]=P.useState(()=>({formDataHash:e,keyedFormData:fa(t)}));let{keyedFormData:i,formDataHash:s}=n;if(e!==s){const a=Array.isArray(t)?t:[],l=i||[];i=a.length===l.length?l.map((c,u)=>({key:c.key,item:a[u]})):fa(a),s=e,r({formDataHash:s,keyedFormData:i})}const o=P.useCallback(a=>{const l=Cc(a),c=Xe(l);return r({formDataHash:c,keyedFormData:a}),l},[]);return{keyedFormData:i,updateKeyedFormData:o}}function jx(t){const{schema:e,uiSchema:n,errorSchema:r,fieldPathId:i,registry:s,formData:o,onChange:a}=t,{globalFormOptions:l,schemaUtils:c,translateString:u}=s,{keyedFormData:d,updateKeyedFormData:m}=wx(o),g=t.childFieldPathId??i,f=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const _ in r){const I=parseInt(_);S===void 0||I<S?ce(j,[I],r[_]):I>=S&&ce(j,[I+1],r[_])}}const E={key:Ji(),item:gx(s,e)},C=[...d];S!==void 0?C.splice(S,0,E):C.push(E),a(m(C),g.path,j)},[d,s,e,a,m,r,g]),p=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const _ in r){const I=parseInt(_);I<=S?ce(j,[I],r[_]):I>S&&ce(j,[I+1],r[_])}}const E={key:Ji(),item:Fs(d[S].item)},C=[...d];S!==void 0?C.splice(S+1,0,E):C.push(E),a(m(C),g.path,j)},[d,a,m,r,g]),b=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const C in r){const _=parseInt(C);_<S?ce(j,[_],r[C]):_>S&&ce(j,[_-1],r[C])}}const E=d.filter((C,_)=>_!==S);a(m(E),g.path,j)},[d,a,m,r,g]),v=P.useCallback((x,S,j)=>{x&&(x.preventDefault(),x.currentTarget.blur());let E;if(r){E={};for(const I in r){const T=parseInt(I);T==S?ce(E,[j],r[S]):T==j?ce(E,[S],r[j]):ce(E,[I],r[T])}}function C(){const I=d.slice();return I.splice(S,1),I.splice(j,0,d[S]),I}const _=C();a(m(_),g.path,E)},[d,a,m,r,g]),w=P.useCallback((x,S,j,E)=>{a(x===void 0?null:x,S,j,E)},[a]),A=P.useCallback(x=>{a(x,g.path,void 0,g?.[de])},[a,g]),O={...t,formData:o,fieldPathId:g,onSelectChange:A},y={...t,handleAddItem:f,handleCopyItem:p,handleRemoveItem:b,handleReorderItems:v,keyedFormData:d,onChange:w};if(!(ln in e)){if(!l.useFallbackUiForUnsupportedType){const S=U(n),j=q("UnsupportedFieldTemplate",s,S);return h.jsx(j,{schema:e,fieldPathId:i,reason:u(G.MissingItems),registry:s})}const x={...e,[ln]:{type:void 0}};O.schema=x,y.schema=x}return c.isMultiSelect(O.schema)?h.jsx(yx,{...O}):uc(n)?h.jsx(bx,{...O}):Is(O.schema)?h.jsx(Sx,{...y}):c.isFilesArray(O.schema,n)?h.jsx(xx,{...O}):h.jsx(vx,{...y})}function Ox(t){const{schema:e,name:n,uiSchema:r,fieldPathId:i,formData:s,registry:o,required:a,disabled:l,readonly:c,hideError:u,autofocus:d,title:m,onChange:g,onFocus:f,onBlur:p,rawErrors:b}=t,{title:v}=e,{widgets:w,translateString:A,globalUiOptions:O}=o,{widget:y="checkbox",title:x,label:S=!0,enumNames:j,...E}=U(r,O),C=tt(e,y,w),_=A(G.YesLabel),I=A(G.NoLabel);let T;const N=x??v??m??n;if(Array.isArray(e.oneOf))T=mn({oneOf:e.oneOf.map($=>{if(ne($))return{...$,title:$.title||($.const===!0?_:I)}}).filter($=>$)},r);else{const $=e.enum??[!0,!1];!j&&$.length===2&&$.every(R=>typeof R=="boolean")?T=[{value:$[0],label:$[0]?_:I},{value:$[1],label:$[1]?_:I}]:T=mn({enum:$},r)}const F=P.useCallback(($,R,B)=>g($,i.path,R,B),[g,i]);return h.jsx(C,{options:{...E,enumOptions:T},schema:e,uiSchema:r,id:i.$id,name:n,onChange:F,onFocus:f,onBlur:p,label:N,hideLabel:!S,value:s,required:a,disabled:l,readonly:c,hideError:u,registry:o,autofocus:d,rawErrors:b,htmlName:i.name})}function Ax(t){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:t}}function Ex(t){const e=typeof t;return e==="string"||e==="number"||e==="boolean"?e:e==="object"?Array.isArray(t)?"array":"object":"string"}function Cx(t,e){switch(e){case"string":return String(t);case"number":{const n=Number(t);return isNaN(n)?0:n}case"boolean":return!!t;default:return t}}function _x(t){const{id:e,formData:n,displayLabel:r=!0,schema:i,name:s,uiSchema:o,required:a,disabled:l=!1,readonly:c=!1,onBlur:u,onFocus:d,registry:m,fieldPathId:g,onChange:f,errorSchema:p}=t,{translateString:b,fields:v,globalFormOptions:w}=m,[A,O]=P.useState(Ex(n)),y=U(o),x=Yt(Be("__internal_type_selector",w,g)),S=b(G.Type),j=P.useMemo(()=>Ax(S),[S]),E=I=>{I!=null&&(O(I),f(Cx(n,I),g.path,p,e))};if(!w.useFallbackUiForUnsupportedType){const{reason:I=b(G.UnknownFieldType,[String(i.type)])}=t,T=q("UnsupportedFieldTemplate",m,y);return h.jsx(T,{schema:i,fieldPathId:g,reason:I,registry:m})}const C=q("FallbackFieldTemplate",m,y),{SchemaField:_}=v;return h.jsx(C,{schema:i,registry:m,typeSelector:h.jsx(_,{fieldPathId:x,name:`${s}__fallback_type`,schema:j,formData:A,onChange:E,onBlur:u,onFocus:d,registry:m,hideLabel:!r,disabled:l,readonly:c,required:a},n?Xe(n):"__empty__"),schemaField:h.jsx(_,{...t,schema:{type:A,title:b(G.Value),...A==="object"&&{additionalProperties:!0}}})})}function Ix(t,e){return yn(e,function(n){return t[n]})}function Tx(t){return t==null?[]:Ix(t,ze(t))}var Nx=Math.max;function Fx(t,e,n,r){t=Ht(t)?t:Tx(t),n=n?kl(n):0;var i=t.length;return n<0&&(n=Nx(i+n,0)),_t(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Vl(t,e,n)>-1}var Px=Math.min;function $x(t,e,n){for(var r=_s,i=t[0].length,s=t.length,o=s,a=Array(s),l=1/0,c=[];o--;){var u=t[o];l=Px(u.length,l),a[o]=i>=120&&u.length>=120?new Ut(o&&u):void 0}u=t[0];var d=-1,m=a[0];e:for(;++d<i&&c.length<l;){var g=u[d],f=g;if(g=g!==0?g:0,!(m?Zn(m,f):r(c,f))){for(o=s;--o;){var p=a[o];if(!(p?Zn(p,f):r(t[o],f)))continue e}m&&m.push(f),c.push(g)}}return c}function Dx(t){return Jn(t)?t:[]}var ha=zr(function(t){var e=yn(t,Dx);return e.length&&e[0]===t[0]?$x(e):[]});function Or(t,e){return Wr(t,e)}function Nc(t){return t===void 0}var et;(function(t){t.ROW="ui:row",t.COLUMN="ui:col",t.COLUMNS="ui:columns",t.CONDITION="ui:condition"})(et||(et={}));var zn;(function(t){t.ALL="all",t.SOME="some",t.NONE="none"})(zn||(zn={}));const kx=/^\$lookup=(.+)/,vi="layoutGrid";function ma(t,e){return t??e}function Rx(t){return/^\d+?$/.test(t)}const Ot=Ps();function Mx(t,e,n,r,i){const s=D(n,[Mi],{}),o=D(n,t),a={...D(o,[St],{}),...e,...s},l={...o};ge(a)||ce(l,[St],a),ge(s)||ce(l,[Mi],s);let{readonly:c}=U(l);return(i===!0||Nc(c)&&r===!0)&&(c=!0,X(a,ei)?ce(l,[St,ei],!0):ce(l,`ui:${ei}`,!0)),{fieldUiSchema:l,uiReadonly:c}}function Ux(t,e,n="$0m3tH1nG Un3xP3cT3d"){const r=zi([e]).sort(),i=zi([n]).sort();switch(t){case zn.ALL:return Or(r,i);case zn.SOME:return ha(r,i).length>0;case zn.NONE:return ha(r,i).length===0;default:return!1}}function Zr(t,e,n){let r={},i=t[e];if(Et(i)){const{children:s,className:o,...a}=i;if(i=s,o){const c=o.split(" ").map(u=>ks(n,u,u)).join(" ");r={...a,className:c}}else r=a}if(!Array.isArray(i))throw new TypeError(`Expected array for "${e}" in ${JSON.stringify(t)}`);return{children:i,gridProps:r}}function pa(t,e,n){let r;if(Rx(n)&&t&&t?.type==="array"&&X(t,ln)){const i=Number(n),s=t[ln];Array.isArray(s)?i>s.length?r=El(s):r=s[i]:r=s,e={[de]:e[de],path:[...e.path.slice(0,e.path.length-1),i]}}return{rawSchema:r,fieldPathId:e}}function Lx(t,e,n,r,i){const{schemaUtils:s,globalFormOptions:o}=t;let a=n,l=i;const c=e.split("."),u=c.pop();let d=s.retrieveSchema(a,r),m=r,g=d.readOnly;c.forEach(b=>{if(l=Be(b,o,l),X(d,oe))a=D(d,[oe,b],{});else if(d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee,w=s.findSelectedOptionInXxxOf(d,b,v,m);a=D(w,[oe,b],{})}else{const v=pa(d,l,b);a=v.rawSchema??{},l=v.fieldPathId}m=D(m,b,{}),d=s.retrieveSchema(a,m),g=ma(d.readOnly,g)});let f,p=!1;if(ge(d)&&(d=void 0),d&&u){if(d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee;d=s.findSelectedOptionInXxxOf(d,u,v,m)}l=Be(u,o,l),p=d!==void 0&&Array.isArray(d.required)&&Fx(d.required,u);const b=pa(d,l,u);if(b.rawSchema?(d=b.rawSchema,l=b.fieldPathId):(d=D(d,[oe,u]),d=d&&s.retrieveSchema(d)),g=ma(d?.readOnly,g),d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee,w=He(d);f={options:d[v],hasDiscriminator:!!w}}}return{schema:d,isRequired:p,isReadonly:g,optionsInfo:f,fieldPathId:l}}function Bx(t,e){let n=t;return _t(n)&&(n=ks(e,n)),nr(n)?n:null}function qx(t,e){let n,r=null,i={},s;if(_t(e)||Nc(e))n=e??"";else{const{name:o="",render:a,...l}=e;n=o,i=l,ge(i)||hx(i,(c,u)=>{if(_t(c)){const d=kx.exec(c);if(Array.isArray(d)&&d.length>1){const m=d[1];i[u]=ks(t,m,m)}}}),r=Bx(a,t),!o&&r&&(s=h.jsx(r,{...l,"data-testid":Ot.uiComponent}))}return{name:n,UIComponent:r,uiProps:i,rendered:s}}function Xr(t){const{childrenLayoutGridSchemaId:e,...n}=t,{registry:r,schema:i,formData:s}=n,{schemaUtils:o}=r,a=o.retrieveSchema(i,s);return e.map(l=>P.createElement(Us,{...n,key:`layoutGrid-${Xe(l)}`,schema:a,layoutGridSchema:l}))}function Vx(t){const{layoutGridSchema:e,...n}=t,{formData:r,registry:i}=n,{children:s,gridProps:o}=Zr(e,et.CONDITION,i),{operator:a,field:l="",value:c}=o,u=D(r,l,null);return Ux(a,u,c)?h.jsx(Xr,{...n,childrenLayoutGridSchemaId:s}):null}function zx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Zr(e,et.COLUMN,r),a=U(i),l=q("GridTemplate",r,a);return h.jsx(l,{column:!0,"data-testid":Ot.col,...o,children:h.jsx(Xr,{...n,childrenLayoutGridSchemaId:s})})}function Wx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Zr(e,et.COLUMNS,r),a=U(i),l=q("GridTemplate",r,a);return s.map(c=>h.jsx(l,{column:!0,"data-testid":Ot.col,...o,children:h.jsx(Xr,{...n,childrenLayoutGridSchemaId:[c]})},`column-${Xe(c)}`))}function Hx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Zr(e,et.ROW,r),a=U(i),l=q("GridTemplate",r,a);return h.jsx(l,{...o,"data-testid":Ot.row,children:h.jsx(Xr,{...n,childrenLayoutGridSchemaId:s})})}function Kx(t){const{gridSchema:e,schema:n,uiSchema:r,errorSchema:i,fieldPathId:s,onBlur:o,onFocus:a,formData:l,readonly:c,registry:u,layoutGridSchema:d,...m}=t,{onChange:g}=m,{fields:f}=u,{SchemaField:p,LayoutMultiSchemaField:b}=f,v=qx(u,e),{name:w,UIComponent:A,uiProps:O}=v,{schema:y,isRequired:x,isReadonly:S,optionsInfo:j,fieldPathId:E}=Lx(u,w,n,l,s),C=Yt(E);if(v.rendered)return v.rendered;if(y){const _=j?.hasDiscriminator?b:p,{fieldUiSchema:I,uiReadonly:T}=Mx(w,O,r,S,c);return h.jsx(_,{"data-testid":j?.hasDiscriminator?Ot.layoutMultiSchemaField:Ot.field,...m,name:w,required:x,readonly:T,schema:y,uiSchema:I,errorSchema:D(i,w),fieldPathId:C,formData:D(l,w),onChange:g,onBlur:o,onFocus:a,options:j?.options,registry:u})}return A?h.jsx(A,{"data-testid":Ot.uiComponent,...m,name:w,required:x,formData:l,readOnly:!!S||c,errorSchema:i,uiSchema:r,schema:n,fieldPathId:s,onBlur:o,onFocus:a,registry:u,...O}):null}function Us(t){const{uiSchema:e}=t;let{layoutGridSchema:n}=t;const r=U(e);if(!n&&vi in r&&ne(r[vi])&&(n=r[vi]),ne(n)){if(et.ROW in n)return h.jsx(Hx,{...t,layoutGridSchema:n});if(et.COLUMN in n)return h.jsx(zx,{...t,layoutGridSchema:n});if(et.COLUMNS in n)return h.jsx(Wx,{...t,layoutGridSchema:n});if(et.CONDITION in n)return h.jsx(Vx,{...t,layoutGridSchema:n})}return h.jsx(Kx,{...t,gridSchema:n})}Us.TEST_IDS=Ot;function Gx(t){const{fieldPathId:e,title:n,schema:r,uiSchema:i,required:s,registry:o,name:a}=t,l=U(i,o.globalUiOptions),{title:c}=l,{title:u}=r,d=c||n||u||a;if(!d)return null;const m=q("TitleFieldTemplate",o,l);return h.jsx(m,{id:Jr(e),title:d,required:s,schema:r,uiSchema:i,registry:o})}function Si(t,e,n){const r="!@#!@$@#$!@$#";return t.map(({schema:s})=>s).find(s=>{const o=D(s,[oe,e]);return D(o,kt,D(o,Ne,r))===n})}function ga(t,e,n,r,i){const s=e.map(l=>n.retrieveSchema(l,i));let o=t;X(t,W)?o={...t,[W]:s}:X(t,ee)&&(o={...t,[ee]:s});const a=mn(o,r);if(!a)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return a}function Yx(t){const{name:e,baseType:n,disabled:r=!1,formData:i,fieldPathId:s,onBlur:o,onChange:a,options:l,onFocus:c,registry:u,uiSchema:d,schema:m,autofocus:g,readonly:f,required:p,errorSchema:b,hideError:v=!1}=t,{widgets:w,schemaUtils:A,globalUiOptions:O}=u,[y,x]=P.useState(ga(m,l,A,d,i)),S=D(s,de),j=He(m),E=q("FieldErrorTemplate",u,l),C=q("FieldTemplate",u,l),_=Xe(m),I=Xe(l),T=d?Xe(d):"",N=i?Xe(i):"";P.useEffect(()=>{x(ga(m,l,A,d,i))},[_,I,A,T,N]);const{widget:F=j?"radio":"select",title:$="",placeholder:R="",optionsSchemaSelector:B=j,hideError:L,...Y}=U(d);if(!B)throw new Error("No selector field provided for the LayoutMultiSchemaField");const re=D(i,B);let fe=D(y[0]?.schema,[oe,B],{});const ye=Si(y,B,re);fe=fe?.type?fe:{...fe,type:ye?.type||n};const M=tt(fe,F,w),le=L===void 0?v:!!L,te=D(b,[Ee],[]),H=dn(b,[Ee]),K=A.getDisplayLabel(m,d,O),z=Oe=>{const Ae=Si(y,B,Oe),xe=Si(y,B,re);let $e=A.sanitizeDataForNewSchema(Ae,xe,i);$e&&Ae&&($e=A.getDefaultFormState(Ae,$e,"excludeObjectChildren")),$e&&ce($e,B,Oe),a($e,s.path,void 0,S)},ie={enumOptions:y,...Y},ae=!le&&te.length>0?h.jsx(E,{fieldPathId:s,schema:m,errors:te,registry:u}):void 0;return h.jsx(C,{fieldPathId:s,id:S,schema:m,label:($||m.title)??"",disabled:r||Array.isArray(y)&&ge(y),uiSchema:d,required:p,readonly:!!f,registry:u,displayLabel:K,errors:ae,onChange:a,onKeyRename:Sr,onKeyRenameBlur:Sr,onRemoveProperty:Sr,children:h.jsx(M,{id:S,name:e,schema:m,label:($||m.title)??"",disabled:r||Array.isArray(y)&&ge(y),uiSchema:d,autofocus:g,readonly:f,required:p,registry:u,multiple:!1,rawErrors:te,hideError:le,hideLabel:!K,errorSchema:H,placeholder:R,onChange:z,onBlur:o,onFocus:c,value:re,options:ie,htmlName:s.name})})}class ya extends P.Component{constructor(e){super(e);const{formData:n,options:r,registry:{schemaUtils:i}}=this.props,s=r.map(o=>i.retrieveSchema(o,n));this.state={retrievedOptions:s,selectedOption:this.getMatchingOption(0,n,s)}}componentDidUpdate(e,n){const{formData:r,options:i,fieldPathId:s}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!se(e.options,i)){const{registry:{schemaUtils:l}}=this.props,c=i.map(u=>l.retrieveSchema(u,r));a={selectedOption:o,retrievedOptions:c}}if(!se(r,e.formData)&&s.$id===e.fieldPathId.$id){const{retrievedOptions:l}=a,c=this.getMatchingOption(o,r,l);n&&c!==o&&(a={selectedOption:c,retrievedOptions:l})}a!==this.state&&this.setState(a)}getMatchingOption(e,n,r){const{schema:i,registry:{schemaUtils:s}}=this.props,o=He(i);return s.getClosestMatchingOption(n,r,e,o)}onOptionChange=e=>{const{selectedOption:n,retrievedOptions:r}=this.state,{formData:i,onChange:s,registry:o,fieldPathId:a}=this.props,{schemaUtils:l}=o,c=e!==void 0?parseInt(e,10):-1;if(c===n)return;const u=c>=0?r[c]:void 0,d=n>=0?r[n]:void 0;let m=l.sanitizeDataForNewSchema(u,d,i);u&&(m=l.getDefaultFormState(u,m,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{s(m,a.path,void 0,this.getFieldId())})};getFieldId(){const{fieldPathId:e,schema:n}=this.props;return`${e.$id}${n.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:n=!1,errorSchema:r={},formData:i,onBlur:s,onFocus:o,readonly:a,required:l=!1,registry:c,schema:u,uiSchema:d}=this.props,{widgets:m,fields:g,translateString:f,globalUiOptions:p,schemaUtils:b}=c,{SchemaField:v}=g,w=q("MultiSchemaFieldTemplate",c,p),A=cr(c,u,l,d),O=Sn(i),{selectedOption:y,retrievedOptions:x}=this.state,{widget:S="select",placeholder:j,autofocus:E,autocomplete:C,title:_=u.title,...I}=U(d,p),T=tt({type:"number"},S,m),N=D(r,Ee,[]),F=dn(r,[Ee]),$=b.getDisplayLabel(u,d,p),R=y>=0&&x[y]||null;let B;if(R){const{required:te}=u;B=te?lt({required:te},R):R}let L=[];W in u&&d&&W in d?Array.isArray(d[W])?L=d[W]:console.warn(`uiSchema.oneOf is not an array for "${_||e}"`):ee in u&&d&&ee in d&&(Array.isArray(d[ee])?L=d[ee]:console.warn(`uiSchema.anyOf is not an array for "${_||e}"`));let Y=d;y>=0&&L.length>y&&(Y=L[y]);const re=_?G.TitleOptionPrefix:G.OptionPrefix,fe=_?[_]:[],ye=x.map((te,H)=>{const{title:K=te.title}=U(L[H]);return{label:K||f(re,fe.concat(String(H+1))),value:H}}),M=!A||O?h.jsx(T,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:o,disabled:n||ge(ye),multiple:!1,rawErrors:N,errorSchema:F,value:y>=0?y:void 0,options:{enumOptions:ye,...I},registry:c,placeholder:j,autocomplete:C,autofocus:E,label:_??e,hideLabel:!$,readonly:a}):void 0,le=B&&B.type!=="null"&&h.jsx(v,{...this.props,schema:B,uiSchema:Y})||null;return h.jsx(w,{schema:u,registry:c,uiSchema:d,selector:M,optionSchemaField:le})}}const Jx=/\.([0-9]*0)*$/,Zx=/[0.]0*$/;function Xx(t){const{registry:e,onChange:n,formData:r,value:i}=t,[s,o]=P.useState(i),{StringField:a}=e.fields;let l=r;const c=P.useCallback((u,d,m,g)=>{o(u),`${u}`.charAt(0)==="."&&(u=`0${u}`);const f=typeof u=="string"&&u.match(Jx)?so(u.replace(Zx,"")):so(u);n(f,d,m,g)},[n]);if(typeof s=="string"&&typeof l=="number"){const u=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);s.match(u)&&(l=s)}return h.jsx(a,{...t,formData:l,onChange:c})}function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Je.apply(null,arguments)}const hr=["strong","em","del","mark"],ba=[["**",hr[0]],["__",hr[0]],["~~",hr[2]],["==",hr[3]],["*","em"],["_","em"]];function Qx(t,e){for(var n=1,r=e+1;r<t.length&&n>0;)t[r]!=="\\"?(t[r]==="["&&n++,t[r]==="]"&&n--,r++):r+=2;if(n===0&&r<t.length&&(t[r]==="("||t[r]==="[")){var i=t[r]==="("?")":"]",s=1;for(r++;r<t.length&&s>0;)t[r]!=="\\"?(t[r]==="("&&i===")"&&s++,t[r]===i&&s--,r++):r+=2;if(s===0)return r}return-1}function ev(t,e){if(!e||!e.inline&&!e.simple)return null;var n=t[0];if(n!=="*"&&n!=="_"&&n!=="~"&&n!=="=")return null;for(var r="",i=0,s="",o=0;o<6;o++){var a=ba[o][0];if(t.startsWith(a)&&t.length>=2*a.length){r=a,i=a.length,s=ba[o][1];break}}if(!r)return null;for(var l=i,c=!1,u=!1,d="",m=0,g="",f=!1,p="";l<t.length;){var b=t[l];if(f)g+=b,f=!1,p=b,l++;else if(b!=="\\")if(b!=="`"||m!==0){if(b==="["&&!c&&m===0){var v=Qx(t,l);if(v!==-1){g+=t.slice(l,v),l=v,p=t[v-1];continue}}if(u)g+=b,d?b===d&&(d=""):b==='"'||b==="'"?d=b:b===">"&&(u=!1),p=b,l++;else if(b!=="<"||c){if(b===`
4
4
  `&&p===`