@harperfast/harper 5.2.13 → 5.2.14

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 (264) hide show
  1. package/components/Application.ts +7 -7
  2. package/components/componentLoader.ts +70 -33
  3. package/dist/components/Application.js +1 -7
  4. package/dist/components/Application.js.map +1 -1
  5. package/dist/components/componentLoader.d.ts +6 -0
  6. package/dist/components/componentLoader.js +60 -31
  7. package/dist/components/componentLoader.js.map +1 -1
  8. package/dist/resources/RocksTransactionLogStore.d.ts +4 -2
  9. package/dist/resources/RocksTransactionLogStore.js +12 -6
  10. package/dist/resources/RocksTransactionLogStore.js.map +1 -1
  11. package/dist/resources/Table.js +40 -4
  12. package/dist/resources/Table.js.map +1 -1
  13. package/dist/resources/replayLogs.js +25 -21
  14. package/dist/resources/replayLogs.js.map +1 -1
  15. package/dist/resources/transactionBroadcast.js +4 -6
  16. package/dist/resources/transactionBroadcast.js.map +1 -1
  17. package/dist/security/certificateVerification/index.js +40 -11
  18. package/dist/security/certificateVerification/index.js.map +1 -1
  19. package/dist/security/certificateVerification/trustedIssuers.d.ts +24 -0
  20. package/dist/security/certificateVerification/trustedIssuers.js +79 -0
  21. package/dist/security/certificateVerification/trustedIssuers.js.map +1 -0
  22. package/dist/security/certificateVerification/types.d.ts +1 -0
  23. package/dist/security/keys.js +4 -0
  24. package/dist/security/keys.js.map +1 -1
  25. package/dist/server/loadRootComponents.js +4 -2
  26. package/dist/server/loadRootComponents.js.map +1 -1
  27. package/dist/server/threads/manageThreads.d.ts +1 -0
  28. package/dist/server/threads/manageThreads.js +175 -24
  29. package/dist/server/threads/manageThreads.js.map +1 -1
  30. package/npm-shrinkwrap.json +2 -2
  31. package/package.json +1 -1
  32. package/resources/DESIGN.md +5 -0
  33. package/resources/RocksTransactionLogStore.ts +12 -6
  34. package/resources/Table.ts +39 -4
  35. package/resources/replayLogs.ts +25 -22
  36. package/resources/transactionBroadcast.ts +4 -4
  37. package/security/certificateVerification/index.ts +54 -13
  38. package/security/certificateVerification/trustedIssuers.ts +76 -0
  39. package/security/certificateVerification/types.ts +1 -0
  40. package/security/keys.ts +3 -0
  41. package/server/DESIGN.md +14 -13
  42. package/server/loadRootComponents.js +9 -2
  43. package/server/threads/manageThreads.js +176 -23
  44. package/studio/web/404.html +79 -0
  45. package/studio/web/assets/{Chat-4RrB5134.js → Chat-C97PMlIn.js} +274 -247
  46. package/studio/web/assets/FloatingChat-BUlsFGMV.js +23 -0
  47. package/studio/web/assets/_basePickBy-QJXUw_pr.js +1 -0
  48. package/studio/web/assets/_baseUniq-DR4vVjyC.js +1 -0
  49. package/studio/web/assets/{abnfDiagram-VCTEODGH-B0BebmD2.js → abnfDiagram-O67JEVCF-DpPZWMOf.js} +1 -1
  50. package/studio/web/assets/{alertDialog-CQyAJJhl.js → alertDialog-UrbiMgQt.js} +1 -1
  51. package/studio/web/assets/{apiToken-Bke3wvfZ.js → apiToken-CPhbc_zN.js} +1 -1
  52. package/studio/web/assets/applications-D3Z6BVDl.js +296 -0
  53. package/studio/web/assets/architecture-7GRP2DOG-11l4Ny1l.js +1 -0
  54. package/studio/web/assets/architectureDiagram-NJMV4G6O-OmgLraID.js +36 -0
  55. package/studio/web/assets/authStore-5jSS5pTW.js +3 -0
  56. package/studio/web/assets/{blockDiagram-I7D4REHJ-BqguiadH.js → blockDiagram-BEXU5L5S-Cv7CD3Ai.js} +15 -4
  57. package/studio/web/assets/{button-BIsUKRZq.js → button-MFP9n8Ck.js} +1 -1
  58. package/studio/web/assets/c4Diagram-YGBWAQC7-Ds1vKYnN.js +38 -0
  59. package/studio/web/assets/channel-BDtouPd6.js +1 -0
  60. package/studio/web/assets/chevron-up-CFe8x5Bp.js +1 -0
  61. package/studio/web/assets/chunk-3FUC2YCW-DpnBPH8B.js +2 -0
  62. package/studio/web/assets/{chunk-GVQU2GXP-sbwVIQ8i.js → chunk-5DYCD2WN-LLLCQSzg.js} +1 -1
  63. package/studio/web/assets/{chunk-PWAF6VOD-1z1THyS5.js → chunk-742MDFTN-BL8J_pIO.js} +1 -1
  64. package/studio/web/assets/chunk-7INBJB4K-C-hJHiiK.js +62 -0
  65. package/studio/web/assets/chunk-7M6MHVWA-C6ZqkFbA.js +213 -0
  66. package/studio/web/assets/chunk-7PRAP22T-CUXM8BG6.js +1 -0
  67. package/studio/web/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  68. package/studio/web/assets/{chunk-FOHPRMQF-DHwB1DNv.js → chunk-FOHPRMQF-DzxwRta7.js} +9 -9
  69. package/studio/web/assets/{chunk-SVP7TREG-jtdAHw0S.js → chunk-GTNCS2PH-DJ2BFvS1.js} +1 -1
  70. package/studio/web/assets/{chunk-F27PBJKO-BVA5EPhV.js → chunk-GWA4HPMP-C42bSqLL.js} +1 -1
  71. package/studio/web/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  72. package/studio/web/assets/chunk-MBY4JIJT-C-5jz6Lo.js +72 -0
  73. package/studio/web/assets/chunk-NETBCI7D-D-bzlN4r.js +1 -0
  74. package/studio/web/assets/chunk-O7XYJQB3-ep14zA23.js +128 -0
  75. package/studio/web/assets/chunk-UA2S7LBM-BMRWRHED.js +1 -0
  76. package/studio/web/assets/{chunk-POPQ4Y6H-ClWhhkwW.js → chunk-WEXAMYUT-DdLYVdX1.js} +1 -1
  77. package/studio/web/assets/{chunk-XXDRQBXY-BoGZu3HH.js → chunk-XXDRQBXY-CbPh2l8S.js} +1 -1
  78. package/studio/web/assets/{chunk-OSK3NFVY-ByciRftO.js → chunk-Z7XXMR3K-BmKEDjcP.js} +3 -3
  79. package/studio/web/assets/{chunk-75Z2AOVW-QGQD6th2.js → chunk-ZIGJFQKS-DLZgdNxA.js} +2 -2
  80. package/studio/web/assets/classDiagram-v2-NBCMYWYE-DOI5vgKT.js +217 -0
  81. package/studio/web/assets/cose-bilkent-JH36ORCC-BSOszL11.js +1 -0
  82. package/studio/web/assets/createLucideIcon-bziYxJli.js +1 -0
  83. package/studio/web/assets/{css.worker-BD9HbRGW.js → css.worker-l1psR_wG.js} +13 -10
  84. package/studio/web/assets/{cssMode-C1vRa7zh.js → cssMode-DyLZPMjo.js} +1 -1
  85. package/studio/web/assets/cynefin-OW5HDTMX-BSW-DB7S.js +1 -0
  86. package/studio/web/assets/cynefinDiagram-VND7K2PF-CbAHEwxt.js +62 -0
  87. package/studio/web/assets/cytoscape.esm-BZkf-uXn.js +321 -0
  88. package/studio/web/assets/dagre-6A5THRUB-Csxewgs4.js +4 -0
  89. package/studio/web/assets/diagram-22UHCM2B-a0rt8tY4.js +200 -0
  90. package/studio/web/assets/{diagram-VX7I27RA-DccVJet6.js → diagram-3UASUU5V-lEj2SVNh.js} +2 -2
  91. package/studio/web/assets/{diagram-VSXAHHWV-fhEdmkwM.js → diagram-ATOU4E4O-HcrAeB-q.js} +3 -3
  92. package/studio/web/assets/{diagram-S7CK7UJ4-aoCVTtcy.js → diagram-CDSNMT55-CYxiuyEx.js} +3 -3
  93. package/studio/web/assets/{diagram-Z3DM3KII-D-RyJJb7.js → diagram-MLGK6HIB-ChbCJTgJ.js} +1 -1
  94. package/studio/web/assets/diagram-MPIPVDR6-DaX9Y-N3.js +41 -0
  95. package/studio/web/assets/dialog-DTepachC.js +1 -0
  96. package/studio/web/assets/{dist-kYfyPZP9.js → dist-BRuBKNNy.js} +1 -1
  97. package/studio/web/assets/{dist-DP8UjMB_.js → dist-Cz2Y6-6G.js} +2 -2
  98. package/studio/web/assets/download-CtostjYn.js +1 -0
  99. package/studio/web/assets/{ebnfDiagram-PWID7BFC-DJGpIpz_.js → ebnfDiagram-ZINNZB2B-CwAsENB1.js} +1 -1
  100. package/studio/web/assets/{editor-3XRWEDWX.js → editor-CFQ5kbiT.js} +1 -1
  101. package/studio/web/assets/editor.worker-CkkvdXvO.js +33 -0
  102. package/studio/web/assets/elk-276RUBZZ-Hexg9E4D.js +27 -0
  103. package/studio/web/assets/{erDiagram-RLTQ6QDP-CIfNlgkC.js → erDiagram-OPXOYQCR-CeC-wwO1.js} +15 -15
  104. package/studio/web/assets/eventmodeling-NTZA5JFV-CFb03e0o.js +1 -0
  105. package/studio/web/assets/flowDiagram-KWPJA3E3-Cidi00_Y.js +1 -0
  106. package/studio/web/assets/{ganttDiagram-EL5Y4UJY-BxToTzzD.js → ganttDiagram-FUAMR5RP-C2_Hhl1-.js} +2 -2
  107. package/studio/web/assets/{getAnalytics-GHK8ORfM.js → getAnalytics-CjthMQqF.js} +1 -1
  108. package/studio/web/assets/gitGraph-4MIJSDKK-xIk5Vuew.js +1 -0
  109. package/studio/web/assets/{gitGraphDiagram-WWUBYQGX-Dwntd4-x.js → gitGraphDiagram-X574FWY7-CMxJ34up.js} +4 -4
  110. package/studio/web/assets/graphlib-C9Tl7QrK.js +1 -0
  111. package/studio/web/assets/{html-CTY5tdMr.js → html-DdMBJEGu.js} +1 -1
  112. package/studio/web/assets/{html.worker-DsMmVtuG.js → html.worker-DdwM4IrA.js} +12 -9
  113. package/studio/web/assets/{htmlMode-CG1vSD9t.js → htmlMode-DNtBx3OV.js} +1 -1
  114. package/studio/web/assets/index-CPoDzQTe.css +1 -0
  115. package/studio/web/assets/index-zZCxAIEb.js +824 -0
  116. package/studio/web/assets/index.lazy-CKbsHbSN.js +2 -0
  117. package/studio/web/assets/info-A6RAGUB7-o49TEbj-.js +1 -0
  118. package/studio/web/assets/infoDiagram-VRGFBTTK-Cjhh7yzZ.js +2 -0
  119. package/studio/web/assets/{ishikawaDiagram-5VMMS53U-D9Xh2r6X.js → ishikawaDiagram-OU5B5YK6-C63aXRmh.js} +2 -2
  120. package/studio/web/assets/{javascript-CJeJzGnI.js → javascript-Dy6KbeHT.js} +1 -1
  121. package/studio/web/assets/{journeyDiagram-3NMN7TZE-CokIi6ll.js → journeyDiagram-ZHPQQLJL-D_o0P5Mu.js} +3 -3
  122. package/studio/web/assets/json.worker-CSi2hF-a.js +65 -0
  123. package/studio/web/assets/{jsonMode-CYPBwM82.js → jsonMode-BiuDVrzl.js} +1 -1
  124. package/studio/web/assets/{kanban-definition-UXKFOSKX-CukSFJfX.js → kanban-definition-PNTS6WVX-CTI9SSxY.js} +7 -7
  125. package/studio/web/assets/{katex-CXMH3UgJ.js → katex-ZlcWpGUi.js} +2 -2
  126. package/studio/web/assets/languageServices-Dk8_6B25.js +1 -0
  127. package/studio/web/assets/linear-Ds1AeO4V.js +1 -0
  128. package/studio/web/assets/{lspLanguageFeatures-BC8_gxKG.js → lspLanguageFeatures-DwJKXzQa.js} +2 -2
  129. package/studio/web/assets/{mermaid-parser.core-BlEsOWNO.js → mermaid-parser.core-C2lcH_jP.js} +3 -3
  130. package/studio/web/assets/mermaid.core-BG5bjfIG.js +44 -0
  131. package/studio/web/assets/{mindmap-definition-YA3MSWOX-IprMc_0j.js → mindmap-definition-NLK3R4M7-BK7ho6JD.js} +24 -24
  132. package/studio/web/assets/{notifications-DFbArTfC.js → notifications-DJqAtWxD.js} +1 -1
  133. package/studio/web/assets/{notifications-BfKBpYcq.js → notifications-DsDtb41c.js} +1 -1
  134. package/studio/web/assets/packet-AYTQ26CC-BHPy6KBV.js +1 -0
  135. package/studio/web/assets/{pegDiagram-XKGWAZYB-BNuPDLZY.js → pegDiagram-GJSIUBJH-DzjwG3jO.js} +1 -1
  136. package/studio/web/assets/pie-WAS4IAKB-D0cP-DTU.js +1 -0
  137. package/studio/web/assets/{pieDiagram-E7YTZNPT-DqNb6Ht2.js → pieDiagram-5QR66LMP-C_hOP9Lv.js} +2 -2
  138. package/studio/web/assets/profile-zTGUN51x.js +1 -0
  139. package/studio/web/assets/{quadrantDiagram-AXDQQJYC-BGH9E2YR.js → quadrantDiagram-O4NWA36T-CZW8PbV1.js} +3 -3
  140. package/studio/web/assets/radar-RG4KPBEZ-C8fk0U81.js +1 -0
  141. package/studio/web/assets/railroad-74A4TZTK-B60FWm17.js +1 -0
  142. package/studio/web/assets/railroad-abnf-HS5TGJTU-CLMVZvH0.js +1 -0
  143. package/studio/web/assets/railroad-ebnf-LZEXJU2U--tlwFoVB.js +1 -0
  144. package/studio/web/assets/railroad-peg-WCYAUIDC-Dpuslblm.js +1 -0
  145. package/studio/web/assets/{railroadDiagram-O6MQD6OU-DGTPh2KZ.js → railroadDiagram-XR7U4H2S-DyyNmgbU.js} +1 -1
  146. package/studio/web/assets/regions-SOtABPB9.js +1 -0
  147. package/studio/web/assets/{register-1ZZuMsiA.js → register-7JezVakc.js} +39 -39
  148. package/studio/web/assets/{requirementDiagram-BXWQKSXE-BJnO6uLz.js → requirementDiagram-PLB6GJNP-C4H-mLKu.js} +11 -11
  149. package/studio/web/assets/{rolldown-runtime-hePW80VL.js → rolldown-runtime-Dd_uD5pT.js} +1 -1
  150. package/studio/web/assets/sankeyDiagram-IPEJSGJF-DHDyga4c.js +40 -0
  151. package/studio/web/assets/sequenceDiagram-PO4LG4MO-CdNcHXRI.js +169 -0
  152. package/studio/web/assets/setComponentFile-BavlhfY0.js +1 -0
  153. package/studio/web/assets/{setup-DWprJyJy.js → setup-04yVzr2I.js} +2 -2
  154. package/studio/web/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  155. package/studio/web/assets/{src-CMc7m_Ut.js → src-D0vMJQRr.js} +1 -1
  156. package/studio/web/assets/stateDiagram-v2-GCMORJYK-CpKuXq15.js +291 -0
  157. package/studio/web/assets/status-g_mNYE7j.js +61 -0
  158. package/studio/web/assets/swimlanes-2SLR337P-NRHa2D8I.js +1 -0
  159. package/studio/web/assets/swimlanesDiagram-TC7HE7FX-BBk4t4hO.js +8 -0
  160. package/studio/web/assets/{tabs-BrHu7gJi.js → tabs-CnQ_zenf.js} +1 -1
  161. package/studio/web/assets/{time-Cclkb7kQ.js → time-Ci1v4fvT.js} +1 -1
  162. package/studio/web/assets/timeline-definition-EJHVYXUP-D39Y-xpq.js +120 -0
  163. package/studio/web/assets/toggleHighContrast-i2FjCrzO.js +49 -0
  164. package/studio/web/assets/treeView-Q6P3EWNA-CRWR9OqD.js +1 -0
  165. package/studio/web/assets/treemap-WGGIJYW6-ZfXyJgLO.js +1 -0
  166. package/studio/web/assets/{ts.worker-DpaaFKhy.js → ts.worker-DDMUrpqh.js} +118 -115
  167. package/studio/web/assets/{tsMode-pjgytARx.js → tsMode-DGeWfx0W.js} +5 -5
  168. package/studio/web/assets/{typescript-Cdg0mqUh.js → typescript-62_1FUbs.js} +1 -1
  169. package/studio/web/assets/{useEntityRestURL-RZhaY8Rn.js → useEntityRestURL-DSVwev9J.js} +1 -1
  170. package/studio/web/assets/useLocalStorage-BYoZF60G.js +1 -0
  171. package/studio/web/assets/usecaseDiagram-POWQR4AR-jf-zIDZ_.js +328 -0
  172. package/studio/web/assets/vendor-core-BdkdbUek.js +63 -0
  173. package/studio/web/assets/vendor-datadog-fCQhBHGk.js +6 -0
  174. package/studio/web/assets/vendor-react-izWchTRL.js +9 -0
  175. package/studio/web/assets/vendor-tanstack-CQ1aRjVa.js +2 -0
  176. package/studio/web/assets/vendor-ui-aE1tHcW7.js +41 -0
  177. package/studio/web/assets/vennDiagram-UO4OBE2U-BKYAZUh_.js +34 -0
  178. package/studio/web/assets/wardley-WFR3VGLG-BO7f36ci.js +1 -0
  179. package/studio/web/assets/{wardleyDiagram-VM6X3IG4-CjrkKWUR.js → wardleyDiagram-VNRHLVJA-Djb0JDQc.js} +3 -3
  180. package/studio/web/assets/{workers-BgoXIqQe.js → workers-Cs52GyHv.js} +1 -1
  181. package/studio/web/assets/x-vYntCxm4.js +1 -0
  182. package/studio/web/assets/{xml-BwSeDMiP.js → xml-Co5ow_Ix.js} +1 -1
  183. package/studio/web/assets/{xychartDiagram-S5SC5T6Z-Biok4GYV.js → xychartDiagram-PMCCYNJV-BQh9ubvb.js} +3 -3
  184. package/studio/web/assets/{yaml-DotCUG5l.js → yaml-BcngpXye.js} +1 -1
  185. package/studio/web/assets/yaml.worker-DAK2o_H1.js +479 -0
  186. package/studio/web/auth/fabric-globe-dark.png +0 -0
  187. package/studio/web/auth/fabric-globe-light.png +0 -0
  188. package/studio/web/auth/fabric-platform-dark.png +0 -0
  189. package/studio/web/auth/fabric-platform-light.png +0 -0
  190. package/studio/web/index.html +15 -15
  191. package/studio/web/assets/FloatingChat-omlNMDcJ.js +0 -23
  192. package/studio/web/assets/applications-DvFDYJgK.js +0 -296
  193. package/studio/web/assets/architecture-7GRP2DOG-LB-MLAAb.js +0 -1
  194. package/studio/web/assets/architectureDiagram-5GKGNRK7-7SW3GD-K.js +0 -36
  195. package/studio/web/assets/authStore-C3Nfubqr.js +0 -3
  196. package/studio/web/assets/c4Diagram-7LVT6UL2-LBNf8t_X.js +0 -38
  197. package/studio/web/assets/channel-yictG-U-.js +0 -1
  198. package/studio/web/assets/chevron-up-DtKGqDn3.js +0 -1
  199. package/studio/web/assets/chunk-4HAMMTFA-DWtTut21.js +0 -62
  200. package/studio/web/assets/chunk-DU6HZSFF-Chq20Ba5.js +0 -127
  201. package/studio/web/assets/chunk-GMAD6QVW-BeS7S07A.js +0 -72
  202. package/studio/web/assets/chunk-IMKFNOWR-Bnh3tAVd.js +0 -231
  203. package/studio/web/assets/chunk-L3NEJ4N5-COfUyKII.js +0 -1
  204. package/studio/web/assets/chunk-P2QGCYS3-CP1VhG_c.js +0 -1
  205. package/studio/web/assets/chunk-SHT3W25Y-LpQkMsah.js +0 -168
  206. package/studio/web/assets/chunk-TICWLB2K-VOwzetX-.js +0 -206
  207. package/studio/web/assets/classDiagram-ZZMXUADV-VaEwSy_g.js +0 -1
  208. package/studio/web/assets/classDiagram-v2-VYDZK3BY-VaEwSy_g.js +0 -1
  209. package/studio/web/assets/cose-bilkent-JH36ORCC-Cuuf67Bh.js +0 -1
  210. package/studio/web/assets/createLucideIcon-CzW9508A.js +0 -1
  211. package/studio/web/assets/cynefin-OW5HDTMX-BbdbCvub.js +0 -1
  212. package/studio/web/assets/cynefinDiagram-5FMLGOSQ-TP-aIqbt.js +0 -62
  213. package/studio/web/assets/cytoscape.esm-C2x7inlt.js +0 -321
  214. package/studio/web/assets/dagre-GXQ25YYZ-DShnGpGo.js +0 -4
  215. package/studio/web/assets/dagre-PrKaheQc.js +0 -1
  216. package/studio/web/assets/diagram-UQ7AKVKN-DglXtQ6x.js +0 -41
  217. package/studio/web/assets/dialog-Cn2uWgD4.js +0 -1
  218. package/studio/web/assets/download-B5T5r7ss.js +0 -1
  219. package/studio/web/assets/editor.worker-DwcOiOeP.js +0 -30
  220. package/studio/web/assets/eventmodeling-NTZA5JFV-CLxnp2CR.js +0 -1
  221. package/studio/web/assets/flowDiagram-HODETNUW-BIbhmz9f.js +0 -1
  222. package/studio/web/assets/gitGraph-4MIJSDKK-D2s2w8lE.js +0 -1
  223. package/studio/web/assets/graphlib-DS17s2tU.js +0 -1
  224. package/studio/web/assets/index-7RMEgVG1.css +0 -1
  225. package/studio/web/assets/index-Dfpeofdu.js +0 -824
  226. package/studio/web/assets/index.lazy-B1VOIv-t.js +0 -2
  227. package/studio/web/assets/info-A6RAGUB7-DYjkvb0C.js +0 -1
  228. package/studio/web/assets/infoDiagram-27XIBGKW-Bnp1FJE5.js +0 -2
  229. package/studio/web/assets/json.worker-fO_hOLCP.js +0 -62
  230. package/studio/web/assets/languageServices-IKH4GUHl.js +0 -1
  231. package/studio/web/assets/linear-Cnt8506Q.js +0 -1
  232. package/studio/web/assets/mermaid.core-BlkGaMIH.js +0 -44
  233. package/studio/web/assets/packet-AYTQ26CC-Bi3V04Zi.js +0 -1
  234. package/studio/web/assets/pie-WAS4IAKB-_6DoDbng.js +0 -1
  235. package/studio/web/assets/profile-Q4-T6c-S.js +0 -1
  236. package/studio/web/assets/radar-RG4KPBEZ-DDdVczcL.js +0 -1
  237. package/studio/web/assets/railroad-74A4TZTK-BJUP4Jds.js +0 -1
  238. package/studio/web/assets/railroad-abnf-HS5TGJTU-Bm3L1L0h.js +0 -1
  239. package/studio/web/assets/railroad-ebnf-LZEXJU2U-CKzLGlkw.js +0 -1
  240. package/studio/web/assets/railroad-peg-WCYAUIDC-S8xLjslx.js +0 -1
  241. package/studio/web/assets/regions-CtkV0xje.js +0 -1
  242. package/studio/web/assets/sankeyDiagram-P5KCCOFB-0vSOdymH.js +0 -40
  243. package/studio/web/assets/sequenceDiagram-WJ2MYXX4-hETizDWE.js +0 -162
  244. package/studio/web/assets/setComponentFile-ZWLcWv5X.js +0 -1
  245. package/studio/web/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
  246. package/studio/web/assets/stateDiagram-D77RDMKH-CdYQ_KtC.js +0 -1
  247. package/studio/web/assets/stateDiagram-v2-MP3YSRHH-CdKuzQMT.js +0 -1
  248. package/studio/web/assets/status--aNm8isn.js +0 -61
  249. package/studio/web/assets/swimlanes-42K2YHIH-B8cHIpU4.js +0 -1
  250. package/studio/web/assets/swimlanesDiagram-VR7AAH4N-DmOSJwaH.js +0 -8
  251. package/studio/web/assets/timeline-definition-24CTP7MA-BJWYSXqF.js +0 -120
  252. package/studio/web/assets/toggleHighContrast-Cq_lt3XD.js +0 -49
  253. package/studio/web/assets/treeView-Q6P3EWNA-qxe_v6CQ.js +0 -1
  254. package/studio/web/assets/treemap-WGGIJYW6-dDo97XXF.js +0 -1
  255. package/studio/web/assets/useLocalStorage-BqMR3D8_.js +0 -1
  256. package/studio/web/assets/vendor-core-c2JRRJpV.js +0 -58
  257. package/studio/web/assets/vendor-datadog-CLUcJXOo.js +0 -6
  258. package/studio/web/assets/vendor-react-CJV_K1u4.js +0 -9
  259. package/studio/web/assets/vendor-tanstack-DxzraizX.js +0 -1
  260. package/studio/web/assets/vendor-ui-BUjK0h8a.js +0 -41
  261. package/studio/web/assets/vennDiagram-4TSXK5OY-A3i-lCdl.js +0 -34
  262. package/studio/web/assets/wardley-WFR3VGLG-B0ik-_6g.js +0 -1
  263. package/studio/web/assets/x-DIzaLEdK.js +0 -1
  264. package/studio/web/assets/yaml.worker-BDL8_iuk.js +0 -454
