uigraph 1.0.0 → 1.0.2

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 (323) hide show
  1. package/README.md +30 -51
  2. package/dist/bin.mjs +1608 -59037
  3. package/dist/viewer/assets/abnfDiagram-VCTEODGH-D7zWJuPJ.js +1 -0
  4. package/dist/viewer/assets/actor-avatar-Bu-mKKXB.js +1 -0
  5. package/dist/viewer/assets/{api-adapters-CnQpLiWI.js → api-adapters-tfr51BsS.js} +1 -1
  6. package/dist/viewer/assets/{api-endpoints-DCA5GNpC.js → api-endpoints-D-Whnnwd.js} +9 -9
  7. package/dist/viewer/assets/{api-group-endpoints-page-Di42W69y.js → api-group-endpoints-page-B9R1EI4i.js} +9 -9
  8. package/dist/viewer/assets/{arc-Cn8owoDw.js → arc-DauzQXFu.js} +1 -1
  9. package/dist/viewer/assets/architectureDiagram-5GKGNRK7-CXzgHd-c.js +36 -0
  10. package/dist/viewer/assets/{arrow-left-DWcMgM2U.js → arrow-left-DpQqmf17.js} +1 -1
  11. package/dist/viewer/assets/avatar-DAFUyk1i.js +43 -0
  12. package/dist/viewer/assets/badge-hR3QvPWv.js +1 -0
  13. package/dist/viewer/assets/better-delete-confirmation-modal-CGEQ5O4X.js +1 -0
  14. package/dist/viewer/assets/better-dialog-DcIxFWwk.js +1 -0
  15. package/dist/viewer/assets/{blockDiagram-I7D4REHJ-CbYzOsL_.js → blockDiagram-I7D4REHJ-CFHWUw4z.js} +2 -2
  16. package/dist/viewer/assets/{brands-Bd4RklRx.js → brands-DtmA1AhP.js} +1 -1
  17. package/dist/viewer/assets/button-DZj74qS7.js +1 -0
  18. package/dist/viewer/assets/{c4Diagram-7LVT6UL2-CLkVbphC.js → c4Diagram-7LVT6UL2-BHSggPKI.js} +6 -6
  19. package/dist/viewer/assets/{calendar-C0xdI_ag.js → calendar-Bolgc8E5.js} +1 -1
  20. package/dist/viewer/assets/channel-CNRSofFP.js +1 -0
  21. package/dist/viewer/assets/{check-XjanpAFg.js → check-BpmCQNbj.js} +1 -1
  22. package/dist/viewer/assets/checkbox-CFJfXL6R.js +1 -0
  23. package/dist/viewer/assets/{chevron-down-R7pQzyLD.js → chevron-down-DDsUE_xz.js} +1 -1
  24. package/dist/viewer/assets/{chevron-up-CRPypfOs.js → chevron-up-DVznKMGv.js} +1 -1
  25. package/dist/viewer/assets/{chunk-2Q5K7J3B-CcvtugCu.js → chunk-2Q5K7J3B-CNfz5YDQ.js} +1 -1
  26. package/dist/viewer/assets/{chunk-5VM5RSS4-CpZHHr12.js → chunk-5VM5RSS4-CwIhjvMe.js} +1 -1
  27. package/dist/viewer/assets/{chunk-F27PBJKO-DeAl4iOc.js → chunk-F27PBJKO-YFexFJof.js} +1 -1
  28. package/dist/viewer/assets/{chunk-IMKFNOWR-BfrPe7pS.js → chunk-IMKFNOWR-GY2yrvuo.js} +1 -1
  29. package/dist/viewer/assets/{chunk-JWPE2WC7-DDjyvUmZ.js → chunk-JWPE2WC7-xd0JGvne.js} +1 -1
  30. package/dist/viewer/assets/chunk-OB3PAWPO-DJIP1M4r.js +12 -0
  31. package/dist/viewer/assets/{chunk-POPQ4Y6H-DkDb0mzz.js → chunk-POPQ4Y6H-Bh6rizEy.js} +1 -1
  32. package/dist/viewer/assets/{chunk-SVP7TREG-D-K2XIGs.js → chunk-SVP7TREG-DtNrjvpq.js} +1 -1
  33. package/dist/viewer/assets/{chunk-TICWLB2K-DWMQQx6z.js → chunk-TICWLB2K-DrERwtw8.js} +1 -1
  34. package/dist/viewer/assets/{chunk-XXDRQBXY-DfkljAyM.js → chunk-XXDRQBXY-fYo04iwY.js} +1 -1
  35. package/dist/viewer/assets/{circle-alert-pm13M-Ef.js → circle-alert-Bl7DXYD_.js} +1 -1
  36. package/dist/viewer/assets/classDiagram-ZZMXUADV-D7PO-ME9.js +1 -0
  37. package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-D7PO-ME9.js +1 -0
  38. package/dist/viewer/assets/color-input-ClkkG_kZ.js +11 -0
  39. package/dist/viewer/assets/{common-Y7ySZBdh.js → common-DLCsGQ-t.js} +1 -1
  40. package/dist/viewer/assets/{component-icons-D1BDAuEt.js → component-icons-MJ61E9nt.js} +2 -2
  41. package/dist/viewer/assets/{copy-CN4K2f_R.js → copy-DMJJonQF.js} +1 -1
  42. package/dist/viewer/assets/cose-bilkent-JH36ORCC-Dplz8nVT.js +1 -0
  43. package/dist/viewer/assets/cross-button-D5qst1tj.js +1 -0
  44. package/dist/viewer/assets/{cynefin-OW5HDTMX-yz-uw9Kz.js → cynefin-OW5HDTMX-DiBs4CI8.js} +1 -1
  45. package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-COXS8-dI.js +62 -0
  46. package/dist/viewer/assets/{dagre-GXQ25YYZ-zjZDwXOe.js → dagre-GXQ25YYZ-K8qvfG8D.js} +2 -2
  47. package/dist/viewer/assets/dashboard-diagrams-page-Cb0xNr4W.js +2 -0
  48. package/dist/viewer/assets/dashboard-diagrams-page-inner-CD--zr5q.js +1 -0
  49. package/dist/viewer/assets/dashboard-docs-page-BfWR9Ai9.js +2 -0
  50. package/dist/viewer/assets/dashboard-docs-page-inner-BLbX-YwF.js +67 -0
  51. package/dist/viewer/assets/dashboard-layout-sTeeHNsZ.js +1 -0
  52. package/dist/viewer/assets/dashboard-lens-layout-D-tu_4kn.js +1 -0
  53. package/dist/viewer/assets/dashboard-map-frame-page-7pDmbTSe.js +1 -0
  54. package/dist/viewer/assets/dashboard-plans-page-CfwOZ34A.js +1 -0
  55. package/dist/viewer/assets/dashboard-service-apis-k93fjW51.js +1 -0
  56. package/dist/viewer/assets/{dashboard-service-diagrams-CIjk95Jk.js → dashboard-service-diagrams-BIWUxX-Y.js} +3 -3
  57. package/dist/viewer/assets/dashboard-service-docs-CnniTD6Q.js +1 -0
  58. package/dist/viewer/assets/{dashboard-service-overview-CzePVPjl.js → dashboard-service-overview-CGBu4omY.js} +5 -5
  59. package/dist/viewer/assets/dashboard-services-DEscIO2O.js +1 -0
  60. package/dist/viewer/assets/{db-type-badge-DOgu1Pyc.js → db-type-badge-UbPgpwQf.js} +2 -2
  61. package/dist/viewer/assets/debounce-Cp8eREM4-D7o-Pzb-.js +2 -0
  62. package/dist/viewer/assets/{dependencies-CYdEztHw.js → dependencies-DK2GDlhQ.js} +1 -1
  63. package/dist/viewer/assets/{dependency-graph-DbyfN-rC.js → dependency-graph-xBEnCS0J.js} +3 -3
  64. package/dist/viewer/assets/{diagram-S7CK7UJ4-q-NHkUCx.js → diagram-S7CK7UJ4-D-liadVe.js} +2 -2
  65. package/dist/viewer/assets/diagram-UQ7AKVKN-CnA8mgXp.js +41 -0
  66. package/dist/viewer/assets/{diagram-VSXAHHWV-DZc1kHGx.js → diagram-VSXAHHWV-Ck7dgRFR.js} +2 -2
  67. package/dist/viewer/assets/diagram-VX7I27RA-Cm1LHbu3.js +24 -0
  68. package/dist/viewer/assets/diagram-Z3DM3KII-DV3yBUCB.js +24 -0
  69. package/dist/viewer/assets/diagram-live-preview-DzJ7Nxp1.js +2 -0
  70. package/dist/viewer/assets/{diagram-portal-page-CWxuok9E.js → diagram-portal-page-gguGLULH.js} +24 -24
  71. package/dist/viewer/assets/{diagrams-C1xkRPqT.js → diagrams-BqBSv2eb.js} +4 -4
  72. package/dist/viewer/assets/dialog-D7wzTt0L.js +6 -0
  73. package/dist/viewer/assets/{doc-file-content-B06roi8L.js → doc-file-content-Be0au9Vo.js} +4 -4
  74. package/dist/viewer/assets/{download-CLdCXVsO.js → download-DhyZ3g4F.js} +1 -1
  75. package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BXbHVQvG.js +1 -0
  76. package/dist/viewer/assets/{editor-vqK4qAnB.js → editor-F9o4zoeB.js} +2 -2
  77. package/dist/viewer/assets/{erDiagram-RLTQ6QDP-BWuA-aqV.js → erDiagram-RLTQ6QDP-DMfiWput.js} +2 -2
  78. package/dist/viewer/assets/{file-text-BvszilVL.js → file-text-BFqJQ67P.js} +1 -1
  79. package/dist/viewer/assets/flow-diagram-preview-B83UU1n_.js +1 -0
  80. package/dist/viewer/assets/{flowDiagram-HODETNUW-Db0QtNj4.js → flowDiagram-HODETNUW-BNFS2Mkr.js} +1 -1
  81. package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-DFDsYJNp.js +292 -0
  82. package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-BVHabPDp.js +106 -0
  83. package/dist/viewer/assets/global-loader-XJO9_e0l.js +1 -0
  84. package/dist/viewer/assets/{globe-Jl6eIZmG.js → globe-CJ35KsQW.js} +1 -1
  85. package/dist/viewer/assets/gql-FFIj8zdp.js +1 -0
  86. package/dist/viewer/assets/{grid-scroll-body-CPqSxU6-.js → grid-scroll-body-DC5pYDPJ.js} +2 -2
  87. package/dist/viewer/assets/iconBase-DtqdW2XR.js +1 -0
  88. package/dist/viewer/assets/index-B6MxYIzs.js +1 -0
  89. package/dist/viewer/assets/index-BC5xdBQU.js +48 -0
  90. package/dist/viewer/assets/index-BIrx3oY4.js +1 -0
  91. package/dist/viewer/assets/{index-jm22RWpY.js → index-BZGsDmUx.js} +5 -5
  92. package/dist/viewer/assets/{index-Poftp9f1.js → index-BZXhpoWr.js} +4 -4
  93. package/dist/viewer/assets/index-Bn2bqqMd.js +1 -0
  94. package/dist/viewer/assets/{index-HU5pz3kj.js → index-BpCVYTvP.js} +36 -36
  95. package/dist/viewer/assets/{index-Bt2YHgxl.js → index-CBOYhBKJ.js} +1 -1
  96. package/dist/viewer/assets/index-CH7cEAxj.js +17 -0
  97. package/dist/viewer/assets/index-CIf0GId3.js +74 -0
  98. package/dist/viewer/assets/{index-D7MEHpJf.js → index-Ck66Ic_p.js} +4 -4
  99. package/dist/viewer/assets/index-Cp9mIQ8F.js +1 -0
  100. package/dist/viewer/assets/{index-c6Bxcoqm.js → index-DDmBuMKI.js} +1 -1
  101. package/dist/viewer/assets/{index-BSyJbFDG.js → index-DY3BFyb6.js} +1 -1
  102. package/dist/viewer/assets/{index-BS94XVnd.js → index-DkzZ-ZvR.js} +1 -1
  103. package/dist/viewer/assets/{index-C_43VC19.js → index-PglMbhys.js} +1 -1
  104. package/dist/viewer/assets/infoDiagram-27XIBGKW-CG-wwxBf.js +2 -0
  105. package/dist/viewer/assets/input--C59pq6j.js +1 -0
  106. package/dist/viewer/assets/{ishikawaDiagram-5VMMS53U-C4PzFnZ4.js → ishikawaDiagram-5VMMS53U-BlgV7ceJ.js} +2 -2
  107. package/dist/viewer/assets/{journeyDiagram-3NMN7TZE-Dpn3bBNo.js → journeyDiagram-3NMN7TZE-Cn03_Xl6.js} +2 -2
  108. package/dist/viewer/assets/{kanban-definition-UXKFOSKX-CJ99H4G6.js → kanban-definition-UXKFOSKX-CJogvDPY.js} +6 -6
  109. package/dist/viewer/assets/{layout-Bfvxt_D5.js → layout-B26eC4yQ.js} +1 -1
  110. package/dist/viewer/assets/{lens-run-page-DZneics-.js → lens-run-page-Ba1ppzJt.js} +3 -3
  111. package/dist/viewer/assets/lens-runs-page-BnUS57LM.js +1 -0
  112. package/dist/viewer/assets/{link-2-C75goIOt.js → link-2-D1e0xznG.js} +1 -1
  113. package/dist/viewer/assets/linked-project-dot-BY1gEES9.js +543 -0
  114. package/dist/viewer/assets/{loader-circle-C5jZoM7X.js → loader-circle-CiqyoJF7.js} +1 -1
  115. package/dist/viewer/assets/{merge-Cy7YkrN7.js → merge-BhOMvhW1.js} +1 -1
  116. package/dist/viewer/assets/mermaid.core-BDgZg3kW.js +312 -0
  117. package/dist/viewer/assets/method-badge-DErZP7y5.js +1 -0
  118. package/dist/viewer/assets/{mindmap-definition-YA3MSWOX-yQCKA-K4.js → mindmap-definition-YA3MSWOX-DFkLu0ac.js} +2 -2
  119. package/dist/viewer/assets/nav-links-DZWMpwMR.js +61 -0
  120. package/dist/viewer/assets/{network-COWNXGMM.js → network-B1apzT1s.js} +1 -1
  121. package/dist/viewer/assets/{nosql-editor-modal-DTiWkc_r.js → nosql-editor-modal-CvH0SWAi.js} +5 -5
  122. package/dist/viewer/assets/not-found-page-C-fn8QeM.js +1 -0
  123. package/dist/viewer/assets/organization-dependency-graph-page-BryP-iJL.js +1 -0
  124. package/dist/viewer/assets/pegDiagram-XKGWAZYB-g1cM14-L.js +1 -0
  125. package/dist/viewer/assets/{pieDiagram-E7YTZNPT-DqnkpCX4.js → pieDiagram-E7YTZNPT-WEnDsMY3.js} +2 -2
  126. package/dist/viewer/assets/{plus-DQakmTjA.js → plus-DbyuOgKB.js} +1 -1
  127. package/dist/viewer/assets/popover-476u3TN0.js +1 -0
  128. package/dist/viewer/assets/preload-helper-BlTxHScW.js +1 -0
  129. package/dist/viewer/assets/{quadrantDiagram-AXDQQJYC-iQjJfars.js → quadrantDiagram-AXDQQJYC-NdfQCpzF.js} +2 -2
  130. package/dist/viewer/assets/query-D9oj6LGx.js +50 -0
  131. package/dist/viewer/assets/{quill-rCHj4fCw.js → quill-Cde5JMRD.js} +1 -1
  132. package/dist/viewer/assets/railroadDiagram-O6MQD6OU-BYhlXlMY.js +1 -0
  133. package/dist/viewer/assets/{react-BNzYaZuG.js → react-Bx48XWN4.js} +1 -1
  134. package/dist/viewer/assets/react-flow-wrapper-BcbvHgxz.js +277 -0
  135. package/dist/viewer/assets/{requirementDiagram-BXWQKSXE-Bv-Vh1dW.js → requirementDiagram-BXWQKSXE-C25Bcm2L.js} +2 -2
  136. package/dist/viewer/assets/{sankeyDiagram-P5KCCOFB-C__uD07f.js → sankeyDiagram-P5KCCOFB-h8LiCsgk.js} +2 -2
  137. package/dist/viewer/assets/scroll-area-RagrStGj.js +6 -0
  138. package/dist/viewer/assets/{search-DW-qhXLk.js → search-vw7ucoOs.js} +1 -1
  139. package/dist/viewer/assets/section-loader-C4hOfhQS.js +1 -0
  140. package/dist/viewer/assets/section-not-found-BnrXiPog.js +1 -0
  141. package/dist/viewer/assets/select-D9fbrr7O.js +1 -0
  142. package/dist/viewer/assets/{sequenceDiagram-WJ2MYXX4-1RbvcHwO.js → sequenceDiagram-WJ2MYXX4-CDRVvD30.js} +2 -2
  143. package/dist/viewer/assets/{service-context-C17u_Fw9.js → service-context-D5nBtU18.js} +1 -1
  144. package/dist/viewer/assets/{service-database-list-page-cYuDHIls.js → service-database-list-page-DBjaDLVy.js} +2 -2
  145. package/dist/viewer/assets/service-database-page-CenNCgwf.js +2 -0
  146. package/dist/viewer/assets/service-database-page-inner-gS51TQTZ.js +85 -0
  147. package/dist/viewer/assets/{service-doc-Dir8g83J.js → service-doc-C-jHqT1U.js} +4 -4
  148. package/dist/viewer/assets/{service-doc-preview-modal-bJ6tJ5YR.js → service-doc-preview-modal-5sX6FOu1.js} +2 -2
  149. package/dist/viewer/assets/service-layout-Bf0vZBCH.js +1 -0
  150. package/dist/viewer/assets/service-pages-CFikvX4t.js +1 -0
  151. package/dist/viewer/assets/{services-Crqkffr5.js → services-Ivav34WC.js} +4 -4
  152. package/dist/viewer/assets/{share-2-BmYmqN4k.js → share-2-CQEaWbfH.js} +1 -1
  153. package/dist/viewer/assets/sizeCapture-INFHLROL-BJ6ndnPM.js +1 -0
  154. package/dist/viewer/assets/stateDiagram-D77RDMKH-B_tNCX3o.js +1 -0
  155. package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-Dl9wqdli.js +1 -0
  156. package/dist/viewer/assets/{style-DgSU0bQl.js → style-BPesJvJr.js} +8 -8
  157. package/dist/viewer/assets/super-circle-loader-DSkos6uP.js +1 -0
  158. package/dist/viewer/assets/super-logo-loader-Cxlbn6MB.js +1 -0
  159. package/dist/viewer/assets/swimlanes-42K2YHIH-CzURzYwf.js +1 -0
  160. package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-DrIlwFtk.js +8 -0
  161. package/dist/viewer/assets/table-B4pFND-o.js +1 -0
  162. package/dist/viewer/assets/textarea-Clgdv3Oi.js +1 -0
  163. package/dist/viewer/assets/{timeline-definition-24CTP7MA-C4yuLwUH.js → timeline-definition-24CTP7MA-D0YXQE1U.js} +2 -2
  164. package/dist/viewer/assets/ui-graph-logo-gHowu5gP.js +1 -0
  165. package/dist/viewer/assets/{upload-CRsS43j9.js → upload-CYb3nN_5.js} +1 -1
  166. package/dist/viewer/assets/{uploads-BOQHX9l4.js → uploads-CX2kdXbM.js} +8 -8
  167. package/dist/viewer/assets/{use-debounced-value-Ba-kkCUY.js → use-debounced-value-BpNFJd3C.js} +1 -1
  168. package/dist/viewer/assets/{use-localstorage-DIisTx-J.js → use-localstorage-D233xVb0.js} +1 -1
  169. package/dist/viewer/assets/use-permissions-BvmxJJ5r.js +1 -0
  170. package/dist/viewer/assets/{use-scoped-storage-C4RzED-E.js → use-scoped-storage-DL1XVp1j.js} +1 -1
  171. package/dist/viewer/assets/useMutation-D5ZHwHsx.js +1 -0
  172. package/dist/viewer/assets/useQuery-Dhe6uxrL.js +1 -0
  173. package/dist/viewer/assets/{vennDiagram-4TSXK5OY-BCtqXZqe.js → vennDiagram-4TSXK5OY-SSjHlqCQ.js} +2 -2
  174. package/dist/viewer/assets/{wardleyDiagram-VM6X3IG4-D3OtZJoT.js → wardleyDiagram-VM6X3IG4-CZWNdQxH.js} +2 -2
  175. package/dist/viewer/assets/{xychartDiagram-S5SC5T6Z-DxLL2CHH.js → xychartDiagram-S5SC5T6Z-B2qAGeb0.js} +2 -2
  176. package/dist/viewer/assets/zod-BMU4UTQt.js +1 -0
  177. package/dist/viewer/index.html +10 -1
  178. package/package.json +57 -57
  179. package/dist/abort-signals-B4fc3ahg.mjs +0 -34
  180. package/dist/agents.md +0 -28
  181. package/dist/anthropic-messages-KPxCHqBN.mjs +0 -14327
  182. package/dist/auth-storage-BvNH97p9.mjs +0 -2180
  183. package/dist/azure-openai-config-BbeCSg4y.mjs +0 -55
  184. package/dist/azure-openai-responses-BRzy8RfL.mjs +0 -182
  185. package/dist/classifier-shared-DBUHiTGw.mjs +0 -105
  186. package/dist/cli-2R6QQFp1.mjs +0 -451
  187. package/dist/cloudflare-workers-ai-system-one-BfqwmRQf.mjs +0 -44
  188. package/dist/config-D8DMGzIq.mjs +0 -647
  189. package/dist/cross-spawn-B2jIQPlu.mjs +0 -404
  190. package/dist/diagnostics-xdSgQR8t.mjs +0 -131
  191. package/dist/dist-BRyghrKX.mjs +0 -404
  192. package/dist/dist-D0EzrblG.mjs +0 -12161
  193. package/dist/dist-EKhnHWHG.mjs +0 -140221
  194. package/dist/dist-pQtuusFv.mjs +0 -1243
  195. package/dist/easter-egg-3d-C9_btlWn.mjs +0 -1225
  196. package/dist/env-api-keys-uytNub6O.mjs +0 -122
  197. package/dist/error-body-FhmCtR7m.mjs +0 -101
  198. package/dist/esm-D5isprgl.mjs +0 -1533
  199. package/dist/esm-DnqE4pfM.mjs +0 -104876
  200. package/dist/execute-BoTKl80U.mjs +0 -1715
  201. package/dist/github-copilot-headers-DWcTgoXr.mjs +0 -22
  202. package/dist/google-generative-ai-Brs5YpJo.mjs +0 -332
  203. package/dist/google-shared-2CyYa4VE.mjs +0 -33438
  204. package/dist/google-vertex-DZDUQPKa.mjs +0 -378
  205. package/dist/hash-DN7ukSfd.mjs +0 -16
  206. package/dist/headers-GhQHLk-3.mjs +0 -17
  207. package/dist/jiti-9kWALm4Y.mjs +0 -5439
  208. package/dist/jiti-loader-f21DrY1K.mjs +0 -27
  209. package/dist/jiti-static-loader-BI_w28l7.mjs +0 -41704
  210. package/dist/json-parse-B2mHg7o7.mjs +0 -381
  211. package/dist/keybinding-hints-D0nLU3ZH.mjs +0 -17899
  212. package/dist/lib-Dj1gKQJc.mjs +0 -24379
  213. package/dist/llama-cpp-classify-C73BoMYd.mjs +0 -344
  214. package/dist/mistral-conversations-DXVR7znL.mjs +0 -698
  215. package/dist/models-DBdii9gQ.mjs +0 -1255
  216. package/dist/multipart-parser-DLw9Z0uJ.mjs +0 -298
  217. package/dist/node-B0NU8X55.mjs +0 -2479
  218. package/dist/node-B8gaKm9g.mjs +0 -23
  219. package/dist/openai-I3_AqKDX.mjs +0 -17357
  220. package/dist/openai-codex-responses-PcZHDuBD.mjs +0 -1198
  221. package/dist/openai-completions-a_mH01ii.mjs +0 -994
  222. package/dist/openai-decisions-Du8y4mQG.mjs +0 -142
  223. package/dist/openai-prompt-cache-Bc6qNWt0.mjs +0 -8
  224. package/dist/openai-responses-a9lV_U7O.mjs +0 -270
  225. package/dist/openai-responses-shared-CDs_PBiH.mjs +0 -598
  226. package/dist/openrouter-images-D0Zc8Cjs.mjs +0 -125
  227. package/dist/photon_rs-DCvMOMu0.mjs +0 -4252
  228. package/dist/pi-messages-B5ietIBq.mjs +0 -306
  229. package/dist/plan-prompt.md +0 -56
  230. package/dist/prompt.md +0 -44
  231. package/dist/provider-env-BJhgA66g.mjs +0 -37
  232. package/dist/provider-retry-DXYM7rVE.mjs +0 -79
  233. package/dist/runtime-DTkBxiaM.mjs +0 -2822
  234. package/dist/sanitize-unicode-CqChtoM6.mjs +0 -26
  235. package/dist/shell-836_JFnI.mjs +0 -162
  236. package/dist/source-CKPndhKl.mjs +0 -478
  237. package/dist/src-DNm2QRm3.mjs +0 -5028
  238. package/dist/system-one-shared-DUAFtNa8.mjs +0 -75
  239. package/dist/token-DEUkymby.mjs +0 -56
  240. package/dist/token-util-Cx5S4eKt.mjs +0 -3
  241. package/dist/tool-DHDYqsyG.mjs +0 -6673
  242. package/dist/transform-messages-BClk99Vn.mjs +0 -477
  243. package/dist/typesafe-system-one-D2d8j8hZ.mjs +0 -24
  244. package/dist/typescript-Br-vsRJV.mjs +0 -6737
  245. package/dist/uuid-CNCZqNBb.mjs +0 -49
  246. package/dist/v2-1z8ijsD3.mjs +0 -6120
  247. package/dist/viewer/assets/abnfDiagram-VCTEODGH-j5YaKnl9.js +0 -1
  248. package/dist/viewer/assets/actor-avatar-DqmoY8Xc.js +0 -1
  249. package/dist/viewer/assets/architectureDiagram-5GKGNRK7-D80cJKz_.js +0 -36
  250. package/dist/viewer/assets/avatar-BI7D-Aia.js +0 -43
  251. package/dist/viewer/assets/badge-870-A4Y6.js +0 -1
  252. package/dist/viewer/assets/better-delete-confirmation-modal-Dib31LVb.js +0 -1
  253. package/dist/viewer/assets/better-dialog-D3AAiahr.js +0 -1
  254. package/dist/viewer/assets/button-DadqadpO.js +0 -1
  255. package/dist/viewer/assets/channel-DRkt3LIn.js +0 -1
  256. package/dist/viewer/assets/checkbox-BXpR079x.js +0 -1
  257. package/dist/viewer/assets/classDiagram-ZZMXUADV-G5CebNaC.js +0 -1
  258. package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-G5CebNaC.js +0 -1
  259. package/dist/viewer/assets/color-input-Efm-lxDy.js +0 -11
  260. package/dist/viewer/assets/cose-bilkent-JH36ORCC-CrSHFmnp.js +0 -1
  261. package/dist/viewer/assets/cross-button-5Sr5rWVP.js +0 -1
  262. package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-Bdl_eBdu.js +0 -62
  263. package/dist/viewer/assets/dashboard-diagrams-page-DMupOe1m.js +0 -2
  264. package/dist/viewer/assets/dashboard-diagrams-page-inner-Dh0yKh2A.js +0 -1
  265. package/dist/viewer/assets/dashboard-docs-page-DWJ1qOQz.js +0 -2
  266. package/dist/viewer/assets/dashboard-docs-page-inner-Fs6G3oGo.js +0 -67
  267. package/dist/viewer/assets/dashboard-layout-D36InAaB.js +0 -1
  268. package/dist/viewer/assets/dashboard-lens-layout-Cv1Xx3hY.js +0 -1
  269. package/dist/viewer/assets/dashboard-map-frame-page-CTn61NUO.js +0 -1
  270. package/dist/viewer/assets/dashboard-plans-page-DxFJkrgK.js +0 -1
  271. package/dist/viewer/assets/dashboard-service-apis-BHtD9s5z.js +0 -1
  272. package/dist/viewer/assets/dashboard-service-docs-Uv_1uxxO.js +0 -1
  273. package/dist/viewer/assets/dashboard-services-CUP-L4Jg.js +0 -1
  274. package/dist/viewer/assets/diagram-UQ7AKVKN-DhFcurW6.js +0 -41
  275. package/dist/viewer/assets/diagram-VX7I27RA-DE1nREE8.js +0 -24
  276. package/dist/viewer/assets/diagram-Z3DM3KII-CSrYcCbc.js +0 -24
  277. package/dist/viewer/assets/diagram-live-preview-i5doxXLH.js +0 -2
  278. package/dist/viewer/assets/dialog-D_HtNS17.js +0 -6
  279. package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BfL8m_sf.js +0 -1
  280. package/dist/viewer/assets/flow-diagram-preview-T0Z4iMVU.js +0 -1
  281. package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-CsITpniw.js +0 -292
  282. package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-B4eCBGoe.js +0 -106
  283. package/dist/viewer/assets/iconBase-BoDZfJgC.js +0 -1
  284. package/dist/viewer/assets/index-5E1tJ7yK.js +0 -125
  285. package/dist/viewer/assets/index-7XpV2DRw.js +0 -1
  286. package/dist/viewer/assets/index-C0Rs3s9Z.js +0 -1
  287. package/dist/viewer/assets/index-CzHjJWeV.js +0 -1
  288. package/dist/viewer/assets/index-DcEA6SIV.js +0 -74
  289. package/dist/viewer/assets/infoDiagram-27XIBGKW-lTebN5Ix.js +0 -2
  290. package/dist/viewer/assets/input-YvHTVS0E.js +0 -1
  291. package/dist/viewer/assets/lens-runs-page-DoAOObxx.js +0 -1
  292. package/dist/viewer/assets/linked-project-dot-Ds2uEmJ9.js +0 -543
  293. package/dist/viewer/assets/mermaid.core-BCRBv8Us.js +0 -312
  294. package/dist/viewer/assets/method-badge-DMYDKdDZ.js +0 -1
  295. package/dist/viewer/assets/nav-links-8vT2ixiI.js +0 -61
  296. package/dist/viewer/assets/not-found-page-CnfLlhS4.js +0 -1
  297. package/dist/viewer/assets/organization-dependency-graph-page-3xqIxjNx.js +0 -1
  298. package/dist/viewer/assets/pegDiagram-XKGWAZYB-CMXqeAum.js +0 -1
  299. package/dist/viewer/assets/popover-CN9ni1N3.js +0 -1
  300. package/dist/viewer/assets/railroadDiagram-O6MQD6OU-CfqToX3W.js +0 -1
  301. package/dist/viewer/assets/react-flow-wrapper-BPlRstyO.js +0 -276
  302. package/dist/viewer/assets/scroll-area-BodE-n7W.js +0 -6
  303. package/dist/viewer/assets/section-loader-BzpYM_Nx.js +0 -1
  304. package/dist/viewer/assets/select-DDtnmSET.js +0 -1
  305. package/dist/viewer/assets/service-database-page-CMi1wF4h.js +0 -2
  306. package/dist/viewer/assets/service-database-page-inner-CoqAj93L.js +0 -85
  307. package/dist/viewer/assets/service-layout-0NMm_bKG.js +0 -1
  308. package/dist/viewer/assets/service-pages-dfnc91SU.js +0 -1
  309. package/dist/viewer/assets/sizeCapture-INFHLROL-BRJi3gCg.js +0 -1
  310. package/dist/viewer/assets/stateDiagram-D77RDMKH-DdLsfxgy.js +0 -1
  311. package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-DFwg8Qki.js +0 -1
  312. package/dist/viewer/assets/super-circle-loader-D8MElOMh.js +0 -1
  313. package/dist/viewer/assets/super-logo-loader-DJYiRbCS.js +0 -1
  314. package/dist/viewer/assets/swimlanes-42K2YHIH-AuYjrPqh.js +0 -1
  315. package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-0nIGA8_4.js +0 -8
  316. package/dist/viewer/assets/table-Bi4Auk9Z.js +0 -1
  317. package/dist/viewer/assets/textarea-MgxZ5x6-.js +0 -1
  318. package/dist/viewer/assets/ui-graph-logo-D4jRhd4z.js +0 -1
  319. package/dist/viewer/assets/use-permissions-6JVET753.js +0 -1
  320. package/dist/viewer/assets/useMutation-CmVaR9zz.js +0 -1
  321. package/dist/viewer/assets/useQuery-B8yYhO0c.js +0 -1
  322. package/dist/viewer/assets/zod-Dc4H6VVJ.js +0 -1
  323. package/dist/virtual-modules-DnCx0Gdx.mjs +0 -340
