@harperfast/harper 5.2.6 → 5.2.7

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 (291) hide show
  1. package/dist/resources/PrimaryRocksDatabase.js +2 -3
  2. package/dist/resources/PrimaryRocksDatabase.js.map +1 -1
  3. package/dist/resources/RecordEncoder.d.ts +16 -0
  4. package/dist/resources/RecordEncoder.js +93 -3
  5. package/dist/resources/RecordEncoder.js.map +1 -1
  6. package/dist/resources/Table.js +53 -0
  7. package/dist/resources/Table.js.map +1 -1
  8. package/dist/resources/graphql.js +1 -1
  9. package/dist/resources/graphql.js.map +1 -1
  10. package/dist/resources/tracked.js +5 -0
  11. package/dist/resources/tracked.js.map +1 -1
  12. package/npm-shrinkwrap.json +6 -6
  13. package/package.json +2 -2
  14. package/resources/DESIGN.md +5 -0
  15. package/resources/PrimaryRocksDatabase.ts +3 -3
  16. package/resources/RecordEncoder.ts +85 -3
  17. package/resources/Table.ts +60 -1
  18. package/resources/graphql.ts +1 -1
  19. package/resources/tracked.ts +4 -0
  20. package/studio/web/assets/{Chat-BNHY84-Z.js → Chat-etJeJv4a.js} +71 -95
  21. package/studio/web/assets/FloatingChat-BvmHsuVo.js +23 -0
  22. package/studio/web/assets/abnfDiagram-VCTEODGH-C0_BAZyO.js +1 -0
  23. package/studio/web/assets/{alertDialog-BaBrZQ4M.js → alertDialog-DIHt7Z0r.js} +1 -1
  24. package/studio/web/assets/apiToken-Bl5LC8EH.js +1 -0
  25. package/studio/web/assets/applications-Dta6Y0Rg.js +296 -0
  26. package/studio/web/assets/arc-CVRByUzA.js +1 -0
  27. package/studio/web/assets/architecture-7GRP2DOG-DNdx5tEU.js +1 -0
  28. package/studio/web/assets/architectureDiagram-5GKGNRK7-BWzrASgm.js +36 -0
  29. package/studio/web/assets/authStore-qKmCZcaf.js +3 -0
  30. package/studio/web/assets/blockDiagram-NRAW4CY4-BdJX9Khj.js +129 -0
  31. package/studio/web/assets/{button-DfBmT4rc.js → button-DhiX-njv.js} +1 -1
  32. package/studio/web/assets/c4Diagram-UCG6FXSJ-CI6MzGmQ.js +38 -0
  33. package/studio/web/assets/channel-DtCV8PTL.js +1 -0
  34. package/studio/web/assets/chevron-up-Df2c8uoU.js +1 -0
  35. package/studio/web/assets/chunk-75Z2AOVW-BT8tVmks.js +2 -0
  36. package/studio/web/assets/chunk-DU6HZSFF-9kAOOmI6.js +127 -0
  37. package/studio/web/assets/{chunk-2GRJ4B5K-DtwG__pv.js → chunk-F27PBJKO-BW7ao8AY.js} +1 -1
  38. package/studio/web/assets/{chunk-KEIR6QF5-BICK3FdT.js → chunk-FOHPRMQF-DHwB1DNv.js} +2 -2
  39. package/studio/web/assets/{chunk-5RXB4S5H-D3c7okHC.js → chunk-G27WJ6UU-COyLMcgK.js} +2 -2
  40. package/studio/web/assets/chunk-GMAD6QVW-BNyXpoQO.js +72 -0
  41. package/studio/web/assets/chunk-JQ64N6SF-Cyz1IeLf.js +1 -0
  42. package/studio/web/assets/{chunk-GF5L2VYU-DreJ7Snz.js → chunk-LCL6LL3I-HOzK_ppE.js} +3 -3
  43. package/studio/web/assets/chunk-OBVCFTLP-D4wWOqDQ.js +1 -0
  44. package/studio/web/assets/chunk-P2QGCYS3-DmIFY4d7.js +1 -0
  45. package/studio/web/assets/{chunk-KBJHAD2P-CLDPbAA-.js → chunk-POPQ4Y6H-BPrvMyKz.js} +1 -1
  46. package/studio/web/assets/{chunk-4I5QYGJK-D1FhvtQq.js → chunk-PWAF6VOD-2zB6IW9i.js} +1 -1
  47. package/studio/web/assets/chunk-R7TYR2AO-Irip67yr.js +10 -0
  48. package/studio/web/assets/chunk-RHFEMEQ7-2FgyI8YU.js +168 -0
  49. package/studio/web/assets/{chunk-6Q2QTUOP-QviMM6bR.js → chunk-SVP7TREG-FwtbH2QC.js} +1 -1
  50. package/studio/web/assets/chunk-TEH6E4GO-P87k5mNi.js +62 -0
  51. package/studio/web/assets/{chunk-XXDRQBXY-CaP_jixK.js → chunk-XXDRQBXY-BoGZu3HH.js} +1 -1
  52. package/studio/web/assets/classDiagram-DTDB5LWJ-DbO_dCNE.js +1 -0
  53. package/studio/web/assets/classDiagram-v2-JRS7N3AN-DbO_dCNE.js +1 -0
  54. package/studio/web/assets/{cose-bilkent-JH36ORCC-BVTNhTKD.js → cose-bilkent-JH36ORCC-Cuuf67Bh.js} +1 -1
  55. package/studio/web/assets/{createLucideIcon-BMkDbMrz.js → createLucideIcon-BKGPfjm2.js} +1 -1
  56. package/studio/web/assets/cssMode-IAbO_2KK.js +1 -0
  57. package/studio/web/assets/cynefin-OW5HDTMX-BRkpLFQV.js +1 -0
  58. package/studio/web/assets/cynefinDiagram-5FMLGOSQ-CHT1DaX6.js +62 -0
  59. package/studio/web/assets/cytoscape.esm-C2x7inlt.js +321 -0
  60. package/studio/web/assets/dagre-3AP2YEHR-DpUXBh63.js +4 -0
  61. package/studio/web/assets/dagre-PrKaheQc.js +1 -0
  62. package/studio/web/assets/diagram-S7CK7UJ4-BuymVFZT.js +30 -0
  63. package/studio/web/assets/diagram-UQ7AKVKN-CyP148RM.js +41 -0
  64. package/studio/web/assets/diagram-VSXAHHWV-CoCAg3M9.js +3 -0
  65. package/studio/web/assets/diagram-VX7I27RA-BpOqCFca.js +24 -0
  66. package/studio/web/assets/diagram-Z3DM3KII-Bfpw7Vbj.js +24 -0
  67. package/studio/web/assets/dialog-CBf0Mr1d.js +1 -0
  68. package/studio/web/assets/{dist-CeoU7cfW.js → dist-kYfyPZP9.js} +1 -1
  69. package/studio/web/assets/{dist-cY0BPcz0.js → dist-lkA3O3eM.js} +1 -1
  70. package/studio/web/assets/download-BtTOBem-.js +1 -0
  71. package/studio/web/assets/ebnfDiagram-PWID7BFC-DS_6aWqL.js +1 -0
  72. package/studio/web/assets/editor-CeRXEhRl.js +1 -0
  73. package/studio/web/assets/erDiagram-SSCWMZ5O-DJNk6Fgw.js +99 -0
  74. package/studio/web/assets/eventmodeling-NTZA5JFV-5jbe4A5P.js +1 -0
  75. package/studio/web/assets/flowDiagram-A5DVABFB-Dp9Ezlow.js +1 -0
  76. package/studio/web/assets/{ganttDiagram-PKOTCBZU-Cit41Zp3.js → ganttDiagram-EL5Y4UJY-2pOExxMY.js} +2 -2
  77. package/studio/web/assets/{getAnalytics-rTxZLIM5.js → getAnalytics-D4LKGeVy.js} +1 -1
  78. package/studio/web/assets/gitGraph-4MIJSDKK-CH5ZxwzF.js +1 -0
  79. package/studio/web/assets/gitGraphDiagram-WWUBYQGX-DVIsIhbO.js +106 -0
  80. package/studio/web/assets/html-DOV4s_YT.js +1 -0
  81. package/studio/web/assets/htmlMode-CdqjnAh4.js +1 -0
  82. package/studio/web/assets/index-CTqasm6g.js +824 -0
  83. package/studio/web/assets/index-Cxj2_wsl.css +1 -0
  84. package/studio/web/assets/index.lazy-VmcKgiEy.js +2 -0
  85. package/studio/web/assets/info-A6RAGUB7-CPQfTnaG.js +1 -0
  86. package/studio/web/assets/infoDiagram-RXCK75RN-DlwLYlwm.js +2 -0
  87. package/studio/web/assets/{ishikawaDiagram-WSZJBQD7-BJYRB-hU.js → ishikawaDiagram-5VMMS53U-BRXRp29U.js} +2 -2
  88. package/studio/web/assets/{javascript-CGzSV8Sd.js → javascript-Dj7yXfx5.js} +1 -1
  89. package/studio/web/assets/{journeyDiagram-NVQOT4AX-B8K4wuMz.js → journeyDiagram-EYS64GPL-B0ou8k0n.js} +1 -1
  90. package/studio/web/assets/jsonMode-khk65qzx.js +1 -0
  91. package/studio/web/assets/{kanban-definition-27J2QSJJ-DKFV1ovM.js → kanban-definition-3QL26DDD-uYg7iYzp.js} +11 -11
  92. package/studio/web/assets/languageServices-D_06p7dw.js +1 -0
  93. package/studio/web/assets/linear-Cnt8506Q.js +1 -0
  94. package/studio/web/assets/lspLanguageFeatures-DTA6wyQw.js +4 -0
  95. package/studio/web/assets/mermaid-parser.core-Ck-fC8b7.js +7 -0
  96. package/studio/web/assets/mermaid.core-CP8aNNYm.js +44 -0
  97. package/studio/web/assets/{mindmap-definition-FAOFIHXS-CKL4PdAv.js → mindmap-definition-FBJOCRG2-CgTZ-rit.js} +25 -25
  98. package/studio/web/assets/notifications-Bah46LXX.js +1 -0
  99. package/studio/web/assets/notifications-CBZXgxVc.js +1 -0
  100. package/studio/web/assets/packet-AYTQ26CC-DEyoPtPb.js +1 -0
  101. package/studio/web/assets/pegDiagram-XKGWAZYB-DrD-7sD9.js +1 -0
  102. package/studio/web/assets/pie-WAS4IAKB-wjj-EI1d.js +1 -0
  103. package/studio/web/assets/pieDiagram-E7YTZNPT-GntqDCzv.js +39 -0
  104. package/studio/web/assets/profile-QspOun_j.js +1 -0
  105. package/studio/web/assets/{quadrantDiagram-CIZ2JOQS-CSbsuWtH.js → quadrantDiagram-AXDQQJYC-0UeqXQGd.js} +1 -1
  106. package/studio/web/assets/radar-RG4KPBEZ-DFSA5h7k.js +1 -0
  107. package/studio/web/assets/railroad-74A4TZTK-CaOUG9wR.js +1 -0
  108. package/studio/web/assets/railroad-abnf-HS5TGJTU-Bc0Qi0WH.js +1 -0
  109. package/studio/web/assets/railroad-ebnf-LZEXJU2U-G8rVVZ2C.js +1 -0
  110. package/studio/web/assets/railroad-peg-WCYAUIDC-CrehKBhC.js +1 -0
  111. package/studio/web/assets/railroadDiagram-O6MQD6OU-yHUELZaV.js +1 -0
  112. package/studio/web/assets/regions-QdUi7bQ9.js +1 -0
  113. package/studio/web/assets/{editor.api-eUd8PqEu.js → register-Buvoxmb8.js} +139 -138
  114. package/studio/web/assets/{requirementDiagram-LRYGKXZP-ZIF0Wlho.js → requirementDiagram-EFPCY7ZU-DNEGFjuW.js} +2 -2
  115. package/studio/web/assets/rolldown-runtime-hePW80VL.js +1 -0
  116. package/studio/web/assets/safeParse-DeaoCCWH.js +1 -0
  117. package/studio/web/assets/{sankeyDiagram-W5VNT64P-BcRESt9x.js → sankeyDiagram-P5KCCOFB-DpyAmSVR.js} +1 -1
  118. package/studio/web/assets/{sequenceDiagram-SI44F4Z6-OpgTeJNU.js → sequenceDiagram-WJ2MYXX4-TyaT7xNk.js} +1 -1
  119. package/studio/web/assets/setComponentFile-BI4E_iDe.js +1 -0
  120. package/studio/web/assets/setLocalStorage-D_kflv4U.js +1 -0
  121. package/studio/web/assets/setSessionStorage-B0bf71m4.js +1 -0
  122. package/studio/web/assets/setup-Cop6LBQN.js +2 -0
  123. package/studio/web/assets/src-CMc7m_Ut.js +1 -0
  124. package/studio/web/assets/stateDiagram-HBIQ2CUA-CeEdTArZ.js +1 -0
  125. package/studio/web/assets/stateDiagram-v2-4QOOHH4V-D4tuw9Su.js +1 -0
  126. package/studio/web/assets/status-DRu3zRgl.js +61 -0
  127. package/studio/web/assets/step-vX8bovaY.js +1 -0
  128. package/studio/web/assets/swimlanes-XN3QIQJK-B54FmF46.js +1 -0
  129. package/studio/web/assets/swimlanesDiagram-VK2B7HYN-XOhmNEvq.js +8 -0
  130. package/studio/web/assets/tabs-B_G5zscN.js +1 -0
  131. package/studio/web/assets/{time-D55sDum-.js → time-Cclkb7kQ.js} +1 -1
  132. package/studio/web/assets/{timeline-definition-Z64GVDOM-Dy5A_tK2.js → timeline-definition-24CTP7MA-D-a9ujbo.js} +5 -5
  133. package/studio/web/assets/toggleHighContrast-C0dJLmZ0.js +49 -0
  134. package/studio/web/assets/treeView-Q6P3EWNA-CrW_6JnS.js +1 -0
  135. package/studio/web/assets/treemap-WGGIJYW6-BxyYLdP_.js +1 -0
  136. package/studio/web/assets/tsMode-dbDiapTA.js +11 -0
  137. package/studio/web/assets/typescript-CT1826cL.js +1 -0
  138. package/studio/web/assets/useEntityRestURL-D1u1X_gE.js +1 -0
  139. package/studio/web/assets/useLocalStorage-Dtj1QS8_.js +1 -0
  140. package/studio/web/assets/{vendor-core-CddkYGh5.js → vendor-core-RCcadM3e.js} +1 -1
  141. package/studio/web/assets/vendor-datadog-BRv-mOv1.js +6 -0
  142. package/studio/web/assets/{vendor-react-BhazFIp8.js → vendor-react-Dyj4O3HE.js} +1 -1
  143. package/studio/web/assets/vendor-tanstack-BiFWSB3W.js +1 -0
  144. package/studio/web/assets/{vendor-ui-BLIveqaL.js → vendor-ui-vhu-UHhF.js} +11 -11
  145. package/studio/web/assets/{vennDiagram-T6HMQDX7-DRvMIiSo.js → vennDiagram-4TSXK5OY-Cy7s7Mpy.js} +3 -3
  146. package/studio/web/assets/wardley-WFR3VGLG-BeBL35g2.js +1 -0
  147. package/studio/web/assets/{wardleyDiagram-T6FBY63Y-B04FSA0i.js → wardleyDiagram-VM6X3IG4-BylmIGSg.js} +3 -3
  148. package/studio/web/assets/workers-FpR9_D2K.js +3 -0
  149. package/studio/web/assets/x-B9o9hsep.js +1 -0
  150. package/studio/web/assets/xml-ZjKUMjth.js +1 -0
  151. package/studio/web/assets/{xychartDiagram-ELKLHX3M-BE0X7RA7.js → xychartDiagram-S5SC5T6Z-CoKALMXr.js} +3 -3
  152. package/studio/web/assets/yaml-B6gXbZU6.js +1 -0
  153. package/studio/web/assets/{yaml.worker-Iyy2Pf1T.js → yaml.worker-BDL8_iuk.js} +153 -153
  154. package/studio/web/harper-studio_black.png +0 -0
  155. package/studio/web/index.html +18 -24
  156. package/studio/web/assets/FloatingChat-BbztUci0.js +0 -23
  157. package/studio/web/assets/abnfDiagram-N423BO3Z-BRuH0ywn.js +0 -1
  158. package/studio/web/assets/apiToken-D0x_S8Wq.js +0 -1
  159. package/studio/web/assets/applications-BU83fSEG.js +0 -296
  160. package/studio/web/assets/arc-3Xw6uabx.js +0 -1
  161. package/studio/web/assets/architecture-TIHT7OUA-CsHfPErM.js +0 -1
  162. package/studio/web/assets/architectureDiagram-T3A2C74G-DrwbS7Gp.js +0 -36
  163. package/studio/web/assets/array-BifhSqXX.js +0 -1
  164. package/studio/web/assets/authStore-B3IhXrn6.js +0 -3
  165. package/studio/web/assets/blockDiagram-VBNYF7ZC-DKN1mht5.js +0 -132
  166. package/studio/web/assets/c4Diagram-5PPSVZJV-CT9bmjm_.js +0 -10
  167. package/studio/web/assets/card-ByrPS_wa.js +0 -1
  168. package/studio/web/assets/channel-mnKBfsP-.js +0 -1
  169. package/studio/web/assets/chevron-right-CY-tr2sG.js +0 -1
  170. package/studio/web/assets/chunk-3NCLNEKW-BVj72ixc.js +0 -1
  171. package/studio/web/assets/chunk-5FCAYU7R-Dh5nylU8.js +0 -1
  172. package/studio/web/assets/chunk-5HE753X5-Bw-yg4kO.js +0 -1
  173. package/studio/web/assets/chunk-5JV3BV7I-Cy5pj3QY.js +0 -1
  174. package/studio/web/assets/chunk-5TONJI2A-DQOY3q1H.js +0 -2
  175. package/studio/web/assets/chunk-7BUUIJ7U-Bb538aSH.js +0 -1
  176. package/studio/web/assets/chunk-7Z6QIM7H-BJhESwQK.js +0 -10
  177. package/studio/web/assets/chunk-BIQX33UG-DZEsGuSn.js +0 -1
  178. package/studio/web/assets/chunk-CQNSW5MT-B8S09OIh.js +0 -1
  179. package/studio/web/assets/chunk-CYSBUYHQ-C1Rf4art.js +0 -1
  180. package/studio/web/assets/chunk-EMLP6XTP-RLD4nXpI.js +0 -1
  181. package/studio/web/assets/chunk-I66GZJ75-DHPYnKNr.js +0 -125
  182. package/studio/web/assets/chunk-J7OUQ5F2-DcY_kb6i.js +0 -2
  183. package/studio/web/assets/chunk-JG7HCLWE-BYfiSaVt.js +0 -2
  184. package/studio/web/assets/chunk-JQJVKLGR-DtEmbHZj.js +0 -156
  185. package/studio/web/assets/chunk-MOZMSUNE-XVucA-n6.js +0 -1
  186. package/studio/web/assets/chunk-NSK5VX7P-DDFNzCU_.js +0 -2
  187. package/studio/web/assets/chunk-OSBZ3O6U-CrKZOUOr.js +0 -1
  188. package/studio/web/assets/chunk-QBLGF6JB-CxAyS2mW.js +0 -1
  189. package/studio/web/assets/chunk-QR6OTTB3-Df7OCENk.js +0 -62
  190. package/studio/web/assets/chunk-R7FJI6CG-Cnn3gE-Y.js +0 -1
  191. package/studio/web/assets/chunk-RYQCIY6F-N0MDKk5G.js +0 -1
  192. package/studio/web/assets/chunk-U6XO7XAA-BFxjP5U3.js +0 -2
  193. package/studio/web/assets/chunk-UBXNYLIW-rn0yw1mp.js +0 -1
  194. package/studio/web/assets/chunk-W5SLKNZC-DKMlAWZk.js +0 -1
  195. package/studio/web/assets/chunk-WRU74C26-Dg10j8Pf.js +0 -70
  196. package/studio/web/assets/chunk-YOTPTUD7-D0vRKqYp.js +0 -1
  197. package/studio/web/assets/chunk-ZIRB5QZD-O39ZBUk3.js +0 -32
  198. package/studio/web/assets/classDiagram-JCYQIIEL-BrXNP4fl.js +0 -1
  199. package/studio/web/assets/classDiagram-v2-OCEON4UE-BrXNP4fl.js +0 -1
  200. package/studio/web/assets/cssMode-DipmMR_-.js +0 -1
  201. package/studio/web/assets/cynefin-VYW2F7L2-Ds2Fw2Y0.js +0 -1
  202. package/studio/web/assets/cynefinDiagram-MW4NZA55-DcTzrsC5.js +0 -62
  203. package/studio/web/assets/cytoscape.esm-B-NFISlW.js +0 -321
  204. package/studio/web/assets/dagre-Buvkdvvj.js +0 -1
  205. package/studio/web/assets/dagre-VZM6K2ZE-CMyJ9QPU.js +0 -4
  206. package/studio/web/assets/diagram-7IWD3JNH-jEGuzdp3.js +0 -30
  207. package/studio/web/assets/diagram-B4RE2ZJO-Ba7wC7iw.js +0 -3
  208. package/studio/web/assets/diagram-LBJQPF4R-Bm7Wj_dF.js +0 -24
  209. package/studio/web/assets/diagram-Q27KOJAE-C-gdktLC.js +0 -24
  210. package/studio/web/assets/diagram-UB23O5K3-COBVIEEk.js +0 -41
  211. package/studio/web/assets/ebnfDiagram-BXEA7PRR-G-t56mVV.js +0 -1
  212. package/studio/web/assets/editor-BDfNodZS.js +0 -1
  213. package/studio/web/assets/erDiagram-JOGREHBK-DpHzpqx1.js +0 -85
  214. package/studio/web/assets/eventmodeling-45OFAUF4-CLEiVx5s.js +0 -1
  215. package/studio/web/assets/flowDiagram-UKHOOZJN-CIxxUUxn.js +0 -1
  216. package/studio/web/assets/getRegistrationInfo--NLLrics.js +0 -1
  217. package/studio/web/assets/gitGraph-TEB2WS4Q-CZFBqwW-.js +0 -1
  218. package/studio/web/assets/gitGraphDiagram-DS77QQ5N-DuGnRv2R.js +0 -106
  219. package/studio/web/assets/html-DmSSmgE8.js +0 -1
  220. package/studio/web/assets/htmlMode-B2LqJw1z.js +0 -1
  221. package/studio/web/assets/index-BO3NaEw8.css +0 -1
  222. package/studio/web/assets/index-BQB9R8Ug.js +0 -810
  223. package/studio/web/assets/index-BnYZFLIB.css +0 -1
  224. package/studio/web/assets/index.lazy-CtErm5q7.js +0 -13
  225. package/studio/web/assets/info-DKCQHKI2--1InqQeT.js +0 -1
  226. package/studio/web/assets/infoDiagram-6WML65LV-DliK38kp.js +0 -2
  227. package/studio/web/assets/isArrayLikeObject-BHDnhloL.js +0 -1
  228. package/studio/web/assets/jsonMode-BVS6P5Xk.js +0 -1
  229. package/studio/web/assets/languageServices-Bl-BvoAb.js +0 -1
  230. package/studio/web/assets/line-Bom3IjHi.js +0 -1
  231. package/studio/web/assets/linear-DwB_ruUT.js +0 -1
  232. package/studio/web/assets/lspLanguageFeatures-C7XtZA_w.js +0 -4
  233. package/studio/web/assets/map-BaFkSB1l.js +0 -1
  234. package/studio/web/assets/math-Bi_r_ZWc.js +0 -1
  235. package/studio/web/assets/mermaid-parser.core-Dd4RYr9Q.js +0 -4
  236. package/studio/web/assets/mermaid.core-Bbo24DGo.js +0 -11
  237. package/studio/web/assets/notifications-B8rDagJM.js +0 -1
  238. package/studio/web/assets/notifications-CPwYKDDH.js +0 -1
  239. package/studio/web/assets/packet-7NZHBO7P-BGMXB0XL.js +0 -1
  240. package/studio/web/assets/path-fybaL0A-.js +0 -1
  241. package/studio/web/assets/pegDiagram-VL7TDLO6-CWEktcBB.js +0 -1
  242. package/studio/web/assets/pie-RZYD4A2V-DgYg3tCt.js +0 -1
  243. package/studio/web/assets/pieDiagram-7S7Q4E2Y-DEAmZOqY.js +0 -39
  244. package/studio/web/assets/pollUnlessForbidden-DIDXGBc5.js +0 -1
  245. package/studio/web/assets/profile-D0hB1xdm.js +0 -1
  246. package/studio/web/assets/purify.es-DrVcFY1Q.js +0 -3
  247. package/studio/web/assets/queryClient-BLhQvmWC.js +0 -1
  248. package/studio/web/assets/radar-I7S5WNFK-Ag-zp_Rq.js +0 -1
  249. package/studio/web/assets/railroad-3IZDKUUU-aibJDIDV.js +0 -1
  250. package/studio/web/assets/railroad-abnf-AHOZXSZD-BBMEuvIl.js +0 -1
  251. package/studio/web/assets/railroad-ebnf-EBAXGLYW-Be1nseej.js +0 -1
  252. package/studio/web/assets/railroad-peg-LSFZ7HO6-DIvD-Eyb.js +0 -1
  253. package/studio/web/assets/railroadDiagram-AXF67PYL-BJWrgR10.js +0 -1
  254. package/studio/web/assets/react-VeAY02s6.js +0 -1
  255. package/studio/web/assets/react-redux-Ds7wf7Ax.js +0 -5
  256. package/studio/web/assets/regions-y_jxsBpN.js +0 -1
  257. package/studio/web/assets/register-3F1Tje_F.js +0 -2
  258. package/studio/web/assets/register-S_PdXsoi.js +0 -2
  259. package/studio/web/assets/rolldown-runtime-B0Z9INg1.js +0 -1
  260. package/studio/web/assets/select-CKgJgpkn.js +0 -1
  261. package/studio/web/assets/setComponentFile-DSHbURTI.js +0 -1
  262. package/studio/web/assets/setLocalStorage-CD_L8p_D.js +0 -1
  263. package/studio/web/assets/setup-J5SrM1Kp.js +0 -2
  264. package/studio/web/assets/src-DUvBCJIr.js +0 -1
  265. package/studio/web/assets/stateDiagram-OKZ733FA-D9oPLTjO.js +0 -1
  266. package/studio/web/assets/stateDiagram-v2-UEYNNEHI-CSD1wbuZ.js +0 -1
  267. package/studio/web/assets/status-IoJkDzlx.js +0 -61
  268. package/studio/web/assets/string-f6JzSHaO.js +0 -1
  269. package/studio/web/assets/swagger-ui-react-BlgSS25O.js +0 -240
  270. package/studio/web/assets/swimlanes-SLNWSIFB-BpeoNE9k.js +0 -2
  271. package/studio/web/assets/swimlanesDiagram-ULZ7WXOC-DHxwzxpp.js +0 -8
  272. package/studio/web/assets/table-BvFflPWi.js +0 -1
  273. package/studio/web/assets/tabs-Dd_ElZ36.js +0 -1
  274. package/studio/web/assets/textarea-a3RnTY31.js +0 -9
  275. package/studio/web/assets/toggleHighContrast-CyNC3SCQ.js +0 -49
  276. package/studio/web/assets/tokenization-CWuvR2gh.js +0 -7
  277. package/studio/web/assets/treeView-QDETBFTQ-uHZ-3Fz8.js +0 -1
  278. package/studio/web/assets/treemap-6X3UGDF4-BnUKyy3l.js +0 -1
  279. package/studio/web/assets/tsMode-CslzhcVk.js +0 -11
  280. package/studio/web/assets/typescript-Dtnury3t.js +0 -1
  281. package/studio/web/assets/useAuth-DiJUZS1C.js +0 -1
  282. package/studio/web/assets/useEntityRestURL-qfahJnvr.js +0 -1
  283. package/studio/web/assets/useLocalStorage-DetQlhBe.js +0 -1
  284. package/studio/web/assets/vendor-datadog-XDrpA25D.js +0 -6
  285. package/studio/web/assets/vendor-tanstack-FsM5XZNE.js +0 -1
  286. package/studio/web/assets/wardley-OPB4EBWU-Da7TLC2F.js +0 -1
  287. package/studio/web/assets/workers-BtibQGyk.js +0 -3
  288. package/studio/web/assets/x-D39AGKMb.js +0 -1
  289. package/studio/web/assets/xml-D41zWqPl.js +0 -1
  290. package/studio/web/assets/yaml-BFQ3mF1U.js +0 -1
  291. /package/studio/web/assets/{editor-jjEx9u7D.css → register-jjEx9u7D.css} +0 -0
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{a as t}from"./vendor-datadog-XDrpA25D.js";import{r as n}from"./vendor-react-BhazFIp8.js";import{t as r}from"./createLucideIcon-BMkDbMrz.js";var i=r(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),a=n(),o=e(t(),1),s=(0,o.createContext)({});function c(e){let t=(0,o.useRef)(null);return t.current===null&&(t.current=e()),t.current}var l=typeof window<`u`?o.useLayoutEffect:o.useEffect,u=(0,o.createContext)(null);function d(e,t){e.indexOf(t)===-1&&e.push(t)}function f(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var p=(e,t,n)=>n>t?t:n<e?e:n,m={},h=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),g=e=>typeof e==`object`&&!!e,_=e=>/^0[^.\s]+$/u.test(e);function v(e){let t;return()=>(t===void 0&&(t=e()),t)}var y=e=>e,b=(...e)=>e.reduce((e,t)=>n=>t(e(n))),x=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},S=class{constructor(){this.subscriptions=[]}add(e){return d(this.subscriptions,e),()=>f(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},C=e=>e*1e3,w=e=>e/1e3,ee=(e,t)=>t?1e3/t*e:0,T=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,te=1e-7,ne=12;function re(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=T(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>te&&++s<ne);return o}function ie(e,t,n,r){if(e===t&&n===r)return y;let i=t=>re(t,0,1,e,n);return e=>e===0||e===1?e:T(i(e),t,r)}var ae=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oe=e=>t=>1-e(1-t),se=ie(.33,1.53,.69,.99),ce=oe(se),le=ae(ce),ue=e=>e>=1?1:(e*=2)<1?.5*ce(e):.5*(2-2**(-10*(e-1))),de=e=>1-Math.sin(Math.acos(e)),fe=oe(de),pe=ae(de),me=ie(.42,0,1,1),he=ie(0,0,.58,1),ge=ie(.42,0,.58,1),_e=e=>Array.isArray(e)&&typeof e[0]!=`number`,ve=e=>Array.isArray(e)&&typeof e[0]==`number`,ye={linear:y,easeIn:me,easeInOut:ge,easeOut:he,circIn:de,circInOut:pe,circOut:fe,backIn:ce,backInOut:le,backOut:se,anticipate:ue},be=e=>typeof e==`string`,xe=e=>{if(ve(e)){e.length;let[t,n,r,i]=e;return ie(t,n,r,i)}return be(e)?(ye[e],`${e}`,ye[e]):e},Se=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ce(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var we=40;function Te(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Se.reduce((e,t)=>(e[t]=Ce(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:h}=o,g=()=>{let a=m.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,we),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Se.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Se.length;t++)o[Se[t]].cancel(e)},state:i,steps:o}}var{schedule:E,cancel:D,state:O,steps:Ee}=Te(typeof requestAnimationFrame<`u`?requestAnimationFrame:y,!0),De;function Oe(){De=void 0}var k={now:()=>(De===void 0&&k.set(O.isProcessing||m.useManualTiming?O.timestamp:performance.now()),De),set:e=>{De=e,queueMicrotask(Oe)}},ke=e=>t=>typeof t==`string`&&t.startsWith(e),Ae=ke(`--`),je=ke(`var(--`),Me=e=>je(e)?Ne.test(e.split(`/*`)[0].trim()):!1,Ne=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pe(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Fe={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ie={...Fe,transform:e=>p(0,1,e)},Le={...Fe,default:1},Re=e=>Math.round(e*1e5)/1e5,ze=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Be(e){return e==null}var Ve=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,He=(e,t)=>n=>!!(typeof n==`string`&&Ve.test(n)&&n.startsWith(e)||t&&!Be(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ue=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ze);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},We=e=>p(0,255,e),Ge={...Fe,transform:e=>Math.round(We(e))},A={test:He(`rgb`,`red`),parse:Ue(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ge.transform(e)+`, `+Ge.transform(t)+`, `+Ge.transform(n)+`, `+Re(Ie.transform(r))+`)`};function Ke(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var qe={test:He(`#`),parse:Ke,transform:A.transform},Je=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j=Je(`deg`),M=Je(`%`),N=Je(`px`),Ye=Je(`vh`),Xe=Je(`vw`),Ze={...M,parse:e=>M.parse(e)/100,transform:e=>M.transform(e*100)},Qe={test:He(`hsl`,`hue`),parse:Ue(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+M.transform(Re(t))+`, `+M.transform(Re(n))+`, `+Re(Ie.transform(r))+`)`},P={test:e=>A.test(e)||qe.test(e)||Qe.test(e),parse:e=>A.test(e)?A.parse(e):Qe.test(e)?Qe.parse(e):qe.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?A.transform(e):Qe.transform(e),getAnimatableNone:e=>{let t=P.parse(e);return t.alpha=0,P.transform(t)}},$e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function et(e){return isNaN(e)&&typeof e==`string`&&(e.match(ze)?.length||0)+(e.match($e)?.length||0)>0}var tt=`number`,nt=`color`,rt=`var`,it=`var(`,at="${}",ot=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function st(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ot,e=>(P.test(e)?(r.color.push(a),i.push(nt),n.push(P.parse(e))):e.startsWith(it)?(r.var.push(a),i.push(rt),n.push(e)):(r.number.push(a),i.push(tt),n.push(parseFloat(e))),++a,at)).split(at),indexes:r,types:i}}function ct(e){return st(e).values}function lt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===tt?Re(r[a]):e===nt?P.transform(r[a]):r[a]}return i}}function ut(e){return lt(st(e))}var dt=e=>typeof e==`number`?0:P.test(e)?P.getAnimatableNone(e):e,ft=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:dt(e);function pt(e){let t=st(e);return lt(t)(t.values.map((e,n)=>ft(e,t.split[n])))}var F={test:et,parse:ct,createTransformer:ut,getAnimatableNone:pt};function mt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ht({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=mt(s,r,e+1/3),a=mt(s,r,e),o=mt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function gt(e,t){return n=>n>0?t:e}var I=(e,t,n)=>e+(t-e)*n,_t=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},vt=[qe,A,Qe],yt=e=>vt.find(t=>t.test(e));function bt(e){let t=yt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Qe&&(n=ht(n)),n}var xt=(e,t)=>{let n=bt(e),r=bt(t);if(!n||!r)return gt(e,t);let i={...n};return e=>(i.red=_t(n.red,r.red,e),i.green=_t(n.green,r.green,e),i.blue=_t(n.blue,r.blue,e),i.alpha=I(n.alpha,r.alpha,e),A.transform(i))},St=new Set([`none`,`hidden`]);function Ct(e,t){return St.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function wt(e,t){return n=>I(e,t,n)}function Tt(e){return typeof e==`number`?wt:typeof e==`string`?Me(e)?gt:P.test(e)?xt:kt:Array.isArray(e)?Et:typeof e==`object`?P.test(e)?xt:Dt:gt}function Et(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Tt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Dt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Tt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ot(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var kt=(e,t)=>{let n=F.createTransformer(t),r=st(e),i=st(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?St.has(e)&&!i.values.length||St.has(t)&&!r.values.length?Ct(e,t):b(Et(Ot(r,i),i.values),n):(`${e}${t}`,gt(e,t))};function At(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?I(e,t,n):Tt(e)(e,t)}var jt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>E.update(t,e),stop:()=>D(t),now:()=>O.isProcessing?O.timestamp:k.now()}},Mt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Nt=2e4;function Pt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Ft(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Pt(r),Nt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:w(i)}}var L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function It(e,t){return e*Math.sqrt(1-t*t)}var Lt=12;function Rt(e,t,n){let r=n;for(let n=1;n<Lt;n++)r-=e(r)/t(r);return r}var zt=.001;function Bt({duration:e=L.duration,bounce:t=L.bounce,velocity:n=L.velocity,mass:r=L.mass}){let i,a;L.maxDuration;let o=1-t;o=p(L.minDamping,L.maxDamping,o),e=p(L.minDuration,L.maxDuration,w(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=It(t,o),c=Math.exp(-i);return zt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=It(t**2,o);return(-i(t)+zt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Rt(i,a,s);if(e=C(e),isNaN(c))return{stiffness:L.stiffness,damping:L.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Vt=[`duration`,`bounce`],Ht=[`stiffness`,`damping`,`mass`];function Ut(e,t){return t.some(t=>e[t]!==void 0)}function Wt(e){let t={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...e};if(!Ut(e,Ht)&&Ut(e,Vt)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*p(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:L.mass,stiffness:i,damping:a}}else{let n=Bt({...e,velocity:0});t={...t,...n,mass:L.mass},t.isResolvedFromDuration=!0}}return t}function Gt(e=L.visualDuration,t=L.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Wt({...n,velocity:-w(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=w(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?L.restSpeed.granular:L.restSpeed.default,i||=v?L.restDelta.granular:L.restDelta.default;let y,b,x,S,ee,T;if(h<1)x=It(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},ee=h*_*S+g*x,T=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(ee*Math.sin(x*e)+T*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>C(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=C(t*(ee*n+T*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=C(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Pt(te),Nt),t=Mt(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}Gt.applyToOptions=e=>{let t=Ft(e,100,Gt);return e.ease=t.ease,e.duration=C(t.duration),e.type=`keyframes`,e};var Kt=5;function qt(e,t,n){let r=Math.max(t-Kt,0);return ee(n-e(r),t-r)}function Jt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Gt({keyframes:[f.value,m(f.value)],velocity:qt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Yt(e,t,n){let r=[],i=n||m.mix||At,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=b(Array.isArray(t)?t[n]||y:t,a)),r.push(a)}return r}function Xt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Yt(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=x(e[r],e[r+1],n);return s[r](i)};return n?t=>l(p(e[0],e[a-1],t)):l}function Zt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=x(0,t,r);e.push(I(n,1,i))}}function Qt(e){let t=[0];return Zt(t,e.length-1),t}function $t(e,t){return e.map(e=>e*t)}function en(e,t){return e.map(()=>t||ge).splice(0,e.length-1)}function tn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=_e(r)?r.map(xe):xe(r),a={done:!1,value:t[0]},o=Xt($t(n&&n.length===t.length?n:Qt(t),e),t,{ease:Array.isArray(i)?i:en(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var nn=e=>e!==null;function rn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(nn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var an={decay:Jt,inertia:Jt,tween:tn,keyframes:tn,spring:Gt};function on(e){typeof e.type==`string`&&(e.type=an[e.type])}var sn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},cn=e=>e/100,ln=class extends sn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==k.now()&&this.tick(k.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;on(e);let{type:t=tn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||tn;s!==tn&&typeof o[0]!=`number`&&(this.mixKeyframes=b(cn,At(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Pt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(b=a)),y=p(0,1,n)*o}let x;v?(this.delayState.value=l[0],x=this.delayState):x=b.next(y),i&&!v&&(x.value=i(x.value));let{done:S}=x;!v&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Jt&&(x.value=rn(l,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return w(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+w(e)}get time(){return w(this.currentTime)}set time(e){e=C(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return qt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=w(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=jt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(k.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function un(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var R=e=>e*180/Math.PI,dn=e=>pn(R(Math.atan2(e[1],e[0]))),fn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:dn,rotateZ:dn,skewX:e=>R(Math.atan(e[1])),skewY:e=>R(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},pn=e=>(e%=360,e<0&&(e+=360),e),mn=dn,hn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_n={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hn,scaleY:gn,scale:e=>(hn(e)+gn(e))/2,rotateX:e=>pn(R(Math.atan2(e[6],e[5]))),rotateY:e=>pn(R(Math.atan2(-e[2],e[0]))),rotateZ:mn,rotate:mn,skewX:e=>R(Math.atan(e[4])),skewY:e=>R(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function vn(e){return+!!e.includes(`scale`)}function yn(e,t){if(!e||e===`none`)return vn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=_n,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=fn,i=t}if(!i)return vn(t);let a=r[t],o=i[1].split(`,`).map(xn);return typeof a==`function`?a(o):o[a]}var bn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return yn(n,t)};function xn(e){return parseFloat(e.trim())}var Sn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Cn=new Set([...Sn,`pathRotation`]),wn=e=>e===Fe||e===N,Tn=new Set([`x`,`y`,`z`]),En=Sn.filter(e=>!Tn.has(e));function Dn(e){let t=[];return En.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var z={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>yn(t,`x`),y:(e,{transform:t})=>yn(t,`y`)};z.translateX=z.x,z.translateY=z.y;var B=new Set,On=!1,kn=!1,An=!1;function jn(){if(kn){let e=Array.from(B).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Dn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}kn=!1,On=!1,B.forEach(e=>e.complete(An)),B.clear()}function Mn(){B.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(kn=!0)})}function Nn(){An=!0,Mn(),jn(),An=!1}var Pn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(B.add(this),On||(On=!0,E.read(Mn),E.resolveKeyframes(jn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}un(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),B.delete(this)}cancel(){this.state===`scheduled`&&(B.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Fn=e=>e.startsWith(`--`);function In(e,t,n){Fn(t)?e.style.setProperty(t,n):e.style[t]=n}var Ln={};function Rn(e,t){let n=v(e);return()=>Ln[t]??n()}var zn=Rn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Bn=Rn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Vn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Vn([0,.65,.55,1]),circOut:Vn([.55,0,1,.45]),backIn:Vn([.31,.01,.66,-.59]),backOut:Vn([.33,1.53,.69,.99])};function Un(e,t){if(e)return typeof e==`function`?Bn()?Mt(e,t):`ease-out`:ve(e)?Vn(e):Array.isArray(e)?e.map(e=>Un(e,t)||Hn.easeOut):Hn[e]}function Wn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Un(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Gn(e){return typeof e==`function`&&`applyToOptions`in e}function Kn({type:e,...t}){return Gn(e)&&Bn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var qn=class extends sn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Kn(e);this.animation=Wn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=rn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),In(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return w(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+w(e)}get time(){return w(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=C(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&zn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),y):r(this)}},Jn={anticipate:ue,backInOut:le,circInOut:pe};function Yn(e){return e in Jn}function Xn(e){typeof e.ease==`string`&&Yn(e.ease)&&(e.ease=Jn[e.ease])}var Zn=10,Qn=class extends qn{constructor(e){Xn(e),on(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new ln({...a,autoplay:!1}),s=Math.max(Zn,k.now()-this.startTime),c=p(0,Zn,s-Zn),l=o.sample(s).value,{name:u}=this.options;i&&u&&In(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},$n=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(F.test(e)||e===`0`)&&!e.startsWith(`url(`));function er(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function tr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=$n(i,t),s=$n(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:er(e)||(n===`spring`||Gn(n))&&r}function nr(e){e.duration=0,e.type=`keyframes`}var rr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),ir=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ar(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ir.test(e[t]))return!0;return!1}var or=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),sr=v(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function cr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return sr()&&n&&(rr.has(n)||or.has(n)&&ar(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var lr=40,ur=class extends sn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=k.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Pn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=k.now();let u=!0;tr(e,i,a,o)||(u=!1,(m.instantAnimations||!s)&&l?.(rn(e,n,t)),e[0]=e[e.length-1],nr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>lr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&cr(d),p=d.motionValue?.owner?.current,h;if(f)try{h=new Qn({...d,element:p})}catch{h=new ln(d)}else h=new ln(d);h.finished.then(()=>{this.notifyFinished()}).catch(y),this.pendingTimeline&&=(this.stopTimeline=h.attachTimeline(this.pendingTimeline),void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Nn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function dr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var fr=30,pr=e=>!isNaN(parseFloat(e)),mr={current:void 0},hr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=k.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=pr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new S);let n=this.events[e].add(t);return e===`change`?()=>{n(),E.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return mr.current&&mr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>fr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,fr);return ee(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function gr(e,t){return new hr(e,t)}function _r(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function vr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:_r(n,e)}var yr={type:`spring`,stiffness:500,damping:25,restSpeed:10},br=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xr={type:`keyframes`,duration:.8},Sr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Cr=(e,{keyframes:t})=>t.length>2?xr:Cn.has(e)?e.startsWith(`scale`)?br(t[1]):yr:Sr,wr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Tr(e){for(let t in e)if(!wr.has(t))return!0;return!1}var Er=(e,t,n,r={},i,a)=>o=>{let s=vr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=C(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Tr(s)||Object.assign(u,Cr(e,u)),u.duration&&=C(u.duration),u.repeatDelay&&=C(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(nr(u),u.delay===0&&(d=!0)),(m.instantAnimations||m.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,nr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=rn(u.keyframes,s);if(e!==void 0){E.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ln(u):new ur(u)},Dr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Or(e){let t=Dr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function kr(e,t,n=1){`${e}`;let[r,i]=Or(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return h(e)?parseFloat(e):e}return Me(i)?kr(i,t,n+1):i}function Ar(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function jr(e,t,n,r){if(typeof t==`function`){let[i,a]=Ar(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ar(r);t=t(n===void 0?e.custom:n,i,a)}return t}function V(e,t,n){let r=e.getProps();return jr(r,t,n===void 0?r.custom:n,e)}var Mr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Sn]),Nr=e=>Array.isArray(e);function Pr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gr(n))}function Fr(e){return Nr(e)?e[e.length-1]||0:e}function Ir(e,t){let{transitionEnd:n={},transition:r={},...i}=V(e,t)||{};i={...i,...n};for(let t in i)Pr(e,t,Fr(i[t]))}var H=e=>!!(e&&e.getVelocity);function Lr(e){return!!(H(e)&&e.add)}function Rr(e,t){let n=e.getValue(`willChange`);if(Lr(n))return n.add(t);if(!n&&m.WillChange){let n=new m.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function zr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Br=`data-`+zr(`framerAppearId`);function Vr(e){return e.props[Br]}function Hr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ur(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?_r(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Hr(f,t))continue;let o={delay:n,...vr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){E.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Vr(e);if(n){let e=window.MotionHandoffAnimation(n,t,E);e!==null&&(o.startTime=e,p=!0)}}Rr(e,t);let m=l??e.shouldReduceMotion;r.start(Er(t,r,i,m&&Mr.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>E.update(()=>{o&&Ir(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Wr(e,t,n={}){let r=V(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Ur(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Gr(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Gr(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Wr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+dr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Kr(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Wr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Wr(e,t,n);else{let i=typeof t==`function`?V(e,t,n.custom):t;r=Promise.all(Ur(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var qr={test:e=>e===`auto`,parse:e=>e},Jr=e=>t=>t.test(e),Yr=[Fe,N,M,j,Xe,Ye,qr],Xr=e=>Yr.find(Jr(e));function Zr(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||_(e)}var Qr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function $r(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ze)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Qr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ei=/\b([a-z-]*)\(.*?\)/gu,ti={...F,getAnimatableNone:e=>{let t=e.match(ei);return t?t.map($r).join(` `):e}},ni={...F,getAnimatableNone:e=>{let t=F.parse(e);return F.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ri={...Fe,transform:Math.round},ii={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,inset:N,insetBlock:N,insetBlockStart:N,insetBlockEnd:N,insetInline:N,insetInlineStart:N,insetInlineEnd:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,paddingBlock:N,paddingBlockStart:N,paddingBlockEnd:N,paddingInline:N,paddingInlineStart:N,paddingInlineEnd:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,marginBlock:N,marginBlockStart:N,marginBlockEnd:N,marginInline:N,marginInlineStart:N,marginInlineEnd:N,fontSize:N,backgroundPositionX:N,backgroundPositionY:N,rotate:j,pathRotation:j,rotateX:j,rotateY:j,rotateZ:j,scale:Le,scaleX:Le,scaleY:Le,scaleZ:Le,skew:j,skewX:j,skewY:j,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:Ie,originX:Ze,originY:Ze,originZ:N,zIndex:ri,fillOpacity:Ie,strokeOpacity:Ie,numOctaves:ri},ai={...ii,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:ti,WebkitFilter:ti,mask:ni,WebkitMask:ni},oi=e=>ai[e],si=new Set([ti,ni]);function ci(e,t){let n=oi(e);return si.has(n)||(n=F),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var li=new Set([`auto`,`none`,`0`]);function ui(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!li.has(t)&&st(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ci(n,i)}var di=class extends Pn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Me(r))){let i=kr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Mr.has(n)||e.length!==2)return;let[r,i]=e,a=Xr(r),o=Xr(i);if(Pe(r)!==Pe(i)&&z[n]){this.needsMeasurement=!0;return}if(a!==o){if(wn(a)&&wn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else z[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Zr(e[t]))&&n.push(t);n.length&&ui(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=z[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=z[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},fi=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function pi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var mi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function hi(e){return g(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:gi,cancel:_i}=Te(queueMicrotask,!1),U={x:!1,y:!1};function vi(){return U.x||U.y}function yi(e){return e===`x`||e===`y`?U[e]?null:(U[e]=!0,()=>{U[e]=!1}):U.x||U.y?null:(U.x=U.y=!0,()=>{U.x=U.y=!1})}function bi(e,t){let n=pi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function xi(e){return!(e.pointerType===`touch`||vi())}function Si(e,t,n={}){let[r,i,a]=bi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!xi(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ci=(e,t)=>t?e===t||Ci(e,t.parentElement):!1,wi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ti=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ei(e){return Ti.has(e.tagName)||e.isContentEditable===!0}var Di=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Oi(e){return Di.has(e.tagName)||e.isContentEditable===!0}var ki=new WeakSet;function Ai(e){return t=>{t.key===`Enter`&&e(t)}}function ji(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Mi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ai(()=>{if(ki.has(n))return;ji(n,`down`);let e=Ai(()=>{ji(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>ji(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ni(e){return wi(e)&&!vi()}var Pi=new WeakSet;function Fi(e,t,n={}){let[r,i,a]=bi(e,n),o=e=>{let r=e.currentTarget;if(!Ni(e)||Pi.has(e))return;ki.add(r),n.stopPropagation&&Pi.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ki.has(r)&&ki.delete(r),Ni(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Ci(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),hi(e)&&(e.addEventListener(`focus`,e=>Mi(e,i)),!Ei(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ii(e){return g(e)&&`ownerSVGElement`in e}var Li=new WeakMap,Ri,zi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ii(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Bi=zi(`inline`,`width`,`offsetWidth`),Vi=zi(`block`,`height`,`offsetHeight`);function Hi({target:e,borderBoxSize:t}){Li.get(e)?.forEach(n=>{n(e,{get width(){return Bi(e,t)},get height(){return Vi(e,t)}})})}function Ui(e){e.forEach(Hi)}function Wi(){typeof ResizeObserver>`u`||(Ri=new ResizeObserver(Ui))}function Gi(e,t){Ri||Wi();let n=pi(e);return n.forEach(e=>{let n=Li.get(e);n||(n=new Set,Li.set(e,n)),n.add(t),Ri?.observe(e)}),()=>{n.forEach(e=>{let n=Li.get(e);n?.delete(t),n?.size||Ri?.unobserve(e)})}}var Ki=new Set,W;function qi(){W=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ki.forEach(t=>t(e))},window.addEventListener(`resize`,W)}function Ji(e){return Ki.add(e),W||qi(),()=>{Ki.delete(e),!Ki.size&&typeof W==`function`&&(window.removeEventListener(`resize`,W),W=void 0)}}function Yi(e,t){return typeof e==`function`?Ji(e):Gi(e,t)}var Xi={value:null,addProjectionMetrics:null};function Zi(e){return Ii(e)&&e.tagName===`svg`}var Qi=[...Yr,P,F],$i=e=>Qi.find(Jr(e)),ea=()=>({translate:0,scale:1,origin:0,originPoint:0}),ta=()=>({x:ea(),y:ea()}),na=()=>({min:0,max:0}),G=()=>({x:na(),y:na()}),ra=new WeakMap;function ia(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function aa(e){return typeof e==`string`||Array.isArray(e)}var oa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],sa=[`initial`,...oa];function ca(e){return ia(e.animate)||sa.some(t=>aa(e[t]))}function la(e){return!!(ca(e)||e.variants)}function ua(e,t,n){for(let r in t){let i=t[r],a=n[r];if(H(i))e.addValue(r,i);else if(H(a))e.addValue(r,gr(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,gr(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var da={current:null},fa={current:!1},pa=typeof window<`u`;function ma(){if(fa.current=!0,pa){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>da.current=e.matches;e.addEventListener(`change`,t),t()}else da.current=!1}}var ha=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ga={};function _a(e){ga=e}function va(){return ga}var ya=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Pn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,E.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ca(t),this.isVariantNode=la(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&H(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ra.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(fa.current||ma(),this.shouldReduceMotion=da.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),D(this.notifyUpdate),D(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&rr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new qn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:C(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Cn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&E.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ga){let t=ga[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ha.length;t++){let n=ha[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ua(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=gr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(h(n)||_(n))?n=parseFloat(n):!$i(n)&&F.test(t)&&(n=ci(e,t)),this.setBaseTarget(e,H(n)?n.get():n)),H(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=jr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!H(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new S),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){gi.render(this.render)}},ba=class extends ya{constructor(){super(...arguments),this.KeyframeResolver=di}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;H(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},K=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function xa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ca(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wa(e){return e===void 0||e===1}function Ta({scale:e,scaleX:t,scaleY:n}){return!wa(e)||!wa(t)||!wa(n)}function q(e){return Ta(e)||Ea(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ea(e){return Da(e.x)||Da(e.y)}function Da(e){return e&&e!==`0%`}function Oa(e,t,n){return n+t*(e-n)}function ka(e,t,n,r,i){return i!==void 0&&(e=Oa(e,i,r)),Oa(e,n,r)+t}function Aa(e,t=0,n=1,r,i){e.min=ka(e.min,t,n,r,i),e.max=ka(e.max,t,n,r,i)}function ja(e,{x:t,y:n}){Aa(e.x,t.translate,t.scale,t.originPoint),Aa(e.y,n.translate,n.scale,n.originPoint)}var Ma=.999999999999,Na=1.0000000000001;function Pa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(J(e.x,-a.scroll.offset.x),J(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ja(e,o)),r&&q(a.latestValues)&&La(e,a.latestValues,a.layout?.layoutBox))}t.x<Na&&t.x>Ma&&(t.x=1),t.y<Na&&t.y>Ma&&(t.y=1)}function J(e,t){e.min+=t,e.max+=t}function Fa(e,t,n,r,i=.5){Aa(e,t,n,I(e.min,e.max,i),r)}function Ia(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function La(e,t,n){let r=n??e;Fa(e.x,Ia(t.x,r.x),t.scaleX,t.scale,t.originX),Fa(e.y,Ia(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ra(e,t){return xa(Ca(e.getBoundingClientRect(),t))}function za(e,t,n){let r=Ra(e,n),{scroll:i}=t;return i&&(J(r.x,i.offset.x),J(r.y,i.offset.y)),r}var Ba={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Va=Sn.length;function Ha(e,t,n){let r=``,i=!0;for(let a=0;a<Va;a++){let o=Sn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=mi(s,ii[o]);if(!c){i=!1;let t=Ba[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${mi(a,ii.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ua(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Cn.has(e)){o=!0;continue}if(Ae(e)){i[e]=n;continue}{let t=mi(n,ii[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ha(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Wa(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ga(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ka={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(N.test(e))e=parseFloat(e);else return e}return`${Ga(e,t.target.x)}% ${Ga(e,t.target.y)}%`}},qa={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=F.parse(e);if(i.length>5)return r;let a=F.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=I(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ja={borderRadius:{...Ka,applyTo:[...fi]},borderTopLeftRadius:Ka,borderTopRightRadius:Ka,borderBottomLeftRadius:Ka,borderBottomRightRadius:Ka,boxShadow:qa};function Ya(e,{layout:t,layoutId:n}){return Cn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ja[e]||e===`opacity`)}function Xa(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(H(r[t])||i&&H(i[t])||Ya(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Za(e){return window.getComputedStyle(e)}var Qa=class extends ba{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Wa}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Cn.has(t))return this.projection?.isProjecting?vn(t):bn(e,t);{let n=Za(e),r=(Ae(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ra(e,t)}build(e,t,n){Ua(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Xa(e,t,n)}},$a={offset:`stroke-dashoffset`,array:`stroke-dasharray`},eo={offset:`strokeDashoffset`,array:`strokeDasharray`};function to(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?$a:eo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var no=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ro(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ua(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of no)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&to(d,i,a,o,!1)}var io=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ao=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function oo(e,t,n,r){Wa(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(io.has(n)?n:zr(n),t.attrs[n])}function so(e,t,n){let r=Xa(e,t,n);for(let n in e)if(H(e[n])||H(t[n])){let t=Sn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var co=class extends ba{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Cn.has(t)){let e=oi(t);return e&&e.default||0}if(no.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=io.has(t)?t:zr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return so(e,t,n)}build(e,t,n){ro(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){oo(e,t,n,r)}mount(e){this.isSVGTag=ao(e.tagName),super.mount(e)}},lo=sa.length;function uo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&uo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<lo;n++){let r=sa[n],i=e.props[r];(aa(i)||i===!1)&&(t[r]=i)}return t}function fo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var po=[...oa].reverse(),mo=oa.length;function ho(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Kr(e,t,n)))}function go(e){let t=ho(e),n=vo(),r=!0,i=!1,a=t=>(n,r)=>{let i=V(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=uo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<mo;t++){let p=po[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=aa(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||ia(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=_o(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},T=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Nr(t)&&Nr(n)?!fo(t,n)||y:t!==n,r?t==null?u.add(e):T(e):t!==void 0&&u.has(e)?T(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let te=v&&y;b&&(!te||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!te&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=V(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=dr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=V(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=vo(),i=!0}}}function _o(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!fo(t,e):!1}function Y(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vo(){return{animate:Y(!0),whileInView:Y(),whileHover:Y(),whileTap:Y(),whileDrag:Y(),whileFocus:Y(),exit:Y()}}function yo(e,t){e.min=t.min,e.max=t.max}function X(e,t){yo(e.x,t.x),yo(e.y,t.y)}function bo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var xo=.9999,So=1.0001,Co=-.01,wo=.01;function Z(e){return e.max-e.min}function To(e,t,n){return Math.abs(e-t)<=n}function Eo(e,t,n,r=.5){e.origin=r,e.originPoint=I(t.min,t.max,e.origin),e.scale=Z(n)/Z(t),e.translate=I(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xo&&e.scale<=So||isNaN(e.scale))&&(e.scale=1),(e.translate>=Co&&e.translate<=wo||isNaN(e.translate))&&(e.translate=0)}function Do(e,t,n,r){Eo(e.x,t.x,n.x,r?r.originX:void 0),Eo(e.y,t.y,n.y,r?r.originY:void 0)}function Oo(e,t,n,r=0){e.min=(r?I(n.min,n.max,r):n.min)+t.min,e.max=e.min+Z(t)}function ko(e,t,n,r){Oo(e.x,t.x,n.x,r?.x),Oo(e.y,t.y,n.y,r?.y)}function Ao(e,t,n,r=0){let i=r?I(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Z(t)}function jo(e,t,n,r){Ao(e.x,t.x,n.x,r?.x),Ao(e.y,t.y,n.y,r?.y)}function Mo(e,t,n,r,i){return e-=t,e=Oa(e,1/n,r),i!==void 0&&(e=Oa(e,1/i,r)),e}function No(e,t=0,n=1,r=.5,i,a=e,o=e){if(M.test(t)&&(t=parseFloat(t),t=I(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=I(a.min,a.max,r);e===a&&(s-=t),e.min=Mo(e.min,t,n,s,i),e.max=Mo(e.max,t,n,s,i)}function Po(e,t,[n,r,i],a,o){No(e,t[n],t[r],t[i],t.scale,a,o)}var Fo=[`x`,`scaleX`,`originX`],Io=[`y`,`scaleY`,`originY`];function Lo(e,t,n,r){Po(e.x,t,Fo,n?n.x:void 0,r?r.x:void 0),Po(e.y,t,Io,n?n.y:void 0,r?r.y:void 0)}function Ro(e){return e.translate===0&&e.scale===1}function zo(e){return Ro(e.x)&&Ro(e.y)}function Bo(e,t){return e.min===t.min&&e.max===t.max}function Vo(e,t){return Bo(e.x,t.x)&&Bo(e.y,t.y)}function Ho(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uo(e,t){return Ho(e.x,t.x)&&Ho(e.y,t.y)}function Wo(e){return Z(e.x)/Z(e.y)}function Go(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Q(e){return[e(`x`),e(`y`)]}function Ko(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var qo=fi.length,Jo=e=>typeof e==`string`?parseFloat(e):e,Yo=e=>typeof e==`number`||N.test(e);function Xo(e,t,n,r,i,a){i?(e.opacity=I(0,n.opacity??1,Qo(r)),e.opacityExit=I(t.opacity??1,0,$o(r))):a&&(e.opacity=I(t.opacity??1,n.opacity??1,r));for(let i=0;i<qo;i++){let a=fi[i],o=Zo(t,a),s=Zo(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Yo(o)===Yo(s)?(e[a]=Math.max(I(Jo(o),Jo(s),r),0),(M.test(s)||M.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=I(t.rotate||0,n.rotate||0,r))}function Zo(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Qo=es(0,.5,fe),$o=es(.5,.95,y);function es(e,t,n){return r=>r<e?0:r>t?1:n(x(e,t,r))}function ts(e,t,n){let r=H(e)?e:gr(e);return r.start(Er(``,r,t,n)),r.animation}function ns(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var rs=(e,t)=>e.depth-t.depth,is=class{constructor(){this.children=[],this.isDirty=!1}add(e){d(this.children,e),this.isDirty=!0}remove(e){f(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rs),this.isDirty=!1,this.children.forEach(e)}};function as(e,t){let n=k.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(D(r),e(a-t))};return E.setup(r,!0),()=>D(r)}function os(e){return H(e)?e.get():e}var ss=class{constructor(){this.members=[]}add(e){d(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(f(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(f(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ls=[``,`X`,`Y`,`Z`],us=1e3,ds=0;function fs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ps(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Vr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,E,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ps(r)}function ms({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ds++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xi.value&&($.nodes=$.calculatedTargetDeltas=$.calculatedProjections=0),this.nodes.forEach(_s),this.nodes.forEach(Es),this.nodes.forEach(Ds),this.nodes.forEach(vs),Xi.addProjectionMetrics&&Xi.addProjectionMetrics($)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new is)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new S),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ii(t)&&!Zi(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;E.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=as(i,250),cs.hasAnimatedSinceResize&&(cs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ts)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ps,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Uo(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...vr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Ts(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),D(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Os),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ps(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(xs),this.nodes.forEach(bs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ss);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Cs),this.nodes.forEach(ws),this.nodes.forEach(hs),this.nodes.forEach(gs)):this.nodes.forEach(Ss),this.clearAllSnapshots();let e=k.now();O.delta=p(0,1e3/60,e-O.timestamp),O.timestamp=e,O.isProcessing=!0,Ee.update.process(O),Ee.preRender.process(O),Ee.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ys),this.sharedNodes.forEach(ks)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Z(this.snapshot.measuredBox.x)&&!Z(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!zo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||q(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Rs(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Bs))){let{scroll:e}=this.root;e&&(J(t.x,e.offset.x),J(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(X(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&X(t,e),J(t.x,i.offset.x),J(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||G();X(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(J(r.x,-n.scroll.offset.x),J(r.y,-n.scroll.offset.y)),q(n.latestValues)&&La(r,n.latestValues,n.layout?.layoutBox)}return q(this.latestValues)&&La(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=G();X(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!q(n.latestValues))continue;let r;n.instance&&(Ta(n.latestValues)&&n.updateSnapshot(),r=G(),X(r,n.measurePageBox())),Lo(t,n.latestValues,n.snapshot?.layoutBox,r)}return q(this.latestValues)&&Lo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=O.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ko(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):X(this.target,this.layout.layoutBox),ja(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Xi.value&&$.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ta(this.parent.latestValues)||Ea(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),jo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),X(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===O.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;X(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Pa(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bo(this.prevProjectionDelta.x,this.projectionDelta.x),bo(this.prevProjectionDelta.y,this.projectionDelta.y)),Do(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Go(this.projectionDelta.x,this.prevProjectionDelta.x)||!Go(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Xi.value&&$.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ta(),this.projectionDelta=ta(),this.projectionDeltaWithTransform=ta()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=ta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=G(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Ns));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=I(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=I(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(As(o.x,e.x,n),As(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ms(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Vo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=G(),X(f,this.relativeTarget)),c&&(this.animationValues=a,Xo(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(D(this.pendingAnimation),void 0),this.pendingAnimation=E.update(()=>{cs.hasAnimatedSinceResize=!0,this.motionValue||=gr(0),this.motionValue.jump(0,!1),this.currentAnimation=ts(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&zs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=Z(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Z(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}X(t,n),La(t,i),Do(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ss),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&fs(`z`,e,r,this.animationValues);for(let t=0;t<ls.length;t++)fs(`rotate${ls[t]}`,e,r,this.animationValues),fs(`skew${ls[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=os(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=os(t?.pointerEvents)||``),this.hasProjected&&!q(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ko(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ja){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ja[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?os(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(bs),this.root.sharedNodes.clear()}}}function hs(e){e.updateLayout()}function gs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Q(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Z(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;yo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else zs(i,t.layoutBox,n)&&Q(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Z(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ta();Do(o,n,t.layoutBox);let s=ta();a?Do(s,e.applyTransform(r,!0),t.measuredBox):Do(s,n,t.layoutBox);let c=!zo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();jo(s,t.layoutBox,i.layoutBox,o);let c=G();jo(c,n,a.layoutBox,o),Uo(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function _s(e){Xi.value&&$.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function vs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ys(e){e.clearSnapshot()}function bs(e){e.clearMeasurements()}function xs(e){e.isLayoutDirty=!0,e.updateLayout()}function Ss(e){e.isLayoutDirty=!1}function Cs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ws(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Ts(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Es(e){e.resolveTargetDelta()}function Ds(e){e.calcProjection()}function Os(e){e.resetSkewAndRotation()}function ks(e){e.removeLeadSnapshot()}function As(e,t,n){e.translate=I(t.translate,0,n),e.scale=I(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function js(e,t,n,r){e.min=I(t.min,n.min,r),e.max=I(t.max,n.max,r)}function Ms(e,t,n,r){js(e.x,t.x,n.x,r),js(e.y,t.y,n.y,r)}function Ns(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ps={duration:.45,ease:[.4,0,.1,1]},Fs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Is=Fs(`applewebkit/`)&&!Fs(`chrome/`)?Math.round:y;function Ls(e){e.min=Is(e.min),e.max=Is(e.max)}function Rs(e){Ls(e.x),Ls(e.y)}function zs(e,t,n){return e===`position`||e===`preserve-aspect`&&!To(Wo(t),Wo(n),.2)}function Bs(e){return e!==e.root&&e.scroll?.wasRoot}var Vs=ms({attachResizeListener:(e,t)=>ns(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Hs={current:void 0},Us=ms({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hs.current){let e=new Vs({});e.mount(window),e.setOptions({layoutScroll:!0}),Hs.current=e}return Hs.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ws=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Gs(e=!0){let t=(0,o.useContext)(u);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,o.useId)();(0,o.useEffect)(()=>{if(e)return i(a)},[e]);let s=(0,o.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}var Ks=(0,o.createContext)({strict:!1}),qs={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Js=!1;function Ys(){if(Js)return;let e={};for(let t in qs)e[t]={isEnabled:e=>qs[t].some(t=>!!e[t])};_a(e),Js=!0}function Xs(){return Ys(),va()}function Zs(e){let t=Xs();for(let n in e)t[n]={...t[n],...e[n]};_a(t)}var Qs=(0,o.createContext)({});function $s(e,t){if(ca(e)){let{initial:t,animate:n}=e;return{initial:t===!1||aa(t)?t:void 0,animate:aa(n)?n:void 0}}return e.inherit===!1?{}:t}function ec(e){let{initial:t,animate:n}=$s(e,(0,o.useContext)(Qs));return(0,o.useMemo)(()=>({initial:t,animate:n}),[tc(t),tc(n)])}function tc(e){return Array.isArray(e)?e.join(` `):e}var nc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rc(e,t,n){for(let r in t)!H(t[r])&&!Ya(r,n)&&(e[r]=t[r])}function ic({transformTemplate:e},t){return(0,o.useMemo)(()=>{let n=nc();return Ua(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ac(e,t){let n=e.style||{},r={};return rc(r,n,e),Object.assign(r,ic(e,t)),r}function oc(e,t){let n={},r=ac(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var sc=()=>({...nc(),attrs:{}});function cc(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=sc();return ro(n,t,ao(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rc(t,e.style,e),i.style={...t,...i.style}}return i}var lc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function uc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||lc.has(e)}function dc(e,t){return e.startsWith(`on`)?!uc(e):t?.(e)??!uc(e)}function fc(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(H(e[a])||(dc(a,r)||n===!0&&uc(a)||!t&&!uc(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var pc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function mc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(pc.indexOf(e)>-1||/[A-Z]/u.test(e))}function hc(e,t,n,{latestValues:r},i,a=!1,s,c){let l=(s??mc(e)?cc:oc)(t,r,i,e),u=fc(t,typeof e==`string`,a,c),d=e===o.Fragment?{}:{...u,...l,ref:n},{children:f}=t,p=(0,o.useMemo)(()=>H(f)?f.get():f,[f]);return(0,o.createElement)(e,{...d,children:p})}function gc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:_c(n,r,i,e),renderState:t()}}function _c(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=os(a[e]);let{initial:o,animate:s}=e,c=ca(e),l=la(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!ia(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=jr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var vc=e=>(t,n)=>{let r=(0,o.useContext)(Qs),i=(0,o.useContext)(u),a=()=>gc(e,t,r,i);return n?a():c(a)},yc=vc({scrapeMotionValuesFromProps:Xa,createRenderState:nc}),bc=vc({scrapeMotionValuesFromProps:so,createRenderState:sc}),xc=Symbol.for(`motionComponentSymbol`);function Sc(e,t,n){let r=(0,o.useRef)(n);(0,o.useInsertionEffect)(()=>{r.current=n});let i=(0,o.useRef)(null);return(0,o.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Cc=(0,o.createContext)({});function wc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Tc(e,t,n,r,i,a){let{visualElement:s}=(0,o.useContext)(Qs),c=(0,o.useContext)(Ks),d=(0,o.useContext)(u),f=(0,o.useContext)(Ws),p=f.reducedMotion,m=f.skipAnimations,h=(0,o.useRef)(null),g=(0,o.useRef)(!1);r||=c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:a}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let _=h.current,v=(0,o.useContext)(Cc);_&&!_.projection&&i&&(_.type===`html`||_.type===`svg`)&&Ec(h.current,n,i,v);let y=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{_&&y.current&&_.update(n,d)});let b=n[Br],x=(0,o.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return l(()=>{g.current=!0,_&&(y.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),x.current&&_.animationState&&_.animationState.animateChanges())}),(0,o.useEffect)(()=>{_&&(!x.current&&_.animationState&&_.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),_.enteringChildren=void 0)}),_}function Ec(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Dc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&wc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Dc(e){if(e)return e.options.allowProjection===!1?Dc(e.parent):e.projection}function Oc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Zs(r);let s=n?n===`svg`:mc(e),c=s?bc:yc;function l(n,l){let u,d={...(0,o.useContext)(Ws),...n,layoutId:kc(n)},{isStatic:f,isValidProp:p}=d,m=ec(n),h=c(n,f);if(!f&&typeof window<`u`){Ac(d,r);let t=jc(d);u=t.MeasureLayout,m.visualElement=Tc(e,h,d,i,t.ProjectionNode,s)}return(0,a.jsxs)(Qs.Provider,{value:m,children:[u&&m.visualElement?(0,a.jsx)(u,{visualElement:m.visualElement,...d}):null,hc(e,n,Sc(h,m.visualElement,l),h,f,t,s,p)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=(0,o.forwardRef)(l);return u[xc]=e,u}function kc({layoutId:e}){let t=(0,o.useContext)(s).id;return t&&e!==void 0?t+`-`+e:e}function Ac(e,t){(0,o.useContext)(Ks).strict}function jc(e){let{drag:t,layout:n}=Xs();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Mc(e,t){if(typeof Proxy>`u`)return Oc;let n=new Map,r=(n,r)=>Oc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Oc(a,void 0,e,t)),n.get(a))})}var Nc=(e,t)=>t.isSVG??mc(e)?new co(t):new Qa(t,{allowProjection:e!==o.Fragment}),Pc=class extends K{constructor(e){super(e),e.animationState||=go(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ia(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Fc=0,Ic={animation:{Feature:Pc},exit:{Feature:class extends K{constructor(){super(...arguments),this.id=Fc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=V(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Lc(e){return{point:{x:e.pageX,y:e.pageY}}}var Rc=e=>t=>wi(t)&&e(t,Lc(t));function zc(e,t,n,r){return ns(e,t,Rc(n),r)}var Bc=({current:e})=>e?e.ownerDocument.defaultView:null,Vc=(e,t)=>Math.abs(e-t);function Hc(e,t){let n=Vc(e.x,t.x),r=Vc(e.y,t.y);return Math.sqrt(n**2+r**2)}var Uc=new Set([`auto`,`scroll`]),Wc=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Gc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=qc(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Hc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=O;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Gc(t,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=qc(e.type===`pointercancel`?this.lastMoveEventInfo:Gc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!wi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Gc(Lc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=O;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,qc(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=b(zc(this.contextWindow,`pointermove`,this.handlePointerMove,d),zc(this.contextWindow,`pointerup`,this.handlePointerUp,d),zc(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Uc.has(e.overflowX)||Uc.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),E.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),D(this.updatePoint)}};function Gc(e,t){return t?{point:t(e.point)}:e}function Kc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qc({point:e},t){return{point:e,delta:Kc(e,Yc(t)),offset:Kc(e,Jc(t)),velocity:Xc(t,.1)}}function Jc(e){return e[0]}function Yc(e){return e[e.length-1]}function Xc(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Yc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>C(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>C(t)*2&&(r=e[1]);let a=w(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zc(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?I(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?I(n,e,r.max):Math.min(e,n)),e}function Qc(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function $c(e,{top:t,left:n,bottom:r,right:i}){return{x:Qc(e.x,n,i),y:Qc(e.y,t,r)}}function el(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function tl(e,t){return{x:el(e.x,t.x),y:el(e.y,t.y)}}function nl(e,t){let n=.5,r=Z(e),i=Z(t);return i>r?n=x(t.min,t.max-r,e.min):r>i&&(n=x(e.min,e.max-i,t.min)),p(0,1,n)}function rl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var il=.35;function al(e=il){return e===!1?e=0:e===!0&&(e=il),{x:ol(e,`left`,`right`),y:ol(e,`top`,`bottom`)}}function ol(e,t,n){return{min:sl(e,t),max:sl(e,n)}}function sl(e,t){return typeof e==`number`?e:e[t]||0}var cl=new WeakMap,ll=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Lc(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yi(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Z(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&E.update(()=>i(e,t),!1,!0),Rr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=pl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&E.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Wc(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Bc(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&E.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!fl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Zc(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&wc(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?$c(n.layoutBox,e):!1,this.elastic=al(t),r!==this.constraints&&!wc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Q(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=rl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!wc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=za(n,r.root,this.visualElement.getTransformPagePoint()),a=tl(r.layout.layoutBox,i);if(t){let e=t(Sa(a));this.hasMutatedConstraints=!!e,e&&(a=xa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Q(o=>{if(!fl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Rr(this.visualElement,e),n.start(Er(e,n,0,t,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Q(t=>{let{drag:n}=this.getProps();if(!fl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-I(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!wc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Q(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=nl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Q(t=>{if(!fl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(I(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cl.set(this.visualElement,this);let e=this.visualElement.current,t=zc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Oi(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();wc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=dl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),E.read(r);let o=ns(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Q(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=il,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ul(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function dl(e,t,n){let r=Yi(e,ul(n)),i=Yi(t,ul(n));return()=>{r(),i()}}function fl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var ml=class extends K{constructor(e){super(e),this.removeGroupControls=y,this.removeListeners=y,this.controls=new ll(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||y}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},hl=e=>(t,n)=>{e&&E.update(()=>e(t,n),!1,!0)},gl=class extends K{constructor(){super(...arguments),this.removePointerDownListener=y}onPointerDown(e){this.session=new Wc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bc(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:hl(e),onStart:hl(t),onMove:hl(n),onEnd:(e,t)=>{delete this.session,r&&E.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=zc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},_l=!1,vl=class extends o.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),_l&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),_l=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||E.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),gi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;_l=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function yl(e){let[t,n]=Gs(),r=(0,o.useContext)(s);return(0,a.jsx)(vl,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(Cc),isPresent:t,safeToRemove:n})}var bl={pan:{Feature:gl},drag:{Feature:ml,ProjectionNode:Us,MeasureLayout:yl}};function xl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&E.postRender(()=>i(t,Lc(t)))}var Sl=class extends K{mount(){let{current:e}=this.node;e&&(this.unmount=Si(e,(e,t)=>(xl(this.node,t,`Start`),e=>xl(this.node,e,`End`))))}unmount(){}},Cl=class extends K{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=b(ns(this.node.current,`focus`,()=>this.onFocus()),ns(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function wl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&E.postRender(()=>i(t,Lc(t)))}var Tl=class extends K{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Fi(e,(e,t)=>(wl(this.node,t,`Start`),(e,{success:t})=>wl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},El=new WeakMap,Dl=new WeakMap,Ol=e=>{let t=El.get(e.target);t&&t(e)},kl=e=>{e.forEach(Ol)};function Al({root:e,...t}){let n=e||document;Dl.has(n)||Dl.set(n,{});let r=Dl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(kl,{root:e,...t})),r[i]}function jl(e,t,n){let r=Al(t);return El.set(e,n),r.observe(e),()=>{El.delete(e),r.unobserve(e)}}var Ml={some:0,all:1},Nl=class extends K{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ml[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=jl(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Pl(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Pl({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Fl={inView:{Feature:Nl},tap:{Feature:Tl},focus:{Feature:Cl},hover:{Feature:Sl}},Il={layout:{ProjectionNode:Us,MeasureLayout:yl}},Ll=Mc({...Ic,...Fl,...bl,...Il},Nc);export{u as a,s as c,hi as i,i as l,Gs as n,l as o,Ws as r,c as s,Ll as t};
@@ -1,5 +0,0 @@
1
- import{a as e,t}from"./rolldown-runtime-B0Z9INg1.js";import{a as n}from"./vendor-datadog-XDrpA25D.js";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var i=typeof Symbol==`function`&&Symbol.observable||`@@observable`,a=()=>Math.random().toString(36).substring(7).split(``).join(`.`),o={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function s(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function c(e,t,n){if(typeof e!=`function`)throw Error(r(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(r(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(r(1));return n(c)(e,t)}let a=e,l=t,u=new Map,d=u,f=0,p=!1;function m(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function h(){if(p)throw Error(r(3));return l}function g(e){if(typeof e!=`function`)throw Error(r(4));if(p)throw Error(r(5));let t=!0;m();let n=f++;return d.set(n,e),function(){if(t){if(p)throw Error(r(6));t=!1,m(),d.delete(n),u=null}}}function _(e){if(!s(e))throw Error(r(7));if(e.type===void 0)throw Error(r(8));if(typeof e.type!=`string`)throw Error(r(17));if(p)throw Error(r(9));try{p=!0,l=a(l,e)}finally{p=!1}return(u=d).forEach(e=>{e()}),e}function v(e){if(typeof e!=`function`)throw Error(r(10));a=e,_({type:o.REPLACE})}function y(){let e=g;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(r(11));function n(){let e=t;e.next&&e.next(h())}return n(),{unsubscribe:e(n)}},[i](){return this}}}return _({type:o.INIT}),{dispatch:_,subscribe:g,getState:h,replaceReducer:v,[i]:y}}function l(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:o.INIT})===void 0)throw Error(r(12));if(n(void 0,{type:o.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(r(13))})}function u(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let i=Object.keys(n),a;try{l(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1,s={};for(let a=0;a<i.length;a++){let c=i[a],l=n[c],u=e[c],d=l(u,t);if(d===void 0)throw t&&t.type,Error(r(14));s[c]=d,o||=d!==u}return o||=i.length!==Object.keys(e).length,o?s:e}}function d(e,t){return function(...n){return t(e.apply(this,n))}}function f(e,t){if(typeof e==`function`)return d(e,t);if(typeof e!=`object`||!e)throw Error(r(16));let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=d(i,t))}return n}function p(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function m(...e){return t=>(n,i)=>{let a=t(n,i),o=()=>{throw Error(r(15))},s={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=p(...e.map(e=>e(s)))(a.dispatch),{...a,dispatch:o}}}function h(e){return s(e)&&`type`in e&&typeof e.type==`string`}function g(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function _(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var v=e=>Array.isArray(e)?e:[e];function y(e){let t=Array.isArray(e[0])?e[0]:e;return _(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function b(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var x=class{constructor(e){this.value=e}deref(){return this.value}},S=typeof WeakRef>`u`?x:WeakRef,C=0,w=1;function T(){return{s:C,v:void 0,o:null,p:null}}function E(e){return e instanceof S?e.deref():e}function D(e,t={}){let n=T(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=T(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=T(),e.set(n,t)):t=r}}let s=t,c;if(t.s===w)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=E(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new S(c):c}return s.s=w,s.v=c,c}return o.clearCache=()=>{n=T(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function O(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),g(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=D,argsMemoizeOptions:u=[]}={...n,...a},d=v(c),f=v(u),p=y(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=b(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var ee=O(D),te=t((e=>{var t=n();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue})),ne=t(((e,t)=>{t.exports=te()})),k=e(n(),1);ne();var re=Symbol.for(`react.transitional.element`),ie=Symbol.for(`react.portal`),A=Symbol.for(`react.fragment`),j=Symbol.for(`react.strict_mode`),ae=Symbol.for(`react.profiler`),oe=Symbol.for(`react.consumer`),se=Symbol.for(`react.context`),M=Symbol.for(`react.forward_ref`),ce=Symbol.for(`react.suspense`),le=Symbol.for(`react.suspense_list`),N=Symbol.for(`react.memo`),ue=Symbol.for(`react.lazy`),de=M,fe=N;function pe(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case re:switch(e=e.type,e){case A:case ae:case j:case ce:case le:return e;default:switch(e&&=e.$$typeof,e){case se:case M:case ue:case N:return e;case oe:return e;default:return t}}case ie:return t}}}function P(e){return pe(e)===N}function F(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function I(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return F(t(e,i),n(e,i),r(e,i),e,i)}function L(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function R(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function z(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function B(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=z(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=z(i),i=r(t,n)),i},r}}function V(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function me(e){return e&&typeof e==`object`?R(t=>L(e,t)):e?typeof e==`function`?B(e,`mapDispatchToProps`):V(e,`mapDispatchToProps`):R(e=>({dispatch:e}))}function he(e){return e?typeof e==`function`?B(e,`mapStateToProps`):V(e,`mapStateToProps`):R(()=>({}))}function ge(e,t,n){return{...n,...e,...t}}function _e(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function ve(e){return e?typeof e==`function`?_e(e):V(e,`mergeProps`):()=>ge}function ye(e){e()}function be(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ye(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var H={notify(){},get:()=>[]};function U(e,t){let n,r=H,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=be())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=H)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var xe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Se=typeof navigator<`u`&&navigator.product===`ReactNative`,W=xe||Se?k.useLayoutEffect:k.useEffect;function G(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function K(e,t){if(G(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!G(e[n[r]],t[n[r]]))return!1;return!0}var q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ce={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},we={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},J={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te={[de]:we,[fe]:J};function Y(e){return P(e)?J:Te[e.$$typeof]||q}var Ee=Object.defineProperty,De=Object.getOwnPropertyNames,X=Object.getOwnPropertySymbols,Oe=Object.getOwnPropertyDescriptor,ke=Object.getPrototypeOf,Z=Object.prototype;function Q(e,t){if(typeof t!=`string`){if(Z){let n=ke(t);n&&n!==Z&&Q(e,n)}let n=De(t);X&&(n=n.concat(X(t)));let r=Y(e),i=Y(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Ce[o]&&!(i&&i[o])&&!(r&&r[o])){let n=Oe(t,o);try{Ee(e,o,n)}catch{}}}}return e}var Ae=Symbol.for(`react-redux-context`),je=typeof globalThis<`u`?globalThis:{};function Me(){if(!k.createContext)return{};let e=je[Ae]??=new Map,t=e.get(k.createContext);return t||(t=k.createContext(null),e.set(k.createContext,t)),t}var $=Me(),Ne=[null,null];function Pe(e,t,n){W(()=>e(...t),n)}function Fe(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function Ie(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function Le(e,t){return e===t}function Re(e,t,n,{pure:r,areStatesEqual:i=Le,areOwnPropsEqual:a=K,areStatePropsEqual:o=K,areMergedPropsEqual:s=K,forwardRef:c=!1,context:l=$}={}){let u=l,d=he(e),f=me(t),p=ve(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=k.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=k.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=k.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=k.useMemo(()=>I(d.dispatch,r),[d]),[h,g]=k.useMemo(()=>{if(!m)return Ne;let e=U(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=k.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=k.useRef(void 0),y=k.useRef(a),b=k.useRef(void 0),x=k.useRef(!1),S=k.useRef(!1),C=k.useRef(void 0);W(()=>(S.current=!0,()=>{S.current=!1}),[]);let w=k.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),T=k.useMemo(()=>e=>h?Ie(m,d,h,p,y,v,x,S,b,g,e):()=>{},[h]);Pe(Fe,[y,v,x,a,b,g]);let E;try{E=k.useSyncExternalStore(T,w,f?()=>p(f(),a):w)}catch(e){throw C.current&&(e.message+=`
2
- The error may be correlated with this previous error:
3
- ${C.current.stack}
4
-
5
- `),e}W(()=>{C.current=void 0,b.current=void 0,v.current=E});let D=k.useMemo(()=>k.createElement(e,{...E,ref:i}),[i,e,E]);return k.useMemo(()=>m?k.createElement(o.Provider,{value:_},D):D,[o,D,_])}let h=k.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=k.forwardRef(function(e,t){return k.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Q(t,e)}return Q(h,e)}}var ze=Re;function Be(e){let{children:t,context:n,serverState:r,store:i}=e,a=k.useMemo(()=>{let e=U(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=k.useMemo(()=>i.getState(),[i]);W(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||$;return k.createElement(s.Provider,{value:a},t)}var Ve=Be;export{m as a,p as c,s as d,ee as i,c as l,ze as n,f as o,K as r,u as s,Ve as t,h as u};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{_ as t,c as n,g as r,s as i,y as a}from"./vendor-core-CddkYGh5.js";import{i as o,t as s}from"./button-DfBmT4rc.js";import{H as c,I as l,L as u,z as d}from"./vendor-tanstack-FsM5XZNE.js";import{a as f}from"./vendor-datadog-XDrpA25D.js";import{r as p}from"./vendor-react-BhazFIp8.js";import{o as m}from"./useAuth-DiJUZS1C.js";import{$ as h,Rt as g,it as _}from"./vendor-ui-BLIveqaL.js";import{c as v,d as y,i as b,l as x,n as S,o as C,p as w,s as T,t as ee,u as te}from"./select-CKgJgpkn.js";import{c as E,i as D,n as O,o as k,r as A,s as j,t as M}from"./table-BvFflPWi.js";import{r as N,t as P}from"./x-D39AGKMb.js";import{An as F,Mn as ne,On as I,an as L,ar as re,cn as R,er as ie,hn as ae,in as z,jn as oe,ln as B,mn as se,pn as ce,rn as V,sn as H,un as U,zn as W}from"./index-BQB9R8Ug.js";var G=e(f(),1),K=p();function q({options:e,selected:t,onChange:n,placeholder:r=`Select…`,emptyText:i=`No options`,ariaLabel:a,disabled:o,id:c,allowRepeats:l,maxVisibleOptions:u}){let[d,f]=(0,G.useState)(!1),[p,m]=(0,G.useState)(``),h=(0,G.useRef)(null),g=(0,G.useRef)(null),_=(0,G.useMemo)(()=>new Set(t),[t]),v=(0,G.useMemo)(()=>new Map(e.map(e=>[e.value,e.label])),[e]);(0,G.useEffect)(()=>{if(!d)return;let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>h.current?.focus())});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[d]);let y=(0,G.useMemo)(()=>{let t=p.trim().toLowerCase();return t?e.filter(e=>e.label.toLowerCase().includes(t)||e.value.toLowerCase().includes(t)):e},[e,p]),b=u?y.slice(0,u):y,x=y.length-b.length,S=e=>{l?n([...t,e]):_.has(e)?n(t.filter(t=>t!==e)):n([...t,e])},C=e=>n(t.filter((t,n)=>n!==e)),w=e=>{let t=g.current?.querySelectorAll(`[role="menuitemcheckbox"]:not([data-disabled])`);t?.length&&(e===`first`?t[0]:t[t.length-1]).focus()};return(0,K.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,K.jsxs)(F,{open:d,onOpenChange:e=>{f(e),e||m(``)},children:[(0,K.jsx)(W,{asChild:!0,disabled:o,children:(0,K.jsxs)(s,{id:c,type:`button`,variant:`outline`,"aria-label":a,className:`w-full justify-between font-normal`,children:[(0,K.jsx)(`span`,{className:t.length?`truncate`:`truncate text-muted-foreground`,children:t.length?`${t.length} selected`:r}),(0,K.jsx)(N,{className:`size-4 shrink-0 opacity-60`})]})}),(0,K.jsxs)(ne,{ref:g,className:`w-(--radix-dropdown-menu-trigger-width) max-h-72 overflow-y-auto`,align:`start`,children:[(0,K.jsx)(`input`,{ref:h,value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),w(e.key===`ArrowDown`?`first`:`last`);return}e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.stopPropagation()},placeholder:`Filter…`,"aria-label":`Filter options`,className:`mb-1 w-full rounded-md border bg-transparent px-2 py-1 text-sm outline-none`}),y.length===0?(0,K.jsx)(`div`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,children:i}):b.map(e=>(0,K.jsx)(oe,{checked:_.has(e.value),onCheckedChange:()=>S(e.value),onSelect:e=>e.preventDefault(),children:e.label},e.value)),x>0&&(0,K.jsxs)(`div`,{className:`px-2 py-1.5 text-xs text-muted-foreground`,children:[x,` more — keep typing to narrow`]})]})]}),t.length>0&&(0,K.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:t.map((e,t)=>{let n=v.get(e)??e;return(0,K.jsxs)(I,{variant:`secondary`,className:`gap-1`,children:[n,(0,K.jsx)(`button`,{type:`button`,"aria-label":`Remove ${n}`,onClick:()=>C(t),className:`ml-0.5 rounded-sm hover:text-destructive`,children:(0,K.jsx)(P,{className:`size-3`})})]},`${e}-${t}`)})})]})}async function le(e){let{data:t}=await o.post(`/Admin/Region/`,e);return t}function ue(){return l({mutationFn:le})}async function de({id:e,changes:t}){let{data:n}=await o.patch(`/Admin/Region/${e}`,t);return n}function fe(){return l({mutationFn:de})}async function pe(){let{data:e}=await o.get(`/Location/`);return e}var me=[`fabric-admin`,`locations`];function he(){return u({queryKey:me,queryFn:pe,retry:!1})}function J(e,t){return t?`${e} (${t})`:e}async function ge(){let e=[];for(let t=0;t<40;t++){let n=t*500,r=[`status=ne=DELETED`,`sort(name)`,`limit(${n},${n+500})`].join(`&`),{data:i}=await o.get(`/Admin/Organization/?${r}`),a=i;if(e.push(...a),a.length<500)return{organizations:e,truncated:!1}}return{organizations:e,truncated:!0}}var _e=[`fabric-admin`,`organizations`];function Y(){return u({queryKey:_e,queryFn:ge,retry:!1})}async function ve(){let{data:e}=await o.get(`/Admin/Region/`);return e}var X=[`fabric-admin`,`regions`];function Z(){return u({queryKey:X,queryFn:ve,retry:!1})}var ye=t({id:a().trim().min(1,`ID is required`).regex(/^[a-z0-9-]+$/,`Use lowercase letters, numbers, and hyphens only`),region:a().trim().min(1,`Region is required`),instanceCount:r({error:`Enter a whole number`}).int(`Must be a whole number`).min(1,`Must be at least 1`),purchasedBlockMultiplier:r({error:`Enter a whole number`}).int(`Must be a whole number`).min(1,`Must be at least 1`),latencyDescription:a().trim().min(1,`Latency description is required`),linodePreferredLocations:i(a()),gcpPreferredLocations:i(a()),forceLocations:n(),active:n(),organizationIds:i(a())}).superRefine((e,t)=>{e.forceLocations&&!e.linodePreferredLocations.length&&!e.gcpPreferredLocations.length&&t.addIssue({code:`custom`,path:[`forceLocations`],message:`Add at least one preferred location, or turn off Force locations`})}),be=100;function Q(e){return{id:e?.id??``,region:e?.region??``,instanceCount:e?.instanceCount??1,purchasedBlockMultiplier:e?.purchasedBlockMultiplier??1,latencyDescription:e?.latencyDescription??``,linodePreferredLocations:e?.linodePreferredLocations??[],gcpPreferredLocations:e?.gcpPreferredLocations??[],forceLocations:e?.forceLocations??!1,active:e?.active??!0,organizationIds:e?.organizationIds??[]}}function xe({open:e,onOpenChange:t,region:n}){let r=!!n,i=c(),{data:a=[]}=d({...he(),enabled:e}),{data:o}=d({...Y(),enabled:e}),l=o?.organizations??[],{data:u=[]}=d({...Z(),enabled:e}),{mutate:f,isPending:p}=ue(),{mutate:m,isPending:E}=fe(),D=p||E,O=(0,G.useMemo)(()=>a.filter(e=>e.cloudProvider===`linode`).map(e=>({value:e.location,label:`${e.locationName} (${e.location})`})),[a]),k=(0,G.useMemo)(()=>a.filter(e=>e.cloudProvider===`gcp`).map(e=>({value:e.location,label:`${e.locationName} (${e.location})`})),[a]),A=(0,G.useMemo)(()=>l.map(e=>({value:e.id,label:J(e.id,e.name)})),[l]),j=(0,G.useMemo)(()=>{let e=new Set;for(let t of a)for(let n of t.regions??[])e.add(n);return n?.region&&e.add(n.region),[...e].sort()},[a,n]),M=_({resolver:h(ye),defaultValues:Q(n)});(0,G.useEffect)(()=>{e&&M.reset(Q(n))},[e,n,M]);let N=e=>{let a=e=>e.trim().toLowerCase(),o=!n||a(n.latencyDescription)!==a(e.latencyDescription),s=u.filter(e=>e.id!==n?.id);if(o&&s.some(t=>a(t.latencyDescription)===a(e.latencyDescription))){M.setError(`latencyDescription`,{message:`A region with this latency description already exists`});return}let c=e.organizationIds.length>0?e.organizationIds:null,l=()=>{g.success(r?`Region updated`:`Region created`),i.invalidateQueries({queryKey:X}),t(!1)};if(n){let{id:t,...r}=e;m({id:n.id,changes:{...r,organizationIds:c}},{onSuccess:l})}else f({...e,organizationIds:c},{onSuccess:l})};return(0,K.jsx)(v,{open:e,onOpenChange:t,children:(0,K.jsxs)(x,{className:`max-w-2xl`,children:[(0,K.jsx)(w,{children:r?`Edit region`:`Create region`}),(0,K.jsx)(te,{children:r?`Update this region. Its ID is fixed once created.`:`Define a new deployment region. Leave organizations empty to make it public (all organizations).`}),(0,K.jsx)(U,{...M,children:(0,K.jsxs)(`form`,{className:`my-4 flex flex-col gap-4`,onSubmit:M.handleSubmit(N),children:[(0,K.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 items-start`,children:[(0,K.jsx)(R,{control:M.control,name:`id`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`Region ID`}),(0,K.jsx)(B,{children:(0,K.jsx)(V,{placeholder:`e.g. us-east-1`,...e,disabled:r})}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(R,{control:M.control,name:`region`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`Region`}),(0,K.jsx)(B,{children:(0,K.jsxs)(ee,{value:e.value,onValueChange:e.onChange,children:[(0,K.jsx)(C,{className:`w-full`,children:(0,K.jsx)(T,{placeholder:`Select a region`})}),(0,K.jsx)(S,{children:j.map(e=>(0,K.jsx)(b,{value:e,children:e},e))})]})}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(R,{control:M.control,name:`instanceCount`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`Instance count`}),(0,K.jsx)(B,{children:(0,K.jsx)(V,{type:`number`,min:1,step:1,name:e.name,ref:e.ref,onBlur:e.onBlur,value:Number.isFinite(e.value)?e.value:``,onChange:t=>e.onChange(t.target.valueAsNumber)})}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(R,{control:M.control,name:`purchasedBlockMultiplier`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1.5 pb-1`,children:[(0,K.jsx)(L,{className:`!pb-0`,children:`Purchased block multiplier`}),(0,K.jsxs)(ce,{children:[(0,K.jsx)(ae,{asChild:!0,children:(0,K.jsx)(`button`,{type:`button`,"aria-label":`What is the purchased block multiplier?`,className:`text-muted-foreground hover:text-foreground`,children:(0,K.jsx)(re,{className:`size-3.5`})})}),(0,K.jsx)(se,{className:`max-w-xs`,children:`How many purchased blocks a cluster in this region is billed for. One block covers a baseline cluster: a 2-node cluster is 1 block and a 4-node cluster is 2 blocks. Each block carries one license against the selected plan's limits; once they're all used up, this many are issued and billed again.`})]})]}),(0,K.jsx)(B,{children:(0,K.jsx)(V,{type:`number`,min:1,step:1,name:e.name,ref:e.ref,onBlur:e.onBlur,value:Number.isFinite(e.value)?e.value:``,onChange:t=>e.onChange(t.target.valueAsNumber)})}),(0,K.jsx)(z,{})]})})]}),(0,K.jsx)(R,{control:M.control,name:`latencyDescription`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`Latency description`}),(0,K.jsx)(B,{children:(0,K.jsx)(V,{placeholder:`e.g. 280ms, medium distribution`,...e})}),(0,K.jsx)(z,{})]})}),(0,K.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 items-start`,children:[(0,K.jsx)(R,{control:M.control,name:`linodePreferredLocations`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`Linode preferred locations`}),(0,K.jsx)(B,{children:(0,K.jsx)(q,{options:O,selected:e.value,onChange:e.onChange,placeholder:`Any Linode location`,emptyText:`No Linode locations`,ariaLabel:`Linode preferred locations`,allowRepeats:!0})}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(R,{control:M.control,name:`gcpPreferredLocations`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`GCP preferred locations`}),(0,K.jsx)(B,{children:(0,K.jsx)(q,{options:k,selected:e.value,onChange:e.onChange,placeholder:`Any GCP location`,emptyText:`No GCP locations`,ariaLabel:`GCP preferred locations`,allowRepeats:!0})}),(0,K.jsx)(z,{})]})})]}),(0,K.jsx)(R,{control:M.control,name:`forceLocations`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(B,{children:(0,K.jsx)(`input`,{type:`checkbox`,className:`size-4`,checked:e.value,onChange:t=>e.onChange(t.target.checked)})}),(0,K.jsx)(L,{className:`!pb-0`,children:`Force locations`})]}),(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Pin deployments to the preferred locations above instead of treating them as hints.`}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(R,{control:M.control,name:`active`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(B,{children:(0,K.jsx)(`input`,{type:`checkbox`,className:`size-4`,checked:e.value,onChange:t=>e.onChange(t.target.checked)})}),(0,K.jsx)(L,{className:`!pb-0`,children:`Active`})]}),(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Inactive regions stay available to existing deployments but aren't offered for new ones.`}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(R,{control:M.control,name:`organizationIds`,render:({field:e})=>(0,K.jsxs)(H,{children:[(0,K.jsx)(L,{className:`pb-1`,children:`Organizations (customer scope)`}),(0,K.jsx)(B,{children:(0,K.jsx)(q,{options:A,selected:e.value,onChange:e.onChange,placeholder:`Public — all organizations`,emptyText:`No organizations`,ariaLabel:`Organizations`,maxVisibleOptions:be})}),o?.truncated&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,children:`Too many organizations to list them all — some may be missing from this picker.`}),(0,K.jsx)(z,{})]})}),(0,K.jsx)(y,{children:(0,K.jsxs)(`div`,{className:`flex w-full justify-between`,children:[(0,K.jsx)(s,{variant:`destructiveOutline`,type:`button`,onClick:()=>t(!1),disabled:D,children:`Cancel`}),(0,K.jsx)(s,{variant:`submit`,disabled:D,children:D?`Saving…`:r?`Save changes`:`Create region`})]})})]})})]})})}function $({organizationIds:e,orgNameById:t}){return e==null||e.length===0?(0,K.jsx)(K.Fragment,{children:`Public`}):(0,K.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:e.map(e=>(0,K.jsx)(`span`,{className:`break-words`,children:J(e,t.get(e))},e))})}function Se(){let{data:e,isLoading:t,isError:n}=d(Z()),{data:r}=d(Y()),[i,a]=(0,G.useState)(!1),[o,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(``),f=m(`region:write`),p=(0,G.useMemo)(()=>new Map((r?.organizations??[]).map(e=>[e.id,e.name])),[r]),h=(0,G.useMemo)(()=>{let t=l.trim().toLowerCase();return!t||!e?e??[]:e.filter(e=>e.region.toLowerCase().includes(t)||e.id.toLowerCase().includes(t)||e.latencyDescription.toLowerCase().includes(t)||(e.organizationIds??[]).some(e=>e.toLowerCase().includes(t)||(p.get(e)??``).toLowerCase().includes(t)))},[e,l,p]),g=()=>{c(null),a(!0)},_=e=>{c(e),a(!0)};return(0,K.jsxs)(`div`,{className:`max-w-4xl`,children:[(0,K.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`h1`,{className:`text-2xl font-light`,children:`Regions`}),(0,K.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Deployment regions customers can provision into. A region scoped to organizations is only offered to those customers; otherwise it's available to everyone.`})]}),f&&(0,K.jsxs)(s,{variant:`submit`,onClick:g,className:`shrink-0`,children:[(0,K.jsx)(ie,{}),`Create region`]})]}),(0,K.jsx)(`div`,{className:`mt-6`,children:t?(0,K.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading regions…`}):n?(0,K.jsx)(`p`,{className:`text-sm text-destructive`,children:`Couldn't load regions.`}):!e||e.length===0?(0,K.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No regions yet. Create one to get started.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{value:l,onChange:e=>u(e.target.value),placeholder:`Filter by ID, region, description, or organization…`,"aria-label":`Filter regions`,className:`mb-4 max-w-md`}),h.length===0?(0,K.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No regions match “`,l,`”.`]}):(0,K.jsxs)(M,{children:[(0,K.jsx)(k,{children:(0,K.jsxs)(j,{children:[(0,K.jsx)(D,{children:`ID`}),(0,K.jsx)(D,{children:`Region`}),(0,K.jsx)(D,{className:`text-right pr-6`,children:`Instances`}),(0,K.jsx)(D,{children:`Description`}),(0,K.jsx)(D,{children:`Scope`}),(0,K.jsx)(D,{className:`w-0`})]})}),(0,K.jsx)(O,{children:h.map(e=>(0,K.jsxs)(j,{className:e.active===!1?`opacity-60`:void 0,children:[(0,K.jsx)(A,{className:`font-mono font-medium`,children:(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e.id,e.active===!1&&(0,K.jsx)(I,{variant:`secondary`,className:`text-[10px]`,children:`Inactive`})]})}),(0,K.jsx)(A,{children:e.region}),(0,K.jsx)(A,{className:`text-right pr-6`,children:e.instanceCount}),(0,K.jsx)(A,{className:`text-muted-foreground`,children:e.latencyDescription}),(0,K.jsx)(A,{children:(0,K.jsx)($,{organizationIds:e.organizationIds,orgNameById:p})}),(0,K.jsx)(A,{className:`text-right`,children:f&&(0,K.jsx)(s,{variant:`ghost`,size:`icon`,"aria-label":`Edit ${e.id}`,onClick:()=>_(e),children:(0,K.jsx)(E,{})})})]},e.id))})]})]})}),(0,K.jsx)(xe,{open:i,onOpenChange:a,region:o})]})}export{$ as RegionScope,Se as RegionsIndex};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/tsMode-CslzhcVk.js","assets/editor.api-eUd8PqEu.js","assets/vendor-datadog-XDrpA25D.js","assets/rolldown-runtime-B0Z9INg1.js","assets/editor-jjEx9u7D.css","assets/workers-BtibQGyk.js","assets/toggleHighContrast-CyNC3SCQ.js","assets/toggleHighContrast--ixms01u.css"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-B0Z9INg1.js";import{i as t}from"./vendor-datadog-XDrpA25D.js";import{m as n,n as r}from"./editor.api-eUd8PqEu.js";var i=`5.9.3`,a=e({JsxEmit:()=>s,ModuleKind:()=>o,ModuleResolutionKind:()=>u,NewLineKind:()=>c,ScriptTarget:()=>l,getJavaScriptWorker:()=>_,getTypeScriptWorker:()=>g,javascriptDefaults:()=>h,typescriptDefaults:()=>m,typescriptVersion:()=>f}),o=(e=>(e[e.None=0]=`None`,e[e.CommonJS=1]=`CommonJS`,e[e.AMD=2]=`AMD`,e[e.UMD=3]=`UMD`,e[e.System=4]=`System`,e[e.ES2015=5]=`ES2015`,e[e.ESNext=99]=`ESNext`,e))(o||{}),s=(e=>(e[e.None=0]=`None`,e[e.Preserve=1]=`Preserve`,e[e.React=2]=`React`,e[e.ReactNative=3]=`ReactNative`,e[e.ReactJSX=4]=`ReactJSX`,e[e.ReactJSXDev=5]=`ReactJSXDev`,e))(s||{}),c=(e=>(e[e.CarriageReturnLineFeed=0]=`CarriageReturnLineFeed`,e[e.LineFeed=1]=`LineFeed`,e))(c||{}),l=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(l||{}),u=(e=>(e[e.Classic=1]=`Classic`,e[e.NodeJs=2]=`NodeJs`,e))(u||{}),d=class{constructor(e,t,n,i,a){this._onDidChange=new r,this._onDidExtraLibsChange=new r,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(i),this.setModeConfiguration(a),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=t===void 0?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},f=i,p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},m=new d({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},p),h=new d({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},p),g=()=>v().then(e=>e.getTypeScriptWorker()),_=()=>v().then(e=>e.getJavaScriptWorker());function v(){return t(()=>import(`./tsMode-CslzhcVk.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]))}n.onLanguage(`typescript`,()=>v().then(e=>e.setupTypeScript(m))),n.onLanguage(`javascript`,()=>v().then(e=>e.setupJavaScript(h)));export{m as n,a as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jsonMode-BVS6P5Xk.js","assets/tokenization-CWuvR2gh.js","assets/editor.api-eUd8PqEu.js","assets/vendor-datadog-XDrpA25D.js","assets/rolldown-runtime-B0Z9INg1.js","assets/editor-jjEx9u7D.css","assets/workers-BtibQGyk.js","assets/toggleHighContrast-CyNC3SCQ.js","assets/toggleHighContrast--ixms01u.css","assets/lspLanguageFeatures-C7XtZA_w.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-B0Z9INg1.js";import{i as t}from"./vendor-datadog-XDrpA25D.js";import{m as n,n as r}from"./editor.api-eUd8PqEu.js";var i=e({getWorker:()=>o,jsonDefaults:()=>a}),a=new class{constructor(e,t,n){this._onDidChange=new r,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0}),o=()=>s().then(e=>e.getWorker());function s(){return t(()=>import(`./jsonMode-BVS6P5Xk.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))}n.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),n.onLanguage(`json`,()=>{s().then(e=>e.setupMode(a))});export{i as t};
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);export{u as a,d as i,o as n,c as r,s as t};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{n as t}from"./button-DfBmT4rc.js";import{a as n}from"./vendor-datadog-XDrpA25D.js";import{r}from"./vendor-react-BhazFIp8.js";import{A as i,D as a,E as o,F as s,G as c,I as l,J as u,K as d,L as f,M as p,N as m,O as h,P as g,Q as _,T as v,X as y,Y as b,Z as x,j as S,k as C,q as w,w as T}from"./vendor-ui-BLIveqaL.js";import{t as E}from"./createLucideIcon-BMkDbMrz.js";import{i as D,n as O,r as k,t as A}from"./x-D39AGKMb.js";import{n as j}from"./setLocalStorage-CD_L8p_D.js";import{t as M}from"./useLocalStorage-DetQlhBe.js";var N=E(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),P=E(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),F=E(`grip-horizontal`,[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]),ee=E(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),I=E(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),L=e(n(),1),R=360,z=280,B=16,V={width:820,height:680};function H({width:e,height:t},n,r){return{width:Math.round(Math.max(R,Math.min(e,n-32))),height:Math.round(Math.max(z,Math.min(t,r-32)))}}function U({width:e,height:t},n,r){return{x:Math.round((n-e)/2),y:Math.round((r-t)/2)}}function W({x:e,y:t},{width:n,height:r},i,a){let o=Math.max(B,i-n-B),s=Math.max(B,a-r-B);return{x:Math.min(Math.max(e,B),o),y:Math.min(Math.max(t,B),s)}}function G(){let[e,t]=M(j.ResizableModalSize,V),[n,r]=(0,L.useState)(()=>H(e,window.innerWidth,window.innerHeight)),[i,a]=(0,L.useState)(()=>U(n,window.innerWidth,window.innerHeight)),[o,s]=(0,L.useState)(!1),[c,l]=(0,L.useState)(!1),[u,d]=(0,L.useState)(!1),f=(0,L.useRef)(n);f.current=n;let p=(0,L.useRef)(i);p.current=i;let m=(0,L.useRef)(u);m.current=u;let h=(0,L.useRef)(null),g=(0,L.useRef)(e);g.current=e;let _=(0,L.useRef)(null),v=(0,L.useRef)(!1),y=(0,L.useRef)(null),b=(0,L.useCallback)(e=>{if(!e||e===y.current)return;y.current=e,d(!1),h.current=null;let t=window.innerWidth,n=window.innerHeight,i=H(g.current,t,n);r(i),a(U(i,t,n))},[]);return(0,L.useEffect)(()=>{let e=()=>{let e=window.innerWidth,t=window.innerHeight;if(m.current){let n=H({width:e,height:t},e,t);r(n),a(U(n,e,t));return}let n=H(g.current,e,t);r(n),a(W(p.current,n,e,t))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,L.useEffect)(()=>(v.current=!1,()=>{v.current=!0,_.current?.()}),[]),{size:n,position:i,isDragging:o,isResizing:c,isMaximized:u,contentRef:b,startDrag:(0,L.useCallback)(e=>{e.preventDefault(),_.current?.();let t=y.current,n=e.clientX,r=e.clientY,i={...p.current};s(!0),d(!1);let o=0,c=0,l=0,u=()=>{o=0,t&&(t.style.transform=`translate3d(${c}px, ${l}px, 0)`)},m=e=>{c=e.clientX-n,l=e.clientY-r,o||=requestAnimationFrame(u)},h=()=>{o&&cancelAnimationFrame(o),window.removeEventListener(`mousemove`,m),window.removeEventListener(`mouseup`,g),v.current||s(!1),_.current===h&&(_.current=null)},g=()=>{h();let e=W({x:i.x+c,y:i.y+l},f.current,window.innerWidth,window.innerHeight);t&&(t.style.left=`${e.x}px`,t.style.top=`${e.y}px`,t.style.transform=``),a(e)};window.addEventListener(`mousemove`,m),window.addEventListener(`mouseup`,g),_.current=h},[]),startResize:(0,L.useCallback)(e=>n=>{n.preventDefault(),n.stopPropagation(),_.current?.();let i=y.current,o=n.clientX,s=n.clientY,c={...f.current},u={...p.current};l(!0),d(!1);let m=0,h=c,g=u,b=()=>{m=0,i&&(i.style.width=`${h.width}px`,i.style.height=`${h.height}px`,i.style.left=`${g.x}px`,i.style.top=`${g.y}px`)},x=t=>{let n=window.innerWidth,r=window.innerHeight,i=t.clientX-o,a=t.clientY-s,l=t.altKey,d=l?2:1,f=c.width,p=c.height;e.includes(`e`)&&(f=c.width+i*d),e.includes(`w`)&&(f=c.width-i*d),e.includes(`s`)&&(p=c.height+a*d),e.includes(`n`)&&(p=c.height-a*d),h=H({width:f,height:p},n,r);let{x:_,y:v}=u;l?(_=Math.round(u.x+(c.width-h.width)/2),v=Math.round(u.y+(c.height-h.height)/2)):(e.includes(`w`)&&(_=u.x+c.width-h.width),e.includes(`n`)&&(v=u.y+c.height-h.height)),g={x:_,y:v},m||=requestAnimationFrame(b)},S=()=>{m&&cancelAnimationFrame(m),window.removeEventListener(`mousemove`,x),window.removeEventListener(`mouseup`,C),v.current||l(!1),_.current===S&&(_.current=null)},C=()=>{S();let e=window.innerWidth,n=window.innerHeight,i=H(h,e,n);r(i),a(W(g,i,e,n)),t(i)};window.addEventListener(`mousemove`,x),window.addEventListener(`mouseup`,C),_.current=S},[t]),toggleMaximize:(0,L.useCallback)(()=>{let e=window.innerWidth,t=window.innerHeight;if(m.current){let n=h.current;if(n){let i=H(n.size,e,t);r(i),a(W(n.position,i,e,t))}d(!1)}else{h.current={size:f.current,position:p.current};let n=H({width:e,height:t},e,t);r(n),a(U(n,e,t)),d(!0)}},[])}}var K=r();function q({...e}){return(0,K.jsx)(c,{"data-slot":`dialog`,...e})}function J({...e}){return(0,K.jsx)(_,{"data-slot":`dialog-trigger`,...e})}function Y({...e}){return(0,K.jsx)(y,{"data-slot":`dialog-portal`,...e})}function X({className:e,...n}){return(0,K.jsx)(b,{"data-slot":`dialog-overlay`,className:t(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-white/80 backdrop-blur-xs dark:bg-black-dark/90 dark:backdrop-blur-none`,e),...n})}function Z({className:e}){return(0,K.jsxs)(d,{className:t(`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-0 right-0 flex items-start justify-end rounded-bl-md p-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),children:[(0,K.jsx)(A,{className:`text-popover-foreground`}),(0,K.jsx)(`span`,{className:`sr-only`,children:`Close`})]})}var Q=[{dir:`n`,className:`-top-2 inset-x-5 h-4 cursor-ns-resize z-30`},{dir:`s`,className:`-bottom-2 inset-x-5 h-4 cursor-ns-resize z-30`},{dir:`e`,className:`-right-2 inset-y-5 w-4 cursor-ew-resize z-30`},{dir:`w`,className:`-left-2 inset-y-5 w-4 cursor-ew-resize z-30`},{dir:`nw`,className:`-top-2 -left-2 size-6 cursor-nwse-resize z-40`},{dir:`ne`,className:`-top-2 -right-2 size-6 cursor-nesw-resize z-40`},{dir:`sw`,className:`-bottom-2 -left-2 size-6 cursor-nesw-resize z-40`},{dir:`se`,className:`-bottom-2 -right-2 size-6 cursor-nwse-resize z-40`}];function te({className:e,children:n,...r}){let{size:i,position:a,isDragging:o,isResizing:s,isMaximized:c,contentRef:l,startDrag:u,startResize:f,toggleMaximize:p}=G(),m=`ring-offset-background focus:ring-ring text-popover-foreground flex size-8 items-center justify-center rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`;return(0,K.jsxs)(Y,{"data-slot":`dialog-portal`,children:[(0,K.jsx)(X,{className:t(`transition-opacity duration-200`,o&&`opacity-0`)}),(0,K.jsxs)(w,{ref:l,"data-slot":`dialog-content`,style:{left:a.x,top:a.y,width:i.width,height:i.height},className:t(`bg-popover data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed z-50 rounded-md border shadow-2xl transition-none`,o&&`will-change-transform`,e),...r,children:[(0,K.jsxs)(`div`,{className:t(`flex h-full w-full flex-col gap-4 overflow-hidden rounded-md p-6`,(o||s)&&`select-none`),children:[(0,K.jsx)(`div`,{onMouseDown:u,className:`absolute inset-x-0 top-0 z-10 flex h-12 cursor-move items-start justify-center`,"aria-hidden":!0,children:(0,K.jsx)(F,{className:`mt-1 size-4 text-muted-foreground/40`})}),n,(0,K.jsxs)(`div`,{className:`absolute top-6 right-4 z-20 flex h-[1.125rem] items-center gap-1`,children:[(0,K.jsx)(`button`,{type:`button`,onClick:p,"aria-label":c?`Restore modal size`:`Maximize modal`,className:m,children:c?(0,K.jsx)(I,{className:`size-4`}):(0,K.jsx)(ee,{className:`size-4`})}),(0,K.jsxs)(d,{"aria-label":`Close`,className:m,children:[(0,K.jsx)(A,{className:`size-4`}),(0,K.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}),Q.map(({dir:e,className:n})=>(0,K.jsx)(`div`,{"data-resize-handle":e,onMouseDown:f(e),className:t(`absolute`,n),"aria-hidden":!0},e))]})]})}function ne({className:e,children:n,resizable:r,...i}){return r?(0,K.jsx)(te,{className:e,...i,children:n}):(0,K.jsxs)(Y,{"data-slot":`dialog-portal`,children:[(0,K.jsx)(X,{}),(0,K.jsxs)(w,{"data-slot":`dialog-content`,className:t(`bg-popover data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] lg:max-w-2xl max-h-screen overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border p-6 shadow-2xl duration-200`,e),...i,children:[n,(0,K.jsx)(Z,{})]})]})}function re({className:e,...n}){return(0,K.jsx)(`div`,{"data-slot":`dialog-header`,className:t(`flex flex-col gap-2 text-center sm:text-left`,e),...n})}function ie({className:e,...n}){return(0,K.jsx)(`div`,{"data-slot":`dialog-footer`,className:t(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...n})}function ae({className:e,...n}){return(0,K.jsx)(x,{"data-slot":`dialog-title`,className:t(`text-lg leading-none text-popover-foreground font-semibold`,e),...n})}function oe({className:e,...n}){return(0,K.jsx)(u,{"data-slot":`dialog-description`,className:t(`text-muted-foreground text-sm`,e),...n})}function $({...e}){return(0,K.jsx)(T,{"data-slot":`select`,...e})}function se({...e}){return(0,K.jsx)(o,{"data-slot":`select-group`,...e})}function ce({...e}){return(0,K.jsx)(l,{"data-slot":`select-value`,...e})}function le({className:e,children:n,...r}){return(0,K.jsxs)(s,{"data-slot":`select-trigger`,className:t(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-white text-foreground dark:bg-grey-700 dark:text-white px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:truncate *:data-[slot=select-value]:block *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,K.jsx)(a,{asChild:!0,children:(0,K.jsx)(k,{className:`size-4 text-foreground dark:text-white`})})]})}function ue({className:e,children:n,position:r=`popper`,...i}){return(0,K.jsx)(p,{children:(0,K.jsxs)(v,{"data-slot":`select-content`,className:t(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md`,r===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:r,...i,children:[(0,K.jsx)(pe,{}),(0,K.jsx)(f,{className:t(`p-1`,r===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:n}),(0,K.jsx)(me,{})]})})}function de({className:e,...n}){return(0,K.jsx)(S,{"data-slot":`select-label`,className:t(`px-2 py-1.5 text-sm font-medium`,e),...n})}function fe({className:e,children:n,...r}){return(0,K.jsxs)(h,{"data-slot":`select-item`,className:t(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...r,children:[(0,K.jsx)(i,{children:n}),(0,K.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,K.jsx)(C,{children:(0,K.jsx)(D,{className:`size-4`})})})]})}function pe({className:e,...n}){return(0,K.jsx)(g,{"data-slot":`select-scroll-up-button`,className:t(`flex cursor-default items-center justify-center py-1`,e),...n,children:(0,K.jsx)(O,{className:`size-4`})})}function me({className:e,...n}){return(0,K.jsx)(m,{"data-slot":`select-scroll-down-button`,className:t(`flex cursor-default items-center justify-center py-1`,e),...n,children:(0,K.jsx)(k,{className:`size-4`})})}export{de as a,q as c,ie as d,re as f,N as g,P as h,fe as i,ne as l,J as m,ue as n,le as o,ae as p,se as r,ce as s,$ as t,oe as u};
@@ -1 +0,0 @@
1
- import{I as e}from"./vendor-tanstack-FsM5XZNE.js";import{t}from"./createLucideIcon-BMkDbMrz.js";import{r as n}from"./pollUnlessForbidden-DIDXGBc5.js";import{st as r}from"./index-BQB9R8Ug.js";var i=t(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),a=t(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]);function o(...e){let t=e.flat(1);return t.map((e,n)=>typeof e==`string`?s(e,n!==0,n!==t.length-1):e).join(`/`)}function s(e,t=!0,n=!0){let r=t&&e[0]===`/`,i=n&&e[e.length-1]===`/`;return r&&i?e.slice(1,-1):r?e.slice(1):i?e.slice(0,-1):e}var c=`https://github.com/HarperFast/create-harper/tree/main`;function l(e){return{...e,npmPackage:`@harperfast/template-${e.name}-studio`,githubUrl:`${c}/template-${e.name}`}}var u=[l({name:`vanilla-ts`,framework:`vanilla`,title:`Vanilla + TypeScript`,description:`The same Web + REST ORM from the first template, but with TypeScript sprinkled in.`,tags:[`Vanilla`,`TypeScript`,`GraphQL`],typescript:!0,ssr:!1}),l({name:`vanilla`,framework:`vanilla`,title:`Vanilla JS`,description:`Define your entities in schema.graphql, add your HTML/CSS/JS in web, and you're cooking!`,tags:[`Vanilla`,`REST`,`GraphQL`,`ORM`],typescript:!1,ssr:!1}),l({name:`react-ts`,framework:`react`,title:`React + TypeScript`,description:`The same Vite-powered React app, with end-to-end type safety from TypeScript.`,tags:[`React`,`TypeScript`,`Vite`,`SPA`],typescript:!0,ssr:!1}),l({name:`react`,framework:`react`,title:`React`,description:`A Vite-powered React single-page app, wired up to Harper's REST + GraphQL APIs out of the box.`,tags:[`React`,`Vite`,`SPA`,`GraphQL`],typescript:!1,ssr:!1}),l({name:`react-ts-ssr`,framework:`react`,title:`React + TypeScript + SSR`,description:`Server-rendered React with Vite and TypeScript for type-safe, SEO-friendly pages on Harper.`,tags:[`React`,`TypeScript`,`SSR`,`Vite`],typescript:!0,ssr:!0}),l({name:`react-ssr`,framework:`react`,title:`React + SSR`,description:`Server-rendered React with Vite for fast first paints, hydrating into a full SPA on Harper.`,tags:[`React`,`SSR`,`Vite`,`GraphQL`],typescript:!1,ssr:!0}),l({name:`vue-ts`,framework:`vue`,title:`Vue + TypeScript`,description:`The same Vite-powered Vue app, with end-to-end type safety from TypeScript.`,tags:[`Vue`,`TypeScript`,`Vite`,`SPA`],typescript:!0,ssr:!1}),l({name:`vue`,framework:`vue`,title:`Vue`,description:`A Vite-powered Vue single-page app, wired up to Harper's REST + GraphQL APIs out of the box.`,tags:[`Vue`,`Vite`,`SPA`,`GraphQL`],typescript:!1,ssr:!1}),l({name:`vue-ts-ssr`,framework:`vue`,title:`Vue + TypeScript + SSR`,description:`Server-rendered Vue with Vite and TypeScript for type-safe, SEO-friendly pages on Harper.`,tags:[`Vue`,`TypeScript`,`SSR`,`Vite`],typescript:!0,ssr:!0}),l({name:`vue-ssr`,framework:`vue`,title:`Vue + SSR`,description:`Server-rendered Vue with Vite for fast first paints, hydrating into a full SPA on Harper.`,tags:[`Vue`,`SSR`,`Vite`,`GraphQL`],typescript:!1,ssr:!0}),l({name:`nextjs-ts`,framework:`nextjs`,title:`Next.js + TypeScript`,description:`A type-safe Next.js app that reads and writes Harper tables directly from server actions.`,tags:[`Next.js`,`TypeScript`,`React`,`App Router`],typescript:!0,ssr:!0,studio:!1}),l({name:`nextjs`,framework:`nextjs`,title:`Next.js`,description:`A Next.js app wired to Harper's Resource API, reading and writing tables from server actions.`,tags:[`Next.js`,`React`,`App Router`],typescript:!1,ssr:!0,studio:!1})],d=u.map(e=>e.name);u.filter(e=>e.studio!==!1).map(e=>e.name);var f=[`vanilla`,`react`,`vue`];function p(e){let t=f.indexOf(e);return t===-1?1/0:t}var m=[...u].sort((e,t)=>p(e.framework)-p(t.framework)||Number(e.ssr)-Number(t.ssr)||Number(e.typescript)-Number(t.typescript)).map(e=>({id:e.name,name:e.title,description:e.description,tags:[...e.tags],npm:e.npmPackage,githubUrl:e.githubUrl}));async function h({instanceClient:e,project:t,template:n,entityType:r}){let{data:i}=await e.post(`/`,{operation:`add_component`,project:t,template:n,replicated:r===`cluster`},{timeout:3e5});return i}function g(){return e({mutationFn:h})}function _(e,t,n){for(let r of e)if(r[t]===n)return r}async function v({file:e,project:t,entityType:n,instanceClient:r}){let{data:i}=await r.post(`/`,{operation:`drop_component`,file:e||void 0,project:t,replicated:n===`cluster`});return i}var y=`__root__`,b=`importedApplications`,x=`newApplication`;function S(e){let t={},i=[],a=[],o=[];for(let n of e)r(n)?n.package?a.push(n.path):i.push(n.path):o.push(n.path),C(t,n);return t[y]={index:y,isFolder:!0,children:[x,b,...i,...o].filter(n),data:void 0,canMove:!1,canRename:!1},t[b]={index:b,isFolder:!0,children:a,data:{name:`Imported Applications`,path:b,package:b,project:``,entries:[]},canMove:!1,canRename:!1},t[x]={index:x,isFolder:!1,data:{name:`New Application`,path:x,project:``},canMove:!1,canRename:!1},{items:t,rootId:y}}function C(e,t){let n=t.path;if(r(t)){let i=t,a=[],o=[];for(let e of i.entries)r(e)?a.push(e.path):o.push(e.path);e[n]={index:n,isFolder:!0,children:[...a,...o],data:t,canMove:!1,canRename:!1};for(let t of i.entries)C(e,t)}else e[n]={index:n,isFolder:!1,data:t,canMove:!t.package,canRename:!t.package}}function w(e,t,n,r=[]){let i=[];for(let a of e){let e=n(a,r);i.push(e);let o=a,s=o[t];s&&(e[t]=w(s,t,n,[...r,o]))}return i}function T(e){let t=new Set;return{rootEntries:w(e||[],`entries`,(e,n)=>{let i=r(e)&&e.entries.find(e=>e.name.toLowerCase()===`readme.md`),a=[...n.map(e=>e.name),e.name].join(`/`);return t.add(a),{name:e.name,path:a,size:e.size,project:(n[0]||e)?.name,package:(n[0]||e)?.package,overviewEntry:i&&!r(i)&&{name:i.name,path:[...n.map(e=>e.name),e.name,i.name].join(`/`),project:(n[0]||e)?.name,package:(n[0]||e)?.package}||void 0}}),pathsRegistry:t}}async function E({file:e,payload:t,project:n,entityType:r,instanceClient:i,encoding:a}){let{data:o}=await i.post(`/`,{operation:`set_component_file`,file:e,payload:t,project:n,encoding:a,replicated:r===`cluster`},{timeout:3e5});return o}function D(){return e({mutationFn:E})}export{b as a,v as c,g as d,m as f,i as g,a as h,S as i,_ as l,o as m,D as n,x as o,d as p,T as r,y as s,E as t,h as u};
@@ -1 +0,0 @@
1
- function e(e){try{return e===`null`||e===`undefined`||e==null?null:JSON.parse(e)}catch(e){return console.error(`safeParse failed to parse value, returning null instead`,e),null}}function t(t,n){return e(localStorage.getItem(t))??n}var n=function(e){return e.AckedNotificationIds=`AckedNotificationIds`,e.ApplicationChatPosition=`ApplicationChatPosition`,e.ApplicationChatWidth=`ApplicationChatWidth`,e.ApplicationsSidebarWidth=`ApplicationsSidebarWidth`,e.ChatAlwaysApprovedTools=`ChatAlwaysApprovedTools`,e.DatabasesSidebarWidth=`DatabasesSidebarWidth`,e.LastUsedSignInMethod=`LastUsedSignInMethod`,e.LogsOrderReversed=`LogsOrderReversed`,e.RememberSignInMethod=`RememberSignInMethod`,e.ResizableModalSize=`ResizableModalSize`,e.SavedClusterState=`SavedClusterState`,e.Theme=`Theme`,e}({});function r(e,t){t==null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))}export{e as i,n,t as r,r as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cssMode-DipmMR_-.js","assets/editor.api-eUd8PqEu.js","assets/vendor-datadog-XDrpA25D.js","assets/rolldown-runtime-B0Z9INg1.js","assets/editor-jjEx9u7D.css","assets/workers-BtibQGyk.js","assets/toggleHighContrast-CyNC3SCQ.js","assets/toggleHighContrast--ixms01u.css","assets/lspLanguageFeatures-C7XtZA_w.js","assets/htmlMode-B2LqJw1z.js","assets/html-DmSSmgE8.js","assets/javascript-CGzSV8Sd.js","assets/typescript-Dtnury3t.js","assets/xml-D41zWqPl.js","assets/yaml-BFQ3mF1U.js"])))=>i.map(i=>d[i]);
2
- import{i as e}from"./vendor-datadog-XDrpA25D.js";import{J as t,t as n}from"./index-BQB9R8Ug.js";import{loader as r}from"./dist-cY0BPcz0.js";import{m as i,n as a}from"./editor.api-eUd8PqEu.js";import"./register-3F1Tje_F.js";import"./register-S_PdXsoi.js";import{t as o}from"./editor-BDfNodZS.js";var s=class{constructor(e,t,n){this._onDidChange=new a,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},c={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},l={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},u=new s(`css`,c,l),d=new s(`scss`,c,l),f=new s(`less`,c,l);function p(){return e(()=>import(`./cssMode-DipmMR_-.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))}i.onLanguage(`less`,()=>{p().then(e=>e.setupMode(f))}),i.onLanguage(`scss`,()=>{p().then(e=>e.setupMode(d))}),i.onLanguage(`css`,()=>{p().then(e=>e.setupMode(u))});var m=class{constructor(e,t,n){this._onDidChange=new a,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},h={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function g(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===_,documentFormattingEdits:e===_,documentRangeFormattingEdits:e===_}}var _=`html`,v=`handlebars`,y=`razor`;x(_,h,g(_)).defaults,x(v,h,g(v)).defaults,x(y,h,g(y)).defaults;function b(){return e(()=>import(`./htmlMode-B2LqJw1z.js`),__vite__mapDeps([9,1,2,3,4,5,6,7,8]))}function x(e,t=h,n=g(e)){let r=new m(e,t,n),a,o=i.onLanguage(e,async()=>{a=(await b()).setupMode(r)});return{defaults:r,dispose(){o.dispose(),a?.dispose(),a=void 0}}}var S={},C={},w=class e{static getOrCreate(t){return C[t]||(C[t]=new e(t)),C[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,S[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function T(e){let t=e.id;S[t]=e,i.register(e);let n=w.getOrCreate(t);i.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),i.onLanguageEncountered(t,async()=>{let e=await n.load();i.setLanguageConfiguration(t,e.conf)})}T({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>e(()=>import(`./css-DIMkf-bt.js`),[])}),T({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>e(()=>import(`./graphql-fmXr3nnJ.js`),[])}),T({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>e(()=>import(`./html-DmSSmgE8.js`),__vite__mapDeps([10,1,2,3,4]))}),T({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>e(()=>import(`./javascript-CGzSV8Sd.js`),__vite__mapDeps([11,12,1,2,3,4]))}),T({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>e(()=>import(`./markdown-Cimd5fb3.js`),[])}),T({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>e(()=>import(`./typescript-Dtnury3t.js`),__vite__mapDeps([12,1,2,3,4]))}),T({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)`,aliases:[`XML`,`xml`],mimetypes:[`text/xml`,`application/xml`,`application/xaml+xml`,`application/xml-dtd`],loader:()=>e(()=>import(`./xml-D41zWqPl.js`),__vite__mapDeps([13,1,2,3,4]))}),T({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>e(()=>import(`./yaml-BFQ3mF1U.js`),__vite__mapDeps([14,1,2,3,4]))});function E(e){return new Worker(`/assets/editor.worker-DwcOiOeP.js`,{type:`module`,name:e?.name})}function D(e){return new Worker(`/assets/css.worker-BD9HbRGW.js`,{type:`module`,name:e?.name})}function O(e){return new Worker(`/assets/html.worker-DsMmVtuG.js`,{type:`module`,name:e?.name})}function k(e){return new Worker(`/assets/json.worker-fO_hOLCP.js`,{type:`module`,name:e?.name})}function A(e){return new Worker(`/assets/ts.worker-DpaaFKhy.js`,{type:`module`,name:e?.name})}function j(e){return new Worker(`/assets/yaml.worker-Iyy2Pf1T.js`,{type:`module`,name:e?.name})}var M=globalThis;function N(e){switch(e){case`json`:return new k;case`css`:case`scss`:case`less`:return new D;case`html`:case`handlebars`:case`razor`:return new O;case`typescript`:case`javascript`:return new A;case`yaml`:return new j;default:return new E}}M.MonacoEnvironment={getWorker(e,t){let r=N(t);return r.addEventListener(`error`,()=>n()),r}},t(i),r.config({monaco:o});
@@ -1 +0,0 @@
1
- import{a as e,t}from"./rolldown-runtime-B0Z9INg1.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{l as r,n as i,r as a,t as o}from"./string-f6JzSHaO.js";var s=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),c=e(s(),1),l={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},u={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},d=n(function(e=`fatal`){let t=l.fatal;typeof e==`string`?e.toLowerCase()in l&&(t=l[e]):typeof e==`number`&&(t=e),u.trace=()=>{},u.debug=()=>{},u.info=()=>{},u.warn=()=>{},u.error=()=>{},u.fatal=()=>{},t<=l.fatal&&(u.fatal=console.error?console.error.bind(console,f(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,f(`FATAL`))),t<=l.error&&(u.error=console.error?console.error.bind(console,f(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,f(`ERROR`))),t<=l.warn&&(u.warn=console.warn?console.warn.bind(console,f(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,f(`WARN`))),t<=l.info&&(u.info=console.info?console.info.bind(console,f(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,f(`INFO`))),t<=l.debug&&(u.debug=console.debug?console.debug.bind(console,f(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,f(`DEBUG`))),t<=l.trace&&(u.trace=console.debug?console.debug.bind(console,f(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,f(`TRACE`)))},`setLogLevel`),f=n(e=>`%c${(0,c.default)().format(`ss.SSS`)} : ${e} : `,`format`),p={value:()=>{}};function m(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new h(n)}function h(e){this._=e}function g(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}h.prototype=m.prototype={constructor:h,on:function(e,t){var n=this._,r=g(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=_(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=v(n[i],e.name,t);else if(t==null)for(i in n)n[i]=v(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new h(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function _(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function v(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=p,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var y={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function b(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),y.hasOwnProperty(t)?{space:y[t],local:e}:e}function x(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function S(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function C(e){var t=b(e);return(t.local?S:x)(t)}function w(){}function T(e){return e==null?w:function(){return this.querySelector(e)}}function E(e){typeof e!=`function`&&(e=T(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new j(r,this._parents)}function D(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ee(){return[]}function te(e){return e==null?ee:function(){return this.querySelectorAll(e)}}function ne(e){return function(){return D(e.apply(this,arguments))}}function re(e){e=typeof e==`function`?ne(e):te(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new j(r,i)}function ie(e){return function(){return this.matches(e)}}function ae(e){return function(t){return t.matches(e)}}var oe=Array.prototype.find;function se(e){return function(){return oe.call(this.children,e)}}function ce(){return this.firstElementChild}function le(e){return this.select(e==null?ce:se(typeof e==`function`?e:ae(e)))}var ue=Array.prototype.filter;function de(){return Array.from(this.children)}function fe(e){return function(){return ue.call(this.children,e)}}function pe(e){return this.selectAll(e==null?de:fe(typeof e==`function`?e:ae(e)))}function me(e){typeof e!=`function`&&(e=ie(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new j(r,this._parents)}function he(e){return Array(e.length)}function ge(){return new j(this._enter||this._groups.map(he),this._parents)}function O(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}O.prototype={constructor:O,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function _e(e){return function(){return e}}function ve(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new O(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ye(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new O(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function be(e){return e.__data__}function xe(e,t){if(!arguments.length)return Array.from(this,be);var n=t?ye:ve,r=this._parents,i=this._groups;typeof e!=`function`&&(e=_e(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Se(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new j(o,r),o._enter=s,o._exit=c,o}function Se(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ce(){return new j(this._exit||this._groups.map(he),this._parents)}function we(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Te(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new j(s,this._parents)}function Ee(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function De(e){e||=Oe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new j(i,this._parents).order()}function Oe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ke(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ae(){return Array.from(this)}function je(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Me(){let e=0;for(let t of this)++e;return e}function Ne(){return!this.node()}function Pe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Fe(e){return function(){this.removeAttribute(e)}}function Ie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Le(e,t){return function(){this.setAttribute(e,t)}}function Re(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ze(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Be(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ve(e,t){var n=b(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ie:Fe:typeof t==`function`?n.local?Be:ze:n.local?Re:Le)(n,t))}function He(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ue(e){return function(){this.style.removeProperty(e)}}function We(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ge(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ke(e,t,n){return arguments.length>1?this.each((t==null?Ue:typeof t==`function`?Ge:We)(e,t,n??``)):k(this.node(),e)}function k(e,t){return e.style.getPropertyValue(t)||He(e).getComputedStyle(e,null).getPropertyValue(t)}function qe(e){return function(){delete this[e]}}function Je(e,t){return function(){this[e]=t}}function Ye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Xe(e,t){return arguments.length>1?this.each((t==null?qe:typeof t==`function`?Ye:Je)(e,t)):this.node()[e]}function Ze(e){return e.trim().split(/^|\s+/)}function A(e){return e.classList||new Qe(e)}function Qe(e){this._node=e,this._names=Ze(e.getAttribute(`class`)||``)}Qe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $e(e,t){for(var n=A(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function et(e,t){for(var n=A(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tt(e){return function(){$e(this,e)}}function nt(e){return function(){et(this,e)}}function rt(e,t){return function(){(t.apply(this,arguments)?$e:et)(this,e)}}function it(e,t){var n=Ze(e+``);if(arguments.length<2){for(var r=A(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rt:t?tt:nt)(n,t))}function at(){this.textContent=``}function ot(e){return function(){this.textContent=e}}function st(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ct(e){return arguments.length?this.each(e==null?at:(typeof e==`function`?st:ot)(e)):this.node().textContent}function lt(){this.innerHTML=``}function ut(e){return function(){this.innerHTML=e}}function dt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function ft(e){return arguments.length?this.each(e==null?lt:(typeof e==`function`?dt:ut)(e)):this.node().innerHTML}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function mt(){return this.each(pt)}function ht(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gt(){return this.each(ht)}function _t(e){var t=typeof e==`function`?e:C(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function vt(){return null}function yt(e,t){var n=typeof e==`function`?e:C(e),r=t==null?vt:typeof t==`function`?t:T(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function bt(){var e=this.parentNode;e&&e.removeChild(this)}function xt(){return this.each(bt)}function St(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ct(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wt(e){return this.select(e?Ct:St)}function Tt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Et(e){return function(t){e.call(this,t,this.__data__)}}function Dt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Ot(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function kt(e,t,n){return function(){var r=this.__on,i,a=Et(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function At(e,t,n){var r=Dt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?kt:Ot,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function jt(e,t,n){var r=He(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Mt(e,t){return function(){return jt(this,e,t)}}function Nt(e,t){return function(){return jt(this,e,t.apply(this,arguments))}}function Pt(e,t){return this.each((typeof t==`function`?Nt:Mt)(e,t))}function*Ft(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var It=[null];function j(e,t){this._groups=e,this._parents=t}function M(){return new j([[document.documentElement]],It)}function Lt(){return this}j.prototype=M.prototype={constructor:j,select:E,selectAll:re,selectChild:le,selectChildren:pe,filter:me,data:xe,enter:ge,exit:Ce,join:we,merge:Te,selection:Lt,order:Ee,sort:De,call:ke,nodes:Ae,node:je,size:Me,empty:Ne,each:Pe,attr:Ve,style:Ke,property:Xe,classed:it,text:ct,html:ft,raise:mt,lower:gt,append:_t,insert:yt,remove:xt,clone:wt,datum:Tt,on:At,dispatch:Pt,[Symbol.iterator]:Ft};function Rt(e){return typeof e==`string`?new j([[document.querySelector(e)]],[document.documentElement]):new j([[e]],It)}var zt=180/Math.PI,Bt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vt(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*zt,skewX:Math.atan(c)*zt,scaleX:o,scaleY:s}}var N;function Ht(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Bt:Vt(t.a,t.b,t.c,t.d,t.e,t.f)}function Ut(e){return e==null||(N||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),N.setAttribute(`transform`,e),!(e=N.transform.baseVal.consolidate()))?Bt:(e=e.matrix,Vt(e.a,e.b,e.c,e.d,e.e,e.f))}function Wt(e,t,n,r){function a(e){return e.length?e.pop()+` `:``}function o(e,r,a,o,s,c){if(e!==a||r!==o){var l=s.push(`translate(`,null,t,null,n);c.push({i:l-4,x:i(e,a)},{i:l-2,x:i(r,o)})}else(a||o)&&s.push(`translate(`+a+t+o+n)}function s(e,t,n,o){e===t?t&&n.push(a(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(a(n)+`rotate(`,null,r)-2,x:i(e,t)}))}function c(e,t,n,o){e===t?t&&n.push(a(n)+`skewX(`+t+r):o.push({i:n.push(a(n)+`skewX(`,null,r)-2,x:i(e,t)})}function l(e,t,n,r,o,s){if(e!==n||t!==r){var c=o.push(a(o)+`scale(`,null,`,`,null,`)`);s.push({i:c-4,x:i(e,n)},{i:c-2,x:i(t,r)})}else(n!==1||r!==1)&&o.push(a(o)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,i),s(t.rotate,n.rotate,r,i),c(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Gt=Wt(Ht,`px, `,`px)`,`deg)`),Kt=Wt(Ut,`, `,`)`,`)`),P=0,F=0,I=0,qt=1e3,L,R,z=0,B=0,V=0,H=typeof performance==`object`&&performance.now?performance:Date,Jt=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function U(){return B||=(Jt(Yt),H.now()+V)}function Yt(){B=0}function W(){this._call=this._time=this._next=null}W.prototype=Xt.prototype={constructor:W,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?U():+n)+(t==null?0:+t),!this._next&&R!==this&&(R?R._next=this:L=this,R=this),this._call=e,this._time=n,G()},stop:function(){this._call&&(this._call=null,this._time=1/0,G())}};function Xt(e,t,n){var r=new W;return r.restart(e,t,n),r}function Zt(){U(),++P;for(var e=L,t;e;)(t=B-e._time)>=0&&e._call.call(void 0,t),e=e._next;--P}function Qt(){B=(z=H.now())+V,P=F=0;try{Zt()}finally{P=0,en(),B=0}}function $t(){var e=H.now(),t=e-z;t>qt&&(V-=t,z=e)}function en(){for(var e,t=L,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:L=n);R=e,G(r)}function G(e){P||(F&&=clearTimeout(F),e-B>24?(e<1/0&&(F=setTimeout(Qt,e-H.now()-V)),I&&=clearInterval(I)):(I||=(z=H.now(),setInterval($t,qt)),P=1,Jt(Qt)))}function tn(e,t,n){var r=new W;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var nn=m(`start`,`end`,`cancel`,`interrupt`),rn=[];function K(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;an(e,n,{name:t,index:r,group:i,on:nn,tween:rn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function q(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function an(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Xt(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return tn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(tn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function on(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function sn(e){return this.each(function(){on(this,e)})}function cn(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function ln(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function un(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?cn:ln)(n,e,t))}function X(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function dn(e,t){var n;return(typeof t==`number`?i:t instanceof r?a:(n=r(t))?(t=n,a):o)(e,t)}function fn(e){return function(){this.removeAttribute(e)}}function pn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mn(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function hn(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function gn(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function _n(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function vn(e,t){var n=b(e),r=n===`transform`?Kt:dn;return this.attrTween(e,typeof t==`function`?(n.local?_n:gn)(n,r,X(this,`attr.`+e,t)):t==null?(n.local?pn:fn)(n):(n.local?hn:mn)(n,r,t))}function yn(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function bn(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function xn(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&bn(e,i)),n}return i._value=t,i}function Sn(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&yn(e,i)),n}return i._value=t,i}function Cn(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=b(e);return this.tween(n,(r.local?xn:Sn)(r,t))}function wn(e,t){return function(){q(this,e).delay=+t.apply(this,arguments)}}function Tn(e,t){return t=+t,function(){q(this,e).delay=t}}function En(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?wn:Tn)(t,e)):Y(this.node(),t).delay}function Dn(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function On(e,t){return t=+t,function(){J(this,e).duration=t}}function kn(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Dn:On)(t,e)):Y(this.node(),t).duration}function An(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function jn(e){var t=this._id;return arguments.length?this.each(An(t,e)):Y(this.node(),t).ease}function Mn(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Nn(e){if(typeof e!=`function`)throw Error();return this.each(Mn(this._id,e))}function Pn(e){typeof e!=`function`&&(e=ie(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function Fn(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function In(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Ln(e,t,n){var r,i,a=In(t)?q:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Rn(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each(Ln(n,e,t))}function zn(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Bn(){return this.on(`end.remove`,zn(this._id))}function Vn(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=T(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,K(l[f],t,n,f,l,Y(u,n)));return new Z(a,this._parents,t,n)}function Hn(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=te(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&K(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var Un=M.prototype.constructor;function Wn(){return new Un(this._groups,this._parents)}function Gn(e,t){var n,r,i;return function(){var a=k(this,e),o=(this.style.removeProperty(e),k(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Kn(e){return function(){this.style.removeProperty(e)}}function qn(e,t,n){var r,i=n+``,a;return function(){var o=k(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Jn(e,t,n){var r,i,a;return function(){var o=k(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),k(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Yn(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=Kn(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Xn(e,t,n){var r=(e+=``)==`transform`?Gt:dn;return t==null?this.styleTween(e,Gn(e,r)).on(`end.style.`+e,Kn(e)):typeof t==`function`?this.styleTween(e,Jn(e,r,X(this,`style.`+e,t))).each(Yn(this._id,e)):this.styleTween(e,qn(e,r,t),n).on(`end.style.`+e,null)}function Zn(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Qn(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Zn(e,a,n)),r}return a._value=t,a}function $n(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Qn(e,t,n??``))}function er(e){return function(){this.textContent=e}}function tr(e){return function(){var t=e(this);this.textContent=t??``}}function nr(e){return this.tween(`text`,typeof e==`function`?tr(X(this,`text`,e)):er(e==null?``:e+``))}function rr(e){return function(t){this.textContent=e.call(this,t)}}function ir(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&rr(r)),t}return r._value=e,r}function ar(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ir(e))}function or(){for(var e=this._name,t=this._id,n=lr(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);K(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function sr(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var cr=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function lr(){return++cr}var Q=M.prototype;Z.prototype={constructor:Z,select:Vn,selectAll:Hn,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Pn,merge:Fn,selection:Wn,transition:or,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Rn,attr:vn,attrTween:Cn,style:Xn,styleTween:$n,text:nr,textTween:ar,remove:Bn,tween:un,delay:En,duration:kn,ease:jn,easeVarying:Nn,end:sr,[Symbol.iterator]:Q[Symbol.iterator]};function ur(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var dr={time:null,delay:0,duration:250,ease:ur};function fr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function pr(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=lr(),(n=dr).time=U(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&K(c,e,t,l,o,n||fr(c,t));return new Z(r,this._parents,e,t)}M.prototype.interrupt=sn,M.prototype.transition=pr;var{abs:mr,max:hr,min:gr}=Math;[`w`,`e`].map(_r),[`n`,`s`].map(_r),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(_r);function _r(e){return{type:e}}function $(e,t,n){this.k=e,this.x=t,this.y=n}$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var vr=new $(1,0,0);yr.prototype=$.prototype;function yr(e){for(;!e.__zoom;)if(!(e=e.parentNode))return vr;return e.__zoom}export{s as i,u as n,d as r,Rt as t};