@local-logic/sdks-app 1.24.43 → 1.24.44

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 (248) hide show
  1. package/dist/assets/{Attribution-DnmiY-id.js → Attribution-D012fWNs.js} +2 -2
  2. package/dist/assets/{Attribution-DnmiY-id.js.map → Attribution-D012fWNs.js.map} +1 -1
  3. package/dist/assets/{Attribution-legacy-Da4FA00m.js → Attribution-legacy-DSXG-3Q0.js} +2 -2
  4. package/dist/assets/{Attribution-legacy-Da4FA00m.js.map → Attribution-legacy-DSXG-3Q0.js.map} +1 -1
  5. package/dist/assets/{Cluster-BHQcO6iC-Do1P9Ia2.js → Cluster-BHQcO6iC-_jL_0N39.js} +2 -2
  6. package/dist/assets/{Cluster-BHQcO6iC-Do1P9Ia2.js.map → Cluster-BHQcO6iC-_jL_0N39.js.map} +1 -1
  7. package/dist/assets/{Cluster-BHQcO6iC-legacy-B3k4OIlu.js → Cluster-BHQcO6iC-legacy-3UMx26D5.js} +2 -2
  8. package/dist/assets/{Cluster-BHQcO6iC-legacy-B3k4OIlu.js.map → Cluster-BHQcO6iC-legacy-3UMx26D5.js.map} +1 -1
  9. package/dist/assets/{Google-BFAJ84CT-DhLE7SMg.js → Google-BFAJ84CT-Dh97X1sB.js} +2 -2
  10. package/dist/assets/{Google-BFAJ84CT-DhLE7SMg.js.map → Google-BFAJ84CT-Dh97X1sB.js.map} +1 -1
  11. package/dist/assets/{Google-BFAJ84CT-legacy-BXfoTpXf.js → Google-BFAJ84CT-legacy-D0OGURqq.js} +2 -2
  12. package/dist/assets/{Google-BFAJ84CT-legacy-BXfoTpXf.js.map → Google-BFAJ84CT-legacy-D0OGURqq.js.map} +1 -1
  13. package/dist/assets/{Google-BS41ufih-i8xQrE_C.js → Google-BS41ufih-Cc3f5UsV.js} +2 -2
  14. package/dist/assets/{Google-BS41ufih-i8xQrE_C.js.map → Google-BS41ufih-Cc3f5UsV.js.map} +1 -1
  15. package/dist/assets/{Google-BS41ufih-legacy-BdzBlyLB.js → Google-BS41ufih-legacy-BnojXQoy.js} +2 -2
  16. package/dist/assets/{Google-BS41ufih-legacy-BdzBlyLB.js.map → Google-BS41ufih-legacy-BnojXQoy.js.map} +1 -1
  17. package/dist/assets/{Google-CH7a2yx--BBV608XJ.js → Google-CH7a2yx--CBaNUH_8.js} +2 -2
  18. package/dist/assets/{Google-CH7a2yx--BBV608XJ.js.map → Google-CH7a2yx--CBaNUH_8.js.map} +1 -1
  19. package/dist/assets/{Google-CH7a2yx--legacy-DK3evKRO.js → Google-CH7a2yx--legacy-C_ip84Oz.js} +2 -2
  20. package/dist/assets/{Google-CH7a2yx--legacy-DK3evKRO.js.map → Google-CH7a2yx--legacy-C_ip84Oz.js.map} +1 -1
  21. package/dist/assets/{Google-CXGCn-oJ-5ByomDf2.js → Google-CXGCn-oJ-i9rxhVJh.js} +2 -2
  22. package/dist/assets/{Google-CXGCn-oJ-5ByomDf2.js.map → Google-CXGCn-oJ-i9rxhVJh.js.map} +1 -1
  23. package/dist/assets/{Google-CXGCn-oJ-legacy-DA32c0kh.js → Google-CXGCn-oJ-legacy-OuENT3oi.js} +2 -2
  24. package/dist/assets/{Google-CXGCn-oJ-legacy-DA32c0kh.js.map → Google-CXGCn-oJ-legacy-OuENT3oi.js.map} +1 -1
  25. package/dist/assets/{Google-DbOLrYJn-IeJcma0o.js → Google-DbOLrYJn-bogicaOo.js} +2 -2
  26. package/dist/assets/{Google-DbOLrYJn-IeJcma0o.js.map → Google-DbOLrYJn-bogicaOo.js.map} +1 -1
  27. package/dist/assets/{Google-DbOLrYJn-legacy-gzWCKBCo.js → Google-DbOLrYJn-legacy-B95opCm9.js} +2 -2
  28. package/dist/assets/{Google-DbOLrYJn-legacy-gzWCKBCo.js.map → Google-DbOLrYJn-legacy-B95opCm9.js.map} +1 -1
  29. package/dist/assets/{GridGraph-C0PP17kA.js → GridGraph-_rWMkwNI.js} +2 -2
  30. package/dist/assets/{GridGraph-C0PP17kA.js.map → GridGraph-_rWMkwNI.js.map} +1 -1
  31. package/dist/assets/{GridGraph-legacy-B1C-2d1Q.js → GridGraph-legacy-CsgF_9Vx.js} +2 -2
  32. package/dist/assets/{GridGraph-legacy-B1C-2d1Q.js.map → GridGraph-legacy-CsgF_9Vx.js.map} +1 -1
  33. package/dist/assets/{LeadCapture-e2fi_VKJ.js → LeadCapture-IqeCbA_u.js} +2 -2
  34. package/dist/assets/{LeadCapture-e2fi_VKJ.js.map → LeadCapture-IqeCbA_u.js.map} +1 -1
  35. package/dist/assets/{LeadCapture-legacy-wC9F3Dq5.js → LeadCapture-legacy-D_miey0j.js} +2 -2
  36. package/dist/assets/{LeadCapture-legacy-wC9F3Dq5.js.map → LeadCapture-legacy-D_miey0j.js.map} +1 -1
  37. package/dist/assets/{LocalContent-Bgf0CDoA.js → LocalContent-DL6Y67Ne.js} +2 -2
  38. package/dist/assets/{LocalContent-Bgf0CDoA.js.map → LocalContent-DL6Y67Ne.js.map} +1 -1
  39. package/dist/assets/{LocalContent-legacy-BHBTASYp.js → LocalContent-legacy-BBB-ST51.js} +2 -2
  40. package/dist/assets/{LocalContent-legacy-BHBTASYp.js.map → LocalContent-legacy-BBB-ST51.js.map} +1 -1
  41. package/dist/assets/{LocalDemographics-BuWGiqEi.js → LocalDemographics-DcirUh9h.js} +2 -2
  42. package/dist/assets/{LocalDemographics-BuWGiqEi.js.map → LocalDemographics-DcirUh9h.js.map} +1 -1
  43. package/dist/assets/{LocalDemographics-legacy-D1k5CRVw.js → LocalDemographics-legacy-rmGYdILu.js} +2 -2
  44. package/dist/assets/{LocalDemographics-legacy-D1k5CRVw.js.map → LocalDemographics-legacy-rmGYdILu.js.map} +1 -1
  45. package/dist/assets/{Mapbox-CpLnA607-AeAqR5aH.js → Mapbox-CpLnA607-CKDrFvU5.js} +2 -2
  46. package/dist/assets/{Mapbox-CpLnA607-AeAqR5aH.js.map → Mapbox-CpLnA607-CKDrFvU5.js.map} +1 -1
  47. package/dist/assets/{Mapbox-CpLnA607-legacy-CZe3Jz0m.js → Mapbox-CpLnA607-legacy-Bx1JnBMX.js} +2 -2
  48. package/dist/assets/{Mapbox-CpLnA607-legacy-CZe3Jz0m.js.map → Mapbox-CpLnA607-legacy-Bx1JnBMX.js.map} +1 -1
  49. package/dist/assets/{Mapbox-DDJ1gHRb-rvf9zFJO.js → Mapbox-DDJ1gHRb-BrLhMxW4.js} +2 -2
  50. package/dist/assets/{Mapbox-DDJ1gHRb-rvf9zFJO.js.map → Mapbox-DDJ1gHRb-BrLhMxW4.js.map} +1 -1
  51. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-NAVECUv-.js → Mapbox-DDJ1gHRb-legacy-DtASaFMy.js} +2 -2
  52. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-NAVECUv-.js.map → Mapbox-DDJ1gHRb-legacy-DtASaFMy.js.map} +1 -1
  53. package/dist/assets/{Mapbox-DiD9etYJ-zR1EkiNp.js → Mapbox-DiD9etYJ-BMtTiGO7.js} +2 -2
  54. package/dist/assets/{Mapbox-DiD9etYJ-zR1EkiNp.js.map → Mapbox-DiD9etYJ-BMtTiGO7.js.map} +1 -1
  55. package/dist/assets/{Mapbox-DiD9etYJ-legacy-pThPPnNQ.js → Mapbox-DiD9etYJ-legacy-WIywO1-w.js} +2 -2
  56. package/dist/assets/{Mapbox-DiD9etYJ-legacy-pThPPnNQ.js.map → Mapbox-DiD9etYJ-legacy-WIywO1-w.js.map} +1 -1
  57. package/dist/assets/{Mapbox-DtZmt1D_-DHhJhTo8.js → Mapbox-DtZmt1D_-Dq1UD7au.js} +2 -2
  58. package/dist/assets/{Mapbox-DtZmt1D_-DHhJhTo8.js.map → Mapbox-DtZmt1D_-Dq1UD7au.js.map} +1 -1
  59. package/dist/assets/{Mapbox-DtZmt1D_-legacy-ccCiz3Pd.js → Mapbox-DtZmt1D_-legacy-CXP5-C49.js} +2 -2
  60. package/dist/assets/{Mapbox-DtZmt1D_-legacy-ccCiz3Pd.js.map → Mapbox-DtZmt1D_-legacy-CXP5-C49.js.map} +1 -1
  61. package/dist/assets/{Mapbox-u11C3LWs-B_yCTqoV.js → Mapbox-u11C3LWs-DuakH8Ji.js} +2 -2
  62. package/dist/assets/{Mapbox-u11C3LWs-B_yCTqoV.js.map → Mapbox-u11C3LWs-DuakH8Ji.js.map} +1 -1
  63. package/dist/assets/{Mapbox-u11C3LWs-legacy-D90FQvEN.js → Mapbox-u11C3LWs-legacy-ChrUMjPl.js} +2 -2
  64. package/dist/assets/{Mapbox-u11C3LWs-legacy-D90FQvEN.js.map → Mapbox-u11C3LWs-legacy-ChrUMjPl.js.map} +1 -1
  65. package/dist/assets/{Maptiler-C0oTROMk-BwaieRuC.js → Maptiler-C0oTROMk-Dz6Vkl6m.js} +2 -2
  66. package/dist/assets/{Maptiler-C0oTROMk-BwaieRuC.js.map → Maptiler-C0oTROMk-Dz6Vkl6m.js.map} +1 -1
  67. package/dist/assets/{Maptiler-C0oTROMk-legacy-Dt8ZGBQ1.js → Maptiler-C0oTROMk-legacy-B6L6FzM1.js} +2 -2
  68. package/dist/assets/{Maptiler-C0oTROMk-legacy-Dt8ZGBQ1.js.map → Maptiler-C0oTROMk-legacy-B6L6FzM1.js.map} +1 -1
  69. package/dist/assets/{Maptiler-DJScKW8p-D7sqoIWz.js → Maptiler-DJScKW8p-6YGAe8cE.js} +2 -2
  70. package/dist/assets/{Maptiler-DJScKW8p-D7sqoIWz.js.map → Maptiler-DJScKW8p-6YGAe8cE.js.map} +1 -1
  71. package/dist/assets/{Maptiler-DJScKW8p-legacy-BxKgw8sA.js → Maptiler-DJScKW8p-legacy-DEW3rPcZ.js} +2 -2
  72. package/dist/assets/{Maptiler-DJScKW8p-legacy-BxKgw8sA.js.map → Maptiler-DJScKW8p-legacy-DEW3rPcZ.js.map} +1 -1
  73. package/dist/assets/{Maptiler-DdeFS4iM-CAX4yO3w.js → Maptiler-DdeFS4iM-Brs-80yb.js} +2 -2
  74. package/dist/assets/{Maptiler-DdeFS4iM-CAX4yO3w.js.map → Maptiler-DdeFS4iM-Brs-80yb.js.map} +1 -1
  75. package/dist/assets/{Maptiler-DdeFS4iM-legacy-DsI2My96.js → Maptiler-DdeFS4iM-legacy-Ci9oroQC.js} +2 -2
  76. package/dist/assets/{Maptiler-DdeFS4iM-legacy-DsI2My96.js.map → Maptiler-DdeFS4iM-legacy-Ci9oroQC.js.map} +1 -1
  77. package/dist/assets/{Maptiler-DqeshLom-a9LD3O-1.js → Maptiler-DqeshLom-B0jdRE1n.js} +2 -2
  78. package/dist/assets/{Maptiler-DqeshLom-a9LD3O-1.js.map → Maptiler-DqeshLom-B0jdRE1n.js.map} +1 -1
  79. package/dist/assets/{Maptiler-DqeshLom-legacy-iao-6Wdy.js → Maptiler-DqeshLom-legacy-CurUmtTs.js} +2 -2
  80. package/dist/assets/{Maptiler-DqeshLom-legacy-iao-6Wdy.js.map → Maptiler-DqeshLom-legacy-CurUmtTs.js.map} +1 -1
  81. package/dist/assets/{Maptiler-YjlcPccn-BbfdNZAF.js → Maptiler-YjlcPccn-BeECNaQc.js} +2 -2
  82. package/dist/assets/{Maptiler-YjlcPccn-BbfdNZAF.js.map → Maptiler-YjlcPccn-BeECNaQc.js.map} +1 -1
  83. package/dist/assets/{Maptiler-YjlcPccn-legacy-D6AZMug8.js → Maptiler-YjlcPccn-legacy-DUPM1fwa.js} +2 -2
  84. package/dist/assets/{Maptiler-YjlcPccn-legacy-D6AZMug8.js.map → Maptiler-YjlcPccn-legacy-DUPM1fwa.js.map} +1 -1
  85. package/dist/assets/{MarkerIcon-Bc3X9WQk-ByrgCntx.js → MarkerIcon-Bc3X9WQk-BuSzLTIC.js} +2 -2
  86. package/dist/assets/{MarkerIcon-Bc3X9WQk-ByrgCntx.js.map → MarkerIcon-Bc3X9WQk-BuSzLTIC.js.map} +1 -1
  87. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-CIGJvvJR.js → MarkerIcon-Bc3X9WQk-legacy-0n6adFAI.js} +2 -2
  88. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-CIGJvvJR.js.map → MarkerIcon-Bc3X9WQk-legacy-0n6adFAI.js.map} +1 -1
  89. package/dist/assets/{NeighborhoodCard-CQFgsjdH.js → NeighborhoodCard-ePSiX1h0.js} +2 -2
  90. package/dist/assets/{NeighborhoodCard-CQFgsjdH.js.map → NeighborhoodCard-ePSiX1h0.js.map} +1 -1
  91. package/dist/assets/{NeighborhoodCard-legacy-CT-3ylPG.js → NeighborhoodCard-legacy-B7hL1XOX.js} +2 -2
  92. package/dist/assets/{NeighborhoodCard-legacy-CT-3ylPG.js.map → NeighborhoodCard-legacy-B7hL1XOX.js.map} +1 -1
  93. package/dist/assets/{NeighborhoodCharacteristics-w5WKGZ2K.js → NeighborhoodCharacteristics-__nE9rKT.js} +2 -2
  94. package/dist/assets/{NeighborhoodCharacteristics-w5WKGZ2K.js.map → NeighborhoodCharacteristics-__nE9rKT.js.map} +1 -1
  95. package/dist/assets/{NeighborhoodCharacteristics-legacy-CKYaXDfQ.js → NeighborhoodCharacteristics-legacy-zcamdTX5.js} +2 -2
  96. package/dist/assets/{NeighborhoodCharacteristics-legacy-CKYaXDfQ.js.map → NeighborhoodCharacteristics-legacy-zcamdTX5.js.map} +1 -1
  97. package/dist/assets/{NeighborhoodDemographics-BZrhdeYZ.js → NeighborhoodDemographics-5cGgXnRY.js} +2 -2
  98. package/dist/assets/{NeighborhoodDemographics-BZrhdeYZ.js.map → NeighborhoodDemographics-5cGgXnRY.js.map} +1 -1
  99. package/dist/assets/{NeighborhoodDemographics-legacy-BHIQ1ER7.js → NeighborhoodDemographics-legacy-c3eDH26X.js} +2 -2
  100. package/dist/assets/{NeighborhoodDemographics-legacy-BHIQ1ER7.js.map → NeighborhoodDemographics-legacy-c3eDH26X.js.map} +1 -1
  101. package/dist/assets/{NeighborhoodFeatured-DfjxzlxY.js → NeighborhoodFeatured-DIXhmlRC.js} +2 -2
  102. package/dist/assets/{NeighborhoodFeatured-DfjxzlxY.js.map → NeighborhoodFeatured-DIXhmlRC.js.map} +1 -1
  103. package/dist/assets/{NeighborhoodFeatured-legacy-DHTnv4CZ.js → NeighborhoodFeatured-legacy-lDme45yC.js} +2 -2
  104. package/dist/assets/{NeighborhoodFeatured-legacy-DHTnv4CZ.js.map → NeighborhoodFeatured-legacy-lDme45yC.js.map} +1 -1
  105. package/dist/assets/{NeighborhoodHero-DrBKD27P.js → NeighborhoodHero-Bj4FlQVV.js} +2 -2
  106. package/dist/assets/{NeighborhoodHero-DrBKD27P.js.map → NeighborhoodHero-Bj4FlQVV.js.map} +1 -1
  107. package/dist/assets/{NeighborhoodHero-legacy-BMCiD7gd.js → NeighborhoodHero-legacy-C6T-qgPK.js} +2 -2
  108. package/dist/assets/{NeighborhoodHero-legacy-BMCiD7gd.js.map → NeighborhoodHero-legacy-C6T-qgPK.js.map} +1 -1
  109. package/dist/assets/{NeighborhoodHighlights-CwoTHUIb.js → NeighborhoodHighlights-BBmVnaLl.js} +2 -2
  110. package/dist/assets/{NeighborhoodHighlights-CwoTHUIb.js.map → NeighborhoodHighlights-BBmVnaLl.js.map} +1 -1
  111. package/dist/assets/{NeighborhoodHighlights-legacy-R316wAs2.js → NeighborhoodHighlights-legacy-B2x36QRC.js} +2 -2
  112. package/dist/assets/{NeighborhoodHighlights-legacy-R316wAs2.js.map → NeighborhoodHighlights-legacy-B2x36QRC.js.map} +1 -1
  113. package/dist/assets/{NeighborhoodMap-ChZpBdAe.js → NeighborhoodMap-DwMQLhkw.js} +2 -2
  114. package/dist/assets/{NeighborhoodMap-ChZpBdAe.js.map → NeighborhoodMap-DwMQLhkw.js.map} +1 -1
  115. package/dist/assets/{NeighborhoodMap-legacy-D7V_lZQF.js → NeighborhoodMap-legacy-CugKbgSp.js} +2 -2
  116. package/dist/assets/{NeighborhoodMap-legacy-D7V_lZQF.js.map → NeighborhoodMap-legacy-CugKbgSp.js.map} +1 -1
  117. package/dist/assets/{NeighborhoodMarketTrends-DpUA8_BA.js → NeighborhoodMarketTrends-COqvs4Fz.js} +3 -3
  118. package/dist/assets/{NeighborhoodMarketTrends-DpUA8_BA.js.map → NeighborhoodMarketTrends-COqvs4Fz.js.map} +1 -1
  119. package/dist/assets/{NeighborhoodMarketTrends-legacy-18rcLpS1.js → NeighborhoodMarketTrends-legacy-DSHDUUH_.js} +2 -2
  120. package/dist/assets/{NeighborhoodMarketTrends-legacy-18rcLpS1.js.map → NeighborhoodMarketTrends-legacy-DSHDUUH_.js.map} +1 -1
  121. package/dist/assets/{NeighborhoodMatch-BLDNZBRX.js → NeighborhoodMatch-GqzEoreu.js} +2 -2
  122. package/dist/assets/{NeighborhoodMatch-BLDNZBRX.js.map → NeighborhoodMatch-GqzEoreu.js.map} +1 -1
  123. package/dist/assets/{NeighborhoodMatch-legacy-C2QyjRPr.js → NeighborhoodMatch-legacy-SGEcOXuf.js} +2 -2
  124. package/dist/assets/{NeighborhoodMatch-legacy-C2QyjRPr.js.map → NeighborhoodMatch-legacy-SGEcOXuf.js.map} +1 -1
  125. package/dist/assets/{NeighborhoodPropertyValueDrivers-CQoo-TFM.js → NeighborhoodPropertyValueDrivers-Cz4cawqR.js} +2 -2
  126. package/dist/assets/{NeighborhoodPropertyValueDrivers-CQoo-TFM.js.map → NeighborhoodPropertyValueDrivers-Cz4cawqR.js.map} +1 -1
  127. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-B-3Ld9XX.js → NeighborhoodPropertyValueDrivers-legacy-7gVUrIgh.js} +2 -2
  128. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-B-3Ld9XX.js.map → NeighborhoodPropertyValueDrivers-legacy-7gVUrIgh.js.map} +1 -1
  129. package/dist/assets/{NeighborhoodSchools-DMKDCbUv.js → NeighborhoodSchools-D6CPTgGE.js} +2 -2
  130. package/dist/assets/{NeighborhoodSchools-DMKDCbUv.js.map → NeighborhoodSchools-D6CPTgGE.js.map} +1 -1
  131. package/dist/assets/{NeighborhoodSchools-legacy-D_MpmqNV.js → NeighborhoodSchools-legacy-0G_dtI8q.js} +2 -2
  132. package/dist/assets/{NeighborhoodSchools-legacy-D_MpmqNV.js.map → NeighborhoodSchools-legacy-0G_dtI8q.js.map} +1 -1
  133. package/dist/assets/{NeighborhoodShowcase-CB3_rfxv.js → NeighborhoodShowcase-CRlKc8OL.js} +2 -2
  134. package/dist/assets/{NeighborhoodShowcase-CB3_rfxv.js.map → NeighborhoodShowcase-CRlKc8OL.js.map} +1 -1
  135. package/dist/assets/{NeighborhoodShowcase-legacy-B8IQbiVz.js → NeighborhoodShowcase-legacy-Bjz5_C24.js} +2 -2
  136. package/dist/assets/{NeighborhoodShowcase-legacy-B8IQbiVz.js.map → NeighborhoodShowcase-legacy-Bjz5_C24.js.map} +1 -1
  137. package/dist/assets/{NoDataContent-CFLl-Rd-.js → NoDataContent-CTxzT718.js} +2 -2
  138. package/dist/assets/{NoDataContent-CFLl-Rd-.js.map → NoDataContent-CTxzT718.js.map} +1 -1
  139. package/dist/assets/{NoDataContent-legacy-aWMMhT9c.js → NoDataContent-legacy-BWvHzb0g.js} +2 -2
  140. package/dist/assets/{NoDataContent-legacy-aWMMhT9c.js.map → NoDataContent-legacy-BWvHzb0g.js.map} +1 -1
  141. package/dist/assets/{ResizeWrapper-C7vwckhm.js → ResizeWrapper-DbYmMKOU.js} +2 -2
  142. package/dist/assets/{ResizeWrapper-C7vwckhm.js.map → ResizeWrapper-DbYmMKOU.js.map} +1 -1
  143. package/dist/assets/{ResizeWrapper-legacy-WwfLyk1y.js → ResizeWrapper-legacy-C0ua6RC5.js} +2 -2
  144. package/dist/assets/{ResizeWrapper-legacy-WwfLyk1y.js.map → ResizeWrapper-legacy-C0ua6RC5.js.map} +1 -1
  145. package/dist/assets/{ScoreCardList-PWiDx6Ra.js → ScoreCardList-B4NURGgK.js} +2 -2
  146. package/dist/assets/{ScoreCardList-PWiDx6Ra.js.map → ScoreCardList-B4NURGgK.js.map} +1 -1
  147. package/dist/assets/{ScoreCardList-legacy-BK5dq36c.js → ScoreCardList-legacy-BTRPIWUP.js} +2 -2
  148. package/dist/assets/{ScoreCardList-legacy-BK5dq36c.js.map → ScoreCardList-legacy-BTRPIWUP.js.map} +1 -1
  149. package/dist/assets/{ScoreIcon-legacy-BwaAs8hW.js → ScoreIcon-legacy-D9igp8MS.js} +2 -2
  150. package/dist/assets/{ScoreIcon-legacy-BwaAs8hW.js.map → ScoreIcon-legacy-D9igp8MS.js.map} +1 -1
  151. package/dist/assets/{ScoreIcon-CsB-usG9.js → ScoreIcon-s5-ehfPP.js} +2 -2
  152. package/dist/assets/{ScoreIcon-CsB-usG9.js.map → ScoreIcon-s5-ehfPP.js.map} +1 -1
  153. package/dist/assets/{Testing--n5Ro0Ek-B4Vejacz.js → Testing--n5Ro0Ek-Cc3RGltv.js} +2 -2
  154. package/dist/assets/{Testing--n5Ro0Ek-B4Vejacz.js.map → Testing--n5Ro0Ek-Cc3RGltv.js.map} +1 -1
  155. package/dist/assets/{Testing--n5Ro0Ek-legacy-Co29YW_f.js → Testing--n5Ro0Ek-legacy-BB0u0086.js} +2 -2
  156. package/dist/assets/{Testing--n5Ro0Ek-legacy-Co29YW_f.js.map → Testing--n5Ro0Ek-legacy-BB0u0086.js.map} +1 -1
  157. package/dist/assets/{Testing-BNJwzbRK-hEJFbzQg.js → Testing-BNJwzbRK-C1viHx8M.js} +2 -2
  158. package/dist/assets/{Testing-BNJwzbRK-hEJFbzQg.js.map → Testing-BNJwzbRK-C1viHx8M.js.map} +1 -1
  159. package/dist/assets/{Testing-BNJwzbRK-legacy-B1EdPb3k.js → Testing-BNJwzbRK-legacy-XPR_-0Eg.js} +2 -2
  160. package/dist/assets/{Testing-BNJwzbRK-legacy-B1EdPb3k.js.map → Testing-BNJwzbRK-legacy-XPR_-0Eg.js.map} +1 -1
  161. package/dist/assets/{Testing-CoRLhmNT-Cqyejow7.js → Testing-CoRLhmNT-B4pOjeZH.js} +2 -2
  162. package/dist/assets/{Testing-CoRLhmNT-Cqyejow7.js.map → Testing-CoRLhmNT-B4pOjeZH.js.map} +1 -1
  163. package/dist/assets/{Testing-CoRLhmNT-legacy-BQpWn7Bu.js → Testing-CoRLhmNT-legacy-BFVvx40w.js} +2 -2
  164. package/dist/assets/{Testing-CoRLhmNT-legacy-BQpWn7Bu.js.map → Testing-CoRLhmNT-legacy-BFVvx40w.js.map} +1 -1
  165. package/dist/assets/{Testing-DGUeGxdc-g-T4vdVq.js → Testing-DGUeGxdc-CKSlgBDu.js} +2 -2
  166. package/dist/assets/{Testing-DGUeGxdc-g-T4vdVq.js.map → Testing-DGUeGxdc-CKSlgBDu.js.map} +1 -1
  167. package/dist/assets/{Testing-DGUeGxdc-legacy-GwpDyiTO.js → Testing-DGUeGxdc-legacy-B2yBRluh.js} +2 -2
  168. package/dist/assets/{Testing-DGUeGxdc-legacy-GwpDyiTO.js.map → Testing-DGUeGxdc-legacy-B2yBRluh.js.map} +1 -1
  169. package/dist/assets/{Testing-DzWAcbhL-BJOouF0A.js → Testing-DzWAcbhL-B5JOmJod.js} +2 -2
  170. package/dist/assets/{Testing-DzWAcbhL-BJOouF0A.js.map → Testing-DzWAcbhL-B5JOmJod.js.map} +1 -1
  171. package/dist/assets/{Testing-DzWAcbhL-legacy-CYECRHWo.js → Testing-DzWAcbhL-legacy-20VBltE2.js} +2 -2
  172. package/dist/assets/{Testing-DzWAcbhL-legacy-CYECRHWo.js.map → Testing-DzWAcbhL-legacy-20VBltE2.js.map} +1 -1
  173. package/dist/assets/{TitleHeader-CepE-7Y-.js → TitleHeader-Be2YRN93.js} +2 -2
  174. package/dist/assets/{TitleHeader-CepE-7Y-.js.map → TitleHeader-Be2YRN93.js.map} +1 -1
  175. package/dist/assets/{TitleHeader-legacy-UtQZo396.js → TitleHeader-legacy-CzXSoMFC.js} +2 -2
  176. package/dist/assets/{TitleHeader-legacy-UtQZo396.js.map → TitleHeader-legacy-CzXSoMFC.js.map} +1 -1
  177. package/dist/assets/{Trans-B1zRm9WH.js → Trans-DntniXa9.js} +2 -2
  178. package/dist/assets/{Trans-B1zRm9WH.js.map → Trans-DntniXa9.js.map} +1 -1
  179. package/dist/assets/{Trans-legacy-B47WOepl.js → Trans-legacy-B9t4MV_C.js} +2 -2
  180. package/dist/assets/{Trans-legacy-B47WOepl.js.map → Trans-legacy-B9t4MV_C.js.map} +1 -1
  181. package/dist/assets/{ValidateOptions-DsfMKmBQ.js → ValidateOptions-BqL9iY9R.js} +2 -2
  182. package/dist/assets/{ValidateOptions-DsfMKmBQ.js.map → ValidateOptions-BqL9iY9R.js.map} +1 -1
  183. package/dist/assets/{ValidateOptions-legacy-CtRpWaj6.js → ValidateOptions-legacy-BQ69tin-.js} +2 -2
  184. package/dist/assets/{ValidateOptions-legacy-CtRpWaj6.js.map → ValidateOptions-legacy-BQ69tin-.js.map} +1 -1
  185. package/dist/assets/{dist-DrX-uh0V.js → dist-C_ktdPsv.js} +2 -2
  186. package/dist/assets/{dist-DrX-uh0V.js.map → dist-C_ktdPsv.js.map} +1 -1
  187. package/dist/assets/{dist-legacy-CJvY2ayv.js → dist-legacy-DIwOLBcZ.js} +2 -2
  188. package/dist/assets/{dist-legacy-CJvY2ayv.js.map → dist-legacy-DIwOLBcZ.js.map} +1 -1
  189. package/dist/assets/{getMapProviderConfig-DbC8zRUF.js → getMapProviderConfig-D9e8KNYU.js} +3 -3
  190. package/dist/assets/{getMapProviderConfig-DbC8zRUF.js.map → getMapProviderConfig-D9e8KNYU.js.map} +1 -1
  191. package/dist/assets/{getMapProviderConfig-legacy-CwpYg6Bq.js → getMapProviderConfig-legacy-DVBUhWqR.js} +2 -2
  192. package/dist/assets/{getMapProviderConfig-legacy-CwpYg6Bq.js.map → getMapProviderConfig-legacy-DVBUhWqR.js.map} +1 -1
  193. package/dist/assets/{index-Bi8h_BNl.js → index-PbHyodiU.js} +3 -3
  194. package/dist/assets/{index-Bi8h_BNl.js.map → index-PbHyodiU.js.map} +1 -1
  195. package/dist/assets/{index-legacy-DF60d_4Z.js → index-legacy-CYps6nGB.js} +2 -2
  196. package/dist/assets/{index-legacy-DF60d_4Z.js.map → index-legacy-CYps6nGB.js.map} +1 -1
  197. package/dist/assets/{index.es-BkZlVTZH.js → index.es-DuM-WVhV.js} +2 -2
  198. package/dist/assets/{index.es-BkZlVTZH.js.map → index.es-DuM-WVhV.js.map} +1 -1
  199. package/dist/assets/{index.es-legacy-DdMTxXQK.js → index.es-legacy-Cz2m6e4L.js} +2 -2
  200. package/dist/assets/{index.es-legacy-DdMTxXQK.js.map → index.es-legacy-Cz2m6e4L.js.map} +1 -1
  201. package/dist/assets/{mapbox-jb8Zev6T-DbABbE_7.js → mapbox-jb8Zev6T-BgSpiKob.js} +2 -2
  202. package/dist/assets/{mapbox-jb8Zev6T-DbABbE_7.js.map → mapbox-jb8Zev6T-BgSpiKob.js.map} +1 -1
  203. package/dist/assets/{mapbox-jb8Zev6T-legacy-DkLTUrvZ.js → mapbox-jb8Zev6T-legacy-hBjjoWXX.js} +2 -2
  204. package/dist/assets/{mapbox-jb8Zev6T-legacy-DkLTUrvZ.js.map → mapbox-jb8Zev6T-legacy-hBjjoWXX.js.map} +1 -1
  205. package/dist/assets/{maplibre-CUYkxr-D-DPcOY-Lp.js → maplibre-CUYkxr-D-BJWmGVry.js} +2 -2
  206. package/dist/assets/{maplibre-CUYkxr-D-DPcOY-Lp.js.map → maplibre-CUYkxr-D-BJWmGVry.js.map} +1 -1
  207. package/dist/assets/{maplibre-CUYkxr-D-legacy-Ct1K6aaN.js → maplibre-CUYkxr-D-legacy-BNqtRzVB.js} +2 -2
  208. package/dist/assets/{maplibre-CUYkxr-D-legacy-Ct1K6aaN.js.map → maplibre-CUYkxr-D-legacy-BNqtRzVB.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-CIuvHxGG.js → sdks-BTkz21XL.js} +2 -2
  212. package/dist/assets/{sdks-CIuvHxGG.js.map → sdks-BTkz21XL.js.map} +1 -1
  213. package/dist/assets/{sdks-legacy-3YngGDux.js → sdks-legacy-3sJ2n28B.js} +2 -2
  214. package/dist/assets/{sdks-legacy-3YngGDux.js.map → sdks-legacy-3sJ2n28B.js.map} +1 -1
  215. package/dist/assets/{useDemographicsData-Dz3Pu-Ht.js → useDemographicsData-DKScK522.js} +2 -2
  216. package/dist/assets/{useDemographicsData-Dz3Pu-Ht.js.map → useDemographicsData-DKScK522.js.map} +1 -1
  217. package/dist/assets/{useDemographicsData-legacy-BD0OVn1e.js → useDemographicsData-legacy-BsoUaI9P.js} +2 -2
  218. package/dist/assets/{useDemographicsData-legacy-BD0OVn1e.js.map → useDemographicsData-legacy-BsoUaI9P.js.map} +1 -1
  219. package/dist/assets/{useGeographies-CtCPN011.js → useGeographies-DejQbRC9.js} +2 -2
  220. package/dist/assets/{useGeographies-CtCPN011.js.map → useGeographies-DejQbRC9.js.map} +1 -1
  221. package/dist/assets/{useGeographies-legacy-BmNvVGxt.js → useGeographies-legacy-B5ciev2M.js} +2 -2
  222. package/dist/assets/{useGeographies-legacy-BmNvVGxt.js.map → useGeographies-legacy-B5ciev2M.js.map} +1 -1
  223. package/dist/assets/{useIsMobile-DqKgF2mC.js → useIsMobile-Co5SddxR.js} +2 -2
  224. package/dist/assets/{useIsMobile-DqKgF2mC.js.map → useIsMobile-Co5SddxR.js.map} +1 -1
  225. package/dist/assets/{useIsMobile-legacy-jEoaA3sZ.js → useIsMobile-legacy-B53LlWR8.js} +2 -2
  226. package/dist/assets/{useIsMobile-legacy-jEoaA3sZ.js.map → useIsMobile-legacy-B53LlWR8.js.map} +1 -1
  227. package/dist/assets/{useLocation-DnI9ftE5.js → useLocation-DUSQPRn5.js} +2 -2
  228. package/dist/assets/{useLocation-DnI9ftE5.js.map → useLocation-DUSQPRn5.js.map} +1 -1
  229. package/dist/assets/{useLocation-legacy-UNiEBLrQ.js → useLocation-legacy-CYzO18ij.js} +2 -2
  230. package/dist/assets/{useLocation-legacy-UNiEBLrQ.js.map → useLocation-legacy-CYzO18ij.js.map} +1 -1
  231. package/dist/assets/{useProfiles-DKmVxUf9.js → useProfiles-Dv9s6TWw.js} +2 -2
  232. package/dist/assets/{useProfiles-DKmVxUf9.js.map → useProfiles-Dv9s6TWw.js.map} +1 -1
  233. package/dist/assets/{useProfiles-legacy-OVEEk1dZ.js → useProfiles-legacy-DF0NXWwe.js} +2 -2
  234. package/dist/assets/{useProfiles-legacy-OVEEk1dZ.js.map → useProfiles-legacy-DF0NXWwe.js.map} +1 -1
  235. package/dist/assets/{useSchools-BC9vy4Xx.js → useSchools-Dqdy1J-D.js} +2 -2
  236. package/dist/assets/{useSchools-BC9vy4Xx.js.map → useSchools-Dqdy1J-D.js.map} +1 -1
  237. package/dist/assets/{useSchools-legacy-g8-dezaK.js → useSchools-legacy-CCHNqc2P.js} +2 -2
  238. package/dist/assets/{useSchools-legacy-g8-dezaK.js.map → useSchools-legacy-CCHNqc2P.js.map} +1 -1
  239. package/dist/assets/{useScores-BZGEEU4U.js → useScores-C4T2-LUO.js} +2 -2
  240. package/dist/assets/{useScores-BZGEEU4U.js.map → useScores-C4T2-LUO.js.map} +1 -1
  241. package/dist/assets/{useScores-legacy-C9icRMIu.js → useScores-legacy-BludORUw.js} +2 -2
  242. package/dist/assets/{useScores-legacy-C9icRMIu.js.map → useScores-legacy-BludORUw.js.map} +1 -1
  243. package/dist/index.html +2 -2
  244. package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/SurveyTriggerProvider/index.test.js +11 -9
  245. package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/SurveyTriggerProvider/index.test.js.map +1 -1
  246. package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/index.test.js +19 -5
  247. package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/index.test.js.map +1 -1
  248. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./rolldown-runtime-legacy-Djb2rrqm.js","./google-maps-vendor-legacy-CPuMOKGq.js","./index-legacy-DF60d_4Z.js"],function(e,r){var n,i,o,s,a,u,c,l,h,p,f,d,g,m,v,y,b,_,w,k,S,x,C,E,I,O,T,A,R,M,F,N,D,P,L,j,$,U,B,q,z,V,W,H,G,Z,Y,J,K,X,Q,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,he,pe,fe,de,ge,me,ve,ye,be,_e,we,ke,Se,xe,Ce,Ee,Ie,Oe,Te,Ae,Re,Me,Fe,Ne,De,Pe,Le,je,$e,Ue,Be,qe,ze,Ve,We,He,Ge,Ze,Ye,Je,Ke,Xe,Qe,et,tt,rt,nt,it,ot,st,at,ut,ct,lt,ht,pt,ft,dt,gt,mt,vt,yt,bt,_t,wt,kt,St,xt,Ct,Et,It,Ot,Tt,At,Rt,Mt,Ft,Nt,Dt,Pt,Lt,jt,$t,Ut,Bt,qt,zt,Vt,Wt,Ht,Gt,Zt,Yt,Jt,Kt,Xt,Qt,er,tr,rr,nr,ir,or,sr,ar,ur,cr,lr,hr,pr,fr,dr,gr,mr,vr,yr,br,_r,wr,kr,Sr,xr,Cr,Er,Ir,Or,Tr,Ar,Rr,Mr,Fr,Nr,Dr,Pr,Lr,jr,$r,Ur,Br,qr,zr,Vr,Wr,Hr,Gr,Zr,Yr,Jr,Kr,Xr,Qr,en,tn,rn,nn,on,sn,an,un,cn,ln,hn,pn,fn,dn,gn,mn,vn,yn,bn,_n,wn,kn,Sn,xn,Cn,En,In,On,Tn,An,Rn,Mn,Fn,Nn,Dn,Pn,Ln,jn,$n,Un,Bn,qn,zn,Vn,Wn,Hn,Gn,Zn,Yn,Jn,Kn,Xn,Qn,ei,ti,ri,ni,ii,oi,si,ai,ui,ci,li,hi,pi,fi,di,gi,mi,vi,yi,bi,_i,wi,ki,Si,xi,Ci,Ei,Ii,Oi,Ti,Ai,Ri,Mi,Fi,Ni,Di,Pi,Li,ji,$i,Ui,Bi,qi,zi,Vi,Wi,Hi,Gi,Zi,Yi,Ji,Ki,Xi,Qi,eo,to,ro,no,io,oo,so,ao,uo,co,lo,ho,po,fo,go,mo,vo,yo,bo,_o,wo,ko,So,xo,Co,Eo,Io,Oo,To,Ao,Ro,Mo,Fo,No,Do,Po,Lo,jo,$o,Uo,Bo,qo,zo,Vo,Wo,Ho,Go,Zo,Yo,Jo,Ko,Xo,Qo,es,ts,rs,ns,is,os,ss,as,us,cs,ls,hs,ps,fs,ds,gs,ms,vs,ys,bs,_s,ws,ks,Ss,xs,Cs,Es,Is,Os,Ts,As,Rs,Ms,Fs,Ns,Ds,Ps,Ls,js,$s,Us,Bs,qs,zs,Vs,Ws,Hs,Gs,Zs,Ys,Js,Ks,Xs,Qs,ea,ta,ra,na,ia,oa,sa,aa,ua,ca,la,ha,pa,fa,da,ga,ma,va,ya,ba,_a,wa,ka,Sa,xa,Ca,Ea,Ia,Oa,Ta,Aa,Ra,Ma,Fa,Na,Da,Pa,La,ja,$a,Ua,Ba,qa,za,Va,Wa,Ha,Ga,Za,Ya,Ja,Ka,Xa,Qa,eu,tu,ru,nu,iu,ou,su,au,uu,cu,lu,hu,pu,fu,du,gu,mu,vu,yu,bu,_u,wu,ku,Su,xu,Cu,Eu,Iu,Ou,Tu,Au,Ru,Mu,Fu,Nu,Du,Pu,Lu,ju,$u,Uu,Bu,qu,zu,Vu,Wu,Hu,Gu,Zu,Yu,Ju,Ku,Xu,Qu,ec,tc,rc,nc,ic,oc,sc,ac,uc,cc,lc,hc,pc,fc,dc,gc,mc,vc,yc,bc,_c,wc,kc,Sc,xc,Cc,Ec,Ic,Oc,Tc,Ac,Rc,Mc,Fc,Nc,Dc,Pc,Lc,jc,$c,Uc,Bc,qc,zc,Vc,Wc,Hc,Gc,Zc,Yc,Jc,Kc,Xc,Qc,el,tl,rl,nl,il,ol,sl,al,ul,cl,ll,hl,pl,fl,dl,gl,ml,vl,yl,bl,_l,wl,kl,Sl,xl,Cl,El,Il,Ol,Tl,Al,Rl,Ml,Fl,Nl,Dl,Pl,Ll,jl,$l,Ul,Bl,ql,zl,Vl,Wl,Hl,Gl,Zl,Yl,Jl,Kl,Xl,Ql,eh,th,rh,nh,ih,oh,sh,ah,uh,ch,lh,hh,ph,fh,dh,gh,mh,vh,yh,bh,_h,wh,kh,Sh,xh,Ch,Eh,Ih,Oh,Th,Ah,Rh,Mh,Fh,Nh,Dh,Ph,Lh,jh,$h,Uh,Bh,qh,zh,Vh,Wh,Hh,Gh,Zh,Yh,Jh,Kh,Xh,Qh,ep,tp,rp,np,ip,op,sp,ap,up,cp,lp,hp,pp,fp,dp,gp,mp,vp,yp,bp,_p,wp,kp,Sp,xp,Cp,Ep,Ip,Op,Tp,Ap,Rp,Mp,Fp,Np,Dp,Pp,Lp,jp,$p,Up,Bp,qp,zp,Vp,Wp,Hp,Gp,Zp,Yp,Jp,Kp,Xp,Qp,ef,tf,rf,nf,of,sf,af,uf,cf,lf,hf,pf,ff,df,gf,mf,vf,yf,bf,_f,wf,kf,Sf,xf,Cf,Ef,If,Of,Tf,Af,Rf,Mf,Ff,Nf,Df,Pf,Lf,jf,$f,Uf,Bf,qf,zf,Vf,Wf,Hf,Gf,Zf,Yf,Jf,Kf,Xf,Qf,ed,td,rd,nd,id,od,sd,ad,ud,cd,ld,hd,pd,fd,dd,gd,md,vd,yd,bd,_d,wd,kd,Sd,xd,Cd,Ed,Id,Od,Td,Ad,Rd,Md,Fd,Nd,Dd,Pd,Ld,jd,$d,Ud,Bd,qd,zd,Vd,Wd,Hd,Gd,Zd,Yd,Jd,Kd,Xd,Qd,eg,tg,rg,ng,ig,og,sg,ag,ug,cg,lg,hg,pg,fg,dg,gg,mg,vg,yg,bg,_g,wg,kg,Sg,xg,Cg,Eg,Ig,Og,Tg,Ag,Rg,Mg,Fg,Ng,Dg,Pg,Lg,jg,$g,Ug,Bg,qg,zg,Vg,Wg,Hg;function Gg(e){k(se,this,em).call(this);let t=m(H,this).fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(I)),t}function Zg(){k(se,this,Xg).call(this);const e=T(this.options.staleTime,m(H,this));if(f||m(Z,this).isStale||!S(e))return;const t=x(m(Z,this).dataUpdatedAt,e)+1;O(re,this,setTimeout(()=>{m(Z,this).isStale||this.updateResult()},t))}function Yg(){var e;return null!==(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval(m(H,this)):this.options.refetchInterval)&&void 0!==e&&e}function Jg(e){k(se,this,Qg).call(this),O(ie,this,e),!f&&!1!==_(this.options.enabled,m(H,this))&&S(m(ie,this))&&0!==m(ie,this)&&O(ne,this,setInterval(()=>{(this.options.refetchIntervalInBackground||s.isFocused())&&k(se,this,Gg).call(this)},m(ie,this)))}function Kg(){k(se,this,Zg).call(this),k(se,this,Jg).call(this,k(se,this,Yg).call(this))}function Xg(){m(re,this)&&(clearTimeout(m(re,this)),O(re,this,void 0))}function Qg(){m(ne,this)&&(clearInterval(m(ne,this)),O(ne,this,void 0))}function em(){const e=m(W,this).getQueryCache().build(m(W,this),this.options);if(e===m(H,this))return;const t=m(H,this);O(H,this,e),O(G,this,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}function tm(e){h.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(m(Z,this))}),m(W,this).getQueryCache().notify({query:m(H,this),type:"observerResultsUpdated"})})}function rm(e,t){return function(e,t){return!1!==_(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&nm(e,t,t.refetchOnMount)}function nm(e,t,r){if(!1!==_(t.enabled,e)&&"static"!==T(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&om(e,t)}return!1}function im(e,t,r,n){return(e!==t||!1===_(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&om(e,r)}function om(e,t){return!1!==_(t.enabled,e)&&e.isStaleByTime(T(t.staleTime,e))}function sm(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return Re.call(e).replace(Me,"Symbol($1)");const n=Oe.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+Te.call(e)+"]":"RegExp"===n?Ae.call(e):null}function am(e,t){let r=sm(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=sm(this[e],t);return null!==n?n:r},2)}function um(e){return null==e?[]:[].concat(e)}function cm(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},s,a){const{name:u,test:c,params:l,message:h,skipAbsent:p}=e;let{parent:f,context:d,abortEarly:g=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n;const v={value:t,parent:f,context:d};function y(e={}){const n=lm(Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},l,e.params),v),s=new je(je.formatError(e.message||h,n),t,n.path,e.type||u,n.disableStackTrace);return s.params=n,s}const b=g?s:a;let _={path:r,parent:f,type:u,from:n.from,createError:y,resolve:e=>hm(e,v),options:n,originalValue:i,schema:o};const w=e=>{je.isError(e)?b(e):e?a(null):b(y())},k=e=>{je.isError(e)?b(e):s(e)};if(p&&Ke(t))return w(!0);let S;try{var x;if(S=c.call(_,t,_),"function"==typeof(null==(x=S)?void 0:x.then)){if(n.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(w,k)}}catch(C){return void k(C)}w(S)}return t.OPTIONS=e,t}function lm(e,t){if(!e)return e;for(const r of Object.keys(e))e[r]=hm(e[r],t);return e}function hm(e,t){return Je.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function pm(e,t,r,n=r){let i,o,s;return t?((0,Ce.forEach)(t,(a,u,c)=>{let l=u?a.slice(1,a.length-1):a,h="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||h){if(h&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=h?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r=r&&r[l],e=e.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}function fm(e,t=new Map){if(Ge(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=fm(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,fm(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(fm(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=fm(i,t)}return r}function dm(e){if(null==e||!e.length)return;const t=[];let r="",n=!1,i=!1;for(let o=0;o<e.length;o++){const s=e[o];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||n||i?r+=s:r&&(t.push(r),r=""):i=!i:(r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1):(r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0)}return r&&t.push(...r.split(".").filter(Boolean)),t}function gm(e,t){var r;if((null==(r=e.inner)||!r.length)&&e.errors.length)return function(e,t){const r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:dm(r)}))}(e,t);const n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>gm(e,n))}function mm(e){return new tt(e)}function vm(){return new rt}function ym(e){var t,r;const n=nt.exec(e);return n?{year:bm(n[1]),month:bm(n[2],1)-1,day:bm(n[3],1),hour:bm(n[4]),minute:bm(n[5]),second:bm(n[6]),millisecond:n[7]?bm(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:bm(n[10]),minuteOffset:bm(n[11])}:null}function bm(e,t=0){return Number(e)||t}function _m(){return new lt}function wm(){return new pt}function km(){return new gt}function Sm(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function xm(e){return(t,r)=>Sm(e,t)-Sm(e,r)}function Cm(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Cm(n);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Cm(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Cm)}):"optional"in e?e.optional():e}function Em(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}function Im(e){return new _t(e)}function Om(e){return new wt(e)}function Tm(e){return new kt(e)}function Am(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Rm(e){var t=Am(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function Mm(e){var t,r,n=Am(e),i=n[0],o=n[1],s=new Pt(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),a=0,u=o>0?i-4:i;for(r=0;r<u;r+=4)t=Dt[e.charCodeAt(r)]<<18|Dt[e.charCodeAt(r+1)]<<12|Dt[e.charCodeAt(r+2)]<<6|Dt[e.charCodeAt(r+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;return 2===o&&(t=Dt[e.charCodeAt(r)]<<2|Dt[e.charCodeAt(r+1)]>>4,s[a++]=255&t),1===o&&(t=Dt[e.charCodeAt(r)]<<10|Dt[e.charCodeAt(r+1)]<<4|Dt[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t),s}function Fm(e){return Nt[e>>18&63]+Nt[e>>12&63]+Nt[e>>6&63]+Nt[63&e]}function Nm(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(Fm(n));return i.join("")}function Dm(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Nm(e,s,s+o>a?a:s+o));return 1===n?(t=e[r-1],i.push(Nt[t>>2]+Nt[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(Nt[t>>10]+Nt[t>>4&63]+Nt[t<<2&63]+"=")),i.join("")}function Pm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lm(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,i)}function jm(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Lm(o,n,i,s,a,"next",e)}function a(e){Lm(o,n,i,s,a,"throw",e)}s(void 0)})}}function $m(e,t,r){return $m=Ym()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Hm(i,r.prototype),i},$m.apply(null,arguments)}function Um(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Bm(){return Bm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bm.apply(this,arguments)}function qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qm(e)}function zm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hm(e,t)}function Vm(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wm(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function Hm(e,t){return Hm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hm(e,t)}function Gm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Zm(e){var t="function"==typeof Map?new Map:void 0;return Zm=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $m(e,arguments,qm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Hm(n,e)},Zm(e)}function Ym(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(td){}return(Ym=function(){return!!e})()}function Jm(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pm(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Km(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(Lf){o=[6,Lf],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function Xm(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qm(e){if(Qt[e])return Qt[e];var t=globalThis[e],r=t.prototype,n=e in Kt?Kt[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Xt?Xt[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!er())return Qt[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Qt[e]=c:r}catch(Lf){return r}}function ev(e,t,r){var n,i=e+"."+String(r);if(tr[i])return tr[i].call(t);var o=Qm(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(tr[i]=s,s.call(t)):t[r]}function tv(e,t,r){var n=e+"."+String(r);if(rr[n])return rr[n].bind(t);var i=Qm(e)[r];return"function"!=typeof i?t[r]:(rr[n]=i,i.bind(t))}function rv(e){return ev("Node",e,"childNodes")}function nv(e){return ev("Node",e,"parentNode")}function iv(e){return ev("Node",e,"parentElement")}function ov(e){return ev("Node",e,"textContent")}function sv(e,t){return tv("Node",e,"contains")(t)}function av(e){return tv("Node",e,"getRootNode")()}function uv(e){return e&&"host"in e?ev("ShadowRoot",e,"host"):null}function cv(e){return e.styleSheets}function lv(e){return e&&"shadowRoot"in e?ev("Element",e,"shadowRoot"):null}function hv(e,t){return ev("Element",e,"querySelector")(t)}function pv(e,t){return ev("Element",e,"querySelectorAll")(t)}function fv(){return Qm("MutationObserver").constructor}function dv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(Lf){return function(){}}}function gv(e){return e.nodeType===e.ELEMENT_NODE}function mv(e){var t=e&&"host"in e&&"mode"in e&&nr.host(e)||null;return Boolean(t&&"shadowRoot"in t&&nr.shadowRoot(t)===e)}function vv(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function yv(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return bv(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(i){return null}var n}function bv(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=yv(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(i){r=e.cssText}return e.styleSheet.href?xv(r,e.styleSheet.href):r}var n=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?xv(n,t):n}function _v(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&wv(i);return(r[n.toLowerCase()]||u&&r[u])&&(a=s?s(a,t):"*".repeat(a.length)),a}function wv(e){return e.toLowerCase()}function kv(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?wv(t):null}function Sv(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(o){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}function xv(e,t){return(e||"").replace(sr,function(e,r,n,i,o,s){var a,u=n||o||s,c=r||i||"";if(!u)return e;if(ar.test(u)||ur.test(u))return"url("+c+u+c+")";if(cr.test(u))return"url("+c+u+c+")";if("/"===u[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+u)+c+")";var l=t.split("/"),h=u.split("/");l.pop();for(var p,f=Jm(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function Cv(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ev(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=Cv(e,r),a=s.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var c=Cv(n[u].textContent,r),l=3;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,l),1));l++);for(;l<c.length;l++){var h=c.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[u-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===c.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[u-1].textContent;if(d&&"string"==typeof d){var g=Cv(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=Cv(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}function Iv(){return lr++}function Ov(e,t){return t&&""!==t.trim()?Av(e,t):t}function Tv(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Av(e,t){var r=vr.get(e);if(r||(r=e.createElement("a"),vr.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Rv(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?Ov(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(mr),!(r>=t.length);){var o=n(gr);if(","===o.slice(-1))o=Ov(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=Ov(e,o);for(var a=!1;;){var u=t.charAt(r);if(""===u){i.push((o+s).trim());break}if(a)")"===u&&(a=!1);else{if(","===u){r+=1,i.push((o+s).trim());break}"("===u&&(a=!0)}s+=u,r+=1}}}return i.join(", ")}(e,n):"style"===r?xv(n,Av(e)):"object"===t&&"data"===r?Ov(e,n):n:Ov(e,n):n}function Mv(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Fv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Fv(nr.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Fv(nr.parentNode(e),t,r)}function Nv(e,t,r,n){var i;if(gv(e)){if(i=e,!nr.childNodes(i).length)return!1}else{if(null===nr.parentElement(e))return!1;i=nr.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Fv(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function Dv(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,u=t.maskInputOptions,c=void 0===u?{}:u,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,_=void 0!==b&&b,w=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Jt.Document,childNodes:[],compatMode:e.compatMode}:{type:Jt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Jt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,u=void 0===a?{}:a,c=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,v=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}(e,i,o),b=function(e){if(Vm(e,HTMLFormElement))return"form";var t=wv(e.tagName);return hr.test(t)?"div":t}(e),_={},w=e.attributes.length,k=0;k<w;k++){var S=e.attributes[k];Mv(b,S.name,S.value)||(_[S.name]=Rv(n,b,wv(S.name),S.value))}if("link"===b&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=yv(x)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===b&&e.sheet){var E=yv(e.sheet);E&&(e.childNodes.length>1&&(E=Ev(E,e)),_._cssText=E)}if("input"===b||"textarea"===b||"select"===b){var I=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=_v({element:e,type:kv(e),tagName:b,value:I,maskInputOptions:u,maskInputFn:c}):O&&(_.checked=O)}"option"===b&&(e.selected&&!u.select?_.selected=!0:delete _.selected);"dialog"===b&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&f)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=or in i?i[or]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(_.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var T=e.toDataURL(h.type,h.quality),A=n.createElement("canvas");A.width=e.width,A.height=e.height,T!==A.toDataURL(h.type,h.quality)&&(_.rr_dataURL=T)}if("img"===b&&p){fr||(fr=n.createElement("canvas"),dr=fr.getContext("2d"));var R=e,M=R.currentSrc||R.getAttribute("src")||"<unknown-src>",F=R.crossOrigin,N=function(){R.removeEventListener("load",N);try{fr.width=R.naturalWidth,fr.height=R.naturalHeight,dr.drawImage(R,0,0),_.rr_dataURL=fr.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N));console.warn("Cannot inline img src="+M+"! Error: "+e)}"anonymous"===R.crossOrigin&&(F?_.crossOrigin=F:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N)}if("audio"===b||"video"===b){var D=_;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}m||(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop));if(y){var P=e.getBoundingClientRect(),L=P.width,j=P.height;_={class:_.class,rr_width:L+"px",rr_height:j+"px"}}"iframe"!==b||d(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(b)&&(r=!0)}catch($){}return{type:Jt.Element,tagName:b,attributes:_,childNodes:[],isSVG:Tv(e)||void 0,needBlock:y,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=nr.parentNode(e),a=s&&s.tagName,u="",c="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?u="SCRIPT_PLACEHOLDER":o||(u=nr.textContent(e),c&&u&&(u=xv(u,Av(t.doc))));!c&&!l&&u&&r&&(u=n?n(u,nr.parentElement(e)):u.replace(/[\S]/g,"*"));return{type:Jt.Text,textContent:u||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:_});case e.CDATA_SECTION_NODE:return{type:Jt.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Jt.Comment,textContent:nr.textContent(e)||"",rootId:w};default:return!1}}function Pv(e){return null==e?"":e.toLowerCase()}function Lv(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,c=void 0!==u&&u,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,_=void 0!==b&&b,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,I=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,T=void 0===O?5e3:O,A=t.keepIframeSrcFn,R=void 0===A?function(){return!1}:A,M=t.newlyAddedElement,F=void 0!==M&&M,N=t.cssCaptured,D=void 0!==N&&N,P=t.needsMask,L=t.preserveWhiteSpace,j=void 0===L||L;P||(P=Nv(e,s,a,void 0===P));var $,U=Dv(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:k,keepIframeSrcFn:R,newlyAddedElement:F,cssCaptured:D});if(!U)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Jt.Comment)return!0;if(e.type===Jt.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Sv(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Pv(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Pv(e.attributes.name)||"icon"===Pv(e.attributes.rel)||"apple-touch-icon"===Pv(e.attributes.rel)||"shortcut icon"===Pv(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Pv(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Pv(e.attributes.property).match(/^(og|twitter|fb):/)||Pv(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Pv(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Pv(e.attributes.name)||"googlebot"===Pv(e.attributes.name)||"bingbot"===Pv(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Pv(e.attributes.name)||"generator"===Pv(e.attributes.name)||"framework"===Pv(e.attributes.name)||"publisher"===Pv(e.attributes.name)||"progid"===Pv(e.attributes.name)||Pv(e.attributes.property).match(/^article:/)||Pv(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Pv(e.attributes.name)||"yandex-verification"===Pv(e.attributes.name)||"csrf-token"===Pv(e.attributes.name)||"p:domain_verify"===Pv(e.attributes.name)||"verify-v1"===Pv(e.attributes.name)||"verification"===Pv(e.attributes.name)||"shopify-checkout-api-token"===Pv(e.attributes.name)))return!0}}return!1}(U,m)||!j&&U.type===Jt.Text&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?pr:Iv();var B=Object.assign(U,{id:$});if(n.add(e,B),$===pr)return null;S&&S(e);var q=!c;if(B.type===Jt.Element){q=q&&!B.needBlock,delete B.needBlock;var z=nr.shadowRoot(e);z&&vv(z)&&(B.isShadowHost=!0)}if((B.type===Jt.Document||B.type===Jt.Element)&&q){m.headWhitespace&&B.type===Jt.Element&&"head"===B.tagName&&(j=!1);var V={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R,cssCaptured:!1};if(B.type===Jt.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else{B.type===Jt.Element&&void 0!==B.attributes._cssText&&"string"==typeof B.attributes._cssText&&(V.cssCaptured=!0);for(var W,H=Jm(Array.from(nr.childNodes(e)));!(W=H()).done;){var G=Lv(W.value,V);G&&B.childNodes.push(G)}}var Z=null;if(gv(e)&&(Z=nr.shadowRoot(e)))for(var Y,J=Jm(Array.from(nr.childNodes(Z)));!(Y=J()).done;){var K=Lv(Y.value,V);K&&(vv(Z)&&(K.isShadow=!0),B.childNodes.push(K))}}var X=nr.parentNode(e);return X&&mv(X)&&vv(X)&&(B.isShadow=!0),B.type===Jt.Element&&"iframe"===B.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(u){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&x){var r=Lv(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});r&&x(e,r)}},E),B.type===Jt.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===Sv(B.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(I){var t=Lv(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});t&&I(e,t)}},T),B}function jv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $v(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Vm(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}function Uv(e,t){new Rr(t).stringify(e)}function Bv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Gm(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Bv(e,r)}):("object"===o&&null!==i&&(i=Bv(i)),r[n]=i)}return r}function qv(e){return e.map(function(e){return e.nodes&&(e.nodes=qv(e.nodes)),delete e.source,e})}function zv(e){if(e[En]=!1,e.proxyOf.nodes)for(var t,r=Jm(e.proxyOf.nodes);!(t=r()).done;){zv(t.value)}}function Vv(e,t){var r=new ji(new $i(e,t));try{r.parse()}catch(n){throw n}return r.root}function Wv(e){return"object"===(void 0===e?"undefined":Gm(e))&&"function"==typeof e.then}function Hv(e){var t=!1,r=Ji[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Qi,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Qi,r+"Exit"]:[r,r+"Exit"]}function Gv(e){return{eventIndex:0,events:"document"===e.type?["Document",Qi,"DocumentExit"]:"root"===e.type?["Root",Qi,"RootExit"]:Hv(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Zv(e){return e[Bi]=!1,e.nodes&&e.nodes.forEach(function(e){return Zv(e)}),e}function Yv(e,t){if(Array.isArray(e))return e.map(function(e){return Yv(e)});var r=e.inputs,n=Wm(e,["inputs"]);if(r){t=[];for(var i,o=Jm(r);!(i=o()).done;){var s=Bm({},i.value,{__proto__:_o.prototype});s.map&&(s.map=Bm({},s.map,{__proto__:vo.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Yv(e,t)})),n.source){var a=n.source,u=a.inputId;n.source=Wm(a,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new wo(n);if("decl"===n.type)return new mo(n);if("rule"===n.type)return new ko(n);if("comment"===n.type)return new yo(n);if("atrule"===n.type)return new bo(n);throw new Error("Unknown node type: "+e.type)}function Jv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Oo(t)}function Kv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Vm(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}function Qv(e,t){new ss(t).stringify(e)}function ey(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Gm(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ey(e,r)}):("object"===o&&null!==i&&(i=ey(i)),r[n]=i)}return r}function ty(e){return e.map(function(e){return e.nodes&&(e.nodes=ty(e.nodes)),delete e.source,e})}function ry(e){if(e[ea]=!1,e.proxyOf.nodes)for(var t,r=Jm(e.proxyOf.nodes);!(t=r()).done;){ry(t.value)}}function ny(e,t){var r=new pu(new fu(e,t));try{r.parse()}catch(n){throw n}return r.root}function iy(e){return"object"===(void 0===e?"undefined":Gm(e))&&"function"==typeof e.then}function oy(e){var t=!1,r=xu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Iu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Iu,r+"Exit"]:[r,r+"Exit"]}function sy(e){return{eventIndex:0,events:"document"===e.type?["Document",Iu,"DocumentExit"]:"root"===e.type?["Root",Iu,"RootExit"]:oy(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ay(e){return e[gu]=!1,e.nodes&&e.nodes.forEach(function(e){return ay(e)}),e}function uy(e,t){if(Array.isArray(e))return e.map(function(e){return uy(e)});var r=e.inputs,n=Wm(e,["inputs"]);if(r){t=[];for(var i,o=Jm(r);!(i=o()).done;){var s=Bm({},i.value,{__proto__:Gu.prototype});s.map&&(s.map=Bm({},s.map,{__proto__:Vu.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return uy(e,t)})),n.source){var a=n.source,u=a.inputId;n.source=Wm(a,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Zu(n);if("decl"===n.type)return new zu(n);if("rule"===n.type)return new Yu(n);if("comment"===n.type)return new Wu(n);if("atrule"===n.type)return new Hu(n);throw new Error("Unknown node type: "+e.type)}function cy(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tc(t)}function ly(e){if(_c[e])return _c[e];var t=globalThis[e],r=t.prototype,n=e in yc?yc[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in bc?bc[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!wc())return _c[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?_c[e]=c:r}catch(Lf){return r}}function hy(e,t,r){var n,i=e+"."+String(r);if(kc[i])return kc[i].call(t);var o=ly(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(kc[i]=s,s.call(t)):t[r]}function py(e,t,r){var n=e+"."+String(r);if(Sc[n])return Sc[n].bind(t);var i=ly(e)[r];return"function"!=typeof i?t[r]:(Sc[n]=i,i.bind(t))}function fy(e){return hy("Node",e,"childNodes")}function dy(e){return hy("Node",e,"parentNode")}function gy(e){return hy("Node",e,"parentElement")}function my(e){return hy("Node",e,"textContent")}function vy(e,t){return py("Node",e,"contains")(t)}function yy(e){return py("Node",e,"getRootNode")()}function by(e){return e&&"host"in e?hy("ShadowRoot",e,"host"):null}function _y(e){return e.styleSheets}function wy(e){return e&&"shadowRoot"in e?hy("Element",e,"shadowRoot"):null}function ky(e,t){return hy("Element",e,"querySelector")(t)}function Sy(e,t){return hy("Element",e,"querySelectorAll")(t)}function xy(){return ly("MutationObserver").constructor}function Cy(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(Lf){return function(){}}}function Ey(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}function Iy(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();i||!1!==r.leading||(i=u);var c=t-(u-i),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},c))}}function Oy(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return Oy(e,t,o||{},!0)}}function Ty(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=xc.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=xc.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function Ay(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ry(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function My(e){return e?e.nodeType===e.ELEMENT_NODE?e:xc.parentElement(e):null}function Fy(e,t,r,n){if(!e)return!1;var i=My(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Fv(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function Ny(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===pr}function Dy(e,t){if(mv(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=xc.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Dy(n,t))}function Py(e){return Boolean(e.changedTouches)}function Ly(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function jy(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function $y(e){return!!e&&(Vm(e,vc)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(xc.shadowRoot(e)))}function Uy(e){var t,r=null;return"getRootNode"in e&&(null==(t=xc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&xc.host(xc.getRootNode(e))&&(r=xc.host(xc.getRootNode(e))),r}function By(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Uy(r);)r=t;return r}(e);return xc.contains(t,r)}function qy(e){var t=e.ownerDocument;return!!t&&(xc.contains(t,e)||By(e))}function zy(e){return"__ln"in e}function Vy(e,t){e.delete(t),xc.childNodes(t).forEach(function(t){return Vy(e,t)})}function Wy(e,t,r){return 0!==e.size&&function(e,t){var r=xc.parentNode(t);return!!r&&e.has(r)}(e,t)}function Hy(e,t){return 0!==e.size&&Gy(e,t)}function Gy(e,t){var r=xc.parentNode(t);return!!r&&(!!e.has(r)||Gy(e,r))}function Zy(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(Lf){}return e&&e.target}function Yy(e,t){var r=new jc;Bc.push(r),r.init(e);var n=new(xy())(Uc(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Jy(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],c=null;return Object.keys(Rc).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=wv(e),a=function(e){return function(r){var s=Zy(r);if(!Fy(s,i,o,!0)){var a=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Mc.Mouse;break;case"touch":a=Mc.Touch;break;case"pen":a=Mc.Pen}a===Mc.Touch?Rc[e]===Rc.MouseDown?u="TouchStart":Rc[e]===Rc.MouseUp&&(u="TouchEnd"):Mc.Pen}else Py(r)&&(a=Mc.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===Mc.Touch||u.startsWith("Mouse")&&a===Mc.Mouse)&&(a=null)):Rc[e]===Rc.Click&&(a=c,c=null);var l=Py(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;Uc(t)(Bm({type:Rc[u],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Rc[e]){case Rc.MouseDown:case Rc.MouseUp:s=s.replace("mouse","pointer");break;case Rc.TouchStart:case Rc.TouchEnd:return}u.push(Ey(s,a,r))}),Uc(function(){u.forEach(function(e){return e()})})}function Ky(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return Ey("scroll",Uc(Iy(Uc(function(e){var s=Zy(e);if(s&&!Fy(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var u=Ty(r.defaultView);t({id:a,x:u.left,y:u.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}function Xy(e){return function(e,t){if(rb("CSSGroupingRule")&&Vm(e.parentRule,CSSGroupingRule)||rb("CSSMediaRule")&&Vm(e.parentRule,CSSMediaRule)||rb("CSSSupportsRule")&&Vm(e.parentRule,CSSSupportsRule)||rb("CSSConditionRule")&&Vm(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Qy(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function eb(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(xc.host(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),Uc(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function tb(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Yy(e,e.doc));var i,o,s,a,u,c,l,h,p,f=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],c=Iy(Uc(function(e){var r=Date.now()-o;t(u.map(function(e){return e.timeOffset-=r,e}),e),u=[],o=null}),a),l=Uc(Iy(Uc(function(e){var t=Zy(e),r=Py(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Ic()),u.push({x:n,y:s,id:i.getId(t),timeOffset:Ic()-o}),c("undefined"!=typeof DragEvent&&Vm(e,DragEvent)?Ac.Drag:Vm(e,MouseEvent)?Ac.MouseMove:Ac.TouchMove)}),s,{trailing:!1})),h=[Ey("mousemove",l,n),Ey("touchmove",l,n),Ey("drag",l,n)];return Uc(function(){h.forEach(function(e){return e()})})}(e),d=Jy(e),g=Ky(e),m=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return Ey("resize",Uc(Iy(Uc(function(){var e=Ay(),t=Ry();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200)),n)}(e,{win:n}),v=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=Zy(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=xc.parentElement(t)),t&&l&&!(qc.indexOf(l)<0)&&!Fy(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=kv(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(u[l.toLowerCase()]||u[g])&&(p=_v({element:t,maskInputOptions:u,tagName:l,type:g,value:p,maskInputFn:c})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=zc.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){zc.set(e,r);var o=n.getId(e);Uc(t)(Bm({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return Ey(e,Uc(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return Oy(e[0],e[1],{set:function(){Uc(p)({target:this,isTrusted:!1})}},!1,g)}))),Uc(function(){d.forEach(function(e){return e()})})}(e),y=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,u=i.mirror,c=i.sampling,l=i.doc,h=Uc(function(e){return Iy(Uc(function(t){var r=Zy(t);if(r&&!Fy(r,s,a,!0)){var n=r.currentTime,i=r.volume,c=r.muted,l=r.playbackRate,h=r.loop;o({type:e,id:u.getId(r),currentTime:n,volume:i,muted:c,playbackRate:l,loop:h})}}),c.media||500)}),p=[Ey("play",h(Nc.Play),l),Ey("pause",h(Nc.Pause),l),Ey("seeked",h(Nc.Seeked),l),Ey("volumechange",h(Nc.VolumeChange),l),Ey("ratechange",h(Nc.RateChange),l)],Uc(function(){p.forEach(function(e){return e()})})),b=function(){},_=function(){},w=function(){},k=function(){};e.recordDOM&&(b=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Uc(function(e,t,o){var s=o[0],a=o[1],u=Qy(t,n,i.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,u,c=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,replaceSync:s}),e.apply(t,o)})}));var l={};nb("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(nb("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),nb("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),nb("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Uc(function(e,t,o){var s=o[0],a=o[1],u=Qy(t.parentStyleSheet,n,i.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,adds:[{rule:s,index:[].concat(Xy(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t.parentStyleSheet,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,removes:[{index:[].concat(Xy(t),[s])}]}),e.apply(t,o)})})}),Uc(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=c,a&&(o.CSSStyleSheet.prototype.replace=a),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),_=eb(e,e.doc),w=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Uc(function(e,t,s){var u,c=s[0],l=s[1],h=s[2];if(i.has(c))return a.apply(t,[c,l,h]);var p=Qy(null==(u=t.parentRule)?void 0:u.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:c,value:l,priority:h},index:Xy(t.parentRule)}),e.apply(t,s)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:Uc(function(e,t,s){var a,c=s[0];if(i.has(c))return u.apply(t,[c]);var l=Qy(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:c},index:Xy(t.parentRule)}),e.apply(t,s)})}),Uc(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}(e,{win:n}),e.collectFonts&&(k=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=Cy(r.fonts,"add",function(e){return function(r){return setTimeout(Uc(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),Uc(function(){i.forEach(function(e){return e()})})}(e)));for(var S,x=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Uc(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],u=e.rangeCount||0,c=0;c<u;c++){var l=e.getRangeAt(c),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Fy(h,n,i,!0)||Fy(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),Ey("selectionchange",a)}(e),C=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Cy(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),E=[],I=Jm(e.plugins);!(S=I()).done;){var O=S.value;E.push(O.observer(O.callback,n,O.options))}return Uc(function(){var e;Bc.forEach(function(e){return e.reset()}),null===(e=r)||void 0===e||e.disconnect(),f(),d(),g(),m(),v(),y(),b(),_(),w(),k(),x(),C(),E.forEach(function(e){return e()})})}function rb(e){return void 0!==window[e]}function nb(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}function ib(e,t,r){return Vm(e,Array)?e.map(function(e){return ib(e,t,r)}):null===e?e:Vm(e,Float32Array)||Vm(e,Float64Array)||Vm(e,Int32Array)||Vm(e,Uint32Array)||Vm(e,Uint8Array)||Vm(e,Uint16Array)||Vm(e,Int16Array)||Vm(e,Int8Array)||Vm(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:Vm(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:Jc(e)}:Vm(e,DataView)?{rr_type:e.constructor.name,args:[ib(e.buffer,t,r),e.byteOffset,e.byteLength]}:Vm(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:Vm(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:Vm(e,ImageData)?{rr_type:e.constructor.name,args:[ib(e.data,t,r),e.width,e.height]}:el(e,t)||"object"===(void 0===e?"undefined":Gm(e))?{rr_type:e.constructor.name,index:Xc(e,t,r)}:e}function ob(e,t,r,n){var i=[];try{var o=Cy(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Fy(this,t,r,!0)){var u=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(s[0]&&"object"===Gm(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(Lf){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function sb(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var c=Cy(e,a,function(e){return function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var l=e.apply(this,u);if(Xc(l,o,this),"tagName"in this.canvas&&!Fy(this.canvas,n,i,!0)){var h={type:t,property:a,args:Qc(u,o,this)};r(this.canvas,h)}return l}});u.push(c)}catch(Lf){var l=Oy(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});u.push(l)}},u=[],c=Jm(Object.getOwnPropertyNames(e));!(s=c()).done;)a();return u}function ab(e){var t;try{if(!(t=nl&&(window.URL||window.webkitURL).createObjectURL(nl)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+tl,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}function ub(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,f=void 0===p?"rr-mask":p,d=e.maskTextSelector,g=void 0===d?null:d,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,b=e.maskInputOptions,_=e.slimDOMOptions,w=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,I=e.dataURLOptions,O=void 0===I?{}:I,T=e.mousemoveWait,A=e.recordDOM,R=void 0===A||A,M=e.recordCanvas,F=void 0!==M&&M,N=e.recordCrossOriginIframes,D=void 0!==N&&N,P=e.recordAfter,L=void 0===P?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":P,j=e.userTriggeredOnInput,$=void 0!==j&&j,U=e.collectFonts,B=void 0!==U&&U,q=e.inlineImages,z=void 0!==q&&q,V=e.plugins,W=e.keepIframeSrcFn,H=void 0===W?function(){return!1}:W,G=e.ignoreCSSAttributes,Z=void 0===G?new Set([]):G,Y=e.errorHandler;$c=Y;var J=!D||window.parent===window,K=!1;if(!J)try{window.parent.document&&(K=!1)}catch(me){K=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!K)return function(){};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),pl.reset();var X,Q=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},ee=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_,headTitleMutations:"all"===_}:_||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var te=0,re=function(e){for(var t,r=Jm(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};al=function(e,i){var o,s=e;if(s.timestamp=Ic(),!(null==(o=Bc[0])?void 0:o.isFrozen())||s.type===Tc.FullSnapshot||s.type===Tc.IncrementalSnapshot&&s.data.source===Ac.Mutation||Bc.forEach(function(e){return e.unfreeze()}),J)null==t||t(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===Tc.FullSnapshot)X=s,te=0;else if(s.type===Tc.IncrementalSnapshot){if(s.data.source===Ac.Mutation&&s.data.isAttachIframe)return;te++;var u=n&&te>=n,c=r&&s.timestamp-X.timestamp>r;(u||c)&&ul(!0)}};for(var ne,ie=function(e){al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Mutation},e)})},oe=function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Scroll},e)})},se=function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.CanvasMutation},e)})},ae=new ol({mutationCb:ie,adoptedStyleSheetCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.AdoptedStyleSheet},e)})}}),ue=new Wc({mirror:pl,mutationCb:ie,stylesheetManager:ae,recordCrossOriginIframes:D,wrappedEmit:al}),ce=Jm(V||[]);!(ne=ce()).done;){var le=ne.value;le.getMirror&&le.getMirror({nodeMirror:pl,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var he=new sl;cl=new il({recordCanvas:F,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:pl,sampling:E.canvas,dataURLOptions:O});var pe=new Hc({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:w,recordCanvas:F,inlineImages:z,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ae,canvasManager:cl,keepIframeSrcFn:H,processedNodeManager:he},mirror:pl});ul=function(e){if(void 0===e&&(e=!1),R){al({type:Tc.Meta,data:{href:window.location.href,width:Ry(),height:Ay()}},e),ae.reset(),pe.init(),Bc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new ir:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,u=void 0===a?null:a,c=r.maskTextClass,l=void 0===c?"rr-mask":c,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,b=r.maskAllInputs,_=void 0!==b&&b,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,I=r.onSerialize,O=r.onIframeLoad,T=r.iframeLoadTimeout,A=r.onStylesheetLoad,R=r.stylesheetLoadTimeout,M=r.keepIframeSrcFn;return Lv(e,{doc:e,mirror:i,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===_?{password:!0}:_,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:I,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:void 0===M?function(){return!1}:M,newlyAddedElement:!1})}(document,{mirror:pl,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:w,slimDOM:ee,dataURLOptions:O,recordCanvas:F,inlineImages:z,onSerialize:function(e){Ly(e,pl)&&ue.addIframe(e),jy(e,pl)&&ae.trackLinkElement(e),$y(e)&&pe.addShadowRoot(xc.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ae.attachLinkElement(e,t)},keepIframeSrcFn:H});if(!t)return console.warn("Failed to snapshot the document");al({type:Tc.FullSnapshot,data:{node:t,initialOffset:Ty(window)}},e),Bc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ae.adoptStyleSheets(document.adoptedStyleSheets,pl.getId(document))}};try{var fe=[],de=function(e){var t;return Uc(tb)({mutationCb:ie,mousemoveCb:function(e,t){return al({type:Tc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.ViewportResize},e)})},inputCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Input},e)})},mediaInteractionCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.MediaInteraction},e)})},styleSheetRuleCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.StyleSheetRule},e)})},styleDeclarationCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Font},e)})},selectionCb:function(e){al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Selection},e)})},customElementCb:function(e){al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.CustomElement},e)})},blockClass:o,ignoreClass:c,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:R,recordCanvas:F,inlineImages:z,userTriggeredOnInput:$,collectFonts:B,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:H,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:pl,iframeManager:ue,stylesheetManager:ae,shadowDomManager:pe,processedNodeManager:he,canvasManager:cl,ignoreCSSAttributes:Z,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return al({type:Tc.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{fe.push(de(e.contentDocument))}catch(t){console.warn(t)}});var ge=function(){ul(),fe.push(de(document)),ll=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(Ey("DOMContentLoaded",function(){al({type:Tc.DomContentLoaded,data:{}}),"DOMContentLoaded"===L&&ge()})),fe.push(Ey("load",function(){al({type:Tc.Load,data:{}}),"load"===L&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(t){String(t).toLowerCase().includes("cross-origin")||console.warn(t)}}),he.destroy(),ll=!1,$c=void 0}}catch(ve){console.warn(ve)}}function cb(e,t){vl.add(e,t),ml||(ml=bl(vl.drain))}function lb(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function hb(){for(var e=0;e<this.chain.length;e++)pb(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function pb(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=lb(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(o){r.reject(o)}}function fb(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=lb(e))?cb(function(){var n=new mb(r);try{t.call(e,function(){fb.apply(n,arguments)},function(){db.apply(n,arguments)})}catch(i){db.call(n,i)}}):(r.msg=e,r.state=1,r.chain.length>0&&cb(hb,r))}catch(n){db.call(new mb(r),n)}}}function db(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&cb(hb,t))}function gb(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function mb(e){this.def=e,this.triggered=!1}function vb(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function yb(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new vb(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&cb(hb,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){fb.call(t,e)},function(e){db.call(t,e)})}catch(r){db.call(t,r)}}function bb(e,t,r){var n=function(e){Vl.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Vl.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(r){n(r)}return null},parse:function(t){try{return zl.JSONDecode(e.getItem(t))||{}}catch(r){}return null},set:function(t,r){try{e.setItem(t,r)}catch(i){n(i)}},remove:function(t){try{e.removeItem(t)}catch(r){n(r)}}}}function _b(e,t){Rb(!0,e,t)}function wb(e,t){Rb(!1,e,t)}function kb(e,t){return"1"===Ab(e,t)}function Sb(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Bt,r=t.navigator||{},n=!1;return zl.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){zl.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return Vl.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Ab(e,t);return r&&Vl.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function xb(e){return Mb(e,function(e){return this.get_config(e)})}function Cb(e){return Mb(e,function(e){return this._get_config(e)})}function Eb(e){return Mb(e,function(e){return this._get_config(e)})}function Ib(e,t){Ob(t=t||{}).remove(Tb(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Ob(e){return"localStorage"===(e=e||{}).persistenceType?zl.localStorage:zl.cookie}function Tb(e,t){return((t=t||{}).persistencePrefix||yh)+e}function Ab(e,t){return Ob(t).get(Tb(e,t))}function Rb(e,t,r){zl.isString(t)&&t.length?(Ob(r=r||{}).set(Tb(t,r),e?1:0,zl.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Vl.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Mb(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Sb(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){Vl.error("Unexpected error when checking tracking opt-out status: "+c)}if(!r)return e.apply(this,arguments);var u=arguments[arguments.length-1];"function"==typeof u&&u(0)}}function Fb(e){for(var t={},r=Nb(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Nb(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Db(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Bb(e));return e}function Pb(e,t,r,n,i,o){var s={$classes:Nb(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Vb(e,t,i,o)&&zl.each(Kh.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Wb(n)&&(s["$attr-"+t]=n)}});for(var u=1,c=1,l=e;l=Db(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Lb(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,u=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,l={};zl.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(zb(p)&&(p=p.parentNode),function(e,t){if(!e||qb(e,"html")||!Bb(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Wh;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Lh:t.type===jh;case"select":case"textarea":return t.type===Lh;default:return t.type===jh}}(p,e)&&$b(p,e,r,n)&&!Ub(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!qb(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(zl.each(f,function(t){var i=Vb(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Wb(g)&&g),Ub(t,e,o,s)&&(v=!0),m.push(Pb(t,e,l,u,r,n))},this),!v){var y=Fl.documentElement;if(h={$event_type:e.type,$host:Bt.location.host,$pathname:Bt.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,Bt.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,Bt.innerWidth||0),$pageHeight:Fl.body.offsetHeight||0,$pageWidth:Fl.body.offsetWidth||0},zl.each(u,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Wb(t)&&(h["$el_attr__"+e]=t)}}),a&&(b=jb(p,e,r,n))&&b.length&&(h.$el_text=b),e.type===jh&&(zl.each(Gh,function(t){t in e&&(h["$"+t]=e[t])}),c&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(qb(i,"a")||qb(i,"button")||qb(i,"input")||qb(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var b=jb(p,e,r,n);b&&b.length&&(h.$el_text=b)}if(p){if(!$b(p,e,r,n)||Ub(p,e,o,s))return null;var _=Pb(p,e,l,u,r,n);h.$target=_,h.$el_classes=_.$classes,zl.extend(h,zl.strip_empty_properties({$el_id:_.$id,$el_tag_name:_.$tag_name}))}}}return h}function jb(e,t,r,n){var i="";return Vb(e,t,r,n)&&e.childNodes&&e.childNodes.length&&zl.each(e.childNodes,function(e){zb(e)&&e.textContent&&(i+=zl.trim(e.textContent).split(/(\s+)/).filter(Wb).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),zl.trim(i)}function $b(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(s){return np.critical("Error while checking element in allowElementCallback",s),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(s){np.critical("Error while checking selector: "+o,s)}}return!1}function Ub(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(a){return np.critical("Error while checking element in blockElementCallback",a),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(a){np.critical("Error while checking selector: "+o,a)}}var s=Fb(e);for(i=0;i<Yh.length;i++)if(s[Yh[i]])return!0;return!1}function Bb(e){return e&&1===e.nodeType}function qb(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function zb(e){return e&&3===e.nodeType}function Vb(e,t,r,n){var i;if(!$b(e,t,r,n))return!1;for(var o=e;o.parentNode&&!qb(o,"body");o=o.parentNode){var s=Fb(o);for(i=0;i<Jh.length;i++)if(s[Jh[i]])return!1}var a=Fb(e);for(i=0;i<Zh.length;i++)if(a[Zh[i]])return!0;if(qb(e,"input")||qb(e,"select")||qb(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var u=e.type||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}var c=e.name||e.id||"";return"string"!=typeof c||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(c.replace(/[^a-zA-Z0-9]/g,""))}function Wb(e){if(null===e||zl.isUndefined(e))return!1;if("string"==typeof e){if(e=zl.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function Hb(e){var t="onscrollend"in Bt,r=Gl(e),n=zh;if(!t){var i=null;r=Gl(function(){clearTimeout(i),i=setTimeout(e,100)}),n=Vh}return{listener:r,eventType:n}}function Gb(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<tp.length;t++)if(e.hasAttribute(tp[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");return!!t&&Xh[t.trim().split(/\s+/)[0].toLowerCase()]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Zb(){this.clicks=[]}function Yb(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}function Jb(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}function Kb(e,t){t()}function Xb(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){var n,i,o,s;e=e||{};const a=null!==(n=null!==(i=e.random)&&void 0!==i?i:null===(o=(s=e).rng)||void 0===o?void 0:o.call(s))&&void 0!==n?n:crypto.getRandomValues(Df);if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return(Nf[e[t+0]]+Nf[e[t+1]]+Nf[e[t+2]]+Nf[e[t+3]]+"-"+Nf[e[t+4]]+Nf[e[t+5]]+"-"+Nf[e[t+6]]+Nf[e[t+7]]+"-"+Nf[e[t+8]]+Nf[e[t+9]]+"-"+Nf[e[t+10]]+Nf[e[t+11]]+Nf[e[t+12]]+Nf[e[t+13]]+Nf[e[t+14]]+Nf[e[t+15]]).toLowerCase()}(a)}(e,t,r):crypto.randomUUID()}function Qb(){return Xb()}function e_(e=("undefined"!=typeof navigator?navigator.userAgent:"")){const t=e.toLowerCase();return t?/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(t)?"tablet":/mobile|iphone|ipod|android|blackberry|iemobile|opera mini|windows phone/.test(t)?"mobile":"desktop":"desktop"}function t_(){const e=new p;let t=e.getItem("localLogicDevice");return t||(t=function(){let e;try{e=`$device:${Qb()}`}catch(t){e=`$device:default-${Date.now()}-${Math.random().toString(36).substring(2,15)}`}return e}(),e.setItem("localLogicDevice",t)),t}function r_(){const e=(new Date).toISOString();let t;try{t=`$session:${Qb()}`}catch(r){t=`$session:default-${Date.now()}-${Math.random().toString(36).substring(2,15)}`}return{sessionId:t,startTime:e,endTime:e}}function n_(){const e=new p,t=new Date,r=e.getItem("localLogicSession");let n;return r?(n=JSON.parse(r),n.endTime&&t.getTime()-new Date(n.endTime).getTime()>=18e5?n=r_():n.endTime=t.toISOString()):n=r_(),e.setItem("localLogicSession",JSON.stringify(n)),n.sessionId}function i_(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return function(e){return e==+e?0===e&&1/e<0?"-0":""+e:"NaN"}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return id.call(e).replace(od,"Symbol($1)");let n=td.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+rd.call(e)+"]":"RegExp"===n?nd.call(e):null}function o_(e,t){let r=i_(e,t);return null===r?JSON.stringify(e,function(e,r){let n=i_(this[e],t);return null===n?r:n},2):r}function s_(e){return null==e?[]:[].concat(e)}function a_(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},s,a){let{name:u,test:c,params:l,message:h,skipAbsent:p}=e,{parent:f,context:d,abortEarly:g=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n,v={value:t,parent:f,context:d};function y(e={}){let n=u_(Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},l,e.params),v),s=new hd(hd.formatError(e.message||h,n),t,n.path,e.type||u,n.disableStackTrace);return s.params=n,s}let b,_=g?s:a,w={path:r,parent:f,type:u,from:n.from,createError:y,resolve:e=>c_(e,v),options:n,originalValue:i,schema:o},k=e=>{hd.isError(e)?_(e):e?a(null):_(y())},S=e=>{hd.isError(e)?_(e):s(e)};if(p&&xd(t))return k(!0);try{var x;if(b=c.call(w,t,w),"function"==typeof(null===(x=b)||void 0===x?void 0:x.then)){if(n.sync)throw Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(b).then(k,S)}}catch(e){return void S(e)}k(b)}return t.OPTIONS=e,t}function u_(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=c_(e[r],t);return e}function c_(e,t){return Sd.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function l_(e,t,r,n=r){let i,o,s;return t?((0,Xf.forEach)(t,(a,u,c)=>{let l=u?a.slice(1,a.length-1):a,h="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||h){if(h&&!c)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r&&(r=r[p]),e=h?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r&&(r=r[l]),e=e.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}function h_(e,t=new Map){if(_d(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=h_(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(let[n,i]of e.entries())r.set(n,h_(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let n of e)r.add(h_(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(let[n,i]of Object.entries(e))r[n]=h_(i,t)}return r}function p_(e){if(null==e||!e.length)return;let t=[],r="",n=!1,i=!1;for(let o=0;o<e.length;o++){let s=e[o];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||n||i?r+=s:r&&(t.push(r),r=""):i=!i:(r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1):(r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0)}return r&&t.push(...r.split(".").filter(Boolean)),t}function f_(e,t){var r;if((null==(r=e.inner)||!r.length)&&e.errors.length)return function(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:p_(r)}))}(e,t);let n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>f_(e,n))}function d_(e){return new Od(e)}function g_(){return new Td}function m_(e){var t,r;let n=Ad.exec(e);return n?{year:v_(n[1]),month:v_(n[2],1)-1,day:v_(n[3],1),hour:v_(n[4]),minute:v_(n[5]),second:v_(n[6]),millisecond:n[7]?v_(n[7].substring(0,3)):0,precision:null!==(t=null===(r=n[7])||void 0===r?void 0:r.length)&&void 0!==t?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:v_(n[10]),minuteOffset:v_(n[11])}:null}function v_(e,t=0){return Number(e)||t}function y_(){return new Ld}function b_(){return new $d}function __(){return new qd}function w_(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function k_(e){return(t,r)=>w_(e,t)-w_(e,r)}function S_(e){if("fields"in e){let t={};for(let[r,n]of Object.entries(e.fields))t[r]=S_(n);return e.setFields(t)}if("array"===e.type){let t=e.optional();return t.innerType&&(t.innerType=S_(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(S_)}):"optional"in e?e.optional():e}function x_(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}function C_(e){return new Gd(e)}function E_(e){return new Zd(e)}function I_(e){return new Yd(e)}function O_(e,t){if(!e)return!1;let r=0;return Object.values(e).forEach(e=>{r+=(null==e?void 0:e.length)||0}),r>=t}function T_(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function A_(e,t){return 0===t?e:Math.round((r=e+255*t,n=5,i=250,Math.min(Math.max(r,n),i)));var r,n,i}function R_(e,t){const r={};if(zg.test(e))Object.entries(t).reduce((t,[r,n])=>(t[r]=function(e,t){if(!zg.test(e))return e;const r=e.match(/\w\w/g);if(!r)return e;const[n,i,o]=r.map(e=>parseInt(e,16));return`#${[A_(n,t),A_(i,t),A_(o,t)].map(e=>Math.round(e).toString(16).padStart(2,"0")).join("")}`.toUpperCase()}(e,n),t),r);else if(Vg.test(e)){const[n,i,o]=e.replace(/[^\d,]/g,"").split(",").map(Number);Object.entries(t).reduce((e,[t,r])=>(e[t]=function(e,t,r,n){return`rgb(${A_(e,n)}, ${A_(t,n)}, ${A_(r,n)})`}(n,i,o,r),e),r)}else Object.entries(t).reduce((t,[r])=>(t[r]=e,t),r);return r}return e({c:n_,d:wm,f:_m,h:function(e,t){return function(e,t,r){var n,i,o,s,u,c;const l=le(),p=pe(),d=a(r),g=d.defaultQueryOptions(e);null===(n=d.getDefaultOptions().queries)||void 0===n||null===(i=n._experimental_beforeQuery)||void 0===i||i.call(n,g),g._optimisticResults=l?"isRestoring":"optimistic",me(g),fe(g,p),de(p);const m=!d.getQueryCache().get(g.queryHash),[v]=A.useState(()=>new t(d,g)),y=v.getOptimisticResult(g),b=!l&&!1!==e.subscribed;if(A.useSyncExternalStore(A.useCallback(e=>{const t=b?v.subscribe(h.batchCalls(e)):I;return v.updateResult(),t},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),A.useEffect(()=>{v.setOptions(g)},[g,v]),ye(g,y))throw be(g,v,p);if(ge({result:y,errorResetBoundary:p,throwOnError:g.throwOnError,query:d.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw y.error;return null===(o=d.getDefaultOptions().queries)||void 0===o||null===(s=o._experimental_afterQuery)||void 0===s||s.call(o,g,y),g.experimental_prefetchInRender&&!f&&ve(y,l)&&(null===(u=m?be(g,v,p):null===(c=d.getQueryCache().get(g.queryHash))||void 0===c?void 0:c.promise)||void 0===u||u.catch(I).finally(()=>{v.updateResult()})),g.notifyOnChangeProps?y:v.trackResult(y)}(e,ae,t)},l:Om,m:mm,o:function(e){try{Ff.init(e,{track_pageview:!1,persistence:"localStorage"})}catch(t){}},p:vm,u:Im}),{setters:[function(e){n=e.a,i=e.t},function(e){o=e.l},function(e){s=e.$,a=e.K,u=e.Q,c=e.X,l=e.Y,h=e.Z,p=e.a,f=e.at,d=e.ct,g=e.dt,m=e.et,v=e.ft,y=e.gt,b=e.ht,_=e.lt,w=e.mt,k=e.nt,S=e.ot,x=e.pt,C=e.q,E=e.rt,I=e.st,O=e.tt,T=e.ut}],execute:function(){A=n(o()),e("b",R=(e,r,n,i)=>{var o,s,a;const u=[n,t({code:r},i||{})];if(null!=e&&null!==(o=e.services)&&void 0!==o&&null!==(o=o.logger)&&void 0!==o&&o.forward)return e.services.logger.forward(u,"warn","react-i18next::",!0);j(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),null!=e&&null!==(s=e.services)&&void 0!==s&&null!==(s=s.logger)&&void 0!==s&&s.warn?e.services.logger.warn(...u):null!==(a=console)&&void 0!==a&&a.warn&&console.warn(...u)}),M={},e("x",F=(e,t,r,n)=>{j(r)&&M[r]||(j(r)&&(M[r]=new Date),R(e,t,r,n))}),N=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},D=(e,t,r)=>{e.loadNamespaces(t,N(e,r))},P=(e,t,r,n)=>{if(j(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return D(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,N(e,n))},L=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(F(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),e("y",j=e=>"string"==typeof e),e("v",$=e=>"object"==typeof e&&null!==e),e("_",U=(0,A.createContext)()),B=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},q=(e,t)=>{const r=(0,A.useRef)();return(0,A.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current},z=(e,t,r,n)=>e.getFixedT(t,r,n),V=(e,t,r,n)=>(0,A.useCallback)(z(e,t,r,n),[e,t,r,n]),e("g",(e,r={})=>{var n,i,o,s;const{i18n:a}=r,{i18n:u,defaultNS:c}=(0,A.useContext)(U)||{},l=a||u||b();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new B),!l){F(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>j(t)?t:$(t)&&j(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}null!==(n=l.options.react)&&void 0!==n&&n.wait&&F(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h=t(t(t({},y()),l.options.react),r),{useSuspense:p,keyPrefix:f}=h;let d=e||c||(null===(i=l.options)||void 0===i?void 0:i.defaultNS);d=j(d)?[d]:d||["translation"],null===(o=(s=l.reportNamespaces).addUsedNamespaces)||void 0===o||o.call(s,d);const g=(l.isInitialized||l.initializedStoreOnce)&&d.every(e=>L(e,l,h)),m=V(l,r.lng||null,"fallback"===h.nsMode?d:d[0],f),v=()=>m,_=()=>z(l,r.lng||null,"fallback"===h.nsMode?d:d[0],f),[w,k]=(0,A.useState)(v);let S=d.join();r.lng&&(S=`${r.lng}${S}`);const x=q(S),C=(0,A.useRef)(!0);(0,A.useEffect)(()=>{const{bindI18n:e,bindI18nStore:t}=h;C.current=!0,g||p||(r.lng?P(l,r.lng,d,()=>{C.current&&k(_)}):D(l,d,()=>{C.current&&k(_)})),g&&x&&x!==S&&C.current&&k(_);const n=()=>{C.current&&k(_)};return e&&(null==l||l.on(e,n)),t&&(null==l||l.store.on(t,n)),()=>{C.current=!1,l&&e&&(null==e||e.split(" ").forEach(e=>l.off(e,n))),t&&l&&t.split(" ").forEach(e=>l.store.off(e,n))}},[l,S]),(0,A.useEffect)(()=>{C.current&&g&&k(v)},[l,f,g]);const E=[w,l,g];if(E.t=w,E.i18n=l,E.ready=g,g)return E;if(!g&&!p)return E;throw new Promise(e=>{r.lng?P(l,r.lng,d,()=>e()):D(l,d,()=>e())})}),W=new WeakMap,H=new WeakMap,G=new WeakMap,Z=new WeakMap,Y=new WeakMap,J=new WeakMap,K=new WeakMap,X=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakSet,ae=class extends w{constructor(e,t){super(),c(this,se),E(this,W,void 0),E(this,H,void 0),E(this,G,void 0),E(this,Z,void 0),E(this,Y,void 0),E(this,J,void 0),E(this,K,void 0),E(this,X,void 0),E(this,Q,void 0),E(this,ee,void 0),E(this,te,void 0),E(this,re,void 0),E(this,ne,void 0),E(this,ie,void 0),E(this,oe,new Set),this.options=t,O(W,this,e),O(X,this,null),O(K,this,u()),this.options.experimental_prefetchInRender||m(K,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(m(H,this).addObserver(this),rm(m(H,this),this.options)?k(se,this,Gg).call(this):this.updateResult(),k(se,this,Kg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nm(m(H,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nm(m(H,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,k(se,this,Xg).call(this),k(se,this,Qg).call(this),m(H,this).removeObserver(this)}setOptions(e){const t=this.options,r=m(H,this);if(this.options=m(W,this).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof _(this.options.enabled,m(H,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");k(se,this,em).call(this),m(H,this).setOptions(this.options),t._defaulted&&!g(this.options,t)&&m(W,this).getQueryCache().notify({type:"observerOptionsUpdated",query:m(H,this),observer:this});const n=this.hasListeners();n&&im(m(H,this),r,this.options,t)&&k(se,this,Gg).call(this),this.updateResult(),!n||m(H,this)===r&&_(this.options.enabled,m(H,this))===_(t.enabled,m(H,this))&&T(this.options.staleTime,m(H,this))===T(t.staleTime,m(H,this))||k(se,this,Zg).call(this);const i=k(se,this,Yg).call(this);!n||m(H,this)===r&&_(this.options.enabled,m(H,this))===_(t.enabled,m(H,this))&&i===m(ie,this)||k(se,this,Jg).call(this,i)}getOptimisticResult(e){const t=m(W,this).getQueryCache().build(m(W,this),e),r=this.createResult(t,e);var n;return n=r,g(this.getCurrentResult(),n)||(O(Z,this,r),O(J,this,this.options),O(Y,this,m(H,this).state)),r}getCurrentResult(){return m(Z,this)}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),null==t||t(r),Reflect.get(e,r))})}trackProp(e){m(oe,this).add(e)}getCurrentQuery(){return m(H,this)}refetch(e={}){let r=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return this.fetch(t({},r))}fetchOptimistic(e){const t=m(W,this).defaultQueryOptions(e),r=m(W,this).getQueryCache().build(m(W,this),t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){var r;return k(se,this,Gg).call(this,t(t({},e),{},{cancelRefetch:null===(r=e.cancelRefetch)||void 0===r||r})).then(()=>(this.updateResult(),m(Z,this)))}createResult(e,r){const n=m(H,this),i=this.options,o=m(Z,this),s=m(Y,this),a=m(J,this),c=e!==n?e.state:m(G,this),{state:h}=e;let p,f=t({},h),g=!1;if(r._optimisticResults){const o=this.hasListeners(),s=!o&&rm(e,r),a=o&&im(e,n,r,i);(s||a)&&(f=t(t({},f),l(h.data,e.options))),"isRestoring"===r._optimisticResults&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=f;p=f.data;let w=!1;if(void 0!==r.placeholderData&&void 0===p&&"pending"===b){var k;let e;null!=o&&o.isPlaceholderData&&r.placeholderData===(null==a?void 0:a.placeholderData)?(e=o.data,w=!0):e="function"==typeof r.placeholderData?r.placeholderData(null===(k=m(te,this))||void 0===k?void 0:k.state.data,m(te,this)):r.placeholderData,void 0!==e&&(b="success",p=d(null==o?void 0:o.data,e,r),g=!0)}if(r.select&&void 0!==p&&!w)if(o&&p===(null==s?void 0:s.data)&&r.select===m(Q,this))p=m(ee,this);else try{O(Q,this,r.select),p=r.select(p),p=d(null==o?void 0:o.data,p,r),O(ee,this,p),O(X,this,null)}catch(A){O(X,this,A)}m(X,this)&&(v=m(X,this),p=m(ee,this),y=Date.now(),b="error");const S="fetching"===f.fetchStatus,x="pending"===b,C="error"===b,E=x&&S,I=void 0!==p,T={status:b,fetchStatus:f.fetchStatus,isPending:x,isSuccess:"success"===b,isError:C,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:C&&!I,isPaused:"paused"===f.fetchStatus,isPlaceholderData:g,isRefetchError:C&&I,isStale:om(e,r),refetch:this.refetch,promise:m(K,this),isEnabled:!1!==_(r.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===T.status?e.reject(T.error):void 0!==T.data&&e.resolve(T.data)},r=()=>{t(O(K,this,T.promise=u()))},i=m(K,this);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==T.status&&T.data===i.value||r();break;case"rejected":"error"===T.status&&T.error===i.reason||r()}}return T}updateResult(){const e=m(Z,this),t=this.createResult(m(H,this),this.options);if(O(Y,this,m(H,this).state),O(J,this,this.options),void 0!==m(Y,this).data&&O(te,this,m(H,this)),g(t,e))return;O(Z,this,t);k(se,this,tm).call(this,{listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!m(oe,this).size)return!0;const n=new Set(null!=r?r:m(oe,this));return this.options.throwOnError&&n.add("error"),Object.keys(m(Z,this)).some(t=>{const r=t;return m(Z,this)[r]!==e[r]&&n.has(r)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&k(se,this,Kg).call(this)}},ue=C(),ce=A.createContext(!1),le=()=>A.useContext(ce),ce.Provider,he=A.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),pe=()=>A.useContext(he),fe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},de=e=>{A.useEffect(()=>{e.clearReset()},[e])},ge=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||v(r,[e.error,n])),me=e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(null!=e?e:1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},ve=(e,t)=>e.isLoading&&e.isFetching&&!t,ye=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,be=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),_e=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/RequestError"}},we=e=>({post:async function(t,r){const n=await fetch(`https://analytics.locallogic.co/track-v2${t}`,{body:JSON.stringify(r),headers:{Accept:"application/json",Authorization:e,"Content-type":"application/json"},method:"POST"});if(!n.ok){var i;let e;try{e=await n.json()}catch(o){}const t=null!==(i=e)&&void 0!==i&&i.message?e.message:"";if("unauthorized"!==t.toLowerCase())throw new _e(`Could not post tracking event: ${t}`)}}}),ke=i((e,t)=>{function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),l=new r(512);function h(e){return u.get(e)||u.set(e,p(e).map(function(e){return e.replace(a,"$2")}))}function p(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}t.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=h(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||i.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),o=!(s=f(n))&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}}),Se=i((e,t)=>{var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(r)||[],i=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),s=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");t.exports={words:n,upperFirst:i,camelCase:s,pascalCase:e=>i(s(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>i(o(e," ")),titleCase:e=>n(e).map(i).join(" ")}}),xe=i((e,t)=>{function r(e,t){var r=e.length,n=new Array(r),i={},o=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||u(e[o],o,new Set);return n;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(Lf){c=""}throw new Error("Cyclic dependency"+c)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var h=l[--t];u(h,a.get(h),o)}while(t);o.delete(e)}n[--r]=e}}}t.exports=function(e){return r(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},t.exports.array=r}),Ce=ke(),Ee=Se(),Ie=n(xe()),Oe=Object.prototype.toString,Te=Error.prototype.toString,Ae=RegExp.prototype.toString,Re="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Me=/^Symbol\((.*)\)(.*)$/,Pe=/\$\{\s*(\w+)\s*\}/g,Fe=Symbol.toStringTag,Le=class{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Fe]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],um(e).forEach(e=>{if(je.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}},Ne=Symbol.hasInstance,De=Symbol.toStringTag,je=class e extends Error{static formatError(e,t){const r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(Pe,(e,r)=>am(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(t,r,n,i,o){const s=new Le(t,r,n,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[De]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,e)}static[Ne](e){return Le[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},$e={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=null!=n&&n!==r?` (cast from the value \`${am(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${am(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${am(r,!0)}\``+i}},Ue={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Be={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},qe={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ze={isValue:"${path} field must be ${value}"},Ve={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},We={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},He={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${am(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${am(r,!0)}\``}return je.formatError($e.notType,e)}},Object.assign(Object.create(null),{mixed:$e,string:Ue,number:Be,date:qe,object:Ve,array:We,boolean:ze,tuple:He}),Ge=e=>e&&e.__isYupSchema__,Ze=class e{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new e(t,(e,t)=>{var r;let n=s(...e)?i:o;return null!=(r=null==n?void 0:n(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!Ge(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}},Ye={context:"$",value:"."},Je=class{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ye.context,this.isValue=this.key[0]===Ye.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Ye.context:this.isValue?Ye.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Ce.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}},Je.prototype.__isYupRef=!0,Ke=e=>null==e,Xe=class e extends Set{describe(){const e=[];for(const t of this.values())e.push(Je.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const r of this.values())t.push(e(r));return t}clone(){return new e(this.values())}merge(e,t){const r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}},Qe=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Xe,this._blacklist=new Xe,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError($e.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=fm(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();return r.spec=Object.assign({},t.spec,r.spec),r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&Ke(i))return i;let o=am(e),s=am(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(s!==o?`result of cast: ${s}`:""))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:u},r,e=>{if(e.length)return n(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:s,path:a,options:u}=e,c=e=>{n||(n=!0,t(e,o))},l=e=>{n||(n=!0,r(e,o))},h=i.length,p=[];if(!h)return l([]);let f={value:o,originalValue:s,path:a,options:u,schema:this};for(let d=0;d<i.length;d++){(0,i[d])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--h<=0&&l(p)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){const s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const a="number"==typeof s;let u=r[s];const c=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${n||""}[${a?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),i=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise((r,o)=>n._validate(e,t,(e,t)=>{je.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new je(e,t,void 0,void 0,i)):r(t)}))}validateSync(e,t){var r;let n,i=this.resolve(Object.assign({},t,{value:e})),o=null!=(r=null==t?void 0:t.disableStackTrace)?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw je.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new je(t,e,void 0,void 0,o);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(je.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(r){if(je.isError(r))return!1;throw r}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):fm(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const r=this.clone({nullable:e});return r.internalTests.nullable=cm({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){const r=this.clone({optional:e});return r.internalTests.optionality=cm({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=$e.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=$e.notNull){return this.nullability(!1,e)}required(e=$e.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=$e.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=cm(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=um(e).map(e=>new Je(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new Ze(n,t):Ze.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=cm({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=$e.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=cm({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=$e.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=cm({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const r=t.OPTIONS.params&&e?lm(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(r){if(r instanceof je)return{issues:gm(r)};throw r}}}}},Qe.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Qe.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:s}=pm(this,t,r,n.context);return s[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])Qe.prototype[e]=Qe.prototype.oneOf;for(const e of["not","nope"])Qe.prototype[e]=Qe.prototype.notOneOf;for((et=()=>!0,tt=class extends Qe{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:et},e))}},mm.prototype=tt.prototype,rt=class extends Qe{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=ze.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Ke(e)||!0===e})}isFalse(e=ze.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Ke(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}},vm.prototype=rt.prototype,nt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/,it=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ot=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,st=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,at=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),ut=e=>Ke(e)||e===e.trim(),ct={}.toString(),lt=class extends Qe{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===ct?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||$e.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=Ue.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=Ue.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=Ue.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||Ue.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=Ue.email){return this.matches(it,{name:"email",message:e,excludeEmptyString:!0})}url(e=Ue.url){return this.matches(ot,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Ue.uuid){return this.matches(st,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(at,{name:"datetime",message:n||Ue.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ue.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const r=ym(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||Ue.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;const t=ym(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=Ue.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:ut})}lowercase(e=Ue.lowercase){return this.transform(e=>Ke(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Ke(e)||e===e.toLowerCase()})}uppercase(e=Ue.uppercase){return this.transform(e=>Ke(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Ke(e)||e===e.toUpperCase()})}},_m.prototype=lt.prototype,ht=e=>e!=+e,pt=class extends Qe{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!ht(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=Be.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=Be.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=Be.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=Be.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=Be.positive){return this.moreThan(0,e)}negative(e=Be.negative){return this.lessThan(0,e)}integer(e=Be.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>Ke(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>Ke(t)?t:Math[e](t))}},wm.prototype=pt.prototype,ft=new Date(""),dt=e=>"[object Date]"===Object.prototype.toString.call(e),gt=class e extends Qe{constructor(){super({type:"date",check:e=>dt(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||null===t?t:(t=function(e){const t=ym(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(t),isNaN(t)?e.INVALID_DATE:new Date(t)))})}prepareParam(e,t){let r;if(Je.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=qe.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=qe.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}},gt.INVALID_DATE=ft,km.prototype=gt.prototype,km.INVALID_DATE=ft,mt=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(i){}return r.isType(n)?n:e},vt=(e,t)=>{const r=[...(0,Ce.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,Ce.getter)((0,Ce.join)(r),!0)(e);return!(!i||!(n in i))},yt=e=>"[object Object]"===Object.prototype.toString.call(e),bt=xm([]),_t=class extends Qe{constructor(e){super({type:"object",check:e=>yt(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=bt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),a={},u=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),c=!1;for(const l of s){let e=i[l],r=l in n;if(e){let r,i=n[l];u.path=(t.path?`${t.path}.`:"")+l,e=e.resolve({value:i,context:t.context,parent:a});let o=e instanceof Qe?e.spec:void 0,s=null==o?void 0:o.strict;if(null!=o&&o.strip){c=c||l in n;continue}r=t.__validating&&s?n[l]:e.cast(n[l],u),void 0!==r&&(a[l]=r)}else r&&!o&&(a[l]=n[l]);r===l in a&&a[l]===n[l]||(c=!0)}return c?a:n}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!s||!yt(i))return void n(e,i);o=o||i;let a=[];for(let r of this._nodes){let e=this.fields[r];e&&!Je.isRef(e)&&a.push(e.asNestedTest({options:t,key:r,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[n,i]of Object.entries(this.fields)){const e=r[n];r[n]=void 0===e?i:e}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,Ce.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(const s of Object.keys(e)){let t=e[s];n.add(s),Je.isRef(t)&&t.isSibling?o(t.path,s):Ge(t)&&"deps"in t&&t.deps.forEach(e=>o(e,s))}return Ie.default.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=xm(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return Cm(this)}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){const t=[];for(const r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,Ce.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return vt(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(mt)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Ve.exact,test(e){if(null==e)return!0;const t=Em(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=Ve.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const r=Em(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=Ve.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const r={};for(const n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(Ee.camelCase)}snakeCase(){return this.transformKeys(Ee.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Ee.snakeCase)(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}},Im.prototype=_t.prototype,wt=class extends Qe{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1;const i=r.map((e,r)=>{const i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){var i;let o=this.innerType,s=null!=(i=t.recursive)?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(i,a)=>{var u;if(!s||!o||!this._typeCheck(a))return void n(i,a);let c=new Array(a.length);for(let r=0;r<a.length;r++){var l;c[r]=o.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e})}this.runTests({value:a,tests:c,originalValue:null!=(u=t.originalValue)?u:e,options:t},r,e=>n(e.concat(i),a))})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(mt)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Ge(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+am(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=We.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||We.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||We.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}},Om.prototype=wt.prototype,kt=class extends Qe{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(He.notType)})}_cast(e,t){const{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1;const o=r.map((e,r)=>{const o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,s)=>{var a;if(!this._typeCheck(s))return void n(o,s);let u=[];for(let[r,n]of i.entries()){var c;u[r]=n.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:s,tests:u,originalValue:null!=(a=t.originalValue)?a:e,options:t},r,e=>n(e.concat(o),s))})}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}},Tm.prototype=kt.prototype,St=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/UnknownError"}},xt=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/ValidationError"}},Ct=e=>{if(e instanceof je)throw new xt(e.message);if(e instanceof _e)throw new _e(e.message);throw new St(e.message)},Et=(e,t,r)=>{const n=r.value;return r.value=function(...e){try{const t=n.apply(this,e);return t&&t instanceof Promise?t.catch(e=>{Ct(e)}):t}catch(t){Ct(t)}},r},It=["1.0.0"],Ot=Im({event_type:_m().required(),event_version:_m().required().oneOf(It),isTestEvent:vm(),meta:Im({user_id:_m(),session_id:_m(),page_load_id:_m(),product_version:_m(),client_id:_m(),product_name:_m().required()}),attributes:Im({})}),Tt=e=>async t=>{const{event_type:r,isTestEvent:n,event_version:i,meta:o,attributes:s}=await Ot.validate(t);try{return await e.post("/record",{params:{event_type:r,event_version:i,isTestEvent:n,meta:o,attributes:s}})}catch(a){if(a instanceof TypeError&&(a.message.toLowerCase().includes("networkerror")||a.message.toLowerCase().includes("load failed")||a.message.toLowerCase().includes("failed to fetch")))return;if(a instanceof DOMException&&a.message.toLowerCase().includes("aborted")||a instanceof TypeError&&a.message.toLowerCase().includes("cancelled")||a instanceof TypeError&&a.message.toLowerCase().includes("annulé"))return;if(a instanceof _e)return;throw a}},function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);o>3&&s&&Object.defineProperty(t,r,s)}([Et],(At=class{constructor(e){this.requests=we(e)}postEvent(e){const r=t(t({},e),{},{meta:t(t({},e.meta),{},{event_time:new Date})});return Tt(this.requests)(r)}}).prototype,"postEvent",null),Rt=e=>new At(e),Mt={},(Ft={}).byteLength=Rm,Ft.toByteArray=Mm,Ft.fromByteArray=Dm,Nt=[],Dt=[],Pt="undefined"!=typeof Uint8Array?Uint8Array:Array,Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jt=0,64);jt<64;++jt)Nt[jt]=Lt[jt],Dt[Lt.charCodeAt(jt)]=jt;for(Dt["-".charCodeAt(0)]=62,Dt["_".charCodeAt(0)]=63,($t={}).read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,p=r?-1:1,f=e[t+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},$t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+h>=1?p/u:p*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*g},function(e){const t=Ft,r=$t,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;function u(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new o(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=u(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(s.isView(e))return function(e){if(J(e,o)){const t=new o(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,s)||e&&J(e.buffer,s))return d(e,t,r);if(void 0!==a&&(J(e,a)||e&&J(e.buffer,a)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|g(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?u(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return h(e),u(e<0?0:0|g(e))}function f(e){const t=e.length<0?0:0|g(e.length),r=u(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new o(e):void 0===r?new o(e,t):new o(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function g(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(s.isView(e)||J(e,s))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof o.prototype.indexOf?i?o.prototype.indexOf.call(e,t,r):o.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(K(n))return s;e[r+s]=n}return s}function k(e,t,r,n){return Y(G(t,e.length-r),e,r,n)}function S(e,t,r,n){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return Y(Z(t),e,r,n)}function C(e,t,r,n){return Y(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new o(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(Lf){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,o.prototype),Object.setPrototypeOf(c,o),c.alloc=function(e,t,r){return function(e,t,r){return h(e),e<=0?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}(e,t,r)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,o)&&(e=c.from(e,e.offset,e.byteLength)),J(t,o)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(J(t,o))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):o.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):v.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(J(e,o)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(s,a),l=this.slice(n,i),h=e.slice(t,r);for(let o=0;o<u;++o)if(l[o]!==h[o]){s=l[o],a=h[o];break}return s<a?-1:a<s?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=X[e[o]];return i}function M(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function P(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function $(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof o.prototype.copyWithin?this.copyWithin(t,r,n):o.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const U={};function B(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,i,o)}function V(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),B("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),B("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(Mt),Ut=Mt.Buffer,Bt="undefined"==typeof window?{crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:qt={hostname:""},referrer:""},screen:{width:0,height:0},location:qt,addEventListener:function(){},removeEventListener:function(){}}:window,zt=Object.defineProperty,Vt=function(e,t,r){return t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Wt=function(e,t,r){return Vt(e,"symbol"!==(void 0===t?"undefined":Gm(t))?t+"":t,r)},Gt=Object.defineProperty,Zt=function(e,t,r){return t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Yt=function(e,t,r){return Zt(e,"symbol"!==(void 0===t?"undefined":Gm(t))?t+"":t,r)},Jt=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Jt||{}),Kt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qt={},er=function(){return!!globalThis.Zone},tr={},rr={},nr={childNodes:rv,parentNode:nv,parentElement:iv,textContent:ov,contains:sv,getRootNode:av,host:uv,styleSheets:cv,shadowRoot:lv,querySelector:hv,querySelectorAll:pv,mutationObserver:fv,patch:dv},ir=function(){function e(){Yt(this,"idNodeMap",new Map),Yt(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}(),or="__rrweb_original__",sr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ar=/^(?:[a-z+]+:)?\/\//i,ur=/^www\..*/i,cr=/^(data:)([^,]*),(.*)/i,lr=1,hr=new RegExp("[^a-z0-9-_:]"),pr=-2,gr=/^[^ \t\n\r\u000c]+/,mr=/^[, \t\n\r\u000c]+/,vr=new WeakMap,yr={exports:{}},br=String,_r=function(){return{isColorSupported:!1,reset:br,bold:br,dim:br,italic:br,underline:br,inverse:br,hidden:br,strikethrough:br,black:br,red:br,green:br,yellow:br,blue:br,magenta:br,cyan:br,white:br,gray:br,bgBlack:br,bgRed:br,bgGreen:br,bgYellow:br,bgBlue:br,bgMagenta:br,bgCyan:br,bgWhite:br}},yr.exports=_r(),yr.exports.createColors=_r,wr=yr.exports,kr=$v(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Sr=wr,xr=kr,Cr=function(e){function t(r,n,i,o,s,a){var u=e.call(this,r)||this;return u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}zm(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Sr.isColorSupported),xr&&e&&(r=xr(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=Sr.createColors(!0),l=c.bold,h=c.gray,p=c.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-u)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Zm(Error)),Er=Cr,Cr.default=Cr,(Ir={}).isClean=Symbol("isClean"),Ir.my=Symbol("my"),Or={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Tr=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Or[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Or[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Ar=Tr,Tr.default=Tr,Rr=Ar,Mr=Uv,Uv.default=Uv,Fr=Ir.isClean,Nr=Ir.my,Dr=Er,Pr=Ar,Lr=Mr,jr=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Fr]=!1,this[Nr]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Jm(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Bv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Dr(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Fr]){this[Fr]=!1;for(var e=this;e=e.parent;)e[Fr]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Pr).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Jm(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":Gm(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Lr),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Um(e,[{key:"proxyOf",get:function(){return this}}]),e}(),$r=jr,jr.default=jr,Br=Ur=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=Bm({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return zm(t,e),Um(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}($r),Ur.default=Ur,qr={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}},zr=kr.SourceMapConsumer,Vr=kr.SourceMapGenerator,Wr=kr.existsSync,Hr=kr.readFileSync,Gr=kr.dirname,Zr=kr.join,Yr=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Gr(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new zr(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Ut?Ut.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Gm(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Gr(e),Wr(e))return this.mapFile=e,Hr(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(Vm(t,zr))return Vr.fromSourceMap(t).toString();if(Vm(t,Vr))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Zr(Gr(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Jr=Yr,Yr.default=Yr,Kr=kr.SourceMapConsumer,Xr=kr.SourceMapGenerator,Qr=kr.fileURLToPath,en=kr.pathToFileURL,tn=kr.isAbsolute,rn=kr.resolve,nn=qr.nanoid,on=kr,sn=Er,an=Jr,un=Symbol("fromOffsetCache"),cn=Boolean(Kr&&Xr),ln=Boolean(rn&&tn),pn=hn=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Gm(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ln||/^\w+:\/\//.test(t.from)||tn(t.from)?this.file=t.from:this.file=rn(t.from)),ln&&cn){var r=new an(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+nn(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Gm(t))){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new sn(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new sn(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(en&&(i.input.url=en(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[un])t=this[un];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[un]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:rn(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=tn(a.source)?en(a.source):new URL(a.source,this.map.consumer().sourceRoot||en(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Qr)throw new Error("file: protocol is not available in this PostCSS build");u.file=Qr(o)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=Bm({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Um(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),hn.default=hn,on&&on.registerInput&&on.registerInput(hn),fn=kr.SourceMapConsumer,dn=kr.SourceMapGenerator,gn=kr.dirname,mn=kr.relative,vn=kr.resolve,yn=kr.sep,bn=kr.pathToFileURL,_n=pn,wn=Boolean(fn&&dn),kn=Boolean(gn&&vn&&mn&&yn),Sn=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Jm(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||gn(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new fn(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),kn&&wn&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=dn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new dn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new dn({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"!==u.type&&("atrule"!==u.type||u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?gn(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=gn(vn(r,this.mapOpts.annotation)));var n=mn(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new _n(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Ut?Ut.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(bn){var r=bn(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===yn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Cn=xn=function(e){function t(t){var r=e.call(this,t)||this;return r.type="comment",r}return zm(t,e),t}($r),xn.default=xn,En=Ir.isClean,In=Ir.my,On=Br,Tn=Cn,Nn=function(e){function t(){return e.apply(this,arguments)||this}zm(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t);!(n=i()).done;)for(var o,s=n.value,a=Jm(this.normalize(s,this.last));!(o=a()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Jm(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Jm(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Jm(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=qv(An(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Jm(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,u=Jm(e=e.nodes.slice(0));!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new On(e)]}else if(e.selector)e=[new Rn(e)];else if(e.name)e=[new Mn(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Tn(e)]}return e.map(function(e){return e[In]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[En]&&zv(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Jm(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Jm(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Um(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}($r),Nn.registerParse=function(e){An=e},Nn.registerRule=function(e){Rn=e},Nn.registerAtRule=function(e){Mn=e},Nn.registerRoot=function(e){Fn=e},Dn=Nn,Nn.default=Nn,Nn.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Mn.prototype):"rule"===e.type?Object.setPrototypeOf(e,Rn.prototype):"decl"===e.type?Object.setPrototypeOf(e,On.prototype):"comment"===e.type?Object.setPrototypeOf(e,Tn.prototype):"root"===e.type&&Object.setPrototypeOf(e,Fn.prototype),e[In]=!0,e.nodes&&e.nodes.forEach(function(e){Nn.rebuild(e)})},(jn=function(e){function t(t){var r=e.call(this,Bm({type:"document"},t))||this;return r.nodes||(r.nodes=[]),r}return zm(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Pn(new Ln,this,e).stringify()},t}(Dn)).registerLazyResult=function(e){Pn=e},jn.registerProcessor=function(e){Ln=e},$n=jn,jn.default=jn,Bn=Un=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Un.default=Un,qn=Bn,Vn=zn=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new qn(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Um(e,[{key:"content",get:function(){return this.css}}]),e}(),zn.default=zn,Wn="'".charCodeAt(0),Hn='"'.charCodeAt(0),Gn="\\".charCodeAt(0),Zn="/".charCodeAt(0),Yn="\n".charCodeAt(0),Jn=" ".charCodeAt(0),Kn="\f".charCodeAt(0),Xn="\t".charCodeAt(0),Qn="\r".charCodeAt(0),ei="[".charCodeAt(0),ti="]".charCodeAt(0),ri="(".charCodeAt(0),ni=")".charCodeAt(0),ii="{".charCodeAt(0),oi="}".charCodeAt(0),si=";".charCodeAt(0),ai="*".charCodeAt(0),ui=":".charCodeAt(0),ci="@".charCodeAt(0),li=/[\t\n\f\r "#'()/;[\\\]{}]/g,hi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,pi=/.[\r\n"'(/\\]/,fi=/[\da-f]/i,di=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Yn:case Jn:case Xn:case Qn:case Kn:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Jn||r===Yn||r===Xn||r===Qn||r===Kn);h=["space",p.slice(g,n)],g=n-1;break;case ei:case ti:case ii:case oi:case ui:case si:case ni:var b=String.fromCharCode(r);h=[b,b,g];break;case ri:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&l!==Wn&&l!==Hn&&l!==Jn&&l!==Yn&&l!==Xn&&l!==Kn&&l!==Qn){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(u=n;p.charCodeAt(u-1)===Gn;)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||pi.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Wn:case Hn:i=r===Wn?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(u=n;p.charCodeAt(u-1)===Gn;)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case ci:li.lastIndex=g+1,li.test(p),n=0===li.lastIndex?p.length-1:li.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Gn:for(n=g,s=!0;p.charCodeAt(n+1)===Gn;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Zn&&r!==Jn&&r!==Yn&&r!==Xn&&r!==Qn&&r!==Kn&&(n+=1,fi.test(p.charAt(n)))){for(;fi.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Jn&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Zn&&p.charCodeAt(g+1)===ai?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(hi.lastIndex=g+1,hi.test(p),n=0===hi.lastIndex?p.length-1:hi.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},mi=function(e){function t(t){var r=e.call(this,t)||this;return r.type="atrule",r}zm(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(gi=Dn),vi=mi,mi.default=mi,gi.registerAtRule(mi),(wi=function(e){function t(t){var r=e.call(this,t)||this;return r.type="root",r.nodes||(r.nodes=[]),r}zm(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Jm(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new bi(new _i,this,e).stringify()},t}(yi=Dn)).registerLazyResult=function(e){bi=e},wi.registerProcessor=function(e){_i=e},ki=wi,wi.default=wi,yi.registerRoot(wi),Si={comma:function(e){return Si.split(e,[","],!0)},space:function(e){return Si.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Jm(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},xi=Si,Si.default=Si,Ei=xi,Ii=function(e){function t(t){var r=e.call(this,t)||this;return r.type="rule",r.nodes||(r.nodes=[]),r}return zm(t,e),Um(t,[{key:"selectors",get:function(){return Ei.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Ci=Dn),Oi=Ii,Ii.default=Ii,Ci.registerRule(Ii),Ti=Br,Ai=di,Ri=Cn,Mi=vi,Fi=ki,Ni=Oi,Di={empty:!0,space:!0},Pi=function(){function e(e){this.input=e,this.root=new Fi,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Mi;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Jm(e.entries());!(i=s()).done;){var a=i.value,u=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Ri;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Ai(this.input)},t.decl=function(e,t){var r=new Ti;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ni;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Di[a]||Di[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new Ni;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Li=Dn,ji=Pi,$i=pn,Ui=Vv,Vv.default=Vv,Li.registerParse(Vv),Bi=Ir.isClean,qi=Ir.my,zi=Sn,Vi=Mr,Wi=Dn,Hi=$n,Gi=Vn,Zi=Ui,Yi=ki,Ji={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ki={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Xi={Once:!0,postcssPlugin:!0,prepare:!0},Qi=0,eo={},(to=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Gm(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Vm(r,e)||Vm(r,Gi))i=Zv(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Zi;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[qi]&&Wi.rebuild(i)}else i=Zv(r);this.result=new Gi(t,i,n),this.helpers=Bm({},eo,{postcss:eo,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.prepare?Bm({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Jm(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Gm(i)))for(var o in i){if(!Ki[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Xi[o])if("object"===Gm(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return jm(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return Km(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Wv(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Bi])return[3,14];o[Bi]=!0,s=[Gv(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Wv(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Km(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Jm(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Xm(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Gm(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Wv(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Vi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new zi(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Jm(this.plugins);!(e=t()).done;){var r=e.value;if(Wv(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Bi];)n[Bi]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Jm(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Jm(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Wv(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[Bi])return a[Bi]=!0,void e.push(Gv(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,l===Qi)return void(r.nodes&&r.nodes.length&&(r[Bi]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Bi]=!0;for(var r,n=Jm(Hv(e));!(r=n()).done;){var i=r.value;if(i===Qi)e.nodes&&e.each(function(e){e[Bi]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Um(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}()).registerPostcss=function(e){eo=e},ro=to,to.default=to,Yi.registerLazyResult(to),Hi.registerLazyResult(to),no=Sn,io=Mr,oo=Ui,so=Vn,uo=ao=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=io;this.result=new so(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new no(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),u=a[0],c=a[1];u&&(this.result.css=u),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Um(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=oo;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),ao.default=ao,co=uo,lo=ro,ho=$n,po=ki,go=fo=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Jm(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Gm(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Gm(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Gm(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new lo(this,e,t):new co(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fo.default=fo,po.registerProcessor(fo),ho.registerProcessor(fo),mo=Br,vo=Jr,yo=Cn,bo=vi,_o=pn,wo=ki,ko=Oi,So=Yv,Yv.default=Yv,xo=Er,Co=Br,Eo=ro,Io=Dn,Oo=go,To=Mr,Ao=So,Ro=$n,Mo=Bn,Fo=Cn,No=vi,Do=Vn,Po=pn,Lo=Ui,jo=xi,$o=Oi,Uo=ki,Bo=$r,Jv.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Oo).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Jv([i(r)]).process(e,t)},i},Jv.stringify=To,Jv.parse=Lo,Jv.fromJSON=Ao,Jv.list=jo,Jv.comment=function(e){return new Fo(e)},Jv.atRule=function(e){return new No(e)},Jv.decl=function(e){return new Co(e)},Jv.rule=function(e){return new $o(e)},Jv.root=function(e){return new Uo(e)},Jv.document=function(e){return new Ro(e)},Jv.CssSyntaxError=xo,Jv.Declaration=Co,Jv.Container=Io,Jv.Processor=Oo,Jv.Document=Ro,Jv.Comment=Fo,Jv.Warning=Mo,Jv.AtRule=No,Jv.Result=Do,Jv.Input=Po,Jv.Rule=$o,Jv.Root=Uo,Jv.Node=Bo,Eo.registerPostcss(Jv),qo=Jv,Jv.default=Jv,(zo=jv(qo)).stringify,zo.fromJSON,zo.plugin,zo.parse,zo.list,zo.document,zo.comment,zo.atRule,zo.rule,zo.decl,zo.root,zo.CssSyntaxError,zo.Declaration,zo.Container,zo.Processor,zo.Document,zo.Comment,zo.Warning,zo.AtRule,zo.Result,zo.Input,zo.Rule,zo.Root,zo.Node,Vo=Object.defineProperty,Wo=function(e,t,r){return t in e?Vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ho=function(e,t,r){return Wo(e,"symbol"!==(void 0===t?"undefined":Gm(t))?t+"":t,r)},Go={exports:{}},Zo=String,Yo=function(){return{isColorSupported:!1,reset:Zo,bold:Zo,dim:Zo,italic:Zo,underline:Zo,inverse:Zo,hidden:Zo,strikethrough:Zo,black:Zo,red:Zo,green:Zo,yellow:Zo,blue:Zo,magenta:Zo,cyan:Zo,white:Zo,gray:Zo,bgBlack:Zo,bgRed:Zo,bgGreen:Zo,bgYellow:Zo,bgBlue:Zo,bgMagenta:Zo,bgCyan:Zo,bgWhite:Zo}},Go.exports=Yo(),Go.exports.createColors=Yo,Jo=Go.exports,Ko=Xv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Xo=Jo,Qo=Ko,es=function(e){function t(r,n,i,o,s,a){var u=e.call(this,r)||this;return u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}zm(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Xo.isColorSupported),Qo&&e&&(r=Qo(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=Xo.createColors(!0),l=c.bold,h=c.gray,p=c.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-u)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Zm(Error)),ts=es,es.default=es,(rs={}).isClean=Symbol("isClean"),rs.my=Symbol("my"),ns={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},is=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return ns[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=ns[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),os=is,is.default=is,ss=os,as=Qv,Qv.default=Qv,us=rs.isClean,cs=rs.my,ls=ts,hs=os,ps=as,fs=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[us]=!1,this[cs]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Jm(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ey(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ls(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[us]){this[us]=!1;for(var e=this;e=e.parent;)e[us]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new hs).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Jm(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":Gm(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ps),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Um(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ds=fs,fs.default=fs,ms=gs=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=Bm({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return zm(t,e),Um(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ds),gs.default=gs,vs={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}},ys=Ko.SourceMapConsumer,bs=Ko.SourceMapGenerator,_s=Ko.existsSync,ws=Ko.readFileSync,ks=Ko.dirname,Ss=Ko.join,xs=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ks(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ys(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Ut?Ut.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Gm(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ks(e),_s(e))return this.mapFile=e,ws(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(Vm(t,ys))return bs.fromSourceMap(t).toString();if(Vm(t,bs))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ss(ks(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Cs=xs,xs.default=xs,Es=Ko.SourceMapConsumer,Is=Ko.SourceMapGenerator,Os=Ko.fileURLToPath,Ts=Ko.pathToFileURL,As=Ko.isAbsolute,Rs=Ko.resolve,Ms=vs.nanoid,Fs=Ko,Ns=ts,Ds=Cs,Ps=Symbol("fromOffsetCache"),Ls=Boolean(Es&&Is),js=Boolean(Rs&&As),Us=$s=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Gm(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!js||/^\w+:\/\//.test(t.from)||As(t.from)?this.file=t.from:this.file=Rs(t.from)),js&&Ls){var r=new Ds(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ms(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Gm(t))){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Ns(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Ns(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ts&&(i.input.url=Ts(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ps])t=this[Ps];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ps]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Rs(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=As(a.source)?Ts(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ts(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Os)throw new Error("file: protocol is not available in this PostCSS build");u.file=Os(o)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=Bm({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Um(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),$s.default=$s,Fs&&Fs.registerInput&&Fs.registerInput($s),Bs=Ko.SourceMapConsumer,qs=Ko.SourceMapGenerator,zs=Ko.dirname,Vs=Ko.relative,Ws=Ko.resolve,Hs=Ko.sep,Gs=Ko.pathToFileURL,Zs=Us,Ys=Boolean(Bs&&qs),Js=Boolean(zs&&Ws&&Vs&&Hs),Ks=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Jm(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||zs(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Bs(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Js&&Ys&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qs.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qs({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new qs({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"!==u.type&&("atrule"!==u.type||u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?zs(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=zs(Ws(r,this.mapOpts.annotation)));var n=Vs(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Zs(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Ut?Ut.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Gs){var r=Gs(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Hs&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Qs=Xs=function(e){function t(t){var r=e.call(this,t)||this;return r.type="comment",r}return zm(t,e),t}(ds),Xs.default=Xs,ea=rs.isClean,ta=rs.my,ra=ms,na=Qs,ua=function(e){function t(){return e.apply(this,arguments)||this}zm(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t);!(n=i()).done;)for(var o,s=n.value,a=Jm(this.normalize(s,this.last));!(o=a()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Jm(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Jm(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Jm(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=ty(ia(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Jm(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,u=Jm(e=e.nodes.slice(0));!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ra(e)]}else if(e.selector)e=[new oa(e)];else if(e.name)e=[new sa(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new na(e)]}return e.map(function(e){return e[ta]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ea]&&ry(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Jm(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Jm(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Um(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(ds),ua.registerParse=function(e){ia=e},ua.registerRule=function(e){oa=e},ua.registerAtRule=function(e){sa=e},ua.registerRoot=function(e){aa=e},ca=ua,ua.default=ua,ua.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sa.prototype):"rule"===e.type?Object.setPrototypeOf(e,oa.prototype):"decl"===e.type?Object.setPrototypeOf(e,ra.prototype):"comment"===e.type?Object.setPrototypeOf(e,na.prototype):"root"===e.type&&Object.setPrototypeOf(e,aa.prototype),e[ta]=!0,e.nodes&&e.nodes.forEach(function(e){ua.rebuild(e)})},(pa=function(e){function t(t){var r=e.call(this,Bm({type:"document"},t))||this;return r.nodes||(r.nodes=[]),r}return zm(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new la(new ha,this,e).stringify()},t}(ca)).registerLazyResult=function(e){la=e},pa.registerProcessor=function(e){ha=e},fa=pa,pa.default=pa,ga=da=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),da.default=da,ma=ga,ya=va=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new ma(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Um(e,[{key:"content",get:function(){return this.css}}]),e}(),va.default=va,ba="'".charCodeAt(0),_a='"'.charCodeAt(0),wa="\\".charCodeAt(0),ka="/".charCodeAt(0),Sa="\n".charCodeAt(0),xa=" ".charCodeAt(0),Ca="\f".charCodeAt(0),Ea="\t".charCodeAt(0),Ia="\r".charCodeAt(0),Oa="[".charCodeAt(0),Ta="]".charCodeAt(0),Aa="(".charCodeAt(0),Ra=")".charCodeAt(0),Ma="{".charCodeAt(0),Fa="}".charCodeAt(0),Na=";".charCodeAt(0),Da="*".charCodeAt(0),Pa=":".charCodeAt(0),La="@".charCodeAt(0),ja=/[\t\n\f\r "#'()/;[\\\]{}]/g,$a=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ua=/.[\r\n"'(/\\]/,Ba=/[\da-f]/i,qa=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Sa:case xa:case Ea:case Ia:case Ca:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===xa||r===Sa||r===Ea||r===Ia||r===Ca);h=["space",p.slice(g,n)],g=n-1;break;case Oa:case Ta:case Ma:case Fa:case Pa:case Na:case Ra:var b=String.fromCharCode(r);h=[b,b,g];break;case Aa:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&l!==ba&&l!==_a&&l!==xa&&l!==Sa&&l!==Ea&&l!==Ca&&l!==Ia){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(u=n;p.charCodeAt(u-1)===wa;)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Ua.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case ba:case _a:i=r===ba?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(u=n;p.charCodeAt(u-1)===wa;)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case La:ja.lastIndex=g+1,ja.test(p),n=0===ja.lastIndex?p.length-1:ja.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case wa:for(n=g,s=!0;p.charCodeAt(n+1)===wa;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==ka&&r!==xa&&r!==Sa&&r!==Ea&&r!==Ia&&r!==Ca&&(n+=1,Ba.test(p.charAt(n)))){for(;Ba.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===xa&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===ka&&p.charCodeAt(g+1)===Da?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):($a.lastIndex=g+1,$a.test(p),n=0===$a.lastIndex?p.length-1:$a.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Va=function(e){function t(t){var r=e.call(this,t)||this;return r.type="atrule",r}zm(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(za=ca),Wa=Va,Va.default=Va,za.registerAtRule(Va),(Ya=function(e){function t(t){var r=e.call(this,t)||this;return r.type="root",r.nodes||(r.nodes=[]),r}zm(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Jm(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Ga(new Za,this,e).stringify()},t}(Ha=ca)).registerLazyResult=function(e){Ga=e},Ya.registerProcessor=function(e){Za=e},Ja=Ya,Ya.default=Ya,Ha.registerRoot(Ya),Ka={comma:function(e){return Ka.split(e,[","],!0)},space:function(e){return Ka.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Jm(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Xa=Ka,Ka.default=Ka,eu=Xa,tu=function(e){function t(t){var r=e.call(this,t)||this;return r.type="rule",r.nodes||(r.nodes=[]),r}return zm(t,e),Um(t,[{key:"selectors",get:function(){return eu.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Qa=ca),ru=tu,tu.default=tu,Qa.registerRule(tu),nu=ms,iu=qa,ou=Qs,su=Wa,au=Ja,uu=ru,cu={empty:!0,space:!0},lu=function(){function e(e){this.input=e,this.root=new au,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new su;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Jm(e.entries());!(i=s()).done;){var a=i.value,u=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new ou;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=iu(this.input)},t.decl=function(e,t){var r=new nu;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new uu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",cu[a]||cu[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new uu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),hu=ca,pu=lu,fu=Us,du=ny,ny.default=ny,hu.registerParse(ny),gu=rs.isClean,mu=rs.my,vu=Ks,yu=as,bu=ca,_u=fa,wu=ya,ku=du,Su=Ja,xu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cu={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Eu={Once:!0,postcssPlugin:!0,prepare:!0},Iu=0,Ou={},(Tu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Gm(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Vm(r,e)||Vm(r,wu))i=ay(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=ku;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[mu]&&bu.rebuild(i)}else i=ay(r);this.result=new wu(t,i,n),this.helpers=Bm({},Ou,{postcss:Ou,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.prepare?Bm({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Jm(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Gm(i)))for(var o in i){if(!Cu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Eu[o])if("object"===Gm(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return jm(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return Km(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!iy(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[gu])return[3,14];o[gu]=!0,s=[sy(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!iy(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Km(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Jm(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Xm(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Gm(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return iy(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=yu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new vu(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Jm(this.plugins);!(e=t()).done;){var r=e.value;if(iy(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[gu];)n[gu]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Jm(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Jm(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(iy(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[gu])return a[gu]=!0,void e.push(sy(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,l===Iu)return void(r.nodes&&r.nodes.length&&(r[gu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[gu]=!0;for(var r,n=Jm(oy(e));!(r=n()).done;){var i=r.value;if(i===Iu)e.nodes&&e.each(function(e){e[gu]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Um(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}()).registerPostcss=function(e){Ou=e},Au=Tu,Tu.default=Tu,Su.registerLazyResult(Tu),_u.registerLazyResult(Tu),Ru=Ks,Mu=as,Fu=du,Nu=ya,Pu=Du=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Mu;this.result=new Nu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Ru(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),u=a[0],c=a[1];u&&(this.result.css=u),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Um(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Fu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Du.default=Du,Lu=Pu,ju=Au,$u=fa,Uu=Ja,qu=Bu=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Jm(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Gm(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Gm(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Gm(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new ju(this,e,t):new Lu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Bu.default=Bu,Uu.registerProcessor(Bu),$u.registerProcessor(Bu),zu=ms,Vu=Cs,Wu=Qs,Hu=Wa,Gu=Us,Zu=Ja,Yu=ru,Ju=uy,uy.default=uy,Ku=ts,Xu=ms,Qu=Au,ec=ca,tc=qu,rc=as,nc=Ju,ic=fa,oc=ga,sc=Qs,ac=Wa,uc=ya,cc=Us,lc=du,hc=Xa,pc=ru,fc=Ja,dc=ds,cy.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new tc).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return cy([i(r)]).process(e,t)},i},cy.stringify=rc,cy.parse=lc,cy.fromJSON=nc,cy.list=hc,cy.comment=function(e){return new sc(e)},cy.atRule=function(e){return new ac(e)},cy.decl=function(e){return new Xu(e)},cy.rule=function(e){return new pc(e)},cy.root=function(e){return new fc(e)},cy.document=function(e){return new ic(e)},cy.CssSyntaxError=Ku,cy.Declaration=Xu,cy.Container=ec,cy.Processor=tc,cy.Document=ic,cy.Comment=sc,cy.Warning=oc,cy.AtRule=ac,cy.Result=uc,cy.Input=cc,cy.Rule=pc,cy.Root=fc,cy.Node=dc,Qu.registerPostcss(cy),gc=cy,cy.default=cy,(mc=Kv(gc)).stringify,mc.fromJSON,mc.plugin,mc.parse,mc.list,mc.document,mc.comment,mc.atRule,mc.rule,mc.decl,mc.root,mc.CssSyntaxError,mc.Declaration,mc.Container,mc.Processor,mc.Document,mc.Comment,mc.Warning,mc.AtRule,mc.Result,mc.Input,mc.Rule,mc.Root,mc.Node,vc=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Ho(this,"parentElement",null),Ho(this,"parentNode",null),Ho(this,"ownerDocument"),Ho(this,"firstChild",null),Ho(this,"lastChild",null),Ho(this,"previousSibling",null),Ho(this,"nextSibling",null),Ho(this,"ELEMENT_NODE",1),Ho(this,"TEXT_NODE",3),Ho(this,"nodeType"),Ho(this,"nodeName"),Ho(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!Vm(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Um(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),yc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},bc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_c={},wc=function(){return!!globalThis.Zone},kc={},Sc={},xc={childNodes:fy,parentNode:dy,parentElement:gy,textContent:my,contains:vy,getRootNode:yy,host:by,styleSheets:_y,shadowRoot:wy,querySelector:ky,querySelectorAll:Sy,mutationObserver:xy,patch:Cy},Cc="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Ec={map:{},getId:function(){return console.error(Cc),-1},getNode:function(){return console.error(Cc),null},removeNodeFromMap:function(){console.error(Cc)},has:function(){return console.error(Cc),!1},reset:function(){console.error(Cc)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ec=new Proxy(Ec,{get:function(e,t,r){return"map"===t&&console.error(Cc),Reflect.get(e,t,r)}})),Ic=Date.now,/[1-9][0-9]{12}/.test(Date.now().toString())||(Ic=function(){return(new Date).getTime()}),Oc=function(){function e(){Wt(this,"id",1),Wt(this,"styleIDMap",new WeakMap),Wt(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}(),Tc=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Tc||{}),Ac=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Ac||{}),Rc=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Rc||{}),Mc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Mc||{}),Fc=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Fc||{}),Nc=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Nc||{}),Dc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Dc||{}),Pc=function(){function e(){Wt(this,"length",0),Wt(this,"head",null),Wt(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&zy(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&zy(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Lc=function(e,t){return e+"@"+t},jc=function(){function e(){var e=this;Wt(this,"frozen",!1),Wt(this,"locked",!1),Wt(this,"texts",[]),Wt(this,"attributes",[]),Wt(this,"attributeMap",new WeakMap),Wt(this,"removes",[]),Wt(this,"mapRemoves",[]),Wt(this,"movedMap",{}),Wt(this,"addedSet",new Set),Wt(this,"movedSet",new Set),Wt(this,"droppedSet",new Set),Wt(this,"removesSubTreeCache",new Set),Wt(this,"mutationCb"),Wt(this,"blockClass"),Wt(this,"blockSelector"),Wt(this,"maskTextClass"),Wt(this,"maskTextSelector"),Wt(this,"inlineStylesheet"),Wt(this,"maskInputOptions"),Wt(this,"maskTextFn"),Wt(this,"maskInputFn"),Wt(this,"keepIframeSrcFn"),Wt(this,"recordCanvas"),Wt(this,"inlineImages"),Wt(this,"slimDOMOptions"),Wt(this,"dataURLOptions"),Wt(this,"doc"),Wt(this,"mirror"),Wt(this,"iframeManager"),Wt(this,"stylesheetManager"),Wt(this,"shadowDomManager"),Wt(this,"canvasManager"),Wt(this,"processedNodeManager"),Wt(this,"unattachedDoc"),Wt(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Wt(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new Pc,i=function(t){for(var r=t,n=pr;n===pr;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=xc.parentNode(o);if(s&&qy(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var u=s.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&e.addedSet.has(s)&&(a=!0)}var c=mv(s)?e.mirror.getId(Uy(o)):e.mirror.getId(s),l=i(o);if(-1===c||-1===l)return n.addNode(o);var h=Lv(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){Ly(t,e.mirror)&&e.iframeManager.addIframe(t),jy(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),$y(o)&&e.shadowDomManager.addShadowRoot(xc.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:c,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=Jm(e.movedSet);!(s=a()).done;){var u=s.value;Wy(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(xc.parentNode(u))||o(u)}for(var c,l=Jm(e.addedSet);!(c=l()).done;){var h=c.value;Hy(e.droppedSet,h)||Wy(e.removesSubTreeCache,h,e.mirror)?Hy(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}for(var p=null;n.length;){var f=null;if(p){var d=e.mirror.getId(xc.parentNode(p.value)),g=i(p.value);-1!==d&&-1!==g&&(f=p)}if(!f)for(var m=n.tail;m;){var v=m;if(m=m.previous,v){var y=e.mirror.getId(xc.parentNode(v.value));if(-1===i(v.value))continue;if(-1!==y){f=v;break}var b=v.value,_=xc.parentNode(b);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=xc.host(_);if(-1!==e.mirror.getId(w)){f=v;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=xc.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),Wt(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(xc.childNodes(t),function(e){return xc.textContent(e)||""}).join("");r.attributes.value=_v({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:kv(t),value:n,maskInputFn:e.maskInputFn})}),Wt(this,"processMutation",function(t){if(!Ny(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=xc.textContent(t.target);Fy(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:Nv(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,My(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=kv(n);o=_v({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Fy(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Mv(n.tagName,i))if(a.attributes[i]=Rv(e.doc,wv(n.tagName),wv(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var u=e.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(var c,l=Jm(Array.from(n.style));!(c=l()).done;){var h=c.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==u.style.getPropertyValue(h)||f!==u.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=Jm(Array.from(u.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Fy(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=mv(t.target)?e.mirror.getId(xc.host(t.target)):e.mirror.getId(t.target);Fy(t.target,e.blockClass,e.blockSelector,!1)||Ny(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Vy(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Dy(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Lc(n,i)]?Vy(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!mv(t.target)||!vv(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),xc.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Wt(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(Ny(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Lc(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Fy(t,e.blockClass,e.blockSelector,!1)||(xc.childNodes(t).forEach(function(t){return e.genAdds(t)}),$y(t)&&xc.childNodes(xc.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}(),Uc=function(e){if(!$c)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if($c&&!0===$c(i))return;throw i}}},Bc=[],qc=["INPUT","TEXTAREA","SELECT"],zc=new WeakMap,Vc=function(){function e(e){Wt(this,"iframeIdToRemoteIdMap",new WeakMap),Wt(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Wc=function(){function e(e){Wt(this,"iframes",new WeakMap),Wt(this,"crossOriginIframeMap",new WeakMap),Wt(this,"crossOriginIframeMirror",new Vc(Iv)),Wt(this,"crossOriginIframeStyleMirror"),Wt(this,"crossOriginIframeRootIdMap",new WeakMap),Wt(this,"mirror"),Wt(this,"mutationCb"),Wt(this,"wrappedEmit"),Wt(this,"loadListener"),Wt(this,"stylesheetManager"),Wt(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Vc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Tc.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Tc.IncrementalSnapshot,data:{source:Ac.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Tc.Meta:case Tc.Load:case Tc.DomContentLoaded:return!1;case Tc.Plugin:return t;case Tc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Tc.IncrementalSnapshot:switch(t.data.source){case Ac.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Ac.Drag:case Ac.TouchMove:case Ac.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Ac.ViewportResize:return!1;case Ac.MediaInteraction:case Ac.MouseInteraction:case Ac.Scroll:case Ac.CanvasMutation:case Ac.Input:return this.replaceIds(t.data,e,["id"]),t;case Ac.StyleSheetRule:case Ac.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ac.Font:return t;case Ac.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Ac.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Jm(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Dc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Hc=function(){function e(e){Wt(this,"shadowDoms",new WeakSet),Wt(this,"mutationCb"),Wt(this,"scrollCb"),Wt(this,"bypassOptions"),Wt(this,"mirror"),Wt(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(vv(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Yy(Bm({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Ky(Bm({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(xc.host(e))),r.restoreHandlers.push(eb({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(Cy(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=xc.shadowRoot(this);return o&&qy(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Yc=0;Yc<64;Yc++)Zc[Gc.charCodeAt(Yc)]=Yc;Jc=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Gc[r[t]>>2],i+=Gc[(3&r[t])<<4|r[t+1]>>4],i+=Gc[(15&r[t+1])<<2|r[t+2]>>6],i+=Gc[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},Kc=new Map,Xc=function(e,t,r){if(e&&(el(e,t)||"object"===(void 0===e?"undefined":Gm(e)))){var n=function(e,t){var r=Kc.get(e);return r||(r=new Map,Kc.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}},Qc=function(e,t,r){return e.map(function(e){return ib(e,t,r)})},el=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return Vm(e,t[r])}))},tl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",rl=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},nl="undefined"!=typeof window&&window.Blob&&new Blob([rl(tl)],{type:"text/javascript;charset=utf-8"}),il=function(){function e(e){var t=this;Wt(this,"pendingCanvasMutations",new Map),Wt(this,"rafStamps",{latestId:0,invokeId:null}),Wt(this,"mirror"),Wt(this,"mutationCb"),Wt(this,"resetObservers"),Wt(this,"frozen",!1),Wt(this,"locked",!1),Wt(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,u=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:u})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=ob(t,r,n,!0),a=new Map,u=new ab;u.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,u=r.height;o.mutationCb({id:t,type:Fc["2D"],commands:[{property:"clearRect",args:[0,0,s,u]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var c,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)c=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){Fy(e,r,n,!0)||s.push(e)}),s).forEach(jm(function(e){var t,r,n,o;return Km(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),c=requestAnimationFrame(p)}};c=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(c)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=ob(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Cy(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return Fy(this.canvas,r,n,!0)||setTimeout(function(){var r=Qc(u,t,s);e(s.canvas,{type:Fc["2D"],property:o,args:r})},0),i.apply(this,u)}});s.push(a)}catch(Lf){var u=Oy(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Fc["2D"],property:o,args:[t],setter:!0})}});s.push(u)}},s=[],a=Jm(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(sb(t.WebGLRenderingContext.prototype,Fc.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(sb(t.WebGL2RenderingContext.prototype,Fc.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,Wm(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),ol=function(){function e(e){Wt(this,"trackedLinkElements",new WeakSet),Wt(this,"mutationCb"),Wt(this,"adoptedStyleSheetCb"),Wt(this,"styleMirror",new Oc),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:bv(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Jm(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),sl=function(){function e(){Wt(this,"nodeMap",new WeakMap),Wt(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),ll=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(hl=document.createElement("iframe"),document.body.appendChild(hl),Array.from=(null==(Ht=hl.contentWindow)?void 0:Ht.Array.from)||Array.from,document.body.removeChild(hl))}catch(s){console.debug("Unable to override Array.from",s)}var r;pl=new ir,ub.addCustomEvent=function(e,t){if(!ll)throw new Error("please add custom event after start recording");al({type:Tc.Custom,data:{tag:e,payload:t}})},ub.freezePage=function(){Bc.forEach(function(e){return e.freeze()})},ub.takeFullSnapshot=function(e){if(!ll)throw new Error("please take full snapshot after start recording");ul(e)},ub.mirror=pl,(r=fl||(fl={}))[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped",ub.addCustomEvent,ub.freezePage,ub.takeFullSnapshot,dl=Bt.setImmediate,yl=Object.prototype.toString,bl=void 0!==dl?function(e){return dl(e)}:setTimeout;try{Object.defineProperty({},"x",{}),gl=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(s){gl=function(e,t,r){return e[t]=r,e}}vl=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=ml=void 0;r;)r.fn.call(r.self),r=r.next}}}(),_l=gl({},"constructor",yb,!1),yb.prototype=_l,gl(_l,"__NPO__",0,!1),gl(yb,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),gl(yb,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),gl(yb,"all",function(e){var t=this;return"[object Array]"!==yl.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;gb(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),gl(yb,"race",function(e){var t=this;return"[object Array]"!==yl.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");gb(t,e,function(e,t){r(t)},n)})}),wl="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:yb,kl={DEBUG:!1,LIB_VERSION:"2.71.1"},Sl=864e5,xl=8e3,Cl=Array.prototype,El=Function.prototype,Il=Object.prototype,Ol=Cl.slice,Tl=Il.toString,Al=Il.hasOwnProperty,Rl=Bt.console,Ml=Bt.navigator,Fl=Bt.document,Nl=Bt.opera,Dl=Bt.screen,Pl=Ml.userAgent,Ll=El.bind,jl=Cl.forEach,$l=Cl.indexOf,Ul=Cl.map,Bl=Array.isArray,ql={},Vl={log:function(){if(kl.DEBUG&&!zl.isUndefined(Rl)&&Rl)try{Rl.log.apply(Rl,arguments)}catch(s){zl.each(arguments,function(e){Rl.log(e)})}},warn:function(){if(kl.DEBUG&&!zl.isUndefined(Rl)&&Rl){var e=["Mixpanel warning:"].concat(zl.toArray(arguments));try{Rl.warn.apply(Rl,e)}catch(s){zl.each(e,function(e){Rl.warn(e)})}}},error:function(){if(kl.DEBUG&&!zl.isUndefined(Rl)&&Rl){var e=["Mixpanel error:"].concat(zl.toArray(arguments));try{Rl.error.apply(Rl,e)}catch(s){zl.each(e,function(e){Rl.error(e)})}}},critical:function(){if(!zl.isUndefined(Rl)&&Rl){var e=["Mixpanel error:"].concat(zl.toArray(arguments));try{Rl.error.apply(Rl,e)}catch(s){zl.each(e,function(e){Rl.error(e)})}}}},Wl=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Vl,arguments)}},Hl=function(e){return{log:Wl(Vl.log,e),error:Wl(Vl.error,e),critical:Wl(Vl.critical,e)}},Gl=function(e){return function(){try{return e.apply(this,arguments)}catch(Lf){Vl.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),kl.DEBUG&&Vl.critical(Lf)}}},Zl=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Gl(t[r]))},(zl={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}).bind=function(e,t){var r,n;if(Ll&&e.bind===Ll)return Ll.apply(e,Ol.call(arguments,1));if(!zl.isFunction(e))throw new TypeError;return r=Ol.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Ol.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Ol.call(arguments)));return Object(s)===s?s:o},n},zl.each=function(e,t,r){if(null!=e)if(jl&&e.forEach===jl)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===ql)return}else for(var o in e)if(Al.call(e,o)&&t.call(r,e[o],o,e)===ql)return},zl.extend=function(e){return zl.each(Ol.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},zl.isArray=Bl||function(e){return"[object Array]"===Tl.call(e)},zl.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(od){return!1}},zl.isArguments=function(e){return!(!e||!Al.call(e,"callee"))},zl.toArray=function(e){return e?e.toArray?e.toArray():zl.isArray(e)||zl.isArguments(e)?Ol.call(e):zl.values(e):[]},zl.map=function(e,t,r){if(Ul&&e.map===Ul)return e.map(t,r);var n=[];return zl.each(e,function(e){n.push(t.call(r,e))}),n},zl.keys=function(e){var t=[];return null===e||zl.each(e,function(e,r){t[t.length]=r}),t},zl.values=function(e){var t=[];return null===e||zl.each(e,function(e){t[t.length]=e}),t},zl.include=function(e,t){var r=!1;return null===e?r:$l&&e.indexOf===$l?-1!=e.indexOf(t):(zl.each(e,function(e){if(r||(r=e===t))return ql}),r)},zl.includes=function(e,t){return-1!==e.indexOf(t)},zl.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},zl.isObject=function(e){return e===Object(e)&&!zl.isArray(e)},zl.isEmptyObject=function(e){if(zl.isObject(e)){for(var t in e)if(Al.call(e,t))return!1;return!0}return!1},zl.isUndefined=function(e){return void 0===e},zl.isString=function(e){return"[object String]"==Tl.call(e)},zl.isDate=function(e){return"[object Date]"==Tl.call(e)},zl.isNumber=function(e){return"[object Number]"==Tl.call(e)},zl.isElement=function(e){return!(!e||1!==e.nodeType)},zl.encodeDates=function(e){return zl.each(e,function(t,r){zl.isDate(t)?e[r]=zl.formatDate(t):zl.isObject(t)&&(e[r]=zl.encodeDates(t))}),e},zl.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},zl.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},zl.strip_empty_properties=function(e){var t={};return zl.each(e,function(e,r){zl.isString(e)&&e.length>0&&(t[r]=e)}),t},zl.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):zl.isArray(e)?(r=[],zl.each(e,function(e){r.push(zl.truncate(e,t))})):zl.isObject(e)?(r={},zl.each(e,function(e,n){r[n]=zl.truncate(e,t)})):r=e,r},zl.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",u=0,c=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===Tl.apply(h)){for(u=h.length,o=0;o<u;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+c+"]":"["+l.join(",")+"]",i=c,a}for(s in h)Al.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+c+"}":"{"+l.join(",")+"}",i=c,a}};return r("",{"":e})},zl.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(e=+r,isFinite(e))return e;o("Bad number")},u=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(s(),16),isFinite(e));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else{if("string"!=typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)s()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(s("{"),c(),"}"===t)return s("}"),r;for(;t;){if(e=u(),c(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return s("}"),r;s(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(s("["),c(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return s("]"),e;s(","),c()}}o("Bad array")}();case'"':return u();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var s;return r=i,e=0,t=" ",s=n(),c(),t&&o("Syntax error"),s}}(),zl.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,c="",l=[];if(!e)return e;e=zl.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[u++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(c=l.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},zl.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},zl.UUID=function(){try{return Bt.crypto.randomUUID()}catch(s){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",zl.map(e,function(e){return e.toString(16)}).join("")}},Yl=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"],zl.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Yl.length;t++)if(-1!==e.indexOf(Yl[t]))return!0;return!1},zl.HTTPBuildQuery=function(e,t){var r,n,i=[];return zl.isUndefined(t)&&(t="&"),zl.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},zl.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(s){Vl.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},zl.cookie={get:function(e){for(var t=e+"=",r=Fl.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=zl.JSONDecode(zl.cookie.get(e))||{}}catch(s){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=ch(Fl.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),Fl.cookie=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=ch(Fl.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c;return Fl.cookie=p,p},remove:function(e,t,r){zl.cookie.set(e,"",-1,t,!1,!1,r)}},Jl=function(e){var t=!0;try{var r="__mplss_"+oh(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(s){t=!1}return t},Kl=null,Xl=function(e,t){return null===Kl||t?Kl=Jl(e||Bt.localStorage):Kl},Ql=null,eh=function(e,t){return null===Ql||t?Ql=Jl(e||Bt.sessionStorage):Ql},zl.localStorage=bb(Bt.localStorage,"localStorage",Xl),zl.sessionStorage=bb(Bt.sessionStorage,"sessionStorage",eh),zl.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(Bt.event)){var o,s,a=!0;return zl.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else Vl.error("No valid element provided to register_event")}}(),th=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$'),zl.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Fl.getElementsByTagName)return[];var n,i,o,s,a,u,c,l,h,p,f=t.split(" "),d=[Fl];for(u=0;u<f.length;u++)if((n=f[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=Fl.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,c=0;c<d.length;c++)for(h="*"==o?e(d[c]):d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,c=0;c<s.length;c++)s[c].className&&zl.isString(s[c].className)&&r(s[c],v)&&(d[p++]=s[c])}else{var y=n.match(th);if(y){o=y[1];var b,_=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,c=0;c<d.length;c++)for(h="*"==o?e(d[c]):d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":b=function(e){return e.getAttribute(_)==k};break;case"~":b=function(e){return e.getAttribute(_).match(new RegExp("\\b"+k+"\\b"))};break;case"|":b=function(e){return e.getAttribute(_).match(new RegExp("^"+k+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(_).indexOf(k)};break;case"$":b=function(e){return e.getAttribute(_).lastIndexOf(k)==e.getAttribute(_).length-k.length};break;case"*":b=function(e){return e.getAttribute(_).indexOf(k)>-1};break;default:b=function(e){return e.getAttribute(_)}}for(d=[],p=0,c=0;c<s.length;c++)b(s[c])&&(d[p++]=s[c])}else{for(o=n,s=[],a=0,c=0;c<d.length;c++)for(h=d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return zl.isElement(e)?[e]:zl.isObject(e)&&!zl.isUndefined(e.length)?e:n.call(this,e)}}(),rh=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],nh=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"],zl.info={campaignParams:function(e){var t="",r={};return zl.each(rh,function(n){(t=zl.getQueryParam(Fl.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return zl.each(nh,function(r){(e=zl.getQueryParam(Fl.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return zl.extend(zl.info.campaignParams(),zl.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=zl.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=zl.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||zl.includes(e," OPR/")?zl.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":zl.includes(e,"IEMobile")||zl.includes(e,"WPDesktop")?"Internet Explorer Mobile":zl.includes(e,"SamsungBrowser/")?"Samsung Internet":zl.includes(e,"Edge")||zl.includes(e,"Edg/")?"Microsoft Edge":zl.includes(e,"FBIOS")?"Facebook Mobile":zl.includes(e,"Whale/")?"Whale Browser":zl.includes(e,"Chrome")?"Chrome":zl.includes(e,"CriOS")?"Chrome iOS":zl.includes(e,"UCWEB")||zl.includes(e,"UCBrowser")?"UC Browser":zl.includes(e,"FxiOS")?"Firefox iOS":zl.includes(t,"Apple")?zl.includes(e,"Mobile")?"Mobile Safari":"Safari":zl.includes(e,"Android")?"Android Mobile":zl.includes(e,"Konqueror")?"Konqueror":zl.includes(e,"Firefox")?"Firefox":zl.includes(e,"MSIE")||zl.includes(e,"Trident/")?"Internet Explorer":zl.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[zl.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=Pl;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Bt.location.href},properties:function(e){return"object"!=typeof e&&(e={}),zl.extend(zl.strip_empty_properties({$os:zl.info.os(),$browser:zl.info.browser(Pl,Ml.vendor,Nl),$referrer:Fl.referrer,$referring_domain:zl.info.referringDomain(Fl.referrer),$device:zl.info.device(Pl)}),{$current_url:zl.info.currentUrl(),$browser_version:zl.info.browserVersion(Pl,Ml.vendor,Nl),$screen_height:Dl.height,$screen_width:Dl.width,mp_lib:"web",$lib_version:kl.LIB_VERSION,$insert_id:oh(),time:zl.timestamp()/1e3},zl.strip_empty_properties(e))},people_properties:function(){return zl.extend(zl.strip_empty_properties({$os:zl.info.os(),$browser:zl.info.browser(Pl,Ml.vendor,Nl)}),{$browser_version:zl.info.browserVersion(Pl,Ml.vendor,Nl)})},mpPageViewProperties:function(){return zl.strip_empty_properties({current_page_title:Fl.title,current_domain:Bt.location.hostname,current_url_path:Bt.location.pathname,current_url_protocol:Bt.location.protocol,current_url_search:Bt.location.search})}},ih=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new wl(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},oh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},sh=function(){return"00-"+zl.UUID().replace(/-/g,"")+"-"+zl.UUID().replace(/-/g,"").substring(0,16)+"-01"},ah=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,uh=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ch=function(e){var t=uh,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ah);var i=e.match(t);return i?i[0]:""},lh=function(){var e=Bt.navigator.onLine;return zl.isUndefined(e)||e},hh=function(){},ph=null,fh=null,"undefined"!=typeof JSON&&(ph=JSON.stringify,fh=JSON.parse),ph=ph||zl.JSONEncode,fh=fh||zl.JSONDecode,zl.info=zl.info,zl.info.browser=zl.info.browser,zl.info.browserVersion=zl.info.browserVersion,zl.info.device=zl.info.device,zl.info.properties=zl.info.properties,zl.isBlockedUA=zl.isBlockedUA,zl.isEmptyObject=zl.isEmptyObject,zl.isObject=zl.isObject,zl.JSONDecode=zl.JSONDecode,zl.JSONEncode=zl.JSONEncode,zl.toArray=zl.toArray,zl.NPO=yb,mh=[dh="mixpanelRecordingEvents",gh="mixpanelRecordingRegistry"],(vh=function(e){this.dbPromise=null,this.storeName=e}).prototype._openDb=function(){return new wl(function(e,t){var r=Bt.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;mh.forEach(function(e){t.createObjectStore(e)})}})},vh.prototype.init=function(){return Bt.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Bt.IDBDatabase?wl.resolve():wl.reject(e)})):wl.reject("indexedDB is not supported in this browser")},vh.prototype.isInitialized=function(){return!!this.dbPromise},vh.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new wl(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):wl.reject(e)}.bind(this))},vh.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},vh.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},vh.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},vh.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})},yh="__mp_opt_in_out_",bh=Hl("lock"),(_h=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Bt.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||wl}).prototype.withLock=function(e,t){return new(0,this.promiseImpl)(zl.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,h=a+":X",p=a+":Y",f=a+":Z",d=function(e){if((new Date).getTime()-o>c)return bh.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),l.removeItem(f),l.removeItem(p),void v();setTimeout(function(){try{e()}catch(s){n(s)}},u*(Math.random()+.1))},g=function(e,t){e()?t():d(function(){g(e,t)})},m=function(){var e=l.getItem(p);return(!e||e===i)&&(l.setItem(p,i),l.getItem(p)===i||(Xl(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},v=function(){l.setItem(h,i),g(m,function(){l.getItem(h)!==i?d(function(){l.getItem(p)===i?g(function(){return!l.getItem(f)},y):v()}):y()})},y=function(){l.setItem(f,"1");var t=function(){l.removeItem(f),l.getItem(p)===i&&l.removeItem(p),l.getItem(h)===i&&l.removeItem(h)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Xl(l,!0))throw new Error("localStorage support check failed");v()}catch(s){n(s)}},this))},(wh=function(e){this.storage=e||Bt.localStorage}).prototype.init=function(){return wl.resolve()},wh.prototype.isInitialized=function(){return!0},wh.prototype.setItem=function(e,t){return new wl(zl.bind(function(r,n){try{this.storage.setItem(e,ph(t))}catch(Lf){n(Lf)}r()},this))},wh.prototype.getItem=function(e){return new wl(zl.bind(function(t,r){var n;try{n=fh(this.storage.getItem(e))}catch(Lf){r(Lf)}t(n)},this))},wh.prototype.removeItem=function(e){return new wl(zl.bind(function(t,r){try{this.storage.removeItem(e)}catch(Lf){r(Lf)}t()},this))},kh=Hl("batch"),(Sh=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new wh,this.lock=new _h(e,{storage:t.sharedLockStorage||Bt.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||zl.bind(kh.error,kh),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=ih(zl.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=zl.bind(function(e){return this._enqueuePersisted([e])},this)}).prototype.ensureInit=function(){return this.initialized||!this.usePersistence?wl.resolve():this.queueStorage.init().then(zl.bind(function(){this.initialized=!0},this)).catch(zl.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},Sh.prototype.enqueue=function(e,t){var r={id:oh(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),wl.resolve(!0))},Sh.prototype._enqueuePersisted=function(e){var t=zl.bind(function(){return this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(zl.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(zl.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(zl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},Sh.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(r){if(r.length){var n={};zl.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):wl.resolve(t)},xh=function(e,t){var r=[];return zl.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r},Sh.prototype.removeItemsByID=function(e){var t={};if(zl.each(e,function(e){t[e]=!0}),this.memQueue=xh(this.memQueue,t),this.usePersistence){var r=zl.bind(function(){return this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(e){return e=xh(e,t),this.saveToStorage(e)},this)).then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(zl.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(zl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Xl(this.lock.storage,!0)&&r().then(zl.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(zl.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return wl.resolve(!0)},Ch=function(e,t){var r=[];return zl.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r},Sh.prototype.updatePayloads=function(e){return this.memQueue=Ch(this.memQueue,e),this.usePersistence?this.lock.withLock(zl.bind(function(){return this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(t){return t=Ch(t,e),this.saveToStorage(t)},this)).catch(zl.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(zl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):wl.resolve(!0)},Sh.prototype.readFromStorage=function(){return this.ensureInit().then(zl.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(zl.bind(function(e){return e&&(zl.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(zl.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},Sh.prototype.saveToStorage=function(e){return this.ensureInit().then(zl.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(zl.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},Sh.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(zl.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):wl.resolve()},Eh=Hl("batch"),(Ih=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Sh(e,{errorReporter:zl.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null}).prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Ih.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ih.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ih.prototype.clear=function(){return this.queue.clear()},Ih.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ih.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ih.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(zl.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ih.prototype.sendRequestPromise=function(e,t){return new wl(zl.bind(function(r){this.sendRequest(e,t,r)},this))},Ih.prototype.flush=function(e){if(this.requestInProgress)return Eh.log("Flush: Request already in progress"),wl.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(zl.bind(function(i){var o=i.length===n,a=[],u={};if(zl.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=zl.extend({},t.properties,{mp_sent_by_lib_version:kl.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}u[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),wl.resolve();var c=zl.bind(function(){return this.queue.removeItemsByID(zl.map(i,function(e){return e.id})).then(zl.bind(function(e){return zl.each(i,zl.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),wl.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),wl.resolve())},this))},this),l=zl.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(u);if(zl.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(zl.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!lh()||"timeout"===o.error)){var a=2*this.flushInterval;return o.retryAfter&&(a=1e3*parseInt(o.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),wl.resolve()}if(zl.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),wl.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(s){this.reportError("Error handling API response",s),this.resetFlush()}},this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(h.transport="sendBeacon"),Eh.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)},this)).catch(zl.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Ih.prototype.reportError=function(e,t){if(Eh.error.apply(Eh.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Eh.error(t)}},Oh=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Th=Hl("recorder"),Ah=Bt.CompressionStream,Rh={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Mh=new Set([Ac.MouseMove,Ac.MouseInteraction,Ac.Scroll,Ac.ViewportResize,Ac.Input,Ac.TouchMove,Ac.MediaInteraction,Ac.Drag,Ac.Selection]),(Fh=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||hh,this._onMaxLengthReached=e.onMaxLengthReached||hh,this._onBatchSent=e.onBatchSent||hh,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Sl,this.recordMinMs=0;var t=Xl(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new vh(dh),this.batcher=new Ih(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Rh,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})}).prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Fh.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},Fh.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Fh.prototype.get_config=function(e){return this.getConfig(e)},Fh.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Sl&&(this.recordMaxMs=Sl,Th.critical("record_max_ms cannot be greater than "+Sl+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>xl&&(this.recordMinMs=xl,Th.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=zl.info.currentUrl(),this.replayStartUrl=zl.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===Tc.IncrementalSnapshot&&Mh.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(s){this.reportError("Unexpected error when starting rrweb recording.",s)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var n=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)}else Th.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Fh.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(s){this.reportError("Error with rrweb stopRecording",s)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Fh.prototype.isRrwebStopped=function(){return null===this._stopRecording},Fh.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Fh.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(Lf){this.reportError("Error getting tab ID for serialization ",Lf),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Fh.deserialize=function(e,t){return new Fh(zl.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Fh.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=zl.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Bt.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Fh.prototype._flushEvents=xb(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<n;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===Tc.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:kl.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Ah){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new Ah("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),Fh.prototype.reportError=function(e,t){Th.error.apply(Th.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Th.error(t)}},(Nh=function(e){this.idb=new vh(gh),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage}).prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Nh.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Nh.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return wl.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),wl.resolve())},Nh.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Oh(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):wl.resolve(null)},Nh.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Nh.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Nh.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):wl.resolve()},Nh.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return Oh(e)}).map(function(e){return Fh.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return wl.all(t)}.bind(this)).catch(this.handleError.bind(this)):wl.resolve([])},Dh=Hl("recorder"),(Ph=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||ub,this.sharedLockStorage=r,this.recordingRegistry=new Nh({mixpanelInstance:this.mixpanelInstance,errorReporter:Dh.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1}).prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Dh.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Dh.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:zl.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Fh.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Fh(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Dh.log("Recording already in progress, skipping startRecording.")},Ph.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Ph.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ph.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return wl.resolve()},Ph.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),wl.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Dh.log("No resumable recording found."),null)}.bind(this))},Ph.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ph.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ph.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Bt.__mp_recorder=Ph,Lh="change",jh="click",$h="hashchange",Uh="load",Bh="mp_locationchange",qh="popstate",zh="scrollend",Vh="scroll",Wh="submit",Hh="visibilitychange",Gh=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Zh=["mp-include"],Jh=(Yh=["mp-no-track"]).concat(["mp-sensitive"]),Kh=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Xh={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Qh={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},ep={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},tp=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],rp=5,np=Hl("autocapture"),Zb.prototype.isRageClick=function(e,t,r){var n=(r=r||{}).threshold_px||30,i=r.timeout_ms||1e3,o=r.click_count||4,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},Yb.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e.target||e.srcElement}},Yb.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},Yb.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Yb.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(Lf){np.critical("Error while observing shadow root",Lf)}}},Yb.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:np.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Yb.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(Lf){np.critical("Error while disconnecting shadow DOM observer",Lf)}this.shadowObservers=[],this.observedShadowRoots=null}},ip=[Lh,"input",Wh,"select","toggle"],op=[zh],sp=[$h],ap={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]},Jb.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Qh[t])return!0;if(Gb(e))return!1;for(var r=e.parentElement,n=0;r&&n<rp;){if(Gb(r))return!1;if(r.getRootNode&&r.getRootNode()!==Fl){var i=r.getRootNode();if(i.host&&Gb(i.host))return!1}r=r.parentElement,n++}return!!ep[t]}(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Jb.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Jb.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Jb.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Jb.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Jb.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Jb.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Jb.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;ip.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),sp.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),op.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,ap)}catch(Lf){np.critical("Error while setting up mutation observer",Lf)}if(window.customElements)try{this.shadowDOMObserver=new Yb(function(){e.recordChangeEvent()},ap),this.shadowDOMObserver.start()}catch(Lf){np.critical("Error while setting up shadow DOM observer",Lf),this.shadowDOMObserver=null}}},Jb.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(Lf){np.critical("Error while removing event listener",Lf)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(Lf){np.critical("Error while disconnecting mutation observer",Lf)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(Lf){np.critical("Error while stopping shadow DOM observer",Lf)}this.shadowDOMObserver=null}}},up="autocapture",cp="full-url",hp="allow_url_regexes",pp="block_attrs",fp="block_element_callback",dp="block_selectors",gp="block_url_regexes",mp="capture_extra_attrs",vp="capture_text_content",yp="scroll_capture_all",bp="scroll_depth_percent_checkpoints",_p="click",wp="dead_click",kp="input",Sp="pageview",xp="rage_click",Cp="scroll",Ep="page_leave",Ip="submit",(Op={})[lp="allow_selectors"]=[],Op[hp]=[],Op[pp]=[],Op[fp]=null,Op[dp]=[],Op[gp]=[],Op[mp]=[],Op[vp]=!1,Op[yp]=!1,Op[bp]=[25,50,75,100],Op[_p]=!0,Op[wp]=!0,Op[kp]=!0,Op[Sp]=cp,Op[xp]=!0,Op[Cp]=!0,Op[Ep]=!1,Op[Ip]=!0,Tp={$mp_autocapture:!0},Ap="$mp_click",Rp="$mp_dead_click",Mp="$mp_rage_click",(Fp=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0}).prototype.init=function(){!function(){try{return!!Fl.createElement("div").matches}catch(s){return!1}}()?np.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},Fp.prototype.getFullConfig=function(){var e=this.mp.get_config(up);return e?zl.isObject(e)?zl.extend({},Op,e):Op:{}},Fp.prototype.getConfig=function(e){return this.getFullConfig()[e]},Fp.prototype.currentUrlBlocked=function(){var e,t=zl.info.currentUrl(),r=this.getConfig(hp)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(s){return np.critical("Error while checking block URL regex: "+i,s),!0}}if(!n)return!0}var o=this.getConfig(gp)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(s){return np.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},Fp.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(up)?this.getConfig(Sp):this.mp.get_config("track_pageview")},Fp.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===Ap&&!this.getConfig(_p)||t===Mp&&!this._getClickTrackingConfig(xp)||t===Rp&&!this._getClickTrackingConfig(wp)),n=Lb(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(lp),blockAttrs:this.getConfig(pp),blockElementCallback:this.getConfig(fp),blockSelectors:this.getConfig(dp),captureExtraAttrs:this.getConfig(mp),captureTextContent:this.getConfig(vp),capturedForHeatMap:r});n&&(zl.extend(n,Tp),this.mp.track(t,n))}},Fp.prototype.initPageListeners=function(){if(Bt.removeEventListener(qh,this.listenerPopstate),Bt.removeEventListener($h,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(Ep)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Bt.dispatchEvent(new Event(Bh))},this.listenerHashchange=function(){Bt.dispatchEvent(new Event(Bh))},Bt.addEventListener(qh,this.listenerPopstate),Bt.addEventListener($h,this.listenerHashchange);var e=Bt.history.pushState;"function"==typeof e&&(Bt.history.pushState=function(t,r,n){e.call(Bt.history,t,r,n),Bt.dispatchEvent(new Event(Bh))});var t=Bt.history.replaceState;"function"==typeof t&&(Bt.history.replaceState=function(e,r,n){t.call(Bt.history,e,r,n),Bt.dispatchEvent(new Event(Bh))})}},Fp.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Fp.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(Ep)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=zl.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||zl.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(Fl.documentElement.clientWidth,Bt.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Tp);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},Fp.prototype._initScrollDepthTracking=function(){if(Bt.removeEventListener(Vh,this.listenerScrollDepth),Bt.removeEventListener(zh,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){np.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0);var e=Hb(function(){if(!this.currentUrlBlocked()){var e=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0)+Bt.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Fl.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,Bt.addEventListener(e.eventType,this.listenerScrollDepth)}},Fp.prototype.initClickTracking=function(){Bt.removeEventListener(jh,this.listenerClick),(this.getConfig(_p)||this.mp.get_config("record_heatmap_data"))&&(np.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(_p)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Ap)}.bind(this),Bt.addEventListener(jh,this.listenerClick))},Fp.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(wp)||this.mp.get_config("record_heatmap_data")?(np.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Jb(function(e){this.trackDomEvent(e,Rp)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(wp);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),Bt.addEventListener(jh,this.listenerDeadClick))):this.stopDeadClickTracking()},Fp.prototype.initInputTracking=function(){Bt.removeEventListener(Lh,this.listenerChange),this.getConfig(kp)&&(np.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(kp)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),Bt.addEventListener(Lh,this.listenerChange))},Fp.prototype.initPageviewTracking=function(){if(Bt.removeEventListener(Bh,this.listenerLocationchange),this.pageviewTrackingConfig()){np.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Tp)),t&&(e=zl.info.currentUrl()),this.listenerLocationchange=Gl(function(){if(!this.currentUrlBlocked()){var t=zl.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===cp?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(Tp)&&(e=t),n&&(this.lastScrollCheckpoint=0,np.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),Bt.addEventListener(Bh,this.listenerLocationchange)}},Fp.prototype.initRageClickTracking=function(){Bt.removeEventListener(jh,this.listenerRageClick),(this._getClickTrackingConfig(xp)||this.mp.get_config("record_heatmap_data"))&&(np.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Zb),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(xp);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e.pageX,e.pageY,t)&&this.trackDomEvent(e,Mp))}.bind(this),Bt.addEventListener(jh,this.listenerRageClick))},Fp.prototype.initScrollTracking=function(){if(Bt.removeEventListener(zh,this.listenerScroll),Bt.removeEventListener(Vh,this.listenerScroll),this.getConfig(Cp)){np.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=Hb(function(){if(this.getConfig(Cp)&&!this.currentUrlBlocked()){var e=this.getConfig(yp),t=(this.getConfig(bp)||[]).slice().sort(function(e,t){return e-t}),r=Bt.scrollY,n=zl.extend({$scroll_top:r},Tp);try{var i=Fl.body.scrollHeight,o=Math.round(r/(i-Bt.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var a=0;a<t.length;a++){var u=t[a];o>=u&&this.lastScrollCheckpoint<u&&(n.$scroll_checkpoint=u,this.lastScrollCheckpoint=u,e=!0)}}catch(s){np.critical("Error while calculating scroll percentage",s)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,Bt.addEventListener(e.eventType,this.listenerScroll)}},Fp.prototype.initSubmitTracking=function(){Bt.removeEventListener(Wh,this.listenerSubmit),this.getConfig(Ip)&&(np.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(Ip)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),Bt.addEventListener(Wh,this.listenerSubmit))},Fp.prototype.initPageLeaveTracking=function(){if(Fl.removeEventListener(Hh,this.listenerPageLeaveVisibilitychange),Bt.removeEventListener(Bh,this.listenerPageLeaveLocationchange),Bt.removeEventListener(Uh,this.listenerPageLoad),this.getConfig(Ep)||this.mp.get_config("record_heatmap_data")){np.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=zl.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=Fl.body.scrollHeight}.bind(this),Bt.addEventListener(Uh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Gl(function(t){if(!this.currentUrlBlocked()){var r=zl.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0),this.previousScrollHeight=Fl.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Bt.addEventListener(Bh,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){Fl.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),Fl.addEventListener(Hh,this.listenerPageLeaveVisibilitychange)}},Fp.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Bt.removeEventListener(jh,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Zl(Fp),Np=Hl("flags"),Dp="flags",(Lp={})[Pp="context"]={},(jp=function(e){this.fetch=Bt.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc}).prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):Np.critical("Feature Flags unavailable: missing minimum required APIs")},jp.prototype.getFullConfig=function(){var e=this.getMpConfig(Dp);return e?zl.isObject(e)?zl.extend({},Lp,e):Lp:{}},jp.prototype.getConfig=function(e){return this.getFullConfig()[e]},jp.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Dp)},jp.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Np.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Dp);zl.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Pp);return r[Pp]=zl.extend({},n,e),this.setMpConfig(Dp,r),this.fetchFlags()},jp.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Np.error("Feature Flags not enabled"),!!this.flags},jp.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=sh();Np.log("Fetching flags for distinct ID: "+e);var n=zl.extend({distinct_id:e,device_id:t},this.getConfig(Pp)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",kl.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Bt,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var n=new Map;zl.each(t,function(e,t){n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this.flags=n,this._traceparent=r}.bind(this)).catch(function(e){this.markFetchComplete(),Np.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),Np.error(e)}.bind(this)),this.fetchPromise},jp.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Np.error("Fetch in progress started time not set, cannot mark fetch complete")},jp.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return Np.error(e),t}):new Promise(function(e){Np.critical("Feature Flags not initialized"),e(t)})},jp.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return Np.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Np.log('No flag found: "'+e+'"'),t)},jp.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return Np.error(e),t})},jp.prototype.getFeatureData=function(e,t){return Np.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},jp.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},jp.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return Np.error(e),t})},jp.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Np.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},jp.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},jp.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Zl(jp),jp.prototype.are_flags_ready=jp.prototype.areFlagsReady,jp.prototype.get_variant=jp.prototype.getVariant,jp.prototype.get_variant_sync=jp.prototype.getVariantSync,jp.prototype.get_variant_value=jp.prototype.getVariantValue,jp.prototype.get_variant_value_sync=jp.prototype.getVariantValueSync,jp.prototype.is_enabled=jp.prototype.isEnabled,jp.prototype.is_enabled_sync=jp.prototype.isEnabledSync,jp.prototype.update_context=jp.prototype.updateContext,jp.prototype.get_feature_data=jp.prototype.getFeatureData,($p=function(){}).prototype.create_properties=function(){},$p.prototype.event_handler=function(){},$p.prototype.after_track_handler=function(){},$p.prototype.init=function(e){return this.mp=e,this},$p.prototype.track=function(e,t,r,n){var i=this,o=zl.dom_query(e);if(0!==o.length)return zl.each(o,function(e){zl.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;Vl.error("The DOM query ("+e+") returned 0 elements")},$p.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},$p.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):zl.extend({},e)},Up=function(){this.override_event="click"},zl.inherit(Up,$p),Up.prototype.create_properties=function(e,t){var r=Up.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Up.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Up.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)},Bp=function(){this.override_event="submit"},zl.inherit(Bp,$p),Bp.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Bp.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)},qp="$set",zp="$set_once",Vp="$unset",Wp="$add",Hp="$append",Gp="$union",Zp="$remove",Yp={set_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[qp]=n,r},unset_action:function(e){var t={},r=[];return zl.isArray(e)||(e=[e]),zl.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Vp]=r,t},set_once_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[zp]=n,r},union_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=zl.isArray(e)?e:[e])},this):n[e]=zl.isArray(t)?t:[t],r[Gp]=n,r},append_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Hp]=n,r},remove_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Zp]=n,r},delete_action:function(){var e={$delete:""};return e}},Jp=function(){},zl.extend(Jp.prototype,Yp),Jp.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Jp.prototype.set=Eb(function(e,t,r){var n=this.set_action(e,t);return zl.isObject(e)&&(r=t),this._send_request(n,r)}),Jp.prototype.set_once=Eb(function(e,t,r){var n=this.set_once_action(e,t);return zl.isObject(e)&&(r=t),this._send_request(n,r)}),Jp.prototype.unset=Eb(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Jp.prototype.union=Eb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Jp.prototype.delete=Eb(function(e){var t=this.delete_action();return this._send_request(t,e)}),Jp.prototype.remove=Eb(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Jp.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=zl.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Jp.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Jp.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Jp.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Jp.prototype.remove=Jp.prototype.remove,Jp.prototype.set=Jp.prototype.set,Jp.prototype.set_once=Jp.prototype.set_once,Jp.prototype.union=Jp.prototype.union,Jp.prototype.unset=Jp.prototype.unset,Jp.prototype.toString=Jp.prototype.toString,Kp=function(){},zl.extend(Kp.prototype,Yp),Kp.prototype._init=function(e){this._mixpanel=e},Kp.prototype.set=Cb(function(e,t,r){var n=this.set_action(e,t);return zl.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[qp]=zl.extend({},zl.info.people_properties(),n[qp]),this._send_request(n,r)}),Kp.prototype.set_once=Cb(function(e,t,r){var n=this.set_once_action(e,t);return zl.isObject(e)&&(r=t),this._send_request(n,r)}),Kp.prototype.unset=Cb(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Kp.prototype.increment=Cb(function(e,t,r){var n={},i={};return zl.isObject(e)?(zl.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Vl.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(zl.isUndefined(t)&&(t=1),i[e]=t),n[Wp]=i,this._send_request(n,r)}),Kp.prototype.append=Cb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Kp.prototype.remove=Cb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Kp.prototype.union=Cb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Kp.prototype.track_charge=Cb(function(){Vl.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Kp.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Kp.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Vl.error("mixpanel.people.delete_user() requires you to call identify() first")},Kp.prototype.toString=function(){return this._mixpanel.toString()+".people"},Kp.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=zl.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),zl.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),zl.truncate(o,255))},Kp.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Kp.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Kp.prototype._enqueue=function(e){qp in e?this._mixpanel.persistence._add_to_people_queue(qp,e):zp in e?this._mixpanel.persistence._add_to_people_queue(zp,e):Vp in e?this._mixpanel.persistence._add_to_people_queue(Vp,e):Wp in e?this._mixpanel.persistence._add_to_people_queue(Wp,e):Hp in e?this._mixpanel.persistence._add_to_people_queue(Hp,e):Zp in e?this._mixpanel.persistence._add_to_people_queue(Zp,e):Gp in e?this._mixpanel.persistence._add_to_people_queue(Gp,e):Vl.error("Invalid call to _enqueue():",e)},Kp.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=zl.extend({},this._mixpanel.persistence.load_queue(e)),s=o;zl.isUndefined(o)||!zl.isObject(o)||zl.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),zl.isUndefined(r)||r(t,n)}))},Kp.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(qp,this.set,e),this._flush_one_queue(zp,this.set_once,n),this._flush_one_queue(Vp,this.unset,o,function(e){return zl.keys(e)}),this._flush_one_queue(Wp,this.increment,t),this._flush_one_queue(Gp,this.union,i);var u=this._mixpanel.persistence.load_queue(Hp);if(!zl.isUndefined(u)&&zl.isArray(u)&&u.length)for(var c,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Hp,c),zl.isUndefined(r)||r(e,t)},h=u.length-1;h>=0;h--)u=this._mixpanel.persistence.load_queue(Hp),c=u.pop(),a._mixpanel.persistence.save(),zl.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(Zp);if(!zl.isUndefined(p)&&zl.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Zp,f),zl.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Zp),f=p.pop(),a._mixpanel.persistence.save(),zl.isEmptyObject(f)||a.remove(f,d)},Kp.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Kp.prototype.set=Kp.prototype.set,Kp.prototype.set_once=Kp.prototype.set_once,Kp.prototype.unset=Kp.prototype.unset,Kp.prototype.increment=Kp.prototype.increment,Kp.prototype.append=Kp.prototype.append,Kp.prototype.remove=Kp.prototype.remove,Kp.prototype.union=Kp.prototype.union,Kp.prototype.track_charge=Kp.prototype.track_charge,Kp.prototype.clear_charges=Kp.prototype.clear_charges,Kp.prototype.delete_user=Kp.prototype.delete_user,Kp.prototype.toString=Kp.prototype.toString,cf=[Xp="__mps",Qp="__mpso",ef="__mpus",tf="__mpa",rf="__mpap",nf="__mpr",of="__mpu",sf="$people_distinct_id",af="__alias",uf="__timers"],(lf=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Vl.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&zl.localStorage.is_supported()?this.storage=zl.localStorage:this.storage=zl.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()}).prototype.properties=function(){var e={};return this.load(),zl.each(this.props,function(t,r){zl.include(cf,r)||(e[r]=t)}),e},lf.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=zl.extend({},e))}},lf.prototype.upgrade=function(){var e,t;this.storage===zl.localStorage?(e=zl.cookie.parse(this.name),zl.cookie.remove(this.name),zl.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===zl.cookie&&(t=zl.localStorage.parse(this.name),zl.localStorage.remove(this.name),t&&this.register_once(t))},lf.prototype.save=function(){this.disabled||this.storage.set(this.name,ph(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},lf.prototype.load_prop=function(e){return this.load(),this.props[e]},lf.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},lf.prototype.clear=function(){this.remove(),this.props={}},lf.prototype.register_once=function(e,t,r){return!!zl.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),zl.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},lf.prototype.register=function(e,t){return!!zl.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),zl.extend(this.props,e),this.save(),!0)},lf.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},lf.prototype.update_search_keyword=function(e){this.register(zl.info.searchInfo(e))},lf.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:zl.info.referringDomain(e)||"$direct"},"")},lf.prototype.get_referrer_info=function(){return zl.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},lf.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},lf.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},lf.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},lf.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},lf.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},lf.prototype.get_cross_subdomain=function(){return this.cross_subdomain},lf.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},lf.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(qp),o=this._get_or_create_queue(zp),s=this._get_or_create_queue(Vp),a=this._get_or_create_queue(Wp),u=this._get_or_create_queue(Gp),c=this._get_or_create_queue(Zp,[]),l=this._get_or_create_queue(Hp,[]);r===Xp?(zl.extend(i,n),this._pop_from_people_queue(Wp,n),this._pop_from_people_queue(Gp,n),this._pop_from_people_queue(Vp,n)):r===Qp?(zl.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Vp,n)):r===ef?zl.each(n,function(e){zl.each([i,o,a,u],function(t){e in t&&delete t[e]}),zl.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===tf?(zl.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(Vp,n)):r===of?(zl.each(n,function(e,t){zl.isArray(e)&&(t in u||(u[t]=[]),zl.each(e,function(e){zl.include(u[t],e)||u[t].push(e)}))}),this._pop_from_people_queue(Vp,n)):r===nf?(c.push(n),this._pop_from_people_queue(Hp,n)):r===rf&&(l.push(n),this._pop_from_people_queue(Vp,n)),Vl.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Vl.log(t),this.save()},lf.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];zl.isUndefined(r)||zl.each(t,function(t,n){e===Hp||e===Zp?zl.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},lf.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},lf.prototype._get_queue_key=function(e){return e===qp?Xp:e===zp?Qp:e===Vp?ef:e===Wp?tf:e===Hp?rf:e===Zp?nf:e===Gp?of:void Vl.error("Invalid queue:",e)},lf.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=zl.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},lf.prototype.set_event_timer=function(e,t){var r=this.load_prop(uf)||{};r[e]=t,this.props[uf]=r,this.save()},lf.prototype.remove_event_timer=function(e){var t=(this.load_prop(uf)||{})[e];return zl.isUndefined(t)||(delete this.props[uf][e],this.save()),t},pf=function(e,t){throw new Error(e+" not available in this build.")},df=0,gf=function(e){return e},mf="mixpanel",vf="base64",yf="$device:",bf=Bt.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,_f=!bf&&-1===Pl.indexOf("MSIE")&&-1===Pl.indexOf("Mozilla"),wf=null,Ml.sendBeacon&&(wf=function(){return Ml.sendBeacon.apply(Ml,arguments)}),Sf={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:kf={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:vf,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:hh,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:hh,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Sl,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},xf=!1,Ef=function(e,t,r){var n,i=r===mf?ff:ff[r];if(i&&hf===df)n=i;else{if(i&&!zl.isArray(i))return void Vl.error("You have already initialized "+r);n=new Cf}if(n._cached_groups={},n._init(e,t,r),n.people=new Kp,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=zl.info.campaignParams(null),s={},a=!1;zl.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return kl.DEBUG=kl.DEBUG||n.get_config("debug"),!zl.isUndefined(i)&&zl.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n},(Cf=function(){}).prototype.init=function(e,t,r){if(zl.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==mf){var n=Ef(e,t,r);return ff[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Cf.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||Sf.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(zl.extend({},Sf,n,t,{name:r,token:e,callback_fn:(r===mf?r:mf+"."+r)+"._jsc"})),this._jsc=hh,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(zl.localStorage.is_supported(!0)&&bf){if(this.init_batchers(),wf&&Bt.addEventListener){var i=zl.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Bt.addEventListener("pagehide",function(e){e.persisted&&i()}),Bt.addEventListener("visibilitychange",function(){"hidden"===Fl.visibilityState&&i()})}}else this._batch_requests=!1,Vl.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),zl.each(this.get_batcher_configs(),function(e){Vl.log("Clearing batch queue "+e.queue_key),zl.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new lf(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=zl.UUID();this.get_distinct_id()||this.register_once({distinct_id:yf+o,$device_id:o},""),this.flags=new jp({getFullApiRoute:zl.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:zl.bind(this.get_config,this),setConfigFunc:zl.bind(this.set_config,this),getPropertyFunc:zl.bind(this.get_property,this),trackingFunc:zl.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Fp(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},Cf.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Vl.log("Tab ID initialization skipped due to disable_persistence config");else if(zl.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!zl.sessionStorage.get(r)&&zl.sessionStorage.get(t)||zl.sessionStorage.set(t,"$tab-"+zl.UUID()),zl.sessionStorage.set(r,"1"),this.tab_id=zl.sessionStorage.get(t),Bt.addEventListener("beforeunload",function(){zl.sessionStorage.remove(r)})}catch(s){this.report_error("Error initializing tab id",s)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},Cf.prototype.get_tab_id=function(){return this.tab_id||null},Cf.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Vl.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new vh(gh),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(Oh(e[r])||e[r].tabId===t)return!0;return!1}).catch(zl.bind(function(e){this.report_error("Error checking recording registry",e)},this))},Cf.prototype._check_and_start_session_recording=xb(function(e){if(Bt.MutationObserver){var t=zl.bind(function(e){var t=zl.bind(function(){this._recorder=this._recorder||new Bt.__mp_recorder(this),this._recorder.resumeRecording(e)},this);zl.isUndefined(Bt.__mp_recorder)?pf(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Vl.critical("Browser does not support MutationObserver; skipping session recording")}),Cf.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},Cf.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},Cf.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},Cf.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},Cf.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},Cf.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},Cf.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+zl.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},Cf.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Cf.prototype.__get_recorder=function(){return this._recorder},Cf.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=zl.info.campaignParams(null);zl.each(e,function(e,t){this.unregister(t)}.bind(this))}},Cf.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Fl.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(zl.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Fl.referrer)},Cf.prototype._dom_loaded=function(){zl.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||zl.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Cf.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!xf)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Cf.prototype._prepare_callback=function(e,t){if(zl.isUndefined(e))return null;if(bf){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},Cf.prototype._send_request=function(e,t,r,n){var i=!0;if(_f)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!zl.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=zl.extend(o,r||{}),bf||(r.method="GET");var a="POST"===r.method,u=wf&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),bf||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),zl.extend(t,this.get_config("api_extra_query_params")),e+="?"+zl.HTTPBuildQuery(t);var l=this;if("img"in t){var h=Fl.createElement("img");h.src=e,Fl.body.appendChild(h)}else if(u){try{i=wf(e,s)}catch(Lf){l.report_error(Lf),i=!1}try{n&&n(i?1:0)}catch(Lf){l.report_error(Lf)}}else if(bf)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),zl.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState)if(200===p.status){if(n)if(c){var e;try{e=zl.JSONDecode(p.responseText)}catch(Lf){if(l.report_error(Lf),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else{var t;if(t=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(c){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch(Lf){l.report_error(Lf),i=!1}else{var g=Fl.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Fl.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Cf.prototype._execute_array=function(e){var t,r=[],n=[],i=[];zl.each(e,function(e){e&&(t=e[0],zl.isArray(t)?i.push(e):"function"==typeof e?e.call(this):zl.isArray(e)&&"alias"===t?r.push(e):zl.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){zl.each(e,function(e){if(zl.isArray(e[0])){var r=t;zl.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},Cf.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Cf.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Cf.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=zl.bind(function(e){return new Ih(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:zl.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:zl.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:zl.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Cf.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,zl.each(this.request_batchers,function(e){e.start()}))},Cf.prototype.stop_batch_senders=function(){this._batch_requests=!1,zl.each(this.request_batchers,function(e){e.stop(),e.clear()})},Cf.prototype.push=function(e){this._execute_array([e])},Cf.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Cf.prototype._encode_data_for_request=function(e){var t=ph(e);return this.get_config("api_payload_format")===vf&&(t=zl.base64Encode(t)),{data:t}},Cf.prototype._track_or_batch=function(e,t){var r=zl.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||hh;var a=!0,u=zl.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Vl.log("MIXPANEL REQUEST:"),Vl.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):u()}):a=u(),a&&r},Cf.prototype.track=xb(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=hh),zl.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=zl.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!zl.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?zl.info.marketingParams():{};t=zl.extend({},zl.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");zl.isArray(c)?zl.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}n(0)}}),Cf.prototype.set_group=xb(function(e,t,r){zl.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),Cf.prototype.add_group=xb(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),Cf.prototype.remove_group=xb(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),Cf.prototype.track_with_groups=xb(function(e,t,r,n){var i=zl.extend({},t||{});return zl.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),Cf.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Cf.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Cf.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Jp)._init(this,e,t),this._cached_groups[r]=n),n},Cf.prototype.track_pageview=xb(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=zl.extend(zl.info.mpPageViewProperties(),zl.info.campaignParams(),zl.info.clickParams()),i=zl.extend({},n,e);return this.track(r,i)}),Cf.prototype.track_links=function(){return this._track_dom.call(this,Up,arguments)},Cf.prototype.track_forms=function(){return this._track_dom.call(this,Bp,arguments)},Cf.prototype.time_event=function(e){zl.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())},If={persistent:!0},Of=function(e){var t;return t=zl.isObject(e)?e:zl.isUndefined(e)?{}:{days:e},zl.extend({},If,t)},Cf.prototype.register=function(e,t){var r=Of(t);r.persistent?this.persistence.register(e,r.days):zl.extend(this.unpersisted_superprops,e)},Cf.prototype.register_once=function(e,t,r){var n=Of(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),zl.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},Cf.prototype.unregister=function(e,t){(t=Of(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Cf.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Cf.prototype.identify=function(e,t,r,n,i,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(yf))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(af)&&(this.unregister(af),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},Cf.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=zl.UUID();this.register_once({distinct_id:yf+e,$device_id:e},""),this._check_and_start_session_recording()},Cf.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Cf.prototype.alias=function(e,t){if(e===this.get_property(sf))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return zl.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(af,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Cf.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Cf.prototype.set_config=function(e){zl.isObject(e)&&(zl.extend(this.config,e),e.batch_size&&zl.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),kl.DEBUG=kl.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},Cf.prototype.get_config=function(e){return this.config[e]},Cf.prototype._run_hook=function(e){var t=(this.config.hooks[e]||gf).apply(this,Ol.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Cf.prototype.get_property=function(e){return this.persistence.load_prop([e])},Cf.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Cf.prototype.toString=function(){var e=this.get_config("name");return e!==mf&&(e=mf+"."+e),e},Cf.prototype._event_is_disabled=function(e){return zl.isBlockedUA(Pl)||this._flags.disable_all_events||zl.include(this.__disabled_events,e)},Cf.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&zl.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!zl.cookie.get("mp_optout")||(zl.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Cf.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Cf.prototype._gdpr_call_func=function(e,t){return t=zl.extend({track:zl.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),zl.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Cf.prototype.opt_in_tracking=function(e){e=zl.extend({enable_persistence:!0},e),this._gdpr_call_func(_b,e),this._gdpr_update_persistence(e)},Cf.prototype.opt_out_tracking=function(e){(e=zl.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(wb,e),this._gdpr_update_persistence(e)},Cf.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(kb,e)},Cf.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Sb,e)},Cf.prototype.clear_opt_in_out_tracking=function(e){e=zl.extend({enable_persistence:!0},e),this._gdpr_call_func(Ib,e),this._gdpr_update_persistence(e)},Cf.prototype.report_error=function(e,t){Vl.error.apply(Vl.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Vl.error(t)}},Cf.prototype.init=Cf.prototype.init,Cf.prototype.reset=Cf.prototype.reset,Cf.prototype.disable=Cf.prototype.disable,Cf.prototype.time_event=Cf.prototype.time_event,Cf.prototype.track=Cf.prototype.track,Cf.prototype.track_links=Cf.prototype.track_links,Cf.prototype.track_forms=Cf.prototype.track_forms,Cf.prototype.track_pageview=Cf.prototype.track_pageview,Cf.prototype.register=Cf.prototype.register,Cf.prototype.register_once=Cf.prototype.register_once,Cf.prototype.unregister=Cf.prototype.unregister,Cf.prototype.identify=Cf.prototype.identify,Cf.prototype.alias=Cf.prototype.alias,Cf.prototype.name_tag=Cf.prototype.name_tag,Cf.prototype.set_config=Cf.prototype.set_config,Cf.prototype.get_config=Cf.prototype.get_config,Cf.prototype.get_api_host=Cf.prototype.get_api_host,Cf.prototype.get_property=Cf.prototype.get_property,Cf.prototype.get_distinct_id=Cf.prototype.get_distinct_id,Cf.prototype.toString=Cf.prototype.toString,Cf.prototype.opt_out_tracking=Cf.prototype.opt_out_tracking,Cf.prototype.opt_in_tracking=Cf.prototype.opt_in_tracking,Cf.prototype.has_opted_out_tracking=Cf.prototype.has_opted_out_tracking,Cf.prototype.has_opted_in_tracking=Cf.prototype.has_opted_in_tracking,Cf.prototype.clear_opt_in_out_tracking=Cf.prototype.clear_opt_in_out_tracking,Cf.prototype.get_group=Cf.prototype.get_group,Cf.prototype.set_group=Cf.prototype.set_group,Cf.prototype.add_group=Cf.prototype.add_group,Cf.prototype.remove_group=Cf.prototype.remove_group,Cf.prototype.track_with_groups=Cf.prototype.track_with_groups,Cf.prototype.start_batch_senders=Cf.prototype.start_batch_senders,Cf.prototype.stop_batch_senders=Cf.prototype.stop_batch_senders,Cf.prototype.start_session_recording=Cf.prototype.start_session_recording,Cf.prototype.stop_session_recording=Cf.prototype.stop_session_recording,Cf.prototype.pause_session_recording=Cf.prototype.pause_session_recording,Cf.prototype.resume_session_recording=Cf.prototype.resume_session_recording,Cf.prototype.get_session_recording_properties=Cf.prototype.get_session_recording_properties,Cf.prototype.get_session_replay_url=Cf.prototype.get_session_replay_url,Cf.prototype.get_tab_id=Cf.prototype.get_tab_id,Cf.prototype.DEFAULT_API_ROUTES=kf,Cf.prototype.__get_recorder=Cf.prototype.__get_recorder,lf.prototype.properties=lf.prototype.properties,lf.prototype.update_search_keyword=lf.prototype.update_search_keyword,lf.prototype.update_referrer_info=lf.prototype.update_referrer_info,lf.prototype.get_cross_subdomain=lf.prototype.get_cross_subdomain,lf.prototype.clear=lf.prototype.clear,Tf={},Af=function(){zl.each(Tf,function(e,t){t!==mf&&(ff[t]=e)}),ff._=zl},Rf=function(){ff.init=function(e,t,r){if(r)return ff[r]||(ff[r]=Tf[r]=Ef(e,t,r),ff[r]._loaded()),ff[r];var n=ff;Tf[mf]?n=Tf[mf]:e&&((n=Ef(e,t,mf))._loaded(),Tf[mf]=n),ff=n,1===hf&&(Bt[mf]=ff),Af()}},Mf=function(){function e(){e.done||(e.done=!0,xf=!0,_f=!1,zl.each(Tf,function(e){e._dom_loaded()}))}if(Fl.addEventListener)"complete"===Fl.readyState?e():Fl.addEventListener("DOMContentLoaded",e,!1);else if(Fl.attachEvent){Fl.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Bt.frameElement}catch(Lf){}Fl.documentElement.doScroll&&t&&function t(){try{Fl.documentElement.doScroll("left")}catch(Lf){return void setTimeout(t,1)}e()}()}zl.register_event(Bt,"load",e,!0)},pf=Kb,hf=df,ff=new Cf,Rf(),ff.init(),Mf(),Ff=ff,Nf=[];for(let e=0;e<256;++e)Nf.push((e+256).toString(16).slice(1));Df=new Uint8Array(16),Pf=A.createContext({}),e("s",()=>(0,A.useContext)(Pf)),e("a",({children:e,trackingPipelineSettings:r,analyticsSettings:n,attributes:i={},meta:o,flags:s})=>{var a,u,c,l,h;const p=Rt(null!==(a=null==r?void 0:r.apiKey)&&void 0!==a?a:""),f={client_id:o.clientId,host_url:i.host_url,lat:null===(u=i.location)||void 0===u?void 0:u.lat,lng:null===(c=i.location)||void 0===c?void 0:c.lng,session_id:n_(),device_id:t_(),product_name:o.productName,product_version:o.productVersion,device_type:e_(),display_mode:void 0===i.isMobile?void 0:i.isMobile?"narrow":"wide"},[d]=(0,A.useState)({ll_product_name:o.productName,ll_product_version:o.productVersion,ll_client_id:o.clientId,ll_locale:i.locale,ll_location_lat:null===(l=i.location)||void 0===l?void 0:l.lat,ll_location_lng:null===(h=i.location)||void 0===h?void 0:h.lng});return(0,ue.jsx)(Pf.Provider,{value:{postEvent:({eventType:e,eventAttributes:r})=>{const n={event_type:e,event_version:"1.0.0",meta:{product_version:o.productVersion||"not_defined",product_name:o.productName||"",client_id:o.clientId,device_id:t_(),session_id:n_()},attributes:t({event_attributes:r},i)};null!=s&&s.isDebugMode?console.info("Tracking event:",n):p.postEvent(n)},trackAnalyticsEvent:({eventName:e,eventAttributes:r={}})=>{if(void 0!==n&&"mixpanel"===n.tracker&&(n.printDebugMode&&console.info("Mixpanel Debug:",{event:e,projectToken:n.key,properties:t(t({},r),d)}),!n.isDebugMode))try{Ff.track(e,t(t({},r),d))}catch(i){}},metadata:f},children:e})}),Lf=Object.create,jf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,Uf=Object.getOwnPropertyNames,Bf=Object.getPrototypeOf,qf=Object.prototype.hasOwnProperty,zf=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Vf=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=Uf(t),s=0,a=o.length;s<a;s++)i=o[s],!qf.call(e,i)&&i!==r&&jf(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=$f(t,i))||n.enumerable});return e},Wf=(e,t,r)=>(r=null==e?{}:Lf(Bf(e)),Vf(!t&&e&&e.__esModule?r:jf(r,"default",{value:e,enumerable:!0}),e)),Hf={dev:"https://api-dev.locallogic.co/v3",qa:"https://api-qa.locallogic.co/v3",prod:"https://api.locallogic.co/v3"},Gf=(e,r)=>{let n=Hf[(null==r?void 0:r.environment)||"prod"];return{get:async function(i,o){let s;if(null!=o&&o.params){let e=Object.entries(o.params).filter(([e,t])=>void 0!==t).reduce((e,[t,r])=>(e[t]=r,e),{});s=new URLSearchParams(t(t({},e),(null==r?void 0:r.locale)&&{language:null==r?void 0:r.locale}))}else s=new URLSearchParams(t({},(null==r?void 0:r.locale)&&{language:null==r?void 0:r.locale}));let a=await fetch(`${n}${i}?${s}`,{headers:t({Accept:"application/json",Authorization:e},(null==r?void 0:r.product)&&{"x-ll-sdk-name":r.product})});return 204===a.status?{data:{},meta:{message:"Received code 204",type:"LocalLogic.API.Success",statusCode:200,counts:{}}}:a.json()}}},Zf="/geographies",Yf=zf((e,t)=>{function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),l=new r(512);function h(e){return u.get(e)||u.set(e,p(e).map(function(e){return e.replace(a,"$2")}))}function p(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}t.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=h(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||i.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),s=f(n),o=!s&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}}),Jf=zf((e,t)=>{var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(r)||[],i=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),s=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");t.exports={words:n,upperFirst:i,camelCase:s,pascalCase:e=>i(s(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>i(o(e," ")),titleCase:e=>n(e).map(i).join(" ")}}),Kf=zf((e,t)=>{function r(e,t){var r=e.length,n=Array(r),i={},o=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||u(e[o],o,new Set);return n;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(p){c=""}throw Error("Cyclic dependency"+c)}if(!a.has(e))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var h=l[--t];u(h,a.get(h),o)}while(t);o.delete(e)}n[--r]=e}}}t.exports=function(e){return r(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},t.exports.array=r}),Xf=Yf(),Qf=Jf(),ed=Wf(Kf()),td=Object.prototype.toString,rd=Error.prototype.toString,nd=RegExp.prototype.toString,id=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",od=/^Symbol\((.*)\)(.*)$/,cd=/\$\{\s*(\w+)\s*\}/g,sd=Symbol.toStringTag,ld=class{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[sd]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],s_(e).forEach(e=>{if(hd.isError(e)){this.errors.push(...e.errors);let t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}},ad=Symbol.hasInstance,ud=Symbol.toStringTag,hd=class e extends Error{static formatError(e,t){let r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(cd,(e,r)=>o_(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(t,r,n,i,o){let s=new ld(t,r,n,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ud]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,e)}static[ad](e){return ld[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},pd={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r?` (cast from the value \`${o_(n,!0)}\`).`:".";return"mixed"===t?`${e} must match the configured type. The validated value was: \`${o_(r,!0)}\``+i:`${e} must be a \`${t}\` type, but the final value was: \`${o_(r,!0)}\``+i}},fd={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},dd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},gd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},md={isValue:"${path} field must be ${value}"},vd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},yd={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},bd={notType:e=>{let{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${o_(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${o_(r,!0)}\``}return hd.formatError(pd.notType,e)}},Object.assign(Object.create(null),{mixed:pd,string:fd,number:dd,date:gd,object:vd,array:yd,boolean:md,tuple:bd}),_d=e=>e&&e.__isYupSchema__,wd=class e{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new e(t,(e,t)=>{var r,n;return null!==(r=null===(n=s(...e)?i:o)||void 0===n?void 0:n(t))&&void 0!==r?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!_d(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}},kd={context:"$",value:"."},Sd=class{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===kd.context,this.isValue=this.key[0]===kd.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?kd.context:this.isValue?kd.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Xf.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}},Sd.prototype.__isYupRef=!0,xd=e=>null==e,Cd=class e extends Set{describe(){let e=[];for(let t of this.values())e.push(Sd.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new e(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}},Ed=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Cd,this._blacklist=new Cd,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(pd.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=h_(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();return r.spec=Object.assign({},t.spec,r.spec),r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!!(this.spec.nullable&&null===e||this.spec.optional&&void 0===e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,i;return Object.assign({},e,{from:e.from||[],strict:null!==(t=e.strict)&&void 0!==t?t:this.spec.strict,abortEarly:null!==(r=e.abortEarly)&&void 0!==r?r:this.spec.abortEarly,recursive:null!==(n=e.recursive)&&void 0!==n?n:this.spec.recursive,disableStackTrace:null!==(i=e.disableStackTrace)&&void 0!==i?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&xd(i))return i;let o=o_(e),s=o_(i);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(s===o?"":`result of cast: ${s}`))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:u},r,e=>{if(e.length)return n(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:s,path:a,options:u}=e,c=e=>{n||(n=!0,t(e,o))},l=e=>{n||(n=!0,r(e,o))},h=i.length,p=[];if(!h)return l([]);let f={value:o,originalValue:s,path:a,options:u,schema:this};for(let d=0;d<i.length;d++){(0,i[d])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--h<=0&&l(p)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){let s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");let a="number"==typeof s,u=r[s],c=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${n||""}[${a?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),i=null!==(r=null==t?void 0:t.disableStackTrace)&&void 0!==r?r:n.spec.disableStackTrace;return new Promise((r,o)=>n._validate(e,t,(e,t)=>{hd.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new hd(e,t,void 0,void 0,i)):r(t)}))}validateSync(e,t){var r;let n,i=this.resolve(Object.assign({},t,{value:e})),o=null!==(r=null==t?void 0:t.disableStackTrace)&&void 0!==r?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw hd.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new hd(t,e,void 0,void 0,o);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(hd.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(hd.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):h_(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=a_({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=a_({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=pd.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=pd.notNull){return this.nullability(!1,e)}required(e=pd.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=pd.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=a_(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>!(e.OPTIONS.name===t.name&&(i||e.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,t){!Array.isArray(e)&&"string"!=typeof e&&(t=e,e=".");let r=this.clone(),n=s_(e).map(e=>new Sd(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new wd(n,t):wd.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=a_({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=pd.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=a_({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=pd.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=a_({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){let t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{let r=t.OPTIONS.params&&e?u_(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){let e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof hd)return{issues:f_(e)};throw e}}}}},Ed.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])Ed.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:s}=l_(this,t,r,n.context);return s[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(let e of["equals","is"])Ed.prototype[e]=Ed.prototype.oneOf;for(let e of["not","nope"])Ed.prototype[e]=Ed.prototype.notOneOf;Id=()=>!0,Od=class extends Ed{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Id},e))}},d_.prototype=Od.prototype,Td=class extends Ed{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=md.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>xd(e)||!0===e})}isFalse(e=md.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>xd(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}},g_.prototype=Td.prototype,Ad=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/,Rd=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Md=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Fd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Nd=RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Dd=e=>xd(e)||e===e.trim(),Pd={}.toString(),Ld=class extends Ed{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;let n=null!=e&&e.toString?e.toString():e;return n===Pd?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||pd.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=fd.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=fd.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=fd.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||fd.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=fd.email){return this.matches(Rd,{name:"email",message:e,excludeEmptyString:!0})}url(e=fd.url){return this.matches(Md,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=fd.uuid){return this.matches(Fd,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(Nd,{name:"datetime",message:n||fd.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||fd.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;let r=m_(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||fd.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;let t=m_(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=fd.trim){return this.transform(e=>null==e?e:e.trim()).test({message:e,name:"trim",test:Dd})}lowercase(e=fd.lowercase){return this.transform(e=>xd(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>xd(e)||e===e.toLowerCase()})}uppercase(e=fd.uppercase){return this.transform(e=>xd(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>xd(e)||e===e.toUpperCase()})}},y_.prototype=Ld.prototype,jd=e=>e!=+e,$d=class extends Ed{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!jd(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=dd.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=dd.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=dd.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=dd.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=dd.positive){return this.moreThan(0,e)}negative(e=dd.negative){return this.lessThan(0,e)}integer(e=dd.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>xd(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null===(t=e)||void 0===t?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>xd(t)?t:Math[e](t))}},b_.prototype=$d.prototype,Ud=new Date(""),Bd=e=>"[object Date]"===Object.prototype.toString.call(e),qd=class e extends Ed{constructor(){super({type:"date",check:e=>Bd(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||null===t?t:(t=function(e){let t=m_(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(t),isNaN(t)?e.INVALID_DATE:new Date(t)))})}prepareParam(e,t){let r;if(Sd.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=gd.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=gd.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}},qd.INVALID_DATE=Ud,__.prototype=qd.prototype,__.INVALID_DATE=Ud,zd=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(i){}return r.isType(n)?n:e},Vd=(e,t)=>{let r=[...(0,Xf.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,Xf.getter)((0,Xf.join)(r),!0)(e);return!(!i||!(n in i))},Wd=e=>"[object Object]"===Object.prototype.toString.call(e),Hd=k_([]),Gd=class extends Ed{constructor(e){super({type:"object",check:e=>Wd(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Hd,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,o=null!==(r=t.stripUnknown)&&void 0!==r?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),a={},u=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),c=!1;for(let l of s){let e=i[l],r=l in n;if(e){let r,i=n[l];u.path=(t.path?`${t.path}.`:"")+l,e=e.resolve({value:i,context:t.context,parent:a});let o=e instanceof Ed?e.spec:void 0,s=null==o?void 0:o.strict;if(null!=o&&o.strip){c||(c=l in n);continue}r=t.__validating&&s?n[l]:e.cast(n[l],u),void 0!==r&&(a[l]=r)}else r&&!o&&(a[l]=n[l]);(r!==l in a||a[l]!==n[l])&&(c=!0)}return c?a:n}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!s||!Wd(i))return void n(e,i);o||(o=i);let a=[];for(let r of this._nodes){let e=this.fields[r];!e||Sd.isRef(e)||a.push(e.asNestedTest({options:t,key:r,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){let t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[n,i]of Object.entries(this.fields)){let e=r[n];r[n]=void 0===e?i:e}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;let i=this.fields[r],o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,Xf.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let s of Object.keys(e)){let t=e[s];n.add(s),Sd.isRef(t)&&t.isSibling?o(t.path,s):_d(t)&&"deps"in t&&t.deps.forEach(e=>o(e,s))}return ed.default.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=k_(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){let e={};for(let[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return S_(this)}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){let t=[];for(let r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,Xf.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return Vd(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(zd)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||vd.exact,test(e){if(null==e)return!0;let t=x_(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=vd.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;let r=x_(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=vd.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;let r={};for(let n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(Qf.camelCase)}snakeCase(){return this.transformKeys(Qf.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Qf.snakeCase)(e).toUpperCase())}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(let[i,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}},C_.prototype=Gd.prototype,Zd=class extends Ed{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){var i;let o=this.innerType,s=null!==(i=t.recursive)&&void 0!==i?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(i,a)=>{var u;if(!s||!o||!this._typeCheck(a))return void n(i,a);let c=Array(a.length);for(let r=0;r<a.length;r++){var l;c[r]=o.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:null!==(l=t.originalValue)&&void 0!==l?l:e})}this.runTests({value:a,tests:c,originalValue:null!==(u=t.originalValue)&&void 0!==u?u:e,options:t},r,e=>n(e.concat(i),a))})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(zd)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!_d(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+o_(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=yd.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t||(t=yd.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t||(t=yd.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null==e?e:e.filter(t))}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}},E_.prototype=Zd.prototype,Yd=class extends Ed{constructor(e){super({type:"tuple",spec:{types:e},check(e){let t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(bd.notType)})}_cast(e,t){let{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1,o=r.map((e,r)=>{let o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,s)=>{var a;if(!this._typeCheck(s))return void n(o,s);let u=[];for(let[r,n]of i.entries()){var c;u[r]=n.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!==(c=t.originalValue)&&void 0!==c?c:e})}this.runTests({value:s,tests:u,originalValue:null!==(a=t.originalValue)&&void 0!==a?a:e,options:t},r,e=>n(e.concat(o),s))})}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}},I_.prototype=Yd.prototype,Jd=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),include:y_().oneOf(["geometry"]),externalId:y_().optional()}),Kd=e=>async t=>{let{lat:r,lng:n,geogId:i}=await Jd.validate(t),o=i?`${Zf}/${i}`:Zf,s={lat:r,lng:n,external_id:null==t?void 0:t.externalId};return t.include&&(s.include=t.include),(await e.get(o,{params:s})).data},Xd=function(e){return e[e.measures_all=0]="measures_all",e[e.scores_all=1]="scores_all",e}({}),Qd=RegExp(`(${Object.keys(Xd).filter(e=>Number.isNaN(Number(e))).join("|")})`),eg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:E_().of(y_().matches(Qd,"Must be a valid Data category.").required()).required(),radius:b_().max(5e3)}),tg=e=>async r=>{let{lat:n,lng:i,radius:o,include:s}=await eg.validate(r),a=await e.get("/data",{params:{lat:n,lng:i,radius:o,include:null==s?void 0:s.join(",")}}),u=s.reduce((e,r)=>t(t({},e),{},{[r]:[]}),{});return a.data||u},rg="/demographics",ng=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").optional(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").optional(),geographyId:y_().optional(),radius:b_().max(5e3),radiusUnit:y_().oneOf(["meter","mile"]).optional()}),ig=e=>async r=>{let{lat:n,lng:i,geographyId:o,radius:s,radiusUnit:a}=await ng.validate(r),u=o?`${rg}/${o}`:rg,c=t({},(await e.get(u,{params:{lat:n,lng:i,radius:s,radius_unit:a}})).data.attributes),l={inc_home:"avg_household_income",inc_person:"avg_individual_income",prop_renter:"renters",prop_owner:"owners"};return Object.prototype.hasOwnProperty.call(c,"income_stats")&&c.income_stats&&(c.income={label:c.income_stats.label,type:c.income_stats.type,variables:c.income_stats.variables.map(e=>t(t({},e),{},{variable:l[e.variable]}))}),Object.prototype.hasOwnProperty.call(c,"property_tenure")&&c.property_tenure&&(c.housing_tenancy={label:c.property_tenure.label,type:c.property_tenure.type,variables:c.property_tenure.variables.map(e=>t(t({},e),{},{variable:l[e.variable]}))}),c},og="/enhanced-pois",sg=function(e){return e.AIRPORTS="airports",e.ALCOHOL="alcohol",e.ART_CULTURE_SCIENCE="art_culture_science",e.BANKS="banks",e.BUS_STOPS="bus_stops",e.CAFES="cafes",e.CAR_FUELING_STATIONS="car_fueling_stations",e.CASINO="casino",e.CLOTHING="clothing",e.COMMON_NEEDS="common_needs",e.CONFERENCE_CENTERS="conference_centers",e.CONVENIENCE_STORES="convenience_stores",e.DAYCARES="daycares",e.DEPARTMENT_STORES="department_stores",e.ENTERTAINMENT="entertainment",e.FITNESS="fitness",e.GROCERIES_SPECIALIZED="groceries_specialized",e.GROCERIES="groceries",e.HEALTH_CARE="health_care",e.HOME_IMPROVEMENT="home_improvement",e.HOSPITALS="hospitals",e.LIBRARIES="libraries",e.NIGHTLIFE="nightlife",e.NON_FOOD_SHOPS="non_food_shops",e.PARKS="parks",e.PERSONAL_CARE="personal_care",e.PET_CARE="pet_care",e.PHARMACIES="pharmacies",e.RAPID_TRANSIT_STATIONS="rapid_transit_stations",e.RESTAURANTS="restaurants",e.RETAIL="retail",e.SHOPS_AND_SERVICES="shops_and_services",e.SPORT_FACILITIES="sport_facilities",e.TRAIN_STATIONS="train_stations",e}({}),ag=RegExp(`(${Object.values(sg).filter(e=>Number.isNaN(Number(e))).join("|")})`),ug=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),limit:b_().max(500),attemptMinimum:b_().max(500),radius:b_().max(25e3),buffer:b_().max(1e4),include:E_().of(y_().matches(ag,"Must be a valid category.").required()).optional()}),cg=e=>async t=>{var r,n;let{attemptMinimum:i,include:o,lat:s,lng:a,limit:u=30,buffer:c=0,radius:l,geogId:h}=await ug.validate(t),p=h?`${og}/${h}`:og,f={categories:null==o?void 0:o.join(","),limit:u};void 0===h?(f.lat=s,f.lng=a,f.radius=l):f.buffer=c;let d=await e.get(p,{params:f});return void 0===h&&void 0!==i&&(null!==(r=null===(n=d)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.results)||void 0===n?void 0:n.length)&&void 0!==r?r:0)<i&&(d=await e.get(og,{params:{categories:null==o?void 0:o.join(","),lat:s,lng:a,limit:i,radius:1e4}})),d||{data:{results:[]},meta:{message:"Successfully called v3/enhanced_pois API.",type:"LocalLogic.API.Success",statusCode:200,counts:{returned_count:0,total_count:0,returned_by_category:{[sg.AIRPORTS]:0,[sg.ALCOHOL]:0,[sg.ART_CULTURE_SCIENCE]:0,[sg.BANKS]:0,[sg.BUS_STOPS]:0,[sg.CAFES]:0,[sg.CAR_FUELING_STATIONS]:0,[sg.CASINO]:0,[sg.CLOTHING]:0,[sg.COMMON_NEEDS]:0,[sg.CONFERENCE_CENTERS]:0,[sg.CONVENIENCE_STORES]:0,[sg.DAYCARES]:0,[sg.DEPARTMENT_STORES]:0,[sg.ENTERTAINMENT]:0,[sg.FITNESS]:0,[sg.GROCERIES_SPECIALIZED]:0,[sg.GROCERIES]:0,[sg.HEALTH_CARE]:0,[sg.HOME_IMPROVEMENT]:0,[sg.HOSPITALS]:0,[sg.LIBRARIES]:0,[sg.NIGHTLIFE]:0,[sg.NON_FOOD_SHOPS]:0,[sg.PARKS]:0,[sg.PERSONAL_CARE]:0,[sg.PET_CARE]:0,[sg.PHARMACIES]:0,[sg.RAPID_TRANSIT_STATIONS]:0,[sg.RESTAURANTS]:0,[sg.RETAIL]:0,[sg.SHOPS_AND_SERVICES]:0,[sg.SPORT_FACILITIES]:0,[sg.TRAIN_STATIONS]:0},total_by_category:{[sg.AIRPORTS]:0,[sg.ALCOHOL]:0,[sg.ART_CULTURE_SCIENCE]:0,[sg.BANKS]:0,[sg.BUS_STOPS]:0,[sg.CAFES]:0,[sg.CAR_FUELING_STATIONS]:0,[sg.CASINO]:0,[sg.CLOTHING]:0,[sg.COMMON_NEEDS]:0,[sg.CONFERENCE_CENTERS]:0,[sg.CONVENIENCE_STORES]:0,[sg.DAYCARES]:0,[sg.DEPARTMENT_STORES]:0,[sg.ENTERTAINMENT]:0,[sg.FITNESS]:0,[sg.GROCERIES_SPECIALIZED]:0,[sg.GROCERIES]:0,[sg.HEALTH_CARE]:0,[sg.HOME_IMPROVEMENT]:0,[sg.HOSPITALS]:0,[sg.LIBRARIES]:0,[sg.NIGHTLIFE]:0,[sg.NON_FOOD_SHOPS]:0,[sg.PARKS]:0,[sg.PERSONAL_CARE]:0,[sg.PET_CARE]:0,[sg.PHARMACIES]:0,[sg.RAPID_TRANSIT_STATIONS]:0,[sg.RESTAURANTS]:0,[sg.RETAIL]:0,[sg.SHOPS_AND_SERVICES]:0,[sg.SPORT_FACILITIES]:0,[sg.TRAIN_STATIONS]:0}}}}},lg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required()}),hg=e=>async t=>{let{lat:r,lng:n}=await lg.validate(t);return(await e.get("/location",{params:{lat:r,lng:n}})).data},pg=function(e){return e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care",e}({}),fg="/pois",dg=RegExp(`(${Object.keys(pg).filter(e=>Number.isNaN(Number(e))).join("|")})`),gg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:b_().max(500),attemptMinimum:b_().max(30),radius:b_().max(25e3),include:E_().of(y_().matches(dg,"Must be a valid category.").required()).required()}),mg=e=>async r=>{var n;let{lat:i,lng:o,limit:s=30,attemptMinimum:a,radius:u,include:c}=await gg.validate(r),l=await e.get(fg,{params:{lat:i,lng:o,limit:c.length>1&&s>30?30:s,radius:u,include:null==c?void 0:c.join(",")}});void 0!==a&&!O_((null===(n=l)||void 0===n?void 0:n.data)||null,a)&&(l=await e.get(fg,{params:{lat:i,lng:o,limit:a,radius:1e4,include:null==c?void 0:c.join(",")}}));let h=c.reduce((e,r)=>t(t({},e),{},{[r]:[]}),{});return l.data||h},vg=e=>async r=>{let{lat:n,lng:i,limit:o,radius:s,include:a}=await gg.validate(r),u=await e.get(fg,{params:{lat:n,lng:i,limit:o,radius:s,include:null==a?void 0:a.join(",")}}),c=a.reduce((e,r)=>t(t({},e),{},{[r]:0}),{});return u.meta.counts||c},yg="/profiles",bg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),externalId:y_().optional()}),_g=e=>async t=>{let{lat:r,lng:n,geogId:i}=await bg.validate(t),o=i?`${yg}/${i}`:yg;return(await e.get(o,{params:{lat:r,lng:n,external_id:null==t?void 0:t.externalId}})).data},wg=function(e){return e[e.pedestrian_friendly=0]="pedestrian_friendly",e[e.cycling_friendly=1]="cycling_friendly",e[e.transit_friendly=2]="transit_friendly",e[e.car_friendly=3]="car_friendly",e[e.parks=4]="parks",e[e.groceries=5]="groceries",e[e.shopping=6]="shopping",e[e.nightlife=7]="nightlife",e[e.restaurants=8]="restaurants",e[e.cafes=9]="cafes",e[e.daycares=10]="daycares",e[e.primary_schools=11]="primary_schools",e[e.high_schools=12]="high_schools",e[e.quiet=13]="quiet",e[e.greenery=14]="greenery",e[e.historic=15]="historic",e[e.vibrant=16]="vibrant",e[e.wellness=17]="wellness",e}({}),kg=RegExp(`(${Object.keys(wg).filter(e=>Number.isNaN(Number(e))).join("|")})`),Sg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:E_().of(y_().required()),geographyLevels:E_().of(y_().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:g_(),include:E_().of(y_().matches(kg,"Must be a valid Score category.").required())}),xg=e=>async t=>{let{lat:r,lng:n,include:i,geographyIds:o,geographyLevels:s,locationScoresRounding:a=!0}=await Sg.validate(t);return(await e.get("/scores",{params:{lat:r,lng:n,include:null==i?void 0:i.join(","),geography_levels:null==s?void 0:s.join(","),geography_ids:null==o?void 0:o.join(","),location_scores_rounding:a?".5":"none"}})).data},Cg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:y_(),limit:b_().positive(),externalId:y_().optional()}),Eg=e=>async t=>{let{lat:r,lng:n,geogId:i,limit:o}=await Cg.validate(t),s=await e.get(`/similar-neighborhoods/${i}`,{params:{lat:r,lng:n,limit:o,external_id:null==t?void 0:t.externalId}});return null!=s&&s.data?s.data:{id:i,most_similar:[]}},Ig=C_({geogId:y_().required(),limit:b_().optional()}),Og=e=>async r=>{let{geogId:n}=await Ig.validate(r),i=await e.get(`/value-drivers/${n}`,{params:{limit:r.limit||-1}}),o=i.data.value_drivers.map(e=>t(t({},e),{},{name:(e.name||"").toLocaleLowerCase(),value_qualifier:(e.value_qualifier||"").toLocaleLowerCase()}));return t(t({},i.data),{},{value_drivers:o})},Tg="/schools",Ag=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),limit:b_().max(30,"Must use a limit between 1 and 30."),attemptMinimum:b_().max(30),radius:b_().max(25e3,"Must use a radius between 1 and 25000."),buffer:b_().max(1e4,"Must use a buffer between 1 and 10000."),include_catchments:g_()}),Rg=e=>async t=>{var r;let{lat:n,lng:i,geogId:o,limit:s,attemptMinimum:a,radius:u,buffer:c,include_catchments:l}=await Ag.validate(t),h=o?`${Tg}/${o}`:Tg,p={limit:s,include_catchments:l};void 0===o?(p.lat=n,p.lng=i,p.radius=u):p.buffer=c;let f=await e.get(h,{params:p});return void 0===o&&void 0!==a&&!O_((null===(r=f)||void 0===r?void 0:r.data)||null,a)&&(f=await e.get(Tg,{params:{lat:n,lng:i,limit:a,radius:1e4,include_catchments:l}})),f.data},Mg=C_({geogId:y_().required()}),Fg=e=>async t=>{let{geogId:r}=await Mg.validate(t);return(await e.get(`/marketstats/${r}`)).data},Ng=C_({geogId:y_().required(),intervals:E_().of(y_().required()),propertyTypes:E_().of(y_().required())}),Dg=e=>async t=>{let{geogId:r,propertyTypes:n,intervals:i}=await Ng.validate(t);return(await e.get(`/market-stats/${r}`,{params:{property_types:null==n?void 0:n.join(","),intervals:null==i?void 0:i.join(",")}})).data},Pg="LocalLogicClient/",Lg=class extends Error{constructor({message:e}){super(e),this.name=Pg+this.constructor.name}},jg=class extends Error{constructor({message:e}){super(e),this.name=Pg+this.constructor.name}},$g=e=>{throw e instanceof hd?new Lg(e):new jg(e)},Ug=(e,t,r)=>{let n=r.value;return r.value=function(...e){try{let t=n.apply(this,e);return t&&t instanceof Promise?t.catch(e=>{$g(e)}):t}catch(e){$g(e)}},r},Bg=class{constructor(e,t={locale:"en"}){this.requests=Gf(e,t),this.options=t}getLocation(e){return hg(this.requests)(e)}getPois(e){return mg(this.requests)(e)}getPoisMetadata(e){return vg(this.requests)(e)}getScores(e){return xg(this.requests)(e)}getSimilarNeighborhoods(e){return Eg(this.requests)(e)}getSchools(e){return Rg(this.requests)(e)}getProfiles(e){return _g(this.requests)(e)}getGeographies(e){return Kd(this.requests)(e)}getDemographics(e){return ig(this.requests)(e)}getData(e){return tg(this.requests)(e)}getEnhancedPois(e){return cg(this.requests)(e)}getPropertyValueDrivers(e){return Og(this.requests)(e)}getMarketTrends(e){return Fg(this.requests)(e)}getMarketActivity(e){return Dg(this.requests)(e)}},T_([Ug],Bg.prototype,"getLocation",null),T_([Ug],Bg.prototype,"getPois",null),T_([Ug],Bg.prototype,"getPoisMetadata",null),T_([Ug],Bg.prototype,"getScores",null),T_([Ug],Bg.prototype,"getSimilarNeighborhoods",null),T_([Ug],Bg.prototype,"getSchools",null),T_([Ug],Bg.prototype,"getProfiles",null),T_([Ug],Bg.prototype,"getGeographies",null),T_([Ug],Bg.prototype,"getDemographics",null),T_([Ug],Bg.prototype,"getData",null),T_([Ug],Bg.prototype,"getEnhancedPois",null),T_([Ug],Bg.prototype,"getPropertyValueDrivers",null),T_([Ug],Bg.prototype,"getMarketTrends",null),T_([Ug],Bg.prototype,"getMarketActivity",null),qg=(e,t)=>new Bg(e,t),zg=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Vg=/^rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)$/,Wg=A.createContext({}),e("i",()=>(0,A.useContext)(Wg)),e("r",({appearance:e,apiKey:t,externalId:r,children:n,locale:i,product:o,environment:s})=>{if((0,A.useEffect)(()=>{null!=e&&e.theme&&document.documentElement.setAttribute("data-theme",null==e?void 0:e.theme),function(e){if("object"==typeof e){if("string"==typeof e["--ll-font-family"]&&document.documentElement.style.setProperty("--ll-font-family",e["--ll-font-family"]),"string"==typeof e["--ll-color-primary"]&&(document.documentElement.style.setProperty("--ll-color-primary",e["--ll-color-primary"]),"#008491"!==e["--ll-color-primary"].toUpperCase())){const t=R_(e["--ll-color-primary"],{10:.9,25:.85,50:.22,100:0,200:-.18,300:-.3});Object.entries(t).forEach(([e,t])=>{document.documentElement.style.setProperty(`--ll-colors-primary-${e}`,t)})}if("string"==typeof e["--ll-color-primary-variant1"]&&(document.documentElement.style.setProperty("--ll-color-primary-variant1",e["--ll-color-primary-variant1"]),"#0F766E"!==e["--ll-color-primary-variant1"].toUpperCase())){const t=R_(e["--ll-color-primary-variant1"],{10:.25,25:.23,50:.11,100:0,200:-.1});Object.entries(t).forEach(([e,t])=>{document.documentElement.style.setProperty(`--ll-colors-secondary-${e}`,t)})}}}(null==e?void 0:e.variables)},[null==e?void 0:e.theme,null==e?void 0:e.variables]),!t)throw Error("A valid apiKey must be provided.");const a=qg(t,{locale:i,product:o,environment:s});return(0,ue.jsx)(Wg.Provider,{value:{client:a,locale:i,options:{externalId:r,appearance:e}},children:n})}),e("n",{localContent:t(t({},Hg={tracker:"mixpanel",isDebugMode:!1,printDebugMode:!1}),{},{key:"14dc84d9ebfcd6747e51e28d2c22b7ad"}),localDemographics:t(t({},Hg),{},{key:"74b752391c7469929d425547f42b2acd"}),neighborhoodMatch:t(t({},Hg),{},{key:"e3e3ab8758f5061193fd94149288834d"}),neighborhoodWrap:t(t({},Hg),{},{key:"e3e0bceff1412922c58657d745f9f663"}),neighborhoodShowcase:t(t({},Hg),{},{key:"f19a8f4ceca8140edf4a693707160e6f"}),neighborhoodFeatured:t(t({},Hg),{},{key:"171ab916e9dd5af0d41facbebfca6814"}),leadCapture:t(t({},Hg),{},{key:"c61e08f2c8f3a7d7ad8eb5ff09780da2"})}),e("t",function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e.LEAD_CAPTURE="lead-capture",e}({}))}}})}();
2
- //# sourceMappingURL=sdks-legacy-3YngGDux.js.map
1
+ !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./rolldown-runtime-legacy-Djb2rrqm.js","./google-maps-vendor-legacy-CPuMOKGq.js","./index-legacy-CYps6nGB.js"],function(e,r){var n,i,o,s,a,u,c,l,h,p,f,d,g,m,v,y,b,_,w,k,S,x,C,E,I,O,T,A,R,M,F,N,D,P,L,j,$,U,B,q,z,V,W,H,G,Z,Y,J,K,X,Q,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,he,pe,fe,de,ge,me,ve,ye,be,_e,we,ke,Se,xe,Ce,Ee,Ie,Oe,Te,Ae,Re,Me,Fe,Ne,De,Pe,Le,je,$e,Ue,Be,qe,ze,Ve,We,He,Ge,Ze,Ye,Je,Ke,Xe,Qe,et,tt,rt,nt,it,ot,st,at,ut,ct,lt,ht,pt,ft,dt,gt,mt,vt,yt,bt,_t,wt,kt,St,xt,Ct,Et,It,Ot,Tt,At,Rt,Mt,Ft,Nt,Dt,Pt,Lt,jt,$t,Ut,Bt,qt,zt,Vt,Wt,Ht,Gt,Zt,Yt,Jt,Kt,Xt,Qt,er,tr,rr,nr,ir,or,sr,ar,ur,cr,lr,hr,pr,fr,dr,gr,mr,vr,yr,br,_r,wr,kr,Sr,xr,Cr,Er,Ir,Or,Tr,Ar,Rr,Mr,Fr,Nr,Dr,Pr,Lr,jr,$r,Ur,Br,qr,zr,Vr,Wr,Hr,Gr,Zr,Yr,Jr,Kr,Xr,Qr,en,tn,rn,nn,on,sn,an,un,cn,ln,hn,pn,fn,dn,gn,mn,vn,yn,bn,_n,wn,kn,Sn,xn,Cn,En,In,On,Tn,An,Rn,Mn,Fn,Nn,Dn,Pn,Ln,jn,$n,Un,Bn,qn,zn,Vn,Wn,Hn,Gn,Zn,Yn,Jn,Kn,Xn,Qn,ei,ti,ri,ni,ii,oi,si,ai,ui,ci,li,hi,pi,fi,di,gi,mi,vi,yi,bi,_i,wi,ki,Si,xi,Ci,Ei,Ii,Oi,Ti,Ai,Ri,Mi,Fi,Ni,Di,Pi,Li,ji,$i,Ui,Bi,qi,zi,Vi,Wi,Hi,Gi,Zi,Yi,Ji,Ki,Xi,Qi,eo,to,ro,no,io,oo,so,ao,uo,co,lo,ho,po,fo,go,mo,vo,yo,bo,_o,wo,ko,So,xo,Co,Eo,Io,Oo,To,Ao,Ro,Mo,Fo,No,Do,Po,Lo,jo,$o,Uo,Bo,qo,zo,Vo,Wo,Ho,Go,Zo,Yo,Jo,Ko,Xo,Qo,es,ts,rs,ns,is,os,ss,as,us,cs,ls,hs,ps,fs,ds,gs,ms,vs,ys,bs,_s,ws,ks,Ss,xs,Cs,Es,Is,Os,Ts,As,Rs,Ms,Fs,Ns,Ds,Ps,Ls,js,$s,Us,Bs,qs,zs,Vs,Ws,Hs,Gs,Zs,Ys,Js,Ks,Xs,Qs,ea,ta,ra,na,ia,oa,sa,aa,ua,ca,la,ha,pa,fa,da,ga,ma,va,ya,ba,_a,wa,ka,Sa,xa,Ca,Ea,Ia,Oa,Ta,Aa,Ra,Ma,Fa,Na,Da,Pa,La,ja,$a,Ua,Ba,qa,za,Va,Wa,Ha,Ga,Za,Ya,Ja,Ka,Xa,Qa,eu,tu,ru,nu,iu,ou,su,au,uu,cu,lu,hu,pu,fu,du,gu,mu,vu,yu,bu,_u,wu,ku,Su,xu,Cu,Eu,Iu,Ou,Tu,Au,Ru,Mu,Fu,Nu,Du,Pu,Lu,ju,$u,Uu,Bu,qu,zu,Vu,Wu,Hu,Gu,Zu,Yu,Ju,Ku,Xu,Qu,ec,tc,rc,nc,ic,oc,sc,ac,uc,cc,lc,hc,pc,fc,dc,gc,mc,vc,yc,bc,_c,wc,kc,Sc,xc,Cc,Ec,Ic,Oc,Tc,Ac,Rc,Mc,Fc,Nc,Dc,Pc,Lc,jc,$c,Uc,Bc,qc,zc,Vc,Wc,Hc,Gc,Zc,Yc,Jc,Kc,Xc,Qc,el,tl,rl,nl,il,ol,sl,al,ul,cl,ll,hl,pl,fl,dl,gl,ml,vl,yl,bl,_l,wl,kl,Sl,xl,Cl,El,Il,Ol,Tl,Al,Rl,Ml,Fl,Nl,Dl,Pl,Ll,jl,$l,Ul,Bl,ql,zl,Vl,Wl,Hl,Gl,Zl,Yl,Jl,Kl,Xl,Ql,eh,th,rh,nh,ih,oh,sh,ah,uh,ch,lh,hh,ph,fh,dh,gh,mh,vh,yh,bh,_h,wh,kh,Sh,xh,Ch,Eh,Ih,Oh,Th,Ah,Rh,Mh,Fh,Nh,Dh,Ph,Lh,jh,$h,Uh,Bh,qh,zh,Vh,Wh,Hh,Gh,Zh,Yh,Jh,Kh,Xh,Qh,ep,tp,rp,np,ip,op,sp,ap,up,cp,lp,hp,pp,fp,dp,gp,mp,vp,yp,bp,_p,wp,kp,Sp,xp,Cp,Ep,Ip,Op,Tp,Ap,Rp,Mp,Fp,Np,Dp,Pp,Lp,jp,$p,Up,Bp,qp,zp,Vp,Wp,Hp,Gp,Zp,Yp,Jp,Kp,Xp,Qp,ef,tf,rf,nf,of,sf,af,uf,cf,lf,hf,pf,ff,df,gf,mf,vf,yf,bf,_f,wf,kf,Sf,xf,Cf,Ef,If,Of,Tf,Af,Rf,Mf,Ff,Nf,Df,Pf,Lf,jf,$f,Uf,Bf,qf,zf,Vf,Wf,Hf,Gf,Zf,Yf,Jf,Kf,Xf,Qf,ed,td,rd,nd,id,od,sd,ad,ud,cd,ld,hd,pd,fd,dd,gd,md,vd,yd,bd,_d,wd,kd,Sd,xd,Cd,Ed,Id,Od,Td,Ad,Rd,Md,Fd,Nd,Dd,Pd,Ld,jd,$d,Ud,Bd,qd,zd,Vd,Wd,Hd,Gd,Zd,Yd,Jd,Kd,Xd,Qd,eg,tg,rg,ng,ig,og,sg,ag,ug,cg,lg,hg,pg,fg,dg,gg,mg,vg,yg,bg,_g,wg,kg,Sg,xg,Cg,Eg,Ig,Og,Tg,Ag,Rg,Mg,Fg,Ng,Dg,Pg,Lg,jg,$g,Ug,Bg,qg,zg,Vg,Wg,Hg;function Gg(e){k(se,this,em).call(this);let t=m(H,this).fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(I)),t}function Zg(){k(se,this,Xg).call(this);const e=T(this.options.staleTime,m(H,this));if(f||m(Z,this).isStale||!S(e))return;const t=x(m(Z,this).dataUpdatedAt,e)+1;O(re,this,setTimeout(()=>{m(Z,this).isStale||this.updateResult()},t))}function Yg(){var e;return null!==(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval(m(H,this)):this.options.refetchInterval)&&void 0!==e&&e}function Jg(e){k(se,this,Qg).call(this),O(ie,this,e),!f&&!1!==_(this.options.enabled,m(H,this))&&S(m(ie,this))&&0!==m(ie,this)&&O(ne,this,setInterval(()=>{(this.options.refetchIntervalInBackground||s.isFocused())&&k(se,this,Gg).call(this)},m(ie,this)))}function Kg(){k(se,this,Zg).call(this),k(se,this,Jg).call(this,k(se,this,Yg).call(this))}function Xg(){m(re,this)&&(clearTimeout(m(re,this)),O(re,this,void 0))}function Qg(){m(ne,this)&&(clearInterval(m(ne,this)),O(ne,this,void 0))}function em(){const e=m(W,this).getQueryCache().build(m(W,this),this.options);if(e===m(H,this))return;const t=m(H,this);O(H,this,e),O(G,this,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}function tm(e){h.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(m(Z,this))}),m(W,this).getQueryCache().notify({query:m(H,this),type:"observerResultsUpdated"})})}function rm(e,t){return function(e,t){return!1!==_(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&nm(e,t,t.refetchOnMount)}function nm(e,t,r){if(!1!==_(t.enabled,e)&&"static"!==T(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&om(e,t)}return!1}function im(e,t,r,n){return(e!==t||!1===_(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&om(e,r)}function om(e,t){return!1!==_(t.enabled,e)&&e.isStaleByTime(T(t.staleTime,e))}function sm(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return Re.call(e).replace(Me,"Symbol($1)");const n=Oe.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+Te.call(e)+"]":"RegExp"===n?Ae.call(e):null}function am(e,t){let r=sm(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=sm(this[e],t);return null!==n?n:r},2)}function um(e){return null==e?[]:[].concat(e)}function cm(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},s,a){const{name:u,test:c,params:l,message:h,skipAbsent:p}=e;let{parent:f,context:d,abortEarly:g=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n;const v={value:t,parent:f,context:d};function y(e={}){const n=lm(Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},l,e.params),v),s=new je(je.formatError(e.message||h,n),t,n.path,e.type||u,n.disableStackTrace);return s.params=n,s}const b=g?s:a;let _={path:r,parent:f,type:u,from:n.from,createError:y,resolve:e=>hm(e,v),options:n,originalValue:i,schema:o};const w=e=>{je.isError(e)?b(e):e?a(null):b(y())},k=e=>{je.isError(e)?b(e):s(e)};if(p&&Ke(t))return w(!0);let S;try{var x;if(S=c.call(_,t,_),"function"==typeof(null==(x=S)?void 0:x.then)){if(n.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(w,k)}}catch(C){return void k(C)}w(S)}return t.OPTIONS=e,t}function lm(e,t){if(!e)return e;for(const r of Object.keys(e))e[r]=hm(e[r],t);return e}function hm(e,t){return Je.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function pm(e,t,r,n=r){let i,o,s;return t?((0,Ce.forEach)(t,(a,u,c)=>{let l=u?a.slice(1,a.length-1):a,h="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||h){if(h&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=h?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r=r&&r[l],e=e.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}function fm(e,t=new Map){if(Ge(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=fm(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,fm(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(fm(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=fm(i,t)}return r}function dm(e){if(null==e||!e.length)return;const t=[];let r="",n=!1,i=!1;for(let o=0;o<e.length;o++){const s=e[o];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||n||i?r+=s:r&&(t.push(r),r=""):i=!i:(r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1):(r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0)}return r&&t.push(...r.split(".").filter(Boolean)),t}function gm(e,t){var r;if((null==(r=e.inner)||!r.length)&&e.errors.length)return function(e,t){const r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:dm(r)}))}(e,t);const n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>gm(e,n))}function mm(e){return new tt(e)}function vm(){return new rt}function ym(e){var t,r;const n=nt.exec(e);return n?{year:bm(n[1]),month:bm(n[2],1)-1,day:bm(n[3],1),hour:bm(n[4]),minute:bm(n[5]),second:bm(n[6]),millisecond:n[7]?bm(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:bm(n[10]),minuteOffset:bm(n[11])}:null}function bm(e,t=0){return Number(e)||t}function _m(){return new lt}function wm(){return new pt}function km(){return new gt}function Sm(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function xm(e){return(t,r)=>Sm(e,t)-Sm(e,r)}function Cm(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Cm(n);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Cm(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Cm)}):"optional"in e?e.optional():e}function Em(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}function Im(e){return new _t(e)}function Om(e){return new wt(e)}function Tm(e){return new kt(e)}function Am(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Rm(e){var t=Am(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function Mm(e){var t,r,n=Am(e),i=n[0],o=n[1],s=new Pt(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),a=0,u=o>0?i-4:i;for(r=0;r<u;r+=4)t=Dt[e.charCodeAt(r)]<<18|Dt[e.charCodeAt(r+1)]<<12|Dt[e.charCodeAt(r+2)]<<6|Dt[e.charCodeAt(r+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;return 2===o&&(t=Dt[e.charCodeAt(r)]<<2|Dt[e.charCodeAt(r+1)]>>4,s[a++]=255&t),1===o&&(t=Dt[e.charCodeAt(r)]<<10|Dt[e.charCodeAt(r+1)]<<4|Dt[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t),s}function Fm(e){return Nt[e>>18&63]+Nt[e>>12&63]+Nt[e>>6&63]+Nt[63&e]}function Nm(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(Fm(n));return i.join("")}function Dm(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Nm(e,s,s+o>a?a:s+o));return 1===n?(t=e[r-1],i.push(Nt[t>>2]+Nt[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(Nt[t>>10]+Nt[t>>4&63]+Nt[t<<2&63]+"=")),i.join("")}function Pm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lm(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,i)}function jm(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Lm(o,n,i,s,a,"next",e)}function a(e){Lm(o,n,i,s,a,"throw",e)}s(void 0)})}}function $m(e,t,r){return $m=Ym()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Hm(i,r.prototype),i},$m.apply(null,arguments)}function Um(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Bm(){return Bm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bm.apply(this,arguments)}function qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qm(e)}function zm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hm(e,t)}function Vm(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wm(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function Hm(e,t){return Hm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hm(e,t)}function Gm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Zm(e){var t="function"==typeof Map?new Map:void 0;return Zm=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $m(e,arguments,qm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Hm(n,e)},Zm(e)}function Ym(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(td){}return(Ym=function(){return!!e})()}function Jm(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pm(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Km(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(Lf){o=[6,Lf],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function Xm(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qm(e){if(Qt[e])return Qt[e];var t=globalThis[e],r=t.prototype,n=e in Kt?Kt[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Xt?Xt[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!er())return Qt[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Qt[e]=c:r}catch(Lf){return r}}function ev(e,t,r){var n,i=e+"."+String(r);if(tr[i])return tr[i].call(t);var o=Qm(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(tr[i]=s,s.call(t)):t[r]}function tv(e,t,r){var n=e+"."+String(r);if(rr[n])return rr[n].bind(t);var i=Qm(e)[r];return"function"!=typeof i?t[r]:(rr[n]=i,i.bind(t))}function rv(e){return ev("Node",e,"childNodes")}function nv(e){return ev("Node",e,"parentNode")}function iv(e){return ev("Node",e,"parentElement")}function ov(e){return ev("Node",e,"textContent")}function sv(e,t){return tv("Node",e,"contains")(t)}function av(e){return tv("Node",e,"getRootNode")()}function uv(e){return e&&"host"in e?ev("ShadowRoot",e,"host"):null}function cv(e){return e.styleSheets}function lv(e){return e&&"shadowRoot"in e?ev("Element",e,"shadowRoot"):null}function hv(e,t){return ev("Element",e,"querySelector")(t)}function pv(e,t){return ev("Element",e,"querySelectorAll")(t)}function fv(){return Qm("MutationObserver").constructor}function dv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(Lf){return function(){}}}function gv(e){return e.nodeType===e.ELEMENT_NODE}function mv(e){var t=e&&"host"in e&&"mode"in e&&nr.host(e)||null;return Boolean(t&&"shadowRoot"in t&&nr.shadowRoot(t)===e)}function vv(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function yv(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return bv(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(i){return null}var n}function bv(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=yv(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(i){r=e.cssText}return e.styleSheet.href?xv(r,e.styleSheet.href):r}var n=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?xv(n,t):n}function _v(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&wv(i);return(r[n.toLowerCase()]||u&&r[u])&&(a=s?s(a,t):"*".repeat(a.length)),a}function wv(e){return e.toLowerCase()}function kv(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?wv(t):null}function Sv(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(o){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}function xv(e,t){return(e||"").replace(sr,function(e,r,n,i,o,s){var a,u=n||o||s,c=r||i||"";if(!u)return e;if(ar.test(u)||ur.test(u))return"url("+c+u+c+")";if(cr.test(u))return"url("+c+u+c+")";if("/"===u[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+u)+c+")";var l=t.split("/"),h=u.split("/");l.pop();for(var p,f=Jm(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function Cv(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ev(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=Cv(e,r),a=s.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var c=Cv(n[u].textContent,r),l=3;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,l),1));l++);for(;l<c.length;l++){var h=c.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[u-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===c.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[u-1].textContent;if(d&&"string"==typeof d){var g=Cv(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=Cv(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}function Iv(){return lr++}function Ov(e,t){return t&&""!==t.trim()?Av(e,t):t}function Tv(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Av(e,t){var r=vr.get(e);if(r||(r=e.createElement("a"),vr.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Rv(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?Ov(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(mr),!(r>=t.length);){var o=n(gr);if(","===o.slice(-1))o=Ov(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=Ov(e,o);for(var a=!1;;){var u=t.charAt(r);if(""===u){i.push((o+s).trim());break}if(a)")"===u&&(a=!1);else{if(","===u){r+=1,i.push((o+s).trim());break}"("===u&&(a=!0)}s+=u,r+=1}}}return i.join(", ")}(e,n):"style"===r?xv(n,Av(e)):"object"===t&&"data"===r?Ov(e,n):n:Ov(e,n):n}function Mv(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Fv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Fv(nr.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Fv(nr.parentNode(e),t,r)}function Nv(e,t,r,n){var i;if(gv(e)){if(i=e,!nr.childNodes(i).length)return!1}else{if(null===nr.parentElement(e))return!1;i=nr.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Fv(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function Dv(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,u=t.maskInputOptions,c=void 0===u?{}:u,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,_=void 0!==b&&b,w=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Jt.Document,childNodes:[],compatMode:e.compatMode}:{type:Jt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Jt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,u=void 0===a?{}:a,c=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,v=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}(e,i,o),b=function(e){if(Vm(e,HTMLFormElement))return"form";var t=wv(e.tagName);return hr.test(t)?"div":t}(e),_={},w=e.attributes.length,k=0;k<w;k++){var S=e.attributes[k];Mv(b,S.name,S.value)||(_[S.name]=Rv(n,b,wv(S.name),S.value))}if("link"===b&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=yv(x)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===b&&e.sheet){var E=yv(e.sheet);E&&(e.childNodes.length>1&&(E=Ev(E,e)),_._cssText=E)}if("input"===b||"textarea"===b||"select"===b){var I=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=_v({element:e,type:kv(e),tagName:b,value:I,maskInputOptions:u,maskInputFn:c}):O&&(_.checked=O)}"option"===b&&(e.selected&&!u.select?_.selected=!0:delete _.selected);"dialog"===b&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&f)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=or in i?i[or]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(_.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var T=e.toDataURL(h.type,h.quality),A=n.createElement("canvas");A.width=e.width,A.height=e.height,T!==A.toDataURL(h.type,h.quality)&&(_.rr_dataURL=T)}if("img"===b&&p){fr||(fr=n.createElement("canvas"),dr=fr.getContext("2d"));var R=e,M=R.currentSrc||R.getAttribute("src")||"<unknown-src>",F=R.crossOrigin,N=function(){R.removeEventListener("load",N);try{fr.width=R.naturalWidth,fr.height=R.naturalHeight,dr.drawImage(R,0,0),_.rr_dataURL=fr.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N));console.warn("Cannot inline img src="+M+"! Error: "+e)}"anonymous"===R.crossOrigin&&(F?_.crossOrigin=F:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N)}if("audio"===b||"video"===b){var D=_;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}m||(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop));if(y){var P=e.getBoundingClientRect(),L=P.width,j=P.height;_={class:_.class,rr_width:L+"px",rr_height:j+"px"}}"iframe"!==b||d(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(b)&&(r=!0)}catch($){}return{type:Jt.Element,tagName:b,attributes:_,childNodes:[],isSVG:Tv(e)||void 0,needBlock:y,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=nr.parentNode(e),a=s&&s.tagName,u="",c="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?u="SCRIPT_PLACEHOLDER":o||(u=nr.textContent(e),c&&u&&(u=xv(u,Av(t.doc))));!c&&!l&&u&&r&&(u=n?n(u,nr.parentElement(e)):u.replace(/[\S]/g,"*"));return{type:Jt.Text,textContent:u||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:_});case e.CDATA_SECTION_NODE:return{type:Jt.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Jt.Comment,textContent:nr.textContent(e)||"",rootId:w};default:return!1}}function Pv(e){return null==e?"":e.toLowerCase()}function Lv(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,c=void 0!==u&&u,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,_=void 0!==b&&b,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,I=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,T=void 0===O?5e3:O,A=t.keepIframeSrcFn,R=void 0===A?function(){return!1}:A,M=t.newlyAddedElement,F=void 0!==M&&M,N=t.cssCaptured,D=void 0!==N&&N,P=t.needsMask,L=t.preserveWhiteSpace,j=void 0===L||L;P||(P=Nv(e,s,a,void 0===P));var $,U=Dv(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:k,keepIframeSrcFn:R,newlyAddedElement:F,cssCaptured:D});if(!U)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Jt.Comment)return!0;if(e.type===Jt.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Sv(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Pv(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Pv(e.attributes.name)||"icon"===Pv(e.attributes.rel)||"apple-touch-icon"===Pv(e.attributes.rel)||"shortcut icon"===Pv(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Pv(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Pv(e.attributes.property).match(/^(og|twitter|fb):/)||Pv(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Pv(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Pv(e.attributes.name)||"googlebot"===Pv(e.attributes.name)||"bingbot"===Pv(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Pv(e.attributes.name)||"generator"===Pv(e.attributes.name)||"framework"===Pv(e.attributes.name)||"publisher"===Pv(e.attributes.name)||"progid"===Pv(e.attributes.name)||Pv(e.attributes.property).match(/^article:/)||Pv(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Pv(e.attributes.name)||"yandex-verification"===Pv(e.attributes.name)||"csrf-token"===Pv(e.attributes.name)||"p:domain_verify"===Pv(e.attributes.name)||"verify-v1"===Pv(e.attributes.name)||"verification"===Pv(e.attributes.name)||"shopify-checkout-api-token"===Pv(e.attributes.name)))return!0}}return!1}(U,m)||!j&&U.type===Jt.Text&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?pr:Iv();var B=Object.assign(U,{id:$});if(n.add(e,B),$===pr)return null;S&&S(e);var q=!c;if(B.type===Jt.Element){q=q&&!B.needBlock,delete B.needBlock;var z=nr.shadowRoot(e);z&&vv(z)&&(B.isShadowHost=!0)}if((B.type===Jt.Document||B.type===Jt.Element)&&q){m.headWhitespace&&B.type===Jt.Element&&"head"===B.tagName&&(j=!1);var V={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R,cssCaptured:!1};if(B.type===Jt.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else{B.type===Jt.Element&&void 0!==B.attributes._cssText&&"string"==typeof B.attributes._cssText&&(V.cssCaptured=!0);for(var W,H=Jm(Array.from(nr.childNodes(e)));!(W=H()).done;){var G=Lv(W.value,V);G&&B.childNodes.push(G)}}var Z=null;if(gv(e)&&(Z=nr.shadowRoot(e)))for(var Y,J=Jm(Array.from(nr.childNodes(Z)));!(Y=J()).done;){var K=Lv(Y.value,V);K&&(vv(Z)&&(K.isShadow=!0),B.childNodes.push(K))}}var X=nr.parentNode(e);return X&&mv(X)&&vv(X)&&(B.isShadow=!0),B.type===Jt.Element&&"iframe"===B.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(u){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&x){var r=Lv(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});r&&x(e,r)}},E),B.type===Jt.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===Sv(B.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(I){var t=Lv(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});t&&I(e,t)}},T),B}function jv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $v(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Vm(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}function Uv(e,t){new Rr(t).stringify(e)}function Bv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Gm(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Bv(e,r)}):("object"===o&&null!==i&&(i=Bv(i)),r[n]=i)}return r}function qv(e){return e.map(function(e){return e.nodes&&(e.nodes=qv(e.nodes)),delete e.source,e})}function zv(e){if(e[En]=!1,e.proxyOf.nodes)for(var t,r=Jm(e.proxyOf.nodes);!(t=r()).done;){zv(t.value)}}function Vv(e,t){var r=new ji(new $i(e,t));try{r.parse()}catch(n){throw n}return r.root}function Wv(e){return"object"===(void 0===e?"undefined":Gm(e))&&"function"==typeof e.then}function Hv(e){var t=!1,r=Ji[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Qi,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Qi,r+"Exit"]:[r,r+"Exit"]}function Gv(e){return{eventIndex:0,events:"document"===e.type?["Document",Qi,"DocumentExit"]:"root"===e.type?["Root",Qi,"RootExit"]:Hv(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Zv(e){return e[Bi]=!1,e.nodes&&e.nodes.forEach(function(e){return Zv(e)}),e}function Yv(e,t){if(Array.isArray(e))return e.map(function(e){return Yv(e)});var r=e.inputs,n=Wm(e,["inputs"]);if(r){t=[];for(var i,o=Jm(r);!(i=o()).done;){var s=Bm({},i.value,{__proto__:_o.prototype});s.map&&(s.map=Bm({},s.map,{__proto__:vo.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Yv(e,t)})),n.source){var a=n.source,u=a.inputId;n.source=Wm(a,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new wo(n);if("decl"===n.type)return new mo(n);if("rule"===n.type)return new ko(n);if("comment"===n.type)return new yo(n);if("atrule"===n.type)return new bo(n);throw new Error("Unknown node type: "+e.type)}function Jv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Oo(t)}function Kv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Vm(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}function Qv(e,t){new ss(t).stringify(e)}function ey(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Gm(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ey(e,r)}):("object"===o&&null!==i&&(i=ey(i)),r[n]=i)}return r}function ty(e){return e.map(function(e){return e.nodes&&(e.nodes=ty(e.nodes)),delete e.source,e})}function ry(e){if(e[ea]=!1,e.proxyOf.nodes)for(var t,r=Jm(e.proxyOf.nodes);!(t=r()).done;){ry(t.value)}}function ny(e,t){var r=new pu(new fu(e,t));try{r.parse()}catch(n){throw n}return r.root}function iy(e){return"object"===(void 0===e?"undefined":Gm(e))&&"function"==typeof e.then}function oy(e){var t=!1,r=xu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Iu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Iu,r+"Exit"]:[r,r+"Exit"]}function sy(e){return{eventIndex:0,events:"document"===e.type?["Document",Iu,"DocumentExit"]:"root"===e.type?["Root",Iu,"RootExit"]:oy(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ay(e){return e[gu]=!1,e.nodes&&e.nodes.forEach(function(e){return ay(e)}),e}function uy(e,t){if(Array.isArray(e))return e.map(function(e){return uy(e)});var r=e.inputs,n=Wm(e,["inputs"]);if(r){t=[];for(var i,o=Jm(r);!(i=o()).done;){var s=Bm({},i.value,{__proto__:Gu.prototype});s.map&&(s.map=Bm({},s.map,{__proto__:Vu.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return uy(e,t)})),n.source){var a=n.source,u=a.inputId;n.source=Wm(a,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Zu(n);if("decl"===n.type)return new zu(n);if("rule"===n.type)return new Yu(n);if("comment"===n.type)return new Wu(n);if("atrule"===n.type)return new Hu(n);throw new Error("Unknown node type: "+e.type)}function cy(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tc(t)}function ly(e){if(_c[e])return _c[e];var t=globalThis[e],r=t.prototype,n=e in yc?yc[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in bc?bc[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!wc())return _c[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?_c[e]=c:r}catch(Lf){return r}}function hy(e,t,r){var n,i=e+"."+String(r);if(kc[i])return kc[i].call(t);var o=ly(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(kc[i]=s,s.call(t)):t[r]}function py(e,t,r){var n=e+"."+String(r);if(Sc[n])return Sc[n].bind(t);var i=ly(e)[r];return"function"!=typeof i?t[r]:(Sc[n]=i,i.bind(t))}function fy(e){return hy("Node",e,"childNodes")}function dy(e){return hy("Node",e,"parentNode")}function gy(e){return hy("Node",e,"parentElement")}function my(e){return hy("Node",e,"textContent")}function vy(e,t){return py("Node",e,"contains")(t)}function yy(e){return py("Node",e,"getRootNode")()}function by(e){return e&&"host"in e?hy("ShadowRoot",e,"host"):null}function _y(e){return e.styleSheets}function wy(e){return e&&"shadowRoot"in e?hy("Element",e,"shadowRoot"):null}function ky(e,t){return hy("Element",e,"querySelector")(t)}function Sy(e,t){return hy("Element",e,"querySelectorAll")(t)}function xy(){return ly("MutationObserver").constructor}function Cy(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(Lf){return function(){}}}function Ey(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}function Iy(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();i||!1!==r.leading||(i=u);var c=t-(u-i),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},c))}}function Oy(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return Oy(e,t,o||{},!0)}}function Ty(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=xc.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=xc.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function Ay(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ry(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function My(e){return e?e.nodeType===e.ELEMENT_NODE?e:xc.parentElement(e):null}function Fy(e,t,r,n){if(!e)return!1;var i=My(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Fv(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function Ny(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===pr}function Dy(e,t){if(mv(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=xc.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Dy(n,t))}function Py(e){return Boolean(e.changedTouches)}function Ly(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function jy(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function $y(e){return!!e&&(Vm(e,vc)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(xc.shadowRoot(e)))}function Uy(e){var t,r=null;return"getRootNode"in e&&(null==(t=xc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&xc.host(xc.getRootNode(e))&&(r=xc.host(xc.getRootNode(e))),r}function By(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Uy(r);)r=t;return r}(e);return xc.contains(t,r)}function qy(e){var t=e.ownerDocument;return!!t&&(xc.contains(t,e)||By(e))}function zy(e){return"__ln"in e}function Vy(e,t){e.delete(t),xc.childNodes(t).forEach(function(t){return Vy(e,t)})}function Wy(e,t,r){return 0!==e.size&&function(e,t){var r=xc.parentNode(t);return!!r&&e.has(r)}(e,t)}function Hy(e,t){return 0!==e.size&&Gy(e,t)}function Gy(e,t){var r=xc.parentNode(t);return!!r&&(!!e.has(r)||Gy(e,r))}function Zy(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(Lf){}return e&&e.target}function Yy(e,t){var r=new jc;Bc.push(r),r.init(e);var n=new(xy())(Uc(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Jy(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],c=null;return Object.keys(Rc).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=wv(e),a=function(e){return function(r){var s=Zy(r);if(!Fy(s,i,o,!0)){var a=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Mc.Mouse;break;case"touch":a=Mc.Touch;break;case"pen":a=Mc.Pen}a===Mc.Touch?Rc[e]===Rc.MouseDown?u="TouchStart":Rc[e]===Rc.MouseUp&&(u="TouchEnd"):Mc.Pen}else Py(r)&&(a=Mc.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===Mc.Touch||u.startsWith("Mouse")&&a===Mc.Mouse)&&(a=null)):Rc[e]===Rc.Click&&(a=c,c=null);var l=Py(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;Uc(t)(Bm({type:Rc[u],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Rc[e]){case Rc.MouseDown:case Rc.MouseUp:s=s.replace("mouse","pointer");break;case Rc.TouchStart:case Rc.TouchEnd:return}u.push(Ey(s,a,r))}),Uc(function(){u.forEach(function(e){return e()})})}function Ky(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return Ey("scroll",Uc(Iy(Uc(function(e){var s=Zy(e);if(s&&!Fy(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var u=Ty(r.defaultView);t({id:a,x:u.left,y:u.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}function Xy(e){return function(e,t){if(rb("CSSGroupingRule")&&Vm(e.parentRule,CSSGroupingRule)||rb("CSSMediaRule")&&Vm(e.parentRule,CSSMediaRule)||rb("CSSSupportsRule")&&Vm(e.parentRule,CSSSupportsRule)||rb("CSSConditionRule")&&Vm(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Qy(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function eb(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(xc.host(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),Uc(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function tb(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Yy(e,e.doc));var i,o,s,a,u,c,l,h,p,f=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],c=Iy(Uc(function(e){var r=Date.now()-o;t(u.map(function(e){return e.timeOffset-=r,e}),e),u=[],o=null}),a),l=Uc(Iy(Uc(function(e){var t=Zy(e),r=Py(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Ic()),u.push({x:n,y:s,id:i.getId(t),timeOffset:Ic()-o}),c("undefined"!=typeof DragEvent&&Vm(e,DragEvent)?Ac.Drag:Vm(e,MouseEvent)?Ac.MouseMove:Ac.TouchMove)}),s,{trailing:!1})),h=[Ey("mousemove",l,n),Ey("touchmove",l,n),Ey("drag",l,n)];return Uc(function(){h.forEach(function(e){return e()})})}(e),d=Jy(e),g=Ky(e),m=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return Ey("resize",Uc(Iy(Uc(function(){var e=Ay(),t=Ry();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200)),n)}(e,{win:n}),v=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=Zy(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=xc.parentElement(t)),t&&l&&!(qc.indexOf(l)<0)&&!Fy(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=kv(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(u[l.toLowerCase()]||u[g])&&(p=_v({element:t,maskInputOptions:u,tagName:l,type:g,value:p,maskInputFn:c})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=zc.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){zc.set(e,r);var o=n.getId(e);Uc(t)(Bm({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return Ey(e,Uc(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return Oy(e[0],e[1],{set:function(){Uc(p)({target:this,isTrusted:!1})}},!1,g)}))),Uc(function(){d.forEach(function(e){return e()})})}(e),y=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,u=i.mirror,c=i.sampling,l=i.doc,h=Uc(function(e){return Iy(Uc(function(t){var r=Zy(t);if(r&&!Fy(r,s,a,!0)){var n=r.currentTime,i=r.volume,c=r.muted,l=r.playbackRate,h=r.loop;o({type:e,id:u.getId(r),currentTime:n,volume:i,muted:c,playbackRate:l,loop:h})}}),c.media||500)}),p=[Ey("play",h(Nc.Play),l),Ey("pause",h(Nc.Pause),l),Ey("seeked",h(Nc.Seeked),l),Ey("volumechange",h(Nc.VolumeChange),l),Ey("ratechange",h(Nc.RateChange),l)],Uc(function(){p.forEach(function(e){return e()})})),b=function(){},_=function(){},w=function(){},k=function(){};e.recordDOM&&(b=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Uc(function(e,t,o){var s=o[0],a=o[1],u=Qy(t,n,i.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,u,c=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,replaceSync:s}),e.apply(t,o)})}));var l={};nb("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(nb("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),nb("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),nb("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Uc(function(e,t,o){var s=o[0],a=o[1],u=Qy(t.parentStyleSheet,n,i.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,adds:[{rule:s,index:[].concat(Xy(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Uc(function(e,t,o){var s=o[0],a=Qy(t.parentStyleSheet,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,removes:[{index:[].concat(Xy(t),[s])}]}),e.apply(t,o)})})}),Uc(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=c,a&&(o.CSSStyleSheet.prototype.replace=a),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),_=eb(e,e.doc),w=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Uc(function(e,t,s){var u,c=s[0],l=s[1],h=s[2];if(i.has(c))return a.apply(t,[c,l,h]);var p=Qy(null==(u=t.parentRule)?void 0:u.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:c,value:l,priority:h},index:Xy(t.parentRule)}),e.apply(t,s)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:Uc(function(e,t,s){var a,c=s[0];if(i.has(c))return u.apply(t,[c]);var l=Qy(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:c},index:Xy(t.parentRule)}),e.apply(t,s)})}),Uc(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}(e,{win:n}),e.collectFonts&&(k=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=Cy(r.fonts,"add",function(e){return function(r){return setTimeout(Uc(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),Uc(function(){i.forEach(function(e){return e()})})}(e)));for(var S,x=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Uc(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],u=e.rangeCount||0,c=0;c<u;c++){var l=e.getRangeAt(c),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Fy(h,n,i,!0)||Fy(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),Ey("selectionchange",a)}(e),C=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Cy(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),E=[],I=Jm(e.plugins);!(S=I()).done;){var O=S.value;E.push(O.observer(O.callback,n,O.options))}return Uc(function(){var e;Bc.forEach(function(e){return e.reset()}),null===(e=r)||void 0===e||e.disconnect(),f(),d(),g(),m(),v(),y(),b(),_(),w(),k(),x(),C(),E.forEach(function(e){return e()})})}function rb(e){return void 0!==window[e]}function nb(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}function ib(e,t,r){return Vm(e,Array)?e.map(function(e){return ib(e,t,r)}):null===e?e:Vm(e,Float32Array)||Vm(e,Float64Array)||Vm(e,Int32Array)||Vm(e,Uint32Array)||Vm(e,Uint8Array)||Vm(e,Uint16Array)||Vm(e,Int16Array)||Vm(e,Int8Array)||Vm(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:Vm(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:Jc(e)}:Vm(e,DataView)?{rr_type:e.constructor.name,args:[ib(e.buffer,t,r),e.byteOffset,e.byteLength]}:Vm(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:Vm(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:Vm(e,ImageData)?{rr_type:e.constructor.name,args:[ib(e.data,t,r),e.width,e.height]}:el(e,t)||"object"===(void 0===e?"undefined":Gm(e))?{rr_type:e.constructor.name,index:Xc(e,t,r)}:e}function ob(e,t,r,n){var i=[];try{var o=Cy(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Fy(this,t,r,!0)){var u=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(s[0]&&"object"===Gm(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(Lf){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function sb(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var c=Cy(e,a,function(e){return function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var l=e.apply(this,u);if(Xc(l,o,this),"tagName"in this.canvas&&!Fy(this.canvas,n,i,!0)){var h={type:t,property:a,args:Qc(u,o,this)};r(this.canvas,h)}return l}});u.push(c)}catch(Lf){var l=Oy(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});u.push(l)}},u=[],c=Jm(Object.getOwnPropertyNames(e));!(s=c()).done;)a();return u}function ab(e){var t;try{if(!(t=nl&&(window.URL||window.webkitURL).createObjectURL(nl)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+tl,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}function ub(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,f=void 0===p?"rr-mask":p,d=e.maskTextSelector,g=void 0===d?null:d,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,b=e.maskInputOptions,_=e.slimDOMOptions,w=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,I=e.dataURLOptions,O=void 0===I?{}:I,T=e.mousemoveWait,A=e.recordDOM,R=void 0===A||A,M=e.recordCanvas,F=void 0!==M&&M,N=e.recordCrossOriginIframes,D=void 0!==N&&N,P=e.recordAfter,L=void 0===P?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":P,j=e.userTriggeredOnInput,$=void 0!==j&&j,U=e.collectFonts,B=void 0!==U&&U,q=e.inlineImages,z=void 0!==q&&q,V=e.plugins,W=e.keepIframeSrcFn,H=void 0===W?function(){return!1}:W,G=e.ignoreCSSAttributes,Z=void 0===G?new Set([]):G,Y=e.errorHandler;$c=Y;var J=!D||window.parent===window,K=!1;if(!J)try{window.parent.document&&(K=!1)}catch(me){K=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!K)return function(){};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),pl.reset();var X,Q=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},ee=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_,headTitleMutations:"all"===_}:_||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var te=0,re=function(e){for(var t,r=Jm(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};al=function(e,i){var o,s=e;if(s.timestamp=Ic(),!(null==(o=Bc[0])?void 0:o.isFrozen())||s.type===Tc.FullSnapshot||s.type===Tc.IncrementalSnapshot&&s.data.source===Ac.Mutation||Bc.forEach(function(e){return e.unfreeze()}),J)null==t||t(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===Tc.FullSnapshot)X=s,te=0;else if(s.type===Tc.IncrementalSnapshot){if(s.data.source===Ac.Mutation&&s.data.isAttachIframe)return;te++;var u=n&&te>=n,c=r&&s.timestamp-X.timestamp>r;(u||c)&&ul(!0)}};for(var ne,ie=function(e){al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Mutation},e)})},oe=function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Scroll},e)})},se=function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.CanvasMutation},e)})},ae=new ol({mutationCb:ie,adoptedStyleSheetCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.AdoptedStyleSheet},e)})}}),ue=new Wc({mirror:pl,mutationCb:ie,stylesheetManager:ae,recordCrossOriginIframes:D,wrappedEmit:al}),ce=Jm(V||[]);!(ne=ce()).done;){var le=ne.value;le.getMirror&&le.getMirror({nodeMirror:pl,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var he=new sl;cl=new il({recordCanvas:F,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:pl,sampling:E.canvas,dataURLOptions:O});var pe=new Hc({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:w,recordCanvas:F,inlineImages:z,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ae,canvasManager:cl,keepIframeSrcFn:H,processedNodeManager:he},mirror:pl});ul=function(e){if(void 0===e&&(e=!1),R){al({type:Tc.Meta,data:{href:window.location.href,width:Ry(),height:Ay()}},e),ae.reset(),pe.init(),Bc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new ir:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,u=void 0===a?null:a,c=r.maskTextClass,l=void 0===c?"rr-mask":c,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,b=r.maskAllInputs,_=void 0!==b&&b,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,I=r.onSerialize,O=r.onIframeLoad,T=r.iframeLoadTimeout,A=r.onStylesheetLoad,R=r.stylesheetLoadTimeout,M=r.keepIframeSrcFn;return Lv(e,{doc:e,mirror:i,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===_?{password:!0}:_,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:I,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:void 0===M?function(){return!1}:M,newlyAddedElement:!1})}(document,{mirror:pl,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:w,slimDOM:ee,dataURLOptions:O,recordCanvas:F,inlineImages:z,onSerialize:function(e){Ly(e,pl)&&ue.addIframe(e),jy(e,pl)&&ae.trackLinkElement(e),$y(e)&&pe.addShadowRoot(xc.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ae.attachLinkElement(e,t)},keepIframeSrcFn:H});if(!t)return console.warn("Failed to snapshot the document");al({type:Tc.FullSnapshot,data:{node:t,initialOffset:Ty(window)}},e),Bc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ae.adoptStyleSheets(document.adoptedStyleSheets,pl.getId(document))}};try{var fe=[],de=function(e){var t;return Uc(tb)({mutationCb:ie,mousemoveCb:function(e,t){return al({type:Tc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.ViewportResize},e)})},inputCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Input},e)})},mediaInteractionCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.MediaInteraction},e)})},styleSheetRuleCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.StyleSheetRule},e)})},styleDeclarationCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Font},e)})},selectionCb:function(e){al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.Selection},e)})},customElementCb:function(e){al({type:Tc.IncrementalSnapshot,data:Bm({source:Ac.CustomElement},e)})},blockClass:o,ignoreClass:c,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:R,recordCanvas:F,inlineImages:z,userTriggeredOnInput:$,collectFonts:B,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:H,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:pl,iframeManager:ue,stylesheetManager:ae,shadowDomManager:pe,processedNodeManager:he,canvasManager:cl,ignoreCSSAttributes:Z,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return al({type:Tc.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{fe.push(de(e.contentDocument))}catch(t){console.warn(t)}});var ge=function(){ul(),fe.push(de(document)),ll=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(Ey("DOMContentLoaded",function(){al({type:Tc.DomContentLoaded,data:{}}),"DOMContentLoaded"===L&&ge()})),fe.push(Ey("load",function(){al({type:Tc.Load,data:{}}),"load"===L&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(t){String(t).toLowerCase().includes("cross-origin")||console.warn(t)}}),he.destroy(),ll=!1,$c=void 0}}catch(ve){console.warn(ve)}}function cb(e,t){vl.add(e,t),ml||(ml=bl(vl.drain))}function lb(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function hb(){for(var e=0;e<this.chain.length;e++)pb(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function pb(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=lb(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(o){r.reject(o)}}function fb(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=lb(e))?cb(function(){var n=new mb(r);try{t.call(e,function(){fb.apply(n,arguments)},function(){db.apply(n,arguments)})}catch(i){db.call(n,i)}}):(r.msg=e,r.state=1,r.chain.length>0&&cb(hb,r))}catch(n){db.call(new mb(r),n)}}}function db(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&cb(hb,t))}function gb(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function mb(e){this.def=e,this.triggered=!1}function vb(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function yb(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new vb(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&cb(hb,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){fb.call(t,e)},function(e){db.call(t,e)})}catch(r){db.call(t,r)}}function bb(e,t,r){var n=function(e){Vl.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Vl.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(r){n(r)}return null},parse:function(t){try{return zl.JSONDecode(e.getItem(t))||{}}catch(r){}return null},set:function(t,r){try{e.setItem(t,r)}catch(i){n(i)}},remove:function(t){try{e.removeItem(t)}catch(r){n(r)}}}}function _b(e,t){Rb(!0,e,t)}function wb(e,t){Rb(!1,e,t)}function kb(e,t){return"1"===Ab(e,t)}function Sb(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Bt,r=t.navigator||{},n=!1;return zl.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){zl.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return Vl.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Ab(e,t);return r&&Vl.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function xb(e){return Mb(e,function(e){return this.get_config(e)})}function Cb(e){return Mb(e,function(e){return this._get_config(e)})}function Eb(e){return Mb(e,function(e){return this._get_config(e)})}function Ib(e,t){Ob(t=t||{}).remove(Tb(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Ob(e){return"localStorage"===(e=e||{}).persistenceType?zl.localStorage:zl.cookie}function Tb(e,t){return((t=t||{}).persistencePrefix||yh)+e}function Ab(e,t){return Ob(t).get(Tb(e,t))}function Rb(e,t,r){zl.isString(t)&&t.length?(Ob(r=r||{}).set(Tb(t,r),e?1:0,zl.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Vl.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Mb(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Sb(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){Vl.error("Unexpected error when checking tracking opt-out status: "+c)}if(!r)return e.apply(this,arguments);var u=arguments[arguments.length-1];"function"==typeof u&&u(0)}}function Fb(e){for(var t={},r=Nb(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Nb(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Db(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Bb(e));return e}function Pb(e,t,r,n,i,o){var s={$classes:Nb(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Vb(e,t,i,o)&&zl.each(Kh.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Wb(n)&&(s["$attr-"+t]=n)}});for(var u=1,c=1,l=e;l=Db(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Lb(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,u=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,l={};zl.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(zb(p)&&(p=p.parentNode),function(e,t){if(!e||qb(e,"html")||!Bb(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Wh;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Lh:t.type===jh;case"select":case"textarea":return t.type===Lh;default:return t.type===jh}}(p,e)&&$b(p,e,r,n)&&!Ub(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!qb(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(zl.each(f,function(t){var i=Vb(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Wb(g)&&g),Ub(t,e,o,s)&&(v=!0),m.push(Pb(t,e,l,u,r,n))},this),!v){var y=Fl.documentElement;if(h={$event_type:e.type,$host:Bt.location.host,$pathname:Bt.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,Bt.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,Bt.innerWidth||0),$pageHeight:Fl.body.offsetHeight||0,$pageWidth:Fl.body.offsetWidth||0},zl.each(u,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Wb(t)&&(h["$el_attr__"+e]=t)}}),a&&(b=jb(p,e,r,n))&&b.length&&(h.$el_text=b),e.type===jh&&(zl.each(Gh,function(t){t in e&&(h["$"+t]=e[t])}),c&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(qb(i,"a")||qb(i,"button")||qb(i,"input")||qb(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var b=jb(p,e,r,n);b&&b.length&&(h.$el_text=b)}if(p){if(!$b(p,e,r,n)||Ub(p,e,o,s))return null;var _=Pb(p,e,l,u,r,n);h.$target=_,h.$el_classes=_.$classes,zl.extend(h,zl.strip_empty_properties({$el_id:_.$id,$el_tag_name:_.$tag_name}))}}}return h}function jb(e,t,r,n){var i="";return Vb(e,t,r,n)&&e.childNodes&&e.childNodes.length&&zl.each(e.childNodes,function(e){zb(e)&&e.textContent&&(i+=zl.trim(e.textContent).split(/(\s+)/).filter(Wb).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),zl.trim(i)}function $b(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(s){return np.critical("Error while checking element in allowElementCallback",s),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(s){np.critical("Error while checking selector: "+o,s)}}return!1}function Ub(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(a){return np.critical("Error while checking element in blockElementCallback",a),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(a){np.critical("Error while checking selector: "+o,a)}}var s=Fb(e);for(i=0;i<Yh.length;i++)if(s[Yh[i]])return!0;return!1}function Bb(e){return e&&1===e.nodeType}function qb(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function zb(e){return e&&3===e.nodeType}function Vb(e,t,r,n){var i;if(!$b(e,t,r,n))return!1;for(var o=e;o.parentNode&&!qb(o,"body");o=o.parentNode){var s=Fb(o);for(i=0;i<Jh.length;i++)if(s[Jh[i]])return!1}var a=Fb(e);for(i=0;i<Zh.length;i++)if(a[Zh[i]])return!0;if(qb(e,"input")||qb(e,"select")||qb(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var u=e.type||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}var c=e.name||e.id||"";return"string"!=typeof c||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(c.replace(/[^a-zA-Z0-9]/g,""))}function Wb(e){if(null===e||zl.isUndefined(e))return!1;if("string"==typeof e){if(e=zl.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function Hb(e){var t="onscrollend"in Bt,r=Gl(e),n=zh;if(!t){var i=null;r=Gl(function(){clearTimeout(i),i=setTimeout(e,100)}),n=Vh}return{listener:r,eventType:n}}function Gb(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<tp.length;t++)if(e.hasAttribute(tp[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");return!!t&&Xh[t.trim().split(/\s+/)[0].toLowerCase()]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Zb(){this.clicks=[]}function Yb(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}function Jb(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}function Kb(e,t){t()}function Xb(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){var n,i,o,s;e=e||{};const a=null!==(n=null!==(i=e.random)&&void 0!==i?i:null===(o=(s=e).rng)||void 0===o?void 0:o.call(s))&&void 0!==n?n:crypto.getRandomValues(Df);if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return(Nf[e[t+0]]+Nf[e[t+1]]+Nf[e[t+2]]+Nf[e[t+3]]+"-"+Nf[e[t+4]]+Nf[e[t+5]]+"-"+Nf[e[t+6]]+Nf[e[t+7]]+"-"+Nf[e[t+8]]+Nf[e[t+9]]+"-"+Nf[e[t+10]]+Nf[e[t+11]]+Nf[e[t+12]]+Nf[e[t+13]]+Nf[e[t+14]]+Nf[e[t+15]]).toLowerCase()}(a)}(e,t,r):crypto.randomUUID()}function Qb(){return Xb()}function e_(e=("undefined"!=typeof navigator?navigator.userAgent:"")){const t=e.toLowerCase();return t?/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(t)?"tablet":/mobile|iphone|ipod|android|blackberry|iemobile|opera mini|windows phone/.test(t)?"mobile":"desktop":"desktop"}function t_(){const e=new p;let t=e.getItem("localLogicDevice");return t||(t=function(){let e;try{e=`$device:${Qb()}`}catch(t){e=`$device:default-${Date.now()}-${Math.random().toString(36).substring(2,15)}`}return e}(),e.setItem("localLogicDevice",t)),t}function r_(){const e=(new Date).toISOString();let t;try{t=`$session:${Qb()}`}catch(r){t=`$session:default-${Date.now()}-${Math.random().toString(36).substring(2,15)}`}return{sessionId:t,startTime:e,endTime:e}}function n_(){const e=new p,t=new Date,r=e.getItem("localLogicSession");let n;return r?(n=JSON.parse(r),n.endTime&&t.getTime()-new Date(n.endTime).getTime()>=18e5?n=r_():n.endTime=t.toISOString()):n=r_(),e.setItem("localLogicSession",JSON.stringify(n)),n.sessionId}function i_(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return function(e){return e==+e?0===e&&1/e<0?"-0":""+e:"NaN"}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return id.call(e).replace(od,"Symbol($1)");let n=td.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+rd.call(e)+"]":"RegExp"===n?nd.call(e):null}function o_(e,t){let r=i_(e,t);return null===r?JSON.stringify(e,function(e,r){let n=i_(this[e],t);return null===n?r:n},2):r}function s_(e){return null==e?[]:[].concat(e)}function a_(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},s,a){let{name:u,test:c,params:l,message:h,skipAbsent:p}=e,{parent:f,context:d,abortEarly:g=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n,v={value:t,parent:f,context:d};function y(e={}){let n=u_(Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},l,e.params),v),s=new hd(hd.formatError(e.message||h,n),t,n.path,e.type||u,n.disableStackTrace);return s.params=n,s}let b,_=g?s:a,w={path:r,parent:f,type:u,from:n.from,createError:y,resolve:e=>c_(e,v),options:n,originalValue:i,schema:o},k=e=>{hd.isError(e)?_(e):e?a(null):_(y())},S=e=>{hd.isError(e)?_(e):s(e)};if(p&&xd(t))return k(!0);try{var x;if(b=c.call(w,t,w),"function"==typeof(null===(x=b)||void 0===x?void 0:x.then)){if(n.sync)throw Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(b).then(k,S)}}catch(e){return void S(e)}k(b)}return t.OPTIONS=e,t}function u_(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=c_(e[r],t);return e}function c_(e,t){return Sd.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function l_(e,t,r,n=r){let i,o,s;return t?((0,Xf.forEach)(t,(a,u,c)=>{let l=u?a.slice(1,a.length-1):a,h="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||h){if(h&&!c)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r&&(r=r[p]),e=h?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r&&(r=r[l]),e=e.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}function h_(e,t=new Map){if(_d(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=h_(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(let[n,i]of e.entries())r.set(n,h_(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let n of e)r.add(h_(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(let[n,i]of Object.entries(e))r[n]=h_(i,t)}return r}function p_(e){if(null==e||!e.length)return;let t=[],r="",n=!1,i=!1;for(let o=0;o<e.length;o++){let s=e[o];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||n||i?r+=s:r&&(t.push(r),r=""):i=!i:(r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1):(r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0)}return r&&t.push(...r.split(".").filter(Boolean)),t}function f_(e,t){var r;if((null==(r=e.inner)||!r.length)&&e.errors.length)return function(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:p_(r)}))}(e,t);let n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>f_(e,n))}function d_(e){return new Od(e)}function g_(){return new Td}function m_(e){var t,r;let n=Ad.exec(e);return n?{year:v_(n[1]),month:v_(n[2],1)-1,day:v_(n[3],1),hour:v_(n[4]),minute:v_(n[5]),second:v_(n[6]),millisecond:n[7]?v_(n[7].substring(0,3)):0,precision:null!==(t=null===(r=n[7])||void 0===r?void 0:r.length)&&void 0!==t?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:v_(n[10]),minuteOffset:v_(n[11])}:null}function v_(e,t=0){return Number(e)||t}function y_(){return new Ld}function b_(){return new $d}function __(){return new qd}function w_(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function k_(e){return(t,r)=>w_(e,t)-w_(e,r)}function S_(e){if("fields"in e){let t={};for(let[r,n]of Object.entries(e.fields))t[r]=S_(n);return e.setFields(t)}if("array"===e.type){let t=e.optional();return t.innerType&&(t.innerType=S_(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(S_)}):"optional"in e?e.optional():e}function x_(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}function C_(e){return new Gd(e)}function E_(e){return new Zd(e)}function I_(e){return new Yd(e)}function O_(e,t){if(!e)return!1;let r=0;return Object.values(e).forEach(e=>{r+=(null==e?void 0:e.length)||0}),r>=t}function T_(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function A_(e,t){return 0===t?e:Math.round((r=e+255*t,n=5,i=250,Math.min(Math.max(r,n),i)));var r,n,i}function R_(e,t){const r={};if(zg.test(e))Object.entries(t).reduce((t,[r,n])=>(t[r]=function(e,t){if(!zg.test(e))return e;const r=e.match(/\w\w/g);if(!r)return e;const[n,i,o]=r.map(e=>parseInt(e,16));return`#${[A_(n,t),A_(i,t),A_(o,t)].map(e=>Math.round(e).toString(16).padStart(2,"0")).join("")}`.toUpperCase()}(e,n),t),r);else if(Vg.test(e)){const[n,i,o]=e.replace(/[^\d,]/g,"").split(",").map(Number);Object.entries(t).reduce((e,[t,r])=>(e[t]=function(e,t,r,n){return`rgb(${A_(e,n)}, ${A_(t,n)}, ${A_(r,n)})`}(n,i,o,r),e),r)}else Object.entries(t).reduce((t,[r])=>(t[r]=e,t),r);return r}return e({c:n_,d:wm,f:_m,h:function(e,t){return function(e,t,r){var n,i,o,s,u,c;const l=le(),p=pe(),d=a(r),g=d.defaultQueryOptions(e);null===(n=d.getDefaultOptions().queries)||void 0===n||null===(i=n._experimental_beforeQuery)||void 0===i||i.call(n,g),g._optimisticResults=l?"isRestoring":"optimistic",me(g),fe(g,p),de(p);const m=!d.getQueryCache().get(g.queryHash),[v]=A.useState(()=>new t(d,g)),y=v.getOptimisticResult(g),b=!l&&!1!==e.subscribed;if(A.useSyncExternalStore(A.useCallback(e=>{const t=b?v.subscribe(h.batchCalls(e)):I;return v.updateResult(),t},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),A.useEffect(()=>{v.setOptions(g)},[g,v]),ye(g,y))throw be(g,v,p);if(ge({result:y,errorResetBoundary:p,throwOnError:g.throwOnError,query:d.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw y.error;return null===(o=d.getDefaultOptions().queries)||void 0===o||null===(s=o._experimental_afterQuery)||void 0===s||s.call(o,g,y),g.experimental_prefetchInRender&&!f&&ve(y,l)&&(null===(u=m?be(g,v,p):null===(c=d.getQueryCache().get(g.queryHash))||void 0===c?void 0:c.promise)||void 0===u||u.catch(I).finally(()=>{v.updateResult()})),g.notifyOnChangeProps?y:v.trackResult(y)}(e,ae,t)},l:Om,m:mm,o:function(e){try{Ff.init(e,{track_pageview:!1,persistence:"localStorage"})}catch(t){}},p:vm,u:Im}),{setters:[function(e){n=e.a,i=e.t},function(e){o=e.l},function(e){s=e.$,a=e.K,u=e.Q,c=e.X,l=e.Y,h=e.Z,p=e.a,f=e.at,d=e.ct,g=e.dt,m=e.et,v=e.ft,y=e.gt,b=e.ht,_=e.lt,w=e.mt,k=e.nt,S=e.ot,x=e.pt,C=e.q,E=e.rt,I=e.st,O=e.tt,T=e.ut}],execute:function(){A=n(o()),e("b",R=(e,r,n,i)=>{var o,s,a;const u=[n,t({code:r},i||{})];if(null!=e&&null!==(o=e.services)&&void 0!==o&&null!==(o=o.logger)&&void 0!==o&&o.forward)return e.services.logger.forward(u,"warn","react-i18next::",!0);j(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),null!=e&&null!==(s=e.services)&&void 0!==s&&null!==(s=s.logger)&&void 0!==s&&s.warn?e.services.logger.warn(...u):null!==(a=console)&&void 0!==a&&a.warn&&console.warn(...u)}),M={},e("x",F=(e,t,r,n)=>{j(r)&&M[r]||(j(r)&&(M[r]=new Date),R(e,t,r,n))}),N=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},D=(e,t,r)=>{e.loadNamespaces(t,N(e,r))},P=(e,t,r,n)=>{if(j(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return D(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,N(e,n))},L=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(F(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),e("y",j=e=>"string"==typeof e),e("v",$=e=>"object"==typeof e&&null!==e),e("_",U=(0,A.createContext)()),B=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},q=(e,t)=>{const r=(0,A.useRef)();return(0,A.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current},z=(e,t,r,n)=>e.getFixedT(t,r,n),V=(e,t,r,n)=>(0,A.useCallback)(z(e,t,r,n),[e,t,r,n]),e("g",(e,r={})=>{var n,i,o,s;const{i18n:a}=r,{i18n:u,defaultNS:c}=(0,A.useContext)(U)||{},l=a||u||b();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new B),!l){F(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>j(t)?t:$(t)&&j(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}null!==(n=l.options.react)&&void 0!==n&&n.wait&&F(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h=t(t(t({},y()),l.options.react),r),{useSuspense:p,keyPrefix:f}=h;let d=e||c||(null===(i=l.options)||void 0===i?void 0:i.defaultNS);d=j(d)?[d]:d||["translation"],null===(o=(s=l.reportNamespaces).addUsedNamespaces)||void 0===o||o.call(s,d);const g=(l.isInitialized||l.initializedStoreOnce)&&d.every(e=>L(e,l,h)),m=V(l,r.lng||null,"fallback"===h.nsMode?d:d[0],f),v=()=>m,_=()=>z(l,r.lng||null,"fallback"===h.nsMode?d:d[0],f),[w,k]=(0,A.useState)(v);let S=d.join();r.lng&&(S=`${r.lng}${S}`);const x=q(S),C=(0,A.useRef)(!0);(0,A.useEffect)(()=>{const{bindI18n:e,bindI18nStore:t}=h;C.current=!0,g||p||(r.lng?P(l,r.lng,d,()=>{C.current&&k(_)}):D(l,d,()=>{C.current&&k(_)})),g&&x&&x!==S&&C.current&&k(_);const n=()=>{C.current&&k(_)};return e&&(null==l||l.on(e,n)),t&&(null==l||l.store.on(t,n)),()=>{C.current=!1,l&&e&&(null==e||e.split(" ").forEach(e=>l.off(e,n))),t&&l&&t.split(" ").forEach(e=>l.store.off(e,n))}},[l,S]),(0,A.useEffect)(()=>{C.current&&g&&k(v)},[l,f,g]);const E=[w,l,g];if(E.t=w,E.i18n=l,E.ready=g,g)return E;if(!g&&!p)return E;throw new Promise(e=>{r.lng?P(l,r.lng,d,()=>e()):D(l,d,()=>e())})}),W=new WeakMap,H=new WeakMap,G=new WeakMap,Z=new WeakMap,Y=new WeakMap,J=new WeakMap,K=new WeakMap,X=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakSet,ae=class extends w{constructor(e,t){super(),c(this,se),E(this,W,void 0),E(this,H,void 0),E(this,G,void 0),E(this,Z,void 0),E(this,Y,void 0),E(this,J,void 0),E(this,K,void 0),E(this,X,void 0),E(this,Q,void 0),E(this,ee,void 0),E(this,te,void 0),E(this,re,void 0),E(this,ne,void 0),E(this,ie,void 0),E(this,oe,new Set),this.options=t,O(W,this,e),O(X,this,null),O(K,this,u()),this.options.experimental_prefetchInRender||m(K,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(m(H,this).addObserver(this),rm(m(H,this),this.options)?k(se,this,Gg).call(this):this.updateResult(),k(se,this,Kg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nm(m(H,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nm(m(H,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,k(se,this,Xg).call(this),k(se,this,Qg).call(this),m(H,this).removeObserver(this)}setOptions(e){const t=this.options,r=m(H,this);if(this.options=m(W,this).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof _(this.options.enabled,m(H,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");k(se,this,em).call(this),m(H,this).setOptions(this.options),t._defaulted&&!g(this.options,t)&&m(W,this).getQueryCache().notify({type:"observerOptionsUpdated",query:m(H,this),observer:this});const n=this.hasListeners();n&&im(m(H,this),r,this.options,t)&&k(se,this,Gg).call(this),this.updateResult(),!n||m(H,this)===r&&_(this.options.enabled,m(H,this))===_(t.enabled,m(H,this))&&T(this.options.staleTime,m(H,this))===T(t.staleTime,m(H,this))||k(se,this,Zg).call(this);const i=k(se,this,Yg).call(this);!n||m(H,this)===r&&_(this.options.enabled,m(H,this))===_(t.enabled,m(H,this))&&i===m(ie,this)||k(se,this,Jg).call(this,i)}getOptimisticResult(e){const t=m(W,this).getQueryCache().build(m(W,this),e),r=this.createResult(t,e);var n;return n=r,g(this.getCurrentResult(),n)||(O(Z,this,r),O(J,this,this.options),O(Y,this,m(H,this).state)),r}getCurrentResult(){return m(Z,this)}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),null==t||t(r),Reflect.get(e,r))})}trackProp(e){m(oe,this).add(e)}getCurrentQuery(){return m(H,this)}refetch(e={}){let r=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return this.fetch(t({},r))}fetchOptimistic(e){const t=m(W,this).defaultQueryOptions(e),r=m(W,this).getQueryCache().build(m(W,this),t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){var r;return k(se,this,Gg).call(this,t(t({},e),{},{cancelRefetch:null===(r=e.cancelRefetch)||void 0===r||r})).then(()=>(this.updateResult(),m(Z,this)))}createResult(e,r){const n=m(H,this),i=this.options,o=m(Z,this),s=m(Y,this),a=m(J,this),c=e!==n?e.state:m(G,this),{state:h}=e;let p,f=t({},h),g=!1;if(r._optimisticResults){const o=this.hasListeners(),s=!o&&rm(e,r),a=o&&im(e,n,r,i);(s||a)&&(f=t(t({},f),l(h.data,e.options))),"isRestoring"===r._optimisticResults&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=f;p=f.data;let w=!1;if(void 0!==r.placeholderData&&void 0===p&&"pending"===b){var k;let e;null!=o&&o.isPlaceholderData&&r.placeholderData===(null==a?void 0:a.placeholderData)?(e=o.data,w=!0):e="function"==typeof r.placeholderData?r.placeholderData(null===(k=m(te,this))||void 0===k?void 0:k.state.data,m(te,this)):r.placeholderData,void 0!==e&&(b="success",p=d(null==o?void 0:o.data,e,r),g=!0)}if(r.select&&void 0!==p&&!w)if(o&&p===(null==s?void 0:s.data)&&r.select===m(Q,this))p=m(ee,this);else try{O(Q,this,r.select),p=r.select(p),p=d(null==o?void 0:o.data,p,r),O(ee,this,p),O(X,this,null)}catch(A){O(X,this,A)}m(X,this)&&(v=m(X,this),p=m(ee,this),y=Date.now(),b="error");const S="fetching"===f.fetchStatus,x="pending"===b,C="error"===b,E=x&&S,I=void 0!==p,T={status:b,fetchStatus:f.fetchStatus,isPending:x,isSuccess:"success"===b,isError:C,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:C&&!I,isPaused:"paused"===f.fetchStatus,isPlaceholderData:g,isRefetchError:C&&I,isStale:om(e,r),refetch:this.refetch,promise:m(K,this),isEnabled:!1!==_(r.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===T.status?e.reject(T.error):void 0!==T.data&&e.resolve(T.data)},r=()=>{t(O(K,this,T.promise=u()))},i=m(K,this);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==T.status&&T.data===i.value||r();break;case"rejected":"error"===T.status&&T.error===i.reason||r()}}return T}updateResult(){const e=m(Z,this),t=this.createResult(m(H,this),this.options);if(O(Y,this,m(H,this).state),O(J,this,this.options),void 0!==m(Y,this).data&&O(te,this,m(H,this)),g(t,e))return;O(Z,this,t);k(se,this,tm).call(this,{listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!m(oe,this).size)return!0;const n=new Set(null!=r?r:m(oe,this));return this.options.throwOnError&&n.add("error"),Object.keys(m(Z,this)).some(t=>{const r=t;return m(Z,this)[r]!==e[r]&&n.has(r)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&k(se,this,Kg).call(this)}},ue=C(),ce=A.createContext(!1),le=()=>A.useContext(ce),ce.Provider,he=A.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),pe=()=>A.useContext(he),fe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},de=e=>{A.useEffect(()=>{e.clearReset()},[e])},ge=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||v(r,[e.error,n])),me=e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(null!=e?e:1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},ve=(e,t)=>e.isLoading&&e.isFetching&&!t,ye=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,be=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),_e=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/RequestError"}},we=e=>({post:async function(t,r){const n=await fetch(`https://analytics.locallogic.co/track-v2${t}`,{body:JSON.stringify(r),headers:{Accept:"application/json",Authorization:e,"Content-type":"application/json"},method:"POST"});if(!n.ok){var i;let e;try{e=await n.json()}catch(o){}const t=null!==(i=e)&&void 0!==i&&i.message?e.message:"";if("unauthorized"!==t.toLowerCase())throw new _e(`Could not post tracking event: ${t}`)}}}),ke=i((e,t)=>{function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),l=new r(512);function h(e){return u.get(e)||u.set(e,p(e).map(function(e){return e.replace(a,"$2")}))}function p(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}t.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=h(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||i.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),o=!(s=f(n))&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}}),Se=i((e,t)=>{var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(r)||[],i=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),s=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");t.exports={words:n,upperFirst:i,camelCase:s,pascalCase:e=>i(s(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>i(o(e," ")),titleCase:e=>n(e).map(i).join(" ")}}),xe=i((e,t)=>{function r(e,t){var r=e.length,n=new Array(r),i={},o=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||u(e[o],o,new Set);return n;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(Lf){c=""}throw new Error("Cyclic dependency"+c)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var h=l[--t];u(h,a.get(h),o)}while(t);o.delete(e)}n[--r]=e}}}t.exports=function(e){return r(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},t.exports.array=r}),Ce=ke(),Ee=Se(),Ie=n(xe()),Oe=Object.prototype.toString,Te=Error.prototype.toString,Ae=RegExp.prototype.toString,Re="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Me=/^Symbol\((.*)\)(.*)$/,Pe=/\$\{\s*(\w+)\s*\}/g,Fe=Symbol.toStringTag,Le=class{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Fe]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],um(e).forEach(e=>{if(je.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}},Ne=Symbol.hasInstance,De=Symbol.toStringTag,je=class e extends Error{static formatError(e,t){const r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(Pe,(e,r)=>am(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(t,r,n,i,o){const s=new Le(t,r,n,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[De]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,e)}static[Ne](e){return Le[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},$e={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=null!=n&&n!==r?` (cast from the value \`${am(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${am(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${am(r,!0)}\``+i}},Ue={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Be={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},qe={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ze={isValue:"${path} field must be ${value}"},Ve={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},We={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},He={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${am(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${am(r,!0)}\``}return je.formatError($e.notType,e)}},Object.assign(Object.create(null),{mixed:$e,string:Ue,number:Be,date:qe,object:Ve,array:We,boolean:ze,tuple:He}),Ge=e=>e&&e.__isYupSchema__,Ze=class e{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new e(t,(e,t)=>{var r;let n=s(...e)?i:o;return null!=(r=null==n?void 0:n(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!Ge(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}},Ye={context:"$",value:"."},Je=class{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ye.context,this.isValue=this.key[0]===Ye.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Ye.context:this.isValue?Ye.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Ce.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}},Je.prototype.__isYupRef=!0,Ke=e=>null==e,Xe=class e extends Set{describe(){const e=[];for(const t of this.values())e.push(Je.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const r of this.values())t.push(e(r));return t}clone(){return new e(this.values())}merge(e,t){const r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}},Qe=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Xe,this._blacklist=new Xe,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError($e.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=fm(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();return r.spec=Object.assign({},t.spec,r.spec),r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&Ke(i))return i;let o=am(e),s=am(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(s!==o?`result of cast: ${s}`:""))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:u},r,e=>{if(e.length)return n(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:s,path:a,options:u}=e,c=e=>{n||(n=!0,t(e,o))},l=e=>{n||(n=!0,r(e,o))},h=i.length,p=[];if(!h)return l([]);let f={value:o,originalValue:s,path:a,options:u,schema:this};for(let d=0;d<i.length;d++){(0,i[d])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--h<=0&&l(p)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){const s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const a="number"==typeof s;let u=r[s];const c=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${n||""}[${a?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),i=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise((r,o)=>n._validate(e,t,(e,t)=>{je.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new je(e,t,void 0,void 0,i)):r(t)}))}validateSync(e,t){var r;let n,i=this.resolve(Object.assign({},t,{value:e})),o=null!=(r=null==t?void 0:t.disableStackTrace)?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw je.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new je(t,e,void 0,void 0,o);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(je.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(r){if(je.isError(r))return!1;throw r}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):fm(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const r=this.clone({nullable:e});return r.internalTests.nullable=cm({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){const r=this.clone({optional:e});return r.internalTests.optionality=cm({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=$e.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=$e.notNull){return this.nullability(!1,e)}required(e=$e.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=$e.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=cm(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=um(e).map(e=>new Je(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new Ze(n,t):Ze.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=cm({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=$e.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=cm({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=$e.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=cm({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const r=t.OPTIONS.params&&e?lm(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(r){if(r instanceof je)return{issues:gm(r)};throw r}}}}},Qe.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Qe.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:s}=pm(this,t,r,n.context);return s[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])Qe.prototype[e]=Qe.prototype.oneOf;for(const e of["not","nope"])Qe.prototype[e]=Qe.prototype.notOneOf;for((et=()=>!0,tt=class extends Qe{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:et},e))}},mm.prototype=tt.prototype,rt=class extends Qe{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=ze.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Ke(e)||!0===e})}isFalse(e=ze.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Ke(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}},vm.prototype=rt.prototype,nt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/,it=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ot=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,st=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,at=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),ut=e=>Ke(e)||e===e.trim(),ct={}.toString(),lt=class extends Qe{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===ct?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||$e.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=Ue.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=Ue.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=Ue.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||Ue.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=Ue.email){return this.matches(it,{name:"email",message:e,excludeEmptyString:!0})}url(e=Ue.url){return this.matches(ot,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Ue.uuid){return this.matches(st,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(at,{name:"datetime",message:n||Ue.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ue.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const r=ym(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||Ue.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;const t=ym(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=Ue.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:ut})}lowercase(e=Ue.lowercase){return this.transform(e=>Ke(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Ke(e)||e===e.toLowerCase()})}uppercase(e=Ue.uppercase){return this.transform(e=>Ke(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Ke(e)||e===e.toUpperCase()})}},_m.prototype=lt.prototype,ht=e=>e!=+e,pt=class extends Qe{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!ht(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=Be.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=Be.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=Be.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=Be.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=Be.positive){return this.moreThan(0,e)}negative(e=Be.negative){return this.lessThan(0,e)}integer(e=Be.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>Ke(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>Ke(t)?t:Math[e](t))}},wm.prototype=pt.prototype,ft=new Date(""),dt=e=>"[object Date]"===Object.prototype.toString.call(e),gt=class e extends Qe{constructor(){super({type:"date",check:e=>dt(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||null===t?t:(t=function(e){const t=ym(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(t),isNaN(t)?e.INVALID_DATE:new Date(t)))})}prepareParam(e,t){let r;if(Je.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=qe.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=qe.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}},gt.INVALID_DATE=ft,km.prototype=gt.prototype,km.INVALID_DATE=ft,mt=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(i){}return r.isType(n)?n:e},vt=(e,t)=>{const r=[...(0,Ce.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,Ce.getter)((0,Ce.join)(r),!0)(e);return!(!i||!(n in i))},yt=e=>"[object Object]"===Object.prototype.toString.call(e),bt=xm([]),_t=class extends Qe{constructor(e){super({type:"object",check:e=>yt(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=bt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),a={},u=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),c=!1;for(const l of s){let e=i[l],r=l in n;if(e){let r,i=n[l];u.path=(t.path?`${t.path}.`:"")+l,e=e.resolve({value:i,context:t.context,parent:a});let o=e instanceof Qe?e.spec:void 0,s=null==o?void 0:o.strict;if(null!=o&&o.strip){c=c||l in n;continue}r=t.__validating&&s?n[l]:e.cast(n[l],u),void 0!==r&&(a[l]=r)}else r&&!o&&(a[l]=n[l]);r===l in a&&a[l]===n[l]||(c=!0)}return c?a:n}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!s||!yt(i))return void n(e,i);o=o||i;let a=[];for(let r of this._nodes){let e=this.fields[r];e&&!Je.isRef(e)&&a.push(e.asNestedTest({options:t,key:r,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[n,i]of Object.entries(this.fields)){const e=r[n];r[n]=void 0===e?i:e}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,Ce.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(const s of Object.keys(e)){let t=e[s];n.add(s),Je.isRef(t)&&t.isSibling?o(t.path,s):Ge(t)&&"deps"in t&&t.deps.forEach(e=>o(e,s))}return Ie.default.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=xm(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return Cm(this)}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){const t=[];for(const r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,Ce.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return vt(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(mt)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Ve.exact,test(e){if(null==e)return!0;const t=Em(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=Ve.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const r=Em(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=Ve.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const r={};for(const n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(Ee.camelCase)}snakeCase(){return this.transformKeys(Ee.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Ee.snakeCase)(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}},Im.prototype=_t.prototype,wt=class extends Qe{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1;const i=r.map((e,r)=>{const i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){var i;let o=this.innerType,s=null!=(i=t.recursive)?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(i,a)=>{var u;if(!s||!o||!this._typeCheck(a))return void n(i,a);let c=new Array(a.length);for(let r=0;r<a.length;r++){var l;c[r]=o.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e})}this.runTests({value:a,tests:c,originalValue:null!=(u=t.originalValue)?u:e,options:t},r,e=>n(e.concat(i),a))})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(mt)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Ge(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+am(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=We.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||We.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||We.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}},Om.prototype=wt.prototype,kt=class extends Qe{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(He.notType)})}_cast(e,t){const{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1;const o=r.map((e,r)=>{const o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,s)=>{var a;if(!this._typeCheck(s))return void n(o,s);let u=[];for(let[r,n]of i.entries()){var c;u[r]=n.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:s,tests:u,originalValue:null!=(a=t.originalValue)?a:e,options:t},r,e=>n(e.concat(o),s))})}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}},Tm.prototype=kt.prototype,St=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/UnknownError"}},xt=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/ValidationError"}},Ct=e=>{if(e instanceof je)throw new xt(e.message);if(e instanceof _e)throw new _e(e.message);throw new St(e.message)},Et=(e,t,r)=>{const n=r.value;return r.value=function(...e){try{const t=n.apply(this,e);return t&&t instanceof Promise?t.catch(e=>{Ct(e)}):t}catch(t){Ct(t)}},r},It=["1.0.0"],Ot=Im({event_type:_m().required(),event_version:_m().required().oneOf(It),isTestEvent:vm(),meta:Im({user_id:_m(),session_id:_m(),page_load_id:_m(),product_version:_m(),client_id:_m(),product_name:_m().required()}),attributes:Im({})}),Tt=e=>async t=>{const{event_type:r,isTestEvent:n,event_version:i,meta:o,attributes:s}=await Ot.validate(t);try{return await e.post("/record",{params:{event_type:r,event_version:i,isTestEvent:n,meta:o,attributes:s}})}catch(a){if(a instanceof TypeError&&(a.message.toLowerCase().includes("networkerror")||a.message.toLowerCase().includes("load failed")||a.message.toLowerCase().includes("failed to fetch")))return;if(a instanceof DOMException&&a.message.toLowerCase().includes("aborted")||a instanceof TypeError&&a.message.toLowerCase().includes("cancelled")||a instanceof TypeError&&a.message.toLowerCase().includes("annulé"))return;if(a instanceof _e)return;throw a}},function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);o>3&&s&&Object.defineProperty(t,r,s)}([Et],(At=class{constructor(e){this.requests=we(e)}postEvent(e){const r=t(t({},e),{},{meta:t(t({},e.meta),{},{event_time:new Date})});return Tt(this.requests)(r)}}).prototype,"postEvent",null),Rt=e=>new At(e),Mt={},(Ft={}).byteLength=Rm,Ft.toByteArray=Mm,Ft.fromByteArray=Dm,Nt=[],Dt=[],Pt="undefined"!=typeof Uint8Array?Uint8Array:Array,Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jt=0,64);jt<64;++jt)Nt[jt]=Lt[jt],Dt[Lt.charCodeAt(jt)]=jt;for(Dt["-".charCodeAt(0)]=62,Dt["_".charCodeAt(0)]=63,($t={}).read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,p=r?-1:1,f=e[t+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},$t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+h>=1?p/u:p*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*g},function(e){const t=Ft,r=$t,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;function u(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new o(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=u(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(s.isView(e))return function(e){if(J(e,o)){const t=new o(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,s)||e&&J(e.buffer,s))return d(e,t,r);if(void 0!==a&&(J(e,a)||e&&J(e.buffer,a)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|g(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?u(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return h(e),u(e<0?0:0|g(e))}function f(e){const t=e.length<0?0:0|g(e.length),r=u(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new o(e):void 0===r?new o(e,t):new o(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function g(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(s.isView(e)||J(e,s))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof o.prototype.indexOf?i?o.prototype.indexOf.call(e,t,r):o.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(K(n))return s;e[r+s]=n}return s}function k(e,t,r,n){return Y(G(t,e.length-r),e,r,n)}function S(e,t,r,n){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return Y(Z(t),e,r,n)}function C(e,t,r,n){return Y(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new o(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(Lf){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,o.prototype),Object.setPrototypeOf(c,o),c.alloc=function(e,t,r){return function(e,t,r){return h(e),e<=0?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}(e,t,r)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,o)&&(e=c.from(e,e.offset,e.byteLength)),J(t,o)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(J(t,o))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):o.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):v.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(J(e,o)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(s,a),l=this.slice(n,i),h=e.slice(t,r);for(let o=0;o<u;++o)if(l[o]!==h[o]){s=l[o],a=h[o];break}return s<a?-1:a<s?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=X[e[o]];return i}function M(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function P(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function $(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof o.prototype.copyWithin?this.copyWithin(t,r,n):o.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const U={};function B(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,i,o)}function V(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),B("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),B("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(Mt),Ut=Mt.Buffer,Bt="undefined"==typeof window?{crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:qt={hostname:""},referrer:""},screen:{width:0,height:0},location:qt,addEventListener:function(){},removeEventListener:function(){}}:window,zt=Object.defineProperty,Vt=function(e,t,r){return t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Wt=function(e,t,r){return Vt(e,"symbol"!==(void 0===t?"undefined":Gm(t))?t+"":t,r)},Gt=Object.defineProperty,Zt=function(e,t,r){return t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Yt=function(e,t,r){return Zt(e,"symbol"!==(void 0===t?"undefined":Gm(t))?t+"":t,r)},Jt=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Jt||{}),Kt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qt={},er=function(){return!!globalThis.Zone},tr={},rr={},nr={childNodes:rv,parentNode:nv,parentElement:iv,textContent:ov,contains:sv,getRootNode:av,host:uv,styleSheets:cv,shadowRoot:lv,querySelector:hv,querySelectorAll:pv,mutationObserver:fv,patch:dv},ir=function(){function e(){Yt(this,"idNodeMap",new Map),Yt(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}(),or="__rrweb_original__",sr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ar=/^(?:[a-z+]+:)?\/\//i,ur=/^www\..*/i,cr=/^(data:)([^,]*),(.*)/i,lr=1,hr=new RegExp("[^a-z0-9-_:]"),pr=-2,gr=/^[^ \t\n\r\u000c]+/,mr=/^[, \t\n\r\u000c]+/,vr=new WeakMap,yr={exports:{}},br=String,_r=function(){return{isColorSupported:!1,reset:br,bold:br,dim:br,italic:br,underline:br,inverse:br,hidden:br,strikethrough:br,black:br,red:br,green:br,yellow:br,blue:br,magenta:br,cyan:br,white:br,gray:br,bgBlack:br,bgRed:br,bgGreen:br,bgYellow:br,bgBlue:br,bgMagenta:br,bgCyan:br,bgWhite:br}},yr.exports=_r(),yr.exports.createColors=_r,wr=yr.exports,kr=$v(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Sr=wr,xr=kr,Cr=function(e){function t(r,n,i,o,s,a){var u=e.call(this,r)||this;return u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}zm(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Sr.isColorSupported),xr&&e&&(r=xr(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=Sr.createColors(!0),l=c.bold,h=c.gray,p=c.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-u)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Zm(Error)),Er=Cr,Cr.default=Cr,(Ir={}).isClean=Symbol("isClean"),Ir.my=Symbol("my"),Or={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Tr=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Or[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Or[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Ar=Tr,Tr.default=Tr,Rr=Ar,Mr=Uv,Uv.default=Uv,Fr=Ir.isClean,Nr=Ir.my,Dr=Er,Pr=Ar,Lr=Mr,jr=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Fr]=!1,this[Nr]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Jm(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Bv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Dr(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Fr]){this[Fr]=!1;for(var e=this;e=e.parent;)e[Fr]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Pr).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Jm(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":Gm(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Lr),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Um(e,[{key:"proxyOf",get:function(){return this}}]),e}(),$r=jr,jr.default=jr,Br=Ur=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=Bm({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return zm(t,e),Um(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}($r),Ur.default=Ur,qr={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}},zr=kr.SourceMapConsumer,Vr=kr.SourceMapGenerator,Wr=kr.existsSync,Hr=kr.readFileSync,Gr=kr.dirname,Zr=kr.join,Yr=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Gr(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new zr(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Ut?Ut.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Gm(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Gr(e),Wr(e))return this.mapFile=e,Hr(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(Vm(t,zr))return Vr.fromSourceMap(t).toString();if(Vm(t,Vr))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Zr(Gr(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Jr=Yr,Yr.default=Yr,Kr=kr.SourceMapConsumer,Xr=kr.SourceMapGenerator,Qr=kr.fileURLToPath,en=kr.pathToFileURL,tn=kr.isAbsolute,rn=kr.resolve,nn=qr.nanoid,on=kr,sn=Er,an=Jr,un=Symbol("fromOffsetCache"),cn=Boolean(Kr&&Xr),ln=Boolean(rn&&tn),pn=hn=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Gm(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ln||/^\w+:\/\//.test(t.from)||tn(t.from)?this.file=t.from:this.file=rn(t.from)),ln&&cn){var r=new an(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+nn(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Gm(t))){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new sn(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new sn(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(en&&(i.input.url=en(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[un])t=this[un];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[un]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:rn(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=tn(a.source)?en(a.source):new URL(a.source,this.map.consumer().sourceRoot||en(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Qr)throw new Error("file: protocol is not available in this PostCSS build");u.file=Qr(o)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=Bm({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Um(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),hn.default=hn,on&&on.registerInput&&on.registerInput(hn),fn=kr.SourceMapConsumer,dn=kr.SourceMapGenerator,gn=kr.dirname,mn=kr.relative,vn=kr.resolve,yn=kr.sep,bn=kr.pathToFileURL,_n=pn,wn=Boolean(fn&&dn),kn=Boolean(gn&&vn&&mn&&yn),Sn=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Jm(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||gn(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new fn(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),kn&&wn&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=dn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new dn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new dn({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"!==u.type&&("atrule"!==u.type||u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?gn(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=gn(vn(r,this.mapOpts.annotation)));var n=mn(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new _n(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Ut?Ut.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(bn){var r=bn(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===yn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Cn=xn=function(e){function t(t){var r=e.call(this,t)||this;return r.type="comment",r}return zm(t,e),t}($r),xn.default=xn,En=Ir.isClean,In=Ir.my,On=Br,Tn=Cn,Nn=function(e){function t(){return e.apply(this,arguments)||this}zm(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t);!(n=i()).done;)for(var o,s=n.value,a=Jm(this.normalize(s,this.last));!(o=a()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Jm(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Jm(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Jm(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=qv(An(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Jm(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,u=Jm(e=e.nodes.slice(0));!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new On(e)]}else if(e.selector)e=[new Rn(e)];else if(e.name)e=[new Mn(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Tn(e)]}return e.map(function(e){return e[In]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[En]&&zv(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Jm(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Jm(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Um(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}($r),Nn.registerParse=function(e){An=e},Nn.registerRule=function(e){Rn=e},Nn.registerAtRule=function(e){Mn=e},Nn.registerRoot=function(e){Fn=e},Dn=Nn,Nn.default=Nn,Nn.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Mn.prototype):"rule"===e.type?Object.setPrototypeOf(e,Rn.prototype):"decl"===e.type?Object.setPrototypeOf(e,On.prototype):"comment"===e.type?Object.setPrototypeOf(e,Tn.prototype):"root"===e.type&&Object.setPrototypeOf(e,Fn.prototype),e[In]=!0,e.nodes&&e.nodes.forEach(function(e){Nn.rebuild(e)})},(jn=function(e){function t(t){var r=e.call(this,Bm({type:"document"},t))||this;return r.nodes||(r.nodes=[]),r}return zm(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Pn(new Ln,this,e).stringify()},t}(Dn)).registerLazyResult=function(e){Pn=e},jn.registerProcessor=function(e){Ln=e},$n=jn,jn.default=jn,Bn=Un=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Un.default=Un,qn=Bn,Vn=zn=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new qn(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Um(e,[{key:"content",get:function(){return this.css}}]),e}(),zn.default=zn,Wn="'".charCodeAt(0),Hn='"'.charCodeAt(0),Gn="\\".charCodeAt(0),Zn="/".charCodeAt(0),Yn="\n".charCodeAt(0),Jn=" ".charCodeAt(0),Kn="\f".charCodeAt(0),Xn="\t".charCodeAt(0),Qn="\r".charCodeAt(0),ei="[".charCodeAt(0),ti="]".charCodeAt(0),ri="(".charCodeAt(0),ni=")".charCodeAt(0),ii="{".charCodeAt(0),oi="}".charCodeAt(0),si=";".charCodeAt(0),ai="*".charCodeAt(0),ui=":".charCodeAt(0),ci="@".charCodeAt(0),li=/[\t\n\f\r "#'()/;[\\\]{}]/g,hi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,pi=/.[\r\n"'(/\\]/,fi=/[\da-f]/i,di=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Yn:case Jn:case Xn:case Qn:case Kn:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Jn||r===Yn||r===Xn||r===Qn||r===Kn);h=["space",p.slice(g,n)],g=n-1;break;case ei:case ti:case ii:case oi:case ui:case si:case ni:var b=String.fromCharCode(r);h=[b,b,g];break;case ri:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&l!==Wn&&l!==Hn&&l!==Jn&&l!==Yn&&l!==Xn&&l!==Kn&&l!==Qn){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(u=n;p.charCodeAt(u-1)===Gn;)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||pi.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Wn:case Hn:i=r===Wn?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(u=n;p.charCodeAt(u-1)===Gn;)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case ci:li.lastIndex=g+1,li.test(p),n=0===li.lastIndex?p.length-1:li.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Gn:for(n=g,s=!0;p.charCodeAt(n+1)===Gn;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Zn&&r!==Jn&&r!==Yn&&r!==Xn&&r!==Qn&&r!==Kn&&(n+=1,fi.test(p.charAt(n)))){for(;fi.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Jn&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Zn&&p.charCodeAt(g+1)===ai?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(hi.lastIndex=g+1,hi.test(p),n=0===hi.lastIndex?p.length-1:hi.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},mi=function(e){function t(t){var r=e.call(this,t)||this;return r.type="atrule",r}zm(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(gi=Dn),vi=mi,mi.default=mi,gi.registerAtRule(mi),(wi=function(e){function t(t){var r=e.call(this,t)||this;return r.type="root",r.nodes||(r.nodes=[]),r}zm(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Jm(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new bi(new _i,this,e).stringify()},t}(yi=Dn)).registerLazyResult=function(e){bi=e},wi.registerProcessor=function(e){_i=e},ki=wi,wi.default=wi,yi.registerRoot(wi),Si={comma:function(e){return Si.split(e,[","],!0)},space:function(e){return Si.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Jm(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},xi=Si,Si.default=Si,Ei=xi,Ii=function(e){function t(t){var r=e.call(this,t)||this;return r.type="rule",r.nodes||(r.nodes=[]),r}return zm(t,e),Um(t,[{key:"selectors",get:function(){return Ei.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Ci=Dn),Oi=Ii,Ii.default=Ii,Ci.registerRule(Ii),Ti=Br,Ai=di,Ri=Cn,Mi=vi,Fi=ki,Ni=Oi,Di={empty:!0,space:!0},Pi=function(){function e(e){this.input=e,this.root=new Fi,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Mi;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Jm(e.entries());!(i=s()).done;){var a=i.value,u=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Ri;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Ai(this.input)},t.decl=function(e,t){var r=new Ti;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ni;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Di[a]||Di[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new Ni;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Li=Dn,ji=Pi,$i=pn,Ui=Vv,Vv.default=Vv,Li.registerParse(Vv),Bi=Ir.isClean,qi=Ir.my,zi=Sn,Vi=Mr,Wi=Dn,Hi=$n,Gi=Vn,Zi=Ui,Yi=ki,Ji={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ki={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Xi={Once:!0,postcssPlugin:!0,prepare:!0},Qi=0,eo={},(to=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Gm(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Vm(r,e)||Vm(r,Gi))i=Zv(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Zi;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[qi]&&Wi.rebuild(i)}else i=Zv(r);this.result=new Gi(t,i,n),this.helpers=Bm({},eo,{postcss:eo,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.prepare?Bm({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Jm(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Gm(i)))for(var o in i){if(!Ki[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Xi[o])if("object"===Gm(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return jm(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return Km(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Wv(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Bi])return[3,14];o[Bi]=!0,s=[Gv(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Wv(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Km(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Jm(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Xm(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Gm(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Wv(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Vi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new zi(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Jm(this.plugins);!(e=t()).done;){var r=e.value;if(Wv(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Bi];)n[Bi]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Jm(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Jm(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Wv(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[Bi])return a[Bi]=!0,void e.push(Gv(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,l===Qi)return void(r.nodes&&r.nodes.length&&(r[Bi]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Bi]=!0;for(var r,n=Jm(Hv(e));!(r=n()).done;){var i=r.value;if(i===Qi)e.nodes&&e.each(function(e){e[Bi]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Um(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}()).registerPostcss=function(e){eo=e},ro=to,to.default=to,Yi.registerLazyResult(to),Hi.registerLazyResult(to),no=Sn,io=Mr,oo=Ui,so=Vn,uo=ao=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=io;this.result=new so(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new no(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),u=a[0],c=a[1];u&&(this.result.css=u),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Um(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=oo;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),ao.default=ao,co=uo,lo=ro,ho=$n,po=ki,go=fo=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Jm(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Gm(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Gm(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Gm(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new lo(this,e,t):new co(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fo.default=fo,po.registerProcessor(fo),ho.registerProcessor(fo),mo=Br,vo=Jr,yo=Cn,bo=vi,_o=pn,wo=ki,ko=Oi,So=Yv,Yv.default=Yv,xo=Er,Co=Br,Eo=ro,Io=Dn,Oo=go,To=Mr,Ao=So,Ro=$n,Mo=Bn,Fo=Cn,No=vi,Do=Vn,Po=pn,Lo=Ui,jo=xi,$o=Oi,Uo=ki,Bo=$r,Jv.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Oo).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Jv([i(r)]).process(e,t)},i},Jv.stringify=To,Jv.parse=Lo,Jv.fromJSON=Ao,Jv.list=jo,Jv.comment=function(e){return new Fo(e)},Jv.atRule=function(e){return new No(e)},Jv.decl=function(e){return new Co(e)},Jv.rule=function(e){return new $o(e)},Jv.root=function(e){return new Uo(e)},Jv.document=function(e){return new Ro(e)},Jv.CssSyntaxError=xo,Jv.Declaration=Co,Jv.Container=Io,Jv.Processor=Oo,Jv.Document=Ro,Jv.Comment=Fo,Jv.Warning=Mo,Jv.AtRule=No,Jv.Result=Do,Jv.Input=Po,Jv.Rule=$o,Jv.Root=Uo,Jv.Node=Bo,Eo.registerPostcss(Jv),qo=Jv,Jv.default=Jv,(zo=jv(qo)).stringify,zo.fromJSON,zo.plugin,zo.parse,zo.list,zo.document,zo.comment,zo.atRule,zo.rule,zo.decl,zo.root,zo.CssSyntaxError,zo.Declaration,zo.Container,zo.Processor,zo.Document,zo.Comment,zo.Warning,zo.AtRule,zo.Result,zo.Input,zo.Rule,zo.Root,zo.Node,Vo=Object.defineProperty,Wo=function(e,t,r){return t in e?Vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ho=function(e,t,r){return Wo(e,"symbol"!==(void 0===t?"undefined":Gm(t))?t+"":t,r)},Go={exports:{}},Zo=String,Yo=function(){return{isColorSupported:!1,reset:Zo,bold:Zo,dim:Zo,italic:Zo,underline:Zo,inverse:Zo,hidden:Zo,strikethrough:Zo,black:Zo,red:Zo,green:Zo,yellow:Zo,blue:Zo,magenta:Zo,cyan:Zo,white:Zo,gray:Zo,bgBlack:Zo,bgRed:Zo,bgGreen:Zo,bgYellow:Zo,bgBlue:Zo,bgMagenta:Zo,bgCyan:Zo,bgWhite:Zo}},Go.exports=Yo(),Go.exports.createColors=Yo,Jo=Go.exports,Ko=Xv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Xo=Jo,Qo=Ko,es=function(e){function t(r,n,i,o,s,a){var u=e.call(this,r)||this;return u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}zm(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Xo.isColorSupported),Qo&&e&&(r=Qo(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=Xo.createColors(!0),l=c.bold,h=c.gray,p=c.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-u)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Zm(Error)),ts=es,es.default=es,(rs={}).isClean=Symbol("isClean"),rs.my=Symbol("my"),ns={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},is=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return ns[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=ns[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),os=is,is.default=is,ss=os,as=Qv,Qv.default=Qv,us=rs.isClean,cs=rs.my,ls=ts,hs=os,ps=as,fs=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[us]=!1,this[cs]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Jm(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ey(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ls(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[us]){this[us]=!1;for(var e=this;e=e.parent;)e[us]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new hs).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Jm(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":Gm(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ps),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Um(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ds=fs,fs.default=fs,ms=gs=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=Bm({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return zm(t,e),Um(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ds),gs.default=gs,vs={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}},ys=Ko.SourceMapConsumer,bs=Ko.SourceMapGenerator,_s=Ko.existsSync,ws=Ko.readFileSync,ks=Ko.dirname,Ss=Ko.join,xs=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ks(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ys(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Ut?Ut.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Gm(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ks(e),_s(e))return this.mapFile=e,ws(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(Vm(t,ys))return bs.fromSourceMap(t).toString();if(Vm(t,bs))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ss(ks(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Cs=xs,xs.default=xs,Es=Ko.SourceMapConsumer,Is=Ko.SourceMapGenerator,Os=Ko.fileURLToPath,Ts=Ko.pathToFileURL,As=Ko.isAbsolute,Rs=Ko.resolve,Ms=vs.nanoid,Fs=Ko,Ns=ts,Ds=Cs,Ps=Symbol("fromOffsetCache"),Ls=Boolean(Es&&Is),js=Boolean(Rs&&As),Us=$s=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Gm(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!js||/^\w+:\/\//.test(t.from)||As(t.from)?this.file=t.from:this.file=Rs(t.from)),js&&Ls){var r=new Ds(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ms(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Gm(t))){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Ns(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Ns(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ts&&(i.input.url=Ts(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ps])t=this[Ps];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ps]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Rs(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=As(a.source)?Ts(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ts(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Os)throw new Error("file: protocol is not available in this PostCSS build");u.file=Os(o)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=Bm({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Um(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),$s.default=$s,Fs&&Fs.registerInput&&Fs.registerInput($s),Bs=Ko.SourceMapConsumer,qs=Ko.SourceMapGenerator,zs=Ko.dirname,Vs=Ko.relative,Ws=Ko.resolve,Hs=Ko.sep,Gs=Ko.pathToFileURL,Zs=Us,Ys=Boolean(Bs&&qs),Js=Boolean(zs&&Ws&&Vs&&Hs),Ks=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Jm(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||zs(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Bs(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Js&&Ys&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qs.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qs({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new qs({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"!==u.type&&("atrule"!==u.type||u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?zs(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=zs(Ws(r,this.mapOpts.annotation)));var n=Vs(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Zs(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Ut?Ut.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Gs){var r=Gs(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Hs&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Qs=Xs=function(e){function t(t){var r=e.call(this,t)||this;return r.type="comment",r}return zm(t,e),t}(ds),Xs.default=Xs,ea=rs.isClean,ta=rs.my,ra=ms,na=Qs,ua=function(e){function t(){return e.apply(this,arguments)||this}zm(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t);!(n=i()).done;)for(var o,s=n.value,a=Jm(this.normalize(s,this.last));!(o=a()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Jm(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Jm(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Jm(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=ty(ia(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Jm(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,u=Jm(e=e.nodes.slice(0));!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ra(e)]}else if(e.selector)e=[new oa(e)];else if(e.name)e=[new sa(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new na(e)]}return e.map(function(e){return e[ta]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ea]&&ry(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Jm(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Jm(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Jm(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Vm(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Um(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(ds),ua.registerParse=function(e){ia=e},ua.registerRule=function(e){oa=e},ua.registerAtRule=function(e){sa=e},ua.registerRoot=function(e){aa=e},ca=ua,ua.default=ua,ua.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sa.prototype):"rule"===e.type?Object.setPrototypeOf(e,oa.prototype):"decl"===e.type?Object.setPrototypeOf(e,ra.prototype):"comment"===e.type?Object.setPrototypeOf(e,na.prototype):"root"===e.type&&Object.setPrototypeOf(e,aa.prototype),e[ta]=!0,e.nodes&&e.nodes.forEach(function(e){ua.rebuild(e)})},(pa=function(e){function t(t){var r=e.call(this,Bm({type:"document"},t))||this;return r.nodes||(r.nodes=[]),r}return zm(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new la(new ha,this,e).stringify()},t}(ca)).registerLazyResult=function(e){la=e},pa.registerProcessor=function(e){ha=e},fa=pa,pa.default=pa,ga=da=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),da.default=da,ma=ga,ya=va=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new ma(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Um(e,[{key:"content",get:function(){return this.css}}]),e}(),va.default=va,ba="'".charCodeAt(0),_a='"'.charCodeAt(0),wa="\\".charCodeAt(0),ka="/".charCodeAt(0),Sa="\n".charCodeAt(0),xa=" ".charCodeAt(0),Ca="\f".charCodeAt(0),Ea="\t".charCodeAt(0),Ia="\r".charCodeAt(0),Oa="[".charCodeAt(0),Ta="]".charCodeAt(0),Aa="(".charCodeAt(0),Ra=")".charCodeAt(0),Ma="{".charCodeAt(0),Fa="}".charCodeAt(0),Na=";".charCodeAt(0),Da="*".charCodeAt(0),Pa=":".charCodeAt(0),La="@".charCodeAt(0),ja=/[\t\n\f\r "#'()/;[\\\]{}]/g,$a=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ua=/.[\r\n"'(/\\]/,Ba=/[\da-f]/i,qa=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Sa:case xa:case Ea:case Ia:case Ca:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===xa||r===Sa||r===Ea||r===Ia||r===Ca);h=["space",p.slice(g,n)],g=n-1;break;case Oa:case Ta:case Ma:case Fa:case Pa:case Na:case Ra:var b=String.fromCharCode(r);h=[b,b,g];break;case Aa:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&l!==ba&&l!==_a&&l!==xa&&l!==Sa&&l!==Ea&&l!==Ca&&l!==Ia){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(u=n;p.charCodeAt(u-1)===wa;)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Ua.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case ba:case _a:i=r===ba?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(u=n;p.charCodeAt(u-1)===wa;)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case La:ja.lastIndex=g+1,ja.test(p),n=0===ja.lastIndex?p.length-1:ja.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case wa:for(n=g,s=!0;p.charCodeAt(n+1)===wa;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==ka&&r!==xa&&r!==Sa&&r!==Ea&&r!==Ia&&r!==Ca&&(n+=1,Ba.test(p.charAt(n)))){for(;Ba.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===xa&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===ka&&p.charCodeAt(g+1)===Da?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):($a.lastIndex=g+1,$a.test(p),n=0===$a.lastIndex?p.length-1:$a.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Va=function(e){function t(t){var r=e.call(this,t)||this;return r.type="atrule",r}zm(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(za=ca),Wa=Va,Va.default=Va,za.registerAtRule(Va),(Ya=function(e){function t(t){var r=e.call(this,t)||this;return r.type="root",r.nodes||(r.nodes=[]),r}zm(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Jm(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Ga(new Za,this,e).stringify()},t}(Ha=ca)).registerLazyResult=function(e){Ga=e},Ya.registerProcessor=function(e){Za=e},Ja=Ya,Ya.default=Ya,Ha.registerRoot(Ya),Ka={comma:function(e){return Ka.split(e,[","],!0)},space:function(e){return Ka.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Jm(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Xa=Ka,Ka.default=Ka,eu=Xa,tu=function(e){function t(t){var r=e.call(this,t)||this;return r.type="rule",r.nodes||(r.nodes=[]),r}return zm(t,e),Um(t,[{key:"selectors",get:function(){return eu.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Qa=ca),ru=tu,tu.default=tu,Qa.registerRule(tu),nu=ms,iu=qa,ou=Qs,su=Wa,au=Ja,uu=ru,cu={empty:!0,space:!0},lu=function(){function e(e){this.input=e,this.root=new au,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new su;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Jm(e.entries());!(i=s()).done;){var a=i.value,u=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new ou;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=iu(this.input)},t.decl=function(e,t){var r=new nu;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new uu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",cu[a]||cu[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new uu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),hu=ca,pu=lu,fu=Us,du=ny,ny.default=ny,hu.registerParse(ny),gu=rs.isClean,mu=rs.my,vu=Ks,yu=as,bu=ca,_u=fa,wu=ya,ku=du,Su=Ja,xu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cu={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Eu={Once:!0,postcssPlugin:!0,prepare:!0},Iu=0,Ou={},(Tu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Gm(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Vm(r,e)||Vm(r,wu))i=ay(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=ku;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[mu]&&bu.rebuild(i)}else i=ay(r);this.result=new wu(t,i,n),this.helpers=Bm({},Ou,{postcss:Ou,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":Gm(e))&&e.prepare?Bm({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Jm(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Gm(i)))for(var o in i){if(!Cu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Eu[o])if("object"===Gm(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return jm(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return Km(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!iy(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[gu])return[3,14];o[gu]=!0,s=[sy(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!iy(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Km(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Jm(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Xm(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Gm(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return iy(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=yu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new vu(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Jm(this.plugins);!(e=t()).done;){var r=e.value;if(iy(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[gu];)n[gu]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Jm(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Jm(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(iy(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[gu])return a[gu]=!0,void e.push(sy(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,l===Iu)return void(r.nodes&&r.nodes.length&&(r[gu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[gu]=!0;for(var r,n=Jm(oy(e));!(r=n()).done;){var i=r.value;if(i===Iu)e.nodes&&e.each(function(e){e[gu]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Um(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}()).registerPostcss=function(e){Ou=e},Au=Tu,Tu.default=Tu,Su.registerLazyResult(Tu),_u.registerLazyResult(Tu),Ru=Ks,Mu=as,Fu=du,Nu=ya,Pu=Du=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Mu;this.result=new Nu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Ru(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),u=a[0],c=a[1];u&&(this.result.css=u),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Um(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Fu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Du.default=Du,Lu=Pu,ju=Au,$u=fa,Uu=Ja,qu=Bu=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Jm(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Gm(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Gm(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Gm(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new ju(this,e,t):new Lu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Bu.default=Bu,Uu.registerProcessor(Bu),$u.registerProcessor(Bu),zu=ms,Vu=Cs,Wu=Qs,Hu=Wa,Gu=Us,Zu=Ja,Yu=ru,Ju=uy,uy.default=uy,Ku=ts,Xu=ms,Qu=Au,ec=ca,tc=qu,rc=as,nc=Ju,ic=fa,oc=ga,sc=Qs,ac=Wa,uc=ya,cc=Us,lc=du,hc=Xa,pc=ru,fc=Ja,dc=ds,cy.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new tc).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return cy([i(r)]).process(e,t)},i},cy.stringify=rc,cy.parse=lc,cy.fromJSON=nc,cy.list=hc,cy.comment=function(e){return new sc(e)},cy.atRule=function(e){return new ac(e)},cy.decl=function(e){return new Xu(e)},cy.rule=function(e){return new pc(e)},cy.root=function(e){return new fc(e)},cy.document=function(e){return new ic(e)},cy.CssSyntaxError=Ku,cy.Declaration=Xu,cy.Container=ec,cy.Processor=tc,cy.Document=ic,cy.Comment=sc,cy.Warning=oc,cy.AtRule=ac,cy.Result=uc,cy.Input=cc,cy.Rule=pc,cy.Root=fc,cy.Node=dc,Qu.registerPostcss(cy),gc=cy,cy.default=cy,(mc=Kv(gc)).stringify,mc.fromJSON,mc.plugin,mc.parse,mc.list,mc.document,mc.comment,mc.atRule,mc.rule,mc.decl,mc.root,mc.CssSyntaxError,mc.Declaration,mc.Container,mc.Processor,mc.Document,mc.Comment,mc.Warning,mc.AtRule,mc.Result,mc.Input,mc.Rule,mc.Root,mc.Node,vc=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Ho(this,"parentElement",null),Ho(this,"parentNode",null),Ho(this,"ownerDocument"),Ho(this,"firstChild",null),Ho(this,"lastChild",null),Ho(this,"previousSibling",null),Ho(this,"nextSibling",null),Ho(this,"ELEMENT_NODE",1),Ho(this,"TEXT_NODE",3),Ho(this,"nodeType"),Ho(this,"nodeName"),Ho(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!Vm(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Um(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),yc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},bc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_c={},wc=function(){return!!globalThis.Zone},kc={},Sc={},xc={childNodes:fy,parentNode:dy,parentElement:gy,textContent:my,contains:vy,getRootNode:yy,host:by,styleSheets:_y,shadowRoot:wy,querySelector:ky,querySelectorAll:Sy,mutationObserver:xy,patch:Cy},Cc="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Ec={map:{},getId:function(){return console.error(Cc),-1},getNode:function(){return console.error(Cc),null},removeNodeFromMap:function(){console.error(Cc)},has:function(){return console.error(Cc),!1},reset:function(){console.error(Cc)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ec=new Proxy(Ec,{get:function(e,t,r){return"map"===t&&console.error(Cc),Reflect.get(e,t,r)}})),Ic=Date.now,/[1-9][0-9]{12}/.test(Date.now().toString())||(Ic=function(){return(new Date).getTime()}),Oc=function(){function e(){Wt(this,"id",1),Wt(this,"styleIDMap",new WeakMap),Wt(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}(),Tc=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Tc||{}),Ac=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Ac||{}),Rc=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Rc||{}),Mc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Mc||{}),Fc=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Fc||{}),Nc=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Nc||{}),Dc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Dc||{}),Pc=function(){function e(){Wt(this,"length",0),Wt(this,"head",null),Wt(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&zy(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&zy(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Lc=function(e,t){return e+"@"+t},jc=function(){function e(){var e=this;Wt(this,"frozen",!1),Wt(this,"locked",!1),Wt(this,"texts",[]),Wt(this,"attributes",[]),Wt(this,"attributeMap",new WeakMap),Wt(this,"removes",[]),Wt(this,"mapRemoves",[]),Wt(this,"movedMap",{}),Wt(this,"addedSet",new Set),Wt(this,"movedSet",new Set),Wt(this,"droppedSet",new Set),Wt(this,"removesSubTreeCache",new Set),Wt(this,"mutationCb"),Wt(this,"blockClass"),Wt(this,"blockSelector"),Wt(this,"maskTextClass"),Wt(this,"maskTextSelector"),Wt(this,"inlineStylesheet"),Wt(this,"maskInputOptions"),Wt(this,"maskTextFn"),Wt(this,"maskInputFn"),Wt(this,"keepIframeSrcFn"),Wt(this,"recordCanvas"),Wt(this,"inlineImages"),Wt(this,"slimDOMOptions"),Wt(this,"dataURLOptions"),Wt(this,"doc"),Wt(this,"mirror"),Wt(this,"iframeManager"),Wt(this,"stylesheetManager"),Wt(this,"shadowDomManager"),Wt(this,"canvasManager"),Wt(this,"processedNodeManager"),Wt(this,"unattachedDoc"),Wt(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Wt(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new Pc,i=function(t){for(var r=t,n=pr;n===pr;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=xc.parentNode(o);if(s&&qy(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var u=s.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&e.addedSet.has(s)&&(a=!0)}var c=mv(s)?e.mirror.getId(Uy(o)):e.mirror.getId(s),l=i(o);if(-1===c||-1===l)return n.addNode(o);var h=Lv(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){Ly(t,e.mirror)&&e.iframeManager.addIframe(t),jy(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),$y(o)&&e.shadowDomManager.addShadowRoot(xc.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:c,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=Jm(e.movedSet);!(s=a()).done;){var u=s.value;Wy(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(xc.parentNode(u))||o(u)}for(var c,l=Jm(e.addedSet);!(c=l()).done;){var h=c.value;Hy(e.droppedSet,h)||Wy(e.removesSubTreeCache,h,e.mirror)?Hy(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}for(var p=null;n.length;){var f=null;if(p){var d=e.mirror.getId(xc.parentNode(p.value)),g=i(p.value);-1!==d&&-1!==g&&(f=p)}if(!f)for(var m=n.tail;m;){var v=m;if(m=m.previous,v){var y=e.mirror.getId(xc.parentNode(v.value));if(-1===i(v.value))continue;if(-1!==y){f=v;break}var b=v.value,_=xc.parentNode(b);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=xc.host(_);if(-1!==e.mirror.getId(w)){f=v;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=xc.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),Wt(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(xc.childNodes(t),function(e){return xc.textContent(e)||""}).join("");r.attributes.value=_v({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:kv(t),value:n,maskInputFn:e.maskInputFn})}),Wt(this,"processMutation",function(t){if(!Ny(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=xc.textContent(t.target);Fy(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:Nv(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,My(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=kv(n);o=_v({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Fy(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Mv(n.tagName,i))if(a.attributes[i]=Rv(e.doc,wv(n.tagName),wv(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var u=e.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(var c,l=Jm(Array.from(n.style));!(c=l()).done;){var h=c.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==u.style.getPropertyValue(h)||f!==u.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=Jm(Array.from(u.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Fy(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=mv(t.target)?e.mirror.getId(xc.host(t.target)):e.mirror.getId(t.target);Fy(t.target,e.blockClass,e.blockSelector,!1)||Ny(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Vy(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Dy(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Lc(n,i)]?Vy(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!mv(t.target)||!vv(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),xc.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Wt(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(Ny(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Lc(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Fy(t,e.blockClass,e.blockSelector,!1)||(xc.childNodes(t).forEach(function(t){return e.genAdds(t)}),$y(t)&&xc.childNodes(xc.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}(),Uc=function(e){if(!$c)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if($c&&!0===$c(i))return;throw i}}},Bc=[],qc=["INPUT","TEXTAREA","SELECT"],zc=new WeakMap,Vc=function(){function e(e){Wt(this,"iframeIdToRemoteIdMap",new WeakMap),Wt(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Wc=function(){function e(e){Wt(this,"iframes",new WeakMap),Wt(this,"crossOriginIframeMap",new WeakMap),Wt(this,"crossOriginIframeMirror",new Vc(Iv)),Wt(this,"crossOriginIframeStyleMirror"),Wt(this,"crossOriginIframeRootIdMap",new WeakMap),Wt(this,"mirror"),Wt(this,"mutationCb"),Wt(this,"wrappedEmit"),Wt(this,"loadListener"),Wt(this,"stylesheetManager"),Wt(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Vc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Tc.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Tc.IncrementalSnapshot,data:{source:Ac.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Tc.Meta:case Tc.Load:case Tc.DomContentLoaded:return!1;case Tc.Plugin:return t;case Tc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Tc.IncrementalSnapshot:switch(t.data.source){case Ac.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Ac.Drag:case Ac.TouchMove:case Ac.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Ac.ViewportResize:return!1;case Ac.MediaInteraction:case Ac.MouseInteraction:case Ac.Scroll:case Ac.CanvasMutation:case Ac.Input:return this.replaceIds(t.data,e,["id"]),t;case Ac.StyleSheetRule:case Ac.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ac.Font:return t;case Ac.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Ac.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Jm(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Dc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Hc=function(){function e(e){Wt(this,"shadowDoms",new WeakSet),Wt(this,"mutationCb"),Wt(this,"scrollCb"),Wt(this,"bypassOptions"),Wt(this,"mirror"),Wt(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(vv(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Yy(Bm({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Ky(Bm({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(xc.host(e))),r.restoreHandlers.push(eb({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(Cy(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=xc.shadowRoot(this);return o&&qy(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Yc=0;Yc<64;Yc++)Zc[Gc.charCodeAt(Yc)]=Yc;Jc=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Gc[r[t]>>2],i+=Gc[(3&r[t])<<4|r[t+1]>>4],i+=Gc[(15&r[t+1])<<2|r[t+2]>>6],i+=Gc[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},Kc=new Map,Xc=function(e,t,r){if(e&&(el(e,t)||"object"===(void 0===e?"undefined":Gm(e)))){var n=function(e,t){var r=Kc.get(e);return r||(r=new Map,Kc.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}},Qc=function(e,t,r){return e.map(function(e){return ib(e,t,r)})},el=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return Vm(e,t[r])}))},tl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",rl=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},nl="undefined"!=typeof window&&window.Blob&&new Blob([rl(tl)],{type:"text/javascript;charset=utf-8"}),il=function(){function e(e){var t=this;Wt(this,"pendingCanvasMutations",new Map),Wt(this,"rafStamps",{latestId:0,invokeId:null}),Wt(this,"mirror"),Wt(this,"mutationCb"),Wt(this,"resetObservers"),Wt(this,"frozen",!1),Wt(this,"locked",!1),Wt(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,u=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:u})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=ob(t,r,n,!0),a=new Map,u=new ab;u.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,u=r.height;o.mutationCb({id:t,type:Fc["2D"],commands:[{property:"clearRect",args:[0,0,s,u]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var c,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)c=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){Fy(e,r,n,!0)||s.push(e)}),s).forEach(jm(function(e){var t,r,n,o;return Km(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),c=requestAnimationFrame(p)}};c=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(c)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=ob(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Cy(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return Fy(this.canvas,r,n,!0)||setTimeout(function(){var r=Qc(u,t,s);e(s.canvas,{type:Fc["2D"],property:o,args:r})},0),i.apply(this,u)}});s.push(a)}catch(Lf){var u=Oy(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Fc["2D"],property:o,args:[t],setter:!0})}});s.push(u)}},s=[],a=Jm(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(sb(t.WebGLRenderingContext.prototype,Fc.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(sb(t.WebGL2RenderingContext.prototype,Fc.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,Wm(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),ol=function(){function e(e){Wt(this,"trackedLinkElements",new WeakSet),Wt(this,"mutationCb"),Wt(this,"adoptedStyleSheetCb"),Wt(this,"styleMirror",new Oc),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:bv(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Jm(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),sl=function(){function e(){Wt(this,"nodeMap",new WeakMap),Wt(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),ll=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(hl=document.createElement("iframe"),document.body.appendChild(hl),Array.from=(null==(Ht=hl.contentWindow)?void 0:Ht.Array.from)||Array.from,document.body.removeChild(hl))}catch(s){console.debug("Unable to override Array.from",s)}var r;pl=new ir,ub.addCustomEvent=function(e,t){if(!ll)throw new Error("please add custom event after start recording");al({type:Tc.Custom,data:{tag:e,payload:t}})},ub.freezePage=function(){Bc.forEach(function(e){return e.freeze()})},ub.takeFullSnapshot=function(e){if(!ll)throw new Error("please take full snapshot after start recording");ul(e)},ub.mirror=pl,(r=fl||(fl={}))[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped",ub.addCustomEvent,ub.freezePage,ub.takeFullSnapshot,dl=Bt.setImmediate,yl=Object.prototype.toString,bl=void 0!==dl?function(e){return dl(e)}:setTimeout;try{Object.defineProperty({},"x",{}),gl=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(s){gl=function(e,t,r){return e[t]=r,e}}vl=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=ml=void 0;r;)r.fn.call(r.self),r=r.next}}}(),_l=gl({},"constructor",yb,!1),yb.prototype=_l,gl(_l,"__NPO__",0,!1),gl(yb,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),gl(yb,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),gl(yb,"all",function(e){var t=this;return"[object Array]"!==yl.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;gb(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),gl(yb,"race",function(e){var t=this;return"[object Array]"!==yl.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");gb(t,e,function(e,t){r(t)},n)})}),wl="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:yb,kl={DEBUG:!1,LIB_VERSION:"2.71.1"},Sl=864e5,xl=8e3,Cl=Array.prototype,El=Function.prototype,Il=Object.prototype,Ol=Cl.slice,Tl=Il.toString,Al=Il.hasOwnProperty,Rl=Bt.console,Ml=Bt.navigator,Fl=Bt.document,Nl=Bt.opera,Dl=Bt.screen,Pl=Ml.userAgent,Ll=El.bind,jl=Cl.forEach,$l=Cl.indexOf,Ul=Cl.map,Bl=Array.isArray,ql={},Vl={log:function(){if(kl.DEBUG&&!zl.isUndefined(Rl)&&Rl)try{Rl.log.apply(Rl,arguments)}catch(s){zl.each(arguments,function(e){Rl.log(e)})}},warn:function(){if(kl.DEBUG&&!zl.isUndefined(Rl)&&Rl){var e=["Mixpanel warning:"].concat(zl.toArray(arguments));try{Rl.warn.apply(Rl,e)}catch(s){zl.each(e,function(e){Rl.warn(e)})}}},error:function(){if(kl.DEBUG&&!zl.isUndefined(Rl)&&Rl){var e=["Mixpanel error:"].concat(zl.toArray(arguments));try{Rl.error.apply(Rl,e)}catch(s){zl.each(e,function(e){Rl.error(e)})}}},critical:function(){if(!zl.isUndefined(Rl)&&Rl){var e=["Mixpanel error:"].concat(zl.toArray(arguments));try{Rl.error.apply(Rl,e)}catch(s){zl.each(e,function(e){Rl.error(e)})}}}},Wl=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Vl,arguments)}},Hl=function(e){return{log:Wl(Vl.log,e),error:Wl(Vl.error,e),critical:Wl(Vl.critical,e)}},Gl=function(e){return function(){try{return e.apply(this,arguments)}catch(Lf){Vl.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),kl.DEBUG&&Vl.critical(Lf)}}},Zl=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Gl(t[r]))},(zl={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}).bind=function(e,t){var r,n;if(Ll&&e.bind===Ll)return Ll.apply(e,Ol.call(arguments,1));if(!zl.isFunction(e))throw new TypeError;return r=Ol.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Ol.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Ol.call(arguments)));return Object(s)===s?s:o},n},zl.each=function(e,t,r){if(null!=e)if(jl&&e.forEach===jl)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===ql)return}else for(var o in e)if(Al.call(e,o)&&t.call(r,e[o],o,e)===ql)return},zl.extend=function(e){return zl.each(Ol.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},zl.isArray=Bl||function(e){return"[object Array]"===Tl.call(e)},zl.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(od){return!1}},zl.isArguments=function(e){return!(!e||!Al.call(e,"callee"))},zl.toArray=function(e){return e?e.toArray?e.toArray():zl.isArray(e)||zl.isArguments(e)?Ol.call(e):zl.values(e):[]},zl.map=function(e,t,r){if(Ul&&e.map===Ul)return e.map(t,r);var n=[];return zl.each(e,function(e){n.push(t.call(r,e))}),n},zl.keys=function(e){var t=[];return null===e||zl.each(e,function(e,r){t[t.length]=r}),t},zl.values=function(e){var t=[];return null===e||zl.each(e,function(e){t[t.length]=e}),t},zl.include=function(e,t){var r=!1;return null===e?r:$l&&e.indexOf===$l?-1!=e.indexOf(t):(zl.each(e,function(e){if(r||(r=e===t))return ql}),r)},zl.includes=function(e,t){return-1!==e.indexOf(t)},zl.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},zl.isObject=function(e){return e===Object(e)&&!zl.isArray(e)},zl.isEmptyObject=function(e){if(zl.isObject(e)){for(var t in e)if(Al.call(e,t))return!1;return!0}return!1},zl.isUndefined=function(e){return void 0===e},zl.isString=function(e){return"[object String]"==Tl.call(e)},zl.isDate=function(e){return"[object Date]"==Tl.call(e)},zl.isNumber=function(e){return"[object Number]"==Tl.call(e)},zl.isElement=function(e){return!(!e||1!==e.nodeType)},zl.encodeDates=function(e){return zl.each(e,function(t,r){zl.isDate(t)?e[r]=zl.formatDate(t):zl.isObject(t)&&(e[r]=zl.encodeDates(t))}),e},zl.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},zl.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},zl.strip_empty_properties=function(e){var t={};return zl.each(e,function(e,r){zl.isString(e)&&e.length>0&&(t[r]=e)}),t},zl.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):zl.isArray(e)?(r=[],zl.each(e,function(e){r.push(zl.truncate(e,t))})):zl.isObject(e)?(r={},zl.each(e,function(e,n){r[n]=zl.truncate(e,t)})):r=e,r},zl.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",u=0,c=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===Tl.apply(h)){for(u=h.length,o=0;o<u;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+c+"]":"["+l.join(",")+"]",i=c,a}for(s in h)Al.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+c+"}":"{"+l.join(",")+"}",i=c,a}};return r("",{"":e})},zl.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(e=+r,isFinite(e))return e;o("Bad number")},u=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(s(),16),isFinite(e));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else{if("string"!=typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)s()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(s("{"),c(),"}"===t)return s("}"),r;for(;t;){if(e=u(),c(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return s("}"),r;s(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(s("["),c(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return s("]"),e;s(","),c()}}o("Bad array")}();case'"':return u();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var s;return r=i,e=0,t=" ",s=n(),c(),t&&o("Syntax error"),s}}(),zl.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,c="",l=[];if(!e)return e;e=zl.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[u++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(c=l.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},zl.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},zl.UUID=function(){try{return Bt.crypto.randomUUID()}catch(s){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",zl.map(e,function(e){return e.toString(16)}).join("")}},Yl=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"],zl.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Yl.length;t++)if(-1!==e.indexOf(Yl[t]))return!0;return!1},zl.HTTPBuildQuery=function(e,t){var r,n,i=[];return zl.isUndefined(t)&&(t="&"),zl.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},zl.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(s){Vl.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},zl.cookie={get:function(e){for(var t=e+"=",r=Fl.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=zl.JSONDecode(zl.cookie.get(e))||{}}catch(s){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=ch(Fl.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),Fl.cookie=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=ch(Fl.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c;return Fl.cookie=p,p},remove:function(e,t,r){zl.cookie.set(e,"",-1,t,!1,!1,r)}},Jl=function(e){var t=!0;try{var r="__mplss_"+oh(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(s){t=!1}return t},Kl=null,Xl=function(e,t){return null===Kl||t?Kl=Jl(e||Bt.localStorage):Kl},Ql=null,eh=function(e,t){return null===Ql||t?Ql=Jl(e||Bt.sessionStorage):Ql},zl.localStorage=bb(Bt.localStorage,"localStorage",Xl),zl.sessionStorage=bb(Bt.sessionStorage,"sessionStorage",eh),zl.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(Bt.event)){var o,s,a=!0;return zl.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else Vl.error("No valid element provided to register_event")}}(),th=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$'),zl.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Fl.getElementsByTagName)return[];var n,i,o,s,a,u,c,l,h,p,f=t.split(" "),d=[Fl];for(u=0;u<f.length;u++)if((n=f[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=Fl.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,c=0;c<d.length;c++)for(h="*"==o?e(d[c]):d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,c=0;c<s.length;c++)s[c].className&&zl.isString(s[c].className)&&r(s[c],v)&&(d[p++]=s[c])}else{var y=n.match(th);if(y){o=y[1];var b,_=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,c=0;c<d.length;c++)for(h="*"==o?e(d[c]):d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":b=function(e){return e.getAttribute(_)==k};break;case"~":b=function(e){return e.getAttribute(_).match(new RegExp("\\b"+k+"\\b"))};break;case"|":b=function(e){return e.getAttribute(_).match(new RegExp("^"+k+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(_).indexOf(k)};break;case"$":b=function(e){return e.getAttribute(_).lastIndexOf(k)==e.getAttribute(_).length-k.length};break;case"*":b=function(e){return e.getAttribute(_).indexOf(k)>-1};break;default:b=function(e){return e.getAttribute(_)}}for(d=[],p=0,c=0;c<s.length;c++)b(s[c])&&(d[p++]=s[c])}else{for(o=n,s=[],a=0,c=0;c<d.length;c++)for(h=d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return zl.isElement(e)?[e]:zl.isObject(e)&&!zl.isUndefined(e.length)?e:n.call(this,e)}}(),rh=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],nh=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"],zl.info={campaignParams:function(e){var t="",r={};return zl.each(rh,function(n){(t=zl.getQueryParam(Fl.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return zl.each(nh,function(r){(e=zl.getQueryParam(Fl.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return zl.extend(zl.info.campaignParams(),zl.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=zl.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=zl.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||zl.includes(e," OPR/")?zl.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":zl.includes(e,"IEMobile")||zl.includes(e,"WPDesktop")?"Internet Explorer Mobile":zl.includes(e,"SamsungBrowser/")?"Samsung Internet":zl.includes(e,"Edge")||zl.includes(e,"Edg/")?"Microsoft Edge":zl.includes(e,"FBIOS")?"Facebook Mobile":zl.includes(e,"Whale/")?"Whale Browser":zl.includes(e,"Chrome")?"Chrome":zl.includes(e,"CriOS")?"Chrome iOS":zl.includes(e,"UCWEB")||zl.includes(e,"UCBrowser")?"UC Browser":zl.includes(e,"FxiOS")?"Firefox iOS":zl.includes(t,"Apple")?zl.includes(e,"Mobile")?"Mobile Safari":"Safari":zl.includes(e,"Android")?"Android Mobile":zl.includes(e,"Konqueror")?"Konqueror":zl.includes(e,"Firefox")?"Firefox":zl.includes(e,"MSIE")||zl.includes(e,"Trident/")?"Internet Explorer":zl.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[zl.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=Pl;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Bt.location.href},properties:function(e){return"object"!=typeof e&&(e={}),zl.extend(zl.strip_empty_properties({$os:zl.info.os(),$browser:zl.info.browser(Pl,Ml.vendor,Nl),$referrer:Fl.referrer,$referring_domain:zl.info.referringDomain(Fl.referrer),$device:zl.info.device(Pl)}),{$current_url:zl.info.currentUrl(),$browser_version:zl.info.browserVersion(Pl,Ml.vendor,Nl),$screen_height:Dl.height,$screen_width:Dl.width,mp_lib:"web",$lib_version:kl.LIB_VERSION,$insert_id:oh(),time:zl.timestamp()/1e3},zl.strip_empty_properties(e))},people_properties:function(){return zl.extend(zl.strip_empty_properties({$os:zl.info.os(),$browser:zl.info.browser(Pl,Ml.vendor,Nl)}),{$browser_version:zl.info.browserVersion(Pl,Ml.vendor,Nl)})},mpPageViewProperties:function(){return zl.strip_empty_properties({current_page_title:Fl.title,current_domain:Bt.location.hostname,current_url_path:Bt.location.pathname,current_url_protocol:Bt.location.protocol,current_url_search:Bt.location.search})}},ih=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new wl(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},oh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},sh=function(){return"00-"+zl.UUID().replace(/-/g,"")+"-"+zl.UUID().replace(/-/g,"").substring(0,16)+"-01"},ah=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,uh=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ch=function(e){var t=uh,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ah);var i=e.match(t);return i?i[0]:""},lh=function(){var e=Bt.navigator.onLine;return zl.isUndefined(e)||e},hh=function(){},ph=null,fh=null,"undefined"!=typeof JSON&&(ph=JSON.stringify,fh=JSON.parse),ph=ph||zl.JSONEncode,fh=fh||zl.JSONDecode,zl.info=zl.info,zl.info.browser=zl.info.browser,zl.info.browserVersion=zl.info.browserVersion,zl.info.device=zl.info.device,zl.info.properties=zl.info.properties,zl.isBlockedUA=zl.isBlockedUA,zl.isEmptyObject=zl.isEmptyObject,zl.isObject=zl.isObject,zl.JSONDecode=zl.JSONDecode,zl.JSONEncode=zl.JSONEncode,zl.toArray=zl.toArray,zl.NPO=yb,mh=[dh="mixpanelRecordingEvents",gh="mixpanelRecordingRegistry"],(vh=function(e){this.dbPromise=null,this.storeName=e}).prototype._openDb=function(){return new wl(function(e,t){var r=Bt.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;mh.forEach(function(e){t.createObjectStore(e)})}})},vh.prototype.init=function(){return Bt.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Bt.IDBDatabase?wl.resolve():wl.reject(e)})):wl.reject("indexedDB is not supported in this browser")},vh.prototype.isInitialized=function(){return!!this.dbPromise},vh.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new wl(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):wl.reject(e)}.bind(this))},vh.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},vh.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},vh.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},vh.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})},yh="__mp_opt_in_out_",bh=Hl("lock"),(_h=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Bt.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||wl}).prototype.withLock=function(e,t){return new(0,this.promiseImpl)(zl.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,h=a+":X",p=a+":Y",f=a+":Z",d=function(e){if((new Date).getTime()-o>c)return bh.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),l.removeItem(f),l.removeItem(p),void v();setTimeout(function(){try{e()}catch(s){n(s)}},u*(Math.random()+.1))},g=function(e,t){e()?t():d(function(){g(e,t)})},m=function(){var e=l.getItem(p);return(!e||e===i)&&(l.setItem(p,i),l.getItem(p)===i||(Xl(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},v=function(){l.setItem(h,i),g(m,function(){l.getItem(h)!==i?d(function(){l.getItem(p)===i?g(function(){return!l.getItem(f)},y):v()}):y()})},y=function(){l.setItem(f,"1");var t=function(){l.removeItem(f),l.getItem(p)===i&&l.removeItem(p),l.getItem(h)===i&&l.removeItem(h)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Xl(l,!0))throw new Error("localStorage support check failed");v()}catch(s){n(s)}},this))},(wh=function(e){this.storage=e||Bt.localStorage}).prototype.init=function(){return wl.resolve()},wh.prototype.isInitialized=function(){return!0},wh.prototype.setItem=function(e,t){return new wl(zl.bind(function(r,n){try{this.storage.setItem(e,ph(t))}catch(Lf){n(Lf)}r()},this))},wh.prototype.getItem=function(e){return new wl(zl.bind(function(t,r){var n;try{n=fh(this.storage.getItem(e))}catch(Lf){r(Lf)}t(n)},this))},wh.prototype.removeItem=function(e){return new wl(zl.bind(function(t,r){try{this.storage.removeItem(e)}catch(Lf){r(Lf)}t()},this))},kh=Hl("batch"),(Sh=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new wh,this.lock=new _h(e,{storage:t.sharedLockStorage||Bt.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||zl.bind(kh.error,kh),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=ih(zl.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=zl.bind(function(e){return this._enqueuePersisted([e])},this)}).prototype.ensureInit=function(){return this.initialized||!this.usePersistence?wl.resolve():this.queueStorage.init().then(zl.bind(function(){this.initialized=!0},this)).catch(zl.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},Sh.prototype.enqueue=function(e,t){var r={id:oh(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),wl.resolve(!0))},Sh.prototype._enqueuePersisted=function(e){var t=zl.bind(function(){return this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(zl.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(zl.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(zl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},Sh.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(r){if(r.length){var n={};zl.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):wl.resolve(t)},xh=function(e,t){var r=[];return zl.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r},Sh.prototype.removeItemsByID=function(e){var t={};if(zl.each(e,function(e){t[e]=!0}),this.memQueue=xh(this.memQueue,t),this.usePersistence){var r=zl.bind(function(){return this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(e){return e=xh(e,t),this.saveToStorage(e)},this)).then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(zl.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(zl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Xl(this.lock.storage,!0)&&r().then(zl.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(zl.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return wl.resolve(!0)},Ch=function(e,t){var r=[];return zl.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r},Sh.prototype.updatePayloads=function(e){return this.memQueue=Ch(this.memQueue,e),this.usePersistence?this.lock.withLock(zl.bind(function(){return this.ensureInit().then(zl.bind(function(){return this.readFromStorage()},this)).then(zl.bind(function(t){return t=Ch(t,e),this.saveToStorage(t)},this)).catch(zl.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(zl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):wl.resolve(!0)},Sh.prototype.readFromStorage=function(){return this.ensureInit().then(zl.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(zl.bind(function(e){return e&&(zl.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(zl.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},Sh.prototype.saveToStorage=function(e){return this.ensureInit().then(zl.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(zl.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},Sh.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(zl.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):wl.resolve()},Eh=Hl("batch"),(Ih=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Sh(e,{errorReporter:zl.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null}).prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Ih.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ih.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ih.prototype.clear=function(){return this.queue.clear()},Ih.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ih.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ih.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(zl.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ih.prototype.sendRequestPromise=function(e,t){return new wl(zl.bind(function(r){this.sendRequest(e,t,r)},this))},Ih.prototype.flush=function(e){if(this.requestInProgress)return Eh.log("Flush: Request already in progress"),wl.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(zl.bind(function(i){var o=i.length===n,a=[],u={};if(zl.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=zl.extend({},t.properties,{mp_sent_by_lib_version:kl.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}u[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),wl.resolve();var c=zl.bind(function(){return this.queue.removeItemsByID(zl.map(i,function(e){return e.id})).then(zl.bind(function(e){return zl.each(i,zl.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),wl.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),wl.resolve())},this))},this),l=zl.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(u);if(zl.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(zl.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!lh()||"timeout"===o.error)){var a=2*this.flushInterval;return o.retryAfter&&(a=1e3*parseInt(o.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),wl.resolve()}if(zl.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),wl.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(s){this.reportError("Error handling API response",s),this.resetFlush()}},this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(h.transport="sendBeacon"),Eh.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)},this)).catch(zl.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Ih.prototype.reportError=function(e,t){if(Eh.error.apply(Eh.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Eh.error(t)}},Oh=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Th=Hl("recorder"),Ah=Bt.CompressionStream,Rh={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Mh=new Set([Ac.MouseMove,Ac.MouseInteraction,Ac.Scroll,Ac.ViewportResize,Ac.Input,Ac.TouchMove,Ac.MediaInteraction,Ac.Drag,Ac.Selection]),(Fh=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||hh,this._onMaxLengthReached=e.onMaxLengthReached||hh,this._onBatchSent=e.onBatchSent||hh,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Sl,this.recordMinMs=0;var t=Xl(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new vh(dh),this.batcher=new Ih(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Rh,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})}).prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Fh.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},Fh.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Fh.prototype.get_config=function(e){return this.getConfig(e)},Fh.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Sl&&(this.recordMaxMs=Sl,Th.critical("record_max_ms cannot be greater than "+Sl+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>xl&&(this.recordMinMs=xl,Th.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=zl.info.currentUrl(),this.replayStartUrl=zl.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===Tc.IncrementalSnapshot&&Mh.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(s){this.reportError("Unexpected error when starting rrweb recording.",s)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var n=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)}else Th.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Fh.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(s){this.reportError("Error with rrweb stopRecording",s)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Fh.prototype.isRrwebStopped=function(){return null===this._stopRecording},Fh.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Fh.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(Lf){this.reportError("Error getting tab ID for serialization ",Lf),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Fh.deserialize=function(e,t){return new Fh(zl.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Fh.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=zl.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Bt.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Fh.prototype._flushEvents=xb(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<n;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===Tc.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:kl.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Ah){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new Ah("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),Fh.prototype.reportError=function(e,t){Th.error.apply(Th.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Th.error(t)}},(Nh=function(e){this.idb=new vh(gh),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage}).prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Nh.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Nh.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return wl.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),wl.resolve())},Nh.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Oh(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):wl.resolve(null)},Nh.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Nh.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Nh.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):wl.resolve()},Nh.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return Oh(e)}).map(function(e){return Fh.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return wl.all(t)}.bind(this)).catch(this.handleError.bind(this)):wl.resolve([])},Dh=Hl("recorder"),(Ph=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||ub,this.sharedLockStorage=r,this.recordingRegistry=new Nh({mixpanelInstance:this.mixpanelInstance,errorReporter:Dh.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1}).prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Dh.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Dh.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:zl.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Fh.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Fh(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Dh.log("Recording already in progress, skipping startRecording.")},Ph.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Ph.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ph.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return wl.resolve()},Ph.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),wl.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Dh.log("No resumable recording found."),null)}.bind(this))},Ph.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ph.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ph.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Bt.__mp_recorder=Ph,Lh="change",jh="click",$h="hashchange",Uh="load",Bh="mp_locationchange",qh="popstate",zh="scrollend",Vh="scroll",Wh="submit",Hh="visibilitychange",Gh=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Zh=["mp-include"],Jh=(Yh=["mp-no-track"]).concat(["mp-sensitive"]),Kh=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Xh={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Qh={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},ep={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},tp=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],rp=5,np=Hl("autocapture"),Zb.prototype.isRageClick=function(e,t,r){var n=(r=r||{}).threshold_px||30,i=r.timeout_ms||1e3,o=r.click_count||4,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},Yb.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e.target||e.srcElement}},Yb.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},Yb.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Yb.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(Lf){np.critical("Error while observing shadow root",Lf)}}},Yb.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:np.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Yb.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(Lf){np.critical("Error while disconnecting shadow DOM observer",Lf)}this.shadowObservers=[],this.observedShadowRoots=null}},ip=[Lh,"input",Wh,"select","toggle"],op=[zh],sp=[$h],ap={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]},Jb.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Qh[t])return!0;if(Gb(e))return!1;for(var r=e.parentElement,n=0;r&&n<rp;){if(Gb(r))return!1;if(r.getRootNode&&r.getRootNode()!==Fl){var i=r.getRootNode();if(i.host&&Gb(i.host))return!1}r=r.parentElement,n++}return!!ep[t]}(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Jb.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Jb.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Jb.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Jb.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Jb.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Jb.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Jb.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;ip.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),sp.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),op.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,ap)}catch(Lf){np.critical("Error while setting up mutation observer",Lf)}if(window.customElements)try{this.shadowDOMObserver=new Yb(function(){e.recordChangeEvent()},ap),this.shadowDOMObserver.start()}catch(Lf){np.critical("Error while setting up shadow DOM observer",Lf),this.shadowDOMObserver=null}}},Jb.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(Lf){np.critical("Error while removing event listener",Lf)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(Lf){np.critical("Error while disconnecting mutation observer",Lf)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(Lf){np.critical("Error while stopping shadow DOM observer",Lf)}this.shadowDOMObserver=null}}},up="autocapture",cp="full-url",hp="allow_url_regexes",pp="block_attrs",fp="block_element_callback",dp="block_selectors",gp="block_url_regexes",mp="capture_extra_attrs",vp="capture_text_content",yp="scroll_capture_all",bp="scroll_depth_percent_checkpoints",_p="click",wp="dead_click",kp="input",Sp="pageview",xp="rage_click",Cp="scroll",Ep="page_leave",Ip="submit",(Op={})[lp="allow_selectors"]=[],Op[hp]=[],Op[pp]=[],Op[fp]=null,Op[dp]=[],Op[gp]=[],Op[mp]=[],Op[vp]=!1,Op[yp]=!1,Op[bp]=[25,50,75,100],Op[_p]=!0,Op[wp]=!0,Op[kp]=!0,Op[Sp]=cp,Op[xp]=!0,Op[Cp]=!0,Op[Ep]=!1,Op[Ip]=!0,Tp={$mp_autocapture:!0},Ap="$mp_click",Rp="$mp_dead_click",Mp="$mp_rage_click",(Fp=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0}).prototype.init=function(){!function(){try{return!!Fl.createElement("div").matches}catch(s){return!1}}()?np.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},Fp.prototype.getFullConfig=function(){var e=this.mp.get_config(up);return e?zl.isObject(e)?zl.extend({},Op,e):Op:{}},Fp.prototype.getConfig=function(e){return this.getFullConfig()[e]},Fp.prototype.currentUrlBlocked=function(){var e,t=zl.info.currentUrl(),r=this.getConfig(hp)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(s){return np.critical("Error while checking block URL regex: "+i,s),!0}}if(!n)return!0}var o=this.getConfig(gp)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(s){return np.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},Fp.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(up)?this.getConfig(Sp):this.mp.get_config("track_pageview")},Fp.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===Ap&&!this.getConfig(_p)||t===Mp&&!this._getClickTrackingConfig(xp)||t===Rp&&!this._getClickTrackingConfig(wp)),n=Lb(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(lp),blockAttrs:this.getConfig(pp),blockElementCallback:this.getConfig(fp),blockSelectors:this.getConfig(dp),captureExtraAttrs:this.getConfig(mp),captureTextContent:this.getConfig(vp),capturedForHeatMap:r});n&&(zl.extend(n,Tp),this.mp.track(t,n))}},Fp.prototype.initPageListeners=function(){if(Bt.removeEventListener(qh,this.listenerPopstate),Bt.removeEventListener($h,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(Ep)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Bt.dispatchEvent(new Event(Bh))},this.listenerHashchange=function(){Bt.dispatchEvent(new Event(Bh))},Bt.addEventListener(qh,this.listenerPopstate),Bt.addEventListener($h,this.listenerHashchange);var e=Bt.history.pushState;"function"==typeof e&&(Bt.history.pushState=function(t,r,n){e.call(Bt.history,t,r,n),Bt.dispatchEvent(new Event(Bh))});var t=Bt.history.replaceState;"function"==typeof t&&(Bt.history.replaceState=function(e,r,n){t.call(Bt.history,e,r,n),Bt.dispatchEvent(new Event(Bh))})}},Fp.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Fp.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(Ep)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=zl.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||zl.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(Fl.documentElement.clientWidth,Bt.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Tp);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},Fp.prototype._initScrollDepthTracking=function(){if(Bt.removeEventListener(Vh,this.listenerScrollDepth),Bt.removeEventListener(zh,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){np.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0);var e=Hb(function(){if(!this.currentUrlBlocked()){var e=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0)+Bt.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Fl.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,Bt.addEventListener(e.eventType,this.listenerScrollDepth)}},Fp.prototype.initClickTracking=function(){Bt.removeEventListener(jh,this.listenerClick),(this.getConfig(_p)||this.mp.get_config("record_heatmap_data"))&&(np.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(_p)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Ap)}.bind(this),Bt.addEventListener(jh,this.listenerClick))},Fp.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(wp)||this.mp.get_config("record_heatmap_data")?(np.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Jb(function(e){this.trackDomEvent(e,Rp)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(wp);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),Bt.addEventListener(jh,this.listenerDeadClick))):this.stopDeadClickTracking()},Fp.prototype.initInputTracking=function(){Bt.removeEventListener(Lh,this.listenerChange),this.getConfig(kp)&&(np.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(kp)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),Bt.addEventListener(Lh,this.listenerChange))},Fp.prototype.initPageviewTracking=function(){if(Bt.removeEventListener(Bh,this.listenerLocationchange),this.pageviewTrackingConfig()){np.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Tp)),t&&(e=zl.info.currentUrl()),this.listenerLocationchange=Gl(function(){if(!this.currentUrlBlocked()){var t=zl.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===cp?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(Tp)&&(e=t),n&&(this.lastScrollCheckpoint=0,np.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),Bt.addEventListener(Bh,this.listenerLocationchange)}},Fp.prototype.initRageClickTracking=function(){Bt.removeEventListener(jh,this.listenerRageClick),(this._getClickTrackingConfig(xp)||this.mp.get_config("record_heatmap_data"))&&(np.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Zb),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(xp);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e.pageX,e.pageY,t)&&this.trackDomEvent(e,Mp))}.bind(this),Bt.addEventListener(jh,this.listenerRageClick))},Fp.prototype.initScrollTracking=function(){if(Bt.removeEventListener(zh,this.listenerScroll),Bt.removeEventListener(Vh,this.listenerScroll),this.getConfig(Cp)){np.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=Hb(function(){if(this.getConfig(Cp)&&!this.currentUrlBlocked()){var e=this.getConfig(yp),t=(this.getConfig(bp)||[]).slice().sort(function(e,t){return e-t}),r=Bt.scrollY,n=zl.extend({$scroll_top:r},Tp);try{var i=Fl.body.scrollHeight,o=Math.round(r/(i-Bt.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var a=0;a<t.length;a++){var u=t[a];o>=u&&this.lastScrollCheckpoint<u&&(n.$scroll_checkpoint=u,this.lastScrollCheckpoint=u,e=!0)}}catch(s){np.critical("Error while calculating scroll percentage",s)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,Bt.addEventListener(e.eventType,this.listenerScroll)}},Fp.prototype.initSubmitTracking=function(){Bt.removeEventListener(Wh,this.listenerSubmit),this.getConfig(Ip)&&(np.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(Ip)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),Bt.addEventListener(Wh,this.listenerSubmit))},Fp.prototype.initPageLeaveTracking=function(){if(Fl.removeEventListener(Hh,this.listenerPageLeaveVisibilitychange),Bt.removeEventListener(Bh,this.listenerPageLeaveLocationchange),Bt.removeEventListener(Uh,this.listenerPageLoad),this.getConfig(Ep)||this.mp.get_config("record_heatmap_data")){np.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=zl.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=Fl.body.scrollHeight}.bind(this),Bt.addEventListener(Uh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Gl(function(t){if(!this.currentUrlBlocked()){var r=zl.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(Fl.documentElement.clientHeight,Bt.innerHeight||0),this.previousScrollHeight=Fl.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Bt.addEventListener(Bh,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){Fl.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),Fl.addEventListener(Hh,this.listenerPageLeaveVisibilitychange)}},Fp.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Bt.removeEventListener(jh,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Zl(Fp),Np=Hl("flags"),Dp="flags",(Lp={})[Pp="context"]={},(jp=function(e){this.fetch=Bt.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc}).prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):Np.critical("Feature Flags unavailable: missing minimum required APIs")},jp.prototype.getFullConfig=function(){var e=this.getMpConfig(Dp);return e?zl.isObject(e)?zl.extend({},Lp,e):Lp:{}},jp.prototype.getConfig=function(e){return this.getFullConfig()[e]},jp.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Dp)},jp.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Np.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Dp);zl.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Pp);return r[Pp]=zl.extend({},n,e),this.setMpConfig(Dp,r),this.fetchFlags()},jp.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Np.error("Feature Flags not enabled"),!!this.flags},jp.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=sh();Np.log("Fetching flags for distinct ID: "+e);var n=zl.extend({distinct_id:e,device_id:t},this.getConfig(Pp)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",kl.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Bt,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var n=new Map;zl.each(t,function(e,t){n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this.flags=n,this._traceparent=r}.bind(this)).catch(function(e){this.markFetchComplete(),Np.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),Np.error(e)}.bind(this)),this.fetchPromise},jp.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Np.error("Fetch in progress started time not set, cannot mark fetch complete")},jp.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return Np.error(e),t}):new Promise(function(e){Np.critical("Feature Flags not initialized"),e(t)})},jp.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return Np.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Np.log('No flag found: "'+e+'"'),t)},jp.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return Np.error(e),t})},jp.prototype.getFeatureData=function(e,t){return Np.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},jp.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},jp.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return Np.error(e),t})},jp.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Np.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},jp.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},jp.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Zl(jp),jp.prototype.are_flags_ready=jp.prototype.areFlagsReady,jp.prototype.get_variant=jp.prototype.getVariant,jp.prototype.get_variant_sync=jp.prototype.getVariantSync,jp.prototype.get_variant_value=jp.prototype.getVariantValue,jp.prototype.get_variant_value_sync=jp.prototype.getVariantValueSync,jp.prototype.is_enabled=jp.prototype.isEnabled,jp.prototype.is_enabled_sync=jp.prototype.isEnabledSync,jp.prototype.update_context=jp.prototype.updateContext,jp.prototype.get_feature_data=jp.prototype.getFeatureData,($p=function(){}).prototype.create_properties=function(){},$p.prototype.event_handler=function(){},$p.prototype.after_track_handler=function(){},$p.prototype.init=function(e){return this.mp=e,this},$p.prototype.track=function(e,t,r,n){var i=this,o=zl.dom_query(e);if(0!==o.length)return zl.each(o,function(e){zl.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;Vl.error("The DOM query ("+e+") returned 0 elements")},$p.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},$p.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):zl.extend({},e)},Up=function(){this.override_event="click"},zl.inherit(Up,$p),Up.prototype.create_properties=function(e,t){var r=Up.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Up.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Up.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)},Bp=function(){this.override_event="submit"},zl.inherit(Bp,$p),Bp.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Bp.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)},qp="$set",zp="$set_once",Vp="$unset",Wp="$add",Hp="$append",Gp="$union",Zp="$remove",Yp={set_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[qp]=n,r},unset_action:function(e){var t={},r=[];return zl.isArray(e)||(e=[e]),zl.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Vp]=r,t},set_once_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[zp]=n,r},union_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=zl.isArray(e)?e:[e])},this):n[e]=zl.isArray(t)?t:[t],r[Gp]=n,r},append_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Hp]=n,r},remove_action:function(e,t){var r={},n={};return zl.isObject(e)?zl.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Zp]=n,r},delete_action:function(){var e={$delete:""};return e}},Jp=function(){},zl.extend(Jp.prototype,Yp),Jp.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Jp.prototype.set=Eb(function(e,t,r){var n=this.set_action(e,t);return zl.isObject(e)&&(r=t),this._send_request(n,r)}),Jp.prototype.set_once=Eb(function(e,t,r){var n=this.set_once_action(e,t);return zl.isObject(e)&&(r=t),this._send_request(n,r)}),Jp.prototype.unset=Eb(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Jp.prototype.union=Eb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Jp.prototype.delete=Eb(function(e){var t=this.delete_action();return this._send_request(t,e)}),Jp.prototype.remove=Eb(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Jp.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=zl.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Jp.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Jp.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Jp.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Jp.prototype.remove=Jp.prototype.remove,Jp.prototype.set=Jp.prototype.set,Jp.prototype.set_once=Jp.prototype.set_once,Jp.prototype.union=Jp.prototype.union,Jp.prototype.unset=Jp.prototype.unset,Jp.prototype.toString=Jp.prototype.toString,Kp=function(){},zl.extend(Kp.prototype,Yp),Kp.prototype._init=function(e){this._mixpanel=e},Kp.prototype.set=Cb(function(e,t,r){var n=this.set_action(e,t);return zl.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[qp]=zl.extend({},zl.info.people_properties(),n[qp]),this._send_request(n,r)}),Kp.prototype.set_once=Cb(function(e,t,r){var n=this.set_once_action(e,t);return zl.isObject(e)&&(r=t),this._send_request(n,r)}),Kp.prototype.unset=Cb(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Kp.prototype.increment=Cb(function(e,t,r){var n={},i={};return zl.isObject(e)?(zl.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Vl.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(zl.isUndefined(t)&&(t=1),i[e]=t),n[Wp]=i,this._send_request(n,r)}),Kp.prototype.append=Cb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Kp.prototype.remove=Cb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Kp.prototype.union=Cb(function(e,t,r){zl.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Kp.prototype.track_charge=Cb(function(){Vl.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Kp.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Kp.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Vl.error("mixpanel.people.delete_user() requires you to call identify() first")},Kp.prototype.toString=function(){return this._mixpanel.toString()+".people"},Kp.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=zl.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),zl.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),zl.truncate(o,255))},Kp.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Kp.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Kp.prototype._enqueue=function(e){qp in e?this._mixpanel.persistence._add_to_people_queue(qp,e):zp in e?this._mixpanel.persistence._add_to_people_queue(zp,e):Vp in e?this._mixpanel.persistence._add_to_people_queue(Vp,e):Wp in e?this._mixpanel.persistence._add_to_people_queue(Wp,e):Hp in e?this._mixpanel.persistence._add_to_people_queue(Hp,e):Zp in e?this._mixpanel.persistence._add_to_people_queue(Zp,e):Gp in e?this._mixpanel.persistence._add_to_people_queue(Gp,e):Vl.error("Invalid call to _enqueue():",e)},Kp.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=zl.extend({},this._mixpanel.persistence.load_queue(e)),s=o;zl.isUndefined(o)||!zl.isObject(o)||zl.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),zl.isUndefined(r)||r(t,n)}))},Kp.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(qp,this.set,e),this._flush_one_queue(zp,this.set_once,n),this._flush_one_queue(Vp,this.unset,o,function(e){return zl.keys(e)}),this._flush_one_queue(Wp,this.increment,t),this._flush_one_queue(Gp,this.union,i);var u=this._mixpanel.persistence.load_queue(Hp);if(!zl.isUndefined(u)&&zl.isArray(u)&&u.length)for(var c,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Hp,c),zl.isUndefined(r)||r(e,t)},h=u.length-1;h>=0;h--)u=this._mixpanel.persistence.load_queue(Hp),c=u.pop(),a._mixpanel.persistence.save(),zl.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(Zp);if(!zl.isUndefined(p)&&zl.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Zp,f),zl.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Zp),f=p.pop(),a._mixpanel.persistence.save(),zl.isEmptyObject(f)||a.remove(f,d)},Kp.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Kp.prototype.set=Kp.prototype.set,Kp.prototype.set_once=Kp.prototype.set_once,Kp.prototype.unset=Kp.prototype.unset,Kp.prototype.increment=Kp.prototype.increment,Kp.prototype.append=Kp.prototype.append,Kp.prototype.remove=Kp.prototype.remove,Kp.prototype.union=Kp.prototype.union,Kp.prototype.track_charge=Kp.prototype.track_charge,Kp.prototype.clear_charges=Kp.prototype.clear_charges,Kp.prototype.delete_user=Kp.prototype.delete_user,Kp.prototype.toString=Kp.prototype.toString,cf=[Xp="__mps",Qp="__mpso",ef="__mpus",tf="__mpa",rf="__mpap",nf="__mpr",of="__mpu",sf="$people_distinct_id",af="__alias",uf="__timers"],(lf=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Vl.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&zl.localStorage.is_supported()?this.storage=zl.localStorage:this.storage=zl.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()}).prototype.properties=function(){var e={};return this.load(),zl.each(this.props,function(t,r){zl.include(cf,r)||(e[r]=t)}),e},lf.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=zl.extend({},e))}},lf.prototype.upgrade=function(){var e,t;this.storage===zl.localStorage?(e=zl.cookie.parse(this.name),zl.cookie.remove(this.name),zl.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===zl.cookie&&(t=zl.localStorage.parse(this.name),zl.localStorage.remove(this.name),t&&this.register_once(t))},lf.prototype.save=function(){this.disabled||this.storage.set(this.name,ph(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},lf.prototype.load_prop=function(e){return this.load(),this.props[e]},lf.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},lf.prototype.clear=function(){this.remove(),this.props={}},lf.prototype.register_once=function(e,t,r){return!!zl.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),zl.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},lf.prototype.register=function(e,t){return!!zl.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),zl.extend(this.props,e),this.save(),!0)},lf.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},lf.prototype.update_search_keyword=function(e){this.register(zl.info.searchInfo(e))},lf.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:zl.info.referringDomain(e)||"$direct"},"")},lf.prototype.get_referrer_info=function(){return zl.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},lf.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},lf.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},lf.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},lf.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},lf.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},lf.prototype.get_cross_subdomain=function(){return this.cross_subdomain},lf.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},lf.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(qp),o=this._get_or_create_queue(zp),s=this._get_or_create_queue(Vp),a=this._get_or_create_queue(Wp),u=this._get_or_create_queue(Gp),c=this._get_or_create_queue(Zp,[]),l=this._get_or_create_queue(Hp,[]);r===Xp?(zl.extend(i,n),this._pop_from_people_queue(Wp,n),this._pop_from_people_queue(Gp,n),this._pop_from_people_queue(Vp,n)):r===Qp?(zl.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Vp,n)):r===ef?zl.each(n,function(e){zl.each([i,o,a,u],function(t){e in t&&delete t[e]}),zl.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===tf?(zl.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(Vp,n)):r===of?(zl.each(n,function(e,t){zl.isArray(e)&&(t in u||(u[t]=[]),zl.each(e,function(e){zl.include(u[t],e)||u[t].push(e)}))}),this._pop_from_people_queue(Vp,n)):r===nf?(c.push(n),this._pop_from_people_queue(Hp,n)):r===rf&&(l.push(n),this._pop_from_people_queue(Vp,n)),Vl.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Vl.log(t),this.save()},lf.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];zl.isUndefined(r)||zl.each(t,function(t,n){e===Hp||e===Zp?zl.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},lf.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},lf.prototype._get_queue_key=function(e){return e===qp?Xp:e===zp?Qp:e===Vp?ef:e===Wp?tf:e===Hp?rf:e===Zp?nf:e===Gp?of:void Vl.error("Invalid queue:",e)},lf.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=zl.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},lf.prototype.set_event_timer=function(e,t){var r=this.load_prop(uf)||{};r[e]=t,this.props[uf]=r,this.save()},lf.prototype.remove_event_timer=function(e){var t=(this.load_prop(uf)||{})[e];return zl.isUndefined(t)||(delete this.props[uf][e],this.save()),t},pf=function(e,t){throw new Error(e+" not available in this build.")},df=0,gf=function(e){return e},mf="mixpanel",vf="base64",yf="$device:",bf=Bt.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,_f=!bf&&-1===Pl.indexOf("MSIE")&&-1===Pl.indexOf("Mozilla"),wf=null,Ml.sendBeacon&&(wf=function(){return Ml.sendBeacon.apply(Ml,arguments)}),Sf={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:kf={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:vf,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:hh,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:hh,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Sl,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},xf=!1,Ef=function(e,t,r){var n,i=r===mf?ff:ff[r];if(i&&hf===df)n=i;else{if(i&&!zl.isArray(i))return void Vl.error("You have already initialized "+r);n=new Cf}if(n._cached_groups={},n._init(e,t,r),n.people=new Kp,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=zl.info.campaignParams(null),s={},a=!1;zl.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return kl.DEBUG=kl.DEBUG||n.get_config("debug"),!zl.isUndefined(i)&&zl.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n},(Cf=function(){}).prototype.init=function(e,t,r){if(zl.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==mf){var n=Ef(e,t,r);return ff[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Cf.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||Sf.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(zl.extend({},Sf,n,t,{name:r,token:e,callback_fn:(r===mf?r:mf+"."+r)+"._jsc"})),this._jsc=hh,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(zl.localStorage.is_supported(!0)&&bf){if(this.init_batchers(),wf&&Bt.addEventListener){var i=zl.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Bt.addEventListener("pagehide",function(e){e.persisted&&i()}),Bt.addEventListener("visibilitychange",function(){"hidden"===Fl.visibilityState&&i()})}}else this._batch_requests=!1,Vl.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),zl.each(this.get_batcher_configs(),function(e){Vl.log("Clearing batch queue "+e.queue_key),zl.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new lf(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=zl.UUID();this.get_distinct_id()||this.register_once({distinct_id:yf+o,$device_id:o},""),this.flags=new jp({getFullApiRoute:zl.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:zl.bind(this.get_config,this),setConfigFunc:zl.bind(this.set_config,this),getPropertyFunc:zl.bind(this.get_property,this),trackingFunc:zl.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Fp(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},Cf.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Vl.log("Tab ID initialization skipped due to disable_persistence config");else if(zl.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!zl.sessionStorage.get(r)&&zl.sessionStorage.get(t)||zl.sessionStorage.set(t,"$tab-"+zl.UUID()),zl.sessionStorage.set(r,"1"),this.tab_id=zl.sessionStorage.get(t),Bt.addEventListener("beforeunload",function(){zl.sessionStorage.remove(r)})}catch(s){this.report_error("Error initializing tab id",s)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},Cf.prototype.get_tab_id=function(){return this.tab_id||null},Cf.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Vl.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new vh(gh),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(Oh(e[r])||e[r].tabId===t)return!0;return!1}).catch(zl.bind(function(e){this.report_error("Error checking recording registry",e)},this))},Cf.prototype._check_and_start_session_recording=xb(function(e){if(Bt.MutationObserver){var t=zl.bind(function(e){var t=zl.bind(function(){this._recorder=this._recorder||new Bt.__mp_recorder(this),this._recorder.resumeRecording(e)},this);zl.isUndefined(Bt.__mp_recorder)?pf(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Vl.critical("Browser does not support MutationObserver; skipping session recording")}),Cf.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},Cf.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},Cf.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},Cf.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},Cf.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},Cf.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},Cf.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+zl.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},Cf.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Cf.prototype.__get_recorder=function(){return this._recorder},Cf.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=zl.info.campaignParams(null);zl.each(e,function(e,t){this.unregister(t)}.bind(this))}},Cf.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Fl.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(zl.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Fl.referrer)},Cf.prototype._dom_loaded=function(){zl.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||zl.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Cf.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!xf)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Cf.prototype._prepare_callback=function(e,t){if(zl.isUndefined(e))return null;if(bf){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},Cf.prototype._send_request=function(e,t,r,n){var i=!0;if(_f)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!zl.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=zl.extend(o,r||{}),bf||(r.method="GET");var a="POST"===r.method,u=wf&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),bf||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),zl.extend(t,this.get_config("api_extra_query_params")),e+="?"+zl.HTTPBuildQuery(t);var l=this;if("img"in t){var h=Fl.createElement("img");h.src=e,Fl.body.appendChild(h)}else if(u){try{i=wf(e,s)}catch(Lf){l.report_error(Lf),i=!1}try{n&&n(i?1:0)}catch(Lf){l.report_error(Lf)}}else if(bf)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),zl.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState)if(200===p.status){if(n)if(c){var e;try{e=zl.JSONDecode(p.responseText)}catch(Lf){if(l.report_error(Lf),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else{var t;if(t=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(c){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch(Lf){l.report_error(Lf),i=!1}else{var g=Fl.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Fl.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Cf.prototype._execute_array=function(e){var t,r=[],n=[],i=[];zl.each(e,function(e){e&&(t=e[0],zl.isArray(t)?i.push(e):"function"==typeof e?e.call(this):zl.isArray(e)&&"alias"===t?r.push(e):zl.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){zl.each(e,function(e){if(zl.isArray(e[0])){var r=t;zl.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},Cf.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Cf.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Cf.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=zl.bind(function(e){return new Ih(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:zl.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:zl.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:zl.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Cf.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,zl.each(this.request_batchers,function(e){e.start()}))},Cf.prototype.stop_batch_senders=function(){this._batch_requests=!1,zl.each(this.request_batchers,function(e){e.stop(),e.clear()})},Cf.prototype.push=function(e){this._execute_array([e])},Cf.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Cf.prototype._encode_data_for_request=function(e){var t=ph(e);return this.get_config("api_payload_format")===vf&&(t=zl.base64Encode(t)),{data:t}},Cf.prototype._track_or_batch=function(e,t){var r=zl.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||hh;var a=!0,u=zl.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Vl.log("MIXPANEL REQUEST:"),Vl.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):u()}):a=u(),a&&r},Cf.prototype.track=xb(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=hh),zl.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=zl.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!zl.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?zl.info.marketingParams():{};t=zl.extend({},zl.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");zl.isArray(c)?zl.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}n(0)}}),Cf.prototype.set_group=xb(function(e,t,r){zl.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),Cf.prototype.add_group=xb(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),Cf.prototype.remove_group=xb(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),Cf.prototype.track_with_groups=xb(function(e,t,r,n){var i=zl.extend({},t||{});return zl.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),Cf.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Cf.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Cf.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Jp)._init(this,e,t),this._cached_groups[r]=n),n},Cf.prototype.track_pageview=xb(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=zl.extend(zl.info.mpPageViewProperties(),zl.info.campaignParams(),zl.info.clickParams()),i=zl.extend({},n,e);return this.track(r,i)}),Cf.prototype.track_links=function(){return this._track_dom.call(this,Up,arguments)},Cf.prototype.track_forms=function(){return this._track_dom.call(this,Bp,arguments)},Cf.prototype.time_event=function(e){zl.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())},If={persistent:!0},Of=function(e){var t;return t=zl.isObject(e)?e:zl.isUndefined(e)?{}:{days:e},zl.extend({},If,t)},Cf.prototype.register=function(e,t){var r=Of(t);r.persistent?this.persistence.register(e,r.days):zl.extend(this.unpersisted_superprops,e)},Cf.prototype.register_once=function(e,t,r){var n=Of(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),zl.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},Cf.prototype.unregister=function(e,t){(t=Of(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Cf.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Cf.prototype.identify=function(e,t,r,n,i,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(yf))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(af)&&(this.unregister(af),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},Cf.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=zl.UUID();this.register_once({distinct_id:yf+e,$device_id:e},""),this._check_and_start_session_recording()},Cf.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Cf.prototype.alias=function(e,t){if(e===this.get_property(sf))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return zl.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(af,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Cf.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Cf.prototype.set_config=function(e){zl.isObject(e)&&(zl.extend(this.config,e),e.batch_size&&zl.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),kl.DEBUG=kl.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},Cf.prototype.get_config=function(e){return this.config[e]},Cf.prototype._run_hook=function(e){var t=(this.config.hooks[e]||gf).apply(this,Ol.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Cf.prototype.get_property=function(e){return this.persistence.load_prop([e])},Cf.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Cf.prototype.toString=function(){var e=this.get_config("name");return e!==mf&&(e=mf+"."+e),e},Cf.prototype._event_is_disabled=function(e){return zl.isBlockedUA(Pl)||this._flags.disable_all_events||zl.include(this.__disabled_events,e)},Cf.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&zl.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!zl.cookie.get("mp_optout")||(zl.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Cf.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Cf.prototype._gdpr_call_func=function(e,t){return t=zl.extend({track:zl.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),zl.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Cf.prototype.opt_in_tracking=function(e){e=zl.extend({enable_persistence:!0},e),this._gdpr_call_func(_b,e),this._gdpr_update_persistence(e)},Cf.prototype.opt_out_tracking=function(e){(e=zl.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(wb,e),this._gdpr_update_persistence(e)},Cf.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(kb,e)},Cf.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Sb,e)},Cf.prototype.clear_opt_in_out_tracking=function(e){e=zl.extend({enable_persistence:!0},e),this._gdpr_call_func(Ib,e),this._gdpr_update_persistence(e)},Cf.prototype.report_error=function(e,t){Vl.error.apply(Vl.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Vl.error(t)}},Cf.prototype.init=Cf.prototype.init,Cf.prototype.reset=Cf.prototype.reset,Cf.prototype.disable=Cf.prototype.disable,Cf.prototype.time_event=Cf.prototype.time_event,Cf.prototype.track=Cf.prototype.track,Cf.prototype.track_links=Cf.prototype.track_links,Cf.prototype.track_forms=Cf.prototype.track_forms,Cf.prototype.track_pageview=Cf.prototype.track_pageview,Cf.prototype.register=Cf.prototype.register,Cf.prototype.register_once=Cf.prototype.register_once,Cf.prototype.unregister=Cf.prototype.unregister,Cf.prototype.identify=Cf.prototype.identify,Cf.prototype.alias=Cf.prototype.alias,Cf.prototype.name_tag=Cf.prototype.name_tag,Cf.prototype.set_config=Cf.prototype.set_config,Cf.prototype.get_config=Cf.prototype.get_config,Cf.prototype.get_api_host=Cf.prototype.get_api_host,Cf.prototype.get_property=Cf.prototype.get_property,Cf.prototype.get_distinct_id=Cf.prototype.get_distinct_id,Cf.prototype.toString=Cf.prototype.toString,Cf.prototype.opt_out_tracking=Cf.prototype.opt_out_tracking,Cf.prototype.opt_in_tracking=Cf.prototype.opt_in_tracking,Cf.prototype.has_opted_out_tracking=Cf.prototype.has_opted_out_tracking,Cf.prototype.has_opted_in_tracking=Cf.prototype.has_opted_in_tracking,Cf.prototype.clear_opt_in_out_tracking=Cf.prototype.clear_opt_in_out_tracking,Cf.prototype.get_group=Cf.prototype.get_group,Cf.prototype.set_group=Cf.prototype.set_group,Cf.prototype.add_group=Cf.prototype.add_group,Cf.prototype.remove_group=Cf.prototype.remove_group,Cf.prototype.track_with_groups=Cf.prototype.track_with_groups,Cf.prototype.start_batch_senders=Cf.prototype.start_batch_senders,Cf.prototype.stop_batch_senders=Cf.prototype.stop_batch_senders,Cf.prototype.start_session_recording=Cf.prototype.start_session_recording,Cf.prototype.stop_session_recording=Cf.prototype.stop_session_recording,Cf.prototype.pause_session_recording=Cf.prototype.pause_session_recording,Cf.prototype.resume_session_recording=Cf.prototype.resume_session_recording,Cf.prototype.get_session_recording_properties=Cf.prototype.get_session_recording_properties,Cf.prototype.get_session_replay_url=Cf.prototype.get_session_replay_url,Cf.prototype.get_tab_id=Cf.prototype.get_tab_id,Cf.prototype.DEFAULT_API_ROUTES=kf,Cf.prototype.__get_recorder=Cf.prototype.__get_recorder,lf.prototype.properties=lf.prototype.properties,lf.prototype.update_search_keyword=lf.prototype.update_search_keyword,lf.prototype.update_referrer_info=lf.prototype.update_referrer_info,lf.prototype.get_cross_subdomain=lf.prototype.get_cross_subdomain,lf.prototype.clear=lf.prototype.clear,Tf={},Af=function(){zl.each(Tf,function(e,t){t!==mf&&(ff[t]=e)}),ff._=zl},Rf=function(){ff.init=function(e,t,r){if(r)return ff[r]||(ff[r]=Tf[r]=Ef(e,t,r),ff[r]._loaded()),ff[r];var n=ff;Tf[mf]?n=Tf[mf]:e&&((n=Ef(e,t,mf))._loaded(),Tf[mf]=n),ff=n,1===hf&&(Bt[mf]=ff),Af()}},Mf=function(){function e(){e.done||(e.done=!0,xf=!0,_f=!1,zl.each(Tf,function(e){e._dom_loaded()}))}if(Fl.addEventListener)"complete"===Fl.readyState?e():Fl.addEventListener("DOMContentLoaded",e,!1);else if(Fl.attachEvent){Fl.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Bt.frameElement}catch(Lf){}Fl.documentElement.doScroll&&t&&function t(){try{Fl.documentElement.doScroll("left")}catch(Lf){return void setTimeout(t,1)}e()}()}zl.register_event(Bt,"load",e,!0)},pf=Kb,hf=df,ff=new Cf,Rf(),ff.init(),Mf(),Ff=ff,Nf=[];for(let e=0;e<256;++e)Nf.push((e+256).toString(16).slice(1));Df=new Uint8Array(16),Pf=A.createContext({}),e("s",()=>(0,A.useContext)(Pf)),e("a",({children:e,trackingPipelineSettings:r,analyticsSettings:n,attributes:i={},meta:o,flags:s})=>{var a,u,c,l,h;const p=Rt(null!==(a=null==r?void 0:r.apiKey)&&void 0!==a?a:""),f={client_id:o.clientId,host_url:i.host_url,lat:null===(u=i.location)||void 0===u?void 0:u.lat,lng:null===(c=i.location)||void 0===c?void 0:c.lng,session_id:n_(),device_id:t_(),product_name:o.productName,product_version:o.productVersion,device_type:e_(),display_mode:void 0===i.isMobile?void 0:i.isMobile?"narrow":"wide"},[d]=(0,A.useState)({ll_product_name:o.productName,ll_product_version:o.productVersion,ll_client_id:o.clientId,ll_locale:i.locale,ll_location_lat:null===(l=i.location)||void 0===l?void 0:l.lat,ll_location_lng:null===(h=i.location)||void 0===h?void 0:h.lng});return(0,ue.jsx)(Pf.Provider,{value:{postEvent:({eventType:e,eventAttributes:r})=>{const n={event_type:e,event_version:"1.0.0",meta:{product_version:o.productVersion||"not_defined",product_name:o.productName||"",client_id:o.clientId,device_id:t_(),session_id:n_()},attributes:t({event_attributes:r},i)};null!=s&&s.isDebugMode?console.info("Tracking event:",n):p.postEvent(n)},trackAnalyticsEvent:({eventName:e,eventAttributes:r={}})=>{if(void 0!==n&&"mixpanel"===n.tracker&&(n.printDebugMode&&console.info("Mixpanel Debug:",{event:e,projectToken:n.key,properties:t(t({},r),d)}),!n.isDebugMode))try{Ff.track(e,t(t({},r),d))}catch(i){}},metadata:f},children:e})}),Lf=Object.create,jf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,Uf=Object.getOwnPropertyNames,Bf=Object.getPrototypeOf,qf=Object.prototype.hasOwnProperty,zf=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Vf=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=Uf(t),s=0,a=o.length;s<a;s++)i=o[s],!qf.call(e,i)&&i!==r&&jf(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=$f(t,i))||n.enumerable});return e},Wf=(e,t,r)=>(r=null==e?{}:Lf(Bf(e)),Vf(!t&&e&&e.__esModule?r:jf(r,"default",{value:e,enumerable:!0}),e)),Hf={dev:"https://api-dev.locallogic.co/v3",qa:"https://api-qa.locallogic.co/v3",prod:"https://api.locallogic.co/v3"},Gf=(e,r)=>{let n=Hf[(null==r?void 0:r.environment)||"prod"];return{get:async function(i,o){let s;if(null!=o&&o.params){let e=Object.entries(o.params).filter(([e,t])=>void 0!==t).reduce((e,[t,r])=>(e[t]=r,e),{});s=new URLSearchParams(t(t({},e),(null==r?void 0:r.locale)&&{language:null==r?void 0:r.locale}))}else s=new URLSearchParams(t({},(null==r?void 0:r.locale)&&{language:null==r?void 0:r.locale}));let a=await fetch(`${n}${i}?${s}`,{headers:t({Accept:"application/json",Authorization:e},(null==r?void 0:r.product)&&{"x-ll-sdk-name":r.product})});return 204===a.status?{data:{},meta:{message:"Received code 204",type:"LocalLogic.API.Success",statusCode:200,counts:{}}}:a.json()}}},Zf="/geographies",Yf=zf((e,t)=>{function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),l=new r(512);function h(e){return u.get(e)||u.set(e,p(e).map(function(e){return e.replace(a,"$2")}))}function p(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}t.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=h(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||i.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),s=f(n),o=!s&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}}),Jf=zf((e,t)=>{var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(r)||[],i=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),s=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");t.exports={words:n,upperFirst:i,camelCase:s,pascalCase:e=>i(s(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>i(o(e," ")),titleCase:e=>n(e).map(i).join(" ")}}),Kf=zf((e,t)=>{function r(e,t){var r=e.length,n=Array(r),i={},o=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||u(e[o],o,new Set);return n;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(p){c=""}throw Error("Cyclic dependency"+c)}if(!a.has(e))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var h=l[--t];u(h,a.get(h),o)}while(t);o.delete(e)}n[--r]=e}}}t.exports=function(e){return r(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},t.exports.array=r}),Xf=Yf(),Qf=Jf(),ed=Wf(Kf()),td=Object.prototype.toString,rd=Error.prototype.toString,nd=RegExp.prototype.toString,id=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",od=/^Symbol\((.*)\)(.*)$/,cd=/\$\{\s*(\w+)\s*\}/g,sd=Symbol.toStringTag,ld=class{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[sd]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],s_(e).forEach(e=>{if(hd.isError(e)){this.errors.push(...e.errors);let t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}},ad=Symbol.hasInstance,ud=Symbol.toStringTag,hd=class e extends Error{static formatError(e,t){let r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(cd,(e,r)=>o_(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(t,r,n,i,o){let s=new ld(t,r,n,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ud]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,e)}static[ad](e){return ld[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},pd={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r?` (cast from the value \`${o_(n,!0)}\`).`:".";return"mixed"===t?`${e} must match the configured type. The validated value was: \`${o_(r,!0)}\``+i:`${e} must be a \`${t}\` type, but the final value was: \`${o_(r,!0)}\``+i}},fd={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},dd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},gd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},md={isValue:"${path} field must be ${value}"},vd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},yd={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},bd={notType:e=>{let{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${o_(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${o_(r,!0)}\``}return hd.formatError(pd.notType,e)}},Object.assign(Object.create(null),{mixed:pd,string:fd,number:dd,date:gd,object:vd,array:yd,boolean:md,tuple:bd}),_d=e=>e&&e.__isYupSchema__,wd=class e{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new e(t,(e,t)=>{var r,n;return null!==(r=null===(n=s(...e)?i:o)||void 0===n?void 0:n(t))&&void 0!==r?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!_d(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}},kd={context:"$",value:"."},Sd=class{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===kd.context,this.isValue=this.key[0]===kd.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?kd.context:this.isValue?kd.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Xf.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}},Sd.prototype.__isYupRef=!0,xd=e=>null==e,Cd=class e extends Set{describe(){let e=[];for(let t of this.values())e.push(Sd.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new e(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}},Ed=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Cd,this._blacklist=new Cd,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(pd.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=h_(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();return r.spec=Object.assign({},t.spec,r.spec),r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!!(this.spec.nullable&&null===e||this.spec.optional&&void 0===e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,i;return Object.assign({},e,{from:e.from||[],strict:null!==(t=e.strict)&&void 0!==t?t:this.spec.strict,abortEarly:null!==(r=e.abortEarly)&&void 0!==r?r:this.spec.abortEarly,recursive:null!==(n=e.recursive)&&void 0!==n?n:this.spec.recursive,disableStackTrace:null!==(i=e.disableStackTrace)&&void 0!==i?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&xd(i))return i;let o=o_(e),s=o_(i);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(s===o?"":`result of cast: ${s}`))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:u},r,e=>{if(e.length)return n(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:s,path:a,options:u}=e,c=e=>{n||(n=!0,t(e,o))},l=e=>{n||(n=!0,r(e,o))},h=i.length,p=[];if(!h)return l([]);let f={value:o,originalValue:s,path:a,options:u,schema:this};for(let d=0;d<i.length;d++){(0,i[d])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--h<=0&&l(p)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){let s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");let a="number"==typeof s,u=r[s],c=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${n||""}[${a?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),i=null!==(r=null==t?void 0:t.disableStackTrace)&&void 0!==r?r:n.spec.disableStackTrace;return new Promise((r,o)=>n._validate(e,t,(e,t)=>{hd.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new hd(e,t,void 0,void 0,i)):r(t)}))}validateSync(e,t){var r;let n,i=this.resolve(Object.assign({},t,{value:e})),o=null!==(r=null==t?void 0:t.disableStackTrace)&&void 0!==r?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw hd.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new hd(t,e,void 0,void 0,o);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(hd.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(hd.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):h_(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=a_({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=a_({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=pd.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=pd.notNull){return this.nullability(!1,e)}required(e=pd.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=pd.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=a_(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>!(e.OPTIONS.name===t.name&&(i||e.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,t){!Array.isArray(e)&&"string"!=typeof e&&(t=e,e=".");let r=this.clone(),n=s_(e).map(e=>new Sd(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new wd(n,t):wd.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=a_({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=pd.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=a_({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=pd.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=a_({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){let t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{let r=t.OPTIONS.params&&e?u_(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){let e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof hd)return{issues:f_(e)};throw e}}}}},Ed.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])Ed.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:s}=l_(this,t,r,n.context);return s[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(let e of["equals","is"])Ed.prototype[e]=Ed.prototype.oneOf;for(let e of["not","nope"])Ed.prototype[e]=Ed.prototype.notOneOf;Id=()=>!0,Od=class extends Ed{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Id},e))}},d_.prototype=Od.prototype,Td=class extends Ed{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=md.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>xd(e)||!0===e})}isFalse(e=md.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>xd(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}},g_.prototype=Td.prototype,Ad=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/,Rd=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Md=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Fd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Nd=RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Dd=e=>xd(e)||e===e.trim(),Pd={}.toString(),Ld=class extends Ed{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;let n=null!=e&&e.toString?e.toString():e;return n===Pd?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||pd.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=fd.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=fd.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=fd.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||fd.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=fd.email){return this.matches(Rd,{name:"email",message:e,excludeEmptyString:!0})}url(e=fd.url){return this.matches(Md,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=fd.uuid){return this.matches(Fd,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(Nd,{name:"datetime",message:n||fd.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||fd.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;let r=m_(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||fd.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;let t=m_(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=fd.trim){return this.transform(e=>null==e?e:e.trim()).test({message:e,name:"trim",test:Dd})}lowercase(e=fd.lowercase){return this.transform(e=>xd(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>xd(e)||e===e.toLowerCase()})}uppercase(e=fd.uppercase){return this.transform(e=>xd(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>xd(e)||e===e.toUpperCase()})}},y_.prototype=Ld.prototype,jd=e=>e!=+e,$d=class extends Ed{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!jd(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=dd.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=dd.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=dd.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=dd.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=dd.positive){return this.moreThan(0,e)}negative(e=dd.negative){return this.lessThan(0,e)}integer(e=dd.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>xd(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null===(t=e)||void 0===t?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>xd(t)?t:Math[e](t))}},b_.prototype=$d.prototype,Ud=new Date(""),Bd=e=>"[object Date]"===Object.prototype.toString.call(e),qd=class e extends Ed{constructor(){super({type:"date",check:e=>Bd(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||null===t?t:(t=function(e){let t=m_(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(t),isNaN(t)?e.INVALID_DATE:new Date(t)))})}prepareParam(e,t){let r;if(Sd.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=gd.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=gd.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}},qd.INVALID_DATE=Ud,__.prototype=qd.prototype,__.INVALID_DATE=Ud,zd=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(i){}return r.isType(n)?n:e},Vd=(e,t)=>{let r=[...(0,Xf.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,Xf.getter)((0,Xf.join)(r),!0)(e);return!(!i||!(n in i))},Wd=e=>"[object Object]"===Object.prototype.toString.call(e),Hd=k_([]),Gd=class extends Ed{constructor(e){super({type:"object",check:e=>Wd(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Hd,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,o=null!==(r=t.stripUnknown)&&void 0!==r?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),a={},u=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),c=!1;for(let l of s){let e=i[l],r=l in n;if(e){let r,i=n[l];u.path=(t.path?`${t.path}.`:"")+l,e=e.resolve({value:i,context:t.context,parent:a});let o=e instanceof Ed?e.spec:void 0,s=null==o?void 0:o.strict;if(null!=o&&o.strip){c||(c=l in n);continue}r=t.__validating&&s?n[l]:e.cast(n[l],u),void 0!==r&&(a[l]=r)}else r&&!o&&(a[l]=n[l]);(r!==l in a||a[l]!==n[l])&&(c=!0)}return c?a:n}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!s||!Wd(i))return void n(e,i);o||(o=i);let a=[];for(let r of this._nodes){let e=this.fields[r];!e||Sd.isRef(e)||a.push(e.asNestedTest({options:t,key:r,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){let t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[n,i]of Object.entries(this.fields)){let e=r[n];r[n]=void 0===e?i:e}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;let i=this.fields[r],o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,Xf.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let s of Object.keys(e)){let t=e[s];n.add(s),Sd.isRef(t)&&t.isSibling?o(t.path,s):_d(t)&&"deps"in t&&t.deps.forEach(e=>o(e,s))}return ed.default.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=k_(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){let e={};for(let[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return S_(this)}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){let t=[];for(let r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,Xf.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return Vd(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(zd)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||vd.exact,test(e){if(null==e)return!0;let t=x_(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=vd.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;let r=x_(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=vd.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;let r={};for(let n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(Qf.camelCase)}snakeCase(){return this.transformKeys(Qf.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Qf.snakeCase)(e).toUpperCase())}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(let[i,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}},C_.prototype=Gd.prototype,Zd=class extends Ed{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){var i;let o=this.innerType,s=null!==(i=t.recursive)&&void 0!==i?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(i,a)=>{var u;if(!s||!o||!this._typeCheck(a))return void n(i,a);let c=Array(a.length);for(let r=0;r<a.length;r++){var l;c[r]=o.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:null!==(l=t.originalValue)&&void 0!==l?l:e})}this.runTests({value:a,tests:c,originalValue:null!==(u=t.originalValue)&&void 0!==u?u:e,options:t},r,e=>n(e.concat(i),a))})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(zd)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!_d(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+o_(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=yd.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t||(t=yd.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t||(t=yd.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null==e?e:e.filter(t))}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}},E_.prototype=Zd.prototype,Yd=class extends Ed{constructor(e){super({type:"tuple",spec:{types:e},check(e){let t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(bd.notType)})}_cast(e,t){let{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1,o=r.map((e,r)=>{let o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,s)=>{var a;if(!this._typeCheck(s))return void n(o,s);let u=[];for(let[r,n]of i.entries()){var c;u[r]=n.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!==(c=t.originalValue)&&void 0!==c?c:e})}this.runTests({value:s,tests:u,originalValue:null!==(a=t.originalValue)&&void 0!==a?a:e,options:t},r,e=>n(e.concat(o),s))})}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}},I_.prototype=Yd.prototype,Jd=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),include:y_().oneOf(["geometry"]),externalId:y_().optional()}),Kd=e=>async t=>{let{lat:r,lng:n,geogId:i}=await Jd.validate(t),o=i?`${Zf}/${i}`:Zf,s={lat:r,lng:n,external_id:null==t?void 0:t.externalId};return t.include&&(s.include=t.include),(await e.get(o,{params:s})).data},Xd=function(e){return e[e.measures_all=0]="measures_all",e[e.scores_all=1]="scores_all",e}({}),Qd=RegExp(`(${Object.keys(Xd).filter(e=>Number.isNaN(Number(e))).join("|")})`),eg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:E_().of(y_().matches(Qd,"Must be a valid Data category.").required()).required(),radius:b_().max(5e3)}),tg=e=>async r=>{let{lat:n,lng:i,radius:o,include:s}=await eg.validate(r),a=await e.get("/data",{params:{lat:n,lng:i,radius:o,include:null==s?void 0:s.join(",")}}),u=s.reduce((e,r)=>t(t({},e),{},{[r]:[]}),{});return a.data||u},rg="/demographics",ng=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").optional(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").optional(),geographyId:y_().optional(),radius:b_().max(5e3),radiusUnit:y_().oneOf(["meter","mile"]).optional()}),ig=e=>async r=>{let{lat:n,lng:i,geographyId:o,radius:s,radiusUnit:a}=await ng.validate(r),u=o?`${rg}/${o}`:rg,c=t({},(await e.get(u,{params:{lat:n,lng:i,radius:s,radius_unit:a}})).data.attributes),l={inc_home:"avg_household_income",inc_person:"avg_individual_income",prop_renter:"renters",prop_owner:"owners"};return Object.prototype.hasOwnProperty.call(c,"income_stats")&&c.income_stats&&(c.income={label:c.income_stats.label,type:c.income_stats.type,variables:c.income_stats.variables.map(e=>t(t({},e),{},{variable:l[e.variable]}))}),Object.prototype.hasOwnProperty.call(c,"property_tenure")&&c.property_tenure&&(c.housing_tenancy={label:c.property_tenure.label,type:c.property_tenure.type,variables:c.property_tenure.variables.map(e=>t(t({},e),{},{variable:l[e.variable]}))}),c},og="/enhanced-pois",sg=function(e){return e.AIRPORTS="airports",e.ALCOHOL="alcohol",e.ART_CULTURE_SCIENCE="art_culture_science",e.BANKS="banks",e.BUS_STOPS="bus_stops",e.CAFES="cafes",e.CAR_FUELING_STATIONS="car_fueling_stations",e.CASINO="casino",e.CLOTHING="clothing",e.COMMON_NEEDS="common_needs",e.CONFERENCE_CENTERS="conference_centers",e.CONVENIENCE_STORES="convenience_stores",e.DAYCARES="daycares",e.DEPARTMENT_STORES="department_stores",e.ENTERTAINMENT="entertainment",e.FITNESS="fitness",e.GROCERIES_SPECIALIZED="groceries_specialized",e.GROCERIES="groceries",e.HEALTH_CARE="health_care",e.HOME_IMPROVEMENT="home_improvement",e.HOSPITALS="hospitals",e.LIBRARIES="libraries",e.NIGHTLIFE="nightlife",e.NON_FOOD_SHOPS="non_food_shops",e.PARKS="parks",e.PERSONAL_CARE="personal_care",e.PET_CARE="pet_care",e.PHARMACIES="pharmacies",e.RAPID_TRANSIT_STATIONS="rapid_transit_stations",e.RESTAURANTS="restaurants",e.RETAIL="retail",e.SHOPS_AND_SERVICES="shops_and_services",e.SPORT_FACILITIES="sport_facilities",e.TRAIN_STATIONS="train_stations",e}({}),ag=RegExp(`(${Object.values(sg).filter(e=>Number.isNaN(Number(e))).join("|")})`),ug=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),limit:b_().max(500),attemptMinimum:b_().max(500),radius:b_().max(25e3),buffer:b_().max(1e4),include:E_().of(y_().matches(ag,"Must be a valid category.").required()).optional()}),cg=e=>async t=>{var r,n;let{attemptMinimum:i,include:o,lat:s,lng:a,limit:u=30,buffer:c=0,radius:l,geogId:h}=await ug.validate(t),p=h?`${og}/${h}`:og,f={categories:null==o?void 0:o.join(","),limit:u};void 0===h?(f.lat=s,f.lng=a,f.radius=l):f.buffer=c;let d=await e.get(p,{params:f});return void 0===h&&void 0!==i&&(null!==(r=null===(n=d)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.results)||void 0===n?void 0:n.length)&&void 0!==r?r:0)<i&&(d=await e.get(og,{params:{categories:null==o?void 0:o.join(","),lat:s,lng:a,limit:i,radius:1e4}})),d||{data:{results:[]},meta:{message:"Successfully called v3/enhanced_pois API.",type:"LocalLogic.API.Success",statusCode:200,counts:{returned_count:0,total_count:0,returned_by_category:{[sg.AIRPORTS]:0,[sg.ALCOHOL]:0,[sg.ART_CULTURE_SCIENCE]:0,[sg.BANKS]:0,[sg.BUS_STOPS]:0,[sg.CAFES]:0,[sg.CAR_FUELING_STATIONS]:0,[sg.CASINO]:0,[sg.CLOTHING]:0,[sg.COMMON_NEEDS]:0,[sg.CONFERENCE_CENTERS]:0,[sg.CONVENIENCE_STORES]:0,[sg.DAYCARES]:0,[sg.DEPARTMENT_STORES]:0,[sg.ENTERTAINMENT]:0,[sg.FITNESS]:0,[sg.GROCERIES_SPECIALIZED]:0,[sg.GROCERIES]:0,[sg.HEALTH_CARE]:0,[sg.HOME_IMPROVEMENT]:0,[sg.HOSPITALS]:0,[sg.LIBRARIES]:0,[sg.NIGHTLIFE]:0,[sg.NON_FOOD_SHOPS]:0,[sg.PARKS]:0,[sg.PERSONAL_CARE]:0,[sg.PET_CARE]:0,[sg.PHARMACIES]:0,[sg.RAPID_TRANSIT_STATIONS]:0,[sg.RESTAURANTS]:0,[sg.RETAIL]:0,[sg.SHOPS_AND_SERVICES]:0,[sg.SPORT_FACILITIES]:0,[sg.TRAIN_STATIONS]:0},total_by_category:{[sg.AIRPORTS]:0,[sg.ALCOHOL]:0,[sg.ART_CULTURE_SCIENCE]:0,[sg.BANKS]:0,[sg.BUS_STOPS]:0,[sg.CAFES]:0,[sg.CAR_FUELING_STATIONS]:0,[sg.CASINO]:0,[sg.CLOTHING]:0,[sg.COMMON_NEEDS]:0,[sg.CONFERENCE_CENTERS]:0,[sg.CONVENIENCE_STORES]:0,[sg.DAYCARES]:0,[sg.DEPARTMENT_STORES]:0,[sg.ENTERTAINMENT]:0,[sg.FITNESS]:0,[sg.GROCERIES_SPECIALIZED]:0,[sg.GROCERIES]:0,[sg.HEALTH_CARE]:0,[sg.HOME_IMPROVEMENT]:0,[sg.HOSPITALS]:0,[sg.LIBRARIES]:0,[sg.NIGHTLIFE]:0,[sg.NON_FOOD_SHOPS]:0,[sg.PARKS]:0,[sg.PERSONAL_CARE]:0,[sg.PET_CARE]:0,[sg.PHARMACIES]:0,[sg.RAPID_TRANSIT_STATIONS]:0,[sg.RESTAURANTS]:0,[sg.RETAIL]:0,[sg.SHOPS_AND_SERVICES]:0,[sg.SPORT_FACILITIES]:0,[sg.TRAIN_STATIONS]:0}}}}},lg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required()}),hg=e=>async t=>{let{lat:r,lng:n}=await lg.validate(t);return(await e.get("/location",{params:{lat:r,lng:n}})).data},pg=function(e){return e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care",e}({}),fg="/pois",dg=RegExp(`(${Object.keys(pg).filter(e=>Number.isNaN(Number(e))).join("|")})`),gg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:b_().max(500),attemptMinimum:b_().max(30),radius:b_().max(25e3),include:E_().of(y_().matches(dg,"Must be a valid category.").required()).required()}),mg=e=>async r=>{var n;let{lat:i,lng:o,limit:s=30,attemptMinimum:a,radius:u,include:c}=await gg.validate(r),l=await e.get(fg,{params:{lat:i,lng:o,limit:c.length>1&&s>30?30:s,radius:u,include:null==c?void 0:c.join(",")}});void 0!==a&&!O_((null===(n=l)||void 0===n?void 0:n.data)||null,a)&&(l=await e.get(fg,{params:{lat:i,lng:o,limit:a,radius:1e4,include:null==c?void 0:c.join(",")}}));let h=c.reduce((e,r)=>t(t({},e),{},{[r]:[]}),{});return l.data||h},vg=e=>async r=>{let{lat:n,lng:i,limit:o,radius:s,include:a}=await gg.validate(r),u=await e.get(fg,{params:{lat:n,lng:i,limit:o,radius:s,include:null==a?void 0:a.join(",")}}),c=a.reduce((e,r)=>t(t({},e),{},{[r]:0}),{});return u.meta.counts||c},yg="/profiles",bg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),externalId:y_().optional()}),_g=e=>async t=>{let{lat:r,lng:n,geogId:i}=await bg.validate(t),o=i?`${yg}/${i}`:yg;return(await e.get(o,{params:{lat:r,lng:n,external_id:null==t?void 0:t.externalId}})).data},wg=function(e){return e[e.pedestrian_friendly=0]="pedestrian_friendly",e[e.cycling_friendly=1]="cycling_friendly",e[e.transit_friendly=2]="transit_friendly",e[e.car_friendly=3]="car_friendly",e[e.parks=4]="parks",e[e.groceries=5]="groceries",e[e.shopping=6]="shopping",e[e.nightlife=7]="nightlife",e[e.restaurants=8]="restaurants",e[e.cafes=9]="cafes",e[e.daycares=10]="daycares",e[e.primary_schools=11]="primary_schools",e[e.high_schools=12]="high_schools",e[e.quiet=13]="quiet",e[e.greenery=14]="greenery",e[e.historic=15]="historic",e[e.vibrant=16]="vibrant",e[e.wellness=17]="wellness",e}({}),kg=RegExp(`(${Object.keys(wg).filter(e=>Number.isNaN(Number(e))).join("|")})`),Sg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:E_().of(y_().required()),geographyLevels:E_().of(y_().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:g_(),include:E_().of(y_().matches(kg,"Must be a valid Score category.").required())}),xg=e=>async t=>{let{lat:r,lng:n,include:i,geographyIds:o,geographyLevels:s,locationScoresRounding:a=!0}=await Sg.validate(t);return(await e.get("/scores",{params:{lat:r,lng:n,include:null==i?void 0:i.join(","),geography_levels:null==s?void 0:s.join(","),geography_ids:null==o?void 0:o.join(","),location_scores_rounding:a?".5":"none"}})).data},Cg=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:y_(),limit:b_().positive(),externalId:y_().optional()}),Eg=e=>async t=>{let{lat:r,lng:n,geogId:i,limit:o}=await Cg.validate(t),s=await e.get(`/similar-neighborhoods/${i}`,{params:{lat:r,lng:n,limit:o,external_id:null==t?void 0:t.externalId}});return null!=s&&s.data?s.data:{id:i,most_similar:[]}},Ig=C_({geogId:y_().required(),limit:b_().optional()}),Og=e=>async r=>{let{geogId:n}=await Ig.validate(r),i=await e.get(`/value-drivers/${n}`,{params:{limit:r.limit||-1}}),o=i.data.value_drivers.map(e=>t(t({},e),{},{name:(e.name||"").toLocaleLowerCase(),value_qualifier:(e.value_qualifier||"").toLocaleLowerCase()}));return t(t({},i.data),{},{value_drivers:o})},Tg="/schools",Ag=C_({lat:b_().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:b_().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:y_().optional(),limit:b_().max(30,"Must use a limit between 1 and 30."),attemptMinimum:b_().max(30),radius:b_().max(25e3,"Must use a radius between 1 and 25000."),buffer:b_().max(1e4,"Must use a buffer between 1 and 10000."),include_catchments:g_()}),Rg=e=>async t=>{var r;let{lat:n,lng:i,geogId:o,limit:s,attemptMinimum:a,radius:u,buffer:c,include_catchments:l}=await Ag.validate(t),h=o?`${Tg}/${o}`:Tg,p={limit:s,include_catchments:l};void 0===o?(p.lat=n,p.lng=i,p.radius=u):p.buffer=c;let f=await e.get(h,{params:p});return void 0===o&&void 0!==a&&!O_((null===(r=f)||void 0===r?void 0:r.data)||null,a)&&(f=await e.get(Tg,{params:{lat:n,lng:i,limit:a,radius:1e4,include_catchments:l}})),f.data},Mg=C_({geogId:y_().required()}),Fg=e=>async t=>{let{geogId:r}=await Mg.validate(t);return(await e.get(`/marketstats/${r}`)).data},Ng=C_({geogId:y_().required(),intervals:E_().of(y_().required()),propertyTypes:E_().of(y_().required())}),Dg=e=>async t=>{let{geogId:r,propertyTypes:n,intervals:i}=await Ng.validate(t);return(await e.get(`/market-stats/${r}`,{params:{property_types:null==n?void 0:n.join(","),intervals:null==i?void 0:i.join(",")}})).data},Pg="LocalLogicClient/",Lg=class extends Error{constructor({message:e}){super(e),this.name=Pg+this.constructor.name}},jg=class extends Error{constructor({message:e}){super(e),this.name=Pg+this.constructor.name}},$g=e=>{throw e instanceof hd?new Lg(e):new jg(e)},Ug=(e,t,r)=>{let n=r.value;return r.value=function(...e){try{let t=n.apply(this,e);return t&&t instanceof Promise?t.catch(e=>{$g(e)}):t}catch(e){$g(e)}},r},Bg=class{constructor(e,t={locale:"en"}){this.requests=Gf(e,t),this.options=t}getLocation(e){return hg(this.requests)(e)}getPois(e){return mg(this.requests)(e)}getPoisMetadata(e){return vg(this.requests)(e)}getScores(e){return xg(this.requests)(e)}getSimilarNeighborhoods(e){return Eg(this.requests)(e)}getSchools(e){return Rg(this.requests)(e)}getProfiles(e){return _g(this.requests)(e)}getGeographies(e){return Kd(this.requests)(e)}getDemographics(e){return ig(this.requests)(e)}getData(e){return tg(this.requests)(e)}getEnhancedPois(e){return cg(this.requests)(e)}getPropertyValueDrivers(e){return Og(this.requests)(e)}getMarketTrends(e){return Fg(this.requests)(e)}getMarketActivity(e){return Dg(this.requests)(e)}},T_([Ug],Bg.prototype,"getLocation",null),T_([Ug],Bg.prototype,"getPois",null),T_([Ug],Bg.prototype,"getPoisMetadata",null),T_([Ug],Bg.prototype,"getScores",null),T_([Ug],Bg.prototype,"getSimilarNeighborhoods",null),T_([Ug],Bg.prototype,"getSchools",null),T_([Ug],Bg.prototype,"getProfiles",null),T_([Ug],Bg.prototype,"getGeographies",null),T_([Ug],Bg.prototype,"getDemographics",null),T_([Ug],Bg.prototype,"getData",null),T_([Ug],Bg.prototype,"getEnhancedPois",null),T_([Ug],Bg.prototype,"getPropertyValueDrivers",null),T_([Ug],Bg.prototype,"getMarketTrends",null),T_([Ug],Bg.prototype,"getMarketActivity",null),qg=(e,t)=>new Bg(e,t),zg=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Vg=/^rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)$/,Wg=A.createContext({}),e("i",()=>(0,A.useContext)(Wg)),e("r",({appearance:e,apiKey:t,externalId:r,children:n,locale:i,product:o,environment:s})=>{if((0,A.useEffect)(()=>{null!=e&&e.theme&&document.documentElement.setAttribute("data-theme",null==e?void 0:e.theme),function(e){if("object"==typeof e){if("string"==typeof e["--ll-font-family"]&&document.documentElement.style.setProperty("--ll-font-family",e["--ll-font-family"]),"string"==typeof e["--ll-color-primary"]&&(document.documentElement.style.setProperty("--ll-color-primary",e["--ll-color-primary"]),"#008491"!==e["--ll-color-primary"].toUpperCase())){const t=R_(e["--ll-color-primary"],{10:.9,25:.85,50:.22,100:0,200:-.18,300:-.3});Object.entries(t).forEach(([e,t])=>{document.documentElement.style.setProperty(`--ll-colors-primary-${e}`,t)})}if("string"==typeof e["--ll-color-primary-variant1"]&&(document.documentElement.style.setProperty("--ll-color-primary-variant1",e["--ll-color-primary-variant1"]),"#0F766E"!==e["--ll-color-primary-variant1"].toUpperCase())){const t=R_(e["--ll-color-primary-variant1"],{10:.25,25:.23,50:.11,100:0,200:-.1});Object.entries(t).forEach(([e,t])=>{document.documentElement.style.setProperty(`--ll-colors-secondary-${e}`,t)})}}}(null==e?void 0:e.variables)},[null==e?void 0:e.theme,null==e?void 0:e.variables]),!t)throw Error("A valid apiKey must be provided.");const a=qg(t,{locale:i,product:o,environment:s});return(0,ue.jsx)(Wg.Provider,{value:{client:a,locale:i,options:{externalId:r,appearance:e}},children:n})}),e("n",{localContent:t(t({},Hg={tracker:"mixpanel",isDebugMode:!1,printDebugMode:!1}),{},{key:"14dc84d9ebfcd6747e51e28d2c22b7ad"}),localDemographics:t(t({},Hg),{},{key:"74b752391c7469929d425547f42b2acd"}),neighborhoodMatch:t(t({},Hg),{},{key:"e3e3ab8758f5061193fd94149288834d"}),neighborhoodWrap:t(t({},Hg),{},{key:"e3e0bceff1412922c58657d745f9f663"}),neighborhoodShowcase:t(t({},Hg),{},{key:"f19a8f4ceca8140edf4a693707160e6f"}),neighborhoodFeatured:t(t({},Hg),{},{key:"171ab916e9dd5af0d41facbebfca6814"}),leadCapture:t(t({},Hg),{},{key:"c61e08f2c8f3a7d7ad8eb5ff09780da2"})}),e("t",function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e.LEAD_CAPTURE="lead-capture",e}({}))}}})}();
2
+ //# sourceMappingURL=sdks-legacy-3sJ2n28B.js.map