@local-logic/sdks-app 1.10.3 → 1.10.5

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 (145) hide show
  1. package/dist/assets/Pencil.40bb82dd.svg +3 -0
  2. package/dist/assets/{index-legacy.eb0096d2.js → index-legacy.1396eeb2.js} +1 -1
  3. package/dist/assets/{index-legacy.fa7736a7.js → index-legacy.34d70e8c.js} +1 -1
  4. package/dist/assets/{index-legacy.c4bf8ae2.js → index-legacy.63f980b7.js} +1 -1
  5. package/dist/assets/index-legacy.7ad503c8.js +1 -0
  6. package/dist/assets/index-legacy.7bf12ce0.js +106 -0
  7. package/dist/assets/{index-legacy.9a26f62c.js → index-legacy.95781af1.js} +1 -1
  8. package/dist/assets/index-legacy.9c7984ae.js +1 -0
  9. package/dist/assets/{index-legacy.57bc6187.js → index-legacy.cc2962c1.js} +1 -1
  10. package/dist/assets/index-legacy.e71f5501.js +23 -0
  11. package/dist/assets/{index.c9dce44d.js → index.060d0b36.js} +1 -1
  12. package/dist/assets/{index.c0a37a24.js → index.0622e1cc.js} +1 -1
  13. package/dist/assets/{index.130c24fb.js → index.1eecc69b.js} +1 -1
  14. package/dist/assets/index.2a070823.js +247 -0
  15. package/dist/assets/{index.f4fcee01.js → index.39994a8d.js} +1 -1
  16. package/dist/assets/index.85c51524.js +626 -0
  17. package/dist/assets/{index.3ae9f8f8.js → index.882e9140.js} +533 -461
  18. package/dist/assets/index.8ac79a13.js +336 -0
  19. package/dist/assets/{index.e1710313.js → index.f772efbf.js} +6 -6
  20. package/dist/assets/{useIsMobile-legacy.e333c2c5.js → useIsMobile-legacy.a430818c.js} +1 -1
  21. package/dist/assets/{useIsMobile.840a96f0.js → useIsMobile.1da8f16a.js} +1 -1
  22. package/dist/assets/{useQuery-legacy.95093ee4.js → useQuery-legacy.c686651f.js} +1 -1
  23. package/dist/assets/useQuery.954c24bf.js +9 -0
  24. package/dist/index.html +2 -2
  25. package/dist/types/components/Search/index.js +1 -1
  26. package/dist/types/components/Search/index.js.map +1 -1
  27. package/dist/types/components/Search/styles.d.ts +2 -2
  28. package/dist/types/components/Search/styles.d.ts.map +1 -1
  29. package/dist/types/components/Search/styles.js +2 -2
  30. package/dist/types/components/Search/styles.js.map +1 -1
  31. package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -1
  32. package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +3 -0
  33. package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -1
  34. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -1
  35. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +3 -0
  36. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -1
  37. package/dist/types/context/languageProvider/data-explorer/types.d.ts +1 -1
  38. package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -1
  39. package/dist/types/context/languageProvider/index.d.ts +2 -2
  40. package/dist/types/context/languageProvider/index.d.ts.map +1 -1
  41. package/dist/types/context/languageProvider/local-content/locales/en/index.d.ts.map +1 -1
  42. package/dist/types/context/languageProvider/local-content/locales/en/index.js +4 -0
  43. package/dist/types/context/languageProvider/local-content/locales/en/index.js.map +1 -1
  44. package/dist/types/context/languageProvider/local-content/locales/fr/index.d.ts.map +1 -1
  45. package/dist/types/context/languageProvider/local-content/locales/fr/index.js +4 -0
  46. package/dist/types/context/languageProvider/local-content/locales/fr/index.js.map +1 -1
  47. package/dist/types/context/languageProvider/local-content/types.d.ts +1 -1
  48. package/dist/types/context/languageProvider/local-content/types.d.ts.map +1 -1
  49. package/dist/types/sdks/DataExplorer/components/Address/index.d.ts.map +1 -1
  50. package/dist/types/sdks/DataExplorer/components/Address/index.js +38 -6
  51. package/dist/types/sdks/DataExplorer/components/Address/index.js.map +1 -1
  52. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/index.d.ts +11 -0
  53. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/index.d.ts.map +1 -0
  54. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/index.js +61 -0
  55. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/index.js.map +1 -0
  56. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/styles.d.ts +273 -0
  57. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/styles.d.ts.map +1 -0
  58. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/styles.js +93 -0
  59. package/dist/types/sdks/DataExplorer/components/DataKitsSelector/styles.js.map +1 -0
  60. package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts.map +1 -1
  61. package/dist/types/sdks/DataExplorer/components/DataTable/index.js +5 -4
  62. package/dist/types/sdks/DataExplorer/components/DataTable/index.js.map +1 -1
  63. package/dist/types/sdks/DataExplorer/components/Insights/index.d.ts.map +1 -1
  64. package/dist/types/sdks/DataExplorer/components/Insights/index.js +2 -4
  65. package/dist/types/sdks/DataExplorer/components/Insights/index.js.map +1 -1
  66. package/dist/types/sdks/DataExplorer/components/Insights/styles.js +1 -1
  67. package/dist/types/sdks/DataExplorer/components/InsightsSelector/Categories.d.ts +4 -1
  68. package/dist/types/sdks/DataExplorer/components/InsightsSelector/Categories.d.ts.map +1 -1
  69. package/dist/types/sdks/DataExplorer/components/InsightsSelector/Categories.js +3 -3
  70. package/dist/types/sdks/DataExplorer/components/InsightsSelector/Categories.js.map +1 -1
  71. package/dist/types/sdks/DataExplorer/components/InsightsSelector/CategoryInsights.d.ts +5 -2
  72. package/dist/types/sdks/DataExplorer/components/InsightsSelector/CategoryInsights.d.ts.map +1 -1
  73. package/dist/types/sdks/DataExplorer/components/InsightsSelector/CategoryInsights.js +33 -29
  74. package/dist/types/sdks/DataExplorer/components/InsightsSelector/CategoryInsights.js.map +1 -1
  75. package/dist/types/sdks/DataExplorer/components/InsightsSelector/index.d.ts.map +1 -1
  76. package/dist/types/sdks/DataExplorer/components/InsightsSelector/index.js +50 -19
  77. package/dist/types/sdks/DataExplorer/components/InsightsSelector/index.js.map +1 -1
  78. package/dist/types/sdks/DataExplorer/components/InsightsSelector/styles.d.ts +2 -2
  79. package/dist/types/sdks/DataExplorer/components/InsightsSelector/styles.d.ts.map +1 -1
  80. package/dist/types/sdks/DataExplorer/components/InsightsSelector/styles.js +2 -2
  81. package/dist/types/sdks/DataExplorer/components/InsightsSelector/styles.js.map +1 -1
  82. package/dist/types/sdks/DataExplorer/components/Radii/index.d.ts.map +1 -1
  83. package/dist/types/sdks/DataExplorer/components/Radii/index.js +34 -4
  84. package/dist/types/sdks/DataExplorer/components/Radii/index.js.map +1 -1
  85. package/dist/types/sdks/DataExplorer/components/Radii/styles.d.ts +2 -1
  86. package/dist/types/sdks/DataExplorer/components/Radii/styles.d.ts.map +1 -1
  87. package/dist/types/sdks/DataExplorer/components/Radii/styles.js +5 -3
  88. package/dist/types/sdks/DataExplorer/components/Radii/styles.js.map +1 -1
  89. package/dist/types/sdks/DataExplorer/constants/dataKits.d.ts +10 -0
  90. package/dist/types/sdks/DataExplorer/constants/dataKits.d.ts.map +1 -0
  91. package/dist/types/sdks/DataExplorer/constants/dataKits.js +83 -0
  92. package/dist/types/sdks/DataExplorer/constants/dataKits.js.map +1 -0
  93. package/dist/types/sdks/DataExplorer/constants/index.d.ts +2 -0
  94. package/dist/types/sdks/DataExplorer/constants/index.d.ts.map +1 -1
  95. package/dist/types/sdks/DataExplorer/constants/index.js +2 -0
  96. package/dist/types/sdks/DataExplorer/constants/index.js.map +1 -1
  97. package/dist/types/sdks/DataExplorer/constants/insights.d.ts +687 -0
  98. package/dist/types/sdks/DataExplorer/constants/insights.d.ts.map +1 -1
  99. package/dist/types/sdks/DataExplorer/constants/insights.js +404 -378
  100. package/dist/types/sdks/DataExplorer/constants/insights.js.map +1 -1
  101. package/dist/types/sdks/DataExplorer/constants/radii.d.ts +21 -0
  102. package/dist/types/sdks/DataExplorer/constants/radii.d.ts.map +1 -0
  103. package/dist/types/sdks/DataExplorer/constants/radii.js +22 -0
  104. package/dist/types/sdks/DataExplorer/constants/radii.js.map +1 -0
  105. package/dist/types/sdks/DataExplorer/context.d.ts +1 -1
  106. package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -1
  107. package/dist/types/sdks/DataExplorer/context.js +2 -1
  108. package/dist/types/sdks/DataExplorer/context.js.map +1 -1
  109. package/dist/types/sdks/DataExplorer/features/useData.d.ts +4 -4
  110. package/dist/types/sdks/DataExplorer/features/useData.d.ts.map +1 -1
  111. package/dist/types/sdks/DataExplorer/features/useData.js +31 -23
  112. package/dist/types/sdks/DataExplorer/features/useData.js.map +1 -1
  113. package/dist/types/sdks/DataExplorer/features/useDemographics.d.ts +3 -78
  114. package/dist/types/sdks/DataExplorer/features/useDemographics.d.ts.map +1 -1
  115. package/dist/types/sdks/DataExplorer/features/useDemographics.js +14 -9
  116. package/dist/types/sdks/DataExplorer/features/useDemographics.js.map +1 -1
  117. package/dist/types/sdks/DataExplorer/features/usePois.d.ts +3 -3
  118. package/dist/types/sdks/DataExplorer/features/usePois.d.ts.map +1 -1
  119. package/dist/types/sdks/DataExplorer/features/usePois.js +11 -7
  120. package/dist/types/sdks/DataExplorer/features/usePois.js.map +1 -1
  121. package/dist/types/sdks/DataExplorer/features/useSchools.d.ts +3 -2
  122. package/dist/types/sdks/DataExplorer/features/useSchools.d.ts.map +1 -1
  123. package/dist/types/sdks/DataExplorer/features/useSchools.js +14 -9
  124. package/dist/types/sdks/DataExplorer/features/useSchools.js.map +1 -1
  125. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.d.ts.map +1 -1
  126. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js +11 -14
  127. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js.map +1 -1
  128. package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
  129. package/dist/types/sdks/LocalContent/Map/index.js +14 -3
  130. package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
  131. package/dist/types/sdks/LocalContent/defaultState.d.ts.map +1 -1
  132. package/dist/types/sdks/LocalContent/defaultState.js +1 -0
  133. package/dist/types/sdks/LocalContent/defaultState.js.map +1 -1
  134. package/dist/types/sdks/LocalContent/types.d.ts +1 -0
  135. package/dist/types/sdks/LocalContent/types.d.ts.map +1 -1
  136. package/package.json +3 -3
  137. package/dist/assets/Upload.b224cbc9.svg +0 -3
  138. package/dist/assets/index-legacy.56c469e7.js +0 -1
  139. package/dist/assets/index-legacy.8525b093.js +0 -23
  140. package/dist/assets/index-legacy.b9c25b36.js +0 -1
  141. package/dist/assets/index-legacy.e565152e.js +0 -106
  142. package/dist/assets/index.3f291520.js +0 -626
  143. package/dist/assets/index.bb05abed.js +0 -245
  144. package/dist/assets/index.c60e079d.js +0 -247
  145. package/dist/assets/useQuery.c4375314.js +0 -9
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.54408 4.765L9.23408 5.455L2.43908 12.25H1.74908V11.56L8.54408 4.765ZM11.2441 0.25C11.0566 0.25 10.8616 0.325 10.7191 0.4675L9.34658 1.84L12.1591 4.6525L13.5316 3.28C13.8241 2.9875 13.8241 2.515 13.5316 2.2225L11.7766 0.4675C11.6266 0.3175 11.4391 0.25 11.2441 0.25ZM8.54408 2.6425L0.249084 10.9375V13.75H3.06158L11.3566 5.455L8.54408 2.6425Z" fill="#008491"/>
3
+ </svg>
@@ -1 +1 @@
1
- !function(){function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function r(r){for(var n=1;n<arguments.length;n++){var c=null!=arguments[n]?arguments[n]:{};n%2?e(Object(c),!0).forEach((function(e){t(r,e,c[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(c)):e(Object(c)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(c,e))}))}return r}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}System.register([],(function(e,t){"use strict";return{execute:function(){e("translations",r(r(r({},{RADIUS:"Rayon",LIMIT:"Limite",EXPORT:"Exporter",SEARCH_MAP:"Recherchez...",SEARCH_INSIGHTS:"Recherchez...",INSIGHTS:"repères"}),{LOCATION:"Emplacement",SCORES:"Scores",POIS:"Points d'interêt",SCHOOLS:"Écoles",DEMOGRAPHICS:"Démographique",PROFILES:"Profils",TABLE:"Table"}),{SEARCH_ADDRESS:"Cherchez une adresse",SEARCH_PLACEHOLDER:"Entrez une adresse",SEARCH_ADD:"Ajouter à la table",SEARCH_UPLOAD:"Téléverser",INSIGHTS:"Repères",INSIGHTS_SEARCH:"Chercher repères",RADII:"Radius"}))}}}))}();
1
+ !function(){function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function r(r){for(var n=1;n<arguments.length;n++){var c=null!=arguments[n]?arguments[n]:{};n%2?e(Object(c),!0).forEach((function(e){t(r,e,c[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(c)):e(Object(c)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(c,e))}))}return r}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}System.register([],(function(e,t){"use strict";return{execute:function(){e("translations",r(r(r({},{RADIUS:"Rayon",LIMIT:"Limite",EXPORT:"Exporter",SEARCH_MAP:"Recherchez...",SEARCH_INSIGHTS:"Recherchez...",INSIGHTS:"repères"}),{LOCATION:"Emplacement",SCORES:"Scores",POIS:"Points d'interêt",SCHOOLS:"Écoles",DEMOGRAPHICS:"Démographique",PROFILES:"Profils",TABLE:"Table"}),{SEARCH_ADDRESS:"Cherchez une adresse",SEARCH_PLACEHOLDER:"Entrez une adresse",SEARCH_ADD:"Ajouter à la table",SEARCH_UPLOAD:"Téléverser",INSIGHTS:"Repères",INSIGHTS_SEARCH:"Chercher repères",INSIGHTS_MAIN_MENU:"Menu principal",DATA_KITS_TITLE:"Trousse de données",DATA_KITS_EDIT:"Changer",RADII:"Radius"}))}}}))}();
@@ -1 +1 @@
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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register([],(function(e,r){"use strict";return{execute:function(){e("translations",t(t(t({},{RADIUS:"Radius",LIMIT:"Limit",EXPORT:"Export",SEARCH_MAP:"Search map...",SEARCH_INSIGHTS:"Search insights...",INSIGHTS:"insights"}),{LOCATION:"Location",SCORES:"Scores",POIS:"Points of interest",SCHOOLS:"Schools",DEMOGRAPHICS:"Demographics",PROFILES:"Profiles",TABLE:"Table"}),{SEARCH_ADDRESS:"Search Address",SEARCH_PLACEHOLDER:"Enter address",SEARCH_ADD:"Add to table",SEARCH_UPLOAD:"Upload",INSIGHTS:"Insights",INSIGHTS_SEARCH:"Search insights",RADII:"Radii"}))}}}))}();
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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register([],(function(e,r){"use strict";return{execute:function(){e("translations",t(t(t({},{RADIUS:"Radius",LIMIT:"Limit",EXPORT:"Export",SEARCH_MAP:"Search map...",SEARCH_INSIGHTS:"Search insights...",INSIGHTS:"insights"}),{LOCATION:"Location",SCORES:"Scores",POIS:"Points of interest",SCHOOLS:"Schools",DEMOGRAPHICS:"Demographics",PROFILES:"Profiles",TABLE:"Table"}),{SEARCH_ADDRESS:"Search Address",SEARCH_PLACEHOLDER:"Enter address",SEARCH_ADD:"Add to table",SEARCH_UPLOAD:"Upload",INSIGHTS:"Insights",INSIGHTS_SEARCH:"Search insights",INSIGHTS_MAIN_MENU:"Main Menu",DATA_KITS_TITLE:"Data Kits",DATA_KITS_EDIT:"Edit",RADII:"Radii"}))}}}))}();
@@ -1 +1 @@
1
- System.register([],(function(e,n){"use strict";return{execute:function(){e("translations",{EMPTY_TEXT:"Aucune donnée disponible pour cet emplacement.",CALCULATE_COMMUTE:"Calculer le trajet",MINUTE:"Minute",HOUR:"Heure",SEARCH_MAP:"Recherchez...",NO_ROUTE:"Aucun itinéraire disponible",TRY_SUGGESTION:"Essayez une autre requête",FAST_ROUTE:"Itinéraire le plus rapide",WALKING:"En marchant",DRIVING:"Conduite"})}}}));
1
+ System.register([],(function(e,n){"use strict";return{execute:function(){e("translations",{EMPTY_TEXT:"Aucune donnée disponible pour cet emplacement.",CALCULATE_COMMUTE:"Calculer le trajet",MINUTE:"Minute",HOUR:"Heure",SEARCH_MAP:"Recherchez...",NO_ROUTE:"Aucun itinéraire disponible",TRY_SUGGESTION:"Essayez une autre requête",FAST_ROUTE:"Itinéraire le plus rapide",WALKING:"En marchant",DRIVING:"Conduite",KM:"km",M:"m",MI:"mil",YD:"vg"})}}}));
@@ -0,0 +1 @@
1
+ !function(){var e,t,n,r,o,i,a,l,c,s,u,d,p,f,h,v,m,g,y,b,x,w,C,M,O,S,k,E,P,I,_,L,A,j,R,z,T,D,V=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],F=["__scopeCollapsible"],N=["forceMount"],G=["__scopeCollapsible","present","children"],Z=["type"],H=["value","defaultValue","onValueChange","collapsible"],U=["value","defaultValue","onValueChange"],B=["__scopeAccordion","disabled"],K=["__scopeAccordion","value"],W=["__scopeAccordion"],Y=["__scopeAccordion"],q=["__scopeAccordion"];function $(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Q(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */re=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(k){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=x(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=c;var u={};function d(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(O([])));m&&m!==t&&n.call(m,o)&&(h=m);var g=f.prototype=d.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,l){var c=s(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==J(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=f,l(g,"constructor",f),l(f,"constructor",p),p.displayName=l(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(b.prototype),l(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(g),l(g,a,"Generator"),l(g,o,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function oe(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(r,o)}function ie(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){oe(i,r,o,a,l,"next",e)}function l(e){oe(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ae(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ce(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||ce(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){if(e){if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy.9c7984ae.js","./index-legacy.7bf12ce0.js","./useIsMobile-legacy.a430818c.js","./useQuery-legacy.c686651f.js"],(function(te,oe){"use strict";var ce,se,ue,fe,he,ve,me,ge,ye,be,xe,we,Ce,Me,Oe,Se,ke,Ee,Pe,Ie,_e,Le,Ae,je,Re,ze,Te,De,Ve,Fe,Ne,Ge,Ze,He,Ue,Be,Ke,We,Ye,qe,$e,Qe,Xe,Je,et,tt,nt,rt,ot,it,at,lt,ct,st,ut,dt,pt,ft,ht,vt,mt,gt,yt,bt,xt;return{setters:[function(e){ce=e.M,se=e.d,ue=e.p,fe=e.s,he=e.a,ve=e.b,me=e.$,ge=e.c,ye=e.e,be=e.f,xe=e._,we=e.g,Ce=e.h,Me=e.i,Oe=e.j,Se=e.S,ke=e.k,Ee=e.l,Pe=e.A,Ie=e.u,_e=e.m,Le=e.n,Ae=e.o,je=e.N,Re=e.P},function(e){ze=e.R,Te=e.r,De=e.a,Ve=e.j,Fe=e.L,Ne=e.o,Ge=e.u,Ze=e.b,He=e.i,Ue=e.s,Be=e.m,Ke=e.C,We=e.c,Ye=e.d,qe=e.e,$e=e.w,Qe=e.I,Xe=e.f,Je=e.g,et=e.X,tt=e.h,nt=e.F,rt=e.k,ot=e.l,it=e.n,at=e.B,lt=e.$,ct=e.p,st=e.q,ut=e.t,dt=e.v,pt=e.z,ft=e.x,ht=e.P,vt=e.y,mt=e.A,gt=e.D,yt=e.E},function(e){bt=e.u},function(e){xt=e.u}],execute:function(){var oe=ze.createContext({}),wt=function(){return Te.exports.useContext(oe)},Ct=function(e,t){switch(t.type){case"CATEGORY":return de(de({},e),{},{activeCategory:t.value});case"SCORE":var n=Fe.find((function(n){return""===t.value?n.value===e.activeCategory:n.scores.includes(t.value)})).value;return{activeCategory:n,activeScoreByCategory:de(de({},e.activeScoreByCategory),{},pe({},n,t.value))}}},Mt=function(e){var t=e.children,n=window.innerWidth<De.screenSizes.tablet?{activeCategory:"commute",activeScoreByCategory:{commute:"transit_friendly",amenities:"groceries",character:"quiet",nature:"parks",education:"primary_schools"}}:{activeCategory:"commute",activeScoreByCategory:{commute:"",amenities:"",character:"",nature:"",education:""}},r=le(Te.exports.useReducer(Ct,n),2),o=r[0],i=r[1],a=le(Te.exports.useState(),2),l=a[0],c=a[1],s=le(Te.exports.useState(),2),u=s[0],d=s[1],p=le(Te.exports.useState(),2),f=p[0],h=p[1],v=le(Te.exports.useState(),2),m=v[0],g=v[1],y=le(Te.exports.useState(),2),b=y[0],x=y[1],w=le(Te.exports.useState(!1),2),C=w[0],M=w[1],O=o.activeCategory,S=o.activeScoreByCategory[O],k=function(e){i({type:"SCORE",value:e})},E=function(e){i({type:"CATEGORY",value:e})},P=Te.exports.useMemo((function(){return{activeScore:S,setActiveScore:k,activeCategory:O,setActiveCategory:E,activePOI:l,setActivePOI:c,hoveredPOI:u,setHoveredPOI:d,commuteGeojson:f,setCommuteGeojson:h,destination:b,setDestination:x,showCommuteCalculator:C,setShowCommuteCalculator:M,schoolCatchment:m,setSchoolCatchment:g}}),[S,k,O,E,l,c,u,d,f,h,b,x,C,M,m,g]);return Ve(oe.Provider,{value:P,children:t})};function Ot(e,t){if(!e)throw new Error(t)}var St=0;function kt(e){var t=Te.exports.useContext(ce).map.getMap(),n=Te.exports.useRef(e),r=le(Te.exports.useState(0),2)[1],o=Te.exports.useMemo((function(){return e.id||"jsx-source-".concat(St++)}),[]);Te.exports.useEffect((function(){if(t){var e=function(){return r((function(e){return e+1}))};return t.on("styledata",e),e(),function(){var n;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(o)){var r=null===(n=t.getStyle())||void 0===n?void 0:n.layers;if(r){var i,a=ae(r);try{for(a.s();!(i=a.n()).done;){var l=i.value;l.source===o&&t.removeLayer(l.id)}}catch(c){a.e(c)}finally{a.f()}}t.removeSource(o)}}}}),[t]);var i=t&&t.style&&t.getSource(o);return i?function(e,t,n){Ot(t.id===n.id,"source id changed"),Ot(t.type===n.type,"source type changed");var r="",o=0;for(var i in t)"children"===i||"id"===i||se(n[i],t[i])||(r=i,o++);if(o){var a=t.type;if("geojson"===a)e.setData(t.data);else if("image"===a)e.updateImage({url:t.url,coordinates:t.coordinates});else if("canvas"!==a&&"video"!==a||1!==o||"coordinates"!==r)if("vector"===a&&"setUrl"in e)switch(r){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles)}else console.warn("Unable to update <Source> prop: ".concat(r));else e.setCoordinates(t.coordinates)}}(i,e,n.current):i=function(e,t,n){if(e.style&&e.style._loaded){var r=de({},n);return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}(t,o,e),n.current=e,i&&Te.exports.Children.map(e.children,(function(e){return e&&Te.exports.cloneElement(e,{source:o})}))||null}var Et=0;function Pt(e){var t=Te.exports.useContext(ce).map.getMap(),n=Te.exports.useRef(e),r=le(Te.exports.useState(0),2)[1],o=Te.exports.useMemo((function(){return e.id||"jsx-layer-".concat(Et++)}),[]);if(Te.exports.useEffect((function(){if(t){var e=function(){return r((function(e){return e+1}))};return t.on("styledata",e),e(),function(){t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}}),[t]),t&&t.style&&t.getLayer(o))try{!function(e,t,n,r){if(Ot(n.id===r.id,"layer id changed"),Ot(n.type===r.type,"layer type changed"),"custom"!==n.type&&"custom"!==r.type){var o=n.layout,i=void 0===o?{}:o,a=n.paint,l=void 0===a?{}:a,c=n.filter,s=n.minzoom,u=n.maxzoom,d=n.beforeId;if(d!==r.beforeId&&e.moveLayer(t,d),i!==r.layout){var p=r.layout||{};for(var f in i)se(i[f],p[f])||e.setLayoutProperty(t,f,i[f]);for(var h in p)i.hasOwnProperty(h)||e.setLayoutProperty(t,h,void 0)}if(l!==r.paint){var v=r.paint||{};for(var m in l)se(l[m],v[m])||e.setPaintProperty(t,m,l[m]);for(var g in v)l.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}se(c,r.filter)||e.setFilter(t,c),s===r.minzoom&&u===r.maxzoom||e.setLayerZoomRange(t,s,u)}}(t,o,e,n.current)}catch(i){console.warn(i)}else!function(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){var r=de(de({},n),{},{id:t});delete r.beforeId,e.addLayer(r,n.beforeId)}}(t,o,e);return n.current=e,null}function It(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function _t(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Lt(e[0])||!Lt(e[1]))throw new Error("coordinates must contain numbers");return It({type:"Point",coordinates:e},t,n)}function Lt(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function At(e,t,n){if(null!==e)for(var r,o,i,a,l,c,s,u,d=0,p=0,f=e.type,h="FeatureCollection"===f,v="Feature"===f,m=h?e.features.length:1,g=0;g<m;g++){l=(u=!!(s=h?e.features[g].geometry:v?e.geometry:e)&&"GeometryCollection"===s.type)?s.geometries.length:1;for(var y=0;y<l;y++){var b=0,x=0;if(null!==(a=u?s.geometries[y]:s)){c=a.coordinates;var w=a.type;switch(d=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(c,p,g,b,x))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===t(c[r],p,g,b,x))return!1;p++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-d;o++){if(!1===t(c[r][o],p,g,b,x))return!1;p++}"MultiLineString"===w&&b++,"Polygon"===w&&x++}"Polygon"===w&&b++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(x=0,o=0;o<c[r].length;o++){for(i=0;i<c[r][o].length-d;i++){if(!1===t(c[r][o][i],p,g,b,x))return!1;p++}x++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===At(a.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function jt(e){var t=[1/0,1/0,-1/0,-1/0];return At(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}function Rt(){var e,t=Ne().client,n=Ge().sdkState,r=Ze(n.options,250),o=wt().activeScore,i=o?He[o]:void 0,a=de(de({},Te.exports.useMemo((function(){return!(null==r||!r.marker)?r.marker:{lat:null==r?void 0:r.lat,lng:null==r?void 0:r.lng}}),[r])),{},{limit:10,radius:2e3,include:i});return xt(ue.list(a),ie(re().mark((function e(){return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getPois(a));case 1:case"end":return e.stop()}}),e)}))),{enabled:!!(a&&null!==(e=a.include)&&void 0!==e&&e.length&&a.lat&&a.lng)})}function zt(){var e=Ne().client,t=Ge().sdkState,n=Ze(t.options,250),r=wt().activeScore,o="high_schools"===r||"primary_schools"===r,i=de(de({},Te.exports.useMemo((function(){return!(null==n||!n.marker)?n.marker:{lat:null==n?void 0:n.lat,lng:null==n?void 0:n.lng}}),[n])),{},{limit:10,radius:2e3,include_catchments:!1});return xt(fe.list(i),ie(re().mark((function t(){return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.getSchools(i));case 1:case"end":return t.stop()}}),t)}))),{enabled:!!i&&!!i.lat&&!!i.lng&&o})}jt.default=jt;var Tt=ze.createContext({}),Dt=function(){return Te.exports.useContext(Tt)},Vt=function(e){var t=e.children,n=e.mapRef,r=e.mapPadding;return Ve(Tt.Provider,{value:{mapRef:n,mapPadding:r},children:t})};function Ft(e,t,n,r,o,i){if(!(o-r<=n)){var a=r+o>>1;Nt(e,t,a,r,o,i%2),Ft(e,t,n,r,a-1,i+1),Ft(e,t,n,a+1,o,i+1)}}function Nt(e,t,n,r,o,i){for(;o>r;){if(o-r>600){var a=o-r+1,l=n-r+1,c=Math.log(a),s=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*s*(a-s)/a)*(l-a/2<0?-1:1);Nt(e,t,n,Math.max(r,Math.floor(n-l*s/a+u)),Math.min(o,Math.floor(n+(a-l)*s/a+u)),i)}var d=t[2*n+i],p=r,f=o;for(Gt(e,t,r,n),t[2*o+i]>d&&Gt(e,t,r,o);p<f;){for(Gt(e,t,p,f),p++,f--;t[2*p+i]<d;)p++;for(;t[2*f+i]>d;)f--}t[2*r+i]===d?Gt(e,t,r,f):Gt(e,t,++f,o),f<=n&&(r=f+1),n<=f&&(o=f-1)}}function Gt(e,t,n,r){Zt(e,n,r),Zt(t,2*n,2*r),Zt(t,2*n+1,2*r+1)}function Zt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ht(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}var Ut,Bt=function(e){return e[0]},Kt=function(e){return e[1]},Wt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kt,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Float64Array;ee(this,e),this.nodeSize=o,this.points=t;for(var a=t.length<65536?Uint16Array:Uint32Array,l=this.ids=new a(t.length),c=this.coords=new i(2*t.length),s=0;s<t.length;s++)l[s]=s,c[2*s]=n(t[s]),c[2*s+1]=r(t[s]);Ft(l,c,o,0,l.length-1,0)}return ne(e,[{key:"range",value:function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var l,c,s=[0,e.length-1,0],u=[];s.length;){var d=s.pop(),p=s.pop(),f=s.pop();if(p-f<=a)for(var h=f;h<=p;h++)l=t[2*h],c=t[2*h+1],l>=n&&l<=o&&c>=r&&c<=i&&u.push(e[h]);else{var v=Math.floor((f+p)/2);l=t[2*v],c=t[2*v+1],l>=n&&l<=o&&c>=r&&c<=i&&u.push(e[v]);var m=(d+1)%2;(0===d?n<=l:r<=c)&&(s.push(f),s.push(v-1),s.push(m)),(0===d?o>=l:i>=c)&&(s.push(v+1),s.push(p),s.push(m))}}return u}(this.ids,this.coords,e,t,n,r,this.nodeSize)}},{key:"within",value:function(e,t,n){return function(e,t,n,r,o,i){for(var a=[0,e.length-1,0],l=[],c=o*o;a.length;){var s=a.pop(),u=a.pop(),d=a.pop();if(u-d<=i)for(var p=d;p<=u;p++)Ht(t[2*p],t[2*p+1],n,r)<=c&&l.push(e[p]);else{var f=Math.floor((d+u)/2),h=t[2*f],v=t[2*f+1];Ht(h,v,n,r)<=c&&l.push(e[f]);var m=(s+1)%2;(0===s?n-o<=h:r-o<=v)&&(a.push(d),a.push(f-1),a.push(m)),(0===s?n+o>=h:r+o>=v)&&(a.push(f+1),a.push(u),a.push(m))}}return l}(this.ids,this.coords,e,t,n,this.nodeSize)}}]),e}(),Yt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},qt=Math.fround||(Ut=new Float32Array(1),function(e){return Ut[0]=+e,Ut[0]}),$t=function(){function e(t){ee(this,e),this.options=nn(Object.create(Yt),t),this.trees=new Array(this.options.maxZoom+1)}return ne(e,[{key:"load",value:function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var a="prepare ".concat(e.length," points");n&&console.time(a),this.points=e;for(var l,c,s,u,d,p=[],f=0;f<e.length;f++)e[f].geometry&&p.push((l=e[f],c=f,s=void 0,u=void 0,d=void 0,s=le(l.geometry.coordinates,2),u=s[0],d=s[1],{x:qt(en(u)),y:qt(tn(d)),zoom:1/0,index:c,parentId:-1}));this.trees[o+1]=new Wt(p,rn,on,i,Float32Array),n&&console.timeEnd(a);for(var h=o;h>=r;h--){var v=+Date.now();p=this._cluster(p,h),this.trees[h]=new Wt(p,rn,on,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",h,p.length,+Date.now()-v)}return n&&console.timeEnd("total time"),this}},{key:"getClusters",value:function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],t),l=this.getClusters([-180,r,o,i],t);return a.concat(l)}var c,s=this.trees[this._limitZoom(t)],u=[],d=ae(s.range(en(n),tn(i),en(o),tn(r)));try{for(d.s();!(c=d.n()).done;){var p=c.value,f=s.points[p];u.push(f.numPoints?Xt(f):this.points[f.index])}}catch(h){d.e(h)}finally{d.f()}return u}},{key:"getChildren",value:function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[t];if(!i)throw new Error(r);var a,l=this.options.radius/(this.options.extent*Math.pow(2,n-1)),c=[],s=ae(o.within(i.x,i.y,l));try{for(s.s();!(a=s.n()).done;){var u=a.value,d=o.points[u];d.parentId===e&&c.push(d.numPoints?Xt(d):this.points[d.index])}}catch(p){s.e(p)}finally{s.f()}if(0===c.length)throw new Error(r);return c}},{key:"getLeaves",value:function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r}},{key:"getTile",value:function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),i=this.options,a=i.extent,l=i.radius/a,c=(n-l)/o,s=(n+1+l)/o,u={features:[]};return this._addTileFeatures(r.range((t-l)/o,c,(t+1+l)/o,s),r.points,t,n,o,u),0===t&&this._addTileFeatures(r.range(1-l/o,c,1,s),r.points,o,n,o,u),t===o-1&&this._addTileFeatures(r.range(0,c,l/o,s),r.points,-1,n,o,u),u.features.length?u:null}},{key:"getClusterExpansionZoom",value:function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}},{key:"_appendLeaves",value:function(e,t,n,r,o){var i,a=ae(this.getChildren(t));try{for(a.s();!(i=a.n()).done;){var l=i.value,c=l.properties;if(c&&c.cluster?o+c.point_count<=r?o+=c.point_count:o=this._appendLeaves(e,c.cluster_id,n,r,o):o<r?o++:e.push(l),e.length===n)break}}catch(s){a.e(s)}finally{a.f()}return o}},{key:"_addTileFeatures",value:function(e,t,n,r,o,i){var a,l=ae(e);try{for(l.s();!(a=l.n()).done;){var c=t[a.value],s=c.numPoints,u=void 0,d=void 0,p=void 0;if(s)u=Jt(c),d=c.x,p=c.y;else{var f=this.points[c.index];u=f.properties,d=en(f.geometry.coordinates[0]),p=tn(f.geometry.coordinates[1])}var h={type:1,geometry:[[Math.round(this.options.extent*(d*o-n)),Math.round(this.options.extent*(p*o-r))]],tags:u},v=void 0;s?v=c.id:this.options.generateId?v=c.index:this.points[c.index].id&&(v=this.points[c.index].id),void 0!==v&&(h.id=v),i.features.push(h)}}catch(m){l.e(m)}finally{l.f()}}},{key:"_limitZoom",value:function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}},{key:"_cluster",value:function(e,t){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,l=r.minPoints,c=o/(i*Math.pow(2,t)),s=0;s<e.length;s++){var u=e[s];if(!(u.zoom<=t)){u.zoom=t;var d,p=this.trees[t+1],f=p.within(u.x,u.y,c),h=u.numPoints||1,v=h,m=ae(f);try{for(m.s();!(d=m.n()).done;){var g=d.value,y=p.points[g];y.zoom>t&&(v+=y.numPoints||1)}}catch(A){m.e(A)}finally{m.f()}if(v>h&&v>=l){var b,x=u.x*h,w=u.y*h,C=a&&h>1?this._map(u,!0):null,M=(s<<5)+(t+1)+this.points.length,O=ae(f);try{for(O.s();!(b=O.n()).done;){var S=b.value,k=p.points[S];if(!(k.zoom<=t)){k.zoom=t;var E=k.numPoints||1;x+=k.x*E,w+=k.y*E,k.parentId=M,a&&(C||(C=this._map(u,!0)),a(C,this._map(k)))}}}catch(A){O.e(A)}finally{O.f()}u.parentId=M,n.push(Qt(x/v,w/v,M,v,C))}else if(n.push(u),v>1){var P,I=ae(f);try{for(I.s();!(P=I.n()).done;){var _=P.value,L=p.points[_];L.zoom<=t||(L.zoom=t,n.push(L))}}catch(A){I.e(A)}finally{I.f()}}}}return n}},{key:"_getOriginId",value:function(e){return e-this.points.length>>5}},{key:"_getOriginZoom",value:function(e){return(e-this.points.length)%32}},{key:"_map",value:function(e,t){if(e.numPoints)return t?nn({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?nn({},r):r}}]),e}();function Qt(e,t,n,r,o){return{x:qt(e),y:qt(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function Xt(e){return{type:"Feature",id:e.id,properties:Jt(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function Jt(e){var t=e.numPoints,n=t>=1e4?"".concat(Math.round(t/1e3),"k"):t>=1e3?"".concat(Math.round(t/100)/10,"k"):t;return nn(nn({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function en(e){return e/360+.5}function tn(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function nn(e,t){for(var n in t)e[n]=t[n];return e}function rn(e){return e.x}function on(e){return e.y}var an=Object.prototype.hasOwnProperty;function ln(e,t,n){var r,o=ae(e.keys());try{for(o.s();!(r=o.n()).done;)if(cn(n=r.value,t))return n}catch(i){o.e(i)}finally{o.f()}}function cn(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&cn(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;var i,a=ae(e);try{for(a.s();!(i=a.n()).done;){if((o=r=i.value)&&"object"===J(o)&&!(o=ln(t,o)))return!1;if(!t.has(o))return!1}}catch(s){a.e(s)}finally{a.f()}return!0}if(n===Map){if(e.size!==t.size)return!1;var l,c=ae(e);try{for(c.s();!(l=c.n()).done;){if((o=(r=l.value)[0])&&"object"===J(o)&&!(o=ln(t,o)))return!1;if(!cn(r[1],t.get(o)))return!1}}catch(s){c.e(s)}finally{c.f()}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===J(e)){for(n in r=0,e){if(an.call(e,n)&&++r&&!an.call(t,n))return!1;if(!(n in t)||!cn(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function sn(e,t){return Te.exports.useEffect(e,(n=t,r=Te.exports.useRef(n),o=Te.exports.useRef(0),cn(n,r.current)||(r.current=n,o.current+=1),Te.exports.useMemo((function(){return r.current}),[o.current])));var n,r,o}var un=Ue(Be.div)(e||(e=X(["\n border-radius: 50%;\n background: linear-gradient(\n to top,\n ",",\n ","\n );\n color: ",";\n height: ","px;\n width: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 1;\n font-family: ",";\n font-size: ","px;\n border: 2px solid #fff;\n box-shadow: ",";\n cursor: default;\n"])),Ke["--ll-color-primary-variant1"],Ke["--ll-color-primary"],Ke["--ll-color-on-primary"],(function(e){return e.diameter}),(function(e){return e.diameter}),Ke["--ll-font-family"],(function(e){return e.diameter/2.5}),Ke["--ll-shadow-small"]),dn=Ue.ul(t||(t=X(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]))),pn=Ue.li(n||(n=X(["\n font-family: ",";\n padding: ",";\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n cursor: default;\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),Ke["--ll-font-family"],Ke["--ll-spacing-x-small"],Ke["--ll-color-background"],Ke["--ll-border-radius-small"],Ke["--ll-color-border"],Ke["--ll-spacing-xx-small"],Ke["--ll-color-surface"]),fn={all:function(){return["commute-calculator"]},list:function(e){return[].concat(Q(fn.all()),[e])}};function hn(e){var t=e.transportMode,n=e.origin,r=e.destination,o=e.isOpen,i={return:"polyline,summary,typicalDuration",transportMode:t,origin:n,destination:"".concat(null==r?void 0:r.lat,",").concat(null==r?void 0:r.lng),apiKey:"KDL0aAzsbOcv7p53P2ovno2izfDOe93hyzZRrayktbE"};return xt(fn.list(i),(function(){return fetch("https://router.hereapi.com/v8/routes?"+new URLSearchParams(i)).then((function(e){return e.json()})).then((function(e){return e.routes.length>0&&e.routes[0].sections.length>0?e.routes[0].sections[0]:[]})).catch((function(e){We.captureException(e)}))}),{enabled:!!i&&!!r&&!!n&&o})}var vn=function(e){var t,n,r,o,i=e.poi,a=e.poiType,l=e.rect,c=e.activePOI,s=e.hoveredPOI,u=e.isMapMoving,d=e.setActivePOI,p=e.isMobile,f=le(Te.exports.useState(!1),2),h=f[0],v=f[1],m=s===i,g=Ye().translations,y=Ge().sdkState,b=wt(),x=b.setCommuteGeojson,w=b.setDestination,C=b.setShowCommuteCalculator,M=b.setSchoolCatchment,O=hn({destination:{lat:i.lat,lng:i.lng},transportMode:"pedestrian",origin:"".concat(null==y||null===(t=y.options)||void 0===t||null===(n=t.marker)||void 0===n?void 0:n.lat,",").concat(null==y||null===(r=y.options)||void 0===r||null===(o=r.marker)||void 0===o?void 0:o.lng),isOpen:h}).data;Te.exports.useEffect((function(){if(v(c===i),c===i){var e="high_schools"===a||"primary_schools"===a?"school":"poi";qe.poi.isSchool(i,e)&&null!=i&&i.catchments&&Object.keys((null==i?void 0:i.catchments)||[]).length>0&&M($e.formatGeometry.formatGeometry(i.catchments[0].geometry))}}),[c,i]);var S=Te.exports.useMemo((function(){if(null==O||!O.summary||!h)return null;var e=Math.floor(O.summary.typicalDuration/60/60),t=Math.floor(O.summary.typicalDuration/60%60);return 0===e?"".concat(t," ").concat(Qe.pluralize(g.MINUTE,t)):"".concat(e," ").concat(Qe.pluralize(g.HOUR,e)," ").concat(t," ").concat(Qe.pluralize(g.MINUTE,t))}),[O,h]);return Ve(he,{latitude:i.lat,longitude:i.lng,style:{zIndex:h?1:0},children:Xe(Je.Root,{options:{type:a,poi:i,isOpen:!u&&h,isHovered:m,side:"top",size:["rapid_transit_stations"].includes(a)?"medium":"small",collisionPadding:p?{top:l.height+32,bottom:2*et,left:2*et,right:2*et}:{left:l.width+32,right:2*et,top:2*et,bottom:2*et},walkingTime:S,calculateRoute:function(){null!=O&&O.summary&&h&&(w({label:i.name,lat:i.lat,lng:i.lng}),x($e.polyline.decode(O.polyline)),C(!0),v(!1))}},onChange:function(e){"open-change"===e.type&&(e.data?setTimeout((function(){d(i)}),0):h&&(d(void 0),M()))},children:[Ve(Je.Marker,{}),Ve(Je.Content,{})]})})},mn={default:{scale:1},hovered:{scale:1.2}},gn=function(e){var t=e.cluster,n=e.supercluster,r=e.pointsCount,o=e.onClick,i=e.zoom,a=e.activePOI,l=e.hoveredPOI,c=e.setActivePOI,s=e.rect,u=e.isMobile,d=e.isMapMoving,p=le(Te.exports.useState(!1),2),f=p[0],h=p[1],v=20+t.properties.point_count/r*25,m=Te.exports.useMemo((function(){return null==n?void 0:n.getChildren(t.id).map((function(e){return e.properties})).filter((function(e){return!!e}))}),[n,t]),g=null==m?void 0:m.find((function(e){return!!a&&e.poi===a}));return g?Ve(vn,{rect:s,poi:g.poi,poiType:g.type,isMobile:u,activePOI:a,hoveredPOI:l,isMapMoving:d,setActivePOI:c}):Xe(tt.Root,{open:!d&&f,onOpenChange:function(e){i<=17||h(e)},children:[Ve(tt.Trigger,{children:Ve(un,{diameter:v,onClick:function(){i>17?h(!0):o&&o(t)},variants:mn,animate:f?"hovered":"default",whileHover:{scale:1.2},transition:De.transitions.default,children:t.properties.point_count})}),Ve(tt.Content,{side:"top",children:Ve(dn,{children:null==m?void 0:m.map((function(e,t){var n;return Ve(pn,{onClick:function(){return c(e.poi)},children:null===(n=e.poi)||void 0===n?void 0:n.name},t)}))})})]})};var yn=ze.memo((function(e){var t,n=e.rect,r=e.zoom,o=e.mapRef,i=e.points,a=e.isMobile,l=e.activePOI,c=e.hoveredPOI,s=e.isMapMoving,u=e.setActivePOI,d=null==o||null===(t=o.current)||void 0===t?void 0:t.getMap().getBounds().toArray().flat(),p=function(e){var t=e.points,n=e.bounds,r=e.zoom,o=e.options,i=Te.exports.useRef(),a=Te.exports.useRef(),l=Te.exports.useState([]),c=l[0],s=l[1],u=Math.round(r);return sn((function(){i.current&&cn(a.current,t)&&cn(i.current.options,o)||(i.current=new $t(o),i.current.load(t)),n&&s(i.current.getClusters(n,u)),a.current=t}),[t,n,u,o]),{clusters:c,supercluster:i.current}}({points:i,bounds:d,zoom:r,options:{radius:50,maxZoom:30}}),f=p.clusters,h=p.supercluster;return Ve(nt,{children:f.map((function(e,t){var d=le(e.geometry.coordinates,2),p=d[0],f=d[1];return function(e){return void 0!==e.properties.cluster}(e)?Ve(he,{latitude:f,longitude:p,children:Ve(gn,{rect:n,zoom:r,cluster:e,supercluster:h,pointsCount:i.length,activePOI:l,setActivePOI:u,isMobile:a,isMapMoving:s,hoveredPOI:c,onClick:function(){var t,n=Math.min(h.getClusterExpansionZoom(e.id),20);null===(t=o.current)||void 0===t||t.flyTo({zoom:n,center:[p,f],duration:1e3,essential:!0})}})},"cluster-".concat(e.id)):Ve(vn,{rect:n,poi:e.properties.poi,poiType:e.properties.type,isMobile:a,activePOI:l,hoveredPOI:c,isMapMoving:s,setActivePOI:u},t)}))})}));yn.displayName="Markers";var bn=function(e){return Te.exports.createElement("svg",de({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Te.exports.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z"}))},xn=function(e){return Te.exports.createElement("svg",de({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Te.exports.createElement("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z"}))};function wn(e){var t=Ne().client,n=Ge().sdkState,r=Ze(n.options,250),o=de(de({},Te.exports.useMemo((function(){return!(null==r||!r.marker)?r.marker:{lat:null==r?void 0:r.lat,lng:null==r?void 0:r.lng}}),[r])),{},{geographyLevels:["20","30"],locationScoresRounding:!1,include:e});return xt(ve.list(o),ie(re().mark((function e(){return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getScores(o));case 1:case"end":return e.stop()}}),e)}))),{enabled:!!o})}var Cn=Ue.div(r||(r=X(["\n padding: "," ",";\n background-color: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n flex: 1;\n"])),Ke["--ll-spacing-small"],Ke["--ll-spacing-medium"],Ke["--ll-color-surface"]),Mn=Ue.div(o||(o=X(["\n display: grid;\n grid-template-columns: min-content 1fr;\n grid-gap: ",";\n margin-bottom: ",";\n"])),Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"]),On=function(){var e,t,n=Ge().sdkState,r=wt(),o=r.activeCategory,i=r.activeScore,a=wn(Fe.find((function(e){return e.value===o})).scores),l=a.data,c=a.isLoading;return i&&null!=l&&l.location[i]?c?Ve("div",{children:"Loading"}):Ve(rt.Root,{options:{score:i,scoresData:l},children:Xe(Cn,{children:[Xe(Mn,{children:[Ve(rt.Badge,{}),Ve(rt.BarChart,{options:{renderNeighbourhoodAvg:!1,locationIcon:"pin"===(null===(e=n.options)||void 0===e||null===(t=e.marker)||void 0===t?void 0:t.icon)?bn:xn}})]}),Ve(rt.Description,{})]})}):null},Sn=Ue.div(i||(i=X(["\n display: flex;\n overflow-x: scroll;\n padding: "," ",";\n flex-shrink: 0;\n position: relative;\n"])),Ke["--ll-spacing-x-small"],Ke["--ll-spacing-medium"]),kn=Ue.button(a||(a=X(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: none;\n border: none;\n min-width: 60px;\n padding: 0;\n margin: 0 8px;\n flex-shrink: 0;\n\n &:first-child {\n margin-left: 0;\n }\n\n &:last-child {\n margin-right: 0;\n }\n"]))),En=Ue.div(l||(l=X(["\n position: absolute;\n top: -6px;\n right: 4px;\n border: 2px solid ",";\n border-radius: 6px;\n"])),Ke["--ll-color-background"]),Pn=Ue.div(c||(c=X(["\n flex: 1;\n display: flex;\n align-items: center;\n"]))),In=Ue.div(s||(s=X(["\n margin: 0 2px;\n"]))),_n=function(e){var t=e.category,n=wn(t.scores),r=n.data,o=n.isLoading,i=n.isFetching,a=wt(),l=a.activeScore,c=a.setActiveScore,s=a.setActiveCategory;return Ve(Sn,{children:t.scores.map((function(e){var n=e===l,a=n?"--ll-color-primary":"--ll-color-disabled";return o||i?Ve(In,{children:Ve(ot,{height:"44px",width:"60px"})},e):Ve(rt.Root,{options:{score:e,scoresData:r},children:Xe(kn,{onClick:function(){s(t.value),c(e)},children:[Ve(rt.Icon,{options:{color:a,height:28,width:28}}),Ve(Pn,{children:Ve(rt.Title,{options:{variant:"caption1",color:a,lineClamp:1,noMargin:!0,weight:"--ll-font-weight-bold"}})}),Ve(En,{children:Ve(rt.Badge,{options:{variant:"small",isPrimary:n}})})]})},e)}))})},Ln=Ue.div(u||(u=X(["\n display: flex;\n padding: "," ","\n "," ",";\n"])),Ke["--ll-spacing-x-small"],Ke["--ll-spacing-medium"],Ke["--ll-spacing-xx-small"],Ke["--ll-spacing-medium"]),An=Ue.div(d||(d=X(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 3;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n background-color: ",";\n border: 1px solid ",";\n"])),Ke["--ll-color-background"],Ke["--ll-color-border"]),jn=ze.forwardRef((function(e,t){var n=wt(),r=n.activeCategory,o=n.setActiveCategory;return Xe(An,{ref:t,children:[Ve(Ln,{children:Xe(it.Root,{value:r,onValueChange:function(e){return o(e)},children:[Ve(it.Trigger,{size:"large",children:Ve(at.Root,{options:{scoreCategory:r},children:Ve(at.Title,{options:{color:"inherit",noMargin:!0,variant:"h6",lineHeight:1}})},r)}),Ve(it.Content,{children:Fe.map((function(e){return Ve(at.Root,{options:{scoreCategory:e.value},children:Ve(it.Item,{value:e.value,children:Ve(at.Title,{options:{color:"inherit",noMargin:!0,variant:"h6"}})})},e.value)}))})]})}),Ve(_n,{category:Fe.find((function(e){return e.value===r}))}),Ve(On,{})]})}));jn.displayName="MobileScores";var Rn=lt["useId".toString()]||function(){},zn=0;function Tn(e){var t=le(Te.exports.useState(Rn()),2),n=t[0],r=t[1];return me((function(){e||r((function(e){return null!=e?e:String(zn++)}))}),[e]),e||(n?"radix-".concat(n):"")}var Dn="Collapsible",Vn=le(ge(Dn),2),Fn=Vn[0],Nn=Vn[1],Gn=le(Fn(Dn),2),Zn=Gn[0],Hn=Gn[1],Un=Te.exports.forwardRef((function(e,t){var n=e.__scopeCollapsible,r=e.open,o=e.defaultOpen,i=e.disabled,a=e.onOpenChange,l=$(e,V),c=le(ye({prop:r,defaultProp:o,onChange:a}),2),s=c[0],u=void 0!==s&&s,d=c[1];return Te.exports.createElement(Zn,{scope:n,disabled:i,contentId:Tn(),open:u,onOpenToggle:Te.exports.useCallback((function(){return d((function(e){return!e}))}),[d])},Te.exports.createElement(be.div,xe({"data-state":qn(u),"data-disabled":i?"":void 0},l,{ref:t})))})),Bn=Te.exports.forwardRef((function(e,t){var n=e.__scopeCollapsible,r=$(e,F),o=Hn("CollapsibleTrigger",n);return Te.exports.createElement(be.button,xe({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":qn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:we(e.onClick,o.onOpenToggle)}))})),Kn="CollapsibleContent",Wn=Te.exports.forwardRef((function(e,t){var n=e.forceMount,r=$(e,N),o=Hn(Kn,e.__scopeCollapsible);return Te.exports.createElement(Ce,{present:n||o.open},(function(e){var n=e.present;return Te.exports.createElement(Yn,xe({},r,{ref:t,present:n}))}))})),Yn=Te.exports.forwardRef((function(e,t){var n,r=e.__scopeCollapsible,o=e.present,i=e.children,a=$(e,G),l=Hn(Kn,r),c=le(Te.exports.useState(o),2),s=c[0],u=c[1],d=Te.exports.useRef(null),p=Me(t,d),f=Te.exports.useRef(0),h=f.current,v=Te.exports.useRef(0),m=v.current,g=l.open||s,y=Te.exports.useRef(g),b=Te.exports.useRef();return Te.exports.useEffect((function(){var e=requestAnimationFrame((function(){return y.current=!1}));return function(){return cancelAnimationFrame(e)}}),[]),me((function(){var e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";var t=e.getBoundingClientRect();f.current=t.height,v.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationDuration=b.current.animationDuration,e.style.animationFillMode=b.current.animationFillMode),u(o)}}),[l.open,o]),Te.exports.createElement(be.div,xe({"data-state":qn(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g},a,{ref:p,style:de((n={},pe(n,"--radix-collapsible-content-height",h?"".concat(h,"px"):void 0),pe(n,"--radix-collapsible-content-width",m?"".concat(m,"px"):void 0),n),e.style)}),g&&i)}));function qn(e){return e?"open":"closed"}var $n=Un,Qn=Bn,Xn=Wn,Jn="Accordion",er=["Home","End","ArrowDown","ArrowUp"],tr=le(Oe(Jn),3),nr=tr[0],rr=tr[1],or=tr[2],ir=le(ge(Jn,[or,Nn]),2),ar=ir[0],lr=(ir[1],Nn()),cr=ze.forwardRef((function(e,t){var n=e.type,r=$(e,Z),o=r,i=r;return ze.createElement(nr.Provider,{scope:e.__scopeAccordion},"multiple"===n?ze.createElement(mr,xe({},i,{ref:t})):ze.createElement(vr,xe({},o,{ref:t})))}));cr.propTypes={type:function(e){var t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};var sr=le(ar(Jn),2),ur=sr[0],dr=sr[1],pr=le(ar(Jn,{collapsible:!1}),2),fr=pr[0],hr=pr[1],vr=ze.forwardRef((function(e,t){var n=e.value,r=e.defaultValue,o=e.onValueChange,i=void 0===o?function(){}:o,a=e.collapsible,l=void 0!==a&&a,c=$(e,H),s=le(ye({prop:n,defaultProp:r,onChange:i}),2),u=s[0],d=s[1];return ze.createElement(ur,{scope:e.__scopeAccordion,value:u?[u]:[],onItemOpen:d,onItemClose:ze.useCallback((function(){return l&&d("")}),[l,d])},ze.createElement(fr,{scope:e.__scopeAccordion,collapsible:l},ze.createElement(xr,xe({},c,{ref:t}))))})),mr=ze.forwardRef((function(e,t){var n=e.value,r=e.defaultValue,o=e.onValueChange,i=void 0===o?function(){}:o,a=$(e,U),l=le(ye({prop:n,defaultProp:r,onChange:i}),2),c=l[0],s=void 0===c?[]:c,u=l[1],d=ze.useCallback((function(e){return u((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[].concat(Q(t),[e])}))}),[u]),p=ze.useCallback((function(e){return u((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter((function(t){return t!==e}))}))}),[u]);return ze.createElement(ur,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:p},ze.createElement(fr,{scope:e.__scopeAccordion,collapsible:!0},ze.createElement(xr,xe({},a,{ref:t}))))})),gr=le(ar(Jn),2),yr=gr[0],br=gr[1],xr=ze.forwardRef((function(e,t){var n=e.__scopeAccordion,r=e.disabled,o=$(e,B),i=ze.useRef(null),a=Me(i,t),l=rr(n),c=we(e.onKeyDown,(function(e){var t;if(er.includes(e.key)){var n=e.target,r=l().filter((function(e){var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)})),o=r.findIndex((function(e){return e.ref.current===n})),i=r.length;if(-1!==o){e.preventDefault();var a=o;switch(e.key){case"Home":a=0;break;case"End":a=i-1;break;case"ArrowDown":a=o+1;break;case"ArrowUp":(a=o-1)<0&&(a=i-1)}null===(t=r[a%i].ref.current)||void 0===t||t.focus()}}}));return ze.createElement(yr,{scope:n,disabled:r},ze.createElement(nr.Slot,{scope:n},ze.createElement(be.div,xe({},o,{ref:a,onKeyDown:r?void 0:c}))))})),wr="AccordionItem",Cr=le(ar(wr),2),Mr=Cr[0],Or=Cr[1],Sr="AccordionTrigger";var kr=cr,Er=ze.forwardRef((function(e,t){var n=e.__scopeAccordion,r=e.value,o=$(e,K),i=br(wr,n),a=dr(wr,n),l=lr(n),c=Tn(),s=r&&a.value.includes(r)||!1,u=i.disabled||e.disabled;return ze.createElement(Mr,{scope:n,open:s,disabled:u,triggerId:c},ze.createElement($n,xe({"data-state":s?"open":"closed"},l,o,{ref:t,disabled:u,open:s,onOpenChange:function(e){e?a.onItemOpen(r):a.onItemClose(r)}})))})),Pr=ze.forwardRef((function(e,t){var n,r=e.__scopeAccordion,o=$(e,W),i=Or("AccordionHeader",r);return ze.createElement(be.h3,xe({"data-state":(n=i.open,n?"open":"closed"),"data-disabled":i.disabled?"":void 0},o,{ref:t}))})),Ir=ze.forwardRef((function(e,t){var n=e.__scopeAccordion,r=$(e,Y),o=Or(Sr,n),i=hr(Sr,n),a=lr(n);return ze.createElement(nr.ItemSlot,{scope:n},ze.createElement(Qn,xe({"aria-disabled":o.open&&!i.collapsible||void 0,id:o.triggerId},a,r,{ref:t})))})),_r=ze.forwardRef((function(e,t){var n,r=e.__scopeAccordion,o=$(e,q),i=Or("AccordionContent",r),a=lr(r);return ze.createElement(Xn,xe({role:"region","aria-labelledby":i.triggerId},a,o,{ref:t,style:de((n={},pe(n,"--radix-accordion-content-height","var(--radix-collapsible-content-height)"),pe(n,"--radix-accordion-content-width","var(--radix-collapsible-content-width)"),n),e.style)}))})),Lr=ct({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),Ar=ct({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),jr=Ue(Pr)(p||(p=X(["\n margin: 0;\n z-index: 1;\n position: relative;\n margin: 0 calc(-1 * ",");\n padding: 0 ",";\n\n &:hover {\n background-color: ",";\n box-shadow: ",";\n }\n"])),Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"],Ke["--ll-color-surface"],Ke["--ll-shadow-small"]),Rr=Ue(Ir)(f||(f=X(["\n background: none;\n border: none;\n display: flex;\n align-items: center;\n width: 100%;\n padding: "," 0;\n"])),Ke["--ll-spacing-x-small"]),zr=Ue(_r)(h||(h=X(["\n background-color: ",";\n position: relative;\n overflow: hidden;\n margin-left: calc(-1 * ",");\n margin-right: calc(-1 * ",');\n\n [data-state="open"] & {\n /* TODO: Re-implement this once StyledComponents is fixed. https://locallogic.atlassian.net/browse/LL22-1107 */\n /* animation: ',' 300ms cubic-bezier(0.87, 0, 0.13, 1); */\n visibility: visible;\n }\n\n [data-state="closed"] & {\n /* TODO: Re-implement this once StyledComponents is fixed. https://locallogic.atlassian.net/browse/LL22-1107 */\n /* animation: '," 300ms cubic-bezier(0.87, 0, 0.13, 1); */\n visibility: hidden;\n }\n"])),Ke["--ll-color-surface"],Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"],Lr,Ar),Tr=Ue.div(v||(v=X(["\n padding: ",";\n border-top: 1px solid ",";\n border-bottom: 1px solid ",";\n"])),Ke["--ll-spacing-medium"],Ke["--ll-color-border"],Ke["--ll-color-border"]),Dr=Ue.span(m||(m=X(["\n ","[data-state=open] & {\n transform: rotate(90deg);\n } ;\n"])),Rr);Ue.div(g||(g=X(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n"])));var Vr=Ue.div(y||(y=X(["\n margin: "," 0;\n"])),Ke["--ll-spacing-small"]),Fr=Ue.div(b||(b=X(["\n margin-top: ",";\n &:empty {\n margin: 0;\n }\n"])),Ke["--ll-spacing-large"]),Nr=function(e){var t=e.score,n=zt(),r=n.data,o=n.isLoading,i=wt(),a=i.activePOI,l=i.setActivePOI,c=i.hoveredPOI,s=i.setHoveredPOI,u=Dt(),d=u.mapRef,p=u.mapPadding;return o?Ve(nt,{children:Q(Array(10)).map((function(e,t){return Ve(Vr,{children:Ve(ot,{height:"34px",width:"100%"})},t)}))}):r?Ve(st.Root,{options:{type:"school",data:null==r?void 0:r[t],activePOI:a,hoveredPOI:c},onChange:function(e){if("poi-click"===e.type){var t=e.data;l(t);var n,r=window.innerWidth-p.left,o=window.innerWidth/2,i=r/2+p.left-o;if(t)null===(n=d.current)||void 0===n||n.easeTo({zoom:18,center:[t.lng,t.lat],duration:1e3,offset:[i,0]})}"poi-hover"===e.type&&s(e.data)}}):null},Gr=ze.memo((function(e){var t=e.result,n=e.poi,r=wt(),o=r.activePOI,i=r.setActivePOI,a=r.hoveredPOI,l=r.setHoveredPOI,c=Dt(),s=c.mapRef,u=c.mapPadding;return t.data&&t.data[n]?Ve(ut.Content,{options:{value:n},children:Ve(st.Root,{options:{type:"poi",data:t.data[n],activePOI:o,hoveredPOI:a},onChange:function(e){if("poi-click"===e.type){var t=e.data;i(t);var n,r=window.innerWidth-u.left,o=window.innerWidth/2,a=r/2+u.left-o;if(t)null===(n=s.current)||void 0===n||n.flyTo({zoom:18,center:[t.lng,t.lat],duration:1e3,offset:[a,0],essential:!0})}"poi-hover"===e.type&&l(e.data)}})},n):null}));Gr.displayName="POI";var Zr=ze.memo((function(e){var t=e.include,n=Rt(),r=null==t?void 0:t.filter((function(e){var t;return((null==n||null===(t=n.data)||void 0===t?void 0:t[e])||[]).length>0}));return n.isLoading&&r.length?Ve(nt,{children:Q(Array(10)).map((function(e,t){return Ve(Vr,{children:Ve(ot,{height:"34px",width:"100%"})},t)}))}):n.data?Xe(ut.Root,{options:{include:r},children:[Ve(ut.Tabs,{}),r.map((function(e){return Ve(Gr,{poi:e,result:n},e)}))]}):null}));Zr.displayName="POIs";var Hr=ze.memo((function(e){var t,n,r=e.score,o=e.isLoading,i=e.scoresData,a=Ge().sdkState,l=r===wt().activeScore;return o?Ve(Vr,{children:Ve(ot,{height:"34px",width:"100%"},r)}):null!=i&&i.location[r]?Ve(Er,{value:r,children:Xe(rt.Root,{options:{score:r,scoresData:i},children:[Ve(jr,{children:Xe(Rr,{children:[Ve(Dr,{children:Ve(dt,{SVGElement:Se,fill:Ke["--ll-color-on-background-variant1"]})}),Ve(pt,{spacing:"--ll-spacing-small"}),Ve(rt.Icon,{}),Ve(pt,{spacing:"--ll-spacing-small"}),Ve(rt.Title,{}),Ve(pt,{}),Ve(rt.Badge,{options:{isPrimary:l}})]})}),Ve(zr,{children:Xe(Tr,{children:[Ve(rt.Description,{}),Ve(pt,{vertical:!0,spacing:"--ll-spacing-small"}),Ve(rt.BarChart,{options:{renderNeighbourhoodAvg:!1,locationIcon:"pin"===(null===(t=a.options)||void 0===t||null===(n=t.marker)||void 0===n?void 0:n.icon)?bn:xn}}),Ve(Fr,{children:"high_schools"===r||"primary_schools"===r?Ve(Nr,{score:r}):Ve(Zr,{include:He[r]})})]})})]})},r):null}));Hr.displayName="Score";var Ur=Ue.div(x||(x=X(["\n padding: "," ",";\n"])),Ke["--ll-spacing-small"],Ke["--ll-spacing-medium"]),Br=Ue.div(w||(w=X(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Kr=ze.memo((function(e){var t=e.tabContent,n=wn(t.scores),r=n.data,o=n.isLoading,i=n.isFetching,a=Ye().translations;return Xe(Ur,{children:[Xe(Br,{children:[Ve(ft.Title,{options:{variant:"h4",noMargin:!0,weight:"--ll-font-weight-medium"}}),i&&!o&&Ve(ht,{size:"small"})]}),Ve(pt,{spacing:"--ll-spacing-small",vertical:!0}),!i&&!Object.keys((null==r?void 0:r.location)||{}).length&&Ve(vt,{color:"--ll-color-on-background-variant1",children:a.EMPTY_TEXT}),t.scores.map((function(e){return Ve(Hr,{score:e,isLoading:o,scoresData:r},e)}))]})}));Kr.displayName="ScoreCategory";var Wr=ze.memo((function(e){var t=e.tabContent,n=wt(),r=n.activeScore,o=n.setActiveScore;return Te.exports.useEffect((function(){o(t.scores[0])}),[]),Ve(kr,{value:r,onValueChange:function(e){o(e)},type:"single",collapsible:!0,children:Ve(Kr,{tabContent:t})})}));Wr.displayName="ScoreCategoryAccordion";var Yr=Ue.div(C||(C=X(["\n overflow-y: auto;\n"]))),qr=Ue.div(M||(M=X(["\n position: absolute;\n top: ",";\n left: ",";\n width: 360px;\n max-height: calc(100% - 2 * ",");\n z-index: 1;\n border-radius: ",";\n box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;\n background-color: #fff;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n background-color: ",";\n border: 1px solid ",";\n"])),Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"],Ke["--ll-border-radius-medium"],Ke["--ll-color-background"],Ke["--ll-color-border"]);Ue.div(O||(O=X(["\n display: flex;\n justify-content: center;\n padding: ",";\n"])),Ke["--ll-spacing-small"]);var $r=Ue.div(S||(S=X(["\n padding: ",";\n border-bottom: 1px solid ",";\n"])),Ke["--ll-spacing-xx-small"],Ke["--ll-color-border"]),Qr=Ue.div(k||(k=X(["\n display: flex;\n justify-content: center;\n padding: ",";\n background-color: ",";\n"])),Ke["--ll-spacing-small"],Ke["--ll-color-background"]),Xr=function(){return Ve(Qr,{children:Ve(mt.Root,{})})},Jr=ze.forwardRef((function(e,t){var n=wt(),r=n.activeCategory,o=n.setActiveCategory;return Ve(ft.Root,{options:{currentTab:r},onChange:function(e){o(e.data)},children:Xe(qr,{ref:t,children:[Ve($r,{children:Ve(ft.Tabs,{})}),Ve(Yr,{children:Fe.map((function(e){return Ve(ft.Content,{options:{value:e.value},children:Ve(Wr,{tabContent:e},e.value)},e.value)}))}),Ve(Xr,{})]})})}));Jr.displayName="DesktopScores";var eo=Ue.div(E||(E=X(["\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100vh;\n"]))),to=function(e){return Te.exports.createElement("svg",de({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Te.exports.createElement("path",{d:"M22.4275 10.5938L13.4175 1.58383C12.6675 0.833834 11.3475 0.823834 10.5875 1.58383L1.58745 10.5838C0.807453 11.3638 0.807453 12.6238 1.58745 13.4038L10.5875 22.4038C10.9775 22.7938 11.4875 22.9838 11.9975 22.9838C12.5075 22.9838 13.0175 22.7938 13.4075 22.4038L22.3975 13.4138C23.1875 12.6538 23.1975 11.3938 22.4275 10.5938ZM12.0075 20.9938L3.00745 11.9938L12.0075 2.99383L21.0075 11.9938L12.0075 20.9938ZM7.99745 11.0038V15.0038H9.99745V12.0038H13.9975V14.5038L17.4975 11.0038L13.9975 7.50383V10.0038H8.99745C8.44745 10.0038 7.99745 10.4538 7.99745 11.0038Z"}))},no=function(e){return Te.exports.createElement("svg",de({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Te.exports.createElement("path",{d:"M13.5 5.5C14.6 5.5 15.5 4.6 15.5 3.5C15.5 2.4 14.6 1.5 13.5 1.5C12.4 1.5 11.5 2.4 11.5 3.5C11.5 4.6 12.4 5.5 13.5 5.5ZM9.8 8.9L7 23H9.1L10.9 15L13 17V23H15V15.5L12.9 13.5L13.5 10.5C14.8 12 16.8 13 19 13V11C17.1 11 15.5 10 14.7 8.6L13.7 7C13.14 6.11 12.02 5.75 11.05 6.16L6 8.3V13H8V9.6L9.8 8.9Z"}))},ro=function(e){return Te.exports.createElement("svg",de({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Te.exports.createElement("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5H6.5C5.84 5 5.29 5.42 5.08 6.01L3 12V20C3 20.55 3.45 21 4 21H5C5.55 21 6 20.55 6 20V19H18V20C18 20.55 18.45 21 19 21H20C20.55 21 21 20.55 21 20V12L18.92 6.01ZM6.85 7H17.14L18.22 10.11H5.77L6.85 7ZM19 17H5V12H19V17Z"}),Te.exports.createElement("path",{d:"M7.5 16C8.32843 16 9 15.3284 9 14.5C9 13.6716 8.32843 13 7.5 13C6.67157 13 6 13.6716 6 14.5C6 15.3284 6.67157 16 7.5 16Z"}),Te.exports.createElement("path",{d:"M16.5 16C17.3284 16 18 15.3284 18 14.5C18 13.6716 17.3284 13 16.5 13C15.6716 13 15 13.6716 15 14.5C15 15.3284 15.6716 16 16.5 16Z"}))},oo=function(e){return Te.exports.createElement("svg",de({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Te.exports.createElement("path",{d:"M12,2C6.47,2,2,6.47,2,12s4.47,10,10,10s10-4.47,10-10S17.53,2,12,2z M17,15.59L15.59,17L12,13.41L8.41,17L7,15.59 L10.59,12L7,8.41L8.41,7L12,10.59L15.59,7L17,8.41L13.41,12L17,15.59z"}))},io=Ue.div(P||(P=X(["\n max-height: calc(100% - 2 * ",");\n border-radius: ",";\n box-shadow: ",";\n background-color: ",";\n border: 1px solid ",";\n padding: ",";\n"])),Ke["--ll-spacing-medium"],Ke["--ll-border-radius-medium"],Ke["--ll-shadow-small"],Ke["--ll-color-background"],Ke["--ll-color-border"],Ke["--ll-spacing-x-small"]),ao=Ue.div(I||(I=X(["\n display: flex;\n justify-content: space-between;\n align-items: end;\n\n "," {\n // Adjust if text of commute transport mode changes\n width: 52%;\n margin-right: ",";\n }\n"])),ke,Ke["--ll-spacing-x-small"]),lo=Ue.div(_||(_=X(["\n background-color: ",";\n padding: "," "," 0;\n border-radius: ",";\n"])),Ke["--ll-color-surface"],Ke["--ll-spacing-x-small"],Ke["--ll-spacing-small"],Ke["--ll-border-radius-medium"]),co=Ue(gt)(L||(L=X(["\n position: absolute;\n right: ",";\n top: ",";\n"])),Ke["--ll-spacing-xx-small"],Ke["--ll-spacing-xx-small"]),so=function(e){var t,n,r,o,i=e.className,a=e.onClose,l=Ge().sdkState,c=wt(),s=c.setCommuteGeojson,u=c.destination,d=c.setDestination,p=le(Te.exports.useState("pedestrian"),2),f=p[0],h=p[1],v=bt(),m=Ye().translations,g=hn({destination:u,transportMode:f,origin:"".concat(null==l||null===(t=l.options)||void 0===t||null===(n=t.marker)||void 0===n?void 0:n.lat,",").concat(null==l||null===(r=l.options)||void 0===r||null===(o=r.marker)||void 0===o?void 0:o.lng),isOpen:!0}),y=g.data,b=g.isFetching,x=g.isFetched;Te.exports.useEffect((function(){null!=y&&y.summary&&s($e.polyline.decode(y.polyline))}),[y]);var w={pedestrian:[m.WALKING,no],car:[m.DRIVING,ro]},C=Te.exports.useMemo((function(){if(null==y||!y.summary)return null;var e=Math.floor(y.summary.typicalDuration/60/60),t=Math.floor(y.summary.typicalDuration/60%60);return 0===e?"".concat(t," ").concat(Qe.pluralize(m.MINUTE,t)):"".concat(e," ").concat(Qe.pluralize(m.HOUR,e)," ").concat(t," ").concat(Qe.pluralize(m.MINUTE,t))}),[y]),M=Te.exports.useMemo((function(){var e;if(null==y||!y.summary)return null;var t=y.summary.length,n="imperial"===(null==l||null===(e=l.options)||void 0===e?void 0:e.distanceUnit);n&&(t*=1.0936132983);var r=Math.floor(t/(n?1760:1e3));return 0===r?"".concat(Math.floor(t)," ").concat(n?m.YD:m.M):"".concat(r," ").concat(n?m.MI:m.KM)}),[y]);return Xe(io,{className:i,children:[Ve(co,{size:"medium",color:"neutral",onClick:a,SVGElement:oo}),Xe(ao,{children:[Ve(Ee,{label:m.CALCULATE_COMMUTE,placeholder:(null==u?void 0:u.label)||m.SEARCH_MAP,renderListAbove:v,renderListAbovePosition:30,onSearch:function(e){d({lat:e.latitude,lng:e.longitude})}}),Ve(it.Root,{value:f,onValueChange:function(e){h(e)},children:Xe(it.Trigger,{children:[Ve(dt,{SVGElement:w[f][1],fill:Ke["--ll-color-on-background-variant1"],width:16}),w[f][0],Xe(it.Content,{children:[Ve(it.Item,{value:"car",children:m.DRIVING}),Ve(it.Item,{value:"pedestrian",children:m.WALKING})]})]})})]}),(x||b)&&Xe(nt,{children:[Ve(pt,{vertical:!0,spacing:"--ll-spacing-x-small"}),Ve(Pe,{open:!!y,children:b?Ve(ot,{height:"70.4px",width:"100%"}):null!=y&&y.summary?Xe(lo,{children:[Ve(vt,{variant:"h5",children:C}),Xe(vt,{children:[M," – ",m.FAST_ROUTE]})]}):Xe(lo,{children:[Ve(vt,{variant:"h5",children:m.NO_ROUTE}),Ve(vt,{children:m.TRY_SUGGESTION})]})})]})]})},uo=Ue.div(A||(A=X(["\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 3;\n"]))),po=Ue.div(j||(j=X(["\n position: absolute;\n top: ",";\n right: ",";\n z-index: 3;\n max-width: 356px;\n"])),Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"]),fo=Ue(gt)(R||(R=X(["\n box-shadow: ",";\n position: absolute;\n bottom: ",";\n right: ",";\n"])),Ke["--ll-shadow-medium"],Ke["--ll-spacing-medium"],Ke["--ll-spacing-medium"]),ho=Ue(so)(z||(z=X([""]))),vo=Ue(so)(T||(T=X(["\n border-radius: ","\n "," 0 0;\n border: 0;\n"])),Ke["--ll-border-radius-small"],Ke["--ll-border-radius-small"]),mo=Ue(yt)(D||(D=X(["\n box-shadow: ",";\n"])),Ke["--ll-shadow-small"]),go=function(){var e=wt(),t=e.setCommuteGeojson,n=e.setDestination,r=e.showCommuteCalculator,o=e.setShowCommuteCalculator,i=Ye().translations,a=function(){n(void 0),t(void 0),o(!1)},l=function(){o(!0)};return bt()?Ve(nt,{children:r?Ve(uo,{children:Ve(vo,{onClose:a})}):Ve(fo,{size:"large",SVGElement:to,onClick:l})}):Ve(po,{children:r?Ve(ho,{onClose:a}):Ve(mo,{onClick:l,startAdornment:Ve(to,{}),children:i.CALCULATE_COMMUTE})})},yo=function(){var e,t,n,r=Ge(),o=r.sdkState,i=r.setSdkState,a=wt(),l=a.activeScore,c=a.activePOI,s=a.setActivePOI,u=a.hoveredPOI,d=a.commuteGeojson,p=a.destination,f=a.schoolCatchment,h=bt(),v=Rt(),m=zt(),g="night"===(null==o||null===(e=o.globalOptions)||void 0===e||null===(t=e.appearance)||void 0===t?void 0:t.theme)?"dd191599-2a92-49fc-9a33-e12391753ad5":"600d69cb-288d-445e-9839-3dfe4d76b31a",y={id:"point",type:"line",paint:{"line-width":6,"line-color":getComputedStyle(document.documentElement).getPropertyValue("--ll-color-link")}},b={id:"school",type:"line",source:"schoolCatchment",paint:{"line-width":3,"line-color":getComputedStyle(document.documentElement).getPropertyValue("--ll-color-on-background")}},x=le(Te.exports.useState(!1),2),w=x[0],C=x[1],M=Te.exports.useMemo((function(){var e,t;return"high_schools"!==l&&"primary_schools"!==l||m.isFetching?He&&l&&He[l]&&null!==(e=He[l])&&void 0!==e&&e.length||v.isFetching?v.data:pe({},l,[]):pe({},l,(null==m||null===(t=m.data)||void 0===t?void 0:t[l])||[])}),[v.data,m.data,l]),O=Te.exports.useMemo((function(){return M?Object.entries(M).map((function(e){var t=le(e,2),n=t[0];return t[1].map((function(e){return _t([e.lng,e.lat],{poi:e,type:n})}))})).flat().filter((function(e,t,n){return n.findIndex((function(t){return["lat","lng","name"].every((function(n){return t.properties.poi[n]===e.properties.poi[n]}))}))===t})):[]}),[M]),S=Te.exports.useMemo((function(){var e,t,n,r=(null==o||null===(e=o.options)||void 0===e?void 0:e.marker)&&_t([null==o||null===(t=o.options)||void 0===t?void 0:t.marker.lng,null==o||null===(n=o.options)||void 0===n?void 0:n.marker.lat]);return[].concat(Q(O),Q(r?[r]:[]),Q(p?[_t([null==p?void 0:p.lng,null==p?void 0:p.lat])]:[]))}),[O,null==o||null===(n=o.options)||void 0===n?void 0:n.marker,p]),k=Te.exports.useRef(),E=le(Ie(),2),P=E[0],I=E[1],_=Te.exports.useMemo((function(){return{top:25+I.height,bottom:25,left:25,right:25}}),[I.height]),L=Te.exports.useMemo((function(){return{top:50,bottom:50,left:I.width+32+50,right:50}}),[I.width]),A=h?_:L;return Te.exports.useEffect((function(){var e,t;if(l&&!v.isFetching&&!m.isFetching&&S.length&&null!==(e=o.options)&&void 0!==e&&e.marker){var n,r,i,a=le(jt((n=S.map((function(e){var t=e.geometry;return[t.coordinates[1],t.coordinates[0]]})),void 0===i&&(i={}),It({type:"MultiPoint",coordinates:n},r,i))),4),c=a[0],s=a[1],u=a[2],d=a[3];null==k||null===(t=k.current)||void 0===t||t.fitBounds([[s,c],[d,u]],{maxZoom:17,padding:A,duration:1e3})}}),[S,A,f,l,m.isFetching,v.isFetching]),o.options?Ve(Vt,{mapRef:k,mapPadding:A,children:Xe(eo,{children:[Xe(_e,{ref:k,mapLib:Le,latitude:o.options.lat,longitude:o.options.lng,zoom:o.options.zoom,pitch:o.options.pitch,bearing:o.options.bearing,unit:o.options.distanceUnit,style:{flex:1,width:"100vw"},mapStyle:"https://api.maptiler.com/maps/".concat(g,"/style.json?key=","9jNGatuzs05Q1oNlctEs"),onMove:function(e){i(de(de({},o),{},{options:de(de({},o.options),{},{lat:e.viewState.latitude,lng:e.viewState.longitude,zoom:e.viewState.zoom,bearing:e.viewState.bearing,pitch:e.viewState.pitch})}))},cooperativeGestures:o.options.cooperativeGestures,onMoveStart:function(){return C(!0)},onMoveEnd:function(){return C(!1)},attributionControl:!1,children:[Ve(Ae,{compact:!0,position:h?"bottom-left":"bottom-right"}),Ve(je,{position:h?"top-right":"bottom-right",showCompass:!0,style:{marginTop:h?16+I.height:16,marginRight:16}}),o.options.marker&&Ve(Re,{marker:o.options.marker}),Ve(yn,{rect:I,zoom:o.options.zoom,mapRef:k,points:O,isMobile:h,activePOI:c,hoveredPOI:u,isMapMoving:w,setActivePOI:s}),Ve(h?jn:Jr,{ref:P}),Ve(go,{}),p&&Ve(Re,{marker:de({icon:"pin"},p)}),d&&Ve(kt,{type:"geojson",data:d,children:Ve(Pt,de({},y))}),f&&Ve(kt,{type:"geojson",data:f,children:Ve(Pt,de({},b))})]}),h&&Ve(Xr,{})]})}):Ve("div",{children:"No options provided."})};te("default",(function(){return Ve(Mt,{children:Ve(yo,{})})}))}}}))}();