@@ -1,26 +1,26 @@
1
- import{c as Cn}from"./nav-links-8vT2ixiI.js";import{g as Ht,ae as Dn}from"./index-5E1tJ7yK.js";/**
1
+ import{c as Cn}from"./nav-links-DZWMpwMR.js";import{B as Dn}from"./query-D9oj6LGx.js";import{g as Ht}from"./gql-FFIj8zdp.js";/**
2
2
  * @license lucide-react v0.514.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Ln=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],ko=Cn("trash-2",Ln);function Un(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(s),t&&(r.href=t),s.href=e,s.href}const Fn=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function V(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function De(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function Nn(e){const t=De(e,"border-left-width"),n=De(e,"border-right-width");return e.clientWidth+t+n}function In(e){const t=De(e,"border-top-width"),n=De(e,"border-bottom-width");return e.clientHeight+t+n}function Mt(e,t={}){const n=t.width||Nn(e),r=t.height||In(e);return{width:n,height:r}}function jn(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const j=16384;function Bn(e){(e.width>j||e.height>j)&&(e.width>j&&e.height>j?e.width>e.height?(e.height*=j/e.width,e.width=j):(e.width*=j/e.height,e.height=j):e.width>j?(e.height*=j/e.width,e.width=j):(e.width*=j/e.height,e.height=j))}function Le(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function kn(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function $n(e,t,n){const r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),kn(s)}const N=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||N(n,t)};function Hn(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Mn(e){return V(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function qn(e,t,n){const r=`.${e}:${t}`,s=n.cssText?Hn(n):Mn(n);return document.createTextNode(`${r}{${s}}`)}function ht(e,t,n){const r=window.getComputedStyle(e,n),s=r.getPropertyValue("content");if(s===""||s==="none")return;const o=Fn();try{t.className=`${t.className} ${o}`}catch{return}const i=document.createElement("style");i.appendChild(qn(o,n,r)),t.appendChild(i)}function zn(e,t){ht(e,t,":before"),ht(e,t,":after")}const pt="application/font-woff",mt="image/jpeg",vn={woff:pt,woff2:pt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:mt,jpeg:mt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Vn(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Ye(e){const t=Vn(e).toLowerCase();return vn[t]||""}function Wn(e){return e.split(/,/)[1]}function Xe(e){return e.search(/^(data:)/)!==-1}function Jn(e,t){return`data:${t};base64,${e}`}async function qt(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const s=await r.blob();return new Promise((o,i)=>{const a=new FileReader;a.onerror=i,a.onloadend=()=>{try{o(n({res:r,result:a.result}))}catch(l){i(l)}},a.readAsDataURL(s)})}const Me={};function Kn(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function et(e,t,n){const r=Kn(e,t,n.includeQueryParams);if(Me[r]!=null)return Me[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await qt(e,n.fetchRequestInit,({res:i,result:a})=>(t||(t=i.headers.get("Content-Type")||""),Wn(a)));s=Jn(o,t)}catch(o){s=n.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return Me[r]=s,s}async function Xn(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Le(t)}async function Gn(e,t){if(e.currentSrc){const o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i?.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Le(a)}const n=e.poster,r=Ye(n),s=await et(n,r,t);return Le(s)}async function Qn(e){var t;try{if(!((t=e?.contentDocument)===null||t===void 0)&&t.body)return await Ne(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function Zn(e,t){return N(e,HTMLCanvasElement)?Xn(e):N(e,HTMLVideoElement)?Gn(e,t):N(e,HTMLIFrameElement)?Qn(e):e.cloneNode(!1)}const Yn=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function er(e,t,n){var r,s;let o=[];return Yn(e)&&e.assignedNodes?o=V(e.assignedNodes()):N(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?o=V(e.contentDocument.body.childNodes):o=V(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||N(e,HTMLVideoElement)||await o.reduce((i,a)=>i.then(()=>Ne(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function tr(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):V(r).forEach(s=>{let o=r.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),N(e,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(s,o,r.getPropertyPriority(s))})}function nr(e,t){N(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),N(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function rr(e,t){if(N(e,HTMLSelectElement)){const r=Array.from(t.children).find(s=>e.value===s.getAttribute("value"));r&&r.setAttribute("selected","")}}function sr(e,t){return N(t,Element)&&(tr(e,t),zn(e,t),nr(e,t),rr(e,t)),t}async function or(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),d=document.querySelector(a);!l&&d&&!r[a]&&(r[a]=await Ne(d,t,!0))}}const s=Object.values(r);if(s.length){const o="http://www.w3.org/1999/xhtml",i=document.createElementNS(o,"svg");i.setAttribute("xmlns",o),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const a=document.createElementNS(o,"defs");i.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(i)}return e}async function Ne(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>Zn(r,t)).then(r=>er(e,r,t)).then(r=>sr(e,r)).then(r=>or(r,t))}const zt=/url\((['"]?)([^'"]+?)\1\)/g,ir=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,ar=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function cr(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function lr(e){const t=[];return e.replace(zt,(n,r,s)=>(t.push(s),n)),t.filter(n=>!Xe(n))}async function ur(e,t,n,r,s){try{const o=n?Un(t,n):t,i=Ye(t);let a;return s||(a=await et(o,i,r)),e.replace(cr(t),`$1${a}$3`)}catch{}return e}function fr(e,{preferredFontFormat:t}){return t?e.replace(ar,n=>{for(;;){const[r,,s]=ir.exec(n)||[];if(!s)return"";if(s===t)return`src: ${r};`}}):e}function vt(e){return e.search(zt)!==-1}async function Vt(e,t,n){if(!vt(e))return e;const r=fr(e,n);return lr(r).reduce((o,i)=>o.then(a=>ur(a,i,t,n)),Promise.resolve(r))}async function xe(e,t,n){var r;const s=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(s){const o=await Vt(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function dr(e,t){await xe("background",e,t)||await xe("background-image",e,t),await xe("mask",e,t)||await xe("mask-image",e,t)}async function hr(e,t){const n=N(e,HTMLImageElement);if(!(n&&!Xe(e.src))&&!(N(e,SVGImageElement)&&!Xe(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,s=await et(r,Ye(r),t);await new Promise((o,i)=>{e.onload=o,e.onerror=i;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function pr(e,t){const r=V(e.childNodes).map(s=>Wt(s,t));await Promise.all(r).then(()=>e)}async function Wt(e,t){N(e,Element)&&(await dr(e,t),await hr(e,t),await pr(e,t))}function mr(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(s=>{n[s]=r[s]}),e}const gt={};async function yt(e){let t=gt[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},gt[e]=t,t}async function wt(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),qt(a,t.fetchRequestInit,({result:l})=>(n=n.replace(i,`url(${l})`),[i,l]))});return Promise.all(o).then(()=>n)}function bt(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(i,"gi");for(;;){let l=o.exec(r);if(l===null){if(l=a.exec(r),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function gr(e,t){const n=[],r=[];return e.forEach(s=>{if("cssRules"in s)try{V(s.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let a=i+1;const l=o.href,d=yt(l).then(u=>wt(u,t)).then(u=>bt(u).forEach(h=>{try{s.insertRule(h,h.startsWith("@import")?a+=1:s.cssRules.length)}catch(g){console.error("Error inserting rule from remote css",{rule:h,error:g})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(d)}})}catch(o){const i=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&r.push(yt(s.href).then(a=>wt(a,t)).then(a=>bt(a).forEach(l=>{i.insertRule(l,s.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(s=>{if("cssRules"in s)try{V(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function yr(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>vt(t.style.getPropertyValue("src")))}async function wr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=V(e.ownerDocument.styleSheets),r=await gr(n,t);return yr(r)}async function br(e,t){const n=await wr(e,t);return(await Promise.all(n.map(s=>{const o=s.parentStyleSheet?s.parentStyleSheet.href:null;return Vt(s.cssText,o,t)}))).join(`
7
- `)}async function Er(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await br(e,t);if(n){const r=document.createElement("style"),s=document.createTextNode(n);r.appendChild(s),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function Rr(e,t={}){const{width:n,height:r}=Mt(e,t),s=await Ne(e,t,!0);return await Er(s,t),await Wt(s,t),mr(s,t),await $n(s,n,r)}async function Sr(e,t={}){const{width:n,height:r}=Mt(e,t),s=await Rr(e,t),o=await Le(s),i=document.createElement("canvas"),a=i.getContext("2d"),l=t.pixelRatio||jn(),d=t.canvasWidth||n,u=t.canvasHeight||r;return i.width=d*l,i.height=u*l,t.skipAutoScale||Bn(i),i.style.width=`${d}`,i.style.height=`${u}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,i.width,i.height)),a.drawImage(o,0,0,i.width,i.height),i}async function $o(e,t={}){return(await Sr(e,t)).toDataURL()}function Jt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Or}=Object.prototype,{getPrototypeOf:G}=Object,{iterator:ye,toStringTag:Kt}=Symbol,me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xt=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Gt=(e,t,n)=>e===Object.prototype||!n&&t===null,xr=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(Xt(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},ge=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const s=G(n);if(Gt(n,s,n===e))return!1;if(me(n,t))return!0;n=s}return!1},Ar=(e,t)=>e!=null&&ge(e,t)?e[t]:void 0,_r=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=G(e);if(t===null&&xr(e))return e;const n=Object.create(null),r=Object.create(null),s=[];let o=e;for(;o!=null&&s.indexOf(o)===-1;){s.push(o);const i=o===e?t:G(o);if(Gt(o,i,o===e))break;const a=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(o));for(const l of a)Xt(l)||me(r,l)||(n[l]=e[l],r[l]=!0);o=i}return n},tt=(e=>t=>{const n=Or.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>tt(t)===e),Ie=e=>t=>typeof t===e,{isArray:ne}=Array,re=Ie("undefined");function ae(e){return e!==null&&!re(e)&&e.constructor!==null&&!re(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qt=k("ArrayBuffer");function Pr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qt(e.buffer),t}const Tr=Ie("string"),I=Ie("function"),Zt=Ie("number"),ce=e=>e!==null&&typeof e=="object",Cr=e=>e===!0||e===!1,_e=e=>{if(!ce(e))return!1;const t=G(e);return(t===null||t===Object.prototype||G(t)===null)&&!ge(e,Kt)&&!ge(e,ye)},Dr=e=>{if(!ce(e)||ae(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Lr=k("Date"),Ur=k("File"),Fr=e=>!!(e&&typeof e.uri<"u"),Nr=e=>e&&typeof e.getParts<"u",Ir=k("Blob"),jr=k("FileList"),Br=k("Set"),kr=e=>ce(e)&&I(e.pipe);function $r(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Et=$r(),Rt=typeof Et.FormData<"u"?Et.FormData:void 0,Hr=e=>{if(!e)return!1;if(Rt&&e instanceof Rt)return!0;const t=G(e);if(!t||t===Object.prototype||!I(e.append))return!1;const n=tt(e);return n==="formdata"||n==="object"&&I(e.toString)&&e.toString()==="[object FormData]"},Mr=k("URLSearchParams"),[qr,zr,vr,Vr]=["ReadableStream","Request","Response","Headers"].map(k),Wr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function we(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ne(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ae(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Yt(e,t){if(ae(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,en=e=>!re(e)&&e!==ee;function Ge(...e){const{caseless:t,skipUndefined:n}=en(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&typeof i=="string"&&Yt(r,i)||i,l=me(r,a)?r[a]:void 0;_e(l)&&_e(o)?r[a]=Ge(l,o):_e(o)?r[a]=Ge({},o):ne(o)?r[a]=o.slice():(!n||!re(o))&&(r[a]=o)};for(let o=0,i=e.length;o<i;o++){const a=e[o];if(!a||ae(a)||(we(a,s),typeof a!="object"||ne(a)))continue;const l=Object.getOwnPropertySymbols(a);for(let d=0;d<l.length;d++){const u=l[d];ss.call(a,u)&&s(a[u],u)}}return r}const Jr=(e,t,n,{allOwnKeys:r}={})=>(we(t,(s,o)=>{n&&I(s)?Object.defineProperty(e,o,{__proto__:null,value:Jt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Kr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Gr=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&G(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zr=e=>{if(!e)return null;if(ne(e))return e;let t=e.length;if(!Zt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&G(Uint8Array)),es=(e,t)=>{const r=(e&&e[ye]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},ts=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ns=k("HTMLFormElement"),rs=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:ss}=Object.prototype,os=k("RegExp"),tn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};we(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},is=e=>{tn(e,(t,n)=>{if(I(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(I(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},as=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return ne(e)?r(e):r(String(e).split(t)),n},cs=()=>{},ls=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function us(e){return!!(e&&I(e.append)&&e[Kt]==="FormData"&&e[ye])}const fs=e=>{const t=new WeakSet,n=r=>{if(ce(r)){if(t.has(r))return;if(ae(r))return r;if(!("toJSON"in r)){t.add(r);let s;if(Br(r)){s=[];for(const o of r){const i=n(o);!re(i)&&s.push(i)}}else s=ne(r)?[]:{},we(r,(o,i)=>{const a=n(o);!re(a)&&(s[i]=a)});return t.delete(r),s}}return r};return n(e)},ds=k("AsyncFunction"),hs=e=>e&&(ce(e)||I(e))&&I(e.then)&&I(e.catch),nn=((e,t)=>e?setImmediate:t?((n,r)=>(ee.addEventListener("message",({source:s,data:o})=>{s===ee&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ee.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",I(ee.postMessage)),ps=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||nn,rn=e=>e!=null&&I(e[ye]),ms=e=>e!=null&&ge(e,ye)&&rn(e),c={isArray:ne,isArrayBuffer:Qt,isBuffer:ae,isFormData:Hr,isArrayBufferView:Pr,isString:Tr,isNumber:Zt,isBoolean:Cr,isObject:ce,isPlainObject:_e,isEmptyObject:Dr,isReadableStream:qr,isRequest:zr,isResponse:vr,isHeaders:Vr,isUndefined:re,isDate:Lr,isFile:Ur,isReactNativeBlob:Fr,isReactNative:Nr,isBlob:Ir,isRegExp:os,isFunction:I,isStream:kr,isURLSearchParams:Mr,isTypedArray:Yr,isFileList:jr,forEach:we,merge:Ge,extend:Jr,trim:Wr,stripBOM:Kr,inherits:Xr,toFlatObject:Gr,kindOf:tt,kindOfTest:k,endsWith:Qr,toArray:Zr,forEachEntry:es,matchAll:ts,isHTMLForm:ns,hasOwnProperty:me,hasOwnProp:me,hasOwnInPrototypeChain:ge,getSafeProp:Ar,toSafeFlatObject:_r,reduceDescriptors:tn,freezeMethods:is,toObjectSet:as,toCamelCase:rs,noop:cs,toFiniteNumber:ls,findKey:Yt,global:ee,isContextDefined:en,isSpecCompliantForm:us,toJSONObject:fs,isAsyncFn:ds,isThenable:hs,setImmediate:nn,asap:ps,isIterable:rn,isSafeIterable:ms},gs=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ys=e=>{const t={};let n,r,s;return e&&e.split(`
6
+ */const Ln=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],$o=Cn("trash-2",Ln);function Un(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(s),t&&(r.href=t),s.href=e,s.href}const Fn=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function V(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function De(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function Nn(e){const t=De(e,"border-left-width"),n=De(e,"border-right-width");return e.clientWidth+t+n}function In(e){const t=De(e,"border-top-width"),n=De(e,"border-bottom-width");return e.clientHeight+t+n}function Mt(e,t={}){const n=t.width||Nn(e),r=t.height||In(e);return{width:n,height:r}}function Bn(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const B=16384;function jn(e){(e.width>B||e.height>B)&&(e.width>B&&e.height>B?e.width>e.height?(e.height*=B/e.width,e.width=B):(e.width*=B/e.height,e.height=B):e.width>B?(e.height*=B/e.width,e.width=B):(e.width*=B/e.height,e.height=B))}function Le(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function kn(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function $n(e,t,n){const r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),kn(s)}const N=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||N(n,t)};function Hn(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Mn(e){return V(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function qn(e,t,n){const r=`.${e}:${t}`,s=n.cssText?Hn(n):Mn(n);return document.createTextNode(`${r}{${s}}`)}function ht(e,t,n){const r=window.getComputedStyle(e,n),s=r.getPropertyValue("content");if(s===""||s==="none")return;const o=Fn();try{t.className=`${t.className} ${o}`}catch{return}const i=document.createElement("style");i.appendChild(qn(o,n,r)),t.appendChild(i)}function zn(e,t){ht(e,t,":before"),ht(e,t,":after")}const pt="application/font-woff",mt="image/jpeg",vn={woff:pt,woff2:pt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:mt,jpeg:mt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Vn(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Ye(e){const t=Vn(e).toLowerCase();return vn[t]||""}function Wn(e){return e.split(/,/)[1]}function Xe(e){return e.search(/^(data:)/)!==-1}function Jn(e,t){return`data:${t};base64,${e}`}async function qt(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const s=await r.blob();return new Promise((o,i)=>{const a=new FileReader;a.onerror=i,a.onloadend=()=>{try{o(n({res:r,result:a.result}))}catch(l){i(l)}},a.readAsDataURL(s)})}const Me={};function Kn(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function et(e,t,n){const r=Kn(e,t,n.includeQueryParams);if(Me[r]!=null)return Me[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await qt(e,n.fetchRequestInit,({res:i,result:a})=>(t||(t=i.headers.get("Content-Type")||""),Wn(a)));s=Jn(o,t)}catch(o){s=n.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return Me[r]=s,s}async function Xn(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Le(t)}async function Gn(e,t){if(e.currentSrc){const o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i?.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Le(a)}const n=e.poster,r=Ye(n),s=await et(n,r,t);return Le(s)}async function Qn(e){var t;try{if(!((t=e?.contentDocument)===null||t===void 0)&&t.body)return await Ne(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function Zn(e,t){return N(e,HTMLCanvasElement)?Xn(e):N(e,HTMLVideoElement)?Gn(e,t):N(e,HTMLIFrameElement)?Qn(e):e.cloneNode(!1)}const Yn=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function er(e,t,n){var r,s;let o=[];return Yn(e)&&e.assignedNodes?o=V(e.assignedNodes()):N(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?o=V(e.contentDocument.body.childNodes):o=V(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||N(e,HTMLVideoElement)||await o.reduce((i,a)=>i.then(()=>Ne(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function tr(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):V(r).forEach(s=>{let o=r.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),N(e,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(s,o,r.getPropertyPriority(s))})}function nr(e,t){N(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),N(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function rr(e,t){if(N(e,HTMLSelectElement)){const r=Array.from(t.children).find(s=>e.value===s.getAttribute("value"));r&&r.setAttribute("selected","")}}function sr(e,t){return N(t,Element)&&(tr(e,t),zn(e,t),nr(e,t),rr(e,t)),t}async function or(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),d=document.querySelector(a);!l&&d&&!r[a]&&(r[a]=await Ne(d,t,!0))}}const s=Object.values(r);if(s.length){const o="http://www.w3.org/1999/xhtml",i=document.createElementNS(o,"svg");i.setAttribute("xmlns",o),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const a=document.createElementNS(o,"defs");i.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(i)}return e}async function Ne(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>Zn(r,t)).then(r=>er(e,r,t)).then(r=>sr(e,r)).then(r=>or(r,t))}const zt=/url\((['"]?)([^'"]+?)\1\)/g,ir=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,ar=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function cr(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function lr(e){const t=[];return e.replace(zt,(n,r,s)=>(t.push(s),n)),t.filter(n=>!Xe(n))}async function ur(e,t,n,r,s){try{const o=n?Un(t,n):t,i=Ye(t);let a;return s||(a=await et(o,i,r)),e.replace(cr(t),`$1${a}$3`)}catch{}return e}function fr(e,{preferredFontFormat:t}){return t?e.replace(ar,n=>{for(;;){const[r,,s]=ir.exec(n)||[];if(!s)return"";if(s===t)return`src: ${r};`}}):e}function vt(e){return e.search(zt)!==-1}async function Vt(e,t,n){if(!vt(e))return e;const r=fr(e,n);return lr(r).reduce((o,i)=>o.then(a=>ur(a,i,t,n)),Promise.resolve(r))}async function xe(e,t,n){var r;const s=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(s){const o=await Vt(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function dr(e,t){await xe("background",e,t)||await xe("background-image",e,t),await xe("mask",e,t)||await xe("mask-image",e,t)}async function hr(e,t){const n=N(e,HTMLImageElement);if(!(n&&!Xe(e.src))&&!(N(e,SVGImageElement)&&!Xe(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,s=await et(r,Ye(r),t);await new Promise((o,i)=>{e.onload=o,e.onerror=i;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function pr(e,t){const r=V(e.childNodes).map(s=>Wt(s,t));await Promise.all(r).then(()=>e)}async function Wt(e,t){N(e,Element)&&(await dr(e,t),await hr(e,t),await pr(e,t))}function mr(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(s=>{n[s]=r[s]}),e}const gt={};async function yt(e){let t=gt[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},gt[e]=t,t}async function wt(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),qt(a,t.fetchRequestInit,({result:l})=>(n=n.replace(i,`url(${l})`),[i,l]))});return Promise.all(o).then(()=>n)}function bt(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(i,"gi");for(;;){let l=o.exec(r);if(l===null){if(l=a.exec(r),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function gr(e,t){const n=[],r=[];return e.forEach(s=>{if("cssRules"in s)try{V(s.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let a=i+1;const l=o.href,d=yt(l).then(u=>wt(u,t)).then(u=>bt(u).forEach(h=>{try{s.insertRule(h,h.startsWith("@import")?a+=1:s.cssRules.length)}catch(g){console.error("Error inserting rule from remote css",{rule:h,error:g})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(d)}})}catch(o){const i=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&r.push(yt(s.href).then(a=>wt(a,t)).then(a=>bt(a).forEach(l=>{i.insertRule(l,s.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(s=>{if("cssRules"in s)try{V(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function yr(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>vt(t.style.getPropertyValue("src")))}async function wr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=V(e.ownerDocument.styleSheets),r=await gr(n,t);return yr(r)}async function br(e,t){const n=await wr(e,t);return(await Promise.all(n.map(s=>{const o=s.parentStyleSheet?s.parentStyleSheet.href:null;return Vt(s.cssText,o,t)}))).join(`
7
+ `)}async function Er(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await br(e,t);if(n){const r=document.createElement("style"),s=document.createTextNode(n);r.appendChild(s),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function Rr(e,t={}){const{width:n,height:r}=Mt(e,t),s=await Ne(e,t,!0);return await Er(s,t),await Wt(s,t),mr(s,t),await $n(s,n,r)}async function Sr(e,t={}){const{width:n,height:r}=Mt(e,t),s=await Rr(e,t),o=await Le(s),i=document.createElement("canvas"),a=i.getContext("2d"),l=t.pixelRatio||Bn(),d=t.canvasWidth||n,u=t.canvasHeight||r;return i.width=d*l,i.height=u*l,t.skipAutoScale||jn(i),i.style.width=`${d}`,i.style.height=`${u}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,i.width,i.height)),a.drawImage(o,0,0,i.width,i.height),i}async function Ho(e,t={}){return(await Sr(e,t)).toDataURL()}function Jt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Or}=Object.prototype,{getPrototypeOf:G}=Object,{iterator:ye,toStringTag:Kt}=Symbol,me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xt=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Gt=(e,t,n)=>e===Object.prototype||!n&&t===null,xr=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(Xt(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},ge=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const s=G(n);if(Gt(n,s,n===e))return!1;if(me(n,t))return!0;n=s}return!1},Ar=(e,t)=>e!=null&&ge(e,t)?e[t]:void 0,_r=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=G(e);if(t===null&&xr(e))return e;const n=Object.create(null),r=Object.create(null),s=[];let o=e;for(;o!=null&&s.indexOf(o)===-1;){s.push(o);const i=o===e?t:G(o);if(Gt(o,i,o===e))break;const a=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(o));for(const l of a)Xt(l)||me(r,l)||(n[l]=e[l],r[l]=!0);o=i}return n},tt=(e=>t=>{const n=Or.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>tt(t)===e),Ie=e=>t=>typeof t===e,{isArray:ne}=Array,re=Ie("undefined");function ae(e){return e!==null&&!re(e)&&e.constructor!==null&&!re(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qt=k("ArrayBuffer");function Pr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qt(e.buffer),t}const Tr=Ie("string"),I=Ie("function"),Zt=Ie("number"),ce=e=>e!==null&&typeof e=="object",Cr=e=>e===!0||e===!1,_e=e=>{if(!ce(e))return!1;const t=G(e);return(t===null||t===Object.prototype||G(t)===null)&&!ge(e,Kt)&&!ge(e,ye)},Dr=e=>{if(!ce(e)||ae(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Lr=k("Date"),Ur=k("File"),Fr=e=>!!(e&&typeof e.uri<"u"),Nr=e=>e&&typeof e.getParts<"u",Ir=k("Blob"),Br=k("FileList"),jr=k("Set"),kr=e=>ce(e)&&I(e.pipe);function $r(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Et=$r(),Rt=typeof Et.FormData<"u"?Et.FormData:void 0,Hr=e=>{if(!e)return!1;if(Rt&&e instanceof Rt)return!0;const t=G(e);if(!t||t===Object.prototype||!I(e.append))return!1;const n=tt(e);return n==="formdata"||n==="object"&&I(e.toString)&&e.toString()==="[object FormData]"},Mr=k("URLSearchParams"),[qr,zr,vr,Vr]=["ReadableStream","Request","Response","Headers"].map(k),Wr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function we(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ne(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ae(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Yt(e,t){if(ae(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,en=e=>!re(e)&&e!==ee;function Ge(...e){const{caseless:t,skipUndefined:n}=en(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&typeof i=="string"&&Yt(r,i)||i,l=me(r,a)?r[a]:void 0;_e(l)&&_e(o)?r[a]=Ge(l,o):_e(o)?r[a]=Ge({},o):ne(o)?r[a]=o.slice():(!n||!re(o))&&(r[a]=o)};for(let o=0,i=e.length;o<i;o++){const a=e[o];if(!a||ae(a)||(we(a,s),typeof a!="object"||ne(a)))continue;const l=Object.getOwnPropertySymbols(a);for(let d=0;d<l.length;d++){const u=l[d];ss.call(a,u)&&s(a[u],u)}}return r}const Jr=(e,t,n,{allOwnKeys:r}={})=>(we(t,(s,o)=>{n&&I(s)?Object.defineProperty(e,o,{__proto__:null,value:Jt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Kr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Gr=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&G(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zr=e=>{if(!e)return null;if(ne(e))return e;let t=e.length;if(!Zt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&G(Uint8Array)),es=(e,t)=>{const r=(e&&e[ye]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},ts=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ns=k("HTMLFormElement"),rs=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:ss}=Object.prototype,os=k("RegExp"),tn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};we(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},is=e=>{tn(e,(t,n)=>{if(I(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(I(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},as=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return ne(e)?r(e):r(String(e).split(t)),n},cs=()=>{},ls=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function us(e){return!!(e&&I(e.append)&&e[Kt]==="FormData"&&e[ye])}const fs=e=>{const t=new WeakSet,n=r=>{if(ce(r)){if(t.has(r))return;if(ae(r))return r;if(!("toJSON"in r)){t.add(r);let s;if(jr(r)){s=[];for(const o of r){const i=n(o);!re(i)&&s.push(i)}}else s=ne(r)?[]:{},we(r,(o,i)=>{const a=n(o);!re(a)&&(s[i]=a)});return t.delete(r),s}}return r};return n(e)},ds=k("AsyncFunction"),hs=e=>e&&(ce(e)||I(e))&&I(e.then)&&I(e.catch),nn=((e,t)=>e?setImmediate:t?((n,r)=>(ee.addEventListener("message",({source:s,data:o})=>{s===ee&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ee.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",I(ee.postMessage)),ps=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||nn,rn=e=>e!=null&&I(e[ye]),ms=e=>e!=null&&ge(e,ye)&&rn(e),c={isArray:ne,isArrayBuffer:Qt,isBuffer:ae,isFormData:Hr,isArrayBufferView:Pr,isString:Tr,isNumber:Zt,isBoolean:Cr,isObject:ce,isPlainObject:_e,isEmptyObject:Dr,isReadableStream:qr,isRequest:zr,isResponse:vr,isHeaders:Vr,isUndefined:re,isDate:Lr,isFile:Ur,isReactNativeBlob:Fr,isReactNative:Nr,isBlob:Ir,isRegExp:os,isFunction:I,isStream:kr,isURLSearchParams:Mr,isTypedArray:Yr,isFileList:Br,forEach:we,merge:Ge,extend:Jr,trim:Wr,stripBOM:Kr,inherits:Xr,toFlatObject:Gr,kindOf:tt,kindOfTest:k,endsWith:Qr,toArray:Zr,forEachEntry:es,matchAll:ts,isHTMLForm:ns,hasOwnProperty:me,hasOwnProp:me,hasOwnInPrototypeChain:ge,getSafeProp:Ar,toSafeFlatObject:_r,reduceDescriptors:tn,freezeMethods:is,toObjectSet:as,toCamelCase:rs,noop:cs,toFiniteNumber:ls,findKey:Yt,global:ee,isContextDefined:en,isSpecCompliantForm:us,toJSONObject:fs,isAsyncFn:ds,isThenable:hs,setImmediate:nn,asap:ps,isIterable:rn,isSafeIterable:ms},gs=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ys=e=>{const t={};let n,r,s;return e&&e.split(`
8
8
  `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim();const a=c.hasOwnProp(t,n);!n||a&&c.hasOwnProp(gs,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function ws(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const bs=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Es=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function nt(e,t){return c.isArray(e)?e.map(n=>nt(n,t)):ws(String(e).replace(t,""))}const Rs=e=>nt(e,bs),Ss=e=>nt(e,Es);function sn(e){const t=Object.create(null);return c.forEach(e.toJSON(),(n,r)=>{t[r]=Ss(n)}),t}const St=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return e===!1||e==null?e:c.isArray(e)?e.map(Pe):Rs(String(e))}function Os(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xs=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function qe(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function As(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const s=e.charCodeAt(r);if(s===34||s===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function _s(e){const t=Object.create(null),n=String(e);let r=0,s=!1,o=!1;function i(a){const l=qe(n.slice(r,a)),d=l.indexOf("=");if(d<1)return;const u=qe(l.slice(0,d));if(!xs.test(u))return;const h=u.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const g=qe(l.slice(d+1));t[h]=As(g)}for(let a=0;a<n.length;a++){const l=n.charCodeAt(a);s?o?o=!1:l===92?o=!0:l===34&&(s=!1):l===34?s=!0:(l===44||l===59)&&(i(a),r=a+1)}return i(n.length),t}const Ps=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ze(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Ts(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Cs(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let F=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,d){const u=de(l);if(!u)return;const h=c.findKey(s,u);(!h||s[h]===void 0||d===!0||d===void 0&&s[h]!==!1)&&(s[h||l]=Pe(a))}const i=(a,l)=>c.forEach(a,(d,u)=>o(d,u,l));if(c.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(c.isString(t)&&(t=t.trim())&&!Ps(t))i(ys(t),n);else if(c.isObject(t)&&c.isSafeIterable(t)){let a=Object.create(null),l,d;for(const u of t){if(!c.isArray(u))throw new TypeError("Object iterator must return a key-value pair");d=u[0],c.hasOwnProp(a,d)?(l=a[d],a[d]=c.isArray(l)?[...l,u[1]]:[l,u[1]]):a[d]=u[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=de(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Os(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=de(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ze(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=de(i),i){const a=c.findKey(r,i);a&&(!n||ze(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ze(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=Pe(s),delete n[o];return}const a=t?Ts(o):String(o).trim();a!==o&&delete n[o],n[a]=Pe(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
9
- `)}getSetCookie(){const t=this.get("set-cookie");return c.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return _s(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[St]=this[St]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=de(i);r[a]||(Cs(s,i),r[a]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(F.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(F);const Ue="[REDACTED ****]";function Ds(e){if(c.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(c.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Ls(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||c.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof F&&(o=o.toJSON()),r.push(o);let i;if(c.isArray(o))i=[],o.forEach((a,l)=>{const d=s(a);c.isUndefined(d)||(i[l]=d)});else{if(!c.isPlainObject(o)&&Ds(o))return r.pop(),o;i=Object.create(null);for(const[a,l]of Object.entries(o)){const d=n.has(a.toLowerCase())?Ue:s(l);c.isUndefined(d)||(i[a]=d)}}return r.pop(),i};return s(e)}function Ot(e){try{return String(e)}catch{return""}}function Us(e){return e.errors.map(n=>{try{return n&&n.message?Ot(n.message):Ot(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let p=class on extends Error{static from(t,n,r,s,o,i){let a=t.message;!a&&c.isArray(t.errors)&&t.errors.length&&(a=Us(t));const l=new on(a,n||t.code,r,s,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&c.hasOwnProp(t,"redact")?t.redact:void 0,r=c.isArray(n)&&n.length>0?Ls(t,n):c.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};p.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";p.ERR_BAD_OPTION="ERR_BAD_OPTION";p.ECONNABORTED="ECONNABORTED";p.ETIMEDOUT="ETIMEDOUT";p.ECONNREFUSED="ECONNREFUSED";p.ERR_NETWORK="ERR_NETWORK";p.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";p.ERR_DEPRECATED="ERR_DEPRECATED";p.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";p.ERR_BAD_REQUEST="ERR_BAD_REQUEST";p.ERR_CANCELED="ERR_CANCELED";p.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";p.ERR_INVALID_URL="ERR_INVALID_URL";p.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Fs=null,an=100;function Qe(e){return c.isPlainObject(e)||c.isArray(e)}function cn(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){return e?e.concat(t).map(function(s,o){return s=cn(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ns(e){return c.isArray(e)&&!e.some(Qe)}const Is=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function je(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(m,b)=>{const y=c.getSafeProp(n,m);return c.isUndefined(y)?b:y},s=r("metaTokens",!0),o=r("visitor")||O,i=r("dots",!1),a=r("indexes",!1),l=r("Blob")||typeof Blob<"u"&&Blob,d=r("maxDepth",an),u=l&&c.isSpecCompliantForm(t),h=[];if(!c.isFunction(o))throw new TypeError("visitor must be a function");function g(m){if(m===null)return"";if(c.isDate(m))return m.toISOString();if(c.isBoolean(m))return m.toString();if(!u&&c.isBlob(m))throw new p("Blob is not supported. Use a Buffer instead.");if(c.isArrayBuffer(m)||c.isTypedArray(m)){if(u&&typeof l=="function")return new l([m]);throw new p("Blob is not supported. Use a Buffer instead.",p.ERR_NOT_SUPPORT)}return m}function E(m){if(m>d)throw new p("Object is too deeply nested ("+m+" levels). Max depth: "+d,p.ERR_FORM_DATA_DEPTH_EXCEEDED)}function R(m,b){if(d===1/0)return JSON.stringify(m);const y=[];return JSON.stringify(m,function(D,x){if(!c.isObject(x))return x;for(;y.length&&y[y.length-1]!==this;)y.pop();return y.push(x),E(b+y.length-1),x})}function O(m,b,y){let P=m;if(c.isReactNative(t)&&c.isReactNativeBlob(m))return t.append(ve(y,b,i),g(m)),!1;if(m&&!y&&typeof m=="object"){if(c.endsWith(b,"{}"))b=s?b:b.slice(0,-2),m=R(m,1);else if(c.isArray(m)&&Ns(m)||(c.isFileList(m)||c.endsWith(b,"[]"))&&(P=c.toArray(m)))return b=cn(b),P.forEach(function(x,H){!(c.isUndefined(x)||x===null)&&t.append(a===!0?ve([b],H,i):a===null?b:b+"[]",g(x))}),!1}return Qe(m)?!0:(t.append(ve(y,b,i),g(m)),!1)}const _=Object.assign(Is,{defaultVisitor:O,convertValue:g,isVisitable:Qe});function f(m,b,y=0){if(!c.isUndefined(m)){if(E(y),h.indexOf(m)!==-1)throw new Error("Circular reference detected in "+b.join("."));h.push(m),c.forEach(m,function(D,x){(!(c.isUndefined(D)||D===null)&&o.call(t,D,c.isString(x)?x.trim():x,b,_))===!0&&f(D,b?b.concat(x):[x],y+1)}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return f(e),t}function xt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function rt(e,t){this._pairs=[],e&&je(e,this,t)}const ln=rt.prototype;ln.append=function(t,n){this._pairs.push([t,n])};ln.toString=function(t){const n=t?r=>t.call(this,r,xt):xt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function js(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function un(e,t,n){if(!t)return e;e=e||"";const r=c.isFunction(n)?{serialize:n}:n,s=c.getSafeProp(r,"encode")||js,o=c.getSafeProp(r,"serialize");let i;if(o?i=o(t,r):i=c.isURLSearchParams(t)?t.toString():new rt(t,r).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const he=Symbol("internals");function fn(e){return e?e.length:0}function At(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function pe(e,t){const n=e.handlers,r=fn(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,i){n[o.index]!==o.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=r}class _t{constructor(){this.handlers=[],this[he]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const s={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[he];this.handlers==null&&(this.handlers=[]),pe(this,o);const i=o.nextId++;return this.handlers.push(s),o.handlerEntries.set(i,{handler:s,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(t){const n=this[he];pe(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(At(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],pe(this,this[he]))}forEach(t){const n=this[he];pe(this,n),n.iterationDepth++;try{c.forEach(this.handlers,function(s){s!==null&&t(s)})}finally{--n.iterationDepth||(pe(this,n),At(this.handlers),n.handlersLength=fn(this.handlers))}}}const st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Bs=typeof URLSearchParams<"u"?URLSearchParams:rt,ks=typeof FormData<"u"?FormData:null,$s=typeof Blob<"u"?Blob:null,Hs={isBrowser:!0,classes:{URLSearchParams:Bs,FormData:ks,Blob:$s},protocols:["http","https","file","blob","url","data"]},ot=typeof window<"u"&&typeof document<"u",Ze=typeof navigator=="object"&&navigator||void 0,Ms=ot&&(!Ze||["ReactNative","NativeScript","NS"].indexOf(Ze.product)<0),qs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zs=ot&&window.location.href||"http://localhost",vs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ot,hasStandardBrowserEnv:Ms,hasStandardBrowserWebWorkerEnv:qs,navigator:Ze,origin:zs},Symbol.toStringTag,{value:"Module"})),T={...vs,...Hs};function Vs(e,t){return je(e,new T.classes.URLSearchParams,{visitor:function(n,r,s,o){return T.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const Pt=an;function dn(e){if(e>Pt)throw new p("FormData field is too deeply nested ("+e+" levels). Max depth: "+Pt,p.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ws(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)dn(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Js(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function hn(e){function t(n,r,s,o){dn(o);let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,l?(c.hasOwnProp(s,i)?s[i]=c.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!a):((!c.hasOwnProp(s,i)||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Js(s[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Ws(r),s,n,0)}),n}return null}const pn=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),ie=(e,t)=>e!=null&&c.hasOwnProp(e,t)?e[t]:void 0;function Ks(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const be={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(hn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){const l=ie(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vs(t,l).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=ie(this,"env"),u=d&&d.FormData;return je(a?{"files[]":t}:t,u&&new u,l)}}return o||s?(n.setContentType("application/json",!1),Ks(t)):t}],transformResponse:[function(t){const n=ie(this,"transitional")||be.transitional,r=n&&n.forcedJSONParsing,s=ie(this,"responseType"),o=s==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!s||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,ie(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?p.from(l,p.ERR_BAD_RESPONSE,this,null,ie(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(pn,e=>{be.headers[e]={}});function Ve(e,t){const n=this||be,r=t||n,s=F.from(r.headers);let o=r.data;return c.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function mn(e){return!!(e&&e.__CANCEL__)}let Ee=class extends p{constructor(t,n,r){super(t??"canceled",p.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function gn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,n.status>=400&&n.status<500?p.ERR_BAD_REQUEST:p.ERR_BAD_RESPONSE,n.config,n.request,n))}const Xs=/[\t\n\r]/g;function yn(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Xs,"")}function We(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Gs(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),u=r[o];i||(i=d),n[s]=l,r[s]=d;let h=o,g=0;for(;h!==s;)g+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-i<t)return;const E=u&&d-u;return E?Math.round(g*1e3/E):void 0}}function Qs(e,t){let n=0,r=1e3/t,s,o;const i=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const h=Date.now(),g=h-n;g>=r?i(u,h):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-g)))},()=>s&&i(s),(...u)=>i(u)]}const Fe=(e,t,n=3)=>{let r=0;const s=Gs(50,250);return Qs(o=>{if(!o||!c.isNumber(o.loaded))return;const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=Math.max(0,a!=null?Math.min(i,a):i),d=Math.max(0,l-r),u=s(d);r=Math.max(r,l);const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:d,rate:u||void 0,estimated:u&&a?(a-l)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Tt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ct=(e,t=c.asap)=>(...n)=>t(()=>e(...n)),Zs=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,Ys=T.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function eo(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function to(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const no=/^https?:(?!\/\/)/i;function ro(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Ue}`)}function so(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ue}@`),n=t.indexOf("#"),s=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ue}`);return n===-1?s:`${s}#${ro(t.slice(n+1))}`}function Dt(e,t){if(typeof e=="string"){const n=yn(e);if(no.test(n))throw new p(`Invalid URL ${JSON.stringify(so(n))}: missing "//" after protocol`,p.ERR_INVALID_URL,t)}}function wn(e,t,n,r){Dt(t,r);let s=!eo(t);return e&&(s||n===!1)?(Dt(e,r),to(e,t)):t}const Lt=e=>e instanceof F?{...e}:e,oo=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function se(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,h,g,E){return c.isPlainObject(u)&&c.isPlainObject(h)?c.merge.call({caseless:E},u,h):c.isPlainObject(h)?c.merge({},h):c.isArray(h)?h.slice():h}function s(u,h,g,E){if(c.isUndefined(h)){if(!c.isUndefined(u))return r(void 0,u,g,E)}else return r(u,h,g,E)}function o(u,h){if(!c.isUndefined(h))return r(void 0,h)}function i(u,h){if(c.isUndefined(h)){if(!c.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function a(u){const h=c.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!c.isUndefined(h))if(c.isPlainObject(h)){if(c.hasOwnProp(h,u))return h[u]}else return;const g=c.hasOwnProp(e,"transitional")?e.transitional:void 0;if(c.isPlainObject(g)&&c.hasOwnProp(g,u))return g[u]}function l(u,h,g){if(c.hasOwnProp(t,g))return r(u,h);if(c.hasOwnProp(e,g))return r(void 0,u)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutErrorMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(u,h,g)=>s(Lt(u),Lt(h),g,!0)};return c.forEach(oo({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const g=c.hasOwnProp(d,h)?d[h]:s,E=c.hasOwnProp(e,h)?e[h]:void 0,R=c.hasOwnProp(t,h)?t[h]:void 0,O=g(E,R,h);c.isUndefined(O)&&g!==l||(n[h]=O)}),c.hasOwnProp(t,"validateStatus")&&c.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(c.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const io=["content-type","content-length"];function ao(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,s])=>{io.includes(r.toLowerCase())&&e.set(r,s)})}const co=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function bn(e){const t=se({},e),n=g=>c.hasOwnProp(t,g)?t[g]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(t.headers=a=F.from(a),t.url=un(wn(d,h,u,t),n("params"),n("paramsSerializer")),l){const g=c.getSafeProp(l,"username")||"",E=c.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(g+":"+(E?co(E):"")))}catch(R){throw p.from(R,p.ERR_BAD_OPTION_VALUE,e)}}if(c.isFormData(r)){const g=c.getSafeProp(r,"getHeaders");T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv||c.isReactNative(r)?a.setContentType(void 0):c.isFunction(g)&&ao(a,g.call(r),n("formDataHeaderPolicy"))}if(T.hasStandardBrowserEnv&&(c.isFunction(s)&&(s=s(t)),s===!0||s==null&&Zs(t.url))){const E=o&&i&&Ys.read(i);E&&a.set(o,E)}return t}const lo=typeof XMLHttpRequest<"u",uo=lo&&function(e){return new Promise(function(n,r){const s=bn(e);let o=s.data;const i=F.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:d}=s,u,h,g,E,R,O;function _(){E&&E(),R&&R(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout;function m(y){if(!f)return;if(f.status===0&&(We(yn(s.url))||We(T.origin))!=="file"&&!(f.responseURL&&f.responseURL.startsWith("file:"))){r(new p("Request aborted",p.ECONNABORTED,e,f)),_(),f=null;return}try{y?O&&O(y):R&&R()}catch(H){setTimeout(()=>{throw H})}if(!f)return;const P=F.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:P,config:e,request:f};gn(function(Q){n(Q),_()},function(Q){r(Q),_()},x),f=null}"onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(m)},f.onabort=function(){f&&(r(new p("Request aborted",p.ECONNABORTED,e,f)),_(),f=null)},f.onerror=function(P){const D=P&&P.message?P.message:"Network Error",x=new p(D,p.ERR_NETWORK,e,f);x.event=P||null,r(x),_(),f=null},f.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||st;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new p(P,D.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,f)),_(),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&c.forEach(sn(i),function(P,D){f.setRequestHeader(D,P)}),c.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),a&&a!=="json"&&(f.responseType=s.responseType),d&&([g,R,O]=Fe(d,!0),f.addEventListener("progress",g)),l&&f.upload&&([h,E]=Fe(l),f.upload.addEventListener("progress",h),f.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(u=y=>{f&&(r(!y||y.type?new Ee(null,e,f):y),f.abort(),_(),f=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const b=We(s.url);if(b&&!T.protocols.includes(b)){r(new p("Unsupported protocol "+b+":",p.ERR_BAD_REQUEST,e)),_();return}f.send(o||null)})},fo=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const s=function(l){if(!r){r=!0,i();const d=l instanceof Error?l:this.reason;n.abort(d instanceof p?d:new Ee(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,s(new p(`timeout of ${t}ms exceeded`,p.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){s.call(l);return}l.addEventListener("abort",s,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>c.asap(i),a},ho=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},po=async function*(e,t){for await(const n of mo(e))yield*ho(n,t)},mo=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ut=(e,t,n,r)=>{const s=po(e,t);let o=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:u}=await s.next();if(d){a(),l.close();return}let h=u.byteLength;if(n){let g=o+=h;n(g)}l.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Ft=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,En=(e,t,n)=>t+2<n&&Ft(e.charCodeAt(t+1))&&Ft(e.charCodeAt(t+2)),Nt=e=>e<=57?e-48:(e&223)-55,go=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,yo=e=>e===9||e===10||e===12||e===13||e===32,wo=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},bo=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Eo=e=>{const t=e.length;let n=0,r=0,s=!1;for(let o=0;o<t;o++){let i=e.charCodeAt(o);if(i===37&&En(e,o,t)&&(i=Nt(e.charCodeAt(o+1))*16+Nt(e.charCodeAt(o+2)),o+=2),!yo(i)){if(i===61){r++;continue}if(!go(i)||r>0){s=!0;continue}n++}}return s||r>2||r>0&&(n+r)%4!==0||n%4===1?bo(e):wo(n)},Ro=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),s=e.slice(n+1);if(/;base64/i.test(r))return t(s);let i=0;for(let a=0,l=s.length;a<l;a++){const d=s.charCodeAt(a);if(d===37&&En(s,a,l))i+=1,a+=2;else if(d<128)i+=1;else if(d<2048)i+=2;else if(d>=55296&&d<=56319&&a+1<l){const u=s.charCodeAt(a+1);u>=56320&&u<=57343?(i+=4,a++):i+=3}else i+=3}return i};function So(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Ro(t===-1?e:e.slice(0,t),Eo)}const it="1.20.0",It=64*1024,Oo={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Ae}=c,xo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),jt=e=>{if(!c.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Bt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ao=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},_o=e=>{const t=c.global!==void 0&&c.global!==null?c.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=c.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,a=s?Ae(s):typeof fetch=="function",l=Ae(o),d=Ae(i);if(!a)return!1;const u=a&&Ae(n),h=a&&(typeof r=="function"?(f=>m=>f.encode(m))(new r):async f=>new Uint8Array(await new o(f).arrayBuffer())),g=l&&u&&Bt(()=>{let f=!1;const m=new o(T.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),b=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),f&&!b}),E=d&&u&&Bt(()=>c.isReadableStream(new i("").body)),R={stream:E&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!R[f]&&(R[f]=(m,b)=>{let y=m&&m[f];if(y)return y.call(m);throw new p(`Response type '${f}' is not supported`,p.ERR_NOT_SUPPORT,b)})});const O=async f=>{if(f==null)return 0;if(c.isBlob(f))return f.size;if(c.isSpecCompliantForm(f))return(await new o(T.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(c.isArrayBufferView(f)||c.isArrayBuffer(f))return f.byteLength;if(c.isURLSearchParams(f)&&(f=f+""),c.isString(f))return(await h(f)).byteLength},_=async(f,m)=>{const b=c.toFiniteNumber(f.getContentLength());return b??O(m)};return async f=>{let{url:m,method:b,data:y,signal:P,cancelToken:D,timeout:x,onDownloadProgress:H,onUploadProgress:Q,responseType:W,headers:J,withCredentials:Re="same-origin",fetchOptions:ke,maxContentLength:M,maxBodyLength:Se,maxRedirects:An}=bn(f);const le=c.isNumber(M)&&M>-1,$e=c.isNumber(Se)&&Se>-1,_n=S=>c.hasOwnProp(f,S)?f[S]:void 0;let ct=s||fetch;W=W?(W+"").toLowerCase():"text";let K=fo([P,D&&D.toAbortSignal()],x),C=null;const Z=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let oe,ue=null;const lt=()=>new p("Request body larger than maxBodyLength limit",p.ERR_BAD_REQUEST,f,C);try{let S;const B=_n("auth");if(B){const w=c.getSafeProp(B,"username")||"",L=c.getSafeProp(B,"password")||"";S={username:w,password:L}}if(Ao(m)){const w=new URL(m,T.origin);if(!S&&(w.username||w.password)){const L=jt(w.username),X=jt(w.password);S={username:L,password:X}}(w.username||w.password)&&(w.username="",w.password="",m=w.href)}if(S&&(J.delete("authorization"),J.set("Authorization","Basic "+btoa(xo((S.username||"")+":"+(S.password||""))))),le&&typeof m=="string"&&m.startsWith("data:")&&So(m)>M)throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C);if($e&&b!=="get"&&b!=="head"){const w=await O(y);if(typeof w=="number"&&isFinite(w)&&(oe=w,w>Se))throw lt()}const Oe=$e&&(c.isReadableStream(y)||c.isStream(y)),ut=(w,L,X)=>Ut(w,It,Y=>{if($e&&Y>Se)throw ue=lt();L&&L(Y)},X);if(g&&b!=="get"&&b!=="head"&&(Q||Oe)){if(oe=oe??await _(J,y),oe!==0||Oe){let w=new o(m,{method:"POST",body:y,duplex:"half"}),L;if(c.isFormData(y)&&(L=w.headers.get("content-type"))&&J.setContentType(L),w.body){const[X,Y]=Q&&Tt(oe,Fe(Ct(Q)))||[];y=ut(w.body,X,Y)}}}else if(Oe&&!l&&u&&b!=="get"&&b!=="head")y=ut(y);else if(Oe&&l&&!g&&b!=="get"&&b!=="head")throw new p("Stream request bodies are not supported by the current fetch implementation",p.ERR_NOT_SUPPORT,f,C);c.isString(Re)||(Re=Re?"include":"omit");const Pn=l&&"credentials"in o.prototype;if(c.isFormData(y)){const w=J.getContentType();w&&/^multipart\/form-data/i.test(w)&&!/boundary=/i.test(w)&&J.delete("content-type")}J.set("User-Agent","axios/"+it,!1);const $=ke==null?ke:Object.assign(Object.create(null),ke);$&&(delete $.body,delete $.headers,delete $.method,delete $.signal,delete $.duplex,delete $.credentials);const q=Object.assign(Object.create(null),$,{signal:K,method:b.toUpperCase(),headers:sn(J.normalize()),body:y,duplex:"half",credentials:Pn?Re:void 0});l&&(c.forEach(Oo,(w,L)=>{q[L]===void 0&&(q[L]=w)}),q.signal===void 0&&(q.signal=null),q.body===void 0&&(q.body=null)),An===0&&(q.redirect="manual",$&&($.redirect="manual")),C=l&&new o(m,q);let z=await(l?ct(C,$):ct(m,q));const ft=F.from(z.headers);if(le){const w=c.toFiniteNumber(ft.getContentLength());if(w!=null&&w>M)throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C)}const He=E&&(W==="stream"||W==="response");if(E&&z.body&&(H||le||He&&Z)){const w={};["status","statusText","headers"].forEach(fe=>{w[fe]=z[fe]});const L=c.toFiniteNumber(ft.getContentLength()),[X,Y]=H&&Tt(L,Fe(Ct(H),!0))||[];let dt=0;const Tn=fe=>{if(le&&(dt=fe,dt>M))throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C);X&&X(fe)};z=new i(Ut(z.body,It,Tn,()=>{Y&&Y(),Z&&Z()}),w)}W=W||"text";let v=await R[c.findKey(R,W)||"text"](z,f);if(le&&!E&&!He){let w;if(v!=null&&(typeof v.byteLength=="number"?w=v.byteLength:typeof v.size=="number"?w=v.size:typeof v=="string"&&(w=typeof r=="function"?new r().encode(v).byteLength:v.length)),typeof w=="number"&&w>M)throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C)}return!He&&Z&&Z(),await new Promise((w,L)=>{gn(w,L,{data:v,headers:F.from(z.headers),status:z.status,statusText:z.statusText,config:f,request:C})})}catch(S){if(Z&&Z(),K&&K.aborted&&K.reason instanceof p){const B=K.reason;throw B.config=f,C&&(B.request=C),S!==B&&Object.defineProperty(B,"cause",{__proto__:null,value:S,writable:!0,enumerable:!1,configurable:!0}),B}if(ue)throw C&&!ue.request&&(ue.request=C),ue;if(S instanceof p)throw C&&!S.request&&(S.request=C),S;if(S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)){const B=new p("Network Error",p.ERR_NETWORK,f,C,S&&S.response);throw Object.defineProperty(B,"cause",{__proto__:null,value:S.cause||S,writable:!0,enumerable:!1,configurable:!0}),B}throw p.from(S,S&&S.code,f,C,S&&S.response)}}},Po=new Map,Rn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,a=i,l,d,u=Po;for(;a--;)l=o[a],d=u.get(l),d===void 0&&u.set(l,d=a?new Map:_o(t)),u=d;return d};Rn();const at={http:Fs,xhr:uo,fetch:{get:Rn}};c.forEach(at,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const kt=e=>`- ${e}`,To=e=>c.isFunction(e)||e===null||e===!1;function Co(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let a;if(s=r,!To(r)&&(s=at[(a=String(r)).toLowerCase()],s===void 0))throw new p(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
9
+ `)}getSetCookie(){const t=this.get("set-cookie");return c.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return _s(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[St]=this[St]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=de(i);r[a]||(Cs(s,i),r[a]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(F.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(F);const Ue="[REDACTED ****]";function Ds(e){if(c.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(c.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Ls(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||c.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof F&&(o=o.toJSON()),r.push(o);let i;if(c.isArray(o))i=[],o.forEach((a,l)=>{const d=s(a);c.isUndefined(d)||(i[l]=d)});else{if(!c.isPlainObject(o)&&Ds(o))return r.pop(),o;i=Object.create(null);for(const[a,l]of Object.entries(o)){const d=n.has(a.toLowerCase())?Ue:s(l);c.isUndefined(d)||(i[a]=d)}}return r.pop(),i};return s(e)}function Ot(e){try{return String(e)}catch{return""}}function Us(e){return e.errors.map(n=>{try{return n&&n.message?Ot(n.message):Ot(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let p=class on extends Error{static from(t,n,r,s,o,i){let a=t.message;!a&&c.isArray(t.errors)&&t.errors.length&&(a=Us(t));const l=new on(a,n||t.code,r,s,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&c.hasOwnProp(t,"redact")?t.redact:void 0,r=c.isArray(n)&&n.length>0?Ls(t,n):c.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};p.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";p.ERR_BAD_OPTION="ERR_BAD_OPTION";p.ECONNABORTED="ECONNABORTED";p.ETIMEDOUT="ETIMEDOUT";p.ECONNREFUSED="ECONNREFUSED";p.ERR_NETWORK="ERR_NETWORK";p.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";p.ERR_DEPRECATED="ERR_DEPRECATED";p.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";p.ERR_BAD_REQUEST="ERR_BAD_REQUEST";p.ERR_CANCELED="ERR_CANCELED";p.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";p.ERR_INVALID_URL="ERR_INVALID_URL";p.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Fs=null,an=100;function Qe(e){return c.isPlainObject(e)||c.isArray(e)}function cn(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){return e?e.concat(t).map(function(s,o){return s=cn(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ns(e){return c.isArray(e)&&!e.some(Qe)}const Is=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Be(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(m,b)=>{const y=c.getSafeProp(n,m);return c.isUndefined(y)?b:y},s=r("metaTokens",!0),o=r("visitor")||O,i=r("dots",!1),a=r("indexes",!1),l=r("Blob")||typeof Blob<"u"&&Blob,d=r("maxDepth",an),u=l&&c.isSpecCompliantForm(t),h=[];if(!c.isFunction(o))throw new TypeError("visitor must be a function");function g(m){if(m===null)return"";if(c.isDate(m))return m.toISOString();if(c.isBoolean(m))return m.toString();if(!u&&c.isBlob(m))throw new p("Blob is not supported. Use a Buffer instead.");if(c.isArrayBuffer(m)||c.isTypedArray(m)){if(u&&typeof l=="function")return new l([m]);throw new p("Blob is not supported. Use a Buffer instead.",p.ERR_NOT_SUPPORT)}return m}function E(m){if(m>d)throw new p("Object is too deeply nested ("+m+" levels). Max depth: "+d,p.ERR_FORM_DATA_DEPTH_EXCEEDED)}function R(m,b){if(d===1/0)return JSON.stringify(m);const y=[];return JSON.stringify(m,function(D,x){if(!c.isObject(x))return x;for(;y.length&&y[y.length-1]!==this;)y.pop();return y.push(x),E(b+y.length-1),x})}function O(m,b,y){let P=m;if(c.isReactNative(t)&&c.isReactNativeBlob(m))return t.append(ve(y,b,i),g(m)),!1;if(m&&!y&&typeof m=="object"){if(c.endsWith(b,"{}"))b=s?b:b.slice(0,-2),m=R(m,1);else if(c.isArray(m)&&Ns(m)||(c.isFileList(m)||c.endsWith(b,"[]"))&&(P=c.toArray(m)))return b=cn(b),P.forEach(function(x,H){!(c.isUndefined(x)||x===null)&&t.append(a===!0?ve([b],H,i):a===null?b:b+"[]",g(x))}),!1}return Qe(m)?!0:(t.append(ve(y,b,i),g(m)),!1)}const _=Object.assign(Is,{defaultVisitor:O,convertValue:g,isVisitable:Qe});function f(m,b,y=0){if(!c.isUndefined(m)){if(E(y),h.indexOf(m)!==-1)throw new Error("Circular reference detected in "+b.join("."));h.push(m),c.forEach(m,function(D,x){(!(c.isUndefined(D)||D===null)&&o.call(t,D,c.isString(x)?x.trim():x,b,_))===!0&&f(D,b?b.concat(x):[x],y+1)}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return f(e),t}function xt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function rt(e,t){this._pairs=[],e&&Be(e,this,t)}const ln=rt.prototype;ln.append=function(t,n){this._pairs.push([t,n])};ln.toString=function(t){const n=t?r=>t.call(this,r,xt):xt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Bs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function un(e,t,n){if(!t)return e;e=e||"";const r=c.isFunction(n)?{serialize:n}:n,s=c.getSafeProp(r,"encode")||Bs,o=c.getSafeProp(r,"serialize");let i;if(o?i=o(t,r):i=c.isURLSearchParams(t)?t.toString():new rt(t,r).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const he=Symbol("internals");function fn(e){return e?e.length:0}function At(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function pe(e,t){const n=e.handlers,r=fn(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,i){n[o.index]!==o.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=r}class _t{constructor(){this.handlers=[],this[he]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const s={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[he];this.handlers==null&&(this.handlers=[]),pe(this,o);const i=o.nextId++;return this.handlers.push(s),o.handlerEntries.set(i,{handler:s,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(t){const n=this[he];pe(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(At(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],pe(this,this[he]))}forEach(t){const n=this[he];pe(this,n),n.iterationDepth++;try{c.forEach(this.handlers,function(s){s!==null&&t(s)})}finally{--n.iterationDepth||(pe(this,n),At(this.handlers),n.handlersLength=fn(this.handlers))}}}const st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},js=typeof URLSearchParams<"u"?URLSearchParams:rt,ks=typeof FormData<"u"?FormData:null,$s=typeof Blob<"u"?Blob:null,Hs={isBrowser:!0,classes:{URLSearchParams:js,FormData:ks,Blob:$s},protocols:["http","https","file","blob","url","data"]},ot=typeof window<"u"&&typeof document<"u",Ze=typeof navigator=="object"&&navigator||void 0,Ms=ot&&(!Ze||["ReactNative","NativeScript","NS"].indexOf(Ze.product)<0),qs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zs=ot&&window.location.href||"http://localhost",vs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ot,hasStandardBrowserEnv:Ms,hasStandardBrowserWebWorkerEnv:qs,navigator:Ze,origin:zs},Symbol.toStringTag,{value:"Module"})),T={...vs,...Hs};function Vs(e,t){return Be(e,new T.classes.URLSearchParams,{visitor:function(n,r,s,o){return T.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const Pt=an;function dn(e){if(e>Pt)throw new p("FormData field is too deeply nested ("+e+" levels). Max depth: "+Pt,p.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ws(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)dn(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Js(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function hn(e){function t(n,r,s,o){dn(o);let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,l?(c.hasOwnProp(s,i)?s[i]=c.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!a):((!c.hasOwnProp(s,i)||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Js(s[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Ws(r),s,n,0)}),n}return null}const pn=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),ie=(e,t)=>e!=null&&c.hasOwnProp(e,t)?e[t]:void 0;function Ks(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const be={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(hn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){const l=ie(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vs(t,l).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=ie(this,"env"),u=d&&d.FormData;return Be(a?{"files[]":t}:t,u&&new u,l)}}return o||s?(n.setContentType("application/json",!1),Ks(t)):t}],transformResponse:[function(t){const n=ie(this,"transitional")||be.transitional,r=n&&n.forcedJSONParsing,s=ie(this,"responseType"),o=s==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!s||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,ie(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?p.from(l,p.ERR_BAD_RESPONSE,this,null,ie(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(pn,e=>{be.headers[e]={}});function Ve(e,t){const n=this||be,r=t||n,s=F.from(r.headers);let o=r.data;return c.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function mn(e){return!!(e&&e.__CANCEL__)}let Ee=class extends p{constructor(t,n,r){super(t??"canceled",p.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function gn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,n.status>=400&&n.status<500?p.ERR_BAD_REQUEST:p.ERR_BAD_RESPONSE,n.config,n.request,n))}const Xs=/[\t\n\r]/g;function yn(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Xs,"")}function We(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Gs(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),u=r[o];i||(i=d),n[s]=l,r[s]=d;let h=o,g=0;for(;h!==s;)g+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-i<t)return;const E=u&&d-u;return E?Math.round(g*1e3/E):void 0}}function Qs(e,t){let n=0,r=1e3/t,s,o;const i=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const h=Date.now(),g=h-n;g>=r?i(u,h):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-g)))},()=>s&&i(s),(...u)=>i(u)]}const Fe=(e,t,n=3)=>{let r=0;const s=Gs(50,250);return Qs(o=>{if(!o||!c.isNumber(o.loaded))return;const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=Math.max(0,a!=null?Math.min(i,a):i),d=Math.max(0,l-r),u=s(d);r=Math.max(r,l);const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:d,rate:u||void 0,estimated:u&&a?(a-l)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Tt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ct=(e,t=c.asap)=>(...n)=>t(()=>e(...n)),Zs=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,Ys=T.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function eo(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function to(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const no=/^https?:(?!\/\/)/i;function ro(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Ue}`)}function so(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ue}@`),n=t.indexOf("#"),s=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ue}`);return n===-1?s:`${s}#${ro(t.slice(n+1))}`}function Dt(e,t){if(typeof e=="string"){const n=yn(e);if(no.test(n))throw new p(`Invalid URL ${JSON.stringify(so(n))}: missing "//" after protocol`,p.ERR_INVALID_URL,t)}}function wn(e,t,n,r){Dt(t,r);let s=!eo(t);return e&&(s||n===!1)?(Dt(e,r),to(e,t)):t}const Lt=e=>e instanceof F?{...e}:e,oo=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function se(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,h,g,E){return c.isPlainObject(u)&&c.isPlainObject(h)?c.merge.call({caseless:E},u,h):c.isPlainObject(h)?c.merge({},h):c.isArray(h)?h.slice():h}function s(u,h,g,E){if(c.isUndefined(h)){if(!c.isUndefined(u))return r(void 0,u,g,E)}else return r(u,h,g,E)}function o(u,h){if(!c.isUndefined(h))return r(void 0,h)}function i(u,h){if(c.isUndefined(h)){if(!c.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function a(u){const h=c.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!c.isUndefined(h))if(c.isPlainObject(h)){if(c.hasOwnProp(h,u))return h[u]}else return;const g=c.hasOwnProp(e,"transitional")?e.transitional:void 0;if(c.isPlainObject(g)&&c.hasOwnProp(g,u))return g[u]}function l(u,h,g){if(c.hasOwnProp(t,g))return r(u,h);if(c.hasOwnProp(e,g))return r(void 0,u)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutErrorMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(u,h,g)=>s(Lt(u),Lt(h),g,!0)};return c.forEach(oo({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const g=c.hasOwnProp(d,h)?d[h]:s,E=c.hasOwnProp(e,h)?e[h]:void 0,R=c.hasOwnProp(t,h)?t[h]:void 0,O=g(E,R,h);c.isUndefined(O)&&g!==l||(n[h]=O)}),c.hasOwnProp(t,"validateStatus")&&c.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(c.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const io=["content-type","content-length"];function ao(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,s])=>{io.includes(r.toLowerCase())&&e.set(r,s)})}const co=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function bn(e){const t=se({},e),n=g=>c.hasOwnProp(t,g)?t[g]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(t.headers=a=F.from(a),t.url=un(wn(d,h,u,t),n("params"),n("paramsSerializer")),l){const g=c.getSafeProp(l,"username")||"",E=c.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(g+":"+(E?co(E):"")))}catch(R){throw p.from(R,p.ERR_BAD_OPTION_VALUE,e)}}if(c.isFormData(r)){const g=c.getSafeProp(r,"getHeaders");T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv||c.isReactNative(r)?a.setContentType(void 0):c.isFunction(g)&&ao(a,g.call(r),n("formDataHeaderPolicy"))}if(T.hasStandardBrowserEnv&&(c.isFunction(s)&&(s=s(t)),s===!0||s==null&&Zs(t.url))){const E=o&&i&&Ys.read(i);E&&a.set(o,E)}return t}const lo=typeof XMLHttpRequest<"u",uo=lo&&function(e){return new Promise(function(n,r){const s=bn(e);let o=s.data;const i=F.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:d}=s,u,h,g,E,R,O;function _(){E&&E(),R&&R(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout;function m(y){if(!f)return;if(f.status===0&&(We(yn(s.url))||We(T.origin))!=="file"&&!(f.responseURL&&f.responseURL.startsWith("file:"))){r(new p("Request aborted",p.ECONNABORTED,e,f)),_(),f=null;return}try{y?O&&O(y):R&&R()}catch(H){setTimeout(()=>{throw H})}if(!f)return;const P=F.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:P,config:e,request:f};gn(function(Q){n(Q),_()},function(Q){r(Q),_()},x),f=null}"onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(m)},f.onabort=function(){f&&(r(new p("Request aborted",p.ECONNABORTED,e,f)),_(),f=null)},f.onerror=function(P){const D=P&&P.message?P.message:"Network Error",x=new p(D,p.ERR_NETWORK,e,f);x.event=P||null,r(x),_(),f=null},f.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||st;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new p(P,D.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,f)),_(),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&c.forEach(sn(i),function(P,D){f.setRequestHeader(D,P)}),c.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),a&&a!=="json"&&(f.responseType=s.responseType),d&&([g,R,O]=Fe(d,!0),f.addEventListener("progress",g)),l&&f.upload&&([h,E]=Fe(l),f.upload.addEventListener("progress",h),f.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(u=y=>{f&&(r(!y||y.type?new Ee(null,e,f):y),f.abort(),_(),f=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const b=We(s.url);if(b&&!T.protocols.includes(b)){r(new p("Unsupported protocol "+b+":",p.ERR_BAD_REQUEST,e)),_();return}f.send(o||null)})},fo=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const s=function(l){if(!r){r=!0,i();const d=l instanceof Error?l:this.reason;n.abort(d instanceof p?d:new Ee(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,s(new p(`timeout of ${t}ms exceeded`,p.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){s.call(l);return}l.addEventListener("abort",s,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>c.asap(i),a},ho=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},po=async function*(e,t){for await(const n of mo(e))yield*ho(n,t)},mo=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ut=(e,t,n,r)=>{const s=po(e,t);let o=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:u}=await s.next();if(d){a(),l.close();return}let h=u.byteLength;if(n){let g=o+=h;n(g)}l.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Ft=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,En=(e,t,n)=>t+2<n&&Ft(e.charCodeAt(t+1))&&Ft(e.charCodeAt(t+2)),Nt=e=>e<=57?e-48:(e&223)-55,go=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,yo=e=>e===9||e===10||e===12||e===13||e===32,wo=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},bo=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Eo=e=>{const t=e.length;let n=0,r=0,s=!1;for(let o=0;o<t;o++){let i=e.charCodeAt(o);if(i===37&&En(e,o,t)&&(i=Nt(e.charCodeAt(o+1))*16+Nt(e.charCodeAt(o+2)),o+=2),!yo(i)){if(i===61){r++;continue}if(!go(i)||r>0){s=!0;continue}n++}}return s||r>2||r>0&&(n+r)%4!==0||n%4===1?bo(e):wo(n)},Ro=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),s=e.slice(n+1);if(/;base64/i.test(r))return t(s);let i=0;for(let a=0,l=s.length;a<l;a++){const d=s.charCodeAt(a);if(d===37&&En(s,a,l))i+=1,a+=2;else if(d<128)i+=1;else if(d<2048)i+=2;else if(d>=55296&&d<=56319&&a+1<l){const u=s.charCodeAt(a+1);u>=56320&&u<=57343?(i+=4,a++):i+=3}else i+=3}return i};function So(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Ro(t===-1?e:e.slice(0,t),Eo)}const it="1.20.0",It=64*1024,Oo={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Ae}=c,xo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Bt=e=>{if(!c.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ao=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},_o=e=>{const t=c.global!==void 0&&c.global!==null?c.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=c.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,a=s?Ae(s):typeof fetch=="function",l=Ae(o),d=Ae(i);if(!a)return!1;const u=a&&Ae(n),h=a&&(typeof r=="function"?(f=>m=>f.encode(m))(new r):async f=>new Uint8Array(await new o(f).arrayBuffer())),g=l&&u&&jt(()=>{let f=!1;const m=new o(T.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),b=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),f&&!b}),E=d&&u&&jt(()=>c.isReadableStream(new i("").body)),R={stream:E&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!R[f]&&(R[f]=(m,b)=>{let y=m&&m[f];if(y)return y.call(m);throw new p(`Response type '${f}' is not supported`,p.ERR_NOT_SUPPORT,b)})});const O=async f=>{if(f==null)return 0;if(c.isBlob(f))return f.size;if(c.isSpecCompliantForm(f))return(await new o(T.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(c.isArrayBufferView(f)||c.isArrayBuffer(f))return f.byteLength;if(c.isURLSearchParams(f)&&(f=f+""),c.isString(f))return(await h(f)).byteLength},_=async(f,m)=>{const b=c.toFiniteNumber(f.getContentLength());return b??O(m)};return async f=>{let{url:m,method:b,data:y,signal:P,cancelToken:D,timeout:x,onDownloadProgress:H,onUploadProgress:Q,responseType:W,headers:J,withCredentials:Re="same-origin",fetchOptions:ke,maxContentLength:M,maxBodyLength:Se,maxRedirects:An}=bn(f);const le=c.isNumber(M)&&M>-1,$e=c.isNumber(Se)&&Se>-1,_n=S=>c.hasOwnProp(f,S)?f[S]:void 0;let ct=s||fetch;W=W?(W+"").toLowerCase():"text";let K=fo([P,D&&D.toAbortSignal()],x),C=null;const Z=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let oe,ue=null;const lt=()=>new p("Request body larger than maxBodyLength limit",p.ERR_BAD_REQUEST,f,C);try{let S;const j=_n("auth");if(j){const w=c.getSafeProp(j,"username")||"",L=c.getSafeProp(j,"password")||"";S={username:w,password:L}}if(Ao(m)){const w=new URL(m,T.origin);if(!S&&(w.username||w.password)){const L=Bt(w.username),X=Bt(w.password);S={username:L,password:X}}(w.username||w.password)&&(w.username="",w.password="",m=w.href)}if(S&&(J.delete("authorization"),J.set("Authorization","Basic "+btoa(xo((S.username||"")+":"+(S.password||""))))),le&&typeof m=="string"&&m.startsWith("data:")&&So(m)>M)throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C);if($e&&b!=="get"&&b!=="head"){const w=await O(y);if(typeof w=="number"&&isFinite(w)&&(oe=w,w>Se))throw lt()}const Oe=$e&&(c.isReadableStream(y)||c.isStream(y)),ut=(w,L,X)=>Ut(w,It,Y=>{if($e&&Y>Se)throw ue=lt();L&&L(Y)},X);if(g&&b!=="get"&&b!=="head"&&(Q||Oe)){if(oe=oe??await _(J,y),oe!==0||Oe){let w=new o(m,{method:"POST",body:y,duplex:"half"}),L;if(c.isFormData(y)&&(L=w.headers.get("content-type"))&&J.setContentType(L),w.body){const[X,Y]=Q&&Tt(oe,Fe(Ct(Q)))||[];y=ut(w.body,X,Y)}}}else if(Oe&&!l&&u&&b!=="get"&&b!=="head")y=ut(y);else if(Oe&&l&&!g&&b!=="get"&&b!=="head")throw new p("Stream request bodies are not supported by the current fetch implementation",p.ERR_NOT_SUPPORT,f,C);c.isString(Re)||(Re=Re?"include":"omit");const Pn=l&&"credentials"in o.prototype;if(c.isFormData(y)){const w=J.getContentType();w&&/^multipart\/form-data/i.test(w)&&!/boundary=/i.test(w)&&J.delete("content-type")}J.set("User-Agent","axios/"+it,!1);const $=ke==null?ke:Object.assign(Object.create(null),ke);$&&(delete $.body,delete $.headers,delete $.method,delete $.signal,delete $.duplex,delete $.credentials);const q=Object.assign(Object.create(null),$,{signal:K,method:b.toUpperCase(),headers:sn(J.normalize()),body:y,duplex:"half",credentials:Pn?Re:void 0});l&&(c.forEach(Oo,(w,L)=>{q[L]===void 0&&(q[L]=w)}),q.signal===void 0&&(q.signal=null),q.body===void 0&&(q.body=null)),An===0&&(q.redirect="manual",$&&($.redirect="manual")),C=l&&new o(m,q);let z=await(l?ct(C,$):ct(m,q));const ft=F.from(z.headers);if(le){const w=c.toFiniteNumber(ft.getContentLength());if(w!=null&&w>M)throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C)}const He=E&&(W==="stream"||W==="response");if(E&&z.body&&(H||le||He&&Z)){const w={};["status","statusText","headers"].forEach(fe=>{w[fe]=z[fe]});const L=c.toFiniteNumber(ft.getContentLength()),[X,Y]=H&&Tt(L,Fe(Ct(H),!0))||[];let dt=0;const Tn=fe=>{if(le&&(dt=fe,dt>M))throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C);X&&X(fe)};z=new i(Ut(z.body,It,Tn,()=>{Y&&Y(),Z&&Z()}),w)}W=W||"text";let v=await R[c.findKey(R,W)||"text"](z,f);if(le&&!E&&!He){let w;if(v!=null&&(typeof v.byteLength=="number"?w=v.byteLength:typeof v.size=="number"?w=v.size:typeof v=="string"&&(w=typeof r=="function"?new r().encode(v).byteLength:v.length)),typeof w=="number"&&w>M)throw new p("maxContentLength size of "+M+" exceeded",p.ERR_BAD_RESPONSE,f,C)}return!He&&Z&&Z(),await new Promise((w,L)=>{gn(w,L,{data:v,headers:F.from(z.headers),status:z.status,statusText:z.statusText,config:f,request:C})})}catch(S){if(Z&&Z(),K&&K.aborted&&K.reason instanceof p){const j=K.reason;throw j.config=f,C&&(j.request=C),S!==j&&Object.defineProperty(j,"cause",{__proto__:null,value:S,writable:!0,enumerable:!1,configurable:!0}),j}if(ue)throw C&&!ue.request&&(ue.request=C),ue;if(S instanceof p)throw C&&!S.request&&(S.request=C),S;if(S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)){const j=new p("Network Error",p.ERR_NETWORK,f,C,S&&S.response);throw Object.defineProperty(j,"cause",{__proto__:null,value:S.cause||S,writable:!0,enumerable:!1,configurable:!0}),j}throw p.from(S,S&&S.code,f,C,S&&S.response)}}},Po=new Map,Rn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,a=i,l,d,u=Po;for(;a--;)l=o[a],d=u.get(l),d===void 0&&u.set(l,d=a?new Map:_o(t)),u=d;return d};Rn();const at={http:Fs,xhr:uo,fetch:{get:Rn}};c.forEach(at,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const kt=e=>`- ${e}`,To=e=>c.isFunction(e)||e===null||e===!1;function Co(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let a;if(s=r,!To(r)&&(s=at[(a=String(r)).toLowerCase()],s===void 0))throw new p(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
10
10
  `+i.map(kt).join(`
11
- `):" "+kt(i[0]):"as no adapter specified";throw new p("There is no suitable adapter to dispatch the request "+a,p.ERR_NOT_SUPPORT)}return s}const Sn={getAdapter:Co,adapters:at};function Je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function Ke(e){const t=c.toSafeFlatObject(e);return Je(t),t.headers=F.from(c.getSafeProp(t,"headers")),t.data=Ve.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Sn.getAdapter(t.adapter||be.adapter,t)(t).then(function(s){Je(t),t.response=s;try{s.data=Ve.call(t,t.transformResponse,s)}finally{delete t.response}return s.headers=F.from(s.headers),s},function(s){if(!mn(s)&&(Je(t),s&&s.response)){t.response=s.response;try{s.response.data=Ve.call(t,t.transformResponse,s.response)}finally{delete t.response}s.response.headers=F.from(s.response.headers)}return Promise.reject(s)})}const Be={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Be[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $t={};Be.transitional=function(t,n,r){function s(o,i){return"[Axios v"+it+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new p(s(i," has been removed"+(n?" in "+n:"")),p.ERR_DEPRECATED);return n&&!$t[i]&&($t[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};Be.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Do(e,t,n){if(typeof e!="object"||e===null)throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new p("option "+o+" must be "+l,p.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new p("Unknown option "+o,p.ERR_BAD_OPTION)}}const Te={assertOptions:Do,validators:Be},U=Te.validators;let te=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _t,response:new _t}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack;let i="";if(typeof o=="string"){const a=o.indexOf(`
11
+ `):" "+kt(i[0]):"as no adapter specified";throw new p("There is no suitable adapter to dispatch the request "+a,p.ERR_NOT_SUPPORT)}return s}const Sn={getAdapter:Co,adapters:at};function Je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function Ke(e){const t=c.toSafeFlatObject(e);return Je(t),t.headers=F.from(c.getSafeProp(t,"headers")),t.data=Ve.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Sn.getAdapter(t.adapter||be.adapter,t)(t).then(function(s){Je(t),t.response=s;try{s.data=Ve.call(t,t.transformResponse,s)}finally{delete t.response}return s.headers=F.from(s.headers),s},function(s){if(!mn(s)&&(Je(t),s&&s.response)){t.response=s.response;try{s.response.data=Ve.call(t,t.transformResponse,s.response)}finally{delete t.response}s.response.headers=F.from(s.response.headers)}return Promise.reject(s)})}const je={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{je[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $t={};je.transitional=function(t,n,r){function s(o,i){return"[Axios v"+it+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new p(s(i," has been removed"+(n?" in "+n:"")),p.ERR_DEPRECATED);return n&&!$t[i]&&($t[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};je.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Do(e,t,n){if(typeof e!="object"||e===null)throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new p("option "+o+" must be "+l,p.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new p("Unknown option "+o,p.ERR_BAD_OPTION)}}const Te={assertOptions:Do,validators:je},U=Te.validators;let te=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _t,response:new _t}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack;let i="";if(typeof o=="string"){const a=o.indexOf(`
12
12
  `);i=a===-1?"":o.slice(a+1)}if(!r.stack)r.stack=i;else if(i){const a=i.indexOf(`
13
13
  `),l=a===-1?-1:i.indexOf(`
14
14
  `,a+1),d=l===-1?"":i.slice(l+1);String(r.stack).endsWith(d)||(r.stack+=`
15
- `+i)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=se(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Te.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean),legacyInterceptorReqResOrdering:U.transitional(U.boolean),advertiseZstdAcceptEncoding:U.transitional(U.boolean),validateStatusUndefinedResolves:U.transitional(U.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Te.assertOptions(s,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Te.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(c.getSafeProp(n,"method")||c.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(pn.concat("common"),R=>{delete o[R]}),n.headers=F.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(n)===!1)return;l=l&&O.synchronous;const _=n.transitional||st;_&&_.legacyInterceptorReqResOrdering?a.unshift(O.fulfilled,O.rejected):a.push(O.fulfilled,O.rejected)});const d=[];this.interceptors.response.forEach(function(O){d.push(O.fulfilled,O.rejected)});let u,h=0,g;if(!l){const R=[Ke.bind(this),void 0];for(R.unshift(...a),R.push(...d),g=R.length,u=Promise.resolve(n);h<g;)u=u.then(R[h++],R[h++]);return u}g=a.length;let E=n;for(;h<g;){const R=a[h++],O=a[h++];try{E=R?R(E):E}catch(_){if(!O){u=Promise.reject(_);break}try{const f=O.call(this,_);c.isThenable(f)&&(u=Promise.resolve(f).then(()=>Ke.call(this,E)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=Ke.call(this,E)}catch(R){u=Promise.reject(R)}for(h=0,g=d.length;h<g;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=se(this.defaults,t);const n=wn(t.baseURL,t.url,t.allowAbsoluteUrls,t);return un(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){te.prototype[t]=function(n,r){return this.request(se(r||{},{method:t,url:n,data:r&&c.hasOwnProp(r,"data")?r.data:void 0}))}});c.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,i,a){return this.request(se(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}te.prototype[t]=n(),t!=="query"&&(te.prototype[t+"Form"]=n(!0))});let Lo=class On{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Ee(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new On(function(s){t=s}),cancel:t}}};function Uo(e){return function(n){return e.apply(null,n)}}function Fo(e){return c.isObject(e)&&e.isAxiosError===!0}const Ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ce).forEach(([e,t])=>{Ce[t]===void 0&&(Ce[t]=e)});function xn(e){const t=new te(e),n=Jt(te.prototype.request,t);return c.extend(n,te.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xn(se(e,s))},n}const A=xn(be);A.Axios=te;A.CanceledError=Ee;A.CancelToken=Lo;A.isCancel=mn;A.VERSION=it;A.toFormData=je;A.AxiosError=p;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=Uo;A.isAxiosError=Fo;A.mergeConfig=se;A.AxiosHeaders=F;A.formToJSON=e=>hn(c.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Sn.getAdapter;A.HttpStatusCode=Ce;A.default=A;const{Axios:zo,AxiosError:vo,CanceledError:Vo,isCancel:Wo,CancelToken:Jo,VERSION:Ko,all:Xo,Cancel:Go,isAxiosError:Qo,spread:Zo,toFormData:Yo,AxiosHeaders:ei,HttpStatusCode:ti,formToJSON:ni,getAdapter:ri,mergeConfig:si,create:oi}=A,No=Ht(`
15
+ `+i)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=se(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Te.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean),legacyInterceptorReqResOrdering:U.transitional(U.boolean),advertiseZstdAcceptEncoding:U.transitional(U.boolean),validateStatusUndefinedResolves:U.transitional(U.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Te.assertOptions(s,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Te.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(c.getSafeProp(n,"method")||c.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(pn.concat("common"),R=>{delete o[R]}),n.headers=F.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(n)===!1)return;l=l&&O.synchronous;const _=n.transitional||st;_&&_.legacyInterceptorReqResOrdering?a.unshift(O.fulfilled,O.rejected):a.push(O.fulfilled,O.rejected)});const d=[];this.interceptors.response.forEach(function(O){d.push(O.fulfilled,O.rejected)});let u,h=0,g;if(!l){const R=[Ke.bind(this),void 0];for(R.unshift(...a),R.push(...d),g=R.length,u=Promise.resolve(n);h<g;)u=u.then(R[h++],R[h++]);return u}g=a.length;let E=n;for(;h<g;){const R=a[h++],O=a[h++];try{E=R?R(E):E}catch(_){if(!O){u=Promise.reject(_);break}try{const f=O.call(this,_);c.isThenable(f)&&(u=Promise.resolve(f).then(()=>Ke.call(this,E)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=Ke.call(this,E)}catch(R){u=Promise.reject(R)}for(h=0,g=d.length;h<g;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=se(this.defaults,t);const n=wn(t.baseURL,t.url,t.allowAbsoluteUrls,t);return un(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){te.prototype[t]=function(n,r){return this.request(se(r||{},{method:t,url:n,data:r&&c.hasOwnProp(r,"data")?r.data:void 0}))}});c.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,i,a){return this.request(se(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}te.prototype[t]=n(),t!=="query"&&(te.prototype[t+"Form"]=n(!0))});let Lo=class On{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Ee(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new On(function(s){t=s}),cancel:t}}};function Uo(e){return function(n){return e.apply(null,n)}}function Fo(e){return c.isObject(e)&&e.isAxiosError===!0}const Ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ce).forEach(([e,t])=>{Ce[t]===void 0&&(Ce[t]=e)});function xn(e){const t=new te(e),n=Jt(te.prototype.request,t);return c.extend(n,te.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xn(se(e,s))},n}const A=xn(be);A.Axios=te;A.CanceledError=Ee;A.CancelToken=Lo;A.isCancel=mn;A.VERSION=it;A.toFormData=Be;A.AxiosError=p;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=Uo;A.isAxiosError=Fo;A.mergeConfig=se;A.AxiosHeaders=F;A.formToJSON=e=>hn(c.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Sn.getAdapter;A.HttpStatusCode=Ce;A.default=A;const{Axios:vo,AxiosError:Vo,CanceledError:Wo,isCancel:Jo,CancelToken:Ko,VERSION:Xo,all:Go,Cancel:Qo,isAxiosError:Zo,spread:Yo,toFormData:ei,AxiosHeaders:ti,HttpStatusCode:ni,formToJSON:ri,getAdapter:si,mergeConfig:oi,create:ii}=A,No=Ht(`
16
16
  mutation CreateAssetUpload($orgId: ID!) {
17
17
  createAssetUpload(orgId: $orgId) {
18
18
  assetId
19
19
  uploadUrl
20
20
  }
21
21
  }
22
- `),ii=Ht(`
22
+ `),ai=Ht(`
23
23
  query AssetUrl($orgId: ID!, $assetId: ID!) {
24
24
  assetUrl(orgId: $orgId, assetId: $assetId)
25
25
  }
26
- `);async function Io(e,t,n,r){const{assetId:s,uploadUrl:o}=await e();if(!s||!o)throw new Error("Failed to get upload URL");return await A.put(o,t,{headers:{"Content-Type":t.type},signal:r,onUploadProgress:void 0}),s}async function ai(e,t,n,r){return Io(async()=>{const{data:s}=await Dn.mutate({mutation:No,variables:{orgId:e}});return{assetId:s?.createAssetUpload?.assetId,uploadUrl:s?.createAssetUpload?.uploadUrl}},t,n,r)}export{ii as A,ko as T,$o as a,Sr as t,ai as u};
26
+ `);async function Io(e,t,n,r){const{assetId:s,uploadUrl:o}=await e();if(!s||!o)throw new Error("Failed to get upload URL");return await A.put(o,t,{headers:{"Content-Type":t.type},signal:r,onUploadProgress:void 0}),s}async function ci(e,t,n,r){return Io(async()=>{const{data:s}=await Dn.mutate({mutation:No,variables:{orgId:e}});return{assetId:s?.createAssetUpload?.assetId,uploadUrl:s?.createAssetUpload?.uploadUrl}},t,n,r)}export{ai as A,$o as T,Ho as a,Sr as t,ci as u};
@@ -1 +1 @@
1
- import{r as o}from"./index-5E1tJ7yK.js";function s(e,t=250){const[r,u]=o.useState(e);return o.useEffect(()=>{const c=setTimeout(()=>u(e),t);return()=>clearTimeout(c)},[e,t]),r}export{s as u};
1
+ import{r as o}from"./index-CH7cEAxj.js";function s(e,t=250){const[r,u]=o.useState(e);return o.useEffect(()=>{const c=setTimeout(()=>u(e),t);return()=>clearTimeout(c)},[e,t]),r}export{s as u};
@@ -1 +1 @@
1
- import{u}from"./react-BNzYaZuG.js";import{r as a}from"./index-5E1tJ7yK.js";function n(t,s){const[e,o]=a.useState(s);return a.useEffect(()=>{const r=localStorage.getItem(t);r&&o(JSON.parse(r))},[t]),u(()=>{localStorage.setItem(t,JSON.stringify(e))},[t,e]),[e,o]}export{n as u};
1
+ import{u}from"./react-Bx48XWN4.js";import{r as a}from"./index-CH7cEAxj.js";function n(t,s){const[e,o]=a.useState(s);return a.useEffect(()=>{const r=localStorage.getItem(t);r&&o(JSON.parse(r))},[t]),u(()=>{localStorage.setItem(t,JSON.stringify(e))},[t,e]),[e,o]}export{n as u};
@@ -0,0 +1 @@
1
+ import{u as a}from"./query-D9oj6LGx.js";import{r as o}from"./index-CH7cEAxj.js";class c{constructor(i,r){this.roles=i,this.definitions=r,this.roles=i,this.definitions=r}hasAccess(i,r){const t=i.split(":");let s=this.definitions;for(const n of t)s=s[n];return!s||!Array.isArray(s)||s.length===0?!1:s.includes(r)}hasAccessStrict(i,r){return this.hasAccess(i,r)}}const d=new c(["admin","editor","viewer"],{project:{create:["admin","editor"],edit:["admin","editor"],delete:["admin"],view:["admin","editor","viewer"]}});function m(){const e=a()?.role??null,i=o.useCallback(r=>e?d.hasAccess(r,e):!1,[e]);return{isAdmin:e==="admin",isEditor:e==="editor",isViewer:e==="viewer",canWrite:e==="admin"||e==="editor",canManage:e==="admin",hasAccess:i}}export{m as u};
@@ -1,4 +1,4 @@
1
- import{c as o}from"./nav-links-8vT2ixiI.js";import{u as i}from"./index-5E1tJ7yK.js";import{u as t}from"./use-localstorage-DIisTx-J.js";/**
1
+ import{c as o}from"./nav-links-DZWMpwMR.js";import{u as i}from"./query-D9oj6LGx.js";import{u as t}from"./use-localstorage-D233xVb0.js";/**
2
2
  * @license lucide-react v0.514.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1 @@
1
+ import{c as A,_ as p,m as L,A as T,e as C}from"./query-D9oj6LGx.js";import{r as a}from"./gql-FFIj8zdp.js";import{a as j,b as q,v as z,D as O}from"./useQuery-Dhe6uxrL.js";var Q=A?a.useLayoutEffect:a.useEffect;function W(f,o){globalThis.__DEV__!==!1&&j(o||{},"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var v=q(o?.client);z(f,O.Mutation);var E=a.useState({called:!1,loading:!1,client:v}),h=E[0],l=E[1],t=a.useRef({result:h,mutationId:0,isMounted:!0,client:v,mutation:f,options:o});Q(function(){Object.assign(t.current,{client:v,options:o,mutation:f})});var R=a.useCallback(function(r){r===void 0&&(r={});var M=t.current,k=M.options,w=M.mutation,_=p(p({},k),{mutation:w}),s=r.client||t.current.client;!t.current.result.loading&&!_.ignoreResults&&t.current.isMounted&&l(t.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var b=++t.current.mutationId,u=L(_,r);return s.mutate(u).then(function(e){var n,i,c=e.data,m=e.errors,d=m&&m.length>0?new T({graphQLErrors:m}):void 0,y=r.onError||((n=t.current.options)===null||n===void 0?void 0:n.onError);if(d&&y&&y(d,u),b===t.current.mutationId&&!u.ignoreResults){var I={called:!0,loading:!1,data:c,error:d,client:s};t.current.isMounted&&!C(t.current.result,I)&&l(t.current.result=I)}var g=r.onCompleted||((i=t.current.options)===null||i===void 0?void 0:i.onCompleted);return d||g?.(e.data,u),e},function(e){var n;if(b===t.current.mutationId&&t.current.isMounted){var i={loading:!1,error:e,data:void 0,called:!0,client:s};C(t.current.result,i)||l(t.current.result=i)}var c=r.onError||((n=t.current.options)===null||n===void 0?void 0:n.onError);if(c)return c(e,u),{data:void 0,errors:e};throw e})},[]),D=a.useCallback(function(){if(t.current.isMounted){var r={called:!1,loading:!1,client:t.current.client};Object.assign(t.current,{mutationId:0,result:r}),l(r)}},[]);return a.useEffect(function(){var r=t.current;return r.isMounted=!0,function(){r.isMounted=!1}},[]),[R,p({reset:D},h)]}export{W as u};
@@ -0,0 +1 @@
1
+ import{i as y,d as B,f as j,w as J,g as X,h as Y,j as Z,k as $,_ as E,l as A,e as C,O as H,n as ee,m as re,o as T,N as O,p as I,A as W}from"./query-D9oj6LGx.js";import{r as v,a as q,R as te}from"./gql-FFIj8zdp.js";function z(e){var r=v.useContext(q()),t=e||r.client;return y(!!t,78),t}var M=!1,ae="useSyncExternalStore",ne=te[ae],ie=ne||(function(e,r,t){var a=r();globalThis.__DEV__!==!1&&!M&&a!==r()&&(M=!0,globalThis.__DEV__!==!1&&y.error(91));var n=v.useState({inst:{value:a,getSnapshot:r}}),i=n[0].inst,o=n[1];return B?v.useLayoutEffect(function(){Object.assign(i,{value:a,getSnapshot:r}),P(i)&&o({inst:i})},[e,a,r]):Object.assign(i,{value:a,getSnapshot:r}),v.useEffect(function(){return P(i)&&o({inst:i}),e(function(){P(i)&&o({inst:i})})},[e]),a});function P(e){var r=e.value,t=e.getSnapshot;try{return r!==t()}catch{return!0}}var S;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(S||(S={}));var _;function D(e){var r;switch(e){case S.Query:r="Query";break;case S.Mutation:r="Mutation";break;case S.Subscription:r="Subscription";break}return r}function L(e){J("parser",function(){globalThis.__DEV__!==!1&&y.warn(93)}),_||(_=new X(Y.parser||1e3));var r=_.get(e);if(r)return r;var t,a,n;y(!!e&&!!e.kind,94,e);for(var i=[],o=[],u=[],s=[],l=0,h=e.definitions;l<h.length;l++){var c=h[l];if(c.kind==="FragmentDefinition"){i.push(c);continue}if(c.kind==="OperationDefinition")switch(c.operation){case"query":o.push(c);break;case"mutation":u.push(c);break;case"subscription":s.push(c);break}}y(!i.length||o.length||u.length||s.length,95),y(o.length+u.length+s.length<=1,96,e,o.length,s.length,u.length),a=o.length?S.Query:S.Mutation,!o.length&&!u.length&&(a=S.Subscription);var f=o.length?o:u.length?u:s;y(f.length===1,97,e,f.length);var d=f[0];t=d.variableDefinitions||[],d.name&&d.name.kind==="Name"?n=d.name.value:n="data";var p={name:n,type:a,variables:t};return _.set(e,p),p}L.resetCache=function(){_=void 0};globalThis.__DEV__!==!1&&Z("parser",function(){return _?_.size:0});function ue(e,r){var t=j("parser",L,[e]),a=D(r),n=D(t.type);y(t.type===r,98,a,a,n)}function w(e,r,t,a){"use no memo";a===void 0&&(a="Please remove this option.");var n=v.useRef(!1);globalThis.__DEV__!==!1&&r in e&&!n.current&&($(e,r,t,a),n.current=!0)}var oe=Symbol.for("apollo.hook.wrappers");function se(e,r,t){var a=t.queryManager,n=a&&a[oe],i=n&&n[e];return i?i(r):r}var ce=Object.prototype.hasOwnProperty;function F(){}var Q=Symbol();function we(e,r){return r===void 0&&(r=Object.create(null)),se("useQuery",fe,z(r&&r.client))(e,r)}function fe(e,r){globalThis.__DEV__!==!1&&(w(r,"canonizeResults","useQuery"),w(r,"partialRefetch","useQuery"),w(r,"defaultOptions","useQuery","Pass the options directly to the hook instead."),w(r,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),w(r,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var t=de(e,r),a=t.result,n=t.obsQueryFields;return v.useMemo(function(){return E(E({},a),n)},[a,n])}function le(e,r,t,a,n){function i(c){var f;ue(r,S.Query);var d={client:e,query:r,observable:a&&a.getSSRObservable(n())||H.inactiveOnCreation.withValue(!a,function(){return j(["canonizeResults","partialRefetch"],function(){return e.watchQuery(U(void 0,e,t,n()))})}),resultData:{previousData:(f=c?.resultData.current)===null||f===void 0?void 0:f.data}};return d}var o=v.useState(i),u=o[0],s=o[1];function l(c){var f,d;Object.assign(u.observable,(f={},f[Q]=c,f));var p=u.resultData;s(E(E({},u),{query:c.query,resultData:Object.assign(p,{previousData:((d=p.current)===null||d===void 0?void 0:d.data)||p.previousData,current:void 0})}))}if(e!==u.client||r!==u.query){var h=i(u);return s(h),[h,l]}return[u,l]}function de(e,r){var t=z(r.client),a=v.useContext(q()).renderPromises,n=!!a,i=t.disableNetworkFetches,o=r.ssr!==!1&&!r.skip,u=r.partialRefetch,s=ge(t,e,r,n),l=le(t,e,r,a,s),h=l[0],c=h.observable,f=h.resultData,d=l[1],p=s(c);pe(f,c,t,r,p);var m=v.useMemo(function(){return Ee(c)},[c]);he(c,a,o);var b=ve(f,c,t,r,p,i,u,n,{onCompleted:r.onCompleted||F,onError:r.onError||F});return{result:b,obsQueryFields:m,observable:c,resultData:f,client:t,onQueryExecuted:d}}function ve(e,r,t,a,n,i,o,u,s){var l=v.useRef(s);v.useEffect(function(){l.current=s});var h=(u||i)&&a.ssr===!1&&!a.skip?x:a.skip||n.fetchPolicy==="standby"?K:void 0,c=e.previousData,f=v.useMemo(function(){return h&&G(h,c,r,t)},[t,r,h,c]);return ie(v.useCallback(function(d){if(u)return function(){};var p=function(){var k=e.current,g=r.getCurrentResult();k&&k.loading===g.loading&&k.networkStatus===g.networkStatus&&C(k.data,g.data)||R(g,e,r,t,o,d,l.current)},m=function(k){if(b.current.unsubscribe(),b.current=r.resubscribeAfterError(p,m),!ce.call(k,"graphQLErrors"))throw k;var g=e.current;(!g||g&&g.loading||!C(k,g.error))&&R({data:g&&g.data,error:k,loading:!1,networkStatus:O.error},e,r,t,o,d,l.current)},b={current:r.subscribe(p,m)};return function(){setTimeout(function(){return b.current.unsubscribe()})}},[i,u,r,e,o,t]),function(){return f||N(e,r,l.current,o,t)},function(){return f||N(e,r,l.current,o,t)})}function he(e,r,t){r&&t&&(r.registerSSRObservable(e),e.getCurrentResult().loading&&r.addObservableQueryPromise(e))}function pe(e,r,t,a,n){var i;r[Q]&&!C(r[Q],n)&&(r.reobserve(U(r,t,a,n)),e.previousData=((i=e.current)===null||i===void 0?void 0:i.data)||e.previousData,e.current=void 0),r[Q]=n}function ge(e,r,t,a){t===void 0&&(t={});var n=t.skip;t.ssr,t.onCompleted,t.onError;var i=t.defaultOptions,o=A(t,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(u){var s=Object.assign(o,{query:r});return a&&(s.fetchPolicy==="network-only"||s.fetchPolicy==="cache-and-network")&&(s.fetchPolicy="cache-first"),s.variables||(s.variables={}),n?(s.initialFetchPolicy=s.initialFetchPolicy||s.fetchPolicy||V(i,e.defaultOptions),s.fetchPolicy="standby"):s.fetchPolicy||(s.fetchPolicy=u?.options.initialFetchPolicy||V(i,e.defaultOptions)),s}}function U(e,r,t,a){var n=[],i=r.defaultOptions.watchQuery;return i&&n.push(i),t.defaultOptions&&n.push(t.defaultOptions),n.push(ee(e&&e.options,a)),n.reduce(re)}function R(e,r,t,a,n,i,o){var u=r.current;u&&u.data&&(r.previousData=u.data),!e.error&&I(e.errors)&&(e.error=new W({graphQLErrors:e.errors})),r.current=G(Se(e,t,n),r.previousData,t,a),i(),ye(e,u?.networkStatus,o)}function ye(e,r,t){if(!e.loading){var a=ke(e);Promise.resolve().then(function(){a?t.onError(a):e.data&&r!==e.networkStatus&&e.networkStatus===O.ready&&t.onCompleted(e.data)}).catch(function(n){globalThis.__DEV__!==!1&&y.warn(n)})}}function N(e,r,t,a,n){return e.current||R(r.getCurrentResult(),e,r,n,a,function(){},t),e.current}function V(e,r){var t;return e?.fetchPolicy||((t=r?.watchQuery)===null||t===void 0?void 0:t.fetchPolicy)||"cache-first"}function ke(e){return I(e.errors)?new W({graphQLErrors:e.errors}):e.error}function G(e,r,t,a){var n=e.data;e.partial;var i=A(e,["data","partial"]),o=E(E({data:n},i),{client:a,observable:t,variables:t.variables,called:e!==x&&e!==K,previousData:r});return o}function Se(e,r,t){return e.partial&&t&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&r.options.fetchPolicy!=="cache-only"?(r.refetch(),E(E({},e),{loading:!0,networkStatus:O.refetch})):e}var x=T({loading:!0,data:void 0,error:void 0,networkStatus:O.loading}),K=T({loading:!1,data:void 0,error:void 0,networkStatus:O.ready});function Ee(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&y.warn(83),e.reobserve.apply(e,r)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}export{S as D,w as a,z as b,we as u,ue as v};
@@ -1,4 +1,4 @@
1
- import{b1 as Wt,s as Kt,g as Ht,n as Yt,m as Xt,a as Zt,b as Jt,_ as w,x as wt,F as Qt,am as $t,ab as te,ac as ee,ad as ne,d as se,o as ie,z as oe,A as re}from"./mermaid.core-BCRBv8Us.js";import{s as ot}from"./transform-BqqRT-Iy.js";import"./index-5E1tJ7yK.js";const kt=(t,n)=>Wt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(J(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)J(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(J(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)J(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);J(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Ot(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(F=>C.has(F)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Nt(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const O=x.select("svg");n?O.attr("viewBox",`0 0 ${s} ${e}`):O.attr("width",s).attr("height",e);const R={};let T=!1;O.selectAll(".venn-area path").each(function(k){const F=this.getAttribute("d");k.sets.length==1&&F&&!b&&(T=!0,R[k.sets[0]]=Me(F))});function A(k){return F=>{const H=k.sets.map(et=>{let Y=R[et],Z=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return St(H,p)}}const G=O.selectAll(".venn-area").data(d,k=>k.sets),P=G.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),L=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),L.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function K(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=K(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(F=>I[F])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=K(G.exit()).remove();typeof G.transition=="function"&&j.selectAll("path").attrTween("d",A);const X=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(L.style("font-size","0px"),N.style("font-size",y),X.style("font-size","0px")),{circles:I,textCentres:D,nodes:G,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
1
+ import{b1 as Wt,s as Kt,g as Ht,n as Yt,m as Xt,a as Zt,b as Jt,_ as w,x as wt,F as Qt,am as $t,ab as te,ac as ee,ad as ne,d as se,o as ie,z as oe,A as re}from"./mermaid.core-BDgZg3kW.js";import{s as ot}from"./transform-BqqRT-Iy.js";import"./preload-helper-BlTxHScW.js";import"./index-CH7cEAxj.js";const kt=(t,n)=>Wt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(J(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)J(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(J(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)J(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);J(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Ot(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(F=>C.has(F)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Nt(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const O=x.select("svg");n?O.attr("viewBox",`0 0 ${s} ${e}`):O.attr("width",s).attr("height",e);const R={};let T=!1;O.selectAll(".venn-area path").each(function(k){const F=this.getAttribute("d");k.sets.length==1&&F&&!b&&(T=!0,R[k.sets[0]]=Me(F))});function A(k){return F=>{const H=k.sets.map(et=>{let Y=R[et],Z=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return St(H,p)}}const G=O.selectAll(".venn-area").data(d,k=>k.sets),P=G.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),L=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),L.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function K(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=K(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(F=>I[F])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=K(G.exit()).remove();typeof G.transition=="function"&&j.selectAll("path").attrTween("d",A);const X=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(L.style("font-size","0px"),N.style("font-size",y),X.style("font-size","0px")),{circles:I,textCentres:D,nodes:G,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
2
2
  M`,t,n),e.push(`
3
3
  m`,-s,0),e.push(`
4
4
  a`,s,s,0,1,0,s*2,0),e.push(`
@@ -31,4 +31,4 @@ Expecting `+Y.join(", ")+", got '"+(this.terminals_[z]||z)+"'":Z="Parse error on
31
31
  font-family: ${t.fontFamily};
32
32
  color: ${t.vennSetTextColor};
33
33
  }
34
- `,"getStyles"),Ve=Be;function qt(t){const n=new Map;for(const s of t){const e=s.targets.join("|"),i=n.get(e);i?Object.assign(i,s.styles):n.set(e,{...s.styles})}return n}w(qt,"buildStyleByKey");var qe=w((t,n,s,e)=>{const i=e.db,o=i.getConfig?.(),{themeVariables:r,look:l,handDrawnSeed:f}=wt(),u=l==="handDrawn",a=[r.venn1,r.venn2,r.venn3,r.venn4,r.venn5,r.venn6,r.venn7,r.venn8].filter(Boolean),y=i.getDiagramTitle?.(),h=i.getSubsetData(),b=i.getTextData(),p=qt(i.getStyleData()),M=Gt(h),E=o?.width??800,_=o?.height??450,g=E/1600,m=y?48*g:0,v=r.primaryTextColor??r.textColor,c=Qt(n);c.attr("viewBox",`0 0 ${E} ${_}`),y&&c.append("text").text(y).attr("class","venn-title").attr("font-size",`${32*g}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*g).style("fill",r.vennTitleTextColor||r.titleColor);const x=ot(document.createElement("div")),d=ve().width(E).height(_-m);x.datum(M).call(d);const C=u?$t.svg(x.select("svg").node()):void 0,I=Se(M,{width:E,height:_-m,padding:o?.padding??15}),D=new Map;for(const R of I){const T=Q([...R.data.sets].sort());D.set(T,R)}b.length>0&&Ut(o,D,x,b,g,p);const U=te(r.background||"#f4f4f4");x.selectAll(".venn-circle").each(function(R,T){const A=ot(this),P=Q([...R.sets].sort()),B=p.get(P),L=B?.fill||a[T%a.length]||r.primaryColor;A.classed(`venn-set-${T%8}`,!0);const K=B?.["fill-opacity"]??.1,z=B?.stroke||L,N=B?.["stroke-width"]||`${5*g}`;if(u&&C){const X=D.get(P);if(X&&X.circles.length>0){const k=X.circles[0],F=C.circle(k.x,k.y,k.radius*2,{roughness:.7,seed:f,fill:kt(L,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+T*60,stroke:z,strokeWidth:parseFloat(String(N))});A.select("path").remove(),A.node()?.insertBefore(F,A.select("text").node())}}else A.select("path").style("fill",L).style("fill-opacity",K).style("stroke",z).style("stroke-width",N).style("stroke-opacity",.95);const j=B?.color||(U?ee(L,30):ne(L,30));A.select("text").style("font-size",`${48*g}px`).style("fill",j)}),u&&C?x.selectAll(".venn-intersection").each(function(R){const T=ot(this),G=Q([...R.sets].sort()),P=p.get(G),B=P?.fill;if(B){const L=T.select("path"),K=L.attr("d");if(K){const z=C.path(K,{roughness:.7,seed:f,fill:kt(B,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),N=L.node();N?.parentNode?.insertBefore(z,N),L.remove()}}else T.select("path").style("fill-opacity",0);T.select("text").style("font-size",`${48*g}px`).style("fill",P?.color??r.vennSetTextColor??v)}):(x.selectAll(".venn-intersection text").style("font-size",`${48*g}px`).style("fill",R=>{const A=Q([...R.sets].sort());return p.get(A)?.color??r.vennSetTextColor??v}),x.selectAll(".venn-intersection path").style("fill-opacity",R=>{const A=Q([...R.sets].sort());return p.get(A)?.fill?1:0}).style("fill",R=>{const A=Q([...R.sets].sort());return p.get(A)?.fill??"transparent"}));const V=c.append("g").attr("transform",`translate(0, ${m})`),O=x.select("svg").node();if(O&&"childNodes"in O)for(const R of[...O.childNodes])V.node()?.appendChild(R);se(c,_,E,o?.useMaxWidth??!0)},"draw");function Q(t){return t.join("|")}w(Q,"stableSetsKey");function Ut(t,n,s,e,i,o){const r=t?.useDebugLayout??!1,f=s.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(const a of e){const y=Q(a.sets),h=u.get(y);h?h.push(a):u.set(y,[a])}for(const[a,y]of u.entries()){const h=n.get(a);if(!h?.text)continue;const b=h.text.x,p=h.text.y,M=Math.min(...h.circles.map(O=>O.radius)),E=Math.min(...h.circles.map(O=>O.radius-Math.hypot(b-O.x,p-O.y)));let _=Number.isFinite(E)?Math.max(0,E):0;_===0&&Number.isFinite(M)&&(_=M*.6);const S=f.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);r&&S.append("circle").attr("class","venn-text-debug-circle").attr("cx",b).attr("cy",p).attr("r",_).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const g=Math.max(80*i,_*2*.95),m=Math.max(60*i,_*2*.95),x=(h.data.label&&h.data.label.length>0?Math.min(32*i,_*.25):0)+(y.length<=2?30*i:0),d=b-g/2,C=p-m/2+x,I=Math.max(1,Math.ceil(Math.sqrt(y.length))),D=Math.max(1,Math.ceil(y.length/I)),U=g/I,V=m/D;for(const[O,R]of y.entries()){const T=O%I,A=Math.floor(O/I),G=d+U*(T+.5),P=C+V*(A+.5);r&&S.append("rect").attr("class","venn-text-debug-cell").attr("x",d+U*T).attr("y",C+V*A).attr("width",U).attr("height",V).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const B=U*.9,L=V*.9,K=S.append("foreignObject").attr("class","venn-text-node-fo").attr("width",B).attr("height",L).attr("x",G-B/2).attr("y",P-L/2).attr("overflow","visible"),z=o.get(R.id)?.color,N=K.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(R.label??R.id);z&&N.style("color",z)}}}w(Ut,"renderTextNodes");function Gt(t){const n=new Set(t.map(i=>[...i.sets].sort().join("|"))),s=new Map(t.filter(i=>i.sets.length===1&&i.size!==void 0).map(i=>[i.sets[0],i.size])),e=[];for(const i of t){if(i.sets.length<3)continue;const o=[...i.sets].sort();for(let r=0;r<o.length-1;r++)for(let l=r+1;l<o.length;l++){const f=[o[r],o[l]],u=f.join("|");if(!n.has(u)){n.add(u);const a=s.get(f[0]),y=s.get(f[1]),h=a!==void 0&&y!==void 0?Math.min(a,y)/4:2.5;e.push({sets:f,size:h,label:""})}}}return e.length>0?[...t,...e]:t}w(Gt,"ensurePairwiseSubsets");var Ue={draw:qe},He={parser:we,db:Pe,renderer:Ue,styles:Ve};export{He as diagram};
34
+ `,"getStyles"),Ve=Be;function qt(t){const n=new Map;for(const s of t){const e=s.targets.join("|"),i=n.get(e);i?Object.assign(i,s.styles):n.set(e,{...s.styles})}return n}w(qt,"buildStyleByKey");var qe=w((t,n,s,e)=>{const i=e.db,o=i.getConfig?.(),{themeVariables:r,look:l,handDrawnSeed:f}=wt(),u=l==="handDrawn",a=[r.venn1,r.venn2,r.venn3,r.venn4,r.venn5,r.venn6,r.venn7,r.venn8].filter(Boolean),y=i.getDiagramTitle?.(),h=i.getSubsetData(),b=i.getTextData(),p=qt(i.getStyleData()),M=Gt(h),E=o?.width??800,_=o?.height??450,g=E/1600,m=y?48*g:0,v=r.primaryTextColor??r.textColor,c=Qt(n);c.attr("viewBox",`0 0 ${E} ${_}`),y&&c.append("text").text(y).attr("class","venn-title").attr("font-size",`${32*g}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*g).style("fill",r.vennTitleTextColor||r.titleColor);const x=ot(document.createElement("div")),d=ve().width(E).height(_-m);x.datum(M).call(d);const C=u?$t.svg(x.select("svg").node()):void 0,I=Se(M,{width:E,height:_-m,padding:o?.padding??15}),D=new Map;for(const R of I){const T=Q([...R.data.sets].sort());D.set(T,R)}b.length>0&&Ut(o,D,x,b,g,p);const U=te(r.background||"#f4f4f4");x.selectAll(".venn-circle").each(function(R,T){const A=ot(this),P=Q([...R.sets].sort()),B=p.get(P),L=B?.fill||a[T%a.length]||r.primaryColor;A.classed(`venn-set-${T%8}`,!0);const K=B?.["fill-opacity"]??.1,z=B?.stroke||L,N=B?.["stroke-width"]||`${5*g}`;if(u&&C){const X=D.get(P);if(X&&X.circles.length>0){const k=X.circles[0],F=C.circle(k.x,k.y,k.radius*2,{roughness:.7,seed:f,fill:kt(L,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+T*60,stroke:z,strokeWidth:parseFloat(String(N))});A.select("path").remove(),A.node()?.insertBefore(F,A.select("text").node())}}else A.select("path").style("fill",L).style("fill-opacity",K).style("stroke",z).style("stroke-width",N).style("stroke-opacity",.95);const j=B?.color||(U?ee(L,30):ne(L,30));A.select("text").style("font-size",`${48*g}px`).style("fill",j)}),u&&C?x.selectAll(".venn-intersection").each(function(R){const T=ot(this),G=Q([...R.sets].sort()),P=p.get(G),B=P?.fill;if(B){const L=T.select("path"),K=L.attr("d");if(K){const z=C.path(K,{roughness:.7,seed:f,fill:kt(B,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),N=L.node();N?.parentNode?.insertBefore(z,N),L.remove()}}else T.select("path").style("fill-opacity",0);T.select("text").style("font-size",`${48*g}px`).style("fill",P?.color??r.vennSetTextColor??v)}):(x.selectAll(".venn-intersection text").style("font-size",`${48*g}px`).style("fill",R=>{const A=Q([...R.sets].sort());return p.get(A)?.color??r.vennSetTextColor??v}),x.selectAll(".venn-intersection path").style("fill-opacity",R=>{const A=Q([...R.sets].sort());return p.get(A)?.fill?1:0}).style("fill",R=>{const A=Q([...R.sets].sort());return p.get(A)?.fill??"transparent"}));const V=c.append("g").attr("transform",`translate(0, ${m})`),O=x.select("svg").node();if(O&&"childNodes"in O)for(const R of[...O.childNodes])V.node()?.appendChild(R);se(c,_,E,o?.useMaxWidth??!0)},"draw");function Q(t){return t.join("|")}w(Q,"stableSetsKey");function Ut(t,n,s,e,i,o){const r=t?.useDebugLayout??!1,f=s.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(const a of e){const y=Q(a.sets),h=u.get(y);h?h.push(a):u.set(y,[a])}for(const[a,y]of u.entries()){const h=n.get(a);if(!h?.text)continue;const b=h.text.x,p=h.text.y,M=Math.min(...h.circles.map(O=>O.radius)),E=Math.min(...h.circles.map(O=>O.radius-Math.hypot(b-O.x,p-O.y)));let _=Number.isFinite(E)?Math.max(0,E):0;_===0&&Number.isFinite(M)&&(_=M*.6);const S=f.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);r&&S.append("circle").attr("class","venn-text-debug-circle").attr("cx",b).attr("cy",p).attr("r",_).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const g=Math.max(80*i,_*2*.95),m=Math.max(60*i,_*2*.95),x=(h.data.label&&h.data.label.length>0?Math.min(32*i,_*.25):0)+(y.length<=2?30*i:0),d=b-g/2,C=p-m/2+x,I=Math.max(1,Math.ceil(Math.sqrt(y.length))),D=Math.max(1,Math.ceil(y.length/I)),U=g/I,V=m/D;for(const[O,R]of y.entries()){const T=O%I,A=Math.floor(O/I),G=d+U*(T+.5),P=C+V*(A+.5);r&&S.append("rect").attr("class","venn-text-debug-cell").attr("x",d+U*T).attr("y",C+V*A).attr("width",U).attr("height",V).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const B=U*.9,L=V*.9,K=S.append("foreignObject").attr("class","venn-text-node-fo").attr("width",B).attr("height",L).attr("x",G-B/2).attr("y",P-L/2).attr("overflow","visible"),z=o.get(R.id)?.color,N=K.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(R.label??R.id);z&&N.style("color",z)}}}w(Ut,"renderTextNodes");function Gt(t){const n=new Set(t.map(i=>[...i.sets].sort().join("|"))),s=new Map(t.filter(i=>i.sets.length===1&&i.size!==void 0).map(i=>[i.sets[0],i.size])),e=[];for(const i of t){if(i.sets.length<3)continue;const o=[...i.sets].sort();for(let r=0;r<o.length-1;r++)for(let l=r+1;l<o.length;l++){const f=[o[r],o[l]],u=f.join("|");if(!n.has(u)){n.add(u);const a=s.get(f[0]),y=s.get(f[1]),h=a!==void 0&&y!==void 0?Math.min(a,y)/4:2.5;e.push({sets:f,size:h,label:""})}}}return e.length>0?[...t,...e]:t}w(Gt,"ensurePairwiseSubsets");var Ue={draw:qe},Ye={parser:we,db:Pe,renderer:Ue,styles:Ve};export{Ye as diagram};