@@ -0,0 +1,23 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Chat-C97PMlIn.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/vendor-core-BdkdbUek.js","assets/button-MFP9n8Ck.js","assets/vendor-datadog-fCQhBHGk.js","assets/vendor-react-izWchTRL.js","assets/vendor-ui-aE1tHcW7.js","assets/vendor-tanstack-CQ1aRjVa.js","assets/setSessionStorage-B0bf71m4.js","assets/safeParse-DeaoCCWH.js","assets/createLucideIcon-bziYxJli.js","assets/chevron-up-CFe8x5Bp.js","assets/setComponentFile-BavlhfY0.js","assets/index-zZCxAIEb.js","assets/authStore-5jSS5pTW.js","assets/dialog-DTepachC.js","assets/x-vYntCxm4.js","assets/setLocalStorage-D_kflv4U.js","assets/useLocalStorage-BYoZF60G.js","assets/errorText-NpBmvk9I.js","assets/index-CPoDzQTe.css","assets/useEntityRestURL-DSVwev9J.js","assets/getAnalytics-CjthMQqF.js","assets/Chat-B-7kW9XZ.css"])))=>i.map(i=>d[i]);
2
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{a as t,i as n}from"./vendor-datadog-fCQhBHGk.js";import{r}from"./vendor-react-izWchTRL.js";import{t as i}from"./createLucideIcon-bziYxJli.js";import{n as a}from"./setLocalStorage-D_kflv4U.js";import{t as o}from"./useLocalStorage-BYoZF60G.js";import{Pt as s,Xn as c}from"./index-zZCxAIEb.js";var l={name:`bot`,size:24,node:[[`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`}]]};l.node;var u=i(l),d=e(t(),1),f=(0,d.createContext)({});function p(e){let t=(0,d.useRef)(null);return t.current===null&&(t.current=e()),t.current}var m=typeof window<`u`?d.useLayoutEffect:d.useEffect,h=(0,d.createContext)(null);function g(e,t){e.indexOf(t)===-1&&e.push(t)}function _(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var v=(e,t,n)=>n>t?t:n<e?e:n,y={},b=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),x=e=>typeof e==`object`&&!!e,S=e=>/^0[^.\s]+$/u.test(e);function C(e){let t;return()=>(t===void 0&&(t=e()),t)}var w=e=>e,T=(...e)=>e.reduce((e,t)=>n=>t(e(n))),E=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ee=class{constructor(){this.subscriptions=[]}add(e){return g(this.subscriptions,e),()=>this.remove(e)}remove(e){_(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}},D=e=>e*1e3,O=e=>e/1e3,te=(e,t)=>t?1e3/t*e:0,ne=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,re=1e-7,ie=12;function ae(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ne(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>re&&++s<ie);return o}function oe(e,t,n,r){if(e===t&&n===r)return w;let i=t=>ae(t,0,1,e,n);return e=>e===0||e===1?e:ne(i(e),t,r)}var se=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ce=e=>t=>1-e(1-t),le=oe(.33,1.53,.69,.99),ue=ce(le),de=se(ue),fe=e=>e>=1?1:(e*=2)<1?.5*ue(e):.5*(2-2**(-10*(e-1))),pe=e=>1-Math.sin(Math.acos(e)),me=ce(pe),he=se(pe),ge=oe(.42,0,1,1),_e=oe(0,0,.58,1),ve=oe(.42,0,.58,1),ye=e=>Array.isArray(e)&&typeof e[0]!=`number`,be=e=>Array.isArray(e)&&typeof e[0]==`number`,xe={linear:w,easeIn:ge,easeInOut:ve,easeOut:_e,circIn:pe,circInOut:he,circOut:me,backIn:ue,backInOut:de,backOut:le,anticipate:fe},Se=e=>typeof e==`string`,Ce=e=>{if(be(e)){e.length;let[t,n,r,i]=e;return oe(t,n,r,i)}return Se(e)?(xe[e],`${e}`,xe[e]):e},we=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Te(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(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 Ee=40;function De(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=we.reduce((e,t)=>(e[t]=Te(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=y.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ee),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),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:we.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<we.length;t++)o[we[t]].cancel(e)},state:i,steps:o}}var{schedule:k,cancel:A,state:j,steps:Oe}=De(typeof requestAnimationFrame<`u`?requestAnimationFrame:w,!0),ke;function Ae(){ke=void 0}var M={now:()=>(ke===void 0&&M.set(j.isProcessing||y.useManualTiming?j.timestamp:performance.now()),ke),set:e=>{ke=e,queueMicrotask(Ae)}},je=e=>Math.round(e*1e5)/1e5,Me=e=>t=>typeof t==`string`&&t.startsWith(e),Ne=Me(`--`),Pe=Me(`var(--`),Fe=e=>Pe(e)?Ie.test(e.split(`/*`)[0].trim()):!1,Ie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Le(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Re={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ze={...Re,transform:e=>v(0,1,e)},Be={...Re,default:1},Ve=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function He(e){return e==null}var Ue=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,We=(e,t)=>n=>!!(typeof n==`string`&&Ue.test(n)&&n.startsWith(e)||t&&!He(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ge=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ve);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ke=e=>v(0,255,e),qe={...Re,transform:e=>Math.round(Ke(e))},N={test:We(`rgb`,`red`),parse:Ge(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+qe.transform(e)+`, `+qe.transform(t)+`, `+qe.transform(n)+`, `+je(ze.transform(r))+`)`};function Je(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 Ye={test:We(`#`),parse:Je,transform:N.transform},Xe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),P=Xe(`deg`),F=Xe(`%`),I=Xe(`px`),Ze=Xe(`vh`),Qe=Xe(`vw`),$e={...F,parse:e=>F.parse(e)/100,transform:e=>F.transform(e*100)},et={test:We(`hsl`,`hue`),parse:Ge(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+F.transform(je(t))+`, `+F.transform(je(n))+`, `+je(ze.transform(r))+`)`},L={test:e=>N.test(e)||Ye.test(e)||et.test(e),parse:e=>N.test(e)?N.parse(e):et.test(e)?et.parse(e):Ye.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?N.transform(e):et.transform(e),getAnimatableNone:e=>{let t=L.parse(e);return t.alpha=0,L.transform(t)}},tt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,nt=new RegExp(Ve.source),rt=new RegExp(tt.source,`i`);function it(e){return isNaN(e)&&typeof e==`string`&&(nt.test(e)||rt.test(e))}var at=`number`,ot=`color`,st=`var`,ct=`var(`,lt="${}",ut=/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 dt(e){let t=e.toString();return nt.test(t)||rt.test(t)}function ft(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ut,e=>(L.test(e)?(r.color.push(a),i.push(ot),n.push(L.parse(e))):e.startsWith(ct)?(r.var.push(a),i.push(st),n.push(e)):(r.number.push(a),i.push(at),n.push(parseFloat(e))),++a,lt)).split(lt),indexes:r,types:i}}function pt(e){return ft(e).values}function mt({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===at?je(r[a]):e===ot?L.transform(r[a]):r[a]}return i}}function ht(e){return mt(ft(e))}var gt=e=>typeof e==`number`?0:L.test(e)?L.getAnimatableNone(e):e,_t=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:gt(e);function vt(e){let t=ft(e);return mt(t)(t.values.map((e,n)=>_t(e,t.split[n])))}var R={test:it,parse:pt,createTransformer:ht,getAnimatableNone:vt};function yt(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 bt({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=yt(s,r,e+1/3),a=yt(s,r,e),o=yt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function xt(e,t){return n=>n>0?t:e}var z=(e,t,n)=>e+(t-e)*n,St=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ct=[Ye,N,et],wt=e=>Ct.find(t=>t.test(e));function Tt(e){let t=wt(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===et&&(n=bt(n)),n}var Et=(e,t)=>{let n=Tt(e),r=Tt(t);if(!n||!r)return xt(e,t);let i={...n};return e=>(i.red=St(n.red,r.red,e),i.green=St(n.green,r.green,e),i.blue=St(n.blue,r.blue,e),i.alpha=z(n.alpha,r.alpha,e),N.transform(i))},Dt=new Set([`none`,`hidden`]);function Ot(e,t){return Dt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kt(e,t){return n=>z(e,t,n)}function At(e){return typeof e==`number`?kt:typeof e==`string`?Fe(e)?xt:L.test(e)?Et:Pt:Array.isArray(e)?jt:typeof e==`object`?L.test(e)?Et:Mt:xt}function jt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>At(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Mt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=At(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Nt(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 Pt=(e,t)=>{let n=R.createTransformer(t),r=ft(e),i=ft(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?Dt.has(e)&&!i.values.length||Dt.has(t)&&!r.values.length?Ot(e,t):T(jt(Nt(r,i),i.values),n):(`${e}${t}`,xt(e,t))},Ft=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function It(e,t){let n=Ft.exec(e);if(!n)return;let r=Ft.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>je(z(a,o,e))+i}function Lt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return z(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=It(e,t);if(n)return n}return At(e)(e,t)}var Rt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>A(t),now:()=>j.isProcessing?j.timestamp:M.now()}},zt=(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)})`},Bt=2e4;function Vt(e,t=50,n=Bt,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Ht(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Vt(r),Bt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:O(i)}}var B={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 Ut(e,t){return e*Math.sqrt(1-t*t)}var Wt=12;function Gt(e,t,n){let r=n;for(let n=1;n<Wt;n++)r-=e(r)/t(r);return r}var Kt=.001;function qt({duration:e=B.duration,bounce:t=B.bounce,velocity:n=B.velocity,mass:r=B.mass}){let i,a;B.maxDuration;let o=1-t;o=v(B.minDamping,B.maxDamping,o),e=v(B.minDuration,B.maxDuration,O(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Ut(t,o),c=Math.exp(-i);return Kt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=Ut(t*t,o);return(-i(t)+Kt>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=Gt(i,a,s);if(e=D(e),isNaN(c))return{stiffness:B.stiffness,damping:B.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Jt=[`duration`,`bounce`],Yt=[`stiffness`,`damping`,`mass`];function Xt(e,t){return t.some(t=>e[t]!==void 0)}function Zt(e){let t={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...e};if(!Xt(e,Yt)&&Xt(e,Jt)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*v(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:B.mass,stiffness:i,damping:a}}else{let n=qt({...e,velocity:0});t={...t,...n,mass:B.mass},t.isResolvedFromDuration=!0}}return t}function Qt(e=B.visualDuration,t=B.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,velocity:u,isResolvedFromDuration:d}=Zt({...n,velocity:-O(n.velocity||0)}),f=s/(2*Math.sqrt(o*c)),p=O(Math.sqrt(o/c)),m=f*p,h={target:i,delta:i-r,velocity:u||0,restSpeed:0,restDelta:0},g=()=>{let e=Math.abs(h.delta)<5;h.restSpeed=n.restSpeed||(e?B.restSpeed.granular:B.restSpeed.default),h.restDelta=n.restDelta||(e?B.restDelta.granular:B.restDelta.default)};g();let _,v,y;if(f<1){let e=Ut(p,f),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};y=()=>{t.A=(h.velocity+m*h.delta)/e,t.sinC=m*t.A+h.delta*e,t.cosC=m*h.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-m*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};_=e=>(n(e),h.target-t.env*(t.A*t.sin+h.delta*t.cos)),v=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(f===1){_=e=>h.target-Math.exp(-p*e)*(h.delta+(h.velocity+p*h.delta)*e);let e={C:0};y=()=>{e.C=h.velocity+p*h.delta},v=t=>Math.exp(-p*t)*(p*e.C*t-h.velocity)}else{let e=p*Math.sqrt(f*f-1);_=t=>{let n=Math.exp(-m*t),r=Math.min(e*t,300);return h.target-n*((h.velocity+m*h.delta)*Math.sinh(r)+e*h.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};y=()=>{t.P=(h.velocity+m*h.delta)/e,t.sinh=m*t.P-h.delta*e,t.cosh=m*h.delta-t.P*e},v=n=>{let r=Math.exp(-m*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}y();let b=!Xt(n,Yt)&&Xt(n,Jt),x=d&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{h.target=e[e.length-1],h.delta=h.target-e[0],h.velocity=b?0:-O(t),n.restSpeed&&n.restDelta||g(),S.calculatedDuration=x,a.done=!1,y()},velocity:e=>D(v(e)),next:e=>{let t=_(e);if(d)a.done=e>=l;else{let n=D(v(e));a.done=Math.abs(n)<=h.restSpeed&&Math.abs(h.target-t)<=h.restDelta}return a.value=a.done?h.target:t,a},toString:()=>{let e=Math.min(Vt(S),Bt),t=zt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Qt.applyToOptions=e=>{let t=Ht(e,100,Qt);return e.ease=t.ease,e.duration=D(t.duration),e.type=`keyframes`,e};function $t({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=>e<s||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=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Qt({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function en(e,t,n){let r=[],i=n||y.mix||Lt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=T(Array.isArray(t)?t[n]||w:t,a)),r.push(a)}return r}function tn(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=en(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=E(e[r],e[r+1],n);return s[r](i)};return n?t=>l(v(e[0],e[a-1],t)):l}function nn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=E(0,t,r);e.push(z(n,1,i))}}function rn(e){let t=[0];return nn(t,e.length-1),t}function an(e,t){return e.map(e=>e*t)}function on(e,t){return e.map(()=>t||ve).splice(0,e.length-1)}function sn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ye(r)?r.map(Ce):Ce(r),a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(y.mix||Lt)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?v(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=tn(an(n&&n.length===t.length?n:rn(t),e),t,{ease:Array.isArray(i)?i:on(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var cn=5;function ln(e,t,n){let r=Math.max(t-cn,0);return te(n-e(r),t-r)}function un(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):ln(t=>e.next(t).value,t,e.next(t).value)}var dn=e=>e!==null;function fn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(dn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var pn={decay:$t,inertia:$t,tween:sn,keyframes:sn,spring:Qt};function mn(e){typeof e.type==`string`&&(e.type=pn[e.type])}function hn(e,t){return{kind:e,animation:t,timestamp:M.now(),frameTimestamp:j.timestamp,frameIsProcessing:j.isProcessing}}function gn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...hn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function _n(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...hn(`layout-animation-start`,e),node:t})}catch{}}var vn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},yn=e=>e/100,bn=class extends vn{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!==M.now()&&this.tick(M.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),gn(this,this.options)}initAnimation(){let{options:e}=this;mn(e);let{type:t=sn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||sn;s!==sn&&typeof o[0]!=`number`&&(this.mixKeyframes=T(yn,Lt(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Vt(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:p,onUpdate:m,finalKeyframe:h}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,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=v(0,1,n)*o}let x;_?(this.delayState.value=l[0],x=this.delayState):x=b.next(y),i&&!_&&(x.value=i(x.value));let{done:S}=x;!_&&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&&p!==$t&&(x.value=fn(l,this.options,h,this.speed)),m&&m(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return O(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(this.currentTime)}set time(e){e=D(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(){return un(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(M.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=O(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Rt,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(M.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)}},xn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Sn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ve)||[];if(!r)return e;let i=n.replace(r,``),a=+!!xn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Cn=/\b([a-z-]*)\(.*?\)/gu,wn={...R,getAnimatableNone:e=>{let t=e.match(Cn);return t?t.map(Sn).join(` `):e}},Tn={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},En={...Re,transform:Math.round},Dn={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,rotate:P,pathRotation:P,rotateX:P,rotateY:P,rotateZ:P,scale:Be,scaleX:Be,scaleY:Be,scaleZ:Be,skew:P,skewX:P,skewY:P,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:ze,originX:$e,originY:$e,originZ:I,zIndex:En,fillOpacity:ze,strokeOpacity:ze,numOctaves:En},On={...Dn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:wn,WebkitFilter:wn,mask:Tn,WebkitMask:Tn},kn=e=>On[e],An=new Set([wn,Tn]);function jn(e,t){let n=kn(e);return An.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Mn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Nn=e=>e*180/Math.PI,Pn=e=>In(Nn(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:Pn,rotateZ:Pn,skewX:e=>Nn(Math.atan(e[1])),skewY:e=>Nn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},In=e=>(e%=360,e<0&&(e+=360),e),Ln=Pn,Rn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),zn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rn,scaleY:zn,scale:e=>(Rn(e)+zn(e))/2,rotateX:e=>In(Nn(Math.atan2(e[6],e[5]))),rotateY:e=>In(Nn(Math.atan2(-e[2],e[0]))),rotateZ:Ln,rotate:Ln,skewX:e=>Nn(Math.atan(e[4])),skewY:e=>Nn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vn(e){return+!!e.includes(`scale`)}function Hn(e,t){if(!e||e===`none`)return Vn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Bn,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(Wn);return typeof a==`function`?a(o):o[a]}var Un=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Hn(n,t)};function Wn(e){return parseFloat(e.trim())}var Gn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Kn=new Set([...Gn,`pathRotation`]),qn=e=>e===Re||e===I,Jn=new Set([`x`,`y`,`z`]),Yn=Gn.filter(e=>!Jn.has(e));function Xn(e){let t=[];return Yn.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Zn=new Set([`bottom`,`right`]);function Qn(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var $n={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Qn(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Qn(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Hn(e,`x`),y:({transform:e})=>Hn(e,`y`)};$n.translateX=$n.x,$n.translateY=$n.y;var V=new Set,er=!1,tr=!1,nr=!1;function rr(){if(tr){let e=[],t=new Set,n=new Set;V.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Zn.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Xn(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.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)})}tr=!1,er=!1,V.forEach(e=>e.complete(nr)),V.clear()}function ir(){V.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tr=!0)})}function ar(){nr=!0,ir(),rr(),nr=!1}function or(e,t,n){if(typeof e==`string`){if(b(e)||S(e))return parseFloat(e);if(!R.test(e)&&R.test(n))return jn(t,n)}return e??void 0}var sr=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?(V.add(this),er||(er=!0,k.read(ir),k.resolveKeyframes(rr))):(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=or(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Mn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),V.delete(this)}cancel(){this.state===`scheduled`&&(V.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},cr=e=>e.startsWith(`--`);function lr(e,t,n){cr(t)?e.style.setProperty(t,n):e.style[t]=n}var ur={};function dr(e,t){let n=C(e);return()=>ur[t]??n()}var fr=dr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),pr=dr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function gr(e,t){if(e)return typeof e==`function`?pr()?zt(e,t):`ease-out`:be(e)?mr(e):Array.isArray(e)?e.map(e=>gr(e,t)||hr.easeOut):hr[e]}function _r(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=gr(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 vr(e){return typeof e==`function`&&`applyToOptions`in e}function yr({type:e,...t}){return vr(e)&&pr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var br=class extends vn{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=yr(e);this.animation=_r(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),lr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},gn(this,e,c)}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 O(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=D(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&&fr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),w):r(this)}},xr={anticipate:fe,backInOut:de,circInOut:he};function Sr(e){return e in xr}function Cr(e){typeof e.ease==`string`&&Sr(e.ease)&&(e.ease=xr[e.ease])}var wr=10,Tr=class extends br{constructor(e){Cr(e),mn(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 bn({...a,autoplay:!1}),s=Math.max(wr,M.now()-this.startTime),c=v(0,wr,s-wr),l=o.sample(s).value,{name:u}=this.options;i&&u&&lr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Er=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function Dr(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 Or(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=Er(i,t),s=Er(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Dr(e)||(n===`spring`||vr(n))&&r}function kr(e){e.duration=0,e.type=`keyframes`}var Ar=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),jr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Mr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&jr.test(e[t]))return!0;return!1}var Nr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Pr=C(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Fr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Ar.has(n)||Nr.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Pr()&&(Ar.has(n)||Nr.has(n)&&Mr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ir=40,Lr=class extends vn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=M.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||sr;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),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=M.now();let u=!0;Or(e,i,a,o)||(u=!1,(y.instantAnimations||!s)&&l?.(fn(e,n,t)),e[0]=e[e.length-1],kr(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ir?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&Fr(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new Tr(n)}catch{m=new bn(n)}}else m=new bn(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ar()),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 Rr(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 zr=30,Br=e=>!isNaN(parseFloat(e)),Vr={current:void 0},Hr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=M.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),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=M.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Br(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new ee)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new ee,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){k.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;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.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Vr.current&&Vr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=M.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,zr);return te(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ur(e,t){return new Hr(e,t)}function Wr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Gr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Wr(n,e)}var Kr={type:`spring`,stiffness:500,damping:25,restSpeed:10},qr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jr={type:`keyframes`,duration:.8},Yr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Xr=(e,{keyframes:t})=>t.length>2?Jr:Kn.has(e)?e.startsWith(`scale`)?qr(t[1]):Kr:Yr,Zr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Qr(e){for(let t in e)if(!Zr.has(t))return!0;return!1}var $r=(e,t,n,r={},i,a)=>o=>{let s=Gr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=D(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};Qr(s)||Object.assign(u,Xr(e,u)),u.duration&&=D(u.duration),u.repeatDelay&&=D(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(kr(u),u.delay===0&&(d=!0)),(y.instantAnimations||y.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,kr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fn(u.keyframes,s);if(e!==void 0){k.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new bn(u):new Lr(u)},ei=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ti(e){let t=ei.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ni(e,t,n=1){`${e}`;let[r,i]=ti(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return b(e)?parseFloat(e):e}return Fe(i)?ni(i,t,n+1):i}function ri(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ii(e,t,n,r){if(typeof t==`function`){let[i,a]=ri(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]=ri(r);t=t(n===void 0?e.custom:n,i,a)}return t}function H(e,t,n){let r=e.getProps();return ii(r,t,n===void 0?r.custom:n,e)}var ai=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Gn]),oi=e=>Array.isArray(e);function si(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ur(n))}function ci(e){return oi(e)?e[e.length-1]||0:e}function li(e,t){let{transitionEnd:n={},transition:r={},...i}=H(e,t)||{};i={...i,...n};for(let t in i)si(e,t,ci(i[t]))}var U=e=>!!(e&&e.getVelocity);function ui(e){return!!(U(e)&&e.add)}function di(e,t){let n=e.getValue(`willChange`);if(ui(n))return n.add(t);if(!n&&y.WillChange){let n=new y.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function fi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var pi=`data-`+fi(`framerAppearId`);function mi(e){return e.props[pi]}var hi=typeof window<`u`;function gi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _i(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Wr(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&&gi(f,t))continue;let o={delay:n,...Gr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let p=!1;if(hi&&window.MotionHandoffAnimation){let n=mi(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,p=!0)}}di(e,t);let m=l??e.shouldReduceMotion;r.start($r(t,r,i,m&&ai.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>k.update(()=>{o&&li(e,o)});d.length?Promise.all(d).then(t):t()}return d}function vi(e,t,n={}){let r=H(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(_i(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return yi(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 yi(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(vi(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Rr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function bi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>vi(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=vi(e,t,n);else{let i=typeof t==`function`?H(e,t,n.custom):t;r=Promise.all(_i(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var xi={test:e=>e===`auto`,parse:e=>e},Si=e=>t=>t.test(e),Ci=[Re,I,F,P,Qe,Ze,xi],wi=e=>Ci.find(Si(e));function Ti(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||S(e)}var Ei=new Set([`auto`,`none`,`0`]);function Di(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ei.has(t)&&dt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=jn(n,i))}var Oi=class extends sr{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(),Fe(r))){let i=ni(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ai.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=wi(r),o=wi(i);if(Le(r)!==Le(i)&&$n[n]){this.needsMeasurement=!0;return}if(a!==o){if(qn(a)&&qn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else $n[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ti(e[t]))&&n.push(t);n.length&&Di(e,n,t)}measure(){let{element:e,name:t}=this;return $n[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},ki=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Ai(e){return x(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ji(e){return x(e)&&`ownerSVGElement`in e}var Mi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ni(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 Pi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Fi=Gn.length;function Ii(e,t,n){let r=``,i=!0;for(let a=0;a<Fi;a++){let o=Gn[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,Dn[o]);if(!c){i=!1;let t=Pi[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Mi(a,Dn.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Li(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(Kn.has(e)){o=!0;continue}if(Ne(e)){i[e]=n;continue}{let t=Mi(n,Dn[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ii(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Ri={offset:`stroke-dashoffset`,array:`stroke-dasharray`},zi={offset:`strokeDashoffset`,array:`strokeDasharray`};function Bi(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ri:zi;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Vi=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Hi(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Li(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 Vi)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&&Bi(d,i,a,o,!1)}function Ui({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Wi({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Gi(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 Ki(e){return e===void 0||e===1}function qi({scale:e,scaleX:t,scaleY:n}){return!Ki(e)||!Ki(t)||!Ki(n)}function W(e){return qi(e)||Ji(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ji(e){return Yi(e.x)||Yi(e.y)}function Yi(e){return e&&e!==`0%`}function Xi(e,t,n){return n+t*(e-n)}function Zi(e,t,n,r,i){return i!==void 0&&(e=Xi(e,i,r)),Xi(e,n,r)+t}function Qi(e,t=0,n=1,r,i){e.min=Zi(e.min,t,n,r,i),e.max=Zi(e.max,t,n,r,i)}function $i(e,{x:t,y:n}){Qi(e.x,t.translate,t.scale,t.originPoint),Qi(e.y,n.translate,n.scale,n.originPoint)}var ea=.999999999999,ta=1.0000000000001;function na(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&&(G(e.x,-a.scroll.offset.x),G(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$i(e,o)),r&&W(a.latestValues)&&aa(e,a.latestValues,a.layout?.layoutBox))}t.x<ta&&t.x>ea&&(t.x=1),t.y<ta&&t.y>ea&&(t.y=1)}function G(e,t){e.min+=t,e.max+=t}function ra(e,t,n,r,i=.5){Qi(e,t,n,z(e.min,e.max,i),r)}function ia(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function aa(e,t,n){let r=n??e;ra(e.x,ia(t.x,r.x),t.scaleX,t.scale,t.originX),ra(e.y,ia(t.y,r.y),t.scaleY,t.scale,t.originY)}function oa(e,t){return Ui(Gi(e.getBoundingClientRect(),t))}function sa(e,t,n){let r=oa(e,n),{scroll:i}=t;return i&&(G(r.x,i.offset.x),G(r.y,i.offset.y)),r}var{schedule:ca,cancel:la}=De(queueMicrotask,!1),K={x:!1,y:!1};function ua(){return K.x||K.y}function da(e){return e===`x`||e===`y`?K[e]?null:(K[e]=!0,()=>{K[e]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function fa(e,t){let n=Ni(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function pa(e){return!(e.pointerType===`touch`||ua())}function ma(e,t,n={}){let[r,i,a]=fa(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(!pa(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 ha=(e,t)=>t?e===t||ha(e,t.parentElement):!1,ga=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,_a=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function va(e){return _a.has(e.tagName)||e.isContentEditable===!0}var ya=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ba(e){return ya.has(e.tagName)||e.isContentEditable===!0}var xa=new WeakSet;function Sa(e){return t=>{t.key===`Enter`&&e(t)}}function Ca(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var wa=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Sa(()=>{if(xa.has(n))return;Ca(n,`down`);let e=Sa(()=>{Ca(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ca(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ta(e){return ga(e)&&!ua()}var Ea=new WeakSet;function Da(e,t,n={}){let[r,i,a]=fa(e,n),o=e=>{let r=e.currentTarget;if(!Ta(e)||Ea.has(e))return;xa.add(r),n.stopPropagation&&Ea.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),xa.has(r)&&xa.delete(r),Ta(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ha(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),Ai(e)&&(e.addEventListener(`focus`,e=>wa(e,i)),!va(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var Oa=new WeakMap,ka,Aa=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ji(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ja=Aa(`inline`,`width`,`offsetWidth`),Ma=Aa(`block`,`height`,`offsetHeight`);function Na({target:e,borderBoxSize:t}){Oa.get(e)?.forEach(n=>{n(e,{get width(){return ja(e,t)},get height(){return Ma(e,t)}})})}function Pa(e){e.forEach(Na)}function Fa(){typeof ResizeObserver<`u`&&(ka=new ResizeObserver(Pa))}function Ia(e,t){ka||Fa();let n=Ni(e);return n.forEach(e=>{let n=Oa.get(e);n||(n=new Set,Oa.set(e,n)),n.add(t),ka?.observe(e)}),()=>{n.forEach(e=>{let n=Oa.get(e);n?.delete(t),n?.size||ka?.unobserve(e)})}}var La=new Set,Ra;function za(){Ra=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};La.forEach(t=>t(e))},window.addEventListener(`resize`,Ra)}function Ba(e){return La.add(e),Ra||za(),()=>{La.delete(e),!La.size&&typeof Ra==`function`&&(window.removeEventListener(`resize`,Ra),Ra=void 0)}}function Va(e,t){return typeof e==`function`?Ba(e):Ia(e,t)}var Ha={value:null,addProjectionMetrics:null};function Ua(e){return ji(e)&&e.tagName===`svg`}var Wa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ga=()=>({x:Wa(),y:Wa()}),Ka=()=>({min:0,max:0}),q=()=>({x:Ka(),y:Ka()}),qa=new WeakMap;function Ja(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ya(e){return typeof e==`string`||Array.isArray(e)}var Xa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Za=[`initial`,...Xa];function Qa(e){if(Ja(e.animate))return!0;for(let t=0;t<Za.length;t++)if(Ya(e[Za[t]]))return!0;return!1}function $a(e){return!!(Qa(e)||e.variants)}function eo(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,Ur(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,Ur(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var to={current:null},no={current:!1},ro=typeof window<`u`;function io(){if(no.current=!0,ro){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>to.current=e.matches;e.addEventListener(`change`,t),t()}else to.current=!1}}var ao=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],oo={};function so(e){oo=e}function co(){return oo}var lo=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=sr,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=M.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,k.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=Qa(t),this.isVariantNode=$a(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&&U(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,qa.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:(no.current||io(),this.shouldReduceMotion=to.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(),A(this.notifyUpdate),A(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&&Ar.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new br({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:D(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Kn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&k.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 oo){let t=oo[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):q()}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<ao.length;t++){let n=ao[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=eo(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=Ur(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`&&(b(n)||S(n))?n=parseFloat(n):typeof n!=`number`&&!R.test(n)&&R.test(t)&&(n=jn(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(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=ii(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&&!U(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 ee),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ca.render(this.render)}},uo=class extends lo{constructor(){super(...arguments),this.KeyframeResolver=Oi}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;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},J=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function fo(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 po(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var mo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(I.test(e))e=parseFloat(e);else return e}return`${po(e,t.target.x)}% ${po(e,t.target.y)}%`}},ho={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=R.parse(e);if(i.length>5)return r;let a=R.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=z(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},go={borderRadius:{...mo,applyTo:[...ki]},borderTopLeftRadius:mo,borderTopRightRadius:mo,borderBottomLeftRadius:mo,borderBottomRightRadius:mo,boxShadow:ho};function _o(e,{layout:t,layoutId:n}){return Kn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!go[e]||e===`opacity`)}function vo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||_o(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function yo(e){return window.getComputedStyle(e)}var bo=class extends uo{constructor(){super(...arguments),this.type=`html`,this.renderInstance=fo}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Kn.has(t))return this.projection?.isProjecting?Vn(t):Un(e,t);{let n=yo(e),r=(Ne(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return oa(e,t)}build(e,t,n){Li(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return vo(e,t,n)}},xo=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`]),So=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Co(e,t,n,r){fo(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(xo.has(n)?n:fi(n),t.attrs[n])}function wo(e,t,n){let r=vo(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=Gn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var To=class extends uo{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Kn.has(t)){let e=kn(t);return e&&e.default||0}if(Vi.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=xo.has(t)?t:fi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return wo(e,t,n)}build(e,t,n){Hi(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Co(e,t,n,r)}mount(e){this.isSVGTag=So(e.tagName),super.mount(e)}},Eo=Za.length;function Do(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Do(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Eo;n++){let r=Za[n],i=e.props[r];(Ya(i)||i===!1)&&(t[r]=i)}return t}function Oo(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 ko=[...Xa].reverse(),Ao=Xa.length;function jo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>bi(e,t,n)))}function Mo(e){let t=jo(e),n=Po(),r=!0,i=!1,a=t=>(n,r)=>{let i=H(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=Do(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ao;t++){let p=ko[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ya(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||Ja(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=No(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,T={...w,...C},E=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 T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=oi(t)&&oi(n)?!Oo(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=H(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Rr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=H(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=Po(),i=!0}}}function No(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Oo(t,e):!1}function Y(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Po(){return{animate:Y(!0),whileInView:Y(),whileHover:Y(),whileTap:Y(),whileDrag:Y(),whileFocus:Y(),exit:Y()}}function Fo(e,t){e.min=t.min,e.max=t.max}function X(e,t){Fo(e.x,t.x),Fo(e.y,t.y)}function Io(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Lo=.9999,Ro=1.0001,zo=-.01,Bo=.01;function Z(e){return e.max-e.min}function Vo(e,t,n){return Math.abs(e-t)<=n}function Ho(e,t,n,r=.5){e.origin=r,e.originPoint=z(t.min,t.max,e.origin),e.scale=Z(n)/Z(t),e.translate=z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Lo&&e.scale<=Ro||isNaN(e.scale))&&(e.scale=1),(e.translate>=zo&&e.translate<=Bo||isNaN(e.translate))&&(e.translate=0)}function Uo(e,t,n,r){Ho(e.x,t.x,n.x,r?r.originX:void 0),Ho(e.y,t.y,n.y,r?r.originY:void 0)}function Wo(e,t,n,r=0){e.min=(r?z(n.min,n.max,r):n.min)+t.min,e.max=e.min+Z(t)}function Go(e,t,n,r){Wo(e.x,t.x,n.x,r?.x),Wo(e.y,t.y,n.y,r?.y)}function Ko(e,t,n,r=0){let i=r?z(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Z(t)}function qo(e,t,n,r){Ko(e.x,t.x,n.x,r?.x),Ko(e.y,t.y,n.y,r?.y)}function Jo(e,t,n,r,i){return e-=t,e=Xi(e,1/n,r),i!==void 0&&(e=Xi(e,1/i,r)),e}function Yo(e,t=0,n=1,r=.5,i,a=e,o=e){if(F.test(t)&&(t=parseFloat(t),t=z(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=z(a.min,a.max,r);e===a&&(s-=t),e.min=Jo(e.min,t,n,s,i),e.max=Jo(e.max,t,n,s,i)}function Xo(e,t,[n,r,i],a,o){Yo(e,t[n],t[r],t[i],t.scale,a,o)}var Zo=[`x`,`scaleX`,`originX`],Qo=[`y`,`scaleY`,`originY`];function $o(e,t,n,r){Xo(e.x,t,Zo,n?n.x:void 0,r?r.x:void 0),Xo(e.y,t,Qo,n?n.y:void 0,r?r.y:void 0)}function es(e){return e.translate===0&&e.scale===1}function ts(e){return es(e.x)&&es(e.y)}function ns(e,t){return e.min===t.min&&e.max===t.max}function rs(e,t){return ns(e.x,t.x)&&ns(e.y,t.y)}function is(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function as(e,t){return is(e.x,t.x)&&is(e.y,t.y)}function os(e){return Z(e.x)/Z(e.y)}function ss(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Q(e){return[e(`x`),e(`y`)]}function cs(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 ls=ki.length,us=e=>typeof e==`string`?parseFloat(e):e,ds=e=>typeof e==`number`||I.test(e);function fs(e,t,n,r,i,a){i?(e.opacity=z(0,n.opacity??1,ms(r)),e.opacityExit=z(t.opacity??1,0,hs(r))):a&&(e.opacity=z(t.opacity??1,n.opacity??1,r));for(let i=0;i<ls;i++){let a=ki[i],o=ps(t,a),s=ps(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||ds(o)===ds(s)?(e[a]=Math.max(z(us(o),us(s),r),0),(F.test(s)||F.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=z(t.rotate||0,n.rotate||0,r))}function ps(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ms=gs(0,.5,me),hs=gs(.5,.95,w);function gs(e,t,n){return r=>r<e?0:r>t?1:n(E(e,t,r))}function _s(e,t,n){let r=U(e)?e:Ur(e);return r.start($r(``,r,t,n)),r.animation}function vs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var ys=(e,t)=>e.depth-t.depth,bs=class{constructor(){this.children=[],this.isDirty=!1}add(e){g(this.children,e),this.isDirty=!0}remove(e){_(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ys),this.isDirty=!1,this.children.forEach(e)}};function xs(e,t){let n=M.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(A(r),e(a-t))};return k.setup(r,!0),()=>A(r)}function Ss(e){return U(e)?e.get():e}var Cs=class{constructor(){this.members=[]}add(e){g(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&&(_(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(_(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)}},ws={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ts={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Es=[``,`X`,`Y`,`Z`],Ds=1e3,Os=0;function ks(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function As(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=mi(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,k,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&As(r)}function js({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Os++,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,Ha.value&&(Ts.nodes=Ts.calculatedTargetDeltas=Ts.calculatedProjections=0),this.nodes.forEach(Ps),this.nodes.forEach(Us),this.nodes.forEach(Ws),this.nodes.forEach(Fs),Ha.addProjectionMetrics&&Ha.addProjectionMetrics(Ts)},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 bs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ee),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=ji(t)&&!Ua(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;k.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=xs(i,250),ws.hasAnimatedSinceResize&&(ws.hasAnimatedSinceResize=!1,this.nodes.forEach(Hs)))})}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()||Zs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!as(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={...Gr(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||Hs(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(),A(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(Gs),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&&As(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(Rs),this.nodes.forEach(Ls);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bs),this.nodes.forEach(Vs),this.nodes.forEach(Ms),this.nodes.forEach(Ns)):this.nodes.forEach(zs),this.clearAllSnapshots();let e=M.now();j.delta=v(0,1e3/60,e-j.timestamp),j.timestamp=e,j.isProcessing=!0,Oe.update.process(j),Oe.preRender.process(j),Oe.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ca.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Is),this.sharedNodes.forEach(Ks)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.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||=q(),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&&!ts(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||W(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)),tc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rc))){let{scroll:e}=this.root;e&&(G(t.x,e.offset.x),G(t.y,e.offset.y))}return t}removeElementScroll(e){let t=q();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),G(t.x,i.offset.x),G(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||q();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&&(G(r.x,-n.scroll.offset.x),G(r.y,-n.scroll.offset.y)),W(n.latestValues)&&aa(r,n.latestValues,n.layout?.layoutBox)}return W(this.latestValues)&&aa(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=q();X(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!W(n.latestValues))continue;let r;n.instance&&(qi(n.latestValues)&&n.updateSnapshot(),r=q(),X(r,n.measurePageBox())),$o(t,n.latestValues,n.snapshot?.layoutBox,r)}return W(this.latestValues)&&$o(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!==j.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=j.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=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Go(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),$i(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),Ha.value&&Ts.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||qi(this.parent.latestValues)||Ji(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=q(),this.relativeTargetOrigin=q(),qo(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===j.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;na(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=q());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Io(this.prevProjectionDelta.x,this.projectionDelta.x),Io(this.prevProjectionDelta.y,this.projectionDelta.y)),Uo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ss(this.projectionDelta.x,this.prevProjectionDelta.x)||!ss(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ha.value&&Ts.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=Ga(),this.projectionDelta=Ga(),this.projectionDeltaWithTransform=Ga()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ga();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=q(),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(Xs));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=z(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=z(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(qs(o.x,e.x,n),qs(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ys(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&rs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=q(),X(f,this.relativeTarget)),c&&(this.animationValues=a,fs(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&&=(A(this.pendingAnimation),void 0),this.pendingAnimation=k.update(()=>{ws.hasAnimatedSinceResize=!0,this.motionValue||=Ur(0),this.motionValue.jump(0,!1),this.currentAnimation=_s(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()}}),_n(this.currentAnimation,this),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(Ds),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&nc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||q();let t=Z(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Z(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}X(t,i),aa(t,r),Uo(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Cs),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&&ks(`z`,e,r,this.animationValues);for(let t=0;t<Es.length;t++)ks(`rotate${Es[t]}`,e,r,this.animationValues),ks(`skew${Es[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=Ss(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=Ss(t?.pointerEvents)||``),this.hasProjected&&!W(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=cs(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 go){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=go[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?Ss(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ls),this.root.sharedNodes.clear()}}}function Ms(e){e.updateLayout()}function Ns(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`;Fo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else nc(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=Ga();Uo(o,n,t.layoutBox);let s=Ga();a?Uo(s,e.applyTransform(r,!0),t.measuredBox):Uo(s,n,t.layoutBox);let c=!ts(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=q();qo(s,t.layoutBox,i.layoutBox,o);let c=q();qo(c,n,a.layoutBox,o),as(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 Ps(e){Ha.value&&Ts.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 Fs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Is(e){e.clearSnapshot()}function Ls(e){e.clearMeasurements()}function Rs(e){e.isLayoutDirty=!0,e.updateLayout()}function zs(e){e.isLayoutDirty=!1}function Bs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Vs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Hs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Us(e){e.resolveTargetDelta()}function Ws(e){e.calcProjection()}function Gs(e){e.resetSkewAndRotation()}function Ks(e){e.removeLeadSnapshot()}function qs(e,t,n){e.translate=z(t.translate,0,n),e.scale=z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Js(e,t,n,r){e.min=z(t.min,n.min,r),e.max=z(t.max,n.max,r)}function Ys(e,t,n,r){Js(e.x,t.x,n.x,r),Js(e.y,t.y,n.y,r)}function Xs(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Zs={duration:.45,ease:[.4,0,.1,1]},Qs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$s=Qs(`applewebkit/`)&&!Qs(`chrome/`)?Math.round:w;function ec(e){e.min=$s(e.min),e.max=$s(e.max)}function tc(e){ec(e.x),ec(e.y)}function nc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Vo(os(t),os(n),.2)}function rc(e){return e!==e.root&&e.scroll?.wasRoot}var ic=js({attachResizeListener:(e,t)=>vs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ac={current:void 0},oc=js({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ac.current){let e=new ic({});e.mount(window),e.setOptions({layoutScroll:!0}),ac.current=e}return ac.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),sc=(0,d.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function cc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function lc(...e){return t=>{let n=!1,r=e.map(e=>{let r=cc(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():cc(e[t],null)}}}}function uc(...e){return d.useCallback(lc(...e),e)}var $=r(),dc=class extends d.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ai(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ai(e)&&e.offsetWidth||0,r=Ai(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function fc({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,d.useId)(),s=(0,d.useRef)(null),c=(0,d.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,d.useContext)(sc),u=uc(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,d.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
3
+ [data-motion-pop-id="${o}"] {
4
+ position: absolute !important;
5
+ width: ${e}px !important;
6
+ height: ${u}px !important;
7
+ ${_}px !important;
8
+ ${v}px !important;
9
+ }
10
+ `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,$.jsx)(dc,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:d.cloneElement(e,{ref:u})})}var pc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=p(mc),f=(0,d.useId)(),g=(0,d.useRef)(n),_=(0,d.useRef)(r);m(()=>{g.current=n,_.current=r});let v=!0,y=(0,d.useMemo)(()=>(v=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!g.current&&!u.size&&_.current?.()})}),[n,u,r]);return a&&v&&(y={...y}),(0,d.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),d.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,$.jsx)(fc,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,$.jsx)(h.Provider,{value:y,children:e})};function mc(){return new Map}function hc(e=!0){let t=(0,d.useContext)(h);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,d.useId)();(0,d.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,d.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var gc=e=>e.key||``;function _c(e){let t=[];return d.Children.forEach(e,e=>{(0,d.isValidElement)(e)&&t.push(e)}),t}var vc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,h]=hc(o),g=(0,d.useMemo)(()=>_c(e),[e]),_=o&&!u?[]:g.map(gc),v=(0,d.useRef)(!0),y=(0,d.useRef)(g),b=p(()=>new Map),x=(0,d.useRef)(new Set),[S,C]=(0,d.useState)(g),[w,T]=(0,d.useState)(g);m(()=>{o&&!u&&!w.length&&h?.()},[u,o,w.length,h]),m(()=>{v.current=!1,y.current=g;for(let e=0;e<w.length;e++){let t=gc(w[e]);_.includes(t)?(b.delete(t),x.current.delete(t)):b.get(t)!==!0&&b.set(t,!1)}},[w,_.length,_.join(`-`)]);let E=[];if(g!==S){let e=[...g],t=0;for(let n of w){let r=_.indexOf(gc(n));r===-1?(e.splice(t++,0,n),E.push(n)):t=r+E.length+1}return a===`wait`&&E.length&&(e=E),T(_c(e)),C(g),null}let{forceRender:ee}=(0,d.useContext)(f);return(0,$.jsx)($.Fragment,{children:w.map(e=>{let d=gc(e),f=o&&!u?!1:g===w||_.includes(d);return(0,$.jsx)(pc,{isPresent:f,initial:!v.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:f?void 0:()=>{if(x.current.has(d))return;if(b.has(d))x.current.add(d),b.set(d,!0);else return;let e=!0;b.forEach(t=>{t||(e=!1)}),e&&(ee?.(),T(y.current),o&&h?.(),r&&r())},anchorX:s,anchorY:c,children:e},d)})})},yc=(0,d.createContext)({strict:!1}),bc={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`]},xc=!1;function Sc(){if(xc)return;let e={};for(let t in bc)e[t]={isEnabled:e=>bc[t].some(t=>!!e[t])};so(e),xc=!0}function Cc(){return Sc(),co()}function wc(e){let t=Cc();for(let n in e)t[n]={...t[n],...e[n]};so(t)}var Tc=(0,d.createContext)({});function Ec(e,t){if(Qa(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ya(t)?t:void 0,animate:Ya(n)?n:void 0}}return e.inherit===!1?{}:t}function Dc(e){let{initial:t,animate:n}=Ec(e,(0,d.useContext)(Tc));return(0,d.useMemo)(()=>({initial:t,animate:n}),[Oc(t),Oc(n)])}function Oc(e){return Array.isArray(e)?e.join(` `):e}var kc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ac(e,t,n){for(let r in t)!U(t[r])&&!_o(r,n)&&(e[r]=t[r])}function jc({transformTemplate:e},t){return(0,d.useMemo)(()=>{let n=kc();return Li(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mc(e,t){let n=e.style||{},r={};return Ac(r,n,e),Object.assign(r,jc(e,t)),r}function Nc(e,t){let n={},r=Mc(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 Pc=()=>({...kc(),attrs:{}});function Fc(e,t,n,r){let i=(0,d.useMemo)(()=>{let n=Pc();return Hi(n,t,So(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Ac(t,e.style,e),i.style={...t,...i.style}}return i}var Ic=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 Lc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Ic.has(e)}function Rc(e,t){return e.startsWith(`on`)?!Lc(e):t?.(e)??!Lc(e)}function zc(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(U(e[a])||(Rc(a,r)||n===!0&&Lc(a)||!t&&!Lc(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Bc=[`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 Vc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Bc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hc(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Vc(e)?Fc:Nc)(t,r,i,e),l=zc(t,typeof e==`string`,a,s),u=e===d.Fragment?{}:{...l,...c,ref:n},{children:f}=t,p=(0,d.useMemo)(()=>U(f)?f.get():f,[f]);return(0,d.createElement)(e,{...u,children:p})}function Uc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Wc(n,r,i,e),renderState:t()}}function Wc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Ss(a[e]);let{initial:o,animate:s}=e,c=Qa(e),l=$a(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`&&!Ja(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=ii(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 Gc=e=>(t,n)=>{let r=(0,d.useContext)(Tc),i=(0,d.useContext)(h),a=()=>Uc(e,t,r,i);return n?a():p(a)},Kc=Gc({scrapeMotionValuesFromProps:vo,createRenderState:kc}),qc=Gc({scrapeMotionValuesFromProps:wo,createRenderState:Pc}),Jc=Symbol.for(`motionComponentSymbol`);function Yc(e,t,n){let r=(0,d.useRef)(n);(0,d.useInsertionEffect)(()=>{r.current=n});let i=(0,d.useRef)(null);return(0,d.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 Xc=(0,d.createContext)({});function Zc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Qc(e,t,n,r,i,a){let{visualElement:o}=(0,d.useContext)(Tc),s=(0,d.useContext)(yc),c=(0,d.useContext)(h),l=(0,d.useContext)(sc),u=l.reducedMotion,f=l.skipAnimations,p=(0,d.useRef)(null),g=(0,d.useRef)(!1);r||=s.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:a}),g.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let _=p.current,v=(0,d.useContext)(Xc);_&&!_.projection&&i&&(_.type===`html`||_.type===`svg`)&&$c(p.current,n,i,v);let y=(0,d.useRef)(!1);(0,d.useInsertionEffect)(()=>{_&&y.current&&_.update(n,c)});let b=n[pi],x=(0,d.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return m(()=>{g.current=!0,_&&(y.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),x.current&&_.animationState&&_.animationState.animateChanges())}),(0,d.useEffect)(()=>{_&&(!x.current&&_.animationState&&_.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),_.enteringChildren=void 0)}),_}function $c(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:el(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Zc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function el(e){if(e)return e.options.allowProjection===!1?el(e.parent):e.projection}function tl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&wc(r);let a=n?n===`svg`:Vc(e),o=a?qc:Kc;function s(n,s){let c,l={...(0,d.useContext)(sc),...n,layoutId:nl(n)},{isStatic:u,isValidProp:f}=l,p=Dc(n),m=o(n,u);if(!u&&typeof window<`u`){rl(l,r);let t=il(l);c=t.MeasureLayout,p.visualElement=Qc(e,m,l,i,t.ProjectionNode,a)}return(0,$.jsxs)(Tc.Provider,{value:p,children:[c&&p.visualElement?(0,$.jsx)(c,{visualElement:p.visualElement,...l}):null,Hc(e,n,Yc(m,p.visualElement,s),m,u,t,a,f)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,d.forwardRef)(s);return c[Jc]=e,c}function nl({layoutId:e}){let t=(0,d.useContext)(f).id;return t&&e!==void 0?t+`-`+e:e}function rl(e,t){(0,d.useContext)(yc).strict}function il(e){let{drag:t,layout:n}=Cc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function al(e,t){if(typeof Proxy>`u`)return tl;let n=new Map,r=(n,r)=>tl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,tl(a,void 0,e,t)),n.get(a))})}var ol=(e,t)=>t.isSVG??Vc(e)?new To(t):new bo(t,{allowProjection:e!==d.Fragment}),sl=class extends J{constructor(e){super(e),e.animationState||=Mo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ja(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?.()}},cl=0,ll={animation:{Feature:sl},exit:{Feature:class extends J{constructor(){super(...arguments),this.id=cl++,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=H(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 ul(e){return{point:{x:e.pageX,y:e.pageY}}}var dl=e=>t=>ga(t)&&e(t,ul(t));function fl(e,t,n,r){return vs(e,t,dl(n),r)}var pl=({current:e})=>e?e.ownerDocument.defaultView:null,ml=(e,t)=>Math.abs(e-t);function hl(e,t){let n=ml(e.x,t.x),r=ml(e.y,t.y);return Math.sqrt(n**2+r**2)}var gl=new Set([`auto`,`scroll`]),_l=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=vl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=bl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=hl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=j;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=vl(t,this.transformPagePoint),k.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=bl(e.type===`pointercancel`?this.lastMoveEventInfo:vl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ga(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=vl(ul(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=j;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,bl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=T(fl(this.contextWindow,`pointermove`,this.handlePointerMove,d),fl(this.contextWindow,`pointerup`,this.handlePointerUp,d),fl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(gl.has(e.overflowX)||gl.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),k.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),A(this.updatePoint)}};function vl(e,t){return t?{point:t(e.point)}:e}function yl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bl({point:e},t){return{point:e,delta:yl(e,Sl(t)),offset:yl(e,xl(t)),velocity:Cl(t,.1)}}function xl(e){return e[0]}function Sl(e){return e[e.length-1]}function Cl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Sl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>D(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>D(t)*2&&(r=e[1]);let a=O(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 wl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?z(n,e,r.max):Math.min(e,n)),e}function Tl(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 El(e,{top:t,left:n,bottom:r,right:i}){return{x:Tl(e.x,n,i),y:Tl(e.y,t,r)}}function Dl(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 Ol(e,t){return{x:Dl(e.x,t.x),y:Dl(e.y,t.y)}}function kl(e,t){let n=.5,r=Z(e),i=Z(t);return i>r?n=E(t.min,t.max-r,e.min):r>i&&(n=E(e.min,e.max-i,t.min)),v(0,1,n)}function Al(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 jl=.35;function Ml(e=jl){return e===!1?e=0:e===!0&&(e=jl),{x:Nl(e,`left`,`right`),y:Nl(e,`top`,`bottom`)}}function Nl(e,t,n){return{min:Pl(e,t),max:Pl(e,n)}}function Pl(e,t){return typeof e==`number`?e:e[t]||0}var Fl=new WeakMap,Il=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=q(),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(ul(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=da(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(F.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&&k.update(()=>i(e,t),!1,!0),di(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=Bl(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&&k.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 _l(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:pl(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&&k.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||!zl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=wl(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&&Zc(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?El(n.layoutBox,e):!1,this.elastic=Ml(t),r!==this.constraints&&!Zc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Q(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Al(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Zc(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=sa(n,r.root,this.visualElement.getTransformPagePoint()),a=Ol(r.layout.layoutBox,i);if(t){let e=t(Wi(a));this.hasMutatedConstraints=!!e,e&&(a=Ui(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(!zl(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 di(this.visualElement,e),n.start($r(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(!zl(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]-z(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Zc(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]=kl({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(!zl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(z(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Fl.set(this.visualElement,this);let e=this.visualElement.current,t=fl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ba(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Zc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Rl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),k.read(r);let o=vs(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=jl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Ll(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Rl(e,t,n){let r=Va(e,Ll(n)),i=Va(t,Ll(n));return()=>{r(),i()}}function zl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Bl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Vl=class extends J{constructor(e){super(e),this.removeGroupControls=w,this.removeListeners=w,this.controls=new Il(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w}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&&k.update(()=>e(t,n),!1,!0)},Ul=class extends J{constructor(){super(...arguments),this.removePointerDownListener=w}onPointerDown(e){this.session=new _l(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pl(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&&k.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=fl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Wl=!1,Gl=class extends d.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),Wl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ws.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}),Wl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||k.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(),ca.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Wl=!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 Kl(e){let[t,n]=hc(),r=(0,d.useContext)(f);return(0,$.jsx)(Gl,{...e,layoutGroup:r,switchLayoutGroup:(0,d.useContext)(Xc),isPresent:t,safeToRemove:n})}var ql={pan:{Feature:Ul},drag:{Feature:Vl,ProjectionNode:oc,MeasureLayout:Kl}};function Jl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&k.postRender(()=>i(t,ul(t)))}var Yl=class extends J{mount(){let{current:e}=this.node;e&&(this.unmount=ma(e,(e,t)=>(Jl(this.node,t,`Start`),e=>Jl(this.node,e,`End`))))}unmount(){}},Xl=class extends J{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=T(vs(this.node.current,`focus`,()=>this.onFocus()),vs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Zl(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&&k.postRender(()=>i(t,ul(t)))}var Ql=class extends J{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Da(e,(e,t)=>(Zl(this.node,t,`Start`),(e,{success:t})=>Zl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},$l=new WeakMap,eu=new WeakMap,tu=e=>{let t=$l.get(e.target);t&&t(e)},nu=e=>{e.forEach(tu)};function ru({root:e,...t}){let n=e||document;eu.has(n)||eu.set(n,{});let r=eu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nu,{root:e,...t})),r[i]}function iu(e,t,n){let r=ru(t);return $l.set(e,n),r.observe(e),()=>{$l.delete(e),r.unobserve(e)}}var au={some:0,all:1},ou=class extends J{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:au[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=iu(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(su(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function su({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var cu={inView:{Feature:ou},tap:{Feature:Ql},focus:{Feature:Xl},hover:{Feature:Yl}},lu={layout:{ProjectionNode:oc,MeasureLayout:Kl}},uu=al({...ll,...cu,...ql,...lu},ol),du=(0,d.lazy)(()=>n(()=>import(`./Chat-C97PMlIn.js`).then(e=>({default:e.Chat})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),fu=56,pu=24;function mu(){let[e,t]=(0,d.useState)(!1),[n,r]=(0,d.useState)(!1),[i,l]=(0,d.useState)(!1),[f,p]=s(`ApplicationChatOpen`,!1),[m,h]=o(a.ApplicationChatPosition,{x:-40,y:-40}),[g,_]=o(a.ApplicationChatWidth,600),v=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=()=>{let e=window.innerWidth<768;t(e),!e&&g>window.innerWidth&&_(window.innerWidth)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[g,_]);let y=(0,d.useCallback)(e=>{e.preventDefault(),l(!0)},[]);(0,d.useEffect)(()=>{if(!i)return;let e=e=>{let t=window.innerWidth-e.clientX,n=Math.min(Math.max(t,300),window.innerWidth);_(n)},t=()=>{l(!1)};return window.addEventListener(`mousemove`,e),window.addEventListener(`mouseup`,t),()=>{window.removeEventListener(`mousemove`,e),window.removeEventListener(`mouseup`,t)}},[i,_]);let b=(0,d.useCallback)(()=>{n||p(e=>!e)},[n]),x=(0,d.useCallback)(()=>{p(!1)},[]);return(0,d.useEffect)(()=>{if(f){let e=e=>{e.key===`Escape`&&x()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)}},[f,x]),(0,$.jsxs)(`div`,{className:`fixed inset-0 pointer-events-none z-50`,ref:v,children:[(0,$.jsx)(vc,{children:f&&(0,$.jsxs)(uu.div,{initial:e?{opacity:0,y:`100%`}:{opacity:0,x:`100%`},animate:e?{opacity:1,y:0}:{opacity:1,x:0},exit:e?{opacity:0,y:`100%`}:{opacity:0,x:`100%`},transition:{type:`spring`,damping:25,stiffness:200},style:e?{}:{top:0,bottom:0,right:0,width:g,maxWidth:`100vw`},className:`
11
+ pointer-events-auto
12
+ fixed bg-background shadow-2xl border-l border-border overflow-visible
13
+ ${e?`inset-0 w-full h-full rounded-none`:`h-full`}
14
+ `,children:[!e&&(0,$.jsx)(`div`,{onMouseDown:y,className:`
15
+ absolute left-0 top-0 bottom-0 w-1 cursor-ew-resize
16
+ hover:bg-primary transition-colors z-50
17
+ ${i?`bg-primary`:``}
18
+ `}),(0,$.jsx)(d.Suspense,{fallback:(0,$.jsx)(c,{centered:!0,text:`Loading chat…`}),children:(0,$.jsx)(du,{autoFocus:!0,closeChat:x})})]})}),!f&&(0,$.jsx)(uu.button,{drag:!0,dragMomentum:!1,dragConstraints:v,onDragStart:()=>{r(!1)},onDrag:(e,t)=>{(Math.abs(t.offset.x)>5||Math.abs(t.offset.y)>5)&&r(!0)},onDragEnd:(t,n)=>{if(setTimeout(()=>{r(!1)},100),e)return;let{innerWidth:i,innerHeight:a}=window,o=m.x+n.offset.x,s=m.y+n.offset.y,c=n.point.x,l=i-n.point.x,u=n.point.y,d=a-n.point.y,f=o,p=s;c<100?f=-(i-fu-48):l<100&&(f=0),u<100?p=-(a-fu-48):d<100&&(p=0),h({x:f,y:p})},initial:{x:m.x,y:m.y},whileHover:{scale:1.1},whileTap:{scale:.9},onClick:b,style:{bottom:pu,right:pu},className:`
19
+ pointer-events-auto
20
+ fixed w-14 h-14 rounded-full bg-primary
21
+ text-primary-foreground shadow-lg flex items-center justify-center cursor-pointer
22
+ hover:bg-primary/90 transition-colors
23
+ `,children:(0,$.jsx)(u,{size:28})})]})}export{mu as FloatingChat,u as n,uu as t};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,C as n,D as r,E as i,G as a,H as o,I as s,K as c,M as l,N as u,P as d,R as f,S as p,T as m,U as ee,V as h,X as g,Y as _,ct as v,dt as y,et as te,f as ne,ft as re,h as b,j as ie,k as ae,lt as oe,mt as se,nt as x,pt as ce,q as le,st as S,ut as ue,v as de,w as fe,z as pe}from"./_baseUniq-DR4vVjyC.js";var me=/\s/;function he(e){for(var t=e.length;t--&&me.test(e.charAt(t)););return t}var ge=/^\s+/;function _e(e){return e&&e.slice(0,he(e)+1).replace(ge,``)}var C=NaN,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^0o[0-7]+$/i,xe=parseInt;function Se(e){if(typeof e==`number`)return e;if(ue(e))return C;if(S(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=S(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=_e(e);var n=ye.test(e);return n||be.test(e)?xe(e.slice(2),n?2:8):ve.test(e)?C:+e}var w=1/0,Ce=17976931348623157e292;function T(e){return e?(e=Se(e),e===w||e===-w?(e<0?-1:1)*Ce:e===e?e:0):e===0?e:0}function E(e){var t=T(e),n=t%1;return t===t?n?t-n:t:0}var D=Object.create,we=function(){function e(){}return function(t){if(!S(t))return{};if(D)return D(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function O(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function k(e,t,n){t==`__proto__`&&x?x(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Te=Object.prototype.hasOwnProperty;function A(e,t,n){var r=e[t];(!(Te.call(e,t)&&_(r,n))||n===void 0&&!(t in e))&&k(e,t,n)}function j(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?k(n,s,c):A(n,s,c)}return n}function M(e,t,n){if(!S(n))return!1;var r=typeof t;return(r==`number`?c(n)&&g(t,n.length):r==`string`&&t in n)?_(n[t],e):!1}function Ee(e){return le(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&M(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function De(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Oe=Object.prototype.hasOwnProperty;function ke(e){if(!S(e))return De(e);var t=a(e),n=[];for(var r in e)(r!=`constructor`||!t&&Oe.call(e,r))&&n.push(r);return n}function N(e){return c(e)?pe(e,!0):ke(e)}function Ae(e){return e!=null&&e.length?t(e,1):[]}var P=f(Object.getPrototypeOf,Object);function je(e,t){return e&&j(t,s(t),e)}function Me(e,t){return e&&j(t,N(t),e)}var F=typeof exports==`object`&&exports&&!exports.nodeType&&exports,I=F&&typeof module==`object`&&module&&!module.nodeType&&module,L=I&&I.exports===F?se.Buffer:void 0,R=L?L.allocUnsafe:void 0;function z(e,t){if(t)return e.slice();var n=e.length,r=R?R(n):new e.constructor(n);return e.copy(r),r}function Ne(e,t){return j(e,i(e),t)}var B=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ie(t,i(e)),e=P(e);return t}:r;function Pe(e,t){return j(e,B(e),t)}function V(e){return m(e,N,B)}var Fe=Object.prototype.hasOwnProperty;function Ie(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Fe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function H(e){var t=new e.constructor(e.byteLength);return new p(t).set(new p(e)),t}function Le(e,t){var n=t?H(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Re=/\w*$/;function ze(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}var U=ce?ce.prototype:void 0,W=U?U.valueOf:void 0;function Be(e){return W?Object(W.call(e)):{}}function G(e,t){var n=t?H(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ve=`[object Boolean]`,He=`[object Date]`,Ue=`[object Map]`,We=`[object Number]`,Ge=`[object RegExp]`,Ke=`[object Set]`,qe=`[object String]`,Je=`[object Symbol]`,Ye=`[object ArrayBuffer]`,Xe=`[object DataView]`,Ze=`[object Float32Array]`,Qe=`[object Float64Array]`,$e=`[object Int8Array]`,et=`[object Int16Array]`,tt=`[object Int32Array]`,nt=`[object Uint8Array]`,rt=`[object Uint8ClampedArray]`,it=`[object Uint16Array]`,at=`[object Uint32Array]`;function ot(e,t,n){var r=e.constructor;switch(t){case Ye:return H(e);case Ve:case He:return new r(+e);case Xe:return Le(e,n);case Ze:case Qe:case $e:case et:case tt:case nt:case rt:case it:case at:return G(e,n);case Ue:return new r;case We:case qe:return new r(e);case Ge:return ze(e);case Ke:return new r;case Je:return Be(e)}}function K(e){return typeof e.constructor==`function`&&!a(e)?we(P(e)):{}}var st=`[object Map]`;function ct(e){return y(e)&&n(e)==st}var q=h&&h.isMap,lt=q?o(q):ct,ut=`[object Set]`;function dt(e){return y(e)&&n(e)==ut}var J=h&&h.isSet,ft=J?o(J):dt,pt=1,mt=2,ht=4,Y=`[object Arguments]`,gt=`[object Array]`,_t=`[object Boolean]`,vt=`[object Date]`,yt=`[object Error]`,X=`[object Function]`,bt=`[object GeneratorFunction]`,xt=`[object Map]`,St=`[object Number]`,Z=`[object Object]`,Ct=`[object RegExp]`,wt=`[object Set]`,Tt=`[object String]`,Et=`[object Symbol]`,Dt=`[object WeakMap]`,Ot=`[object ArrayBuffer]`,kt=`[object DataView]`,At=`[object Float32Array]`,jt=`[object Float64Array]`,Mt=`[object Int8Array]`,Nt=`[object Int16Array]`,Pt=`[object Int32Array]`,Ft=`[object Uint8Array]`,It=`[object Uint8ClampedArray]`,Lt=`[object Uint16Array]`,Rt=`[object Uint32Array]`,Q={};Q[Y]=Q[gt]=Q[Ot]=Q[kt]=Q[_t]=Q[vt]=Q[At]=Q[jt]=Q[Mt]=Q[Nt]=Q[Pt]=Q[xt]=Q[St]=Q[Z]=Q[Ct]=Q[wt]=Q[Tt]=Q[Et]=Q[Ft]=Q[It]=Q[Lt]=Q[Rt]=!0,Q[yt]=Q[X]=Q[Dt]=!1;function $(e,t,r,i,a,o){var c,l=t&pt,u=t&mt,d=t&ht;if(r&&(c=a?r(e,i,a,o):r(e)),c!==void 0)return c;if(!S(e))return e;var f=v(e);if(f){if(c=Ie(e),!l)return O(e,c)}else{var p=n(e),m=p==X||p==bt;if(ee(e))return z(e,l);if(p==Z||p==Y||m&&!a){if(c=u||m?{}:K(e),!l)return u?Pe(e,Me(c,e)):Ne(e,je(c,e))}else{if(!Q[p])return a?e:{};c=ot(e,p,l)}}o||=new ae;var h=o.get(e);if(h)return h;o.set(e,c),ft(e)?e.forEach(function(n){c.add($(n,t,r,n,e,o))}):lt(e)&&e.forEach(function(n,i){c.set(i,$(n,t,r,i,e,o))});var g=f?void 0:(d?u?V:fe:u?N:s)(e);return te(g||e,function(n,i){g&&(i=n,n=e[i]),A(c,i,$(n,t,r,i,e,o))}),c}var zt=Object.prototype,Bt=zt.hasOwnProperty,Vt=le(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&M(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=N(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||_(u,zt[l])&&!Bt.call(e,l))&&(e[l]=a[l])}return e});function Ht(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ut(e){return function(t,n,r){var i=Object(t);if(!c(t)){var a=b(n,3);t=s(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var Wt=Math.max;function Gt(t,n,r){var i=t==null?0:t.length;if(!i)return-1;var a=r==null?0:E(r);return a<0&&(a=Wt(i+a,0)),e(t,b(n,3),a)}var Kt=Ut(Gt);function qt(e,t){var n=-1,r=c(e)?Array(e.length):[];return ne(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Jt(e,t){return(v(e)?oe:qt)(e,b(t,3))}var Yt=Object.prototype.hasOwnProperty;function Xt(e,t){return e!=null&&Yt.call(e,t)}function Zt(e,t){return e!=null&&de(e,t,Xt)}var Qt=`[object String]`;function $t(e){return typeof e==`string`||!v(e)&&y(e)&&re(e)==Qt}function en(e,t,n,r){if(!S(e))return e;t=d(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=u(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var f=s[c];l=r?r(f,c,s):void 0,l===void 0&&(l=S(f)?f:g(t[i+1])?[]:{})}A(s,c,l),s=s[c]}return e}function tn(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=l(e,o);n(s,o)&&en(a,d(o,e),s)}return a}export{E as C,O as S,Ee as _,qt as a,A as b,Vt as c,G as d,V as f,N as g,Ae as h,Jt as i,$ as l,P as m,$t as n,Kt as o,z as p,Zt as r,Ht as s,tn as t,K as u,M as v,T as w,k as x,j as y};
@@ -0,0 +1 @@
1
+ var e=typeof global==`object`&&global&&global.Object===Object&&global,t=typeof self==`object`&&self&&self.Object===Object&&self,n=e||t||Function(`return this`)(),r=n.Symbol,i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function c(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch{}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}var l=Object.prototype.toString;function u(e){return l.call(e)}var d=`[object Null]`,f=`[object Undefined]`,p=r?r.toStringTag:void 0;function m(e){return e==null?e===void 0?f:d:p&&p in Object(e)?c(e):u(e)}function h(e){return typeof e==`object`&&!!e}var g=`[object Symbol]`;function _(e){return typeof e==`symbol`||h(e)&&m(e)==g}function v(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var y=Array.isArray,ee=1/0,te=r?r.prototype:void 0,ne=te?te.toString:void 0;function re(e){if(typeof e==`string`)return e;if(y(e))return v(e,re)+``;if(_(e))return ne?ne.call(e):``;var t=e+``;return t==`0`&&1/e==-ee?`-0`:t}function b(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function x(e){return e}var ie=`[object AsyncFunction]`,ae=`[object Function]`,oe=`[object GeneratorFunction]`,se=`[object Proxy]`;function ce(e){if(!b(e))return!1;var t=m(e);return t==ae||t==oe||t==ie||t==se}var le=n[`__core-js_shared__`],ue=function(){var e=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function de(e){return!!ue&&ue in e}var fe=Function.prototype.toString;function S(e){if(e!=null){try{return fe.call(e)}catch{}try{return e+``}catch{}}return``}var pe=/[\\^$.*+?()[\]{}|]/g,me=/^\[object .+?Constructor\]$/,he=Function.prototype,ge=Object.prototype,_e=he.toString,ve=ge.hasOwnProperty,ye=RegExp(`^`+_e.call(ve).replace(pe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function be(e){return!b(e)||de(e)?!1:(ce(e)?ye:me).test(S(e))}function xe(e,t){return e?.[t]}function C(e,t){var n=xe(e,t);return be(n)?n:void 0}var w=C(n,`WeakMap`);function Se(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ce(){}var we=800,Te=16,Ee=Date.now;function De(e){var t=0,n=0;return function(){var r=Ee(),i=Te-(r-n);if(n=r,i>0){if(++t>=we)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Oe(e){return function(){return e}}var T=function(){try{var e=C(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),ke=De(T?function(e,t){return T(e,`toString`,{configurable:!0,enumerable:!1,value:Oe(t),writable:!0})}:x);function Ae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function je(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Me(e){return e!==e}function Ne(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Pe(e,t,n){return t===t?Ne(e,t,n):je(e,Me,n)}function Fe(e,t){return!!(e!=null&&e.length)&&Pe(e,t,0)>-1}var Ie=9007199254740991,Le=/^(?:0|[1-9]\d*)$/;function E(e,t){var n=typeof e;return t??=Ie,!!t&&(n==`number`||n!=`symbol`&&Le.test(e))&&e>-1&&e%1==0&&e<t}function D(e,t){return e===t||e!==e&&t!==t}var Re=Math.max;function ze(e,t,n){return t=Re(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Re(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Se(e,this,s)}}function Be(e,t){return ke(ze(e,t,x),e+``)}var Ve=9007199254740991;function O(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ve}function k(e){return e!=null&&O(e.length)&&!ce(e)}var He=Object.prototype;function A(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||He)}function Ue(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var We=`[object Arguments]`;function Ge(e){return h(e)&&m(e)==We}var Ke=Object.prototype,qe=Ke.hasOwnProperty,Je=Ke.propertyIsEnumerable,j=Ge(function(){return arguments}())?Ge:function(e){return h(e)&&qe.call(e,`callee`)&&!Je.call(e,`callee`)};function Ye(){return!1}var Xe=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ze=Xe&&typeof module==`object`&&module&&!module.nodeType&&module,Qe=Ze&&Ze.exports===Xe?n.Buffer:void 0,M=(Qe?Qe.isBuffer:void 0)||Ye,$e=`[object Arguments]`,et=`[object Array]`,tt=`[object Boolean]`,nt=`[object Date]`,rt=`[object Error]`,it=`[object Function]`,at=`[object Map]`,ot=`[object Number]`,st=`[object Object]`,ct=`[object RegExp]`,lt=`[object Set]`,ut=`[object String]`,dt=`[object WeakMap]`,ft=`[object ArrayBuffer]`,pt=`[object DataView]`,mt=`[object Float32Array]`,ht=`[object Float64Array]`,gt=`[object Int8Array]`,_t=`[object Int16Array]`,vt=`[object Int32Array]`,yt=`[object Uint8Array]`,bt=`[object Uint8ClampedArray]`,xt=`[object Uint16Array]`,St=`[object Uint32Array]`,N={};N[mt]=N[ht]=N[gt]=N[_t]=N[vt]=N[yt]=N[bt]=N[xt]=N[St]=!0,N[$e]=N[et]=N[ft]=N[tt]=N[pt]=N[nt]=N[rt]=N[it]=N[at]=N[ot]=N[st]=N[ct]=N[lt]=N[ut]=N[dt]=!1;function Ct(e){return h(e)&&O(e.length)&&!!N[m(e)]}function wt(e){return function(t){return e(t)}}var Tt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,P=Tt&&typeof module==`object`&&module&&!module.nodeType&&module,F=P&&P.exports===Tt&&e.process,Et=function(){try{return P&&P.require&&P.require(`util`).types||F&&F.binding&&F.binding(`util`)}catch{}}(),Dt=Et&&Et.isTypedArray,I=Dt?wt(Dt):Ct,Ot=Object.prototype.hasOwnProperty;function kt(e,t){var n=y(e),r=!n&&j(e),i=!n&&!r&&M(e),a=!n&&!r&&!i&&I(e),o=n||r||i||a,s=o?Ue(e.length,String):[],c=s.length;for(var l in e)(t||Ot.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||E(l,c)))&&s.push(l);return s}function At(e,t){return function(n){return e(t(n))}}var jt=At(Object.keys,Object),Mt=Object.prototype.hasOwnProperty;function Nt(e){if(!A(e))return jt(e);var t=[];for(var n in Object(e))Mt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function L(e){return k(e)?kt(e):Nt(e)}var Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/;function It(e,t){if(y(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||_(e)?!0:Ft.test(e)||!Pt.test(e)||t!=null&&e in Object(t)}var R=C(Object,`create`);function Lt(){this.__data__=R?R(null):{},this.size=0}function Rt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var zt=`__lodash_hash_undefined__`,Bt=Object.prototype.hasOwnProperty;function Vt(e){var t=this.__data__;if(R){var n=t[e];return n===zt?void 0:n}return Bt.call(t,e)?t[e]:void 0}var Ht=Object.prototype.hasOwnProperty;function Ut(e){var t=this.__data__;return R?t[e]!==void 0:Ht.call(t,e)}var Wt=`__lodash_hash_undefined__`;function Gt(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=R&&t===void 0?Wt:t,this}function z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}z.prototype.clear=Lt,z.prototype.delete=Rt,z.prototype.get=Vt,z.prototype.has=Ut,z.prototype.set=Gt;function Kt(){this.__data__=[],this.size=0}function B(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return-1}var qt=Array.prototype.splice;function Jt(e){var t=this.__data__,n=B(t,e);return n<0?!1:(n==t.length-1?t.pop():qt.call(t,n,1),--this.size,!0)}function Yt(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]}function Xt(e){return B(this.__data__,e)>-1}function Zt(e,t){var n=this.__data__,r=B(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function V(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}V.prototype.clear=Kt,V.prototype.delete=Jt,V.prototype.get=Yt,V.prototype.has=Xt,V.prototype.set=Zt;var H=C(n,`Map`);function Qt(){this.size=0,this.__data__={hash:new z,map:new(H||V),string:new z}}function $t(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function U(e,t){var n=e.__data__;return $t(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function en(e){var t=U(this,e).delete(e);return this.size-=+!!t,t}function tn(e){return U(this,e).get(e)}function nn(e){return U(this,e).has(e)}function rn(e,t){var n=U(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function W(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}W.prototype.clear=Qt,W.prototype.delete=en,W.prototype.get=tn,W.prototype.has=nn,W.prototype.set=rn;var an=`Expected a function`;function on(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(an);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(on.Cache||W),n}on.Cache=W;var sn=500;function cn(e){var t=on(e,function(e){return n.size===sn&&n.clear(),e}),n=t.cache;return t}var ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/\\(\\)?/g,dn=cn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(ln,function(e,n,r,i){t.push(r?i.replace(un,`$1`):n||e)}),t});function fn(e){return e==null?``:re(e)}function pn(e,t){return y(e)?e:It(e,t)?[e]:dn(fn(e))}var mn=1/0;function G(e){if(typeof e==`string`||_(e))return e;var t=e+``;return t==`0`&&1/e==-mn?`-0`:t}function K(e,t){t=pn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[G(t[n++])];return n&&n==r?e:void 0}function hn(e,t,n){var r=e==null?void 0:K(e,t);return r===void 0?n:r}function gn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var _n=r?r.isConcatSpreadable:void 0;function vn(e){return y(e)||j(e)||!!(_n&&e&&e[_n])}function yn(e,t,n,r,i){var a=-1,o=e.length;for(n||=vn,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?yn(s,t-1,n,r,i):gn(i,s):r||(i[i.length]=s)}return i}function bn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function xn(){this.__data__=new V,this.size=0}function Sn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Cn(e){return this.__data__.get(e)}function wn(e){return this.__data__.has(e)}var Tn=200;function En(e,t){var n=this.__data__;if(n instanceof V){var r=n.__data__;if(!H||r.length<Tn-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new W(r)}return n.set(e,t),this.size=n.size,this}function q(e){var t=this.__data__=new V(e);this.size=t.size}q.prototype.clear=xn,q.prototype.delete=Sn,q.prototype.get=Cn,q.prototype.has=wn,q.prototype.set=En;function Dn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function On(){return[]}var kn=Object.prototype.propertyIsEnumerable,An=Object.getOwnPropertySymbols,jn=An?function(e){return e==null?[]:(e=Object(e),Dn(An(e),function(t){return kn.call(e,t)}))}:On;function Mn(e,t,n){var r=t(e);return y(e)?r:gn(r,n(e))}function Nn(e){return Mn(e,L,jn)}var Pn=C(n,`DataView`),Fn=C(n,`Promise`),J=C(n,`Set`),In=`[object Map]`,Ln=`[object Object]`,Rn=`[object Promise]`,zn=`[object Set]`,Bn=`[object WeakMap]`,Vn=`[object DataView]`,Hn=S(Pn),Un=S(H),Wn=S(Fn),Gn=S(J),Kn=S(w),Y=m;(Pn&&Y(new Pn(new ArrayBuffer(1)))!=Vn||H&&Y(new H)!=In||Fn&&Y(Fn.resolve())!=Rn||J&&Y(new J)!=zn||w&&Y(new w)!=Bn)&&(Y=function(e){var t=m(e),n=t==Ln?e.constructor:void 0,r=n?S(n):``;if(r)switch(r){case Hn:return Vn;case Un:return In;case Wn:return Rn;case Gn:return zn;case Kn:return Bn}return t});var X=Y,qn=n.Uint8Array,Jn=`__lodash_hash_undefined__`;function Yn(e){return this.__data__.set(e,Jn),this}function Xn(e){return this.__data__.has(e)}function Z(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new W;++t<n;)this.add(e[t])}Z.prototype.add=Z.prototype.push=Yn,Z.prototype.has=Xn;function Zn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Qn(e,t){return e.has(t)}var $n=1,er=2;function tr(e,t,n,r,i,a){var o=n&$n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&er?new Z:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Zn(t,function(e,t){if(!Qn(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function nr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function rr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ir=1,ar=2,or=`[object Boolean]`,sr=`[object Date]`,cr=`[object Error]`,lr=`[object Map]`,ur=`[object Number]`,dr=`[object RegExp]`,fr=`[object Set]`,pr=`[object String]`,mr=`[object Symbol]`,hr=`[object ArrayBuffer]`,gr=`[object DataView]`,_r=r?r.prototype:void 0,vr=_r?_r.valueOf:void 0;function yr(e,t,n,r,i,a,o){switch(n){case gr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hr:return!(e.byteLength!=t.byteLength||!a(new qn(e),new qn(t)));case or:case sr:case ur:return D(+e,+t);case cr:return e.name==t.name&&e.message==t.message;case dr:case pr:return e==t+``;case lr:var s=nr;case fr:var c=r&ir;if(s||=rr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=ar,o.set(e,t);var u=tr(s(e),s(t),r,i,a,o);return o.delete(e),u;case mr:if(vr)return vr.call(e)==vr.call(t)}return!1}var br=1,xr=Object.prototype.hasOwnProperty;function Sr(e,t,n,r,i,a){var o=n&br,s=Nn(e),c=s.length;if(c!=Nn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:xr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Cr=1,wr=`[object Arguments]`,Tr=`[object Array]`,Q=`[object Object]`,Er=Object.prototype.hasOwnProperty;function Dr(e,t,n,r,i,a){var o=y(e),s=y(t),c=o?Tr:X(e),l=s?Tr:X(t);c=c==wr?Q:c,l=l==wr?Q:l;var u=c==Q,d=l==Q,f=c==l;if(f&&M(e)){if(!M(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new q,o||I(e)?tr(e,t,n,r,i,a):yr(e,t,c,n,r,i,a);if(!(n&Cr)){var p=u&&Er.call(e,`__wrapped__`),m=d&&Er.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new q,i(h,g,n,r,a)}}return f?(a||=new q,Sr(e,t,n,r,i,a)):!1}function Or(e,t,n,r,i){return e===t?!0:e==null||t==null||!h(e)&&!h(t)?e!==e&&t!==t:Dr(e,t,n,r,Or,i)}var kr=1,Ar=2;function jr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new q;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Or(u,l,kr|Ar,r,d):f))return!1}}return!0}function Mr(e){return e===e&&!b(e)}function Nr(e){for(var t=L(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Mr(i)]}return t}function Pr(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function Fr(e){var t=Nr(e);return t.length==1&&t[0][2]?Pr(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Ir(e,t){return e!=null&&t in Object(e)}function Lr(e,t,n){t=pn(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=G(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&O(i)&&E(o,i)&&(y(e)||j(e)))}function Rr(e,t){return e!=null&&Lr(e,t,Ir)}var zr=1,Br=2;function Vr(e,t){return It(e)&&Mr(t)?Pr(G(e),t):function(n){var r=hn(n,e);return r===void 0&&r===t?Rr(n,e):Or(t,r,zr|Br)}}function Hr(e){return function(t){return t?.[e]}}function Ur(e){return function(t){return K(t,e)}}function Wr(e){return It(e)?Hr(G(e)):Ur(e)}function Gr(e){return typeof e==`function`?e:e==null?x:typeof e==`object`?y(e)?Vr(e[0],e[1]):Fr(e):Wr(e)}function Kr(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var qr=Kr();function Jr(e,t){return e&&qr(e,t,L)}function Yr(e,t){return function(n,r){if(n==null)return n;if(!k(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var $=Yr(Jr);function Xr(e){return h(e)&&k(e)}function Zr(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Qr(e){return typeof e==`function`?e:x}function $r(e,t){return(y(e)?Ae:$)(e,Qr(t))}function ei(e,t){var n=[];return $(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function ti(e,t){return(y(e)?Dn:ei)(e,Gr(t,3))}function ni(e,t){return v(t,function(t){return e[t]})}function ri(e){return e==null?[]:ni(e,L(e))}var ii=`[object Map]`,ai=`[object Set]`,oi=Object.prototype.hasOwnProperty;function si(e){if(e==null)return!0;if(k(e)&&(y(e)||typeof e==`string`||typeof e.splice==`function`||M(e)||I(e)||j(e)))return!e.length;var t=X(e);if(t==ii||t==ai)return!e.size;if(A(e))return!Nt(e).length;for(var n in e)if(oi.call(e,n))return!1;return!0}function ci(e){return e===void 0}function li(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function ui(e,t,n){var r=y(e)?bn:li,i=arguments.length<3;return r(e,Gr(t,4),n,i,$)}var di=J&&1/rr(new J([,-0]))[1]==1/0?function(e){return new J(e)}:Ce,fi=200;function pi(e,t,n){var r=-1,i=Fe,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Zr;else if(a>=fi){var l=t?null:di(e);if(l)return rr(l);o=!1,i=Qn,c=new Z}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}export{je as $,yn as A,I as B,X as C,On as D,jn as E,fn as F,A as G,wt as H,L as I,ze as J,k as K,Nt as L,K as M,G as N,Dn as O,pn as P,Pe as Q,At as R,qn as S,Mn as T,M as U,Et as V,j as W,E as X,D as Y,Fe as Z,Rr as _,ri as a,ce as at,Zn as b,$r as c,y as ct,Xr as d,h as dt,Ae as et,$ as f,m as ft,Hr as g,Gr as h,si as i,Ce as it,gn as j,q as k,Qr as l,v as lt,qr as m,n as mt,ui as n,T as nt,ti as o,x as ot,Jr as p,r as pt,Be as q,ci as r,Oe as rt,ei as s,b as st,pi as t,ke as tt,Zr as u,_ as ut,Lr as v,Nn as w,Z as x,Qn as y,kt as z};
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-BlEsOWNO.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./src-CMc7m_Ut.js";import"./chunk-DU6HZSFF-Chq20Ba5.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-jtdAHw0S.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BlkGaMIH.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-C2lcH_jP.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./src-D0vMJQRr.js";import"./chunk-O7XYJQB3-ep14zA23.js";import{n as i,r as a,t as o}from"./chunk-GTNCS2PH-DJ2BFvS1.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BG5bjfIG.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import"./rolldown-runtime-hePW80VL.js";import{n as e,r as t}from"./button-BIsUKRZq.js";import{a as n}from"./vendor-datadog-CLUcJXOo.js";import{r}from"./vendor-react-CJV_K1u4.js";import{_ as i,d as a,f as o,g as s,h as c,m as l,p as u,u as d}from"./vendor-ui-BUjK0h8a.js";n();var f=r();function p({...e}){return(0,f.jsx)(s,{"data-slot":`alert-dialog`,...e})}function m({...e}){return(0,f.jsx)(c,{"data-slot":`alert-dialog-portal`,...e})}function h({className:t,...n}){return(0,f.jsx)(l,{"data-slot":`alert-dialog-overlay`,className:e(`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/50 dark:backdrop-blur-none`,t),...n})}function g({className:t,...n}){return(0,f.jsxs)(m,{children:[(0,f.jsx)(h,{}),(0,f.jsx)(o,{"data-slot":`alert-dialog-content`,className:e(`bg-background 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)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,t),...n})]})}function _({className:t,...n}){return(0,f.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:e(`flex flex-col gap-2 text-center sm:text-left`,t),...n})}function v({className:t,...n}){return(0,f.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:e(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,t),...n})}function y({className:t,...n}){return(0,f.jsx)(i,{"data-slot":`alert-dialog-title`,className:e(`text-lg font-semibold`,t),...n})}function b({className:t,...n}){return(0,f.jsx)(u,{"data-slot":`alert-dialog-description`,className:e(`text-muted-foreground text-sm`,t),...n})}function x({className:n,...r}){return(0,f.jsx)(d,{className:e(t(),n),...r})}function S({className:n,...r}){return(0,f.jsx)(a,{className:e(t({variant:`outline`}),n),...r})}export{b as a,y as c,g as i,x as n,v as o,S as r,_ as s,p as t};
1
+ import"./rolldown-runtime-Dd_uD5pT.js";import{n as e,r as t}from"./button-MFP9n8Ck.js";import{a as n}from"./vendor-datadog-fCQhBHGk.js";import{r}from"./vendor-react-izWchTRL.js";import{_ as i,d as a,f as o,g as s,h as c,m as l,p as u,u as d}from"./vendor-ui-aE1tHcW7.js";n();var f=r();function p({...e}){return(0,f.jsx)(s,{"data-slot":`alert-dialog`,...e})}function m({...e}){return(0,f.jsx)(c,{"data-slot":`alert-dialog-portal`,...e})}function h({className:t,...n}){return(0,f.jsx)(l,{"data-slot":`alert-dialog-overlay`,className:e(`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/50 dark:backdrop-blur-none`,t),...n})}function g({className:t,...n}){return(0,f.jsxs)(m,{children:[(0,f.jsx)(h,{}),(0,f.jsx)(o,{"data-slot":`alert-dialog-content`,className:e(`bg-background 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)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,t),...n})]})}function _({className:t,...n}){return(0,f.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:e(`flex flex-col gap-2 text-center sm:text-left`,t),...n})}function v({className:t,...n}){return(0,f.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:e(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,t),...n})}function y({className:t,...n}){return(0,f.jsx)(i,{"data-slot":`alert-dialog-title`,className:e(`text-lg font-semibold`,t),...n})}function b({className:t,...n}){return(0,f.jsx)(u,{"data-slot":`alert-dialog-description`,className:e(`text-muted-foreground text-sm`,t),...n})}function x({className:n,...r}){return(0,f.jsx)(d,{className:e(t(),n),...r})}function S({className:n,...r}){return(0,f.jsx)(a,{className:e(t({variant:`outline`}),n),...r})}export{b as a,y as c,g as i,x as n,v as o,S as r,_ as s,p as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,t as n}from"./button-BIsUKRZq.js";import{a as r}from"./vendor-datadog-CLUcJXOo.js";import{r as i}from"./vendor-react-CJV_K1u4.js";import{I as a}from"./vendor-tanstack-DxzraizX.js";import{Er as o,Fr as s,Ir as c,Lr as l,Rr as u,kr as d,on as f,vn as p,zr as m}from"./index-Dfpeofdu.js";async function h(){let{data:e}=await t.post(`/Admin/ApiToken`,{});return e}function g(){return a({mutationFn:h,gcTime:0})}var _=e(r(),1),v=i();function y(){let{mutate:e,isPending:t,reset:r}=g(),[i,a]=(0,_.useState)(null),h=f();return(0,v.jsxs)(`div`,{className:`max-w-2xl`,children:[(0,v.jsx)(`h1`,{className:`text-2xl font-light`,children:`API Token`}),(0,v.jsxs)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:[`Generate a short-lived token for programmatic API access. It authenticates as you, with your permissions. Send it as a bearer token:`,` `,(0,v.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`Authorization: Bearer <token>`})]}),(0,v.jsxs)(n,{className:`mt-4`,variant:`submit`,onClick:()=>{e(void 0,{onSuccess:e=>{a(e),r()}})},disabled:t,children:[(0,v.jsx)(o,{}),t?`Generating…`:`Generate token`]}),i&&(0,v.jsxs)(s,{className:`mt-6`,children:[(0,v.jsxs)(u,{children:[(0,v.jsx)(m,{children:`Your API token`}),(0,v.jsxs)(l,{children:[`Copy it now — it won't be shown again. Expires `,new Date(i.expiresAt).toLocaleString(),`.`]})]}),(0,v.jsxs)(c,{className:`flex items-center gap-2`,children:[(0,v.jsx)(p,{readOnly:!0,value:i.operationToken,className:`font-mono text-xs`,onClick:()=>h(i.operationToken)}),(0,v.jsx)(n,{type:`button`,size:`icon`,variant:`ghost`,className:`shrink-0`,"aria-label":`Copy token`,onClick:()=>h(i.operationToken),children:(0,v.jsx)(d,{})})]})]})]})}export{y as ApiTokenIndex};
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{i as t,t as n}from"./button-MFP9n8Ck.js";import{a as r}from"./vendor-datadog-fCQhBHGk.js";import{r as i}from"./vendor-react-izWchTRL.js";import{I as a}from"./vendor-tanstack-CQ1aRjVa.js";import{Br as o,Lr as s,Or as c,Rr as l,Vr as u,jr as d,on as f,yn as p,zr as m}from"./index-zZCxAIEb.js";async function h(){let{data:e}=await t.post(`/Admin/ApiToken`,{});return e}function g(){return a({mutationFn:h,gcTime:0})}var _=e(r(),1),v=i();function y(){let{mutate:e,isPending:t,reset:r}=g(),[i,a]=(0,_.useState)(null),h=f();return(0,v.jsxs)(`div`,{className:`max-w-2xl`,children:[(0,v.jsx)(`h1`,{className:`text-2xl font-light`,children:`API Token`}),(0,v.jsxs)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:[`Generate a short-lived token for programmatic API access. It authenticates as you, with your permissions. Send it as a bearer token:`,` `,(0,v.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`Authorization: Bearer <token>`})]}),(0,v.jsxs)(n,{className:`mt-4`,variant:`submit`,onClick:()=>{e(void 0,{onSuccess:e=>{a(e),r()}})},disabled:t,children:[(0,v.jsx)(c,{}),t?`Generating…`:`Generate token`]}),i&&(0,v.jsxs)(s,{className:`mt-6`,children:[(0,v.jsxs)(o,{children:[(0,v.jsx)(u,{children:`Your API token`}),(0,v.jsxs)(m,{children:[`Copy it now — it won't be shown again. Expires `,new Date(i.expiresAt).toLocaleString(),`.`]})]}),(0,v.jsxs)(l,{className:`flex items-center gap-2`,children:[(0,v.jsx)(p,{readOnly:!0,value:i.operationToken,className:`font-mono text-xs`,onClick:()=>h(i.operationToken)}),(0,v.jsx)(n,{type:`button`,size:`icon`,variant:`ghost`,className:`shrink-0`,"aria-label":`Copy token`,onClick:()=>h(i.operationToken),children:(0,v.jsx)(d,{})})]})]})]})}export{y as ApiTokenIndex};