@local-logic/sdks-app 1.24.40 → 1.24.41

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 (254) hide show
  1. package/dist/assets/{Attribution-1Rs_lSaP.js → Attribution-BFX5_TA0.js} +2 -2
  2. package/dist/assets/{Attribution-1Rs_lSaP.js.map → Attribution-BFX5_TA0.js.map} +1 -1
  3. package/dist/assets/{Attribution-legacy-z2BjL7p0.js → Attribution-legacy-CdR3a3DX.js} +2 -2
  4. package/dist/assets/{Attribution-legacy-z2BjL7p0.js.map → Attribution-legacy-CdR3a3DX.js.map} +1 -1
  5. package/dist/assets/{Cluster-BHQcO6iC-xa0oCXAy.js → Cluster-BHQcO6iC-BOZz2skE.js} +2 -2
  6. package/dist/assets/{Cluster-BHQcO6iC-xa0oCXAy.js.map → Cluster-BHQcO6iC-BOZz2skE.js.map} +1 -1
  7. package/dist/assets/{Cluster-BHQcO6iC-legacy-Bybijjfk.js → Cluster-BHQcO6iC-legacy-B_rK_gsZ.js} +2 -2
  8. package/dist/assets/{Cluster-BHQcO6iC-legacy-Bybijjfk.js.map → Cluster-BHQcO6iC-legacy-B_rK_gsZ.js.map} +1 -1
  9. package/dist/assets/{Google-CH7a2yx--ovYZ-h3M.js → Google-CH7a2yx--DwQd7dvh.js} +2 -2
  10. package/dist/assets/{Google-CH7a2yx--ovYZ-h3M.js.map → Google-CH7a2yx--DwQd7dvh.js.map} +1 -1
  11. package/dist/assets/{Google-CH7a2yx--legacy-C6u2uwAw.js → Google-CH7a2yx--legacy-C0xakqb8.js} +2 -2
  12. package/dist/assets/{Google-CH7a2yx--legacy-C6u2uwAw.js.map → Google-CH7a2yx--legacy-C0xakqb8.js.map} +1 -1
  13. package/dist/assets/{Google-CXGCn-oJ-BXFc5F9y.js → Google-CXGCn-oJ-Dh7vAF1i.js} +2 -2
  14. package/dist/assets/{Google-CXGCn-oJ-BXFc5F9y.js.map → Google-CXGCn-oJ-Dh7vAF1i.js.map} +1 -1
  15. package/dist/assets/{Google-CXGCn-oJ-legacy-Bv9lya5C.js → Google-CXGCn-oJ-legacy-B35yyRBB.js} +2 -2
  16. package/dist/assets/{Google-CXGCn-oJ-legacy-Bv9lya5C.js.map → Google-CXGCn-oJ-legacy-B35yyRBB.js.map} +1 -1
  17. package/dist/assets/{Google-D1kMMDIv-CyqUDjcJ.js → Google-D1kMMDIv-CAaNq2xc.js} +2 -2
  18. package/dist/assets/{Google-D1kMMDIv-CyqUDjcJ.js.map → Google-D1kMMDIv-CAaNq2xc.js.map} +1 -1
  19. package/dist/assets/{Google-D1kMMDIv-legacy-DKdnDC4w.js → Google-D1kMMDIv-legacy-CwFf8lIw.js} +2 -2
  20. package/dist/assets/{Google-D1kMMDIv-legacy-DKdnDC4w.js.map → Google-D1kMMDIv-legacy-CwFf8lIw.js.map} +1 -1
  21. package/dist/assets/{Google-DScXSvYv-legacy-BOwywVA7.js → Google-DScXSvYv-legacy-DEJ7UsBu.js} +2 -2
  22. package/dist/assets/{Google-DScXSvYv-legacy-BOwywVA7.js.map → Google-DScXSvYv-legacy-DEJ7UsBu.js.map} +1 -1
  23. package/dist/assets/{Google-DScXSvYv-CMLGBG91.js → Google-DScXSvYv-qp1ruzZ-.js} +2 -2
  24. package/dist/assets/{Google-DScXSvYv-CMLGBG91.js.map → Google-DScXSvYv-qp1ruzZ-.js.map} +1 -1
  25. package/dist/assets/{Google-qvGtRAuh-PwpE9X2p.js → Google-qvGtRAuh-CubndKzb.js} +2 -2
  26. package/dist/assets/{Google-qvGtRAuh-PwpE9X2p.js.map → Google-qvGtRAuh-CubndKzb.js.map} +1 -1
  27. package/dist/assets/{Google-qvGtRAuh-legacy-DzpIwQOn.js → Google-qvGtRAuh-legacy-CDAA2PYJ.js} +2 -2
  28. package/dist/assets/{Google-qvGtRAuh-legacy-DzpIwQOn.js.map → Google-qvGtRAuh-legacy-CDAA2PYJ.js.map} +1 -1
  29. package/dist/assets/{GridGraph-BtocIeP6.js → GridGraph-Ce2K4lJE.js} +2 -2
  30. package/dist/assets/{GridGraph-BtocIeP6.js.map → GridGraph-Ce2K4lJE.js.map} +1 -1
  31. package/dist/assets/{GridGraph-legacy-BjpzUUXY.js → GridGraph-legacy-QpuvSlS4.js} +2 -2
  32. package/dist/assets/{GridGraph-legacy-BjpzUUXY.js.map → GridGraph-legacy-QpuvSlS4.js.map} +1 -1
  33. package/dist/assets/{LeadCapture-C6J4SFYX.js → LeadCapture-DQ_u-trr.js} +2 -2
  34. package/dist/assets/{LeadCapture-C6J4SFYX.js.map → LeadCapture-DQ_u-trr.js.map} +1 -1
  35. package/dist/assets/{LeadCapture-legacy-CvtD-JLs.js → LeadCapture-legacy-9N32vfea.js} +2 -2
  36. package/dist/assets/{LeadCapture-legacy-CvtD-JLs.js.map → LeadCapture-legacy-9N32vfea.js.map} +1 -1
  37. package/dist/assets/{LocalContent-D_By1RQx.js → LocalContent-2pJKWECA.js} +2 -2
  38. package/dist/assets/{LocalContent-D_By1RQx.js.map → LocalContent-2pJKWECA.js.map} +1 -1
  39. package/dist/assets/{LocalContent-legacy-ySWyVUnO.js → LocalContent-legacy-DPfe8JRY.js} +2 -2
  40. package/dist/assets/{LocalContent-legacy-ySWyVUnO.js.map → LocalContent-legacy-DPfe8JRY.js.map} +1 -1
  41. package/dist/assets/{LocalDemographics-DJ2-OAQf.js → LocalDemographics-CCLrxAlH.js} +2 -2
  42. package/dist/assets/{LocalDemographics-DJ2-OAQf.js.map → LocalDemographics-CCLrxAlH.js.map} +1 -1
  43. package/dist/assets/{LocalDemographics-legacy-BdndzMcL.js → LocalDemographics-legacy-BpeV7vKR.js} +2 -2
  44. package/dist/assets/{LocalDemographics-legacy-BdndzMcL.js.map → LocalDemographics-legacy-BpeV7vKR.js.map} +1 -1
  45. package/dist/assets/{Mapbox-B7oionsm-uR5IXeyy.js → Mapbox-B7oionsm-KJ9BTAVS.js} +2 -2
  46. package/dist/assets/{Mapbox-B7oionsm-uR5IXeyy.js.map → Mapbox-B7oionsm-KJ9BTAVS.js.map} +1 -1
  47. package/dist/assets/{Mapbox-B7oionsm-legacy-DbFnvW90.js → Mapbox-B7oionsm-legacy-DOVfzEvQ.js} +2 -2
  48. package/dist/assets/{Mapbox-B7oionsm-legacy-DbFnvW90.js.map → Mapbox-B7oionsm-legacy-DOVfzEvQ.js.map} +1 -1
  49. package/dist/assets/{Mapbox-CIislOVu-_SCNyNvm.js → Mapbox-CIislOVu-CI4DWbq-.js} +2 -2
  50. package/dist/assets/{Mapbox-CIislOVu-_SCNyNvm.js.map → Mapbox-CIislOVu-CI4DWbq-.js.map} +1 -1
  51. package/dist/assets/{Mapbox-CIislOVu-legacy-BFRdB1ZB.js → Mapbox-CIislOVu-legacy-BE7lsxI8.js} +2 -2
  52. package/dist/assets/{Mapbox-CIislOVu-legacy-BFRdB1ZB.js.map → Mapbox-CIislOVu-legacy-BE7lsxI8.js.map} +1 -1
  53. package/dist/assets/{Mapbox-DDJ1gHRb-DEMJ-azB.js → Mapbox-DDJ1gHRb-1dK4LbZk.js} +2 -2
  54. package/dist/assets/{Mapbox-DDJ1gHRb-DEMJ-azB.js.map → Mapbox-DDJ1gHRb-1dK4LbZk.js.map} +1 -1
  55. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-FX0OT-av.js → Mapbox-DDJ1gHRb-legacy-p6YhQitU.js} +2 -2
  56. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-FX0OT-av.js.map → Mapbox-DDJ1gHRb-legacy-p6YhQitU.js.map} +1 -1
  57. package/dist/assets/{Mapbox-DtZmt1D_-CylJOr0s.js → Mapbox-DtZmt1D_-BfV4qnN4.js} +2 -2
  58. package/dist/assets/{Mapbox-DtZmt1D_-CylJOr0s.js.map → Mapbox-DtZmt1D_-BfV4qnN4.js.map} +1 -1
  59. package/dist/assets/{Mapbox-DtZmt1D_-legacy-CEf_t8Ho.js → Mapbox-DtZmt1D_-legacy-Dd0GlX-Y.js} +2 -2
  60. package/dist/assets/{Mapbox-DtZmt1D_-legacy-CEf_t8Ho.js.map → Mapbox-DtZmt1D_-legacy-Dd0GlX-Y.js.map} +1 -1
  61. package/dist/assets/{Mapbox-vp91lH9I-2azJqyBH.js → Mapbox-vp91lH9I-CkAfe1Ca.js} +2 -2
  62. package/dist/assets/{Mapbox-vp91lH9I-2azJqyBH.js.map → Mapbox-vp91lH9I-CkAfe1Ca.js.map} +1 -1
  63. package/dist/assets/{Mapbox-vp91lH9I-legacy-DPw2IdjJ.js → Mapbox-vp91lH9I-legacy-B00zbfjv.js} +2 -2
  64. package/dist/assets/{Mapbox-vp91lH9I-legacy-DPw2IdjJ.js.map → Mapbox-vp91lH9I-legacy-B00zbfjv.js.map} +1 -1
  65. package/dist/assets/{Maptiler-BQliPE7n-fHYr_Sy8.js → Maptiler-BQliPE7n-B4cS19Fa.js} +2 -2
  66. package/dist/assets/{Maptiler-BQliPE7n-fHYr_Sy8.js.map → Maptiler-BQliPE7n-B4cS19Fa.js.map} +1 -1
  67. package/dist/assets/{Maptiler-BQliPE7n-legacy-eo7KI-_O.js → Maptiler-BQliPE7n-legacy-DBnYfT32.js} +2 -2
  68. package/dist/assets/{Maptiler-BQliPE7n-legacy-eo7KI-_O.js.map → Maptiler-BQliPE7n-legacy-DBnYfT32.js.map} +1 -1
  69. package/dist/assets/{Maptiler-BtYYeJoo-CTmdD2ZG.js → Maptiler-BtYYeJoo-Vhp1tVrO.js} +2 -2
  70. package/dist/assets/{Maptiler-BtYYeJoo-CTmdD2ZG.js.map → Maptiler-BtYYeJoo-Vhp1tVrO.js.map} +1 -1
  71. package/dist/assets/{Maptiler-BtYYeJoo-legacy-3OoLRcAt.js → Maptiler-BtYYeJoo-legacy-CHcjlox7.js} +2 -2
  72. package/dist/assets/{Maptiler-BtYYeJoo-legacy-3OoLRcAt.js.map → Maptiler-BtYYeJoo-legacy-CHcjlox7.js.map} +1 -1
  73. package/dist/assets/{Maptiler-Cy2r6w4G-CP-nhmYn.js → Maptiler-Cy2r6w4G-BhmMrh_F.js} +2 -2
  74. package/dist/assets/{Maptiler-Cy2r6w4G-CP-nhmYn.js.map → Maptiler-Cy2r6w4G-BhmMrh_F.js.map} +1 -1
  75. package/dist/assets/{Maptiler-Cy2r6w4G-legacy-ZYpf9l6D.js → Maptiler-Cy2r6w4G-legacy-Dtiu6fim.js} +2 -2
  76. package/dist/assets/{Maptiler-Cy2r6w4G-legacy-ZYpf9l6D.js.map → Maptiler-Cy2r6w4G-legacy-Dtiu6fim.js.map} +1 -1
  77. package/dist/assets/{Maptiler-DJScKW8p-Crd7Z6cV.js → Maptiler-DJScKW8p-B4sYvTN1.js} +2 -2
  78. package/dist/assets/{Maptiler-DJScKW8p-Crd7Z6cV.js.map → Maptiler-DJScKW8p-B4sYvTN1.js.map} +1 -1
  79. package/dist/assets/{Maptiler-DJScKW8p-legacy-CtCw_AMy.js → Maptiler-DJScKW8p-legacy-BfcUaZSe.js} +2 -2
  80. package/dist/assets/{Maptiler-DJScKW8p-legacy-CtCw_AMy.js.map → Maptiler-DJScKW8p-legacy-BfcUaZSe.js.map} +1 -1
  81. package/dist/assets/{Maptiler-DqeshLom-CrkvMF_T.js → Maptiler-DqeshLom-Dj7UvFn7.js} +2 -2
  82. package/dist/assets/{Maptiler-DqeshLom-CrkvMF_T.js.map → Maptiler-DqeshLom-Dj7UvFn7.js.map} +1 -1
  83. package/dist/assets/{Maptiler-DqeshLom-legacy-DDfM5Hzg.js → Maptiler-DqeshLom-legacy-bBrlYN2Q.js} +2 -2
  84. package/dist/assets/{Maptiler-DqeshLom-legacy-DDfM5Hzg.js.map → Maptiler-DqeshLom-legacy-bBrlYN2Q.js.map} +1 -1
  85. package/dist/assets/{MarkerIcon-Bc3X9WQk-MIM92a-D.js → MarkerIcon-Bc3X9WQk-CGChV4D4.js} +2 -2
  86. package/dist/assets/{MarkerIcon-Bc3X9WQk-MIM92a-D.js.map → MarkerIcon-Bc3X9WQk-CGChV4D4.js.map} +1 -1
  87. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-Df6-FiGi.js → MarkerIcon-Bc3X9WQk-legacy-BhBhhwrP.js} +2 -2
  88. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-Df6-FiGi.js.map → MarkerIcon-Bc3X9WQk-legacy-BhBhhwrP.js.map} +1 -1
  89. package/dist/assets/{NeighborhoodCard-vYnzmXHM.js → NeighborhoodCard-BaGtTms0.js} +2 -2
  90. package/dist/assets/{NeighborhoodCard-vYnzmXHM.js.map → NeighborhoodCard-BaGtTms0.js.map} +1 -1
  91. package/dist/assets/{NeighborhoodCard-legacy-DFcfelXl.js → NeighborhoodCard-legacy-B9W6aCqR.js} +2 -2
  92. package/dist/assets/{NeighborhoodCard-legacy-DFcfelXl.js.map → NeighborhoodCard-legacy-B9W6aCqR.js.map} +1 -1
  93. package/dist/assets/{NeighborhoodCharacteristics-CKDqcqBD.js → NeighborhoodCharacteristics-D56qnuca.js} +2 -2
  94. package/dist/assets/{NeighborhoodCharacteristics-CKDqcqBD.js.map → NeighborhoodCharacteristics-D56qnuca.js.map} +1 -1
  95. package/dist/assets/{NeighborhoodCharacteristics-legacy-CLa_SgDg.js → NeighborhoodCharacteristics-legacy-DlowZFEG.js} +2 -2
  96. package/dist/assets/{NeighborhoodCharacteristics-legacy-CLa_SgDg.js.map → NeighborhoodCharacteristics-legacy-DlowZFEG.js.map} +1 -1
  97. package/dist/assets/{NeighborhoodDemographics-9bIYm41b.js → NeighborhoodDemographics-C0jX8lOM.js} +2 -2
  98. package/dist/assets/{NeighborhoodDemographics-9bIYm41b.js.map → NeighborhoodDemographics-C0jX8lOM.js.map} +1 -1
  99. package/dist/assets/{NeighborhoodDemographics-legacy-CS8oTDkw.js → NeighborhoodDemographics-legacy-CnNPTNnh.js} +2 -2
  100. package/dist/assets/{NeighborhoodDemographics-legacy-CS8oTDkw.js.map → NeighborhoodDemographics-legacy-CnNPTNnh.js.map} +1 -1
  101. package/dist/assets/{NeighborhoodFeatured-CqLcXNVj.js → NeighborhoodFeatured-Dy3pyH2M.js} +2 -2
  102. package/dist/assets/{NeighborhoodFeatured-CqLcXNVj.js.map → NeighborhoodFeatured-Dy3pyH2M.js.map} +1 -1
  103. package/dist/assets/{NeighborhoodFeatured-legacy-CUYFzaci.js → NeighborhoodFeatured-legacy-BEY92Bli.js} +2 -2
  104. package/dist/assets/{NeighborhoodFeatured-legacy-CUYFzaci.js.map → NeighborhoodFeatured-legacy-BEY92Bli.js.map} +1 -1
  105. package/dist/assets/{NeighborhoodHero-CvvE1ltz.js → NeighborhoodHero-Ccge3SCR.js} +2 -2
  106. package/dist/assets/{NeighborhoodHero-CvvE1ltz.js.map → NeighborhoodHero-Ccge3SCR.js.map} +1 -1
  107. package/dist/assets/{NeighborhoodHero-legacy-D1mVa22Q.js → NeighborhoodHero-legacy-Cb5s0tRe.js} +2 -2
  108. package/dist/assets/{NeighborhoodHero-legacy-D1mVa22Q.js.map → NeighborhoodHero-legacy-Cb5s0tRe.js.map} +1 -1
  109. package/dist/assets/{NeighborhoodHighlights-CZPdH88M.js → NeighborhoodHighlights-BFiTF1H2.js} +2 -2
  110. package/dist/assets/{NeighborhoodHighlights-CZPdH88M.js.map → NeighborhoodHighlights-BFiTF1H2.js.map} +1 -1
  111. package/dist/assets/{NeighborhoodHighlights-legacy-D9U7NrXB.js → NeighborhoodHighlights-legacy-BQJvJ1kW.js} +2 -2
  112. package/dist/assets/{NeighborhoodHighlights-legacy-D9U7NrXB.js.map → NeighborhoodHighlights-legacy-BQJvJ1kW.js.map} +1 -1
  113. package/dist/assets/{NeighborhoodMap-CW5YonYt.js → NeighborhoodMap-Cs2mW6eY.js} +2 -2
  114. package/dist/assets/{NeighborhoodMap-CW5YonYt.js.map → NeighborhoodMap-Cs2mW6eY.js.map} +1 -1
  115. package/dist/assets/{NeighborhoodMap-legacy-DJc98Olx.js → NeighborhoodMap-legacy-ItxtWyNg.js} +2 -2
  116. package/dist/assets/{NeighborhoodMap-legacy-DJc98Olx.js.map → NeighborhoodMap-legacy-ItxtWyNg.js.map} +1 -1
  117. package/dist/assets/{NeighborhoodMarketTrends-C9k7JehA.js → NeighborhoodMarketTrends-BPFS-IP7.js} +3 -3
  118. package/dist/assets/{NeighborhoodMarketTrends-C9k7JehA.js.map → NeighborhoodMarketTrends-BPFS-IP7.js.map} +1 -1
  119. package/dist/assets/{NeighborhoodMarketTrends-legacy-2bMV1Qzk.js → NeighborhoodMarketTrends-legacy-BFUSfWBV.js} +2 -2
  120. package/dist/assets/{NeighborhoodMarketTrends-legacy-2bMV1Qzk.js.map → NeighborhoodMarketTrends-legacy-BFUSfWBV.js.map} +1 -1
  121. package/dist/assets/{NeighborhoodMatch-D1Ih_N5y.js → NeighborhoodMatch-DyGrO6rV.js} +2 -2
  122. package/dist/assets/{NeighborhoodMatch-D1Ih_N5y.js.map → NeighborhoodMatch-DyGrO6rV.js.map} +1 -1
  123. package/dist/assets/{NeighborhoodMatch-legacy-JIbRT5P5.js → NeighborhoodMatch-legacy-Dk7eubJO.js} +2 -2
  124. package/dist/assets/{NeighborhoodMatch-legacy-JIbRT5P5.js.map → NeighborhoodMatch-legacy-Dk7eubJO.js.map} +1 -1
  125. package/dist/assets/{NeighborhoodPropertyValueDrivers-BZqsNnYY.js → NeighborhoodPropertyValueDrivers-CkZQt4Un.js} +2 -2
  126. package/dist/assets/{NeighborhoodPropertyValueDrivers-BZqsNnYY.js.map → NeighborhoodPropertyValueDrivers-CkZQt4Un.js.map} +1 -1
  127. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-DFZzKasL.js → NeighborhoodPropertyValueDrivers-legacy-t-PsDc7H.js} +2 -2
  128. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-DFZzKasL.js.map → NeighborhoodPropertyValueDrivers-legacy-t-PsDc7H.js.map} +1 -1
  129. package/dist/assets/{NeighborhoodSchools-vdqXmI6x.js → NeighborhoodSchools-CYj0W8g4.js} +2 -2
  130. package/dist/assets/{NeighborhoodSchools-vdqXmI6x.js.map → NeighborhoodSchools-CYj0W8g4.js.map} +1 -1
  131. package/dist/assets/{NeighborhoodSchools-legacy-DZvrq0M0.js → NeighborhoodSchools-legacy-CIoYquJq.js} +2 -2
  132. package/dist/assets/{NeighborhoodSchools-legacy-DZvrq0M0.js.map → NeighborhoodSchools-legacy-CIoYquJq.js.map} +1 -1
  133. package/dist/assets/{NeighborhoodShowcase-IMXpKRt7.js → NeighborhoodShowcase-CHCSD8YZ.js} +2 -2
  134. package/dist/assets/{NeighborhoodShowcase-IMXpKRt7.js.map → NeighborhoodShowcase-CHCSD8YZ.js.map} +1 -1
  135. package/dist/assets/{NeighborhoodShowcase-legacy-DsybUJu-.js → NeighborhoodShowcase-legacy-DyZTfaNU.js} +2 -2
  136. package/dist/assets/{NeighborhoodShowcase-legacy-DsybUJu-.js.map → NeighborhoodShowcase-legacy-DyZTfaNU.js.map} +1 -1
  137. package/dist/assets/{NoDataContent-C0rYoHx-.js → NoDataContent-CEAzGzUq.js} +2 -2
  138. package/dist/assets/{NoDataContent-C0rYoHx-.js.map → NoDataContent-CEAzGzUq.js.map} +1 -1
  139. package/dist/assets/{NoDataContent-legacy-KJTrIi_f.js → NoDataContent-legacy-DT86maak.js} +2 -2
  140. package/dist/assets/{NoDataContent-legacy-KJTrIi_f.js.map → NoDataContent-legacy-DT86maak.js.map} +1 -1
  141. package/dist/assets/{ResizeWrapper-C7FI0ut2.js → ResizeWrapper-D7ns3o39.js} +2 -2
  142. package/dist/assets/{ResizeWrapper-C7FI0ut2.js.map → ResizeWrapper-D7ns3o39.js.map} +1 -1
  143. package/dist/assets/{ResizeWrapper-legacy-CxGgsSO0.js → ResizeWrapper-legacy-DibF7KTC.js} +2 -2
  144. package/dist/assets/{ResizeWrapper-legacy-CxGgsSO0.js.map → ResizeWrapper-legacy-DibF7KTC.js.map} +1 -1
  145. package/dist/assets/{ScoreCardList-Cpdc2cjx.js → ScoreCardList-BYAr0xig.js} +2 -2
  146. package/dist/assets/{ScoreCardList-Cpdc2cjx.js.map → ScoreCardList-BYAr0xig.js.map} +1 -1
  147. package/dist/assets/{ScoreCardList-legacy-CEYUmBc-.js → ScoreCardList-legacy-Db7k9lb3.js} +2 -2
  148. package/dist/assets/{ScoreCardList-legacy-CEYUmBc-.js.map → ScoreCardList-legacy-Db7k9lb3.js.map} +1 -1
  149. package/dist/assets/{ScoreIcon-t1E2TT1n.js → ScoreIcon-CWGLoE_R.js} +2 -2
  150. package/dist/assets/{ScoreIcon-t1E2TT1n.js.map → ScoreIcon-CWGLoE_R.js.map} +1 -1
  151. package/dist/assets/{ScoreIcon-legacy-DkcfBQiQ.js → ScoreIcon-legacy-DGUI0vRG.js} +2 -2
  152. package/dist/assets/{ScoreIcon-legacy-DkcfBQiQ.js.map → ScoreIcon-legacy-DGUI0vRG.js.map} +1 -1
  153. package/dist/assets/{Testing--n5Ro0Ek-BsPetIU5.js → Testing--n5Ro0Ek-DXRiz8JT.js} +2 -2
  154. package/dist/assets/{Testing--n5Ro0Ek-BsPetIU5.js.map → Testing--n5Ro0Ek-DXRiz8JT.js.map} +1 -1
  155. package/dist/assets/{Testing--n5Ro0Ek-legacy-CsbvD4x2.js → Testing--n5Ro0Ek-legacy-B6FpaP3L.js} +2 -2
  156. package/dist/assets/{Testing--n5Ro0Ek-legacy-CsbvD4x2.js.map → Testing--n5Ro0Ek-legacy-B6FpaP3L.js.map} +1 -1
  157. package/dist/assets/{Testing-BNJwzbRK-BEmMvKs-.js → Testing-BNJwzbRK-VAOz2xBT.js} +2 -2
  158. package/dist/assets/{Testing-BNJwzbRK-BEmMvKs-.js.map → Testing-BNJwzbRK-VAOz2xBT.js.map} +1 -1
  159. package/dist/assets/{Testing-BNJwzbRK-legacy-CyJlRp16.js → Testing-BNJwzbRK-legacy-CcRLjo0P.js} +2 -2
  160. package/dist/assets/{Testing-BNJwzbRK-legacy-CyJlRp16.js.map → Testing-BNJwzbRK-legacy-CcRLjo0P.js.map} +1 -1
  161. package/dist/assets/{Testing-CoRLhmNT-CPD-TUoo.js → Testing-CoRLhmNT-DkH9taDM.js} +2 -2
  162. package/dist/assets/{Testing-CoRLhmNT-CPD-TUoo.js.map → Testing-CoRLhmNT-DkH9taDM.js.map} +1 -1
  163. package/dist/assets/{Testing-CoRLhmNT-legacy-DfgW_o9l.js → Testing-CoRLhmNT-legacy-D75s8djK.js} +2 -2
  164. package/dist/assets/{Testing-CoRLhmNT-legacy-DfgW_o9l.js.map → Testing-CoRLhmNT-legacy-D75s8djK.js.map} +1 -1
  165. package/dist/assets/{Testing-DGUeGxdc-BdjxCDn4.js → Testing-DGUeGxdc-dBjPjKfX.js} +2 -2
  166. package/dist/assets/{Testing-DGUeGxdc-BdjxCDn4.js.map → Testing-DGUeGxdc-dBjPjKfX.js.map} +1 -1
  167. package/dist/assets/{Testing-DGUeGxdc-legacy-BMmCiaA9.js → Testing-DGUeGxdc-legacy-Bo3xf4lS.js} +2 -2
  168. package/dist/assets/{Testing-DGUeGxdc-legacy-BMmCiaA9.js.map → Testing-DGUeGxdc-legacy-Bo3xf4lS.js.map} +1 -1
  169. package/dist/assets/{Testing-DzWAcbhL-D9IV0vyX.js → Testing-DzWAcbhL-CORqap_0.js} +2 -2
  170. package/dist/assets/{Testing-DzWAcbhL-D9IV0vyX.js.map → Testing-DzWAcbhL-CORqap_0.js.map} +1 -1
  171. package/dist/assets/{Testing-DzWAcbhL-legacy-ByYDbJ2R.js → Testing-DzWAcbhL-legacy-C_L0YDrv.js} +2 -2
  172. package/dist/assets/{Testing-DzWAcbhL-legacy-ByYDbJ2R.js.map → Testing-DzWAcbhL-legacy-C_L0YDrv.js.map} +1 -1
  173. package/dist/assets/{TitleHeader-legacy-BLb6gLY8.js → TitleHeader-legacy-Dkn0qrYi.js} +2 -2
  174. package/dist/assets/{TitleHeader-legacy-BLb6gLY8.js.map → TitleHeader-legacy-Dkn0qrYi.js.map} +1 -1
  175. package/dist/assets/{TitleHeader-D5FOkV2k.js → TitleHeader-q22P7nGv.js} +2 -2
  176. package/dist/assets/{TitleHeader-D5FOkV2k.js.map → TitleHeader-q22P7nGv.js.map} +1 -1
  177. package/dist/assets/{Trans-D7Lw95-5.js → Trans-CoQWpfjg.js} +2 -2
  178. package/dist/assets/{Trans-D7Lw95-5.js.map → Trans-CoQWpfjg.js.map} +1 -1
  179. package/dist/assets/{Trans-legacy-CpzDXXlm.js → Trans-legacy-CVX9qUZX.js} +2 -2
  180. package/dist/assets/{Trans-legacy-CpzDXXlm.js.map → Trans-legacy-CVX9qUZX.js.map} +1 -1
  181. package/dist/assets/{ValidateOptions-DO60DBsp.js → ValidateOptions-CBV1N5jv.js} +2 -2
  182. package/dist/assets/{ValidateOptions-DO60DBsp.js.map → ValidateOptions-CBV1N5jv.js.map} +1 -1
  183. package/dist/assets/{ValidateOptions-legacy-3q4kbk3m.js → ValidateOptions-legacy-DSqr0GvA.js} +2 -2
  184. package/dist/assets/{ValidateOptions-legacy-3q4kbk3m.js.map → ValidateOptions-legacy-DSqr0GvA.js.map} +1 -1
  185. package/dist/assets/{dist-DR7fC17q.js → dist-BS0nF9v1.js} +2 -2
  186. package/dist/assets/{dist-DR7fC17q.js.map → dist-BS0nF9v1.js.map} +1 -1
  187. package/dist/assets/{dist-legacy-cfZE5xAd.js → dist-legacy-DvNzEKrH.js} +2 -2
  188. package/dist/assets/{dist-legacy-cfZE5xAd.js.map → dist-legacy-DvNzEKrH.js.map} +1 -1
  189. package/dist/assets/{getMapProviderConfig-CioaIqLl.js → getMapProviderConfig-Bzfs0Sdc.js} +3 -3
  190. package/dist/assets/{getMapProviderConfig-CioaIqLl.js.map → getMapProviderConfig-Bzfs0Sdc.js.map} +1 -1
  191. package/dist/assets/{getMapProviderConfig-legacy-Bvhnps7J.js → getMapProviderConfig-legacy-J1T1rgyn.js} +2 -2
  192. package/dist/assets/{getMapProviderConfig-legacy-Bvhnps7J.js.map → getMapProviderConfig-legacy-J1T1rgyn.js.map} +1 -1
  193. package/dist/assets/{index-Bs6_tEDn.js → index-_e6zO9FA.js} +3 -3
  194. package/dist/assets/{index-Bs6_tEDn.js.map → index-_e6zO9FA.js.map} +1 -1
  195. package/dist/assets/{index-legacy-4jEyS75d.js → index-legacy-D77-aBOf.js} +2 -2
  196. package/dist/assets/{index-legacy-4jEyS75d.js.map → index-legacy-D77-aBOf.js.map} +1 -1
  197. package/dist/assets/{index.es-DqsbUu3C.js → index.es-CWTeuLFE.js} +2 -2
  198. package/dist/assets/{index.es-DqsbUu3C.js.map → index.es-CWTeuLFE.js.map} +1 -1
  199. package/dist/assets/{index.es-legacy-D0YewKKM.js → index.es-legacy-C0a6QEDw.js} +2 -2
  200. package/dist/assets/{index.es-legacy-D0YewKKM.js.map → index.es-legacy-C0a6QEDw.js.map} +1 -1
  201. package/dist/assets/{mapbox-jb8Zev6T-C9a-fLxp.js → mapbox-jb8Zev6T-Ddgqj9VI.js} +2 -2
  202. package/dist/assets/{mapbox-jb8Zev6T-C9a-fLxp.js.map → mapbox-jb8Zev6T-Ddgqj9VI.js.map} +1 -1
  203. package/dist/assets/{mapbox-jb8Zev6T-legacy-C5JRCz3k.js → mapbox-jb8Zev6T-legacy-vMWDQC6s.js} +2 -2
  204. package/dist/assets/{mapbox-jb8Zev6T-legacy-C5JRCz3k.js.map → mapbox-jb8Zev6T-legacy-vMWDQC6s.js.map} +1 -1
  205. package/dist/assets/{maplibre-CUYkxr-D-DB5uPmy7.js → maplibre-CUYkxr-D-C7Skcfn8.js} +2 -2
  206. package/dist/assets/{maplibre-CUYkxr-D-DB5uPmy7.js.map → maplibre-CUYkxr-D-C7Skcfn8.js.map} +1 -1
  207. package/dist/assets/{maplibre-CUYkxr-D-legacy-BrYegJJb.js → maplibre-CUYkxr-D-legacy-CuAPk6TP.js} +2 -2
  208. package/dist/assets/{maplibre-CUYkxr-D-legacy-BrYegJJb.js.map → maplibre-CUYkxr-D-legacy-CuAPk6TP.js.map} +1 -1
  209. package/dist/assets/neighborhood-fallback-CizB5oi9.js.map +1 -1
  210. package/dist/assets/neighborhood-fallback-legacy-Bu1BwGpC.js.map +1 -1
  211. package/dist/assets/sdks-BuksrzcW.js +2 -0
  212. package/dist/assets/sdks-BuksrzcW.js.map +1 -0
  213. package/dist/assets/sdks-legacy-CoLf_W4Z.js +2 -0
  214. package/dist/assets/sdks-legacy-CoLf_W4Z.js.map +1 -0
  215. package/dist/assets/{useDemographicsData-C0C4upsm.js → useDemographicsData-B4it1cPj.js} +2 -2
  216. package/dist/assets/{useDemographicsData-C0C4upsm.js.map → useDemographicsData-B4it1cPj.js.map} +1 -1
  217. package/dist/assets/{useDemographicsData-legacy-DPnr3Jmh.js → useDemographicsData-legacy-BYnQNjDv.js} +2 -2
  218. package/dist/assets/{useDemographicsData-legacy-DPnr3Jmh.js.map → useDemographicsData-legacy-BYnQNjDv.js.map} +1 -1
  219. package/dist/assets/{useGeographies-Dsip5TUe.js → useGeographies-h5AWa9mj.js} +2 -2
  220. package/dist/assets/{useGeographies-Dsip5TUe.js.map → useGeographies-h5AWa9mj.js.map} +1 -1
  221. package/dist/assets/{useGeographies-legacy-CZm4sQ-W.js → useGeographies-legacy-D7XUaxgU.js} +2 -2
  222. package/dist/assets/{useGeographies-legacy-CZm4sQ-W.js.map → useGeographies-legacy-D7XUaxgU.js.map} +1 -1
  223. package/dist/assets/{useIsMobile-D1ppstVc.js → useIsMobile-CEgZCKoT.js} +2 -2
  224. package/dist/assets/{useIsMobile-D1ppstVc.js.map → useIsMobile-CEgZCKoT.js.map} +1 -1
  225. package/dist/assets/{useIsMobile-legacy-BCGf3xRg.js → useIsMobile-legacy-BYXlMXeW.js} +2 -2
  226. package/dist/assets/{useIsMobile-legacy-BCGf3xRg.js.map → useIsMobile-legacy-BYXlMXeW.js.map} +1 -1
  227. package/dist/assets/{useLocation-woeqoUC-.js → useLocation-KxuXzpB1.js} +2 -2
  228. package/dist/assets/{useLocation-woeqoUC-.js.map → useLocation-KxuXzpB1.js.map} +1 -1
  229. package/dist/assets/{useLocation-legacy-CrONniQb.js → useLocation-legacy-TYbGg3Qq.js} +2 -2
  230. package/dist/assets/{useLocation-legacy-CrONniQb.js.map → useLocation-legacy-TYbGg3Qq.js.map} +1 -1
  231. package/dist/assets/{useProfiles-BD0axzG_.js → useProfiles-BMZF6PTl.js} +2 -2
  232. package/dist/assets/{useProfiles-BD0axzG_.js.map → useProfiles-BMZF6PTl.js.map} +1 -1
  233. package/dist/assets/{useProfiles-legacy-xMXLwJ8a.js → useProfiles-legacy-CtdD2AM8.js} +2 -2
  234. package/dist/assets/{useProfiles-legacy-xMXLwJ8a.js.map → useProfiles-legacy-CtdD2AM8.js.map} +1 -1
  235. package/dist/assets/{useSchools-Bp4ifAPV.js → useSchools-Dmfxgddk.js} +2 -2
  236. package/dist/assets/{useSchools-Bp4ifAPV.js.map → useSchools-Dmfxgddk.js.map} +1 -1
  237. package/dist/assets/{useSchools-legacy-CBF47OQq.js → useSchools-legacy-CBA1yga4.js} +2 -2
  238. package/dist/assets/{useSchools-legacy-CBF47OQq.js.map → useSchools-legacy-CBA1yga4.js.map} +1 -1
  239. package/dist/assets/{useScores-C3u-1G5Q.js → useScores-BYEwsLLe.js} +2 -2
  240. package/dist/assets/{useScores-C3u-1G5Q.js.map → useScores-BYEwsLLe.js.map} +1 -1
  241. package/dist/assets/{useScores-legacy-DlQbFEJD.js → useScores-legacy-CCbzbNWr.js} +2 -2
  242. package/dist/assets/{useScores-legacy-DlQbFEJD.js.map → useScores-legacy-CCbzbNWr.js.map} +1 -1
  243. package/dist/index.html +2 -2
  244. package/dist/types/tracking/tracker/index.d.ts.map +1 -1
  245. package/dist/types/tracking/tracker/index.js +15 -0
  246. package/dist/types/tracking/tracker/index.js.map +1 -1
  247. package/dist/types/utils/errorTracker/index.d.ts.map +1 -1
  248. package/dist/types/utils/errorTracker/index.js +7 -8
  249. package/dist/types/utils/errorTracker/index.js.map +1 -1
  250. package/package.json +2 -1
  251. package/dist/assets/sdks-BLrYTJCI.js +0 -2
  252. package/dist/assets/sdks-BLrYTJCI.js.map +0 -1
  253. package/dist/assets/sdks-legacy-BKNGokn5.js +0 -2
  254. package/dist/assets/sdks-legacy-BKNGokn5.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{a as t,i as e,n,r as i}from"./rolldown-runtime-C_ttsnZz.js";import{l as s}from"./google-maps-vendor-DvfEEdRU.js";import{t as o}from"./Trans-D7Lw95-5.js";import{a as r,d as a,h as l,l as u,m as h,n as c,o as d,r as p,s as m,t as f,u as g}from"./sdks-BLrYTJCI.js";import{t as v}from"./MagnifyingGlass.es-CEBdL4tD.js";import{B as y,_t as x,n as b,q as w,r as P,t as S}from"./index-Bs6_tEDn.js";import{t as T}from"./ResizeWrapper-C7FI0ut2.js";import{t as A}from"./ValidateOptions-DO60DBsp.js";import{t as E}from"./useIsMobile-D1ppstVc.js";/* empty css */import{n as C,r as k,t as V}from"./NeighborhoodCard-vYnzmXHM.js";var D=t(s(),1),M={dev:"https://api-qa.locallogic.co/neighborhood-management-v1",qa:"https://api-qa.locallogic.co/neighborhood-management-v1",prod:"https://api.locallogic.co/neighborhood-management-v1"};var R=function(t){return t.SDK_VIEWED="neighborhood-showcase-Viewed",t.NEIGHBORHOOD_CARD_CLICKED="neighborhood-gateway-Card-Clicked",t}({}),j=function(t){return t.SDK_VIEWED="sdk_viewed",t.NEIGHBORHOOD_CARD_CLICKED="neighborhood_gateway_Card_Clicked",t}({}),L=w(),F=D.createContext({}),B=()=>(0,D.useContext)(F),O=({children:t})=>{const{sdkState:e}=S(),n=m();P(()=>{n.postEvent({eventType:R.SDK_VIEWED}),n.trackAnalyticsEvent({eventName:j.SDK_VIEWED})});const{data:i,isFetched:s,isLoading:o}=function(){const{sdkState:t}=S(),e=M[t.globalOptions?.environment?.api||"prod"];return h({queryKey:["myNeighborhoods"],queryFn:async()=>fetch(`${e}/sdk/my-neighborhoods/${t?.globalOptions?.externalId}?include=configurations&page_size=100`,{headers:{Accept:"application/json",Authorization:t.apiKey,"x-ll-sdk-name":"neighborhood-showcase"},method:"GET"}).then(t=>{if([204,404].includes(t.status))return null;if(t.status>=300)throw new Error(`Request failed with status ${t.status}`);return t.json()}).then(e=>(e.neighborhoods?.value||[]).map(n=>k(t.globalOptions?.locale||"en",n,e.configurations[n.geog_id])).sort((t,e)=>t.name.localeCompare(e.name))).catch(t=>{x.captureException(t)}),enabled:!!t?.globalOptions?.externalId&&!!t.apiKey})}();if(!e.globalOptions?.externalId)throw new Error("externalId is required to launch the SDK");return(0,L.jsx)(F.Provider,{value:{isLoading:o,isFetched:s,myNeighborhoods:i,singleNeighborhoodURLSchema:e.options?.singleNeighborhoodURLSchema},children:t})};function I(){return(0,L.jsx)("div",{className:"w-full h-full flex justify-center align-cennter",children:(0,L.jsx)(y,{image:!0})})}function U(){const{t:t}=l("neighborhoodShowcase");return(0,L.jsx)("div",{className:"w-full h-full bg-ll-surface py-6 px-5 rounded-md text-ll-placeholder",children:(0,L.jsx)(o,{i18nKey:"noData",t:t,components:{LinkToHub:(0,L.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://hub.locallogic.co/neighborhood-management"}),bold:(0,L.jsx)("strong",{})}})})}var N=()=>{const{myNeighborhoods:t,singleNeighborhoodURLSchema:e,isFetched:n}=B(),{sdkState:i}=S(),s=i.options?.urlSchemaSpacer||"-";return n?t?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"\n grid gap-4\n grid-cols-1\n md:grid-cols-2\n lg:grid-cols-3\n xl:grid-cols-4\n",children:t?.map((t,n)=>(0,L.jsx)("div",{className:"\n w-full\n",children:(0,L.jsx)(V,{href:e&&C(e,t,s),neighborhood:t})},n))})}):(0,L.jsx)(U,{}):(0,L.jsx)(I,{})},$=(0,D.createContext)({});var W=(0,D.createContext)(null),K=(0,D.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var z="undefined"!=typeof window,H=z?D.useLayoutEffect:D.useEffect,Y=t=>t,q=Y,X=Y;function _(t){let e;return()=>(void 0===e&&(e=t()),e)}var G=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},Z=t=>1e3*t,J=t=>t/1e3,Q=!1,tt=!1;var et=["read","resolveKeyframes","update","preRender","render","postRender"];function nt(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=et.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=r,p=()=>{const o=tt?s.timestamp:performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:et.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<et.length;e++)r[et[e]].cancel(t)},state:s,steps:r}}var{schedule:it,cancel:st,state:ot,steps:rt}=nt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Y,!0),at=(0,D.createContext)({strict:!1}),lt={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"]},ut={};for(const Qa in lt)ut[Qa]={isEnabled:t=>lt[Qa].some(e=>!!t[e])};var ht=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","ignoreStrict","viewport"]);function ct(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ht.has(t)}function dt(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var pt,mt,ft,gt=n(()=>{}),vt=i({default:()=>mt}),yt=n(()=>{gt(),pt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mt=dt(function(t){return pt.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})}),xt=t=>!ct(t);try{(ft=(yt(),e(vt)).default)&&(xt=t=>t.startsWith("on")?!ct(t):ft(t))}catch(Ja){}function bt(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy((...e)=>t(...e),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}var wt=(0,D.createContext)({});function Pt(t){return"string"==typeof t||Array.isArray(t)}function St(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}var Tt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],At=["initial",...Tt];function Et(t){return St(t.animate)||At.some(e=>Pt(t[e]))}function Ct(t){return Boolean(Et(t)||t.variants)}function kt(t){const{initial:e,animate:n}=function(t,e){if(Et(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Pt(e)?e:void 0,animate:Pt(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,D.useContext)(wt));return(0,D.useMemo)(()=>({initial:e,animate:n}),[Vt(e),Vt(n)])}function Vt(t){return Array.isArray(t)?t.join(" "):t}var Dt=Symbol.for("motionComponentSymbol");function Mt(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Rt(t,e,n){return(0,D.useCallback)(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):Mt(n)&&(n.current=i))},[e])}var jt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lt="data-"+jt("framerAppearId"),{schedule:Ft,cancel:Bt}=nt(queueMicrotask,!1),Ot=(0,D.createContext)({});function It(t,e,n,i,s){var o,r;const{visualElement:a}=(0,D.useContext)(wt),l=(0,D.useContext)(at),u=(0,D.useContext)(W),h=(0,D.useContext)(K).reducedMotion,c=(0,D.useRef)(null);i=i||l.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));const d=c.current,p=(0,D.useContext)(Ot);!d||d.projection||!s||"html"!==d.type&&"svg"!==d.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ut(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Mt(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(c.current,n,s,p);const m=(0,D.useRef)(!1);(0,D.useInsertionEffect)(()=>{d&&m.current&&d.update(n,u)});const f=n[Lt],g=(0,D.useRef)(Boolean(f)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return H(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ft.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,D.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),g.current=!1))}),d}function Ut(t){if(t)return!1!==t.options.allowProjection?t.projection:Ut(t.parent)}function Nt({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){var o,r;function a(t,o){let r;const a={...(0,D.useContext)(K),...t,layoutId:$t(t)},{isStatic:l}=a,u=kt(t),h=i(t,l);if(!l&&z){(0,D.useContext)(at).strict;const t=function(t){const{drag:e,layout:n}=ut;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(a);r=t.MeasureLayout,u.visualElement=It(s,h,a,e,t.ProjectionNode)}return(0,L.jsxs)(wt.Provider,{value:u,children:[r&&u.visualElement?(0,L.jsx)(r,{visualElement:u.visualElement,...a}):null,n(s,t,Rt(h,u.visualElement,o),h,l,u.visualElement)]})}t&&function(t){for(const e in t)ut[e]={...ut[e],...t[e]}}(t),a.displayName=`motion.${"string"==typeof s?s:`create(${null!==(r=null!==(o=s.displayName)&&void 0!==o?o:s.name)&&void 0!==r?r:""})`}`;const l=(0,D.forwardRef)(a);return l[Dt]=s,l}function $t({layoutId:t}){const e=(0,D.useContext)($).id;return e&&void 0!==t?e+"-"+t:t}var Wt=["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 Kt(t){return"string"==typeof t&&!t.includes("-")&&!!(Wt.indexOf(t)>-1||/[A-Z]/u.test(t))}function zt(t){const e=[{},{}];return null==t||t.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Ht(t,e,n,i){if("function"==typeof e){const[s,o]=zt(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=zt(i);e=e(void 0!==n?n:t.custom,s,o)}return e}var Yt=t=>Array.isArray(t),qt=t=>Yt(t)?t[t.length-1]||0:t,Xt=t=>Boolean(t&&t.getVelocity);function _t(t){const e=Xt(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}var Gt=t=>(e,n)=>{const i=(0,D.useContext)(wt),s=(0,D.useContext)(W),o=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:Zt(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(t,e,i,s);return n?o():function(t){const e=(0,D.useRef)(null);return null===e.current&&(e.current=t()),e.current}(o)};function Zt(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=_t(o[d]);let{initial:r,animate:a}=t;const l=Et(t),u=Ct(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const c=h?a:r;if(c&&"boolean"!=typeof c&&!St(c)){const e=Array.isArray(c)?c:[c];for(let n=0;n<e.length;n++){const i=Ht(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[h?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}var Jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qt=new Set(Jt),te=t=>e=>"string"==typeof e&&e.startsWith(t),ee=te("--"),ne=te("var(--"),ie=t=>!!ne(t)&&se.test(t.split("/*")[0].trim()),se=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oe=(t,e)=>e&&"number"==typeof t?e.transform(t):t,re=(t,e,n)=>n>e?e:n<t?t:n,ae={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},le={...ae,transform:t=>re(0,1,t)},ue={...ae,default:1},he=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ce=he("deg"),de=he("%"),pe=he("px"),me=he("vh"),fe=he("vw"),ge={...de,parse:t=>de.parse(t)/100,transform:t=>de.transform(100*t)},ve={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},ye={rotate:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:ue,scaleX:ue,scaleY:ue,scaleZ:ue,skew:ce,skewX:ce,skewY:ce,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:le,originX:ge,originY:ge,originZ:pe},xe={...ae,transform:Math.round},be={...ve,...ye,zIndex:xe,size:pe,fillOpacity:le,strokeOpacity:le,numOctaves:xe},we={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pe=Jt.length;function Se(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(Qt.has(l))r=!0;else if(ee(l))s[l]=t;else{const e=oe(t,be[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<Pe;o++){const r=Jt[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=oe(a,be[r]);l||(s=!1,i+=`${we[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}var Te={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ae={offset:"strokeDashoffset",array:"strokeDasharray"};function Ee(t,e,n){return"string"==typeof t?t:pe.transform(e+n*t)}function Ce(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(Se(t,u,c),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Ee(e,t.x,t.width)} ${Ee(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Te:Ae;t[o.offset]=pe.transform(-i);const r=pe.transform(e),a=pe.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}var ke=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ve=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),De=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Me(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}var Re=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"]);function je(t,e,n,i){Me(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Re.has(s)?s:jt(s),e.attrs[s])}var Le={};function Fe(t,{layout:e,layoutId:n}){return Qt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Le[t]||"opacity"===t)}function Be(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(Xt(s[r])||e.style&&Xt(e.style[r])||Fe(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function Oe(t,e,n){const i=Be(t,e,n);for(const s in t)if(Xt(t[s])||Xt(e[s])){i[-1!==Jt.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}var Ie=["x","y","width","height","cx","cy","r"],Ue={useVisualState:Gt({scrapeMotionValuesFromProps:Oe,createRenderState:Ve,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const a in s)if(Qt.has(a)){o=!0;break}if(!o)return;let r=!e;if(e)for(let a=0;a<Ie.length;a++){const n=Ie[a];t[n]!==e[n]&&(r=!0)}r&&it.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(n){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),it.render(()=>{Ce(i,s,De(n.tagName),t.transformTemplate),je(n,i)})})}})},Ne={useVisualState:Gt({scrapeMotionValuesFromProps:Be,createRenderState:ke})};function $e(t,e,n){for(const i in e)Xt(e[i])||Fe(i,n)||(t[i]=e[i])}function We(t,e){const n={};return $e(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,D.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Se(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function Ke(t,e){const n={},i=We(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function ze(t,e,n,i){const s=(0,D.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ce(n,e,De(i),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};$e(e,t.style,t),s.style={...e,...s.style}}return s}function He(t=!1){return(e,n,i,{latestValues:s},o)=>{const r=(Kt(e)?ze:Ke)(n,s,o,e),a=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(xt(s)||!0===n&&ct(s)||!e&&!ct(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,t),l=e!==D.Fragment?{...a,...r,ref:i}:{},{children:u}=n,h=(0,D.useMemo)(()=>Xt(u)?u.get():u,[u]);return(0,D.createElement)(e,{...l,children:h})}}function Ye(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return Nt({...Kt(n)?Ue:Ne,preloadedFeatures:t,useRender:He(i),createVisualElement:e,Component:n})}}function qe(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Xe(t,e,n){const i=t.getProps();return Ht(i,e,void 0!==n?n:i.custom,t)}var _e=_(()=>void 0!==window.ScrollTimeline),Ge=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map(n=>_e()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0);return()=>{n.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},Ze=class extends Ge{then(t,e){return Promise.all(this.animations).then(t).catch(e)}};function Je(t,e){return t?t[e]||t.default||t:void 0}function Qe(t){let e=0;let n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}function tn(t){return"function"==typeof t}function en(t,e){t.timeline=e,t.onfinish=null}var nn=t=>Array.isArray(t)&&"number"==typeof t[0],sn={linearEasing:void 0};function on(t,e){const n=_(t);return()=>{var t;return null!==(t=sn[e])&&void 0!==t?t:n()}}var rn=on(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),an=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=t(G(0,s-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function ln(t){return Boolean("function"==typeof t&&rn()||!t||"string"==typeof t&&(t in hn||rn())||nn(t)||Array.isArray(t)&&t.every(ln))}var un=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:un([0,.65,.55,1]),circOut:un([.55,0,1,.45]),backIn:un([.31,.01,.66,-.59]),backOut:un([.33,1.53,.69,.99])};function cn(t,e){return t?"function"==typeof t&&rn()?an(t,e):nn(t)?un(t):Array.isArray(t)?t.map(t=>cn(t,e)||hn.easeOut):hn[t]:void 0}var dn={x:!1,y:!1};function pn(){return dn.x||dn.y}function mn(t,e){const n=function(t,e,n){var i;if(t instanceof Element)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);const o=null!==(i=null==n?void 0:n[t])&&void 0!==i?i:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function fn(t){return e=>{"touch"===e.pointerType||pn()||t(e)}}var gn=(t,e)=>!!e&&(t===e||gn(t,e.parentElement)),vn=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,yn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);var xn=new WeakSet;function bn(t){return e=>{"Enter"===e.key&&t(e)}}function wn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Pn(t){return vn(t)&&!pn()}function Sn(t,e,n={}){const[i,s,o]=mn(t,n),r=t=>{const i=t.currentTarget;if(!Pn(t)||xn.has(i))return;xn.add(i);const o=e(t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Pn(t)&&xn.has(i)&&(xn.delete(i),"function"==typeof o&&o(t,{success:e}))},a=t=>{r(t,n.useGlobalTarget||gn(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach(t=>{(function(t){return yn.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=bn(()=>{if(xn.has(n))return;wn(n,"down");const t=bn(()=>{wn(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>wn(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s),s)}),o}var Tn,An=new Set(["width","height","top","left","right","bottom",...Jt]);function En(){Tn=void 0}var Cn={now:()=>(void 0===Tn&&Cn.set(ot.isProcessing||tt?ot.timestamp:performance.now()),Tn),set:t=>{Tn=t,queueMicrotask(En)}};function kn(t,e){-1===t.indexOf(e)&&t.push(e)}function Vn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}var Dn=class{constructor(){this.subscriptions=[]}add(t){return kn(this.subscriptions,t),()=>Vn(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Mn(t,e){return e?t*(1e3/e):0}var Rn={current:void 0},jn=class{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Cn.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Cn.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Dn);const n=this.events[t].add(e);return"change"===t?()=>{n(),it.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Rn.current&&Rn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Cn.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Mn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ln(t,e){return new jn(t,e)}function Fn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ln(n))}function Bn(t,e){const n=t.getValue("willChange");if(i=n,Boolean(Xt(i)&&i.add))return n.add(e);var i}function On(t){return t.props[Lt]}var In=!1,Un=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Nn(t,e,n,i){if(t===e&&n===i)return Y;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=Un(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Un(s(t),e,i)}var $n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Wn=t=>e=>1-t(1-e),Kn=Nn(.33,1.53,.69,.99),zn=Wn(Kn),Hn=$n(zn),Yn=t=>(t*=2)<1?.5*zn(t):.5*(2-Math.pow(2,-10*(t-1))),qn=t=>1-Math.sin(Math.acos(t)),Xn=Wn(qn),_n=$n(qn),Gn=t=>/^0[^.\s]+$/u.test(t);function Zn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||Gn(t))}var Jn=t=>Math.round(1e5*t)/1e5,Qn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;var ti=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ei=(t,e)=>n=>Boolean("string"==typeof n&&ti.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),ni=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Qn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},ii={...ae,transform:t=>Math.round((t=>re(0,255,t))(t))},si={test:ei("rgb","red"),parse:ni("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+ii.transform(t)+", "+ii.transform(e)+", "+ii.transform(n)+", "+Jn(le.transform(i))+")"};var oi={test:ei("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:si.transform},ri={test:ei("hsl","hue"),parse:ni("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+de.transform(Jn(e))+", "+de.transform(Jn(n))+", "+Jn(le.transform(i))+")"},ai={test:t=>si.test(t)||oi.test(t)||ri.test(t),parse:t=>si.test(t)?si.parse(t):ri.test(t)?ri.parse(t):oi.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?si.transform(t):ri.transform(t)},li=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var ui="number",hi="color",ci=/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 di(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;return{values:n,split:e.replace(ci,t=>(ai.test(t)?(i.color.push(o),s.push(hi),n.push(ai.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(ui),n.push(parseFloat(t))),++o,"${}")).split("${}"),indexes:i,types:s}}function pi(t){return di(t).values}function mi(t){const{split:e,types:n}=di(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===ui?Jn(t[o]):e===hi?ai.transform(t[o]):t[o]}return s}}var fi=t=>"number"==typeof t?0:t;var gi={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(Qn))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(li))||void 0===n?void 0:n.length)||0)>0},parse:pi,createTransformer:mi,getAnimatableNone:function(t){const e=pi(t);return mi(t)(e.map(fi))}},vi=new Set(["brightness","contrast","saturate","opacity"]);function yi(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Qn)||[];if(!i)return t;const s=n.replace(i,"");let o=vi.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}var xi=/\b([a-z-]*)\(.*?\)/gu,bi={...gi,getAnimatableNone:t=>{const e=t.match(xi);return e?e.map(yi).join(" "):t}},wi={...be,color:ai,backgroundColor:ai,outlineColor:ai,fill:ai,stroke:ai,borderColor:ai,borderTopColor:ai,borderRightColor:ai,borderBottomColor:ai,borderLeftColor:ai,filter:bi,WebkitFilter:bi},Pi=t=>wi[t];function Si(t,e){let n=Pi(t);return n!==bi&&(n=gi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}var Ti=new Set(["auto","none","0"]);var Ai=t=>t===ae||t===pe,Ei=(t,e)=>parseFloat(t.split(", ")[e]),Ci=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Ei(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Ei(e[1],t):0}},ki=new Set(["x","y","z"]),Vi=Jt.filter(t=>!ki.has(t));var Di={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ci(4,13),y:Ci(5,14)};Di.translateX=Di.x,Di.translateY=Di.y;var Mi=new Set,Ri=!1,ji=!1;function Li(){if(ji){const t=Array.from(Mi).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Vi.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ji=!1,Ri=!1,Mi.forEach(t=>t.complete()),Mi.clear()}function Fi(){Mi.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ji=!0)})}var Bi=class{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Mi.add(this),Ri||(Ri=!0,it.read(Fi),it.resolveKeyframes(Li))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Mi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Mi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Oi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ii=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ui(t,e,n=1){X(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=Ii.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return Oi(t)?parseFloat(t):t}return ie(s)?Ui(s,e,n+1):s}var Ni=t=>e=>e.test(t),$i=[ae,pe,de,ce,fe,me,{test:t=>"auto"===t,parse:t=>t}],Wi=t=>$i.find(Ni(t)),Ki=class extends Bi{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),ie(n))){const i=Ui(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!An.has(n)||2!==t.length)return;const[i,s]=t,o=Wi(i),r=Wi(s);if(o!==r)if(Ai(o)&&Ai(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)Zn(t[i])&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Ti.has(e)&&di(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Si(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Di[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=Di[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},zi=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!gi.test(t)&&"0"!==t||t.startsWith("url(")));function Hi(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=zi(s,e),a=zi(o,e);return q(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||tn(n))&&i)}var Yi=t=>null!==t;function qi(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Yi),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}var Xi=class{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Cn.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Fi(),Li()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Cn.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Hi(t,n,i,s)){if(In||!o)return a&&a(qi(t,this.options,e)),r&&r(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}},_i=(t,e,n)=>t+(e-t)*n;function Gi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Zi(t,e){return n=>n>0?e:t}var Ji=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Qi=[oi,si,ri];function ts(t){const e=(n=t,Qi.find(t=>t.test(n)));var n;if(q(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===ri&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Gi(a,i,t+1/3),o=Gi(a,i,t),r=Gi(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}var es=(t,e)=>{const n=ts(t),i=ts(e);if(!n||!i)return Zi(t,e);const s={...n};return t=>(s.red=Ji(n.red,i.red,t),s.green=Ji(n.green,i.green,t),s.blue=Ji(n.blue,i.blue,t),s.alpha=_i(n.alpha,i.alpha,t),si.transform(s))},ns=(t,e)=>n=>e(t(n)),is=(...t)=>t.reduce(ns),ss=new Set(["none","hidden"]);function os(t,e){return n=>_i(t,e,n)}function rs(t){return"number"==typeof t?os:"string"==typeof t?ie(t)?Zi:ai.test(t)?es:us:Array.isArray(t)?as:"object"==typeof t?ai.test(t)?es:ls:Zi}function as(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>rs(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function ls(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=rs(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}var us=(t,e)=>{const n=gi.createTransformer(e),i=di(t),s=di(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?ss.has(t)&&!s.values.length||ss.has(e)&&!i.values.length?function(t,e){return ss.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):is(as(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]];i[o]=null!==(n=t.values[a])&&void 0!==n?n:0,s[r]++}return i}(i,s),s.values),n):(q(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Zi(t,e))};function hs(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?_i(t,e,n):rs(t)(t,e)}function cs(t,e,n){const i=Math.max(e-5,0);return Mn(n-t(i),e-i)}var ds=100,ps=10,ms=1,fs=0,gs=800,vs=.3,ys=.3,xs={granular:.01,default:2},bs={granular:.005,default:.5},ws=.01,Ps=10,Ss=.05,Ts=1,As=.001;function Es({duration:t=gs,bounce:e=vs,velocity:n=fs,mass:i=ms}){let s,o;q(t<=Z(Ps),"Spring duration must be 10 seconds or less");let r=1-e;r=re(Ss,Ts,r),t=re(ws,Ps,J(t)),r<1?(s=e=>{const i=e*r,s=i*t,o=i-n,a=ks(e,r),l=Math.exp(-s);return As-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=ks(Math.pow(e,2),r);return(-s(e)+As>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<Cs;s++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=Z(t),isNaN(a))return{stiffness:ds,damping:ps,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}var Cs=12;function ks(t,e){return t*Math.sqrt(1-e*e)}var Vs=["duration","bounce"],Ds=["stiffness","damping","mass"];function Ms(t,e){return e.some(e=>void 0!==t[e])}function Rs(t=ys,e=vs){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:fs,stiffness:ds,damping:ps,mass:ms,isResolvedFromDuration:!1,...t};if(!Ms(t,Ds)&&Ms(t,Vs))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*re(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:ms,stiffness:s,damping:o}}else{const n=Es(t);e={...e,...n,mass:ms},e.isResolvedFromDuration=!0}return e}({...n,velocity:-J(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*h)),g=r-o,v=J(Math.sqrt(l/h)),y=Math.abs(g)<5;let x;if(i||(i=y?xs.granular:xs.default),s||(s=y?bs.granular:bs.default),f<1){const t=ks(v,f);x=e=>r-Math.exp(-f*v*e)*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===f)x=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const b={calculatedDuration:p&&c||null,next:t=>{const e=x(t);if(p)a.done=t>=c;else{let n=0;f<1&&(n=0===t?Z(m):cs(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Qe(b),2e4),e=an(e=>b.next(t*e).value,t,30);return t+"ms "+e}};return b}function js({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=c+m,g=void 0===r?f:r(f);g!==f&&(m=g-c);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),x=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let b,w;const P=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,w=Rs({keyframes:[d.value,p(d.value)],velocity:cs(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==b||(e=!0,x(t),P(t)),void 0!==b&&t>=b?w.next(t-b):(!e&&x(t),d)}}}var Ls=Nn(.42,0,1,1),Fs=Nn(0,0,.58,1),Bs=Nn(.42,0,.58,1),Os={linear:Y,easeIn:Ls,easeInOut:Bs,easeOut:Fs,circIn:qn,circInOut:_n,circOut:Xn,backIn:zn,backInOut:Hn,backOut:Kn,anticipate:Yn},Is=t=>{if(nn(t)){X(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Nn(e,n,i,s)}return"string"==typeof t?(X(void 0!==Os[t],`Invalid easing type '${t}'`),Os[t]):t};function Us(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(X(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||hs,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);e&&(n=is(Array.isArray(e)?e[r]||Y:e,n)),i.push(n)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=G(t[i],t[i+1],n);return a[i](s)};return n?e=>u(re(t[0],t[o-1],e)):u}function Ns(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=G(0,e,i);t.push(_i(n,1,s))}}(e,t.length-1),e}function $s({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(Is):Is(i),o={done:!1,value:e[0]},r=Us(function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Ns(e),t),e,{ease:Array.isArray(s)?s:(a=e,l=s,a.map(()=>l||Bs).splice(0,a.length-1))});var a,l;return{calculatedDuration:t,next:e=>(o.value=r(e),o.done=e>=t,o)}}var Ws=t=>{const e=({timestamp:e})=>t(e);return{start:()=>it.update(e,!0),stop:()=>st(e),now:()=>ot.isProcessing?ot.timestamp:Cn.now()}},Ks={decay:js,inertia:js,tween:$s,keyframes:$s,spring:Rs},zs=t=>t/100,Hs=class extends Xi{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||Bi;this.resolver=new o(s,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=tn(e)?e:Ks[e]||$s;let a,l;r!==$s&&"number"!=typeof t[0]&&(a=is(zs,hs(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Qe(u));const{calculatedDuration:h}=u,c=h+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1),Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(x=o)),y=re(0,1,n)*h}const b=v?{done:!1,value:a[0]}:x.next(y);r&&(b.value=r(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==i&&(b.value=qi(a,this.options,i)),f&&f(b.value),P&&this.finish(),b}get duration(){const{resolved:t}=this;return t?J(t.calculatedDuration):0}get time(){return J(this.currentTime)}set time(t){t=Z(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=J(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Ws,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}},Ys=new Set(["opacity","clipPath","filter","transform"]);function qs(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const h=cn(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}var Xs=_(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var _s={anticipate:Yn,backInOut:Hn,circInOut:_n};var Gs=class extends Xi{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new Ki(s,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:i,ease:s,type:o,motionValue:r,name:a,startTime:l}=this.options;if(!r.owner||!r.owner.current)return!1;var u;if("string"==typeof s&&rn()&&s in _s&&(s=_s[s]),tn((u=this.options).type)||"spring"===u.type||!ln(u.ease)){const{onComplete:e,onUpdate:r,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new Hs({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,i=h.times,s=h.ease,o="keyframes"}const h=qs(r.owner.current,a,t,{...this.options,duration:n,times:i,ease:s});return h.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(en(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:n}=this.options;r.set(qi(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return J(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return J(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=Z(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return Y;const{animation:n}=e;en(n,t)}else this.pendingTimeline=t;return Y}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new Hs({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),c=Z(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return Xs()&&n&&Ys.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}},Zs={type:"spring",stiffness:500,damping:25,restSpeed:10},Js={type:"keyframes",duration:.8},Qs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},to=(t,{keyframes:e})=>e.length>2?Js:Qt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Zs:Qs;var eo=(t,e,n,i={},s,o)=>r=>{const a=Je(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=Z(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length})(a)||(h={...h,...to(t,h)}),h.duration&&(h.duration=Z(h.duration)),h.repeatDelay&&(h.repeatDelay=Z(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(c=!0)),(In||Q)&&(c=!0,h.duration=0,h.delay=0),c&&!o&&void 0!==e.get()){const t=qi(h.keyframes,a);if(void 0!==t)return it.update(()=>{h.onUpdate(t),h.onComplete()}),new Ze([])}return!o&&Gs.supports(h)?new Gs(h):new Hs(h)};function no({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function io(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const c in l){const e=t.getValue(c,null!==(o=t.latestValues[c])&&void 0!==o?o:null),i=l[c];if(void 0===i||h&&no(h,c))continue;const s={delay:n,...Je(r||{},c)};let a=!1;if(window.MotionHandoffAnimation){const e=On(t);if(e){const t=window.MotionHandoffAnimation(e,c,it);null!==t&&(s.startTime=t,a=!0)}}Bn(t,c),e.start(eo(c,e,i,t.shouldReduceMotion&&An.has(c)?{type:!1}:s,t,a));const d=e.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{it.update(()=>{a&&function(t,e){let{transitionEnd:n={},transition:i={},...s}=Xe(t,e)||{};s={...s,...n};for(const o in s)Fn(t,o,qt(s[o]))}(t,a)})}),u}function so(t,e,n={}){var i;const s=Xe(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(io(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(oo).forEach((t,i)=>{t.notify("AnimationStart",e),r.push(so(t,e,{...o,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}return Promise.all([r(),a(n.delay)])}function oo(t,e){return t.sortNodePosition(e)}var ro=At.length;function ao(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ao(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<ro;n++){const i=At[n],s=t.props[i];(Pt(s)||!1===s)&&(e[i]=s)}return e}var lo=[...Tt].reverse(),uo=Tt.length;function ho(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>so(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=so(t,e,n);else{const s="function"==typeof e?Xe(t,e,n.custom):e;i=Promise.all(io(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function co(t){let e=ho(t),n=fo(),i=!0;const s=e=>(n,i)=>{var s;const o=Xe(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=ao(t.parent)||{},l=[],u=new Set;let h={},c=1/0;for(let e=0;e<uo;e++){const d=lo[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=Pt(m),g=d===o?p.isActive:null;!1===g&&(c=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||St(m)||"boolean"==typeof m)continue;const y=po(p.prevProp,m);let x=y||d===o&&p.isActive&&!v&&f||e>c&&f,b=!1;const w=Array.isArray(m)?m:[m];let P=w.reduce(s(d),{});!1===g&&(P={});const{prevResolvedValues:S={}}=p,T={...S,...P},A=e=>{x=!0,u.has(e)&&(b=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in T){const e=P[t],n=S[t];if(h.hasOwnProperty(t))continue;let i=!1;i=Yt(e)&&Yt(n)?!qe(e,n):e!==n,i?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=P,p.isActive&&(h={...h,...P}),i&&t.blockInitialAnimation&&(x=!1),!x||v&&y&&!b||l.push(...w.map(t=>({animation:t,options:{type:d}})))}if(u.size){const e={};u.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=fo(),i=!0}}}function po(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!qe(e,t)}function mo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fo(){return{animate:mo(!0),whileInView:mo(),whileHover:mo(),whileTap:mo(),whileDrag:mo(),whileFocus:mo(),exit:mo()}}var go=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},vo=0,yo={animation:{Feature:class extends go{constructor(t){super(t),t.animationState||(t.animationState=co(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();St(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends go{constructor(){super(...arguments),this.id=vo++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>e(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function xo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function bo(t){return{point:{x:t.pageX,y:t.pageY}}}function wo(t,e,n,i){return xo(t,e,(t=>e=>vn(e)&&t(e,bo(e)))(n),i)}var Po=(t,e)=>Math.abs(t-e);var So=class{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Eo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Po(t.x,e.x),i=Po(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=ot;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=To(e,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Eo("pointercancel"===t.type?this.lastMoveEventInfo:To(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!vn(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=To(bo(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=ot;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Eo(o,this.history)),this.removeListeners=is(wo(this.contextWindow,"pointermove",this.handlePointerMove),wo(this.contextWindow,"pointerup",this.handlePointerUp),wo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),st(this.updatePoint)}};function To(t,e){return e?{point:e(t.point)}:t}function Ao(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Eo({point:t},e){return{point:t,delta:Ao(t,ko(e)),offset:Ao(t,Co(e)),velocity:Vo(e,.1)}}function Co(t){return t[0]}function ko(t){return t[t.length-1]}function Vo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=ko(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Z(e)));)n--;if(!i)return{x:0,y:0};const o=J(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Do(t){return t.max-t.min}function Mo(t,e,n,i=.5){t.origin=i,t.originPoint=_i(e.min,e.max,t.origin),t.scale=Do(n)/Do(e),t.translate=_i(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Ro(t,e,n,i){Mo(t.x,e.x,n.x,i?i.originX:void 0),Mo(t.y,e.y,n.y,i?i.originY:void 0)}function jo(t,e,n){t.min=n.min+e.min,t.max=t.min+Do(e)}function Lo(t,e,n){t.min=e.min-n.min,t.max=t.min+Do(e)}function Fo(t,e,n){Lo(t.x,e.x,n.x),Lo(t.y,e.y,n.y)}function Bo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Oo(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}var Io=.35;function Uo(t,e,n){return{min:No(t,e),max:No(t,n)}}function No(t,e){return"number"==typeof t?t:t[e]||0}var $o=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Wo(t){return[t("x"),t("y")]}function Ko({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function zo(t){return void 0===t||1===t}function Ho({scale:t,scaleX:e,scaleY:n}){return!zo(t)||!zo(e)||!zo(n)}function Yo(t){return Ho(t)||qo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function qo(t){return Xo(t.x)||Xo(t.y)}function Xo(t){return t&&"0%"!==t}function _o(t,e,n){return n+e*(t-n)}function Go(t,e,n,i,s){return void 0!==s&&(t=_o(t,s,i)),_o(t,n,i)+e}function Zo(t,e=0,n=1,i,s){t.min=Go(t.min,e,n,i,s),t.max=Go(t.max,e,n,i,s)}function Jo(t,{x:e,y:n}){Zo(t.x,e.translate,e.scale,e.originPoint),Zo(t.y,n.translate,n.scale,n.originPoint)}var Qo=.999999999999,tr=1.0000000000001;function er(t,e){t.min=t.min+e,t.max=t.max+e}function nr(t,e,n,i,s=.5){Zo(t,e,n,_i(t.min,t.max,s),i)}function ir(t,e){nr(t.x,e.x,e.scaleX,e.scale,e.originX),nr(t.y,e.y,e.scaleY,e.scale,e.originY)}function sr(t,e){return Ko(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}var or=({current:t})=>t?t.ownerDocument.defaultView:null,rr=new WeakMap,ar=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new So(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(bo(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?dn[o]?null:(dn[o]=!0,()=>{dn[o]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wo(t=>{let e=this.getAxisMotionValue(t).get()||0;if(de.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];i&&(e=Do(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&it.postRender(()=>s(t,e)),Bn(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Wo(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:or(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&it.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!lr(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?_i(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?_i(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&Mt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Bo(t.x,n,s),y:Bo(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=Io){return!1===t?t=0:!0===t&&(t=Io),{x:Uo(t,"left","right"),y:Uo(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Wo(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Mt(t))return!1;const n=t.current;X(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=sr(t,n),{scroll:s}=e;return s&&(er(i.x,s.offset.x),er(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:Oo(t.x,e.x),y:Oo(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Ko(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Wo(r=>{if(!lr(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Bn(this.visualElement,t),n.start(eo(t,n,0,e,this.visualElement,!1))}stopAnimation(){Wo(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Wo(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Wo(e=>{const{drag:n}=this.getProps();if(!lr(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-_i(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Mt(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Wo(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Do(t),s=Do(e);return s>i?n=G(e.min,e.max-i,t.min):i>s&&(n=G(t.min,t.max-s,e.min)),re(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wo(e=>{if(!lr(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(_i(s,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;rr.set(this.visualElement,this);const t=wo(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Mt(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),it.read(e);const s=xo(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Wo(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Io,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}};function lr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var ur=t=>(e,n)=>{t&&it.postRender(()=>t(e,n))},hr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var dr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!pe.test(t))return t;t=parseFloat(t)}return`${cr(t,e.target.x)}% ${cr(t,e.target.y)}%`}},pr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=gi.parse(t);if(s.length>5)return i;const o=gi.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=_i(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}},mr=class extends D.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=gr,Object.assign(Le,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),hr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||it.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ft.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function fr(t){const[e,n]=function(t=!0){const e=(0,D.useContext)(W);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=(0,D.useId)();(0,D.useEffect)(()=>{t&&s(o)},[t]);const r=(0,D.useCallback)(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}(),i=(0,D.useContext)($);return(0,L.jsx)(mr,{...t,layoutGroup:i,switchLayoutGroup:(0,D.useContext)(Ot),isPresent:e,safeToRemove:n})}var gr={borderRadius:{...dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dr,borderTopRightRadius:dr,borderBottomLeftRadius:dr,borderBottomRightRadius:dr,boxShadow:pr};var vr=(t,e)=>t.depth-e.depth,yr=class{constructor(){this.children=[],this.isDirty=!1}add(t){kn(this.children,t),this.isDirty=!0}remove(t){Vn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vr),this.isDirty=!1,this.children.forEach(t)}};var xr=["TopLeft","TopRight","BottomLeft","BottomRight"],br=xr.length,wr=t=>"string"==typeof t?parseFloat(t):t,Pr=t=>"number"==typeof t||pe.test(t);function Sr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var Tr=Er(0,.5,Xn),Ar=Er(.5,.95,Y);function Er(t,e,n){return i=>i<t?0:i>e?1:n(G(t,e,i))}function Cr(t,e){t.min=e.min,t.max=e.max}function kr(t,e){Cr(t.x,e.x),Cr(t.y,e.y)}function Vr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Dr(t,e,n,i,s){return t=_o(t-=e,1/n,i),void 0!==s&&(t=_o(t,1/s,i)),t}function Mr(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){if(de.test(e)&&(e=parseFloat(e),e=_i(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=_i(o.min,o.max,i);t===o&&(a-=e),t.min=Dr(t.min,e,n,a,s),t.max=Dr(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}var Rr=["x","scaleX","originX"],jr=["y","scaleY","originY"];function Lr(t,e,n,i){Mr(t.x,e,Rr,n?n.x:void 0,i?i.x:void 0),Mr(t.y,e,jr,n?n.y:void 0,i?i.y:void 0)}function Fr(t){return 0===t.translate&&1===t.scale}function Br(t){return Fr(t.x)&&Fr(t.y)}function Or(t,e){return t.min===e.min&&t.max===e.max}function Ir(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ur(t,e){return Ir(t.x,e.x)&&Ir(t.y,e.y)}function Nr(t){return Do(t.x)/Do(t.y)}function $r(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Wr=class{constructor(){this.members=[]}add(t){kn(this.members,t),t.scheduleRender()}remove(t){if(Vn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};var Kr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zr="undefined"!=typeof window&&void 0!==window.MotionDebug,Hr=["","X","Y","Z"],Yr={visibility:"hidden"},qr=0;function Xr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function _r(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=On(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",it,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&_r(i)}function Gr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=qr++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,zr&&(Kr.totalNodes=Kr.resolvedTargetDeltas=Kr.recalculatedProjection=0),this.nodes.forEach(Qr),this.nodes.forEach(ra),this.nodes.forEach(aa),this.nodes.forEach(ta),zr&&window.MotionDebug.record(Kr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,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 yr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Dn),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Cn.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(st(i),t(o-e))};return it.read(i,!0),()=>st(i)}(i,250),hr.hasAnimatedSinceResize&&(hr.hasAnimatedSinceResize=!1,this.nodes.forEach(oa))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||pa,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!Ur(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Je(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||oa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,st(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(la),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_r(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(na);this.isUpdating||this.nodes.forEach(ia),this.isUpdating=!1,this.nodes.forEach(sa),this.nodes.forEach(Zr),this.nodes.forEach(Jr),this.clearAllSnapshots();const t=Cn.now();ot.delta=re(0,1e3/60,t-ot.timestamp),ot.timestamp=t,ot.isProcessing=!0,rt.update.process(ot),rt.preRender.process(ot),rt.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ft.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ea),this.sharedNodes.forEach(ua)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,it.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){it.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++)this.path[n].updateScroll();const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Br(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||Yo(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ga((i=n).x),ga(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!(null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)&&!this.path.some(ya)){const{scroll:t}=this.root;t&&(er(n.x,t.offset.x),er(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(kr(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&kr(n,t),er(n.x,s.offset.x),er(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};kr(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&ir(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Yo(t.latestValues)&&ir(n,t.latestValues)}return Yo(this.latestValues)&&ir(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};kr(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Yo(t.latestValues))continue;Ho(t.latestValues)&&t.updateSnapshot();const i=$o();kr(i,t.measurePageBox()),Lr(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return Yo(this.latestValues)&&Lr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=ot.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Fo(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,jo(r.x,a.x,l.x),jo(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):kr(this.target,this.layout.layoutBox),Jo(this.target,this.targetDelta)):kr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Fo(this.relativeTargetOrigin,this.target,t.target),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zr&&Kr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ho(this.parent.latestValues)&&!qo(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;kr(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ir(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Jo(t,r)),i&&Yo(o.latestValues)&&ir(t,o.latestValues))}e.x<tr&&e.x>Qo&&(e.x=1),e.y<tr&&e.y>Qo&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Vr(this.prevProjectionDelta.x,this.projectionDelta.x),Vr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ro(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&$r(this.projectionDelta.x,this.prevProjectionDelta.x)&&$r(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),zr&&Kr.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(da));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;ha(o.x,t.x,n),ha(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fo(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,ca(p.x,m.x,f.x,g),ca(p.y,m.y,f.y,g),c&&(l=this.relativeTarget,d=c,Or(l.x,d.x)&&Or(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c={x:{min:0,max:0},y:{min:0,max:0}}),kr(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=_i(0,void 0!==n.opacity?n.opacity:1,Tr(i)),t.opacityExit=_i(void 0!==e.opacity?e.opacity:1,0,Ar(i))):o&&(t.opacity=_i(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<br;r++){const s=`border${xr[r]}Radius`;let o=Sr(e,s),a=Sr(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Pr(o)===Pr(a)?(t[s]=Math.max(_i(wr(o),wr(a),i),0),(de.test(a)||de.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=_i(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{hr.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=Xt(t)?t:Ln(t);return i.start(eo("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&va(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Do(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Do(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}kr(e,n),ir(e,s),Ro(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Wr),this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Xr("z",t,i,this.animationValues);for(let s=0;s<Hr.length;s++)Xr(`rotate${Hr[s]}`,t,i,this.animationValues),Xr(`skew${Hr[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yr;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=_t(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=_t(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Yo(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const u in Le){if(void 0===r[u])continue;const{correct:t,applyTo:e}=Le[u],n="none"===i.transform?r[u]:t(r[u],o);if(e){const t=e.length;for(let s=0;s<t;s++)i[e[s]]=n}else i[u]=n}return this.options.layoutId&&(i.pointerEvents=o===this?_t(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(na),this.root.sharedNodes.clear()}}}function Zr(t){t.updateLayout()}function Jr(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?Wo(t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Do(i);i.min=e[t].min,i.max=i.min+s}):va(s,n.layoutBox,e)&&Wo(i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Do(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ro(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Ro(a,t.applyTransform(i,!0),n.measuredBox):Ro(a,e,n.layoutBox);const l=!Br(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Fo(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Fo(a,e,o.layoutBox),Ur(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Qr(t){zr&&Kr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ta(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ea(t){t.clearSnapshot()}function na(t){t.clearMeasurements()}function ia(t){t.isLayoutDirty=!1}function sa(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function oa(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ra(t){t.resolveTargetDelta()}function aa(t){t.calcProjection()}function la(t){t.resetSkewAndRotation()}function ua(t){t.removeLeadSnapshot()}function ha(t,e,n){t.translate=_i(e.translate,0,n),t.scale=_i(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ca(t,e,n,i){t.min=_i(e.min,n.min,i),t.max=_i(e.max,n.max,i)}function da(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var pa={duration:.45,ease:[.4,0,.1,1]},ma=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),fa=ma("applewebkit/")&&!ma("chrome/")?Math.round:Y;function ga(t){t.min=fa(t.min),t.max=fa(t.max)}function va(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Nr(e),s=Nr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function ya(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}var xa=Gr({attachResizeListener:(t,e)=>xo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ba={current:void 0},wa=Gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ba.current){const t=new xa({});t.mount(window),t.setOptions({layoutScroll:!0}),ba.current=t}return ba.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Pa={pan:{Feature:class extends go{constructor(){super(...arguments),this.removePointerDownListener=Y}onPointerDown(t){this.session=new So(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:or(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ur(t),onStart:ur(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&it.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=wo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends go{constructor(t){super(t),this.removeGroupControls=Y,this.removeListeners=Y,this.controls=new ar(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Y}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:wa,MeasureLayout:fr}};function Sa(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&it.postRender(()=>s(e,bo(e)))}function Ta(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&it.postRender(()=>s(e,bo(e)))}var Aa=new WeakMap,Ea=new WeakMap,Ca=t=>{const e=Aa.get(t.target);e&&e(t)},ka=t=>{t.forEach(Ca)};function Va(t,e,n){const i=function({root:t,...e}){const n=t||document;Ea.has(n)||Ea.set(n,{});const i=Ea.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ka,{root:t,...e})),i[s]}(e);return Aa.set(t,n),i.observe(t),()=>{Aa.delete(t),i.unobserve(t)}}var Da={some:0,all:1};var Ma={inView:{Feature:class extends go{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Da[i]};return Va(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends go{mount(){const{current:t}=this.node;t&&(this.unmount=Sn(t,t=>(Ta(this.node,t,"Start"),(t,{success:e})=>Ta(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends go{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=is(xo(this.node.current,"focus",()=>this.onFocus()),xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends go{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=mn(t,n),r=fn(t=>{const{target:n}=t,i=e(t);if("function"!=typeof i||!n)return;const o=fn(t=>{i(t),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,s)});return i.forEach(t=>{t.addEventListener("pointerenter",r,s)}),o}(t,t=>(Sa(this.node,t,"Start"),t=>Sa(this.node,t,"End"))))}unmount(){}}}},Ra={layout:{ProjectionNode:wa,MeasureLayout:fr}},ja={current:null},La={current:!1};var Fa=[...$i,ai,gi],Ba=new WeakMap;var Oa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ia=class{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const t=Cn.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,it.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=Et(e),this.isVariantNode=Ct(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in c){const t=c[d];void 0!==a[d]&&Xt(t)&&t.set(a[d],!1)}}mount(t){this.current=t,Ba.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),La.current||function(){if(La.current=!0,z)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ja.current=t.matches;t.addListener(e),e()}else ja.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ja.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ba.delete(this.current),this.projection&&this.projection.unmount(),st(this.notifyUpdate),st(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Qt.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&it.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ut){const e=ut[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<Oa.length;n++){const e=Oa[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(Xt(s))t.addValue(i,s);else if(Xt(o))t.addValue(i,Ln(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,Ln(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Ln(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(Oi(i)||Gn(i))?i=parseFloat(i):(s=i,!Fa.find(Ni(s))&&gi.test(e)&&(i=Si(t,e))),this.setBaseTarget(t,Xt(i)?i.get():i)),Xt(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=Ht(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||Xt(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Dn),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}},Ua=class extends Ia{constructor(){super(...arguments),this.KeyframeResolver=Ki}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xt(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};var Na=class extends Ua{constructor(){super(...arguments),this.type="html",this.renderInstance=Me}readValueFromInstance(t,e){if(Qt.has(e)){const t=Pi(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(ee(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return sr(t,e)}build(t,e,n){Se(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Be(t,e,n)}},$a=class extends Ua{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$o}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Qt.has(e)){const t=Pi(e);return t&&t.default||0}return e=Re.has(e)?e:jt(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Oe(t,e,n)}build(t,e,n){Ce(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){je(t,e,0,i)}mount(t){this.isSVGTag=De(t.tagName),super.mount(t)}},Wa=bt(Ye({...yo,...Ma,...Pa,...Ra},(t,e)=>Kt(t)?new $a(e):new Na(e,{allowProjection:t!==D.Fragment})));function Ka({name:t,label:e,type:n="text",value:i="",isDisabled:s,isLoading:o,maxLength:r=255,prefixIcon:a,className:l,onChange:u}){return(0,L.jsxs)("div",{className:`flex relative w-full cursor-text ${l||""}`,children:[(0,L.jsx)("input",{className:"\n peer transition-all grow\n px-4 pt-5 pb-1.5 border border-solid rounded outline-none\n border-gray-300 bg-white text-black text-sm\n placeholder:text-transparent\n focus:border-ll-primary\n hover:bg-gray-25\n disabled:text-gray-200\n data-[has-prefix-icon=true]:pl-10\n",type:n,id:t,name:t,placeholder:e,value:i,max:r,disabled:o||s,"data-is-loading":o,"data-has-prefix-icon":!!a,onChange:t=>{void 0!==u&&u(t)},"data-1p-ignore":!0}),(0,L.jsx)(Wa.label,{htmlFor:t,className:"\n text-sm text-stone-500 ml-4\n absolute top-3.5 origin-top-left\n scale-75 duration-300\n\n transform\n -translate-y-2\n\n peer-placeholder-shown:scale-100\n peer-placeholder-shown:translate-y-0\n peer-focus:scale-75\n peer-focus:-translate-y-2\n peer-data-[has-prefix-icon=true]:mx-10\n",children:e}),void 0!==a&&(0,L.jsx)(a,{className:"\n h-4 w-4\n absolute left-4 top-1/2 -translate-y-1/2\n text-stone-500\n"})]})}var za="\n text-sm font-normal\n\n data-[is-title=true]:py-2.5\n data-[is-title=true]:px-4\n data-[is-title=true]:text-ll-placeholder\n data-[is-title=true]:text-xs\n",Ha="\n py-2.5 px-4 block transition-all\n hover:font-medium hover:bg-ll-surface-variant1\n",Ya={dev:"https://api-qa.locallogic.co/neighborhood-management-v1",qa:"https://api-qa.locallogic.co/neighborhood-management-v1",prod:"https://api.locallogic.co/neighborhood-management-v1"};function qa(){const t=(0,D.useRef)(null),{t:e}=l("neighborhoodShowcase"),[n,i]=(0,D.useState)(!1),[s,o]=(0,D.useState)(""),r=b(s,500),{myNeighborhoods:a,singleNeighborhoodURLSchema:u}=B(),{sdkState:c}=S(),d=c.options?.urlSchemaSpacer||"-",[p,m]=(0,D.useState)([]),[f,g]=(0,D.useState)([]),{data:y,isFetched:w,isLoading:P}=function({search:t,pageSize:e=10}){const{sdkState:n}=S(),i=Ya[n.globalOptions?.environment?.api||"prod"];return h({queryKey:["neighborhoods",t],queryFn:async()=>{const s={include:"configurations",page_size:`${e}`};return t&&(s.search=t),fetch(`${i}/sdk/neighborhoods/${n?.globalOptions?.externalId}?${new URLSearchParams(s)}`,{headers:{Accept:"application/json",Authorization:n.apiKey,"x-ll-sdk-name":"neighborhood-showcase"},method:"GET"}).then(t=>{if([204,404].includes(t.status))return null;if(t.status>=300)throw new Error(`Request failed with status ${t.status}`);return t.json()}).then(t=>(t.neighborhoods||[]).map(e=>k(n.globalOptions?.locale||"en",e,t.configurations[e.geog_id]))).catch(t=>{x.captureException(t)})},enabled:!!n?.globalOptions?.externalId&&!!t&&!!n.apiKey})}({search:r}),T=(0,D.useMemo)(()=>a?.map(t=>t.geogId),[a]);var A,E,V;(0,D.useEffect)(()=>{w&&!P&&(m(y?.filter(t=>!T?.includes(t.geogId))||[]),g(y?.filter(t=>T?.includes(t.geogId))||[]),i(y?.length>0))},[y,w,P]),A=t,E="click",V=()=>{i(!1),o("")},(0,D.useEffect)(()=>{const t=t=>{A.current&&!A.current.contains(t.target)&&V()};return window.addEventListener(E,t),()=>window.removeEventListener(E,t)},[A,V]);return(0,L.jsxs)("div",{className:"w-full sm:w-96 relative",ref:t,children:[(0,L.jsx)(Ka,{name:"searchNeighborhoods",prefixIcon:v,label:e("header.search.placeholder"),value:s,onChange:t=>{o(t.target.value)}}),n&&(0,L.jsx)("div",{className:"relative z-10",children:(0,L.jsxs)("ul",{className:"\n absolute top-0 left-0.5 right-0\n list-none px-0 py-1 mt-1\n rounded-lg overflow-hidden\n bg-white shadow rounded-lg \n",children:[p?.length>0&&(0,L.jsx)("li",{className:za,"data-is-title":!0,children:e("header.search.results.all")}),p?.map(t=>(0,L.jsx)("li",{className:za,children:(0,L.jsx)("a",{className:Ha,href:u&&C(u,t,d),target:"_parent",rel:"noreferrer",children:t.name})},t.geogId)),f?.length>0&&(0,L.jsx)("li",{className:za,"data-is-title":!0,children:e("header.search.results.featured")}),f?.map(t=>(0,L.jsx)("li",{className:za,children:(0,L.jsx)("a",{className:Ha,href:u&&C(u,t,d),target:"_parent",rel:"noreferrer",children:t.name})},t.geogId))]})})]})}function Xa(){const{t:t}=l("neighborhoodShowcase");return(0,L.jsxs)("div",{className:"mb-11",children:[(0,L.jsx)("h1",{className:"text-2xl font-medium",children:t("header.title")}),(0,L.jsx)("p",{className:"mb-4 text-ll-disabled",children:t("header.description")}),(0,L.jsx)(qa,{})]})}function _a(){return(0,L.jsxs)("div",{className:"flex flex-col py-6",children:[(0,L.jsx)(Xa,{}),(0,L.jsx)(N,{})]})}var Ga=u({lat:g().optional(),lng:g().optional(),geographyId:a().optional(),singleNeighborhoodURLSchema:a().optional(),urlSchemaSpacer:a().length(1).optional()}).noUnknown(!0);d(c.neighborhoodShowcase.key);var Za=()=>{const{sdkState:t}=S(),e=E(),n=t.globalOptions?.locale||"en",i=(0,D.useMemo)(()=>t.options?.geographyId?{geographyId:t.options?.geographyId}:{lat:t.options?.lat,lng:t.options?.lng},[t.options?.lat,t.options?.lng,t.options?.geographyId]);return(0,L.jsx)(T,{children:(0,L.jsx)(A,{sdk:"Neighborhood Showcase",schema:Ga,options:t.options,children:(0,L.jsx)(p,{environment:t.globalOptions?.environment?.api,apiKey:t.apiKey,appearance:t.globalOptions?.appearance,locale:t.globalOptions?.locale,product:f.NEIGHBORHOOD_SHOWCASE,children:(0,L.jsx)(r,{trackingPipelineSettings:{apiKey:t.apiKey||""},analyticsSettings:c.neighborhoodShowcase,meta:{clientId:t.clientId,productName:f.NEIGHBORHOOD_SHOWCASE,productVersion:"1.24.40"},attributes:{location:i,host:t.location,host_url:document.referrer,locale:n,isMobile:e},flags:{isDebugMode:!1},children:(0,L.jsx)(O,{children:(0,L.jsx)(_a,{})})})})})})};export{Za as default};
2
- //# sourceMappingURL=NeighborhoodShowcase-IMXpKRt7.js.map
1
+ import{a as t,i as e,n,r as i}from"./rolldown-runtime-C_ttsnZz.js";import{l as s}from"./google-maps-vendor-DvfEEdRU.js";import{t as o}from"./Trans-CoQWpfjg.js";import{a as r,d as a,h as l,l as u,m as h,n as c,o as d,r as p,s as m,t as f,u as g}from"./sdks-BuksrzcW.js";import{t as v}from"./MagnifyingGlass.es-CEBdL4tD.js";import{B as y,_t as x,n as b,q as w,r as P,t as S}from"./index-_e6zO9FA.js";import{t as T}from"./ResizeWrapper-D7ns3o39.js";import{t as A}from"./ValidateOptions-CBV1N5jv.js";import{t as E}from"./useIsMobile-CEgZCKoT.js";/* empty css */import{n as C,r as k,t as V}from"./NeighborhoodCard-BaGtTms0.js";var D=t(s(),1),M={dev:"https://api-qa.locallogic.co/neighborhood-management-v1",qa:"https://api-qa.locallogic.co/neighborhood-management-v1",prod:"https://api.locallogic.co/neighborhood-management-v1"};var R=function(t){return t.SDK_VIEWED="neighborhood-showcase-Viewed",t.NEIGHBORHOOD_CARD_CLICKED="neighborhood-gateway-Card-Clicked",t}({}),j=function(t){return t.SDK_VIEWED="sdk_viewed",t.NEIGHBORHOOD_CARD_CLICKED="neighborhood_gateway_Card_Clicked",t}({}),L=w(),F=D.createContext({}),B=()=>(0,D.useContext)(F),O=({children:t})=>{const{sdkState:e}=S(),n=m();P(()=>{n.postEvent({eventType:R.SDK_VIEWED}),n.trackAnalyticsEvent({eventName:j.SDK_VIEWED})});const{data:i,isFetched:s,isLoading:o}=function(){const{sdkState:t}=S(),e=M[t.globalOptions?.environment?.api||"prod"];return h({queryKey:["myNeighborhoods"],queryFn:async()=>fetch(`${e}/sdk/my-neighborhoods/${t?.globalOptions?.externalId}?include=configurations&page_size=100`,{headers:{Accept:"application/json",Authorization:t.apiKey,"x-ll-sdk-name":"neighborhood-showcase"},method:"GET"}).then(t=>{if([204,404].includes(t.status))return null;if(t.status>=300)throw new Error(`Request failed with status ${t.status}`);return t.json()}).then(e=>(e.neighborhoods?.value||[]).map(n=>k(t.globalOptions?.locale||"en",n,e.configurations[n.geog_id])).sort((t,e)=>t.name.localeCompare(e.name))).catch(t=>{x.captureException(t)}),enabled:!!t?.globalOptions?.externalId&&!!t.apiKey})}();if(!e.globalOptions?.externalId)throw new Error("externalId is required to launch the SDK");return(0,L.jsx)(F.Provider,{value:{isLoading:o,isFetched:s,myNeighborhoods:i,singleNeighborhoodURLSchema:e.options?.singleNeighborhoodURLSchema},children:t})};function I(){return(0,L.jsx)("div",{className:"w-full h-full flex justify-center align-cennter",children:(0,L.jsx)(y,{image:!0})})}function U(){const{t:t}=l("neighborhoodShowcase");return(0,L.jsx)("div",{className:"w-full h-full bg-ll-surface py-6 px-5 rounded-md text-ll-placeholder",children:(0,L.jsx)(o,{i18nKey:"noData",t:t,components:{LinkToHub:(0,L.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://hub.locallogic.co/neighborhood-management"}),bold:(0,L.jsx)("strong",{})}})})}var N=()=>{const{myNeighborhoods:t,singleNeighborhoodURLSchema:e,isFetched:n}=B(),{sdkState:i}=S(),s=i.options?.urlSchemaSpacer||"-";return n?t?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"\n grid gap-4\n grid-cols-1\n md:grid-cols-2\n lg:grid-cols-3\n xl:grid-cols-4\n",children:t?.map((t,n)=>(0,L.jsx)("div",{className:"\n w-full\n",children:(0,L.jsx)(V,{href:e&&C(e,t,s),neighborhood:t})},n))})}):(0,L.jsx)(U,{}):(0,L.jsx)(I,{})},$=(0,D.createContext)({});var W=(0,D.createContext)(null),K=(0,D.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var z="undefined"!=typeof window,H=z?D.useLayoutEffect:D.useEffect,Y=t=>t,q=Y,X=Y;function _(t){let e;return()=>(void 0===e&&(e=t()),e)}var G=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},Z=t=>1e3*t,J=t=>t/1e3,Q=!1,tt=!1;var et=["read","resolveKeyframes","update","preRender","render","postRender"];function nt(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=et.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=r,p=()=>{const o=tt?s.timestamp:performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:et.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<et.length;e++)r[et[e]].cancel(t)},state:s,steps:r}}var{schedule:it,cancel:st,state:ot,steps:rt}=nt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Y,!0),at=(0,D.createContext)({strict:!1}),lt={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"]},ut={};for(const Qa in lt)ut[Qa]={isEnabled:t=>lt[Qa].some(e=>!!t[e])};var ht=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","ignoreStrict","viewport"]);function ct(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ht.has(t)}function dt(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var pt,mt,ft,gt=n(()=>{}),vt=i({default:()=>mt}),yt=n(()=>{gt(),pt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mt=dt(function(t){return pt.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})}),xt=t=>!ct(t);try{(ft=(yt(),e(vt)).default)&&(xt=t=>t.startsWith("on")?!ct(t):ft(t))}catch(Ja){}function bt(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy((...e)=>t(...e),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}var wt=(0,D.createContext)({});function Pt(t){return"string"==typeof t||Array.isArray(t)}function St(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}var Tt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],At=["initial",...Tt];function Et(t){return St(t.animate)||At.some(e=>Pt(t[e]))}function Ct(t){return Boolean(Et(t)||t.variants)}function kt(t){const{initial:e,animate:n}=function(t,e){if(Et(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Pt(e)?e:void 0,animate:Pt(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,D.useContext)(wt));return(0,D.useMemo)(()=>({initial:e,animate:n}),[Vt(e),Vt(n)])}function Vt(t){return Array.isArray(t)?t.join(" "):t}var Dt=Symbol.for("motionComponentSymbol");function Mt(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Rt(t,e,n){return(0,D.useCallback)(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):Mt(n)&&(n.current=i))},[e])}var jt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lt="data-"+jt("framerAppearId"),{schedule:Ft,cancel:Bt}=nt(queueMicrotask,!1),Ot=(0,D.createContext)({});function It(t,e,n,i,s){var o,r;const{visualElement:a}=(0,D.useContext)(wt),l=(0,D.useContext)(at),u=(0,D.useContext)(W),h=(0,D.useContext)(K).reducedMotion,c=(0,D.useRef)(null);i=i||l.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));const d=c.current,p=(0,D.useContext)(Ot);!d||d.projection||!s||"html"!==d.type&&"svg"!==d.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ut(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Mt(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(c.current,n,s,p);const m=(0,D.useRef)(!1);(0,D.useInsertionEffect)(()=>{d&&m.current&&d.update(n,u)});const f=n[Lt],g=(0,D.useRef)(Boolean(f)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return H(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ft.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,D.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),g.current=!1))}),d}function Ut(t){if(t)return!1!==t.options.allowProjection?t.projection:Ut(t.parent)}function Nt({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){var o,r;function a(t,o){let r;const a={...(0,D.useContext)(K),...t,layoutId:$t(t)},{isStatic:l}=a,u=kt(t),h=i(t,l);if(!l&&z){(0,D.useContext)(at).strict;const t=function(t){const{drag:e,layout:n}=ut;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(a);r=t.MeasureLayout,u.visualElement=It(s,h,a,e,t.ProjectionNode)}return(0,L.jsxs)(wt.Provider,{value:u,children:[r&&u.visualElement?(0,L.jsx)(r,{visualElement:u.visualElement,...a}):null,n(s,t,Rt(h,u.visualElement,o),h,l,u.visualElement)]})}t&&function(t){for(const e in t)ut[e]={...ut[e],...t[e]}}(t),a.displayName=`motion.${"string"==typeof s?s:`create(${null!==(r=null!==(o=s.displayName)&&void 0!==o?o:s.name)&&void 0!==r?r:""})`}`;const l=(0,D.forwardRef)(a);return l[Dt]=s,l}function $t({layoutId:t}){const e=(0,D.useContext)($).id;return e&&void 0!==t?e+"-"+t:t}var Wt=["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 Kt(t){return"string"==typeof t&&!t.includes("-")&&!!(Wt.indexOf(t)>-1||/[A-Z]/u.test(t))}function zt(t){const e=[{},{}];return null==t||t.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Ht(t,e,n,i){if("function"==typeof e){const[s,o]=zt(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=zt(i);e=e(void 0!==n?n:t.custom,s,o)}return e}var Yt=t=>Array.isArray(t),qt=t=>Yt(t)?t[t.length-1]||0:t,Xt=t=>Boolean(t&&t.getVelocity);function _t(t){const e=Xt(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}var Gt=t=>(e,n)=>{const i=(0,D.useContext)(wt),s=(0,D.useContext)(W),o=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:Zt(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(t,e,i,s);return n?o():function(t){const e=(0,D.useRef)(null);return null===e.current&&(e.current=t()),e.current}(o)};function Zt(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=_t(o[d]);let{initial:r,animate:a}=t;const l=Et(t),u=Ct(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const c=h?a:r;if(c&&"boolean"!=typeof c&&!St(c)){const e=Array.isArray(c)?c:[c];for(let n=0;n<e.length;n++){const i=Ht(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[h?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}var Jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qt=new Set(Jt),te=t=>e=>"string"==typeof e&&e.startsWith(t),ee=te("--"),ne=te("var(--"),ie=t=>!!ne(t)&&se.test(t.split("/*")[0].trim()),se=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oe=(t,e)=>e&&"number"==typeof t?e.transform(t):t,re=(t,e,n)=>n>e?e:n<t?t:n,ae={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},le={...ae,transform:t=>re(0,1,t)},ue={...ae,default:1},he=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ce=he("deg"),de=he("%"),pe=he("px"),me=he("vh"),fe=he("vw"),ge={...de,parse:t=>de.parse(t)/100,transform:t=>de.transform(100*t)},ve={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},ye={rotate:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:ue,scaleX:ue,scaleY:ue,scaleZ:ue,skew:ce,skewX:ce,skewY:ce,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:le,originX:ge,originY:ge,originZ:pe},xe={...ae,transform:Math.round},be={...ve,...ye,zIndex:xe,size:pe,fillOpacity:le,strokeOpacity:le,numOctaves:xe},we={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pe=Jt.length;function Se(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(Qt.has(l))r=!0;else if(ee(l))s[l]=t;else{const e=oe(t,be[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<Pe;o++){const r=Jt[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=oe(a,be[r]);l||(s=!1,i+=`${we[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}var Te={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ae={offset:"strokeDashoffset",array:"strokeDasharray"};function Ee(t,e,n){return"string"==typeof t?t:pe.transform(e+n*t)}function Ce(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(Se(t,u,c),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Ee(e,t.x,t.width)} ${Ee(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Te:Ae;t[o.offset]=pe.transform(-i);const r=pe.transform(e),a=pe.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}var ke=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ve=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),De=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Me(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}var Re=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"]);function je(t,e,n,i){Me(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Re.has(s)?s:jt(s),e.attrs[s])}var Le={};function Fe(t,{layout:e,layoutId:n}){return Qt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Le[t]||"opacity"===t)}function Be(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(Xt(s[r])||e.style&&Xt(e.style[r])||Fe(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function Oe(t,e,n){const i=Be(t,e,n);for(const s in t)if(Xt(t[s])||Xt(e[s])){i[-1!==Jt.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}var Ie=["x","y","width","height","cx","cy","r"],Ue={useVisualState:Gt({scrapeMotionValuesFromProps:Oe,createRenderState:Ve,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const a in s)if(Qt.has(a)){o=!0;break}if(!o)return;let r=!e;if(e)for(let a=0;a<Ie.length;a++){const n=Ie[a];t[n]!==e[n]&&(r=!0)}r&&it.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(n){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),it.render(()=>{Ce(i,s,De(n.tagName),t.transformTemplate),je(n,i)})})}})},Ne={useVisualState:Gt({scrapeMotionValuesFromProps:Be,createRenderState:ke})};function $e(t,e,n){for(const i in e)Xt(e[i])||Fe(i,n)||(t[i]=e[i])}function We(t,e){const n={};return $e(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,D.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Se(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function Ke(t,e){const n={},i=We(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function ze(t,e,n,i){const s=(0,D.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ce(n,e,De(i),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};$e(e,t.style,t),s.style={...e,...s.style}}return s}function He(t=!1){return(e,n,i,{latestValues:s},o)=>{const r=(Kt(e)?ze:Ke)(n,s,o,e),a=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(xt(s)||!0===n&&ct(s)||!e&&!ct(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,t),l=e!==D.Fragment?{...a,...r,ref:i}:{},{children:u}=n,h=(0,D.useMemo)(()=>Xt(u)?u.get():u,[u]);return(0,D.createElement)(e,{...l,children:h})}}function Ye(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return Nt({...Kt(n)?Ue:Ne,preloadedFeatures:t,useRender:He(i),createVisualElement:e,Component:n})}}function qe(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Xe(t,e,n){const i=t.getProps();return Ht(i,e,void 0!==n?n:i.custom,t)}var _e=_(()=>void 0!==window.ScrollTimeline),Ge=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map(n=>_e()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0);return()=>{n.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},Ze=class extends Ge{then(t,e){return Promise.all(this.animations).then(t).catch(e)}};function Je(t,e){return t?t[e]||t.default||t:void 0}function Qe(t){let e=0;let n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}function tn(t){return"function"==typeof t}function en(t,e){t.timeline=e,t.onfinish=null}var nn=t=>Array.isArray(t)&&"number"==typeof t[0],sn={linearEasing:void 0};function on(t,e){const n=_(t);return()=>{var t;return null!==(t=sn[e])&&void 0!==t?t:n()}}var rn=on(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),an=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=t(G(0,s-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function ln(t){return Boolean("function"==typeof t&&rn()||!t||"string"==typeof t&&(t in hn||rn())||nn(t)||Array.isArray(t)&&t.every(ln))}var un=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:un([0,.65,.55,1]),circOut:un([.55,0,1,.45]),backIn:un([.31,.01,.66,-.59]),backOut:un([.33,1.53,.69,.99])};function cn(t,e){return t?"function"==typeof t&&rn()?an(t,e):nn(t)?un(t):Array.isArray(t)?t.map(t=>cn(t,e)||hn.easeOut):hn[t]:void 0}var dn={x:!1,y:!1};function pn(){return dn.x||dn.y}function mn(t,e){const n=function(t,e,n){var i;if(t instanceof Element)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);const o=null!==(i=null==n?void 0:n[t])&&void 0!==i?i:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function fn(t){return e=>{"touch"===e.pointerType||pn()||t(e)}}var gn=(t,e)=>!!e&&(t===e||gn(t,e.parentElement)),vn=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,yn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);var xn=new WeakSet;function bn(t){return e=>{"Enter"===e.key&&t(e)}}function wn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Pn(t){return vn(t)&&!pn()}function Sn(t,e,n={}){const[i,s,o]=mn(t,n),r=t=>{const i=t.currentTarget;if(!Pn(t)||xn.has(i))return;xn.add(i);const o=e(t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Pn(t)&&xn.has(i)&&(xn.delete(i),"function"==typeof o&&o(t,{success:e}))},a=t=>{r(t,n.useGlobalTarget||gn(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach(t=>{(function(t){return yn.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=bn(()=>{if(xn.has(n))return;wn(n,"down");const t=bn(()=>{wn(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>wn(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s),s)}),o}var Tn,An=new Set(["width","height","top","left","right","bottom",...Jt]);function En(){Tn=void 0}var Cn={now:()=>(void 0===Tn&&Cn.set(ot.isProcessing||tt?ot.timestamp:performance.now()),Tn),set:t=>{Tn=t,queueMicrotask(En)}};function kn(t,e){-1===t.indexOf(e)&&t.push(e)}function Vn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}var Dn=class{constructor(){this.subscriptions=[]}add(t){return kn(this.subscriptions,t),()=>Vn(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Mn(t,e){return e?t*(1e3/e):0}var Rn={current:void 0},jn=class{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Cn.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Cn.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Dn);const n=this.events[t].add(e);return"change"===t?()=>{n(),it.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Rn.current&&Rn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Cn.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Mn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ln(t,e){return new jn(t,e)}function Fn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ln(n))}function Bn(t,e){const n=t.getValue("willChange");if(i=n,Boolean(Xt(i)&&i.add))return n.add(e);var i}function On(t){return t.props[Lt]}var In=!1,Un=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Nn(t,e,n,i){if(t===e&&n===i)return Y;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=Un(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Un(s(t),e,i)}var $n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Wn=t=>e=>1-t(1-e),Kn=Nn(.33,1.53,.69,.99),zn=Wn(Kn),Hn=$n(zn),Yn=t=>(t*=2)<1?.5*zn(t):.5*(2-Math.pow(2,-10*(t-1))),qn=t=>1-Math.sin(Math.acos(t)),Xn=Wn(qn),_n=$n(qn),Gn=t=>/^0[^.\s]+$/u.test(t);function Zn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||Gn(t))}var Jn=t=>Math.round(1e5*t)/1e5,Qn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;var ti=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ei=(t,e)=>n=>Boolean("string"==typeof n&&ti.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),ni=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Qn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},ii={...ae,transform:t=>Math.round((t=>re(0,255,t))(t))},si={test:ei("rgb","red"),parse:ni("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+ii.transform(t)+", "+ii.transform(e)+", "+ii.transform(n)+", "+Jn(le.transform(i))+")"};var oi={test:ei("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:si.transform},ri={test:ei("hsl","hue"),parse:ni("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+de.transform(Jn(e))+", "+de.transform(Jn(n))+", "+Jn(le.transform(i))+")"},ai={test:t=>si.test(t)||oi.test(t)||ri.test(t),parse:t=>si.test(t)?si.parse(t):ri.test(t)?ri.parse(t):oi.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?si.transform(t):ri.transform(t)},li=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var ui="number",hi="color",ci=/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 di(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;return{values:n,split:e.replace(ci,t=>(ai.test(t)?(i.color.push(o),s.push(hi),n.push(ai.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(ui),n.push(parseFloat(t))),++o,"${}")).split("${}"),indexes:i,types:s}}function pi(t){return di(t).values}function mi(t){const{split:e,types:n}=di(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===ui?Jn(t[o]):e===hi?ai.transform(t[o]):t[o]}return s}}var fi=t=>"number"==typeof t?0:t;var gi={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(Qn))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(li))||void 0===n?void 0:n.length)||0)>0},parse:pi,createTransformer:mi,getAnimatableNone:function(t){const e=pi(t);return mi(t)(e.map(fi))}},vi=new Set(["brightness","contrast","saturate","opacity"]);function yi(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Qn)||[];if(!i)return t;const s=n.replace(i,"");let o=vi.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}var xi=/\b([a-z-]*)\(.*?\)/gu,bi={...gi,getAnimatableNone:t=>{const e=t.match(xi);return e?e.map(yi).join(" "):t}},wi={...be,color:ai,backgroundColor:ai,outlineColor:ai,fill:ai,stroke:ai,borderColor:ai,borderTopColor:ai,borderRightColor:ai,borderBottomColor:ai,borderLeftColor:ai,filter:bi,WebkitFilter:bi},Pi=t=>wi[t];function Si(t,e){let n=Pi(t);return n!==bi&&(n=gi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}var Ti=new Set(["auto","none","0"]);var Ai=t=>t===ae||t===pe,Ei=(t,e)=>parseFloat(t.split(", ")[e]),Ci=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Ei(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Ei(e[1],t):0}},ki=new Set(["x","y","z"]),Vi=Jt.filter(t=>!ki.has(t));var Di={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ci(4,13),y:Ci(5,14)};Di.translateX=Di.x,Di.translateY=Di.y;var Mi=new Set,Ri=!1,ji=!1;function Li(){if(ji){const t=Array.from(Mi).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Vi.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ji=!1,Ri=!1,Mi.forEach(t=>t.complete()),Mi.clear()}function Fi(){Mi.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ji=!0)})}var Bi=class{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Mi.add(this),Ri||(Ri=!0,it.read(Fi),it.resolveKeyframes(Li))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Mi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Mi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Oi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ii=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ui(t,e,n=1){X(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=Ii.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return Oi(t)?parseFloat(t):t}return ie(s)?Ui(s,e,n+1):s}var Ni=t=>e=>e.test(t),$i=[ae,pe,de,ce,fe,me,{test:t=>"auto"===t,parse:t=>t}],Wi=t=>$i.find(Ni(t)),Ki=class extends Bi{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),ie(n))){const i=Ui(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!An.has(n)||2!==t.length)return;const[i,s]=t,o=Wi(i),r=Wi(s);if(o!==r)if(Ai(o)&&Ai(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)Zn(t[i])&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Ti.has(e)&&di(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Si(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Di[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=Di[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},zi=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!gi.test(t)&&"0"!==t||t.startsWith("url(")));function Hi(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=zi(s,e),a=zi(o,e);return q(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||tn(n))&&i)}var Yi=t=>null!==t;function qi(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Yi),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}var Xi=class{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Cn.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Fi(),Li()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Cn.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Hi(t,n,i,s)){if(In||!o)return a&&a(qi(t,this.options,e)),r&&r(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}},_i=(t,e,n)=>t+(e-t)*n;function Gi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Zi(t,e){return n=>n>0?e:t}var Ji=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Qi=[oi,si,ri];function ts(t){const e=(n=t,Qi.find(t=>t.test(n)));var n;if(q(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===ri&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Gi(a,i,t+1/3),o=Gi(a,i,t),r=Gi(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}var es=(t,e)=>{const n=ts(t),i=ts(e);if(!n||!i)return Zi(t,e);const s={...n};return t=>(s.red=Ji(n.red,i.red,t),s.green=Ji(n.green,i.green,t),s.blue=Ji(n.blue,i.blue,t),s.alpha=_i(n.alpha,i.alpha,t),si.transform(s))},ns=(t,e)=>n=>e(t(n)),is=(...t)=>t.reduce(ns),ss=new Set(["none","hidden"]);function os(t,e){return n=>_i(t,e,n)}function rs(t){return"number"==typeof t?os:"string"==typeof t?ie(t)?Zi:ai.test(t)?es:us:Array.isArray(t)?as:"object"==typeof t?ai.test(t)?es:ls:Zi}function as(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>rs(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function ls(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=rs(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}var us=(t,e)=>{const n=gi.createTransformer(e),i=di(t),s=di(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?ss.has(t)&&!s.values.length||ss.has(e)&&!i.values.length?function(t,e){return ss.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):is(as(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]];i[o]=null!==(n=t.values[a])&&void 0!==n?n:0,s[r]++}return i}(i,s),s.values),n):(q(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Zi(t,e))};function hs(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?_i(t,e,n):rs(t)(t,e)}function cs(t,e,n){const i=Math.max(e-5,0);return Mn(n-t(i),e-i)}var ds=100,ps=10,ms=1,fs=0,gs=800,vs=.3,ys=.3,xs={granular:.01,default:2},bs={granular:.005,default:.5},ws=.01,Ps=10,Ss=.05,Ts=1,As=.001;function Es({duration:t=gs,bounce:e=vs,velocity:n=fs,mass:i=ms}){let s,o;q(t<=Z(Ps),"Spring duration must be 10 seconds or less");let r=1-e;r=re(Ss,Ts,r),t=re(ws,Ps,J(t)),r<1?(s=e=>{const i=e*r,s=i*t,o=i-n,a=ks(e,r),l=Math.exp(-s);return As-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=ks(Math.pow(e,2),r);return(-s(e)+As>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<Cs;s++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=Z(t),isNaN(a))return{stiffness:ds,damping:ps,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}var Cs=12;function ks(t,e){return t*Math.sqrt(1-e*e)}var Vs=["duration","bounce"],Ds=["stiffness","damping","mass"];function Ms(t,e){return e.some(e=>void 0!==t[e])}function Rs(t=ys,e=vs){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:fs,stiffness:ds,damping:ps,mass:ms,isResolvedFromDuration:!1,...t};if(!Ms(t,Ds)&&Ms(t,Vs))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*re(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:ms,stiffness:s,damping:o}}else{const n=Es(t);e={...e,...n,mass:ms},e.isResolvedFromDuration=!0}return e}({...n,velocity:-J(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*h)),g=r-o,v=J(Math.sqrt(l/h)),y=Math.abs(g)<5;let x;if(i||(i=y?xs.granular:xs.default),s||(s=y?bs.granular:bs.default),f<1){const t=ks(v,f);x=e=>r-Math.exp(-f*v*e)*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===f)x=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const b={calculatedDuration:p&&c||null,next:t=>{const e=x(t);if(p)a.done=t>=c;else{let n=0;f<1&&(n=0===t?Z(m):cs(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Qe(b),2e4),e=an(e=>b.next(t*e).value,t,30);return t+"ms "+e}};return b}function js({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=c+m,g=void 0===r?f:r(f);g!==f&&(m=g-c);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),x=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let b,w;const P=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,w=Rs({keyframes:[d.value,p(d.value)],velocity:cs(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==b||(e=!0,x(t),P(t)),void 0!==b&&t>=b?w.next(t-b):(!e&&x(t),d)}}}var Ls=Nn(.42,0,1,1),Fs=Nn(0,0,.58,1),Bs=Nn(.42,0,.58,1),Os={linear:Y,easeIn:Ls,easeInOut:Bs,easeOut:Fs,circIn:qn,circInOut:_n,circOut:Xn,backIn:zn,backInOut:Hn,backOut:Kn,anticipate:Yn},Is=t=>{if(nn(t)){X(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Nn(e,n,i,s)}return"string"==typeof t?(X(void 0!==Os[t],`Invalid easing type '${t}'`),Os[t]):t};function Us(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(X(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||hs,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);e&&(n=is(Array.isArray(e)?e[r]||Y:e,n)),i.push(n)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=G(t[i],t[i+1],n);return a[i](s)};return n?e=>u(re(t[0],t[o-1],e)):u}function Ns(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=G(0,e,i);t.push(_i(n,1,s))}}(e,t.length-1),e}function $s({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(Is):Is(i),o={done:!1,value:e[0]},r=Us(function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Ns(e),t),e,{ease:Array.isArray(s)?s:(a=e,l=s,a.map(()=>l||Bs).splice(0,a.length-1))});var a,l;return{calculatedDuration:t,next:e=>(o.value=r(e),o.done=e>=t,o)}}var Ws=t=>{const e=({timestamp:e})=>t(e);return{start:()=>it.update(e,!0),stop:()=>st(e),now:()=>ot.isProcessing?ot.timestamp:Cn.now()}},Ks={decay:js,inertia:js,tween:$s,keyframes:$s,spring:Rs},zs=t=>t/100,Hs=class extends Xi{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||Bi;this.resolver=new o(s,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=tn(e)?e:Ks[e]||$s;let a,l;r!==$s&&"number"!=typeof t[0]&&(a=is(zs,hs(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Qe(u));const{calculatedDuration:h}=u,c=h+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1),Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(x=o)),y=re(0,1,n)*h}const b=v?{done:!1,value:a[0]}:x.next(y);r&&(b.value=r(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==i&&(b.value=qi(a,this.options,i)),f&&f(b.value),P&&this.finish(),b}get duration(){const{resolved:t}=this;return t?J(t.calculatedDuration):0}get time(){return J(this.currentTime)}set time(t){t=Z(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=J(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Ws,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}},Ys=new Set(["opacity","clipPath","filter","transform"]);function qs(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const h=cn(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}var Xs=_(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var _s={anticipate:Yn,backInOut:Hn,circInOut:_n};var Gs=class extends Xi{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new Ki(s,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:i,ease:s,type:o,motionValue:r,name:a,startTime:l}=this.options;if(!r.owner||!r.owner.current)return!1;var u;if("string"==typeof s&&rn()&&s in _s&&(s=_s[s]),tn((u=this.options).type)||"spring"===u.type||!ln(u.ease)){const{onComplete:e,onUpdate:r,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new Hs({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,i=h.times,s=h.ease,o="keyframes"}const h=qs(r.owner.current,a,t,{...this.options,duration:n,times:i,ease:s});return h.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(en(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:n}=this.options;r.set(qi(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return J(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return J(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=Z(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return Y;const{animation:n}=e;en(n,t)}else this.pendingTimeline=t;return Y}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new Hs({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),c=Z(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return Xs()&&n&&Ys.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}},Zs={type:"spring",stiffness:500,damping:25,restSpeed:10},Js={type:"keyframes",duration:.8},Qs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},to=(t,{keyframes:e})=>e.length>2?Js:Qt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Zs:Qs;var eo=(t,e,n,i={},s,o)=>r=>{const a=Je(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=Z(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length})(a)||(h={...h,...to(t,h)}),h.duration&&(h.duration=Z(h.duration)),h.repeatDelay&&(h.repeatDelay=Z(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(c=!0)),(In||Q)&&(c=!0,h.duration=0,h.delay=0),c&&!o&&void 0!==e.get()){const t=qi(h.keyframes,a);if(void 0!==t)return it.update(()=>{h.onUpdate(t),h.onComplete()}),new Ze([])}return!o&&Gs.supports(h)?new Gs(h):new Hs(h)};function no({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function io(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const c in l){const e=t.getValue(c,null!==(o=t.latestValues[c])&&void 0!==o?o:null),i=l[c];if(void 0===i||h&&no(h,c))continue;const s={delay:n,...Je(r||{},c)};let a=!1;if(window.MotionHandoffAnimation){const e=On(t);if(e){const t=window.MotionHandoffAnimation(e,c,it);null!==t&&(s.startTime=t,a=!0)}}Bn(t,c),e.start(eo(c,e,i,t.shouldReduceMotion&&An.has(c)?{type:!1}:s,t,a));const d=e.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{it.update(()=>{a&&function(t,e){let{transitionEnd:n={},transition:i={},...s}=Xe(t,e)||{};s={...s,...n};for(const o in s)Fn(t,o,qt(s[o]))}(t,a)})}),u}function so(t,e,n={}){var i;const s=Xe(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(io(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(oo).forEach((t,i)=>{t.notify("AnimationStart",e),r.push(so(t,e,{...o,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}return Promise.all([r(),a(n.delay)])}function oo(t,e){return t.sortNodePosition(e)}var ro=At.length;function ao(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ao(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<ro;n++){const i=At[n],s=t.props[i];(Pt(s)||!1===s)&&(e[i]=s)}return e}var lo=[...Tt].reverse(),uo=Tt.length;function ho(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>so(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=so(t,e,n);else{const s="function"==typeof e?Xe(t,e,n.custom):e;i=Promise.all(io(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function co(t){let e=ho(t),n=fo(),i=!0;const s=e=>(n,i)=>{var s;const o=Xe(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=ao(t.parent)||{},l=[],u=new Set;let h={},c=1/0;for(let e=0;e<uo;e++){const d=lo[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=Pt(m),g=d===o?p.isActive:null;!1===g&&(c=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||St(m)||"boolean"==typeof m)continue;const y=po(p.prevProp,m);let x=y||d===o&&p.isActive&&!v&&f||e>c&&f,b=!1;const w=Array.isArray(m)?m:[m];let P=w.reduce(s(d),{});!1===g&&(P={});const{prevResolvedValues:S={}}=p,T={...S,...P},A=e=>{x=!0,u.has(e)&&(b=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in T){const e=P[t],n=S[t];if(h.hasOwnProperty(t))continue;let i=!1;i=Yt(e)&&Yt(n)?!qe(e,n):e!==n,i?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=P,p.isActive&&(h={...h,...P}),i&&t.blockInitialAnimation&&(x=!1),!x||v&&y&&!b||l.push(...w.map(t=>({animation:t,options:{type:d}})))}if(u.size){const e={};u.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=fo(),i=!0}}}function po(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!qe(e,t)}function mo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fo(){return{animate:mo(!0),whileInView:mo(),whileHover:mo(),whileTap:mo(),whileDrag:mo(),whileFocus:mo(),exit:mo()}}var go=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},vo=0,yo={animation:{Feature:class extends go{constructor(t){super(t),t.animationState||(t.animationState=co(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();St(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends go{constructor(){super(...arguments),this.id=vo++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>e(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function xo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function bo(t){return{point:{x:t.pageX,y:t.pageY}}}function wo(t,e,n,i){return xo(t,e,(t=>e=>vn(e)&&t(e,bo(e)))(n),i)}var Po=(t,e)=>Math.abs(t-e);var So=class{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Eo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Po(t.x,e.x),i=Po(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=ot;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=To(e,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Eo("pointercancel"===t.type?this.lastMoveEventInfo:To(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!vn(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=To(bo(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=ot;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Eo(o,this.history)),this.removeListeners=is(wo(this.contextWindow,"pointermove",this.handlePointerMove),wo(this.contextWindow,"pointerup",this.handlePointerUp),wo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),st(this.updatePoint)}};function To(t,e){return e?{point:e(t.point)}:t}function Ao(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Eo({point:t},e){return{point:t,delta:Ao(t,ko(e)),offset:Ao(t,Co(e)),velocity:Vo(e,.1)}}function Co(t){return t[0]}function ko(t){return t[t.length-1]}function Vo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=ko(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Z(e)));)n--;if(!i)return{x:0,y:0};const o=J(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Do(t){return t.max-t.min}function Mo(t,e,n,i=.5){t.origin=i,t.originPoint=_i(e.min,e.max,t.origin),t.scale=Do(n)/Do(e),t.translate=_i(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Ro(t,e,n,i){Mo(t.x,e.x,n.x,i?i.originX:void 0),Mo(t.y,e.y,n.y,i?i.originY:void 0)}function jo(t,e,n){t.min=n.min+e.min,t.max=t.min+Do(e)}function Lo(t,e,n){t.min=e.min-n.min,t.max=t.min+Do(e)}function Fo(t,e,n){Lo(t.x,e.x,n.x),Lo(t.y,e.y,n.y)}function Bo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Oo(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}var Io=.35;function Uo(t,e,n){return{min:No(t,e),max:No(t,n)}}function No(t,e){return"number"==typeof t?t:t[e]||0}var $o=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Wo(t){return[t("x"),t("y")]}function Ko({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function zo(t){return void 0===t||1===t}function Ho({scale:t,scaleX:e,scaleY:n}){return!zo(t)||!zo(e)||!zo(n)}function Yo(t){return Ho(t)||qo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function qo(t){return Xo(t.x)||Xo(t.y)}function Xo(t){return t&&"0%"!==t}function _o(t,e,n){return n+e*(t-n)}function Go(t,e,n,i,s){return void 0!==s&&(t=_o(t,s,i)),_o(t,n,i)+e}function Zo(t,e=0,n=1,i,s){t.min=Go(t.min,e,n,i,s),t.max=Go(t.max,e,n,i,s)}function Jo(t,{x:e,y:n}){Zo(t.x,e.translate,e.scale,e.originPoint),Zo(t.y,n.translate,n.scale,n.originPoint)}var Qo=.999999999999,tr=1.0000000000001;function er(t,e){t.min=t.min+e,t.max=t.max+e}function nr(t,e,n,i,s=.5){Zo(t,e,n,_i(t.min,t.max,s),i)}function ir(t,e){nr(t.x,e.x,e.scaleX,e.scale,e.originX),nr(t.y,e.y,e.scaleY,e.scale,e.originY)}function sr(t,e){return Ko(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}var or=({current:t})=>t?t.ownerDocument.defaultView:null,rr=new WeakMap,ar=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new So(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(bo(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?dn[o]?null:(dn[o]=!0,()=>{dn[o]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wo(t=>{let e=this.getAxisMotionValue(t).get()||0;if(de.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];i&&(e=Do(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&it.postRender(()=>s(t,e)),Bn(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Wo(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:or(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&it.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!lr(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?_i(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?_i(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&Mt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Bo(t.x,n,s),y:Bo(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=Io){return!1===t?t=0:!0===t&&(t=Io),{x:Uo(t,"left","right"),y:Uo(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Wo(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Mt(t))return!1;const n=t.current;X(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=sr(t,n),{scroll:s}=e;return s&&(er(i.x,s.offset.x),er(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:Oo(t.x,e.x),y:Oo(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Ko(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Wo(r=>{if(!lr(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Bn(this.visualElement,t),n.start(eo(t,n,0,e,this.visualElement,!1))}stopAnimation(){Wo(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Wo(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Wo(e=>{const{drag:n}=this.getProps();if(!lr(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-_i(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Mt(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Wo(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Do(t),s=Do(e);return s>i?n=G(e.min,e.max-i,t.min):i>s&&(n=G(t.min,t.max-s,e.min)),re(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wo(e=>{if(!lr(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(_i(s,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;rr.set(this.visualElement,this);const t=wo(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Mt(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),it.read(e);const s=xo(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Wo(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Io,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}};function lr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var ur=t=>(e,n)=>{t&&it.postRender(()=>t(e,n))},hr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var dr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!pe.test(t))return t;t=parseFloat(t)}return`${cr(t,e.target.x)}% ${cr(t,e.target.y)}%`}},pr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=gi.parse(t);if(s.length>5)return i;const o=gi.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=_i(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}},mr=class extends D.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=gr,Object.assign(Le,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),hr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||it.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ft.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function fr(t){const[e,n]=function(t=!0){const e=(0,D.useContext)(W);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=(0,D.useId)();(0,D.useEffect)(()=>{t&&s(o)},[t]);const r=(0,D.useCallback)(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}(),i=(0,D.useContext)($);return(0,L.jsx)(mr,{...t,layoutGroup:i,switchLayoutGroup:(0,D.useContext)(Ot),isPresent:e,safeToRemove:n})}var gr={borderRadius:{...dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dr,borderTopRightRadius:dr,borderBottomLeftRadius:dr,borderBottomRightRadius:dr,boxShadow:pr};var vr=(t,e)=>t.depth-e.depth,yr=class{constructor(){this.children=[],this.isDirty=!1}add(t){kn(this.children,t),this.isDirty=!0}remove(t){Vn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vr),this.isDirty=!1,this.children.forEach(t)}};var xr=["TopLeft","TopRight","BottomLeft","BottomRight"],br=xr.length,wr=t=>"string"==typeof t?parseFloat(t):t,Pr=t=>"number"==typeof t||pe.test(t);function Sr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var Tr=Er(0,.5,Xn),Ar=Er(.5,.95,Y);function Er(t,e,n){return i=>i<t?0:i>e?1:n(G(t,e,i))}function Cr(t,e){t.min=e.min,t.max=e.max}function kr(t,e){Cr(t.x,e.x),Cr(t.y,e.y)}function Vr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Dr(t,e,n,i,s){return t=_o(t-=e,1/n,i),void 0!==s&&(t=_o(t,1/s,i)),t}function Mr(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){if(de.test(e)&&(e=parseFloat(e),e=_i(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=_i(o.min,o.max,i);t===o&&(a-=e),t.min=Dr(t.min,e,n,a,s),t.max=Dr(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}var Rr=["x","scaleX","originX"],jr=["y","scaleY","originY"];function Lr(t,e,n,i){Mr(t.x,e,Rr,n?n.x:void 0,i?i.x:void 0),Mr(t.y,e,jr,n?n.y:void 0,i?i.y:void 0)}function Fr(t){return 0===t.translate&&1===t.scale}function Br(t){return Fr(t.x)&&Fr(t.y)}function Or(t,e){return t.min===e.min&&t.max===e.max}function Ir(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ur(t,e){return Ir(t.x,e.x)&&Ir(t.y,e.y)}function Nr(t){return Do(t.x)/Do(t.y)}function $r(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Wr=class{constructor(){this.members=[]}add(t){kn(this.members,t),t.scheduleRender()}remove(t){if(Vn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};var Kr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zr="undefined"!=typeof window&&void 0!==window.MotionDebug,Hr=["","X","Y","Z"],Yr={visibility:"hidden"},qr=0;function Xr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function _r(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=On(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",it,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&_r(i)}function Gr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=qr++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,zr&&(Kr.totalNodes=Kr.resolvedTargetDeltas=Kr.recalculatedProjection=0),this.nodes.forEach(Qr),this.nodes.forEach(ra),this.nodes.forEach(aa),this.nodes.forEach(ta),zr&&window.MotionDebug.record(Kr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,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 yr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Dn),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Cn.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(st(i),t(o-e))};return it.read(i,!0),()=>st(i)}(i,250),hr.hasAnimatedSinceResize&&(hr.hasAnimatedSinceResize=!1,this.nodes.forEach(oa))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||pa,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!Ur(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Je(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||oa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,st(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(la),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_r(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(na);this.isUpdating||this.nodes.forEach(ia),this.isUpdating=!1,this.nodes.forEach(sa),this.nodes.forEach(Zr),this.nodes.forEach(Jr),this.clearAllSnapshots();const t=Cn.now();ot.delta=re(0,1e3/60,t-ot.timestamp),ot.timestamp=t,ot.isProcessing=!0,rt.update.process(ot),rt.preRender.process(ot),rt.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ft.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ea),this.sharedNodes.forEach(ua)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,it.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){it.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++)this.path[n].updateScroll();const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Br(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||Yo(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ga((i=n).x),ga(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!(null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)&&!this.path.some(ya)){const{scroll:t}=this.root;t&&(er(n.x,t.offset.x),er(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(kr(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&kr(n,t),er(n.x,s.offset.x),er(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};kr(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&ir(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Yo(t.latestValues)&&ir(n,t.latestValues)}return Yo(this.latestValues)&&ir(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};kr(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Yo(t.latestValues))continue;Ho(t.latestValues)&&t.updateSnapshot();const i=$o();kr(i,t.measurePageBox()),Lr(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return Yo(this.latestValues)&&Lr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=ot.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Fo(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,jo(r.x,a.x,l.x),jo(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):kr(this.target,this.layout.layoutBox),Jo(this.target,this.targetDelta)):kr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Fo(this.relativeTargetOrigin,this.target,t.target),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zr&&Kr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ho(this.parent.latestValues)&&!qo(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;kr(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ir(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Jo(t,r)),i&&Yo(o.latestValues)&&ir(t,o.latestValues))}e.x<tr&&e.x>Qo&&(e.x=1),e.y<tr&&e.y>Qo&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Vr(this.prevProjectionDelta.x,this.projectionDelta.x),Vr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ro(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&$r(this.projectionDelta.x,this.prevProjectionDelta.x)&&$r(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),zr&&Kr.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(da));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;ha(o.x,t.x,n),ha(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fo(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,ca(p.x,m.x,f.x,g),ca(p.y,m.y,f.y,g),c&&(l=this.relativeTarget,d=c,Or(l.x,d.x)&&Or(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c={x:{min:0,max:0},y:{min:0,max:0}}),kr(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=_i(0,void 0!==n.opacity?n.opacity:1,Tr(i)),t.opacityExit=_i(void 0!==e.opacity?e.opacity:1,0,Ar(i))):o&&(t.opacity=_i(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<br;r++){const s=`border${xr[r]}Radius`;let o=Sr(e,s),a=Sr(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Pr(o)===Pr(a)?(t[s]=Math.max(_i(wr(o),wr(a),i),0),(de.test(a)||de.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=_i(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{hr.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=Xt(t)?t:Ln(t);return i.start(eo("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&va(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Do(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Do(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}kr(e,n),ir(e,s),Ro(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Wr),this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Xr("z",t,i,this.animationValues);for(let s=0;s<Hr.length;s++)Xr(`rotate${Hr[s]}`,t,i,this.animationValues),Xr(`skew${Hr[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yr;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=_t(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=_t(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Yo(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const u in Le){if(void 0===r[u])continue;const{correct:t,applyTo:e}=Le[u],n="none"===i.transform?r[u]:t(r[u],o);if(e){const t=e.length;for(let s=0;s<t;s++)i[e[s]]=n}else i[u]=n}return this.options.layoutId&&(i.pointerEvents=o===this?_t(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(na),this.root.sharedNodes.clear()}}}function Zr(t){t.updateLayout()}function Jr(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?Wo(t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Do(i);i.min=e[t].min,i.max=i.min+s}):va(s,n.layoutBox,e)&&Wo(i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Do(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ro(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Ro(a,t.applyTransform(i,!0),n.measuredBox):Ro(a,e,n.layoutBox);const l=!Br(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Fo(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Fo(a,e,o.layoutBox),Ur(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Qr(t){zr&&Kr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ta(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ea(t){t.clearSnapshot()}function na(t){t.clearMeasurements()}function ia(t){t.isLayoutDirty=!1}function sa(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function oa(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ra(t){t.resolveTargetDelta()}function aa(t){t.calcProjection()}function la(t){t.resetSkewAndRotation()}function ua(t){t.removeLeadSnapshot()}function ha(t,e,n){t.translate=_i(e.translate,0,n),t.scale=_i(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ca(t,e,n,i){t.min=_i(e.min,n.min,i),t.max=_i(e.max,n.max,i)}function da(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var pa={duration:.45,ease:[.4,0,.1,1]},ma=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),fa=ma("applewebkit/")&&!ma("chrome/")?Math.round:Y;function ga(t){t.min=fa(t.min),t.max=fa(t.max)}function va(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Nr(e),s=Nr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function ya(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}var xa=Gr({attachResizeListener:(t,e)=>xo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ba={current:void 0},wa=Gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ba.current){const t=new xa({});t.mount(window),t.setOptions({layoutScroll:!0}),ba.current=t}return ba.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Pa={pan:{Feature:class extends go{constructor(){super(...arguments),this.removePointerDownListener=Y}onPointerDown(t){this.session=new So(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:or(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ur(t),onStart:ur(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&it.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=wo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends go{constructor(t){super(t),this.removeGroupControls=Y,this.removeListeners=Y,this.controls=new ar(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Y}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:wa,MeasureLayout:fr}};function Sa(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&it.postRender(()=>s(e,bo(e)))}function Ta(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&it.postRender(()=>s(e,bo(e)))}var Aa=new WeakMap,Ea=new WeakMap,Ca=t=>{const e=Aa.get(t.target);e&&e(t)},ka=t=>{t.forEach(Ca)};function Va(t,e,n){const i=function({root:t,...e}){const n=t||document;Ea.has(n)||Ea.set(n,{});const i=Ea.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ka,{root:t,...e})),i[s]}(e);return Aa.set(t,n),i.observe(t),()=>{Aa.delete(t),i.unobserve(t)}}var Da={some:0,all:1};var Ma={inView:{Feature:class extends go{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Da[i]};return Va(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends go{mount(){const{current:t}=this.node;t&&(this.unmount=Sn(t,t=>(Ta(this.node,t,"Start"),(t,{success:e})=>Ta(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends go{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=is(xo(this.node.current,"focus",()=>this.onFocus()),xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends go{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=mn(t,n),r=fn(t=>{const{target:n}=t,i=e(t);if("function"!=typeof i||!n)return;const o=fn(t=>{i(t),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,s)});return i.forEach(t=>{t.addEventListener("pointerenter",r,s)}),o}(t,t=>(Sa(this.node,t,"Start"),t=>Sa(this.node,t,"End"))))}unmount(){}}}},Ra={layout:{ProjectionNode:wa,MeasureLayout:fr}},ja={current:null},La={current:!1};var Fa=[...$i,ai,gi],Ba=new WeakMap;var Oa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ia=class{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const t=Cn.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,it.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=Et(e),this.isVariantNode=Ct(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in c){const t=c[d];void 0!==a[d]&&Xt(t)&&t.set(a[d],!1)}}mount(t){this.current=t,Ba.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),La.current||function(){if(La.current=!0,z)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ja.current=t.matches;t.addListener(e),e()}else ja.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ja.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ba.delete(this.current),this.projection&&this.projection.unmount(),st(this.notifyUpdate),st(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Qt.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&it.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ut){const e=ut[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<Oa.length;n++){const e=Oa[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(Xt(s))t.addValue(i,s);else if(Xt(o))t.addValue(i,Ln(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,Ln(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Ln(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(Oi(i)||Gn(i))?i=parseFloat(i):(s=i,!Fa.find(Ni(s))&&gi.test(e)&&(i=Si(t,e))),this.setBaseTarget(t,Xt(i)?i.get():i)),Xt(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=Ht(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||Xt(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Dn),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}},Ua=class extends Ia{constructor(){super(...arguments),this.KeyframeResolver=Ki}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xt(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};var Na=class extends Ua{constructor(){super(...arguments),this.type="html",this.renderInstance=Me}readValueFromInstance(t,e){if(Qt.has(e)){const t=Pi(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(ee(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return sr(t,e)}build(t,e,n){Se(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Be(t,e,n)}},$a=class extends Ua{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$o}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Qt.has(e)){const t=Pi(e);return t&&t.default||0}return e=Re.has(e)?e:jt(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Oe(t,e,n)}build(t,e,n){Ce(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){je(t,e,0,i)}mount(t){this.isSVGTag=De(t.tagName),super.mount(t)}},Wa=bt(Ye({...yo,...Ma,...Pa,...Ra},(t,e)=>Kt(t)?new $a(e):new Na(e,{allowProjection:t!==D.Fragment})));function Ka({name:t,label:e,type:n="text",value:i="",isDisabled:s,isLoading:o,maxLength:r=255,prefixIcon:a,className:l,onChange:u}){return(0,L.jsxs)("div",{className:`flex relative w-full cursor-text ${l||""}`,children:[(0,L.jsx)("input",{className:"\n peer transition-all grow\n px-4 pt-5 pb-1.5 border border-solid rounded outline-none\n border-gray-300 bg-white text-black text-sm\n placeholder:text-transparent\n focus:border-ll-primary\n hover:bg-gray-25\n disabled:text-gray-200\n data-[has-prefix-icon=true]:pl-10\n",type:n,id:t,name:t,placeholder:e,value:i,max:r,disabled:o||s,"data-is-loading":o,"data-has-prefix-icon":!!a,onChange:t=>{void 0!==u&&u(t)},"data-1p-ignore":!0}),(0,L.jsx)(Wa.label,{htmlFor:t,className:"\n text-sm text-stone-500 ml-4\n absolute top-3.5 origin-top-left\n scale-75 duration-300\n\n transform\n -translate-y-2\n\n peer-placeholder-shown:scale-100\n peer-placeholder-shown:translate-y-0\n peer-focus:scale-75\n peer-focus:-translate-y-2\n peer-data-[has-prefix-icon=true]:mx-10\n",children:e}),void 0!==a&&(0,L.jsx)(a,{className:"\n h-4 w-4\n absolute left-4 top-1/2 -translate-y-1/2\n text-stone-500\n"})]})}var za="\n text-sm font-normal\n\n data-[is-title=true]:py-2.5\n data-[is-title=true]:px-4\n data-[is-title=true]:text-ll-placeholder\n data-[is-title=true]:text-xs\n",Ha="\n py-2.5 px-4 block transition-all\n hover:font-medium hover:bg-ll-surface-variant1\n",Ya={dev:"https://api-qa.locallogic.co/neighborhood-management-v1",qa:"https://api-qa.locallogic.co/neighborhood-management-v1",prod:"https://api.locallogic.co/neighborhood-management-v1"};function qa(){const t=(0,D.useRef)(null),{t:e}=l("neighborhoodShowcase"),[n,i]=(0,D.useState)(!1),[s,o]=(0,D.useState)(""),r=b(s,500),{myNeighborhoods:a,singleNeighborhoodURLSchema:u}=B(),{sdkState:c}=S(),d=c.options?.urlSchemaSpacer||"-",[p,m]=(0,D.useState)([]),[f,g]=(0,D.useState)([]),{data:y,isFetched:w,isLoading:P}=function({search:t,pageSize:e=10}){const{sdkState:n}=S(),i=Ya[n.globalOptions?.environment?.api||"prod"];return h({queryKey:["neighborhoods",t],queryFn:async()=>{const s={include:"configurations",page_size:`${e}`};return t&&(s.search=t),fetch(`${i}/sdk/neighborhoods/${n?.globalOptions?.externalId}?${new URLSearchParams(s)}`,{headers:{Accept:"application/json",Authorization:n.apiKey,"x-ll-sdk-name":"neighborhood-showcase"},method:"GET"}).then(t=>{if([204,404].includes(t.status))return null;if(t.status>=300)throw new Error(`Request failed with status ${t.status}`);return t.json()}).then(t=>(t.neighborhoods||[]).map(e=>k(n.globalOptions?.locale||"en",e,t.configurations[e.geog_id]))).catch(t=>{x.captureException(t)})},enabled:!!n?.globalOptions?.externalId&&!!t&&!!n.apiKey})}({search:r}),T=(0,D.useMemo)(()=>a?.map(t=>t.geogId),[a]);var A,E,V;(0,D.useEffect)(()=>{w&&!P&&(m(y?.filter(t=>!T?.includes(t.geogId))||[]),g(y?.filter(t=>T?.includes(t.geogId))||[]),i(y?.length>0))},[y,w,P]),A=t,E="click",V=()=>{i(!1),o("")},(0,D.useEffect)(()=>{const t=t=>{A.current&&!A.current.contains(t.target)&&V()};return window.addEventListener(E,t),()=>window.removeEventListener(E,t)},[A,V]);return(0,L.jsxs)("div",{className:"w-full sm:w-96 relative",ref:t,children:[(0,L.jsx)(Ka,{name:"searchNeighborhoods",prefixIcon:v,label:e("header.search.placeholder"),value:s,onChange:t=>{o(t.target.value)}}),n&&(0,L.jsx)("div",{className:"relative z-10",children:(0,L.jsxs)("ul",{className:"\n absolute top-0 left-0.5 right-0\n list-none px-0 py-1 mt-1\n rounded-lg overflow-hidden\n bg-white shadow rounded-lg \n",children:[p?.length>0&&(0,L.jsx)("li",{className:za,"data-is-title":!0,children:e("header.search.results.all")}),p?.map(t=>(0,L.jsx)("li",{className:za,children:(0,L.jsx)("a",{className:Ha,href:u&&C(u,t,d),target:"_parent",rel:"noreferrer",children:t.name})},t.geogId)),f?.length>0&&(0,L.jsx)("li",{className:za,"data-is-title":!0,children:e("header.search.results.featured")}),f?.map(t=>(0,L.jsx)("li",{className:za,children:(0,L.jsx)("a",{className:Ha,href:u&&C(u,t,d),target:"_parent",rel:"noreferrer",children:t.name})},t.geogId))]})})]})}function Xa(){const{t:t}=l("neighborhoodShowcase");return(0,L.jsxs)("div",{className:"mb-11",children:[(0,L.jsx)("h1",{className:"text-2xl font-medium",children:t("header.title")}),(0,L.jsx)("p",{className:"mb-4 text-ll-disabled",children:t("header.description")}),(0,L.jsx)(qa,{})]})}function _a(){return(0,L.jsxs)("div",{className:"flex flex-col py-6",children:[(0,L.jsx)(Xa,{}),(0,L.jsx)(N,{})]})}var Ga=u({lat:g().optional(),lng:g().optional(),geographyId:a().optional(),singleNeighborhoodURLSchema:a().optional(),urlSchemaSpacer:a().length(1).optional()}).noUnknown(!0);d(c.neighborhoodShowcase.key);var Za=()=>{const{sdkState:t}=S(),e=E(),n=t.globalOptions?.locale||"en",i=(0,D.useMemo)(()=>t.options?.geographyId?{geographyId:t.options?.geographyId}:{lat:t.options?.lat,lng:t.options?.lng},[t.options?.lat,t.options?.lng,t.options?.geographyId]);return(0,L.jsx)(T,{children:(0,L.jsx)(A,{sdk:"Neighborhood Showcase",schema:Ga,options:t.options,children:(0,L.jsx)(p,{environment:t.globalOptions?.environment?.api,apiKey:t.apiKey,appearance:t.globalOptions?.appearance,locale:t.globalOptions?.locale,product:f.NEIGHBORHOOD_SHOWCASE,children:(0,L.jsx)(r,{trackingPipelineSettings:{apiKey:t.apiKey||""},analyticsSettings:c.neighborhoodShowcase,meta:{clientId:t.clientId,productName:f.NEIGHBORHOOD_SHOWCASE,productVersion:"1.24.41"},attributes:{location:i,host:t.location,host_url:document.referrer,locale:n,isMobile:e},flags:{isDebugMode:!1},children:(0,L.jsx)(O,{children:(0,L.jsx)(_a,{})})})})})})};export{Za as default};
2
+ //# sourceMappingURL=NeighborhoodShowcase-CHCSD8YZ.js.map